@wix/site-ui 1.347.0 → 1.349.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
@@ -19,50 +19,93 @@ import { ComboboxInputGroupProps as ComboboxInputGroupProps_2 } from '@base-ui/r
19
19
  import { ComboboxItemIndicatorProps as ComboboxItemIndicatorProps_2 } from '@base-ui/react';
20
20
  import { ComboboxItemProps as ComboboxItemProps_2 } from '@base-ui/react';
21
21
  import { ComboboxLabelProps as ComboboxLabelProps_2 } from '@base-ui/react';
22
+ import { ComboboxSeparatorProps as ComboboxSeparatorProps_2 } from '@base-ui/react';
22
23
  import { ComboboxTriggerProps as ComboboxTriggerProps_2 } from '@base-ui/react';
23
- import { InteractionType } from '@base-ui/utils/useEnhancedClickHandler';
24
+ import type { InteractionType } from '@base-ui/utils/useEnhancedClickHandler';
24
25
  import { Padding } from '@floating-ui/react-dom';
25
26
  import * as React_2 from 'react';
26
- import { Rect } from '@floating-ui/utils';
27
- import { SeparatorProps as SeparatorProps_2 } from '@base-ui/react';
27
+ import type { Rect } from '@floating-ui/utils';
28
28
  import { VirtualElement } from '@floating-ui/react-dom';
29
29
 
30
30
  declare type Align = 'start' | 'center' | 'end';
31
31
 
32
32
  /**
33
- * @internal
33
+ * Indicates how the popup is aligned relative to specified side.
34
+ * @type {'start' | 'center' | 'end'}
34
35
  */
35
- declare function AriaCombobox<Value, Mode extends SelectionMode_2 = 'none'>(props: Omit<AriaComboboxProps<Value, Mode>, 'items'> & {
36
- items: readonly Group<any>[];
37
- }): React_2.JSX.Element;
36
+ declare const align = "data-align";
38
37
 
