@pixpilot/shadcn 0.1.3 → 0.1.4
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-ygHlSc0_.d.ts +795 -0
- package/dist/index.js +2276 -30
- package/package.json +7 -15
- package/dist/OrContinueWithSeparator-BDH-vep4.d.ts +0 -11
- package/dist/OrContinueWithSeparator-CkITP0NT.js +0 -27
- package/dist/alert-CKr0C0yG.d.ts +0 -24
- package/dist/alert-DgTy4F7t.js +0 -38
- package/dist/alert-dialog-BIYOf1qe.d.ts +0 -48
- package/dist/avatar-DomHDuSM.d.ts +0 -19
- package/dist/avatar-ggnaPAdx.js +0 -30
- package/dist/badge-DaNELwZ4.d.ts +0 -19
- package/dist/badge-OxgStuN-.js +0 -26
- package/dist/button-Ct22vvF2.js +0 -45
- package/dist/button-Qk5_S2q2.d.ts +0 -21
- package/dist/calendar-CtMOHJjw.d.ts +0 -26
- package/dist/calendar-SVLTPCYN.js +0 -106
- package/dist/card-7m__j7pN.d.ts +0 -34
- package/dist/card-mGJMSXR3.js +0 -57
- package/dist/checkbox-C2ohGs66.d.ts +0 -11
- package/dist/checkbox-Car6S-YU.js +0 -22
- package/dist/command-Bh0lIHth.js +0 -87
- package/dist/command-J-Z7237Z.d.ts +0 -52
- package/dist/components/index-CjxDeDgS.d.ts +0 -30
- package/dist/components/index.js +0 -32
- package/dist/components/ui/OrContinueWithSeparator-CHwqvVjX.d.ts +0 -2
- package/dist/components/ui/OrContinueWithSeparator.js +0 -6
- package/dist/components/ui/alert-1G0clvys.d.ts +0 -2
- package/dist/components/ui/alert-dialog-B4l6hBX8.d.ts +0 -2
- package/dist/components/ui/alert-dialog.js +0 -34
- package/dist/components/ui/alert.js +0 -5
- package/dist/components/ui/avatar-utP6R-Uq.d.ts +0 -2
- package/dist/components/ui/avatar.js +0 -5
- package/dist/components/ui/badge-DwySSPk7.d.ts +0 -2
- package/dist/components/ui/badge.js +0 -5
- package/dist/components/ui/button-fWXid_Jg.d.ts +0 -2
- package/dist/components/ui/button.js +0 -5
- package/dist/components/ui/calendar-DxgOZaJG.d.ts +0 -2
- package/dist/components/ui/calendar.js +0 -6
- package/dist/components/ui/card-CEc4KDWR.d.ts +0 -2
- package/dist/components/ui/card.js +0 -5
- package/dist/components/ui/checkbox-Db1hdfQh.d.ts +0 -2
- package/dist/components/ui/checkbox.js +0 -7
- package/dist/components/ui/command-D5yDsetf.d.ts +0 -2
- package/dist/components/ui/command.js +0 -8
- package/dist/components/ui/dialog-C9hWg6Jo.d.ts +0 -2
- package/dist/components/ui/dialog.js +0 -5
- package/dist/components/ui/dropdown-menu-CZQe3gdP.d.ts +0 -2
- package/dist/components/ui/dropdown-menu.js +0 -5
- package/dist/components/ui/file-upload-DE4ndg6D.d.ts +0 -2
- package/dist/components/ui/file-upload.js +0 -7
- package/dist/components/ui/form-_IonQq2g.d.ts +0 -2
- package/dist/components/ui/form.js +0 -6
- package/dist/components/ui/index-ByU7Ea3g.d.ts +0 -30
- package/dist/components/ui/index.js +0 -32
- package/dist/components/ui/input-nIiKz0t3.d.ts +0 -2
- package/dist/components/ui/input.js +0 -5
- package/dist/components/ui/label-DcYFARJv.d.ts +0 -2
- package/dist/components/ui/label.js +0 -5
- package/dist/components/ui/pagination-BzA2nvm7.d.ts +0 -2
- package/dist/components/ui/pagination.js +0 -32
- package/dist/components/ui/popover-CWkbXPIs.d.ts +0 -2
- package/dist/components/ui/popover.js +0 -5
- package/dist/components/ui/radio-group-B8uVaLcH.d.ts +0 -2
- package/dist/components/ui/radio-group.js +0 -5
- package/dist/components/ui/select-Thz3wmNR.d.ts +0 -2
- package/dist/components/ui/select.js +0 -7
- package/dist/components/ui/separator-nDjbz769.d.ts +0 -2
- package/dist/components/ui/separator.js +0 -5
- package/dist/components/ui/shadcn-io/tags/index-ByG1DLSH.d.ts +0 -2
- package/dist/components/ui/shadcn-io/tags/index.js +0 -12
- package/dist/components/ui/shadcn-io/tags-input-inline/index-Z-lSeFdH.d.ts +0 -2
- package/dist/components/ui/shadcn-io/tags-input-inline/index.js +0 -4
- package/dist/components/ui/sheet-DG1hOjV0.d.ts +0 -2
- package/dist/components/ui/sheet.js +0 -5
- package/dist/components/ui/slider-BQpp3iiy.d.ts +0 -2
- package/dist/components/ui/slider.js +0 -5
- package/dist/components/ui/switch-nWOTZVXx.d.ts +0 -2
- package/dist/components/ui/switch.js +0 -7
- package/dist/components/ui/tabs-k3ha4bbs.d.ts +0 -2
- package/dist/components/ui/tabs.js +0 -5
- package/dist/components/ui/textarea-BV_2NNxa.d.ts +0 -2
- package/dist/components/ui/textarea.js +0 -5
- package/dist/components/ui/tooltip--Q9yXR4z.d.ts +0 -2
- package/dist/components/ui/tooltip.js +0 -5
- package/dist/dialog-GHzqCUyY.d.ts +0 -47
- package/dist/dialog-O7j71U82.js +0 -87
- package/dist/dropdown-menu-B7IpNRT1.d.ts +0 -77
- package/dist/dropdown-menu-ChXZkLy7.js +0 -124
- package/dist/file-upload-DPXO1W1r.js +0 -906
- package/dist/file-upload-DtI7t48f.d.ts +0 -94
- package/dist/form-B1wa9dSK.d.ts +0 -45
- package/dist/form-DITfwajn.js +0 -88
- package/dist/index-BBg42y-x.d.ts +0 -31
- package/dist/index-CCggO_hw.d.ts +0 -1
- package/dist/index-CbEoBXve.d.ts +0 -39
- package/dist/index-DAxEKRyQ.d.ts +0 -31
- package/dist/index-nhYidbaI.d.ts +0 -70
- package/dist/input-BOo0lKrd.d.ts +0 -11
- package/dist/input-Yyz-T5fE.js +0 -16
- package/dist/label-CAjd9Y0A.js +0 -16
- package/dist/label-VBeDhZRS.d.ts +0 -11
- package/dist/lib/index-BBZGfoI7.d.ts +0 -2
- package/dist/lib/index.js +0 -4
- package/dist/lib/utils-COdFh0eZ.d.ts +0 -2
- package/dist/lib/utils.js +0 -3
- package/dist/lib-IiLuXmGR.js +0 -0
- package/dist/popover-B6K6dK1G.js +0 -36
- package/dist/popover-BSOEEHRm.d.ts +0 -22
- package/dist/radio-group-2z7Wk4bX.d.ts +0 -15
- package/dist/radio-group-CN-7YDqF.js +0 -29
- package/dist/select-BLcUSgPc.d.ts +0 -52
- package/dist/select-D1s3F0et.js +0 -98
- package/dist/separator-BVBCxKBW.js +0 -18
- package/dist/separator-CQdurlbm.d.ts +0 -13
- package/dist/sheet-BBjl1baR.d.ts +0 -40
- package/dist/sheet-DrR3eH28.js +0 -83
- package/dist/slider-BlL5lT8d.js +0 -37
- package/dist/slider-CYGuuC8k.d.ts +0 -15
- package/dist/src-8ePG_tPo.js +0 -156
- package/dist/switch-BXSa0MEU.js +0 -20
- package/dist/switch-Y5FN07nj.d.ts +0 -11
- package/dist/tabs-C-Tv9y7L.d.ts +0 -23
- package/dist/tabs-DbvqqMZV.js +0 -37
- package/dist/tags-BACevgr_.js +0 -130
- package/dist/tags-input-inline-Bz5h19zx.js +0 -57
- package/dist/textarea-C3eFh4Vd.d.ts +0 -10
- package/dist/textarea-DTGK7cx-.js +0 -15
- package/dist/tooltip-CGDnGnPt.d.ts +0 -23
- package/dist/tooltip-CX3NbXUu.js +0 -37
- package/dist/utils-Bgl9doaU.d.ts +0 -6
- package/dist/utils-CeuVg6RA.js +0 -10
package/dist/select-D1s3F0et.js
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
|
|
5
|
-
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
6
|
-
|
|
7
|
-
//#region src/components/ui/select.tsx
|
|
8
|
-
function Select({ ...props }) {
|
|
9
|
-
return /* @__PURE__ */ jsx(SelectPrimitive.Root, {
|
|
10
|
-
"data-slot": "select",
|
|
11
|
-
...props
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
function SelectGroup({ ...props }) {
|
|
15
|
-
return /* @__PURE__ */ jsx(SelectPrimitive.Group, {
|
|
16
|
-
"data-slot": "select-group",
|
|
17
|
-
...props
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
function SelectValue({ ...props }) {
|
|
21
|
-
return /* @__PURE__ */ jsx(SelectPrimitive.Value, {
|
|
22
|
-
"data-slot": "select-value",
|
|
23
|
-
...props
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
function SelectTrigger({ className, size = "default", children, ...props }) {
|
|
27
|
-
return /* @__PURE__ */ jsxs(SelectPrimitive.Trigger, {
|
|
28
|
-
"data-slot": "select-trigger",
|
|
29
|
-
"data-size": size,
|
|
30
|
-
className: cn("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]: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 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
31
|
-
...props,
|
|
32
|
-
children: [children, /* @__PURE__ */ jsx(SelectPrimitive.Icon, {
|
|
33
|
-
asChild: true,
|
|
34
|
-
children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4 opacity-50" })
|
|
35
|
-
})]
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
function SelectContent({ className, children, position = "popper", align = "center", ...props }) {
|
|
39
|
-
return /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(SelectPrimitive.Content, {
|
|
40
|
-
"data-slot": "select-content",
|
|
41
|
-
className: cn("bg-popover text-popover-foreground 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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md", 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", className),
|
|
42
|
-
position,
|
|
43
|
-
align,
|
|
44
|
-
...props,
|
|
45
|
-
children: [
|
|
46
|
-
/* @__PURE__ */ jsx(SelectScrollUpButton, {}),
|
|
47
|
-
/* @__PURE__ */ jsx(SelectPrimitive.Viewport, {
|
|
48
|
-
className: cn("p-1", position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),
|
|
49
|
-
children
|
|
50
|
-
}),
|
|
51
|
-
/* @__PURE__ */ jsx(SelectScrollDownButton, {})
|
|
52
|
-
]
|
|
53
|
-
}) });
|
|
54
|
-
}
|
|
55
|
-
function SelectLabel({ className, ...props }) {
|
|
56
|
-
return /* @__PURE__ */ jsx(SelectPrimitive.Label, {
|
|
57
|
-
"data-slot": "select-label",
|
|
58
|
-
className: cn("text-muted-foreground px-2 py-1.5 text-xs", className),
|
|
59
|
-
...props
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
function SelectItem({ className, children, ...props }) {
|
|
63
|
-
return /* @__PURE__ */ jsxs(SelectPrimitive.Item, {
|
|
64
|
-
"data-slot": "select-item",
|
|
65
|
-
className: cn("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", className),
|
|
66
|
-
...props,
|
|
67
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
68
|
-
className: "absolute right-2 flex size-3.5 items-center justify-center",
|
|
69
|
-
children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) })
|
|
70
|
-
}), /* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children })]
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
function SelectSeparator({ className, ...props }) {
|
|
74
|
-
return /* @__PURE__ */ jsx(SelectPrimitive.Separator, {
|
|
75
|
-
"data-slot": "select-separator",
|
|
76
|
-
className: cn("bg-border pointer-events-none -mx-1 my-1 h-px", className),
|
|
77
|
-
...props
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
function SelectScrollUpButton({ className, ...props }) {
|
|
81
|
-
return /* @__PURE__ */ jsx(SelectPrimitive.ScrollUpButton, {
|
|
82
|
-
"data-slot": "select-scroll-up-button",
|
|
83
|
-
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
84
|
-
...props,
|
|
85
|
-
children: /* @__PURE__ */ jsx(ChevronUpIcon, { className: "size-4" })
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
function SelectScrollDownButton({ className, ...props }) {
|
|
89
|
-
return /* @__PURE__ */ jsx(SelectPrimitive.ScrollDownButton, {
|
|
90
|
-
"data-slot": "select-scroll-down-button",
|
|
91
|
-
className: cn("flex cursor-default items-center justify-center py-1", className),
|
|
92
|
-
...props,
|
|
93
|
-
children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4" })
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
//#endregion
|
|
98
|
-
export { SelectLabel as a, SelectSeparator as c, SelectItem as i, SelectTrigger as l, SelectContent as n, SelectScrollDownButton as o, SelectGroup as r, SelectScrollUpButton as s, Select as t, SelectValue as u };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
5
|
-
|
|
6
|
-
//#region src/components/ui/separator.tsx
|
|
7
|
-
function Separator({ className, orientation = "horizontal", decorative = true, ...props }) {
|
|
8
|
-
return /* @__PURE__ */ jsx(SeparatorPrimitive.Root, {
|
|
9
|
-
"data-slot": "separator",
|
|
10
|
-
decorative,
|
|
11
|
-
orientation,
|
|
12
|
-
className: cn("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px", className),
|
|
13
|
-
...props
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
//#endregion
|
|
18
|
-
export { Separator as t };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as react_jsx_runtime73 from "react/jsx-runtime";
|
|
3
|
-
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
4
|
-
|
|
5
|
-
//#region src/components/ui/separator.d.ts
|
|
6
|
-
declare function Separator({
|
|
7
|
-
className,
|
|
8
|
-
orientation,
|
|
9
|
-
decorative,
|
|
10
|
-
...props
|
|
11
|
-
}: React.ComponentProps<typeof SeparatorPrimitive.Root>): react_jsx_runtime73.JSX.Element;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { Separator as t };
|
package/dist/sheet-BBjl1baR.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as react_jsx_runtime74 from "react/jsx-runtime";
|
|
3
|
-
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
4
|
-
|
|
5
|
-
//#region src/components/ui/sheet.d.ts
|
|
6
|
-
declare function Sheet({
|
|
7
|
-
...props
|
|
8
|
-
}: React.ComponentProps<typeof SheetPrimitive.Root>): react_jsx_runtime74.JSX.Element;
|
|
9
|
-
declare function SheetTrigger({
|
|
10
|
-
...props
|
|
11
|
-
}: React.ComponentProps<typeof SheetPrimitive.Trigger>): react_jsx_runtime74.JSX.Element;
|
|
12
|
-
declare function SheetClose({
|
|
13
|
-
...props
|
|
14
|
-
}: React.ComponentProps<typeof SheetPrimitive.Close>): react_jsx_runtime74.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_runtime74.JSX.Element;
|
|
23
|
-
declare function SheetHeader({
|
|
24
|
-
className,
|
|
25
|
-
...props
|
|
26
|
-
}: React.ComponentProps<'div'>): react_jsx_runtime74.JSX.Element;
|
|
27
|
-
declare function SheetFooter({
|
|
28
|
-
className,
|
|
29
|
-
...props
|
|
30
|
-
}: React.ComponentProps<'div'>): react_jsx_runtime74.JSX.Element;
|
|
31
|
-
declare function SheetTitle({
|
|
32
|
-
className,
|
|
33
|
-
...props
|
|
34
|
-
}: React.ComponentProps<typeof SheetPrimitive.Title>): react_jsx_runtime74.JSX.Element;
|
|
35
|
-
declare function SheetDescription({
|
|
36
|
-
className,
|
|
37
|
-
...props
|
|
38
|
-
}: React.ComponentProps<typeof SheetPrimitive.Description>): react_jsx_runtime74.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 };
|
package/dist/sheet-DrR3eH28.js
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
import { XIcon } from "lucide-react";
|
|
5
|
-
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
6
|
-
|
|
7
|
-
//#region src/components/ui/sheet.tsx
|
|
8
|
-
function Sheet({ ...props }) {
|
|
9
|
-
return /* @__PURE__ */ jsx(SheetPrimitive.Root, {
|
|
10
|
-
"data-slot": "sheet",
|
|
11
|
-
...props
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
function SheetTrigger({ ...props }) {
|
|
15
|
-
return /* @__PURE__ */ jsx(SheetPrimitive.Trigger, {
|
|
16
|
-
"data-slot": "sheet-trigger",
|
|
17
|
-
...props
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
function SheetClose({ ...props }) {
|
|
21
|
-
return /* @__PURE__ */ jsx(SheetPrimitive.Close, {
|
|
22
|
-
"data-slot": "sheet-close",
|
|
23
|
-
...props
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
function SheetPortal({ ...props }) {
|
|
27
|
-
return /* @__PURE__ */ jsx(SheetPrimitive.Portal, {
|
|
28
|
-
"data-slot": "sheet-portal",
|
|
29
|
-
...props
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
function SheetOverlay({ className, ...props }) {
|
|
33
|
-
return /* @__PURE__ */ jsx(SheetPrimitive.Overlay, {
|
|
34
|
-
"data-slot": "sheet-overlay",
|
|
35
|
-
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),
|
|
36
|
-
...props
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
function SheetContent({ className, children, side = "right", ...props }) {
|
|
40
|
-
return /* @__PURE__ */ jsxs(SheetPortal, { children: [/* @__PURE__ */ jsx(SheetOverlay, {}), /* @__PURE__ */ jsxs(SheetPrimitive.Content, {
|
|
41
|
-
"data-slot": "sheet-content",
|
|
42
|
-
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),
|
|
43
|
-
...props,
|
|
44
|
-
children: [children, /* @__PURE__ */ jsxs(SheetPrimitive.Close, {
|
|
45
|
-
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",
|
|
46
|
-
children: [/* @__PURE__ */ jsx(XIcon, { className: "size-4" }), /* @__PURE__ */ jsx("span", {
|
|
47
|
-
className: "sr-only",
|
|
48
|
-
children: "Close"
|
|
49
|
-
})]
|
|
50
|
-
})]
|
|
51
|
-
})] });
|
|
52
|
-
}
|
|
53
|
-
function SheetHeader({ className, ...props }) {
|
|
54
|
-
return /* @__PURE__ */ jsx("div", {
|
|
55
|
-
"data-slot": "sheet-header",
|
|
56
|
-
className: cn("flex flex-col gap-1.5 p-4", className),
|
|
57
|
-
...props
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
function SheetFooter({ className, ...props }) {
|
|
61
|
-
return /* @__PURE__ */ jsx("div", {
|
|
62
|
-
"data-slot": "sheet-footer",
|
|
63
|
-
className: cn("mt-auto flex flex-col gap-2 p-4", className),
|
|
64
|
-
...props
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
function SheetTitle({ className, ...props }) {
|
|
68
|
-
return /* @__PURE__ */ jsx(SheetPrimitive.Title, {
|
|
69
|
-
"data-slot": "sheet-title",
|
|
70
|
-
className: cn("text-foreground font-semibold", className),
|
|
71
|
-
...props
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
function SheetDescription({ className, ...props }) {
|
|
75
|
-
return /* @__PURE__ */ jsx(SheetPrimitive.Description, {
|
|
76
|
-
"data-slot": "sheet-description",
|
|
77
|
-
className: cn("text-muted-foreground text-sm", className),
|
|
78
|
-
...props
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
//#endregion
|
|
83
|
-
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 };
|
package/dist/slider-BlL5lT8d.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
5
|
-
|
|
6
|
-
//#region src/components/ui/slider.tsx
|
|
7
|
-
function Slider({ className, defaultValue, value, min = 0, max = 100, ...props }) {
|
|
8
|
-
const _values = React.useMemo(() => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max], [
|
|
9
|
-
value,
|
|
10
|
-
defaultValue,
|
|
11
|
-
min,
|
|
12
|
-
max
|
|
13
|
-
]);
|
|
14
|
-
return /* @__PURE__ */ jsxs(SliderPrimitive.Root, {
|
|
15
|
-
"data-slot": "slider",
|
|
16
|
-
defaultValue,
|
|
17
|
-
value,
|
|
18
|
-
min,
|
|
19
|
-
max,
|
|
20
|
-
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),
|
|
21
|
-
...props,
|
|
22
|
-
children: [/* @__PURE__ */ jsx(SliderPrimitive.Track, {
|
|
23
|
-
"data-slot": "slider-track",
|
|
24
|
-
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"),
|
|
25
|
-
children: /* @__PURE__ */ jsx(SliderPrimitive.Range, {
|
|
26
|
-
"data-slot": "slider-range",
|
|
27
|
-
className: cn("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")
|
|
28
|
-
})
|
|
29
|
-
}), Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ jsx(SliderPrimitive.Thumb, {
|
|
30
|
-
"data-slot": "slider-thumb",
|
|
31
|
-
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"
|
|
32
|
-
}, index))]
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
//#endregion
|
|
37
|
-
export { Slider as t };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as react_jsx_runtime50 from "react/jsx-runtime";
|
|
3
|
-
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
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_runtime50.JSX.Element;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { Slider as t };
|
package/dist/src-8ePG_tPo.js
DELETED
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
2
|
-
import { n as buttonVariants } from "./button-Ct22vvF2.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
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
|
-
function AlertDialog({ ...props }) {
|
|
10
|
-
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Root, {
|
|
11
|
-
"data-slot": "alert-dialog",
|
|
12
|
-
...props
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
function AlertDialogTrigger({ ...props }) {
|
|
16
|
-
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Trigger, {
|
|
17
|
-
"data-slot": "alert-dialog-trigger",
|
|
18
|
-
...props
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
function AlertDialogPortal({ ...props }) {
|
|
22
|
-
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Portal, {
|
|
23
|
-
"data-slot": "alert-dialog-portal",
|
|
24
|
-
...props
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
function AlertDialogOverlay({ className, ...props }) {
|
|
28
|
-
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Overlay, {
|
|
29
|
-
"data-slot": "alert-dialog-overlay",
|
|
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),
|
|
31
|
-
...props
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
function AlertDialogContent({ className, ...props }) {
|
|
35
|
-
return /* @__PURE__ */ jsxs(AlertDialogPortal, { children: [/* @__PURE__ */ jsx(AlertDialogOverlay, {}), /* @__PURE__ */ jsx(AlertDialogPrimitive.Content, {
|
|
36
|
-
"data-slot": "alert-dialog-content",
|
|
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),
|
|
38
|
-
...props
|
|
39
|
-
})] });
|
|
40
|
-
}
|
|
41
|
-
function AlertDialogHeader({ className, ...props }) {
|
|
42
|
-
return /* @__PURE__ */ jsx("div", {
|
|
43
|
-
"data-slot": "alert-dialog-header",
|
|
44
|
-
className: cn("flex flex-col gap-2 text-center sm:text-left", className),
|
|
45
|
-
...props
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
function AlertDialogFooter({ className, ...props }) {
|
|
49
|
-
return /* @__PURE__ */ jsx("div", {
|
|
50
|
-
"data-slot": "alert-dialog-footer",
|
|
51
|
-
className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
52
|
-
...props
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
function AlertDialogTitle({ className, ...props }) {
|
|
56
|
-
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Title, {
|
|
57
|
-
"data-slot": "alert-dialog-title",
|
|
58
|
-
className: cn("text-lg font-semibold", className),
|
|
59
|
-
...props
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
function AlertDialogDescription({ className, ...props }) {
|
|
63
|
-
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Description, {
|
|
64
|
-
"data-slot": "alert-dialog-description",
|
|
65
|
-
className: cn("text-muted-foreground text-sm", className),
|
|
66
|
-
...props
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
function AlertDialogAction({ className, ...props }) {
|
|
70
|
-
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Action, {
|
|
71
|
-
className: cn(buttonVariants(), className),
|
|
72
|
-
...props
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
function AlertDialogCancel({ className, ...props }) {
|
|
76
|
-
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Cancel, {
|
|
77
|
-
className: cn(buttonVariants({ variant: "outline" }), className),
|
|
78
|
-
...props
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
//#endregion
|
|
83
|
-
//#region src/components/ui/pagination.tsx
|
|
84
|
-
function Pagination({ className, ...props }) {
|
|
85
|
-
return /* @__PURE__ */ jsx("nav", {
|
|
86
|
-
role: "navigation",
|
|
87
|
-
"aria-label": "pagination",
|
|
88
|
-
"data-slot": "pagination",
|
|
89
|
-
className: cn("mx-auto flex w-full justify-center", className),
|
|
90
|
-
...props
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
function PaginationContent({ className, ...props }) {
|
|
94
|
-
return /* @__PURE__ */ jsx("ul", {
|
|
95
|
-
"data-slot": "pagination-content",
|
|
96
|
-
className: cn("flex flex-row items-center gap-1", className),
|
|
97
|
-
...props
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
function PaginationItem({ ...props }) {
|
|
101
|
-
return /* @__PURE__ */ jsx("li", {
|
|
102
|
-
"data-slot": "pagination-item",
|
|
103
|
-
...props
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
function PaginationLink({ className, isActive, size = "icon", ...props }) {
|
|
107
|
-
return /* @__PURE__ */ jsx("a", {
|
|
108
|
-
"aria-current": isActive ? "page" : void 0,
|
|
109
|
-
"data-slot": "pagination-link",
|
|
110
|
-
"data-active": isActive,
|
|
111
|
-
className: cn(buttonVariants({
|
|
112
|
-
variant: isActive ? "outline" : "ghost",
|
|
113
|
-
size
|
|
114
|
-
}), className),
|
|
115
|
-
...props
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
function PaginationPrevious({ className, ...props }) {
|
|
119
|
-
return /* @__PURE__ */ jsxs(PaginationLink, {
|
|
120
|
-
"aria-label": "Go to previous page",
|
|
121
|
-
size: "default",
|
|
122
|
-
className: cn("gap-1 px-2.5 sm:pl-2.5", className),
|
|
123
|
-
...props,
|
|
124
|
-
children: [/* @__PURE__ */ jsx(ChevronLeftIcon, {}), /* @__PURE__ */ jsx("span", {
|
|
125
|
-
className: "hidden sm:block",
|
|
126
|
-
children: "Previous"
|
|
127
|
-
})]
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
function PaginationNext({ className, ...props }) {
|
|
131
|
-
return /* @__PURE__ */ jsxs(PaginationLink, {
|
|
132
|
-
"aria-label": "Go to next page",
|
|
133
|
-
size: "default",
|
|
134
|
-
className: cn("gap-1 px-2.5 sm:pr-2.5", className),
|
|
135
|
-
...props,
|
|
136
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
137
|
-
className: "hidden sm:block",
|
|
138
|
-
children: "Next"
|
|
139
|
-
}), /* @__PURE__ */ jsx(ChevronRightIcon, {})]
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
function PaginationEllipsis({ className, ...props }) {
|
|
143
|
-
return /* @__PURE__ */ jsxs("span", {
|
|
144
|
-
"aria-hidden": true,
|
|
145
|
-
"data-slot": "pagination-ellipsis",
|
|
146
|
-
className: cn("flex size-9 items-center justify-center", className),
|
|
147
|
-
...props,
|
|
148
|
-
children: [/* @__PURE__ */ jsx(MoreHorizontalIcon, { className: "size-4" }), /* @__PURE__ */ jsx("span", {
|
|
149
|
-
className: "sr-only",
|
|
150
|
-
children: "More pages"
|
|
151
|
-
})]
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
//#endregion
|
|
156
|
-
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 };
|
package/dist/switch-BXSa0MEU.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
5
|
-
|
|
6
|
-
//#region src/components/ui/switch.tsx
|
|
7
|
-
function Switch({ className, ...props }) {
|
|
8
|
-
return /* @__PURE__ */ jsx(SwitchPrimitive.Root, {
|
|
9
|
-
"data-slot": "switch",
|
|
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),
|
|
11
|
-
...props,
|
|
12
|
-
children: /* @__PURE__ */ jsx(SwitchPrimitive.Thumb, {
|
|
13
|
-
"data-slot": "switch-thumb",
|
|
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")
|
|
15
|
-
})
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
|
-
export { Switch as t };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as react_jsx_runtime45 from "react/jsx-runtime";
|
|
3
|
-
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
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_runtime45.JSX.Element;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { Switch as t };
|
package/dist/tabs-C-Tv9y7L.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as react_jsx_runtime46 from "react/jsx-runtime";
|
|
3
|
-
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
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_runtime46.JSX.Element;
|
|
10
|
-
declare function TabsList({
|
|
11
|
-
className,
|
|
12
|
-
...props
|
|
13
|
-
}: React.ComponentProps<typeof TabsPrimitive.List>): react_jsx_runtime46.JSX.Element;
|
|
14
|
-
declare function TabsTrigger({
|
|
15
|
-
className,
|
|
16
|
-
...props
|
|
17
|
-
}: React.ComponentProps<typeof TabsPrimitive.Trigger>): react_jsx_runtime46.JSX.Element;
|
|
18
|
-
declare function TabsContent({
|
|
19
|
-
className,
|
|
20
|
-
...props
|
|
21
|
-
}: React.ComponentProps<typeof TabsPrimitive.Content>): react_jsx_runtime46.JSX.Element;
|
|
22
|
-
//#endregion
|
|
23
|
-
export { TabsTrigger as i, TabsContent as n, TabsList as r, Tabs as t };
|
package/dist/tabs-DbvqqMZV.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
5
|
-
|
|
6
|
-
//#region src/components/ui/tabs.tsx
|
|
7
|
-
function Tabs({ className, ...props }) {
|
|
8
|
-
return /* @__PURE__ */ jsx(TabsPrimitive.Root, {
|
|
9
|
-
"data-slot": "tabs",
|
|
10
|
-
className: cn("flex flex-col gap-2", className),
|
|
11
|
-
...props
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
function TabsList({ className, ...props }) {
|
|
15
|
-
return /* @__PURE__ */ jsx(TabsPrimitive.List, {
|
|
16
|
-
"data-slot": "tabs-list",
|
|
17
|
-
className: cn("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]", className),
|
|
18
|
-
...props
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
function TabsTrigger({ className, ...props }) {
|
|
22
|
-
return /* @__PURE__ */ jsx(TabsPrimitive.Trigger, {
|
|
23
|
-
"data-slot": "tabs-trigger",
|
|
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),
|
|
25
|
-
...props
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
function TabsContent({ className, ...props }) {
|
|
29
|
-
return /* @__PURE__ */ jsx(TabsPrimitive.Content, {
|
|
30
|
-
"data-slot": "tabs-content",
|
|
31
|
-
className: cn("flex-1 outline-none", className),
|
|
32
|
-
...props
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
//#endregion
|
|
37
|
-
export { TabsTrigger as i, TabsContent as n, TabsList as r, Tabs as t };
|