@plumeria/core 7.3.8 → 7.4.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 +2 -1
- package/lib/css.d.ts +36 -30
- package/package.json +2 -2
package/README.md
CHANGED
package/lib/css.d.ts
CHANGED
|
@@ -1,39 +1,45 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Type
|
|
3
|
-
|
|
4
|
-
*
|
|
5
|
-
* type
|
|
6
|
-
* type
|
|
7
|
-
* type
|
|
8
|
-
* type
|
|
9
|
-
* type
|
|
10
|
-
* type
|
|
11
|
-
* type
|
|
12
|
-
* type
|
|
2
|
+
* Type definitions only. No runtime implementation provided.
|
|
3
|
+
* Configure the bundler plugin to extract and implement these APIs.
|
|
4
|
+
* ```ts
|
|
5
|
+
* type create = <const T extends Record<string, CSSProperties>>(rule: CreateStyleType<T>)=> ReturnType<T>;
|
|
6
|
+
* type props = (...rules: (false | CSSProperties | null | undefined)[])=> string;
|
|
7
|
+
* type createTheme = <const T extends CreateTheme>(rule: T)=> ReturnVariableType<T>;
|
|
8
|
+
* type createStatic = <const T extends CreateStatic>(rule: T)=> T;
|
|
9
|
+
* type keyframes = (rule: Keyframes) => string;
|
|
10
|
+
* type viewTransition = (rule: ViewTransition) => string;
|
|
11
|
+
* type variants = <T extends Variants>(rule: T) => (props: { [K in keyof T]?: keyof T[K] }) => CSSProperties;
|
|
12
|
+
* type marker = (id: string, pseudo: string) => Marker;
|
|
13
|
+
* type extended = <I extends string, P extends string>(id: I, pseudo: P) => Extended<I, P>;
|
|
13
14
|
* ```
|
|
14
15
|
*/
|
|
15
16
|
declare module '@plumeria/core' {
|
|
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
|
+
|
|
16
30
|
export type CSSProperties = import('./types').CSSProperties;
|
|
17
31
|
export type CreateStyle = import('./types').CreateStyle;
|
|
18
|
-
|
|
19
|
-
export type
|
|
20
|
-
export type
|
|
21
|
-
export type
|
|
22
|
-
export type
|
|
23
|
-
export type
|
|
24
|
-
export type
|
|
25
|
-
export type
|
|
26
|
-
export type
|
|
27
|
-
export type
|
|
28
|
-
|
|
29
|
-
export type props = (..._rules: (false | CSSProperties | null | undefined)[])=> string;
|
|
30
|
-
export type createTheme = <const T extends CreateTheme>(_rule: T)=> ReturnVariableType<T>;
|
|
31
|
-
export type createStatic = <const T extends CreateStatic>(_rule: T)=> T;
|
|
32
|
-
export type keyframes = (_rule: Keyframes) => string;
|
|
33
|
-
export type viewTransition = (_rule: ViewTransition) => string;
|
|
34
|
-
export type variants = <T extends Variants>(_rule: T) => (_props: { [K in keyof T]?: keyof T[K] }) => CSSProperties;
|
|
35
|
-
export type marker = (_id: string, _pseudo: string) => Marker;
|
|
36
|
-
export type extended = <I extends string, P extends string>(_id: I, _pseudo: P) => Extended<I, P>;
|
|
32
|
+
|
|
33
|
+
export type create = <const T extends Record<string, CSSProperties>>(rule: CreateStyleType<T>)=> ReturnType<T>;
|
|
34
|
+
export type props = (...rules: (false | CSSProperties | null | undefined)[])=> string;
|
|
35
|
+
export type createTheme = <const T extends CreateTheme>(rule: T)=> ReturnVariableType<T>;
|
|
36
|
+
export type createStatic = <const T extends CreateStatic>(rule: T)=> T;
|
|
37
|
+
export type keyframes = (rule: Keyframes) => string;
|
|
38
|
+
export type viewTransition = (rule: ViewTransition) => string;
|
|
39
|
+
export type variants = <T extends Variants>(rule: T) => (props: { [K in keyof T]?: keyof T[K] }) => CSSProperties;
|
|
40
|
+
export type marker = (id: string, pseudo: string) => Marker;
|
|
41
|
+
export type extended = <I extends string, P extends string>(id: I, pseudo: P) => Extended<I, P>;
|
|
42
|
+
|
|
37
43
|
export const create: create;
|
|
38
44
|
export const props: props;
|
|
39
45
|
export const createTheme: createTheme;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plumeria/core",
|
|
3
|
-
"version": "7.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "7.4.1",
|
|
4
|
+
"description": "Type-Only CSS Extract",
|
|
5
5
|
"author": "Refirst 11",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://github.com/sponsors/refirst11",
|