@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.js CHANGED
@@ -114,7 +114,7 @@ var componentColorTokens = {
114
114
  border: semanticToken("borderDefault")
115
115
  },
116
116
  menu: {
117
- background: semanticToken("backgroundPrimary"),
117
+ background: semanticToken("surfaceFrosted"),
118
118
  border: semanticToken("borderDefault"),
119
119
  title: semanticToken("foregroundPrimary"),
120
120
  itemText: semanticToken("foregroundPrimary"),
@@ -128,6 +128,10 @@ var componentColorTokens = {
128
128
  placeholder: semanticToken("foregroundPlaceholder"),
129
129
  background: semanticToken("backgroundPrimary"),
130
130
  disabledBackground: semanticToken("backgroundSurfaceDisabled"),
131
+ menu: {
132
+ background: semanticToken("surfaceFrosted"),
133
+ border: semanticToken("borderDefault")
134
+ },
131
135
  border: {
132
136
  default: semanticToken("borderDefault"),
133
137
  disabled: semanticToken("borderDisabled"),
@@ -519,15 +523,15 @@ var componentColorTokens = {
519
523
  },
520
524
  menu: {
521
525
  panel: {
522
- /** Matches Menu.style panel classes */
523
- background: semanticToken("backgroundPrimary"),
526
+ /** Frosted glass — `surfaceFrosted` fill + `surfaceFrost` blur in refineui.css */
527
+ background: semanticToken("surfaceFrosted"),
524
528
  border: semanticToken("borderDefault")
525
529
  },
526
530
  popover: {
527
531
  background: "transparent"
528
532
  },
529
533
  list: {
530
- background: semanticToken("backgroundPrimary"),
534
+ background: semanticToken("surfaceFrosted"),
531
535
  border: semanticToken("borderDefault")
532
536
  },
533
537
  section: semanticToken("foregroundPrimary"),
@@ -768,7 +772,7 @@ var componentTypographyTokens = {
768
772
  link: role("bodyMd"),
769
773
  copyright: role("bodyMd")
770
774
  },
771
- /** App sidebar — group labels match menu sections; links match menu rows. */
775
+ /** App sidebar — group labels share `captionLg` + tight py with Menu/Dropdown/Select/Command. */
772
776
  sidebar: {
773
777
  brand: role("bodyMd"),
774
778
  groupLabel: role("captionLg"),
@@ -963,7 +967,10 @@ var componentTokens = {
963
967
  foundation: semanticElevations.surface
964
968
  },
965
969
  motion: {
966
- /** Indicator slide after first layout */
970
+ /**
971
+ * Indicator slide after first layout.
972
+ * CSS applies transform=`medium` / width=`slow` so edges arrive apart.
973
+ */
967
974
  indicator: motion.indicator,
968
975
  /** Item label color fade */
969
976
  itemColor: motion.fast
@@ -1594,6 +1601,7 @@ function InputOTP({
1594
1601
  function InputOTPSlot({
1595
1602
  index,
1596
1603
  className,
1604
+ style,
1597
1605
  onChange,
1598
1606
  onKeyDown,
1599
1607
  onPaste,
@@ -1680,6 +1688,10 @@ function InputOTPSlot({
1680
1688
  value: char,
1681
1689
  "aria-label": `Digit ${index + 1} of ${maxLength}`,
1682
1690
  className: clsx5(inputOtpStyles.slot, inputOtpSlotSizeClass[size], className),
1691
+ style: {
1692
+ ...style,
1693
+ ["--refineui-input-otp-slot-index"]: index
1694
+ },
1683
1695
  onChange: onSlotChange,
1684
1696
  onKeyDown: onSlotKeyDown,
1685
1697
  onPaste: onSlotPaste,
@@ -2937,8 +2949,9 @@ var selectStyles = {
2937
2949
  iconWrap: "inline-flex size-refineui-icon-xsmall shrink-0 items-center justify-center",
2938
2950
  chevron: "shrink-0 transition-transform duration-[var(--refineui-motion-duration-fast)] ease-[var(--refineui-motion-easing-ease-out)]",
2939
2951
  chevronOpen: "rotate-180",
2940
- positioner: "z-refineui-popup flex flex-col overflow-hidden",
2941
- 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",
2952
+ /* No overflow-hidden — it isolates descendants and kills panel `backdrop-filter`. */
2953
+ positioner: "z-refineui-popup flex flex-col",
2954
+ 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",
2942
2955
  contentPopper: "h-auto max-h-[var(--refineui-select-content-available-height,100dvh)]",
2943
2956
  contentItemAligned: "max-h-full",
2944
2957
  viewportPopper: "relative flex max-h-full min-h-0 min-w-full w-full flex-col",
@@ -2948,7 +2961,7 @@ var selectStyles = {
2948
2961
  group: "flex flex-col gap-px",
2949
2962
  label: clsx27(
2950
2963
  componentTextClass(componentTypographyTokens.select.label),
2951
- "px-refineui-size-x-small py-refineui-size-x-small text-refineui-alias-foreground-tertiary"
2964
+ "px-refineui-size-x-small py-refineui-size-xxx-small text-refineui-alias-foreground-tertiary"
2952
2965
  ),
2953
2966
  separator: "my-refineui-size-x-small h-px bg-refineui-alias-border-default",
2954
2967
  item: clsx27(
@@ -3603,9 +3616,6 @@ function SelectGroup({ children, className, ...props }) {
3603
3616
  function SelectLabel({ children, className, ...props }) {
3604
3617
  return /* @__PURE__ */ jsx22("div", { className: clsx28(selectStyles.label, className), ...props, children });
3605
3618
  }
3606
- function SelectSection({ children, className, ...props }) {
3607
- return /* @__PURE__ */ jsx22("div", { className: clsx28(selectStyles.label, className), ...props, children });
3608
- }
3609
3619
  function SelectSeparator({ className, ...props }) {
3610
3620
  return /* @__PURE__ */ jsx22("div", { role: "separator", className: clsx28(selectStyles.separator, className), ...props });
3611
3621
  }
@@ -4253,7 +4263,7 @@ var COMMAND_LIST_MAX_HEIGHT = `min(60vh, ${foundationSizes2.foundationSize3200})
4253
4263
  var commandStyles = {
4254
4264
  root: clsx33(
4255
4265
  "flex w-full flex-col overflow-hidden outline-none",
4256
- "rounded-refineui-large border-refineui-hairline border-refineui-alias-border-default",
4266
+ "rounded-refineui-xx-large border-refineui-hairline border-refineui-alias-border-default",
4257
4267
  "bg-refineui-alias-background-primary text-refineui-alias-foreground-primary",
4258
4268
  "shadow-refineui-2"
4259
4269
  ),
@@ -4281,7 +4291,7 @@ var commandStyles = {
4281
4291
  group: "flex flex-col gap-refineui-size-xxx-small overflow-hidden",
4282
4292
  groupHeading: clsx33(
4283
4293
  componentTextClass(componentTypographyTokens.command.group),
4284
- "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"
4294
+ "flex w-full items-center overflow-hidden px-refineui-size-x-small py-refineui-size-xxx-small text-refineui-alias-foreground-tertiary"
4285
4295
  ),
4286
4296
  separatorWrap: "flex w-full items-center px-refineui-size-x-small py-refineui-size-x-small",
4287
4297
  separatorLine: "h-px w-full shrink-0 bg-refineui-alias-border-default",
@@ -6991,6 +7001,7 @@ import { forwardRef as forwardRef12 } from "react";
6991
7001
  import { iconSizes as iconSizes11 } from "@refineui/tokens";
6992
7002
 
6993
7003
  // src/components/Breadcrumb/style.ts
7004
+ 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";
6994
7005
  var breadcrumbStyles = {
6995
7006
  textRow: `${componentTextClass(componentTypographyTokens.breadcrumb.row)} whitespace-nowrap`,
6996
7007
  root: "py-refineui-size-x-small",
@@ -7000,8 +7011,9 @@ var breadcrumbStyles = {
7000
7011
  page: "inline-flex items-center px-refineui-size-medium py-refineui-size-x-small font-medium text-refineui-alias-foreground-primary",
7001
7012
  separator: "inline-flex shrink-0 items-center",
7002
7013
  separatorText: "inline-flex items-center text-refineui-alias-foreground-tertiary select-none",
7003
- 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",
7004
- 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)]"
7014
+ ellipsis: `${ellipsisChip} text-refineui-alias-foreground-tertiary`,
7015
+ /** Color only — size/layout come from Button `layout="icon" size="sm"`. */
7016
+ ellipsisTrigger: "text-refineui-alias-foreground-tertiary"
7005
7017
  };
7006
7018
 
7007
7019
  // src/components/Breadcrumb/Breadcrumb.tsx
@@ -7074,52 +7086,43 @@ function BreadcrumbSeparator({ children, className, ...props }) {
7074
7086
  }
7075
7087
  );
7076
7088
  }
7089
+ function EllipsisIcon() {
7090
+ return /* @__PURE__ */ jsx43(
7091
+ WebIcon,
7092
+ {
7093
+ name: "more-horizontal",
7094
+ size: iconSizes11.small,
7095
+ color: "currentColor",
7096
+ fallback: "\u22EF",
7097
+ className: "items-center justify-center"
7098
+ }
7099
+ );
7100
+ }
7077
7101
  function BreadcrumbEllipsis({ className, ...props }) {
7078
7102
  return /* @__PURE__ */ jsx43(
7079
7103
  "span",
7080
7104
  {
7081
7105
  "data-refineui": "breadcrumb-ellipsis",
7082
- className: clsx55(
7083
- breadcrumbStyles.ellipsis,
7084
- className
7085
- ),
7106
+ className: clsx55(breadcrumbStyles.ellipsis, className),
7086
7107
  ...props,
7087
- children: /* @__PURE__ */ jsx43(
7088
- WebIcon,
7089
- {
7090
- name: "more-horizontal",
7091
- size: iconSizes11.small,
7092
- color: "currentColor",
7093
- fallback: "\u22EF",
7094
- className: "items-center justify-center"
7095
- }
7096
- )
7108
+ children: /* @__PURE__ */ jsx43(EllipsisIcon, {})
7097
7109
  }
7098
7110
  );
7099
7111
  }
7100
7112
  var BreadcrumbEllipsisTrigger = forwardRef12(
7101
7113
  function BreadcrumbEllipsisTrigger2({ className, type = "button", children, ...props }, ref) {
7102
7114
  return /* @__PURE__ */ jsx43(
7103
- "button",
7115
+ Button,
7104
7116
  {
7105
7117
  ref,
7106
7118
  type,
7119
+ variant: "ghost",
7120
+ size: "sm",
7121
+ layout: "icon",
7107
7122
  "data-refineui": "breadcrumb-ellipsis",
7108
- className: clsx55(
7109
- breadcrumbStyles.ellipsisTrigger,
7110
- className
7111
- ),
7123
+ className: clsx55(breadcrumbStyles.ellipsisTrigger, className),
7112
7124
  ...props,
7113
- children: children ?? /* @__PURE__ */ jsx43(
7114
- WebIcon,
7115
- {
7116
- name: "more-horizontal",
7117
- size: iconSizes11.small,
7118
- color: "currentColor",
7119
- fallback: "\u22EF",
7120
- className: "items-center justify-center"
7121
- }
7122
- )
7125
+ children: children ?? /* @__PURE__ */ jsx43(EllipsisIcon, {})
7123
7126
  }
7124
7127
  );
7125
7128
  }
@@ -8188,7 +8191,7 @@ import {
8188
8191
  useState as useState15
8189
8192
  } from "react";
8190
8193
  import { createPortal as createPortal3 } from "react-dom";
8191
- import { iconSizes as iconSizes13, semanticInteraction as semanticInteraction4 } from "@refineui/tokens";
8194
+ import { semanticInteraction as semanticInteraction4 } from "@refineui/tokens";
8192
8195
  import { motionMsToNumber as motionMsToNumber2 } from "@refineui/utilities/animation";
8193
8196
  import { resolveColorTokenValue as resolveColorTokenValue6 } from "@refineui/utilities/color";
8194
8197
  import { acquireBodyScrollLock as acquireBodyScrollLock2 } from "@refineui/utilities/react";
@@ -8442,7 +8445,6 @@ function DrawerContent({
8442
8445
  function DrawerHeader({
8443
8446
  className,
8444
8447
  children,
8445
- showClose = true,
8446
8448
  actions,
8447
8449
  ...props
8448
8450
  }) {
@@ -8458,8 +8460,7 @@ function DrawerHeader({
8458
8460
  ...props,
8459
8461
  children: /* @__PURE__ */ jsxs18("div", { className: drawerStyles.headerMain, children: [
8460
8462
  /* @__PURE__ */ jsx52("div", { className: drawerStyles.headerMainText, children }),
8461
- hasActions ? /* @__PURE__ */ jsx52("div", { className: drawerStyles.headerActions, children: actions }) : null,
8462
- showClose ? /* @__PURE__ */ jsx52(DrawerClose, {}) : null
8463
+ hasActions ? /* @__PURE__ */ jsx52("div", { className: drawerStyles.headerActions, children: actions }) : null
8463
8464
  ] })
8464
8465
  }
8465
8466
  );
@@ -8538,36 +8539,6 @@ function DrawerFooter({ className, ...props }) {
8538
8539
  }
8539
8540
  );
8540
8541
  }
8541
- function DrawerClose({
8542
- children,
8543
- onClick,
8544
- className,
8545
- type = "button",
8546
- variant,
8547
- size,
8548
- layout,
8549
- ...props
8550
- }) {
8551
- const { setOpen } = useDrawerContext("DrawerClose");
8552
- const iconOnly = children == null;
8553
- return /* @__PURE__ */ jsx52(
8554
- Button,
8555
- {
8556
- ...props,
8557
- type,
8558
- variant: variant ?? (iconOnly ? "ghost" : "outline"),
8559
- size: size ?? "md",
8560
- layout: layout ?? (iconOnly ? "icon" : "label"),
8561
- "aria-label": iconOnly ? "Close" : void 0,
8562
- className,
8563
- onClick: (e) => {
8564
- onClick?.(e);
8565
- if (!e.defaultPrevented) setOpen(false);
8566
- },
8567
- children: iconOnly ? /* @__PURE__ */ jsx52(WebIcon, { name: "dismiss", size: iconSizes13.xlarge, color: "currentColor", iconStyle: "regular", "aria-hidden": true }) : children
8568
- }
8569
- );
8570
- }
8571
8542
 
8572
8543
  // src/components/Dropdown/Dropdown.tsx
8573
8544
  import { clsx as clsx70 } from "clsx";
@@ -8582,18 +8553,22 @@ import {
8582
8553
  useState as useState16
8583
8554
  } from "react";
8584
8555
  import { createPortal as createPortal4 } from "react-dom";
8585
- import { iconSizes as iconSizes14, spacings as spacings2, zIndex } from "@refineui/tokens";
8556
+ import { iconSizes as iconSizes13, spacings as spacings2, zIndex } from "@refineui/tokens";
8586
8557
  import { resolveColorTokenValue as resolveColorTokenValue7 } from "@refineui/utilities/color";
8587
8558
 
8588
8559
  // src/components/Dropdown/style.ts
8589
8560
  import { clsx as clsx69 } from "clsx";
8561
+ 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";
8590
8562
  var dropdownStyles = {
8591
- 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",
8592
- 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",
8563
+ menuShell: clsx69(
8564
+ dropdownPanelChrome,
8565
+ "max-w-[min(100vw-16px,calc(100vw-2rem))]"
8566
+ ),
8567
+ submenuShell: dropdownPanelChrome,
8593
8568
  menuViewport: "box-border flex flex-col gap-px p-refineui-size-xx-small",
8594
8569
  label: clsx69(
8595
8570
  componentTextClass(componentTypographyTokens.dropdown.label),
8596
- "shrink-0 px-refineui-size-x-small py-refineui-size-x-small text-refineui-alias-foreground-tertiary"
8571
+ "shrink-0 px-refineui-size-x-small py-refineui-size-xxx-small text-refineui-alias-foreground-tertiary"
8597
8572
  ),
8598
8573
  item: clsx69(
8599
8574
  componentTextClass(componentTypographyTokens.dropdown.item),
@@ -9201,7 +9176,7 @@ function DropdownSubTrigger({
9201
9176
  WebIcon,
9202
9177
  {
9203
9178
  name: "chevron-right",
9204
- size: iconSizes14.small,
9179
+ size: iconSizes13.small,
9205
9180
  color: "currentColor",
9206
9181
  "aria-hidden": true,
9207
9182
  className: "ms-auto shrink-0"
@@ -9409,7 +9384,7 @@ function FieldError({ className, ...props }) {
9409
9384
 
9410
9385
  // src/components/Link/Link.tsx
9411
9386
  import { clsx as clsx74 } from "clsx";
9412
- import { iconSizes as iconSizes15 } from "@refineui/tokens";
9387
+ import { iconSizes as iconSizes14 } from "@refineui/tokens";
9413
9388
 
9414
9389
  // src/components/Link/style.ts
9415
9390
  var linkStyles = {
@@ -9447,7 +9422,7 @@ function Link({
9447
9422
  ...props,
9448
9423
  children: [
9449
9424
  children,
9450
- showOpen && /* @__PURE__ */ jsx57(WebIcon, { name: "open", size: iconSizes15.large, color: "currentColor" })
9425
+ showOpen && /* @__PURE__ */ jsx57(WebIcon, { name: "open", size: iconSizes14.large, color: "currentColor" })
9451
9426
  ]
9452
9427
  }
9453
9428
  );
@@ -9466,22 +9441,27 @@ import {
9466
9441
  useState as useState17
9467
9442
  } from "react";
9468
9443
  import { createPortal as createPortal5 } from "react-dom";
9469
- import { iconSizes as iconSizes16, semanticInteraction as semanticInteraction5, spacings as spacings3, zIndex as zIndex2 } from "@refineui/tokens";
9444
+ import { iconSizes as iconSizes15, semanticInteraction as semanticInteraction5, spacings as spacings3, zIndex as zIndex2 } from "@refineui/tokens";
9470
9445
  import { motionMsToNumber as motionMsToNumber3 } from "@refineui/utilities/animation";
9471
9446
  import { Slot as Slot2, getMergeableTriggerChild as getMergeableTriggerChild2 } from "@refineui/utilities/react";
9472
9447
 
9473
9448
  // src/components/Menu/style.ts
9474
9449
  import { clsx as clsx75 } from "clsx";
9450
+ 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";
9475
9451
  var menuStyles = {
9476
- /** Panel chrome — Web Kit Menu `633:4268` (fill matches Dropdown elevated panel for contrast on docs) */
9477
- 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",
9452
+ /** Panel chrome — Web Kit Menu `633:4268` (fill/blur: `surfaceFrosted` + `surfaceFrost`) */
9453
+ panel: clsx75(menuPanelChrome, "w-refineui-menu-panel-width"),
9478
9454
  root: "relative inline-flex items-center leading-none",
9479
9455
  triggerFallback: "cursor-pointer border-none bg-transparent p-0 font-inherit text-inherit",
9480
9456
  /** Portal shell — position/z-index from `MenuPopover` fixed style */
9481
9457
  popover: "z-refineui-messages",
9482
- 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",
9483
- 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",
9484
- section: "flex w-full items-center overflow-hidden px-refineui-size-x-small py-refineui-size-x-small",
9458
+ list: clsx75(menuPanelChrome, "w-full min-w-refineui-menu-panel-width outline-none"),
9459
+ subPanel: clsx75(
9460
+ menuPanelChrome,
9461
+ "w-refineui-menu-panel-width min-w-refineui-menu-panel-width outline-none"
9462
+ ),
9463
+ /** Vertical density matches Sidebar `groupLabel` (`py-xxx-small`). */
9464
+ section: "flex w-full items-center overflow-hidden px-refineui-size-x-small py-refineui-size-xxx-small",
9485
9465
  sectionText: clsx75(
9486
9466
  componentTextClass(componentTypographyTokens.menu.section),
9487
9467
  "text-refineui-alias-foreground-tertiary"
@@ -9664,11 +9644,11 @@ function MenuList({ className, ...props }) {
9664
9644
  }
9665
9645
  );
9666
9646
  }
9667
- function MenuSection({ className, children, ...props }) {
9647
+ function MenuLabel({ className, children, ...props }) {
9668
9648
  return /* @__PURE__ */ jsx58(
9669
9649
  "div",
9670
9650
  {
9671
- "data-refineui": "menu-section",
9651
+ "data-refineui": "menu-label",
9672
9652
  className: clsx76(menuStyles.section, className),
9673
9653
  ...props,
9674
9654
  children: /* @__PURE__ */ jsx58("span", { className: menuStyles.sectionText, children })
@@ -9743,9 +9723,9 @@ function MenuItem({
9743
9723
  {
9744
9724
  className: menuStyles.iconWrap,
9745
9725
  style: {
9746
- width: iconSizes16.small,
9747
- minWidth: iconSizes16.small,
9748
- height: iconSizes16.small
9726
+ width: iconSizes15.small,
9727
+ minWidth: iconSizes15.small,
9728
+ height: iconSizes15.small
9749
9729
  },
9750
9730
  children: startIcon
9751
9731
  }
@@ -9770,9 +9750,9 @@ function MenuItem({
9770
9750
  {
9771
9751
  className: menuStyles.iconWrap,
9772
9752
  style: {
9773
- width: iconSizes16.small,
9774
- minWidth: iconSizes16.small,
9775
- height: iconSizes16.small
9753
+ width: iconSizes15.small,
9754
+ minWidth: iconSizes15.small,
9755
+ height: iconSizes15.small
9776
9756
  },
9777
9757
  children: endIcon
9778
9758
  }
@@ -9924,9 +9904,9 @@ function MenuSubTrigger({
9924
9904
  {
9925
9905
  className: menuStyles.iconWrap,
9926
9906
  style: {
9927
- width: iconSizes16.small,
9928
- minWidth: iconSizes16.small,
9929
- height: iconSizes16.small
9907
+ width: iconSizes15.small,
9908
+ minWidth: iconSizes15.small,
9909
+ height: iconSizes15.small
9930
9910
  },
9931
9911
  children: startIcon
9932
9912
  }
@@ -9949,11 +9929,11 @@ function MenuSubTrigger({
9949
9929
  {
9950
9930
  className: menuStyles.iconWrap,
9951
9931
  style: {
9952
- width: iconSizes16.small,
9953
- minWidth: iconSizes16.small,
9954
- height: iconSizes16.small
9932
+ width: iconSizes15.small,
9933
+ minWidth: iconSizes15.small,
9934
+ height: iconSizes15.small
9955
9935
  },
9956
- children: /* @__PURE__ */ jsx58(WebIcon, { name: "chevron-right", size: iconSizes16.small, color: "currentColor", "aria-hidden": true })
9936
+ children: /* @__PURE__ */ jsx58(WebIcon, { name: "chevron-right", size: iconSizes15.small, color: "currentColor", "aria-hidden": true })
9957
9937
  }
9958
9938
  ) })
9959
9939
  ] })
@@ -10076,7 +10056,7 @@ import {
10076
10056
  useRef as useRef15,
10077
10057
  useState as useState18
10078
10058
  } from "react";
10079
- import { iconSizes as iconSizes17, semanticInteraction as semanticInteraction6 } from "@refineui/tokens";
10059
+ import { iconSizes as iconSizes16, semanticInteraction as semanticInteraction6 } from "@refineui/tokens";
10080
10060
  import { motionMsToNumber as motionMsToNumber4 } from "@refineui/utilities/animation";
10081
10061
 
10082
10062
  // src/components/NavigationMenu/style.ts
@@ -10424,7 +10404,7 @@ function NavigationMenuTrigger({
10424
10404
  WebIcon,
10425
10405
  {
10426
10406
  name: "chevron-down",
10427
- size: iconSizes17.xsmall,
10407
+ size: iconSizes16.xsmall,
10428
10408
  color: "currentColor",
10429
10409
  className: clsx78(
10430
10410
  navigationMenuStyles.chevron,
@@ -11022,7 +11002,7 @@ function useSidebarPeek() {
11022
11002
 
11023
11003
  // src/components/Pagination/Pagination.tsx
11024
11004
  import { clsx as clsx84 } from "clsx";
11025
- import { iconSizes as iconSizes18 } from "@refineui/tokens";
11005
+ import { iconSizes as iconSizes17 } from "@refineui/tokens";
11026
11006
  import { resolveColorTokenValue as resolveColorTokenValue9 } from "@refineui/utilities/color";
11027
11007
 
11028
11008
  // src/components/Pagination/style.ts
@@ -11085,7 +11065,7 @@ function PaginationNavButton({
11085
11065
  WebIcon,
11086
11066
  {
11087
11067
  name: isPrev ? "chevron-left" : "chevron-right",
11088
- size: iconSizes18.medium,
11068
+ size: iconSizes17.medium,
11089
11069
  color: iconColor,
11090
11070
  fallback: isPrev ? "\u2039" : "\u203A"
11091
11071
  }
@@ -11112,7 +11092,7 @@ function PaginationEllipsis({ className, ...props }) {
11112
11092
  WebIcon,
11113
11093
  {
11114
11094
  name: "more-horizontal",
11115
- size: iconSizes18.medium,
11095
+ size: iconSizes17.medium,
11116
11096
  color: resolveColorTokenValue9(componentColorTokens.pagination.navIcon.default),
11117
11097
  fallback: "\u2026"
11118
11098
  }
@@ -11572,7 +11552,7 @@ function Slider({
11572
11552
 
11573
11553
  // src/components/Carousel/Carousel.tsx
11574
11554
  import { clsx as clsx89 } from "clsx";
11575
- import { iconSizes as iconSizes19 } from "@refineui/tokens";
11555
+ import { iconSizes as iconSizes18 } from "@refineui/tokens";
11576
11556
  import {
11577
11557
  Children as Children6,
11578
11558
  cloneElement as cloneElement2,
@@ -11936,7 +11916,7 @@ function CarouselPrevious({ className, disabled, onClick, ...props }) {
11936
11916
  WebIcon,
11937
11917
  {
11938
11918
  name: "chevron-left",
11939
- size: iconSizes19.small,
11919
+ size: iconSizes18.small,
11940
11920
  color: "currentColor",
11941
11921
  iconStyle: "filled",
11942
11922
  fallback: "\u2039"
@@ -11968,7 +11948,7 @@ function CarouselNext({ className, disabled, onClick, ...props }) {
11968
11948
  WebIcon,
11969
11949
  {
11970
11950
  name: "chevron-right",
11971
- size: iconSizes19.small,
11951
+ size: iconSizes18.small,
11972
11952
  color: "currentColor",
11973
11953
  iconStyle: "filled",
11974
11954
  fallback: "\u203A"
@@ -12238,7 +12218,7 @@ function BubbleReactions({
12238
12218
 
12239
12219
  // src/components/Stepper/Stepper.tsx
12240
12220
  import { clsx as clsx93 } from "clsx";
12241
- import { iconSizes as iconSizes20 } from "@refineui/tokens";
12221
+ import { iconSizes as iconSizes19 } from "@refineui/tokens";
12242
12222
  import {
12243
12223
  createContext as createContext23,
12244
12224
  useCallback as useCallback18,
@@ -12507,7 +12487,7 @@ function StepperIndicator({ className, children, ...props }) {
12507
12487
  WebIcon,
12508
12488
  {
12509
12489
  name: "checkmark",
12510
- size: iconSizes20.xsmall,
12490
+ size: iconSizes19.xsmall,
12511
12491
  color: "currentColor",
12512
12492
  iconStyle: "filled",
12513
12493
  fallback: "\u2713",
@@ -13127,7 +13107,7 @@ function ResizableHandle({
13127
13107
  // src/components/SpinButton/SpinButton.tsx
13128
13108
  import { clsx as clsx96 } from "clsx";
13129
13109
  import { useEffect as useEffect17, useState as useState25 } from "react";
13130
- import { iconSizes as iconSizes21 } from "@refineui/tokens";
13110
+ import { iconSizes as iconSizes20 } from "@refineui/tokens";
13131
13111
 
13132
13112
  // src/components/SpinButton/style.ts
13133
13113
  var spinButtonStyles = {
@@ -13336,7 +13316,7 @@ function SpinButton({
13336
13316
  WebIcon,
13337
13317
  {
13338
13318
  name: "chevron-up",
13339
- size: iconSizes21.xsmall,
13319
+ size: iconSizes20.xsmall,
13340
13320
  color: "currentColor",
13341
13321
  iconStyle: "filled",
13342
13322
  fallback: "\u25B2"
@@ -13360,7 +13340,7 @@ function SpinButton({
13360
13340
  WebIcon,
13361
13341
  {
13362
13342
  name: "chevron-down",
13363
- size: iconSizes21.xsmall,
13343
+ size: iconSizes20.xsmall,
13364
13344
  color: "currentColor",
13365
13345
  iconStyle: "filled",
13366
13346
  fallback: "\u25BC"
@@ -13388,7 +13368,7 @@ import {
13388
13368
  useSyncExternalStore
13389
13369
  } from "react";
13390
13370
  import { createPortal as createPortal6 } from "react-dom";
13391
- import { iconSizes as iconSizes22, spacings as spacings5 } from "@refineui/tokens";
13371
+ import { iconSizes as iconSizes21, spacings as spacings5 } from "@refineui/tokens";
13392
13372
  import { motionMsToNumber as motionMsToNumber6 } from "@refineui/utilities/animation";
13393
13373
  import { resolveColorTokenValue as resolveColorTokenValue11 } from "@refineui/utilities/color";
13394
13374
 
@@ -13615,7 +13595,7 @@ var Toast = forwardRef15(function Toast2(props, ref) {
13615
13595
  WebIcon,
13616
13596
  {
13617
13597
  name: resolvedIconName,
13618
- size: iconSizes22.medium,
13598
+ size: iconSizes21.medium,
13619
13599
  color: "currentColor",
13620
13600
  iconStyle: "filled"
13621
13601
  }
@@ -13961,7 +13941,7 @@ function toExpandedSet(value) {
13961
13941
 
13962
13942
  // src/components/Tree/style.ts
13963
13943
  import { clsx as clsx99 } from "clsx";
13964
- import { iconSizes as iconSizes23 } from "@refineui/tokens";
13944
+ import { iconSizes as iconSizes22 } from "@refineui/tokens";
13965
13945
  var treeStyles = {
13966
13946
  root: "m-0 flex list-none flex-col gap-px p-0",
13967
13947
  item: "m-0 list-none p-0",
@@ -13989,9 +13969,9 @@ var treeStyles = {
13989
13969
  label: "min-w-0 flex-1 truncate text-start"
13990
13970
  };
13991
13971
  var treeIconSize = {
13992
- sm: iconSizes23.xxsmall,
13993
- md: iconSizes23.xsmall,
13994
- lg: iconSizes23.xsmall
13972
+ sm: iconSizes22.xxsmall,
13973
+ md: iconSizes22.xsmall,
13974
+ lg: iconSizes22.xsmall
13995
13975
  };
13996
13976
  var treeItemTypo = {
13997
13977
  sm: sizedComponentTextClass(componentTypographyTokens.tree.item, "sm"),
@@ -14709,7 +14689,7 @@ var CHART_VIEWBOX_HEIGHT = 320;
14709
14689
  var CHART_PLOT_PADDING_TOP = parseFloat(spacings7.sizeMedium);
14710
14690
  var CHART_PLOT_PADDING_BOTTOM = parseFloat(spacings7.sizeXXSmall);
14711
14691
  var CHART_PLOT_PADDING_X = parseFloat(spacings7.sizeMedium);
14712
- var CHART_BAR_RADIUS = parseFloat(borderRadii.roundedMedium);
14692
+ var CHART_BAR_RADIUS = parseFloat(borderRadii.roundedXLarge);
14713
14693
  var CHART_BAR_BAND_FILL = 0.5;
14714
14694
  var CHART_POINT_RADIUS = parseFloat(foundationSizes3.foundationSize40);
14715
14695
  var CHART_POINT_STROKE = parseFloat(foundationSizes3.foundationSize20);
@@ -15359,48 +15339,68 @@ import { Slot as Slot5 } from "@refineui/utilities/react";
15359
15339
 
15360
15340
  // src/components/Collapsible/Collapsible.tsx
15361
15341
  import {
15362
- createContext as createContext27,
15363
15342
  forwardRef as forwardRef16,
15364
- useContext as useContext31,
15365
- useEffect as useEffect21,
15343
+ useCallback as useCallback22,
15366
15344
  useId as useId18,
15367
- useLayoutEffect as useLayoutEffect14,
15368
- useRef as useRef24,
15369
- useState as useState32
15345
+ useMemo as useMemo23,
15346
+ useState as useState33
15370
15347
  } from "react";
15371
15348
  import { clsx as clsx108 } from "clsx";
15372
- import { semanticInteraction as semanticInteraction9 } from "@refineui/tokens";
15373
15349
  import { Slot as Slot6 } from "@refineui/utilities/react";
15374
- import { jsx as jsx78 } from "react/jsx-runtime";
15350
+
15351
+ // src/components/Collapsible/context.ts
15352
+ import { createContext as createContext27, useContext as useContext31, useEffect as useEffect21, useState as useState32 } from "react";
15353
+ import { semanticInteraction as semanticInteraction9 } from "@refineui/tokens";
15354
+ import { getReducedMotionQuery as getReducedMotionQuery3 } from "@refineui/utilities/animation";
15375
15355
  var CollapsibleContext = createContext27(null);
15376
- function useCollapsible() {
15356
+ function useCollapsibleContext(part) {
15377
15357
  const value = useContext31(CollapsibleContext);
15378
- if (!value) throw new Error("Collapsible parts must be used inside Collapsible.Root");
15358
+ if (!value) throw new Error(`${part} must be used within Collapsible`);
15379
15359
  return value;
15380
15360
  }
15381
15361
  function usePrefersReducedMotion3() {
15382
15362
  const [reduce, setReduce] = useState32(false);
15383
15363
  useEffect21(() => {
15384
- const query = window.matchMedia("(prefers-reduced-motion: reduce)");
15385
- const sync = () => setReduce(query.matches);
15364
+ const mql = window.matchMedia(getReducedMotionQuery3().replace("@media ", ""));
15365
+ const sync = () => setReduce(mql.matches);
15386
15366
  sync();
15387
- query.addEventListener("change", sync);
15388
- return () => query.removeEventListener("change", sync);
15367
+ mql.addEventListener("change", sync);
15368
+ return () => mql.removeEventListener("change", sync);
15389
15369
  }, []);
15390
15370
  return reduce;
15391
15371
  }
15392
- var CollapsibleRoot = forwardRef16(function CollapsibleRoot2({ open: openProp, defaultOpen = false, onOpenChange, asChild = false, className, children, ...props }, ref) {
15393
- const [uncontrolled, setUncontrolled] = useState32(defaultOpen);
15372
+ var PANEL_HEIGHT_MS2 = Number.parseFloat(semanticInteraction9.duration.panel) / 1e3;
15373
+ var PANEL_CONTENT_MS2 = Number.parseFloat(semanticInteraction9.duration.normal) / 1e3;
15374
+ var PANEL_HEIGHT_EASE2 = semanticInteraction9.easing.panel;
15375
+ var PANEL_CONTENT_EASE2 = semanticInteraction9.easing.content;
15376
+
15377
+ // src/components/Collapsible/style.ts
15378
+ var collapsibleStyles = {
15379
+ panelOuter: "min-h-0 overflow-hidden"
15380
+ };
15381
+
15382
+ // src/components/Collapsible/Collapsible.tsx
15383
+ import { jsx as jsx78 } from "react/jsx-runtime";
15384
+ var Collapsible = forwardRef16(function Collapsible2({ open: openProp, defaultOpen = false, onOpenChange, asChild = false, className, children, ...props }, ref) {
15385
+ const [uncontrolled, setUncontrolled] = useState33(defaultOpen);
15394
15386
  const open = openProp ?? uncontrolled;
15395
- const openRef = useRef24(open);
15396
- openRef.current = open;
15397
15387
  const reactId = useId18();
15398
15388
  const reduceMotion = usePrefersReducedMotion3();
15399
- const toggle = () => {
15400
- const next = !openRef.current;
15389
+ const toggle = useCallback22(() => {
15390
+ const next = !(openProp ?? uncontrolled);
15401
15391
  if (openProp === void 0) setUncontrolled(next);
15402
15392
  onOpenChange?.(next);
15403
- };
15393
+ }, [onOpenChange, openProp, uncontrolled]);
15394
+ const contextValue = useMemo23(
15395
+ () => ({
15396
+ open,
15397
+ toggle,
15398
+ contentId: `${reactId}-content`,
15399
+ triggerId: `${reactId}-trigger`,
15400
+ reduceMotion
15401
+ }),
15402
+ [open, reactId, reduceMotion, toggle]
15403
+ );
15404
15404
  const shared = {
15405
15405
  ...props,
15406
15406
  ref,
@@ -15408,98 +15408,98 @@ var CollapsibleRoot = forwardRef16(function CollapsibleRoot2({ open: openProp, d
15408
15408
  "data-refineui": "collapsible",
15409
15409
  className
15410
15410
  };
15411
- return /* @__PURE__ */ jsx78(
15412
- CollapsibleContext.Provider,
15413
- {
15414
- value: {
15415
- open,
15416
- toggle,
15417
- contentId: `${reactId}-content`,
15418
- triggerId: `${reactId}-trigger`,
15419
- reduceMotion
15420
- },
15421
- children: asChild ? /* @__PURE__ */ jsx78(Slot6, { ...shared, children }) : /* @__PURE__ */ jsx78("div", { ...shared, children })
15422
- }
15423
- );
15411
+ return /* @__PURE__ */ jsx78(CollapsibleContext.Provider, { value: contextValue, children: asChild ? /* @__PURE__ */ jsx78(Slot6, { ...shared, children }) : /* @__PURE__ */ jsx78("div", { ...shared, children }) });
15424
15412
  });
15425
- var CollapsibleTrigger = forwardRef16(function CollapsibleTrigger2({ asChild = false, onClick, className, children, ...props }, ref) {
15426
- const { open, toggle, contentId, triggerId } = useCollapsible();
15427
- const shared = {
15428
- ...props,
15429
- ref,
15430
- id: triggerId,
15431
- "aria-expanded": open,
15432
- "aria-controls": contentId,
15433
- "data-state": open ? "open" : "closed",
15434
- "data-refineui": "collapsible-trigger",
15413
+ var CollapsibleTrigger = forwardRef16(
15414
+ function CollapsibleTrigger2({
15415
+ asChild = false,
15416
+ onClick,
15435
15417
  className,
15436
- onClick: (event) => {
15437
- onClick?.(event);
15438
- if (!event.defaultPrevented) toggle();
15439
- }
15440
- };
15441
- if (asChild) return /* @__PURE__ */ jsx78(Slot6, { ...shared, children });
15442
- return /* @__PURE__ */ jsx78("button", { ...shared, type: "button", children });
15443
- });
15444
- var CollapsibleContent = forwardRef16(function CollapsibleContent2({ className, children, style, ...props }, ref) {
15445
- const { open, contentId, triggerId, reduceMotion } = useCollapsible();
15446
- const innerRef = useRef24(null);
15447
- const [size, setSize] = useState32({ height: 0, width: 0 });
15448
- useLayoutEffect14(() => {
15449
- const node = innerRef.current;
15450
- if (!node) return;
15451
- const measure = () => {
15452
- setSize({ height: node.scrollHeight, width: node.scrollWidth });
15453
- };
15454
- measure();
15455
- const observer = new ResizeObserver(measure);
15456
- observer.observe(node);
15457
- return () => observer.disconnect();
15458
- }, [children, open]);
15459
- const clipStyle = {
15460
- ["--refineui-collapsible-content-height"]: `${size.height}px`,
15461
- ["--refineui-collapsible-content-width"]: `${size.width}px`,
15462
- height: open ? size.height : 0,
15463
- overflow: "hidden",
15464
- transition: reduceMotion ? void 0 : `height ${semanticInteraction9.duration.panel} ${semanticInteraction9.easing.panel}`
15465
- };
15466
- return /* @__PURE__ */ jsx78(
15467
- "div",
15468
- {
15418
+ children,
15419
+ variant = "ghost",
15420
+ size,
15421
+ layout,
15422
+ fullWidth,
15423
+ type = "button",
15424
+ ...props
15425
+ }, ref) {
15426
+ const { open, toggle, contentId, triggerId } = useCollapsibleContext("CollapsibleTrigger");
15427
+ const shared = {
15469
15428
  ...props,
15470
15429
  ref,
15471
- id: contentId,
15472
- role: "region",
15473
- "aria-labelledby": triggerId,
15474
- "aria-hidden": !open,
15430
+ id: triggerId,
15431
+ "aria-expanded": open,
15432
+ "aria-controls": contentId,
15475
15433
  "data-state": open ? "open" : "closed",
15476
- "data-refineui": "collapsible-content",
15477
- style: clipStyle,
15478
- children: /* @__PURE__ */ jsx78("div", { ref: innerRef, className: clsx108(className), style, children })
15479
- }
15480
- );
15481
- });
15482
- var Collapsible = Object.assign(CollapsibleRoot, {
15483
- Root: CollapsibleRoot,
15484
- Trigger: CollapsibleTrigger,
15485
- Content: CollapsibleContent
15486
- });
15434
+ className,
15435
+ onClick: (event) => {
15436
+ onClick?.(event);
15437
+ if (!event.defaultPrevented) toggle();
15438
+ }
15439
+ };
15440
+ if (asChild) return /* @__PURE__ */ jsx78(Slot6, { ...shared, children });
15441
+ return /* @__PURE__ */ jsx78(
15442
+ Button,
15443
+ {
15444
+ ...shared,
15445
+ type,
15446
+ variant,
15447
+ size,
15448
+ layout,
15449
+ fullWidth,
15450
+ children
15451
+ }
15452
+ );
15453
+ }
15454
+ );
15455
+ var CollapsibleContent = forwardRef16(
15456
+ function CollapsibleContent2({ className, children, style, ...props }, ref) {
15457
+ const { open, contentId, triggerId, reduceMotion } = useCollapsibleContext("CollapsibleContent");
15458
+ const gridStyle = {
15459
+ display: "grid",
15460
+ gridTemplateRows: open ? "1fr" : "0fr",
15461
+ transition: reduceMotion ? void 0 : `grid-template-rows ${PANEL_HEIGHT_MS2}s ${PANEL_HEIGHT_EASE2}`
15462
+ };
15463
+ const innerMotionStyle = {
15464
+ opacity: open ? 1 : 0,
15465
+ transform: open ? "translate3d(0, 0, 0)" : "translate3d(0, calc(-1 * var(--refineui-spacing-size-x-small)), 0)",
15466
+ transition: reduceMotion ? void 0 : `opacity ${PANEL_CONTENT_MS2}s ${PANEL_CONTENT_EASE2}, transform ${PANEL_CONTENT_MS2}s ${PANEL_CONTENT_EASE2}`,
15467
+ pointerEvents: open ? void 0 : "none",
15468
+ ...style
15469
+ };
15470
+ return /* @__PURE__ */ jsx78(
15471
+ "div",
15472
+ {
15473
+ ...props,
15474
+ ref,
15475
+ id: contentId,
15476
+ role: "region",
15477
+ "aria-labelledby": triggerId,
15478
+ "aria-hidden": !open,
15479
+ "data-state": open ? "open" : "closed",
15480
+ "data-refineui": "collapsible-content",
15481
+ style: gridStyle,
15482
+ children: /* @__PURE__ */ jsx78("div", { className: collapsibleStyles.panelOuter, children: /* @__PURE__ */ jsx78("div", { className: clsx108(className), style: innerMotionStyle, children }) })
15483
+ }
15484
+ );
15485
+ }
15486
+ );
15487
15487
 
15488
15488
  // src/components/ContextMenu/ContextMenu.tsx
15489
15489
  import {
15490
15490
  createContext as createContext28,
15491
15491
  forwardRef as forwardRef17,
15492
- useCallback as useCallback22,
15492
+ useCallback as useCallback23,
15493
15493
  useContext as useContext32,
15494
15494
  useEffect as useEffect22,
15495
- useLayoutEffect as useLayoutEffect15,
15496
- useMemo as useMemo23,
15497
- useRef as useRef25,
15498
- useState as useState33
15495
+ useLayoutEffect as useLayoutEffect14,
15496
+ useMemo as useMemo24,
15497
+ useRef as useRef24,
15498
+ useState as useState34
15499
15499
  } from "react";
15500
15500
  import { createPortal as createPortal7 } from "react-dom";
15501
15501
  import { clsx as clsx109 } from "clsx";
15502
- import { componentSizes as componentSizes3, iconSizes as iconSizes24, semanticInteraction as semanticInteraction10 } from "@refineui/tokens";
15502
+ import { componentSizes as componentSizes3, iconSizes as iconSizes23, semanticInteraction as semanticInteraction10 } from "@refineui/tokens";
15503
15503
  import { motionMsToNumber as motionMsToNumber7 } from "@refineui/utilities/animation";
15504
15504
  import { Slot as Slot7 } from "@refineui/utilities/react";
15505
15505
  import { Fragment as Fragment5, jsx as jsx79, jsxs as jsxs33 } from "react/jsx-runtime";
@@ -15509,7 +15509,7 @@ var MenuContext2 = createContext28(null);
15509
15509
  var SubContext = createContext28(null);
15510
15510
  function useMenu() {
15511
15511
  const value = useContext32(MenuContext2);
15512
- if (!value) throw new Error("Context menu parts must be used inside ContextMenu.Root");
15512
+ if (!value) throw new Error("Context menu parts must be used within ContextMenu");
15513
15513
  return value;
15514
15514
  }
15515
15515
  function placeInView(element, x, y) {
@@ -15523,28 +15523,28 @@ function placeInView(element, x, y) {
15523
15523
  element.style.left = `${left}px`;
15524
15524
  element.style.top = `${top}px`;
15525
15525
  }
15526
- function ContextMenuRoot({ modal = true, onOpenChange, children }) {
15526
+ function ContextMenu({ modal = true, onOpenChange, children }) {
15527
15527
  void modal;
15528
- const [open, setOpen] = useState33(false);
15529
- const [point, setPoint] = useState33({ x: 0, y: 0 });
15530
- const openRef = useRef25(false);
15531
- const onOpenChangeRef = useRef25(onOpenChange);
15528
+ const [open, setOpen] = useState34(false);
15529
+ const [point, setPoint] = useState34({ x: 0, y: 0 });
15530
+ const openRef = useRef24(false);
15531
+ const onOpenChangeRef = useRef24(onOpenChange);
15532
15532
  openRef.current = open;
15533
15533
  onOpenChangeRef.current = onOpenChange;
15534
- const close = useCallback22(() => {
15534
+ const close = useCallback23(() => {
15535
15535
  if (!openRef.current) return;
15536
15536
  openRef.current = false;
15537
15537
  setOpen(false);
15538
15538
  onOpenChangeRef.current?.(false);
15539
15539
  }, []);
15540
- const openAt = useCallback22((x, y) => {
15540
+ const openAt = useCallback23((x, y) => {
15541
15541
  setPoint({ x, y });
15542
15542
  const wasOpen = openRef.current;
15543
15543
  openRef.current = true;
15544
15544
  setOpen(true);
15545
15545
  if (!wasOpen) onOpenChangeRef.current?.(true);
15546
15546
  }, []);
15547
- const value = useMemo23(() => ({ open, point, openAt, close }), [open, point, openAt, close]);
15547
+ const value = useMemo24(() => ({ open, point, openAt, close }), [open, point, openAt, close]);
15548
15548
  return /* @__PURE__ */ jsx79(MenuContext2.Provider, { value, children });
15549
15549
  }
15550
15550
  var ContextMenuTrigger = forwardRef17(function ContextMenuTrigger2({ asChild = false, onContextMenu, children, ...props }, ref) {
@@ -15568,9 +15568,9 @@ function ContextMenuPortal({ children }) {
15568
15568
  }
15569
15569
  var ContextMenuContent = forwardRef17(function ContextMenuContent2({ className, style, onPointerDown, children, ...props }, ref) {
15570
15570
  const { open, point, close } = useMenu();
15571
- const localRef = useRef25(null);
15572
- const [shouldRender, setShouldRender] = useState33(open);
15573
- const [isClosing, setIsClosing] = useState33(false);
15571
+ const localRef = useRef24(null);
15572
+ const [shouldRender, setShouldRender] = useState34(open);
15573
+ const [isClosing, setIsClosing] = useState34(false);
15574
15574
  useEffect22(() => {
15575
15575
  if (open) {
15576
15576
  setShouldRender(true);
@@ -15585,7 +15585,7 @@ var ContextMenuContent = forwardRef17(function ContextMenuContent2({ className,
15585
15585
  }, CLOSE_MS);
15586
15586
  return () => window.clearTimeout(timeout);
15587
15587
  }, [open, shouldRender]);
15588
- useLayoutEffect15(() => {
15588
+ useLayoutEffect14(() => {
15589
15589
  if (!shouldRender || !localRef.current) return;
15590
15590
  placeInView(localRef.current, point.x, point.y);
15591
15591
  }, [shouldRender, point.x, point.y]);
@@ -15687,7 +15687,7 @@ var ContextMenuItem = forwardRef17(function ContextMenuItem2({ disabled = false,
15687
15687
  "span",
15688
15688
  {
15689
15689
  className: menuStyles.iconWrap,
15690
- style: { width: iconSizes24.small, minWidth: iconSizes24.small, height: iconSizes24.small },
15690
+ style: { width: iconSizes23.small, minWidth: iconSizes23.small, height: iconSizes23.small },
15691
15691
  children: startIcon
15692
15692
  }
15693
15693
  ) : null,
@@ -15701,7 +15701,7 @@ var ContextMenuItem = forwardRef17(function ContextMenuItem2({ disabled = false,
15701
15701
  "span",
15702
15702
  {
15703
15703
  className: menuStyles.iconWrap,
15704
- style: { width: iconSizes24.small, minWidth: iconSizes24.small, height: iconSizes24.small },
15704
+ style: { width: iconSizes23.small, minWidth: iconSizes23.small, height: iconSizes23.small },
15705
15705
  children: endIcon
15706
15706
  }
15707
15707
  ) : null
@@ -15727,19 +15727,19 @@ var ContextMenuSeparator = forwardRef17(
15727
15727
  );
15728
15728
  }
15729
15729
  );
15730
- function ContextMenuSection({ className, children, ...props }) {
15731
- return /* @__PURE__ */ jsx79("div", { "data-refineui": "menu-section", className: clsx109(menuStyles.section, className), ...props, children: /* @__PURE__ */ jsx79("span", { className: menuStyles.sectionText, children }) });
15730
+ function ContextMenuLabel({ className, children, ...props }) {
15731
+ return /* @__PURE__ */ jsx79("div", { "data-refineui": "menu-label", className: clsx109(menuStyles.section, className), ...props, children: /* @__PURE__ */ jsx79("span", { className: menuStyles.sectionText, children }) });
15732
15732
  }
15733
15733
  function ContextMenuSub({ children }) {
15734
- const [open, setOpen] = useState33(false);
15735
- const triggerRef = useRef25(null);
15736
- const timer = useRef25(null);
15734
+ const [open, setOpen] = useState34(false);
15735
+ const triggerRef = useRef24(null);
15736
+ const timer = useRef24(null);
15737
15737
  const clear = () => {
15738
15738
  if (timer.current != null) window.clearTimeout(timer.current);
15739
15739
  timer.current = null;
15740
15740
  };
15741
15741
  useEffect22(() => clear, []);
15742
- const value = useMemo23(
15742
+ const value = useMemo24(
15743
15743
  () => ({
15744
15744
  open,
15745
15745
  triggerRef,
@@ -15758,7 +15758,7 @@ function ContextMenuSub({ children }) {
15758
15758
  }
15759
15759
  function useSub2() {
15760
15760
  const value = useContext32(SubContext);
15761
- if (!value) throw new Error("ContextMenu.SubTrigger must be used inside ContextMenu.Sub");
15761
+ if (!value) throw new Error("ContextMenuSubTrigger must be used within ContextMenuSub");
15762
15762
  return value;
15763
15763
  }
15764
15764
  var ContextMenuSubTrigger = forwardRef17(
@@ -15803,7 +15803,7 @@ var ContextMenuSubTrigger = forwardRef17(
15803
15803
  "span",
15804
15804
  {
15805
15805
  className: menuStyles.iconWrap,
15806
- style: { width: iconSizes24.small, minWidth: iconSizes24.small, height: iconSizes24.small },
15806
+ style: { width: iconSizes23.small, minWidth: iconSizes23.small, height: iconSizes23.small },
15807
15807
  children: startIcon
15808
15808
  }
15809
15809
  ) : null,
@@ -15815,8 +15815,8 @@ var ContextMenuSubTrigger = forwardRef17(
15815
15815
  "span",
15816
15816
  {
15817
15817
  className: menuStyles.iconWrap,
15818
- style: { width: iconSizes24.small, minWidth: iconSizes24.small, height: iconSizes24.small },
15819
- children: /* @__PURE__ */ jsx79(WebIcon, { name: "chevron-right", size: iconSizes24.small, color: "currentColor", "aria-hidden": true })
15818
+ style: { width: iconSizes23.small, minWidth: iconSizes23.small, height: iconSizes23.small },
15819
+ children: /* @__PURE__ */ jsx79(WebIcon, { name: "chevron-right", size: iconSizes23.small, color: "currentColor", "aria-hidden": true })
15820
15820
  }
15821
15821
  ) })
15822
15822
  ] }) });
@@ -15825,9 +15825,9 @@ var ContextMenuSubTrigger = forwardRef17(
15825
15825
  var ContextMenuSubContent = forwardRef17(
15826
15826
  function ContextMenuSubContent2({ className, style, onPointerDown, onMouseEnter, onMouseLeave, ...props }, ref) {
15827
15827
  const sub = useSub2();
15828
- const localRef = useRef25(null);
15829
- const [side, setSide] = useState33("right");
15830
- useLayoutEffect15(() => {
15828
+ const localRef = useRef24(null);
15829
+ const [side, setSide] = useState34("right");
15830
+ useLayoutEffect14(() => {
15831
15831
  const trigger = sub.triggerRef.current;
15832
15832
  const element = localRef.current;
15833
15833
  if (!sub.open || !trigger || !element) return;
@@ -15881,18 +15881,6 @@ var ContextMenuSubContent = forwardRef17(
15881
15881
  );
15882
15882
  }
15883
15883
  );
15884
- var ContextMenu = Object.assign(ContextMenuRoot, {
15885
- Root: ContextMenuRoot,
15886
- Trigger: ContextMenuTrigger,
15887
- Portal: ContextMenuPortal,
15888
- Content: ContextMenuContent,
15889
- Item: ContextMenuItem,
15890
- Section: ContextMenuSection,
15891
- Separator: ContextMenuSeparator,
15892
- Sub: ContextMenuSub,
15893
- SubTrigger: ContextMenuSubTrigger,
15894
- SubContent: ContextMenuSubContent
15895
- });
15896
15884
  export {
15897
15885
  Accordion,
15898
15886
  AccordionContent,
@@ -15964,7 +15952,6 @@ export {
15964
15952
  Chip,
15965
15953
  Collapsible,
15966
15954
  CollapsibleContent,
15967
- CollapsibleRoot,
15968
15955
  CollapsibleTrigger,
15969
15956
  Command,
15970
15957
  CommandDialog,
@@ -15980,9 +15967,8 @@ export {
15980
15967
  ContextMenu,
15981
15968
  ContextMenuContent,
15982
15969
  ContextMenuItem,
15970
+ ContextMenuLabel,
15983
15971
  ContextMenuPortal,
15984
- ContextMenuRoot,
15985
- ContextMenuSection,
15986
15972
  ContextMenuSeparator,
15987
15973
  ContextMenuSub,
15988
15974
  ContextMenuSubContent,
@@ -15998,7 +15984,6 @@ export {
15998
15984
  Divider,
15999
15985
  Drawer,
16000
15986
  DrawerBody,
16001
- DrawerClose,
16002
15987
  DrawerContent,
16003
15988
  DrawerDescription,
16004
15989
  DrawerFooter,
@@ -16050,9 +16035,9 @@ export {
16050
16035
  Menu,
16051
16036
  MenuDivider,
16052
16037
  MenuItem,
16038
+ MenuLabel,
16053
16039
  MenuList,
16054
16040
  MenuPopover,
16055
- MenuSection,
16056
16041
  MenuSub,
16057
16042
  MenuSubContent,
16058
16043
  MenuSubTrigger,
@@ -16109,7 +16094,6 @@ export {
16109
16094
  SelectPortal,
16110
16095
  SelectScrollDownButton,
16111
16096
  SelectScrollUpButton,
16112
- SelectSection,
16113
16097
  SelectSeparator,
16114
16098
  SelectTrigger,
16115
16099
  SelectValue,