@fluentic/style 0.1.0-beta.2 → 0.1.0-beta.20

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 (888) hide show
  1. package/CHANGELOG.md +228 -16
  2. package/README.md +182 -49
  3. package/atomic/className.ts +33 -12
  4. package/atomic/debug/className/className.ts +10 -15
  5. package/atomic/element.ts +2 -2
  6. package/atomic/layer/layer.ts +7 -3
  7. package/atomic/rule.ts +20 -6
  8. package/atomic/scope.ts +19 -0
  9. package/atomic/theme.ts +41 -2
  10. package/atomic/token.ts +13 -3
  11. package/atomic/utils/{css.ts → cssIdent.ts} +0 -20
  12. package/atomic/utils/cssVar.ts +19 -0
  13. package/atomic/utils/debug.ts +1 -1
  14. package/atomic/utils/hash.ts +1 -65
  15. package/atomic/utils/selector.ts +40 -1
  16. package/atomic/utils/types.ts +4 -2
  17. package/builder/classname/class_name_builder.ts +68 -24
  18. package/builder/classname/fns.ts +2 -2
  19. package/builder/classname/types.ts +7 -0
  20. package/builder/data/const.ts +10 -1
  21. package/builder/data/create.ts +46 -0
  22. package/builder/data/data.ts +26 -1
  23. package/builder/data/index.ts +0 -1
  24. package/builder/data/is.ts +23 -0
  25. package/builder/data/merge/scope.ts +27 -19
  26. package/builder/data/merge/style.ts +115 -46
  27. package/builder/data/state.ts +17 -2
  28. package/builder/extract/index.ts +1 -0
  29. package/builder/extract/sheet.ts +30 -0
  30. package/builder/extract/token.ts +40 -14
  31. package/builder/extract/utils.ts +2 -0
  32. package/builder/extract/withTokens.ts +2 -1
  33. package/builder/selector_override.noop.ts +11 -0
  34. package/builder/selector_override.ts +31 -0
  35. package/builder/selector_override_core.ts +99 -0
  36. package/builder/style_builder.ts +127 -3
  37. package/builder/style_data.ts +25 -0
  38. package/builder/style_fns.ts +24 -24
  39. package/builder/token/data.ts +30 -0
  40. package/builder/token/index.ts +3 -0
  41. package/builder/token/name.ts +54 -0
  42. package/builder/token/symbols.ts +6 -0
  43. package/builder/types/alias.ts +34 -6
  44. package/builder/types/fns.ts +13 -5
  45. package/builder/types/types.ts +32 -2
  46. package/builder/utils.ts +1 -0
  47. package/compiler/compiler/cache_identity.ts +115 -0
  48. package/compiler/compiler/compiler.ts +123 -18
  49. package/compiler/compiler/constants.ts +6 -0
  50. package/compiler/compiler/index.ts +1 -0
  51. package/compiler/compiler/persistent_cache.ts +310 -0
  52. package/compiler/compiler/types.ts +16 -1
  53. package/compiler/cssProp.ts +21 -0
  54. package/compiler/extract/collector.ts +2 -2
  55. package/compiler/extract/extract.ts +24 -45
  56. package/compiler/extract/types.ts +6 -0
  57. package/compiler/index.ts +1 -0
  58. package/compiler/transform/cssProp/index.ts +1 -0
  59. package/compiler/transform/cssProp/plugin.ts +161 -0
  60. package/compiler/transform/debug/plugin.ts +107 -1
  61. package/compiler/transform/debug/transform.ts +2 -1
  62. package/compiler/transform/evaluator/evaluator.ts +223 -38
  63. package/compiler/transform/evaluator/lazy_bindings.ts +63 -0
  64. package/compiler/transform/evaluator/metadata_cache.ts +124 -0
  65. package/compiler/transform/evaluator/tracer.ts +151 -89
  66. package/compiler/transform/extract/chain/chain.ts +794 -84
  67. package/compiler/transform/extract/chain/extract_chain.ts +28 -4
  68. package/compiler/transform/extract/chain/types.ts +3 -1
  69. package/compiler/transform/extract/plugin.ts +159 -42
  70. package/compiler/transform/extract/transform.ts +2 -1
  71. package/compiler/transform/extract/utils/imports.ts +8 -1
  72. package/compiler/transform/extract/utils/replacement.ts +92 -5
  73. package/compiler/transform/extract/utils/state.ts +8 -2
  74. package/compiler/transform/extract/utils/theme.ts +6 -6
  75. package/compiler/transform/extract/utils/token.ts +107 -0
  76. package/compiler/transform/index.ts +1 -0
  77. package/compiler/transform/syntax/isStaticStyleValue.ts +15 -9
  78. package/compiler/transform/syntax/static_ids.ts +1 -1
  79. package/compiler/transform/utils/babel.ts +1 -1
  80. package/compiler/utils/check_diagnostics.ts +18 -0
  81. package/compiler/utils/constants.ts +10 -5
  82. package/compiler/utils/file_resolver.ts +27 -1
  83. package/compiler/utils/import_source.ts +17 -7
  84. package/compiler/utils/imports.ts +11 -1
  85. package/config/build.ts +9 -2
  86. package/config/config/check.ts +25 -0
  87. package/config/config/css.ts +36 -1
  88. package/config/config/debug.ts +24 -1
  89. package/config/config/dev.ts +8 -0
  90. package/config/configure.ts +23 -2
  91. package/config/document.ts +23 -0
  92. package/css/globalSheet.ts +66 -0
  93. package/css/index.ts +5 -0
  94. package/css/sheet.ts +173 -0
  95. package/css/styleTarget.ts +251 -0
  96. package/dev/config.ts +2 -3
  97. package/dev/utils.ts +3 -3
  98. package/dialect/namedTokens.ts +30 -8
  99. package/dist/adapter/preact.js +2 -0
  100. package/dist/adapter/react.js +2 -0
  101. package/dist/adapter/solid.js +2 -0
  102. package/dist/className-CC5PHcXI.js +311 -0
  103. package/dist/className-CC5PHcXI.js.map +1 -0
  104. package/dist/{style-DUztHzBz.js → combine-CtR6MyD4.js} +402 -733
  105. package/dist/combine-CtR6MyD4.js.map +1 -0
  106. package/dist/compiler/index.mjs +2 -2
  107. package/dist/{compiler-BXcGyZUP.mjs → compiler-oXXProzz.mjs} +3092 -850
  108. package/dist/compiler-oXXProzz.mjs.map +1 -0
  109. package/dist/config/index.js +2 -2
  110. package/dist/config-BK7oK4Hx.js +57 -0
  111. package/dist/config-BK7oK4Hx.js.map +1 -0
  112. package/dist/config-BWFlaJ_v.js +6 -0
  113. package/dist/config-BWFlaJ_v.js.map +1 -0
  114. package/dist/config-BsF-QRgz.js +6 -0
  115. package/dist/{config-DcYrUB-M.js.map → config-BsF-QRgz.js.map} +1 -1
  116. package/dist/{config-C1k9vUrM.js → config-DKaGtG9O.js} +9 -7
  117. package/dist/config-DKaGtG9O.js.map +1 -0
  118. package/dist/config-IFmsTOQp.js +1 -0
  119. package/dist/css-B-7-Do-J.js +4541 -0
  120. package/dist/css-B-7-Do-J.js.map +1 -0
  121. package/dist/{css-CohHH2tn.js → css-BmIytNon.js} +185 -14
  122. package/dist/css-BmIytNon.js.map +1 -0
  123. package/dist/css-CYnQKnPu.js +563 -0
  124. package/dist/css-CYnQKnPu.js.map +1 -0
  125. package/dist/css.js +2 -2
  126. package/dist/{css_extra-DQdCrYoC.js → css_extra-Br7eDCrf.js} +2 -2
  127. package/dist/{css_extra-9BZ_jVET.js.map → css_extra-Br7eDCrf.js.map} +1 -1
  128. package/dist/{css_extra-9BZ_jVET.js → css_extra-qzi_eFFf.js} +2 -2
  129. package/dist/{css_extra-DQdCrYoC.js.map → css_extra-qzi_eFFf.js.map} +1 -1
  130. package/dist/data-D6dD67li.js +786 -0
  131. package/dist/data-D6dD67li.js.map +1 -0
  132. package/dist/debug-Bo43rBKc.js +73 -0
  133. package/dist/debug-Bo43rBKc.js.map +1 -0
  134. package/dist/dev/rsc.js +138 -28
  135. package/dist/dev/rsc.js.map +1 -1
  136. package/dist/{dev-C2u78xuv.js → dev-_DW5n4U4.js} +9 -10
  137. package/dist/dev-_DW5n4U4.js.map +1 -0
  138. package/dist/dev.js +1 -1
  139. package/dist/dialect/extracted/index.js +1 -1
  140. package/dist/dialect/index.js +1 -1
  141. package/dist/{elementMarker-BKzZyg5V.js → elementMarker-u0d2LH8r.js} +582 -61
  142. package/dist/elementMarker-u0d2LH8r.js.map +1 -0
  143. package/dist/entry/dev/adapter/preact.js +12 -0
  144. package/dist/entry/dev/adapter/preact.js.map +1 -0
  145. package/dist/entry/dev/adapter/react.js +12 -0
  146. package/dist/entry/dev/adapter/react.js.map +1 -0
  147. package/dist/entry/dev/adapter/solid.js +12 -0
  148. package/dist/entry/dev/adapter/solid.js.map +1 -0
  149. package/dist/entry/dev/css.js +3 -3
  150. package/dist/entry/dev/jsx-dev-runtime.js +2 -2
  151. package/dist/entry/dev/jsx-runtime.js +2 -2
  152. package/dist/entry/dev.js +13 -12
  153. package/dist/entry/prod/adapter/preact.js +12 -0
  154. package/dist/entry/prod/adapter/preact.js.map +1 -0
  155. package/dist/entry/prod/adapter/react.js +12 -0
  156. package/dist/entry/prod/adapter/react.js.map +1 -0
  157. package/dist/entry/prod/adapter/solid.js +12 -0
  158. package/dist/entry/prod/adapter/solid.js.map +1 -0
  159. package/dist/entry/prod/css.js +3 -3
  160. package/dist/entry/prod/extract.js +251 -3
  161. package/dist/entry/prod/extract.js.map +1 -0
  162. package/dist/entry/prod/jsx-dev-runtime.js +2 -2
  163. package/dist/entry/prod/jsx-runtime.js +2 -2
  164. package/dist/entry/prod/runtime.js +3 -4
  165. package/dist/entry/prod.js +84 -1201
  166. package/dist/entry/prod.js.map +1 -1
  167. package/dist/entry/rsc-dev/adapter/preact.js +13 -0
  168. package/dist/entry/rsc-dev/adapter/preact.js.map +1 -0
  169. package/dist/entry/rsc-dev/adapter/react.js +13 -0
  170. package/dist/entry/rsc-dev/adapter/react.js.map +1 -0
  171. package/dist/entry/rsc-dev/adapter/solid.js +13 -0
  172. package/dist/entry/rsc-dev/adapter/solid.js.map +1 -0
  173. package/dist/entry/rsc-dev/css.js +4 -3
  174. package/dist/entry/rsc-dev/dev.js +135 -32
  175. package/dist/entry/rsc-dev/dev.js.map +1 -1
  176. package/dist/entry/rsc-dev/jsx-dev-runtime.js +5 -4
  177. package/dist/entry/rsc-dev/jsx-dev-runtime.js.map +1 -1
  178. package/dist/entry/rsc-dev/jsx-runtime.js +2 -2
  179. package/dist/entry/rsc-dev.js +298 -616
  180. package/dist/entry/rsc-dev.js.map +1 -1
  181. package/dist/entry/rsc-prod/adapter/preact.js +2 -0
  182. package/dist/entry/rsc-prod/adapter/react.js +2 -0
  183. package/dist/entry/rsc-prod/adapter/solid.js +2 -0
  184. package/dist/entry/rsc-prod/css.js +9 -3
  185. package/dist/entry/rsc-prod/css.js.map +1 -0
  186. package/dist/entry/rsc-prod/jsx-dev-runtime.js +2 -2
  187. package/dist/entry/rsc-prod/jsx-runtime.js +2 -2
  188. package/dist/entry/rsc-prod/runtime.js +3 -4
  189. package/dist/entry/rsc-prod.js +251 -10
  190. package/dist/entry/rsc-prod.js.map +1 -0
  191. package/dist/{rules-Dz7Pu2K6.js → env-C8lKN1dB.js} +727 -147
  192. package/dist/env-C8lKN1dB.js.map +1 -0
  193. package/dist/{getClassName-C6690_nr.js → getClassName-BraU01Hd.js} +60 -15
  194. package/dist/getClassName-BraU01Hd.js.map +1 -0
  195. package/dist/getClassName-C35yO40s.js +548 -0
  196. package/dist/getClassName-C35yO40s.js.map +1 -0
  197. package/dist/getClassName-CfkGcBZy.js +49 -0
  198. package/dist/getClassName-CfkGcBZy.js.map +1 -0
  199. package/dist/{utils-D4YWF2K0.js → getClassName-i4oy2Up_.js} +27 -65
  200. package/dist/getClassName-i4oy2Up_.js.map +1 -0
  201. package/dist/{global-zaCE-g1C.js → global-DGcWZODV.js} +7 -8
  202. package/dist/global-DGcWZODV.js.map +1 -0
  203. package/dist/globalSheet-2ozCV1Zm.js +1091 -0
  204. package/dist/globalSheet-2ozCV1Zm.js.map +1 -0
  205. package/dist/hash-CGO13tOn.js +407 -0
  206. package/dist/hash-CGO13tOn.js.map +1 -0
  207. package/dist/index.js +10 -10
  208. package/dist/jsx/jsx-dev-runtime.js +2 -2
  209. package/dist/jsx/jsx-dev-runtime.server.js +3 -3
  210. package/dist/jsx/jsx-dev-runtime.server.js.map +1 -1
  211. package/dist/jsx/jsx-runtime.js +2 -2
  212. package/dist/jsx/jsx-runtime.server.js +4 -4
  213. package/dist/jsx/jsx-runtime.server.js.map +1 -1
  214. package/dist/jsx-C-v1b99-.js +39 -0
  215. package/dist/jsx-C-v1b99-.js.map +1 -0
  216. package/dist/{jsx_dev_runtime-DXlSD6kV.js → jsx_dev_runtime-Bd7FO7C1.js} +2 -3
  217. package/dist/{jsx_dev_runtime-DXlSD6kV.js.map → jsx_dev_runtime-Bd7FO7C1.js.map} +1 -1
  218. package/dist/jsx_runtime-BxumFGUy.js +13 -0
  219. package/dist/jsx_runtime-BxumFGUy.js.map +1 -0
  220. package/dist/{jsx_runtime-DPWo5qvV.js → jsx_runtime-gO4GQFcW.js} +3 -3
  221. package/dist/{jsx_runtime-CMdEXGNZ.js.map → jsx_runtime-gO4GQFcW.js.map} +1 -1
  222. package/dist/{loader-DCT1Q9yi.mjs → loader-A15L-NVK.mjs} +13 -14
  223. package/dist/loader-A15L-NVK.mjs.map +1 -0
  224. package/dist/{misc-o8pviMUi.mjs → misc-CRRQr1DT.mjs} +35 -8
  225. package/dist/misc-CRRQr1DT.mjs.map +1 -0
  226. package/dist/{namedTokens-BUa6raTb.js → namedTokens-paLD-Pdk.js} +15 -9
  227. package/dist/namedTokens-paLD-Pdk.js.map +1 -0
  228. package/dist/plugin/farm/index.mjs +5 -4
  229. package/dist/plugin/farm/index.mjs.map +1 -1
  230. package/dist/plugin/nextjs/index.mjs +153 -33
  231. package/dist/plugin/nextjs/index.mjs.map +1 -1
  232. package/dist/plugin/nextjs/loader.mjs +7 -5
  233. package/dist/plugin/nextjs/loader.mjs.map +1 -1
  234. package/dist/plugin/parcel/index.cjs +2 -0
  235. package/dist/plugin/parcel/index.mjs +3 -1
  236. package/dist/plugin/parcel/optimizer.cjs +3 -2
  237. package/dist/plugin/parcel/optimizer.cjs.map +1 -1
  238. package/dist/plugin/parcel/optimizer.mjs +3 -2
  239. package/dist/plugin/parcel/optimizer.mjs.map +1 -1
  240. package/dist/plugin/parcel/resolver.cjs +1 -1
  241. package/dist/plugin/parcel/resolver.mjs +2 -2
  242. package/dist/plugin/parcel/runtime.cjs +1 -1
  243. package/dist/plugin/parcel/runtime.mjs +1 -1
  244. package/dist/plugin/parcel/transformer.cjs +1 -1
  245. package/dist/plugin/parcel/transformer.mjs +2 -2
  246. package/dist/plugin/rspack/index.mjs +3 -2
  247. package/dist/plugin/rspack/index.mjs.map +1 -1
  248. package/dist/plugin/vite/index.mjs +26 -23
  249. package/dist/plugin/vite/index.mjs.map +1 -1
  250. package/dist/plugin/webpack/index.mjs +3 -2
  251. package/dist/plugin/webpack/loader.mjs +2 -2
  252. package/dist/presets/tailwind/index.js +32 -8
  253. package/dist/presets/tailwind/index.js.map +1 -1
  254. package/dist/{assert-BGdigdr5.js → presets-DSanixJV.js} +106 -2
  255. package/dist/presets-DSanixJV.js.map +1 -0
  256. package/dist/{registry-D3x1EDJm.mjs → registry-D2C6hTdx.mjs} +2 -2
  257. package/dist/{registry-D3x1EDJm.mjs.map → registry-D2C6hTdx.mjs.map} +1 -1
  258. package/dist/resolveClassNameRuntime-Cp8_UcxF.js +63 -0
  259. package/dist/resolveClassNameRuntime-Cp8_UcxF.js.map +1 -0
  260. package/dist/scope-Dg83Az-2.js +601 -0
  261. package/dist/scope-Dg83Az-2.js.map +1 -0
  262. package/dist/selector/index.js +1 -2
  263. package/dist/server.js +91 -17
  264. package/dist/server.js.map +1 -1
  265. package/dist/{shared-B_gJf5uj.cjs → shared-B7Nw_dcx.cjs} +3152 -891
  266. package/dist/shared-B7Nw_dcx.cjs.map +1 -0
  267. package/dist/{shared-uAzFeq0x.mjs → shared-BmJmaxu8.mjs} +5 -5
  268. package/dist/shared-BmJmaxu8.mjs.map +1 -0
  269. package/dist/sheet-CHnDkjn4.js +56 -0
  270. package/dist/sheet-CHnDkjn4.js.map +1 -0
  271. package/dist/sheet-PVxRQrOp.js +7 -0
  272. package/dist/sheet-PVxRQrOp.js.map +1 -0
  273. package/dist/sheet-ueNBw_2u.js +1 -0
  274. package/dist/{sidecar-BUO1hKXu.mjs → sidecar-DVegwGec.mjs} +3 -3
  275. package/dist/{sidecar-BUO1hKXu.mjs.map → sidecar-DVegwGec.mjs.map} +1 -1
  276. package/dist/{style-BkeAZl0n.js → style-B1tkE8zl.js} +329 -129
  277. package/dist/style-B1tkE8zl.js.map +1 -0
  278. package/dist/styleStore-BK2XBS8n.js +45 -0
  279. package/dist/styleStore-BK2XBS8n.js.map +1 -0
  280. package/dist/styleStore-D4umgIwQ.js +3457 -0
  281. package/dist/styleStore-D4umgIwQ.js.map +1 -0
  282. package/dist/token-BX5jRxMb.js +110 -0
  283. package/dist/token-BX5jRxMb.js.map +1 -0
  284. package/dist/token-CS0iRIIa.js +140 -0
  285. package/dist/token-CS0iRIIa.js.map +1 -0
  286. package/dist/{trace-D0IL6JT8.js → trace-DZYKSwdB.js} +2 -2
  287. package/dist/{trace-D0IL6JT8.js.map → trace-DZYKSwdB.js.map} +1 -1
  288. package/dist/{trace-DR7_Rpkg.js → trace-EEKXwKSr.js} +3 -3
  289. package/dist/{trace-DR7_Rpkg.js.map → trace-EEKXwKSr.js.map} +1 -1
  290. package/dist/{transform-BTJOg8Hg.js → transform-BZ4jPwy3.js} +2 -2
  291. package/dist/transform-BZ4jPwy3.js.map +1 -0
  292. package/dist/types/adapter/preact.d.ts +1 -0
  293. package/dist/types/adapter/react.d.ts +1 -0
  294. package/dist/types/adapter/solid.d.ts +1 -0
  295. package/dist/types/atomic/atRule/counterStyle.d.ts +10 -0
  296. package/dist/types/atomic/atRule/fontFace.d.ts +10 -0
  297. package/dist/types/atomic/atRule/fontPaletteValues.d.ts +10 -0
  298. package/dist/types/atomic/atRule/fontSrc.d.ts +1 -0
  299. package/dist/types/atomic/atRule/keyframes.d.ts +13 -0
  300. package/dist/types/atomic/atRule/positionTry.d.ts +13 -0
  301. package/dist/types/atomic/atRule/property.d.ts +13 -0
  302. package/dist/types/atomic/atRule/utils.d.ts +5 -0
  303. package/dist/types/atomic/className.d.ts +11 -0
  304. package/dist/types/atomic/debug/className/className.d.ts +9 -0
  305. package/dist/types/atomic/debug/className/index.d.ts +1 -0
  306. package/dist/types/atomic/debug/property/data.d.ts +3 -0
  307. package/dist/types/atomic/debug/property/index.d.ts +1 -0
  308. package/dist/types/atomic/debug/property/property.d.ts +5 -0
  309. package/dist/types/atomic/debug/selector.d.ts +2 -0
  310. package/dist/types/atomic/debug/value.d.ts +5 -0
  311. package/dist/types/atomic/element.d.ts +5 -0
  312. package/dist/types/atomic/layer/index.d.ts +3 -0
  313. package/dist/types/atomic/layer/layer.d.ts +12 -0
  314. package/dist/types/atomic/layer/types.d.ts +30 -0
  315. package/dist/types/atomic/layer/utils.d.ts +4 -0
  316. package/dist/types/atomic/property/index.d.ts +2 -0
  317. package/dist/types/atomic/property/presets.d.ts +4 -0
  318. package/dist/types/atomic/property/property.d.ts +3 -0
  319. package/dist/types/atomic/property/type_maps.d.ts +31 -0
  320. package/dist/types/atomic/property/types.d.ts +4 -0
  321. package/dist/types/atomic/rule.d.ts +5 -0
  322. package/dist/types/atomic/scope.d.ts +3 -0
  323. package/dist/types/atomic/theme.d.ts +7 -0
  324. package/dist/types/atomic/token.d.ts +7 -0
  325. package/dist/types/atomic/utils/cssIdent.d.ts +2 -0
  326. package/dist/types/atomic/utils/cssVar.d.ts +3 -0
  327. package/dist/types/atomic/utils/debug.d.ts +4 -0
  328. package/dist/types/atomic/utils/format.d.ts +5 -0
  329. package/dist/types/atomic/utils/hash.d.ts +1 -0
  330. package/dist/types/atomic/utils/selector.d.ts +7 -0
  331. package/dist/types/atomic/utils/types.d.ts +8 -0
  332. package/dist/types/atomic/value/index.d.ts +2 -0
  333. package/dist/types/atomic/value/unitless.d.ts +1 -0
  334. package/dist/types/atomic/value/value.d.ts +2 -0
  335. package/dist/types/atomic/var.d.ts +4 -0
  336. package/dist/types/builder/classname/class_name_builder.d.ts +4 -0
  337. package/dist/types/builder/classname/fns.d.ts +48 -0
  338. package/dist/types/builder/classname/index.d.ts +3 -0
  339. package/dist/types/builder/classname/types.d.ts +18 -0
  340. package/dist/types/builder/data/check_selector.d.ts +2 -0
  341. package/dist/types/builder/data/const.d.ts +27 -0
  342. package/dist/types/builder/data/create.d.ts +13 -0
  343. package/dist/types/builder/data/data.d.ts +44 -0
  344. package/dist/types/builder/data/debug.d.ts +38 -0
  345. package/dist/types/builder/data/index.d.ts +8 -0
  346. package/dist/types/builder/data/is.d.ts +16 -0
  347. package/dist/types/builder/data/merge/index.d.ts +2 -0
  348. package/dist/types/builder/data/merge/scope.d.ts +7 -0
  349. package/dist/types/builder/data/merge/style.d.ts +6 -0
  350. package/dist/types/builder/data/merge/utils.d.ts +10 -0
  351. package/dist/types/builder/data/selector.d.ts +8 -0
  352. package/dist/types/builder/data/state.d.ts +100 -0
  353. package/dist/types/builder/extract/index.d.ts +7 -0
  354. package/dist/types/builder/extract/scope.d.ts +14 -0
  355. package/dist/types/builder/extract/sheet.d.ts +10 -0
  356. package/dist/types/builder/extract/slot.d.ts +9 -0
  357. package/dist/types/builder/extract/style.d.ts +11 -0
  358. package/dist/types/builder/extract/theme.d.ts +2 -0
  359. package/dist/types/builder/extract/token.d.ts +12 -0
  360. package/dist/types/builder/extract/utils.d.ts +28 -0
  361. package/dist/types/builder/extract/withTokens.d.ts +10 -0
  362. package/dist/types/builder/index.d.ts +2 -0
  363. package/dist/types/builder/selector_override.d.ts +5 -0
  364. package/dist/types/builder/selector_override_core.d.ts +8 -0
  365. package/dist/types/builder/style_builder.d.ts +15 -0
  366. package/dist/types/builder/style_data.d.ts +8 -0
  367. package/dist/types/builder/style_fns.d.ts +14 -0
  368. package/dist/types/builder/token/data.d.ts +10 -0
  369. package/dist/types/builder/token/name.d.ts +3 -0
  370. package/dist/types/builder/token/symbols.d.ts +4 -0
  371. package/dist/types/builder/types/alias.d.ts +59 -0
  372. package/dist/types/builder/types/fns.d.ts +115 -0
  373. package/dist/types/builder/types/index.d.ts +1 -0
  374. package/dist/types/builder/types/types.d.ts +22 -0
  375. package/dist/types/builder/utils.d.ts +9 -0
  376. package/dist/types/compiler/compiler/cache.d.ts +24 -0
  377. package/dist/types/compiler/compiler/cache_identity.d.ts +4 -0
  378. package/dist/types/compiler/compiler/compiler.d.ts +40 -0
  379. package/dist/types/compiler/compiler/constants.d.ts +6 -0
  380. package/dist/types/compiler/compiler/index.d.ts +4 -0
  381. package/dist/types/compiler/compiler/persistent_cache.d.ts +14 -0
  382. package/dist/types/compiler/compiler/types.d.ts +64 -0
  383. package/dist/types/compiler/cssProp.d.ts +8 -0
  384. package/dist/types/compiler/extract/collector.d.ts +8 -0
  385. package/dist/types/compiler/extract/extract.d.ts +6 -0
  386. package/dist/types/compiler/extract/index.d.ts +3 -0
  387. package/dist/types/compiler/extract/types.d.ts +29 -0
  388. package/dist/types/compiler/index.d.ts +3 -0
  389. package/dist/types/compiler/transform/cssProp/index.d.ts +1 -0
  390. package/dist/types/compiler/transform/cssProp/plugin.d.ts +13 -0
  391. package/dist/types/compiler/transform/debug/index.d.ts +2 -0
  392. package/dist/types/compiler/transform/debug/plugin.d.ts +34 -0
  393. package/dist/types/compiler/transform/debug/transform.d.ts +7 -0
  394. package/dist/types/compiler/transform/debug/utils/debug_data.d.ts +11 -0
  395. package/dist/types/compiler/transform/debug/utils/source_url.d.ts +2 -0
  396. package/dist/types/compiler/transform/evaluator/evaluator.d.ts +58 -0
  397. package/dist/types/compiler/transform/evaluator/index.d.ts +3 -0
  398. package/dist/types/compiler/transform/evaluator/lazy_bindings.d.ts +22 -0
  399. package/dist/types/compiler/transform/evaluator/metadata_cache.d.ts +13 -0
  400. package/dist/types/compiler/transform/evaluator/tracer.d.ts +15 -0
  401. package/dist/types/compiler/transform/evaluator/types.d.ts +21 -0
  402. package/dist/types/compiler/transform/extract/chain/chain.d.ts +18 -0
  403. package/dist/types/compiler/transform/extract/chain/extract_chain.d.ts +21 -0
  404. package/dist/types/compiler/transform/extract/chain/index.d.ts +3 -0
  405. package/dist/types/compiler/transform/extract/chain/types.d.ts +32 -0
  406. package/dist/types/compiler/transform/extract/index.d.ts +2 -0
  407. package/dist/types/compiler/transform/extract/plugin.d.ts +20 -0
  408. package/dist/types/compiler/transform/extract/transform.d.ts +10 -0
  409. package/dist/types/compiler/transform/extract/utils/imports.d.ts +3 -0
  410. package/dist/types/compiler/transform/extract/utils/replacement.d.ts +11 -0
  411. package/dist/types/compiler/transform/extract/utils/slot.d.ts +4 -0
  412. package/dist/types/compiler/transform/extract/utils/state.d.ts +36 -0
  413. package/dist/types/compiler/transform/extract/utils/theme.d.ts +9 -0
  414. package/dist/types/compiler/transform/extract/utils/token.d.ts +4 -0
  415. package/dist/types/compiler/transform/index.d.ts +5 -0
  416. package/dist/types/compiler/transform/syntax/index.d.ts +5 -0
  417. package/dist/types/compiler/transform/syntax/isStaticStyleValue.d.ts +2 -0
  418. package/dist/types/compiler/transform/syntax/isStyleChainCall.d.ts +2 -0
  419. package/dist/types/compiler/transform/syntax/static_ids.d.ts +16 -0
  420. package/dist/types/compiler/transform/syntax/types.d.ts +4 -0
  421. package/dist/types/compiler/transform/syntax/utils.d.ts +5 -0
  422. package/dist/types/compiler/transform/utils/babel.d.ts +21 -0
  423. package/dist/types/compiler/transform/utils/import.d.ts +2 -0
  424. package/dist/types/compiler/transform/utils/path.d.ts +1 -0
  425. package/dist/types/compiler/transform/utils/selector.d.ts +18 -0
  426. package/dist/types/compiler/utils/check_diagnostics.d.ts +7 -0
  427. package/dist/types/compiler/utils/constants.d.ts +70 -0
  428. package/dist/types/compiler/utils/file_resolver.d.ts +16 -0
  429. package/dist/types/compiler/utils/import_source.d.ts +34 -0
  430. package/dist/types/compiler/utils/imports.d.ts +6 -0
  431. package/dist/types/compiler/utils/path.d.ts +4 -0
  432. package/dist/types/compiler/utils/sourcemap.d.ts +36 -0
  433. package/dist/types/config/build.d.ts +20 -0
  434. package/dist/types/config/config/check.d.ts +11 -0
  435. package/dist/types/config/config/css.d.ts +29 -0
  436. package/dist/types/config/config/css_extra.d.ts +13 -0
  437. package/dist/types/config/config/debug.d.ts +14 -0
  438. package/dist/types/config/config/dev.d.ts +36 -0
  439. package/dist/types/config/config/runtime.d.ts +10 -0
  440. package/dist/types/config/configure.d.ts +14 -0
  441. package/dist/types/config/constants.d.ts +1 -0
  442. package/dist/types/config/document.d.ts +3 -0
  443. package/dist/types/config/index.d.ts +2 -0
  444. package/dist/types/config/types.d.ts +47 -0
  445. package/dist/types/config/utils.d.ts +2 -0
  446. package/dist/types/css/counterStyle.d.ts +4 -0
  447. package/dist/types/css/fontFace.d.ts +5 -0
  448. package/dist/types/css/fontPaletteValues.d.ts +4 -0
  449. package/dist/types/css/globalSheet.d.ts +24 -0
  450. package/dist/types/css/index.d.ts +12 -0
  451. package/dist/types/css/keyframes.d.ts +4 -0
  452. package/dist/types/css/positionTry.d.ts +4 -0
  453. package/dist/types/css/property.d.ts +7 -0
  454. package/dist/types/css/sheet.d.ts +8 -0
  455. package/dist/types/css/styleTarget.d.ts +9 -0
  456. package/dist/types/css/utils.d.ts +19 -0
  457. package/dist/types/dev/config.d.ts +6 -0
  458. package/dist/types/dev/fns.d.ts +14 -0
  459. package/dist/types/dev/index.d.ts +2 -0
  460. package/dist/types/dev/trace.d.ts +8 -0
  461. package/dist/types/dev/utils.d.ts +5 -0
  462. package/dist/types/dialect/extracted/index.d.ts +1 -0
  463. package/dist/types/dialect/index.d.ts +1 -0
  464. package/dist/types/dialect/namedTokens.d.ts +9 -0
  465. package/dist/types/entry/dev/adapter/preact.d.ts +1 -0
  466. package/dist/types/entry/dev/adapter/react.d.ts +1 -0
  467. package/dist/types/entry/dev/adapter/solid.d.ts +1 -0
  468. package/dist/types/entry/dev/config.d.ts +2 -0
  469. package/dist/types/entry/dev/css.d.ts +2 -0
  470. package/dist/types/entry/dev/index.d.ts +3 -0
  471. package/dist/types/entry/dev/jsx_dev_runtime.d.ts +3 -0
  472. package/dist/types/entry/dev/sheet.d.ts +1 -0
  473. package/dist/types/entry/prod/adapter/preact.d.ts +1 -0
  474. package/dist/types/entry/prod/adapter/react.d.ts +1 -0
  475. package/dist/types/entry/prod/adapter/solid.d.ts +1 -0
  476. package/dist/types/entry/prod/config.d.ts +2 -0
  477. package/dist/types/entry/prod/config_debug.d.ts +2 -0
  478. package/dist/types/entry/prod/css.d.ts +2 -0
  479. package/dist/types/entry/prod/extract.d.ts +1 -0
  480. package/dist/types/entry/prod/index.d.ts +2 -0
  481. package/dist/types/entry/prod/jsx_runtime.d.ts +2 -0
  482. package/dist/types/entry/prod/runtime.d.ts +8 -0
  483. package/dist/types/entry/rsc_dev/adapter/preact.d.ts +1 -0
  484. package/dist/types/entry/rsc_dev/adapter/react.d.ts +1 -0
  485. package/dist/types/entry/rsc_dev/adapter/solid.d.ts +1 -0
  486. package/dist/types/entry/rsc_dev/config.d.ts +2 -0
  487. package/dist/types/entry/rsc_dev/css.d.ts +3 -0
  488. package/dist/types/entry/rsc_dev/index.d.ts +2 -0
  489. package/dist/types/entry/rsc_dev/server.d.ts +10 -0
  490. package/dist/types/entry/rsc_prod/adapter/preact.d.ts +1 -0
  491. package/dist/types/entry/rsc_prod/adapter/react.d.ts +1 -0
  492. package/dist/types/entry/rsc_prod/adapter/solid.d.ts +1 -0
  493. package/dist/types/entry/rsc_prod/config.d.ts +2 -0
  494. package/dist/types/entry/rsc_prod/config_debug.d.ts +2 -0
  495. package/dist/types/entry/rsc_prod/css.d.ts +2 -0
  496. package/dist/types/entry/rsc_prod/index.d.ts +2 -0
  497. package/dist/types/entry/rsc_prod/jsx_runtime.d.ts +2 -0
  498. package/dist/types/entry/rsc_prod/runtime.d.ts +4 -0
  499. package/dist/types/entry/rsc_prod/server.d.ts +6 -0
  500. package/dist/types/entry/shared/config.d.ts +1 -0
  501. package/dist/types/entry/shared/config_debug.d.ts +1 -0
  502. package/dist/types/entry/shared/config_dev.d.ts +1 -0
  503. package/dist/types/entry/shared/dev.d.ts +1 -0
  504. package/dist/types/entry/shared/prod.d.ts +1 -0
  505. package/dist/types/entry/shared/utils.d.ts +2 -0
  506. package/dist/types/index.d.ts +9 -0
  507. package/dist/types/jsx/extracted/jsx_runtime.d.ts +7 -0
  508. package/dist/types/jsx/rsc/jsx_runtime.d.ts +7 -0
  509. package/dist/types/jsx/rsc_extracted/jsx_runtime.d.ts +2 -0
  510. package/dist/types/jsx/runtime/jsx_dev_runtime.d.ts +6 -0
  511. package/dist/types/jsx/runtime/jsx_runtime.d.ts +7 -0
  512. package/dist/types/jsx/types/index.d.ts +1 -0
  513. package/dist/types/jsx/types/preact.d.ts +12 -0
  514. package/dist/types/jsx/types/react.d.ts +10 -0
  515. package/dist/types/jsx/types/solid.d.ts +12 -0
  516. package/dist/types/jsx/utils.d.ts +19 -0
  517. package/dist/types/plugin/bundler/farm/index.d.ts +1 -0
  518. package/dist/types/plugin/bundler/farm/plugin.d.ts +97 -0
  519. package/dist/types/plugin/bundler/parcel/index.d.ts +1 -0
  520. package/dist/types/plugin/bundler/parcel/optimizer.d.ts +3 -0
  521. package/dist/types/plugin/bundler/parcel/plugin.d.ts +6 -0
  522. package/dist/types/plugin/bundler/parcel/resolver.d.ts +3 -0
  523. package/dist/types/plugin/bundler/parcel/runtime.d.ts +3 -0
  524. package/dist/types/plugin/bundler/parcel/shared.d.ts +37 -0
  525. package/dist/types/plugin/bundler/parcel/transformer.d.ts +3 -0
  526. package/dist/types/plugin/bundler/rspack/index.d.ts +1 -0
  527. package/dist/types/plugin/bundler/rspack/plugin.d.ts +7 -0
  528. package/dist/types/plugin/bundler/vite/index.d.ts +1 -0
  529. package/dist/types/plugin/bundler/vite/plugin.d.ts +6 -0
  530. package/dist/types/plugin/bundler/vite/state.d.ts +79 -0
  531. package/dist/types/plugin/bundler/webpack/index.d.ts +1 -0
  532. package/dist/types/plugin/bundler/webpack/loader.d.ts +2 -0
  533. package/dist/types/plugin/bundler/webpack/plugin.d.ts +11 -0
  534. package/dist/types/plugin/bundler/webpack/shared/loader.d.ts +31 -0
  535. package/dist/types/plugin/bundler/webpack/shared/registry.d.ts +4 -0
  536. package/dist/types/plugin/bundler/webpack/utils.d.ts +18 -0
  537. package/dist/types/plugin/nextjs/constants.d.ts +3 -0
  538. package/dist/types/plugin/nextjs/html.d.ts +1 -0
  539. package/dist/types/plugin/nextjs/index.d.ts +2 -0
  540. package/dist/types/plugin/nextjs/loader.d.ts +3 -0
  541. package/dist/types/plugin/nextjs/plugin.d.ts +5 -0
  542. package/dist/types/plugin/nextjs/types.d.ts +21 -0
  543. package/dist/types/plugin/nextjs/utils.d.ts +59 -0
  544. package/dist/types/plugin/utils/cache/css_cache.d.ts +34 -0
  545. package/dist/types/plugin/utils/cache/file.d.ts +4 -0
  546. package/dist/types/plugin/utils/cache/index.d.ts +2 -0
  547. package/dist/types/plugin/utils/compiler.d.ts +51 -0
  548. package/dist/types/plugin/utils/constants.d.ts +4 -0
  549. package/dist/types/plugin/utils/cssMarker.d.ts +4 -0
  550. package/dist/types/plugin/utils/cssOutput.d.ts +10 -0
  551. package/dist/types/plugin/utils/filter.d.ts +25 -0
  552. package/dist/types/plugin/utils/imports.d.ts +3 -0
  553. package/dist/types/plugin/utils/index.d.ts +10 -0
  554. package/dist/types/plugin/utils/injection.d.ts +3 -0
  555. package/dist/types/plugin/utils/misc.d.ts +1 -0
  556. package/dist/types/plugin/utils/runtimeEntry.d.ts +8 -0
  557. package/dist/types/plugin/utils/sidecar/index.d.ts +1 -0
  558. package/dist/types/plugin/utils/sidecar/server.d.ts +19 -0
  559. package/dist/types/plugin/utils/sidecar/sidecar.d.ts +17 -0
  560. package/dist/types/plugin/utils/sidecar/utils.d.ts +33 -0
  561. package/dist/types/plugin/utils/sourcemap.d.ts +9 -0
  562. package/dist/types/plugin/utils/virtual.d.ts +12 -0
  563. package/dist/types/presets/tailwind/classname/index.d.ts +2 -0
  564. package/dist/types/presets/tailwind/classname/transform.d.ts +8 -0
  565. package/dist/types/presets/tailwind/classname/types.d.ts +27 -0
  566. package/dist/types/presets/tailwind/index.d.ts +5 -0
  567. package/dist/types/presets/tailwind/selectors.d.ts +68 -0
  568. package/dist/types/presets/tailwind/style/index.d.ts +2 -0
  569. package/dist/types/presets/tailwind/style/transform.d.ts +8 -0
  570. package/dist/types/presets/tailwind/style/types.d.ts +149 -0
  571. package/dist/types/presets/tailwind/theme.d.ts +477 -0
  572. package/dist/types/presets/tailwind/types.d.ts +53 -0
  573. package/dist/types/runtime/adapter/utils.d.ts +12 -0
  574. package/dist/types/runtime/core/cache/combine.d.ts +6 -0
  575. package/dist/types/runtime/core/cache/combineRuntime.d.ts +1 -0
  576. package/dist/types/runtime/core/cache/item.d.ts +15 -0
  577. package/dist/types/runtime/core/cache/itemWithResolver.d.ts +4 -0
  578. package/dist/types/runtime/core/cache/pool.d.ts +16 -0
  579. package/dist/types/runtime/core/cache/prop.d.ts +19 -0
  580. package/dist/types/runtime/core/cache/propCache.d.ts +12 -0
  581. package/dist/types/runtime/core/cache/resolvedItem.d.ts +5 -0
  582. package/dist/types/runtime/core/cache/result.d.ts +9 -0
  583. package/dist/types/runtime/core/cache/stateItem.d.ts +14 -0
  584. package/dist/types/runtime/core/cache/token.d.ts +2 -0
  585. package/dist/types/runtime/core/cache/tokenValues.d.ts +26 -0
  586. package/dist/types/runtime/core/cache/utils/tree.d.ts +12 -0
  587. package/dist/types/runtime/core/cache/utils/walk.d.ts +1 -0
  588. package/dist/types/runtime/core/className.d.ts +18 -0
  589. package/dist/types/runtime/core/combinedStyle.d.ts +20 -0
  590. package/dist/types/runtime/core/createTransformElement.d.ts +4 -0
  591. package/dist/types/runtime/core/elementMarker.d.ts +12 -0
  592. package/dist/types/runtime/core/elementMarkerData.d.ts +7 -0
  593. package/dist/types/runtime/core/getClassName.d.ts +4 -0
  594. package/dist/types/runtime/core/getSheetRules.d.ts +3 -0
  595. package/dist/types/runtime/core/getToken.d.ts +3 -0
  596. package/dist/types/runtime/core/index.d.ts +5 -0
  597. package/dist/types/runtime/core/jsx.d.ts +1 -0
  598. package/dist/types/runtime/core/resolveClassNameRuntime.d.ts +8 -0
  599. package/dist/types/runtime/env.d.ts +2 -0
  600. package/dist/types/runtime/extract/combineStyle.d.ts +27 -0
  601. package/dist/types/runtime/extract/getClassName.d.ts +10 -0
  602. package/dist/types/runtime/extract/index.d.ts +6 -0
  603. package/dist/types/runtime/extract/jsx.d.ts +10 -0
  604. package/dist/types/runtime/extract/token.d.ts +5 -0
  605. package/dist/types/runtime/extract/tokenResolver.d.ts +2 -0
  606. package/dist/types/runtime/rsc/constants.d.ts +6 -0
  607. package/dist/types/runtime/rsc/dev.d.ts +11 -0
  608. package/dist/types/runtime/rsc/getClassName.d.ts +27 -0
  609. package/dist/types/runtime/rsc/globalSheet.d.ts +22 -0
  610. package/dist/types/runtime/rsc/index.d.ts +1 -0
  611. package/dist/types/runtime/rsc/jsx.d.ts +1 -0
  612. package/dist/types/runtime/rsc/observer.d.ts +10 -0
  613. package/dist/types/runtime/rsc/styleStore.d.ts +7 -0
  614. package/dist/types/runtime/sheet/document.d.ts +3 -0
  615. package/dist/types/runtime/sheet/element.d.ts +2 -0
  616. package/dist/types/runtime/sheet/global.d.ts +3 -0
  617. package/dist/types/runtime/sheet/index.d.ts +3 -0
  618. package/dist/types/runtime/sheet/insert.d.ts +5 -0
  619. package/dist/types/runtime/sheet/rule.d.ts +8 -0
  620. package/dist/types/runtime/sheet/rules.d.ts +10 -0
  621. package/dist/types/runtime/sheet/theme.d.ts +5 -0
  622. package/dist/types/runtime/style/index.d.ts +3 -0
  623. package/dist/types/runtime/style/scope.d.ts +4 -0
  624. package/dist/types/runtime/style/style.d.ts +27 -0
  625. package/dist/types/runtime/style/token.d.ts +1 -0
  626. package/dist/types/runtime/types.d.ts +31 -0
  627. package/dist/types/selector/assert.d.ts +13 -0
  628. package/dist/types/selector/index.d.ts +5 -0
  629. package/dist/types/selector/presets/default.d.ts +108 -0
  630. package/dist/types/selector/presets/index.d.ts +3 -0
  631. package/dist/types/selector/presets/minimal.d.ts +46 -0
  632. package/dist/types/selector/presets/selectors.d.ts +62 -0
  633. package/dist/types/selector/selector.d.ts +25 -0
  634. package/dist/types/selector/types.d.ts +12 -0
  635. package/dist/types/selector/validate.d.ts +5 -0
  636. package/dist/types/sheet/dev/dev_layer.d.ts +4 -0
  637. package/dist/types/sheet/dev/dev_sort.d.ts +2 -0
  638. package/dist/types/sheet/dev/index.d.ts +5 -0
  639. package/dist/types/sheet/dev/utils.d.ts +26 -0
  640. package/dist/types/sheet/index.d.ts +4 -0
  641. package/dist/types/sheet/ordered.d.ts +4 -0
  642. package/dist/types/sheet/ordering.d.ts +15 -0
  643. package/dist/types/sheet/prod.d.ts +2 -0
  644. package/dist/types/sheet/sheet.d.ts +2 -0
  645. package/dist/types/sheet/sourcemap.d.ts +11 -0
  646. package/dist/types/sheet/types.d.ts +37 -0
  647. package/dist/types/sheet/utils/dom.d.ts +5 -0
  648. package/dist/types/sheet/utils/index.d.ts +4 -0
  649. package/dist/types/sheet/utils/layer.d.ts +10 -0
  650. package/dist/types/sheet/utils/noop.d.ts +2 -0
  651. package/dist/types/sheet/utils/rule.d.ts +3 -0
  652. package/dist/types/sheet/utils/sourcemap.d.ts +12 -0
  653. package/dist/types/style/classname.d.ts +15 -0
  654. package/dist/types/style/important.d.ts +9 -0
  655. package/dist/types/style/index.d.ts +12 -0
  656. package/dist/types/style/keyframes.d.ts +10 -0
  657. package/dist/types/style/style.d.ts +426 -0
  658. package/dist/types/style/theme.d.ts +5 -0
  659. package/dist/types/style/token.d.ts +29 -0
  660. package/dist/types/style/tokens.d.ts +10 -0
  661. package/dist/types/style/transform.d.ts +22 -0
  662. package/dist/types/style/types.d.ts +22 -0
  663. package/dist/types/style/utils/expose.d.ts +8 -0
  664. package/dist/types/style/utils/index.d.ts +1 -0
  665. package/dist/types/style/value.d.ts +12 -0
  666. package/dist/types/style/valueRef.d.ts +13 -0
  667. package/dist/types/style/weight.d.ts +9 -0
  668. package/dist/types/utils/global.d.ts +4 -0
  669. package/dist/types/utils/hash.d.ts +3 -0
  670. package/dist/types/utils/id.d.ts +12 -0
  671. package/dist/types/utils/object.d.ts +10 -0
  672. package/dist/types/utils/symbol.d.ts +1 -0
  673. package/dist/types/utils/trace.d.ts +21 -0
  674. package/dist/types/utils/type.d.ts +11 -0
  675. package/dist/utils-0UTYm294.js +42 -0
  676. package/dist/utils-0UTYm294.js.map +1 -0
  677. package/dist/utils-CO1ZXzKK.mjs +182 -0
  678. package/dist/utils-CO1ZXzKK.mjs.map +1 -0
  679. package/dist/{utils-DQGa0uzS.mjs → utils-CxYxZSSk.mjs} +3 -3
  680. package/dist/{utils-DQGa0uzS.mjs.map → utils-CxYxZSSk.mjs.map} +1 -1
  681. package/dist/utils-D1duUYV9.js +72 -0
  682. package/dist/utils-D1duUYV9.js.map +1 -0
  683. package/dist/utils-DxCpyV2E.js +62 -0
  684. package/dist/utils-DxCpyV2E.js.map +1 -0
  685. package/dist/{utils-BsbfH6cd.js → utils-ymEmGz-T.js} +1274 -608
  686. package/dist/utils-ymEmGz-T.js.map +1 -0
  687. package/dist/utils.js +4 -4
  688. package/dist/utils.js.map +1 -1
  689. package/dist/{webpack-Fb9xF5jS.mjs → webpack-DF165M2x.mjs} +7 -7
  690. package/dist/webpack-DF165M2x.mjs.map +1 -0
  691. package/entry/dev/adapter/preact.ts +8 -0
  692. package/entry/dev/adapter/react.ts +8 -0
  693. package/entry/dev/adapter/solid.ts +8 -0
  694. package/entry/dev/sheet.ts +4 -2
  695. package/entry/prod/adapter/preact.ts +8 -0
  696. package/entry/prod/adapter/react.ts +8 -0
  697. package/entry/prod/adapter/solid.ts +8 -0
  698. package/entry/prod/config_debug.ts +2 -0
  699. package/entry/prod/index.ts +1 -1
  700. package/entry/prod/runtime.ts +3 -1
  701. package/entry/rsc_dev/adapter/preact.ts +9 -0
  702. package/entry/rsc_dev/adapter/react.ts +9 -0
  703. package/entry/rsc_dev/adapter/solid.ts +9 -0
  704. package/entry/rsc_dev/css.ts +2 -0
  705. package/entry/rsc_prod/adapter/preact.ts +1 -0
  706. package/entry/rsc_prod/adapter/react.ts +1 -0
  707. package/entry/rsc_prod/adapter/solid.ts +1 -0
  708. package/entry/rsc_prod/config_debug.ts +6 -0
  709. package/entry/rsc_prod/index.ts +1 -1
  710. package/entry/shared/config_debug.ts +9 -0
  711. package/entry/shared/config_dev.ts +9 -7
  712. package/index.ts +1 -0
  713. package/jsx/rsc/jsx_dev_runtime.ts +11 -2
  714. package/jsx/rsc/jsx_runtime.ts +14 -3
  715. package/jsx/types/index.ts +1 -0
  716. package/jsx/types/preact.ts +14 -0
  717. package/jsx/{types.ts → types/react.ts} +2 -2
  718. package/jsx/types/solid.ts +15 -0
  719. package/package.json +179 -74
  720. package/plugin/bundler/farm/plugin.ts +3 -1
  721. package/plugin/bundler/parcel/optimizer.ts +1 -0
  722. package/plugin/bundler/parcel/plugin.ts +2 -0
  723. package/plugin/bundler/parcel/shared.ts +1 -1
  724. package/plugin/bundler/rspack/plugin.ts +1 -0
  725. package/plugin/bundler/vite/plugin.ts +23 -25
  726. package/plugin/bundler/vite/state.ts +7 -8
  727. package/plugin/bundler/webpack/plugin.ts +4 -3
  728. package/plugin/bundler/webpack/shared/loader.ts +13 -7
  729. package/plugin/nextjs/loader.ts +18 -2
  730. package/plugin/nextjs/plugin.ts +248 -35
  731. package/plugin/nextjs/types.ts +1 -2
  732. package/plugin/nextjs/utils.ts +122 -1
  733. package/plugin/utils/compiler.ts +3 -2
  734. package/plugin/utils/filter.ts +65 -1
  735. package/plugin/utils/runtimeEntry.ts +3 -2
  736. package/presets/tailwind/classname/transform.ts +32 -1
  737. package/presets/tailwind/style/transform.ts +9 -3
  738. package/runtime/adapter/utils.ts +120 -0
  739. package/runtime/core/cache/combine.ts +76 -28
  740. package/runtime/core/cache/combineRuntime.ts +4 -0
  741. package/runtime/core/cache/index.ts +2 -1
  742. package/runtime/core/cache/item.ts +32 -13
  743. package/runtime/core/cache/itemWithResolver.ts +44 -0
  744. package/runtime/core/cache/pool.ts +15 -30
  745. package/runtime/core/cache/prop.ts +10 -8
  746. package/runtime/core/cache/result.ts +2 -2
  747. package/runtime/core/cache/stateItem.ts +19 -1
  748. package/runtime/core/cache/token.ts +20 -0
  749. package/runtime/core/cache/tokenValues.ts +19 -11
  750. package/runtime/core/combinedStyle.ts +4 -4
  751. package/runtime/core/elementMarker.ts +9 -3
  752. package/runtime/extract/combineStyle.ts +211 -0
  753. package/runtime/extract/getClassName.ts +61 -16
  754. package/runtime/extract/index.ts +3 -1
  755. package/runtime/extract/token.ts +41 -0
  756. package/runtime/extract/tokenResolver.ts +17 -0
  757. package/runtime/rsc/constants.ts +3 -0
  758. package/runtime/rsc/dev.ts +31 -15
  759. package/runtime/rsc/getClassName.ts +10 -0
  760. package/runtime/rsc/globalSheet.ts +130 -0
  761. package/runtime/rsc/observer.ts +125 -15
  762. package/runtime/rsc/styleStore.ts +10 -19
  763. package/runtime/sheet/document.ts +28 -0
  764. package/runtime/sheet/global-prod.ts +3 -5
  765. package/runtime/sheet/global.ts +3 -5
  766. package/runtime/sheet/rule.ts +18 -12
  767. package/runtime/sheet/rules.ts +11 -3
  768. package/runtime/style/scope.ts +0 -24
  769. package/runtime/style/style.ts +181 -6
  770. package/runtime/types.ts +3 -3
  771. package/sheet/dev/dev_layer.ts +76 -17
  772. package/sheet/dev/dev_sort.ts +70 -18
  773. package/sheet/dev/index.ts +23 -3
  774. package/sheet/ordered.ts +225 -0
  775. package/sheet/ordering.ts +156 -0
  776. package/sheet/prod.ts +39 -12
  777. package/sheet/types.ts +7 -0
  778. package/sheet/utils/layer.ts +34 -0
  779. package/style/classname.ts +12 -6
  780. package/style/important.ts +21 -0
  781. package/style/index.ts +2 -0
  782. package/style/style.ts +17 -5
  783. package/style/theme.ts +0 -1
  784. package/style/token.ts +28 -21
  785. package/style/tokens.ts +20 -13
  786. package/style/transform.ts +5 -4
  787. package/style/types.ts +6 -4
  788. package/style/utils/expose.ts +4 -3
  789. package/style/value.ts +26 -11
  790. package/style/valueRef.ts +1 -1
  791. package/style/weight.ts +21 -0
  792. package/utils/global.ts +1 -3
  793. package/utils/symbol.ts +3 -0
  794. package/utils/trace.ts +1 -0
  795. package/dist/assert-BGdigdr5.js.map +0 -1
  796. package/dist/className-Cuh2JNxO.js +0 -263
  797. package/dist/className-Cuh2JNxO.js.map +0 -1
  798. package/dist/className-W2kDyeVl.js +0 -144
  799. package/dist/className-W2kDyeVl.js.map +0 -1
  800. package/dist/compiler-BXcGyZUP.mjs.map +0 -1
  801. package/dist/config-C1k9vUrM.js.map +0 -1
  802. package/dist/config-CLYMN3_p.js +0 -26
  803. package/dist/config-CLYMN3_p.js.map +0 -1
  804. package/dist/config-DcYrUB-M.js +0 -6
  805. package/dist/config-oI_yS50f.js +0 -1
  806. package/dist/css-CELBp6Gu.js +0 -58
  807. package/dist/css-CELBp6Gu.js.map +0 -1
  808. package/dist/css-CohHH2tn.js.map +0 -1
  809. package/dist/css-D_DL1yOz.js +0 -237
  810. package/dist/css-D_DL1yOz.js.map +0 -1
  811. package/dist/css-DfH4Gb1c.js +0 -805
  812. package/dist/css-DfH4Gb1c.js.map +0 -1
  813. package/dist/data-Ze8GNiJm.js +0 -483
  814. package/dist/data-Ze8GNiJm.js.map +0 -1
  815. package/dist/debug-BefbXMq1.js +0 -15
  816. package/dist/debug-BefbXMq1.js.map +0 -1
  817. package/dist/debug-DLmUG3Vh.js +0 -172
  818. package/dist/debug-DLmUG3Vh.js.map +0 -1
  819. package/dist/debug-OG2wSB5R.js +0 -15
  820. package/dist/debug-OG2wSB5R.js.map +0 -1
  821. package/dist/dev-4TqJORRn.js +0 -75
  822. package/dist/dev-4TqJORRn.js.map +0 -1
  823. package/dist/dev-C2u78xuv.js.map +0 -1
  824. package/dist/elementMarker-BKzZyg5V.js.map +0 -1
  825. package/dist/extract-B9j4TBkU.js +0 -2
  826. package/dist/extract-CzWJeQi8.js +0 -121
  827. package/dist/extract-CzWJeQi8.js.map +0 -1
  828. package/dist/getClassName-C6690_nr.js.map +0 -1
  829. package/dist/global-C7GsCW6Y.js +0 -14
  830. package/dist/global-C7GsCW6Y.js.map +0 -1
  831. package/dist/global-zaCE-g1C.js.map +0 -1
  832. package/dist/hash-Bycpk3MR.js +0 -160
  833. package/dist/hash-Bycpk3MR.js.map +0 -1
  834. package/dist/jsx-Berx-L-r.js +0 -39
  835. package/dist/jsx-Berx-L-r.js.map +0 -1
  836. package/dist/jsx-DsMajv_M.js +0 -38
  837. package/dist/jsx-DsMajv_M.js.map +0 -1
  838. package/dist/jsx_runtime-CMdEXGNZ.js +0 -13
  839. package/dist/jsx_runtime-DPWo5qvV.js.map +0 -1
  840. package/dist/layer-DiNeeTgG.js +0 -94
  841. package/dist/layer-DiNeeTgG.js.map +0 -1
  842. package/dist/loader-DCT1Q9yi.mjs.map +0 -1
  843. package/dist/misc-o8pviMUi.mjs.map +0 -1
  844. package/dist/namedTokens-BUa6raTb.js.map +0 -1
  845. package/dist/presets-BhXa232U.js +0 -108
  846. package/dist/presets-BhXa232U.js.map +0 -1
  847. package/dist/property-BzZSTVIh.js +0 -406
  848. package/dist/property-BzZSTVIh.js.map +0 -1
  849. package/dist/rules-Dz7Pu2K6.js.map +0 -1
  850. package/dist/runtime-B3jHW9B1.js +0 -32
  851. package/dist/runtime-B3jHW9B1.js.map +0 -1
  852. package/dist/shared-B_gJf5uj.cjs.map +0 -1
  853. package/dist/shared-uAzFeq0x.mjs.map +0 -1
  854. package/dist/sheet-DasbRnvy.js +0 -7
  855. package/dist/sheet-DasbRnvy.js.map +0 -1
  856. package/dist/style-B0F1sgRZ.js +0 -5
  857. package/dist/style-BkeAZl0n.js.map +0 -1
  858. package/dist/style-CYXTs1iu.js +0 -771
  859. package/dist/style-CYXTs1iu.js.map +0 -1
  860. package/dist/style-DUztHzBz.js.map +0 -1
  861. package/dist/styleStore-BGJ2ZYtK.js +0 -2009
  862. package/dist/styleStore-BGJ2ZYtK.js.map +0 -1
  863. package/dist/styleStore-DVDp-gI-.js +0 -55
  864. package/dist/styleStore-DVDp-gI-.js.map +0 -1
  865. package/dist/token-CA1j7suG.js +0 -273
  866. package/dist/token-CA1j7suG.js.map +0 -1
  867. package/dist/token-CKXUECuU.js +0 -76
  868. package/dist/token-CKXUECuU.js.map +0 -1
  869. package/dist/token-DTOyFLmp.js +0 -58
  870. package/dist/token-DTOyFLmp.js.map +0 -1
  871. package/dist/transform-BTJOg8Hg.js.map +0 -1
  872. package/dist/utils-BsbfH6cd.js.map +0 -1
  873. package/dist/utils-CpA-dSpY.mjs +0 -97
  874. package/dist/utils-CpA-dSpY.mjs.map +0 -1
  875. package/dist/utils-D4YWF2K0.js.map +0 -1
  876. package/dist/utils-R6QadAsY.js +0 -170
  877. package/dist/utils-R6QadAsY.js.map +0 -1
  878. package/dist/value-CJG6EWe8.js +0 -85
  879. package/dist/value-CJG6EWe8.js.map +0 -1
  880. package/dist/value-D-ZcRzLA.js +0 -42
  881. package/dist/value-D-ZcRzLA.js.map +0 -1
  882. package/dist/value-DBtSe-9B.js +0 -1000
  883. package/dist/value-DBtSe-9B.js.map +0 -1
  884. package/dist/valueRef-CsLVJwjA.js +0 -16
  885. package/dist/valueRef-CsLVJwjA.js.map +0 -1
  886. package/dist/webpack-Fb9xF5jS.mjs.map +0 -1
  887. package/dist/withTokens-LRidu3Vc.js +0 -95
  888. package/dist/withTokens-LRidu3Vc.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,30 +1,242 @@
