@fluentic/style 0.1.0-beta.11 → 0.1.0-beta.12

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 (419) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/compiler/compiler/compiler.ts +8 -4
  3. package/compiler/utils/file_resolver.ts +2 -1
  4. package/dist/compiler/index.mjs +1 -1
  5. package/dist/{compiler-C3CEGGtI.mjs → compiler-mCfMhtX4.mjs} +2 -3
  6. package/dist/{compiler-C3CEGGtI.mjs.map → compiler-mCfMhtX4.mjs.map} +1 -1
  7. package/dist/{loader-_-VjzlrX.mjs → loader-DUS2i9Zb.mjs} +3 -3
  8. package/dist/loader-DUS2i9Zb.mjs.map +1 -0
  9. package/dist/{misc-B76PUnWe.mjs → misc-vGtt_SX7.mjs} +2 -2
  10. package/dist/{misc-B76PUnWe.mjs.map → misc-vGtt_SX7.mjs.map} +1 -1
  11. package/dist/plugin/farm/index.mjs +3 -3
  12. package/dist/plugin/nextjs/index.mjs +4 -4
  13. package/dist/plugin/nextjs/index.mjs.map +1 -1
  14. package/dist/plugin/nextjs/loader.mjs +4 -4
  15. package/dist/plugin/parcel/index.cjs +1 -1
  16. package/dist/plugin/parcel/index.mjs +2 -2
  17. package/dist/plugin/parcel/optimizer.cjs +1 -1
  18. package/dist/plugin/parcel/optimizer.mjs +2 -2
  19. package/dist/plugin/parcel/resolver.cjs +1 -1
  20. package/dist/plugin/parcel/resolver.mjs +2 -2
  21. package/dist/plugin/parcel/runtime.cjs +1 -1
  22. package/dist/plugin/parcel/runtime.mjs +1 -1
  23. package/dist/plugin/parcel/transformer.cjs +1 -1
  24. package/dist/plugin/parcel/transformer.mjs +2 -2
  25. package/dist/plugin/rspack/index.mjs +2 -2
  26. package/dist/plugin/vite/index.mjs +3 -3
  27. package/dist/plugin/webpack/index.mjs +2 -2
  28. package/dist/plugin/webpack/loader.mjs +2 -2
  29. package/dist/{registry-w8ET5R7v.mjs → registry-BJqMbdMu.mjs} +2 -2
  30. package/dist/{registry-w8ET5R7v.mjs.map → registry-BJqMbdMu.mjs.map} +1 -1
  31. package/dist/{shared-PK52rW6T.cjs → shared-BRUPuZdH.cjs} +2 -3
  32. package/dist/{shared-PK52rW6T.cjs.map → shared-BRUPuZdH.cjs.map} +1 -1
  33. package/dist/{shared-C_cYxNzz.mjs → shared-DDzZd0tM.mjs} +4 -4
  34. package/dist/{shared-C_cYxNzz.mjs.map → shared-DDzZd0tM.mjs.map} +1 -1
  35. package/dist/{sidecar-BhvmXYsD.mjs → sidecar-BTT0veLU.mjs} +3 -3
  36. package/dist/{sidecar-BhvmXYsD.mjs.map → sidecar-BTT0veLU.mjs.map} +1 -1
  37. package/dist/types/adapter/preact.d.ts +1 -0
  38. package/dist/types/adapter/react.d.ts +1 -0
  39. package/dist/types/adapter/solid.d.ts +1 -0
  40. package/dist/types/atomic/atRule/counterStyle.d.ts +10 -0
  41. package/dist/types/atomic/atRule/fontFace.d.ts +10 -0
  42. package/dist/types/atomic/atRule/fontPaletteValues.d.ts +10 -0
  43. package/dist/types/atomic/atRule/fontSrc.d.ts +1 -0
  44. package/dist/types/atomic/atRule/keyframes.d.ts +13 -0
  45. package/dist/types/atomic/atRule/positionTry.d.ts +13 -0
  46. package/dist/types/atomic/atRule/property.d.ts +13 -0
  47. package/dist/types/atomic/atRule/utils.d.ts +5 -0
  48. package/dist/types/atomic/className.d.ts +11 -0
  49. package/dist/types/atomic/debug/className/className.d.ts +9 -0
  50. package/dist/types/atomic/debug/className/index.d.ts +1 -0
  51. package/dist/types/atomic/debug/property/data.d.ts +3 -0
  52. package/dist/types/atomic/debug/property/index.d.ts +1 -0
  53. package/dist/types/atomic/debug/property/property.d.ts +5 -0
  54. package/dist/types/atomic/debug/selector.d.ts +2 -0
  55. package/dist/types/atomic/debug/value.d.ts +5 -0
  56. package/dist/types/atomic/element.d.ts +5 -0
  57. package/dist/types/atomic/layer/index.d.ts +3 -0
  58. package/dist/types/atomic/layer/layer.d.ts +12 -0
  59. package/dist/types/atomic/layer/types.d.ts +30 -0
  60. package/dist/types/atomic/layer/utils.d.ts +4 -0
  61. package/dist/types/atomic/property/index.d.ts +2 -0
  62. package/dist/types/atomic/property/presets.d.ts +4 -0
  63. package/dist/types/atomic/property/property.d.ts +3 -0
  64. package/dist/types/atomic/property/type_maps.d.ts +31 -0
  65. package/dist/types/atomic/property/types.d.ts +4 -0
  66. package/dist/types/atomic/rule.d.ts +5 -0
  67. package/dist/types/atomic/scope.d.ts +3 -0
  68. package/dist/types/atomic/theme.d.ts +7 -0
  69. package/dist/types/atomic/token.d.ts +7 -0
  70. package/dist/types/atomic/utils/cssIdent.d.ts +2 -0
  71. package/dist/types/atomic/utils/cssVar.d.ts +3 -0
  72. package/dist/types/atomic/utils/debug.d.ts +4 -0
  73. package/dist/types/atomic/utils/format.d.ts +5 -0
  74. package/dist/types/atomic/utils/hash.d.ts +1 -0
  75. package/dist/types/atomic/utils/selector.d.ts +6 -0
  76. package/dist/types/atomic/utils/types.d.ts +7 -0
  77. package/dist/types/atomic/value/index.d.ts +2 -0
  78. package/dist/types/atomic/value/unitless.d.ts +1 -0
  79. package/dist/types/atomic/value/value.d.ts +2 -0
  80. package/dist/types/atomic/var.d.ts +4 -0
  81. package/dist/types/builder/classname/class_name_builder.d.ts +4 -0
  82. package/dist/types/builder/classname/fns.d.ts +48 -0
  83. package/dist/types/builder/classname/index.d.ts +3 -0
  84. package/dist/types/builder/classname/types.d.ts +18 -0
  85. package/dist/types/builder/data/check_selector.d.ts +2 -0
  86. package/dist/types/builder/data/const.d.ts +26 -0
  87. package/dist/types/builder/data/create.d.ts +13 -0
  88. package/dist/types/builder/data/data.d.ts +44 -0
  89. package/dist/types/builder/data/debug.d.ts +38 -0
  90. package/dist/types/builder/data/index.d.ts +8 -0
  91. package/dist/types/builder/data/is.d.ts +16 -0
  92. package/dist/types/builder/data/merge/index.d.ts +2 -0
  93. package/dist/types/builder/data/merge/scope.d.ts +7 -0
  94. package/dist/types/builder/data/merge/style.d.ts +6 -0
  95. package/dist/types/builder/data/merge/utils.d.ts +5 -0
  96. package/dist/types/builder/data/selector.d.ts +8 -0
  97. package/dist/types/builder/data/state.d.ts +85 -0
  98. package/dist/types/builder/extract/index.d.ts +7 -0
  99. package/dist/types/builder/extract/scope.d.ts +14 -0
  100. package/dist/types/builder/extract/sheet.d.ts +10 -0
  101. package/dist/types/builder/extract/slot.d.ts +9 -0
  102. package/dist/types/builder/extract/style.d.ts +11 -0
  103. package/dist/types/builder/extract/theme.d.ts +2 -0
  104. package/dist/types/builder/extract/token.d.ts +7 -0
  105. package/dist/types/builder/extract/utils.d.ts +28 -0
  106. package/dist/types/builder/extract/withTokens.d.ts +10 -0
  107. package/dist/types/builder/index.d.ts +2 -0
  108. package/dist/types/builder/selector_override.d.ts +5 -0
  109. package/dist/types/builder/selector_override_core.d.ts +6 -0
  110. package/dist/types/builder/style_builder.d.ts +15 -0
  111. package/dist/types/builder/style_data.d.ts +8 -0
  112. package/dist/types/builder/style_fns.d.ts +14 -0
  113. package/dist/types/builder/token/data.d.ts +10 -0
  114. package/dist/types/builder/token/name.d.ts +3 -0
  115. package/dist/types/builder/token/symbols.d.ts +4 -0
  116. package/dist/types/builder/types/alias.d.ts +59 -0
  117. package/dist/types/builder/types/fns.d.ts +115 -0
  118. package/dist/types/builder/types/index.d.ts +1 -0
  119. package/dist/types/builder/types/types.d.ts +22 -0
  120. package/dist/types/builder/utils.d.ts +9 -0
  121. package/dist/types/compiler/compiler/cache.d.ts +24 -0
  122. package/dist/types/compiler/compiler/compiler.d.ts +28 -0
  123. package/dist/types/compiler/compiler/constants.d.ts +6 -0
  124. package/dist/types/compiler/compiler/index.d.ts +4 -0
  125. package/dist/types/compiler/compiler/types.d.ts +53 -0
  126. package/dist/types/compiler/cssProp.d.ts +8 -0
  127. package/dist/types/compiler/extract/collector.d.ts +8 -0
  128. package/dist/types/compiler/extract/extract.d.ts +6 -0
  129. package/dist/types/compiler/extract/index.d.ts +3 -0
  130. package/dist/types/compiler/extract/types.d.ts +22 -0
  131. package/dist/types/compiler/index.d.ts +3 -0
  132. package/dist/types/compiler/transform/cssProp/index.d.ts +1 -0
  133. package/dist/types/compiler/transform/cssProp/plugin.d.ts +13 -0
  134. package/dist/types/compiler/transform/debug/index.d.ts +2 -0
  135. package/dist/types/compiler/transform/debug/plugin.d.ts +34 -0
  136. package/dist/types/compiler/transform/debug/transform.d.ts +7 -0
  137. package/dist/types/compiler/transform/debug/utils/debug_data.d.ts +11 -0
  138. package/dist/types/compiler/transform/debug/utils/source_url.d.ts +2 -0
  139. package/dist/types/compiler/transform/evaluator/evaluator.d.ts +41 -0
  140. package/dist/types/compiler/transform/evaluator/index.d.ts +3 -0
  141. package/dist/types/compiler/transform/evaluator/tracer.d.ts +8 -0
  142. package/dist/types/compiler/transform/evaluator/types.d.ts +21 -0
  143. package/dist/types/compiler/transform/extract/chain/chain.d.ts +18 -0
  144. package/dist/types/compiler/transform/extract/chain/extract_chain.d.ts +19 -0
  145. package/dist/types/compiler/transform/extract/chain/index.d.ts +3 -0
  146. package/dist/types/compiler/transform/extract/chain/types.d.ts +32 -0
  147. package/dist/types/compiler/transform/extract/index.d.ts +2 -0
  148. package/dist/types/compiler/transform/extract/plugin.d.ts +20 -0
  149. package/dist/types/compiler/transform/extract/transform.d.ts +10 -0
  150. package/dist/types/compiler/transform/extract/utils/imports.d.ts +3 -0
  151. package/dist/types/compiler/transform/extract/utils/replacement.d.ts +9 -0
  152. package/dist/types/compiler/transform/extract/utils/slot.d.ts +4 -0
  153. package/dist/types/compiler/transform/extract/utils/state.d.ts +34 -0
  154. package/dist/types/compiler/transform/extract/utils/theme.d.ts +9 -0
  155. package/dist/types/compiler/transform/extract/utils/token.d.ts +1 -0
  156. package/dist/types/compiler/transform/index.d.ts +5 -0
  157. package/dist/types/compiler/transform/syntax/index.d.ts +5 -0
  158. package/dist/types/compiler/transform/syntax/isStaticStyleValue.d.ts +2 -0
  159. package/dist/types/compiler/transform/syntax/isStyleChainCall.d.ts +2 -0
  160. package/dist/types/compiler/transform/syntax/static_ids.d.ts +16 -0
  161. package/dist/types/compiler/transform/syntax/types.d.ts +4 -0
  162. package/dist/types/compiler/transform/syntax/utils.d.ts +5 -0
  163. package/dist/types/compiler/transform/utils/babel.d.ts +21 -0
  164. package/dist/types/compiler/transform/utils/import.d.ts +2 -0
  165. package/dist/types/compiler/transform/utils/path.d.ts +1 -0
  166. package/dist/types/compiler/transform/utils/selector.d.ts +18 -0
  167. package/dist/types/compiler/utils/constants.d.ts +68 -0
  168. package/dist/types/compiler/utils/file_resolver.d.ts +12 -0
  169. package/dist/types/compiler/utils/import_source.d.ts +28 -0
  170. package/dist/types/compiler/utils/imports.d.ts +6 -0
  171. package/dist/types/compiler/utils/path.d.ts +4 -0
  172. package/dist/types/compiler/utils/sourcemap.d.ts +36 -0
  173. package/dist/types/config/build.d.ts +20 -0
  174. package/dist/types/config/config/check.d.ts +11 -0
  175. package/dist/types/config/config/css.d.ts +23 -0
  176. package/dist/types/config/config/css_extra.d.ts +13 -0
  177. package/dist/types/config/config/debug.d.ts +14 -0
  178. package/dist/types/config/config/dev.d.ts +36 -0
  179. package/dist/types/config/config/runtime.d.ts +10 -0
  180. package/dist/types/config/configure.d.ts +12 -0
  181. package/dist/types/config/constants.d.ts +1 -0
  182. package/dist/types/config/index.d.ts +2 -0
  183. package/dist/types/config/types.d.ts +47 -0
  184. package/dist/types/config/utils.d.ts +2 -0
  185. package/dist/types/css/counterStyle.d.ts +4 -0
  186. package/dist/types/css/fontFace.d.ts +5 -0
  187. package/dist/types/css/fontPaletteValues.d.ts +4 -0
  188. package/dist/types/css/index.d.ts +9 -0
  189. package/dist/types/css/keyframes.d.ts +4 -0
  190. package/dist/types/css/positionTry.d.ts +4 -0
  191. package/dist/types/css/property.d.ts +7 -0
  192. package/dist/types/css/sheet.d.ts +7 -0
  193. package/dist/types/css/styleTarget.d.ts +9 -0
  194. package/dist/types/css/utils.d.ts +19 -0
  195. package/dist/types/dev/config.d.ts +6 -0
  196. package/dist/types/dev/fns.d.ts +14 -0
  197. package/dist/types/dev/index.d.ts +2 -0
  198. package/dist/types/dev/trace.d.ts +8 -0
  199. package/dist/types/dev/utils.d.ts +5 -0
  200. package/dist/types/dialect/extracted/index.d.ts +1 -0
  201. package/dist/types/dialect/index.d.ts +1 -0
  202. package/dist/types/dialect/namedTokens.d.ts +9 -0
  203. package/dist/types/entry/dev/adapter/preact.d.ts +1 -0
  204. package/dist/types/entry/dev/adapter/react.d.ts +1 -0
  205. package/dist/types/entry/dev/adapter/solid.d.ts +1 -0
  206. package/dist/types/entry/dev/config.d.ts +2 -0
  207. package/dist/types/entry/dev/css.d.ts +2 -0
  208. package/dist/types/entry/dev/index.d.ts +3 -0
  209. package/dist/types/entry/dev/jsx_dev_runtime.d.ts +3 -0
  210. package/dist/types/entry/dev/sheet.d.ts +1 -0
  211. package/dist/types/entry/prod/adapter/preact.d.ts +1 -0
  212. package/dist/types/entry/prod/adapter/react.d.ts +1 -0
  213. package/dist/types/entry/prod/adapter/solid.d.ts +1 -0
  214. package/dist/types/entry/prod/config.d.ts +2 -0
  215. package/dist/types/entry/prod/config_debug.d.ts +2 -0
  216. package/dist/types/entry/prod/css.d.ts +2 -0
  217. package/dist/types/entry/prod/extract.d.ts +1 -0
  218. package/dist/types/entry/prod/index.d.ts +2 -0
  219. package/dist/types/entry/prod/jsx_runtime.d.ts +2 -0
  220. package/dist/types/entry/prod/runtime.d.ts +8 -0
  221. package/dist/types/entry/rsc_dev/adapter/preact.d.ts +1 -0
  222. package/dist/types/entry/rsc_dev/adapter/react.d.ts +1 -0
  223. package/dist/types/entry/rsc_dev/adapter/solid.d.ts +1 -0
  224. package/dist/types/entry/rsc_dev/config.d.ts +2 -0
  225. package/dist/types/entry/rsc_dev/css.d.ts +2 -0
  226. package/dist/types/entry/rsc_dev/index.d.ts +2 -0
  227. package/dist/types/entry/rsc_dev/server.d.ts +10 -0
  228. package/dist/types/entry/rsc_prod/adapter/preact.d.ts +1 -0
  229. package/dist/types/entry/rsc_prod/adapter/react.d.ts +1 -0
  230. package/dist/types/entry/rsc_prod/adapter/solid.d.ts +1 -0
  231. package/dist/types/entry/rsc_prod/config.d.ts +2 -0
  232. package/dist/types/entry/rsc_prod/config_debug.d.ts +2 -0
  233. package/dist/types/entry/rsc_prod/css.d.ts +2 -0
  234. package/dist/types/entry/rsc_prod/index.d.ts +2 -0
  235. package/dist/types/entry/rsc_prod/jsx_runtime.d.ts +2 -0
  236. package/dist/types/entry/rsc_prod/runtime.d.ts +4 -0
  237. package/dist/types/entry/rsc_prod/server.d.ts +6 -0
  238. package/dist/types/entry/shared/config.d.ts +1 -0
  239. package/dist/types/entry/shared/config_debug.d.ts +1 -0
  240. package/dist/types/entry/shared/config_dev.d.ts +1 -0
  241. package/dist/types/entry/shared/dev.d.ts +1 -0
  242. package/dist/types/entry/shared/prod.d.ts +1 -0
  243. package/dist/types/entry/shared/utils.d.ts +2 -0
  244. package/dist/types/index.d.ts +9 -0
  245. package/dist/types/jsx/extracted/jsx_runtime.d.ts +7 -0
  246. package/dist/types/jsx/rsc/jsx_runtime.d.ts +7 -0
  247. package/dist/types/jsx/rsc_extracted/jsx_runtime.d.ts +2 -0
  248. package/dist/types/jsx/runtime/jsx_dev_runtime.d.ts +6 -0
  249. package/dist/types/jsx/runtime/jsx_runtime.d.ts +7 -0
  250. package/dist/types/jsx/types/index.d.ts +1 -0
  251. package/dist/types/jsx/types/preact.d.ts +12 -0
  252. package/dist/types/jsx/types/react.d.ts +10 -0
  253. package/dist/types/jsx/types/solid.d.ts +12 -0
  254. package/dist/types/jsx/utils.d.ts +19 -0
  255. package/dist/types/plugin/bundler/farm/index.d.ts +1 -0
  256. package/dist/types/plugin/bundler/farm/plugin.d.ts +91 -0
  257. package/dist/types/plugin/bundler/parcel/index.d.ts +1 -0
  258. package/dist/types/plugin/bundler/parcel/optimizer.d.ts +3 -0
  259. package/dist/types/plugin/bundler/parcel/plugin.d.ts +6 -0
  260. package/dist/types/plugin/bundler/parcel/resolver.d.ts +3 -0
  261. package/dist/types/plugin/bundler/parcel/runtime.d.ts +3 -0
  262. package/dist/types/plugin/bundler/parcel/shared.d.ts +37 -0
  263. package/dist/types/plugin/bundler/parcel/transformer.d.ts +3 -0
  264. package/dist/types/plugin/bundler/rspack/index.d.ts +1 -0
  265. package/dist/types/plugin/bundler/rspack/plugin.d.ts +7 -0
  266. package/dist/types/plugin/bundler/vite/index.d.ts +1 -0
  267. package/dist/types/plugin/bundler/vite/plugin.d.ts +6 -0
  268. package/dist/types/plugin/bundler/vite/state.d.ts +55 -0
  269. package/dist/types/plugin/bundler/webpack/index.d.ts +1 -0
  270. package/dist/types/plugin/bundler/webpack/loader.d.ts +2 -0
  271. package/dist/types/plugin/bundler/webpack/plugin.d.ts +11 -0
  272. package/dist/types/plugin/bundler/webpack/shared/loader.d.ts +31 -0
  273. package/dist/types/plugin/bundler/webpack/shared/registry.d.ts +4 -0
  274. package/dist/types/plugin/bundler/webpack/utils.d.ts +18 -0
  275. package/dist/types/plugin/nextjs/constants.d.ts +3 -0
  276. package/dist/types/plugin/nextjs/html.d.ts +1 -0
  277. package/dist/types/plugin/nextjs/index.d.ts +2 -0
  278. package/dist/types/plugin/nextjs/loader.d.ts +3 -0
  279. package/dist/types/plugin/nextjs/plugin.d.ts +5 -0
  280. package/dist/types/plugin/nextjs/types.d.ts +21 -0
  281. package/dist/types/plugin/nextjs/utils.d.ts +59 -0
  282. package/dist/types/plugin/utils/cache/css_cache.d.ts +34 -0
  283. package/dist/types/plugin/utils/cache/file.d.ts +4 -0
  284. package/dist/types/plugin/utils/cache/index.d.ts +2 -0
  285. package/dist/types/plugin/utils/compiler.d.ts +40 -0
  286. package/dist/types/plugin/utils/constants.d.ts +4 -0
  287. package/dist/types/plugin/utils/cssMarker.d.ts +4 -0
  288. package/dist/types/plugin/utils/cssOutput.d.ts +10 -0
  289. package/dist/types/plugin/utils/filter.d.ts +14 -0
  290. package/dist/types/plugin/utils/imports.d.ts +3 -0
  291. package/dist/types/plugin/utils/index.d.ts +10 -0
  292. package/dist/types/plugin/utils/injection.d.ts +3 -0
  293. package/dist/types/plugin/utils/misc.d.ts +1 -0
  294. package/dist/types/plugin/utils/runtimeEntry.d.ts +8 -0
  295. package/dist/types/plugin/utils/sidecar/index.d.ts +1 -0
  296. package/dist/types/plugin/utils/sidecar/server.d.ts +19 -0
  297. package/dist/types/plugin/utils/sidecar/sidecar.d.ts +17 -0
  298. package/dist/types/plugin/utils/sidecar/utils.d.ts +33 -0
  299. package/dist/types/plugin/utils/sourcemap.d.ts +9 -0
  300. package/dist/types/plugin/utils/virtual.d.ts +12 -0
  301. package/dist/types/presets/tailwind/classname/index.d.ts +2 -0
  302. package/dist/types/presets/tailwind/classname/transform.d.ts +8 -0
  303. package/dist/types/presets/tailwind/classname/types.d.ts +27 -0
  304. package/dist/types/presets/tailwind/index.d.ts +5 -0
  305. package/dist/types/presets/tailwind/selectors.d.ts +68 -0
  306. package/dist/types/presets/tailwind/style/index.d.ts +2 -0
  307. package/dist/types/presets/tailwind/style/transform.d.ts +8 -0
  308. package/dist/types/presets/tailwind/style/types.d.ts +149 -0
  309. package/dist/types/presets/tailwind/theme.d.ts +477 -0
  310. package/dist/types/presets/tailwind/types.d.ts +53 -0
  311. package/dist/types/runtime/adapter/utils.d.ts +12 -0
  312. package/dist/types/runtime/core/cache/combine.d.ts +6 -0
  313. package/dist/types/runtime/core/cache/combineRuntime.d.ts +1 -0
  314. package/dist/types/runtime/core/cache/item.d.ts +15 -0
  315. package/dist/types/runtime/core/cache/itemWithResolver.d.ts +4 -0
  316. package/dist/types/runtime/core/cache/pool.d.ts +16 -0
  317. package/dist/types/runtime/core/cache/prop.d.ts +19 -0
  318. package/dist/types/runtime/core/cache/propCache.d.ts +12 -0
  319. package/dist/types/runtime/core/cache/resolvedItem.d.ts +5 -0
  320. package/dist/types/runtime/core/cache/result.d.ts +9 -0
  321. package/dist/types/runtime/core/cache/stateItem.d.ts +8 -0
  322. package/dist/types/runtime/core/cache/token.d.ts +2 -0
  323. package/dist/types/runtime/core/cache/tokenValues.d.ts +26 -0
  324. package/dist/types/runtime/core/cache/utils/tree.d.ts +12 -0
  325. package/dist/types/runtime/core/cache/utils/walk.d.ts +1 -0
  326. package/dist/types/runtime/core/className.d.ts +18 -0
  327. package/dist/types/runtime/core/combinedStyle.d.ts +20 -0
  328. package/dist/types/runtime/core/createTransformElement.d.ts +4 -0
  329. package/dist/types/runtime/core/elementMarker.d.ts +12 -0
  330. package/dist/types/runtime/core/elementMarkerData.d.ts +7 -0
  331. package/dist/types/runtime/core/getClassName.d.ts +4 -0
  332. package/dist/types/runtime/core/getSheetRules.d.ts +3 -0
  333. package/dist/types/runtime/core/getToken.d.ts +3 -0
  334. package/dist/types/runtime/core/index.d.ts +5 -0
  335. package/dist/types/runtime/core/jsx.d.ts +1 -0
  336. package/dist/types/runtime/core/resolveClassNameRuntime.d.ts +8 -0
  337. package/dist/types/runtime/env.d.ts +2 -0
  338. package/dist/types/runtime/extract/combineStyle.d.ts +27 -0
  339. package/dist/types/runtime/extract/getClassName.d.ts +10 -0
  340. package/dist/types/runtime/extract/index.d.ts +6 -0
  341. package/dist/types/runtime/extract/jsx.d.ts +10 -0
  342. package/dist/types/runtime/extract/token.d.ts +5 -0
  343. package/dist/types/runtime/extract/tokenResolver.d.ts +2 -0
  344. package/dist/types/runtime/rsc/constants.d.ts +4 -0
  345. package/dist/types/runtime/rsc/dev.d.ts +6 -0
  346. package/dist/types/runtime/rsc/getClassName.d.ts +24 -0
  347. package/dist/types/runtime/rsc/index.d.ts +1 -0
  348. package/dist/types/runtime/rsc/jsx.d.ts +1 -0
  349. package/dist/types/runtime/rsc/observer.d.ts +5 -0
  350. package/dist/types/runtime/rsc/styleStore.d.ts +5 -0
  351. package/dist/types/runtime/sheet/element.d.ts +2 -0
  352. package/dist/types/runtime/sheet/global.d.ts +3 -0
  353. package/dist/types/runtime/sheet/index.d.ts +3 -0
  354. package/dist/types/runtime/sheet/insert.d.ts +5 -0
  355. package/dist/types/runtime/sheet/rule.d.ts +8 -0
  356. package/dist/types/runtime/sheet/rules.d.ts +10 -0
  357. package/dist/types/runtime/sheet/theme.d.ts +5 -0
  358. package/dist/types/runtime/style/index.d.ts +3 -0
  359. package/dist/types/runtime/style/scope.d.ts +4 -0
  360. package/dist/types/runtime/style/style.d.ts +27 -0
  361. package/dist/types/runtime/style/token.d.ts +1 -0
  362. package/dist/types/runtime/types.d.ts +28 -0
  363. package/dist/types/selector/assert.d.ts +13 -0
  364. package/dist/types/selector/index.d.ts +5 -0
  365. package/dist/types/selector/presets/default.d.ts +108 -0
  366. package/dist/types/selector/presets/index.d.ts +3 -0
  367. package/dist/types/selector/presets/minimal.d.ts +46 -0
  368. package/dist/types/selector/presets/selectors.d.ts +62 -0
  369. package/dist/types/selector/selector.d.ts +12 -0
  370. package/dist/types/selector/types.d.ts +12 -0
  371. package/dist/types/selector/validate.d.ts +5 -0
  372. package/dist/types/sheet/dev/dev_layer.d.ts +4 -0
  373. package/dist/types/sheet/dev/dev_sort.d.ts +2 -0
  374. package/dist/types/sheet/dev/index.d.ts +5 -0
  375. package/dist/types/sheet/dev/utils.d.ts +26 -0
  376. package/dist/types/sheet/index.d.ts +4 -0
  377. package/dist/types/sheet/prod.d.ts +2 -0
  378. package/dist/types/sheet/sheet.d.ts +2 -0
  379. package/dist/types/sheet/sourcemap.d.ts +11 -0
  380. package/dist/types/sheet/types.d.ts +29 -0
  381. package/dist/types/sheet/utils/dom.d.ts +5 -0
  382. package/dist/types/sheet/utils/index.d.ts +4 -0
  383. package/dist/types/sheet/utils/layer.d.ts +10 -0
  384. package/dist/types/sheet/utils/noop.d.ts +2 -0
  385. package/dist/types/sheet/utils/rule.d.ts +3 -0
  386. package/dist/types/sheet/utils/sourcemap.d.ts +12 -0
  387. package/dist/types/style/classname.d.ts +15 -0
  388. package/dist/types/style/important.d.ts +8 -0
  389. package/dist/types/style/index.d.ts +12 -0
  390. package/dist/types/style/keyframes.d.ts +10 -0
  391. package/dist/types/style/style.d.ts +426 -0
  392. package/dist/types/style/theme.d.ts +5 -0
  393. package/dist/types/style/token.d.ts +29 -0
  394. package/dist/types/style/tokens.d.ts +10 -0
  395. package/dist/types/style/transform.d.ts +21 -0
  396. package/dist/types/style/types.d.ts +22 -0
  397. package/dist/types/style/utils/expose.d.ts +8 -0
  398. package/dist/types/style/utils/index.d.ts +1 -0
  399. package/dist/types/style/value.d.ts +12 -0
  400. package/dist/types/style/valueRef.d.ts +13 -0
  401. package/dist/types/style/weight.d.ts +9 -0
  402. package/dist/types/utils/global.d.ts +4 -0
  403. package/dist/types/utils/hash.d.ts +3 -0
  404. package/dist/types/utils/id.d.ts +12 -0
  405. package/dist/types/utils/object.d.ts +10 -0
  406. package/dist/types/utils/symbol.d.ts +1 -0
  407. package/dist/types/utils/trace.d.ts +21 -0
  408. package/dist/types/utils/type.d.ts +11 -0
  409. package/dist/{utils-DND33M6y.mjs → utils-D4UympcZ.mjs} +3 -3
  410. package/dist/{utils-DND33M6y.mjs.map → utils-D4UympcZ.mjs.map} +1 -1
  411. package/dist/{utils-NdisireF.mjs → utils-D75HPJWv.mjs} +4 -4
  412. package/dist/{utils-NdisireF.mjs.map → utils-D75HPJWv.mjs.map} +1 -1
  413. package/dist/{webpack-D7QO0bKN.mjs → webpack-_BpgAUEy.mjs} +5 -5
  414. package/dist/{webpack-D7QO0bKN.mjs.map → webpack-_BpgAUEy.mjs.map} +1 -1
  415. package/jsx/types/solid.ts +8 -25
  416. package/package.json +76 -72
  417. package/plugin/bundler/webpack/shared/loader.ts +4 -0
  418. package/plugin/nextjs/plugin.ts +7 -8
  419. package/dist/loader-_-VjzlrX.mjs.map +0 -1
