@refineui/react 0.0.7 → 0.0.9

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
@@ -2937,13 +2937,26 @@ var selectStyles = {
2937
2937
  "border-refineui-hairline border-refineui-alias-border-default",
2938
2938
  "bg-refineui-alias-background-primary px-refineui-size-medium py-refineui-size-x-small",
2939
2939
  "text-refineui-alias-foreground-primary outline-none",
2940
- "transition-[color,background-color,border-color] duration-[var(--refineui-motion-duration-fast)]"
2940
+ "transition-[color,background-color,border-color,transform] duration-[var(--refineui-motion-duration-fast)] ease-[var(--refineui-motion-easing-ease-out)]"
2941
+ ),
2942
+ /** Ghost plate — same gap/radius as filled, no field border (Button ghost-like). */
2943
+ triggerGhost: clsx27(
2944
+ "box-border inline-flex cursor-pointer items-center justify-between",
2945
+ "gap-refineui-size-x-small rounded-refineui-large",
2946
+ "border-refineui-none border-transparent bg-transparent",
2947
+ "px-refineui-size-x-small py-refineui-size-xx-small",
2948
+ "text-refineui-alias-foreground-primary outline-none",
2949
+ "transition-[color,background-color,transform] duration-[var(--refineui-motion-duration-fast)] ease-[var(--refineui-motion-easing-ease-out)]"
2941
2950
  ),
2942
2951
  /** Flush shell — consumer / parent owns padding, radius, surface. */
2943
- triggerPlain: "box-border inline-flex cursor-pointer items-center outline-none",
2952
+ triggerPlain: clsx27(
2953
+ "box-border inline-flex cursor-pointer items-center outline-none",
2954
+ "transition-[transform] duration-[var(--refineui-motion-duration-fast)] ease-[var(--refineui-motion-easing-ease-out)]"
2955
+ ),
2944
2956
  triggerInner: "min-w-0 flex-1 overflow-hidden text-start",
2945
2957
  triggerOpen: "text-refineui-alias-foreground-primary",
2946
2958
  triggerDisabled: "cursor-not-allowed border-refineui-alias-border-disabled bg-refineui-alias-background-surface-disabled text-refineui-alias-foreground-disabled",
2959
+ triggerGhostDisabled: "cursor-not-allowed text-refineui-alias-foreground-disabled",
2947
2960
  triggerPlainDisabled: "cursor-not-allowed text-refineui-alias-foreground-disabled",
2948
2961
  value: "min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-start",
2949
2962
  iconWrap: "inline-flex size-refineui-icon-xsmall shrink-0 items-center justify-center",