1
1
  # @fluentic/style
2
2
 
3
- ## 0.1.0-beta.2
3
+ ## 0.1.0-beta.20
4
+
5
+ ### Patch Changes
4
6
 
5
- ### Minor Changes
7
+ - Use token CSS variables directly for token-valued properties and apply combineStyle overrides on consuming elements. Overrides share one token value per element and inherit into descendants; dynamic non-token values retain property-local variables.
6
8
 
7
- - Add class-name style chains with `createClassNameFn`, weighted utility values,
8
- selector chaining, at-rule support, merge support, and static compiler
9
- extraction.
10
- - Split the Tailwind preset into style-object and class-name entry points so
11
- teams can choose object-first or utility-class authoring from the same preset
12
- package.
13
- - Add named token compiler support and docs for transform extraction behavior.
9
+ Reduce extracted CSS output by grouping consecutive rules in the same layer and emitting one ordered layer declaration. Preserve important sublayer reservations so late-loaded rules keep their cascade precedence.
10
+
11
+ ## 0.1.0-beta.19
14
12
 
15
13
  ### Patch Changes
16
14
 
17
- - Improve debug class names for transformed class utilities, including readable
18
- transform class metadata in extracted output.
19
- - Refresh docs for presets, class-name chains, numeric values, runtime/compiler
20
- tradeoffs, plugin options, and imports.
21
- - Add a Vite React Tailwind className example app.
15
+ - Keep development priority-group style tags and insertion caches when lower-priority rules arrive after selector or global sheets. Isolate priority tag pools in layer mode, cache sort-group lookups and layer-order metadata, and update each touched sourcemap once per flush instead of rebuilding previously inserted rules.
22
16
 
