@bazza-ui/react 0.0.0 → 0.1.0-canary.10
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.
- package/dist/ListboxStore-BYBpGrOz.d.ts +453 -0
- package/dist/ListboxStore-nmorsoqX.d.cts +453 -0
- package/dist/chunk-4C666HHU.js +2 -0
- package/dist/chunk-4C666HHU.js.map +1 -0
- package/dist/chunk-5T5B5SPR.cjs +2 -0
- package/dist/chunk-5T5B5SPR.cjs.map +1 -0
- package/dist/chunk-A4Z5BY7H.js +2 -0
- package/dist/chunk-A4Z5BY7H.js.map +1 -0
- package/dist/chunk-BFOY762U.js +2 -0
- package/dist/chunk-BFOY762U.js.map +1 -0
- package/dist/chunk-IT372NHF.js +2 -0
- package/dist/chunk-IT372NHF.js.map +1 -0
- package/dist/chunk-JFEVUUPC.cjs +2 -0
- package/dist/chunk-JFEVUUPC.cjs.map +1 -0
- package/dist/chunk-KO3DXT3Y.js +2 -0
- package/dist/chunk-KO3DXT3Y.js.map +1 -0
- package/dist/chunk-LXXK4S4Q.js +2 -0
- package/dist/chunk-LXXK4S4Q.js.map +1 -0
- package/dist/chunk-M4G6J7DP.cjs +2 -0
- package/dist/chunk-M4G6J7DP.cjs.map +1 -0
- package/dist/chunk-SCDHQZFI.cjs +2 -0
- package/dist/chunk-SCDHQZFI.cjs.map +1 -0
- package/dist/chunk-W4ACKMIZ.cjs +2 -0
- package/dist/chunk-W4ACKMIZ.cjs.map +1 -0
- package/dist/chunk-XMZZ62VJ.cjs +2 -0
- package/dist/chunk-XMZZ62VJ.cjs.map +1 -0
- package/dist/combobox/index.cjs +2 -0
- package/dist/combobox/index.cjs.map +1 -0
- package/dist/combobox/index.d.cts +1066 -0
- package/dist/combobox/index.d.ts +1066 -0
- package/dist/combobox/index.js +2 -0
- package/dist/combobox/index.js.map +1 -0
- package/dist/command-menu/index.cjs +2 -0
- package/dist/command-menu/index.cjs.map +1 -0
- package/dist/command-menu/index.d.cts +154 -0
- package/dist/command-menu/index.d.ts +154 -0
- package/dist/command-menu/index.js +2 -0
- package/dist/command-menu/index.js.map +1 -0
- package/dist/command-score-CTJ9NV6n.d.cts +23 -0
- package/dist/command-score-CTJ9NV6n.d.ts +23 -0
- package/dist/context-menu/index.cjs +2 -0
- package/dist/context-menu/index.cjs.map +1 -0
- package/dist/context-menu/index.d.cts +672 -0
- package/dist/context-menu/index.d.ts +672 -0
- package/dist/context-menu/index.js +2 -0
- package/dist/context-menu/index.js.map +1 -0
- package/dist/dropdown-menu/index.cjs +2 -0
- package/dist/dropdown-menu/index.cjs.map +1 -0
- package/dist/dropdown-menu/index.d.cts +699 -0
- package/dist/dropdown-menu/index.d.ts +699 -0
- package/dist/dropdown-menu/index.js +2 -0
- package/dist/dropdown-menu/index.js.map +1 -0
- package/dist/events-DOGItflK.d.ts +1776 -0
- package/dist/events-DPsuhBln.d.cts +1776 -0
- package/dist/input-C95v6jB0.d.cts +46 -0
- package/dist/input-CYweYB_i.d.ts +46 -0
- package/dist/internal/listbox/index.cjs +2 -0
- package/dist/internal/listbox/index.cjs.map +1 -0
- package/dist/internal/listbox/index.d.cts +272 -0
- package/dist/internal/listbox/index.d.ts +272 -0
- package/dist/internal/listbox/index.js +2 -0
- package/dist/internal/listbox/index.js.map +1 -0
- package/dist/internal/popup-menu/index.cjs +2 -0
- package/dist/internal/popup-menu/index.cjs.map +1 -0
- package/dist/internal/popup-menu/index.d.cts +238 -0
- package/dist/internal/popup-menu/index.d.ts +238 -0
- package/dist/internal/popup-menu/index.js +2 -0
- package/dist/internal/popup-menu/index.js.map +1 -0
- package/dist/items-B6HeFO_8.d.cts +37 -0
- package/dist/items-B6HeFO_8.d.ts +37 -0
- package/dist/kbd/index.cjs +2 -0
- package/dist/kbd/index.cjs.map +1 -0
- package/dist/kbd/index.d.cts +61 -0
- package/dist/kbd/index.d.ts +61 -0
- package/dist/kbd/index.js +2 -0
- package/dist/kbd/index.js.map +1 -0
- package/dist/loaders/index.cjs +2 -0
- package/dist/loaders/index.cjs.map +1 -0
- package/dist/loaders/index.d.cts +363 -0
- package/dist/loaders/index.d.ts +363 -0
- package/dist/loaders/index.js +2 -0
- package/dist/loaders/index.js.map +1 -0
- package/dist/loading-C6WZGUc3.d.cts +29 -0
- package/dist/loading-CC4n55sR.d.ts +29 -0
- package/dist/resolve-BYm41YfG.d.ts +406 -0
- package/dist/resolve-Dk_fAKb2.d.cts +406 -0
- package/dist/scroll-arrow-B81wZTZ2.d.cts +544 -0
- package/dist/scroll-arrow-CNd0tgME.d.ts +544 -0
- package/dist/select/index.cjs +2 -0
- package/dist/select/index.cjs.map +1 -0
- package/dist/select/index.d.cts +985 -0
- package/dist/select/index.d.ts +985 -0
- package/dist/select/index.js +2 -0
- package/dist/select/index.js.map +1 -0
- package/dist/separator-BiySI623.d.cts +275 -0
- package/dist/separator-De8l8DKO.d.ts +275 -0
- package/dist/surface-context-ClmxshBW.d.ts +14 -0
- package/dist/surface-context-DF-L-30G.d.cts +14 -0
- package/dist/type-guards-BC2B6bVi.d.cts +350 -0
- package/dist/type-guards-ybcHBB3C.d.ts +350 -0
- package/dist/types-DT4FOOa2.d.cts +51 -0
- package/dist/types-DT4FOOa2.d.ts +51 -0
- package/dist/use-listbox-item-NzZuY34-.d.cts +212 -0
- package/dist/use-listbox-item-NzZuY34-.d.ts +212 -0
- package/dist/video-player/index.cjs +3 -0
- package/dist/video-player/index.cjs.map +1 -0
- package/dist/video-player/index.d.cts +1391 -0
- package/dist/video-player/index.d.ts +1391 -0
- package/dist/video-player/index.js +3 -0
- package/dist/video-player/index.js.map +1 -0
- package/package.json +66 -12
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -2
|
@@ -0,0 +1,544 @@
|
|
|
1
|
+
import { aU as PopupMenuOpenChangeReason, aS as HighlightChangeEventDetails, h as GetResolvedIdFn, j as PopupMenuIdScope, r as PopupMenuNode, N as NodeDef, C as ChangeEventDetails, P as PopupMenuHighlightChangeHandler } from './events-DOGItflK.js';
|
|
2
|
+
import { b as ListboxStore, V as VirtualItem } from './ListboxStore-BYBpGrOz.js';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ReactStore } from '@base-ui/utils/store';
|
|
5
|
+
import { PopoverArrowProps, Popover, PopoverBackdropProps, PopoverPopupProps, PopoverPortalProps } from '@base-ui/react/popover';
|
|
6
|
+
import { a as ComponentRenderFn, C as ComponentProps } from './types-DT4FOOa2.js';
|
|
7
|
+
|
|
8
|
+
interface FocusOwnerState {
|
|
9
|
+
/** Which surface currently owns focus (surfaceId or null) */
|
|
10
|
+
ownerId: string | null;
|
|
11
|
+
}
|
|
12
|
+
declare const selectors$1: {
|
|
13
|
+
ownerId: (state: FocusOwnerState) => string | null;
|
|
14
|
+
isOwner: (state: FocusOwnerState, surfaceId: string) => boolean;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Tracks which menu surface owns DOM focus.
|
|
18
|
+
* Single instance per menu tree (created at root, shared via context).
|
|
19
|
+
*
|
|
20
|
+
* Used by: DropdownMenu, ContextMenu
|
|
21
|
+
* Not used by: Select, CommandMenu (single surface)
|
|
22
|
+
*/
|
|
23
|
+
declare class FocusOwnerStore extends ReactStore<FocusOwnerState, Record<string, never>, typeof selectors$1> {
|
|
24
|
+
constructor();
|
|
25
|
+
/**
|
|
26
|
+
* Set the owner surface ID.
|
|
27
|
+
* Call this when focus should transfer to a new surface.
|
|
28
|
+
*/
|
|
29
|
+
setOwnerId(id: string | null): void;
|
|
30
|
+
/**
|
|
31
|
+
* Clear the owner (set to null).
|
|
32
|
+
* Call this when the menu tree closes.
|
|
33
|
+
*/
|
|
34
|
+
clearOwner(): void;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
interface OpenChainState {
|
|
38
|
+
/**
|
|
39
|
+
* Ordered array of surface IDs for submenus that are currently open.
|
|
40
|
+
* The last element is the most recently opened (deepest in chain).
|
|
41
|
+
*/
|
|
42
|
+
chain: string[];
|
|
43
|
+
}
|
|
44
|
+
declare const selectors: {
|
|
45
|
+
isOpen: (state: OpenChainState, surfaceId: string) => boolean;
|
|
46
|
+
isLast: (state: OpenChainState, surfaceId: string) => boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Returns true if there's an open submenu below the given depth.
|
|
49
|
+
* - Root (depth 0): true if any submenu is open
|
|
50
|
+
* - Submenu at depth N: true if a deeper submenu is open
|
|
51
|
+
*/
|
|
52
|
+
hasOpenSubmenu: (state: OpenChainState, depth: number) => boolean;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Tracks which submenu surfaces are currently open in order.
|
|
56
|
+
* Used to show backdrops for all open menus in the chain.
|
|
57
|
+
* Single instance per menu tree (created at root, shared via context).
|
|
58
|
+
*
|
|
59
|
+
* Used by: DropdownMenu, ContextMenu
|
|
60
|
+
* Not used by: Select, CommandMenu (no submenus)
|
|
61
|
+
*/
|
|
62
|
+
declare class OpenChainStore extends ReactStore<OpenChainState, Record<string, never>, typeof selectors> {
|
|
63
|
+
constructor();
|
|
64
|
+
/**
|
|
65
|
+
* Mark a surface as open (adds to end of chain).
|
|
66
|
+
*/
|
|
67
|
+
open(surfaceId: string): void;
|
|
68
|
+
/**
|
|
69
|
+
* Mark a surface as closed (removes from chain).
|
|
70
|
+
*/
|
|
71
|
+
close(surfaceId: string): void;
|
|
72
|
+
/**
|
|
73
|
+
* Clear all open surfaces (menu tree closed).
|
|
74
|
+
*/
|
|
75
|
+
clear(): void;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Virtual anchor for positioning the menu at a specific point.
|
|
80
|
+
* Used by ContextMenu to position at cursor location.
|
|
81
|
+
*/
|
|
82
|
+
interface VirtualAnchor {
|
|
83
|
+
getBoundingClientRect(): DOMRect;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Virtualization configuration passed from Root/Submenu to Surface.
|
|
87
|
+
*/
|
|
88
|
+
interface VirtualizationConfig {
|
|
89
|
+
/** Whether virtualization mode is enabled */
|
|
90
|
+
virtualized: boolean;
|
|
91
|
+
/** Pre-registered items for virtualization */
|
|
92
|
+
items: VirtualItem[];
|
|
93
|
+
/**
|
|
94
|
+
* Callback when highlighted item changes (for scroll sync).
|
|
95
|
+
* The third parameter contains event details including the reason for the change.
|
|
96
|
+
*/
|
|
97
|
+
onHighlightChange?: (id: string | null, index: number, eventDetails: HighlightChangeEventDetails) => void;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Shared context value for popup menus.
|
|
101
|
+
* Both DropdownMenu.Root and ContextMenu.Root provide this context.
|
|
102
|
+
*/
|
|
103
|
+
interface PopupMenuContextValue {
|
|
104
|
+
/** The Listbox store instance */
|
|
105
|
+
store: ListboxStore;
|
|
106
|
+
/** Whether this menu tree currently ignores user interaction. */
|
|
107
|
+
disabled: boolean;
|
|
108
|
+
/** Nesting depth: 0 = root menu, 1+ = submenu */
|
|
109
|
+
depth: number;
|
|
110
|
+
/** Close the entire menu tree (deepest submenu to root, sequentially) */
|
|
111
|
+
closeAll: (reason?: PopupMenuOpenChangeReason, event?: Event) => void;
|
|
112
|
+
/**
|
|
113
|
+
* Internal: when true, Surface handles Tab explicitly (close the tree, or
|
|
114
|
+
* cycle through focus zones). Enabled only by DropdownMenu.Root and
|
|
115
|
+
* ContextMenu.Root — never Select or Combobox.
|
|
116
|
+
*/
|
|
117
|
+
explicitTabBehavior: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Internal: what Tab does under `explicitTabBehavior` when the surface (and
|
|
120
|
+
* its ancestors) have no focus-zone tabbables. `'close'` closes the whole
|
|
121
|
+
* tree (dropdown/context-menu). `'inert'` swallows the event, keeping focus
|
|
122
|
+
* where it is (command palette).
|
|
123
|
+
*/
|
|
124
|
+
tabWithoutZones: 'close' | 'inert';
|
|
125
|
+
/** Register a surface (submenu) for closeAll tracking. Returns unregister function. */
|
|
126
|
+
registerSurface: (depth: number, setOpen: (open: boolean) => void) => () => void;
|
|
127
|
+
/** Virtualization configuration (if enabled) */
|
|
128
|
+
virtualization?: VirtualizationConfig;
|
|
129
|
+
/**
|
|
130
|
+
* Virtual anchor for positioning.
|
|
131
|
+
* Used by ContextMenu to position at cursor location.
|
|
132
|
+
* DropdownMenu uses the Popover's anchor (trigger button) instead.
|
|
133
|
+
*/
|
|
134
|
+
virtualAnchor?: VirtualAnchor;
|
|
135
|
+
/**
|
|
136
|
+
* Type of menu for positioning logic.
|
|
137
|
+
* - 'dropdown': positions relative to trigger button
|
|
138
|
+
* - 'context': positions at cursor with fixed positioning
|
|
139
|
+
*/
|
|
140
|
+
menuType: 'dropdown' | 'context';
|
|
141
|
+
/**
|
|
142
|
+
* When to close the menu on outside interactions.
|
|
143
|
+
* - 'pointerdown': Close immediately when pointer is pressed outside (default)
|
|
144
|
+
* - 'click': Close when a full click (pointerdown + pointerup) occurs outside
|
|
145
|
+
* @default 'pointerdown'
|
|
146
|
+
*/
|
|
147
|
+
closeOnOutsidePress: 'click' | 'pointerdown';
|
|
148
|
+
}
|
|
149
|
+
declare const PopupMenuContext: React.Context<PopupMenuContextValue | null>;
|
|
150
|
+
/**
|
|
151
|
+
* Hook to access the popup menu context.
|
|
152
|
+
* Throws if used outside a popup menu.
|
|
153
|
+
*/
|
|
154
|
+
declare function usePopupMenuContext(): PopupMenuContextValue;
|
|
155
|
+
/**
|
|
156
|
+
* Hook to optionally access the popup menu context.
|
|
157
|
+
* Returns null if used outside a popup menu.
|
|
158
|
+
*/
|
|
159
|
+
declare function useMaybePopupMenuContext(): PopupMenuContextValue | null;
|
|
160
|
+
|
|
161
|
+
interface PopupMenuSafeTriangleAreaDebugOptions {
|
|
162
|
+
enabled?: boolean;
|
|
163
|
+
idleColor?: string;
|
|
164
|
+
successColor?: string;
|
|
165
|
+
missColor?: string;
|
|
166
|
+
triangleFillOpacity?: number;
|
|
167
|
+
overlayOpacity?: number;
|
|
168
|
+
showStroke?: boolean;
|
|
169
|
+
strokeWidth?: number;
|
|
170
|
+
strokeDasharray?: string;
|
|
171
|
+
showDots?: boolean;
|
|
172
|
+
dotRadius?: number;
|
|
173
|
+
freezeOnPointerLeave?: boolean;
|
|
174
|
+
persistOnSuccess?: boolean;
|
|
175
|
+
showMissState?: boolean;
|
|
176
|
+
missFreezeDuration?: number;
|
|
177
|
+
}
|
|
178
|
+
type PopupMenuSafeTriangleAreaDebugConfig = boolean | PopupMenuSafeTriangleAreaDebugOptions;
|
|
179
|
+
/**
|
|
180
|
+
* Debug configuration available on popup-menu roots.
|
|
181
|
+
*/
|
|
182
|
+
interface PopupMenuDebugOptions {
|
|
183
|
+
/**
|
|
184
|
+
* Shows/configures the safe triangle area used by submenu aim guard.
|
|
185
|
+
* @default false
|
|
186
|
+
*/
|
|
187
|
+
showSafeTriangleArea?: PopupMenuSafeTriangleAreaDebugConfig;
|
|
188
|
+
/**
|
|
189
|
+
* @deprecated Use `showSafeTriangleArea` instead.
|
|
190
|
+
*/
|
|
191
|
+
showSubmenuSafeTriangleArea?: boolean;
|
|
192
|
+
/**
|
|
193
|
+
* Enables console logging for aim-guard diagnostics.
|
|
194
|
+
* @default false
|
|
195
|
+
*/
|
|
196
|
+
logAimGuardEvents?: boolean;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Owns the single resolved node tree for one menu root. Content may be
|
|
201
|
+
* re-supplied at any time (`setContent`) and late defs may be grafted under
|
|
202
|
+
* an already-resolved parent (`graft`); both reconcile by id with a
|
|
203
|
+
* reference fast path, so node instances are stable and repeat calls with
|
|
204
|
+
* identical arguments are no-ops.
|
|
205
|
+
*/
|
|
206
|
+
interface MenuTreeResolver {
|
|
207
|
+
/** The Resolved ID seam this resolver was created with. */
|
|
208
|
+
readonly getResolvedId: GetResolvedIdFn;
|
|
209
|
+
/** Definition Key uniqueness policy, captured when this resolver is created. */
|
|
210
|
+
readonly idScope: PopupMenuIdScope;
|
|
211
|
+
/** Current root nodes, in def order. */
|
|
212
|
+
readonly rootNodes: readonly PopupMenuNode[];
|
|
213
|
+
/** Re-supply the root def list and reconcile the whole tree. */
|
|
214
|
+
setContent(defs: readonly NodeDef[]): void;
|
|
215
|
+
/**
|
|
216
|
+
* Resolve `defs` under `parent` (the graft point) and reconcile them
|
|
217
|
+
* against `parent.children`. `defs` is the parent's full child list
|
|
218
|
+
* from the graft source's perspective (static + late defs).
|
|
219
|
+
*/
|
|
220
|
+
graft(parent: PopupMenuNode, defs: readonly NodeDef[]): void;
|
|
221
|
+
/** Node whose current `def` is reference-equal to `def`, if any. */
|
|
222
|
+
getNodeForDef<D extends NodeDef>(def: D): PopupMenuNode<D> | undefined;
|
|
223
|
+
/** First registration wins; best-effort when ids collide. */
|
|
224
|
+
getNodeById(id: string): PopupMenuNode | undefined;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
interface UsePopupMenuRootParams {
|
|
228
|
+
/**
|
|
229
|
+
* Computes canonical Resolved IDs for data-first content from the Unresolved Menu Node (definitional facts only).
|
|
230
|
+
* @default explicit `def.id` verbatim, else the joined definition path
|
|
231
|
+
* Read once when the menu root mounts — later changes have no effect.
|
|
232
|
+
*/
|
|
233
|
+
getResolvedId?: GetResolvedIdFn;
|
|
234
|
+
/** Definition Key uniqueness scope. Read once when the menu root mounts. */
|
|
235
|
+
idScope?: PopupMenuIdScope;
|
|
236
|
+
/**
|
|
237
|
+
* Callback when the open state changes.
|
|
238
|
+
* The second parameter contains event details including the reason for the change.
|
|
239
|
+
*/
|
|
240
|
+
onOpenChange?: (open: boolean, eventDetails: ChangeEventDetails<string>) => void;
|
|
241
|
+
/**
|
|
242
|
+
* Whether the menu is initially open.
|
|
243
|
+
* @default false
|
|
244
|
+
*/
|
|
245
|
+
defaultOpen?: boolean;
|
|
246
|
+
/**
|
|
247
|
+
* Whether virtualization mode is enabled.
|
|
248
|
+
* @default false
|
|
249
|
+
*/
|
|
250
|
+
virtualized?: boolean;
|
|
251
|
+
/**
|
|
252
|
+
* Pre-registered items for virtualization.
|
|
253
|
+
*/
|
|
254
|
+
items?: VirtualItem[];
|
|
255
|
+
/**
|
|
256
|
+
* Callback when the highlighted item changes. `id` is first; `node` is the
|
|
257
|
+
* resolved menu node enrichment and may be null.
|
|
258
|
+
* The fourth parameter contains event details including the reason for the change.
|
|
259
|
+
*/
|
|
260
|
+
onHighlightChange?: PopupMenuHighlightChangeHandler<HighlightChangeEventDetails>;
|
|
261
|
+
/**
|
|
262
|
+
* When to close the menu on outside interactions.
|
|
263
|
+
* - 'pointerdown': Close immediately when pointer is pressed outside (default)
|
|
264
|
+
* - 'click': Close when a full click (pointerdown + pointerup) occurs outside
|
|
265
|
+
* @default 'pointerdown'
|
|
266
|
+
*/
|
|
267
|
+
closeOnOutsidePress?: 'click' | 'pointerdown';
|
|
268
|
+
/**
|
|
269
|
+
* Whether the menu should ignore user interaction.
|
|
270
|
+
* Can be controlled declaratively via this prop, or imperatively via actionsRef.setDisabled().
|
|
271
|
+
* @default false
|
|
272
|
+
*/
|
|
273
|
+
disabled?: boolean;
|
|
274
|
+
/**
|
|
275
|
+
* Initial disabled state for imperative usage.
|
|
276
|
+
* Ignored when `disabled` prop is true.
|
|
277
|
+
* @default false
|
|
278
|
+
*/
|
|
279
|
+
defaultDisabled?: boolean;
|
|
280
|
+
}
|
|
281
|
+
interface PopupMenuRootActions {
|
|
282
|
+
/** Close the menu tree imperatively. */
|
|
283
|
+
close: () => void;
|
|
284
|
+
/** Unmount the popup imperatively (when keep-mounted mode is enabled). */
|
|
285
|
+
unmount: () => void;
|
|
286
|
+
/** Enable/disable the menu tree imperatively. */
|
|
287
|
+
setDisabled: (disabled: boolean) => void;
|
|
288
|
+
}
|
|
289
|
+
interface UsePopupMenuRootReturn {
|
|
290
|
+
/** The menu-tree resolver for this menu root. */
|
|
291
|
+
menuTreeResolver: MenuTreeResolver;
|
|
292
|
+
/** The Listbox store instance */
|
|
293
|
+
store: ListboxStore;
|
|
294
|
+
/** The FocusOwner store instance */
|
|
295
|
+
focusOwnerStore: FocusOwnerStore;
|
|
296
|
+
/** The OpenChain store instance */
|
|
297
|
+
openChainStore: OpenChainStore;
|
|
298
|
+
/** Register a surface (submenu) for closeAll tracking */
|
|
299
|
+
registerSurface: (depth: number, setOpen: (open: boolean) => void) => () => void;
|
|
300
|
+
/** Close the entire menu tree */
|
|
301
|
+
closeAll: (reason?: PopupMenuOpenChangeReason, event?: Event) => void;
|
|
302
|
+
/** Virtualization configuration (if enabled) */
|
|
303
|
+
virtualization: VirtualizationConfig | undefined;
|
|
304
|
+
/** Handle open state change (updates store and clears stores on close) */
|
|
305
|
+
handleOpenChange: (open: boolean, reason?: PopupMenuOpenChangeReason, event?: Event) => void;
|
|
306
|
+
/** Whether the menu currently ignores user interaction. */
|
|
307
|
+
disabled: boolean;
|
|
308
|
+
/** Update imperative disabled state. */
|
|
309
|
+
setDisabled: (disabled: boolean) => void;
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Hook that creates and manages the core stores and utilities for popup menus.
|
|
313
|
+
* Used by both DropdownMenu.Root and ContextMenu.Root.
|
|
314
|
+
*
|
|
315
|
+
* Provides:
|
|
316
|
+
* - ListboxStore for item management
|
|
317
|
+
* - FocusOwnerStore for focus tracking across submenus
|
|
318
|
+
* - OpenChainStore for tracking open submenu chain
|
|
319
|
+
* - Surface registry for closeAll functionality
|
|
320
|
+
*/
|
|
321
|
+
declare function usePopupMenuRoot(params?: UsePopupMenuRootParams): UsePopupMenuRootReturn;
|
|
322
|
+
|
|
323
|
+
interface PopupMenuArrowProps extends PopoverArrowProps {
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* An optional arrow element to render alongside the popup menu.
|
|
327
|
+
* This can be used to help visually link the trigger with the popup.
|
|
328
|
+
* Must be rendered inside `Popup`.
|
|
329
|
+
* Renders a `<div>` element.
|
|
330
|
+
*/
|
|
331
|
+
declare const PopupMenuArrow: React.ForwardRefExoticComponent<Omit<PopupMenuArrowProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
332
|
+
declare namespace PopupMenuArrow {
|
|
333
|
+
type Props = PopupMenuArrowProps;
|
|
334
|
+
type State = Popover.Arrow.State;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
interface PopupMenuBackdropProps extends PopoverBackdropProps {
|
|
338
|
+
/**
|
|
339
|
+
* Controls when the backdrop becomes visible for submenus.
|
|
340
|
+
* - `"focus"`: Show when the submenu becomes the focus owner (prevents flicker on hover).
|
|
341
|
+
* If a deeper submenu is open, the backdrop remains visible.
|
|
342
|
+
* - `"open"`: Show as soon as the submenu opens, regardless of focus.
|
|
343
|
+
*
|
|
344
|
+
* @default "focus" for submenus, "open" for root menu
|
|
345
|
+
*/
|
|
346
|
+
showOn?: 'focus' | 'open';
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* An overlay displayed beneath the popup menu.
|
|
350
|
+
*
|
|
351
|
+
* For submenus with `showOn="focus"` (default), the backdrop visibility follows these rules:
|
|
352
|
+
* - If this submenu is at the end of the open chain (deepest), it must be
|
|
353
|
+
* the focus owner to show the backdrop (prevents flicker on hover)
|
|
354
|
+
* - If this submenu is in the chain but not at the end (has a deeper submenu open),
|
|
355
|
+
* the backdrop remains visible
|
|
356
|
+
*
|
|
357
|
+
* With `showOn="open"`, the backdrop shows as soon as the submenu opens.
|
|
358
|
+
*
|
|
359
|
+
* Renders a `<div>` element with `pointer-events: none`.
|
|
360
|
+
*/
|
|
361
|
+
declare const PopupMenuBackdrop: React.ForwardRefExoticComponent<Omit<PopupMenuBackdropProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
362
|
+
declare namespace PopupMenuBackdrop {
|
|
363
|
+
type Props = PopupMenuBackdropProps;
|
|
364
|
+
type State = Popover.Backdrop.State;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
interface PopupMenuPopupState extends Popover.Popup.State {
|
|
368
|
+
/**
|
|
369
|
+
* Whether this popup is a submenu (not the root menu).
|
|
370
|
+
*/
|
|
371
|
+
isSubmenu: boolean;
|
|
372
|
+
/**
|
|
373
|
+
* Whether any non-root subpage is currently open.
|
|
374
|
+
*/
|
|
375
|
+
hasOpenSubpage: boolean;
|
|
376
|
+
/**
|
|
377
|
+
* Active subpage ID, or null when the root surface is active.
|
|
378
|
+
*/
|
|
379
|
+
subpageId: string | null;
|
|
380
|
+
/**
|
|
381
|
+
* Ordered stack of open non-root subpage IDs.
|
|
382
|
+
* For nested subpages this includes each page in open order.
|
|
383
|
+
*/
|
|
384
|
+
openSubpageIds: string[];
|
|
385
|
+
}
|
|
386
|
+
interface PopupMenuPopupProps extends Omit<PopoverPopupProps, 'className' | 'render'> {
|
|
387
|
+
/**
|
|
388
|
+
* CSS class applied to the element, or a function that
|
|
389
|
+
* returns a class based on the component's state.
|
|
390
|
+
*/
|
|
391
|
+
className?: string | ((state: PopupMenuPopupState) => string);
|
|
392
|
+
/**
|
|
393
|
+
* Allows replacing the popup element with a custom element.
|
|
394
|
+
* The render state includes popup + subpage navigation state.
|
|
395
|
+
*/
|
|
396
|
+
render?: React.ReactElement | ComponentRenderFn<React.HTMLAttributes<HTMLElement>, PopupMenuPopupState>;
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* A container for the popup menu contents.
|
|
400
|
+
* Wraps Popover.Popup with:
|
|
401
|
+
* - Aim guard clearing when pointer enters submenu
|
|
402
|
+
* - Focus ownership transfer when pointer enters submenu
|
|
403
|
+
* - Auto-focus disabled for submenus (focus managed by FocusOwner system)
|
|
404
|
+
*
|
|
405
|
+
* Renders a `<div>` element.
|
|
406
|
+
*/
|
|
407
|
+
declare const PopupMenuPopup: React.ForwardRefExoticComponent<Omit<PopupMenuPopupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
408
|
+
declare namespace PopupMenuPopup {
|
|
409
|
+
type Props = PopupMenuPopupProps;
|
|
410
|
+
type State = PopupMenuPopupState;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
interface PopupMenuPortalProps extends PopoverPortalProps {
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* A portal element that moves the popup to a different part of the DOM.
|
|
417
|
+
* By default, the portal element is appended to `<body>`.
|
|
418
|
+
*/
|
|
419
|
+
declare const PopupMenuPortal: React.ForwardRefExoticComponent<Omit<PopoverPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
420
|
+
declare namespace PopupMenuPortal {
|
|
421
|
+
type Props = PopoverPortalProps;
|
|
422
|
+
type State = Popover.Portal.State;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
declare enum PopupMenuPositionerCssVars {
|
|
426
|
+
/**
|
|
427
|
+
* The available width between the trigger and the edge of the viewport.
|
|
428
|
+
* @type {number}
|
|
429
|
+
*/
|
|
430
|
+
availableWidth = "--available-width",
|
|
431
|
+
/**
|
|
432
|
+
* The available height between the trigger and the edge of the viewport.
|
|
433
|
+
* @type {number}
|
|
434
|
+
*/
|
|
435
|
+
availableHeight = "--available-height",
|
|
436
|
+
/**
|
|
437
|
+
* The anchor's width.
|
|
438
|
+
* @type {number}
|
|
439
|
+
*/
|
|
440
|
+
anchorWidth = "--anchor-width",
|
|
441
|
+
/**
|
|
442
|
+
* The anchor's height.
|
|
443
|
+
* @type {number}
|
|
444
|
+
*/
|
|
445
|
+
anchorHeight = "--anchor-height",
|
|
446
|
+
/**
|
|
447
|
+
* The coordinates that this element is anchored to. Used for animations and transitions.
|
|
448
|
+
* @type {string}
|
|
449
|
+
*/
|
|
450
|
+
transformOrigin = "--transform-origin",
|
|
451
|
+
/**
|
|
452
|
+
* The width of the positioner element.
|
|
453
|
+
* @type {number}
|
|
454
|
+
*/
|
|
455
|
+
positionerWidth = "--positioner-width",
|
|
456
|
+
/**
|
|
457
|
+
* The height of the positioner element.
|
|
458
|
+
* @type {number}
|
|
459
|
+
*/
|
|
460
|
+
positionerHeight = "--positioner-height"
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* CSS custom properties applied to the List component.
|
|
465
|
+
*/
|
|
466
|
+
declare enum PopupMenuListCssVars {
|
|
467
|
+
/**
|
|
468
|
+
* The maximum measured row width.
|
|
469
|
+
* Applied when `measureRowWidth` is true.
|
|
470
|
+
* Useful for keeping virtualized lists at a consistent width.
|
|
471
|
+
* @type {number}
|
|
472
|
+
*/
|
|
473
|
+
rowWidth = "--row-width"
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
type Direction = 'up' | 'down';
|
|
477
|
+
interface PopupMenuScrollArrowState extends Record<string, unknown> {
|
|
478
|
+
/**
|
|
479
|
+
* The scroll direction this arrow controls.
|
|
480
|
+
*/
|
|
481
|
+
direction: Direction;
|
|
482
|
+
/**
|
|
483
|
+
* Whether there is content to scroll in this direction.
|
|
484
|
+
*/
|
|
485
|
+
visible: boolean;
|
|
486
|
+
}
|
|
487
|
+
interface PopupMenuScrollArrowProps extends ComponentProps<'div', PopupMenuScrollArrow.State> {
|
|
488
|
+
/**
|
|
489
|
+
* The direction to scroll when hovering over this arrow.
|
|
490
|
+
*/
|
|
491
|
+
direction: Direction;
|
|
492
|
+
/**
|
|
493
|
+
* Whether to keep the element mounted when there's nothing to scroll.
|
|
494
|
+
* When false (default), the element is not rendered.
|
|
495
|
+
* When true, the element is rendered but can be styled via `data-visible="false"`.
|
|
496
|
+
* @default false
|
|
497
|
+
*/
|
|
498
|
+
keepMounted?: boolean;
|
|
499
|
+
/**
|
|
500
|
+
* Scroll speed in pixels per frame.
|
|
501
|
+
* @default 10
|
|
502
|
+
*/
|
|
503
|
+
scrollSpeed?: number;
|
|
504
|
+
}
|
|
505
|
+
/**
|
|
506
|
+
* Base scroll arrow component used by ScrollUpArrow and ScrollDownArrow.
|
|
507
|
+
* Shows when there is content to scroll in the specified direction.
|
|
508
|
+
* Scrolls the list continuously while pointer is over it.
|
|
509
|
+
* Renders a `<div>` element.
|
|
510
|
+
*/
|
|
511
|
+
declare const PopupMenuScrollArrow: React.ForwardRefExoticComponent<Omit<PopupMenuScrollArrow.Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
512
|
+
declare namespace PopupMenuScrollArrow {
|
|
513
|
+
type State = PopupMenuScrollArrowState;
|
|
514
|
+
interface Props extends PopupMenuScrollArrowProps {
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
interface PopupMenuScrollUpArrowProps extends Omit<PopupMenuScrollArrowProps, 'direction'> {
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* A scroll indicator that appears when there's content above.
|
|
521
|
+
* Scrolls the list up continuously while pointer is over it.
|
|
522
|
+
* Renders a `<div>` element.
|
|
523
|
+
*/
|
|
524
|
+
declare const PopupMenuScrollUpArrow: React.ForwardRefExoticComponent<Omit<PopupMenuScrollUpArrow.Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
525
|
+
declare namespace PopupMenuScrollUpArrow {
|
|
526
|
+
type State = PopupMenuScrollArrowState;
|
|
527
|
+
interface Props extends PopupMenuScrollUpArrowProps {
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
interface PopupMenuScrollDownArrowProps extends Omit<PopupMenuScrollArrowProps, 'direction'> {
|
|
531
|
+
}
|
|
532
|
+
/**
|
|
533
|
+
* A scroll indicator that appears when there's content below.
|
|
534
|
+
* Scrolls the list down continuously while pointer is over it.
|
|
535
|
+
* Renders a `<div>` element.
|
|
536
|
+
*/
|
|
537
|
+
declare const PopupMenuScrollDownArrow: React.ForwardRefExoticComponent<Omit<PopupMenuScrollDownArrow.Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
538
|
+
declare namespace PopupMenuScrollDownArrow {
|
|
539
|
+
type State = PopupMenuScrollArrowState;
|
|
540
|
+
interface Props extends PopupMenuScrollDownArrowProps {
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
export { FocusOwnerStore as F, type MenuTreeResolver as M, OpenChainStore as O, type PopupMenuDebugOptions as P, type UsePopupMenuRootParams as U, type VirtualizationConfig as V, type PopupMenuRootActions as a, PopupMenuArrow as b, PopupMenuBackdrop as c, PopupMenuPopup as d, PopupMenuPortal as e, PopupMenuScrollDownArrow as f, PopupMenuScrollUpArrow as g, type PopupMenuArrowProps as h, type PopupMenuBackdropProps as i, type PopupMenuPopupProps as j, type PopupMenuPortalProps as k, type PopupMenuScrollArrowProps as l, type PopupMenuScrollArrowState as m, type PopupMenuScrollDownArrowProps as n, type PopupMenuScrollUpArrowProps as o, PopupMenuListCssVars as p, PopupMenuPositionerCssVars as q, type PopupMenuContextValue as r, usePopupMenuContext as s, type PopupMenuPopupState as t, useMaybePopupMenuContext as u, type VirtualAnchor as v, PopupMenuContext as w, usePopupMenuRoot as x };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkSCDHQZFIcjs = require('../chunk-SCDHQZFI.cjs');var _chunk5T5B5SPRcjs = require('../chunk-5T5B5SPR.cjs');var _chunkW4ACKMIZcjs = require('../chunk-W4ACKMIZ.cjs');var _chunkXMZZ62VJcjs = require('../chunk-XMZZ62VJ.cjs');var _chunkM4G6J7DPcjs = require('../chunk-M4G6J7DP.cjs');var Nt={};_chunkM4G6J7DPcjs.a.call(void 0, Nt,{Arrow:()=>_chunkW4ACKMIZcjs.s,Backdrop:()=>_chunkW4ACKMIZcjs.t,Empty:()=>_chunkW4ACKMIZcjs.U,Group:()=>_chunkW4ACKMIZcjs.pa,GroupLabel:()=>_chunkW4ACKMIZcjs.W,Icon:()=>_chunkW4ACKMIZcjs.T,Input:()=>_chunkW4ACKMIZcjs.V,Item:()=>ze,ItemIndicator:()=>Ge,ItemLabel:()=>Fe,List:()=>_chunkW4ACKMIZcjs.ba,Popup:()=>je,Portal:()=>_chunkW4ACKMIZcjs.K,Positioner:()=>Ye,Root:()=>Xe,ScrollDownArrow:()=>_chunkW4ACKMIZcjs.ea,ScrollUpArrow:()=>_chunkW4ACKMIZcjs.da,Separator:()=>_chunkW4ACKMIZcjs.sa,Surface:()=>$e,Trigger:()=>Ke,Value:()=>Je});var _userender = require('@base-ui/react/use-render');var _react = require('react'); var E = _interopRequireWildcard(_react); var Ie = _interopRequireWildcard(_react); var Ce = _interopRequireWildcard(_react); var Ae = _interopRequireWildcard(_react); var j = _interopRequireWildcard(_react); var ce = _interopRequireWildcard(_react); var Oe = _interopRequireWildcard(_react); var C = _interopRequireWildcard(_react); var I = _interopRequireWildcard(_react); var De = _interopRequireWildcard(_react); var G = _interopRequireWildcard(_react); var ae = _interopRequireWildcard(_react);var Le=Ie.createContext(null);function O(){let e=Ie.useContext(Le);if(!e)throw new Error("Select components must be used within a Select.Root");return e}function so(){return Ie.useContext(Le)}var $={slot:"bazzaui-select-item",highlighted:"data-highlighted",disabled:"data-disabled",selected:"data-selected",first:"data-first",last:"data-last",firstInGroup:"data-first-in-group",lastInGroup:"data-last-in-group"};var ke=Ce.createContext(null);function Te(){let e=Ce.useContext(ke);if(!e)throw new Error("Select.Item child components must be used within a Select.Item");return e}function uo(){return Ce.useContext(ke)}var _jsxruntime = require('react/jsx-runtime');var po={highlighted:e=>e?{[$.highlighted]:""}:null,disabled:e=>e?{[$.disabled]:""}:null,selected:e=>e?{[$.selected]:""}:null,first:e=>e?{[$.first]:""}:null,last:e=>e?{[$.last]:""}:null,firstInGroup:e=>e?{[$.firstInGroup]:""}:null,lastInGroup:e=>e?{[$.lastInGroup]:""}:null};function mo(e,n){let{value:t,textValue:l,keywords:s,disabled:r=!1,onSelect:c,forceMount:b=!1,render:o,className:a,style:P,onClick:d,onPointerDown:m,onPointerMove:R,children:u,...i}=e,p=O(),g=E.useMemo(()=>_chunkW4ACKMIZcjs.S.call(void 0, t,p.itemToStringValue),[t,p.itemToStringValue]),M=E.useId(),L=t===null?`select-clear-${M}`:void 0,h=E.useMemo(()=>_chunk5T5B5SPRcjs.e.call(void 0, p.items,g),[p.items,g]),V=_optionalChain([h, 'optionalAccess', _2 => _2.label]),w=E.useMemo(()=>_chunkW4ACKMIZcjs.R.call(void 0, t,p.itemToStringLabel),[t,p.itemToStringLabel]),v=E.useMemo(()=>{if(l!==void 0)return l;if(typeof V=="string")return V;if(w&&w!==g)return w},[l,V,w,g]),ee=E.useMemo(()=>_chunk5T5B5SPRcjs.g.call(void 0, s,[typeof V=="string"?V:w&&w!==g?w:void 0,..._nullishCoalesce(_optionalChain([h, 'optionalAccess', _3 => _3.keywords]), () => ([]))]),[s,V,w,g,h]),k=E.useRef(v),A=p.multiple?_chunk5T5B5SPRcjs.c.call(void 0, p.values,t,p.isItemEqualToValue):p.value!==""&&_chunk5T5B5SPRcjs.b.call(void 0, p.value,t,p.isItemEqualToValue),ie=!p.multiple,S=_chunkW4ACKMIZcjs.O.call(void 0, {id:L,value:g,keywords:ee,disabled:r,forceMount:b,closeOnClick:ie,children:u});E.useEffect(()=>{let T=()=>{if(!r){if(p.multiple)if(t==null)p.onValuesChange([]);else{let te=A?_chunk5T5B5SPRcjs.d.call(void 0, p.values,t,p.isItemEqualToValue):[...p.values,t];p.onValuesChange(te)}else p.onValueChange(t);_optionalChain([c, 'optionalCall', _4 => _4()])}};return S.registerSelect(T)},[r,p,t,A,c,S]),E.useEffect(()=>{let T=k.current;if(T)return p.registerItemText(g,T)},[g,p]),E.useEffect(()=>{!v&&typeof u=="string"&&(k.current=u,p.registerItemText(g,u))},[u,v,g,p]);let F=E.useMemo(()=>({highlighted:S.isHighlighted,disabled:r,selected:A,first:S.positional.first,last:S.positional.last,firstInGroup:S.positional.firstInGroup,lastInGroup:S.positional.lastInGroup}),[S.isHighlighted,r,A,S.positional]),J=E.useMemo(()=>({id:S.id,value:t,textValue:v,highlighted:S.isHighlighted,disabled:r,selected:A}),[S.id,t,v,S.isHighlighted,r,A]),B=E.useCallback(T=>{_optionalChain([d, 'optionalCall', _5 => _5(T)]),T.defaultPrevented||S.handlers.onClick(T)},[d,S.handlers]),W=E.useCallback(T=>{S.handlers.onPointerDown(T),_optionalChain([m, 'optionalCall', _6 => _6(T)])},[S.handlers,m]),_=E.useCallback(T=>{_optionalChain([R, 'optionalCall', _7 => _7(T)]),T.defaultPrevented||S.handlers.onPointerMove(T)},[R,S.handlers]),q=_userender.useRender.call(void 0, {render:o,ref:[S.ref,S.rowRef,n],state:F,stateAttributesMapping:po,props:{...i,[$.slot]:"",id:S.id,role:"option",tabIndex:-1,"aria-selected":A,"aria-disabled":r||void 0,className:a,style:P,onClick:B,onPointerMove:_,onPointerDown:W,children:u},enabled:S.isVisible,defaultTagName:"div"});return S.isVisible?_jsxruntime.jsx.call(void 0, ke.Provider,{value:J,children:q}):null}var ze=E.forwardRef(mo);var Me={slot:"bazzaui-select-item-indicator",selected:"data-selected",highlighted:"data-highlighted"};var So={selected:e=>e?{[Me.selected]:""}:null,highlighted:e=>e?{[Me.highlighted]:""}:null},Ge= exports.SelectItemIndicator =Ae.forwardRef(function(n,t){let{render:l,className:s,style:r,forceMount:c=!1,keepMounted:b=!1,children:o,...a}=n,P=Te(),d=P.selected,m=P.highlighted,R=Ae.useMemo(()=>({selected:d,highlighted:m}),[d,m]),u=c||b||d,i=typeof o=="function"?o(R):b&&!d?null:o,p=_userender.useRender.call(void 0, {render:l,ref:t,state:R,stateAttributesMapping:So,props:{...a,[Me.slot]:"","aria-hidden":!0,className:s,style:r,children:i},defaultTagName:"span"});return u?p:null});var Mt={slot:"bazzaui-select-item-label"};var Fe=j.forwardRef(function(n,t){let{render:l,className:s,style:r,children:c,...b}=n,o=O(),a=Te(),P=j.useRef(null),d=_chunkW4ACKMIZcjs.S.call(void 0, a.value,o.itemToStringValue),m=j.useMemo(()=>{if(c!==void 0)return c;let i=_chunk5T5B5SPRcjs.f.call(void 0, o.items,d);return i!==void 0?i:a.textValue!==void 0?a.textValue:d},[c,o.items,d,a.textValue]),R=j.useMemo(()=>({value:d,selected:a.selected,highlighted:a.highlighted,disabled:a.disabled}),[d,a.selected,a.highlighted,a.disabled]);j.useEffect(()=>{if(typeof m=="string")return o.registerItemText(d,m)},[m,o,d]);let u=j.useCallback(i=>{P.current=i,a.selected&&i&&(o.selectedItemTextRef.current=i),i&&!a.disabled&&(o.firstItemTextRef.current||(o.firstItemTextRef.current=i))},[a.selected,a.disabled,o]);return _userender.useRender.call(void 0, {render:l,ref:t,state:R,props:{...b,[Mt.slot]:"",ref:u,className:s,style:r,children:m},defaultTagName:"span"})});var Be=Oe.createContext(null);function Ve(){return Oe.useContext(Be)}var je=ce.forwardRef(function(n,t){let{className:l,render:s,...r}=n,c=Ve(),b=_nullishCoalesce(_optionalChain([c, 'optionalAccess', _8 => _8.alignItemWithTriggerActive]), () => (!1)),o=_optionalChain([c, 'optionalAccess', _9 => _9.align]),a=ce.useCallback(m=>({...m,side:b?"none":m.side,alignItemWithTriggerActive:b}),[b]),P=ce.useMemo(()=>typeof l=="function"?m=>l(a(m)):l,[l,a]),d=ce.useMemo(()=>typeof s=="function"?(m,R)=>s(m,a(R)):s,[s,a]);return _jsxruntime.jsx.call(void 0, _chunkW4ACKMIZcjs.J,{ref:t,className:P,render:d,"data-align-item-with-trigger":b?"":void 0,...b?{"data-side":"none","data-align":o}:{},...r})});var _directioncontext = require('@base-ui/react/internals/direction-context');var _popover = require('@base-ui/react/popover');function pe(e,n,t){return e<n?n:e>t?t:e}function We(e){let n=e.getBoundingClientRect(),{offsetWidth:t,offsetHeight:l}=e,s=t>0?Math.round(n.width)/t:1,r=l>0?Math.round(n.height)/l:1;return(!Number.isFinite(s)||s===0)&&(s=1),(!Number.isFinite(r)||r===0)&&(r=1),{x:s,y:r}}function Vt(e,n,t){return e/t[n]}function ve(e,n){let t=e.x/n.x,l=e.y/n.y,s=e.width/n.x,r=e.height/n.y;return{x:t,y:l,width:s,height:r,top:l,left:t,right:t+s,bottom:l+r}}var K=1;function ge(e,n){return Math.max(0,e-n)}var vt=5,yt=20,_e=10,Et=100;function wt(e){let{triggerRect:n,positionerRect:t,valueRect:l,textRect:s,scrollHeight:r,documentClientHeight:c,documentClientWidth:b,marginTop:o,marginBottom:a,minHeight:P,maxPopupHeight:d,borderBottom:m,direction:R}=e,u=()=>({fallback:!0,left:0,isTopPositioned:!1,top:0,height:0,scrollTop:0,marginTop:o,marginBottom:a,reachedMaxHeight:!1,transformOrigin:null}),i=c-o-a,p=b,g=n.height,M=i-n.bottom+g,L=R==="rtl"?n.right-t.width:n.left,h=0,V=null;if(s&&l){L=t.left+(R==="rtl"?l.right-s.right:l.left-s.left);let U=l.top-n.top+l.height/2;h=s.top-t.top+s.height/2-U,V=s.top+s.height/2}let w=M+h+a+m,v=Math.min(i,w),ee=i-o-a,k=w-v,A=p-vt,ie=pe(L,vt,A-t.width),S=ge(r,v),F=k>=S-K;if(F&&(v=Math.min(i,t.height)-(k-S)),n.top<yt||n.bottom>i-yt||Math.ceil(v)+K<Math.min(r,P))return u();let B=Math.max(P,v),W=a+m-o,_=0,q=k;if(F){let U=Math.max(0,i-w);_=t.height>=ee?0:Math.max(0,U+W),q=S}else q=Math.max(0,k-W);let T=null;if(V!=null){let U=t.top,Z=t.height,f=Z>0?(V-U)/Z*100:50;T=`50% ${pe(f,0,100)}%`}let te=B===i||v>=d;return{fallback:!1,left:ie,isTopPositioned:F,top:_,height:v,scrollTop:q,marginTop:o,marginBottom:a,reachedMaxHeight:te,transformOrigin:T}}function Ht(e){let{isTopPositioned:n,currentHeight:t,scrollTop:l,maxScrollTop:s,maxAvailableHeight:r}=e,c=n?s-l:l;if(c<=K){let d=pe(c,0,r-t),m=t+d;return{height:d>0?m:null,scroll:{kind:"set",value:n?s:0},reachedMaxHeight:r-m<=K}}let b=Math.min(t+c,r),o={kind:"none"},a=!1;if(r-b>K)o=n?{kind:"max"}:{kind:"clamp",value:0};else if(a=!0,!n&&l<s){let d=t+c-r;o={kind:"clamp",value:l-(c-d)}}let P=Math.ceil(b);return{height:P,scroll:o,reachedMaxHeight:a||P>=r-K}}var qe={slot:"bazzaui-select-positioner"};var Ye=C.forwardRef(function(n,t){let{alignItemWithTrigger:l=!0,side:s="bottom",align:r="start",sideOffset:c=0,className:b,style:o,children:a,...P}=n,d=_chunkW4ACKMIZcjs.d.call(void 0, ),m=O(),R=_directioncontext.useDirection.call(void 0, )==="rtl"?"rtl":"ltr",u=d.store,i=u.useState("open"),p=u.useState("openMethod"),g=u.useState("hasInput"),[M,L]=C.useState(l),h=M&&p!=="touch"&&!g,[V,w]=C.useState(!1),[v,ee]=C.useState(null),k=C.useRef(null),A=C.useRef(null),ie=C.useRef(null),S=C.useRef(!1),F=C.useRef(!1),J=C.useCallback(()=>{let f=k.current,x=u.context.refs.popupRef.current;f&&(f.style.height=""),x&&(x.style.height="",x.style.removeProperty("--transform-origin")),S.current=!1,F.current=!1},[u]),B=C.useCallback(()=>{J(),L(l),w(!1),ee(null)},[l,J]);C.useEffect(()=>m.registerResetPositioningCallback(B),[m,B]);let W=C.useCallback(()=>{if(u.state.hasInput)return;let f=k.current,x=m.triggerRef.current,D=u.context.refs.popupRef.current,Y=u.context.refs.listRef.current;if(!f||!x||!D||!Y)return;let oe=m.selectedItemTextRef.current;if(!_optionalChain([oe, 'optionalAccess', _10 => _10.isConnected])){let N=m.firstItemTextRef.current;oe=_optionalChain([N, 'optionalAccess', _11 => _11.isConnected])?N:null}let se=m.valueRef.current,he=Io(D),H;try{let N=Ue(f),ne=f.ownerDocument,re=We(x),Q=N.getComputedStyle(f),me=N.getComputedStyle(D);H=wt({triggerRect:ve(x.getBoundingClientRect(),re),positionerRect:ve(f.getBoundingClientRect(),re),valueRect:se?ve(se.getBoundingClientRect(),re):null,textRect:oe?ve(oe.getBoundingClientRect(),re):null,scrollHeight:Y.scrollHeight,documentClientHeight:ne.documentElement.clientHeight,documentClientWidth:ne.documentElement.clientWidth,marginTop:Number.parseFloat(Q.marginTop)||_e,marginBottom:Number.parseFloat(Q.marginBottom)||_e,minHeight:Number.parseFloat(Q.minHeight)||Et,maxPopupHeight:Lt(me),borderBottom:Number.parseFloat(me.borderBottomWidth)||0,direction:R});let xe=(_nullishCoalesce(_optionalChain([N, 'access', _12 => _12.visualViewport, 'optionalAccess', _13 => _13.scale]), () => (1)))!==1&&Ro(N);if(H.fallback||xe){L(!1),w(!0);return}f.style.height=`${H.height}px`,D.style.height="100%",H.transformOrigin&&D.style.setProperty("--transform-origin",H.transformOrigin),Y.scrollTop=H.scrollTop,S.current=H.reachedMaxHeight,F.current=!0}finally{he()}ee({left:H.left,top:H.isTopPositioned?H.top:null,bottom:H.isTopPositioned?null:0,marginTop:H.marginTop,marginBottom:H.marginBottom}),w(!0)},[u,m,R]);C.useEffect(()=>{!i||!h||V||W()},[i,h,V,W]),C.useEffect(()=>{i&&!h&&J()},[i,h,J]),C.useEffect(()=>{if(!i||!h)return;let f=k.current,x=f?Ue(f):window,D=Y=>{u.setOpen(!1,_chunkXMZZ62VJcjs.a.none,Y)};return x.addEventListener("resize",D),()=>{x.removeEventListener("resize",D)}},[i,h,u]);let _=C.useCallback(f=>{let x=k.current,D=u.context.refs.popupRef.current;if(!x||!D||!F.current||S.current||!h)return;let Y=x.style.top==="0px",oe=x.style.bottom==="0px";if(!Y&&!oe)return;let se=Ue(x),he=x.ownerDocument,H=We(x),N=Vt(x.getBoundingClientRect().height,"y",H),ne=se.getComputedStyle(x),re=Number.parseFloat(ne.marginTop)||0,Q=Number.parseFloat(ne.marginBottom)||0,me=Lt(se.getComputedStyle(D)),xe=Math.min(he.documentElement.clientHeight-re-Q,me),le=Ht({isTopPositioned:Y,currentHeight:N,scrollTop:f.scrollTop,maxScrollTop:ge(f.scrollHeight,f.clientHeight),maxAvailableHeight:xe});switch(le.height!=null&&(x.style.height=`${le.height}px`),le.scroll.kind){case"set":f.scrollTop=le.scroll.value;break;case"max":{let X=ge(f.scrollHeight,f.clientHeight);Math.abs(f.scrollTop-X)>K&&(f.scrollTop=X);break}case"clamp":{let X=ge(f.scrollHeight,f.clientHeight),be=pe(le.scroll.value,0,X);Math.abs(f.scrollTop-be)>K&&(f.scrollTop=be);break}default:break}le.reachedMaxHeight&&(S.current=!0)},[u,h]);C.useEffect(()=>{if(!i||!h||!V)return;let f=u.context.refs.listRef.current;if(!f)return;let x=()=>_(f);return f.addEventListener("scroll",x,{passive:!0}),()=>{f.removeEventListener("scroll",x)}},[i,h,V,_,u]);let q=h?"none":s,T=C.useMemo(()=>({alignItemWithTriggerActive:h,side:q,align:r,scrollUpArrowRef:A,scrollDownArrowRef:ie,setAlignItemWithTriggerActive:L,resetPositioningState:B}),[h,q,r,B]),te=C.useCallback(f=>{k.current=f,typeof t=="function"?t(f):t&&(t.current=f)},[t]),U=i&&h&&!V,Z=h&&v?{position:"fixed",transform:"none",left:v.left,top:_nullishCoalesce(v.top, () => ("auto")),bottom:_nullishCoalesce(v.bottom, () => ("auto")),marginTop:v.marginTop,marginBottom:v.marginBottom,maxHeight:"none"}:{};return _jsxruntime.jsx.call(void 0, Be.Provider,{value:T,children:_jsxruntime.jsx.call(void 0, _popover.Popover.Positioner,{ref:te,side:h?void 0:s,align:h?void 0:r,sideOffset:h?0:c,disableAnchorTracking:h||void 0,className:b,style:{...o,...Z,...U?{visibility:"hidden"}:{}},...h?{"data-side":"none","data-align":r}:{},[qe.slot]:"",...P,children:a})})});function Ue(e){return _nullishCoalesce(_optionalChain([e, 'access', _14 => _14.ownerDocument, 'optionalAccess', _15 => _15.defaultView]), () => (window))}function Lt(e){let n=e.maxHeight||"";return n.endsWith("px")&&Number.parseFloat(n)||Number.POSITIVE_INFINITY}function Ro(e){let n=e.navigator;return n?/AppleWebKit/.test(n.userAgent)&&!/Chrome|Chromium|Edg|OPR/.test(n.userAgent):!1}var kt=[["transform","none"],["scale","1"],["translate","0 0"]];function Io(e){let{style:n}=e,t={};for(let[l,s]of kt)t[l]=n.getPropertyValue(l),n.setProperty(l,s,"important");return()=>{for(let[l]of kt){let s=t[l];s?n.setProperty(l,s):n.removeProperty(l)}}}function Xe(e){let{open:n,onOpenChange:t,onOpenChangeComplete:l,actionsRef:s,defaultOpen:r=!1,value:c,defaultValue:b,onValueChange:o,multiple:a=!1,values:P,defaultValues:d,onValuesChange:m,isItemEqualToValue:R=_chunk5T5B5SPRcjs.a,itemToStringLabel:u,itemToStringValue:i,name:p,form:g,required:M,disabled:L=!1,placeholder:h="Select...",items:V,modal:w=!0,closeOnOutsidePress:v="pointerdown",virtualized:ee=!1,virtualItems:k,onHighlightChange:A,debug:ie,children:S,...F}=e,J=I.useCallback((y,ue,Ee,Qt)=>_optionalChain([A, 'optionalCall', _16 => _16(y,Ee,Qt)]),[A]),B=I.useId(),W=I.useRef(null),_=I.useRef(null),q=I.useRef(null),T=I.useRef(null),te=I.useCallback(y=>{W.current=y},[]),U=I.useCallback(y=>{_.current=y},[]),Z=I.useRef(null),f=I.useCallback(y=>(Z.current=y,()=>{Z.current=null}),[]),{store:x,focusOwnerStore:D,openChainStore:Y,registerSurface:oe,closeAll:se,virtualization:he,handleOpenChange:H,disabled:N,setDisabled:ne,menuTreeResolver:re}=_chunkW4ACKMIZcjs.q.call(void 0, {onOpenChange:t,defaultOpen:r,virtualized:ee,items:k,onHighlightChange:J,closeOnOutsidePress:v,disabled:L}),Q=I.useRef(null);I.useImperativeHandle(s,()=>({close:()=>{_optionalChain([Q, 'access', _17 => _17.current, 'optionalAccess', _18 => _18.close, 'call', _19 => _19()])},unmount:()=>{_optionalChain([Q, 'access', _20 => _20.current, 'optionalAccess', _21 => _21.unmount, 'call', _22 => _22()])},setDisabled:ne}),[ne]),x.useControlledProp("openProp",n);let me=x.useState("open"),[xe,le]=I.useState(b!==void 0?b:null),X=c!==void 0?c:xe,be=I.useCallback(y=>{c===void 0&&le(y),_optionalChain([o, 'optionalCall', _23 => _23(y)])},[c,o]),[Yt,Xt]=I.useState(_nullishCoalesce(d, () => ([]))),Pe=P!==void 0?P:Yt,Ze=I.useCallback(y=>{P===void 0&&Xt(y),_optionalChain([m, 'optionalCall', _24 => _24(y)])},[P,m]),Qe=I.useRef(new Map),et=I.useCallback((y,ue)=>(Qe.current.set(y,ue),()=>{}),[]),$t=I.useMemo(()=>({multiple:a,value:X,values:Pe,onValueChange:be,onValuesChange:Ze,isItemEqualToValue:R,itemToStringLabel:u,itemToStringValue:i,name:p,form:g,required:M,disabled:N,placeholder:h,items:V,itemTextRegistry:Qe.current,registerItemText:et,listId:B,triggerRef:W,valueRef:_,selectedItemTextRef:q,firstItemTextRef:T,setTriggerElement:te,setValueElement:U,registerResetPositioningCallback:f}),[a,X,Pe,be,Ze,R,u,i,p,g,M,N,h,V,et,B,te,U,f]),Kt=I.useMemo(()=>p?a?Pe.length>0?Pe.map((y,ue)=>{let Ee=_chunkW4ACKMIZcjs.S.call(void 0, y,i);return _jsxruntime.jsx.call(void 0, "input",{type:"hidden",name:p,value:Ee,form:g,required:M&&ue===0},Ee)}):_jsxruntime.jsx.call(void 0, "input",{type:"hidden",name:p,value:"",form:g,required:M}):_jsxruntime.jsx.call(void 0, "input",{type:"hidden",name:p,value:X!=null?_chunkW4ACKMIZcjs.S.call(void 0, X,i):"",form:g,required:M}):null,[p,g,M,a,X,Pe,i]),Jt=I.useCallback((y,ue)=>{H(y,ue.reason,ue.event)},[H]),Zt=I.useCallback(y=>{!y&&x.context.clearSearchOnClose==="after-exit"&&(x.clearSearch(),x.setInputActive(!1)),y||(x.clearHighlight(),_optionalChain([Z, 'access', _25 => _25.current, 'optionalCall', _26 => _26()]),T.current=null),_optionalChain([l, 'optionalCall', _27 => _27(y)])},[x,l]);return _jsxruntime.jsx.call(void 0, Le.Provider,{value:$t,children:_jsxruntime.jsxs.call(void 0, _chunkW4ACKMIZcjs.N,{menuTreeResolver:re,store:x,focusOwnerStore:D,openChainStore:Y,disabled:N,depth:0,closeAll:se,registerSurface:oe,virtualization:he,menuType:"dropdown",closeOnOutsidePress:v,componentName:"select",debug:ie,children:[Kt,_jsxruntime.jsx.call(void 0, _popover.Popover.Root,{...F,open:me,onOpenChange:Jt,onOpenChangeComplete:Zt,modal:w,actionsRef:s?Q:void 0,children:S})]})})}var Ot={slot:"bazzaui-select-surface"};var $e=De.forwardRef(function(n,t){let{autoHighlightFirst:l,...s}=n,r=O(),c=Ve(),b=De.useMemo(()=>{let o=a=>_chunkW4ACKMIZcjs.Q.call(void 0, a)?!0:_chunkW4ACKMIZcjs.S.call(void 0, a,r.itemToStringValue);if(l==="selected"){let a=r.multiple?r.values[0]:r.value;return o(a)}if(l!==void 0)return l;if(_optionalChain([c, 'optionalAccess', _28 => _28.alignItemWithTriggerActive])){let a=r.multiple?r.values[0]:r.value;return o(a)}return!0},[l,_optionalChain([c, 'optionalAccess', _29 => _29.alignItemWithTriggerActive]),r.multiple,r.value,r.values,r.itemToStringValue]);return _jsxruntime.jsx.call(void 0, _chunkW4ACKMIZcjs.fa,{ref:t,autoHighlightFirst:b,[Ot.slot]:"",...s})});var Se={slot:"bazzaui-select-trigger",open:"data-open",closed:"data-closed",disabled:"data-disabled",placeholder:"data-placeholder"};var yo={open:e=>e?{[Se.open]:""}:null,disabled:e=>e?{[Se.disabled]:""}:null,placeholder:e=>e?{[Se.placeholder]:""}:null},Eo=G.forwardRef(function(n,t){let{render:l,children:s,disabled:r,className:c,style:b,triggerProps:o,triggerState:a,...P}=n,d=O(),m=_nullishCoalesce(r, () => (d.disabled)),R=d.multiple?d.values.length>0:!_chunkW4ACKMIZcjs.Q.call(void 0, d.value),u=G.useMemo(()=>({open:a.open,disabled:m,placeholder:!R}),[a.open,m,R]),i=G.useCallback(p=>{d.setTriggerElement(p)},[d]);return _userender.useRender.call(void 0, {render:l,ref:t,state:u,stateAttributesMapping:yo,props:{..._chunkSCDHQZFIcjs.a.call(void 0, o,{...P,className:c,style:b,children:s}),[Se.slot]:"",ref:i,role:"combobox","aria-haspopup":"listbox","aria-controls":d.listId},defaultTagName:"button"})}),Ke= exports.SelectTrigger =G.forwardRef(function(n,t){let{disabled:l,...s}=n,r=O(),c=_chunkW4ACKMIZcjs.d.call(void 0, ),{store:b,closeAll:o,closeOnOutsidePress:a}=c,P=(_nullishCoalesce(l, () => (r.disabled)))||c.disabled,d=b.useState("open"),m=G.useRef(null),R=G.useCallback(u=>{m.current=u,typeof t=="function"?t(u):t&&(t.current=u)},[t]);return G.useEffect(()=>{let u=m.current;if(!u||a!=="pointerdown")return;let i=p=>{d&&(o(_chunkXMZZ62VJcjs.a.triggerPress,p),u.addEventListener("click",g=>{g.stopPropagation(),g.preventDefault()},{once:!0,capture:!0}))};return u.addEventListener("pointerdown",i,!0),()=>{u.removeEventListener("pointerdown",i,!0)}},[d,o,a]),_jsxruntime.jsx.call(void 0, _popover.Popover.Trigger,{ref:R,disabled:P,render:(u,i)=>_jsxruntime.jsx.call(void 0, Eo,{...s,disabled:P,triggerProps:u,triggerState:i,ref:u.ref})})});var Ne={slot:"bazzaui-select-value",placeholder:"data-placeholder",multiple:"data-multiple"};var Ho={hasValue:e=>e?null:{[Ne.placeholder]:""},multiple:e=>e?{[Ne.multiple]:""}:null,getValueText:()=>null};function Lo(e,n){let{render:t,className:l,style:s,placeholder:r,children:c,...b}=e,o=O(),a=_nullishCoalesce(r, () => (o.placeholder)),P=ae.useMemo(()=>_chunk5T5B5SPRcjs.f.call(void 0, o.items,""),[o.items]),d=_nullishCoalesce(_nullishCoalesce(r, () => (P)), () => (a)),m=o.multiple?o.values.length>0:!_chunkW4ACKMIZcjs.Q.call(void 0, o.value),R=ae.useCallback(g=>{let M=_chunkW4ACKMIZcjs.S.call(void 0, g,o.itemToStringValue),L=o.itemTextRegistry.get(M);if(L!==void 0)return L;let h=_chunk5T5B5SPRcjs.f.call(void 0, o.items,M);if(h!==void 0)return h;let V=_chunkW4ACKMIZcjs.R.call(void 0, g,o.itemToStringLabel);if(V&&V!==M)return V},[o.itemTextRegistry,o.items,o.itemToStringLabel,o.itemToStringValue]),u=ae.useMemo(()=>({value:o.value,values:o.values,multiple:o.multiple,hasValue:m,placeholder:a,getValueText:R}),[o.value,o.values,o.multiple,m,a,R]),i;if(typeof c=="function")i=c(u);else if(c!==void 0)i=c;else if(!m)i=d;else if(o.multiple){let g=o.values.map(M=>{let L=R(M);return L!==void 0?L:_chunkW4ACKMIZcjs.R.call(void 0, M,o.itemToStringLabel)||_chunkW4ACKMIZcjs.S.call(void 0, M,o.itemToStringValue)}).filter(Boolean);i=g.length>2?`${g.length} selected`:g.join(", ")}else{let g=o.value;if(g!=null){let M=R(g);M!==void 0?i=M:i=_chunkW4ACKMIZcjs.R.call(void 0, g,o.itemToStringLabel)||_chunkW4ACKMIZcjs.S.call(void 0, g,o.itemToStringValue)}}let p=ae.useCallback(g=>{o.setValueElement(g)},[o]);return _userender.useRender.call(void 0, {render:t,ref:n,state:u,stateAttributesMapping:Ho,props:{...b,[Ne.slot]:"",ref:p,className:l,style:s,children:i},defaultTagName:"span"})}var Je=ae.forwardRef(Lo);var zt=(c=>(c.slot="bazzaui-select-arrow",c.open="data-open",c.closed="data-closed",c.side="data-side",c.align="data-align",c.uncentered="data-uncentered",c))(zt||{});var Gt=(r=>(r.slot="bazzaui-select-backdrop",r.open="data-open",r.closed="data-closed",r.startingStyle="data-starting-style",r.endingStyle="data-ending-style",r))(Gt||{});var Ft=(n=>(n.slot="bazzaui-select-empty",n))(Ft||{});var Bt=(n=>(n.slot="bazzaui-select-group",n))(Bt||{});var jt=(n=>(n.slot="bazzaui-select-group-label",n))(jt||{});var ko={slot:"bazzaui-select-icon",open:"data-popup-open"};var Wt=(l=>(l.slot="bazzaui-select-input",l.open="data-open",l.closed="data-closed",l))(Wt||{});var _t=(t=>(t.slot="bazzaui-select-list",t.list="data-popup-menu-list",t))(_t||{});var qt=(n=>(n.alignItemWithTrigger="data-align-item-with-trigger",n))(qt||{});var Ao={slotUp:"bazzaui-select-scroll-up-arrow",slotDown:"bazzaui-select-scroll-down-arrow",direction:"data-direction",side:"data-side"};var Ut=(n=>(n.slot="bazzaui-select-separator",n))(Ut||{});exports.Select = Nt; exports.SelectArrowDataAttributes = zt; exports.SelectBackdropDataAttributes = Gt; exports.SelectEmptyDataAttributes = Ft; exports.SelectGroupDataAttributes = Bt; exports.SelectGroupLabelDataAttributes = jt; exports.SelectIconDataAttributes = ko; exports.SelectInputDataAttributes = Wt; exports.SelectItem = ze; exports.SelectItemDataAttributes = $; exports.SelectItemIndicator = Ge; exports.SelectItemIndicatorDataAttributes = Me; exports.SelectItemLabel = Fe; exports.SelectListCssVars = _chunkW4ACKMIZcjs.aa; exports.SelectListDataAttributes = _t; exports.SelectPopup = je; exports.SelectPopupDataAttributes = qt; exports.SelectPositioner = Ye; exports.SelectPositionerCssVars = _chunkW4ACKMIZcjs.L; exports.SelectPositionerDataAttributes = qe; exports.SelectRoot = Xe; exports.SelectScrollArrowDataAttributes = Ao; exports.SelectSeparatorDataAttributes = Ut; exports.SelectStore = _chunkXMZZ62VJcjs.y; exports.SelectSurface = $e; exports.SelectTrigger = Ke; exports.SelectTriggerDataAttributes = Se; exports.SelectValue = Je; exports.commandScore = _chunkXMZZ62VJcjs.w; exports.defaultFilter = _chunkXMZZ62VJcjs.x; exports.useMaybeSelectContext = so; exports.useMaybeSelectItemContext = uo; exports.useMaybeSurfaceContext = _chunkXMZZ62VJcjs.q; exports.useSelectContext = O; exports.useSelectItemContext = Te; exports.useSelectPositionerContext = Ve; exports.useSurfaceContext = _chunkXMZZ62VJcjs.p;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|