css-in-props 2.10.186 → 2.10.187

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.
@@ -38,10 +38,11 @@ const transformClassname = (props, context = {}, registry = import_registry.CSS_
38
38
  const exec = (0, import_utils.isArray)(stack) ? stack.reduce((a, c) => {
39
39
  return (0, import_utils.merge)(a, c);
40
40
  }, {}) : stack;
41
- (0, import_utils.merge)(CLASS_NAMES, exec);
41
+ (0, import_utils.deepMerge)(CLASS_NAMES, exec);
42
42
  } else if (key === "style") {
43
- CLASS_NAMES.style = props[key];
43
+ (0, import_utils.deepMerge)(CLASS_NAMES, props[key]);
44
44
  }
45
45
  }
46
+ console.log(CLASS_NAMES);
46
47
  return CLASS_NAMES;
47
48
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "css-in-props",
3
3
  "description": "Utilize props as CSS methods",
4
4
  "author": "symbo.ls",
5
- "version": "2.10.186",
5
+ "version": "2.10.187",
6
6
  "repository": "https://github.com/symbo-ls/smbls",
7
7
  "type": "module",
8
8
  "module": "index.js",
@@ -30,5 +30,5 @@
30
30
  "@symbo.ls/emotion": "latest",
31
31
  "@symbo.ls/scratch": "latest"
32
32
  },
33
- "gitHead": "c60477f829e963eb56ad1202c1452c83a2a34dad"
33
+ "gitHead": "00efdf24ddc738cbc544b0df43e5ee0b90d2b9c7"
34
34
  }
package/src/transform.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict'
2
2
 
3
- import { merge, isFunction, isObject, isArray } from '@domql/utils'
3
+ import { merge, deepMerge, isFunction, isObject, isArray } from '@domql/utils'
4
4
  import { keySetters } from '@symbo.ls/atoms'
5
5
 
6
6
  import { CSS_PROPS_REGISTRY } from './registry'
@@ -19,10 +19,13 @@ export const transformClassname = (props, context = {}, registry = CSS_PROPS_REG
19
19
  const exec = isArray(stack) ? stack.reduce((a, c) => {
20
20
  return merge(a, c)
21
21
  }, {}) : stack
22
- merge(CLASS_NAMES, exec)
22
+ deepMerge(CLASS_NAMES, exec)
23
+ }
24
+ else if (key === 'style') {
25
+ deepMerge(CLASS_NAMES, props[key])
23
26
  }
24
- else if (key === 'style') { CLASS_NAMES.style = props[key] }
25
27
  }
28
+ console.log(CLASS_NAMES)
26
29
 
27
30
  return CLASS_NAMES
28
31
  }