39
- declare function AriaCombobox<Value, Mode extends SelectionMode_2 = 'none'>(props: Omit<AriaComboboxProps<Value, Mode>, 'items'> & {
40
- items?: readonly any[] | undefined;
38
+ /**
39
+ * Indicates how the popup is aligned relative to specified side.
40
+ * @type {'start' | 'center' | 'end'}
41
+ */
42
+ declare const align_2 = "data-align";
43
+
44
+ /**
45
+ * Indicates how the popup is aligned relative to specified side.
46
+ * @type {'start' | 'center' | 'end'}
47
+ */
48
+ declare const align_3 = "data-align";
49
+
50
+ /**
51
+ * The anchor's height.
52
+ * @type {number}
53
+ */
54
+ declare const anchorHeight = "--anchor-height";
55
+
56
+ /**
57
+ * Present when the anchor is hidden.
58
+ */
59
+ declare const anchorHidden = "data-anchor-hidden";
60
+
61
+ /**
62
+ * Present when the anchor is hidden.
63
+ */
64
+ declare const anchorHidden_2 = "data-anchor-hidden";
65
+
66
+ /**
67
+ * The anchor's width.
68
+ * @type {number}
69
+ */
70
+ declare const anchorWidth = "--anchor-width";
71
+
72
+ declare function AriaCombobox<Value, Mode extends SelectionMode_2 = 'none', Item = Value>(props: Omit<InternalAriaComboboxProps<Value, Mode, Item>, 'items'> & {
73
+ items?: readonly any[] | ComboboxItemCollection<Item, any> | undefined;
41
74
  }): React_2.JSX.Element;
42
75
 
43
76
  declare namespace AriaCombobox {
44
- type Props<Value, Mode extends SelectionMode_2 = 'none'> = AriaComboboxProps<Value, Mode>;
77
+ type Props<Value, Mode extends SelectionMode_2 = 'none', Item = Value> = AriaComboboxProps<Value, Mode, Item>;
45
78
  type State = AriaComboboxState;
46
79
  interface Actions {
47
80
  unmount: () => void;
81
+ close: () => void;
48
82
  }
49
- type HighlightEventReason = 'keyboard' | 'pointer' | 'none';
50
- type HighlightEventDetails = BaseUIGenericEventDetails<HighlightEventReason, {
83
+ type HighlightEventReason = typeof REASONS.keyboard | typeof REASONS.pointer | typeof REASONS.none;
84
+ type HighlightEventDetails = BaseUIHighlightEventDetails<HighlightEventReason, {
51
85
  index: number;
52
86
  }>;
53
- 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;
54
- type ChangeEventDetails = BaseUIChangeEventDetails<ChangeEventReason>;
87
+ 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;
88
+ type OpenChangeEventDetails = ChangeEventDetails & {
89
+ /** Prevents the popup from unmounting until the `unmount` action is called. */
90
+ preventUnmountOnClose: () => void;
91
+ };
92
+ type ChangeEventDetails = BaseUIChangeEventDetails<ChangeEventReason> & {
93
+ /**
94
+ * When `reason` is `input-clear` in multiple mode, indicates whether an item press caused the
95
+ * clear. Automatic cleanup clears omit this property.
96
+ */
97
+ isItemPress?: boolean | undefined;
98
+ };
55
99
  }
56
100
 
57
- declare type AriaComboboxProps<Value, Mode extends SelectionMode_2 = 'none'> = ComboboxRootProps_2<Value> & {
101
+ declare type AriaComboboxProps<Value, Mode extends SelectionMode_2 = 'none', Item = Value> = ComboboxRootProps_2<Value, Item> & {
58
102
  /**
59
103
  * How the combobox should remember the selected value.
60
104
  * - `single`: Remembers the last selected value.
61
105
  * - `multiple`: Remember all selected values.
62
106
  * - `none`: Do not remember the selected value.
63
- * @default 'none'
64
107
  */
65
- selectionMode?: Mode | undefined;
108
+ selectionMode: Mode;
66
109
  /**
67
110
  * The selected value of the combobox. Use when controlled.
68
111
  */
@@ -81,6 +124,18 @@ declare type AriaComboboxProps<Value, Mode extends SelectionMode_2 = 'none'> = C
81
124
 
82
125
  declare interface AriaComboboxState {}
83
126
 
127
+ /**
128
+ * The available height between the trigger and the edge of the viewport.
129
+ * @type {number}
130
+ */
131
+ declare const availableHeight = "--available-height";
132
+
133
+ /**
134
+ * The available width between the trigger and the edge of the viewport.
135
+ * @type {number}
136
+ */
137
+ declare const availableWidth = "--available-width";
138
+
84
139
  declare type BaseUIChangeEventDetail<Reason extends string, CustomProperties extends object> = {
85
140
  /**
86
141
  * The reason for the event.
@@ -162,17 +217,43 @@ declare type BaseUIGenericEventDetail<Reason extends string, CustomProperties ex
162
217
 
163
218
  declare type BaseUIGenericEventDetails<Reason extends string, CustomProperties extends object = {}> = Reason extends string ? BaseUIGenericEventDetail<Reason, CustomProperties> & {} : never;
164
219
 
220
+ /** Highlight navigation uses mouse events for hover and pointer events for leaving an item. */
221
+ declare type BaseUIHighlightEventDetails<Reason extends string, CustomProperties extends object = {}> = Reason extends typeof REASONS.pointer ? {
222
+ reason: Reason;
223
+ event: MouseEvent | PointerEvent;
224
+ } & CustomProperties : BaseUIGenericEventDetails<Reason, CustomProperties>;
225
+
165
226
  declare type Boundary = 'clipping-ancestors' | Element | Element[] | Rect;
166
227
 
167
- declare const cancelOpen: "cancel-open";
228
+ declare const cancelOpen: 'cancel-open';
229
+
230
+ declare const chipRemovePress: 'chip-remove-press';
231
+
232
+ declare const clearPress: 'clear-press';
233
+
234
+ /**
235
+ * Present when the popup is closed.
236
+ */
237
+ declare const closed_2 = "data-closed";
238
+
239
+ /**
240
+ * Present when the popup is closed.
241
+ */
242
+ declare const closed_3 = "data-closed";
168
243
 
169
- declare const chipRemovePress: "chip-remove-press";
244
+ /**
245
+ * Present when the popup is closed.
246
+ */
247
+ declare const closed_4 = "data-closed";
170
248
 
171
- declare const clearPress: "clear-press";
249
+ /**
250
+ * Present when the popup is closed.
251
+ */
252
+ declare const closed_5 = "data-closed";
172
253
 
173
- declare const closePress: "close-press";
254
+ declare const closePress: 'close-press';
174
255
 
175
- declare const closeWatcher: "close-watcher";
256
+ declare const closeWatcher: 'close-watcher';
176
257
 
177
258
  declare type CollisionAvoidance = SideFlipMode | SideShiftMode;
178
259
 
@@ -244,7 +325,7 @@ export declare const Combobox: {
244
325
  Root: typeof Combobox_2.Root;
245
326
  Value: typeof Combobox_2.Value;
246
327
  Portal: React_2.ForwardRefExoticComponent<Omit<AutocompletePortalProps, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
247
- Separator: React_2.ForwardRefExoticComponent<Omit<SeparatorProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
328
+ Separator: React_2.ForwardRefExoticComponent<ComboboxSeparatorProps_2 & React_2.RefAttributes<HTMLDivElement>>;
248
329
  };
249
330
 
250
331
  export declare namespace Combobox_2 {
@@ -274,9 +355,10 @@ export declare namespace Combobox_2 {
274
355
  ComboboxCollection as Collection,
275
356
  ComboboxEmpty as Empty,
276
357
  ComboboxClear as Clear,
277
- Separator,
358
+ ComboboxSeparator as Separator,
278
359
  useComboboxFilter as useFilter,
279
- useFilteredItems
360
+ useFilteredItems,
361
+ createComboboxItems as createItems
280
362
  }
281
363
  }
282
364
 
@@ -293,6 +375,16 @@ export declare namespace ComboboxArrow {
293
375
  export type Props = ComboboxArrowProps;
294
376
  }
295
377
 
378
+ export declare namespace ComboboxArrowDataAttributes {
379
+ export {
380
+ open_5 as open,
381
+ closed_5 as closed,
382
+ side_3 as side,
383
+ align_3 as align,
384
+ uncentered
385
+ }
386
+ }
387
+
296
388
  export declare interface ComboboxArrowProps extends BaseUIComponentProps<'div', ComboboxArrowState> {}
297
389
 
298
390
  export declare interface ComboboxArrowState {
@@ -327,6 +419,15 @@ export declare namespace ComboboxBackdrop {
327
419
  export type State = ComboboxBackdropState;
328
420
  }
329
421
 
422
+ export declare namespace ComboboxBackdropDataAttributes {
423
+ export {
424
+ open_2 as open,
425
+ closed_2 as closed,
426
+ startingStyle,
427
+ endingStyle
428
+ }
429
+ }
430
+
330
431
  export declare interface ComboboxBackdropProps extends BaseUIComponentProps<'div', ComboboxBackdropState> {}
331
432
 
332
433
  export declare interface ComboboxBackdropState {
@@ -414,6 +515,16 @@ export declare namespace ComboboxClear {
414
515
  export type Props = ComboboxClearProps;
415
516
  }
416
517
 
518
+ export declare namespace ComboboxClearDataAttributes {
519
+ export {
520
+ popupOpen_4 as popupOpen,
521
+ disabled_6 as disabled,
522
+ visible,
523
+ startingStyle_4 as startingStyle,
524
+ endingStyle_4 as endingStyle
525
+ }
526
+ }
527
+
417
528
  export declare interface ComboboxClearProps extends NativeButtonProps, BaseUIComponentProps<'button', ComboboxClearState> {
418
529
  /**
419
530
  * Whether the component should ignore user interaction.
@@ -454,7 +565,7 @@ export declare interface ComboboxClearState {
454
565
  *
455
566
  * Documentation: [Base UI Combobox](https://base-ui.com/react/components/combobox)
456
567
  */
457
- export declare function ComboboxCollection(props: ComboboxCollection.Props): React_2.JSX.Element | null;
568
+ export declare function ComboboxCollection(props: ComboboxCollection.Props): React_2.JSX.Element;
458
569
 
459
570
  export declare namespace ComboboxCollection {
460
571
  export type State = ComboboxCollectionState;
@@ -506,7 +617,8 @@ export declare interface ComboboxFilterOptions extends GetFilterParameters {
506
617
  */
507
618
  multiple?: boolean | undefined;
508
619
  /**
509
- * The current value of the combobox.
620
+ * The current value of the combobox, used to keep every item visible while the query still
621
+ * matches the selection.
510
622
  */
511
623
  value?: any;
512
624
  }
@@ -581,6 +693,24 @@ export declare namespace ComboboxInput {
581
693
  export type Props = ComboboxInputProps;
582
694
  }
583
695
 
696
+ export declare namespace ComboboxInputDataAttributes {
697
+ export {
698
+ popupOpen,
699
+ pressed,
700
+ disabled_2 as disabled,
701
+ readonly,
702
+ popupSide,
703
+ required,
704
+ valid,
705
+ invalid,
706
+ touched,
707
+ dirty,
708
+ filled,
709
+ focused,
710
+ listEmpty
711
+ }
712
+ }
713
+
584
714
  /**
585
715
  * A wrapper for the input and its associated controls.
586
716
  * Renders a `<div>` element.
@@ -594,6 +724,24 @@ export declare namespace ComboboxInputGroup {
594
724
  export type Props = ComboboxInputGroupProps;
595
725
  }
596
726
 
727
+ export declare namespace ComboboxInputGroupDataAttributes {
728
+ export {
729
+ popupOpen_2 as popupOpen,
730
+ pressed_2 as pressed,
731
+ disabled_3 as disabled,
732
+ readonly_2 as readonly,
733
+ popupSide_2 as popupSide,
734
+ valid_2 as valid,
735
+ invalid_2 as invalid,
736
+ touched_2 as touched,
737
+ dirty_2 as dirty,
738
+ filled_2 as filled,
739
+ focused_2 as focused,
740
+ listEmpty_2 as listEmpty,
741
+ placeholder
742
+ }
743
+ }
744
+
597
745
  export declare interface ComboboxInputGroupProps extends BaseUIComponentProps<'div', ComboboxInputGroup.State> {}
598
746
 
599
747
  export declare interface ComboboxInputGroupState extends FieldRoot.State {
@@ -650,6 +798,8 @@ export declare interface ComboboxInputState extends FieldRootState {
650
798
  readOnly: boolean;
651
799
  }
652
800
 
801
+ declare type ComboboxInputValue<Value, Multiple extends boolean | undefined> = Multiple extends true ? readonly Value[] : Value;
802
+
653
803
  /**
654
804
  * An individual item in the list.
655
805
  * Renders a `<div>` element.
@@ -663,6 +813,27 @@ export declare namespace ComboboxItem {
663
813
  export type Props = ComboboxItemProps;
664
814
  }
665
815
 
816
+ /**
817
+ * An opaque collection created by `createItems()`.
818
+ *
819
+ * It carries the source item and derived value types so the root can infer the list item and
820
+ * selection value types.
821
+ *
822
+ * Pass it directly to the root's `items` prop; it has no public members.
823
+ */
824
+ export declare class ComboboxItemCollection<in out Item, Value = Item> {
825
+ private constructor();
826
+ private readonly __itemCollectionBrand;
827
+ }
828
+
829
+ export declare namespace ComboboxItemDataAttributes {
830
+ export {
831
+ selected,
832
+ highlighted,
833
+ disabled_5 as disabled
834
+ }
835
+ }
836
+
666
837
  /**
667
838
  * Indicates whether the item is selected.
668
839
  * Renders a `<span>` element.
@@ -676,6 +847,13 @@ export declare namespace ComboboxItemIndicator {
676
847
  export type State = ComboboxItemIndicatorState;
677
848
  }
678
849
 
850
+ export declare namespace ComboboxItemIndicatorDataAttributes {
851
+ export {
852
+ startingStyle_3 as startingStyle,
853
+ endingStyle_3 as endingStyle
854
+ }
855
+ }
856
+
679
857
  export declare interface ComboboxItemIndicatorProps extends BaseUIComponentProps<'span', ComboboxItemIndicatorState> {
680
858
  children?: React_2.ReactNode;
681
859
  /**
@@ -719,6 +897,12 @@ export declare interface ComboboxItemProps extends NonNativeButtonProps, Omit<Ba
719
897
  disabled?: boolean | undefined;
720
898
  }
721
899
 
900
+ declare type ComboboxItemsData<Item> = (Extract<Item, {
901
+ items: ReadonlyArray<unknown>;
902
+ }> extends never ? readonly Item[] : never) | readonly {
903
+ items: ReadonlyArray<Item>;
904
+ }[];
905
+
722
906
  export declare interface ComboboxItemState {
723
907
  /**
724
908
  * Whether the item should ignore user interaction.
@@ -749,9 +933,9 @@ export declare namespace ComboboxLabel {
749
933
  export type Props = ComboboxLabelProps;
750
934
  }
751
935
 
752
- export declare interface ComboboxLabelProps extends Omit<BaseUIComponentProps<'div', ComboboxLabel.State>, 'id'> {}
936
+ export declare interface ComboboxLabelProps extends Omit<BaseUIComponentProps<'div', ComboboxLabelState>, 'id'> {}
753
937
 
754
- export declare type ComboboxLabelState = FieldRoot.State;
938
+ export declare interface ComboboxLabelState extends FieldRoot.State {}
755
939
 
756
940
  /**
757
941
  * A list container for the items.
@@ -777,6 +961,8 @@ export declare interface ComboboxListState {
777
961
  empty: boolean;
778
962
  }
779
963
 
964
+ declare type ComboboxOutputValue<Value, Multiple extends boolean | undefined> = Multiple extends true ? Value[] : Value;
965
+
780
966
  /**
781
967
  * A container for the list.
782
968
  * Renders a `<div>` element.
@@ -790,6 +976,19 @@ export declare namespace ComboboxPopup {
790
976
  export type Props = ComboboxPopupProps;
791
977
  }
792
978
 
979
+ export declare namespace ComboboxPopupDataAttributes {
980
+ export {
981
+ open_4 as open,
982
+ closed_4 as closed,
983
+ startingStyle_2 as startingStyle,
984
+ endingStyle_2 as endingStyle,
985
+ side_2 as side,
986
+ align_2 as align,
987
+ anchorHidden_2 as anchorHidden,
988
+ empty_2 as empty
989
+ }
990
+ }
991
+
793
992
  export declare interface ComboboxPopupProps extends BaseUIComponentProps<'div', ComboboxPopupState> {
794
993
  /**
795
994
  * Determines the element to focus when the popup is opened.
@@ -854,12 +1053,16 @@ export declare namespace ComboboxPortal {
854
1053
  export type Props = ComboboxPortalProps;
855
1054
  }
856
1055
 
857
- export declare interface ComboboxPortalProps extends FloatingPortal.Props<ComboboxPortalState> {
1056
+ export declare interface ComboboxPortalProps extends BaseUIComponentProps<'div', ComboboxPortalState> {
858
1057
  /**
859
1058
  * Whether to keep the portal mounted in the DOM while the popup is hidden.
860
1059
  * @default false
861
1060
  */
862
1061
  keepMounted?: boolean | undefined;
1062
+ /**
1063
+ * A parent element to render the portal element into.
1064
+ */
1065
+ container?: HTMLElement | ShadowRoot | React_2.RefObject<HTMLElement | ShadowRoot | null> | null | undefined;
863
1066
  }
864
1067
 
865
1068
  export declare interface ComboboxPortalState {}
@@ -877,6 +1080,27 @@ export declare namespace ComboboxPositioner {
877
1080
  export type Props = ComboboxPositionerProps;
878
1081
  }
879
1082
 
1083
+ export declare namespace ComboboxPositionerCssVariables {
1084
+ export {
1085
+ availableWidth,
1086
+ availableHeight,
1087
+ anchorWidth,
1088
+ anchorHeight,
1089
+ transformOrigin
1090
+ }
1091
+ }
1092
+
1093
+ export declare namespace ComboboxPositionerDataAttributes {
1094
+ export {
1095
+ open_3 as open,
1096
+ closed_3 as closed,
1097
+ anchorHidden,
1098
+ side,
1099
+ align,
1100
+ empty
1101
+ }
1102
+ }
1103
+
880
1104
  export declare interface ComboboxPositionerProps extends UseAnchorPositioningSharedParameters, BaseUIComponentProps<'div', ComboboxPositionerState> {}
881
1105
 
882
1106
  export declare interface ComboboxPositionerState {
@@ -902,20 +1126,23 @@ export declare interface ComboboxPositionerState {
902
1126
  empty: boolean;
903
1127
  }
904
1128
 
1129
+ export declare type ComboboxPrimitiveValue = string | number | bigint | boolean;
1130
+
905
1131
  /**
906
1132
  * Groups all parts of the combobox.
907
1133
  * Doesn't render its own HTML element.
908
1134
  *
909
1135
  * Documentation: [Base UI Combobox](https://base-ui.com/react/components/combobox)
910
1136
  */
911
- export declare function ComboboxRoot<Value, Multiple extends boolean | undefined = false>(props: ComboboxRoot.Props<Value, Multiple>): React_2.JSX.Element;
1137
+ export declare function ComboboxRoot<Value, Multiple extends boolean | undefined = false, Item = Value>(props: ComboboxRoot.Props<Value, Multiple, Item>): React_2.JSX.Element;
912
1138
 
913
1139
  export declare namespace ComboboxRoot {
914
- export type Props<Value, Multiple extends boolean | undefined = false> = ComboboxRootProps<Value, Multiple>;
1140
+ export type Props<Value, Multiple extends boolean | undefined = false, Item = Value> = ComboboxRootProps<Value, Multiple, Item>;
915
1141
  export type State = ComboboxRootState;
916
1142
  export type Actions = ComboboxRootActions;
917
1143
  export type ChangeEventReason = ComboboxRootChangeEventReason;
918
1144
  export type ChangeEventDetails = ComboboxRootChangeEventDetails;
1145
+ export type OpenChangeEventDetails = ComboboxRootOpenChangeEventDetails;
919
1146
  export type HighlightEventReason = ComboboxRootHighlightEventReason;
920
1147
  export type HighlightEventDetails = ComboboxRootHighlightEventDetails;
921
1148
  }
@@ -930,7 +1157,9 @@ export declare type ComboboxRootHighlightEventDetails = AriaCombobox.HighlightEv
930
1157
 
931
1158
  export declare type ComboboxRootHighlightEventReason = AriaCombobox.HighlightEventReason;
932
1159
 
933
- export declare type ComboboxRootProps<Value, Multiple extends boolean | undefined = false> = Omit<AriaCombobox.Props<Value, ModeFromMultiple<Multiple>>, 'fillInputOnItemPress' | 'autoComplete' | 'formAutoComplete' | 'submitOnItemClick' | 'autoHighlight' | 'keepHighlight' | 'highlightItemOnHover' | 'itemToStringLabel' | 'itemToStringValue' | 'isItemEqualToValue' | 'selectionMode' | 'defaultSelectedValue' | 'selectedValue' | 'onSelectedValueChange' | 'actionsRef' | 'onOpenChange' | 'onInputValueChange' | 'onItemHighlighted'> & {
1160
+ export declare type ComboboxRootOpenChangeEventDetails = AriaCombobox.OpenChangeEventDetails;
1161
+
1162
+ export declare type ComboboxRootProps<Value, Multiple extends boolean | undefined = false, Item = Value> = Omit<AriaCombobox.Props<Value, ModeFromMultiple<Multiple>, Item>, 'fillInputOnItemPress' | 'autoComplete' | 'formAutoComplete' | 'submitOnItemClick' | 'autoHighlight' | 'keepHighlight' | 'highlightItemOnHover' | 'itemToStringLabel' | 'itemToStringValue' | 'isItemEqualToValue' | 'selectionMode' | 'defaultSelectedValue' | 'selectedValue' | 'onSelectedValueChange' | 'actionsRef' | 'onOpenChange' | 'onInputValueChange' | 'onItemHighlighted'> & {
934
1163
  /**
935
1164
  * Whether multiple items can be selected.
936
1165
  * @default false
@@ -955,15 +1184,19 @@ export declare type ComboboxRootProps<Value, Multiple extends boolean | undefine
955
1184
  /**
956
1185
  * 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.
957
1186
  * If the shape of the object is `{ value, label }`, the label will be used automatically without needing to specify this prop.
1187
+ * With a `createItems()` collection, this receives the derived value, and the collection's
1188
+ * `getLabel` takes precedence for values it can resolve.
958
1189
  */
959
1190
  itemToStringLabel?: ((itemValue: Value) => string) | undefined;
960
1191
  /**
961
1192
  * When the item values are objects (`<Combobox.Item value={object}>`), this function converts the object value to a string representation for form submission.
962
1193
  * If the shape of the object is `{ value, label }`, the value will be used automatically without needing to specify this prop.
1194
+ * With a `createItems()` collection, this receives the derived value.
963
1195
  */
964
1196
  itemToStringValue?: ((itemValue: Value) => string) | undefined;
965
1197
  /**
966
1198
  * 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.
1199
+ * With a `createItems()` collection, both arguments are derived values.
967
1200
  * Defaults to `Object.is` comparison.
968
1201
  */
969
1202
  isItemEqualToValue?: ((itemValue: Value, value: Value) => boolean) | undefined;
@@ -972,18 +1205,19 @@ export declare type ComboboxRootProps<Value, Multiple extends boolean | undefine
972
1205
  *
973
1206
  * To render a controlled combobox, use the `value` prop instead.
974
1207
  */
975
- defaultValue?: ComboboxValueType<Value, Multiple> | null | undefined;
1208
+ defaultValue?: ComboboxInputValue<Value, Multiple> | null | undefined;
976
1209
  /**
977
1210
  * A ref to imperative actions.
978
- * - `unmount`: When specified, the combobox will not be unmounted when closed.
979
- * Instead, the `unmount` function must be called to unmount the combobox manually.
980
- * Useful when the combobox's animation is controlled by an external library.
1211
+ * - `unmount`: Ends the closing phase of the combobox after an externally controlled closing animation finishes.
1212
+ * Call `preventUnmountOnClose()` in `onOpenChange` first, otherwise the combobox completes closing on its own.
1213
+ * Whether it leaves the DOM is decided by `keepMounted` on the portal.
1214
+ * - `close`: Closes the combobox imperatively when called.
981
1215
  */
982
1216
  actionsRef?: React_2.RefObject<ComboboxRoot.Actions | null> | undefined;
983
1217
  /**
984
1218
  * Event handler called when the popup is opened or closed.
985
1219
  */
986
- onOpenChange?: ((open: boolean, eventDetails: ComboboxRoot.ChangeEventDetails) => void) | undefined;
1220
+ onOpenChange?: ((open: boolean, eventDetails: ComboboxRoot.OpenChangeEventDetails) => void) | undefined;
987
1221
  /**
988
1222
  * Event handler called when the input value changes.
989
1223
  */
@@ -993,21 +1227,23 @@ export declare type ComboboxRootProps<Value, Multiple extends boolean | undefine
993
1227
  * Receives the highlighted item value (or `undefined` if no item is highlighted) and event details with a `reason` property describing why the highlight changed.
994
1228
  * The `reason` can be:
995
1229
  * - `'keyboard'`: the highlight changed due to keyboard navigation.
996
- * - `'pointer'`: the highlight changed due to pointer hovering.
997
- * - `'none'`: the highlight changed programmatically.
1230
+ * - `'pointer'`: the highlight changed due to pointer hovering. The event may be a `MouseEvent`
1231
+ * rather than a `PointerEvent`.
1232
+ * - `'none'`: the highlight changed for another reason, such as typing, `autoHighlight`, the
1233
+ * item list changing, or the popup opening or closing.
998
1234
  */
999
1235
  onItemHighlighted?: ((highlightedValue: Value | undefined, eventDetails: ComboboxRoot.HighlightEventDetails) => void) | undefined;
1000
1236
  /**
1001
1237
  * The selected value of the combobox. Use when controlled.
1002
1238
  */
1003
- value?: ComboboxValueType<Value, Multiple> | null | undefined;
1239
+ value?: ComboboxInputValue<Value, Multiple> | null | undefined;
1004
1240
  /**
1005
1241
  * Event handler called when the selected value of the combobox changes.
1006
1242
  */
1007
- onValueChange?: ((value: ComboboxValueType<Value, Multiple> | (Multiple extends true ? never : null), eventDetails: ComboboxRoot.ChangeEventDetails) => void) | undefined;
1243
+ onValueChange?: ((value: ComboboxOutputValue<Value, Multiple> | (Multiple extends true ? never : null), eventDetails: ComboboxRoot.ChangeEventDetails) => void) | undefined;
1008
1244
  };
1009
1245
 
1010
- declare interface ComboboxRootProps_2<ItemValue> {
1246
+ declare interface ComboboxRootProps_2<ItemValue, Item = ItemValue> {
1011
1247
  children?: React_2.ReactNode;
1012
1248
  /**
1013
1249
  * Identifies the field when a form is submitted.
@@ -1051,7 +1287,7 @@ declare interface ComboboxRootProps_2<ItemValue> {
1051
1287
  /**
1052
1288
  * Event handler called when the popup is opened or closed.
1053
1289
  */
1054
- onOpenChange?: ((open: boolean, eventDetails: AriaCombobox.ChangeEventDetails) => void) | undefined;
1290
+ onOpenChange?: ((open: boolean, eventDetails: AriaCombobox.OpenChangeEventDetails) => void) | undefined;
1055
1291
  /**
1056
1292
  * Event handler called after any animations complete when the popup is opened or closed.
1057
1293
  */
@@ -1103,9 +1339,10 @@ declare interface ComboboxRootProps_2<ItemValue> {
1103
1339
  defaultInputValue?: React_2.ComponentProps<'input'>['defaultValue'] | undefined;
1104
1340
  /**
1105
1341
  * A ref to imperative actions.
1106
- * - `unmount`: When specified, the combobox will not be unmounted when closed.
1107
- * Instead, the `unmount` function must be called to unmount the combobox manually.
1108
- * Useful when the combobox's animation is controlled by an external library.
1342
+ * - `unmount`: Ends the closing phase of the combobox after an externally controlled closing animation finishes.
1343
+ * Call `preventUnmountOnClose()` in `onOpenChange` first, otherwise the combobox completes closing on its own.
1344
+ * Whether it leaves the DOM is decided by `keepMounted` on the portal.
1345
+ * - `close`: Closes the combobox imperatively when called.
1109
1346
  */
1110
1347
  actionsRef?: React_2.RefObject<AriaCombobox.Actions | null> | undefined;
1111
1348
  /**
@@ -1113,8 +1350,10 @@ declare interface ComboboxRootProps_2<ItemValue> {
1113
1350
  * Receives the highlighted item value (or `undefined` if no item is highlighted) and event details with a `reason` property describing why the highlight changed.
1114
1351
  * The `reason` can be:
1115
1352
  * - `'keyboard'`: the highlight changed due to keyboard navigation.
1116
- * - `'pointer'`: the highlight changed due to pointer hovering.
1117
- * - `'none'`: the highlight changed programmatically.
1353
+ * - `'pointer'`: the highlight changed due to pointer hovering. The event may be a `MouseEvent`
1354
+ * rather than a `PointerEvent`.
1355
+ * - `'none'`: the highlight changed for another reason, such as typing, `autoHighlight`, the
1356
+ * item list changing, or the popup opening or closing.
1118
1357
  */
1119
1358
  onItemHighlighted?: ((itemValue: ItemValue | undefined, eventDetails: AriaCombobox.HighlightEventDetails) => void) | undefined;
1120
1359
  /**
@@ -1129,31 +1368,42 @@ declare interface ComboboxRootProps_2<ItemValue> {
1129
1368
  grid?: boolean | undefined;
1130
1369
  /**
1131
1370
  * The items to be displayed in the list.
1132
- * Can be either a flat array of items or an array of groups with items.
1371
+ * Can be a flat array of items, an array of groups with items, or a collection created by
1372
+ * the `createItems()` function, which derives each item's selection value and label.
1373
+ * Nullish entries are not supported: remove them from the data before passing it.
1133
1374
  */
1134
- items?: readonly any[] | readonly Group<any>[] | undefined;
1375
+ items?: readonly any[] | readonly Group<any>[] | ComboboxItemCollection<Item, ItemValue> | undefined;
1135
1376
  /**
1136
1377
  * Filtered items to display in the list.
1137
- * When provided, the list will use these items instead of filtering the `items` prop internally.
1378
+ * When provided, the list uses these items instead of filtering the `items` prop internally.
1379
+ * When `items` is also provided, this array must preserve its flat or grouped structure.
1380
+ * With a `createItems()` collection, pass source items rather than derived values.
1381
+ * Nullish entries are not supported, as in `items`.
1138
1382
  * Use when you want to control filtering logic externally with the `useFilter()` hook.
1139
1383
  */
1140
- filteredItems?: readonly any[] | readonly Group<any>[] | undefined;
1384
+ filteredItems?: readonly Item[] | readonly Group<Item>[] | undefined;
1141
1385
  /**
1142
1386
  * Filter function used to match items vs input query.
1387
+ * Receives the source item, which is the derived value's item when `items` is a `createItems()`
1388
+ * collection, and the item itself otherwise.
1143
1389
  */
1144
- filter?: null | ((itemValue: ItemValue, query: string, itemToString?: (itemValue: ItemValue) => string) => boolean) | undefined;
1390
+ filter?: null | ((item: Item, query: string, itemToString?: (item: Item) => string) => boolean) | undefined;
1145
1391
  /**
1146
1392
  * 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.
1147
1393
  * If the shape of the object is `{ value, label }`, the label will be used automatically without needing to specify this prop.
1394
+ * With a `createItems()` collection, this receives the derived value, and the collection's
1395
+ * `getLabel` takes precedence for values it can resolve.
1148
1396
  */
1149
1397
  itemToStringLabel?: ((itemValue: ItemValue) => string) | undefined;
1150
1398
  /**
1151
1399
  * When the item values are objects (`<Combobox.Item value={object}>`), this function converts the object value to a string representation for form submission.
1152
1400
  * If the shape of the object is `{ value, label }`, the value will be used automatically without needing to specify this prop.
1401
+ * With a `createItems()` collection, this receives the derived value.
1153
1402
  */
1154
1403
  itemToStringValue?: ((itemValue: ItemValue) => string) | undefined;
1155
1404
  /**
1156
1405
  * 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.
1406
+ * With a `createItems()` collection, both arguments are derived values.
1157
1407
  * Defaults to `Object.is` comparison.
1158
1408
  */
1159
1409
  isItemEqualToValue?: ((itemValue: ItemValue, value: ItemValue) => boolean) | undefined;
@@ -1163,7 +1413,15 @@ declare interface ComboboxRootProps_2<ItemValue> {
1163
1413
  */
1164
1414
  virtualized?: boolean | undefined;
1165
1415
  /**
1166
- * Whether the list is rendered inline without using the popup.
1416
+ * Whether the list is rendered inline without using the component's own popup.
1417
+ *
1418
+ * Specify `open` unconditionally in conjunction with this prop so the list is considered
1419
+ * visible: `<Combobox.Root inline open>`
1420
+ *
1421
+ * In a `Combobox.Root` > `Dialog.Root` composition, bind the Combobox's `open` and
1422
+ * `onOpenChange` props to the `Dialog`'s `open` and `onOpenChange` state instead so the
1423
+ * component resets its transient state (filter query, highlighted item, and input value) when
1424
+ * the dialog closes.
1167
1425
  * @default false
1168
1426
  */
1169
1427
  inline?: boolean | undefined;
@@ -1171,6 +1429,8 @@ declare interface ComboboxRootProps_2<ItemValue> {
1171
1429
  * Determines if the popup enters a modal state when open.
1172
1430
  * - `true`: user interaction is limited to the popup: document page scroll is locked and pointer interactions on outside elements are disabled.
1173
1431
  * - `false`: user interaction with the rest of the document is allowed.
1432
+ *
1433
+ * 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.
1174
1434
  * @default false
1175
1435
  */
1176
1436
  modal?: boolean | undefined;
@@ -1229,6 +1489,40 @@ export declare interface ComboboxRowProps extends BaseUIComponentProps<'div', Co
1229
1489
 
1230
1490
  export declare interface ComboboxRowState {}
1231
1491
 
1492
+ /**
1493
+ * A visual separator between items or groups.
1494
+ * Renders a `<div>` element.
1495
+ *
1496
+ * Documentation: [Base UI Combobox](https://base-ui.com/react/components/combobox)
1497
+ */
1498
+ export declare const ComboboxSeparator: React_2.ForwardRefExoticComponent<ComboboxSeparatorProps & React_2.RefAttributes<HTMLDivElement>>;
1499
+
1500
+ export declare namespace ComboboxSeparator {
1501
+ export type Props = ComboboxSeparatorProps;
1502
+ export type State = ComboboxSeparatorState;
1503
+ }
1504
+
1505
+ export declare namespace ComboboxSeparatorDataAttributes {
1506
+ export {
1507
+ orientation_2 as orientation
1508
+ }
1509
+ }
1510
+
1511
+ export declare interface ComboboxSeparatorProps extends BaseUIComponentProps<'div', ComboboxSeparatorState> {
1512
+ /**
1513
+ * The orientation of the separator.
1514
+ * @default 'horizontal'
1515
+ */
1516
+ orientation?: Orientation | undefined;
1517
+ }
1518
+
1519
+ export declare interface ComboboxSeparatorState {
1520
+ /**
1521
+ * The orientation of the separator.
1522
+ */
1523
+ orientation: Orientation;
1524
+ }
1525
+
1232
1526
  /**
1233
1527
  * Displays a status message whose content changes are announced politely to screen readers.
1234
1528
  * Useful for conveying the status of an asynchronously loaded list.
@@ -1264,6 +1558,25 @@ export declare namespace ComboboxTrigger {
1264
1558
  export type Props = ComboboxTriggerProps;
1265
1559
  }
1266
1560
 
1561
+ export declare namespace ComboboxTriggerDataAttributes {
1562
+ export {
1563
+ popupOpen_3 as popupOpen,
1564
+ pressed_3 as pressed,
1565
+ disabled_4 as disabled,
1566
+ readonly_3 as readonly,
1567
+ popupSide_3 as popupSide,
1568
+ required_2 as required,
1569
+ valid_3 as valid,
1570
+ invalid_3 as invalid,
1571
+ touched_3 as touched,
1572
+ dirty_3 as dirty,
1573
+ filled_3 as filled,
1574
+ focused_3 as focused,
1575
+ listEmpty_3 as listEmpty,
1576
+ placeholder_2 as placeholder
1577
+ }
1578
+ }
1579
+
1267
1580
  export declare interface ComboboxTriggerProps extends NativeButtonProps, BaseUIComponentProps<'button', ComboboxTriggerState> {
1268
1581
  /**
1269
1582
  * Whether the component should ignore user interaction.
@@ -1281,6 +1594,10 @@ export declare interface ComboboxTriggerState extends FieldRootState {
1281
1594
  * Whether the component should ignore user interaction.
1282
1595
  */
1283
1596
  disabled: boolean;
1597
+ /**
1598
+ * Whether the component should ignore user edits.
1599
+ */
1600
+ readOnly: boolean;
1284
1601
  /**
1285
1602
  * Indicates which side the corresponding popup is positioned relative to its anchor.
1286
1603
  */
@@ -1309,6 +1626,11 @@ export declare namespace ComboboxValue {
1309
1626
  }
1310
1627
 
1311
1628
  export declare interface ComboboxValueProps {
1629
+ /**
1630
+ * Accepts a function that returns a `ReactNode` to format the selected value.
1631
+ * Treat the value as read-only: in `multiple` mode it may be a shared frozen array
1632
+ * when nothing is selected.
1633
+ */
1312
1634
  children?: React_2.ReactNode | ((selectedValue: any) => React_2.ReactNode);
1313
1635
  /**
1314
1636
  * The placeholder value to display when no value is selected.
@@ -1319,8 +1641,6 @@ export declare interface ComboboxValueProps {
1319
1641
 
1320
1642
  export declare interface ComboboxValueState {}
1321
1643
 
1322
- declare type ComboboxValueType<Value, Multiple extends boolean | undefined> = Multiple extends true ? Value[] : Value;
1323
-
1324
1644
  /**
1325
1645
  * Shape of the render prop: a function that takes props to be spread on the element and component's state and returns a React element.
1326
1646
  *
@@ -1329,15 +1649,126 @@ declare type ComboboxValueType<Value, Multiple extends boolean | undefined> = Mu
1329
1649
  */
1330
1650
  declare type ComponentRenderFn<Props, State> = (props: Props, state: State) => React_2.ReactElement<unknown>;
1331
1651
 
1332
- declare const decrementPress: "decrement-press";
1652
+ /**
1653
+ * Creates a collection for the root's `items` prop. Values and labels are derived on first use.
1654
+ *
1655
+ * Accepts either a flat item array or an array of groups. The `getValue` and `getLabel` accessors
1656
+ * receive items, not groups.
1657
+ *
1658
+ * Items cannot have an `items` array property because they would be interpreted as groups.
1659
+ * Rename that field or cast the data when the runtime values are known not to contain arrays.
1660
+ *
1661
+ * The data must not contain nullish entries: remove them before creating the collection, as for
1662
+ * the root's `items` prop.
1663
+ *
1664
+ * Create static collections at module scope. Wrap dynamic collections in `React.useMemo()` keyed
1665
+ * by their data.
1666
+ *
1667
+ * Documentation: [Base UI Combobox](https://base-ui.com/react/components/combobox)
1668
+ *
1669
+ * @param data The flat or grouped source items, or `undefined` while they are loading.
1670
+ * @param options Functions that derive each source item's selection value and display label.
1671
+ * @returns A collection whose selection value is the `getValue` accessor's return value.
1672
+ */
1673
+ declare function createComboboxItems<Item, Value extends ComboboxPrimitiveValue>(/** @type ComboboxItemsData<Item> | undefined */
1674
+ data: ComboboxItemsData<Item> & RejectGroupShapedItems<Item> | undefined, options: CreateComboboxItemsOptions<Item, Value>): ComboboxItemCollection<Item, Value>;
1675
+
1676
+ export declare interface CreateComboboxItemsOptions<Item, Value extends ComboboxPrimitiveValue = ComboboxPrimitiveValue> {
1677
+ /**
1678
+ * Projects an item to the primitive value that identifies it, used as the item's
1679
+ * selection value.
1680
+ *
1681
+ * `null` and `undefined` are reserved for no selection, and each item must derive a unique
1682
+ * value. Prefer stable IDs from your application data.
1683
+ */
1684
+ getValue: (item: Item) => Value;
1685
+ /**
1686
+ * Projects an item to the label string that represents it in the input and when matching the
1687
+ * typed query. The root's `itemToStringLabel` prop is the fallback for values whose item is in
1688
+ * neither the data nor the current `filteredItems`.
1689
+ */
1690
+ getLabel: (item: Item) => string;
1691
+ }
1692
+
1693
+ declare const decrementPress: 'decrement-press';
1333
1694
 
1334
- declare const disabled: "disabled";
1695
+ /**
1696
+ * Present when the component's value has changed (when wrapped in Field.Root).
1697
+ */
1698
+ declare const dirty = "data-dirty";
1699
+
1700
+ /**
1701
+ * Present when the component's value has changed (when wrapped in Field.Root).
1702
+ */
1703
+ declare const dirty_2 = "data-dirty";
1704
+
1705
+ /**
1706
+ * Present when the component's value has changed (when wrapped in Field.Root).
1707
+ */
1708
+ declare const dirty_3 = "data-dirty";
1709
+
1710
+ declare const disabled: 'disabled';
1335
1711
 
1336
- declare const drag: "drag";
1712
+ /**
1713
+ * Present when the component is disabled.
1714
+ */
1715
+ declare const disabled_2 = "data-disabled";
1716
+
1717
+ /**
1718
+ * Present when the component is disabled.
1719
+ */
1720
+ declare const disabled_3 = "data-disabled";
1721
+
1722
+ /**
1723
+ * Present when the component is disabled.
1724
+ */
1725
+ declare const disabled_4 = "data-disabled";
1726
+
1727
+ /**
1728
+ * Present when the item is disabled.
1729
+ */
1730
+ declare const disabled_5 = "data-disabled";
1731
+
1732
+ /**
1733
+ * Present when the button is disabled.
1734
+ */
1735
+ declare const disabled_6 = "data-disabled";
1736
+
1737
+ declare const drag: 'drag';
1738
+
1739
+ /**
1740
+ * Present when the items list is empty.
1741
+ */
1742
+ declare const empty = "data-empty";
1743
+
1744
+ /**
1745
+ * Present when the items list is empty.
1746
+ */
1747
+ declare const empty_2 = "data-empty";
1748
+
1749
+ /**
1750
+ * Present when the popup is animating out.
1751
+ */
1752
+ declare const endingStyle = "data-ending-style";
1753
+
1754
+ /**
1755
+ * Present when the popup is animating out.
1756
+ */
1757
+ declare const endingStyle_2 = "data-ending-style";
1758
+
1759
+ /**
1760
+ * Present when the indicator is animating out.
1761
+ */
1762
+ declare const endingStyle_3 = "data-ending-style";
1763
+
1764
+ /**
1765
+ * Present when the button is animating out.
1766
+ */
1767
+ declare const endingStyle_4 = "data-ending-style";
1337
1768
 
1338
1769
  declare type Errors = Record<string, string | string[]>;
1339
1770
 
1340
- declare const escapeKey: "escape-key";
1771
+ declare const escapeKey: 'escape-key';
1341
1772
 
1342
1773
  /**
1343
1774
  * Groups all parts of the field.
@@ -1371,11 +1802,12 @@ declare interface FieldRootProps extends BaseUIComponentProps<'div', FieldRootSt
1371
1802
  name?: string | undefined;
1372
1803
  /**
1373
1804
  * A function for custom validation. Return a string or an array of strings with
1374
- * the error message(s) if the value is invalid, or `null` if the value is valid.
1805
+ * the error message(s) if the value is invalid. Returning nothing, `null`, an empty
1806
+ * string, or an empty array means the value is valid.
1375
1807
  * Asynchronous functions are supported, but they do not prevent form submission
1376
1808
  * when using `validationMode="onSubmit"`.
1377
1809
  */
1378
- validate?: ((value: unknown, formValues: Form.Values) => string | string[] | null | Promise<string | string[] | null>) | undefined;
1810
+ validate?: ((value: unknown, formValues: Form.Values) => string | string[] | null | void | Promise<string | string[] | null | void>) | undefined;
1379
1811
  /**
1380
1812
  * Determines when the field should be validated.
1381
1813
  * This takes precedence over the `validationMode` prop on `<Form>`.
@@ -1463,31 +1895,36 @@ declare interface FieldValidityData {
1463
1895
  }
1464
1896
 
1465
1897
  /**
1466
- * Portals the floating element into a given container element — by default,
1467
- * outside of the app root and into the body.
1468
- * This is necessary to ensure the floating element can appear outside any
1469
- * potential parent containers that cause clipping (such as `overflow: hidden`),
1470
- * while retaining its location in the React tree.
1471
- * @see https://floating-ui.com/docs/FloatingPortal
1472
- * @internal
1898
+ * Present when the component has a value (when wrapped in Field.Root).
1473
1899
  */
1474
- declare const FloatingPortal: React_2.ForwardRefExoticComponent<Omit<FloatingPortal.Props<any> & {
1475
- renderGuards?: boolean | undefined;
1476
- }, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
1900
+ declare const filled = "data-filled";
1477
1901
 
1478
- declare namespace FloatingPortal {
1479
- type State = FloatingPortalState;
1480
- interface Props<TState> extends BaseUIComponentProps<'div', TState> {
1481
- /**
1482
- * A parent element to render the portal element into.
1483
- */
1484
- container?: UseFloatingPortalNodeProps['container'] | undefined;
1485
- }
1486
- }
1902
+ /**
1903
+ * Present when the component has a value (when wrapped in Field.Root).
1904
+ */
1905
+ declare const filled_2 = "data-filled";
1906
+
1907
+ /**
1908
+ * Present when the component has a value (when wrapped in Field.Root).
1909
+ */
1910
+ declare const filled_3 = "data-filled";
1911
+
1912
+ /**
1913
+ * Present when the input is focused (when wrapped in Field.Root).
1914
+ */
1915
+ declare const focused = "data-focused";
1916
+
1917
+ /**
1918
+ * Present when the component is focused (when wrapped in Field.Root).
1919
+ */
1920
+ declare const focused_2 = "data-focused";
1487
1921
 
1488
- declare interface FloatingPortalState {}
1922
+ /**
1923
+ * Present when the trigger is focused (when wrapped in Field.Root).
1924
+ */
1925
+ declare const focused_3 = "data-focused";
1489
1926
 
1490
- declare const focusOut: "focus-out";
1927
+ declare const focusOut: 'focus-out';
1491
1928
 
1492
1929
  /**
1493
1930
  * A native form element with consolidated error handling.
@@ -1518,6 +1955,7 @@ declare interface FormActions {
1518
1955
  declare interface FormContext {
1519
1956
  errors: Errors;
1520
1957
  clearErrors: (name: string | undefined) => void;
1958
+ elementRef: React_2.RefObject<HTMLFormElement | null>;
1521
1959
  formRef: React_2.RefObject<{
1522
1960
  fields: Map<string, {
1523
1961
  name: string | undefined;
@@ -1532,12 +1970,12 @@ declare interface FormContext {
1532
1970
  }>;
1533
1971
  }>;
1534
1972
  validationMode: Form.ValidationMode;
1535
- submitAttemptedRef: React_2.RefObject<boolean>;
1973
+ submitCountRef: React_2.RefObject<number>;
1536
1974
  }
1537
1975
 
1538
1976
  declare const FormContext: React_2.Context<FormContext>;
1539
1977
 
1540
- declare interface FormProps<FormValues extends Record<string, any> = Record<string, any>> extends BaseUIComponentProps<'form', FormState> {
1978
+ declare interface FormProps<FormValues extends Record<string, any> = Record<string, any>> extends BaseUIComponentProps<'form', FormState, React_2.ComponentPropsWithRef<'form'>> {
1541
1979
  /**
1542
1980
  * Determines when the form should be validated.
1543
1981
  * The `validationMode` prop on `<Field.Root>` takes precedence over this.
@@ -1566,10 +2004,10 @@ declare interface FormProps<FormValues extends Record<string, any> = Record<stri
1566
2004
  * @example
1567
2005
  * ```tsx
1568
2006
  * // validate all fields
1569
- * actionsRef.current.validate();
2007
+ * actionsRef.current?.validate();
1570
2008
  *
1571
2009
  * // validate one field
1572
- * actionsRef.current.validate('email');
2010
+ * actionsRef.current?.validate('email');
1573
2011
  * ```
1574
2012
  */
1575
2013
  actionsRef?: React_2.RefObject<Form.Actions | null> | undefined;
@@ -1596,35 +2034,81 @@ declare interface Group<Item = any> {
1596
2034
  items: ReadonlyArray<Item>;
1597
2035
  }
1598
2036
 
2037
+ declare type GroupShapedItemsError = 'Base UI: items passed to createItems() cannot have an `items` array property because it marks a group. Rename the field or cast the data.';
2038
+
2039
+ /** Whether any constituent of `Item` explicitly declares an `items` field that may be an array. */
2040
+ declare type HasGroupShape<Item> = Item extends object ? 'items' extends keyof RemoveIndexSignature<Item> ? [Extract<NonNullable<Item['items']>, ReadonlyArray<unknown>>] extends [never] ? never[] extends NonNullable<Item['items']> ? true : never : true : never : never;
2041
+
2042
+ /**
2043
+ * Present when the item is highlighted.
2044
+ */
2045
+ declare const highlighted = "data-highlighted";
2046
+
1599
2047
  declare type HTMLProps<T = any> = React_2.HTMLAttributes<T> & {
1600
2048
  ref?: React_2.Ref<T> | undefined;
1601
2049
  };
1602
2050
 
1603
- declare const imperativeAction: "imperative-action";
2051
+ declare const imperativeAction: 'imperative-action';
2052
+
2053
+ declare const incrementPress: 'increment-press';
1604
2054
 
1605
- declare const incrementPress: "increment-press";
2055
+ declare const initial: 'initial';
1606
2056
 
1607
- declare const initial: "initial";
2057
+ declare const inputBlur: 'input-blur';
1608
2058
 
1609
- declare const inputBlur: "input-blur";
2059
+ declare const inputChange: 'input-change';
1610
2060
 
1611
- declare const inputChange: "input-change";
2061
+ declare const inputClear: 'input-clear';
1612
2062
 
1613
- declare const inputClear: "input-clear";
2063
+ declare const inputPaste: 'input-paste';
1614
2064
 
1615
- declare const inputPaste: "input-paste";
2065
+ declare const inputPress: 'input-press';
1616
2066
 
1617
- declare const inputPress: "input-press";
2067
+ declare type InternalAriaComboboxProps<Value, Mode extends SelectionMode_2, Item = Value> = AriaComboboxProps<Value, Mode, Item> & {
2068
+ filterQuery?: string | undefined;
2069
+ };
2070
+
2071
+ /**
2072
+ * Present when the component is in an invalid state (when wrapped in Field.Root).
2073
+ */
2074
+ declare const invalid = "data-invalid";
1618
2075
 
1619
- declare const itemPress: "item-press";
2076
+ /**
2077
+ * Present when the component is in an invalid state (when wrapped in Field.Root).
2078
+ */
2079
+ declare const invalid_2 = "data-invalid";
1620
2080
 
1621
- declare const keyboard: "keyboard";
2081
+ /**
2082
+ * Present when the component is in an invalid state (when wrapped in Field.Root).
2083
+ */
2084
+ declare const invalid_3 = "data-invalid";
2085
+
2086
+ declare type IsAny<T> = 0 extends 1 & T ? true : false;
2087
+
2088
+ declare const itemPress: 'item-press';
2089
+
2090
+ declare const keyboard: 'keyboard';
2091
+
2092
+ declare const linkPress: 'link-press';
2093
+
2094
+ /**
2095
+ * Present when the corresponding items list is empty.
2096
+ */
2097
+ declare const listEmpty = "data-list-empty";
2098
+
2099
+ /**
2100
+ * Present when the corresponding items list is empty.
2101
+ */
2102
+ declare const listEmpty_2 = "data-list-empty";
1622
2103
 
1623
- declare const linkPress: "link-press";
2104
+ /**
2105
+ * Present when the corresponding items list is empty.
2106
+ */
2107
+ declare const listEmpty_3 = "data-list-empty";
1624
2108
 
1625
- declare const listNavigation: "list-navigation";
2109
+ declare const listNavigation: 'list-navigation';
1626
2110
 
1627
- declare const missing: "missing";
2111
+ declare const missing: 'missing';
1628
2112
 
1629
2113
  declare type ModeFromMultiple<Multiple extends boolean | undefined> = Multiple extends true ? 'multiple' : 'single';
1630
2114
 
@@ -1638,7 +2122,7 @@ declare interface NativeButtonProps {
1638
2122
  nativeButton?: boolean | undefined;
1639
2123
  }
1640
2124
 
1641
- declare const none: "none";
2125
+ declare const none: 'none';
1642
2126
 
1643
2127
  declare interface NonNativeButtonProps {
1644
2128
  /**
@@ -1663,11 +2147,117 @@ declare type OffsetFunction = (data: {
1663
2147
  };
1664
2148
  }) => number;
1665
2149
 
2150
+ /**
2151
+ * Present when the popup is open.
2152
+ */
2153
+ declare const open_2 = "data-open";
2154
+
2155
+ /**
2156
+ * Present when the popup is open.
2157
+ */
2158
+ declare const open_3 = "data-open";
2159
+
2160
+ /**
2161
+ * Present when the popup is open.
2162
+ */
2163
+ declare const open_4 = "data-open";
2164
+
2165
+ /**
2166
+ * Present when the popup is open.
2167
+ */
2168
+ declare const open_5 = "data-open";
2169
+
1666
2170
  declare type Orientation = 'horizontal' | 'vertical';
1667
2171
 
1668
- declare const outsidePress: "outside-press";
2172
+ /**
2173
+ * Indicates the orientation of the separator.
2174
+ * @type {'horizontal' | 'vertical'}
2175
+ */
2176
+ declare const orientation_2 = "data-orientation";
2177
+
2178
+ declare const outsidePress: 'outside-press';
2179
+
2180
+ /**
2181
+ * Present when the combobox doesn't have a value.
2182
+ */
2183
+ declare const placeholder = "data-placeholder";
2184
+
2185
+ /**
2186
+ * Present when the combobox doesn't have a value.
2187
+ */
2188
+ declare const placeholder_2 = "data-placeholder";
2189
+
2190
+ declare const pointer: 'pointer';
2191
+
2192
+ declare const popupClose: 'popup-close';
2193
+
2194
+ /**
2195
+ * Present when the corresponding popup is open.
2196
+ */
2197
+ declare const popupOpen = "data-popup-open";
2198
+
2199
+ /**
2200
+ * Present when the corresponding popup is open.
2201
+ */
2202
+ declare const popupOpen_2 = "data-popup-open";
2203
+
2204
+ /**
2205
+ * Present when the corresponding popup is open.
2206
+ */
2207
+ declare const popupOpen_3 = "data-popup-open";
2208
+
2209
+ /**
2210
+ * Present when the corresponding popup is open.
2211
+ */
2212
+ declare const popupOpen_4 = "data-popup-open";
2213
+
2214
+ /**
2215
+ * Indicates which side the corresponding popup is positioned relative to its anchor.
2216
+ * @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start' | null}
2217
+ */
2218
+ declare const popupSide = "data-popup-side";
2219
+
2220
+ /**
2221
+ * Indicates which side the corresponding popup is positioned relative to its anchor.
2222
+ * @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start' | null}
2223
+ */
2224
+ declare const popupSide_2 = "data-popup-side";
2225
+
2226
+ /**
2227
+ * Indicates which side the corresponding popup is positioned relative to its anchor.
2228
+ * @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start' | null}
2229
+ */
2230
+ declare const popupSide_3 = "data-popup-side";
2231
+
2232
+ /**
2233
+ * Present when the input is pressed.
2234
+ */
2235
+ declare const pressed = "data-pressed";
2236
+
2237
+ /**
2238
+ * Present when the input group is pressed.
2239
+ */
2240
+ declare const pressed_2 = "data-pressed";
2241
+
2242
+ /**
2243
+ * Present when the trigger is pressed.
2244
+ */
2245
+ declare const pressed_3 = "data-pressed";
2246
+
2247
+ /**
2248
+ * Present when the component is readonly.
2249
+ */
2250
+ declare const readonly = "data-readonly";
2251
+
2252
+ /**
2253
+ * Present when the component is readonly.
2254
+ */
2255
+ declare const readonly_2 = "data-readonly";
1669
2256
 
1670
- declare const pointer: "pointer";
2257
+ /**
2258
+ * Present when the component is readonly.
2259
+ */
2260
+ declare const readonly_3 = "data-readonly";
1671
2261
 
1672
2262
  declare namespace REASONS {
1673
2263
  export {
@@ -1698,6 +2288,7 @@ declare namespace REASONS {
1698
2288
  drag,
1699
2289
  wheel,
1700
2290
  scrub,
2291
+ popupClose,
1701
2292
  cancelOpen,
1702
2293
  siblingOpen,
1703
2294
  disabled,
@@ -1752,42 +2343,51 @@ declare interface ReasonToEventMap {
1752
2343
  [REASONS.windowResize]: UIEvent;
1753
2344
  }
1754
2345
 
1755
- declare const scrub: "scrub";
2346
+ declare type RejectGroupShapedItems<Item> = IsAny<Item> extends true ? unknown : true extends HasGroupShape<Item> ? GroupShapedItemsError : unknown;
1756
2347
 
1757
- declare type SelectionMode_2 = 'single' | 'multiple' | 'none';
2348
+ declare type RemoveIndexSignature<Type> = { [Key in keyof Type as string extends Key ? never : number extends Key ? never : symbol extends Key ? never : Key]: Type[Key] };
1758
2349
 
1759
2350
  /**
1760
- * A separator element accessible to screen readers.
1761
- * Renders a `<div>` element.
1762
- *
1763
- * Documentation: [Base UI Separator](https://base-ui.com/react/components/separator)
2351
+ * Present when the component is required.
1764
2352
  */
1765
- declare const Separator: React_2.ForwardRefExoticComponent<Omit<SeparatorProps, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
2353
+ declare const required = "data-required";
1766
2354
 
1767
- declare namespace Separator {
1768
- type Props = SeparatorProps;
1769
- type State = SeparatorState;
1770
- }
2355
+ /**
2356
+ * Present when the component is required.
2357
+ */
2358
+ declare const required_2 = "data-required";
1771
2359
 
1772
- declare interface SeparatorProps extends BaseUIComponentProps<'div', SeparatorState> {
1773
- /**
1774
- * The orientation of the separator.
1775
- * @default 'horizontal'
1776
- */
1777
- orientation?: Orientation | undefined;
1778
- }
2360
+ declare const scrub: 'scrub';
1779
2361
 
1780
- declare interface SeparatorState {
1781
- /**
1782
- * The orientation of the separator.
1783
- */
1784
- orientation: Orientation;
1785
- }
2362
+ /**
2363
+ * Present when the item is selected.
2364
+ */
2365
+ declare const selected = "data-selected";
1786
2366
 
1787
- declare const siblingOpen: "sibling-open";
2367
+ declare type SelectionMode_2 = 'single' | 'multiple' | 'none';
2368
+
2369
+ declare const siblingOpen: 'sibling-open';
1788
2370
 
1789
2371
  declare type Side = 'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start';
1790
2372
 
2373
+ /**
2374
+ * Indicates which side the popup is positioned relative to the trigger.
2375
+ * @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}
2376
+ */
2377
+ declare const side = "data-side";
2378
+
2379
+ /**
2380
+ * Indicates which side the popup is positioned relative to the trigger.
2381
+ * @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}
2382
+ */
2383
+ declare const side_2 = "data-side";
2384
+
2385
+ /**
2386
+ * Indicates which side the popup is positioned relative to the trigger.
2387
+ * @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}
2388
+ */
2389
+ declare const side_3 = "data-side";
2390
+
1791
2391
  declare interface SideFlipMode {
1792
2392
  /**
1793
2393
  * How to avoid collisions on the side axis.
@@ -1835,17 +2435,63 @@ declare interface SideShiftMode {
1835
2435
  fallbackAxisSide?: 'start' | 'end' | 'none' | undefined;
1836
2436
  }
1837
2437
 
1838
- declare const swipe: "swipe";
2438
+ /**
2439
+ * Present when the popup begins animating in.
2440
+ */
2441
+ declare const startingStyle = "data-starting-style";
2442
+
2443
+ /**
2444
+ * Present when the popup begins animating in.
2445
+ */
2446
+ declare const startingStyle_2 = "data-starting-style";
2447
+
2448
+ /**
2449
+ * Present when the indicator begins animating in.
2450
+ */
2451
+ declare const startingStyle_3 = "data-starting-style";
2452
+
2453
+ /**
2454
+ * Present when the button begins animating in.
2455
+ */
2456
+ declare const startingStyle_4 = "data-starting-style";
2457
+
2458
+ declare const swipe: 'swipe';
1839
2459
 
1840
- declare const trackPress: "track-press";
2460
+ /**
2461
+ * Present when the component has been touched (when wrapped in Field.Root).
2462
+ */
2463
+ declare const touched = "data-touched";
2464
+
2465
+ /**
2466
+ * Present when the component has been touched (when wrapped in Field.Root).
2467
+ */
2468
+ declare const touched_2 = "data-touched";
2469
+
2470
+ /**
2471
+ * Present when the component has been touched (when wrapped in Field.Root).
2472
+ */
2473
+ declare const touched_3 = "data-touched";
2474
+
2475
+ declare const trackPress: 'track-press';
2476
+
2477
+ /**
2478
+ * The coordinates that this element is anchored to. Used for animations and transitions.
2479
+ * @type {string}
2480
+ */
2481
+ declare const transformOrigin = "--transform-origin";
1841
2482
 
1842
2483
  declare type TransitionStatus = 'starting' | 'ending' | 'idle' | undefined;
1843
2484
 
1844
- declare const triggerFocus: "trigger-focus";
2485
+ declare const triggerFocus: 'trigger-focus';
1845
2486
 
1846
- declare const triggerHover: "trigger-hover";
2487
+ declare const triggerHover: 'trigger-hover';
1847
2488
 
1848
- declare const triggerPress: "trigger-press";
2489
+ declare const triggerPress: 'trigger-press';
2490
+
2491
+ /**
2492
+ * Present when the arrow is uncentered.
2493
+ */
2494
+ declare const uncentered = "data-uncentered";
1849
2495
 
1850
2496
  declare interface UseAnchorPositioningSharedParameters {
1851
2497
  /**
@@ -1996,36 +2642,33 @@ declare function useComboboxFilter(options?: ComboboxFilterOptions): ComboboxFil
1996
2642
 
1997
2643
  /**
1998
2644
  * Returns the internally filtered items.
2645
+ * Treat the result as read-only: it is internal state and may be a shared frozen array.
1999
2646
  */
2000
2647
  declare function useFilteredItems<T>(): T[];
2001
2648
 
2002
- declare interface UseFloatingPortalNodeProps {
2003
- ref?: React_2.Ref<HTMLDivElement> | undefined;
2004
- container?: HTMLElement | ShadowRoot | null | React_2.RefObject<HTMLElement | ShadowRoot | null> | undefined;
2005
- componentProps?: UseRenderElementComponentProps<any> | undefined;
2006
- elementProps?: React_2.HTMLAttributes<HTMLDivElement> | undefined;
2007
- }
2649
+ /**
2650
+ * Present when the component is in a valid state (when wrapped in Field.Root).
2651
+ */
2652
+ declare const valid = "data-valid";
2008
2653
 
2009
- declare interface UseRenderElementComponentProps<State> {
2010
- /**
2011
- * The class name to apply to the rendered element.
2012
- * Can be a string or a function that accepts the state and returns a string.
2013
- */
2014
- className?: string | ((state: State) => string | undefined) | undefined;
2015
- /**
2016
- * The render prop or React element to override the default element.
2017
- */
2018
- render?: undefined | React_2.ReactElement | ComponentRenderFn<React_2.HTMLAttributes<any>, State>;
2019
- /**
2020
- * The style to apply to the rendered element.
2021
- * Can be a style object or a function that accepts the state and returns a style object.
2022
- */
2023
- style?: React_2.CSSProperties | ((state: State) => React_2.CSSProperties | undefined) | undefined;
2024
- }
2654
+ /**
2655
+ * Present when the component is in a valid state (when wrapped in Field.Root).
2656
+ */
2657
+ declare const valid_2 = "data-valid";
2658
+
2659
+ /**
2660
+ * Present when the component is in a valid state (when wrapped in Field.Root).
2661
+ */
2662
+ declare const valid_3 = "data-valid";
2663
+
2664
+ /**
2665
+ * Present when the clear button is visible.
2666
+ */
2667
+ declare const visible = "data-visible";
2025
2668
 
2026
- declare const wheel: "wheel";
2669
+ declare const wheel: 'wheel';
2027
2670
 
2028
- declare const windowResize: "window-resize";
2671
+ declare const windowResize: 'window-resize';
2029
2672
 
2030
2673
  /**
2031
2674
  * Adds a `preventBaseUIHandler` method to all event handlers.