@wix/site-ui 1.30.0 → 1.31.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,64 +1,1014 @@
1
1
  import { JSX as JSX_2 } from 'react/jsx-runtime';
2
- import { NavigationMenu as NavigationMenu_2 } from '@base-ui/react/navigation-menu';
3
- import { NavigationMenuArrowProps } from '@base-ui/react/navigation-menu';
4
- import { NavigationMenuBackdropProps } from '@base-ui/react/navigation-menu';
5
- import { NavigationMenuContentProps } from '@base-ui/react/navigation-menu';
6
- import { NavigationMenuIconProps } from '@base-ui/react/navigation-menu';
7
- import { NavigationMenuItemProps } from '@base-ui/react/navigation-menu';
8
- import { NavigationMenuLinkProps } from '@base-ui/react/navigation-menu';
9
- import { NavigationMenuListProps } from '@base-ui/react/navigation-menu';
10
- import { NavigationMenuPopupProps } from '@base-ui/react/navigation-menu';
11
- import { NavigationMenuPortalProps } from '@base-ui/react/navigation-menu';
12
- import { NavigationMenuPositionerProps } from '@base-ui/react/navigation-menu';
13
- import { NavigationMenuTriggerProps } from '@base-ui/react/navigation-menu';
14
- import { NavigationMenuViewportProps } from '@base-ui/react/navigation-menu';
2
+ import { NavigationMenuArrowProps as NavigationMenuArrowProps_2 } from '@base-ui/react/navigation-menu';
3
+ import { NavigationMenuBackdropProps as NavigationMenuBackdropProps_2 } from '@base-ui/react/navigation-menu';
4
+ import { NavigationMenuContentProps as NavigationMenuContentProps_2 } from '@base-ui/react/navigation-menu';
5
+ import { NavigationMenuIconProps as NavigationMenuIconProps_2 } from '@base-ui/react/navigation-menu';
6
+ import { NavigationMenuItemProps as NavigationMenuItemProps_2 } from '@base-ui/react/navigation-menu';
7
+ import { NavigationMenuLinkProps as NavigationMenuLinkProps_2 } from '@base-ui/react/navigation-menu';
8
+ import { NavigationMenuListProps as NavigationMenuListProps_2 } from '@base-ui/react/navigation-menu';
9
+ import { NavigationMenuPopupProps as NavigationMenuPopupProps_2 } from '@base-ui/react/navigation-menu';
10
+ import { NavigationMenuPortalProps as NavigationMenuPortalProps_2 } from '@base-ui/react/navigation-menu';
11
+ import { NavigationMenuPositionerProps as NavigationMenuPositionerProps_2 } from '@base-ui/react/navigation-menu';
12
+ import { NavigationMenuTriggerProps as NavigationMenuTriggerProps_2 } from '@base-ui/react/navigation-menu';
13
+ import { NavigationMenuViewportProps as NavigationMenuViewportProps_2 } from '@base-ui/react/navigation-menu';
14
+ import { Padding } from '@floating-ui/react-dom';
15
15
  import * as React_2 from 'react';
