@plumeria/core 0.6.2 → 0.6.4
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/package.json +11 -8
- package/{dist → types}/css.d.ts +20 -15
- /package/{dist → types}/cx.d.ts +0 -0
- /package/{dist → types}/index.d.ts +0 -0
- /package/{dist → types}/method/create-build-helper.d.ts +0 -0
- /package/{dist → types}/method/create.d.ts +0 -0
- /package/{dist → types}/method/define-theme-vars.d.ts +0 -0
- /package/{dist → types}/method/global-build-helper.d.ts +0 -0
- /package/{dist → types}/method/global.d.ts +0 -0
- /package/{dist → types}/method/keyframes.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plumeria/core",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.4",
|
|
4
4
|
"description": "Near Zero-runtime CSS-in-JS for efficient design systems.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -16,38 +16,41 @@
|
|
|
16
16
|
"exports": {
|
|
17
17
|
"./package.json": "./package.json",
|
|
18
18
|
"./dist/method/create-build-helper": {
|
|
19
|
-
"types": "./
|
|
19
|
+
"types": "./types/method/create-build-helper.d.ts",
|
|
20
20
|
"import": "./dist/method/create-build-helper.mjs",
|
|
21
21
|
"default": "./dist/method/create-build-helper.js"
|
|
22
22
|
},
|
|
23
23
|
"./dist/method/global-build-helper": {
|
|
24
|
-
"types": "./
|
|
24
|
+
"types": "./types/method/global-build-helper.d.ts",
|
|
25
25
|
"import": "./dist/method/global-build-helper.mjs",
|
|
26
26
|
"default": "./dist/method/global-build-helper.js"
|
|
27
27
|
},
|
|
28
28
|
".": {
|
|
29
|
-
"types": "./
|
|
29
|
+
"types": "./types/index.d.ts",
|
|
30
30
|
"import": "./dist/index.mjs",
|
|
31
31
|
"default": "./dist/index.js"
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
"main": "dist/index.js",
|
|
35
35
|
"module": "dist/index.mjs",
|
|
36
|
-
"types": "
|
|
36
|
+
"types": "types/index.d.ts",
|
|
37
37
|
"files": [
|
|
38
|
-
"dist"
|
|
38
|
+
"dist",
|
|
39
|
+
"types"
|
|
39
40
|
],
|
|
40
41
|
"dependencies": {
|
|
41
42
|
"zss-engine": "^0.2.6",
|
|
42
|
-
"@plumeria/collection": "^0.
|
|
43
|
+
"@plumeria/collection": "^0.3.0"
|
|
43
44
|
},
|
|
44
45
|
"publishConfig": {
|
|
45
46
|
"access": "public"
|
|
46
47
|
},
|
|
47
48
|
"scripts": {
|
|
48
|
-
"build": "pnpm esm && pnpm cjs &&
|
|
49
|
+
"build": "shx rm -rf dist && pnpm esm && pnpm cjs && pnpm dts && pnpm css",
|
|
49
50
|
"cjs": "tsc --project tsconfig.cjs.json",
|
|
50
51
|
"esm": "tsc --project tsconfig.esm.json && node build.esm.js",
|
|
52
|
+
"dts": "tsc --project tsconfig.dts.json",
|
|
53
|
+
"css": "shx cp -r src/styles dist",
|
|
51
54
|
"test": "jest --config ../../jest.config.js"
|
|
52
55
|
}
|
|
53
56
|
}
|
package/{dist → types}/css.d.ts
RENAMED
|
@@ -16,9 +16,9 @@ declare class css {
|
|
|
16
16
|
readonly max_lg: "@media (max-width: 1024px)";
|
|
17
17
|
readonly max_xl: "@media (max-width: 1280px)";
|
|
18
18
|
readonly max_2xl: "@media (max-width: 1536px)";
|
|
19
|
-
readonly range: (range: string) =>
|
|
20
|
-
readonly max: (size: string) =>
|
|
21
|
-
readonly min: (size: string) =>
|
|
19
|
+
readonly range: (range: string) => string;
|
|
20
|
+
readonly max: (size: string) => string;
|
|
21
|
+
readonly min: (size: string) => string;
|
|
22
22
|
readonly scheme: {
|
|
23
23
|
readonly dark: "@media (prefers-color-scheme: dark)";
|
|
24
24
|
readonly light: "@media (prefers-color-scheme: light)";
|
|
@@ -31,21 +31,21 @@ declare class css {
|
|
|
31
31
|
readonly link: ":link";
|
|
32
32
|
readonly visited: ":visited";
|
|
33
33
|
readonly target: ":target";
|
|
34
|
-
readonly lang: (str: string) =>
|
|
35
|
-
readonly not: (str: string) =>
|
|
36
|
-
readonly has: (str: string) =>
|
|
37
|
-
readonly is: (str: string) =>
|
|
38
|
-
readonly where: (str: string) =>
|
|
34
|
+
readonly lang: (str: string) => string;
|
|
35
|
+
readonly not: (str: string) => string;
|
|
36
|
+
readonly has: (str: string) => string;
|
|
37
|
+
readonly is: (str: string) => string;
|
|
38
|
+
readonly where: (str: string) => string;
|
|
39
39
|
readonly firstChild: ":first-child";
|
|
40
40
|
readonly lastChild: ":last-child";
|
|
41
41
|
readonly firstOfType: ":first-of-type";
|
|
42
42
|
readonly lastOfType: ":last-of-type";
|
|
43
43
|
readonly onlyOfType: ":only-of-type";
|
|
44
44
|
readonly onlyChild: ":only-child";
|
|
45
|
-
readonly nthChild: (str: string) =>
|
|
46
|
-
readonly nthLastChild: (str: string) =>
|
|
47
|
-
readonly nthLastOfType: (str: string) =>
|
|
48
|
-
readonly nthOfType: (str: string) =>
|
|
45
|
+
readonly nthChild: (str: string) => string;
|
|
46
|
+
readonly nthLastChild: (str: string) => string;
|
|
47
|
+
readonly nthLastOfType: (str: string) => string;
|
|
48
|
+
readonly nthOfType: (str: string) => string;
|
|
49
49
|
readonly empty: ":empty";
|
|
50
50
|
readonly checked: ":checked";
|
|
51
51
|
readonly disabled: ":disabled";
|
|
@@ -64,15 +64,20 @@ declare class css {
|
|
|
64
64
|
readonly firstLine: "::first-line";
|
|
65
65
|
readonly marker: "::marker";
|
|
66
66
|
readonly selection: "::selection";
|
|
67
|
+
readonly viewTransition: "::view-transition";
|
|
68
|
+
readonly viewTransitionImagePair: (str: string) => string;
|
|
69
|
+
readonly viewTransitionGroup: (str: string) => string;
|
|
70
|
+
readonly viewTransitionOld: (str: string) => string;
|
|
71
|
+
readonly viewTransitionNew: (str: string) => string;
|
|
67
72
|
};
|
|
68
73
|
static colors: {
|
|
69
74
|
darken: (color: string, amount: string | number) => string;
|
|
70
75
|
lighten: (color: string, amount: string | number) => string;
|
|
71
76
|
};
|
|
72
77
|
static container: {
|
|
73
|
-
range: (range: string) =>
|
|
74
|
-
max: (size: string) =>
|
|
75
|
-
min: (size: string) =>
|
|
78
|
+
range: (range: string) => string;
|
|
79
|
+
max: (size: string) => string;
|
|
80
|
+
min: (size: string) => string;
|
|
76
81
|
};
|
|
77
82
|
}
|
|
78
83
|
export { css, cx };
|
/package/{dist → types}/cx.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|