@tenphi/tasty 2.0.3 → 2.1.0

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 (323) 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.js → collector-DrgDE7QB.js} +5 -10
  4. package/dist/collector-DrgDE7QB.js.map +1 -0
  5. package/dist/{ssr/collector.d.ts → collector-LuU1vZ68.d.ts} +3 -3
  6. package/dist/config-_aQ_PZ-P.js +10131 -0
  7. package/dist/config-_aQ_PZ-P.js.map +1 -0
  8. package/dist/config-vuCRkBWX.d.ts +884 -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 +6 -27
  13. package/dist/core-BqO8pplb.js +1592 -0
  14. package/dist/core-BqO8pplb.js.map +1 -0
  15. package/dist/{zero/extractor.js → css-writer-D--REwtp.js} +74 -11
  16. package/dist/css-writer-D--REwtp.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-xwteB7a1.js +143 -0
  20. package/dist/format-rules-xwteB7a1.js.map +1 -0
  21. package/dist/{ssr/hydrate.js → hydrate-BvPT4ndL.js} +3 -3
  22. package/dist/hydrate-BvPT4ndL.js.map +1 -0
  23. package/dist/index-ZRxZWzlj.d.ts +1602 -0
  24. package/dist/{styles/types.d.ts → index-dUtwpOux.d.ts} +707 -5
  25. package/dist/index.d.ts +5 -51
  26. package/dist/index.js +732 -36
  27. package/dist/index.js.map +1 -0
  28. package/dist/keyframes-ClPFWy33.js +587 -0
  29. package/dist/keyframes-ClPFWy33.js.map +1 -0
  30. package/dist/{utils/merge-styles.js → merge-styles-BUQsEpbv.js} +3 -4
  31. package/dist/merge-styles-BUQsEpbv.js.map +1 -0
  32. package/dist/{utils/merge-styles.d.ts → merge-styles-CtDJMhpJ.d.ts} +3 -3
  33. package/dist/{utils/resolve-recipes.js → resolve-recipes-C0-AMzCz.js} +4 -6
  34. package/dist/resolve-recipes-C0-AMzCz.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/docs/injector.md +2 -2
  51. package/package.json +10 -9
  52. package/dist/_virtual/_rolldown/runtime.js +0 -7
  53. package/dist/chunks/cacheKey.d.ts +0 -1
  54. package/dist/chunks/cacheKey.js +0 -77
  55. package/dist/chunks/cacheKey.js.map +0 -1
  56. package/dist/chunks/definitions.d.ts +0 -37
  57. package/dist/chunks/definitions.js +0 -258
  58. package/dist/chunks/definitions.js.map +0 -1
  59. package/dist/chunks/index.d.ts +0 -1
  60. package/dist/chunks/renderChunk.d.ts +0 -1
  61. package/dist/chunks/renderChunk.js +0 -59
  62. package/dist/chunks/renderChunk.js.map +0 -1
  63. package/dist/compute-styles.d.ts +0 -31
  64. package/dist/compute-styles.js +0 -322
  65. package/dist/compute-styles.js.map +0 -1
  66. package/dist/config.d.ts +0 -407
  67. package/dist/config.js +0 -591
  68. package/dist/config.js.map +0 -1
  69. package/dist/counter-style/index.js +0 -51
  70. package/dist/counter-style/index.js.map +0 -1
  71. package/dist/debug.d.ts +0 -89
  72. package/dist/debug.js +0 -453
  73. package/dist/debug.js.map +0 -1
  74. package/dist/font-face/index.js +0 -63
  75. package/dist/font-face/index.js.map +0 -1
  76. package/dist/hooks/index.d.ts +0 -7
  77. package/dist/hooks/useCounterStyle.d.ts +0 -36
  78. package/dist/hooks/useCounterStyle.js +0 -65
  79. package/dist/hooks/useCounterStyle.js.map +0 -1
  80. package/dist/hooks/useFontFace.d.ts +0 -45
  81. package/dist/hooks/useFontFace.js +0 -66
  82. package/dist/hooks/useFontFace.js.map +0 -1
  83. package/dist/hooks/useGlobalStyles.d.ts +0 -46
  84. package/dist/hooks/useGlobalStyles.js +0 -88
  85. package/dist/hooks/useGlobalStyles.js.map +0 -1
  86. package/dist/hooks/useKeyframes.d.ts +0 -58
  87. package/dist/hooks/useKeyframes.js +0 -55
  88. package/dist/hooks/useKeyframes.js.map +0 -1
  89. package/dist/hooks/useProperty.d.ts +0 -81
  90. package/dist/hooks/useProperty.js +0 -96
  91. package/dist/hooks/useProperty.js.map +0 -1
  92. package/dist/hooks/useRawCSS.d.ts +0 -22
  93. package/dist/hooks/useRawCSS.js +0 -103
  94. package/dist/hooks/useRawCSS.js.map +0 -1
  95. package/dist/hooks/useStyles.d.ts +0 -40
  96. package/dist/hooks/useStyles.js +0 -31
  97. package/dist/hooks/useStyles.js.map +0 -1
  98. package/dist/injector/index.d.ts +0 -182
  99. package/dist/injector/index.js +0 -185
  100. package/dist/injector/index.js.map +0 -1
  101. package/dist/injector/injector.d.ts +0 -198
  102. package/dist/injector/injector.js +0 -651
  103. package/dist/injector/injector.js.map +0 -1
  104. package/dist/injector/sheet-manager.d.ts +0 -132
  105. package/dist/injector/sheet-manager.js +0 -699
  106. package/dist/injector/sheet-manager.js.map +0 -1
  107. package/dist/injector/types.d.ts +0 -235
  108. package/dist/keyframes/index.js +0 -206
  109. package/dist/keyframes/index.js.map +0 -1
  110. package/dist/parser/classify.js +0 -319
  111. package/dist/parser/classify.js.map +0 -1
  112. package/dist/parser/const.js +0 -60
  113. package/dist/parser/const.js.map +0 -1
  114. package/dist/parser/lru.js +0 -109
  115. package/dist/parser/lru.js.map +0 -1
  116. package/dist/parser/parser.d.ts +0 -25
  117. package/dist/parser/parser.js +0 -115
  118. package/dist/parser/parser.js.map +0 -1
  119. package/dist/parser/tokenizer.js +0 -69
  120. package/dist/parser/tokenizer.js.map +0 -1
  121. package/dist/parser/types.d.ts +0 -51
  122. package/dist/parser/types.js +0 -46
  123. package/dist/parser/types.js.map +0 -1
  124. package/dist/pipeline/conditions.d.ts +0 -134
  125. package/dist/pipeline/conditions.js +0 -406
  126. package/dist/pipeline/conditions.js.map +0 -1
  127. package/dist/pipeline/exclusive.js +0 -389
  128. package/dist/pipeline/exclusive.js.map +0 -1
  129. package/dist/pipeline/index.d.ts +0 -55
  130. package/dist/pipeline/index.js +0 -749
  131. package/dist/pipeline/index.js.map +0 -1
  132. package/dist/pipeline/materialize-contradictions.js +0 -125
  133. package/dist/pipeline/materialize-contradictions.js.map +0 -1
  134. package/dist/pipeline/materialize.js +0 -1038
  135. package/dist/pipeline/materialize.js.map +0 -1
  136. package/dist/pipeline/parseStateKey.d.ts +0 -15
  137. package/dist/pipeline/parseStateKey.js +0 -446
  138. package/dist/pipeline/parseStateKey.js.map +0 -1
  139. package/dist/pipeline/simplify.js +0 -725
  140. package/dist/pipeline/simplify.js.map +0 -1
  141. package/dist/pipeline/warnings.js +0 -18
  142. package/dist/pipeline/warnings.js.map +0 -1
  143. package/dist/plugins/index.d.ts +0 -2
  144. package/dist/plugins/okhsl-plugin.d.ts +0 -35
  145. package/dist/plugins/okhsl-plugin.js +0 -97
  146. package/dist/plugins/okhsl-plugin.js.map +0 -1
  147. package/dist/plugins/types.d.ts +0 -87
  148. package/dist/properties/index.js +0 -222
  149. package/dist/properties/index.js.map +0 -1
  150. package/dist/properties/property-type-resolver.d.ts +0 -24
  151. package/dist/properties/property-type-resolver.js +0 -90
  152. package/dist/properties/property-type-resolver.js.map +0 -1
  153. package/dist/rsc-cache.js +0 -79
  154. package/dist/rsc-cache.js.map +0 -1
  155. package/dist/ssr/async-storage.d.ts +0 -17
  156. package/dist/ssr/async-storage.js.map +0 -1
  157. package/dist/ssr/collect-auto-properties.js +0 -58
  158. package/dist/ssr/collect-auto-properties.js.map +0 -1
  159. package/dist/ssr/collector.js.map +0 -1
  160. package/dist/ssr/context.js.map +0 -1
  161. package/dist/ssr/format-global-rules.js.map +0 -1
  162. package/dist/ssr/format-keyframes.js +0 -69
  163. package/dist/ssr/format-keyframes.js.map +0 -1
  164. package/dist/ssr/format-property.js +0 -49
  165. package/dist/ssr/format-property.js.map +0 -1
  166. package/dist/ssr/format-rules.js +0 -73
  167. package/dist/ssr/format-rules.js.map +0 -1
  168. package/dist/ssr/hydrate.d.ts +0 -29
  169. package/dist/ssr/hydrate.js.map +0 -1
  170. package/dist/ssr/ssr-collector-ref.js +0 -29
  171. package/dist/ssr/ssr-collector-ref.js.map +0 -1
  172. package/dist/states/index.d.ts +0 -49
  173. package/dist/states/index.js +0 -170
  174. package/dist/states/index.js.map +0 -1
  175. package/dist/static/tastyStatic.d.ts +0 -46
  176. package/dist/static/tastyStatic.js +0 -30
  177. package/dist/static/tastyStatic.js.map +0 -1
  178. package/dist/static/types.d.ts +0 -49
  179. package/dist/static/types.js +0 -24
  180. package/dist/static/types.js.map +0 -1
  181. package/dist/styles/border.d.ts +0 -25
  182. package/dist/styles/border.js +0 -120
  183. package/dist/styles/border.js.map +0 -1
  184. package/dist/styles/color.d.ts +0 -14
  185. package/dist/styles/color.js +0 -26
  186. package/dist/styles/color.js.map +0 -1
  187. package/dist/styles/const.js +0 -17
  188. package/dist/styles/const.js.map +0 -1
  189. package/dist/styles/createStyle.js +0 -79
  190. package/dist/styles/createStyle.js.map +0 -1
  191. package/dist/styles/dimension.js +0 -109
  192. package/dist/styles/dimension.js.map +0 -1
  193. package/dist/styles/directional.js +0 -133
  194. package/dist/styles/directional.js.map +0 -1
  195. package/dist/styles/display.d.ts +0 -30
  196. package/dist/styles/display.js +0 -73
  197. package/dist/styles/display.js.map +0 -1
  198. package/dist/styles/fade.d.ts +0 -15
  199. package/dist/styles/fade.js +0 -62
  200. package/dist/styles/fade.js.map +0 -1
  201. package/dist/styles/fill.d.ts +0 -42
  202. package/dist/styles/fill.js +0 -51
  203. package/dist/styles/fill.js.map +0 -1
  204. package/dist/styles/flow.d.ts +0 -16
  205. package/dist/styles/flow.js +0 -12
  206. package/dist/styles/flow.js.map +0 -1
  207. package/dist/styles/gap.d.ts +0 -31
  208. package/dist/styles/gap.js +0 -38
  209. package/dist/styles/gap.js.map +0 -1
  210. package/dist/styles/height.d.ts +0 -17
  211. package/dist/styles/height.js +0 -19
  212. package/dist/styles/height.js.map +0 -1
  213. package/dist/styles/index.d.ts +0 -1
  214. package/dist/styles/index.js +0 -8
  215. package/dist/styles/index.js.map +0 -1
  216. package/dist/styles/inset.d.ts +0 -24
  217. package/dist/styles/inset.js +0 -34
  218. package/dist/styles/inset.js.map +0 -1
  219. package/dist/styles/list.d.ts +0 -16
  220. package/dist/styles/list.js +0 -100
  221. package/dist/styles/list.js.map +0 -1
  222. package/dist/styles/margin.d.ts +0 -24
  223. package/dist/styles/margin.js +0 -32
  224. package/dist/styles/margin.js.map +0 -1
  225. package/dist/styles/outline.d.ts +0 -29
  226. package/dist/styles/outline.js +0 -55
  227. package/dist/styles/outline.js.map +0 -1
  228. package/dist/styles/padding.d.ts +0 -24
  229. package/dist/styles/padding.js +0 -32
  230. package/dist/styles/padding.js.map +0 -1
  231. package/dist/styles/placement.d.ts +0 -37
  232. package/dist/styles/placement.js +0 -74
  233. package/dist/styles/placement.js.map +0 -1
  234. package/dist/styles/predefined.d.ts +0 -71
  235. package/dist/styles/predefined.js +0 -237
  236. package/dist/styles/predefined.js.map +0 -1
  237. package/dist/styles/preset.d.ts +0 -52
  238. package/dist/styles/preset.js +0 -127
  239. package/dist/styles/preset.js.map +0 -1
  240. package/dist/styles/radius.d.ts +0 -12
  241. package/dist/styles/radius.js +0 -83
  242. package/dist/styles/radius.js.map +0 -1
  243. package/dist/styles/scrollMargin.d.ts +0 -24
  244. package/dist/styles/scrollMargin.js +0 -32
  245. package/dist/styles/scrollMargin.js.map +0 -1
  246. package/dist/styles/scrollbar.d.ts +0 -25
  247. package/dist/styles/scrollbar.js +0 -51
  248. package/dist/styles/scrollbar.js.map +0 -1
  249. package/dist/styles/shadow.d.ts +0 -14
  250. package/dist/styles/shadow.js +0 -25
  251. package/dist/styles/shadow.js.map +0 -1
  252. package/dist/styles/shared.js +0 -17
  253. package/dist/styles/shared.js.map +0 -1
  254. package/dist/styles/transition.d.ts +0 -14
  255. package/dist/styles/transition.js +0 -159
  256. package/dist/styles/transition.js.map +0 -1
  257. package/dist/styles/width.d.ts +0 -17
  258. package/dist/styles/width.js +0 -19
  259. package/dist/styles/width.js.map +0 -1
  260. package/dist/tasty.d.ts +0 -134
  261. package/dist/tasty.js +0 -248
  262. package/dist/tasty.js.map +0 -1
  263. package/dist/types.d.ts +0 -184
  264. package/dist/utils/cache-wrapper.js +0 -21
  265. package/dist/utils/cache-wrapper.js.map +0 -1
  266. package/dist/utils/case-converter.js +0 -8
  267. package/dist/utils/case-converter.js.map +0 -1
  268. package/dist/utils/color-math.d.ts +0 -46
  269. package/dist/utils/color-math.js +0 -749
  270. package/dist/utils/color-math.js.map +0 -1
  271. package/dist/utils/color-space.d.ts +0 -5
  272. package/dist/utils/color-space.js +0 -228
  273. package/dist/utils/color-space.js.map +0 -1
  274. package/dist/utils/colors.d.ts +0 -5
  275. package/dist/utils/colors.js +0 -10
  276. package/dist/utils/colors.js.map +0 -1
  277. package/dist/utils/css-types.d.ts +0 -7
  278. package/dist/utils/deps-equal.js +0 -15
  279. package/dist/utils/deps-equal.js.map +0 -1
  280. package/dist/utils/dotize.d.ts +0 -26
  281. package/dist/utils/dotize.js +0 -122
  282. package/dist/utils/dotize.js.map +0 -1
  283. package/dist/utils/filter-base-props.d.ts +0 -15
  284. package/dist/utils/filter-base-props.js +0 -45
  285. package/dist/utils/filter-base-props.js.map +0 -1
  286. package/dist/utils/get-display-name.d.ts +0 -7
  287. package/dist/utils/get-display-name.js +0 -10
  288. package/dist/utils/get-display-name.js.map +0 -1
  289. package/dist/utils/has-keys.js +0 -13
  290. package/dist/utils/has-keys.js.map +0 -1
  291. package/dist/utils/hash.js +0 -14
  292. package/dist/utils/hash.js.map +0 -1
  293. package/dist/utils/is-dev-env.js +0 -19
  294. package/dist/utils/is-dev-env.js.map +0 -1
  295. package/dist/utils/is-valid-element-type.js +0 -15
  296. package/dist/utils/is-valid-element-type.js.map +0 -1
  297. package/dist/utils/merge-styles.js.map +0 -1
  298. package/dist/utils/mod-attrs.d.ts +0 -6
  299. package/dist/utils/mod-attrs.js +0 -20
  300. package/dist/utils/mod-attrs.js.map +0 -1
  301. package/dist/utils/process-tokens.d.ts +0 -17
  302. package/dist/utils/process-tokens.js +0 -83
  303. package/dist/utils/process-tokens.js.map +0 -1
  304. package/dist/utils/resolve-recipes.d.ts +0 -17
  305. package/dist/utils/resolve-recipes.js.map +0 -1
  306. package/dist/utils/selector-transform.js +0 -32
  307. package/dist/utils/selector-transform.js.map +0 -1
  308. package/dist/utils/string.js +0 -8
  309. package/dist/utils/string.js.map +0 -1
  310. package/dist/utils/styles.d.ts +0 -99
  311. package/dist/utils/styles.js +0 -220
  312. package/dist/utils/styles.js.map +0 -1
  313. package/dist/utils/typography.d.ts +0 -58
  314. package/dist/utils/typography.js +0 -51
  315. package/dist/utils/typography.js.map +0 -1
  316. package/dist/utils/warnings.d.ts +0 -16
  317. package/dist/utils/warnings.js +0 -16
  318. package/dist/utils/warnings.js.map +0 -1
  319. package/dist/zero/css-writer.d.ts +0 -45
  320. package/dist/zero/css-writer.js +0 -73
  321. package/dist/zero/css-writer.js.map +0 -1
  322. package/dist/zero/extractor.d.ts +0 -24
  323. package/dist/zero/extractor.js.map +0 -1
