@underverse-ui/underverse 0.2.57 → 0.2.59

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
@@ -253,7 +253,7 @@ var Button = (0, import_react.forwardRef)(
253
253
  gradient = false,
254
254
  ...rest
255
255
  }, ref) => {
256
- const baseStyles = asContainer ? "relative inline-flex justify-center rounded-xl font-medium transition-colors duration-150 ease-soft outline-none focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background active:translate-y-px" : "relative inline-flex items-center justify-center gap-2 rounded-xl font-medium overflow-hidden transition-colors duration-150 ease-soft outline-none focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background active:translate-y-px";
256
+ const baseStyles = asContainer ? "relative inline-flex justify-center rounded-full font-medium transition-colors duration-150 ease-soft outline-none focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background active:translate-y-px" : "relative inline-flex items-center justify-center gap-2 rounded-full font-medium overflow-hidden transition-colors duration-150 ease-soft outline-none focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background active:translate-y-px";
257
257
  const finalVariant = gradient ? "gradient" : variant;
258
258
  const variantStyle = VARIANT_STYLES_BTN[finalVariant] || VARIANT_STYLES_BTN.default;
259
259
  const sizeStyle = SIZE_STYLES_BTN[size] || SIZE_STYLES_BTN.md;
@@ -1160,7 +1160,7 @@ var Input = (0, import_react3.forwardRef)(
1160
1160
  setIsFocused(false);
1161
1161
  onBlurProp?.(e);
1162
1162
  };
1163
- const radiusClass = size === "sm" ? "rounded-lg" : "rounded-xl";
1163
+ const radiusClass = size === "sm" ? "rounded-full" : "rounded-full";
1164
1164
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: cn("w-full group", containerSpacing), children: [
1165
1165
  label && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex items-center justify-between", children: [
1166
1166
  /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
@@ -1571,7 +1571,7 @@ var Textarea = (0, import_react3.forwardRef)(
1571
1571
  onFocus: () => setIsFocused(true),
1572
1572
  onBlur: () => setIsFocused(false),
1573
1573
  className: cn(
1574
- "w-full rounded-xl px-4 py-3 text-sm text-foreground transition-all duration-200",
1574
+ "w-full rounded-full px-4 py-3 text-sm text-foreground transition-all duration-200",
1575
1575
  "placeholder:text-muted-foreground focus:outline-none min-h-20",
1576
1576
  "disabled:cursor-not-allowed disabled:opacity-50",
1577
1577
  variantStyles6[variant],
@@ -1642,14 +1642,14 @@ var TagInput = (0, import_react4.forwardRef)(
1642
1642
  button: "h-7 text-xs px-2"
1643
1643
  },
1644
1644
  md: {
1645
- container: "min-h-10 p-2 gap-1.5 rounded-xl",
1645
+ container: "min-h-10 p-2 gap-1.5 rounded-2xl",
1646
1646
  input: "text-sm",
1647
1647
  tag: "px-2 py-1 text-sm gap-1.5 rounded-lg",
1648
1648
  tagIcon: "h-3.5 w-3.5",
1649
1649
  button: "h-8 text-sm px-3"
1650
1650
  },
1651
1651
  lg: {
1652
- container: "min-h-12 p-2.5 gap-2 rounded-xl",
1652
+ container: "min-h-12 p-2.5 gap-2 rounded-2xl",
1653
1653
  input: "text-base",
1654
1654
  tag: "px-2.5 py-1.5 text-base gap-2 rounded-lg",
1655
1655
  tagIcon: "h-4 w-4",
@@ -1936,7 +1936,7 @@ var Textarea2 = (0, import_react5.forwardRef)(
1936
1936
  onFocus: () => setIsFocused(true),
1937
1937
  onBlur: () => setIsFocused(false),
1938
1938
  className: cn(
1939
- "w-full rounded-xl transition-all duration-200 ease-soft resize-y",
1939
+ "w-full rounded-2xl transition-all duration-200 ease-soft resize-y",
1940
1940
  "text-foreground placeholder:text-muted-foreground",
1941
1941
  "focus:outline-none shadow-sm focus:shadow-md",
1942
1942
  "backdrop-blur-sm",
@@ -2845,19 +2845,25 @@ var Modal = ({
2845
2845
  setIsMounted(true);
2846
2846
  return () => setIsMounted(false);
2847
2847
  }, []);
2848
+ const animationRef = React11.useRef(false);
2848
2849
  React11.useEffect(() => {
2849
2850
  if (isOpen) {
2851
+ if (animationRef.current) return;
2852
+ animationRef.current = true;
2850
2853
  setIsVisible(true);
2851
2854
  setIsAnimating(true);
2852
2855
  requestAnimationFrame(() => {
2853
2856
  setIsAnimating(false);
2854
2857
  });
2855
- } else if (isVisible) {
2856
- setIsAnimating(true);
2857
- const hideTimer = setTimeout(() => {
2858
- setIsVisible(false);
2859
- }, 200);
2860
- return () => clearTimeout(hideTimer);
2858
+ } else {
2859
+ animationRef.current = false;
2860
+ if (isVisible) {
2861
+ setIsAnimating(true);
2862
+ const hideTimer = setTimeout(() => {
2863
+ setIsVisible(false);
2864
+ }, 200);
2865
+ return () => clearTimeout(hideTimer);
2866
+ }
2861
2867
  }
2862
2868
  }, [isOpen, isVisible]);
2863
2869
  React11.useEffect(() => {
@@ -3907,7 +3913,7 @@ var Popover = ({
3907
3913
  "div",
3908
3914
  {
3909
3915
  className: cn(
3910
- "rounded-xl border bg-popover text-popover-foreground shadow-md",
3916
+ "rounded-2xl border bg-popover text-popover-foreground shadow-md",
3911
3917
  "backdrop-blur-sm bg-popover/95 border-border/60 p-4",
3912
3918
  contentClassName
3913
3919
  ),
@@ -4848,7 +4854,7 @@ var SelectDropdown = ({ options, value, onChange, placeholder = "Select...", cla
4848
4854
  "button",
4849
4855
  {
4850
4856
  className: cn(
4851
- "inline-flex items-center justify-between gap-2 px-3 py-2 text-sm rounded-xl border bg-background border-border/60",
4857
+ "inline-flex items-center justify-between gap-2 px-3 py-2 text-sm rounded-2xl border bg-background border-border/60",
4852
4858
  "hover:bg-accent/50",
4853
4859
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
4854
4860
  className
@@ -4980,7 +4986,7 @@ var Combobox = ({
4980
4986
  }
4981
4987
  },
4982
4988
  placeholder: searchPlaceholder,
4983
- className: "w-full rounded-xl bg-background/50 py-2 pl-8 pr-3 text-sm border-0 focus:outline-none focus:bg-background/80 transition-colors placeholder:text-muted-foreground/60",
4989
+ className: "w-full rounded-full bg-background/50 py-2 pl-8 pr-3 text-sm border-0 focus:outline-none focus:bg-background/80 transition-colors placeholder:text-muted-foreground/60",
4984
4990
  "aria-autocomplete": "list",
4985
4991
  "aria-activedescendant": activeIndex != null ? `combobox-item-${activeIndex}` : void 0
4986
4992
  }
@@ -5036,7 +5042,7 @@ var Combobox = ({
5036
5042
  lg: "h-12 py-3 text-base"
5037
5043
  };
5038
5044
  const labelSize = size === "sm" ? "text-xs" : size === "lg" ? "text-base" : "text-sm";
5039
- const radiusClass = size === "sm" ? "rounded-lg" : "rounded-xl";
5045
+ const radiusClass = size === "sm" ? "rounded-full" : "rounded-full";
5040
5046
  const verticalGap = size === "sm" ? "space-y-1.5" : "space-y-2";
5041
5047
  const triggerButtonBaseProps = {
5042
5048
  ref: triggerRef,
@@ -5130,7 +5136,7 @@ var Combobox = ({
5130
5136
  }
5131
5137
  ) : /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "relative", children: [
5132
5138
  triggerButtonInline,
5133
- open && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "absolute left-0 top-full mt-1 z-50 w-full", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "rounded-xl border bg-popover text-popover-foreground shadow-md backdrop-blur-sm bg-popover/95 border-border/60", children: dropdownBody }) })
5139
+ open && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "absolute left-0 top-full mt-1 z-50 w-full", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "rounded-2xl border bg-popover text-popover-foreground shadow-md backdrop-blur-sm bg-popover/95 border-border/60", children: dropdownBody }) })
5134
5140
  ] })
5135
5141
  ] });
5136
5142
  };
@@ -5852,7 +5858,7 @@ var DatePicker = ({
5852
5858
  "aria-labelledby": labelId,
5853
5859
  className: cn(
5854
5860
  "group flex w-full items-center justify-between border bg-background/80 backdrop-blur-sm",
5855
- size === "sm" ? "rounded-lg" : "rounded-xl",
5861
+ size === "sm" ? "rounded-full" : "rounded-full",
5856
5862
  size === "sm" ? "px-2.5 py-1.5 text-sm h-8 md:h-7 md:text-xs md:py-1" : "px-3 py-2.5 text-sm h-11",
5857
5863
  "border-border/60 hover:border-primary/40",
5858
5864
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50 focus-visible:ring-offset-2 focus-visible:ring-offset-background",
@@ -6136,7 +6142,7 @@ var DateRangePicker = ({ startDate, endDate, onChange, placeholder = "Select dat
6136
6142
  {
6137
6143
  type: "button",
6138
6144
  className: cn(
6139
- "group flex w-full items-center justify-between rounded-xl border bg-background/80 backdrop-blur-sm px-3 py-2.5 text-sm",
6145
+ "group flex w-full items-center justify-between rounded-full border bg-background/80 backdrop-blur-sm px-3 py-2.5 text-sm",
6140
6146
  "border-border/60 hover:border-primary/40",
6141
6147
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50 focus-visible:ring-offset-2 focus-visible:ring-offset-background",
6142
6148
  "hover:bg-accent/10 hover:shadow-lg hover:shadow-primary/5 hover:-translate-y-0.5",
@@ -7376,7 +7382,7 @@ var DateTimePicker = ({
7376
7382
  type: "button",
7377
7383
  disabled,
7378
7384
  className: cn(
7379
- "flex w-full items-center justify-between rounded-xl border border-input bg-background px-3 py-2 text-sm",
7385
+ "flex w-full items-center justify-between rounded-full border border-input bg-background px-3 py-2 text-sm",
7380
7386
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
7381
7387
  disabled && "opacity-50 cursor-not-allowed",
7382
7388
  !displayValue && "text-muted-foreground"
@@ -7651,7 +7657,7 @@ var MultiCombobox = ({
7651
7657
  "aria-expanded": open,
7652
7658
  "aria-controls": listboxId,
7653
7659
  className: cn(
7654
- "flex w-full items-center gap-2 rounded-xl border border-input bg-background shadow-sm min-h-10",
7660
+ "flex w-full items-center gap-2 rounded-2xl border border-input bg-background shadow-sm min-h-10",
7655
7661
  "px-3 py-2",
7656
7662
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
7657
7663
  "disabled:cursor-not-allowed disabled:opacity-50"
@@ -8800,7 +8806,7 @@ function CategoryTreeSelect(props) {
8800
8806
  // Modern trigger button styling
8801
8807
  "group flex w-full items-center justify-between px-3 py-2.5",
8802
8808
  "bg-background/80 backdrop-blur-sm border border-border/60",
8803
- "rounded-xl h-11 text-sm",
8809
+ "rounded-2xl h-11 text-sm",
8804
8810
  "hover:bg-accent/10 hover:border-primary/40 hover:shadow-lg hover:shadow-primary/5 hover:-translate-y-0.5",
8805
8811
  "transition-all duration-300 ease-out",
8806
8812
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50 focus-visible:ring-offset-2 focus-visible:ring-offset-background",
@@ -10693,7 +10699,7 @@ function ColorPicker({
10693
10699
  type: "button",
10694
10700
  disabled,
10695
10701
  className: cn(
10696
- "w-full px-3 rounded-xl border border-input bg-background flex items-center justify-between",
10702
+ "w-full px-3 rounded-full border border-input bg-background flex items-center justify-between",
10697
10703
  sizeClasses2[size],
10698
10704
  "hover:border-accent-foreground/30 transition-colors",
10699
10705
  disabled && "opacity-50 cursor-not-allowed",
@@ -11149,7 +11155,7 @@ function ChartTooltip({ x, y, visible, label, value, color, secondaryLabel, seco
11149
11155
  /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
11150
11156
  "div",
11151
11157
  {
11152
- className: cn("bg-popover text-popover-foreground border border-border", "rounded-xl shadow-xl px-3 py-2 text-sm", "backdrop-blur-sm"),
11158
+ className: cn("bg-popover text-popover-foreground border border-border", "rounded-2xl shadow-xl px-3 py-2 text-sm", "backdrop-blur-sm"),
11153
11159
  style: {
11154
11160
  minWidth: "80px",
11155
11161
  width: "max-content",