@wix/site-ui 1.30.0 → 1.32.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 (173) hide show
  1. package/dist/1268.js +99 -0
  2. package/dist/1279.js +7 -0
  3. package/dist/1457.js +10 -0
  4. package/dist/1477.js +106 -0
  5. package/dist/1500.js +111 -0
  6. package/dist/167.js +6 -0
  7. package/dist/2274.js +34 -0
  8. package/dist/2287.js +17 -0
  9. package/dist/2418.js +31 -0
  10. package/dist/2801.js +20 -0
  11. package/dist/285.js +86 -0
  12. package/dist/2861.js +6 -0
  13. package/dist/3020.js +7 -0
  14. package/dist/3021.js +72 -0
  15. package/dist/3056.js +229 -0
  16. package/dist/3140.js +4 -0
  17. package/dist/3248.js +307 -0
  18. package/dist/3296.js +4 -0
  19. package/dist/3319.js +400 -0
  20. package/dist/3395.js +4 -0
  21. package/dist/3485.js +854 -0
  22. package/dist/353.js +14 -0
  23. package/dist/3670.js +418 -0
  24. package/dist/3829.js +113 -0
  25. package/dist/4026.js +12 -0
  26. package/dist/4143.js +46 -0
  27. package/dist/42.js +32 -0
  28. package/dist/4281.js +30 -0
  29. package/dist/4346.js +2 -0
  30. package/dist/4388.js +418 -0
  31. package/dist/4490.js +32 -0
  32. package/dist/4495.js +9 -0
  33. package/dist/4549.js +24 -0
  34. package/dist/4586.js +41 -0
  35. package/dist/4586.js.LICENSE.txt +19 -0
  36. package/dist/4707.js +19 -0
  37. package/dist/4723.js +7 -0
  38. package/dist/4745.js +7 -0
  39. package/dist/4768.js +35 -0
  40. package/dist/4922.js +15 -0
  41. package/dist/5036.js +17 -0
  42. package/dist/5085.js +20 -0
  43. package/dist/5299.js +597 -0
  44. package/dist/5659.js +4 -0
  45. package/dist/5778.js +10 -0
  46. package/dist/5864.js +86 -0
  47. package/dist/5992.js +913 -0
  48. package/dist/5992.js.LICENSE.txt +19 -0
  49. package/dist/6003.js +10 -0
  50. package/dist/6046.js +29 -0
  51. package/dist/6089.js +2355 -0
  52. package/dist/6107.js +10 -0
  53. package/dist/6247.js +20 -0
  54. package/dist/6270.js +487 -0
  55. package/dist/6329.js +32 -0
  56. package/dist/6330.js +30 -0
  57. package/dist/6499.js +7 -0
  58. package/dist/6535.js +71 -0
  59. package/dist/6588.js +382 -0
  60. package/dist/6706.js +16 -0
  61. package/dist/6825.js +7 -0
  62. package/dist/6882.js +1562 -0
  63. package/dist/6914.js +30 -0
  64. package/dist/7021.js +13 -0
  65. package/dist/7366.js +83 -0
  66. package/dist/7373.js +25 -0
  67. package/dist/7541.js +25 -0
  68. package/dist/7564.js +10 -0
  69. package/dist/7642.js +20 -0
  70. package/dist/7725.js +10 -0
  71. package/dist/7871.js +38 -0
  72. package/dist/8052.js +352 -0
  73. package/dist/8106.js +238 -0
  74. package/dist/8171.js +346 -0
  75. package/dist/8225.js +21 -0
  76. package/dist/8272.js +333 -0
  77. package/dist/8527.js +58 -0
  78. package/dist/8724.js +10 -0
  79. package/dist/8750.js +1920 -0
  80. package/dist/8758.js +43 -0
  81. package/dist/880.js +149 -0
  82. package/dist/8935.js +8 -0
  83. package/dist/8960.js +22 -0
  84. package/dist/8971.js +40 -0
  85. package/dist/8979.js +10 -0
  86. package/dist/8996.js +71 -0
  87. package/dist/904.js +121 -0
  88. package/dist/9048.js +52 -0
  89. package/dist/9087.js +256 -0
  90. package/dist/9189.js +158 -0
  91. package/dist/9255.js +136 -0
  92. package/dist/9352.js +148 -0
  93. package/dist/951.js +22 -0
  94. package/dist/9635.js +22 -0
  95. package/dist/9829.js +4 -0
  96. package/dist/9863.js +8 -0
  97. package/dist/Accordion/index.d.ts +569 -12
  98. package/dist/Accordion/index.js +423 -8
  99. package/dist/AlertDialog/index.d.ts +1417 -18
  100. package/dist/AlertDialog/index.js +34 -14
  101. package/dist/Autocomplete/index.d.ts +1861 -38
  102. package/dist/Autocomplete/index.js +98 -24
  103. package/dist/Avatar/index.d.ts +129 -7
  104. package/dist/Avatar/index.js +149 -6
  105. package/dist/Breadcrumbs/index.d.ts +960 -7
  106. package/dist/Breadcrumbs/index.js +5 -5
  107. package/dist/Button/index.d.ts +88 -6
  108. package/dist/Button/index.js +27 -3
  109. package/dist/Checkbox/index.d.ts +425 -5
  110. package/dist/Checkbox/index.js +45 -5
  111. package/dist/CheckboxGroup/index.d.ts +318 -3
  112. package/dist/CheckboxGroup/index.js +166 -3
  113. package/dist/Collapsible/index.d.ts +377 -7
  114. package/dist/Collapsible/index.js +160 -6
  115. package/dist/Combobox/index.d.ts +1984 -48
  116. package/dist/Combobox/index.js +352 -29
  117. package/dist/ContextMenu/index.d.ts +2340 -36
  118. package/dist/ContextMenu/index.js +197 -22
  119. package/dist/Dialog/index.d.ts +1355 -18
  120. package/dist/Dialog/index.js +16 -14
  121. package/dist/Drawer/index.d.ts +1653 -18
  122. package/dist/Drawer/index.js +2797 -20
  123. package/dist/Field/index.d.ts +655 -15
  124. package/dist/Field/index.js +677 -10
  125. package/dist/Fieldset/index.d.ts +94 -5
  126. package/dist/Fieldset/index.js +68 -5
  127. package/dist/Form/index.d.ts +331 -2
  128. package/dist/Form/index.js +106 -3
  129. package/dist/Input/index.d.ts +692 -3
  130. package/dist/Input/index.js +10 -3
  131. package/dist/Menu/index.d.ts +2301 -36
  132. package/dist/Menu/index.js +365 -26
  133. package/dist/Menubar/index.d.ts +2301 -3
  134. package/dist/Menubar/index.js +105 -3
  135. package/dist/Meter/index.d.ts +175 -11
  136. package/dist/Meter/index.js +129 -9
  137. package/dist/NavigationMenu/index.d.ts +978 -28
  138. package/dist/NavigationMenu/index.js +1034 -17
  139. package/dist/NumberField/index.d.ts +612 -15
  140. package/dist/NumberField/index.js +1409 -11
  141. package/dist/Popover/index.d.ts +1655 -20
  142. package/dist/Popover/index.js +792 -17
  143. package/dist/PreviewCard/index.d.ts +1523 -14
  144. package/dist/PreviewCard/index.js +679 -14
  145. package/dist/Progress/index.d.ts +183 -11
  146. package/dist/Progress/index.js +181 -9
  147. package/dist/Radio/index.d.ts +185 -6
  148. package/dist/Radio/index.js +253 -6
  149. package/dist/RadioGroup/index.d.ts +341 -2
  150. package/dist/RadioGroup/index.js +154 -3
  151. package/dist/ScrollArea/index.d.ts +265 -13
  152. package/dist/ScrollArea/index.js +892 -10
  153. package/dist/Select/index.d.ts +1493 -38
  154. package/dist/Select/index.js +1824 -23
  155. package/dist/Separator/index.d.ts +80 -6
  156. package/dist/Separator/index.js +3 -3
  157. package/dist/Slider/index.d.ts +678 -16
  158. package/dist/Slider/index.js +1199 -11
  159. package/dist/Switch/index.d.ts +393 -5
  160. package/dist/Switch/index.js +208 -6
  161. package/dist/Tabs/index.d.ts +523 -12
  162. package/dist/Tabs/index.js +685 -9
  163. package/dist/Toggle/index.d.ts +305 -2
  164. package/dist/Toggle/index.js +76 -3
  165. package/dist/ToggleGroup/index.d.ts +316 -2
  166. package/dist/ToggleGroup/index.js +102 -3
  167. package/dist/Toolbar/index.d.ts +282 -13
  168. package/dist/Toolbar/index.js +230 -9
  169. package/dist/Tooltip/index.d.ts +1572 -14
  170. package/dist/Tooltip/index.js +965 -14
  171. package/dist/index.d.ts +12749 -652
  172. package/dist/rslib-runtime.js +18 -0
  173. package/package.json +3 -3
