@symbo.ls/atoms 2.11.438 → 2.11.439
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/Collection.js +1 -0
- package/Theme.js +22 -5
- package/package.json +2 -2
package/Collection.js
CHANGED
package/Theme.js
CHANGED
|
@@ -148,12 +148,29 @@ export const Theme = {
|
|
|
148
148
|
})
|
|
149
149
|
},
|
|
150
150
|
|
|
151
|
-
boxShadow: ({ props, deps }) => isString(props.boxShadow) && ({
|
|
152
|
-
|
|
153
|
-
}),
|
|
151
|
+
// boxShadow: ({ props, deps }) => isString(props.boxShadow) && ({
|
|
152
|
+
// boxShadow: deps.transformBoxShadow(props.boxShadow)
|
|
153
|
+
// }),
|
|
154
|
+
|
|
155
|
+
boxShadow: (element, state, context) => {
|
|
156
|
+
const { props, deps } = element
|
|
157
|
+
if (!isString(props.boxShadow)) return
|
|
158
|
+
const [val, hasImportant] = props.boxShadow.split('!importan')
|
|
159
|
+
const globalTheme = getSystemGlobalTheme(element)
|
|
160
|
+
const important = hasImportant ? ' !important' : ''
|
|
161
|
+
if (important) {
|
|
162
|
+
console.log(val.trim())
|
|
163
|
+
console.log(deps.transformBoxShadow(val.trim(), globalTheme))
|
|
164
|
+
console.log(getMediaColor('canvas-card', globalTheme), globalTheme)
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
return {
|
|
168
|
+
boxShadow: deps.transformBoxShadow(val.trim(), globalTheme) + important
|
|
169
|
+
}
|
|
170
|
+
},
|
|
154
171
|
|
|
155
|
-
textShadow: ({ props, deps }) => !isUndefined(props.textShadow) && ({
|
|
156
|
-
textShadow: deps.transformBoxShadow(props.textShadow)
|
|
172
|
+
textShadow: ({ props, deps, context }) => !isUndefined(props.textShadow) && ({
|
|
173
|
+
textShadow: deps.transformBoxShadow(props.textShadow, context.designSystem.globalTheme)
|
|
157
174
|
}),
|
|
158
175
|
|
|
159
176
|
backdropFilter: ({ props, deps }) => !isUndefined(props.backdropFilter) && ({
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/atoms",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.439",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "b16ac3edce7fceb5e81d7cc7bbad51256e10b166",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@domql/state": "latest",
|
|
9
9
|
"@domql/utils": "latest",
|