@symbo.ls/atoms 2.11.440 → 2.11.443
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/Interaction.js +9 -1
- package/Theme.js +6 -3
- package/package.json +2 -2
package/Interaction.js
CHANGED
|
@@ -4,6 +4,14 @@ export const Interaction = {
|
|
|
4
4
|
class: {
|
|
5
5
|
userSelect: ({ props }) => props.userSelect && ({ userSelect: props.userSelect }),
|
|
6
6
|
pointerEvents: ({ props }) => props.pointerEvents && ({ pointerEvents: props.pointerEvents }),
|
|
7
|
-
cursor: (
|
|
7
|
+
cursor: (el, s, ctx) => {
|
|
8
|
+
let val = el.props.cursor
|
|
9
|
+
if (!val) return
|
|
10
|
+
|
|
11
|
+
const file = ctx.files && ctx.files[val]
|
|
12
|
+
if (file && file.content) val = `url(${file.content.src})`
|
|
13
|
+
|
|
14
|
+
return ({ cursor: val })
|
|
15
|
+
}
|
|
8
16
|
}
|
|
9
17
|
}
|
package/Theme.js
CHANGED
|
@@ -75,12 +75,15 @@ export const Theme = {
|
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
|
|
78
|
-
backgroundImage: (element) => {
|
|
78
|
+
backgroundImage: (element, s, context) => {
|
|
79
79
|
const { props, deps } = element
|
|
80
80
|
const globalTheme = deps.getSystemGlobalTheme(element)
|
|
81
|
-
|
|
81
|
+
let val = props.backgroundImage
|
|
82
|
+
if (!val) return
|
|
83
|
+
const file = context.files && context.files[val]
|
|
84
|
+
if (file && file.content) val = file.content.src
|
|
82
85
|
return ({
|
|
83
|
-
backgroundImage: deps.transformBackgroundImage(
|
|
86
|
+
backgroundImage: deps.transformBackgroundImage(val, globalTheme)
|
|
84
87
|
})
|
|
85
88
|
},
|
|
86
89
|
backgroundSize: ({ props }) => !isUndefined(props.backgroundSize)
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/atoms",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.443",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "367c5a0f2bb72846ade91de72ad4a9960a61b24c",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@domql/state": "latest",
|
|
9
9
|
"@domql/utils": "latest",
|