@tenphi/tasty 0.0.0-snapshot.e4609d6 → 0.0.0-snapshot.e4e4347

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 (129) hide show
  1. package/README.md +436 -394
  2. package/dist/babel-types-BKDTT4--.d.ts +18 -0
  3. package/dist/chunks/async-storage-f9j9JRtq.js +37 -0
  4. package/dist/chunks/async-storage-f9j9JRtq.js.map +1 -0
  5. package/dist/chunks/build-config-5d8WlQbq.js +60 -0
  6. package/dist/chunks/build-config-5d8WlQbq.js.map +1 -0
  7. package/dist/{collector-BpkjNQDo.js → chunks/collector-CjCak4iE.js} +25 -119
  8. package/dist/chunks/collector-CjCak4iE.js.map +1 -0
  9. package/dist/chunks/config-engine-uOFYZidB.js +272 -0
  10. package/dist/chunks/config-engine-uOFYZidB.js.map +1 -0
  11. package/dist/chunks/config-file-DlZXJMj8.js +25 -0
  12. package/dist/chunks/config-file-DlZXJMj8.js.map +1 -0
  13. package/dist/chunks/css-definitions-ubrHP97m.js +910 -0
  14. package/dist/chunks/css-definitions-ubrHP97m.js.map +1 -0
  15. package/dist/chunks/css-resources-P7IBUUZs.js +142 -0
  16. package/dist/chunks/css-resources-P7IBUUZs.js.map +1 -0
  17. package/dist/chunks/debug-CJ31U_WE.js +502 -0
  18. package/dist/chunks/debug-CJ31U_WE.js.map +1 -0
  19. package/dist/chunks/dsl-DYSJc1-T.js +1383 -0
  20. package/dist/chunks/dsl-DYSJc1-T.js.map +1 -0
  21. package/dist/chunks/hydration-TRcz5vnk.js +41 -0
  22. package/dist/chunks/hydration-TRcz5vnk.js.map +1 -0
  23. package/dist/chunks/react-runtime-CyyCI02N.js +689 -0
  24. package/dist/chunks/react-runtime-CyyCI02N.js.map +1 -0
  25. package/dist/chunks/runtime-engine-BQmOu5-W.js +2432 -0
  26. package/dist/chunks/runtime-engine-BQmOu5-W.js.map +1 -0
  27. package/dist/chunks/runtime-state-DEsyUMU-.js +152 -0
  28. package/dist/chunks/runtime-state-DEsyUMU-.js.map +1 -0
  29. package/dist/{merge-styles-B0lMso5W.js → chunks/shared-utils-y-HjvPN4.js} +60 -55
  30. package/dist/chunks/shared-utils-y-HjvPN4.js.map +1 -0
  31. package/dist/chunks/style-engine-BX2LshDZ.js +5466 -0
  32. package/dist/chunks/style-engine-BX2LshDZ.js.map +1 -0
  33. package/dist/{css-writer-BHjTF0YN.js → chunks/zero-engine-Dw0P4yGM.js} +65 -145
  34. package/dist/chunks/zero-engine-Dw0P4yGM.js.map +1 -0
  35. package/dist/{collector-D8o4Wdq-.d.ts → collector-CTU-nl0g.d.ts} +23 -4
  36. package/dist/{config-De8L9NWM.d.ts → config-CcxqSZI2.d.ts} +274 -78
  37. package/dist/core/index.d.ts +5 -5
  38. package/dist/core/index.js +9 -6
  39. package/dist/hydrate-CRyjjAyl.d.ts +22 -0
  40. package/dist/{index-DzGxoeyN.d.ts → index-xtey-KDu.d.ts} +350 -253
  41. package/dist/index.d.ts +5 -5
  42. package/dist/index.js +11 -867
  43. package/dist/{merge-styles-DLm4wdnb.d.ts → merge-styles-DSkVc6CD.d.ts} +2 -3
  44. package/dist/ssr/astro-client.d.ts +1 -1
  45. package/dist/ssr/astro-client.js +1 -14
  46. package/dist/ssr/astro-client.js.map +1 -1
  47. package/dist/ssr/astro-middleware-extract-static.d.ts +10 -0
  48. package/dist/ssr/astro-middleware-extract-static.js +9 -0
  49. package/dist/ssr/astro-middleware-extract-static.js.map +1 -0
  50. package/dist/ssr/astro-middleware-extract.d.ts +10 -0
  51. package/dist/ssr/astro-middleware-extract.js +9 -0
  52. package/dist/ssr/astro-middleware-extract.js.map +1 -0
  53. package/dist/ssr/astro-middleware-static.d.ts +3 -2
  54. package/dist/ssr/astro-middleware-static.js +0 -11
  55. package/dist/ssr/astro-middleware-static.js.map +1 -1
  56. package/dist/ssr/astro-middleware.d.ts +3 -2
  57. package/dist/ssr/astro-middleware.js +0 -12
  58. package/dist/ssr/astro-middleware.js.map +1 -1
  59. package/dist/ssr/astro.d.ts +40 -6
  60. package/dist/ssr/astro.js +157 -93
  61. package/dist/ssr/astro.js.map +1 -1
  62. package/dist/ssr/client.d.ts +2 -0
  63. package/dist/ssr/client.js +2 -0
  64. package/dist/ssr/index.d.ts +5 -25
  65. package/dist/ssr/index.js +5 -5
  66. package/dist/ssr/index.js.map +1 -1
  67. package/dist/ssr/next-config.d.ts +64 -0
  68. package/dist/ssr/next-config.js +123 -0
  69. package/dist/ssr/next-config.js.map +1 -0
  70. package/dist/ssr/next.d.ts +9 -8
  71. package/dist/ssr/next.js +29 -43
  72. package/dist/ssr/next.js.map +1 -1
  73. package/dist/static/index.d.ts +8 -9
  74. package/dist/static/index.js +4 -22
  75. package/dist/static/index.js.map +1 -1
  76. package/dist/static/inject.d.ts +1 -2
  77. package/dist/{index-KUYya3x7.d.ts → types-DJEM_BOJ.d.ts} +741 -590
  78. package/dist/zero/babel.d.ts +67 -2
  79. package/dist/zero/babel.js +77 -140
  80. package/dist/zero/babel.js.map +1 -1
  81. package/dist/zero/index.d.ts +62 -8
  82. package/dist/zero/index.js +24 -2
  83. package/dist/zero/index.js.map +1 -0
  84. package/dist/zero/next.d.ts +4 -5
  85. package/dist/zero/next.js +3 -38
  86. package/dist/zero/next.js.map +1 -1
  87. package/docs/README.md +16 -8
  88. package/docs/adoption.md +69 -36
  89. package/docs/ai-agents.md +118 -86
  90. package/docs/comparison.md +77 -47
  91. package/docs/configuration.md +434 -108
  92. package/docs/debug.md +21 -8
  93. package/docs/design-system.md +152 -31
  94. package/docs/dsl.md +483 -211
  95. package/docs/getting-started.md +130 -50
  96. package/docs/injector.md +117 -68
  97. package/docs/methodology.md +81 -50
  98. package/docs/migration-v3.md +52 -52
  99. package/docs/pipeline.md +54 -30
  100. package/docs/plugins.md +59 -75
  101. package/docs/react-api.md +135 -53
  102. package/docs/runtime-benchmarks.md +388 -0
  103. package/docs/ssr.md +285 -101
  104. package/docs/styles.md +128 -33
  105. package/docs/tasty-static.md +272 -135
  106. package/package.json +119 -34
  107. package/dist/async-storage-DKK-wTD4.js +0 -44
  108. package/dist/async-storage-DKK-wTD4.js.map +0 -1
  109. package/dist/babel-R2qT7yLN.d.ts +0 -83
  110. package/dist/collector-BpkjNQDo.js.map +0 -1
  111. package/dist/config-DOCuTykY.js +0 -12315
  112. package/dist/config-DOCuTykY.js.map +0 -1
  113. package/dist/context-CA8YKeMn.js +0 -24
  114. package/dist/context-CA8YKeMn.js.map +0 -1
  115. package/dist/core-p6iTbQnn.js +0 -1550
  116. package/dist/core-p6iTbQnn.js.map +0 -1
  117. package/dist/css-writer-BHjTF0YN.js.map +0 -1
  118. package/dist/format-global-rules-DklyaXv-.js +0 -22
  119. package/dist/format-global-rules-DklyaXv-.js.map +0 -1
  120. package/dist/format-rules-Cb0YIjyS.js +0 -143
  121. package/dist/format-rules-Cb0YIjyS.js.map +0 -1
  122. package/dist/hydrate-xnaB3SDm.js +0 -37
  123. package/dist/hydrate-xnaB3SDm.js.map +0 -1
  124. package/dist/index.js.map +0 -1
  125. package/dist/keyframes-DiXjNoBZ.js +0 -424
  126. package/dist/keyframes-DiXjNoBZ.js.map +0 -1
  127. package/dist/merge-styles-B0lMso5W.js.map +0 -1
  128. package/dist/resolve-recipes-C9nAuwgR.js +0 -144
  129. package/dist/resolve-recipes-C9nAuwgR.js.map +0 -1
