@pixpilot/shadcn 0.1.0 → 0.1.1
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-BvzntFX7.cjs +34 -0
- package/dist/OrContinueWithSeparator-D2E12axp.d.ts +11 -0
- package/dist/{OrContinueWithSeparator-BvOMy_0X.d.ts → OrContinueWithSeparator-D_x7OhtS.d.cts} +2 -2
- package/dist/{alert-DUygh_xL.d.ts → alert-BOmOAVab.d.cts} +5 -5
- package/dist/alert-CwZayX3S.d.ts +24 -0
- package/dist/alert-D-l745dk.cjs +57 -0
- package/dist/{alert-dialog-BQBvTsjx.d.ts → alert-dialog-TlaRRoQl.d.ts} +12 -12
- package/dist/alert-dialog-UlVI8Jfl.d.cts +48 -0
- package/dist/{avatar-4_qFkDQq.d.ts → avatar-C0o0LZHK.d.cts} +4 -4
- package/dist/avatar-DXl-ag7U.d.ts +19 -0
- package/dist/avatar-w_kyvah6.cjs +50 -0
- package/dist/badge-3M1AQ3yx.cjs +39 -0
- package/dist/{badge-BtexTWYL.d.ts → badge-BwMa0yrU.d.cts} +3 -3
- package/dist/badge-_7r9g75U.d.ts +19 -0
- package/dist/button-BNmxKjOB.cjs +58 -0
- package/dist/{button-BlGZakU_.d.ts → button-CESLc3CQ.d.ts} +2 -2
- package/dist/button-DS2onC5z.d.cts +21 -0
- package/dist/calendar-2na2Z1lC.d.cts +26 -0
- package/dist/calendar-CELLMIIj.cjs +119 -0
- package/dist/{calendar-DK_qW8tK.d.ts → calendar-b33t89Qe.d.ts} +4 -4
- package/dist/{card-8btbTKaB.d.ts → card-C4hKT5Pm.d.cts} +8 -8
- package/dist/card-Dvch7YjH.cjs +100 -0
- package/dist/card-WGLY-CGJ.d.ts +34 -0
- package/dist/checkbox-B_9kOHN4.d.ts +11 -0
- package/dist/checkbox-DBOuQN-K.cjs +30 -0
- package/dist/{checkbox-BfAe26dy.d.ts → checkbox-qfDakeFS.d.cts} +1 -1
- package/dist/{command-CTOqnzSx.d.ts → command-C4R-OiAQ.d.cts} +11 -11
- package/dist/command-DX6woPdY.cjs +142 -0
- package/dist/command-Jg-MECH0.d.ts +52 -0
- package/dist/components/{index-DVJl6H4Z.d.ts → index-9UbR5pav.d.ts} +29 -29
- package/dist/components/index-IQG8KA86.d.cts +30 -0
- package/dist/components/index.cjs +187 -0
- package/dist/components/ui/{OrContinueWithSeparator-DT1kKIwU.d.ts → OrContinueWithSeparator-Deko0a05.d.ts} +1 -1
- package/dist/components/ui/OrContinueWithSeparator-Dvc8cDyM.d.cts +2 -0
- package/dist/components/ui/OrContinueWithSeparator.cjs +7 -0
- package/dist/components/ui/alert-Byz-rs0N.d.ts +2 -0
- package/dist/components/ui/alert-EgfaSBxF.d.cts +2 -0
- package/dist/components/ui/{alert-dialog-D6vR-1Jz.d.ts → alert-dialog-B1O4SkCO.d.ts} +1 -1
- package/dist/components/ui/alert-dialog-DduTXxp5.d.cts +2 -0
- package/dist/components/ui/alert-dialog.cjs +45 -0
- package/dist/components/ui/alert.cjs +8 -0
- package/dist/components/ui/avatar-C27hFzFH.d.ts +2 -0
- package/dist/components/ui/avatar-hpkEskr5.d.cts +2 -0
- package/dist/components/ui/avatar.cjs +8 -0
- package/dist/components/ui/badge-Bn_Si704.d.ts +2 -0
- package/dist/components/ui/badge-KcziaqyK.d.cts +2 -0
- package/dist/components/ui/badge.cjs +7 -0
- package/dist/components/ui/button-OMnV_24p.d.cts +2 -0
- package/dist/components/ui/button-xAUU71CK.d.ts +2 -0
- package/dist/components/ui/button.cjs +7 -0
- package/dist/components/ui/calendar-BEbds-zF.d.cts +2 -0
- package/dist/components/ui/{calendar-CJJGD2Mp.d.ts → calendar-CdHQnChE.d.ts} +1 -1
- package/dist/components/ui/calendar.cjs +8 -0
- package/dist/components/ui/{card-Dw7UFh1G.d.ts → card-B33oFk7g.d.ts} +1 -1
- package/dist/components/ui/card-BDrM5yPN.d.cts +2 -0
- package/dist/components/ui/card.cjs +12 -0
- package/dist/components/ui/checkbox-0VdiyPZJ.d.ts +2 -0
- package/dist/components/ui/checkbox-DAUiq-4T.d.cts +2 -0
- package/dist/components/ui/checkbox.cjs +8 -0
- package/dist/components/ui/{command-Bo9iT_Mm.d.ts → command-CiYsTw-N.d.ts} +1 -1
- package/dist/components/ui/command-DCzWKK9H.d.cts +2 -0
- package/dist/components/ui/command.cjs +17 -0
- package/dist/components/ui/{dialog-DwFy7VXb.d.ts → dialog-BLmUGWhm.d.ts} +1 -1
- package/dist/components/ui/dialog-BgbuIKOa.d.cts +2 -0
- package/dist/components/ui/dialog.cjs +15 -0
- package/dist/components/ui/{dropdown-menu-CUC5b1yi.d.ts → dropdown-menu-BiTw8JoY.d.ts} +1 -1
- package/dist/components/ui/dropdown-menu-BkKMo0ox.d.cts +2 -0
- package/dist/components/ui/dropdown-menu.cjs +20 -0
- package/dist/components/ui/{file-upload-BKYxasJe.d.ts → file-upload-B5xI4UMr.d.ts} +1 -1
- package/dist/components/ui/file-upload-DiSeXl5J.d.cts +2 -0
- package/dist/components/ui/file-upload.cjs +28 -0
- package/dist/components/ui/{form-Ui-fGegs.d.ts → form-Di2tTY-R.d.ts} +1 -1
- package/dist/components/ui/form-Ou4AQTb6.d.cts +2 -0
- package/dist/components/ui/form.cjs +14 -0
- package/dist/components/ui/{index-BDJfgHZT.d.ts → index-8A2fRq2u.d.ts} +29 -29
- package/dist/components/ui/index-G20FcqoN.d.cts +30 -0
- package/dist/components/ui/index.cjs +187 -0
- package/dist/components/ui/input-DUQcmWuH.d.cts +2 -0
- package/dist/components/ui/input-gUHpQ5sH.d.ts +2 -0
- package/dist/components/ui/input.cjs +6 -0
- package/dist/components/ui/label-D0-7tdhM.d.ts +2 -0
- package/dist/components/ui/label-DimrvHz0.d.cts +2 -0
- package/dist/components/ui/label.cjs +6 -0
- package/dist/components/ui/pagination-C3bwMwwX.d.cts +2 -0
- package/dist/components/ui/{pagination-CLlEoufd.d.ts → pagination-CEb9cpQ4.d.ts} +1 -1
- package/dist/components/ui/pagination.cjs +39 -0
- package/dist/components/ui/popover-BMsEOeZk.d.cts +2 -0
- package/dist/components/ui/{popover-BuE9HJFI.d.ts → popover-DnnrgVi3.d.ts} +1 -1
- package/dist/components/ui/popover.cjs +9 -0
- package/dist/components/ui/{radio-group-BNV5xVaA.d.ts → radio-group-DIjhsevH.d.ts} +1 -1
- package/dist/components/ui/radio-group-LhGeL5Jq.d.cts +2 -0
- package/dist/components/ui/radio-group.cjs +7 -0
- package/dist/components/ui/select-DEocx6ny.d.cts +2 -0
- package/dist/components/ui/{select-BAT_xUS6.d.ts → select-d1uVKLd4.d.ts} +1 -1
- package/dist/components/ui/select.cjs +17 -0
- package/dist/components/ui/separator-B9ar107P.d.ts +2 -0
- package/dist/components/ui/separator-CRHUHLVk.d.cts +2 -0
- package/dist/components/ui/separator.cjs +6 -0
- package/dist/components/ui/shadcn-io/tags/index-C7ircX0x.d.cts +2 -0
- package/dist/components/ui/shadcn-io/tags/{index-NcbrE1RX.d.ts → index-D0RWMGB5.d.ts} +1 -1
- package/dist/components/ui/shadcn-io/tags/index.cjs +21 -0
- package/dist/components/ui/shadcn-io/tags-input-inline/{index-CAYAMlWT.d.ts → index-DVGMC27L.d.ts} +1 -1
- package/dist/components/ui/shadcn-io/tags-input-inline/index-DpTV34EG.d.cts +2 -0
- package/dist/components/ui/shadcn-io/tags-input-inline/index.cjs +10 -0
- package/dist/components/ui/sheet-DrTt0RCh.d.cts +2 -0
- package/dist/components/ui/{sheet-CPsrps2C.d.ts → sheet-oRvo5v4N.d.ts} +1 -1
- package/dist/components/ui/sheet.cjs +13 -0
- package/dist/components/ui/slider-B_Ct6RDR.d.ts +2 -0
- package/dist/components/ui/slider-qhTDbebA.d.cts +2 -0
- package/dist/components/ui/slider.cjs +6 -0
- package/dist/components/ui/switch-BN9A2aWi.d.ts +2 -0
- package/dist/components/ui/switch-D6yB-Ovv.d.cts +2 -0
- package/dist/components/ui/switch.cjs +8 -0
- package/dist/components/ui/tabs-BThS9Ifx.d.cts +2 -0
- package/dist/components/ui/tabs-BXfCBX9q.d.ts +2 -0
- package/dist/components/ui/tabs.cjs +9 -0
- package/dist/components/ui/textarea-BfSbPfQE.d.ts +2 -0
- package/dist/components/ui/textarea-CQzW61Gx.d.cts +2 -0
- package/dist/components/ui/textarea.cjs +6 -0
- package/dist/components/ui/{tooltip-BcAxWshO.d.ts → tooltip-B05vLa7i.d.ts} +1 -1
- package/dist/components/ui/tooltip-BRCqK0UP.d.cts +2 -0
- package/dist/components/ui/tooltip.cjs +9 -0
- package/dist/{dialog-C4wKr521.d.ts → dialog-BeJ4W_wL.d.cts} +11 -11
- package/dist/dialog-C1-NCU47.d.ts +47 -0
- package/dist/dialog-DFENsfgQ.cjs +149 -0
- package/dist/dropdown-menu-B2D2pr52.cjs +216 -0
- package/dist/dropdown-menu-CGyKEAjo.d.ts +77 -0
- package/dist/{dropdown-menu-CnrLe3nb.d.ts → dropdown-menu-pJlZRoLy.d.cts} +16 -16
- package/dist/file-upload-9q25L_mV.d.cts +94 -0
- package/dist/{file-upload-BLSfy-1K.d.ts → file-upload-Cd99SBNZ.d.ts} +11 -11
- package/dist/file-upload-DGFPUCSi.cjs +973 -0
- package/dist/{form-BSwltNo1.d.ts → form-C4ktVmIn.d.ts} +7 -7
- package/dist/form-C9YnHr1i.cjs +137 -0
- package/dist/form-DHHxQebW.d.cts +45 -0
- package/dist/{index-Bpvi7gIc.d.ts → index-B_2R7TER.d.cts} +7 -7
- package/dist/index-Blt-EW0e.d.cts +31 -0
- package/dist/{index-BSKUD7fA.d.ts → index-Cgz59HyA.d.ts} +9 -9
- package/dist/index-Ctvuv0vV.d.cts +1 -0
- package/dist/{index-CkSrVqpn.d.ts → index-DOMvBE84.d.ts} +29 -29
- package/dist/index-DvlthbVs.d.cts +39 -0
- package/dist/index-DxMmAsPK.d.cts +70 -0
- package/dist/{index-DwHkYD1A.d.ts → index-VLXQAOef.d.ts} +13 -13
- package/dist/index-fofN1DBY.d.ts +31 -0
- package/dist/index.cjs +188 -0
- package/dist/input-BGQuRFda.d.ts +11 -0
- package/dist/input-BfxJHE4U.cjs +23 -0
- package/dist/input-C5RDMgi3.d.cts +11 -0
- package/dist/jsx-runtime-BlVTPSwi.cjs +283 -0
- package/dist/label-B92w7LNc.cjs +24 -0
- package/dist/{label-CaJMuv7i.d.ts → label-C82lEB8P.d.ts} +2 -2
- package/dist/label-FC0f8Usj.d.cts +11 -0
- package/dist/lib/index-D0-THr8a.d.cts +2 -0
- package/dist/lib/index.cjs +4 -0
- package/dist/lib/utils-lNm-CqH0.d.cts +2 -0
- package/dist/lib/utils.cjs +3 -0
- package/dist/lib-CkvvICiv.cjs +0 -0
- package/dist/{popover-DpSyC3-j.d.ts → popover-BX6CaTPU.d.cts} +5 -5
- package/dist/popover-C7XolifE.d.ts +22 -0
- package/dist/popover-CxQjRK9q.cjs +62 -0
- package/dist/radio-group-BGPJ_D8q.cjs +43 -0
- package/dist/{radio-group-Cfa4brdK.d.ts → radio-group-CcjDx3W6.d.ts} +3 -3
- package/dist/radio-group-oSmZ0ztd.d.cts +15 -0
- package/dist/{select-B3Zt7fRL.d.ts → select-BAngGmNL.d.cts} +11 -11
- package/dist/select-BZfB9A8R.cjs +160 -0
- package/dist/select-Fa42Z4LL.d.ts +52 -0
- package/dist/separator-3CugGxfw.cjs +26 -0
- package/dist/separator-4yrIPr8r.d.cts +13 -0
- package/dist/{separator-Cucb_6O4.d.ts → separator-CfeHjQ3U.d.ts} +2 -2
- package/dist/{sheet-B3Ak6LSw.d.ts → sheet-BjXx7ddJ.d.ts} +9 -9
- package/dist/sheet-CHuRM3o6.cjs +133 -0
- package/dist/sheet-DP0qGWDN.d.cts +40 -0
- package/dist/slider-3-mzOHpV.cjs +45 -0
- package/dist/{slider-D8tCfiZV.d.ts → slider-B3CoyrXu.d.cts} +2 -2
- package/dist/slider-D3ozng9Y.d.ts +15 -0
- package/dist/src-Bx8pdty8.cjs +266 -0
- package/dist/{switch-DXaptB6g.d.ts → switch-B5LyLweM.d.ts} +2 -2
- package/dist/switch-BIfMlSaF.d.cts +11 -0
- package/dist/switch-L23w_mnL.cjs +28 -0
- package/dist/{tabs-B0X-LEdY.d.ts → tabs-BPdlT-mo.d.ts} +5 -5
- package/dist/tabs-CaKdT_iv.cjs +63 -0
- package/dist/tabs-DB6AHtkj.d.cts +23 -0
- package/dist/tags-VzxSgWuS.cjs +184 -0
- package/dist/tags-input-inline-CNZb7USn.cjs +94 -0
- package/dist/textarea-CRkBubLj.cjs +22 -0
- package/dist/textarea-CqY_xh2i.d.cts +10 -0
- package/dist/{textarea-09eXlo5q.d.ts → textarea-_V7biagy.d.ts} +2 -2
- package/dist/{tooltip-BQpFgVRJ.d.ts → tooltip-C7py127U.d.cts} +5 -5
- package/dist/tooltip-D1pZ34pY.d.ts +23 -0
- package/dist/tooltip-DelLkXOp.cjs +63 -0
- package/dist/utils-DyQCiavd.cjs +16 -0
- package/dist/utils-tcGMjZkT.d.cts +6 -0
- package/package.json +51 -48
- package/dist/components/ui/alert-Dnyd20KB.d.ts +0 -2
- package/dist/components/ui/avatar-CBM6Rxkl.d.ts +0 -2
- package/dist/components/ui/badge-tZQG9OGU.d.ts +0 -2
- package/dist/components/ui/button-B1jOU2SH.d.ts +0 -2
- package/dist/components/ui/checkbox-B4Zt92ES.d.ts +0 -2
- package/dist/components/ui/input-O6aZyiJl.d.ts +0 -2
- package/dist/components/ui/label-CiFY9QCm.d.ts +0 -2
- package/dist/components/ui/separator-rI7QiaxO.d.ts +0 -2
- package/dist/components/ui/slider-DqROXr79.d.ts +0 -2
- package/dist/components/ui/switch-BF2c_Zn9.d.ts +0 -2
- package/dist/components/ui/tabs-DRhGRCqD.d.ts +0 -2
- package/dist/components/ui/textarea-BoOWHGtB.d.ts +0 -2
- package/dist/input-Mvgjlh3F.d.ts +0 -11
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
const require_jsx_runtime$1 = require('./jsx-runtime-BlVTPSwi.cjs');
|
|
2
|
+
const require_utils = require('./utils-DyQCiavd.cjs');
|
|
3
|
+
const require_button = require('./button-BNmxKjOB.cjs');
|
|
4
|
+
let react = require("react");
|
|
5
|
+
react = require_jsx_runtime$1.__toESM(react);
|
|
6
|
+
let lucide_react = require("lucide-react");
|
|
7
|
+
let react_day_picker = require("react-day-picker");
|
|
8
|
+
|
|
9
|
+
//#region src/components/ui/calendar.tsx
|
|
10
|
+
var import_jsx_runtime = /* @__PURE__ */ require_jsx_runtime$1.__toESM(require_jsx_runtime$1.require_jsx_runtime());
|
|
11
|
+
function Calendar({ className, classNames, showOutsideDays = true, captionLayout = "label", buttonVariant = "ghost", formatters, components, ...props }) {
|
|
12
|
+
const defaultClassNames = (0, react_day_picker.getDefaultClassNames)();
|
|
13
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(react_day_picker.DayPicker, {
|
|
14
|
+
showOutsideDays,
|
|
15
|
+
className: require_utils.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),
|
|
16
|
+
captionLayout,
|
|
17
|
+
formatters: {
|
|
18
|
+
formatMonthDropdown: (date) => date.toLocaleString("default", { month: "short" }),
|
|
19
|
+
...formatters
|
|
20
|
+
},
|
|
21
|
+
classNames: {
|
|
22
|
+
root: require_utils.cn("w-fit", defaultClassNames.root),
|
|
23
|
+
months: require_utils.cn("flex gap-4 flex-col md:flex-row relative", defaultClassNames.months),
|
|
24
|
+
month: require_utils.cn("flex flex-col w-full gap-4", defaultClassNames.month),
|
|
25
|
+
nav: require_utils.cn("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between", defaultClassNames.nav),
|
|
26
|
+
button_previous: require_utils.cn(require_button.buttonVariants({ variant: buttonVariant }), "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none", defaultClassNames.button_previous),
|
|
27
|
+
button_next: require_utils.cn(require_button.buttonVariants({ variant: buttonVariant }), "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none", defaultClassNames.button_next),
|
|
28
|
+
month_caption: require_utils.cn("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)", defaultClassNames.month_caption),
|
|
29
|
+
dropdowns: require_utils.cn("w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5", defaultClassNames.dropdowns),
|
|
30
|
+
dropdown_root: require_utils.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),
|
|
31
|
+
dropdown: require_utils.cn("absolute bg-popover inset-0 opacity-0", defaultClassNames.dropdown),
|
|
32
|
+
caption_label: require_utils.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),
|
|
33
|
+
table: "w-full border-collapse",
|
|
34
|
+
weekdays: require_utils.cn("flex", defaultClassNames.weekdays),
|
|
35
|
+
weekday: require_utils.cn("text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none", defaultClassNames.weekday),
|
|
36
|
+
week: require_utils.cn("flex w-full mt-2", defaultClassNames.week),
|
|
37
|
+
week_number_header: require_utils.cn("select-none w-(--cell-size)", defaultClassNames.week_number_header),
|
|
38
|
+
week_number: require_utils.cn("text-[0.8rem] select-none text-muted-foreground", defaultClassNames.week_number),
|
|
39
|
+
day: require_utils.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),
|
|
40
|
+
range_start: require_utils.cn("rounded-l-md bg-accent", defaultClassNames.range_start),
|
|
41
|
+
range_middle: require_utils.cn("rounded-none", defaultClassNames.range_middle),
|
|
42
|
+
range_end: require_utils.cn("rounded-r-md bg-accent", defaultClassNames.range_end),
|
|
43
|
+
today: require_utils.cn("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none", defaultClassNames.today),
|
|
44
|
+
outside: require_utils.cn("text-muted-foreground aria-selected:text-muted-foreground", defaultClassNames.outside),
|
|
45
|
+
disabled: require_utils.cn("text-muted-foreground opacity-50", defaultClassNames.disabled),
|
|
46
|
+
hidden: require_utils.cn("invisible", defaultClassNames.hidden),
|
|
47
|
+
...classNames
|
|
48
|
+
},
|
|
49
|
+
components: {
|
|
50
|
+
Root: ({ className: className$1, rootRef, ...props$1 }) => {
|
|
51
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
52
|
+
"data-slot": "calendar",
|
|
53
|
+
ref: rootRef,
|
|
54
|
+
className: require_utils.cn(className$1),
|
|
55
|
+
...props$1
|
|
56
|
+
});
|
|
57
|
+
},
|
|
58
|
+
Chevron: ({ className: className$1, orientation, ...props$1 }) => {
|
|
59
|
+
if (orientation === "left") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(lucide_react.ChevronLeftIcon, {
|
|
60
|
+
className: require_utils.cn("size-4", className$1),
|
|
61
|
+
...props$1
|
|
62
|
+
});
|
|
63
|
+
if (orientation === "right") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(lucide_react.ChevronRightIcon, {
|
|
64
|
+
className: require_utils.cn("size-4", className$1),
|
|
65
|
+
...props$1
|
|
66
|
+
});
|
|
67
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(lucide_react.ChevronDownIcon, {
|
|
68
|
+
className: require_utils.cn("size-4", className$1),
|
|
69
|
+
...props$1
|
|
70
|
+
});
|
|
71
|
+
},
|
|
72
|
+
DayButton: CalendarDayButton,
|
|
73
|
+
WeekNumber: ({ children, ...props$1 }) => {
|
|
74
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", {
|
|
75
|
+
...props$1,
|
|
76
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
77
|
+
className: "flex size-(--cell-size) items-center justify-center text-center",
|
|
78
|
+
children
|
|
79
|
+
})
|
|
80
|
+
});
|
|
81
|
+
},
|
|
82
|
+
...components
|
|
83
|
+
},
|
|
84
|
+
...props
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
function CalendarDayButton({ className, day, modifiers, ...props }) {
|
|
88
|
+
const defaultClassNames = (0, react_day_picker.getDefaultClassNames)();
|
|
89
|
+
const ref = react.useRef(null);
|
|
90
|
+
react.useEffect(() => {
|
|
91
|
+
if (modifiers.focused) ref.current?.focus();
|
|
92
|
+
}, [modifiers.focused]);
|
|
93
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(require_button.Button, {
|
|
94
|
+
ref,
|
|
95
|
+
variant: "ghost",
|
|
96
|
+
size: "icon",
|
|
97
|
+
"data-day": day.date.toLocaleDateString(),
|
|
98
|
+
"data-selected-single": modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle,
|
|
99
|
+
"data-range-start": modifiers.range_start,
|
|
100
|
+
"data-range-end": modifiers.range_end,
|
|
101
|
+
"data-range-middle": modifiers.range_middle,
|
|
102
|
+
className: require_utils.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),
|
|
103
|
+
...props
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
//#endregion
|
|
108
|
+
Object.defineProperty(exports, 'Calendar', {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function () {
|
|
111
|
+
return Calendar;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
Object.defineProperty(exports, 'CalendarDayButton', {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function () {
|
|
117
|
+
return CalendarDayButton;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as Button } from "./button-
|
|
1
|
+
import { t as Button } from "./button-CESLc3CQ.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { DayButton, DayPicker } from "react-day-picker";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime2 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_runtime2.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_runtime2.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { CalendarDayButton as n, Calendar as t };
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
1
2
|
import * as React from "react";
|
|
2
|
-
import * as react_jsx_runtime2 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_runtime1.JSX.Element;
|
|
9
9
|
declare function CardHeader({
|
|
10
10
|
className,
|
|
11
11
|
...props
|
|
12
|
-
}: React.ComponentProps<'div'>):
|
|
12
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime1.JSX.Element;
|
|
13
13
|
declare function CardTitle({
|
|
14
14
|
className,
|
|
15
15
|
...props
|
|
16
|
-
}: React.ComponentProps<'div'>):
|
|
16
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime1.JSX.Element;
|
|
17
17
|
declare function CardDescription({
|
|
18
18
|
className,
|
|
19
19
|
...props
|
|
20
|
-
}: React.ComponentProps<'div'>):
|
|
20
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime1.JSX.Element;
|
|
21
21
|
declare function CardAction({
|
|
22
22
|
className,
|
|
23
23
|
...props
|
|
24
|
-
}: React.ComponentProps<'div'>):
|
|
24
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime1.JSX.Element;
|
|
25
25
|
declare function CardContent({
|
|
26
26
|
className,
|
|
27
27
|
...props
|
|
28
|
-
}: React.ComponentProps<'div'>):
|
|
28
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime1.JSX.Element;
|
|
29
29
|
declare function CardFooter({
|
|
30
30
|
className,
|
|
31
31
|
...props
|
|
32
|
-
}: React.ComponentProps<'div'>):
|
|
32
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime1.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 };
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
const require_jsx_runtime$1 = require('./jsx-runtime-BlVTPSwi.cjs');
|
|
2
|
+
const require_utils = require('./utils-DyQCiavd.cjs');
|
|
3
|
+
let react = require("react");
|
|
4
|
+
react = require_jsx_runtime$1.__toESM(react);
|
|
5
|
+
|
|
6
|
+
//#region src/components/ui/card.tsx
|
|
7
|
+
var import_jsx_runtime = /* @__PURE__ */ require_jsx_runtime$1.__toESM(require_jsx_runtime$1.require_jsx_runtime());
|
|
8
|
+
function Card({ className, ...props }) {
|
|
9
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
10
|
+
"data-slot": "card",
|
|
11
|
+
className: require_utils.cn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm", className),
|
|
12
|
+
...props
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function CardHeader({ className, ...props }) {
|
|
16
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
17
|
+
"data-slot": "card-header",
|
|
18
|
+
className: require_utils.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),
|
|
19
|
+
...props
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function CardTitle({ className, ...props }) {
|
|
23
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
24
|
+
"data-slot": "card-title",
|
|
25
|
+
className: require_utils.cn("leading-none font-semibold", className),
|
|
26
|
+
...props
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function CardDescription({ className, ...props }) {
|
|
30
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
31
|
+
"data-slot": "card-description",
|
|
32
|
+
className: require_utils.cn("text-muted-foreground text-sm", className),
|
|
33
|
+
...props
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function CardAction({ className, ...props }) {
|
|
37
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
38
|
+
"data-slot": "card-action",
|
|
39
|
+
className: require_utils.cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end", className),
|
|
40
|
+
...props
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
function CardContent({ className, ...props }) {
|
|
44
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
45
|
+
"data-slot": "card-content",
|
|
46
|
+
className: require_utils.cn("px-6", className),
|
|
47
|
+
...props
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
function CardFooter({ className, ...props }) {
|
|
51
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
52
|
+
"data-slot": "card-footer",
|
|
53
|
+
className: require_utils.cn("flex items-center px-6 [.border-t]:pt-6", className),
|
|
54
|
+
...props
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
//#endregion
|
|
59
|
+
Object.defineProperty(exports, 'Card', {
|
|
60
|
+
enumerable: true,
|
|
61
|
+
get: function () {
|
|
62
|
+
return Card;
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
Object.defineProperty(exports, 'CardAction', {
|
|
66
|
+
enumerable: true,
|
|
67
|
+
get: function () {
|
|
68
|
+
return CardAction;
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
Object.defineProperty(exports, 'CardContent', {
|
|
72
|
+
enumerable: true,
|
|
73
|
+
get: function () {
|
|
74
|
+
return CardContent;
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
Object.defineProperty(exports, 'CardDescription', {
|
|
78
|
+
enumerable: true,
|
|
79
|
+
get: function () {
|
|
80
|
+
return CardDescription;
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
Object.defineProperty(exports, 'CardFooter', {
|
|
84
|
+
enumerable: true,
|
|
85
|
+
get: function () {
|
|
86
|
+
return CardFooter;
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
Object.defineProperty(exports, 'CardHeader', {
|
|
90
|
+
enumerable: true,
|
|
91
|
+
get: function () {
|
|
92
|
+
return CardHeader;
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
Object.defineProperty(exports, 'CardTitle', {
|
|
96
|
+
enumerable: true,
|
|
97
|
+
get: function () {
|
|
98
|
+
return CardTitle;
|
|
99
|
+
}
|
|
100
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as react_jsx_runtime15 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_runtime15.JSX.Element;
|
|
9
|
+
declare function CardHeader({
|
|
10
|
+
className,
|
|
11
|
+
...props
|
|
12
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime15.JSX.Element;
|
|
13
|
+
declare function CardTitle({
|
|
14
|
+
className,
|
|
15
|
+
...props
|
|
16
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime15.JSX.Element;
|
|
17
|
+
declare function CardDescription({
|
|
18
|
+
className,
|
|
19
|
+
...props
|
|
20
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime15.JSX.Element;
|
|
21
|
+
declare function CardAction({
|
|
22
|
+
className,
|
|
23
|
+
...props
|
|
24
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime15.JSX.Element;
|
|
25
|
+
declare function CardContent({
|
|
26
|
+
className,
|
|
27
|
+
...props
|
|
28
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime15.JSX.Element;
|
|
29
|
+
declare function CardFooter({
|
|
30
|
+
className,
|
|
31
|
+
...props
|
|
32
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime15.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,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
3
|
+
import * as react_jsx_runtime31 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_runtime31.JSX.Element;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { Checkbox as t };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const require_jsx_runtime$1 = require('./jsx-runtime-BlVTPSwi.cjs');
|
|
2
|
+
const require_utils = require('./utils-DyQCiavd.cjs');
|
|
3
|
+
let react = require("react");
|
|
4
|
+
react = require_jsx_runtime$1.__toESM(react);
|
|
5
|
+
let lucide_react = require("lucide-react");
|
|
6
|
+
let __radix_ui_react_checkbox = require("@radix-ui/react-checkbox");
|
|
7
|
+
__radix_ui_react_checkbox = require_jsx_runtime$1.__toESM(__radix_ui_react_checkbox);
|
|
8
|
+
|
|
9
|
+
//#region src/components/ui/checkbox.tsx
|
|
10
|
+
var import_jsx_runtime = /* @__PURE__ */ require_jsx_runtime$1.__toESM(require_jsx_runtime$1.require_jsx_runtime());
|
|
11
|
+
function Checkbox({ className, ...props }) {
|
|
12
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(__radix_ui_react_checkbox.Root, {
|
|
13
|
+
"data-slot": "checkbox",
|
|
14
|
+
className: require_utils.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),
|
|
15
|
+
...props,
|
|
16
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(__radix_ui_react_checkbox.Indicator, {
|
|
17
|
+
"data-slot": "checkbox-indicator",
|
|
18
|
+
className: "grid place-content-center text-current transition-none",
|
|
19
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(lucide_react.CheckIcon, { className: "size-3.5" })
|
|
20
|
+
})
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
Object.defineProperty(exports, 'Checkbox', {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () {
|
|
28
|
+
return Checkbox;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
3
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/checkbox.d.ts
|
|
6
6
|
declare function Checkbox({
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { t as Dialog } from "./dialog-
|
|
1
|
+
import { t as Dialog } from "./dialog-BeJ4W_wL.cjs";
|
|
2
|
+
import * as react_jsx_runtime106 from "react/jsx-runtime";
|
|
2
3
|
import * as React from "react";
|
|
3
4
|
import { Command } from "cmdk";
|
|
4
|
-
import * as react_jsx_runtime120 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/ui/command.d.ts
|
|
7
7
|
declare function Command$1({
|
|
8
8
|
className,
|
|
9
9
|
...props
|
|
10
|
-
}: React.ComponentProps<typeof Command>):
|
|
10
|
+
}: React.ComponentProps<typeof Command>): react_jsx_runtime106.JSX.Element;
|
|
11
11
|
declare function CommandDialog({
|
|
12
12
|
title,
|
|
13
13
|
description,
|
|
@@ -20,33 +20,33 @@ declare function CommandDialog({
|
|
|
20
20
|
description?: string;
|
|
21
21
|
className?: string;
|
|
22
22
|
showCloseButton?: boolean;
|
|
23
|
-
}):
|
|
23
|
+
}): react_jsx_runtime106.JSX.Element;
|
|
24
24
|
declare function CommandInput({
|
|
25
25
|
className,
|
|
26
26
|
...props
|
|
27
|
-
}: React.ComponentProps<typeof Command.Input>):
|
|
27
|
+
}: React.ComponentProps<typeof Command.Input>): react_jsx_runtime106.JSX.Element;
|
|
28
28
|
declare function CommandList({
|
|
29
29
|
className,
|
|
30
30
|
...props
|
|
31
|
-
}: React.ComponentProps<typeof Command.List>):
|
|
31
|
+
}: React.ComponentProps<typeof Command.List>): react_jsx_runtime106.JSX.Element;
|
|
32
32
|
declare function CommandEmpty({
|
|
33
33
|
...props
|
|
34
|
-
}: React.ComponentProps<typeof Command.Empty>):
|
|
34
|
+
}: React.ComponentProps<typeof Command.Empty>): react_jsx_runtime106.JSX.Element;
|
|
35
35
|
declare function CommandGroup({
|
|
36
36
|
className,
|
|
37
37
|
...props
|
|
38
|
-
}: React.ComponentProps<typeof Command.Group>):
|
|
38
|
+
}: React.ComponentProps<typeof Command.Group>): react_jsx_runtime106.JSX.Element;
|
|
39
39
|
declare function CommandSeparator({
|
|
40
40
|
className,
|
|
41
41
|
...props
|
|
42
|
-
}: React.ComponentProps<typeof Command.Separator>):
|
|
42
|
+
}: React.ComponentProps<typeof Command.Separator>): react_jsx_runtime106.JSX.Element;
|
|
43
43
|
declare function CommandItem({
|
|
44
44
|
className,
|
|
45
45
|
...props
|
|
46
|
-
}: React.ComponentProps<typeof Command.Item>):
|
|
46
|
+
}: React.ComponentProps<typeof Command.Item>): react_jsx_runtime106.JSX.Element;
|
|
47
47
|
declare function CommandShortcut({
|
|
48
48
|
className,
|
|
49
49
|
...props
|
|
50
|
-
}: React.ComponentProps<'span'>):
|
|
50
|
+
}: React.ComponentProps<'span'>): react_jsx_runtime106.JSX.Element;
|
|
51
51
|
//#endregion
|
|
52
52
|
export { CommandInput as a, CommandSeparator as c, CommandGroup as i, CommandShortcut as l, CommandDialog as n, CommandItem as o, CommandEmpty as r, CommandList as s, Command$1 as t };
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
const require_jsx_runtime$1 = require('./jsx-runtime-BlVTPSwi.cjs');
|
|
2
|
+
const require_utils = require('./utils-DyQCiavd.cjs');
|
|
3
|
+
const require_dialog = require('./dialog-DFENsfgQ.cjs');
|
|
4
|
+
let react = require("react");
|
|
5
|
+
react = require_jsx_runtime$1.__toESM(react);
|
|
6
|
+
let lucide_react = require("lucide-react");
|
|
7
|
+
let cmdk = require("cmdk");
|
|
8
|
+
|
|
9
|
+
//#region src/components/ui/command.tsx
|
|
10
|
+
var import_jsx_runtime = /* @__PURE__ */ require_jsx_runtime$1.__toESM(require_jsx_runtime$1.require_jsx_runtime());
|
|
11
|
+
function Command({ className, ...props }) {
|
|
12
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(cmdk.Command, {
|
|
13
|
+
"data-slot": "command",
|
|
14
|
+
className: require_utils.cn("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md", className),
|
|
15
|
+
...props
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function CommandDialog({ title = "Command Palette", description = "Search for a command to run...", children, className, showCloseButton = true, ...props }) {
|
|
19
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(require_dialog.Dialog, {
|
|
20
|
+
...props,
|
|
21
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(require_dialog.DialogHeader, {
|
|
22
|
+
className: "sr-only",
|
|
23
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(require_dialog.DialogTitle, { children: title }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(require_dialog.DialogDescription, { children: description })]
|
|
24
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(require_dialog.DialogContent, {
|
|
25
|
+
className: require_utils.cn("overflow-hidden p-0", className),
|
|
26
|
+
showCloseButton,
|
|
27
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Command, {
|
|
28
|
+
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",
|
|
29
|
+
children
|
|
30
|
+
})
|
|
31
|
+
})]
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function CommandInput({ className, ...props }) {
|
|
35
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
36
|
+
"data-slot": "command-input-wrapper",
|
|
37
|
+
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
38
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(lucide_react.SearchIcon, { className: "size-4 shrink-0 opacity-50" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(cmdk.Command.Input, {
|
|
39
|
+
"data-slot": "command-input",
|
|
40
|
+
className: require_utils.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),
|
|
41
|
+
...props
|
|
42
|
+
})]
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
function CommandList({ className, ...props }) {
|
|
46
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(cmdk.Command.List, {
|
|
47
|
+
"data-slot": "command-list",
|
|
48
|
+
className: require_utils.cn("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto", className),
|
|
49
|
+
...props
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function CommandEmpty({ ...props }) {
|
|
53
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(cmdk.Command.Empty, {
|
|
54
|
+
"data-slot": "command-empty",
|
|
55
|
+
className: "py-6 text-center text-sm",
|
|
56
|
+
...props
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
function CommandGroup({ className, ...props }) {
|
|
60
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(cmdk.Command.Group, {
|
|
61
|
+
"data-slot": "command-group",
|
|
62
|
+
className: require_utils.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),
|
|
63
|
+
...props
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
function CommandSeparator({ className, ...props }) {
|
|
67
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(cmdk.Command.Separator, {
|
|
68
|
+
"data-slot": "command-separator",
|
|
69
|
+
className: require_utils.cn("bg-border -mx-1 h-px", className),
|
|
70
|
+
...props
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
function CommandItem({ className, ...props }) {
|
|
74
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(cmdk.Command.Item, {
|
|
75
|
+
"data-slot": "command-item",
|
|
76
|
+
className: require_utils.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),
|
|
77
|
+
...props
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
function CommandShortcut({ className, ...props }) {
|
|
81
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
82
|
+
"data-slot": "command-shortcut",
|
|
83
|
+
className: require_utils.cn("text-muted-foreground ml-auto text-xs tracking-widest", className),
|
|
84
|
+
...props
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
//#endregion
|
|
89
|
+
Object.defineProperty(exports, 'Command', {
|
|
90
|
+
enumerable: true,
|
|
91
|
+
get: function () {
|
|
92
|
+
return Command;
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
Object.defineProperty(exports, 'CommandDialog', {
|
|
96
|
+
enumerable: true,
|
|
97
|
+
get: function () {
|
|
98
|
+
return CommandDialog;
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
Object.defineProperty(exports, 'CommandEmpty', {
|
|
102
|
+
enumerable: true,
|
|
103
|
+
get: function () {
|
|
104
|
+
return CommandEmpty;
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
Object.defineProperty(exports, 'CommandGroup', {
|
|
108
|
+
enumerable: true,
|
|
109
|
+
get: function () {
|
|
110
|
+
return CommandGroup;
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
Object.defineProperty(exports, 'CommandInput', {
|
|
114
|
+
enumerable: true,
|
|
115
|
+
get: function () {
|
|
116
|
+
return CommandInput;
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
Object.defineProperty(exports, 'CommandItem', {
|
|
120
|
+
enumerable: true,
|
|
121
|
+
get: function () {
|
|
122
|
+
return CommandItem;
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
Object.defineProperty(exports, 'CommandList', {
|
|
126
|
+
enumerable: true,
|
|
127
|
+
get: function () {
|
|
128
|
+
return CommandList;
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
Object.defineProperty(exports, 'CommandSeparator', {
|
|
132
|
+
enumerable: true,
|
|
133
|
+
get: function () {
|
|
134
|
+
return CommandSeparator;
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
Object.defineProperty(exports, 'CommandShortcut', {
|
|
138
|
+
enumerable: true,
|
|
139
|
+
get: function () {
|
|
140
|
+
return CommandShortcut;
|
|
141
|
+
}
|
|
142
|
+
});
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { t as Dialog } from "./dialog-C1-NCU47.js";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Command } from "cmdk";
|
|
4
|
+
import * as react_jsx_runtime85 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/ui/command.d.ts
|
|
7
|
+
declare function Command$1({
|
|
8
|
+
className,
|
|
9
|
+
...props
|
|
10
|
+
}: React.ComponentProps<typeof Command>): react_jsx_runtime85.JSX.Element;
|
|
11
|
+
declare function CommandDialog({
|
|
12
|
+
title,
|
|
13
|
+
description,
|
|
14
|
+
children,
|
|
15
|
+
className,
|
|
16
|
+
showCloseButton,
|
|
17
|
+
...props
|
|
18
|
+
}: React.ComponentProps<typeof Dialog> & {
|
|
19
|
+
title?: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
className?: string;
|
|
22
|
+
showCloseButton?: boolean;
|
|
23
|
+
}): react_jsx_runtime85.JSX.Element;
|
|
24
|
+
declare function CommandInput({
|
|
25
|
+
className,
|
|
26
|
+
...props
|
|
27
|
+
}: React.ComponentProps<typeof Command.Input>): react_jsx_runtime85.JSX.Element;
|
|
28
|
+
declare function CommandList({
|
|
29
|
+
className,
|
|
30
|
+
...props
|
|
31
|
+
}: React.ComponentProps<typeof Command.List>): react_jsx_runtime85.JSX.Element;
|
|
32
|
+
declare function CommandEmpty({
|
|
33
|
+
...props
|
|
34
|
+
}: React.ComponentProps<typeof Command.Empty>): react_jsx_runtime85.JSX.Element;
|
|
35
|
+
declare function CommandGroup({
|
|
36
|
+
className,
|
|
37
|
+
...props
|
|
38
|
+
}: React.ComponentProps<typeof Command.Group>): react_jsx_runtime85.JSX.Element;
|
|
39
|
+
declare function CommandSeparator({
|
|
40
|
+
className,
|
|
41
|
+
...props
|
|
42
|
+
}: React.ComponentProps<typeof Command.Separator>): react_jsx_runtime85.JSX.Element;
|
|
43
|
+
declare function CommandItem({
|
|
44
|
+
className,
|
|
45
|
+
...props
|
|
46
|
+
}: React.ComponentProps<typeof Command.Item>): react_jsx_runtime85.JSX.Element;
|
|
47
|
+
declare function CommandShortcut({
|
|
48
|
+
className,
|
|
49
|
+
...props
|
|
50
|
+
}: React.ComponentProps<'span'>): react_jsx_runtime85.JSX.Element;
|
|
51
|
+
//#endregion
|
|
52
|
+
export { CommandInput as a, CommandSeparator as c, CommandGroup as i, CommandShortcut as l, CommandDialog as n, CommandItem as o, CommandEmpty as r, CommandList as s, Command$1 as t };
|