@tenphi/tasty 0.0.0-snapshot.1c5dff6 → 0.0.0-snapshot.1f1c00a

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 (331) hide show
  1. package/README.md +377 -238
  2. package/dist/babel-rZcEwPLM.d.ts +82 -0
  3. package/dist/chunks/async-storage-CG5HnUT5.js +20 -0
  4. package/dist/chunks/async-storage-CG5HnUT5.js.map +1 -0
  5. package/dist/chunks/build-config-CL4eRu2z.js +42 -0
  6. package/dist/chunks/build-config-CL4eRu2z.js.map +1 -0
  7. package/dist/chunks/collector-D2ARGT2L.js +208 -0
  8. package/dist/chunks/collector-D2ARGT2L.js.map +1 -0
  9. package/dist/chunks/config-engine-DEmmPPdp.js +272 -0
  10. package/dist/chunks/config-engine-DEmmPPdp.js.map +1 -0
  11. package/dist/chunks/css-definitions-DotDkIXt.js +876 -0
  12. package/dist/chunks/css-definitions-DotDkIXt.js.map +1 -0
  13. package/dist/chunks/css-resources-P7IBUUZs.js +142 -0
  14. package/dist/chunks/css-resources-P7IBUUZs.js.map +1 -0
  15. package/dist/chunks/debug-D8pg9RGI.js +502 -0
  16. package/dist/chunks/debug-D8pg9RGI.js.map +1 -0
  17. package/dist/chunks/dsl-DRhFWQzo.js +1378 -0
  18. package/dist/chunks/dsl-DRhFWQzo.js.map +1 -0
  19. package/dist/chunks/hydration-TRcz5vnk.js +41 -0
  20. package/dist/chunks/hydration-TRcz5vnk.js.map +1 -0
  21. package/dist/chunks/react-runtime-BpxlOTbO.js +562 -0
  22. package/dist/chunks/react-runtime-BpxlOTbO.js.map +1 -0
  23. package/dist/chunks/runtime-engine-CKFXUH-A.js +2416 -0
  24. package/dist/chunks/runtime-engine-CKFXUH-A.js.map +1 -0
  25. package/dist/chunks/runtime-state-BxaLhVdP.js +127 -0
  26. package/dist/chunks/runtime-state-BxaLhVdP.js.map +1 -0
  27. package/dist/{utils/merge-styles.js → chunks/shared-utils-y-HjvPN4.js} +61 -58
  28. package/dist/chunks/shared-utils-y-HjvPN4.js.map +1 -0
  29. package/dist/chunks/style-engine-BBbBuSkT.js +5260 -0
  30. package/dist/chunks/style-engine-BBbBuSkT.js.map +1 -0
  31. package/dist/{zero/extractor.js → chunks/zero-engine-gJrKBRiw.js} +126 -66
  32. package/dist/chunks/zero-engine-gJrKBRiw.js.map +1 -0
  33. package/dist/collector-w4mBj5gd.d.ts +164 -0
  34. package/dist/config-CZWCzBr6.d.ts +1349 -0
  35. package/dist/core/index.d.ts +5 -33
  36. package/dist/core/index.js +9 -26
  37. package/dist/index-G9JuwM9p.d.ts +1920 -0
  38. package/dist/index.d.ts +5 -48
  39. package/dist/index.js +11 -33
  40. package/dist/{utils/merge-styles.d.ts → merge-styles-VXwJ0Frr.d.ts} +3 -4
  41. package/dist/ssr/astro-client.d.ts +1 -0
  42. package/dist/ssr/astro-client.js +6 -0
  43. package/dist/ssr/astro-client.js.map +1 -0
  44. package/dist/ssr/astro-middleware-extract-static.d.ts +10 -0
  45. package/dist/ssr/astro-middleware-extract-static.js +9 -0
  46. package/dist/ssr/astro-middleware-extract-static.js.map +1 -0
  47. package/dist/ssr/astro-middleware-extract.d.ts +10 -0
  48. package/dist/ssr/astro-middleware-extract.js +9 -0
  49. package/dist/ssr/astro-middleware-extract.js.map +1 -0
  50. package/dist/ssr/astro-middleware-static.d.ts +17 -0
  51. package/dist/ssr/astro-middleware-static.js +7 -0
  52. package/dist/ssr/astro-middleware-static.js.map +1 -0
  53. package/dist/ssr/astro-middleware.d.ts +18 -0
  54. package/dist/ssr/astro-middleware.js +7 -0
  55. package/dist/ssr/astro-middleware.js.map +1 -0
  56. package/dist/ssr/astro.d.ts +127 -0
  57. package/dist/ssr/astro.js +221 -0
  58. package/dist/ssr/astro.js.map +1 -0
  59. package/dist/ssr/index.d.ts +36 -0
  60. package/dist/ssr/index.js +10 -0
  61. package/dist/ssr/index.js.map +1 -0
  62. package/dist/ssr/next-config.d.ts +64 -0
  63. package/dist/ssr/next-config.js +128 -0
  64. package/dist/ssr/next-config.js.map +1 -0
  65. package/dist/ssr/next.d.ts +46 -0
  66. package/dist/ssr/next.js +60 -0
  67. package/dist/ssr/next.js.map +1 -0
  68. package/dist/static/index.d.ts +90 -5
  69. package/dist/static/index.js +31 -4
  70. package/dist/static/index.js.map +1 -0
  71. package/dist/static/inject.d.ts +4 -0
  72. package/dist/static/inject.js +17 -0
  73. package/dist/static/inject.js.map +1 -0
  74. package/dist/types-JEY8PVYP.d.ts +1567 -0
  75. package/dist/zero/babel.d.ts +2 -113
  76. package/dist/zero/babel.js +230 -106
  77. package/dist/zero/babel.js.map +1 -1
  78. package/dist/zero/index.d.ts +80 -3
  79. package/dist/zero/index.js +2 -4
  80. package/dist/zero/next.d.ts +57 -33
  81. package/dist/zero/next.js +93 -59
  82. package/dist/zero/next.js.map +1 -1
  83. package/docs/README.md +39 -0
  84. package/docs/adoption.md +323 -0
  85. package/docs/ai-agents.md +250 -0
  86. package/docs/comparison.md +448 -0
  87. package/docs/configuration.md +684 -56
  88. package/docs/debug.md +170 -343
  89. package/docs/design-system.md +455 -0
  90. package/docs/dsl.md +1065 -0
  91. package/docs/getting-started.md +240 -0
  92. package/docs/injector.md +159 -53
  93. package/docs/methodology.md +648 -0
  94. package/docs/migration-v3.md +285 -0
  95. package/docs/pipeline.md +765 -0
  96. package/docs/plugins.md +353 -0
  97. package/docs/react-api.md +683 -0
  98. package/docs/runtime-benchmarks.md +388 -0
  99. package/docs/ssr.md +610 -0
  100. package/docs/styles.md +211 -63
  101. package/docs/tasty-static.md +273 -67
  102. package/package.json +182 -58
  103. package/tasty.config.ts +6 -0
  104. package/dist/_virtual/_rolldown/runtime.js +0 -8
  105. package/dist/chunks/cacheKey.js +0 -70
  106. package/dist/chunks/cacheKey.js.map +0 -1
  107. package/dist/chunks/definitions.d.ts +0 -37
  108. package/dist/chunks/definitions.js +0 -260
  109. package/dist/chunks/definitions.js.map +0 -1
  110. package/dist/chunks/renderChunk.js +0 -61
  111. package/dist/chunks/renderChunk.js.map +0 -1
  112. package/dist/config.d.ts +0 -288
  113. package/dist/config.js +0 -403
  114. package/dist/config.js.map +0 -1
  115. package/dist/debug.d.ts +0 -204
  116. package/dist/debug.js +0 -733
  117. package/dist/debug.js.map +0 -1
  118. package/dist/hooks/useGlobalStyles.d.ts +0 -27
  119. package/dist/hooks/useGlobalStyles.js +0 -56
  120. package/dist/hooks/useGlobalStyles.js.map +0 -1
  121. package/dist/hooks/useKeyframes.d.ts +0 -56
  122. package/dist/hooks/useKeyframes.js +0 -54
  123. package/dist/hooks/useKeyframes.js.map +0 -1
  124. package/dist/hooks/useProperty.d.ts +0 -79
  125. package/dist/hooks/useProperty.js +0 -91
  126. package/dist/hooks/useProperty.js.map +0 -1
  127. package/dist/hooks/useRawCSS.d.ts +0 -53
  128. package/dist/hooks/useRawCSS.js +0 -28
  129. package/dist/hooks/useRawCSS.js.map +0 -1
  130. package/dist/hooks/useStyles.d.ts +0 -40
  131. package/dist/hooks/useStyles.js +0 -169
  132. package/dist/hooks/useStyles.js.map +0 -1
  133. package/dist/injector/index.d.ts +0 -157
  134. package/dist/injector/index.js +0 -154
  135. package/dist/injector/index.js.map +0 -1
  136. package/dist/injector/injector.d.ts +0 -139
  137. package/dist/injector/injector.js +0 -417
  138. package/dist/injector/injector.js.map +0 -1
  139. package/dist/injector/sheet-manager.d.ts +0 -135
  140. package/dist/injector/sheet-manager.js +0 -728
  141. package/dist/injector/sheet-manager.js.map +0 -1
  142. package/dist/injector/types.d.ts +0 -144
  143. package/dist/keyframes/index.js +0 -206
  144. package/dist/keyframes/index.js.map +0 -1
  145. package/dist/parser/classify.js +0 -319
  146. package/dist/parser/classify.js.map +0 -1
  147. package/dist/parser/const.js +0 -33
  148. package/dist/parser/const.js.map +0 -1
  149. package/dist/parser/lru.js +0 -109
  150. package/dist/parser/lru.js.map +0 -1
  151. package/dist/parser/parser.d.ts +0 -25
  152. package/dist/parser/parser.js +0 -116
  153. package/dist/parser/parser.js.map +0 -1
  154. package/dist/parser/tokenizer.js +0 -69
  155. package/dist/parser/tokenizer.js.map +0 -1
  156. package/dist/parser/types.d.ts +0 -51
  157. package/dist/parser/types.js +0 -46
  158. package/dist/parser/types.js.map +0 -1
  159. package/dist/pipeline/conditions.d.ts +0 -134
  160. package/dist/pipeline/conditions.js +0 -406
  161. package/dist/pipeline/conditions.js.map +0 -1
  162. package/dist/pipeline/exclusive.js +0 -231
  163. package/dist/pipeline/exclusive.js.map +0 -1
  164. package/dist/pipeline/index.d.ts +0 -53
  165. package/dist/pipeline/index.js +0 -660
  166. package/dist/pipeline/index.js.map +0 -1
  167. package/dist/pipeline/materialize.js +0 -856
  168. package/dist/pipeline/materialize.js.map +0 -1
  169. package/dist/pipeline/parseStateKey.d.ts +0 -15
  170. package/dist/pipeline/parseStateKey.js +0 -451
  171. package/dist/pipeline/parseStateKey.js.map +0 -1
  172. package/dist/pipeline/simplify.js +0 -516
  173. package/dist/pipeline/simplify.js.map +0 -1
  174. package/dist/pipeline/warnings.js +0 -18
  175. package/dist/pipeline/warnings.js.map +0 -1
  176. package/dist/plugins/okhsl-plugin.d.ts +0 -35
  177. package/dist/plugins/okhsl-plugin.js +0 -371
  178. package/dist/plugins/okhsl-plugin.js.map +0 -1
  179. package/dist/plugins/types.d.ts +0 -69
  180. package/dist/properties/index.js +0 -221
  181. package/dist/properties/index.js.map +0 -1
  182. package/dist/properties/property-type-resolver.d.ts +0 -24
  183. package/dist/properties/property-type-resolver.js +0 -83
  184. package/dist/properties/property-type-resolver.js.map +0 -1
  185. package/dist/states/index.d.ts +0 -49
  186. package/dist/states/index.js +0 -416
  187. package/dist/states/index.js.map +0 -1
  188. package/dist/static/tastyStatic.d.ts +0 -46
  189. package/dist/static/tastyStatic.js +0 -31
  190. package/dist/static/tastyStatic.js.map +0 -1
  191. package/dist/static/types.d.ts +0 -49
  192. package/dist/static/types.js +0 -24
  193. package/dist/static/types.js.map +0 -1
  194. package/dist/styles/align.d.ts +0 -15
  195. package/dist/styles/align.js +0 -14
  196. package/dist/styles/align.js.map +0 -1
  197. package/dist/styles/border.d.ts +0 -25
  198. package/dist/styles/border.js +0 -114
  199. package/dist/styles/border.js.map +0 -1
  200. package/dist/styles/color.d.ts +0 -14
  201. package/dist/styles/color.js +0 -23
  202. package/dist/styles/color.js.map +0 -1
  203. package/dist/styles/createStyle.js +0 -77
  204. package/dist/styles/createStyle.js.map +0 -1
  205. package/dist/styles/dimension.js +0 -97
  206. package/dist/styles/dimension.js.map +0 -1
  207. package/dist/styles/display.d.ts +0 -37
  208. package/dist/styles/display.js +0 -67
  209. package/dist/styles/display.js.map +0 -1
  210. package/dist/styles/fade.d.ts +0 -15
  211. package/dist/styles/fade.js +0 -58
  212. package/dist/styles/fade.js.map +0 -1
  213. package/dist/styles/fill.d.ts +0 -42
  214. package/dist/styles/fill.js +0 -52
  215. package/dist/styles/fill.js.map +0 -1
  216. package/dist/styles/flow.d.ts +0 -16
  217. package/dist/styles/flow.js +0 -12
  218. package/dist/styles/flow.js.map +0 -1
  219. package/dist/styles/gap.d.ts +0 -31
  220. package/dist/styles/gap.js +0 -37
  221. package/dist/styles/gap.js.map +0 -1
  222. package/dist/styles/height.d.ts +0 -17
  223. package/dist/styles/height.js +0 -20
  224. package/dist/styles/height.js.map +0 -1
  225. package/dist/styles/index.d.ts +0 -2
  226. package/dist/styles/index.js +0 -9
  227. package/dist/styles/index.js.map +0 -1
  228. package/dist/styles/inset.d.ts +0 -52
  229. package/dist/styles/inset.js +0 -150
  230. package/dist/styles/inset.js.map +0 -1
  231. package/dist/styles/justify.d.ts +0 -15
  232. package/dist/styles/justify.js +0 -14
  233. package/dist/styles/justify.js.map +0 -1
  234. package/dist/styles/list.d.ts +0 -16
  235. package/dist/styles/list.js +0 -98
  236. package/dist/styles/list.js.map +0 -1
  237. package/dist/styles/margin.d.ts +0 -24
  238. package/dist/styles/margin.js +0 -104
  239. package/dist/styles/margin.js.map +0 -1
  240. package/dist/styles/outline.d.ts +0 -29
  241. package/dist/styles/outline.js +0 -65
  242. package/dist/styles/outline.js.map +0 -1
  243. package/dist/styles/padding.d.ts +0 -24
  244. package/dist/styles/padding.js +0 -104
  245. package/dist/styles/padding.js.map +0 -1
  246. package/dist/styles/predefined.d.ts +0 -73
  247. package/dist/styles/predefined.js +0 -241
  248. package/dist/styles/predefined.js.map +0 -1
  249. package/dist/styles/preset.d.ts +0 -47
  250. package/dist/styles/preset.js +0 -126
  251. package/dist/styles/preset.js.map +0 -1
  252. package/dist/styles/radius.d.ts +0 -14
  253. package/dist/styles/radius.js +0 -51
  254. package/dist/styles/radius.js.map +0 -1
  255. package/dist/styles/scrollbar.d.ts +0 -23
  256. package/dist/styles/scrollbar.js +0 -34
  257. package/dist/styles/scrollbar.js.map +0 -1
  258. package/dist/styles/shadow.d.ts +0 -14
  259. package/dist/styles/shadow.js +0 -24
  260. package/dist/styles/shadow.js.map +0 -1
  261. package/dist/styles/styledScrollbar.d.ts +0 -47
  262. package/dist/styles/styledScrollbar.js +0 -38
  263. package/dist/styles/styledScrollbar.js.map +0 -1
  264. package/dist/styles/transition.d.ts +0 -14
  265. package/dist/styles/transition.js +0 -158
  266. package/dist/styles/transition.js.map +0 -1
  267. package/dist/styles/types.d.ts +0 -498
  268. package/dist/styles/width.d.ts +0 -17
  269. package/dist/styles/width.js +0 -20
  270. package/dist/styles/width.js.map +0 -1
  271. package/dist/tasty.d.ts +0 -982
  272. package/dist/tasty.js +0 -206
  273. package/dist/tasty.js.map +0 -1
  274. package/dist/tokens/typography.d.ts +0 -19
  275. package/dist/tokens/typography.js +0 -237
  276. package/dist/tokens/typography.js.map +0 -1
  277. package/dist/types.d.ts +0 -184
  278. package/dist/utils/cache-wrapper.js +0 -26
  279. package/dist/utils/cache-wrapper.js.map +0 -1
  280. package/dist/utils/case-converter.js +0 -8
  281. package/dist/utils/case-converter.js.map +0 -1
  282. package/dist/utils/colors.d.ts +0 -5
  283. package/dist/utils/colors.js +0 -9
  284. package/dist/utils/colors.js.map +0 -1
  285. package/dist/utils/css-types.d.ts +0 -7
  286. package/dist/utils/dotize.d.ts +0 -26
  287. package/dist/utils/dotize.js +0 -122
  288. package/dist/utils/dotize.js.map +0 -1
  289. package/dist/utils/filter-base-props.d.ts +0 -15
  290. package/dist/utils/filter-base-props.js +0 -45
  291. package/dist/utils/filter-base-props.js.map +0 -1
  292. package/dist/utils/get-display-name.d.ts +0 -7
  293. package/dist/utils/get-display-name.js +0 -10
  294. package/dist/utils/get-display-name.js.map +0 -1
  295. package/dist/utils/hsl-to-rgb.js +0 -38
  296. package/dist/utils/hsl-to-rgb.js.map +0 -1
  297. package/dist/utils/is-dev-env.js +0 -19
  298. package/dist/utils/is-dev-env.js.map +0 -1
  299. package/dist/utils/is-valid-element-type.js +0 -15
  300. package/dist/utils/is-valid-element-type.js.map +0 -1
  301. package/dist/utils/merge-styles.js.map +0 -1
  302. package/dist/utils/mod-attrs.d.ts +0 -8
  303. package/dist/utils/mod-attrs.js +0 -21
  304. package/dist/utils/mod-attrs.js.map +0 -1
  305. package/dist/utils/okhsl-to-rgb.js +0 -296
  306. package/dist/utils/okhsl-to-rgb.js.map +0 -1
  307. package/dist/utils/process-tokens.d.ts +0 -31
  308. package/dist/utils/process-tokens.js +0 -171
  309. package/dist/utils/process-tokens.js.map +0 -1
  310. package/dist/utils/resolve-recipes.d.ts +0 -17
  311. package/dist/utils/resolve-recipes.js +0 -147
  312. package/dist/utils/resolve-recipes.js.map +0 -1
  313. package/dist/utils/selector-transform.js +0 -32
  314. package/dist/utils/selector-transform.js.map +0 -1
  315. package/dist/utils/string.js +0 -8
  316. package/dist/utils/string.js.map +0 -1
  317. package/dist/utils/styles.d.ts +0 -177
  318. package/dist/utils/styles.js +0 -730
  319. package/dist/utils/styles.js.map +0 -1
  320. package/dist/utils/typography.d.ts +0 -36
  321. package/dist/utils/typography.js +0 -53
  322. package/dist/utils/typography.js.map +0 -1
  323. package/dist/utils/warnings.d.ts +0 -16
  324. package/dist/utils/warnings.js +0 -16
  325. package/dist/utils/warnings.js.map +0 -1
  326. package/dist/zero/css-writer.d.ts +0 -45
  327. package/dist/zero/css-writer.js +0 -74
  328. package/dist/zero/css-writer.js.map +0 -1
  329. package/dist/zero/extractor.d.ts +0 -24
  330. package/dist/zero/extractor.js.map +0 -1
  331. package/docs/usage.md +0 -695
