@tenphi/tasty 2.0.3 → 2.0.4

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 (322) hide show
  1. package/dist/{ssr/async-storage.js → async-storage-B7_o6FKt.js} +2 -2
  2. package/dist/async-storage-B7_o6FKt.js.map +1 -0
  3. package/dist/{ssr/collector.d.ts → collector-CkZ517g4.d.ts} +3 -3
  4. package/dist/{ssr/collector.js → collector-DXqvGOb1.js} +5 -10
  5. package/dist/collector-DXqvGOb1.js.map +1 -0
  6. package/dist/config-5jzS6k6B.js +10005 -0
  7. package/dist/config-5jzS6k6B.js.map +1 -0
  8. package/dist/config-DknGsfMo.d.ts +857 -0
  9. package/dist/{ssr/context.js → context-CkSg-kDT.js} +11 -3
  10. package/dist/context-CkSg-kDT.js.map +1 -0
  11. package/dist/core/index.d.ts +5 -34
  12. package/dist/core/index.js +5 -26
  13. package/dist/core-CtU6-9OC.js +1507 -0
  14. package/dist/core-CtU6-9OC.js.map +1 -0
  15. package/dist/{zero/extractor.js → css-writer-DHkX0JuE.js} +74 -11
  16. package/dist/css-writer-DHkX0JuE.js.map +1 -0
  17. package/dist/{ssr/format-global-rules.js → format-global-rules-Dbc_1tc3.js} +2 -2
  18. package/dist/format-global-rules-Dbc_1tc3.js.map +1 -0
  19. package/dist/format-rules-DH13ewDu.js +143 -0
  20. package/dist/format-rules-DH13ewDu.js.map +1 -0
  21. package/dist/{ssr/hydrate.js → hydrate-C1Gv-DoS.js} +3 -3
  22. package/dist/hydrate-C1Gv-DoS.js.map +1 -0
  23. package/dist/{styles/types.d.ts → index-PzENbpAq.d.ts} +701 -5
  24. package/dist/index-o7zV2yCr.d.ts +1561 -0
  25. package/dist/index.d.ts +5 -51
  26. package/dist/index.js +728 -35
  27. package/dist/index.js.map +1 -0
  28. package/dist/keyframes-b7X3UxDV.js +587 -0
  29. package/dist/keyframes-b7X3UxDV.js.map +1 -0
  30. package/dist/{utils/merge-styles.d.ts → merge-styles-C7KTy7MY.d.ts} +3 -3
  31. package/dist/{utils/merge-styles.js → merge-styles-Tgo3BbL2.js} +3 -4
  32. package/dist/merge-styles-Tgo3BbL2.js.map +1 -0
  33. package/dist/{utils/resolve-recipes.js → resolve-recipes-Ca2-5CxM.js} +4 -6
  34. package/dist/resolve-recipes-Ca2-5CxM.js.map +1 -0
  35. package/dist/ssr/astro-client.js +1 -1
  36. package/dist/ssr/astro.js +4 -4
  37. package/dist/ssr/index.d.ts +44 -4
  38. package/dist/ssr/index.js +4 -4
  39. package/dist/ssr/next.d.ts +1 -1
  40. package/dist/ssr/next.js +6 -6
  41. package/dist/ssr/next.js.map +1 -1
  42. package/dist/static/index.d.ts +91 -5
  43. package/dist/static/index.js +49 -3
  44. package/dist/static/index.js.map +1 -0
  45. package/dist/zero/babel.d.ts +1 -1
  46. package/dist/zero/babel.js +10 -6
  47. package/dist/zero/babel.js.map +1 -1
  48. package/dist/zero/index.d.ts +67 -3
  49. package/dist/zero/index.js +1 -2
  50. package/package.json +3 -3
  51. package/dist/_virtual/_rolldown/runtime.js +0 -7
  52. package/dist/chunks/cacheKey.d.ts +0 -1
  53. package/dist/chunks/cacheKey.js +0 -77
  54. package/dist/chunks/cacheKey.js.map +0 -1
  55. package/dist/chunks/definitions.d.ts +0 -37
  56. package/dist/chunks/definitions.js +0 -258
  57. package/dist/chunks/definitions.js.map +0 -1
  58. package/dist/chunks/index.d.ts +0 -1
  59. package/dist/chunks/renderChunk.d.ts +0 -1
  60. package/dist/chunks/renderChunk.js +0 -59
  61. package/dist/chunks/renderChunk.js.map +0 -1
  62. package/dist/compute-styles.d.ts +0 -31
  63. package/dist/compute-styles.js +0 -322
  64. package/dist/compute-styles.js.map +0 -1
  65. package/dist/config.d.ts +0 -407
  66. package/dist/config.js +0 -591
  67. package/dist/config.js.map +0 -1
  68. package/dist/counter-style/index.js +0 -51
  69. package/dist/counter-style/index.js.map +0 -1
  70. package/dist/debug.d.ts +0 -89
  71. package/dist/debug.js +0 -453
  72. package/dist/debug.js.map +0 -1
  73. package/dist/font-face/index.js +0 -63
  74. package/dist/font-face/index.js.map +0 -1
  75. package/dist/hooks/index.d.ts +0 -7
  76. package/dist/hooks/useCounterStyle.d.ts +0 -36
  77. package/dist/hooks/useCounterStyle.js +0 -65
  78. package/dist/hooks/useCounterStyle.js.map +0 -1
  79. package/dist/hooks/useFontFace.d.ts +0 -45
  80. package/dist/hooks/useFontFace.js +0 -66
  81. package/dist/hooks/useFontFace.js.map +0 -1
  82. package/dist/hooks/useGlobalStyles.d.ts +0 -46
  83. package/dist/hooks/useGlobalStyles.js +0 -88
  84. package/dist/hooks/useGlobalStyles.js.map +0 -1
  85. package/dist/hooks/useKeyframes.d.ts +0 -58
  86. package/dist/hooks/useKeyframes.js +0 -55
  87. package/dist/hooks/useKeyframes.js.map +0 -1
  88. package/dist/hooks/useProperty.d.ts +0 -81
  89. package/dist/hooks/useProperty.js +0 -96
  90. package/dist/hooks/useProperty.js.map +0 -1
  91. package/dist/hooks/useRawCSS.d.ts +0 -22
  92. package/dist/hooks/useRawCSS.js +0 -103
  93. package/dist/hooks/useRawCSS.js.map +0 -1
  94. package/dist/hooks/useStyles.d.ts +0 -40
  95. package/dist/hooks/useStyles.js +0 -31
  96. package/dist/hooks/useStyles.js.map +0 -1
  97. package/dist/injector/index.d.ts +0 -182
  98. package/dist/injector/index.js +0 -185
  99. package/dist/injector/index.js.map +0 -1
  100. package/dist/injector/injector.d.ts +0 -198
  101. package/dist/injector/injector.js +0 -651
  102. package/dist/injector/injector.js.map +0 -1
  103. package/dist/injector/sheet-manager.d.ts +0 -132
  104. package/dist/injector/sheet-manager.js +0 -699
  105. package/dist/injector/sheet-manager.js.map +0 -1
  106. package/dist/injector/types.d.ts +0 -235
  107. package/dist/keyframes/index.js +0 -206
  108. package/dist/keyframes/index.js.map +0 -1
  109. package/dist/parser/classify.js +0 -319
  110. package/dist/parser/classify.js.map +0 -1
  111. package/dist/parser/const.js +0 -60
  112. package/dist/parser/const.js.map +0 -1
  113. package/dist/parser/lru.js +0 -109
  114. package/dist/parser/lru.js.map +0 -1
  115. package/dist/parser/parser.d.ts +0 -25
  116. package/dist/parser/parser.js +0 -115
  117. package/dist/parser/parser.js.map +0 -1
  118. package/dist/parser/tokenizer.js +0 -69
  119. package/dist/parser/tokenizer.js.map +0 -1
  120. package/dist/parser/types.d.ts +0 -51
  121. package/dist/parser/types.js +0 -46
  122. package/dist/parser/types.js.map +0 -1
  123. package/dist/pipeline/conditions.d.ts +0 -134
  124. package/dist/pipeline/conditions.js +0 -406
  125. package/dist/pipeline/conditions.js.map +0 -1
  126. package/dist/pipeline/exclusive.js +0 -389
  127. package/dist/pipeline/exclusive.js.map +0 -1
  128. package/dist/pipeline/index.d.ts +0 -55
  129. package/dist/pipeline/index.js +0 -749
  130. package/dist/pipeline/index.js.map +0 -1
  131. package/dist/pipeline/materialize-contradictions.js +0 -125
  132. package/dist/pipeline/materialize-contradictions.js.map +0 -1
  133. package/dist/pipeline/materialize.js +0 -1038
  134. package/dist/pipeline/materialize.js.map +0 -1
  135. package/dist/pipeline/parseStateKey.d.ts +0 -15
  136. package/dist/pipeline/parseStateKey.js +0 -446
  137. package/dist/pipeline/parseStateKey.js.map +0 -1
  138. package/dist/pipeline/simplify.js +0 -725
  139. package/dist/pipeline/simplify.js.map +0 -1
  140. package/dist/pipeline/warnings.js +0 -18
  141. package/dist/pipeline/warnings.js.map +0 -1
  142. package/dist/plugins/index.d.ts +0 -2
  143. package/dist/plugins/okhsl-plugin.d.ts +0 -35
  144. package/dist/plugins/okhsl-plugin.js +0 -97
  145. package/dist/plugins/okhsl-plugin.js.map +0 -1
  146. package/dist/plugins/types.d.ts +0 -87
  147. package/dist/properties/index.js +0 -222
  148. package/dist/properties/index.js.map +0 -1
  149. package/dist/properties/property-type-resolver.d.ts +0 -24
  150. package/dist/properties/property-type-resolver.js +0 -90
  151. package/dist/properties/property-type-resolver.js.map +0 -1
  152. package/dist/rsc-cache.js +0 -79
  153. package/dist/rsc-cache.js.map +0 -1
  154. package/dist/ssr/async-storage.d.ts +0 -17
  155. package/dist/ssr/async-storage.js.map +0 -1
  156. package/dist/ssr/collect-auto-properties.js +0 -58
  157. package/dist/ssr/collect-auto-properties.js.map +0 -1
  158. package/dist/ssr/collector.js.map +0 -1
  159. package/dist/ssr/context.js.map +0 -1
  160. package/dist/ssr/format-global-rules.js.map +0 -1
  161. package/dist/ssr/format-keyframes.js +0 -69
  162. package/dist/ssr/format-keyframes.js.map +0 -1
  163. package/dist/ssr/format-property.js +0 -49
  164. package/dist/ssr/format-property.js.map +0 -1
  165. package/dist/ssr/format-rules.js +0 -73
  166. package/dist/ssr/format-rules.js.map +0 -1
  167. package/dist/ssr/hydrate.d.ts +0 -29
  168. package/dist/ssr/hydrate.js.map +0 -1
  169. package/dist/ssr/ssr-collector-ref.js +0 -29
  170. package/dist/ssr/ssr-collector-ref.js.map +0 -1
  171. package/dist/states/index.d.ts +0 -49
  172. package/dist/states/index.js +0 -170
  173. package/dist/states/index.js.map +0 -1
  174. package/dist/static/tastyStatic.d.ts +0 -46
  175. package/dist/static/tastyStatic.js +0 -30
  176. package/dist/static/tastyStatic.js.map +0 -1
  177. package/dist/static/types.d.ts +0 -49
  178. package/dist/static/types.js +0 -24
  179. package/dist/static/types.js.map +0 -1
  180. package/dist/styles/border.d.ts +0 -25
  181. package/dist/styles/border.js +0 -120
  182. package/dist/styles/border.js.map +0 -1
  183. package/dist/styles/color.d.ts +0 -14
  184. package/dist/styles/color.js +0 -26
  185. package/dist/styles/color.js.map +0 -1
  186. package/dist/styles/const.js +0 -17
  187. package/dist/styles/const.js.map +0 -1
  188. package/dist/styles/createStyle.js +0 -79
  189. package/dist/styles/createStyle.js.map +0 -1
  190. package/dist/styles/dimension.js +0 -109
  191. package/dist/styles/dimension.js.map +0 -1
  192. package/dist/styles/directional.js +0 -133
  193. package/dist/styles/directional.js.map +0 -1
  194. package/dist/styles/display.d.ts +0 -30
  195. package/dist/styles/display.js +0 -73
  196. package/dist/styles/display.js.map +0 -1
  197. package/dist/styles/fade.d.ts +0 -15
  198. package/dist/styles/fade.js +0 -62
  199. package/dist/styles/fade.js.map +0 -1
  200. package/dist/styles/fill.d.ts +0 -42
  201. package/dist/styles/fill.js +0 -51
  202. package/dist/styles/fill.js.map +0 -1
  203. package/dist/styles/flow.d.ts +0 -16
  204. package/dist/styles/flow.js +0 -12
  205. package/dist/styles/flow.js.map +0 -1
  206. package/dist/styles/gap.d.ts +0 -31
  207. package/dist/styles/gap.js +0 -38
  208. package/dist/styles/gap.js.map +0 -1
  209. package/dist/styles/height.d.ts +0 -17
  210. package/dist/styles/height.js +0 -19
  211. package/dist/styles/height.js.map +0 -1
  212. package/dist/styles/index.d.ts +0 -1
  213. package/dist/styles/index.js +0 -8
  214. package/dist/styles/index.js.map +0 -1
  215. package/dist/styles/inset.d.ts +0 -24
  216. package/dist/styles/inset.js +0 -34
  217. package/dist/styles/inset.js.map +0 -1
  218. package/dist/styles/list.d.ts +0 -16
  219. package/dist/styles/list.js +0 -100
  220. package/dist/styles/list.js.map +0 -1
  221. package/dist/styles/margin.d.ts +0 -24
  222. package/dist/styles/margin.js +0 -32
  223. package/dist/styles/margin.js.map +0 -1
  224. package/dist/styles/outline.d.ts +0 -29
  225. package/dist/styles/outline.js +0 -55
  226. package/dist/styles/outline.js.map +0 -1
  227. package/dist/styles/padding.d.ts +0 -24
  228. package/dist/styles/padding.js +0 -32
  229. package/dist/styles/padding.js.map +0 -1
  230. package/dist/styles/placement.d.ts +0 -37
  231. package/dist/styles/placement.js +0 -74
  232. package/dist/styles/placement.js.map +0 -1
  233. package/dist/styles/predefined.d.ts +0 -71
  234. package/dist/styles/predefined.js +0 -237
  235. package/dist/styles/predefined.js.map +0 -1
  236. package/dist/styles/preset.d.ts +0 -52
  237. package/dist/styles/preset.js +0 -127
  238. package/dist/styles/preset.js.map +0 -1
  239. package/dist/styles/radius.d.ts +0 -12
  240. package/dist/styles/radius.js +0 -83
  241. package/dist/styles/radius.js.map +0 -1
  242. package/dist/styles/scrollMargin.d.ts +0 -24
  243. package/dist/styles/scrollMargin.js +0 -32
  244. package/dist/styles/scrollMargin.js.map +0 -1
  245. package/dist/styles/scrollbar.d.ts +0 -25
  246. package/dist/styles/scrollbar.js +0 -51
  247. package/dist/styles/scrollbar.js.map +0 -1
  248. package/dist/styles/shadow.d.ts +0 -14
  249. package/dist/styles/shadow.js +0 -25
  250. package/dist/styles/shadow.js.map +0 -1
  251. package/dist/styles/shared.js +0 -17
  252. package/dist/styles/shared.js.map +0 -1
  253. package/dist/styles/transition.d.ts +0 -14
  254. package/dist/styles/transition.js +0 -159
  255. package/dist/styles/transition.js.map +0 -1
  256. package/dist/styles/width.d.ts +0 -17
  257. package/dist/styles/width.js +0 -19
  258. package/dist/styles/width.js.map +0 -1
  259. package/dist/tasty.d.ts +0 -134
  260. package/dist/tasty.js +0 -248
  261. package/dist/tasty.js.map +0 -1
  262. package/dist/types.d.ts +0 -184
  263. package/dist/utils/cache-wrapper.js +0 -21
  264. package/dist/utils/cache-wrapper.js.map +0 -1
  265. package/dist/utils/case-converter.js +0 -8
  266. package/dist/utils/case-converter.js.map +0 -1
  267. package/dist/utils/color-math.d.ts +0 -46
  268. package/dist/utils/color-math.js +0 -749
  269. package/dist/utils/color-math.js.map +0 -1
  270. package/dist/utils/color-space.d.ts +0 -5
  271. package/dist/utils/color-space.js +0 -228
  272. package/dist/utils/color-space.js.map +0 -1
  273. package/dist/utils/colors.d.ts +0 -5
  274. package/dist/utils/colors.js +0 -10
  275. package/dist/utils/colors.js.map +0 -1
  276. package/dist/utils/css-types.d.ts +0 -7
  277. package/dist/utils/deps-equal.js +0 -15
  278. package/dist/utils/deps-equal.js.map +0 -1
  279. package/dist/utils/dotize.d.ts +0 -26
  280. package/dist/utils/dotize.js +0 -122
  281. package/dist/utils/dotize.js.map +0 -1
  282. package/dist/utils/filter-base-props.d.ts +0 -15
  283. package/dist/utils/filter-base-props.js +0 -45
  284. package/dist/utils/filter-base-props.js.map +0 -1
  285. package/dist/utils/get-display-name.d.ts +0 -7
  286. package/dist/utils/get-display-name.js +0 -10
  287. package/dist/utils/get-display-name.js.map +0 -1
  288. package/dist/utils/has-keys.js +0 -13
  289. package/dist/utils/has-keys.js.map +0 -1
  290. package/dist/utils/hash.js +0 -14
  291. package/dist/utils/hash.js.map +0 -1
  292. package/dist/utils/is-dev-env.js +0 -19
  293. package/dist/utils/is-dev-env.js.map +0 -1
  294. package/dist/utils/is-valid-element-type.js +0 -15
  295. package/dist/utils/is-valid-element-type.js.map +0 -1
  296. package/dist/utils/merge-styles.js.map +0 -1
  297. package/dist/utils/mod-attrs.d.ts +0 -6
  298. package/dist/utils/mod-attrs.js +0 -20
  299. package/dist/utils/mod-attrs.js.map +0 -1
  300. package/dist/utils/process-tokens.d.ts +0 -17
  301. package/dist/utils/process-tokens.js +0 -83
  302. package/dist/utils/process-tokens.js.map +0 -1
  303. package/dist/utils/resolve-recipes.d.ts +0 -17
  304. package/dist/utils/resolve-recipes.js.map +0 -1
  305. package/dist/utils/selector-transform.js +0 -32
  306. package/dist/utils/selector-transform.js.map +0 -1
  307. package/dist/utils/string.js +0 -8
  308. package/dist/utils/string.js.map +0 -1
  309. package/dist/utils/styles.d.ts +0 -99
  310. package/dist/utils/styles.js +0 -220
  311. package/dist/utils/styles.js.map +0 -1
  312. package/dist/utils/typography.d.ts +0 -58
  313. package/dist/utils/typography.js +0 -51
  314. package/dist/utils/typography.js.map +0 -1
  315. package/dist/utils/warnings.d.ts +0 -16
  316. package/dist/utils/warnings.js +0 -16
  317. package/dist/utils/warnings.js.map +0 -1
  318. package/dist/zero/css-writer.d.ts +0 -45
  319. package/dist/zero/css-writer.js +0 -73
  320. package/dist/zero/css-writer.js.map +0 -1
  321. package/dist/zero/extractor.d.ts +0 -24
  322. package/dist/zero/extractor.js.map +0 -1
