@dilipod/ui 0.4.25 → 0.4.26

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.mjs CHANGED
@@ -508,7 +508,7 @@ function cn(...inputs) {
508
508
  return twMerge(clsx(inputs));
509
509
  }
510
510
  var buttonVariants = cva(
511
- "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-full text-sm font-semibold ring-offset-background transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 cursor-pointer",
511
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-full text-sm font-semibold transition-all duration-200 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 cursor-pointer",
512
512
  {
513
513
  variants: {
514
514
  variant: {
@@ -646,7 +646,7 @@ var SheetContent = React51.forwardRef(({ side = "right", className, children, ..
646
646
  ...props,
647
647
  children: [
648
648
  children,
649
- /* @__PURE__ */ jsxs(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-[var(--cyan)] focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-gray-100", children: [
649
+ /* @__PURE__ */ jsxs(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-gray-100", children: [
650
650
  /* @__PURE__ */ jsx(X, { className: "h-4 w-4" }),
651
651
  /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
652
652
  ] })
@@ -1501,8 +1501,8 @@ var Input = React51.forwardRef(
1501
1501
  {
1502
1502
  type,
1503
1503
  className: cn(
1504
- "flex h-10 w-full rounded-sm border bg-white px-3 py-2 text-base text-[var(--black)] ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-[var(--black)] placeholder:text-gray-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm transition-colors",
1505
- error ? "border-red-500 focus-visible:ring-red-500" : "border-gray-300 focus-visible:ring-[var(--cyan)]",
1504
+ "flex h-10 w-full rounded-sm border bg-white px-3 py-2 text-base text-[var(--black)] file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-[var(--black)] placeholder:text-gray-500 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm transition-colors",
1505
+ error ? "border-red-500" : "border-gray-300",
1506
1506
  className
1507
1507
  ),
1508
1508
  ref,
@@ -1581,8 +1581,8 @@ var Textarea = React51.forwardRef(
1581
1581
  "textarea",
1582
1582
  {
1583
1583
  className: cn(
1584
- "flex min-h-[80px] w-full rounded-sm border bg-white px-3 py-2 text-base text-[var(--black)] ring-offset-background placeholder:text-gray-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm transition-colors resize-none",
1585
- error ? "border-red-500 focus-visible:ring-red-500" : "border-gray-300 focus-visible:ring-[var(--cyan)]",
1584
+ "flex min-h-[80px] w-full rounded-sm border bg-white px-3 py-2 text-base text-[var(--black)] placeholder:text-gray-500 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm transition-colors resize-none",
1585
+ error ? "border-red-500" : "border-gray-300",
1586
1586
  className
1587
1587
  ),
1588
1588
  ref,
@@ -1601,12 +1601,12 @@ var Select = React51.forwardRef(
1601
1601
  {
1602
1602
  ref,
1603
1603
  className: cn(
1604
- "h-10 w-full rounded-sm border bg-white px-3 py-2 text-base text-[var(--black)] ring-offset-background",
1604
+ "h-10 w-full rounded-sm border bg-white px-3 py-2 text-base text-[var(--black)]",
1605
1605
  "placeholder:text-gray-500",
1606
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
1606
+ "focus-visible:outline-none",
1607
1607
  "disabled:cursor-not-allowed disabled:opacity-50 md:text-sm transition-colors",
1608
1608
  "appearance-none pr-10",
1609
- error ? "border-red-500 focus-visible:ring-red-500" : "border-gray-300 focus-visible:ring-[var(--cyan)]",
1609
+ error ? "border-red-500" : "border-gray-300",
1610
1610
  className
1611
1611
  ),
1612
1612
  "aria-invalid": error ? "true" : void 0,
@@ -1679,7 +1679,7 @@ var Switch = React51.forwardRef(({ className, size = "default", ...props }, ref)
1679
1679
  SwitchPrimitive.Root,
1680
1680
  {
1681
1681
  className: cn(
1682
- "peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-[var(--cyan)] data-[state=unchecked]:bg-input",
1682
+ "peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-[var(--cyan)] data-[state=unchecked]:bg-input",
1683
1683
  sizeStyles[size].root,
1684
1684
  className
1685
1685
  ),
@@ -1769,8 +1769,8 @@ var Slider = React51.forwardRef(({ className, showValue, formatValue, size = "de
1769
1769
  SliderPrimitive.Thumb,
1770
1770
  {
1771
1771
  className: cn(
1772
- "block rounded-full border-2 border-[var(--cyan)] bg-white shadow-md ring-offset-background transition-colors",
1773
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--cyan)] focus-visible:ring-offset-2",
1772
+ "block rounded-full border-2 border-[var(--cyan)] bg-white shadow-md transition-colors",
1773
+ "focus-visible:outline-none",
1774
1774
  "disabled:pointer-events-none disabled:opacity-50",
1775
1775
  "hover:border-[var(--cyan-dark,#00bfaa)] cursor-pointer",
1776
1776
  sizeStyles[size].thumb
@@ -1809,7 +1809,7 @@ var RadioGroupItem = React51.forwardRef(({ className, ...props }, ref) => {
1809
1809
  {
1810
1810
  ref,
1811
1811
  className: cn(
1812
- "aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
1812
+ "aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
1813
1813
  className
1814
1814
  ),
1815
1815
  ...props,
@@ -1844,7 +1844,7 @@ var RadioGroupCard = React51.forwardRef(({ label, description, children, classNa
1844
1844
  ref,
1845
1845
  id: cardId,
1846
1846
  className: cn(
1847
- "relative flex cursor-pointer rounded-lg border bg-background p-4 transition-all hover:border-[var(--cyan)]/50 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 data-[state=checked]:border-[var(--cyan)] data-[state=checked]:ring-1 data-[state=checked]:ring-[var(--cyan)] disabled:cursor-not-allowed disabled:opacity-50",
1847
+ "relative flex cursor-pointer rounded-lg border bg-background p-4 transition-all hover:border-[var(--cyan)]/50 focus:outline-none focus-visible:outline-none data-[state=checked]:border-[var(--cyan)] data-[state=checked]:ring-1 data-[state=checked]:ring-[var(--cyan)] disabled:cursor-not-allowed disabled:opacity-50",
1848
1848
  className
1849
1849
  ),
1850
1850
  ...props,
@@ -2523,7 +2523,7 @@ var FormField = React51.forwardRef(
2523
2523
  "aria-describedby": error ? errorId : helperText ? helperId : void 0,
2524
2524
  className: cn(
2525
2525
  childProps.className,
2526
- error && "border-red-500 focus-visible:ring-red-500"
2526
+ error && "border-red-500"
2527
2527
  )
2528
2528
  });
2529
2529
  }
@@ -2658,7 +2658,7 @@ var TabsTrigger = React51.forwardRef(({ className, ...props }, ref) => /* @__PUR
2658
2658
  {
2659
2659
  ref,
2660
2660
  className: cn(
2661
- "inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",
2661
+ "inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium transition-all focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",
2662
2662
  className
2663
2663
  ),
2664
2664
  ...props
@@ -2670,7 +2670,7 @@ var TabsContent = React51.forwardRef(({ className, ...props }, ref) => /* @__PUR
2670
2670
  {
2671
2671
  ref,
2672
2672
  className: cn(
2673
- "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
2673
+ "mt-2 focus-visible:outline-none",
2674
2674
  className
2675
2675
  ),
2676
2676
  ...props
@@ -2732,7 +2732,7 @@ var DialogContent = React51.forwardRef(({ className, children, ...props }, ref)
2732
2732
  ...props,
2733
2733
  children: [
2734
2734
  children,
2735
- /* @__PURE__ */ jsxs(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-[var(--cyan)] focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-gray-100", children: [
2735
+ /* @__PURE__ */ jsxs(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-gray-100", children: [
2736
2736
  /* @__PURE__ */ jsx(X, { className: "h-4 w-4" }),
2737
2737
  /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
2738
2738
  ] })
@@ -3042,7 +3042,7 @@ var ToastAction = React51.forwardRef(({ className, ...props }, ref) => /* @__PUR
3042
3042
  {
3043
3043
  ref,
3044
3044
  className: cn(
3045
- "inline-flex h-8 shrink-0 items-center justify-center rounded-sm border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
3045
+ "inline-flex h-8 shrink-0 items-center justify-center rounded-sm border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-gray-100 focus:outline-none disabled:pointer-events-none disabled:opacity-50",
3046
3046
  className
3047
3047
  ),
3048
3048
  ...props
@@ -3801,7 +3801,7 @@ var DateRangeSelect = React51.forwardRef(
3801
3801
  value,
3802
3802
  onChange: (e) => onChange(e.target.value),
3803
3803
  className: cn(
3804
- "h-9 rounded-sm border border-input bg-background px-3 text-sm ring-offset-background focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
3804
+ "h-9 rounded-sm border border-input bg-background px-3 text-sm focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",
3805
3805
  className
3806
3806
  ),
3807
3807
  children: presets.map((preset) => /* @__PURE__ */ jsx("option", { value: preset, children: presetLabels[preset] }, preset))
@@ -4657,7 +4657,7 @@ function ImpactMetricsForm({
4657
4657
  ...prev,
4658
4658
  time_saved_minutes_per_run: parseInt(e.target.value) || 0
4659
4659
  })),
4660
- className: "w-16 px-2 py-1 text-2xl font-bold border border-border rounded-sm focus:outline-none focus:ring-2 focus:ring-[var(--cyan)] bg-background",
4660
+ className: "w-16 px-2 py-1 text-2xl font-bold border border-border rounded-sm focus:outline-none bg-background",
4661
4661
  min: "0"
4662
4662
  }
4663
4663
  ),
@@ -4680,7 +4680,7 @@ function ImpactMetricsForm({
4680
4680
  ...prev,
4681
4681
  hourly_rate_euros: parseFloat(e.target.value) || 0
4682
4682
  })),
4683
- className: "w-16 px-2 py-1 text-2xl font-bold border border-border rounded-sm focus:outline-none focus:ring-2 focus:ring-[var(--cyan)] bg-background",
4683
+ className: "w-16 px-2 py-1 text-2xl font-bold border border-border rounded-sm focus:outline-none bg-background",
4684
4684
  min: "0",
4685
4685
  step: "0.5"
4686
4686
  }
@@ -4704,7 +4704,7 @@ function ImpactMetricsForm({
4704
4704
  ...prev,
4705
4705
  fte_equivalent: (parseFloat(e.target.value) || 0) / 100
4706
4706
  })),
4707
- className: "w-16 px-2 py-1 text-2xl font-bold border border-border rounded-sm focus:outline-none focus:ring-2 focus:ring-[var(--cyan)] bg-background",
4707
+ className: "w-16 px-2 py-1 text-2xl font-bold border border-border rounded-sm focus:outline-none bg-background",
4708
4708
  min: "0",
4709
4709
  max: "1000",
4710
4710
  step: "5"