@lightningjs/solid
Advanced tools
Comparing version 0.12.9 to 0.12.10
@@ -661,3 +661,3 @@ import { createSignal, mergeProps as mergeProps$1, createRoot, createRenderEffect, createMemo, createComponent as createComponent$1, untrack, onMount } from 'solid-js'; | ||
const passedArray = isArray(values); | ||
const styleArray = passedArray ? values : [values]; | ||
const styleArray = passedArray ? values.filter(v => v) : [values]; | ||
// Keys set in JSX are more important | ||
@@ -664,0 +664,0 @@ styleArray.forEach(value => { |
@@ -326,3 +326,3 @@ /* | ||
const passedArray = isArray(values); | ||
const styleArray = passedArray ? values : [values]; | ||
const styleArray = passedArray ? values.filter((v) => v) : [values]; | ||
// Keys set in JSX are more important | ||
@@ -329,0 +329,0 @@ styleArray.forEach((value) => { |
@@ -83,3 +83,3 @@ import { createShader } from '../renderer/index.js'; | ||
destroy(): void; | ||
set style(values: SolidStyles | SolidStyles[]); | ||
set style(values: SolidStyles | (SolidStyles | undefined)[]); | ||
get style(): SolidStyles; | ||
@@ -86,0 +86,0 @@ get hasChildren(): boolean; |
@@ -64,7 +64,7 @@ import { type AnimationSettings, type Dimensions, type INode, type INodeWritableProps, type ITextNodeWritableProps, type NodeFailedPayload, type NodeLoadedPayload } from '@lightningjs/renderer'; | ||
export interface IntrinsicNodeProps extends AddUndefined<IntrinsicNodeCommonProps & IntrinsicNodeStyleProps> { | ||
style?: IntrinsicNodeStyleProps | IntrinsicNodeStyleProps[] | undefined; | ||
style?: IntrinsicNodeStyleProps | (IntrinsicNodeStyleProps | undefined)[] | undefined; | ||
children?: JSX.Element | undefined; | ||
} | ||
export interface IntrinsicTextProps extends AddUndefined<IntrinsicNodeCommonProps & IntrinsicTextNodeStyleProps> { | ||
style?: IntrinsicTextNodeStyleProps | IntrinsicTextNodeStyleProps[] | undefined; | ||
style?: IntrinsicTextNodeStyleProps | (IntrinsicTextNodeStyleProps | undefined)[] | undefined; | ||
children: string | string[]; | ||
@@ -71,0 +71,0 @@ } |
{ | ||
"name": "@lightningjs/solid", | ||
"version": "0.12.9", | ||
"version": "0.12.10", | ||
"description": "Lightning renderer for solid universal", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -420,5 +420,5 @@ /* | ||
set style(values: SolidStyles | SolidStyles[]) { | ||
set style(values: SolidStyles | (SolidStyles | undefined)[]) { | ||
const passedArray = isArray(values); | ||
const styleArray = passedArray ? values : [values]; | ||
const styleArray = passedArray ? values.filter((v) => v) : [values]; | ||
// Keys set in JSX are more important | ||
@@ -425,0 +425,0 @@ styleArray.forEach((value) => { |
@@ -113,3 +113,6 @@ /* | ||
extends AddUndefined<IntrinsicNodeCommonProps & IntrinsicNodeStyleProps> { | ||
style?: IntrinsicNodeStyleProps | IntrinsicNodeStyleProps[] | undefined; | ||
style?: | ||
| IntrinsicNodeStyleProps | ||
| (IntrinsicNodeStyleProps | undefined)[] | ||
| undefined; | ||
children?: JSX.Element | undefined; | ||
@@ -122,3 +125,3 @@ } | ||
| IntrinsicTextNodeStyleProps | ||
| IntrinsicTextNodeStyleProps[] | ||
| (IntrinsicTextNodeStyleProps | undefined)[] | ||
| undefined; | ||
@@ -125,0 +128,0 @@ children: string | string[]; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
286020
4634