@pixpilot/shadcn 0.1.2 → 0.1.3
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/{OrContinueWithSeparator-BQalGx6O.d.ts → OrContinueWithSeparator-BDH-vep4.d.ts} +2 -2
- package/dist/OrContinueWithSeparator-CkITP0NT.js +27 -0
- package/dist/{alert-BDcOuBrO.d.ts → alert-CKr0C0yG.d.ts} +4 -4
- package/dist/{alert-DuQQzE0M.js → alert-DgTy4F7t.js} +5 -6
- package/dist/{alert-dialog-Iw5UG8d3.d.ts → alert-dialog-BIYOf1qe.d.ts} +1 -1
- package/dist/{avatar-BRZS2oIf.d.ts → avatar-DomHDuSM.d.ts} +4 -4
- package/dist/{avatar-DWlyZZC1.js → avatar-ggnaPAdx.js} +5 -6
- package/dist/{badge-Dwxq7JaA.d.ts → badge-DaNELwZ4.d.ts} +5 -5
- package/dist/{badge-ChGpGKfr.js → badge-OxgStuN-.js} +3 -4
- package/dist/{button-CoM3CepB.js → button-Ct22vvF2.js} +3 -4
- package/dist/{button-CSw4bOk7.d.ts → button-Qk5_S2q2.d.ts} +5 -5
- package/dist/{calendar-Vx7GBiN5.d.ts → calendar-CtMOHJjw.d.ts} +4 -4
- package/dist/{calendar-5J34tX7L.js → calendar-SVLTPCYN.js} +11 -12
- package/dist/{card-CN1Wv1_W.d.ts → card-7m__j7pN.d.ts} +8 -8
- package/dist/{card-Bf0-1Hox.js → card-mGJMSXR3.js} +9 -10
- package/dist/{checkbox-COC2Igpo.d.ts → checkbox-C2ohGs66.d.ts} +2 -2
- package/dist/{checkbox-ChqHvI5Y.js → checkbox-Car6S-YU.js} +5 -6
- package/dist/{command-BzJMrpFw.js → command-Bh0lIHth.js} +17 -18
- package/dist/{command-CJXf3-UR.d.ts → command-J-Z7237Z.d.ts} +11 -11
- package/dist/components/{index-2Smtu_1u.d.ts → index-CjxDeDgS.d.ts} +29 -29
- package/dist/components/index.js +30 -31
- package/dist/components/ui/{OrContinueWithSeparator-OYGOTHTw.d.ts → OrContinueWithSeparator-CHwqvVjX.d.ts} +1 -1
- package/dist/components/ui/OrContinueWithSeparator.js +4 -5
- package/dist/components/ui/alert-1G0clvys.d.ts +2 -0
- package/dist/components/ui/{alert-dialog-CUL8nAeI.d.ts → alert-dialog-B4l6hBX8.d.ts} +1 -1
- package/dist/components/ui/alert-dialog.js +30 -31
- package/dist/components/ui/alert.js +3 -4
- package/dist/components/ui/avatar-utP6R-Uq.d.ts +2 -0
- package/dist/components/ui/avatar.js +3 -4
- package/dist/components/ui/badge-DwySSPk7.d.ts +2 -0
- package/dist/components/ui/badge.js +3 -4
- package/dist/components/ui/button-fWXid_Jg.d.ts +2 -0
- package/dist/components/ui/button.js +3 -4
- package/dist/components/ui/{calendar-B9zfwi7H.d.ts → calendar-DxgOZaJG.d.ts} +1 -1
- package/dist/components/ui/calendar.js +4 -5
- package/dist/components/ui/{card-BYi1Jf3z.d.ts → card-CEc4KDWR.d.ts} +1 -1
- package/dist/components/ui/card.js +3 -4
- package/dist/components/ui/checkbox-Db1hdfQh.d.ts +2 -0
- package/dist/components/ui/checkbox.js +3 -4
- package/dist/components/ui/{command-BkXDbodx.d.ts → command-D5yDsetf.d.ts} +1 -1
- package/dist/components/ui/command.js +4 -5
- package/dist/components/ui/{dialog-BvEqiJH6.d.ts → dialog-C9hWg6Jo.d.ts} +1 -1
- package/dist/components/ui/dialog.js +3 -4
- package/dist/components/ui/{dropdown-menu-BJ2FNIH4.d.ts → dropdown-menu-CZQe3gdP.d.ts} +1 -1
- package/dist/components/ui/dropdown-menu.js +3 -4
- package/dist/components/ui/{file-upload-DZGaOzQS.d.ts → file-upload-DE4ndg6D.d.ts} +1 -1
- package/dist/components/ui/file-upload.js +3 -4
- package/dist/components/ui/{form-CpVuTht7.d.ts → form-_IonQq2g.d.ts} +1 -1
- package/dist/components/ui/form.js +4 -5
- package/dist/components/ui/{index-q7RUuYJ2.d.ts → index-ByU7Ea3g.d.ts} +29 -29
- package/dist/components/ui/index.js +30 -31
- package/dist/components/ui/input-nIiKz0t3.d.ts +2 -0
- package/dist/components/ui/input.js +3 -4
- package/dist/components/ui/label-DcYFARJv.d.ts +2 -0
- package/dist/components/ui/label.js +3 -4
- package/dist/components/ui/{pagination-CDtFyXkC.d.ts → pagination-BzA2nvm7.d.ts} +1 -1
- package/dist/components/ui/pagination.js +30 -31
- package/dist/components/ui/{popover-B6PDCy8U.d.ts → popover-CWkbXPIs.d.ts} +1 -1
- package/dist/components/ui/popover.js +3 -4
- package/dist/components/ui/{radio-group-DuGtPMcp.d.ts → radio-group-B8uVaLcH.d.ts} +1 -1
- package/dist/components/ui/radio-group.js +3 -4
- package/dist/components/ui/{select-DAN9r02Z.d.ts → select-Thz3wmNR.d.ts} +1 -1
- package/dist/components/ui/select.js +3 -4
- package/dist/components/ui/separator-nDjbz769.d.ts +2 -0
- package/dist/components/ui/separator.js +3 -4
- package/dist/components/ui/shadcn-io/tags/{index-CnMq6aeV.d.ts → index-ByG1DLSH.d.ts} +1 -1
- package/dist/components/ui/shadcn-io/tags/index.js +8 -9
- package/dist/components/ui/shadcn-io/tags-input-inline/{index-D7OIPdfu.d.ts → index-Z-lSeFdH.d.ts} +1 -1
- package/dist/components/ui/shadcn-io/tags-input-inline/index.js +2 -3
- package/dist/components/ui/{sheet-Bo7lvlRA.d.ts → sheet-DG1hOjV0.d.ts} +1 -1
- package/dist/components/ui/sheet.js +3 -4
- package/dist/components/ui/slider-BQpp3iiy.d.ts +2 -0
- package/dist/components/ui/slider.js +3 -4
- package/dist/components/ui/switch-nWOTZVXx.d.ts +2 -0
- package/dist/components/ui/switch.js +3 -4
- package/dist/components/ui/tabs-k3ha4bbs.d.ts +2 -0
- package/dist/components/ui/tabs.js +3 -4
- package/dist/components/ui/textarea-BV_2NNxa.d.ts +2 -0
- package/dist/components/ui/textarea.js +3 -4
- package/dist/components/ui/{tooltip-JdLdCVsY.d.ts → tooltip--Q9yXR4z.d.ts} +1 -1
- package/dist/components/ui/tooltip.js +3 -4
- package/dist/{dialog-a61KKgp5.d.ts → dialog-GHzqCUyY.d.ts} +11 -11
- package/dist/{dialog-CnHQjTPX.js → dialog-O7j71U82.js} +15 -16
- package/dist/{dropdown-menu-DTRzUFxv.d.ts → dropdown-menu-B7IpNRT1.d.ts} +16 -16
- package/dist/{dropdown-menu-BytmAQI6.js → dropdown-menu-ChXZkLy7.js} +22 -23
- package/dist/{file-upload-BEeMesnR.js → file-upload-DPXO1W1r.js} +36 -37
- package/dist/{file-upload-C38U9nyT.d.ts → file-upload-DtI7t48f.d.ts} +11 -11
- package/dist/{form-Cx2k120Z.d.ts → form-B1wa9dSK.d.ts} +7 -7
- package/dist/{form-BjnyYpgw.js → form-DITfwajn.js} +11 -12
- package/dist/{index-2apAhpYW.d.ts → index-BBg42y-x.d.ts} +30 -30
- package/dist/{index-B9p9Ocoz.d.ts → index-CbEoBXve.d.ts} +9 -9
- package/dist/{index-B6o0TAoD.d.ts → index-DAxEKRyQ.d.ts} +7 -7
- package/dist/{index-fkXKhUlW.d.ts → index-nhYidbaI.d.ts} +13 -13
- package/dist/index.js +30 -31
- package/dist/{input-DCWzuP_2.d.ts → input-BOo0lKrd.d.ts} +2 -2
- package/dist/{input-CUeyj64L.js → input-Yyz-T5fE.js} +3 -4
- package/dist/{label-DGznqsHm.js → label-CAjd9Y0A.js} +3 -4
- package/dist/{label-pEqCQKel.d.ts → label-VBeDhZRS.d.ts} +2 -2
- package/dist/lib/index-BBZGfoI7.d.ts +2 -0
- package/dist/lib/index.js +2 -2
- package/dist/lib/utils-COdFh0eZ.d.ts +2 -0
- package/dist/lib/utils.js +1 -1
- package/dist/lib-IiLuXmGR.js +0 -0
- package/dist/{popover-CV48KL0e.js → popover-B6K6dK1G.js} +6 -7
- package/dist/{popover-RnfYQfGo.d.ts → popover-BSOEEHRm.d.ts} +5 -5
- package/dist/{radio-group-BNj4EfLg.d.ts → radio-group-2z7Wk4bX.d.ts} +3 -3
- package/dist/{radio-group-jaFHISZ7.js → radio-group-CN-7YDqF.js} +6 -7
- package/dist/{select-B4b-ZC31.d.ts → select-BLcUSgPc.d.ts} +11 -11
- package/dist/{select-C96xvMSx.js → select-D1s3F0et.js} +22 -23
- package/dist/{separator-C71XEO3E.js → separator-BVBCxKBW.js} +3 -4
- package/dist/{separator-izY8KL7y.d.ts → separator-CQdurlbm.d.ts} +2 -2
- package/dist/{sheet-Dag7L2Xd.d.ts → sheet-BBjl1baR.d.ts} +9 -9
- package/dist/{sheet-BlZGrRNt.js → sheet-DrR3eH28.js} +14 -15
- package/dist/{slider-CdK5O4pc.js → slider-BlL5lT8d.js} +6 -7
- package/dist/{slider-DEUGdZC4.d.ts → slider-CYGuuC8k.d.ts} +2 -2
- package/dist/{src-DQlJgy1h.js → src-8ePG_tPo.js} +25 -26
- package/dist/{switch-Bz5Iiy2_.js → switch-BXSa0MEU.js} +4 -5
- package/dist/{switch-RbFzvnvM.d.ts → switch-Y5FN07nj.d.ts} +2 -2
- package/dist/{tabs-had5ildI.d.ts → tabs-C-Tv9y7L.d.ts} +5 -5
- package/dist/{tabs-BjolTUEI.js → tabs-DbvqqMZV.js} +6 -7
- package/dist/{tags-BnJCu0NQ.js → tags-BACevgr_.js} +22 -23
- package/dist/{tags-input-inline-DnEu3Dyw.js → tags-input-inline-Bz5h19zx.js} +11 -12
- package/dist/{textarea-s8H46Zg0.d.ts → textarea-C3eFh4Vd.d.ts} +2 -2
- package/dist/{textarea-BNZyZgAM.js → textarea-DTGK7cx-.js} +3 -4
- package/dist/{tooltip-CS40su1S.d.ts → tooltip-CGDnGnPt.d.ts} +5 -5
- package/dist/{tooltip-CuYs-__e.js → tooltip-CX3NbXUu.js} +7 -8
- package/package.json +1 -1
- package/dist/OrContinueWithSeparator-Cs96m5UB.js +0 -28
- package/dist/components/ui/alert-DuyLuX68.d.ts +0 -2
- package/dist/components/ui/avatar-DAQzpqqD.d.ts +0 -2
- package/dist/components/ui/badge-BM6RVFS5.d.ts +0 -2
- package/dist/components/ui/button-D9y8v_Tt.d.ts +0 -2
- package/dist/components/ui/checkbox-QkowwGnR.d.ts +0 -2
- package/dist/components/ui/input-DVpolrW-.d.ts +0 -2
- package/dist/components/ui/label-BW9JhwyW.d.ts +0 -2
- package/dist/components/ui/separator-D53tTv-J.d.ts +0 -2
- package/dist/components/ui/slider-lAthKpva.d.ts +0 -2
- package/dist/components/ui/switch-D7WzMqgv.d.ts +0 -2
- package/dist/components/ui/tabs-CnjGY6eE.d.ts +0 -2
- package/dist/components/ui/textarea-BJpu8fK5.d.ts +0 -2
- package/dist/jsx-runtime-CjFsk39Z.js +0 -274
- package/dist/lib/index-ChuxSUKt.d.ts +0 -2
- package/dist/lib/utils-45Ez8x6p.d.ts +0 -2
- package/dist/lib-B_fww26I.js +0 -1
- /package/dist/{index-CZUtOTjh.d.ts → index-CCggO_hw.d.ts} +0 -0
- /package/dist/{utils-_VBxPjie.d.ts → utils-Bgl9doaU.d.ts} +0 -0
- /package/dist/{utils-D2WOFi-N.js → utils-CeuVg6RA.js} +0 -0
|
@@ -1,80 +1,79 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { n as buttonVariants } from "./button-CoM3CepB.js";
|
|
1
|
+
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
2
|
+
import { n as buttonVariants } from "./button-Ct22vvF2.js";
|
|
4
3
|
import "react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
6
6
|
import { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
|
|
7
7
|
|
|
8
8
|
//#region src/components/ui/alert-dialog.tsx
|
|
9
|
-
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
10
9
|
function AlertDialog({ ...props }) {
|
|
11
|
-
return /* @__PURE__ */
|
|
10
|
+
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Root, {
|
|
12
11
|
"data-slot": "alert-dialog",
|
|
13
12
|
...props
|
|
14
13
|
});
|
|
15
14
|
}
|
|
16
15
|
function AlertDialogTrigger({ ...props }) {
|
|
17
|
-
return /* @__PURE__ */
|
|
16
|
+
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Trigger, {
|
|
18
17
|
"data-slot": "alert-dialog-trigger",
|
|
19
18
|
...props
|
|
20
19
|
});
|
|
21
20
|
}
|
|
22
21
|
function AlertDialogPortal({ ...props }) {
|
|
23
|
-
return /* @__PURE__ */
|
|
22
|
+
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Portal, {
|
|
24
23
|
"data-slot": "alert-dialog-portal",
|
|
25
24
|
...props
|
|
26
25
|
});
|
|
27
26
|
}
|
|
28
27
|
function AlertDialogOverlay({ className, ...props }) {
|
|
29
|
-
return /* @__PURE__ */
|
|
28
|
+
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Overlay, {
|
|
30
29
|
"data-slot": "alert-dialog-overlay",
|
|
31
30
|
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
31
|
...props
|
|
33
32
|
});
|
|
34
33
|
}
|
|
35
34
|
function AlertDialogContent({ className, ...props }) {
|
|
36
|
-
return /* @__PURE__ */
|
|
35
|
+
return /* @__PURE__ */ jsxs(AlertDialogPortal, { children: [/* @__PURE__ */ jsx(AlertDialogOverlay, {}), /* @__PURE__ */ jsx(AlertDialogPrimitive.Content, {
|
|
37
36
|
"data-slot": "alert-dialog-content",
|
|
38
37
|
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
38
|
...props
|
|
40
39
|
})] });
|
|
41
40
|
}
|
|
42
41
|
function AlertDialogHeader({ className, ...props }) {
|
|
43
|
-
return /* @__PURE__ */
|
|
42
|
+
return /* @__PURE__ */ jsx("div", {
|
|
44
43
|
"data-slot": "alert-dialog-header",
|
|
45
44
|
className: cn("flex flex-col gap-2 text-center sm:text-left", className),
|
|
46
45
|
...props
|
|
47
46
|
});
|
|
48
47
|
}
|
|
49
48
|
function AlertDialogFooter({ className, ...props }) {
|
|
50
|
-
return /* @__PURE__ */
|
|
49
|
+
return /* @__PURE__ */ jsx("div", {
|
|
51
50
|
"data-slot": "alert-dialog-footer",
|
|
52
51
|
className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
53
52
|
...props
|
|
54
53
|
});
|
|
55
54
|
}
|
|
56
55
|
function AlertDialogTitle({ className, ...props }) {
|
|
57
|
-
return /* @__PURE__ */
|
|
56
|
+
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Title, {
|
|
58
57
|
"data-slot": "alert-dialog-title",
|
|
59
58
|
className: cn("text-lg font-semibold", className),
|
|
60
59
|
...props
|
|
61
60
|
});
|
|
62
61
|
}
|
|
63
62
|
function AlertDialogDescription({ className, ...props }) {
|
|
64
|
-
return /* @__PURE__ */
|
|
63
|
+
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Description, {
|
|
65
64
|
"data-slot": "alert-dialog-description",
|
|
66
65
|
className: cn("text-muted-foreground text-sm", className),
|
|
67
66
|
...props
|
|
68
67
|
});
|
|
69
68
|
}
|
|
70
69
|
function AlertDialogAction({ className, ...props }) {
|
|
71
|
-
return /* @__PURE__ */
|
|
70
|
+
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Action, {
|
|
72
71
|
className: cn(buttonVariants(), className),
|
|
73
72
|
...props
|
|
74
73
|
});
|
|
75
74
|
}
|
|
76
75
|
function AlertDialogCancel({ className, ...props }) {
|
|
77
|
-
return /* @__PURE__ */
|
|
76
|
+
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Cancel, {
|
|
78
77
|
className: cn(buttonVariants({ variant: "outline" }), className),
|
|
79
78
|
...props
|
|
80
79
|
});
|
|
@@ -83,7 +82,7 @@ function AlertDialogCancel({ className, ...props }) {
|
|
|
83
82
|
//#endregion
|
|
84
83
|
//#region src/components/ui/pagination.tsx
|
|
85
84
|
function Pagination({ className, ...props }) {
|
|
86
|
-
return /* @__PURE__ */
|
|
85
|
+
return /* @__PURE__ */ jsx("nav", {
|
|
87
86
|
role: "navigation",
|
|
88
87
|
"aria-label": "pagination",
|
|
89
88
|
"data-slot": "pagination",
|
|
@@ -92,20 +91,20 @@ function Pagination({ className, ...props }) {
|
|
|
92
91
|
});
|
|
93
92
|
}
|
|
94
93
|
function PaginationContent({ className, ...props }) {
|
|
95
|
-
return /* @__PURE__ */
|
|
94
|
+
return /* @__PURE__ */ jsx("ul", {
|
|
96
95
|
"data-slot": "pagination-content",
|
|
97
96
|
className: cn("flex flex-row items-center gap-1", className),
|
|
98
97
|
...props
|
|
99
98
|
});
|
|
100
99
|
}
|
|
101
100
|
function PaginationItem({ ...props }) {
|
|
102
|
-
return /* @__PURE__ */
|
|
101
|
+
return /* @__PURE__ */ jsx("li", {
|
|
103
102
|
"data-slot": "pagination-item",
|
|
104
103
|
...props
|
|
105
104
|
});
|
|
106
105
|
}
|
|
107
106
|
function PaginationLink({ className, isActive, size = "icon", ...props }) {
|
|
108
|
-
return /* @__PURE__ */
|
|
107
|
+
return /* @__PURE__ */ jsx("a", {
|
|
109
108
|
"aria-current": isActive ? "page" : void 0,
|
|
110
109
|
"data-slot": "pagination-link",
|
|
111
110
|
"data-active": isActive,
|
|
@@ -117,36 +116,36 @@ function PaginationLink({ className, isActive, size = "icon", ...props }) {
|
|
|
117
116
|
});
|
|
118
117
|
}
|
|
119
118
|
function PaginationPrevious({ className, ...props }) {
|
|
120
|
-
return /* @__PURE__ */
|
|
119
|
+
return /* @__PURE__ */ jsxs(PaginationLink, {
|
|
121
120
|
"aria-label": "Go to previous page",
|
|
122
121
|
size: "default",
|
|
123
122
|
className: cn("gap-1 px-2.5 sm:pl-2.5", className),
|
|
124
123
|
...props,
|
|
125
|
-
children: [/* @__PURE__ */
|
|
124
|
+
children: [/* @__PURE__ */ jsx(ChevronLeftIcon, {}), /* @__PURE__ */ jsx("span", {
|
|
126
125
|
className: "hidden sm:block",
|
|
127
126
|
children: "Previous"
|
|
128
127
|
})]
|
|
129
128
|
});
|
|
130
129
|
}
|
|
131
130
|
function PaginationNext({ className, ...props }) {
|
|
132
|
-
return /* @__PURE__ */
|
|
131
|
+
return /* @__PURE__ */ jsxs(PaginationLink, {
|
|
133
132
|
"aria-label": "Go to next page",
|
|
134
133
|
size: "default",
|
|
135
134
|
className: cn("gap-1 px-2.5 sm:pr-2.5", className),
|
|
136
135
|
...props,
|
|
137
|
-
children: [/* @__PURE__ */
|
|
136
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
138
137
|
className: "hidden sm:block",
|
|
139
138
|
children: "Next"
|
|
140
|
-
}), /* @__PURE__ */
|
|
139
|
+
}), /* @__PURE__ */ jsx(ChevronRightIcon, {})]
|
|
141
140
|
});
|
|
142
141
|
}
|
|
143
142
|
function PaginationEllipsis({ className, ...props }) {
|
|
144
|
-
return /* @__PURE__ */
|
|
143
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
145
144
|
"aria-hidden": true,
|
|
146
145
|
"data-slot": "pagination-ellipsis",
|
|
147
146
|
className: cn("flex size-9 items-center justify-center", className),
|
|
148
147
|
...props,
|
|
149
|
-
children: [/* @__PURE__ */
|
|
148
|
+
children: [/* @__PURE__ */ jsx(MoreHorizontalIcon, { className: "size-4" }), /* @__PURE__ */ jsx("span", {
|
|
150
149
|
className: "sr-only",
|
|
151
150
|
children: "More pages"
|
|
152
151
|
})]
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as cn } from "./utils-D2WOFi-N.js";
|
|
1
|
+
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
3
2
|
import "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
5
5
|
|
|
6
6
|
//#region src/components/ui/switch.tsx
|
|
7
|
-
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
8
7
|
function Switch({ className, ...props }) {
|
|
9
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ jsx(SwitchPrimitive.Root, {
|
|
10
9
|
"data-slot": "switch",
|
|
11
10
|
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
11
|
...props,
|
|
13
|
-
children: /* @__PURE__ */
|
|
12
|
+
children: /* @__PURE__ */ jsx(SwitchPrimitive.Thumb, {
|
|
14
13
|
"data-slot": "switch-thumb",
|
|
15
14
|
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
15
|
})
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import * as react_jsx_runtime45 from "react/jsx-runtime";
|
|
2
3
|
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
3
|
-
import * as react_jsx_runtime51 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/switch.d.ts
|
|
6
6
|
declare function Switch({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof SwitchPrimitive.Root>):
|
|
9
|
+
}: React.ComponentProps<typeof SwitchPrimitive.Root>): react_jsx_runtime45.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Switch as t };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import * as react_jsx_runtime46 from "react/jsx-runtime";
|
|
2
3
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
3
|
-
import * as react_jsx_runtime63 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/tabs.d.ts
|
|
6
6
|
declare function Tabs({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof TabsPrimitive.Root>):
|
|
9
|
+
}: React.ComponentProps<typeof TabsPrimitive.Root>): react_jsx_runtime46.JSX.Element;
|
|
10
10
|
declare function TabsList({
|
|
11
11
|
className,
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof TabsPrimitive.List>):
|
|
13
|
+
}: React.ComponentProps<typeof TabsPrimitive.List>): react_jsx_runtime46.JSX.Element;
|
|
14
14
|
declare function TabsTrigger({
|
|
15
15
|
className,
|
|
16
16
|
...props
|
|
17
|
-
}: React.ComponentProps<typeof TabsPrimitive.Trigger>):
|
|
17
|
+
}: React.ComponentProps<typeof TabsPrimitive.Trigger>): react_jsx_runtime46.JSX.Element;
|
|
18
18
|
declare function TabsContent({
|
|
19
19
|
className,
|
|
20
20
|
...props
|
|
21
|
-
}: React.ComponentProps<typeof TabsPrimitive.Content>):
|
|
21
|
+
}: React.ComponentProps<typeof TabsPrimitive.Content>): react_jsx_runtime46.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { TabsTrigger as i, TabsContent as n, TabsList as r, Tabs as t };
|
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as cn } from "./utils-D2WOFi-N.js";
|
|
1
|
+
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
3
2
|
import "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
5
5
|
|
|
6
6
|
//#region src/components/ui/tabs.tsx
|
|
7
|
-
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
8
7
|
function Tabs({ className, ...props }) {
|
|
9
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ jsx(TabsPrimitive.Root, {
|
|
10
9
|
"data-slot": "tabs",
|
|
11
10
|
className: cn("flex flex-col gap-2", className),
|
|
12
11
|
...props
|
|
13
12
|
});
|
|
14
13
|
}
|
|
15
14
|
function TabsList({ className, ...props }) {
|
|
16
|
-
return /* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ jsx(TabsPrimitive.List, {
|
|
17
16
|
"data-slot": "tabs-list",
|
|
18
17
|
className: cn("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]", className),
|
|
19
18
|
...props
|
|
20
19
|
});
|
|
21
20
|
}
|
|
22
21
|
function TabsTrigger({ className, ...props }) {
|
|
23
|
-
return /* @__PURE__ */
|
|
22
|
+
return /* @__PURE__ */ jsx(TabsPrimitive.Trigger, {
|
|
24
23
|
"data-slot": "tabs-trigger",
|
|
25
24
|
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
25
|
...props
|
|
27
26
|
});
|
|
28
27
|
}
|
|
29
28
|
function TabsContent({ className, ...props }) {
|
|
30
|
-
return /* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ jsx(TabsPrimitive.Content, {
|
|
31
30
|
"data-slot": "tabs-content",
|
|
32
31
|
className: cn("flex-1 outline-none", className),
|
|
33
32
|
...props
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import { i as PopoverTrigger, r as PopoverContent, t as Popover } from "./popover-CV48KL0e.js";
|
|
1
|
+
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
2
|
+
import { t as Badge } from "./badge-OxgStuN-.js";
|
|
3
|
+
import { t as Button } from "./button-Ct22vvF2.js";
|
|
4
|
+
import { a as CommandInput, i as CommandGroup, o as CommandItem, r as CommandEmpty, s as CommandList, t as Command } from "./command-Bh0lIHth.js";
|
|
5
|
+
import { i as PopoverTrigger, r as PopoverContent, t as Popover } from "./popover-B6K6dK1G.js";
|
|
7
6
|
import { createContext, use, useEffect, useRef, useState } from "react";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { XIcon } from "lucide-react";
|
|
9
9
|
|
|
10
10
|
//#region src/components/ui/shadcn-io/tags/index.tsx
|
|
11
|
-
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
12
11
|
const TagsContext = createContext({
|
|
13
12
|
value: void 0,
|
|
14
13
|
setValue: void 0,
|
|
@@ -38,7 +37,7 @@ function Tags({ value, setValue, open: controlledOpen, onOpenChange: controlledO
|
|
|
38
37
|
resizeObserver.disconnect();
|
|
39
38
|
};
|
|
40
39
|
}, []);
|
|
41
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ jsx(TagsContext.Provider, {
|
|
42
41
|
value: {
|
|
43
42
|
value,
|
|
44
43
|
setValue,
|
|
@@ -47,10 +46,10 @@ function Tags({ value, setValue, open: controlledOpen, onOpenChange: controlledO
|
|
|
47
46
|
width,
|
|
48
47
|
setWidth
|
|
49
48
|
},
|
|
50
|
-
children: /* @__PURE__ */
|
|
49
|
+
children: /* @__PURE__ */ jsx(Popover, {
|
|
51
50
|
onOpenChange,
|
|
52
51
|
open,
|
|
53
|
-
children: /* @__PURE__ */
|
|
52
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
54
53
|
className: cn("relative w-full", className),
|
|
55
54
|
ref,
|
|
56
55
|
children
|
|
@@ -59,16 +58,16 @@ function Tags({ value, setValue, open: controlledOpen, onOpenChange: controlledO
|
|
|
59
58
|
});
|
|
60
59
|
}
|
|
61
60
|
function TagsTrigger({ className, children, ...props }) {
|
|
62
|
-
return /* @__PURE__ */
|
|
61
|
+
return /* @__PURE__ */ jsx(PopoverTrigger, {
|
|
63
62
|
asChild: true,
|
|
64
|
-
children: /* @__PURE__ */
|
|
63
|
+
children: /* @__PURE__ */ jsx(Button, {
|
|
65
64
|
className: cn("h-auto w-full justify-between p-2", className),
|
|
66
65
|
role: "combobox",
|
|
67
66
|
variant: "outline",
|
|
68
67
|
...props,
|
|
69
|
-
children: /* @__PURE__ */
|
|
68
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
70
69
|
className: "flex flex-wrap items-center gap-1",
|
|
71
|
-
children: [children, /* @__PURE__ */
|
|
70
|
+
children: [children, /* @__PURE__ */ jsx("span", {
|
|
72
71
|
className: "px-2 py-px text-muted-foreground",
|
|
73
72
|
children: "Select a tag..."
|
|
74
73
|
})]
|
|
@@ -82,46 +81,46 @@ function TagsValue({ className, children, onRemove, ...props }) {
|
|
|
82
81
|
event.stopPropagation();
|
|
83
82
|
onRemove?.();
|
|
84
83
|
};
|
|
85
|
-
return /* @__PURE__ */
|
|
84
|
+
return /* @__PURE__ */ jsxs(Badge, {
|
|
86
85
|
className: cn("flex items-center gap-2", className),
|
|
87
86
|
...props,
|
|
88
|
-
children: [children, onRemove && /* @__PURE__ */
|
|
87
|
+
children: [children, onRemove && /* @__PURE__ */ jsx("div", {
|
|
89
88
|
className: "size-auto cursor-pointer hover:text-muted-foreground",
|
|
90
89
|
onClick: handleRemove,
|
|
91
|
-
children: /* @__PURE__ */
|
|
90
|
+
children: /* @__PURE__ */ jsx(XIcon, { size: 12 })
|
|
92
91
|
})]
|
|
93
92
|
});
|
|
94
93
|
}
|
|
95
94
|
function TagsContent({ className, children, ...props }) {
|
|
96
95
|
const { width } = useTagsContext();
|
|
97
|
-
return /* @__PURE__ */
|
|
96
|
+
return /* @__PURE__ */ jsx(PopoverContent, {
|
|
98
97
|
className: cn("p-0", className),
|
|
99
98
|
style: { width },
|
|
100
99
|
...props,
|
|
101
|
-
children: /* @__PURE__ */
|
|
100
|
+
children: /* @__PURE__ */ jsx(Command, { children })
|
|
102
101
|
});
|
|
103
102
|
}
|
|
104
103
|
function TagsInput({ className, ...props }) {
|
|
105
|
-
return /* @__PURE__ */
|
|
104
|
+
return /* @__PURE__ */ jsx(CommandInput, {
|
|
106
105
|
className: cn("h-9", className),
|
|
107
106
|
...props
|
|
108
107
|
});
|
|
109
108
|
}
|
|
110
109
|
function TagsList({ className, ...props }) {
|
|
111
|
-
return /* @__PURE__ */
|
|
110
|
+
return /* @__PURE__ */ jsx(CommandList, {
|
|
112
111
|
className: cn("max-h-[200px]", className),
|
|
113
112
|
...props
|
|
114
113
|
});
|
|
115
114
|
}
|
|
116
115
|
function TagsEmpty({ children, className, ...props }) {
|
|
117
|
-
return /* @__PURE__ */
|
|
116
|
+
return /* @__PURE__ */ jsx(CommandEmpty, {
|
|
118
117
|
...props,
|
|
119
118
|
children: children ?? "No tags found."
|
|
120
119
|
});
|
|
121
120
|
}
|
|
122
121
|
const TagsGroup = CommandGroup;
|
|
123
122
|
function TagsItem({ className, ...props }) {
|
|
124
|
-
return /* @__PURE__ */
|
|
123
|
+
return /* @__PURE__ */ jsx(CommandItem, {
|
|
125
124
|
className: cn("cursor-pointer items-center justify-between", className),
|
|
126
125
|
...props
|
|
127
126
|
});
|
|
@@ -1,54 +1,53 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { X } from "lucide-react";
|
|
4
4
|
import * as TagsInputPrimitive from "@diceui/tags-input";
|
|
5
5
|
|
|
6
6
|
//#region src/components/ui/shadcn-io/tags-input-inline/index.tsx
|
|
7
|
-
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
8
7
|
function TagsInputInLineRoot({ className, ...props }) {
|
|
9
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ jsx(TagsInputPrimitive.Root, {
|
|
10
9
|
"data-slot": "tags-input",
|
|
11
10
|
className: cn("flex w-full flex-col", className),
|
|
12
11
|
...props
|
|
13
12
|
});
|
|
14
13
|
}
|
|
15
14
|
function TagsInputInLineLabel({ className, ...props }) {
|
|
16
|
-
return /* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ jsx(TagsInputPrimitive.Label, {
|
|
17
16
|
"data-slot": "tags-input-label",
|
|
18
17
|
className: cn("font-medium text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70", className),
|
|
19
18
|
...props
|
|
20
19
|
});
|
|
21
20
|
}
|
|
22
21
|
function TagsInputInLineList({ className, ...props }) {
|
|
23
|
-
return /* @__PURE__ */
|
|
22
|
+
return /* @__PURE__ */ jsx("div", {
|
|
24
23
|
"data-slot": "tags-input-list",
|
|
25
24
|
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
25
|
...props
|
|
27
26
|
});
|
|
28
27
|
}
|
|
29
28
|
function TagsInputInLineInput({ className, ...props }) {
|
|
30
|
-
return /* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ jsx(TagsInputPrimitive.Input, {
|
|
31
30
|
"data-slot": "tags-input-input",
|
|
32
31
|
className: cn("flex-1 bg-transparent outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50", className),
|
|
33
32
|
...props
|
|
34
33
|
});
|
|
35
34
|
}
|
|
36
35
|
function TagsInputInLineItem({ className, children, ...props }) {
|
|
37
|
-
return /* @__PURE__ */
|
|
36
|
+
return /* @__PURE__ */ jsxs(TagsInputPrimitive.Item, {
|
|
38
37
|
"data-slot": "tags-input-item",
|
|
39
38
|
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
39
|
...props,
|
|
41
|
-
children: [/* @__PURE__ */
|
|
40
|
+
children: [/* @__PURE__ */ jsx(TagsInputPrimitive.ItemText, {
|
|
42
41
|
className: "truncate",
|
|
43
42
|
children
|
|
44
|
-
}), /* @__PURE__ */
|
|
43
|
+
}), /* @__PURE__ */ jsx(TagsInputPrimitive.ItemDelete, {
|
|
45
44
|
className: "size-4 shrink-0 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100",
|
|
46
|
-
children: /* @__PURE__ */
|
|
45
|
+
children: /* @__PURE__ */ jsx(X, { className: "size-3.5" })
|
|
47
46
|
})]
|
|
48
47
|
});
|
|
49
48
|
}
|
|
50
49
|
function TagsInputInLineClear({ ...props }) {
|
|
51
|
-
return /* @__PURE__ */
|
|
50
|
+
return /* @__PURE__ */ jsx(TagsInputPrimitive.Clear, {
|
|
52
51
|
"data-slot": "tags-input-clear",
|
|
53
52
|
...props
|
|
54
53
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime88 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ui/textarea.d.ts
|
|
5
5
|
declare function Textarea({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<'textarea'>):
|
|
8
|
+
}: React.ComponentProps<'textarea'>): react_jsx_runtime88.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Textarea as t };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as cn } from "./utils-D2WOFi-N.js";
|
|
1
|
+
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
3
2
|
import "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/textarea.tsx
|
|
6
|
-
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
7
6
|
function Textarea({ className, ...props }) {
|
|
8
|
-
return /* @__PURE__ */
|
|
7
|
+
return /* @__PURE__ */ jsx("textarea", {
|
|
9
8
|
"data-slot": "textarea",
|
|
10
9
|
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
10
|
...props
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import * as react_jsx_runtime29 from "react/jsx-runtime";
|
|
2
3
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
3
|
-
import * as react_jsx_runtime46 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/tooltip.d.ts
|
|
6
6
|
declare function TooltipProvider({
|
|
7
7
|
delayDuration,
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof TooltipPrimitive.Provider>):
|
|
9
|
+
}: React.ComponentProps<typeof TooltipPrimitive.Provider>): react_jsx_runtime29.JSX.Element;
|
|
10
10
|
declare function Tooltip({
|
|
11
11
|
...props
|
|
12
|
-
}: React.ComponentProps<typeof TooltipPrimitive.Root>):
|
|
12
|
+
}: React.ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime29.JSX.Element;
|
|
13
13
|
declare function TooltipTrigger({
|
|
14
14
|
...props
|
|
15
|
-
}: React.ComponentProps<typeof TooltipPrimitive.Trigger>):
|
|
15
|
+
}: React.ComponentProps<typeof TooltipPrimitive.Trigger>): react_jsx_runtime29.JSX.Element;
|
|
16
16
|
declare function TooltipContent({
|
|
17
17
|
className,
|
|
18
18
|
sideOffset,
|
|
19
19
|
children,
|
|
20
20
|
...props
|
|
21
|
-
}: React.ComponentProps<typeof TooltipPrimitive.Content>):
|
|
21
|
+
}: React.ComponentProps<typeof TooltipPrimitive.Content>): react_jsx_runtime29.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { TooltipTrigger as i, TooltipContent as n, TooltipProvider as r, Tooltip as t };
|
|
@@ -1,36 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as cn } from "./utils-D2WOFi-N.js";
|
|
1
|
+
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
3
2
|
import "react";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
5
5
|
|
|
6
6
|
//#region src/components/ui/tooltip.tsx
|
|
7
|
-
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
8
7
|
function TooltipProvider({ delayDuration = 0, ...props }) {
|
|
9
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ jsx(TooltipPrimitive.Provider, {
|
|
10
9
|
"data-slot": "tooltip-provider",
|
|
11
10
|
delayDuration,
|
|
12
11
|
...props
|
|
13
12
|
});
|
|
14
13
|
}
|
|
15
14
|
function Tooltip({ ...props }) {
|
|
16
|
-
return /* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsx(TooltipPrimitive.Root, {
|
|
17
16
|
"data-slot": "tooltip",
|
|
18
17
|
...props
|
|
19
18
|
}) });
|
|
20
19
|
}
|
|
21
20
|
function TooltipTrigger({ ...props }) {
|
|
22
|
-
return /* @__PURE__ */
|
|
21
|
+
return /* @__PURE__ */ jsx(TooltipPrimitive.Trigger, {
|
|
23
22
|
"data-slot": "tooltip-trigger",
|
|
24
23
|
...props
|
|
25
24
|
});
|
|
26
25
|
}
|
|
27
26
|
function TooltipContent({ className, sideOffset = 0, children, ...props }) {
|
|
28
|
-
return /* @__PURE__ */
|
|
27
|
+
return /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs(TooltipPrimitive.Content, {
|
|
29
28
|
"data-slot": "tooltip-content",
|
|
30
29
|
sideOffset,
|
|
31
30
|
className: cn("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance", className),
|
|
32
31
|
...props,
|
|
33
|
-
children: [children, /* @__PURE__ */
|
|
32
|
+
children: [children, /* @__PURE__ */ jsx(TooltipPrimitive.Arrow, { className: "bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })]
|
|
34
33
|
}) });
|
|
35
34
|
}
|
|
36
35
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixpilot/shadcn",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.3",
|
|
5
5
|
"packageManager": "pnpm@10.17.0",
|
|
6
6
|
"description": "A collection of reusable UI components built with shadcn/ui and Radix UI primitives.",
|
|
7
7
|
"author": "m.doaie <m.doaie@hotmail.com>",
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { n as __toESM, t as require_jsx_runtime } from "./jsx-runtime-CjFsk39Z.js";
|
|
2
|
-
import { t as Separator } from "./separator-C71XEO3E.js";
|
|
3
|
-
import "react";
|
|
4
|
-
|
|
5
|
-
//#region src/components/ui/OrContinueWithSeparator.tsx
|
|
6
|
-
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
7
|
-
/**
|
|
8
|
-
* A separator with a label for alternative sign-in methods.
|
|
9
|
-
* Used in authentication forms to visually separate sections.
|
|
10
|
-
*/
|
|
11
|
-
function OrContinueWithSeparator() {
|
|
12
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
13
|
-
className: "relative my-4",
|
|
14
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
15
|
-
className: "absolute inset-0 flex items-center",
|
|
16
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Separator, {})
|
|
17
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
18
|
-
className: "relative flex justify-center text-xs uppercase",
|
|
19
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
20
|
-
className: "bg-background text-muted-foreground px-2",
|
|
21
|
-
children: "Or continue with"
|
|
22
|
-
})
|
|
23
|
-
})]
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
//#endregion
|
|
28
|
-
export { OrContinueWithSeparator as t };
|