@wix/site-ui 1.346.0 → 1.348.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/dist/{6706.js → 1093.js} +3 -3
  2. package/dist/{8724.js → 1219.js} +2 -2
  3. package/dist/{7373.js → 1288.js} +8 -2
  4. package/dist/{5299.js → 1381.js} +98 -127
  5. package/dist/{3056.js → 1607.js} +32 -34
  6. package/dist/1629.js +2 -0
  7. package/dist/1669.js +75 -0
  8. package/dist/1718.js +26 -0
  9. package/dist/{1477.js → 201.js} +17 -26
  10. package/dist/2221.js +9 -0
  11. package/dist/{2445.js → 226.js} +12 -48
  12. package/dist/2387.js +7 -0
  13. package/dist/2580.js +6 -0
  14. package/dist/{1500.js → 2859.js} +10 -34
  15. package/dist/3014.js +178 -0
  16. package/dist/{6247.js → 3054.js} +3 -3
  17. package/dist/{7642.js → 3093.js} +1 -1
  18. package/dist/3189.js +5 -0
  19. package/dist/{7564.js → 331.js} +2 -2
  20. package/dist/3357.js +7 -0
  21. package/dist/{487.js → 3398.js} +38 -39
  22. package/dist/3502.js +224 -0
  23. package/dist/3695.js +50 -0
  24. package/dist/3829.js +1 -1
  25. package/dist/{6588.js → 3859.js} +115 -92
  26. package/dist/{3670.js → 3910.js} +28 -21
  27. package/dist/392.js +7 -0
  28. package/dist/{4549.js → 4155.js} +11 -3
  29. package/dist/4226.js +7 -0
  30. package/dist/{6329.js → 4229.js} +1 -1
  31. package/dist/4293.js +3 -0
  32. package/dist/4346.js +853 -2
  33. package/dist/{285.js → 4472.js} +3 -3
  34. package/dist/4605.js +207 -0
  35. package/dist/{7366.js → 488.js} +60 -7
  36. package/dist/{8750.js → 497.js} +190 -375
  37. package/dist/4989.js +35 -0
  38. package/dist/{6270.js → 510.js} +157 -196
  39. package/dist/5258.js +26 -0
  40. package/dist/{5036.js → 5275.js} +0 -3
  41. package/dist/{8171.js → 5298.js} +90 -102
  42. package/dist/5473.js +11 -0
  43. package/dist/{4745.js → 5490.js} +3 -1
  44. package/dist/{6089.js → 5561.js} +869 -786
  45. package/dist/{8996.js → 5595.js} +4 -3
  46. package/dist/5890.js +25 -0
  47. package/dist/{6046.js → 5969.js} +1 -1
  48. package/dist/5984.js +38 -0
  49. package/dist/{8527.js → 6006.js} +3 -3
  50. package/dist/6040.js +97 -0
  51. package/dist/{8758.js → 6137.js} +10 -8
  52. package/dist/{4281.js → 6140.js} +18 -10
  53. package/dist/{8960.js → 6191.js} +2 -2
  54. package/dist/6240.js +121 -0
  55. package/dist/{4490.js → 6373.js} +7 -5
  56. package/dist/{904.js → 6487.js} +19 -17
  57. package/dist/{9635.js → 6498.js} +1 -1
  58. package/dist/6499.js +4 -7
  59. package/dist/6508.js +7 -0
  60. package/dist/{8225.js → 6540.js} +1 -0
  61. package/dist/6551.js +46 -0
  62. package/dist/{9369.js → 6620.js} +35 -34
  63. package/dist/{4143.js → 6838.js} +19 -10
  64. package/dist/6902.js +48 -0
  65. package/dist/6904.js +51 -0
  66. package/dist/70.js +24 -0
  67. package/dist/7024.js +39 -0
  68. package/dist/{6882.js → 721.js} +737 -362
  69. package/dist/{951.js → 7270.js} +4 -4
  70. package/dist/{3485.js → 7323.js} +143 -111
  71. package/dist/{7541.js → 7488.js} +2 -2
  72. package/dist/{4863.js → 7542.js} +7 -6
  73. package/dist/7551.js +28 -0
  74. package/dist/{7021.js → 7640.js} +1 -1
  75. package/dist/{353.js → 7692.js} +3 -7
  76. package/dist/{4707.js → 7930.js} +2 -2
  77. package/dist/{8052.js → 8.js} +80 -64
  78. package/dist/{6914.js → 8129.js} +3 -15
  79. package/dist/{3319.js → 8358.js} +62 -63
  80. package/dist/{5864.js → 8407.js} +13 -13
  81. package/dist/8488.js +15 -0
  82. package/dist/{4768.js → 8495.js} +1 -1
  83. package/dist/8734.js +171 -0
  84. package/dist/{1763.js → 9018.js} +205 -331
  85. package/dist/9053.js +29 -0
  86. package/dist/9067.js +41 -0
  87. package/dist/{2861.js → 9120.js} +2 -2
  88. package/dist/{42.js → 9197.js} +2 -2
  89. package/dist/{9189.js → 9248.js} +36 -17
  90. package/dist/{2801.js → 9252.js} +4 -9
  91. package/dist/9295.js +7 -0
  92. package/dist/9303.js +8 -0
  93. package/dist/{167.js → 9374.js} +1 -1
  94. package/dist/{9352.js → 9540.js} +17 -47
  95. package/dist/9576.js +51 -0
  96. package/dist/{8272.js → 9591.js} +36 -46
  97. package/dist/{6107.js → 9770.js} +2 -2
  98. package/dist/{5085.js → 9880.js} +6 -3
  99. package/dist/Accordion/index.d.ts +207 -41
  100. package/dist/Accordion/index.js +75 -177
  101. package/dist/AlertDialog/index.d.ts +440 -140
  102. package/dist/AlertDialog/index.js +3 -13
  103. package/dist/Autocomplete/index.d.ts +722 -150
  104. package/dist/Autocomplete/index.js +16 -29
  105. package/dist/Avatar/index.d.ts +38 -3
  106. package/dist/Avatar/index.js +82 -28
  107. package/dist/Breadcrumbs/index.d.ts +63 -91
  108. package/dist/Breadcrumbs/index.js +1 -1
  109. package/dist/Button/index.d.ts +11 -0
  110. package/dist/Button/index.js +2 -2
  111. package/dist/Checkbox/index.d.ts +206 -36
  112. package/dist/Checkbox/index.js +293 -8
  113. package/dist/CheckboxField/index.css +1 -1
  114. package/dist/CheckboxField/index.d.ts +40 -36
  115. package/dist/CheckboxGroup/index.d.ts +50 -36
  116. package/dist/CheckboxGroup/index.js +87 -58
  117. package/dist/CheckboxGroupField/index.css +1 -1
  118. package/dist/Collapsible/index.d.ts +128 -36
  119. package/dist/Collapsible/index.js +21 -25
  120. package/dist/Combobox/index.d.ts +801 -158
  121. package/dist/Combobox/index.js +70 -114
  122. package/dist/ContextMenu/index.d.ts +1162 -195
  123. package/dist/ContextMenu/index.js +46 -36
  124. package/dist/Dialog/index.d.ts +425 -133
  125. package/dist/Dialog/index.js +8 -4
  126. package/dist/Drawer/index.d.ts +589 -144
  127. package/dist/Drawer/index.js +482 -562
  128. package/dist/Field/index.css +1 -1
  129. package/dist/Field/index.d.ts +341 -42
  130. package/dist/Field/index.js +123 -273
  131. package/dist/Fieldset/index.d.ts +11 -0
  132. package/dist/Fieldset/index.js +10 -17
  133. package/dist/Form/index.d.ts +43 -39
  134. package/dist/Form/index.js +58 -50
  135. package/dist/Input/index.css +1 -1
  136. package/dist/Input/index.d.ts +94 -42
  137. package/dist/Input/index.js +1 -1
  138. package/dist/Menu/index.d.ts +1140 -175
  139. package/dist/Menu/index.js +51 -67
  140. package/dist/Menubar/index.d.ts +651 -173
  141. package/dist/Menubar/index.js +12 -16
  142. package/dist/Meter/index.js +21 -18
  143. package/dist/NavigationMenu/index.d.ts +370 -86
  144. package/dist/NavigationMenu/index.js +144 -178
  145. package/dist/NumberField/index.css +1 -1
  146. package/dist/NumberField/index.d.ts +507 -47
  147. package/dist/NumberField/index.js +434 -718
  148. package/dist/Popover/index.d.ts +561 -142
  149. package/dist/Popover/index.js +181 -252
  150. package/dist/PreviewCard/index.d.ts +507 -143
  151. package/dist/PreviewCard/index.js +97 -151
  152. package/dist/Progress/index.d.ts +117 -3
  153. package/dist/Progress/index.js +37 -36
  154. package/dist/Radio/index.d.ts +177 -7
  155. package/dist/Radio/index.js +54 -70
  156. package/dist/RadioField/index.css +1 -1
  157. package/dist/RadioField/index.d.ts +23 -7
  158. package/dist/RadioGroup/index.d.ts +51 -37
  159. package/dist/RadioGroup/index.js +60 -51
  160. package/dist/RadioGroupField/index.css +1 -1
  161. package/dist/RadioGroupField/index.d.ts +40 -37
  162. package/dist/ScrollArea/index.d.ts +295 -1
  163. package/dist/ScrollArea/index.js +256 -324
  164. package/dist/Select/index.d.ts +516 -123
  165. package/dist/Select/index.js +513 -635
  166. package/dist/SelectField/index.css +1 -1
  167. package/dist/SelectField/index.d.ts +109 -134
  168. package/dist/SelectField/index.js +5 -1
  169. package/dist/Separator/index.d.ts +12 -0
  170. package/dist/Separator/index.js +1 -1
  171. package/dist/Slider/index.d.ts +383 -64
  172. package/dist/Slider/index.js +298 -374
  173. package/dist/Switch/index.d.ts +184 -37
  174. package/dist/Switch/index.js +44 -58
  175. package/dist/Tabs/index.d.ts +220 -35
  176. package/dist/Tabs/index.js +199 -193
  177. package/dist/Toast/index.d.ts +280 -64
  178. package/dist/Toast/index.js +299 -374
  179. package/dist/Toggle/index.d.ts +55 -35
  180. package/dist/Toggle/index.js +19 -13
  181. package/dist/ToggleGroup/index.d.ts +62 -35
  182. package/dist/ToggleGroup/index.js +13 -31
  183. package/dist/Toolbar/index.d.ts +117 -2
  184. package/dist/Toolbar/index.js +31 -43
  185. package/dist/Tooltip/index.d.ts +507 -150
  186. package/dist/Tooltip/index.js +163 -213
  187. package/dist/index.d.ts +12912 -5382
  188. package/package.json +3 -3
  189. package/dist/2205.js +0 -26
  190. package/dist/2274.js +0 -34
  191. package/dist/2287.js +0 -17
  192. package/dist/3020.js +0 -7
  193. package/dist/3021.js +0 -72
  194. package/dist/3140.js +0 -4
  195. package/dist/3248.js +0 -307
  196. package/dist/4026.js +0 -12
  197. package/dist/4922.js +0 -15
  198. package/dist/5659.js +0 -4
  199. package/dist/5992.js +0 -447
  200. package/dist/6330.js +0 -30
  201. package/dist/6535.js +0 -72
  202. package/dist/6917.js +0 -55
  203. package/dist/7725.js +0 -10
  204. package/dist/7871.js +0 -38
  205. package/dist/8106.js +0 -239
  206. package/dist/8685.js +0 -102
  207. package/dist/8935.js +0 -8
  208. package/dist/8971.js +0 -40
  209. package/dist/8979.js +0 -10
  210. package/dist/9048.js +0 -52
  211. package/dist/9087.js +0 -256
  212. package/dist/9255.js +0 -136
  213. /package/dist/{1457.js → 1068.js} +0 -0
  214. /package/dist/{6003.js → 1234.js} +0 -0
  215. /package/dist/{4723.js → 1282.js} +0 -0
  216. /package/dist/{6825.js → 1876.js} +0 -0
  217. /package/dist/{5778.js → 1885.js} +0 -0
  218. /package/dist/{2445.js.LICENSE.txt → 226.js.LICENSE.txt} +0 -0
  219. /package/dist/{1279.js → 3278.js} +0 -0
  220. /package/dist/{3296.js → 5568.js} +0 -0
  221. /package/dist/{8685.css → 6240.css} +0 -0
  222. /package/dist/{9829.js → 6488.js} +0 -0
  223. /package/dist/{9863.js → 6534.js} +0 -0
  224. /package/dist/{4495.js → 7718.js} +0 -0
  225. /package/dist/{3395.js → 8866.js} +0 -0
  226. /package/dist/{2418.js → 9837.js} +0 -0