@@ -3224,9 +3237,12 @@ function Select({
3224
3237
  }
3225
3238
  var SelectTrigger = forwardRef6(function SelectTrigger2(props, forwardedRef) {
3226
3239
  const { className, children, style, appearance = "filled", ...triggerRest } = props;
3227
- const { open, setOpen, triggerRef, onKeyDown, size, fullWidth, disabled, value, getLabelByValue } = useSelectCtx();
3228
- const hasLabel = Boolean(getLabelByValue(value));
3240
+ const { open, setOpen, triggerRef, onKeyDown, size, fullWidth, disabled, value } = useSelectCtx();
3241
+ const isPlaceholder = value === "";
3229
3242
  const isPlain = appearance === "plain";
3243
+ const isGhost = appearance === "ghost";
3244
+ const isFilled = appearance === "filled";
3245
+ const [pressed, setPressed] = useState5(false);
3230
3246
  const setRefs = useCallback4(
3231
3247
  (node) => {
3232
3248
  triggerRef.current = node;
@@ -3235,6 +3251,7 @@ var SelectTrigger = forwardRef6(function SelectTrigger2(props, forwardedRef) {
3235
3251
  },
3236
3252
  [forwardedRef, triggerRef]
3237
3253
  );
3254
+ const clearPressed = useCallback4(() => setPressed(false), []);
3238
3255
  return /* @__PURE__ */ jsxs4(
3239
3256
  "button",
3240
3257
  {
@@ -3247,20 +3264,31 @@ var SelectTrigger = forwardRef6(function SelectTrigger2(props, forwardedRef) {
3247
3264
  "data-appearance": appearance,
3248
3265
  "data-size": size,
3249
3266
  "data-state": open ? "open" : "closed",
3250
- "data-placeholder": hasLabel ? void 0 : "",
3267
+ "data-pressed": pressed ? "" : void 0,
3268
+ "data-placeholder": isPlaceholder ? "" : void 0,
3251
3269
  disabled,
3270
+ onPointerDown: (event) => {
3271
+ if (disabled || event.button !== 0) return;
3272
+ setPressed(true);
3273
+ },
3274
+ onPointerUp: clearPressed,
3275
+ onPointerLeave: clearPressed,
3276
+ onPointerCancel: clearPressed,
3252
3277
  onMouseDown: (event) => {
3253
3278
  event.preventDefault();
3279
+ if (disabled) return;
3254
3280
  setOpen(!open);
3255
3281
  triggerRef.current?.focus();
3256
3282
  },
3257
3283
  onKeyDown,
3258
3284
  className: clsx28(
3259
3285
  "data-[placeholder]:[&_[data-refineui-select-value]]:text-refineui-alias-foreground-placeholder",
3260
- isPlain ? selectStyles.triggerPlain : selectStyles.trigger,
3261
- !isPlain && selectTriggerSizeClass[size],
3262
- !isPlain && open && selectStyles.triggerOpen,
3263
- disabled && (isPlain ? selectStyles.triggerPlainDisabled : selectStyles.triggerDisabled),
3286
+ isPlain && selectStyles.triggerPlain,
3287
+ isGhost && selectStyles.triggerGhost,
3288
+ isFilled && selectStyles.trigger,
3289
+ (isFilled || isGhost) && selectTriggerSizeClass[size],
3290
+ isFilled && open && selectStyles.triggerOpen,
3291
+ disabled && (isPlain ? selectStyles.triggerPlainDisabled : isGhost ? selectStyles.triggerGhostDisabled : selectStyles.triggerDisabled),
3264
3292
  fullWidth && "w-full",
3265
3293
  className
3266
3294
  ),
@@ -3286,7 +3314,20 @@ SelectTrigger.displayName = "SelectTrigger";
3286
3314
  function SelectValue({ placeholder, className, ...props }) {
3287
3315
  const { value, getLabelByValue, placeholder: rootPlaceholder } = useSelectCtx();
3288
3316
  const label = getLabelByValue(value);
3289
- return /* @__PURE__ */ jsx22("span", { "data-refineui-select-value": "", className: clsx28(selectStyles.value, !label && "text-refineui-alias-foreground-placeholder", className), ...props, children: label || placeholder || rootPlaceholder || "Select..." });
3317
+ const isPlaceholder = value === "";
3318
+ return /* @__PURE__ */ jsx22(
3319
+ "span",
3320
+ {
3321
+ "data-refineui-select-value": "",
3322
+ className: clsx28(
3323
+ selectStyles.value,
3324
+ isPlaceholder && "text-refineui-alias-foreground-placeholder",
3325
+ className
3326
+ ),
3327
+ ...props,
3328
+ children: label || placeholder || rootPlaceholder || "Select..."
3329
+ }
3330
+ );
3290
3331
  }
3291
3332
  function SelectIcon({ children, className, ...props }) {
3292
3333
  return /* @__PURE__ */ jsx22("span", { className: clsx28(selectStyles.iconWrap, className), ...props, children: children ?? /* @__PURE__ */ jsx22(WebIcon, { name: "chevron-down", size: iconSizes4.xsmall }) });
@@ -7394,15 +7435,10 @@ var calendarStyles = {
7394
7435
  dayWrapEndpoint: "box-border flex size-refineui-calendar-day-size items-center justify-center bg-refineui-alias-background-primary-hover",
7395
7436
  dayWrapEndpointStart: "rounded-s-refineui-large",
7396
7437
  dayWrapEndpointEnd: "rounded-e-refineui-large",
7397
- root: "box-border flex w-fit min-w-refineui-calendar-min-width flex-col gap-refineui-size-none rounded-refineui-large bg-refineui-alias-background-primary p-refineui-size-x-large",
7438
+ root: "box-border flex w-fit min-w-refineui-calendar-min-width flex-col gap-refineui-size-none rounded-refineui-xx-large border-refineui-thin border-refineui-alias-border-default bg-refineui-alias-background-primary p-refineui-size-x-large",
7398
7439
  header: "flex w-full min-w-0 items-center justify-between pb-refineui-size-large",
7399
7440
  navButton: "shrink-0 text-refineui-alias-foreground-primary",
7400
- captionButton: clsx58(
7401
- "shrink-0",
7402
- "border-refineui-none border-transparent bg-transparent",
7403
- "px-refineui-size-x-small py-refineui-size-xx-small",
7404
- "text-refineui-alias-foreground-primary"
7405
- ),
7441
+ captionButton: "shrink-0",
7406
7442
  body: "flex flex-col gap-refineui-size-small",
7407
7443
  weekday: clsx58(
7408
7444
  componentTextClass(componentTypographyTokens.calendar.weekday),
@@ -7431,12 +7467,15 @@ function normalizeRange(start, end) {
7431
7467
  function getWeekdayLabels(weekStartsOn) {
7432
7468
  return [...WEEKDAYS.slice(weekStartsOn), ...WEEKDAYS.slice(0, weekStartsOn)];
7433
7469
  }
7434
- function formatMonthName(year, month) {
7470
+ function formatMonthLabel(year, month) {
7471
+ return new Intl.DateTimeFormat("en-US", { month: "short" }).format(new Date(year, month, 1));
7472
+ }
7473
+ function formatMonthNameLong(year, month) {
7435
7474
  return new Intl.DateTimeFormat("en-US", { month: "long" }).format(new Date(year, month, 1));
7436
7475
  }
7437
7476
  var MONTH_LABELS = Array.from(
7438
7477
  { length: MONTH_COUNT },
7439
- (_, monthIndex) => formatMonthName(2e3, monthIndex)
7478
+ (_, monthIndex) => formatMonthLabel(2e3, monthIndex)
7440
7479
  );
7441
7480
  function yearOptionsForView(viewYear) {
7442
7481
  const referenceYear = (/* @__PURE__ */ new Date()).getFullYear();
@@ -7457,16 +7496,16 @@ function CalendarCaptionSelect({
7457
7496
  children
7458
7497
  }) {
7459
7498
  return /* @__PURE__ */ jsxs16(Select, { value, onValueChange, "aria-label": ariaLabel, size: "sm", children: [
7460
- /* @__PURE__ */ jsxs16(
7499
+ /* @__PURE__ */ jsx45(
7461
7500
  SelectTrigger,
7462
7501
  {
7463
- appearance: "plain",
7502
+ appearance: "ghost",
7464
7503
  "data-calendar-header": header,
7465
- className: calendarStyles.captionButton,
7466
- children: [
7467
- " ",
7468
- /* @__PURE__ */ jsx45(SelectValue, { placeholder })
7469
- ]
7504
+ className: clsx59(
7505
+ calendarStyles.captionButton,
7506
+ header === "caption-year" && "tabular-nums"
7507
+ ),
7508
+ children: /* @__PURE__ */ jsx45(SelectValue, { placeholder })
7470
7509
  }
7471
7510
  ),
7472
7511
  /* @__PURE__ */ jsx45(SelectPortal, { children: /* @__PURE__ */ jsx45(SelectContent, { children: /* @__PURE__ */ jsx45(SelectGroup, { children }) }) })
@@ -7522,7 +7561,9 @@ function Calendar({
7522
7561
  const cells = getMonthGrid(year, month, weekStartsOn);
7523
7562
  const weeks = chunkWeeks(cells);
7524
7563
  const weekdayLabels = getWeekdayLabels(weekStartsOn);
7525
- const monthName = formatMonthName(year, month);
7564
+ const monthLabel = formatMonthLabel(year, month);
7565
+ const monthNameLong = formatMonthNameLong(year, month);
7566
+ const yearOptions = yearOptionsForView(year);
7526
7567
  const getDateFromCell = (d, monthOffset) => new Date(year, month + monthOffset, d);
7527
7568
  const setRange = (start, end) => {
7528
7569
  if (onRangeChange) onRangeChange(start, end);
@@ -7713,8 +7754,8 @@ function Calendar({
7713
7754
  CalendarCaptionSelect,
7714
7755
  {
7715
7756
  value: String(month),
7716
- placeholder: monthName,
7717
- ariaLabel: `Month: ${monthName}`,
7757
+ placeholder: monthLabel,
7758
+ ariaLabel: `Month: ${monthNameLong}`,
7718
7759
  header: "caption-month",
7719
7760
  onValueChange: (nextMonth) => {
7720
7761
  setView(new Date(year, Number.parseInt(nextMonth, 10), 1));
@@ -7732,7 +7773,7 @@ function Calendar({
7732
7773
  onValueChange: (nextYear) => {
7733
7774
  setView(new Date(Number.parseInt(nextYear, 10), month, 1));
7734
7775
  },
7735
- children: yearOptionsForView(year).map((yearOption) => /* @__PURE__ */ jsx45(SelectItem, { value: String(yearOption), children: String(yearOption) }, yearOption))
7776
+ children: yearOptions.map((yearOption) => /* @__PURE__ */ jsx45(SelectItem, { value: String(yearOption), children: String(yearOption) }, yearOption))
7736
7777
  }
7737
7778
  ),
7738
7779
  /* @__PURE__ */ jsx45(
@@ -8191,7 +8232,7 @@ import {
8191
8232
  useState as useState15
8192
8233
  } from "react";
8193
8234
  import { createPortal as createPortal3 } from "react-dom";
8194
- import { iconSizes as iconSizes13, semanticInteraction as semanticInteraction4 } from "@refineui/tokens";
8235
+ import { semanticInteraction as semanticInteraction4 } from "@refineui/tokens";
8195
8236
  import { motionMsToNumber as motionMsToNumber2 } from "@refineui/utilities/animation";
8196
8237
  import { resolveColorTokenValue as resolveColorTokenValue6 } from "@refineui/utilities/color";
8197
8238
  import { acquireBodyScrollLock as acquireBodyScrollLock2 } from "@refineui/utilities/react";
@@ -8445,7 +8486,6 @@ function DrawerContent({
8445
8486
  function DrawerHeader({
8446
8487
  className,
8447
8488
  children,
8448
- showClose = true,
8449
8489
  actions,
8450
8490
  ...props
8451
8491
  }) {
@@ -8461,8 +8501,7 @@ function DrawerHeader({
8461
8501
  ...props,
8462
8502
  children: /* @__PURE__ */ jsxs18("div", { className: drawerStyles.headerMain, children: [
8463
8503
  /* @__PURE__ */ jsx52("div", { className: drawerStyles.headerMainText, children }),
8464
- hasActions ? /* @__PURE__ */ jsx52("div", { className: drawerStyles.headerActions, children: actions }) : null,
8465
- showClose ? /* @__PURE__ */ jsx52(DrawerClose, {}) : null
8504
+ hasActions ? /* @__PURE__ */ jsx52("div", { className: drawerStyles.headerActions, children: actions }) : null
8466
8505
  ] })
8467
8506
  }
8468
8507
  );
@@ -8541,36 +8580,6 @@ function DrawerFooter({ className, ...props }) {
8541
8580
  }
8542
8581
  );
8543
8582
  }
8544
- function DrawerClose({
8545
- children,
8546
- onClick,
8547
- className,
8548
- type = "button",
8549
- variant,
8550
- size,
8551
- layout,
8552
- ...props
8553
- }) {
8554
- const { setOpen } = useDrawerContext("DrawerClose");
8555
- const iconOnly = children == null;
8556
- return /* @__PURE__ */ jsx52(
8557
- Button,
8558
- {
8559
- ...props,
8560
- type,
8561
- variant: variant ?? (iconOnly ? "ghost" : "outline"),
8562
- size: size ?? "md",
8563
- layout: layout ?? (iconOnly ? "icon" : "label"),
8564
- "aria-label": iconOnly ? "Close" : void 0,
8565
- className,
8566
- onClick: (e) => {
8567
- onClick?.(e);
8568
- if (!e.defaultPrevented) setOpen(false);
8569
- },
8570
- children: iconOnly ? /* @__PURE__ */ jsx52(WebIcon, { name: "dismiss", size: iconSizes13.xlarge, color: "currentColor", iconStyle: "regular", "aria-hidden": true }) : children
8571
- }
8572
- );
8573
- }
8574
8583
 
8575
8584
  // src/components/Dropdown/Dropdown.tsx
8576
8585
  import { clsx as clsx70 } from "clsx";
@@ -8585,7 +8594,7 @@ import {
8585
8594
  useState as useState16
8586
8595
  } from "react";
8587
8596
  import { createPortal as createPortal4 } from "react-dom";
8588
- import { iconSizes as iconSizes14, spacings as spacings2, zIndex } from "@refineui/tokens";
8597
+ import { iconSizes as iconSizes13, spacings as spacings2, zIndex } from "@refineui/tokens";
8589
8598
  import { resolveColorTokenValue as resolveColorTokenValue7 } from "@refineui/utilities/color";
8590
8599
 
8591
8600
  // src/components/Dropdown/style.ts
@@ -9208,7 +9217,7 @@ function DropdownSubTrigger({
9208
9217
  WebIcon,
9209
9218
  {
9210
9219
  name: "chevron-right",
9211
- size: iconSizes14.small,
9220
+ size: iconSizes13.small,
9212
9221
  color: "currentColor",
9213
9222
  "aria-hidden": true,
9214
9223
  className: "ms-auto shrink-0"
@@ -9416,7 +9425,7 @@ function FieldError({ className, ...props }) {
9416
9425
 
9417
9426
  // src/components/Link/Link.tsx
9418
9427
  import { clsx as clsx74 } from "clsx";
9419
- import { iconSizes as iconSizes15 } from "@refineui/tokens";
9428
+ import { iconSizes as iconSizes14 } from "@refineui/tokens";
9420
9429
 
9421
9430
  // src/components/Link/style.ts
9422
9431
  var linkStyles = {
@@ -9454,7 +9463,7 @@ function Link({
9454
9463
  ...props,
9455
9464
  children: [
9456
9465
  children,
9457
- showOpen && /* @__PURE__ */ jsx57(WebIcon, { name: "open", size: iconSizes15.large, color: "currentColor" })
9466
+ showOpen && /* @__PURE__ */ jsx57(WebIcon, { name: "open", size: iconSizes14.large, color: "currentColor" })
9458
9467
  ]
9459
9468
  }
9460
9469
  );
@@ -9473,7 +9482,7 @@ import {
9473
9482
  useState as useState17
9474
9483
  } from "react";
9475
9484
  import { createPortal as createPortal5 } from "react-dom";
9476
- import { iconSizes as iconSizes16, semanticInteraction as semanticInteraction5, spacings as spacings3, zIndex as zIndex2 } from "@refineui/tokens";
9485
+ import { iconSizes as iconSizes15, semanticInteraction as semanticInteraction5, spacings as spacings3, zIndex as zIndex2 } from "@refineui/tokens";
9477
9486
  import { motionMsToNumber as motionMsToNumber3 } from "@refineui/utilities/animation";
9478
9487
  import { Slot as Slot2, getMergeableTriggerChild as getMergeableTriggerChild2 } from "@refineui/utilities/react";
9479
9488
 
@@ -9755,9 +9764,9 @@ function MenuItem({
9755
9764
  {
9756
9765
  className: menuStyles.iconWrap,
9757
9766
  style: {
9758
- width: iconSizes16.small,
9759
- minWidth: iconSizes16.small,
9760
- height: iconSizes16.small
9767
+ width: iconSizes15.small,
9768
+ minWidth: iconSizes15.small,
9769
+ height: iconSizes15.small
9761
9770
  },
9762
9771
  children: startIcon
9763
9772
  }
@@ -9782,9 +9791,9 @@ function MenuItem({
9782
9791
  {
9783
9792
  className: menuStyles.iconWrap,
9784
9793
  style: {
9785
- width: iconSizes16.small,
9786
- minWidth: iconSizes16.small,
9787
- height: iconSizes16.small
9794
+ width: iconSizes15.small,
9795
+ minWidth: iconSizes15.small,
9796
+ height: iconSizes15.small
9788
9797
  },
9789
9798
  children: endIcon
9790
9799
  }
@@ -9936,9 +9945,9 @@ function MenuSubTrigger({
9936
9945
  {
9937
9946
  className: menuStyles.iconWrap,
9938
9947
  style: {
9939
- width: iconSizes16.small,
9940
- minWidth: iconSizes16.small,
9941
- height: iconSizes16.small
9948
+ width: iconSizes15.small,
9949
+ minWidth: iconSizes15.small,
9950
+ height: iconSizes15.small
9942
9951
  },
9943
9952
  children: startIcon
9944
9953
  }
@@ -9961,11 +9970,11 @@ function MenuSubTrigger({
9961
9970
  {
9962
9971
  className: menuStyles.iconWrap,
9963
9972
  style: {
9964
- width: iconSizes16.small,
9965
- minWidth: iconSizes16.small,
9966
- height: iconSizes16.small
9973
+ width: iconSizes15.small,
9974
+ minWidth: iconSizes15.small,
9975
+ height: iconSizes15.small
9967
9976
  },
9968
- children: /* @__PURE__ */ jsx58(WebIcon, { name: "chevron-right", size: iconSizes16.small, color: "currentColor", "aria-hidden": true })
9977
+ children: /* @__PURE__ */ jsx58(WebIcon, { name: "chevron-right", size: iconSizes15.small, color: "currentColor", "aria-hidden": true })
9969
9978
  }
9970
9979
  ) })
9971
9980
  ] })
@@ -10088,7 +10097,7 @@ import {
10088
10097
  useRef as useRef15,
10089
10098
  useState as useState18
10090
10099
  } from "react";
10091
- import { iconSizes as iconSizes17, semanticInteraction as semanticInteraction6 } from "@refineui/tokens";
10100
+ import { iconSizes as iconSizes16, semanticInteraction as semanticInteraction6 } from "@refineui/tokens";
10092
10101
  import { motionMsToNumber as motionMsToNumber4 } from "@refineui/utilities/animation";
10093
10102
 
10094
10103
  // src/components/NavigationMenu/style.ts
@@ -10436,7 +10445,7 @@ function NavigationMenuTrigger({
10436
10445
  WebIcon,
10437
10446
  {
10438
10447
  name: "chevron-down",
10439
- size: iconSizes17.xsmall,
10448
+ size: iconSizes16.xsmall,
10440
10449
  color: "currentColor",
10441
10450
  className: clsx78(
10442
10451
  navigationMenuStyles.chevron,
@@ -11034,7 +11043,7 @@ function useSidebarPeek() {
11034
11043
 
11035
11044
  // src/components/Pagination/Pagination.tsx
11036
11045
  import { clsx as clsx84 } from "clsx";
11037
- import { iconSizes as iconSizes18 } from "@refineui/tokens";
11046
+ import { iconSizes as iconSizes17 } from "@refineui/tokens";
11038
11047
  import { resolveColorTokenValue as resolveColorTokenValue9 } from "@refineui/utilities/color";
11039
11048
 
11040
11049
  // src/components/Pagination/style.ts
@@ -11097,7 +11106,7 @@ function PaginationNavButton({
11097
11106
  WebIcon,
11098
11107
  {
11099
11108
  name: isPrev ? "chevron-left" : "chevron-right",
11100
- size: iconSizes18.medium,
11109
+ size: iconSizes17.medium,
11101
11110
  color: iconColor,
11102
11111
  fallback: isPrev ? "\u2039" : "\u203A"
11103
11112
  }
@@ -11124,7 +11133,7 @@ function PaginationEllipsis({ className, ...props }) {
11124
11133
  WebIcon,
11125
11134
  {
11126
11135
  name: "more-horizontal",
11127
- size: iconSizes18.medium,
11136
+ size: iconSizes17.medium,
11128
11137
  color: resolveColorTokenValue9(componentColorTokens.pagination.navIcon.default),
11129
11138
  fallback: "\u2026"
11130
11139
  }
@@ -11584,7 +11593,7 @@ function Slider({
11584
11593
 
11585
11594
  // src/components/Carousel/Carousel.tsx
11586
11595
  import { clsx as clsx89 } from "clsx";
11587
- import { iconSizes as iconSizes19 } from "@refineui/tokens";
11596
+ import { iconSizes as iconSizes18 } from "@refineui/tokens";
11588
11597
  import {
11589
11598
  Children as Children6,
11590
11599
  cloneElement as cloneElement2,
@@ -11948,7 +11957,7 @@ function CarouselPrevious({ className, disabled, onClick, ...props }) {
11948
11957
  WebIcon,
11949
11958
  {
11950
11959
  name: "chevron-left",
11951
- size: iconSizes19.small,
11960
+ size: iconSizes18.small,
11952
11961
  color: "currentColor",
11953
11962
  iconStyle: "filled",
11954
11963
  fallback: "\u2039"
@@ -11980,7 +11989,7 @@ function CarouselNext({ className, disabled, onClick, ...props }) {
11980
11989
  WebIcon,
11981
11990
  {
11982
11991
  name: "chevron-right",
11983
- size: iconSizes19.small,
11992
+ size: iconSizes18.small,
11984
11993
  color: "currentColor",
11985
11994
  iconStyle: "filled",
11986
11995
  fallback: "\u203A"
@@ -12250,7 +12259,7 @@ function BubbleReactions({
12250
12259
 
12251
12260
  // src/components/Stepper/Stepper.tsx
12252
12261
  import { clsx as clsx93 } from "clsx";
12253
- import { iconSizes as iconSizes20 } from "@refineui/tokens";
12262
+ import { iconSizes as iconSizes19 } from "@refineui/tokens";
12254
12263
  import {
12255
12264
  createContext as createContext23,
12256
12265
  useCallback as useCallback18,
@@ -12519,7 +12528,7 @@ function StepperIndicator({ className, children, ...props }) {
12519
12528
  WebIcon,
12520
12529
  {
12521
12530
  name: "checkmark",
12522
- size: iconSizes20.xsmall,
12531
+ size: iconSizes19.xsmall,
12523
12532
  color: "currentColor",
12524
12533
  iconStyle: "filled",
12525
12534
  fallback: "\u2713",
@@ -13139,7 +13148,7 @@ function ResizableHandle({
13139
13148
  // src/components/SpinButton/SpinButton.tsx
13140
13149
  import { clsx as clsx96 } from "clsx";
13141
13150
  import { useEffect as useEffect17, useState as useState25 } from "react";
13142
- import { iconSizes as iconSizes21 } from "@refineui/tokens";
13151
+ import { iconSizes as iconSizes20 } from "@refineui/tokens";
13143
13152
 
13144
13153
  // src/components/SpinButton/style.ts
13145
13154
  var spinButtonStyles = {
@@ -13348,7 +13357,7 @@ function SpinButton({
13348
13357
  WebIcon,
13349
13358
  {
13350
13359
  name: "chevron-up",
13351
- size: iconSizes21.xsmall,
13360
+ size: iconSizes20.xsmall,
13352
13361
  color: "currentColor",
13353
13362
  iconStyle: "filled",
13354
13363
  fallback: "\u25B2"
@@ -13372,7 +13381,7 @@ function SpinButton({
13372
13381
  WebIcon,
13373
13382
  {
13374
13383
  name: "chevron-down",
13375
- size: iconSizes21.xsmall,
13384
+ size: iconSizes20.xsmall,
13376
13385
  color: "currentColor",
13377
13386
  iconStyle: "filled",
13378
13387
  fallback: "\u25BC"
@@ -13400,7 +13409,7 @@ import {
13400
13409
  useSyncExternalStore
13401
13410
  } from "react";
13402
13411
  import { createPortal as createPortal6 } from "react-dom";
13403
- import { iconSizes as iconSizes22, spacings as spacings5 } from "@refineui/tokens";
13412
+ import { iconSizes as iconSizes21, spacings as spacings5 } from "@refineui/tokens";
13404
13413
  import { motionMsToNumber as motionMsToNumber6 } from "@refineui/utilities/animation";
13405
13414
  import { resolveColorTokenValue as resolveColorTokenValue11 } from "@refineui/utilities/color";
13406
13415
 
@@ -13627,7 +13636,7 @@ var Toast = forwardRef15(function Toast2(props, ref) {
13627
13636
  WebIcon,
13628
13637
  {
13629
13638
  name: resolvedIconName,
13630
- size: iconSizes22.medium,
13639
+ size: iconSizes21.medium,
13631
13640
  color: "currentColor",
13632
13641
  iconStyle: "filled"
13633
13642
  }
@@ -13973,7 +13982,7 @@ function toExpandedSet(value) {
13973
13982
 
13974
13983
  // src/components/Tree/style.ts
13975
13984
  import { clsx as clsx99 } from "clsx";
13976
- import { iconSizes as iconSizes23 } from "@refineui/tokens";
13985
+ import { iconSizes as iconSizes22 } from "@refineui/tokens";
13977
13986
  var treeStyles = {
13978
13987
  root: "m-0 flex list-none flex-col gap-px p-0",
13979
13988
  item: "m-0 list-none p-0",
@@ -14001,9 +14010,9 @@ var treeStyles = {
14001
14010
  label: "min-w-0 flex-1 truncate text-start"
14002
14011
  };
14003
14012
  var treeIconSize = {
14004
- sm: iconSizes23.xxsmall,
14005
- md: iconSizes23.xsmall,
14006
- lg: iconSizes23.xsmall
14013
+ sm: iconSizes22.xxsmall,
14014
+ md: iconSizes22.xsmall,
14015
+ lg: iconSizes22.xsmall
14007
14016
  };
14008
14017
  var treeItemTypo = {
14009
14018
  sm: sizedComponentTextClass(componentTypographyTokens.tree.item, "sm"),
@@ -15443,7 +15452,18 @@ var Collapsible = forwardRef16(function Collapsible2({ open: openProp, defaultOp
15443
15452
  return /* @__PURE__ */ jsx78(CollapsibleContext.Provider, { value: contextValue, children: asChild ? /* @__PURE__ */ jsx78(Slot6, { ...shared, children }) : /* @__PURE__ */ jsx78("div", { ...shared, children }) });
15444
15453
  });
15445
15454
  var CollapsibleTrigger = forwardRef16(
15446
- function CollapsibleTrigger2({ asChild = false, onClick, className, children, ...props }, ref) {
15455
+ function CollapsibleTrigger2({
15456
+ asChild = false,
15457
+ onClick,
15458
+ className,
15459
+ children,
15460
+ variant = "ghost",
15461
+ size,
15462
+ layout,
15463
+ fullWidth,
15464
+ type = "button",
15465
+ ...props
15466
+ }, ref) {
15447
15467
  const { open, toggle, contentId, triggerId } = useCollapsibleContext("CollapsibleTrigger");
15448
15468
  const shared = {
15449
15469
  ...props,
@@ -15452,7 +15472,6 @@ var CollapsibleTrigger = forwardRef16(
15452
15472
  "aria-expanded": open,
15453
15473
  "aria-controls": contentId,
15454
15474
  "data-state": open ? "open" : "closed",
15455
- "data-refineui": "collapsible-trigger",
15456
15475
  className,
15457
15476
  onClick: (event) => {
15458
15477
  onClick?.(event);
@@ -15460,7 +15479,18 @@ var CollapsibleTrigger = forwardRef16(
15460
15479
  }
15461
15480
  };
15462
15481
  if (asChild) return /* @__PURE__ */ jsx78(Slot6, { ...shared, children });
15463
- return /* @__PURE__ */ jsx78("button", { ...shared, type: "button", children });
15482
+ return /* @__PURE__ */ jsx78(
15483
+ Button,
15484
+ {
15485
+ ...shared,
15486
+ type,
15487
+ variant,
15488
+ size,
15489
+ layout,
15490
+ fullWidth,
15491
+ children
15492
+ }
15493
+ );
15464
15494
  }
15465
15495
  );
15466
15496
  var CollapsibleContent = forwardRef16(
@@ -15510,7 +15540,7 @@ import {
15510
15540
  } from "react";
15511
15541
  import { createPortal as createPortal7 } from "react-dom";
15512
15542
  import { clsx as clsx109 } from "clsx";
15513
- import { componentSizes as componentSizes3, iconSizes as iconSizes24, semanticInteraction as semanticInteraction10 } from "@refineui/tokens";
15543
+ import { componentSizes as componentSizes3, iconSizes as iconSizes23, semanticInteraction as semanticInteraction10 } from "@refineui/tokens";
15514
15544
  import { motionMsToNumber as motionMsToNumber7 } from "@refineui/utilities/animation";
15515
15545
  import { Slot as Slot7 } from "@refineui/utilities/react";
15516
15546
  import { Fragment as Fragment5, jsx as jsx79, jsxs as jsxs33 } from "react/jsx-runtime";
@@ -15698,7 +15728,7 @@ var ContextMenuItem = forwardRef17(function ContextMenuItem2({ disabled = false,
15698
15728
  "span",
15699
15729
  {
15700
15730
  className: menuStyles.iconWrap,
15701
- style: { width: iconSizes24.small, minWidth: iconSizes24.small, height: iconSizes24.small },
15731
+ style: { width: iconSizes23.small, minWidth: iconSizes23.small, height: iconSizes23.small },
15702
15732
  children: startIcon
15703
15733
  }
15704
15734
  ) : null,
@@ -15712,7 +15742,7 @@ var ContextMenuItem = forwardRef17(function ContextMenuItem2({ disabled = false,
15712
15742
  "span",
15713
15743
  {
15714
15744
  className: menuStyles.iconWrap,
15715
- style: { width: iconSizes24.small, minWidth: iconSizes24.small, height: iconSizes24.small },
15745
+ style: { width: iconSizes23.small, minWidth: iconSizes23.small, height: iconSizes23.small },
15716
15746
  children: endIcon
15717
15747
  }
15718
15748
  ) : null
@@ -15814,7 +15844,7 @@ var ContextMenuSubTrigger = forwardRef17(
15814
15844
  "span",
15815
15845
  {
15816
15846
  className: menuStyles.iconWrap,
15817
- style: { width: iconSizes24.small, minWidth: iconSizes24.small, height: iconSizes24.small },
15847
+ style: { width: iconSizes23.small, minWidth: iconSizes23.small, height: iconSizes23.small },
15818
15848
  children: startIcon
15819
15849
  }
15820
15850
  ) : null,
@@ -15826,8 +15856,8 @@ var ContextMenuSubTrigger = forwardRef17(
15826
15856
  "span",
15827
15857
  {
15828
15858
  className: menuStyles.iconWrap,
15829
- style: { width: iconSizes24.small, minWidth: iconSizes24.small, height: iconSizes24.small },
15830
- children: /* @__PURE__ */ jsx79(WebIcon, { name: "chevron-right", size: iconSizes24.small, color: "currentColor", "aria-hidden": true })
15859
+ style: { width: iconSizes23.small, minWidth: iconSizes23.small, height: iconSizes23.small },
15860
+ children: /* @__PURE__ */ jsx79(WebIcon, { name: "chevron-right", size: iconSizes23.small, color: "currentColor", "aria-hidden": true })
15831
15861
  }
15832
15862
  ) })
15833
15863
  ] }) });
@@ -15995,7 +16025,6 @@ export {
15995
16025
  Divider,
15996
16026
  Drawer,
15997
16027
  DrawerBody,
15998
- DrawerClose,
15999
16028
  DrawerContent,
16000
16029
  DrawerDescription,
16001
16030
  DrawerFooter,