@tenphi/tasty 0.0.0-snapshot.a85ade8 → 0.0.0-snapshot.a8a2a5d

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 (137) hide show
  1. package/README.md +418 -381
  2. package/dist/babel-types-BOABQvEI.d.ts +16 -0
  3. package/dist/chunks/async-storage-CzSKAyrI.js +36 -0
  4. package/dist/chunks/async-storage-CzSKAyrI.js.map +1 -0
  5. package/dist/chunks/build-config-DQkT3Wru.js +59 -0
  6. package/dist/chunks/build-config-DQkT3Wru.js.map +1 -0
  7. package/dist/{collector-C6TtL8HJ.js → chunks/collector-Df9zcabl.js} +11 -129
  8. package/dist/chunks/collector-Df9zcabl.js.map +1 -0
  9. package/dist/chunks/config-engine-C7OUmM1J.js +269 -0
  10. package/dist/chunks/config-engine-C7OUmM1J.js.map +1 -0
  11. package/dist/chunks/config-file-BX3F_61U.js +24 -0
  12. package/dist/chunks/config-file-BX3F_61U.js.map +1 -0
  13. package/dist/chunks/css-definitions-BkdTqT7G.js +896 -0
  14. package/dist/chunks/css-definitions-BkdTqT7G.js.map +1 -0
  15. package/dist/chunks/css-resources-C0zT36nQ.js +141 -0
  16. package/dist/chunks/css-resources-C0zT36nQ.js.map +1 -0
  17. package/dist/chunks/debug-CwGMB2RI.js +501 -0
  18. package/dist/chunks/debug-CwGMB2RI.js.map +1 -0
  19. package/dist/chunks/dsl-BAwiOznp.js +1442 -0
  20. package/dist/chunks/dsl-BAwiOznp.js.map +1 -0
  21. package/dist/chunks/hydration-DEmoq1sQ.js +39 -0
  22. package/dist/chunks/hydration-DEmoq1sQ.js.map +1 -0
  23. package/dist/chunks/react-runtime-B8YqpFx7.js +678 -0
  24. package/dist/chunks/react-runtime-B8YqpFx7.js.map +1 -0
  25. package/dist/chunks/runtime-engine-CHNH2nGy.js +2418 -0
  26. package/dist/chunks/runtime-engine-CHNH2nGy.js.map +1 -0
  27. package/dist/chunks/runtime-state-BxLKsQzs.js +150 -0
  28. package/dist/chunks/runtime-state-BxLKsQzs.js.map +1 -0
  29. package/dist/{merge-styles-DuoZEsm9.js → chunks/shared-utils-CYgOs2mp.js} +58 -57
  30. package/dist/chunks/shared-utils-CYgOs2mp.js.map +1 -0
  31. package/dist/chunks/style-engine-DkKH-TqL.js +5573 -0
  32. package/dist/chunks/style-engine-DkKH-TqL.js.map +1 -0
  33. package/dist/{css-writer-Bgowobbx.js → chunks/zero-engine-C-0ar_PT.js} +67 -149
  34. package/dist/chunks/zero-engine-C-0ar_PT.js.map +1 -0
  35. package/dist/{collector-BTVXj2hS.d.ts → collector-BN6hCWIx.d.ts} +3 -6
  36. package/dist/{config-LfIDmVHx.d.ts → config-Chmu-PnP.d.ts} +49 -63
  37. package/dist/core/index.d.ts +5 -5
  38. package/dist/core/index.js +9 -6
  39. package/dist/hydrate-CTh8SGd9.d.ts +20 -0
  40. package/dist/{index-Bm9ltvdH.d.ts → index-szujmf6W.d.ts} +263 -348
  41. package/dist/index.d.ts +5 -5
  42. package/dist/index.js +11 -922
  43. package/dist/merge-styles-Cx25bpax.d.ts +4 -0
  44. package/dist/ssr/astro-client.d.ts +1 -1
  45. package/dist/ssr/astro-client.js +2 -16
  46. package/dist/ssr/astro-client.js.map +1 -1
  47. package/dist/ssr/astro-middleware-extract-static.d.ts +1 -4
  48. package/dist/ssr/astro-middleware-extract-static.js +1 -2
  49. package/dist/ssr/astro-middleware-extract.d.ts +1 -4
  50. package/dist/ssr/astro-middleware-extract.js +1 -2
  51. package/dist/ssr/astro-middleware-static.d.ts +1 -4
  52. package/dist/ssr/astro-middleware-static.js +2 -14
  53. package/dist/ssr/astro-middleware-static.js.map +1 -1
  54. package/dist/ssr/astro-middleware.d.ts +1 -4
  55. package/dist/ssr/astro-middleware.js +2 -15
  56. package/dist/ssr/astro-middleware.js.map +1 -1
  57. package/dist/ssr/astro.d.ts +17 -19
  58. package/dist/ssr/astro.js +218 -1
  59. package/dist/ssr/astro.js.map +1 -0
  60. package/dist/ssr/client.d.ts +2 -0
  61. package/dist/ssr/client.js +1 -0
  62. package/dist/ssr/index.d.ts +5 -27
  63. package/dist/ssr/index.js +6 -7
  64. package/dist/ssr/index.js.map +1 -1
  65. package/dist/ssr/next-config.d.ts +63 -0
  66. package/dist/ssr/next-config.js +122 -0
  67. package/dist/ssr/next-config.js.map +1 -0
  68. package/dist/ssr/next.d.ts +9 -10
  69. package/dist/ssr/next.js +30 -45
  70. package/dist/ssr/next.js.map +1 -1
  71. package/dist/static/index.d.ts +8 -13
  72. package/dist/static/index.js +6 -26
  73. package/dist/static/index.js.map +1 -1
  74. package/dist/static/inject.d.ts +1 -4
  75. package/dist/static/inject.js +1 -2
  76. package/dist/{index-BmogEzTo.d.ts → types-DbMN-Yyn.d.ts} +1013 -1043
  77. package/dist/zero/babel.d.ts +71 -2
  78. package/dist/zero/babel.js +84 -150
  79. package/dist/zero/babel.js.map +1 -1
  80. package/dist/zero/index.d.ts +61 -12
  81. package/dist/zero/index.js +24 -2
  82. package/dist/zero/index.js.map +1 -0
  83. package/dist/zero/next.d.ts +5 -7
  84. package/dist/zero/next.js +4 -40
  85. package/dist/zero/next.js.map +1 -1
  86. package/docs/README.md +4 -1
  87. package/docs/adoption.md +25 -17
  88. package/docs/ai-agents.md +69 -34
  89. package/docs/comparison.md +9 -8
  90. package/docs/configuration.md +204 -70
  91. package/docs/debug.md +18 -7
  92. package/docs/design-system.md +129 -15
  93. package/docs/dsl.md +327 -117
  94. package/docs/getting-started.md +81 -22
  95. package/docs/injector.md +41 -40
  96. package/docs/llms.txt +31 -0
  97. package/docs/methodology.md +48 -23
  98. package/docs/migration-v3.md +3 -3
  99. package/docs/pipeline.md +55 -28
  100. package/docs/plugins.md +22 -42
  101. package/docs/react-api.md +76 -11
  102. package/docs/runtime-benchmarks.md +257 -47
  103. package/docs/ssr.md +226 -80
  104. package/docs/styles.md +169 -33
  105. package/docs/tasty-static.md +176 -58
  106. package/harness/dev.harnesspm/rules/usage.md +12 -0
  107. package/harness/dev.harnesspm/scripts/render.mjs +320 -0
  108. package/harness/dev.harnesspm/scripts/styles.mjs +299 -0
  109. package/harness/plugin.json +20 -0
  110. package/package.json +116 -48
  111. package/tasty.config.ts +1 -0
  112. package/dist/astro-ib7E7V4Y.js +0 -307
  113. package/dist/astro-ib7E7V4Y.js.map +0 -1
  114. package/dist/async-storage-DKK-wTD4.js +0 -44
  115. package/dist/async-storage-DKK-wTD4.js.map +0 -1
  116. package/dist/babel-DWCsafYw.d.ts +0 -83
  117. package/dist/collector-C6TtL8HJ.js.map +0 -1
  118. package/dist/config-B3gPdCqd.js +0 -12421
  119. package/dist/config-B3gPdCqd.js.map +0 -1
  120. package/dist/context-CA8YKeMn.js +0 -24
  121. package/dist/context-CA8YKeMn.js.map +0 -1
  122. package/dist/core-Bq7w2kti.js +0 -1686
  123. package/dist/core-Bq7w2kti.js.map +0 -1
  124. package/dist/css-writer-Bgowobbx.js.map +0 -1
  125. package/dist/format-global-rules-DklyaXv-.js +0 -22
  126. package/dist/format-global-rules-DklyaXv-.js.map +0 -1
  127. package/dist/format-rules-rCZ37rqY.js +0 -130
  128. package/dist/format-rules-rCZ37rqY.js.map +0 -1
  129. package/dist/hydrate-CNOmZprz.js +0 -37
  130. package/dist/hydrate-CNOmZprz.js.map +0 -1
  131. package/dist/index.js.map +0 -1
  132. package/dist/keyframes-DE-OE76F.js +0 -535
  133. package/dist/keyframes-DE-OE76F.js.map +0 -1
  134. package/dist/merge-styles-BcLl1u_d.d.ts +0 -7
  135. package/dist/merge-styles-DuoZEsm9.js.map +0 -1
  136. package/dist/resolve-recipes-H9NqOQuP.js +0 -144
  137. package/dist/resolve-recipes-H9NqOQuP.js.map +0 -1
