boss-css 0.0.23 → 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 (276) 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/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.mjs +1 -2
  269. package/dist/use/token/runtime-only.cjs +5 -6
  270. package/dist/use/token/runtime-only.mjs +1 -3
  271. package/dist/use/token/server.cjs +13 -14
  272. package/dist/use/token/server.mjs +4 -6
  273. package/dist/use/token/vars.cjs +2 -4
  274. package/dist/use/token/vars.mjs +1 -3
  275. package/package.json +23 -23
  276. package/dist/_virtual/rolldown_runtime.mjs +0 -20
@@ -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 };
@@ -1,10 +1,10 @@
1
- const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
- const require_api_browser = require('../../api/browser.cjs');
3
- const require_merge_index = require('../../merge/index.cjs');
4
- const require_cx_index = require('../../cx/index.cjs');
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ require("../../_virtual/_rolldown/runtime.cjs");
3
+ const require_api_browser = require("../../api/browser.cjs");
4
+ const require_merge_index = require("../../merge/index.cjs");
5
+ const require_cx_index = require("../../cx/index.cjs");
5
6
  let react = require("react");
6
7
  let react_native = require("react-native");
7
-
8
8
  //#region src/parser/jsx/native.ts
9
9
  const nativeComponents = {
10
10
  ActivityIndicator: react_native.ActivityIndicator,
@@ -104,7 +104,6 @@ const proxy = new Proxy(defaultElement, {
104
104
  return true;
105
105
  }
106
106
  });
107
-
108
107
  //#endregion
109
108
  exports.factory = factory;
110
- exports.proxy = proxy;
109
+ exports.proxy = proxy;
@@ -1,7 +1,7 @@
1
- import * as react0 from "react";
1
+ import * as react from "react";
2
2
 
3
3
  //#region src/parser/jsx/native.d.ts
4
- declare function factory(tag?: string): (props: Record<string, unknown>, ref?: unknown) => Record<string, unknown> | react0.DetailedReactHTMLElement<react0.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
4
+ declare function factory(tag?: string): (props: Record<string, unknown>, ref?: unknown) => Record<string, unknown> | react.DetailedReactHTMLElement<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
5
5
  declare const proxy: any;
6
6
  //#endregion
7
7
  export { factory, proxy };
@@ -1,7 +1,7 @@
1
- import * as react0 from "react";
1
+ import * as react from "react";
2
2
 
3
3
  //#region src/parser/jsx/native.d.ts
4
- declare function factory(tag?: string): (props: Record<string, unknown>, ref?: unknown) => Record<string, unknown> | react0.DetailedReactHTMLElement<react0.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
4
+ declare function factory(tag?: string): (props: Record<string, unknown>, ref?: unknown) => Record<string, unknown> | react.DetailedReactHTMLElement<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
5
5
  declare const proxy: any;
6
6
  //#endregion
7
7
  export { factory, proxy };
@@ -3,7 +3,6 @@ import { merge } from "../../merge/index.mjs";
3
3
  import { cv, cx, scv, sv } from "../../cx/index.mjs";
4
4
  import { createElement, forwardRef } from "react";
5
5
  import { ActivityIndicator, FlatList, Image, Modal, Pressable, SafeAreaView, ScrollView, SectionList, Switch, Text, TextInput, TouchableHighlight, TouchableOpacity, TouchableWithoutFeedback, View } from "react-native";
6
-
7
6
  //#region src/parser/jsx/native.ts
8
7
  const nativeComponents = {
9
8
  ActivityIndicator,
@@ -103,6 +102,5 @@ const proxy = new Proxy(defaultElement, {
103
102
  return true;
104
103
  }
105
104
  });
106
-
107
105
  //#endregion
108
- export { factory, proxy };
106
+ export { factory, proxy };
@@ -1,4 +1,4 @@
1
- const require_runtime_index = require('../../runtime/index.cjs');
2
-
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_runtime_index = require("../../runtime/index.cjs");
3
3
  exports.factory = require_runtime_index.factory;
4
- exports.proxy = require_runtime_index.proxy;
4
+ exports.proxy = require_runtime_index.proxy;
@@ -1,3 +1,2 @@
1
1
  import { factory, proxy } from "../../runtime/index.mjs";
