@underverse-ui/underverse 0.1.18 → 0.1.20

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
@@ -5812,6 +5812,7 @@ var Slider = React24.forwardRef(
5812
5812
  size = "md",
5813
5813
  disabled = false,
5814
5814
  orientation = "horizontal",
5815
+ noFocus = false,
5815
5816
  ...props
5816
5817
  }, ref) => {
5817
5818
  const [internalValue, setInternalValue] = React24.useState(defaultValue);
@@ -5836,23 +5837,13 @@ var Slider = React24.forwardRef(
5836
5837
  showValue && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: cn("text-xs font-mono text-muted-foreground min-w-[2rem] text-right", valueClassName), children: displayValue })
5837
5838
  ] }),
5838
5839
  /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: cn("relative flex items-center", sizeStyles8.container), children: [
5839
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
5840
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: cn("w-full rounded-full bg-secondary relative overflow-hidden", sizeStyles8.track, trackClassName), children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
5840
5841
  "div",
5841
5842
  {
5842
- className: cn(
5843
- "w-full rounded-full bg-secondary relative overflow-hidden",
5844
- sizeStyles8.track,
5845
- trackClassName
5846
- ),
5847
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
5848
- "div",
5849
- {
5850
- className: "absolute left-0 top-0 h-full bg-primary rounded-full transition-all duration-150 ease-out",
5851
- style: { width: `${percentage}%` }
5852
- }
5853
- )
5843
+ className: "absolute left-0 top-0 h-full bg-primary rounded-full transition-all duration-150 ease-out",
5844
+ style: { width: `${percentage}%` }
5854
5845
  }
5855
- ),
5846
+ ) }),
5856
5847
  /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
5857
5848
  "input",
5858
5849
  {
@@ -5867,7 +5858,8 @@ var Slider = React24.forwardRef(
5867
5858
  className: cn(
5868
5859
  // Base styles
5869
5860
  "absolute w-full h-full appearance-none bg-transparent cursor-pointer",
5870
- "focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2 focus:ring-offset-background rounded-full",
5861
+ !noFocus && "focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2 focus:ring-offset-background rounded-full",
5862
+ noFocus && "outline-none ring-0 focus:outline-none focus:ring-0 focus-visible:outline-none",
5871
5863
  // Webkit styles for thumb
5872
5864
  "[&::-webkit-slider-thumb]:appearance-none",
5873
5865
  "[&::-webkit-slider-thumb]:bg-primary",