@symbo.ls/atoms 2.11.247 → 2.11.255

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/Animation.js CHANGED
@@ -28,7 +28,6 @@ export const Animation = {
28
28
  animationName: (el) => el.props.animationName && {
29
29
  animationName: el.deps.applyAnimationProps(el.props.animationName, el)
30
30
  },
31
-
32
31
  animationDuration: ({ props, deps }) => props.animationDuration && ({
33
32
  animationDuration: deps.getTimingByKey(props.animationDuration).timing
34
33
  }),
package/Media.js CHANGED
@@ -45,9 +45,8 @@ const execClass = (key, props, result, element) => {
45
45
  state: element.state,
46
46
  deps: element.deps
47
47
  })
48
- if (isArray(classExec)) {
49
- classExec = classExec.reduce((a, c) => merge(a, c), {})
50
- }
48
+
49
+ if (isArray(classExec)) classExec = classExec.reduce((a, c) => merge(a, c), {})
51
50
 
52
51
  for (const finalProp in classExec) {
53
52
  result[finalProp] = classExec[finalProp]
@@ -162,6 +161,13 @@ const beforeClassAssign = (element, s) => {
162
161
  if (setter) setter(key, props[key], CLASS_NAMES, element)
163
162
  }
164
163
 
164
+ // override props
165
+ if (props['-']) {
166
+ for (const key in props['-']) {
167
+ execClass(key, props, CLASS_NAMES, element)
168
+ }
169
+ }
170
+
165
171
  const parentProps = element.parent && element.parent.props
166
172
  if (parentProps && parentProps.spacingRatio && parentProps.inheritSpacingRatio) {
167
173
  element.setProps({
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/atoms",
3
- "version": "2.11.247",
3
+ "version": "2.11.255",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "8d02fd2978b0ae207eab84fcb3f5e2be11351e61",
6
+ "gitHead": "789077788ae862a474a34ae9d8844186c44624c1",
7
7
  "dependencies": {
8
8
  "@domql/state": "latest",
9
9
  "@domql/utils": "latest",