boss-css 0.0.22 → 0.0.24

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 (277) 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 +39 -42
  44. package/dist/cli/tasks/init.mjs +12 -15
  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/devtools-app/index.mjs +2 -2
  86. package/dist/eslint-plugin/index.cjs +10 -13
  87. package/dist/eslint-plugin/index.mjs +1 -4
  88. package/dist/eslint-plugin/rules/classnames-only.cjs +4 -6
  89. package/dist/eslint-plugin/rules/classnames-only.mjs +1 -3
  90. package/dist/eslint-plugin/rules/format-classnames.cjs +8 -10
  91. package/dist/eslint-plugin/rules/format-classnames.mjs +1 -3
  92. package/dist/eslint-plugin/rules/no-unknown-classes.cjs +5 -7
  93. package/dist/eslint-plugin/rules/no-unknown-classes.mjs +1 -3
  94. package/dist/eslint-plugin/rules/prefer-classnames.cjs +5 -7
  95. package/dist/eslint-plugin/rules/prefer-classnames.mjs +1 -3
  96. package/dist/eslint-plugin/rules/prefer-token-values.cjs +6 -8
  97. package/dist/eslint-plugin/rules/prefer-token-values.mjs +1 -3
  98. package/dist/eslint-plugin/rules/prefer-unitless-values.cjs +7 -9
  99. package/dist/eslint-plugin/rules/prefer-unitless-values.mjs +1 -3
  100. package/dist/eslint-plugin/rules/props-only.cjs +5 -7
  101. package/dist/eslint-plugin/rules/props-only.mjs +1 -3
  102. package/dist/eslint-plugin/rules/redundant-cx.cjs +3 -5
  103. package/dist/eslint-plugin/rules/redundant-cx.mjs +1 -3
  104. package/dist/eslint-plugin/rules/require-prop-functions.cjs +6 -8
  105. package/dist/eslint-plugin/rules/require-prop-functions.mjs +1 -3
  106. package/dist/eslint-plugin/utils/api.cjs +3 -5
  107. package/dist/eslint-plugin/utils/api.mjs +1 -3
  108. package/dist/eslint-plugin/utils/ast.cjs +1 -3
  109. package/dist/eslint-plugin/utils/ast.mjs +1 -2
  110. package/dist/eslint-plugin/utils/boss-classes.cjs +5 -7
  111. package/dist/eslint-plugin/utils/boss-classes.mjs +1 -3
  112. package/dist/eslint-plugin/utils/context.cjs +1 -3
  113. package/dist/eslint-plugin/utils/context.mjs +1 -2
  114. package/dist/eslint-plugin/utils/defaults.cjs +1 -3
  115. package/dist/eslint-plugin/utils/defaults.mjs +1 -2
  116. package/dist/eslint-plugin/utils/format.cjs +1 -3
  117. package/dist/eslint-plugin/utils/format.mjs +1 -2
  118. package/dist/eslint-plugin/utils/order.cjs +3 -5
  119. package/dist/eslint-plugin/utils/order.mjs +1 -3
  120. package/dist/eslint-plugin/utils/property-order.cjs +1 -3
  121. package/dist/eslint-plugin/utils/property-order.mjs +1 -2
  122. package/dist/eslint-plugin/utils/static.cjs +1 -3
  123. package/dist/eslint-plugin/utils/static.mjs +1 -2
  124. package/dist/fontsource/directory.cjs +1 -3
  125. package/dist/fontsource/directory.mjs +1 -2
  126. package/dist/fontsource/server.cjs +12 -13
  127. package/dist/fontsource/server.mjs +2 -4
  128. package/dist/index.cjs +6 -6
  129. package/dist/index.mjs +1 -2
  130. package/dist/log/browser.cjs +2 -4
  131. package/dist/log/browser.mjs +1 -3
  132. package/dist/log/server.cjs +6 -8
  133. package/dist/log/server.mjs +1 -3
  134. package/dist/merge/index.cjs +21 -284
  135. package/dist/merge/index.mjs +18 -282
  136. package/dist/native/browser.cjs +3 -4
  137. package/dist/native/browser.mjs +1 -3
  138. package/dist/native/server.cjs +7 -8
  139. package/dist/native/server.mjs +1 -3
  140. package/dist/native/styleTypes.cjs +5 -7
  141. package/dist/native/styleTypes.mjs +1 -3
  142. package/dist/parser/classname/server.cjs +17 -19
  143. package/dist/parser/classname/server.mjs +11 -13
  144. package/dist/parser/jsx/browser.cjs +7 -8
  145. package/dist/parser/jsx/browser.mjs +1 -3
  146. package/dist/parser/jsx/extractCode.cjs +2 -4
  147. package/dist/parser/jsx/extractCode.mjs +2 -3
  148. package/dist/parser/jsx/extractPrepared.cjs +3 -5
  149. package/dist/parser/jsx/extractPrepared.mjs +1 -3
  150. package/dist/parser/jsx/extractProps.cjs +3 -5
  151. package/dist/parser/jsx/extractProps.mjs +1 -3
  152. package/dist/parser/jsx/isDOMProp.cjs +3 -5
  153. package/dist/parser/jsx/isDOMProp.mjs +1 -3
  154. package/dist/parser/jsx/native.cjs +6 -7
  155. package/dist/parser/jsx/native.d.cts +2 -2
  156. package/dist/parser/jsx/native.d.mts +2 -2
  157. package/dist/parser/jsx/native.mjs +1 -3
  158. package/dist/parser/jsx/runtime.cjs +3 -3
  159. package/dist/parser/jsx/runtime.mjs +1 -2
  160. package/dist/parser/jsx/server.cjs +16 -17
  161. package/dist/parser/jsx/server.mjs +3 -5
  162. package/dist/postcss/index.cjs +2 -5
  163. package/dist/postcss/index.mjs +1 -4
  164. package/dist/prop/at/runtime-only.cjs +8 -9
  165. package/dist/prop/at/runtime-only.mjs +6 -8
  166. package/dist/prop/at/server.cjs +27 -28
  167. package/dist/prop/at/server.mjs +17 -19
  168. package/dist/prop/at/shared.cjs +1 -3
  169. package/dist/prop/at/shared.mjs +1 -2
  170. package/dist/prop/bosswind/browser.cjs +4 -5
  171. package/dist/prop/bosswind/browser.mjs +1 -3
  172. package/dist/prop/bosswind/runtime-only.cjs +4 -5
  173. package/dist/prop/bosswind/runtime-only.mjs +1 -3
  174. package/dist/prop/bosswind/selectors.cjs +1 -3
  175. package/dist/prop/bosswind/selectors.mjs +1 -2
  176. package/dist/prop/bosswind/server.cjs +12 -12
  177. package/dist/prop/bosswind/server.mjs +6 -7
  178. package/dist/prop/bosswind/shared.cjs +59 -9
  179. package/dist/prop/bosswind/shared.mjs +57 -8
  180. package/dist/prop/bosswind/tailwind-theme.cjs +2 -38
  181. package/dist/prop/bosswind/tailwind-theme.mjs +2 -37
  182. package/dist/prop/child/runtime-only.cjs +2 -3
  183. package/dist/prop/child/runtime-only.mjs +1 -2
  184. package/dist/prop/child/server.cjs +10 -11
  185. package/dist/prop/child/server.mjs +2 -4
  186. package/dist/prop/css/getDtsTemplate.cjs +7 -6
  187. package/dist/prop/css/getDtsTemplate.mjs +5 -4
  188. package/dist/prop/css/runtime-only.cjs +4 -5
  189. package/dist/prop/css/runtime-only.mjs +1 -3
  190. package/dist/prop/css/server.cjs +12 -13
  191. package/dist/prop/css/server.mjs +4 -6
  192. package/dist/prop/pseudo/runtime-only.cjs +3 -5
  193. package/dist/prop/pseudo/runtime-only.mjs +1 -3
  194. package/dist/prop/pseudo/server.cjs +19 -20
  195. package/dist/prop/pseudo/server.mjs +11 -13
  196. package/dist/prop/pseudo/shared.cjs +1 -3
  197. package/dist/prop/pseudo/shared.mjs +1 -2
  198. package/dist/reset/server.cjs +10 -11
  199. package/dist/reset/server.mjs +2 -4
  200. package/dist/runtime/index.cjs +5 -6
  201. package/dist/runtime/index.mjs +1 -3
  202. package/dist/runtime/preact.cjs +3 -3
  203. package/dist/runtime/preact.mjs +1 -2
  204. package/dist/runtime/qwik.cjs +3 -4
  205. package/dist/runtime/qwik.mjs +1 -3
  206. package/dist/runtime/react.cjs +3 -3
  207. package/dist/runtime/react.mjs +1 -2
  208. package/dist/runtime/solid.cjs +3 -4
  209. package/dist/runtime/solid.mjs +1 -3
  210. package/dist/runtime/stencil.cjs +4 -5
  211. package/dist/runtime/stencil.mjs +1 -3
  212. package/dist/runtime/style.cjs +2 -3
  213. package/dist/runtime/style.mjs +1 -2
  214. package/dist/shared/boundaries.cjs +4 -6
  215. package/dist/shared/boundaries.mjs +1 -3
  216. package/dist/shared/customCss.cjs +1 -3
  217. package/dist/shared/customCss.mjs +1 -2
  218. package/dist/shared/debug.cjs +2 -4
  219. package/dist/shared/debug.mjs +2 -3
  220. package/dist/shared/file.cjs +3 -5
  221. package/dist/shared/file.mjs +1 -3
  222. package/dist/shared/framework.cjs +1 -3
  223. package/dist/shared/framework.mjs +1 -2
  224. package/dist/shared/json.cjs +1 -3
  225. package/dist/shared/json.mjs +1 -2
  226. package/dist/shared/types.cjs +1 -3
  227. package/dist/shared/types.mjs +1 -2
  228. package/dist/strategy/classic/runtime-only.cjs +15 -16
  229. package/dist/strategy/classic/runtime-only.mjs +3 -5
  230. package/dist/strategy/classname-first/browser.cjs +7 -8
  231. package/dist/strategy/classname-first/browser.mjs +1 -3
  232. package/dist/strategy/classname-first/runtime-only.cjs +13 -14
  233. package/dist/strategy/classname-first/runtime-only.mjs +1 -3
  234. package/dist/strategy/classname-first/server.cjs +9 -11
  235. package/dist/strategy/classname-first/server.mjs +3 -5
  236. package/dist/strategy/classname-only/server.cjs +8 -10
  237. package/dist/strategy/classname-only/server.mjs +2 -4
  238. package/dist/strategy/inline-first/browser.cjs +6 -7
  239. package/dist/strategy/inline-first/browser.mjs +1 -3
  240. package/dist/strategy/inline-first/runtime-only.cjs +12 -13
  241. package/dist/strategy/inline-first/runtime-only.mjs +1 -3
  242. package/dist/strategy/inline-first/server.cjs +9 -11
  243. package/dist/strategy/inline-first/server.mjs +3 -5
  244. package/dist/strategy/runtime/runtime-only.cjs +6 -8
  245. package/dist/strategy/runtime/runtime-only.mjs +1 -4
  246. package/dist/strategy/runtime/server.cjs +11 -12
  247. package/dist/strategy/runtime/server.mjs +2 -4
  248. package/dist/strategy/runtime-only/css.cjs +5 -6
  249. package/dist/strategy/runtime-only/css.mjs +4 -5
  250. package/dist/tasks/build.cjs +8 -10
  251. package/dist/tasks/build.mjs +1 -3
  252. package/dist/tasks/compile.cjs +2 -4
  253. package/dist/tasks/compile.mjs +1 -3
  254. package/dist/tasks/postcss.cjs +11 -13
  255. package/dist/tasks/postcss.mjs +1 -3
  256. package/dist/tasks/session.cjs +4 -6
  257. package/dist/tasks/session.mjs +1 -3
  258. package/dist/tasks/watch.cjs +7 -9
  259. package/dist/tasks/watch.mjs +1 -3
  260. package/dist/transform/cache.cjs +1 -3
  261. package/dist/transform/cache.mjs +1 -2
  262. package/dist/transform/processFile.cjs +4 -6
  263. package/dist/transform/processFile.mjs +1 -3
  264. package/dist/use/token/browser.cjs +4 -5
  265. package/dist/use/token/browser.mjs +1 -3
  266. package/dist/use/token/normalize.cjs +1 -3
  267. package/dist/use/token/normalize.mjs +1 -2
  268. package/dist/use/token/propMap.cjs +1 -3
  269. package/dist/use/token/propMap.mjs +1 -2
  270. package/dist/use/token/runtime-only.cjs +5 -6
  271. package/dist/use/token/runtime-only.mjs +1 -3
  272. package/dist/use/token/server.cjs +13 -14
  273. package/dist/use/token/server.mjs +4 -6
  274. package/dist/use/token/vars.cjs +2 -4
  275. package/dist/use/token/vars.mjs +1 -3
  276. package/package.json +23 -23
  277. package/dist/_virtual/rolldown_runtime.mjs +0 -20