23
- ## 0.1.0-beta.1
17
+ Export `CSSPropertiesRaw` as the upstream `CSS.Properties<string | number>` type and use it for style and class-name transformer output, retaining numeric lengths. Update the direct `csstype` dependency to `^3.2.4` so consumers can resolve future 3.x definitions without a Fluentic release; existing lockfiles still require dependency updates.
18
+
19
+ ## 0.1.0-beta.18
20
+
21
+ ### Patch Changes
22
+
23
+ - Enable persistent production transform caching by default, with content and resolution validation across dependency chains, compiler versions, and configuration changes. Restore immutable tracer syntax metadata across builds and safely reuse evaluated imports within a build. Configure caching with `cache: { persistent, dynamicConfig, version, location }`. Persistence and callback source fingerprinting default to enabled; change `cache.version` when captured or external callback inputs change. The former `persistentCache` and plugin `cacheDir` options are removed.
24
+
25
+ Cache and replay check warnings and failures, including code frames, with dependency and severity invalidation. Preserve collected CSS when restoring transforms and avoid unnecessary production source-map callbacks in the Vite adapter. Add regression coverage for stale dependencies, changed resolution, corrupt caches, process restarts, lazy exports, and circular imports.
26
+
27
+ Preserve callable token types when existing tokens are passed to `createTokens`.
28
+
29
+ ## 0.1.0-beta.17
30
+
31
+ ### Patch Changes
32
+
33
+ - Reduce build-time work by evaluating local bindings and imported exports only when style compilation needs them. Preserve declaration environments, cycle handling, and transitive dependency invalidation, reuse dependency hashes within a compilation, and skip runtime-import rewriting when it is unnecessary.
34
+
35
+ Add includePackages and excludePackages options for exact npm package names. Package exclusions take precedence over package inclusions, matching inclusions override file patterns for JavaScript and TypeScript files, and unmatched files retain existing filter behavior. Adapt package rules and defaults to Vite's native transform-hook filters while retaining the shared compatibility check.
36
+
37
+ ## 0.1.0-beta.16
38
+
39
+ ### Patch Changes
40
+
41
+ - Export the JSX import-source base paths so automatic JSX compilation can fall back to Fluentic's wrapped createElement when a key follows spread props. Preserve CSS prop handling and route the plugin fallback to development, production, and React Server Component runtimes, with generated TypeScript declarations.
42
+
43
+ ## 0.1.0-beta.15
44
+
45
+ ### Patch Changes
46
+
47
+ - Add global selector sheets with immediate client injection, static extraction, and Next.js RSC development transport. Sort whole global sheets by `order` (default `0`), retaining discovery order for ties, across runtime, extracted CSS, server seeds, and client adoption.
48
+
49
+ Rename the local sheet `weight` option to `specificity`, defaulting to `1`; use `0` for a zero-specificity `:where(...)` anchor. Local sheets remain unlayered by default. `layer: true` shares ordinary style layers, absolute names stay literal, and relative names only receive an enabled main-layer prefix. The legacy `css.layer.sheet` setting no longer enables sheet layers.
50
+
51
+ Place managed important sheet declarations in a first `<resolved-layer>.important` child; `style.important(value, true)` retains native layer placement. Preserve rule ordering and debug metadata through streaming, hydration, navigation, and HMR. Update client and Next.js examples and add a dedicated ordering guide.
52
+
53
+ Support configurable runtime stylesheet documents, including disabling injection and reinserting cached styles when changing documents. Add generated bundle reports and a release gate that rejects stale measurements and documentation.
54
+
55
+ ## 0.1.0-beta.14
56
+
57
+ ### Patch Changes
58
+
59
+ - Compile token factories at their definitions and preserve token references in extracted styles. Token groups become nested objects of extracted token leaves; value scales use a small precompiled lookup helper. Standalone getToken calls now receive CSS-variable metadata, including values imported through re-exports.
60
+
61
+ Named tokens now use global, hash-free CSS variable names derived from their explicit namespace and property path, independent of tokenNameFormat and hashLength. Rebuild all consumers together and update external CSS references to the new names. Path segments escape punctuation to avoid collisions.
62
+
63
+ - Use native TypeScript 7.0.2 for workspace checks and declaration emission, with TypeScript 6.0.2 API compatibility for tooling. Validate packed declarations with both TypeScript 5.9 and 7.
64
+
65
+ ## 0.1.0-beta.13
66
+
67
+ ### Patch Changes
68
+
69
+ - Allow individual `createSheet` calls to select named cascade layers. Absolute names such as `reset` are used as written; names beginning with `.` are prefixed with `css.layerNamespace`. Preserve selector scoping and boolean options across compiler extraction, browser runtime, and server rendering. Explicit entries in `css.layers` control named layer order without duplicates at `$layer`.
70
+
71
+ Fix compiler extraction of inline curried selector calls such as `style.selector('h1')({ fontSize: '1.5rem' })`, including chained conditions. Prefer the direct second-argument form for inline styles; both forms remain supported.
72
+
73
+ Add scoped reset documentation and packed declaration consumer checks for string layer options. Use Node's URL type explicitly in Node-only test/build files to keep release validation compatible with the installed Node declarations.
74
+
75
+ ## 0.1.0-beta.12
76
+
77
+ ### Patch Changes
78
+
79
+ - Publish generated TypeScript declarations for every public type entry point instead of exposing implementation sources to consumer type checking. Preserve compiled runtime exports and support strict consumers using Bundler, Node16, and NodeNext resolution. Make Babel and its public declaration dependency explicit compiler dependencies. Correct Solid JSX module augmentation without replacing framework types, and declare Solid as an optional integration peer. Keep static value evaluation on runtime exports. Add packed-package compatibility checks and document the release workflow.
80
+
81
+ ## 0.1.0-beta.11
82
+
83
+ ### Patch Changes
84
+
85
+ - Fingerprint the finished Turbopack stylesheet so Next.js serves a new CSS URL when extracted styles change.
86
+
87
+ ## 0.1.0-beta.10
88
+
89
+ ### Patch Changes
90
+
91
+ - Improve selector-sheet cascade control and important-value guidance.
92
+
93
+ - Keep `createSheet(...)` output unlayered by default so selector sheets can override unlayered third-party CSS, while allowing global `css.layer.sheet` and per-sheet `layer` opt-in through the derived `<layerNamespace>.sheet` layer.
94
+ - Add `createSheet({ layer, weight }, items)` so individual sheets can override layer participation and deliberately increase their generated anchor specificity.
95
+ - Preserve Fluentic's intended rule priority for `style.important(...)` when cascade layers reverse important declaration order.
96
+ - Add opt-in `check.important.rawValue` and `check.important.outsideSheet` compiler/runtime checks with `warn` and `error` modes.
97
+
98
+ ## 0.1.0-beta.9
99
+
100
+ ### Patch Changes
101
+
102
+ - 0309b3b: Resolve TypeScript path aliases when statically extracting imported theme
103
+ values. Imported `createValues(...)` palettes referenced through `tsconfig`
104
+ paths now extract correctly, including in React Server Component production
105
+ builds.
106
+
107
+ ## 0.1.0-beta.8
108
+
109
+ ### Patch Changes
110
+
111
+ - Improve Next.js RSC development CSS stability.
112
+
113
+ - Include imported `createValues(...)` and named-token `getToken(...)` values
114
+ in RSC dev precollected CSS so initial server styles match the dev
115
+ stylesheet.
116
+ - Use stable project-relative callsites for RSC dev local CSS variables,
117
+ including values imported from shared theme modules.
118
+ - Include the installed package identity in the Next.js cache key so local
119
+ tarball/package changes invalidate dev CSS caches.
120
+ - Increase the default dev/debug hash suffix from 3 to 5 characters to avoid
121
+ readable class-name collisions in large debug stylesheets while preserving
122
+ explicit `hashLength` configuration.
123
+
124
+ ## 0.1.0-beta.7
125
+
126
+ ### Patch Changes
127
+
128
+ - Keep Preact and SolidJS JSX type augmentations opt-in so React projects using
129
+ `@fluentic/style/plugin/jsx` no longer need optional framework peers installed.
130
+
131
+ - Keep React JSX `css` prop types in the default package type bundle.
132
+ - Add explicit `@fluentic/style/types/preact` and
133
+ `@fluentic/style/types/solid` type entrypoints for Preact and SolidJS
134
+ projects.
135
+ - Document the required project-level declaration-file import and update the
136
+ Preact and SolidJS examples.
137
+
138
+ ## 0.1.0-beta.6
139
+
140
+ ### Patch Changes
141
+
142
+ - 2bff82f: Improve css-prop adapters, class-name extraction, and Next.js build stability.
143
+
144
+ - Preserve normal JSX prop precedence when compiling intrinsic `css` props through React, Preact, and Solid adapters.
145
+ - Keep React `key` props outside generated css-prop spreads so list identity is preserved.
146
+ - Improve React Server Component development handling for css-prop adapter imports, including client components.
147
+ - Make class-name extraction produce stable debug hashes and better source locations for class-name utilities.
148
+ - Add Tailwind class-name support for arbitrary text values such as `text-[13px]`, `text-[length:13px]`, and `text-[color:purple]`.
149
+ - Improve Next.js integration for dev CSS delivery, Turbopack loader options, and production CSS precollection.
150
+ - Add default export conditions for common package entry points.
151
+
152
+ ## 0.1.0-beta.5
153
+
154
+ ### Patch Changes
155
+
156
+ - Add attachable selector sheets for styling fixed third-party class names
157
+ without emitting global CSS.
158
+
159
+ - Add `style.selector(...)` selector targets and `createSheet(...)` from
160
+ `@fluentic/style/css` for manual selector rules that still attach through
161
+ generated Fluentic classes.
162
+ - Support selector overrides and token overrides inside sheets so component
163
+ wrappers can expose local third-party themes with the same shape as
164
+ scoped style composition.
165
+ - Add `&` and `&?` selector handling for attached-element and portal-friendly
166
+ selector rules. Comma-separated selector strings are rejected; pass an
167
+ array when a rule should target multiple selectors.
168
+ - Add `createStyleTarget(...)` for applying style props to explicit DOM
169
+ targets such as `document.body`, with shared-target reference counting for
170
+ overlapping portal users.
171
+ - Make `combineStyle(...)` compose sheets directly, and add
172
+ `combineStyle.with(...)` plus array-only `combineStyle.multi(...)` for
173
+ cache-friendly style and sheet composition.
174
+ - Support selector sheet extraction, local token overrides, debug class
175
+ names, source tracing, and sourcemap data across runtime and extracted
176
+ builds.
177
+ - Add Preact css-prop support with a `CssPropPresets.Preact` compiler
178
+ preset, runtime adapters, JSX types, and a Vite example.
179
+ - Keep plugin css-prop configuration focused on `CssPropPresets` instead of
180
+ exporting each framework preset as a separate top-level plugin API.
181
+ - Add `style.important(...)` and `className.important(...)` for interop cases
182
+ that need emitted `!important` declarations, especially selector sheets
183
+ wrapping third-party CSS.
184
+ - Add `style.weight(...)` as the style-object counterpart to
185
+ `className.weight(...)`.
186
+ - Keep the extracted production runtime below 5 KB minified and gzipped with
187
+ `combineStyle` included, and keep selector parsing helpers out of the
188
+ extracted production entry.
189
+ - Add a React Select third-party selectors example, Preact integration docs,
190
+ and a clearer third-party styling guide for selector sheets, style targets,
191
+ portal menus, and the new `combineStyle` helpers.
192
+
193
+ ## 0.1.0-beta.4
24
194
 