@@ -13,51 +13,94 @@ import { AutocompletePopupProps as AutocompletePopupProps_2 } from '@base-ui/rea
13
13
  import { AutocompletePortalProps as AutocompletePortalProps_2 } from '@base-ui/react';
14
14
  import { AutocompletePositionerProps as AutocompletePositionerProps_2 } from '@base-ui/react';
15
15
  import { AutocompleteRowProps as AutocompleteRowProps_2 } from '@base-ui/react';
16
+ import { AutocompleteSeparatorProps as AutocompleteSeparatorProps_2 } from '@base-ui/react';
16
17
  import { AutocompleteStatusProps as AutocompleteStatusProps_2 } from '@base-ui/react';
17
- import { InteractionType } from '@base-ui/utils/useEnhancedClickHandler';
18
+ import type { InteractionType } from '@base-ui/utils/useEnhancedClickHandler';
18
19
  import { JSX as JSX_2 } from 'react/jsx-runtime';
19
20
  import { Padding } from '@floating-ui/react-dom';
20
21
  import * as React_2 from 'react';
21
- import { Rect } from '@floating-ui/utils';
22
- import { SeparatorProps as SeparatorProps_2 } from '@base-ui/react';
22
+ import type { Rect } from '@floating-ui/utils';
23
23
  import { VirtualElement } from '@floating-ui/react-dom';
24
24
 
25
25
  declare type Align = 'start' | 'center' | 'end';
26
26
 
27
27
  /**
28
- * @internal
28
+ * Indicates how the popup is aligned relative to specified side.
29
+ * @type {'start' | 'center' | 'end'}
29
30
  */
30
- declare function AriaCombobox<Value, Mode extends SelectionMode_2 = 'none'>(props: Omit<AriaComboboxProps<Value, Mode>, 'items'> & {
31
- items: readonly Group<any>[];
32
- }): React_2.JSX.Element;
31
+ declare const align = "data-align";
33
32
 
