@underverse-ui/underverse 0.2.57 → 0.2.58
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 +18 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18 -18
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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",
|
|
@@ -3907,7 +3907,7 @@ var Popover = ({
|
|
|
3907
3907
|
"div",
|
|
3908
3908
|
{
|
|
3909
3909
|
className: cn(
|
|
3910
|
-
"rounded-
|
|
3910
|
+
"rounded-2xl border bg-popover text-popover-foreground shadow-md",
|
|
3911
3911
|
"backdrop-blur-sm bg-popover/95 border-border/60 p-4",
|
|
3912
3912
|
contentClassName
|
|
3913
3913
|
),
|
|
@@ -4848,7 +4848,7 @@ var SelectDropdown = ({ options, value, onChange, placeholder = "Select...", cla
|
|
|
4848
4848
|
"button",
|
|
4849
4849
|
{
|
|
4850
4850
|
className: cn(
|
|
4851
|
-
"inline-flex items-center justify-between gap-2 px-3 py-2 text-sm rounded-
|
|
4851
|
+
"inline-flex items-center justify-between gap-2 px-3 py-2 text-sm rounded-2xl border bg-background border-border/60",
|
|
4852
4852
|
"hover:bg-accent/50",
|
|
4853
4853
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
4854
4854
|
className
|
|
@@ -4980,7 +4980,7 @@ var Combobox = ({
|
|
|
4980
4980
|
}
|
|
4981
4981
|
},
|
|
4982
4982
|
placeholder: searchPlaceholder,
|
|
4983
|
-
className: "w-full rounded-
|
|
4983
|
+
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
4984
|
"aria-autocomplete": "list",
|
|
4985
4985
|
"aria-activedescendant": activeIndex != null ? `combobox-item-${activeIndex}` : void 0
|
|
4986
4986
|
}
|
|
@@ -5036,7 +5036,7 @@ var Combobox = ({
|
|
|
5036
5036
|
lg: "h-12 py-3 text-base"
|
|
5037
5037
|
};
|
|
5038
5038
|
const labelSize = size === "sm" ? "text-xs" : size === "lg" ? "text-base" : "text-sm";
|
|
5039
|
-
const radiusClass = size === "sm" ? "rounded-
|
|
5039
|
+
const radiusClass = size === "sm" ? "rounded-full" : "rounded-full";
|
|
5040
5040
|
const verticalGap = size === "sm" ? "space-y-1.5" : "space-y-2";
|
|
5041
5041
|
const triggerButtonBaseProps = {
|
|
5042
5042
|
ref: triggerRef,
|
|
@@ -5130,7 +5130,7 @@ var Combobox = ({
|
|
|
5130
5130
|
}
|
|
5131
5131
|
) : /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "relative", children: [
|
|
5132
5132
|
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-
|
|
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-2xl border bg-popover text-popover-foreground shadow-md backdrop-blur-sm bg-popover/95 border-border/60", children: dropdownBody }) })
|
|
5134
5134
|
] })
|
|
5135
5135
|
] });
|
|
5136
5136
|
};
|
|
@@ -5852,7 +5852,7 @@ var DatePicker = ({
|
|
|
5852
5852
|
"aria-labelledby": labelId,
|
|
5853
5853
|
className: cn(
|
|
5854
5854
|
"group flex w-full items-center justify-between border bg-background/80 backdrop-blur-sm",
|
|
5855
|
-
size === "sm" ? "rounded-
|
|
5855
|
+
size === "sm" ? "rounded-full" : "rounded-full",
|
|
5856
5856
|
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
5857
|
"border-border/60 hover:border-primary/40",
|
|
5858
5858
|
"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 +6136,7 @@ var DateRangePicker = ({ startDate, endDate, onChange, placeholder = "Select dat
|
|
|
6136
6136
|
{
|
|
6137
6137
|
type: "button",
|
|
6138
6138
|
className: cn(
|
|
6139
|
-
"group flex w-full items-center justify-between rounded-
|
|
6139
|
+
"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
6140
|
"border-border/60 hover:border-primary/40",
|
|
6141
6141
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50 focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
6142
6142
|
"hover:bg-accent/10 hover:shadow-lg hover:shadow-primary/5 hover:-translate-y-0.5",
|
|
@@ -7376,7 +7376,7 @@ var DateTimePicker = ({
|
|
|
7376
7376
|
type: "button",
|
|
7377
7377
|
disabled,
|
|
7378
7378
|
className: cn(
|
|
7379
|
-
"flex w-full items-center justify-between rounded-
|
|
7379
|
+
"flex w-full items-center justify-between rounded-full border border-input bg-background px-3 py-2 text-sm",
|
|
7380
7380
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
7381
7381
|
disabled && "opacity-50 cursor-not-allowed",
|
|
7382
7382
|
!displayValue && "text-muted-foreground"
|
|
@@ -7651,7 +7651,7 @@ var MultiCombobox = ({
|
|
|
7651
7651
|
"aria-expanded": open,
|
|
7652
7652
|
"aria-controls": listboxId,
|
|
7653
7653
|
className: cn(
|
|
7654
|
-
"flex w-full items-center gap-2 rounded-
|
|
7654
|
+
"flex w-full items-center gap-2 rounded-2xl border border-input bg-background shadow-sm min-h-10",
|
|
7655
7655
|
"px-3 py-2",
|
|
7656
7656
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
7657
7657
|
"disabled:cursor-not-allowed disabled:opacity-50"
|
|
@@ -8800,7 +8800,7 @@ function CategoryTreeSelect(props) {
|
|
|
8800
8800
|
// Modern trigger button styling
|
|
8801
8801
|
"group flex w-full items-center justify-between px-3 py-2.5",
|
|
8802
8802
|
"bg-background/80 backdrop-blur-sm border border-border/60",
|
|
8803
|
-
"rounded-
|
|
8803
|
+
"rounded-2xl h-11 text-sm",
|
|
8804
8804
|
"hover:bg-accent/10 hover:border-primary/40 hover:shadow-lg hover:shadow-primary/5 hover:-translate-y-0.5",
|
|
8805
8805
|
"transition-all duration-300 ease-out",
|
|
8806
8806
|
"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 +10693,7 @@ function ColorPicker({
|
|
|
10693
10693
|
type: "button",
|
|
10694
10694
|
disabled,
|
|
10695
10695
|
className: cn(
|
|
10696
|
-
"w-full px-3 rounded-
|
|
10696
|
+
"w-full px-3 rounded-full border border-input bg-background flex items-center justify-between",
|
|
10697
10697
|
sizeClasses2[size],
|
|
10698
10698
|
"hover:border-accent-foreground/30 transition-colors",
|
|
10699
10699
|
disabled && "opacity-50 cursor-not-allowed",
|
|
@@ -11149,7 +11149,7 @@ function ChartTooltip({ x, y, visible, label, value, color, secondaryLabel, seco
|
|
|
11149
11149
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
11150
11150
|
"div",
|
|
11151
11151
|
{
|
|
11152
|
-
className: cn("bg-popover text-popover-foreground border border-border", "rounded-
|
|
11152
|
+
className: cn("bg-popover text-popover-foreground border border-border", "rounded-2xl shadow-xl px-3 py-2 text-sm", "backdrop-blur-sm"),
|
|
11153
11153
|
style: {
|
|
11154
11154
|
minWidth: "80px",
|
|
11155
11155
|
width: "max-content",
|