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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/dist/ListboxStore-BYBpGrOz.d.ts +453 -0
  2. package/dist/ListboxStore-nmorsoqX.d.cts +453 -0
  3. package/dist/chunk-4C666HHU.js +2 -0
  4. package/dist/chunk-4C666HHU.js.map +1 -0
  5. package/dist/chunk-5T5B5SPR.cjs +2 -0
  6. package/dist/chunk-5T5B5SPR.cjs.map +1 -0
  7. package/dist/chunk-A4Z5BY7H.js +2 -0
  8. package/dist/chunk-A4Z5BY7H.js.map +1 -0
  9. package/dist/chunk-BFOY762U.js +2 -0
  10. package/dist/chunk-BFOY762U.js.map +1 -0
  11. package/dist/chunk-IT372NHF.js +2 -0
  12. package/dist/chunk-IT372NHF.js.map +1 -0
  13. package/dist/chunk-JFEVUUPC.cjs +2 -0
  14. package/dist/chunk-JFEVUUPC.cjs.map +1 -0
  15. package/dist/chunk-KO3DXT3Y.js +2 -0
  16. package/dist/chunk-KO3DXT3Y.js.map +1 -0
  17. package/dist/chunk-LXXK4S4Q.js +2 -0
  18. package/dist/chunk-LXXK4S4Q.js.map +1 -0
  19. package/dist/chunk-M4G6J7DP.cjs +2 -0
  20. package/dist/chunk-M4G6J7DP.cjs.map +1 -0
  21. package/dist/chunk-SCDHQZFI.cjs +2 -0
  22. package/dist/chunk-SCDHQZFI.cjs.map +1 -0
  23. package/dist/chunk-W4ACKMIZ.cjs +2 -0
  24. package/dist/chunk-W4ACKMIZ.cjs.map +1 -0
  25. package/dist/chunk-XMZZ62VJ.cjs +2 -0
  26. package/dist/chunk-XMZZ62VJ.cjs.map +1 -0
  27. package/dist/combobox/index.cjs +2 -0
  28. package/dist/combobox/index.cjs.map +1 -0
  29. package/dist/combobox/index.d.cts +1066 -0
  30. package/dist/combobox/index.d.ts +1066 -0
  31. package/dist/combobox/index.js +2 -0
  32. package/dist/combobox/index.js.map +1 -0
  33. package/dist/command-menu/index.cjs +2 -0
  34. package/dist/command-menu/index.cjs.map +1 -0
  35. package/dist/command-menu/index.d.cts +154 -0
  36. package/dist/command-menu/index.d.ts +154 -0
  37. package/dist/command-menu/index.js +2 -0
  38. package/dist/command-menu/index.js.map +1 -0
  39. package/dist/command-score-CTJ9NV6n.d.cts +23 -0
  40. package/dist/command-score-CTJ9NV6n.d.ts +23 -0
  41. package/dist/context-menu/index.cjs +2 -0
  42. package/dist/context-menu/index.cjs.map +1 -0
  43. package/dist/context-menu/index.d.cts +672 -0
  44. package/dist/context-menu/index.d.ts +672 -0
  45. package/dist/context-menu/index.js +2 -0
  46. package/dist/context-menu/index.js.map +1 -0
  47. package/dist/dropdown-menu/index.cjs +2 -0
  48. package/dist/dropdown-menu/index.cjs.map +1 -0
  49. package/dist/dropdown-menu/index.d.cts +699 -0
  50. package/dist/dropdown-menu/index.d.ts +699 -0
  51. package/dist/dropdown-menu/index.js +2 -0
  52. package/dist/dropdown-menu/index.js.map +1 -0
  53. package/dist/events-DOGItflK.d.ts +1776 -0
  54. package/dist/events-DPsuhBln.d.cts +1776 -0
  55. package/dist/input-C95v6jB0.d.cts +46 -0
  56. package/dist/input-CYweYB_i.d.ts +46 -0
  57. package/dist/internal/listbox/index.cjs +2 -0
  58. package/dist/internal/listbox/index.cjs.map +1 -0
  59. package/dist/internal/listbox/index.d.cts +272 -0
  60. package/dist/internal/listbox/index.d.ts +272 -0
  61. package/dist/internal/listbox/index.js +2 -0
  62. package/dist/internal/listbox/index.js.map +1 -0
  63. package/dist/internal/popup-menu/index.cjs +2 -0
  64. package/dist/internal/popup-menu/index.cjs.map +1 -0
  65. package/dist/internal/popup-menu/index.d.cts +238 -0
  66. package/dist/internal/popup-menu/index.d.ts +238 -0
  67. package/dist/internal/popup-menu/index.js +2 -0
  68. package/dist/internal/popup-menu/index.js.map +1 -0
  69. package/dist/items-B6HeFO_8.d.cts +37 -0
  70. package/dist/items-B6HeFO_8.d.ts +37 -0
  71. package/dist/kbd/index.cjs +2 -0
  72. package/dist/kbd/index.cjs.map +1 -0
  73. package/dist/kbd/index.d.cts +61 -0
  74. package/dist/kbd/index.d.ts +61 -0
  75. package/dist/kbd/index.js +2 -0
  76. package/dist/kbd/index.js.map +1 -0
  77. package/dist/loaders/index.cjs +2 -0
  78. package/dist/loaders/index.cjs.map +1 -0
  79. package/dist/loaders/index.d.cts +363 -0
  80. package/dist/loaders/index.d.ts +363 -0
  81. package/dist/loaders/index.js +2 -0
  82. package/dist/loaders/index.js.map +1 -0
  83. package/dist/loading-C6WZGUc3.d.cts +29 -0
  84. package/dist/loading-CC4n55sR.d.ts +29 -0
  85. package/dist/resolve-BYm41YfG.d.ts +406 -0
  86. package/dist/resolve-Dk_fAKb2.d.cts +406 -0
  87. package/dist/scroll-arrow-B81wZTZ2.d.cts +544 -0
  88. package/dist/scroll-arrow-CNd0tgME.d.ts +544 -0
  89. package/dist/select/index.cjs +2 -0
  90. package/dist/select/index.cjs.map +1 -0
  91. package/dist/select/index.d.cts +985 -0
  92. package/dist/select/index.d.ts +985 -0
  93. package/dist/select/index.js +2 -0
  94. package/dist/select/index.js.map +1 -0
  95. package/dist/separator-BiySI623.d.cts +275 -0
  96. package/dist/separator-De8l8DKO.d.ts +275 -0
  97. package/dist/surface-context-ClmxshBW.d.ts +14 -0
  98. package/dist/surface-context-DF-L-30G.d.cts +14 -0
  99. package/dist/type-guards-BC2B6bVi.d.cts +350 -0
  100. package/dist/type-guards-ybcHBB3C.d.ts +350 -0
  101. package/dist/types-DT4FOOa2.d.cts +51 -0
  102. package/dist/types-DT4FOOa2.d.ts +51 -0
  103. package/dist/use-listbox-item-NzZuY34-.d.cts +212 -0
  104. package/dist/use-listbox-item-NzZuY34-.d.ts +212 -0
  105. package/dist/video-player/index.cjs +3 -0
  106. package/dist/video-player/index.cjs.map +1 -0
  107. package/dist/video-player/index.d.cts +1391 -0
  108. package/dist/video-player/index.d.ts +1391 -0
  109. package/dist/video-player/index.js +3 -0
  110. package/dist/video-player/index.js.map +1 -0
  111. package/package.json +66 -12
  112. package/dist/index.d.ts +0 -2
  113. package/dist/index.js +0 -2
