@plumeria/core 10.0.8 → 10.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/lib/css.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Type definitions only. No runtime implementation provided.
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, CreateStyleValue>>(rule: CreateStyleType<T>)=> CreateReturnType<T>;
5
+ * type create = <const T extends Record<string, CreateStyleValue>>(rule: T)=> CreateReturnType<T>;
6
6
  * type createTheme = <const T extends CreateTheme>(rule: T)=> ReturnVariableType<T>;
7
7
  * type createStatic = <const T extends CreateStatic>(rule: T)=> T;
8
8
  * type keyframes = (rule: Keyframes) => string;
@@ -16,9 +16,8 @@
16
16
  declare module '@plumeria/core' {
17
17
  import type {
18
18
  StyleName,
19
- CSSProperties,
19
+ CSSProperties,
20
20
  CreateStyleValue,
21
- CreateStyleType,
22
21
  CreateReturnType,
23
22
  CreateStatic,
24
23
  CreateTheme,
@@ -38,23 +37,41 @@ declare module '@plumeria/core' {
38
37
  }
39
38
  }
40
39
 
41
- export type create = <const T extends Record<string, CreateStyleValue>>(rule: CreateStyleType<T>)=> CreateReturnType<T>;
42
- export type createTheme = <const T extends CreateTheme>(rule: T)=> ReturnVariableType<T>;
43
- export type createStatic = <const T extends CreateStatic>(rule: T)=> T;
44
- export type keyframes = (rule: Keyframes) => string;
45
- export type viewTransition = (rule: ViewTransition) => string;
46
- export type variants = <T extends Variants>(rule: T) => (props: { [K in keyof T]?: keyof T[K] }) => CSSProperties;
47
- export type marker = (id: string, pseudo: string) => Marker;
48
- export type extended = <I extends string, P extends string>(id: I, pseudo: P) => Extended<I, P>;
49
- export type use = (...rules: (false | CSSProperties | null | undefined)[])=> string;
50
-
51
40
  export const create: create;
41
+ export type create = <const T extends Record<string, CreateStyleValue>>(
42
+ rule: T,
43
+ ) => CreateReturnType<T>;
44
+
52
45
  export const createTheme: createTheme;
46
+ export type createTheme = <const T extends CreateTheme>(
47
+ rule: T,
48
+ ) => ReturnVariableType<T>;
49
+
53
50
  export const createStatic: createStatic;
51
+ export type createStatic = <const T extends CreateStatic>(rule: T) => T;
52
+
54
53
  export const keyframes: keyframes;
54
+ export type keyframes = (rule: Keyframes) => string;
55
+
55
56
  export const viewTransition: viewTransition;
57
+ export type viewTransition = (rule: ViewTransition) => string;
58
+
56
59
  export const variants: variants;
60
+ export type variants = <T extends Variants>(
61
+ rule: T,
62
+ ) => (props: { [K in keyof T]?: keyof T[K] }) => CSSProperties;
63
+
57
64
  export const marker: marker;
65
+ export type marker = (id: string, pseudo: string) => Marker;
66
+
58
67
  export const extended: extended;
68
+ export type extended = <I extends string, P extends string>(
69
+ id: I,
70
+ pseudo: P,
71
+ ) => Extended<I, P>;
72
+
59
73
  export const use: use;
74
+ export type use = (
75
+ ...rules: (false | CSSProperties | null | undefined)[]
76
+ ) => string;
60
77
  }