@underverse-ui/underverse 0.1.19 → 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.d.cts CHANGED
@@ -752,7 +752,7 @@ interface RadioGroupItemProps {
752
752
  }
753
753
  declare const RadioGroupItem: React$1.ForwardRefExoticComponent<RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>>;
754
754
 
755
- interface SliderProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'size'> {
755
+ interface SliderProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> {
756
756
  value?: number;
757
757
  defaultValue?: number;
758
758
  min?: number;
@@ -771,6 +771,7 @@ interface SliderProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>
771
771
  size?: "sm" | "md" | "lg";
772
772
  disabled?: boolean;
773
773
  orientation?: "horizontal" | "vertical";
774
+ noFocus?: boolean;
774
775
  }
775
776
  declare const Slider: React$1.ForwardRefExoticComponent<SliderProps & React$1.RefAttributes<HTMLInputElement>>;
776
777
 
package/dist/index.d.ts CHANGED
@@ -752,7 +752,7 @@ interface RadioGroupItemProps {
752
752
  }
753
753
  declare const RadioGroupItem: React$1.ForwardRefExoticComponent<RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>>;
754
754
 
755
- interface SliderProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'size'> {
755
+ interface SliderProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> {
756
756
  value?: number;
757
757
  defaultValue?: number;
758
758
  min?: number;
@@ -771,6 +771,7 @@ interface SliderProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>
771
771
  size?: "sm" | "md" | "lg";
772
772
  disabled?: boolean;
773
773
  orientation?: "horizontal" | "vertical";
774
+ noFocus?: boolean;
774
775
  }
775
776
  declare const Slider: React$1.ForwardRefExoticComponent<SliderProps & React$1.RefAttributes<HTMLInputElement>>;
776
777
 
package/dist/index.js CHANGED
@@ -5669,6 +5669,7 @@ var Slider = React24.forwardRef(
5669
5669
  size = "md",
5670
5670
  disabled = false,
5671
5671
  orientation = "horizontal",
5672
+ noFocus = false,
5672
5673
  ...props
5673
5674
  }, ref) => {
5674
5675
  const [internalValue, setInternalValue] = React24.useState(defaultValue);
@@ -5693,23 +5694,13 @@ var Slider = React24.forwardRef(
5693
5694
  showValue && /* @__PURE__ */ jsx30("span", { className: cn("text-xs font-mono text-muted-foreground min-w-[2rem] text-right", valueClassName), children: displayValue })
5694
5695
  ] }),
5695
5696
  /* @__PURE__ */ jsxs26("div", { className: cn("relative flex items-center", sizeStyles8.container), children: [
5696
- /* @__PURE__ */ jsx30(
5697
+ /* @__PURE__ */ jsx30("div", { className: cn("w-full rounded-full bg-secondary relative overflow-hidden", sizeStyles8.track, trackClassName), children: /* @__PURE__ */ jsx30(
5697
5698
  "div",
5698
5699
  {
5699
- className: cn(
5700
- "w-full rounded-full bg-secondary relative overflow-hidden",
5701
- sizeStyles8.track,
5702
- trackClassName
5703
- ),
5704
- children: /* @__PURE__ */ jsx30(
5705
- "div",
5706
- {
5707
- className: "absolute left-0 top-0 h-full bg-primary rounded-full transition-all duration-150 ease-out",
5708
- style: { width: `${percentage}%` }
5709
- }
5710
- )
5700
+ className: "absolute left-0 top-0 h-full bg-primary rounded-full transition-all duration-150 ease-out",
5701
+ style: { width: `${percentage}%` }
5711
5702
  }
5712
- ),
5703
+ ) }),
5713
5704
  /* @__PURE__ */ jsx30(
5714
5705
  "input",
5715
5706
  {
@@ -5724,7 +5715,8 @@ var Slider = React24.forwardRef(
5724
5715
  className: cn(
5725
5716
  // Base styles
5726
5717
  "absolute w-full h-full appearance-none bg-transparent cursor-pointer",
5727
- "focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2 focus:ring-offset-background rounded-full",
5718
+ !noFocus && "focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2 focus:ring-offset-background rounded-full",
5719
+ noFocus && "outline-none ring-0 focus:outline-none focus:ring-0 focus-visible:outline-none",
5728
5720
  // Webkit styles for thumb
5729
5721
  "[&::-webkit-slider-thumb]:appearance-none",
5730
5722
  "[&::-webkit-slider-thumb]:bg-primary",