@@ -0,0 +1,154 @@
1
+ import { h as GetResolvedIdFn, j as PopupMenuIdScope, m as PopupMenuCheckboxItem, q as PopupMenuItem, r as PopupMenuNode, N as NodeDef, x as PopupMenuSubpageTrigger } from '../events-DPsuhBln.cjs';
2
+ export { M as AsyncLoaderConfig, O as AsyncLoaderFetchStatus, Q as AsyncLoaderLoadingPhase, R as AsyncLoaderResult, S as AsyncLoaderSource, T as AsyncLoaderStatus, U as AsyncNodesConfig, V as AsyncRenderState, W as AsyncResultBehavior, X as AsyncState, Y as BreadcrumbNode, Z as CheckboxItemDef, _ as CheckboxItemRenderParams, $ as CheckboxItemRenderProps, y as CommandMenuCheckboxItemProps, z as CommandMenuCheckboxItemState, A as CommandMenuItemProps, B as CommandMenuItemState, K as CommandMenuSubpageTriggerProps, L as CommandMenuSubpageTriggerState, a0 as DataListChildrenState, a1 as DeepSearchConfig, a2 as DisplayGroupNode, a3 as DisplayNode, a4 as DisplayRadioGroupNode, a5 as DisplayRowNode, a6 as DisplaySeparatorNode, a7 as DisplaySubpageNode, a8 as GroupBehavior, a9 as GroupDef, ab as GroupRenderContext, ac as GroupRenderParams, ad as IncludeInDeepSearch, ae as InitialQueryBehavior, af as ItemDef, ag as ItemRenderParams, ah as ItemRenderProps, ai as LoaderComponentProps, aj as QueryAsyncNodesConfig, ak as QueryLoaderConfig, al as RadioGroupBehavior, am as RadioGroupDef, ao as RadioGroupRenderParams, ap as RadioGroupRenderProps, aq as RadioItemDef, ar as RadioItemRenderParams, as as RadioItemRenderProps, at as RowRenderContext, au as ScoredNode, av as SeparatorDef, aw as SeparatorRenderParams, ax as StaticAsyncNodesConfig, ay as StaticLoaderConfig, az as SubmenuDef, aA as SubmenuRenderParams, aB as SubmenuRenderProps, aC as SubpageContentRenderParams, aD as SubpageDef, aE as SubpageTriggerRenderParams, aF as SubpageTriggerRenderProps, aJ as UnresolvedMenuNode, aK as defineRadioGroup, aL as isDisplayGroupNode, aM as isDisplayRadioGroupNode, aN as isDisplayRowNode, aO as isDisplaySeparatorNode } from '../events-DPsuhBln.cjs';
3
+ export { S as SurfaceContextValue, u as useMaybeSurfaceContext, a as useSurfaceContext } from '../surface-context-DF-L-30G.cjs';
4
+ import { P as PopupMenuEmpty, a as PopupMenuGroup, b as PopupMenuGroupLabel, c as PopupMenuIcon, d as PopupMenuList, e as PopupMenuSeparator, f as PopupMenuSurface } from '../separator-BiySI623.cjs';
5
+ export { g as CommandMenuEmptyProps, h as CommandMenuEmptyState, i as CommandMenuGroupLabelProps, j as CommandMenuGroupLabelState, k as CommandMenuGroupProps, l as CommandMenuGroupState, m as CommandMenuIconProps, n as CommandMenuIconState, o as CommandMenuListChildrenState, p as CommandMenuListProps, q as CommandMenuListState, r as CommandMenuSeparatorProps, s as CommandMenuSeparatorState, t as CommandMenuSurfaceProps, u as CommandMenuSurfaceState } from '../separator-BiySI623.cjs';
6
+ import { P as PopupMenuLoading } from '../loading-C6WZGUc3.cjs';
7
+ export { a as CommandMenuLoadingProps, b as CommandMenuLoadingState } from '../loading-C6WZGUc3.cjs';
8
+ import { A as PopupMenuSubpageProps, P as PopupMenuCheckboxItemIndicator, a as PopupMenuFocusZone, b as PopupMenuFooter, c as PopupMenuHeader, e as PopupMenuShortcut, g as PopupMenuSubpageBack, h as PopupMenuSubpageBackItem } from '../resolve-Dk_fAKb2.cjs';
9
+ export { B as AsyncMenuCoordinatorValue, l as CommandMenuCheckboxItemIndicatorProps, m as CommandMenuCheckboxItemIndicatorState, n as CommandMenuFocusZoneProps, o as CommandMenuFocusZoneState, p as CommandMenuFooterProps, q as CommandMenuFooterState, r as CommandMenuHeaderProps, s as CommandMenuHeaderState, d as CommandMenuRadioGroupValue, C as CommandMenuRadioGroupValueProps, t as CommandMenuShortcutProps, v as CommandMenuShortcutState, w as CommandMenuSubpageBackItemProps, x as CommandMenuSubpageBackItemState, y as CommandMenuSubpageBackProps, z as CommandMenuSubpageBackState, E as DataListContext, F as DataSurfaceContext, D as DataSurfaceContextValue, R as RenderNodeFn, G as defaultGetResolvedId, H as isPopupMenuNode, u as useAsyncMenuCoordinator, i as useDataList, I as useDataSurfaceContext, j as useMaybeAsyncMenuCoordinator, k as useMaybeDataList, J as useMaybeDataSurfaceContext } from '../resolve-Dk_fAKb2.cjs';
10
+ import * as _base_ui_react_dialog from '@base-ui/react/dialog';
11
+ import { Dialog } from '@base-ui/react/dialog';
12
+ import * as React from 'react';
13
+ import { a as PopupMenuInputProps, b as PopupMenuInputState } from '../input-C95v6jB0.cjs';
14
+ import { a as ComponentRenderFn } from '../types-DT4FOOa2.cjs';
15
+ import * as react_jsx_runtime from 'react/jsx-runtime';
16
+ import '../ListboxStore-nmorsoqX.cjs';
17
+ import '@base-ui/utils/store';
18
+
19
+ interface CommandMenuBackdropProps extends Dialog.Backdrop.Props {
20
+ }
21
+ type CommandMenuBackdropState = Dialog.Backdrop.State;
22
+ /**
23
+ * An overlay displayed beneath the command menu popup.
24
+ *
25
+ * Pressing down on the backdrop closes the menu immediately (pointerdown),
26
+ * matching the outside-press behavior of the other menus, instead of waiting
27
+ * for the Dialog's click-time dismissal. Consumers can opt out by calling
28
+ * `event.preventDefault()` in their own `onPointerDown`.
29
+ */
30
+ declare const CommandMenuBackdrop: React.ForwardRefExoticComponent<Omit<CommandMenuBackdrop.Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
31
+ declare namespace CommandMenuBackdrop {
32
+ interface Props extends CommandMenuBackdropProps {
33
+ }
34
+ type State = CommandMenuBackdropState;
35
+ }
36
+
37
+ interface CommandMenuInputProps extends PopupMenuInputProps {
38
+ }
39
+ type CommandMenuInputState = PopupMenuInputState;
40
+ /**
41
+ * Search input for filtering command menu items.
42
+ */
43
+ declare const CommandMenuInput: React.ForwardRefExoticComponent<Omit<CommandMenuInput.Props, "ref"> & React.RefAttributes<HTMLInputElement>>;
44
+ declare namespace CommandMenuInput {
45
+ interface Props extends CommandMenuInputProps {
46
+ }
47
+ type State = CommandMenuInputState;
48
+ }
49
+
50
+ interface CommandMenuPopupState extends Dialog.Popup.State {
51
+ /**
52
+ * Whether any non-root subpage is currently open.
53
+ */
54
+ hasOpenSubpage: boolean;
55
+ /**
56
+ * Active subpage ID, or null when the root surface is active.
57
+ */
58
+ subpageId: string | null;
59
+ }
60
+ interface CommandMenuPopupProps extends Omit<Dialog.Popup.Props, 'className' | 'render'> {
61
+ /**
62
+ * CSS class applied to the element, or a function that
63
+ * returns a class based on the component's state.
64
+ */
65
+ className?: string | ((state: CommandMenuPopupState) => string);
66
+ /**
67
+ * Allows replacing the popup element with a custom element.
68
+ * The render state includes dialog popup + subpage navigation state.
69
+ */
70
+ render?: React.ReactElement | ComponentRenderFn<React.HTMLAttributes<HTMLElement>, CommandMenuPopupState>;
71
+ }
72
+ /**
73
+ * A container for the command menu contents.
74
+ * Wraps Dialog.Popup with popup-menu subpage and data providers.
75
+ */
76
+ declare const CommandMenuPopup: React.ForwardRefExoticComponent<Omit<CommandMenuPopupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
77
+ declare namespace CommandMenuPopup {
78
+ type Props = CommandMenuPopupProps;
79
+ type State = CommandMenuPopupState;
80
+ }
81
+
82
+ interface CommandMenuPortalProps extends Dialog.Portal.Props {
83
+ }
84
+ type CommandMenuPortalState = Dialog.Portal.State;
85
+ /**
86
+ * A portal element that moves the command menu popup to a different part of the DOM.
87
+ */
88
+ declare const CommandMenuPortal: React.ForwardRefExoticComponent<Omit<_base_ui_react_dialog.DialogPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
89
+ declare namespace CommandMenuPortal {
90
+ type Props = CommandMenuPortalProps;
91
+ type State = CommandMenuPortalState;
92
+ }
93
+
94
+ interface CommandMenuRootProps {
95
+ children: React.ReactNode;
96
+ open?: boolean;
97
+ defaultOpen?: boolean;
98
+ onOpenChange?: (open: boolean) => void;
99
+ onOpenChangeComplete?: (open: boolean) => void;
100
+ hotkey?: string;
101
+ modal?: boolean;
102
+ disabled?: boolean;
103
+ /**
104
+ * Computes canonical Resolved IDs for data-first content from the Unresolved Menu Node (definitional facts only).
105
+ * @default encoded surface Definition Path joined with `/`; `idScope="menu"` uses the Definition Key
106
+ * 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.
107
+ * @example
108
+ * <CommandMenu.Root getResolvedId={(node) => node.def.id ?? node.definitionPath.join('.')} />
109
+ */
110
+ getResolvedId?: GetResolvedIdFn;
111
+ /** Definition Key uniqueness scope. Read once when the menu root mounts. @default 'surface' */
112
+ idScope?: PopupMenuIdScope;
113
+ }
114
+ /**
115
+ * Groups all parts of the command menu.
116
+ * Manages open state and provides popup-menu context to children.
117
+ * Doesn't render its own HTML element.
118
+ */
119
+ declare function CommandMenuRoot(props: CommandMenuRoot.Props): react_jsx_runtime.JSX.Element;
120
+ declare namespace CommandMenuRoot {
121
+ interface Props extends CommandMenuRootProps {
122
+ }
123
+ }
124
+
125
+ interface CommandMenuSubpageProps extends PopupMenuSubpageProps {
126
+ }
127
+ /**
128
+ * Groups all parts of a command menu subpage.
129
+ */
130
+ declare function CommandMenuSubpage(props: CommandMenuSubpage.Props): react_jsx_runtime.JSX.Element;
131
+ declare namespace CommandMenuSubpage {
132
+ interface Props extends CommandMenuSubpageProps {
133
+ }
134
+ }
135
+
136
+ interface CommandMenuTriggerProps extends Dialog.Trigger.Props {
137
+ }
138
+ type CommandMenuTriggerState = Dialog.Trigger.State;
139
+ /**
140
+ * A button that opens the command menu.
141
+ */
142
+ declare const CommandMenuTrigger: React.ForwardRefExoticComponent<Omit<CommandMenuTrigger.Props, "ref"> & React.RefAttributes<HTMLButtonElement>>;
143
+ declare namespace CommandMenuTrigger {
144
+ interface Props extends CommandMenuTriggerProps {
145
+ }
146
+ type State = CommandMenuTriggerState;
147
+ }
148
+
149
+ declare const index_parts_NodeDef: typeof NodeDef;
150
+ declare namespace index_parts {
151
+ export { CommandMenuBackdrop as Backdrop, PopupMenuCheckboxItem as CheckboxItem, PopupMenuCheckboxItemIndicator as CheckboxItemIndicator, PopupMenuEmpty as Empty, PopupMenuFocusZone as FocusZone, PopupMenuFooter as Footer, PopupMenuGroup as Group, PopupMenuGroupLabel as GroupLabel, PopupMenuHeader as Header, PopupMenuIcon as Icon, CommandMenuInput as Input, PopupMenuItem as Item, PopupMenuList as List, PopupMenuLoading as Loading, PopupMenuNode as Node, index_parts_NodeDef as NodeDef, CommandMenuPopup as Popup, CommandMenuPortal as Portal, CommandMenuRoot as Root, PopupMenuSeparator as Separator, PopupMenuShortcut as Shortcut, CommandMenuSubpage as Subpage, PopupMenuSubpageBack as SubpageBack, PopupMenuSubpageBackItem as SubpageBackItem, PopupMenuSubpageTrigger as SubpageTrigger, PopupMenuSurface as Surface, CommandMenuTrigger as Trigger };
152
+ }
153
+
154
+ export { index_parts as CommandMenu, type CommandMenuBackdropProps, type CommandMenuBackdropState, PopupMenuFocusZone as CommandMenuFocusZone, PopupMenuFooter as CommandMenuFooter, PopupMenuHeader as CommandMenuHeader, type CommandMenuInputProps, type CommandMenuInputState, type CommandMenuPopupProps, type CommandMenuPopupState, type CommandMenuPortalProps, type CommandMenuPortalState, type CommandMenuRootProps, type CommandMenuSubpageProps, type CommandMenuTriggerProps, type CommandMenuTriggerState, GetResolvedIdFn, NodeDef, PopupMenuIdScope, PopupMenuNode };
@@ -0,0 +1,154 @@
1
+ import { h as GetResolvedIdFn, j as PopupMenuIdScope, m as PopupMenuCheckboxItem, q as PopupMenuItem, r as PopupMenuNode, N as NodeDef, x as PopupMenuSubpageTrigger } from '../events-DOGItflK.js';
2
+ export { M as AsyncLoaderConfig, O as AsyncLoaderFetchStatus, Q as AsyncLoaderLoadingPhase, R as AsyncLoaderResult, S as AsyncLoaderSource, T as AsyncLoaderStatus, U as AsyncNodesConfig, V as AsyncRenderState, W as AsyncResultBehavior, X as AsyncState, Y as BreadcrumbNode, Z as CheckboxItemDef, _ as CheckboxItemRenderParams, $ as CheckboxItemRenderProps, y as CommandMenuCheckboxItemProps, z as CommandMenuCheckboxItemState, A as CommandMenuItemProps, B as CommandMenuItemState, K as CommandMenuSubpageTriggerProps, L as CommandMenuSubpageTriggerState, a0 as DataListChildrenState, a1 as DeepSearchConfig, a2 as DisplayGroupNode, a3 as DisplayNode, a4 as DisplayRadioGroupNode, a5 as DisplayRowNode, a6 as DisplaySeparatorNode, a7 as DisplaySubpageNode, a8 as GroupBehavior, a9 as GroupDef, ab as GroupRenderContext, ac as GroupRenderParams, ad as IncludeInDeepSearch, ae as InitialQueryBehavior, af as ItemDef, ag as ItemRenderParams, ah as ItemRenderProps, ai as LoaderComponentProps, aj as QueryAsyncNodesConfig, ak as QueryLoaderConfig, al as RadioGroupBehavior, am as RadioGroupDef, ao as RadioGroupRenderParams, ap as RadioGroupRenderProps, aq as RadioItemDef, ar as RadioItemRenderParams, as as RadioItemRenderProps, at as RowRenderContext, au as ScoredNode, av as SeparatorDef, aw as SeparatorRenderParams, ax as StaticAsyncNodesConfig, ay as StaticLoaderConfig, az as SubmenuDef, aA as SubmenuRenderParams, aB as SubmenuRenderProps, aC as SubpageContentRenderParams, aD as SubpageDef, aE as SubpageTriggerRenderParams, aF as SubpageTriggerRenderProps, aJ as UnresolvedMenuNode, aK as defineRadioGroup, aL as isDisplayGroupNode, aM as isDisplayRadioGroupNode, aN as isDisplayRowNode, aO as isDisplaySeparatorNode } from '../events-DOGItflK.js';
3
+ export { S as SurfaceContextValue, u as useMaybeSurfaceContext, a as useSurfaceContext } from '../surface-context-ClmxshBW.js';
4
+ import { P as PopupMenuEmpty, a as PopupMenuGroup, b as PopupMenuGroupLabel, c as PopupMenuIcon, d as PopupMenuList, e as PopupMenuSeparator, f as PopupMenuSurface } from '../separator-De8l8DKO.js';
5
+ export { g as CommandMenuEmptyProps, h as CommandMenuEmptyState, i as CommandMenuGroupLabelProps, j as CommandMenuGroupLabelState, k as CommandMenuGroupProps, l as CommandMenuGroupState, m as CommandMenuIconProps, n as CommandMenuIconState, o as CommandMenuListChildrenState, p as CommandMenuListProps, q as CommandMenuListState, r as CommandMenuSeparatorProps, s as CommandMenuSeparatorState, t as CommandMenuSurfaceProps, u as CommandMenuSurfaceState } from '../separator-De8l8DKO.js';
6
+ import { P as PopupMenuLoading } from '../loading-CC4n55sR.js';
7
+ export { a as CommandMenuLoadingProps, b as CommandMenuLoadingState } from '../loading-CC4n55sR.js';
8
+ import { A as PopupMenuSubpageProps, P as PopupMenuCheckboxItemIndicator, a as PopupMenuFocusZone, b as PopupMenuFooter, c as PopupMenuHeader, e as PopupMenuShortcut, g as PopupMenuSubpageBack, h as PopupMenuSubpageBackItem } from '../resolve-BYm41YfG.js';
9
+ export { B as AsyncMenuCoordinatorValue, l as CommandMenuCheckboxItemIndicatorProps, m as CommandMenuCheckboxItemIndicatorState, n as CommandMenuFocusZoneProps, o as CommandMenuFocusZoneState, p as CommandMenuFooterProps, q as CommandMenuFooterState, r as CommandMenuHeaderProps, s as CommandMenuHeaderState, d as CommandMenuRadioGroupValue, C as CommandMenuRadioGroupValueProps, t as CommandMenuShortcutProps, v as CommandMenuShortcutState, w as CommandMenuSubpageBackItemProps, x as CommandMenuSubpageBackItemState, y as CommandMenuSubpageBackProps, z as CommandMenuSubpageBackState, E as DataListContext, F as DataSurfaceContext, D as DataSurfaceContextValue, R as RenderNodeFn, G as defaultGetResolvedId, H as isPopupMenuNode, u as useAsyncMenuCoordinator, i as useDataList, I as useDataSurfaceContext, j as useMaybeAsyncMenuCoordinator, k as useMaybeDataList, J as useMaybeDataSurfaceContext } from '../resolve-BYm41YfG.js';
10
+ import * as _base_ui_react_dialog from '@base-ui/react/dialog';
11
+ import { Dialog } from '@base-ui/react/dialog';
12
+ import * as React from 'react';
13
+ import { a as PopupMenuInputProps, b as PopupMenuInputState } from '../input-CYweYB_i.js';
14
+ import { a as ComponentRenderFn } from '../types-DT4FOOa2.js';
15
+ import * as react_jsx_runtime from 'react/jsx-runtime';
16
+ import '../ListboxStore-BYBpGrOz.js';
17
+ import '@base-ui/utils/store';
18
+
19
+ interface CommandMenuBackdropProps extends Dialog.Backdrop.Props {
20
+ }
21
+ type CommandMenuBackdropState = Dialog.Backdrop.State;
22
+ /**
23
+ * An overlay displayed beneath the command menu popup.
24
+ *
25
+ * Pressing down on the backdrop closes the menu immediately (pointerdown),
26
+ * matching the outside-press behavior of the other menus, instead of waiting
27
+ * for the Dialog's click-time dismissal. Consumers can opt out by calling
28
+ * `event.preventDefault()` in their own `onPointerDown`.
29
+ */
30
+ declare const CommandMenuBackdrop: React.ForwardRefExoticComponent<Omit<CommandMenuBackdrop.Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
31
+ declare namespace CommandMenuBackdrop {
32
+ interface Props extends CommandMenuBackdropProps {
33
+ }
34
+ type State = CommandMenuBackdropState;
35
+ }
36
+
37
+ interface CommandMenuInputProps extends PopupMenuInputProps {
38
+ }
39
+ type CommandMenuInputState = PopupMenuInputState;
40
+ /**
41
+ * Search input for filtering command menu items.
42
+ */
43
+ declare const CommandMenuInput: React.ForwardRefExoticComponent<Omit<CommandMenuInput.Props, "ref"> & React.RefAttributes<HTMLInputElement>>;
44
+ declare namespace CommandMenuInput {
45
+ interface Props extends CommandMenuInputProps {
46
+ }
47
+ type State = CommandMenuInputState;
48
+ }
49
+
50
+ interface CommandMenuPopupState extends Dialog.Popup.State {
51
+ /**
52
+ * Whether any non-root subpage is currently open.
53
+ */
54
+ hasOpenSubpage: boolean;
55
+ /**
56
+ * Active subpage ID, or null when the root surface is active.
57
+ */
58
+ subpageId: string | null;
59
+ }
60
+ interface CommandMenuPopupProps extends Omit<Dialog.Popup.Props, 'className' | 'render'> {
61
+ /**
62
+ * CSS class applied to the element, or a function that
63
+ * returns a class based on the component's state.
64
+ */
65
+ className?: string | ((state: CommandMenuPopupState) => string);
66
+ /**
67
+ * Allows replacing the popup element with a custom element.
68
+ * The render state includes dialog popup + subpage navigation state.
69
+ */
70
+ render?: React.ReactElement | ComponentRenderFn<React.HTMLAttributes<HTMLElement>, CommandMenuPopupState>;
71
+ }
72
+ /**
73
+ * A container for the command menu contents.
74
+ * Wraps Dialog.Popup with popup-menu subpage and data providers.
75
+ */
76
+ declare const CommandMenuPopup: React.ForwardRefExoticComponent<Omit<CommandMenuPopupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
77
+ declare namespace CommandMenuPopup {
78
+ type Props = CommandMenuPopupProps;
79
+ type State = CommandMenuPopupState;
80
+ }
81
+
82
+ interface CommandMenuPortalProps extends Dialog.Portal.Props {
83
+ }
84
+ type CommandMenuPortalState = Dialog.Portal.State;
85
+ /**
86
+ * A portal element that moves the command menu popup to a different part of the DOM.
87
+ */
88
+ declare const CommandMenuPortal: React.ForwardRefExoticComponent<Omit<_base_ui_react_dialog.DialogPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
89
+ declare namespace CommandMenuPortal {
90
+ type Props = CommandMenuPortalProps;
91
+ type State = CommandMenuPortalState;
92
+ }
93
+
94
+ interface CommandMenuRootProps {
95
+ children: React.ReactNode;
96
+ open?: boolean;
97
+ defaultOpen?: boolean;
98
+ onOpenChange?: (open: boolean) => void;
99
+ onOpenChangeComplete?: (open: boolean) => void;
100
+ hotkey?: string;
101
+ modal?: boolean;
102
+ disabled?: boolean;
103
+ /**
104
+ * Computes canonical Resolved IDs for data-first content from the Unresolved Menu Node (definitional facts only).
105
+ * @default encoded surface Definition Path joined with `/`; `idScope="menu"` uses the Definition Key
106
+ * 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.
107
+ * @example
108
+ * <CommandMenu.Root getResolvedId={(node) => node.def.id ?? node.definitionPath.join('.')} />
109
+ */
110
+ getResolvedId?: GetResolvedIdFn;
111
+ /** Definition Key uniqueness scope. Read once when the menu root mounts. @default 'surface' */
112
+ idScope?: PopupMenuIdScope;
113
+ }
114
+ /**
115
+ * Groups all parts of the command menu.
116
+ * Manages open state and provides popup-menu context to children.
117
+ * Doesn't render its own HTML element.
118
+ */
119
+ declare function CommandMenuRoot(props: CommandMenuRoot.Props): react_jsx_runtime.JSX.Element;
120
+ declare namespace CommandMenuRoot {
121
+ interface Props extends CommandMenuRootProps {
122
+ }
123
+ }
124
+
125
+ interface CommandMenuSubpageProps extends PopupMenuSubpageProps {
126
+ }
127
+ /**
128
+ * Groups all parts of a command menu subpage.
129
+ */
130
+ declare function CommandMenuSubpage(props: CommandMenuSubpage.Props): react_jsx_runtime.JSX.Element;
131
+ declare namespace CommandMenuSubpage {
132
+ interface Props extends CommandMenuSubpageProps {
133
+ }
134
+ }
135
+
136
+ interface CommandMenuTriggerProps extends Dialog.Trigger.Props {
137
+ }
138
+ type CommandMenuTriggerState = Dialog.Trigger.State;
139
+ /**
140
+ * A button that opens the command menu.
141
+ */
142
+ declare const CommandMenuTrigger: React.ForwardRefExoticComponent<Omit<CommandMenuTrigger.Props, "ref"> & React.RefAttributes<HTMLButtonElement>>;
143
+ declare namespace CommandMenuTrigger {
144
+ interface Props extends CommandMenuTriggerProps {
145
+ }
146
+ type State = CommandMenuTriggerState;
147
+ }
148
+
149
+ declare const index_parts_NodeDef: typeof NodeDef;
150
+ declare namespace index_parts {
151
+ export { CommandMenuBackdrop as Backdrop, PopupMenuCheckboxItem as CheckboxItem, PopupMenuCheckboxItemIndicator as CheckboxItemIndicator, PopupMenuEmpty as Empty, PopupMenuFocusZone as FocusZone, PopupMenuFooter as Footer, PopupMenuGroup as Group, PopupMenuGroupLabel as GroupLabel, PopupMenuHeader as Header, PopupMenuIcon as Icon, CommandMenuInput as Input, PopupMenuItem as Item, PopupMenuList as List, PopupMenuLoading as Loading, PopupMenuNode as Node, index_parts_NodeDef as NodeDef, CommandMenuPopup as Popup, CommandMenuPortal as Portal, CommandMenuRoot as Root, PopupMenuSeparator as Separator, PopupMenuShortcut as Shortcut, CommandMenuSubpage as Subpage, PopupMenuSubpageBack as SubpageBack, PopupMenuSubpageBackItem as SubpageBackItem, PopupMenuSubpageTrigger as SubpageTrigger, PopupMenuSurface as Surface, CommandMenuTrigger as Trigger };
152
+ }
153
+
154
+ export { index_parts as CommandMenu, type CommandMenuBackdropProps, type CommandMenuBackdropState, PopupMenuFocusZone as CommandMenuFocusZone, PopupMenuFooter as CommandMenuFooter, PopupMenuHeader as CommandMenuHeader, type CommandMenuInputProps, type CommandMenuInputState, type CommandMenuPopupProps, type CommandMenuPopupState, type CommandMenuPortalProps, type CommandMenuPortalState, type CommandMenuRootProps, type CommandMenuSubpageProps, type CommandMenuTriggerProps, type CommandMenuTriggerState, GetResolvedIdFn, NodeDef, PopupMenuIdScope, PopupMenuNode };
@@ -0,0 +1,2 @@
1
+ import{a as pe,d as re}from"../chunk-LXXK4S4Q.js";import{$ as Ae,A as he,Aa as oe,B as ke,Ba as ne,C as De,Ca as te,D as ve,Da as ae,E as Le,F as Ne,G as Te,I as H,N as w,T as F,U as K,V,W as Z,X as Ee,Y as Be,Z as Ge,_ as Oe,ba as j,ca as U,d as T,e as x,f as E,fa as Q,ga as q,ha as W,ia as _,k as B,ka as He,na as $,o as Re,oa as z,p as ye,pa as J,q as G,r as O,ra as X,sa as Y,ta as ee,y as Ie,z as A}from"../chunk-BFOY762U.js";import{a as R,p as be,q as xe}from"../chunk-A4Z5BY7H.js";import{a as ge}from"../chunk-4C666HHU.js";var fe={};ge(fe,{Backdrop:()=>ue,CheckboxItem:()=>q,CheckboxItemIndicator:()=>W,Empty:()=>K,FocusZone:()=>$,Footer:()=>z,Group:()=>J,GroupLabel:()=>Z,Header:()=>X,Icon:()=>F,Input:()=>me,Item:()=>_,List:()=>j,Loading:()=>U,Popup:()=>de,Portal:()=>ie,Root:()=>Pe,Separator:()=>Y,Shortcut:()=>ee,Subpage:()=>Me,SubpageBack:()=>ne,SubpageBackItem:()=>te,SubpageTrigger:()=>ae,Surface:()=>Q,Trigger:()=>Se});import{Dialog as we}from"@base-ui/react/dialog";import*as y from"react";import{jsx as Fe}from"react/jsx-runtime";var ue=y.forwardRef(function(o,a){let{onPointerDown:p,...r}=o,t=x(),u=y.useCallback(m=>{p?.(m),!m.defaultPrevented&&t&&!t.disabled&&t.closeAll(R.outsidePress,m.nativeEvent)},[p,t]);return Fe(we.Backdrop,{ref:a,...r,onPointerDown:u,"data-command-menu-backdrop":""})});import*as se from"react";import{jsx as Ke}from"react/jsx-runtime";var me=se.forwardRef(function(o,a){let{backspaceGoesBack:p=!0,...r}=o;return Ke(V,{ref:a,backspaceGoesBack:p,...r})});import{Dialog as Ve}from"@base-ui/react/dialog";import*as s from"react";import{jsx as I,jsxs as Ze}from"react/jsx-runtime";var de=s.forwardRef(function(o,a){let{children:p,className:r,render:t,...u}=o,m=s.useId(),M=T(),{subpageStackContextValue:C,isSubpageNavigating:S,hasOpenSubpage:n,subpageId:i}=O({surfaceId:m,store:M.store}),[g,h]=s.useState(null),[b,f]=s.useState(null),c=s.useCallback(l=>({...l,hasOpenSubpage:n,subpageId:i}),[n,i]),k=s.useMemo(()=>typeof r=="function"?l=>r(c(l)):r,[r,c]),D=s.useMemo(()=>typeof t=="function"?(l,P)=>t(l,c(P)):t,[t,c]),v=s.useMemo(()=>({dataSurfaceContext:g,setDataSurfaceContext:h,resolvedNodes:b,setResolvedNodes:f}),[g,b]);return I(E.Provider,{value:m,children:I(B.Provider,{value:C,children:I(A.Provider,{value:v,children:Ze(Ve.Popup,{ref:a,className:k,render:D,"data-command-menu-popup":"","data-navigating":S?"":void 0,"data-has-open-subpage":n?"":void 0,...u,children:[p,I(H,{})]})})})})});import{Dialog as je}from"@base-ui/react/dialog";var ie=je.Portal;import{Dialog as _e}from"@base-ui/react/dialog";import*as L from"react";import*as d from"react";function Ue(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement||e instanceof HTMLElement&&e.isContentEditable}function Qe(e){let o=e.key.toLowerCase();return o===" "?"space":o}function qe(e,o){let a=re(),p=o.meta||a&&o.mod,r=o.ctrl||!a&&o.mod;return e.metaKey===p&&e.ctrlKey===r&&e.altKey===o.alt&&e.shiftKey===o.shift}function We(e,o){return o.key===Qe(e)&&qe(e,o)}function ce(e,o,a){let p=d.useMemo(()=>pe(e),[e]),[r]=p.chords,t=p.chords.length===1&&r!==void 0?r:null,u=p.chords.length>1,m=a?.enabled!==!1,M=d.useRef(o),C=d.useRef(a);M.current=o,C.current=a,d.useEffect(()=>{u&&process.env.NODE_ENV!=="production"&&console.warn(`useHotkey only supports single-chord keybindings. Received "${e}", but sequences are not supported by useHotkey.`)},[u,e]),d.useEffect(()=>{if(!m||t===null||u||t.key===null)return;let S=n=>{let i=C.current;n.repeat||!i?.allowInInput&&Ue(n.target)||We(n,t)&&(i?.preventDefault!==!1&&n.preventDefault(),M.current(n))};return document.addEventListener("keydown",S),()=>{document.removeEventListener("keydown",S)}},[t,m,u])}import{jsx as le}from"react/jsx-runtime";function Pe(e){let{children:o,open:a,defaultOpen:p=!1,onOpenChange:r,onOpenChangeComplete:t,hotkey:u,modal:m=!0,disabled:M,getResolvedId:C,idScope:S="surface"}=e,{store:n,focusOwnerStore:i,openChainStore:g,registerSurface:h,closeAll:b,handleOpenChange:f,disabled:c,menuTreeResolver:k}=G({onOpenChange:r,defaultOpen:p,disabled:M,closeOnOutsidePress:"pointerdown",getResolvedId:C,idScope:S});n.useControlledProp("openProp",a);let D=n.useState("open");ce(u??"",()=>f(!n.state.open,R.imperativeAction),{enabled:!!u&&!c,allowInInput:!0});let v=L.useCallback((P,N)=>{f(P,N.reason,N.event)},[f]),l=L.useCallback(P=>{!P&&n.context.clearSearchOnClose==="after-exit"&&(n.clearSearch(),n.setInputActive(!1)),P||(n.clearHighlight(),n.context.onCloseComplete?.(),n.context.onPopupCloseComplete?.()),t?.(P)},[n,t]);return le(w,{menuTreeResolver:k,store:n,focusOwnerStore:i,openChainStore:g,disabled:c,depth:0,closeAll:b,explicitTabBehavior:!0,tabWithoutZones:"inert",registerSurface:h,menuType:"dropdown",closeOnOutsidePress:"pointerdown",componentName:"command-menu",children:le(_e.Root,{open:D,onOpenChange:v,onOpenChangeComplete:l,modal:m,children:o})})}import{jsx as $e}from"react/jsx-runtime";function Me(e){let{closeRootOnEsc:o=!0,children:a,...p}=e;return $e(oe,{closeRootOnEsc:o,...p,children:a})}import{Dialog as ze}from"@base-ui/react/dialog";import*as Ce from"react";import{jsx as Je}from"react/jsx-runtime";var Se=Ce.forwardRef(function(o,a){let{disabled:p,...r}=o,t=x(),u=p||t?.disabled||!1;return Je(ze.Trigger,{ref:a,...r,disabled:u,"data-command-menu-trigger":""})});export{fe as CommandMenu,He as CommandMenuRadioGroupValue,De as DataListContext,Ie as DataSurfaceContext,ye as defaultGetResolvedId,Ee as defineRadioGroup,Be as isDisplayGroupNode,Ge as isDisplayRadioGroupNode,Ae as isDisplayRowNode,Oe as isDisplaySeparatorNode,Re as isPopupMenuNode,Ne as useAsyncMenuCoordinator,ve as useDataList,he as useDataSurfaceContext,Te as useMaybeAsyncMenuCoordinator,Le as useMaybeDataList,ke as useMaybeDataSurfaceContext,xe as useMaybeSurfaceContext,be as useSurfaceContext};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/command-menu/index.parts.ts","../../src/command-menu/backdrop/backdrop.tsx","../../src/command-menu/input/input.tsx","../../src/command-menu/popup/popup.tsx","../../src/command-menu/portal/portal.tsx","../../src/command-menu/root/root.tsx","../../src/kbd/hooks/use-hotkey.ts","../../src/command-menu/subpage/subpage.tsx","../../src/command-menu/trigger/trigger.tsx"],"sourcesContent":["// ============================================================================\n// Command Menu Parts\n// ============================================================================\n\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\nexport {\n PopupMenuCheckboxItem as CheckboxItem,\n PopupMenuCheckboxItemIndicator as CheckboxItemIndicator,\n PopupMenuEmpty as Empty,\n PopupMenuFocusZone as FocusZone,\n PopupMenuFooter as Footer,\n PopupMenuGroup as Group,\n PopupMenuGroupLabel as GroupLabel,\n PopupMenuHeader as Header,\n PopupMenuIcon as Icon,\n PopupMenuItem as Item,\n PopupMenuList as List,\n PopupMenuLoading as Loading,\n PopupMenuSeparator as Separator,\n PopupMenuShortcut as Shortcut,\n PopupMenuSubpageBack as SubpageBack,\n PopupMenuSubpageBackItem as SubpageBackItem,\n PopupMenuSubpageTrigger as SubpageTrigger,\n PopupMenuSurface as Surface,\n} from '../internal/popup-menu/index.js'\nexport { CommandMenuBackdrop as Backdrop } from './backdrop/backdrop.js'\nexport { CommandMenuInput as Input } from './input/input.js'\nexport { CommandMenuPopup as Popup } from './popup/popup.js'\nexport { CommandMenuPortal as Portal } from './portal/portal.js'\nexport { CommandMenuRoot as Root } from './root/root.js'\nexport { CommandMenuSubpage as Subpage } from './subpage/subpage.js'\nexport { CommandMenuTrigger as Trigger } from './trigger/trigger.js'\n","'use client'\n\nimport { Dialog } from '@base-ui/react/dialog'\nimport * as React from 'react'\nimport { useMaybePopupMenuContext } from '../../internal/popup-menu/contexts/popup-menu-context.js'\nimport { REASONS } from '../../utils/events/index.js'\n\nexport interface CommandMenuBackdropProps extends Dialog.Backdrop.Props {}\nexport type CommandMenuBackdropState = Dialog.Backdrop.State\n\n/**\n * An overlay displayed beneath the command menu popup.\n *\n * Pressing down on the backdrop closes the menu immediately (pointerdown),\n * matching the outside-press behavior of the other menus, instead of waiting\n * for the Dialog's click-time dismissal. Consumers can opt out by calling\n * `event.preventDefault()` in their own `onPointerDown`.\n */\nexport const CommandMenuBackdrop = React.forwardRef<\n HTMLDivElement,\n CommandMenuBackdrop.Props\n>(function CommandMenuBackdrop(props, forwardedRef) {\n const { onPointerDown, ...rest } = props\n const popupMenuContext = useMaybePopupMenuContext()\n\n const handlePointerDown = React.useCallback<\n NonNullable<Dialog.Backdrop.Props['onPointerDown']>\n >(\n (event) => {\n onPointerDown?.(event)\n\n if (event.defaultPrevented) {\n return\n }\n\n if (popupMenuContext && !popupMenuContext.disabled) {\n popupMenuContext.closeAll(REASONS.outsidePress, event.nativeEvent)\n }\n },\n [onPointerDown, popupMenuContext],\n )\n\n return (\n <Dialog.Backdrop\n ref={forwardedRef}\n {...rest}\n onPointerDown={handlePointerDown}\n data-command-menu-backdrop=\"\"\n />\n )\n})\n\nexport namespace CommandMenuBackdrop {\n export interface Props extends CommandMenuBackdropProps {}\n export type State = CommandMenuBackdropState\n}\n","'use client'\n\nimport * as React from 'react'\nimport {\n PopupMenuInput,\n type PopupMenuInputProps,\n type PopupMenuInputState,\n} from '../../internal/popup-menu/index.js'\n\nexport interface CommandMenuInputProps extends PopupMenuInputProps {}\nexport type CommandMenuInputState = PopupMenuInputState\n\n/**\n * Search input for filtering command menu items.\n */\nexport const CommandMenuInput = React.forwardRef<\n HTMLInputElement,\n CommandMenuInput.Props\n>(function CommandMenuInput(props, forwardedRef) {\n const { backspaceGoesBack = true, ...rest } = props\n\n return (\n <PopupMenuInput\n ref={forwardedRef}\n backspaceGoesBack={backspaceGoesBack}\n {...rest}\n />\n )\n})\n\nexport namespace CommandMenuInput {\n export interface Props extends CommandMenuInputProps {}\n export type State = CommandMenuInputState\n}\n","'use client'\n\nimport { Dialog } from '@base-ui/react/dialog'\nimport * as React from 'react'\nimport { PopupSurfaceIdContext } from '../../internal/popup-menu/contexts/popup-surface-id-context.js'\nimport { SubpageStackContext } from '../../internal/popup-menu/contexts/subpage-stack-context.js'\nimport {\n DataPopupContext,\n type DataSurfaceContextValue,\n type ResolvedNodesSlot,\n} from '../../internal/popup-menu/data-first/context.js'\nimport { DataSubpagesContent } from '../../internal/popup-menu/data-first/data-subpages.js'\nimport { useSubpageStackState } from '../../internal/popup-menu/hooks/use-subpage-stack-state.js'\nimport { usePopupMenuContext } from '../../internal/popup-menu/index.js'\nimport type { ComponentRenderFn } from '../../utils/types.js'\n\nexport interface CommandMenuPopupState extends Dialog.Popup.State {\n /**\n * Whether any non-root subpage is currently open.\n */\n hasOpenSubpage: boolean\n\n /**\n * Active subpage ID, or null when the root surface is active.\n */\n subpageId: string | null\n}\n\nexport interface CommandMenuPopupProps\n extends Omit<Dialog.Popup.Props, 'className' | 'render'> {\n /**\n * CSS class applied to the element, or a function that\n * returns a class based on the component's state.\n */\n className?: string | ((state: CommandMenuPopupState) => string)\n\n /**\n * Allows replacing the popup element with a custom element.\n * The render state includes dialog popup + subpage navigation state.\n */\n render?:\n | React.ReactElement\n | ComponentRenderFn<\n React.HTMLAttributes<HTMLElement>,\n CommandMenuPopupState\n >\n}\n\n/**\n * A container for the command menu contents.\n * Wraps Dialog.Popup with popup-menu subpage and data providers.\n */\nexport const CommandMenuPopup = React.forwardRef<\n HTMLDivElement,\n CommandMenuPopup.Props\n>(function CommandMenuPopup(props, forwardedRef) {\n const {\n children,\n className: classNameProp,\n render: renderProp,\n ...rest\n } = props\n\n const surfaceId = React.useId()\n const popupMenuContext = usePopupMenuContext()\n\n const {\n subpageStackContextValue,\n isSubpageNavigating,\n hasOpenSubpage,\n subpageId,\n } = useSubpageStackState({\n surfaceId,\n store: popupMenuContext.store,\n })\n\n const [dataSurfaceContext, setDataSurfaceContext] =\n React.useState<DataSurfaceContextValue | null>(null)\n const [resolvedNodes, setResolvedNodes] =\n React.useState<ResolvedNodesSlot | null>(null)\n\n const toPopupState = React.useCallback(\n (baseState: Dialog.Popup.State): CommandMenuPopupState => ({\n ...baseState,\n hasOpenSubpage,\n subpageId,\n }),\n [hasOpenSubpage, subpageId],\n )\n\n const className = React.useMemo(() => {\n if (typeof classNameProp === 'function') {\n return (baseState: Dialog.Popup.State) => {\n return classNameProp(toPopupState(baseState))\n }\n }\n return classNameProp\n }, [classNameProp, toPopupState])\n\n const render = React.useMemo(() => {\n if (typeof renderProp === 'function') {\n return (\n popupProps: React.HTMLAttributes<HTMLElement>,\n baseState: Dialog.Popup.State,\n ) => renderProp(popupProps, toPopupState(baseState))\n }\n\n return renderProp\n }, [renderProp, toPopupState])\n\n const dataPopupContextValue = React.useMemo(\n () => ({\n dataSurfaceContext,\n setDataSurfaceContext,\n resolvedNodes,\n setResolvedNodes,\n }),\n [dataSurfaceContext, resolvedNodes],\n )\n\n return (\n <PopupSurfaceIdContext.Provider value={surfaceId}>\n <SubpageStackContext.Provider value={subpageStackContextValue}>\n <DataPopupContext.Provider value={dataPopupContextValue}>\n <Dialog.Popup\n ref={forwardedRef}\n className={className}\n render={render}\n data-command-menu-popup=\"\"\n data-navigating={isSubpageNavigating ? '' : undefined}\n data-has-open-subpage={hasOpenSubpage ? '' : undefined}\n {...rest}\n >\n {children}\n <DataSubpagesContent />\n </Dialog.Popup>\n </DataPopupContext.Provider>\n </SubpageStackContext.Provider>\n </PopupSurfaceIdContext.Provider>\n )\n})\n\nexport namespace CommandMenuPopup {\n export type Props = CommandMenuPopupProps\n export type State = CommandMenuPopupState\n}\n","'use client'\n\nimport { Dialog } from '@base-ui/react/dialog'\n\nexport interface CommandMenuPortalProps extends Dialog.Portal.Props {}\nexport type CommandMenuPortalState = Dialog.Portal.State\n\n/**\n * A portal element that moves the command menu popup to a different part of the DOM.\n */\nexport const CommandMenuPortal = Dialog.Portal\n\nexport namespace CommandMenuPortal {\n export type Props = CommandMenuPortalProps\n export type State = CommandMenuPortalState\n}\n","'use client'\n\nimport { Dialog } from '@base-ui/react/dialog'\nimport * as React from 'react'\nimport type { PopupMenuOpenChangeReason } from '../../internal/popup-menu/events.js'\nimport {\n type GetResolvedIdFn,\n type PopupMenuIdScope,\n PopupMenuProviders,\n type UsePopupMenuRootParams,\n usePopupMenuRoot,\n} from '../../internal/popup-menu/index.js'\nimport { useHotkey } from '../../kbd/hooks/use-hotkey.js'\nimport { REASONS } from '../../utils/events/index.js'\n\nexport interface CommandMenuRootProps {\n children: React.ReactNode\n open?: boolean\n defaultOpen?: boolean\n onOpenChange?: (open: boolean) => void\n onOpenChangeComplete?: (open: boolean) => void\n hotkey?: string\n modal?: boolean\n disabled?: boolean\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 * <CommandMenu.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/**\n * Groups all parts of the command menu.\n * Manages open state and provides popup-menu context to children.\n * Doesn't render its own HTML element.\n */\nexport function CommandMenuRoot(props: CommandMenuRoot.Props) {\n const {\n children,\n open: openProp,\n defaultOpen = false,\n onOpenChange,\n onOpenChangeComplete,\n hotkey,\n modal = true,\n disabled,\n getResolvedId,\n idScope = 'surface',\n } = props\n\n const {\n store,\n focusOwnerStore,\n openChainStore,\n registerSurface,\n closeAll,\n handleOpenChange,\n disabled: menuDisabled,\n menuTreeResolver,\n } = usePopupMenuRoot({\n onOpenChange:\n onOpenChange as unknown as UsePopupMenuRootParams['onOpenChange'],\n defaultOpen,\n disabled,\n closeOnOutsidePress: 'pointerdown',\n getResolvedId,\n idScope,\n })\n\n store.useControlledProp('openProp', openProp)\n\n const openState = store.useState('open')\n\n useHotkey(\n hotkey ?? '',\n () => handleOpenChange(!store.state.open, REASONS.imperativeAction),\n // allowInInput keeps the hotkey working as a *toggle*: while the menu is\n // open, focus sits in the search input, so the close press must be allowed\n // to fire from an editable target.\n { enabled: !!hotkey && !menuDisabled, allowInInput: true },\n )\n\n const handleDialogOpenChange = React.useCallback(\n (nextOpen: boolean, dialogDetails: Dialog.Root.ChangeEventDetails) => {\n handleOpenChange(\n nextOpen,\n dialogDetails.reason as PopupMenuOpenChangeReason,\n dialogDetails.event,\n )\n },\n [handleOpenChange],\n )\n\n const handleDialogOpenChangeComplete = React.useCallback(\n (nextOpen: boolean) => {\n if (!nextOpen && store.context.clearSearchOnClose === 'after-exit') {\n store.clearSearch()\n store.setInputActive(false)\n }\n\n if (!nextOpen) {\n store.clearHighlight()\n store.context.onCloseComplete?.()\n store.context.onPopupCloseComplete?.()\n }\n\n onOpenChangeComplete?.(nextOpen)\n },\n [store, onOpenChangeComplete],\n )\n\n return (\n <PopupMenuProviders\n menuTreeResolver={menuTreeResolver}\n store={store}\n focusOwnerStore={focusOwnerStore}\n openChainStore={openChainStore}\n disabled={menuDisabled}\n depth={0}\n closeAll={closeAll}\n explicitTabBehavior\n tabWithoutZones=\"inert\"\n registerSurface={registerSurface}\n menuType=\"dropdown\"\n closeOnOutsidePress=\"pointerdown\"\n componentName=\"command-menu\"\n >\n <Dialog.Root\n open={openState}\n onOpenChange={handleDialogOpenChange}\n onOpenChangeComplete={handleDialogOpenChangeComplete}\n modal={modal}\n >\n {children}\n </Dialog.Root>\n </PopupMenuProviders>\n )\n}\n\nexport namespace CommandMenuRoot {\n export interface Props extends CommandMenuRootProps {}\n}\n","'use client'\n\nimport * as React from 'react'\nimport type { KeyChord } from '../utils/parse-keybinding.js'\nimport { parseKeybinding } from '../utils/parse-keybinding.js'\nimport { isApplePlatform } from '../utils/platform.js'\n\n/**\n * Options for the useHotkey global keydown listener.\n *\n * @internal Not part of the public API — used by CommandMenu's `hotkey` prop.\n */\nexport interface UseHotkeyOptions {\n /** @default true */\n enabled?: boolean\n /** @default true */\n preventDefault?: boolean\n /** Fire even when focus is in an input/textarea/select/contenteditable. @default false */\n allowInInput?: boolean\n}\n\nfunction isEditableTarget(target: EventTarget | null): boolean {\n return (\n target instanceof HTMLInputElement ||\n target instanceof HTMLTextAreaElement ||\n target instanceof HTMLSelectElement ||\n (target instanceof HTMLElement && target.isContentEditable)\n )\n}\n\nfunction getEventKey(event: KeyboardEvent): string {\n const key = event.key.toLowerCase()\n\n return key === ' ' ? 'space' : key\n}\n\nfunction matchesModifiers(event: KeyboardEvent, chord: KeyChord): boolean {\n const isApple = isApplePlatform()\n const meta = chord.meta || (isApple && chord.mod)\n const ctrl = chord.ctrl || (!isApple && chord.mod)\n\n return (\n event.metaKey === meta &&\n event.ctrlKey === ctrl &&\n event.altKey === chord.alt &&\n event.shiftKey === chord.shift\n )\n}\n\nfunction matchesChord(event: KeyboardEvent, chord: KeyChord): boolean {\n return chord.key === getEventKey(event) && matchesModifiers(event, chord)\n}\n\n/**\n * Calls a handler when a single-chord keybinding is pressed anywhere in the\n * document.\n *\n * @internal Not part of the public API. Deliberately unexported from\n * `kbd/index.ts` — consumers get global-shortcut behavior through\n * `CommandMenu.Root`'s `hotkey` prop instead. Import via the file path if\n * another primitive needs it.\n */\nexport function useHotkey(\n keys: string,\n handler: (event: KeyboardEvent) => void,\n options?: UseHotkeyOptions,\n): void {\n const keybinding = React.useMemo(() => parseKeybinding(keys), [keys])\n const [firstChord] = keybinding.chords\n const chord =\n keybinding.chords.length === 1 && firstChord !== undefined\n ? firstChord\n : null\n const isSequence = keybinding.chords.length > 1\n const enabled = options?.enabled !== false\n\n const handlerRef = React.useRef(handler)\n const optionsRef = React.useRef(options)\n\n handlerRef.current = handler\n optionsRef.current = options\n\n React.useEffect(() => {\n if (isSequence && process.env.NODE_ENV !== 'production') {\n console.warn(\n `useHotkey only supports single-chord keybindings. Received \"${keys}\", but sequences are not supported by useHotkey.`,\n )\n }\n }, [isSequence, keys])\n\n React.useEffect(() => {\n if (!enabled || chord === null || isSequence || chord.key === null) {\n return\n }\n\n const handleKeyDown = (event: KeyboardEvent) => {\n const currentOptions = optionsRef.current\n\n if (event.repeat) {\n return\n }\n\n if (!currentOptions?.allowInInput && isEditableTarget(event.target)) {\n return\n }\n\n if (!matchesChord(event, chord)) {\n return\n }\n\n if (currentOptions?.preventDefault !== false) {\n event.preventDefault()\n }\n\n handlerRef.current(event)\n }\n\n document.addEventListener('keydown', handleKeyDown)\n\n return () => {\n document.removeEventListener('keydown', handleKeyDown)\n }\n }, [chord, enabled, isSequence])\n}\n","'use client'\n\nimport {\n PopupMenuSubpage,\n type PopupMenuSubpageProps,\n} from '../../internal/popup-menu/index.js'\n\nexport interface CommandMenuSubpageProps extends PopupMenuSubpageProps {}\n\n/**\n * Groups all parts of a command menu subpage.\n */\nexport function CommandMenuSubpage(props: CommandMenuSubpage.Props) {\n const { closeRootOnEsc = true, children, ...rest } = props\n\n return (\n <PopupMenuSubpage closeRootOnEsc={closeRootOnEsc} {...rest}>\n {children}\n </PopupMenuSubpage>\n )\n}\n\nexport namespace CommandMenuSubpage {\n export interface Props extends CommandMenuSubpageProps {}\n}\n","'use client'\n\nimport { Dialog } from '@base-ui/react/dialog'\nimport * as React from 'react'\nimport { useMaybePopupMenuContext } from '../../internal/popup-menu/contexts/popup-menu-context.js'\n\nexport interface CommandMenuTriggerProps extends Dialog.Trigger.Props {}\nexport type CommandMenuTriggerState = Dialog.Trigger.State\n\n/**\n * A button that opens the command menu.\n */\nexport const CommandMenuTrigger = React.forwardRef<\n HTMLButtonElement,\n CommandMenuTrigger.Props\n>(function CommandMenuTrigger(props, forwardedRef) {\n const { disabled, ...rest } = props\n const popupMenuContext = useMaybePopupMenuContext()\n const isDisabled = disabled || popupMenuContext?.disabled || false\n\n return (\n <Dialog.Trigger\n ref={forwardedRef}\n {...rest}\n disabled={isDisabled}\n data-command-menu-trigger=\"\"\n />\n )\n})\n\nexport namespace CommandMenuTrigger {\n export interface Props extends CommandMenuTriggerProps {}\n export type State = CommandMenuTriggerState\n}\n"],"mappings":"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","names":["index_parts_exports","__export","CommandMenuBackdrop","PopupMenuCheckboxItem","PopupMenuCheckboxItemIndicator","PopupMenuEmpty","PopupMenuFocusZone","PopupMenuFooter","PopupMenuGroup","PopupMenuGroupLabel","PopupMenuHeader","PopupMenuIcon","CommandMenuInput","PopupMenuItem","PopupMenuList","PopupMenuLoading","CommandMenuPopup","CommandMenuPortal","CommandMenuRoot","PopupMenuSeparator","PopupMenuShortcut","CommandMenuSubpage","PopupMenuSubpageBack","PopupMenuSubpageBackItem","PopupMenuSubpageTrigger","PopupMenuSurface","CommandMenuTrigger","Dialog","React","jsx","CommandMenuBackdrop","props","forwardedRef","onPointerDown","rest","popupMenuContext","useMaybePopupMenuContext","handlePointerDown","event","reason_parts_exports","Dialog","React","jsx","CommandMenuInput","props","forwardedRef","backspaceGoesBack","rest","PopupMenuInput","Dialog","React","jsx","jsxs","CommandMenuPopup","props","forwardedRef","children","classNameProp","renderProp","rest","surfaceId","popupMenuContext","usePopupMenuContext","subpageStackContextValue","isSubpageNavigating","hasOpenSubpage","subpageId","useSubpageStackState","dataSurfaceContext","setDataSurfaceContext","resolvedNodes","setResolvedNodes","toPopupState","baseState","className","render","popupProps","dataPopupContextValue","PopupSurfaceIdContext","SubpageStackContext","DataPopupContext","Dialog","DataSubpagesContent","Dialog","CommandMenuPortal","Dialog","React","React","isEditableTarget","target","getEventKey","event","key","matchesModifiers","chord","isApple","isApplePlatform","meta","ctrl","matchesChord","useHotkey","keys","handler","options","keybinding","parseKeybinding","firstChord","isSequence","enabled","handlerRef","optionsRef","handleKeyDown","currentOptions","jsx","CommandMenuRoot","props","children","openProp","defaultOpen","onOpenChange","onOpenChangeComplete","hotkey","modal","disabled","getResolvedId","idScope","store","focusOwnerStore","openChainStore","registerSurface","closeAll","handleOpenChange","menuDisabled","menuTreeResolver","usePopupMenuRoot","openState","useHotkey","reason_parts_exports","handleDialogOpenChange","nextOpen","dialogDetails","handleDialogOpenChangeComplete","PopupMenuProviders","Dialog","jsx","CommandMenuSubpage","props","closeRootOnEsc","children","rest","PopupMenuSubpage","Dialog","React","jsx","CommandMenuTrigger","props","forwardedRef","disabled","rest","popupMenuContext","useMaybePopupMenuContext","isDisabled","Dialog"]}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Fuzzy matching algorithm for command palette-style filtering.
3
+ * Vendored from cmdk (https://github.com/pacocoursey/cmdk)
4
+ *
5
+ * The scores are arranged so that a continuous match of characters will
6
+ * result in a total score of 1.
7
+ */
8
+ /**
9
+ * Calculates a fuzzy match score between a string and an abbreviation.
10
+ *
11
+ * @param string - The string to match against
12
+ * @param abbreviation - The search query
13
+ * @param keywords - Optional additional keywords to include in matching
14
+ * @returns A score between 0 and 1, where 1 is a perfect match and 0 is no match
15
+ */
16
+ declare function commandScore(string: string, abbreviation: string, keywords?: string[]): number;
17
+ /**
18
+ * Default filter function for listbox items.
19
+ * Returns a score > 0 for matches, 0 for non-matches.
20
+ */
21
+ declare const defaultFilter: typeof commandScore;
22
+
23
+ export { commandScore as c, defaultFilter as d };
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Fuzzy matching algorithm for command palette-style filtering.
3
+ * Vendored from cmdk (https://github.com/pacocoursey/cmdk)
4
+ *
5
+ * The scores are arranged so that a continuous match of characters will
6
+ * result in a total score of 1.
7
+ */
8
+ /**
9
+ * Calculates a fuzzy match score between a string and an abbreviation.
10
+ *
11
+ * @param string - The string to match against
12
+ * @param abbreviation - The search query
13
+ * @param keywords - Optional additional keywords to include in matching
14
+ * @returns A score between 0 and 1, where 1 is a perfect match and 0 is no match
15
+ */
16
+ declare function commandScore(string: string, abbreviation: string, keywords?: string[]): number;
17
+ /**
18
+ * Default filter function for listbox items.
19
+ * Returns a score > 0 for matches, 0 for non-matches.
20
+ */
21
+ declare const defaultFilter: typeof commandScore;
22
+
23
+ export { commandScore as c, defaultFilter as d };
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkW4ACKMIZcjs = require('../chunk-W4ACKMIZ.cjs');var _chunkXMZZ62VJcjs = require('../chunk-XMZZ62VJ.cjs');var _chunkM4G6J7DPcjs = require('../chunk-M4G6J7DP.cjs');var Ve={};_chunkM4G6J7DPcjs.a.call(void 0, Ve,{Arrow:()=>_chunkW4ACKMIZcjs.s,Backdrop:()=>_chunkW4ACKMIZcjs.t,CheckboxItem:()=>_chunkW4ACKMIZcjs.ga,CheckboxItemIndicator:()=>_chunkW4ACKMIZcjs.ha,Empty:()=>_chunkW4ACKMIZcjs.U,FocusZone:()=>_chunkW4ACKMIZcjs.na,Footer:()=>_chunkW4ACKMIZcjs.oa,Group:()=>_chunkW4ACKMIZcjs.pa,GroupLabel:()=>_chunkW4ACKMIZcjs.W,GroupValue:()=>_chunkW4ACKMIZcjs.qa,Header:()=>_chunkW4ACKMIZcjs.ra,Icon:()=>_chunkW4ACKMIZcjs.T,Input:()=>_chunkW4ACKMIZcjs.V,Item:()=>_chunkW4ACKMIZcjs.ia,List:()=>_chunkW4ACKMIZcjs.ba,Popup:()=>_chunkW4ACKMIZcjs.J,Portal:()=>_chunkW4ACKMIZcjs.K,Positioner:()=>_chunkW4ACKMIZcjs.M,RadioGroup:()=>_chunkW4ACKMIZcjs.ja,RadioGroupValue:()=>_chunkW4ACKMIZcjs.ka,RadioItem:()=>_chunkW4ACKMIZcjs.la,RadioItemIndicator:()=>_chunkW4ACKMIZcjs.ma,Root:()=>Oe,ScrollDownArrow:()=>_chunkW4ACKMIZcjs.ea,ScrollUpArrow:()=>_chunkW4ACKMIZcjs.da,Separator:()=>_chunkW4ACKMIZcjs.sa,Shortcut:()=>_chunkW4ACKMIZcjs.ta,Submenu:()=>_chunkW4ACKMIZcjs.xa,SubmenuTrigger:()=>_chunkW4ACKMIZcjs.za,SubmenuTriggerIndicator:()=>_chunkW4ACKMIZcjs.ya,Subpage:()=>_chunkW4ACKMIZcjs.Aa,SubpageBack:()=>_chunkW4ACKMIZcjs.Ba,SubpageBackItem:()=>_chunkW4ACKMIZcjs.Ca,SubpageTrigger:()=>_chunkW4ACKMIZcjs.Da,Surface:()=>_chunkW4ACKMIZcjs.fa,Tree:()=>_chunkW4ACKMIZcjs.ua,TreeConnector:()=>_chunkW4ACKMIZcjs.va,TreeItem:()=>_chunkW4ACKMIZcjs.wa,Trigger:()=>Ee,useAsyncMenuCoordinator:()=>_chunkW4ACKMIZcjs.F,useDataList:()=>_chunkW4ACKMIZcjs.D,useMaybeAsyncMenuCoordinator:()=>_chunkW4ACKMIZcjs.G,useMaybeDataList:()=>_chunkW4ACKMIZcjs.E});var _popover = require('@base-ui/react/popover');var _react = require('react'); var u = _interopRequireWildcard(_react); var a = _interopRequireWildcard(_react);var _jsxruntime = require('react/jsx-runtime');var we=u.createContext(null);function Le(){let d=u.useContext(we);if(!d)throw new Error("ContextMenu components must be used within a ContextMenu.Root");return d}function Ge(d,i,p=!1){let o=p?10:0;return{getBoundingClientRect(){return DOMRect.fromRect({width:o,height:o,x:d,y:i})}}}function Oe(d){let{open:i,onOpenChange:p,defaultOpen:o=!1,virtualized:m=!1,items:n,onHighlightChange:e,disabled:k=!1,modal:v=!0,closeOnOutsidePress:S="pointerdown",onOpenChangeComplete:b,actionsRef:f,getResolvedId:r,idScope:E="surface",debug:g,children:C}=d,{store:l,focusOwnerStore:z,openChainStore:x,registerSurface:G,closeAll:R,virtualization:h,handleOpenChange:s,disabled:c,setDisabled:w,menuTreeResolver:V}=_chunkW4ACKMIZcjs.q.call(void 0, {onOpenChange:p,defaultOpen:o,virtualized:m,items:n,onHighlightChange:e,closeOnOutsidePress:S,disabled:k,getResolvedId:r,idScope:E}),I=u.useRef(null);u.useImperativeHandle(f,()=>({close:()=>{_optionalChain([I, 'access', _2 => _2.current, 'optionalAccess', _3 => _3.close, 'call', _4 => _4()])},unmount:()=>{_optionalChain([I, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.unmount, 'call', _7 => _7()])},setDisabled:w}),[w]),l.useControlledProp("openProp",i);let y=l.useState("open"),[H,F]=u.useState(()=>Ge(0,0)),t=u.useCallback((M,O,po=!1)=>{F(Ge(M,O,po))},[]),P=u.useCallback(()=>{c||l.setOpen(!0)},[l,c]),T=u.useCallback(()=>{s(!1)},[s]),L=u.useCallback(M=>{!M&&l.context.clearSearchOnClose==="after-exit"&&(l.clearSearch(),l.setInputActive(!1)),M||(l.clearHighlight(),_optionalChain([l, 'access', _8 => _8.context, 'access', _9 => _9.onCloseComplete, 'optionalCall', _10 => _10()]),_optionalChain([l, 'access', _11 => _11.context, 'access', _12 => _12.onPopupCloseComplete, 'optionalCall', _13 => _13()])),_optionalChain([b, 'optionalCall', _14 => _14(M)])},[l,b]),X=u.useCallback((M,O)=>{s(M,O.reason,O.event)},[s]),ao=u.useMemo(()=>({setAnchorPosition:t,openMenu:P,closeMenu:T,disabled:c,open:y}),[t,P,T,c,y]);return _jsxruntime.jsx.call(void 0, we.Provider,{value:ao,children:_jsxruntime.jsx.call(void 0, _chunkW4ACKMIZcjs.N,{menuTreeResolver:V,store:l,focusOwnerStore:z,openChainStore:x,disabled:c,depth:0,closeAll:R,explicitTabBehavior:!0,registerSurface:G,virtualization:h,virtualAnchor:H,menuType:"context",closeOnOutsidePress:S,componentName:"context-menu",debug:g,children:_jsxruntime.jsx.call(void 0, _popover.Popover.Root,{open:y,onOpenChange:X,onOpenChangeComplete:L,modal:v,actionsRef:f?I:void 0,children:C})})})}var _userender = require('@base-ui/react/use-render');var D=(m=>(m.slot="bazzaui-context-menu-trigger",m.popupOpen="data-popup-open",m.pressed="data-pressed",m.disabled="data-disabled",m))(D||{});var jo=500,Uo=10,Zo={open:d=>d?{"data-popup-open":""}:null,pressed:d=>d?{"data-pressed":""}:null,disabled:d=>d?{"data-disabled":""}:null},Ee=a.forwardRef(function(i,p){let{disabled:o=!1,render:m,className:n,style:e,onContextMenu:k,onTouchStart:v,onTouchMove:S,onTouchEnd:b,onTouchCancel:f,children:r,...E}=i,{setAnchorPosition:g,openMenu:C,disabled:l,open:z}=Le(),x=o||l,[G,R]=a.useState(!1),h=a.useRef(null),s=a.useRef(null),c=a.useCallback(()=>{h.current&&(clearTimeout(h.current),h.current=null),R(!1)},[]);a.useEffect(()=>()=>{c()},[c]);let w=a.useCallback(t=>{_optionalChain([k, 'optionalCall', _15 => _15(t)]),!t.defaultPrevented&&(x||(t.preventDefault(),g(t.clientX,t.clientY,!1),C()))},[k,x,g,C]),V=a.useCallback(t=>{if(_optionalChain([v, 'optionalCall', _16 => _16(t)]),t.defaultPrevented||x)return;let P=t.touches[0];P&&(s.current={x:P.clientX,y:P.clientY},R(!0),h.current=setTimeout(()=>{s.current&&(g(s.current.x,s.current.y,!0),C(),R(!1),s.current=null)},jo))},[v,x,g,C]),I=a.useCallback(t=>{if(_optionalChain([S, 'optionalCall', _17 => _17(t)]),!s.current)return;let P=t.touches[0];if(!P)return;let T=P.clientX-s.current.x,L=P.clientY-s.current.y;Math.sqrt(T*T+L*L)>Uo&&(c(),s.current=null)},[S,c]),y=a.useCallback(t=>{_optionalChain([b, 'optionalCall', _18 => _18(t)]),c(),s.current=null},[b,c]),H=a.useCallback(t=>{_optionalChain([f, 'optionalCall', _19 => _19(t)]),c(),s.current=null},[f,c]),F=a.useMemo(()=>({open:z,pressed:G,disabled:x}),[z,G,x]);return _userender.useRender.call(void 0, {render:m,ref:p,state:F,stateAttributesMapping:Zo,props:{...E,"bazzaui-context-menu-trigger":"",onContextMenu:w,onTouchStart:V,onTouchMove:I,onTouchEnd:y,onTouchCancel:H,className:n,style:{WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none",...e},children:r},defaultTagName:"div"})});var He=(e=>(e.slot="bazzaui-context-menu-arrow",e.open="data-open",e.closed="data-closed",e.side="data-side",e.align="data-align",e.uncentered="data-uncentered",e))(He||{});var Fe=(n=>(n.slot="bazzaui-context-menu-backdrop",n.open="data-open",n.closed="data-closed",n.startingStyle="data-starting-style",n.endingStyle="data-ending-style",n))(Fe||{});var Ne=(n=>(n.slot="bazzaui-context-menu-checkbox-item",n.checked="data-checked",n.unchecked="data-unchecked",n.highlighted="data-highlighted",n.disabled="data-disabled",n))(Ne||{}),Be= exports.ContextMenuCheckboxItemIndicatorDataAttributes =(o=>(o.slot="bazzaui-context-menu-checkbox-item-indicator",o.checked="data-checked",o.unchecked="data-unchecked",o))(Be||{});var je=(i=>(i.slot="bazzaui-context-menu-empty",i))(je||{});var Ue=(i=>(i.slot="bazzaui-context-menu-group",i))(Ue||{});var Ze=(i=>(i.slot="bazzaui-context-menu-group-label",i))(Ze||{});var Yo={slot:"bazzaui-context-menu-icon",open:"data-popup-open"};var Ye=(o=>(o.slot="bazzaui-context-menu-input",o.open="data-open",o.closed="data-closed",o))(Ye||{});var De=(o=>(o.slot="bazzaui-context-menu-item",o.highlighted="data-highlighted",o.disabled="data-disabled",o))(De||{});var Xe=(p=>(p.slot="bazzaui-context-menu-list",p.list="data-popup-menu-list",p))(Xe||{});var _e=(r=>(r.slot="bazzaui-context-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))(_e||{});var We=(e=>(e.slot="bazzaui-context-menu-positioner",e.open="data-open",e.closed="data-closed",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e))(We||{});var qe=(p=>(p.slot="bazzaui-context-menu-radio-group",p.disabled="data-disabled",p))(qe||{});var Qe=(n=>(n.slot="bazzaui-context-menu-radio-item",n.checked="data-checked",n.unchecked="data-unchecked",n.highlighted="data-highlighted",n.disabled="data-disabled",n))(Qe||{}),Je= exports.ContextMenuRadioItemIndicatorDataAttributes =(o=>(o.slot="bazzaui-context-menu-radio-item-indicator",o.checked="data-checked",o.unchecked="data-unchecked",o))(Je||{});var Do={slotUp:"bazzaui-context-menu-scroll-up-arrow",slotDown:"bazzaui-context-menu-scroll-down-arrow",direction:"data-direction",side:"data-side"};var Ke=(i=>(i.slot="bazzaui-context-menu-separator",i))(Ke||{});var $e=(p=>(p.slot="bazzaui-context-menu-shortcut",p.highlighted="data-highlighted",p))($e||{});var Ae=(e=>(e.slot="bazzaui-context-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))(Ae||{}),eo= exports.ContextMenuSubmenuTriggerIndicatorDataAttributes =(p=>(p.slot="bazzaui-context-menu-submenu-trigger-indicator",p.popupOpen="data-popup-open",p))(eo||{});var oo=(o=>(o.slot="bazzaui-context-menu-subpage-back",o.canGoBack="data-can-go-back",o.disabled="data-disabled",o))(oo||{});var no=(m=>(m.slot="bazzaui-context-menu-subpage-back-item",m.subpageBackItem="data-subpage-back-item",m.highlighted="data-highlighted",m.disabled="data-disabled",m))(no||{});var to=(e=>(e.slot="bazzaui-context-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))(to||{});var uo=(i=>(i.slot="bazzaui-context-menu-surface",i))(uo||{});exports.ContextMenu = Ve; exports.ContextMenuArrowDataAttributes = He; exports.ContextMenuBackdropDataAttributes = Fe; exports.ContextMenuCheckboxItemDataAttributes = Ne; exports.ContextMenuCheckboxItemIndicatorDataAttributes = Be; exports.ContextMenuEmptyDataAttributes = je; exports.ContextMenuGroupDataAttributes = Ue; exports.ContextMenuGroupLabelDataAttributes = Ze; exports.ContextMenuIconDataAttributes = Yo; exports.ContextMenuInputDataAttributes = Ye; exports.ContextMenuItemDataAttributes = De; exports.ContextMenuListCssVars = _chunkW4ACKMIZcjs.aa; exports.ContextMenuListDataAttributes = Xe; exports.ContextMenuPopupDataAttributes = _e; exports.ContextMenuPositionerCssVars = _chunkW4ACKMIZcjs.L; exports.ContextMenuPositionerDataAttributes = We; exports.ContextMenuRadioGroupDataAttributes = qe; exports.ContextMenuRadioGroupValue = _chunkW4ACKMIZcjs.ka; exports.ContextMenuRadioItemDataAttributes = Qe; exports.ContextMenuRadioItemIndicatorDataAttributes = Je; exports.ContextMenuScrollArrowDataAttributes = Do; exports.ContextMenuSeparatorDataAttributes = Ke; exports.ContextMenuShortcutDataAttributes = $e; exports.ContextMenuStore = _chunkXMZZ62VJcjs.y; exports.ContextMenuSubmenuTriggerDataAttributes = Ae; exports.ContextMenuSubmenuTriggerIndicatorDataAttributes = eo; exports.ContextMenuSubpageBackDataAttributes = oo; exports.ContextMenuSubpageBackItemDataAttributes = no; exports.ContextMenuSubpageTriggerDataAttributes = to; exports.ContextMenuSurfaceDataAttributes = uo; exports.ContextMenuTriggerDataAttributes = D; exports.DataListContext = _chunkW4ACKMIZcjs.C; exports.DataSurfaceContext = _chunkW4ACKMIZcjs.y; exports.commandScore = _chunkXMZZ62VJcjs.w; exports.defaultFilter = _chunkXMZZ62VJcjs.x; exports.defaultGetResolvedId = _chunkW4ACKMIZcjs.p; exports.defineRadioGroup = _chunkW4ACKMIZcjs.X; exports.isDisplayGroupNode = _chunkW4ACKMIZcjs.Y; exports.isDisplayRadioGroupNode = _chunkW4ACKMIZcjs.Z; exports.isDisplayRowNode = _chunkW4ACKMIZcjs.$; exports.isPopupMenuNode = _chunkW4ACKMIZcjs.o; exports.isTreeItemDef = _chunkW4ACKMIZcjs.H; exports.useAsyncMenuCoordinator = _chunkW4ACKMIZcjs.F; exports.useDataList = _chunkW4ACKMIZcjs.D; exports.useDataSurfaceContext = _chunkW4ACKMIZcjs.A; exports.useItem = _chunkW4ACKMIZcjs.O; exports.useItemContext = _chunkXMZZ62VJcjs.g; exports.useMaybeAsyncMenuCoordinator = _chunkW4ACKMIZcjs.G; exports.useMaybeDataList = _chunkW4ACKMIZcjs.E; exports.useMaybeDataSurfaceContext = _chunkW4ACKMIZcjs.B; exports.useMaybeItemContext = _chunkXMZZ62VJcjs.h; exports.useMaybeRootContext = _chunkW4ACKMIZcjs.e; exports.useMaybeSubmenuContext = _chunkW4ACKMIZcjs.h; exports.useMaybeSubpageContext = _chunkW4ACKMIZcjs.j; exports.useMaybeSubpageStack = _chunkW4ACKMIZcjs.m; exports.useMaybeSurfaceContext = _chunkXMZZ62VJcjs.q; exports.useRootContext = _chunkW4ACKMIZcjs.d; exports.useSubmenuContext = _chunkW4ACKMIZcjs.g; exports.useSubpageContext = _chunkW4ACKMIZcjs.i; exports.useSubpageStack = _chunkW4ACKMIZcjs.l; exports.useSurfaceContext = _chunkXMZZ62VJcjs.p;
2
+ //# sourceMappingURL=index.cjs.map