@@ -1,12 +1,11 @@
1
1
  #!/usr/bin/env node
2
- const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
3
- const require_api_config = require('../api/config.cjs');
4
- const require_utils = require('./utils.cjs');
2
+ const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
3
+ const require_api_config = require("../api/config.cjs");
4
+ const require_utils = require("./utils.cjs");
5
5
  let _clack_prompts = require("@clack/prompts");
6
6
  let yargs_yargs = require("yargs/yargs");
7
- yargs_yargs = require_rolldown_runtime.__toESM(yargs_yargs);
7
+ yargs_yargs = require_runtime.__toESM(yargs_yargs);
8
8
  let yargs_helpers = require("yargs/helpers");
9
-
10
9
  //#region src/cli/index.ts
11
10
  (0, _clack_prompts.intro)("boss");
12
11
  (async () => {
@@ -26,5 +25,4 @@ let yargs_helpers = require("yargs/helpers");
26
25
  userConfig
27
26
  });
28
27
  })();
29
-
30
- //#endregion
28
+ //#endregion
@@ -4,7 +4,6 @@ import { runTask } from "./utils.mjs";
4
4
  import { intro } from "@clack/prompts";
5
5
  import yargs from "yargs/yargs";
6
6
  import { hideBin } from "yargs/helpers";