@@ -1,23 +1,22 @@
1
- import { Accordion as Accordion_2 } from '@base-ui/react/accordion';
2
- import { AccordionHeaderProps } from '@base-ui/react/accordion';
3
- import { AccordionItemProps } from '@base-ui/react/accordion';
4
- import { AccordionPanelProps } from '@base-ui/react/accordion';
5
- import { AccordionTriggerProps } from '@base-ui/react/accordion';
1
+ import { AccordionHeaderProps as AccordionHeaderProps_2 } from '@base-ui/react/accordion';
2
+ import { AccordionItemProps as AccordionItemProps_2 } from '@base-ui/react/accordion';
3
+ import { AccordionPanelProps as AccordionPanelProps_2 } from '@base-ui/react/accordion';
4
+ import { AccordionTriggerProps as AccordionTriggerProps_2 } from '@base-ui/react/accordion';
6
5
  import { ChevronDownProps } from '@wix/wix-ui-icons-common/dist/types/default/general/dist/components/ChevronDown';
7
6
  import { JSX as JSX_2 } from 'react/jsx-runtime';
8
7
  import * as React_2 from 'react';
9
8
 
10
9
  export declare const Accordion: {
11
- Item: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<AccordionItemProps, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
10
+ Item: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<AccordionItemProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
12
11
  className?: string | undefined;
13
12
  } & React_2.RefAttributes<HTMLDivElement>>;
