@plumeria/core 9.0.4 → 9.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/README.md +1 -1
- package/lib/style.d.ts +3 -3
- package/lib/types.d.ts +2 -2
- package/package.json +6 -6
package/README.md
CHANGED
package/lib/style.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Type definitions only. No runtime implementation provided.
|
|
3
3
|
* Configure the bundler plugin to extract and implement these APIs.
|
|
4
4
|
* ```ts
|
|
5
|
-
* type create = <const T extends Record<string, CSSProperties>>(rule: CreateStyleType<T>)=>
|
|
5
|
+
* type create = <const T extends Record<string, CSSProperties>>(rule: CreateStyleType<T>)=> CreateReturnType<T>;
|
|
6
6
|
* type use = (...rules: (false | CSSProperties | null | undefined)[])=> string;
|
|
7
7
|
* type createTheme = <const T extends CreateTheme>(rule: T)=> ReturnVariableType<T>;
|
|
8
8
|
* type createStatic = <const T extends CreateStatic>(rule: T)=> T;
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
declare module '@plumeria/core' {
|
|
17
17
|
import type {
|
|
18
18
|
CreateStyleType,
|
|
19
|
+
CreateReturnType,
|
|
19
20
|
CreateStatic,
|
|
20
21
|
CreateTheme,
|
|
21
22
|
Keyframes,
|
|
22
23
|
ViewTransition,
|
|
23
|
-
ReturnType,
|
|
24
24
|
ReturnVariableType,
|
|
25
25
|
Variants,
|
|
26
26
|
Marker,
|
|
@@ -30,7 +30,7 @@ declare module '@plumeria/core' {
|
|
|
30
30
|
export type CSSProperties = import('./types').CSSProperties;
|
|
31
31
|
export type CreateStyle = import('./types').CreateStyle;
|
|
32
32
|
|
|
33
|
-
export type create = <const T extends Record<string, CSSProperties>>(rule: CreateStyleType<T>)=>
|
|
33
|
+
export type create = <const T extends Record<string, CSSProperties>>(rule: CreateStyleType<T>)=> CreateReturnType<T>;
|
|
34
34
|
export type use = (...rules: (false | CSSProperties | null | undefined)[])=> string;
|
|
35
35
|
export type createTheme = <const T extends CreateTheme>(rule: T)=> ReturnVariableType<T>;
|
|
36
36
|
export type createStatic = <const T extends CreateStatic>(rule: T)=> T;
|
package/lib/types.d.ts
CHANGED
|
@@ -117,7 +117,7 @@ type CreateStyle = {
|
|
|
117
117
|
[key: string]: CSSProperties;
|
|
118
118
|
};
|
|
119
119
|
|
|
120
|
-
type
|
|
120
|
+
type CreateReturnType<T> = {
|
|
121
121
|
[K in keyof T]: Readonly<{
|
|
122
122
|
[P in keyof T[K]]: T[K][P];
|
|
123
123
|
}>;
|
|
@@ -154,11 +154,11 @@ export type {
|
|
|
154
154
|
CSSProperties,
|
|
155
155
|
CreateStyle,
|
|
156
156
|
CreateStyleType,
|
|
157
|
+
CreateReturnType,
|
|
157
158
|
CreateStatic,
|
|
158
159
|
CreateTheme,
|
|
159
160
|
Keyframes,
|
|
160
161
|
ViewTransition,
|
|
161
|
-
ReturnType,
|
|
162
162
|
ReturnVariableType,
|
|
163
163
|
Variants,
|
|
164
164
|
Marker,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plumeria/core",
|
|
3
|
-
"version": "9.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "9.1.1",
|
|
4
|
+
"description": "A styling system that disappears.",
|
|
5
5
|
"author": "Refirst 11",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://github.com/sponsors/refirst11",
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"url": "https://github.com/zss-in-js/plumeria/issues"
|
|
16
16
|
},
|
|
17
17
|
"keywords": [
|
|
18
|
-
"plumeria",
|
|
19
18
|
"atomic-css",
|
|
20
|
-
"
|
|
21
|
-
"
|
|
19
|
+
"css-in-js",
|
|
20
|
+
"zero-runtime",
|
|
22
21
|
"stylex",
|
|
23
|
-
"
|
|
22
|
+
"pigment-css",
|
|
23
|
+
"vanilla-extract"
|
|
24
24
|
],
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"type": "module",
|