34
- declare function AriaCombobox<Value, Mode extends SelectionMode_2 = 'none'>(props: Omit<AriaComboboxProps<Value, Mode>, 'items'> & {
35
- items?: readonly any[] | undefined;
33
+ /**
34
+ * Indicates how the popup is aligned relative to specified side.
35
+ * @type {'start' | 'center' | 'end'}
36
+ */
37
+ declare const align_2 = "data-align";
38
+
39
+ /**
40
+ * Indicates how the popup is aligned relative to specified side.
41
+ * @type {'start' | 'center' | 'end'}
42
+ */
43
+ declare const align_3 = "data-align";
44
+
45
+ /**
46
+ * The anchor's height.
47
+ * @type {number}
48
+ */
49
+ declare const anchorHeight = "--anchor-height";
50
+
51
+ /**
52
+ * Present when the anchor is hidden.
53
+ */
54
+ declare const anchorHidden = "data-anchor-hidden";
55
+
56
+ /**
57
+ * Present when the anchor is hidden.
58
+ */
59
+ declare const anchorHidden_2 = "data-anchor-hidden";
60
+
61
+ /**
62
+ * The anchor's width.
63
+ * @type {number}
64
+ */
65
+ declare const anchorWidth = "--anchor-width";
66
+
67
+ declare function AriaCombobox<Value, Mode extends SelectionMode_2 = 'none', Item = Value>(props: Omit<InternalAriaComboboxProps<Value, Mode, Item>, 'items'> & {
68
+ items?: readonly any[] | ComboboxItemCollection<Item, any> | undefined;
36
69
  }): React_2.JSX.Element;
37
70
 
38
71
  declare namespace AriaCombobox {
39
- type Props<Value, Mode extends SelectionMode_2 = 'none'> = AriaComboboxProps<Value, Mode>;
72
+ type Props<Value, Mode extends SelectionMode_2 = 'none', Item = Value> = AriaComboboxProps<Value, Mode, Item>;
40
73
  type State = AriaComboboxState;
41
74
  interface Actions {
42
75
  unmount: () => void;
76
+ close: () => void;
43
77
  }
44
- type HighlightEventReason = 'keyboard' | 'pointer' | 'none';
45
- type HighlightEventDetails = BaseUIGenericEventDetails<HighlightEventReason, {
78
+ type HighlightEventReason = typeof REASONS.keyboard | typeof REASONS.pointer | typeof REASONS.none;
79
+ type HighlightEventDetails = BaseUIHighlightEventDetails<HighlightEventReason, {
46
80
  index: number;
47
81
  }>;
48
- type ChangeEventReason = typeof REASONS.triggerPress | typeof REASONS.outsidePress | typeof REASONS.itemPress | typeof REASONS.closePress | typeof REASONS.escapeKey | typeof REASONS.listNavigation | typeof REASONS.focusOut | typeof REASONS.inputChange | typeof REASONS.inputClear | typeof REASONS.clearPress | typeof REASONS.chipRemovePress | typeof REASONS.none;
49
- type ChangeEventDetails = BaseUIChangeEventDetails<ChangeEventReason>;
82
+ type ChangeEventReason = typeof REASONS.triggerPress | typeof REASONS.inputPress | typeof REASONS.outsidePress | typeof REASONS.itemPress | typeof REASONS.closePress | typeof REASONS.escapeKey | typeof REASONS.listNavigation | typeof REASONS.focusOut | typeof REASONS.inputChange | typeof REASONS.inputClear | typeof REASONS.clearPress | typeof REASONS.chipRemovePress | typeof REASONS.cancelOpen | typeof REASONS.imperativeAction | typeof REASONS.none;
83
+ type OpenChangeEventDetails = ChangeEventDetails & {
84
+ /** Prevents the popup from unmounting until the `unmount` action is called. */
85
+ preventUnmountOnClose: () => void;
86
+ };
87
+ type ChangeEventDetails = BaseUIChangeEventDetails<ChangeEventReason> & {
88
+ /**
89
+ * When `reason` is `input-clear` in multiple mode, indicates whether an item press caused the
90
+ * clear. Automatic cleanup clears omit this property.
91
+ */
92
+ isItemPress?: boolean | undefined;
93
+ };
50
94
  }
51
95
 
52
- declare type AriaComboboxProps<Value, Mode extends SelectionMode_2 = 'none'> = ComboboxRootProps<Value> & {
96
+ declare type AriaComboboxProps<Value, Mode extends SelectionMode_2 = 'none', Item = Value> = ComboboxRootProps<Value, Item> & {
53
97
  /**
54
98
  * How the combobox should remember the selected value.
55
99
  * - `single`: Remembers the last selected value.
56
100
  * - `multiple`: Remember all selected values.
57
101
  * - `none`: Do not remember the selected value.
58
- * @default 'none'
59
102
  */
60
- selectionMode?: Mode | undefined;
103
+ selectionMode: Mode;
61
104
  /**
62
105
  * The selected value of the combobox. Use when controlled.
63
106
  */
@@ -127,7 +170,7 @@ export declare const Autocomplete: {
127
170
  Trigger: typeof Trigger;
128
171
  Value: typeof Autocomplete_2.Value;
129
172
  Portal: React_2.ForwardRefExoticComponent<Omit<AutocompletePortalProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
130
- Separator: React_2.ForwardRefExoticComponent<Omit<SeparatorProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
173
+ Separator: React_2.ForwardRefExoticComponent<AutocompleteSeparatorProps_2 & React_2.RefAttributes<HTMLDivElement>>;
131
174
  };
132
175
 
133
176
  export declare namespace Autocomplete_2 {
@@ -152,12 +195,22 @@ export declare namespace Autocomplete_2 {
152
195
  ComboboxRow as Row,
153
196
  ComboboxCollection as Collection,
154
197
  ComboboxEmpty as Empty,
155
- Separator,
198
+ AutocompleteSeparator as Separator,
156
199
  useCoreFilter as useFilter,
157
200
  useFilteredItems
158
201
  }
159
202
  }
160
203
 
204
+ export declare namespace AutocompleteArrowDataAttributes {
205
+ export {
206
+ open_5 as open,
207
+ closed_5 as closed,
208
+ side_3 as side,
209
+ align_3 as align,
210
+ uncentered
211
+ }
212
+ }
213
+
161
214
  export declare interface AutocompleteArrowProps extends BaseUIComponentProps<'div', AutocompleteArrowState> {}
162
215
 
163
216
  export declare interface AutocompleteArrowState {
@@ -179,6 +232,15 @@ export declare interface AutocompleteArrowState {
179
232
  uncentered: boolean;
180
233
  }
181
234
 
235
+ export declare namespace AutocompleteBackdropDataAttributes {
236
+ export {
237
+ open_2 as open,
238
+ closed_2 as closed,
239
+ startingStyle_2 as startingStyle,
240
+ endingStyle_2 as endingStyle
241
+ }
242
+ }
243
+
182
244
  export declare interface AutocompleteBackdropProps extends BaseUIComponentProps<'div', AutocompleteBackdropState> {}
183
245
 
184
246
  export declare interface AutocompleteBackdropState {
@@ -192,6 +254,16 @@ export declare interface AutocompleteBackdropState {
192
254
  transitionStatus: TransitionStatus;
193
255
  }
194
256
 
257
+ export declare namespace AutocompleteClearDataAttributes {
258
+ export {
259
+ popupOpen_4 as popupOpen,
260
+ disabled_5 as disabled,
261
+ visible,
262
+ startingStyle,
263
+ endingStyle
264
+ }
265
+ }
266
+
195
267
  export declare interface AutocompleteClearProps extends NativeButtonProps, BaseUIComponentProps<'button', AutocompleteClearState> {
196
268
  /**
197
269
  * Whether the component should ignore user interaction.
@@ -269,6 +341,24 @@ export declare interface AutocompleteIconProps extends BaseUIComponentProps<'spa
269
341
 
270
342
  export declare interface AutocompleteIconState {}
271
343
 
344
+ export declare namespace AutocompleteInputDataAttributes {
345
+ export {
346
+ popupOpen_2 as popupOpen,
347
+ pressed_2 as pressed,
348
+ disabled_3 as disabled,
349
+ readonly_2 as readonly,
350
+ popupSide_2 as popupSide,
351
+ required_2 as required,
352
+ valid_2 as valid,
353
+ invalid_2 as invalid,
354
+ touched_2 as touched,
355
+ dirty_2 as dirty,
356
+ filled_2 as filled,
357
+ focused_2 as focused,
358
+ listEmpty_2 as listEmpty
359
+ }
360
+ }
361
+
272
362
  /**
273
363
  * A wrapper for the input and its associated controls.
274
364
  * Renders a `<div>` element.
@@ -286,6 +376,23 @@ export declare namespace AutocompleteInputGroup {
286
376
  export type Props = AutocompleteInputGroupProps;
287
377
  }
288
378
 
379
+ export declare namespace AutocompleteInputGroupDataAttributes {
380
+ export {
381
+ popupOpen_3 as popupOpen,
382
+ pressed_3 as pressed,
383
+ disabled_4 as disabled,
384
+ readonly_3 as readonly,
385
+ popupSide_3 as popupSide,
386
+ valid_3 as valid,
387
+ invalid_3 as invalid,
388
+ touched_3 as touched,
389
+ dirty_3 as dirty,
390
+ filled_3 as filled,
391
+ focused_3 as focused,
392
+ listEmpty_3 as listEmpty
393
+ }
394
+ }
395
+
289
396
  export declare interface AutocompleteInputGroupProps extends BaseUIComponentProps<'div', AutocompleteInputGroupState> {}
290
397
 
291
398
  export declare interface AutocompleteInputGroupState extends FieldRoot.State {
@@ -355,6 +462,13 @@ export declare namespace AutocompleteItem {
355
462
  export type Props = AutocompleteItemProps;
356
463
  }
357
464
 
465
+ export declare namespace AutocompleteItemDataAttributes {
466
+ export {
467
+ highlighted,
468
+ disabled_6 as disabled
469
+ }
470
+ }
471
+
358
472
  export declare interface AutocompleteItemProps extends NonNativeButtonProps, Omit<BaseUIComponentProps<'div', AutocompleteItemState>, 'id'> {
359
473
  children?: React_2.ReactNode;
360
474
  /**
@@ -400,6 +514,19 @@ export declare interface AutocompleteListState {
400
514
  empty: boolean;
401
515
  }
402
516
 
517
+ export declare namespace AutocompletePopupDataAttributes {
518
+ export {
519
+ open_4 as open,
520
+ closed_4 as closed,
521
+ startingStyle_3 as startingStyle,
522
+ endingStyle_3 as endingStyle,
523
+ side_2 as side,
524
+ align_2 as align,
525
+ anchorHidden_2 as anchorHidden,
526
+ empty_2 as empty
527
+ }
528
+ }
529
+
403
530
  export declare interface AutocompletePopupProps extends BaseUIComponentProps<'div', AutocompletePopupState> {
404
531
  /**
405
532
  * Determines the element to focus when the popup is opened.
@@ -450,16 +577,41 @@ export declare interface AutocompletePopupState {
450
577
  empty: boolean;
451
578
  }
452
579
 
453
- export declare interface AutocompletePortalProps extends FloatingPortal.Props<AutocompletePortalState> {
580
+ export declare interface AutocompletePortalProps extends BaseUIComponentProps<'div', AutocompletePortalState> {
454
581
  /**
455
582
  * Whether to keep the portal mounted in the DOM while the popup is hidden.
456
583
  * @default false
457
584
  */
458
585
  keepMounted?: boolean | undefined;
586
+ /**
587
+ * A parent element to render the portal element into.
588
+ */
589
+ container?: HTMLElement | ShadowRoot | React_2.RefObject<HTMLElement | ShadowRoot | null> | null | undefined;
459
590
  }
460
591
 
461
592
  export declare interface AutocompletePortalState {}
462
593
 
594
+ export declare namespace AutocompletePositionerCssVariables {
595
+ export {
596
+ availableWidth,
597
+ availableHeight,
598
+ anchorWidth,
599
+ anchorHeight,
600
+ transformOrigin
601
+ }
602
+ }
603
+
604
+ export declare namespace AutocompletePositionerDataAttributes {
605
+ export {
606
+ open_3 as open,
607
+ closed_3 as closed,
608
+ anchorHidden,
609
+ side,
610
+ align,
611
+ empty
612
+ }
613
+ }
614
+
463
615
  export declare interface AutocompletePositionerProps extends UseAnchorPositioningSharedParameters, BaseUIComponentProps<'div', AutocompletePositionerState> {}
464
616
 
465
617
  export declare interface AutocompletePositionerState {
@@ -497,6 +649,7 @@ export declare function AutocompleteRoot<Items extends readonly {
497
649
  /**
498
650
  * The items to be displayed in the list.
499
651
  * Can be either a flat array of items or an array of groups with items.
652
+ * Nullish entries are not supported: remove them from the data before passing it.
500
653
  */
501
654
  items: Items;
502
655
  }): React_2.JSX.Element;
@@ -505,6 +658,7 @@ export declare function AutocompleteRoot<ItemValue>(props: Omit<AutocompleteRoot
505
658
  /**
506
659
  * The items to be displayed in the list.
507
660
  * Can be either a flat array of items or an array of groups with items.
661
+ * Nullish entries are not supported: remove them from the data before passing it.
508
662
  */
509
663
  items?: readonly ItemValue[] | undefined;
510
664
  }): React_2.JSX.Element;
@@ -515,15 +669,17 @@ export declare namespace AutocompleteRoot {
515
669
  export type Actions = AutocompleteRootActions;
516
670
  export type ChangeEventReason = AutocompleteRootChangeEventReason;
517
671
  export type ChangeEventDetails = AutocompleteRootChangeEventDetails;
672
+ export type OpenChangeEventDetails = AutocompleteRootOpenChangeEventDetails;
518
673
  export type HighlightEventReason = AutocompleteRootHighlightEventReason;
519
674
  export type HighlightEventDetails = AutocompleteRootHighlightEventDetails;
520
675
  }
521
676
 
522
677
  export declare interface AutocompleteRootActions {
523
678
  unmount: () => void;
679
+ close: () => void;
524
680
  }
525
681
 
526
- export declare type AutocompleteRootChangeEventDetails = AriaCombobox.ChangeEventDetails;
682
+ export declare type AutocompleteRootChangeEventDetails = BaseUIChangeEventDetails<AutocompleteRootChangeEventReason>;
527
683
 
528
684
  export declare type AutocompleteRootChangeEventReason = AriaCombobox.ChangeEventReason;
529
685
 
@@ -531,7 +687,35 @@ export declare type AutocompleteRootHighlightEventDetails = AriaCombobox.Highlig
531
687
 
532
688
  export declare type AutocompleteRootHighlightEventReason = AriaCombobox.HighlightEventReason;
533
689
 
534
- export declare interface AutocompleteRootProps<ItemValue> extends Omit<AriaCombobox.Props<ItemValue, 'none'>, 'selectionMode' | 'selectedValue' | 'defaultSelectedValue' | 'onSelectedValueChange' | 'fillInputOnItemPress' | 'itemToStringValue' | 'isItemEqualToValue' | 'inputValue' | 'defaultInputValue' | 'onInputValueChange' | 'autoComplete' | 'formAutoComplete' | 'itemToStringLabel' | 'autoHighlight' | 'keepHighlight' | 'highlightItemOnHover' | 'actionsRef' | 'onOpenChange' | 'openOnInputClick'> {
690
+ export declare type AutocompleteRootOpenChangeEventDetails = AutocompleteRootChangeEventDetails & {
691
+ /** Prevents the popup from unmounting until the `unmount` action is called. */
692
+ preventUnmountOnClose: () => void;
693
+ };
694
+
695
+ export declare interface AutocompleteRootProps<ItemValue> extends Omit<AriaCombobox.Props<ItemValue, 'none'>, 'selectionMode' | 'selectedValue' | 'defaultSelectedValue' | 'onSelectedValueChange' | 'fillInputOnItemPress' | 'itemToStringValue' | 'isItemEqualToValue' | 'inputValue' | 'defaultInputValue' | 'onInputValueChange' | 'autoComplete' | 'formAutoComplete' | 'itemToStringLabel' | 'inline' | 'autoHighlight' | 'keepHighlight' | 'highlightItemOnHover' | 'actionsRef' | 'onOpenChange' | 'openOnInputClick' | 'form' | 'items' | 'filteredItems' | 'filter'> {
696
+ /**
697
+ * Identifies the form that owns the internal input.
698
+ * Useful when the autocomplete is rendered outside the form.
699
+ */
700
+ form?: string | undefined;
701
+ /**
702
+ * The items to be displayed in the list.
703
+ * Can be either a flat array of items or an array of groups with items.
704
+ * Nullish entries are not supported: remove them from the data before passing it.
705
+ */
706
+ items?: readonly ItemValue[] | readonly Group<ItemValue>[] | undefined;
707
+ /**
708
+ * Filtered items to display in the list.
709
+ * When provided, the list uses these items instead of filtering the `items` prop internally.
710
+ * When `items` is also provided, this array must preserve its flat or grouped structure.
711
+ * Nullish entries are not supported, as in `items`.
712
+ * Use when you want to control filtering logic externally with the `useFilter()` hook.
713
+ */
714
+ filteredItems?: readonly ItemValue[] | readonly Group<ItemValue>[] | undefined;
715
+ /**
716
+ * Filter function used to match items against the input query.
717
+ */
718
+ filter?: AriaCombobox.Props<ItemValue, 'none'>['filter'] | undefined;
535
719
  /**
536
720
  * Controls how the autocomplete behaves with respect to list filtering and inline autocompletion.
537
721
  * - `list` (default): items are dynamically filtered based on the input value. The input value does not change based on the active item.
@@ -541,6 +725,14 @@ export declare interface AutocompleteRootProps<ItemValue> extends Omit<AriaCombo
541
725
  * @default 'list'
542
726
  */
543
727
  mode?: 'list' | 'both' | 'inline' | 'none' | undefined;
728
+ /**
729
+ * Whether the list is rendered inline without using the component's own popup.
730
+ *
731
+ * Specify `open` unconditionally in conjunction with this prop so the list is considered
732
+ * visible: `<Autocomplete.Root inline open>`
733
+ * @default false
734
+ */
735
+ inline?: boolean | undefined;
544
736
  /**
545
737
  * Whether the first matching item is highlighted automatically.
546
738
  * - `true`: highlight after the user types and keep the highlight while the query changes.
@@ -587,22 +779,25 @@ export declare interface AutocompleteRootProps<ItemValue> extends Omit<AriaCombo
587
779
  itemToStringValue?: ((itemValue: ItemValue) => string) | undefined;
588
780
  /**
589
781
  * A ref to imperative actions.
590
- * - `unmount`: When specified, the autocomplete will not be unmounted when closed.
591
- * Instead, the `unmount` function must be called to unmount the autocomplete manually.
592
- * Useful when the autocomplete's animation is controlled by an external library.
782
+ * - `unmount`: Ends the closing phase of the autocomplete after an externally controlled closing animation finishes.
783
+ * Call `preventUnmountOnClose()` in `onOpenChange` first, otherwise the autocomplete completes closing on its own.
784
+ * Whether it leaves the DOM is decided by `keepMounted` on the portal.
785
+ * - `close`: Closes the autocomplete imperatively when called.
593
786
  */
594
787
  actionsRef?: React_2.RefObject<AutocompleteRootActions | null> | undefined;
595
788
  /**
596
789
  * Event handler called when the popup is opened or closed.
597
790
  */
598
- onOpenChange?: ((open: boolean, eventDetails: AutocompleteRootChangeEventDetails) => void) | undefined;
791
+ onOpenChange?: ((open: boolean, eventDetails: AutocompleteRootOpenChangeEventDetails) => void) | undefined;
599
792
  /**
600
793
  * Callback fired when an item is highlighted or unhighlighted.
601
794
  * Receives the highlighted item value (or `undefined` if no item is highlighted) and event details with a `reason` property describing why the highlight changed.
602
795
  * The `reason` can be:
603
796
  * - `'keyboard'`: the highlight changed due to keyboard navigation.
604
- * - `'pointer'`: the highlight changed due to pointer hovering.
605
- * - `'none'`: the highlight changed programmatically.
797
+ * - `'pointer'`: the highlight changed due to pointer hovering. The event may be a `MouseEvent`
798
+ * rather than a `PointerEvent`.
799
+ * - `'none'`: the highlight changed for another reason, such as typing, `autoHighlight`, the
800
+ * item list changing, or the popup opening or closing.
606
801
  */
607
802
  onItemHighlighted?: ((highlightedValue: ItemValue | undefined, eventDetails: AutocompleteRootHighlightEventDetails) => void) | undefined;
608
803
  /**
@@ -618,6 +813,40 @@ export declare interface AutocompleteRowProps extends BaseUIComponentProps<'div'
618
813
 
619
814
  export declare interface AutocompleteRowState {}
620
815
 
816
+ /**
817
+ * A visual separator between items or groups.
818
+ * Renders a `<div>` element.
819
+ *
820
+ * Documentation: [Base UI Autocomplete](https://base-ui.com/react/components/autocomplete)
821
+ */
822
+ declare const AutocompleteSeparator: React_2.ForwardRefExoticComponent<AutocompleteSeparatorProps & React_2.RefAttributes<HTMLDivElement>>;
823
+
824
+ declare namespace AutocompleteSeparator {
825
+ type Props = AutocompleteSeparatorProps;
826
+ type State = AutocompleteSeparatorState;
827
+ }
828
+
829
+ export declare namespace AutocompleteSeparatorDataAttributes {
830
+ export {
831
+ orientation_2 as orientation
832
+ }
833
+ }
834
+
835
+ export declare interface AutocompleteSeparatorProps extends BaseUIComponentProps<'div', AutocompleteSeparatorState> {
836
+ /**
837
+ * The orientation of the separator.
838
+ * @default 'horizontal'
839
+ */
840
+ orientation?: Orientation | undefined;
841
+ }
842
+
843
+ export declare interface AutocompleteSeparatorState {
844
+ /**
845
+ * The orientation of the separator.
846
+ */
847
+ orientation: Orientation;
848
+ }
849
+
621
850
  export declare interface AutocompleteStatusProps extends BaseUIComponentProps<'div', AutocompleteStatusState> {}
622
851
 
623
852
  export declare interface AutocompleteStatusState {}
@@ -639,6 +868,24 @@ export declare namespace AutocompleteTrigger {
639
868
  export type Props = AutocompleteTriggerProps;
640
869
  }
641
870
 
871
+ export declare namespace AutocompleteTriggerDataAttributes {
872
+ export {
873
+ popupOpen,
874
+ pressed,
875
+ disabled_2 as disabled,
876
+ readonly,
877
+ popupSide,
878
+ required,
879
+ valid,
880
+ invalid,
881
+ touched,
882
+ dirty,
883
+ filled,
884
+ focused,
885
+ listEmpty
886
+ }
887
+ }
888
+
642
889
  export declare interface AutocompleteTriggerProps extends NativeButtonProps, BaseUIComponentProps<'button', AutocompleteTriggerState> {
643
890
  /**
644
891
  * Whether the component should ignore user interaction.
@@ -664,6 +911,10 @@ export declare interface AutocompleteTriggerState extends FieldRootState {
664
911
  * Present when the corresponding items list is empty.
665
912
  */
666
913
  listEmpty: boolean;
914
+ /**
915
+ * Whether the component should ignore user edits.
916
+ */
917
+ readOnly: boolean;
667
918
  }
668
919
 
669
920
  /**
@@ -685,6 +936,18 @@ export declare interface AutocompleteValueProps {
685
936
 
686
937
  export declare interface AutocompleteValueState {}
687
938
 
939
+ /**
940
+ * The available height between the trigger and the edge of the viewport.
941
+ * @type {number}
942
+ */
943
+ declare const availableHeight = "--available-height";
944
+
945
+ /**
946
+ * The available width between the trigger and the edge of the viewport.
947
+ * @type {number}
948
+ */
949
+ declare const availableWidth = "--available-width";
950
+
688
951
  declare type BaseUIChangeEventDetail<Reason extends string, CustomProperties extends object> = {
689
952
  /**
690
953
  * The reason for the event.
@@ -766,17 +1029,43 @@ declare type BaseUIGenericEventDetail<Reason extends string, CustomProperties ex
766
1029
 
767
1030
  declare type BaseUIGenericEventDetails<Reason extends string, CustomProperties extends object = {}> = Reason extends string ? BaseUIGenericEventDetail<Reason, CustomProperties> & {} : never;
768
1031
 
1032
+ /** Highlight navigation uses mouse events for hover and pointer events for leaving an item. */
1033
+ declare type BaseUIHighlightEventDetails<Reason extends string, CustomProperties extends object = {}> = Reason extends typeof REASONS.pointer ? {
1034
+ reason: Reason;
1035
+ event: MouseEvent | PointerEvent;
1036
+ } & CustomProperties : BaseUIGenericEventDetails<Reason, CustomProperties>;
1037
+
769
1038
  declare type Boundary = 'clipping-ancestors' | Element | Element[] | Rect;
770
1039
 
771
- declare const cancelOpen: "cancel-open";
1040
+ declare const cancelOpen: 'cancel-open';
1041
+
1042
+ declare const chipRemovePress: 'chip-remove-press';
772
1043
 
773
- declare const chipRemovePress: "chip-remove-press";
1044
+ declare const clearPress: 'clear-press';
1045
+
1046
+ /**
1047
+ * Present when the popup is closed.
1048
+ */
1049
+ declare const closed_2 = "data-closed";
1050
+
1051
+ /**
1052
+ * Present when the popup is closed.
1053
+ */
1054
+ declare const closed_3 = "data-closed";
1055
+
1056
+ /**
1057
+ * Present when the popup is closed.
1058
+ */
1059
+ declare const closed_4 = "data-closed";
774
1060
 
775
- declare const clearPress: "clear-press";
1061
+ /**
1062
+ * Present when the popup is closed.
1063
+ */
1064
+ declare const closed_5 = "data-closed";
776
1065
 
777
- declare const closePress: "close-press";
1066
+ declare const closePress: 'close-press';
778
1067
 
779
- declare const closeWatcher: "close-watcher";
1068
+ declare const closeWatcher: 'close-watcher';
780
1069
 
781
1070
  declare type CollisionAvoidance = SideFlipMode | SideShiftMode;
782
1071
 
@@ -827,7 +1116,7 @@ declare namespace ComboboxClear {
827
1116
  *
828
1117
  * Documentation: [Base UI Combobox](https://base-ui.com/react/components/combobox)
829
1118
  */
830
- declare function ComboboxCollection(props: ComboboxCollection.Props): React_2.JSX.Element | null;
1119
+ declare function ComboboxCollection(props: ComboboxCollection.Props): React_2.JSX.Element;
831
1120
 
832
1121
  declare namespace ComboboxCollection {
833
1122
  type State = AutocompleteCollectionState;
@@ -905,6 +1194,19 @@ declare namespace ComboboxInput {
905
1194
  type Props = AutocompleteInputProps;
906
1195
  }
907
1196
 
1197
+ /**
1198
+ * An opaque collection created by `createItems()`.
1199
+ *
1200
+ * It carries the source item and derived value types so the root can infer the list item and
1201
+ * selection value types.
1202
+ *
1203
+ * Pass it directly to the root's `items` prop; it has no public members.
1204
+ */
1205
+ declare class ComboboxItemCollection<in out Item, Value = Item> {
1206
+ private constructor();
1207
+ private readonly __itemCollectionBrand;
1208
+ }
1209
+
908
1210
  declare type ComboboxItemValueType<ItemValue, Mode extends SelectionMode_2> = Mode extends 'multiple' ? ItemValue[] : ItemValue;
909
1211
 
910
1212
  /**
@@ -960,7 +1262,7 @@ declare namespace ComboboxPositioner {
960
1262
  type Props = AutocompletePositionerProps;
961
1263
  }
962
1264
 
963
- declare interface ComboboxRootProps<ItemValue> {
1265
+ declare interface ComboboxRootProps<ItemValue, Item = ItemValue> {
964
1266
  children?: React_2.ReactNode;
965
1267
  /**
966
1268
  * Identifies the field when a form is submitted.
@@ -1004,7 +1306,7 @@ declare interface ComboboxRootProps<ItemValue> {
1004
1306
  /**
1005
1307
  * Event handler called when the popup is opened or closed.
1006
1308
  */
1007
- onOpenChange?: ((open: boolean, eventDetails: AriaCombobox.ChangeEventDetails) => void) | undefined;
1309
+ onOpenChange?: ((open: boolean, eventDetails: AriaCombobox.OpenChangeEventDetails) => void) | undefined;
1008
1310
  /**
1009
1311
  * Event handler called after any animations complete when the popup is opened or closed.
1010
1312
  */
@@ -1056,9 +1358,10 @@ declare interface ComboboxRootProps<ItemValue> {
1056
1358
  defaultInputValue?: React_2.ComponentProps<'input'>['defaultValue'] | undefined;
1057
1359
  /**
1058
1360
  * A ref to imperative actions.
1059
- * - `unmount`: When specified, the combobox will not be unmounted when closed.
1060
- * Instead, the `unmount` function must be called to unmount the combobox manually.
1061
- * Useful when the combobox's animation is controlled by an external library.
1361
+ * - `unmount`: Ends the closing phase of the combobox after an externally controlled closing animation finishes.
1362
+ * Call `preventUnmountOnClose()` in `onOpenChange` first, otherwise the combobox completes closing on its own.
1363
+ * Whether it leaves the DOM is decided by `keepMounted` on the portal.
1364
+ * - `close`: Closes the combobox imperatively when called.
1062
1365
  */
1063
1366
  actionsRef?: React_2.RefObject<AriaCombobox.Actions | null> | undefined;
1064
1367
  /**
@@ -1066,8 +1369,10 @@ declare interface ComboboxRootProps<ItemValue> {
1066
1369
  * Receives the highlighted item value (or `undefined` if no item is highlighted) and event details with a `reason` property describing why the highlight changed.
1067
1370
  * The `reason` can be:
1068
1371
  * - `'keyboard'`: the highlight changed due to keyboard navigation.
1069
- * - `'pointer'`: the highlight changed due to pointer hovering.
1070
- * - `'none'`: the highlight changed programmatically.
1372
+ * - `'pointer'`: the highlight changed due to pointer hovering. The event may be a `MouseEvent`
1373
+ * rather than a `PointerEvent`.
1374
+ * - `'none'`: the highlight changed for another reason, such as typing, `autoHighlight`, the
1375
+ * item list changing, or the popup opening or closing.
1071
1376
  */
1072
1377
  onItemHighlighted?: ((itemValue: ItemValue | undefined, eventDetails: AriaCombobox.HighlightEventDetails) => void) | undefined;
1073
1378
  /**
@@ -1082,31 +1387,42 @@ declare interface ComboboxRootProps<ItemValue> {
1082
1387
  grid?: boolean | undefined;
1083
1388
  /**
1084
1389
  * The items to be displayed in the list.
1085
- * Can be either a flat array of items or an array of groups with items.
1390
+ * Can be a flat array of items, an array of groups with items, or a collection created by
1391
+ * the `createItems()` function, which derives each item's selection value and label.
1392
+ * Nullish entries are not supported: remove them from the data before passing it.
1086
1393
  */
1087
- items?: readonly any[] | readonly Group<any>[] | undefined;
1394
+ items?: readonly any[] | readonly Group<any>[] | ComboboxItemCollection<Item, ItemValue> | undefined;
1088
1395
  /**
1089
1396
  * Filtered items to display in the list.
1090
- * When provided, the list will use these items instead of filtering the `items` prop internally.
1397
+ * When provided, the list uses these items instead of filtering the `items` prop internally.
1398
+ * When `items` is also provided, this array must preserve its flat or grouped structure.
1399
+ * With a `createItems()` collection, pass source items rather than derived values.
1400
+ * Nullish entries are not supported, as in `items`.
1091
1401
  * Use when you want to control filtering logic externally with the `useFilter()` hook.
1092
1402
  */
1093
- filteredItems?: readonly any[] | readonly Group<any>[] | undefined;
1403
+ filteredItems?: readonly Item[] | readonly Group<Item>[] | undefined;
1094
1404
  /**
1095
1405
  * Filter function used to match items vs input query.
1406
+ * Receives the source item, which is the derived value's item when `items` is a `createItems()`
1407
+ * collection, and the item itself otherwise.
1096
1408
  */
1097
- filter?: null | ((itemValue: ItemValue, query: string, itemToString?: (itemValue: ItemValue) => string) => boolean) | undefined;
1409
+ filter?: null | ((item: Item, query: string, itemToString?: (item: Item) => string) => boolean) | undefined;
1098
1410
  /**
1099
1411
  * When the item values are objects (`<Combobox.Item value={object}>`), this function converts the object value to a string representation for display in the input.
1100
1412
  * If the shape of the object is `{ value, label }`, the label will be used automatically without needing to specify this prop.
1413
+ * With a `createItems()` collection, this receives the derived value, and the collection's
1414
+ * `getLabel` takes precedence for values it can resolve.
1101
1415
  */
1102
1416
  itemToStringLabel?: ((itemValue: ItemValue) => string) | undefined;
1103
1417
  /**
1104
1418
  * When the item values are objects (`<Combobox.Item value={object}>`), this function converts the object value to a string representation for form submission.
1105
1419
  * If the shape of the object is `{ value, label }`, the value will be used automatically without needing to specify this prop.
1420
+ * With a `createItems()` collection, this receives the derived value.
1106
1421
  */
1107
1422
  itemToStringValue?: ((itemValue: ItemValue) => string) | undefined;
1108
1423
  /**
1109
1424
  * Custom comparison logic used to determine if a combobox item value matches the current selected value. Useful when item values are objects without matching referentially.
1425
+ * With a `createItems()` collection, both arguments are derived values.
1110
1426
  * Defaults to `Object.is` comparison.
1111
1427
  */
1112
1428
  isItemEqualToValue?: ((itemValue: ItemValue, value: ItemValue) => boolean) | undefined;
@@ -1116,7 +1432,15 @@ declare interface ComboboxRootProps<ItemValue> {
1116
1432
  */
1117
1433
  virtualized?: boolean | undefined;
1118
1434
  /**
1119
- * Whether the list is rendered inline without using the popup.
1435
+ * Whether the list is rendered inline without using the component's own popup.
1436
+ *
1437
+ * Specify `open` unconditionally in conjunction with this prop so the list is considered
1438
+ * visible: `<Combobox.Root inline open>`
1439
+ *
1440
+ * In a `Combobox.Root` > `Dialog.Root` composition, bind the Combobox's `open` and
1441
+ * `onOpenChange` props to the `Dialog`'s `open` and `onOpenChange` state instead so the
1442
+ * component resets its transient state (filter query, highlighted item, and input value) when
1443
+ * the dialog closes.
1120
1444
  * @default false
1121
1445
  */
1122
1446
  inline?: boolean | undefined;
@@ -1124,6 +1448,8 @@ declare interface ComboboxRootProps<ItemValue> {
1124
1448
  * Determines if the popup enters a modal state when open.
1125
1449
  * - `true`: user interaction is limited to the popup: document page scroll is locked and pointer interactions on outside elements are disabled.
1126
1450
  * - `false`: user interaction with the rest of the document is allowed.
1451
+ *
1452
+ * On touch devices, a `true` modal blocks outside taps but leaves the page scrollable unless the popup spans nearly the full viewport width, matching native iOS behavior.
1127
1453
  * @default false
1128
1454
  */
1129
1455
  modal?: boolean | undefined;
@@ -1202,15 +1528,80 @@ declare namespace ComboboxStatus {
1202
1528
  */
1203
1529
  declare type ComponentRenderFn<Props, State> = (props: Props, state: State) => React_2.ReactElement<unknown>;
1204
1530
 
1205
- declare const decrementPress: "decrement-press";
1531
+ declare const decrementPress: 'decrement-press';
1532
+
1533
+ /**
1534
+ * Present when the component's value has changed (when wrapped in Field.Root).
1535
+ */
1536
+ declare const dirty = "data-dirty";
1537
+
1538
+ /**
1539
+ * Present when the component's value has changed (when wrapped in Field.Root).
1540
+ */
1541
+ declare const dirty_2 = "data-dirty";
1542
+
1543
+ /**
1544
+ * Present when the component's value has changed (when wrapped in Field.Root).
1545
+ */
1546
+ declare const dirty_3 = "data-dirty";
1547
+
1548
+ declare const disabled: 'disabled';
1549
+
1550
+ /**
1551
+ * Present when the component is disabled.
1552
+ */
1553
+ declare const disabled_2 = "data-disabled";
1554
+
1555
+ /**
1556
+ * Present when the component is disabled.
1557
+ */
1558
+ declare const disabled_3 = "data-disabled";
1559
+
1560
+ /**
1561
+ * Present when the component is disabled.
1562
+ */
1563
+ declare const disabled_4 = "data-disabled";
1564
+
1565
+ /**
1566
+ * Present when the button is disabled.
1567
+ */
1568
+ declare const disabled_5 = "data-disabled";
1569
+
1570
+ /**
1571
+ * Present when the item is disabled.
1572
+ */
1573
+ declare const disabled_6 = "data-disabled";
1574
+
1575
+ declare const drag: 'drag';
1576
+
1577
+ /**
1578
+ * Present when the items list is empty.
1579
+ */
1580
+ declare const empty = "data-empty";
1581
+
1582
+ /**
1583
+ * Present when the items list is empty.
1584
+ */
1585
+ declare const empty_2 = "data-empty";
1586
+
1587
+ /**
1588
+ * Present when the button is animating out.
1589
+ */
1590
+ declare const endingStyle = "data-ending-style";
1206
1591
 
1207
- declare const disabled: "disabled";
1592
+ /**
1593
+ * Present when the popup is animating out.
1594
+ */
1595
+ declare const endingStyle_2 = "data-ending-style";
1208
1596
 
1209
- declare const drag: "drag";
1597
+ /**
1598
+ * Present when the popup is animating out.
1599
+ */
1600
+ declare const endingStyle_3 = "data-ending-style";
1210
1601
 
1211
1602
  declare type Errors = Record<string, string | string[]>;
1212
1603
 
1213
- declare const escapeKey: "escape-key";
1604
+ declare const escapeKey: 'escape-key';
1214
1605
 
1215
1606
  /**
1216
1607
  * Groups all parts of the field.
@@ -1244,11 +1635,12 @@ declare interface FieldRootProps extends BaseUIComponentProps<'div', FieldRootSt
1244
1635
  name?: string | undefined;
1245
1636
  /**
1246
1637
  * A function for custom validation. Return a string or an array of strings with
1247
- * the error message(s) if the value is invalid, or `null` if the value is valid.
1638
+ * the error message(s) if the value is invalid. Returning nothing, `null`, an empty
1639
+ * string, or an empty array means the value is valid.
1248
1640
  * Asynchronous functions are supported, but they do not prevent form submission
1249
1641
  * when using `validationMode="onSubmit"`.
1250
1642
  */
1251
- validate?: ((value: unknown, formValues: Form.Values) => string | string[] | null | Promise<string | string[] | null>) | undefined;
1643
+ validate?: ((value: unknown, formValues: Form.Values) => string | string[] | null | void | Promise<string | string[] | null | void>) | undefined;
1252
1644
  /**
1253
1645
  * Determines when the field should be validated.
1254
1646
  * This takes precedence over the `validationMode` prop on `<Form>`.
@@ -1336,31 +1728,36 @@ declare interface FieldValidityData {
1336
1728
  }
1337
1729
 
1338
1730
  /**
1339
- * Portals the floating element into a given container element — by default,
1340
- * outside of the app root and into the body.
1341
- * This is necessary to ensure the floating element can appear outside any
1342
- * potential parent containers that cause clipping (such as `overflow: hidden`),
1343
- * while retaining its location in the React tree.
1344
- * @see https://floating-ui.com/docs/FloatingPortal
1345
- * @internal
1731
+ * Present when the component has a value (when wrapped in Field.Root).
1346
1732
  */
1347
- declare const FloatingPortal: React_2.ForwardRefExoticComponent<Omit<FloatingPortal.Props<any> & {
1348
- renderGuards?: boolean | undefined;
1349
- }, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
1733
+ declare const filled = "data-filled";
1350
1734
 
1351
- declare namespace FloatingPortal {
1352
- type State = FloatingPortalState;
1353
- interface Props<TState> extends BaseUIComponentProps<'div', TState> {
1354
- /**
1355
- * A parent element to render the portal element into.
1356
- */
1357
- container?: UseFloatingPortalNodeProps['container'] | undefined;
1358
- }
1359
- }
1735
+ /**
1736
+ * Present when the component has a value (when wrapped in Field.Root).
1737
+ */
1738
+ declare const filled_2 = "data-filled";
1739
+
1740
+ /**
1741
+ * Present when the component has a value (when wrapped in Field.Root).
1742
+ */
1743
+ declare const filled_3 = "data-filled";
1744
+
1745
+ /**
1746
+ * Present when the trigger is focused (when wrapped in Field.Root).
1747
+ */
1748
+ declare const focused = "data-focused";
1749
+
1750
+ /**
1751
+ * Present when the input is focused (when wrapped in Field.Root).
1752
+ */
1753
+ declare const focused_2 = "data-focused";
1360
1754
 
1361
- declare interface FloatingPortalState {}
1755
+ /**
1756
+ * Present when the component is focused (when wrapped in Field.Root).
1757
+ */
1758
+ declare const focused_3 = "data-focused";
1362
1759
 
1363
- declare const focusOut: "focus-out";
1760
+ declare const focusOut: 'focus-out';
1364
1761
 
1365
1762
  /**
1366
1763
  * A native form element with consolidated error handling.
@@ -1391,6 +1788,7 @@ declare interface FormActions {
1391
1788
  declare interface FormContext {
1392
1789
  errors: Errors;
1393
1790
  clearErrors: (name: string | undefined) => void;
1791
+ elementRef: React_2.RefObject<HTMLFormElement | null>;
1394
1792
  formRef: React_2.RefObject<{
1395
1793
  fields: Map<string, {
1396
1794
  name: string | undefined;
@@ -1405,12 +1803,12 @@ declare interface FormContext {
1405
1803
  }>;
1406
1804
  }>;
1407
1805
  validationMode: Form.ValidationMode;
1408
- submitAttemptedRef: React_2.RefObject<boolean>;
1806
+ submitCountRef: React_2.RefObject<number>;
1409
1807
  }
1410
1808
 
1411
1809
  declare const FormContext: React_2.Context<FormContext>;
1412
1810
 
1413
- declare interface FormProps<FormValues extends Record<string, any> = Record<string, any>> extends BaseUIComponentProps<'form', FormState> {
1811
+ declare interface FormProps<FormValues extends Record<string, any> = Record<string, any>> extends BaseUIComponentProps<'form', FormState, React_2.ComponentPropsWithRef<'form'>> {
1414
1812
  /**
1415
1813
  * Determines when the form should be validated.
1416
1814
  * The `validationMode` prop on `<Field.Root>` takes precedence over this.
@@ -1439,10 +1837,10 @@ declare interface FormProps<FormValues extends Record<string, any> = Record<stri
1439
1837
  * @example
1440
1838
  * ```tsx
1441
1839
  * // validate all fields
1442
- * actionsRef.current.validate();
1840
+ * actionsRef.current?.validate();
1443
1841
  *
1444
1842
  * // validate one field
1445
- * actionsRef.current.validate('email');
1843
+ * actionsRef.current?.validate('email');
1446
1844
  * ```
1447
1845
  */
1448
1846
  actionsRef?: React_2.RefObject<Form.Actions | null> | undefined;
@@ -1463,35 +1861,74 @@ declare interface Group<Item = any> {
1463
1861
  items: ReadonlyArray<Item>;
1464
1862
  }
1465
1863
 
1864
+ /**
1865
+ * Present when the item is highlighted.
1866
+ */
1867
+ declare const highlighted = "data-highlighted";
1868
+
1466
1869
  declare type HTMLProps<T = any> = React_2.HTMLAttributes<T> & {
1467
1870
  ref?: React_2.Ref<T> | undefined;
1468
1871
  };
1469
1872
 
1470
- declare const imperativeAction: "imperative-action";
1873
+ declare const imperativeAction: 'imperative-action';
1874
+
1875
+ declare const incrementPress: 'increment-press';
1876
+
1877
+ declare const initial: 'initial';
1878
+
1879
+ declare const inputBlur: 'input-blur';
1880
+
1881
+ declare const inputChange: 'input-change';
1882
+
1883
+ declare const inputClear: 'input-clear';
1471
1884
 
1472
- declare const incrementPress: "increment-press";
1885
+ declare const inputPaste: 'input-paste';
1473
1886
 
1474
- declare const initial: "initial";
1887
+ declare const inputPress: 'input-press';
1475
1888
 
1476
- declare const inputBlur: "input-blur";
1889
+ declare type InternalAriaComboboxProps<Value, Mode extends SelectionMode_2, Item = Value> = AriaComboboxProps<Value, Mode, Item> & {
1890
+ filterQuery?: string | undefined;
1891
+ };
1477
1892
 
1478
- declare const inputChange: "input-change";
1893
+ /**
1894
+ * Present when the component is in an invalid state (when wrapped in Field.Root).
1895
+ */
1896
+ declare const invalid = "data-invalid";
1479
1897
 
1480
- declare const inputClear: "input-clear";
1898
+ /**
1899
+ * Present when the component is in an invalid state (when wrapped in Field.Root).
1900
+ */
1901
+ declare const invalid_2 = "data-invalid";
1481
1902
 
1482
- declare const inputPaste: "input-paste";
1903
+ /**
1904
+ * Present when the component is in an invalid state (when wrapped in Field.Root).
1905
+ */
1906
+ declare const invalid_3 = "data-invalid";
1907
+
1908
+ declare const itemPress: 'item-press';
1909
+
1910
+ declare const keyboard: 'keyboard';
1483
1911
 
1484
- declare const inputPress: "input-press";
1912
+ declare const linkPress: 'link-press';
1485
1913
 
1486
- declare const itemPress: "item-press";
1914
+ /**
1915
+ * Present when the corresponding items list is empty.
1916
+ */
1917
+ declare const listEmpty = "data-list-empty";
1487
1918
 
1488
- declare const keyboard: "keyboard";
1919
+ /**
1920
+ * Present when the corresponding items list is empty.
1921
+ */
1922
+ declare const listEmpty_2 = "data-list-empty";
1489
1923
 
1490
- declare const linkPress: "link-press";
1924
+ /**
1925
+ * Present when the corresponding items list is empty.
1926
+ */
1927
+ declare const listEmpty_3 = "data-list-empty";
1491
1928
 
1492
- declare const listNavigation: "list-navigation";
1929
+ declare const listNavigation: 'list-navigation';
1493
1930
 
1494
- declare const missing: "missing";
1931
+ declare const missing: 'missing';
1495
1932
 
1496
1933
  declare interface NativeButtonProps {
1497
1934
  /**
@@ -1503,7 +1940,7 @@ declare interface NativeButtonProps {
1503
1940
  nativeButton?: boolean | undefined;
1504
1941
  }
1505
1942
 
1506
- declare const none: "none";
1943
+ declare const none: 'none';
1507
1944
 
1508
1945
  declare interface NonNativeButtonProps {
1509
1946
  /**
@@ -1528,11 +1965,107 @@ declare type OffsetFunction = (data: {
1528
1965
  };
1529
1966
  }) => number;
1530
1967
 
1968
+ /**
1969
+ * Present when the popup is open.
1970
+ */
1971
+ declare const open_2 = "data-open";
1972
+
1973
+ /**
1974
+ * Present when the popup is open.
1975
+ */
1976
+ declare const open_3 = "data-open";
1977
+
1978
+ /**
1979
+ * Present when the popup is open.
1980
+ */
1981
+ declare const open_4 = "data-open";
1982
+
1983
+ /**
1984
+ * Present when the popup is open.
1985
+ */
1986
+ declare const open_5 = "data-open";
1987
+
1531
1988
  declare type Orientation = 'horizontal' | 'vertical';
1532
1989
 
1533
- declare const outsidePress: "outside-press";
1990
+ /**
1991
+ * Indicates the orientation of the separator.
1992
+ * @type {'horizontal' | 'vertical'}
1993
+ */
1994
+ declare const orientation_2 = "data-orientation";
1995
+
1996
+ declare const outsidePress: 'outside-press';
1997
+
1998
+ declare const pointer: 'pointer';
1999
+
2000
+ declare const popupClose: 'popup-close';
2001
+
2002
+ /**
2003
+ * Present when the corresponding popup is open.
2004
+ */
2005
+ declare const popupOpen = "data-popup-open";
2006
+
2007
+ /**
2008
+ * Present when the corresponding popup is open.
2009
+ */
2010
+ declare const popupOpen_2 = "data-popup-open";
2011
+
2012
+ /**
2013
+ * Present when the corresponding popup is open.
2014
+ */
2015
+ declare const popupOpen_3 = "data-popup-open";
2016
+
2017
+ /**
2018
+ * Present when the corresponding popup is open.
2019
+ */
2020
+ declare const popupOpen_4 = "data-popup-open";
2021
+
2022
+ /**
2023
+ * Indicates which side the corresponding popup is positioned relative to its anchor.
2024
+ * @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start' | null}
2025
+ */
2026
+ declare const popupSide = "data-popup-side";
2027
+
2028
+ /**
2029
+ * Indicates which side the corresponding popup is positioned relative to its anchor.
2030
+ * @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start' | null}
2031
+ */
2032
+ declare const popupSide_2 = "data-popup-side";
2033
+
2034
+ /**
2035
+ * Indicates which side the corresponding popup is positioned relative to its anchor.
2036
+ * @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start' | null}
2037
+ */
2038
+ declare const popupSide_3 = "data-popup-side";
2039
+
2040
+ /**
2041
+ * Present when the trigger is pressed.
2042
+ */
2043
+ declare const pressed = "data-pressed";
2044
+
2045
+ /**
2046
+ * Present when the input is pressed.
2047
+ */
2048
+ declare const pressed_2 = "data-pressed";
2049
+
2050
+ /**
2051
+ * Present when the input group is pressed.
2052
+ */
2053
+ declare const pressed_3 = "data-pressed";
2054
+
2055
+ /**
2056
+ * Present when the component is readonly.
2057
+ */
2058
+ declare const readonly = "data-readonly";
2059
+
2060
+ /**
2061
+ * Present when the component is readonly.
2062
+ */
2063
+ declare const readonly_2 = "data-readonly";
1534
2064
 
1535
- declare const pointer: "pointer";
2065
+ /**
2066
+ * Present when the component is readonly.
2067
+ */
2068
+ declare const readonly_3 = "data-readonly";
1536
2069
 
1537
2070
  declare namespace REASONS {
1538
2071
  export {
@@ -1563,6 +2096,7 @@ declare namespace REASONS {
1563
2096
  drag,
1564
2097
  wheel,
1565
2098
  scrub,
2099
+ popupClose,
1566
2100
  cancelOpen,
1567
2101
  siblingOpen,
1568
2102
  disabled,
@@ -1617,42 +2151,42 @@ declare interface ReasonToEventMap {
1617
2151
  [REASONS.windowResize]: UIEvent;
1618
2152
  }
1619
2153
 
1620
- declare const scrub: "scrub";
1621
-
1622
- declare type SelectionMode_2 = 'single' | 'multiple' | 'none';
1623
-
1624
2154
  /**
1625
- * A separator element accessible to screen readers.
1626
- * Renders a `<div>` element.
1627
- *
1628
- * Documentation: [Base UI Separator](https://base-ui.com/react/components/separator)
2155
+ * Present when the component is required.
1629
2156
  */
1630
- declare const Separator: React_2.ForwardRefExoticComponent<Omit<SeparatorProps, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
2157
+ declare const required = "data-required";
1631
2158
 
1632
- declare namespace Separator {
1633
- type Props = SeparatorProps;
1634
- type State = SeparatorState;
1635
- }
2159
+ /**
2160
+ * Present when the component is required.
2161
+ */
2162
+ declare const required_2 = "data-required";
1636
2163
 
1637
- declare interface SeparatorProps extends BaseUIComponentProps<'div', SeparatorState> {
1638
- /**
1639
- * The orientation of the separator.
1640
- * @default 'horizontal'
1641
- */
1642
- orientation?: Orientation | undefined;
1643
- }
2164
+ declare const scrub: 'scrub';
1644
2165
 
1645
- declare interface SeparatorState {
1646
- /**
1647
- * The orientation of the separator.
1648
- */
1649
- orientation: Orientation;
1650
- }
2166
+ declare type SelectionMode_2 = 'single' | 'multiple' | 'none';
1651
2167
 
1652
- declare const siblingOpen: "sibling-open";
2168
+ declare const siblingOpen: 'sibling-open';
1653
2169
 
1654
2170
  declare type Side = 'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start';
1655
2171
 
2172
+ /**
2173
+ * Indicates which side the popup is positioned relative to the trigger.
2174
+ * @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}
2175
+ */
2176
+ declare const side = "data-side";
2177
+
2178
+ /**
2179
+ * Indicates which side the popup is positioned relative to the trigger.
2180
+ * @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}
2181
+ */
2182
+ declare const side_2 = "data-side";
2183
+
2184
+ /**
2185
+ * Indicates which side the popup is positioned relative to the trigger.
2186
+ * @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}
2187
+ */
2188
+ declare const side_3 = "data-side";
2189
+
1656
2190
  declare interface SideFlipMode {
1657
2191
  /**
1658
2192
  * How to avoid collisions on the side axis.
@@ -1700,19 +2234,60 @@ declare interface SideShiftMode {
1700
2234
  fallbackAxisSide?: 'start' | 'end' | 'none' | undefined;
1701
2235
  }
1702
2236
 
1703
- declare const swipe: "swipe";
2237
+ /**
2238
+ * Present when the button begins animating in.
2239
+ */
2240
+ declare const startingStyle = "data-starting-style";
2241
+
2242
+ /**
2243
+ * Present when the popup begins animating in.
2244
+ */
2245
+ declare const startingStyle_2 = "data-starting-style";
2246
+
2247
+ /**
2248
+ * Present when the popup begins animating in.
2249
+ */
2250
+ declare const startingStyle_3 = "data-starting-style";
2251
+
2252
+ declare const swipe: 'swipe';
2253
+
2254
+ /**
2255
+ * Present when the component has been touched (when wrapped in Field.Root).
2256
+ */
2257
+ declare const touched = "data-touched";
2258
+
2259
+ /**
2260
+ * Present when the component has been touched (when wrapped in Field.Root).
2261
+ */
2262
+ declare const touched_2 = "data-touched";
1704
2263
 
1705
- declare const trackPress: "track-press";
2264
+ /**
2265
+ * Present when the component has been touched (when wrapped in Field.Root).
2266
+ */
2267
+ declare const touched_3 = "data-touched";
2268
+
2269
+ declare const trackPress: 'track-press';
2270
+
2271
+ /**
2272
+ * The coordinates that this element is anchored to. Used for animations and transitions.
2273
+ * @type {string}
2274
+ */
2275
+ declare const transformOrigin = "--transform-origin";
1706
2276
 
1707
2277
  declare type TransitionStatus = 'starting' | 'ending' | 'idle' | undefined;
1708
2278
 
1709
2279
  declare function Trigger({ className, ...props }: WithStringClassName<Autocomplete_2.Trigger.Props> & React_2.RefAttributes<HTMLButtonElement>): JSX_2.Element;
1710
2280
 
1711
- declare const triggerFocus: "trigger-focus";
2281
+ declare const triggerFocus: 'trigger-focus';
2282
+
2283
+ declare const triggerHover: 'trigger-hover';
1712
2284
 
1713
- declare const triggerHover: "trigger-hover";
2285
+ declare const triggerPress: 'trigger-press';
1714
2286
 
1715
- declare const triggerPress: "trigger-press";
2287
+ /**
2288
+ * Present when the arrow is uncentered.
2289
+ */
2290
+ declare const uncentered = "data-uncentered";
1716
2291
 
1717
2292
  declare interface UseAnchorPositioningSharedParameters {
1718
2293
  /**
@@ -1863,36 +2438,33 @@ declare const useCoreFilter: typeof getFilter;
1863
2438
 
1864
2439
  /**
1865
2440
  * Returns the internally filtered items.
2441
+ * Treat the result as read-only: it is internal state and may be a shared frozen array.
1866
2442
  */
1867
2443
  declare function useFilteredItems<T>(): T[];
1868
2444
 
1869
- declare interface UseFloatingPortalNodeProps {
1870
- ref?: React_2.Ref<HTMLDivElement> | undefined;
1871
- container?: HTMLElement | ShadowRoot | null | React_2.RefObject<HTMLElement | ShadowRoot | null> | undefined;
1872
- componentProps?: UseRenderElementComponentProps<any> | undefined;
1873
- elementProps?: React_2.HTMLAttributes<HTMLDivElement> | undefined;
1874
- }
2445
+ /**
2446
+ * Present when the component is in a valid state (when wrapped in Field.Root).
2447
+ */
2448
+ declare const valid = "data-valid";
1875
2449
 
1876
- declare interface UseRenderElementComponentProps<State> {
1877
- /**
1878
- * The class name to apply to the rendered element.
1879
- * Can be a string or a function that accepts the state and returns a string.
1880
- */
1881
- className?: string | ((state: State) => string | undefined) | undefined;
1882
- /**
1883
- * The render prop or React element to override the default element.
1884
- */
1885
- render?: undefined | React_2.ReactElement | ComponentRenderFn<React_2.HTMLAttributes<any>, State>;
1886
- /**
1887
- * The style to apply to the rendered element.
1888
- * Can be a style object or a function that accepts the state and returns a style object.
1889
- */
1890
- style?: React_2.CSSProperties | ((state: State) => React_2.CSSProperties | undefined) | undefined;
1891
- }
2450
+ /**
2451
+ * Present when the component is in a valid state (when wrapped in Field.Root).
2452
+ */
2453
+ declare const valid_2 = "data-valid";
2454
+
2455
+ /**
2456
+ * Present when the component is in a valid state (when wrapped in Field.Root).
2457
+ */
2458
+ declare const valid_3 = "data-valid";
2459
+
2460
+ /**
2461
+ * Present when the clear button is visible.
2462
+ */
2463
+ declare const visible = "data-visible";
1892
2464
 
1893
- declare const wheel: "wheel";
2465
+ declare const wheel: 'wheel';
1894
2466
 
1895
- declare const windowResize: "window-resize";
2467
+ declare const windowResize: 'window-resize';
1896
2468
 
1897
2469
  /**
1898
2470
  * Adds a `preventBaseUIHandler` method to all event handlers.