@symbo.ls/atoms 2.11.443 → 2.11.446
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/Media.js +2 -2
- package/package.json +6 -6
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]
|
|
132
|
+
const isPropTrue = element.props[caseKey] || 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]
|
|
139
|
+
const isPropTrue = element.props[caseKey] || element.state[caseKey] || element[caseKey]
|
|
140
140
|
if (!isPropTrue) return overwriteDeep(result, convertPropsToClass(props, result, element))
|
|
141
141
|
}
|
|
142
142
|
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/atoms",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.446",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "d042e0c4fc9379b0ca7584f6405cfa2e7c1301d4",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@domql/state": "
|
|
9
|
-
"@domql/utils": "
|
|
10
|
-
"@symbo.ls/emotion": "
|
|
11
|
-
"@symbo.ls/scratch": "
|
|
8
|
+
"@domql/state": "^2.5.0",
|
|
9
|
+
"@domql/utils": "^2.5.0",
|
|
10
|
+
"@symbo.ls/emotion": "^2.11.0",
|
|
11
|
+
"@symbo.ls/scratch": "^2.11.446"
|
|
12
12
|
},
|
|
13
13
|
"source": "src/index.js",
|
|
14
14
|
"devDependencies": {
|