@plumeria/core 7.3.7 → 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.
Files changed (2) hide show
  1. package/lib/css.d.ts +39 -33
  2. package/package.json +2 -1
package/lib/css.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  /**
2
- * Type types only. Configure the bundler plugin for extraction.
3
- *```ts
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
- export type CSSProperties = import('./types').CSSProperties;
17
- export type CreateStyle = import('./types').CreateStyle;
18
- export type CreateStyleType<T> = import('./types').CreateStyleType<T>;
19
- export type CreateStatic = import('./types').CreateStatic;
20
- export type CreateTheme = import('./types').CreateTheme;
21
- export type Keyframes = import('./types').Keyframes;
22
- export type ViewTransition = import('./types').ViewTransition;
23
- export type ReturnType<T> = import('./types').ReturnType<T>;
24
- export type ReturnVariableType<T> = import('./types').ReturnVariableType<T>;
25
- export type Variants = import('./types').Variants;
26
- export type Marker = import('./types').Marker;
27
- export type Extended<I extends string, P extends string> = import('./types').Extended<I, P>;
28
- export type create = <const T extends Record<string, CSSProperties>>(_rule: CreateStyleType<T>)=> ReturnType<T>;
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>;
37
- export const create: create;
38
- export const props: props;
39
- export const createTheme: createTheme;
40
- export const createStatic: createStatic;
41
- export const keyframes: keyframes;
42
- export const viewTransition: viewTransition;
43
- export const variants: variants;
44
- export const marker: marker;
45
- export const extended: extended;
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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/core",
3
- "version": "7.3.7",
3
+ "version": "7.4.0",
4
4
  "description": "A type-driven styling framework for maintainable UI.",
5
5
  "author": "Refirst 11",
6
6
  "license": "MIT",
@@ -22,6 +22,7 @@
22
22
  "stylex",
23
23
  "react-native-web"
24
24
  ],
25
+ "sideEffects": false,
25
26
  "type": "module",
26
27
  "exports": {
27
28
  ".": {