@commercetools/nimbus 0.0.0-canary-20251023155107 → 0.0.0-canary-20251024075337

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 (39) hide show
  1. package/dist/chunks/{localized-field-DUVUwcg1.es.js → localized-field-D4HBEdq0.es.js} +2 -2
  2. package/dist/chunks/{localized-field-DUVUwcg1.es.js.map → localized-field-D4HBEdq0.es.js.map} +1 -1
  3. package/dist/chunks/{localized-field-Bf0Cw_ok.cjs.js → localized-field-u03KZc2G.cjs.js} +2 -2
  4. package/dist/chunks/{localized-field-Bf0Cw_ok.cjs.js.map → localized-field-u03KZc2G.cjs.js.map} +1 -1
  5. package/dist/chunks/menu-CvowvbXh.es.js +263 -0
  6. package/dist/chunks/menu-CvowvbXh.es.js.map +1 -0
  7. package/dist/chunks/{menu-BwvV9d6-.cjs.js → menu-DK0AShnF.cjs.js} +2 -2
  8. package/dist/chunks/menu-DK0AShnF.cjs.js.map +1 -0
  9. package/dist/chunks/{rich-text-input-CYTQBdtv.cjs.js → rich-text-input-B41QcSHY.cjs.js} +2 -2
  10. package/dist/chunks/{rich-text-input-CYTQBdtv.cjs.js.map → rich-text-input-B41QcSHY.cjs.js.map} +1 -1
  11. package/dist/chunks/{rich-text-input-d2ztVFjc.es.js → rich-text-input-BGVyDm30.es.js} +2 -2
  12. package/dist/chunks/{rich-text-input-d2ztVFjc.es.js.map → rich-text-input-BGVyDm30.es.js.map} +1 -1
  13. package/dist/chunks/{split-button-D76dk27b.cjs.js → split-button-C8BsVNhR.cjs.js} +2 -2
  14. package/dist/chunks/{split-button-D76dk27b.cjs.js.map → split-button-C8BsVNhR.cjs.js.map} +1 -1
  15. package/dist/chunks/{split-button-B36Wmkbs.es.js → split-button-YwopMYuE.es.js} +2 -2
  16. package/dist/chunks/{split-button-B36Wmkbs.es.js.map → split-button-YwopMYuE.es.js.map} +1 -1
  17. package/dist/components/localized-field.cjs +1 -1
  18. package/dist/components/localized-field.es.js +1 -1
  19. package/dist/components/menu/components/index.d.ts +7 -0
  20. package/dist/components/menu/components/menu.content.d.ts +5 -0
  21. package/dist/components/menu/components/menu.item.d.ts +5 -0
  22. package/dist/components/menu/components/menu.root.d.ts +5 -0
  23. package/dist/components/menu/components/menu.section-label.d.ts +3 -1
  24. package/dist/components/menu/components/menu.section.d.ts +5 -0
  25. package/dist/components/menu/components/menu.submenu-trigger.d.ts +5 -0
  26. package/dist/components/menu/components/menu.submenu.d.ts +5 -0
  27. package/dist/components/menu/components/menu.trigger.d.ts +5 -0
  28. package/dist/components/menu/menu.d.ts +117 -8
  29. package/dist/components/menu/menu.types.d.ts +1 -1
  30. package/dist/components/rich-text-input.cjs +1 -1
  31. package/dist/components/rich-text-input.es.js +1 -1
  32. package/dist/components/split-button.cjs +1 -1
  33. package/dist/components/split-button.es.js +1 -1
  34. package/dist/index.cjs +1 -1
  35. package/dist/index.es.js +5 -5
  36. package/package.json +5 -5
  37. package/dist/chunks/menu-BwvV9d6-.cjs.js.map +0 -1
  38. package/dist/chunks/menu-oyta69vX.es.js +0 -147
  39. package/dist/chunks/menu-oyta69vX.es.js.map +0 -1