16
+ import { Rect } from '@floating-ui/utils';
17
+ import { VirtualElement } from '@floating-ui/react-dom';
18
+
19
+ declare type Align = 'start' | 'center' | 'end';
20
+
21
+ declare type BaseUIChangeEventDetail<Reason extends string, CustomProperties extends object> = {
22
+ /**
23
+ * The reason for the event.
24
+ */
25
+ reason: Reason;
26
+ /**
27
+ * The native event associated with the custom event.
28
+ */
29
+ event: ReasonToEvent<Reason>;
30
+ /**
31
+ * Cancels Base UI from handling the event.
32
+ */
33
+ cancel: () => void;
34
+ /**
35
+ * Allows the event to propagate in cases where Base UI will stop the propagation.
36
+ */
37
+ allowPropagation: () => void;
38
+ /**
39
+ * Indicates whether the event has been canceled.
40
+ */
41
+ isCanceled: boolean;
42
+ /**
43
+ * Indicates whether the event is allowed to propagate.
44
+ */
45
+ isPropagationAllowed: boolean;
46
+ /**
47
+ * The element that triggered the event, if applicable.
48
+ */
49
+ trigger: Element | undefined;
50
+ } & CustomProperties;
51
+
52
+ /**
53
+ * Details of custom change events emitted by Base UI components.
54
+ */
55
+ declare type BaseUIChangeEventDetails<Reason extends string, CustomProperties extends object = {}> = Reason extends string ? BaseUIChangeEventDetail<Reason, CustomProperties> & {} : never;
56
+
57
+ /**
58
+ * Props shared by all Base UI components.
59
+ * Contains `className` (string or callback taking the component's state as an argument) and `render` (function to customize rendering).
60
+ */
61
+ declare type BaseUIComponentProps<ElementType extends React_2.ElementType, State, RenderFunctionProps = HTMLProps> = Omit<WithBaseUIEvent<React_2.ComponentPropsWithRef<ElementType>>, 'className' | 'color' | 'defaultValue' | 'defaultChecked' | 'style'> & {
62
+ /**
63
+ * CSS class applied to the element, or a function that
64
+ * returns a class based on the component's state.
65
+ */
66
+ className?: string | ((state: State) => string | undefined) | undefined;
67
+ /**
68
+ * Allows you to replace the component's HTML element
69
+ * with a different tag, or compose it with another component.
70
+ *
71
+ * Accepts a `ReactElement` or a function that returns the element to render.
72
+ */
73
+ render?: React_2.ReactElement | ComponentRenderFn<RenderFunctionProps, State> | undefined;
74
+ /**
75
+ * Style applied to the element, or a function that
76
+ * returns a style object based on the component's state.
77
+ */
78
+ style?: React_2.CSSProperties | ((state: State) => React_2.CSSProperties | undefined) | undefined;
79
+ };
80
+
81
+ declare type BaseUIEvent<E extends React_2.SyntheticEvent<Element, Event>> = E & {
82
+ preventBaseUIHandler: () => void;
83
+ readonly baseUIHandlerPrevented?: boolean | undefined;
84
+ };
85
+
86
+ declare type Boundary = 'clipping-ancestors' | Element | Element[] | Rect;
87
+
88
+ declare const cancelOpen: "cancel-open";
89
+
90
+ declare const chipRemovePress: "chip-remove-press";
91
+
92
+ declare const clearPress: "clear-press";
93
+
94
+ declare const closePress: "close-press";
95
+
96
+ declare const closeWatcher: "close-watcher";
97
+
98
+ declare type CollisionAvoidance = SideFlipMode | SideShiftMode;
99
+
100
+ /**
101
+ * 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.
102
+ *
103
+ * @template Props Props to be spread on the rendered element.
104
+ * @template State Component's internal state.
105
+ */
106
+ declare type ComponentRenderFn<Props, State> = (props: Props, state: State) => React_2.ReactElement<unknown>;
107
+
108
+ declare const decrementPress: "decrement-press";
109
+
110
+ declare const disabled: "disabled";
111
+
112
+ declare const drag: "drag";
113
+
114
+ declare const escapeKey: "escape-key";
115
+
116
+ /**
117
+ * Portals the floating element into a given container element — by default,
118
+ * outside of the app root and into the body.
119
+ * This is necessary to ensure the floating element can appear outside any
120
+ * potential parent containers that cause clipping (such as `overflow: hidden`),
121
+ * while retaining its location in the React tree.
122
+ * @see https://floating-ui.com/docs/FloatingPortal
123
+ * @internal
124
+ */
125
+ declare const FloatingPortal: React_2.ForwardRefExoticComponent<Omit<FloatingPortal.Props<any> & {
126
+ renderGuards?: boolean | undefined;
127
+ }, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
128
+
129
+ declare namespace FloatingPortal {
130
+ type State = FloatingPortalState;
131
+ interface Props<TState> extends BaseUIComponentProps<'div', TState> {
132
+ /**
133
+ * A parent element to render the portal element into.
134
+ */
135
+ container?: UseFloatingPortalNodeProps['container'] | undefined;
136
+ }
137
+ }
138
+
139
+ declare interface FloatingPortalState {}
140
+
141
+ declare const focusOut: "focus-out";
142
+
143
+ declare type HTMLProps<T = any> = React_2.HTMLAttributes<T> & {
144
+ ref?: React_2.Ref<T> | undefined;
145
+ };
146
+
147
+ declare const imperativeAction: "imperative-action";
148
+
149
+ declare const incrementPress: "increment-press";
150
+
151
+ declare const initial: "initial";
152
+
153
+ declare const inputBlur: "input-blur";
154
+
155
+ declare const inputChange: "input-change";
156
+
157
+ declare const inputClear: "input-clear";
158
+
159
+ declare const inputPaste: "input-paste";
160
+
161
+ declare const inputPress: "input-press";
162
+
163
+ declare const itemPress: "item-press";
164
+
165
+ declare const keyboard: "keyboard";
166
+
167
+ declare const linkPress: "link-press";
168
+
169
+ declare const listNavigation: "list-navigation";
170
+
171
+ declare const missing: "missing";
172
+
173
+ declare interface NativeButtonProps {
174
+ /**
175
+ * Whether the component renders a native `<button>` element when replacing it
176
+ * via the `render` prop.
177
+ * Set to `false` if the rendered element is not a button (for example, `<div>`).
178
+ * @default true
179
+ */
180
+ nativeButton?: boolean | undefined;
181
+ }
16
182
 
17
183
  export declare const NavigationMenu: {
18
- List: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<NavigationMenuListProps, "ref"> & React_2.RefAttributes<HTMLUListElement>, "ref">, "className"> & {
184
+ List: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<NavigationMenuListProps_2, "ref"> & React_2.RefAttributes<HTMLUListElement>, "ref">, "className"> & {
19
185
  className?: string | undefined;
20
186
  } & React_2.RefAttributes<HTMLUListElement>>;
21
- Item: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<NavigationMenuItemProps, "ref"> & React_2.RefAttributes<HTMLLIElement>, "ref">, "className"> & {
187
+ Item: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<NavigationMenuItemProps_2, "ref"> & React_2.RefAttributes<HTMLLIElement>, "ref">, "className"> & {
22
188
  className?: string | undefined;
23
189
  } & React_2.RefAttributes<HTMLLIElement>>;
24
- Content: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<NavigationMenuContentProps, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
190
+ Content: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<NavigationMenuContentProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
25
191
  className?: string | undefined;
26
192
  } & React_2.RefAttributes<HTMLDivElement>>;
27
- Trigger: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<NavigationMenuTriggerProps, "ref"> & React_2.RefAttributes<HTMLButtonElement>, "ref">, "className"> & {
193
+ Trigger: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<NavigationMenuTriggerProps_2, "ref"> & React_2.RefAttributes<HTMLButtonElement>, "ref">, "className"> & {
28
194
  className?: string | undefined;
29
195
  } & React_2.RefAttributes<HTMLButtonElement>>;
30
- Positioner: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<NavigationMenuPositionerProps, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
196
+ Positioner: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<NavigationMenuPositionerProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
31
197
  className?: string | undefined;
32
198
  } & React_2.RefAttributes<HTMLDivElement>>;
33
- Viewport: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<NavigationMenuViewportProps, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
199
+ Viewport: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<NavigationMenuViewportProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
34
200
  className?: string | undefined;
35
201
  } & React_2.RefAttributes<HTMLDivElement>>;
36
- Backdrop: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<NavigationMenuBackdropProps, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
202
+ Backdrop: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<NavigationMenuBackdropProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
37
203
  className?: string | undefined;
38
204
  } & React_2.RefAttributes<HTMLDivElement>>;
