@symbo.ls/atoms
Advanced tools
Comparing version 2.11.333 to 2.11.334
'use strict' | ||
import { isString } from '@domql/utils' | ||
import { isString, isUndefined } from '@domql/utils' | ||
@@ -22,2 +22,4 @@ export const Flex = { | ||
verticalAlign: ({ props }) => !isUndefined(props.verticalAlign) && ({ flexWrap: props.verticalAlign }), | ||
wrap: ({ props }) => props.wrap && ({ flexWrap: props.wrap }), | ||
@@ -24,0 +26,0 @@ align: ({ props }) => { |
'use strict' | ||
import { merge, isArray, overwriteShallow } from '@domql/utils' | ||
import { merge, isArray, overwriteDeep, overwriteShallow } from '@domql/utils' | ||
import { getSystemTheme } from './Theme' | ||
@@ -133,3 +133,3 @@ | ||
if (!isPropTrue) return // remove classname if not here | ||
return merge(result, convertPropsToClass(props, result, element)) | ||
return overwriteDeep(result, convertPropsToClass(props, result, element)) | ||
} | ||
@@ -140,3 +140,3 @@ | ||
const isPropTrue = element.props[caseKey] || element.state[caseKey] === true | ||
if (!isPropTrue) return merge(result, convertPropsToClass(props, result, element)) | ||
if (!isPropTrue) return overwriteDeep(result, convertPropsToClass(props, result, element)) | ||
} | ||
@@ -171,5 +171,6 @@ | ||
}) | ||
} else if (key === 'true') applyTrueProps(props[key], CLASS_NAMES, element) | ||
} | ||
} | ||
if (setter) setter(key, props[key], CLASS_NAMES, element) | ||
else if (key === 'true') applyTrueProps(props[key], CLASS_NAMES, element) | ||
} | ||
@@ -176,0 +177,0 @@ |
{ | ||
"name": "@symbo.ls/atoms", | ||
"version": "2.11.333", | ||
"version": "2.11.334", | ||
"main": "index.js", | ||
"license": "MIT", | ||
"gitHead": "8c0ee0deb6786d87ae0ece3b87462269af4db917", | ||
"gitHead": "dfa7309d692f0060cfa63b38758809a768a6abec", | ||
"dependencies": { | ||
@@ -8,0 +8,0 @@ "@domql/state": "latest", |
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
50957
1422