25
195
  ### Patch Changes
26
196
 
27
- - Add `createSelectorAssert` for typed custom selector validators and improve selector preset documentation.
197
+ - Slim the extracted production runtime token path and fix named token refs in token-bound extracted styles.
198
+
199
+ - Keep token symbols, guards, naming, and extracted token helpers in builder/runtime internals instead of the public style token surface.
200
+ - Split extracted combine, token resolution, CSS variable, scope, and debug config helpers so extracted builds retain less eager runtime code.
201
+ - Make named tokens carry their extracted CSS variable name so production token bindings can reference named token values without compiler metadata errors.
202
+ - Hide manual stable ids from the public token and theme factory types while preserving internal compiler-provided identities.
203
+ - Add snapshot and runtime contract coverage for createToken, createTokens, createValues, createTheme, scopes, bindScope, combineStyle, and named-token refs in extracted output.
204
+ - Keep the Parcel optimizer on Node's `Buffer` import path and declare the Parcel example polyfill dependency so workspace builds do not rely on Parcel auto-install.
205
+
206
+ ## 0.1.0-beta.3
207
+
208
+ ### Patch Changes
209
+
210
+ - fd4a705: Make production class names globally dedupe extracted rules by deriving callsite-local hashing from dev mode only. Keep debug class names configurable from plugin and runtime CSS options, with dev defaulting to readable names and production defaulting to compact hashes.
211
+
212
+ ## 0.1.0-beta.2
213
+
214
+ This beta adds class-name style chains, Tailwind presets, and compiler support
215
+ for transform-driven styling.
216
+
217
+ ### Highlights
218
+
219
+ - Add `createClassNameFn` for class-name-driven style builders.
220
+ - Support nested class-name values, conditional falsy entries, weighted
221
+ class-name tokens, selector chaining, at-rules, and merges.
222
+ - Add compiler extraction for class-name style chains.
223
+ - Add Tailwind presets for both style-object and class-name authoring.
224
+ - Add `classNameTransform`, `classNameValue`, and transform metadata for
225
+ preserving source class labels in emitted rules.
226
+ - Add named token compiler support for static extraction and theme override
227
+ identity.
228
+ - Add configurable transform class-name formatting and hash length behavior for
229
+ debug output.
230
+
231
+ ## 0.1.0-beta.1
232
+
233
+ This patch beta improves typed selector authoring and documentation.
234
+
235
+ ### Changes
236
+
237
+ - Add `createSelectorAssert` for typed custom selector validators.
238
+ - Keep the public beta API moving with small usability refinements after
239
+ `0.1.0-beta.0`.
28
240
 
