@pixpilot/shadcn 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{OrContinueWithSeparator-BQalGx6O.d.ts → OrContinueWithSeparator-BDH-vep4.d.ts} +2 -2
- package/dist/OrContinueWithSeparator-CkITP0NT.js +27 -0
- package/dist/{alert-BDcOuBrO.d.ts → alert-CKr0C0yG.d.ts} +4 -4
- package/dist/{alert-DuQQzE0M.js → alert-DgTy4F7t.js} +5 -6
- package/dist/{alert-dialog-Iw5UG8d3.d.ts → alert-dialog-BIYOf1qe.d.ts} +1 -1
- package/dist/{avatar-BRZS2oIf.d.ts → avatar-DomHDuSM.d.ts} +4 -4
- package/dist/{avatar-DWlyZZC1.js → avatar-ggnaPAdx.js} +5 -6
- package/dist/{badge-Dwxq7JaA.d.ts → badge-DaNELwZ4.d.ts} +5 -5
- package/dist/{badge-ChGpGKfr.js → badge-OxgStuN-.js} +3 -4
- package/dist/{button-CoM3CepB.js → button-Ct22vvF2.js} +3 -4
- package/dist/{button-CSw4bOk7.d.ts → button-Qk5_S2q2.d.ts} +5 -5
- package/dist/{calendar-Vx7GBiN5.d.ts → calendar-CtMOHJjw.d.ts} +4 -4
- package/dist/{calendar-5J34tX7L.js → calendar-SVLTPCYN.js} +11 -12
- package/dist/{card-CN1Wv1_W.d.ts → card-7m__j7pN.d.ts} +8 -8
- package/dist/{card-Bf0-1Hox.js → card-mGJMSXR3.js} +9 -10
- package/dist/{checkbox-COC2Igpo.d.ts → checkbox-C2ohGs66.d.ts} +2 -2
- package/dist/{checkbox-ChqHvI5Y.js → checkbox-Car6S-YU.js} +5 -6
- package/dist/{command-BzJMrpFw.js → command-Bh0lIHth.js} +17 -18
- package/dist/{command-CJXf3-UR.d.ts → command-J-Z7237Z.d.ts} +11 -11
- package/dist/components/{index-2Smtu_1u.d.ts → index-CjxDeDgS.d.ts} +29 -29
- package/dist/components/index.js +30 -31
- package/dist/components/ui/{OrContinueWithSeparator-OYGOTHTw.d.ts → OrContinueWithSeparator-CHwqvVjX.d.ts} +1 -1
- package/dist/components/ui/OrContinueWithSeparator.js +4 -5
- package/dist/components/ui/alert-1G0clvys.d.ts +2 -0
- package/dist/components/ui/{alert-dialog-CUL8nAeI.d.ts → alert-dialog-B4l6hBX8.d.ts} +1 -1
- package/dist/components/ui/alert-dialog.js +30 -31
- package/dist/components/ui/alert.js +3 -4
- package/dist/components/ui/avatar-utP6R-Uq.d.ts +2 -0
- package/dist/components/ui/avatar.js +3 -4
- package/dist/components/ui/badge-DwySSPk7.d.ts +2 -0
- package/dist/components/ui/badge.js +3 -4
- package/dist/components/ui/button-fWXid_Jg.d.ts +2 -0
- package/dist/components/ui/button.js +3 -4
- package/dist/components/ui/{calendar-B9zfwi7H.d.ts → calendar-DxgOZaJG.d.ts} +1 -1
- package/dist/components/ui/calendar.js +4 -5
- package/dist/components/ui/{card-BYi1Jf3z.d.ts → card-CEc4KDWR.d.ts} +1 -1
- package/dist/components/ui/card.js +3 -4
- package/dist/components/ui/checkbox-Db1hdfQh.d.ts +2 -0
- package/dist/components/ui/checkbox.js +3 -4
- package/dist/components/ui/{command-BkXDbodx.d.ts → command-D5yDsetf.d.ts} +1 -1
- package/dist/components/ui/command.js +4 -5
- package/dist/components/ui/{dialog-BvEqiJH6.d.ts → dialog-C9hWg6Jo.d.ts} +1 -1
- package/dist/components/ui/dialog.js +3 -4
- package/dist/components/ui/{dropdown-menu-BJ2FNIH4.d.ts → dropdown-menu-CZQe3gdP.d.ts} +1 -1
- package/dist/components/ui/dropdown-menu.js +3 -4
- package/dist/components/ui/{file-upload-DZGaOzQS.d.ts → file-upload-DE4ndg6D.d.ts} +1 -1
- package/dist/components/ui/file-upload.js +3 -4
- package/dist/components/ui/{form-CpVuTht7.d.ts → form-_IonQq2g.d.ts} +1 -1
- package/dist/components/ui/form.js +4 -5
- package/dist/components/ui/{index-q7RUuYJ2.d.ts → index-ByU7Ea3g.d.ts} +29 -29
- package/dist/components/ui/index.js +30 -31
- package/dist/components/ui/input-nIiKz0t3.d.ts +2 -0
- package/dist/components/ui/input.js +3 -4
- package/dist/components/ui/label-DcYFARJv.d.ts +2 -0
- package/dist/components/ui/label.js +3 -4
- package/dist/components/ui/{pagination-CDtFyXkC.d.ts → pagination-BzA2nvm7.d.ts} +1 -1
- package/dist/components/ui/pagination.js +30 -31
- package/dist/components/ui/{popover-B6PDCy8U.d.ts → popover-CWkbXPIs.d.ts} +1 -1
- package/dist/components/ui/popover.js +3 -4
- package/dist/components/ui/{radio-group-DuGtPMcp.d.ts → radio-group-B8uVaLcH.d.ts} +1 -1
- package/dist/components/ui/radio-group.js +3 -4
- package/dist/components/ui/{select-DAN9r02Z.d.ts → select-Thz3wmNR.d.ts} +1 -1
- package/dist/components/ui/select.js +3 -4
- package/dist/components/ui/separator-nDjbz769.d.ts +2 -0
- package/dist/components/ui/separator.js +3 -4
- package/dist/components/ui/shadcn-io/tags/{index-CnMq6aeV.d.ts → index-ByG1DLSH.d.ts} +1 -1
- package/dist/components/ui/shadcn-io/tags/index.js +8 -9
- package/dist/components/ui/shadcn-io/tags-input-inline/{index-D7OIPdfu.d.ts → index-Z-lSeFdH.d.ts} +1 -1
- package/dist/components/ui/shadcn-io/tags-input-inline/index.js +2 -3
- package/dist/components/ui/{sheet-Bo7lvlRA.d.ts → sheet-DG1hOjV0.d.ts} +1 -1
- package/dist/components/ui/sheet.js +3 -4
- package/dist/components/ui/slider-BQpp3iiy.d.ts +2 -0
- package/dist/components/ui/slider.js +3 -4
- package/dist/components/ui/switch-nWOTZVXx.d.ts +2 -0
- package/dist/components/ui/switch.js +3 -4
- package/dist/components/ui/tabs-k3ha4bbs.d.ts +2 -0
- package/dist/components/ui/tabs.js +3 -4
- package/dist/components/ui/textarea-BV_2NNxa.d.ts +2 -0
- package/dist/components/ui/textarea.js +3 -4
- package/dist/components/ui/{tooltip-JdLdCVsY.d.ts → tooltip--Q9yXR4z.d.ts} +1 -1
- package/dist/components/ui/tooltip.js +3 -4
- package/dist/{dialog-a61KKgp5.d.ts → dialog-GHzqCUyY.d.ts} +11 -11
- package/dist/{dialog-CnHQjTPX.js → dialog-O7j71U82.js} +15 -16
- package/dist/{dropdown-menu-DTRzUFxv.d.ts → dropdown-menu-B7IpNRT1.d.ts} +16 -16
- package/dist/{dropdown-menu-BytmAQI6.js → dropdown-menu-ChXZkLy7.js} +22 -23
- package/dist/{file-upload-BEeMesnR.js → file-upload-DPXO1W1r.js} +36 -37
- package/dist/{file-upload-C38U9nyT.d.ts → file-upload-DtI7t48f.d.ts} +11 -11
- package/dist/{form-Cx2k120Z.d.ts → form-B1wa9dSK.d.ts} +7 -7
- package/dist/{form-BjnyYpgw.js → form-DITfwajn.js} +11 -12
- package/dist/{index-2apAhpYW.d.ts → index-BBg42y-x.d.ts} +30 -30
- package/dist/{index-B9p9Ocoz.d.ts → index-CbEoBXve.d.ts} +9 -9
- package/dist/{index-B6o0TAoD.d.ts → index-DAxEKRyQ.d.ts} +7 -7
- package/dist/{index-fkXKhUlW.d.ts → index-nhYidbaI.d.ts} +13 -13
- package/dist/index.js +30 -31
- package/dist/{input-DCWzuP_2.d.ts → input-BOo0lKrd.d.ts} +2 -2
- package/dist/{input-CUeyj64L.js → input-Yyz-T5fE.js} +3 -4
- package/dist/{label-DGznqsHm.js → label-CAjd9Y0A.js} +3 -4
- package/dist/{label-pEqCQKel.d.ts → label-VBeDhZRS.d.ts} +2 -2
- package/dist/lib/index-BBZGfoI7.d.ts +2 -0
- package/dist/lib/index.js +2 -2
- package/dist/lib/utils-COdFh0eZ.d.ts +2 -0
- package/dist/lib/utils.js +1 -1
- package/dist/lib-IiLuXmGR.js +0 -0
- package/dist/{popover-CV48KL0e.js → popover-B6K6dK1G.js} +6 -7
- package/dist/{popover-RnfYQfGo.d.ts → popover-BSOEEHRm.d.ts} +5 -5
- package/dist/{radio-group-BNj4EfLg.d.ts → radio-group-2z7Wk4bX.d.ts} +3 -3
- package/dist/{radio-group-jaFHISZ7.js → radio-group-CN-7YDqF.js} +6 -7
- package/dist/{select-B4b-ZC31.d.ts → select-BLcUSgPc.d.ts} +11 -11
- package/dist/{select-C96xvMSx.js → select-D1s3F0et.js} +22 -23
- package/dist/{separator-C71XEO3E.js → separator-BVBCxKBW.js} +3 -4
- package/dist/{separator-izY8KL7y.d.ts → separator-CQdurlbm.d.ts} +2 -2
- package/dist/{sheet-Dag7L2Xd.d.ts → sheet-BBjl1baR.d.ts} +9 -9
- package/dist/{sheet-BlZGrRNt.js → sheet-DrR3eH28.js} +14 -15
- package/dist/{slider-CdK5O4pc.js → slider-BlL5lT8d.js} +6 -7
- package/dist/{slider-DEUGdZC4.d.ts → slider-CYGuuC8k.d.ts} +2 -2
- package/dist/{src-DQlJgy1h.js → src-8ePG_tPo.js} +25 -26
- package/dist/{switch-Bz5Iiy2_.js → switch-BXSa0MEU.js} +4 -5
- package/dist/{switch-RbFzvnvM.d.ts → switch-Y5FN07nj.d.ts} +2 -2
- package/dist/{tabs-had5ildI.d.ts → tabs-C-Tv9y7L.d.ts} +5 -5
- package/dist/{tabs-BjolTUEI.js → tabs-DbvqqMZV.js} +6 -7
- package/dist/{tags-BnJCu0NQ.js → tags-BACevgr_.js} +22 -23
- package/dist/{tags-input-inline-DnEu3Dyw.js → tags-input-inline-Bz5h19zx.js} +11 -12
- package/dist/{textarea-s8H46Zg0.d.ts → textarea-C3eFh4Vd.d.ts} +2 -2
- package/dist/{textarea-BNZyZgAM.js → textarea-DTGK7cx-.js} +3 -4
- package/dist/{tooltip-CS40su1S.d.ts → tooltip-CGDnGnPt.d.ts} +5 -5
- package/dist/{tooltip-CuYs-__e.js → tooltip-CX3NbXUu.js} +7 -8
- package/package.json +1 -1
- package/dist/OrContinueWithSeparator-Cs96m5UB.js +0 -28
- package/dist/components/ui/alert-DuyLuX68.d.ts +0 -2
- package/dist/components/ui/avatar-DAQzpqqD.d.ts +0 -2
- package/dist/components/ui/badge-BM6RVFS5.d.ts +0 -2
- package/dist/components/ui/button-D9y8v_Tt.d.ts +0 -2
- package/dist/components/ui/checkbox-QkowwGnR.d.ts +0 -2
- package/dist/components/ui/input-DVpolrW-.d.ts +0 -2
- package/dist/components/ui/label-BW9JhwyW.d.ts +0 -2
- package/dist/components/ui/separator-D53tTv-J.d.ts +0 -2
- package/dist/components/ui/slider-lAthKpva.d.ts +0 -2
- package/dist/components/ui/switch-D7WzMqgv.d.ts +0 -2
- package/dist/components/ui/tabs-CnjGY6eE.d.ts +0 -2
- package/dist/components/ui/textarea-BJpu8fK5.d.ts +0 -2
- package/dist/jsx-runtime-CjFsk39Z.js +0 -274
- package/dist/lib/index-ChuxSUKt.d.ts +0 -2
- package/dist/lib/utils-45Ez8x6p.d.ts +0 -2
- package/dist/lib-B_fww26I.js +0 -1
- /package/dist/{index-CZUtOTjh.d.ts → index-CCggO_hw.d.ts} +0 -0
- /package/dist/{utils-_VBxPjie.d.ts → utils-Bgl9doaU.d.ts} +0 -0
- /package/dist/{utils-D2WOFi-N.js → utils-CeuVg6RA.js} +0 -0
package/dist/{OrContinueWithSeparator-BQalGx6O.d.ts → OrContinueWithSeparator-BDH-vep4.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime41 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/ui/OrContinueWithSeparator.d.ts
|
|
4
4
|
|
|
@@ -6,6 +6,6 @@ import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
|
6
6
|
* A separator with a label for alternative sign-in methods.
|
|
7
7
|
* Used in authentication forms to visually separate sections.
|
|
8
8
|
*/
|
|
9
|
-
declare function OrContinueWithSeparator():
|
|
9
|
+
declare function OrContinueWithSeparator(): react_jsx_runtime41.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
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 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from "class-variance-authority";
|
|
2
2
|
import * as React from "react";
|
|
3
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
3
4
|
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
4
|
-
import * as react_jsx_runtime13 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/ui/alert.d.ts
|
|
7
7
|
declare const alertVariants: (props?: ({
|
|
@@ -11,14 +11,14 @@ declare function Alert({
|
|
|
11
11
|
className,
|
|
12
12
|
variant,
|
|
13
13
|
...props
|
|
14
|
-
}: React.ComponentProps<'div'> & VariantProps<typeof alertVariants>):
|
|
14
|
+
}: React.ComponentProps<'div'> & VariantProps<typeof alertVariants>): react_jsx_runtime10.JSX.Element;
|
|
15
15
|
declare function AlertTitle({
|
|
16
16
|
className,
|
|
17
17
|
...props
|
|
18
|
-
}: React.ComponentProps<'div'>):
|
|
18
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime10.JSX.Element;
|
|
19
19
|
declare function AlertDescription({
|
|
20
20
|
className,
|
|
21
21
|
...props
|
|
22
|
-
}: React.ComponentProps<'div'>):
|
|
22
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime10.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { AlertDescription as n, AlertTitle as r, Alert as t };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as cn } from "./utils-D2WOFi-N.js";
|
|
1
|
+
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
3
2
|
import { cva } from "class-variance-authority";
|
|
4
3
|
import "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/ui/alert.tsx
|
|
7
|
-
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
8
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", {
|
|
9
8
|
variants: { variant: {
|
|
10
9
|
default: "bg-card text-card-foreground",
|
|
@@ -13,7 +12,7 @@ const alertVariants = cva("relative w-full rounded-lg border px-4 py-3 text-sm g
|
|
|
13
12
|
defaultVariants: { variant: "default" }
|
|
14
13
|
});
|
|
15
14
|
function Alert({ className, variant, ...props }) {
|
|
16
|
-
return /* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ jsx("div", {
|
|
17
16
|
"data-slot": "alert",
|
|
18
17
|
role: "alert",
|
|
19
18
|
className: cn(alertVariants({ variant }), className),
|
|
@@ -21,14 +20,14 @@ function Alert({ className, variant, ...props }) {
|
|
|
21
20
|
});
|
|
22
21
|
}
|
|
23
22
|
function AlertTitle({ className, ...props }) {
|
|
24
|
-
return /* @__PURE__ */
|
|
23
|
+
return /* @__PURE__ */ jsx("div", {
|
|
25
24
|
"data-slot": "alert-title",
|
|
26
25
|
className: cn("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", className),
|
|
27
26
|
...props
|
|
28
27
|
});
|
|
29
28
|
}
|
|
30
29
|
function AlertDescription({ className, ...props }) {
|
|
31
|
-
return /* @__PURE__ */
|
|
30
|
+
return /* @__PURE__ */ jsx("div", {
|
|
32
31
|
"data-slot": "alert-description",
|
|
33
32
|
className: cn("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed", className),
|
|
34
33
|
...props
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
3
2
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/alert-dialog.d.ts
|
|
6
6
|
declare function AlertDialog({
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import * as react_jsx_runtime82 from "react/jsx-runtime";
|
|
2
3
|
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
3
|
-
import * as react_jsx_runtime106 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/avatar.d.ts
|
|
6
6
|
declare function Avatar({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof AvatarPrimitive.Root>):
|
|
9
|
+
}: React.ComponentProps<typeof AvatarPrimitive.Root>): react_jsx_runtime82.JSX.Element;
|
|
10
10
|
declare function AvatarImage({
|
|
11
11
|
className,
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof AvatarPrimitive.Image>):
|
|
13
|
+
}: React.ComponentProps<typeof AvatarPrimitive.Image>): react_jsx_runtime82.JSX.Element;
|
|
14
14
|
declare function AvatarFallback({
|
|
15
15
|
className,
|
|
16
16
|
...props
|
|
17
|
-
}: React.ComponentProps<typeof AvatarPrimitive.Fallback>):
|
|
17
|
+
}: React.ComponentProps<typeof AvatarPrimitive.Fallback>): react_jsx_runtime82.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { AvatarFallback as n, AvatarImage as r, Avatar as t };
|
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as cn } from "./utils-D2WOFi-N.js";
|
|
1
|
+
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
3
2
|
import "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
5
5
|
|
|
6
6
|
//#region src/components/ui/avatar.tsx
|
|
7
|
-
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
8
7
|
function Avatar({ className, ...props }) {
|
|
9
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ jsx(AvatarPrimitive.Root, {
|
|
10
9
|
"data-slot": "avatar",
|
|
11
10
|
className: cn("relative flex size-8 shrink-0 overflow-hidden rounded-full", className),
|
|
12
11
|
...props
|
|
13
12
|
});
|
|
14
13
|
}
|
|
15
14
|
function AvatarImage({ className, ...props }) {
|
|
16
|
-
return /* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ jsx(AvatarPrimitive.Image, {
|
|
17
16
|
"data-slot": "avatar-image",
|
|
18
17
|
className: cn("aspect-square size-full", className),
|
|
19
18
|
...props
|
|
20
19
|
});
|
|
21
20
|
}
|
|
22
21
|
function AvatarFallback({ className, ...props }) {
|
|
23
|
-
return /* @__PURE__ */
|
|
22
|
+
return /* @__PURE__ */ jsx(AvatarPrimitive.Fallback, {
|
|
24
23
|
"data-slot": "avatar-fallback",
|
|
25
24
|
className: cn("bg-muted flex size-full items-center justify-center rounded-full", className),
|
|
26
25
|
...props
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { VariantProps } from "class-variance-authority";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime44 from "react/jsx-runtime";
|
|
4
|
+
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
6
|
//#region src/components/ui/badge.d.ts
|
|
7
7
|
declare const badgeVariants: (props?: ({
|
|
8
|
-
variant?: "default" | "destructive" | "
|
|
9
|
-
} &
|
|
8
|
+
variant?: "default" | "destructive" | "secondary" | "outline" | null | undefined;
|
|
9
|
+
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
10
10
|
declare function Badge({
|
|
11
11
|
className,
|
|
12
12
|
variant,
|
|
@@ -14,6 +14,6 @@ declare function Badge({
|
|
|
14
14
|
...props
|
|
15
15
|
}: React.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
|
|
16
16
|
asChild?: boolean;
|
|
17
|
-
}):
|
|
17
|
+
}): react_jsx_runtime44.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { badgeVariants as n, Badge as t };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as cn } from "./utils-D2WOFi-N.js";
|
|
1
|
+
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
3
2
|
import { cva } from "class-variance-authority";
|
|
4
3
|
import "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { Slot } from "@radix-ui/react-slot";
|
|
6
6
|
|
|
7
7
|
//#region src/components/ui/badge.tsx
|
|
8
|
-
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
9
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", {
|
|
10
9
|
variants: { variant: {
|
|
11
10
|
default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
@@ -16,7 +15,7 @@ const badgeVariants = cva("inline-flex items-center justify-center rounded-full
|
|
|
16
15
|
defaultVariants: { variant: "default" }
|
|
17
16
|
});
|
|
18
17
|
function Badge({ className, variant, asChild = false, ...props }) {
|
|
19
|
-
return /* @__PURE__ */
|
|
18
|
+
return /* @__PURE__ */ jsx(asChild ? Slot : "span", {
|
|
20
19
|
"data-slot": "badge",
|
|
21
20
|
className: cn(badgeVariants({ variant }), className),
|
|
22
21
|
...props
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as cn } from "./utils-D2WOFi-N.js";
|
|
1
|
+
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
3
2
|
import { cva } from "class-variance-authority";
|
|
4
3
|
import "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { Slot } from "@radix-ui/react-slot";
|
|
6
6
|
|
|
7
7
|
//#region src/components/ui/button.tsx
|
|
8
|
-
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
9
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", {
|
|
10
9
|
variants: {
|
|
11
10
|
variant: {
|
|
@@ -31,7 +30,7 @@ const buttonVariants = cva("inline-flex items-center justify-center gap-2 whites
|
|
|
31
30
|
}
|
|
32
31
|
});
|
|
33
32
|
function Button({ className, variant, size, asChild = false, ...props }) {
|
|
34
|
-
return /* @__PURE__ */
|
|
33
|
+
return /* @__PURE__ */ jsx(asChild ? Slot : "button", {
|
|
35
34
|
"data-slot": "button",
|
|
36
35
|
className: cn(buttonVariants({
|
|
37
36
|
variant,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { VariantProps } from "class-variance-authority";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime89 from "react/jsx-runtime";
|
|
4
|
+
import * as class_variance_authority_types1 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
6
|
//#region src/components/ui/button.d.ts
|
|
7
7
|
declare const buttonVariants: (props?: ({
|
|
8
|
-
variant?: "default" | "destructive" | "
|
|
8
|
+
variant?: "default" | "destructive" | "secondary" | "outline" | "ghost" | "link" | null | undefined;
|
|
9
9
|
size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
|
|
10
|
-
} &
|
|
10
|
+
} & class_variance_authority_types1.ClassProp) | undefined) => string;
|
|
11
11
|
declare function Button({
|
|
12
12
|
className,
|
|
13
13
|
variant,
|
|
@@ -16,6 +16,6 @@ declare function Button({
|
|
|
16
16
|
...props
|
|
17
17
|
}: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
18
18
|
asChild?: boolean;
|
|
19
|
-
}):
|
|
19
|
+
}): react_jsx_runtime89.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { buttonVariants as n, Button as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as Button } from "./button-
|
|
1
|
+
import { t as Button } from "./button-Qk5_S2q2.js";
|
|
2
2
|
import * as React from "react";
|
|
3
|
+
import * as react_jsx_runtime85 from "react/jsx-runtime";
|
|
3
4
|
import { DayButton, DayPicker } from "react-day-picker";
|
|
4
|
-
import * as react_jsx_runtime78 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/ui/calendar.d.ts
|
|
7
7
|
declare function Calendar({
|
|
@@ -15,12 +15,12 @@ declare function Calendar({
|
|
|
15
15
|
...props
|
|
16
16
|
}: React.ComponentProps<typeof DayPicker> & {
|
|
17
17
|
buttonVariant?: React.ComponentProps<typeof Button>['variant'];
|
|
18
|
-
}):
|
|
18
|
+
}): react_jsx_runtime85.JSX.Element;
|
|
19
19
|
declare function CalendarDayButton({
|
|
20
20
|
className,
|
|
21
21
|
day,
|
|
22
22
|
modifiers,
|
|
23
23
|
...props
|
|
24
|
-
}: React.ComponentProps<typeof DayButton>):
|
|
24
|
+
}: React.ComponentProps<typeof DayButton>): react_jsx_runtime85.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { CalendarDayButton as n, Calendar as t };
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { n as buttonVariants, t as Button } from "./button-CoM3CepB.js";
|
|
1
|
+
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
2
|
+
import { n as buttonVariants, t as Button } from "./button-Ct22vvF2.js";
|
|
4
3
|
import * as React from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
|
|
6
6
|
import { DayPicker, getDefaultClassNames } from "react-day-picker";
|
|
7
7
|
|
|
8
8
|
//#region src/components/ui/calendar.tsx
|
|
9
|
-
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
10
9
|
function Calendar({ className, classNames, showOutsideDays = true, captionLayout = "label", buttonVariant = "ghost", formatters, components, ...props }) {
|
|
11
10
|
const defaultClassNames = getDefaultClassNames();
|
|
12
|
-
return /* @__PURE__ */
|
|
11
|
+
return /* @__PURE__ */ jsx(DayPicker, {
|
|
13
12
|
showOutsideDays,
|
|
14
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),
|
|
15
14
|
captionLayout,
|
|
@@ -47,7 +46,7 @@ function Calendar({ className, classNames, showOutsideDays = true, captionLayout
|
|
|
47
46
|
},
|
|
48
47
|
components: {
|
|
49
48
|
Root: ({ className: className$1, rootRef, ...props$1 }) => {
|
|
50
|
-
return /* @__PURE__ */
|
|
49
|
+
return /* @__PURE__ */ jsx("div", {
|
|
51
50
|
"data-slot": "calendar",
|
|
52
51
|
ref: rootRef,
|
|
53
52
|
className: cn(className$1),
|
|
@@ -55,24 +54,24 @@ function Calendar({ className, classNames, showOutsideDays = true, captionLayout
|
|
|
55
54
|
});
|
|
56
55
|
},
|
|
57
56
|
Chevron: ({ className: className$1, orientation, ...props$1 }) => {
|
|
58
|
-
if (orientation === "left") return /* @__PURE__ */
|
|
57
|
+
if (orientation === "left") return /* @__PURE__ */ jsx(ChevronLeftIcon, {
|
|
59
58
|
className: cn("size-4", className$1),
|
|
60
59
|
...props$1
|
|
61
60
|
});
|
|
62
|
-
if (orientation === "right") return /* @__PURE__ */
|
|
61
|
+
if (orientation === "right") return /* @__PURE__ */ jsx(ChevronRightIcon, {
|
|
63
62
|
className: cn("size-4", className$1),
|
|
64
63
|
...props$1
|
|
65
64
|
});
|
|
66
|
-
return /* @__PURE__ */
|
|
65
|
+
return /* @__PURE__ */ jsx(ChevronDownIcon, {
|
|
67
66
|
className: cn("size-4", className$1),
|
|
68
67
|
...props$1
|
|
69
68
|
});
|
|
70
69
|
},
|
|
71
70
|
DayButton: CalendarDayButton,
|
|
72
71
|
WeekNumber: ({ children, ...props$1 }) => {
|
|
73
|
-
return /* @__PURE__ */
|
|
72
|
+
return /* @__PURE__ */ jsx("td", {
|
|
74
73
|
...props$1,
|
|
75
|
-
children: /* @__PURE__ */
|
|
74
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
76
75
|
className: "flex size-(--cell-size) items-center justify-center text-center",
|
|
77
76
|
children
|
|
78
77
|
})
|
|
@@ -89,7 +88,7 @@ function CalendarDayButton({ className, day, modifiers, ...props }) {
|
|
|
89
88
|
React.useEffect(() => {
|
|
90
89
|
if (modifiers.focused) ref.current?.focus();
|
|
91
90
|
}, [modifiers.focused]);
|
|
92
|
-
return /* @__PURE__ */
|
|
91
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
93
92
|
ref,
|
|
94
93
|
variant: "ghost",
|
|
95
94
|
size: "icon",
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime66 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ui/card.d.ts
|
|
5
5
|
declare function Card({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<'div'>):
|
|
8
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime66.JSX.Element;
|
|
9
9
|
declare function CardHeader({
|
|
10
10
|
className,
|
|
11
11
|
...props
|
|
12
|
-
}: React.ComponentProps<'div'>):
|
|
12
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime66.JSX.Element;
|
|
13
13
|
declare function CardTitle({
|
|
14
14
|
className,
|
|
15
15
|
...props
|
|
16
|
-
}: React.ComponentProps<'div'>):
|
|
16
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime66.JSX.Element;
|
|
17
17
|
declare function CardDescription({
|
|
18
18
|
className,
|
|
19
19
|
...props
|
|
20
|
-
}: React.ComponentProps<'div'>):
|
|
20
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime66.JSX.Element;
|
|
21
21
|
declare function CardAction({
|
|
22
22
|
className,
|
|
23
23
|
...props
|
|
24
|
-
}: React.ComponentProps<'div'>):
|
|
24
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime66.JSX.Element;
|
|
25
25
|
declare function CardContent({
|
|
26
26
|
className,
|
|
27
27
|
...props
|
|
28
|
-
}: React.ComponentProps<'div'>):
|
|
28
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime66.JSX.Element;
|
|
29
29
|
declare function CardFooter({
|
|
30
30
|
className,
|
|
31
31
|
...props
|
|
32
|
-
}: React.ComponentProps<'div'>):
|
|
32
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime66.JSX.Element;
|
|
33
33
|
//#endregion
|
|
34
34
|
export { CardFooter as a, CardDescription as i, CardAction as n, CardHeader as o, CardContent as r, CardTitle as s, Card as t };
|
|
@@ -1,53 +1,52 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as cn } from "./utils-D2WOFi-N.js";
|
|
1
|
+
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
3
2
|
import "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/card.tsx
|
|
6
|
-
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
7
6
|
function Card({ className, ...props }) {
|
|
8
|
-
return /* @__PURE__ */
|
|
7
|
+
return /* @__PURE__ */ jsx("div", {
|
|
9
8
|
"data-slot": "card",
|
|
10
9
|
className: cn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm", className),
|
|
11
10
|
...props
|
|
12
11
|
});
|
|
13
12
|
}
|
|
14
13
|
function CardHeader({ className, ...props }) {
|
|
15
|
-
return /* @__PURE__ */
|
|
14
|
+
return /* @__PURE__ */ jsx("div", {
|
|
16
15
|
"data-slot": "card-header",
|
|
17
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),
|
|
18
17
|
...props
|
|
19
18
|
});
|
|
20
19
|
}
|
|
21
20
|
function CardTitle({ className, ...props }) {
|
|
22
|
-
return /* @__PURE__ */
|
|
21
|
+
return /* @__PURE__ */ jsx("div", {
|
|
23
22
|
"data-slot": "card-title",
|
|
24
23
|
className: cn("leading-none font-semibold", className),
|
|
25
24
|
...props
|
|
26
25
|
});
|
|
27
26
|
}
|
|
28
27
|
function CardDescription({ className, ...props }) {
|
|
29
|
-
return /* @__PURE__ */
|
|
28
|
+
return /* @__PURE__ */ jsx("div", {
|
|
30
29
|
"data-slot": "card-description",
|
|
31
30
|
className: cn("text-muted-foreground text-sm", className),
|
|
32
31
|
...props
|
|
33
32
|
});
|
|
34
33
|
}
|
|
35
34
|
function CardAction({ className, ...props }) {
|
|
36
|
-
return /* @__PURE__ */
|
|
35
|
+
return /* @__PURE__ */ jsx("div", {
|
|
37
36
|
"data-slot": "card-action",
|
|
38
37
|
className: cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end", className),
|
|
39
38
|
...props
|
|
40
39
|
});
|
|
41
40
|
}
|
|
42
41
|
function CardContent({ className, ...props }) {
|
|
43
|
-
return /* @__PURE__ */
|
|
42
|
+
return /* @__PURE__ */ jsx("div", {
|
|
44
43
|
"data-slot": "card-content",
|
|
45
44
|
className: cn("px-6", className),
|
|
46
45
|
...props
|
|
47
46
|
});
|
|
48
47
|
}
|
|
49
48
|
function CardFooter({ className, ...props }) {
|
|
50
|
-
return /* @__PURE__ */
|
|
49
|
+
return /* @__PURE__ */ jsx("div", {
|
|
51
50
|
"data-slot": "card-footer",
|
|
52
51
|
className: cn("flex items-center px-6 [.border-t]:pt-6", className),
|
|
53
52
|
...props
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import * as react_jsx_runtime87 from "react/jsx-runtime";
|
|
2
3
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
3
|
-
import * as react_jsx_runtime23 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/checkbox.d.ts
|
|
6
6
|
declare function Checkbox({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof CheckboxPrimitive.Root>):
|
|
9
|
+
}: React.ComponentProps<typeof CheckboxPrimitive.Root>): react_jsx_runtime87.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Checkbox as t };
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as cn } from "./utils-D2WOFi-N.js";
|
|
1
|
+
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
3
2
|
import "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { CheckIcon } from "lucide-react";
|
|
5
5
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
6
6
|
|
|
7
7
|
//#region src/components/ui/checkbox.tsx
|
|
8
|
-
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
9
8
|
function Checkbox({ className, ...props }) {
|
|
10
|
-
return /* @__PURE__ */
|
|
9
|
+
return /* @__PURE__ */ jsx(CheckboxPrimitive.Root, {
|
|
11
10
|
"data-slot": "checkbox",
|
|
12
11
|
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
12
|
...props,
|
|
14
|
-
children: /* @__PURE__ */
|
|
13
|
+
children: /* @__PURE__ */ jsx(CheckboxPrimitive.Indicator, {
|
|
15
14
|
"data-slot": "checkbox-indicator",
|
|
16
15
|
className: "grid place-content-center text-current transition-none",
|
|
17
|
-
children: /* @__PURE__ */
|
|
16
|
+
children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-3.5" })
|
|
18
17
|
})
|
|
19
18
|
});
|
|
20
19
|
}
|
|
@@ -1,29 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { i as DialogDescription, l as DialogTitle, o as DialogHeader, r as DialogContent, t as Dialog } from "./dialog-CnHQjTPX.js";
|
|
1
|
+
import { t as cn } from "./utils-CeuVg6RA.js";
|
|
2
|
+
import { i as DialogDescription, l as DialogTitle, o as DialogHeader, r as DialogContent, t as Dialog } from "./dialog-O7j71U82.js";
|
|
4
3
|
import "react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { SearchIcon } from "lucide-react";
|
|
6
6
|
import { Command } from "cmdk";
|
|
7
7
|
|
|
8
8
|
//#region src/components/ui/command.tsx
|
|
9
|
-
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
|
|
10
9
|
function Command$1({ className, ...props }) {
|
|
11
|
-
return /* @__PURE__ */
|
|
10
|
+
return /* @__PURE__ */ jsx(Command, {
|
|
12
11
|
"data-slot": "command",
|
|
13
12
|
className: cn("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md", className),
|
|
14
13
|
...props
|
|
15
14
|
});
|
|
16
15
|
}
|
|
17
16
|
function CommandDialog({ title = "Command Palette", description = "Search for a command to run...", children, className, showCloseButton = true, ...props }) {
|
|
18
|
-
return /* @__PURE__ */
|
|
17
|
+
return /* @__PURE__ */ jsxs(Dialog, {
|
|
19
18
|
...props,
|
|
20
|
-
children: [/* @__PURE__ */
|
|
19
|
+
children: [/* @__PURE__ */ jsxs(DialogHeader, {
|
|
21
20
|
className: "sr-only",
|
|
22
|
-
children: [/* @__PURE__ */
|
|
23
|
-
}), /* @__PURE__ */
|
|
21
|
+
children: [/* @__PURE__ */ jsx(DialogTitle, { children: title }), /* @__PURE__ */ jsx(DialogDescription, { children: description })]
|
|
22
|
+
}), /* @__PURE__ */ jsx(DialogContent, {
|
|
24
23
|
className: cn("overflow-hidden p-0", className),
|
|
25
24
|
showCloseButton,
|
|
26
|
-
children: /* @__PURE__ */
|
|
25
|
+
children: /* @__PURE__ */ jsx(Command$1, {
|
|
27
26
|
className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",
|
|
28
27
|
children
|
|
29
28
|
})
|
|
@@ -31,10 +30,10 @@ function CommandDialog({ title = "Command Palette", description = "Search for a
|
|
|
31
30
|
});
|
|
32
31
|
}
|
|
33
32
|
function CommandInput({ className, ...props }) {
|
|
34
|
-
return /* @__PURE__ */
|
|
33
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
35
34
|
"data-slot": "command-input-wrapper",
|
|
36
35
|
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
37
|
-
children: [/* @__PURE__ */
|
|
36
|
+
children: [/* @__PURE__ */ jsx(SearchIcon, { className: "size-4 shrink-0 opacity-50" }), /* @__PURE__ */ jsx(Command.Input, {
|
|
38
37
|
"data-slot": "command-input",
|
|
39
38
|
className: cn("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", className),
|
|
40
39
|
...props
|
|
@@ -42,42 +41,42 @@ function CommandInput({ className, ...props }) {
|
|
|
42
41
|
});
|
|
43
42
|
}
|
|
44
43
|
function CommandList({ className, ...props }) {
|
|
45
|
-
return /* @__PURE__ */
|
|
44
|
+
return /* @__PURE__ */ jsx(Command.List, {
|
|
46
45
|
"data-slot": "command-list",
|
|
47
46
|
className: cn("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto", className),
|
|
48
47
|
...props
|
|
49
48
|
});
|
|
50
49
|
}
|
|
51
50
|
function CommandEmpty({ ...props }) {
|
|
52
|
-
return /* @__PURE__ */
|
|
51
|
+
return /* @__PURE__ */ jsx(Command.Empty, {
|
|
53
52
|
"data-slot": "command-empty",
|
|
54
53
|
className: "py-6 text-center text-sm",
|
|
55
54
|
...props
|
|
56
55
|
});
|
|
57
56
|
}
|
|
58
57
|
function CommandGroup({ className, ...props }) {
|
|
59
|
-
return /* @__PURE__ */
|
|
58
|
+
return /* @__PURE__ */ jsx(Command.Group, {
|
|
60
59
|
"data-slot": "command-group",
|
|
61
60
|
className: cn("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium", className),
|
|
62
61
|
...props
|
|
63
62
|
});
|
|
64
63
|
}
|
|
65
64
|
function CommandSeparator({ className, ...props }) {
|
|
66
|
-
return /* @__PURE__ */
|
|
65
|
+
return /* @__PURE__ */ jsx(Command.Separator, {
|
|
67
66
|
"data-slot": "command-separator",
|
|
68
67
|
className: cn("bg-border -mx-1 h-px", className),
|
|
69
68
|
...props
|
|
70
69
|
});
|
|
71
70
|
}
|
|
72
71
|
function CommandItem({ className, ...props }) {
|
|
73
|
-
return /* @__PURE__ */
|
|
72
|
+
return /* @__PURE__ */ jsx(Command.Item, {
|
|
74
73
|
"data-slot": "command-item",
|
|
75
74
|
className: cn("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
76
75
|
...props
|
|
77
76
|
});
|
|
78
77
|
}
|
|
79
78
|
function CommandShortcut({ className, ...props }) {
|
|
80
|
-
return /* @__PURE__ */
|
|
79
|
+
return /* @__PURE__ */ jsx("span", {
|
|
81
80
|
"data-slot": "command-shortcut",
|
|
82
81
|
className: cn("text-muted-foreground ml-auto text-xs tracking-widest", className),
|
|
83
82
|
...props
|