2
-
3
- export { factory, proxy };
2
+ export { factory, proxy };
@@ -1,16 +1,16 @@
1
- const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
- const require_customCss = require('../../shared/customCss.cjs');
3
- const require_extractCode = require('./extractCode.cjs');
4
- const require_extractPrepared = require('./extractPrepared.cjs');
5
- const require_extractProps = require('./extractProps.cjs');
6
- const require_detect_fw_index = require('../../detect-fw/index.cjs');
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
3
+ const require_customCss = require("../../shared/customCss.cjs");
4
+ const require_extractCode = require("./extractCode.cjs");
5
+ const require_extractPrepared = require("./extractPrepared.cjs");
6
+ const require_extractProps = require("./extractProps.cjs");
7
+ const require_detect_fw_index = require("../../detect-fw/index.cjs");
7
8
  let node_path = require("node:path");
8
- node_path = require_rolldown_runtime.__toESM(node_path);
9
+ node_path = require_runtime.__toESM(node_path);
9
10
  let _swc_core = require("@swc/core");
10
-
11
11
  //#region src/parser/jsx/server.ts
12
- var server_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
13
- name: () => name,
12
+ var server_exports = /* @__PURE__ */ require_runtime.__exportAll({
13
+ name: () => "jsx",
14
14
  onBoot: () => onBoot,
15
15
  onParse: () => onParse,
16
16
  settings: () => settings
@@ -302,15 +302,14 @@ const formatPreparedPath = (filePath) => {
302
302
  return relative;
303
303
  };
304
304
  const sanitizeDocText = (value) => value.replace(/\*\//g, "*\\/");
305
-
306
305
  //#endregion
307
306
  exports.name = name;
308
307
  exports.onBoot = onBoot;
309
308
  exports.onParse = onParse;
310
- Object.defineProperty(exports, 'server_exports', {
311
- enumerable: true,
312
- get: function () {
313
- return server_exports;
314
- }
309
+ Object.defineProperty(exports, "server_exports", {
310
+ enumerable: true,
311
+ get: function() {
312
+ return server_exports;
313
+ }
315
314
  });
316
- exports.settings = settings;
315
+ exports.settings = settings;
@@ -1,4 +1,4 @@
1
- import { __exportAll } from "../../_virtual/rolldown_runtime.mjs";
1
+ import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
2
2
  import { extractCustomCssText } from "../../shared/customCss.mjs";
3
3
  import { extractCode } from "./extractCode.mjs";
4
4
  import { extractPreparedComponents } from "./extractPrepared.mjs";
@@ -6,10 +6,9 @@ import { extractPropTrees } from "./extractProps.mjs";
6
6
  import { detectFramework, getJsxTypes } from "../../detect-fw/index.mjs";
7
7
  import path from "node:path";
8
8
  import { parseSync } from "@swc/core";
9
-
10
9
  //#region src/parser/jsx/server.ts
11
10
  var server_exports = /* @__PURE__ */ __exportAll({
12
- name: () => name,
11
+ name: () => "jsx",
13
12
  onBoot: () => onBoot,
14
13
  onParse: () => onParse,
15
14
  settings: () => settings
@@ -301,6 +300,5 @@ const formatPreparedPath = (filePath) => {
301
300
  return relative;
302
301
  };
303
302
  const sanitizeDocText = (value) => value.replace(/\*\//g, "*\\/");
304
-
305
303
  //#endregion
306
- export { name, onBoot, onParse, server_exports, settings };
304
+ export { name, onBoot, onParse, server_exports, settings };
@@ -1,5 +1,4 @@
1
- const require_postcss = require('../tasks/postcss.cjs');
2
-
1
+ const require_postcss = require("../tasks/postcss.cjs");
3
2
  //#region src/postcss/index.ts
4
3
  function postcssPlugin(options = {}) {
5
4
  return {
@@ -10,7 +9,5 @@ function postcssPlugin(options = {}) {
10
9
  };
11
10
  }
12
11
  postcssPlugin.postcss = true;
13
- var postcss_default = postcssPlugin;
14
-
15
12
  //#endregion
16
- module.exports = postcss_default;
13
+ module.exports = postcssPlugin;
@@ -1,5 +1,4 @@
1
1
  import { runPostcss } from "../tasks/postcss.mjs";
2
-
3
2
  //#region src/postcss/index.ts
4
3
  function postcssPlugin(options = {}) {
5
4
  return {
@@ -10,7 +9,5 @@ function postcssPlugin(options = {}) {
10
9
  };
11
10
  }
12
11
  postcssPlugin.postcss = true;
13
- var postcss_default = postcssPlugin;
14
-
15
12
  //#endregion
16
- export { postcss_default as default };
13
+ export { postcssPlugin as default };
@@ -1,5 +1,5 @@
1
- const require_shared = require('./shared.cjs');
2
-
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_shared = require("./shared.cjs");
3
3
  //#region src/prop/at/runtime-only.ts
4
4
  const atValuesCache = /* @__PURE__ */ new WeakMap();
5
5
  const buildQuery = (from, to) => {
@@ -52,11 +52,11 @@ const resolveContainerQuery = (api, key, name) => {
52
52
  const resolveAtQuery = (api, contexts) => {
53
53
  const atIndex = contexts.lastIndexOf("at");
54
54
  if (atIndex !== -1 && contexts[atIndex + 1]) {
55
- const containerInfo$1 = require_shared.parseContainerContext(contexts[atIndex + 1]);
56
- if (containerInfo$1) {
57
- const key$1 = contexts[atIndex + 2];
58
- if (!key$1) return null;
59
- return resolveContainerQuery(api, key$1, containerInfo$1.name);
55
+ const containerInfo = require_shared.parseContainerContext(contexts[atIndex + 1]);
56
+ if (containerInfo) {
57
+ const key = contexts[atIndex + 2];
58
+ if (!key) return null;
59
+ return resolveContainerQuery(api, key, containerInfo.name);
60
60
  }
61
61
  const key = contexts[atIndex + 1];
62
62
  return resolveMediaQuery(api, key);
@@ -83,8 +83,7 @@ const onInit = (api) => {
83
83
  ...api.breakpoints ?? {}
84
84
  };
85
85
  };
86
-
87
86
  //#endregion
88
87
  exports.name = name;
89
88
  exports.onInit = onInit;
90
- exports.resolveAtQuery = resolveAtQuery;
89
+ exports.resolveAtQuery = resolveAtQuery;
@@ -1,5 +1,4 @@
1
1
  import { baseAtValues, buildContainerQuery, buildMediaQuery, defaultBreakpoints, parseContainerContext, parseRangeKey } from "./shared.mjs";
2
-
3
2
  //#region src/prop/at/runtime-only.ts
4
3
  const atValuesCache = /* @__PURE__ */ new WeakMap();
5
4
  const buildQuery = (from, to) => {
@@ -52,11 +51,11 @@ const resolveContainerQuery = (api, key, name) => {
52
51
  const resolveAtQuery = (api, contexts) => {
53
52
  const atIndex = contexts.lastIndexOf("at");
54
53
  if (atIndex !== -1 && contexts[atIndex + 1]) {
55
- const containerInfo$1 = parseContainerContext(contexts[atIndex + 1]);
56
- if (containerInfo$1) {
57
- const key$1 = contexts[atIndex + 2];
58
- if (!key$1) return null;
59
- return resolveContainerQuery(api, key$1, containerInfo$1.name);
54
+ const containerInfo = parseContainerContext(contexts[atIndex + 1]);
55
+ if (containerInfo) {
56
+ const key = contexts[atIndex + 2];
57
+ if (!key) return null;
58
+ return resolveContainerQuery(api, key, containerInfo.name);
60
59
  }
61
60
  const key = contexts[atIndex + 1];
62
61
  return resolveMediaQuery(api, key);
@@ -83,6 +82,5 @@ const onInit = (api) => {
83
82
  ...api.breakpoints ?? {}
84
83
  };
85
84
  };
86
-
87
85
  //#endregion
88
- export { name, onInit, resolveAtQuery };
86
+ export { name, onInit, resolveAtQuery };
@@ -1,15 +1,15 @@
1
- const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
- const require_prop_pseudo_server = require('../pseudo/server.cjs');
3
- const require_shared = require('./shared.cjs');
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
3
+ const require_prop_pseudo_server = require("../pseudo/server.cjs");
4
+ const require_shared = require("./shared.cjs");
4
5
  let _emotion_hash = require("@emotion/hash");
5
- _emotion_hash = require_rolldown_runtime.__toESM(_emotion_hash);
6
-
6
+ _emotion_hash = require_runtime.__toESM(_emotion_hash);
7
7
  //#region src/prop/at/server.ts
8
- var server_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
9
- DOWN: () => DOWN,
10
- UP: () => UP,
8
+ var server_exports = /* @__PURE__ */ require_runtime.__exportAll({
9
+ DOWN: () => "-",
10
+ UP: () => "+",
11
11
  dependencies: () => dependencies,
12
- name: () => name,
12
+ name: () => "at",
13
13
  onBoot: () => onBoot,
14
14
  onProp: () => onProp,
15
15
  onReady: () => onReady,
@@ -33,8 +33,8 @@ const onBoot = async (api) => {
33
33
  const breakpoints = api.breakpoints;
34
34
  Object.entries(breakpoints).forEach(([name, [from, to]]) => [
35
35
  ["", [from, to]],
36
- [UP, [from, null]],
37
- [DOWN, [null, to]]
36
+ ["+", [from, null]],
37
+ ["-", [null, to]]
38
38
  ].forEach(([symbol, fromTo]) => breakpoints[`${name}${symbol}`] = fromTo));
39
39
  Object.entries(breakpoints).forEach(([name, [from, to]]) => {
40
40
  dependencies.add(name);
@@ -58,7 +58,7 @@ const onBoot = async (api) => {
58
58
  api.file.js.dts.set("body", `pseudo:AtPropsShorthandsInterfaceEnd`, `}`).set("body", "$$:KeyframesProps", `export type $$KeyframesProps = {
59
59
  [key: string]: $$FinalProps
60
60
  }`).set("body", "$$:AtNamedProps", `export type $$AtNamedProps = {
61
- [key in \`container_\${string}\`]?: StandardProperties['container'] | $$FinalProps
61
+ [key in \`container_\${string}\`]?: Properties['container'] | $$FinalProps
62
62
  } & {
63
63
  [key in \`keyframes_\${string}\`]?: $$KeyframesProps
64
64
  }`).set("body", `$$:AtProps`, `export type $$AtProps = {
@@ -104,10 +104,10 @@ const onReady = async (api) => {
104
104
  const updateFinalProps = (value) => {
105
105
  const content = typeof value === "string" ? value : value?.content;
106
106
  if (typeof content !== "string") return value;
107
- if (!content.includes("StandardProperties")) return content;
108
- if (content.includes(`Omit<StandardProperties, 'container'>`)) return content;
109
- return content.replace(" & StandardProperties", () => {
110
- return ` & Omit<StandardProperties, 'container'> & { container?: StandardProperties['container'] | $$FinalProps }`;
107
+ if (!content.includes(" & Properties")) return content;
108
+ if (content.includes(`Omit<Properties, 'container'>`)) return content;
109
+ return content.replace(" & Properties", () => {
110
+ return ` & Omit<Properties, 'container'> & { container?: Properties['container'] | $$FinalProps }`;
111
111
  });
112
112
  };
113
113
  api.file.js.dts.replace("body", "$$:FinalProps", updateFinalProps);
@@ -152,11 +152,11 @@ const resolveAtQuery = (api, contexts, key) => {
152
152
  const resolveQueryFromContexts = (api, contexts) => {
153
153
  const atIndex = contexts.lastIndexOf("at");
154
154
  if (atIndex !== -1 && contexts[atIndex + 1]) {
155
- const containerInfo$1 = require_shared.parseContainerContext(contexts[atIndex + 1]);
156
- if (containerInfo$1) {
157
- const key$1 = contexts[atIndex + 2];
158
- if (!key$1) return null;
159
- return resolveContainerQuery(api, key$1, containerInfo$1.name);
155
+ const containerInfo = require_shared.parseContainerContext(contexts[atIndex + 1]);
156
+ if (containerInfo) {
157
+ const key = contexts[atIndex + 2];
158
+ if (!key) return null;
159
+ return resolveContainerQuery(api, key, containerInfo.name);
160
160
  }
161
161
  const key = contexts[atIndex + 1];
162
162
  return resolveMediaQuery(api, key);
@@ -288,7 +288,6 @@ const onProp = async (api, { name, prop, contexts, preferVariables, file }) => {
288
288
  await processEntries(isAt ? prop.value : { [contextName]: { value: prop.value } }, contexts);
289
289
  if (isAt) contexts.pop();
290
290
  };
291
-
292
291
  //#endregion
293
292
  exports.DOWN = DOWN;
294
293
  exports.UP = UP;
@@ -297,10 +296,10 @@ exports.name = name;
297
296
  exports.onBoot = onBoot;
298
297
  exports.onProp = onProp;
299
298
  exports.onReady = onReady;
300
- Object.defineProperty(exports, 'server_exports', {
301
- enumerable: true,
302
- get: function () {
303
- return server_exports;
304
- }
299
+ Object.defineProperty(exports, "server_exports", {
300
+ enumerable: true,
301
+ get: function() {
302
+ return server_exports;
303
+ }
305
304
  });
306
- exports.values = values;
305
+ exports.values = values;