@@ -1,9 +1,58 @@
1
- import { _ as TastyPluginFactory, w as StyleInjector } from "./config-LfIDmVHx.js";
2
- import { B as StyleValueStateMap, D as CSSMap, I as StyleHandlerResult, M as ResolvedStyleValue, R as StylePropValue, St as KeyframesSteps, _t as InjectResult, at as CSSProperties$1, b as Styles, dt as FunctionDefinition, gt as InjectOptions, ht as GlobalInjectResult, j as RawStyleHandler, kt as StyleInjectorConfig, lt as FontFaceDescriptors, mt as GCOptions, n as StyleResult, nt as StyleDetails, ot as CacheMetrics, st as CounterStyleDescriptors, ut as FontFaceInput, wt as PropertyOptions, x as StylesInterface, xt as KeyframesResult, z as StyleValue } from "./index-BmogEzTo.js";
3
- import { r as ServerStyleCollector } from "./collector-BTVXj2hS.js";
4
- import { AllHTMLAttributes, CSSProperties, ComponentType, ElementType, ForwardRefExoticComponent, JSX, PropsWithoutRef, ReactNode, RefAttributes } from "react";
5
-
6
- //#region src/utils/name-prefix.d.ts
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-DbMN-Yyn.js";
2
+ import { f as TastyPluginFactory, y as StyleInjector } from "./config-Chmu-PnP.js";
3
+ import { t as ServerStyleCollector } from "./collector-BN6hCWIx.js";
4
+ import "./merge-styles-Cx25bpax.js";
5
+ import React, { AllHTMLAttributes, CSSProperties, ComponentType, ElementType, ForwardRefExoticComponent, JSX, PropsWithoutRef, ReactNode, RefAttributes } from "react";
6
+ /**
7
+ * Consolidated color conversion math.
8
+ *
9
+ * Single source of truth for all color space conversions used across the
10
+ * library: sRGB gamma, HSL, OKLab, OKLCH, OKHSL, hex parsing, named
11
+ * colors, and CSS string converters.
12
+ *
13
+ * This module has zero internal imports — it is a leaf dependency.
14
+ *
15
+ * Reference: https://bottosson.github.io/posts/oklab/
16
+ */
17
+ type Vec3 = [number, number, number];
18
+ /**
19
+ * HSL to RGB.
20
+ * Algorithm from CSS Color 4 spec.
21
+ *
22
+ * @param h - Hue in degrees (0-360)
23
+ * @param s - Saturation (0-1)
24
+ * @param l - Lightness (0-1)
25
+ * @returns RGB values in 0-255 range (may have fractional values)
26
+ */
27
+ declare function hslToRgbValues(h: number, s: number, l: number): Vec3;
28
+ declare function getNamedColorHex(): Map<string, string>;
29
+ /**
30
+ * Convert hex color string to `rgb()` CSS string.
31
+ * Supports 3, 4, 6, and 8 character hex values (with or without `#`).
32
+ */
33
+ declare function hexToRgb(hex: string): string | null;
34
+ /**
35
+ * Extract RGB values from an `rgb()`/`rgba()` string.
36
+ * Supports comma-separated, space-separated, fractional, percentage,
37
+ * and slash alpha notation.
38
+ *
39
+ * @returns Array of RGB values (0-255 range), converting percentages as needed.
40
+ */
41
+ declare function getRgbValuesFromRgbaString(str: string): number[];
42
+ /**
43
+ * Convert any recognized color string to an `rgb()` CSS string.
44
+ * Handles hex, `okhsl()`, `okhst()`, `hsl()`/`hsla()`, named CSS colors,
45
+ * and `rgb()`/`rgba()` pass-through.
46
+ */
47
+ declare function strToRgb(color: string, _ignoreAlpha?: boolean): string | null | undefined;
48
+ /** Check whether a style-object key identifies a nested CSS selector. */
49
+ declare function isSelector(key: string): boolean;
50
+ /**
51
+ * Minimal configuration state shared by the style engine, zero-runtime
52
+ * extractor, and runtime configuration module. Keeping it independent
53
+ * prevents pure rendering code from importing the full injector graph.
54
+ */
55
+ declare function hasStylesGenerated(): boolean;
7
56
  /**
8
57
  * Name prefix utilities for generated identifiers.
9
58
  *
@@ -28,22 +77,18 @@ import { AllHTMLAttributes, CSSProperties, ComponentType, ElementType, ForwardRe
28
77
  declare const DEFAULT_NAME_PREFIX = "t";
29
78
  /** Default prefix used by the zero-runtime (`tastyStatic`) build path. */
30
79
  declare const DEFAULT_ZERO_NAME_PREFIX = "ts";
31
- //#endregion
32
- //#region src/styles/list.d.ts
33
80
  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"];
81
+ 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"];
82
+ declare const BLOCK_INNER_STYLES: readonly ["padding", "blockPadding", "inlinePadding", "overflow", "scrollbar", "textAlign"];
83
+ declare const BLOCK_OUTER_STYLES: readonly ["border", "blockBorder", "inlineBorder", "radius", "shadow", "outline"];
84
+ declare const BLOCK_STYLES: readonly ["padding", "blockPadding", "inlinePadding", "overflow", "scrollbar", "textAlign", "border", "blockBorder", "inlineBorder", "radius", "shadow", "outline"];
38
85
  declare const COLOR_STYLES: readonly ["color", "fill", "fade", "image"];
39
86
  declare const TEXT_STYLES: readonly ["textTransform", "fontWeight", "fontStyle"];
40
- declare const DIMENSION_STYLES: readonly ["width", "height", "flexBasis", "flexGrow", "flexShrink", "flex"];
87
+ declare const DIMENSION_STYLES: readonly ["width", "height", "blockSize", "inlineSize", "flexBasis", "flexGrow", "flexShrink", "flex"];
41
88
  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"];
45
- //#endregion
46
- //#region src/types.d.ts
89
+ 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"];
90
+ 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"];
91
+ 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"];
47
92
  /**
48
93
  * Extensible interface for theme names.
49
94
  * Augment this interface to register project-specific theme names for autocomplete.
@@ -96,7 +141,7 @@ interface TastyBaseStylePropNames {}
96
141
  * it names. Intersecting with `keyof StylesInterface` makes a name that isn't a
97
142
  * real style inert rather than `never`-typed.
98
143
  */
99
- type ExtraBaseStyleProps = { [key in keyof TastyBaseStylePropNames & keyof StylesInterface]?: StylePropValue<StylesInterface[key]> };
144
+ type ExtraBaseStyleProps = { [key in keyof TastyBaseStylePropNames & keyof StylesInterface]?: StylePropValue<StylesInterface[key]>; };
100
145
  /** Allowed mod value types */
101
146
  type ModValue = boolean | string | number | undefined | null;
102
147
  /**
@@ -245,9 +290,7 @@ interface TastyExtensionConfig {
245
290
  */
246
291
  stateDescriptions?: Record<string, string>;
247
292
  }
248
- //#endregion
249
- //#region src/tasty.d.ts
250
- type StyleList = readonly (keyof { [key in keyof StylesInterface]: StylesInterface[key] })[];
293
+ type StyleList = readonly (keyof { [key in keyof StylesInterface]: StylesInterface[key]; })[];
251
294
  /** Type descriptor for a single mod prop: a JS constructor or an enum array. */
252
295
  type ModPropDef = BooleanConstructor | StringConstructor | NumberConstructor | readonly string[];
253
296
  /** Array form: list of mod key names (types default to ModValue). */
@@ -259,7 +302,7 @@ type ModPropsInput = ModPropsList | ModPropsMap;
259
302
  /** Resolve a single ModPropDef to its TypeScript type. */
260
303
  type ResolveModPropDef<T> = T extends BooleanConstructor ? boolean : T extends StringConstructor ? string : T extends NumberConstructor ? number : T extends readonly (infer U)[] ? U : ModValue;
261
304
  /** 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]> } : {};
305
+ 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
306
  /** A token key with `$` or `#` prefix. */
264
307
  type TokenPropKey = `$${string}` | `#${string}`;
265
308
  /** Array form: list of prop names. Names ending in `Color` map to `#` color tokens. */
@@ -301,13 +344,15 @@ type ResolveElementTag<T extends SubElementDefinition<any>> = T extends string ?
301
344
  } ? Tag extends keyof JSX.IntrinsicElements ? Tag : 'div' : 'div';
302
345
  /**
303
346
  * Props for sub-element components.
304
- * Combines HTML attributes with tasty-specific props (qa, qaVal, mods, tokens, isDisabled, etc.)
347
+ * Combines HTML attributes with tasty-specific props (qa, qaVal, mods, tokens, theme, isDisabled, etc.)
305
348
  */
306
349
  type SubElementProps<Tag extends keyof JSX.IntrinsicElements = 'div'> = Omit<JSX.IntrinsicElements[Tag], 'ref' | 'color' | 'content' | 'translate'> & {
307
350
  qa?: string;
308
351
  qaVal?: string | number;
309
352
  mods?: Mods;
310
353
  tokens?: Tokens;
354
+ /** User-defined theme for the element. Mapped to `data-theme` attribute. */
355
+ theme?: BaseProps['theme'];
311
356
  isDisabled?: boolean;
312
357
  isHidden?: boolean;
313
358
  isChecked?: boolean;
@@ -315,24 +360,43 @@ type SubElementProps<Tag extends keyof JSX.IntrinsicElements = 'div'> = Omit<JSX
315
360
  /**
316
361
  * Generates the sub-element component types from an ElementsDefinition
317
362
  */
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>> };
363
+ 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
364
  /**
320
365
  * Base type containing common properties shared between TastyProps and TastyElementOptions.
321
366
  * Separated to avoid code duplication while allowing different type constraints.
322
367
  */