7
-
8
7
  //#region src/cli/index.ts
9
8
  intro("boss");
10
9
  (async () => {
@@ -24,6 +23,5 @@ intro("boss");
24
23
  userConfig
25
24
  });
26
25
  })();
27
-
28
26
  //#endregion
29
- export { };
27
+ export {};
@@ -1,8 +1,7 @@
1
- const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
- const require_build = require('../../tasks/build.cjs');
3
- require('../build.cjs');
1
+ require("../../_virtual/_rolldown/runtime.cjs");
2
+ const require_build = require("../../tasks/build.cjs");
3
+ require("../build.cjs");
4
4
  let _clack_prompts = require("@clack/prompts");
5
-
6
5
  //#region src/cli/tasks/build.ts
7
6
  const build = async (config) => {
8
7
  return [{ prompt: async () => {
@@ -18,7 +17,5 @@ const build = async (config) => {
18
17
  }
19
18
  } }];
20
19
  };
21
- var build_default = build;
22
-
23
20
  //#endregion
24
- exports.default = build_default;
21
+ exports.default = build;
@@ -1,7 +1,6 @@
1
1
  import { runBuild } from "../../tasks/build.mjs";
2
2
  import "../build.mjs";
3
3
  import { log } from "@clack/prompts";
4
-
5
4
  //#region src/cli/tasks/build.ts
6
5
  const build = async (config) => {
7
6
  return [{ prompt: async () => {
@@ -17,7 +16,5 @@ const build = async (config) => {
17
16
  }
18
17
  } }];
19
18
  };
20
- var build_default = build;
21
-
22
19
  //#endregion
23
- export { build_default as default };
20
+ export { build as default };
@@ -1,7 +1,6 @@
1
- const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
- const require_utils = require('../utils.cjs');
1
+ require("../../_virtual/_rolldown/runtime.cjs");
2
+ const require_utils = require("../utils.cjs");
3
3
  let _clack_prompts = require("@clack/prompts");
4
-
5
4
  //#region src/cli/tasks/choose.ts
