@plumeria/core 7.4.0 → 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 +30 -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
@@ -2,15 +2,15 @@
2
2
  * Type definitions only. No runtime implementation provided.
3
3
  * Configure the bundler plugin to extract and implement these APIs.
4
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>;
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>;
14
14
  * ```
15
15
  */
16
16
  declare module '@plumeria/core' {
@@ -27,26 +27,26 @@ declare module '@plumeria/core' {
27
27
  Extended,
28
28
  } from './types';
29
29
 
30
- type CSSProperties = import('./types').CSSProperties;
31
- type CreateStyle = import('./types').CreateStyle;
30
+ export type CSSProperties = import('./types').CSSProperties;
31
+ export type CreateStyle = import('./types').CreateStyle;
32
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>;
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
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
- }
43
+ export const create: create;
44
+ export const props: props;
45
+ export const createTheme: createTheme;
46
+ export const createStatic: createStatic;
47
+ export const keyframes: keyframes;
48
+ export const viewTransition: viewTransition;
49
+ export const variants: variants;
50
+ export const marker: marker;
51
+ export const extended: extended;
52
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@plumeria/core",
3
- "version": "7.4.0",
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",