@@ -1,7 +1,473 @@
1
- import { CounterStyleDescriptors, FontFaceInput, KeyframesSteps, PropertyDefinition } from "../injector/types.js";
2
- import { CSSProperties } from "../utils/css-types.js";
3
- import { StyleValue, StyleValueStateMap } from "../utils/styles.js";
1
+ import { Properties } from "csstype";
4
2
 
3
+ //#region src/properties/property-type-resolver.d.ts
4
+ /**
5
+ * PropertyTypeResolver
6
+ *
7
+ * Automatically infers CSS @property types from custom property values.
8
+ * Supports deferred resolution for var() reference chains of arbitrary depth.
9
+ */
10
+ declare class PropertyTypeResolver {
11
+ /** propName → the prop it depends on */
12
+ private pendingDeps;
13
+ /** propName → list of props waiting on it */
14
+ private reverseDeps;
15
+ /**
16
+ * Scan CSS declarations and auto-register @property for custom properties
17
+ * whose types can be inferred from their values.
18
+ */
19
+ scanDeclarations(declarations: string, isPropertyDefined: (name: string) => boolean, registerProperty: (name: string, syntax: string, initialValue: string) => void): void;
20
+ private addDependency;
21
+ private resolve;
22
+ private isComplexValue;
23
+ }
24
+ //#endregion
25
+ //#region src/injector/types.d.ts
26
+ declare global {
27
+ interface Window {
28
+ __TASTY__?: string[];
29
+ }
30
+ }
31
+ interface InjectResult {
32
+ className: string;
33
+ dispose: () => void;
34
+ }
35
+ interface GlobalInjectResult {
36
+ dispose: () => void;
37
+ }
38
+ type DisposeFunction = () => void;
39
+ interface StyleInjectorConfig {
40
+ nonce?: string;
41
+ maxRulesPerSheet?: number;
42
+ forceTextInjection?: boolean;
43
+ /** Enable development mode features: performance metrics and debug information storage */
44
+ devMode?: boolean;
45
+ /**
46
+ * Global predefined states for advanced state mapping.
47
+ * These are state aliases that can be used in any component.
48
+ * Example: { '@mobile': '@media(w < 920px)', '@dark': '@root(theme=dark)' }
49
+ */
50
+ states?: Record<string, string>;
51
+ /**
52
+ * Automatically infer and register CSS @property declarations
53
+ * from custom property values. When false, only explicit @properties are used.
54
+ * @default true
55
+ */
56
+ autoPropertyTypes?: boolean;
57
+ /** Garbage collection configuration for unused styles */
58
+ gc?: GCConfig;
59
+ }
60
+ /**
61
+ * Per-className usage tracking for GC.
62
+ */
63
+ interface StyleUsage {
64
+ lastTouchedAt: number;
65
+ }
66
+ /**
67
+ * Configuration for the style garbage collector.
68
+ *
69
+ * GC is triggered by touch count rather than timers: every `touchInterval`
70
+ * touches, an idle callback is scheduled to evict unused styles above
71
+ * `capacity`, oldest first.
72
+ */
73
+ interface GCConfig {
74
+ /**
75
+ * Number of touch events between GC cycles.
76
+ * @default 1000
77
+ */
78
+ touchInterval?: number;
79
+ /**
80
+ * Maximum number of unused styles to retain.
81
+ * GC evicts the oldest unused styles when this limit is exceeded.
82
+ * Actively referenced styles (refCount > 0) and DOM-live styles
83
+ * do not count against this limit.
84
+ * @default 1000
85
+ */
86
+ capacity?: number;
87
+ }
88
+ /**
89
+ * Per-call options for gc().
90
+ */
91
+ interface GCOptions {
92
+ root?: Document | ShadowRoot;
93
+ /** Bypass capacity threshold and remove ALL unused styles. */
94
+ force?: boolean;
95
+ }
96
+ interface RuleInfo {
97
+ className: string;
98
+ ruleIndex: number;
99
+ sheetIndex: number;
100
+ /** Dev-only: full CSS texts inserted for this class; omitted in production */
101
+ cssText?: string[];
102
+ /** Inclusive end index of the contiguous block of inserted rules for this className */
103
+ endRuleIndex?: number;
104
+ /** NEW: exact indices of all inserted rules for this className */
105
+ indices?: number[];
106
+ }
107
+ type InjectionMode = 'style-element' | 'adopted';
108
+ interface SheetInfo {
109
+ /** HTMLStyleElement used in style-element mode; null in adopted mode. */
110
+ sheet: HTMLStyleElement | null;
111
+ /** Constructable CSSStyleSheet used in adopted mode (ShadowRoot targets) */
112
+ constructableSheet?: CSSStyleSheet;
113
+ ruleCount: number;
114
+ holes: number[];
115
+ }
116
+ interface CleanupStats {
117
+ timestamp: number;
118
+ classesDeleted: number;
119
+ cssSize: number;
120
+ rulesDeleted: number;
121
+ }
122
+ interface CacheMetrics {
123
+ hits: number;
124
+ misses: number;
125
+ bulkCleanups: number;
126
+ totalInsertions: number;
127
+ totalUnused: number;
128
+ stylesCleanedUp: number;
129
+ cleanupHistory: CleanupStats[];
130
+ startTime: number;
131
+ unusedHits?: number;
132
+ }
133
+ interface RootRegistry {
134
+ sheets: SheetInfo[];
135
+ refCounts: Map<string, number>;
136
+ rules: Map<string, RuleInfo>;
137
+ /** Cache key to className mapping to avoid dual storage of RuleInfo objects */
138
+ cacheKeyToClassName: Map<string, string>;
139
+ /** Deduplication set of fully materialized CSS rules inserted into sheets */
140
+ ruleTextSet: Set<string>;
141
+ /** Performance metrics (optional) */
142
+ metrics?: CacheMetrics;
143
+ /** Keyframes cache by content hash -> entry */
144
+ keyframesCache: Map<string, KeyframesCacheEntry>;
145
+ /** Keyframes name to content hash mapping for collision detection */
146
+ keyframesNameToContent: Map<string, string>;
147
+ /** Counter for generating keyframes names like k0, k1, k2... */
148
+ keyframesCounter: number;
149
+ /** Map of injected @property names to their normalized declarations for tracking */
150
+ injectedProperties: Map<string, string>;
151
+ /** Content hashes of injected @font-face rules for deduplication */
152
+ injectedFontFaces: Set<string>;
153
+ /** Names of injected @counter-style rules for deduplication */
154
+ injectedCounterStyles: Set<string>;
155
+ /** Global rules tracking for index adjustment */
156
+ globalRules: Map<string, RuleInfo>;
157
+ /** Resolver for auto-inferring @property types from declaration values */
158
+ propertyTypeResolver: PropertyTypeResolver;
159
+ /** Per-className usage tracking for GC */
160
+ usageMap: Map<string, StyleUsage>;
161
+ /** Touch counter for scheduling GC (per-root) */
162
+ touchCount: number;
163
+ /** How many entries from `window.__TASTY__` have been synced into this registry */
164
+ serverClassSyncIndex: number;
165
+ /** Whether `<style data-tasty-rsc>` tags have been scanned for class names */
166
+ rscStylesScanned: boolean;
167
+ /** Whether this root uses adoptedStyleSheets or <style> elements */
168
+ injectionMode: InjectionMode;
169
+ }
170
+ type StyleRule = StyleResult;
171
+ interface KeyframesInfo {
172
+ name: string;
173
+ sheetIndex: number;
174
+ ruleIndex: number;
175
+ /** Dev-only: full CSS text of the @keyframes rule; omitted in production */
176
+ cssText?: string;
177
+ }
178
+ type KeyframeStep = string | Record<string, string | number>;
179
+ type KeyframesSteps = Record<string, KeyframeStep>;
180
+ interface KeyframesResult {
181
+ toString(): string;
182
+ dispose: () => void;
183
+ }
184
+ interface KeyframesCacheEntry {
185
+ name: string;
186
+ refCount: number;
187
+ info: KeyframesInfo;
188
+ }
189
+ /**
190
+ * Definition for a CSS @property at-rule.
191
+ * Used to define custom property syntax, inheritance, and initial value.
192
+ */
193
+ interface PropertyDefinition {
194
+ /** CSS syntax string (e.g., '<color>', '<angle>', '<number>') */
195
+ syntax?: string;
196
+ /** Whether the property inherits (default: true) */
197
+ inherits?: boolean;
198
+ /** Initial value for the property */
199
+ initialValue?: string | number;
200
+ }
201
+ /**
202
+ * Descriptors for a CSS @font-face at-rule.
203
+ */
204
+ interface FontFaceDescriptors {
205
+ /** Required. URL(s) to the font file(s). */
206
+ src: string;
207
+ /** Font weight or range. Default: 'normal'. */
208
+ fontWeight?: string | number;
209
+ /** Font style. Default: 'normal'. */
210
+ fontStyle?: 'normal' | 'italic' | 'oblique' | (string & {});
211
+ /** Font stretch. Default: 'normal'. */
212
+ fontStretch?: string;
213
+ /** Loading behavior. Default: 'auto'. */
214
+ fontDisplay?: 'auto' | 'block' | 'swap' | 'fallback' | 'optional';
215
+ /** Unicode range to cover. */
216
+ unicodeRange?: string;
217
+ /** Ascent metric override. */
218
+ ascentOverride?: string;
219
+ /** Descent metric override. */
220
+ descentOverride?: string;
221
+ /** Line gap metric override. */
222
+ lineGapOverride?: string;
223
+ /** Size adjustment factor. */
224
+ sizeAdjust?: string;
225
+ /** OpenType feature settings. */
226
+ fontFeatureSettings?: string;
227
+ /** Font variation axis settings. */
228
+ fontVariationSettings?: string;
229
+ }
230
+ /** Single descriptor or array of descriptors for multiple weights/styles. */
231
+ type FontFaceInput = FontFaceDescriptors | FontFaceDescriptors[];
232
+ /**
233
+ * Descriptors for a CSS @counter-style at-rule.
234
+ */
235
+ interface CounterStyleDescriptors {
236
+ /** Required. Numbering algorithm. */
237
+ system: 'cyclic' | 'numeric' | 'alphabetic' | 'symbolic' | 'additive' | 'fixed' | (string & {});
238
+ /** Symbols for non-additive systems. */
239
+ symbols?: string;
240
+ /** Symbol-value pairs for additive system. */
241
+ additiveSymbols?: string;
242
+ /** String prepended to the marker. Default: "". */
243
+ prefix?: string;
244
+ /** String appended to the marker. Default: ". ". */
245
+ suffix?: string;
246
+ /** Negative-value wrapping (e.g., '"(" ")"'). */
247
+ negative?: string;
248
+ /** Counter range (e.g., 'infinite infinite'). */
249
+ range?: string;
250
+ /** Minimum marker width and pad symbol (e.g., '3 "0"'). */
251
+ pad?: string;
252
+ /** Fallback counter style name. */
253
+ fallback?: string;
254
+ /** Speech synthesis hint. */
255
+ speakAs?: string;
256
+ }
257
+ interface RawCSSResult {
258
+ dispose: () => void;
259
+ }
260
+ //#endregion
261
+ //#region src/utils/css-types.d.ts
262
+ interface CSSProperties extends Properties<string | number> {}
263
+ //#endregion
264
+ //#region src/parser/types.d.ts
265
+ declare enum Bucket {
266
+ Color = 0,
267
+ Value = 1,
268
+ Mod = 2
269
+ }
270
+ /**
271
+ * A part within a group, representing a slash-separated segment.
272
+ * For example, in `'2px solid #red / 4px'`, there are two parts:
273
+ * - Part 0: `2px solid #red`
274
+ * - Part 1: `4px`
275
+ */
276
+ interface StyleDetailsPart {
277
+ mods: string[];
278
+ values: string[];
279
+ colors: string[];
280
+ all: string[];
281
+ output: string;
282
+ }
283
+ /**
284
+ * A group of style details, representing a comma-separated segment.
285
+ * Contains aggregated values from all parts for backward compatibility,
286
+ * plus the structured `parts` array for handlers that need slash separation.
287
+ */
288
+ interface StyleDetails {
289
+ input: string;
290
+ output: string;
291
+ /** Aggregated mods from all parts (backward compatible) */
292
+ mods: string[];
293
+ /** Aggregated values from all parts (backward compatible) */
294
+ values: string[];
295
+ /** Aggregated colors from all parts (backward compatible) */
296
+ colors: string[];
297
+ /** Aggregated all tokens from all parts (backward compatible) */
298
+ all: string[];
299
+ /** Slash-separated parts within this group */
300
+ parts: StyleDetailsPart[];
301
+ }
302
+ interface ProcessedStyle {
303
+ output: string;
304
+ groups: StyleDetails[];
305
+ }
306
+ type UnitHandler = (scalar: number) => string;
307
+ interface ParserOptions {
308
+ funcs?: Record<string, (parsed: StyleDetails[]) => string>;
309
+ units?: Record<string, string | UnitHandler>;
310
+ cacheSize?: number;
311
+ }
312
+ //#endregion
313
+ //#region src/parser/parser.d.ts
314
+ declare class StyleParser {
315
+ private opts;
316
+ private cache;
317
+ constructor(opts?: ParserOptions);
318
+ process(src: string): ProcessedStyle;
319
+ setFuncs(funcs: Required<ParserOptions>['funcs']): void;
320
+ setUnits(units: Required<ParserOptions>['units']): void;
321
+ updateOptions(patch: Partial<ParserOptions>): void;
322
+ /**
323
+ * Clear the parser cache.
324
+ * Call this when external state that affects parsing results has changed
325
+ * (e.g., predefined tokens).
326
+ */
327
+ clearCache(): void;
328
+ /**
329
+ * Get the current units configuration.
330
+ */
331
+ getUnits(): ParserOptions['units'];
332
+ }
333
+ //#endregion
334
+ //#region src/utils/color-math.d.ts
335
+ /**
336
+ * Consolidated color conversion math.
337
+ *
338
+ * Single source of truth for all color space conversions used across the
339
+ * library: sRGB gamma, HSL, OKLab, OKLCH, OKHSL, hex parsing, named
340
+ * colors, and CSS string converters.
341
+ *
342
+ * This module has zero internal imports — it is a leaf dependency.
343
+ *
344
+ * Reference: https://bottosson.github.io/posts/oklab/
345
+ */
346
+ type Vec3 = [number, number, number];
347
+ /**
348
+ * HSL to RGB.
349
+ * Algorithm from CSS Color 4 spec.
350
+ *
351
+ * @param h - Hue in degrees (0-360)
352
+ * @param s - Saturation (0-1)
353
+ * @param l - Lightness (0-1)
354
+ * @returns RGB values in 0-255 range (may have fractional values)
355
+ */
356
+ declare function hslToRgbValues(h: number, s: number, l: number): Vec3;
357
+ declare function getNamedColorHex(): Map<string, string>;
358
+ /**
359
+ * Convert hex color string to `rgb()` CSS string.
360
+ * Supports 3, 4, 6, and 8 character hex values (with or without `#`).
361
+ */
362
+ declare function hexToRgb(hex: string): string | null;
363
+ /**
364
+ * Extract RGB values from an `rgb()`/`rgba()` string.
365
+ * Supports comma-separated, space-separated, fractional, percentage,
366
+ * and slash alpha notation.
367
+ *
368
+ * @returns Array of RGB values (0-255 range), converting percentages as needed.
369
+ */
370
+ declare function getRgbValuesFromRgbaString(str: string): number[];
371
+ /**
372
+ * Convert any recognized color string to an `rgb()` CSS string.
373
+ * Handles hex, `okhsl()`, `hsl()`/`hsla()`, named CSS colors,
374
+ * and `rgb()`/`rgba()` pass-through.
375
+ */
376
+ declare function strToRgb(color: string, _ignoreAlpha?: boolean): string | null | undefined;
377
+ //#endregion
378
+ //#region src/utils/styles.d.ts
379
+ type StyleValue<T = string> = T | boolean | number | null | undefined;
380
+ /**
381
+ * Normalize a color token value.
382
+ * - Boolean `true` is converted to `'transparent'`
383
+ * - Boolean `false` returns `null` (signals the token should be skipped)
384
+ * - Other values are returned as-is
385
+ *
386
+ * @param value - The raw token value
387
+ * @returns Normalized value or null if the token should be skipped
388
+ */
389
+ declare function normalizeColorTokenValue<T>(value: T | boolean): T | 'transparent' | null;
390
+ type StyleValueStateMap<T = string> = Record<string, StyleValue<T> | '@inherit'>;
391
+ /**
392
+ * Combined type for style values that can be either a direct value or a state map.
393
+ * Use this for component props that accept style values.
394
+ */
395
+ type StylePropValue<T = string> = StyleValue<T> | StyleValueStateMap<T>;
396
+ type CSSMap = {
397
+ $?: string | string[];
398
+ } & Record<string, string | string[]>;
399
+ type StyleHandlerResult = CSSMap | CSSMap[] | null | void;
400
+ type RawStyleHandler = (value: StyleValueStateMap) => StyleHandlerResult;
401
+ type StyleHandler = RawStyleHandler & {
402
+ __lookupStyles: string[];
403
+ };
404
+ /**
405
+ * Handler definition forms for configure() and plugins.
406
+ * - Function only: lookup styles inferred from key name
407
+ * - Single property tuple: ['styleName', handler]
408
+ * - Multi-property tuple: [['style1', 'style2'], handler]
409
+ */
410
+ type StyleHandlerDefinition = RawStyleHandler | [string, RawStyleHandler] | [string[], RawStyleHandler];
411
+ interface ParsedColor {
412
+ color?: string;
413
+ name?: string;
414
+ opacity?: number;
415
+ }
416
+ type StyleMap = Record<string, StyleValue | StyleValueStateMap>;
417
+ declare const CUSTOM_UNITS: {
418
+ r: string;
419
+ cr: string;
420
+ bw: string;
421
+ ow: string;
422
+ x: string;
423
+ sf: (num: number) => string;
424
+ };
425
+ declare const DIRECTIONS: string[];
426
+ declare function customFunc(name: string, fn: (groups: StyleDetails[]) => string): void;
427
+ /**
428
+ * Get the global StyleParser instance.
429
+ * Used by configure() to apply parser configuration.
430
+ */
431
+ declare function getGlobalParser(): StyleParser;
432
+ /**
433
+ * Get the current custom functions registry.
434
+ * Used by configure() to merge with new functions.
435
+ */
436
+ declare function getGlobalFuncs(): Record<string, (groups: StyleDetails[]) => string>;
437
+ /**
438
+ * Set global predefined tokens.
439
+ * Called from configure() after processing token values.
440
+ * Merges with existing tokens (new tokens override existing ones with same key).
441
+ * Keys are normalized to lowercase (parser lowercases input before classification).
442
+ * @internal
443
+ */
444
+ declare function setGlobalPredefinedTokens(tokens: Record<string, string>): void;
445
+ /**
446
+ * Get the current global predefined tokens.
447
+ * Returns null if no tokens are configured.
448
+ */
449
+ declare function getGlobalPredefinedTokens(): Record<string, string> | null;
450
+ /**
451
+ * Reset global predefined tokens.
452
+ * Used for testing.
453
+ * @internal
454
+ */
455
+ declare function resetGlobalPredefinedTokens(): void;
456
+ /**
457
+ *
458
+ * @param {String} value
459
+ * @param {Number} mode
460
+ * @returns {Object<String,String|Array>}
461
+ */
462
+ declare function parseStyle(value: StyleValue): ProcessedStyle;
463
+ /**
464
+ * Parse color. Find it value, name and opacity.
465
+ * Optimized to avoid heavy parseStyle calls for simple color patterns.
466
+ */
467
+ declare function parseColor(val: string, ignoreError?: boolean): ParsedColor;
468
+ declare function filterMods(mods: string[], allowedMods: string[]): string[];
469
+ declare function stringifyStyles(styles: unknown): string;
470
+ //#endregion
5
471
  //#region src/styles/types.d.ts