29
241
  ## 0.1.0-beta.0
30
242
 
package/README.md CHANGED
@@ -1,22 +1,28 @@
1
1
  # Fluentic Style
2
2
 
3
- Component style composition for React.
3
+ Build your own styling language on top of a stable component styling model.
4
4
 
5
- React styling has a lot of good answers already: CSS files, utility classes,
5
+ Styling UI apps has a lot of good answers already: CSS files, utility classes,
6
6
  CSS-in-JS, compiled CSS, design tokens, and component libraries. Fluentic
7
7
  explores a specific question inside that space: what if styles composed around
8
- React components the same way props and state do?
9
-
10
- With Fluentic, you start simple with type-safe `style(...)` and the JSX `css`
11
- prop. When a component needs variants, themes, nested parts, or consumer
12
- overrides, add slots, scopes, tokens, and `combineStyle(...)` so those styles
13
- stay organized around the component.
14
-
15
- For production builds, styles are extracted into static atomic CSS output.
16
- Dynamic values from props and state still work as usual.
8
+ components the same way props, state, and themes do?
9
+
10
+ With Fluentic, you start simple with type-safe `style(...)` values and attach
11
+ them through a JSX `css` prop or a framework adapter. React, Preact, and SolidJS
12
+ are supported today, with the core style data model designed to keep expanding
13
+ across JSX runtimes, compiler-backed frameworks, and server-rendered UI stacks.
14
+ If your team prefers utility class names, you can also create class-name style
15
+ chains, including a Tailwind-like preset.
16
+
17
+ When a component needs variants, themes, nested parts, or consumer overrides,
18
+ add slots, scopes, tokens, values, and `combineStyle(...)` so those styles stay
19
+ organized around the component instead of leaking through class names or private
20
+ DOM structure. For production builds, Fluentic extracts static styles into
21
+ atomic CSS output while dynamic values from props, state, signals, or request
22
+ data still work at runtime.
17
23
 