@@ -1,8 +1,64 @@
1
- import { _ as TastyPluginFactory, w as StyleInjector } from "./config-De8L9NWM.js";
2
- import { B as StyleValueStateMap, Ct as PropertyOptions, D as CSSMap, I as StyleHandlerResult, M as ResolvedStyleValue, Ot as StyleInjectorConfig, R as StylePropValue, at as CSSProperties$1, b as Styles, bt as KeyframesResult, dt as FunctionDefinition, gt as InjectResult, ht as GlobalInjectResult, j as RawStyleHandler, lt as FontFaceDescriptors, mt as GCOptions, n as StyleResult, nt as StyleDetails, ot as CacheMetrics, st as CounterStyleDescriptors, ut as FontFaceInput, x as StylesInterface, xt as KeyframesSteps, z as StyleValue } from "./index-KUYya3x7.js";
3
- import { t as ServerStyleCollector } from "./collector-D8o4Wdq-.js";
4
- import { AllHTMLAttributes, CSSProperties, ComponentType, ElementType, ForwardRefExoticComponent, JSX, PropsWithoutRef, RefAttributes } from "react";
5
-
1
+ import { Et as StyleDetails, G as NoType, M as StyleResult, X as StylesInterface, Y as Styles, _ as KeyframesSteps, a as FontFaceInput, ct as StyleHandler, d as InjectOptions, dt as StyleHandlerResult, f as InjectResult, g as KeyframesResult, ht as StyleValueStateMap, i as FontFaceDescriptors, kt as CSSProperties$1, l as GCOptions, mt as StyleValue, n as CounterStyleDescriptors, nt as CSSMap, o as FunctionDefinition, ot as RawStyleHandler, pt as StylePropValue, st as ResolvedStyleValue, t as CacheMetrics, u as GlobalInjectResult, w as StyleInjectorConfig, y as PropertyOptions } from "./types-DJEM_BOJ.js";
2
+ import { f as TastyPluginFactory, y as StyleInjector } from "./config-CcxqSZI2.js";
3
+ import { t as ServerStyleCollector } from "./collector-CTU-nl0g.js";
4
+ import "./merge-styles-DSkVc6CD.js";
5
+ import React, { AllHTMLAttributes, CSSProperties, ComponentType, ElementType, ForwardRefExoticComponent, JSX, PropsWithoutRef, ReactNode, RefAttributes } from "react";
6
+ //#region src/utils/color-math.d.ts
7
+ /**
8
+ * Consolidated color conversion math.
9
+ *
10
+ * Single source of truth for all color space conversions used across the
11
+ * library: sRGB gamma, HSL, OKLab, OKLCH, OKHSL, hex parsing, named
12
+ * colors, and CSS string converters.
13
+ *
14
+ * This module has zero internal imports — it is a leaf dependency.
15
+ *
16
+ * Reference: https://bottosson.github.io/posts/oklab/
17
+ */
18
+ type Vec3 = [number, number, number];
19
+ /**
20
+ * HSL to RGB.
21
+ * Algorithm from CSS Color 4 spec.
22
+ *
23
+ * @param h - Hue in degrees (0-360)
24
+ * @param s - Saturation (0-1)
25
+ * @param l - Lightness (0-1)
26
+ * @returns RGB values in 0-255 range (may have fractional values)
27
+ */
28
+ declare function hslToRgbValues(h: number, s: number, l: number): Vec3;
29
+ declare function getNamedColorHex(): Map<string, string>;
30
+ /**
31
+ * Convert hex color string to `rgb()` CSS string.
32
+ * Supports 3, 4, 6, and 8 character hex values (with or without `#`).
33
+ */
34
+ declare function hexToRgb(hex: string): string | null;
35
+ /**
36
+ * Extract RGB values from an `rgb()`/`rgba()` string.
37
+ * Supports comma-separated, space-separated, fractional, percentage,
38
+ * and slash alpha notation.
39
+ *
40
+ * @returns Array of RGB values (0-255 range), converting percentages as needed.
41
+ */
42
+ declare function getRgbValuesFromRgbaString(str: string): number[];
43
+ /**
44
+ * Convert any recognized color string to an `rgb()` CSS string.
45
+ * Handles hex, `okhsl()`, `okhst()`, `hsl()`/`hsla()`, named CSS colors,
46
+ * and `rgb()`/`rgba()` pass-through.
47
+ */
48
+ declare function strToRgb(color: string, _ignoreAlpha?: boolean): string | null | undefined;
49
+ //#endregion
50
+ //#region src/utils/is-selector.d.ts
51
+ /** Check whether a style-object key identifies a nested CSS selector. */
52
+ declare function isSelector(key: string): boolean;
53
+ //#endregion
54
+ //#region src/config-state.d.ts
55
+ /**
56
+ * Minimal configuration state shared by the style engine, zero-runtime
57
+ * extractor, and runtime configuration module. Keeping it independent
58
+ * prevents pure rendering code from importing the full injector graph.
59
+ */
60
+ declare function hasStylesGenerated(): boolean;
61
+ //#endregion
6
62
  //#region src/utils/name-prefix.d.ts
7
63
  /**
8
64
  * Name prefix utilities for generated identifiers.
@@ -31,17 +87,17 @@ declare const DEFAULT_ZERO_NAME_PREFIX = "ts";
31
87
  //#endregion
32
88
  //#region src/styles/list.d.ts
33
89
  declare const BASE_STYLES: readonly ["display", "font", "preset", "hide", "whiteSpace", "opacity", "transition"];
34
- declare const POSITION_STYLES: readonly ["gridArea", "order", "gridColumn", "gridRow", "placeSelf", "alignSelf", "justifySelf", "zIndex", "margin", "inset", "position", "scrollMargin"];
35
- declare const BLOCK_INNER_STYLES: readonly ["padding", "paddingInline", "paddingBlock", "overflow", "scrollbar", "textAlign"];
36
- declare const BLOCK_OUTER_STYLES: readonly ["border", "radius", "shadow", "outline"];
37
- declare const BLOCK_STYLES: readonly ["padding", "paddingInline", "paddingBlock", "overflow", "scrollbar", "textAlign", "border", "radius", "shadow", "outline"];
90
+ declare const POSITION_STYLES: readonly ["gridArea", "order", "gridColumn", "gridRow", "placeSelf", "alignSelf", "justifySelf", "zIndex", "margin", "blockMargin", "inlineMargin", "inset", "blockInset", "inlineInset", "position", "scrollMargin", "blockScrollMargin", "inlineScrollMargin", "scrollPadding", "blockScrollPadding", "inlineScrollPadding"];
91
+ declare const BLOCK_INNER_STYLES: readonly ["padding", "blockPadding", "inlinePadding", "overflow", "scrollbar", "textAlign"];
92
+ declare const BLOCK_OUTER_STYLES: readonly ["border", "blockBorder", "inlineBorder", "radius", "shadow", "outline"];
93
+ declare const BLOCK_STYLES: readonly ["padding", "blockPadding", "inlinePadding", "overflow", "scrollbar", "textAlign", "border", "blockBorder", "inlineBorder", "radius", "shadow", "outline"];
38
94
  declare const COLOR_STYLES: readonly ["color", "fill", "fade", "image"];
39
95
  declare const TEXT_STYLES: readonly ["textTransform", "fontWeight", "fontStyle"];
40
- declare const DIMENSION_STYLES: readonly ["width", "height", "flexBasis", "flexGrow", "flexShrink", "flex"];
96
+ declare const DIMENSION_STYLES: readonly ["width", "height", "blockSize", "inlineSize", "flexBasis", "flexGrow", "flexShrink", "flex"];
41
97
  declare const FLOW_STYLES: readonly ["flow", "place", "placeItems", "placeContent", "alignItems", "alignContent", "justifyItems", "justifyContent", "align", "justify", "gap", "columnGap", "rowGap", "gridColumns", "gridRows", "gridTemplate", "gridAreas"];
42
- 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"];
43
- 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"];
44
- 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"];
98
+ declare const CONTAINER_STYLES: readonly ["display", "font", "preset", "hide", "whiteSpace", "opacity", "transition", "color", "fill", "fade", "image", "width", "height", "blockSize", "inlineSize", "flexBasis", "flexGrow", "flexShrink", "flex", "gridArea", "order", "gridColumn", "gridRow", "placeSelf", "alignSelf", "justifySelf", "zIndex", "margin", "blockMargin", "inlineMargin", "inset", "blockInset", "inlineInset", "position", "scrollMargin", "blockScrollMargin", "inlineScrollMargin", "scrollPadding", "blockScrollPadding", "inlineScrollPadding", "padding", "blockPadding", "inlinePadding", "overflow", "scrollbar", "textAlign", "border", "blockBorder", "inlineBorder", "radius", "shadow", "outline", "flow", "place", "placeItems", "placeContent", "alignItems", "alignContent", "justifyItems", "justifyContent", "align", "justify", "gap", "columnGap", "rowGap", "gridColumns", "gridRows", "gridTemplate", "gridAreas"];
99
+ declare const OUTER_STYLES: readonly ["gridArea", "order", "gridColumn", "gridRow", "placeSelf", "alignSelf", "justifySelf", "zIndex", "margin", "blockMargin", "inlineMargin", "inset", "blockInset", "inlineInset", "position", "scrollMargin", "blockScrollMargin", "inlineScrollMargin", "scrollPadding", "blockScrollPadding", "inlineScrollPadding", "width", "height", "blockSize", "inlineSize", "flexBasis", "flexGrow", "flexShrink", "flex", "border", "blockBorder", "inlineBorder", "radius", "shadow", "outline"];
100
+ declare const INNER_STYLES: readonly ["display", "font", "preset", "hide", "whiteSpace", "opacity", "transition", "color", "fill", "fade", "image", "padding", "blockPadding", "inlinePadding", "overflow", "scrollbar", "textAlign", "flow", "place", "placeItems", "placeContent", "alignItems", "alignContent", "justifyItems", "justifyContent", "align", "justify", "gap", "columnGap", "rowGap", "gridColumns", "gridRows", "gridTemplate", "gridAreas"];
45
101
  //#endregion
46
102
  //#region src/types.d.ts
47
103
  /**
@@ -96,7 +152,7 @@ interface TastyBaseStylePropNames {}
96
152
  * it names. Intersecting with `keyof StylesInterface` makes a name that isn't a
97
153
  * real style inert rather than `never`-typed.
98
154
  */
99
- type ExtraBaseStyleProps = { [key in keyof TastyBaseStylePropNames & keyof StylesInterface]?: StylePropValue<StylesInterface[key]> };
155
+ type ExtraBaseStyleProps = { [key in keyof TastyBaseStylePropNames & keyof StylesInterface]?: StylePropValue<StylesInterface[key]>; };
100
156
  /** Allowed mod value types */
101
157
  type ModValue = boolean | string | number | undefined | null;
102
158
  /**
@@ -119,7 +175,7 @@ type TokenValue = string | number | boolean | undefined | null;
119
175
  /**
120
176
  * Tokens definition for inline CSS custom properties.
121
177
  * - `$name` keys become `--name` CSS properties
122
- * - `#name` keys become `--name-color` and `--name-color-{colorSpace}` CSS properties
178
+ * - `#name` keys become `--name-color` CSS properties
123
179
  */
124
180
  type Tokens = Record<`$${string}` | `#${string}`, TokenValue>;
125
181
  type Caps = 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G' | 'H' | 'I' | 'J' | 'K' | 'L' | 'M' | 'N' | 'O' | 'P' | 'Q' | 'R' | 'S' | 'T' | 'U' | 'V' | 'W' | 'X' | 'Y' | 'Z';
@@ -247,7 +303,7 @@ interface TastyExtensionConfig {
247
303
  }
