@plumeria/core 10.0.1 → 10.0.2

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 +4 -1
  2. package/package.json +1 -1
package/lib/css.d.ts CHANGED
@@ -10,6 +10,7 @@
10
10
  * type variants = <T extends Variants>(rule: T) => (props: { [K in keyof T]?: keyof T[K] }) => CSSProperties;
11
11
  * type marker = (id: string, pseudo: string) => Marker;
12
12
  * type extended = <I extends string, P extends string>(id: I, pseudo: P) => Extended<I, P>;
13
+ * type use = (...rules: (false | CSSProperties | null | undefined)[])=> string;
13
14
  * ```
14
15
  */
15
16
  declare module '@plumeria/core' {
@@ -30,7 +31,7 @@ declare module '@plumeria/core' {
30
31
  export type CSSProperties = import('./types').CSSProperties;
31
32
  export type CreateStyle = import('./types').CreateStyle;
32
33
 
33
- export type create = <const T extends Record<string, CreateStyleValue>>(rule: CreateStyleType<T>)=> CreateReturnType<T>;
34
+ export type create = <const T extends Record<string, CreateStyleValue>>(rule: CreateStyleType<T>)=> CreateReturnType<T>;
34
35
  export type createTheme = <const T extends CreateTheme>(rule: T)=> ReturnVariableType<T>;
35
36
  export type createStatic = <const T extends CreateStatic>(rule: T)=> T;
36
37
  export type keyframes = (rule: Keyframes) => string;
@@ -38,6 +39,7 @@ declare module '@plumeria/core' {
38
39
  export type variants = <T extends Variants>(rule: T) => (props: { [K in keyof T]?: keyof T[K] }) => CSSProperties;
39
40
  export type marker = (id: string, pseudo: string) => Marker;
40
41
  export type extended = <I extends string, P extends string>(id: I, pseudo: P) => Extended<I, P>;
42
+ export type use = (...rules: (false | CSSProperties | null | undefined)[])=> string;
41
43
 
42
44
  export const create: create;
43
45
  export const createTheme: createTheme;
@@ -47,6 +49,7 @@ declare module '@plumeria/core' {
47
49
  export const variants: variants;
48
50
  export const marker: marker;
49
51
  export const extended: extended;
52
+ export const use: use;
50
53
 
51
54
  declare global {
52
55
  namespace React {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/core",
3
- "version": "10.0.1",
3
+ "version": "10.0.2",
4
4
  "description": "A styling system that disappears.",
5
5
  "author": "Refirst 11",
6
6
  "license": "MIT",