@tenphi/tasty 0.0.0-snapshot.dffd134 → 0.0.0-snapshot.e01a0ee

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-DlxpZKk_.js +60 -0
  6. package/dist/chunks/build-config-DlxpZKk_.js.map +1 -0
  7. package/dist/{collector-UWhVKseF.js → chunks/collector-B4-yqFEs.js} +25 -119
  8. package/dist/chunks/collector-B4-yqFEs.js.map +1 -0
  9. package/dist/chunks/config-engine-DJsb5WYu.js +272 -0
  10. package/dist/chunks/config-engine-DJsb5WYu.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-DW1TGGiy.js +910 -0
  14. package/dist/chunks/css-definitions-DW1TGGiy.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-DMMwe1rY.js +502 -0
  18. package/dist/chunks/debug-DMMwe1rY.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-DhPtFlZs.js +689 -0
  24. package/dist/chunks/react-runtime-DhPtFlZs.js.map +1 -0
  25. package/dist/chunks/runtime-engine-BlrVXv8l.js +2432 -0
  26. package/dist/chunks/runtime-engine-BlrVXv8l.js.map +1 -0
  27. package/dist/chunks/runtime-state-BLyMRYFF.js +152 -0
  28. package/dist/chunks/runtime-state-BLyMRYFF.js.map +1 -0
  29. package/dist/{merge-styles-CVCZ4hgD.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-of5Xbc27.js +5571 -0
  32. package/dist/chunks/style-engine-of5Xbc27.js.map +1 -0
  33. package/dist/{css-writer-DEkJuPH6.js → chunks/zero-engine-D2jPSpWA.js} +65 -145
  34. package/dist/chunks/zero-engine-D2jPSpWA.js.map +1 -0
  35. package/dist/{collector-BPzZezAG.d.ts → collector-CTU-nl0g.d.ts} +23 -4
  36. package/dist/{config-D2INrjr_.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-BAAbdfRs.d.ts → index--GdqCPlp.d.ts} +366 -257
  41. package/dist/index.d.ts +5 -5
  42. package/dist/index.js +11 -867
  43. package/dist/{merge-styles-NEvqayL_.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-l_NdJSUS.d.ts → types-DJEM_BOJ.d.ts} +751 -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 +122 -85
  90. package/docs/comparison.md +77 -47
  91. package/docs/configuration.md +435 -108
  92. package/docs/debug.md +21 -8
  93. package/docs/design-system.md +152 -31
  94. package/docs/dsl.md +497 -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 +55 -31
  100. package/docs/plugins.md +59 -75
  101. package/docs/react-api.md +139 -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 -39
  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-HlEpSZrj.d.ts +0 -83
  110. package/dist/collector-UWhVKseF.js.map +0 -1
  111. package/dist/config-BCuFlC1I.js +0 -12180
  112. package/dist/config-BCuFlC1I.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-CbMYIizf.js +0 -1550
  116. package/dist/core-CbMYIizf.js.map +0 -1
  117. package/dist/css-writer-DEkJuPH6.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-D2J4PbR5.js +0 -143
  121. package/dist/format-rules-D2J4PbR5.js.map +0 -1
  122. package/dist/hydrate-lZeNoz_w.js +0 -37
  123. package/dist/hydrate-lZeNoz_w.js.map +0 -1
  124. package/dist/index.js.map +0 -1
  125. package/dist/keyframes-BUMyAa-Q.js +0 -424
  126. package/dist/keyframes-BUMyAa-Q.js.map +0 -1
  127. package/dist/merge-styles-CVCZ4hgD.js.map +0 -1
  128. package/dist/resolve-recipes-BnMC1WW1.js +0 -144
  129. package/dist/resolve-recipes-BnMC1WW1.js.map +0 -1
@@ -1,8 +1,64 @@
1
- import { _ as TastyPluginFactory, w as StyleInjector } from "./config-D2INrjr_.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-l_NdJSUS.js";
3
- import { t as ServerStyleCollector } from "./collector-BPzZezAG.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,24 +371,43 @@ 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
- } & Pick<BaseProps, 'qa' | 'qaVal'> & WithVariant<V>;
394
+ } & Pick<BaseProps, 'qa' | 'qaVal'>;
395
+ /**
396
+ * The names the `variant` option of `tasty(Base, options)` accepts: the
397
+ * extension's own variants and the base's, as its `variant` prop does. A
398
+ * union, not an intersection of the two, so an extension can default to a
399
+ * variant only one of them defines.
400
+ */
401
+ type ExtensionVariantName<V extends VariantMap, Props> = string extends keyof V ? 'variant' extends keyof Props ? NonNullable<Props['variant' & keyof Props]> : keyof V : keyof V | ('variant' extends keyof Props ? NonNullable<Props['variant' & keyof Props]> : never);
333
402
  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>;
335
- } & Partial<Omit<DefaultProps, 'as' | 'styles' | 'styleProps' | 'modProps' | 'tokenProps' | 'tokens'>>;
403
+ /** The tag name of the element or a React component. */
404
+ as?: string | ComponentType<any>;
405
+ /**
406
+ * The variant applied when the `variant` prop is omitted or names no
407
+ * variant: one of `variants`, or one of the base component's.
408
+ */
409
+ variant?: ExtensionVariantName<V, DefaultProps>;
410
+ } & Partial<Omit<DefaultProps, 'as' | 'styles' | 'styleProps' | 'modProps' | 'tokenProps' | 'tokens' | 'variant'>>;
336
411
  /**
337
412
  * Resolves the props of a polymorphic `as` value (intrinsic tag or component).
338
413
  * - For intrinsic tags (`'div'`, `'button'`, ...): returns `JSX.IntrinsicElements[Tag]`.
@@ -349,15 +424,16 @@ type ResolveAsProps<AsType extends ElementType> = AsType extends keyof JSX.Intri
349
424
  * Note: Uses a separate index signature with `unknown` instead of an `any`
350
425
  * record to ensure strict type checking for styles.
351
426
  */