39
- Popup: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<NavigationMenuPopupProps, "ref"> & React_2.RefAttributes<HTMLElement>, "ref">, "className"> & {
205
+ Popup: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<NavigationMenuPopupProps_2, "ref"> & React_2.RefAttributes<HTMLElement>, "ref">, "className"> & {
40
206
  className?: string | undefined;
41
207
  } & React_2.RefAttributes<HTMLElement>>;
42
- Arrow: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<NavigationMenuArrowProps, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
208
+ Arrow: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<NavigationMenuArrowProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
43
209
  className?: string | undefined;
44
210
  } & React_2.RefAttributes<HTMLDivElement>>;
45
- Link: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<NavigationMenuLinkProps, "ref"> & React_2.RefAttributes<HTMLAnchorElement>, "ref">, "className"> & {
211
+ Link: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<NavigationMenuLinkProps_2, "ref"> & React_2.RefAttributes<HTMLAnchorElement>, "ref">, "className"> & {
46
212
  className?: string | undefined;
47
213
  } & React_2.RefAttributes<HTMLAnchorElement>>;
48
- Icon: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<NavigationMenuIconProps, "ref"> & React_2.RefAttributes<HTMLSpanElement>, "ref">, "className"> & {
214
+ Icon: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<NavigationMenuIconProps_2, "ref"> & React_2.RefAttributes<HTMLSpanElement>, "ref">, "className"> & {
49
215
  className?: string | undefined;
50
216
  } & React_2.RefAttributes<HTMLSpanElement>>;
51
217
  Root: typeof Root;
52
- Portal: React_2.ForwardRefExoticComponent<Omit<NavigationMenuPortalProps, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
218
+ Portal: React_2.ForwardRefExoticComponent<Omit<NavigationMenuPortalProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
53
219
  };
54
220
 
221
+ export declare namespace NavigationMenu_2 {
222
+ export {
223
+ NavigationMenuRoot as Root,
224
+ NavigationMenuList as List,
225
+ NavigationMenuItem as Item,
226
+ NavigationMenuContent as Content,
227
+ NavigationMenuTrigger as Trigger,
228
+ NavigationMenuPortal as Portal,
229
+ NavigationMenuPositioner as Positioner,
230
+ NavigationMenuViewport as Viewport,
231
+ NavigationMenuBackdrop as Backdrop,
232
+ NavigationMenuPopup as Popup,
233
+ NavigationMenuArrow as Arrow,
234
+ NavigationMenuLink as Link,
235
+ NavigationMenuIcon as Icon
236
+ }
237
+ }
238
+
239
+ /**
240
+ * Displays an element pointing toward the navigation menu's current anchor.
241
+ * Renders a `<div>` element.
242
+ *
243
+ * Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu)
244
+ */
245
+ export declare const NavigationMenuArrow: React_2.ForwardRefExoticComponent<Omit<NavigationMenuArrowProps, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
246
+
247
+ export declare namespace NavigationMenuArrow {
248
+ export type State = NavigationMenuArrowState;
249
+ export type Props = NavigationMenuArrowProps;
250
+ }
251
+
252
+ export declare interface NavigationMenuArrowProps extends BaseUIComponentProps<'div', NavigationMenuArrowState> {}
253
+
254
+ export declare interface NavigationMenuArrowState {
255
+ /**
256
+ * Whether the popup is currently open.
257
+ */
258
+ open: boolean;
259
+ /**
260
+ * The side of the anchor the component is placed on.
261
+ */
262
+ side: Side;
263
+ /**
264
+ * The alignment of the component relative to the anchor.
265
+ */
266
+ align: Align;
267
+ /**
268
+ * Whether the arrow cannot be centered on the anchor.
269
+ */
270
+ uncentered: boolean;
271
+ }
272
+
273
+ /**
274
+ * A backdrop for the navigation menu popup.
275
+ * Renders a `<div>` element.
276
+ *
277
+ * Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu)
278
+ */
279
+ export declare const NavigationMenuBackdrop: React_2.ForwardRefExoticComponent<Omit<NavigationMenuBackdropProps, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
280
+
281
+ export declare namespace NavigationMenuBackdrop {
282
+ export type State = NavigationMenuBackdropState;
283
+ export type Props = NavigationMenuBackdropProps;
284
+ }
285
+
286
+ export declare interface NavigationMenuBackdropProps extends BaseUIComponentProps<'div', NavigationMenuBackdropState> {}
287
+
288
+ export declare interface NavigationMenuBackdropState {
289
+ /**
290
+ * If `true`, the popup is open.
291
+ */
292
+ open: boolean;
293
+ /**
294
+ * The transition status of the popup.
295
+ */
296
+ transitionStatus: TransitionStatus;
297
+ }
298
+
299
+ /**
300
+ * A container for the content of the navigation menu item that is moved into the popup
301
+ * when the item is active.
302
+ * Renders a `<div>` element.
303
+ *
304
+ * Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu)
305
+ */
306
+ export declare const NavigationMenuContent: React_2.ForwardRefExoticComponent<Omit<NavigationMenuContentProps, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
307
+
308
+ export declare namespace NavigationMenuContent {
309
+ export type State = NavigationMenuContentState;
310
+ export type Props = NavigationMenuContentProps;
311
+ }
312
+
313
+ export declare interface NavigationMenuContentProps extends BaseUIComponentProps<'div', NavigationMenuContentState> {
314
+ /**
315
+ * Whether to keep the content mounted in the DOM while the popup is closed.
316
+ * Ensures the content is present during server-side rendering for web crawlers.
317
+ * @default false
318
+ */
319
+ keepMounted?: boolean | undefined;
320
+ }
321
+
322
+ export declare interface NavigationMenuContentState {
323
+ /**
324
+ * If `true`, the component is open.
325
+ */
326
+ open: boolean;
327
+ /**
328
+ * The transition status of the component.
329
+ */
330
+ transitionStatus: TransitionStatus;
331
+ /**
332
+ * The direction of the activation.
333
+ */
334
+ activationDirection: 'left' | 'right' | 'up' | 'down' | null;
335
+ }
336
+
337
+ /**
338
+ * An icon that indicates that the trigger button opens a menu.
339
+ *
340
+ * Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu)
341
+ */
342
+ export declare const NavigationMenuIcon: React_2.ForwardRefExoticComponent<Omit<NavigationMenuIconProps, "ref"> & React_2.RefAttributes<HTMLSpanElement>>;
343
+
344
+ export declare namespace NavigationMenuIcon {
345
+ export type State = NavigationMenuIconState;
346
+ export type Props = NavigationMenuIconProps;
347
+ }
348
+
349
+ export declare interface NavigationMenuIconProps extends BaseUIComponentProps<'span', NavigationMenuIconState> {}
350
+
351
+ export declare interface NavigationMenuIconState {
352
+ /**
353
+ * Whether the navigation menu is open and the item is active.
354
+ */
355
+ open: boolean;
356
+ }
357
+
358
+ /**
359
+ * An individual navigation menu item.
360
+ * Renders a `<li>` element.
361
+ *
362
+ * Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu)
363
+ */
364
+ export declare const NavigationMenuItem: React_2.ForwardRefExoticComponent<Omit<NavigationMenuItemProps, "ref"> & React_2.RefAttributes<HTMLLIElement>>;
365
+
366
+ export declare namespace NavigationMenuItem {
367
+ export type State = NavigationMenuItemState;
368
+ export type Props = NavigationMenuItemProps;
369
+ }
370
+
371
+ export declare interface NavigationMenuItemProps extends BaseUIComponentProps<'li', NavigationMenuItemState> {
372
+ /**
373
+ * A unique value that identifies this navigation menu item.
374
+ * If no value is provided, a unique ID will be generated automatically.
375
+ * Use when controlling the navigation menu programmatically.
376
+ */
377
+ value?: any;
378
+ }
379
+
380
+ export declare interface NavigationMenuItemState {}
381
+
382
+ /**
383
+ * A link in the navigation menu that can be used to navigate to a different page or section.
384
+ * Renders an `<a>` element.
385
+ *
386
+ * Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu)
387
+ */
388
+ export declare const NavigationMenuLink: React_2.ForwardRefExoticComponent<Omit<NavigationMenuLinkProps, "ref"> & React_2.RefAttributes<HTMLAnchorElement>>;
389
+
390
+ export declare namespace NavigationMenuLink {
391
+ export type State = NavigationMenuLinkState;
392
+ export type Props = NavigationMenuLinkProps;
393
+ }
394
+
395
+ export declare interface NavigationMenuLinkProps extends BaseUIComponentProps<'a', NavigationMenuLinkState> {
396
+ /**
397
+ * Whether the link is the currently active page.
398
+ * @default false
399
+ */
400
+ active?: boolean | undefined;
401
+ /**
402
+ * Whether to close the navigation menu when the link is clicked.
403
+ * @default false
404
+ */
405
+ closeOnClick?: boolean | undefined;
406
+ }
407
+
408
+ export declare interface NavigationMenuLinkState {
409
+ /**
410
+ * Whether the link is the currently active page.
411
+ */
412
+ active: boolean;
413
+ }
414
+
415
+ /**
416
+ * Contains a list of navigation menu items.
417
+ * Renders a `<ul>` element.
418
+ *
419
+ * Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu)
420
+ */
421
+ export declare const NavigationMenuList: React_2.ForwardRefExoticComponent<Omit<NavigationMenuListProps, "ref"> & React_2.RefAttributes<HTMLUListElement>>;
422
+
423
+ export declare namespace NavigationMenuList {
424
+ export type State = NavigationMenuListState;
425
+ export type Props = NavigationMenuListProps;
426
+ }
427
+
428
+ export declare interface NavigationMenuListProps extends BaseUIComponentProps<'ul', NavigationMenuListState> {}
429
+
430
+ export declare interface NavigationMenuListState {
431
+ /**
432
+ * If `true`, the popup is open.
433
+ */
434
+ open: boolean;
435
+ }
436
+
437
+ /**
438
+ * A container for the navigation menu contents.
439
+ * Renders a `<nav>` element.
440
+ *
441
+ * Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu)
442
+ */
443
+ export declare const NavigationMenuPopup: React_2.ForwardRefExoticComponent<Omit<NavigationMenuPopupProps, "ref"> & React_2.RefAttributes<HTMLElement>>;
444
+
445
+ export declare namespace NavigationMenuPopup {
446
+ export type State = NavigationMenuPopupState;
447
+ export type Props = NavigationMenuPopupProps;
448
+ }
449
+
450
+ export declare interface NavigationMenuPopupProps extends BaseUIComponentProps<'nav', NavigationMenuPopupState> {}
451
+
452
+ export declare interface NavigationMenuPopupState {
453
+ /**
454
+ * If `true`, the popup is open.
455
+ */
456
+ open: boolean;
457
+ /**
458
+ * The transition status of the popup.
459
+ */
460
+ transitionStatus: TransitionStatus;
461
+ /**
462
+ * The side of the anchor the popup is positioned on.
463
+ */
464
+ side: Side;
465
+ /**
466
+ * The alignment of the popup relative to the anchor.
467
+ */
468
+ align: Align;
469
+ /**
470
+ * Whether the anchor element is hidden.
471
+ */
472
+ anchorHidden: boolean;
473
+ }
474
+
475
+ /**
476
+ * A portal element that moves the popup to a different part of the DOM.
477
+ * By default, the portal element is appended to `<body>`.
478
+ * Renders a `<div>` element.
479
+ *
480
+ * Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu)
481
+ */
482
+ export declare const NavigationMenuPortal: React_2.ForwardRefExoticComponent<Omit<NavigationMenuPortalProps, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
483
+
484
+ export declare namespace NavigationMenuPortal {
485
+ export type State = NavigationMenuPortalState;
486
+ export type Props = NavigationMenuPortalProps;
487
+ }
488
+
489
+ export declare interface NavigationMenuPortalProps extends FloatingPortal.Props<NavigationMenuPortalState> {
490
+ /**
491
+ * Whether to keep the portal mounted in the DOM while the popup is hidden.
492
+ * @default false
493
+ */
494
+ keepMounted?: boolean | undefined;
495
+ /**
496
+ * A parent element to render the portal element into.
497
+ */
498
+ container?: FloatingPortal.Props<NavigationMenuPortalState>['container'] | undefined;
499
+ }
500
+
501
+ export declare interface NavigationMenuPortalState {}
502
+
503
+ /**
504
+ * Positions the navigation menu against the currently active trigger.
505
+ * Renders a `<div>` element.
506
+ *
507
+ * Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu)
508
+ */
509
+ export declare const NavigationMenuPositioner: React_2.ForwardRefExoticComponent<Omit<NavigationMenuPositionerProps, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
510
+
511
+ export declare namespace NavigationMenuPositioner {
512
+ export type State = NavigationMenuPositionerState;
513
+ export type Props = NavigationMenuPositionerProps;
514
+ }
515
+
516
+ export declare interface NavigationMenuPositionerProps extends UseAnchorPositioningSharedParameters, BaseUIComponentProps<'div', NavigationMenuPositionerState> {}
517
+
518
+ export declare interface NavigationMenuPositionerState {
519
+ /**
520
+ * Whether the navigation menu is currently open.
521
+ */
522
+ open: boolean;
523
+ /**
524
+ * The side of the anchor the component is placed on.
525
+ */
526
+ side: Side;
527
+ /**
528
+ * The alignment of the component relative to the anchor.
529
+ */
530
+ align: Align;
531
+ /**
532
+ * Whether the anchor element is hidden.
533
+ */
534
+ anchorHidden: boolean;
535
+ /**
536
+ * Whether CSS transitions should be disabled.
537
+ */
538
+ instant: boolean;
539
+ }
540
+
541
+ /**
542
+ * Groups all parts of the navigation menu.
543
+ * Renders a `<nav>` element at the root, or `<div>` element when nested.
544
+ *
545
+ * Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu)
546
+ */
547
+ export declare const NavigationMenuRoot: {
548
+ <Value = any>(props: NavigationMenuRoot.Props<Value>): React_2.JSX.Element;
549
+ };
550
+
551
+ export declare namespace NavigationMenuRoot {
552
+ export type State = NavigationMenuRootState;
553
+ export type Props<TValue = any> = NavigationMenuRootProps<TValue>;
554
+ export type Value<TValue = any> = TValue | null;
555
+ export type Actions = NavigationMenuRootActions;
556
+ export type ChangeEventReason = NavigationMenuRootChangeEventReason;
557
+ export type ChangeEventDetails = NavigationMenuRootChangeEventDetails;
558
+ }
559
+
560
+ export declare interface NavigationMenuRootActions {
561
+ unmount: () => void;
562
+ }
563
+
564
+ export declare type NavigationMenuRootChangeEventDetails = BaseUIChangeEventDetails<NavigationMenuRoot.ChangeEventReason>;
565
+
566
+ export declare type NavigationMenuRootChangeEventReason = typeof REASONS.triggerPress | typeof REASONS.triggerHover | typeof REASONS.outsidePress | typeof REASONS.listNavigation | typeof REASONS.focusOut | typeof REASONS.escapeKey | typeof REASONS.linkPress | typeof REASONS.none;
567
+
568
+ export declare interface NavigationMenuRootProps<Value = any> extends BaseUIComponentProps<'nav', NavigationMenuRootState> {
569
+ /**
570
+ * A ref to imperative actions.
571
+ */
572
+ actionsRef?: React_2.RefObject<NavigationMenuRoot.Actions | null> | undefined;
573
+ /**
574
+ * Event handler called after any animations complete when the navigation menu is closed.
575
+ */
576
+ onOpenChangeComplete?: ((open: boolean) => void) | undefined;
577
+ /**
578
+ * The controlled value of the navigation menu item that should be currently open.
579
+ * When non-nullish, the menu will be open. When nullish, the menu will be closed.
580
+ *
581
+ * To render an uncontrolled navigation menu, use the `defaultValue` prop instead.
582
+ * @default null
583
+ */
584
+ value?: Value | null | undefined;
585
+ /**
586
+ * The uncontrolled value of the item that should be initially selected.
587
+ *
588
+ * To render a controlled navigation menu, use the `value` prop instead.
589
+ * @default null
590
+ */
591
+ defaultValue?: Value | null | undefined;
592
+ /**
593
+ * Callback fired when the value changes.
594
+ */
595
+ onValueChange?: ((value: Value | null, eventDetails: NavigationMenuRoot.ChangeEventDetails) => void) | undefined;
596
+ /**
597
+ * How long to wait before opening the navigation popup. Specified in milliseconds.
598
+ * @default 50
599
+ */
600
+ delay?: number | undefined;
601
+ /**
602
+ * How long to wait before closing the navigation popup. Specified in milliseconds.
603
+ * @default 50
604
+ */
605
+ closeDelay?: number | undefined;
606
+ /**
607
+ * The orientation of the navigation menu.
608
+ * @default 'horizontal'
609
+ */
610
+ orientation?: 'horizontal' | 'vertical' | undefined;
611
+ }
612
+
613
+ export declare interface NavigationMenuRootState {
614
+ /**
615
+ * If `true`, the popup is open.
616
+ */
617
+ open: boolean;
618
+ /**
619
+ * Whether the navigation menu is nested.
620
+ */
621
+ nested: boolean;
622
+ }
623
+
624
+ /**
625
+ * Opens the navigation menu popup when hovered or clicked, revealing the
626
+ * associated content.
627
+ * Renders a `<button>` element.
628
+ *
629
+ * Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu)
630
+ */
631
+ export declare const NavigationMenuTrigger: React_2.ForwardRefExoticComponent<Omit<NavigationMenuTriggerProps, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
632
+
633
+ export declare namespace NavigationMenuTrigger {
634
+ export type State = NavigationMenuTriggerState;
635
+ export type Props = NavigationMenuTriggerProps;
636
+ }
637
+
638
+ export declare interface NavigationMenuTriggerProps extends NativeButtonProps, BaseUIComponentProps<'button', NavigationMenuTriggerState> {}
639
+
640
+ export declare interface NavigationMenuTriggerState {
641
+ /**
642
+ * If `true`, the popup is open and the item is active.
643
+ */
644
+ open: boolean;
645
+ }
646
+
647
+ /**
648
+ * The clipping viewport of the navigation menu's current content.
649
+ * Renders a `<div>` element.
650
+ *
651
+ * Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu)
652
+ */
653
+ export declare const NavigationMenuViewport: React_2.ForwardRefExoticComponent<Omit<NavigationMenuViewportProps, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
654
+
655
+ export declare namespace NavigationMenuViewport {
656
+ export type State = NavigationMenuViewportState;
657
+ export type Props = NavigationMenuViewportProps;
658
+ }
659
+
660
+ export declare interface NavigationMenuViewportProps extends BaseUIComponentProps<'div', NavigationMenuViewportState> {}
661
+
662
+ export declare interface NavigationMenuViewportState {}
663
+
664
+ declare const none: "none";
665
+
666
+ declare type OffsetFunction = (data: {
667
+ side: Side;
668
+ align: Align;
669
+ anchor: {
670
+ width: number;
671
+ height: number;
672
+ };
673
+ positioner: {
674
+ width: number;
675
+ height: number;
676
+ };
677
+ }) => number;
678
+
679
+ declare const outsidePress: "outside-press";
680
+
681
+ declare const pointer: "pointer";
682
+
683
+ declare namespace REASONS {
684
+ export {
685
+ none,
686
+ triggerPress,
687
+ triggerHover,
688
+ triggerFocus,
689
+ outsidePress,
690
+ itemPress,
691
+ closePress,
692
+ linkPress,
693
+ clearPress,
694
+ chipRemovePress,
695
+ trackPress,
696
+ incrementPress,
697
+ decrementPress,
698
+ inputChange,
699
+ inputClear,
700
+ inputBlur,
701
+ inputPaste,
702
+ inputPress,
703
+ focusOut,
704
+ escapeKey,
705
+ closeWatcher,
706
+ listNavigation,
707
+ keyboard,
708
+ pointer,
709
+ drag,
710
+ wheel,
711
+ scrub,
712
+ cancelOpen,
713
+ siblingOpen,
714
+ disabled,
715
+ missing,
716
+ initial,
717
+ imperativeAction,
718
+ swipe,
719
+ windowResize
720
+ }
721
+ }
722
+
723
+ /**
724
+ * Maps a change `reason` string to the corresponding native event type.
725
+ */
726
+ declare type ReasonToEvent<Reason extends string> = Reason extends keyof ReasonToEventMap ? ReasonToEventMap[Reason] : Event;
727
+
728
+ declare interface ReasonToEventMap {
729
+ [REASONS.none]: Event;
730
+ [REASONS.triggerPress]: MouseEvent | PointerEvent | TouchEvent | KeyboardEvent;
731
+ [REASONS.triggerHover]: MouseEvent;
732
+ [REASONS.triggerFocus]: FocusEvent;
733
+ [REASONS.outsidePress]: MouseEvent | PointerEvent | TouchEvent;
734
+ [REASONS.itemPress]: MouseEvent | KeyboardEvent | PointerEvent;
735
+ [REASONS.closePress]: MouseEvent | KeyboardEvent | PointerEvent;
736
+ [REASONS.linkPress]: MouseEvent | PointerEvent;
737
+ [REASONS.clearPress]: PointerEvent | MouseEvent | KeyboardEvent;
738
+ [REASONS.chipRemovePress]: PointerEvent | MouseEvent | KeyboardEvent;
739
+ [REASONS.trackPress]: PointerEvent | MouseEvent | TouchEvent;
740
+ [REASONS.incrementPress]: PointerEvent | MouseEvent | TouchEvent;
741
+ [REASONS.decrementPress]: PointerEvent | MouseEvent | TouchEvent;
742
+ [REASONS.inputChange]: InputEvent | Event;
743
+ [REASONS.inputClear]: InputEvent | FocusEvent | Event;
744
+ [REASONS.inputBlur]: FocusEvent;
745
+ [REASONS.inputPaste]: ClipboardEvent;
746
+ [REASONS.inputPress]: MouseEvent | PointerEvent | TouchEvent | KeyboardEvent;
747
+ [REASONS.focusOut]: FocusEvent | KeyboardEvent;
748
+ [REASONS.escapeKey]: KeyboardEvent;
749
+ [REASONS.closeWatcher]: Event;
750
+ [REASONS.listNavigation]: KeyboardEvent;
751
+ [REASONS.keyboard]: KeyboardEvent;
752
+ [REASONS.pointer]: PointerEvent;
753
+ [REASONS.drag]: PointerEvent | TouchEvent;
754
+ [REASONS.swipe]: PointerEvent | TouchEvent;
755
+ [REASONS.wheel]: WheelEvent;
756
+ [REASONS.scrub]: PointerEvent;
757
+ [REASONS.cancelOpen]: MouseEvent;
758
+ [REASONS.siblingOpen]: Event;
759
+ [REASONS.disabled]: Event;
760
+ [REASONS.missing]: Event;
761
+ [REASONS.initial]: Event;
762
+ [REASONS.imperativeAction]: Event;
763
+ [REASONS.windowResize]: UIEvent;
764
+ }
765
+
55
766
  declare function Root<Value = any>({ className, ...props }: WithStringClassName<NavigationMenu_2.Root.Props<Value>>): JSX_2.Element;
56
767
 
768
+ declare const scrub: "scrub";
769
+
770
+ declare const siblingOpen: "sibling-open";
771
+
772
+ declare type Side = 'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start';
773
+
774
+ declare interface SideFlipMode {
775
+ /**
776
+ * How to avoid collisions on the side axis.
777
+ * - `'flip'`: If there is not enough space, place the popup on the opposite side.
778
+ * - `'none'`: Keep the preferred side even if it overflows.
779
+ */
780
+ side?: 'flip' | 'none' | undefined;
781
+ /**
782
+ * How to avoid collisions on the align axis.
783
+ * - `'flip'`: If there is not enough space, swap `'start'` and `'end'` alignment.
784
+ * - `'shift'`: Keep the alignment and shift the popup to fit within the boundary.
785
+ * - `'none'`: Keep the preferred alignment even if it overflows.
786
+ */
787
+ align?: 'flip' | 'shift' | 'none' | undefined;
788
+ /**
789
+ * If both sides on the preferred axis do not fit, determines whether to fallback
790
+ * to a side on the perpendicular axis and which logical side to prefer.
791
+ * - `'start'`: Prefer the logical start side on the perpendicular axis.
792
+ * - `'end'`: Prefer the logical end side on the perpendicular axis.
793
+ * - `'none'`: Do not fallback to the perpendicular axis.
794
+ */
795
+ fallbackAxisSide?: 'start' | 'end' | 'none' | undefined;
796
+ }
797
+
798
+ declare interface SideShiftMode {
799
+ /**
800
+ * How to avoid collisions on the side axis.
801
+ * - `'shift'`: Keep the preferred side and shift the popup to fit within the boundary.
802
+ * - `'none'`: Keep the preferred side even if it overflows.
803
+ */
804
+ side?: 'shift' | 'none' | undefined;
805
+ /**
806
+ * How to avoid collisions on the align axis.
807
+ * - `'shift'`: Keep the alignment and shift the popup to fit within the boundary.
808
+ * - `'none'`: Keep the preferred alignment even if it overflows.
809
+ */
810
+ align?: 'shift' | 'none' | undefined;
811
+ /**
812
+ * If both sides on the preferred axis do not fit, determines whether to fallback
813
+ * to a side on the perpendicular axis and which logical side to prefer.
814
+ * - `'start'`: Prefer the logical start side on the perpendicular axis.
815
+ * - `'end'`: Prefer the logical end side on the perpendicular axis.
816
+ * - `'none'`: Do not fallback to the perpendicular axis.
817
+ */
818
+ fallbackAxisSide?: 'start' | 'end' | 'none' | undefined;
819
+ }
820
+
821
+ declare const swipe: "swipe";
822
+
823
+ declare const trackPress: "track-press";
824
+
825
+ declare type TransitionStatus = 'starting' | 'ending' | 'idle' | undefined;
826
+
827
+ declare const triggerFocus: "trigger-focus";
828
+
829
+ declare const triggerHover: "trigger-hover";
830
+
831
+ declare const triggerPress: "trigger-press";
832
+
833
+ declare interface UseAnchorPositioningSharedParameters {
834
+ /**
835
+ * An element to position the popup against.
836
+ * By default, the popup will be positioned against the trigger.
837
+ */
838
+ anchor?: Element | null | VirtualElement | React_2.RefObject<Element | null> | (() => Element | VirtualElement | null) | undefined;
839
+ /**
840
+ * Determines which CSS `position` property to use.
841
+ * @default 'absolute'
842
+ */
843
+ positionMethod?: 'absolute' | 'fixed' | undefined;
844
+ /**
845
+ * Which side of the anchor element to align the popup against.
846
+ * May automatically change to avoid collisions.
847
+ * @default 'bottom'
848
+ */
849
+ side?: Side | undefined;
850
+ /**
851
+ * Distance between the anchor and the popup in pixels.
852
+ * Also accepts a function that returns the distance to read the dimensions of the anchor
853
+ * and positioner elements, along with its side and alignment.
854
+ *
855
+ * The function takes a `data` object parameter with the following properties:
856
+ * - `data.anchor`: the dimensions of the anchor element with properties `width` and `height`.
857
+ * - `data.positioner`: the dimensions of the positioner element with properties `width` and `height`.
858
+ * - `data.side`: which side of the anchor element the positioner is aligned against.
859
+ * - `data.align`: how the positioner is aligned relative to the specified side.
860
+ *
861
+ * @example
862
+ * ```jsx
863
+ * <Positioner
864
+ * sideOffset={({ side, align, anchor, positioner }) => {
865
+ * return side === 'top' || side === 'bottom'
866
+ * ? anchor.height
867
+ * : anchor.width;
868
+ * }}
869
+ * />
870
+ * ```
871
+ *
872
+ * @default 0
873
+ */
874
+ sideOffset?: number | OffsetFunction | undefined;
875
+ /**
876
+ * How to align the popup relative to the specified side.
877
+ * @default 'center'
878
+ */
879
+ align?: Align | undefined;
880
+ /**
881
+ * Additional offset along the alignment axis in pixels.
882
+ * Also accepts a function that returns the offset to read the dimensions of the anchor
883
+ * and positioner elements, along with its side and alignment.
884
+ *
885
+ * The function takes a `data` object parameter with the following properties:
886
+ * - `data.anchor`: the dimensions of the anchor element with properties `width` and `height`.
887
+ * - `data.positioner`: the dimensions of the positioner element with properties `width` and `height`.
888
+ * - `data.side`: which side of the anchor element the positioner is aligned against.
889
+ * - `data.align`: how the positioner is aligned relative to the specified side.
890
+ *
891
+ * @example
892
+ * ```jsx
893
+ * <Positioner
894
+ * alignOffset={({ side, align, anchor, positioner }) => {
895
+ * return side === 'top' || side === 'bottom'
896
+ * ? anchor.width
897
+ * : anchor.height;
898
+ * }}
899
+ * />
900
+ * ```
901
+ *
902
+ * @default 0
903
+ */
904
+ alignOffset?: number | OffsetFunction | undefined;
905
+ /**
906
+ * An element or a rectangle that delimits the area that the popup is confined to.
907
+ * @default 'clipping-ancestors'
908
+ */
909
+ collisionBoundary?: Boundary | undefined;
910
+ /**
911
+ * Additional space to maintain from the edge of the collision boundary.
912
+ * @default 5
913
+ */
914
+ collisionPadding?: Padding | undefined;
915
+ /**
916
+ * Whether to maintain the popup in the viewport after
917
+ * the anchor element was scrolled out of view.
918
+ * @default false
919
+ */
920
+ sticky?: boolean | undefined;
921
+ /**
922
+ * Minimum distance to maintain between the arrow and the edges of the popup.
923
+ *
924
+ * Use it to prevent the arrow element from hanging out of the rounded corners of a popup.
925
+ * @default 5
926
+ */
927
+ arrowPadding?: number | undefined;
928
+ /**
929
+ * Whether to disable the popup from tracking any layout shift of its positioning anchor.
930
+ * @default false
931
+ */
932
+ disableAnchorTracking?: boolean | undefined;
933
+ /**
934
+ * Determines how to handle collisions when positioning the popup.
935
+ *
936
+ * `side` controls overflow on the preferred placement axis (`top`/`bottom` or `left`/`right`):
937
+ * - `'flip'`: keep the requested side when it fits; otherwise try the opposite side
938
+ * (`top` and `bottom`, or `left` and `right`).
939
+ * - `'shift'`: never change side; keep the requested side and move the popup within
940
+ * the clipping boundary so it stays visible.
941
+ * - `'none'`: do not correct side-axis overflow.
942
+ *
943
+ * `align` controls overflow on the alignment axis (`start`/`center`/`end`):
944
+ * - `'flip'`: keep side, but swap `start` and `end` when the requested alignment overflows.
945
+ * - `'shift'`: keep side and requested alignment, then nudge the popup along the
946
+ * alignment axis to fit.
947
+ * - `'none'`: do not correct alignment-axis overflow.
948
+ *
949
+ * `fallbackAxisSide` controls fallback behavior on the perpendicular axis when the
950
+ * preferred axis cannot fit:
951
+ * - `'start'`: allow perpendicular fallback and try the logical start side first
952
+ * (`top` before `bottom`, or `left` before `right` in LTR).
953
+ * - `'end'`: allow perpendicular fallback and try the logical end side first
954
+ * (`bottom` before `top`, or `right` before `left` in LTR).
955
+ * - `'none'`: do not fallback to the perpendicular axis.
956
+ *
957
+ * When `side` is `'shift'`, explicitly setting `align` only supports `'shift'` or `'none'`.
958
+ * If `align` is omitted, it defaults to `'flip'`.
959
+ *
960
+ * @example
961
+ * ```jsx
962
+ * <Positioner
963
+ * collisionAvoidance={{
964
+ * side: 'shift',
965
+ * align: 'shift',
966
+ * fallbackAxisSide: 'none',
967
+ * }}
968
+ * />
969
+ * ```
970
+ *
971
+ */
972
+ collisionAvoidance?: CollisionAvoidance | undefined;
973
+ }
974
+
975
+ declare interface UseFloatingPortalNodeProps {
976
+ ref?: React_2.Ref<HTMLDivElement> | undefined;
977
+ container?: HTMLElement | ShadowRoot | null | React_2.RefObject<HTMLElement | ShadowRoot | null> | undefined;
978
+ componentProps?: UseRenderElementComponentProps<any> | undefined;
979
+ elementProps?: React_2.HTMLAttributes<HTMLDivElement> | undefined;
980
+ }
981
+
982
+ declare interface UseRenderElementComponentProps<State> {
983
+ /**
984
+ * The class name to apply to the rendered element.
985
+ * Can be a string or a function that accepts the state and returns a string.
986
+ */
987
+ className?: string | ((state: State) => string | undefined) | undefined;
988
+ /**
989
+ * The render prop or React element to override the default element.
990
+ */
991
+ render?: undefined | React_2.ReactElement | ComponentRenderFn<React_2.HTMLAttributes<any>, State>;
992
+ /**
993
+ * The style to apply to the rendered element.
994
+ * Can be a style object or a function that accepts the state and returns a style object.
995
+ */
996
+ style?: React_2.CSSProperties | ((state: State) => React_2.CSSProperties | undefined) | undefined;
997
+ }
998
+
999
+ declare const wheel: "wheel";
1000
+
1001
+ declare const windowResize: "window-resize";
1002
+
1003
+ /**
1004
+ * Adds a `preventBaseUIHandler` method to all event handlers.
1005
+ */
1006
+ declare type WithBaseUIEvent<T> = { [K in keyof T]: WithPreventBaseUIHandler<T[K]> };
1007
+
1008
+ 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;
1009
+
57
1010
  declare type WithStringClassName<P> = Omit<P, 'className'> & {
58
1011
  className?: string;
59
1012
  };
60
1013
 
61
-
62
- export * from "@base-ui/react/navigation-menu";
63
-
64
1014
  export { }