@bazza-ui/react 0.0.0 → 0.1.0-canary.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/dist/ListboxStore-BtcTXpzi.d.cts +351 -0
  2. package/dist/ListboxStore-DPqpLlAL.d.ts +351 -0
  3. package/dist/adapters/index.cjs +2 -0
  4. package/dist/adapters/index.cjs.map +1 -0
  5. package/dist/adapters/index.d.cts +363 -0
  6. package/dist/adapters/index.d.ts +363 -0
  7. package/dist/adapters/index.js +2 -0
  8. package/dist/adapters/index.js.map +1 -0
  9. package/dist/chunk-4C666HHU.js +2 -0
  10. package/dist/chunk-4C666HHU.js.map +1 -0
  11. package/dist/chunk-AVZ64JQ3.js +2 -0
  12. package/dist/chunk-AVZ64JQ3.js.map +1 -0
  13. package/dist/chunk-BGJJC6GX.cjs +2 -0
  14. package/dist/chunk-BGJJC6GX.cjs.map +1 -0
  15. package/dist/chunk-FWWOE2SW.cjs +2 -0
  16. package/dist/chunk-FWWOE2SW.cjs.map +1 -0
  17. package/dist/chunk-JSPKF52O.cjs +2 -0
  18. package/dist/chunk-JSPKF52O.cjs.map +1 -0
  19. package/dist/chunk-KWGD24VS.js +2 -0
  20. package/dist/chunk-KWGD24VS.js.map +1 -0
  21. package/dist/chunk-M4G6J7DP.cjs +2 -0
  22. package/dist/chunk-M4G6J7DP.cjs.map +1 -0
  23. package/dist/chunk-WKAPAKUL.js +2 -0
  24. package/dist/chunk-WKAPAKUL.js.map +1 -0
  25. package/dist/combobox/index.cjs +2 -0
  26. package/dist/combobox/index.cjs.map +1 -0
  27. package/dist/combobox/index.d.cts +1039 -0
  28. package/dist/combobox/index.d.ts +1039 -0
  29. package/dist/combobox/index.js +2 -0
  30. package/dist/combobox/index.js.map +1 -0
  31. package/dist/command-score-Dgo3ZS3Z.d.ts +36 -0
  32. package/dist/command-score-YjNr3ZWi.d.cts +36 -0
  33. package/dist/context-menu/index.cjs +2 -0
  34. package/dist/context-menu/index.cjs.map +1 -0
  35. package/dist/context-menu/index.d.cts +658 -0
  36. package/dist/context-menu/index.d.ts +658 -0
  37. package/dist/context-menu/index.js +2 -0
  38. package/dist/context-menu/index.js.map +1 -0
  39. package/dist/data-surface-B-eIGTBi.d.cts +678 -0
  40. package/dist/data-surface-D1OilMDu.d.ts +678 -0
  41. package/dist/dropdown-menu/index.cjs +2 -0
  42. package/dist/dropdown-menu/index.cjs.map +1 -0
  43. package/dist/dropdown-menu/index.d.cts +700 -0
  44. package/dist/dropdown-menu/index.d.ts +700 -0
  45. package/dist/dropdown-menu/index.js +2 -0
  46. package/dist/dropdown-menu/index.js.map +1 -0
  47. package/dist/events-BPr8sRGH.d.cts +166 -0
  48. package/dist/events-BPr8sRGH.d.ts +166 -0
  49. package/dist/input-BoIK003I.d.cts +41 -0
  50. package/dist/input-DF7D8YzW.d.ts +41 -0
  51. package/dist/internal/listbox/index.cjs +2 -0
  52. package/dist/internal/listbox/index.cjs.map +1 -0
  53. package/dist/internal/listbox/index.d.cts +269 -0
  54. package/dist/internal/listbox/index.d.ts +269 -0
  55. package/dist/internal/listbox/index.js +2 -0
  56. package/dist/internal/listbox/index.js.map +1 -0
  57. package/dist/internal/popup-menu/index.cjs +2 -0
  58. package/dist/internal/popup-menu/index.cjs.map +1 -0
  59. package/dist/internal/popup-menu/index.d.cts +846 -0
  60. package/dist/internal/popup-menu/index.d.ts +846 -0
  61. package/dist/internal/popup-menu/index.js +2 -0
  62. package/dist/internal/popup-menu/index.js.map +1 -0
  63. package/dist/item-equality-B6TbXlBT.d.cts +7 -0
  64. package/dist/item-equality-B6TbXlBT.d.ts +7 -0
  65. package/dist/loading-DphSt8MY.d.cts +27 -0
  66. package/dist/loading-TsgH6v92.d.ts +27 -0
  67. package/dist/select/index.cjs +2 -0
  68. package/dist/select/index.cjs.map +1 -0
  69. package/dist/select/index.d.cts +927 -0
  70. package/dist/select/index.d.ts +927 -0
  71. package/dist/select/index.js +2 -0
  72. package/dist/select/index.js.map +1 -0
  73. package/dist/separator-B4Ot84B0.d.ts +748 -0
  74. package/dist/separator-BmbUeeaT.d.cts +748 -0
  75. package/dist/types-9vS1uLIK.d.cts +1557 -0
  76. package/dist/types-lQCIvWW8.d.ts +1557 -0
  77. package/dist/use-listbox-item-BIi4eRPI.d.cts +182 -0
  78. package/dist/use-listbox-item-BIi4eRPI.d.ts +182 -0
  79. package/package.json +50 -12
  80. package/dist/index.d.ts +0 -2
  81. package/dist/index.js +0 -2
