@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,658 @@
1
+ import { V as VirtualItem } from '../ListboxStore-BtcTXpzi.cjs';
2
+ export { F as ContextMenuFilterFn, I as ContextMenuItemRegistration, b as ContextMenuStore, L as ContextMenuStoreContext, a as ContextMenuStoreState } from '../ListboxStore-BtcTXpzi.cjs';
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-9vS1uLIK.cjs';
4
+ export { y as AsyncResultBehavior, D as CheckboxItemDef, E as CheckboxItemRenderParams, F as CheckboxItemRenderProps, f as ContextMenuCheckboxItemProps, g as ContextMenuCheckboxItemState, h as ContextMenuItemProps, i as ContextMenuItemState, j as ContextMenuRadioGroupProps, k as ContextMenuRadioGroupState, l as ContextMenuRadioItemProps, m as ContextMenuRadioItemState, n as ContextMenuSubmenuTriggerProps, o as ContextMenuSubmenuTriggerState, p as ContextMenuSubpageTriggerProps, q as ContextMenuSubpageTriggerState, 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, T as DisplaySubpageNode, 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, a2 as NodeDef, a6 as RadioGroupDef, a7 as RadioGroupRenderParams, a8 as RadioGroupRenderProps, ac as RowRenderContext, ad as ScoredNode, ae as SeparatorDef, 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 } from '../types-9vS1uLIK.cjs';
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-BmbUeeaT.cjs';
6
+ export { o as ContextMenuArrowProps, p as ContextMenuBackdropProps, q as ContextMenuEmptyProps, r as ContextMenuEmptyState, s as ContextMenuGroupLabelProps, t as ContextMenuGroupLabelState, u as ContextMenuGroupProps, v as ContextMenuGroupState, w as ContextMenuIconProps, x as ContextMenuIconState, y as ContextMenuListChildrenState, L as ContextMenuListCssVars, z as ContextMenuListProps, A as ContextMenuListState, B as ContextMenuPopupProps, C as ContextMenuPortalProps, M as ContextMenuPositionerCssVars, D as ContextMenuScrollArrowProps, E as ContextMenuScrollArrowState, F as ContextMenuScrollDownArrowProps, G as ContextMenuScrollUpArrowProps, H as ContextMenuSeparatorProps, I as ContextMenuSeparatorState, J as ContextMenuSurfaceProps, K as ContextMenuSurfaceState, N as RootContextValue, O as useMaybeRootContext, Q as useRootContext } from '../separator-BmbUeeaT.cjs';
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-B-eIGTBi.cjs';
8
+ export { O as AsyncMenuCoordinatorValue, n as ContextMenuCheckboxItemIndicatorProps, o as ContextMenuCheckboxItemIndicatorState, R as ContextMenuDataListProps, T as ContextMenuDataSubpagesProps, V as ContextMenuDataSurfaceProps, p as ContextMenuPositionerAlign, q as ContextMenuPositionerProps, W as ContextMenuRadioGroupValueProps, r as ContextMenuRadioItemIndicatorProps, s as ContextMenuRadioItemIndicatorState, t as ContextMenuShortcutProps, v as ContextMenuShortcutState, w as ContextMenuSubmenuRootProps, x as ContextMenuSubmenuTriggerIndicatorProps, y as ContextMenuSubmenuTriggerIndicatorState, z as ContextMenuSubpageBackItemProps, A as ContextMenuSubpageBackItemState, B as ContextMenuSubpageBackProps, C as ContextMenuSubpageBackState, D as ContextMenuSubpageProps, Y as DataSurfaceContext, Q as DataSurfaceContextValue, 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-B-eIGTBi.cjs';
9
+ import { P as PopupMenuInput } from '../input-BoIK003I.cjs';
10
+ export { a as ContextMenuDataInputProps, a as ContextMenuInputProps, b as ContextMenuInputState } from '../input-BoIK003I.cjs';
11
+ import * as react_jsx_runtime from 'react/jsx-runtime';
12
+ import * as React from 'react';
13
+ import { C as ChangeEventDetails, m as triggerContextMenu, 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.cjs';
14
+ export { I as ItemContextValue, u as useItemContext, a as useMaybeItemContext } from '../use-listbox-item-BIi4eRPI.cjs';
15
+ export { S as SurfaceContextValue, c as commandScore, d as defaultFilter, u as useMaybeSurfaceContext, a as useSurfaceContext } from '../command-score-YjNr3ZWi.cjs';
16
+ import '@base-ui/utils/store';
17
+ import '@base-ui/react/popover';
18
+
19
+ /**
20
+ * Reasons why the context menu's open state changed.
21
+ */
22
+ type ContextMenuOpenChangeReason = typeof triggerContextMenu | typeof escapeKey | typeof outsidePress | typeof focusOut | typeof itemPress | typeof closePress | typeof listNavigation | typeof submenuTrigger | typeof siblingOpen | typeof imperativeAction | typeof none;
23
+ /**
24
+ * Event details passed to the `onOpenChange` callback.
25
+ */
26
+ type ContextMenuOpenChangeEventDetails = ChangeEventDetails<ContextMenuOpenChangeReason>;
27
+ /**
28
+ * Reasons why highlight changed.
29
+ */
30
+ type ContextMenuHighlightChangeReason = typeof pointer | typeof keyboard | typeof none;
31
+ /**
32
+ * Event details passed to the `onHighlightChange` callback.
33
+ */
34
+ type ContextMenuHighlightChangeEventDetails = GenericEventDetails<ContextMenuHighlightChangeReason, {
35
+ index: number;
36
+ }>;
37
+
38
+ interface ContextMenuRootProps {
39
+ /**
40
+ * Whether the context menu is open.
41
+ * Use for controlled mode.
42
+ */
43
+ open?: boolean;
44
+ /**
45
+ * Callback when the open state changes.
46
+ * The second parameter contains event details including the reason for the change.
47
+ */
48
+ onOpenChange?: (open: boolean, eventDetails: ContextMenuOpenChangeEventDetails) => void;
49
+ /**
50
+ * Whether the context menu is initially open.
51
+ * Use for uncontrolled mode.
52
+ * @default false
53
+ */
54
+ defaultOpen?: boolean;
55
+ /**
56
+ * Whether virtualization mode is enabled.
57
+ * When true, items should provide an explicit `index` prop and
58
+ * the `items` prop should be provided for navigation to work correctly.
59
+ * @default false
60
+ */
61
+ virtualized?: boolean;
62
+ /**
63
+ * Pre-registered items for virtualization.
64
+ * When provided with `virtualized={true}`, this allows navigation to work
65
+ * for items that aren't currently mounted in the DOM.
66
+ */
67
+ items?: VirtualItem[];
68
+ /**
69
+ * Callback when the highlighted item changes.
70
+ * Useful for synchronizing with a virtualizer (e.g., scrollToIndex) or other UI state.
71
+ * The third parameter contains event details including the reason for the change.
72
+ */
73
+ onHighlightChange?: (id: string | null, index: number, eventDetails: ContextMenuHighlightChangeEventDetails) => void;
74
+ /**
75
+ * Whether the component should ignore user interaction.
76
+ * @default false
77
+ */
78
+ disabled?: boolean;
79
+ /**
80
+ * Determines if the context menu enters a modal state when open.
81
+ *
82
+ * - `true`: user interaction is limited to the menu: document page scroll
83
+ * is locked, and pointer interactions on outside elements are disabled.
84
+ * - `false`: user interaction with the rest of the document is allowed.
85
+ *
86
+ * @default true
87
+ */
88
+ modal?: boolean;
89
+ /**
90
+ * When to close the menu on outside interactions.
91
+ * - `'pointerdown'`: Close immediately when pointer is pressed outside (default)
92
+ * - `'click'`: Close when a full click (pointerdown + pointerup) occurs outside
93
+ * @default 'pointerdown'
94
+ */
95
+ closeOnOutsidePress?: 'click' | 'pointerdown';
96
+ /**
97
+ * Event handler called after any open/close animations have completed.
98
+ * When `clearSearchOnClose="after-exit"` is set on Surface, the search
99
+ * will be cleared before this callback is invoked.
100
+ */
101
+ onOpenChangeComplete?: (open: boolean) => void;
102
+ /**
103
+ * A ref to imperative actions.
104
+ * - `close`: closes the menu imperatively.
105
+ * - `unmount`: unmounts the popup imperatively (when keep-mounted mode is enabled).
106
+ * - `setDisabled`: enables/disables the menu imperatively.
107
+ */
108
+ actionsRef?: React.RefObject<ContextMenuRoot.Actions | null>;
109
+ /**
110
+ * Function to generate qualified unique IDs for rows.
111
+ * Defined once at the root level and applied to all surfaces (root and submenus).
112
+ *
113
+ * Default behavior:
114
+ * - If node.id is provided, use it as-is (treat as globally unique)
115
+ * - Otherwise, qualify with breadcrumbs + slugified value when deep searching
116
+ */
117
+ getQualifiedRowId?: GetQualifiedRowIdFn;
118
+ /**
119
+ * Debug visualization options for submenu interaction heuristics.
120
+ */
121
+ debug?: PopupMenuDebugOptions;
122
+ children: React.ReactNode;
123
+ }
124
+ /**
125
+ * Groups all parts of the context menu.
126
+ * Manages open state and provides context to children.
127
+ * Doesn't render its own HTML element.
128
+ */
129
+ declare function ContextMenuRoot(props: ContextMenuRoot.Props): react_jsx_runtime.JSX.Element;
130
+ declare namespace ContextMenuRoot {
131
+ interface Props extends ContextMenuRootProps {
132
+ }
133
+ type OpenChangeEventDetails = ContextMenuOpenChangeEventDetails;
134
+ type HighlightChangeEventDetails = ContextMenuHighlightChangeEventDetails;
135
+ type Actions = PopupMenuRootActions;
136
+ }
137
+
138
+ interface ContextMenuTriggerState extends Record<string, unknown> {
139
+ /**
140
+ * Whether the context menu is currently open.
141
+ */
142
+ open: boolean;
143
+ /**
144
+ * Whether the trigger is currently being pressed (long-press in progress).
145
+ */
146
+ pressed: boolean;
147
+ /**
148
+ * Whether the trigger is disabled.
149
+ */
150
+ disabled: boolean;
151
+ }
152
+ interface ContextMenuTriggerProps extends ComponentProps<'div', ContextMenuTrigger.State> {
153
+ /**
154
+ * Whether the trigger is disabled.
155
+ * When disabled, right-click and long-press will not open the menu.
156
+ * @default false
157
+ */
158
+ disabled?: boolean;
159
+ }
160
+ /**
161
+ * An area that opens the context menu on right-click or long-press.
162
+ * Renders a `<div>` element.
163
+ */
164
+ declare const ContextMenuTrigger: React.ForwardRefExoticComponent<Omit<ContextMenuTrigger.Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
165
+ declare namespace ContextMenuTrigger {
166
+ type State = ContextMenuTriggerState;
167
+ interface Props extends ContextMenuTriggerProps {
168
+ }
169
+ }
170
+
171
+ declare const index_parts_VirtualItem: typeof VirtualItem;
172
+ declare const index_parts_useAsyncMenuCoordinator: typeof useAsyncMenuCoordinator;
173
+ declare const index_parts_useMaybeAsyncMenuCoordinator: typeof useMaybeAsyncMenuCoordinator;
174
+ declare namespace index_parts {
175
+ 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, PopupMenuPopup as Popup, PopupMenuPortal as Portal, PopupMenuPositioner as Positioner, PopupMenuRadioGroup as RadioGroup, PopupMenuRadioGroupValue as RadioGroupValue, PopupMenuRadioItem as RadioItem, PopupMenuRadioItemIndicator as RadioItemIndicator, ContextMenuRoot 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, ContextMenuTrigger as Trigger, index_parts_VirtualItem as VirtualItem, index_parts_useAsyncMenuCoordinator as useAsyncMenuCoordinator, index_parts_useMaybeAsyncMenuCoordinator as useMaybeAsyncMenuCoordinator };
176
+ }
177
+
178
+ declare enum ContextMenuTriggerDataAttributes {
179
+ /**
180
+ * Identifies the component part.
181
+ * @type {'bazzaui-context-menu-trigger'}
182
+ */
183
+ slot = "bazzaui-context-menu-trigger",
184
+ /** Present when the corresponding context menu is open. */
185
+ popupOpen = "data-popup-open",
186
+ /** Present when the trigger is being pressed (long-press). */
187
+ pressed = "data-pressed",
188
+ /** Present when the trigger is disabled. */
189
+ disabled = "data-disabled"
190
+ }
191
+
192
+ declare enum ContextMenuArrowDataAttributes {
193
+ /**
194
+ * Identifies the component part.
195
+ * @type {'bazzaui-context-menu-arrow'}
196
+ */
197
+ slot = "bazzaui-context-menu-arrow",
198
+ /**
199
+ * Present when the popup menu is open.
200
+ */
201
+ open = "data-open",
202
+ /**
203
+ * Present when the popup menu is closed.
204
+ */
205
+ closed = "data-closed",
206
+ /**
207
+ * Indicates which side the popup is positioned relative to the trigger.
208
+ * @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}
209
+ */
210
+ side = "data-side",
211
+ /**
212
+ * Indicates how the popup is aligned relative to specified side.
213
+ * @type {'start' | 'center' | 'end'}
214
+ */
215
+ align = "data-align",
216
+ /**
217
+ * Present when the arrow is not centered due to collision avoidance.
218
+ */
219
+ uncentered = "data-uncentered"
220
+ }
221
+
222
+ declare enum ContextMenuBackdropDataAttributes {
223
+ /**
224
+ * Identifies the component part.
225
+ * @type {'bazzaui-context-menu-backdrop'}
226
+ */
227
+ slot = "bazzaui-context-menu-backdrop",
228
+ /**
229
+ * Present when the popup menu is open.
230
+ */
231
+ open = "data-open",
232
+ /**
233
+ * Present when the popup menu is closed.
234
+ */
235
+ closed = "data-closed",
236
+ /**
237
+ * Present when the popup menu is animating in.
238
+ */
239
+ startingStyle = "data-starting-style",
240
+ /**
241
+ * Present when the popup menu is animating out.
242
+ */
243
+ endingStyle = "data-ending-style"
244
+ }
245
+
246
+ declare enum ContextMenuCheckboxItemDataAttributes {
247
+ /**
248
+ * Identifies the component part.
249
+ * @type {'bazzaui-context-menu-checkbox-item'}
250
+ */
251
+ slot = "bazzaui-context-menu-checkbox-item",
252
+ /**
253
+ * Present when the checkbox item is checked.
254
+ */
255
+ checked = "data-checked",
256
+ /**
257
+ * Present when the checkbox item is unchecked.
258
+ */
259
+ unchecked = "data-unchecked",
260
+ /**
261
+ * Present when the item is highlighted (via keyboard or pointer).
262
+ */
263
+ highlighted = "data-highlighted",
264
+ /**
265
+ * Present when the item is disabled.
266
+ */
267
+ disabled = "data-disabled"
268
+ }
269
+ declare enum ContextMenuCheckboxItemIndicatorDataAttributes {
270
+ /**
271
+ * Identifies the component part.
272
+ * @type {'bazzaui-context-menu-checkbox-item-indicator'}
273
+ */
274
+ slot = "bazzaui-context-menu-checkbox-item-indicator",
275
+ /**
276
+ * Present when the checkbox item is checked.
277
+ */
278
+ checked = "data-checked",
279
+ /**
280
+ * Present when the checkbox item is unchecked.
281
+ */
282
+ unchecked = "data-unchecked"
283
+ }
284
+
285
+ declare enum ContextMenuEmptyDataAttributes {
286
+ /**
287
+ * Identifies the component part.
288
+ * @type {'bazzaui-context-menu-empty'}
289
+ */
290
+ slot = "bazzaui-context-menu-empty"
291
+ }
292
+
293
+ declare enum ContextMenuGroupDataAttributes {
294
+ /**
295
+ * Identifies the component part.
296
+ * @type {'bazzaui-context-menu-group'}
297
+ */
298
+ slot = "bazzaui-context-menu-group"
299
+ }
300
+
301
+ declare enum ContextMenuGroupLabelDataAttributes {
302
+ /**
303
+ * Identifies the component part.
304
+ * @type {'bazzaui-context-menu-group-label'}
305
+ */
306
+ slot = "bazzaui-context-menu-group-label"
307
+ }
308
+
309
+ declare const ContextMenuIconDataAttributes: {
310
+ /**
311
+ * Identifies the component part.
312
+ * @type {'bazzaui-context-menu-icon'}
313
+ */
314
+ readonly slot: "bazzaui-context-menu-icon";
315
+ /** Present when the popup is open. */
316
+ readonly open: "data-popup-open";
317
+ };
318
+
319
+ declare enum ContextMenuInputDataAttributes {
320
+ /**
321
+ * Identifies the component part.
322
+ * @type {'bazzaui-context-menu-input'}
323
+ */
324
+ slot = "bazzaui-context-menu-input",
325
+ /**
326
+ * Present when the popup menu is open.
327
+ */
328
+ open = "data-open",
329
+ /**
330
+ * Present when the popup menu is closed.
331
+ */
332
+ closed = "data-closed"
333
+ }
334
+
335
+ declare enum ContextMenuItemDataAttributes {
336
+ /**
337
+ * Identifies the component part.
338
+ * @type {'bazzaui-context-menu-item'}
339
+ */
340
+ slot = "bazzaui-context-menu-item",
341
+ /**
342
+ * Present when the item is highlighted (via keyboard or pointer).
343
+ */
344
+ highlighted = "data-highlighted",
345
+ /**
346
+ * Present when the item is disabled.
347
+ */
348
+ disabled = "data-disabled"
349
+ }
350
+
351
+ declare enum ContextMenuListDataAttributes {
352
+ /**
353
+ * Identifies the component part.
354
+ * @type {'bazzaui-context-menu-list'}
355
+ */
356
+ slot = "bazzaui-context-menu-list",
357
+ /**
358
+ * Always present on the list element.
359
+ * Used for styling and by useStickyRowWidth to find the list container.
360
+ */
361
+ list = "data-popup-menu-list"
362
+ }
363
+
364
+ declare enum ContextMenuPopupDataAttributes {
365
+ /**
366
+ * Identifies the component part.
367
+ * @type {'bazzaui-context-menu-popup'}
368
+ */
369
+ slot = "bazzaui-context-menu-popup",
370
+ /**
371
+ * Present when the popup menu is open.
372
+ */
373
+ open = "data-open",
374
+ /**
375
+ * Present when the popup menu is closed.
376
+ */
377
+ closed = "data-closed",
378
+ /**
379
+ * Indicates which side the popup is positioned relative to the trigger.
380
+ * @type {'top' | 'bottom' | 'left' | 'right'}
381
+ */
382
+ side = "data-side",
383
+ /**
384
+ * Indicates how the popup is aligned relative to specified side.
385
+ * @type {'start' | 'center' | 'end'}
386
+ */
387
+ align = "data-align",
388
+ /**
389
+ * Present when the popup is animating in.
390
+ */
391
+ startingStyle = "data-starting-style",
392
+ /**
393
+ * Present when the popup is animating out.
394
+ */
395
+ endingStyle = "data-ending-style",
396
+ /**
397
+ * Present if animations should be instant.
398
+ * @type {'click' | 'dismiss'}
399
+ */
400
+ instant = "data-instant",
401
+ /**
402
+ * Present when this popup's surface is the focus owner.
403
+ * Useful for styling the currently focused menu in a submenu chain.
404
+ */
405
+ focused = "data-focused",
406
+ /**
407
+ * Present when this popup has an open submenu below it in the menu tree.
408
+ * Useful for styling all parent menus in an open submenu chain.
409
+ */
410
+ hasOpenSubmenu = "data-has-open-submenu",
411
+ /**
412
+ * Present when this popup is a submenu (not the root menu).
413
+ * Useful for applying different styles to submenus vs root menus.
414
+ */
415
+ submenu = "data-submenu",
416
+ /**
417
+ * Present while navigating between subpages in this popup.
418
+ * Useful for temporary transition adjustments during subpage focus handoff.
419
+ */
420
+ navigating = "data-navigating"
421
+ }
422
+
423
+ declare enum ContextMenuPositionerDataAttributes {
424
+ /**
425
+ * Identifies the component part.
426
+ * @type {'bazzaui-context-menu-positioner'}
427
+ */
428
+ slot = "bazzaui-context-menu-positioner",
429
+ /**
430
+ * Present when the popup menu is open.
431
+ */
432
+ open = "data-open",
433
+ /**
434
+ * Present when the popup menu is closed.
435
+ */
436
+ closed = "data-closed",
437
+ /**
438
+ * Present when the anchor is hidden.
439
+ */
440
+ anchorHidden = "data-anchor-hidden",
441
+ /**
442
+ * Indicates which side the popup is positioned relative to the trigger.
443
+ * @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}
444
+ */
445
+ side = "data-side",
446
+ /**
447
+ * Indicates how the popup is aligned relative to specified side.
448
+ * @type {'start' | 'center' | 'end' | 'list-start'}
449
+ */
450
+ align = "data-align"
451
+ }
452
+
453
+ declare enum ContextMenuRadioGroupDataAttributes {
454
+ /**
455
+ * Identifies the component part.
456
+ * @type {'bazzaui-context-menu-radio-group'}
457
+ */
458
+ slot = "bazzaui-context-menu-radio-group",
459
+ /**
460
+ * Present when the radio group is disabled.
461
+ */
462
+ disabled = "data-disabled"
463
+ }
464
+
465
+ declare enum ContextMenuRadioItemDataAttributes {
466
+ /**
467
+ * Identifies the component part.
468
+ * @type {'bazzaui-context-menu-radio-item'}
469
+ */
470
+ slot = "bazzaui-context-menu-radio-item",
471
+ /**
472
+ * Present when the radio item is checked/selected.
473
+ */
474
+ checked = "data-checked",
475
+ /**
476
+ * Present when the radio item is unchecked.
477
+ */
478
+ unchecked = "data-unchecked",
479
+ /**
480
+ * Present when the item is highlighted (via keyboard or pointer).
481
+ */
482
+ highlighted = "data-highlighted",
483
+ /**
484
+ * Present when the item is disabled.
485
+ */
486
+ disabled = "data-disabled"
487
+ }
488
+ declare enum ContextMenuRadioItemIndicatorDataAttributes {
489
+ /**
490
+ * Identifies the component part.
491
+ * @type {'bazzaui-context-menu-radio-item-indicator'}
492
+ */
493
+ slot = "bazzaui-context-menu-radio-item-indicator",
494
+ /**
495
+ * Present when the radio item is checked/selected.
496
+ */
497
+ checked = "data-checked",
498
+ /**
499
+ * Present when the radio item is unchecked.
500
+ */
501
+ unchecked = "data-unchecked"
502
+ }
503
+
504
+ declare const ContextMenuScrollArrowDataAttributes: {
505
+ /**
506
+ * Identifies the component part for scroll up arrow.
507
+ * @type {'bazzaui-context-menu-scroll-up-arrow'}
508
+ */
509
+ readonly slotUp: "bazzaui-context-menu-scroll-up-arrow";
510
+ /**
511
+ * Identifies the component part for scroll down arrow.
512
+ * @type {'bazzaui-context-menu-scroll-down-arrow'}
513
+ */
514
+ readonly slotDown: "bazzaui-context-menu-scroll-down-arrow";
515
+ /**
516
+ * Direction of the scroll arrow.
517
+ * @type {'up' | 'down'}
518
+ */
519
+ readonly direction: "data-direction";
520
+ /**
521
+ * Side of the popup.
522
+ * @type {'top' | 'bottom' | 'left' | 'right'}
523
+ */
524
+ readonly side: "data-side";
525
+ };
526
+
527
+ declare enum ContextMenuSeparatorDataAttributes {
528
+ /**
529
+ * Identifies the component part.
530
+ * @type {'bazzaui-context-menu-separator'}
531
+ */
532
+ slot = "bazzaui-context-menu-separator"
533
+ }
534
+
535
+ declare enum ContextMenuShortcutDataAttributes {
536
+ /**
537
+ * Identifies the component part.
538
+ * @type {'bazzaui-context-menu-shortcut'}
539
+ */
540
+ slot = "bazzaui-context-menu-shortcut",
541
+ /**
542
+ * Present when the parent item is highlighted.
543
+ */
544
+ highlighted = "data-highlighted"
545
+ }
546
+
547
+ declare enum ContextMenuSubmenuTriggerDataAttributes {
548
+ /**
549
+ * Identifies the component part.
550
+ * @type {'bazzaui-context-menu-submenu-trigger'}
551
+ */
552
+ slot = "bazzaui-context-menu-submenu-trigger",
553
+ /**
554
+ * Present on submenu trigger elements.
555
+ */
556
+ submenuTrigger = "data-submenu-trigger",
557
+ /**
558
+ * Present when the submenu popup is open.
559
+ */
560
+ popupOpen = "data-popup-open",
561
+ /**
562
+ * Present when the submenu owns keyboard focus.
563
+ */
564
+ popupFocused = "data-popup-focused",
565
+ /**
566
+ * Present when the item is highlighted.
567
+ */
568
+ highlighted = "data-highlighted",
569
+ /**
570
+ * Present when the item is disabled.
571
+ */
572
+ disabled = "data-disabled"
573
+ }
574
+ declare enum ContextMenuSubmenuTriggerIndicatorDataAttributes {
575
+ /**
576
+ * Identifies the component part.
577
+ * @type {'bazzaui-context-menu-submenu-trigger-indicator'}
578
+ */
579
+ slot = "bazzaui-context-menu-submenu-trigger-indicator",
580
+ /**
581
+ * Present when the submenu popup is open.
582
+ */
583
+ popupOpen = "data-popup-open"
584
+ }
585
+
586
+ declare enum ContextMenuSubpageBackDataAttributes {
587
+ /**
588
+ * Identifies the component part.
589
+ * @type {'bazzaui-context-menu-subpage-back'}
590
+ */
591
+ slot = "bazzaui-context-menu-subpage-back",
592
+ /**
593
+ * Present when navigating back is available.
594
+ */
595
+ canGoBack = "data-can-go-back",
596
+ /**
597
+ * Present when the button is disabled.
598
+ */
599
+ disabled = "data-disabled"
600
+ }
601
+
602
+ declare enum ContextMenuSubpageBackItemDataAttributes {
603
+ /**
604
+ * Identifies the component part.
605
+ * @type {'bazzaui-context-menu-subpage-back-item'}
606
+ */
607
+ slot = "bazzaui-context-menu-subpage-back-item",
608
+ /**
609
+ * Present on subpage back item elements.
610
+ */
611
+ subpageBackItem = "data-subpage-back-item",
612
+ /**
613
+ * Present when the item is highlighted.
614
+ */
615
+ highlighted = "data-highlighted",
616
+ /**
617
+ * Present when the item is disabled.
618
+ */
619
+ disabled = "data-disabled"
620
+ }
621
+
622
+ declare enum ContextMenuSubpageTriggerDataAttributes {
623
+ /**
624
+ * Identifies the component part.
625
+ * @type {'bazzaui-context-menu-subpage-trigger'}
626
+ */
627
+ slot = "bazzaui-context-menu-subpage-trigger",
628
+ /**
629
+ * Present on subpage trigger elements.
630
+ */
631
+ subpageTrigger = "data-subpage-trigger",
632
+ /**
633
+ * Present when the target page is active.
634
+ */
635
+ popupOpen = "data-popup-open",
636
+ /**
637
+ * Present when the target page owns keyboard focus.
638
+ */
639
+ popupFocused = "data-popup-focused",
640
+ /**
641
+ * Present when the item is highlighted.
642
+ */
643
+ highlighted = "data-highlighted",
644
+ /**
645
+ * Present when the item is disabled.
646
+ */
647
+ disabled = "data-disabled"
648
+ }
649
+
650
+ declare enum ContextMenuSurfaceDataAttributes {
651
+ /**
652
+ * Identifies the component part.
653
+ * @type {'bazzaui-context-menu-surface'}
654
+ */
655
+ slot = "bazzaui-context-menu-surface"
656
+ }
657
+
658
+ export { index_parts as ContextMenu, PopupMenuArrow as ContextMenuArrow, ContextMenuArrowDataAttributes, PopupMenuBackdrop as ContextMenuBackdrop, ContextMenuBackdropDataAttributes, PopupMenuCheckboxItem as ContextMenuCheckboxItem, ContextMenuCheckboxItemDataAttributes, PopupMenuCheckboxItemIndicator as ContextMenuCheckboxItemIndicator, ContextMenuCheckboxItemIndicatorDataAttributes, PopupMenuInput as ContextMenuDataInput, PopupMenuDataList as ContextMenuDataList, PopupMenuDataSubpages as ContextMenuDataSubpages, PopupMenuDataSurface as ContextMenuDataSurface, PopupMenuEmpty as ContextMenuEmpty, ContextMenuEmptyDataAttributes, PopupMenuGroup as ContextMenuGroup, ContextMenuGroupDataAttributes, PopupMenuGroupLabel as ContextMenuGroupLabel, ContextMenuGroupLabelDataAttributes, PopupMenuIcon as ContextMenuIcon, ContextMenuIconDataAttributes, PopupMenuInput as ContextMenuInput, ContextMenuInputDataAttributes, PopupMenuItem as ContextMenuItem, ContextMenuItemDataAttributes, PopupMenuList as ContextMenuList, ContextMenuListDataAttributes, PopupMenuPopup as ContextMenuPopup, ContextMenuPopupDataAttributes, PopupMenuPortal as ContextMenuPortal, PopupMenuPositioner as ContextMenuPositioner, ContextMenuPositionerDataAttributes, PopupMenuRadioGroup as ContextMenuRadioGroup, ContextMenuRadioGroupDataAttributes, PopupMenuRadioGroupValue as ContextMenuRadioGroupValue, PopupMenuRadioItem as ContextMenuRadioItem, ContextMenuRadioItemDataAttributes, PopupMenuRadioItemIndicator as ContextMenuRadioItemIndicator, ContextMenuRadioItemIndicatorDataAttributes, ContextMenuRoot, type ContextMenuRootProps, ContextMenuScrollArrowDataAttributes, PopupMenuSeparator as ContextMenuSeparator, ContextMenuSeparatorDataAttributes, PopupMenuShortcut as ContextMenuShortcut, ContextMenuShortcutDataAttributes, PopupMenuSubmenuRoot as ContextMenuSubmenuRoot, PopupMenuSubmenuTrigger as ContextMenuSubmenuTrigger, ContextMenuSubmenuTriggerDataAttributes, PopupMenuSubmenuTriggerIndicator as ContextMenuSubmenuTriggerIndicator, ContextMenuSubmenuTriggerIndicatorDataAttributes, PopupMenuSubpage as ContextMenuSubpage, PopupMenuSubpageBack as ContextMenuSubpageBack, ContextMenuSubpageBackDataAttributes, PopupMenuSubpageBackItem as ContextMenuSubpageBackItem, ContextMenuSubpageBackItemDataAttributes, PopupMenuSubpageTrigger as ContextMenuSubpageTrigger, ContextMenuSubpageTriggerDataAttributes, PopupMenuSurface as ContextMenuSurface, ContextMenuSurfaceDataAttributes, ContextMenuTrigger, ContextMenuTriggerDataAttributes, type ContextMenuTriggerProps, type ContextMenuTriggerState, VirtualItem as ContextMenuVirtualItem, useAsyncMenuCoordinator, useMaybeAsyncMenuCoordinator };