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