6
5
  const chooseTask = async (config) => {
7
6
  return [{ prompt: async () => {
@@ -41,7 +40,5 @@ const chooseTask = async (config) => {
41
40
  return true;
42
41
  } }];
43
42
  };
44
- var choose_default = chooseTask;
45
-
46
43
  //#endregion
47
- exports.default = choose_default;
44
+ exports.default = chooseTask;
@@ -1,6 +1,5 @@
1
1
  import { cancelIf, runTask } from "../utils.mjs";
2
2
  import { select } from "@clack/prompts";
3
-
4
3
  //#region src/cli/tasks/choose.ts
5
4
  const chooseTask = async (config) => {
6
5
  return [{ prompt: async () => {
@@ -40,7 +39,5 @@ const chooseTask = async (config) => {
40
39
  return true;
41
40
  } }];
42
41
  };
43
- var choose_default = chooseTask;
44
-
45
42
  //#endregion
46
- export { choose_default as default };
43
+ export { chooseTask as default };
@@ -1,7 +1,6 @@
1
- const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
- const require_compile = require('../../tasks/compile.cjs');
1
+ require("../../_virtual/_rolldown/runtime.cjs");
2
+ const require_compile = require("../../tasks/compile.cjs");
3
3
  let _clack_prompts = require("@clack/prompts");
4
-
5
4
  //#region src/cli/tasks/compile.ts
6
5
  const compile = async (config) => {
7
6
  return [{ prompt: async () => {
@@ -62,7 +61,5 @@ const coerceArgValue = (value) => {
62
61
  if (value === "false") return false;
63
62
  return value;
64
63
  };
65
- var compile_default = compile;
66
-
67
64
  //#endregion
68
- exports.default = compile_default;
65
+ exports.default = compile;
@@ -1,6 +1,5 @@
1
1
  import { runCompile } from "../../tasks/compile.mjs";
2
2
  import { log } from "@clack/prompts";
3
-
4
3
  //#region src/cli/tasks/compile.ts
5
4
  const compile = async (config) => {
6
5
  return [{ prompt: async () => {
@@ -61,7 +60,5 @@ const coerceArgValue = (value) => {
61
60
  if (value === "false") return false;
62
61
  return value;
63
62
  };
64
- var compile_default = compile;
65
-
66
63
  //#endregion
67
- export { compile_default as default };
64
+ export { compile as default };
@@ -1,13 +1,12 @@
1
- const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
- const require_shared = require('../../dev/shared.cjs');
3
- const require_dev_server = require('../../dev/server.cjs');
4
- const require_port = require('../../dev/port.cjs');
1
+ const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
2
+ const require_shared = require("../../dev/shared.cjs");
3
+ const require_dev_server = require("../../dev/server.cjs");
4
+ const require_port = require("../../dev/port.cjs");
5
5
  let node_fs_promises = require("node:fs/promises");
6
- node_fs_promises = require_rolldown_runtime.__toESM(node_fs_promises);
6
+ node_fs_promises = require_runtime.__toESM(node_fs_promises);
7
7
  let node_path = require("node:path");
8
- node_path = require_rolldown_runtime.__toESM(node_path);
8
+ node_path = require_runtime.__toESM(node_path);
9
9
  let _clack_prompts = require("@clack/prompts");
10
-
11
10
  //#region src/cli/tasks/dev.ts
12
11
  const dev = async (config) => {
13
12
  return [{ prompt: async () => {
@@ -21,7 +20,7 @@ const dev = async (config) => {
21
20
  });
22
21
  const configPath = await resolveConfigPath(userConfig);
23
22
  if (configPath) {
24
- if (!await require_port.updateDevPort(configPath, port, port !== require_shared.DEFAULT_DEV_PORT)) _clack_prompts.log.warn(`Skipping devServer update for ${configPath}.`);
23
+ if (!await require_port.updateDevPort(configPath, port, port !== 48400)) _clack_prompts.log.warn(`Skipping devServer update for ${configPath}.`);
25
24
  } else _clack_prompts.log.warn("No boss config found; skipping devServer update.");
26
25
  const runtimeDir = userConfig.folder ?? configDir;
27
26
  await require_port.updateRuntimePort(node_path.default.join(process.cwd(), runtimeDir, "index.js"), port);
@@ -45,7 +44,5 @@ const resolveConfigPath = async (userConfig) => {
45
44
  }
46
45
  return null;
47
46
  };
48
- var dev_default = dev;
49
-
50
47
  //#endregion
51
- exports.default = dev_default;
48
+ exports.default = dev;
@@ -4,7 +4,6 @@ import { updateDevPort, updateRuntimePort } from "../../dev/port.mjs";
4
4
  import fs from "node:fs/promises";
5
5
  import path from "node:path";
6
6
  import { log } from "@clack/prompts";
7
-
8
7
  //#region src/cli/tasks/dev.ts
9
8
  const dev = async (config) => {
10
9
  return [{ prompt: async () => {
@@ -18,7 +17,7 @@ const dev = async (config) => {
18
17
  });
19
18
  const configPath = await resolveConfigPath(userConfig);
20
19
  if (configPath) {
21
- if (!await updateDevPort(configPath, port, port !== DEFAULT_DEV_PORT)) log.warn(`Skipping devServer update for ${configPath}.`);
20
+ if (!await updateDevPort(configPath, port, port !== 48400)) log.warn(`Skipping devServer update for ${configPath}.`);
22
21
  } else log.warn("No boss config found; skipping devServer update.");
23
22
  const runtimeDir = userConfig.folder ?? configDir;
24
23
  await updateRuntimePort(path.join(process.cwd(), runtimeDir, "index.js"), port);
@@ -42,7 +41,5 @@ const resolveConfigPath = async (userConfig) => {
42
41
  }
43
42
  return null;
44
43
  };
45
- var dev_default = dev;
46
-
47
44
  //#endregion
48
- export { dev_default as default };
45
+ export { dev as default };
@@ -1,35 +1,34 @@
1
- const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
- const require_api_server = require('../../api/server.cjs');
3
- const require_json = require('../../shared/json.cjs');
4
- const require_utils = require('../utils.cjs');
5
- const require_detect_fw_index = require('../../detect-fw/index.cjs');
6
- const require_parser_jsx_server = require('../../parser/jsx/server.cjs');
7
- const require_parser_classname_server = require('../../parser/classname/server.cjs');
8
- const require_prop_pseudo_server = require('../../prop/pseudo/server.cjs');
9
- const require_prop_at_server = require('../../prop/at/server.cjs');
10
- const require_prop_child_server = require('../../prop/child/server.cjs');
11
- const require_prop_css_server = require('../../prop/css/server.cjs');
12
- const require_prop_bosswind_server = require('../../prop/bosswind/server.cjs');
13
- const require_strategy_inline_first_server = require('../../strategy/inline-first/server.cjs');
14
- const require_strategy_classname_first_server = require('../../strategy/classname-first/server.cjs');
15
- const require_strategy_runtime_server = require('../../strategy/runtime/server.cjs');
16
- const require_strategy_classname_only_server = require('../../strategy/classname-only/server.cjs');
17
- const require_reset_server = require('../../reset/server.cjs');
18
- const require_fontsource_server = require('../../fontsource/server.cjs');
19
- const require_use_token_server = require('../../use/token/server.cjs');
20
- const require_ai_server = require('../../ai/server.cjs');
21
- const require_dev_plugin_server = require('../../dev/plugin/server.cjs');
22
- const require_init = require('../templates/init.cjs');
23
- const require_types = require('../../shared/types.cjs');
24
- const require_types$1 = require('../types.cjs');
1
+ const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
2
+ const require_api_server = require("../../api/server.cjs");
3
+ const require_json = require("../../shared/json.cjs");
4
+ const require_utils = require("../utils.cjs");
5
+ const require_detect_fw_index = require("../../detect-fw/index.cjs");
6
+ const require_parser_jsx_server = require("../../parser/jsx/server.cjs");
7
+ const require_parser_classname_server = require("../../parser/classname/server.cjs");
8
+ const require_prop_pseudo_server = require("../../prop/pseudo/server.cjs");
9
+ const require_prop_at_server = require("../../prop/at/server.cjs");
10
+ const require_prop_child_server = require("../../prop/child/server.cjs");
11
+ const require_prop_css_server = require("../../prop/css/server.cjs");
12
+ const require_prop_bosswind_server = require("../../prop/bosswind/server.cjs");
13
+ const require_strategy_inline_first_server = require("../../strategy/inline-first/server.cjs");
14
+ const require_strategy_classname_first_server = require("../../strategy/classname-first/server.cjs");
15
+ const require_strategy_runtime_server = require("../../strategy/runtime/server.cjs");
16
+ const require_strategy_classname_only_server = require("../../strategy/classname-only/server.cjs");
17
+ const require_reset_server = require("../../reset/server.cjs");
18
+ const require_fontsource_server = require("../../fontsource/server.cjs");
19
+ const require_use_token_server = require("../../use/token/server.cjs");
20
+ const require_ai_server = require("../../ai/server.cjs");
21
+ const require_dev_plugin_server = require("../../dev/plugin/server.cjs");
22
+ const require_init = require("../templates/init.cjs");
23
+ const require_types = require("../../shared/types.cjs");
24
+ const require_types$1 = require("../types.cjs");
25
25
  let node_fs_promises = require("node:fs/promises");
26
- node_fs_promises = require_rolldown_runtime.__toESM(node_fs_promises);
26
+ node_fs_promises = require_runtime.__toESM(node_fs_promises);
27
27
  let node_path = require("node:path");
28
- node_path = require_rolldown_runtime.__toESM(node_path);
28
+ node_path = require_runtime.__toESM(node_path);
29
29
  let _clack_prompts = require("@clack/prompts");
30
30
  let pluvo = require("pluvo");
31
- pluvo = require_rolldown_runtime.__toESM(pluvo);
32
-
31
+ pluvo = require_runtime.__toESM(pluvo);
33
32
  //#region src/cli/tasks/init.ts
34
33
  const EXTENSIONS = "html,js,jsx,mjs,cjs,ts,tsx,mdx,md";
35
34
  const INIT_COMMENT_STYLES = {
@@ -1086,7 +1085,7 @@ const findExportIdentifier = (content) => {
1086
1085
  };
1087
1086
  const findArrayBoundsByIdentifier = (content, identifier) => {
1088
1087
  const escaped = escapeRegExp(identifier);
1089
- const match = content.match(/* @__PURE__ */ new RegExp(`\\b(?:const|let|var)\\s+${escaped}\\s*=\\s*\\[`));
1088
+ const match = content.match(new RegExp(`\\b(?:const|let|var)\\s+${escaped}\\s*=\\s*\\[`));
1090
1089
  if (!match) return null;
1091
1090
  if (match.index == null) return null;
1092
1091
  const startIndex = match.index + match[0].length - 1;
@@ -1099,7 +1098,7 @@ const findArrayBoundsByIdentifier = (content, identifier) => {
1099
1098
  };
1100
1099
  const findDefineConfigArrayBoundsByIdentifier = (content, identifier) => {
1101
1100
  const escaped = escapeRegExp(identifier);
1102
- const match = content.match(/* @__PURE__ */ new RegExp(`\\b(?:const|let|var)\\s+${escaped}\\s*=\\s*defineConfig\\s*\\(`));
1101
+ const match = content.match(new RegExp(`\\b(?:const|let|var)\\s+${escaped}\\s*=\\s*defineConfig\\s*\\(`));
1103
1102
  if (!match) return null;
1104
1103
  if (match.index == null) return null;
1105
1104
  return findDefineConfigArrayBounds(content, match.index + match[0].length - 1);
@@ -1118,7 +1117,7 @@ const findDefineConfigArrayBounds = (content, callStart) => {
1118
1117
  };
1119
1118
  const findObjectStartByIdentifier = (content, identifier) => {
1120
1119
  const escaped = escapeRegExp(identifier);
1121
- const match = content.match(/* @__PURE__ */ new RegExp(`\\b(?:const|let|var)\\s+${escaped}\\s*=\\s*\\{`));
1120
+ const match = content.match(new RegExp(`\\b(?:const|let|var)\\s+${escaped}\\s*=\\s*\\{`));
1122
1121
  if (!match) return null;
1123
1122
  if (match.index == null) return null;
1124
1123
  return match.index + match[0].length - 1;
@@ -1211,11 +1210,11 @@ const needsArrayComma = (content, bounds) => {
1211
1210
  return lastChar !== "[" && lastChar !== ",";
1212
1211
  };
1213
1212
  const ensureArrayEntry = (content, key, entry) => {
1214
- const arrayMatch = content.match(/* @__PURE__ */ new RegExp(`${key}\\s*:\\s*\\[`));
1215
- const stringMatch = !arrayMatch ? content.match(/* @__PURE__ */ new RegExp(`${key}\\s*:\\s*(['"][^'"]+['"])`)) : null;
1213
+ const arrayMatch = content.match(new RegExp(`${key}\\s*:\\s*\\[`));
1214
+ const stringMatch = !arrayMatch ? content.match(new RegExp(`${key}\\s*:\\s*(['"][^'"]+['"])`)) : null;
1216
1215
  if (stringMatch) {
1217
- const entryValue$1 = entry.replace(/^['"]|['"]$/g, "");
1218
- if (stringMatch[1].replace(/^['"]|['"]$/g, "") === entryValue$1) return {
1216
+ const entryValue = entry.replace(/^['"]|['"]$/g, "");
1217
+ if (stringMatch[1].replace(/^['"]|['"]$/g, "") === entryValue) return {
1219
1218
  updated: false,
1220
1219
  content
1221
1220
  };
@@ -1231,10 +1230,10 @@ const ensureArrayEntry = (content, key, entry) => {
1231
1230
  updated: false,
1232
1231
  content
1233
1232
  };
1234
- const insertion$1 = `\n${`${getIndentFromIndex(content, objectStart)} `}${key}: [${entry}],`;
1233
+ const insertion = `\n${`${getIndentFromIndex(content, objectStart)} `}${key}: [${entry}],`;
1235
1234
  return {
1236
1235
  updated: true,
1237
- content: `${content.slice(0, objectStart + 1)}${insertion$1}${content.slice(objectStart + 1)}`
1236
+ content: `${content.slice(0, objectStart + 1)}${insertion}${content.slice(objectStart + 1)}`
1238
1237
  };
1239
1238
  }
1240
1239
  if (arrayMatch.index == null) return {
@@ -1248,7 +1247,7 @@ const ensureArrayEntry = (content, key, entry) => {
1248
1247
  content
1249
1248
  };
1250
1249
  const entryValue = entry.replace(/^['"]|['"]$/g, "");
1251
- if ((/* @__PURE__ */ new RegExp(`['"]${escapeRegExp(entryValue)}['"]`)).test(content.slice(startIndex, endIndex))) return {
1250
+ if (new RegExp(`['"]${escapeRegExp(entryValue)}['"]`).test(content.slice(startIndex, endIndex))) return {
1252
1251
  updated: false,
1253
1252
  content
1254
1253
  };
@@ -1512,7 +1511,7 @@ const insertManagedBlock = (content, lines) => {
1512
1511
  const escapeRegExp = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1513
1512
  const hasImportPath = (content, importPath) => {
1514
1513
  const escaped = escapeRegExp(importPath);
1515
- return (/* @__PURE__ */ new RegExp(`['"]${escaped}['"]`)).test(content);
1514
+ return new RegExp(`['"]${escaped}['"]`).test(content);
1516
1515
  };
1517
1516
  const insertImports = (content, importLines) => {
1518
1517
  const lines = content.split("\n");
@@ -1862,7 +1861,5 @@ const logInitSummary = ({ configDir, isNext, postcssMode, postcssDetection, conf
1862
1861
  if (globalsEnabled) _clack_prompts.log.message("Global $$ enabled for JSX usage.");
1863
1862
  if (eslintUpdated) _clack_prompts.log.message(useEslintPlugin ? "ESLint updated with Boss CSS plugin." : "ESLint updated with $$ globals.");
1864
1863
  };
1865
- var init_default = init;
1866
-
1867
1864
  //#endregion
1868
- exports.default = init_default;
1865
+ exports.default = init;
@@ -25,7 +25,6 @@ import fs from "node:fs/promises";
25
25
  import path from "node:path";
26
26
  import { confirm, log, multiselect, select, text } from "@clack/prompts";
27
27
  import pluvo, { DEFAULT_COMMENT_STYLES } from "pluvo";
28
-
29
28
  //#region src/cli/tasks/init.ts
30
29
  const EXTENSIONS = "html,js,jsx,mjs,cjs,ts,tsx,mdx,md";
31
30
  const INIT_COMMENT_STYLES = {
@@ -1082,7 +1081,7 @@ const findExportIdentifier = (content) => {
1082
1081
  };
1083
1082
  const findArrayBoundsByIdentifier = (content, identifier) => {
1084
1083
  const escaped = escapeRegExp(identifier);
1085
- const match = content.match(/* @__PURE__ */ new RegExp(`\\b(?:const|let|var)\\s+${escaped}\\s*=\\s*\\[`));
1084
+ const match = content.match(new RegExp(`\\b(?:const|let|var)\\s+${escaped}\\s*=\\s*\\[`));
1086
1085
  if (!match) return null;
1087
1086
  if (match.index == null) return null;
1088
1087
  const startIndex = match.index + match[0].length - 1;
@@ -1095,7 +1094,7 @@ const findArrayBoundsByIdentifier = (content, identifier) => {
1095
1094
  };
1096
1095
  const findDefineConfigArrayBoundsByIdentifier = (content, identifier) => {
1097
1096
  const escaped = escapeRegExp(identifier);
1098
- const match = content.match(/* @__PURE__ */ new RegExp(`\\b(?:const|let|var)\\s+${escaped}\\s*=\\s*defineConfig\\s*\\(`));
1097
+ const match = content.match(new RegExp(`\\b(?:const|let|var)\\s+${escaped}\\s*=\\s*defineConfig\\s*\\(`));
1099
1098
  if (!match) return null;
1100
1099
  if (match.index == null) return null;
1101
1100
  return findDefineConfigArrayBounds(content, match.index + match[0].length - 1);
@@ -1114,7 +1113,7 @@ const findDefineConfigArrayBounds = (content, callStart) => {
1114
1113
  };
1115
1114
  const findObjectStartByIdentifier = (content, identifier) => {
1116
1115
  const escaped = escapeRegExp(identifier);
1117
- const match = content.match(/* @__PURE__ */ new RegExp(`\\b(?:const|let|var)\\s+${escaped}\\s*=\\s*\\{`));
1116
+ const match = content.match(new RegExp(`\\b(?:const|let|var)\\s+${escaped}\\s*=\\s*\\{`));
1118
1117
  if (!match) return null;
1119
1118
  if (match.index == null) return null;
1120
1119
  return match.index + match[0].length - 1;
@@ -1207,11 +1206,11 @@ const needsArrayComma = (content, bounds) => {
1207
1206
  return lastChar !== "[" && lastChar !== ",";
1208
1207
  };
1209
1208
  const ensureArrayEntry = (content, key, entry) => {
1210
- const arrayMatch = content.match(/* @__PURE__ */ new RegExp(`${key}\\s*:\\s*\\[`));
1211
- const stringMatch = !arrayMatch ? content.match(/* @__PURE__ */ new RegExp(`${key}\\s*:\\s*(['"][^'"]+['"])`)) : null;
1209
+ const arrayMatch = content.match(new RegExp(`${key}\\s*:\\s*\\[`));
1210
+ const stringMatch = !arrayMatch ? content.match(new RegExp(`${key}\\s*:\\s*(['"][^'"]+['"])`)) : null;
1212
1211
  if (stringMatch) {
1213
- const entryValue$1 = entry.replace(/^['"]|['"]$/g, "");
1214
- if (stringMatch[1].replace(/^['"]|['"]$/g, "") === entryValue$1) return {
1212
+ const entryValue = entry.replace(/^['"]|['"]$/g, "");
1213
+ if (stringMatch[1].replace(/^['"]|['"]$/g, "") === entryValue) return {
1215
1214
  updated: false,
1216
1215
  content
1217
1216
  };
@@ -1227,10 +1226,10 @@ const ensureArrayEntry = (content, key, entry) => {
1227
1226
  updated: false,
1228
1227
  content
1229
1228
  };
1230
- const insertion$1 = `\n${`${getIndentFromIndex(content, objectStart)} `}${key}: [${entry}],`;
1229
+ const insertion = `\n${`${getIndentFromIndex(content, objectStart)} `}${key}: [${entry}],`;
1231
1230
  return {
1232
1231
  updated: true,
1233
- content: `${content.slice(0, objectStart + 1)}${insertion$1}${content.slice(objectStart + 1)}`
1232
+ content: `${content.slice(0, objectStart + 1)}${insertion}${content.slice(objectStart + 1)}`
1234
1233
  };
1235
1234
  }
1236
1235
  if (arrayMatch.index == null) return {
@@ -1244,7 +1243,7 @@ const ensureArrayEntry = (content, key, entry) => {
1244
1243
  content
1245
1244
  };
1246
1245
  const entryValue = entry.replace(/^['"]|['"]$/g, "");
1247
- if ((/* @__PURE__ */ new RegExp(`['"]${escapeRegExp(entryValue)}['"]`)).test(content.slice(startIndex, endIndex))) return {
1246
+ if (new RegExp(`['"]${escapeRegExp(entryValue)}['"]`).test(content.slice(startIndex, endIndex))) return {
1248
1247
  updated: false,
1249
1248
  content
1250
1249
  };
@@ -1508,7 +1507,7 @@ const insertManagedBlock = (content, lines) => {
1508
1507
  const escapeRegExp = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1509
1508
  const hasImportPath = (content, importPath) => {
1510
1509
  const escaped = escapeRegExp(importPath);
1511
- return (/* @__PURE__ */ new RegExp(`['"]${escaped}['"]`)).test(content);
1510
+ return new RegExp(`['"]${escaped}['"]`).test(content);
1512
1511
  };
1513
1512
  const insertImports = (content, importLines) => {
1514
1513
  const lines = content.split("\n");
@@ -1858,7 +1857,5 @@ const logInitSummary = ({ configDir, isNext, postcssMode, postcssDetection, conf
1858
1857
  if (globalsEnabled) log.message("Global $$ enabled for JSX usage.");
1859
1858
  if (eslintUpdated) log.message(useEslintPlugin ? "ESLint updated with Boss CSS plugin." : "ESLint updated with $$ globals.");
1860
1859
  };
1861
- var init_default = init;
1862
-
1863
1860
  //#endregion
1864
- export { init_default as default };
1861
+ export { init as default };
@@ -1,7 +1,6 @@
1
- const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
- const require_watch = require('../../tasks/watch.cjs');
1
+ require("../../_virtual/_rolldown/runtime.cjs");
2
+ const require_watch = require("../../tasks/watch.cjs");
3
3
  let _clack_prompts = require("@clack/prompts");
4
-
5
4
  //#region src/cli/tasks/watch.ts
6
5
  const watch = async (config) => {
7
6
  return [{ prompt: async () => {
@@ -32,7 +31,5 @@ const watch = async (config) => {
32
31
  return true;
33
32
  } }];
34
33
  };
35
- var watch_default = watch;
36
-
37
34
  //#endregion
38
- exports.default = watch_default;
35
+ exports.default = watch;
@@ -1,6 +1,5 @@
1
1
  import { runWatch } from "../../tasks/watch.mjs";
2
2
  import { log } from "@clack/prompts";
3
-
4
3
  //#region src/cli/tasks/watch.ts
5
4
  const watch = async (config) => {
6
5
  return [{ prompt: async () => {
@@ -31,7 +30,5 @@ const watch = async (config) => {
31
30
  return true;
32
31
  } }];
33
32
  };
34
- var watch_default = watch;
35
-
36
33
  //#endregion
37
- export { watch_default as default };
34
+ export { watch as default };
@@ -1,4 +1,3 @@
1
-
2
1
  //#region src/cli/templates/init.ts
3
2
  const configTemplate = `/* eslint-disable */
4
3
  // @ts-check
@@ -74,9 +73,8 @@ const postcssTemplate = `export default {
74
73
  },
75
74
  }
76
75
  `;
77
-
78
76
  //#endregion
79
77
  exports.configTemplate = configTemplate;
80
78
  exports.jsconfigTemplate = jsconfigTemplate;
81
79
  exports.packageTemplate = packageTemplate;
82
- exports.postcssTemplate = postcssTemplate;
80
+ exports.postcssTemplate = postcssTemplate;
@@ -73,6 +73,5 @@ const postcssTemplate = `export default {
73
73
  },
74
74
  }
75
75
  `;
76
-
77
76
  //#endregion
78
- export { configTemplate, jsconfigTemplate, packageTemplate, postcssTemplate };
77
+ export { configTemplate, jsconfigTemplate, packageTemplate, postcssTemplate };
@@ -1,5 +1,4 @@
1
- const require_types = require('../shared/types.cjs');
2
-
1
+ require("../shared/types.cjs");
3
2
  //#region src/cli/types.ts
4
3
  let PackageManagerType = /* @__PURE__ */ function(PackageManagerType) {
5
4
  PackageManagerType["NPM"] = "npm";
@@ -8,6 +7,5 @@ let PackageManagerType = /* @__PURE__ */ function(PackageManagerType) {
8
7
  PackageManagerType["BUN"] = "bun";
9
8
  return PackageManagerType;
10
9
  }({});
11
-
12
10
  //#endregion
13
- exports.PackageManagerType = PackageManagerType;
11
+ exports.PackageManagerType = PackageManagerType;
@@ -1,5 +1,4 @@
1
- import { RuntimeType } from "../shared/types.mjs";
2
-
1
+ import "../shared/types.mjs";
3
2
  //#region src/cli/types.ts
4
3
  let PackageManagerType = /* @__PURE__ */ function(PackageManagerType) {
5
4
  PackageManagerType["NPM"] = "npm";
@@ -8,6 +7,5 @@ let PackageManagerType = /* @__PURE__ */ function(PackageManagerType) {
8
7
  PackageManagerType["BUN"] = "bun";
9
8
  return PackageManagerType;
10
9
  }({});
11
-
12
10
  //#endregion
13
- export { PackageManagerType };
11
+ export { PackageManagerType };
@@ -1,6 +1,5 @@
1
- const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
1
+ require("../_virtual/_rolldown/runtime.cjs");
2
2
  let _clack_prompts = require("@clack/prompts");
3
-
4
3
  //#region src/cli/utils.ts
5
4
  const cancelIf = (value, message = "Operation cancelled.") => {
6
5
  if ((0, _clack_prompts.isCancel)(value)) {
@@ -37,7 +36,6 @@ async function runTask(config) {
37
36
  await prompt(config);
38
37
  }
39
38
  }
40
-
41
39
  //#endregion
42
40
  exports.cancelIf = cancelIf;
43
- exports.runTask = runTask;
41
+ exports.runTask = runTask;
@@ -1,5 +1,4 @@
1
1
  import { cancel, isCancel, log } from "@clack/prompts";
2
-
3
2
  //#region src/cli/utils.ts
4
3
  const cancelIf = (value, message = "Operation cancelled.") => {
5
4
  if (isCancel(value)) {
@@ -36,6 +35,5 @@ async function runTask(config) {
36
35
  await prompt(config);
37
36
  }
38
37
  }
39
-
40
38
  //#endregion
41
- export { cancelIf, runTask };
39
+ export { cancelIf, runTask };
@@ -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 _emotion_hash = require("@emotion/hash");
3
- _emotion_hash = require_rolldown_runtime.__toESM(_emotion_hash);
4
-
3
+ _emotion_hash = require_runtime.__toESM(_emotion_hash);
5
4
  //#region src/compile/classname-strategy.ts
6
5
  const shortestAlphabet = "cCsSxyzXYZwqWQ";
7
6
  const isUnsafeUnicode = (codePoint) => {
@@ -74,6 +73,5 @@ const createClassNameMapper = (options) => {
74
73
  }
75
74
  };
76
75
  };
77
-
78
76
  //#endregion
79
- exports.createClassNameMapper = createClassNameMapper;
77
+ exports.createClassNameMapper = createClassNameMapper;
@@ -1,5 +1,4 @@
1
1
  import hash from "@emotion/hash";
2
-
3
2
  //#region src/compile/classname-strategy.ts
4
3
  const shortestAlphabet = "cCsSxyzXYZwqWQ";
5
4
  const isUnsafeUnicode = (codePoint) => {
@@ -72,6 +71,5 @@ const createClassNameMapper = (options) => {
72
71
  }
73
72
  };
74
73
  };
75
-
76
74
  //#endregion
77
- export { createClassNameMapper };
75
+ export { createClassNameMapper };
@@ -1,6 +1,5 @@
1
- const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
1
+ require("../_virtual/_rolldown/runtime.cjs");
2
2
  let _swc_core = require("@swc/core");
3
-
4
3
  //#region src/compile/classname.ts
5
4
  const tokenPrefix = "$$.token.";
6
5
  const rewriteClassNameTokens = (input) => {
@@ -107,11 +106,11 @@ const isClassAttribute = (attr, classNameProp) => {
107
106
  const rewriteSelector = (selector, options) => {
108
107
  const grouped = parseGroupedSelector(selector);
109
108
  if (grouped) {
110
- const nextEntries = grouped.entries.map((entry$1) => ({
111
- name: entry$1.name,
112
- rawValue: rewriteTokenValue(entry$1.rawValue)
109
+ const nextEntries = grouped.entries.map((entry) => ({
110
+ name: entry.name,
111
+ rawValue: rewriteTokenValue(entry.rawValue)
113
112
  }));
114
- if (nextEntries.length > 1 || options.expandSingleGroup) return [...nextEntries].sort((a, b) => a.name.localeCompare(b.name)).map((entry$1) => `${grouped.prefix}:${entry$1.name}:${entry$1.rawValue}`);
113
+ if (nextEntries.length > 1 || options.expandSingleGroup) return [...nextEntries].sort((a, b) => a.name.localeCompare(b.name)).map((entry) => `${grouped.prefix}:${entry.name}:${entry.rawValue}`);
115
114
  const [entry] = nextEntries;
116
115
  return [`${grouped.prefix}:{${entry.name}:${entry.rawValue}}`];
117
116
  }
@@ -356,11 +355,10 @@ const rewriteQuotedSegments = (input, rewrite) => {
356
355
  }
357
356
  return output;
358
357
  };
359
-
360
358
  //#endregion
361
359
  exports.collectBossClassTokensInSource = collectBossClassTokensInSource;
362
360
  exports.collectBossClassTokensInText = collectBossClassTokensInText;
363
361
  exports.rewriteClassNameTokensInElement = rewriteClassNameTokensInElement;
364
362
  exports.rewriteClassNameTokensInSource = rewriteClassNameTokensInSource;
365
363
  exports.rewriteClassNameTokensInText = rewriteClassNameTokensInText;
366
- exports.rewriteClassNameTokensWithMap = rewriteClassNameTokensWithMap;
364
+ exports.rewriteClassNameTokensWithMap = rewriteClassNameTokensWithMap;