@symbo.ls/atoms 2.11.440 → 2.11.442

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 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: ({ props }) => props.cursor && ({ cursor: props.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 = 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
- if (!props.backgroundImage) return
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(props.backgroundImage, globalTheme)
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.440",
3
+ "version": "2.11.442",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "2c0cfa861152d979e4c49d0fe945b4671710ac63",
6
+ "gitHead": "60703b95e42c583fd5cdae32cf3484197e9ccd69",
7
7
  "dependencies": {
8
8
  "@domql/state": "latest",
9
9
  "@domql/utils": "latest",