@yuva-devlab/ui 1.0.0 → 1.0.1

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.js CHANGED
@@ -137,7 +137,7 @@ import { Slot } from "@radix-ui/react-slot";
137
137
  import { cva } from "class-variance-authority";
138
138
  import { jsx as jsx3 } from "react/jsx-runtime";
139
139
  var buttonVariants = cva(
140
- "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
140
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
141
141
  {
142
142
  variants: {
143
143
  variant: {
@@ -423,7 +423,10 @@ var BreadcrumbLink = React8.forwardRef(({ asChild, className, ...props }, ref) =
423
423
  Comp,
424
424
  {
425
425
  ref,
426
- className: cn("transition-colors hover:text-foreground", className),
426
+ className: cn(
427
+ "cursor-pointer transition-colors hover:text-foreground",
428
+ className
429
+ ),
427
430
  ...props
428
431
  }
429
432
  );
@@ -1143,7 +1146,7 @@ var Checkbox = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__
1143
1146
  {
1144
1147
  ref,
1145
1148
  className: cn(
1146
- "grid place-content-center peer shrink-0 rounded-sm border border-primary shadow cursor-pointer focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground size-4",
1149
+ "grid place-content-center peer shrink-0 rounded-sm border border-primary shadow cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground size-4",
1147
1150
  className
1148
1151
  ),
1149
1152
  ...props,
@@ -1203,7 +1206,7 @@ var DialogContent = React14.forwardRef(({ className, children, ...props }, ref)
1203
1206
  ...props,
1204
1207
  children: [
1205
1208
  children,
1206
- /* @__PURE__ */ jsxs6(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background cursor-pointer transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
1209
+ /* @__PURE__ */ jsxs6(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background cursor-pointer transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
1207
1210
  /* @__PURE__ */ jsx14(X, { className: "size-4" }),
1208
1211
  /* @__PURE__ */ jsx14("span", { className: "sr-only", children: "Close" })
1209
1212
  ] })
@@ -1604,7 +1607,7 @@ var DropdownMenuSubTrigger = React18.forwardRef(({ className, inset, children, .
1604
1607
  {
1605
1608
  ref,
1606
1609
  className: cn(
1607
- "flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
1610
+ "flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
1608
1611
  inset && "pl-8",
1609
1612
  className
1610
1613
  ),
@@ -1647,7 +1650,7 @@ var DropdownMenuItem = React18.forwardRef(({ className, inset, ...props }, ref)
1647
1650
  {
1648
1651
  ref,
1649
1652
  className: cn(
1650
- "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
1653
+ "relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
1651
1654
  inset && "pl-8",
1652
1655
  className
1653
1656
  ),
@@ -1660,7 +1663,7 @@ var DropdownMenuCheckboxItem = React18.forwardRef(({ className, children, ...pro
1660
1663
  {
1661
1664
  ref,
1662
1665
  className: cn(
1663
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",
1666
+ "relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",
1664
1667
  className
1665
1668
  ),
1666
1669
  ...props,
@@ -1676,7 +1679,7 @@ var DropdownMenuRadioItem = React18.forwardRef(({ className, children, ...props
1676
1679
  {
1677
1680
  ref,
1678
1681
  className: cn(
1679
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",
1682
+ "relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",
1680
1683
  className
1681
1684
  ),
1682
1685
  ...props,
@@ -1926,7 +1929,7 @@ var Input = React23.forwardRef(
1926
1929
  {
1927
1930
  type,
1928
1931
  className: cn(
1929
- "flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
1932
+ "flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:font-medium file:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
1930
1933
  className
1931
1934
  ),
1932
1935
  ref,
@@ -2474,7 +2477,7 @@ var SelectTrigger = React31.forwardRef(({ className, children, ...props }, ref)
2474
2477
  {
2475
2478
  ref,
2476
2479
  className: cn(
2477
- "flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background cursor-pointer data-placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
2480
+ "flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background cursor-pointer data-placeholder:text-muted-foreground focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 disabled:opacity-50 [&>span]:line-clamp-1",
2478
2481
  className
2479
2482
  ),
2480
2483
  ...props,
@@ -2517,7 +2520,7 @@ var SelectContent = React31.forwardRef(({ className, children, position = "poppe
2517
2520
  ref,
2518
2521
  className: cn(
2519
2522
  "relative z-50 max-h-(--radix-select-content-available-height) min-w-32 overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-select-content-transform-origin)",
2520
- position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
2523
+ position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1",
2521
2524
  className
2522
2525
  ),
2523
2526
  position,
@@ -2553,7 +2556,7 @@ var SelectItem = React31.forwardRef(({ className, children, ...props }, ref) =>
2553
2556
  {
2554
2557
  ref,
2555
2558
  className: cn(
2556
- "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",
2559
+ "relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",
2557
2560
  className
2558
2561
  ),
2559
2562
  ...props,
@@ -3488,7 +3491,7 @@ var TabsTrigger = React39.forwardRef(({ className, ...props }, ref) => /* @__PUR
3488
3491
  {
3489
3492
  ref,
3490
3493
  className: cn(
3491
- "inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background cursor-pointer 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 disabled:cursor-not-allowed data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",
3494
+ "inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background cursor-pointer transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary 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",
3492
3495
  className
3493
3496
  ),
3494
3497
  ...props
@@ -3500,7 +3503,7 @@ var TabsContent = React39.forwardRef(({ className, ...props }, ref) => /* @__PUR
3500
3503
  {
3501
3504
  ref,
3502
3505
  className: cn(
3503
- "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
3506
+ "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",
3504
3507
  className
3505
3508
  ),
3506
3509
  ...props
@@ -3516,7 +3519,7 @@ var Textarea = React40.forwardRef(({ className, ...props }, ref) => {
3516
3519
  "textarea",
3517
3520
  {
3518
3521
  className: cn(
3519
- "flex min-h-15 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
3522
+ "flex min-h-15 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
3520
3523
  className
3521
3524
  ),
3522
3525
  ref,