248
304
  //#endregion
249
305
  //#region src/tasty.d.ts
250
- type StyleList = readonly (keyof { [key in keyof StylesInterface]: StylesInterface[key] })[];
306
+ type StyleList = readonly (keyof { [key in keyof StylesInterface]: StylesInterface[key]; })[];
251
307
  /** Type descriptor for a single mod prop: a JS constructor or an enum array. */
252
308
  type ModPropDef = BooleanConstructor | StringConstructor | NumberConstructor | readonly string[];
253
309
  /** Array form: list of mod key names (types default to ModValue). */
@@ -259,7 +315,7 @@ type ModPropsInput = ModPropsList | ModPropsMap;
259
315
  /** Resolve a single ModPropDef to its TypeScript type. */
260
316
  type ResolveModPropDef<T> = T extends BooleanConstructor ? boolean : T extends StringConstructor ? string : T extends NumberConstructor ? number : T extends readonly (infer U)[] ? U : ModValue;
261
317
  /** Resolve an entire `modProps` definition to the component prop types it adds. */
262
- 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]> } : {};
318
+ type ResolveModProps<M extends ModPropsInput> = M extends readonly (infer K)[] ? Partial<Record<K & string, ModValue>> : M extends Record<string, ModPropDef> ? { [key in keyof M & string]?: ResolveModPropDef<M[key]>; } : {};
263
319
  /** A token key with `$` or `#` prefix. */
264
320
  type TokenPropKey = `$${string}` | `#${string}`;
265
321
  /** Array form: list of prop names. Names ending in `Color` map to `#` color tokens. */
@@ -315,23 +371,30 @@ type SubElementProps<Tag extends keyof JSX.IntrinsicElements = 'div'> = Omit<JSX
315
371
  /**
316
372
  * Generates the sub-element component types from an ElementsDefinition
317
373
  */
318
- 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>> };
374
+ type SubElementComponents<E extends ElementsDefinition> = { [K in keyof E]: ForwardRefExoticComponent<PropsWithoutRef<SubElementProps<ResolveElementTag<E[K]>>> & RefAttributes<ResolveElementTag<E[K]> extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[ResolveElementTag<E[K]>] : Element$1>>; };
319
375
  /**
320
376
  * Base type containing common properties shared between TastyProps and TastyElementOptions.
321
377
  * Separated to avoid code duplication while allowing different type constraints.
322
378
  */
323
379
  type TastyBaseProps<K extends StyleList, V extends VariantMap, E extends ElementsDefinition = Record<string, never>, M extends ModPropsInput = readonly never[], TP extends TokenPropsInput = readonly never[]> = {
324
- /** Default styles of the element. */styles?: Styles; /** The list of styles that can be provided by props */
325
- styleProps?: K; /** Modifier keys exposed as top-level component props (array or typed object form). */
326
- modProps?: M; /** Token keys exposed as top-level component props (array or typed object form). */
380
+ /** Default styles of the element. */
381
+ styles?: Styles;
382
+ /** The list of styles that can be provided by props */
383
+ styleProps?: K;
384
+ /** Modifier keys exposed as top-level component props (array or typed object form). */
385
+ modProps?: M;
386
+ /** Token keys exposed as top-level component props (array or typed object form). */
327
387
  tokenProps?: TP;
328
388
  element?: BaseProps['element'];
329
- variants?: V; /** Default tokens for inline CSS custom properties */
330
- tokens?: Tokens; /** Sub-element definitions for compound components */
389
+ variants?: V;
390
+ /** Default tokens for inline CSS custom properties */
391
+ tokens?: Tokens;
392
+ /** Sub-element definitions for compound components */
331
393
  elements?: E;
332
394
  } & Pick<BaseProps, 'qa' | 'qaVal'> & WithVariant<V>;
333
395
  type TastyProps<K extends StyleList, V extends VariantMap, E extends ElementsDefinition = Record<string, never>, DefaultProps = AnyProps, M extends ModPropsInput = readonly never[], TP extends TokenPropsInput = readonly never[]> = TastyBaseProps<K, V, E, M, TP> & {
334
- /** The tag name of the element or a React component. */as?: string | ComponentType<any>;
396
+ /** The tag name of the element or a React component. */
397
+ as?: string | ComponentType<any>;
335
398
  } & Partial<Omit<DefaultProps, 'as' | 'styles' | 'styleProps' | 'modProps' | 'tokenProps' | 'tokens'>>;
336
399
  /**
337
400
  * Resolves the props of a polymorphic `as` value (intrinsic tag or component).
@@ -350,14 +413,15 @@ type ResolveAsProps<AsType extends ElementType> = AsType extends keyof JSX.Intri
350
413
  * record to ensure strict type checking for styles.
351
414
  */
352
415
  type TastyElementOptions<K extends StyleList, V extends VariantMap, E extends ElementsDefinition = Record<string, never>, AsType extends ElementType = 'div', M extends ModPropsInput = readonly never[], TP extends TokenPropsInput = readonly never[]> = TastyBaseProps<K, V, E, M, TP> & {
353
- /** The tag name of the element or a React component. */as?: AsType;
416
+ /** The tag name of the element or a React component. */
417
+ as?: AsType;
354
418
  } & Record<string, unknown>;
355
- type AllBasePropsWithMods<K extends StyleList, M extends ModPropsInput = readonly never[], TP extends TokenPropsInput = readonly never[]> = AllBaseProps & { [key in K[number]]?: StyleValue<StylesInterface[key]> | StyleValueStateMap<StylesInterface[key]> } & BaseStyleProps & ExtraBaseStyleProps & Partial<TastyCustomProps> & ResolveModProps<M> & ResolveTokenProps<TP>;
419
+ type AllBasePropsWithMods<K extends StyleList, M extends ModPropsInput = readonly never[], TP extends TokenPropsInput = readonly never[]> = AllBaseProps & { [key in K[number]]?: StyleValue<StylesInterface[key]> | StyleValueStateMap<StylesInterface[key]>; } & BaseStyleProps & ExtraBaseStyleProps & Partial<TastyCustomProps> & ResolveModProps<M> & ResolveTokenProps<TP>;
356
420
  /**
357
- * Keys from BasePropsWithoutChildren that should be omitted from HTML attributes.
358
- * This excludes event handlers so they can be properly typed from JSX.IntrinsicElements.
421
+ * Props consumed by Tasty rather than forwarded to the `as` component.
422
+ * Event handlers are resolved from JSX.IntrinsicElements or the component's own props.
359
423
  */
360
- type TastySpecificKeys = 'as' | 'qa' | 'qaVal' | 'element' | 'styles' | 'mods' | 'isHidden' | 'isDisabled' | 'isChecked' | 'style' | 'theme' | 'tokens' | 'ref' | 'color';
424
+ type TastySpecificKeys = keyof BaseStyleProps | 'as' | 'qa' | 'qaVal' | 'element' | 'styles' | 'mods' | 'isHidden' | 'isDisabled' | 'isChecked' | 'style' | 'theme' | 'tokens' | 'ref';
361
425
  /** Extract prop key names from a ModPropsInput (array elements or object keys). */
362
426
  type ModPropsKeys<M extends ModPropsInput> = M extends readonly (infer K)[] ? K & string : keyof M & string;
363
427
  /** Extract prop key names from a TokenPropsInput (array elements or object keys). */
@@ -379,7 +443,24 @@ type TokenPropsKeys<TP extends TokenPropsInput> = TP extends readonly (infer K)[
379
443
  * is a component type with a narrower prop API.
380
444
  */
381
445
  type TastyElementProps<K extends StyleList, V extends VariantMap, AsType extends ElementType = 'div', M extends ModPropsInput = readonly never[], TP extends TokenPropsInput = readonly never[]> = Omit<AllBasePropsWithMods<K, M, TP>, Exclude<keyof ResolveAsProps<AsType>, TastySpecificKeys | keyof TastyCustomProps | keyof ExtraBaseStyleProps | K[number] | ModPropsKeys<M> | TokenPropsKeys<TP>>> & WithVariant<V> & Omit<Omit<AllHTMLAttributes<HTMLElement>, keyof ResolveAsProps<AsType>> & ResolveAsProps<AsType>, TastySpecificKeys | keyof TastyCustomProps | keyof ExtraBaseStyleProps | K[number] | ModPropsKeys<M> | TokenPropsKeys<TP>>;
382
- 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] };
446
+ /** Statics React itself reads, as a type (see `REACT_STATICS`). */
447
+ type ReactStaticKey = '$$typeof' | 'render' | 'type' | 'compare' | 'displayName' | 'defaultProps' | 'propTypes' | 'contextType' | 'contextTypes' | 'childContextTypes' | 'getDerivedStateFromProps' | 'getDerivedStateFromError';
448
+ /**
449
+ * The statics of a component that are components themselves — a `tasty()`
450
+ * base's sub-elements (`Card.Title`) — which its extension keeps.
451
+ */
452
+ type ComponentStatics<C> = { [Key in keyof C as Key extends ReactStaticKey ? never : C[Key] extends string ? never : C[Key] extends ElementType ? Key : never]: C[Key]; };
453
+ /** Prop names the extension form's own options claim from the base's props. */
454
+ type ExtensionClaimedKeys<K extends StyleList, V extends VariantMap, M extends ModPropsInput, TP extends TokenPropsInput> = K[number] | ModPropsKeys<M> | TokenPropsKeys<TP> | (string extends keyof V ? never : 'variant');
455
+ /**
456
+ * Props of a `tasty(Component, options)` extension: the base's props, plus
457
+ * whatever its own `styleProps`, `modProps`, `tokenProps` and `variants` add.
458
+ * Its variants extend the base's: `variant` accepts either set.
459
+ */
460
+ type TastyExtensionProps<Props extends PropsWithStyles, DefaultProps extends Partial<Props>, K extends StyleList = readonly never[], V extends VariantMap = VariantMap, M extends ModPropsInput = readonly never[], TP extends TokenPropsInput = readonly never[]> = [ExtensionClaimedKeys<K, V, M, TP>] extends [never] ? TastyComponentPropsWithDefaults<Props, DefaultProps> : Omit<TastyComponentPropsWithDefaults<Props, DefaultProps>, ExtensionClaimedKeys<K, V, M, TP>> & { [key in K[number]]?: StyleValue<StylesInterface[key]> | StyleValueStateMap<StylesInterface[key]>; } & ResolveModProps<M> & ResolveTokenProps<TP> & (string extends keyof V ? unknown : {
461
+ variant?: keyof V | ('variant' extends keyof Props ? NonNullable<Props['variant']> : never);
462
+ });
463
+ 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]; };
383
464
  /**
384
465
  * The component type returned by the `tasty(options)` element-factory overload.
385
466
  *
@@ -394,9 +475,9 @@ type TastyComponentPropsWithDefaults<Props extends PropsWithStyles, DefaultProps
394
475
  * `SomeComponent`; create another `tasty({ as: SomeComponent })` for that.
395
476
  */
