@plumeria/core 3.0.0 → 3.0.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.
package/dist/css.d.ts CHANGED
@@ -61,18 +61,18 @@ type ViewTransition = {
61
61
  old?: CSSProperties;
62
62
  };
63
63
 
64
- declare class _css {
65
- static create<const T extends Record<string, CSSProperties>>(rule: CreateStyleType<T>): ReturnType<T>;
66
- static props(...rules: (false | Readonly<CSSProperties> | null | undefined)[]): string;
67
- static createTheme<const T extends CreateTheme>(rule: T): ReturnVariableType<T>;
68
- static createStatic<const T extends CreateStatic>(rule: T): T;
69
- static keyframes(rule: Keyframes): string;
70
- static viewTransition(rule: ViewTransition): string;
71
- }
64
+ declare const css: {
65
+ new (): {};
66
+ create<const T extends Record<string, CSSProperties>>(_rule: CreateStyleType<T>): ReturnType<T>;
67
+ props(...rules: (false | CSSProperties | null | undefined)[]): string;
68
+ createTheme<const T extends CreateTheme>(_rule: T): ReturnVariableType<T>;
69
+ createStatic<const T extends CreateStatic>(_rule: T): T;
70
+ keyframes(_rule: Keyframes): string;
71
+ viewTransition(_rule: ViewTransition): string;
72
+ };
72
73
  declare const x: (className: string, styles: Styles) => {
73
74
  className: string;
74
75
  styles: Styles;
75
76
  };
76
- declare const css: typeof _css;
77
77
 
78
78
  export { type CSSProperties, type CreateStyle, css, x };
package/dist/css.js CHANGED
@@ -1,50 +1,31 @@
1
1
 
2
2
  function errorFn(fn) {
3
- throw new Error("Using the \"css." + fn + "\" is runtime not supported. Make sure you have setup bundler-plugin correctly.");
3
+ throw new Error(`css.${fn} requires bundler-plugin setup`);
4
4
  }
5
- function create(_rule) {
6
- throw errorFn("create");
7
- }
8
- function props(...rules) {
9
- return rules.filter(Boolean).join(" ");
10
- }
11
- function createStatic(_rule) {
12
- throw errorFn("createStatic");
13
- }
14
- function createTheme(_rule) {
15
- throw errorFn("createTheme");
16
- }
17
- function keyframes(_rule) {
18
- throw errorFn("keyframes");
19
- }
20
- function viewTransition(_rule) {
21
- throw errorFn("viewTransition");
22
- }
23
- var _css = class {
24
- static create(rule) {
25
- return create(rule);
5
+ const css = class _css {
6
+ static create(_rule) {
7
+ throw errorFn("create");
26
8
  }
27
9
  static props(...rules) {
28
- return props(...rules);
10
+ return rules.filter(Boolean).join(" ");
29
11
  }
30
- static createTheme(rule) {
31
- return createTheme(rule);
12
+ static createTheme(_rule) {
13
+ throw errorFn("createTheme");
32
14
  }
33
- static createStatic(rule) {
34
- return createStatic(rule);
15
+ static createStatic(_rule) {
16
+ throw errorFn("createStatic");
35
17
  }
36
- static keyframes(rule) {
37
- return keyframes(rule);
18
+ static keyframes(_rule) {
19
+ throw errorFn("keyframes");
38
20
  }
39
- static viewTransition(rule) {
40
- return viewTransition(rule);
21
+ static viewTransition(_rule) {
22
+ throw errorFn("viewTransition");
41
23
  }
42
24
  };
43
25
  const x = (className, styles) => ({
44
26
  className,
45
27
  styles
46
28
  });
47
- const css = _css;
48
29
 
49
30
  exports.css = css;
50
31
  exports.x = x;
package/dist/css.mjs CHANGED
@@ -1,49 +1,30 @@
1
1
 
2
2
  function errorFn(fn) {
3
- throw new Error("Using the \"css." + fn + "\" is runtime not supported. Make sure you have setup bundler-plugin correctly.");
3
+ throw new Error(`css.${fn} requires bundler-plugin setup`);
4
4
  }
5
- function create(_rule) {
6
- throw errorFn("create");
7
- }
8
- function props(...rules) {
9
- return rules.filter(Boolean).join(" ");
10
- }
11
- function createStatic(_rule) {
12
- throw errorFn("createStatic");
13
- }
14
- function createTheme(_rule) {
15
- throw errorFn("createTheme");
16
- }
17
- function keyframes(_rule) {
18
- throw errorFn("keyframes");
19
- }
20
- function viewTransition(_rule) {
21
- throw errorFn("viewTransition");
22
- }
23
- var _css = class {
24
- static create(rule) {
25
- return create(rule);
5
+ const css = class _css {
6
+ static create(_rule) {
7
+ throw errorFn("create");
26
8
  }
27
9
  static props(...rules) {
28
- return props(...rules);
10
+ return rules.filter(Boolean).join(" ");
29
11
  }
30
- static createTheme(rule) {
31
- return createTheme(rule);
12
+ static createTheme(_rule) {
13
+ throw errorFn("createTheme");
32
14
  }
33
- static createStatic(rule) {
34
- return createStatic(rule);
15
+ static createStatic(_rule) {
16
+ throw errorFn("createStatic");
35
17
  }
36
- static keyframes(rule) {
37
- return keyframes(rule);
18
+ static keyframes(_rule) {
19
+ throw errorFn("keyframes");
38
20
  }
39
- static viewTransition(rule) {
40
- return viewTransition(rule);
21
+ static viewTransition(_rule) {
22
+ throw errorFn("viewTransition");
41
23
  }
42
24
  };
43
25
  const x = (className, styles) => ({
44
26
  className,
45
27
  styles
46
28
  });
47
- const css = _css;
48
29
 
49
30
  export { css, x };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/core",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "An atomic CSS runtime designed to disappear.",
5
5
  "author": "Refirst 11",
6
6
  "license": "MIT",