14
- Header: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<AccordionHeaderProps, "ref"> & React_2.RefAttributes<HTMLHeadingElement>, "ref">, "className"> & {
13
+ Header: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<AccordionHeaderProps_2, "ref"> & React_2.RefAttributes<HTMLHeadingElement>, "ref">, "className"> & {
15
14
  className?: string | undefined;
16
15
  } & React_2.RefAttributes<HTMLHeadingElement>>;
17
- Trigger: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<AccordionTriggerProps, "ref"> & React_2.RefAttributes<HTMLElement>, "ref">, "className"> & {
16
+ Trigger: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<AccordionTriggerProps_2, "ref"> & React_2.RefAttributes<HTMLElement>, "ref">, "className"> & {
18
17
  className?: string | undefined;
19
18
  } & React_2.RefAttributes<HTMLElement>>;
20
- Panel: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<AccordionPanelProps, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
19
+ Panel: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<AccordionPanelProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
21
20
  className?: string | undefined;
22
21
  } & React_2.RefAttributes<HTMLDivElement>>;
23
22
  Root: typeof Root;
@@ -35,23 +34,525 @@ export declare const Accordion: {
35
34
  } & React_2.RefAttributes<HTMLSpanElement>>;
36
35
  };
37
36
 
37
+ export declare namespace Accordion_2 {
38
+ export {
39
+ AccordionRoot as Root,
40
+ AccordionItem as Item,
41
+ AccordionHeader as Header,
42
+ AccordionTrigger as Trigger,
43
+ AccordionPanel as Panel
44
+ }
45
+ }
46
+
47
+ /**
48
+ * A heading that labels the corresponding panel.
49
+ * Renders an `<h3>` element.
50
+ *
51
+ * Documentation: [Base UI Accordion](https://base-ui.com/react/components/accordion)
52
+ */
53
+ export declare const AccordionHeader: React_2.ForwardRefExoticComponent<Omit<AccordionHeaderProps, "ref"> & React_2.RefAttributes<HTMLHeadingElement>>;
54
+
55
+ export declare namespace AccordionHeader {
56
+ export type State = AccordionHeaderState;
57
+ export type Props = AccordionHeaderProps;
58
+ }
59
+
60
+ export declare interface AccordionHeaderProps extends BaseUIComponentProps<'h3', AccordionHeaderState> {}
61
+
62
+ export declare interface AccordionHeaderState extends AccordionItemState {}
63
+
64
+ /**
65
+ * Groups an accordion header with the corresponding panel.
66
+ * Renders a `<div>` element.
67
+ *
68
+ * Documentation: [Base UI Accordion](https://base-ui.com/react/components/accordion)
69
+ */
70
+ export declare const AccordionItem: React_2.ForwardRefExoticComponent<Omit<AccordionItemProps, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
71
+
72
+ export declare namespace AccordionItem {
73
+ export type State = AccordionItemState;
74
+ export type Props = AccordionItemProps;
75
+ export type ChangeEventReason = AccordionItemChangeEventReason;
76
+ export type ChangeEventDetails = AccordionItemChangeEventDetails;
77
+ }
78
+
79
+ export declare type AccordionItemChangeEventDetails = BaseUIChangeEventDetails<AccordionItem.ChangeEventReason>;
80
+
81
+ export declare type AccordionItemChangeEventReason = typeof REASONS.triggerPress | typeof REASONS.none;
82
+
83
+ export declare interface AccordionItemProps extends BaseUIComponentProps<'div', AccordionItemState>, Partial<Pick<UseCollapsibleRootParameters, 'disabled'>> {
84
+ /**
85
+ * A unique value that identifies this accordion item.
86
+ * If no value is provided, a unique ID will be generated automatically.
87
+ * Use when controlling the accordion programmatically, or to set an initial
88
+ * open state.
89
+ * @example
90
+ * ```tsx
91
+ * <Accordion.Root value={['a']}>
92
+ * <Accordion.Item value="a" /> // initially open
93
+ * <Accordion.Item value="b" /> // initially closed
94
+ * </Accordion.Root>
95
+ * ```
96
+ */
97
+ value?: any;
98
+ /**
99
+ * Event handler called when the panel is opened or closed.
100
+ */
101
+ onOpenChange?: ((open: boolean, eventDetails: AccordionItem.ChangeEventDetails) => void) | undefined;
102
+ }
103
+
104
+ export declare interface AccordionItemState extends AccordionRootState {
105
+ /**
106
+ * Whether the accordion item's panel is currently hidden.
107
+ */
108
+ hidden: boolean;
109
+ /**
110
+ * The item index.
111
+ */
112
+ index: number;
113
+ /**
114
+ * Whether the component is open.
115
+ */
116
+ open: boolean;
117
+ }
118
+
119
+ /**
120
+ * A collapsible panel with the accordion item contents.
121
+ * Renders a `<div>` element.
122
+ *
123
+ * Documentation: [Base UI Accordion](https://base-ui.com/react/components/accordion)
124
+ */
125
+ export declare const AccordionPanel: React_2.ForwardRefExoticComponent<Omit<AccordionPanelProps, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
126
+
127
+ export declare namespace AccordionPanel {
128
+ export type State = AccordionPanelState;
129
+ export type Props = AccordionPanelProps;
130
+ }
131
+
132
+ export declare interface AccordionPanelProps extends BaseUIComponentProps<'div', AccordionPanelState>, Pick<AccordionRoot.Props, 'hiddenUntilFound' | 'keepMounted'> {}
133
+
134
+ export declare interface AccordionPanelState extends AccordionItemState {
135
+ /**
136
+ * The transition status of the component.
137
+ */
138
+ transitionStatus: TransitionStatus;
139
+ }
140
+
141
+ /**
142
+ * Groups all parts of the accordion.
143
+ * Renders a `<div>` element.
144
+ *
145
+ * Documentation: [Base UI Accordion](https://base-ui.com/react/components/accordion)
146
+ */
147
+ export declare const AccordionRoot: {
148
+ <Value = any>(props: AccordionRoot.Props<Value>): React_2.JSX.Element;
149
+ };
150
+
151
+ export declare namespace AccordionRoot {
152
+ export type Value<TValue = any> = AccordionValue<TValue>;
153
+ export type State<TValue = any> = AccordionRootState<TValue>;
154
+ export type Props<TValue = any> = AccordionRootProps<TValue>;
155
+ export type ChangeEventReason = AccordionRootChangeEventReason;
156
+ export type ChangeEventDetails = AccordionRootChangeEventDetails;
157
+ }
158
+
159
+ export declare type AccordionRootChangeEventDetails = BaseUIChangeEventDetails<AccordionRoot.ChangeEventReason>;
160
+
161
+ export declare type AccordionRootChangeEventReason = typeof REASONS.triggerPress | typeof REASONS.none;
162
+
163
+ export declare interface AccordionRootProps<Value = any> extends BaseUIComponentProps<'div', AccordionRoot.State<Value>> {
164
+ /**
165
+ * The controlled value of the item(s) that should be expanded.
166
+ *
167
+ * To render an uncontrolled accordion, use the `defaultValue` prop instead.
168
+ */
169
+ value?: AccordionValue<Value> | undefined;
170
+ /**
171
+ * The uncontrolled value of the item(s) that should be initially expanded.
172
+ *
173
+ * To render a controlled accordion, use the `value` prop instead.
174
+ */
175
+ defaultValue?: AccordionValue<Value> | undefined;
176
+ /**
177
+ * Whether the component should ignore user interaction.
178
+ * @default false
179
+ */
180
+ disabled?: boolean | undefined;
181
+ /**
182
+ * Allows the browser's built-in page search to find and expand the panel contents.
183
+ *
184
+ * Overrides the `keepMounted` prop and uses `hidden="until-found"`
185
+ * to hide the element without removing it from the DOM.
186
+ * @default false
187
+ */
188
+ hiddenUntilFound?: boolean | undefined;
189
+ /**
190
+ * Whether to keep the element in the DOM while the panel is closed.
191
+ * This prop is ignored when `hiddenUntilFound` is used.
192
+ * @default false
193
+ */
194
+ keepMounted?: boolean | undefined;
195
+ /**
196
+ * Whether to loop keyboard focus back to the first item
197
+ * when the end of the list is reached while using the arrow keys.
198
+ * @default true
199
+ */
200
+ loopFocus?: boolean | undefined;
201
+ /**
202
+ * Event handler called when an accordion item is expanded or collapsed.
203
+ * Provides the new value as an argument.
204
+ */
205
+ onValueChange?: ((value: AccordionValue<Value>, eventDetails: AccordionRootChangeEventDetails) => void) | undefined;
206
+ /**
207
+ * Whether multiple items can be open at the same time.
208
+ * @default false
209
+ */
210
+ multiple?: boolean | undefined;
211
+ /**
212
+ * The visual orientation of the accordion.
213
+ * Controls whether roving focus uses left/right or up/down arrow keys.
214
+ * @default 'vertical'
215
+ */
216
+ orientation?: Orientation | undefined;
217
+ }
218
+
219
+ export declare interface AccordionRootState<Value = any> {
220
+ /**
221
+ * The current value.
222
+ */
223
+ value: AccordionValue<Value>;
224
+ /**
225
+ * Whether the component should ignore user interaction.
226
+ */
227
+ disabled: boolean;
228
+ /**
229
+ * The component orientation.
230
+ */
231
+ orientation: Orientation;
232
+ }
233
+
38
234
  export declare const AccordionSize: {
39
235
  readonly small: "small";
40
236
  readonly large: "large";
41
237
  };
