boss-css 0.0.23 → 0.0.25

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 (278) hide show
  1. package/dist/_virtual/{rolldown_runtime.cjs → _rolldown/runtime.cjs} +14 -24
  2. package/dist/_virtual/_rolldown/runtime.mjs +14 -0
  3. package/dist/ai/server.cjs +15 -16
  4. package/dist/ai/server.mjs +4 -6
  5. package/dist/ai/skills.cjs +2 -3
  6. package/dist/ai/skills.mjs +1 -2
  7. package/dist/api/browser.cjs +11 -12
  8. package/dist/api/browser.mjs +1 -3
  9. package/dist/api/config.cjs +6 -7
  10. package/dist/api/config.mjs +1 -3
  11. package/dist/api/css.cjs +1 -3
  12. package/dist/api/css.mjs +1 -2
  13. package/dist/api/dictionary.cjs +1 -3
  14. package/dist/api/dictionary.mjs +1 -2
  15. package/dist/api/file/dts.cjs +2 -4
  16. package/dist/api/file/dts.mjs +1 -3
  17. package/dist/api/file/file.cjs +4 -6
  18. package/dist/api/file/file.mjs +1 -3
  19. package/dist/api/file/js.cjs +6 -8
  20. package/dist/api/file/js.mjs +2 -4
  21. package/dist/api/file/text.cjs +2 -4
  22. package/dist/api/file/text.mjs +1 -3
  23. package/dist/api/names.cjs +1 -3
  24. package/dist/api/names.mjs +1 -3
  25. package/dist/api/noopCss.cjs +2 -3
  26. package/dist/api/noopCss.mjs +1 -2
  27. package/dist/api/propTree.cjs +1 -3
  28. package/dist/api/propTree.mjs +1 -2
  29. package/dist/api/server.cjs +15 -16
  30. package/dist/api/server.mjs +1 -3
  31. package/dist/cli/build.cjs +1 -1
  32. package/dist/cli/build.mjs +2 -3
  33. package/dist/cli/index.cjs +5 -7
  34. package/dist/cli/index.mjs +1 -3
  35. package/dist/cli/tasks/build.cjs +4 -7
  36. package/dist/cli/tasks/build.mjs +1 -4
  37. package/dist/cli/tasks/choose.cjs +3 -6
  38. package/dist/cli/tasks/choose.mjs +1 -4
  39. package/dist/cli/tasks/compile.cjs +3 -6
  40. package/dist/cli/tasks/compile.mjs +1 -4
  41. package/dist/cli/tasks/dev.cjs +8 -11
  42. package/dist/cli/tasks/dev.mjs +2 -5
  43. package/dist/cli/tasks/init.cjs +163 -44
  44. package/dist/cli/tasks/init.mjs +135 -17
  45. package/dist/cli/tasks/watch.cjs +3 -6
  46. package/dist/cli/tasks/watch.mjs +1 -4
  47. package/dist/cli/templates/init.cjs +1 -3
  48. package/dist/cli/templates/init.mjs +1 -2
  49. package/dist/cli/types.cjs +2 -4
  50. package/dist/cli/types.mjs +2 -4
  51. package/dist/cli/utils.cjs +2 -4
  52. package/dist/cli/utils.mjs +1 -3
  53. package/dist/compile/classname-strategy.cjs +3 -5
  54. package/dist/compile/classname-strategy.mjs +1 -3
  55. package/dist/compile/classname.cjs +6 -8
  56. package/dist/compile/classname.mjs +5 -7
  57. package/dist/compile/index.cjs +18 -20
  58. package/dist/compile/index.mjs +6 -8
  59. package/dist/compile/jsx.cjs +8 -10
  60. package/dist/compile/jsx.mjs +6 -8
  61. package/dist/compile/prepared.cjs +3 -5
  62. package/dist/compile/prepared.mjs +1 -3
  63. package/dist/compile/runtime.cjs +4 -5
  64. package/dist/compile/runtime.mjs +1 -3
  65. package/dist/compile/transform.cjs +7 -9
  66. package/dist/compile/transform.mjs +3 -5
  67. package/dist/cx/index.cjs +6 -7
  68. package/dist/cx/index.mjs +3 -5
  69. package/dist/detect-fw/index.cjs +6 -7
  70. package/dist/detect-fw/index.mjs +1 -3
  71. package/dist/dev/client.cjs +2 -3
  72. package/dist/dev/client.mjs +1 -2
  73. package/dist/dev/plugin/browser.cjs +2 -3
  74. package/dist/dev/plugin/browser.mjs +1 -2
  75. package/dist/dev/plugin/server.cjs +13 -14
  76. package/dist/dev/plugin/server.mjs +3 -5
  77. package/dist/dev/port.cjs +3 -5
  78. package/dist/dev/port.mjs +1 -3
  79. package/dist/dev/runtime.cjs +3 -5
  80. package/dist/dev/runtime.mjs +1 -3
  81. package/dist/dev/server.cjs +12 -13
  82. package/dist/dev/server.mjs +15 -17
  83. package/dist/dev/shared.cjs +1 -3
  84. package/dist/dev/shared.mjs +1 -2
  85. package/dist/eslint-plugin/index.cjs +10 -13
  86. package/dist/eslint-plugin/index.mjs +1 -4
  87. package/dist/eslint-plugin/rules/classnames-only.cjs +4 -6
  88. package/dist/eslint-plugin/rules/classnames-only.mjs +1 -3
  89. package/dist/eslint-plugin/rules/format-classnames.cjs +8 -10
  90. package/dist/eslint-plugin/rules/format-classnames.mjs +1 -3
  91. package/dist/eslint-plugin/rules/no-unknown-classes.cjs +5 -7
  92. package/dist/eslint-plugin/rules/no-unknown-classes.mjs +1 -3
  93. package/dist/eslint-plugin/rules/prefer-classnames.cjs +5 -7
  94. package/dist/eslint-plugin/rules/prefer-classnames.mjs +1 -3
  95. package/dist/eslint-plugin/rules/prefer-token-values.cjs +6 -8
  96. package/dist/eslint-plugin/rules/prefer-token-values.mjs +1 -3
  97. package/dist/eslint-plugin/rules/prefer-unitless-values.cjs +7 -9
  98. package/dist/eslint-plugin/rules/prefer-unitless-values.mjs +1 -3
  99. package/dist/eslint-plugin/rules/props-only.cjs +5 -7
  100. package/dist/eslint-plugin/rules/props-only.mjs +1 -3
  101. package/dist/eslint-plugin/rules/redundant-cx.cjs +3 -5
  102. package/dist/eslint-plugin/rules/redundant-cx.mjs +1 -3
  103. package/dist/eslint-plugin/rules/require-prop-functions.cjs +6 -8
  104. package/dist/eslint-plugin/rules/require-prop-functions.mjs +1 -3
  105. package/dist/eslint-plugin/utils/api.cjs +3 -5
  106. package/dist/eslint-plugin/utils/api.mjs +1 -3
  107. package/dist/eslint-plugin/utils/ast.cjs +1 -3
  108. package/dist/eslint-plugin/utils/ast.mjs +1 -2
  109. package/dist/eslint-plugin/utils/boss-classes.cjs +5 -7
  110. package/dist/eslint-plugin/utils/boss-classes.mjs +1 -3
  111. package/dist/eslint-plugin/utils/context.cjs +1 -3
  112. package/dist/eslint-plugin/utils/context.mjs +1 -2
  113. package/dist/eslint-plugin/utils/defaults.cjs +1 -3
  114. package/dist/eslint-plugin/utils/defaults.mjs +1 -2
  115. package/dist/eslint-plugin/utils/format.cjs +1 -3
  116. package/dist/eslint-plugin/utils/format.mjs +1 -2
  117. package/dist/eslint-plugin/utils/order.cjs +3 -5
  118. package/dist/eslint-plugin/utils/order.mjs +1 -3
  119. package/dist/eslint-plugin/utils/property-order.cjs +1 -3
  120. package/dist/eslint-plugin/utils/property-order.mjs +1 -2
  121. package/dist/eslint-plugin/utils/static.cjs +1 -3
  122. package/dist/eslint-plugin/utils/static.mjs +1 -2
  123. package/dist/fontsource/directory.cjs +1 -3
  124. package/dist/fontsource/directory.mjs +1 -2
  125. package/dist/fontsource/server.cjs +12 -13
  126. package/dist/fontsource/server.mjs +2 -4
  127. package/dist/index.cjs +6 -6
  128. package/dist/index.mjs +1 -2
  129. package/dist/log/browser.cjs +2 -4
  130. package/dist/log/browser.mjs +1 -3
  131. package/dist/log/server.cjs +6 -8
  132. package/dist/log/server.mjs +1 -3
  133. package/dist/merge/index.cjs +8 -9
  134. package/dist/merge/index.mjs +5 -7
  135. package/dist/native/browser.cjs +3 -4
  136. package/dist/native/browser.mjs +1 -3
  137. package/dist/native/server.cjs +7 -8
  138. package/dist/native/server.mjs +1 -3
  139. package/dist/native/styleTypes.cjs +5 -7
  140. package/dist/native/styleTypes.mjs +1 -3
  141. package/dist/parser/classname/server.cjs +17 -19
  142. package/dist/parser/classname/server.mjs +11 -13
  143. package/dist/parser/jsx/browser.cjs +7 -8
  144. package/dist/parser/jsx/browser.mjs +1 -3
  145. package/dist/parser/jsx/extractCode.cjs +2 -4
  146. package/dist/parser/jsx/extractCode.mjs +2 -3
  147. package/dist/parser/jsx/extractPrepared.cjs +3 -5
  148. package/dist/parser/jsx/extractPrepared.mjs +1 -3
  149. package/dist/parser/jsx/extractProps.cjs +3 -5
  150. package/dist/parser/jsx/extractProps.mjs +1 -3
  151. package/dist/parser/jsx/isDOMProp.cjs +3 -5
  152. package/dist/parser/jsx/isDOMProp.mjs +1 -3
  153. package/dist/parser/jsx/native.cjs +6 -7
  154. package/dist/parser/jsx/native.d.cts +2 -2
  155. package/dist/parser/jsx/native.d.mts +2 -2
  156. package/dist/parser/jsx/native.mjs +1 -3
  157. package/dist/parser/jsx/runtime.cjs +3 -3
  158. package/dist/parser/jsx/runtime.mjs +1 -2
  159. package/dist/parser/jsx/server.cjs +16 -17
  160. package/dist/parser/jsx/server.mjs +3 -5
  161. package/dist/postcss/index.cjs +2 -5
  162. package/dist/postcss/index.mjs +1 -4
  163. package/dist/prop/at/runtime-only.cjs +8 -9
  164. package/dist/prop/at/runtime-only.mjs +6 -8
  165. package/dist/prop/at/server.cjs +27 -28
  166. package/dist/prop/at/server.mjs +17 -19
  167. package/dist/prop/at/shared.cjs +1 -3
  168. package/dist/prop/at/shared.mjs +1 -2
  169. package/dist/prop/bosswind/browser.cjs +4 -5
  170. package/dist/prop/bosswind/browser.mjs +1 -3
  171. package/dist/prop/bosswind/runtime-only.cjs +4 -5
  172. package/dist/prop/bosswind/runtime-only.mjs +1 -3
  173. package/dist/prop/bosswind/selectors.cjs +1 -3
  174. package/dist/prop/bosswind/selectors.mjs +1 -2
  175. package/dist/prop/bosswind/server.cjs +12 -12
  176. package/dist/prop/bosswind/server.mjs +6 -7
  177. package/dist/prop/bosswind/shared.cjs +59 -9
  178. package/dist/prop/bosswind/shared.mjs +57 -8
  179. package/dist/prop/bosswind/tailwind-theme.cjs +2 -38
  180. package/dist/prop/bosswind/tailwind-theme.mjs +2 -37
  181. package/dist/prop/child/runtime-only.cjs +2 -3
  182. package/dist/prop/child/runtime-only.mjs +1 -2
  183. package/dist/prop/child/server.cjs +10 -11
  184. package/dist/prop/child/server.mjs +2 -4
  185. package/dist/prop/css/getDtsTemplate.cjs +7 -6
  186. package/dist/prop/css/getDtsTemplate.mjs +5 -4
  187. package/dist/prop/css/runtime-only.cjs +4 -5
  188. package/dist/prop/css/runtime-only.mjs +1 -3
  189. package/dist/prop/css/server.cjs +12 -13
  190. package/dist/prop/css/server.mjs +4 -6
  191. package/dist/prop/pseudo/runtime-only.cjs +3 -5
  192. package/dist/prop/pseudo/runtime-only.mjs +1 -3
  193. package/dist/prop/pseudo/server.cjs +19 -20
  194. package/dist/prop/pseudo/server.mjs +11 -13
  195. package/dist/prop/pseudo/shared.cjs +1 -3
  196. package/dist/prop/pseudo/shared.mjs +1 -2
  197. package/dist/reset/server.cjs +10 -11
  198. package/dist/reset/server.mjs +2 -4
  199. package/dist/runtime/index.cjs +5 -6
  200. package/dist/runtime/index.mjs +1 -3
  201. package/dist/runtime/preact.cjs +3 -3
  202. package/dist/runtime/preact.mjs +1 -2
  203. package/dist/runtime/qwik.cjs +3 -4
  204. package/dist/runtime/qwik.mjs +1 -3
  205. package/dist/runtime/react.cjs +3 -3
  206. package/dist/runtime/react.mjs +1 -2
  207. package/dist/runtime/solid.cjs +3 -4
  208. package/dist/runtime/solid.mjs +1 -3
  209. package/dist/runtime/stencil.cjs +4 -5
  210. package/dist/runtime/stencil.mjs +1 -3
  211. package/dist/runtime/style.cjs +2 -3
  212. package/dist/runtime/style.mjs +1 -2
  213. package/dist/shared/boundaries.cjs +4 -6
  214. package/dist/shared/boundaries.mjs +1 -3
  215. package/dist/shared/customCss.cjs +1 -3
  216. package/dist/shared/customCss.mjs +1 -2
  217. package/dist/shared/debug.cjs +2 -4
  218. package/dist/shared/debug.mjs +2 -3
  219. package/dist/shared/file.cjs +3 -5
  220. package/dist/shared/file.mjs +1 -3
  221. package/dist/shared/framework.cjs +1 -3
  222. package/dist/shared/framework.mjs +1 -2
  223. package/dist/shared/json.cjs +1 -3
  224. package/dist/shared/json.mjs +1 -2
  225. package/dist/shared/types.cjs +1 -3
  226. package/dist/shared/types.mjs +1 -2
  227. package/dist/strategy/classic/runtime-only.cjs +15 -16
  228. package/dist/strategy/classic/runtime-only.mjs +3 -5
  229. package/dist/strategy/classname-first/browser.cjs +7 -8
  230. package/dist/strategy/classname-first/browser.mjs +1 -3
  231. package/dist/strategy/classname-first/runtime-only.cjs +13 -14
  232. package/dist/strategy/classname-first/runtime-only.mjs +1 -3
  233. package/dist/strategy/classname-first/server.cjs +9 -11
  234. package/dist/strategy/classname-first/server.mjs +3 -5
  235. package/dist/strategy/classname-only/server.cjs +8 -10
  236. package/dist/strategy/classname-only/server.mjs +2 -4
  237. package/dist/strategy/inline-first/browser.cjs +6 -7
  238. package/dist/strategy/inline-first/browser.mjs +1 -3
  239. package/dist/strategy/inline-first/runtime-only.cjs +12 -13
  240. package/dist/strategy/inline-first/runtime-only.mjs +1 -3
  241. package/dist/strategy/inline-first/server.cjs +9 -11
  242. package/dist/strategy/inline-first/server.mjs +3 -5
  243. package/dist/strategy/runtime/runtime-only.cjs +6 -8
  244. package/dist/strategy/runtime/runtime-only.mjs +1 -4
  245. package/dist/strategy/runtime/server.cjs +11 -12
  246. package/dist/strategy/runtime/server.mjs +2 -4
  247. package/dist/strategy/runtime-only/css.cjs +5 -6
  248. package/dist/strategy/runtime-only/css.mjs +4 -5
  249. package/dist/tasks/build.cjs +8 -10
  250. package/dist/tasks/build.mjs +1 -3
  251. package/dist/tasks/compile.cjs +2 -4
  252. package/dist/tasks/compile.mjs +1 -3
  253. package/dist/tasks/postcss.cjs +11 -13
  254. package/dist/tasks/postcss.mjs +1 -3
  255. package/dist/tasks/session.cjs +4 -6
  256. package/dist/tasks/session.mjs +1 -3
  257. package/dist/tasks/watch.cjs +7 -9
  258. package/dist/tasks/watch.mjs +1 -3
  259. package/dist/transform/cache.cjs +1 -3
  260. package/dist/transform/cache.mjs +1 -2
  261. package/dist/transform/processFile.cjs +4 -6
  262. package/dist/transform/processFile.mjs +1 -3
  263. package/dist/use/token/browser.cjs +4 -5
  264. package/dist/use/token/browser.mjs +1 -3
  265. package/dist/use/token/normalize.cjs +1 -3
  266. package/dist/use/token/normalize.mjs +1 -2
  267. package/dist/use/token/propMap.cjs +1 -3
  268. package/dist/use/token/propMap.d.cts +1 -1
  269. package/dist/use/token/propMap.d.mts +1 -1
  270. package/dist/use/token/propMap.mjs +1 -2
  271. package/dist/use/token/runtime-only.cjs +5 -6
  272. package/dist/use/token/runtime-only.mjs +1 -3
  273. package/dist/use/token/server.cjs +13 -14
  274. package/dist/use/token/server.mjs +4 -6
  275. package/dist/use/token/vars.cjs +2 -4
  276. package/dist/use/token/vars.mjs +1 -3
  277. package/package.json +23 -23
  278. package/dist/_virtual/rolldown_runtime.mjs +0 -20