352
- 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;
427
+ 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> & WithVariant<V> & {
428
+ /** The tag name of the element or a React component. */
429
+ as?: AsType;
354
430
  } & 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>;
431
+ 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
432
  /**
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.
433
+ * Props consumed by Tasty rather than forwarded to the `as` component.
434
+ * Event handlers are resolved from JSX.IntrinsicElements or the component's own props.
359
435
  */
360
- type TastySpecificKeys = 'as' | 'qa' | 'qaVal' | 'element' | 'styles' | 'mods' | 'isHidden' | 'isDisabled' | 'isChecked' | 'style' | 'theme' | 'tokens' | 'ref' | 'color';
436
+ type TastySpecificKeys = keyof BaseStyleProps | 'as' | 'qa' | 'qaVal' | 'element' | 'styles' | 'mods' | 'isHidden' | 'isDisabled' | 'isChecked' | 'style' | 'theme' | 'tokens' | 'ref';
361
437
  /** Extract prop key names from a ModPropsInput (array elements or object keys). */
362
438
  type ModPropsKeys<M extends ModPropsInput> = M extends readonly (infer K)[] ? K & string : keyof M & string;
363
439
  /** Extract prop key names from a TokenPropsInput (array elements or object keys). */
@@ -379,7 +455,24 @@ type TokenPropsKeys<TP extends TokenPropsInput> = TP extends readonly (infer K)[
379
455
  * is a component type with a narrower prop API.
380
456
  */
381
457
  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] };
458
+ /** Statics React itself reads, as a type (see `REACT_STATICS`). */
459
+ type ReactStaticKey = '$$typeof' | 'render' | 'type' | 'compare' | 'displayName' | 'defaultProps' | 'propTypes' | 'contextType' | 'contextTypes' | 'childContextTypes' | 'getDerivedStateFromProps' | 'getDerivedStateFromError';
460
+ /**
461
+ * The statics of a component that are components themselves — a `tasty()`
462
+ * base's sub-elements (`Card.Title`) — which its extension keeps.
463
+ */
464
+ 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]; };
465
+ /** Prop names the extension form's own options claim from the base's props. */
466
+ 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');
467
+ /**
468
+ * Props of a `tasty(Component, options)` extension: the base's props, plus
469
+ * whatever its own `styleProps`, `modProps`, `tokenProps` and `variants` add.
470
+ * Its variants extend the base's: `variant` accepts either set.
471
+ */
472
+ 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 : {
473
+ variant?: keyof V | ('variant' extends keyof Props ? NonNullable<Props['variant']> : never);
474
+ });
475
+ 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
476
  /**
384
477
  * The component type returned by the `tasty(options)` element-factory overload.
385
478
  *
@@ -394,9 +487,9 @@ type TastyComponentPropsWithDefaults<Props extends PropsWithStyles, DefaultProps
394
487
  * `SomeComponent`; create another `tasty({ as: SomeComponent })` for that.
395
488
  */
396
489
  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>>;
490
+ 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>;
491
+ 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>);
492
+ declare const Element$1: TastyPolymorphicComponent<"div", readonly never[], VariantMap, readonly never[], readonly never[]> & SubElementComponents<Record<string, never>>;
400
493
  //#endregion
401
494
  //#region src/hooks/useStyles.d.ts
