@symbo.ls/atoms 2.11.446 → 2.11.450
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Block.js +2 -2
- package/Media.js +2 -2
- package/Theme.js +0 -6
- package/package.json +3 -3
package/Block.js
CHANGED
|
@@ -30,11 +30,11 @@ export const Block = {
|
|
|
30
30
|
display: props.display
|
|
31
31
|
}),
|
|
32
32
|
|
|
33
|
-
show: (el, s, ctx) => (ctx.utils.exec(el.props.show, el, s) === false) && ({
|
|
33
|
+
show: (el, s, ctx) => !!(ctx.utils.exec(el.props.show, el, s) === false) && ({
|
|
34
34
|
display: 'none !important'
|
|
35
35
|
}),
|
|
36
36
|
|
|
37
|
-
hide: (el, s, ctx) => ctx.utils.exec(el.props.hide, el, s) && ({
|
|
37
|
+
hide: (el, s, ctx) => !!ctx.utils.exec(el.props.hide, el, s) && ({
|
|
38
38
|
display: 'none !important'
|
|
39
39
|
}),
|
|
40
40
|
|
package/Media.js
CHANGED
|
@@ -129,14 +129,14 @@ const applyVariableProps = (key, props, result, element) => {
|
|
|
129
129
|
|
|
130
130
|
const applyConditionalCaseProps = (key, props, result, element) => {
|
|
131
131
|
const caseKey = key.slice(1)
|
|
132
|
-
const isPropTrue = element.props[caseKey] || element.state[caseKey] || element[caseKey]
|
|
132
|
+
const isPropTrue = element.props[caseKey] === true || element.state[caseKey] || element[caseKey]
|
|
133
133
|
if (!isPropTrue) return // remove classname if not here
|
|
134
134
|
return overwriteDeep(result, convertPropsToClass(props, result, element))
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
const applyConditionalFalsyProps = (key, props, result, element) => {
|
|
138
138
|
const caseKey = key.slice(1)
|
|
139
|
-
const isPropTrue = element.props[caseKey] || element.state[caseKey] || element[caseKey]
|
|
139
|
+
const isPropTrue = element.props[caseKey] === true || element.state[caseKey] || element[caseKey]
|
|
140
140
|
if (!isPropTrue) return overwriteDeep(result, convertPropsToClass(props, result, element))
|
|
141
141
|
}
|
|
142
142
|
|
package/Theme.js
CHANGED
|
@@ -161,12 +161,6 @@ export const Theme = {
|
|
|
161
161
|
const [val, hasImportant] = props.boxShadow.split('!importan')
|
|
162
162
|
const globalTheme = getSystemGlobalTheme(element)
|
|
163
163
|
const important = hasImportant ? ' !important' : ''
|
|
164
|
-
if (important) {
|
|
165
|
-
console.log(val.trim())
|
|
166
|
-
console.log(deps.transformBoxShadow(val.trim(), globalTheme))
|
|
167
|
-
console.log(getMediaColor('canvas-card', globalTheme), globalTheme)
|
|
168
|
-
}
|
|
169
|
-
|
|
170
164
|
return {
|
|
171
165
|
boxShadow: deps.transformBoxShadow(val.trim(), globalTheme) + important
|
|
172
166
|
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/atoms",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.450",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "4153a92a328d62db727ee4c99cd53f389ee6e05b",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@domql/state": "^2.5.0",
|
|
9
9
|
"@domql/utils": "^2.5.0",
|
|
10
10
|
"@symbo.ls/emotion": "^2.11.0",
|
|
11
|
-
"@symbo.ls/scratch": "^2.11.
|
|
11
|
+
"@symbo.ls/scratch": "^2.11.450"
|
|
12
12
|
},
|
|
13
13
|
"source": "src/index.js",
|
|
14
14
|
"devDependencies": {
|