@@ -0,0 +1,700 @@
1
+ import { V as VirtualItem } from '../ListboxStore-DPqpLlAL.js';
2
+ export { F as DropdownMenuFilterFn, I as DropdownMenuItemRegistration, b as DropdownMenuStore, L as DropdownMenuStoreContext, a as DropdownMenuStoreState } from '../ListboxStore-DPqpLlAL.js';
3
+ import { G as GetQualifiedRowIdFn, C as ComponentProps, P as PopupMenuCheckboxItem, a as PopupMenuItem, b as PopupMenuRadioGroup, c as PopupMenuRadioItem, d as PopupMenuSubmenuTrigger, e as PopupMenuSubpageTrigger } from '../types-lQCIvWW8.js';
4
+ export { A as AsyncLoaderConfig, r as AsyncLoaderFetchStatus, s as AsyncLoaderLoadingPhase, t as AsyncLoaderResult, u as AsyncLoaderSource, v as AsyncLoaderStatus, w as AsyncNodesConfig, x as AsyncRenderState, y as AsyncResultBehavior, z as AsyncState, B as BreadcrumbNode, D as CheckboxItemDef, E as CheckboxItemRenderParams, F as CheckboxItemRenderProps, H as DataListChildrenState, I as DataListProps, J as DataSubpagesChildrenState, K as DataSubpagesProps, L as DataSurfaceProps, M as DeepSearchConfig, N as DisplayGroupNode, O as DisplayNode, Q as DisplayRadioGroupNode, R as DisplayRowNode, S as DisplaySeparatorNode, T as DisplaySubpageNode, f as DropdownMenuCheckboxItemProps, g as DropdownMenuCheckboxItemState, h as DropdownMenuItemProps, i as DropdownMenuItemState, j as DropdownMenuRadioGroupProps, k as DropdownMenuRadioGroupState, l as DropdownMenuRadioItemProps, m as DropdownMenuRadioItemState, n as DropdownMenuSubmenuTriggerProps, o as DropdownMenuSubmenuTriggerState, p as DropdownMenuSubpageTriggerProps, q as DropdownMenuSubpageTriggerState, U as GroupBehavior, V as GroupDef, W as GroupRenderContext, X as GroupRenderParams, Y as IncludeInDeepSearch, Z as InitialQueryBehavior, _ as ItemDef, $ as ItemRenderParams, a0 as ItemRenderProps, a1 as LoaderComponentProps, a2 as NodeDef, a3 as QueryAsyncNodesConfig, a4 as QueryDependentLoaderConfig, a5 as RadioGroupBehavior, a6 as RadioGroupDef, a7 as RadioGroupRenderParams, a8 as RadioGroupRenderProps, a9 as RadioItemDef, aa as RadioItemRenderParams, ab as RadioItemRenderProps, ac as RowRenderContext, ad as ScoredNode, ae as SeparatorDef, af as SeparatorRenderParams, ag as StaticAsyncNodesConfig, ah as StaticLoaderConfig, ai as SubmenuDef, aj as SubmenuRenderParams, ak as SubmenuRenderProps, al as SubpageContentRenderParams, am as SubpageDef, an as SubpageTriggerRenderParams, ao as SubpageTriggerRenderProps, ap as defineRadioGroup, aq as isDisplayGroupNode, ar as isDisplayRadioGroupNode, as as isDisplayRowNode, at as isDisplaySeparatorNode } from '../types-lQCIvWW8.js';
5
+ import { P as PopupMenuDebugOptions, a as PopupMenuRootActions, b as PopupMenuArrow, c as PopupMenuBackdrop, d as PopupMenuEmpty, e as PopupMenuGroup, f as PopupMenuGroupLabel, g as PopupMenuIcon, h as PopupMenuList, i as PopupMenuPopup, j as PopupMenuPortal, k as PopupMenuScrollDownArrow, l as PopupMenuScrollUpArrow, m as PopupMenuSeparator, n as PopupMenuSurface } from '../separator-B4Ot84B0.js';
6
+ export { o as DropdownMenuArrowProps, p as DropdownMenuBackdropProps, q as DropdownMenuEmptyProps, r as DropdownMenuEmptyState, s as DropdownMenuGroupLabelProps, t as DropdownMenuGroupLabelState, u as DropdownMenuGroupProps, v as DropdownMenuGroupState, w as DropdownMenuIconProps, x as DropdownMenuIconState, y as DropdownMenuListChildrenState, L as DropdownMenuListCssVars, z as DropdownMenuListProps, A as DropdownMenuListState, B as DropdownMenuPopupProps, C as DropdownMenuPortalProps, M as DropdownMenuPositionerCssVars, D as DropdownMenuScrollArrowProps, E as DropdownMenuScrollArrowState, F as DropdownMenuScrollDownArrowProps, G as DropdownMenuScrollUpArrowProps, H as DropdownMenuSeparatorProps, I as DropdownMenuSeparatorState, J as DropdownMenuSurfaceProps, K as DropdownMenuSurfaceState, N as RootContextValue, O as useMaybeRootContext, Q as useRootContext } from '../separator-B4Ot84B0.js';
7
+ import { P as PopupMenuCheckboxItemIndicator, a as PopupMenuDataList, b as PopupMenuDataSubpages, c as PopupMenuDataSurface, d as PopupMenuPositioner, e as PopupMenuRadioGroupValue, f as PopupMenuRadioItemIndicator, g as PopupMenuShortcut, h as PopupMenuSubmenuRoot, i as PopupMenuSubmenuTriggerIndicator, j as PopupMenuSubpage, k as PopupMenuSubpageBack, l as PopupMenuSubpageBackItem, u as useAsyncMenuCoordinator, m as useMaybeAsyncMenuCoordinator } from '../data-surface-D1OilMDu.js';
8
+ export { O as AsyncMenuCoordinatorValue, Y as DataSurfaceContext, Q as DataSurfaceContextValue, n as DropdownMenuCheckboxItemIndicatorProps, o as DropdownMenuCheckboxItemIndicatorState, R as DropdownMenuDataListProps, T as DropdownMenuDataSubpagesProps, V as DropdownMenuDataSurfaceProps, p as DropdownMenuPositionerAlign, q as DropdownMenuPositionerProps, W as DropdownMenuRadioGroupValueProps, r as DropdownMenuRadioItemIndicatorProps, s as DropdownMenuRadioItemIndicatorState, t as DropdownMenuShortcutProps, v as DropdownMenuShortcutState, w as DropdownMenuSubmenuRootProps, x as DropdownMenuSubmenuTriggerIndicatorProps, y as DropdownMenuSubmenuTriggerIndicatorState, z as DropdownMenuSubpageBackItemProps, A as DropdownMenuSubpageBackItemState, B as DropdownMenuSubpageBackProps, C as DropdownMenuSubpageBackState, D as DropdownMenuSubpageProps, X as RenderNodeFn, S as SubmenuContextValue, E as SubpageContextValue, F as SubpageStackContextValue, U as UseItemParams, M as UseItemReturn, Z as useDataSurfaceContext, N as useItem, _ as useMaybeDataSurfaceContext, G as useMaybeSubmenuContext, H as useMaybeSubpageContext, I as useMaybeSubpageStack, J as useSubmenuContext, K as useSubpageContext, L as useSubpageStack } from '../data-surface-D1OilMDu.js';
9
+ import { P as PopupMenuInput } from '../input-DF7D8YzW.js';
10
+ export { a as DropdownMenuDataInputProps, a as DropdownMenuInputProps, b as DropdownMenuInputState } from '../input-DF7D8YzW.js';
11
+ import { P as PopupMenuLoading } from '../loading-TsgH6v92.js';
12
+ export { a as DropdownMenuLoadingProps, b as DropdownMenuLoadingState } from '../loading-TsgH6v92.js';
13
+ import * as react_jsx_runtime from 'react/jsx-runtime';
14
+ import { PopoverRootProps } from '@base-ui/react/popover';
15
+ import { C as ChangeEventDetails, t as triggerPress, a as triggerHover, b as triggerFocus, e as escapeKey, o as outsidePress, f as focusOut, i as itemPress, c as closePress, l as listNavigation, s as submenuTrigger, d as siblingOpen, g as imperativeAction, n as none, G as GenericEventDetails, p as pointer, k as keyboard } from '../events-BPr8sRGH.js';
16
+ import * as React$1 from 'react';
17
+ export { I as ItemContextValue, u as useItemContext, a as useMaybeItemContext } from '../use-listbox-item-BIi4eRPI.js';
18
+ export { S as SurfaceContextValue, c as commandScore, d as defaultFilter, u as useMaybeSurfaceContext, a as useSurfaceContext } from '../command-score-Dgo3ZS3Z.js';
19
+ import '@base-ui/utils/store';
20
+
21
+ /**
22
+ * Reasons why the dropdown menu's open state changed.
23
+ */
24
+ type DropdownMenuOpenChangeReason = typeof triggerPress | typeof triggerHover | typeof triggerFocus | typeof escapeKey | typeof outsidePress | typeof focusOut | typeof itemPress | typeof closePress | typeof listNavigation | typeof submenuTrigger | typeof siblingOpen | typeof imperativeAction | typeof none;
25
+ /**
26
+ * Event details passed to the `onOpenChange` callback.
27
+ */
28
+ type DropdownMenuOpenChangeEventDetails = ChangeEventDetails<DropdownMenuOpenChangeReason>;
29
+ /**
30
+ * Reasons why highlight changed.
31
+ */
32
+ type DropdownMenuHighlightChangeReason = typeof pointer | typeof keyboard | typeof none;
33
+ /**
34
+ * Event details passed to the `onHighlightChange` callback.
35
+ */
36
+ type DropdownMenuHighlightChangeEventDetails = GenericEventDetails<DropdownMenuHighlightChangeReason, {
37
+ index: number;
38
+ }>;
39
+
40
+ interface DropdownMenuRootProps extends Omit<PopoverRootProps, 'open' | 'onOpenChange' | 'defaultOpen' | 'actionsRef'> {
41
+ /**
42
+ * Whether the dropdown menu is open.
43
+ * Use for controlled mode.
44
+ */
45
+ open?: boolean;
46
+ /**
47
+ * Callback when the open state changes.
48
+ * The second parameter contains event details including the reason for the change.
49
+ */
50
+ onOpenChange?: (open: boolean, eventDetails: DropdownMenuOpenChangeEventDetails) => void;
51
+ /**
52
+ * Whether the dropdown menu is initially open.
53
+ * Use for uncontrolled mode.
54
+ * @default false
55
+ */
56
+ defaultOpen?: boolean;
57
+ /**
58
+ * Determines if the dropdown menu enters a modal state when open.
59
+ *
60
+ * - `true`: user interaction is limited to the dropdown menu: document page scroll
61
+ * is locked, and pointer interactions on outside elements are disabled.
62
+ * - `false`: user interaction with the rest of the document is allowed.
63
+ * - `'trap-focus'`: focus is trapped inside the dropdown menu, but document page
64
+ * scroll is not locked and pointer interactions outside of it remain enabled.
65
+ *
66
+ * @default true
67
+ */
68
+ modal?: boolean | 'trap-focus';
69
+ /**
70
+ * Whether the component should ignore user interaction.
71
+ * @default false
72
+ */
73
+ disabled?: boolean;
74
+ /**
75
+ * Whether virtualization mode is enabled.
76
+ * When true, items should provide an explicit `index` prop and
77
+ * the `items` prop should be provided for navigation to work correctly.
78
+ * @default false
79
+ */
80
+ virtualized?: boolean;
81
+ /**
82
+ * Pre-registered items for virtualization.
83
+ * When provided with `virtualized={true}`, this allows navigation to work
84
+ * for items that aren't currently mounted in the DOM.
85
+ */
86
+ items?: VirtualItem[];
87
+ /**
88
+ * Callback when the highlighted item changes.
89
+ * Useful for synchronizing with a virtualizer (e.g., scrollToIndex) or other UI state.
90
+ * The third parameter contains event details including the reason for the change.
91
+ */
92
+ onHighlightChange?: (id: string | null, index: number, eventDetails: DropdownMenuHighlightChangeEventDetails) => void;
93
+ /**
94
+ * When to close the menu on outside interactions (clicking outside or clicking the trigger when open).
95
+ * - `'pointerdown'`: Close immediately when pointer is pressed outside (default)
96
+ * - `'click'`: Close when a full click (pointerdown + pointerup) occurs outside
97
+ * @default 'pointerdown'
98
+ */
99
+ closeOnOutsidePress?: 'click' | 'pointerdown';
100
+ /**
101
+ * Event handler called after any open/close animations have completed.
102
+ * When `clearSearchOnClose="after-exit"` is set on Surface, the search
103
+ * will be cleared before this callback is invoked.
104
+ */
105
+ onOpenChangeComplete?: (open: boolean) => void;
106
+ /**
107
+ * A ref to imperative actions.
108
+ * - `close`: closes the menu imperatively.
109
+ * - `unmount`: unmounts the popup imperatively (when keep-mounted mode is enabled).
110
+ * - `setDisabled`: enables/disables the menu imperatively.
111
+ */
112
+ actionsRef?: React.RefObject<DropdownMenuRoot.Actions | null>;
113
+ /**
114
+ * Function to generate qualified unique IDs for rows.
115
+ * Defined once at the root level and applied to all surfaces (root and submenus).
116
+ *
117
+ * Default behavior:
118
+ * - If node.id is provided, use it as-is (treat as globally unique)
119
+ * - Otherwise, compute from breadcrumbs + value when deep searching
120
+ *
121
+ * @example
122
+ * ```tsx
123
+ * <DropdownMenu.Root
124
+ * getQualifiedRowId={(ctx) => {
125
+ * if (ctx.id) return ctx.id
126
+ * const path = ctx.breadcrumbs.map(b => b.id ?? slugify(b.value))
127
+ * return [...path, slugify(ctx.value)].join('.')
128
+ * }}
129
+ * >
130
+ * ```
131
+ */
132
+ getQualifiedRowId?: GetQualifiedRowIdFn;
133
+ /**
134
+ * Debug visualization options for submenu interaction heuristics.
135
+ */
136
+ debug?: PopupMenuDebugOptions;
137
+ children: React.ReactNode;
138
+ }
139
+ /**
140
+ * Groups all parts of the dropdown menu.
141
+ * Manages open state and provides context to children.
142
+ * Doesn't render its own HTML element.
143
+ */
144
+ declare function DropdownMenuRoot(props: DropdownMenuRoot.Props): react_jsx_runtime.JSX.Element;
145
+ declare namespace DropdownMenuRoot {
146
+ interface Props extends DropdownMenuRootProps {
147
+ }
148
+ type OpenChangeEventDetails = DropdownMenuOpenChangeEventDetails;
149
+ type HighlightChangeEventDetails = DropdownMenuHighlightChangeEventDetails;
150
+ type Actions = PopupMenuRootActions;
151
+ }
152
+
153
+ declare enum DropdownMenuTriggerDataAttributes {
154
+ /**
155
+ * Identifies the component part.
156
+ * @type {'bazzaui-dropdown-menu-trigger'}
157
+ */
158
+ slot = "bazzaui-dropdown-menu-trigger",
159
+ /**
160
+ * Present when the corresponding dropdown menu is open.
161
+ */
162
+ popupOpen = "data-popup-open",
163
+ /**
164
+ * Present when the trigger is pressed.
165
+ */
166
+ pressed = "data-pressed"
167
+ }
168
+
169
+ interface DropdownMenuTriggerState extends Record<string, unknown> {
170
+ /**
171
+ * Whether the dropdown menu is open.
172
+ */
173
+ open: boolean;
174
+ /**
175
+ * Whether the trigger is disabled.
176
+ */
177
+ disabled: boolean;
178
+ }
179
+ interface DropdownMenuTriggerProps extends ComponentProps<'button', DropdownMenuTrigger.State> {
180
+ /**
181
+ * Whether the trigger is disabled.
182
+ */
183
+ disabled?: boolean;
184
+ /**
185
+ * Whether the menu opens when hovering the trigger.
186
+ * @default false
187
+ */
188
+ openOnHover?: boolean;
189
+ /**
190
+ * Delay before opening on hover (in milliseconds).
191
+ * Only applies when `openOnHover` is true.
192
+ * @default 100
193
+ */
194
+ delay?: number;
195
+ /**
196
+ * Delay before closing when pointer leaves (in milliseconds).
197
+ * Only applies when `openOnHover` is true.
198
+ * @default 0
199
+ */
200
+ closeDelay?: number;
201
+ }
202
+ /**
203
+ * A button that opens the dropdown menu.
204
+ * Renders a `<button>` element.
205
+ *
206
+ * Supports `openOnHover` to open the menu when hovering the trigger,
207
+ * with configurable `delay` and `closeDelay`.
208
+ *
209
+ * When `closeOnOutsidePress` is set to `'pointerdown'` on the Root,
210
+ * the trigger will close the menu immediately on pointerdown when open.
211
+ */
212
+ declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuTrigger.Props, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
213
+ declare namespace DropdownMenuTrigger {
214
+ interface Props extends DropdownMenuTriggerProps {
215
+ }
216
+ type State = DropdownMenuTriggerState;
217
+ }
218
+
219
+ declare const index_parts_VirtualItem: typeof VirtualItem;
220
+ declare const index_parts_useAsyncMenuCoordinator: typeof useAsyncMenuCoordinator;
221
+ declare const index_parts_useMaybeAsyncMenuCoordinator: typeof useMaybeAsyncMenuCoordinator;
222
+ declare namespace index_parts {
223
+ export { PopupMenuArrow as Arrow, PopupMenuBackdrop as Backdrop, PopupMenuCheckboxItem as CheckboxItem, PopupMenuCheckboxItemIndicator as CheckboxItemIndicator, PopupMenuInput as DataInput, PopupMenuDataList as DataList, PopupMenuDataSubpages as DataSubpages, PopupMenuDataSurface as DataSurface, PopupMenuEmpty as Empty, PopupMenuGroup as Group, PopupMenuGroupLabel as GroupLabel, PopupMenuIcon as Icon, PopupMenuInput as Input, PopupMenuItem as Item, PopupMenuList as List, PopupMenuLoading as Loading, PopupMenuPopup as Popup, PopupMenuPortal as Portal, PopupMenuPositioner as Positioner, PopupMenuRadioGroup as RadioGroup, PopupMenuRadioGroupValue as RadioGroupValue, PopupMenuRadioItem as RadioItem, PopupMenuRadioItemIndicator as RadioItemIndicator, DropdownMenuRoot as Root, PopupMenuScrollDownArrow as ScrollDownArrow, PopupMenuScrollUpArrow as ScrollUpArrow, PopupMenuSeparator as Separator, PopupMenuShortcut as Shortcut, PopupMenuSubmenuRoot as Submenu, PopupMenuSubmenuTrigger as SubmenuTrigger, PopupMenuSubmenuTriggerIndicator as SubmenuTriggerIndicator, PopupMenuSubpage as Subpage, PopupMenuSubpageBack as SubpageBack, PopupMenuSubpageBackItem as SubpageBackItem, PopupMenuSubpageTrigger as SubpageTrigger, PopupMenuSurface as Surface, DropdownMenuTrigger as Trigger, index_parts_VirtualItem as VirtualItem, index_parts_useAsyncMenuCoordinator as useAsyncMenuCoordinator, index_parts_useMaybeAsyncMenuCoordinator as useMaybeAsyncMenuCoordinator };
224
+ }
225
+
226
+ declare enum DropdownMenuArrowDataAttributes {
227
+ /**
228
+ * Identifies the component part.
229
+ * @type {'bazzaui-dropdown-menu-arrow'}
230
+ */
231
+ slot = "bazzaui-dropdown-menu-arrow",
232
+ /**
233
+ * Present when the popup menu is open.
234
+ */
235
+ open = "data-open",
236
+ /**
237
+ * Present when the popup menu is closed.
238
+ */
239
+ closed = "data-closed",
240
+ /**
241
+ * Indicates which side the popup is positioned relative to the trigger.
242
+ * @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}
243
+ */
244
+ side = "data-side",
245
+ /**
246
+ * Indicates how the popup is aligned relative to specified side.
247
+ * @type {'start' | 'center' | 'end'}
248
+ */
249
+ align = "data-align",
250
+ /**
251
+ * Present when the arrow is not centered due to collision avoidance.
252
+ */
253
+ uncentered = "data-uncentered"
254
+ }
255
+
256
+ declare enum DropdownMenuBackdropDataAttributes {
257
+ /**
258
+ * Identifies the component part.
259
+ * @type {'bazzaui-dropdown-menu-backdrop'}
260
+ */
261
+ slot = "bazzaui-dropdown-menu-backdrop",
262
+ /**
263
+ * Present when the popup menu is open.
264
+ */
265
+ open = "data-open",
266
+ /**
267
+ * Present when the popup menu is closed.
268
+ */
269
+ closed = "data-closed",
270
+ /**
271
+ * Present when the popup menu is animating in.
272
+ */
273
+ startingStyle = "data-starting-style",
274
+ /**
275
+ * Present when the popup menu is animating out.
276
+ */
277
+ endingStyle = "data-ending-style"
278
+ }
279
+
280
+ declare enum DropdownMenuCheckboxItemDataAttributes {
281
+ /**
282
+ * Identifies the component part.
283
+ * @type {'bazzaui-dropdown-menu-checkbox-item'}
284
+ */
285
+ slot = "bazzaui-dropdown-menu-checkbox-item",
286
+ /**
287
+ * Present when the checkbox item is checked.
288
+ */
289
+ checked = "data-checked",
290
+ /**
291
+ * Present when the checkbox item is unchecked.
292
+ */
293
+ unchecked = "data-unchecked",
294
+ /**
295
+ * Present when the item is highlighted (via keyboard or pointer).
296
+ */
297
+ highlighted = "data-highlighted",
298
+ /**
299
+ * Present when the item is disabled.
300
+ */
301
+ disabled = "data-disabled"
302
+ }
303
+ declare enum DropdownMenuCheckboxItemIndicatorDataAttributes {
304
+ /**
305
+ * Identifies the component part.
306
+ * @type {'bazzaui-dropdown-menu-checkbox-item-indicator'}
307
+ */
308
+ slot = "bazzaui-dropdown-menu-checkbox-item-indicator",
309
+ /**
310
+ * Present when the checkbox item is checked.
311
+ */
312
+ checked = "data-checked",
313
+ /**
314
+ * Present when the checkbox item is unchecked.
315
+ */
316
+ unchecked = "data-unchecked"
317
+ }
318
+
319
+ declare enum DropdownMenuEmptyDataAttributes {
320
+ /**
321
+ * Identifies the component part.
322
+ * @type {'bazzaui-dropdown-menu-empty'}
323
+ */
324
+ slot = "bazzaui-dropdown-menu-empty"
325
+ }
326
+
327
+ declare enum DropdownMenuGroupDataAttributes {
328
+ /**
329
+ * Identifies the component part.
330
+ * @type {'bazzaui-dropdown-menu-group'}
331
+ */
332
+ slot = "bazzaui-dropdown-menu-group"
333
+ }
334
+
335
+ declare enum DropdownMenuGroupLabelDataAttributes {
336
+ /**
337
+ * Identifies the component part.
338
+ * @type {'bazzaui-dropdown-menu-group-label'}
339
+ */
340
+ slot = "bazzaui-dropdown-menu-group-label"
341
+ }
342
+
343
+ declare const DropdownMenuIconDataAttributes: {
344
+ /**
345
+ * Identifies the component part.
346
+ * @type {'bazzaui-dropdown-menu-icon'}
347
+ */
348
+ readonly slot: "bazzaui-dropdown-menu-icon";
349
+ /** Present when the popup is open. */
350
+ readonly open: "data-popup-open";
351
+ };
352
+
353
+ declare enum DropdownMenuInputDataAttributes {
354
+ /**
355
+ * Identifies the component part.
356
+ * @type {'bazzaui-dropdown-menu-input'}
357
+ */
358
+ slot = "bazzaui-dropdown-menu-input",
359
+ /**
360
+ * Present when the popup menu is open.
361
+ */
362
+ open = "data-open",
363
+ /**
364
+ * Present when the popup menu is closed.
365
+ */
366
+ closed = "data-closed"
367
+ }
368
+
369
+ declare enum DropdownMenuItemDataAttributes {
370
+ /**
371
+ * Identifies the component part.
372
+ * @type {'bazzaui-dropdown-menu-item'}
373
+ */
374
+ slot = "bazzaui-dropdown-menu-item",
375
+ /**
376
+ * Present when the item is highlighted (via keyboard or pointer).
377
+ */
378
+ highlighted = "data-highlighted",
379
+ /**
380
+ * Present when the item is disabled.
381
+ */
382
+ disabled = "data-disabled"
383
+ }
384
+
385
+ declare enum DropdownMenuListDataAttributes {
386
+ /**
387
+ * Identifies the component part.
388
+ * @type {'bazzaui-dropdown-menu-list'}
389
+ */
390
+ slot = "bazzaui-dropdown-menu-list",
391
+ /**
392
+ * Always present on the list element.
393
+ * Used for styling and by useStickyRowWidth to find the list container.
394
+ */
395
+ list = "data-popup-menu-list"
396
+ }
397
+
398
+ declare enum DropdownMenuLoadingDataAttributes {
399
+ /**
400
+ * Identifies the component part.
401
+ * @type {'bazzaui-dropdown-menu-loading'}
402
+ */
403
+ slot = "bazzaui-dropdown-menu-loading"
404
+ }
405
+
406
+ declare enum DropdownMenuPopupDataAttributes {
407
+ /**
408
+ * Identifies the component part.
409
+ * @type {'bazzaui-dropdown-menu-popup'}
410
+ */
411
+ slot = "bazzaui-dropdown-menu-popup",
412
+ /**
413
+ * Present when the popup menu is open.
414
+ */
415
+ open = "data-open",
416
+ /**
417
+ * Present when the popup menu is closed.
418
+ */
419
+ closed = "data-closed",
420
+ /**
421
+ * Indicates which side the popup is positioned relative to the trigger.
422
+ * @type {'top' | 'bottom' | 'left' | 'right'}
423
+ */
424
+ side = "data-side",
425
+ /**
426
+ * Indicates how the popup is aligned relative to specified side.
427
+ * @type {'start' | 'center' | 'end'}
428
+ */
429
+ align = "data-align",
430
+ /**
431
+ * Present when the popup is animating in.
432
+ */
433
+ startingStyle = "data-starting-style",
434
+ /**
435
+ * Present when the popup is animating out.
436
+ */
437
+ endingStyle = "data-ending-style",
438
+ /**
439
+ * Present if animations should be instant.
440
+ * @type {'click' | 'dismiss'}
441
+ */
442
+ instant = "data-instant",
443
+ /**
444
+ * Present when this popup's surface is the focus owner.
445
+ * Useful for styling the currently focused menu in a submenu chain.
446
+ */
447
+ focused = "data-focused",
448
+ /**
449
+ * Present when this popup has an open submenu below it in the menu tree.
450
+ * Useful for styling all parent menus in an open submenu chain.
451
+ */
452
+ hasOpenSubmenu = "data-has-open-submenu",
453
+ /**
454
+ * Present when this popup is a submenu (not the root menu).
455
+ * Useful for applying different styles to submenus vs root menus.
456
+ */
457
+ submenu = "data-submenu",
458
+ /**
459
+ * Present while navigating between subpages in this popup.
460
+ * Useful for temporary transition adjustments during subpage focus handoff.
461
+ */
462
+ navigating = "data-navigating"
463
+ }
464
+
465
+ declare enum DropdownMenuPositionerDataAttributes {
466
+ /**
467
+ * Identifies the component part.
468
+ * @type {'bazzaui-dropdown-menu-positioner'}
469
+ */
470
+ slot = "bazzaui-dropdown-menu-positioner",
471
+ /**
472
+ * Present when the popup menu is open.
473
+ */
474
+ open = "data-open",
475
+ /**
476
+ * Present when the popup menu is closed.
477
+ */
478
+ closed = "data-closed",
479
+ /**
480
+ * Present when the anchor is hidden.
481
+ */
482
+ anchorHidden = "data-anchor-hidden",
483
+ /**
484
+ * Indicates which side the popup is positioned relative to the trigger.
485
+ * @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}
486
+ */
487
+ side = "data-side",
488
+ /**
489
+ * Indicates how the popup is aligned relative to specified side.
490
+ * @type {'start' | 'center' | 'end' | 'list-start'}
491
+ */
492
+ align = "data-align"
493
+ }
494
+
495
+ declare enum DropdownMenuRadioGroupDataAttributes {
496
+ /**
497
+ * Identifies the component part.
498
+ * @type {'bazzaui-dropdown-menu-radio-group'}
499
+ */
500
+ slot = "bazzaui-dropdown-menu-radio-group",
501
+ /**
502
+ * Present when the radio group is disabled.
503
+ */
504
+ disabled = "data-disabled"
505
+ }
506
+
507
+ declare enum DropdownMenuRadioItemDataAttributes {
508
+ /**
509
+ * Identifies the component part.
510
+ * @type {'bazzaui-dropdown-menu-radio-item'}
511
+ */
512
+ slot = "bazzaui-dropdown-menu-radio-item",
513
+ /**
514
+ * Present when the radio item is checked/selected.
515
+ */
516
+ checked = "data-checked",
517
+ /**
518
+ * Present when the radio item is unchecked.
519
+ */
520
+ unchecked = "data-unchecked",
521
+ /**
522
+ * Present when the item is highlighted (via keyboard or pointer).
523
+ */
524
+ highlighted = "data-highlighted",
525
+ /**
526
+ * Present when the item is disabled.
527
+ */
528
+ disabled = "data-disabled"
529
+ }
530
+ declare enum DropdownMenuRadioItemIndicatorDataAttributes {
531
+ /**
532
+ * Identifies the component part.
533
+ * @type {'bazzaui-dropdown-menu-radio-item-indicator'}
534
+ */
535
+ slot = "bazzaui-dropdown-menu-radio-item-indicator",
536
+ /**
537
+ * Present when the radio item is checked/selected.
538
+ */
539
+ checked = "data-checked",
540
+ /**
541
+ * Present when the radio item is unchecked.
542
+ */
543
+ unchecked = "data-unchecked"
544
+ }
545
+
546
+ declare const DropdownMenuScrollArrowDataAttributes: {
547
+ /**
548
+ * Identifies the component part for scroll up arrow.
549
+ * @type {'bazzaui-dropdown-menu-scroll-up-arrow'}
550
+ */
551
+ readonly slotUp: "bazzaui-dropdown-menu-scroll-up-arrow";
552
+ /**
553
+ * Identifies the component part for scroll down arrow.
554
+ * @type {'bazzaui-dropdown-menu-scroll-down-arrow'}
555
+ */
556
+ readonly slotDown: "bazzaui-dropdown-menu-scroll-down-arrow";
557
+ /**
558
+ * Direction of the scroll arrow.
559
+ * @type {'up' | 'down'}
560
+ */
561
+ readonly direction: "data-direction";
562
+ /**
563
+ * Side of the popup.
564
+ * @type {'top' | 'bottom' | 'left' | 'right'}
565
+ */
566
+ readonly side: "data-side";
567
+ };
568
+
569
+ declare enum DropdownMenuSeparatorDataAttributes {
570
+ /**
571
+ * Identifies the component part.
572
+ * @type {'bazzaui-dropdown-menu-separator'}
573
+ */
574
+ slot = "bazzaui-dropdown-menu-separator"
575
+ }
576
+
577
+ declare enum DropdownMenuShortcutDataAttributes {
578
+ /**
579
+ * Identifies the component part.
580
+ * @type {'bazzaui-dropdown-menu-shortcut'}
581
+ */
582
+ slot = "bazzaui-dropdown-menu-shortcut",
583
+ /**
584
+ * Present when the parent item is highlighted.
585
+ */
586
+ highlighted = "data-highlighted"
587
+ }
588
+
589
+ declare enum DropdownMenuSubmenuTriggerDataAttributes {
590
+ /**
591
+ * Identifies the component part.
592
+ * @type {'bazzaui-dropdown-menu-submenu-trigger'}
593
+ */
594
+ slot = "bazzaui-dropdown-menu-submenu-trigger",
595
+ /**
596
+ * Present on submenu trigger elements.
597
+ */
598
+ submenuTrigger = "data-submenu-trigger",
599
+ /**
600
+ * Present when the submenu popup is open.
601
+ */
602
+ popupOpen = "data-popup-open",
603
+ /**
604
+ * Present when the submenu owns keyboard focus.
605
+ */
606
+ popupFocused = "data-popup-focused",
607
+ /**
608
+ * Present when the item is highlighted.
609
+ */
610
+ highlighted = "data-highlighted",
611
+ /**
612
+ * Present when the item is disabled.
613
+ */
614
+ disabled = "data-disabled"
615
+ }
616
+ declare enum DropdownMenuSubmenuTriggerIndicatorDataAttributes {
617
+ /**
618
+ * Identifies the component part.
619
+ * @type {'bazzaui-dropdown-menu-submenu-trigger-indicator'}
620
+ */
621
+ slot = "bazzaui-dropdown-menu-submenu-trigger-indicator",
622
+ /**
623
+ * Present when the submenu popup is open.
624
+ */
625
+ popupOpen = "data-popup-open"
626
+ }
627
+
628
+ declare enum DropdownMenuSubpageBackDataAttributes {
629
+ /**
630
+ * Identifies the component part.
631
+ * @type {'bazzaui-dropdown-menu-subpage-back'}
632
+ */
633
+ slot = "bazzaui-dropdown-menu-subpage-back",
634
+ /**
635
+ * Present when navigating back is available.
636
+ */
637
+ canGoBack = "data-can-go-back",
638
+ /**
639
+ * Present when the button is disabled.
640
+ */
641
+ disabled = "data-disabled"
642
+ }
643
+
644
+ declare enum DropdownMenuSubpageBackItemDataAttributes {
645
+ /**
646
+ * Identifies the component part.
647
+ * @type {'bazzaui-dropdown-menu-subpage-back-item'}
648
+ */
649
+ slot = "bazzaui-dropdown-menu-subpage-back-item",
650
+ /**
651
+ * Present on subpage back item elements.
652
+ */
653
+ subpageBackItem = "data-subpage-back-item",
654
+ /**
655
+ * Present when the item is highlighted.
656
+ */
657
+ highlighted = "data-highlighted",
658
+ /**
659
+ * Present when the item is disabled.
660
+ */
661
+ disabled = "data-disabled"
662
+ }
663
+
664
+ declare enum DropdownMenuSubpageTriggerDataAttributes {
665
+ /**
666
+ * Identifies the component part.
667
+ * @type {'bazzaui-dropdown-menu-subpage-trigger'}
668
+ */
669
+ slot = "bazzaui-dropdown-menu-subpage-trigger",
670
+ /**
671
+ * Present on subpage trigger elements.
672
+ */
673
+ subpageTrigger = "data-subpage-trigger",
674
+ /**
675
+ * Present when the target page is active.
676
+ */
677
+ popupOpen = "data-popup-open",
678
+ /**
679
+ * Present when the target page owns keyboard focus.
680
+ */
681
+ popupFocused = "data-popup-focused",
682
+ /**
683
+ * Present when the item is highlighted.
684
+ */
685
+ highlighted = "data-highlighted",
686
+ /**
687
+ * Present when the item is disabled.
688
+ */
689
+ disabled = "data-disabled"
690
+ }
691
+
692
+ declare enum DropdownMenuSurfaceDataAttributes {
693
+ /**
694
+ * Identifies the component part.
695
+ * @type {'bazzaui-dropdown-menu-surface'}
696
+ */
697
+ slot = "bazzaui-dropdown-menu-surface"
698
+ }
699
+
700
+ export { index_parts as DropdownMenu, PopupMenuArrow as DropdownMenuArrow, DropdownMenuArrowDataAttributes, PopupMenuBackdrop as DropdownMenuBackdrop, DropdownMenuBackdropDataAttributes, PopupMenuCheckboxItem as DropdownMenuCheckboxItem, DropdownMenuCheckboxItemDataAttributes, PopupMenuCheckboxItemIndicator as DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemIndicatorDataAttributes, PopupMenuInput as DropdownMenuDataInput, PopupMenuDataList as DropdownMenuDataList, PopupMenuDataSubpages as DropdownMenuDataSubpages, PopupMenuDataSurface as DropdownMenuDataSurface, PopupMenuEmpty as DropdownMenuEmpty, DropdownMenuEmptyDataAttributes, PopupMenuGroup as DropdownMenuGroup, DropdownMenuGroupDataAttributes, PopupMenuGroupLabel as DropdownMenuGroupLabel, DropdownMenuGroupLabelDataAttributes, PopupMenuIcon as DropdownMenuIcon, DropdownMenuIconDataAttributes, PopupMenuInput as DropdownMenuInput, DropdownMenuInputDataAttributes, PopupMenuItem as DropdownMenuItem, DropdownMenuItemDataAttributes, PopupMenuList as DropdownMenuList, DropdownMenuListDataAttributes, PopupMenuLoading as DropdownMenuLoading, DropdownMenuLoadingDataAttributes, PopupMenuPopup as DropdownMenuPopup, DropdownMenuPopupDataAttributes, PopupMenuPortal as DropdownMenuPortal, PopupMenuPositioner as DropdownMenuPositioner, DropdownMenuPositionerDataAttributes, PopupMenuRadioGroup as DropdownMenuRadioGroup, DropdownMenuRadioGroupDataAttributes, PopupMenuRadioGroupValue as DropdownMenuRadioGroupValue, PopupMenuRadioItem as DropdownMenuRadioItem, DropdownMenuRadioItemDataAttributes, PopupMenuRadioItemIndicator as DropdownMenuRadioItemIndicator, DropdownMenuRadioItemIndicatorDataAttributes, DropdownMenuRoot, type DropdownMenuRootProps, DropdownMenuScrollArrowDataAttributes, PopupMenuSeparator as DropdownMenuSeparator, DropdownMenuSeparatorDataAttributes, PopupMenuShortcut as DropdownMenuShortcut, DropdownMenuShortcutDataAttributes, PopupMenuSubmenuRoot as DropdownMenuSubmenuRoot, PopupMenuSubmenuTrigger as DropdownMenuSubmenuTrigger, DropdownMenuSubmenuTriggerDataAttributes, PopupMenuSubmenuTriggerIndicator as DropdownMenuSubmenuTriggerIndicator, DropdownMenuSubmenuTriggerIndicatorDataAttributes, PopupMenuSubpage as DropdownMenuSubpage, PopupMenuSubpageBack as DropdownMenuSubpageBack, DropdownMenuSubpageBackDataAttributes, PopupMenuSubpageBackItem as DropdownMenuSubpageBackItem, DropdownMenuSubpageBackItemDataAttributes, PopupMenuSubpageTrigger as DropdownMenuSubpageTrigger, DropdownMenuSubpageTriggerDataAttributes, PopupMenuSurface as DropdownMenuSurface, DropdownMenuSurfaceDataAttributes, DropdownMenuTrigger, DropdownMenuTriggerDataAttributes, type DropdownMenuTriggerProps, VirtualItem as DropdownMenuVirtualItem, useAsyncMenuCoordinator, useMaybeAsyncMenuCoordinator };