42
238
 
239
+ /**
240
+ * A button that opens and closes the corresponding panel.
241
+ * Renders a `<button>` element.
242
+ *
243
+ * Documentation: [Base UI Accordion](https://base-ui.com/react/components/accordion)
244
+ */
245
+ export declare const AccordionTrigger: React_2.ForwardRefExoticComponent<Omit<AccordionTriggerProps, "ref"> & React_2.RefAttributes<HTMLElement>>;
246
+
247
+ export declare namespace AccordionTrigger {
248
+ export type State = AccordionTriggerState;
249
+ export type Props = AccordionTriggerProps;
250
+ }
251
+
252
+ export declare interface AccordionTriggerProps extends NativeButtonProps, BaseUIComponentProps<'button', AccordionTriggerState> {}
253
+
254
+ export declare interface AccordionTriggerState extends AccordionItemState {}
255
+
256
+ export declare type AccordionValue<Value = any> = Value[];
257
+
43
258
  export declare const AccordionVariant: {
44
259
  readonly line: "line";
45
260
  readonly box: "box";
46
261
  };
47
262
 
263
+ declare type BaseUIChangeEventDetail<Reason extends string, CustomProperties extends object> = {
264
+ /**
265
+ * The reason for the event.
266
+ */
267
+ reason: Reason;
268
+ /**
269
+ * The native event associated with the custom event.
270
+ */
271
+ event: ReasonToEvent<Reason>;
272
+ /**
273
+ * Cancels Base UI from handling the event.
274
+ */
275
+ cancel: () => void;
276
+ /**
277
+ * Allows the event to propagate in cases where Base UI will stop the propagation.
278
+ */
279
+ allowPropagation: () => void;
280
+ /**
281
+ * Indicates whether the event has been canceled.
282
+ */
283
+ isCanceled: boolean;
284
+ /**
285
+ * Indicates whether the event is allowed to propagate.
286
+ */
287
+ isPropagationAllowed: boolean;
288
+ /**
289
+ * The element that triggered the event, if applicable.
290
+ */
291
+ trigger: Element | undefined;
292
+ } & CustomProperties;
293
+
294
+ /**
295
+ * Details of custom change events emitted by Base UI components.
296
+ */
297
+ declare type BaseUIChangeEventDetails<Reason extends string, CustomProperties extends object = {}> = Reason extends string ? BaseUIChangeEventDetail<Reason, CustomProperties> & {} : never;
298
+
299
+ /**
300
+ * Props shared by all Base UI components.
301
+ * Contains `className` (string or callback taking the component's state as an argument) and `render` (function to customize rendering).
302
+ */
303
+ declare type BaseUIComponentProps<ElementType extends React_2.ElementType, State, RenderFunctionProps = HTMLProps> = Omit<WithBaseUIEvent<React_2.ComponentPropsWithRef<ElementType>>, 'className' | 'color' | 'defaultValue' | 'defaultChecked' | 'style'> & {
304
+ /**
305
+ * CSS class applied to the element, or a function that
306
+ * returns a class based on the component's state.
307
+ */
308
+ className?: string | ((state: State) => string | undefined) | undefined;
309
+ /**
310
+ * Allows you to replace the component's HTML element
311
+ * with a different tag, or compose it with another component.
312
+ *
313
+ * Accepts a `ReactElement` or a function that returns the element to render.
314
+ */
315
+ render?: React_2.ReactElement | ComponentRenderFn<RenderFunctionProps, State> | undefined;
316
+ /**
317
+ * Style applied to the element, or a function that
318
+ * returns a style object based on the component's state.
319
+ */
320
+ style?: React_2.CSSProperties | ((state: State) => React_2.CSSProperties | undefined) | undefined;
321
+ };
322
+
323
+ declare type BaseUIEvent<E extends React_2.SyntheticEvent<Element, Event>> = E & {
324
+ preventBaseUIHandler: () => void;
325
+ readonly baseUIHandlerPrevented?: boolean | undefined;
326
+ };
327
+
328
+ declare const cancelOpen: "cancel-open";
329
+
330
+ declare const chipRemovePress: "chip-remove-press";
331
+
332
+ declare const clearPress: "clear-press";
333
+
334
+ declare const closePress: "close-press";
335
+
336
+ declare const closeWatcher: "close-watcher";
337
+
338
+ /**
339
+ * Groups all parts of the collapsible.
340
+ * Renders a `<div>` element.
341
+ *
342
+ * Documentation: [Base UI Collapsible](https://base-ui.com/react/components/collapsible)
343
+ */
344
+ declare const CollapsibleRoot: React_2.ForwardRefExoticComponent<Omit<CollapsibleRootProps, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
345
+
346
+ declare namespace CollapsibleRoot {
347
+ type State = CollapsibleRootState;
348
+ type Props = CollapsibleRootProps;
349
+ type ChangeEventReason = CollapsibleRootChangeEventReason;
350
+ type ChangeEventDetails = CollapsibleRootChangeEventDetails;
351
+ }
352
+
353
+ declare type CollapsibleRootChangeEventDetails = BaseUIChangeEventDetails<CollapsibleRootChangeEventReason>;
354
+
355
+ declare type CollapsibleRootChangeEventReason = typeof REASONS.triggerPress | typeof REASONS.none;
356
+
357
+ declare interface CollapsibleRootProps extends BaseUIComponentProps<'div', CollapsibleRootState> {
358
+ /**
359
+ * Whether the collapsible panel is currently open.
360
+ *
361
+ * To render an uncontrolled collapsible, use the `defaultOpen` prop instead.
362
+ */
363
+ open?: boolean | undefined;
364
+ /**
365
+ * Whether the collapsible panel is initially open.
366
+ *
367
+ * To render a controlled collapsible, use the `open` prop instead.
368
+ * @default false
369
+ */
370
+ defaultOpen?: boolean | undefined;
371
+ /**
372
+ * Event handler called when the panel is opened or closed.
373
+ */
374
+ onOpenChange?: ((open: boolean, eventDetails: CollapsibleRootChangeEventDetails) => void) | undefined;
375
+ /**
376
+ * Whether the component should ignore user interaction.
377
+ * @default false
378
+ */
379
+ disabled?: boolean | undefined;
380
+ }
381
+
382
+ declare interface CollapsibleRootState extends Pick<UseCollapsibleRootReturnValue, 'open' | 'disabled' | 'transitionStatus'> {}
383
+
384
+ /**
385
+ * 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.
386
+ *
387
+ * @template Props Props to be spread on the rendered element.
388
+ * @template State Component's internal state.
389
+ */
390
+ declare type ComponentRenderFn<Props, State> = (props: Props, state: State) => React_2.ReactElement<unknown>;
391
+
392
+ declare const decrementPress: "decrement-press";
393
+
394
+ declare const disabled: "disabled";
395
+
396
+ declare const drag: "drag";
397
+
398
+ declare const escapeKey: "escape-key";
399
+
400
+ declare const focusOut: "focus-out";
401
+
402
+ declare type HTMLProps<T = any> = React_2.HTMLAttributes<T> & {
403
+ ref?: React_2.Ref<T> | undefined;
404
+ };
405
+
406
+ declare const imperativeAction: "imperative-action";
407
+
408
+ declare const incrementPress: "increment-press";
409
+
410
+ declare const initial: "initial";
411
+
412
+ declare const inputBlur: "input-blur";
413
+
414
+ declare const inputChange: "input-change";
415
+
416
+ declare const inputClear: "input-clear";
417
+
418
+ declare const inputPaste: "input-paste";
419
+
420
+ declare const inputPress: "input-press";
421
+
422
+ declare const itemPress: "item-press";
423
+
424
+ declare const keyboard: "keyboard";
425
+
426
+ declare const linkPress: "link-press";
427
+
428
+ declare const listNavigation: "list-navigation";
429
+
430
+ declare const missing: "missing";
431
+
432
+ declare interface NativeButtonProps {
433
+ /**
434
+ * Whether the component renders a native `<button>` element when replacing it
435
+ * via the `render` prop.
436
+ * Set to `false` if the rendered element is not a button (for example, `<div>`).
437
+ * @default true
438
+ */
439
+ nativeButton?: boolean | undefined;
440
+ }
441
+
442
+ declare const none: "none";
443
+
444
+ declare type Orientation = 'horizontal' | 'vertical';
445
+
446
+ declare const outsidePress: "outside-press";
447
+
448
+ declare const pointer: "pointer";
449
+
450
+ declare namespace REASONS {
451
+ export {
452
+ none,
453
+ triggerPress,
454
+ triggerHover,
455
+ triggerFocus,
456
+ outsidePress,
457
+ itemPress,
458
+ closePress,
459
+ linkPress,
460
+ clearPress,
461
+ chipRemovePress,
462
+ trackPress,
463
+ incrementPress,
464
+ decrementPress,
465
+ inputChange,
466
+ inputClear,
467
+ inputBlur,
468
+ inputPaste,
469
+ inputPress,
470
+ focusOut,
471
+ escapeKey,
472
+ closeWatcher,
473
+ listNavigation,
474
+ keyboard,
475
+ pointer,
476
+ drag,
477
+ wheel,
478
+ scrub,
479
+ cancelOpen,
480
+ siblingOpen,
481
+ disabled,
482
+ missing,
483
+ initial,
484
+ imperativeAction,
485
+ swipe,
486
+ windowResize
487
+ }
488
+ }
489
+
490
+ /**
491
+ * Maps a change `reason` string to the corresponding native event type.
492
+ */
493
+ declare type ReasonToEvent<Reason extends string> = Reason extends keyof ReasonToEventMap ? ReasonToEventMap[Reason] : Event;
494
+
495
+ declare interface ReasonToEventMap {
496
+ [REASONS.none]: Event;
497
+ [REASONS.triggerPress]: MouseEvent | PointerEvent | TouchEvent | KeyboardEvent;
498
+ [REASONS.triggerHover]: MouseEvent;
499
+ [REASONS.triggerFocus]: FocusEvent;
500
+ [REASONS.outsidePress]: MouseEvent | PointerEvent | TouchEvent;
501
+ [REASONS.itemPress]: MouseEvent | KeyboardEvent | PointerEvent;
502
+ [REASONS.closePress]: MouseEvent | KeyboardEvent | PointerEvent;
503
+ [REASONS.linkPress]: MouseEvent | PointerEvent;
504
+ [REASONS.clearPress]: PointerEvent | MouseEvent | KeyboardEvent;
505
+ [REASONS.chipRemovePress]: PointerEvent | MouseEvent | KeyboardEvent;
506
+ [REASONS.trackPress]: PointerEvent | MouseEvent | TouchEvent;
507
+ [REASONS.incrementPress]: PointerEvent | MouseEvent | TouchEvent;
508
+ [REASONS.decrementPress]: PointerEvent | MouseEvent | TouchEvent;
509
+ [REASONS.inputChange]: InputEvent | Event;
510
+ [REASONS.inputClear]: InputEvent | FocusEvent | Event;
511
+ [REASONS.inputBlur]: FocusEvent;
512
+ [REASONS.inputPaste]: ClipboardEvent;
513
+ [REASONS.inputPress]: MouseEvent | PointerEvent | TouchEvent | KeyboardEvent;
514
+ [REASONS.focusOut]: FocusEvent | KeyboardEvent;
515
+ [REASONS.escapeKey]: KeyboardEvent;
516
+ [REASONS.closeWatcher]: Event;
517
+ [REASONS.listNavigation]: KeyboardEvent;
518
+ [REASONS.keyboard]: KeyboardEvent;
519
+ [REASONS.pointer]: PointerEvent;
520
+ [REASONS.drag]: PointerEvent | TouchEvent;
521
+ [REASONS.swipe]: PointerEvent | TouchEvent;
522
+ [REASONS.wheel]: WheelEvent;
523
+ [REASONS.scrub]: PointerEvent;
524
+ [REASONS.cancelOpen]: MouseEvent;
525
+ [REASONS.siblingOpen]: Event;
526
+ [REASONS.disabled]: Event;
527
+ [REASONS.missing]: Event;
528
+ [REASONS.initial]: Event;
529
+ [REASONS.imperativeAction]: Event;
530
+ [REASONS.windowResize]: UIEvent;
531
+ }
532
+
48
533
  declare function Root<Value = any>({ className, size, variant, ...props }: WithStringClassName<Accordion_2.Root.Props<Value>> & {
49
534
  size?: Size;
50
535
  variant?: Variant;
51
536
  }): JSX_2.Element;
