@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 CHANGED
@@ -205,8 +205,8 @@ var VARIANT_STYLES_BTN = {
205
205
  ghost: "bg-transparent hover:bg-accent/20 hover:text-accent-foreground backdrop-blur-sm transition-colors",
206
206
  // Link: chỉ văn bản
207
207
  link: "text-primary bg-transparent underline-offset-4 hover:underline hover:text-primary/85 transition-colors",
208
- // Gradient: tuỳ chọn, giảm shadow
209
- gradient: "bg-linear-to-r from-primary via-secondary to-accent text-primary-foreground hover:opacity-90 shadow-sm border border-primary/10"
208
+ // Gradient: smooth gradient từ primary → secondary (cùng tone)
209
+ gradient: "bg-linear-to-r from-primary via-primary/80 to-secondary text-primary-foreground hover:opacity-90 shadow-md border-0"
210
210
  };
211
211
  var SIZE_STYLES_BTN = {
212
212
  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",
@@ -6956,8 +6956,8 @@ function TimePicker({
6956
6956
  required,
6957
6957
  format = "24",
6958
6958
  includeSeconds = false,
6959
- minuteStep = 5,
6960
- secondStep = 5,
6959
+ minuteStep = 1,
6960
+ secondStep = 1,
6961
6961
  clearable = true,
6962
6962
  variant = "default",
6963
6963
  showNow = false,
@@ -7136,7 +7136,6 @@ function TimePicker({
7136
7136
  lg: { label: "text-base", height: "h-12", padding: "px-4 py-3", text: "text-base", icon: "w-5 h-5" }
7137
7137
  };
7138
7138
  const sz = sizeClasses2[size];
7139
- const radiusClass = size === "sm" ? "rounded-md" : "rounded-lg";
7140
7139
  const display = formatTime(parts, format, includeSeconds);
7141
7140
  const trigger = variant === "inline" ? null : /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
7142
7141
  "button",
@@ -7147,16 +7146,15 @@ function TimePicker({
7147
7146
  "aria-haspopup": "dialog",
7148
7147
  "aria-expanded": open,
7149
7148
  className: cn(
7150
- "group flex w-full items-center justify-between border bg-background/80 backdrop-blur-sm",
7149
+ "group flex w-full items-center justify-between rounded-full border bg-background/80 backdrop-blur-sm",
7151
7150
  sz.height,
7152
7151
  sz.padding,
7153
7152
  sz.text,
7154
- radiusClass,
7155
7153
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50 focus-visible:ring-offset-2 focus-visible:ring-offset-background",
7156
7154
  "disabled:opacity-50 disabled:cursor-not-allowed",
7157
7155
  "transition-all duration-300 ease-out",
7158
7156
  error && "border-destructive/60 focus-visible:ring-destructive/50 bg-destructive/5",
7159
- success && "border-green-500/60 focus-visible:ring-green-500/50 bg-green-500/5",
7157
+ success && "border-success/60 focus-visible:ring-success/50 bg-success/5",
7160
7158
  !error && !success && "border-border/60 hover:border-primary/40 hover:bg-accent/10",
7161
7159
  animate && !disabled && "hover:shadow-lg hover:shadow-primary/5 hover:-translate-y-0.5",
7162
7160
  open && "ring-2 ring-primary/30 border-primary/50 shadow-lg shadow-primary/10",
@@ -7169,7 +7167,7 @@ function TimePicker({
7169
7167
  {
7170
7168
  className: cn(
7171
7169
  "flex items-center justify-center rounded-md p-1.5 transition-all duration-300",
7172
- error ? "bg-destructive/10 text-destructive" : success ? "bg-green-500/10 text-green-500" : open ? "bg-primary/15 text-primary" : "bg-muted/50 text-muted-foreground group-hover:bg-primary/10 group-hover:text-primary"
7170
+ 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"
7173
7171
  ),
7174
7172
  children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react16.Clock, { className: cn(sz.icon, "transition-transform duration-300", open && "rotate-12") })
7175
7173
  }
@@ -7474,7 +7472,7 @@ function TimePicker({
7474
7472
  contentClassName: cn(
7475
7473
  "p-5 rounded-2xl border bg-popover/95 backdrop-blur-xl shadow-2xl",
7476
7474
  error && "border-destructive/40",
7477
- success && "border-green-500/40",
7475
+ success && "border-success/40",
7478
7476
  !error && !success && "border-border/60",
7479
7477
  animate && "animate-in fade-in-0 zoom-in-95 slide-in-from-top-2 duration-300"
7480
7478
  ),
@@ -7486,7 +7484,7 @@ function TimePicker({
7486
7484
  /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react16.X, { className: "w-3.5 h-3.5 shrink-0" }),
7487
7485
  /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "font-medium", children: error })
7488
7486
  ] }),
7489
- success && !error && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-2 text-green-600 bg-green-500/10 px-3 py-1.5 rounded-lg", children: [
7487
+ success && !error && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-2 text-success bg-success/10 px-3 py-1.5 rounded-lg", children: [
7490
7488
  /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react16.Check, { className: "w-3.5 h-3.5 shrink-0" }),
7491
7489
  /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "font-medium", children: "Valid time selected" })
7492
7490
  ] }),
