@pixpilot/shadcn 0.1.0

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.
Files changed (133) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +3 -0
  3. package/dist/OrContinueWithSeparator-BvOMy_0X.d.ts +11 -0
  4. package/dist/OrContinueWithSeparator-Cs96m5UB.js +28 -0
  5. package/dist/alert-DUygh_xL.d.ts +24 -0
  6. package/dist/alert-DuQQzE0M.js +39 -0
  7. package/dist/alert-dialog-BQBvTsjx.d.ts +48 -0
  8. package/dist/avatar-4_qFkDQq.d.ts +19 -0
  9. package/dist/avatar-DWlyZZC1.js +31 -0
  10. package/dist/badge-BtexTWYL.d.ts +19 -0
  11. package/dist/badge-ChGpGKfr.js +27 -0
  12. package/dist/button-BlGZakU_.d.ts +21 -0
  13. package/dist/button-CoM3CepB.js +46 -0
  14. package/dist/calendar-5J34tX7L.js +107 -0
  15. package/dist/calendar-DK_qW8tK.d.ts +26 -0
  16. package/dist/card-8btbTKaB.d.ts +34 -0
  17. package/dist/card-Bf0-1Hox.js +58 -0
  18. package/dist/checkbox-BfAe26dy.d.ts +11 -0
  19. package/dist/checkbox-ChqHvI5Y.js +23 -0
  20. package/dist/command-BzJMrpFw.js +88 -0
  21. package/dist/command-CTOqnzSx.d.ts +52 -0
  22. package/dist/components/index-DVJl6H4Z.d.ts +30 -0
  23. package/dist/components/index.js +33 -0
  24. package/dist/components/ui/OrContinueWithSeparator-DT1kKIwU.d.ts +2 -0
  25. package/dist/components/ui/OrContinueWithSeparator.js +7 -0
  26. package/dist/components/ui/alert-Dnyd20KB.d.ts +2 -0
  27. package/dist/components/ui/alert-dialog-D6vR-1Jz.d.ts +2 -0
  28. package/dist/components/ui/alert-dialog.js +35 -0
  29. package/dist/components/ui/alert.js +6 -0
  30. package/dist/components/ui/avatar-CBM6Rxkl.d.ts +2 -0
  31. package/dist/components/ui/avatar.js +6 -0
  32. package/dist/components/ui/badge-tZQG9OGU.d.ts +2 -0
  33. package/dist/components/ui/badge.js +6 -0
  34. package/dist/components/ui/button-B1jOU2SH.d.ts +2 -0
  35. package/dist/components/ui/button.js +6 -0
  36. package/dist/components/ui/calendar-CJJGD2Mp.d.ts +2 -0
  37. package/dist/components/ui/calendar.js +7 -0
  38. package/dist/components/ui/card-Dw7UFh1G.d.ts +2 -0
  39. package/dist/components/ui/card.js +6 -0
  40. package/dist/components/ui/checkbox-B4Zt92ES.d.ts +2 -0
  41. package/dist/components/ui/checkbox.js +8 -0
  42. package/dist/components/ui/command-Bo9iT_Mm.d.ts +2 -0
  43. package/dist/components/ui/command.js +9 -0
  44. package/dist/components/ui/dialog-DwFy7VXb.d.ts +2 -0
  45. package/dist/components/ui/dialog.js +6 -0
  46. package/dist/components/ui/dropdown-menu-CUC5b1yi.d.ts +2 -0
  47. package/dist/components/ui/dropdown-menu.js +6 -0
  48. package/dist/components/ui/file-upload-BKYxasJe.d.ts +2 -0
  49. package/dist/components/ui/file-upload.js +8 -0
  50. package/dist/components/ui/form-Ui-fGegs.d.ts +2 -0
  51. package/dist/components/ui/form.js +7 -0
  52. package/dist/components/ui/index-BDJfgHZT.d.ts +30 -0
  53. package/dist/components/ui/index.js +33 -0
  54. package/dist/components/ui/input-O6aZyiJl.d.ts +2 -0
  55. package/dist/components/ui/input.js +6 -0
  56. package/dist/components/ui/label-CiFY9QCm.d.ts +2 -0
  57. package/dist/components/ui/label.js +6 -0
  58. package/dist/components/ui/pagination-CLlEoufd.d.ts +2 -0
  59. package/dist/components/ui/pagination.js +33 -0
  60. package/dist/components/ui/popover-BuE9HJFI.d.ts +2 -0
  61. package/dist/components/ui/popover.js +6 -0
  62. package/dist/components/ui/radio-group-BNV5xVaA.d.ts +2 -0
  63. package/dist/components/ui/radio-group.js +6 -0
  64. package/dist/components/ui/select-BAT_xUS6.d.ts +2 -0
  65. package/dist/components/ui/select.js +8 -0
  66. package/dist/components/ui/separator-rI7QiaxO.d.ts +2 -0
  67. package/dist/components/ui/separator.js +6 -0
  68. package/dist/components/ui/shadcn-io/tags/index-NcbrE1RX.d.ts +2 -0
  69. package/dist/components/ui/shadcn-io/tags/index.js +13 -0
  70. package/dist/components/ui/shadcn-io/tags-input-inline/index-CAYAMlWT.d.ts +2 -0
  71. package/dist/components/ui/shadcn-io/tags-input-inline/index.js +5 -0
  72. package/dist/components/ui/sheet-CPsrps2C.d.ts +2 -0
  73. package/dist/components/ui/sheet.js +6 -0
  74. package/dist/components/ui/slider-DqROXr79.d.ts +2 -0
  75. package/dist/components/ui/slider.js +6 -0
  76. package/dist/components/ui/switch-BF2c_Zn9.d.ts +2 -0
  77. package/dist/components/ui/switch.js +8 -0
  78. package/dist/components/ui/tabs-DRhGRCqD.d.ts +2 -0
  79. package/dist/components/ui/tabs.js +6 -0
  80. package/dist/components/ui/textarea-BoOWHGtB.d.ts +2 -0
  81. package/dist/components/ui/textarea.js +6 -0
  82. package/dist/components/ui/tooltip-BcAxWshO.d.ts +2 -0
  83. package/dist/components/ui/tooltip.js +6 -0
  84. package/dist/dialog-C4wKr521.d.ts +47 -0
  85. package/dist/dialog-CnHQjTPX.js +88 -0
  86. package/dist/dropdown-menu-BytmAQI6.js +125 -0
  87. package/dist/dropdown-menu-CnrLe3nb.d.ts +77 -0
  88. package/dist/file-upload-BEeMesnR.js +907 -0
  89. package/dist/file-upload-BLSfy-1K.d.ts +94 -0
  90. package/dist/form-BSwltNo1.d.ts +45 -0
  91. package/dist/form-BjnyYpgw.js +89 -0
  92. package/dist/index-BSKUD7fA.d.ts +39 -0
  93. package/dist/index-Bpvi7gIc.d.ts +31 -0
  94. package/dist/index-CZUtOTjh.d.ts +1 -0
  95. package/dist/index-CkSrVqpn.d.ts +31 -0
  96. package/dist/index-DwHkYD1A.d.ts +70 -0
  97. package/dist/index.js +33 -0
  98. package/dist/input-CUeyj64L.js +17 -0
  99. package/dist/input-Mvgjlh3F.d.ts +11 -0
  100. package/dist/jsx-runtime-CjFsk39Z.js +274 -0
  101. package/dist/label-CaJMuv7i.d.ts +11 -0
  102. package/dist/label-DGznqsHm.js +17 -0
  103. package/dist/lib/index-ChuxSUKt.d.ts +2 -0
  104. package/dist/lib/index.js +4 -0
  105. package/dist/lib/utils-45Ez8x6p.d.ts +2 -0
  106. package/dist/lib/utils.js +3 -0
  107. package/dist/lib-B_fww26I.js +1 -0
  108. package/dist/popover-CV48KL0e.js +37 -0
  109. package/dist/popover-DpSyC3-j.d.ts +22 -0
  110. package/dist/radio-group-Cfa4brdK.d.ts +15 -0
  111. package/dist/radio-group-jaFHISZ7.js +30 -0
  112. package/dist/select-B3Zt7fRL.d.ts +52 -0
  113. package/dist/select-C96xvMSx.js +99 -0
  114. package/dist/separator-C71XEO3E.js +19 -0
  115. package/dist/separator-Cucb_6O4.d.ts +13 -0
  116. package/dist/sheet-B3Ak6LSw.d.ts +40 -0
  117. package/dist/sheet-BlZGrRNt.js +84 -0
  118. package/dist/slider-CdK5O4pc.js +38 -0
  119. package/dist/slider-D8tCfiZV.d.ts +15 -0
  120. package/dist/src-DQlJgy1h.js +157 -0
  121. package/dist/switch-Bz5Iiy2_.js +21 -0
  122. package/dist/switch-DXaptB6g.d.ts +11 -0
  123. package/dist/tabs-B0X-LEdY.d.ts +23 -0
  124. package/dist/tabs-BjolTUEI.js +38 -0
  125. package/dist/tags-BnJCu0NQ.js +131 -0
  126. package/dist/tags-input-inline-DnEu3Dyw.js +58 -0
  127. package/dist/textarea-09eXlo5q.d.ts +10 -0
  128. package/dist/textarea-BNZyZgAM.js +16 -0
  129. package/dist/tooltip-BQpFgVRJ.d.ts +23 -0
  130. package/dist/tooltip-CuYs-__e.js +38 -0
  131. package/dist/utils-D2WOFi-N.js +10 -0
  132. package/dist/utils-_VBxPjie.d.ts +6 -0
  133. package/package.json +101 -0