402
495
  interface UseStylesResult {
@@ -412,7 +505,9 @@ interface UseStylesResult {
412
505
  * Thin wrapper around `computeStyles()` that adds React context-based
413
506
  * SSR collector discovery for backward compatibility with TastyRegistry.
414
507
  *
415
- * For hook-free usage (e.g. in server components), use `computeStyles()` directly.
508
+ * Works in Server Components too. There, like the other style functions, it
509
+ * cannot emit CSS itself: the next `tasty()` element in the tree emits it, so
510
+ * render one after it.
416
511
  *
417
512
  * @example
418
513
  * ```tsx
@@ -728,7 +823,63 @@ interface UseFunctionOptions {
728
823
  */
729
824
  declare function useFunction(name: string, definition: FunctionDefinition, options?: UseFunctionOptions): void;
730
825
  //#endregion
826
+ //#region src/batch-provider.d.ts
827
+ interface TastyBatchProviderProps {
828
+ children?: ReactNode;
829
+ }
830
+ /**
831
+ * Opens a *batch window* for the commit it renders in, so `batchInjection`
832
+ * can defer stylesheet writes without ever letting a layout effect measure an
833
+ * unstyled element.
834
+ *
835
+ * Every `insertRule()` on a live sheet invalidates style for that sheet's
836
+ * scope. When components inject during React's render phase while others read
837
+ * layout in the same pass, the two interleave and the browser recalculates
838
+ * style between every injection. Batching collapses that into one invalidation
839
+ * per flush — but only if the flush happens before anything can measure.
840
+ *
841
+ * ```
842
+ * provider renders -> window OPEN
843
+ * children render -> injections queued
844
+ * provider insertionEffect -> FLUSH, window CLOSED
845
+ * layout effects run -> rules are in the sheet
846
+ * ```
847
+ *
848
+ * `useInsertionEffect` runs in React's mutation phase, after every render in
849
+ * the commit and before any `useLayoutEffect` — which is exactly why React
850
+ * added it for CSS-in-JS libraries. Effects fire child-first, so this
851
+ * provider's runs after every descendant's and still before all layout
852
+ * effects.
853
+ *
854
+ * A commit that does not re-render this provider gets no window, and those
855
+ * injections are written synchronously instead. That is the point: turning
856
+ * `batchInjection: true` on can only ever make injection cheaper, never make a
857
+ * measurement wrong. It also means batching applies to commits this provider
858
+ * takes part in, so mount it as high in the tree as you can.
859
+ *
860
+ * Requires `configure({ batchInjection: true })`; without it this component
861
+ * only renders its children. `batchInjection: 'always'` does not need the
862
+ * provider at all — see that option's docs for the trade-off it accepts.
863
+ *
864
+ * @example
865
+ * ```tsx
866
+ * configure({ batchInjection: true });
867
+ *
868
+ * createRoot(el).render(
869
+ * <TastyBatchProvider>
870
+ * <App />
871
+ * </TastyBatchProvider>,
872
+ * );
873
+ * ```
874
+ */
875
+ declare function TastyBatchProvider({ children }: TastyBatchProviderProps): React.ReactNode;
876
+ //#endregion
731
877
  //#region src/utils/get-display-name.d.ts
878
+ /**
879
+ * A readable name for a component: its `displayName`, else its function name,
880
+ * looking through `forwardRef()` and `memo()` to the component they wrap. A
881
+ * tag name names itself. Falls back to `fallbackName` when there is none.
882
+ */
732
883
  declare function getDisplayName<T>(Component: ElementType<T>, fallbackName?: string): string;
733
884
  //#endregion
734
885
  //#region src/index.d.ts
@@ -834,8 +985,8 @@ declare function resolveFunctionColor(str: string): string | null;
834
985
  /**
835
986
  * Chunk names, the built-in chunk style lists, and the style→chunk lookup.
836
987
  *
837
- * This is a **leaf module with no imports**. It exists separately from
838
- * `definitions.ts` for two reasons:
988
+ * This module only imports data-only style-name lists. It exists separately
989
+ * from `definitions.ts` for two reasons:
839
990
  *
840
991
  * 1. The style handler registry (`styles/predefined.ts`) needs to assign chunk
841
992
  * membership for custom handlers. Reaching for `definitions.ts` would create an
@@ -848,7 +999,8 @@ declare function resolveFunctionColor(str: string): string | null;
848
999
  * public API surface are unchanged.
849
1000
  */
850
1001
  declare const CHUNK_NAMES: {
851
- /** Special chunk for styles that cannot be split */readonly COMBINED: "combined";
1002
+ /** Special chunk for styles that cannot be split */
1003
+ readonly COMBINED: "combined";
852
1004
  readonly SUBCOMPONENTS: "subcomponents";
853
1005
  readonly APPEARANCE: "appearance";
854
1006
  readonly FONT: "font";
@@ -860,11 +1012,15 @@ declare const CHUNK_NAMES: {
860
1012
  };
861
1013
  type ChunkName = (typeof CHUNK_NAMES)[keyof typeof CHUNK_NAMES];
862
1014
  /**
863
- * Appearance chunk - visual styling with independent handlers
1015
+ * Appearance chunk - visual styling
1016
+ *
1017
+ * Handler dependencies (all styles in each handler MUST stay in this chunk):
1018
+ * ⚠️ fillStyle: fill, backgroundColor, image, backgroundImage,
1019
+ * backgroundPosition/Size/Repeat/Attachment/Origin/Clip, background
864
1020
  *
865
1021
  * @public
866
1022
  */
867
- declare const APPEARANCE_CHUNK_STYLES: readonly ["fill", "color", "opacity", "border", "radius", "outline", "outlineOffset", "shadow", "fade"];
1023
+ 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
1024
  /**
869
1025
  * Font chunk - typography styles
870
1026
  *
@@ -878,13 +1034,15 @@ declare const FONT_CHUNK_STYLES: readonly ["preset", "font", "fontWeight", "font
878
1034
  * Dimension chunk - sizing and spacing
879
1035
  *
880
1036
  * 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
1037
+ * ⚠️ paddingStyle: padding, paddingTop/Right/Bottom/Left
1038
+ * ⚠️ marginStyle: margin, marginTop/Right/Bottom/Left
883
1039
  * ⚠️ widthStyle: width, minWidth, maxWidth
884
1040
  * ⚠️ heightStyle: height, minHeight, maxHeight
1041
+ * ⚠️ blockSizeStyle: blockSize, minBlockSize, maxBlockSize
1042
+ * ⚠️ inlineSizeStyle: inlineSize, minInlineSize, maxInlineSize
885
1043
  */
886
1044
  /** @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"];
1045
+ 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
1046
  /**
889
1047
  * Display chunk - display mode, layout flow, text overflow, and scrollbar
890
1048
  *
@@ -908,10 +1066,10 @@ declare const LAYOUT_CHUNK_STYLES: readonly ["placeItems", "placeContent", "alig
908
1066
  * Position chunk - element positioning
909
1067
  *
910
1068
  * Handler dependencies (all styles in each handler MUST stay in this chunk):
911
- * ⚠️ insetStyle: inset, insetBlock, insetInline, top, right, bottom, left
1069
+ * ⚠️ insetStyle: inset, top, right, bottom, left
912
1070
  */
913
1071
  /** @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"];
1072
+ 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
1073
  /**
916
1074
  * Map for O(1) style-to-chunk lookup. Seeded with the built-in lists above and
917
1075
  * extended by {@link assignStyleChunk} when a custom handler declares style names
@@ -951,23 +1109,27 @@ declare function categorizeStyleKeys(styles: Record<string, unknown>): Map<strin
951
1109
  *
952
1110
  * Later groups override earlier groups for conflicting directions.
953
1111
  */
954
- declare function borderStyle({
955
- border
956
- }: {
1112
+ declare function borderStyle({ border }: {
957
1113
  border?: string | number | boolean;
958
1114
  }): Record<string, string> | null;
959
1115
  declare namespace borderStyle {
960
1116
  var __lookupStyles: string[];
961
1117
  }
962
1118
  //#endregion
1119
+ //#region src/styles/blockSize.d.ts
1120
+ declare function blockSizeStyle({ blockSize, minBlockSize, maxBlockSize }: {
1121
+ blockSize?: string | number | boolean;
1122
+ minBlockSize?: string | number | boolean;
1123
+ maxBlockSize?: string | number | boolean;
1124
+ }): Record<string, string | string[]> | null;
1125
+ declare namespace blockSizeStyle {
1126
+ var __lookupStyles: ("blockSize" | "maxBlockSize" | "minBlockSize")[];
1127
+ }
1128
+ //#endregion
963
1129
  //#region src/styles/color.d.ts
964
- declare function colorStyle({
965
- color
966
- }: {
1130
+ declare function colorStyle({ color }: {
967
1131
  color?: string | boolean;
968
- }): {
969
- color: string;
970
- } | null;
1132
+ }): Record<string, string> | null;
971
1133
  declare namespace colorStyle {
972
1134
  var __lookupStyles: string[];
973
1135
  }
@@ -989,21 +1151,13 @@ interface DisplayStyleProps {
989
1151
  * 3. Single-line `textOverflow` defaults white-space to nowrap
990
1152
  * 4. Explicit `whiteSpace` overrides the default from `textOverflow`
991
1153
  */
992
- declare function displayStyle({
993
- display,
994
- hide,
995
- textOverflow,
996
- overflow,
997
- whiteSpace
998
- }: DisplayStyleProps): Record<string, string | number> | null;
1154
+ declare function displayStyle({ display, hide, textOverflow, overflow, whiteSpace }: DisplayStyleProps): Record<string, string | number> | null;
999
1155
  declare namespace displayStyle {
1000
1156
  var __lookupStyles: string[];
1001
1157
  }
1002
1158
  //#endregion
1003
1159
  //#region src/styles/fade.d.ts
1004
- declare function fadeStyle({
1005
- fade
1006
- }: {
1160
+ declare function fadeStyle({ fade }: {
1007
1161
  fade?: string;
1008
1162
  }): {
1009
1163
  mask: string;
@@ -1014,20 +1168,8 @@ declare namespace fadeStyle {
1014
1168
  }
1015
1169
  //#endregion
1016
1170
  //#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;
1171
+ declare function fillStyle({ fill, backgroundColor, image, backgroundImage, backgroundPosition, backgroundSize, backgroundRepeat, backgroundAttachment, backgroundOrigin, backgroundClip, background }: {
1172
+ fill?: string | boolean;
1031
1173
  backgroundColor?: string;
1032
1174
  image?: string;
1033
1175
  backgroundImage?: string;
@@ -1042,9 +1184,7 @@ declare function fillStyle({
1042
1184
  declare namespace fillStyle {
1043
1185
  var __lookupStyles: string[];
1044
1186
  }
1045
- declare function svgFillStyle({
1046
- svgFill
1047
- }: {
1187
+ declare function svgFillStyle({ svgFill }: {
1048
1188
  svgFill?: string;
1049
1189
  }): {
1050
1190
  fill: string;
@@ -1054,28 +1194,21 @@ declare namespace svgFillStyle {
1054
1194
  }
1055
1195
  //#endregion
1056
1196
  //#region src/styles/flow.d.ts
1057
- declare function flowStyle({
1058
- display,
1059
- flow
1060
- }: {
1061
- display?: string;
1062
- flow?: string;
1197
+ declare function flowStyle({ display, flow }: {
1198
+ display?: string | NoType;
1199
+ flow?: string | NoType;
1063
1200
  }): {
1064
- [x: string]: string | undefined;
1201
+ [x: string]: string;
1065
1202
  } | null;
1066
1203
  declare namespace flowStyle {
1067
1204
  var __lookupStyles: string[];
1068
1205
  }
1069
1206
  //#endregion
1070
1207
  //#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;
1208
+ declare function gapStyle({ display, flow, gap }: {
1209
+ display?: string | NoType;
1210
+ flow?: string | NoType;
1211
+ gap?: string | number | boolean | NoType;
1079
1212
  }): {
1080
1213
  gap: string;
1081
1214
  $?: undefined;
@@ -1102,28 +1235,14 @@ interface HeightStyleProps {
1102
1235
  minHeight?: string | number | boolean;
1103
1236
  maxHeight?: string | number | boolean;
1104
1237
  }
1105
- declare function heightStyle({
1106
- height,
1107
- minHeight,
1108
- maxHeight
1109
- }: HeightStyleProps): Record<string, string | string[]> | null;
1238
+ declare function heightStyle({ height, minHeight, maxHeight }: HeightStyleProps): Record<string, string | string[]> | null;
1110
1239
  declare namespace heightStyle {
1111
1240
  var __lookupStyles: string[];
1112
1241
  }
1113
1242
  //#endregion
1114
1243
  //#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
- }: {
1244
+ declare function insetStyle({ inset, top, right, bottom, left }: {
1124
1245
  inset?: string | number | boolean;
1125
- insetBlock?: string | number | boolean;
1126
- insetInline?: string | number | boolean;
1127
1246
  top?: string | number | boolean;
1128
1247
  right?: string | number | boolean;
1129
1248
  bottom?: string | number | boolean;
@@ -1133,19 +1252,19 @@ declare namespace insetStyle {
1133
1252
  var __lookupStyles: string[];
1134
1253
  }
1135
1254
  //#endregion
1255
+ //#region src/styles/inlineSize.d.ts
1256
+ declare function inlineSizeStyle({ inlineSize, minInlineSize, maxInlineSize }: {
1257
+ inlineSize?: string | number | boolean;
1258
+ minInlineSize?: string | number | boolean;
1259
+ maxInlineSize?: string | number | boolean;
1260
+ }): Record<string, string | string[]> | null;
1261
+ declare namespace inlineSizeStyle {
1262
+ var __lookupStyles: ("inlineSize" | "maxInlineSize" | "minInlineSize")[];
1263
+ }
1264
+ //#endregion
1136
1265
  //#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
- }: {
1266
+ declare function marginStyle({ margin, marginTop, marginRight, marginBottom, marginLeft }: {
1146
1267
  margin?: string | number | boolean;
1147
- marginBlock?: string | number | boolean;
1148
- marginInline?: string | number | boolean;
1149
1268
  marginTop?: string | number | boolean;
1150
1269
  marginRight?: string | number | boolean;
1151
1270
  marginBottom?: string | number | boolean;
@@ -1174,27 +1293,14 @@ interface OutlineStyleProps {
1174
1293
  *
1175
1294
  * @return CSS properties for outline and optionally outline-offset
1176
1295
  */
1177
- declare function outlineStyle({
1178
- outline,
1179
- outlineOffset
1180
- }: OutlineStyleProps): Record<string, string> | null;
1296
+ declare function outlineStyle({ outline, outlineOffset }: OutlineStyleProps): Record<string, string> | null;
1181
1297
  declare namespace outlineStyle {
1182
1298
  var __lookupStyles: string[];
1183
1299
  }
1184
1300
  //#endregion
1185
1301
  //#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
- }: {
1302
+ declare function paddingStyle({ padding, paddingTop, paddingRight, paddingBottom, paddingLeft }: {
1195
1303
  padding?: string | number | boolean;
1196
- paddingBlock?: string | number | boolean;
1197
- paddingInline?: string | number | boolean;
1198
1304
  paddingTop?: string | number | boolean;
1199
1305
  paddingRight?: string | number | boolean;
1200
1306
  paddingBottom?: string | number | boolean;
@@ -1224,17 +1330,7 @@ interface PlacementStyleProps {
1224
1330
  * 2. placeItems, placeContent, align, justify (medium) — each sets 2 longhands
1225
1331
  * 3. alignItems, alignContent, justifyItems, justifyContent (highest) — each sets 1 longhand
1226
1332
  */
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;
1333
+ declare function placementStyle({ place, placeItems, placeContent, align, justify, alignItems, alignContent, justifyItems, justifyContent }: PlacementStyleProps): Record<string, string> | null;
1238
1334
  declare namespace placementStyle {
1239
1335
  var __lookupStyles: string[];
1240
1336
  }
@@ -1275,25 +1371,13 @@ interface PresetStyleProps {
1275
1371
  * - `font` is the recommended prop with special handling (monospace, boolean, fallback)
1276
1372
  * - `fontFamily` is a direct value without special handling
1277
1373
  */
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;
1374
+ declare function presetStyle({ preset, fontSize, lineHeight, textTransform, letterSpacing, fontWeight, fontStyle, fontFamily, font }: PresetStyleProps): CSSMap | null;
1289
1375
  declare namespace presetStyle {
1290
1376
  var __lookupStyles: string[];
1291
1377
  }
1292
1378
  //#endregion
1293
1379
  //#region src/styles/radius.d.ts
1294
- declare function radiusStyle({
1295
- radius
1296
- }: {
1380
+ declare function radiusStyle({ radius }: {
1297
1381
  radius?: string | number | boolean;
1298
1382
  }): Record<string, string> | null;
1299
1383
  declare namespace radiusStyle {
@@ -1301,18 +1385,8 @@ declare namespace radiusStyle {
1301
1385
  }
1302
1386
  //#endregion
1303
1387
  //#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
- }: {
1388
+ declare function scrollMarginStyle({ scrollMargin, scrollMarginTop, scrollMarginRight, scrollMarginBottom, scrollMarginLeft }: {
1313
1389
  scrollMargin?: string | number | boolean;
1314
- scrollMarginBlock?: string | number | boolean;
1315
- scrollMarginInline?: string | number | boolean;
1316
1390
  scrollMarginTop?: string | number | boolean;
1317
1391
  scrollMarginRight?: string | number | boolean;
1318
1392
  scrollMarginBottom?: string | number | boolean;
@@ -1322,6 +1396,18 @@ declare namespace scrollMarginStyle {
1322
1396
  var __lookupStyles: string[];
1323
1397
  }
1324
1398
  //#endregion
1399
+ //#region src/styles/scrollPadding.d.ts
1400
+ declare function scrollPaddingStyle({ scrollPadding, scrollPaddingTop, scrollPaddingRight, scrollPaddingBottom, scrollPaddingLeft }: {
1401
+ scrollPadding?: string | number | boolean;
1402
+ scrollPaddingTop?: string | number | boolean;
1403
+ scrollPaddingRight?: string | number | boolean;
1404
+ scrollPaddingBottom?: string | number | boolean;
1405
+ scrollPaddingLeft?: string | number | boolean;
1406
+ }): Record<string, string> | null;
1407
+ declare namespace scrollPaddingStyle {
1408
+ var __lookupStyles: string[];
1409
+ }
1410
+ //#endregion
1325
1411
  //#region src/styles/scrollbar.d.ts
1326
1412
  interface ScrollbarStyleProps {
1327
1413
  scrollbar?: string | boolean;
@@ -1337,18 +1423,13 @@ interface ScrollbarStyleProps {
1337
1423
  * Note: `auto` is classified as a VALUE_KEYWORD by the parser, so it lands
1338
1424
  * in `values` rather than `mods`. Both locations are checked for robustness.
1339
1425
  */
1340
- declare function scrollbarStyle({
1341
- scrollbar,
1342
- overflow
1343
- }: ScrollbarStyleProps): Record<string, string> | null;
1426
+ declare function scrollbarStyle({ scrollbar, overflow }: ScrollbarStyleProps): Record<string, string> | null;
1344
1427
  declare namespace scrollbarStyle {
1345
1428
  var __lookupStyles: string[];
1346
1429
  }
1347
1430
  //#endregion
1348
1431
  //#region src/styles/shadow.d.ts
1349
- declare function shadowStyle({
1350
- shadow
1351
- }: {
1432
+ declare function shadowStyle({ shadow }: {
1352
1433
  shadow?: string | boolean;
1353
1434
  }): {
1354
1435
  'box-shadow': string;
@@ -1358,9 +1439,7 @@ declare namespace shadowStyle {
1358
1439
  }
1359
1440
  //#endregion
1360
1441
  //#region src/styles/transition.d.ts
1361
- declare function transitionStyle({
1362
- transition
1363
- }: {
1442
+ declare function transitionStyle({ transition }: {
1364
1443
  transition?: string;
1365
1444
  }): {
1366
1445
  transition: string;
@@ -1375,11 +1454,7 @@ interface WidthStyleProps {
1375
1454
  minWidth?: string | number | boolean;
1376
1455
  maxWidth?: string | number | boolean;
1377
1456
  }
1378
- declare function widthStyle({
1379
- width,
1380
- minWidth,
1381
- maxWidth
1382
- }: WidthStyleProps): Record<string, string | string[]> | null;
1457
+ declare function widthStyle({ width, minWidth, maxWidth }: WidthStyleProps): Record<string, string | string[]> | null;
1383
1458
  declare namespace widthStyle {
1384
1459
  var __lookupStyles: string[];
1385
1460
  }
@@ -1409,16 +1484,6 @@ declare namespace widthStyle {
1409
1484
  * ```
1410
1485
  */
1411
1486
  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
1487
  readonly margin: typeof marginStyle;
1423
1488
  readonly outline: typeof outlineStyle;
1424
1489
  readonly padding: typeof paddingStyle;
@@ -1426,10 +1491,35 @@ declare const styleHandlers: {
1426
1491
  readonly preset: typeof presetStyle;
1427
1492
  readonly radius: typeof radiusStyle;
1428
1493
  readonly scrollMargin: typeof scrollMarginStyle;
1494
+ readonly scrollPadding: typeof scrollPaddingStyle;
1429
1495
  readonly scrollbar: typeof scrollbarStyle;
1430
1496
  readonly shadow: typeof shadowStyle;
1431
1497
  readonly transition: typeof transitionStyle;
1432
1498
  readonly width: typeof widthStyle;
1499
+ readonly blockBorder: StyleHandler<Partial<Record<"blockBorder", string | number | boolean | undefined>>>;
1500
+ readonly inlineBorder: StyleHandler<Partial<Record<"inlineBorder", string | number | boolean | undefined>>>;
1501
+ readonly blockScrollPadding: StyleHandler<Partial<Record<"blockScrollPadding", string | number | boolean | undefined>>>;
1502
+ readonly inlineScrollPadding: StyleHandler<Partial<Record<"inlineScrollPadding", string | number | boolean | undefined>>>;
1503
+ readonly blockScrollMargin: StyleHandler<Partial<Record<"blockScrollMargin", string | number | boolean | undefined>>>;
1504
+ readonly inlineScrollMargin: StyleHandler<Partial<Record<"inlineScrollMargin", string | number | boolean | undefined>>>;
1505
+ readonly blockInset: StyleHandler<Partial<Record<"blockInset", string | number | boolean | undefined>>>;
1506
+ readonly inlineInset: StyleHandler<Partial<Record<"inlineInset", string | number | boolean | undefined>>>;
1507
+ readonly blockMargin: StyleHandler<Partial<Record<"blockMargin", string | number | boolean | undefined>>>;
1508
+ readonly inlineMargin: StyleHandler<Partial<Record<"inlineMargin", string | number | boolean | undefined>>>;
1509
+ readonly blockPadding: StyleHandler<Partial<Record<"blockPadding", string | number | boolean | undefined>>>;
1510
+ readonly inlinePadding: StyleHandler<Partial<Record<"inlinePadding", string | number | boolean | undefined>>>;
1511
+ readonly blockSize: typeof blockSizeStyle;
1512
+ readonly border: typeof borderStyle;
1513
+ readonly color: typeof colorStyle;
1514
+ readonly display: typeof displayStyle;
1515
+ readonly fade: typeof fadeStyle;
1516
+ readonly fill: typeof fillStyle;
1517
+ readonly svgFill: typeof svgFillStyle;
1518
+ readonly flow: typeof flowStyle;
1519
+ readonly gap: typeof gapStyle;
1520
+ readonly height: typeof heightStyle;
1521
+ readonly inset: typeof insetStyle;
1522
+ readonly inlineSize: typeof inlineSizeStyle;
1433
1523
  };
1434
1524
  //#endregion
1435
1525
  //#region src/styles/define-handler.d.ts
@@ -1472,6 +1562,13 @@ interface ComputeStylesOptions {
1472
1562
  ssrCollector?: ServerStyleCollector | null;
1473
1563
  /** Target root for style injection (client only). Defaults to `document`. */
1474
1564
  root?: Document | ShadowRoot;
1565
+ /**
1566
+ * Set when `styles` outlives this call and will be passed in again — a
1567
+ * `tasty()` factory's own styles object rather than a per-render merge.
1568
+ * It lets chunk cache keys be memoized on the object, which is worth the
1569
+ * bookkeeping only when there is a next render to spend it on.
1570
+ */
1571
+ stableStyles?: boolean;
1475
1572
  }
1476
1573
  /**
1477
1574
  * Synchronous, hook-free style computation.
@@ -1529,10 +1626,7 @@ declare const chunkSheetRegistry: ChunkSheetRegistry;
1529
1626
  /**
1530
1627
  * Inject styles and return className with dispose function
1531
1628
  */
1532
- declare function inject(rules: StyleResult[], options?: {
1533
- root?: Document | ShadowRoot;
1534
- cacheKey?: string;
1535
- }): InjectResult;
1629
+ declare function inject(rules: StyleResult[], options?: InjectOptions): InjectResult;
1536
1630
  /**
1537
1631
  * Inject global rules that should not reserve tasty class names
1538
1632
  */
@@ -1650,7 +1744,9 @@ declare function func(name: string, definition: FunctionDefinition, options?: {
1650
1744
  weak?: boolean;
1651
1745
  }): void;
1652
1746
  /**
1653
- * Get CSS text from all sheets (for SSR)
1747
+ * Get the CSS text of every sheet the injector holds. Reads the live
1748
+ * stylesheets, so it needs a DOM: on the server, collect CSS with
1749
+ * `ServerStyleCollector` from `@tenphi/tasty/ssr` instead.
1654
1750
  */
1655
1751
  declare function getCSSText(options?: {
1656
1752
  root?: Document | ShadowRoot;
@@ -1663,21 +1759,40 @@ declare function getCSSTextForNode(node: ParentNode | Element | DocumentFragment
1663
1759
  root?: Document | ShadowRoot;
1664
1760
  }): string;
1665
1761
  /**
1666
- * Force cleanup of unused rules
1762
+ * Take a reference on local `@keyframes` under the deterministic names the
1763
+ * caller resolved, and report which entry holds each. Pair with
1764
+ * `ownKeyframes()` once the rules exist to inspect.
1765
+ */
1766
+ declare function holdKeyframes(steps: Record<string, KeyframesSteps>, names: Map<string, string>, options?: {
1767
+ root?: Document | ShadowRoot;
1768
+ }): Map<string, string>;
1769
+ /**
1770
+ * Record that a class animates these keyframes, so the reference is released
1771
+ * when the last such class is collected.
1772
+ */
1773
+ declare function ownKeyframes(key: string, className: string, options?: {
1774
+ root?: Document | ShadowRoot;
1775
+ }): void;
1776
+ /**
1777
+ * Remove every injected rule that is neither in the DOM nor held by an
1778
+ * outstanding `inject()` handle. Equivalent to `gc({ force: true })`.
1667
1779
  */
1668
1780
  declare function cleanup(root?: Document | ShadowRoot): void;
1669
1781
  /**
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.
1782
+ * Count a render, so that a collection pass is scheduled every
1783
+ * `gc.touchInterval` of them. Used internally by computeStyles and tasty().
1784
+ *
1785
+ * @deprecated The class name is ignored — collection asks the DOM what is
1786
+ * rendered rather than recording usage per class. The argument is kept so
1787
+ * existing calls still compile.
1673
1788
  */
1674
1789
  declare function touch(className: string, options?: {
1675
1790
  root?: Document | ShadowRoot;
1676
1791
  }): void;
1677
1792
  /**
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.
1793
+ * Synchronous garbage collection of unused styles — those no element carries
1794
+ * and no `inject()` handle references. Evicts the oldest ones once they exceed
1795
+ * capacity. With `{ force: true }`, removes all of them regardless of capacity.
1681
1796
  *
1682
1797
  * @returns Number of styles evicted.
1683
1798
  */
@@ -1698,66 +1813,54 @@ declare function destroy(root?: Document | ShadowRoot): void;
1698
1813
  declare function createInjector(config?: Partial<StyleInjectorConfig>): StyleInjector;
1699
1814
  //#endregion
1700
1815
  //#region src/utils/filter-base-props.d.ts
1816
+ declare const basePropNames: readonly ["role", "title", "inert", "as", "element", "css", "qa", "mods", "qaVal", "hidden", "isHidden", "disabled", "isDisabled", "children", "style", "className", "href", "target", "tabIndex"];
1817
+ declare const ignoredEventPropNames: readonly ["onPress", "onHoverStart", "onHoverEnd", "onPressStart", "onPressEnd"];
1701
1818
  interface PropsFilterOptions {
1702
1819
  labelable?: boolean;
1703
- propNames?: Set<string>;
1820
+ propNames?: ReadonlySet<string>;
1704
1821
  eventProps?: boolean;
1705
1822
  }
1706
- /**
1707
- * Filters out all props that aren't valid DOM props or defined via override prop obj.
1823
+ type ExplicitPropName<O> = O extends {
1824
+ propNames?: ReadonlySet<infer P>;
1825
+ } ? Extract<P, string> : never;
1826
+ type EventPropsEnabled<O> = O extends {
1827
+ eventProps?: infer E;
1828
+ } ? Extract<E, boolean> : never;
1829
+ type Characters<S extends string> = S extends `${infer First}${infer Rest}` ? First | Characters<Rest> : never;
1830
+ /** Models DOM-style event keys and the runtime's ignored event names. */
1831
+ 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;
1832
+ type ExplicitNumericPropName<K, O> = K extends number ? `${K}` extends ExplicitPropName<O> ? K : never : never;
1833
+ type RetainedPropName<T, O> = 'id' | (typeof basePropNames)[number] | `aria-${string}` | `data-${string}` | ExplicitPropName<O> | (true extends EventPropsEnabled<O> ? EventPropName<Extract<keyof T, string>> : never);
1834
+ 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;
1835
+ /**
1836
+ * Keeps the built-in base props, ARIA/data attributes, and explicitly allowed props.
1837
+ * DOM-style event names are kept only with `eventProps: true`, except the ignored
1838
+ * interaction events (which can still be allowed explicitly via `propNames`).
1839
+ * The return type preserves the input value types only for potentially retained
1840
+ * keys. Props remain optional because only own enumerable string keys are copied.
1841
+ * Use a literal union (e.g. `new Set(['name', 'type'] as const)`) for `propNames`
1842
+ * to keep precise types; a `Set<string>` can potentially retain any string key.
1708
1843
  * @param props - The component props to be filtered.
1709
- * @param opts - Props to override.
1844
+ * @param opts - Additional prop names and event forwarding options.
1710
1845
  */
1711
- declare function filterBaseProps<T extends object>(props: T, opts?: PropsFilterOptions): Partial<T>;
1846
+ declare function filterBaseProps<T extends object>(props: T, opts?: undefined): FilteredProps<T, undefined>;
1847
+ declare function filterBaseProps<T extends object, O extends PropsFilterOptions | undefined = PropsFilterOptions>(props: T, opts: O): FilteredProps<T, O>;
1712
1848
  //#endregion
1713
1849
  //#region src/utils/colors.d.ts
1714
1850
  declare function color$1(name: string, opacity?: number): string;
1715
1851
  //#endregion
1716
1852
  //#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
- };
1853
+ declare function modAttrs(map: AllBaseProps['mods']): Record<string, string> | null;
1742
1854
  //#endregion
1743
1855
  //#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
- */
1856
+ /** Resolve recipe references against the globally configured recipe map. */
1754
1857
  declare function resolveRecipes(styles: Styles): Styles;
1755
1858
  //#endregion
1756
1859
  //#region src/utils/process-tokens.d.ts
1757
1860
  /**
1758
1861
  * Process tokens object into inline style properties.
1759
- * - $name -> --name with parsed value
1760
- * - #name -> --name-color AND --name-color-{colorSpace} with parsed values
1862
+ * - `$name` -> `--name` with the parsed value
1863
+ * - `#name` -> `--name-color` with the parsed value
1761
1864
  *
1762
1865
  * @param tokens - The tokens object to process
1763
1866
  * @returns CSSProperties object or undefined if no tokens to process
@@ -1812,7 +1915,13 @@ interface ChunkBreakdown {
1812
1915
  }
1813
1916
  interface Summary {
1814
1917
  activeClasses: string[];
1918
+ /** Classes `gc({ force: true })` would delete right now. */
1815
1919
  unusedClasses: string[];
1920
+ /**
1921
+ * Held but in neither list: nothing renders them, yet collection will not
1922
+ * take them — inside the grace window, or pinned by an `inject()` handle.
1923
+ */
1924
+ hotClasses: string[];
1816
1925
  totalStyledClasses: string[];
1817
1926
  activeCSSSize: number;
1818
1927
  unusedCSSSize: number;
@@ -1849,5 +1958,5 @@ declare const tastyDebug: {
1849
1958
  install(): void;
1850
1959
  };
1851
1960
  //#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-BAAbdfRs.d.ts.map
1961
+ 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 };
1962
+ //# sourceMappingURL=index--GdqCPlp.d.ts.map