@plumeria/core 7.3.8 → 7.4.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 +39 -33
- package/package.json +1 -1
package/lib/css.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Type
|
|
3
|
-
|
|
2
|
+
* Type definitions only. No runtime implementation provided.
|
|
3
|
+
* Configure the bundler plugin to extract and implement these APIs.
|
|
4
|
+
* ```ts
|
|
4
5
|
* type create = <const T extends Record<string, CSSProperties>>(_rule: CreateStyleType<T>)=> ReturnType<T>;
|
|
5
6
|
* type props = (..._rules: (false | CSSProperties | null | undefined)[])=> string;
|
|
6
7
|
* type createTheme = <const T extends CreateTheme>(_rule: T)=> ReturnVariableType<T>;
|
|
@@ -13,34 +14,39 @@
|
|
|
13
14
|
* ```
|
|
14
15
|
*/
|
|
15
16
|
declare module '@plumeria/core' {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
17
|
+
import type {
|
|
18
|
+
CreateStyleType,
|
|
19
|
+
CreateStatic,
|
|
20
|
+
CreateTheme,
|
|
21
|
+
Keyframes,
|
|
22
|
+
ViewTransition,
|
|
23
|
+
ReturnType,
|
|
24
|
+
ReturnVariableType,
|
|
25
|
+
Variants,
|
|
26
|
+
Marker,
|
|
27
|
+
Extended,
|
|
28
|
+
} from './types';
|
|
29
|
+
|
|
30
|
+
type CSSProperties = import('./types').CSSProperties;
|
|
31
|
+
type CreateStyle = import('./types').CreateStyle;
|
|
32
|
+
|
|
33
|
+
type create = <const T extends Record<string, CSSProperties>>(_rule: CreateStyleType<T>)=> ReturnType<T>;
|
|
34
|
+
type props = (..._rules: (false | CSSProperties | null | undefined)[])=> string;
|
|
35
|
+
type createTheme = <const T extends CreateTheme>(_rule: T)=> ReturnVariableType<T>;
|
|
36
|
+
type createStatic = <const T extends CreateStatic>(_rule: T)=> T;
|
|
37
|
+
type keyframes = (_rule: Keyframes) => string;
|
|
38
|
+
type viewTransition = (_rule: ViewTransition) => string;
|
|
39
|
+
type variants = <T extends Variants>(_rule: T) => (_props: { [K in keyof T]?: keyof T[K] }) => CSSProperties;
|
|
40
|
+
type marker = (_id: string, _pseudo: string) => Marker;
|
|
41
|
+
type extended = <I extends string, P extends string>(_id: I, _pseudo: P) => Extended<I, P>;
|
|
42
|
+
|
|
43
|
+
const create: create;
|
|
44
|
+
const props: props;
|
|
45
|
+
const createTheme: createTheme;
|
|
46
|
+
const createStatic: createStatic;
|
|
47
|
+
const keyframes: keyframes;
|
|
48
|
+
const viewTransition: viewTransition;
|
|
49
|
+
const variants: variants;
|
|
50
|
+
const marker: marker;
|
|
51
|
+
const extended: extended;
|
|
52
|
+
}
|