@symbo.ls/atoms 2.32.18 → 2.32.22
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 +23 -4
- package/package.json +6 -6
package/Box.js
CHANGED
|
@@ -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
|
|
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.22",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "937da946c8fb840d8282c986c50330584573551a",
|
|
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.22",
|
|
9
|
+
"@domql/utils": "^2.32.22",
|
|
10
|
+
"@symbo.ls/emotion": "^2.32.22",
|
|
11
|
+
"@symbo.ls/scratch": "^2.32.22"
|
|
12
12
|
},
|
|
13
13
|
"source": "src/index.js",
|
|
14
14
|
"devDependencies": {
|