396
477
  type TastyPolymorphicComponent<DefaultAs extends ElementType, K extends StyleList, V extends VariantMap, M extends ModPropsInput, TP extends TokenPropsInput> = ForwardRefExoticComponent<PropsWithoutRef<TastyElementProps<K, V, DefaultAs, M, TP>> & RefAttributes<unknown>>;
397
- declare function tasty<K extends StyleList, V extends VariantMap, E extends ElementsDefinition = Record<string, never>, AsType extends ElementType = 'div', M extends ModPropsInput = readonly never[], TP extends TokenPropsInput = readonly never[]>(options: TastyElementOptions<K, V, E, AsType, M, TP>, secondArg?: never): TastyPolymorphicComponent<AsType, K, V, M, TP> & SubElementComponents<E>;
398
- declare function tasty<Props extends PropsWithStyles, DefaultProps extends Partial<Props> = Partial<Props>, K extends StyleList = readonly never[], V extends VariantMap = VariantMap, E extends ElementsDefinition = Record<string, never>, M extends ModPropsInput = readonly never[], TP extends TokenPropsInput = readonly never[]>(Component: ComponentType<Props>, options?: TastyProps<K, V, E, Props, M, TP>): ComponentType<TastyComponentPropsWithDefaults<Props, DefaultProps>>;
399
- declare const Element$1: TastyPolymorphicComponent<"div", StyleList, VariantMap, readonly never[], readonly never[]> & SubElementComponents<Record<string, never>>;
478
+ declare function tasty<K extends StyleList = readonly never[], V extends VariantMap = VariantMap, E extends ElementsDefinition = Record<string, never>, AsType extends ElementType = 'div', M extends ModPropsInput = readonly never[], TP extends TokenPropsInput = readonly never[]>(options: TastyElementOptions<K, V, E, AsType, M, TP>, secondArg?: never): TastyPolymorphicComponent<AsType, K, V, M, TP> & SubElementComponents<E>;
479
+ declare function tasty<Props extends PropsWithStyles, DefaultProps extends Partial<Props> = Partial<Props>, K extends StyleList = readonly never[], V extends VariantMap = VariantMap, const E extends ElementsDefinition = Record<string, never>, M extends ModPropsInput = readonly never[], TP extends TokenPropsInput = readonly never[], C extends ComponentType<Props> = ComponentType<Props>>(Component: C & ComponentType<Props>, options?: TastyProps<K, V, E, Props, M, TP>): ComponentType<TastyExtensionProps<Props, DefaultProps, K, V, M, TP>> & ComponentStatics<C> & (string extends keyof E ? unknown : SubElementComponents<E>);
480
+ declare const Element$1: TastyPolymorphicComponent<"div", readonly never[], VariantMap, readonly never[], readonly never[]> & SubElementComponents<Record<string, never>>;
400
481
  //#endregion
401
482
  //#region src/hooks/useStyles.d.ts