@@ -1,12 +1,12 @@
1
- const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
- const require_directory = require('./directory.cjs');
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
3
+ const require_directory = require("./directory.cjs");
3
4
  let node_fs_promises = require("node:fs/promises");
4
- node_fs_promises = require_rolldown_runtime.__toESM(node_fs_promises);
5
+ node_fs_promises = require_runtime.__toESM(node_fs_promises);
5
6
  let node_path = require("node:path");
6
- node_path = require_rolldown_runtime.__toESM(node_path);
7
-
7
+ node_path = require_runtime.__toESM(node_path);
8
8
  //#region src/fontsource/server.ts
9
- var server_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
9
+ var server_exports = /* @__PURE__ */ require_runtime.__exportAll({
10
10
  name: () => name,
11
11
  onBoot: () => onBoot
12
12
  });
@@ -284,13 +284,12 @@ const onBoot = async (api) => {
284
284
  mergeFontTokens(api, fontTokens);
285
285
  await fetchFontFiles(downloads, fontsDir);
286
286
  };
287
-
288
287
  //#endregion
289
288
  exports.name = name;
290
289
  exports.onBoot = onBoot;
291
- Object.defineProperty(exports, 'server_exports', {
292
- enumerable: true,
293
- get: function () {
294
- return server_exports;
295
- }
296
- });
290
+ Object.defineProperty(exports, "server_exports", {
291
+ enumerable: true,
292
+ get: function() {
293
+ return server_exports;
294
+ }
295
+ });
@@ -1,8 +1,7 @@
1
- import { __exportAll } from "../_virtual/rolldown_runtime.mjs";
1
+ import { __exportAll } from "../_virtual/_rolldown/runtime.mjs";
2
2
  import { fontDirectory } from "./directory.mjs";