323
368
  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). */
369
+ /** Default styles of the element. */
370
+ styles?: Styles;
371
+ /** The list of styles that can be provided by props */
372
+ styleProps?: K;
373
+ /** Modifier keys exposed as top-level component props (array or typed object form). */
374
+ modProps?: M;
375
+ /** Token keys exposed as top-level component props (array or typed object form). */
327
376
  tokenProps?: TP;
328
377
  element?: BaseProps['element'];
329
- variants?: V; /** Default tokens for inline CSS custom properties */
330
- tokens?: Tokens; /** Sub-element definitions for compound components */
378
+ variants?: V;
379
+ /** Default tokens for inline CSS custom properties */
380
+ tokens?: Tokens;
381
+ /** Sub-element definitions for compound components */
331
382
  elements?: E;
332
- } & Pick<BaseProps, 'qa' | 'qaVal'> & WithVariant<V>;
383
+ } & Pick<BaseProps, 'qa' | 'qaVal'>;
384
+ /**
385
+ * The names the `variant` option of `tasty(Base, options)` accepts: the
386
+ * extension's own variants and the base's, as its `variant` prop does. A
387
+ * union, not an intersection of the two, so an extension can default to a
388
+ * variant only one of them defines.
389
+ */
390
+ 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
391
  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'>>;
392
+ /** The tag name of the element or a React component. */
393
+ as?: string | ComponentType<any>;
394
+ /**
395
+ * The variant applied when the `variant` prop is omitted or names no
396
+ * variant: one of `variants`, or one of the base component's.
397
+ */
398
+ variant?: ExtensionVariantName<V, DefaultProps>;
399
+ } & Partial<Omit<DefaultProps, 'as' | 'styles' | 'styleProps' | 'modProps' | 'tokenProps' | 'tokens' | 'variant'>>;
336
400
  /**
337
401
  * Resolves the props of a polymorphic `as` value (intrinsic tag or component).
338
402
  * - For intrinsic tags (`'div'`, `'button'`, ...): returns `JSX.IntrinsicElements[Tag]`.
@@ -349,15 +413,16 @@ type ResolveAsProps<AsType extends ElementType> = AsType extends keyof JSX.Intri
349
413
  * Note: Uses a separate index signature with `unknown` instead of an `any`
350
414
  * record to ensure strict type checking for styles.
351
415
  */
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;
416
+ 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> & {
417
+ /** The tag name of the element or a React component. */
418
+ as?: AsType;
354
419
  } & 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>;
420
+ 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
421
  /**
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.
422
+ * Props consumed by Tasty rather than forwarded to the `as` component.
423
+ * Event handlers are resolved from JSX.IntrinsicElements or the component's own props.
359
424
  */
360
- type TastySpecificKeys = 'as' | 'qa' | 'qaVal' | 'element' | 'styles' | 'mods' | 'isHidden' | 'isDisabled' | 'isChecked' | 'style' | 'theme' | 'tokens' | 'ref' | 'color';
425
+ type TastySpecificKeys = keyof BaseStyleProps | 'as' | 'qa' | 'qaVal' | 'element' | 'styles' | 'mods' | 'isHidden' | 'isDisabled' | 'isChecked' | 'style' | 'theme' | 'tokens' | 'ref';
361
426
  /** Extract prop key names from a ModPropsInput (array elements or object keys). */
362
427
  type ModPropsKeys<M extends ModPropsInput> = M extends readonly (infer K)[] ? K & string : keyof M & string;
363
428
  /** Extract prop key names from a TokenPropsInput (array elements or object keys). */
@@ -379,7 +444,24 @@ type TokenPropsKeys<TP extends TokenPropsInput> = TP extends readonly (infer K)[
379
444
  * is a component type with a narrower prop API.
380
445
  */
381
446
  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] };
447
+ /** Statics React itself reads, as a type (see `REACT_STATICS`). */
448
+ type ReactStaticKey = '$$typeof' | 'render' | 'type' | 'compare' | 'displayName' | 'defaultProps' | 'propTypes' | 'contextType' | 'contextTypes' | 'childContextTypes' | 'getDerivedStateFromProps' | 'getDerivedStateFromError';
449
+ /**
450
+ * The statics of a component that are components themselves — a `tasty()`
451
+ * base's sub-elements (`Card.Title`) — which its extension keeps.
452
+ */
453
+ 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]; };
454
+ /** Prop names the extension form's own options claim from the base's props. */
455
+ 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');
456
+ /**
457
+ * Props of a `tasty(Component, options)` extension: the base's props, plus
458
+ * whatever its own `styleProps`, `modProps`, `tokenProps` and `variants` add.
459
+ * Its variants extend the base's: `variant` accepts either set.
460
+ */
461
+ 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 : {
462
+ variant?: keyof V | ('variant' extends keyof Props ? NonNullable<Props['variant']> : never);
463
+ });
464
+ type TastyComponentPropsWithDefaults<Props extends PropsWithStyles, DefaultProps extends Partial<Props>> = keyof DefaultProps extends never ? Props : keyof Props extends keyof DefaultProps ? Partial<Props> : { [key in Extract<keyof Props, keyof DefaultProps>]?: Props[key]; } & { [key in keyof Omit<Props, keyof DefaultProps>]: Props[key]; };
383
465
  /**
384
466
  * The component type returned by the `tasty(options)` element-factory overload.
385
467
  *
@@ -394,11 +476,9 @@ type TastyComponentPropsWithDefaults<Props extends PropsWithStyles, DefaultProps
394
476
  * `SomeComponent`; create another `tasty({ as: SomeComponent })` for that.
395
477
  */
396
478
  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>>;
