@ngrok/mantle 0.73.1 → 0.73.2

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 (96) hide show
  1. package/dist/accordion.d.ts +1 -1
  2. package/dist/agent.json +1 -1
  3. package/dist/alert-dialog.d.ts +8 -8
  4. package/dist/alert.d.ts +3 -3
  5. package/dist/anchor.d.ts +1 -1
  6. package/dist/{as-child-C2PttRwz.d.ts → as-child-CpZKMqTE.d.ts} +1 -1
  7. package/dist/badge.d.ts +2 -2
  8. package/dist/{button-CoGmk7_d.d.ts → button-DbHFERMB.d.ts} +6 -6
  9. package/dist/button.d.ts +3 -3
  10. package/dist/card.d.ts +1 -1
  11. package/dist/checkbox.d.ts +1 -1
  12. package/dist/code-block.d.ts +3 -3
  13. package/dist/code-block_highlight-utils.d.ts +1 -1
  14. package/dist/code.d.ts +1 -1
  15. package/dist/color.d.ts +1 -1
  16. package/dist/combobox.d.ts +2 -2
  17. package/dist/command.d.ts +4 -4
  18. package/dist/data-table.d.ts +3 -3
  19. package/dist/{deep-non-nullable-CT7hWCFG.d.ts → deep-non-nullable-Xu7ckQM6.d.ts} +1 -1
  20. package/dist/description-list.d.ts +1 -1
  21. package/dist/dialog.d.ts +2 -2
  22. package/dist/{direction-CVntIxOS.d.ts → direction-D9IZ1wW6.d.ts} +1 -1
  23. package/dist/{dropdown-menu-DVvNlA72.d.ts → dropdown-menu-CvOiQUSZ.d.ts} +2 -2
  24. package/dist/dropdown-menu.d.ts +1 -1
  25. package/dist/empty.d.ts +2 -2
  26. package/dist/field-context-B7Z1cmZW.js +2 -0
  27. package/dist/field-context-B7Z1cmZW.js.map +1 -0
  28. package/dist/field.d.ts +138 -67
  29. package/dist/field.js +1 -1
  30. package/dist/field.js.map +1 -1
  31. package/dist/hooks.d.ts +3 -3
  32. package/dist/hooks.js +1 -1
  33. package/dist/{icon-D_BMDi_q.d.ts → icon-BJ7q2RXZ.d.ts} +2 -2
  34. package/dist/{icon-button-Dty-yfE2.d.ts → icon-button-BDTb-lxs.d.ts} +3 -3
  35. package/dist/icon.d.ts +3 -3
  36. package/dist/icons.d.ts +3 -3
  37. package/dist/{in-view-DdIrfU4u.d.ts → in-view-BUgyu-Tk.d.ts} +1 -1
  38. package/dist/{in-view-BLZVEGFC.js → in-view-CeVqeGbv.js} +1 -1
  39. package/dist/{in-view-BLZVEGFC.js.map → in-view-CeVqeGbv.js.map} +1 -1
  40. package/dist/{index-TI92Xpg5.d.ts → index-BbZBDzPh.d.ts} +1 -1
  41. package/dist/{index-j46YISoN.d.ts → index-BhlxYL_y.d.ts} +1 -1
  42. package/dist/{index-DIBURJqf.d.ts → index-CWXKBva-.d.ts} +3 -3
  43. package/dist/{index-CVk4t5hk.d.ts → index-DS_4n2eb.d.ts} +1 -1
  44. package/dist/input.d.ts +4 -4
  45. package/dist/input.js +1 -1
  46. package/dist/{is-input-CEEoHxXN.js → is-input-CtUHJGgL.js} +1 -1
  47. package/dist/{is-input-CEEoHxXN.js.map → is-input-CtUHJGgL.js.map} +1 -1
  48. package/dist/llms.txt +1 -1
  49. package/dist/media-object.d.ts +1 -1
  50. package/dist/multi-select.d.ts +2 -2
  51. package/dist/multi-select.js +1 -1
  52. package/dist/multi-select.js.map +1 -1
  53. package/dist/otp-input.d.ts +2 -2
  54. package/dist/otp-input.js +1 -1
  55. package/dist/otp-input.js.map +1 -1
  56. package/dist/pagination.d.ts +3 -3
  57. package/dist/pagination.js +1 -1
  58. package/dist/{primitive-Ed9cel2r.d.ts → primitive-qkxTYBUY.d.ts} +1 -1
  59. package/dist/radio-group.d.ts +1 -1
  60. package/dist/radio-group.js +1 -1
  61. package/dist/radio-group.js.map +1 -1
  62. package/dist/{resolve-pre-rendered-props-DxvamgE6.d.ts → resolve-pre-rendered-props-BONSCwYA.d.ts} +1 -1
  63. package/dist/sandboxed-on-click.d.ts +1 -1
  64. package/dist/select-B7orOUPj.js +2 -0
  65. package/dist/select-B7orOUPj.js.map +1 -0
  66. package/dist/{select-8ymlL8kC.d.ts → select-SZFFzYs0.d.ts} +3 -3
  67. package/dist/select.d.ts +1 -1
  68. package/dist/select.js +1 -1
  69. package/dist/separator.d.ts +1 -1
  70. package/dist/sheet.d.ts +2 -2
  71. package/dist/slider.d.ts +17 -0
  72. package/dist/slider.js +1 -1
  73. package/dist/slider.js.map +1 -1
  74. package/dist/slot.d.ts +1 -1
  75. package/dist/split-button.d.ts +3 -3
  76. package/dist/{svg-only-CLbMy439.d.ts → svg-only-D4uqM1OC.d.ts} +2 -2
  77. package/dist/switch.d.ts +1 -1
  78. package/dist/{table-BWxS7pXj.d.ts → table-CjSQkfZe.d.ts} +1 -1
  79. package/dist/table.d.ts +1 -1
  80. package/dist/tabs.js +1 -1
  81. package/dist/text-area.d.ts +1 -1
  82. package/dist/theme.d.ts +2 -2
  83. package/dist/{themes-f2W5S6xS.d.ts → themes-FPux5kIu.d.ts} +1 -1
  84. package/dist/toast.d.ts +3 -3
  85. package/dist/{types-DnghL1WE.d.ts → types-QKZ5fvaQ.d.ts} +1 -1
  86. package/dist/types.d.ts +5 -5
  87. package/dist/{use-prefers-reduced-motion-YUurmkwx.js → use-prefers-reduced-motion-Bpx8G3UT.js} +1 -1
  88. package/dist/{use-prefers-reduced-motion-YUurmkwx.js.map → use-prefers-reduced-motion-Bpx8G3UT.js.map} +1 -1
  89. package/dist/utils.d.ts +2 -2
  90. package/dist/utils.js +1 -1
  91. package/dist/{validation-DF1z7YDr.d.ts → validation-CBSOmooP.d.ts} +1 -1
  92. package/dist/{variant-props-B4io4uA_.d.ts → variant-props-BZbM__kQ.d.ts} +2 -2
  93. package/dist/{with-style-props-CW8buMhK.d.ts → with-style-props-xzZLnIrF.d.ts} +1 -1
  94. package/package.json +1 -1
  95. package/dist/select-BBB_e15a.js +0 -2
  96. package/dist/select-BBB_e15a.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { n as IconProps } from "./icon-D_BMDi_q.js";