@@ -0,0 +1,1920 @@
1
+ import { Et as StyleDetails, G as NoType, M as StyleResult, X as StylesInterface, Y as Styles, _ as KeyframesSteps, a as FontFaceInput, ct as StyleHandler, d as InjectOptions, dt as StyleHandlerResult, f as InjectResult, g as KeyframesResult, ht as StyleValueStateMap, i as FontFaceDescriptors, kt as CSSProperties$1, l as GCOptions, mt as StyleValue, n as CounterStyleDescriptors, nt as CSSMap, o as FunctionDefinition, ot as RawStyleHandler, pt as StylePropValue, st as ResolvedStyleValue, t as CacheMetrics, u as GlobalInjectResult, w as StyleInjectorConfig, y as PropertyOptions } from "./types-JEY8PVYP.js";
2
+ import { b as StyleInjector, p as TastyPluginFactory } from "./config-CZWCzBr6.js";
3
+ import { t as ServerStyleCollector } from "./collector-w4mBj5gd.js";
4
+ import "./merge-styles-VXwJ0Frr.js";
5
+ import { AllHTMLAttributes, CSSProperties, ComponentType, ElementType, ForwardRefExoticComponent, JSX, PropsWithoutRef, ReactNode, RefAttributes } from "react";
6
+ //#region src/utils/color-math.d.ts
7
+ /**
8
+ * Consolidated color conversion math.
9
+ *
10
+ * Single source of truth for all color space conversions used across the
11
+ * library: sRGB gamma, HSL, OKLab, OKLCH, OKHSL, hex parsing, named
12
+ * colors, and CSS string converters.
13
+ *
14
+ * This module has zero internal imports — it is a leaf dependency.
15
+ *
16
+ * Reference: https://bottosson.github.io/posts/oklab/
17
+ */
18
+ type Vec3 = [number, number, number];
19
+ /**
20
+ * HSL to RGB.
21
+ * Algorithm from CSS Color 4 spec.
22
+ *
23
+ * @param h - Hue in degrees (0-360)
24
+ * @param s - Saturation (0-1)
25
+ * @param l - Lightness (0-1)
26
+ * @returns RGB values in 0-255 range (may have fractional values)
27
+ */
28
+ declare function hslToRgbValues(h: number, s: number, l: number): Vec3;
29
+ declare function getNamedColorHex(): Map<string, string>;
30
+ /**
31
+ * Convert hex color string to `rgb()` CSS string.
32
+ * Supports 3, 4, 6, and 8 character hex values (with or without `#`).
33
+ */
34
+ declare function hexToRgb(hex: string): string | null;
35
+ /**
36
+ * Extract RGB values from an `rgb()`/`rgba()` string.
37
+ * Supports comma-separated, space-separated, fractional, percentage,
38
+ * and slash alpha notation.
39
+ *
40
+ * @returns Array of RGB values (0-255 range), converting percentages as needed.
41
+ */
42
+ declare function getRgbValuesFromRgbaString(str: string): number[];
43
+ /**
44
+ * Convert any recognized color string to an `rgb()` CSS string.
45
+ * Handles hex, `okhsl()`, `okhst()`, `hsl()`/`hsla()`, named CSS colors,
46
+ * and `rgb()`/`rgba()` pass-through.
47
+ */
48
+ declare function strToRgb(color: string, _ignoreAlpha?: boolean): string | null | undefined;
49
+ //#endregion
50
+ //#region src/utils/is-selector.d.ts
51
+ /** Check whether a style-object key identifies a nested CSS selector. */
52
+ declare function isSelector(key: string): boolean;
53
+ //#endregion
54
+ //#region src/config-state.d.ts
55
+ /**
56
+ * Minimal configuration state shared by the style engine, zero-runtime
57
+ * extractor, and runtime configuration module. Keeping it independent
58
+ * prevents pure rendering code from importing the full injector graph.
59
+ */
60
+ declare function hasStylesGenerated(): boolean;
61
+ //#endregion
62
+ //#region src/utils/name-prefix.d.ts
63
+ /**
64
+ * Name prefix utilities for generated identifiers.
65
+ *
66
+ * Tasty generates three kinds of identifiers from content hashes:
67
+ * - class names (used in DOM `class` attribute)
68
+ * - keyframe names (used in CSS `animation`)
69
+ * - counter-style names (used in CSS `list-style-type`)
70
+ *
71
+ * All three derive from a single configurable prefix so that an app
72
+ * can namespace every identifier under one string. Discriminator letters
73
+ * (`k`, `c`) keep the three kinds visually distinct in devtools — they
74
+ * are not required for correctness (CSS keeps these in separate
75
+ * namespaces), only for readability.
76
+ *
77
+ * The runtime / SSR / RSC paths must agree on the prefix; otherwise the
78
+ * client-side hash for a given style will not match the server-rendered
79
+ * class and hydration breaks. The zero-runtime build path uses a
80
+ * different default (`'ts'`) so its classes can't collide with runtime
81
+ * (`'t'`) classes when both are loaded on the same page.
82
+ */
83
+ /** Default prefix used by the runtime / SSR / RSC paths. */
84
+ declare const DEFAULT_NAME_PREFIX = "t";
85
+ /** Default prefix used by the zero-runtime (`tastyStatic`) build path. */
86
+ declare const DEFAULT_ZERO_NAME_PREFIX = "ts";
87
+ //#endregion
88
+ //#region src/styles/list.d.ts
89
+ declare const BASE_STYLES: readonly ["display", "font", "preset", "hide", "whiteSpace", "opacity", "transition"];
90
+ declare const POSITION_STYLES: readonly ["gridArea", "order", "gridColumn", "gridRow", "placeSelf", "alignSelf", "justifySelf", "zIndex", "margin", "blockMargin", "inlineMargin", "inset", "blockInset", "inlineInset", "position", "scrollMargin", "blockScrollMargin", "inlineScrollMargin", "scrollPadding", "blockScrollPadding", "inlineScrollPadding"];
91
+ declare const BLOCK_INNER_STYLES: readonly ["padding", "blockPadding", "inlinePadding", "overflow", "scrollbar", "textAlign"];
92
+ declare const BLOCK_OUTER_STYLES: readonly ["border", "blockBorder", "inlineBorder", "radius", "shadow", "outline"];
93
+ declare const BLOCK_STYLES: readonly ["padding", "blockPadding", "inlinePadding", "overflow", "scrollbar", "textAlign", "border", "blockBorder", "inlineBorder", "radius", "shadow", "outline"];
94
+ declare const COLOR_STYLES: readonly ["color", "fill", "fade", "image"];
95
+ declare const TEXT_STYLES: readonly ["textTransform", "fontWeight", "fontStyle"];
96
+ declare const DIMENSION_STYLES: readonly ["width", "height", "blockSize", "inlineSize", "flexBasis", "flexGrow", "flexShrink", "flex"];
97
+ declare const FLOW_STYLES: readonly ["flow", "place", "placeItems", "placeContent", "alignItems", "alignContent", "justifyItems", "justifyContent", "align", "justify", "gap", "columnGap", "rowGap", "gridColumns", "gridRows", "gridTemplate", "gridAreas"];
98
+ declare const CONTAINER_STYLES: readonly ["display", "font", "preset", "hide", "whiteSpace", "opacity", "transition", "color", "fill", "fade", "image", "width", "height", "blockSize", "inlineSize", "flexBasis", "flexGrow", "flexShrink", "flex", "gridArea", "order", "gridColumn", "gridRow", "placeSelf", "alignSelf", "justifySelf", "zIndex", "margin", "blockMargin", "inlineMargin", "inset", "blockInset", "inlineInset", "position", "scrollMargin", "blockScrollMargin", "inlineScrollMargin", "scrollPadding", "blockScrollPadding", "inlineScrollPadding", "padding", "blockPadding", "inlinePadding", "overflow", "scrollbar", "textAlign", "border", "blockBorder", "inlineBorder", "radius", "shadow", "outline", "flow", "place", "placeItems", "placeContent", "alignItems", "alignContent", "justifyItems", "justifyContent", "align", "justify", "gap", "columnGap", "rowGap", "gridColumns", "gridRows", "gridTemplate", "gridAreas"];
99
+ declare const OUTER_STYLES: readonly ["gridArea", "order", "gridColumn", "gridRow", "placeSelf", "alignSelf", "justifySelf", "zIndex", "margin", "blockMargin", "inlineMargin", "inset", "blockInset", "inlineInset", "position", "scrollMargin", "blockScrollMargin", "inlineScrollMargin", "scrollPadding", "blockScrollPadding", "inlineScrollPadding", "width", "height", "blockSize", "inlineSize", "flexBasis", "flexGrow", "flexShrink", "flex", "border", "blockBorder", "inlineBorder", "radius", "shadow", "outline"];
100
+ declare const INNER_STYLES: readonly ["display", "font", "preset", "hide", "whiteSpace", "opacity", "transition", "color", "fill", "fade", "image", "padding", "blockPadding", "inlinePadding", "overflow", "scrollbar", "textAlign", "flow", "place", "placeItems", "placeContent", "alignItems", "alignContent", "justifyItems", "justifyContent", "align", "justify", "gap", "columnGap", "rowGap", "gridColumns", "gridRows", "gridTemplate", "gridAreas"];
101
+ //#endregion
102
+ //#region src/types.d.ts
103
+ /**
104
+ * Extensible interface for theme names.
105
+ * Augment this interface to register project-specific theme names for autocomplete.
106
+ *
107
+ * @example
108
+ * ```typescript
109
+ * declare module '@tenphi/tasty' {
110
+ * interface TastyThemeNames {
111
+ * danger: true;
112
+ * success: true;
113
+ * }
114
+ * }
115
+ * ```
116
+ */
117
+ interface TastyThemeNames {}
118
+ type ThemeNameKey = Extract<keyof TastyThemeNames, string>;
119
+ type ThemeName = [ThemeNameKey] extends [never] ? string : ThemeNameKey;
120
+ /**
121
+ * Extensible interface for custom props added via `configure({ propHandlers })`.
122
+ * Augment it to type those props on every tasty component.
123
+ *
124
+ * @example
125
+ * ```typescript
126
+ * declare module '@tenphi/tasty' {
127
+ * interface TastyCustomProps {
128
+ * glaze: 'soft' | 'strong' | { tone: string; intensity?: number };
129
+ * }
130
+ * }
131
+ * ```
132
+ */
133
+ interface TastyCustomProps {}
134
+ /**
135
+ * Extensible interface for style names promoted via
136
+ * `configure({ baseStyleProps })`. Set each name to `true`; the prop is then typed
137
+ * exactly like the style it names.
138
+ *
139
+ * @example
140
+ * ```typescript
141
+ * declare module '@tenphi/tasty' {
142
+ * interface TastyBaseStylePropNames {
143
+ * radius: true;
144
+ * shadow: true;
145
+ * }
146
+ * }
147
+ * ```
148
+ */
149
+ interface TastyBaseStylePropNames {}
150
+ /**
151
+ * Props contributed by `configure({ baseStyleProps })`, each typed like the style
152
+ * it names. Intersecting with `keyof StylesInterface` makes a name that isn't a
153
+ * real style inert rather than `never`-typed.
154
+ */
155
+ type ExtraBaseStyleProps = { [key in keyof TastyBaseStylePropNames & keyof StylesInterface]?: StylePropValue<StylesInterface[key]>; };
156
+ /** Allowed mod value types */
157
+ type ModValue = boolean | string | number | undefined | null;
158
+ /**
159
+ * Type for element modifiers (mods prop).
160
+ * Can be used as a generic to define known modifiers with autocomplete:
161
+ * @example
162
+ * type ButtonMods = Mods<{
163
+ * loading?: boolean;
164
+ * selected?: boolean;
165
+ * }>;
166
+ */
167
+ type Mods<T extends Record<string, ModValue> = Record<string, ModValue>> = T & Record<string, ModValue>;
168
+ /**
169
+ * Token value: string or number (processed), boolean for special handling, undefined/null (skipped).
170
+ * For color tokens (#name), boolean `true` is converted to `transparent`.
171
+ * For non-color tokens ($name), boolean `true` results in an empty string value.
172
+ * Boolean `false` results in no CSS output (token is skipped).
173
+ */
174
+ type TokenValue = string | number | boolean | undefined | null;
175
+ /**
176
+ * Tokens definition for inline CSS custom properties.
177
+ * - `$name` keys become `--name` CSS properties
178
+ * - `#name` keys become `--name-color` CSS properties
179
+ */
180
+ type Tokens = Record<`$${string}` | `#${string}`, TokenValue>;
181
+ type Caps = 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G' | 'H' | 'I' | 'J' | 'K' | 'L' | 'M' | 'N' | 'O' | 'P' | 'Q' | 'R' | 'S' | 'T' | 'U' | 'V' | 'W' | 'X' | 'Y' | 'Z';
182
+ interface BasePropsWithoutChildren<K extends TagName = TagName> extends Pick<AllHTMLAttributes<HTMLElement>, 'className' | 'role' | 'id'> {
183
+ /** The HTML tag or React component to render as */
184
+ as?: K | ComponentType<any>;
185
+ /** QA ID for e2e testing. An alias for `data-qa` attribute. */
186
+ qa?: string;
187
+ /** QA value for e2e testing. An alias for `data-qaval` attribute. */
188
+ qaVal?: string | number;
189
+ /** Inner element name */
190
+ element?: `${Caps}${string}`;
191
+ /** The style map */
192
+ styles?: Styles;
193
+ /** The list of element modifiers **/
194
+ mods?: Mods;
195
+ /** Whether the element is hidden (`hidden` attribute is set) */
196
+ isHidden?: boolean;
197
+ /** Whether the element is disabled (`disabled` attribute is set) */
198
+ isDisabled?: boolean;
199
+ /** Whether the element is checked (`checked` attribute is set) */
200
+ isChecked?: boolean;
201
+ /** The CSS style map */
202
+ style?: CSSProperties$1 | (CSSProperties$1 & Record<string, string | number | null | undefined>);
203
+ /** User-defined theme for the element. Mapped to `data-theme` attribute. Augment `TastyThemeNames` to register project-specific themes for autocomplete. */
204
+ theme?: ThemeName | (string & {});
205
+ /** CSS custom property tokens rendered as inline styles */
206
+ tokens?: Tokens;
207
+ }
208
+ interface BaseProps<K extends TagName = TagName> extends BasePropsWithoutChildren<K>, Pick<AllHTMLAttributes<HTMLElementTagNameMap[K]>, 'children'> {}
209
+ interface AllBaseProps<K extends TagName = TagName> extends BaseProps<K>, Omit<AllHTMLAttributes<HTMLElementTagNameMap[K]>, 'style' | 'disabled' | 'hidden' | 'css' | 'content' | 'translate' | 'as' | 'form' | 'bgcolor' | 'background' | 'align' | 'border' | 'color' | 'height' | 'size' | 'width' | 'prefix'> {}
210
+ type BaseStyleProps = Pick<Styles, (typeof BASE_STYLES)[number]>;
211
+ type PositionStyleProps = Pick<Styles, (typeof POSITION_STYLES)[number]>;
212
+ type BlockStyleProps = Pick<Styles, (typeof BLOCK_STYLES)[number]>;
213
+ type BlockInnerStyleProps = Pick<Styles, (typeof BLOCK_INNER_STYLES)[number]>;
214
+ type BlockOuterStyleProps = Pick<Styles, (typeof BLOCK_OUTER_STYLES)[number]>;
215
+ type ColorStyleProps = Pick<Styles, (typeof COLOR_STYLES)[number]>;
216
+ type TextStyleProps = Pick<Styles, (typeof TEXT_STYLES)[number]>;
217
+ type DimensionStyleProps = Pick<Styles, (typeof DIMENSION_STYLES)[number]>;
218
+ type FlowStyleProps = Pick<Styles, (typeof FLOW_STYLES)[number]>;
219
+ type ContainerStyleProps = Pick<Styles, (typeof CONTAINER_STYLES)[number]>;
220
+ type OuterStyleProps = Pick<Styles, (typeof OUTER_STYLES)[number]>;
221
+ type InnerStyleProps = Pick<Styles, (typeof INNER_STYLES)[number]>;
222
+ interface ShortGridStyles {
223
+ template?: Styles['gridTemplate'];
224
+ columns?: Styles['gridColumns'];
225
+ rows?: Styles['gridRows'];
226
+ areas?: Styles['gridAreas'];
227
+ }
228
+ type TagName = keyof HTMLElementTagNameMap;
229
+ /**
230
+ * Configuration type for tasty.config.ts files.
231
+ * Used by the Tasty VSCode extension for validation and autocomplete.
232
+ *
233
+ * @example
234
+ * ```typescript
235
+ * import type { TastyExtensionConfig } from '@tenphi/tasty';
236
+ *
237
+ * const config: TastyExtensionConfig = {
238
+ * tokens: ['#primary', '#danger', '$spacing'],
239
+ * units: ['x', 'r', 'bw'],
240
+ * states: ['@mobile', '@tablet', '@dark'],
241
+ * presets: ['h1', 'h2', 't1', 't2'],
242
+ * };
243
+ *
244
+ * export default config;
245
+ * ```
246
+ */
247
+ interface TastyExtensionConfig {
248
+ /**
249
+ * Extend another config file. Path is relative to this config file.
250
+ * The extended config is merged first, then this config's values are added.
251
+ * @example '../tasty.config.ts'
252
+ */
253
+ extends?: string;
254
+ /**
255
+ * Valid token names for validation and autocomplete.
256
+ * Use # prefix for colors, $ prefix for custom properties.
257
+ * Set to `false` to disable token validation (overrides parent).
258
+ * @example ['#primary', '#danger', '$spacing', '$gap']
259
+ */
260
+ tokens?: false | string[];
261
+ /**
262
+ * Valid custom unit names.
263
+ * Set to `false` to disable unit validation (overrides parent).
264
+ * @example ['x', 'r', 'bw', 'cols']
265
+ */
266
+ units?: false | string[];
267
+ /**
268
+ * Valid custom function names.
269
+ * Set to `false` to disable function validation (overrides parent).
270
+ * @example ['clamp', 'double']
271
+ */
272
+ functions?: false | string[];
273
+ /**
274
+ * State alias names for autocomplete.
275
+ * Must start with @ prefix.
276
+ * @example ['@mobile', '@tablet', '@dark']
277
+ */
278
+ states?: string[];
279
+ /**
280
+ * Valid preset names for the `preset` style property.
281
+ * Tasty has no built-in presets - they are project-specific.
282
+ * @example ['h1', 'h2', 'h3', 't1', 't2', 't3', 'tag']
283
+ */
284
+ presets?: string[];
285
+ /**
286
+ * Custom style property names added via configure({ handlers }).
287
+ * Suppresses "unknown property" warnings for these names.
288
+ * @example ['myGradient', 'customLayout', 'brandBorder']
289
+ */
290
+ styles?: string[];
291
+ /**
292
+ * Descriptions for presets, shown on hover in the extension.
293
+ * Maps preset names to human-readable descriptions.
294
+ * @example { h1: 'Heading 1 (36px/44px, semibold)', t1: 'Text large (18px/24px)' }
295
+ */
296
+ presetDescriptions?: Record<string, string>;
297
+ /**
298
+ * Descriptions for state aliases, shown on hover in the extension.
299
+ * Maps state names to human-readable descriptions.
300
+ * @example { '@mobile': 'Mobile viewport (width < 768px)' }
301
+ */
302
+ stateDescriptions?: Record<string, string>;
303
+ }
304
+ //#endregion
305
+ //#region src/tasty.d.ts
306
+ type StyleList = readonly (keyof { [key in keyof StylesInterface]: StylesInterface[key]; })[];
307
+ /** Type descriptor for a single mod prop: a JS constructor or an enum array. */
308
+ type ModPropDef = BooleanConstructor | StringConstructor | NumberConstructor | readonly string[];
309
+ /** Array form: list of mod key names (types default to ModValue). */
310
+ type ModPropsList = readonly string[];
311
+ /** Object form: map of mod key names to type descriptors. */
312
+ type ModPropsMap = Readonly<Record<string, ModPropDef>>;
313
+ /** Either array or object form accepted by `modProps` option. */
314
+ type ModPropsInput = ModPropsList | ModPropsMap;
315
+ /** Resolve a single ModPropDef to its TypeScript type. */
316
+ type ResolveModPropDef<T> = T extends BooleanConstructor ? boolean : T extends StringConstructor ? string : T extends NumberConstructor ? number : T extends readonly (infer U)[] ? U : ModValue;
317
+ /** Resolve an entire `modProps` definition to the component prop types it adds. */
318
+ type ResolveModProps<M extends ModPropsInput> = M extends readonly (infer K)[] ? Partial<Record<K & string, ModValue>> : M extends Record<string, ModPropDef> ? { [key in keyof M & string]?: ResolveModPropDef<M[key]>; } : {};
319
+ /** A token key with `$` or `#` prefix. */
320
+ type TokenPropKey = `$${string}` | `#${string}`;
321
+ /** Array form: list of prop names. Names ending in `Color` map to `#` color tokens. */
322
+ type TokenPropsList = readonly string[];
323
+ /** Object form: prop name -> token key with explicit `$`/`#` prefix. */
324
+ type TokenPropsMap = Readonly<Record<string, TokenPropKey>>;
325
+ /** Either array or object form accepted by `tokenProps` option. */
326
+ type TokenPropsInput = TokenPropsList | TokenPropsMap;
327
+ /** Resolve a `tokenProps` definition to the component prop types it adds. */
328
+ type ResolveTokenProps<TP extends TokenPropsInput> = TP extends readonly (infer K)[] ? Partial<Record<K & string, TokenValue>> : TP extends Record<string, TokenPropKey> ? Partial<Record<keyof TP & string, TokenValue>> : {};
329
+ type AnyProps = Record<string, any>;
330
+ type PropsWithStyles = {
331
+ styles?: Styles;
332
+ } & Omit<Record<string, any>, 'styles'>;
333
+ type VariantMap = Record<string, Styles>;
334
+ interface WithVariant<V extends VariantMap> {
335
+ variant?: keyof V;
336
+ }
337
+ /**
338
+ * Definition for a sub-element. Can be either:
339
+ * - A tag name string (e.g., 'div', 'span')
340
+ * - An object with configuration options
341
+ */
342
+ type SubElementDefinition<Tag extends keyof JSX.IntrinsicElements = 'div'> = Tag | {
343
+ as?: Tag;
344
+ qa?: string;
345
+ qaVal?: string | number;
346
+ };
347
+ /**
348
+ * Map of sub-element definitions.
349
+ * Keys become the sub-component names (e.g., { Icon: 'span' } -> Component.Icon)
350
+ */
351
+ type ElementsDefinition = Record<string, SubElementDefinition<keyof JSX.IntrinsicElements>>;
352
+ /**
353
+ * Resolves the tag from a SubElementDefinition
354
+ */
355
+ type ResolveElementTag<T extends SubElementDefinition<any>> = T extends string ? T : T extends {
356
+ as?: infer Tag;
357
+ } ? Tag extends keyof JSX.IntrinsicElements ? Tag : 'div' : 'div';
358
+ /**
359
+ * Props for sub-element components.
360
+ * Combines HTML attributes with tasty-specific props (qa, qaVal, mods, tokens, isDisabled, etc.)
361
+ */
362
+ type SubElementProps<Tag extends keyof JSX.IntrinsicElements = 'div'> = Omit<JSX.IntrinsicElements[Tag], 'ref' | 'color' | 'content' | 'translate'> & {
363
+ qa?: string;
364
+ qaVal?: string | number;
365
+ mods?: Mods;
366
+ tokens?: Tokens;
367
+ isDisabled?: boolean;
368
+ isHidden?: boolean;
369
+ isChecked?: boolean;
370
+ };
371
+ /**
372
+ * Generates the sub-element component types from an ElementsDefinition
373
+ */
374
+ type SubElementComponents<E extends ElementsDefinition> = { [K in keyof E]: ForwardRefExoticComponent<PropsWithoutRef<SubElementProps<ResolveElementTag<E[K]>>> & RefAttributes<ResolveElementTag<E[K]> extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[ResolveElementTag<E[K]>] : Element$1>>; };
375
+ /**
376
+ * Base type containing common properties shared between TastyProps and TastyElementOptions.
377
+ * Separated to avoid code duplication while allowing different type constraints.
378
+ */
379
+ type TastyBaseProps<K extends StyleList, V extends VariantMap, E extends ElementsDefinition = Record<string, never>, M extends ModPropsInput = readonly never[], TP extends TokenPropsInput = readonly never[]> = {
380
+ /** Default styles of the element. */
381
+ styles?: Styles;
382
+ /** The list of styles that can be provided by props */
383
+ styleProps?: K;
384
+ /** Modifier keys exposed as top-level component props (array or typed object form). */
385
+ modProps?: M;
386
+ /** Token keys exposed as top-level component props (array or typed object form). */
387
+ tokenProps?: TP;
388
+ element?: BaseProps['element'];
389
+ variants?: V;
390
+ /** Default tokens for inline CSS custom properties */
391
+ tokens?: Tokens;
392
+ /** Sub-element definitions for compound components */
393
+ elements?: E;
394
+ } & Pick<BaseProps, 'qa' | 'qaVal'> & WithVariant<V>;
395
+ type TastyProps<K extends StyleList, V extends VariantMap, E extends ElementsDefinition = Record<string, never>, DefaultProps = AnyProps, M extends ModPropsInput = readonly never[], TP extends TokenPropsInput = readonly never[]> = TastyBaseProps<K, V, E, M, TP> & {
396
+ /** The tag name of the element or a React component. */
397
+ as?: string | ComponentType<any>;
398
+ } & Partial<Omit<DefaultProps, 'as' | 'styles' | 'styleProps' | 'modProps' | 'tokenProps' | 'tokens'>>;
399
+ /**
400
+ * Resolves the props of a polymorphic `as` value (intrinsic tag or component).
401
+ * - For intrinsic tags (`'div'`, `'button'`, ...): returns `JSX.IntrinsicElements[Tag]`.
402
+ * - For React component types: returns the component's own props.
403
+ * - Falls back to an empty record for anything else.
404
+ */
405
+ type ResolveAsProps<AsType extends ElementType> = AsType extends keyof JSX.IntrinsicElements ? JSX.IntrinsicElements[AsType] : AsType extends ComponentType<infer P> ? P : Record<string, never>;
406
+ /**
407
+ * TastyElementOptions is used for the element-creation overload of tasty().
408
+ * It includes an `AsType` generic that allows TypeScript to infer the correct
409
+ * element type from the `as` prop — both for intrinsic tags and for React
410
+ * components (so the wrapped component's prop API is preserved).
411
+ *
412
+ * Note: Uses a separate index signature with `unknown` instead of an `any`
413
+ * record to ensure strict type checking for styles.
414
+ */
415
+ type TastyElementOptions<K extends StyleList, V extends VariantMap, E extends ElementsDefinition = Record<string, never>, AsType extends ElementType = 'div', M extends ModPropsInput = readonly never[], TP extends TokenPropsInput = readonly never[]> = TastyBaseProps<K, V, E, M, TP> & {
416
+ /** The tag name of the element or a React component. */
417
+ as?: AsType;
418
+ } & Record<string, unknown>;
419
+ type AllBasePropsWithMods<K extends StyleList, M extends ModPropsInput = readonly never[], TP extends TokenPropsInput = readonly never[]> = AllBaseProps & { [key in K[number]]?: StyleValue<StylesInterface[key]> | StyleValueStateMap<StylesInterface[key]>; } & BaseStyleProps & ExtraBaseStyleProps & Partial<TastyCustomProps> & ResolveModProps<M> & ResolveTokenProps<TP>;
420
+ /**
421
+ * Props consumed by Tasty rather than forwarded to the `as` component.
422
+ * Event handlers are resolved from JSX.IntrinsicElements or the component's own props.
423
+ */
424
+ type TastySpecificKeys = keyof BaseStyleProps | 'as' | 'qa' | 'qaVal' | 'element' | 'styles' | 'mods' | 'isHidden' | 'isDisabled' | 'isChecked' | 'style' | 'theme' | 'tokens' | 'ref';
425
+ /** Extract prop key names from a ModPropsInput (array elements or object keys). */
426
+ type ModPropsKeys<M extends ModPropsInput> = M extends readonly (infer K)[] ? K & string : keyof M & string;
427
+ /** Extract prop key names from a TokenPropsInput (array elements or object keys). */
428
+ type TokenPropsKeys<TP extends TokenPropsInput> = TP extends readonly (infer K)[] ? K & string : keyof TP & string;
429
+ /**
430
+ * Props type for tasty elements that combines:
431
+ * - AllBasePropsWithMods for style props with strict tokens type
432
+ * - HTML attributes for flexibility (properly typed based on `as`)
433
+ * - Variant support
434
+ *
435
+ * AllBasePropsWithMods carries generic AllHTMLAttributes which can conflict
436
+ * with element-specific types (e.g. `src` is `string` in AllHTMLAttributes but
437
+ * `string | Blob` in ImgHTMLAttributes, or the custom props on a third-party
438
+ * component like Next.js `Link`). To avoid intersection-narrowing, we Omit
439
+ * element-specific keys from AllBasePropsWithMods (keeping TastySpecificKeys,
440
+ * style props, mod props, and token props) and let the resolved `as` props
441
+ * supply the authoritative attribute types. The `AllHTMLAttributes<HTMLElement>`
442
+ * baseline is preserved so generic HTML attributes still work even when `as`
443
+ * is a component type with a narrower prop API.
444
+ */
445
+ type TastyElementProps<K extends StyleList, V extends VariantMap, AsType extends ElementType = 'div', M extends ModPropsInput = readonly never[], TP extends TokenPropsInput = readonly never[]> = Omit<AllBasePropsWithMods<K, M, TP>, Exclude<keyof ResolveAsProps<AsType>, TastySpecificKeys | keyof TastyCustomProps | keyof ExtraBaseStyleProps | K[number] | ModPropsKeys<M> | TokenPropsKeys<TP>>> & WithVariant<V> & Omit<Omit<AllHTMLAttributes<HTMLElement>, keyof ResolveAsProps<AsType>> & ResolveAsProps<AsType>, TastySpecificKeys | keyof TastyCustomProps | keyof ExtraBaseStyleProps | K[number] | ModPropsKeys<M> | TokenPropsKeys<TP>>;
446
+ type TastyComponentPropsWithDefaults<Props extends PropsWithStyles, DefaultProps extends Partial<Props>> = keyof DefaultProps extends never ? Props : { [key in Extract<keyof Props, keyof DefaultProps>]?: Props[key]; } & { [key in keyof Omit<Props, keyof DefaultProps>]: Props[key]; };
447
+ /**
448
+ * The component type returned by the `tasty(options)` element-factory overload.
449
+ *
450
+ * It's a regular React forward-ref component whose props are typed from the
451
+ * factory-time `as` value. Polymorphism is at factory time: each call to
452
+ * `tasty({ as: X })` produces a component whose prop API includes `X`'s own
453
+ * props (so `tasty({ as: NextLink })` exposes `href`, `replace`, `prefetch`,
454
+ * etc.) alongside the Tasty-specific props (`mods`, `tokens`, `styleProps`,
455
+ * `modProps`, `tokenProps`).
456
+ *
457
+ * Note: a render-time `<X as={SomeComponent} />` does not re-infer props from
458
+ * `SomeComponent`; create another `tasty({ as: SomeComponent })` for that.
459
+ */
460
+ type TastyPolymorphicComponent<DefaultAs extends ElementType, K extends StyleList, V extends VariantMap, M extends ModPropsInput, TP extends TokenPropsInput> = ForwardRefExoticComponent<PropsWithoutRef<TastyElementProps<K, V, DefaultAs, M, TP>> & RefAttributes<unknown>>;
461
+ declare function tasty<K extends StyleList = readonly never[], V extends VariantMap = VariantMap, E extends ElementsDefinition = Record<string, never>, AsType extends ElementType = 'div', M extends ModPropsInput = readonly never[], TP extends TokenPropsInput = readonly never[]>(options: TastyElementOptions<K, V, E, AsType, M, TP>, secondArg?: never): TastyPolymorphicComponent<AsType, K, V, M, TP> & SubElementComponents<E>;
462
+ declare function tasty<Props extends PropsWithStyles, DefaultProps extends Partial<Props> = Partial<Props>, K extends StyleList = readonly never[], V extends VariantMap = VariantMap, E extends ElementsDefinition = Record<string, never>, M extends ModPropsInput = readonly never[], TP extends TokenPropsInput = readonly never[]>(Component: ComponentType<Props>, options?: TastyProps<K, V, E, Props, M, TP>): ComponentType<TastyComponentPropsWithDefaults<Props, DefaultProps>>;
463
+ declare const Element$1: TastyPolymorphicComponent<"div", readonly never[], VariantMap, readonly never[], readonly never[]> & SubElementComponents<Record<string, never>>;
464
+ //#endregion
465
+ //#region src/hooks/useStyles.d.ts
466
+ interface UseStylesResult {
467
+ /**
468
+ * Generated className(s) to apply to the element.
469
+ * Can be empty string if no styles are provided.
470
+ * With chunking enabled, may contain multiple space-separated class names.
471
+ */
472
+ className: string;
473
+ }
474
+ /**
475
+ * Hook to generate CSS classes from Tasty styles.
476
+ * Thin wrapper around `computeStyles()` that adds React context-based
477
+ * SSR collector discovery for backward compatibility with TastyRegistry.
478
+ *
479
+ * For hook-free usage (e.g. in server components), use `computeStyles()` directly.
480
+ *
481
+ * @example
482
+ * ```tsx
483
+ * function MyComponent() {
484
+ * const { className } = useStyles({
485
+ * padding: '2x',
486
+ * fill: '#purple',
487
+ * radius: '1r',
488
+ * });
489
+ *
490
+ * return <div className={className}>Styled content</div>;
491
+ * }
492
+ * ```
493
+ */
494
+ declare function useStyles(styles: Styles | undefined, options?: {
495
+ root?: Document | ShadowRoot;
496
+ }): UseStylesResult;
497
+ //#endregion
498
+ //#region src/hooks/useGlobalStyles.d.ts
499
+ interface UseGlobalStylesOptions {
500
+ /**
501
+ * Stable identifier for update tracking (client-only). When provided,
502
+ * changing the styles will dispose the previous injection and inject the
503
+ * new one. Without an id, the selector is used as the slot key.
504
+ * In RSC mode, renders are single-pass so update tracking does not apply.
505
+ */
506
+ id?: string;
507
+ /** Shadow root or document to inject into (client only). */
508
+ root?: Document | ShadowRoot;
509
+ }
510
+ /**
511
+ * Inject global styles for a given selector.
512
+ * Useful for styling elements by selector without generating classNames.
513
+ *
514
+ * SSR-aware: when a ServerStyleCollector is available, CSS is collected
515
+ * during the render phase instead of being injected into the DOM.
516
+ *
517
+ * Works in all environments: client, SSR with collector, and React Server Components.
518
+ *
519
+ * Injected styles are permanent — they are not cleaned up on component unmount.
520
+ * Use the `id` option for update tracking when styles change over the
521
+ * component lifecycle.
522
+ *
523
+ * Update tracking is per-slot and per-root: a slot (`id`, or the selector when
524
+ * no `id` is given) holds exactly one injection per `root`. Changing the styles
525
+ * replaces it; rendering styles that produce no CSS clears it.
526
+ *
527
+ * @param selector - CSS selector to apply styles to (e.g., '.my-class', ':root', 'body')
528
+ * @param styles - Tasty styles object
529
+ * @param options - Optional settings including `id` for update tracking
530
+ *
531
+ * @example
532
+ * ```tsx
533
+ * function MyComponent() {
534
+ * useGlobalStyles('.card', {
535
+ * padding: '2x',
536
+ * radius: '1r',
537
+ * fill: '#white',
538
+ * });
539
+ *
540
+ * return <div className="card">Content</div>;
541
+ * }
542
+ * ```
543
+ */
544
+ declare function useGlobalStyles(selector: string, styles?: Styles, options?: UseGlobalStylesOptions): void;
545
+ //#endregion
546
+ //#region src/hooks/useRawCSS.d.ts
547
+ interface UseRawCSSOptions {
548
+ /**
549
+ * Shadow root or document to inject into. Update tracking is per-root: the
550
+ * same id in two roots holds a separate injection in each.
551
+ */
552
+ root?: Document | ShadowRoot;
553
+ /**
554
+ * Stable identifier for update tracking (client-only). When provided,
555
+ * changing the CSS content will dispose the previous injection and inject
556
+ * the new one. Without an id, deduplication is purely content-based (same
557
+ * CSS is injected only once). In RSC mode, renders are single-pass so
558
+ * update tracking does not apply.
559
+ */
560
+ id?: string;
561
+ }
562
+ declare function useRawCSS(css: string, options?: UseRawCSSOptions): void;
563
+ declare function useRawCSS(factory: () => string, deps: readonly unknown[], options?: UseRawCSSOptions): void;
564
+ //#endregion
565
+ //#region src/hooks/useKeyframes.d.ts
566
+ interface UseKeyframesOptions {
567
+ name?: string;
568
+ root?: Document | ShadowRoot;
569
+ }
570
+ /**
571
+ * Inject CSS @keyframes and return the generated animation name.
572
+ * Deduplicates by content — identical steps always return the same name.
573
+ *
574
+ * Works in all environments: client, SSR with collector, and React Server Components.
575
+ *
576
+ * Passing `name` claims a slot owned by that one call site (like `useRawCSS`'s
577
+ * `id`): when its steps change, the previous injection is disposed and the name
578
+ * is reused, so the rules don't accumulate. Anonymous keyframes are permanent
579
+ * and shared by content.
580
+ *
581
+ * @example Basic usage - steps object is the dependency
582
+ * ```tsx
583
+ * function MyComponent() {
584
+ * const bounce = useKeyframes({
585
+ * '0%': { transform: 'scale(1)' },
586
+ * '50%': { transform: 'scale(1.1)' },
587
+ * '100%': { transform: 'scale(1)' },
588
+ * });
589
+ *
590
+ * return <div style={{ animation: `${bounce} 1s infinite` }}>Bouncing</div>;
591
+ * }
592
+ * ```
593
+ *
594
+ * @example With custom name
595
+ * ```tsx
596
+ * function MyComponent() {
597
+ * const fadeIn = useKeyframes(
598
+ * { from: { opacity: 0 }, to: { opacity: 1 } },
599
+ * { name: 'fadeIn' }
600
+ * );
601
+ *
602
+ * return <div style={{ animation: `${fadeIn} 0.3s ease-out` }}>Fading in</div>;
603
+ * }
604
+ * ```
605
+ *
606
+ * @example Factory function with dependencies
607
+ * ```tsx
608
+ * function MyComponent({ scale }: { scale: number }) {
609
+ * const pulse = useKeyframes(
610
+ * () => ({
611
+ * '0%': { transform: 'scale(1)' },
612
+ * '100%': { transform: `scale(${scale})` },
613
+ * }),
614
+ * [scale]
615
+ * );
616
+ *
617
+ * return <div style={{ animation: `${pulse} 1s infinite` }}>Pulsing</div>;
618
+ * }
619
+ * ```
620
+ */
621
+ declare function useKeyframes(steps: KeyframesSteps, options?: UseKeyframesOptions): string;
622
+ declare function useKeyframes(factory: () => KeyframesSteps, deps: readonly unknown[], options?: UseKeyframesOptions): string;
623
+ //#endregion
624
+ //#region src/hooks/useProperty.d.ts
625
+ /**
626
+ * Options for {@link useProperty}. Extends the shared {@link PropertyOptions}
627
+ * (which is `PropertyDefinition` plus an optional injection `root`).
628
+ */
629
+ type UsePropertyOptions = PropertyOptions;
630
+ /**
631
+ * Register a CSS @property custom property.
632
+ * This enables advanced features like animating custom properties.
633
+ *
634
+ * Note: @property rules are global and persistent once defined.
635
+ * The function ensures the property is only registered once per root.
636
+ *
637
+ * Accepts tasty token syntax for the property name:
638
+ * - `$name` → defines `--name`
639
+ * - `#name` → defines `--name-color` (auto-sets syntax: '<color>', defaults initialValue: 'transparent')
640
+ * - `--name` → defines `--name` (legacy format)
641
+ *
642
+ * Works in all environments: client, SSR with collector, and React Server Components.
643
+ *
644
+ * @param name - The property token ($name, #name) or CSS property name (--name)
645
+ * @param options - Property configuration
646
+ *
647
+ * @example Basic property with token syntax
648
+ * ```tsx
649
+ * function Spinner() {
650
+ * useProperty('$rotation', {
651
+ * syntax: '<angle>',
652
+ * inherits: false,
653
+ * initialValue: '0deg',
654
+ * });
655
+ *
656
+ * return <div className="spinner" />;
657
+ * }
658
+ * ```
659
+ *
660
+ * @example Color property with token syntax (auto-sets syntax)
661
+ * ```tsx
662
+ * function MyComponent() {
663
+ * useProperty('#theme', {
664
+ * initialValue: 'red', // syntax: '<color>' is auto-set
665
+ * });
666
+ *
667
+ * // Now --theme-color can be animated with CSS transitions
668
+ * return <div style={{ '--theme-color': 'blue' } as React.CSSProperties}>Colored</div>;
669
+ * }
670
+ * ```
671
+ *
672
+ * @example Legacy format (still supported)
673
+ * ```tsx
674
+ * function ResizableBox() {
675
+ * useProperty('--box-size', {
676
+ * syntax: '<length>',
677
+ * initialValue: '100px',
678
+ * });
679
+ *
680
+ * return <div style={{ width: 'var(--box-size)' }} />;
681
+ * }
682
+ * ```
683
+ */
684
+ declare function useProperty(name: string, options?: UsePropertyOptions): void;
685
+ //#endregion
686
+ //#region src/hooks/useFontFace.d.ts
687
+ interface UseFontFaceOptions {
688
+ root?: Document | ShadowRoot;
689
+ }
690
+ /**
691
+ * Inject CSS @font-face rules.
692
+ * Permanent — no cleanup on unmount. Deduplicates by content hash.
693
+ *
694
+ * Works in all environments: client, SSR with collector, and React Server Components.
695
+ *
696
+ * @param family - The font-family name
697
+ * @param input - Single descriptor object or array of descriptors (for multiple weights/styles)
698
+ * @param options - Optional settings (e.g. Shadow DOM root)
699
+ *
700
+ * @example Single weight
701
+ * ```tsx
702
+ * function App() {
703
+ * useFontFace('Brand Sans', {
704
+ * src: 'url("/fonts/brand-sans.woff2") format("woff2")',
705
+ * fontWeight: '400 700',
706
+ * fontDisplay: 'swap',
707
+ * });
708
+ *
709
+ * return <div style={{ fontFamily: '"Brand Sans", sans-serif' }}>Hello</div>;
710
+ * }
711
+ * ```
712
+ *
713
+ * @example Multiple weights
714
+ * ```tsx
715
+ * function App() {
716
+ * useFontFace('Brand Sans', [
717
+ * { src: 'url("/fonts/brand-regular.woff2") format("woff2")', fontWeight: 400, fontDisplay: 'swap' },
718
+ * { src: 'url("/fonts/brand-bold.woff2") format("woff2")', fontWeight: 700, fontDisplay: 'swap' },
719
+ * ]);
720
+ *
721
+ * return <div style={{ fontFamily: '"Brand Sans", sans-serif' }}>Hello</div>;
722
+ * }
723
+ * ```
724
+ */
725
+ declare function useFontFace(family: string, input: FontFaceInput, options?: UseFontFaceOptions): void;
726
+ //#endregion
727
+ //#region src/hooks/useCounterStyle.d.ts
728
+ interface UseCounterStyleOptions {
729
+ name?: string;
730
+ root?: Document | ShadowRoot;
731
+ }
732
+ /**
733
+ * Inject a CSS @counter-style rule and return the generated name.
734
+ * Permanent — no cleanup on unmount. Deduplicates by name.
735
+ *
736
+ * Works in all environments: client, SSR with collector, and React Server Components.
737
+ *
738
+ * @example Basic usage
739
+ * ```tsx
740
+ * function EmojiList() {
741
+ * const styleName = useCounterStyle({
742
+ * system: 'cyclic',
743
+ * symbols: '"👍"',
744
+ * suffix: '" "',
745
+ * }, { name: 'thumbs' });
746
+ *
747
+ * return (
748
+ * <ol style={{ listStyleType: styleName }}>
749
+ * <li>First</li>
750
+ * <li>Second</li>
751
+ * </ol>
752
+ * );
753
+ * }
754
+ * ```
755
+ *
756
+ */
757
+ declare function useCounterStyle(descriptors: CounterStyleDescriptors, options?: UseCounterStyleOptions): string;
758
+ //#endregion
759
+ //#region src/hooks/useFunction.d.ts
760
+ interface UseFunctionOptions {
761
+ /** Shadow root or document to inject into. */
762
+ root?: Document | ShadowRoot;
763
+ }
764
+ /**
765
+ * Register a CSS @function (custom function).
766
+ *
767
+ * @function rules are global and persistent once defined. The hook ensures the
768
+ * function is only registered once per root (deduplicated by function name).
769
+ *
770
+ * Accepts tasty token syntax for the function name:
771
+ * - `$$name` → defines `--name` (matches the call site `$$name(...)`)
772
+ * - `$name` / `--name` → also accepted
773
+ *
774
+ * Works in all environments: client, SSR with collector, and React Server Components.
775
+ *
776
+ * @param name - The function name token (`$$name`, `$name`, or `--name`)
777
+ * @param definition - Function definition (args, returns, result, local vars)
778
+ *
779
+ * Call the function through the Tasty DSL, not a raw `style` prop: an inline
780
+ * `style` value reaches the browser unparsed, so the `$$name(...)` sugar is never
781
+ * expanded and `polyfills.functions` cannot rewrite it either.
782
+ *
783
+ * @example
784
+ * ```tsx
785
+ * const Box = tasty({ styles: { marginTop: '$$negative(10px)' } });
786
+ *
787
+ * function Layout() {
788
+ * useFunction('$$negative', { args: ['$value'], result: '(-1 * $value)' });
789
+ * return <Box />;
790
+ * }
791
+ * ```
792
+ */
793
+ declare function useFunction(name: string, definition: FunctionDefinition, options?: UseFunctionOptions): void;
794
+ //#endregion
795
+ //#region src/batch-provider.d.ts
796
+ interface TastyBatchProviderProps {
797
+ children?: ReactNode;
798
+ }
799
+ /**
800
+ * Opens a *batch window* for the commit it renders in, so `batchInjection`
801
+ * can defer stylesheet writes without ever letting a layout effect measure an
802
+ * unstyled element.
803
+ *
804
+ * Every `insertRule()` on a live sheet invalidates style for that sheet's
805
+ * scope. When components inject during React's render phase while others read
806
+ * layout in the same pass, the two interleave and the browser recalculates
807
+ * style between every injection. Batching collapses that into one invalidation
808
+ * per flush — but only if the flush happens before anything can measure.
809
+ *
810
+ * ```
811
+ * provider renders -> window OPEN
812
+ * children render -> injections queued
813
+ * provider insertionEffect -> FLUSH, window CLOSED
814
+ * layout effects run -> rules are in the sheet
815
+ * ```
816
+ *
817
+ * `useInsertionEffect` runs in React's mutation phase, after every render in
818
+ * the commit and before any `useLayoutEffect` — which is exactly why React
819
+ * added it for CSS-in-JS libraries. Effects fire child-first, so this
820
+ * provider's runs after every descendant's and still before all layout
821
+ * effects.
822
+ *
823
+ * A commit that does not re-render this provider gets no window, and those
824
+ * injections are written synchronously instead. That is the point: turning
825
+ * `batchInjection: true` on can only ever make injection cheaper, never make a
826
+ * measurement wrong. It also means batching applies to commits this provider
827
+ * takes part in, so mount it as high in the tree as you can.
828
+ *
829
+ * Requires `configure({ batchInjection: true })`; without it this component
830
+ * only renders its children. `batchInjection: 'always'` does not need the
831
+ * provider at all — see that option's docs for the trade-off it accepts.
832
+ *
833
+ * @example
834
+ * ```tsx
835
+ * configure({ batchInjection: true });
836
+ *
837
+ * createRoot(el).render(
838
+ * <TastyBatchProvider>
839
+ * <App />
840
+ * </TastyBatchProvider>,
841
+ * );
842
+ * ```
843
+ */
844
+ declare function TastyBatchProvider({ children }: TastyBatchProviderProps): ReactNode;
845
+ //#endregion
846
+ //#region src/utils/get-display-name.d.ts
847
+ declare function getDisplayName<T>(Component: ElementType<T>, fallbackName?: string): string;
848
+ //#endregion
849
+ //#region src/index.d.ts
850
+ declare module './utils/css-types' {
851
+ interface CSSProperties extends CSSProperties {}
852
+ }
853
+ //#endregion
854
+ //#region src/plugins/okhsl-plugin.d.ts
855
+ /**
856
+ * The okhsl function handler for tasty parser.
857
+ * Receives parsed style groups and returns an RGB color string.
858
+ */
859
+ declare const okhslFunction: (groups: StyleDetails[]) => string;
860
+ /**
861
+ * OKHSL Plugin for Tasty.
862
+ *
863
+ * Adds support for the `okhsl()` color function in tasty styles.
864
+ *
865
+ * @example
866
+ * ```ts
867
+ * import { configure } from '@tenphi/tasty';
868
+ * import { okhslPlugin } from '@tenphi/tasty';
869
+ *
870
+ * configure({
871
+ * plugins: [okhslPlugin()],
872
+ * });
873
+ *
874
+ * // Now you can use okhsl in styles:
875
+ * const Box = tasty({
876
+ * styles: {
877
+ * fill: 'okhsl(240 50% 50%)',
878
+ * },
879
+ * });
880
+ * ```
881
+ */
882
+ declare const okhslPlugin: TastyPluginFactory;
883
+ //#endregion
884
+ //#region src/plugins/okhst-plugin.d.ts
885
+ /**
886
+ * The okhst function handler for tasty parser.
887
+ * Receives parsed style groups and returns an RGB color string.
888
+ */
889
+ declare const okhstFunction: (groups: StyleDetails[]) => string;
890
+ /**
891
+ * OKHST Plugin for Tasty.
892
+ *
893
+ * Adds support for the `okhst()` color function in tasty styles.
894
+ *
895
+ * @example
896
+ * ```ts
897
+ * import { configure } from '@tenphi/tasty';
898
+ * import { okhstPlugin } from '@tenphi/tasty';
899
+ *
900
+ * configure({
901
+ * plugins: [okhstPlugin()],
902
+ * });
903
+ *
904
+ * // Now you can use okhst in styles:
905
+ * const Box = tasty({
906
+ * styles: {
907
+ * fill: 'okhst(240 50% 50%)',
908
+ * },
909
+ * });
910
+ * ```
911
+ */
912
+ declare const okhstPlugin: TastyPluginFactory;
913
+ //#endregion
914
+ //#region src/plugins/color-func.d.ts
915
+ /**
916
+ * Creates a color function handler for the tasty parser.
917
+ *
918
+ * A color function is a custom `functions` entry that converts its arguments
919
+ * to an `rgb(...)` string (an already-supported color), so it needs no special
920
+ * core integration — registering it as a parse function is enough.
921
+ *
922
+ * @param name The name of the color function (e.g., 'okhsl', 'okhst')
923
+ * @param convert Converts the parsed first three channel values (after angle/
924
+ * percent normalization) to sRGB `[r, g, b]` in the 0-1 range
925
+ * @param label Optional diagnostic label shown in dev warnings when the wrong
926
+ * number of arguments is supplied (e.g., 'H S L'). Has no effect on parsing
927
+ * or output.
928
+ */
929
+ declare function createColorFunc(name: string, convert: (h: number, c2: number, c3: number) => [number, number, number], label?: string): (groups: StyleDetails[]) => string;
930
+ //#endregion
931
+ //#region src/utils/function-color.d.ts
932
+ /**
933
+ * Resolve a `name(...)` value produced by a registered custom parse function
934
+ * into its concrete color output.
935
+ *
936
+ * A color function is just a `functions` entry whose output is an already
937
+ * supported color (`rgb`, `hsl`, `#…`, `oklch`, …). This helper delegates the
938
+ * value to the global parser (which already runs the registered parse function)
939
+ * and returns the result only when it looks like a color. Returns `null` when
940
+ * `str` is not a registered custom function or its output is not a color.
941
+ *
942
+ * This is the generic replacement for the previously hardcoded okhsl/okhst
943
+ * conversion branches scattered across `strToRgb`, `resolveToRgbaValues`, and
944
+ * the `#token.alpha` injection path.
945
+ */
946
+ declare function resolveFunctionColor(str: string): string | null;
947
+ //#endregion
948
+ //#region src/chunks/style-chunk-map.d.ts
949
+ /**
950
+ * Chunk names, the built-in chunk style lists, and the style→chunk lookup.
951
+ *
952
+ * This module only imports data-only style-name lists. It exists separately
953
+ * from `definitions.ts` for two reasons:
954
+ *
955
+ * 1. The style handler registry (`styles/predefined.ts`) needs to assign chunk
956
+ * membership for custom handlers. Reaching for `definitions.ts` would create an
957
+ * import cycle (`definitions` -> `pipeline` -> `styles` -> `predefined`).
958
+ * 2. `STYLE_TO_CHUNK` is populated as a side effect of module load, so it must be
959
+ * populated by the module that *owns* it. Otherwise an importer that only pulls
960
+ * in this module would see an empty map and misclassify every style as `misc`.
961
+ *
962
+ * `definitions.ts` re-exports everything here, so existing import paths and the
963
+ * public API surface are unchanged.
964
+ */
965
+ declare const CHUNK_NAMES: {
966
+ /** Special chunk for styles that cannot be split */
967
+ readonly COMBINED: "combined";
968
+ readonly SUBCOMPONENTS: "subcomponents";
969
+ readonly APPEARANCE: "appearance";
970
+ readonly FONT: "font";
971
+ readonly DIMENSION: "dimension";
972
+ readonly DISPLAY: "display";
973
+ readonly LAYOUT: "layout";
974
+ readonly POSITION: "position";
975
+ readonly MISC: "misc";
976
+ };
977
+ type ChunkName = (typeof CHUNK_NAMES)[keyof typeof CHUNK_NAMES];
978
+ /**
979
+ * Appearance chunk - visual styling with independent handlers
980
+ *
981
+ * @public
982
+ */
983
+ declare const APPEARANCE_CHUNK_STYLES: readonly ["fill", "color", "opacity", "border", "blockBorder", "inlineBorder", "radius", "outline", "outlineOffset", "shadow", "fade"];
984
+ /**
985
+ * Font chunk - typography styles
986
+ *
987
+ * Handler dependencies (all styles in each handler MUST stay in this chunk):
988
+ * ⚠️ presetStyle: preset, fontSize, lineHeight, letterSpacing, textTransform,
989
+ * fontWeight, fontStyle, font
990
+ */
991
+ /** @public */
992
+ declare const FONT_CHUNK_STYLES: readonly ["preset", "font", "fontWeight", "fontStyle", "fontSize", "lineHeight", "letterSpacing", "textTransform", "fontFamily", "textAlign", "textDecoration", "wordBreak", "wordWrap", "boldFontWeight"];
993
+ /**
994
+ * Dimension chunk - sizing and spacing
995
+ *
996
+ * Handler dependencies (all styles in each handler MUST stay in this chunk):
997
+ * ⚠️ paddingStyle: padding, paddingTop/Right/Bottom/Left
998
+ * ⚠️ marginStyle: margin, marginTop/Right/Bottom/Left
999
+ * ⚠️ widthStyle: width, minWidth, maxWidth
1000
+ * ⚠️ heightStyle: height, minHeight, maxHeight
1001
+ * ⚠️ blockSizeStyle: blockSize, minBlockSize, maxBlockSize
1002
+ * ⚠️ inlineSizeStyle: inlineSize, minInlineSize, maxInlineSize
1003
+ */
1004
+ /** @public */
1005
+ declare const DIMENSION_CHUNK_STYLES: readonly ["padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "blockPadding", "inlinePadding", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "blockMargin", "inlineMargin", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "blockSize", "minBlockSize", "maxBlockSize", "inlineSize", "minInlineSize", "maxInlineSize", "flexBasis", "flexGrow", "flexShrink", "flex"];
1006
+ /**
1007
+ * Display chunk - display mode, layout flow, text overflow, and scrollbar
1008
+ *
1009
+ * Handler dependencies (all styles in each handler MUST stay in this chunk):
1010
+ * ⚠️ displayStyle: display, hide, textOverflow, overflow, whiteSpace
1011
+ * ⚠️ flowStyle: display, flow
1012
+ * ⚠️ gapStyle: display, flow, gap
1013
+ * ⚠️ scrollbarStyle: scrollbar, overflow
1014
+ */
1015
+ /** @public */
1016
+ declare const DISPLAY_CHUNK_STYLES: readonly ["display", "hide", "textOverflow", "overflow", "whiteSpace", "flow", "gap", "scrollbar"];
1017
+ /**
1018
+ * Layout chunk - flex/grid alignment and grid templates
1019
+ *
1020
+ * Note: flow and gap are in DISPLAY chunk due to handler dependencies
1021
+ * (flowStyle and gapStyle both require 'display' prop).
1022
+ */
1023
+ /** @public */
1024
+ declare const LAYOUT_CHUNK_STYLES: readonly ["placeItems", "placeContent", "alignItems", "alignContent", "justifyItems", "justifyContent", "align", "justify", "place", "columnGap", "rowGap", "gridColumns", "gridRows", "gridTemplate", "gridAreas", "gridAutoFlow", "gridAutoColumns", "gridAutoRows"];
1025
+ /**
1026
+ * Position chunk - element positioning
1027
+ *
1028
+ * Handler dependencies (all styles in each handler MUST stay in this chunk):
1029
+ * ⚠️ insetStyle: inset, top, right, bottom, left
1030
+ */
1031
+ /** @public */
1032
+ declare const POSITION_CHUNK_STYLES: readonly ["position", "inset", "blockInset", "inlineInset", "top", "right", "bottom", "left", "blockScrollMargin", "inlineScrollMargin", "blockScrollPadding", "inlineScrollPadding", "zIndex", "gridArea", "gridColumn", "gridRow", "order", "placeSelf", "alignSelf", "justifySelf", "transform", "transition", "animation"];
1033
+ /**
1034
+ * Map for O(1) style-to-chunk lookup. Seeded with the built-in lists above and
1035
+ * extended by {@link assignStyleChunk} when a custom handler declares style names
1036
+ * the built-in lists don't know.
1037
+ */
1038
+ declare const STYLE_TO_CHUNK: Map<string, ChunkName>;
1039
+ //#endregion
1040
+ //#region src/chunks/definitions.d.ts
1041
+ interface ChunkInfo {
1042
+ /** Name of the chunk */
1043
+ name: ChunkName | string;
1044
+ /** Style keys belonging to this chunk */
1045
+ styleKeys: string[];
1046
+ }
1047
+ /**
1048
+ * Categorize style keys into chunks.
1049
+ *
1050
+ * Returns chunks in a deterministic order (by CHUNK_ORDER) regardless
1051
+ * of the order of keys in the input styles object.
1052
+ *
1053
+ * @param styles - The styles object to categorize
1054
+ * @returns Map of chunk name to array of style keys in that chunk (in priority order)
1055
+ */
1056
+ declare function categorizeStyleKeys(styles: Record<string, unknown>): Map<string, string[]>;
1057
+ //#endregion
1058
+ //#region src/styles/border.d.ts
1059
+ /**
1060
+ * Border style handler with multi-group support.
1061
+ *
1062
+ * Single group (backward compatible):
1063
+ * - `border="1bw solid #red"` - all sides
1064
+ * - `border="1bw solid #red top left"` - only top and left
1065
+ *
1066
+ * Multi-group (new):
1067
+ * - `border="1bw #red, 2bw #blue top"` - all sides red 1bw, then top overridden to blue 2bw
1068
+ * - `border="1bw, dashed top bottom, #purple left right"` - base 1bw, dashed on top/bottom, purple on left/right
1069
+ *
1070
+ * Later groups override earlier groups for conflicting directions.
1071
+ */
1072
+ declare function borderStyle({ border }: {
1073
+ border?: string | number | boolean;
1074
+ }): Record<string, string> | null;
1075
+ declare namespace borderStyle {
1076
+ var __lookupStyles: string[];
1077
+ }
1078
+ //#endregion
1079
+ //#region src/styles/blockSize.d.ts
1080
+ declare function blockSizeStyle({ blockSize, minBlockSize, maxBlockSize }: {
1081
+ blockSize?: string | number | boolean;
1082
+ minBlockSize?: string | number | boolean;
1083
+ maxBlockSize?: string | number | boolean;
1084
+ }): Record<string, string | string[]> | null;
1085
+ declare namespace blockSizeStyle {
1086
+ var __lookupStyles: ("blockSize" | "maxBlockSize" | "minBlockSize")[];
1087
+ }
1088
+ //#endregion
1089
+ //#region src/styles/color.d.ts
1090
+ declare function colorStyle({ color }: {
1091
+ color?: string | boolean;
1092
+ }): Record<string, string> | null;
1093
+ declare namespace colorStyle {
1094
+ var __lookupStyles: string[];
1095
+ }
1096
+ //#endregion
1097
+ //#region src/styles/display.d.ts
1098
+ interface DisplayStyleProps {
1099
+ display?: string;
1100
+ hide?: boolean;
1101
+ textOverflow?: string | boolean;
1102
+ overflow?: string;
1103
+ whiteSpace?: string;
1104
+ }
1105
+ /**
1106
+ * Handles display, hide, textOverflow, overflow, and whiteSpace styles.
1107
+ *
1108
+ * Priority:
1109
+ * 1. `hide` takes precedence (display: none)
1110
+ * 2. Multi-line `textOverflow` forces display: -webkit-box
1111
+ * 3. Single-line `textOverflow` defaults white-space to nowrap
1112
+ * 4. Explicit `whiteSpace` overrides the default from `textOverflow`
1113
+ */
1114
+ declare function displayStyle({ display, hide, textOverflow, overflow, whiteSpace }: DisplayStyleProps): Record<string, string | number> | null;
1115
+ declare namespace displayStyle {
1116
+ var __lookupStyles: string[];
1117
+ }
1118
+ //#endregion
1119
+ //#region src/styles/fade.d.ts
1120
+ declare function fadeStyle({ fade }: {
1121
+ fade?: string;
1122
+ }): {
1123
+ mask: string;
1124
+ 'mask-composite': string;
1125
+ } | null;
1126
+ declare namespace fadeStyle {
1127
+ var __lookupStyles: string[];
1128
+ }
1129
+ //#endregion
1130
+ //#region src/styles/fill.d.ts
1131
+ declare function fillStyle({ fill, backgroundColor, image, backgroundImage, backgroundPosition, backgroundSize, backgroundRepeat, backgroundAttachment, backgroundOrigin, backgroundClip, background }: {
1132
+ fill?: string;
1133
+ backgroundColor?: string;
1134
+ image?: string;
1135
+ backgroundImage?: string;
1136
+ backgroundPosition?: string;
1137
+ backgroundSize?: string;
1138
+ backgroundRepeat?: string;
1139
+ backgroundAttachment?: string;
1140
+ backgroundOrigin?: string;
1141
+ backgroundClip?: string;
1142
+ background?: string;
1143
+ }): Record<string, string> | null;
1144
+ declare namespace fillStyle {
1145
+ var __lookupStyles: string[];
1146
+ }
1147
+ declare function svgFillStyle({ svgFill }: {
1148
+ svgFill?: string;
1149
+ }): {
1150
+ fill: string;
1151
+ } | null;
1152
+ declare namespace svgFillStyle {
1153
+ var __lookupStyles: string[];
1154
+ }
1155
+ //#endregion
1156
+ //#region src/styles/flow.d.ts
1157
+ declare function flowStyle({ display, flow }: {
1158
+ display?: string | NoType;
1159
+ flow?: string | NoType;
1160
+ }): {
1161
+ [x: string]: string;
1162
+ } | null;
1163
+ declare namespace flowStyle {
1164
+ var __lookupStyles: string[];
1165
+ }
1166
+ //#endregion
1167
+ //#region src/styles/gap.d.ts
1168
+ declare function gapStyle({ display, flow, gap }: {
1169
+ display?: string | NoType;
1170
+ flow?: string | NoType;
1171
+ gap?: string | number | boolean | NoType;
1172
+ }): {
1173
+ gap: string;
1174
+ $?: undefined;
1175
+ } | ({
1176
+ 'margin-right': string;
1177
+ 'margin-bottom': string;
1178
+ $?: undefined;
1179
+ } | {
1180
+ $: string;
1181
+ 'margin-right': string;
1182
+ 'margin-bottom': string;
1183
+ })[] | {
1184
+ [x: string]: string;
1185
+ $: string;
1186
+ gap?: undefined;
1187
+ } | null;
1188
+ declare namespace gapStyle {
1189
+ var __lookupStyles: string[];
1190
+ }
1191
+ //#endregion
1192
+ //#region src/styles/height.d.ts
1193
+ interface HeightStyleProps {
1194
+ height?: string | number | boolean;
1195
+ minHeight?: string | number | boolean;
1196
+ maxHeight?: string | number | boolean;
1197
+ }
1198
+ declare function heightStyle({ height, minHeight, maxHeight }: HeightStyleProps): Record<string, string | string[]> | null;
1199
+ declare namespace heightStyle {
1200
+ var __lookupStyles: string[];
1201
+ }
1202
+ //#endregion
1203
+ //#region src/styles/inset.d.ts
1204
+ declare function insetStyle({ inset, top, right, bottom, left }: {
1205
+ inset?: string | number | boolean;
1206
+ top?: string | number | boolean;
1207
+ right?: string | number | boolean;
1208
+ bottom?: string | number | boolean;
1209
+ left?: string | number | boolean;
1210
+ }): Record<string, string> | null;
1211
+ declare namespace insetStyle {
1212
+ var __lookupStyles: string[];
1213
+ }
1214
+ //#endregion
1215
+ //#region src/styles/inlineSize.d.ts
1216
+ declare function inlineSizeStyle({ inlineSize, minInlineSize, maxInlineSize }: {
1217
+ inlineSize?: string | number | boolean;
1218
+ minInlineSize?: string | number | boolean;
1219
+ maxInlineSize?: string | number | boolean;
1220
+ }): Record<string, string | string[]> | null;
1221
+ declare namespace inlineSizeStyle {
1222
+ var __lookupStyles: ("inlineSize" | "maxInlineSize" | "minInlineSize")[];
1223
+ }
1224
+ //#endregion
1225
+ //#region src/styles/margin.d.ts
1226
+ declare function marginStyle({ margin, marginTop, marginRight, marginBottom, marginLeft }: {
1227
+ margin?: string | number | boolean;
1228
+ marginTop?: string | number | boolean;
1229
+ marginRight?: string | number | boolean;
1230
+ marginBottom?: string | number | boolean;
1231
+ marginLeft?: string | number | boolean;
1232
+ }): Record<string, string> | null;
1233
+ declare namespace marginStyle {
1234
+ var __lookupStyles: string[];
1235
+ }
1236
+ //#endregion
1237
+ //#region src/styles/outline.d.ts
1238
+ interface OutlineStyleProps {
1239
+ outline?: string | boolean | number;
1240
+ outlineOffset?: string | number;
1241
+ }
1242
+ /**
1243
+ * Generates CSS for outline property with optional offset.
1244
+ *
1245
+ * Syntax:
1246
+ * - `outline="2px solid #red"` - outline only
1247
+ * - `outline="2px solid #red / 4px"` - outline with offset (slash separator)
1248
+ * - `outline="2px / 4px"` - width with offset (simpler form)
1249
+ * - `outline={true}` - default 1ow solid outline
1250
+ * - `outlineOffset="4px"` - offset as separate prop (can be combined with outline)
1251
+ *
1252
+ * Priority: slash syntax in outline takes precedence over outlineOffset prop
1253
+ *
1254
+ * @return CSS properties for outline and optionally outline-offset
1255
+ */
1256
+ declare function outlineStyle({ outline, outlineOffset }: OutlineStyleProps): Record<string, string> | null;
1257
+ declare namespace outlineStyle {
1258
+ var __lookupStyles: string[];
1259
+ }
1260
+ //#endregion
1261
+ //#region src/styles/padding.d.ts
1262
+ declare function paddingStyle({ padding, paddingTop, paddingRight, paddingBottom, paddingLeft }: {
1263
+ padding?: string | number | boolean;
1264
+ paddingTop?: string | number | boolean;
1265
+ paddingRight?: string | number | boolean;
1266
+ paddingBottom?: string | number | boolean;
1267
+ paddingLeft?: string | number | boolean;
1268
+ }): Record<string, string> | null;
1269
+ declare namespace paddingStyle {
1270
+ var __lookupStyles: string[];
1271
+ }
1272
+ //#endregion
1273
+ //#region src/styles/placement.d.ts
1274
+ interface PlacementStyleProps {
1275
+ place?: string | boolean;
1276
+ placeItems?: string | boolean;
1277
+ placeContent?: string | boolean;
1278
+ align?: string | boolean;
1279
+ justify?: string | boolean;
1280
+ alignItems?: string | boolean;
1281
+ alignContent?: string | boolean;
1282
+ justifyItems?: string | boolean;
1283
+ justifyContent?: string | boolean;
1284
+ }
1285
+ /**
1286
+ * Unified placement handler replacing align, justify, and place.
1287
+ *
1288
+ * Priority (later overrides earlier):
1289
+ * 1. place (lowest) — sets all 4 longhands
1290
+ * 2. placeItems, placeContent, align, justify (medium) — each sets 2 longhands
1291
+ * 3. alignItems, alignContent, justifyItems, justifyContent (highest) — each sets 1 longhand
1292
+ */
1293
+ declare function placementStyle({ place, placeItems, placeContent, align, justify, alignItems, alignContent, justifyItems, justifyContent }: PlacementStyleProps): Record<string, string> | null;
1294
+ declare namespace placementStyle {
1295
+ var __lookupStyles: string[];
1296
+ }
1297
+ //#endregion
1298
+ //#region src/styles/preset.d.ts
1299
+ interface PresetStyleProps {
1300
+ preset?: string | boolean;
1301
+ fontSize?: string | number;
1302
+ lineHeight?: string | number;
1303
+ textTransform?: string;
1304
+ letterSpacing?: string | number;
1305
+ fontWeight?: string | number;
1306
+ fontStyle?: string | boolean;
1307
+ fontFamily?: string;
1308
+ /** Alias for fontFamily with special handling for 'monospace' and boolean */
1309
+ font?: string | boolean;
1310
+ }
1311
+ /**
1312
+ * Handles typography preset and individual font properties.
1313
+ *
1314
+ * Preset syntax uses `/` to separate the name from one or more
1315
+ * space-separated modifiers:
1316
+ * - `preset="h1"` — name only
1317
+ * - `preset="h2 / strong"` — name + modifier
1318
+ * - `preset="h2 / strong italic"` — name + multiple modifiers
1319
+ * - `preset="bold"` — modifier-only shorthand (name defaults to `inherit`)
1320
+ * - `preset="bold italic"` — modifier-only shorthand with multiple modifiers
1321
+ *
1322
+ * When `preset` is defined, it sets up CSS custom properties for typography.
1323
+ * Individual font props can be used with or without `preset`:
1324
+ * - With `preset`: overrides the preset value for that property
1325
+ * - Without `preset`: outputs the CSS directly
1326
+ *
1327
+ * Number values are converted to pixels for fontSize, lineHeight, letterSpacing.
1328
+ * fontWeight accepts numbers directly (e.g., 400, 700).
1329
+ *
1330
+ * font vs fontFamily:
1331
+ * - `font` is the recommended prop with special handling (monospace, boolean, fallback)
1332
+ * - `fontFamily` is a direct value without special handling
1333
+ */
1334
+ declare function presetStyle({ preset, fontSize, lineHeight, textTransform, letterSpacing, fontWeight, fontStyle, fontFamily, font }: PresetStyleProps): CSSMap | null;
1335
+ declare namespace presetStyle {
1336
+ var __lookupStyles: string[];
1337
+ }
1338
+ //#endregion
1339
+ //#region src/styles/radius.d.ts
1340
+ declare function radiusStyle({ radius }: {
1341
+ radius?: string | number | boolean;
1342
+ }): Record<string, string> | null;
1343
+ declare namespace radiusStyle {
1344
+ var __lookupStyles: string[];
1345
+ }
1346
+ //#endregion
1347
+ //#region src/styles/scrollMargin.d.ts
1348
+ declare function scrollMarginStyle({ scrollMargin, scrollMarginTop, scrollMarginRight, scrollMarginBottom, scrollMarginLeft }: {
1349
+ scrollMargin?: string | number | boolean;
1350
+ scrollMarginTop?: string | number | boolean;
1351
+ scrollMarginRight?: string | number | boolean;
1352
+ scrollMarginBottom?: string | number | boolean;
1353
+ scrollMarginLeft?: string | number | boolean;
1354
+ }): Record<string, string> | null;
1355
+ declare namespace scrollMarginStyle {
1356
+ var __lookupStyles: string[];
1357
+ }
1358
+ //#endregion
1359
+ //#region src/styles/scrollPadding.d.ts
1360
+ declare function scrollPaddingStyle({ scrollPadding, scrollPaddingTop, scrollPaddingRight, scrollPaddingBottom, scrollPaddingLeft }: {
1361
+ scrollPadding?: string | number | boolean;
1362
+ scrollPaddingTop?: string | number | boolean;
1363
+ scrollPaddingRight?: string | number | boolean;
1364
+ scrollPaddingBottom?: string | number | boolean;
1365
+ scrollPaddingLeft?: string | number | boolean;
1366
+ }): Record<string, string> | null;
1367
+ declare namespace scrollPaddingStyle {
1368
+ var __lookupStyles: string[];
1369
+ }
1370
+ //#endregion
1371
+ //#region src/styles/scrollbar.d.ts
1372
+ interface ScrollbarStyleProps {
1373
+ scrollbar?: string | boolean;
1374
+ overflow?: string;
1375
+ }
1376
+ /**
1377
+ * Standard CSS scrollbar styling via `scrollbar-width`, `scrollbar-color`,
1378
+ * and `scrollbar-gutter`.
1379
+ *
1380
+ * Width values: `thin` (default), `auto`, `none`
1381
+ * Modifiers: `stable`, `both-edges`, `always`
1382
+ *
1383
+ * Note: `auto` is classified as a VALUE_KEYWORD by the parser, so it lands
1384
+ * in `values` rather than `mods`. Both locations are checked for robustness.
1385
+ */
1386
+ declare function scrollbarStyle({ scrollbar, overflow }: ScrollbarStyleProps): Record<string, string> | null;
1387
+ declare namespace scrollbarStyle {
1388
+ var __lookupStyles: string[];
1389
+ }
1390
+ //#endregion
1391
+ //#region src/styles/shadow.d.ts
1392
+ declare function shadowStyle({ shadow }: {
1393
+ shadow?: string | boolean;
1394
+ }): {
1395
+ 'box-shadow': string;
1396
+ } | null;
1397
+ declare namespace shadowStyle {
1398
+ var __lookupStyles: string[];
1399
+ }
1400
+ //#endregion
1401
+ //#region src/styles/transition.d.ts
1402
+ declare function transitionStyle({ transition }: {
1403
+ transition?: string;
1404
+ }): {
1405
+ transition: string;
1406
+ } | null;
1407
+ declare namespace transitionStyle {
1408
+ var __lookupStyles: string[];
1409
+ }
1410
+ //#endregion
1411
+ //#region src/styles/width.d.ts
1412
+ interface WidthStyleProps {
1413
+ width?: string | number | boolean;
1414
+ minWidth?: string | number | boolean;
1415
+ maxWidth?: string | number | boolean;
1416
+ }
1417
+ declare function widthStyle({ width, minWidth, maxWidth }: WidthStyleProps): Record<string, string | string[]> | null;
1418
+ declare namespace widthStyle {
1419
+ var __lookupStyles: string[];
1420
+ }
1421
+ //#endregion
1422
+ //#region src/styles/predefined.d.ts
1423
+ /**
1424
+ * Exported object containing wrapped predefined style handlers.
1425
+ * Users can import and call these to extend or delegate to built-in behavior.
1426
+ *
1427
+ * Internal handlers use *Style suffix for searchability.
1428
+ * External API uses short names for convenience.
1429
+ *
1430
+ * @example
1431
+ * ```ts
1432
+ * import { styleHandlers, configure } from '@tenphi/tasty';
1433
+ *
1434
+ * configure({
1435
+ * handlers: {
1436
+ * fill: ({ fill }) => {
1437
+ * if (fill?.startsWith('gradient:')) {
1438
+ * return { background: fill.slice(9) };
1439
+ * }
1440
+ * return styleHandlers.fill({ fill });
1441
+ * },
1442
+ * },
1443
+ * });
1444
+ * ```
1445
+ */
1446
+ declare const styleHandlers: {
1447
+ readonly margin: typeof marginStyle;
1448
+ readonly outline: typeof outlineStyle;
1449
+ readonly padding: typeof paddingStyle;
1450
+ readonly placement: typeof placementStyle;
1451
+ readonly preset: typeof presetStyle;
1452
+ readonly radius: typeof radiusStyle;
1453
+ readonly scrollMargin: typeof scrollMarginStyle;
1454
+ readonly scrollPadding: typeof scrollPaddingStyle;
1455
+ readonly scrollbar: typeof scrollbarStyle;
1456
+ readonly shadow: typeof shadowStyle;
1457
+ readonly transition: typeof transitionStyle;
1458
+ readonly width: typeof widthStyle;
1459
+ readonly blockBorder: StyleHandler<Partial<Record<"blockBorder", string | number | boolean | undefined>>>;
1460
+ readonly inlineBorder: StyleHandler<Partial<Record<"inlineBorder", string | number | boolean | undefined>>>;
1461
+ readonly blockScrollPadding: StyleHandler<Partial<Record<"blockScrollPadding", string | number | boolean | undefined>>>;
1462
+ readonly inlineScrollPadding: StyleHandler<Partial<Record<"inlineScrollPadding", string | number | boolean | undefined>>>;
1463
+ readonly blockScrollMargin: StyleHandler<Partial<Record<"blockScrollMargin", string | number | boolean | undefined>>>;
1464
+ readonly inlineScrollMargin: StyleHandler<Partial<Record<"inlineScrollMargin", string | number | boolean | undefined>>>;
1465
+ readonly blockInset: StyleHandler<Partial<Record<"blockInset", string | number | boolean | undefined>>>;
1466
+ readonly inlineInset: StyleHandler<Partial<Record<"inlineInset", string | number | boolean | undefined>>>;
1467
+ readonly blockMargin: StyleHandler<Partial<Record<"blockMargin", string | number | boolean | undefined>>>;
1468
+ readonly inlineMargin: StyleHandler<Partial<Record<"inlineMargin", string | number | boolean | undefined>>>;
1469
+ readonly blockPadding: StyleHandler<Partial<Record<"blockPadding", string | number | boolean | undefined>>>;
1470
+ readonly inlinePadding: StyleHandler<Partial<Record<"inlinePadding", string | number | boolean | undefined>>>;
1471
+ readonly blockSize: typeof blockSizeStyle;
1472
+ readonly border: typeof borderStyle;
1473
+ readonly color: typeof colorStyle;
1474
+ readonly display: typeof displayStyle;
1475
+ readonly fade: typeof fadeStyle;
1476
+ readonly fill: typeof fillStyle;
1477
+ readonly svgFill: typeof svgFillStyle;
1478
+ readonly flow: typeof flowStyle;
1479
+ readonly gap: typeof gapStyle;
1480
+ readonly height: typeof heightStyle;
1481
+ readonly inset: typeof insetStyle;
1482
+ readonly inlineSize: typeof inlineSizeStyle;
1483
+ };
1484
+ //#endregion
1485
+ //#region src/styles/define-handler.d.ts
1486
+ /**
1487
+ * Declare a multi-dependency style handler with its dependency names inferred
1488
+ * into the handler's parameter type.
1489
+ *
1490
+ * Without it, the multi-dependency tuple form needs a hand-written parameter
1491
+ * annotation that can silently drift from the dependency list:
1492
+ *
1493
+ * ```ts
1494
+ * // Annotation and dependency list are maintained separately.
1495
+ * handlers: {
1496
+ * spacing: [['gap', 'padding'], ({ gap, padding }: { gap?: string; padding?: string }) => …],
1497
+ * }
1498
+ *
1499
+ * // Both come from the same array; a typo in the destructure is a type error.
1500
+ * handlers: {
1501
+ * spacing: defineHandler(['gap', 'padding'], ({ gap, padding }) => …),
1502
+ * }
1503
+ * ```
1504
+ *
1505
+ * Values arrive **state-resolved but unparsed** — the raw authored DSL string
1506
+ * (`'2x'`, `'#purple.5'`), so call `parseStyle()` / `parseColor()` as needed. The
1507
+ * result is a kebab-case CSS declaration map (or an array of them); the reserved
1508
+ * `$` key applies the declarations to a nested selector.
1509
+ *
1510
+ * All names must belong to the same chunk. Names the built-in chunk lists don't
1511
+ * know are pulled into their handler's chunk automatically at registration.
1512
+ */
1513
+ declare function defineHandler<const TDeps extends readonly string[]>(deps: TDeps, handler: (props: Partial<Record<TDeps[number], ResolvedStyleValue>>) => StyleHandlerResult): [readonly string[], RawStyleHandler];
1514
+ //#endregion
1515
+ //#region src/compute-styles.d.ts
1516
+ interface ComputeStylesResult {
1517
+ className: string;
1518
+ /** CSS text to emit as an inline <style> tag (RSC mode only). */
1519
+ css?: string;
1520
+ }
1521
+ interface ComputeStylesOptions {
1522
+ ssrCollector?: ServerStyleCollector | null;
1523
+ /** Target root for style injection (client only). Defaults to `document`. */
1524
+ root?: Document | ShadowRoot;
1525
+ /**
1526
+ * Set when `styles` outlives this call and will be passed in again — a
1527
+ * `tasty()` factory's own styles object rather than a per-render merge.
1528
+ * It lets chunk cache keys be memoized on the object, which is worth the
1529
+ * bookkeeping only when there is a next render to spend it on.
1530
+ */
1531
+ stableStyles?: boolean;
1532
+ }
1533
+ /**
1534
+ * Synchronous, hook-free style computation.
1535
+ *
1536
+ * Resolves recipes, categorizes style keys into chunks, renders CSS rules,
1537
+ * allocates class names, and injects / collects / returns the CSS.
1538
+ *
1539
+ * Three code paths:
1540
+ * 1. SSR collector — discovered via ALS or passed explicitly; CSS collected
1541
+ * 2. RSC inline — no collector and no `document`; CSS returned as `result.css`
1542
+ * for the caller to emit as an inline `<style>` tag
1543
+ * 3. Client inject — CSS injected synchronously into the DOM (idempotent)
1544
+ *
1545
+ * @param styles - Tasty styles object (or undefined for no styles)
1546
+ * @param options - Optional SSR collector override
1547
+ */
1548
+ declare function computeStyles(styles: Styles | undefined, options?: ComputeStylesOptions): ComputeStylesResult;
1549
+ //#endregion
1550
+ //#region src/injector/chunk-sheet-registry.d.ts
1551
+ /**
1552
+ * Global registry mapping CSS content hashes to shared constructable
1553
+ * CSSStyleSheet objects with reference counting.
1554
+ *
1555
+ * Multiple shadow roots adopting the same chunk share a single underlying
1556
+ * stylesheet object — parse once, adopt everywhere.
1557
+ */
1558
+ declare class ChunkSheetRegistry {
1559
+ private sheets;
1560
+ private sheetToHash;
1561
+ /**
1562
+ * Get or create a CSSStyleSheet for the given CSS text.
1563
+ * Increments refCount. Uses content hash as the dedup key.
1564
+ */
1565
+ acquire(cssText: string): CSSStyleSheet;
1566
+ /**
1567
+ * Decrement refCount for a sheet. When refCount reaches 0,
1568
+ * the sheet is removed from the registry.
1569
+ */
1570
+ release(sheet: CSSStyleSheet): void;
1571
+ /**
1572
+ * Bulk acquire — returns an array of CSSStyleSheet in the same order.
1573
+ */
1574
+ acquireAll(cssTexts: string[]): CSSStyleSheet[];
1575
+ /**
1576
+ * Bulk release — decrements refCount for each sheet.
1577
+ */
1578
+ releaseAll(sheets: CSSStyleSheet[]): void;
1579
+ /** Number of unique sheets currently held. */
1580
+ get size(): number;
1581
+ }
1582
+ /** Module-level singleton shared across the entire application. */
1583
+ declare const chunkSheetRegistry: ChunkSheetRegistry;
1584
+ //#endregion
1585
+ //#region src/injector/index.d.ts
1586
+ /**
1587
+ * Inject styles and return className with dispose function
1588
+ */
1589
+ declare function inject(rules: StyleResult[], options?: InjectOptions): InjectResult;
1590
+ /**
1591
+ * Inject global rules that should not reserve tasty class names
1592
+ */
1593
+ declare function injectGlobal(rules: StyleResult[], options?: {
1594
+ root?: Document | ShadowRoot;
1595
+ }): GlobalInjectResult;
1596
+ /**
1597
+ * Inject raw CSS text directly without parsing
1598
+ * This is a low-overhead method for injecting raw CSS that doesn't need tasty processing.
1599
+ * The CSS is inserted into a separate style element to avoid conflicts with tasty's chunking.
1600
+ *
1601
+ * @example
1602
+ * ```tsx
1603
+ * // Inject raw CSS
1604
+ * const { dispose } = injectRawCSS(`
1605
+ * body { margin: 0; padding: 0; }
1606
+ * .my-class { color: red; }
1607
+ * `);
1608
+ *
1609
+ * // Later, remove the injected CSS
1610
+ * dispose();
1611
+ * ```
1612
+ */
1613
+ declare function injectRawCSS(css: string, options?: {
1614
+ root?: Document | ShadowRoot;
1615
+ }): {
1616
+ dispose: () => void;
1617
+ };
1618
+ /**
1619
+ * Get raw CSS text for SSR
1620
+ */
1621
+ declare function getRawCSSText(options?: {
1622
+ root?: Document | ShadowRoot;
1623
+ }): string;
1624
+ /**
1625
+ * Inject keyframes and return object with toString() and dispose()
1626
+ */
1627
+ declare function keyframes(steps: KeyframesSteps, nameOrOptions?: string | {
1628
+ root?: Document | ShadowRoot;
1629
+ name?: string;
1630
+ }): KeyframesResult;
1631
+ /**
1632
+ * Define a CSS @property custom property.
1633
+ * This enables advanced features like animating custom properties.
1634
+ *
1635
+ * Note: @property rules are global and persistent once defined.
1636
+ * Re-registering the same property name is a no-op.
1637
+ *
1638
+ * @param name - The custom property name (must start with --)
1639
+ * @param options - Property configuration
1640
+ *
1641
+ * @example
1642
+ * ```ts
1643
+ * // Define a color property that can be animated
1644
+ * property('--my-color', {
1645
+ * syntax: '<color>',
1646
+ * initialValue: 'red',
1647
+ * });
1648
+ *
1649
+ * // Define an angle property
1650
+ * property('--rotation', {
1651
+ * syntax: '<angle>',
1652
+ * inherits: false,
1653
+ * initialValue: '0deg',
1654
+ * });
1655
+ * ```
1656
+ */
1657
+ declare function property(name: string, options?: PropertyOptions): void;
1658
+ /**
1659
+ * Check if a CSS @property has already been defined
1660
+ *
1661
+ * @param name - The custom property name to check
1662
+ * @param options - Options including root
1663
+ */
1664
+ declare function isPropertyDefined(name: string, options?: {
1665
+ root?: Document | ShadowRoot;
1666
+ }): boolean;
1667
+ /**
1668
+ * Inject a CSS @font-face rule.
1669
+ *
1670
+ * Permanent and global — no dispose or ref-counting.
1671
+ * Deduplicates by content hash (family + descriptors).
1672
+ */
1673
+ declare function fontFace(family: string, descriptors: FontFaceDescriptors, options?: {
1674
+ root?: Document | ShadowRoot;
1675
+ }): void;
1676
+ /**
1677
+ * Inject a CSS @counter-style rule.
1678
+ *
1679
+ * Permanent and global — no dispose or ref-counting. Deduplicates by name and
1680
+ * overrides an existing rule by default. Pass `weak: true` for global
1681
+ * `configure()` definitions, which never clobber an existing rule.
1682
+ */
1683
+ declare function counterStyle(name: string, descriptors: CounterStyleDescriptors, options?: {
1684
+ root?: Document | ShadowRoot;
1685
+ weak?: boolean;
1686
+ }): void;
1687
+ /**
1688
+ * Inject a CSS @function rule (custom function).
1689
+ *
1690
+ * Permanent and global — no dispose or ref-counting. Deduplicates by function
1691
+ * name and overrides an existing rule by default. Pass `weak: true` for global
1692
+ * `configure()` definitions, which never clobber an existing rule.
1693
+ *
1694
+ * @param name - The function name (`$$name`, `$name`, or `--name`)
1695
+ * @param definition - Function definition (args, returns, result, local vars)
1696
+ *
1697
+ * @example
1698
+ * ```ts
1699
+ * func('$$negative', { args: ['$value'], result: '(-1 * $value)' });
1700
+ * ```
1701
+ */
1702
+ declare function func(name: string, definition: FunctionDefinition, options?: {
1703
+ root?: Document | ShadowRoot;
1704
+ weak?: boolean;
1705
+ }): void;
1706
+ /**
1707
+ * Get CSS text from all sheets (for SSR)
1708
+ */
1709
+ declare function getCSSText(options?: {
1710
+ root?: Document | ShadowRoot;
1711
+ }): string;
1712
+ /**
1713
+ * Collect only CSS used by a rendered subtree (like jest-styled-components).
1714
+ * Pass the container returned by render(...).
1715
+ */
1716
+ declare function getCSSTextForNode(node: ParentNode | Element | DocumentFragment, options?: {
1717
+ root?: Document | ShadowRoot;
1718
+ }): string;
1719
+ /**
1720
+ * Take a reference on local `@keyframes` under the deterministic names the
1721
+ * caller resolved, and report which entry holds each. Pair with
1722
+ * `ownKeyframes()` once the rules exist to inspect.
1723
+ */
1724
+ declare function holdKeyframes(steps: Record<string, KeyframesSteps>, names: Map<string, string>, options?: {
1725
+ root?: Document | ShadowRoot;
1726
+ }): Map<string, string>;
1727
+ /**
1728
+ * Record that a class animates these keyframes, so the reference is released
1729
+ * when the last such class is collected.
1730
+ */
1731
+ declare function ownKeyframes(key: string, className: string, options?: {
1732
+ root?: Document | ShadowRoot;
1733
+ }): void;
1734
+ /**
1735
+ * Remove every injected rule that is neither in the DOM nor held by an
1736
+ * outstanding `inject()` handle. Equivalent to `gc({ force: true })`.
1737
+ */
1738
+ declare function cleanup(root?: Document | ShadowRoot): void;
1739
+ /**
1740
+ * Count a render, so that a collection pass is scheduled every
1741
+ * `gc.touchInterval` of them. Used internally by computeStyles and tasty().
1742
+ *
1743
+ * @deprecated The class name is ignored — collection asks the DOM what is
1744
+ * rendered rather than recording usage per class. The argument is kept so
1745
+ * existing calls still compile.
1746
+ */
1747
+ declare function touch(className: string, options?: {
1748
+ root?: Document | ShadowRoot;
1749
+ }): void;
1750
+ /**
1751
+ * Synchronous garbage collection of unused styles — those no element carries
1752
+ * and no `inject()` handle references. Evicts the oldest ones once they exceed
1753
+ * capacity. With `{ force: true }`, removes all of them regardless of capacity.
1754
+ *
1755
+ * @returns Number of styles evicted.
1756
+ */
1757
+ declare function gc(options?: GCOptions): number;
1758
+ /**
1759
+ * Get the global injector instance for debugging
1760
+ */
1761
+ declare const injector: {
1762
+ readonly instance: StyleInjector;
1763
+ };
1764
+ /**
1765
+ * Destroy all resources and clean up
1766
+ */
1767
+ declare function destroy(root?: Document | ShadowRoot): void;
1768
+ /**
1769
+ * Create a new isolated injector instance
1770
+ */
1771
+ declare function createInjector(config?: Partial<StyleInjectorConfig>): StyleInjector;
1772
+ //#endregion
1773
+ //#region src/utils/filter-base-props.d.ts
1774
+ declare const basePropNames: readonly ["role", "title", "inert", "as", "element", "css", "qa", "mods", "qaVal", "hidden", "isHidden", "disabled", "isDisabled", "children", "style", "className", "href", "target", "tabIndex"];
1775
+ declare const ignoredEventPropNames: readonly ["onPress", "onHoverStart", "onHoverEnd", "onPressStart", "onPressEnd"];
1776
+ interface PropsFilterOptions {
1777
+ labelable?: boolean;
1778
+ propNames?: ReadonlySet<string>;
1779
+ eventProps?: boolean;
1780
+ }
1781
+ type ExplicitPropName<O> = O extends {
1782
+ propNames?: ReadonlySet<infer P>;
1783
+ } ? Extract<P, string> : never;
1784
+ type EventPropsEnabled<O> = O extends {
1785
+ eventProps?: infer E;
1786
+ } ? Extract<E, boolean> : never;
1787
+ type Characters<S extends string> = S extends `${infer First}${infer Rest}` ? First | Characters<Rest> : never;
1788
+ /** Models DOM-style event keys and the runtime's ignored event names. */
1789
+ type EventPropName<K extends string> = string extends K ? `on${Characters<'ABCDEFGHIJKLMNOPQRSTUVWXYZ'>}${string}` : K extends `on${infer Initial}${infer Rest}` ? 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' extends `${string}${Initial}${string}` ? Rest extends '' ? never : Exclude<K, (typeof ignoredEventPropNames)[number]> : never : never;
1790
+ type ExplicitNumericPropName<K, O> = K extends number ? `${K}` extends ExplicitPropName<O> ? K : never : never;
1791
+ type RetainedPropName<T, O> = 'id' | (typeof basePropNames)[number] | `aria-${string}` | `data-${string}` | ExplicitPropName<O> | (true extends EventPropsEnabled<O> ? EventPropName<Extract<keyof T, string>> : never);
1792
+ type FilteredProps<T extends object, O> = T extends unknown ? Partial<Pick<T, Extract<keyof T, RetainedPropName<T, O>> | Extract<RetainedPropName<T, O>, keyof T> | ExplicitNumericPropName<keyof T, O>>> : never;
1793
+ /**
1794
+ * Keeps the built-in base props, ARIA/data attributes, and explicitly allowed props.
1795
+ * DOM-style event names are kept only with `eventProps: true`, except the ignored
1796
+ * interaction events (which can still be allowed explicitly via `propNames`).
1797
+ * The return type preserves the input value types only for potentially retained
1798
+ * keys. Props remain optional because only own enumerable string keys are copied.
1799
+ * Use a literal union (e.g. `new Set(['name', 'type'] as const)`) for `propNames`
1800
+ * to keep precise types; a `Set<string>` can potentially retain any string key.
1801
+ * @param props - The component props to be filtered.
1802
+ * @param opts - Additional prop names and event forwarding options.
1803
+ */
1804
+ declare function filterBaseProps<T extends object>(props: T, opts?: undefined): FilteredProps<T, undefined>;
1805
+ declare function filterBaseProps<T extends object, O extends PropsFilterOptions | undefined = PropsFilterOptions>(props: T, opts: O): FilteredProps<T, O>;
1806
+ //#endregion
1807
+ //#region src/utils/colors.d.ts
1808
+ declare function color$1(name: string, opacity?: number): string;
1809
+ //#endregion
1810
+ //#region src/utils/mod-attrs.d.ts
1811
+ declare function modAttrs(map: AllBaseProps['mods']): Record<string, string> | null;
1812
+ //#endregion
1813
+ //#region src/utils/resolve-recipes.d.ts
1814
+ /** Resolve recipe references against the globally configured recipe map. */
1815
+ declare function resolveRecipes(styles: Styles): Styles;
1816
+ //#endregion
1817
+ //#region src/utils/process-tokens.d.ts
1818
+ /**
1819
+ * Process tokens object into inline style properties.
1820
+ * - `$name` -> `--name` with the parsed value
1821
+ * - `#name` -> `--name-color` with the parsed value
1822
+ *
1823
+ * @param tokens - The tokens object to process
1824
+ * @returns CSSProperties object or undefined if no tokens to process
1825
+ */
1826
+ declare function processTokens(tokens: Tokens | undefined): CSSProperties$1 | undefined;
1827
+ //#endregion
1828
+ //#region src/debug.d.ts
1829
+ declare global {
1830
+ interface Window {
1831
+ tastyDebug?: typeof tastyDebug;
1832
+ }
1833
+ }
1834
+ type CSSTarget = 'all' | 'global' | 'active' | 'unused' | 'page' | string | string[] | Element;
1835
+ interface DebugOptions {
1836
+ root?: Document | ShadowRoot;
1837
+ /** Suppress console logging and return data only (default: false) */
1838
+ raw?: boolean;
1839
+ }
1840
+ interface CSSOptions extends DebugOptions {
1841
+ prettify?: boolean;
1842
+ /** Read from stored source CSS (dev-mode only) instead of live CSSOM */
1843
+ source?: boolean;
1844
+ }
1845
+ interface DebugChunkInfo {
1846
+ className: string;
1847
+ chunkName: string | null;
1848
+ }
1849
+ interface InspectResult {
1850
+ element?: Element | null;
1851
+ classes: string[];
1852
+ chunks: DebugChunkInfo[];
1853
+ css: string;
1854
+ size: number;
1855
+ rules: number;
1856
+ }
1857
+ interface CacheStatus {
1858
+ classes: {
1859
+ active: string[];
1860
+ unused: string[];
1861
+ all: string[];
1862
+ };
1863
+ metrics: CacheMetrics | null;
1864
+ }
1865
+ interface ChunkBreakdown {
1866
+ byChunk: Record<string, {
1867
+ classes: string[];
1868
+ cssSize: number;
1869
+ ruleCount: number;
1870
+ }>;
1871
+ totalChunkTypes: number;
1872
+ totalClasses: number;
1873
+ }
1874
+ interface Summary {
1875
+ activeClasses: string[];
1876
+ /** Classes `gc({ force: true })` would delete right now. */
1877
+ unusedClasses: string[];
1878
+ /**
1879
+ * Held but in neither list: nothing renders them, yet collection will not
1880
+ * take them — inside the grace window, or pinned by an `inject()` handle.
1881
+ */
1882
+ hotClasses: string[];
1883
+ totalStyledClasses: string[];
1884
+ activeCSSSize: number;
1885
+ unusedCSSSize: number;
1886
+ globalCSSSize: number;
1887
+ rawCSSSize: number;
1888
+ keyframesCSSSize: number;
1889
+ propertyCSSSize: number;
1890
+ totalCSSSize: number;
1891
+ activeRuleCount: number;
1892
+ unusedRuleCount: number;
1893
+ globalRuleCount: number;
1894
+ rawRuleCount: number;
1895
+ keyframesRuleCount: number;
1896
+ propertyRuleCount: number;
1897
+ totalRuleCount: number;
1898
+ metrics: CacheMetrics | null;
1899
+ definedProperties: string[];
1900
+ definedKeyframes: {
1901
+ name: string;
1902
+ refCount: number;
1903
+ }[];
1904
+ chunkBreakdown: ChunkBreakdown;
1905
+ }
1906
+ declare const tastyDebug: {
1907
+ css(target: CSSTarget, opts?: CSSOptions): string;
1908
+ inspect(target: string | Element, opts?: DebugOptions): InspectResult;
1909
+ summary(opts?: DebugOptions): Summary;
1910
+ chunks(opts?: DebugOptions): ChunkBreakdown;
1911
+ cache(opts?: DebugOptions): CacheStatus;
1912
+ cleanup(opts?: {
1913
+ root?: Document | ShadowRoot;
1914
+ }): void;
1915
+ help(): void;
1916
+ install(): void;
1917
+ };
1918
+ //#endregion
1919
+ export { createColorFunc as $, OuterStyleProps as $t, keyframes as A, strToRgb as An, TastyElementOptions as At, styleHandlers as B, BasePropsWithoutChildren as Bt, getRawCSSText as C, DEFAULT_ZERO_NAME_PREFIX as Cn, ResolveAsProps as Ct, injectRawCSS as D, getRgbValuesFromRgbaString as Dn, SubElementDefinition as Dt, injectGlobal as E, getNamedColorHex as En, ResolveTokenProps as Et, chunkSheetRegistry as F, VariantMap as Ft, ChunkName as G, ColorStyleProps as Gt, categorizeStyleKeys as H, BlockInnerStyleProps as Ht, ComputeStylesOptions as I, WithVariant as It, FONT_CHUNK_STYLES as J, ExtraBaseStyleProps as Jt, DIMENSION_CHUNK_STYLES as K, ContainerStyleProps as Kt, ComputeStylesResult as L, tasty as Lt, property as M, TastyPolymorphicComponent as Mt, touch as N, TastyProps as Nt, injector as O, hexToRgb as On, SubElementProps as Ot, ChunkSheetRegistry as P, TokenPropsInput as Pt, resolveFunctionColor as Q, Mods as Qt, computeStyles as R, AllBaseProps as Rt, getCSSTextForNode as S, DEFAULT_NAME_PREFIX as Sn, ModPropsInput as St, inject as T, isSelector as Tn, ResolveModProps as Tt, APPEARANCE_CHUNK_STYLES as U, BlockOuterStyleProps as Ut, ChunkInfo as V, BaseStyleProps as Vt, CHUNK_NAMES as W, BlockStyleProps as Wt, POSITION_CHUNK_STYLES as X, InnerStyleProps as Xt, LAYOUT_CHUNK_STYLES as Y, FlowStyleProps as Yt, STYLE_TO_CHUNK as Z, ModValue as Zt, destroy as _, FLOW_STYLES as _n, useStyles as _t, DebugOptions as a, TastyExtensionConfig as an, TastyBatchProvider as at, gc as b, POSITION_STYLES as bn, ElementsDefinition as bt, tastyDebug as c, TokenValue as cn, useFunction as ct, modAttrs as d, BLOCK_INNER_STYLES as dn, UsePropertyOptions as dt, PositionStyleProps as en, okhstFunction as et, color$1 as f, BLOCK_OUTER_STYLES as fn, useProperty as ft, createInjector as g, DIMENSION_STYLES as gn, UseStylesResult as gt, counterStyle as h, CONTAINER_STYLES as hn, useGlobalStyles as ht, DebugChunkInfo as i, TastyCustomProps as in, getDisplayName as it, ownKeyframes as j, TastyElementProps as jt, isPropertyDefined as k, hslToRgbValues as kn, TastyComponentPropsWithDefaults as kt, processTokens as l, Tokens as ln, useCounterStyle as lt, cleanup as m, COLOR_STYLES as mn, useRawCSS as mt, CacheStatus as n, TagName as nn, okhslFunction as nt, InspectResult as o, TastyThemeNames as on, TastyBatchProviderProps as ot, filterBaseProps as p, BLOCK_STYLES as pn, useKeyframes as pt, DISPLAY_CHUNK_STYLES as q, DimensionStyleProps as qt, ChunkBreakdown as r, TastyBaseStylePropNames as rn, okhslPlugin as rt, Summary as s, TextStyleProps as sn, UseFunctionOptions as st, CSSOptions as t, ShortGridStyles as tn, okhstPlugin as tt, resolveRecipes as u, BASE_STYLES as un, useFontFace as ut, fontFace as v, INNER_STYLES as vn, AllBasePropsWithMods as vt, holdKeyframes as w, hasStylesGenerated as wn, ResolveModPropDef as wt, getCSSText as x, TEXT_STYLES as xn, ModPropDef as xt, func as y, OUTER_STYLES as yn, Element$1 as yt, defineHandler as z, BaseProps as zt };
1920
+ //# sourceMappingURL=index-G9JuwM9p.d.ts.map