@symbo.ls/atoms
Advanced tools
Comparing version 2.11.325 to 2.11.331
'use strict' | ||
import { isUndefined } from '@domql/utils' | ||
import { isUndefined, isString } from '@domql/utils' | ||
@@ -74,3 +74,3 @@ import { | ||
...deps.transformSize('minHeight', minHeight), | ||
...deps.transformSize('minHeight', minWidth || minHeight) | ||
...deps.transformSize('minWidth', minWidth || minHeight) | ||
} | ||
@@ -84,3 +84,3 @@ }, | ||
...deps.transformSize('maxHeight', maxHeight), | ||
...deps.transformSize('maxHeight', maxWidth || maxHeight) | ||
...deps.transformSize('maxWidth', maxWidth || maxHeight) | ||
} | ||
@@ -110,3 +110,3 @@ }, | ||
paddingBlock: ({ props, deps }) => { | ||
if (typeof props.paddingBlock !== 'string') return | ||
if (isString(props.paddingBlock)) return | ||
const [paddingBlockStart, paddingBlockEnd] = props.paddingBlock.split(' ') | ||
@@ -113,0 +113,0 @@ return { |
@@ -9,4 +9,8 @@ 'use strict' | ||
$collection: (param, el, state) => { | ||
if (!param) return | ||
const { __ref: ref } = el | ||
const children = isArray(el.props?.children) | ||
if (children) param = children | ||
else if (!param) return | ||
if (isString(param)) { | ||
@@ -19,3 +23,2 @@ if (param === 'state') param = state.parse() | ||
const { __ref: ref } = el | ||
param = deepClone(param) | ||
@@ -22,0 +25,0 @@ |
{ | ||
"name": "@symbo.ls/atoms", | ||
"version": "2.11.325", | ||
"version": "2.11.331", | ||
"main": "index.js", | ||
"license": "MIT", | ||
"gitHead": "0ac8322ab9267498fbdcde2ade499be5e79b0478", | ||
"gitHead": "c1ce82619a9c90dcb12862a1cef1d7fc10b8718b", | ||
"dependencies": { | ||
@@ -8,0 +8,0 @@ "@domql/state": "latest", |
@@ -146,3 +146,3 @@ 'use strict' | ||
return ({ | ||
boxShadow: deps.transformShadow(props.backgroundImage, globalTheme) | ||
boxShadow: deps.transformShadow(props.shadow, globalTheme) | ||
}) | ||
@@ -149,0 +149,0 @@ }, |
@@ -8,2 +8,3 @@ 'use strict' | ||
} from '@symbo.ls/scratch' | ||
import { isUndefined } from 'smbls' | ||
@@ -10,0 +11,0 @@ |
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
50914
1420