1
+ import { n as IconProps } from "./icon-BJ7q2RXZ.js";
2
2
  import * as AccordionPrimitive from "@radix-ui/react-accordion";
3
3
  import * as _$react from "react";
4
4
  import { ComponentPropsWithoutRef } from "react";
package/dist/agent.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngrok/mantle",
3
- "version": "0.73.1",
3
+ "version": "0.73.2",
4
4
  "origin": "https://mantle.ngrok.com",
5
5
  "endpoints": {
6
6
  "docs": "https://mantle.ngrok.com/",
@@ -1,7 +1,7 @@
1
- import { t as SvgAttributes } from "./types-DnghL1WE.js";
2
- import { t as DeepNonNullable } from "./deep-non-nullable-CT7hWCFG.js";
3
- import { t as WithAsChild } from "./as-child-C2PttRwz.js";
4
- import { t as Root$1 } from "./primitive-Ed9cel2r.js";
1
+ import { t as SvgAttributes } from "./types-QKZ5fvaQ.js";
2
+ import { t as DeepNonNullable } from "./deep-non-nullable-Xu7ckQM6.js";
3
+ import { t as WithAsChild } from "./as-child-CpZKMqTE.js";
4
+ import { t as Root$1 } from "./primitive-qkxTYBUY.js";
5
5
  import * as _$react from "react";
6
6
  import { ComponentProps, ReactNode } from "react";
7
7
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
@@ -205,7 +205,7 @@ declare const AlertDialog: {
205
205
  readonly Action: _$react.ForwardRefExoticComponent<(Omit<_$react.ClassAttributes<HTMLButtonElement> & _$react.ButtonHTMLAttributes<HTMLButtonElement> & Partial<DeepNonNullable<_$class_variance_authority0.VariantProps<(props?: ({
206
206
  appearance?: "filled" | "link" | "ghost" | "outlined" | null | undefined;
207
207
  isLoading?: boolean | null | undefined;
208
- priority?: "danger" | "neutral" | "default" | null | undefined;
208
+ priority?: "default" | "danger" | "neutral" | null | undefined;
209
209
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string>>> & {
210
210
  icon?: ReactNode;
211
211
  iconPlacement?: "start" | "end";
@@ -215,7 +215,7 @@ declare const AlertDialog: {
215
215
  }, "ref"> | Omit<_$react.ClassAttributes<HTMLButtonElement> & _$react.ButtonHTMLAttributes<HTMLButtonElement> & Partial<DeepNonNullable<_$class_variance_authority0.VariantProps<(props?: ({
216
216
  appearance?: "filled" | "link" | "ghost" | "outlined" | null | undefined;
217
217
  isLoading?: boolean | null | undefined;
218
- priority?: "danger" | "neutral" | "default" | null | undefined;
218
+ priority?: "default" | "danger" | "neutral" | null | undefined;
219
219
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string>>> & {
220
220
  icon?: ReactNode;
221
221
  iconPlacement?: "start" | "end";
@@ -300,7 +300,7 @@ declare const AlertDialog: {
300
300
  readonly Cancel: _$react.ForwardRefExoticComponent<(Omit<_$react.ClassAttributes<HTMLButtonElement> & _$react.ButtonHTMLAttributes<HTMLButtonElement> & Partial<DeepNonNullable<_$class_variance_authority0.VariantProps<(props?: ({
301
301
  appearance?: "filled" | "link" | "ghost" | "outlined" | null | undefined;
302
302
  isLoading?: boolean | null | undefined;
303
- priority?: "danger" | "neutral" | "default" | null | undefined;
303
+ priority?: "default" | "danger" | "neutral" | null | undefined;
304
304
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string>>> & {
305
305
  icon?: ReactNode;
306
306
  iconPlacement?: "start" | "end";
@@ -310,7 +310,7 @@ declare const AlertDialog: {
310
310
  }, "ref"> | Omit<_$react.ClassAttributes<HTMLButtonElement> & _$react.ButtonHTMLAttributes<HTMLButtonElement> & Partial<DeepNonNullable<_$class_variance_authority0.VariantProps<(props?: ({
311
311
  appearance?: "filled" | "link" | "ghost" | "outlined" | null | undefined;
312
312
  isLoading?: boolean | null | undefined;
313
- priority?: "danger" | "neutral" | "default" | null | undefined;
313
+ priority?: "default" | "danger" | "neutral" | null | undefined;
314
314
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string>>> & {
315
315
  icon?: ReactNode;
316
316
  iconPlacement?: "start" | "end";
package/dist/alert.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { t as SvgAttributes } from "./types-DnghL1WE.js";
2
- import { t as WithAsChild } from "./as-child-C2PttRwz.js";
3
- import { n as IconButtonProps } from "./icon-button-Dty-yfE2.js";
1
+ import { t as SvgAttributes } from "./types-QKZ5fvaQ.js";
2
+ import { t as WithAsChild } from "./as-child-CpZKMqTE.js";
3
+ import { n as IconButtonProps } from "./icon-button-BDTb-lxs.js";
4
4
  import * as _$react from "react";
5
5
  import { ComponentProps, HTMLAttributes, ReactNode } from "react";
6
6
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
package/dist/anchor.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as WithAsChild } from "./as-child-C2PttRwz.js";
1
+ import { t as WithAsChild } from "./as-child-CpZKMqTE.js";
2
2
  import * as _$react from "react";
3
3
  import { ComponentProps, ReactNode } from "react";
4
4
 
@@ -28,4 +28,4 @@ type WithAsChild = {
28
28
  */
29
29
  //#endregion
30
30
  export { WithAsChild as t };
31
- //# sourceMappingURL=as-child-C2PttRwz.d.ts.map
31
+ //# sourceMappingURL=as-child-CpZKMqTE.d.ts.map
package/dist/badge.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { t as WithAsChild } from "./as-child-C2PttRwz.js";
2
- import { t as Color } from "./index-CVk4t5hk.js";
1
+ import { t as WithAsChild } from "./as-child-CpZKMqTE.js";
2
+ import { t as Color } from "./index-DS_4n2eb.js";
3
3
  import { ComponentProps, ReactNode } from "react";
4
4
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
5
5
 
@@ -1,5 +1,5 @@
1
- import { t as DeepNonNullable } from "./deep-non-nullable-CT7hWCFG.js";
2
- import { t as VariantProps$1 } from "./variant-props-B4io4uA_.js";
1
+ import { t as DeepNonNullable } from "./deep-non-nullable-Xu7ckQM6.js";
2
+ import { t as VariantProps$1 } from "./variant-props-BZbM__kQ.js";
3
3
  import * as _$react from "react";
4
4
  import { ComponentProps, ReactNode } from "react";
5
5
  import * as _$class_variance_authority0 from "class-variance-authority";
@@ -9,7 +9,7 @@ import * as _$class_variance_authority_types0 from "class-variance-authority/typ
9
9
  declare const buttonVariants: (props?: ({
10
10
  appearance?: "filled" | "link" | "ghost" | "outlined" | null | undefined;
11
11
  isLoading?: boolean | null | undefined;
12
- priority?: "danger" | "neutral" | "default" | null | undefined;
12
+ priority?: "default" | "danger" | "neutral" | null | undefined;
13
13
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
14
14
  type ButtonVariants = VariantProps$1<typeof buttonVariants>;
15
15
  /**
@@ -93,7 +93,7 @@ type ButtonProps = ComponentProps<"button"> & ButtonVariants & {
93
93
  declare const Button: _$react.ForwardRefExoticComponent<(Omit<_$react.ClassAttributes<HTMLButtonElement> & _$react.ButtonHTMLAttributes<HTMLButtonElement> & Partial<DeepNonNullable<_$class_variance_authority0.VariantProps<(props?: ({
94
94
  appearance?: "filled" | "link" | "ghost" | "outlined" | null | undefined;
95
95
  isLoading?: boolean | null | undefined;
96
- priority?: "danger" | "neutral" | "default" | null | undefined;
96
+ priority?: "default" | "danger" | "neutral" | null | undefined;
97
97
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string>>> & {
98
98
  /**
99
99
  * An icon to render inside the button. If the `state` is `"pending"`, then
@@ -139,7 +139,7 @@ declare const Button: _$react.ForwardRefExoticComponent<(Omit<_$react.ClassAttri
139
139
  }, "ref"> | Omit<_$react.ClassAttributes<HTMLButtonElement> & _$react.ButtonHTMLAttributes<HTMLButtonElement> & Partial<DeepNonNullable<_$class_variance_authority0.VariantProps<(props?: ({
140
140
  appearance?: "filled" | "link" | "ghost" | "outlined" | null | undefined;
141
141
  isLoading?: boolean | null | undefined;
142
- priority?: "danger" | "neutral" | "default" | null | undefined;
142
+ priority?: "default" | "danger" | "neutral" | null | undefined;
143
143
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string>>> & {
144
144
  /**
145
145
  * An icon to render inside the button. If the `state` is `"pending"`, then
@@ -172,4 +172,4 @@ declare const Button: _$react.ForwardRefExoticComponent<(Omit<_$react.ClassAttri
172
172
  }, "ref">) & _$react.RefAttributes<HTMLButtonElement>>;
173
173
  //#endregion
174
174
  export { ButtonProps as n, Button as t };
175
- //# sourceMappingURL=button-CoGmk7_d.d.ts.map
175
+ //# sourceMappingURL=button-DbHFERMB.d.ts.map
package/dist/button.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as IconButtonProps, t as IconButton } from "./icon-button-Dty-yfE2.js";
2
- import { n as ButtonProps, t as Button } from "./button-CoGmk7_d.js";
3
- import { n as ButtonGroupProps, t as ButtonGroup } from "./index-DIBURJqf.js";
1
+ import { n as IconButtonProps, t as IconButton } from "./icon-button-BDTb-lxs.js";
2
+ import { n as ButtonProps, t as Button } from "./button-DbHFERMB.js";
3
+ import { n as ButtonGroupProps, t as ButtonGroup } from "./index-CWXKBva-.js";
4
4
  export { Button, ButtonGroup, ButtonGroupProps, ButtonProps, IconButton, IconButtonProps };
package/dist/card.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as WithAsChild } from "./as-child-C2PttRwz.js";
1
+ import { t as WithAsChild } from "./as-child-CpZKMqTE.js";
2
2
  import * as _$react from "react";
3
3
  import { ComponentProps, HTMLAttributes } from "react";
4
4
 
@@ -1,4 +1,4 @@
1
- import { o as WithValidation } from "./validation-DF1z7YDr.js";
1
+ import { o as WithValidation } from "./validation-CBSOmooP.js";
2
2
  import * as _$react from "react";
3
3
 
4
4
  //#region src/components/checkbox/checkbox.d.ts
@@ -1,6 +1,6 @@
1
- import { t as SvgAttributes } from "./types-DnghL1WE.js";
2
- import { t as WithAsChild } from "./as-child-C2PttRwz.js";
3
- import { A as FoldStrategy, B as computeJsonFoldRanges, C as Indentation, D as FoldExplanation, E as ComputeFoldRangesInput, F as isSupportedLanguage, H as finalizeFoldRanges, I as parseLanguage, L as supportedLanguages, M as computeFoldRanges, N as foldStrategyFor, O as FoldLine, P as SupportedLanguage, S as normalizeIndentation, T as isIndentation, U as LineRange, V as FoldableRange, _ as MantleCodeBlockValue, a as Mode, c as ResolvedPreRenderedCodeBlockProps, d as parseMetastring, f as resolvePreRenderedCodeBlockProps, g as parseCodeBlockShowLineNumbers, h as parseCodeBlockLineNumberStart, i as MetaInput, j as FoldToken, k as FoldScope, l as defaultMeta, m as parseCodeBlockHighlightLines, n as DefaultMeta, o as ResolvePreRenderedCodeBlockPropsInput, p as tokenizeMetastring, r as Meta, s as ResolvePreRenderedCodeBlockPropsResult, t as CodeBlockPreElementInput, u as normalizeValue, v as MantleCodeOptions, w as inferIndentation, x as mantleCode, y as createMantleCodeBlockValue, z as decorateHighlightedHtml } from "./resolve-pre-rendered-props-DxvamgE6.js";
1
+ import { t as SvgAttributes } from "./types-QKZ5fvaQ.js";
2
+ import { t as WithAsChild } from "./as-child-CpZKMqTE.js";
3
+ import { A as FoldStrategy, B as computeJsonFoldRanges, C as Indentation, D as FoldExplanation, E as ComputeFoldRangesInput, F as isSupportedLanguage, H as finalizeFoldRanges, I as parseLanguage, L as supportedLanguages, M as computeFoldRanges, N as foldStrategyFor, O as FoldLine, P as SupportedLanguage, S as normalizeIndentation, T as isIndentation, U as LineRange, V as FoldableRange, _ as MantleCodeBlockValue, a as Mode, c as ResolvedPreRenderedCodeBlockProps, d as parseMetastring, f as resolvePreRenderedCodeBlockProps, g as parseCodeBlockShowLineNumbers, h as parseCodeBlockLineNumberStart, i as MetaInput, j as FoldToken, k as FoldScope, l as defaultMeta, m as parseCodeBlockHighlightLines, n as DefaultMeta, o as ResolvePreRenderedCodeBlockPropsInput, p as tokenizeMetastring, r as Meta, s as ResolvePreRenderedCodeBlockPropsResult, t as CodeBlockPreElementInput, u as normalizeValue, v as MantleCodeOptions, w as inferIndentation, x as mantleCode, y as createMantleCodeBlockValue, z as decorateHighlightedHtml } from "./resolve-pre-rendered-props-BONSCwYA.js";
4
4
  import * as _$react from "react";
5
5
  import { ComponentProps, HTMLAttributes, ReactNode } from "react";
6
6
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
@@ -1,2 +1,2 @@
1
- import { A as FoldStrategy, B as computeJsonFoldRanges, C as Indentation, D as FoldExplanation, E as ComputeFoldRangesInput, F as isSupportedLanguage, H as finalizeFoldRanges, I as parseLanguage, L as supportedLanguages, M as computeFoldRanges, N as foldStrategyFor, O as FoldLine, P as SupportedLanguage, R as DecorateHighlightedHtmlInput, S as normalizeIndentation, T as isIndentation, U as LineRange, V as FoldableRange, b as defaultShowLineNumbers, g as parseCodeBlockShowLineNumbers, h as parseCodeBlockLineNumberStart, j as FoldToken, k as FoldScope, m as parseCodeBlockHighlightLines, p as tokenizeMetastring, u as normalizeValue, w as inferIndentation, z as decorateHighlightedHtml } from "./resolve-pre-rendered-props-DxvamgE6.js";
1
+ import { A as FoldStrategy, B as computeJsonFoldRanges, C as Indentation, D as FoldExplanation, E as ComputeFoldRangesInput, F as isSupportedLanguage, H as finalizeFoldRanges, I as parseLanguage, L as supportedLanguages, M as computeFoldRanges, N as foldStrategyFor, O as FoldLine, P as SupportedLanguage, R as DecorateHighlightedHtmlInput, S as normalizeIndentation, T as isIndentation, U as LineRange, V as FoldableRange, b as defaultShowLineNumbers, g as parseCodeBlockShowLineNumbers, h as parseCodeBlockLineNumberStart, j as FoldToken, k as FoldScope, m as parseCodeBlockHighlightLines, p as tokenizeMetastring, u as normalizeValue, w as inferIndentation, z as decorateHighlightedHtml } from "./resolve-pre-rendered-props-BONSCwYA.js";
2
2
  export { type ComputeFoldRangesInput, type DecorateHighlightedHtmlInput, type FoldExplanation, type FoldLine, type FoldScope, type FoldStrategy, type FoldToken, type FoldableRange, type Indentation, type LineRange, type SupportedLanguage, computeFoldRanges, computeJsonFoldRanges, decorateHighlightedHtml, defaultShowLineNumbers, finalizeFoldRanges, foldStrategyFor, inferIndentation, isIndentation, isSupportedLanguage, normalizeIndentation, normalizeValue, parseCodeBlockHighlightLines, parseCodeBlockLineNumberStart, parseCodeBlockShowLineNumbers, parseLanguage, supportedLanguages, tokenizeMetastring };
package/dist/code.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as WithAsChild } from "./as-child-C2PttRwz.js";
1
+ import { t as WithAsChild } from "./as-child-CpZKMqTE.js";
2
2
  import * as _$react from "react";
3
3
 
4
4
  //#region src/components/code/code.d.ts
package/dist/color.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as functionalColors, c as isNamedColor, i as colors, l as namedColors, n as FunctionalColor, o as isColor, r as NamedColor, s as isFunctionalColor, t as Color } from "./index-CVk4t5hk.js";
1
+ import { a as functionalColors, c as isNamedColor, i as colors, l as namedColors, n as FunctionalColor, o as isColor, r as NamedColor, s as isFunctionalColor, t as Color } from "./index-DS_4n2eb.js";
2
2
  export { Color, FunctionalColor, NamedColor, colors, functionalColors, isColor, isFunctionalColor, isNamedColor, namedColors };
@@ -1,5 +1,5 @@
1
- import { t as WithAsChild } from "./as-child-C2PttRwz.js";
2
- import { o as WithValidation } from "./validation-DF1z7YDr.js";
1
+ import { t as WithAsChild } from "./as-child-CpZKMqTE.js";
2
+ import { o as WithValidation } from "./validation-CBSOmooP.js";
3
3
  import * as _$react from "react";
4
4
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
5
5
  import * as Primitive from "@ariakit/react";
package/dist/command.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as Root } from "./primitive-Ed9cel2r.js";
1
+ import { t as Root } from "./primitive-qkxTYBUY.js";
2
2
  import * as _$react from "react";
3
3
  import { ComponentProps, ComponentPropsWithoutRef, ReactNode } from "react";
4
4
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
@@ -330,7 +330,7 @@ declare const Command: {
330
330
  ref?: React.Ref<HTMLInputElement>;
331
331
  } & {
332
332
  asChild?: boolean;
333
- }, "key" | "asChild" | keyof _$react.InputHTMLAttributes<HTMLInputElement>>, "value" | "onChange" | "type"> & {
333
+ }, "key" | "asChild" | keyof _$react.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
334
334
  value?: string;
335
335
  onValueChange?: (search: string) => void;
336
336
  } & _$react.RefAttributes<HTMLInputElement>, "ref"> & _$react.RefAttributes<HTMLDivElement>>;
@@ -452,7 +452,7 @@ declare const Command: {
452
452
  ref?: React.Ref<HTMLDivElement>;
453
453
  } & {
454
454
  asChild?: boolean;
455
- }, "key" | keyof _$react.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
455
+ }, "key" | keyof _$react.HTMLAttributes<HTMLDivElement> | "asChild">, "heading" | "value"> & {
456
456
  heading?: React.ReactNode;
457
457
  value?: string;
458
458
  forceMount?: boolean;
@@ -495,7 +495,7 @@ declare const Command: {
495
495
  ref?: React.Ref<HTMLDivElement>;
496
496
  } & {
497
497
  asChild?: boolean;
498
- }, "key" | keyof _$react.HTMLAttributes<HTMLDivElement> | "asChild">, "disabled" | "value" | "onSelect"> & {
498
+ }, "key" | keyof _$react.HTMLAttributes<HTMLDivElement> | "asChild">, "disabled" | "onSelect" | "value"> & {
499
499
  disabled?: boolean;
500
500
  onSelect?: (value: string) => void;
501
501
  value?: string;
@@ -1,6 +1,6 @@
1
- import { t as Button } from "./button-CoGmk7_d.js";
2
- import { s as SortingMode } from "./direction-CVntIxOS.js";
3
- import { t as Table$1 } from "./table-BWxS7pXj.js";
1
+ import { t as Button } from "./button-DbHFERMB.js";
2
+ import { s as SortingMode } from "./direction-D9IZ1wW6.js";
3
+ import { t as Table$1 } from "./table-CjSQkfZe.js";
4
4
  import * as _$react from "react";
5
5
  import { ComponentProps, ReactNode } from "react";
6
6
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
@@ -5,4 +5,4 @@
5
5
  type DeepNonNullable<Type> = { [Property in keyof Type]-?: Type[Property] & {} };
6
6
  //#endregion
7
7
  export { DeepNonNullable as t };
8
- //# sourceMappingURL=deep-non-nullable-CT7hWCFG.d.ts.map
8
+ //# sourceMappingURL=deep-non-nullable-Xu7ckQM6.d.ts.map
@@ -1,4 +1,4 @@
1
- import { t as WithAsChild } from "./as-child-C2PttRwz.js";
1
+ import { t as WithAsChild } from "./as-child-CpZKMqTE.js";
2
2
  import * as _$react from "react";
3
3
  import { ComponentProps } from "react";
4
4
 
package/dist/dialog.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { n as isDialogOverlayTarget, t as Root } from "./primitive-Ed9cel2r.js";
2
- import { n as IconButtonProps } from "./icon-button-Dty-yfE2.js";
1
+ import { n as isDialogOverlayTarget, t as Root } from "./primitive-qkxTYBUY.js";
2
+ import { n as IconButtonProps } from "./icon-button-BDTb-lxs.js";
3
3
  import * as _$react from "react";
4
4
  import { ComponentProps } from "react";
5
5
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
@@ -142,4 +142,4 @@ declare function $timeSortingDirection<T extends TimeSortingDirection | SortingD
142
142
  }[(T & "asc") | (T & "desc")] | (T & "newest-to-oldest") | (T & "oldest-to-newest");
143
143
  //#endregion
144
144
  export { timeSortingDirections as _, AlphanumericSortingDirection as a, TimeSortingDirection as c, isSortingDirection as d, isSortingMode as f, timeSortingByDirection as g, sortingModes as h, $timeSortingDirection as i, alphanumericSortingDirections as l, sortingDirections as m, $sortingDirection as n, SortingDirection as o, isTimeSortingDirection as p, $sortingMode as r, SortingMode as s, $alphanumericSortingDirection as t, isAlphanumericSortingDirection as u };
145
- //# sourceMappingURL=direction-CVntIxOS.d.ts.map
145
+ //# sourceMappingURL=direction-D9IZ1wW6.d.ts.map
@@ -1,4 +1,4 @@
1
- import { t as WithAsChild } from "./as-child-C2PttRwz.js";
1
+ import { t as WithAsChild } from "./as-child-CpZKMqTE.js";
2
2
  import * as _$react from "react";
3
3
  import { ComponentProps } from "react";
4
4
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
@@ -346,4 +346,4 @@ declare const DropdownMenu: {
346
346
  };
347
347
  //#endregion
348
348
  export { DropdownMenu as t };
349
- //# sourceMappingURL=dropdown-menu-DVvNlA72.d.ts.map
349
+ //# sourceMappingURL=dropdown-menu-CvOiQUSZ.d.ts.map
@@ -1,2 +1,2 @@
1
- import { t as DropdownMenu } from "./dropdown-menu-DVvNlA72.js";
1
+ import { t as DropdownMenu } from "./dropdown-menu-CvOiQUSZ.js";
2
2
  export { DropdownMenu };
package/dist/empty.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { t as SvgAttributes } from "./types-DnghL1WE.js";
2
- import { t as WithAsChild } from "./as-child-C2PttRwz.js";
1
+ import { t as SvgAttributes } from "./types-QKZ5fvaQ.js";
2
+ import { t as WithAsChild } from "./as-child-CpZKMqTE.js";
3
3
  import { ComponentProps, HTMLAttributes, ReactNode } from "react";
4
4
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
5
5
 
@@ -0,0 +1,2 @@
1
+ import{r as e}from"./validation-BYME8rWN.js";import{createContext as t}from"react";const n=t(null),r=t(null),i=({context:t})=>{if(!t)return{ariaProps:{},validation:void 0};let n=e({defaultAriaInvalid:!1,validation:t.validation});return{ariaProps:{"aria-describedby":`${t.descriptionId} ${t.errorId}`,"aria-errormessage":n.isInvalid?t.errorId:void 0,"aria-invalid":n.ariaInvalid,id:t.controlId,name:t.name},validation:n.validation}};export{n,i as r,r as t};
2
+ //# sourceMappingURL=field-context-B7Z1cmZW.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field-context-B7Z1cmZW.js","names":[],"sources":["../src/components/field/field-context.ts"],"sourcesContent":["import { createContext, type ComponentProps } from \"react\";\nimport { parseValidation, type ValidationState } from \"./validation.js\";\n\n/**\n * ARIA and identity props that `Field.Control` applies to the field's\n * focusable control. `id` and `name` come from the surrounding `Field.Item`\n * so a caller only needs to declare `name` once.\n */\ntype FieldControlAriaProps = {\n\t/**\n\t * IDREFs for helper or error text that describe the focusable control.\n\t */\n\t\"aria-describedby\"?: string;\n\t/**\n\t * IDREFs for error text that represent the control's current error state.\n\t */\n\t\"aria-errormessage\"?: string;\n\t/**\n\t * The resolved ARIA invalid state for the focusable control.\n\t */\n\t\"aria-invalid\"?: ComponentProps<\"input\">[\"aria-invalid\"];\n\t/**\n\t * Stable DOM id for the focusable control, generated by `Field.Item` and\n\t * also used as `Field.Label`'s default `htmlFor`.\n\t */\n\tid?: string;\n\t/**\n\t * Form value identity from `Field.Item`'s required `name` prop.\n\t */\n\tname?: string;\n};\n\n/**\n * Context value owned by `Field.Item` and consumed by message/control parts.\n *\n * `Field.Item` owns the two stable slot IDs (one for the description, one for\n * the error list) so consumers don't manage ARIA wiring themselves. The IDs\n * are emitted unconditionally; ARIA treats unresolved IDREFs as no-ops, so\n * dangling IDs (when no description or error list is rendered) are harmless.\n */\ntype FieldItemContextValue = {\n\t/**\n\t * Stable DOM id applied to the `Field.Control` child and consumed by\n\t * `Field.Label` as the default `htmlFor` target.\n\t */\n\tcontrolId: string;\n\t/**\n\t * Stable ID for the rendered `Field.Description` slot, generated once per\n\t * `Field.Item`.\n\t */\n\tdescriptionId: string;\n\t/**\n\t * Stable ID for the rendered `Field.Errors` / `Field.ErrorList` slot,\n\t * generated once per `Field.Item`.\n\t */\n\terrorId: string;\n\t/**\n\t * Form-value name for the field, supplied by the required `name` prop on\n\t * `Field.Item` and splatted onto the `Field.Control` child.\n\t */\n\tname: string;\n\t/**\n\t * `true` while a non-empty `Field.Errors` / `Field.ErrorList` is mounted\n\t * under this `Field.Item`. Used by `Field.Item` to infer an `\"error\"`\n\t * validation state when no explicit `validation` prop is supplied.\n\t */\n\thasErrors: boolean;\n\t/**\n\t * Marks a non-empty `Field.Errors` / `Field.ErrorList` as mounted. Returns\n\t * its cleanup callback.\n\t */\n\tregisterError: () => () => void;\n\t/**\n\t * Validation state inferred or supplied by the surrounding `Field.Item`.\n\t */\n\tvalidation?: ValidationState;\n};\n\n/**\n * Options for resolving the ARIA props that `Field.Control` applies.\n */\ntype ResolveFieldControlAriaPropsOptions = {\n\t/**\n\t * The nearest `Field.Item` context, when the control is rendered inside one.\n\t */\n\tcontext: FieldItemContextValue | null;\n};\n\n/**\n * Context shared by the parts of a single `Field.Item`.\n */\nconst FieldItemContext = createContext<FieldItemContextValue | null>(null);\n\n/**\n * Context published by `Field.Control` carrying the resolved ARIA / identity\n * props that should land on the focusable control. Mantle compound triggers\n * (`Select.Trigger`, `MultiSelect.Trigger`, …) consume this so wrapping a\n * compound widget in `Field.Control` works — `cloneElement` only reaches the\n * direct child, which for a compound widget is a context provider that does\n * not forward ARIA props to its inner trigger.\n *\n * `null` when no `Field.Control` is in the tree.\n */\nconst FieldControlContext = createContext<FieldControlAriaProps | null>(null);\n\n/**\n * Resolves the ARIA, identity, and validation props that `Field.Control`\n * applies to its focusable child. `Field.Item` is the single source of truth\n * for `id`, `name`, `aria-*`, and `validation` — the resolver reads only the\n * surrounding `Field.Item` context and ignores anything supplied on the child\n * element. To override these values, set them on `Field.Item` itself.\n */\nconst resolveFieldControlAriaProps = ({ context }: ResolveFieldControlAriaPropsOptions) => {\n\tif (!context) {\n\t\treturn {\n\t\t\tariaProps: {} as const satisfies FieldControlAriaProps,\n\t\t\tvalidation: undefined,\n\t\t};\n\t}\n\n\tconst parsedValidation = parseValidation({\n\t\tdefaultAriaInvalid: false,\n\t\tvalidation: context.validation,\n\t});\n\t// Always emit both slot IDs in aria-describedby when inside a Field.Item.\n\t// Per WAI-ARIA, unresolved IDREFs are ignored by assistive tech, so the\n\t// dangling ID is harmless when the corresponding slot isn't rendered and\n\t// lets us skip mount-time bookkeeping. aria-errormessage is additionally\n\t// spec-gated on aria-invalid=\"true\", so it stays inert until the field is\n\t// actually invalid.\n\tconst ariaDescribedBy = `${context.descriptionId} ${context.errorId}`;\n\tconst ariaErrorMessage = parsedValidation.isInvalid ? context.errorId : undefined;\n\n\treturn {\n\t\tariaProps: {\n\t\t\t\"aria-describedby\": ariaDescribedBy,\n\t\t\t\"aria-errormessage\": ariaErrorMessage,\n\t\t\t\"aria-invalid\": parsedValidation.ariaInvalid,\n\t\t\tid: context.controlId,\n\t\t\tname: context.name,\n\t\t} satisfies FieldControlAriaProps,\n\t\tvalidation: parsedValidation.validation,\n\t};\n};\n\nexport {\n\t//,\n\tFieldControlContext,\n\tFieldItemContext,\n\tresolveFieldControlAriaProps,\n};\nexport type {\n\t//,\n\tFieldControlAriaProps,\n\tFieldItemContextValue,\n};\n"],"mappings":"mFA2FA,MAAM,EAAmB,EAA4C,KAAK,CAYpE,EAAsB,EAA4C,KAAK,CASvE,GAAgC,CAAE,aAAmD,CAC1F,GAAI,CAAC,EACJ,MAAO,CACN,UAAW,EAAE,CACb,WAAY,IAAA,GACZ,CAGF,IAAM,EAAmB,EAAgB,CACxC,mBAAoB,GACpB,WAAY,EAAQ,WACpB,CAAC,CAUF,MAAO,CACN,UAAW,CACV,mBAAoB,GALK,EAAQ,cAAc,GAAG,EAAQ,UAM1D,oBALuB,EAAiB,UAAY,EAAQ,QAAU,IAAA,GAMtE,eAAgB,EAAiB,YACjC,GAAI,EAAQ,UACZ,KAAM,EAAQ,KACd,CACD,WAAY,EAAiB,WAC7B"}