@underverse-ui/underverse 0.2.4 → 0.2.5

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
@@ -226,10 +226,12 @@ var Button = (0, import_react.forwardRef)(
226
226
  asContainer = false,
227
227
  noWrap = true,
228
228
  noHoverOverlay = false,
229
+ gradient = false,
229
230
  ...rest
230
231
  }, ref) => {
231
232
  const baseStyles = asContainer ? "relative inline-flex justify-center rounded-md 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-md 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";
232
- const variantStyle = VARIANT_STYLES_BTN[variant] || VARIANT_STYLES_BTN.default;
233
+ const finalVariant = gradient ? "gradient" : variant;
234
+ const variantStyle = VARIANT_STYLES_BTN[finalVariant] || VARIANT_STYLES_BTN.default;
233
235
  const sizeStyle = SIZE_STYLES_BTN[size] || SIZE_STYLES_BTN.md;
234
236
  const SpinnerIcon = Spinner ?? import_lucide_react.Activity;
235
237
  const [locked, setLocked] = (0, import_react.useState)(false);
@@ -287,7 +289,7 @@ var Button = (0, import_react.forwardRef)(
287
289
  "aria-label": rest["aria-label"] || title,
288
290
  ...rest,
289
291
  children: [
290
- !noHoverOverlay && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "absolute inset-0 bg-gradient-to-r from-primary-foreground/20 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-200" }),
292
+ !noHoverOverlay && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "absolute inset-0 bg-gradient-to-r from-primary-foreground/20 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-200 dark:hidden" }),
291
293
  loading2 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
292
294
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SpinnerIcon, { className: "w-4 h-4 animate-spin" }),
293
295
  loadingText && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "ml-2", "aria-live": "polite", children: loadingText }),
@@ -4964,10 +4966,9 @@ var DatePicker = ({
4964
4966
  },
4965
4967
  className: cn(
4966
4968
  size === "sm" ? "w-7 h-7 text-[12px]" : "w-8 h-8 text-sm",
4967
- "datepicker-day rounded-md hover:bg-accent hover:text-accent-foreground",
4968
- "focus:bg-accent focus:text-accent-foreground focus:outline-none",
4969
+ "datepicker-day rounded-md focus:outline-none",
4969
4970
  "transition-colors",
4970
- isSelected && "bg-primary text-primary-foreground hover:bg-primary/90",
4971
+ isSelected ? "bg-primary text-primary-foreground hover:bg-primary/90 focus:bg-primary focus:text-primary-foreground" : "hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",
4971
4972
  isToday2 && !isSelected && "bg-accent text-accent-foreground font-semibold"
4972
4973
  ),
4973
4974
  children: day
@@ -6118,7 +6119,7 @@ function Calendar2({
6118
6119
  disabled && "opacity-40 cursor-not-allowed",
6119
6120
  isToday2 && !selectedDay && "ring-1 ring-primary/50",
6120
6121
  selectedDay && "bg-primary text-primary-foreground hover:bg-primary/90",
6121
- !selectedDay && "hover:bg-accent"
6122
+ !selectedDay && "hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground"
6122
6123
  ),
6123
6124
  title: d.toDateString(),
6124
6125
  children: [
@@ -6179,7 +6180,7 @@ function Calendar2({
6179
6180
  disabled && "opacity-40 cursor-not-allowed",
6180
6181
  isToday2 && !selectedDay && "ring-1 ring-primary/50",
6181
6182
  selectedDay && "bg-primary text-primary-foreground hover:bg-primary/90",
6182
- !selectedDay && "hover:bg-accent"
6183
+ !selectedDay && "hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground"
6183
6184
  ),
6184
6185
  title: d.toDateString(),
6185
6186
  children: [