52
537
 
538
+ declare const scrub: "scrub";
539
+
540
+ declare const siblingOpen: "sibling-open";
541
+
53
542
  declare type Size = (typeof AccordionSize)[keyof typeof AccordionSize];
54
543
 
544
+ declare const swipe: "swipe";
545
+
546
+ declare const trackPress: "track-press";
547
+
548
+ declare type TransitionStatus = 'starting' | 'ending' | 'idle' | undefined;
549
+
550
+ declare const triggerFocus: "trigger-focus";
551
+
552
+ declare const triggerHover: "trigger-hover";
553
+
554
+ declare const triggerPress: "trigger-press";
555
+
55
556
  declare interface TypographyProps extends React_2.HTMLAttributes<HTMLElement> {
56
557
  variant?: TypographyVariant;
57
558
  render?: React_2.ReactElement;
@@ -59,13 +560,69 @@ declare interface TypographyProps extends React_2.HTMLAttributes<HTMLElement> {
59
560
 
60
561
  declare type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p1' | 'p2' | 'p3';
61
562
 
563
+ declare interface UseCollapsibleRootParameters {
564
+ /**
565
+ * Whether the collapsible panel is currently open.
566
+ *
567
+ * To render an uncontrolled collapsible, use the `defaultOpen` prop instead.
568
+ */
569
+ open?: boolean | undefined;
570
+ /**
571
+ * Whether the collapsible panel is initially open.
572
+ *
573
+ * To render a controlled collapsible, use the `open` prop instead.
574
+ * @default false
575
+ */
576
+ defaultOpen?: boolean | undefined;
577
+ /**
578
+ * Event handler called when the panel is opened or closed.
579
+ */
580
+ onOpenChange: (open: boolean, eventDetails: CollapsibleRoot.ChangeEventDetails) => void;
581
+ /**
582
+ * Whether the component should ignore user interaction.
583
+ * @default false
584
+ */
585
+ disabled: boolean;
586
+ }
587
+
588
+ declare interface UseCollapsibleRootReturnValue {
589
+ /**
590
+ * Whether the component should ignore user interaction.
591
+ */
592
+ disabled: boolean;
593
+ handleTrigger: (event: React_2.MouseEvent | React_2.KeyboardEvent) => void;
594
+ /**
595
+ * Whether the collapsible panel is mounted for transition and hidden-state
596
+ * purposes. This can be `false` while the element remains in the DOM when
597
+ * `keepMounted` or `hiddenUntilFound` is enabled.
598
+ */
599
+ mounted: boolean;
600
+ /**
601
+ * Whether the collapsible panel is currently open.
602
+ */
603
+ open: boolean;
604
+ panelId: React_2.HTMLAttributes<Element>['id'];
605
+ setMounted: (nextMounted: boolean) => void;
606
+ setOpen: (open: boolean) => void;
607
+ setPanelIdState: (id: string | undefined) => void;
608
+ transitionStatus: TransitionStatus;
609
+ }
610
+
62
611
  declare type Variant = (typeof AccordionVariant)[keyof typeof AccordionVariant];
63
612
 
613
+ declare const wheel: "wheel";
614
+
615
+ declare const windowResize: "window-resize";
616
+
617
+ /**
618
+ * Adds a `preventBaseUIHandler` method to all event handlers.
619
+ */
620
+ declare type WithBaseUIEvent<T> = { [K in keyof T]: WithPreventBaseUIHandler<T[K]> };
621
+
622
+ declare type WithPreventBaseUIHandler<T> = T extends ((event: infer E) => any) ? E extends React_2.SyntheticEvent<Element, Event> ? (event: BaseUIEvent<E>) => ReturnType<T> : T : T extends undefined ? undefined : T;
623
+
64
624
  declare type WithStringClassName<P> = Omit<P, 'className'> & {
65
625
  className?: string;
66
626
  };
67
627
 
68
-
69
- export * from "@base-ui/react/accordion";
70
-
71
628
  export { }