css-in-props 2.11.321 → 2.11.352
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 +2 -2
- package/package.json +4 -4
- package/src/index.js +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -19,14 +19,14 @@ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "defau
|
|
|
19
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
20
|
var src_exports = {};
|
|
21
21
|
__export(src_exports, {
|
|
22
|
-
|
|
22
|
+
exetuteClassPerComponent: () => exetuteClassPerComponent
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(src_exports);
|
|
25
25
|
__reExport(src_exports, require("./transform"), module.exports);
|
|
26
26
|
__reExport(src_exports, require("./set"), module.exports);
|
|
27
27
|
__reExport(src_exports, require("./emotion"), module.exports);
|
|
28
28
|
__reExport(src_exports, require("./registry"), module.exports);
|
|
29
|
-
const
|
|
29
|
+
const exetuteClassPerComponent = (component, element) => {
|
|
30
30
|
const classObj = {};
|
|
31
31
|
if (component.class) {
|
|
32
32
|
for (const classProp in component.class) {
|
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.11.
|
|
5
|
+
"version": "2.11.352",
|
|
6
6
|
"repository": "https://github.com/symbo-ls/smbls",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"module": "src/index.js",
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"publishConfig": {},
|
|
15
15
|
"scripts": {
|
|
16
16
|
"copy:package:cjs": "cp ../../build/package-cjs.json dist/cjs/package.json",
|
|
17
|
-
"build:esm": "npx esbuild ./src/*.js --target=
|
|
17
|
+
"build:esm": "npx esbuild ./src/*.js --target=es2017 --format=esm --outdir=dist/esm",
|
|
18
18
|
"build:cjs": "npx esbuild ./src/*.js --target=node16 --format=cjs --outdir=dist/cjs",
|
|
19
|
-
"build:iife": "npx esbuild ./src/index.js --target=
|
|
19
|
+
"build:iife": "npx esbuild ./src/index.js --target=es2017 --format=iife --outdir=dist/iife --bundle --minify",
|
|
20
20
|
"build": "yarn build:cjs",
|
|
21
21
|
"prepublish": "rimraf -I dist && yarn build && yarn copy:package:cjs"
|
|
22
22
|
},
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"@symbo.ls/emotion": "latest",
|
|
31
31
|
"@symbo.ls/scratch": "latest"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "c294479f06e6f576951c7c1cb3df309a08d59dc4"
|
|
34
34
|
}
|
package/src/index.js
CHANGED
|
@@ -5,7 +5,7 @@ export * from './set'
|
|
|
5
5
|
export * from './emotion'
|
|
6
6
|
export * from './registry'
|
|
7
7
|
|
|
8
|
-
export const
|
|
8
|
+
export const exetuteClassPerComponent = (component, element) => {
|
|
9
9
|
const classObj = {}
|
|
10
10
|
if (component.class) {
|
|
11
11
|
for (const classProp in component.class) {
|