@pixpilot/shadcn 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +3 -0
- package/dist/OrContinueWithSeparator-BvOMy_0X.d.ts +11 -0
- package/dist/OrContinueWithSeparator-Cs96m5UB.js +28 -0
- package/dist/alert-DUygh_xL.d.ts +24 -0
- package/dist/alert-DuQQzE0M.js +39 -0
- package/dist/alert-dialog-BQBvTsjx.d.ts +48 -0
- package/dist/avatar-4_qFkDQq.d.ts +19 -0
- package/dist/avatar-DWlyZZC1.js +31 -0
- package/dist/badge-BtexTWYL.d.ts +19 -0
- package/dist/badge-ChGpGKfr.js +27 -0
- package/dist/button-BlGZakU_.d.ts +21 -0
- package/dist/button-CoM3CepB.js +46 -0
- package/dist/calendar-5J34tX7L.js +107 -0
- package/dist/calendar-DK_qW8tK.d.ts +26 -0
- package/dist/card-8btbTKaB.d.ts +34 -0
- package/dist/card-Bf0-1Hox.js +58 -0
- package/dist/checkbox-BfAe26dy.d.ts +11 -0
- package/dist/checkbox-ChqHvI5Y.js +23 -0
- package/dist/command-BzJMrpFw.js +88 -0
- package/dist/command-CTOqnzSx.d.ts +52 -0
- package/dist/components/index-DVJl6H4Z.d.ts +30 -0
- package/dist/components/index.js +33 -0
- package/dist/components/ui/OrContinueWithSeparator-DT1kKIwU.d.ts +2 -0
- package/dist/components/ui/OrContinueWithSeparator.js +7 -0
- package/dist/components/ui/alert-Dnyd20KB.d.ts +2 -0
- package/dist/components/ui/alert-dialog-D6vR-1Jz.d.ts +2 -0
- package/dist/components/ui/alert-dialog.js +35 -0
- package/dist/components/ui/alert.js +6 -0
- package/dist/components/ui/avatar-CBM6Rxkl.d.ts +2 -0
- package/dist/components/ui/avatar.js +6 -0
- package/dist/components/ui/badge-tZQG9OGU.d.ts +2 -0
- package/dist/components/ui/badge.js +6 -0
- package/dist/components/ui/button-B1jOU2SH.d.ts +2 -0
- package/dist/components/ui/button.js +6 -0
- package/dist/components/ui/calendar-CJJGD2Mp.d.ts +2 -0
- package/dist/components/ui/calendar.js +7 -0
- package/dist/components/ui/card-Dw7UFh1G.d.ts +2 -0
- package/dist/components/ui/card.js +6 -0
- package/dist/components/ui/checkbox-B4Zt92ES.d.ts +2 -0
- package/dist/components/ui/checkbox.js +8 -0
- package/dist/components/ui/command-Bo9iT_Mm.d.ts +2 -0
- package/dist/components/ui/command.js +9 -0
- package/dist/components/ui/dialog-DwFy7VXb.d.ts +2 -0
- package/dist/components/ui/dialog.js +6 -0
- package/dist/components/ui/dropdown-menu-CUC5b1yi.d.ts +2 -0
- package/dist/components/ui/dropdown-menu.js +6 -0
- package/dist/components/ui/file-upload-BKYxasJe.d.ts +2 -0
- package/dist/components/ui/file-upload.js +8 -0
- package/dist/components/ui/form-Ui-fGegs.d.ts +2 -0
- package/dist/components/ui/form.js +7 -0
- package/dist/components/ui/index-BDJfgHZT.d.ts +30 -0
- package/dist/components/ui/index.js +33 -0
- package/dist/components/ui/input-O6aZyiJl.d.ts +2 -0
- package/dist/components/ui/input.js +6 -0
- package/dist/components/ui/label-CiFY9QCm.d.ts +2 -0
- package/dist/components/ui/label.js +6 -0
- package/dist/components/ui/pagination-CLlEoufd.d.ts +2 -0
- package/dist/components/ui/pagination.js +33 -0
- package/dist/components/ui/popover-BuE9HJFI.d.ts +2 -0
- package/dist/components/ui/popover.js +6 -0
- package/dist/components/ui/radio-group-BNV5xVaA.d.ts +2 -0
- package/dist/components/ui/radio-group.js +6 -0
- package/dist/components/ui/select-BAT_xUS6.d.ts +2 -0
- package/dist/components/ui/select.js +8 -0
- package/dist/components/ui/separator-rI7QiaxO.d.ts +2 -0
- package/dist/components/ui/separator.js +6 -0
- package/dist/components/ui/shadcn-io/tags/index-NcbrE1RX.d.ts +2 -0
- package/dist/components/ui/shadcn-io/tags/index.js +13 -0
- package/dist/components/ui/shadcn-io/tags-input-inline/index-CAYAMlWT.d.ts +2 -0
- package/dist/components/ui/shadcn-io/tags-input-inline/index.js +5 -0
- package/dist/components/ui/sheet-CPsrps2C.d.ts +2 -0
- package/dist/components/ui/sheet.js +6 -0
- package/dist/components/ui/slider-DqROXr79.d.ts +2 -0
- package/dist/components/ui/slider.js +6 -0
- package/dist/components/ui/switch-BF2c_Zn9.d.ts +2 -0
- package/dist/components/ui/switch.js +8 -0
- package/dist/components/ui/tabs-DRhGRCqD.d.ts +2 -0
- package/dist/components/ui/tabs.js +6 -0
- package/dist/components/ui/textarea-BoOWHGtB.d.ts +2 -0
- package/dist/components/ui/textarea.js +6 -0
- package/dist/components/ui/tooltip-BcAxWshO.d.ts +2 -0
- package/dist/components/ui/tooltip.js +6 -0
- package/dist/dialog-C4wKr521.d.ts +47 -0
- package/dist/dialog-CnHQjTPX.js +88 -0
- package/dist/dropdown-menu-BytmAQI6.js +125 -0
- package/dist/dropdown-menu-CnrLe3nb.d.ts +77 -0
- package/dist/file-upload-BEeMesnR.js +907 -0
- package/dist/file-upload-BLSfy-1K.d.ts +94 -0
- package/dist/form-BSwltNo1.d.ts +45 -0
- package/dist/form-BjnyYpgw.js +89 -0
- package/dist/index-BSKUD7fA.d.ts +39 -0
- package/dist/index-Bpvi7gIc.d.ts +31 -0
- package/dist/index-CZUtOTjh.d.ts +1 -0
- package/dist/index-CkSrVqpn.d.ts +31 -0
- package/dist/index-DwHkYD1A.d.ts +70 -0
- package/dist/index.js +33 -0
- package/dist/input-CUeyj64L.js +17 -0
- package/dist/input-Mvgjlh3F.d.ts +11 -0
- package/dist/jsx-runtime-CjFsk39Z.js +274 -0
- package/dist/label-CaJMuv7i.d.ts +11 -0
- package/dist/label-DGznqsHm.js +17 -0
- package/dist/lib/index-ChuxSUKt.d.ts +2 -0
- package/dist/lib/index.js +4 -0
- package/dist/lib/utils-45Ez8x6p.d.ts +2 -0
- package/dist/lib/utils.js +3 -0
- package/dist/lib-B_fww26I.js +1 -0
- package/dist/popover-CV48KL0e.js +37 -0
- package/dist/popover-DpSyC3-j.d.ts +22 -0
- package/dist/radio-group-Cfa4brdK.d.ts +15 -0
- package/dist/radio-group-jaFHISZ7.js +30 -0
- package/dist/select-B3Zt7fRL.d.ts +52 -0
- package/dist/select-C96xvMSx.js +99 -0
- package/dist/separator-C71XEO3E.js +19 -0
- package/dist/separator-Cucb_6O4.d.ts +13 -0
- package/dist/sheet-B3Ak6LSw.d.ts +40 -0
- package/dist/sheet-BlZGrRNt.js +84 -0
- package/dist/slider-CdK5O4pc.js +38 -0
- package/dist/slider-D8tCfiZV.d.ts +15 -0
- package/dist/src-DQlJgy1h.js +157 -0
- package/dist/switch-Bz5Iiy2_.js +21 -0
- package/dist/switch-DXaptB6g.d.ts +11 -0
- package/dist/tabs-B0X-LEdY.d.ts +23 -0
- package/dist/tabs-BjolTUEI.js +38 -0
- package/dist/tags-BnJCu0NQ.js +131 -0
- package/dist/tags-input-inline-DnEu3Dyw.js +58 -0
- package/dist/textarea-09eXlo5q.d.ts +10 -0
- package/dist/textarea-BNZyZgAM.js +16 -0
- package/dist/tooltip-BQpFgVRJ.d.ts +23 -0
- package/dist/tooltip-CuYs-__e.js +38 -0
- package/dist/utils-D2WOFi-N.js +10 -0
- package/dist/utils-_VBxPjie.d.ts +6 -0
- package/package.json +101 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 pixpilot
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as react_jsx_runtime112 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_runtime112.JSX.Element;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { OrContinueWithSeparator as t };
|
|
@@ -0,0 +1,28 @@
|
|
|
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 };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
4
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/ui/alert.d.ts
|
|
7
|
+
declare const alertVariants: (props?: ({
|
|
8
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
9
|
+
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
10
|
+
declare function Alert({
|
|
11
|
+
className,
|
|
12
|
+
variant,
|
|
13
|
+
...props
|
|
14
|
+
}: React.ComponentProps<'div'> & VariantProps<typeof alertVariants>): react_jsx_runtime9.JSX.Element;
|
|
15
|
+
declare function AlertTitle({
|
|
16
|
+
className,
|
|
17
|
+
...props
|
|
18
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime9.JSX.Element;
|
|
19
|
+
declare function AlertDescription({
|
|
20
|
+
className,
|
|
21
|
+
...props
|
|
22
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime9.JSX.Element;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { AlertDescription as n, AlertTitle as r, Alert as t };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { n as __toESM, t as require_jsx_runtime } from "./jsx-runtime-CjFsk39Z.js";
|
|
2
|
+
import { t as cn } from "./utils-D2WOFi-N.js";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
import "react";
|
|
5
|
+
|
|
6
|
+
//#region src/components/ui/alert.tsx
|
|
7
|
+
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
8
|
+
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", {
|
|
9
|
+
variants: { variant: {
|
|
10
|
+
default: "bg-card text-card-foreground",
|
|
11
|
+
destructive: "text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"
|
|
12
|
+
} },
|
|
13
|
+
defaultVariants: { variant: "default" }
|
|
14
|
+
});
|
|
15
|
+
function Alert({ className, variant, ...props }) {
|
|
16
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
17
|
+
"data-slot": "alert",
|
|
18
|
+
role: "alert",
|
|
19
|
+
className: cn(alertVariants({ variant }), className),
|
|
20
|
+
...props
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
function AlertTitle({ className, ...props }) {
|
|
24
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
25
|
+
"data-slot": "alert-title",
|
|
26
|
+
className: cn("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", className),
|
|
27
|
+
...props
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function AlertDescription({ className, ...props }) {
|
|
31
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
32
|
+
"data-slot": "alert-description",
|
|
33
|
+
className: cn("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed", className),
|
|
34
|
+
...props
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
//#endregion
|
|
39
|
+
export { AlertDescription as n, AlertTitle as r, Alert as t };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
3
|
+
import * as react_jsx_runtime75 from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/components/ui/alert-dialog.d.ts
|
|
6
|
+
declare function AlertDialog({
|
|
7
|
+
...props
|
|
8
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Root>): react_jsx_runtime75.JSX.Element;
|
|
9
|
+
declare function AlertDialogTrigger({
|
|
10
|
+
...props
|
|
11
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): react_jsx_runtime75.JSX.Element;
|
|
12
|
+
declare function AlertDialogPortal({
|
|
13
|
+
...props
|
|
14
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): react_jsx_runtime75.JSX.Element;
|
|
15
|
+
declare function AlertDialogOverlay({
|
|
16
|
+
className,
|
|
17
|
+
...props
|
|
18
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): react_jsx_runtime75.JSX.Element;
|
|
19
|
+
declare function AlertDialogContent({
|
|
20
|
+
className,
|
|
21
|
+
...props
|
|
22
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Content>): react_jsx_runtime75.JSX.Element;
|
|
23
|
+
declare function AlertDialogHeader({
|
|
24
|
+
className,
|
|
25
|
+
...props
|
|
26
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime75.JSX.Element;
|
|
27
|
+
declare function AlertDialogFooter({
|
|
28
|
+
className,
|
|
29
|
+
...props
|
|
30
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime75.JSX.Element;
|
|
31
|
+
declare function AlertDialogTitle({
|
|
32
|
+
className,
|
|
33
|
+
...props
|
|
34
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Title>): react_jsx_runtime75.JSX.Element;
|
|
35
|
+
declare function AlertDialogDescription({
|
|
36
|
+
className,
|
|
37
|
+
...props
|
|
38
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Description>): react_jsx_runtime75.JSX.Element;
|
|
39
|
+
declare function AlertDialogAction({
|
|
40
|
+
className,
|
|
41
|
+
...props
|
|
42
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Action>): react_jsx_runtime75.JSX.Element;
|
|
43
|
+
declare function AlertDialogCancel({
|
|
44
|
+
className,
|
|
45
|
+
...props
|
|
46
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>): react_jsx_runtime75.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,19 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
3
|
+
import * as react_jsx_runtime87 from "react/jsx-runtime";
|
|
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_runtime87.JSX.Element;
|
|
10
|
+
declare function AvatarImage({
|
|
11
|
+
className,
|
|
12
|
+
...props
|
|
13
|
+
}: React.ComponentProps<typeof AvatarPrimitive.Image>): react_jsx_runtime87.JSX.Element;
|
|
14
|
+
declare function AvatarFallback({
|
|
15
|
+
className,
|
|
16
|
+
...props
|
|
17
|
+
}: React.ComponentProps<typeof AvatarPrimitive.Fallback>): react_jsx_runtime87.JSX.Element;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { AvatarFallback as n, AvatarImage as r, Avatar as t };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { n as __toESM, t as require_jsx_runtime } from "./jsx-runtime-CjFsk39Z.js";
|
|
2
|
+
import { t as cn } from "./utils-D2WOFi-N.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
5
|
+
|
|
6
|
+
//#region src/components/ui/avatar.tsx
|
|
7
|
+
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
8
|
+
function Avatar({ className, ...props }) {
|
|
9
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AvatarPrimitive.Root, {
|
|
10
|
+
"data-slot": "avatar",
|
|
11
|
+
className: cn("relative flex size-8 shrink-0 overflow-hidden rounded-full", className),
|
|
12
|
+
...props
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function AvatarImage({ className, ...props }) {
|
|
16
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AvatarPrimitive.Image, {
|
|
17
|
+
"data-slot": "avatar-image",
|
|
18
|
+
className: cn("aspect-square size-full", className),
|
|
19
|
+
...props
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function AvatarFallback({ className, ...props }) {
|
|
23
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AvatarPrimitive.Fallback, {
|
|
24
|
+
"data-slot": "avatar-fallback",
|
|
25
|
+
className: cn("bg-muted flex size-full items-center justify-center rounded-full", className),
|
|
26
|
+
...props
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
31
|
+
export { AvatarFallback as n, AvatarImage as r, Avatar as t };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as class_variance_authority_types1 from "class-variance-authority/types";
|
|
4
|
+
import * as react_jsx_runtime39 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/ui/badge.d.ts
|
|
7
|
+
declare const badgeVariants: (props?: ({
|
|
8
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
9
|
+
} & class_variance_authority_types1.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_runtime39.JSX.Element;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { badgeVariants as n, Badge as t };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { n as __toESM, t as require_jsx_runtime } from "./jsx-runtime-CjFsk39Z.js";
|
|
2
|
+
import { t as cn } from "./utils-D2WOFi-N.js";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
import "react";
|
|
5
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
6
|
+
|
|
7
|
+
//#region src/components/ui/badge.tsx
|
|
8
|
+
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
9
|
+
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", {
|
|
10
|
+
variants: { variant: {
|
|
11
|
+
default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
12
|
+
secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
|
|
13
|
+
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",
|
|
14
|
+
outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
|
|
15
|
+
} },
|
|
16
|
+
defaultVariants: { variant: "default" }
|
|
17
|
+
});
|
|
18
|
+
function Badge({ className, variant, asChild = false, ...props }) {
|
|
19
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(asChild ? Slot : "span", {
|
|
20
|
+
"data-slot": "badge",
|
|
21
|
+
className: cn(badgeVariants({ variant }), className),
|
|
22
|
+
...props
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
export { badgeVariants as n, Badge as t };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
4
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/ui/button.d.ts
|
|
7
|
+
declare const buttonVariants: (props?: ({
|
|
8
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "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_runtime20.JSX.Element;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { buttonVariants as n, Button as t };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { n as __toESM, t as require_jsx_runtime } from "./jsx-runtime-CjFsk39Z.js";
|
|
2
|
+
import { t as cn } from "./utils-D2WOFi-N.js";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
import "react";
|
|
5
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
6
|
+
|
|
7
|
+
//#region src/components/ui/button.tsx
|
|
8
|
+
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
9
|
+
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", {
|
|
10
|
+
variants: {
|
|
11
|
+
variant: {
|
|
12
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
13
|
+
destructive: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
14
|
+
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",
|
|
15
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
16
|
+
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
17
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
18
|
+
},
|
|
19
|
+
size: {
|
|
20
|
+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
21
|
+
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
22
|
+
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
23
|
+
icon: "size-9",
|
|
24
|
+
"icon-sm": "size-8",
|
|
25
|
+
"icon-lg": "size-10"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
defaultVariants: {
|
|
29
|
+
variant: "default",
|
|
30
|
+
size: "default"
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
function Button({ className, variant, size, asChild = false, ...props }) {
|
|
34
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(asChild ? Slot : "button", {
|
|
35
|
+
"data-slot": "button",
|
|
36
|
+
className: cn(buttonVariants({
|
|
37
|
+
variant,
|
|
38
|
+
size,
|
|
39
|
+
className
|
|
40
|
+
})),
|
|
41
|
+
...props
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
//#endregion
|
|
46
|
+
export { buttonVariants as n, Button as t };
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { n as __toESM, t as require_jsx_runtime } from "./jsx-runtime-CjFsk39Z.js";
|
|
2
|
+
import { t as cn } from "./utils-D2WOFi-N.js";
|
|
3
|
+
import { n as buttonVariants, t as Button } from "./button-CoM3CepB.js";
|
|
4
|
+
import * as React from "react";
|
|
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
|
+
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
10
|
+
function Calendar({ className, classNames, showOutsideDays = true, captionLayout = "label", buttonVariant = "ghost", formatters, components, ...props }) {
|
|
11
|
+
const defaultClassNames = getDefaultClassNames();
|
|
12
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DayPicker, {
|
|
13
|
+
showOutsideDays,
|
|
14
|
+
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),
|
|
15
|
+
captionLayout,
|
|
16
|
+
formatters: {
|
|
17
|
+
formatMonthDropdown: (date) => date.toLocaleString("default", { month: "short" }),
|
|
18
|
+
...formatters
|
|
19
|
+
},
|
|
20
|
+
classNames: {
|
|
21
|
+
root: cn("w-fit", defaultClassNames.root),
|
|
22
|
+
months: cn("flex gap-4 flex-col md:flex-row relative", defaultClassNames.months),
|
|
23
|
+
month: cn("flex flex-col w-full gap-4", defaultClassNames.month),
|
|
24
|
+
nav: cn("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between", defaultClassNames.nav),
|
|
25
|
+
button_previous: cn(buttonVariants({ variant: buttonVariant }), "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none", defaultClassNames.button_previous),
|
|
26
|
+
button_next: cn(buttonVariants({ variant: buttonVariant }), "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none", defaultClassNames.button_next),
|
|
27
|
+
month_caption: cn("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)", defaultClassNames.month_caption),
|
|
28
|
+
dropdowns: cn("w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5", defaultClassNames.dropdowns),
|
|
29
|
+
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),
|
|
30
|
+
dropdown: cn("absolute bg-popover inset-0 opacity-0", defaultClassNames.dropdown),
|
|
31
|
+
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),
|
|
32
|
+
table: "w-full border-collapse",
|
|
33
|
+
weekdays: cn("flex", defaultClassNames.weekdays),
|
|
34
|
+
weekday: cn("text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none", defaultClassNames.weekday),
|
|
35
|
+
week: cn("flex w-full mt-2", defaultClassNames.week),
|
|
36
|
+
week_number_header: cn("select-none w-(--cell-size)", defaultClassNames.week_number_header),
|
|
37
|
+
week_number: cn("text-[0.8rem] select-none text-muted-foreground", defaultClassNames.week_number),
|
|
38
|
+
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),
|
|
39
|
+
range_start: cn("rounded-l-md bg-accent", defaultClassNames.range_start),
|
|
40
|
+
range_middle: cn("rounded-none", defaultClassNames.range_middle),
|
|
41
|
+
range_end: cn("rounded-r-md bg-accent", defaultClassNames.range_end),
|
|
42
|
+
today: cn("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none", defaultClassNames.today),
|
|
43
|
+
outside: cn("text-muted-foreground aria-selected:text-muted-foreground", defaultClassNames.outside),
|
|
44
|
+
disabled: cn("text-muted-foreground opacity-50", defaultClassNames.disabled),
|
|
45
|
+
hidden: cn("invisible", defaultClassNames.hidden),
|
|
46
|
+
...classNames
|
|
47
|
+
},
|
|
48
|
+
components: {
|
|
49
|
+
Root: ({ className: className$1, rootRef, ...props$1 }) => {
|
|
50
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
51
|
+
"data-slot": "calendar",
|
|
52
|
+
ref: rootRef,
|
|
53
|
+
className: cn(className$1),
|
|
54
|
+
...props$1
|
|
55
|
+
});
|
|
56
|
+
},
|
|
57
|
+
Chevron: ({ className: className$1, orientation, ...props$1 }) => {
|
|
58
|
+
if (orientation === "left") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronLeftIcon, {
|
|
59
|
+
className: cn("size-4", className$1),
|
|
60
|
+
...props$1
|
|
61
|
+
});
|
|
62
|
+
if (orientation === "right") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronRightIcon, {
|
|
63
|
+
className: cn("size-4", className$1),
|
|
64
|
+
...props$1
|
|
65
|
+
});
|
|
66
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronDownIcon, {
|
|
67
|
+
className: cn("size-4", className$1),
|
|
68
|
+
...props$1
|
|
69
|
+
});
|
|
70
|
+
},
|
|
71
|
+
DayButton: CalendarDayButton,
|
|
72
|
+
WeekNumber: ({ children, ...props$1 }) => {
|
|
73
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", {
|
|
74
|
+
...props$1,
|
|
75
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
76
|
+
className: "flex size-(--cell-size) items-center justify-center text-center",
|
|
77
|
+
children
|
|
78
|
+
})
|
|
79
|
+
});
|
|
80
|
+
},
|
|
81
|
+
...components
|
|
82
|
+
},
|
|
83
|
+
...props
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
function CalendarDayButton({ className, day, modifiers, ...props }) {
|
|
87
|
+
const defaultClassNames = getDefaultClassNames();
|
|
88
|
+
const ref = React.useRef(null);
|
|
89
|
+
React.useEffect(() => {
|
|
90
|
+
if (modifiers.focused) ref.current?.focus();
|
|
91
|
+
}, [modifiers.focused]);
|
|
92
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
|
|
93
|
+
ref,
|
|
94
|
+
variant: "ghost",
|
|
95
|
+
size: "icon",
|
|
96
|
+
"data-day": day.date.toLocaleDateString(),
|
|
97
|
+
"data-selected-single": modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle,
|
|
98
|
+
"data-range-start": modifiers.range_start,
|
|
99
|
+
"data-range-end": modifiers.range_end,
|
|
100
|
+
"data-range-middle": modifiers.range_middle,
|
|
101
|
+
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),
|
|
102
|
+
...props
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
//#endregion
|
|
107
|
+
export { CalendarDayButton as n, Calendar as t };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { t as Button } from "./button-BlGZakU_.js";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { DayButton, DayPicker } from "react-day-picker";
|
|
4
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
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_runtime0.JSX.Element;
|
|
19
|
+
declare function CalendarDayButton({
|
|
20
|
+
className,
|
|
21
|
+
day,
|
|
22
|
+
modifiers,
|
|
23
|
+
...props
|
|
24
|
+
}: React.ComponentProps<typeof DayButton>): react_jsx_runtime0.JSX.Element;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { CalendarDayButton as n, Calendar as t };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as react_jsx_runtime2 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_runtime2.JSX.Element;
|
|
9
|
+
declare function CardHeader({
|
|
10
|
+
className,
|
|
11
|
+
...props
|
|
12
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime2.JSX.Element;
|
|
13
|
+
declare function CardTitle({
|
|
14
|
+
className,
|
|
15
|
+
...props
|
|
16
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime2.JSX.Element;
|
|
17
|
+
declare function CardDescription({
|
|
18
|
+
className,
|
|
19
|
+
...props
|
|
20
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime2.JSX.Element;
|
|
21
|
+
declare function CardAction({
|
|
22
|
+
className,
|
|
23
|
+
...props
|
|
24
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime2.JSX.Element;
|
|
25
|
+
declare function CardContent({
|
|
26
|
+
className,
|
|
27
|
+
...props
|
|
28
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime2.JSX.Element;
|
|
29
|
+
declare function CardFooter({
|
|
30
|
+
className,
|
|
31
|
+
...props
|
|
32
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime2.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,58 @@
|
|
|
1
|
+
import { n as __toESM, t as require_jsx_runtime } from "./jsx-runtime-CjFsk39Z.js";
|
|
2
|
+
import { t as cn } from "./utils-D2WOFi-N.js";
|
|
3
|
+
import "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/ui/card.tsx
|
|
6
|
+
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
7
|
+
function Card({ className, ...props }) {
|
|
8
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
9
|
+
"data-slot": "card",
|
|
10
|
+
className: cn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm", className),
|
|
11
|
+
...props
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function CardHeader({ className, ...props }) {
|
|
15
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
16
|
+
"data-slot": "card-header",
|
|
17
|
+
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),
|
|
18
|
+
...props
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function CardTitle({ className, ...props }) {
|
|
22
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
23
|
+
"data-slot": "card-title",
|
|
24
|
+
className: cn("leading-none font-semibold", className),
|
|
25
|
+
...props
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
function CardDescription({ className, ...props }) {
|
|
29
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
30
|
+
"data-slot": "card-description",
|
|
31
|
+
className: cn("text-muted-foreground text-sm", className),
|
|
32
|
+
...props
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function CardAction({ className, ...props }) {
|
|
36
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
37
|
+
"data-slot": "card-action",
|
|
38
|
+
className: cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end", className),
|
|
39
|
+
...props
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
function CardContent({ className, ...props }) {
|
|
43
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
44
|
+
"data-slot": "card-content",
|
|
45
|
+
className: cn("px-6", className),
|
|
46
|
+
...props
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
function CardFooter({ className, ...props }) {
|
|
50
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
51
|
+
"data-slot": "card-footer",
|
|
52
|
+
className: cn("flex items-center px-6 [.border-t]:pt-6", className),
|
|
53
|
+
...props
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
//#endregion
|
|
58
|
+
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 CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
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_runtime0.JSX.Element;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { Checkbox as t };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { n as __toESM, t as require_jsx_runtime } from "./jsx-runtime-CjFsk39Z.js";
|
|
2
|
+
import { t as cn } from "./utils-D2WOFi-N.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { CheckIcon } from "lucide-react";
|
|
5
|
+
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
6
|
+
|
|
7
|
+
//#region src/components/ui/checkbox.tsx
|
|
8
|
+
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
9
|
+
function Checkbox({ className, ...props }) {
|
|
10
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CheckboxPrimitive.Root, {
|
|
11
|
+
"data-slot": "checkbox",
|
|
12
|
+
className: cn("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", className),
|
|
13
|
+
...props,
|
|
14
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CheckboxPrimitive.Indicator, {
|
|
15
|
+
"data-slot": "checkbox-indicator",
|
|
16
|
+
className: "grid place-content-center text-current transition-none",
|
|
17
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CheckIcon, { className: "size-3.5" })
|
|
18
|
+
})
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { Checkbox as t };
|