@symbo.ls/atoms 2.32.19 → 2.32.25
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/Box.js +25 -6
- package/package.json +6 -6
package/Box.js
CHANGED
|
@@ -154,8 +154,8 @@ export const Box = {
|
|
|
154
154
|
[childrenAsDefault]: isObjectLike(v)
|
|
155
155
|
? v
|
|
156
156
|
: childrenAsDefault === 'state'
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
? { value: v }
|
|
158
|
+
: { text: v }
|
|
159
159
|
}))
|
|
160
160
|
}
|
|
161
161
|
} else if (isString(children) || isNumber(children)) {
|
|
@@ -876,11 +876,14 @@ export const Box = {
|
|
|
876
876
|
}
|
|
877
877
|
},
|
|
878
878
|
|
|
879
|
-
backgroundImage: (
|
|
880
|
-
const { props, deps } =
|
|
881
|
-
const globalTheme = deps.getSystemGlobalTheme(
|
|
882
|
-
let val = props.backgroundImage
|
|
879
|
+
backgroundImage: (el, s, context) => {
|
|
880
|
+
const { props, deps } = el
|
|
881
|
+
const globalTheme = deps.getSystemGlobalTheme(el)
|
|
882
|
+
let val = el.call('exec', props.backgroundImage)
|
|
883
883
|
if (!val) return
|
|
884
|
+
if (el.call('isString', val) && val.includes('{{')) {
|
|
885
|
+
val = el.call('replaceLiteralsWithObjectFields', val)
|
|
886
|
+
}
|
|
884
887
|
const file = context.files && context.files[val]
|
|
885
888
|
if (file && file.content) val = file.content.src
|
|
886
889
|
return {
|
|
@@ -1115,6 +1118,22 @@ export const Box = {
|
|
|
1115
1118
|
props,
|
|
1116
1119
|
'borderRadius'
|
|
1117
1120
|
)
|
|
1121
|
+
},
|
|
1122
|
+
|
|
1123
|
+
// container queries
|
|
1124
|
+
...{
|
|
1125
|
+
container: ({ props }) =>
|
|
1126
|
+
props.container && {
|
|
1127
|
+
container: props.container
|
|
1128
|
+
},
|
|
1129
|
+
containerName: ({ props }) =>
|
|
1130
|
+
props.containerName && {
|
|
1131
|
+
containerName: props.containerName || 1
|
|
1132
|
+
},
|
|
1133
|
+
containerType: ({ props }) =>
|
|
1134
|
+
props.containerType && {
|
|
1135
|
+
containerType: props.containerType
|
|
1136
|
+
}
|
|
1118
1137
|
}
|
|
1119
1138
|
},
|
|
1120
1139
|
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/atoms",
|
|
3
|
-
"version": "2.32.
|
|
3
|
+
"version": "2.32.25",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "325683c8553a64ee952c8a36f4e823257d1e81bb",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@domql/state": "^2.32.
|
|
9
|
-
"@domql/utils": "^2.32.
|
|
10
|
-
"@symbo.ls/emotion": "^2.32.
|
|
11
|
-
"@symbo.ls/scratch": "^2.32.
|
|
8
|
+
"@domql/state": "^2.32.25",
|
|
9
|
+
"@domql/utils": "^2.32.25",
|
|
10
|
+
"@symbo.ls/emotion": "^2.32.25",
|
|
11
|
+
"@symbo.ls/scratch": "^2.32.25"
|
|
12
12
|
},
|
|
13
13
|
"source": "src/index.js",
|
|
14
14
|
"devDependencies": {
|