css-in-props 3.0.100 → 3.1.1

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/dist/cjs/index.js CHANGED
@@ -16,7 +16,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
16
16
  var index_exports = {};
17
17
  module.exports = __toCommonJS(index_exports);
18
18
  __reExport(index_exports, require("./transform"), module.exports);
19
- __reExport(index_exports, require("./set"), module.exports);
20
19
  __reExport(index_exports, require("./emotion"), module.exports);
21
20
  __reExport(index_exports, require("./props"), module.exports);
22
21
  __reExport(index_exports, require("./props/defaults"), module.exports);
@@ -67,7 +67,7 @@ const usePropsAsCSS = (sourceObj, element, opts) => {
67
67
  } else if (import_defaults.DEFAULT_CSS_PROPERTIES_LIST.includes(key)) {
68
68
  const result = (0, import_utils.exec)(value, element);
69
69
  setToObj(key, { [key]: result });
70
- if (!isProd) obj[key].label = key;
70
+ if (!isProd && (0, import_utils.isObject)(obj[key])) obj[key].label = key;
71
71
  } else {
72
72
  rest[key] = value;
73
73
  }
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": "3.0.100",
5
+ "version": "3.1.1",
6
6
  "repository": "https://github.com/symbo-ls/smbls",
7
7
  "type": "module",
8
8
  "module": "src/index.js",
@@ -25,10 +25,10 @@
25
25
  "dist"
26
26
  ],
27
27
  "dependencies": {
28
- "@domql/utils": "^3.0.0",
29
- "@symbo.ls/atoms": "^3.0.100",
30
- "@symbo.ls/emotion": "^3.0.1",
31
- "@symbo.ls/scratch": "^3.0.2"
28
+ "@domql/utils": "^3.1.1",
29
+ "@symbo.ls/atoms": "^3.1.1",
30
+ "@symbo.ls/emotion": "^3.1.1",
31
+ "@symbo.ls/scratch": "^3.1.1"
32
32
  },
33
- "gitHead": "1302a0674cc4d420f304737973a7f7bece86f359"
33
+ "gitHead": "39fb7a8c07355468ccce79e2f787ca3fa0715692"
34
34
  }
package/src/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict'
2
2
 
3
3
  export * from './transform'
4
- export * from './set'
4
+ // export * from './set'
5
5
  export * from './emotion'
6
6
  export * from './props'
7
7
  export * from './props/defaults'
@@ -57,7 +57,7 @@ export const usePropsAsCSS = (sourceObj, element, opts) => {
57
57
  // they can be grouped
58
58
  const result = exec(value, element)
59
59
  setToObj(key, { [key]: result })
60
- if (!isProd) obj[key].label = key
60
+ if (!isProd && isObject(obj[key])) obj[key].label = key
61
61
  } else {
62
62
  rest[key] = value
63
63
  }