@pixpilot/shadcn 0.1.1 → 0.1.2
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-D2E12axp.d.ts → OrContinueWithSeparator-BQalGx6O.d.ts} +2 -2
- package/dist/{alert-BOmOAVab.d.cts → alert-BDcOuBrO.d.ts} +5 -5
- package/dist/{alert-dialog-TlaRRoQl.d.ts → alert-dialog-Iw5UG8d3.d.ts} +12 -12
- package/dist/{avatar-C0o0LZHK.d.cts → avatar-BRZS2oIf.d.ts} +4 -4
- package/dist/{badge-BwMa0yrU.d.cts → badge-Dwxq7JaA.d.ts} +3 -3
- package/dist/{button-DS2onC5z.d.cts → button-CSw4bOk7.d.ts} +3 -3
- package/dist/{calendar-2na2Z1lC.d.cts → calendar-Vx7GBiN5.d.ts} +4 -4
- package/dist/{card-WGLY-CGJ.d.ts → card-CN1Wv1_W.d.ts} +8 -8
- package/dist/{checkbox-qfDakeFS.d.cts → checkbox-COC2Igpo.d.ts} +2 -2
- package/dist/{command-Jg-MECH0.d.ts → command-CJXf3-UR.d.ts} +11 -11
- package/dist/components/{index-9UbR5pav.d.ts → index-2Smtu_1u.d.ts} +29 -29
- package/dist/components/ui/{OrContinueWithSeparator-Deko0a05.d.ts → OrContinueWithSeparator-OYGOTHTw.d.ts} +1 -1
- package/dist/components/ui/alert-DuyLuX68.d.ts +2 -0
- package/dist/components/ui/{alert-dialog-B1O4SkCO.d.ts → alert-dialog-CUL8nAeI.d.ts} +1 -1
- package/dist/components/ui/avatar-DAQzpqqD.d.ts +2 -0
- package/dist/components/ui/badge-BM6RVFS5.d.ts +2 -0
- package/dist/components/ui/{button-xAUU71CK.d.ts → button-D9y8v_Tt.d.ts} +1 -1
- package/dist/components/ui/{calendar-CdHQnChE.d.ts → calendar-B9zfwi7H.d.ts} +1 -1
- package/dist/components/ui/{card-B33oFk7g.d.ts → card-BYi1Jf3z.d.ts} +1 -1
- package/dist/components/ui/checkbox-QkowwGnR.d.ts +2 -0
- package/dist/components/ui/{command-CiYsTw-N.d.ts → command-BkXDbodx.d.ts} +1 -1
- package/dist/components/ui/{dialog-BLmUGWhm.d.ts → dialog-BvEqiJH6.d.ts} +1 -1
- package/dist/components/ui/{dropdown-menu-BiTw8JoY.d.ts → dropdown-menu-BJ2FNIH4.d.ts} +1 -1
- package/dist/components/ui/{file-upload-B5xI4UMr.d.ts → file-upload-DZGaOzQS.d.ts} +1 -1
- package/dist/components/ui/{form-Di2tTY-R.d.ts → form-CpVuTht7.d.ts} +1 -1
- package/dist/components/ui/{index-8A2fRq2u.d.ts → index-q7RUuYJ2.d.ts} +29 -29
- package/dist/components/ui/input-DVpolrW-.d.ts +2 -0
- package/dist/components/ui/label-BW9JhwyW.d.ts +2 -0
- package/dist/components/ui/{pagination-CEb9cpQ4.d.ts → pagination-CDtFyXkC.d.ts} +1 -1
- package/dist/components/ui/{popover-DnnrgVi3.d.ts → popover-B6PDCy8U.d.ts} +1 -1
- package/dist/components/ui/{radio-group-DIjhsevH.d.ts → radio-group-DuGtPMcp.d.ts} +1 -1
- package/dist/components/ui/{select-d1uVKLd4.d.ts → select-DAN9r02Z.d.ts} +1 -1
- package/dist/components/ui/separator-D53tTv-J.d.ts +2 -0
- package/dist/components/ui/shadcn-io/tags/{index-D0RWMGB5.d.ts → index-CnMq6aeV.d.ts} +1 -1
- package/dist/components/ui/shadcn-io/tags-input-inline/{index-DVGMC27L.d.ts → index-D7OIPdfu.d.ts} +1 -1
- package/dist/components/ui/{sheet-oRvo5v4N.d.ts → sheet-Bo7lvlRA.d.ts} +1 -1
- package/dist/components/ui/slider-lAthKpva.d.ts +2 -0
- package/dist/components/ui/switch-D7WzMqgv.d.ts +2 -0
- package/dist/components/ui/tabs-CnjGY6eE.d.ts +2 -0
- package/dist/components/ui/textarea-BJpu8fK5.d.ts +2 -0
- package/dist/components/ui/{tooltip-B05vLa7i.d.ts → tooltip-JdLdCVsY.d.ts} +1 -1
- package/dist/{dialog-BeJ4W_wL.d.cts → dialog-a61KKgp5.d.ts} +11 -11
- package/dist/{dropdown-menu-pJlZRoLy.d.cts → dropdown-menu-DTRzUFxv.d.ts} +16 -16
- package/dist/{file-upload-Cd99SBNZ.d.ts → file-upload-C38U9nyT.d.ts} +11 -11
- package/dist/{form-C4ktVmIn.d.ts → form-Cx2k120Z.d.ts} +7 -7
- package/dist/{index-DOMvBE84.d.ts → index-2apAhpYW.d.ts} +29 -29
- package/dist/{index-fofN1DBY.d.ts → index-B6o0TAoD.d.ts} +7 -7
- package/dist/{index-DvlthbVs.d.cts → index-B9p9Ocoz.d.ts} +9 -9
- package/dist/{index-VLXQAOef.d.ts → index-fkXKhUlW.d.ts} +13 -13
- package/dist/input-DCWzuP_2.d.ts +11 -0
- package/dist/{label-FC0f8Usj.d.cts → label-pEqCQKel.d.ts} +2 -2
- package/dist/{popover-BX6CaTPU.d.cts → popover-RnfYQfGo.d.ts} +5 -5
- package/dist/{radio-group-CcjDx3W6.d.ts → radio-group-BNj4EfLg.d.ts} +3 -3
- package/dist/{select-Fa42Z4LL.d.ts → select-B4b-ZC31.d.ts} +11 -11
- package/dist/{separator-CfeHjQ3U.d.ts → separator-izY8KL7y.d.ts} +2 -2
- package/dist/{sheet-BjXx7ddJ.d.ts → sheet-Dag7L2Xd.d.ts} +9 -9
- package/dist/{slider-B3CoyrXu.d.cts → slider-DEUGdZC4.d.ts} +2 -2
- package/dist/{switch-B5LyLweM.d.ts → switch-RbFzvnvM.d.ts} +2 -2
- package/dist/{tabs-BPdlT-mo.d.ts → tabs-had5ildI.d.ts} +5 -5
- package/dist/{textarea-CqY_xh2i.d.cts → textarea-s8H46Zg0.d.ts} +2 -2
- package/dist/{tooltip-D1pZ34pY.d.ts → tooltip-CS40su1S.d.ts} +5 -5
- package/package.json +1 -1
- package/dist/OrContinueWithSeparator-BvzntFX7.cjs +0 -34
- package/dist/OrContinueWithSeparator-D_x7OhtS.d.cts +0 -11
- package/dist/alert-CwZayX3S.d.ts +0 -24
- package/dist/alert-D-l745dk.cjs +0 -57
- package/dist/alert-dialog-UlVI8Jfl.d.cts +0 -48
- package/dist/avatar-DXl-ag7U.d.ts +0 -19
- package/dist/avatar-w_kyvah6.cjs +0 -50
- package/dist/badge-3M1AQ3yx.cjs +0 -39
- package/dist/badge-_7r9g75U.d.ts +0 -19
- package/dist/button-BNmxKjOB.cjs +0 -58
- package/dist/button-CESLc3CQ.d.ts +0 -21
- package/dist/calendar-CELLMIIj.cjs +0 -119
- package/dist/calendar-b33t89Qe.d.ts +0 -26
- package/dist/card-C4hKT5Pm.d.cts +0 -34
- package/dist/card-Dvch7YjH.cjs +0 -100
- package/dist/checkbox-B_9kOHN4.d.ts +0 -11
- package/dist/checkbox-DBOuQN-K.cjs +0 -30
- package/dist/command-C4R-OiAQ.d.cts +0 -52
- package/dist/command-DX6woPdY.cjs +0 -142
- package/dist/components/index-IQG8KA86.d.cts +0 -30
- package/dist/components/index.cjs +0 -187
- package/dist/components/ui/OrContinueWithSeparator-Dvc8cDyM.d.cts +0 -2
- package/dist/components/ui/OrContinueWithSeparator.cjs +0 -7
- package/dist/components/ui/alert-Byz-rs0N.d.ts +0 -2
- package/dist/components/ui/alert-EgfaSBxF.d.cts +0 -2
- package/dist/components/ui/alert-dialog-DduTXxp5.d.cts +0 -2
- package/dist/components/ui/alert-dialog.cjs +0 -45
- package/dist/components/ui/alert.cjs +0 -8
- package/dist/components/ui/avatar-C27hFzFH.d.ts +0 -2
- package/dist/components/ui/avatar-hpkEskr5.d.cts +0 -2
- package/dist/components/ui/avatar.cjs +0 -8
- package/dist/components/ui/badge-Bn_Si704.d.ts +0 -2
- package/dist/components/ui/badge-KcziaqyK.d.cts +0 -2
- package/dist/components/ui/badge.cjs +0 -7
- package/dist/components/ui/button-OMnV_24p.d.cts +0 -2
- package/dist/components/ui/button.cjs +0 -7
- package/dist/components/ui/calendar-BEbds-zF.d.cts +0 -2
- package/dist/components/ui/calendar.cjs +0 -8
- package/dist/components/ui/card-BDrM5yPN.d.cts +0 -2
- package/dist/components/ui/card.cjs +0 -12
- package/dist/components/ui/checkbox-0VdiyPZJ.d.ts +0 -2
- package/dist/components/ui/checkbox-DAUiq-4T.d.cts +0 -2
- package/dist/components/ui/checkbox.cjs +0 -8
- package/dist/components/ui/command-DCzWKK9H.d.cts +0 -2
- package/dist/components/ui/command.cjs +0 -17
- package/dist/components/ui/dialog-BgbuIKOa.d.cts +0 -2
- package/dist/components/ui/dialog.cjs +0 -15
- package/dist/components/ui/dropdown-menu-BkKMo0ox.d.cts +0 -2
- package/dist/components/ui/dropdown-menu.cjs +0 -20
- package/dist/components/ui/file-upload-DiSeXl5J.d.cts +0 -2
- package/dist/components/ui/file-upload.cjs +0 -28
- package/dist/components/ui/form-Ou4AQTb6.d.cts +0 -2
- package/dist/components/ui/form.cjs +0 -14
- package/dist/components/ui/index-G20FcqoN.d.cts +0 -30
- package/dist/components/ui/index.cjs +0 -187
- package/dist/components/ui/input-DUQcmWuH.d.cts +0 -2
- package/dist/components/ui/input-gUHpQ5sH.d.ts +0 -2
- package/dist/components/ui/input.cjs +0 -6
- package/dist/components/ui/label-D0-7tdhM.d.ts +0 -2
- package/dist/components/ui/label-DimrvHz0.d.cts +0 -2
- package/dist/components/ui/label.cjs +0 -6
- package/dist/components/ui/pagination-C3bwMwwX.d.cts +0 -2
- package/dist/components/ui/pagination.cjs +0 -39
- package/dist/components/ui/popover-BMsEOeZk.d.cts +0 -2
- package/dist/components/ui/popover.cjs +0 -9
- package/dist/components/ui/radio-group-LhGeL5Jq.d.cts +0 -2
- package/dist/components/ui/radio-group.cjs +0 -7
- package/dist/components/ui/select-DEocx6ny.d.cts +0 -2
- package/dist/components/ui/select.cjs +0 -17
- package/dist/components/ui/separator-B9ar107P.d.ts +0 -2
- package/dist/components/ui/separator-CRHUHLVk.d.cts +0 -2
- package/dist/components/ui/separator.cjs +0 -6
- package/dist/components/ui/shadcn-io/tags/index-C7ircX0x.d.cts +0 -2
- package/dist/components/ui/shadcn-io/tags/index.cjs +0 -21
- package/dist/components/ui/shadcn-io/tags-input-inline/index-DpTV34EG.d.cts +0 -2
- package/dist/components/ui/shadcn-io/tags-input-inline/index.cjs +0 -10
- package/dist/components/ui/sheet-DrTt0RCh.d.cts +0 -2
- package/dist/components/ui/sheet.cjs +0 -13
- package/dist/components/ui/slider-B_Ct6RDR.d.ts +0 -2
- package/dist/components/ui/slider-qhTDbebA.d.cts +0 -2
- package/dist/components/ui/slider.cjs +0 -6
- package/dist/components/ui/switch-BN9A2aWi.d.ts +0 -2
- package/dist/components/ui/switch-D6yB-Ovv.d.cts +0 -2
- package/dist/components/ui/switch.cjs +0 -8
- package/dist/components/ui/tabs-BThS9Ifx.d.cts +0 -2
- package/dist/components/ui/tabs-BXfCBX9q.d.ts +0 -2
- package/dist/components/ui/tabs.cjs +0 -9
- package/dist/components/ui/textarea-BfSbPfQE.d.ts +0 -2
- package/dist/components/ui/textarea-CQzW61Gx.d.cts +0 -2
- package/dist/components/ui/textarea.cjs +0 -6
- package/dist/components/ui/tooltip-BRCqK0UP.d.cts +0 -2
- package/dist/components/ui/tooltip.cjs +0 -9
- package/dist/dialog-C1-NCU47.d.ts +0 -47
- package/dist/dialog-DFENsfgQ.cjs +0 -149
- package/dist/dropdown-menu-B2D2pr52.cjs +0 -216
- package/dist/dropdown-menu-CGyKEAjo.d.ts +0 -77
- package/dist/file-upload-9q25L_mV.d.cts +0 -94
- package/dist/file-upload-DGFPUCSi.cjs +0 -973
- package/dist/form-C9YnHr1i.cjs +0 -137
- package/dist/form-DHHxQebW.d.cts +0 -45
- package/dist/index-B_2R7TER.d.cts +0 -31
- package/dist/index-Blt-EW0e.d.cts +0 -31
- package/dist/index-Cgz59HyA.d.ts +0 -39
- package/dist/index-Ctvuv0vV.d.cts +0 -1
- package/dist/index-DxMmAsPK.d.cts +0 -70
- package/dist/index.cjs +0 -188
- package/dist/input-BGQuRFda.d.ts +0 -11
- package/dist/input-BfxJHE4U.cjs +0 -23
- package/dist/input-C5RDMgi3.d.cts +0 -11
- package/dist/jsx-runtime-BlVTPSwi.cjs +0 -283
- package/dist/label-B92w7LNc.cjs +0 -24
- package/dist/label-C82lEB8P.d.ts +0 -11
- package/dist/lib/index-D0-THr8a.d.cts +0 -2
- package/dist/lib/index.cjs +0 -4
- package/dist/lib/utils-lNm-CqH0.d.cts +0 -2
- package/dist/lib/utils.cjs +0 -3
- package/dist/lib-CkvvICiv.cjs +0 -0
- package/dist/popover-C7XolifE.d.ts +0 -22
- package/dist/popover-CxQjRK9q.cjs +0 -62
- package/dist/radio-group-BGPJ_D8q.cjs +0 -43
- package/dist/radio-group-oSmZ0ztd.d.cts +0 -15
- package/dist/select-BAngGmNL.d.cts +0 -52
- package/dist/select-BZfB9A8R.cjs +0 -160
- package/dist/separator-3CugGxfw.cjs +0 -26
- package/dist/separator-4yrIPr8r.d.cts +0 -13
- package/dist/sheet-CHuRM3o6.cjs +0 -133
- package/dist/sheet-DP0qGWDN.d.cts +0 -40
- package/dist/slider-3-mzOHpV.cjs +0 -45
- package/dist/slider-D3ozng9Y.d.ts +0 -15
- package/dist/src-Bx8pdty8.cjs +0 -266
- package/dist/switch-BIfMlSaF.d.cts +0 -11
- package/dist/switch-L23w_mnL.cjs +0 -28
- package/dist/tabs-CaKdT_iv.cjs +0 -63
- package/dist/tabs-DB6AHtkj.d.cts +0 -23
- package/dist/tags-VzxSgWuS.cjs +0 -184
- package/dist/tags-input-inline-CNZb7USn.cjs +0 -94
- package/dist/textarea-CRkBubLj.cjs +0 -22
- package/dist/textarea-_V7biagy.d.ts +0 -10
- package/dist/tooltip-C7py127U.d.cts +0 -23
- package/dist/tooltip-DelLkXOp.cjs +0 -63
- package/dist/utils-DyQCiavd.cjs +0 -16
- package/dist/utils-tcGMjZkT.d.cts +0 -6
package/dist/dialog-DFENsfgQ.cjs
DELETED
|
@@ -1,149 +0,0 @@
|
|
|
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_dialog = require("@radix-ui/react-dialog");
|
|
7
|
-
__radix_ui_react_dialog = require_jsx_runtime$1.__toESM(__radix_ui_react_dialog);
|
|
8
|
-
|
|
9
|
-
//#region src/components/ui/dialog.tsx
|
|
10
|
-
var import_jsx_runtime = /* @__PURE__ */ require_jsx_runtime$1.__toESM(require_jsx_runtime$1.require_jsx_runtime());
|
|
11
|
-
function Dialog({ ...props }) {
|
|
12
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(__radix_ui_react_dialog.Root, {
|
|
13
|
-
"data-slot": "dialog",
|
|
14
|
-
...props
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
function DialogTrigger({ ...props }) {
|
|
18
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(__radix_ui_react_dialog.Trigger, {
|
|
19
|
-
"data-slot": "dialog-trigger",
|
|
20
|
-
...props
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
function DialogPortal({ ...props }) {
|
|
24
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(__radix_ui_react_dialog.Portal, {
|
|
25
|
-
"data-slot": "dialog-portal",
|
|
26
|
-
...props
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
function DialogClose({ ...props }) {
|
|
30
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(__radix_ui_react_dialog.Close, {
|
|
31
|
-
"data-slot": "dialog-close",
|
|
32
|
-
...props
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
function DialogOverlay({ className, ...props }) {
|
|
36
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(__radix_ui_react_dialog.Overlay, {
|
|
37
|
-
"data-slot": "dialog-overlay",
|
|
38
|
-
className: require_utils.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", className),
|
|
39
|
-
...props
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
function DialogContent({ className, children, showCloseButton = true, ...props }) {
|
|
43
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DialogPortal, {
|
|
44
|
-
"data-slot": "dialog-portal",
|
|
45
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogOverlay, {}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(__radix_ui_react_dialog.Content, {
|
|
46
|
-
"data-slot": "dialog-content",
|
|
47
|
-
className: require_utils.cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg", className),
|
|
48
|
-
...props,
|
|
49
|
-
children: [children, showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(__radix_ui_react_dialog.Close, {
|
|
50
|
-
"data-slot": "dialog-close",
|
|
51
|
-
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
52
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(lucide_react.XIcon, {}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
53
|
-
className: "sr-only",
|
|
54
|
-
children: "Close"
|
|
55
|
-
})]
|
|
56
|
-
})]
|
|
57
|
-
})]
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
function DialogHeader({ className, ...props }) {
|
|
61
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
62
|
-
"data-slot": "dialog-header",
|
|
63
|
-
className: require_utils.cn("flex flex-col gap-2 text-center sm:text-left", className),
|
|
64
|
-
...props
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
function DialogFooter({ className, ...props }) {
|
|
68
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
69
|
-
"data-slot": "dialog-footer",
|
|
70
|
-
className: require_utils.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
71
|
-
...props
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
function DialogTitle({ className, ...props }) {
|
|
75
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(__radix_ui_react_dialog.Title, {
|
|
76
|
-
"data-slot": "dialog-title",
|
|
77
|
-
className: require_utils.cn("text-lg leading-none font-semibold", className),
|
|
78
|
-
...props
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
function DialogDescription({ className, ...props }) {
|
|
82
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(__radix_ui_react_dialog.Description, {
|
|
83
|
-
"data-slot": "dialog-description",
|
|
84
|
-
className: require_utils.cn("text-muted-foreground text-sm", className),
|
|
85
|
-
...props
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
//#endregion
|
|
90
|
-
Object.defineProperty(exports, 'Dialog', {
|
|
91
|
-
enumerable: true,
|
|
92
|
-
get: function () {
|
|
93
|
-
return Dialog;
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
Object.defineProperty(exports, 'DialogClose', {
|
|
97
|
-
enumerable: true,
|
|
98
|
-
get: function () {
|
|
99
|
-
return DialogClose;
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
Object.defineProperty(exports, 'DialogContent', {
|
|
103
|
-
enumerable: true,
|
|
104
|
-
get: function () {
|
|
105
|
-
return DialogContent;
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
Object.defineProperty(exports, 'DialogDescription', {
|
|
109
|
-
enumerable: true,
|
|
110
|
-
get: function () {
|
|
111
|
-
return DialogDescription;
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
Object.defineProperty(exports, 'DialogFooter', {
|
|
115
|
-
enumerable: true,
|
|
116
|
-
get: function () {
|
|
117
|
-
return DialogFooter;
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
Object.defineProperty(exports, 'DialogHeader', {
|
|
121
|
-
enumerable: true,
|
|
122
|
-
get: function () {
|
|
123
|
-
return DialogHeader;
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
Object.defineProperty(exports, 'DialogOverlay', {
|
|
127
|
-
enumerable: true,
|
|
128
|
-
get: function () {
|
|
129
|
-
return DialogOverlay;
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
Object.defineProperty(exports, 'DialogPortal', {
|
|
133
|
-
enumerable: true,
|
|
134
|
-
get: function () {
|
|
135
|
-
return DialogPortal;
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
Object.defineProperty(exports, 'DialogTitle', {
|
|
139
|
-
enumerable: true,
|
|
140
|
-
get: function () {
|
|
141
|
-
return DialogTitle;
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
Object.defineProperty(exports, 'DialogTrigger', {
|
|
145
|
-
enumerable: true,
|
|
146
|
-
get: function () {
|
|
147
|
-
return DialogTrigger;
|
|
148
|
-
}
|
|
149
|
-
});
|
|
@@ -1,216 +0,0 @@
|
|
|
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_dropdown_menu = require("@radix-ui/react-dropdown-menu");
|
|
7
|
-
__radix_ui_react_dropdown_menu = require_jsx_runtime$1.__toESM(__radix_ui_react_dropdown_menu);
|
|
8
|
-
|
|
9
|
-
//#region src/components/ui/dropdown-menu.tsx
|
|
10
|
-
var import_jsx_runtime = /* @__PURE__ */ require_jsx_runtime$1.__toESM(require_jsx_runtime$1.require_jsx_runtime());
|
|
11
|
-
function DropdownMenu({ ...props }) {
|
|
12
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(__radix_ui_react_dropdown_menu.Root, {
|
|
13
|
-
"data-slot": "dropdown-menu",
|
|
14
|
-
...props
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
function DropdownMenuPortal({ ...props }) {
|
|
18
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(__radix_ui_react_dropdown_menu.Portal, {
|
|
19
|
-
"data-slot": "dropdown-menu-portal",
|
|
20
|
-
...props
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
function DropdownMenuTrigger({ ...props }) {
|
|
24
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(__radix_ui_react_dropdown_menu.Trigger, {
|
|
25
|
-
"data-slot": "dropdown-menu-trigger",
|
|
26
|
-
...props
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
function DropdownMenuContent({ className, sideOffset = 4, ...props }) {
|
|
30
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(__radix_ui_react_dropdown_menu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(__radix_ui_react_dropdown_menu.Content, {
|
|
31
|
-
"data-slot": "dropdown-menu-content",
|
|
32
|
-
sideOffset,
|
|
33
|
-
className: require_utils.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md", className),
|
|
34
|
-
...props
|
|
35
|
-
}) });
|
|
36
|
-
}
|
|
37
|
-
function DropdownMenuGroup({ ...props }) {
|
|
38
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(__radix_ui_react_dropdown_menu.Group, {
|
|
39
|
-
"data-slot": "dropdown-menu-group",
|
|
40
|
-
...props
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
function DropdownMenuItem({ className, inset, variant = "default", ...props }) {
|
|
44
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(__radix_ui_react_dropdown_menu.Item, {
|
|
45
|
-
"data-slot": "dropdown-menu-item",
|
|
46
|
-
"data-inset": inset,
|
|
47
|
-
"data-variant": variant,
|
|
48
|
-
className: require_utils.cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_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]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
49
|
-
...props
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
function DropdownMenuCheckboxItem({ className, children, checked, ...props }) {
|
|
53
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(__radix_ui_react_dropdown_menu.CheckboxItem, {
|
|
54
|
-
"data-slot": "dropdown-menu-checkbox-item",
|
|
55
|
-
className: require_utils.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
56
|
-
checked,
|
|
57
|
-
...props,
|
|
58
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
59
|
-
className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
|
|
60
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(__radix_ui_react_dropdown_menu.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(lucide_react.CheckIcon, { className: "size-4" }) })
|
|
61
|
-
}), children]
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
function DropdownMenuRadioGroup({ ...props }) {
|
|
65
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(__radix_ui_react_dropdown_menu.RadioGroup, {
|
|
66
|
-
"data-slot": "dropdown-menu-radio-group",
|
|
67
|
-
...props
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
function DropdownMenuRadioItem({ className, children, ...props }) {
|
|
71
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(__radix_ui_react_dropdown_menu.RadioItem, {
|
|
72
|
-
"data-slot": "dropdown-menu-radio-item",
|
|
73
|
-
className: require_utils.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
74
|
-
...props,
|
|
75
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
76
|
-
className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
|
|
77
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(__radix_ui_react_dropdown_menu.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(lucide_react.CircleIcon, { className: "size-2 fill-current" }) })
|
|
78
|
-
}), children]
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
function DropdownMenuLabel({ className, inset, ...props }) {
|
|
82
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(__radix_ui_react_dropdown_menu.Label, {
|
|
83
|
-
"data-slot": "dropdown-menu-label",
|
|
84
|
-
"data-inset": inset,
|
|
85
|
-
className: require_utils.cn("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", className),
|
|
86
|
-
...props
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
function DropdownMenuSeparator({ className, ...props }) {
|
|
90
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(__radix_ui_react_dropdown_menu.Separator, {
|
|
91
|
-
"data-slot": "dropdown-menu-separator",
|
|
92
|
-
className: require_utils.cn("bg-border -mx-1 my-1 h-px", className),
|
|
93
|
-
...props
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
function DropdownMenuShortcut({ className, ...props }) {
|
|
97
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
98
|
-
"data-slot": "dropdown-menu-shortcut",
|
|
99
|
-
className: require_utils.cn("text-muted-foreground ml-auto text-xs tracking-widest", className),
|
|
100
|
-
...props
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
function DropdownMenuSub({ ...props }) {
|
|
104
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(__radix_ui_react_dropdown_menu.Sub, {
|
|
105
|
-
"data-slot": "dropdown-menu-sub",
|
|
106
|
-
...props
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
function DropdownMenuSubTrigger({ className, inset, children, ...props }) {
|
|
110
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(__radix_ui_react_dropdown_menu.SubTrigger, {
|
|
111
|
-
"data-slot": "dropdown-menu-sub-trigger",
|
|
112
|
-
"data-inset": inset,
|
|
113
|
-
className: require_utils.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
114
|
-
...props,
|
|
115
|
-
children: [children, /* @__PURE__ */ (0, import_jsx_runtime.jsx)(lucide_react.ChevronRightIcon, { className: "ml-auto size-4" })]
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
function DropdownMenuSubContent({ className, ...props }) {
|
|
119
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(__radix_ui_react_dropdown_menu.SubContent, {
|
|
120
|
-
"data-slot": "dropdown-menu-sub-content",
|
|
121
|
-
className: require_utils.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", className),
|
|
122
|
-
...props
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
//#endregion
|
|
127
|
-
Object.defineProperty(exports, 'DropdownMenu', {
|
|
128
|
-
enumerable: true,
|
|
129
|
-
get: function () {
|
|
130
|
-
return DropdownMenu;
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
Object.defineProperty(exports, 'DropdownMenuCheckboxItem', {
|
|
134
|
-
enumerable: true,
|
|
135
|
-
get: function () {
|
|
136
|
-
return DropdownMenuCheckboxItem;
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
Object.defineProperty(exports, 'DropdownMenuContent', {
|
|
140
|
-
enumerable: true,
|
|
141
|
-
get: function () {
|
|
142
|
-
return DropdownMenuContent;
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
Object.defineProperty(exports, 'DropdownMenuGroup', {
|
|
146
|
-
enumerable: true,
|
|
147
|
-
get: function () {
|
|
148
|
-
return DropdownMenuGroup;
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
|
-
Object.defineProperty(exports, 'DropdownMenuItem', {
|
|
152
|
-
enumerable: true,
|
|
153
|
-
get: function () {
|
|
154
|
-
return DropdownMenuItem;
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
Object.defineProperty(exports, 'DropdownMenuLabel', {
|
|
158
|
-
enumerable: true,
|
|
159
|
-
get: function () {
|
|
160
|
-
return DropdownMenuLabel;
|
|
161
|
-
}
|
|
162
|
-
});
|
|
163
|
-
Object.defineProperty(exports, 'DropdownMenuPortal', {
|
|
164
|
-
enumerable: true,
|
|
165
|
-
get: function () {
|
|
166
|
-
return DropdownMenuPortal;
|
|
167
|
-
}
|
|
168
|
-
});
|
|
169
|
-
Object.defineProperty(exports, 'DropdownMenuRadioGroup', {
|
|
170
|
-
enumerable: true,
|
|
171
|
-
get: function () {
|
|
172
|
-
return DropdownMenuRadioGroup;
|
|
173
|
-
}
|
|
174
|
-
});
|
|
175
|
-
Object.defineProperty(exports, 'DropdownMenuRadioItem', {
|
|
176
|
-
enumerable: true,
|
|
177
|
-
get: function () {
|
|
178
|
-
return DropdownMenuRadioItem;
|
|
179
|
-
}
|
|
180
|
-
});
|
|
181
|
-
Object.defineProperty(exports, 'DropdownMenuSeparator', {
|
|
182
|
-
enumerable: true,
|
|
183
|
-
get: function () {
|
|
184
|
-
return DropdownMenuSeparator;
|
|
185
|
-
}
|
|
186
|
-
});
|
|
187
|
-
Object.defineProperty(exports, 'DropdownMenuShortcut', {
|
|
188
|
-
enumerable: true,
|
|
189
|
-
get: function () {
|
|
190
|
-
return DropdownMenuShortcut;
|
|
191
|
-
}
|
|
192
|
-
});
|
|
193
|
-
Object.defineProperty(exports, 'DropdownMenuSub', {
|
|
194
|
-
enumerable: true,
|
|
195
|
-
get: function () {
|
|
196
|
-
return DropdownMenuSub;
|
|
197
|
-
}
|
|
198
|
-
});
|
|
199
|
-
Object.defineProperty(exports, 'DropdownMenuSubContent', {
|
|
200
|
-
enumerable: true,
|
|
201
|
-
get: function () {
|
|
202
|
-
return DropdownMenuSubContent;
|
|
203
|
-
}
|
|
204
|
-
});
|
|
205
|
-
Object.defineProperty(exports, 'DropdownMenuSubTrigger', {
|
|
206
|
-
enumerable: true,
|
|
207
|
-
get: function () {
|
|
208
|
-
return DropdownMenuSubTrigger;
|
|
209
|
-
}
|
|
210
|
-
});
|
|
211
|
-
Object.defineProperty(exports, 'DropdownMenuTrigger', {
|
|
212
|
-
enumerable: true,
|
|
213
|
-
get: function () {
|
|
214
|
-
return DropdownMenuTrigger;
|
|
215
|
-
}
|
|
216
|
-
});
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
3
|
-
import * as react_jsx_runtime113 from "react/jsx-runtime";
|
|
4
|
-
|
|
5
|
-
//#region src/components/ui/dropdown-menu.d.ts
|
|
6
|
-
declare function DropdownMenu({
|
|
7
|
-
...props
|
|
8
|
-
}: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): react_jsx_runtime113.JSX.Element;
|
|
9
|
-
declare function DropdownMenuPortal({
|
|
10
|
-
...props
|
|
11
|
-
}: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): react_jsx_runtime113.JSX.Element;
|
|
12
|
-
declare function DropdownMenuTrigger({
|
|
13
|
-
...props
|
|
14
|
-
}: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): react_jsx_runtime113.JSX.Element;
|
|
15
|
-
declare function DropdownMenuContent({
|
|
16
|
-
className,
|
|
17
|
-
sideOffset,
|
|
18
|
-
...props
|
|
19
|
-
}: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): react_jsx_runtime113.JSX.Element;
|
|
20
|
-
declare function DropdownMenuGroup({
|
|
21
|
-
...props
|
|
22
|
-
}: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): react_jsx_runtime113.JSX.Element;
|
|
23
|
-
declare function DropdownMenuItem({
|
|
24
|
-
className,
|
|
25
|
-
inset,
|
|
26
|
-
variant,
|
|
27
|
-
...props
|
|
28
|
-
}: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
29
|
-
inset?: boolean;
|
|
30
|
-
variant?: 'default' | 'destructive';
|
|
31
|
-
}): react_jsx_runtime113.JSX.Element;
|
|
32
|
-
declare function DropdownMenuCheckboxItem({
|
|
33
|
-
className,
|
|
34
|
-
children,
|
|
35
|
-
checked,
|
|
36
|
-
...props
|
|
37
|
-
}: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): react_jsx_runtime113.JSX.Element;
|
|
38
|
-
declare function DropdownMenuRadioGroup({
|
|
39
|
-
...props
|
|
40
|
-
}: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): react_jsx_runtime113.JSX.Element;
|
|
41
|
-
declare function DropdownMenuRadioItem({
|
|
42
|
-
className,
|
|
43
|
-
children,
|
|
44
|
-
...props
|
|
45
|
-
}: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): react_jsx_runtime113.JSX.Element;
|
|
46
|
-
declare function DropdownMenuLabel({
|
|
47
|
-
className,
|
|
48
|
-
inset,
|
|
49
|
-
...props
|
|
50
|
-
}: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
51
|
-
inset?: boolean;
|
|
52
|
-
}): react_jsx_runtime113.JSX.Element;
|
|
53
|
-
declare function DropdownMenuSeparator({
|
|
54
|
-
className,
|
|
55
|
-
...props
|
|
56
|
-
}: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): react_jsx_runtime113.JSX.Element;
|
|
57
|
-
declare function DropdownMenuShortcut({
|
|
58
|
-
className,
|
|
59
|
-
...props
|
|
60
|
-
}: React.ComponentProps<'span'>): react_jsx_runtime113.JSX.Element;
|
|
61
|
-
declare function DropdownMenuSub({
|
|
62
|
-
...props
|
|
63
|
-
}: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): react_jsx_runtime113.JSX.Element;
|
|
64
|
-
declare function DropdownMenuSubTrigger({
|
|
65
|
-
className,
|
|
66
|
-
inset,
|
|
67
|
-
children,
|
|
68
|
-
...props
|
|
69
|
-
}: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
70
|
-
inset?: boolean;
|
|
71
|
-
}): react_jsx_runtime113.JSX.Element;
|
|
72
|
-
declare function DropdownMenuSubContent({
|
|
73
|
-
className,
|
|
74
|
-
...props
|
|
75
|
-
}: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): react_jsx_runtime113.JSX.Element;
|
|
76
|
-
//#endregion
|
|
77
|
-
export { DropdownMenuItem as a, DropdownMenuRadioGroup as c, DropdownMenuShortcut as d, DropdownMenuSub as f, DropdownMenuTrigger as h, DropdownMenuGroup as i, DropdownMenuRadioItem as l, DropdownMenuSubTrigger as m, DropdownMenuCheckboxItem as n, DropdownMenuLabel as o, DropdownMenuSubContent as p, DropdownMenuContent as r, DropdownMenuPortal as s, DropdownMenu as t, DropdownMenuSeparator as u };
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime125 from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
|
|
4
|
-
//#region src/components/ui/file-upload.d.ts
|
|
5
|
-
type Direction = 'ltr' | 'rtl';
|
|
6
|
-
interface FileState {
|
|
7
|
-
file: File;
|
|
8
|
-
progress: number;
|
|
9
|
-
error?: string;
|
|
10
|
-
status: 'idle' | 'uploading' | 'error' | 'success';
|
|
11
|
-
}
|
|
12
|
-
interface StoreState {
|
|
13
|
-
files: Map<File, FileState>;
|
|
14
|
-
dragOver: boolean;
|
|
15
|
-
invalid: boolean;
|
|
16
|
-
}
|
|
17
|
-
declare function useStore<T>(selector: (state: StoreState) => T): T;
|
|
18
|
-
interface FileUploadRootProps extends Omit<React.ComponentProps<'div'>, 'defaultValue' | 'onChange'> {
|
|
19
|
-
value?: File[];
|
|
20
|
-
defaultValue?: File[];
|
|
21
|
-
onValueChange?: (files: File[]) => void;
|
|
22
|
-
onAccept?: (files: File[]) => void;
|
|
23
|
-
onFileAccept?: (file: File) => void;
|
|
24
|
-
onFileReject?: (file: File, message: string) => void;
|
|
25
|
-
onFilesReject?: (files: Array<{
|
|
26
|
-
file: File;
|
|
27
|
-
message: string;
|
|
28
|
-
}>) => void;
|
|
29
|
-
onFileValidate?: (file: File) => string | null | undefined;
|
|
30
|
-
onUpload?: (files: File[], options: {
|
|
31
|
-
onProgress: (file: File, progress: number) => void;
|
|
32
|
-
onSuccess: (file: File) => void;
|
|
33
|
-
onError: (file: File, error: Error) => void;
|
|
34
|
-
}) => Promise<void> | void;
|
|
35
|
-
accept?: string;
|
|
36
|
-
maxFiles?: number;
|
|
37
|
-
maxSize?: number;
|
|
38
|
-
dir?: Direction;
|
|
39
|
-
label?: string;
|
|
40
|
-
name?: string;
|
|
41
|
-
asChild?: boolean;
|
|
42
|
-
disabled?: boolean;
|
|
43
|
-
invalid?: boolean;
|
|
44
|
-
multiple?: boolean;
|
|
45
|
-
required?: boolean;
|
|
46
|
-
}
|
|
47
|
-
declare function FileUploadRoot(props: FileUploadRootProps): react_jsx_runtime125.JSX.Element;
|
|
48
|
-
interface FileUploadDropzoneProps extends React.ComponentProps<'div'> {
|
|
49
|
-
asChild?: boolean;
|
|
50
|
-
}
|
|
51
|
-
declare function FileUploadDropzone(props: FileUploadDropzoneProps): react_jsx_runtime125.JSX.Element;
|
|
52
|
-
interface FileUploadTriggerProps extends React.ComponentProps<'button'> {
|
|
53
|
-
asChild?: boolean;
|
|
54
|
-
}
|
|
55
|
-
declare function FileUploadTrigger(props: FileUploadTriggerProps): react_jsx_runtime125.JSX.Element;
|
|
56
|
-
interface FileUploadListProps extends React.ComponentProps<'div'> {
|
|
57
|
-
orientation?: 'horizontal' | 'vertical';
|
|
58
|
-
asChild?: boolean;
|
|
59
|
-
forceMount?: boolean;
|
|
60
|
-
}
|
|
61
|
-
declare function FileUploadList(props: FileUploadListProps): react_jsx_runtime125.JSX.Element | null;
|
|
62
|
-
interface FileUploadItemProps extends React.ComponentProps<'div'> {
|
|
63
|
-
value: File;
|
|
64
|
-
asChild?: boolean;
|
|
65
|
-
}
|
|
66
|
-
declare function FileUploadItem(props: FileUploadItemProps): react_jsx_runtime125.JSX.Element | null;
|
|
67
|
-
interface FileUploadItemPreviewProps extends React.ComponentProps<'div'> {
|
|
68
|
-
render?: (file: File, fallback: () => React.ReactNode) => React.ReactNode;
|
|
69
|
-
asChild?: boolean;
|
|
70
|
-
}
|
|
71
|
-
declare function FileUploadItemPreview(props: FileUploadItemPreviewProps): react_jsx_runtime125.JSX.Element | null;
|
|
72
|
-
interface FileUploadItemMetadataProps extends React.ComponentProps<'div'> {
|
|
73
|
-
asChild?: boolean;
|
|
74
|
-
size?: 'default' | 'sm';
|
|
75
|
-
}
|
|
76
|
-
declare function FileUploadItemMetadata(props: FileUploadItemMetadataProps): react_jsx_runtime125.JSX.Element | null;
|
|
77
|
-
interface FileUploadItemProgressProps extends React.ComponentProps<'div'> {
|
|
78
|
-
variant?: 'linear' | 'circular' | 'fill';
|
|
79
|
-
size?: number;
|
|
80
|
-
asChild?: boolean;
|
|
81
|
-
forceMount?: boolean;
|
|
82
|
-
}
|
|
83
|
-
declare function FileUploadItemProgress(props: FileUploadItemProgressProps): react_jsx_runtime125.JSX.Element | null;
|
|
84
|
-
interface FileUploadItemDeleteProps extends React.ComponentProps<'button'> {
|
|
85
|
-
asChild?: boolean;
|
|
86
|
-
}
|
|
87
|
-
declare function FileUploadItemDelete(props: FileUploadItemDeleteProps): react_jsx_runtime125.JSX.Element | null;
|
|
88
|
-
interface FileUploadClearProps extends React.ComponentProps<'button'> {
|
|
89
|
-
forceMount?: boolean;
|
|
90
|
-
asChild?: boolean;
|
|
91
|
-
}
|
|
92
|
-
declare function FileUploadClear(props: FileUploadClearProps): react_jsx_runtime125.JSX.Element | null;
|
|
93
|
-
//#endregion
|
|
94
|
-
export { FileUploadItemMetadata as a, FileUploadList as c, FileUploadTrigger as d, useStore as f, FileUploadItemDelete as i, FileUploadRoot as l, FileUploadDropzone as n, FileUploadItemPreview as o, FileUploadItem as r, FileUploadItemProgress as s, FileUploadClear as t, FileUploadRootProps as u };
|