@@ -1,147 +0,0 @@
1
- import { jsx as e, jsxs as h, Fragment as F } from "react/jsx-runtime";
2
- import { useSlotRecipe as K } from "@chakra-ui/react/styled-system";
3
- import { l as L, $ as E, m as O, n as j, o as k, p as V } from "./Dialog-Cx5MzP6O.es.js";
4
- import { createSlotRecipeContext as W } from "@chakra-ui/react";
5
- import { createContext as f, useContext as q } from "react";
6
- import { a as z } from "./Button-CafJrK0a.es.js";
7
- import { e as a } from "./extract-style-props-CTU5PJnh.es.js";
8
- import { ChevronRight as A } from "@commercetools/nimbus-icons";
9
- import { I as B } from "./icon-CenxuChf.es.js";
10
- import { g as D } from "./CollectionBuilder-D6lZ-33j.es.js";
11
- import { c as G } from "./Header-D6CYH5C_.es.js";
12
- const { withProvider: H, withContext: u } = /* @__PURE__ */ W({
13
- key: "menu"
14
- }), J = /* @__PURE__ */ H("div", "root"), M = /* @__PURE__ */ u("button", "trigger"), Q = /* @__PURE__ */ u("div", "popover"), U = /* @__PURE__ */ u("div", "content"), X = /* @__PURE__ */ u(
15
- "div",
16
- "item"
17
- ), Y = /* @__PURE__ */ u("div", "section"), Z = /* @__PURE__ */ u("div", "sectionLabel"), S = /* @__PURE__ */ f(void 0), _ = S.Provider, g = () => q(S), $ = (t) => {
18
- const o = K({ key: "menu" }), [c, r] = o.splitVariantProps(t), {
19
- children: s,
20
- trigger: n,
21
- isOpen: i,
22
- defaultOpen: l,
23
- onOpenChange: d,
24
- ...p
25
- } = r;
26
- return /* @__PURE__ */ e(J, { ...c, asChild: !0, children: /* @__PURE__ */ e(L, { ...{
27
- trigger: n,
28
- isOpen: i,
29
- defaultOpen: l,
30
- onOpenChange: d
31
- }, children: /* @__PURE__ */ e(_, { value: p, children: s }) }) });
32
- };
33
- $.displayName = "Menu.Root";
34
- const P = ({
35
- children: t,
36
- asChild: o,
37
- ref: c,
38
- ...r
39
- }) => {
40
- const [s, n] = a(r);
41
- return o ? /* @__PURE__ */ e(M, { ref: c, asChild: !0, ...s, children: t }) : /* @__PURE__ */ e(M, { asChild: !0, ...s, children: /* @__PURE__ */ e(z, { ref: c, ...n, children: t }) });
42
- };
43
- P.displayName = "Menu.Trigger";
44
- const ee = /* @__PURE__ */ f(
45
- void 0
46
- ), x = ee.Provider, m = ({
47
- children: t,
48
- placement: o,
49
- ref: c
50
- }) => {
51
- const r = g();
52
- if (!r)
53
- throw new Error("Menu.Content must be used within Menu.Root");
54
- const { placement: s, ...n } = r, i = o || s || "bottom start";
55
- return /* @__PURE__ */ e(x, { value: { selectionMode: n.selectionMode }, children: /* @__PURE__ */ e(Q, { asChild: !0, children: /* @__PURE__ */ e(E, { placement: i, offset: 4, shouldFlip: !0, children: /* @__PURE__ */ e(U, { asChild: !0, children: /* @__PURE__ */ e(O, { ref: c, shouldFocusWrap: !0, autoFocus: "first", ...n, children: t }) }) }) }) });
56
- };
57
- m.displayName = "Menu.Content";
58
- const C = ({
59
- children: t,
60
- isCritical: o,
61
- ref: c,
62
- ...r
63
- }) => {
64
- const [s, n] = a(r);
65
- return /* @__PURE__ */ e(
66
- X,
67
- {
68
- asChild: !0,
69
- ...s,
70
- "data-critical": o ? "" : void 0,
71
- children: /* @__PURE__ */ e(j, { ref: c, ...n, children: ({ hasSubmenu: i }) => /* @__PURE__ */ h(F, { children: [
72
- t,
73
- i && /* @__PURE__ */ e(B, { slot: "caretIcon", children: /* @__PURE__ */ e(A, {}) })
74
- ] }) })
75
- }
76
- );
77
- };
78
- C.displayName = "Menu.Item";
79
- const v = ({
80
- children: t,
81
- ref: o,
82
- ...c
83
- }) => {
84
- const [r, s] = a(c);
85
- return /* @__PURE__ */ e(Z, { asChild: !0, ...r, children: /* @__PURE__ */ e(G, { ref: o, ...s, children: t }) });
86
- };
87
- v.displayName = "Menu.SectionLabel";
88
- const y = ({
89
- children: t,
90
- ref: o,
91
- label: c,
92
- items: r,
93
- ...s
94
- }) => {
95
- const n = g(), {
96
- selectionMode: i = n?.selectionMode,
97
- selectedKeys: l = n?.selectedKeys,
98
- defaultSelectedKeys: d = n?.defaultSelectedKeys,
99
- onSelectionChange: p = n?.onSelectionChange,
100
- disallowEmptySelection: b = n?.disallowEmptySelection,
101
- ...R
102
- } = s, [w, I] = a(R);
103
- return /* @__PURE__ */ e(x, { value: { selectionMode: i }, children: /* @__PURE__ */ e(Y, { asChild: !0, ...w, children: /* @__PURE__ */ h(
104
- k,
105
- {
106
- ref: o,
107
- selectionMode: i,
108
- selectedKeys: l,
109
- defaultSelectedKeys: d,
110
- onSelectionChange: p,
111
- disallowEmptySelection: b,
112
- ...I,
113
- children: [
114
- /* @__PURE__ */ e(v, { children: c }),
115
- r ? /* @__PURE__ */ e(D, { items: r, children: t }) : t
116
- ]
117
- }
118
- ) }) });
119
- };
120
- y.displayName = "Menu.Section";
121
- const T = ({
122
- children: t,
123
- ...o
124
- }) => /* @__PURE__ */ e(V, { ...o, children: t });
125
- T.displayName = "Menu.SubmenuTrigger";
126
- const N = ({ children: t, ...o }) => /* @__PURE__ */ e(m, { ...o, placement: "end", children: t });
127
- N.displayName = "Menu.Submenu";
128
- const pe = {
129
- Root: $,
130
- Trigger: P,
131
- Content: m,
132
- Item: C,
133
- Section: y,
134
- Submenu: N,
135
- SubmenuTrigger: T
136
- };
137
- export {
138
- pe as M,
139
- $ as a,
140
- P as b,
141
- m as c,
142
- C as d,
143
- y as e,
144
- T as f,
145
- N as g
146
- };
147
- //# sourceMappingURL=menu-oyta69vX.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"menu-oyta69vX.es.js","sources":["../../src/components/menu/menu.slots.tsx","../../src/components/menu/components/menu.context.tsx","../../src/components/menu/components/menu.root.tsx","../../src/components/menu/components/menu.trigger.tsx","../../src/components/menu/components/menu.section-context.tsx","../../src/components/menu/components/menu.content.tsx","../../src/components/menu/components/menu.item.tsx","../../src/components/menu/components/menu.section-label.tsx","../../src/components/menu/components/menu.section.tsx","../../src/components/menu/components/menu.submenu-trigger.tsx","../../src/components/menu/components/menu.submenu.tsx","../../src/components/menu/menu.tsx"],"sourcesContent":["import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"@/type-utils\";\nimport type {\n MenuRootSlotProps,\n MenuTriggerSlotProps,\n MenuPopoverSlotProps,\n MenuContentSlotProps,\n MenuItemSlotProps,\n MenuSectionSlotProps,\n MenuSectionLabelSlotProps,\n MenuSubmenuSlotProps,\n} from \"./menu.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"menu\",\n});\n\n// Menu Root\nexport const MenuRootSlot: SlotComponent<HTMLDivElement, MenuRootSlotProps> =\n withProvider<HTMLDivElement, MenuRootSlotProps>(\"div\", \"root\");\n\n// Menu Trigger\nexport const MenuTriggerSlot = withContext<\n HTMLButtonElement,\n MenuTriggerSlotProps\n>(\"button\", \"trigger\");\n\n// Menu Popover\nexport const MenuPopoverSlot = withContext<\n HTMLDivElement,\n MenuPopoverSlotProps\n>(\"div\", \"popover\");\n\n// Menu Content\nexport const MenuContentSlot = withContext<\n HTMLDivElement,\n MenuContentSlotProps\n>(\"div\", \"content\");\n\n// Menu Item\nexport const MenuItemSlot = withContext<HTMLDivElement, MenuItemSlotProps>(\n \"div\",\n \"item\"\n);\n\n// Menu Section\nexport const MenuSectionSlot = withContext<\n HTMLDivElement,\n MenuSectionSlotProps\n>(\"div\", \"section\");\n\n// Menu Section Label\nexport const MenuSectionLabelSlot = withContext<\n HTMLDivElement,\n MenuSectionLabelSlotProps\n>(\"div\", \"sectionLabel\");\n\n// Menu Group Label\nexport const MenuSubmenuSlot = withContext<\n HTMLDivElement,\n MenuSubmenuSlotProps\n>(\"div\", \"submenu\");\n","import { createContext, useContext } from \"react\";\nimport type { MenuRootProps } from \"./../menu.types\";\nimport type { MenuTriggerProps as RaMenuTriggerProps } from \"react-aria-components\";\n\n// Context should contain all Menu props (excluding MenuTrigger-specific props)\nexport type MenuContextValue = Omit<\n MenuRootProps,\n keyof RaMenuTriggerProps | \"children\" | \"trigger\"\n>;\n\nconst MenuContext = createContext<MenuContextValue | undefined>(undefined);\n\nexport const MenuProvider = MenuContext.Provider;\n\nexport const useMenuContext = () => {\n const context = useContext(MenuContext);\n return context;\n};\n","import { useSlotRecipe } from \"@chakra-ui/react/styled-system\";\nimport { MenuTrigger as RaMenuTrigger } from \"react-aria-components\";\nimport type { MenuRootProps } from \"../menu.types\";\nimport { MenuRootSlot } from \"../menu.slots\";\nimport { MenuProvider } from \"./menu.context\";\n\nexport const MenuRoot = (props: MenuRootProps) => {\n const recipe = useSlotRecipe({ key: \"menu\" });\n const [recipeProps, functionalProps] = recipe.splitVariantProps(props);\n\n // Separate MenuTrigger props from Menu props\n const {\n children,\n trigger,\n isOpen,\n defaultOpen,\n onOpenChange,\n ...menuContextProps\n } = functionalProps;\n\n const menuTriggerProps = {\n trigger,\n isOpen,\n defaultOpen,\n onOpenChange,\n };\n\n return (\n <MenuRootSlot {...recipeProps} asChild>\n <RaMenuTrigger {...menuTriggerProps}>\n <MenuProvider value={menuContextProps}>{children}</MenuProvider>\n </RaMenuTrigger>\n </MenuRootSlot>\n );\n};\n\nMenuRoot.displayName = \"Menu.Root\";\n","import { Button } from \"react-aria-components\";\nimport { MenuTriggerSlot } from \"../menu.slots\";\nimport type { MenuTriggerProps } from \"../menu.types\";\nimport { extractStyleProps } from \"@/utils\";\nimport type { ReactNode } from \"react\";\n\nexport const MenuTrigger = ({\n children,\n asChild,\n ref,\n ...props\n}: MenuTriggerProps) => {\n const [styleProps, restProps] = extractStyleProps(props);\n\n /**\n * The user supplied a Button as the trigger\n */\n if (asChild) {\n // When asChild is true, apply styles to the child element\n return (\n <MenuTriggerSlot ref={ref} asChild {...styleProps}>\n {children as ReactNode}\n </MenuTriggerSlot>\n );\n }\n\n /**\n * The user did not supply a Button as trigger, use an unstyled button\n * to wrap which ever element the user supplied and make it a trigger\n */\n return (\n <MenuTriggerSlot asChild {...styleProps}>\n <Button ref={ref} {...restProps}>\n {children}\n </Button>\n </MenuTriggerSlot>\n );\n};\n\nMenuTrigger.displayName = \"Menu.Trigger\";\n","import { createContext, useContext } from \"react\";\n\nexport type MenuSectionContextValue = {\n selectionMode?: \"single\" | \"multiple\" | \"none\";\n};\n/**\n * Why is a second context (MenuSectionContext) needed?\n *\n * MenuSectionContext enables section-level config for menu items, such as\n * selection mode, which may differ from the global menu context. This allows\n * advanced menus where each section can have its own selection behavior\n * (e.g., one section is single-select, another is multi-select).\n * By scoping context to a section, menu items inherit settings from their\n * nearest section, falling back to the global menu context if not present.\n * This pattern improves flexibility and composability for complex menus,\n * and avoids prop drilling or awkward prop merging.\n */\n\nconst MenuSectionContext = createContext<MenuSectionContextValue | undefined>(\n undefined\n);\n\nexport const MenuSectionProvider = MenuSectionContext.Provider;\n\nexport const useMenuSectionContext = () => {\n return useContext(MenuSectionContext);\n};\n","import { Menu, Popover } from \"react-aria-components\";\nimport { MenuContentSlot, MenuPopoverSlot } from \"../menu.slots\";\nimport type { MenuContentProps } from \"../menu.types\";\nimport { useMenuContext } from \"./menu.context\";\nimport { MenuSectionProvider } from \"./menu.section-context\";\n\nexport const MenuContent = ({\n children,\n placement: placementOverride,\n ref,\n}: MenuContentProps) => {\n const contextProps = useMenuContext();\n\n if (!contextProps) {\n throw new Error(\"Menu.Content must be used within Menu.Root\");\n }\n\n // Separate placement from other props since it's handled by Popover\n const { placement, ...menuProps } = contextProps;\n const finalPlacement = placementOverride || placement || \"bottom start\";\n\n return (\n <MenuSectionProvider value={{ selectionMode: menuProps.selectionMode }}>\n <MenuPopoverSlot asChild>\n <Popover placement={finalPlacement} offset={4} shouldFlip>\n <MenuContentSlot asChild>\n <Menu ref={ref} shouldFocusWrap autoFocus=\"first\" {...menuProps}>\n {children}\n </Menu>\n </MenuContentSlot>\n </Popover>\n </MenuPopoverSlot>\n </MenuSectionProvider>\n );\n};\n\nMenuContent.displayName = \"Menu.Content\";\n","import { MenuItem as RaMenuItem } from \"react-aria-components\";\nimport { MenuItemSlot } from \"../menu.slots\";\nimport type { MenuItemProps } from \"../menu.types\";\nimport { extractStyleProps } from \"@/utils\";\nimport { ChevronRight } from \"@commercetools/nimbus-icons\";\nimport { Icon } from \"@/components/icon\";\n\nexport const MenuItem = ({\n children,\n isCritical,\n ref,\n ...props\n}: MenuItemProps) => {\n const [styleProps, restProps] = extractStyleProps(props);\n\n return (\n <MenuItemSlot\n asChild\n {...styleProps}\n data-critical={isCritical ? \"\" : undefined}\n >\n <RaMenuItem ref={ref} {...restProps}>\n {({ hasSubmenu }) => (\n <>\n {children}\n {hasSubmenu && (\n <Icon slot=\"caretIcon\">\n <ChevronRight />\n </Icon>\n )}\n </>\n )}\n </RaMenuItem>\n </MenuItemSlot>\n );\n};\n\nMenuItem.displayName = \"Menu.Item\";\n","import { Header } from \"react-aria-components\";\nimport { MenuSectionLabelSlot } from \"../menu.slots\";\nimport type { MenuSectionLabelProps } from \"../menu.types\";\nimport { extractStyleProps } from \"@/utils\";\n\n/**\n * Used in MenuSection for rendering the `label` property.\n */\nexport const MenuSectionLabel = ({\n children,\n ref,\n ...props\n}: MenuSectionLabelProps) => {\n const [styleProps, restProps] = extractStyleProps(props);\n\n return (\n <MenuSectionLabelSlot asChild {...styleProps}>\n <Header ref={ref} {...restProps}>\n {children}\n </Header>\n </MenuSectionLabelSlot>\n );\n};\n\nMenuSectionLabel.displayName = \"Menu.SectionLabel\";\n","import {\n MenuSection as RaMenuSection,\n Collection,\n} from \"react-aria-components\";\nimport { MenuSectionSlot } from \"../menu.slots\";\nimport type { MenuSectionProps } from \"../menu.types\";\nimport { extractStyleProps } from \"@/utils\";\nimport { useMenuContext } from \"./menu.context\";\nimport { MenuSectionProvider } from \"./menu.section-context\";\nimport { MenuSectionLabel } from \"./menu.section-label\";\nimport type { ReactNode } from \"react\";\n\nexport const MenuSection = <T extends object = object>({\n children,\n ref,\n label,\n items,\n ...props\n}: MenuSectionProps<T>) => {\n const contextProps = useMenuContext();\n\n // Extract selection-related props before extracting style props\n const {\n selectionMode = contextProps?.selectionMode,\n selectedKeys = contextProps?.selectedKeys,\n defaultSelectedKeys = contextProps?.defaultSelectedKeys,\n onSelectionChange = contextProps?.onSelectionChange,\n disallowEmptySelection = contextProps?.disallowEmptySelection,\n ...restProps\n } = props;\n\n const [styleProps, otherProps] = extractStyleProps(restProps);\n\n return (\n <MenuSectionProvider value={{ selectionMode }}>\n <MenuSectionSlot asChild {...styleProps}>\n <RaMenuSection\n ref={ref}\n selectionMode={selectionMode}\n selectedKeys={selectedKeys}\n defaultSelectedKeys={defaultSelectedKeys}\n onSelectionChange={onSelectionChange}\n disallowEmptySelection={disallowEmptySelection}\n {...otherProps}\n >\n <MenuSectionLabel>{label}</MenuSectionLabel>\n {items ? (\n <Collection items={items}>{children}</Collection>\n ) : (\n (children as ReactNode)\n )}\n </RaMenuSection>\n </MenuSectionSlot>\n </MenuSectionProvider>\n );\n};\n\nMenuSection.displayName = \"Menu.Section\";\n","import { SubmenuTrigger as RaSubmenuTrigger } from \"react-aria-components\";\nimport type { MenuSubmenuTriggerProps } from \"../menu.types\";\n\nexport const MenuSubmenuTrigger = ({\n children,\n ...props\n}: MenuSubmenuTriggerProps) => {\n return <RaSubmenuTrigger {...props}>{children}</RaSubmenuTrigger>;\n};\n\nMenuSubmenuTrigger.displayName = \"Menu.SubmenuTrigger\";\n","import type { MenuSubmenuProps } from \"../menu.types\";\nimport { MenuContent } from \"./menu.content\";\n\nexport const MenuSubmenu = ({ children, ...props }: MenuSubmenuProps) => {\n return (\n <MenuContent {...props} placement=\"end\">\n {children}\n </MenuContent>\n );\n};\n\nMenuSubmenu.displayName = \"Menu.Submenu\";\n","import { MenuRoot } from \"./components/menu.root\";\nimport { MenuTrigger } from \"./components/menu.trigger\";\nimport { MenuContent } from \"./components/menu.content\";\nimport { MenuItem } from \"./components/menu.item\";\nimport { MenuSection } from \"./components/menu.section\";\nimport { MenuSubmenuTrigger } from \"./components/menu.submenu-trigger\";\nimport { MenuSubmenu } from \"./components/menu.submenu\";\n\n// Re-export types\nexport type * from \"./menu.types\";\n\nexport const Menu = {\n Root: MenuRoot,\n Trigger: MenuTrigger,\n Content: MenuContent,\n Item: MenuItem,\n Section: MenuSection,\n Submenu: MenuSubmenu,\n SubmenuTrigger: MenuSubmenuTrigger,\n};\n\n// Exports for internal use by react-docgen\nexport {\n MenuRoot as _MenuRoot,\n MenuTrigger as _MenuTrigger,\n MenuContent as _MenuContent,\n MenuItem as _MenuItem,\n MenuSection as _MenuSection,\n MenuSubmenuTrigger as _MenuSubmenuTrigger,\n MenuSubmenu as _MenuSubmenu,\n};\n"],"names":["withProvider","withContext","createSlotRecipeContext","MenuRootSlot","MenuTriggerSlot","MenuPopoverSlot","MenuContentSlot","MenuItemSlot","MenuSectionSlot","MenuSectionLabelSlot","MenuContext","createContext","MenuProvider","useMenuContext","useContext","MenuRoot","props","recipe","useSlotRecipe","recipeProps","functionalProps","children","trigger","isOpen","defaultOpen","onOpenChange","menuContextProps","jsx","RaMenuTrigger","MenuTrigger","asChild","ref","styleProps","restProps","extractStyleProps","Button","MenuSectionContext","MenuSectionProvider","MenuContent","placementOverride","contextProps","placement","menuProps","finalPlacement","Popover","Menu","MenuItem","isCritical","RaMenuItem","hasSubmenu","jsxs","Fragment","Icon","ChevronRight","MenuSectionLabel","Header","MenuSection","label","items","selectionMode","selectedKeys","defaultSelectedKeys","onSelectionChange","disallowEmptySelection","otherProps","RaMenuSection","Collection","MenuSubmenuTrigger","RaSubmenuTrigger","MenuSubmenu"],"mappings":";;;;;;;;;;;AAaA,MAAM,EAAE,cAAAA,GAAc,aAAAC,EAAA,IAAgB,gBAAAC,EAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAGYC,IACX,gBAAAH,EAAgD,OAAO,MAAM,GAGlDI,IAAkB,gBAAAH,EAG7B,UAAU,SAAS,GAGRI,IAAkB,gBAAAJ,EAG7B,OAAO,SAAS,GAGLK,IAAkB,gBAAAL,EAG7B,OAAO,SAAS,GAGLM,IAAe,gBAAAN;AAAA,EAC1B;AAAA,EACA;AACF,GAGaO,IAAkB,gBAAAP,EAG7B,OAAO,SAAS,GAGLQ,IAAuB,gBAAAR,EAGlC,OAAO,cAAc,GC7CjBS,IAAc,gBAAAC,EAA4C,MAAS,GAE5DC,IAAeF,EAAY,UAE3BG,IAAiB,MACZC,EAAWJ,CAAW,GCT3BK,IAAW,CAACC,MAAyB;AAChD,QAAMC,IAASC,EAAc,EAAE,KAAK,QAAQ,GACtC,CAACC,GAAaC,CAAe,IAAIH,EAAO,kBAAkBD,CAAK,GAG/D;AAAA,IACJ,UAAAK;AAAA,IACA,SAAAC;AAAA,IACA,QAAAC;AAAA,IACA,aAAAC;AAAA,IACA,cAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,IACDN;AASJ,2BACGjB,GAAA,EAAc,GAAGgB,GAAa,SAAO,IACpC,UAAA,gBAAAQ,EAACC,GAAA,EAAe,GATK;AAAA,IACvB,SAAAN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