3
3
  import fs from "node:fs/promises";
4
4
  import path from "node:path";
5
-
6
5
  //#region src/fontsource/server.ts
7
6
  var server_exports = /* @__PURE__ */ __exportAll({
8
7
  name: () => name,
@@ -282,6 +281,5 @@ const onBoot = async (api) => {
282
281
  mergeFontTokens(api, fontTokens);
283
282
  await fetchFontFiles(downloads, fontsDir);
284
283
  };
285
-
286
284
  //#endregion
287
- export { name, onBoot, server_exports };
285
+ export { name, onBoot, server_exports };
package/dist/index.cjs CHANGED
@@ -1,10 +1,10 @@
1
- const require_build = require('./tasks/build.cjs');
2
- const require_watch = require('./tasks/watch.cjs');
3
- const require_compile = require('./tasks/compile.cjs');
4
- const require_postcss = require('./tasks/postcss.cjs');
5
-
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_build = require("./tasks/build.cjs");
3
+ const require_watch = require("./tasks/watch.cjs");
4
+ const require_compile = require("./tasks/compile.cjs");
5
+ const require_postcss = require("./tasks/postcss.cjs");
6
6
  exports.resolveBuildConfig = require_build.resolveBuildConfig;
7
7
  exports.runBuild = require_build.runBuild;
8
8
  exports.runCompile = require_compile.runCompile;
9
9
  exports.runPostcss = require_postcss.runPostcss;
10
- exports.runWatch = require_watch.runWatch;
10
+ exports.runWatch = require_watch.runWatch;
package/dist/index.mjs CHANGED
@@ -2,5 +2,4 @@ import { resolveBuildConfig, runBuild } from "./tasks/build.mjs";
2
2
  import { runWatch } from "./tasks/watch.mjs";
3
3
  import { runCompile } from "./tasks/compile.mjs";
4
4
  import { runPostcss } from "./tasks/postcss.mjs";
5
-
6
- export { resolveBuildConfig, runBuild, runCompile, runPostcss, runWatch };
5
+ export { resolveBuildConfig, runBuild, runCompile, runPostcss, runWatch };
@@ -1,5 +1,4 @@
1
- const require_debug = require('../shared/debug.cjs');
2
-
1
+ const require_debug = require("../shared/debug.cjs");
3
2
  //#region src/log/browser.ts
4
3
  const normalizeDebugValue = (debug) => debug === true ? "boss:*" : debug;
5
4
  const createLogger = (namespace, debug) => {
@@ -23,6 +22,5 @@ const createLogger = (namespace, debug) => {
23
22
  };
24
23
  return getLogger(namespace);
25
24
  };
26
-
27
25
  //#endregion
28
- exports.createLogger = createLogger;
26
+ exports.createLogger = createLogger;
@@ -1,5 +1,4 @@
1
1
  import { createDebugMatcher } from "../shared/debug.mjs";
2
-
3
2
  //#region src/log/browser.ts
4
3
  const normalizeDebugValue = (debug) => debug === true ? "boss:*" : debug;
5
4
  const createLogger = (namespace, debug) => {
@@ -23,6 +22,5 @@ const createLogger = (namespace, debug) => {
23
22
  };
24
23
  return getLogger(namespace);
25
24
  };
26
-
27
25
  //#endregion
28
- export { createLogger };
26
+ export { createLogger };
@@ -1,12 +1,11 @@
1
- const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
- const require_debug = require('../shared/debug.cjs');
1
+ const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
2
+ const require_debug = require("../shared/debug.cjs");
3
3
  let debug = require("debug");
4
- debug = require_rolldown_runtime.__toESM(debug);
5
-
4
+ debug = require_runtime.__toESM(debug);
6
5
  //#region src/log/server.ts
7
6
  const normalizeDebugValue = (debug$1) => debug$1 === true ? "boss:*" : debug$1;
8
- const createLogger = (namespace, debug$1) => {
9
- const matcher = require_debug.createDebugMatcher(normalizeDebugValue(debug$1));
7
+ const createLogger = (namespace, debug$2) => {
8
+ const matcher = require_debug.createDebugMatcher(normalizeDebugValue(debug$2));
10
9
  const cache = /* @__PURE__ */ new Map();
11
10
  const getLogger = (nextNamespace) => {
12
11
  const existing = cache.get(nextNamespace);
@@ -27,6 +26,5 @@ const createLogger = (namespace, debug$1) => {
27
26
  };
28
27
  return getLogger(namespace);
29
28
  };
30
-
31
29
  //#endregion
32
- exports.createLogger = createLogger;
30
+ exports.createLogger = createLogger;
@@ -1,6 +1,5 @@
1
1
  import { createDebugMatcher } from "../shared/debug.mjs";
2
2
  import createDebug from "debug";
3
-
4
3
  //#region src/log/server.ts
5
4
  const normalizeDebugValue = (debug) => debug === true ? "boss:*" : debug;
6
5
  const createLogger = (namespace, debug) => {
@@ -25,6 +24,5 @@ const createLogger = (namespace, debug) => {
25
24
  };
26
25
  return getLogger(namespace);
27
26
  };
28
-
29
27
  //#endregion
30
- export { createLogger };
28
+ export { createLogger };
@@ -1,8 +1,8 @@
1
- const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
2
3
  let ts_deepmerge = require("ts-deepmerge");
3
4
  let _boss_css_is_css_prop = require("@boss-css/is-css-prop");
4
- _boss_css_is_css_prop = require_rolldown_runtime.__toESM(_boss_css_is_css_prop);
5
-
5
+ _boss_css_is_css_prop = require_runtime.__toESM(_boss_css_is_css_prop);
6
6
  //#region src/merge/index.ts
7
7
  const cssPropCache = /* @__PURE__ */ new Map();
8
8
  const whitespaceRegexp = /\s/;
@@ -128,11 +128,11 @@ const splitSelectors = (input) => {
128
128
  const expandGroupedSelector = (selector) => {
129
129
  const grouped = parseGroupedSelector(selector);
130
130
  if (!grouped) return [selector];
131
- const nextEntries = grouped.entries.map((entry$1) => ({
132
- name: entry$1.name,
133
- rawValue: entry$1.rawValue
131
+ const nextEntries = grouped.entries.map((entry) => ({
132
+ name: entry.name,
133
+ rawValue: entry.rawValue
134
134
  }));
135
- if (nextEntries.length > 1) return [...nextEntries].sort((a, b) => a.name.localeCompare(b.name)).map((entry$1) => `${grouped.prefix}:${entry$1.name}:${entry$1.rawValue}`);
135
+ if (nextEntries.length > 1) return [...nextEntries].sort((a, b) => a.name.localeCompare(b.name)).map((entry) => `${grouped.prefix}:${entry.name}:${entry.rawValue}`);
136
136
  const [entry] = nextEntries;
137
137
  return [`${grouped.prefix}:{${entry.name}:${entry.rawValue}}`];
138
138
  };
@@ -321,8 +321,7 @@ function unique(items) {
321
321
  const isPlainObject = (value) => {
322
322
  return !!value && typeof value === "object" && !Array.isArray(value);
323
323
  };
324
-
325
324
  //#endregion
326
325
  exports.createBossMerge = createBossMerge;
327
326
  exports.join = join;
328
- exports.merge = merge;
327
+ exports.merge = merge;
@@ -1,6 +1,5 @@
1
1
  import { merge as merge$1 } from "ts-deepmerge";
2
2
  import isCSSProp from "@boss-css/is-css-prop";
3
-
4
3
  //#region src/merge/index.ts
5
4
  const cssPropCache = /* @__PURE__ */ new Map();
6
5
  const whitespaceRegexp = /\s/;
@@ -126,11 +125,11 @@ const splitSelectors = (input) => {
126
125
  const expandGroupedSelector = (selector) => {
127
126
  const grouped = parseGroupedSelector(selector);
128
127
  if (!grouped) return [selector];
129
- const nextEntries = grouped.entries.map((entry$1) => ({
130
- name: entry$1.name,
131
- rawValue: entry$1.rawValue
128
+ const nextEntries = grouped.entries.map((entry) => ({
129
+ name: entry.name,
130
+ rawValue: entry.rawValue
132
131
  }));
133
- if (nextEntries.length > 1) return [...nextEntries].sort((a, b) => a.name.localeCompare(b.name)).map((entry$1) => `${grouped.prefix}:${entry$1.name}:${entry$1.rawValue}`);
132
+ if (nextEntries.length > 1) return [...nextEntries].sort((a, b) => a.name.localeCompare(b.name)).map((entry) => `${grouped.prefix}:${entry.name}:${entry.rawValue}`);
134
133
  const [entry] = nextEntries;
135
134
  return [`${grouped.prefix}:{${entry.name}:${entry.rawValue}}`];
136
135
  };
@@ -319,6 +318,5 @@ function unique(items) {
319
318
  const isPlainObject = (value) => {
320
319
  return !!value && typeof value === "object" && !Array.isArray(value);
321
320
  };
322
-
323
321
  //#endregion
324
- export { createBossMerge, join, merge };
322
+ export { createBossMerge, join, merge };
@@ -1,5 +1,5 @@
1
- const require_use_token_runtime_only = require('../use/token/runtime-only.cjs');
2
-
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_use_token_runtime_only = require("../use/token/runtime-only.cjs");
3
3
  //#region src/native/browser.ts
4
4
  const ignoredProps = new Set([
5
5
  "ref",
@@ -85,7 +85,6 @@ const onBrowserObjectStart = (api, { input, output = {} }) => {
85
85
  }
86
86
  output.style = [output.style, bossStyle];
87
87
  };
88
-
89
88
  //#endregion
90
89
  exports.name = name;
91
- exports.onBrowserObjectStart = onBrowserObjectStart;
90
+ exports.onBrowserObjectStart = onBrowserObjectStart;
@@ -1,5 +1,4 @@
1
1
  import { resolveRuntimeToken } from "../use/token/runtime-only.mjs";
2
-
3
2
  //#region src/native/browser.ts
4
3
  const ignoredProps = new Set([
5
4
  "ref",
@@ -85,6 +84,5 @@ const onBrowserObjectStart = (api, { input, output = {} }) => {
85
84
  }
86
85
  output.style = [output.style, bossStyle];
87
86
  };
88
-
89
87
  //#endregion
90
- export { name, onBrowserObjectStart };
88
+ export { name, onBrowserObjectStart };
@@ -1,10 +1,10 @@
1
- const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
- const require_extractCode = require('../parser/jsx/extractCode.cjs');
3
- const require_extractPrepared = require('../parser/jsx/extractPrepared.cjs');
4
- const require_extractProps = require('../parser/jsx/extractProps.cjs');
5
- const require_styleTypes = require('./styleTypes.cjs');
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ require("../_virtual/_rolldown/runtime.cjs");
3
+ const require_extractCode = require("../parser/jsx/extractCode.cjs");
4
+ const require_extractPrepared = require("../parser/jsx/extractPrepared.cjs");
5
+ const require_extractProps = require("../parser/jsx/extractProps.cjs");
6
+ const require_styleTypes = require("./styleTypes.cjs");
6
7
  let ts_deepmerge = require("ts-deepmerge");
7
-
8
8
  //#region src/native/server.ts
9
9
  const name = "native";
10
10
  const settings = new Map([
@@ -172,9 +172,8 @@ const onParse = async (api, input) => {
172
172
  }
173
173
  if (preparedDirty) syncPreparedDts(api);
174
174
  };
175
-
176
175
  //#endregion
177
176
  exports.name = name;
178
177
  exports.onBoot = onBoot;
179
178
  exports.onParse = onParse;
180
- exports.settings = settings;
179
+ exports.settings = settings;
@@ -3,7 +3,6 @@ import { extractPreparedComponents } from "../parser/jsx/extractPrepared.mjs";
3
3
  import { extractPropTrees } from "../parser/jsx/extractProps.mjs";
4
4
  import { loadReactNativeStyleProps } from "./styleTypes.mjs";
5
5
  import { merge } from "ts-deepmerge";
6
-
7
6
  //#region src/native/server.ts
8
7
  const name = "native";
9
8
  const settings = new Map([
@@ -171,6 +170,5 @@ const onParse = async (api, input) => {
171
170
  }
172
171
  if (preparedDirty) syncPreparedDts(api);
173
172
  };
174
-
175
173
  //#endregion
176
- export { name, onBoot, onParse, settings };
174
+ export { name, onBoot, onParse, settings };
@@ -1,12 +1,11 @@
1
- const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
1
+ const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
2
2
  let node_fs_promises = require("node:fs/promises");
3
- node_fs_promises = require_rolldown_runtime.__toESM(node_fs_promises);
3
+ node_fs_promises = require_runtime.__toESM(node_fs_promises);
4
4
  let node_path = require("node:path");
5
- node_path = require_rolldown_runtime.__toESM(node_path);
5
+ node_path = require_runtime.__toESM(node_path);
6
6
  let fast_glob = require("fast-glob");
7
- fast_glob = require_rolldown_runtime.__toESM(fast_glob);
7
+ fast_glob = require_runtime.__toESM(fast_glob);
8
8
  let node_module = require("node:module");
9
-
10
9
  //#region src/native/styleTypes.ts
11
10
  const interfaceNames = new Set([
12
11
  "ViewStyle",
@@ -163,6 +162,5 @@ const loadReactNativeStyleProps = async () => {
163
162
  sourcePath: typesFile
164
163
  };
165
164
  };
166
-
167
165
  //#endregion
168
- exports.loadReactNativeStyleProps = loadReactNativeStyleProps;
166
+ exports.loadReactNativeStyleProps = loadReactNativeStyleProps;
@@ -2,7 +2,6 @@ import { createRequire } from "node:module";
2
2
  import fs from "node:fs/promises";
3
3
  import path from "node:path";
4
4
  import fg from "fast-glob";
5
-
6
5
  //#region src/native/styleTypes.ts
7
6
  const interfaceNames = new Set([
8
7
  "ViewStyle",
@@ -159,6 +158,5 @@ const loadReactNativeStyleProps = async () => {
159
158
  sourcePath: typesFile
160
159
  };
161
160
  };
162
-
163
161
  //#endregion
164
- export { loadReactNativeStyleProps };
162
+ export { loadReactNativeStyleProps };
@@ -1,7 +1,6 @@
1
- const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
-
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
2
  //#region src/parser/classname/server.ts
4
- var server_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
3
+ var server_exports = /* @__PURE__ */ require("../../_virtual/_rolldown/runtime.cjs").__exportAll({
5
4
  name: () => name,
6
5
  onParse: () => onParse
7
6
  });
@@ -93,17 +92,17 @@ const extractPropTree = async (string, api) => {
93
92
  selectors.forEach((selector) => {
94
93
  const grouped = parseGroupedSelector(selector);
95
94
  if (grouped) {
96
- const rawFragments$1 = splitFragments(grouped.prefix);
97
- if (!resolveDescriptor(stripImportantSuffix(rawFragments$1[0])).descriptor || rawFragments$1.length === 0) return;
98
- const fragments = expandFragments(rawFragments$1);
95
+ const rawFragments = splitFragments(grouped.prefix);
96
+ if (!resolveDescriptor(stripImportantSuffix(rawFragments[0])).descriptor || rawFragments.length === 0) return;
97
+ const fragments = expandFragments(rawFragments);
99
98
  grouped.entries.forEach(({ name, rawValue }) => {
100
99
  if (!resolveDescriptor(name).descriptor?.isCSSProp) return;
101
- const { value: value$1, important: important$1 } = parseImportantValue(rawValue);
102
- const prop = { value: value$1 };
103
- if (important$1) prop.important = true;
104
- const path$1 = [...fragments, name];
105
- const key = pathKey(path$1);
106
- createPropPath([...path$1], prop, tree);
100
+ const { value, important } = parseImportantValue(rawValue);
101
+ const prop = { value };
102
+ if (important) prop.important = true;
103
+ const path = [...fragments, name];
104
+ const key = pathKey(path);
105
+ createPropPath([...path], prop, tree);
107
106
  selectorTokens.set(key, selector);
108
107
  });
109
108
  return;
@@ -263,13 +262,12 @@ const applySelectorTokens = (tree, selectorTokens, path = []) => {
263
262
  if (prop.value && typeof prop.value === "object" && !Array.isArray(prop.value)) applySelectorTokens(prop.value, selectorTokens, nextPath);
264
263
  });
265
264
  };
266
-
267
265
  //#endregion
268
266
  exports.name = name;
269
267
  exports.onParse = onParse;
270
- Object.defineProperty(exports, 'server_exports', {
271
- enumerable: true,
272
- get: function () {
273
- return server_exports;
274
- }
275
- });
268
+ Object.defineProperty(exports, "server_exports", {
269
+ enumerable: true,
270
+ get: function() {
271
+ return server_exports;
272
+ }
273
+ });
@@ -1,5 +1,4 @@
1
- import { __exportAll } from "../../_virtual/rolldown_runtime.mjs";
2
-
1
+ import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
3
2
  //#region src/parser/classname/server.ts
4
3
  var server_exports = /* @__PURE__ */ __exportAll({
5
4
  name: () => name,
@@ -93,17 +92,17 @@ const extractPropTree = async (string, api) => {
93
92
  selectors.forEach((selector) => {
94
93
  const grouped = parseGroupedSelector(selector);
95
94
  if (grouped) {
96
- const rawFragments$1 = splitFragments(grouped.prefix);
97
- if (!resolveDescriptor(stripImportantSuffix(rawFragments$1[0])).descriptor || rawFragments$1.length === 0) return;
98
- const fragments = expandFragments(rawFragments$1);
95
+ const rawFragments = splitFragments(grouped.prefix);
96
+ if (!resolveDescriptor(stripImportantSuffix(rawFragments[0])).descriptor || rawFragments.length === 0) return;
97
+ const fragments = expandFragments(rawFragments);
99
98
  grouped.entries.forEach(({ name, rawValue }) => {
100
99
  if (!resolveDescriptor(name).descriptor?.isCSSProp) return;
101
- const { value: value$1, important: important$1 } = parseImportantValue(rawValue);
102
- const prop = { value: value$1 };
103
- if (important$1) prop.important = true;
104
- const path$1 = [...fragments, name];
105
- const key = pathKey(path$1);
106
- createPropPath([...path$1], prop, tree);
100
+ const { value, important } = parseImportantValue(rawValue);
101
+ const prop = { value };
102
+ if (important) prop.important = true;
103
+ const path = [...fragments, name];
104
+ const key = pathKey(path);
105
+ createPropPath([...path], prop, tree);
107
106
  selectorTokens.set(key, selector);
108
107
  });
109
108
  return;
@@ -263,6 +262,5 @@ const applySelectorTokens = (tree, selectorTokens, path = []) => {
263
262
  if (prop.value && typeof prop.value === "object" && !Array.isArray(prop.value)) applySelectorTokens(prop.value, selectorTokens, nextPath);
264
263
  });
265
264
  };
266
-
267
265
  //#endregion
268
- export { name, onParse, server_exports };
266
+ export { name, onParse, server_exports };
@@ -1,10 +1,10 @@
1
- const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
- const require_framework = require('../../shared/framework.cjs');
3
- const require_isDOMProp = require('./isDOMProp.cjs');
4
- const require_cx_index = require('../../cx/index.cjs');
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
3
+ const require_framework = require("../../shared/framework.cjs");
4
+ const require_isDOMProp = require("./isDOMProp.cjs");
5
+ const require_cx_index = require("../../cx/index.cjs");
5
6
  let _boss_css_is_css_prop = require("@boss-css/is-css-prop");
6
- _boss_css_is_css_prop = require_rolldown_runtime.__toESM(_boss_css_is_css_prop);
7
-
7
+ _boss_css_is_css_prop = require_runtime.__toESM(_boss_css_is_css_prop);
8
8
  //#region src/parser/jsx/browser.ts
9
9
  const ignoredProps = new Set([
10
10
  "ref",
@@ -65,7 +65,6 @@ const onBrowserObjectStart = (api, { input, tag = "div", contexts = [], output =
65
65
  }
66
66
  log.log("browserObject:end", input, output);
67
67
  };
68
-
69
68
  //#endregion
70
69
  exports.name = name;
71
- exports.onBrowserObjectStart = onBrowserObjectStart;
70
+ exports.onBrowserObjectStart = onBrowserObjectStart;
@@ -2,7 +2,6 @@ import { getClassNameProp } from "../../shared/framework.mjs";
2
2
  import isDOMProp from "./isDOMProp.mjs";
3
3
  import { cx } from "../../cx/index.mjs";
4
4
  import isCSSProp from "@boss-css/is-css-prop";
5
-
6
5
  //#region src/parser/jsx/browser.ts
7
6
  const ignoredProps = new Set([
8
7
  "ref",
@@ -63,6 +62,5 @@ const onBrowserObjectStart = (api, { input, tag = "div", contexts = [], output =
63
62
  }
64
63
  log.log("browserObject:end", input, output);
65
64
  };
66
-
67
65
  //#endregion
68
- export { name, onBrowserObjectStart };
66
+ export { name, onBrowserObjectStart };
@@ -1,4 +1,3 @@
1
-
2
1
  //#region src/parser/jsx/extractCode.ts
3
2
  const map = {
4
3
  "<": ">",
@@ -9,7 +8,7 @@ const map = {
9
8
  "`": "`",
10
9
  "'": "'"
11
10
  };
12
- const openingRegexp = /* @__PURE__ */ new RegExp(`[${Object.keys(map).map((k) => `\\${k}`).join("")}]`);
11
+ const openingRegexp = new RegExp(`[${Object.keys(map).map((k) => `\\${k}`).join("")}]`);
13
12
  const ignoredContexts = {
14
13
  "{": true,
15
14
  "\"": true,
@@ -95,6 +94,5 @@ function extractCode(code) {
95
94
  }
96
95
  return results;
97
96
  }
98
-
99
97
  //#endregion
100
- exports.extractCode = extractCode;
98
+ exports.extractCode = extractCode;
@@ -8,7 +8,7 @@ const map = {
8
8
  "`": "`",
9
9
  "'": "'"
10
10
  };
11
- const openingRegexp = /* @__PURE__ */ new RegExp(`[${Object.keys(map).map((k) => `\\${k}`).join("")}]`);
11
+ const openingRegexp = new RegExp(`[${Object.keys(map).map((k) => `\\${k}`).join("")}]`);
12
12
  const ignoredContexts = {
13
13
  "{": true,
14
14
  "\"": true,
@@ -94,6 +94,5 @@ function extractCode(code) {
94
94
  }
95
95
  return results;
96
96
  }
97
-
98
97
  //#endregion
99
- export { extractCode };
98
+ export { extractCode };
@@ -1,7 +1,6 @@
1
- const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
- const require_extractCode = require('./extractCode.cjs');
1
+ require("../../_virtual/_rolldown/runtime.cjs");
2
+ const require_extractCode = require("./extractCode.cjs");
3
3
  let _swc_core = require("@swc/core");
4
-
5
4
  //#region src/parser/jsx/extractPrepared.ts
6
5
  const extractPreparedComponents = (content, filePath) => {
7
6
  if (!content.includes("$$.")) return [];
@@ -118,6 +117,5 @@ const extractStyleText = (objectExpression) => {
118
117
  if (text.startsWith("({") && text.endsWith("})")) text = text.slice(1, -1);
119
118
  return text.replace(/\s+/g, " ");
120
119
  };
121
-
122
120
  //#endregion
123
- exports.extractPreparedComponents = extractPreparedComponents;
121
+ exports.extractPreparedComponents = extractPreparedComponents;
@@ -1,6 +1,5 @@
1
1
  import { extractCode } from "./extractCode.mjs";
2
2
  import { parseSync, printSync } from "@swc/core";
3
-
4
3
  //#region src/parser/jsx/extractPrepared.ts
5
4
  const extractPreparedComponents = (content, filePath) => {
6
5
  if (!content.includes("$$.")) return [];
@@ -117,6 +116,5 @@ const extractStyleText = (objectExpression) => {
117
116
  if (text.startsWith("({") && text.endsWith("})")) text = text.slice(1, -1);
118
117
  return text.replace(/\s+/g, " ");
119
118
  };
120
-
121
119
  //#endregion
122
- export { extractPreparedComponents };
120
+ export { extractPreparedComponents };
@@ -1,7 +1,6 @@
1
- const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
1
+ const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
2
2
  let _swc_core = require("@swc/core");
3
- _swc_core = require_rolldown_runtime.__toESM(_swc_core);
4
-
3
+ _swc_core = require_runtime.__toESM(_swc_core);
5
4
  //#region src/parser/jsx/extractProps.ts
6
5
  async function extractPropTrees(codes) {
7
6
  if (!codes.length) return [];
@@ -235,6 +234,5 @@ function reconstructArray(elements) {
235
234
  dynamic
236
235
  };
237
236
  }
238
-
239
237
  //#endregion
240
- exports.extractPropTrees = extractPropTrees;
238
+ exports.extractPropTrees = extractPropTrees;
@@ -1,5 +1,4 @@
1
1
  import swc from "@swc/core";
2
-
3
2
  //#region src/parser/jsx/extractProps.ts
4
3
  async function extractPropTrees(codes) {
5
4
  if (!codes.length) return [];
@@ -233,6 +232,5 @@ function reconstructArray(elements) {
233
232
  dynamic
234
233
  };
235
234
  }
236
-
237
235
  //#endregion
238
- export { extractPropTrees };
236
+ export { extractPropTrees };
@@ -1,7 +1,6 @@
1
- const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
1
+ const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
2
2
  let _boss_css_document_create_element = require("@boss-css/document-create-element");
3
- _boss_css_document_create_element = require_rolldown_runtime.__toESM(_boss_css_document_create_element);
4
-
3
+ _boss_css_document_create_element = require_runtime.__toESM(_boss_css_document_create_element);
5
4
  //#region src/parser/jsx/isDOMProp.ts
6
5
  const cache = {};
7
6
  function isDOMProp(tag, prop) {
@@ -12,6 +11,5 @@ function isDOMProp(tag, prop) {
12
11
  if ((tagEntry[prop] = prop in element || prop.toLowerCase() in element) && typeof element[prop] === "function") tagEntry[prop] = false;
13
12
  return tagEntry[prop];
14
13
  }
15
-
16
14
  //#endregion
17
- exports.default = isDOMProp;
15
+ exports.default = isDOMProp;
@@ -1,5 +1,4 @@
1
1
  import createElement from "@boss-css/document-create-element";
2
-
3
2
  //#region src/parser/jsx/isDOMProp.ts
4
3
  const cache = {};
5
4
  function isDOMProp(tag, prop) {
@@ -10,6 +9,5 @@ function isDOMProp(tag, prop) {
10
9
  if ((tagEntry[prop] = prop in element || prop.toLowerCase() in element) && typeof element[prop] === "function") tagEntry[prop] = false;
11
10
  return tagEntry[prop];
12
11
  }
13
-
14
12
  //#endregion
15
- export { isDOMProp as default };
13
+ export { isDOMProp as default };