6
472
  /**
7
473
  * Extensible interface for named color tokens.
@@ -560,5 +1026,241 @@ type ConfigTokenValue = string | number | boolean | Record<string, string | numb
560
1026
  */
561
1027
  type ConfigTokens = Record<`$${string}` | `#${string}`, ConfigTokenValue>;
562
1028
  //#endregion
563
- export { ConfigTokenValue, ConfigTokens, NoType, NotSelector, RecipeStyles, Selector, Styles, StylesInterface, StylesWithoutSelectors, SuffixForSelector, TastyNamedColors, TastyPresetNames };
564
- //# sourceMappingURL=types.d.ts.map
1029
+ //#region src/pipeline/conditions.d.ts
1030
+ /**
1031
+ * ConditionNode Types and Helpers
1032
+ *
1033
+ * Core data structures for representing style conditions as an abstract syntax tree.
1034
+ * Used throughout the pipeline for parsing, simplification, and CSS generation.
1035
+ */
1036
+ /**
1037
+ * Base interface for all state conditions (leaf nodes)
1038
+ */
1039
+ interface BaseStateCondition {
1040
+ kind: 'state';
1041
+ negated: boolean;
1042
+ raw: string;
1043
+ uniqueId: string;
1044
+ }
1045
+ /**
1046
+ * Modifier condition: [data-attr] or [data-attr="value"]
1047
+ */
1048
+ interface ModifierCondition extends BaseStateCondition {
1049
+ type: 'modifier';
1050
+ attribute: string;
1051
+ value?: string;
1052
+ operator?: '=' | '^=' | '$=' | '*=';
1053
+ }
1054
+ /**
1055
+ * Pseudo-class condition: :hover, :focus-visible
1056
+ */
1057
+ interface PseudoCondition extends BaseStateCondition {
1058
+ type: 'pseudo';
1059
+ pseudo: string;
1060
+ }
1061
+ /**
1062
+ * Numeric bound for dimension queries
1063
+ */
1064
+ interface NumericBound {
1065
+ value: string;
1066
+ valueNumeric: number | null;
1067
+ inclusive: boolean;
1068
+ }
1069
+ /**
1070
+ * Media query condition
1071
+ */
1072
+ interface MediaCondition extends BaseStateCondition {
1073
+ type: 'media';
1074
+ subtype: 'dimension' | 'feature' | 'type';
1075
+ dimension?: 'width' | 'height' | 'inline-size' | 'block-size';
1076
+ lowerBound?: NumericBound;
1077
+ upperBound?: NumericBound;
1078
+ feature?: string;
1079
+ featureValue?: string;
1080
+ mediaType?: 'print' | 'screen' | 'all' | 'speech';
1081
+ }
1082
+ /**
1083
+ * Container query condition
1084
+ */
1085
+ interface ContainerCondition extends BaseStateCondition {
1086
+ type: 'container';
1087
+ subtype: 'dimension' | 'style' | 'raw';
1088
+ containerName?: string;
1089
+ dimension?: 'width' | 'height' | 'inline-size' | 'block-size';
1090
+ lowerBound?: NumericBound;
1091
+ upperBound?: NumericBound;
1092
+ property?: string;
1093
+ propertyValue?: string;
1094
+ rawCondition?: string;
1095
+ }
1096
+ /**
1097
+ * Root state condition: @root(theme=dark)
1098
+ */
1099
+ interface RootCondition extends BaseStateCondition {
1100
+ type: 'root';
1101
+ innerCondition: ConditionNode;
1102
+ }
1103
+ /**
1104
+ * Parent state condition: @parent(hovered), @parent(theme=dark, >)
1105
+ */
1106
+ interface ParentCondition extends BaseStateCondition {
1107
+ type: 'parent';
1108
+ innerCondition: ConditionNode;
1109
+ direct: boolean;
1110
+ }
1111
+ /**
1112
+ * Own state condition: @own(hovered)
1113
+ */
1114
+ interface OwnCondition extends BaseStateCondition {
1115
+ type: 'own';
1116
+ innerCondition: ConditionNode;
1117
+ }
1118
+ /**
1119
+ * Starting style condition: @starting
1120
+ */
1121
+ interface StartingCondition extends BaseStateCondition {
1122
+ type: 'starting';
1123
+ }
1124
+ /**
1125
+ * Supports query condition: @supports(display: grid), @supports($, :has(*))
1126
+ */
1127
+ interface SupportsCondition extends BaseStateCondition {
1128
+ type: 'supports';
1129
+ subtype: 'feature' | 'selector';
1130
+ condition: string;
1131
+ }
1132
+ /**
1133
+ * Union of all state condition types
1134
+ */
1135
+ type StateCondition = ModifierCondition | PseudoCondition | MediaCondition | ContainerCondition | RootCondition | ParentCondition | OwnCondition | StartingCondition | SupportsCondition;
1136
+ /**
1137
+ * Compound node: combines conditions with AND/OR
1138
+ */
1139
+ interface CompoundCondition {
1140
+ kind: 'compound';
1141
+ operator: 'AND' | 'OR';
1142
+ children: ConditionNode[];
1143
+ }
1144
+ /**
1145
+ * True condition (matches everything)
1146
+ */
1147
+ interface TrueCondition {
1148
+ kind: 'true';
1149
+ }
1150
+ /**
1151
+ * False condition (matches nothing - skip this rule)
1152
+ */
1153
+ interface FalseCondition {
1154
+ kind: 'false';
1155
+ }
1156
+ /**
1157
+ * Union of all condition node types
1158
+ */
1159
+ type ConditionNode = StateCondition | CompoundCondition | TrueCondition | FalseCondition;
1160
+ //#endregion
1161
+ //#region src/states/index.d.ts
1162
+ /**
1163
+ * Parsed advanced state information
1164
+ */
1165
+ interface ParsedAdvancedState {
1166
+ type: 'media' | 'container' | 'root' | 'parent' | 'own' | 'starting' | 'predefined' | 'modifier';
1167
+ condition: string;
1168
+ containerName?: string;
1169
+ raw: string;
1170
+ mediaType?: string;
1171
+ }
1172
+ /**
1173
+ * Context for state parsing operations
1174
+ */
1175
+ interface StateParserContext {
1176
+ localPredefinedStates: Record<string, string>;
1177
+ globalPredefinedStates: Record<string, string>;
1178
+ isSubElement?: boolean;
1179
+ }
1180
+ /**
1181
+ * At-rule context for CSS generation
1182
+ */
1183
+ interface AtRuleContext {
1184
+ media?: string[];
1185
+ container?: {
1186
+ name?: string;
1187
+ condition: string;
1188
+ }[];
1189
+ startingStyle?: boolean;
1190
+ rootStates?: string[];
1191
+ negatedRootStates?: string[];
1192
+ }
1193
+ /**
1194
+ * Configure global predefined states
1195
+ */
1196
+ declare function setGlobalPredefinedStates(states: Record<string, string>): void;
1197
+ /**
1198
+ * Get global predefined states
1199
+ */
1200
+ declare function getGlobalPredefinedStates(): Record<string, string>;
1201
+ /**
1202
+ * Create a state parser context from styles
1203
+ */
1204
+ declare function createStateParserContext(styles?: Styles, isSubElement?: boolean): StateParserContext;
1205
+ //#endregion
1206
+ //#region src/pipeline/parseStateKey.d.ts
1207
+ interface ParseStateKeyOptions {
1208
+ context?: StateParserContext;
1209
+ isSubElement?: boolean;
1210
+ }
1211
+ /**
1212
+ * Parse a state key string into a ConditionNode
1213
+ */
1214
+ declare function parseStateKey(stateKey: string, options?: ParseStateKeyOptions): ConditionNode;
1215
+ //#endregion
1216
+ //#region src/pipeline/index.d.ts
1217
+ /**
1218
+ * Matches the old StyleResult interface for backward compatibility
1219
+ */
1220
+ interface StyleResult {
1221
+ selector: string;
1222
+ declarations: string;
1223
+ atRules?: string[];
1224
+ needsClassName?: boolean;
1225
+ rootPrefix?: string;
1226
+ /** When true, declarations are wrapped in @starting-style { ... } inside the selector rule */
1227
+ startingStyle?: boolean;
1228
+ }
1229
+ /**
1230
+ * Matches the old RenderResult interface for backward compatibility
1231
+ */
1232
+ interface RenderResult {
1233
+ rules: StyleResult[];
1234
+ className?: string;
1235
+ }
1236
+ /**
1237
+ * Check if a key is a CSS selector
1238
+ */
1239
+ declare function isSelector(key: string): boolean;
1240
+ /**
1241
+ * Options for renderStyles when using direct selector mode.
1242
+ */
1243
+ interface RenderStylesOptions {
1244
+ /**
1245
+ * Whether to double the class selector for increased specificity.
1246
+ * When true, `.myClass` becomes `.myClass.myClass` for higher specificity.
1247
+ *
1248
+ * @default false - User-provided selectors are not doubled.
1249
+ *
1250
+ * Note: This only applies when a classNameOrSelector is provided.
1251
+ * When renderStyles returns RenderResult with needsClassName=true,
1252
+ * the injector handles doubling automatically.
1253
+ */
1254
+ doubleSelector?: boolean;
1255
+ }
1256
+ /**
1257
+ * Render styles to CSS rules.
1258
+ *
1259
+ * When called without classNameOrSelector, returns RenderResult with needsClassName=true.
1260
+ * When called with a selector/className string, returns StyleResult[] for direct injection.
1261
+ */
1262
+ declare function renderStyles(styles?: Styles, classNameOrSelector?: undefined, options?: undefined, pipelineCacheKey?: string): RenderResult;
1263
+ declare function renderStyles(styles: Styles | undefined, classNameOrSelector: string, options?: RenderStylesOptions): StyleResult[];
1264
+ //#endregion
1265
+ export { strToRgb as $, RawStyleHandler as A, getGlobalFuncs as B, SuffixForSelector as C, RawCSSResult as Ct, CUSTOM_UNITS as D, StyleInjectorConfig as Dt, CSSMap as E, SheetInfo as Et, StylePropValue as F, parseStyle as G, getGlobalPredefinedTokens as H, StyleValue as I, stringifyStyles as J, resetGlobalPredefinedTokens as K, StyleValueStateMap as L, StyleHandlerDefinition as M, StyleHandlerResult as N, DIRECTIONS as O, StyleRule as Ot, StyleMap as P, hslToRgbValues as Q, customFunc as R, StylesWithoutSelectors as S, PropertyDefinition as St, TastyPresetNames as T, RuleInfo as Tt, normalizeColorTokenValue as U, getGlobalParser as V, parseColor as W, getRgbValuesFromRgbaString as X, getNamedColorHex as Y, hexToRgb as Z, NotSelector as _, InjectionMode as _t, ParseStateKeyOptions as a, StyleDetailsPart as at, Styles as b, KeyframesResult as bt, ParsedAdvancedState as c, CacheMetrics as ct, getGlobalPredefinedStates as d, FontFaceDescriptors as dt, StyleParser as et, setGlobalPredefinedStates as f, FontFaceInput as ft, NoType as g, InjectResult as gt, ConfigTokens as h, GlobalInjectResult as ht, renderStyles as i, StyleDetails as it, StyleHandler as j, ParsedColor as k, StyleUsage as kt, StateParserContext as l, CounterStyleDescriptors as lt, ConfigTokenValue as m, GCOptions as mt, StyleResult as n, ParserOptions as nt, parseStateKey as o, UnitHandler as ot, ConditionNode as p, GCConfig as pt, setGlobalPredefinedTokens as q, isSelector as r, ProcessedStyle as rt, AtRuleContext as s, CSSProperties as st, RenderResult as t, Bucket as tt, createStateParserContext as u, DisposeFunction as ut, RecipeStyles as v, KeyframesCacheEntry as vt, TastyNamedColors as w, RootRegistry as wt, StylesInterface as x, KeyframesSteps as xt, Selector as y, KeyframesInfo as yt, filterMods as z };
1266
+ //# sourceMappingURL=index-dUtwpOux.d.ts.map