@plumeria/core 0.11.2 → 0.11.3

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.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- //#region rolldown:runtime
2
+
3
3
  var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -21,10 +21,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  enumerable: true
22
22
  }) : target, mod));
23
23
 
24
- //#endregion
25
24
  const zss_engine = __toESM(require("zss-engine"));
26
25
 
27
- //#region src/processors/css.ts
28
26
  let resolvePromise_1;
29
27
  let globalPromise_1;
30
28
  const sheetQueue_1 = [];
@@ -78,7 +76,6 @@ async function buildGlobal(filePath) {
78
76
  }
79
77
  }
80
78
 
81
- //#endregion
82
79
  Object.defineProperty(exports, '__toESM', {
83
80
  enumerable: true,
84
81
  get: function () {
package/dist/css.mjs CHANGED
@@ -1,6 +1,5 @@
1
1
  import { build, isDevelopment } from "zss-engine";
2
2
 
3
- //#region src/processors/css.ts
4
3
  let resolvePromise_1;
5
4
  let globalPromise_1;
6
5
  const sheetQueue_1 = [];
@@ -54,5 +53,4 @@ async function buildGlobal(filePath) {
54
53
  }
55
54
  }
56
55
 
57
- //#endregion
58
56
  export { buildCreate, buildGlobal, globalPromise_1, globalPromise_2, initPromise_1, initPromise_2, resolvePromise_1, resolvePromise_2 };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { CSSHTML, CSSProperties, CSSProperties as CSSProperties$1, CreateKeyframes, CreateStyle, CreateStyleType, CreateTheme, CreateValues, Join, ReturnRx, ReturnType, ReturnVariableType, RxVariableSet } from "zss-engine";
2
2
  import { ps } from "zss-utils";
3
3
 
4
- //#region src/main/utilities.d.ts
5
4
  declare const px: <T extends readonly string[]>(...pseudos: T) => Join<T>;
6
5
  declare const rx: (cssProperties: Readonly<CSSProperties$1>, varSet: RxVariableSet) => {
7
6
  className: string;
@@ -10,8 +9,6 @@ declare const rx: (cssProperties: Readonly<CSSProperties$1>, varSet: RxVariableS
10
9
  };
11
10
  };
12
11
 
13
- //#endregion
14
- //#region src/css.d.ts
15
12
  declare class css {
16
13
  private constructor();
17
14
  static create<const T extends Record<string, CSSProperties>>(object: CreateStyleType<T>): ReturnType<T>;
@@ -197,5 +194,5 @@ declare class css {
197
194
  yellow: "yellow";
198
195
  yellowgreen: "yellowgreen";
199
196
  };
200
- } //#endregion
197
+ }
201
198
  export { CSSHTML, CSSProperties, CreateStyle, css, ps, px, rx };
package/dist/index.js CHANGED
@@ -3,7 +3,6 @@ const require_css = require('./css.js');
3
3
  const zss_engine = require_css.__toESM(require("zss-engine"));
4
4
  const zss_utils = require_css.__toESM(require("zss-utils"));
5
5
 
6
- //#region src/main/create.ts
7
6
  const objectToKeyHashMap = new WeakMap();
8
7
  function create(object) {
9
8
  const base36Hash = (0, zss_engine.genBase36Hash)(object, 6);
@@ -24,8 +23,6 @@ function create(object) {
24
23
  }
25
24
  var create_default = create;
26
25
 
27
- //#endregion
28
- //#region src/main/global.ts
29
26
  function global(object) {
30
27
  const base36Hash = (0, zss_engine.genBase36Hash)(object, 8);
31
28
  const { styleSheet } = (0, zss_engine.transpiler)(object, void 0, "--global");
@@ -35,8 +32,6 @@ function global(object) {
35
32
  }
36
33
  var global_default = global;
37
34
 
38
- //#endregion
39
- //#region src/main/props.ts
40
35
  const props = (...objects) => {
41
36
  const classNames = objects.filter(Boolean).map((obj) => {
42
37
  if (obj && typeof obj === "object") {
@@ -49,8 +44,6 @@ const props = (...objects) => {
49
44
  };
50
45
  var props_default = props;
51
46
 
52
- //#endregion
53
- //#region src/main/utilities.ts
54
47
  const px = (...pseudos) => {
55
48
  return pseudos.filter(Boolean).join("");
56
49
  };
@@ -59,8 +52,6 @@ const rx = (cssProperties, varSet) => ({
59
52
  style: Object.fromEntries(Object.entries(varSet).map(([key, value]) => [key, value]))
60
53
  });
61
54
 
62
- //#endregion
63
- //#region src/define/keyframes.ts
64
55
  const keyframes = (object) => {
65
56
  const prefix = (0, zss_engine.genBase36Hash)(object, 8);
66
57
  global_default({ [`@keyframes ${prefix}`]: object });
@@ -68,8 +59,6 @@ const keyframes = (object) => {
68
59
  };
69
60
  var keyframes_default = keyframes;
70
61
 
71
- //#endregion
72
- //#region src/define/vars.ts
73
62
  const defineVars = (object) => {
74
63
  const styles = { ":root": {} };
75
64
  const result = {};
@@ -83,8 +72,6 @@ const defineVars = (object) => {
83
72
  };
84
73
  var vars_default = defineVars;
85
74
 
86
- //#endregion
87
- //#region src/define/theme.ts
88
75
  const defineTheme = (object) => {
89
76
  const styles = {};
90
77
  const result = {};
@@ -108,15 +95,11 @@ const defineTheme = (object) => {
108
95
  };
109
96
  var theme_default = defineTheme;
110
97
 
111
- //#endregion
112
- //#region src/define/consts.ts
113
98
  const defineConsts = (constants) => {
114
99
  return constants;
115
100
  };
116
101
  var consts_default = defineConsts;
117
102
 
118
- //#endregion
119
- //#region src/css.ts
120
103
  var css = class {
121
104
  constructor() {}
122
105
  static create(object) {
@@ -152,7 +135,6 @@ var css = class {
152
135
  };
153
136
  var css_default = css;
154
137
 
155
- //#endregion
156
138
  exports.css = css_default;
157
139
  exports.ps = zss_utils.ps;
158
140
  exports.px = px;
package/dist/index.mjs CHANGED
@@ -2,7 +2,6 @@ import { globalPromise_1, globalPromise_2, initPromise_1, initPromise_2, resolve
2
2
  import { camelToKebabCase, genBase36Hash, injectClientCSS, injectClientGlobalCSS, injectServerCSS, isServer, isTestingDevelopment, transpiler } from "zss-engine";
3
3
  import { color, container, media, ps } from "zss-utils";
4
4
 
5
- //#region src/main/create.ts
6
5
  const objectToKeyHashMap = new WeakMap();
7
6
  function create(object) {
8
7
  const base36Hash = genBase36Hash(object, 6);
@@ -23,8 +22,6 @@ function create(object) {
23
22
  }
24
23
  var create_default = create;
25
24
 
26
- //#endregion
27
- //#region src/main/global.ts
28
25
  function global(object) {
29
26
  const base36Hash = genBase36Hash(object, 8);
30
27
  const { styleSheet } = transpiler(object, void 0, "--global");
@@ -34,8 +31,6 @@ function global(object) {
34
31
  }
35
32
  var global_default = global;
36
33
 
37
- //#endregion
38
- //#region src/main/props.ts
39
34
  const props = (...objects) => {
40
35
  const classNames = objects.filter(Boolean).map((obj) => {
41
36
  if (obj && typeof obj === "object") {
@@ -48,8 +43,6 @@ const props = (...objects) => {
48
43
  };
49
44
  var props_default = props;
50
45
 
51
- //#endregion
52
- //#region src/main/utilities.ts
53
46
  const px = (...pseudos) => {
54
47
  return pseudos.filter(Boolean).join("");
55
48
  };
@@ -58,8 +51,6 @@ const rx = (cssProperties, varSet) => ({
58
51
  style: Object.fromEntries(Object.entries(varSet).map(([key, value]) => [key, value]))
59
52
  });
60
53
 
61
- //#endregion
62
- //#region src/define/keyframes.ts
63
54
  const keyframes = (object) => {
64
55
  const prefix = genBase36Hash(object, 8);
65
56
  global_default({ [`@keyframes ${prefix}`]: object });
@@ -67,8 +58,6 @@ const keyframes = (object) => {
67
58
  };
68
59
  var keyframes_default = keyframes;
69
60
 
70
- //#endregion
71
- //#region src/define/vars.ts
72
61
  const defineVars = (object) => {
73
62
  const styles = { ":root": {} };
74
63
  const result = {};
@@ -82,8 +71,6 @@ const defineVars = (object) => {
82
71
  };
83
72
  var vars_default = defineVars;
84
73
 
85
- //#endregion
86
- //#region src/define/theme.ts
87
74
  const defineTheme = (object) => {
88
75
  const styles = {};
89
76
  const result = {};
@@ -107,15 +94,11 @@ const defineTheme = (object) => {
107
94
  };
108
95
  var theme_default = defineTheme;
109
96
 
110
- //#endregion
111
- //#region src/define/consts.ts
112
97
  const defineConsts = (constants) => {
113
98
  return constants;
114
99
  };
115
100
  var consts_default = defineConsts;
116
101
 
117
- //#endregion
118
- //#region src/css.ts
119
102
  var css = class {
120
103
  constructor() {}
121
104
  static create(object) {
@@ -151,5 +134,4 @@ var css = class {
151
134
  };
152
135
  var css_default = css;
153
136
 
154
- //#endregion
155
137
  export { css_default as css, ps, px, rx };
@@ -1,4 +1,4 @@
1
- //#region src/processors/css.d.ts
1
+
2
2
  declare let resolvePromise_1: (value: string) => void;
3
3
  declare let globalPromise_1: Promise<string>;
4
4
  declare function initPromise_1(): void;
@@ -8,5 +8,4 @@ declare let globalPromise_2: Promise<string>;
8
8
  declare function initPromise_2(): void;
9
9
  declare function buildGlobal(filePath: string): Promise<void>;
10
10
 
11
- //#endregion
12
11
  export { buildCreate, buildGlobal, globalPromise_1, globalPromise_2, initPromise_1, initPromise_2, resolvePromise_1, resolvePromise_2 };
@@ -1,5 +1,4 @@
1
1
  const require_css = require('../css.js');
2
-
3
2
  exports.buildCreate = require_css.buildCreate;
4
3
  exports.buildGlobal = require_css.buildGlobal;
5
4
  Object.defineProperty(exports, 'globalPromise_1', {
@@ -1,3 +1,2 @@
1
1
  import { buildCreate, buildGlobal, globalPromise_1, globalPromise_2, initPromise_1, initPromise_2, resolvePromise_1, resolvePromise_2 } from "../css.mjs";
2
-
3
2
  export { buildCreate, buildGlobal, globalPromise_1, globalPromise_2, initPromise_1, initPromise_2, resolvePromise_1, resolvePromise_2 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/core",
3
- "version": "0.11.2",
3
+ "version": "0.11.3",
4
4
  "description": "Zero-runtime, expressive CSS-in-JS library for TypeScript.",
5
5
  "keywords": [
6
6
  "css",
@@ -46,6 +46,6 @@
46
46
  "access": "public"
47
47
  },
48
48
  "scripts": {
49
- "build": "tsdown"
49
+ "build": "tsdown && node strip-comments"
50
50
  }
51
51
  }