@refineui/react 0.0.6 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -90,7 +90,6 @@ __export(index_exports, {
90
90
  Chip: () => Chip,
91
91
  Collapsible: () => Collapsible,
92
92
  CollapsibleContent: () => CollapsibleContent,
93
- CollapsibleRoot: () => CollapsibleRoot,
94
93
  CollapsibleTrigger: () => CollapsibleTrigger,
95
94
  Command: () => Command,
96
95
  CommandDialog: () => CommandDialog,
@@ -106,9 +105,8 @@ __export(index_exports, {
106
105
  ContextMenu: () => ContextMenu,
107
106
  ContextMenuContent: () => ContextMenuContent,
108
107
  ContextMenuItem: () => ContextMenuItem,
108
+ ContextMenuLabel: () => ContextMenuLabel,
109
109
  ContextMenuPortal: () => ContextMenuPortal,
110
- ContextMenuRoot: () => ContextMenuRoot,
111
- ContextMenuSection: () => ContextMenuSection,
112
110
  ContextMenuSeparator: () => ContextMenuSeparator,
113
111
  ContextMenuSub: () => ContextMenuSub,
114
112
  ContextMenuSubContent: () => ContextMenuSubContent,
@@ -124,7 +122,6 @@ __export(index_exports, {
124
122
  Divider: () => Divider,
125
123
  Drawer: () => Drawer,
126
124
  DrawerBody: () => DrawerBody,
127
- DrawerClose: () => DrawerClose,
128
125
  DrawerContent: () => DrawerContent,
129
126
  DrawerDescription: () => DrawerDescription,
130
127
  DrawerFooter: () => DrawerFooter,
@@ -176,9 +173,9 @@ __export(index_exports, {
176
173
  Menu: () => Menu,
177
174
  MenuDivider: () => MenuDivider,
178
175
  MenuItem: () => MenuItem,
176
+ MenuLabel: () => MenuLabel,
179
177
  MenuList: () => MenuList,
180
178
  MenuPopover: () => MenuPopover,
181
- MenuSection: () => MenuSection,
182
179
  MenuSub: () => MenuSub,
183
180
  MenuSubContent: () => MenuSubContent,
184
181
  MenuSubTrigger: () => MenuSubTrigger,
@@ -235,7 +232,6 @@ __export(index_exports, {
235
232
  SelectPortal: () => SelectPortal,
236
233
  SelectScrollDownButton: () => SelectScrollDownButton,
237
234
  SelectScrollUpButton: () => SelectScrollUpButton,
238
- SelectSection: () => SelectSection,
239
235
  SelectSeparator: () => SelectSeparator,
240
236
  SelectTrigger: () => SelectTrigger,
241
237
  SelectValue: () => SelectValue,
@@ -431,7 +427,7 @@ var componentColorTokens = {
431
427
  border: semanticToken("borderDefault")
432
428
  },
433
429
  menu: {
434
- background: semanticToken("backgroundPrimary"),
430
+ background: semanticToken("surfaceFrosted"),
435
431
  border: semanticToken("borderDefault"),
436
432
  title: semanticToken("foregroundPrimary"),
437
433
  itemText: semanticToken("foregroundPrimary"),
@@ -445,6 +441,10 @@ var componentColorTokens = {
445
441
  placeholder: semanticToken("foregroundPlaceholder"),
446
442
  background: semanticToken("backgroundPrimary"),
447
443
  disabledBackground: semanticToken("backgroundSurfaceDisabled"),
444
+ menu: {
445
+ background: semanticToken("surfaceFrosted"),
446
+ border: semanticToken("borderDefault")
447
+ },
448
448
  border: {
449
449
  default: semanticToken("borderDefault"),
450
450
  disabled: semanticToken("borderDisabled"),
@@ -836,15 +836,15 @@ var componentColorTokens = {
836
836
  },
837
837
  menu: {
838
838
  panel: {
839
- /** Matches Menu.style panel classes */
840
- background: semanticToken("backgroundPrimary"),
839
+ /** Frosted glass — `surfaceFrosted` fill + `surfaceFrost` blur in refineui.css */
840
+ background: semanticToken("surfaceFrosted"),
841
841
  border: semanticToken("borderDefault")
842
842
  },
843
843
  popover: {
844
844
  background: "transparent"
845
845
  },
846
846
  list: {
847
- background: semanticToken("backgroundPrimary"),
847
+ background: semanticToken("surfaceFrosted"),
848
848
  border: semanticToken("borderDefault")
849
849
  },
850
850
  section: semanticToken("foregroundPrimary"),
@@ -1085,7 +1085,7 @@ var componentTypographyTokens = {
1085
1085
  link: role("bodyMd"),
1086
1086
  copyright: role("bodyMd")
1087
1087
  },
1088
- /** App sidebar — group labels match menu sections; links match menu rows. */
1088
+ /** App sidebar — group labels share `captionLg` + tight py with Menu/Dropdown/Select/Command. */
1089
1089
  sidebar: {
1090
1090
  brand: role("bodyMd"),
1091
1091
  groupLabel: role("captionLg"),
@@ -1280,7 +1280,10 @@ var componentTokens = {
1280
1280
  foundation: import_tokens.semanticElevations.surface
1281
1281
  },
1282
1282
  motion: {
1283
- /** Indicator slide after first layout */
1283
+ /**
1284
+ * Indicator slide after first layout.
1285
+ * CSS applies transform=`medium` / width=`slow` so edges arrive apart.
1286
+ */
1284
1287
  indicator: motion.indicator,
1285
1288
  /** Item label color fade */
1286
1289
  itemColor: motion.fast
@@ -1896,6 +1899,7 @@ function InputOTP({
1896
1899
  function InputOTPSlot({
1897
1900
  index,
1898
1901
  className,
1902
+ style,
1899
1903
  onChange,
1900
1904
  onKeyDown,
1901
1905
  onPaste,
@@ -1982,6 +1986,10 @@ function InputOTPSlot({
1982
1986
  value: char,
1983
1987
  "aria-label": `Digit ${index + 1} of ${maxLength}`,
1984
1988
  className: (0, import_clsx5.clsx)(inputOtpStyles.slot, inputOtpSlotSizeClass[size], className),
1989
+ style: {
1990
+ ...style,
1991
+ ["--refineui-input-otp-slot-index"]: index
1992
+ },
1985
1993
  onChange: onSlotChange,
1986
1994
  onKeyDown: onSlotKeyDown,
1987
1995
  onPaste: onSlotPaste,
@@ -3208,8 +3216,9 @@ var selectStyles = {
3208
3216
  iconWrap: "inline-flex size-refineui-icon-xsmall shrink-0 items-center justify-center",
3209
3217
  chevron: "shrink-0 transition-transform duration-[var(--refineui-motion-duration-fast)] ease-[var(--refineui-motion-easing-ease-out)]",
3210
3218
  chevronOpen: "rotate-180",
3211
- positioner: "z-refineui-popup flex flex-col overflow-hidden",
3212
- contentShell: "box-border flex w-full min-h-0 flex-col overflow-hidden rounded-refineui-large border-refineui-hairline border-refineui-alias-border-default bg-refineui-alias-background-primary p-refineui-size-xx-small shadow-refineui-2 outline-none",
3219
+ /* No overflow-hidden — it isolates descendants and kills panel `backdrop-filter`. */
3220
+ positioner: "z-refineui-popup flex flex-col",
3221
+ contentShell: "box-border flex w-full min-h-0 flex-col overflow-hidden rounded-refineui-xx-large border-refineui-hairline border-refineui-alias-border-default p-refineui-size-xx-small shadow-refineui-2 outline-none",
3213
3222
  contentPopper: "h-auto max-h-[var(--refineui-select-content-available-height,100dvh)]",
3214
3223
  contentItemAligned: "max-h-full",
3215
3224
  viewportPopper: "relative flex max-h-full min-h-0 min-w-full w-full flex-col",
@@ -3219,7 +3228,7 @@ var selectStyles = {
3219
3228
  group: "flex flex-col gap-px",
3220
3229
  label: (0, import_clsx27.clsx)(
3221
3230
  componentTextClass(componentTypographyTokens.select.label),
3222
- "px-refineui-size-x-small py-refineui-size-x-small text-refineui-alias-foreground-tertiary"
3231
+ "px-refineui-size-x-small py-refineui-size-xxx-small text-refineui-alias-foreground-tertiary"
3223
3232
  ),
3224
3233
  separator: "my-refineui-size-x-small h-px bg-refineui-alias-border-default",
3225
3234
  item: (0, import_clsx27.clsx)(
@@ -3874,9 +3883,6 @@ function SelectGroup({ children, className, ...props }) {
3874
3883
  function SelectLabel({ children, className, ...props }) {
3875
3884
  return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: (0, import_clsx28.clsx)(selectStyles.label, className), ...props, children });
3876
3885
  }
3877
- function SelectSection({ children, className, ...props }) {
3878
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: (0, import_clsx28.clsx)(selectStyles.label, className), ...props, children });
3879
- }
3880
3886
  function SelectSeparator({ className, ...props }) {
3881
3887
  return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { role: "separator", className: (0, import_clsx28.clsx)(selectStyles.separator, className), ...props });
3882
3888
  }
@@ -4501,7 +4507,7 @@ var COMMAND_LIST_MAX_HEIGHT = `min(60vh, ${import_tokens11.foundationSizes.found
4501
4507
  var commandStyles = {
4502
4508
  root: (0, import_clsx33.clsx)(
4503
4509
  "flex w-full flex-col overflow-hidden outline-none",
4504
- "rounded-refineui-large border-refineui-hairline border-refineui-alias-border-default",
4510
+ "rounded-refineui-xx-large border-refineui-hairline border-refineui-alias-border-default",
4505
4511
  "bg-refineui-alias-background-primary text-refineui-alias-foreground-primary",
4506
4512
  "shadow-refineui-2"
4507
4513
  ),
@@ -4529,7 +4535,7 @@ var commandStyles = {
4529
4535
  group: "flex flex-col gap-refineui-size-xxx-small overflow-hidden",
4530
4536
  groupHeading: (0, import_clsx33.clsx)(
4531
4537
  componentTextClass(componentTypographyTokens.command.group),
4532
- "flex w-full items-center overflow-hidden px-refineui-size-x-small pb-refineui-size-xxx-small pt-refineui-size-x-small text-refineui-alias-foreground-tertiary"
4538
+ "flex w-full items-center overflow-hidden px-refineui-size-x-small py-refineui-size-xxx-small text-refineui-alias-foreground-tertiary"
4533
4539
  ),
4534
4540
  separatorWrap: "flex w-full items-center px-refineui-size-x-small py-refineui-size-x-small",
4535
4541
  separatorLine: "h-px w-full shrink-0 bg-refineui-alias-border-default",
@@ -7210,6 +7216,7 @@ var import_react28 = require("react");
7210
7216
  var import_tokens17 = require("@refineui/tokens");
7211
7217
 
7212
7218
  // src/components/Breadcrumb/style.ts
7219
+ var ellipsisChip = "box-border inline-flex min-h-refineui-button-min-height-sm min-w-refineui-button-min-height-sm shrink-0 items-center justify-center rounded-refineui-large p-refineui-size-xx-small leading-none";
7213
7220
  var breadcrumbStyles = {
7214
7221
  textRow: `${componentTextClass(componentTypographyTokens.breadcrumb.row)} whitespace-nowrap`,
7215
7222
  root: "py-refineui-size-x-small",
@@ -7219,8 +7226,9 @@ var breadcrumbStyles = {
7219
7226
  page: "inline-flex items-center px-refineui-size-medium py-refineui-size-x-small font-medium text-refineui-alias-foreground-primary",
7220
7227
  separator: "inline-flex shrink-0 items-center",
7221
7228
  separatorText: "inline-flex items-center text-refineui-alias-foreground-tertiary select-none",
7222
- ellipsis: "box-border inline-flex min-h-refineui-button-min-height-sm shrink-0 items-center justify-center rounded-refineui-large px-refineui-size-medium py-refineui-size-x-small text-refineui-alias-foreground-tertiary leading-none",
7223
- ellipsisTrigger: "box-border inline-flex min-h-refineui-button-min-height-sm shrink-0 cursor-pointer items-center justify-center rounded-refineui-large border-none bg-transparent px-refineui-size-medium py-refineui-size-x-small text-refineui-alias-foreground-tertiary leading-none outline-none transition-[color,background-color] duration-[var(--refineui-motion-duration-fast)]"
7229
+ ellipsis: `${ellipsisChip} text-refineui-alias-foreground-tertiary`,
7230
+ /** Color only — size/layout come from Button `layout="icon" size="sm"`. */
7231
+ ellipsisTrigger: "text-refineui-alias-foreground-tertiary"
7224
7232
  };
7225
7233
 
7226
7234
  // src/components/Breadcrumb/Breadcrumb.tsx
@@ -7293,52 +7301,43 @@ function BreadcrumbSeparator({ children, className, ...props }) {
7293
7301
  }
7294
7302
  );
7295
7303
  }
7304
+ function EllipsisIcon() {
7305
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
7306
+ WebIcon,
7307
+ {
7308
+ name: "more-horizontal",
7309
+ size: import_tokens17.iconSizes.small,
7310
+ color: "currentColor",
7311
+ fallback: "\u22EF",
7312
+ className: "items-center justify-center"
7313
+ }
7314
+ );
7315
+ }
7296
7316
  function BreadcrumbEllipsis({ className, ...props }) {
7297
7317
  return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
7298
7318
  "span",
7299
7319
  {
7300
7320
  "data-refineui": "breadcrumb-ellipsis",
7301
- className: (0, import_clsx55.clsx)(
7302
- breadcrumbStyles.ellipsis,
7303
- className
7304
- ),
7321
+ className: (0, import_clsx55.clsx)(breadcrumbStyles.ellipsis, className),
7305
7322
  ...props,
7306
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
7307
- WebIcon,
7308
- {
7309
- name: "more-horizontal",
7310
- size: import_tokens17.iconSizes.small,
7311
- color: "currentColor",
7312
- fallback: "\u22EF",
7313
- className: "items-center justify-center"
7314
- }
7315
- )
7323
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(EllipsisIcon, {})
7316
7324
  }
7317
7325
  );
7318
7326
  }
7319
7327
  var BreadcrumbEllipsisTrigger = (0, import_react28.forwardRef)(
7320
7328
  function BreadcrumbEllipsisTrigger2({ className, type = "button", children, ...props }, ref) {
7321
7329
  return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
7322
- "button",
7330
+ Button,
7323
7331
  {
7324
7332
  ref,
7325
7333
  type,
7334
+ variant: "ghost",
7335
+ size: "sm",
7336
+ layout: "icon",
7326
7337
  "data-refineui": "breadcrumb-ellipsis",
7327
- className: (0, import_clsx55.clsx)(
7328
- breadcrumbStyles.ellipsisTrigger,
7329
- className
7330
- ),
7338
+ className: (0, import_clsx55.clsx)(breadcrumbStyles.ellipsisTrigger, className),
7331
7339
  ...props,
7332
- children: children ?? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
7333
- WebIcon,
7334
- {
7335
- name: "more-horizontal",
7336
- size: import_tokens17.iconSizes.small,
7337
- color: "currentColor",
7338
- fallback: "\u22EF",
7339
- className: "items-center justify-center"
7340
- }
7341
- )
7340
+ children: children ?? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(EllipsisIcon, {})
7342
7341
  }
7343
7342
  );
7344
7343
  }
@@ -8650,7 +8649,6 @@ function DrawerContent({
8650
8649
  function DrawerHeader({
8651
8650
  className,
8652
8651
  children,
8653
- showClose = true,
8654
8652
  actions,
8655
8653
  ...props
8656
8654
  }) {
@@ -8666,8 +8664,7 @@ function DrawerHeader({
8666
8664
  ...props,
8667
8665
  children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: drawerStyles.headerMain, children: [
8668
8666
  /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: drawerStyles.headerMainText, children }),
8669
- hasActions ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: drawerStyles.headerActions, children: actions }) : null,
8670
- showClose ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DrawerClose, {}) : null
8667
+ hasActions ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: drawerStyles.headerActions, children: actions }) : null
8671
8668
  ] })
8672
8669
  }
8673
8670
  );
@@ -8746,36 +8743,6 @@ function DrawerFooter({ className, ...props }) {
8746
8743
  }
8747
8744
  );
8748
8745
  }
8749
- function DrawerClose({
8750
- children,
8751
- onClick,
8752
- className,
8753
- type = "button",
8754
- variant,
8755
- size,
8756
- layout,
8757
- ...props
8758
- }) {
8759
- const { setOpen } = useDrawerContext("DrawerClose");
8760
- const iconOnly = children == null;
8761
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
8762
- Button,
8763
- {
8764
- ...props,
8765
- type,
8766
- variant: variant ?? (iconOnly ? "ghost" : "outline"),
8767
- size: size ?? "md",
8768
- layout: layout ?? (iconOnly ? "icon" : "label"),
8769
- "aria-label": iconOnly ? "Close" : void 0,
8770
- className,
8771
- onClick: (e) => {
8772
- onClick?.(e);
8773
- if (!e.defaultPrevented) setOpen(false);
8774
- },
8775
- children: iconOnly ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(WebIcon, { name: "dismiss", size: import_tokens19.iconSizes.xlarge, color: "currentColor", iconStyle: "regular", "aria-hidden": true }) : children
8776
- }
8777
- );
8778
- }
8779
8746
 
8780
8747
  // src/components/Dropdown/Dropdown.tsx
8781
8748
  var import_clsx70 = require("clsx");
@@ -8786,13 +8753,17 @@ var import_color8 = require("@refineui/utilities/color");
8786
8753
 
8787
8754
  // src/components/Dropdown/style.ts
8788
8755
  var import_clsx69 = require("clsx");
8756
+ var dropdownPanelChrome = "box-border flex w-refineui-dropdown-menu-width min-w-refineui-dropdown-menu-width flex-col overflow-hidden rounded-refineui-xx-large border-refineui-hairline border-refineui-alias-border-default shadow-refineui-2 outline-none";
8789
8757
  var dropdownStyles = {
8790
- menuShell: "box-border flex w-refineui-dropdown-menu-width min-w-refineui-dropdown-menu-width max-w-[min(100vw-16px,calc(100vw-2rem))] flex-col overflow-hidden rounded-refineui-large border-refineui-hairline border-refineui-alias-border-default bg-refineui-alias-background-primary shadow-refineui-2 outline-none",
8791
- submenuShell: "box-border flex w-refineui-dropdown-menu-width min-w-refineui-dropdown-menu-width flex-col overflow-hidden rounded-refineui-large border-refineui-hairline border-refineui-alias-border-default bg-refineui-alias-background-primary shadow-refineui-2 outline-none",
8758
+ menuShell: (0, import_clsx69.clsx)(
8759
+ dropdownPanelChrome,
8760
+ "max-w-[min(100vw-16px,calc(100vw-2rem))]"
8761
+ ),
8762
+ submenuShell: dropdownPanelChrome,
8792
8763
  menuViewport: "box-border flex flex-col gap-px p-refineui-size-xx-small",
8793
8764
  label: (0, import_clsx69.clsx)(
8794
8765
  componentTextClass(componentTypographyTokens.dropdown.label),
8795
- "shrink-0 px-refineui-size-x-small py-refineui-size-x-small text-refineui-alias-foreground-tertiary"
8766
+ "shrink-0 px-refineui-size-x-small py-refineui-size-xxx-small text-refineui-alias-foreground-tertiary"
8796
8767
  ),
8797
8768
  item: (0, import_clsx69.clsx)(
8798
8769
  componentTextClass(componentTypographyTokens.dropdown.item),
@@ -9662,16 +9633,21 @@ var import_react37 = require("@refineui/utilities/react");
9662
9633
 
9663
9634
  // src/components/Menu/style.ts
9664
9635
  var import_clsx75 = require("clsx");
9636
+ var menuPanelChrome = "box-border flex flex-col gap-px overflow-hidden rounded-refineui-xx-large border-refineui-hairline border-refineui-alias-border-default p-refineui-size-xx-small shadow-refineui-2";
9665
9637
  var menuStyles = {
9666
- /** Panel chrome — Web Kit Menu `633:4268` (fill matches Dropdown elevated panel for contrast on docs) */
9667
- panel: "box-border flex w-refineui-menu-panel-width flex-col gap-px overflow-hidden rounded-refineui-large border-refineui-hairline border-refineui-alias-border-default bg-refineui-alias-background-primary p-refineui-size-xx-small shadow-refineui-2",
9638
+ /** Panel chrome — Web Kit Menu `633:4268` (fill/blur: `surfaceFrosted` + `surfaceFrost`) */
9639
+ panel: (0, import_clsx75.clsx)(menuPanelChrome, "w-refineui-menu-panel-width"),
9668
9640
  root: "relative inline-flex items-center leading-none",
9669
9641
  triggerFallback: "cursor-pointer border-none bg-transparent p-0 font-inherit text-inherit",
9670
9642
  /** Portal shell — position/z-index from `MenuPopover` fixed style */
9671
9643
  popover: "z-refineui-messages",
9672
- list: "box-border flex w-full min-w-refineui-menu-panel-width flex-col gap-px overflow-hidden rounded-refineui-large border-refineui-hairline border-refineui-alias-border-default bg-refineui-alias-background-primary p-refineui-size-xx-small shadow-refineui-2 outline-none",
9673
- subPanel: "box-border flex w-refineui-menu-panel-width min-w-refineui-menu-panel-width flex-col gap-px overflow-hidden rounded-refineui-large border-refineui-hairline border-refineui-alias-border-default bg-refineui-alias-background-primary p-refineui-size-xx-small shadow-refineui-2 outline-none",
9674
- section: "flex w-full items-center overflow-hidden px-refineui-size-x-small py-refineui-size-x-small",
9644
+ list: (0, import_clsx75.clsx)(menuPanelChrome, "w-full min-w-refineui-menu-panel-width outline-none"),
9645
+ subPanel: (0, import_clsx75.clsx)(
9646
+ menuPanelChrome,
9647
+ "w-refineui-menu-panel-width min-w-refineui-menu-panel-width outline-none"
9648
+ ),
9649
+ /** Vertical density matches Sidebar `groupLabel` (`py-xxx-small`). */
9650
+ section: "flex w-full items-center overflow-hidden px-refineui-size-x-small py-refineui-size-xxx-small",
9675
9651
  sectionText: (0, import_clsx75.clsx)(
9676
9652
  componentTextClass(componentTypographyTokens.menu.section),
9677
9653
  "text-refineui-alias-foreground-tertiary"
@@ -9854,11 +9830,11 @@ function MenuList({ className, ...props }) {
9854
9830
  }
9855
9831
  );
9856
9832
  }
9857
- function MenuSection({ className, children, ...props }) {
9833
+ function MenuLabel({ className, children, ...props }) {
9858
9834
  return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
9859
9835
  "div",
9860
9836
  {
9861
- "data-refineui": "menu-section",
9837
+ "data-refineui": "menu-label",
9862
9838
  className: (0, import_clsx76.clsx)(menuStyles.section, className),
9863
9839
  ...props,
9864
9840
  children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: menuStyles.sectionText, children })
@@ -14813,7 +14789,7 @@ var CHART_VIEWBOX_HEIGHT = 320;
14813
14789
  var CHART_PLOT_PADDING_TOP = parseFloat(import_tokens34.spacings.sizeMedium);
14814
14790
  var CHART_PLOT_PADDING_BOTTOM = parseFloat(import_tokens34.spacings.sizeXXSmall);
14815
14791
  var CHART_PLOT_PADDING_X = parseFloat(import_tokens34.spacings.sizeMedium);
14816
- var CHART_BAR_RADIUS = parseFloat(import_tokens34.borderRadii.roundedMedium);
14792
+ var CHART_BAR_RADIUS = parseFloat(import_tokens34.borderRadii.roundedXLarge);
14817
14793
  var CHART_BAR_BAND_FILL = 0.5;
14818
14794
  var CHART_POINT_RADIUS = parseFloat(import_tokens34.foundationSizes.foundationSize40);
14819
14795
  var CHART_POINT_STROKE = parseFloat(import_tokens34.foundationSizes.foundationSize20);
@@ -15462,40 +15438,63 @@ function ChartLegendItem({
15462
15438
  var import_react57 = require("@refineui/utilities/react");
15463
15439
 
15464
15440
  // src/components/Collapsible/Collapsible.tsx
15465
- var import_react58 = require("react");
15441
+ var import_react59 = require("react");
15466
15442
  var import_clsx108 = require("clsx");
15443
+ var import_react60 = require("@refineui/utilities/react");
15444
+
15445
+ // src/components/Collapsible/context.ts
15446
+ var import_react58 = require("react");
15467
15447
  var import_tokens36 = require("@refineui/tokens");
15468
- var import_react59 = require("@refineui/utilities/react");
15469
- var import_jsx_runtime78 = require("react/jsx-runtime");
15448
+ var import_animation9 = require("@refineui/utilities/animation");
15470
15449
  var CollapsibleContext = (0, import_react58.createContext)(null);
15471
- function useCollapsible() {
15450
+ function useCollapsibleContext(part) {
15472
15451
  const value = (0, import_react58.useContext)(CollapsibleContext);
15473
- if (!value) throw new Error("Collapsible parts must be used inside Collapsible.Root");
15452
+ if (!value) throw new Error(`${part} must be used within Collapsible`);
15474
15453
  return value;
15475
15454
  }
15476
15455
  function usePrefersReducedMotion3() {
15477
15456
  const [reduce, setReduce] = (0, import_react58.useState)(false);
15478
15457
  (0, import_react58.useEffect)(() => {
15479
- const query = window.matchMedia("(prefers-reduced-motion: reduce)");
15480
- const sync = () => setReduce(query.matches);
15458
+ const mql = window.matchMedia((0, import_animation9.getReducedMotionQuery)().replace("@media ", ""));
15459
+ const sync = () => setReduce(mql.matches);
15481
15460
  sync();
15482
- query.addEventListener("change", sync);
15483
- return () => query.removeEventListener("change", sync);
15461
+ mql.addEventListener("change", sync);
15462
+ return () => mql.removeEventListener("change", sync);
15484
15463
  }, []);
15485
15464
  return reduce;
15486
15465
  }
15487
- var CollapsibleRoot = (0, import_react58.forwardRef)(function CollapsibleRoot2({ open: openProp, defaultOpen = false, onOpenChange, asChild = false, className, children, ...props }, ref) {
15488
- const [uncontrolled, setUncontrolled] = (0, import_react58.useState)(defaultOpen);
15466
+ var PANEL_HEIGHT_MS2 = Number.parseFloat(import_tokens36.semanticInteraction.duration.panel) / 1e3;
15467
+ var PANEL_CONTENT_MS2 = Number.parseFloat(import_tokens36.semanticInteraction.duration.normal) / 1e3;
15468
+ var PANEL_HEIGHT_EASE2 = import_tokens36.semanticInteraction.easing.panel;
15469
+ var PANEL_CONTENT_EASE2 = import_tokens36.semanticInteraction.easing.content;
15470
+
15471
+ // src/components/Collapsible/style.ts
15472
+ var collapsibleStyles = {
15473
+ panelOuter: "min-h-0 overflow-hidden"
15474
+ };
15475
+
15476
+ // src/components/Collapsible/Collapsible.tsx
15477
+ var import_jsx_runtime78 = require("react/jsx-runtime");
15478
+ var Collapsible = (0, import_react59.forwardRef)(function Collapsible2({ open: openProp, defaultOpen = false, onOpenChange, asChild = false, className, children, ...props }, ref) {
15479
+ const [uncontrolled, setUncontrolled] = (0, import_react59.useState)(defaultOpen);
15489
15480
  const open = openProp ?? uncontrolled;
15490
- const openRef = (0, import_react58.useRef)(open);
15491
- openRef.current = open;
15492
- const reactId = (0, import_react58.useId)();
15481
+ const reactId = (0, import_react59.useId)();
15493
15482
  const reduceMotion = usePrefersReducedMotion3();
15494
- const toggle = () => {
15495
- const next = !openRef.current;
15483
+ const toggle = (0, import_react59.useCallback)(() => {
15484
+ const next = !(openProp ?? uncontrolled);
15496
15485
  if (openProp === void 0) setUncontrolled(next);
15497
15486
  onOpenChange?.(next);
15498
- };
15487
+ }, [onOpenChange, openProp, uncontrolled]);
15488
+ const contextValue = (0, import_react59.useMemo)(
15489
+ () => ({
15490
+ open,
15491
+ toggle,
15492
+ contentId: `${reactId}-content`,
15493
+ triggerId: `${reactId}-trigger`,
15494
+ reduceMotion
15495
+ }),
15496
+ [open, reactId, reduceMotion, toggle]
15497
+ );
15499
15498
  const shared = {
15500
15499
  ...props,
15501
15500
  ref,
@@ -15503,98 +15502,98 @@ var CollapsibleRoot = (0, import_react58.forwardRef)(function CollapsibleRoot2({
15503
15502
  "data-refineui": "collapsible",
15504
15503
  className
15505
15504
  };
15506
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
15507
- CollapsibleContext.Provider,
15508
- {
15509
- value: {
15510
- open,
15511
- toggle,
15512
- contentId: `${reactId}-content`,
15513
- triggerId: `${reactId}-trigger`,
15514
- reduceMotion
15515
- },
15516
- children: asChild ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react59.Slot, { ...shared, children }) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { ...shared, children })
15517
- }
15518
- );
15505
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(CollapsibleContext.Provider, { value: contextValue, children: asChild ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react60.Slot, { ...shared, children }) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { ...shared, children }) });
15519
15506
  });
15520
- var CollapsibleTrigger = (0, import_react58.forwardRef)(function CollapsibleTrigger2({ asChild = false, onClick, className, children, ...props }, ref) {
15521
- const { open, toggle, contentId, triggerId } = useCollapsible();
15522
- const shared = {
15523
- ...props,
15524
- ref,
15525
- id: triggerId,
15526
- "aria-expanded": open,
15527
- "aria-controls": contentId,
15528
- "data-state": open ? "open" : "closed",
15529
- "data-refineui": "collapsible-trigger",
15507
+ var CollapsibleTrigger = (0, import_react59.forwardRef)(
15508
+ function CollapsibleTrigger2({
15509
+ asChild = false,
15510
+ onClick,
15530
15511
  className,
15531
- onClick: (event) => {
15532
- onClick?.(event);
15533
- if (!event.defaultPrevented) toggle();
15534
- }
15535
- };
15536
- if (asChild) return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react59.Slot, { ...shared, children });
15537
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("button", { ...shared, type: "button", children });
15538
- });
15539
- var CollapsibleContent = (0, import_react58.forwardRef)(function CollapsibleContent2({ className, children, style, ...props }, ref) {
15540
- const { open, contentId, triggerId, reduceMotion } = useCollapsible();
15541
- const innerRef = (0, import_react58.useRef)(null);
15542
- const [size, setSize] = (0, import_react58.useState)({ height: 0, width: 0 });
15543
- (0, import_react58.useLayoutEffect)(() => {
15544
- const node = innerRef.current;
15545
- if (!node) return;
15546
- const measure = () => {
15547
- setSize({ height: node.scrollHeight, width: node.scrollWidth });
15548
- };
15549
- measure();
15550
- const observer = new ResizeObserver(measure);
15551
- observer.observe(node);
15552
- return () => observer.disconnect();
15553
- }, [children, open]);
15554
- const clipStyle = {
15555
- ["--refineui-collapsible-content-height"]: `${size.height}px`,
15556
- ["--refineui-collapsible-content-width"]: `${size.width}px`,
15557
- height: open ? size.height : 0,
15558
- overflow: "hidden",
15559
- transition: reduceMotion ? void 0 : `height ${import_tokens36.semanticInteraction.duration.panel} ${import_tokens36.semanticInteraction.easing.panel}`
15560
- };
15561
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
15562
- "div",
15563
- {
15512
+ children,
15513
+ variant = "ghost",
15514
+ size,
15515
+ layout,
15516
+ fullWidth,
15517
+ type = "button",
15518
+ ...props
15519
+ }, ref) {
15520
+ const { open, toggle, contentId, triggerId } = useCollapsibleContext("CollapsibleTrigger");
15521
+ const shared = {
15564
15522
  ...props,
15565
15523
  ref,
15566
- id: contentId,
15567
- role: "region",
15568
- "aria-labelledby": triggerId,
15569
- "aria-hidden": !open,
15524
+ id: triggerId,
15525
+ "aria-expanded": open,
15526
+ "aria-controls": contentId,
15570
15527
  "data-state": open ? "open" : "closed",
15571
- "data-refineui": "collapsible-content",
15572
- style: clipStyle,
15573
- children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { ref: innerRef, className: (0, import_clsx108.clsx)(className), style, children })
15574
- }
15575
- );
15576
- });
15577
- var Collapsible = Object.assign(CollapsibleRoot, {
15578
- Root: CollapsibleRoot,
15579
- Trigger: CollapsibleTrigger,
15580
- Content: CollapsibleContent
15581
- });
15528
+ className,
15529
+ onClick: (event) => {
15530
+ onClick?.(event);
15531
+ if (!event.defaultPrevented) toggle();
15532
+ }
15533
+ };
15534
+ if (asChild) return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react60.Slot, { ...shared, children });
15535
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
15536
+ Button,
15537
+ {
15538
+ ...shared,
15539
+ type,
15540
+ variant,
15541
+ size,
15542
+ layout,
15543
+ fullWidth,
15544
+ children
15545
+ }
15546
+ );
15547
+ }
15548
+ );
15549
+ var CollapsibleContent = (0, import_react59.forwardRef)(
15550
+ function CollapsibleContent2({ className, children, style, ...props }, ref) {
15551
+ const { open, contentId, triggerId, reduceMotion } = useCollapsibleContext("CollapsibleContent");
15552
+ const gridStyle = {
15553
+ display: "grid",
15554
+ gridTemplateRows: open ? "1fr" : "0fr",
15555
+ transition: reduceMotion ? void 0 : `grid-template-rows ${PANEL_HEIGHT_MS2}s ${PANEL_HEIGHT_EASE2}`
15556
+ };
15557
+ const innerMotionStyle = {
15558
+ opacity: open ? 1 : 0,
15559
+ transform: open ? "translate3d(0, 0, 0)" : "translate3d(0, calc(-1 * var(--refineui-spacing-size-x-small)), 0)",
15560
+ transition: reduceMotion ? void 0 : `opacity ${PANEL_CONTENT_MS2}s ${PANEL_CONTENT_EASE2}, transform ${PANEL_CONTENT_MS2}s ${PANEL_CONTENT_EASE2}`,
15561
+ pointerEvents: open ? void 0 : "none",
15562
+ ...style
15563
+ };
15564
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
15565
+ "div",
15566
+ {
15567
+ ...props,
15568
+ ref,
15569
+ id: contentId,
15570
+ role: "region",
15571
+ "aria-labelledby": triggerId,
15572
+ "aria-hidden": !open,
15573
+ "data-state": open ? "open" : "closed",
15574
+ "data-refineui": "collapsible-content",
15575
+ style: gridStyle,
15576
+ children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: collapsibleStyles.panelOuter, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: (0, import_clsx108.clsx)(className), style: innerMotionStyle, children }) })
15577
+ }
15578
+ );
15579
+ }
15580
+ );
15582
15581
 
15583
15582
  // src/components/ContextMenu/ContextMenu.tsx
15584
- var import_react60 = require("react");
15583
+ var import_react61 = require("react");
15585
15584
  var import_react_dom7 = require("react-dom");
15586
15585
  var import_clsx109 = require("clsx");
15587
15586
  var import_tokens37 = require("@refineui/tokens");
15588
- var import_animation9 = require("@refineui/utilities/animation");
15589
- var import_react61 = require("@refineui/utilities/react");
15587
+ var import_animation10 = require("@refineui/utilities/animation");
15588
+ var import_react62 = require("@refineui/utilities/react");
15590
15589
  var import_jsx_runtime79 = require("react/jsx-runtime");
15591
15590
  var MENU_ATTR = "data-refineui-context-menu";
15592
- var CLOSE_MS = (0, import_animation9.motionMsToNumber)(import_tokens37.semanticInteraction.duration.normal);
15593
- var MenuContext2 = (0, import_react60.createContext)(null);
15594
- var SubContext = (0, import_react60.createContext)(null);
15591
+ var CLOSE_MS = (0, import_animation10.motionMsToNumber)(import_tokens37.semanticInteraction.duration.normal);
15592
+ var MenuContext2 = (0, import_react61.createContext)(null);
15593
+ var SubContext = (0, import_react61.createContext)(null);
15595
15594
  function useMenu() {
15596
- const value = (0, import_react60.useContext)(MenuContext2);
15597
- if (!value) throw new Error("Context menu parts must be used inside ContextMenu.Root");
15595
+ const value = (0, import_react61.useContext)(MenuContext2);
15596
+ if (!value) throw new Error("Context menu parts must be used within ContextMenu");
15598
15597
  return value;
15599
15598
  }
15600
15599
  function placeInView(element, x, y) {
@@ -15608,31 +15607,31 @@ function placeInView(element, x, y) {
15608
15607
  element.style.left = `${left}px`;
15609
15608
  element.style.top = `${top}px`;
15610
15609
  }
15611
- function ContextMenuRoot({ modal = true, onOpenChange, children }) {
15610
+ function ContextMenu({ modal = true, onOpenChange, children }) {
15612
15611
  void modal;
15613
- const [open, setOpen] = (0, import_react60.useState)(false);
15614
- const [point, setPoint] = (0, import_react60.useState)({ x: 0, y: 0 });
15615
- const openRef = (0, import_react60.useRef)(false);
15616
- const onOpenChangeRef = (0, import_react60.useRef)(onOpenChange);
15612
+ const [open, setOpen] = (0, import_react61.useState)(false);
15613
+ const [point, setPoint] = (0, import_react61.useState)({ x: 0, y: 0 });
15614
+ const openRef = (0, import_react61.useRef)(false);
15615
+ const onOpenChangeRef = (0, import_react61.useRef)(onOpenChange);
15617
15616
  openRef.current = open;
15618
15617
  onOpenChangeRef.current = onOpenChange;
15619
- const close = (0, import_react60.useCallback)(() => {
15618
+ const close = (0, import_react61.useCallback)(() => {
15620
15619
  if (!openRef.current) return;
15621
15620
  openRef.current = false;
15622
15621
  setOpen(false);
15623
15622
  onOpenChangeRef.current?.(false);
15624
15623
  }, []);
15625
- const openAt = (0, import_react60.useCallback)((x, y) => {
15624
+ const openAt = (0, import_react61.useCallback)((x, y) => {
15626
15625
  setPoint({ x, y });
15627
15626
  const wasOpen = openRef.current;
15628
15627
  openRef.current = true;
15629
15628
  setOpen(true);
15630
15629
  if (!wasOpen) onOpenChangeRef.current?.(true);
15631
15630
  }, []);
15632
- const value = (0, import_react60.useMemo)(() => ({ open, point, openAt, close }), [open, point, openAt, close]);
15631
+ const value = (0, import_react61.useMemo)(() => ({ open, point, openAt, close }), [open, point, openAt, close]);
15633
15632
  return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(MenuContext2.Provider, { value, children });
15634
15633
  }
15635
- var ContextMenuTrigger = (0, import_react60.forwardRef)(function ContextMenuTrigger2({ asChild = false, onContextMenu, children, ...props }, ref) {
15634
+ var ContextMenuTrigger = (0, import_react61.forwardRef)(function ContextMenuTrigger2({ asChild = false, onContextMenu, children, ...props }, ref) {
15636
15635
  const { openAt } = useMenu();
15637
15636
  const shared = {
15638
15637
  ...props,
@@ -15645,18 +15644,18 @@ var ContextMenuTrigger = (0, import_react60.forwardRef)(function ContextMenuTrig
15645
15644
  openAt(event.clientX, event.clientY);
15646
15645
  }
15647
15646
  };
15648
- if (asChild) return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_react61.Slot, { ...shared, children });
15647
+ if (asChild) return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_react62.Slot, { ...shared, children });
15649
15648
  return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { ...shared, className: (0, import_clsx109.clsx)(menuStyles.triggerFallback, props.className), children });
15650
15649
  });
15651
15650
  function ContextMenuPortal({ children }) {
15652
15651
  return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_jsx_runtime79.Fragment, { children });
15653
15652
  }
15654
- var ContextMenuContent = (0, import_react60.forwardRef)(function ContextMenuContent2({ className, style, onPointerDown, children, ...props }, ref) {
15653
+ var ContextMenuContent = (0, import_react61.forwardRef)(function ContextMenuContent2({ className, style, onPointerDown, children, ...props }, ref) {
15655
15654
  const { open, point, close } = useMenu();
15656
- const localRef = (0, import_react60.useRef)(null);
15657
- const [shouldRender, setShouldRender] = (0, import_react60.useState)(open);
15658
- const [isClosing, setIsClosing] = (0, import_react60.useState)(false);
15659
- (0, import_react60.useEffect)(() => {
15655
+ const localRef = (0, import_react61.useRef)(null);
15656
+ const [shouldRender, setShouldRender] = (0, import_react61.useState)(open);
15657
+ const [isClosing, setIsClosing] = (0, import_react61.useState)(false);
15658
+ (0, import_react61.useEffect)(() => {
15660
15659
  if (open) {
15661
15660
  setShouldRender(true);
15662
15661
  setIsClosing(false);
@@ -15670,11 +15669,11 @@ var ContextMenuContent = (0, import_react60.forwardRef)(function ContextMenuCont
15670
15669
  }, CLOSE_MS);
15671
15670
  return () => window.clearTimeout(timeout);
15672
15671
  }, [open, shouldRender]);
15673
- (0, import_react60.useLayoutEffect)(() => {
15672
+ (0, import_react61.useLayoutEffect)(() => {
15674
15673
  if (!shouldRender || !localRef.current) return;
15675
15674
  placeInView(localRef.current, point.x, point.y);
15676
15675
  }, [shouldRender, point.x, point.y]);
15677
- (0, import_react60.useEffect)(() => {
15676
+ (0, import_react61.useEffect)(() => {
15678
15677
  if (!open) return;
15679
15678
  const onKey = (event) => {
15680
15679
  if (event.key === "Escape") close();
@@ -15737,7 +15736,7 @@ function runSelect(onSelect, close, disabled) {
15737
15736
  onSelect?.(selectEvent);
15738
15737
  if (!selectEvent.defaultPrevented) close();
15739
15738
  }
15740
- var ContextMenuItem = (0, import_react60.forwardRef)(function ContextMenuItem2({ disabled = false, description, shortcut, startIcon, endIcon, state = "default", onSelect, className, onClick, onKeyDown, children, ...props }, ref) {
15739
+ var ContextMenuItem = (0, import_react61.forwardRef)(function ContextMenuItem2({ disabled = false, description, shortcut, startIcon, endIcon, state = "default", onSelect, className, onClick, onKeyDown, children, ...props }, ref) {
15741
15740
  const { close } = useMenu();
15742
15741
  const isDisabled = disabled || state === "disabled";
15743
15742
  const slotted = startIcon != null || description != null || shortcut != null || endIcon != null;
@@ -15795,7 +15794,7 @@ var ContextMenuItem = (0, import_react60.forwardRef)(function ContextMenuItem2({
15795
15794
  }
15796
15795
  );
15797
15796
  });
15798
- var ContextMenuSeparator = (0, import_react60.forwardRef)(
15797
+ var ContextMenuSeparator = (0, import_react61.forwardRef)(
15799
15798
  function ContextMenuSeparator2({ className, ...props }, ref) {
15800
15799
  return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
15801
15800
  "div",
@@ -15812,19 +15811,19 @@ var ContextMenuSeparator = (0, import_react60.forwardRef)(
15812
15811
  );
15813
15812
  }
15814
15813
  );
15815
- function ContextMenuSection({ className, children, ...props }) {
15816
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { "data-refineui": "menu-section", className: (0, import_clsx109.clsx)(menuStyles.section, className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: menuStyles.sectionText, children }) });
15814
+ function ContextMenuLabel({ className, children, ...props }) {
15815
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { "data-refineui": "menu-label", className: (0, import_clsx109.clsx)(menuStyles.section, className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: menuStyles.sectionText, children }) });
15817
15816
  }
15818
15817
  function ContextMenuSub({ children }) {
15819
- const [open, setOpen] = (0, import_react60.useState)(false);
15820
- const triggerRef = (0, import_react60.useRef)(null);
15821
- const timer = (0, import_react60.useRef)(null);
15818
+ const [open, setOpen] = (0, import_react61.useState)(false);
15819
+ const triggerRef = (0, import_react61.useRef)(null);
15820
+ const timer = (0, import_react61.useRef)(null);
15822
15821
  const clear = () => {
15823
15822
  if (timer.current != null) window.clearTimeout(timer.current);
15824
15823
  timer.current = null;
15825
15824
  };
15826
- (0, import_react60.useEffect)(() => clear, []);
15827
- const value = (0, import_react60.useMemo)(
15825
+ (0, import_react61.useEffect)(() => clear, []);
15826
+ const value = (0, import_react61.useMemo)(
15828
15827
  () => ({
15829
15828
  open,
15830
15829
  triggerRef,
@@ -15842,11 +15841,11 @@ function ContextMenuSub({ children }) {
15842
15841
  return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(SubContext.Provider, { value, children });
15843
15842
  }
15844
15843
  function useSub2() {
15845
- const value = (0, import_react60.useContext)(SubContext);
15846
- if (!value) throw new Error("ContextMenu.SubTrigger must be used inside ContextMenu.Sub");
15844
+ const value = (0, import_react61.useContext)(SubContext);
15845
+ if (!value) throw new Error("ContextMenuSubTrigger must be used within ContextMenuSub");
15847
15846
  return value;
15848
15847
  }
15849
- var ContextMenuSubTrigger = (0, import_react60.forwardRef)(
15848
+ var ContextMenuSubTrigger = (0, import_react61.forwardRef)(
15850
15849
  function ContextMenuSubTrigger2({ asChild = false, description, startIcon, onMouseEnter, onMouseLeave, onClick, className, children, ...props }, ref) {
15851
15850
  const sub = useSub2();
15852
15851
  const shared = {
@@ -15882,7 +15881,7 @@ var ContextMenuSubTrigger = (0, import_react60.forwardRef)(
15882
15881
  if (!event.defaultPrevented) sub.show();
15883
15882
  }
15884
15883
  };
15885
- if (asChild) return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_react61.Slot, { ...shared, children });
15884
+ if (asChild) return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_react62.Slot, { ...shared, children });
15886
15885
  return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("button", { ...shared, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("span", { className: menuStyles.row, children: [
15887
15886
  startIcon ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
15888
15887
  "span",
@@ -15907,12 +15906,12 @@ var ContextMenuSubTrigger = (0, import_react60.forwardRef)(
15907
15906
  ] }) });
15908
15907
  }
15909
15908
  );
15910
- var ContextMenuSubContent = (0, import_react60.forwardRef)(
15909
+ var ContextMenuSubContent = (0, import_react61.forwardRef)(
15911
15910
  function ContextMenuSubContent2({ className, style, onPointerDown, onMouseEnter, onMouseLeave, ...props }, ref) {
15912
15911
  const sub = useSub2();
15913
- const localRef = (0, import_react60.useRef)(null);
15914
- const [side, setSide] = (0, import_react60.useState)("right");
15915
- (0, import_react60.useLayoutEffect)(() => {
15912
+ const localRef = (0, import_react61.useRef)(null);
15913
+ const [side, setSide] = (0, import_react61.useState)("right");
15914
+ (0, import_react61.useLayoutEffect)(() => {
15916
15915
  const trigger = sub.triggerRef.current;
15917
15916
  const element = localRef.current;
15918
15917
  if (!sub.open || !trigger || !element) return;
@@ -15966,18 +15965,6 @@ var ContextMenuSubContent = (0, import_react60.forwardRef)(
15966
15965
  );
15967
15966
  }
15968
15967
  );
15969
- var ContextMenu = Object.assign(ContextMenuRoot, {
15970
- Root: ContextMenuRoot,
15971
- Trigger: ContextMenuTrigger,
15972
- Portal: ContextMenuPortal,
15973
- Content: ContextMenuContent,
15974
- Item: ContextMenuItem,
15975
- Section: ContextMenuSection,
15976
- Separator: ContextMenuSeparator,
15977
- Sub: ContextMenuSub,
15978
- SubTrigger: ContextMenuSubTrigger,
15979
- SubContent: ContextMenuSubContent
15980
- });
15981
15968
  // Annotate the CommonJS export names for ESM import in node:
15982
15969
  0 && (module.exports = {
15983
15970
  Accordion,
@@ -16050,7 +16037,6 @@ var ContextMenu = Object.assign(ContextMenuRoot, {
16050
16037
  Chip,
16051
16038
  Collapsible,
16052
16039
  CollapsibleContent,
16053
- CollapsibleRoot,
16054
16040
  CollapsibleTrigger,
16055
16041
  Command,
16056
16042
  CommandDialog,
@@ -16066,9 +16052,8 @@ var ContextMenu = Object.assign(ContextMenuRoot, {
16066
16052
  ContextMenu,
16067
16053
  ContextMenuContent,
16068
16054
  ContextMenuItem,
16055
+ ContextMenuLabel,
16069
16056
  ContextMenuPortal,
16070
- ContextMenuRoot,
16071
- ContextMenuSection,
16072
16057
  ContextMenuSeparator,
16073
16058
  ContextMenuSub,
16074
16059
  ContextMenuSubContent,
@@ -16084,7 +16069,6 @@ var ContextMenu = Object.assign(ContextMenuRoot, {
16084
16069
  Divider,
16085
16070
  Drawer,
16086
16071
  DrawerBody,
16087
- DrawerClose,
16088
16072
  DrawerContent,
16089
16073
  DrawerDescription,
16090
16074
  DrawerFooter,
@@ -16136,9 +16120,9 @@ var ContextMenu = Object.assign(ContextMenuRoot, {
16136
16120
  Menu,
16137
16121
  MenuDivider,
16138
16122
  MenuItem,
16123
+ MenuLabel,
16139
16124
  MenuList,
16140
16125
  MenuPopover,
16141
- MenuSection,
16142
16126
  MenuSub,
16143
16127
  MenuSubContent,
16144
16128
  MenuSubTrigger,
@@ -16195,7 +16179,6 @@ var ContextMenu = Object.assign(ContextMenuRoot, {
16195
16179
  SelectPortal,
16196
16180
  SelectScrollDownButton,
16197
16181
  SelectScrollUpButton,
16198
- SelectSection,
16199
16182
  SelectSeparator,
16200
16183
  SelectTrigger,
16201
16184
  SelectValue,