@@ -0,0 +1,13 @@
1
+ import type { SelectorAssert, SelectorAssertFn } from "./types.js";
2
+ export declare function assertSelector(type: SelectorAssert | null, value: string): void;
3
+ export declare function assertEnumSelector<const Values extends readonly string[]>(values: Values): SelectorAssertFn<Values[number]>;
4
+ export declare function assertEnumSelector<const Values extends readonly string[]>(...values: Values): SelectorAssertFn<Values[number]>;
5
+ export declare const assertSelectorNotEmpty: SelectorAssertFn<string>;
6
+ export declare const assertLocalSelector: SelectorAssertFn<string>;
7
+ export declare const assertPseudoArgSelector: SelectorAssertFn<string>;
8
+ export declare const assertTagSelector: SelectorAssertFn<string>;
9
+ export declare const assertAttrSelector: SelectorAssertFn<string>;
10
+ export declare const assertRawValue: SelectorAssertFn<string>;
11
+ export declare const assertMediaQuery: SelectorAssertFn<string>;
12
+ export declare const assertSupportsQuery: SelectorAssertFn<string>;
13
+ export declare const assertContainerQuery: SelectorAssertFn<string>;
@@ -0,0 +1,5 @@
1
+ export * from "./assert.js";
2
+ export * from "./presets/index.js";
3
+ export * from "./selector.js";
4
+ export * from "./types.js";
5
+ export * from "./validate.js";
@@ -0,0 +1,108 @@
1
+ export declare const Selectors: {
2
+ media: import("../index.js").Selector<"@media $$", string>;
3
+ container: import("../index.js").Selector<"@container $$", string>;
4
+ supports: import("../index.js").Selector<"@supports $$", string>;
5
+ attr: import("../index.js").Selector<"$", string>;
6
+ select: import("../index.js").Selector<"$$", string>;
7
+ merge: import("../index.js").Selector<"...", string>;
8
+ not: import("../index.js").Selector<":not($$)", string>;
9
+ is: import("../index.js").Selector<":is($$)", string>;
10
+ where: import("../index.js").Selector<":where($$)", string>;
11
+ has: import("../index.js").Selector<":has($$)", string>;
12
+ nthChild: import("../index.js").Selector<":nth-child($)", string>;
13
+ nthLastChild: import("../index.js").Selector<":nth-last-child($)", string>;
14
+ nthOfType: import("../index.js").Selector<":nth-of-type($)", string>;
15
+ nthLastOfType: import("../index.js").Selector<":nth-last-of-type($)", string>;
16
+ lang: import("../index.js").Selector<":lang($)", string>;
17
+ dir: import("../index.js").Selector<":dir($)", string>;
18
+ before: import("../index.js").Selector<"::before", string>;
19
+ after: import("../index.js").Selector<"::after", string>;
20
+ hover: import("../index.js").Selector<":hover", string>;
21
+ active: import("../index.js").Selector<":active", string>;
22
+ focus: import("../index.js").Selector<":focus", string>;
23
+ focusVisible: import("../index.js").Selector<":focus-visible", string>;
24
+ focusWithin: import("../index.js").Selector<":focus-within", string>;
25
+ visited: import("../index.js").Selector<":visited", string>;
26
+ link: import("../index.js").Selector<":link", string>;
27
+ anyLink: import("../index.js").Selector<":any-link", string>;
28
+ target: import("../index.js").Selector<":target", string>;
29
+ disabled: import("../index.js").Selector<":disabled", string>;
30
+ enabled: import("../index.js").Selector<":enabled", string>;
31
+ checked: import("../index.js").Selector<":checked", string>;
32
+ indeterminate: import("../index.js").Selector<":indeterminate", string>;
33
+ invalid: import("../index.js").Selector<":invalid", string>;
34
+ valid: import("../index.js").Selector<":valid", string>;
35
+ required: import("../index.js").Selector<":required", string>;
36
+ optional: import("../index.js").Selector<":optional", string>;
37
+ readOnly: import("../index.js").Selector<":read-only", string>;
38
+ readWrite: import("../index.js").Selector<":read-write", string>;
39
+ inRange: import("../index.js").Selector<":in-range", string>;
40
+ outOfRange: import("../index.js").Selector<":out-of-range", string>;
41
+ default: import("../index.js").Selector<":default", string>;
42
+ placeholderShown: import("../index.js").Selector<":placeholder-shown", string>;
43
+ autofill: import("../index.js").Selector<":autofill", string>;
44
+ empty: import("../index.js").Selector<":empty", string>;
45
+ root: import("../index.js").Selector<":root", string>;
46
+ firstChild: import("../index.js").Selector<":first-child", string>;
47
+ lastChild: import("../index.js").Selector<":last-child", string>;
48
+ onlyChild: import("../index.js").Selector<":only-child", string>;
49
+ firstOfType: import("../index.js").Selector<":first-of-type", string>;
50
+ lastOfType: import("../index.js").Selector<":last-of-type", string>;
51
+ onlyOfType: import("../index.js").Selector<":only-of-type", string>;
52
+ fullscreen: import("../index.js").Selector<":fullscreen", string>;
53
+ modal: import("../index.js").Selector<":modal", string>;
54
+ };
55
+ export declare const PrioritySelectors: {
56
+ media: import("../index.js").Selector<"@media $$", string>;
57
+ container: import("../index.js").Selector<"@container $$", string>;
58
+ supports: import("../index.js").Selector<"@supports $$", string>;
59
+ attr: import("../index.js").Selector<"$", string>;
60
+ select: import("../index.js").Selector<"$$", string>;
61
+ merge: import("../index.js").Selector<"...", string>;
62
+ not: import("../index.js").Selector<":not($$)", string>;
63
+ is: import("../index.js").Selector<":is($$)", string>;
64
+ where: import("../index.js").Selector<":where($$)", string>;
65
+ has: import("../index.js").Selector<":has($$)", string>;
66
+ nthChild: import("../index.js").Selector<":nth-child($)", string>;
67
+ nthLastChild: import("../index.js").Selector<":nth-last-child($)", string>;
68
+ nthOfType: import("../index.js").Selector<":nth-of-type($)", string>;
69
+ nthLastOfType: import("../index.js").Selector<":nth-last-of-type($)", string>;
70
+ lang: import("../index.js").Selector<":lang($)", string>;
71
+ dir: import("../index.js").Selector<":dir($)", string>;
72
+ before: import("../index.js").Selector<"::before", string>;
73
+ after: import("../index.js").Selector<"::after", string>;
74
+ hover: import("../index.js").Selector<":hover", string>;
75
+ active: import("../index.js").Selector<":active", string>;
76
+ focus: import("../index.js").Selector<":focus", string>;
77
+ focusVisible: import("../index.js").Selector<":focus-visible", string>;
78
+ focusWithin: import("../index.js").Selector<":focus-within", string>;
79
+ visited: import("../index.js").Selector<":visited", string>;
80
+ link: import("../index.js").Selector<":link", string>;
81
+ anyLink: import("../index.js").Selector<":any-link", string>;
82
+ target: import("../index.js").Selector<":target", string>;
83
+ disabled: import("../index.js").Selector<":disabled", string>;
84
+ enabled: import("../index.js").Selector<":enabled", string>;
85
+ checked: import("../index.js").Selector<":checked", string>;
86
+ indeterminate: import("../index.js").Selector<":indeterminate", string>;
87
+ invalid: import("../index.js").Selector<":invalid", string>;
88
+ valid: import("../index.js").Selector<":valid", string>;
89
+ required: import("../index.js").Selector<":required", string>;
90
+ optional: import("../index.js").Selector<":optional", string>;
91
+ readOnly: import("../index.js").Selector<":read-only", string>;
92
+ readWrite: import("../index.js").Selector<":read-write", string>;
93
+ inRange: import("../index.js").Selector<":in-range", string>;
94
+ outOfRange: import("../index.js").Selector<":out-of-range", string>;
95
+ default: import("../index.js").Selector<":default", string>;
96
+ placeholderShown: import("../index.js").Selector<":placeholder-shown", string>;
97
+ autofill: import("../index.js").Selector<":autofill", string>;
98
+ empty: import("../index.js").Selector<":empty", string>;
99
+ root: import("../index.js").Selector<":root", string>;
100
+ firstChild: import("../index.js").Selector<":first-child", string>;
101
+ lastChild: import("../index.js").Selector<":last-child", string>;
102
+ onlyChild: import("../index.js").Selector<":only-child", string>;
103
+ firstOfType: import("../index.js").Selector<":first-of-type", string>;
104
+ lastOfType: import("../index.js").Selector<":last-of-type", string>;
105
+ onlyOfType: import("../index.js").Selector<":only-of-type", string>;
106
+ fullscreen: import("../index.js").Selector<":fullscreen", string>;
107
+ modal: import("../index.js").Selector<":modal", string>;
108
+ };
@@ -0,0 +1,3 @@
1
+ export * from "./default.js";
2
+ export * from "./minimal.js";
3
+ export * from "./selectors.js";
@@ -0,0 +1,46 @@
1
+ export declare const MinimalSelectors: {
2
+ media: import("../index.js").Selector<"@media $$", string>;
3
+ container: import("../index.js").Selector<"@container $$", string>;
4
+ supports: import("../index.js").Selector<"@supports $$", string>;
5
+ attr: import("../index.js").Selector<"$", string>;
6
+ select: import("../index.js").Selector<"$$", string>;
7
+ merge: import("../index.js").Selector<"...", string>;
8
+ before: import("../index.js").Selector<"::before", string>;
9
+ after: import("../index.js").Selector<"::after", string>;
10
+ hover: import("../index.js").Selector<":hover", string>;
11
+ active: import("../index.js").Selector<":active", string>;
12
+ focus: import("../index.js").Selector<":focus", string>;
13
+ focusWithin: import("../index.js").Selector<":focus-within", string>;
14
+ disabled: import("../index.js").Selector<":disabled", string>;
15
+ firstChild: import("../index.js").Selector<":first-child", string>;
16
+ lastChild: import("../index.js").Selector<":last-child", string>;
17
+ nthChild: import("../index.js").Selector<":nth-child($)", string>;
18
+ nthOfType: import("../index.js").Selector<":nth-of-type($)", string>;
19
+ is: import("../index.js").Selector<":is($$)", string>;
20
+ where: import("../index.js").Selector<":where($$)", string>;
21
+ not: import("../index.js").Selector<":not($$)", string>;
22
+ has: import("../index.js").Selector<":has($$)", string>;
23
+ };
24
+ export declare const MinimalPrioritySelectors: {
25
+ media: import("../index.js").Selector<"@media $$", string>;
26
+ container: import("../index.js").Selector<"@container $$", string>;
27
+ supports: import("../index.js").Selector<"@supports $$", string>;
28
+ attr: import("../index.js").Selector<"$", string>;
29
+ select: import("../index.js").Selector<"$$", string>;
30
+ merge: import("../index.js").Selector<"...", string>;
31
+ before: import("../index.js").Selector<"::before", string>;
32
+ after: import("../index.js").Selector<"::after", string>;
33
+ hover: import("../index.js").Selector<":hover", string>;
34
+ active: import("../index.js").Selector<":active", string>;
35
+ focus: import("../index.js").Selector<":focus", string>;
36
+ focusWithin: import("../index.js").Selector<":focus-within", string>;
37
+ disabled: import("../index.js").Selector<":disabled", string>;
38
+ firstChild: import("../index.js").Selector<":first-child", string>;
39
+ lastChild: import("../index.js").Selector<":last-child", string>;
40
+ nthChild: import("../index.js").Selector<":nth-child($)", string>;
41
+ nthOfType: import("../index.js").Selector<":nth-of-type($)", string>;
42
+ is: import("../index.js").Selector<":is($$)", string>;
43
+ where: import("../index.js").Selector<":where($$)", string>;
44
+ not: import("../index.js").Selector<":not($$)", string>;
45
+ has: import("../index.js").Selector<":has($$)", string>;
46
+ };
@@ -0,0 +1,62 @@
1
+ export declare const PseudoSelectors: {
2
+ hover: import("../index.js").Selector<":hover", string>;
3
+ active: import("../index.js").Selector<":active", string>;
4
+ focus: import("../index.js").Selector<":focus", string>;
5
+ focusVisible: import("../index.js").Selector<":focus-visible", string>;
6
+ focusWithin: import("../index.js").Selector<":focus-within", string>;
7
+ visited: import("../index.js").Selector<":visited", string>;
8
+ link: import("../index.js").Selector<":link", string>;
9
+ anyLink: import("../index.js").Selector<":any-link", string>;
10
+ target: import("../index.js").Selector<":target", string>;
11
+ disabled: import("../index.js").Selector<":disabled", string>;
12
+ enabled: import("../index.js").Selector<":enabled", string>;
13
+ checked: import("../index.js").Selector<":checked", string>;
14
+ indeterminate: import("../index.js").Selector<":indeterminate", string>;
15
+ invalid: import("../index.js").Selector<":invalid", string>;
16
+ valid: import("../index.js").Selector<":valid", string>;
17
+ required: import("../index.js").Selector<":required", string>;
18
+ optional: import("../index.js").Selector<":optional", string>;
19
+ readOnly: import("../index.js").Selector<":read-only", string>;
20
+ readWrite: import("../index.js").Selector<":read-write", string>;
21
+ inRange: import("../index.js").Selector<":in-range", string>;
22
+ outOfRange: import("../index.js").Selector<":out-of-range", string>;
23
+ default: import("../index.js").Selector<":default", string>;
24
+ placeholderShown: import("../index.js").Selector<":placeholder-shown", string>;
25
+ autofill: import("../index.js").Selector<":autofill", string>;
26
+ empty: import("../index.js").Selector<":empty", string>;
27
+ root: import("../index.js").Selector<":root", string>;
28
+ firstChild: import("../index.js").Selector<":first-child", string>;
29
+ lastChild: import("../index.js").Selector<":last-child", string>;
30
+ onlyChild: import("../index.js").Selector<":only-child", string>;
31
+ firstOfType: import("../index.js").Selector<":first-of-type", string>;
32
+ lastOfType: import("../index.js").Selector<":last-of-type", string>;
33
+ onlyOfType: import("../index.js").Selector<":only-of-type", string>;
34
+ fullscreen: import("../index.js").Selector<":fullscreen", string>;
35
+ modal: import("../index.js").Selector<":modal", string>;
36
+ };
37
+ export declare const PseudoElementSelectors: {
38
+ before: import("../index.js").Selector<"::before", string>;
39
+ after: import("../index.js").Selector<"::after", string>;
40
+ };
41
+ export declare const PseudoArgSelectors: {
42
+ not: import("../index.js").Selector<":not($$)", string>;
43
+ is: import("../index.js").Selector<":is($$)", string>;
44
+ where: import("../index.js").Selector<":where($$)", string>;
45
+ has: import("../index.js").Selector<":has($$)", string>;
46
+ nthChild: import("../index.js").Selector<":nth-child($)", string>;
47
+ nthLastChild: import("../index.js").Selector<":nth-last-child($)", string>;
48
+ nthOfType: import("../index.js").Selector<":nth-of-type($)", string>;
49
+ nthLastOfType: import("../index.js").Selector<":nth-last-of-type($)", string>;
50
+ lang: import("../index.js").Selector<":lang($)", string>;
51
+ dir: import("../index.js").Selector<":dir($)", string>;
52
+ };
53
+ export declare const ArgSelectors: {
54
+ attr: import("../index.js").Selector<"$", string>;
55
+ select: import("../index.js").Selector<"$$", string>;
56
+ merge: import("../index.js").Selector<"...", string>;
57
+ };
58
+ export declare const AtRuleSelectors: {
59
+ media: import("../index.js").Selector<"@media $$", string>;
60
+ container: import("../index.js").Selector<"@container $$", string>;
61
+ supports: import("../index.js").Selector<"@supports $$", string>;
62
+ };
@@ -0,0 +1,12 @@
1
+ import type { Selector, SelectorAssert, SelectorAssertFn } from "./types.js";
2
+ type SelectorArgs = [] | [SelectorAssert | null] | [number] | [number, SelectorAssert | null];
3
+ type SelectorAssertArg<Assert> = Assert extends SelectorAssertFn<infer Arg> ? Arg extends string ? Arg : string : string;
4
+ type SelectorArg<Args extends SelectorArgs> = Args extends [infer Assert] ? SelectorAssertArg<Assert> : Args extends [number, infer Assert] ? SelectorAssertArg<Assert> : string;
5
+ export declare function selector<const T extends string, const Args extends SelectorArgs>(selector: T, ...args: Args): Selector<T, SelectorArg<Args>>;
6
+ type SelectorString<T extends Selector> = T extends Selector<infer T> ? T : unknown;
7
+ type PrioritySelectors<Selectors extends Record<string, Selector>> = {
8
+ [P in keyof Selectors as SelectorString<Selectors[P]> extends `@${string}` | `${string}...${string}` ? never : P]: Selectors[P];
9
+ };
10
+ export declare function selectorPriority<Selectors extends Record<string, Selector>>(selectors: Selectors, values: (keyof PrioritySelectors<Selectors>)[] | PrioritySelectors<Selectors>): Selectors;
11
+ export declare function createSelectorAssert<const Arg extends string = string>(fn: (arg: Arg) => void): SelectorAssertFn<Arg>;
12
+ export {};
@@ -0,0 +1,12 @@
1
+ export declare const SelectorAssertArgSymbol: unique symbol;
2
+ export type Selector<T extends string = string, Arg extends string = string> = {
3
+ selector: T;
4
+ priority: number | null;
5
+ assert: SelectorType | SelectorAssertFn<Arg> | null;
6
+ };
7
+ export type SelectorAssert<Arg extends string = string> = SelectorType | SelectorAssertFn<Arg>;
8
+ export type SelectorAssertFn<Arg extends string = string> = {
9
+ (arg: string): void;
10
+ readonly [SelectorAssertArgSymbol]?: Arg;
11
+ };
12
+ export type SelectorType = 'local' | 'arg' | 'tag' | 'attr' | 'value' | 'media' | 'supports' | 'container';
@@ -0,0 +1,5 @@
1
+ export declare function isLocalSelector(selector: string): boolean;
2
+ export declare function isPseudoArgSelector(selector: string): boolean;
3
+ export declare function isTagSelector(selector: string): boolean;
4
+ export declare function isAttrArg(value: string): boolean;
5
+ export declare function isRawValue(value: string): boolean;
@@ -0,0 +1,4 @@
1
+ import type { SheetOptions, StyleSheet } from "../types.js";
2
+ import { getDevSourcemapTags, refreshDevSourcemapTags } from "./utils.js";
3
+ export { getDevSourcemapTags, refreshDevSourcemapTags };
4
+ export declare function createDevLayerSheet(options?: SheetOptions): StyleSheet;
@@ -0,0 +1,2 @@
1
+ import type { SheetOptions, StyleSheet } from "../types.js";
2
+ export declare function createDevSortSheet(options?: SheetOptions): StyleSheet;
@@ -0,0 +1,5 @@
1
+ import type { SheetOptions, StyleSheet } from "../types.js";
2
+ export { createDevLayerSheet, getDevSourcemapTags, refreshDevSourcemapTags } from "./dev_layer.js";
3
+ export { createDevSortSheet } from "./dev_sort.js";
4
+ export declare function createDevSheet(options?: SheetOptions): StyleSheet;
5
+ export declare function refreshDevStyleTags(): void;
@@ -0,0 +1,26 @@
1
+ import { type SourcemapRule } from "../sourcemap.js";
2
+ import type { SheetRule } from "../types.js";
3
+ export type DevRuleTag = {
4
+ tag: HTMLStyleElement;
5
+ rules: SourcemapRule[];
6
+ sourceMapNode: Text | null;
7
+ insertBeforeNode: Text | null;
8
+ count: number;
9
+ updateSourceMap(): void;
10
+ };
11
+ export declare function getDevSourcemapTags(): DevRuleTag[];
12
+ export declare function refreshDevSourcemapTags(): void;
13
+ export declare function pruneDevSourcemapTags(): void;
14
+ export declare function createDevTag(document: Document, previous: HTMLStyleElement | null, options: {
15
+ sourcemap: boolean;
16
+ nonce?: string | null;
17
+ className?: string;
18
+ before?: HTMLStyleElement | Text | null;
19
+ top?: boolean;
20
+ wrapper?: {
21
+ before: string;
22
+ after: string;
23
+ sourceMapLineOffset: number;
24
+ };
25
+ }): DevRuleTag;
26
+ export declare function insertDevRule(document: Document, item: DevRuleTag, fragment: DocumentFragment, css: string, rule: SheetRule | null): void;
@@ -0,0 +1,4 @@
1
+ export { createDevSheet } from "./dev/index.js";
2
+ export { createProdSheet } from "./prod.js";
3
+ export { createStyleSheet } from "./sheet.js";
4
+ export type { SheetCallsite, SheetOptions, SheetRule, StyleSheet } from "./types.js";
@@ -0,0 +1,2 @@
1
+ import type { SheetOptions, StyleSheet } from "./types.js";
2
+ export declare function createProdSheet(options?: SheetOptions): StyleSheet;
@@ -0,0 +1,2 @@
1
+ import type { SheetOptions } from "./types.js";
2
+ export declare function createStyleSheet(options?: SheetOptions): import("./types.js").StyleSheet;
@@ -0,0 +1,11 @@
1
+ import { type DebugData } from "../builder/data/debug.js";
2
+ import type { SheetCallsite } from "./types.js";
3
+ export type SourcemapRule = {
4
+ css: string;
5
+ callsite: SheetCallsite | null;
6
+ debug?: DebugData | null;
7
+ debugField?: string | null;
8
+ };
9
+ export declare function getRuleCallsite(callsite: SheetCallsite | null | undefined, debug: DebugData | null | undefined, debugField?: string | null): SheetCallsite | null;
10
+ export declare function createSourceMapComment(rules: SourcemapRule[]): string;
11
+ export declare function getSourcemapRuleCallsite(rule: SourcemapRule): SheetCallsite | null;
@@ -0,0 +1,29 @@
1
+ import type { LayerPriority } from "../atomic/layer/index.js";
2
+ import type { DebugData } from "../builder/data/debug.js";
3
+ import type { TraceCallsite } from "../utils/trace.js";
4
+ export type SheetCallsite = Pick<TraceCallsite, 'filePath' | 'sourceUrl' | 'sourceContent' | 'line' | 'column'>;
5
+ export type SheetRule = {
6
+ css: string;
7
+ key?: string | null;
8
+ priority?: LayerPriority | null;
9
+ important?: boolean;
10
+ layer?: 'style' | 'sheet' | false;
11
+ callsite?: SheetCallsite | null;
12
+ debug?: DebugData | null;
13
+ debugField?: string | null;
14
+ };
15
+ export type SheetOptions = {
16
+ document?: Document | null;
17
+ dev?: boolean;
18
+ maxRules?: number;
19
+ nonce?: string | null;
20
+ sourcemap?: boolean;
21
+ tagName?: string;
22
+ top?: boolean;
23
+ };
24
+ export type StyleSheet = {
25
+ updateLayers(layers: readonly string[]): void;
26
+ insert(rule: SheetRule | string): void;
27
+ flush(): void;
28
+ destroy?(): void;
29
+ };
@@ -0,0 +1,5 @@
1
+ export declare function resolveDocument(documentOverride?: Document | null): Document | null;
2
+ export declare function createStyleTag(document: Document, name: string, nonce?: string | null): HTMLStyleElement;
3
+ export declare function appendStyleTag(document: Document, tag: HTMLStyleElement): void;
4
+ export declare function insertStyleTagAfter(document: Document, tag: HTMLStyleElement, previous: HTMLStyleElement | null): void;
5
+ export declare function insertStyleTagAtTop(document: Document, tag: HTMLStyleElement): void;
@@ -0,0 +1,4 @@
1
+ export * from "./dom.js";
2
+ export * from "./layer.js";
3
+ export * from "./noop.js";
4
+ export * from "./rule.js";
@@ -0,0 +1,10 @@
1
+ import { type LayerPriority } from "../../atomic/layer/index.js";
2
+ export declare function createSheetLayerState(): {
3
+ getName: (priority: LayerPriority) => string;
4
+ getNames: () => string[];
5
+ };
6
+ export declare function getSheetRulePriority(priority: LayerPriority | null | undefined): LayerPriority;
7
+ export declare function getSheetRuleLayerPriority(priority: LayerPriority | null | undefined, important: boolean | null | undefined): LayerPriority;
8
+ export declare function getStyleLayerName(): string;
9
+ export declare function getSheetLayerName(): string;
10
+ export declare function getSheetLayerNames(layerState: ReturnType<typeof createSheetLayerState>, hasSheetLayer: boolean): string[];
@@ -0,0 +1,2 @@
1
+ import type { StyleSheet } from "../types.js";
2
+ export declare function createNoopSheet(): StyleSheet;
@@ -0,0 +1,3 @@
1
+ export declare function normalizeRule(rule: string | {
2
+ css: string;
3
+ }): string;
@@ -0,0 +1,12 @@
1
+ export type SourceMapSource = {
2
+ filePath: string;
3
+ sourceUrl?: string;
4
+ sourceContent?: string;
5
+ line: number;
6
+ column: number;
7
+ };
8
+ export type SourceMapRule = {
9
+ css: string;
10
+ source: SourceMapSource | null;
11
+ };
12
+ export declare function createSourceMapComment(rules: SourceMapRule[]): string;
@@ -0,0 +1,15 @@
1
+ import { type ClassNameFn } from "../builder/classname/index.js";
2
+ import type { SelectorsRecord } from "../builder/types/index.js";
3
+ import { PrioritySelectors } from "../selector/presets/index.js";
4
+ import type { Type } from "../utils/type.js";
5
+ import type { ClassNameTransform } from "./transform.js";
6
+ export type { ClassNameBuilder, ClassNameFn, ClassNameItem, WeightedClassName } from "../builder/classname/index.js";
7
+ export type { ClassNameTransform } from "./transform.js";
8
+ type InferClassName<Transform> = Transform extends ClassNameTransform<infer ClassName> ? ClassName : never;
9
+ export declare function createClassNameFn<const Selectors extends SelectorsRecord = typeof PrioritySelectors, const Transform extends ClassNameTransform<any> = ClassNameTransform<string>, ClassName extends string = InferClassName<Transform>>(args: {
10
+ className?: Type<ClassName>;
11
+ selectors: Selectors;
12
+ transform: Transform;
13
+ }): {
14
+ className: ClassNameFn<ClassName, Selectors>;
15
+ };
@@ -0,0 +1,8 @@
1
+ declare const STYLE_IMPORTANT: unique symbol;
2
+ export type StyleImportantValue<T = unknown> = {
3
+ readonly [STYLE_IMPORTANT]: true;
4
+ readonly value: T;
5
+ };
6
+ export declare function importantValue<T>(value: T): StyleImportantValue<T>;
7
+ export declare function isStyleImportantValue(value: unknown): value is StyleImportantValue;
8
+ export {};
@@ -0,0 +1,12 @@
1
+ export * from "./classname.js";
2
+ export * from "./important.js";
3
+ export * from "./keyframes.js";
4
+ export * from "./style.js";
5
+ export * from "./theme.js";
6
+ export * from "./token.js";
7
+ export * from "./tokens.js";
8
+ export * from "./transform.js";
9
+ export * from "./types.js";
10
+ export * from "./value.js";
11
+ export * from "./valueRef.js";
12
+ export * from "./weight.js";
@@ -0,0 +1,10 @@
1
+ import type { KeyframeSelector, KeyframesObject } from "../atomic/atRule/keyframes.js";
2
+ import { createKeyframes } from "../css/index.js";
3
+ import type { StableId } from "../utils/id.js";
4
+ import type { StyleTransform } from "./transform.js";
5
+ import type { CSSProperties, StyleObject } from "./types.js";
6
+ export type StyleKeyframesObject<Style = CSSProperties> = {
7
+ [Selector in KeyframeSelector]?: StyleObject<Style>;
8
+ };
9
+ export declare function transformKeyframes<Style>(frames: StyleKeyframesObject<Style>, transform: StyleTransform<Style> | null): KeyframesObject;
10
+ export declare function createStyleKeyframes<Style>(frames: StyleKeyframesObject<Style>, transform: StyleTransform<Style> | null, stableId?: StableId): ReturnType<typeof createKeyframes>;