@@ -0,0 +1,40 @@
1
+ import * as React from "react";
2
+ import * as SheetPrimitive from "@radix-ui/react-dialog";
3
+ import * as react_jsx_runtime31 from "react/jsx-runtime";
4
+
5
+ //#region src/components/ui/sheet.d.ts
6
+ declare function Sheet({
7
+ ...props
8
+ }: React.ComponentProps<typeof SheetPrimitive.Root>): react_jsx_runtime31.JSX.Element;
9
+ declare function SheetTrigger({
10
+ ...props
11
+ }: React.ComponentProps<typeof SheetPrimitive.Trigger>): react_jsx_runtime31.JSX.Element;
12
+ declare function SheetClose({
13
+ ...props
14
+ }: React.ComponentProps<typeof SheetPrimitive.Close>): react_jsx_runtime31.JSX.Element;
15
+ declare function SheetContent({
16
+ className,
17
+ children,
18
+ side,
19
+ ...props
20
+ }: React.ComponentProps<typeof SheetPrimitive.Content> & {
21
+ side?: 'top' | 'right' | 'bottom' | 'left';
22
+ }): react_jsx_runtime31.JSX.Element;
23
+ declare function SheetHeader({
24
+ className,
25
+ ...props
26
+ }: React.ComponentProps<'div'>): react_jsx_runtime31.JSX.Element;
27
+ declare function SheetFooter({
28
+ className,
29
+ ...props
30
+ }: React.ComponentProps<'div'>): react_jsx_runtime31.JSX.Element;
31
+ declare function SheetTitle({
32
+ className,
33
+ ...props
34
+ }: React.ComponentProps<typeof SheetPrimitive.Title>): react_jsx_runtime31.JSX.Element;
35
+ declare function SheetDescription({
36
+ className,
37
+ ...props
38
+ }: React.ComponentProps<typeof SheetPrimitive.Description>): react_jsx_runtime31.JSX.Element;
39
+ //#endregion
40
+ export { SheetFooter as a, SheetTrigger as c, SheetDescription as i, SheetClose as n, SheetHeader as o, SheetContent as r, SheetTitle as s, Sheet as t };
@@ -0,0 +1,84 @@
1
+ import { n as __toESM, t as require_jsx_runtime } from "./jsx-runtime-CjFsk39Z.js";
2
+ import { t as cn } from "./utils-D2WOFi-N.js";
3
+ import "react";
4
+ import { XIcon } from "lucide-react";
5
+ import * as SheetPrimitive from "@radix-ui/react-dialog";
6
+
7
+ //#region src/components/ui/sheet.tsx
8
+ var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
9
+ function Sheet({ ...props }) {
10
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SheetPrimitive.Root, {
11
+ "data-slot": "sheet",
12
+ ...props
13
+ });
14
+ }
15
+ function SheetTrigger({ ...props }) {
16
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SheetPrimitive.Trigger, {
17
+ "data-slot": "sheet-trigger",
18
+ ...props
19
+ });
20
+ }
21
+ function SheetClose({ ...props }) {
22
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SheetPrimitive.Close, {
23
+ "data-slot": "sheet-close",
24
+ ...props
25
+ });
26
+ }
27
+ function SheetPortal({ ...props }) {
28
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SheetPrimitive.Portal, {
29
+ "data-slot": "sheet-portal",
30
+ ...props
31
+ });
32
+ }
33
+ function SheetOverlay({ className, ...props }) {
34
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SheetPrimitive.Overlay, {
35
+ "data-slot": "sheet-overlay",
36
+ className: cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", className),
37
+ ...props
38
+ });
39
+ }
40
+ function SheetContent({ className, children, side = "right", ...props }) {
41
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SheetPortal, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SheetOverlay, {}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SheetPrimitive.Content, {
42
+ "data-slot": "sheet-content",
43
+ className: cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500", side === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm", side === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm", side === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b", side === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t", className),
44
+ ...props,
45
+ children: [children, /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SheetPrimitive.Close, {
46
+ className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",
47
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(XIcon, { className: "size-4" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
48
+ className: "sr-only",
49
+ children: "Close"
50
+ })]
51
+ })]
52
+ })] });
53
+ }
54
+ function SheetHeader({ className, ...props }) {
55
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
56
+ "data-slot": "sheet-header",
57
+ className: cn("flex flex-col gap-1.5 p-4", className),
58
+ ...props
59
+ });
60
+ }
61
+ function SheetFooter({ className, ...props }) {
62
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
63
+ "data-slot": "sheet-footer",
64
+ className: cn("mt-auto flex flex-col gap-2 p-4", className),
65
+ ...props
66
+ });
67
+ }
68
+ function SheetTitle({ className, ...props }) {
69
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SheetPrimitive.Title, {
70
+ "data-slot": "sheet-title",
71
+ className: cn("text-foreground font-semibold", className),
72
+ ...props
73
+ });
74
+ }
75
+ function SheetDescription({ className, ...props }) {
76
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SheetPrimitive.Description, {
77
+ "data-slot": "sheet-description",
78
+ className: cn("text-muted-foreground text-sm", className),
79
+ ...props
80
+ });
81
+ }
82
+
83
+ //#endregion
84
+ export { SheetFooter as a, SheetTrigger as c, SheetDescription as i, SheetClose as n, SheetHeader as o, SheetContent as r, SheetTitle as s, Sheet as t };
@@ -0,0 +1,38 @@
1
+ import { n as __toESM, t as require_jsx_runtime } from "./jsx-runtime-CjFsk39Z.js";
2
+ import { t as cn } from "./utils-D2WOFi-N.js";
3
+ import * as React from "react";
4
+ import * as SliderPrimitive from "@radix-ui/react-slider";
5
+
6
+ //#region src/components/ui/slider.tsx
7
+ var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
8
+ function Slider({ className, defaultValue, value, min = 0, max = 100, ...props }) {
9
+ const _values = React.useMemo(() => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max], [
10
+ value,
11
+ defaultValue,
12
+ min,
13
+ max
14
+ ]);
15
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SliderPrimitive.Root, {
16
+ "data-slot": "slider",
17
+ defaultValue,
18
+ value,
19
+ min,
20
+ max,
21
+ className: cn("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col", className),
22
+ ...props,
23
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SliderPrimitive.Track, {
24
+ "data-slot": "slider-track",
25
+ className: cn("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),
26
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SliderPrimitive.Range, {
27
+ "data-slot": "slider-range",
28
+ className: cn("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")
29
+ })
30
+ }), Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SliderPrimitive.Thumb, {
31
+ "data-slot": "slider-thumb",
32
+ className: "border-primary ring-ring/50 block size-4 shrink-0 rounded-full border bg-white shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
33
+ }, index))]
34
+ });
35
+ }
36
+
37
+ //#endregion
38
+ export { Slider as t };
@@ -0,0 +1,15 @@
1
+ import * as React from "react";
2
+ import * as SliderPrimitive from "@radix-ui/react-slider";
3
+ import * as react_jsx_runtime133 from "react/jsx-runtime";
4
+
5
+ //#region src/components/ui/slider.d.ts
6
+ declare function Slider({
7
+ className,
8
+ defaultValue,
9
+ value,
10
+ min,
11
+ max,
12
+ ...props
13
+ }: React.ComponentProps<typeof SliderPrimitive.Root>): react_jsx_runtime133.JSX.Element;
14
+ //#endregion
15
+ export { Slider as t };
@@ -0,0 +1,157 @@
1
+ import { n as __toESM, t as require_jsx_runtime } from "./jsx-runtime-CjFsk39Z.js";
2
+ import { t as cn } from "./utils-D2WOFi-N.js";
3
+ import { n as buttonVariants } from "./button-CoM3CepB.js";
4
+ import "react";
5
+ import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
6
+ import { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
7
+
8
+ //#region src/components/ui/alert-dialog.tsx
9
+ var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
10
+ function AlertDialog({ ...props }) {
11
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogPrimitive.Root, {
12
+ "data-slot": "alert-dialog",
13
+ ...props
14
+ });
15
+ }
16
+ function AlertDialogTrigger({ ...props }) {
17
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogPrimitive.Trigger, {
18
+ "data-slot": "alert-dialog-trigger",
19
+ ...props
20
+ });
21
+ }
22
+ function AlertDialogPortal({ ...props }) {
23
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogPrimitive.Portal, {
24
+ "data-slot": "alert-dialog-portal",
25
+ ...props
26
+ });
27
+ }
28
+ function AlertDialogOverlay({ className, ...props }) {
29
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogPrimitive.Overlay, {
30
+ "data-slot": "alert-dialog-overlay",
31
+ className: cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", className),
32
+ ...props
33
+ });
34
+ }
35
+ function AlertDialogContent({ className, ...props }) {
36
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertDialogPortal, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogOverlay, {}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogPrimitive.Content, {
37
+ "data-slot": "alert-dialog-content",
38
+ className: cn("bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg", className),
39
+ ...props
40
+ })] });
41
+ }
42
+ function AlertDialogHeader({ className, ...props }) {
43
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
44
+ "data-slot": "alert-dialog-header",
45
+ className: cn("flex flex-col gap-2 text-center sm:text-left", className),
46
+ ...props
47
+ });
48
+ }
49
+ function AlertDialogFooter({ className, ...props }) {
50
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
51
+ "data-slot": "alert-dialog-footer",
52
+ className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
53
+ ...props
54
+ });
55
+ }
56
+ function AlertDialogTitle({ className, ...props }) {
57
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogPrimitive.Title, {
58
+ "data-slot": "alert-dialog-title",
59
+ className: cn("text-lg font-semibold", className),
60
+ ...props
61
+ });
62
+ }
63
+ function AlertDialogDescription({ className, ...props }) {
64
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogPrimitive.Description, {
65
+ "data-slot": "alert-dialog-description",
66
+ className: cn("text-muted-foreground text-sm", className),
67
+ ...props
68
+ });
69
+ }
70
+ function AlertDialogAction({ className, ...props }) {
71
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogPrimitive.Action, {
72
+ className: cn(buttonVariants(), className),
73
+ ...props
74
+ });
75
+ }
76
+ function AlertDialogCancel({ className, ...props }) {
77
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogPrimitive.Cancel, {
78
+ className: cn(buttonVariants({ variant: "outline" }), className),
79
+ ...props
80
+ });
81
+ }
82
+
83
+ //#endregion
84
+ //#region src/components/ui/pagination.tsx
85
+ function Pagination({ className, ...props }) {
86
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("nav", {
87
+ role: "navigation",
88
+ "aria-label": "pagination",
89
+ "data-slot": "pagination",
90
+ className: cn("mx-auto flex w-full justify-center", className),
91
+ ...props
92
+ });
93
+ }
94
+ function PaginationContent({ className, ...props }) {
95
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("ul", {
96
+ "data-slot": "pagination-content",
97
+ className: cn("flex flex-row items-center gap-1", className),
98
+ ...props
99
+ });
100
+ }
101
+ function PaginationItem({ ...props }) {
102
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("li", {
103
+ "data-slot": "pagination-item",
104
+ ...props
105
+ });
106
+ }
107
+ function PaginationLink({ className, isActive, size = "icon", ...props }) {
108
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", {
109
+ "aria-current": isActive ? "page" : void 0,
110
+ "data-slot": "pagination-link",
111
+ "data-active": isActive,
112
+ className: cn(buttonVariants({
113
+ variant: isActive ? "outline" : "ghost",
114
+ size
115
+ }), className),
116
+ ...props
117
+ });
118
+ }
119
+ function PaginationPrevious({ className, ...props }) {
120
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(PaginationLink, {
121
+ "aria-label": "Go to previous page",
122
+ size: "default",
123
+ className: cn("gap-1 px-2.5 sm:pl-2.5", className),
124
+ ...props,
125
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronLeftIcon, {}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
126
+ className: "hidden sm:block",
127
+ children: "Previous"
128
+ })]
129
+ });
130
+ }
131
+ function PaginationNext({ className, ...props }) {
132
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(PaginationLink, {
133
+ "aria-label": "Go to next page",
134
+ size: "default",
135
+ className: cn("gap-1 px-2.5 sm:pr-2.5", className),
136
+ ...props,
137
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
138
+ className: "hidden sm:block",
139
+ children: "Next"
140
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronRightIcon, {})]
141
+ });
142
+ }
143
+ function PaginationEllipsis({ className, ...props }) {
144
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
145
+ "aria-hidden": true,
146
+ "data-slot": "pagination-ellipsis",
147
+ className: cn("flex size-9 items-center justify-center", className),
148
+ ...props,
149
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MoreHorizontalIcon, { className: "size-4" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
150
+ className: "sr-only",
151
+ children: "More pages"
152
+ })]
153
+ });
154
+ }
155
+
156
+ //#endregion
157
+ export { AlertDialogTitle as _, PaginationLink as a, AlertDialog as c, AlertDialogContent as d, AlertDialogDescription as f, AlertDialogPortal as g, AlertDialogOverlay as h, PaginationItem as i, AlertDialogAction as l, AlertDialogHeader as m, PaginationContent as n, PaginationNext as o, AlertDialogFooter as p, PaginationEllipsis as r, PaginationPrevious as s, Pagination as t, AlertDialogCancel as u, AlertDialogTrigger as v };
@@ -0,0 +1,21 @@
1
+ import { n as __toESM, t as require_jsx_runtime } from "./jsx-runtime-CjFsk39Z.js";
2
+ import { t as cn } from "./utils-D2WOFi-N.js";
3
+ import "react";
4
+ import * as SwitchPrimitive from "@radix-ui/react-switch";
5
+
6
+ //#region src/components/ui/switch.tsx
7
+ var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
8
+ function Switch({ className, ...props }) {
9
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SwitchPrimitive.Root, {
10
+ "data-slot": "switch",
11
+ className: cn("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", className),
12
+ ...props,
13
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SwitchPrimitive.Thumb, {
14
+ "data-slot": "switch-thumb",
15
+ className: cn("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")
16
+ })
17
+ });
18
+ }
19
+
20
+ //#endregion
21
+ export { Switch as t };
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ import * as SwitchPrimitive from "@radix-ui/react-switch";
3
+ import * as react_jsx_runtime98 from "react/jsx-runtime";
4
+
5
+ //#region src/components/ui/switch.d.ts
6
+ declare function Switch({
7
+ className,
8
+ ...props
9
+ }: React.ComponentProps<typeof SwitchPrimitive.Root>): react_jsx_runtime98.JSX.Element;
10
+ //#endregion
11
+ export { Switch as t };
@@ -0,0 +1,23 @@
1
+ import * as React from "react";
2
+ import * as TabsPrimitive from "@radix-ui/react-tabs";
3
+ import * as react_jsx_runtime93 from "react/jsx-runtime";
4
+
5
+ //#region src/components/ui/tabs.d.ts
6
+ declare function Tabs({
7
+ className,
8
+ ...props
9
+ }: React.ComponentProps<typeof TabsPrimitive.Root>): react_jsx_runtime93.JSX.Element;
10
+ declare function TabsList({
11
+ className,
12
+ ...props
13
+ }: React.ComponentProps<typeof TabsPrimitive.List>): react_jsx_runtime93.JSX.Element;
14
+ declare function TabsTrigger({
15
+ className,
16
+ ...props
17
+ }: React.ComponentProps<typeof TabsPrimitive.Trigger>): react_jsx_runtime93.JSX.Element;
18
+ declare function TabsContent({
19
+ className,
20
+ ...props
21
+ }: React.ComponentProps<typeof TabsPrimitive.Content>): react_jsx_runtime93.JSX.Element;
22
+ //#endregion
23
+ export { TabsTrigger as i, TabsContent as n, TabsList as r, Tabs as t };
@@ -0,0 +1,38 @@
1
+ import { n as __toESM, t as require_jsx_runtime } from "./jsx-runtime-CjFsk39Z.js";
2
+ import { t as cn } from "./utils-D2WOFi-N.js";
3
+ import "react";
4
+ import * as TabsPrimitive from "@radix-ui/react-tabs";
5
+
6
+ //#region src/components/ui/tabs.tsx
7
+ var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
8
+ function Tabs({ className, ...props }) {
9
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TabsPrimitive.Root, {
10
+ "data-slot": "tabs",
11
+ className: cn("flex flex-col gap-2", className),
12
+ ...props
13
+ });
14
+ }
15
+ function TabsList({ className, ...props }) {
16
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TabsPrimitive.List, {
17
+ "data-slot": "tabs-list",
18
+ className: cn("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]", className),
19
+ ...props
20
+ });
21
+ }
22
+ function TabsTrigger({ className, ...props }) {
23
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TabsPrimitive.Trigger, {
24
+ "data-slot": "tabs-trigger",
25
+ className: cn("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
26
+ ...props
27
+ });
28
+ }
29
+ function TabsContent({ className, ...props }) {
30
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TabsPrimitive.Content, {
31
+ "data-slot": "tabs-content",
32
+ className: cn("flex-1 outline-none", className),
33
+ ...props
34
+ });
35
+ }
36
+
37
+ //#endregion
38
+ export { TabsTrigger as i, TabsContent as n, TabsList as r, Tabs as t };
@@ -0,0 +1,131 @@
1
+ import { n as __toESM, t as require_jsx_runtime } from "./jsx-runtime-CjFsk39Z.js";
2
+ import { t as cn } from "./utils-D2WOFi-N.js";
3
+ import { t as Badge } from "./badge-ChGpGKfr.js";
4
+ import { t as Button } from "./button-CoM3CepB.js";
5
+ import { a as CommandInput, i as CommandGroup, o as CommandItem, r as CommandEmpty, s as CommandList, t as Command } from "./command-BzJMrpFw.js";
6
+ import { i as PopoverTrigger, r as PopoverContent, t as Popover } from "./popover-CV48KL0e.js";
7
+ import { createContext, use, useEffect, useRef, useState } from "react";
8
+ import { XIcon } from "lucide-react";
9
+
10
+ //#region src/components/ui/shadcn-io/tags/index.tsx
11
+ var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
12
+ const TagsContext = createContext({
13
+ value: void 0,
14
+ setValue: void 0,
15
+ open: false,
16
+ onOpenChange: () => {},
17
+ width: void 0,
18
+ setWidth: void 0
19
+ });
20
+ function useTagsContext() {
21
+ const context = use(TagsContext);
22
+ if (!context) throw new Error("useTagsContext must be used within a TagsProvider");
23
+ return context;
24
+ }
25
+ function Tags({ value, setValue, open: controlledOpen, onOpenChange: controlledOnOpenChange, children, className }) {
26
+ const [uncontrolledOpen, setUncontrolledOpen] = useState(false);
27
+ const [width, setWidth] = useState();
28
+ const ref = useRef(null);
29
+ const open = controlledOpen ?? uncontrolledOpen;
30
+ const onOpenChange = controlledOnOpenChange ?? setUncontrolledOpen;
31
+ useEffect(() => {
32
+ if (!ref.current) return;
33
+ const resizeObserver = new ResizeObserver((entries) => {
34
+ if (entries[0]) setWidth(entries[0].contentRect.width);
35
+ });
36
+ resizeObserver.observe(ref.current);
37
+ return () => {
38
+ resizeObserver.disconnect();
39
+ };
40
+ }, []);
41
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TagsContext.Provider, {
42
+ value: {
43
+ value,
44
+ setValue,
45
+ open,
46
+ onOpenChange,
47
+ width,
48
+ setWidth
49
+ },
50
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Popover, {
51
+ onOpenChange,
52
+ open,
53
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
54
+ className: cn("relative w-full", className),
55
+ ref,
56
+ children
57
+ })
58
+ })
59
+ });
60
+ }
61
+ function TagsTrigger({ className, children, ...props }) {
62
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverTrigger, {
63
+ asChild: true,
64
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
65
+ className: cn("h-auto w-full justify-between p-2", className),
66
+ role: "combobox",
67
+ variant: "outline",
68
+ ...props,
69
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
70
+ className: "flex flex-wrap items-center gap-1",
71
+ children: [children, /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
72
+ className: "px-2 py-px text-muted-foreground",
73
+ children: "Select a tag..."
74
+ })]
75
+ })
76
+ })
77
+ });
78
+ }
79
+ function TagsValue({ className, children, onRemove, ...props }) {
80
+ const handleRemove = (event) => {
81
+ event.preventDefault();
82
+ event.stopPropagation();
83
+ onRemove?.();
84
+ };
85
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Badge, {
86
+ className: cn("flex items-center gap-2", className),
87
+ ...props,
88
+ children: [children, onRemove && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
89
+ className: "size-auto cursor-pointer hover:text-muted-foreground",
90
+ onClick: handleRemove,
91
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(XIcon, { size: 12 })
92
+ })]
93
+ });
94
+ }
95
+ function TagsContent({ className, children, ...props }) {
96
+ const { width } = useTagsContext();
97
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverContent, {
98
+ className: cn("p-0", className),
99
+ style: { width },
100
+ ...props,
101
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Command, { children })
102
+ });
103
+ }
104
+ function TagsInput({ className, ...props }) {
105
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CommandInput, {
106
+ className: cn("h-9", className),
107
+ ...props
108
+ });
109
+ }
110
+ function TagsList({ className, ...props }) {
111
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CommandList, {
112
+ className: cn("max-h-[200px]", className),
113
+ ...props
114
+ });
115
+ }
116
+ function TagsEmpty({ children, className, ...props }) {
117
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CommandEmpty, {
118
+ ...props,
119
+ children: children ?? "No tags found."
120
+ });
121
+ }
122
+ const TagsGroup = CommandGroup;
123
+ function TagsItem({ className, ...props }) {
124
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CommandItem, {
125
+ className: cn("cursor-pointer items-center justify-between", className),
126
+ ...props
127
+ });
128
+ }
129
+
130
+ //#endregion
131
+ export { TagsInput as a, TagsTrigger as c, TagsGroup as i, TagsValue as l, TagsContent as n, TagsItem as o, TagsEmpty as r, TagsList as s, Tags as t };
@@ -0,0 +1,58 @@
1
+ import { n as __toESM, t as require_jsx_runtime } from "./jsx-runtime-CjFsk39Z.js";
2
+ import { t as cn } from "./utils-D2WOFi-N.js";
3
+ import { X } from "lucide-react";
4
+ import * as TagsInputPrimitive from "@diceui/tags-input";
5
+
6
+ //#region src/components/ui/shadcn-io/tags-input-inline/index.tsx
7
+ var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
8
+ function TagsInputInLineRoot({ className, ...props }) {
9
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TagsInputPrimitive.Root, {
10
+ "data-slot": "tags-input",
11
+ className: cn("flex w-full flex-col", className),
12
+ ...props
13
+ });
14
+ }
15
+ function TagsInputInLineLabel({ className, ...props }) {
16
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TagsInputPrimitive.Label, {
17
+ "data-slot": "tags-input-label",
18
+ className: cn("font-medium text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70", className),
19
+ ...props
20
+ });
21
+ }
22
+ function TagsInputInLineList({ className, ...props }) {
23
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
24
+ "data-slot": "tags-input-list",
25
+ className: cn("flex min-h-10 w-full flex-wrap items-center gap-1.5 rounded-md border border-input bg-background px-3 py-2 text-sm focus-within:ring-1 focus-within:ring-ring disabled:cursor-not-allowed disabled:opacity-50", className),
26
+ ...props
27
+ });
28
+ }
29
+ function TagsInputInLineInput({ className, ...props }) {
30
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TagsInputPrimitive.Input, {
31
+ "data-slot": "tags-input-input",
32
+ className: cn("flex-1 bg-transparent outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50", className),
33
+ ...props
34
+ });
35
+ }
36
+ function TagsInputInLineItem({ className, children, ...props }) {
37
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TagsInputPrimitive.Item, {
38
+ "data-slot": "tags-input-item",
39
+ className: cn("inline-flex max-w-[calc(100%-8px)] items-center gap-1.5 rounded border bg-transparent px-2.5 py-1 text-sm focus:outline-hidden data-disabled:cursor-not-allowed data-editable:select-none data-editing:bg-transparent data-disabled:opacity-50 data-editing:ring-1 data-editing:ring-ring [&:not([data-editing])]:pr-1.5 [&[data-highlighted]:not([data-editing])]:bg-accent [&[data-highlighted]:not([data-editing])]:text-accent-foreground", className),
40
+ ...props,
41
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TagsInputPrimitive.ItemText, {
42
+ className: "truncate",
43
+ children
44
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TagsInputPrimitive.ItemDelete, {
45
+ className: "size-4 shrink-0 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100",
46
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(X, { className: "size-3.5" })
47
+ })]
48
+ });
49
+ }
50
+ function TagsInputInLineClear({ ...props }) {
51
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TagsInputPrimitive.Clear, {
52
+ "data-slot": "tags-input-clear",
53
+ ...props
54
+ });
55
+ }
56
+
57
+ //#endregion
58
+ export { TagsInputInLineList as a, TagsInputInLineLabel as i, TagsInputInLineInput as n, TagsInputInLineRoot as o, TagsInputInLineItem as r, TagsInputInLineClear as t };
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ import * as react_jsx_runtime105 from "react/jsx-runtime";
3
+
4
+ //#region src/components/ui/textarea.d.ts
5
+ declare function Textarea({
6
+ className,
7
+ ...props
8
+ }: React.ComponentProps<'textarea'>): react_jsx_runtime105.JSX.Element;
9
+ //#endregion
10
+ export { Textarea as t };
@@ -0,0 +1,16 @@
1
+ import { n as __toESM, t as require_jsx_runtime } from "./jsx-runtime-CjFsk39Z.js";
2
+ import { t as cn } from "./utils-D2WOFi-N.js";
3
+ import "react";
4
+
5
+ //#region src/components/ui/textarea.tsx
6
+ var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
7
+ function Textarea({ className, ...props }) {
8
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("textarea", {
9
+ "data-slot": "textarea",
10
+ className: cn("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", className),
11
+ ...props
12
+ });
13
+ }
14
+
15
+ //#endregion
16
+ export { Textarea as t };