@plumeria/core 7.2.4 → 7.3.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/package.json +3 -3
- package/types/css.d.ts +45 -0
- package/lib/css.d.ts +0 -36
- /package/{lib → types}/definition.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plumeria/core",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0",
|
|
4
4
|
"description": "A type-only atomic CSS framework.",
|
|
5
5
|
"author": "Refirst 11",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"stylex",
|
|
23
23
|
"react-native-web"
|
|
24
24
|
],
|
|
25
|
-
"types": "
|
|
25
|
+
"types": "types/css.d.ts",
|
|
26
26
|
"files": [
|
|
27
|
-
"
|
|
27
|
+
"types"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"csstype": "^3.2.3"
|
package/types/css.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type definitions only. Configure the bundler plugin for extraction.
|
|
3
|
+
*```ts
|
|
4
|
+
* type create = <const T extends Record<string, CSSProperties>>(_rule: CreateStyleType<T>)=> ReturnType<T>;
|
|
5
|
+
* type props = (..._rules: (false | CSSProperties | null | undefined)[])=> string;
|
|
6
|
+
* type createTheme = <const T extends CreateTheme>(_rule: T)=> ReturnVariableType<T>;
|
|
7
|
+
* type createStatic = <const T extends CreateStatic>(_rule: T)=> T;
|
|
8
|
+
* type keyframes = (_rule: Keyframes) => string;
|
|
9
|
+
* type viewTransition = (_rule: ViewTransition) => string;
|
|
10
|
+
* type variants = <T extends Variants>(_rule: T) => (_props: { [K in keyof T]?: keyof T[K] }) => CSSProperties;
|
|
11
|
+
* type marker = (_id: string, _pseudo: string) => CSSProperties;
|
|
12
|
+
* type extended = (_id: string, _pseudo: string) => ContainerStyleQuery;
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
declare module '@plumeria/core' {
|
|
16
|
+
export type CSSProperties = import('./definition').CSSProperties;
|
|
17
|
+
export type CreateStyle = import('./definition').CreateStyle;
|
|
18
|
+
export type CreateStyleType<T> = import('./definition').CreateStyleType<T>;
|
|
19
|
+
export type CreateStatic = import('./definition').CreateStatic;
|
|
20
|
+
export type CreateTheme = import('./definition').CreateTheme;
|
|
21
|
+
export type Keyframes = import('./definition').Keyframes;
|
|
22
|
+
export type ViewTransition = import('./definition').ViewTransition;
|
|
23
|
+
export type ReturnType<T> = import('./definition').ReturnType<T>;
|
|
24
|
+
export type ReturnVariableType<T> = import('./definition').ReturnVariableType<T>;
|
|
25
|
+
export type Variants = import('./definition').Variants;
|
|
26
|
+
export type ContainerStyleQuery = import('./definition').ContainerStyleQuery;
|
|
27
|
+
export type create = <const T extends Record<string, CSSProperties>>(_rule: CreateStyleType<T>)=> ReturnType<T>;
|
|
28
|
+
export type props = (..._rules: (false | CSSProperties | null | undefined)[])=> string;
|
|
29
|
+
export type createTheme = <const T extends CreateTheme>(_rule: T)=> ReturnVariableType<T>;
|
|
30
|
+
export type createStatic = <const T extends CreateStatic>(_rule: T)=> T;
|
|
31
|
+
export type keyframes = (_rule: Keyframes) => string;
|
|
32
|
+
export type viewTransition = (_rule: ViewTransition) => string;
|
|
33
|
+
export type variants = <T extends Variants>(_rule: T) => (_props: { [K in keyof T]?: keyof T[K] }) => CSSProperties;
|
|
34
|
+
export type marker = (_id: string, _pseudo: string) => CSSProperties;
|
|
35
|
+
export type extended = (_id: string, _pseudo: string) => ContainerStyleQuery;
|
|
36
|
+
export const create: create;
|
|
37
|
+
export const props: props;
|
|
38
|
+
export const createTheme: createTheme;
|
|
39
|
+
export const createStatic: createStatic;
|
|
40
|
+
export const keyframes: keyframes;
|
|
41
|
+
export const viewTransition: viewTransition;
|
|
42
|
+
export const variants: variants;
|
|
43
|
+
export const marker: marker;
|
|
44
|
+
export const extended: extended;
|
|
45
|
+
}
|
package/lib/css.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ```ts
|
|
3
|
-
* function create<const T extends Record<string, CSSProperties>>(_rule: CreateStyleType<T>): ReturnType<T>;
|
|
4
|
-
* function props(..._rules: (false | CSSProperties | null | undefined)[]): string;
|
|
5
|
-
* function createTheme<const T extends CreateTheme>(_rule: T): ReturnVariableType<T>;
|
|
6
|
-
* function createStatic<const T extends CreateStatic>(_rule: T): T;
|
|
7
|
-
* function keyframes(_rule: Keyframes): string;
|
|
8
|
-
* function viewTransition(_rule: ViewTransition): string;
|
|
9
|
-
* function variants<T extends Variant>(_rule: T): (_props: { [K in keyof T]?: keyof T[K] }) => CSSProperties;
|
|
10
|
-
* function marker(_id: string, _pseudo: string): CSSProperties;
|
|
11
|
-
* function extended(_id: string, _pseudo: string): ContainerStyleQuery;
|
|
12
|
-
* ```
|
|
13
|
-
* Type definitions only. Configure the bundler plugin for extraction.
|
|
14
|
-
*/
|
|
15
|
-
declare module '@plumeria/core' {
|
|
16
|
-
export type CSSProperties = import('./definition').CSSProperties;
|
|
17
|
-
export type CreateStyle = import('./definition').CreateStyle;
|
|
18
|
-
export type CreateStyleType<T> = import('./definition').CreateStyleType<T>;
|
|
19
|
-
export type CreateStatic = import('./definition').CreateStatic;
|
|
20
|
-
export type CreateTheme = import('./definition').CreateTheme;
|
|
21
|
-
export type Keyframes = import('./definition').Keyframes;
|
|
22
|
-
export type ViewTransition = import('./definition').ViewTransition;
|
|
23
|
-
export type ReturnType<T> = import('./definition').ReturnType<T>;
|
|
24
|
-
export type ReturnVariableType<T> = import('./definition').ReturnVariableType<T>;
|
|
25
|
-
export type Variants = import('./definition').Variants;
|
|
26
|
-
export type ContainerStyleQuery = import('./definition').ContainerStyleQuery;
|
|
27
|
-
export function create<const T extends Record<string, CSSProperties>>(_rule: CreateStyleType<T>): ReturnType<T>;
|
|
28
|
-
export function props(..._rules: (false | CSSProperties | null | undefined)[]): string;
|
|
29
|
-
export function createTheme<const T extends CreateTheme>(_rule: T): ReturnVariableType<T>;
|
|
30
|
-
export function createStatic<const T extends CreateStatic>(_rule: T): T;
|
|
31
|
-
export function keyframes(_rule: Keyframes): string;
|
|
32
|
-
export function viewTransition(_rule: ViewTransition): string;
|
|
33
|
-
export function variants<T extends Variants>(_rule: T): (_props: { [K in keyof T]?: keyof T[K] }) => CSSProperties;
|
|
34
|
-
export function marker(_id: string, _pseudo: string): CSSProperties;
|
|
35
|
-
export function extended(_id: string, _pseudo: string): ContainerStyleQuery;
|
|
36
|
-
}
|
|
File without changes
|