400
- //#endregion
401
- //#region src/hooks/useStyles.d.ts
479
+ 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>;
480
+ 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>);
481
+ declare const Element$1: TastyPolymorphicComponent<"div", readonly never[], VariantMap, readonly never[], readonly never[]> & SubElementComponents<Record<string, never>>;
402
482
  interface UseStylesResult {
403
483
  /**
404
484
  * Generated className(s) to apply to the element.
@@ -412,7 +492,9 @@ interface UseStylesResult {
412
492
  * Thin wrapper around `computeStyles()` that adds React context-based
413
493
  * SSR collector discovery for backward compatibility with TastyRegistry.
414
494
  *
415
- * For hook-free usage (e.g. in server components), use `computeStyles()` directly.
495
+ * Works in Server Components too. There, like the other style functions, it
496
+ * cannot emit CSS itself: the next `tasty()` element in the tree emits it, so
497
+ * render one after it.
416
498
  *
417
499
  * @example
418
500
  * ```tsx
@@ -430,8 +512,6 @@ interface UseStylesResult {
430
512
  declare function useStyles(styles: Styles | undefined, options?: {
431
513
  root?: Document | ShadowRoot;
432
514
  }): UseStylesResult;
433
- //#endregion
434
- //#region src/hooks/useGlobalStyles.d.ts
435
515
  interface UseGlobalStylesOptions {
436
516
  /**
437
517
  * Stable identifier for update tracking (client-only). When provided,
@@ -478,8 +558,6 @@ interface UseGlobalStylesOptions {
478
558
  * ```
479
559
  */
480
560
  declare function useGlobalStyles(selector: string, styles?: Styles, options?: UseGlobalStylesOptions): void;
481
- //#endregion
482
- //#region src/hooks/useRawCSS.d.ts
483
561
  interface UseRawCSSOptions {
484
562
  /**
485
563
  * Shadow root or document to inject into. Update tracking is per-root: the
@@ -497,8 +575,6 @@ interface UseRawCSSOptions {
497
575
  }
498
576
  declare function useRawCSS(css: string, options?: UseRawCSSOptions): void;
499
577
  declare function useRawCSS(factory: () => string, deps: readonly unknown[], options?: UseRawCSSOptions): void;
500
- //#endregion
501
- //#region src/hooks/useKeyframes.d.ts
502
578
  interface UseKeyframesOptions {
503
579
  name?: string;
504
580
  root?: Document | ShadowRoot;
@@ -556,8 +632,6 @@ interface UseKeyframesOptions {
556
632
  */
557
633
  declare function useKeyframes(steps: KeyframesSteps, options?: UseKeyframesOptions): string;
558
634
  declare function useKeyframes(factory: () => KeyframesSteps, deps: readonly unknown[], options?: UseKeyframesOptions): string;
559
- //#endregion
560
- //#region src/hooks/useProperty.d.ts
561
635
  /**
562
636
  * Options for {@link useProperty}. Extends the shared {@link PropertyOptions}
563
637
  * (which is `PropertyDefinition` plus an optional injection `root`).
@@ -618,8 +692,6 @@ type UsePropertyOptions = PropertyOptions;
618
692
  * ```
619
693
  */
620
694
  declare function useProperty(name: string, options?: UsePropertyOptions): void;
621
- //#endregion
622
- //#region src/hooks/useFontFace.d.ts
623
695
  interface UseFontFaceOptions {
624
696
  root?: Document | ShadowRoot;
625
697
  }
@@ -659,8 +731,6 @@ interface UseFontFaceOptions {
659
731
  * ```
660
732
  */
661
733
  declare function useFontFace(family: string, input: FontFaceInput, options?: UseFontFaceOptions): void;
662
- //#endregion
663
- //#region src/hooks/useCounterStyle.d.ts
664
734
  interface UseCounterStyleOptions {
665
735
  name?: string;
666
736
  root?: Document | ShadowRoot;
@@ -691,8 +761,6 @@ interface UseCounterStyleOptions {
691
761
  *
692
762
  */
693
763
  declare function useCounterStyle(descriptors: CounterStyleDescriptors, options?: UseCounterStyleOptions): string;
694
- //#endregion
695
- //#region src/hooks/useFunction.d.ts
696
764
  interface UseFunctionOptions {
697
765
  /** Shadow root or document to inject into. */
698
766
  root?: Document | ShadowRoot;
@@ -727,8 +795,6 @@ interface UseFunctionOptions {
727
795
  * ```
728
796
  */
729
797
  declare function useFunction(name: string, definition: FunctionDefinition, options?: UseFunctionOptions): void;
730
- //#endregion
731
- //#region src/batch-provider.d.ts
732
798
  interface TastyBatchProviderProps {
733
799
  children?: ReactNode;
734
800
  }
@@ -777,19 +843,16 @@ interface TastyBatchProviderProps {
777
843
  * );
778
844
  * ```
779
845
  */
780
- declare function TastyBatchProvider({
781
- children
782
- }: TastyBatchProviderProps): ReactNode;
783
- //#endregion
784
- //#region src/utils/get-display-name.d.ts
846
+ declare function TastyBatchProvider({ children }: TastyBatchProviderProps): React.ReactNode;
847
+ /**
848
+ * A readable name for a component: its `displayName`, else its function name,
849
+ * looking through `forwardRef()` and `memo()` to the component they wrap. A
850
+ * tag name names itself. Falls back to `fallbackName` when there is none.
851
+ */
785
852
  declare function getDisplayName<T>(Component: ElementType<T>, fallbackName?: string): string;
786
- //#endregion
787
- //#region src/index.d.ts
788
853
  declare module './utils/css-types' {
789
854
  interface CSSProperties extends CSSProperties {}
790
855
  }
791
- //#endregion
792
- //#region src/plugins/okhsl-plugin.d.ts
793
856
  /**
794
857
  * The okhsl function handler for tasty parser.
795
858
  * Receives parsed style groups and returns an RGB color string.
@@ -818,8 +881,6 @@ declare const okhslFunction: (groups: StyleDetails[]) => string;
818
881
  * ```
819
882
  */
820
883
  declare const okhslPlugin: TastyPluginFactory;
821
- //#endregion
822
- //#region src/plugins/okhst-plugin.d.ts
823
884
  /**
824
885
  * The okhst function handler for tasty parser.
825
886
  * Receives parsed style groups and returns an RGB color string.
@@ -848,8 +909,6 @@ declare const okhstFunction: (groups: StyleDetails[]) => string;
848
909
  * ```
849
910
  */
850
911
  declare const okhstPlugin: TastyPluginFactory;
851
- //#endregion
852
- //#region src/plugins/color-func.d.ts
853
912
  /**
854
913
  * Creates a color function handler for the tasty parser.
855
914
  *
@@ -865,8 +924,6 @@ declare const okhstPlugin: TastyPluginFactory;
865
924
  * or output.
866
925
  */
867
926
  declare function createColorFunc(name: string, convert: (h: number, c2: number, c3: number) => [number, number, number], label?: string): (groups: StyleDetails[]) => string;
868
- //#endregion
869
- //#region src/utils/function-color.d.ts
870
927
  /**
871
928
  * Resolve a `name(...)` value produced by a registered custom parse function
872
929
  * into its concrete color output.
@@ -882,13 +939,11 @@ declare function createColorFunc(name: string, convert: (h: number, c2: number,
882
939
  * the `#token.alpha` injection path.
883
940
  */
884
941
  declare function resolveFunctionColor(str: string): string | null;
885
- //#endregion
886
- //#region src/chunks/style-chunk-map.d.ts
887
942
  /**
888
943
  * Chunk names, the built-in chunk style lists, and the style→chunk lookup.
889
944
  *
890
- * This is a **leaf module with no imports**. It exists separately from
891
- * `definitions.ts` for two reasons:
945
+ * This module only imports data-only style-name lists. It exists separately
946
+ * from `definitions.ts` for two reasons:
892
947
  *
893
948
  * 1. The style handler registry (`styles/predefined.ts`) needs to assign chunk
894
949
  * membership for custom handlers. Reaching for `definitions.ts` would create an
@@ -901,7 +956,8 @@ declare function resolveFunctionColor(str: string): string | null;
901
956
  * public API surface are unchanged.
902
957
  */
903
958
  declare const CHUNK_NAMES: {
904
- /** Special chunk for styles that cannot be split */readonly COMBINED: "combined";
959
+ /** Special chunk for styles that cannot be split */
960
+ readonly COMBINED: "combined";
905
961
  readonly SUBCOMPONENTS: "subcomponents";
906
962
  readonly APPEARANCE: "appearance";
907
963
  readonly FONT: "font";
@@ -913,11 +969,15 @@ declare const CHUNK_NAMES: {
913
969
  };
914
970
  type ChunkName = (typeof CHUNK_NAMES)[keyof typeof CHUNK_NAMES];
915
971
  /**
916
- * Appearance chunk - visual styling with independent handlers
972
+ * Appearance chunk - visual styling
973
+ *
974
+ * Handler dependencies (all styles in each handler MUST stay in this chunk):
975
+ * ⚠️ fillStyle: fill, backgroundColor, image, backgroundImage,
976
+ * backgroundPosition/Size/Repeat/Attachment/Origin/Clip, background
917
977
  *
918
978
  * @public
919
979
  */
920
- declare const APPEARANCE_CHUNK_STYLES: readonly ["fill", "color", "opacity", "border", "radius", "outline", "outlineOffset", "shadow", "fade"];
980
+ 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"];
921
981
  /**
922
982
  * Font chunk - typography styles
923
983
  *
@@ -931,13 +991,15 @@ declare const FONT_CHUNK_STYLES: readonly ["preset", "font", "fontWeight", "font
931
991
  * Dimension chunk - sizing and spacing
932
992
  *
933
993
  * Handler dependencies (all styles in each handler MUST stay in this chunk):
934
- * ⚠️ paddingStyle: padding, paddingTop/Right/Bottom/Left, paddingBlock/Inline
935
- * ⚠️ marginStyle: margin, marginTop/Right/Bottom/Left, marginBlock/Inline
994
+ * ⚠️ paddingStyle: padding, paddingTop/Right/Bottom/Left
995
+ * ⚠️ marginStyle: margin, marginTop/Right/Bottom/Left
936
996
  * ⚠️ widthStyle: width, minWidth, maxWidth
937
997
  * ⚠️ heightStyle: height, minHeight, maxHeight
998
+ * ⚠️ blockSizeStyle: blockSize, minBlockSize, maxBlockSize
999
+ * ⚠️ inlineSizeStyle: inlineSize, minInlineSize, maxInlineSize
938
1000
  */
939
1001
  /** @public */
940
- 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"];
1002
+ 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"];
941
1003
  /**
942
1004
  * Display chunk - display mode, layout flow, text overflow, and scrollbar
943
1005
  *
@@ -961,18 +1023,16 @@ declare const LAYOUT_CHUNK_STYLES: readonly ["placeItems", "placeContent", "alig
961
1023
  * Position chunk - element positioning
962
1024
  *
963
1025
  * Handler dependencies (all styles in each handler MUST stay in this chunk):
964
- * ⚠️ insetStyle: inset, insetBlock, insetInline, top, right, bottom, left
1026
+ * ⚠️ insetStyle: inset, top, right, bottom, left
965
1027
  */
966
1028
  /** @public */
967
- 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"];
1029
+ 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"];
968
1030
  /**
969
1031
  * Map for O(1) style-to-chunk lookup. Seeded with the built-in lists above and
970
1032
  * extended by {@link assignStyleChunk} when a custom handler declares style names
971
1033
  * the built-in lists don't know.
972
1034
  */
973
1035
  declare const STYLE_TO_CHUNK: Map<string, ChunkName>;
974
- //#endregion
975
- //#region src/chunks/definitions.d.ts
976
1036
  interface ChunkInfo {
977
1037
  /** Name of the chunk */
978
1038
  name: ChunkName | string;
@@ -989,8 +1049,6 @@ interface ChunkInfo {
989
1049
  * @returns Map of chunk name to array of style keys in that chunk (in priority order)
990
1050
  */
991
1051
  declare function categorizeStyleKeys(styles: Record<string, unknown>): Map<string, string[]>;
992
- //#endregion
993
- //#region src/styles/border.d.ts
994
1052
  /**
995
1053
  * Border style handler with multi-group support.
996
1054
  *
@@ -1004,26 +1062,26 @@ declare function categorizeStyleKeys(styles: Record<string, unknown>): Map<strin
1004
1062
  *
1005
1063
  * Later groups override earlier groups for conflicting directions.
1006
1064
  */
1007
- declare function borderStyle({
1008
- border
1009
- }: {
1065
+ declare function borderStyle({ border }: {
1010
1066
  border?: string | number | boolean;
1011
1067
  }): Record<string, string> | null;
1012
1068
  declare namespace borderStyle {
1013
1069
  var __lookupStyles: string[];
1014
1070
  }
1015
- //#endregion
1016
- //#region src/styles/color.d.ts
1017
- declare function colorStyle({
1018
- color
1019
- }: {
1071
+ declare function blockSizeStyle({ blockSize, minBlockSize, maxBlockSize }: {
1072
+ blockSize?: string | number | boolean;
1073
+ minBlockSize?: string | number | boolean;
1074
+ maxBlockSize?: string | number | boolean;
1075
+ }): Record<string, string | string[]> | null;
1076
+ declare namespace blockSizeStyle {
1077
+ var __lookupStyles: ("blockSize" | "maxBlockSize" | "minBlockSize")[];
1078
+ }
1079
+ declare function colorStyle({ color }: {
1020
1080
  color?: string | boolean;
1021
1081
  }): Record<string, string> | null;
1022
1082
  declare namespace colorStyle {
1023
1083
  var __lookupStyles: string[];
1024
1084
  }
1025
- //#endregion
1026
- //#region src/styles/display.d.ts
1027
1085
  interface DisplayStyleProps {
1028
1086
  display?: string;
1029
1087
  hide?: boolean;
@@ -1040,21 +1098,11 @@ interface DisplayStyleProps {
1040
1098
  * 3. Single-line `textOverflow` defaults white-space to nowrap
1041
1099
  * 4. Explicit `whiteSpace` overrides the default from `textOverflow`
1042
1100
  */
1043
- declare function displayStyle({
1044
- display,
1045
- hide,
1046
- textOverflow,
1047
- overflow,
1048
- whiteSpace
1049
- }: DisplayStyleProps): Record<string, string | number> | null;
1101
+ declare function displayStyle({ display, hide, textOverflow, overflow, whiteSpace }: DisplayStyleProps): Record<string, string | number> | null;
1050
1102
  declare namespace displayStyle {
1051
1103
  var __lookupStyles: string[];
1052
1104
  }
1053
- //#endregion
1054
- //#region src/styles/fade.d.ts
1055
- declare function fadeStyle({
1056
- fade
1057
- }: {
1105
+ declare function fadeStyle({ fade }: {
1058
1106
  fade?: string;
1059
1107
  }): {
1060
1108
  mask: string;
@@ -1063,22 +1111,8 @@ declare function fadeStyle({
1063
1111
  declare namespace fadeStyle {
1064
1112
  var __lookupStyles: string[];
1065
1113
  }
1066
- //#endregion
1067
- //#region src/styles/fill.d.ts
1068
- declare function fillStyle({
1069
- fill,
1070
- backgroundColor,
1071
- image,
1072
- backgroundImage,
1073
- backgroundPosition,
1074
- backgroundSize,
1075
- backgroundRepeat,
1076
- backgroundAttachment,
1077
- backgroundOrigin,
1078
- backgroundClip,
1079
- background
1080
- }: {
1081
- fill?: string;
1114
+ declare function fillStyle({ fill, backgroundColor, image, backgroundImage, backgroundPosition, backgroundSize, backgroundRepeat, backgroundAttachment, backgroundOrigin, backgroundClip, background }: {
1115
+ fill?: string | boolean;
1082
1116
  backgroundColor?: string;
1083
1117
  image?: string;
1084
1118
  backgroundImage?: string;
@@ -1093,9 +1127,7 @@ declare function fillStyle({
1093
1127
  declare namespace fillStyle {
1094
1128
  var __lookupStyles: string[];
1095
1129
  }
1096
- declare function svgFillStyle({
1097
- svgFill
1098
- }: {
1130
+ declare function svgFillStyle({ svgFill }: {
1099
1131
  svgFill?: string;
1100
1132
  }): {
1101
1133
  fill: string;
@@ -1103,30 +1135,19 @@ declare function svgFillStyle({
1103
1135
  declare namespace svgFillStyle {
1104
1136
  var __lookupStyles: string[];
1105
1137
  }
1106
- //#endregion
1107
- //#region src/styles/flow.d.ts
1108
- declare function flowStyle({
1109
- display,
1110
- flow
1111
- }: {
1112
- display?: string;
1113
- flow?: string;
1138
+ declare function flowStyle({ display, flow }: {
1139
+ display?: string | NoType;
1140
+ flow?: string | NoType;
1114
1141
  }): {
1115
1142
  [x: string]: string;
1116
1143
  } | null;
1117
1144
  declare namespace flowStyle {
1118
1145
  var __lookupStyles: string[];
1119
1146
  }
1120
- //#endregion
1121
- //#region src/styles/gap.d.ts
1122
- declare function gapStyle({
1123
- display,
1124
- flow,
1125
- gap
1126
- }: {
1127
- display?: string;
1128
- flow?: string;
1129
- gap?: string | number | boolean;
1147
+ declare function gapStyle({ display, flow, gap }: {
1148
+ display?: string | NoType;
1149
+ flow?: string | NoType;
1150
+ gap?: string | number | boolean | NoType;
1130
1151
  }): {
1131
1152
  gap: string;
1132
1153
  $?: undefined;
@@ -1146,35 +1167,17 @@ declare function gapStyle({
1146
1167
  declare namespace gapStyle {
1147
1168
  var __lookupStyles: string[];
1148
1169
  }
1149
- //#endregion
1150
- //#region src/styles/height.d.ts
1151
1170
  interface HeightStyleProps {
1152
1171
  height?: string | number | boolean;
1153
1172
  minHeight?: string | number | boolean;
1154
1173
  maxHeight?: string | number | boolean;
1155
1174
  }
1156
- declare function heightStyle({
1157
- height,
1158
- minHeight,
1159
- maxHeight
1160
- }: HeightStyleProps): Record<string, string | string[]> | null;
1175
+ declare function heightStyle({ height, minHeight, maxHeight }: HeightStyleProps): Record<string, string | string[]> | null;
1161
1176
  declare namespace heightStyle {
1162
1177
  var __lookupStyles: string[];
1163
1178
  }
1164
- //#endregion
1165
- //#region src/styles/inset.d.ts
1166
- declare function insetStyle({
1167
- inset,
1168
- insetBlock,
1169
- insetInline,
1170
- top,
1171
- right,
1172
- bottom,
1173
- left
1174
- }: {
1179
+ declare function insetStyle({ inset, top, right, bottom, left }: {
1175
1180
  inset?: string | number | boolean;
1176
- insetBlock?: string | number | boolean;
1177
- insetInline?: string | number | boolean;
1178
1181
  top?: string | number | boolean;
1179
1182
  right?: string | number | boolean;
1180
1183
  bottom?: string | number | boolean;
@@ -1183,20 +1186,16 @@ declare function insetStyle({
1183
1186
  declare namespace insetStyle {
1184
1187
  var __lookupStyles: string[];
1185
1188
  }
1186
- //#endregion
1187
- //#region src/styles/margin.d.ts
1188
- declare function marginStyle({
1189
- margin,
1190
- marginBlock,
1191
- marginInline,
1192
- marginTop,
1193
- marginRight,
1194
- marginBottom,
1195
- marginLeft
1196
- }: {
1189
+ declare function inlineSizeStyle({ inlineSize, minInlineSize, maxInlineSize }: {
1190
+ inlineSize?: string | number | boolean;
1191
+ minInlineSize?: string | number | boolean;
1192
+ maxInlineSize?: string | number | boolean;
1193
+ }): Record<string, string | string[]> | null;
1194
+ declare namespace inlineSizeStyle {
1195
+ var __lookupStyles: ("inlineSize" | "maxInlineSize" | "minInlineSize")[];
1196
+ }
1197
+ declare function marginStyle({ margin, marginTop, marginRight, marginBottom, marginLeft }: {
1197
1198
  margin?: string | number | boolean;
1198
- marginBlock?: string | number | boolean;
1199
- marginInline?: string | number | boolean;
1200
1199
  marginTop?: string | number | boolean;
1201
1200
  marginRight?: string | number | boolean;
1202
1201
  marginBottom?: string | number | boolean;
@@ -1205,11 +1204,9 @@ declare function marginStyle({
1205
1204
  declare namespace marginStyle {
1206
1205
  var __lookupStyles: string[];
1207
1206
  }
1208
- //#endregion
1209
- //#region src/styles/outline.d.ts
1210
1207
  interface OutlineStyleProps {
1211
1208
  outline?: string | boolean | number;
1212
- outlineOffset?: string | number;
1209
+ outlineOffset?: string | number | boolean;
1213
1210
  }
1214
1211
  /**
1215
1212
  * Generates CSS for outline property with optional offset.
@@ -1225,27 +1222,12 @@ interface OutlineStyleProps {
1225
1222
  *
1226
1223
  * @return CSS properties for outline and optionally outline-offset
1227
1224
  */
1228
- declare function outlineStyle({
1229
- outline,
1230
- outlineOffset
1231
- }: OutlineStyleProps): Record<string, string> | null;
1225
+ declare function outlineStyle({ outline, outlineOffset }: OutlineStyleProps): Record<string, string> | null;
1232
1226
  declare namespace outlineStyle {
1233
1227
  var __lookupStyles: string[];
1234
1228
  }
1235
- //#endregion
1236
- //#region src/styles/padding.d.ts
1237
- declare function paddingStyle({
1238
- padding,
1239
- paddingBlock,
1240
- paddingInline,
1241
- paddingTop,
1242
- paddingRight,
1243
- paddingBottom,
1244
- paddingLeft
1245
- }: {
1229
+ declare function paddingStyle({ padding, paddingTop, paddingRight, paddingBottom, paddingLeft }: {
1246
1230
  padding?: string | number | boolean;
1247
- paddingBlock?: string | number | boolean;
1248
- paddingInline?: string | number | boolean;
1249
1231
  paddingTop?: string | number | boolean;
1250
1232
  paddingRight?: string | number | boolean;
1251
1233
  paddingBottom?: string | number | boolean;
@@ -1254,8 +1236,6 @@ declare function paddingStyle({
1254
1236
  declare namespace paddingStyle {
1255
1237
  var __lookupStyles: string[];
1256
1238
  }
1257
- //#endregion
1258
- //#region src/styles/placement.d.ts
1259
1239
  interface PlacementStyleProps {
1260
1240
  place?: string | boolean;
1261
1241
  placeItems?: string | boolean;
@@ -1275,22 +1255,10 @@ interface PlacementStyleProps {
1275
1255
  * 2. placeItems, placeContent, align, justify (medium) — each sets 2 longhands
1276
1256
  * 3. alignItems, alignContent, justifyItems, justifyContent (highest) — each sets 1 longhand
1277
1257
  */
1278
- declare function placementStyle({
1279
- place,
1280
- placeItems,
1281
- placeContent,
1282
- align,
1283
- justify,
1284
- alignItems,
1285
- alignContent,
1286
- justifyItems,
1287
- justifyContent
1288
- }: PlacementStyleProps): Record<string, string> | null;
1258
+ declare function placementStyle({ place, placeItems, placeContent, align, justify, alignItems, alignContent, justifyItems, justifyContent }: PlacementStyleProps): Record<string, string> | null;
1289
1259
  declare namespace placementStyle {
1290
1260
  var __lookupStyles: string[];
1291
1261
  }
1292
- //#endregion
1293
- //#region src/styles/preset.d.ts
1294
1262
  interface PresetStyleProps {
1295
1263
  preset?: string | boolean;
1296
1264
  fontSize?: string | number;
@@ -1326,44 +1294,18 @@ interface PresetStyleProps {
1326
1294
  * - `font` is the recommended prop with special handling (monospace, boolean, fallback)
1327
1295
  * - `fontFamily` is a direct value without special handling
1328
1296
  */
1329
- declare function presetStyle({
1330
- preset,
1331
- fontSize,
1332
- lineHeight,
1333
- textTransform,
1334
- letterSpacing,
1335
- fontWeight,
1336
- fontStyle,
1337
- fontFamily,
1338
- font
1339
- }: PresetStyleProps): CSSMap | null;
1297
+ declare function presetStyle({ preset, fontSize, lineHeight, textTransform, letterSpacing, fontWeight, fontStyle, fontFamily, font }: PresetStyleProps): CSSMap | null;
1340
1298
  declare namespace presetStyle {
1341
1299
  var __lookupStyles: string[];
1342
1300
  }
1343
- //#endregion
1344
- //#region src/styles/radius.d.ts
1345
- declare function radiusStyle({
1346
- radius
1347
- }: {
1301
+ declare function radiusStyle({ radius }: {
1348
1302
  radius?: string | number | boolean;
1349
1303
  }): Record<string, string> | null;
1350
1304
  declare namespace radiusStyle {
1351
1305
  var __lookupStyles: string[];
1352
1306
  }
1353
- //#endregion
1354
- //#region src/styles/scrollMargin.d.ts
1355
- declare function scrollMarginStyle({
1356
- scrollMargin,
1357
- scrollMarginBlock,
1358
- scrollMarginInline,
1359
- scrollMarginTop,
1360
- scrollMarginRight,
1361
- scrollMarginBottom,
1362
- scrollMarginLeft
1363
- }: {
1307
+ declare function scrollMarginStyle({ scrollMargin, scrollMarginTop, scrollMarginRight, scrollMarginBottom, scrollMarginLeft }: {
1364
1308
  scrollMargin?: string | number | boolean;
1365
- scrollMarginBlock?: string | number | boolean;
1366
- scrollMarginInline?: string | number | boolean;
1367
1309
  scrollMarginTop?: string | number | boolean;
1368
1310
  scrollMarginRight?: string | number | boolean;
1369
1311
  scrollMarginBottom?: string | number | boolean;
@@ -1372,8 +1314,16 @@ declare function scrollMarginStyle({
1372
1314
  declare namespace scrollMarginStyle {
1373
1315
  var __lookupStyles: string[];
1374
1316
  }
1375
- //#endregion
1376
- //#region src/styles/scrollbar.d.ts
1317
+ declare function scrollPaddingStyle({ scrollPadding, scrollPaddingTop, scrollPaddingRight, scrollPaddingBottom, scrollPaddingLeft }: {
1318
+ scrollPadding?: string | number | boolean;
1319
+ scrollPaddingTop?: string | number | boolean;
1320
+ scrollPaddingRight?: string | number | boolean;
1321
+ scrollPaddingBottom?: string | number | boolean;
1322
+ scrollPaddingLeft?: string | number | boolean;
1323
+ }): Record<string, string> | null;
1324
+ declare namespace scrollPaddingStyle {
1325
+ var __lookupStyles: string[];
1326
+ }
1377
1327
  interface ScrollbarStyleProps {
1378
1328
  scrollbar?: string | boolean;
1379
1329
  overflow?: string;
@@ -1388,18 +1338,11 @@ interface ScrollbarStyleProps {
1388
1338
  * Note: `auto` is classified as a VALUE_KEYWORD by the parser, so it lands
1389
1339
  * in `values` rather than `mods`. Both locations are checked for robustness.
1390
1340
  */
1391
- declare function scrollbarStyle({
1392
- scrollbar,
1393
- overflow
1394
- }: ScrollbarStyleProps): Record<string, string> | null;
1341
+ declare function scrollbarStyle({ scrollbar, overflow }: ScrollbarStyleProps): Record<string, string> | null;
1395
1342
  declare namespace scrollbarStyle {
1396
1343
  var __lookupStyles: string[];
1397
1344
  }
1398
- //#endregion
1399
- //#region src/styles/shadow.d.ts
1400
- declare function shadowStyle({
1401
- shadow
1402
- }: {
1345
+ declare function shadowStyle({ shadow }: {
1403
1346
  shadow?: string | boolean;
1404
1347
  }): {
1405
1348
  'box-shadow': string;
@@ -1407,11 +1350,7 @@ declare function shadowStyle({
1407
1350
  declare namespace shadowStyle {
1408
1351
  var __lookupStyles: string[];
1409
1352
  }
1410
- //#endregion
1411
- //#region src/styles/transition.d.ts
1412
- declare function transitionStyle({
1413
- transition
1414
- }: {
1353
+ declare function transitionStyle({ transition }: {
1415
1354
  transition?: string;
1416
1355
  }): {
1417
1356
  transition: string;
@@ -1419,23 +1358,15 @@ declare function transitionStyle({
1419
1358
  declare namespace transitionStyle {
1420
1359
  var __lookupStyles: string[];
1421
1360
  }
1422
- //#endregion
1423
- //#region src/styles/width.d.ts
1424
1361
  interface WidthStyleProps {
1425
1362
  width?: string | number | boolean;
1426
1363
  minWidth?: string | number | boolean;
1427
1364
  maxWidth?: string | number | boolean;
1428
1365
  }
1429
- declare function widthStyle({
1430
- width,
1431
- minWidth,
1432
- maxWidth
1433
- }: WidthStyleProps): Record<string, string | string[]> | null;
1366
+ declare function widthStyle({ width, minWidth, maxWidth }: WidthStyleProps): Record<string, string | string[]> | null;
1434
1367
  declare namespace widthStyle {
1435
1368
  var __lookupStyles: string[];
1436
1369
  }
1437
- //#endregion
1438
- //#region src/styles/predefined.d.ts
1439
1370
  /**
1440
1371
  * Exported object containing wrapped predefined style handlers.
1441
1372
  * Users can import and call these to extend or delegate to built-in behavior.
@@ -1460,16 +1391,6 @@ declare namespace widthStyle {
1460
1391
  * ```
1461
1392
  */
1462
1393
  declare const styleHandlers: {
1463
- readonly border: typeof borderStyle;
1464
- readonly color: typeof colorStyle;
1465
- readonly display: typeof displayStyle;
1466
- readonly fade: typeof fadeStyle;
1467
- readonly fill: typeof fillStyle;
1468
- readonly svgFill: typeof svgFillStyle;
1469
- readonly flow: typeof flowStyle;
1470
- readonly gap: typeof gapStyle;
1471
- readonly height: typeof heightStyle;
1472
- readonly inset: typeof insetStyle;
1473
1394
  readonly margin: typeof marginStyle;
1474
1395
  readonly outline: typeof outlineStyle;
1475
1396
  readonly padding: typeof paddingStyle;
@@ -1477,13 +1398,36 @@ declare const styleHandlers: {
1477
1398
  readonly preset: typeof presetStyle;
1478
1399
  readonly radius: typeof radiusStyle;
1479
1400
  readonly scrollMargin: typeof scrollMarginStyle;
1401
+ readonly scrollPadding: typeof scrollPaddingStyle;
1480
1402
  readonly scrollbar: typeof scrollbarStyle;
1481
1403
  readonly shadow: typeof shadowStyle;
1482
1404
  readonly transition: typeof transitionStyle;
1483
1405
  readonly width: typeof widthStyle;
1406
+ readonly blockBorder: StyleHandler<Partial<Record<"blockBorder", string | number | boolean | undefined>>>;
1407
+ readonly inlineBorder: StyleHandler<Partial<Record<"inlineBorder", string | number | boolean | undefined>>>;
1408
+ readonly blockScrollPadding: StyleHandler<Partial<Record<"blockScrollPadding", string | number | boolean | undefined>>>;
1409
+ readonly inlineScrollPadding: StyleHandler<Partial<Record<"inlineScrollPadding", string | number | boolean | undefined>>>;
1410
+ readonly blockScrollMargin: StyleHandler<Partial<Record<"blockScrollMargin", string | number | boolean | undefined>>>;
1411
+ readonly inlineScrollMargin: StyleHandler<Partial<Record<"inlineScrollMargin", string | number | boolean | undefined>>>;
1412
+ readonly blockInset: StyleHandler<Partial<Record<"blockInset", string | number | boolean | undefined>>>;
1413
+ readonly inlineInset: StyleHandler<Partial<Record<"inlineInset", string | number | boolean | undefined>>>;
1414
+ readonly blockMargin: StyleHandler<Partial<Record<"blockMargin", string | number | boolean | undefined>>>;
1415
+ readonly inlineMargin: StyleHandler<Partial<Record<"inlineMargin", string | number | boolean | undefined>>>;
1416
+ readonly blockPadding: StyleHandler<Partial<Record<"blockPadding", string | number | boolean | undefined>>>;
1417
+ readonly inlinePadding: StyleHandler<Partial<Record<"inlinePadding", string | number | boolean | undefined>>>;
1418
+ readonly blockSize: typeof blockSizeStyle;
1419
+ readonly border: typeof borderStyle;
1420
+ readonly color: typeof colorStyle;
1421
+ readonly display: typeof displayStyle;
1422
+ readonly fade: typeof fadeStyle;
1423
+ readonly fill: typeof fillStyle;
1424
+ readonly svgFill: typeof svgFillStyle;
1425
+ readonly flow: typeof flowStyle;
1426
+ readonly gap: typeof gapStyle;
1427
+ readonly height: typeof heightStyle;
1428
+ readonly inset: typeof insetStyle;
1429
+ readonly inlineSize: typeof inlineSizeStyle;
1484
1430
  };
1485
- //#endregion
1486
- //#region src/styles/define-handler.d.ts
1487
1431
  /**
1488
1432
  * Declare a multi-dependency style handler with its dependency names inferred
1489
1433
  * into the handler's parameter type.
@@ -1512,8 +1456,6 @@ declare const styleHandlers: {
1512
1456
  * know are pulled into their handler's chunk automatically at registration.
1513
1457
  */
1514
1458
  declare function defineHandler<const TDeps extends readonly string[]>(deps: TDeps, handler: (props: Partial<Record<TDeps[number], ResolvedStyleValue>>) => StyleHandlerResult): [readonly string[], RawStyleHandler];
1515
- //#endregion
1516
- //#region src/compute-styles.d.ts
1517
1459
  interface ComputeStylesResult {
1518
1460
  className: string;
1519
1461
  /** CSS text to emit as an inline <style> tag (RSC mode only). */
@@ -1547,8 +1489,6 @@ interface ComputeStylesOptions {
1547
1489
  * @param options - Optional SSR collector override
1548
1490
  */
1549
1491
  declare function computeStyles(styles: Styles | undefined, options?: ComputeStylesOptions): ComputeStylesResult;
1550
- //#endregion
1551
- //#region src/injector/chunk-sheet-registry.d.ts
1552
1492
  /**
1553
1493
  * Global registry mapping CSS content hashes to shared constructable
1554
1494
  * CSSStyleSheet objects with reference counting.
@@ -1582,8 +1522,6 @@ declare class ChunkSheetRegistry {
1582
1522
  }
1583
1523
  /** Module-level singleton shared across the entire application. */
1584
1524
  declare const chunkSheetRegistry: ChunkSheetRegistry;
1585
- //#endregion
1586
- //#region src/injector/index.d.ts
1587
1525
  /**
1588
1526
  * Inject styles and return className with dispose function
1589
1527
  */
@@ -1705,7 +1643,9 @@ declare function func(name: string, definition: FunctionDefinition, options?: {
1705
1643
  weak?: boolean;
1706
1644
  }): void;
1707
1645
  /**
1708
- * Get CSS text from all sheets (for SSR)
1646
+ * Get the CSS text of every sheet the injector holds. Reads the live
1647
+ * stylesheets, so it needs a DOM: on the server, collect CSS with
1648
+ * `ServerStyleCollector` from `@tenphi/tasty/ssr` instead.
1709
1649
  */
1710
1650
  declare function getCSSText(options?: {
1711
1651
  root?: Document | ShadowRoot;
@@ -1770,64 +1710,42 @@ declare function destroy(root?: Document | ShadowRoot): void;
1770
1710
  * Create a new isolated injector instance
1771
1711
  */
1772
1712
  declare function createInjector(config?: Partial<StyleInjectorConfig>): StyleInjector;
1773
- //#endregion
1774
- //#region src/utils/filter-base-props.d.ts
1713
+ declare const basePropNames: readonly ["role", "title", "inert", "as", "element", "css", "qa", "mods", "qaVal", "hidden", "isHidden", "disabled", "isDisabled", "isChecked", "children", "style", "tokens", "theme", "className", "href", "target", "tabIndex"];
1714
+ declare const ignoredEventPropNames: readonly ["onPress", "onHoverStart", "onHoverEnd", "onPressStart", "onPressEnd"];
1775
1715
  interface PropsFilterOptions {
1776
1716
  labelable?: boolean;
1777
- propNames?: Set<string>;
1717
+ propNames?: ReadonlySet<string>;
1778
1718
  eventProps?: boolean;
1779
1719
  }
1780
- /**
1781
- * Filters out all props that aren't valid DOM props or defined via override prop obj.
1720
+ type ExplicitPropName<O> = O extends {
1721
+ propNames?: ReadonlySet<infer P>;
1722
+ } ? Extract<P, string> : never;
1723
+ type EventPropsEnabled<O> = O extends {
1724
+ eventProps?: infer E;
1725
+ } ? Extract<E, boolean> : never;
1726
+ type Characters<S extends string> = S extends `${infer First}${infer Rest}` ? First | Characters<Rest> : never;
1727
+ /** Models DOM-style event keys and the runtime's ignored event names. */
1728
+ 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;
1729
+ type ExplicitNumericPropName<K, O> = K extends number ? `${K}` extends ExplicitPropName<O> ? K : never : never;
1730
+ type RetainedPropName<T, O> = 'id' | (typeof basePropNames)[number] | `aria-${string}` | `data-${string}` | ExplicitPropName<O> | (true extends EventPropsEnabled<O> ? EventPropName<Extract<keyof T, string>> : never);
1731
+ 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;
1732
+ /**
1733
+ * Keeps the built-in base props, ARIA/data attributes, and explicitly allowed props.
1734
+ * DOM-style event names are kept only with `eventProps: true`, except the ignored
1735
+ * interaction events (which can still be allowed explicitly via `propNames`).
1736
+ * The return type preserves the input value types only for potentially retained
1737
+ * keys. Props remain optional because only own enumerable string keys are copied.
1738
+ * Use a literal union (e.g. `new Set(['name', 'type'] as const)`) for `propNames`
1739
+ * to keep precise types; a `Set<string>` can potentially retain any string key.
1782
1740
  * @param props - The component props to be filtered.
1783
- * @param opts - Props to override.
1741
+ * @param opts - Additional prop names and event forwarding options.
1784
1742
  */
1785
- declare function filterBaseProps<T extends object>(props: T, opts?: PropsFilterOptions): Partial<T>;
1786
- //#endregion
1787
- //#region src/utils/colors.d.ts
1743
+ declare function filterBaseProps<T extends object>(props: T, opts?: undefined): FilteredProps<T, undefined>;
1744
+ declare function filterBaseProps<T extends object, O extends PropsFilterOptions | undefined = PropsFilterOptions>(props: T, opts: O): FilteredProps<T, O>;
1788
1745
  declare function color$1(name: string, opacity?: number): string;
1789
- //#endregion
1790
- //#region src/utils/mod-attrs.d.ts
1791
- declare const _modAttrs: (firstArg: Record<string, ModValue> | undefined, secondArg?: unknown) => Record<string, string> | null;
1792
- //#endregion
1793
- //#region src/utils/dotize.d.ts
1794
- declare const dotize: {
1795
- valTypes: {
1796
- none: string;
1797
- primitive: string;
1798
- object: string;
1799
- array: string;
1800
- };
1801
- getValType: (val: any) => string | undefined;
1802
- getPathType: (arrPath: any) => string[];
1803
- isUndefined: (obj: any) => obj is undefined;
1804
- isNumber: (f: any) => boolean;
1805
- isEmptyObj: (obj: any) => boolean;
1806
- isPlainObject: (obj: any) => boolean;
1807
- isNotObject: (obj: any) => boolean;
1808
- isEmptyArray: (arr: any) => boolean;
1809
- isNotArray: (arr: any) => boolean;
1810
- removeEmptyArrayItem: (arr: any) => any;
1811
- getFieldName: (field: any, prefix: any, isRoot: any, isArrayItem: any, isArray: any) => string;
1812
- startsWith: (val: any, valToSearch: any) => boolean;
1813
- convert: (obj: any, prefix?: string) => any;
1814
- backward: (obj: any, prefix: any) => any;
1815
- };
1816
- //#endregion
1817
- //#region src/utils/resolve-recipes.d.ts
1818
- /**
1819
- * Resolve all `recipe` style properties in a styles object.
1820
- *
1821
- * Handles both top-level and sub-element recipe references.
1822
- * Returns the same object reference if no recipes are present anywhere
1823
- * (zero overhead for the common case).
1824
- *
1825
- * @param styles - The styles object potentially containing `recipe` keys
1826
- * @returns Resolved styles with recipe values merged in, or the original object if unchanged
1827
- */
1746
+ declare function modAttrs(map: AllBaseProps['mods']): Record<string, string> | null;
1747
+ /** Resolve recipe references against the globally configured recipe map. */
1828
1748
  declare function resolveRecipes(styles: Styles): Styles;
1829
- //#endregion
1830
- //#region src/utils/process-tokens.d.ts
1831
1749
  /**
1832
1750
  * Process tokens object into inline style properties.
1833
1751
  * - `$name` -> `--name` with the parsed value
@@ -1837,8 +1755,6 @@ declare function resolveRecipes(styles: Styles): Styles;
1837
1755
  * @returns CSSProperties object or undefined if no tokens to process
1838
1756
  */
1839
1757
  declare function processTokens(tokens: Tokens | undefined): CSSProperties$1 | undefined;
1840
- //#endregion
1841
- //#region src/debug.d.ts
1842
1758
  declare global {
1843
1759
  interface Window {
1844
1760
  tastyDebug?: typeof tastyDebug;
@@ -1928,6 +1844,5 @@ declare const tastyDebug: {
1928
1844
  help(): void;
1929
1845
  install(): void;
1930
1846
  };
1931
- //#endregion
1932
- export { resolveFunctionColor as $, Mods as $t, isPropertyDefined as A, TastyComponentPropsWithDefaults as At, defineHandler as B, BaseProps as Bt, getCSSTextForNode as C, DEFAULT_NAME_PREFIX as Cn, ModPropsInput as Ct, injectGlobal as D, ResolveTokenProps as Dt, inject as E, ResolveModProps as Et, ChunkSheetRegistry as F, TokenPropsInput as Ft, CHUNK_NAMES as G, BlockStyleProps as Gt, ChunkInfo as H, BaseStyleProps as Ht, chunkSheetRegistry as I, VariantMap as It, DISPLAY_CHUNK_STYLES as J, DimensionStyleProps as Jt, ChunkName as K, ColorStyleProps as Kt, ComputeStylesOptions as L, WithVariant as Lt, ownKeyframes as M, TastyElementProps as Mt, property as N, TastyPolymorphicComponent as Nt, injectRawCSS as O, SubElementDefinition as Ot, touch as P, TastyProps as Pt, STYLE_TO_CHUNK as Q, ModValue as Qt, ComputeStylesResult as R, tasty as Rt, getCSSText as S, TEXT_STYLES as Sn, ModPropDef as St, holdKeyframes as T, ResolveModPropDef as Tt, categorizeStyleKeys as U, BlockInnerStyleProps as Ut, styleHandlers as V, BasePropsWithoutChildren as Vt, APPEARANCE_CHUNK_STYLES as W, BlockOuterStyleProps as Wt, LAYOUT_CHUNK_STYLES as X, FlowStyleProps as Xt, FONT_CHUNK_STYLES as Y, ExtraBaseStyleProps as Yt, POSITION_CHUNK_STYLES as Z, InnerStyleProps as Zt, createInjector as _, DIMENSION_STYLES as _n, UseStylesResult as _t, DebugOptions as a, TastyCustomProps as an, getDisplayName as at, func as b, OUTER_STYLES as bn, Element$1 as bt, tastyDebug as c, TextStyleProps as cn, UseFunctionOptions as ct, dotize as d, BASE_STYLES as dn, useFontFace as dt, OuterStyleProps as en, createColorFunc as et, _modAttrs as f, BLOCK_INNER_STYLES as fn, UsePropertyOptions as ft, counterStyle as g, CONTAINER_STYLES as gn, useGlobalStyles as gt, cleanup as h, COLOR_STYLES as hn, useRawCSS as ht, DebugChunkInfo as i, TastyBaseStylePropNames as in, okhslPlugin as it, keyframes as j, TastyElementOptions as jt, injector as k, SubElementProps as kt, processTokens as l, TokenValue as ln, useFunction as lt, filterBaseProps as m, BLOCK_STYLES as mn, useKeyframes as mt, CacheStatus as n, ShortGridStyles as nn, okhstPlugin as nt, InspectResult as o, TastyExtensionConfig as on, TastyBatchProvider as ot, color$1 as p, BLOCK_OUTER_STYLES as pn, useProperty as pt, DIMENSION_CHUNK_STYLES as q, ContainerStyleProps as qt, ChunkBreakdown as r, TagName as rn, okhslFunction as rt, Summary as s, TastyThemeNames as sn, TastyBatchProviderProps as st, CSSOptions as t, PositionStyleProps as tn, okhstFunction as tt, resolveRecipes as u, Tokens as un, useCounterStyle as ut, destroy as v, FLOW_STYLES as vn, useStyles as vt, getRawCSSText as w, DEFAULT_ZERO_NAME_PREFIX as wn, ResolveAsProps as wt, gc as x, POSITION_STYLES as xn, ElementsDefinition as xt, fontFace as y, INNER_STYLES as yn, AllBasePropsWithMods as yt, computeStyles as z, AllBaseProps as zt };
1933
- //# sourceMappingURL=index-Bm9ltvdH.d.ts.map
1847
+ export { createColorFunc as $, ModValue as $t, keyframes as A, hexToRgb as An, TastyComponentPropsWithDefaults as At, styleHandlers as B, AllBaseProps as Bt, getRawCSSText as C, TEXT_STYLES as Cn, ModPropsInput as Ct, injectRawCSS as D, isSelector as Dn, ResolveTokenProps as Dt, injectGlobal as E, hasStylesGenerated as En, ResolveModProps as Et, chunkSheetRegistry as F, TastyProps as Ft, ChunkName as G, BlockOuterStyleProps as Gt, categorizeStyleKeys as H, BasePropsWithoutChildren as Ht, ComputeStylesOptions as I, TokenPropsInput as It, FONT_CHUNK_STYLES as J, ContainerStyleProps as Jt, DIMENSION_CHUNK_STYLES as K, BlockStyleProps as Kt, ComputeStylesResult as L, VariantMap as Lt, property as M, strToRgb as Mn, TastyElementProps as Mt, touch as N, TastyExtensionProps as Nt, injector as O, getNamedColorHex as On, SubElementDefinition as Ot, ChunkSheetRegistry as P, TastyPolymorphicComponent as Pt, resolveFunctionColor as Q, InnerStyleProps as Qt, computeStyles as R, WithVariant as Rt, getCSSTextForNode as S, POSITION_STYLES as Sn, ModPropDef as St, inject as T, DEFAULT_ZERO_NAME_PREFIX as Tn, ResolveModPropDef as Tt, APPEARANCE_CHUNK_STYLES as U, BaseStyleProps as Ut, ChunkInfo as V, BaseProps as Vt, CHUNK_NAMES as W, BlockInnerStyleProps as Wt, POSITION_CHUNK_STYLES as X, ExtraBaseStyleProps as Xt, LAYOUT_CHUNK_STYLES as Y, DimensionStyleProps as Yt, STYLE_TO_CHUNK as Z, FlowStyleProps as Zt, destroy as _, CONTAINER_STYLES as _n, useStyles as _t, DebugOptions as a, TastyBaseStylePropNames as an, TastyBatchProvider as at, gc as b, INNER_STYLES as bn, Element$1 as bt, tastyDebug as c, TastyThemeNames as cn, useFunction as ct, modAttrs as d, Tokens as dn, UsePropertyOptions as dt, Mods as en, okhstFunction as et, color$1 as f, BASE_STYLES as fn, useProperty as ft, createInjector as g, COLOR_STYLES as gn, UseStylesResult as gt, counterStyle as h, BLOCK_STYLES as hn, useGlobalStyles as ht, DebugChunkInfo as i, TagName as in, getDisplayName as it, ownKeyframes as j, hslToRgbValues as jn, TastyElementOptions as jt, isPropertyDefined as k, getRgbValuesFromRgbaString as kn, SubElementProps as kt, processTokens as l, TextStyleProps as ln, useCounterStyle as lt, cleanup as m, BLOCK_OUTER_STYLES as mn, useRawCSS as mt, CacheStatus as n, PositionStyleProps as nn, okhslFunction as nt, InspectResult as o, TastyCustomProps as on, TastyBatchProviderProps as ot, filterBaseProps as p, BLOCK_INNER_STYLES as pn, useKeyframes as pt, DISPLAY_CHUNK_STYLES as q, ColorStyleProps as qt, ChunkBreakdown as r, ShortGridStyles as rn, okhslPlugin as rt, Summary as s, TastyExtensionConfig as sn, UseFunctionOptions as st, CSSOptions as t, OuterStyleProps as tn, okhstPlugin as tt, resolveRecipes as u, TokenValue as un, useFontFace as ut, fontFace as v, DIMENSION_STYLES as vn, AllBasePropsWithMods as vt, holdKeyframes as w, DEFAULT_NAME_PREFIX as wn, ResolveAsProps as wt, getCSSText as x, OUTER_STYLES as xn, ElementsDefinition as xt, func as y, FLOW_STYLES as yn, ComponentStatics as yt, defineHandler as z, tasty as zt };
1848
+ //# sourceMappingURL=index-szujmf6W.d.ts.map