@pixpilot/shadcn 0.1.7 → 0.1.8
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-CLGD1Hp8.d.ts +11 -0
- package/dist/OrContinueWithSeparator-CkITP0NT.js +27 -0
- package/dist/alert-BuSJW7FJ.d.ts +24 -0
- package/dist/alert-DgTy4F7t.js +38 -0
- package/dist/alert-dialog-DfqbbSSI.d.ts +48 -0
- package/dist/alert-dialog-eEUiwCc2.js +82 -0
- package/dist/avatar-Cu2GSSYZ.d.ts +19 -0
- package/dist/avatar-ggnaPAdx.js +30 -0
- package/dist/badge-OxgStuN-.js +26 -0
- package/dist/badge-_1_wFXtU.d.ts +19 -0
- package/dist/button-Ct22vvF2.js +45 -0
- package/dist/button-D3LwGnow.d.ts +21 -0
- package/dist/calendar-BmGC3KEi.d.ts +26 -0
- package/dist/calendar-SVLTPCYN.js +106 -0
- package/dist/card-CgZyi8N4.d.ts +34 -0
- package/dist/card-mGJMSXR3.js +57 -0
- package/dist/checkbox-B3agGzx9.d.ts +11 -0
- package/dist/checkbox-Car6S-YU.js +22 -0
- package/dist/command-Bh0lIHth.js +87 -0
- package/dist/command-DYY3jhrg.d.ts +52 -0
- package/dist/components/index-STwYZkVD.d.ts +30 -0
- package/dist/components/index.js +35 -0
- package/dist/components/ui/OrContinueWithSeparator-zD9Uvv6K.d.ts +2 -0
- package/dist/components/ui/OrContinueWithSeparator.js +6 -0
- package/dist/components/ui/alert-CrGZ30uR.d.ts +2 -0
- package/dist/components/ui/alert-dialog-C0WF5Dos.d.ts +2 -0
- package/dist/components/ui/alert-dialog.js +7 -0
- package/dist/components/ui/alert.js +5 -0
- package/dist/components/ui/avatar-CktZYO6v.d.ts +2 -0
- package/dist/components/ui/avatar.js +5 -0
- package/dist/components/ui/badge-C9NYum6y.d.ts +2 -0
- package/dist/components/ui/badge.js +5 -0
- package/dist/components/ui/button-CoYoii2T.d.ts +2 -0
- package/dist/components/ui/button.js +5 -0
- package/dist/components/ui/calendar-5xd65Bmh.d.ts +2 -0
- package/dist/components/ui/calendar.js +6 -0
- package/dist/components/ui/card-Ckto1jiE.d.ts +2 -0
- package/dist/components/ui/card.js +5 -0
- package/dist/components/ui/checkbox-BCQklDUE.d.ts +2 -0
- package/dist/components/ui/checkbox.js +7 -0
- package/dist/components/ui/command-BqHc3wli.d.ts +2 -0
- package/dist/components/ui/command.js +8 -0
- package/dist/components/ui/dialog-BLBozK8K.d.ts +2 -0
- package/dist/components/ui/dialog.js +5 -0
- package/dist/components/ui/dropdown-menu-C-dl2Ajc.d.ts +2 -0
- package/dist/components/ui/dropdown-menu.js +5 -0
- package/dist/components/ui/file-upload-SPbnttch.d.ts +2 -0
- package/dist/components/ui/file-upload.js +7 -0
- package/dist/components/ui/form-ViAewsgB.d.ts +2 -0
- package/dist/components/ui/form.js +6 -0
- package/dist/components/ui/index-IiXyLa8U.d.ts +30 -0
- package/dist/components/ui/index.js +34 -0
- package/dist/components/ui/input-CMceREK-.d.ts +2 -0
- package/dist/components/ui/input.js +5 -0
- package/dist/components/ui/label-BUAecFS7.d.ts +2 -0
- package/dist/components/ui/label.js +5 -0
- package/dist/components/ui/pagination-CAR6sJhu.d.ts +2 -0
- package/dist/components/ui/pagination.js +5 -0
- package/dist/components/ui/popover-CGeLg_mb.d.ts +2 -0
- package/dist/components/ui/popover.js +5 -0
- package/dist/components/ui/radio-group-Bwr6-_75.d.ts +2 -0
- package/dist/components/ui/radio-group.js +5 -0
- package/dist/components/ui/select-Ceyh3aK6.d.ts +2 -0
- package/dist/components/ui/select.js +7 -0
- package/dist/components/ui/separator-Dfxgb7gD.d.ts +2 -0
- package/dist/components/ui/separator.js +5 -0
- package/dist/components/ui/shadcn-io/tags/index-CAKU-H34.d.ts +2 -0
- package/dist/components/ui/shadcn-io/tags/index.js +12 -0
- package/dist/components/ui/shadcn-io/tags-input-inline/index-DhQmdtJh.d.ts +2 -0
- package/dist/components/ui/shadcn-io/tags-input-inline/index.js +4 -0
- package/dist/components/ui/sheet-DWnv_e2Q.d.ts +2 -0
- package/dist/components/ui/sheet.js +5 -0
- package/dist/components/ui/slider-CfcbtbNG.d.ts +2 -0
- package/dist/components/ui/slider.js +5 -0
- package/dist/components/ui/switch-7kQX0wi0.d.ts +2 -0
- package/dist/components/ui/switch.js +7 -0
- package/dist/components/ui/tabs-B6omTiQk.d.ts +2 -0
- package/dist/components/ui/tabs.js +5 -0
- package/dist/components/ui/textarea-DlRILngG.d.ts +2 -0
- package/dist/components/ui/textarea.js +5 -0
- package/dist/components/ui/tooltip-C3dlvOcu.d.ts +2 -0
- package/dist/components/ui/tooltip.js +5 -0
- package/dist/components-CjOwsud_.js +0 -0
- package/dist/dialog-D-hcbHxy.d.ts +47 -0
- package/dist/dialog-O7j71U82.js +87 -0
- package/dist/dropdown-menu-BmbK1aYU.d.ts +77 -0
- package/dist/dropdown-menu-ChXZkLy7.js +124 -0
- package/dist/file-upload-CvqXunyl.d.ts +94 -0
- package/dist/file-upload-DPXO1W1r.js +906 -0
- package/dist/form-DITfwajn.js +88 -0
- package/dist/form-DlY7oYOM.d.ts +45 -0
- package/dist/index-BRXix37V.d.ts +1 -0
- package/dist/index-BR__9xyL.d.ts +31 -0
- package/dist/index-CuzvJC30.d.ts +1 -0
- package/dist/index-DmFnvxaQ.d.ts +1 -0
- package/dist/index-ii6MOZO-.d.ts +70 -0
- package/dist/index-mle9QVf7.d.ts +31 -0
- package/dist/index.js +33 -2276
- package/dist/input-RumcwxJs.d.ts +11 -0
- package/dist/input-Yyz-T5fE.js +16 -0
- package/dist/label-CAjd9Y0A.js +16 -0
- package/dist/label-CQ-28O7Q.d.ts +11 -0
- package/dist/lib/index-Cw9OTq6Z.d.ts +2 -0
- package/dist/lib/index.js +4 -0
- package/dist/lib/utils-BjeUWu6D.d.ts +2 -0
- package/dist/lib/utils.js +3 -0
- package/dist/lib-IiLuXmGR.js +0 -0
- package/dist/pagination-Q6kLlw6J.d.ts +39 -0
- package/dist/pagination-X2x4H7jR.js +80 -0
- package/dist/popover-BzPxXXo8.d.ts +22 -0
- package/dist/popover-CfOLUbKw.js +36 -0
- package/dist/radio-group-4k6LZmww.js +29 -0
- package/dist/radio-group-B_Q80541.d.ts +15 -0
- package/dist/select-CXWDXh_t.js +98 -0
- package/dist/select-DbSK-rd_.d.ts +52 -0
- package/dist/separator-BVBCxKBW.js +18 -0
- package/dist/separator-C_t229Nc.d.ts +13 -0
- package/dist/sheet-BBbn5TK4.js +83 -0
- package/dist/sheet-CQ4h2nhf.d.ts +40 -0
- package/dist/slider-DNo33RNT.d.ts +15 -0
- package/dist/slider-DZtuc6x6.js +37 -0
- package/dist/switch-C62hH2DB.js +20 -0
- package/dist/switch-vvbTlbEc.d.ts +11 -0
- package/dist/tabs-D2Ubjb4f.d.ts +23 -0
- package/dist/tabs-FcdB14CD.js +37 -0
- package/dist/tags-BAsyeRVu.js +130 -0
- package/dist/tags-input-inline-ClkRtl0N.js +57 -0
- package/dist/textarea-CmzvDEJd.d.ts +10 -0
- package/dist/textarea-DiUrRyYt.js +15 -0
- package/dist/tooltip-DVfEzbIm.js +37 -0
- package/dist/tooltip-JmJWz4lK.d.ts +23 -0
- package/dist/ui-8TGeeaIT.js +0 -0
- package/dist/utils-9ayr7mhb.d.ts +6 -0
- package/dist/utils-CeuVg6RA.js +10 -0
- package/package.json +2 -2
- package/dist/index-ZnekuREv.d.ts +0 -795
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as react_jsx_runtime57 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/ui/OrContinueWithSeparator.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A separator with a label for alternative sign-in methods.
|
|
7
|
+
* Used in authentication forms to visually separate sections.
|
|
8
|
+
*/
|
|
9
|
+
declare function OrContinueWithSeparator(): react_jsx_runtime57.JSX.Element;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { OrContinueWithSeparator as t };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { t as Separator } from "./separator-BVBCxKBW.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/components/ui/OrContinueWithSeparator.tsx
|
|
6
|
+
/**
|
|
7
|
+
* A separator with a label for alternative sign-in methods.
|
|
8
|
+
* Used in authentication forms to visually separate sections.
|
|
9
|
+
*/
|
|
10
|
+
function OrContinueWithSeparator() {
|
|
11
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
12
|
+
className: "relative my-4",
|
|
13
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
14
|
+
className: "absolute inset-0 flex items-center",
|
|
15
|
+
children: /* @__PURE__ */ jsx(Separator, {})
|
|
16
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
17
|
+
className: "relative flex justify-center text-xs uppercase",
|
|
18
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
19
|
+
className: "bg-background text-muted-foreground px-2",
|
|
20
|
+
children: "Or continue with"
|
|
21
|
+
})
|
|
22
|
+
})]
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
export { OrContinueWithSeparator as t };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as react_jsx_runtime135 from "react/jsx-runtime";
|
|
4
|
+
import * as class_variance_authority_types1 from "class-variance-authority/types";
|
|
5
|
+
|
|
6
|
+
//#region src/components/ui/alert.d.ts
|
|
7
|
+
declare const alertVariants: (props?: ({
|
|
8
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
9
|
+
} & class_variance_authority_types1.ClassProp) | undefined) => string;
|
|
10
|
+
declare function Alert({
|
|
11
|
+
className,
|
|
12
|
+
variant,
|
|
13
|
+
...props
|
|
14
|
+
}: React.ComponentProps<'div'> & VariantProps<typeof alertVariants>): react_jsx_runtime135.JSX.Element;
|
|
15
|
+
declare function AlertTitle({
|
|
16
|
+
className,
|
|
17
|
+
...props
|
|
18
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime135.JSX.Element;
|
|
19
|
+
declare function AlertDescription({
|
|
20
|
+
className,
|
|
21
|
+
...props
|
|
22
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime135.JSX.Element;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { AlertDescription as n, AlertTitle as r, Alert as t };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/ui/alert.tsx
|
|
7
|
+
const alertVariants = cva("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current", {
|
|
8
|
+
variants: { variant: {
|
|
9
|
+
default: "bg-card text-card-foreground",
|
|
10
|
+
destructive: "text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"
|
|
11
|
+
} },
|
|
12
|
+
defaultVariants: { variant: "default" }
|
|
13
|
+
});
|
|
14
|
+
function Alert({ className, variant, ...props }) {
|
|
15
|
+
return /* @__PURE__ */ jsx("div", {
|
|
16
|
+
"data-slot": "alert",
|
|
17
|
+
role: "alert",
|
|
18
|
+
className: cn(alertVariants({ variant }), className),
|
|
19
|
+
...props
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function AlertTitle({ className, ...props }) {
|
|
23
|
+
return /* @__PURE__ */ jsx("div", {
|
|
24
|
+
"data-slot": "alert-title",
|
|
25
|
+
className: cn("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", className),
|
|
26
|
+
...props
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function AlertDescription({ className, ...props }) {
|
|
30
|
+
return /* @__PURE__ */ jsx("div", {
|
|
31
|
+
"data-slot": "alert-description",
|
|
32
|
+
className: cn("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed", className),
|
|
33
|
+
...props
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
export { AlertDescription as n, AlertTitle as r, Alert as t };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as react_jsx_runtime124 from "react/jsx-runtime";
|
|
3
|
+
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
4
|
+
|
|
5
|
+
//#region src/components/ui/alert-dialog.d.ts
|
|
6
|
+
declare function AlertDialog({
|
|
7
|
+
...props
|
|
8
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Root>): react_jsx_runtime124.JSX.Element;
|
|
9
|
+
declare function AlertDialogTrigger({
|
|
10
|
+
...props
|
|
11
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): react_jsx_runtime124.JSX.Element;
|
|
12
|
+
declare function AlertDialogPortal({
|
|
13
|
+
...props
|
|
14
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): react_jsx_runtime124.JSX.Element;
|
|
15
|
+
declare function AlertDialogOverlay({
|
|
16
|
+
className,
|
|
17
|
+
...props
|
|
18
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): react_jsx_runtime124.JSX.Element;
|
|
19
|
+
declare function AlertDialogContent({
|
|
20
|
+
className,
|
|
21
|
+
...props
|
|
22
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Content>): react_jsx_runtime124.JSX.Element;
|
|
23
|
+
declare function AlertDialogHeader({
|
|
24
|
+
className,
|
|
25
|
+
...props
|
|
26
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime124.JSX.Element;
|
|
27
|
+
declare function AlertDialogFooter({
|
|
28
|
+
className,
|
|
29
|
+
...props
|
|
30
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime124.JSX.Element;
|
|
31
|
+
declare function AlertDialogTitle({
|
|
32
|
+
className,
|
|
33
|
+
...props
|
|
34
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Title>): react_jsx_runtime124.JSX.Element;
|
|
35
|
+
declare function AlertDialogDescription({
|
|
36
|
+
className,
|
|
37
|
+
...props
|
|
38
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Description>): react_jsx_runtime124.JSX.Element;
|
|
39
|
+
declare function AlertDialogAction({
|
|
40
|
+
className,
|
|
41
|
+
...props
|
|
42
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Action>): react_jsx_runtime124.JSX.Element;
|
|
43
|
+
declare function AlertDialogCancel({
|
|
44
|
+
className,
|
|
45
|
+
...props
|
|
46
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>): react_jsx_runtime124.JSX.Element;
|
|
47
|
+
//#endregion
|
|
48
|
+
export { AlertDialogDescription as a, AlertDialogOverlay as c, AlertDialogTrigger as d, AlertDialogContent as i, AlertDialogPortal as l, AlertDialogAction as n, AlertDialogFooter as o, AlertDialogCancel as r, AlertDialogHeader as s, AlertDialog as t, AlertDialogTitle as u };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { buttonVariants } from "@pixpilot/shadcn";
|
|
5
|
+
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
6
|
+
|
|
7
|
+
//#region src/components/ui/alert-dialog.tsx
|
|
8
|
+
function AlertDialog({ ...props }) {
|
|
9
|
+
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Root, {
|
|
10
|
+
"data-slot": "alert-dialog",
|
|
11
|
+
...props
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function AlertDialogTrigger({ ...props }) {
|
|
15
|
+
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Trigger, {
|
|
16
|
+
"data-slot": "alert-dialog-trigger",
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function AlertDialogPortal({ ...props }) {
|
|
21
|
+
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Portal, {
|
|
22
|
+
"data-slot": "alert-dialog-portal",
|
|
23
|
+
...props
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
function AlertDialogOverlay({ className, ...props }) {
|
|
27
|
+
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Overlay, {
|
|
28
|
+
"data-slot": "alert-dialog-overlay",
|
|
29
|
+
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),
|
|
30
|
+
...props
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function AlertDialogContent({ className, ...props }) {
|
|
34
|
+
return /* @__PURE__ */ jsxs(AlertDialogPortal, { children: [/* @__PURE__ */ jsx(AlertDialogOverlay, {}), /* @__PURE__ */ jsx(AlertDialogPrimitive.Content, {
|
|
35
|
+
"data-slot": "alert-dialog-content",
|
|
36
|
+
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),
|
|
37
|
+
...props
|
|
38
|
+
})] });
|
|
39
|
+
}
|
|
40
|
+
function AlertDialogHeader({ className, ...props }) {
|
|
41
|
+
return /* @__PURE__ */ jsx("div", {
|
|
42
|
+
"data-slot": "alert-dialog-header",
|
|
43
|
+
className: cn("flex flex-col gap-2 text-center sm:text-left", className),
|
|
44
|
+
...props
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function AlertDialogFooter({ className, ...props }) {
|
|
48
|
+
return /* @__PURE__ */ jsx("div", {
|
|
49
|
+
"data-slot": "alert-dialog-footer",
|
|
50
|
+
className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
51
|
+
...props
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
function AlertDialogTitle({ className, ...props }) {
|
|
55
|
+
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Title, {
|
|
56
|
+
"data-slot": "alert-dialog-title",
|
|
57
|
+
className: cn("text-lg font-semibold", className),
|
|
58
|
+
...props
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
function AlertDialogDescription({ className, ...props }) {
|
|
62
|
+
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Description, {
|
|
63
|
+
"data-slot": "alert-dialog-description",
|
|
64
|
+
className: cn("text-muted-foreground text-sm", className),
|
|
65
|
+
...props
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
function AlertDialogAction({ className, ...props }) {
|
|
69
|
+
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Action, {
|
|
70
|
+
className: cn(buttonVariants(), className),
|
|
71
|
+
...props
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
function AlertDialogCancel({ className, ...props }) {
|
|
75
|
+
return /* @__PURE__ */ jsx(AlertDialogPrimitive.Cancel, {
|
|
76
|
+
className: cn(buttonVariants({ variant: "outline" }), className),
|
|
77
|
+
...props
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
//#endregion
|
|
82
|
+
export { AlertDialogDescription as a, AlertDialogOverlay as c, AlertDialogTrigger as d, AlertDialogContent as i, AlertDialogPortal as l, AlertDialogAction as n, AlertDialogFooter as o, AlertDialogCancel as r, AlertDialogHeader as s, AlertDialog as t, AlertDialogTitle as u };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as react_jsx_runtime44 from "react/jsx-runtime";
|
|
3
|
+
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
4
|
+
|
|
5
|
+
//#region src/components/ui/avatar.d.ts
|
|
6
|
+
declare function Avatar({
|
|
7
|
+
className,
|
|
8
|
+
...props
|
|
9
|
+
}: React.ComponentProps<typeof AvatarPrimitive.Root>): react_jsx_runtime44.JSX.Element;
|
|
10
|
+
declare function AvatarImage({
|
|
11
|
+
className,
|
|
12
|
+
...props
|
|
13
|
+
}: React.ComponentProps<typeof AvatarPrimitive.Image>): react_jsx_runtime44.JSX.Element;
|
|
14
|
+
declare function AvatarFallback({
|
|
15
|
+
className,
|
|
16
|
+
...props
|
|
17
|
+
}: React.ComponentProps<typeof AvatarPrimitive.Fallback>): react_jsx_runtime44.JSX.Element;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { AvatarFallback as n, AvatarImage as r, Avatar as t };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
5
|
+
|
|
6
|
+
//#region src/components/ui/avatar.tsx
|
|
7
|
+
function Avatar({ className, ...props }) {
|
|
8
|
+
return /* @__PURE__ */ jsx(AvatarPrimitive.Root, {
|
|
9
|
+
"data-slot": "avatar",
|
|
10
|
+
className: cn("relative flex size-8 shrink-0 overflow-hidden rounded-full", className),
|
|
11
|
+
...props
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function AvatarImage({ className, ...props }) {
|
|
15
|
+
return /* @__PURE__ */ jsx(AvatarPrimitive.Image, {
|
|
16
|
+
"data-slot": "avatar-image",
|
|
17
|
+
className: cn("aspect-square size-full", className),
|
|
18
|
+
...props
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function AvatarFallback({ className, ...props }) {
|
|
22
|
+
return /* @__PURE__ */ jsx(AvatarPrimitive.Fallback, {
|
|
23
|
+
"data-slot": "avatar-fallback",
|
|
24
|
+
className: cn("bg-muted flex size-full items-center justify-center rounded-full", className),
|
|
25
|
+
...props
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
30
|
+
export { AvatarFallback as n, AvatarImage as r, Avatar as t };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
6
|
+
|
|
7
|
+
//#region src/components/ui/badge.tsx
|
|
8
|
+
const badgeVariants = cva("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden", {
|
|
9
|
+
variants: { variant: {
|
|
10
|
+
default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
11
|
+
secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
|
|
12
|
+
destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
13
|
+
outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
|
|
14
|
+
} },
|
|
15
|
+
defaultVariants: { variant: "default" }
|
|
16
|
+
});
|
|
17
|
+
function Badge({ className, variant, asChild = false, ...props }) {
|
|
18
|
+
return /* @__PURE__ */ jsx(asChild ? Slot : "span", {
|
|
19
|
+
"data-slot": "badge",
|
|
20
|
+
className: cn(badgeVariants({ variant }), className),
|
|
21
|
+
...props
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
export { badgeVariants as n, Badge as t };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
5
|
+
|
|
6
|
+
//#region src/components/ui/badge.d.ts
|
|
7
|
+
declare const badgeVariants: (props?: ({
|
|
8
|
+
variant?: "default" | "secondary" | "destructive" | "outline" | null | undefined;
|
|
9
|
+
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
10
|
+
declare function Badge({
|
|
11
|
+
className,
|
|
12
|
+
variant,
|
|
13
|
+
asChild,
|
|
14
|
+
...props
|
|
15
|
+
}: React.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
|
|
16
|
+
asChild?: boolean;
|
|
17
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { badgeVariants as n, Badge as t };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
6
|
+
|
|
7
|
+
//#region src/components/ui/button.tsx
|
|
8
|
+
const buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", {
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
12
|
+
destructive: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
13
|
+
outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
14
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
15
|
+
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
16
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
17
|
+
},
|
|
18
|
+
size: {
|
|
19
|
+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
20
|
+
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
21
|
+
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
22
|
+
icon: "size-9",
|
|
23
|
+
"icon-sm": "size-8",
|
|
24
|
+
"icon-lg": "size-10"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
defaultVariants: {
|
|
28
|
+
variant: "default",
|
|
29
|
+
size: "default"
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
function Button({ className, variant, size, asChild = false, ...props }) {
|
|
33
|
+
return /* @__PURE__ */ jsx(asChild ? Slot : "button", {
|
|
34
|
+
"data-slot": "button",
|
|
35
|
+
className: cn(buttonVariants({
|
|
36
|
+
variant,
|
|
37
|
+
size,
|
|
38
|
+
className
|
|
39
|
+
})),
|
|
40
|
+
...props
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
export { buttonVariants as n, Button as t };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as react_jsx_runtime37 from "react/jsx-runtime";
|
|
4
|
+
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
5
|
+
|
|
6
|
+
//#region src/components/ui/button.d.ts
|
|
7
|
+
declare const buttonVariants: (props?: ({
|
|
8
|
+
variant?: "default" | "secondary" | "destructive" | "outline" | "ghost" | "link" | null | undefined;
|
|
9
|
+
size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
|
|
10
|
+
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
11
|
+
declare function Button({
|
|
12
|
+
className,
|
|
13
|
+
variant,
|
|
14
|
+
size,
|
|
15
|
+
asChild,
|
|
16
|
+
...props
|
|
17
|
+
}: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
18
|
+
asChild?: boolean;
|
|
19
|
+
}): react_jsx_runtime37.JSX.Element;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { buttonVariants as n, Button as t };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { t as Button } from "./button-D3LwGnow.js";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as react_jsx_runtime77 from "react/jsx-runtime";
|
|
4
|
+
import { DayButton, DayPicker } from "react-day-picker";
|
|
5
|
+
|
|
6
|
+
//#region src/components/ui/calendar.d.ts
|
|
7
|
+
declare function Calendar({
|
|
8
|
+
className,
|
|
9
|
+
classNames,
|
|
10
|
+
showOutsideDays,
|
|
11
|
+
captionLayout,
|
|
12
|
+
buttonVariant,
|
|
13
|
+
formatters,
|
|
14
|
+
components,
|
|
15
|
+
...props
|
|
16
|
+
}: React.ComponentProps<typeof DayPicker> & {
|
|
17
|
+
buttonVariant?: React.ComponentProps<typeof Button>['variant'];
|
|
18
|
+
}): react_jsx_runtime77.JSX.Element;
|
|
19
|
+
declare function CalendarDayButton({
|
|
20
|
+
className,
|
|
21
|
+
day,
|
|
22
|
+
modifiers,
|
|
23
|
+
...props
|
|
24
|
+
}: React.ComponentProps<typeof DayButton>): react_jsx_runtime77.JSX.Element;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { CalendarDayButton as n, Calendar as t };
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
2
|
+
import { n as buttonVariants, t as Button } from "./button-Ct22vvF2.js";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
|
|
6
|
+
import { DayPicker, getDefaultClassNames } from "react-day-picker";
|
|
7
|
+
|
|
8
|
+
//#region src/components/ui/calendar.tsx
|
|
9
|
+
function Calendar({ className, classNames, showOutsideDays = true, captionLayout = "label", buttonVariant = "ghost", formatters, components, ...props }) {
|
|
10
|
+
const defaultClassNames = getDefaultClassNames();
|
|
11
|
+
return /* @__PURE__ */ jsx(DayPicker, {
|
|
12
|
+
showOutsideDays,
|
|
13
|
+
className: cn("bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent", String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`, String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`, className),
|
|
14
|
+
captionLayout,
|
|
15
|
+
formatters: {
|
|
16
|
+
formatMonthDropdown: (date) => date.toLocaleString("default", { month: "short" }),
|
|
17
|
+
...formatters
|
|
18
|
+
},
|
|
19
|
+
classNames: {
|
|
20
|
+
root: cn("w-fit", defaultClassNames.root),
|
|
21
|
+
months: cn("flex gap-4 flex-col md:flex-row relative", defaultClassNames.months),
|
|
22
|
+
month: cn("flex flex-col w-full gap-4", defaultClassNames.month),
|
|
23
|
+
nav: cn("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between", defaultClassNames.nav),
|
|
24
|
+
button_previous: cn(buttonVariants({ variant: buttonVariant }), "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none", defaultClassNames.button_previous),
|
|
25
|
+
button_next: cn(buttonVariants({ variant: buttonVariant }), "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none", defaultClassNames.button_next),
|
|
26
|
+
month_caption: cn("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)", defaultClassNames.month_caption),
|
|
27
|
+
dropdowns: cn("w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5", defaultClassNames.dropdowns),
|
|
28
|
+
dropdown_root: cn("relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md", defaultClassNames.dropdown_root),
|
|
29
|
+
dropdown: cn("absolute bg-popover inset-0 opacity-0", defaultClassNames.dropdown),
|
|
30
|
+
caption_label: cn("select-none font-medium", captionLayout === "label" ? "text-sm" : "rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5", defaultClassNames.caption_label),
|
|
31
|
+
table: "w-full border-collapse",
|
|
32
|
+
weekdays: cn("flex", defaultClassNames.weekdays),
|
|
33
|
+
weekday: cn("text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none", defaultClassNames.weekday),
|
|
34
|
+
week: cn("flex w-full mt-2", defaultClassNames.week),
|
|
35
|
+
week_number_header: cn("select-none w-(--cell-size)", defaultClassNames.week_number_header),
|
|
36
|
+
week_number: cn("text-[0.8rem] select-none text-muted-foreground", defaultClassNames.week_number),
|
|
37
|
+
day: cn("relative w-full h-full p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none", props.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-md" : "[&:first-child[data-selected=true]_button]:rounded-l-md", defaultClassNames.day),
|
|
38
|
+
range_start: cn("rounded-l-md bg-accent", defaultClassNames.range_start),
|
|
39
|
+
range_middle: cn("rounded-none", defaultClassNames.range_middle),
|
|
40
|
+
range_end: cn("rounded-r-md bg-accent", defaultClassNames.range_end),
|
|
41
|
+
today: cn("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none", defaultClassNames.today),
|
|
42
|
+
outside: cn("text-muted-foreground aria-selected:text-muted-foreground", defaultClassNames.outside),
|
|
43
|
+
disabled: cn("text-muted-foreground opacity-50", defaultClassNames.disabled),
|
|
44
|
+
hidden: cn("invisible", defaultClassNames.hidden),
|
|
45
|
+
...classNames
|
|
46
|
+
},
|
|
47
|
+
components: {
|
|
48
|
+
Root: ({ className: className$1, rootRef, ...props$1 }) => {
|
|
49
|
+
return /* @__PURE__ */ jsx("div", {
|
|
50
|
+
"data-slot": "calendar",
|
|
51
|
+
ref: rootRef,
|
|
52
|
+
className: cn(className$1),
|
|
53
|
+
...props$1
|
|
54
|
+
});
|
|
55
|
+
},
|
|
56
|
+
Chevron: ({ className: className$1, orientation, ...props$1 }) => {
|
|
57
|
+
if (orientation === "left") return /* @__PURE__ */ jsx(ChevronLeftIcon, {
|
|
58
|
+
className: cn("size-4", className$1),
|
|
59
|
+
...props$1
|
|
60
|
+
});
|
|
61
|
+
if (orientation === "right") return /* @__PURE__ */ jsx(ChevronRightIcon, {
|
|
62
|
+
className: cn("size-4", className$1),
|
|
63
|
+
...props$1
|
|
64
|
+
});
|
|
65
|
+
return /* @__PURE__ */ jsx(ChevronDownIcon, {
|
|
66
|
+
className: cn("size-4", className$1),
|
|
67
|
+
...props$1
|
|
68
|
+
});
|
|
69
|
+
},
|
|
70
|
+
DayButton: CalendarDayButton,
|
|
71
|
+
WeekNumber: ({ children, ...props$1 }) => {
|
|
72
|
+
return /* @__PURE__ */ jsx("td", {
|
|
73
|
+
...props$1,
|
|
74
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
75
|
+
className: "flex size-(--cell-size) items-center justify-center text-center",
|
|
76
|
+
children
|
|
77
|
+
})
|
|
78
|
+
});
|
|
79
|
+
},
|
|
80
|
+
...components
|
|
81
|
+
},
|
|
82
|
+
...props
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
function CalendarDayButton({ className, day, modifiers, ...props }) {
|
|
86
|
+
const defaultClassNames = getDefaultClassNames();
|
|
87
|
+
const ref = React.useRef(null);
|
|
88
|
+
React.useEffect(() => {
|
|
89
|
+
if (modifiers.focused) ref.current?.focus();
|
|
90
|
+
}, [modifiers.focused]);
|
|
91
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
92
|
+
ref,
|
|
93
|
+
variant: "ghost",
|
|
94
|
+
size: "icon",
|
|
95
|
+
"data-day": day.date.toLocaleDateString(),
|
|
96
|
+
"data-selected-single": modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle,
|
|
97
|
+
"data-range-start": modifiers.range_start,
|
|
98
|
+
"data-range-end": modifiers.range_end,
|
|
99
|
+
"data-range-middle": modifiers.range_middle,
|
|
100
|
+
className: cn("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70", defaultClassNames.day, className),
|
|
101
|
+
...props
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
//#endregion
|
|
106
|
+
export { CalendarDayButton as n, Calendar as t };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/ui/card.d.ts
|
|
5
|
+
declare function Card({
|
|
6
|
+
className,
|
|
7
|
+
...props
|
|
8
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime6.JSX.Element;
|
|
9
|
+
declare function CardHeader({
|
|
10
|
+
className,
|
|
11
|
+
...props
|
|
12
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime6.JSX.Element;
|
|
13
|
+
declare function CardTitle({
|
|
14
|
+
className,
|
|
15
|
+
...props
|
|
16
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime6.JSX.Element;
|
|
17
|
+
declare function CardDescription({
|
|
18
|
+
className,
|
|
19
|
+
...props
|
|
20
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime6.JSX.Element;
|
|
21
|
+
declare function CardAction({
|
|
22
|
+
className,
|
|
23
|
+
...props
|
|
24
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime6.JSX.Element;
|
|
25
|
+
declare function CardContent({
|
|
26
|
+
className,
|
|
27
|
+
...props
|
|
28
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime6.JSX.Element;
|
|
29
|
+
declare function CardFooter({
|
|
30
|
+
className,
|
|
31
|
+
...props
|
|
32
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime6.JSX.Element;
|
|
33
|
+
//#endregion
|
|
34
|
+
export { CardFooter as a, CardDescription as i, CardAction as n, CardHeader as o, CardContent as r, CardTitle as s, Card as t };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/components/ui/card.tsx
|
|
6
|
+
function Card({ className, ...props }) {
|
|
7
|
+
return /* @__PURE__ */ jsx("div", {
|
|
8
|
+
"data-slot": "card",
|
|
9
|
+
className: cn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm", className),
|
|
10
|
+
...props
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
function CardHeader({ className, ...props }) {
|
|
14
|
+
return /* @__PURE__ */ jsx("div", {
|
|
15
|
+
"data-slot": "card-header",
|
|
16
|
+
className: cn("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6", className),
|
|
17
|
+
...props
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function CardTitle({ className, ...props }) {
|
|
21
|
+
return /* @__PURE__ */ jsx("div", {
|
|
22
|
+
"data-slot": "card-title",
|
|
23
|
+
className: cn("leading-none font-semibold", className),
|
|
24
|
+
...props
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function CardDescription({ className, ...props }) {
|
|
28
|
+
return /* @__PURE__ */ jsx("div", {
|
|
29
|
+
"data-slot": "card-description",
|
|
30
|
+
className: cn("text-muted-foreground text-sm", className),
|
|
31
|
+
...props
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function CardAction({ className, ...props }) {
|
|
35
|
+
return /* @__PURE__ */ jsx("div", {
|
|
36
|
+
"data-slot": "card-action",
|
|
37
|
+
className: cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end", className),
|
|
38
|
+
...props
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
function CardContent({ className, ...props }) {
|
|
42
|
+
return /* @__PURE__ */ jsx("div", {
|
|
43
|
+
"data-slot": "card-content",
|
|
44
|
+
className: cn("px-6", className),
|
|
45
|
+
...props
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
function CardFooter({ className, ...props }) {
|
|
49
|
+
return /* @__PURE__ */ jsx("div", {
|
|
50
|
+
"data-slot": "card-footer",
|
|
51
|
+
className: cn("flex items-center px-6 [.border-t]:pt-6", className),
|
|
52
|
+
...props
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
//#endregion
|
|
57
|
+
export { CardFooter as a, CardDescription as i, CardAction as n, CardHeader as o, CardContent as r, CardTitle as s, Card as t };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as react_jsx_runtime87 from "react/jsx-runtime";
|
|
3
|
+
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
4
|
+
|
|
5
|
+
//#region src/components/ui/checkbox.d.ts
|
|
6
|
+
declare function Checkbox({
|
|
7
|
+
className,
|
|
8
|
+
...props
|
|
9
|
+
}: React.ComponentProps<typeof CheckboxPrimitive.Root>): react_jsx_runtime87.JSX.Element;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { Checkbox as t };
|