@plumeria/core 12.0.8 → 13.0.0
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/lib/css.d.ts +2 -1
- package/lib/types.d.ts +6 -1
- package/package.json +1 -1
package/lib/css.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Configure the bundler plugin to extract and implement these APIs.
|
|
4
4
|
* ```ts
|
|
5
5
|
* type create = <const T extends Record<string, CreateStyleValue>>(rule: T)=> CreateReturnType<T>;
|
|
6
|
-
* type createTheme = <const T extends CreateTheme>(rule: T)=> ReturnVariableType<T>;
|
|
6
|
+
* type createTheme = <const T extends CreateTheme>(themeSelector: string, rule: T) => ReturnVariableType<T>;
|
|
7
7
|
* type createStatic = <const T extends CreateStatic>(rule: T)=> T;
|
|
8
8
|
* type keyframes = <const T extends Keyframes>(rule: T) => string;
|
|
9
9
|
* type viewTransition = <const T extends ViewTransition>(rule: T) => string;
|
|
@@ -46,6 +46,7 @@ declare module '@plumeria/core' {
|
|
|
46
46
|
|
|
47
47
|
export const createTheme: createTheme;
|
|
48
48
|
export type createTheme = <const T extends CreateTheme>(
|
|
49
|
+
themeSelector: string,
|
|
49
50
|
rule: T,
|
|
50
51
|
) => ReturnVariableType<T>;
|
|
51
52
|
|
package/lib/types.d.ts
CHANGED
|
@@ -46,7 +46,12 @@ type StyleName = CSSProperties | (false | CSSProperties | null | undefined)[];
|
|
|
46
46
|
|
|
47
47
|
type CreateStatic = Record<string, string | number>;
|
|
48
48
|
|
|
49
|
-
type CreateTheme =
|
|
49
|
+
type CreateTheme = {
|
|
50
|
+
[key: string]: {
|
|
51
|
+
default: string | number;
|
|
52
|
+
theme: string | number;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
50
55
|
type ReturnVariableType<T> = { [K in keyof T]: CSSVariableValue };
|
|
51
56
|
|
|
52
57
|
type KeyframesInSelector = 'from' | 'to' | `${number}%`;
|