@bazza-ui/react 0.1.0-canary.14 → 0.1.0-canary.15
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-DCGGpiBg.d.cts → ListboxStore-B8oTpM57.d.cts} +1 -1
- package/dist/{ListboxStore-DZ73dOaC.d.ts → ListboxStore-CV5vPUUc.d.ts} +1 -1
- package/dist/chunk-BEWVWSAW.cjs +2 -0
- package/dist/{chunk-Z2RGBRJP.cjs.map → chunk-BEWVWSAW.cjs.map} +1 -1
- package/dist/chunk-EDZTZHQ4.js +2 -0
- package/dist/chunk-EDZTZHQ4.js.map +1 -0
- package/dist/combobox/index.cjs +1 -1
- package/dist/combobox/index.d.cts +8 -8
- package/dist/combobox/index.d.ts +8 -8
- package/dist/combobox/index.js +1 -1
- package/dist/command-menu/index.cjs +1 -1
- package/dist/command-menu/index.d.cts +8 -8
- package/dist/command-menu/index.d.ts +8 -8
- package/dist/command-menu/index.js +1 -1
- package/dist/context-menu/index.cjs +1 -1
- package/dist/context-menu/index.d.cts +13 -13
- package/dist/context-menu/index.d.ts +13 -13
- package/dist/context-menu/index.js +1 -1
- package/dist/dropdown-menu/index.cjs +1 -1
- package/dist/dropdown-menu/index.cjs.map +1 -1
- package/dist/dropdown-menu/index.d.cts +13 -13
- package/dist/dropdown-menu/index.d.ts +13 -13
- package/dist/dropdown-menu/index.js +1 -1
- package/dist/dropdown-menu/index.js.map +1 -1
- package/dist/{events-D6K5-_aP.d.ts → events-BTHQ2OoH.d.ts} +17 -1
- package/dist/{events-DuKEM5sQ.d.cts → events-DVcrtGe3.d.cts} +17 -1
- package/dist/internal/listbox/index.d.cts +4 -4
- package/dist/internal/listbox/index.d.ts +4 -4
- package/dist/internal/popup-menu/index.cjs +1 -1
- package/dist/internal/popup-menu/index.d.cts +9 -9
- package/dist/internal/popup-menu/index.d.ts +9 -9
- package/dist/internal/popup-menu/index.js +1 -1
- package/dist/loaders/index.d.cts +1 -1
- package/dist/loaders/index.d.ts +1 -1
- package/dist/{resolve-C5shwZ1S.d.cts → resolve-B-j0eW24.d.cts} +1 -1
- package/dist/{resolve-DA6nHdAi.d.ts → resolve-B1F-a3P1.d.ts} +1 -1
- package/dist/{scroll-arrow-rsrV6nun.d.cts → scroll-arrow-BBoKckL_.d.cts} +2 -2
- package/dist/{scroll-arrow-CxHg9cFW.d.ts → scroll-arrow-fl3B5sVO.d.ts} +2 -2
- package/dist/select/index.cjs +1 -1
- package/dist/select/index.d.cts +8 -8
- package/dist/select/index.d.ts +8 -8
- package/dist/select/index.js +1 -1
- package/dist/{separator-DaXKN0QW.d.ts → separator-Dn15rte3.d.ts} +2 -2
- package/dist/{separator-DzfgGPjS.d.cts → separator-NjsBVzek.d.cts} +2 -2
- package/dist/{surface-context-BMizU8oI.d.ts → surface-context-CGLDpMej.d.ts} +1 -1
- package/dist/{surface-context-r2eYfQth.d.cts → surface-context-CN4Lb_6F.d.cts} +1 -1
- package/dist/{type-guards-BO8iCz9M.d.cts → type-guards-BHHzjRvZ.d.cts} +3 -3
- package/dist/{type-guards-BOg6-eFO.d.ts → type-guards-C0e_GpeY.d.ts} +3 -3
- package/package.json +1 -1
- package/dist/chunk-NNGWBSWK.js +0 -2
- package/dist/chunk-NNGWBSWK.js.map +0 -1
- package/dist/chunk-Z2RGBRJP.cjs +0 -2
|
@@ -1,25 +1,25 @@
|
|
|
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 PopupMenuLinkItem, u as PopupMenuNode, N as NodeDef, v as PopupMenuRadioGroup, w as PopupMenuRadioItem, x as PopupMenuSubmenuTrigger, y as PopupMenuSubpageTrigger } from '../events-
|
|
2
|
-
export { R as AsyncLoaderConfig, S as AsyncLoaderFetchStatus, T as AsyncLoaderLoadingPhase, U as AsyncLoaderResult, V as AsyncLoaderSource, W as AsyncLoaderStatus, X as AsyncNodesConfig, Y as AsyncRenderState, Z as AsyncResultBehavior, _ as AsyncState, $ as BreadcrumbNode, a0 as CheckboxItemDef, a1 as CheckboxItemRenderParams, a2 as CheckboxItemRenderProps, a3 as DataListChildrenState, a4 as DeepSearchConfig, a5 as
|
|
3
|
-
import { V as VirtualItem } from '../ListboxStore-
|
|
4
|
-
export { F as DropdownMenuFilterFn, I as DropdownMenuItemRegistration, b as DropdownMenuStore, L as DropdownMenuStoreContext, a as DropdownMenuStoreState } from '../ListboxStore-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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 PopupMenuLinkItem, u as PopupMenuNode, N as NodeDef, v as PopupMenuRadioGroup, w as PopupMenuRadioItem, x as PopupMenuSubmenuTrigger, y as PopupMenuSubpageTrigger } from '../events-DVcrtGe3.cjs';
|
|
2
|
+
export { R as AsyncLoaderConfig, S as AsyncLoaderFetchStatus, T as AsyncLoaderLoadingPhase, U as AsyncLoaderResult, V as AsyncLoaderSource, W as AsyncLoaderStatus, X as AsyncNodesConfig, Y as AsyncRenderState, Z as AsyncResultBehavior, _ as AsyncState, $ as BreadcrumbNode, a0 as CheckboxItemDef, a1 as CheckboxItemRenderParams, a2 as CheckboxItemRenderProps, a3 as DataListChildrenState, a4 as DeepSearchConfig, a5 as DisabledBranchBehavior, a6 as DisplayGroupNode, a7 as DisplayNode, a8 as DisplayRadioGroupNode, a9 as DisplayRowNode, aa as DisplaySeparatorNode, ab as DisplaySubpageNode, z as DropdownMenuCheckboxItemProps, A as DropdownMenuCheckboxItemState, B as DropdownMenuItemProps, D as DropdownMenuItemState, E as DropdownMenuLinkItemProps, F as DropdownMenuLinkItemState, H as DropdownMenuRadioGroupProps, I as DropdownMenuRadioGroupState, J as DropdownMenuRadioItemProps, K as DropdownMenuRadioItemState, L as DropdownMenuSubmenuTriggerProps, M as DropdownMenuSubmenuTriggerState, O as DropdownMenuSubpageTriggerProps, Q as DropdownMenuSubpageTriggerState, ac as GroupBehavior, ad as GroupDef, ae as GroupLabelRenderParams, af as GroupRenderContext, ag as GroupRenderParams, ah as IncludeInDeepSearch, ai as InitialQueryBehavior, aj as ItemDef, ak as ItemRenderParams, al as ItemRenderProps, am as LinkItemDef, an as LinkItemRenderParams, ao as LinkItemRenderProps, ap as LoaderComponentProps, aq as QueryAsyncNodesConfig, ar as QueryLoaderConfig, as as RadioGroupBehavior, at as RadioGroupDef, au as RadioGroupLabelRenderParams, av as RadioGroupRenderParams, aw as RadioGroupRenderProps, ax as RadioItemDef, ay as RadioItemRenderParams, az as RadioItemRenderProps, aA as RowRenderContext, aB as ScoredNode, aC as SeparatorDef, aD as SeparatorRenderParams, aE as StaticAsyncNodesConfig, aF as StaticLoaderConfig, aG as SubmenuDef, aH as SubmenuRenderParams, aI as SubmenuRenderProps, aJ as SubpageContentRenderParams, aK as SubpageDef, aL as SubpageTriggerRenderParams, aM as SubpageTriggerRenderProps, aN as TreeItemDef, aO as TreeItemRenderParams, aP as TreeItemRenderProps, aQ as UnresolvedMenuNode, aR as defineRadioGroup, aS as isDisplayGroupNode, aT as isDisplayRadioGroupNode, aU as isDisplayRowNode, aV as isDisplaySeparatorNode } from '../events-DVcrtGe3.cjs';
|
|
3
|
+
import { V as VirtualItem } from '../ListboxStore-B8oTpM57.cjs';
|
|
4
|
+
export { F as DropdownMenuFilterFn, I as DropdownMenuItemRegistration, b as DropdownMenuStore, L as DropdownMenuStoreContext, a as DropdownMenuStoreState } from '../ListboxStore-B8oTpM57.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-BBoKckL_.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-BBoKckL_.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-BHHzjRvZ.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-BHHzjRvZ.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-NjsBVzek.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-NjsBVzek.cjs';
|
|
11
11
|
import { P as PopupMenuInput } from '../input-C95v6jB0.cjs';
|
|
12
12
|
export { a as DropdownMenuInputProps, b as DropdownMenuInputState } from '../input-C95v6jB0.cjs';
|
|
13
13
|
import { P as PopupMenuLoading } from '../loading-C6WZGUc3.cjs';
|
|
14
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-
|
|
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-
|
|
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-B-j0eW24.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-B-j0eW24.cjs';
|
|
17
17
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
18
18
|
import { PopoverRootProps } from '@base-ui/react/popover';
|
|
19
19
|
import * as React$1 from 'react';
|
|
20
20
|
import { C as ComponentProps } from '../types-DT4FOOa2.cjs';
|
|
21
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-
|
|
22
|
+
export { S as SurfaceContextValue, u as useMaybeSurfaceContext, a as useSurfaceContext } from '../surface-context-CN4Lb_6F.cjs';
|
|
23
23
|
export { c as commandScore, d as defaultFilter } from '../command-score-CTJ9NV6n.cjs';
|
|
24
24
|
import '@base-ui/utils/store';
|
|
25
25
|
|
|
@@ -1,25 +1,25 @@
|
|
|
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 PopupMenuLinkItem, u as PopupMenuNode, N as NodeDef, v as PopupMenuRadioGroup, w as PopupMenuRadioItem, x as PopupMenuSubmenuTrigger, y as PopupMenuSubpageTrigger } from '../events-
|
|
2
|
-
export { R as AsyncLoaderConfig, S as AsyncLoaderFetchStatus, T as AsyncLoaderLoadingPhase, U as AsyncLoaderResult, V as AsyncLoaderSource, W as AsyncLoaderStatus, X as AsyncNodesConfig, Y as AsyncRenderState, Z as AsyncResultBehavior, _ as AsyncState, $ as BreadcrumbNode, a0 as CheckboxItemDef, a1 as CheckboxItemRenderParams, a2 as CheckboxItemRenderProps, a3 as DataListChildrenState, a4 as DeepSearchConfig, a5 as
|
|
3
|
-
import { V as VirtualItem } from '../ListboxStore-
|
|
4
|
-
export { F as DropdownMenuFilterFn, I as DropdownMenuItemRegistration, b as DropdownMenuStore, L as DropdownMenuStoreContext, a as DropdownMenuStoreState } from '../ListboxStore-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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 PopupMenuLinkItem, u as PopupMenuNode, N as NodeDef, v as PopupMenuRadioGroup, w as PopupMenuRadioItem, x as PopupMenuSubmenuTrigger, y as PopupMenuSubpageTrigger } from '../events-BTHQ2OoH.js';
|
|
2
|
+
export { R as AsyncLoaderConfig, S as AsyncLoaderFetchStatus, T as AsyncLoaderLoadingPhase, U as AsyncLoaderResult, V as AsyncLoaderSource, W as AsyncLoaderStatus, X as AsyncNodesConfig, Y as AsyncRenderState, Z as AsyncResultBehavior, _ as AsyncState, $ as BreadcrumbNode, a0 as CheckboxItemDef, a1 as CheckboxItemRenderParams, a2 as CheckboxItemRenderProps, a3 as DataListChildrenState, a4 as DeepSearchConfig, a5 as DisabledBranchBehavior, a6 as DisplayGroupNode, a7 as DisplayNode, a8 as DisplayRadioGroupNode, a9 as DisplayRowNode, aa as DisplaySeparatorNode, ab as DisplaySubpageNode, z as DropdownMenuCheckboxItemProps, A as DropdownMenuCheckboxItemState, B as DropdownMenuItemProps, D as DropdownMenuItemState, E as DropdownMenuLinkItemProps, F as DropdownMenuLinkItemState, H as DropdownMenuRadioGroupProps, I as DropdownMenuRadioGroupState, J as DropdownMenuRadioItemProps, K as DropdownMenuRadioItemState, L as DropdownMenuSubmenuTriggerProps, M as DropdownMenuSubmenuTriggerState, O as DropdownMenuSubpageTriggerProps, Q as DropdownMenuSubpageTriggerState, ac as GroupBehavior, ad as GroupDef, ae as GroupLabelRenderParams, af as GroupRenderContext, ag as GroupRenderParams, ah as IncludeInDeepSearch, ai as InitialQueryBehavior, aj as ItemDef, ak as ItemRenderParams, al as ItemRenderProps, am as LinkItemDef, an as LinkItemRenderParams, ao as LinkItemRenderProps, ap as LoaderComponentProps, aq as QueryAsyncNodesConfig, ar as QueryLoaderConfig, as as RadioGroupBehavior, at as RadioGroupDef, au as RadioGroupLabelRenderParams, av as RadioGroupRenderParams, aw as RadioGroupRenderProps, ax as RadioItemDef, ay as RadioItemRenderParams, az as RadioItemRenderProps, aA as RowRenderContext, aB as ScoredNode, aC as SeparatorDef, aD as SeparatorRenderParams, aE as StaticAsyncNodesConfig, aF as StaticLoaderConfig, aG as SubmenuDef, aH as SubmenuRenderParams, aI as SubmenuRenderProps, aJ as SubpageContentRenderParams, aK as SubpageDef, aL as SubpageTriggerRenderParams, aM as SubpageTriggerRenderProps, aN as TreeItemDef, aO as TreeItemRenderParams, aP as TreeItemRenderProps, aQ as UnresolvedMenuNode, aR as defineRadioGroup, aS as isDisplayGroupNode, aT as isDisplayRadioGroupNode, aU as isDisplayRowNode, aV as isDisplaySeparatorNode } from '../events-BTHQ2OoH.js';
|
|
3
|
+
import { V as VirtualItem } from '../ListboxStore-CV5vPUUc.js';
|
|
4
|
+
export { F as DropdownMenuFilterFn, I as DropdownMenuItemRegistration, b as DropdownMenuStore, L as DropdownMenuStoreContext, a as DropdownMenuStoreState } from '../ListboxStore-CV5vPUUc.js';
|
|
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-fl3B5sVO.js';
|
|
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-fl3B5sVO.js';
|
|
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-C0e_GpeY.js';
|
|
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-C0e_GpeY.js';
|
|
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-Dn15rte3.js';
|
|
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-Dn15rte3.js';
|
|
11
11
|
import { P as PopupMenuInput } from '../input-CYweYB_i.js';
|
|
12
12
|
export { a as DropdownMenuInputProps, b as DropdownMenuInputState } from '../input-CYweYB_i.js';
|
|
13
13
|
import { P as PopupMenuLoading } from '../loading-CC4n55sR.js';
|
|
14
14
|
export { a as DropdownMenuLoadingProps, b as DropdownMenuLoadingState } from '../loading-CC4n55sR.js';
|
|
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-
|
|
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-
|
|
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-B1F-a3P1.js';
|
|
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-B1F-a3P1.js';
|
|
17
17
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
18
18
|
import { PopoverRootProps } from '@base-ui/react/popover';
|
|
19
19
|
import * as React$1 from 'react';
|
|
20
20
|
import { C as ComponentProps } from '../types-DT4FOOa2.js';
|
|
21
21
|
export { I as ItemContextValue, u as useItemContext, a as useMaybeItemContext } from '../use-listbox-item-NzZuY34-.js';
|
|
22
|
-
export { S as SurfaceContextValue, u as useMaybeSurfaceContext, a as useSurfaceContext } from '../surface-context-
|
|
22
|
+
export { S as SurfaceContextValue, u as useMaybeSurfaceContext, a as useSurfaceContext } from '../surface-context-CGLDpMej.js';
|
|
23
23
|
export { c as commandScore, d as defaultFilter } from '../command-score-CTJ9NV6n.js';
|
|
24
24
|
import '@base-ui/utils/store';
|
|
25
25
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as fe}from"../chunk-IT372NHF.js";import{$ as Oo,A as Co,Aa as Pe,B as yo,Ba as ge,C as Do,Ca as Me,D as I,Da as Se,E as C,Ea as he,F as y,Fa as be,G as D,I as ko,K as F,L as N,M as zo,N as B,O as V,P as Lo,U as j,V as U,W as Z,X as _,Y as vo,Z as To,_ as Go,aa as Ho,ba as Eo,ca as Q,d as R,da as W,e as to,ea as q,fa as J,g as so,ga as K,h as io,ha as X,i as lo,ia as Y,j as co,ja as $,ka as A,l as mo,la as ee,m as Po,ma as k,na as oe,o as wo,oa as ne,p as Ro,pa as pe,q as O,qa as re,ra as ae,s as H,sa as ue,t as E,ta as te,ua as se,va as de,wa as ie,xa as le,y as Io,ya as ce,za as me}from"../chunk-NNGWBSWK.js";import{a as G,g as go,h as Mo,p as So,q as ho,w as bo,x as fo,y as xo}from"../chunk-A4Z5BY7H.js";import{a as uo}from"../chunk-4C666HHU.js";var ye={};uo(ye,{Arrow:()=>H,Backdrop:()=>E,CheckboxItem:()=>X,CheckboxItemIndicator:()=>Y,Empty:()=>U,FocusZone:()=>pe,Footer:()=>re,Group:()=>ae,GroupLabel:()=>_,GroupValue:()=>ue,Header:()=>te,Icon:()=>j,Input:()=>Z,Item:()=>$,LinkItem:()=>A,List:()=>Q,Loading:()=>W,Popup:()=>F,Portal:()=>N,Positioner:()=>B,RadioGroup:()=>ee,RadioGroupValue:()=>k,RadioItem:()=>oe,RadioItemIndicator:()=>ne,Root:()=>Re,ScrollDownArrow:()=>J,ScrollUpArrow:()=>q,Separator:()=>se,Shortcut:()=>de,Submenu:()=>me,SubmenuTrigger:()=>ge,SubmenuTriggerIndicator:()=>Pe,Subpage:()=>Me,SubpageBack:()=>Se,SubpageBackItem:()=>he,SubpageTrigger:()=>be,Surface:()=>K,Tree:()=>ie,TreeConnector:()=>le,TreeItem:()=>ce,Trigger:()=>Ce,useAsyncMenuCoordinator:()=>y,useDataList:()=>I,useMaybeAsyncMenuCoordinator:()=>D,useMaybeDataList:()=>C});import{Popover as Fo}from"@base-ui/react/popover";import{useCallback as xe,useImperativeHandle as No,useRef as Bo}from"react";import{jsx as we}from"react/jsx-runtime";function Re(c){let{open:a,onOpenChange:p,defaultOpen:o=!1,modal:i=!0,disabled:n=!1,virtualized:e=!1,items:t,onHighlightChange:M,closeOnOutsidePress:l="pointerdown",onOpenChangeComplete:m,actionsRef:S,getResolvedId:r,idScope:P="surface",debug:g,children:f,...s}=c,{store:u,focusOwnerStore:x,openChainStore:b,registerSurface:$e,closeAll:Ae,virtualization:eo,handleOpenChange:L,disabled:oo,setDisabled:v,menuTreeResolver:no}=O({onOpenChange:p,defaultOpen:o,virtualized:e,items:t,onHighlightChange:M,closeOnOutsidePress:l,disabled:n,getResolvedId:r,idScope:P}),w=Bo(null);No(S,()=>({close:()=>{w.current?.close()},unmount:()=>{w.current?.unmount()},setDisabled:v}),[v]),u.useControlledProp("openProp",a);let po=u.useState("open"),ro=xe(h=>{!h&&u.context.clearSearchOnClose==="after-exit"&&(u.clearSearch(),u.setInputActive(!1)),h||(u.clearHighlight(),u.context.onCloseComplete?.(),u.context.onPopupCloseComplete?.()),m?.(h)},[u,m]),ao=xe((h,T)=>{L(h,T.reason,T.event)},[L]);return we(V,{store:u,menuTreeResolver:no,focusOwnerStore:x,openChainStore:b,disabled:oo,depth:0,closeAll:Ae,explicitTabBehavior:!0,registerSurface:$e,virtualization:eo,menuType:"dropdown",closeOnOutsidePress:l,debug:g,componentName:"dropdown-menu",children:we(Fo.Root,{...s,open:po,onOpenChange:ao,onOpenChangeComplete:ro,modal:i,actionsRef:S?w:void 0,children:f})})}import{Popover as Vo}from"@base-ui/react/popover";import{useRender as jo}from"@base-ui/react/use-render";import*as d from"react";var z=(o=>(o.slot="bazzaui-dropdown-menu-trigger",o.popupOpen="data-popup-open",o.pressed="data-pressed",o))(z||{});import{jsx as Ie}from"react/jsx-runtime";var Uo={open:c=>c?{"data-popup-open":""}:null,disabled:c=>c?{"data-disabled":""}:null},Zo=d.forwardRef(function(a,p){let{render:o,children:i,disabled:n,className:e,style:t,triggerProps:M,triggerState:l,openOnHover:m,delay:S,closeDelay:r,...P}=a,g=d.useMemo(()=>({open:l.open,disabled:l.disabled}),[l.open,l.disabled]);return jo({render:o,ref:p,state:g,stateAttributesMapping:Uo,props:{...fe(M,{...P,className:e,style:t,children:i}),"bazzaui-dropdown-menu-trigger":""},defaultTagName:"button"})}),Ce=d.forwardRef(function(a,p){let{disabled:o,openOnHover:i,delay:n=100,closeDelay:e,...t}=a,{store:M,closeAll:l,closeOnOutsidePress:m,disabled:S}=R(),r=M.useState("open"),P=o||S,g=d.useRef(null),f=d.useCallback(s=>{g.current=s,typeof p=="function"?p(s):p&&(p.current=s)},[p]);return d.useEffect(()=>{let s=g.current;if(!s||m!=="pointerdown")return;let u=x=>{r&&(l(G.triggerPress,x),s.addEventListener("click",b=>{b.stopPropagation(),b.preventDefault()},{once:!0,capture:!0}))};return s.addEventListener("pointerdown",u,!0),()=>{s.removeEventListener("pointerdown",u,!0)}},[r,l,m]),Ie(Vo.Trigger,{ref:f,disabled:P,openOnHover:i,delay:n,closeDelay:e,render:(s,u)=>Ie(Zo,{...t,disabled:P,triggerProps:s,triggerState:u,ref:s.ref})})});var De=(e=>(e.slot="bazzaui-dropdown-menu-arrow",e.open="data-open",e.closed="data-closed",e.side="data-side",e.align="data-align",e.uncentered="data-uncentered",e))(De||{});var ke=(n=>(n.slot="bazzaui-dropdown-menu-backdrop",n.open="data-open",n.closed="data-closed",n.startingStyle="data-starting-style",n.endingStyle="data-ending-style",n))(ke||{});var ze=(n=>(n.slot="bazzaui-dropdown-menu-checkbox-item",n.checked="data-checked",n.unchecked="data-unchecked",n.highlighted="data-highlighted",n.disabled="data-disabled",n))(ze||{}),Le=(o=>(o.slot="bazzaui-dropdown-menu-checkbox-item-indicator",o.checked="data-checked",o.unchecked="data-unchecked",o))(Le||{});var ve=(a=>(a.slot="bazzaui-dropdown-menu-empty",a))(ve||{});var Te=(a=>(a.slot="bazzaui-dropdown-menu-group",a))(Te||{});var Ge=(a=>(a.slot="bazzaui-dropdown-menu-group-label",a))(Ge||{});var _o={slot:"bazzaui-dropdown-menu-icon",open:"data-popup-open"};var Oe=(o=>(o.slot="bazzaui-dropdown-menu-input",o.open="data-open",o.closed="data-closed",o))(Oe||{});var He=(o=>(o.slot="bazzaui-dropdown-menu-item",o.highlighted="data-highlighted",o.disabled="data-disabled",o))(He||{});var Ee=(t=>(t.slot="bazzaui-dropdown-menu-link-item",t.highlighted="data-highlighted",t.disabled="data-disabled",t.first="data-first",t.last="data-last",t.firstInGroup="data-first-in-group",t.lastInGroup="data-last-in-group",t))(Ee||{});var Fe=(p=>(p.slot="bazzaui-dropdown-menu-list",p.list="data-popup-menu-list",p))(Fe||{});var Ne=(a=>(a.slot="bazzaui-dropdown-menu-loading",a))(Ne||{});var Be=(r=>(r.slot="bazzaui-dropdown-menu-popup",r.open="data-open",r.closed="data-closed",r.side="data-side",r.align="data-align",r.startingStyle="data-starting-style",r.endingStyle="data-ending-style",r.instant="data-instant",r.focused="data-focused",r.hasOpenSubmenu="data-has-open-submenu",r.submenu="data-submenu",r.navigating="data-navigating",r))(Be||{});var Ve=(e=>(e.slot="bazzaui-dropdown-menu-positioner",e.open="data-open",e.closed="data-closed",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e))(Ve||{});var je=(p=>(p.slot="bazzaui-dropdown-menu-radio-group",p.disabled="data-disabled",p))(je||{});var Ue=(n=>(n.slot="bazzaui-dropdown-menu-radio-item",n.checked="data-checked",n.unchecked="data-unchecked",n.highlighted="data-highlighted",n.disabled="data-disabled",n))(Ue||{}),Ze=(o=>(o.slot="bazzaui-dropdown-menu-radio-item-indicator",o.checked="data-checked",o.unchecked="data-unchecked",o))(Ze||{});var Qo={slotUp:"bazzaui-dropdown-menu-scroll-up-arrow",slotDown:"bazzaui-dropdown-menu-scroll-down-arrow",direction:"data-direction",side:"data-side"};var _e=(a=>(a.slot="bazzaui-dropdown-menu-separator",a))(_e||{});var Qe=(p=>(p.slot="bazzaui-dropdown-menu-shortcut",p.highlighted="data-highlighted",p))(Qe||{});var We=(e=>(e.slot="bazzaui-dropdown-menu-submenu-trigger",e.submenuTrigger="data-submenu-trigger",e.popupOpen="data-popup-open",e.popupFocused="data-popup-focused",e.highlighted="data-highlighted",e.disabled="data-disabled",e))(We||{}),qe=(p=>(p.slot="bazzaui-dropdown-menu-submenu-trigger-indicator",p.popupOpen="data-popup-open",p))(qe||{});var Je=(o=>(o.slot="bazzaui-dropdown-menu-subpage-back",o.canGoBack="data-can-go-back",o.disabled="data-disabled",o))(Je||{});var Ke=(i=>(i.slot="bazzaui-dropdown-menu-subpage-back-item",i.subpageBackItem="data-subpage-back-item",i.highlighted="data-highlighted",i.disabled="data-disabled",i))(Ke||{});var Xe=(e=>(e.slot="bazzaui-dropdown-menu-subpage-trigger",e.subpageTrigger="data-subpage-trigger",e.popupOpen="data-popup-open",e.popupFocused="data-popup-focused",e.highlighted="data-highlighted",e.disabled="data-disabled",e))(Xe||{});var Ye=(a=>(a.slot="bazzaui-dropdown-menu-surface",a))(Ye||{});export{Do as DataListContext,Io as DataSurfaceContext,ye as DropdownMenu,De as DropdownMenuArrowDataAttributes,ke as DropdownMenuBackdropDataAttributes,ze as DropdownMenuCheckboxItemDataAttributes,Le as DropdownMenuCheckboxItemIndicatorDataAttributes,ve as DropdownMenuEmptyDataAttributes,Te as DropdownMenuGroupDataAttributes,Ge as DropdownMenuGroupLabelDataAttributes,_o as DropdownMenuIconDataAttributes,Oe as DropdownMenuInputDataAttributes,He as DropdownMenuItemDataAttributes,Ee as DropdownMenuLinkItemDataAttributes,Eo as DropdownMenuListCssVars,Fe as DropdownMenuListDataAttributes,Ne as DropdownMenuLoadingDataAttributes,Be as DropdownMenuPopupDataAttributes,zo as DropdownMenuPositionerCssVars,Ve as DropdownMenuPositionerDataAttributes,je as DropdownMenuRadioGroupDataAttributes,k as DropdownMenuRadioGroupValue,Ue as DropdownMenuRadioItemDataAttributes,Ze as DropdownMenuRadioItemIndicatorDataAttributes,Qo as DropdownMenuScrollArrowDataAttributes,_e as DropdownMenuSeparatorDataAttributes,Qe as DropdownMenuShortcutDataAttributes,xo as DropdownMenuStore,We as DropdownMenuSubmenuTriggerDataAttributes,qe as DropdownMenuSubmenuTriggerIndicatorDataAttributes,Je as DropdownMenuSubpageBackDataAttributes,Ke as DropdownMenuSubpageBackItemDataAttributes,Xe as DropdownMenuSubpageTriggerDataAttributes,Ye as DropdownMenuSurfaceDataAttributes,z as DropdownMenuTriggerDataAttributes,bo as commandScore,fo as defaultFilter,Ro as defaultGetResolvedId,vo as defineRadioGroup,To as isDisplayGroupNode,Go as isDisplayRadioGroupNode,Ho as isDisplayRowNode,Oo as isDisplaySeparatorNode,wo as isPopupMenuNode,ko as isTreeItemDef,y as useAsyncMenuCoordinator,I as useDataList,Co as useDataSurfaceContext,Lo as useItem,go as useItemContext,D as useMaybeAsyncMenuCoordinator,C as useMaybeDataList,yo as useMaybeDataSurfaceContext,Mo as useMaybeItemContext,to as useMaybeRootContext,io as useMaybeSubmenuContext,co as useMaybeSubpageContext,Po as useMaybeSubpageStack,ho as useMaybeSurfaceContext,R as useRootContext,so as useSubmenuContext,lo as useSubpageContext,mo as useSubpageStack,So as useSurfaceContext};
|
|
1
|
+
import{a as fe}from"../chunk-IT372NHF.js";import{$ as Oo,A as Co,Aa as Pe,B as yo,Ba as ge,C as Do,Ca as Me,D as I,Da as Se,E as C,Ea as he,F as y,Fa as be,G as D,I as ko,K as B,L as F,M as zo,N,O as V,P as Lo,U as j,V as U,W as Z,X as _,Y as vo,Z as To,_ as Go,aa as Ho,ba as Eo,ca as Q,d as R,da as W,e as to,ea as q,fa as J,g as so,ga as K,h as io,ha as X,i as lo,ia as Y,j as co,ja as $,ka as A,l as mo,la as ee,m as Po,ma as k,na as oe,o as wo,oa as ne,p as Ro,pa as pe,q as O,qa as re,ra as ae,s as H,sa as ue,t as E,ta as te,ua as se,va as de,wa as ie,xa as le,y as Io,ya as ce,za as me}from"../chunk-EDZTZHQ4.js";import{a as G,g as go,h as Mo,p as So,q as ho,w as bo,x as fo,y as xo}from"../chunk-A4Z5BY7H.js";import{a as uo}from"../chunk-4C666HHU.js";var ye={};uo(ye,{Arrow:()=>H,Backdrop:()=>E,CheckboxItem:()=>X,CheckboxItemIndicator:()=>Y,Empty:()=>U,FocusZone:()=>pe,Footer:()=>re,Group:()=>ae,GroupLabel:()=>_,GroupValue:()=>ue,Header:()=>te,Icon:()=>j,Input:()=>Z,Item:()=>$,LinkItem:()=>A,List:()=>Q,Loading:()=>W,Popup:()=>B,Portal:()=>F,Positioner:()=>N,RadioGroup:()=>ee,RadioGroupValue:()=>k,RadioItem:()=>oe,RadioItemIndicator:()=>ne,Root:()=>Re,ScrollDownArrow:()=>J,ScrollUpArrow:()=>q,Separator:()=>se,Shortcut:()=>de,Submenu:()=>me,SubmenuTrigger:()=>ge,SubmenuTriggerIndicator:()=>Pe,Subpage:()=>Me,SubpageBack:()=>Se,SubpageBackItem:()=>he,SubpageTrigger:()=>be,Surface:()=>K,Tree:()=>ie,TreeConnector:()=>le,TreeItem:()=>ce,Trigger:()=>Ce,useAsyncMenuCoordinator:()=>y,useDataList:()=>I,useMaybeAsyncMenuCoordinator:()=>D,useMaybeDataList:()=>C});import{Popover as Bo}from"@base-ui/react/popover";import{useCallback as xe,useImperativeHandle as Fo,useRef as No}from"react";import{jsx as we}from"react/jsx-runtime";function Re(c){let{open:a,onOpenChange:p,defaultOpen:o=!1,modal:i=!0,disabled:n=!1,virtualized:e=!1,items:t,onHighlightChange:M,closeOnOutsidePress:l="pointerdown",onOpenChangeComplete:m,actionsRef:S,getResolvedId:r,idScope:P="surface",debug:g,children:f,...s}=c,{store:u,focusOwnerStore:x,openChainStore:b,registerSurface:$e,closeAll:Ae,virtualization:eo,handleOpenChange:L,disabled:oo,setDisabled:v,menuTreeResolver:no}=O({onOpenChange:p,defaultOpen:o,virtualized:e,items:t,onHighlightChange:M,closeOnOutsidePress:l,disabled:n,getResolvedId:r,idScope:P}),w=No(null);Fo(S,()=>({close:()=>{w.current?.close()},unmount:()=>{w.current?.unmount()},setDisabled:v}),[v]),u.useControlledProp("openProp",a);let po=u.useState("open"),ro=xe(h=>{!h&&u.context.clearSearchOnClose==="after-exit"&&(u.clearSearch(),u.setInputActive(!1)),h||(u.clearHighlight(),u.context.onCloseComplete?.(),u.context.onPopupCloseComplete?.()),m?.(h)},[u,m]),ao=xe((h,T)=>{L(h,T.reason,T.event)},[L]);return we(V,{store:u,menuTreeResolver:no,focusOwnerStore:x,openChainStore:b,disabled:oo,depth:0,closeAll:Ae,explicitTabBehavior:!0,registerSurface:$e,virtualization:eo,menuType:"dropdown",closeOnOutsidePress:l,debug:g,componentName:"dropdown-menu",children:we(Bo.Root,{...s,open:po,onOpenChange:ao,onOpenChangeComplete:ro,modal:i,actionsRef:S?w:void 0,children:f})})}import{Popover as Vo}from"@base-ui/react/popover";import{useRender as jo}from"@base-ui/react/use-render";import*as d from"react";var z=(o=>(o.slot="bazzaui-dropdown-menu-trigger",o.popupOpen="data-popup-open",o.pressed="data-pressed",o))(z||{});import{jsx as Ie}from"react/jsx-runtime";var Uo={open:c=>c?{"data-popup-open":""}:null,disabled:c=>c?{"data-disabled":""}:null},Zo=d.forwardRef(function(a,p){let{render:o,children:i,disabled:n,className:e,style:t,triggerProps:M,triggerState:l,openOnHover:m,delay:S,closeDelay:r,...P}=a,g=d.useMemo(()=>({open:l.open,disabled:l.disabled}),[l.open,l.disabled]);return jo({render:o,ref:p,state:g,stateAttributesMapping:Uo,props:{...fe(M,{...P,className:e,style:t,children:i}),"bazzaui-dropdown-menu-trigger":""},defaultTagName:"button"})}),Ce=d.forwardRef(function(a,p){let{disabled:o,openOnHover:i,delay:n=100,closeDelay:e,...t}=a,{store:M,closeAll:l,closeOnOutsidePress:m,disabled:S}=R(),r=M.useState("open"),P=o||S,g=d.useRef(null),f=d.useCallback(s=>{g.current=s,typeof p=="function"?p(s):p&&(p.current=s)},[p]);return d.useEffect(()=>{let s=g.current;if(!s||m!=="pointerdown")return;let u=x=>{r&&(l(G.triggerPress,x),s.addEventListener("click",b=>{b.stopPropagation(),b.preventDefault()},{once:!0,capture:!0}))};return s.addEventListener("pointerdown",u,!0),()=>{s.removeEventListener("pointerdown",u,!0)}},[r,l,m]),Ie(Vo.Trigger,{ref:f,disabled:P,openOnHover:i,delay:n,closeDelay:e,render:(s,u)=>Ie(Zo,{...t,disabled:P,triggerProps:s,triggerState:u,ref:s.ref})})});var De=(e=>(e.slot="bazzaui-dropdown-menu-arrow",e.open="data-open",e.closed="data-closed",e.side="data-side",e.align="data-align",e.uncentered="data-uncentered",e))(De||{});var ke=(n=>(n.slot="bazzaui-dropdown-menu-backdrop",n.open="data-open",n.closed="data-closed",n.startingStyle="data-starting-style",n.endingStyle="data-ending-style",n))(ke||{});var ze=(n=>(n.slot="bazzaui-dropdown-menu-checkbox-item",n.checked="data-checked",n.unchecked="data-unchecked",n.highlighted="data-highlighted",n.disabled="data-disabled",n))(ze||{}),Le=(o=>(o.slot="bazzaui-dropdown-menu-checkbox-item-indicator",o.checked="data-checked",o.unchecked="data-unchecked",o))(Le||{});var ve=(a=>(a.slot="bazzaui-dropdown-menu-empty",a))(ve||{});var Te=(a=>(a.slot="bazzaui-dropdown-menu-group",a))(Te||{});var Ge=(a=>(a.slot="bazzaui-dropdown-menu-group-label",a))(Ge||{});var _o={slot:"bazzaui-dropdown-menu-icon",open:"data-popup-open"};var Oe=(o=>(o.slot="bazzaui-dropdown-menu-input",o.open="data-open",o.closed="data-closed",o))(Oe||{});var He=(o=>(o.slot="bazzaui-dropdown-menu-item",o.highlighted="data-highlighted",o.disabled="data-disabled",o))(He||{});var Ee=(t=>(t.slot="bazzaui-dropdown-menu-link-item",t.highlighted="data-highlighted",t.disabled="data-disabled",t.first="data-first",t.last="data-last",t.firstInGroup="data-first-in-group",t.lastInGroup="data-last-in-group",t))(Ee||{});var Be=(p=>(p.slot="bazzaui-dropdown-menu-list",p.list="data-popup-menu-list",p))(Be||{});var Fe=(a=>(a.slot="bazzaui-dropdown-menu-loading",a))(Fe||{});var Ne=(r=>(r.slot="bazzaui-dropdown-menu-popup",r.open="data-open",r.closed="data-closed",r.side="data-side",r.align="data-align",r.startingStyle="data-starting-style",r.endingStyle="data-ending-style",r.instant="data-instant",r.focused="data-focused",r.hasOpenSubmenu="data-has-open-submenu",r.submenu="data-submenu",r.navigating="data-navigating",r))(Ne||{});var Ve=(e=>(e.slot="bazzaui-dropdown-menu-positioner",e.open="data-open",e.closed="data-closed",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e))(Ve||{});var je=(p=>(p.slot="bazzaui-dropdown-menu-radio-group",p.disabled="data-disabled",p))(je||{});var Ue=(n=>(n.slot="bazzaui-dropdown-menu-radio-item",n.checked="data-checked",n.unchecked="data-unchecked",n.highlighted="data-highlighted",n.disabled="data-disabled",n))(Ue||{}),Ze=(o=>(o.slot="bazzaui-dropdown-menu-radio-item-indicator",o.checked="data-checked",o.unchecked="data-unchecked",o))(Ze||{});var Qo={slotUp:"bazzaui-dropdown-menu-scroll-up-arrow",slotDown:"bazzaui-dropdown-menu-scroll-down-arrow",direction:"data-direction",side:"data-side"};var _e=(a=>(a.slot="bazzaui-dropdown-menu-separator",a))(_e||{});var Qe=(p=>(p.slot="bazzaui-dropdown-menu-shortcut",p.highlighted="data-highlighted",p))(Qe||{});var We=(e=>(e.slot="bazzaui-dropdown-menu-submenu-trigger",e.submenuTrigger="data-submenu-trigger",e.popupOpen="data-popup-open",e.popupFocused="data-popup-focused",e.highlighted="data-highlighted",e.disabled="data-disabled",e))(We||{}),qe=(p=>(p.slot="bazzaui-dropdown-menu-submenu-trigger-indicator",p.popupOpen="data-popup-open",p))(qe||{});var Je=(o=>(o.slot="bazzaui-dropdown-menu-subpage-back",o.canGoBack="data-can-go-back",o.disabled="data-disabled",o))(Je||{});var Ke=(i=>(i.slot="bazzaui-dropdown-menu-subpage-back-item",i.subpageBackItem="data-subpage-back-item",i.highlighted="data-highlighted",i.disabled="data-disabled",i))(Ke||{});var Xe=(e=>(e.slot="bazzaui-dropdown-menu-subpage-trigger",e.subpageTrigger="data-subpage-trigger",e.popupOpen="data-popup-open",e.popupFocused="data-popup-focused",e.highlighted="data-highlighted",e.disabled="data-disabled",e))(Xe||{});var Ye=(a=>(a.slot="bazzaui-dropdown-menu-surface",a))(Ye||{});export{Do as DataListContext,Io as DataSurfaceContext,ye as DropdownMenu,De as DropdownMenuArrowDataAttributes,ke as DropdownMenuBackdropDataAttributes,ze as DropdownMenuCheckboxItemDataAttributes,Le as DropdownMenuCheckboxItemIndicatorDataAttributes,ve as DropdownMenuEmptyDataAttributes,Te as DropdownMenuGroupDataAttributes,Ge as DropdownMenuGroupLabelDataAttributes,_o as DropdownMenuIconDataAttributes,Oe as DropdownMenuInputDataAttributes,He as DropdownMenuItemDataAttributes,Ee as DropdownMenuLinkItemDataAttributes,Eo as DropdownMenuListCssVars,Be as DropdownMenuListDataAttributes,Fe as DropdownMenuLoadingDataAttributes,Ne as DropdownMenuPopupDataAttributes,zo as DropdownMenuPositionerCssVars,Ve as DropdownMenuPositionerDataAttributes,je as DropdownMenuRadioGroupDataAttributes,k as DropdownMenuRadioGroupValue,Ue as DropdownMenuRadioItemDataAttributes,Ze as DropdownMenuRadioItemIndicatorDataAttributes,Qo as DropdownMenuScrollArrowDataAttributes,_e as DropdownMenuSeparatorDataAttributes,Qe as DropdownMenuShortcutDataAttributes,xo as DropdownMenuStore,We as DropdownMenuSubmenuTriggerDataAttributes,qe as DropdownMenuSubmenuTriggerIndicatorDataAttributes,Je as DropdownMenuSubpageBackDataAttributes,Ke as DropdownMenuSubpageBackItemDataAttributes,Xe as DropdownMenuSubpageTriggerDataAttributes,Ye as DropdownMenuSurfaceDataAttributes,z as DropdownMenuTriggerDataAttributes,bo as commandScore,fo as defaultFilter,Ro as defaultGetResolvedId,vo as defineRadioGroup,To as isDisplayGroupNode,Go as isDisplayRadioGroupNode,Ho as isDisplayRowNode,Oo as isDisplaySeparatorNode,wo as isPopupMenuNode,ko as isTreeItemDef,y as useAsyncMenuCoordinator,I as useDataList,Co as useDataSurfaceContext,Lo as useItem,go as useItemContext,D as useMaybeAsyncMenuCoordinator,C as useMaybeDataList,yo as useMaybeDataSurfaceContext,Mo as useMaybeItemContext,to as useMaybeRootContext,io as useMaybeSubmenuContext,co as useMaybeSubpageContext,Po as useMaybeSubpageStack,ho as useMaybeSurfaceContext,R as useRootContext,so as useSubmenuContext,lo as useSubpageContext,mo as useSubpageStack,So as useSurfaceContext};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/dropdown-menu/index.parts.ts","../../src/dropdown-menu/root/root.tsx","../../src/dropdown-menu/trigger/trigger.tsx","../../src/dropdown-menu/trigger/trigger.data-attrs.ts","../../src/dropdown-menu/arrow/arrow.data-attrs.ts","../../src/dropdown-menu/backdrop/backdrop.data-attrs.ts","../../src/dropdown-menu/checkbox-item/checkbox-item.data-attrs.ts","../../src/dropdown-menu/empty/empty.data-attrs.ts","../../src/dropdown-menu/group/group.data-attrs.ts","../../src/dropdown-menu/group-label/group-label.data-attrs.ts","../../src/dropdown-menu/icon/icon.data-attrs.ts","../../src/dropdown-menu/input/input.data-attrs.ts","../../src/dropdown-menu/item/item.data-attrs.ts","../../src/dropdown-menu/link-item/link-item.data-attrs.ts","../../src/dropdown-menu/list/list.data-attrs.ts","../../src/dropdown-menu/loading/loading.data-attrs.ts","../../src/dropdown-menu/popup/popup.data-attrs.ts","../../src/dropdown-menu/positioner/positioner.data-attrs.ts","../../src/dropdown-menu/radio-group/radio-group.data-attrs.ts","../../src/dropdown-menu/radio-item/radio-item.data-attrs.ts","../../src/dropdown-menu/scroll-arrow/scroll-arrow.data-attrs.ts","../../src/dropdown-menu/separator/separator.data-attrs.ts","../../src/dropdown-menu/shortcut/shortcut.data-attrs.ts","../../src/dropdown-menu/submenu-trigger/submenu-trigger.data-attrs.ts","../../src/dropdown-menu/subpage-back/subpage-back.data-attrs.ts","../../src/dropdown-menu/subpage-back-item/subpage-back-item.data-attrs.ts","../../src/dropdown-menu/subpage-trigger/subpage-trigger.data-attrs.ts","../../src/dropdown-menu/surface/surface.data-attrs.ts"],"sourcesContent":["// ============================================================================\n// Dropdown Menu Parts\n// ============================================================================\n// Re-exports shared components from internal/popup-menu with dropdown-menu specific\n// Root and Trigger components.\n\n// Re-export VirtualItem type from internal/listbox\nexport type { VirtualItem } from '../internal/listbox/index.js'\n// Pure aliases of the canonical resolved-node model (ADR-0001): narrow the\n// alias if a family ever needs to diverge — never edit the canonical type.\nexport type {\n NodeDef,\n PopupMenuNode as Node,\n} from '../internal/popup-menu/index.js'\n// Re-export shared components from internal/popup-menu\nexport {\n PopupMenuArrow as Arrow,\n PopupMenuBackdrop as Backdrop,\n PopupMenuCheckboxItem as CheckboxItem,\n PopupMenuCheckboxItemIndicator as CheckboxItemIndicator,\n PopupMenuEmpty as Empty,\n PopupMenuFocusZone as FocusZone,\n PopupMenuFooter as Footer,\n // Structure\n PopupMenuGroup as Group,\n PopupMenuGroupLabel as GroupLabel,\n PopupMenuGroupValue as GroupValue,\n PopupMenuHeader as Header,\n // Trigger components\n PopupMenuIcon as Icon,\n PopupMenuInput as Input,\n // Items\n PopupMenuItem as Item,\n PopupMenuLinkItem as LinkItem,\n PopupMenuList as List,\n PopupMenuLoading as Loading,\n PopupMenuPopup as Popup,\n // Positioning & Container\n PopupMenuPortal as Portal,\n PopupMenuPositioner as Positioner,\n PopupMenuRadioGroup as RadioGroup,\n PopupMenuRadioGroupValue as RadioGroupValue,\n PopupMenuRadioItem as RadioItem,\n PopupMenuRadioItemIndicator as RadioItemIndicator,\n // Scroll indicators\n PopupMenuScrollDownArrow as ScrollDownArrow,\n PopupMenuScrollUpArrow as ScrollUpArrow,\n PopupMenuSeparator as Separator,\n // Utility\n PopupMenuShortcut as Shortcut,\n // Submenus\n PopupMenuSubmenuRoot as Submenu,\n PopupMenuSubmenuTrigger as SubmenuTrigger,\n PopupMenuSubmenuTriggerIndicator as SubmenuTriggerIndicator,\n PopupMenuSubpage as Subpage,\n PopupMenuSubpageBack as SubpageBack,\n PopupMenuSubpageBackItem as SubpageBackItem,\n PopupMenuSubpageTrigger as SubpageTrigger,\n // Content\n PopupMenuSurface as Surface,\n PopupMenuTree as Tree,\n PopupMenuTreeConnector as TreeConnector,\n PopupMenuTreeItem as TreeItem,\n // Async coordinator hooks\n useAsyncMenuCoordinator,\n useDataList,\n useMaybeAsyncMenuCoordinator,\n useMaybeDataList,\n} from '../internal/popup-menu/index.js'\n// Dropdown-menu specific components\nexport { DropdownMenuRoot as Root } from './root/root.js'\nexport { DropdownMenuTrigger as Trigger } from './trigger/trigger.js'\n","'use client'\n\nimport { Popover, type PopoverRootProps } from '@base-ui/react/popover'\nimport { useCallback, useImperativeHandle, useRef } from 'react'\nimport type { VirtualItem } from '../../internal/listbox/index.js'\nimport {\n type PopupMenuDebugOptions,\n type PopupMenuHighlightChangeHandler,\n PopupMenuProviders,\n type PopupMenuRootActions,\n type UsePopupMenuRootParams,\n usePopupMenuRoot,\n} from '../../internal/popup-menu/index.js'\nimport type {\n GetResolvedIdFn,\n PopupMenuIdScope,\n} from '../../internal/popup-menu/menu-tree/types.js'\nimport type {\n DropdownMenuHighlightChangeEventDetails,\n DropdownMenuOpenChangeEventDetails,\n} from '../events.js'\n\nexport interface DropdownMenuRootProps\n extends Omit<\n PopoverRootProps,\n 'open' | 'onOpenChange' | 'defaultOpen' | 'actionsRef'\n > {\n /**\n * Whether the dropdown menu is open.\n * Use for controlled mode.\n */\n open?: boolean\n\n /**\n * Callback when the open state changes.\n * The second parameter contains event details including the reason for the change.\n */\n onOpenChange?: (\n open: boolean,\n eventDetails: DropdownMenuOpenChangeEventDetails,\n ) => void\n\n /**\n * Whether the dropdown menu is initially open.\n * Use for uncontrolled mode.\n * @default false\n */\n defaultOpen?: boolean\n\n /**\n * Determines if the dropdown menu enters a modal state when open.\n *\n * - `true`: user interaction is limited to the dropdown menu: document page scroll\n * is locked, and pointer interactions on outside elements are disabled.\n * - `false`: user interaction with the rest of the document is allowed.\n * - `'trap-focus'`: focus is trapped inside the dropdown menu, but document page\n * scroll is not locked and pointer interactions outside of it remain enabled.\n *\n * @default true\n */\n modal?: boolean | 'trap-focus'\n\n /**\n * Whether the component should ignore user interaction.\n * @default false\n */\n disabled?: boolean\n\n /**\n * Whether virtualization mode is enabled.\n * When true, items should provide an explicit `index` prop and\n * the `items` prop should be provided for navigation to work correctly.\n * @default false\n */\n virtualized?: boolean\n\n /**\n * Pre-registered items for virtualization.\n * When provided with `virtualized={true}`, this allows navigation to work\n * for items that aren't currently mounted in the DOM.\n */\n items?: VirtualItem[]\n\n /**\n * Callback when the highlighted item changes.\n * Useful for synchronizing with a virtualizer (e.g., scrollToIndex) or other UI state.\n * `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.\n * The fourth parameter contains event details including the reason for the change.\n */\n onHighlightChange?: PopupMenuHighlightChangeHandler<DropdownMenuHighlightChangeEventDetails>\n\n /**\n * When to close the menu on outside interactions (clicking outside or clicking the trigger when open).\n * - `'pointerdown'`: Close immediately when pointer is pressed outside (default)\n * - `'click'`: Close when a full click (pointerdown + pointerup) occurs outside\n * @default 'pointerdown'\n */\n closeOnOutsidePress?: 'click' | 'pointerdown'\n\n /**\n * Event handler called after any open/close animations have completed.\n * When `clearSearchOnClose=\"after-exit\"` is set on Surface, the search\n * will be cleared before this callback is invoked.\n */\n onOpenChangeComplete?: (open: boolean) => void\n\n /**\n * A ref to imperative actions.\n * - `close`: closes the menu imperatively.\n * - `unmount`: unmounts the popup imperatively (when keep-mounted mode is enabled).\n * - `setDisabled`: enables/disables the menu imperatively.\n */\n actionsRef?: React.RefObject<DropdownMenuRoot.Actions | null>\n\n /**\n * Computes canonical Resolved IDs for data-first content from the Unresolved Menu Node (definitional facts only).\n * @default encoded surface Definition Path joined with `/`; `idScope=\"menu\"` uses the Definition Key\n * 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.\n * @example\n * <DropdownMenu.Root getResolvedId={(node) => node.def.id ?? node.definitionPath.join('.')} />\n */\n getResolvedId?: GetResolvedIdFn\n /** Definition Key uniqueness scope. Read once when the menu root mounts. @default 'surface' */\n idScope?: PopupMenuIdScope\n\n /**\n * Debug visualization options for submenu interaction heuristics.\n */\n debug?: PopupMenuDebugOptions\n\n children: React.ReactNode\n}\n\n/**\n * Groups all parts of the dropdown menu.\n * Manages open state and provides context to children.\n * Doesn't render its own HTML element.\n */\nexport function DropdownMenuRoot(props: DropdownMenuRoot.Props) {\n const {\n open: openProp,\n onOpenChange,\n defaultOpen = false,\n modal = true,\n disabled = false,\n virtualized = false,\n items: itemsProp,\n onHighlightChange,\n closeOnOutsidePress = 'pointerdown',\n onOpenChangeComplete: onOpenChangeCompleteProp,\n actionsRef,\n getResolvedId,\n idScope = 'surface',\n debug,\n children,\n ...rest\n } = props\n\n // Use shared hook to create stores and utilities\n const {\n store,\n focusOwnerStore,\n openChainStore,\n registerSurface,\n closeAll,\n virtualization,\n handleOpenChange,\n disabled: menuDisabled,\n setDisabled,\n menuTreeResolver,\n } = usePopupMenuRoot({\n // Cast to generic type - component handles type safety via narrowed types\n onOpenChange:\n onOpenChange as unknown as UsePopupMenuRootParams['onOpenChange'],\n defaultOpen,\n virtualized,\n items: itemsProp,\n onHighlightChange:\n onHighlightChange as unknown as UsePopupMenuRootParams['onHighlightChange'],\n closeOnOutsidePress,\n disabled,\n getResolvedId,\n idScope,\n })\n\n const popoverActionsRef = useRef<Popover.Root.Actions | null>(null)\n\n useImperativeHandle(\n actionsRef,\n () => ({\n close: () => {\n popoverActionsRef.current?.close()\n },\n unmount: () => {\n popoverActionsRef.current?.unmount()\n },\n setDisabled,\n }),\n [setDisabled],\n )\n\n // Sync controlled open prop to store\n store.useControlledProp('openProp', openProp)\n\n // Get open state from store for Popover\n const open = store.useState('open')\n\n // Handle animation complete - clear search and hide input if clearSearchOnClose is 'after-exit'\n const handleOpenChangeComplete = useCallback(\n (nextOpen: boolean) => {\n // Clear search and hide input after exit animation completes\n if (!nextOpen && store.context.clearSearchOnClose === 'after-exit') {\n store.clearSearch()\n store.setInputActive(false)\n }\n // Reset row width measurements after close animation completes\n if (!nextOpen) {\n store.clearHighlight()\n store.context.onCloseComplete?.()\n store.context.onPopupCloseComplete?.()\n }\n // Call user's callback\n onOpenChangeCompleteProp?.(nextOpen)\n },\n [store, onOpenChangeCompleteProp],\n )\n\n // Wrapper to adapt Popover's event details to our handleOpenChange\n const handlePopoverOpenChange = useCallback(\n (nextOpen: boolean, popoverDetails: Popover.Root.ChangeEventDetails) => {\n // Forward to our internal handler with the reason and event\n handleOpenChange(\n nextOpen,\n popoverDetails.reason as DropdownMenuOpenChangeEventDetails['reason'],\n popoverDetails.event,\n )\n },\n [handleOpenChange],\n )\n\n return (\n <PopupMenuProviders\n store={store}\n menuTreeResolver={menuTreeResolver}\n focusOwnerStore={focusOwnerStore}\n openChainStore={openChainStore}\n disabled={menuDisabled}\n depth={0}\n closeAll={closeAll}\n explicitTabBehavior\n registerSurface={registerSurface}\n virtualization={virtualization}\n menuType=\"dropdown\"\n closeOnOutsidePress={closeOnOutsidePress}\n debug={debug}\n componentName=\"dropdown-menu\"\n >\n <Popover.Root\n {...rest}\n open={open}\n onOpenChange={handlePopoverOpenChange}\n onOpenChangeComplete={handleOpenChangeComplete}\n modal={modal}\n actionsRef={actionsRef ? popoverActionsRef : undefined}\n >\n {children}\n </Popover.Root>\n </PopupMenuProviders>\n )\n}\n\nexport namespace DropdownMenuRoot {\n export interface Props extends DropdownMenuRootProps {}\n export type OpenChangeEventDetails = DropdownMenuOpenChangeEventDetails\n export type HighlightChangeEventDetails =\n DropdownMenuHighlightChangeEventDetails\n export type Actions = PopupMenuRootActions\n}\n","'use client'\n\nimport { Popover } from '@base-ui/react/popover'\nimport { useRender } from '@base-ui/react/use-render'\nimport * as React from 'react'\nimport { usePopupMenuContext } from '../../internal/popup-menu/contexts/popup-menu-context.js'\nimport { REASONS } from '../../utils/events/index.js'\nimport { mergeElementProps } from '../../utils/merge-element-props.js'\nimport type { ComponentProps } from '../../utils/types.js'\nimport { DropdownMenuTriggerDataAttributes } from './trigger.data-attrs.js'\n\nexport { DropdownMenuTriggerDataAttributes }\n\nexport interface DropdownMenuTriggerState extends Record<string, unknown> {\n /**\n * Whether the dropdown menu is open.\n */\n open: boolean\n /**\n * Whether the trigger is disabled.\n */\n disabled: boolean\n}\n\nexport interface DropdownMenuTriggerProps\n extends ComponentProps<'button', DropdownMenuTrigger.State> {\n /**\n * Whether the trigger is disabled.\n */\n disabled?: boolean\n /**\n * Whether the menu opens when hovering the trigger.\n * @default false\n */\n openOnHover?: boolean\n /**\n * Delay before opening on hover (in milliseconds).\n * Only applies when `openOnHover` is true.\n * @default 100\n */\n delay?: number\n /**\n * Delay before closing when pointer leaves (in milliseconds).\n * Only applies when `openOnHover` is true.\n * @default 0\n */\n closeDelay?: number\n}\n\nconst stateAttributesMapping = {\n open: (value: unknown): Record<string, string> | null =>\n value ? { [DropdownMenuTriggerDataAttributes.popupOpen]: '' } : null,\n disabled: (value: unknown): Record<string, string> | null =>\n value ? { 'data-disabled': '' } : null,\n}\n\n/**\n * Inner component that renders using useRender.\n */\nconst DropdownMenuTriggerInner = React.forwardRef<\n HTMLButtonElement,\n DropdownMenuTriggerProps & {\n triggerProps: React.ComponentPropsWithRef<'button'>\n triggerState: { open: boolean; disabled: boolean }\n }\n>(function DropdownMenuTriggerInner(props, forwardedRef) {\n const {\n render,\n children,\n disabled: _disabled,\n className,\n style,\n triggerProps,\n triggerState,\n openOnHover: _openOnHover,\n delay: _delay,\n closeDelay: _closeDelay,\n ...rest\n } = props\n\n const state: DropdownMenuTrigger.State = React.useMemo(\n () => ({\n open: triggerState.open,\n disabled: triggerState.disabled,\n }),\n [triggerState.open, triggerState.disabled],\n )\n\n return useRender({\n render,\n ref: forwardedRef,\n state,\n stateAttributesMapping,\n props: {\n ...mergeElementProps<'button'>(triggerProps, {\n ...rest,\n className,\n style,\n children,\n } as Partial<React.ComponentPropsWithRef<'button'>>),\n [DropdownMenuTriggerDataAttributes.slot]: '',\n },\n defaultTagName: 'button',\n })\n})\n\n/**\n * A button that opens the dropdown menu.\n * Renders a `<button>` element.\n *\n * Supports `openOnHover` to open the menu when hovering the trigger,\n * with configurable `delay` and `closeDelay`.\n *\n * When `closeOnOutsidePress` is set to `'pointerdown'` on the Root,\n * the trigger will close the menu immediately on pointerdown when open.\n */\nexport const DropdownMenuTrigger = React.forwardRef<\n HTMLButtonElement,\n DropdownMenuTrigger.Props\n>(function DropdownMenuTrigger(props, forwardedRef) {\n const { disabled, openOnHover, delay = 100, closeDelay, ...rest } = props\n\n const {\n store,\n closeAll,\n closeOnOutsidePress,\n disabled: rootDisabled,\n } = usePopupMenuContext()\n const isOpen = store.useState('open')\n const isDisabled = disabled || rootDisabled\n\n // We need to intercept pointerdown before it reaches Popover.Trigger\n // This ref tracks the element so we can add a one-time click blocker\n const triggerRef = React.useRef<HTMLButtonElement | null>(null)\n\n // Combine refs\n const setRef = React.useCallback(\n (element: HTMLButtonElement | null) => {\n triggerRef.current = element\n if (typeof forwardedRef === 'function') {\n forwardedRef(element)\n } else if (forwardedRef) {\n forwardedRef.current = element\n }\n },\n [forwardedRef],\n )\n\n // Handle pointerdown to close on press when open\n React.useEffect(() => {\n const trigger = triggerRef.current\n if (!trigger || closeOnOutsidePress !== 'pointerdown') return\n\n const handlePointerDown = (event: PointerEvent) => {\n // If menu is open, close it immediately and block the click\n if (isOpen) {\n closeAll(REASONS.triggerPress, event)\n\n // Block the upcoming click from reaching Popover.Trigger\n // This prevents the toggle behavior from reopening the menu\n trigger.addEventListener(\n 'click',\n (clickEvent) => {\n clickEvent.stopPropagation()\n clickEvent.preventDefault()\n },\n { once: true, capture: true },\n )\n }\n }\n\n // Use capture phase to see the event before Popover.Trigger\n trigger.addEventListener('pointerdown', handlePointerDown, true)\n return () => {\n trigger.removeEventListener('pointerdown', handlePointerDown, true)\n }\n }, [isOpen, closeAll, closeOnOutsidePress])\n\n return (\n <Popover.Trigger\n ref={setRef}\n disabled={isDisabled}\n openOnHover={openOnHover}\n delay={delay}\n closeDelay={closeDelay}\n render={(triggerProps, triggerState) => (\n <DropdownMenuTriggerInner\n {...rest}\n disabled={isDisabled}\n triggerProps={triggerProps}\n triggerState={triggerState}\n ref={triggerProps.ref as React.Ref<HTMLButtonElement>}\n />\n )}\n />\n )\n})\n\nexport namespace DropdownMenuTrigger {\n export interface Props extends DropdownMenuTriggerProps {}\n export type State = DropdownMenuTriggerState\n}\n","export enum DropdownMenuTriggerDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-trigger'}\n */\n slot = 'bazzaui-dropdown-menu-trigger',\n /**\n * Present when the corresponding dropdown menu is open.\n */\n popupOpen = 'data-popup-open',\n /**\n * Present when the trigger is pressed.\n */\n pressed = 'data-pressed',\n}\n","export enum DropdownMenuArrowDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-arrow'}\n */\n slot = 'bazzaui-dropdown-menu-arrow',\n /**\n * Present when the popup menu is open.\n */\n open = 'data-open',\n /**\n * Present when the popup menu is closed.\n */\n closed = 'data-closed',\n /**\n * Indicates which side the popup is positioned relative to the trigger.\n * @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}\n */\n side = 'data-side',\n /**\n * Indicates how the popup is aligned relative to specified side.\n * @type {'start' | 'center' | 'end'}\n */\n align = 'data-align',\n /**\n * Present when the arrow is not centered due to collision avoidance.\n */\n uncentered = 'data-uncentered',\n}\n","export enum DropdownMenuBackdropDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-backdrop'}\n */\n slot = 'bazzaui-dropdown-menu-backdrop',\n /**\n * Present when the popup menu is open.\n */\n open = 'data-open',\n /**\n * Present when the popup menu is closed.\n */\n closed = 'data-closed',\n /**\n * Present when the popup menu is animating in.\n */\n startingStyle = 'data-starting-style',\n /**\n * Present when the popup menu is animating out.\n */\n endingStyle = 'data-ending-style',\n}\n","export enum DropdownMenuCheckboxItemDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-checkbox-item'}\n */\n slot = 'bazzaui-dropdown-menu-checkbox-item',\n /**\n * Present when the checkbox item is checked.\n */\n checked = 'data-checked',\n /**\n * Present when the checkbox item is unchecked.\n */\n unchecked = 'data-unchecked',\n /**\n * Present when the item is highlighted (via keyboard or pointer).\n */\n highlighted = 'data-highlighted',\n /**\n * Present when the item is disabled.\n */\n disabled = 'data-disabled',\n}\n\nexport enum DropdownMenuCheckboxItemIndicatorDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-checkbox-item-indicator'}\n */\n slot = 'bazzaui-dropdown-menu-checkbox-item-indicator',\n /**\n * Present when the checkbox item is checked.\n */\n checked = 'data-checked',\n /**\n * Present when the checkbox item is unchecked.\n */\n unchecked = 'data-unchecked',\n}\n","export enum DropdownMenuEmptyDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-empty'}\n */\n slot = 'bazzaui-dropdown-menu-empty',\n}\n","export enum DropdownMenuGroupDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-group'}\n */\n slot = 'bazzaui-dropdown-menu-group',\n}\n","export enum DropdownMenuGroupLabelDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-group-label'}\n */\n slot = 'bazzaui-dropdown-menu-group-label',\n}\n","export const DropdownMenuIconDataAttributes = {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-icon'}\n */\n slot: 'bazzaui-dropdown-menu-icon',\n /** Present when the popup is open. */\n open: 'data-popup-open',\n} as const\n","export enum DropdownMenuInputDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-input'}\n */\n slot = 'bazzaui-dropdown-menu-input',\n /**\n * Present when the popup menu is open.\n */\n open = 'data-open',\n /**\n * Present when the popup menu is closed.\n */\n closed = 'data-closed',\n}\n","export enum DropdownMenuItemDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-item'}\n */\n slot = 'bazzaui-dropdown-menu-item',\n /**\n * Present when the item is highlighted (via keyboard or pointer).\n */\n highlighted = 'data-highlighted',\n /**\n * Present when the item is disabled.\n */\n disabled = 'data-disabled',\n}\n","export enum DropdownMenuLinkItemDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-link-item'}\n */\n slot = 'bazzaui-dropdown-menu-link-item',\n /**\n * Present when the item is highlighted (via keyboard or pointer).\n */\n highlighted = 'data-highlighted',\n /**\n * Present when the item is disabled.\n */\n disabled = 'data-disabled',\n /** Present when this row is the first visible list-level row (not inside a group). */\n first = 'data-first',\n /** Present when this row is the last visible list-level row (not inside a group). */\n last = 'data-last',\n /** Present when this row is the first visible row within its group. */\n firstInGroup = 'data-first-in-group',\n /** Present when this row is the last visible row within its group. */\n lastInGroup = 'data-last-in-group',\n}\n","export enum DropdownMenuListDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-list'}\n */\n slot = 'bazzaui-dropdown-menu-list',\n /**\n * Always present on the list element.\n * Used for styling and by useStickyRowWidth to find the list container.\n */\n list = 'data-popup-menu-list',\n}\n","export enum DropdownMenuLoadingDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-loading'}\n */\n slot = 'bazzaui-dropdown-menu-loading',\n}\n","export enum DropdownMenuPopupDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-popup'}\n */\n slot = 'bazzaui-dropdown-menu-popup',\n /**\n * Present when the popup menu is open.\n */\n open = 'data-open',\n /**\n * Present when the popup menu is closed.\n */\n closed = 'data-closed',\n /**\n * Indicates which side the popup is positioned relative to the trigger.\n * @type {'top' | 'bottom' | 'left' | 'right'}\n */\n side = 'data-side',\n /**\n * Indicates how the popup is aligned relative to specified side.\n * @type {'start' | 'center' | 'end'}\n */\n align = 'data-align',\n /**\n * Present when the popup is animating in.\n */\n startingStyle = 'data-starting-style',\n /**\n * Present when the popup is animating out.\n */\n endingStyle = 'data-ending-style',\n /**\n * Present if animations should be instant.\n * @type {'click' | 'dismiss'}\n */\n instant = 'data-instant',\n /**\n * Present when this popup's surface is the focus owner.\n * Useful for styling the currently focused menu in a submenu chain.\n */\n focused = 'data-focused',\n /**\n * Present when this popup has an open submenu below it in the menu tree.\n * Useful for styling all parent menus in an open submenu chain.\n */\n hasOpenSubmenu = 'data-has-open-submenu',\n /**\n * Present when this popup is a submenu (not the root menu).\n * Useful for applying different styles to submenus vs root menus.\n */\n submenu = 'data-submenu',\n /**\n * Present while navigating between subpages in this popup.\n * Useful for temporary transition adjustments during subpage focus handoff.\n */\n navigating = 'data-navigating',\n}\n","export enum DropdownMenuPositionerDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-positioner'}\n */\n slot = 'bazzaui-dropdown-menu-positioner',\n /**\n * Present when the popup menu is open.\n */\n open = 'data-open',\n /**\n * Present when the popup menu is closed.\n */\n closed = 'data-closed',\n /**\n * Present when the anchor is hidden.\n */\n anchorHidden = 'data-anchor-hidden',\n /**\n * Indicates which side the popup is positioned relative to the trigger.\n * @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}\n */\n side = 'data-side',\n /**\n * Indicates how the popup is aligned relative to specified side.\n * @type {'start' | 'center' | 'end' | 'list-start'}\n */\n align = 'data-align',\n}\n","export enum DropdownMenuRadioGroupDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-radio-group'}\n */\n slot = 'bazzaui-dropdown-menu-radio-group',\n /**\n * Present when the radio group is disabled.\n */\n disabled = 'data-disabled',\n}\n","export enum DropdownMenuRadioItemDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-radio-item'}\n */\n slot = 'bazzaui-dropdown-menu-radio-item',\n /**\n * Present when the radio item is checked/selected.\n */\n checked = 'data-checked',\n /**\n * Present when the radio item is unchecked.\n */\n unchecked = 'data-unchecked',\n /**\n * Present when the item is highlighted (via keyboard or pointer).\n */\n highlighted = 'data-highlighted',\n /**\n * Present when the item is disabled.\n */\n disabled = 'data-disabled',\n}\n\nexport enum DropdownMenuRadioItemIndicatorDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-radio-item-indicator'}\n */\n slot = 'bazzaui-dropdown-menu-radio-item-indicator',\n /**\n * Present when the radio item is checked/selected.\n */\n checked = 'data-checked',\n /**\n * Present when the radio item is unchecked.\n */\n unchecked = 'data-unchecked',\n}\n","export const DropdownMenuScrollArrowDataAttributes = {\n /**\n * Identifies the component part for scroll up arrow.\n * @type {'bazzaui-dropdown-menu-scroll-up-arrow'}\n */\n slotUp: 'bazzaui-dropdown-menu-scroll-up-arrow',\n /**\n * Identifies the component part for scroll down arrow.\n * @type {'bazzaui-dropdown-menu-scroll-down-arrow'}\n */\n slotDown: 'bazzaui-dropdown-menu-scroll-down-arrow',\n /**\n * Direction of the scroll arrow.\n * @type {'up' | 'down'}\n */\n direction: 'data-direction',\n /**\n * Side of the popup.\n * @type {'top' | 'bottom' | 'left' | 'right'}\n */\n side: 'data-side',\n} as const\n","export enum DropdownMenuSeparatorDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-separator'}\n */\n slot = 'bazzaui-dropdown-menu-separator',\n}\n","export enum DropdownMenuShortcutDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-shortcut'}\n */\n slot = 'bazzaui-dropdown-menu-shortcut',\n /**\n * Present when the parent item is highlighted.\n */\n highlighted = 'data-highlighted',\n}\n","export enum DropdownMenuSubmenuTriggerDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-submenu-trigger'}\n */\n slot = 'bazzaui-dropdown-menu-submenu-trigger',\n /**\n * Present on submenu trigger elements.\n */\n submenuTrigger = 'data-submenu-trigger',\n /**\n * Present when the submenu popup is open.\n */\n popupOpen = 'data-popup-open',\n /**\n * Present when the submenu owns keyboard focus.\n */\n popupFocused = 'data-popup-focused',\n /**\n * Present when the item is highlighted.\n */\n highlighted = 'data-highlighted',\n /**\n * Present when the item is disabled.\n */\n disabled = 'data-disabled',\n}\n\nexport enum DropdownMenuSubmenuTriggerIndicatorDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-submenu-trigger-indicator'}\n */\n slot = 'bazzaui-dropdown-menu-submenu-trigger-indicator',\n /**\n * Present when the submenu popup is open.\n */\n popupOpen = 'data-popup-open',\n}\n","export enum DropdownMenuSubpageBackDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-subpage-back'}\n */\n slot = 'bazzaui-dropdown-menu-subpage-back',\n /**\n * Present when navigating back is available.\n */\n canGoBack = 'data-can-go-back',\n /**\n * Present when the button is disabled.\n */\n disabled = 'data-disabled',\n}\n","export enum DropdownMenuSubpageBackItemDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-subpage-back-item'}\n */\n slot = 'bazzaui-dropdown-menu-subpage-back-item',\n /**\n * Present on subpage back item elements.\n */\n subpageBackItem = 'data-subpage-back-item',\n /**\n * Present when the item is highlighted.\n */\n highlighted = 'data-highlighted',\n /**\n * Present when the item is disabled.\n */\n disabled = 'data-disabled',\n}\n","export enum DropdownMenuSubpageTriggerDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-subpage-trigger'}\n */\n slot = 'bazzaui-dropdown-menu-subpage-trigger',\n /**\n * Present on subpage trigger elements.\n */\n subpageTrigger = 'data-subpage-trigger',\n /**\n * Present when the target page is active.\n */\n popupOpen = 'data-popup-open',\n /**\n * Present when the target page owns keyboard focus.\n */\n popupFocused = 'data-popup-focused',\n /**\n * Present when the item is highlighted.\n */\n highlighted = 'data-highlighted',\n /**\n * Present when the item is disabled.\n */\n disabled = 'data-disabled',\n}\n","export enum DropdownMenuSurfaceDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-surface'}\n */\n slot = 'bazzaui-dropdown-menu-surface',\n}\n"],"mappings":"6vBAAA,IAAAA,GAAA,GAAAC,GAAAD,GAAA,WAAAE,EAAA,aAAAC,EAAA,iBAAAC,EAAA,0BAAAC,EAAA,UAAAC,EAAA,cAAAC,GAAA,WAAAC,GAAA,UAAAC,GAAA,eAAAC,EAAA,eAAAC,GAAA,WAAAC,GAAA,SAAAC,EAAA,UAAAC,EAAA,SAAAC,EAAA,aAAAC,EAAA,SAAAC,EAAA,YAAAC,EAAA,UAAAC,EAAA,WAAAC,EAAA,eAAAC,EAAA,eAAAC,GAAA,oBAAAC,EAAA,cAAAC,GAAA,uBAAAC,GAAA,SAAAC,GAAA,oBAAAC,EAAA,kBAAAC,EAAA,cAAAC,GAAA,aAAAC,GAAA,YAAAC,GAAA,mBAAAC,GAAA,4BAAAC,GAAA,YAAAC,GAAA,gBAAAC,GAAA,oBAAAC,GAAA,mBAAAC,GAAA,YAAAC,EAAA,SAAAC,GAAA,kBAAAC,GAAA,aAAAC,GAAA,YAAAC,GAAA,4BAAAC,EAAA,gBAAAC,EAAA,iCAAAC,EAAA,qBAAAC,ICEA,OAAS,WAAAC,OAAsC,yBAC/C,OAAS,eAAAC,GAAa,uBAAAC,GAAqB,UAAAC,OAAc,QA8PnD,cAAAC,OAAA,oBAvHC,SAASC,GAAiBC,EAA+B,CAC9D,GAAM,CACJ,KAAMC,EACN,aAAAC,EACA,YAAAC,EAAc,GACd,MAAAC,EAAQ,GACR,SAAAC,EAAW,GACX,YAAAC,EAAc,GACd,MAAOC,EACP,kBAAAC,EACA,oBAAAC,EAAsB,cACtB,qBAAsBC,EACtB,WAAAC,EACA,cAAAC,EACA,QAAAC,EAAU,UACV,MAAAC,EACA,SAAAC,EACA,GAAGC,CACL,EAAIhB,EAGE,CACJ,MAAAiB,EACA,gBAAAC,EACA,eAAAC,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IPA,EAAA,QAAU,eAIVA,EAAA,UAAY,iBAIZA,EAAA,YAAc,mBAIdA,EAAA,SAAW,gBArBDA,QAAA,IAwBAC,QAKVA,EAAA,KAAO,6CAIPA,EAAA,QAAU,eAIVA,EAAA,UAAY,iBAbFA,QAAA,ICxBL,IAAMC,GAAwC,CAKnD,OAAQ,wCAKR,SAAU,0CAKV,UAAW,iBAKX,KAAM,WACR,ECrBO,IAAKC,QAKVA,EAAA,KAAO,kCALGA,QAAA,ICAL,IAAKC,QAKVA,EAAA,KAAO,iCAIPA,EAAA,YAAc,mBATJA,QAAA,ICAL,IAAKC,QAKVA,EAAA,KAAO,wCAIPA,EAAA,eAAiB,uBAIjBA,EAAA,UAAY,kBAIZA,EAAA,aAAe,qBAIfA,EAAA,YAAc,mBAIdA,EAAA,SAAW,gBAzBDA,QAAA,IA4BAC,QAKVA,EAAA,KAAO,kDAIPA,EAAA,UAAY,kBATFA,QAAA,IC5BL,IAAKC,QAKVA,EAAA,KAAO,qCAIPA,EAAA,UAAY,mBAIZA,EAAA,SAAW,gBAbDA,QAAA,ICAL,IAAKC,QAKVA,EAAA,KAAO,0CAIPA,EAAA,gBAAkB,yBAIlBA,EAAA,YAAc,mBAIdA,EAAA,SAAW,gBAjBDA,QAAA,ICAL,IAAKC,QAKVA,EAAA,KAAO,wCAIPA,EAAA,eAAiB,uBAIjBA,EAAA,UAAY,kBAIZA,EAAA,aAAe,qBAIfA,EAAA,YAAc,mBAIdA,EAAA,SAAW,gBAzBDA,QAAA,ICAL,IAAKC,QAKVA,EAAA,KAAO,gCALGA,QAAA","names":["index_parts_exports","__export","PopupMenuArrow","PopupMenuBackdrop","PopupMenuCheckboxItem","PopupMenuCheckboxItemIndicator","PopupMenuEmpty","PopupMenuFocusZone","PopupMenuFooter","PopupMenuGroup","PopupMenuGroupLabel","PopupMenuGroupValue","PopupMenuHeader","PopupMenuIcon","PopupMenuInput","PopupMenuItem","PopupMenuLinkItem","PopupMenuList","PopupMenuLoading","PopupMenuPopup","PopupMenuPortal","PopupMenuPositioner","PopupMenuRadioGroup","PopupMenuRadioGroupValue","PopupMenuRadioItem","PopupMenuRadioItemIndicator","DropdownMenuRoot","PopupMenuScrollDownArrow","PopupMenuScrollUpArrow","PopupMenuSeparator","PopupMenuShortcut","PopupMenuSubmenuRoot","PopupMenuSubmenuTrigger","PopupMenuSubmenuTriggerIndicator","PopupMenuSubpage","PopupMenuSubpageBack","PopupMenuSubpageBackItem","PopupMenuSubpageTrigger","PopupMenuSurface","PopupMenuTree","PopupMenuTreeConnector","PopupMenuTreeItem","DropdownMenuTrigger","useAsyncMenuCoordinator","useDataList","useMaybeAsyncMenuCoordinator","useMaybeDataList","Popover","useCallback","useImperativeHandle","useRef","jsx","DropdownMenuRoot","props","openProp","onOpenChange","defaultOpen","modal","disabled","virtualized","itemsProp","onHighlightChange","closeOnOutsidePress","onOpenChangeCompleteProp","actionsRef","getResolvedId","idScope","debug","children","rest","store","focusOwnerStore","openChainStore","registerSurface","closeAll","virtualization","handleOpenChange","menuDisabled","setDisabled","menuTreeResolver","usePopupMenuRoot","popoverActionsRef","useRef","useImperativeHandle","open","handleOpenChangeComplete","useCallback","nextOpen","handlePopoverOpenChange","popoverDetails","PopupMenuProviders","Popover","Popover","useRender","React","DropdownMenuTriggerDataAttributes","jsx","stateAttributesMapping","value","DropdownMenuTriggerInner","props","forwardedRef","render","children","_disabled","className","style","triggerProps","triggerState","_openOnHover","_delay","_closeDelay","rest","state","useRender","mergeElementProps","DropdownMenuTrigger","disabled","openOnHover","delay","closeDelay","store","closeAll","closeOnOutsidePress","rootDisabled","usePopupMenuContext","isOpen","isDisabled","triggerRef","setRef","element","trigger","handlePointerDown","event","reason_parts_exports","clickEvent","jsx","Popover","DropdownMenuArrowDataAttributes","DropdownMenuBackdropDataAttributes","DropdownMenuCheckboxItemDataAttributes","DropdownMenuCheckboxItemIndicatorDataAttributes","DropdownMenuEmptyDataAttributes","DropdownMenuGroupDataAttributes","DropdownMenuGroupLabelDataAttributes","DropdownMenuIconDataAttributes","DropdownMenuInputDataAttributes","DropdownMenuItemDataAttributes","DropdownMenuLinkItemDataAttributes","DropdownMenuListDataAttributes","DropdownMenuLoadingDataAttributes","DropdownMenuPopupDataAttributes","DropdownMenuPositionerDataAttributes","DropdownMenuRadioGroupDataAttributes","DropdownMenuRadioItemDataAttributes","DropdownMenuRadioItemIndicatorDataAttributes","DropdownMenuScrollArrowDataAttributes","DropdownMenuSeparatorDataAttributes","DropdownMenuShortcutDataAttributes","DropdownMenuSubmenuTriggerDataAttributes","DropdownMenuSubmenuTriggerIndicatorDataAttributes","DropdownMenuSubpageBackDataAttributes","DropdownMenuSubpageBackItemDataAttributes","DropdownMenuSubpageTriggerDataAttributes","DropdownMenuSurfaceDataAttributes"]}
|
|
1
|
+
{"version":3,"sources":["../../src/dropdown-menu/index.parts.ts","../../src/dropdown-menu/root/root.tsx","../../src/dropdown-menu/trigger/trigger.tsx","../../src/dropdown-menu/trigger/trigger.data-attrs.ts","../../src/dropdown-menu/arrow/arrow.data-attrs.ts","../../src/dropdown-menu/backdrop/backdrop.data-attrs.ts","../../src/dropdown-menu/checkbox-item/checkbox-item.data-attrs.ts","../../src/dropdown-menu/empty/empty.data-attrs.ts","../../src/dropdown-menu/group/group.data-attrs.ts","../../src/dropdown-menu/group-label/group-label.data-attrs.ts","../../src/dropdown-menu/icon/icon.data-attrs.ts","../../src/dropdown-menu/input/input.data-attrs.ts","../../src/dropdown-menu/item/item.data-attrs.ts","../../src/dropdown-menu/link-item/link-item.data-attrs.ts","../../src/dropdown-menu/list/list.data-attrs.ts","../../src/dropdown-menu/loading/loading.data-attrs.ts","../../src/dropdown-menu/popup/popup.data-attrs.ts","../../src/dropdown-menu/positioner/positioner.data-attrs.ts","../../src/dropdown-menu/radio-group/radio-group.data-attrs.ts","../../src/dropdown-menu/radio-item/radio-item.data-attrs.ts","../../src/dropdown-menu/scroll-arrow/scroll-arrow.data-attrs.ts","../../src/dropdown-menu/separator/separator.data-attrs.ts","../../src/dropdown-menu/shortcut/shortcut.data-attrs.ts","../../src/dropdown-menu/submenu-trigger/submenu-trigger.data-attrs.ts","../../src/dropdown-menu/subpage-back/subpage-back.data-attrs.ts","../../src/dropdown-menu/subpage-back-item/subpage-back-item.data-attrs.ts","../../src/dropdown-menu/subpage-trigger/subpage-trigger.data-attrs.ts","../../src/dropdown-menu/surface/surface.data-attrs.ts"],"sourcesContent":["// ============================================================================\n// Dropdown Menu Parts\n// ============================================================================\n// Re-exports shared components from internal/popup-menu with dropdown-menu specific\n// Root and Trigger components.\n\n// Re-export VirtualItem type from internal/listbox\nexport type { VirtualItem } from '../internal/listbox/index.js'\n// Pure aliases of the canonical resolved-node model (ADR-0001): narrow the\n// alias if a family ever needs to diverge — never edit the canonical type.\nexport type {\n NodeDef,\n PopupMenuNode as Node,\n} from '../internal/popup-menu/index.js'\n// Re-export shared components from internal/popup-menu\nexport {\n PopupMenuArrow as Arrow,\n PopupMenuBackdrop as Backdrop,\n PopupMenuCheckboxItem as CheckboxItem,\n PopupMenuCheckboxItemIndicator as CheckboxItemIndicator,\n PopupMenuEmpty as Empty,\n PopupMenuFocusZone as FocusZone,\n PopupMenuFooter as Footer,\n // Structure\n PopupMenuGroup as Group,\n PopupMenuGroupLabel as GroupLabel,\n PopupMenuGroupValue as GroupValue,\n PopupMenuHeader as Header,\n // Trigger components\n PopupMenuIcon as Icon,\n PopupMenuInput as Input,\n // Items\n PopupMenuItem as Item,\n PopupMenuLinkItem as LinkItem,\n PopupMenuList as List,\n PopupMenuLoading as Loading,\n PopupMenuPopup as Popup,\n // Positioning & Container\n PopupMenuPortal as Portal,\n PopupMenuPositioner as Positioner,\n PopupMenuRadioGroup as RadioGroup,\n PopupMenuRadioGroupValue as RadioGroupValue,\n PopupMenuRadioItem as RadioItem,\n PopupMenuRadioItemIndicator as RadioItemIndicator,\n // Scroll indicators\n PopupMenuScrollDownArrow as ScrollDownArrow,\n PopupMenuScrollUpArrow as ScrollUpArrow,\n PopupMenuSeparator as Separator,\n // Utility\n PopupMenuShortcut as Shortcut,\n // Submenus\n PopupMenuSubmenuRoot as Submenu,\n PopupMenuSubmenuTrigger as SubmenuTrigger,\n PopupMenuSubmenuTriggerIndicator as SubmenuTriggerIndicator,\n PopupMenuSubpage as Subpage,\n PopupMenuSubpageBack as SubpageBack,\n PopupMenuSubpageBackItem as SubpageBackItem,\n PopupMenuSubpageTrigger as SubpageTrigger,\n // Content\n PopupMenuSurface as Surface,\n PopupMenuTree as Tree,\n PopupMenuTreeConnector as TreeConnector,\n PopupMenuTreeItem as TreeItem,\n // Async coordinator hooks\n useAsyncMenuCoordinator,\n useDataList,\n useMaybeAsyncMenuCoordinator,\n useMaybeDataList,\n} from '../internal/popup-menu/index.js'\n// Dropdown-menu specific components\nexport { DropdownMenuRoot as Root } from './root/root.js'\nexport { DropdownMenuTrigger as Trigger } from './trigger/trigger.js'\n","'use client'\n\nimport { Popover, type PopoverRootProps } from '@base-ui/react/popover'\nimport { useCallback, useImperativeHandle, useRef } from 'react'\nimport type { VirtualItem } from '../../internal/listbox/index.js'\nimport {\n type PopupMenuDebugOptions,\n type PopupMenuHighlightChangeHandler,\n PopupMenuProviders,\n type PopupMenuRootActions,\n type UsePopupMenuRootParams,\n usePopupMenuRoot,\n} from '../../internal/popup-menu/index.js'\nimport type {\n GetResolvedIdFn,\n PopupMenuIdScope,\n} from '../../internal/popup-menu/menu-tree/types.js'\nimport type {\n DropdownMenuHighlightChangeEventDetails,\n DropdownMenuOpenChangeEventDetails,\n} from '../events.js'\n\nexport interface DropdownMenuRootProps\n extends Omit<\n PopoverRootProps,\n 'open' | 'onOpenChange' | 'defaultOpen' | 'actionsRef'\n > {\n /**\n * Whether the dropdown menu is open.\n * Use for controlled mode.\n */\n open?: boolean\n\n /**\n * Callback when the open state changes.\n * The second parameter contains event details including the reason for the change.\n */\n onOpenChange?: (\n open: boolean,\n eventDetails: DropdownMenuOpenChangeEventDetails,\n ) => void\n\n /**\n * Whether the dropdown menu is initially open.\n * Use for uncontrolled mode.\n * @default false\n */\n defaultOpen?: boolean\n\n /**\n * Determines if the dropdown menu enters a modal state when open.\n *\n * - `true`: user interaction is limited to the dropdown menu: document page scroll\n * is locked, and pointer interactions on outside elements are disabled.\n * - `false`: user interaction with the rest of the document is allowed.\n * - `'trap-focus'`: focus is trapped inside the dropdown menu, but document page\n * scroll is not locked and pointer interactions outside of it remain enabled.\n *\n * @default true\n */\n modal?: boolean | 'trap-focus'\n\n /**\n * Whether the component should ignore user interaction.\n * @default false\n */\n disabled?: boolean\n\n /**\n * Whether virtualization mode is enabled.\n * When true, items should provide an explicit `index` prop and\n * the `items` prop should be provided for navigation to work correctly.\n * @default false\n */\n virtualized?: boolean\n\n /**\n * Pre-registered items for virtualization.\n * When provided with `virtualized={true}`, this allows navigation to work\n * for items that aren't currently mounted in the DOM.\n */\n items?: VirtualItem[]\n\n /**\n * Callback when the highlighted item changes.\n * Useful for synchronizing with a virtualizer (e.g., scrollToIndex) or other UI state.\n * `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.\n * The fourth parameter contains event details including the reason for the change.\n */\n onHighlightChange?: PopupMenuHighlightChangeHandler<DropdownMenuHighlightChangeEventDetails>\n\n /**\n * When to close the menu on outside interactions (clicking outside or clicking the trigger when open).\n * - `'pointerdown'`: Close immediately when pointer is pressed outside (default)\n * - `'click'`: Close when a full click (pointerdown + pointerup) occurs outside\n * @default 'pointerdown'\n */\n closeOnOutsidePress?: 'click' | 'pointerdown'\n\n /**\n * Event handler called after any open/close animations have completed.\n * When `clearSearchOnClose=\"after-exit\"` is set on Surface, the search\n * will be cleared before this callback is invoked.\n */\n onOpenChangeComplete?: (open: boolean) => void\n\n /**\n * A ref to imperative actions.\n * - `close`: closes the menu imperatively.\n * - `unmount`: unmounts the popup imperatively (when keep-mounted mode is enabled).\n * - `setDisabled`: enables/disables the menu imperatively.\n */\n actionsRef?: React.RefObject<DropdownMenuRoot.Actions | null>\n\n /**\n * Computes canonical Resolved IDs for data-first content from the Unresolved Menu Node (definitional facts only).\n * @default encoded surface Definition Path joined with `/`; `idScope=\"menu\"` uses the Definition Key\n * 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.\n * @example\n * <DropdownMenu.Root getResolvedId={(node) => node.def.id ?? node.definitionPath.join('.')} />\n */\n getResolvedId?: GetResolvedIdFn\n /** Definition Key uniqueness scope. Read once when the menu root mounts. @default 'surface' */\n idScope?: PopupMenuIdScope\n\n /**\n * Debug visualization options for submenu interaction heuristics.\n */\n debug?: PopupMenuDebugOptions\n\n children: React.ReactNode\n}\n\n/**\n * Groups all parts of the dropdown menu.\n * Manages open state and provides context to children.\n * Doesn't render its own HTML element.\n */\nexport function DropdownMenuRoot(props: DropdownMenuRoot.Props) {\n const {\n open: openProp,\n onOpenChange,\n defaultOpen = false,\n modal = true,\n disabled = false,\n virtualized = false,\n items: itemsProp,\n onHighlightChange,\n closeOnOutsidePress = 'pointerdown',\n onOpenChangeComplete: onOpenChangeCompleteProp,\n actionsRef,\n getResolvedId,\n idScope = 'surface',\n debug,\n children,\n ...rest\n } = props\n\n // Use shared hook to create stores and utilities\n const {\n store,\n focusOwnerStore,\n openChainStore,\n registerSurface,\n closeAll,\n virtualization,\n handleOpenChange,\n disabled: menuDisabled,\n setDisabled,\n menuTreeResolver,\n } = usePopupMenuRoot({\n // Cast to generic type - component handles type safety via narrowed types\n onOpenChange:\n onOpenChange as unknown as UsePopupMenuRootParams['onOpenChange'],\n defaultOpen,\n virtualized,\n items: itemsProp,\n onHighlightChange:\n onHighlightChange as unknown as UsePopupMenuRootParams['onHighlightChange'],\n closeOnOutsidePress,\n disabled,\n getResolvedId,\n idScope,\n })\n\n const popoverActionsRef = useRef<Popover.Root.Actions | null>(null)\n\n useImperativeHandle(\n actionsRef,\n () => ({\n close: () => {\n popoverActionsRef.current?.close()\n },\n unmount: () => {\n popoverActionsRef.current?.unmount()\n },\n setDisabled,\n }),\n [setDisabled],\n )\n\n // Sync controlled open prop to store\n store.useControlledProp('openProp', openProp)\n\n // Get open state from store for Popover\n const open = store.useState('open')\n\n // Handle animation complete - clear search and hide input if clearSearchOnClose is 'after-exit'\n const handleOpenChangeComplete = useCallback(\n (nextOpen: boolean) => {\n // Clear search and hide input after exit animation completes\n if (!nextOpen && store.context.clearSearchOnClose === 'after-exit') {\n store.clearSearch()\n store.setInputActive(false)\n }\n // Reset row width measurements after close animation completes\n if (!nextOpen) {\n store.clearHighlight()\n store.context.onCloseComplete?.()\n store.context.onPopupCloseComplete?.()\n }\n // Call user's callback\n onOpenChangeCompleteProp?.(nextOpen)\n },\n [store, onOpenChangeCompleteProp],\n )\n\n // Wrapper to adapt Popover's event details to our handleOpenChange\n const handlePopoverOpenChange = useCallback(\n (nextOpen: boolean, popoverDetails: Popover.Root.ChangeEventDetails) => {\n // Forward to our internal handler with the reason and event\n handleOpenChange(\n nextOpen,\n popoverDetails.reason as DropdownMenuOpenChangeEventDetails['reason'],\n popoverDetails.event,\n )\n },\n [handleOpenChange],\n )\n\n return (\n <PopupMenuProviders\n store={store}\n menuTreeResolver={menuTreeResolver}\n focusOwnerStore={focusOwnerStore}\n openChainStore={openChainStore}\n disabled={menuDisabled}\n depth={0}\n closeAll={closeAll}\n explicitTabBehavior\n registerSurface={registerSurface}\n virtualization={virtualization}\n menuType=\"dropdown\"\n closeOnOutsidePress={closeOnOutsidePress}\n debug={debug}\n componentName=\"dropdown-menu\"\n >\n <Popover.Root\n {...rest}\n open={open}\n onOpenChange={handlePopoverOpenChange}\n onOpenChangeComplete={handleOpenChangeComplete}\n modal={modal}\n actionsRef={actionsRef ? popoverActionsRef : undefined}\n >\n {children}\n </Popover.Root>\n </PopupMenuProviders>\n )\n}\n\nexport namespace DropdownMenuRoot {\n export interface Props extends DropdownMenuRootProps {}\n export type OpenChangeEventDetails = DropdownMenuOpenChangeEventDetails\n export type HighlightChangeEventDetails =\n DropdownMenuHighlightChangeEventDetails\n export type Actions = PopupMenuRootActions\n}\n","'use client'\n\nimport { Popover } from '@base-ui/react/popover'\nimport { useRender } from '@base-ui/react/use-render'\nimport * as React from 'react'\nimport { usePopupMenuContext } from '../../internal/popup-menu/contexts/popup-menu-context.js'\nimport { REASONS } from '../../utils/events/index.js'\nimport { mergeElementProps } from '../../utils/merge-element-props.js'\nimport type { ComponentProps } from '../../utils/types.js'\nimport { DropdownMenuTriggerDataAttributes } from './trigger.data-attrs.js'\n\nexport { DropdownMenuTriggerDataAttributes }\n\nexport interface DropdownMenuTriggerState extends Record<string, unknown> {\n /**\n * Whether the dropdown menu is open.\n */\n open: boolean\n /**\n * Whether the trigger is disabled.\n */\n disabled: boolean\n}\n\nexport interface DropdownMenuTriggerProps\n extends ComponentProps<'button', DropdownMenuTrigger.State> {\n /**\n * Whether the trigger is disabled.\n */\n disabled?: boolean\n /**\n * Whether the menu opens when hovering the trigger.\n * @default false\n */\n openOnHover?: boolean\n /**\n * Delay before opening on hover (in milliseconds).\n * Only applies when `openOnHover` is true.\n * @default 100\n */\n delay?: number\n /**\n * Delay before closing when pointer leaves (in milliseconds).\n * Only applies when `openOnHover` is true.\n * @default 0\n */\n closeDelay?: number\n}\n\nconst stateAttributesMapping = {\n open: (value: unknown): Record<string, string> | null =>\n value ? { [DropdownMenuTriggerDataAttributes.popupOpen]: '' } : null,\n disabled: (value: unknown): Record<string, string> | null =>\n value ? { 'data-disabled': '' } : null,\n}\n\n/**\n * Inner component that renders using useRender.\n */\nconst DropdownMenuTriggerInner = React.forwardRef<\n HTMLButtonElement,\n DropdownMenuTriggerProps & {\n triggerProps: React.ComponentPropsWithRef<'button'>\n triggerState: { open: boolean; disabled: boolean }\n }\n>(function DropdownMenuTriggerInner(props, forwardedRef) {\n const {\n render,\n children,\n disabled: _disabled,\n className,\n style,\n triggerProps,\n triggerState,\n openOnHover: _openOnHover,\n delay: _delay,\n closeDelay: _closeDelay,\n ...rest\n } = props\n\n const state: DropdownMenuTrigger.State = React.useMemo(\n () => ({\n open: triggerState.open,\n disabled: triggerState.disabled,\n }),\n [triggerState.open, triggerState.disabled],\n )\n\n return useRender({\n render,\n ref: forwardedRef,\n state,\n stateAttributesMapping,\n props: {\n ...mergeElementProps<'button'>(triggerProps, {\n ...rest,\n className,\n style,\n children,\n } as Partial<React.ComponentPropsWithRef<'button'>>),\n [DropdownMenuTriggerDataAttributes.slot]: '',\n },\n defaultTagName: 'button',\n })\n})\n\n/**\n * A button that opens the dropdown menu.\n * Renders a `<button>` element.\n *\n * Supports `openOnHover` to open the menu when hovering the trigger,\n * with configurable `delay` and `closeDelay`.\n *\n * When `closeOnOutsidePress` is set to `'pointerdown'` on the Root,\n * the trigger will close the menu immediately on pointerdown when open.\n */\nexport const DropdownMenuTrigger = React.forwardRef<\n HTMLButtonElement,\n DropdownMenuTrigger.Props\n>(function DropdownMenuTrigger(props, forwardedRef) {\n const { disabled, openOnHover, delay = 100, closeDelay, ...rest } = props\n\n const {\n store,\n closeAll,\n closeOnOutsidePress,\n disabled: rootDisabled,\n } = usePopupMenuContext()\n const isOpen = store.useState('open')\n const isDisabled = disabled || rootDisabled\n\n // We need to intercept pointerdown before it reaches Popover.Trigger\n // This ref tracks the element so we can add a one-time click blocker\n const triggerRef = React.useRef<HTMLButtonElement | null>(null)\n\n // Combine refs\n const setRef = React.useCallback(\n (element: HTMLButtonElement | null) => {\n triggerRef.current = element\n if (typeof forwardedRef === 'function') {\n forwardedRef(element)\n } else if (forwardedRef) {\n forwardedRef.current = element\n }\n },\n [forwardedRef],\n )\n\n // Handle pointerdown to close on press when open\n React.useEffect(() => {\n const trigger = triggerRef.current\n if (!trigger || closeOnOutsidePress !== 'pointerdown') return\n\n const handlePointerDown = (event: PointerEvent) => {\n // If menu is open, close it immediately and block the click\n if (isOpen) {\n closeAll(REASONS.triggerPress, event)\n\n // Block the upcoming click from reaching Popover.Trigger\n // This prevents the toggle behavior from reopening the menu\n trigger.addEventListener(\n 'click',\n (clickEvent) => {\n clickEvent.stopPropagation()\n clickEvent.preventDefault()\n },\n { once: true, capture: true },\n )\n }\n }\n\n // Use capture phase to see the event before Popover.Trigger\n trigger.addEventListener('pointerdown', handlePointerDown, true)\n return () => {\n trigger.removeEventListener('pointerdown', handlePointerDown, true)\n }\n }, [isOpen, closeAll, closeOnOutsidePress])\n\n return (\n <Popover.Trigger\n ref={setRef}\n disabled={isDisabled}\n openOnHover={openOnHover}\n delay={delay}\n closeDelay={closeDelay}\n render={(triggerProps, triggerState) => (\n <DropdownMenuTriggerInner\n {...rest}\n disabled={isDisabled}\n triggerProps={triggerProps}\n triggerState={triggerState}\n ref={triggerProps.ref as React.Ref<HTMLButtonElement>}\n />\n )}\n />\n )\n})\n\nexport namespace DropdownMenuTrigger {\n export interface Props extends DropdownMenuTriggerProps {}\n export type State = DropdownMenuTriggerState\n}\n","export enum DropdownMenuTriggerDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-trigger'}\n */\n slot = 'bazzaui-dropdown-menu-trigger',\n /**\n * Present when the corresponding dropdown menu is open.\n */\n popupOpen = 'data-popup-open',\n /**\n * Present when the trigger is pressed.\n */\n pressed = 'data-pressed',\n}\n","export enum DropdownMenuArrowDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-arrow'}\n */\n slot = 'bazzaui-dropdown-menu-arrow',\n /**\n * Present when the popup menu is open.\n */\n open = 'data-open',\n /**\n * Present when the popup menu is closed.\n */\n closed = 'data-closed',\n /**\n * Indicates which side the popup is positioned relative to the trigger.\n * @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}\n */\n side = 'data-side',\n /**\n * Indicates how the popup is aligned relative to specified side.\n * @type {'start' | 'center' | 'end'}\n */\n align = 'data-align',\n /**\n * Present when the arrow is not centered due to collision avoidance.\n */\n uncentered = 'data-uncentered',\n}\n","export enum DropdownMenuBackdropDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-backdrop'}\n */\n slot = 'bazzaui-dropdown-menu-backdrop',\n /**\n * Present when the popup menu is open.\n */\n open = 'data-open',\n /**\n * Present when the popup menu is closed.\n */\n closed = 'data-closed',\n /**\n * Present when the popup menu is animating in.\n */\n startingStyle = 'data-starting-style',\n /**\n * Present when the popup menu is animating out.\n */\n endingStyle = 'data-ending-style',\n}\n","export enum DropdownMenuCheckboxItemDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-checkbox-item'}\n */\n slot = 'bazzaui-dropdown-menu-checkbox-item',\n /**\n * Present when the checkbox item is checked.\n */\n checked = 'data-checked',\n /**\n * Present when the checkbox item is unchecked.\n */\n unchecked = 'data-unchecked',\n /**\n * Present when the item is highlighted (via keyboard or pointer).\n */\n highlighted = 'data-highlighted',\n /**\n * Present when the item is disabled.\n */\n disabled = 'data-disabled',\n}\n\nexport enum DropdownMenuCheckboxItemIndicatorDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-checkbox-item-indicator'}\n */\n slot = 'bazzaui-dropdown-menu-checkbox-item-indicator',\n /**\n * Present when the checkbox item is checked.\n */\n checked = 'data-checked',\n /**\n * Present when the checkbox item is unchecked.\n */\n unchecked = 'data-unchecked',\n}\n","export enum DropdownMenuEmptyDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-empty'}\n */\n slot = 'bazzaui-dropdown-menu-empty',\n}\n","export enum DropdownMenuGroupDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-group'}\n */\n slot = 'bazzaui-dropdown-menu-group',\n}\n","export enum DropdownMenuGroupLabelDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-group-label'}\n */\n slot = 'bazzaui-dropdown-menu-group-label',\n}\n","export const DropdownMenuIconDataAttributes = {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-icon'}\n */\n slot: 'bazzaui-dropdown-menu-icon',\n /** Present when the popup is open. */\n open: 'data-popup-open',\n} as const\n","export enum DropdownMenuInputDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-input'}\n */\n slot = 'bazzaui-dropdown-menu-input',\n /**\n * Present when the popup menu is open.\n */\n open = 'data-open',\n /**\n * Present when the popup menu is closed.\n */\n closed = 'data-closed',\n}\n","export enum DropdownMenuItemDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-item'}\n */\n slot = 'bazzaui-dropdown-menu-item',\n /**\n * Present when the item is highlighted (via keyboard or pointer).\n */\n highlighted = 'data-highlighted',\n /**\n * Present when the item is disabled.\n */\n disabled = 'data-disabled',\n}\n","export enum DropdownMenuLinkItemDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-link-item'}\n */\n slot = 'bazzaui-dropdown-menu-link-item',\n /**\n * Present when the item is highlighted (via keyboard or pointer).\n */\n highlighted = 'data-highlighted',\n /**\n * Present when the item is disabled.\n */\n disabled = 'data-disabled',\n /** Present when this row is the first visible list-level row (not inside a group). */\n first = 'data-first',\n /** Present when this row is the last visible list-level row (not inside a group). */\n last = 'data-last',\n /** Present when this row is the first visible row within its group. */\n firstInGroup = 'data-first-in-group',\n /** Present when this row is the last visible row within its group. */\n lastInGroup = 'data-last-in-group',\n}\n","export enum DropdownMenuListDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-list'}\n */\n slot = 'bazzaui-dropdown-menu-list',\n /**\n * Always present on the list element.\n * Used for styling and by useStickyRowWidth to find the list container.\n */\n list = 'data-popup-menu-list',\n}\n","export enum DropdownMenuLoadingDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-loading'}\n */\n slot = 'bazzaui-dropdown-menu-loading',\n}\n","export enum DropdownMenuPopupDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-popup'}\n */\n slot = 'bazzaui-dropdown-menu-popup',\n /**\n * Present when the popup menu is open.\n */\n open = 'data-open',\n /**\n * Present when the popup menu is closed.\n */\n closed = 'data-closed',\n /**\n * Indicates which side the popup is positioned relative to the trigger.\n * @type {'top' | 'bottom' | 'left' | 'right'}\n */\n side = 'data-side',\n /**\n * Indicates how the popup is aligned relative to specified side.\n * @type {'start' | 'center' | 'end'}\n */\n align = 'data-align',\n /**\n * Present when the popup is animating in.\n */\n startingStyle = 'data-starting-style',\n /**\n * Present when the popup is animating out.\n */\n endingStyle = 'data-ending-style',\n /**\n * Present if animations should be instant.\n * @type {'click' | 'dismiss'}\n */\n instant = 'data-instant',\n /**\n * Present when this popup's surface is the focus owner.\n * Useful for styling the currently focused menu in a submenu chain.\n */\n focused = 'data-focused',\n /**\n * Present when this popup has an open submenu below it in the menu tree.\n * Useful for styling all parent menus in an open submenu chain.\n */\n hasOpenSubmenu = 'data-has-open-submenu',\n /**\n * Present when this popup is a submenu (not the root menu).\n * Useful for applying different styles to submenus vs root menus.\n */\n submenu = 'data-submenu',\n /**\n * Present while navigating between subpages in this popup.\n * Useful for temporary transition adjustments during subpage focus handoff.\n */\n navigating = 'data-navigating',\n}\n","export enum DropdownMenuPositionerDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-positioner'}\n */\n slot = 'bazzaui-dropdown-menu-positioner',\n /**\n * Present when the popup menu is open.\n */\n open = 'data-open',\n /**\n * Present when the popup menu is closed.\n */\n closed = 'data-closed',\n /**\n * Present when the anchor is hidden.\n */\n anchorHidden = 'data-anchor-hidden',\n /**\n * Indicates which side the popup is positioned relative to the trigger.\n * @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}\n */\n side = 'data-side',\n /**\n * Indicates how the popup is aligned relative to specified side.\n * @type {'start' | 'center' | 'end' | 'list-start'}\n */\n align = 'data-align',\n}\n","export enum DropdownMenuRadioGroupDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-radio-group'}\n */\n slot = 'bazzaui-dropdown-menu-radio-group',\n /**\n * Present when the radio group is disabled.\n */\n disabled = 'data-disabled',\n}\n","export enum DropdownMenuRadioItemDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-radio-item'}\n */\n slot = 'bazzaui-dropdown-menu-radio-item',\n /**\n * Present when the radio item is checked/selected.\n */\n checked = 'data-checked',\n /**\n * Present when the radio item is unchecked.\n */\n unchecked = 'data-unchecked',\n /**\n * Present when the item is highlighted (via keyboard or pointer).\n */\n highlighted = 'data-highlighted',\n /**\n * Present when the item is disabled.\n */\n disabled = 'data-disabled',\n}\n\nexport enum DropdownMenuRadioItemIndicatorDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-radio-item-indicator'}\n */\n slot = 'bazzaui-dropdown-menu-radio-item-indicator',\n /**\n * Present when the radio item is checked/selected.\n */\n checked = 'data-checked',\n /**\n * Present when the radio item is unchecked.\n */\n unchecked = 'data-unchecked',\n}\n","export const DropdownMenuScrollArrowDataAttributes = {\n /**\n * Identifies the component part for scroll up arrow.\n * @type {'bazzaui-dropdown-menu-scroll-up-arrow'}\n */\n slotUp: 'bazzaui-dropdown-menu-scroll-up-arrow',\n /**\n * Identifies the component part for scroll down arrow.\n * @type {'bazzaui-dropdown-menu-scroll-down-arrow'}\n */\n slotDown: 'bazzaui-dropdown-menu-scroll-down-arrow',\n /**\n * Direction of the scroll arrow.\n * @type {'up' | 'down'}\n */\n direction: 'data-direction',\n /**\n * Side of the popup.\n * @type {'top' | 'bottom' | 'left' | 'right'}\n */\n side: 'data-side',\n} as const\n","export enum DropdownMenuSeparatorDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-separator'}\n */\n slot = 'bazzaui-dropdown-menu-separator',\n}\n","export enum DropdownMenuShortcutDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-shortcut'}\n */\n slot = 'bazzaui-dropdown-menu-shortcut',\n /**\n * Present when the parent item is highlighted.\n */\n highlighted = 'data-highlighted',\n}\n","export enum DropdownMenuSubmenuTriggerDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-submenu-trigger'}\n */\n slot = 'bazzaui-dropdown-menu-submenu-trigger',\n /**\n * Present on submenu trigger elements.\n */\n submenuTrigger = 'data-submenu-trigger',\n /**\n * Present when the submenu popup is open.\n */\n popupOpen = 'data-popup-open',\n /**\n * Present when the submenu owns keyboard focus.\n */\n popupFocused = 'data-popup-focused',\n /**\n * Present when the item is highlighted.\n */\n highlighted = 'data-highlighted',\n /**\n * Present when the item is disabled.\n */\n disabled = 'data-disabled',\n}\n\nexport enum DropdownMenuSubmenuTriggerIndicatorDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-submenu-trigger-indicator'}\n */\n slot = 'bazzaui-dropdown-menu-submenu-trigger-indicator',\n /**\n * Present when the submenu popup is open.\n */\n popupOpen = 'data-popup-open',\n}\n","export enum DropdownMenuSubpageBackDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-subpage-back'}\n */\n slot = 'bazzaui-dropdown-menu-subpage-back',\n /**\n * Present when navigating back is available.\n */\n canGoBack = 'data-can-go-back',\n /**\n * Present when the button is disabled.\n */\n disabled = 'data-disabled',\n}\n","export enum DropdownMenuSubpageBackItemDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-subpage-back-item'}\n */\n slot = 'bazzaui-dropdown-menu-subpage-back-item',\n /**\n * Present on subpage back item elements.\n */\n subpageBackItem = 'data-subpage-back-item',\n /**\n * Present when the item is highlighted.\n */\n highlighted = 'data-highlighted',\n /**\n * Present when the item is disabled.\n */\n disabled = 'data-disabled',\n}\n","export enum DropdownMenuSubpageTriggerDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-subpage-trigger'}\n */\n slot = 'bazzaui-dropdown-menu-subpage-trigger',\n /**\n * Present on subpage trigger elements.\n */\n subpageTrigger = 'data-subpage-trigger',\n /**\n * Present when the target page is active.\n */\n popupOpen = 'data-popup-open',\n /**\n * Present when the target page owns keyboard focus.\n */\n popupFocused = 'data-popup-focused',\n /**\n * Present when the item is highlighted.\n */\n highlighted = 'data-highlighted',\n /**\n * Present when the item is disabled.\n */\n disabled = 'data-disabled',\n}\n","export enum DropdownMenuSurfaceDataAttributes {\n /**\n * Identifies the component part.\n * @type {'bazzaui-dropdown-menu-surface'}\n */\n slot = 'bazzaui-dropdown-menu-surface',\n}\n"],"mappings":"wvBAAA,IAAAA,GAAA,GAAAC,GAAAD,GAAA,WAAAE,EAAA,aAAAC,EAAA,iBAAAC,EAAA,0BAAAC,EAAA,UAAAC,EAAA,cAAAC,GAAA,WAAAC,GAAA,UAAAC,GAAA,eAAAC,EAAA,eAAAC,GAAA,WAAAC,GAAA,SAAAC,EAAA,UAAAC,EAAA,SAAAC,EAAA,aAAAC,EAAA,SAAAC,EAAA,YAAAC,EAAA,UAAAC,EAAA,WAAAC,EAAA,eAAAC,EAAA,eAAAC,GAAA,oBAAAC,EAAA,cAAAC,GAAA,uBAAAC,GAAA,SAAAC,GAAA,oBAAAC,EAAA,kBAAAC,EAAA,cAAAC,GAAA,aAAAC,GAAA,YAAAC,GAAA,mBAAAC,GAAA,4BAAAC,GAAA,YAAAC,GAAA,gBAAAC,GAAA,oBAAAC,GAAA,mBAAAC,GAAA,YAAAC,EAAA,SAAAC,GAAA,kBAAAC,GAAA,aAAAC,GAAA,YAAAC,GAAA,4BAAAC,EAAA,gBAAAC,EAAA,iCAAAC,EAAA,qBAAAC,ICEA,OAAS,WAAAC,OAAsC,yBAC/C,OAAS,eAAAC,GAAa,uBAAAC,GAAqB,UAAAC,OAAc,QA8PnD,cAAAC,OAAA,oBAvHC,SAASC,GAAiBC,EAA+B,CAC9D,GAAM,CACJ,KAAMC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KC,QAKVA,EAAA,KAAO,gCALGA,QAAA","names":["index_parts_exports","__export","PopupMenuArrow","PopupMenuBackdrop","PopupMenuCheckboxItem","PopupMenuCheckboxItemIndicator","PopupMenuEmpty","PopupMenuFocusZone","PopupMenuFooter","PopupMenuGroup","PopupMenuGroupLabel","PopupMenuGroupValue","PopupMenuHeader","PopupMenuIcon","PopupMenuInput","PopupMenuItem","PopupMenuLinkItem","PopupMenuList","PopupMenuLoading","PopupMenuPopup","PopupMenuPortal","PopupMenuPositioner","PopupMenuRadioGroup","PopupMenuRadioGroupValue","PopupMenuRadioItem","PopupMenuRadioItemIndicator","DropdownMenuRoot","PopupMenuScrollDownArrow","PopupMenuScrollUpArrow","PopupMenuSeparator","PopupMenuShortcut","PopupMenuSubmenuRoot","PopupMenuSubmenuTrigger","PopupMenuSubmenuTriggerIndicator","PopupMenuSubpage","PopupMenuSubpageBack","PopupMenuSubpageBackItem","PopupMenuSubpageTrigger","PopupMenuSurface","PopupMenuTree","PopupMenuTreeConnector","PopupMenuTreeItem","DropdownMenuTrigger","useAsyncMenuCoordinator","useDataList","useMaybeAsyncMenuCoordinator","useMaybeDataList","Popover","useCallback","useImperativeHandle","useRef","jsx","DropdownMenuRoot","props","openProp","onOpenChange","defaultOpen","modal","disabled","virtualized","itemsProp","onHighlightChange","closeOnOutsidePress","onOpenChangeCompleteProp","actionsRef","getResolvedId","idScope","debug","children","rest","store","focusOwnerStore","openChainStore","registerSurface","closeAll","virtualization","handleOpenChange","menuDisabled","setDisabled","menuTreeResolver","usePopupMenuRoot","popoverActionsRef","useRef","useImperativeHandle","open","handleOpenChangeComplete","useCallback","nextOpen","handlePopoverOpenChange","popoverDetails","PopupMenuProviders","Popover","Popover","useRender","React","DropdownMenuTriggerDataAttributes","jsx","stateAttributesMapping","value","DropdownMenuTriggerInner","props","forwardedRef","render","children","_disabled","className","style","triggerProps","triggerState","_openOnHover","_delay","_closeDelay","rest","state","useRender","mergeElementProps","DropdownMenuTrigger","disabled","openOnHover","delay","closeDelay","store","closeAll","closeOnOutsidePress","rootDisabled","usePopupMenuContext","isOpen","isDisabled","triggerRef","setRef","element","trigger","handlePointerDown","event","reason_parts_exports","clickEvent","jsx","Popover","DropdownMenuArrowDataAttributes","DropdownMenuBackdropDataAttributes","DropdownMenuCheckboxItemDataAttributes","DropdownMenuCheckboxItemIndicatorDataAttributes","DropdownMenuEmptyDataAttributes","DropdownMenuGroupDataAttributes","DropdownMenuGroupLabelDataAttributes","DropdownMenuIconDataAttributes","DropdownMenuInputDataAttributes","DropdownMenuItemDataAttributes","DropdownMenuLinkItemDataAttributes","DropdownMenuListDataAttributes","DropdownMenuLoadingDataAttributes","DropdownMenuPopupDataAttributes","DropdownMenuPositionerDataAttributes","DropdownMenuRadioGroupDataAttributes","DropdownMenuRadioItemDataAttributes","DropdownMenuRadioItemIndicatorDataAttributes","DropdownMenuScrollArrowDataAttributes","DropdownMenuSeparatorDataAttributes","DropdownMenuShortcutDataAttributes","DropdownMenuSubmenuTriggerDataAttributes","DropdownMenuSubmenuTriggerIndicatorDataAttributes","DropdownMenuSubpageBackDataAttributes","DropdownMenuSubpageBackItemDataAttributes","DropdownMenuSubpageTriggerDataAttributes","DropdownMenuSurfaceDataAttributes"]}
|
|
@@ -1626,6 +1626,14 @@ type RadioGroupBehavior = 'flatten' | 'preserve' | 'preserve-show-all';
|
|
|
1626
1626
|
* - 'block': hide all deep-search rows until every participating async loader resolves.
|
|
1627
1627
|
*/
|
|
1628
1628
|
type AsyncResultBehavior = 'stream' | 'block';
|
|
1629
|
+
/**
|
|
1630
|
+
* How the descendants of a disabled branch (a submenu or subpage with
|
|
1631
|
+
* `disabled: true`) participate in deep search.
|
|
1632
|
+
* - 'exclude': descendants are not deep results; the disabled trigger still is.
|
|
1633
|
+
* Equivalent to the branch's `includeInDeepSearch` defaulting to `'trigger-only'`.
|
|
1634
|
+
* - 'inherit': descendants are deep results that inherit `disabled` — shown, not selectable.
|
|
1635
|
+
*/
|
|
1636
|
+
type DisabledBranchBehavior = 'exclude' | 'inherit';
|
|
1629
1637
|
/**
|
|
1630
1638
|
* Configuration for deep search behavior.
|
|
1631
1639
|
*/
|
|
@@ -1662,6 +1670,14 @@ interface DeepSearchConfig {
|
|
|
1662
1670
|
* @default 'stream'
|
|
1663
1671
|
*/
|
|
1664
1672
|
asyncResultBehavior?: AsyncResultBehavior;
|
|
1673
|
+
/**
|
|
1674
|
+
* How descendants of a disabled branch appear in deep search results.
|
|
1675
|
+
* - 'exclude': not shown; the disabled branch trigger still appears (default)
|
|
1676
|
+
* - 'inherit': shown as deep results with inherited `disabled`
|
|
1677
|
+
* An explicit `includeInDeepSearch` on the branch def always takes precedence.
|
|
1678
|
+
* @default 'exclude'
|
|
1679
|
+
*/
|
|
1680
|
+
disabledBranchBehavior?: DisabledBranchBehavior;
|
|
1665
1681
|
}
|
|
1666
1682
|
/**
|
|
1667
1683
|
* Props for the DataSurface component.
|
|
@@ -1841,4 +1857,4 @@ type RadioValueChangeReason = typeof itemPress | typeof itemKeyboardSelect;
|
|
|
1841
1857
|
*/
|
|
1842
1858
|
type RadioValueChangeEventDetails = ChangeEventDetails<RadioValueChangeReason>;
|
|
1843
1859
|
|
|
1844
|
-
export { type BreadcrumbNode as $, type PopupMenuCheckboxItemState as A, type PopupMenuItemProps as B, type ChangeEventDetails as C, type PopupMenuItemState as D, type PopupMenuLinkItemProps as E, type PopupMenuLinkItemState as F, type GenericEventDetails as G, type PopupMenuRadioGroupProps as H, type PopupMenuRadioGroupState as I, type PopupMenuRadioItemProps as J, type PopupMenuRadioItemState as K, type PopupMenuSubmenuTriggerProps as L, type PopupMenuSubmenuTriggerState as M, type NodeDef as N, type PopupMenuSubpageTriggerProps as O, type PopupMenuHighlightChangeHandler as P, type PopupMenuSubpageTriggerState as Q, type AsyncLoaderConfig as R, type AsyncLoaderFetchStatus as S, type AsyncLoaderLoadingPhase as T, type AsyncLoaderResult as U, type AsyncLoaderSource as V, type AsyncLoaderStatus as W, type AsyncNodesConfig as X, type AsyncRenderState as Y, type AsyncResultBehavior as Z, type AsyncState as _, triggerHover as a, type
|
|
1860
|
+
export { type BreadcrumbNode as $, type PopupMenuCheckboxItemState as A, type PopupMenuItemProps as B, type ChangeEventDetails as C, type PopupMenuItemState as D, type PopupMenuLinkItemProps as E, type PopupMenuLinkItemState as F, type GenericEventDetails as G, type PopupMenuRadioGroupProps as H, type PopupMenuRadioGroupState as I, type PopupMenuRadioItemProps as J, type PopupMenuRadioItemState as K, type PopupMenuSubmenuTriggerProps as L, type PopupMenuSubmenuTriggerState as M, type NodeDef as N, type PopupMenuSubpageTriggerProps as O, type PopupMenuHighlightChangeHandler as P, type PopupMenuSubpageTriggerState as Q, type AsyncLoaderConfig as R, type AsyncLoaderFetchStatus as S, type AsyncLoaderLoadingPhase as T, type AsyncLoaderResult as U, type AsyncLoaderSource as V, type AsyncLoaderStatus as W, type AsyncNodesConfig as X, type AsyncRenderState as Y, type AsyncResultBehavior as Z, type AsyncState as _, triggerHover as a, type PopupMenuOpenChangeReason as a$, type CheckboxItemDef as a0, type CheckboxItemRenderParams as a1, type CheckboxItemRenderProps as a2, type DataListChildrenState as a3, type DeepSearchConfig as a4, type DisabledBranchBehavior as a5, type DisplayGroupNode as a6, type DisplayNode as a7, type DisplayRadioGroupNode as a8, type DisplayRowNode as a9, type RowRenderContext as aA, type ScoredNode as aB, type SeparatorDef as aC, type SeparatorRenderParams as aD, type StaticAsyncNodesConfig as aE, type StaticLoaderConfig as aF, type SubmenuDef as aG, type SubmenuRenderParams as aH, type SubmenuRenderProps as aI, type SubpageContentRenderParams as aJ, type SubpageDef as aK, type SubpageTriggerRenderParams as aL, type SubpageTriggerRenderProps as aM, type TreeItemDef as aN, type TreeItemRenderParams as aO, type TreeItemRenderProps as aP, type UnresolvedMenuNode as aQ, defineRadioGroup as aR, isDisplayGroupNode as aS, isDisplayRadioGroupNode as aT, isDisplayRowNode as aU, isDisplaySeparatorNode as aV, inputChange as aW, inputClear as aX, triggerContextMenu as aY, type HighlightChangeEventDetails as aZ, type RadioValueChangeEventDetails as a_, type DisplaySeparatorNode as aa, type DisplaySubpageNode as ab, type GroupBehavior as ac, type GroupDef as ad, type GroupLabelRenderParams as ae, type GroupRenderContext as af, type GroupRenderParams as ag, type IncludeInDeepSearch as ah, type InitialQueryBehavior as ai, type ItemDef as aj, type ItemRenderParams as ak, type ItemRenderProps as al, type LinkItemDef as am, type LinkItemRenderParams as an, type LinkItemRenderProps as ao, type LoaderComponentProps as ap, type QueryAsyncNodesConfig as aq, type QueryLoaderConfig as ar, type RadioGroupBehavior as as, type RadioGroupDef as at, type RadioGroupLabelRenderParams as au, type RadioGroupRenderParams as av, type RadioGroupRenderProps as aw, type RadioItemDef as ax, type RadioItemRenderParams as ay, type RadioItemRenderProps as az, triggerFocus as b, type DataSurfaceProps as b0, type PopupMenuOpenChangeEventDetails as b1, closePress as c, siblingOpen as d, escapeKey as e, focusOut as f, imperativeAction as g, type GetResolvedIdFn as h, itemPress as i, type PopupMenuIdScope as j, keyboard as k, listNavigation as l, PopupMenuCheckboxItem as m, none as n, outsidePress as o, pointer as p, PopupMenuItem as q, PopupMenuLinkItem as r, submenuTrigger as s, triggerPress as t, type PopupMenuNode as u, PopupMenuRadioGroup as v, PopupMenuRadioItem as w, PopupMenuSubmenuTrigger as x, PopupMenuSubpageTrigger as y, type PopupMenuCheckboxItemProps as z };
|
|
@@ -1626,6 +1626,14 @@ type RadioGroupBehavior = 'flatten' | 'preserve' | 'preserve-show-all';
|
|
|
1626
1626
|
* - 'block': hide all deep-search rows until every participating async loader resolves.
|
|
1627
1627
|
*/
|
|
1628
1628
|
type AsyncResultBehavior = 'stream' | 'block';
|
|
1629
|
+
/**
|
|
1630
|
+
* How the descendants of a disabled branch (a submenu or subpage with
|
|
1631
|
+
* `disabled: true`) participate in deep search.
|
|
1632
|
+
* - 'exclude': descendants are not deep results; the disabled trigger still is.
|
|
1633
|
+
* Equivalent to the branch's `includeInDeepSearch` defaulting to `'trigger-only'`.
|
|
1634
|
+
* - 'inherit': descendants are deep results that inherit `disabled` — shown, not selectable.
|
|
1635
|
+
*/
|
|
1636
|
+
type DisabledBranchBehavior = 'exclude' | 'inherit';
|
|
1629
1637
|
/**
|
|
1630
1638
|
* Configuration for deep search behavior.
|
|
1631
1639
|
*/
|
|
@@ -1662,6 +1670,14 @@ interface DeepSearchConfig {
|
|
|
1662
1670
|
* @default 'stream'
|
|
1663
1671
|
*/
|
|
1664
1672
|
asyncResultBehavior?: AsyncResultBehavior;
|
|
1673
|
+
/**
|
|
1674
|
+
* How descendants of a disabled branch appear in deep search results.
|
|
1675
|
+
* - 'exclude': not shown; the disabled branch trigger still appears (default)
|
|
1676
|
+
* - 'inherit': shown as deep results with inherited `disabled`
|
|
1677
|
+
* An explicit `includeInDeepSearch` on the branch def always takes precedence.
|
|
1678
|
+
* @default 'exclude'
|
|
1679
|
+
*/
|
|
1680
|
+
disabledBranchBehavior?: DisabledBranchBehavior;
|
|
1665
1681
|
}
|
|
1666
1682
|
/**
|
|
1667
1683
|
* Props for the DataSurface component.
|
|
@@ -1841,4 +1857,4 @@ type RadioValueChangeReason = typeof itemPress | typeof itemKeyboardSelect;
|
|
|
1841
1857
|
*/
|
|
1842
1858
|
type RadioValueChangeEventDetails = ChangeEventDetails<RadioValueChangeReason>;
|
|
1843
1859
|
|
|
1844
|
-
export { type BreadcrumbNode as $, type PopupMenuCheckboxItemState as A, type PopupMenuItemProps as B, type ChangeEventDetails as C, type PopupMenuItemState as D, type PopupMenuLinkItemProps as E, type PopupMenuLinkItemState as F, type GenericEventDetails as G, type PopupMenuRadioGroupProps as H, type PopupMenuRadioGroupState as I, type PopupMenuRadioItemProps as J, type PopupMenuRadioItemState as K, type PopupMenuSubmenuTriggerProps as L, type PopupMenuSubmenuTriggerState as M, type NodeDef as N, type PopupMenuSubpageTriggerProps as O, type PopupMenuHighlightChangeHandler as P, type PopupMenuSubpageTriggerState as Q, type AsyncLoaderConfig as R, type AsyncLoaderFetchStatus as S, type AsyncLoaderLoadingPhase as T, type AsyncLoaderResult as U, type AsyncLoaderSource as V, type AsyncLoaderStatus as W, type AsyncNodesConfig as X, type AsyncRenderState as Y, type AsyncResultBehavior as Z, type AsyncState as _, triggerHover as a, type
|
|
1860
|
+
export { type BreadcrumbNode as $, type PopupMenuCheckboxItemState as A, type PopupMenuItemProps as B, type ChangeEventDetails as C, type PopupMenuItemState as D, type PopupMenuLinkItemProps as E, type PopupMenuLinkItemState as F, type GenericEventDetails as G, type PopupMenuRadioGroupProps as H, type PopupMenuRadioGroupState as I, type PopupMenuRadioItemProps as J, type PopupMenuRadioItemState as K, type PopupMenuSubmenuTriggerProps as L, type PopupMenuSubmenuTriggerState as M, type NodeDef as N, type PopupMenuSubpageTriggerProps as O, type PopupMenuHighlightChangeHandler as P, type PopupMenuSubpageTriggerState as Q, type AsyncLoaderConfig as R, type AsyncLoaderFetchStatus as S, type AsyncLoaderLoadingPhase as T, type AsyncLoaderResult as U, type AsyncLoaderSource as V, type AsyncLoaderStatus as W, type AsyncNodesConfig as X, type AsyncRenderState as Y, type AsyncResultBehavior as Z, type AsyncState as _, triggerHover as a, type PopupMenuOpenChangeReason as a$, type CheckboxItemDef as a0, type CheckboxItemRenderParams as a1, type CheckboxItemRenderProps as a2, type DataListChildrenState as a3, type DeepSearchConfig as a4, type DisabledBranchBehavior as a5, type DisplayGroupNode as a6, type DisplayNode as a7, type DisplayRadioGroupNode as a8, type DisplayRowNode as a9, type RowRenderContext as aA, type ScoredNode as aB, type SeparatorDef as aC, type SeparatorRenderParams as aD, type StaticAsyncNodesConfig as aE, type StaticLoaderConfig as aF, type SubmenuDef as aG, type SubmenuRenderParams as aH, type SubmenuRenderProps as aI, type SubpageContentRenderParams as aJ, type SubpageDef as aK, type SubpageTriggerRenderParams as aL, type SubpageTriggerRenderProps as aM, type TreeItemDef as aN, type TreeItemRenderParams as aO, type TreeItemRenderProps as aP, type UnresolvedMenuNode as aQ, defineRadioGroup as aR, isDisplayGroupNode as aS, isDisplayRadioGroupNode as aT, isDisplayRowNode as aU, isDisplaySeparatorNode as aV, inputChange as aW, inputClear as aX, triggerContextMenu as aY, type HighlightChangeEventDetails as aZ, type RadioValueChangeEventDetails as a_, type DisplaySeparatorNode as aa, type DisplaySubpageNode as ab, type GroupBehavior as ac, type GroupDef as ad, type GroupLabelRenderParams as ae, type GroupRenderContext as af, type GroupRenderParams as ag, type IncludeInDeepSearch as ah, type InitialQueryBehavior as ai, type ItemDef as aj, type ItemRenderParams as ak, type ItemRenderProps as al, type LinkItemDef as am, type LinkItemRenderParams as an, type LinkItemRenderProps as ao, type LoaderComponentProps as ap, type QueryAsyncNodesConfig as aq, type QueryLoaderConfig as ar, type RadioGroupBehavior as as, type RadioGroupDef as at, type RadioGroupLabelRenderParams as au, type RadioGroupRenderParams as av, type RadioGroupRenderProps as aw, type RadioItemDef as ax, type RadioItemRenderParams as ay, type RadioItemRenderProps as az, triggerFocus as b, type DataSurfaceProps as b0, type PopupMenuOpenChangeEventDetails as b1, closePress as c, siblingOpen as d, escapeKey as e, focusOut as f, imperativeAction as g, type GetResolvedIdFn as h, itemPress as i, type PopupMenuIdScope as j, keyboard as k, listNavigation as l, PopupMenuCheckboxItem as m, none as n, outsidePress as o, pointer as p, PopupMenuItem as q, PopupMenuLinkItem as r, submenuTrigger as s, triggerPress as t, type PopupMenuNode as u, PopupMenuRadioGroup as v, PopupMenuRadioItem as w, PopupMenuSubmenuTrigger as x, PopupMenuSubpageTrigger as y, type PopupMenuCheckboxItemProps as z };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { A as AimGuardRefs, c as GroupContext, G as GroupContextValue, b as GroupPositional, e as ItemContext, I as ItemContextValue, U as UseListboxItemParams, f as UseListboxItemReturn, d as useGroupContext, u as useItemContext, g as useListboxItem, a as useMaybeItemContext } from '../../use-listbox-item-NzZuY34-.cjs';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import { b as ListboxStore, V as VirtualItem } from '../../ListboxStore-
|
|
5
|
-
export { L as Context, D as DOMRefs, F as FilterFn, H as HighlightSource, I as ItemRegistration, L as ListboxContext, a as ListboxState, S as SearchNormalizer, a as State } from '../../ListboxStore-
|
|
6
|
-
export { b as SurfaceContext, S as SurfaceContextValue, u as useMaybeSurfaceContext, a as useSurfaceContext } from '../../surface-context-
|
|
3
|
+
import { aZ as HighlightChangeEventDetails } from '../../events-DVcrtGe3.cjs';
|
|
4
|
+
import { b as ListboxStore, V as VirtualItem } from '../../ListboxStore-B8oTpM57.cjs';
|
|
5
|
+
export { L as Context, D as DOMRefs, F as FilterFn, H as HighlightSource, I as ItemRegistration, L as ListboxContext, a as ListboxState, S as SearchNormalizer, a as State } from '../../ListboxStore-B8oTpM57.cjs';
|
|
6
|
+
export { b as SurfaceContext, S as SurfaceContextValue, u as useMaybeSurfaceContext, a as useSurfaceContext } from '../../surface-context-CN4Lb_6F.cjs';
|
|
7
7
|
export { c as commandScore, d as defaultFilter } from '../../command-score-CTJ9NV6n.cjs';
|
|
8
8
|
import '../../types-DT4FOOa2.cjs';
|
|
9
9
|
import '@base-ui/utils/store';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { A as AimGuardRefs, c as GroupContext, G as GroupContextValue, b as GroupPositional, e as ItemContext, I as ItemContextValue, U as UseListboxItemParams, f as UseListboxItemReturn, d as useGroupContext, u as useItemContext, g as useListboxItem, a as useMaybeItemContext } from '../../use-listbox-item-NzZuY34-.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import { b as ListboxStore, V as VirtualItem } from '../../ListboxStore-
|
|
5
|
-
export { L as Context, D as DOMRefs, F as FilterFn, H as HighlightSource, I as ItemRegistration, L as ListboxContext, a as ListboxState, S as SearchNormalizer, a as State } from '../../ListboxStore-
|
|
6
|
-
export { b as SurfaceContext, S as SurfaceContextValue, u as useMaybeSurfaceContext, a as useSurfaceContext } from '../../surface-context-
|
|
3
|
+
import { aZ as HighlightChangeEventDetails } from '../../events-BTHQ2OoH.js';
|
|
4
|
+
import { b as ListboxStore, V as VirtualItem } from '../../ListboxStore-CV5vPUUc.js';
|
|
5
|
+
export { L as Context, D as DOMRefs, F as FilterFn, H as HighlightSource, I as ItemRegistration, L as ListboxContext, a as ListboxState, S as SearchNormalizer, a as State } from '../../ListboxStore-CV5vPUUc.js';
|
|
6
|
+
export { b as SurfaceContext, S as SurfaceContextValue, u as useMaybeSurfaceContext, a as useSurfaceContext } from '../../surface-context-CGLDpMej.js';
|
|
7
7
|
export { c as commandScore, d as defaultFilter } from '../../command-score-CTJ9NV6n.js';
|
|
8
8
|
import '../../types-DT4FOOa2.js';
|
|
9
9
|
import '@base-ui/utils/store';
|