@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
|
@@ -1,25 +1,25 @@
|
|
|
1
|
+
import * as react_jsx_runtime28 from "react/jsx-runtime";
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
3
|
-
import * as react_jsx_runtime60 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ui/dropdown-menu.d.ts
|
|
6
6
|
declare function DropdownMenu({
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<typeof DropdownMenuPrimitive.Root>):
|
|
8
|
+
}: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): react_jsx_runtime28.JSX.Element;
|
|
9
9
|
declare function DropdownMenuPortal({
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>):
|
|
11
|
+
}: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): react_jsx_runtime28.JSX.Element;
|
|
12
12
|
declare function DropdownMenuTrigger({
|
|
13
13
|
...props
|
|
14
|
-
}: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>):
|
|
14
|
+
}: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): react_jsx_runtime28.JSX.Element;
|
|
15
15
|
declare function DropdownMenuContent({
|
|
16
16
|
className,
|
|
17
17
|
sideOffset,
|
|
18
18
|
...props
|
|
19
|
-
}: React.ComponentProps<typeof DropdownMenuPrimitive.Content>):
|
|
19
|
+
}: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): react_jsx_runtime28.JSX.Element;
|
|
20
20
|
declare function DropdownMenuGroup({
|
|
21
21
|
...props
|
|
22
|
-
}: React.ComponentProps<typeof DropdownMenuPrimitive.Group>):
|
|
22
|
+
}: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): react_jsx_runtime28.JSX.Element;
|
|
23
23
|
declare function DropdownMenuItem({
|
|
24
24
|
className,
|
|
25
25
|
inset,
|
|
@@ -28,39 +28,39 @@ declare function DropdownMenuItem({
|
|
|
28
28
|
}: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
29
29
|
inset?: boolean;
|
|
30
30
|
variant?: 'default' | 'destructive';
|
|
31
|
-
}):
|
|
31
|
+
}): react_jsx_runtime28.JSX.Element;
|
|
32
32
|
declare function DropdownMenuCheckboxItem({
|
|
33
33
|
className,
|
|
34
34
|
children,
|
|
35
35
|
checked,
|
|
36
36
|
...props
|
|
37
|
-
}: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>):
|
|
37
|
+
}: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): react_jsx_runtime28.JSX.Element;
|
|
38
38
|
declare function DropdownMenuRadioGroup({
|
|
39
39
|
...props
|
|
40
|
-
}: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>):
|
|
40
|
+
}: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): react_jsx_runtime28.JSX.Element;
|
|
41
41
|
declare function DropdownMenuRadioItem({
|
|
42
42
|
className,
|
|
43
43
|
children,
|
|
44
44
|
...props
|
|
45
|
-
}: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>):
|
|
45
|
+
}: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): react_jsx_runtime28.JSX.Element;
|
|
46
46
|
declare function DropdownMenuLabel({
|
|
47
47
|
className,
|
|
48
48
|
inset,
|
|
49
49
|
...props
|
|
50
50
|
}: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
51
51
|
inset?: boolean;
|
|
52
|
-
}):
|
|
52
|
+
}): react_jsx_runtime28.JSX.Element;
|
|
53
53
|
declare function DropdownMenuSeparator({
|
|
54
54
|
className,
|
|
55
55
|
...props
|
|
56
|
-
}: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>):
|
|
56
|
+
}: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): react_jsx_runtime28.JSX.Element;
|
|
57
57
|
declare function DropdownMenuShortcut({
|
|
58
58
|
className,
|
|
59
59
|
...props
|
|
60
|
-
}: React.ComponentProps<'span'>):
|
|
60
|
+
}: React.ComponentProps<'span'>): react_jsx_runtime28.JSX.Element;
|
|
61
61
|
declare function DropdownMenuSub({
|
|
62
62
|
...props
|
|
63
|
-
}: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>):
|
|
63
|
+
}: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): react_jsx_runtime28.JSX.Element;
|
|
64
64
|
declare function DropdownMenuSubTrigger({
|
|
65
65
|
className,
|
|
66
66
|
inset,
|
|
@@ -68,10 +68,10 @@ declare function DropdownMenuSubTrigger({
|
|
|
68
68
|
...props
|
|
69
69
|
}: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
70
70
|
inset?: boolean;
|
|
71
|
-
}):
|
|
71
|
+
}): react_jsx_runtime28.JSX.Element;
|
|
72
72
|
declare function DropdownMenuSubContent({
|
|
73
73
|
className,
|
|
74
74
|
...props
|
|
75
|
-
}: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>):
|
|
75
|
+
}: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): react_jsx_runtime28.JSX.Element;
|
|
76
76
|
//#endregion
|
|
77
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 };
|
|
@@ -0,0 +1,94 @@
|
|
|
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 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime40 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ui/file-upload.d.ts
|
|
5
5
|
type Direction = 'ltr' | 'rtl';
|
|
@@ -44,51 +44,51 @@ interface FileUploadRootProps extends Omit<React.ComponentProps<'div'>, 'default
|
|
|
44
44
|
multiple?: boolean;
|
|
45
45
|
required?: boolean;
|
|
46
46
|
}
|
|
47
|
-
declare function FileUploadRoot(props: FileUploadRootProps):
|
|
47
|
+
declare function FileUploadRoot(props: FileUploadRootProps): react_jsx_runtime40.JSX.Element;
|
|
48
48
|
interface FileUploadDropzoneProps extends React.ComponentProps<'div'> {
|
|
49
49
|
asChild?: boolean;
|
|
50
50
|
}
|
|
51
|
-
declare function FileUploadDropzone(props: FileUploadDropzoneProps):
|
|
51
|
+
declare function FileUploadDropzone(props: FileUploadDropzoneProps): react_jsx_runtime40.JSX.Element;
|
|
52
52
|
interface FileUploadTriggerProps extends React.ComponentProps<'button'> {
|
|
53
53
|
asChild?: boolean;
|
|
54
54
|
}
|
|
55
|
-
declare function FileUploadTrigger(props: FileUploadTriggerProps):
|
|
55
|
+
declare function FileUploadTrigger(props: FileUploadTriggerProps): react_jsx_runtime40.JSX.Element;
|
|
56
56
|
interface FileUploadListProps extends React.ComponentProps<'div'> {
|
|
57
57
|
orientation?: 'horizontal' | 'vertical';
|
|
58
58
|
asChild?: boolean;
|
|
59
59
|
forceMount?: boolean;
|
|
60
60
|
}
|
|
61
|
-
declare function FileUploadList(props: FileUploadListProps):
|
|
61
|
+
declare function FileUploadList(props: FileUploadListProps): react_jsx_runtime40.JSX.Element | null;
|
|
62
62
|
interface FileUploadItemProps extends React.ComponentProps<'div'> {
|
|
63
63
|
value: File;
|
|
64
64
|
asChild?: boolean;
|
|
65
65
|
}
|
|
66
|
-
declare function FileUploadItem(props: FileUploadItemProps):
|
|
66
|
+
declare function FileUploadItem(props: FileUploadItemProps): react_jsx_runtime40.JSX.Element | null;
|
|
67
67
|
interface FileUploadItemPreviewProps extends React.ComponentProps<'div'> {
|
|
68
68
|
render?: (file: File, fallback: () => React.ReactNode) => React.ReactNode;
|
|
69
69
|
asChild?: boolean;
|
|
70
70
|
}
|
|
71
|
-
declare function FileUploadItemPreview(props: FileUploadItemPreviewProps):
|
|
71
|
+
declare function FileUploadItemPreview(props: FileUploadItemPreviewProps): react_jsx_runtime40.JSX.Element | null;
|
|
72
72
|
interface FileUploadItemMetadataProps extends React.ComponentProps<'div'> {
|
|
73
73
|
asChild?: boolean;
|
|
74
74
|
size?: 'default' | 'sm';
|
|
75
75
|
}
|
|
76
|
-
declare function FileUploadItemMetadata(props: FileUploadItemMetadataProps):
|
|
76
|
+
declare function FileUploadItemMetadata(props: FileUploadItemMetadataProps): react_jsx_runtime40.JSX.Element | null;
|
|
77
77
|
interface FileUploadItemProgressProps extends React.ComponentProps<'div'> {
|
|
78
78
|
variant?: 'linear' | 'circular' | 'fill';
|
|
79
79
|
size?: number;
|
|
80
80
|
asChild?: boolean;
|
|
81
81
|
forceMount?: boolean;
|
|
82
82
|
}
|
|
83
|
-
declare function FileUploadItemProgress(props: FileUploadItemProgressProps):
|
|
83
|
+
declare function FileUploadItemProgress(props: FileUploadItemProgressProps): react_jsx_runtime40.JSX.Element | null;
|
|
84
84
|
interface FileUploadItemDeleteProps extends React.ComponentProps<'button'> {
|
|
85
85
|
asChild?: boolean;
|
|
86
86
|
}
|
|
87
|
-
declare function FileUploadItemDelete(props: FileUploadItemDeleteProps):
|
|
87
|
+
declare function FileUploadItemDelete(props: FileUploadItemDeleteProps): react_jsx_runtime40.JSX.Element | null;
|
|
88
88
|
interface FileUploadClearProps extends React.ComponentProps<'button'> {
|
|
89
89
|
forceMount?: boolean;
|
|
90
90
|
asChild?: boolean;
|
|
91
91
|
}
|
|
92
|
-
declare function FileUploadClear(props: FileUploadClearProps):
|
|
92
|
+
declare function FileUploadClear(props: FileUploadClearProps): react_jsx_runtime40.JSX.Element | null;
|
|
93
93
|
//#endregion
|
|
94
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 };
|