402
483
  interface UseStylesResult {
@@ -412,7 +493,9 @@ interface UseStylesResult {
412
493
  * Thin wrapper around `computeStyles()` that adds React context-based
413
494
  * SSR collector discovery for backward compatibility with TastyRegistry.
414
495
  *
415
- * For hook-free usage (e.g. in server components), use `computeStyles()` directly.
496
+ * Works in Server Components too. There, like the other style functions, it
497
+ * cannot emit CSS itself: the next `tasty()` element in the tree emits it, so
498
+ * render one after it.
416
499
  *
417
500
  * @example
418
501
  * ```tsx
@@ -728,7 +811,63 @@ interface UseFunctionOptions {
728
811
  */
729
812
  declare function useFunction(name: string, definition: FunctionDefinition, options?: UseFunctionOptions): void;
730
813
  //#endregion
814
+ //#region src/batch-provider.d.ts
815
+ interface TastyBatchProviderProps {
816
+ children?: ReactNode;
817
+ }
818
+ /**
819
+ * Opens a *batch window* for the commit it renders in, so `batchInjection`
820
+ * can defer stylesheet writes without ever letting a layout effect measure an
821
+ * unstyled element.
822
+ *
823
+ * Every `insertRule()` on a live sheet invalidates style for that sheet's
824
+ * scope. When components inject during React's render phase while others read
825
+ * layout in the same pass, the two interleave and the browser recalculates
826
+ * style between every injection. Batching collapses that into one invalidation
827
+ * per flush — but only if the flush happens before anything can measure.
828
+ *
829
+ * ```
830
+ * provider renders -> window OPEN
831
+ * children render -> injections queued
832
+ * provider insertionEffect -> FLUSH, window CLOSED
833
+ * layout effects run -> rules are in the sheet
834
+ * ```
835
+ *
836
+ * `useInsertionEffect` runs in React's mutation phase, after every render in
837
+ * the commit and before any `useLayoutEffect` — which is exactly why React
838
+ * added it for CSS-in-JS libraries. Effects fire child-first, so this
839
+ * provider's runs after every descendant's and still before all layout
840
+ * effects.
841
+ *
842
+ * A commit that does not re-render this provider gets no window, and those
843
+ * injections are written synchronously instead. That is the point: turning
844
+ * `batchInjection: true` on can only ever make injection cheaper, never make a
845
+ * measurement wrong. It also means batching applies to commits this provider
846
+ * takes part in, so mount it as high in the tree as you can.
847
+ *
848
+ * Requires `configure({ batchInjection: true })`; without it this component
849
+ * only renders its children. `batchInjection: 'always'` does not need the
850
+ * provider at all — see that option's docs for the trade-off it accepts.
851
+ *
852
+ * @example
853
+ * ```tsx
854
+ * configure({ batchInjection: true });
855
+ *
856
+ * createRoot(el).render(
857
+ * <TastyBatchProvider>
858
+ * <App />
859
+ * </TastyBatchProvider>,
860
+ * );
861
+ * ```
862
+ */
863
+ declare function TastyBatchProvider({ children }: TastyBatchProviderProps): React.ReactNode;
864
+ //#endregion
731
865
  //#region src/utils/get-display-name.d.ts
866
+ /**
867
+ * A readable name for a component: its `displayName`, else its function name,
868
+ * looking through `forwardRef()` and `memo()` to the component they wrap. A
869
+ * tag name names itself. Falls back to `fallbackName` when there is none.
870
+ */
732
871
  declare function getDisplayName<T>(Component: ElementType<T>, fallbackName?: string): string;
733
872
  //#endregion
734
873
  //#region src/index.d.ts
@@ -834,8 +973,8 @@ declare function resolveFunctionColor(str: string): string | null;
834
973
  /**
835
974
  * Chunk names, the built-in chunk style lists, and the style→chunk lookup.
836
975
  *
837
- * This is a **leaf module with no imports**. It exists separately from
838
- * `definitions.ts` for two reasons:
976
+ * This module only imports data-only style-name lists. It exists separately
977
+ * from `definitions.ts` for two reasons:
839
978
  *
840
979
  * 1. The style handler registry (`styles/predefined.ts`) needs to assign chunk
841
980
  * membership for custom handlers. Reaching for `definitions.ts` would create an
@@ -848,7 +987,8 @@ declare function resolveFunctionColor(str: string): string | null;
848
987
  * public API surface are unchanged.
849
988
  */
850
989
  declare const CHUNK_NAMES: {
851
- /** Special chunk for styles that cannot be split */readonly COMBINED: "combined";
990
+ /** Special chunk for styles that cannot be split */
991
+ readonly COMBINED: "combined";
852
992
  readonly SUBCOMPONENTS: "subcomponents";
853
993
  readonly APPEARANCE: "appearance";
854
994
  readonly FONT: "font";
@@ -860,11 +1000,15 @@ declare const CHUNK_NAMES: {
860
1000
  };
861
1001
  type ChunkName = (typeof CHUNK_NAMES)[keyof typeof CHUNK_NAMES];
862
1002
  /**
863
- * Appearance chunk - visual styling with independent handlers
1003
+ * Appearance chunk - visual styling
1004
+ *
1005
+ * Handler dependencies (all styles in each handler MUST stay in this chunk):
1006
+ * ⚠️ fillStyle: fill, backgroundColor, image, backgroundImage,
1007
+ * backgroundPosition/Size/Repeat/Attachment/Origin/Clip, background
864
1008
  *
865
1009
  * @public
866
1010
  */
867
- declare const APPEARANCE_CHUNK_STYLES: readonly ["fill", "color", "opacity", "border", "radius", "outline", "outlineOffset", "shadow", "fade"];
1011
+ declare const APPEARANCE_CHUNK_STYLES: readonly ["fill", "backgroundColor", "image", "backgroundImage", "backgroundPosition", "backgroundSize", "backgroundRepeat", "backgroundAttachment", "backgroundOrigin", "backgroundClip", "background", "color", "opacity", "border", "blockBorder", "inlineBorder", "radius", "outline", "outlineOffset", "shadow", "fade"];
868
1012
  /**
869
1013
  * Font chunk - typography styles
870
1014
  *
@@ -878,13 +1022,15 @@ declare const FONT_CHUNK_STYLES: readonly ["preset", "font", "fontWeight", "font
878
1022
  * Dimension chunk - sizing and spacing
879
1023
  *
880
1024
  * Handler dependencies (all styles in each handler MUST stay in this chunk):
881
- * ⚠️ paddingStyle: padding, paddingTop/Right/Bottom/Left, paddingBlock/Inline
882
- * ⚠️ marginStyle: margin, marginTop/Right/Bottom/Left, marginBlock/Inline
1025
+ * ⚠️ paddingStyle: padding, paddingTop/Right/Bottom/Left
1026
+ * ⚠️ marginStyle: margin, marginTop/Right/Bottom/Left
883
1027
  * ⚠️ widthStyle: width, minWidth, maxWidth
884
1028
  * ⚠️ heightStyle: height, minHeight, maxHeight
1029
+ * ⚠️ blockSizeStyle: blockSize, minBlockSize, maxBlockSize
1030
+ * ⚠️ inlineSizeStyle: inlineSize, minInlineSize, maxInlineSize
885
1031
  */
886
1032
  /** @public */
887
- declare const DIMENSION_CHUNK_STYLES: readonly ["padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingBlock", "paddingInline", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginBlock", "marginInline", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "flexBasis", "flexGrow", "flexShrink", "flex"];
1033
+ declare const DIMENSION_CHUNK_STYLES: readonly ["padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "blockPadding", "inlinePadding", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "blockMargin", "inlineMargin", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "blockSize", "minBlockSize", "maxBlockSize", "inlineSize", "minInlineSize", "maxInlineSize", "flexBasis", "flexGrow", "flexShrink", "flex"];
888
1034
  /**
889
1035
  * Display chunk - display mode, layout flow, text overflow, and scrollbar
890
1036
  *
@@ -908,10 +1054,10 @@ declare const LAYOUT_CHUNK_STYLES: readonly ["placeItems", "placeContent", "alig
908
1054
  * Position chunk - element positioning
909
1055
  *
910
1056
  * Handler dependencies (all styles in each handler MUST stay in this chunk):
911
- * ⚠️ insetStyle: inset, insetBlock, insetInline, top, right, bottom, left
1057
+ * ⚠️ insetStyle: inset, top, right, bottom, left
912
1058
  */
913
1059
  /** @public */
914
- declare const POSITION_CHUNK_STYLES: readonly ["position", "inset", "insetBlock", "insetInline", "top", "right", "bottom", "left", "zIndex", "gridArea", "gridColumn", "gridRow", "order", "placeSelf", "alignSelf", "justifySelf", "transform", "transition", "animation"];
1060
+ declare const POSITION_CHUNK_STYLES: readonly ["position", "inset", "blockInset", "inlineInset", "top", "right", "bottom", "left", "blockScrollMargin", "inlineScrollMargin", "blockScrollPadding", "inlineScrollPadding", "zIndex", "gridArea", "gridColumn", "gridRow", "order", "placeSelf", "alignSelf", "justifySelf", "transform", "transition", "animation"];
915
1061
  /**
916
1062
  * Map for O(1) style-to-chunk lookup. Seeded with the built-in lists above and
917
1063
  * extended by {@link assignStyleChunk} when a custom handler declares style names
@@ -951,23 +1097,27 @@ declare function categorizeStyleKeys(styles: Record<string, unknown>): Map<strin
951
1097
  *
952
1098
  * Later groups override earlier groups for conflicting directions.
953
1099
  */
954
- declare function borderStyle({
955
- border
956
- }: {
1100
+ declare function borderStyle({ border }: {
957
1101
  border?: string | number | boolean;
958
1102
  }): Record<string, string> | null;
959
1103
  declare namespace borderStyle {
960
1104
  var __lookupStyles: string[];
961
1105
  }
962
1106
  //#endregion
1107
+ //#region src/styles/blockSize.d.ts
1108
+ declare function blockSizeStyle({ blockSize, minBlockSize, maxBlockSize }: {
1109
+ blockSize?: string | number | boolean;
1110
+ minBlockSize?: string | number | boolean;
1111
+ maxBlockSize?: string | number | boolean;
1112
+ }): Record<string, string | string[]> | null;
1113
+ declare namespace blockSizeStyle {
1114
+ var __lookupStyles: ("blockSize" | "maxBlockSize" | "minBlockSize")[];
1115
+ }
1116
+ //#endregion
963
1117
  //#region src/styles/color.d.ts
964
- declare function colorStyle({
965
- color
966
- }: {
1118
+ declare function colorStyle({ color }: {
967
1119
  color?: string | boolean;
968
- }): {
969
- color: string;
970
- } | null;
1120
+ }): Record<string, string> | null;
971
1121
  declare namespace colorStyle {
972
1122
  var __lookupStyles: string[];
973
1123
  }
@@ -989,21 +1139,13 @@ interface DisplayStyleProps {
989
1139
  * 3. Single-line `textOverflow` defaults white-space to nowrap
990
1140
  * 4. Explicit `whiteSpace` overrides the default from `textOverflow`
991
1141
  */
992
- declare function displayStyle({
993
- display,
994
- hide,
995
- textOverflow,
996
- overflow,
997
- whiteSpace
998
- }: DisplayStyleProps): Record<string, string | number> | null;
1142
+ declare function displayStyle({ display, hide, textOverflow, overflow, whiteSpace }: DisplayStyleProps): Record<string, string | number> | null;
999
1143
  declare namespace displayStyle {
1000
1144
  var __lookupStyles: string[];
1001
1145
  }
1002
1146
  //#endregion
1003
1147
  //#region src/styles/fade.d.ts
1004
- declare function fadeStyle({
1005
- fade
1006
- }: {
1148
+ declare function fadeStyle({ fade }: {
1007
1149
  fade?: string;
1008
1150
  }): {
1009
1151
  mask: string;
@@ -1014,20 +1156,8 @@ declare namespace fadeStyle {
1014
1156
  }
1015
1157
  //#endregion
1016
1158
  //#region src/styles/fill.d.ts
1017
- declare function fillStyle({
1018
- fill,
1019
- backgroundColor,
1020
- image,
1021
- backgroundImage,
1022
- backgroundPosition,
1023
- backgroundSize,
1024
- backgroundRepeat,
1025
- backgroundAttachment,
1026
- backgroundOrigin,
1027
- backgroundClip,
1028
- background
1029
- }: {
1030
- fill?: string;
1159
+ declare function fillStyle({ fill, backgroundColor, image, backgroundImage, backgroundPosition, backgroundSize, backgroundRepeat, backgroundAttachment, backgroundOrigin, backgroundClip, background }: {
1160
+ fill?: string | boolean;
1031
1161
  backgroundColor?: string;
1032
1162
  image?: string;
1033
1163
  backgroundImage?: string;
@@ -1042,9 +1172,7 @@ declare function fillStyle({
1042
1172
  declare namespace fillStyle {
1043
1173
  var __lookupStyles: string[];
1044
1174
  }
1045
- declare function svgFillStyle({
1046
- svgFill
1047
- }: {
1175
+ declare function svgFillStyle({ svgFill }: {
1048
1176
  svgFill?: string;
1049
1177
  }): {
1050
1178
  fill: string;
@@ -1054,12 +1182,9 @@ declare namespace svgFillStyle {
1054
1182
  }
1055
1183
  //#endregion
1056
1184
  //#region src/styles/flow.d.ts
1057
- declare function flowStyle({
1058
- display,
1059
- flow
1060
- }: {
1061
- display?: string;
1062
- flow?: string;
1185
+ declare function flowStyle({ display, flow }: {
1186
+ display?: string | NoType;
1187
+ flow?: string | NoType;
1063
1188
  }): {
1064
1189
  [x: string]: string;
1065
1190
  } | null;
@@ -1068,14 +1193,10 @@ declare namespace flowStyle {
1068
1193
  }
1069
1194
  //#endregion
1070
1195
  //#region src/styles/gap.d.ts
1071
- declare function gapStyle({
1072
- display,
1073
- flow,
1074
- gap
1075
- }: {
1076
- display?: string;
1077
- flow?: string;
1078
- gap?: string | number | boolean;
1196
+ declare function gapStyle({ display, flow, gap }: {
1197
+ display?: string | NoType;
1198
+ flow?: string | NoType;
1199
+ gap?: string | number | boolean | NoType;
1079
1200
  }): {
1080
1201
  gap: string;
1081
1202
  $?: undefined;
@@ -1102,28 +1223,14 @@ interface HeightStyleProps {
1102
1223
  minHeight?: string | number | boolean;
1103
1224
  maxHeight?: string | number | boolean;
1104
1225
  }
1105
- declare function heightStyle({
1106
- height,
1107
- minHeight,
1108
- maxHeight
1109
- }: HeightStyleProps): Record<string, string | string[]> | null;
1226
+ declare function heightStyle({ height, minHeight, maxHeight }: HeightStyleProps): Record<string, string | string[]> | null;
1110
1227
  declare namespace heightStyle {
1111
1228
  var __lookupStyles: string[];
1112
1229
  }
1113
1230
  //#endregion
1114
1231
  //#region src/styles/inset.d.ts
1115
- declare function insetStyle({
1116
- inset,
1117
- insetBlock,
1118
- insetInline,
1119
- top,
1120
- right,
1121
- bottom,
1122
- left
1123
- }: {
1232
+ declare function insetStyle({ inset, top, right, bottom, left }: {
1124
1233
  inset?: string | number | boolean;
1125
- insetBlock?: string | number | boolean;
1126
- insetInline?: string | number | boolean;
1127
1234
  top?: string | number | boolean;
1128
1235
  right?: string | number | boolean;
1129
1236
  bottom?: string | number | boolean;
@@ -1133,19 +1240,19 @@ declare namespace insetStyle {
1133
1240
  var __lookupStyles: string[];
1134
1241
  }
1135
1242
  //#endregion
1243
+ //#region src/styles/inlineSize.d.ts
1244
+ declare function inlineSizeStyle({ inlineSize, minInlineSize, maxInlineSize }: {
1245
+ inlineSize?: string | number | boolean;
1246
+ minInlineSize?: string | number | boolean;
1247
+ maxInlineSize?: string | number | boolean;
1248
+ }): Record<string, string | string[]> | null;
1249
+ declare namespace inlineSizeStyle {
1250
+ var __lookupStyles: ("inlineSize" | "maxInlineSize" | "minInlineSize")[];
1251
+ }
1252
+ //#endregion
1136
1253
  //#region src/styles/margin.d.ts
1137
- declare function marginStyle({
1138
- margin,
1139
- marginBlock,
1140
- marginInline,
1141
- marginTop,
1142
- marginRight,
1143
- marginBottom,
1144
- marginLeft
1145
- }: {
1254
+ declare function marginStyle({ margin, marginTop, marginRight, marginBottom, marginLeft }: {
1146
1255
  margin?: string | number | boolean;
1147
- marginBlock?: string | number | boolean;
1148
- marginInline?: string | number | boolean;
1149
1256
  marginTop?: string | number | boolean;
1150
1257
  marginRight?: string | number | boolean;
1151
1258
  marginBottom?: string | number | boolean;
@@ -1174,27 +1281,14 @@ interface OutlineStyleProps {
1174
1281
  *
1175
1282
  * @return CSS properties for outline and optionally outline-offset
1176
1283
  */
1177
- declare function outlineStyle({
1178
- outline,
1179
- outlineOffset
1180
- }: OutlineStyleProps): Record<string, string> | null;
1284
+ declare function outlineStyle({ outline, outlineOffset }: OutlineStyleProps): Record<string, string> | null;
1181
1285
  declare namespace outlineStyle {
1182
1286
  var __lookupStyles: string[];
1183
1287
  }
1184
1288
  //#endregion
1185
1289
  //#region src/styles/padding.d.ts
1186
- declare function paddingStyle({
1187
- padding,
1188
- paddingBlock,
1189
- paddingInline,
1190
- paddingTop,
1191
- paddingRight,
1192
- paddingBottom,
1193
- paddingLeft
1194
- }: {
1290
+ declare function paddingStyle({ padding, paddingTop, paddingRight, paddingBottom, paddingLeft }: {
1195
1291
  padding?: string | number | boolean;
1196
- paddingBlock?: string | number | boolean;
1197
- paddingInline?: string | number | boolean;
1198
1292
  paddingTop?: string | number | boolean;
1199
1293
  paddingRight?: string | number | boolean;
1200
1294
  paddingBottom?: string | number | boolean;
@@ -1224,17 +1318,7 @@ interface PlacementStyleProps {
1224
1318
  * 2. placeItems, placeContent, align, justify (medium) — each sets 2 longhands
1225
1319
  * 3. alignItems, alignContent, justifyItems, justifyContent (highest) — each sets 1 longhand
1226
1320
  */
1227
- declare function placementStyle({
1228
- place,
1229
- placeItems,
1230
- placeContent,
1231
- align,
1232
- justify,
1233
- alignItems,
1234
- alignContent,
1235
- justifyItems,
1236
- justifyContent
1237
- }: PlacementStyleProps): Record<string, string> | null;
1321
+ declare function placementStyle({ place, placeItems, placeContent, align, justify, alignItems, alignContent, justifyItems, justifyContent }: PlacementStyleProps): Record<string, string> | null;
1238
1322
  declare namespace placementStyle {
1239
1323
  var __lookupStyles: string[];
1240
1324
  }
@@ -1275,25 +1359,13 @@ interface PresetStyleProps {
1275
1359
  * - `font` is the recommended prop with special handling (monospace, boolean, fallback)
1276
1360
  * - `fontFamily` is a direct value without special handling
1277
1361
  */
1278
- declare function presetStyle({
1279
- preset,
1280
- fontSize,
1281
- lineHeight,
1282
- textTransform,
1283
- letterSpacing,
1284
- fontWeight,
1285
- fontStyle,
1286
- fontFamily,
1287
- font
1288
- }: PresetStyleProps): CSSMap | null;
1362
+ declare function presetStyle({ preset, fontSize, lineHeight, textTransform, letterSpacing, fontWeight, fontStyle, fontFamily, font }: PresetStyleProps): CSSMap | null;
1289
1363
  declare namespace presetStyle {
1290
1364
  var __lookupStyles: string[];
1291
1365
  }
1292
1366
  //#endregion
1293
1367
  //#region src/styles/radius.d.ts
1294
- declare function radiusStyle({
1295
- radius
1296
- }: {
1368
+ declare function radiusStyle({ radius }: {
1297
1369
  radius?: string | number | boolean;
1298
1370
  }): Record<string, string> | null;
1299
1371
  declare namespace radiusStyle {
@@ -1301,18 +1373,8 @@ declare namespace radiusStyle {
1301
1373
  }
1302
1374
  //#endregion
1303
1375
  //#region src/styles/scrollMargin.d.ts
1304
- declare function scrollMarginStyle({
1305
- scrollMargin,
1306
- scrollMarginBlock,
1307
- scrollMarginInline,
1308
- scrollMarginTop,
1309
- scrollMarginRight,
1310
- scrollMarginBottom,
1311
- scrollMarginLeft
1312
- }: {
1376
+ declare function scrollMarginStyle({ scrollMargin, scrollMarginTop, scrollMarginRight, scrollMarginBottom, scrollMarginLeft }: {
1313
1377
  scrollMargin?: string | number | boolean;
1314
- scrollMarginBlock?: string | number | boolean;
1315
- scrollMarginInline?: string | number | boolean;
1316
1378
  scrollMarginTop?: string | number | boolean;
1317
1379
  scrollMarginRight?: string | number | boolean;
1318
1380
  scrollMarginBottom?: string | number | boolean;
@@ -1322,6 +1384,18 @@ declare namespace scrollMarginStyle {
1322
1384
  var __lookupStyles: string[];
1323
1385
  }
1324
1386
  //#endregion
1387
+ //#region src/styles/scrollPadding.d.ts
1388
+ declare function scrollPaddingStyle({ scrollPadding, scrollPaddingTop, scrollPaddingRight, scrollPaddingBottom, scrollPaddingLeft }: {
1389
+ scrollPadding?: string | number | boolean;
1390
+ scrollPaddingTop?: string | number | boolean;
1391
+ scrollPaddingRight?: string | number | boolean;
1392
+ scrollPaddingBottom?: string | number | boolean;
1393
+ scrollPaddingLeft?: string | number | boolean;
1394
+ }): Record<string, string> | null;
1395
+ declare namespace scrollPaddingStyle {
1396
+ var __lookupStyles: string[];
1397
+ }
1398
+ //#endregion
1325
1399
  //#region src/styles/scrollbar.d.ts
1326
1400
  interface ScrollbarStyleProps {
1327
1401
  scrollbar?: string | boolean;
@@ -1337,18 +1411,13 @@ interface ScrollbarStyleProps {
1337
1411
  * Note: `auto` is classified as a VALUE_KEYWORD by the parser, so it lands
1338
1412
  * in `values` rather than `mods`. Both locations are checked for robustness.
1339
1413
  */
1340
- declare function scrollbarStyle({
1341
- scrollbar,
1342
- overflow
1343
- }: ScrollbarStyleProps): Record<string, string> | null;
1414
+ declare function scrollbarStyle({ scrollbar, overflow }: ScrollbarStyleProps): Record<string, string> | null;
1344
1415
  declare namespace scrollbarStyle {
1345
1416
  var __lookupStyles: string[];
1346
1417
  }
1347
1418
  //#endregion
1348
1419
  //#region src/styles/shadow.d.ts
1349
- declare function shadowStyle({
1350
- shadow
1351
- }: {
1420
+ declare function shadowStyle({ shadow }: {
1352
1421
  shadow?: string | boolean;
1353
1422
  }): {
1354
1423
  'box-shadow': string;
@@ -1358,9 +1427,7 @@ declare namespace shadowStyle {
1358
1427
  }
1359
1428
  //#endregion
1360
1429
  //#region src/styles/transition.d.ts
1361
- declare function transitionStyle({
1362
- transition
1363
- }: {
1430
+ declare function transitionStyle({ transition }: {
1364
1431
  transition?: string;
1365
1432
  }): {
1366
1433
  transition: string;
@@ -1375,11 +1442,7 @@ interface WidthStyleProps {
1375
1442
  minWidth?: string | number | boolean;
1376
1443
  maxWidth?: string | number | boolean;
1377
1444
  }
1378
- declare function widthStyle({
1379
- width,
1380
- minWidth,
1381
- maxWidth
1382
- }: WidthStyleProps): Record<string, string | string[]> | null;
1445
+ declare function widthStyle({ width, minWidth, maxWidth }: WidthStyleProps): Record<string, string | string[]> | null;
1383
1446
  declare namespace widthStyle {
1384
1447
  var __lookupStyles: string[];
1385
1448
  }
@@ -1409,16 +1472,6 @@ declare namespace widthStyle {
1409
1472
  * ```
1410
1473
  */
1411
1474
  declare const styleHandlers: {
1412
- readonly border: typeof borderStyle;
1413
- readonly color: typeof colorStyle;
1414
- readonly display: typeof displayStyle;
1415
- readonly fade: typeof fadeStyle;
1416
- readonly fill: typeof fillStyle;
1417
- readonly svgFill: typeof svgFillStyle;
1418
- readonly flow: typeof flowStyle;
1419
- readonly gap: typeof gapStyle;
1420
- readonly height: typeof heightStyle;
1421
- readonly inset: typeof insetStyle;
1422
1475
  readonly margin: typeof marginStyle;
1423
1476
  readonly outline: typeof outlineStyle;
1424
1477
  readonly padding: typeof paddingStyle;
@@ -1426,10 +1479,35 @@ declare const styleHandlers: {
1426
1479
  readonly preset: typeof presetStyle;
1427
1480
  readonly radius: typeof radiusStyle;
1428
1481
  readonly scrollMargin: typeof scrollMarginStyle;
1482
+ readonly scrollPadding: typeof scrollPaddingStyle;
1429
1483
  readonly scrollbar: typeof scrollbarStyle;
1430
1484
  readonly shadow: typeof shadowStyle;
1431
1485
  readonly transition: typeof transitionStyle;
1432
1486
  readonly width: typeof widthStyle;
1487
+ readonly blockBorder: StyleHandler<Partial<Record<"blockBorder", string | number | boolean | undefined>>>;
1488
+ readonly inlineBorder: StyleHandler<Partial<Record<"inlineBorder", string | number | boolean | undefined>>>;
1489
+ readonly blockScrollPadding: StyleHandler<Partial<Record<"blockScrollPadding", string | number | boolean | undefined>>>;
1490
+ readonly inlineScrollPadding: StyleHandler<Partial<Record<"inlineScrollPadding", string | number | boolean | undefined>>>;
1491
+ readonly blockScrollMargin: StyleHandler<Partial<Record<"blockScrollMargin", string | number | boolean | undefined>>>;
1492
+ readonly inlineScrollMargin: StyleHandler<Partial<Record<"inlineScrollMargin", string | number | boolean | undefined>>>;
1493
+ readonly blockInset: StyleHandler<Partial<Record<"blockInset", string | number | boolean | undefined>>>;
1494
+ readonly inlineInset: StyleHandler<Partial<Record<"inlineInset", string | number | boolean | undefined>>>;
1495
+ readonly blockMargin: StyleHandler<Partial<Record<"blockMargin", string | number | boolean | undefined>>>;
1496
+ readonly inlineMargin: StyleHandler<Partial<Record<"inlineMargin", string | number | boolean | undefined>>>;
1497
+ readonly blockPadding: StyleHandler<Partial<Record<"blockPadding", string | number | boolean | undefined>>>;
1498
+ readonly inlinePadding: StyleHandler<Partial<Record<"inlinePadding", string | number | boolean | undefined>>>;
1499
+ readonly blockSize: typeof blockSizeStyle;
1500
+ readonly border: typeof borderStyle;
1501
+ readonly color: typeof colorStyle;
1502
+ readonly display: typeof displayStyle;
1503
+ readonly fade: typeof fadeStyle;
1504
+ readonly fill: typeof fillStyle;
1505
+ readonly svgFill: typeof svgFillStyle;
1506
+ readonly flow: typeof flowStyle;
1507
+ readonly gap: typeof gapStyle;
1508
+ readonly height: typeof heightStyle;
1509
+ readonly inset: typeof insetStyle;
1510
+ readonly inlineSize: typeof inlineSizeStyle;
1433
1511
  };
1434
1512
  //#endregion
1435
1513
  //#region src/styles/define-handler.d.ts
@@ -1472,6 +1550,13 @@ interface ComputeStylesOptions {
1472
1550
  ssrCollector?: ServerStyleCollector | null;
1473
1551
  /** Target root for style injection (client only). Defaults to `document`. */
1474
1552
  root?: Document | ShadowRoot;
1553
+ /**
1554
+ * Set when `styles` outlives this call and will be passed in again — a
1555
+ * `tasty()` factory's own styles object rather than a per-render merge.
1556
+ * It lets chunk cache keys be memoized on the object, which is worth the
1557
+ * bookkeeping only when there is a next render to spend it on.
1558
+ */
1559
+ stableStyles?: boolean;
1475
1560
  }
1476
1561
  /**
1477
1562
  * Synchronous, hook-free style computation.
@@ -1529,10 +1614,7 @@ declare const chunkSheetRegistry: ChunkSheetRegistry;
1529
1614
  /**
1530
1615
  * Inject styles and return className with dispose function
1531
1616
  */
1532
- declare function inject(rules: StyleResult[], options?: {
1533
- root?: Document | ShadowRoot;
1534
- cacheKey?: string;
1535
- }): InjectResult;
1617
+ declare function inject(rules: StyleResult[], options?: InjectOptions): InjectResult;
1536
1618
  /**
1537
1619
  * Inject global rules that should not reserve tasty class names
1538
1620
  */
@@ -1650,7 +1732,9 @@ declare function func(name: string, definition: FunctionDefinition, options?: {
1650
1732
  weak?: boolean;
1651
1733
  }): void;
1652
1734
  /**
1653
- * Get CSS text from all sheets (for SSR)
1735
+ * Get the CSS text of every sheet the injector holds. Reads the live
1736
+ * stylesheets, so it needs a DOM: on the server, collect CSS with
1737
+ * `ServerStyleCollector` from `@tenphi/tasty/ssr` instead.
1654
1738
  */
1655
1739
  declare function getCSSText(options?: {
1656
1740
  root?: Document | ShadowRoot;
@@ -1663,21 +1747,40 @@ declare function getCSSTextForNode(node: ParentNode | Element | DocumentFragment
1663
1747
  root?: Document | ShadowRoot;
1664
1748
  }): string;
1665
1749
  /**
1666
- * Force cleanup of unused rules
1750
+ * Take a reference on local `@keyframes` under the deterministic names the
1751
+ * caller resolved, and report which entry holds each. Pair with
1752
+ * `ownKeyframes()` once the rules exist to inspect.
1753
+ */
1754
+ declare function holdKeyframes(steps: Record<string, KeyframesSteps>, names: Map<string, string>, options?: {
1755
+ root?: Document | ShadowRoot;
1756
+ }): Map<string, string>;
1757
+ /**
1758
+ * Record that a class animates these keyframes, so the reference is released
1759
+ * when the last such class is collected.
1760
+ */
1761
+ declare function ownKeyframes(key: string, className: string, options?: {
1762
+ root?: Document | ShadowRoot;
1763
+ }): void;
1764
+ /**
1765
+ * Remove every injected rule that is neither in the DOM nor held by an
1766
+ * outstanding `inject()` handle. Equivalent to `gc({ force: true })`.
1667
1767
  */
1668
1768
  declare function cleanup(root?: Document | ShadowRoot): void;
1669
1769
  /**
1670
- * Record a render-time usage hit for one or more classNames.
1671
- * Used internally by computeStyles and tasty() to track usage for GC.
1672
- * When the global touch counter reaches `touchInterval`, schedules GC.
1770
+ * Count a render, so that a collection pass is scheduled every
1771
+ * `gc.touchInterval` of them. Used internally by computeStyles and tasty().
1772
+ *
1773
+ * @deprecated The class name is ignored — collection asks the DOM what is
1774
+ * rendered rather than recording usage per class. The argument is kept so
1775
+ * existing calls still compile.
1673
1776
  */
1674
1777
  declare function touch(className: string, options?: {
1675
1778
  root?: Document | ShadowRoot;
1676
1779
  }): void;
1677
1780
  /**
1678
- * Synchronous garbage collection of unused styles.
1679
- * Evicts the oldest unused styles when usageMap exceeds capacity.
1680
- * With `{ force: true }`, removes ALL unused styles regardless of capacity.
1781
+ * Synchronous garbage collection of unused styles — those no element carries
1782
+ * and no `inject()` handle references. Evicts the oldest ones once they exceed
1783
+ * capacity. With `{ force: true }`, removes all of them regardless of capacity.
1681
1784
  *
1682
1785
  * @returns Number of styles evicted.
1683
1786
  */
@@ -1698,66 +1801,54 @@ declare function destroy(root?: Document | ShadowRoot): void;
1698
1801
  declare function createInjector(config?: Partial<StyleInjectorConfig>): StyleInjector;
1699
1802
  //#endregion
1700
1803
  //#region src/utils/filter-base-props.d.ts
1804
+ declare const basePropNames: readonly ["role", "title", "inert", "as", "element", "css", "qa", "mods", "qaVal", "hidden", "isHidden", "disabled", "isDisabled", "children", "style", "className", "href", "target", "tabIndex"];
1805
+ declare const ignoredEventPropNames: readonly ["onPress", "onHoverStart", "onHoverEnd", "onPressStart", "onPressEnd"];
1701
1806
  interface PropsFilterOptions {
1702
1807
  labelable?: boolean;
1703
- propNames?: Set<string>;
1808
+ propNames?: ReadonlySet<string>;
1704
1809
  eventProps?: boolean;
1705
1810
  }
1706
- /**
1707
- * Filters out all props that aren't valid DOM props or defined via override prop obj.
1811
+ type ExplicitPropName<O> = O extends {
1812
+ propNames?: ReadonlySet<infer P>;
1813
+ } ? Extract<P, string> : never;
1814
+ type EventPropsEnabled<O> = O extends {
1815
+ eventProps?: infer E;
1816
+ } ? Extract<E, boolean> : never;
1817
+ type Characters<S extends string> = S extends `${infer First}${infer Rest}` ? First | Characters<Rest> : never;
1818
+ /** Models DOM-style event keys and the runtime's ignored event names. */
1819
+ type EventPropName<K extends string> = string extends K ? `on${Characters<'ABCDEFGHIJKLMNOPQRSTUVWXYZ'>}${string}` : K extends `on${infer Initial}${infer Rest}` ? 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' extends `${string}${Initial}${string}` ? Rest extends '' ? never : Exclude<K, (typeof ignoredEventPropNames)[number]> : never : never;
1820
+ type ExplicitNumericPropName<K, O> = K extends number ? `${K}` extends ExplicitPropName<O> ? K : never : never;
1821
+ type RetainedPropName<T, O> = 'id' | (typeof basePropNames)[number] | `aria-${string}` | `data-${string}` | ExplicitPropName<O> | (true extends EventPropsEnabled<O> ? EventPropName<Extract<keyof T, string>> : never);
1822
+ type FilteredProps<T extends object, O> = T extends unknown ? Partial<Pick<T, Extract<keyof T, RetainedPropName<T, O>> | Extract<RetainedPropName<T, O>, keyof T> | ExplicitNumericPropName<keyof T, O>>> : never;
1823
+ /**
1824
+ * Keeps the built-in base props, ARIA/data attributes, and explicitly allowed props.
1825
+ * DOM-style event names are kept only with `eventProps: true`, except the ignored
1826
+ * interaction events (which can still be allowed explicitly via `propNames`).
1827
+ * The return type preserves the input value types only for potentially retained
1828
+ * keys. Props remain optional because only own enumerable string keys are copied.
1829
+ * Use a literal union (e.g. `new Set(['name', 'type'] as const)`) for `propNames`
1830
+ * to keep precise types; a `Set<string>` can potentially retain any string key.
1708
1831
  * @param props - The component props to be filtered.
1709
- * @param opts - Props to override.
1832
+ * @param opts - Additional prop names and event forwarding options.
1710
1833
  */
1711
- declare function filterBaseProps<T extends object>(props: T, opts?: PropsFilterOptions): Partial<T>;
1834
+ declare function filterBaseProps<T extends object>(props: T, opts?: undefined): FilteredProps<T, undefined>;
1835
+ declare function filterBaseProps<T extends object, O extends PropsFilterOptions | undefined = PropsFilterOptions>(props: T, opts: O): FilteredProps<T, O>;
1712
1836
  //#endregion
1713
1837
  //#region src/utils/colors.d.ts
1714
1838
  declare function color$1(name: string, opacity?: number): string;
1715
1839
  //#endregion
1716
1840
  //#region src/utils/mod-attrs.d.ts
1717
- declare const _modAttrs: (firstArg: Record<string, ModValue> | undefined, secondArg?: unknown) => Record<string, string> | null;
1718
- //#endregion
1719
- //#region src/utils/dotize.d.ts
1720
- declare const dotize: {
1721
- valTypes: {
1722
- none: string;
1723
- primitive: string;
1724
- object: string;
1725
- array: string;
1726
- };
1727
- getValType: (val: any) => string | undefined;
1728
- getPathType: (arrPath: any) => string[];
1729
- isUndefined: (obj: any) => obj is undefined;
1730
- isNumber: (f: any) => boolean;
1731
- isEmptyObj: (obj: any) => boolean;
1732
- isPlainObject: (obj: any) => boolean;
1733
- isNotObject: (obj: any) => boolean;
1734
- isEmptyArray: (arr: any) => boolean;
1735
- isNotArray: (arr: any) => boolean;
1736
- removeEmptyArrayItem: (arr: any) => any;
1737
- getFieldName: (field: any, prefix: any, isRoot: any, isArrayItem: any, isArray: any) => string;
1738
- startsWith: (val: any, valToSearch: any) => boolean;
1739
- convert: (obj: any, prefix?: string) => any;
1740
- backward: (obj: any, prefix: any) => any;
1741
- };
1841
+ declare function modAttrs(map: AllBaseProps['mods']): Record<string, string> | null;
1742
1842
  //#endregion
1743
1843
  //#region src/utils/resolve-recipes.d.ts
1744
- /**
1745
- * Resolve all `recipe` style properties in a styles object.
1746
- *
1747
- * Handles both top-level and sub-element recipe references.
1748
- * Returns the same object reference if no recipes are present anywhere
1749
- * (zero overhead for the common case).
1750
- *
1751
- * @param styles - The styles object potentially containing `recipe` keys
1752
- * @returns Resolved styles with recipe values merged in, or the original object if unchanged
1753
- */
1844
+ /** Resolve recipe references against the globally configured recipe map. */
1754
1845
  declare function resolveRecipes(styles: Styles): Styles;
1755
1846
  //#endregion
1756
1847
  //#region src/utils/process-tokens.d.ts
1757
1848
  /**
1758
1849
  * Process tokens object into inline style properties.
1759
- * - $name -> --name with parsed value
1760
- * - #name -> --name-color AND --name-color-{colorSpace} with parsed values
1850
+ * - `$name` -> `--name` with the parsed value
1851
+ * - `#name` -> `--name-color` with the parsed value
1761
1852
  *
1762
1853
  * @param tokens - The tokens object to process
1763
1854
  * @returns CSSProperties object or undefined if no tokens to process
@@ -1812,7 +1903,13 @@ interface ChunkBreakdown {
1812
1903
  }
1813
1904
  interface Summary {
1814
1905
  activeClasses: string[];
1906
+ /** Classes `gc({ force: true })` would delete right now. */
1815
1907
  unusedClasses: string[];
1908
+ /**
1909
+ * Held but in neither list: nothing renders them, yet collection will not
1910
+ * take them — inside the grace window, or pinned by an `inject()` handle.
1911
+ */
1912
+ hotClasses: string[];
1816
1913
  totalStyledClasses: string[];
1817
1914
  activeCSSSize: number;
1818
1915
  unusedCSSSize: number;
@@ -1849,5 +1946,5 @@ declare const tastyDebug: {
1849
1946
  install(): void;
1850
1947
  };
1851
1948
  //#endregion
1852
- export { okhstFunction as $, TagName as $t, keyframes as A, TastyProps as At, ChunkInfo as B, BlockOuterStyleProps as Bt, getCSSTextForNode as C, ResolveTokenProps as Ct, injectRawCSS as D, TastyElementOptions as Dt, injectGlobal as E, TastyComponentPropsWithDefaults as Et, ComputeStylesOptions as F, AllBaseProps as Ft, DIMENSION_CHUNK_STYLES as G, ExtraBaseStyleProps as Gt, APPEARANCE_CHUNK_STYLES as H, ColorStyleProps as Ht, ComputeStylesResult as I, BaseProps as It, LAYOUT_CHUNK_STYLES as J, ModValue as Jt, DISPLAY_CHUNK_STYLES as K, FlowStyleProps as Kt, computeStyles as L, BasePropsWithoutChildren as Lt, touch as M, VariantMap as Mt, ChunkSheetRegistry as N, WithVariant as Nt, injector as O, TastyElementProps as Ot, chunkSheetRegistry as P, tasty as Pt, createColorFunc as Q, ShortGridStyles as Qt, defineHandler as R, BaseStyleProps as Rt, getCSSText as S, ResolveModProps as St, inject as T, SubElementProps as Tt, CHUNK_NAMES as U, ContainerStyleProps as Ut, categorizeStyleKeys as V, BlockStyleProps as Vt, ChunkName as W, DimensionStyleProps as Wt, STYLE_TO_CHUNK as X, OuterStyleProps as Xt, POSITION_CHUNK_STYLES as Y, Mods as Yt, resolveFunctionColor as Z, PositionStyleProps as Zt, createInjector as _, POSITION_STYLES as _n, ElementsDefinition as _t, DebugOptions as a, TokenValue as an, useFunction as at, func as b, DEFAULT_ZERO_NAME_PREFIX as bn, ResolveAsProps as bt, tastyDebug as c, BLOCK_INNER_STYLES as cn, UsePropertyOptions as ct, dotize as d, COLOR_STYLES as dn, useRawCSS as dt, TastyBaseStylePropNames as en, okhstPlugin as et, _modAttrs as f, CONTAINER_STYLES as fn, useGlobalStyles as ft, counterStyle as g, OUTER_STYLES as gn, Element$1 as gt, cleanup as h, INNER_STYLES as hn, AllBasePropsWithMods as ht, DebugChunkInfo as i, TextStyleProps as in, UseFunctionOptions as it, property as j, TokenPropsInput as jt, isPropertyDefined as k, TastyPolymorphicComponent as kt, processTokens as l, BLOCK_OUTER_STYLES as ln, useProperty as lt, filterBaseProps as m, FLOW_STYLES as mn, useStyles as mt, CacheStatus as n, TastyExtensionConfig as nn, okhslPlugin as nt, InspectResult as o, Tokens as on, useCounterStyle as ot, color$1 as p, DIMENSION_STYLES as pn, UseStylesResult as pt, FONT_CHUNK_STYLES as q, InnerStyleProps as qt, ChunkBreakdown as r, TastyThemeNames as rn, getDisplayName as rt, Summary as s, BASE_STYLES as sn, useFontFace as st, CSSOptions as t, TastyCustomProps as tn, okhslFunction as tt, resolveRecipes as u, BLOCK_STYLES as un, useKeyframes as ut, destroy as v, TEXT_STYLES as vn, ModPropDef as vt, getRawCSSText as w, SubElementDefinition as wt, gc as x, ResolveModPropDef as xt, fontFace as y, DEFAULT_NAME_PREFIX as yn, ModPropsInput as yt, styleHandlers as z, BlockInnerStyleProps as zt };
1853
- //# sourceMappingURL=index-DzGxoeyN.d.ts.map
1949
+ export { createColorFunc as $, OuterStyleProps as $t, keyframes as A, strToRgb as An, TastyElementOptions as At, styleHandlers as B, BasePropsWithoutChildren as Bt, getRawCSSText as C, DEFAULT_ZERO_NAME_PREFIX as Cn, ResolveAsProps as Ct, injectRawCSS as D, getRgbValuesFromRgbaString as Dn, SubElementDefinition as Dt, injectGlobal as E, getNamedColorHex as En, ResolveTokenProps as Et, chunkSheetRegistry as F, VariantMap as Ft, ChunkName as G, ColorStyleProps as Gt, categorizeStyleKeys as H, BlockInnerStyleProps as Ht, ComputeStylesOptions as I, WithVariant as It, FONT_CHUNK_STYLES as J, ExtraBaseStyleProps as Jt, DIMENSION_CHUNK_STYLES as K, ContainerStyleProps as Kt, ComputeStylesResult as L, tasty as Lt, property as M, TastyPolymorphicComponent as Mt, touch as N, TastyProps as Nt, injector as O, hexToRgb as On, SubElementProps as Ot, ChunkSheetRegistry as P, TokenPropsInput as Pt, resolveFunctionColor as Q, Mods as Qt, computeStyles as R, AllBaseProps as Rt, getCSSTextForNode as S, DEFAULT_NAME_PREFIX as Sn, ModPropsInput as St, inject as T, isSelector as Tn, ResolveModProps as Tt, APPEARANCE_CHUNK_STYLES as U, BlockOuterStyleProps as Ut, ChunkInfo as V, BaseStyleProps as Vt, CHUNK_NAMES as W, BlockStyleProps as Wt, POSITION_CHUNK_STYLES as X, InnerStyleProps as Xt, LAYOUT_CHUNK_STYLES as Y, FlowStyleProps as Yt, STYLE_TO_CHUNK as Z, ModValue as Zt, destroy as _, FLOW_STYLES as _n, useStyles as _t, DebugOptions as a, TastyExtensionConfig as an, TastyBatchProvider as at, gc as b, POSITION_STYLES as bn, ElementsDefinition as bt, tastyDebug as c, TokenValue as cn, useFunction as ct, modAttrs as d, BLOCK_INNER_STYLES as dn, UsePropertyOptions as dt, PositionStyleProps as en, okhstFunction as et, color$1 as f, BLOCK_OUTER_STYLES as fn, useProperty as ft, createInjector as g, DIMENSION_STYLES as gn, UseStylesResult as gt, counterStyle as h, CONTAINER_STYLES as hn, useGlobalStyles as ht, DebugChunkInfo as i, TastyCustomProps as in, getDisplayName as it, ownKeyframes as j, TastyElementProps as jt, isPropertyDefined as k, hslToRgbValues as kn, TastyComponentPropsWithDefaults as kt, processTokens as l, Tokens as ln, useCounterStyle as lt, cleanup as m, COLOR_STYLES as mn, useRawCSS as mt, CacheStatus as n, TagName as nn, okhslFunction as nt, InspectResult as o, TastyThemeNames as on, TastyBatchProviderProps as ot, filterBaseProps as p, BLOCK_STYLES as pn, useKeyframes as pt, DISPLAY_CHUNK_STYLES as q, DimensionStyleProps as qt, ChunkBreakdown as r, TastyBaseStylePropNames as rn, okhslPlugin as rt, Summary as s, TextStyleProps as sn, UseFunctionOptions as st, CSSOptions as t, ShortGridStyles as tn, okhstPlugin as tt, resolveRecipes as u, BASE_STYLES as un, useFontFace as ut, fontFace as v, INNER_STYLES as vn, AllBasePropsWithMods as vt, holdKeyframes as w, hasStylesGenerated as wn, ResolveModPropDef as wt, getCSSText as x, TEXT_STYLES as xn, ModPropDef as xt, func as y, OUTER_STYLES as yn, Element$1 as yt, defineHandler as z, BaseProps as zt };
1950
+ //# sourceMappingURL=index-xtey-KDu.d.ts.map