@underverse-ui/underverse 0.2.62 → 0.2.63
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 +21 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +21 -23
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -32,8 +32,8 @@ var VARIANT_STYLES_BTN = {
|
|
|
32
32
|
ghost: "bg-transparent hover:bg-accent/20 hover:text-accent-foreground backdrop-blur-sm transition-colors",
|
|
33
33
|
// Link: chỉ văn bản
|
|
34
34
|
link: "text-primary bg-transparent underline-offset-4 hover:underline hover:text-primary/85 transition-colors",
|
|
35
|
-
// Gradient:
|
|
36
|
-
gradient: "bg-linear-to-r from-primary via-
|
|
35
|
+
// Gradient: smooth gradient từ primary → secondary (cùng tone)
|
|
36
|
+
gradient: "bg-linear-to-r from-primary via-primary/80 to-secondary text-primary-foreground hover:opacity-90 shadow-md border-0"
|
|
37
37
|
};
|
|
38
38
|
var SIZE_STYLES_BTN = {
|
|
39
39
|
sm: "px-3 py-1.5 text-sm h-8 min-w-8 md:px-2.5 md:py-1 md:h-7 md:text-xs",
|
|
@@ -6783,8 +6783,8 @@ function TimePicker({
|
|
|
6783
6783
|
required,
|
|
6784
6784
|
format = "24",
|
|
6785
6785
|
includeSeconds = false,
|
|
6786
|
-
minuteStep =
|
|
6787
|
-
secondStep =
|
|
6786
|
+
minuteStep = 1,
|
|
6787
|
+
secondStep = 1,
|
|
6788
6788
|
clearable = true,
|
|
6789
6789
|
variant = "default",
|
|
6790
6790
|
showNow = false,
|
|
@@ -6963,7 +6963,6 @@ function TimePicker({
|
|
|
6963
6963
|
lg: { label: "text-base", height: "h-12", padding: "px-4 py-3", text: "text-base", icon: "w-5 h-5" }
|
|
6964
6964
|
};
|
|
6965
6965
|
const sz = sizeClasses2[size];
|
|
6966
|
-
const radiusClass = size === "sm" ? "rounded-md" : "rounded-lg";
|
|
6967
6966
|
const display = formatTime(parts, format, includeSeconds);
|
|
6968
6967
|
const trigger = variant === "inline" ? null : /* @__PURE__ */ jsxs26(
|
|
6969
6968
|
"button",
|
|
@@ -6974,16 +6973,15 @@ function TimePicker({
|
|
|
6974
6973
|
"aria-haspopup": "dialog",
|
|
6975
6974
|
"aria-expanded": open,
|
|
6976
6975
|
className: cn(
|
|
6977
|
-
"group flex w-full items-center justify-between border bg-background/80 backdrop-blur-sm",
|
|
6976
|
+
"group flex w-full items-center justify-between rounded-full border bg-background/80 backdrop-blur-sm",
|
|
6978
6977
|
sz.height,
|
|
6979
6978
|
sz.padding,
|
|
6980
6979
|
sz.text,
|
|
6981
|
-
radiusClass,
|
|
6982
6980
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50 focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
6983
6981
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
6984
6982
|
"transition-all duration-300 ease-out",
|
|
6985
6983
|
error && "border-destructive/60 focus-visible:ring-destructive/50 bg-destructive/5",
|
|
6986
|
-
success && "border-
|
|
6984
|
+
success && "border-success/60 focus-visible:ring-success/50 bg-success/5",
|
|
6987
6985
|
!error && !success && "border-border/60 hover:border-primary/40 hover:bg-accent/10",
|
|
6988
6986
|
animate && !disabled && "hover:shadow-lg hover:shadow-primary/5 hover:-translate-y-0.5",
|
|
6989
6987
|
open && "ring-2 ring-primary/30 border-primary/50 shadow-lg shadow-primary/10",
|
|
@@ -6996,7 +6994,7 @@ function TimePicker({
|
|
|
6996
6994
|
{
|
|
6997
6995
|
className: cn(
|
|
6998
6996
|
"flex items-center justify-center rounded-md p-1.5 transition-all duration-300",
|
|
6999
|
-
error ? "bg-destructive/10 text-destructive" : success ? "bg-
|
|
6997
|
+
error ? "bg-destructive/10 text-destructive" : success ? "bg-success/10 text-success" : open ? "bg-primary/15 text-primary" : "bg-muted/50 text-muted-foreground group-hover:bg-primary/10 group-hover:text-primary"
|
|
7000
6998
|
),
|
|
7001
6999
|
children: /* @__PURE__ */ jsx31(Clock2, { className: cn(sz.icon, "transition-transform duration-300", open && "rotate-12") })
|
|
7002
7000
|
}
|
|
@@ -7301,7 +7299,7 @@ function TimePicker({
|
|
|
7301
7299
|
contentClassName: cn(
|
|
7302
7300
|
"p-5 rounded-2xl border bg-popover/95 backdrop-blur-xl shadow-2xl",
|
|
7303
7301
|
error && "border-destructive/40",
|
|
7304
|
-
success && "border-
|
|
7302
|
+
success && "border-success/40",
|
|
7305
7303
|
!error && !success && "border-border/60",
|
|
7306
7304
|
animate && "animate-in fade-in-0 zoom-in-95 slide-in-from-top-2 duration-300"
|
|
7307
7305
|
),
|
|
@@ -7313,7 +7311,7 @@ function TimePicker({
|
|
|
7313
7311
|
/* @__PURE__ */ jsx31(X9, { className: "w-3.5 h-3.5 shrink-0" }),
|
|
7314
7312
|
/* @__PURE__ */ jsx31("span", { className: "font-medium", children: error })
|
|
7315
7313
|
] }),
|
|
7316
|
-
success && !error && /* @__PURE__ */ jsxs26("div", { className: "flex items-center gap-2 text-
|
|
7314
|
+
success && !error && /* @__PURE__ */ jsxs26("div", { className: "flex items-center gap-2 text-success bg-success/10 px-3 py-1.5 rounded-lg", children: [
|
|
7317
7315
|
/* @__PURE__ */ jsx31(Check4, { className: "w-3.5 h-3.5 shrink-0" }),
|
|
7318
7316
|
/* @__PURE__ */ jsx31("span", { className: "font-medium", children: "Valid time selected" })
|
|
7319
7317
|
] }),
|
|
@@ -9896,10 +9894,10 @@ var SIZE_STYLES2 = {
|
|
|
9896
9894
|
};
|
|
9897
9895
|
var BADGE_VARIANTS = {
|
|
9898
9896
|
default: "bg-muted text-muted-foreground",
|
|
9899
|
-
success: "bg-
|
|
9900
|
-
warning: "bg-
|
|
9901
|
-
error: "bg-
|
|
9902
|
-
info: "bg-
|
|
9897
|
+
success: "bg-success-soft text-success",
|
|
9898
|
+
warning: "bg-warning-soft text-warning-foreground",
|
|
9899
|
+
error: "bg-destructive-soft text-destructive",
|
|
9900
|
+
info: "bg-info-soft text-info"
|
|
9903
9901
|
};
|
|
9904
9902
|
var ListItemSkeleton = ({ size }) => {
|
|
9905
9903
|
const sz = SIZE_STYLES2[size];
|
|
@@ -10424,10 +10422,10 @@ var SIZE_STYLE = {
|
|
|
10424
10422
|
var STATUS_COLOR = {
|
|
10425
10423
|
default: "bg-muted/60",
|
|
10426
10424
|
primary: "bg-primary",
|
|
10427
|
-
success: "bg-
|
|
10428
|
-
warning: "bg-
|
|
10429
|
-
error: "bg-
|
|
10430
|
-
info: "bg-
|
|
10425
|
+
success: "bg-success",
|
|
10426
|
+
warning: "bg-warning",
|
|
10427
|
+
error: "bg-destructive",
|
|
10428
|
+
info: "bg-info"
|
|
10431
10429
|
};
|
|
10432
10430
|
var TimelineContext = React36.createContext(null);
|
|
10433
10431
|
var LINE_STYLE_MAP = {
|
|
@@ -11007,10 +11005,10 @@ function ColorPicker({
|
|
|
11007
11005
|
onClick: copyToClipboard,
|
|
11008
11006
|
className: cn(
|
|
11009
11007
|
"h-9 px-3 rounded-lg border border-border text-xs hover:bg-accent/10 transition-colors flex items-center gap-1.5",
|
|
11010
|
-
copied && "bg-
|
|
11008
|
+
copied && "bg-success/10 border-success/30"
|
|
11011
11009
|
),
|
|
11012
11010
|
children: [
|
|
11013
|
-
copied ? /* @__PURE__ */ jsx44(Check8, { className: "w-3.5 h-3.5 text-
|
|
11011
|
+
copied ? /* @__PURE__ */ jsx44(Check8, { className: "w-3.5 h-3.5 text-success" }) : /* @__PURE__ */ jsx44(Copy, { className: "w-3.5 h-3.5" }),
|
|
11014
11012
|
variant === "full" && (copied ? "Copied!" : "Copy")
|
|
11015
11013
|
]
|
|
11016
11014
|
}
|
|
@@ -11047,9 +11045,9 @@ function ColorPicker({
|
|
|
11047
11045
|
onClick: copyToClipboard,
|
|
11048
11046
|
className: cn(
|
|
11049
11047
|
"h-9 w-9 rounded-lg border border-border hover:bg-accent/10 transition-colors flex items-center justify-center",
|
|
11050
|
-
copied && "bg-
|
|
11048
|
+
copied && "bg-success/10 border-success/30"
|
|
11051
11049
|
),
|
|
11052
|
-
children: copied ? /* @__PURE__ */ jsx44(Check8, { className: "w-3.5 h-3.5 text-
|
|
11050
|
+
children: copied ? /* @__PURE__ */ jsx44(Check8, { className: "w-3.5 h-3.5 text-success" }) : /* @__PURE__ */ jsx44(Copy, { className: "w-3.5 h-3.5" })
|
|
11053
11051
|
}
|
|
11054
11052
|
)
|
|
11055
11053
|
] }),
|