@@ -0,0 +1,1561 @@
1
+ import { Et as StyleInjectorConfig, I as StyleValue, L as StyleValueStateMap, b as Styles, bt as KeyframesSteps, ct as CacheMetrics, dt as FontFaceDescriptors, ft as FontFaceInput, gt as InjectResult, ht as GlobalInjectResult, it as StyleDetails, lt as CounterStyleDescriptors, mt as GCOptions, n as StyleResult, st as CSSProperties$1, x as StylesInterface, yt as KeyframesResult } from "./index-PzENbpAq.js";
2
+ import { b as StyleInjector, h as TastyPluginFactory } from "./config-DknGsfMo.js";
3
+ import { t as ServerStyleCollector } from "./collector-CkZ517g4.js";
4
+ import * as _$react from "react";
5
+ import { AllHTMLAttributes, CSSProperties, ComponentType, ElementType, ForwardRefExoticComponent, JSX, PropsWithoutRef, RefAttributes } from "react";
6
+
7
+ //#region src/plugins/okhsl-plugin.d.ts
8
+ /**
9
+ * The okhsl function handler for tasty parser.
10
+ * Receives parsed style groups and returns an RGB color string.
11
+ */
12
+ declare const okhslFunc: (groups: StyleDetails[]) => string;
13
+ /**
14
+ * OKHSL Plugin for Tasty.
15
+ *
16
+ * Adds support for the `okhsl()` color function in tasty styles.
17
+ *
18
+ * @example
19
+ * ```ts
20
+ * import { configure } from '@tenphi/tasty';
21
+ * import { okhslPlugin } from '@tenphi/tasty';
22
+ *
23
+ * configure({
24
+ * plugins: [okhslPlugin()],
25
+ * });
26
+ *
27
+ * // Now you can use okhsl in styles:
28
+ * const Box = tasty({
29
+ * styles: {
30
+ * fill: 'okhsl(240 50% 50%)',
31
+ * },
32
+ * });
33
+ * ```
34
+ */
35
+ declare const okhslPlugin: TastyPluginFactory;
36
+ //#endregion
37
+ //#region src/chunks/definitions.d.ts
38
+ declare const CHUNK_NAMES: {
39
+ /** Special chunk for styles that cannot be split */readonly COMBINED: "combined";
40
+ readonly SUBCOMPONENTS: "subcomponents";
41
+ readonly APPEARANCE: "appearance";
42
+ readonly FONT: "font";
43
+ readonly DIMENSION: "dimension";
44
+ readonly DISPLAY: "display";
45
+ readonly LAYOUT: "layout";
46
+ readonly POSITION: "position";
47
+ readonly MISC: "misc";
48
+ };
49
+ type ChunkName = (typeof CHUNK_NAMES)[keyof typeof CHUNK_NAMES];
50
+ /**
51
+ * Pre-computed map for O(1) style-to-chunk lookup.
52
+ * Built once at module load time.
53
+ */
54
+ declare const STYLE_TO_CHUNK: Map<string, ChunkName>;
55
+ interface ChunkInfo$1 {
56
+ /** Name of the chunk */
57
+ name: ChunkName | string;
58
+ /** Style keys belonging to this chunk */
59
+ styleKeys: string[];
60
+ }
61
+ /**
62
+ * Categorize style keys into chunks.
63
+ *
64
+ * Returns chunks in a deterministic order (by CHUNK_ORDER) regardless
65
+ * of the order of keys in the input styles object.
66
+ *
67
+ * @param styles - The styles object to categorize
68
+ * @returns Map of chunk name to array of style keys in that chunk (in priority order)
69
+ */
70
+ declare function categorizeStyleKeys(styles: Record<string, unknown>): Map<string, string[]>;
71
+ //#endregion
72
+ //#region src/styles/list.d.ts
73
+ declare const BASE_STYLES: readonly ["display", "font", "preset", "hide", "whiteSpace", "opacity", "transition"];
74
+ declare const POSITION_STYLES: readonly ["gridArea", "order", "gridColumn", "gridRow", "placeSelf", "alignSelf", "justifySelf", "zIndex", "margin", "inset", "position", "scrollMargin"];
75
+ declare const BLOCK_INNER_STYLES: readonly ["padding", "paddingInline", "paddingBlock", "overflow", "scrollbar", "textAlign"];
76
+ declare const BLOCK_OUTER_STYLES: readonly ["border", "radius", "shadow", "outline"];
77
+ declare const BLOCK_STYLES: readonly ["padding", "paddingInline", "paddingBlock", "overflow", "scrollbar", "textAlign", "border", "radius", "shadow", "outline"];
78
+ declare const COLOR_STYLES: readonly ["color", "fill", "fade", "image"];
79
+ declare const TEXT_STYLES: readonly ["textTransform", "fontWeight", "fontStyle"];
80
+ declare const DIMENSION_STYLES: readonly ["width", "height", "flexBasis", "flexGrow", "flexShrink", "flex"];
81
+ declare const FLOW_STYLES: readonly ["flow", "place", "placeItems", "placeContent", "alignItems", "alignContent", "justifyItems", "justifyContent", "align", "justify", "gap", "columnGap", "rowGap", "gridColumns", "gridRows", "gridTemplate", "gridAreas"];
82
+ declare const CONTAINER_STYLES: readonly ["display", "font", "preset", "hide", "whiteSpace", "opacity", "transition", "color", "fill", "fade", "image", "width", "height", "flexBasis", "flexGrow", "flexShrink", "flex", "gridArea", "order", "gridColumn", "gridRow", "placeSelf", "alignSelf", "justifySelf", "zIndex", "margin", "inset", "position", "scrollMargin", "padding", "paddingInline", "paddingBlock", "overflow", "scrollbar", "textAlign", "border", "radius", "shadow", "outline", "flow", "place", "placeItems", "placeContent", "alignItems", "alignContent", "justifyItems", "justifyContent", "align", "justify", "gap", "columnGap", "rowGap", "gridColumns", "gridRows", "gridTemplate", "gridAreas"];
83
+ declare const OUTER_STYLES: readonly ["gridArea", "order", "gridColumn", "gridRow", "placeSelf", "alignSelf", "justifySelf", "zIndex", "margin", "inset", "position", "scrollMargin", "width", "height", "flexBasis", "flexGrow", "flexShrink", "flex", "border", "radius", "shadow", "outline"];
84
+ declare const INNER_STYLES: readonly ["display", "font", "preset", "hide", "whiteSpace", "opacity", "transition", "color", "fill", "fade", "image", "padding", "paddingInline", "paddingBlock", "overflow", "scrollbar", "textAlign", "flow", "place", "placeItems", "placeContent", "alignItems", "alignContent", "justifyItems", "justifyContent", "align", "justify", "gap", "columnGap", "rowGap", "gridColumns", "gridRows", "gridTemplate", "gridAreas"];
85
+ //#endregion
86
+ //#region src/types.d.ts
87
+ interface GlobalStyledProps {
88
+ breakpoints?: number[];
89
+ }
90
+ /**
91
+ * Extensible interface for theme names.
92
+ * Augment this interface to register project-specific theme names for autocomplete.
93
+ *
94
+ * @example
95
+ * ```typescript
96
+ * declare module '@tenphi/tasty' {
97
+ * interface TastyThemeNames {
98
+ * danger: true;
99
+ * success: true;
100
+ * }
101
+ * }
102
+ * ```
103
+ */
104
+ interface TastyThemeNames {}
105
+ type ThemeNameKey = Extract<keyof TastyThemeNames, string>;
106
+ type ThemeName = [ThemeNameKey] extends [never] ? string : ThemeNameKey;
107
+ /** Allowed mod value types */
108
+ type ModValue = boolean | string | number | undefined | null;
109
+ /**
110
+ * Type for element modifiers (mods prop).
111
+ * Can be used as a generic to define known modifiers with autocomplete:
112
+ * @example
113
+ * type ButtonMods = Mods<{
114
+ * loading?: boolean;
115
+ * selected?: boolean;
116
+ * }>;
117
+ */
118
+ type Mods<T extends Record<string, ModValue> = Record<string, ModValue>> = T & Record<string, ModValue>;
119
+ /**
120
+ * Token value: string or number (processed), boolean for special handling, undefined/null (skipped).
121
+ * For color tokens (#name), boolean `true` is converted to `transparent`.
122
+ * For non-color tokens ($name), boolean `true` results in an empty string value.
123
+ * Boolean `false` results in no CSS output (token is skipped).
124
+ */
125
+ type TokenValue = string | number | boolean | undefined | null;
126
+ /**
127
+ * Tokens definition for inline CSS custom properties.
128
+ * - `$name` keys become `--name` CSS properties
129
+ * - `#name` keys become `--name-color` and `--name-color-{colorSpace}` CSS properties
130
+ */
131
+ type Tokens = Record<`$${string}` | `#${string}`, TokenValue>;
132
+ 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';
133
+ interface BasePropsWithoutChildren<K extends TagName = TagName> extends Pick<AllHTMLAttributes<HTMLElement>, 'className' | 'role' | 'id'> {
134
+ /** The HTML tag or React component to render as */
135
+ as?: K | ComponentType<any>;
136
+ /** QA ID for e2e testing. An alias for `data-qa` attribute. */
137
+ qa?: string;
138
+ /** QA value for e2e testing. An alias for `data-qaval` attribute. */
139
+ qaVal?: string | number;
140
+ /** Inner element name */
141
+ element?: `${Caps}${string}`;
142
+ /** The style map */
143
+ styles?: Styles;
144
+ /** The list of responsive points in pixels */
145
+ breakpoints?: number[];
146
+ /** Whether the element has the block layout outside */
147
+ block?: boolean;
148
+ /** Whether the element has the inline layout outside */
149
+ inline?: boolean;
150
+ /** The list of element modifiers **/
151
+ mods?: Mods;
152
+ /** Whether the element is hidden (`hidden` attribute is set) */
153
+ isHidden?: boolean;
154
+ /** Whether the element is disabled (`disabled` attribute is set) */
155
+ isDisabled?: boolean;
156
+ /** Plain css for the element */
157
+ css?: string;
158
+ /** The CSS style map */
159
+ style?: CSSProperties$1 | (CSSProperties$1 & Record<string, string | number | null | undefined>);
160
+ /** User-defined theme for the element. Mapped to `data-theme` attribute. Augment `TastyThemeNames` to register project-specific themes for autocomplete. */
161
+ theme?: ThemeName | (string & {});
162
+ /** CSS custom property tokens rendered as inline styles */
163
+ tokens?: Tokens;
164
+ }
165
+ interface BaseProps<K extends TagName = TagName> extends BasePropsWithoutChildren<K>, Pick<AllHTMLAttributes<HTMLElementTagNameMap[K]>, 'children'> {}
166
+ 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'> {}
167
+ type BaseStyleProps = Pick<Styles, (typeof BASE_STYLES)[number]>;
168
+ type PositionStyleProps = Pick<Styles, (typeof POSITION_STYLES)[number]>;
169
+ type BlockStyleProps = Pick<Styles, (typeof BLOCK_STYLES)[number]>;
170
+ type BlockInnerStyleProps = Pick<Styles, (typeof BLOCK_INNER_STYLES)[number]>;
171
+ type BlockOuterStyleProps = Pick<Styles, (typeof BLOCK_OUTER_STYLES)[number]>;
172
+ type ColorStyleProps = Pick<Styles, (typeof COLOR_STYLES)[number]>;
173
+ type TextStyleProps = Pick<Styles, (typeof TEXT_STYLES)[number]>;
174
+ type DimensionStyleProps = Pick<Styles, (typeof DIMENSION_STYLES)[number]>;
175
+ type FlowStyleProps = Pick<Styles, (typeof FLOW_STYLES)[number]>;
176
+ type ContainerStyleProps = Pick<Styles, (typeof CONTAINER_STYLES)[number]>;
177
+ type OuterStyleProps = Pick<Styles, (typeof OUTER_STYLES)[number]>;
178
+ type InnerStyleProps = Pick<Styles, (typeof INNER_STYLES)[number]>;
179
+ interface ShortGridStyles {
180
+ template?: Styles['gridTemplate'];
181
+ columns?: Styles['gridColumns'];
182
+ rows?: Styles['gridRows'];
183
+ areas?: Styles['gridAreas'];
184
+ }
185
+ type Props = Record<string, any>;
186
+ type TagName = keyof HTMLElementTagNameMap;
187
+ /**
188
+ * Configuration type for tasty.config.ts files.
189
+ * Used by the Tasty VSCode extension for validation and autocomplete.
190
+ *
191
+ * @example
192
+ * ```typescript
193
+ * import type { TastyExtensionConfig } from '@tenphi/tasty';
194
+ *
195
+ * const config: TastyExtensionConfig = {
196
+ * tokens: ['#primary', '#danger', '$spacing'],
197
+ * units: ['x', 'r', 'bw'],
198
+ * states: ['@mobile', '@tablet', '@dark'],
199
+ * presets: ['h1', 'h2', 't1', 't2'],
200
+ * };
201
+ *
202
+ * export default config;
203
+ * ```
204
+ */
205
+ interface TastyExtensionConfig {
206
+ /**
207
+ * Extend another config file. Path is relative to this config file.
208
+ * The extended config is merged first, then this config's values are added.
209
+ * @example '../tasty.config.ts'
210
+ */
211
+ extends?: string;
212
+ /**
213
+ * Valid token names for validation and autocomplete.
214
+ * Use # prefix for colors, $ prefix for custom properties.
215
+ * Set to `false` to disable token validation (overrides parent).
216
+ * @example ['#primary', '#danger', '$spacing', '$gap']
217
+ */
218
+ tokens?: false | string[];
219
+ /**
220
+ * Valid custom unit names.
221
+ * Set to `false` to disable unit validation (overrides parent).
222
+ * @example ['x', 'r', 'bw', 'cols']
223
+ */
224
+ units?: false | string[];
225
+ /**
226
+ * Valid custom function names.
227
+ * Set to `false` to disable function validation (overrides parent).
228
+ * @example ['clamp', 'double']
229
+ */
230
+ funcs?: false | string[];
231
+ /**
232
+ * State alias names for autocomplete.
233
+ * Must start with @ prefix.
234
+ * @example ['@mobile', '@tablet', '@dark']
235
+ */
236
+ states?: string[];
237
+ /**
238
+ * Valid preset names for the `preset` style property.
239
+ * Tasty has no built-in presets - they are project-specific.
240
+ * @example ['h1', 'h2', 'h3', 't1', 't2', 't3', 'tag']
241
+ */
242
+ presets?: string[];
243
+ /**
244
+ * Custom style property names added via configure({ handlers }).
245
+ * Suppresses "unknown property" warnings for these names.
246
+ * @example ['myGradient', 'customLayout', 'brandBorder']
247
+ */
248
+ styles?: string[];
249
+ /**
250
+ * Descriptions for presets, shown on hover in the extension.
251
+ * Maps preset names to human-readable descriptions.
252
+ * @example { h1: 'Heading 1 (36px/44px, semibold)', t1: 'Text large (18px/24px)' }
253
+ */
254
+ presetDescriptions?: Record<string, string>;
255
+ /**
256
+ * Descriptions for state aliases, shown on hover in the extension.
257
+ * Maps state names to human-readable descriptions.
258
+ * @example { '@mobile': 'Mobile viewport (width < 768px)' }
259
+ */
260
+ stateDescriptions?: Record<string, string>;
261
+ }
262
+ //#endregion
263
+ //#region src/tasty.d.ts
264
+ type StyleList = readonly (keyof { [key in keyof StylesInterface]: StylesInterface[key] })[];
265
+ /** Type descriptor for a single mod prop: a JS constructor or an enum array. */
266
+ type ModPropDef = BooleanConstructor | StringConstructor | NumberConstructor | readonly string[];
267
+ /** Array form: list of mod key names (types default to ModValue). */
268
+ type ModPropsList = readonly string[];
269
+ /** Object form: map of mod key names to type descriptors. */
270
+ type ModPropsMap = Readonly<Record<string, ModPropDef>>;
271
+ /** Either array or object form accepted by `modProps` option. */
272
+ type ModPropsInput = ModPropsList | ModPropsMap;
273
+ /** Resolve a single ModPropDef to its TypeScript type. */
274
+ type ResolveModPropDef<T> = T extends BooleanConstructor ? boolean : T extends StringConstructor ? string : T extends NumberConstructor ? number : T extends readonly (infer U)[] ? U : ModValue;
275
+ /** Resolve an entire `modProps` definition to the component prop types it adds. */
276
+ 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]> } : {};
277
+ /** A token key with `$` or `#` prefix. */
278
+ type TokenPropKey = `$${string}` | `#${string}`;
279
+ /** Array form: list of prop names. Names ending in `Color` map to `#` color tokens. */
280
+ type TokenPropsList = readonly string[];
281
+ /** Object form: prop name -> token key with explicit `$`/`#` prefix. */
282
+ type TokenPropsMap = Readonly<Record<string, TokenPropKey>>;
283
+ /** Either array or object form accepted by `tokenProps` option. */
284
+ type TokenPropsInput = TokenPropsList | TokenPropsMap;
285
+ /** Resolve a `tokenProps` definition to the component prop types it adds. */
286
+ 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>> : {};
287
+ type PropsWithStyles = {
288
+ styles?: Styles;
289
+ } & Omit<Props, 'styles'>;
290
+ type VariantMap = Record<string, Styles>;
291
+ interface WithVariant<V extends VariantMap> {
292
+ variant?: keyof V;
293
+ }
294
+ /**
295
+ * Definition for a sub-element. Can be either:
296
+ * - A tag name string (e.g., 'div', 'span')
297
+ * - An object with configuration options
298
+ */
299
+ type SubElementDefinition<Tag extends keyof JSX.IntrinsicElements = 'div'> = Tag | {
300
+ as?: Tag;
301
+ qa?: string;
302
+ qaVal?: string | number;
303
+ };
304
+ /**
305
+ * Map of sub-element definitions.
306
+ * Keys become the sub-component names (e.g., { Icon: 'span' } -> Component.Icon)
307
+ */
308
+ type ElementsDefinition = Record<string, SubElementDefinition<keyof JSX.IntrinsicElements>>;
309
+ /**
310
+ * Resolves the tag from a SubElementDefinition
311
+ */
312
+ type ResolveElementTag<T extends SubElementDefinition<any>> = T extends string ? T : T extends {
313
+ as?: infer Tag;
314
+ } ? Tag extends keyof JSX.IntrinsicElements ? Tag : 'div' : 'div';
315
+ /**
316
+ * Props for sub-element components.
317
+ * Combines HTML attributes with tasty-specific props (qa, qaVal, mods, tokens, isDisabled, etc.)
318
+ */
319
+ type SubElementProps<Tag extends keyof JSX.IntrinsicElements = 'div'> = Omit<JSX.IntrinsicElements[Tag], 'ref' | 'color' | 'content' | 'translate'> & {
320
+ qa?: string;
321
+ qaVal?: string | number;
322
+ mods?: Mods;
323
+ tokens?: Tokens;
324
+ isDisabled?: boolean;
325
+ isHidden?: boolean;
326
+ isChecked?: boolean;
327
+ };
328
+ /**
329
+ * Generates the sub-element component types from an ElementsDefinition
330
+ */
331
+ 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>> };
332
+ /**
333
+ * Base type containing common properties shared between TastyProps and TastyElementOptions.
334
+ * Separated to avoid code duplication while allowing different type constraints.
335
+ */
336
+ type TastyBaseProps<K extends StyleList, V extends VariantMap, E extends ElementsDefinition = Record<string, never>, M extends ModPropsInput = readonly never[], TP extends TokenPropsInput = readonly never[]> = {
337
+ /** Default styles of the element. */styles?: Styles; /** The list of styles that can be provided by props */
338
+ styleProps?: K; /** Modifier keys exposed as top-level component props (array or typed object form). */
339
+ modProps?: M; /** Token keys exposed as top-level component props (array or typed object form). */
340
+ tokenProps?: TP;
341
+ element?: BaseProps['element'];
342
+ variants?: V; /** Default tokens for inline CSS custom properties */
343
+ tokens?: Tokens; /** Sub-element definitions for compound components */
344
+ elements?: E;
345
+ } & Pick<BaseProps, 'qa' | 'qaVal'> & WithVariant<V>;
346
+ type TastyProps<K extends StyleList, V extends VariantMap, E extends ElementsDefinition = Record<string, never>, DefaultProps = Props, M extends ModPropsInput = readonly never[], TP extends TokenPropsInput = readonly never[]> = TastyBaseProps<K, V, E, M, TP> & {
347
+ /** The tag name of the element or a React component. */as?: string | ComponentType<any>;
348
+ } & Partial<Omit<DefaultProps, 'as' | 'styles' | 'styleProps' | 'modProps' | 'tokenProps' | 'tokens'>>;
349
+ /**
350
+ * TastyElementOptions is used for the element-creation overload of tasty().
351
+ * It includes a Tag generic that allows TypeScript to infer the correct
352
+ * HTML element type from the `as` prop.
353
+ *
354
+ * Note: Uses a separate index signature with `unknown` instead of inheriting
355
+ * from Props (which has `any`) to ensure strict type checking for styles.
356
+ */
357
+ type TastyElementOptions<K extends StyleList, V extends VariantMap, E extends ElementsDefinition = Record<string, never>, Tag extends keyof JSX.IntrinsicElements = 'div', M extends ModPropsInput = readonly never[], TP extends TokenPropsInput = readonly never[]> = TastyBaseProps<K, V, E, M, TP> & {
358
+ /** The tag name of the element or a React component. */as?: Tag | ComponentType<any>;
359
+ } & Record<string, unknown>;
360
+ 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 & ResolveModProps<M> & ResolveTokenProps<TP>;
361
+ /**
362
+ * Keys from BasePropsWithoutChildren that should be omitted from HTML attributes.
363
+ * This excludes event handlers so they can be properly typed from JSX.IntrinsicElements.
364
+ */
365
+ type TastySpecificKeys = 'as' | 'qa' | 'qaVal' | 'element' | 'styles' | 'breakpoints' | 'block' | 'inline' | 'mods' | 'isHidden' | 'isDisabled' | 'css' | 'style' | 'theme' | 'tokens' | 'ref' | 'color';
366
+ /** Extract prop key names from a ModPropsInput (array elements or object keys). */
367
+ type ModPropsKeys<M extends ModPropsInput> = M extends readonly (infer K)[] ? K & string : keyof M & string;
368
+ /** Extract prop key names from a TokenPropsInput (array elements or object keys). */
369
+ type TokenPropsKeys<TP extends TokenPropsInput> = TP extends readonly (infer K)[] ? K & string : keyof TP & string;
370
+ /**
371
+ * Props type for tasty elements that combines:
372
+ * - AllBasePropsWithMods for style props with strict tokens type
373
+ * - HTML attributes for flexibility (properly typed based on tag)
374
+ * - Variant support
375
+ *
376
+ * AllBasePropsWithMods carries generic AllHTMLAttributes which can conflict
377
+ * with tag-specific types from JSX.IntrinsicElements (e.g. `src` is `string`
378
+ * in AllHTMLAttributes but `string | Blob` in ImgHTMLAttributes). To avoid
379
+ * intersection-narrowing, we Omit tag-specific keys from AllBasePropsWithMods
380
+ * (keeping TastySpecificKeys, style props, mod props, and token props) and let
381
+ * JSX.IntrinsicElements supply the authoritative HTML attribute types.
382
+ */
383
+ type TastyElementProps<K extends StyleList, V extends VariantMap, Tag extends keyof JSX.IntrinsicElements = 'div', M extends ModPropsInput = readonly never[], TP extends TokenPropsInput = readonly never[]> = Omit<AllBasePropsWithMods<K, M, TP>, Exclude<keyof JSX.IntrinsicElements[Tag], TastySpecificKeys | K[number] | ModPropsKeys<M> | TokenPropsKeys<TP>>> & WithVariant<V> & Omit<Omit<AllHTMLAttributes<HTMLElement>, keyof JSX.IntrinsicElements[Tag]> & JSX.IntrinsicElements[Tag], TastySpecificKeys | K[number] | ModPropsKeys<M> | TokenPropsKeys<TP>>;
384
+ 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] };
385
+ declare function tasty<K extends StyleList, V extends VariantMap, E extends ElementsDefinition = Record<string, never>, Tag extends keyof JSX.IntrinsicElements = 'div', M extends ModPropsInput = readonly never[], TP extends TokenPropsInput = readonly never[]>(options: TastyElementOptions<K, V, E, Tag, M, TP>, secondArg?: never): ForwardRefExoticComponent<PropsWithoutRef<TastyElementProps<K, V, Tag, M, TP>> & RefAttributes<unknown>> & SubElementComponents<E>;
386
+ declare function tasty<Props extends PropsWithStyles, DefaultProps extends Partial<Props> = Partial<Props>>(Component: ComponentType<Props>, options?: TastyProps<never, never, Record<string, never>, Props>): ComponentType<TastyComponentPropsWithDefaults<Props, DefaultProps>>;
387
+ declare const Element$1: ForwardRefExoticComponent<Omit<AllBasePropsWithMods<StyleList, readonly never[], readonly never[]>, "slot" | "title" | "children" | "className" | "role" | "id" | "hidden" | "prefix" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "key"> & WithVariant<VariantMap> & Omit<Omit<AllHTMLAttributes<HTMLElement>, keyof _$react.ClassAttributes<HTMLDivElement> | keyof _$react.HTMLAttributes<HTMLDivElement>> & _$react.ClassAttributes<HTMLDivElement> & _$react.HTMLAttributes<HTMLDivElement>, "style" | "clipPath" | "filter" | "image" | "marker" | "mask" | "fill" | "display" | "font" | "preset" | "hide" | "whiteSpace" | "opacity" | "transition" | "gridArea" | "order" | "gridColumn" | "gridRow" | "placeSelf" | "alignSelf" | "justifySelf" | "zIndex" | "margin" | "inset" | "position" | "scrollMargin" | "padding" | "paddingInline" | "paddingBlock" | "overflow" | "scrollbar" | "textAlign" | "border" | "radius" | "shadow" | "outline" | "color" | "fade" | "textTransform" | "fontWeight" | "fontStyle" | "width" | "height" | "flexBasis" | "flexGrow" | "flexShrink" | "flex" | "flow" | "place" | "placeItems" | "placeContent" | "alignItems" | "alignContent" | "justifyItems" | "justifyContent" | "align" | "justify" | "gap" | "columnGap" | "rowGap" | "gridColumns" | "gridRows" | "gridTemplate" | "gridAreas" | "top" | "right" | "bottom" | "left" | "mods" | "css" | "content" | "translate" | "as" | "background" | "all" | "page" | "qa" | "qaVal" | "scrollMarginTop" | "scrollMarginRight" | "scrollMarginBottom" | "scrollMarginLeft" | "scrollMarginBlock" | "scrollMarginInline" | "accentColor" | "alignTracks" | "alignmentBaseline" | "anchorName" | "anchorScope" | "animationComposition" | "animationDelay" | "animationDirection" | "animationDuration" | "animationFillMode" | "animationIterationCount" | "animationName" | "animationPlayState" | "animationRangeEnd" | "animationRangeStart" | "animationTimeline" | "animationTimingFunction" | "appearance" | "aspectRatio" | "backdropFilter" | "backfaceVisibility" | "backgroundAttachment" | "backgroundBlendMode" | "backgroundClip" | "backgroundColor" | "backgroundImage" | "backgroundOrigin" | "backgroundPositionX" | "backgroundPositionY" | "backgroundRepeat" | "backgroundSize" | "baselineShift" | "blockSize" | "borderBlockEndColor" | "borderBlockEndStyle" | "borderBlockEndWidth" | "borderBlockStartColor" | "borderBlockStartStyle" | "borderBlockStartWidth" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderCollapse" | "borderEndEndRadius" | "borderEndStartRadius" | "borderImageOutset" | "borderImageRepeat" | "borderImageSlice" | "borderImageSource" | "borderImageWidth" | "borderInlineEndColor" | "borderInlineEndStyle" | "borderInlineEndWidth" | "borderInlineStartColor" | "borderInlineStartStyle" | "borderInlineStartWidth" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderSpacing" | "borderStartEndRadius" | "borderStartStartRadius" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "boxDecorationBreak" | "boxShadow" | "boxSizing" | "breakAfter" | "breakBefore" | "breakInside" | "captionSide" | "caretColor" | "caretShape" | "clear" | "clipRule" | "colorAdjust" | "colorInterpolationFilters" | "colorScheme" | "columnCount" | "columnFill" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "contain" | "containIntrinsicBlockSize" | "containIntrinsicHeight" | "containIntrinsicInlineSize" | "containIntrinsicWidth" | "containerName" | "containerType" | "contentVisibility" | "counterIncrement" | "counterReset" | "counterSet" | "cursor" | "cx" | "cy" | "d" | "direction" | "dominantBaseline" | "emptyCells" | "fieldSizing" | "fillOpacity" | "fillRule" | "flexDirection" | "flexWrap" | "float" | "floodColor" | "floodOpacity" | "fontFamily" | "fontFeatureSettings" | "fontKerning" | "fontLanguageOverride" | "fontOpticalSizing" | "fontPalette" | "fontSize" | "fontSizeAdjust" | "fontSmooth" | "fontSynthesis" | "fontSynthesisPosition" | "fontSynthesisSmallCaps" | "fontSynthesisStyle" | "fontSynthesisWeight" | "fontVariant" | "fontVariantAlternates" | "fontVariantCaps" | "fontVariantEastAsian" | "fontVariantEmoji" | "fontVariantLigatures" | "fontVariantNumeric" | "fontVariantPosition" | "fontVariationSettings" | "fontWidth" | "forcedColorAdjust" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "hangingPunctuation" | "hyphenateCharacter" | "hyphenateLimitChars" | "hyphens" | "imageOrientation" | "imageRendering" | "imageResolution" | "initialLetter" | "initialLetterAlign" | "inlineSize" | "insetBlockEnd" | "insetBlockStart" | "insetInlineEnd" | "insetInlineStart" | "interpolateSize" | "isolation" | "justifyTracks" | "letterSpacing" | "lightingColor" | "lineBreak" | "lineHeight" | "lineHeightStep" | "listStyleImage" | "listStylePosition" | "listStyleType" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "marginTrim" | "markerEnd" | "markerMid" | "markerStart" | "maskBorderMode" | "maskBorderOutset" | "maskBorderRepeat" | "maskBorderSlice" | "maskBorderSource" | "maskBorderWidth" | "maskClip" | "maskComposite" | "maskImage" | "maskMode" | "maskOrigin" | "maskPosition" | "maskRepeat" | "maskSize" | "maskType" | "masonryAutoFlow" | "mathDepth" | "mathShift" | "mathStyle" | "maxBlockSize" | "maxHeight" | "maxInlineSize" | "maxLines" | "maxWidth" | "minBlockSize" | "minHeight" | "minInlineSize" | "minWidth" | "mixBlendMode" | "motionDistance" | "motionPath" | "motionRotation" | "objectFit" | "objectPosition" | "objectViewBox" | "offsetAnchor" | "offsetDistance" | "offsetPath" | "offsetPosition" | "offsetRotate" | "offsetRotation" | "orphans" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "overflowAnchor" | "overflowBlock" | "overflowClipBox" | "overflowClipMargin" | "overflowInline" | "overflowWrap" | "overflowX" | "overflowY" | "overlay" | "overscrollBehaviorBlock" | "overscrollBehaviorInline" | "overscrollBehaviorX" | "overscrollBehaviorY" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "paintOrder" | "perspective" | "perspectiveOrigin" | "pointerEvents" | "positionAnchor" | "positionArea" | "positionTryFallbacks" | "positionTryOrder" | "positionVisibility" | "printColorAdjust" | "quotes" | "r" | "resize" | "rotate" | "rubyAlign" | "rubyMerge" | "rubyOverhang" | "rubyPosition" | "rx" | "ry" | "scale" | "scrollBehavior" | "scrollInitialTarget" | "scrollMarginBlockEnd" | "scrollMarginBlockStart" | "scrollMarginInlineEnd" | "scrollMarginInlineStart" | "scrollPaddingBlockEnd" | "scrollPaddingBlockStart" | "scrollPaddingBottom" | "scrollPaddingInlineEnd" | "scrollPaddingInlineStart" | "scrollPaddingLeft" | "scrollPaddingRight" | "scrollPaddingTop" | "scrollSnapAlign" | "scrollSnapMarginBottom" | "scrollSnapMarginLeft" | "scrollSnapMarginRight" | "scrollSnapMarginTop" | "scrollSnapStop" | "scrollSnapType" | "scrollTimelineAxis" | "scrollTimelineName" | "scrollbarColor" | "scrollbarGutter" | "scrollbarWidth" | "shapeImageThreshold" | "shapeMargin" | "shapeOutside" | "shapeRendering" | "speakAs" | "stopColor" | "stopOpacity" | "stroke" | "strokeColor" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "tabSize" | "tableLayout" | "textAlignLast" | "textAnchor" | "textAutospace" | "textBox" | "textBoxEdge" | "textBoxTrim" | "textCombineUpright" | "textDecorationColor" | "textDecorationLine" | "textDecorationSkip" | "textDecorationSkipInk" | "textDecorationStyle" | "textDecorationThickness" | "textEmphasisColor" | "textEmphasisPosition" | "textEmphasisStyle" | "textIndent" | "textJustify" | "textOrientation" | "textOverflow" | "textRendering" | "textShadow" | "textSizeAdjust" | "textSpacingTrim" | "textUnderlineOffset" | "textUnderlinePosition" | "textWrapMode" | "textWrapStyle" | "timelineScope" | "touchAction" | "transform" | "transformBox" | "transformOrigin" | "transformStyle" | "transitionBehavior" | "transitionDelay" | "transitionDuration" | "transitionProperty" | "transitionTimingFunction" | "unicodeBidi" | "userSelect" | "vectorEffect" | "verticalAlign" | "viewTimelineAxis" | "viewTimelineInset" | "viewTimelineName" | "viewTransitionClass" | "viewTransitionName" | "visibility" | "whiteSpaceCollapse" | "widows" | "willChange" | "wordBreak" | "wordSpacing" | "wordWrap" | "writingMode" | "x" | "y" | "zoom" | "animation" | "animationRange" | "backgroundPosition" | "borderBlock" | "borderBlockColor" | "borderBlockEnd" | "borderBlockStart" | "borderBlockStyle" | "borderBlockWidth" | "borderBottom" | "borderColor" | "borderImage" | "borderInline" | "borderInlineColor" | "borderInlineEnd" | "borderInlineStart" | "borderInlineStyle" | "borderInlineWidth" | "borderLeft" | "borderRadius" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "caret" | "columnRule" | "columns" | "containIntrinsicSize" | "container" | "flexFlow" | "grid" | "insetBlock" | "insetInline" | "lineClamp" | "listStyle" | "marginBlock" | "marginInline" | "maskBorder" | "motion" | "offset" | "overscrollBehavior" | "positionTry" | "scrollPadding" | "scrollPaddingBlock" | "scrollPaddingInline" | "scrollSnapMargin" | "scrollTimeline" | "textDecoration" | "textEmphasis" | "textWrap" | "viewTimeline" | "MozAnimationDelay" | "MozAnimationDirection" | "MozAnimationDuration" | "MozAnimationFillMode" | "MozAnimationIterationCount" | "MozAnimationName" | "MozAnimationPlayState" | "MozAnimationTimingFunction" | "MozAppearance" | "MozBackfaceVisibility" | "MozBinding" | "MozBorderBottomColors" | "MozBorderEndColor" | "MozBorderEndStyle" | "MozBorderEndWidth" | "MozBorderLeftColors" | "MozBorderRightColors" | "MozBorderStartColor" | "MozBorderStartStyle" | "MozBorderTopColors" | "MozBoxSizing" | "MozColumnRuleColor" | "MozColumnRuleStyle" | "MozColumnRuleWidth" | "MozColumnWidth" | "MozContextProperties" | "MozFontFeatureSettings" | "MozFontLanguageOverride" | "MozHyphens" | "MozMarginEnd" | "MozMarginStart" | "MozOrient" | "MozOsxFontSmoothing" | "MozOutlineRadiusBottomleft" | "MozOutlineRadiusBottomright" | "MozOutlineRadiusTopleft" | "MozOutlineRadiusTopright" | "MozPaddingEnd" | "MozPaddingStart" | "MozPerspective" | "MozPerspectiveOrigin" | "MozStackSizing" | "MozTabSize" | "MozTextBlink" | "MozTextSizeAdjust" | "MozTransform" | "MozTransformOrigin" | "MozTransformStyle" | "MozUserModify" | "MozUserSelect" | "MozWindowDragging" | "MozWindowShadow" | "msAccelerator" | "msBlockProgression" | "msContentZoomChaining" | "msContentZoomLimitMax" | "msContentZoomLimitMin" | "msContentZoomSnapPoints" | "msContentZoomSnapType" | "msContentZooming" | "msFilter" | "msFlexDirection" | "msFlexPositive" | "msFlowFrom" | "msFlowInto" | "msGridColumns" | "msGridRows" | "msHighContrastAdjust" | "msHyphenateLimitChars" | "msHyphenateLimitLines" | "msHyphenateLimitZone" | "msHyphens" | "msImeAlign" | "msLineBreak" | "msOrder" | "msOverflowStyle" | "msOverflowX" | "msOverflowY" | "msScrollChaining" | "msScrollLimitXMax" | "msScrollLimitXMin" | "msScrollLimitYMax" | "msScrollLimitYMin" | "msScrollRails" | "msScrollSnapPointsX" | "msScrollSnapPointsY" | "msScrollSnapType" | "msScrollTranslation" | "msScrollbar3dlightColor" | "msScrollbarArrowColor" | "msScrollbarBaseColor" | "msScrollbarDarkshadowColor" | "msScrollbarFaceColor" | "msScrollbarHighlightColor" | "msScrollbarShadowColor" | "msScrollbarTrackColor" | "msTextAutospace" | "msTextCombineHorizontal" | "msTextOverflow" | "msTouchAction" | "msTouchSelect" | "msTransform" | "msTransformOrigin" | "msTransitionDelay" | "msTransitionDuration" | "msTransitionProperty" | "msTransitionTimingFunction" | "msUserSelect" | "msWordBreak" | "msWrapFlow" | "msWrapMargin" | "msWrapThrough" | "msWritingMode" | "WebkitAlignContent" | "WebkitAlignItems" | "WebkitAlignSelf" | "WebkitAnimationDelay" | "WebkitAnimationDirection" | "WebkitAnimationDuration" | "WebkitAnimationFillMode" | "WebkitAnimationIterationCount" | "WebkitAnimationName" | "WebkitAnimationPlayState" | "WebkitAnimationTimingFunction" | "WebkitAppearance" | "WebkitBackdropFilter" | "WebkitBackfaceVisibility" | "WebkitBackgroundClip" | "WebkitBackgroundOrigin" | "WebkitBackgroundSize" | "WebkitBorderBeforeColor" | "WebkitBorderBeforeStyle" | "WebkitBorderBeforeWidth" | "WebkitBorderBottomLeftRadius" | "WebkitBorderBottomRightRadius" | "WebkitBorderImageSlice" | "WebkitBorderTopLeftRadius" | "WebkitBorderTopRightRadius" | "WebkitBoxDecorationBreak" | "WebkitBoxReflect" | "WebkitBoxShadow" | "WebkitBoxSizing" | "WebkitClipPath" | "WebkitColumnCount" | "WebkitColumnFill" | "WebkitColumnRuleColor" | "WebkitColumnRuleStyle" | "WebkitColumnRuleWidth" | "WebkitColumnSpan" | "WebkitColumnWidth" | "WebkitFilter" | "WebkitFlexBasis" | "WebkitFlexDirection" | "WebkitFlexGrow" | "WebkitFlexShrink" | "WebkitFlexWrap" | "WebkitFontFeatureSettings" | "WebkitFontKerning" | "WebkitFontSmoothing" | "WebkitFontVariantLigatures" | "WebkitHyphenateCharacter" | "WebkitHyphens" | "WebkitInitialLetter" | "WebkitJustifyContent" | "WebkitLineBreak" | "WebkitLineClamp" | "WebkitLogicalHeight" | "WebkitLogicalWidth" | "WebkitMarginEnd" | "WebkitMarginStart" | "WebkitMaskAttachment" | "WebkitMaskBoxImageOutset" | "WebkitMaskBoxImageRepeat" | "WebkitMaskBoxImageSlice" | "WebkitMaskBoxImageSource" | "WebkitMaskBoxImageWidth" | "WebkitMaskClip" | "WebkitMaskComposite" | "WebkitMaskImage" | "WebkitMaskOrigin" | "WebkitMaskPosition" | "WebkitMaskPositionX" | "WebkitMaskPositionY" | "WebkitMaskRepeat" | "WebkitMaskRepeatX" | "WebkitMaskRepeatY" | "WebkitMaskSize" | "WebkitMaxInlineSize" | "WebkitOrder" | "WebkitOverflowScrolling" | "WebkitPaddingEnd" | "WebkitPaddingStart" | "WebkitPerspective" | "WebkitPerspectiveOrigin" | "WebkitPrintColorAdjust" | "WebkitRubyPosition" | "WebkitScrollSnapType" | "WebkitShapeMargin" | "WebkitTapHighlightColor" | "WebkitTextCombine" | "WebkitTextDecorationColor" | "WebkitTextDecorationLine" | "WebkitTextDecorationSkip" | "WebkitTextDecorationStyle" | "WebkitTextEmphasisColor" | "WebkitTextEmphasisPosition" | "WebkitTextEmphasisStyle" | "WebkitTextFillColor" | "WebkitTextOrientation" | "WebkitTextSizeAdjust" | "WebkitTextStrokeColor" | "WebkitTextStrokeWidth" | "WebkitTextUnderlinePosition" | "WebkitTouchCallout" | "WebkitTransform" | "WebkitTransformOrigin" | "WebkitTransformStyle" | "WebkitTransitionDelay" | "WebkitTransitionDuration" | "WebkitTransitionProperty" | "WebkitTransitionTimingFunction" | "WebkitUserModify" | "WebkitUserSelect" | "WebkitWritingMode" | "MozAnimation" | "MozBorderImage" | "MozColumnRule" | "MozColumns" | "MozOutlineRadius" | "MozTransition" | "msContentZoomLimit" | "msContentZoomSnap" | "msFlex" | "msScrollLimit" | "msScrollSnapX" | "msScrollSnapY" | "msTransition" | "WebkitAnimation" | "WebkitBorderBefore" | "WebkitBorderImage" | "WebkitBorderRadius" | "WebkitColumnRule" | "WebkitColumns" | "WebkitFlex" | "WebkitFlexFlow" | "WebkitMask" | "WebkitMaskBoxImage" | "WebkitTextEmphasis" | "WebkitTextStroke" | "WebkitTransition" | "boxAlign" | "boxDirection" | "boxFlex" | "boxFlexGroup" | "boxLines" | "boxOrdinalGroup" | "boxOrient" | "boxPack" | "clip" | "fontStretch" | "gridColumnGap" | "gridGap" | "gridRowGap" | "imeMode" | "insetArea" | "offsetBlock" | "offsetBlockEnd" | "offsetBlockStart" | "offsetInline" | "offsetInlineEnd" | "offsetInlineStart" | "pageBreakAfter" | "pageBreakBefore" | "pageBreakInside" | "positionTryOptions" | "scrollSnapCoordinate" | "scrollSnapDestination" | "scrollSnapPointsX" | "scrollSnapPointsY" | "scrollSnapTypeX" | "scrollSnapTypeY" | "KhtmlBoxAlign" | "KhtmlBoxDirection" | "KhtmlBoxFlex" | "KhtmlBoxFlexGroup" | "KhtmlBoxLines" | "KhtmlBoxOrdinalGroup" | "KhtmlBoxOrient" | "KhtmlBoxPack" | "KhtmlLineBreak" | "KhtmlOpacity" | "KhtmlUserSelect" | "MozBackgroundClip" | "MozBackgroundOrigin" | "MozBackgroundSize" | "MozBorderRadius" | "MozBorderRadiusBottomleft" | "MozBorderRadiusBottomright" | "MozBorderRadiusTopleft" | "MozBorderRadiusTopright" | "MozBoxAlign" | "MozBoxDirection" | "MozBoxFlex" | "MozBoxOrdinalGroup" | "MozBoxOrient" | "MozBoxPack" | "MozBoxShadow" | "MozColumnCount" | "MozColumnFill" | "MozFloatEdge" | "MozForceBrokenImageIcon" | "MozOpacity" | "MozOutline" | "MozOutlineColor" | "MozOutlineStyle" | "MozOutlineWidth" | "MozTextAlignLast" | "MozTextDecorationColor" | "MozTextDecorationLine" | "MozTextDecorationStyle" | "MozTransitionDelay" | "MozTransitionDuration" | "MozTransitionProperty" | "MozTransitionTimingFunction" | "MozUserFocus" | "MozUserInput" | "msImeMode" | "OAnimation" | "OAnimationDelay" | "OAnimationDirection" | "OAnimationDuration" | "OAnimationFillMode" | "OAnimationIterationCount" | "OAnimationName" | "OAnimationPlayState" | "OAnimationTimingFunction" | "OBackgroundSize" | "OBorderImage" | "OObjectFit" | "OObjectPosition" | "OTabSize" | "OTextOverflow" | "OTransform" | "OTransformOrigin" | "OTransition" | "OTransitionDelay" | "OTransitionDuration" | "OTransitionProperty" | "OTransitionTimingFunction" | "WebkitBoxAlign" | "WebkitBoxDirection" | "WebkitBoxFlex" | "WebkitBoxFlexGroup" | "WebkitBoxLines" | "WebkitBoxOrdinalGroup" | "WebkitBoxOrient" | "WebkitBoxPack" | "colorInterpolation" | "colorRendering" | "glyphOrientationVertical" | "svgFill" | "boldFontWeight" | "@keyframes" | "@properties" | "@fontFace" | "@counterStyle" | "recipe" | "element" | "styles" | "breakpoints" | "block" | "inline" | "isHidden" | "isDisabled" | "theme" | "tokens" | "ref"> & RefAttributes<unknown>> & SubElementComponents<Record<string, never>>;
388
+ //#endregion
389
+ //#region src/hooks/useStyles.d.ts
390
+ /**
391
+ * Tasty styles object to generate CSS classes for.
392
+ * Can be undefined or empty object for no styles.
393
+ */
394
+ type UseStylesOptions = Styles | undefined;
395
+ interface UseStylesResult {
396
+ /**
397
+ * Generated className(s) to apply to the element.
398
+ * Can be empty string if no styles are provided.
399
+ * With chunking enabled, may contain multiple space-separated class names.
400
+ */
401
+ className: string;
402
+ }
403
+ /**
404
+ * Hook to generate CSS classes from Tasty styles.
405
+ * Thin wrapper around `computeStyles()` that adds React context-based
406
+ * SSR collector discovery for backward compatibility with TastyRegistry.
407
+ *
408
+ * For hook-free usage (e.g. in server components), use `computeStyles()` directly.
409
+ *
410
+ * @example
411
+ * ```tsx
412
+ * function MyComponent() {
413
+ * const { className } = useStyles({
414
+ * padding: '2x',
415
+ * fill: '#purple',
416
+ * radius: '1r',
417
+ * });
418
+ *
419
+ * return <div className={className}>Styled content</div>;
420
+ * }
421
+ * ```
422
+ */
423
+ declare function useStyles(styles: UseStylesOptions): UseStylesResult;
424
+ //#endregion
425
+ //#region src/hooks/useGlobalStyles.d.ts
426
+ interface UseGlobalStylesOptions {
427
+ /**
428
+ * Stable identifier for update tracking (client-only). When provided,
429
+ * changing the styles will dispose the previous injection and inject the
430
+ * new one. Without an id, the selector is used as the slot key.
431
+ * In RSC mode, renders are single-pass so update tracking does not apply.
432
+ */
433
+ id?: string;
434
+ }
435
+ /**
436
+ * Inject global styles for a given selector.
437
+ * Useful for styling elements by selector without generating classNames.
438
+ *
439
+ * SSR-aware: when a ServerStyleCollector is available, CSS is collected
440
+ * during the render phase instead of being injected into the DOM.
441
+ *
442
+ * Works in all environments: client, SSR with collector, and React Server Components.
443
+ *
444
+ * Injected styles are permanent — they are not cleaned up on component unmount.
445
+ * Use the `id` option for update tracking when styles change over the
446
+ * component lifecycle.
447
+ *
448
+ * @param selector - CSS selector to apply styles to (e.g., '.my-class', ':root', 'body')
449
+ * @param styles - Tasty styles object
450
+ * @param options - Optional settings including `id` for update tracking
451
+ *
452
+ * @example
453
+ * ```tsx
454
+ * function MyComponent() {
455
+ * useGlobalStyles('.card', {
456
+ * padding: '2x',
457
+ * radius: '1r',
458
+ * fill: '#white',
459
+ * });
460
+ *
461
+ * return <div className="card">Content</div>;
462
+ * }
463
+ * ```
464
+ */
465
+ declare function useGlobalStyles(selector: string, styles?: Styles, options?: UseGlobalStylesOptions): void;
466
+ //#endregion
467
+ //#region src/hooks/useRawCSS.d.ts
468
+ interface UseRawCSSOptions {
469
+ /**
470
+ * Shadow root or document to inject into.
471
+ * Note: `root` is not part of the update-tracking comparison — changing
472
+ * only the root for the same id/content will not re-inject.
473
+ */
474
+ root?: Document | ShadowRoot;
475
+ /**
476
+ * Stable identifier for update tracking (client-only). When provided,
477
+ * changing the CSS content will dispose the previous injection and inject
478
+ * the new one. Without an id, deduplication is purely content-based (same
479
+ * CSS is injected only once). In RSC mode, renders are single-pass so
480
+ * update tracking does not apply.
481
+ */
482
+ id?: string;
483
+ }
484
+ declare function useRawCSS(css: string, options?: UseRawCSSOptions): void;
485
+ declare function useRawCSS(factory: () => string, deps: readonly unknown[], options?: UseRawCSSOptions): void;
486
+ //#endregion
487
+ //#region src/hooks/useKeyframes.d.ts
488
+ interface UseKeyframesOptions {
489
+ name?: string;
490
+ root?: Document | ShadowRoot;
491
+ }
492
+ /**
493
+ * Inject CSS @keyframes and return the generated animation name.
494
+ * Deduplicates by content — identical steps always return the same name.
495
+ *
496
+ * Works in all environments: client, SSR with collector, and React Server Components.
497
+ *
498
+ * @example Basic usage - steps object is the dependency
499
+ * ```tsx
500
+ * function MyComponent() {
501
+ * const bounce = useKeyframes({
502
+ * '0%': { transform: 'scale(1)' },
503
+ * '50%': { transform: 'scale(1.1)' },
504
+ * '100%': { transform: 'scale(1)' },
505
+ * });
506
+ *
507
+ * return <div style={{ animation: `${bounce} 1s infinite` }}>Bouncing</div>;
508
+ * }
509
+ * ```
510
+ *
511
+ * @example With custom name
512
+ * ```tsx
513
+ * function MyComponent() {
514
+ * const fadeIn = useKeyframes(
515
+ * { from: { opacity: 0 }, to: { opacity: 1 } },
516
+ * { name: 'fadeIn' }
517
+ * );
518
+ *
519
+ * return <div style={{ animation: `${fadeIn} 0.3s ease-out` }}>Fading in</div>;
520
+ * }
521
+ * ```
522
+ *
523
+ * @example Factory function with dependencies
524
+ * ```tsx
525
+ * function MyComponent({ scale }: { scale: number }) {
526
+ * const pulse = useKeyframes(
527
+ * () => ({
528
+ * '0%': { transform: 'scale(1)' },
529
+ * '100%': { transform: `scale(${scale})` },
530
+ * }),
531
+ * [scale]
532
+ * );
533
+ *
534
+ * return <div style={{ animation: `${pulse} 1s infinite` }}>Pulsing</div>;
535
+ * }
536
+ * ```
537
+ */
538
+ declare function useKeyframes(steps: KeyframesSteps, options?: UseKeyframesOptions): string;
539
+ declare function useKeyframes(factory: () => KeyframesSteps, deps: readonly unknown[], options?: UseKeyframesOptions): string;
540
+ //#endregion
541
+ //#region src/hooks/useProperty.d.ts
542
+ interface UsePropertyOptions {
543
+ /**
544
+ * CSS syntax string for the property (e.g., '<color>', '<length>', '<angle>').
545
+ * For color tokens (#name), this is auto-set to '<color>' and cannot be overridden.
546
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/@property/syntax
547
+ */
548
+ syntax?: string;
549
+ /**
550
+ * Whether the property inherits from parent elements
551
+ * @default true
552
+ */
553
+ inherits?: boolean;
554
+ /**
555
+ * Initial value for the property.
556
+ * For color tokens (#name), this defaults to 'transparent' if not specified.
557
+ */
558
+ initialValue?: string | number;
559
+ /**
560
+ * Shadow root or document to inject into
561
+ */
562
+ root?: Document | ShadowRoot;
563
+ }
564
+ /**
565
+ * Register a CSS @property custom property.
566
+ * This enables advanced features like animating custom properties.
567
+ *
568
+ * Note: @property rules are global and persistent once defined.
569
+ * The function ensures the property is only registered once per root.
570
+ *
571
+ * Accepts tasty token syntax for the property name:
572
+ * - `$name` → defines `--name`
573
+ * - `#name` → defines `--name-color` (auto-sets syntax: '<color>', defaults initialValue: 'transparent')
574
+ * - `--name` → defines `--name` (legacy format)
575
+ *
576
+ * Works in all environments: client, SSR with collector, and React Server Components.
577
+ *
578
+ * @param name - The property token ($name, #name) or CSS property name (--name)
579
+ * @param options - Property configuration
580
+ *
581
+ * @example Basic property with token syntax
582
+ * ```tsx
583
+ * function Spinner() {
584
+ * useProperty('$rotation', {
585
+ * syntax: '<angle>',
586
+ * inherits: false,
587
+ * initialValue: '0deg',
588
+ * });
589
+ *
590
+ * return <div className="spinner" />;
591
+ * }
592
+ * ```
593
+ *
594
+ * @example Color property with token syntax (auto-sets syntax)
595
+ * ```tsx
596
+ * function MyComponent() {
597
+ * useProperty('#theme', {
598
+ * initialValue: 'red', // syntax: '<color>' is auto-set
599
+ * });
600
+ *
601
+ * // Now --theme-color can be animated with CSS transitions
602
+ * return <div style={{ '--theme-color': 'blue' } as React.CSSProperties}>Colored</div>;
603
+ * }
604
+ * ```
605
+ *
606
+ * @example Legacy format (still supported)
607
+ * ```tsx
608
+ * function ResizableBox() {
609
+ * useProperty('--box-size', {
610
+ * syntax: '<length>',
611
+ * initialValue: '100px',
612
+ * });
613
+ *
614
+ * return <div style={{ width: 'var(--box-size)' }} />;
615
+ * }
616
+ * ```
617
+ */
618
+ declare function useProperty(name: string, options?: UsePropertyOptions): void;
619
+ //#endregion
620
+ //#region src/hooks/useFontFace.d.ts
621
+ interface UseFontFaceOptions {
622
+ root?: Document | ShadowRoot;
623
+ }
624
+ /**
625
+ * Inject CSS @font-face rules.
626
+ * Permanent — no cleanup on unmount. Deduplicates by content hash.
627
+ *
628
+ * Works in all environments: client, SSR with collector, and React Server Components.
629
+ *
630
+ * @param family - The font-family name
631
+ * @param input - Single descriptor object or array of descriptors (for multiple weights/styles)
632
+ * @param options - Optional settings (e.g. Shadow DOM root)
633
+ *
634
+ * @example Single weight
635
+ * ```tsx
636
+ * function App() {
637
+ * useFontFace('Brand Sans', {
638
+ * src: 'url("/fonts/brand-sans.woff2") format("woff2")',
639
+ * fontWeight: '400 700',
640
+ * fontDisplay: 'swap',
641
+ * });
642
+ *
643
+ * return <div style={{ fontFamily: '"Brand Sans", sans-serif' }}>Hello</div>;
644
+ * }
645
+ * ```
646
+ *
647
+ * @example Multiple weights
648
+ * ```tsx
649
+ * function App() {
650
+ * useFontFace('Brand Sans', [
651
+ * { src: 'url("/fonts/brand-regular.woff2") format("woff2")', fontWeight: 400, fontDisplay: 'swap' },
652
+ * { src: 'url("/fonts/brand-bold.woff2") format("woff2")', fontWeight: 700, fontDisplay: 'swap' },
653
+ * ]);
654
+ *
655
+ * return <div style={{ fontFamily: '"Brand Sans", sans-serif' }}>Hello</div>;
656
+ * }
657
+ * ```
658
+ */
659
+ declare function useFontFace(family: string, input: FontFaceInput, options?: UseFontFaceOptions): void;
660
+ //#endregion
661
+ //#region src/hooks/useCounterStyle.d.ts
662
+ interface UseCounterStyleOptions {
663
+ name?: string;
664
+ root?: Document | ShadowRoot;
665
+ }
666
+ /**
667
+ * Inject a CSS @counter-style rule and return the generated name.
668
+ * Permanent — no cleanup on unmount. Deduplicates by name.
669
+ *
670
+ * Works in all environments: client, SSR with collector, and React Server Components.
671
+ *
672
+ * @example Basic usage
673
+ * ```tsx
674
+ * function EmojiList() {
675
+ * const styleName = useCounterStyle({
676
+ * system: 'cyclic',
677
+ * symbols: '"👍"',
678
+ * suffix: '" "',
679
+ * }, { name: 'thumbs' });
680
+ *
681
+ * return (
682
+ * <ol style={{ listStyleType: styleName }}>
683
+ * <li>First</li>
684
+ * <li>Second</li>
685
+ * </ol>
686
+ * );
687
+ * }
688
+ * ```
689
+ *
690
+ */
691
+ declare function useCounterStyle(descriptors: CounterStyleDescriptors, options?: UseCounterStyleOptions): string;
692
+ //#endregion
693
+ //#region src/utils/get-display-name.d.ts
694
+ declare function getDisplayName<T>(Component: ElementType<T>, fallbackName?: string): string;
695
+ //#endregion
696
+ //#region src/index.d.ts
697
+ declare module './utils/css-types' {
698
+ interface CSSProperties extends CSSProperties {}
699
+ }
700
+ //#endregion
701
+ //#region src/styles/border.d.ts
702
+ /**
703
+ * Border style handler with multi-group support.
704
+ *
705
+ * Single group (backward compatible):
706
+ * - `border="1bw solid #red"` - all sides
707
+ * - `border="1bw solid #red top left"` - only top and left
708
+ *
709
+ * Multi-group (new):
710
+ * - `border="1bw #red, 2bw #blue top"` - all sides red 1bw, then top overridden to blue 2bw
711
+ * - `border="1bw, dashed top bottom, #purple left right"` - base 1bw, dashed on top/bottom, purple on left/right
712
+ *
713
+ * Later groups override earlier groups for conflicting directions.
714
+ */
715
+ declare function borderStyle({
716
+ border
717
+ }: {
718
+ border?: string | number | boolean;
719
+ }): Record<string, string> | null;
720
+ declare namespace borderStyle {
721
+ var __lookupStyles: string[];
722
+ }
723
+ //#endregion
724
+ //#region src/styles/color.d.ts
725
+ declare function colorStyle({
726
+ color
727
+ }: {
728
+ color?: string | boolean;
729
+ }): {
730
+ color: string;
731
+ } | null;
732
+ declare namespace colorStyle {
733
+ var __lookupStyles: string[];
734
+ }
735
+ //#endregion
736
+ //#region src/styles/display.d.ts
737
+ interface DisplayStyleProps {
738
+ display?: string;
739
+ hide?: boolean;
740
+ textOverflow?: string | boolean;
741
+ overflow?: string;
742
+ whiteSpace?: string;
743
+ }
744
+ /**
745
+ * Handles display, hide, textOverflow, overflow, and whiteSpace styles.
746
+ *
747
+ * Priority:
748
+ * 1. `hide` takes precedence (display: none)
749
+ * 2. Multi-line `textOverflow` forces display: -webkit-box
750
+ * 3. Single-line `textOverflow` defaults white-space to nowrap
751
+ * 4. Explicit `whiteSpace` overrides the default from `textOverflow`
752
+ */
753
+ declare function displayStyle({
754
+ display,
755
+ hide,
756
+ textOverflow,
757
+ overflow,
758
+ whiteSpace
759
+ }: DisplayStyleProps): Record<string, string | number> | null;
760
+ declare namespace displayStyle {
761
+ var __lookupStyles: string[];
762
+ }
763
+ //#endregion
764
+ //#region src/styles/fade.d.ts
765
+ declare function fadeStyle({
766
+ fade
767
+ }: {
768
+ fade?: string;
769
+ }): {
770
+ mask: string;
771
+ 'mask-composite': string;
772
+ } | null;
773
+ declare namespace fadeStyle {
774
+ var __lookupStyles: string[];
775
+ }
776
+ //#endregion
777
+ //#region src/styles/fill.d.ts
778
+ declare function fillStyle({
779
+ fill,
780
+ backgroundColor,
781
+ image,
782
+ backgroundImage,
783
+ backgroundPosition,
784
+ backgroundSize,
785
+ backgroundRepeat,
786
+ backgroundAttachment,
787
+ backgroundOrigin,
788
+ backgroundClip,
789
+ background
790
+ }: {
791
+ fill?: string;
792
+ backgroundColor?: string;
793
+ image?: string;
794
+ backgroundImage?: string;
795
+ backgroundPosition?: string;
796
+ backgroundSize?: string;
797
+ backgroundRepeat?: string;
798
+ backgroundAttachment?: string;
799
+ backgroundOrigin?: string;
800
+ backgroundClip?: string;
801
+ background?: string;
802
+ }): Record<string, string> | null;
803
+ declare namespace fillStyle {
804
+ var __lookupStyles: string[];
805
+ }
806
+ declare function svgFillStyle({
807
+ svgFill
808
+ }: {
809
+ svgFill?: string;
810
+ }): {
811
+ fill: string;
812
+ } | null;
813
+ declare namespace svgFillStyle {
814
+ var __lookupStyles: string[];
815
+ }
816
+ //#endregion
817
+ //#region src/styles/flow.d.ts
818
+ declare function flowStyle({
819
+ display,
820
+ flow
821
+ }: {
822
+ display?: string;
823
+ flow?: string;
824
+ }): {
825
+ [x: string]: string | undefined;
826
+ } | null;
827
+ declare namespace flowStyle {
828
+ var __lookupStyles: string[];
829
+ }
830
+ //#endregion
831
+ //#region src/styles/gap.d.ts
832
+ declare function gapStyle({
833
+ display,
834
+ flow,
835
+ gap
836
+ }: {
837
+ display?: string;
838
+ flow?: string;
839
+ gap?: string | number | boolean;
840
+ }): {
841
+ gap: string;
842
+ $?: undefined;
843
+ } | ({
844
+ 'margin-right': string;
845
+ 'margin-bottom': string;
846
+ $?: undefined;
847
+ } | {
848
+ $: string;
849
+ 'margin-right': string;
850
+ 'margin-bottom': string;
851
+ })[] | {
852
+ [x: string]: string;
853
+ $: string;
854
+ gap?: undefined;
855
+ } | null;
856
+ declare namespace gapStyle {
857
+ var __lookupStyles: string[];
858
+ }
859
+ //#endregion
860
+ //#region src/styles/height.d.ts
861
+ interface HeightStyleProps {
862
+ height?: string | number | boolean;
863
+ minHeight?: string | number | boolean;
864
+ maxHeight?: string | number | boolean;
865
+ }
866
+ declare function heightStyle({
867
+ height,
868
+ minHeight,
869
+ maxHeight
870
+ }: HeightStyleProps): Record<string, string | string[]> | null;
871
+ declare namespace heightStyle {
872
+ var __lookupStyles: string[];
873
+ }
874
+ //#endregion
875
+ //#region src/styles/inset.d.ts
876
+ declare function insetStyle({
877
+ inset,
878
+ insetBlock,
879
+ insetInline,
880
+ top,
881
+ right,
882
+ bottom,
883
+ left
884
+ }: {
885
+ inset?: string | number | boolean;
886
+ insetBlock?: string | number | boolean;
887
+ insetInline?: string | number | boolean;
888
+ top?: string | number | boolean;
889
+ right?: string | number | boolean;
890
+ bottom?: string | number | boolean;
891
+ left?: string | number | boolean;
892
+ }): Record<string, string> | null;
893
+ declare namespace insetStyle {
894
+ var __lookupStyles: string[];
895
+ }
896
+ //#endregion
897
+ //#region src/styles/margin.d.ts
898
+ declare function marginStyle({
899
+ margin,
900
+ marginBlock,
901
+ marginInline,
902
+ marginTop,
903
+ marginRight,
904
+ marginBottom,
905
+ marginLeft
906
+ }: {
907
+ margin?: string | number | boolean;
908
+ marginBlock?: string | number | boolean;
909
+ marginInline?: string | number | boolean;
910
+ marginTop?: string | number | boolean;
911
+ marginRight?: string | number | boolean;
912
+ marginBottom?: string | number | boolean;
913
+ marginLeft?: string | number | boolean;
914
+ }): Record<string, string> | null;
915
+ declare namespace marginStyle {
916
+ var __lookupStyles: string[];
917
+ }
918
+ //#endregion
919
+ //#region src/styles/outline.d.ts
920
+ interface OutlineStyleProps {
921
+ outline?: string | boolean | number;
922
+ outlineOffset?: string | number;
923
+ }
924
+ /**
925
+ * Generates CSS for outline property with optional offset.
926
+ *
927
+ * Syntax:
928
+ * - `outline="2px solid #red"` - outline only
929
+ * - `outline="2px solid #red / 4px"` - outline with offset (slash separator)
930
+ * - `outline="2px / 4px"` - width with offset (simpler form)
931
+ * - `outline={true}` - default 1ow solid outline
932
+ * - `outlineOffset="4px"` - offset as separate prop (can be combined with outline)
933
+ *
934
+ * Priority: slash syntax in outline takes precedence over outlineOffset prop
935
+ *
936
+ * @return CSS properties for outline and optionally outline-offset
937
+ */
938
+ declare function outlineStyle({
939
+ outline,
940
+ outlineOffset
941
+ }: OutlineStyleProps): Record<string, string> | null;
942
+ declare namespace outlineStyle {
943
+ var __lookupStyles: string[];
944
+ }
945
+ //#endregion
946
+ //#region src/styles/padding.d.ts
947
+ declare function paddingStyle({
948
+ padding,
949
+ paddingBlock,
950
+ paddingInline,
951
+ paddingTop,
952
+ paddingRight,
953
+ paddingBottom,
954
+ paddingLeft
955
+ }: {
956
+ padding?: string | number | boolean;
957
+ paddingBlock?: string | number | boolean;
958
+ paddingInline?: string | number | boolean;
959
+ paddingTop?: string | number | boolean;
960
+ paddingRight?: string | number | boolean;
961
+ paddingBottom?: string | number | boolean;
962
+ paddingLeft?: string | number | boolean;
963
+ }): Record<string, string> | null;
964
+ declare namespace paddingStyle {
965
+ var __lookupStyles: string[];
966
+ }
967
+ //#endregion
968
+ //#region src/styles/placement.d.ts
969
+ interface PlacementStyleProps {
970
+ place?: string | boolean;
971
+ placeItems?: string | boolean;
972
+ placeContent?: string | boolean;
973
+ align?: string | boolean;
974
+ justify?: string | boolean;
975
+ alignItems?: string | boolean;
976
+ alignContent?: string | boolean;
977
+ justifyItems?: string | boolean;
978
+ justifyContent?: string | boolean;
979
+ }
980
+ /**
981
+ * Unified placement handler replacing align, justify, and place.
982
+ *
983
+ * Priority (later overrides earlier):
984
+ * 1. place (lowest) — sets all 4 longhands
985
+ * 2. placeItems, placeContent, align, justify (medium) — each sets 2 longhands
986
+ * 3. alignItems, alignContent, justifyItems, justifyContent (highest) — each sets 1 longhand
987
+ */
988
+ declare function placementStyle({
989
+ place,
990
+ placeItems,
991
+ placeContent,
992
+ align,
993
+ justify,
994
+ alignItems,
995
+ alignContent,
996
+ justifyItems,
997
+ justifyContent
998
+ }: PlacementStyleProps): Record<string, string> | null;
999
+ declare namespace placementStyle {
1000
+ var __lookupStyles: string[];
1001
+ }
1002
+ //#endregion
1003
+ //#region src/styles/preset.d.ts
1004
+ interface PresetStyleProps {
1005
+ preset?: string | boolean;
1006
+ fontSize?: string | number;
1007
+ lineHeight?: string | number;
1008
+ textTransform?: string;
1009
+ letterSpacing?: string | number;
1010
+ fontWeight?: string | number;
1011
+ fontStyle?: string | boolean;
1012
+ fontFamily?: string;
1013
+ /** Alias for fontFamily with special handling for 'monospace' and boolean */
1014
+ font?: string | boolean;
1015
+ }
1016
+ /**
1017
+ * Handles typography preset and individual font properties.
1018
+ *
1019
+ * Preset syntax uses `/` to separate name from modifier:
1020
+ * - `preset="h1"` — name only
1021
+ * - `preset="h2 / strong"` — name + modifier
1022
+ * - `preset="bold"` — modifier-only shorthand (name defaults to `inherit`)
1023
+ *
1024
+ * When `preset` is defined, it sets up CSS custom properties for typography.
1025
+ * Individual font props can be used with or without `preset`:
1026
+ * - With `preset`: overrides the preset value for that property
1027
+ * - Without `preset`: outputs the CSS directly
1028
+ *
1029
+ * Number values are converted to pixels for fontSize, lineHeight, letterSpacing.
1030
+ * fontWeight accepts numbers directly (e.g., 400, 700).
1031
+ *
1032
+ * font vs fontFamily:
1033
+ * - `font` is the recommended prop with special handling (monospace, boolean, fallback)
1034
+ * - `fontFamily` is a direct value without special handling
1035
+ */
1036
+ declare function presetStyle({
1037
+ preset,
1038
+ fontSize,
1039
+ lineHeight,
1040
+ textTransform,
1041
+ letterSpacing,
1042
+ fontWeight,
1043
+ fontStyle,
1044
+ fontFamily,
1045
+ font
1046
+ }: PresetStyleProps): Styles | null;
1047
+ declare namespace presetStyle {
1048
+ var __lookupStyles: string[];
1049
+ }
1050
+ //#endregion
1051
+ //#region src/styles/radius.d.ts
1052
+ declare function radiusStyle({
1053
+ radius
1054
+ }: {
1055
+ radius?: string | number | boolean;
1056
+ }): Record<string, string> | null;
1057
+ declare namespace radiusStyle {
1058
+ var __lookupStyles: string[];
1059
+ }
1060
+ //#endregion
1061
+ //#region src/styles/scrollMargin.d.ts
1062
+ declare function scrollMarginStyle({
1063
+ scrollMargin,
1064
+ scrollMarginBlock,
1065
+ scrollMarginInline,
1066
+ scrollMarginTop,
1067
+ scrollMarginRight,
1068
+ scrollMarginBottom,
1069
+ scrollMarginLeft
1070
+ }: {
1071
+ scrollMargin?: string | number | boolean;
1072
+ scrollMarginBlock?: string | number | boolean;
1073
+ scrollMarginInline?: string | number | boolean;
1074
+ scrollMarginTop?: string | number | boolean;
1075
+ scrollMarginRight?: string | number | boolean;
1076
+ scrollMarginBottom?: string | number | boolean;
1077
+ scrollMarginLeft?: string | number | boolean;
1078
+ }): Record<string, string> | null;
1079
+ declare namespace scrollMarginStyle {
1080
+ var __lookupStyles: string[];
1081
+ }
1082
+ //#endregion
1083
+ //#region src/styles/scrollbar.d.ts
1084
+ interface ScrollbarStyleProps {
1085
+ scrollbar?: string | boolean;
1086
+ overflow?: string;
1087
+ }
1088
+ /**
1089
+ * Standard CSS scrollbar styling via `scrollbar-width`, `scrollbar-color`,
1090
+ * and `scrollbar-gutter`.
1091
+ *
1092
+ * Width values: `thin` (default), `auto`, `none`
1093
+ * Modifiers: `stable`, `both-edges`, `always`
1094
+ *
1095
+ * Note: `auto` is classified as a VALUE_KEYWORD by the parser, so it lands
1096
+ * in `values` rather than `mods`. Both locations are checked for robustness.
1097
+ */
1098
+ declare function scrollbarStyle({
1099
+ scrollbar,
1100
+ overflow
1101
+ }: ScrollbarStyleProps): Record<string, string> | null;
1102
+ declare namespace scrollbarStyle {
1103
+ var __lookupStyles: string[];
1104
+ }
1105
+ //#endregion
1106
+ //#region src/styles/shadow.d.ts
1107
+ declare function shadowStyle({
1108
+ shadow
1109
+ }: {
1110
+ shadow?: string | boolean;
1111
+ }): {
1112
+ 'box-shadow': string;
1113
+ } | null;
1114
+ declare namespace shadowStyle {
1115
+ var __lookupStyles: string[];
1116
+ }
1117
+ //#endregion
1118
+ //#region src/styles/transition.d.ts
1119
+ declare function transitionStyle({
1120
+ transition
1121
+ }: {
1122
+ transition?: string;
1123
+ }): {
1124
+ transition: string;
1125
+ } | null;
1126
+ declare namespace transitionStyle {
1127
+ var __lookupStyles: string[];
1128
+ }
1129
+ //#endregion
1130
+ //#region src/styles/width.d.ts
1131
+ interface WidthStyleProps {
1132
+ width?: string | number | boolean;
1133
+ minWidth?: string | number | boolean;
1134
+ maxWidth?: string | number | boolean;
1135
+ }
1136
+ declare function widthStyle({
1137
+ width,
1138
+ minWidth,
1139
+ maxWidth
1140
+ }: WidthStyleProps): Record<string, string | string[]> | null;
1141
+ declare namespace widthStyle {
1142
+ var __lookupStyles: string[];
1143
+ }
1144
+ //#endregion
1145
+ //#region src/styles/predefined.d.ts
1146
+ /**
1147
+ * Exported object containing wrapped predefined style handlers.
1148
+ * Users can import and call these to extend or delegate to built-in behavior.
1149
+ *
1150
+ * Internal handlers use *Style suffix for searchability.
1151
+ * External API uses short names for convenience.
1152
+ *
1153
+ * @example
1154
+ * ```ts
1155
+ * import { styleHandlers, configure } from '@tenphi/tasty';
1156
+ *
1157
+ * configure({
1158
+ * handlers: {
1159
+ * fill: ({ fill }) => {
1160
+ * if (fill?.startsWith('gradient:')) {
1161
+ * return { background: fill.slice(9) };
1162
+ * }
1163
+ * return styleHandlers.fill({ fill });
1164
+ * },
1165
+ * },
1166
+ * });
1167
+ * ```
1168
+ */
1169
+ declare const styleHandlers: {
1170
+ readonly border: typeof borderStyle;
1171
+ readonly color: typeof colorStyle;
1172
+ readonly display: typeof displayStyle;
1173
+ readonly fade: typeof fadeStyle;
1174
+ readonly fill: typeof fillStyle;
1175
+ readonly svgFill: typeof svgFillStyle;
1176
+ readonly flow: typeof flowStyle;
1177
+ readonly gap: typeof gapStyle;
1178
+ readonly height: typeof heightStyle;
1179
+ readonly inset: typeof insetStyle;
1180
+ readonly margin: typeof marginStyle;
1181
+ readonly outline: typeof outlineStyle;
1182
+ readonly padding: typeof paddingStyle;
1183
+ readonly placement: typeof placementStyle;
1184
+ readonly preset: typeof presetStyle;
1185
+ readonly radius: typeof radiusStyle;
1186
+ readonly scrollMargin: typeof scrollMarginStyle;
1187
+ readonly scrollbar: typeof scrollbarStyle;
1188
+ readonly shadow: typeof shadowStyle;
1189
+ readonly transition: typeof transitionStyle;
1190
+ readonly width: typeof widthStyle;
1191
+ };
1192
+ //#endregion
1193
+ //#region src/compute-styles.d.ts
1194
+ interface ComputeStylesResult {
1195
+ className: string;
1196
+ /** CSS text to emit as an inline <style> tag (RSC mode only). */
1197
+ css?: string;
1198
+ }
1199
+ interface ComputeStylesOptions {
1200
+ ssrCollector?: ServerStyleCollector | null;
1201
+ }
1202
+ /**
1203
+ * Synchronous, hook-free style computation.
1204
+ *
1205
+ * Resolves recipes, categorizes style keys into chunks, renders CSS rules,
1206
+ * allocates class names, and injects / collects / returns the CSS.
1207
+ *
1208
+ * Three code paths:
1209
+ * 1. SSR collector — discovered via ALS or passed explicitly; CSS collected
1210
+ * 2. RSC inline — no collector and no `document`; CSS returned as `result.css`
1211
+ * for the caller to emit as an inline `<style>` tag
1212
+ * 3. Client inject — CSS injected synchronously into the DOM (idempotent)
1213
+ *
1214
+ * @param styles - Tasty styles object (or undefined for no styles)
1215
+ * @param options - Optional SSR collector override
1216
+ */
1217
+ declare function computeStyles(styles: Styles | undefined, options?: ComputeStylesOptions): ComputeStylesResult;
1218
+ //#endregion
1219
+ //#region src/injector/index.d.ts
1220
+ /**
1221
+ * Inject styles and return className with dispose function
1222
+ */
1223
+ declare function inject(rules: StyleResult[], options?: {
1224
+ root?: Document | ShadowRoot;
1225
+ cacheKey?: string;
1226
+ }): InjectResult;
1227
+ /**
1228
+ * Inject global rules that should not reserve tasty class names
1229
+ */
1230
+ declare function injectGlobal(rules: StyleResult[], options?: {
1231
+ root?: Document | ShadowRoot;
1232
+ }): GlobalInjectResult;
1233
+ /**
1234
+ * Inject raw CSS text directly without parsing
1235
+ * This is a low-overhead method for injecting raw CSS that doesn't need tasty processing.
1236
+ * The CSS is inserted into a separate style element to avoid conflicts with tasty's chunking.
1237
+ *
1238
+ * @example
1239
+ * ```tsx
1240
+ * // Inject raw CSS
1241
+ * const { dispose } = injectRawCSS(`
1242
+ * body { margin: 0; padding: 0; }
1243
+ * .my-class { color: red; }
1244
+ * `);
1245
+ *
1246
+ * // Later, remove the injected CSS
1247
+ * dispose();
1248
+ * ```
1249
+ */
1250
+ declare function injectRawCSS(css: string, options?: {
1251
+ root?: Document | ShadowRoot;
1252
+ }): {
1253
+ dispose: () => void;
1254
+ };
1255
+ /**
1256
+ * Get raw CSS text for SSR
1257
+ */
1258
+ declare function getRawCSSText(options?: {
1259
+ root?: Document | ShadowRoot;
1260
+ }): string;
1261
+ /**
1262
+ * Inject keyframes and return object with toString() and dispose()
1263
+ */
1264
+ declare function keyframes(steps: KeyframesSteps, nameOrOptions?: string | {
1265
+ root?: Document | ShadowRoot;
1266
+ name?: string;
1267
+ }): KeyframesResult;
1268
+ interface PropertyOptions {
1269
+ /**
1270
+ * CSS syntax string for the property (e.g., '<color>', '<length>', '<angle>')
1271
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/@property/syntax
1272
+ */
1273
+ syntax?: string;
1274
+ /**
1275
+ * Whether the property inherits from parent elements
1276
+ * @default true
1277
+ */
1278
+ inherits?: boolean;
1279
+ /**
1280
+ * Initial value for the property
1281
+ */
1282
+ initialValue?: string | number;
1283
+ /**
1284
+ * Shadow root or document to inject into
1285
+ */
1286
+ root?: Document | ShadowRoot;
1287
+ }
1288
+ /**
1289
+ * Define a CSS @property custom property.
1290
+ * This enables advanced features like animating custom properties.
1291
+ *
1292
+ * Note: @property rules are global and persistent once defined.
1293
+ * Re-registering the same property name is a no-op.
1294
+ *
1295
+ * @param name - The custom property name (must start with --)
1296
+ * @param options - Property configuration
1297
+ *
1298
+ * @example
1299
+ * ```ts
1300
+ * // Define a color property that can be animated
1301
+ * property('--my-color', {
1302
+ * syntax: '<color>',
1303
+ * initialValue: 'red',
1304
+ * });
1305
+ *
1306
+ * // Define an angle property
1307
+ * property('--rotation', {
1308
+ * syntax: '<angle>',
1309
+ * inherits: false,
1310
+ * initialValue: '0deg',
1311
+ * });
1312
+ * ```
1313
+ */
1314
+ declare function property$1(name: string, options?: PropertyOptions): void;
1315
+ /**
1316
+ * Check if a CSS @property has already been defined
1317
+ *
1318
+ * @param name - The custom property name to check
1319
+ * @param options - Options including root
1320
+ */
1321
+ declare function isPropertyDefined(name: string, options?: {
1322
+ root?: Document | ShadowRoot;
1323
+ }): boolean;
1324
+ /**
1325
+ * Inject a CSS @font-face rule.
1326
+ *
1327
+ * Permanent and global — no dispose or ref-counting.
1328
+ * Deduplicates by content hash (family + descriptors).
1329
+ */
1330
+ declare function fontFace(family: string, descriptors: FontFaceDescriptors, options?: {
1331
+ root?: Document | ShadowRoot;
1332
+ }): void;
1333
+ /**
1334
+ * Inject a CSS @counter-style rule.
1335
+ *
1336
+ * Permanent and global — no dispose or ref-counting.
1337
+ * Deduplicates by name (first definition wins).
1338
+ */
1339
+ declare function counterStyle(name: string, descriptors: CounterStyleDescriptors, options?: {
1340
+ root?: Document | ShadowRoot;
1341
+ }): void;
1342
+ /**
1343
+ * Get CSS text from all sheets (for SSR)
1344
+ */
1345
+ declare function getCssText(options?: {
1346
+ root?: Document | ShadowRoot;
1347
+ }): string;
1348
+ /**
1349
+ * Collect only CSS used by a rendered subtree (like jest-styled-components).
1350
+ * Pass the container returned by render(...).
1351
+ */
1352
+ declare function getCssTextForNode(node: ParentNode | Element | DocumentFragment, options?: {
1353
+ root?: Document | ShadowRoot;
1354
+ }): string;
1355
+ /**
1356
+ * Force cleanup of unused rules
1357
+ */
1358
+ declare function cleanup(root?: Document | ShadowRoot): void;
1359
+ /**
1360
+ * Record a render-time usage hit for one or more classNames.
1361
+ * Used internally by computeStyles and tasty() to track usage for GC.
1362
+ * When the global touch counter reaches `touchInterval`, schedules GC.
1363
+ */
1364
+ declare function touch(className: string, options?: {
1365
+ root?: Document | ShadowRoot;
1366
+ }): void;
1367
+ /**
1368
+ * Synchronous garbage collection of unused styles.
1369
+ * Evicts the oldest unused styles when usageMap exceeds capacity.
1370
+ * With `{ force: true }`, removes ALL unused styles regardless of capacity.
1371
+ *
1372
+ * @returns Number of styles evicted.
1373
+ */
1374
+ declare function gc(options?: GCOptions): number;
1375
+ /**
1376
+ * Check if we're currently running in a test environment
1377
+ */
1378
+ declare function getIsTestEnvironment(): boolean;
1379
+ /**
1380
+ * Get the global injector instance for debugging
1381
+ */
1382
+ declare const injector: {
1383
+ readonly instance: StyleInjector;
1384
+ };
1385
+ /**
1386
+ * Destroy all resources and clean up
1387
+ */
1388
+ declare function destroy(root?: Document | ShadowRoot): void;
1389
+ /**
1390
+ * Create a new isolated injector instance
1391
+ */
1392
+ declare function createInjector(config?: Partial<StyleInjectorConfig>): StyleInjector;
1393
+ //#endregion
1394
+ //#region src/utils/filter-base-props.d.ts
1395
+ interface PropsFilterOptions {
1396
+ labelable?: boolean;
1397
+ propNames?: Set<string>;
1398
+ eventProps?: boolean;
1399
+ }
1400
+ /**
1401
+ * Filters out all props that aren't valid DOM props or defined via override prop obj.
1402
+ * @param props - The component props to be filtered.
1403
+ * @param opts - Props to override.
1404
+ */
1405
+ declare function filterBaseProps<T extends object>(props: T, opts?: PropsFilterOptions): Partial<T>;
1406
+ //#endregion
1407
+ //#region src/utils/colors.d.ts
1408
+ declare function color$1(name: string, opacity?: number): string;
1409
+ //#endregion
1410
+ //#region src/utils/mod-attrs.d.ts
1411
+ declare const _modAttrs: (firstArg: Record<string, ModValue> | undefined, secondArg?: unknown) => Record<string, string> | null;
1412
+ //#endregion
1413
+ //#region src/utils/dotize.d.ts
1414
+ declare const dotize: {
1415
+ valTypes: {
1416
+ none: string;
1417
+ primitive: string;
1418
+ object: string;
1419
+ array: string;
1420
+ };
1421
+ getValType: (val: any) => string | undefined;
1422
+ getPathType: (arrPath: any) => string[];
1423
+ isUndefined: (obj: any) => obj is undefined;
1424
+ isNumber: (f: any) => boolean;
1425
+ isEmptyObj: (obj: any) => boolean;
1426
+ isPlainObject: (obj: any) => boolean;
1427
+ isNotObject: (obj: any) => boolean;
1428
+ isEmptyArray: (arr: any) => boolean;
1429
+ isNotArray: (arr: any) => boolean;
1430
+ removeEmptyArrayItem: (arr: any) => any;
1431
+ getFieldName: (field: any, prefix: any, isRoot: any, isArrayItem: any, isArray: any) => string;
1432
+ startsWith: (val: any, valToSearch: any) => boolean;
1433
+ convert: (obj: any, prefix?: string) => any;
1434
+ backward: (obj: any, prefix: any) => any;
1435
+ };
1436
+ //#endregion
1437
+ //#region src/utils/resolve-recipes.d.ts
1438
+ /**
1439
+ * Resolve all `recipe` style properties in a styles object.
1440
+ *
1441
+ * Handles both top-level and sub-element recipe references.
1442
+ * Returns the same object reference if no recipes are present anywhere
1443
+ * (zero overhead for the common case).
1444
+ *
1445
+ * @param styles - The styles object potentially containing `recipe` keys
1446
+ * @returns Resolved styles with recipe values merged in, or the original object if unchanged
1447
+ */
1448
+ declare function resolveRecipes(styles: Styles): Styles;
1449
+ //#endregion
1450
+ //#region src/utils/warnings.d.ts
1451
+ declare function warn(...args: unknown[]): void;
1452
+ declare function deprecationWarning(condition: unknown, {
1453
+ property,
1454
+ name,
1455
+ betterAlternative,
1456
+ reason
1457
+ }: {
1458
+ property: string;
1459
+ name: string;
1460
+ betterAlternative: (() => string) | string;
1461
+ reason?: (() => string) | string;
1462
+ }): void;
1463
+ //#endregion
1464
+ //#region src/utils/process-tokens.d.ts
1465
+ /**
1466
+ * Process tokens object into inline style properties.
1467
+ * - $name -> --name with parsed value
1468
+ * - #name -> --name-color AND --name-color-{colorSpace} with parsed values
1469
+ *
1470
+ * @param tokens - The tokens object to process
1471
+ * @returns CSSProperties object or undefined if no tokens to process
1472
+ */
1473
+ declare function processTokens(tokens: Tokens | undefined): CSSProperties$1 | undefined;
1474
+ //#endregion
1475
+ //#region src/debug.d.ts
1476
+ declare global {
1477
+ interface Window {
1478
+ tastyDebug?: typeof tastyDebug;
1479
+ }
1480
+ }
1481
+ type CSSTarget = 'all' | 'global' | 'active' | 'unused' | 'page' | string | string[] | Element;
1482
+ interface DebugOptions {
1483
+ root?: Document | ShadowRoot;
1484
+ /** Suppress console logging and return data only (default: false) */
1485
+ raw?: boolean;
1486
+ }
1487
+ interface CssOptions extends DebugOptions {
1488
+ prettify?: boolean;
1489
+ /** Read from stored source CSS (dev-mode only) instead of live CSSOM */
1490
+ source?: boolean;
1491
+ }
1492
+ interface ChunkInfo {
1493
+ className: string;
1494
+ chunkName: string | null;
1495
+ }
1496
+ interface InspectResult {
1497
+ element?: Element | null;
1498
+ classes: string[];
1499
+ chunks: ChunkInfo[];
1500
+ css: string;
1501
+ size: number;
1502
+ rules: number;
1503
+ }
1504
+ interface CacheStatus {
1505
+ classes: {
1506
+ active: string[];
1507
+ unused: string[];
1508
+ all: string[];
1509
+ };
1510
+ metrics: CacheMetrics | null;
1511
+ }
1512
+ interface ChunkBreakdown {
1513
+ byChunk: Record<string, {
1514
+ classes: string[];
1515
+ cssSize: number;
1516
+ ruleCount: number;
1517
+ }>;
1518
+ totalChunkTypes: number;
1519
+ totalClasses: number;
1520
+ }
1521
+ interface Summary {
1522
+ activeClasses: string[];
1523
+ unusedClasses: string[];
1524
+ totalStyledClasses: string[];
1525
+ activeCSSSize: number;
1526
+ unusedCSSSize: number;
1527
+ globalCSSSize: number;
1528
+ rawCSSSize: number;
1529
+ keyframesCSSSize: number;
1530
+ propertyCSSSize: number;
1531
+ totalCSSSize: number;
1532
+ activeRuleCount: number;
1533
+ unusedRuleCount: number;
1534
+ globalRuleCount: number;
1535
+ rawRuleCount: number;
1536
+ keyframesRuleCount: number;
1537
+ propertyRuleCount: number;
1538
+ totalRuleCount: number;
1539
+ metrics: CacheMetrics | null;
1540
+ definedProperties: string[];
1541
+ definedKeyframes: {
1542
+ name: string;
1543
+ refCount: number;
1544
+ }[];
1545
+ chunkBreakdown: ChunkBreakdown;
1546
+ }
1547
+ declare const tastyDebug: {
1548
+ css(target: CSSTarget, opts?: CssOptions): string;
1549
+ inspect(target: string | Element, opts?: DebugOptions): InspectResult;
1550
+ summary(opts?: DebugOptions): Summary;
1551
+ chunks(opts?: DebugOptions): ChunkBreakdown;
1552
+ cache(opts?: DebugOptions): CacheStatus;
1553
+ cleanup(opts?: {
1554
+ root?: Document | ShadowRoot;
1555
+ }): void;
1556
+ help(): void;
1557
+ install(): void;
1558
+ };
1559
+ //#endregion
1560
+ export { SubElementProps as $, ComputeStylesResult as A, TokenValue as At, useGlobalStyles as B, INNER_STYLES as Bt, injectRawCSS as C, PositionStyleProps as Ct, property$1 as D, TastyExtensionConfig as Dt, keyframes as E, TagName as Et, useFontFace as F, BLOCK_STYLES as Ft, Element$1 as G, ChunkInfo$1 as Gt, UseStylesResult as H, POSITION_STYLES as Ht, UsePropertyOptions as I, COLOR_STYLES as It, ModPropsInput as J, categorizeStyleKeys as Jt, ElementsDefinition as K, ChunkName as Kt, useProperty as L, CONTAINER_STYLES as Lt, styleHandlers as M, BASE_STYLES as Mt, getDisplayName as N, BLOCK_INNER_STYLES as Nt, touch as O, TastyThemeNames as Ot, useCounterStyle as P, BLOCK_OUTER_STYLES as Pt, SubElementDefinition as Q, useKeyframes as R, DIMENSION_STYLES as Rt, injectGlobal as S, OuterStyleProps as St, isPropertyDefined as T, ShortGridStyles as Tt, useStyles as U, TEXT_STYLES as Ut, UseStylesOptions as V, OUTER_STYLES as Vt, AllBasePropsWithMods as W, CHUNK_NAMES as Wt, ResolveModProps as X, okhslPlugin as Xt, ResolveModPropDef as Y, okhslFunc as Yt, ResolveTokenProps as Z, getCssText as _, FlowStyleProps as _t, resolveRecipes as a, WithVariant as at, getRawCSSText as b, ModValue as bt, color$1 as c, BaseProps as ct, cleanup as d, BlockInnerStyleProps as dt, TastyElementOptions as et, counterStyle as f, BlockOuterStyleProps as ft, gc as g, DimensionStyleProps as gt, fontFace as h, ContainerStyleProps as ht, warn as i, VariantMap as it, computeStyles as j, Tokens as jt, ComputeStylesOptions as k, TextStyleProps as kt, filterBaseProps as l, BasePropsWithoutChildren as lt, destroy as m, ColorStyleProps as mt, processTokens as n, TastyProps as nt, dotize as o, tasty as ot, createInjector as p, BlockStyleProps as pt, ModPropDef as q, STYLE_TO_CHUNK as qt, deprecationWarning as r, TokenPropsInput as rt, _modAttrs as s, AllBaseProps as st, tastyDebug as t, TastyElementProps as tt, PropertyOptions as u, BaseStyleProps as ut, getCssTextForNode as v, GlobalStyledProps as vt, injector as w, Props as wt, inject as x, Mods as xt, getIsTestEnvironment as y, InnerStyleProps as yt, useRawCSS as z, FLOW_STYLES as zt };
1561
+ //# sourceMappingURL=index-o7zV2yCr.d.ts.map