18
24
  [Docs](https://fluenticstack.com/style) |
19
- [Quick start](https://fluenticstack.com/style/docs/getting-started/quick-start/) |
25
+ [Start here](https://fluenticstack.com/style/docs/learn/start-here/) |
20
26
  [Playground](https://fluenticstack.com/style/playground/) |
21
27
  [npm](https://www.npmjs.com/package/@fluentic/style)
22
28
 
@@ -34,13 +40,35 @@ Or with pnpm:
34
40
  pnpm add @fluentic/style@beta
35
41
  ```
36
42
 
37
- Use Fluentic in a React app. Add a bundler plugin later when you want production
38
- extraction.
43
+ Use Fluentic in a JSX app. Add a bundler or framework plugin when you want
44
+ production extraction.
45
+
46
+ ## What Fluentic Supports
47
+
48
+ Fluentic is not tied to one styling vocabulary or one framework runtime. The
49
+ same style model powers CSS-like objects, custom design-system fields,
50
+ Tailwind-like object fields, class-name chains, slots, scopes, themes, tokens,
51
+ runtime values, static extraction, and development traces.
52
+
53
+ | Area | Support |
54
+ | ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
55
+ | Core styling model | [`style(...)`](https://fluenticstack.com/style/docs/reference/style/), [`style.slot(...)`](https://fluenticstack.com/style/docs/reference/style-slot/), [`style.scope(...)`](https://fluenticstack.com/style/docs/reference/style-scope/), [`combineStyle(...)`](https://fluenticstack.com/style/docs/reference/combine-style/), themes, tokens, values, selectors, at-rules, keyframes, and font faces. |
56
+ | Authoring vocabularies | CSS-like object styles, custom style functions, custom selectors, custom properties, Tailwind-like object fields, and Tailwind-like class-name chains. |
57
+ | Runtime paths | Runtime-only JSX setup for quick adoption, compiler-backed extracted runtime for production, and framework css-prop adapters that keep the framework's normal JSX transform. |
58
+ | Frameworks today | React, Next.js App Router, Preact, and SolidJS. |
59
+ | Bundlers today | Vite, Webpack, Rspack, Farm, Parcel 2, Babel/custom compiler use, and the Next.js integration for App Router projects. |
60
+ | Development tools | Readable debug class names, source traces, JSX element markers, sourcemaps, priority inspection, and React Server Component development support for Next.js. |
61
+
62
+ See the [integration overview](https://fluenticstack.com/style/docs/integrations/overview/)
63
+ for setup guides and the
64
+ [reference overview](https://fluenticstack.com/style/docs/reference/overview/)
65
+ for the API surface.
39
66
 
40
67
  ## Configure Runtime JSX
41
68
 
42
69
  Enable the runtime JSX import source so DOM and SVG elements accept the `css`
43
- prop. This path works without a Fluentic bundler plugin.
70
+ prop. This path works without a Fluentic bundler plugin and is the quickest
71
+ React setup path.
44
72
 
45
73
  ```jsonc
46
74
  /* tsconfig.json */
@@ -52,10 +80,14 @@ prop. This path works without a Fluentic bundler plugin.
52
80
  }
53
81
  ```
54
82
 
83
+ For SolidJS and Preact, keep the framework's normal JSX configuration and use
84
+ the Vite css-prop adapter instead:
85
+ [SolidJS](https://fluenticstack.com/style/docs/integrations/solidjs/) and
86
+ [PreactJS](https://fluenticstack.com/style/docs/integrations/preact/).
87
+
55
88
  ## Why Another Style Library?
56
89
 
57
- Component libraries need more than a way to attach styles to elements. They
58
- need:
90
+ Component systems need more than a way to attach styles to elements. They need:
59
91
 
60
92
  - base styles owned by the component;
61
93
  - state styles for hover, focus, active, disabled, media, and container queries;
@@ -97,12 +129,60 @@ export function Card() {
97
129
  }
98
130
  ```
99
131
 
100
- That is the smallest version of Fluentic Style: type-safe styles, selectors, and
101
- a `css` prop.
132
+ That is the smallest version of Fluentic Style: type-safe styles, selectors,
133
+ and a component-owned style value attached to JSX. The example uses React-style
134
+ syntax, but the same style data can be lowered through framework adapters.
135
+
136
+ ## Class Name Chains
137
+
138
+ Fluentic's default authoring path is object style chains, but class-name chains
139
+ are supported too. A class-name chain still produces Fluentic style data, so it
140
+ can use the same `css` prop, selector methods, slots, scopes, debugging, runtime
141
+ resolution, and production extraction path.
142
+
143
+ ```tsx
144
+ import { createClassNameFn } from '@fluentic/style';
145
+ import {
146
+ createTailwindClassNamePreset,
147
+ defaultTailwindTheme,
148
+ } from '@fluentic/style/presets/tailwind';
149
+
150
+ const tailwind = createTailwindClassNamePreset({
151
+ theme: defaultTailwindTheme,
152
+ });
153
+
154
+ export const { className: cx } = createClassNameFn({
155
+ selectors: tailwind.selectors,
156
+ transform: tailwind.transform,
157
+ });
158
+
159
+ const button = cx(
160
+ 'inline-flex',
161
+ 'items-center',
162
+ 'gap-2',
163
+ 'rounded-md',
164
+ 'bg-blue-600',
165
+ 'px-4',
166
+ 'py-2',
167
+ 'text-white',
168
+ )
169
+ .hover('bg-blue-700')
170
+ .md('px-6');
171
+ ```
172
+
173
+ Class names get their meaning from a user-land transform or a preset. See
174
+ [Class Name Style Chains](https://fluenticstack.com/style/docs/beyond-the-basics/class-name-style-chains/)
175
+ for the generic API, or
176
+ [Tailwind Class Name Preset](https://fluenticstack.com/style/docs/presets/tailwind/class-name/)
177
+ for the built-in Tailwind-like class-name vocabulary.
102
178
 
103
179
  ## Scale Into Components
104
180
 
105
- When a component becomes reusable, give its styles component structure.
181
+ When a component becomes reusable, give its styles component structure. This
182
+ section uses React component types for the example, but the important part is
183
+ the framework-independent style model: slots name public styling targets, scopes
184
+ describe changes to those targets, and the component decides where resolved
185
+ styles attach.
106
186
 
107
187
  ```tsx
108
188
  /* tokens.ts */
@@ -285,15 +365,24 @@ priority with layers or sorted output.
285
365
 
286
366
  ## Add Production Extraction
287
367
 
288
- Fluentic Style works without a compiler. In runtime mode, the JSX `css` prop
289
- resolves class names and inserts atomic CSS rules as needed.
368
+ Fluentic Style works without a compiler. In runtime-only mode, the JSX `css`
369
+ prop resolves class names and inserts atomic CSS rules as needed. That is useful
370
+ for trying the API, custom environments, and incremental adoption.
371
+
372
+ For production builds, add a bundler or framework plugin. Static styles are
373
+ extracted into ordered atomic CSS output. Runtime composition stays available
374
+ for values that still depend on props, state, signals, request data, user input,
375
+ or incoming themes.
290
376
 
291
- For production builds, add a bundler plugin. Styles are extracted into static
292
- atomic CSS output. Dynamic values from props, state, or user input still work as
293
- usual.
377
+ There are two integration shapes:
294
378
 
295
- After adding a Fluentic bundler plugin, change the JSX import source from
296
- `@fluentic/style/jsx` to `@fluentic/style/plugin/jsx`.
379
+ - React apps can use Fluentic's JSX runtime import source, switching from
380
+ `@fluentic/style/jsx` to `@fluentic/style/plugin/jsx` after adding a plugin.
381
+ - React, Preact, and SolidJS can also use a compiler css-prop adapter, letting
382
+ the framework keep its normal JSX runtime while Fluentic compiles
383
+ `css={...}` before the framework JSX transform runs.
384
+
385
+ The React JSX-runtime setup looks like this:
297
386
 
298
387
  ```jsonc
299
388
  /* tsconfig.json */
@@ -325,15 +414,58 @@ export default defineConfig({
325
414
  development sourcemaps, and extracted CSS output. See
326
415
  [Plugin Options](https://fluenticstack.com/style/docs/reference/plugin-options/).
327
416
 
328
- For Next.js and other bundlers, see the
329
- [integration docs](https://fluenticstack.com/style/docs/integrations/overview/).
417
+ The framework-adapter setup passes a css-prop preset to the plugin. This is the
418
+ normal path for SolidJS and Preact, and an optional path for React:
419
+
420
+ ```ts
421
+ /* vite.config.ts */
422
+ import { CssPropPresets, plugin as stylePlugin } from '@fluentic/style/plugin/vite';
423
+ import { defineConfig } from 'vite';
424
+
425
+ export default defineConfig({
426
+ plugins: [
427
+ stylePlugin({
428
+ cssProp: CssPropPresets.Solid,
429
+ }),
430
+ // then the framework JSX plugin, such as vite-plugin-solid
431
+ ],
432
+ });
433
+ ```
434
+
435
+ For framework and bundler-specific setup, see:
436
+
437
+ | Environment | Guide |
438
+ | -------------------------- | ----------------------------------------------------------------------------------------- |
439
+ | Next.js App Router | [Next.js](https://fluenticstack.com/style/docs/integrations/nextjs/) |
440
+ | Vite + React | [Vite](https://fluenticstack.com/style/docs/integrations/vite/) |
441
+ | Vite + SolidJS | [SolidJS](https://fluenticstack.com/style/docs/integrations/solidjs/) |
442
+ | Vite + Preact | [PreactJS](https://fluenticstack.com/style/docs/integrations/preact/) |
443
+ | Webpack | [Webpack](https://fluenticstack.com/style/docs/integrations/webpack/) |
444
+ | Rspack | [Rspack](https://fluenticstack.com/style/docs/integrations/rspack/) |
445
+ | Farm | [Farm](https://fluenticstack.com/style/docs/integrations/farm/) |
446
+ | Parcel 2 | [Parcel](https://fluenticstack.com/style/docs/integrations/parcel/) |
447
+ | Runtime-only | [Runtime-Only Mode](https://fluenticstack.com/style/docs/integrations/runtime-only-mode/) |
448
+ | Custom compiler or bundler | [Custom Compiler](https://fluenticstack.com/style/docs/integrations/custom-compiler/) |
330
449
 
331
450
  ## Benchmarks
332
451
 
333
452
  Benchmarks live in the repository's `benchmark/` folder and run against
334
453
  production builds. Current benchmark snapshots:
335
454
 
336
- React app, 1500-row dashboard:
455
+ The main production checks are runtime cost and bundle size. In the production
456
+ path most apps use, Fluentic extracts CSS at build time and ships the extracted
457
+ production runtime for `css` prop composition, dynamic values, class-name
458
+ merging, and token resolution. The measured runtime surface reports `4.98 KiB`
459
+ (5,097 bytes) min+gzip in the refreshed beta.14 report; generated helpers and the optional JSX/dialect surfaces are
460
+ reported separately.
461
+ Browser and SSR benchmarks track whether style resolution stays fast in
462
+ app-shaped renders. See the
463
+ [Bundle Size](https://fluenticstack.com/style/docs/benchmark/bundle-size/),
464
+ [React App](https://fluenticstack.com/style/docs/benchmark/react-app/), and
465
+ [SSR Style](https://fluenticstack.com/style/docs/benchmark/ssr-style/) reports
466
+ for what each number measures and how to rerun it.
467
+
468
+ [React app](https://fluenticstack.com/style/docs/benchmark/react-app/), 1500-row dashboard:
337
469
 
338
470
  | Case | Mount | Style Update |
339
471
  | -------------------------- | ---------- | ------------ |
@@ -347,7 +479,7 @@ React app, 1500-row dashboard:
347
479
  | vanilla-extract DOM | `39.85 ms` | `17.65 ms` |
348
480
  | CSS Modules DOM | `40.35 ms` | `17.75 ms` |
349
481
 
350
- SSR render-only, 500 rows:
482
+ [SSR render-only](https://fluenticstack.com/style/docs/benchmark/ssr-style/), 500 rows:
351
483
 
352
484
  | Case | Dashboard Mean | Composition Mean |
353
485
  | --------------- | -------------- | ---------------- |
@@ -357,7 +489,7 @@ SSR render-only, 500 rows:
357
489
  | Fluentic token | `7.667 ms` | `8.253 ms` |
358
490
  | StyleX | `6.826 ms` | `8.059 ms` |
359
491
 
360
- Compiler transform, 100 files per corpus:
492
+ [Compiler transform](https://fluenticstack.com/style/docs/benchmark/compiler/), 100 files per corpus:
361
493
 
362
494
  | Corpus | Fluentic Warm | StyleX Babel |
363
495
  | ------------- | ------------- | ------------ |
@@ -371,23 +503,24 @@ and the public suite list.
371
503
 
372
504
  ## Package Exports
373
505
 
374
- | Import | Purpose |
375
- | -------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
376
- | `@fluentic/style` | Runtime API, style builders, hooks, tokens, themes, and types. |
377
- | `@fluentic/style/css` | CSS helper APIs for keyframes, font faces, and at-rules. |
378
- | `@fluentic/style/selector` | Selector constructors, validators, presets, and priority helpers. |
379
- | `@fluentic/style/config` | Runtime configuration helpers. |
380
- | `@fluentic/style/compiler` | Node-only compiler entry used by build integrations and compiler benchmarks. |
381
- | `@fluentic/style/dev` | Development utilities. |
382
- | `@fluentic/style/dev/rsc` | React Server Component dev client boundary. |
383
- | `@fluentic/style/jsx` | [JSX import source without a bundler plugin](https://fluenticstack.com/style/docs/integrations/runtime-only-mode/). |
384
- | `@fluentic/style/plugin/jsx` | [JSX import source after adding a bundler plugin](https://fluenticstack.com/style/docs/integrations/jsx-runtime-setup/). |
385
- | `@fluentic/style/plugin/nextjs` | [Next.js App Router integration](https://fluenticstack.com/style/docs/integrations/nextjs/). |
386
- | `@fluentic/style/plugin/vite` | [Vite plugin](https://fluenticstack.com/style/docs/integrations/vite/). |
387
- | `@fluentic/style/plugin/webpack` | [Webpack plugin](https://fluenticstack.com/style/docs/integrations/webpack/). |
388
- | `@fluentic/style/plugin/rspack` | [Rspack plugin](https://fluenticstack.com/style/docs/integrations/rspack/). |
389
- | `@fluentic/style/plugin/farm` | [Farm plugin](https://fluenticstack.com/style/docs/integrations/farm/). |
390
- | `@fluentic/style/plugin/parcel` | [Parcel plugin](https://fluenticstack.com/style/docs/integrations/parcel/). |
506
+ | Import | Purpose |
507
+ | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
508
+ | `@fluentic/style` | Runtime API, style builders, hooks, tokens, themes, and types. |
509
+ | `@fluentic/style/css` | CSS helper APIs for keyframes, font faces, and at-rules. |
510
+ | `@fluentic/style/selector` | Selector constructors, validators, presets, and priority helpers. |
511
+ | `@fluentic/style/config` | Runtime configuration helpers. |
512
+ | `@fluentic/style/compiler` | Node-only compiler entry used by build integrations and compiler benchmarks. |
513
+ | `@fluentic/style/presets/tailwind` | [Tailwind-like object fields and class-name chains](https://fluenticstack.com/style/docs/presets/tailwind/). |
514
+ | `@fluentic/style/dev` | Development utilities. |
515
+ | `@fluentic/style/dev/rsc` | React Server Component dev client boundary. |
516
+ | `@fluentic/style/jsx` | [JSX import source without a bundler plugin](https://fluenticstack.com/style/docs/integrations/runtime-only-mode/). |
517
+ | `@fluentic/style/plugin/jsx` | [JSX import source after adding a bundler plugin](https://fluenticstack.com/style/docs/integrations/jsx-runtime-setup/). |
518
+ | `@fluentic/style/plugin/nextjs` | [Next.js App Router integration](https://fluenticstack.com/style/docs/integrations/nextjs/). |
519
+ | `@fluentic/style/plugin/vite` | [Vite plugin](https://fluenticstack.com/style/docs/integrations/vite/). |
520
+ | `@fluentic/style/plugin/webpack` | [Webpack plugin](https://fluenticstack.com/style/docs/integrations/webpack/). |
521
+ | `@fluentic/style/plugin/rspack` | [Rspack plugin](https://fluenticstack.com/style/docs/integrations/rspack/). |
522
+ | `@fluentic/style/plugin/farm` | [Farm plugin](https://fluenticstack.com/style/docs/integrations/farm/). |
523
+ | `@fluentic/style/plugin/parcel` | [Parcel plugin](https://fluenticstack.com/style/docs/integrations/parcel/). |
391
524
 
392
525
  ## Repository Guide
393
526