@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.
Files changed (3) hide show
  1. package/README.md +2 -1
  2. package/lib/css.d.ts +36 -30
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # @plumeria/core
2
2
 
3
- A type-driven styling framework for maintainable UI.
3
+ **Type-Only CSS Extract**
4
+ Build-time Compilation・No Bundle Size
4
5
 
5
6
  ```ts
6
7
  import * as css from '@plumeria/core';
package/lib/css.d.ts CHANGED
@@ -1,39 +1,45 @@
1
1
  /**
2
- * Type types 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) => Marker;
12
- * type extended = <I extends string, P extends string>(_id: I, _pseudo: P) => Extended<I, P>;
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
- 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>;
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.3.8",
4
- "description": "A type-driven styling framework for maintainable UI.",
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",