@@ -10069,10 +10067,10 @@ var SIZE_STYLES2 = {
10069
10067
  };
10070
10068
  var BADGE_VARIANTS = {
10071
10069
  default: "bg-muted text-muted-foreground",
10072
- success: "bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400",
10073
- warning: "bg-yellow-100 text-yellow-700 dark:bg-yellow-900/30 dark:text-yellow-400",
10074
- error: "bg-red-100 text-red-700 dark:bg-red-900/30 dark:text-red-400",
10075
- info: "bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400"
10070
+ success: "bg-success-soft text-success",
10071
+ warning: "bg-warning-soft text-warning-foreground",
10072
+ error: "bg-destructive-soft text-destructive",
10073
+ info: "bg-info-soft text-info"
10076
10074
  };
10077
10075
  var ListItemSkeleton = ({ size }) => {
10078
10076
  const sz = SIZE_STYLES2[size];
@@ -10597,10 +10595,10 @@ var SIZE_STYLE = {
10597
10595
  var STATUS_COLOR = {
10598
10596
  default: "bg-muted/60",
10599
10597
  primary: "bg-primary",
10600
- success: "bg-green-500",
10601
- warning: "bg-yellow-500",
10602
- error: "bg-red-500",
10603
- info: "bg-blue-500"
10598
+ success: "bg-success",
10599
+ warning: "bg-warning",
10600
+ error: "bg-destructive",
10601
+ info: "bg-info"
10604
10602
  };
10605
10603
  var TimelineContext = React36.createContext(null);
10606
10604
  var LINE_STYLE_MAP = {
@@ -11180,10 +11178,10 @@ function ColorPicker({
11180
11178
  onClick: copyToClipboard,
11181
11179
  className: cn(
11182
11180
  "h-9 px-3 rounded-lg border border-border text-xs hover:bg-accent/10 transition-colors flex items-center gap-1.5",
11183
- copied && "bg-green-500/10 border-green-500/30"
11181
+ copied && "bg-success/10 border-success/30"
11184
11182
  ),
11185
11183
  children: [
11186
- copied ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react25.Check, { className: "w-3.5 h-3.5 text-green-600" }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react25.Copy, { className: "w-3.5 h-3.5" }),
11184
+ copied ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react25.Check, { className: "w-3.5 h-3.5 text-success" }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react25.Copy, { className: "w-3.5 h-3.5" }),
11187
11185
  variant === "full" && (copied ? "Copied!" : "Copy")
11188
11186
  ]
11189
11187
  }
@@ -11220,9 +11218,9 @@ function ColorPicker({
11220
11218
  onClick: copyToClipboard,
11221
11219
  className: cn(
11222
11220
  "h-9 w-9 rounded-lg border border-border hover:bg-accent/10 transition-colors flex items-center justify-center",
11223
- copied && "bg-green-500/10 border-green-500/30"
11221
+ copied && "bg-success/10 border-success/30"
11224
11222
  ),
11225
- children: copied ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react25.Check, { className: "w-3.5 h-3.5 text-green-600" }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react25.Copy, { className: "w-3.5 h-3.5" })
11223
+ children: copied ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react25.Check, { className: "w-3.5 h-3.5 text-success" }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react25.Copy, { className: "w-3.5 h-3.5" })
11226
11224
  }
11227
11225
  )
11228
11226
  ] }),