kuzenbo 0.0.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/LICENSE +21 -0
- package/README.md +185 -0
- package/dist/accordion-trigger-D5XnBMS6.d.ts +24 -0
- package/dist/accordion-trigger-TjAe8JHy.js +53 -0
- package/dist/alert-dialog-trigger-BV0BsaVU.d.ts +638 -0
- package/dist/alert-dialog-trigger-D5BRoizR.js +98 -0
- package/dist/alert-title-CISzcj0X.js +28 -0
- package/dist/alert-title-CVC9G-Xf.d.ts +22 -0
- package/dist/announcement-title-CCZuGB1O.d.ts +18 -0
- package/dist/announcement-title-CIwzt9Wl.js +18 -0
- package/dist/autocomplete-value-BhyszIrf.d.ts +111 -0
- package/dist/autocomplete-value-DNJ3sAIH.js +141 -0
- package/dist/avatar-image-BKgKyzVw.d.ts +35 -0
- package/dist/avatar-image-Bw3G-Bl6.js +45 -0
- package/dist/breadcrumb-separator-D66-B1DA.d.ts +44 -0
- package/dist/breadcrumb-separator-Do-19Uow.js +74 -0
- package/dist/button-group-text-D98w78rH.js +25 -0
- package/dist/calendar-week-number-6AXvZ4Ij.js +72 -0
- package/dist/calendar-week-number-in2gpvA_.d.ts +36 -0
- package/dist/card-title-CbRPAh3M.js +52 -0
- package/dist/card-title-DSDluDoy.d.ts +40 -0
- package/dist/carousel-previous-B_jysGv_.js +89 -0
- package/dist/chart-tooltip-content-h5oLtil-.js +144 -0
- package/dist/collapsible-trigger-DcQWODN-.js +20 -0
- package/dist/collapsible-trigger-aZF7_mPR.d.ts +15 -0
- package/dist/command-shortcut-DoWM7Mnm.js +97 -0
- package/dist/context-menu-trigger-CYBhdcpg.js +147 -0
- package/dist/context-menu-trigger-Du2vcTco.d.ts +103 -0
- package/dist/dialog-trigger-CR23tYql.js +97 -0
- package/dist/dialog-trigger-xeE4e96-.d.ts +74 -0
- package/dist/drawer-trigger-7jI4Zmqs.js +79 -0
- package/dist/drawer-trigger-H_Wv5R00.d.ts +67 -0
- package/dist/dropdown-menu-trigger-CFdruqOk.d.ts +108 -0
- package/dist/dropdown-menu-trigger-IKeAoU_a.js +152 -0
- package/dist/dropzone-context-BRX1K7nw.d.ts +45 -0
- package/dist/dropzone-status-CW-3AXuh.js +33 -0
- package/dist/emoji-picker-skin-tone-selector-Cmv-1vDO.js +117 -0
- package/dist/emoji-picker-skin-tone-selector-yMYxt4oJ.d.ts +67 -0
- package/dist/empty-title-CH3DhcfT.d.ts +53 -0
- package/dist/empty-title-CHNBH7WJ.js +53 -0
- package/dist/form-field-title-CNrq8v88.js +101 -0
- package/dist/hooks/use-isomorphic-effect.d.ts +7 -0
- package/dist/hooks/use-isomorphic-effect.js +7 -0
- package/dist/hooks/use-mobile.d.ts +4 -0
- package/dist/hooks/use-mobile.js +20 -0
- package/dist/hover-card-trigger-B9jf3FEB.js +31 -0
- package/dist/hover-card-trigger-BqVoZ7h4.d.ts +20 -0
- package/dist/index.d.ts +122 -0
- package/dist/index.js +130 -0
- package/dist/input-group-textarea-voYOV11-.js +79 -0
- package/dist/input-otp-slot-DWbXhUmU.js +45 -0
- package/dist/input-otp-slot-eVdOjx8C.d.ts +24 -0
- package/dist/item-title-BYrYJZpa.js +89 -0
- package/dist/kbd-group-CT-Xtgug.js +12 -0
- package/dist/kbd-group-D3yVrb2D.d.ts +10 -0
- package/dist/marquee-item-BGJ5NSiz.js +29 -0
- package/dist/marquee-item-DD6JuLJ4.d.ts +32 -0
- package/dist/menubar-trigger-BLg3XdRv.d.ts +104 -0
- package/dist/menubar-trigger-aKMWAxdz.js +146 -0
- package/dist/meter-value-BmxUICOA.js +37 -0
- package/dist/meter-value-DYkZLCtx.d.ts +30 -0
- package/dist/navigation-menu-trigger-Bf60DnIz.d.ts +53 -0
- package/dist/navigation-menu-trigger-D80wiliM.js +82 -0
- package/dist/number-field-scrub-area-CXSyafBE.js +80 -0
- package/dist/optional-portal-C7TpYnOc.js +15 -0
- package/dist/pagination-previous-DPZrRgiD.js +88 -0
- package/dist/pagination-previous-qJeZZTou.d.ts +45 -0
- package/dist/pill-status-CD9XXuE7.js +74 -0
- package/dist/pill-status-rg-3AMSI.d.ts +77 -0
- package/dist/popover-trigger-B9PVErig.d.ts +39 -0
- package/dist/popover-trigger-C8dP_u7N.js +52 -0
- package/dist/progress-value-CFlgP0nv.d.ts +28 -0
- package/dist/progress-value-CfCodKnX.js +37 -0
- package/dist/radio-group-item-09fw05Va.d.ts +10 -0
- package/dist/radio-group-item-CQjCazjw.js +24 -0
- package/dist/rating-star-6ov3lbpn.d.ts +57 -0
- package/dist/rating-star-BuLQfAnZ.js +110 -0
- package/dist/resizable-panel-B4lAr8Vb.d.ts +19 -0
- package/dist/resizable-panel-BO97wcPj.js +21 -0
- package/dist/scroll-bar-BQzpb5hF.js +19 -0
- package/dist/scroll-bar-vYvxEOph.d.ts +11 -0
- package/dist/select-value-BUnWentK.js +117 -0
- package/dist/select-value-DG31IHy3.d.ts +70 -0
- package/dist/sheet-trigger-CLgKANrf.d.ts +64 -0
- package/dist/sheet-trigger-CUU7xwUn.js +95 -0
- package/dist/sidebar-trigger-BCjVuIqi.js +366 -0
- package/dist/styles.css +145 -0
- package/dist/table-row-BxhKJPfE.d.ts +46 -0
- package/dist/table-row-D63xalkM.js +60 -0
- package/dist/tabs-trigger-B2mBxFgq.js +38 -0
- package/dist/tabs-trigger-BGo2XGvh.d.ts +41 -0
- package/dist/timeline-title-BH8JxX2n.js +389 -0
- package/dist/toggle-group-item-Bz_ohmnY.d.ts +53 -0
- package/dist/toggle-group-item-aggwtgam.js +34 -0
- package/dist/toolbar-separator-7CgKz2aX.d.ts +40 -0
- package/dist/toolbar-separator-Bre5OtBI.js +41 -0
- package/dist/tooltip-trigger-CrAGfaqr.d.ts +27 -0
- package/dist/tooltip-trigger-Z-aPDRog.js +37 -0
- package/dist/ui/accordion.d.ts +27 -0
- package/dist/ui/accordion.js +17 -0
- package/dist/ui/affix.d.ts +49 -0
- package/dist/ui/affix.js +57 -0
- package/dist/ui/alert-dialog.d.ts +123 -0
- package/dist/ui/alert-dialog.js +23 -0
- package/dist/ui/alert.d.ts +58 -0
- package/dist/ui/alert.js +59 -0
- package/dist/ui/announcement.d.ts +27 -0
- package/dist/ui/announcement.js +16 -0
- package/dist/ui/aspect-ratio.d.ts +13 -0
- package/dist/ui/aspect-ratio.js +13 -0
- package/dist/ui/autocomplete.d.ts +67 -0
- package/dist/ui/autocomplete.js +30 -0
- package/dist/ui/avatar.d.ts +37 -0
- package/dist/ui/avatar.js +22 -0
- package/dist/ui/badge.d.ts +54 -0
- package/dist/ui/badge.js +33 -0
- package/dist/ui/breadcrumb.d.ts +41 -0
- package/dist/ui/breadcrumb.js +20 -0
- package/dist/ui/button-group.d.ts +94 -0
- package/dist/ui/button-group.js +24 -0
- package/dist/ui/button.d.ts +91 -0
- package/dist/ui/button.js +64 -0
- package/dist/ui/calendar.d.ts +52 -0
- package/dist/ui/calendar.js +64 -0
- package/dist/ui/card.d.ts +40 -0
- package/dist/ui/card.js +20 -0
- package/dist/ui/carousel.d.ts +100 -0
- package/dist/ui/carousel.js +76 -0
- package/dist/ui/chart.d.ts +61 -0
- package/dist/ui/chart.js +34 -0
- package/dist/ui/checkbox-group.d.ts +12 -0
- package/dist/ui/checkbox-group.js +13 -0
- package/dist/ui/checkbox.d.ts +12 -0
- package/dist/ui/checkbox.js +27 -0
- package/dist/ui/collapsible.d.ts +19 -0
- package/dist/ui/collapsible.js +16 -0
- package/dist/ui/combobox.d.ts +95 -0
- package/dist/ui/combobox.js +31 -0
- package/dist/ui/command.d.ts +146 -0
- package/dist/ui/command.js +24 -0
- package/dist/ui/context-menu.d.ts +83 -0
- package/dist/ui/context-menu.js +26 -0
- package/dist/ui/country-flag.d.ts +18 -0
- package/dist/ui/country-flag.js +36 -0
- package/dist/ui/dialog.d.ts +53 -0
- package/dist/ui/dialog.js +23 -0
- package/dist/ui/drawer.d.ts +52 -0
- package/dist/ui/drawer.js +24 -0
- package/dist/ui/dropdown-menu.d.ts +88 -0
- package/dist/ui/dropdown-menu.js +26 -0
- package/dist/ui/dropzone.d.ts +233 -0
- package/dist/ui/dropzone.js +180 -0
- package/dist/ui/emoji-picker.d.ts +46 -0
- package/dist/ui/emoji-picker.js +23 -0
- package/dist/ui/empty.d.ts +50 -0
- package/dist/ui/empty.js +18 -0
- package/dist/ui/form-field.d.ts +134 -0
- package/dist/ui/form-field.js +33 -0
- package/dist/ui/google-logo.d.ts +13 -0
- package/dist/ui/google-logo.js +36 -0
- package/dist/ui/hover-card.d.ts +24 -0
- package/dist/ui/hover-card.js +16 -0
- package/dist/ui/input-group.d.ts +141 -0
- package/dist/ui/input-group.js +21 -0
- package/dist/ui/input-otp.d.ts +31 -0
- package/dist/ui/input-otp.js +19 -0
- package/dist/ui/input.d.ts +12 -0
- package/dist/ui/input.js +14 -0
- package/dist/ui/item.d.ts +158 -0
- package/dist/ui/item.js +50 -0
- package/dist/ui/kbd.d.ts +18 -0
- package/dist/ui/kbd.js +14 -0
- package/dist/ui/label.d.ts +12 -0
- package/dist/ui/label.js +15 -0
- package/dist/ui/marquee.d.ts +30 -0
- package/dist/ui/marquee.js +17 -0
- package/dist/ui/menubar.d.ts +228 -0
- package/dist/ui/menubar.js +29 -0
- package/dist/ui/meter.d.ts +29 -0
- package/dist/ui/meter.js +19 -0
- package/dist/ui/navigation-menu.d.ts +12 -0
- package/dist/ui/navigation-menu.js +15 -0
- package/dist/ui/number-field.d.ts +41 -0
- package/dist/ui/number-field.js +33 -0
- package/dist/ui/pagination.d.ts +38 -0
- package/dist/ui/pagination.js +20 -0
- package/dist/ui/pill.d.ts +49 -0
- package/dist/ui/pill.js +21 -0
- package/dist/ui/popover.d.ts +37 -0
- package/dist/ui/popover.js +19 -0
- package/dist/ui/portal.d.ts +29 -0
- package/dist/ui/portal.js +52 -0
- package/dist/ui/progress.d.ts +31 -0
- package/dist/ui/progress.js +22 -0
- package/dist/ui/qr-code.d.ts +20 -0
- package/dist/ui/qr-code.js +78 -0
- package/dist/ui/radio-group.d.ts +18 -0
- package/dist/ui/radio-group.js +15 -0
- package/dist/ui/rating.d.ts +80 -0
- package/dist/ui/rating.js +59 -0
- package/dist/ui/resizable.d.ts +25 -0
- package/dist/ui/resizable.js +18 -0
- package/dist/ui/scroll-area.d.ts +19 -0
- package/dist/ui/scroll-area.js +24 -0
- package/dist/ui/select.d.ts +65 -0
- package/dist/ui/select.js +23 -0
- package/dist/ui/separator.d.ts +12 -0
- package/dist/ui/separator.js +14 -0
- package/dist/ui/sheet.d.ts +54 -0
- package/dist/ui/sheet.js +23 -0
- package/dist/ui/sidebar.d.ts +247 -0
- package/dist/ui/sidebar.js +83 -0
- package/dist/ui/skeleton.d.ts +11 -0
- package/dist/ui/skeleton.js +12 -0
- package/dist/ui/slider.d.ts +15 -0
- package/dist/ui/slider.js +47 -0
- package/dist/ui/spacer.d.ts +18 -0
- package/dist/ui/spacer.js +25 -0
- package/dist/ui/spinner.d.ts +12 -0
- package/dist/ui/spinner.js +17 -0
- package/dist/ui/surface.d.ts +41 -0
- package/dist/ui/surface.js +31 -0
- package/dist/ui/switch.d.ts +14 -0
- package/dist/ui/switch.js +20 -0
- package/dist/ui/table.d.ts +41 -0
- package/dist/ui/table.js +34 -0
- package/dist/ui/tabs.d.ts +43 -0
- package/dist/ui/tabs.js +20 -0
- package/dist/ui/textarea.d.ts +13 -0
- package/dist/ui/textarea.js +14 -0
- package/dist/ui/theme-icon.d.ts +77 -0
- package/dist/ui/theme-icon.js +56 -0
- package/dist/ui/timeline.d.ts +96 -0
- package/dist/ui/timeline.js +88 -0
- package/dist/ui/toast.d.ts +50 -0
- package/dist/ui/toast.js +23 -0
- package/dist/ui/toggle-group.d.ts +31 -0
- package/dist/ui/toggle-group.js +31 -0
- package/dist/ui/toggle.d.ts +46 -0
- package/dist/ui/toggle.js +34 -0
- package/dist/ui/toolbar.d.ts +33 -0
- package/dist/ui/toolbar.js +19 -0
- package/dist/ui/tooltip.d.ts +29 -0
- package/dist/ui/tooltip.js +17 -0
- package/dist/ui/video-player.d.ts +48 -0
- package/dist/ui/video-player.js +37 -0
- package/dist/use-chart-BRpzPrMJ.d.ts +77 -0
- package/dist/use-combobox-anchor-2KUf_cBk.js +198 -0
- package/dist/use-combobox-anchor-ByuqnpKH.d.ts +120 -0
- package/dist/use-number-field-Dzl9JLNK.d.ts +55 -0
- package/dist/use-timeline-BRlmxoQ7.d.ts +81 -0
- package/dist/use-toast-BGG4leSx.d.ts +118 -0
- package/dist/use-toast-DjRKuQG6.js +129 -0
- package/dist/video-player-volume-range-D971L6mz.d.ts +65 -0
- package/dist/video-player-volume-range-V7x0b1-r.js +66 -0
- package/package.json +128 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { a as ContextMenuShortcut, c as ContextMenuRadioGroup, d as ContextMenuItem, f as ContextMenuGroup, i as ContextMenuSub, l as ContextMenuPortal, m as ContextMenuCheckboxItem, n as ContextMenuSubTrigger, o as ContextMenuSeparator, p as ContextMenuContent, r as ContextMenuSubContent, s as ContextMenuRadioItem, t as ContextMenuTrigger, u as ContextMenuLabel } from "../context-menu-trigger-Du2vcTco.js";
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import * as react from "react";
|
|
4
|
+
import { ContextMenu as ContextMenu$1 } from "@base-ui/react/context-menu";
|
|
5
|
+
|
|
6
|
+
//#region src/components/context-menu/context-menu.d.ts
|
|
7
|
+
declare const ContextMenu: {
|
|
8
|
+
({
|
|
9
|
+
...props
|
|
10
|
+
}: ContextMenu$1.Root.Props): react_jsx_runtime0.JSX.Element;
|
|
11
|
+
CheckboxItem: ({
|
|
12
|
+
className,
|
|
13
|
+
children,
|
|
14
|
+
checked,
|
|
15
|
+
...props
|
|
16
|
+
}: ContextMenu$1.CheckboxItem.Props) => react_jsx_runtime0.JSX.Element;
|
|
17
|
+
Content: ({
|
|
18
|
+
className,
|
|
19
|
+
align,
|
|
20
|
+
alignOffset,
|
|
21
|
+
side,
|
|
22
|
+
sideOffset,
|
|
23
|
+
...props
|
|
24
|
+
}: ContextMenu$1.Popup.Props & Pick<ContextMenu$1.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">) => react_jsx_runtime0.JSX.Element;
|
|
25
|
+
Group: ({
|
|
26
|
+
...props
|
|
27
|
+
}: ContextMenu$1.Group.Props) => react_jsx_runtime0.JSX.Element;
|
|
28
|
+
Item: ({
|
|
29
|
+
className,
|
|
30
|
+
inset,
|
|
31
|
+
variant,
|
|
32
|
+
...props
|
|
33
|
+
}: ContextMenu$1.Item.Props & {
|
|
34
|
+
inset?: boolean;
|
|
35
|
+
variant?: "default" | "destructive";
|
|
36
|
+
}) => react_jsx_runtime0.JSX.Element;
|
|
37
|
+
Label: ({
|
|
38
|
+
className,
|
|
39
|
+
inset,
|
|
40
|
+
...props
|
|
41
|
+
}: ContextMenu$1.GroupLabel.Props & {
|
|
42
|
+
inset?: boolean;
|
|
43
|
+
}) => react_jsx_runtime0.JSX.Element;
|
|
44
|
+
Portal: ({
|
|
45
|
+
...props
|
|
46
|
+
}: ContextMenu$1.Portal.Props) => react_jsx_runtime0.JSX.Element;
|
|
47
|
+
RadioGroup: ({
|
|
48
|
+
...props
|
|
49
|
+
}: ContextMenu$1.RadioGroup.Props) => react_jsx_runtime0.JSX.Element;
|
|
50
|
+
RadioItem: ({
|
|
51
|
+
className,
|
|
52
|
+
children,
|
|
53
|
+
...props
|
|
54
|
+
}: ContextMenu$1.RadioItem.Props) => react_jsx_runtime0.JSX.Element;
|
|
55
|
+
Separator: ({
|
|
56
|
+
className,
|
|
57
|
+
...props
|
|
58
|
+
}: ContextMenu$1.Separator.Props) => react_jsx_runtime0.JSX.Element;
|
|
59
|
+
Shortcut: ({
|
|
60
|
+
className,
|
|
61
|
+
...props
|
|
62
|
+
}: react.ComponentProps<"span">) => react_jsx_runtime0.JSX.Element;
|
|
63
|
+
Sub: ({
|
|
64
|
+
...props
|
|
65
|
+
}: ContextMenu$1.SubmenuRoot.Props) => react_jsx_runtime0.JSX.Element;
|
|
66
|
+
SubContent: ({
|
|
67
|
+
...props
|
|
68
|
+
}: react.ComponentProps<typeof ContextMenuContent>) => react_jsx_runtime0.JSX.Element;
|
|
69
|
+
SubTrigger: ({
|
|
70
|
+
className,
|
|
71
|
+
inset,
|
|
72
|
+
children,
|
|
73
|
+
...props
|
|
74
|
+
}: ContextMenu$1.SubmenuTrigger.Props & {
|
|
75
|
+
inset?: boolean;
|
|
76
|
+
}) => react_jsx_runtime0.JSX.Element;
|
|
77
|
+
Trigger: ({
|
|
78
|
+
className,
|
|
79
|
+
...props
|
|
80
|
+
}: ContextMenu$1.Trigger.Props) => react_jsx_runtime0.JSX.Element;
|
|
81
|
+
};
|
|
82
|
+
//#endregion
|
|
83
|
+
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { a as ContextMenuShortcut, c as ContextMenuRadioGroup, d as ContextMenuItem, f as ContextMenuGroup, i as ContextMenuSub, l as ContextMenuPortal, m as ContextMenuCheckboxItem, n as ContextMenuSubTrigger, o as ContextMenuSeparator, p as ContextMenuContent, r as ContextMenuSubContent, s as ContextMenuRadioItem, t as ContextMenuTrigger, u as ContextMenuLabel } from "../context-menu-trigger-CYBhdcpg.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { ContextMenu as ContextMenu$1 } from "@base-ui/react/context-menu";
|
|
4
|
+
|
|
5
|
+
//#region src/components/context-menu/context-menu.tsx
|
|
6
|
+
const ContextMenu = ({ ...props }) => /* @__PURE__ */ jsx(ContextMenu$1.Root, {
|
|
7
|
+
"data-slot": "context-menu",
|
|
8
|
+
...props
|
|
9
|
+
});
|
|
10
|
+
ContextMenu.CheckboxItem = ContextMenuCheckboxItem;
|
|
11
|
+
ContextMenu.Content = ContextMenuContent;
|
|
12
|
+
ContextMenu.Group = ContextMenuGroup;
|
|
13
|
+
ContextMenu.Item = ContextMenuItem;
|
|
14
|
+
ContextMenu.Label = ContextMenuLabel;
|
|
15
|
+
ContextMenu.Portal = ContextMenuPortal;
|
|
16
|
+
ContextMenu.RadioGroup = ContextMenuRadioGroup;
|
|
17
|
+
ContextMenu.RadioItem = ContextMenuRadioItem;
|
|
18
|
+
ContextMenu.Separator = ContextMenuSeparator;
|
|
19
|
+
ContextMenu.Shortcut = ContextMenuShortcut;
|
|
20
|
+
ContextMenu.Sub = ContextMenuSub;
|
|
21
|
+
ContextMenu.SubContent = ContextMenuSubContent;
|
|
22
|
+
ContextMenu.SubTrigger = ContextMenuSubTrigger;
|
|
23
|
+
ContextMenu.Trigger = ContextMenuTrigger;
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/country-flag/country-flag.d.ts
|
|
4
|
+
type CountryCode = "US" | "CZ" | "ES" | "FR" | "DE" | "IT" | "PL" | "PT";
|
|
5
|
+
interface CountryFlagProps {
|
|
6
|
+
code: CountryCode;
|
|
7
|
+
className?: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
size?: "sm" | "md" | "lg";
|
|
10
|
+
}
|
|
11
|
+
declare const CountryFlag: ({
|
|
12
|
+
code,
|
|
13
|
+
className,
|
|
14
|
+
title,
|
|
15
|
+
size
|
|
16
|
+
}: CountryFlagProps) => react_jsx_runtime0.JSX.Element | null;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { CountryCode, CountryFlag, type CountryFlagProps };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { cn } from "tailwind-variants";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { CZ, DE, ES, FR, IT, PL, PT, US } from "country-flag-icons/react/3x2";
|
|
6
|
+
|
|
7
|
+
//#region src/components/country-flag/country-flag.tsx
|
|
8
|
+
const FLAG_COMPONENTS = {
|
|
9
|
+
US,
|
|
10
|
+
CZ,
|
|
11
|
+
ES,
|
|
12
|
+
FR,
|
|
13
|
+
DE,
|
|
14
|
+
IT,
|
|
15
|
+
PL,
|
|
16
|
+
PT
|
|
17
|
+
};
|
|
18
|
+
const SIZE_CLASSES = {
|
|
19
|
+
sm: "h-3 w-4",
|
|
20
|
+
md: "h-4 w-5",
|
|
21
|
+
lg: "h-6 w-8"
|
|
22
|
+
};
|
|
23
|
+
const CountryFlag = ({ code, className, title, size = "md" }) => {
|
|
24
|
+
const FlagComponent = FLAG_COMPONENTS[code];
|
|
25
|
+
if (!FlagComponent) {
|
|
26
|
+
console.warn(`CountryFlag: Unsupported country code "${code}"`);
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return /* @__PURE__ */ jsx(FlagComponent, {
|
|
30
|
+
className: cn(SIZE_CLASSES[size], "rounded-xs", className),
|
|
31
|
+
title
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
export { CountryFlag };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { _ as DialogClose, a as DialogPortal, c as DialogOverlayProps, d as DialogFooter, f as DialogFooterProps, g as DialogContentProps, h as DialogContent, i as DialogTitleProps, l as DialogHeader, m as DialogDescriptionProps, n as DialogTriggerProps, o as DialogPortalProps, p as DialogDescription, r as DialogTitle, s as DialogOverlay, t as DialogTrigger, u as DialogHeaderProps, v as DialogCloseProps } from "../dialog-trigger-xeE4e96-.js";
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import { Dialog as Dialog$1 } from "@base-ui/react/dialog";
|
|
4
|
+
|
|
5
|
+
//#region src/components/dialog/dialog.d.ts
|
|
6
|
+
interface DialogProps extends Dialog$1.Root.Props {
|
|
7
|
+
onOpenChange?: (open: boolean) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const Dialog: {
|
|
10
|
+
({
|
|
11
|
+
...props
|
|
12
|
+
}: DialogProps): react_jsx_runtime0.JSX.Element;
|
|
13
|
+
Close: ({
|
|
14
|
+
...props
|
|
15
|
+
}: DialogCloseProps) => react_jsx_runtime0.JSX.Element;
|
|
16
|
+
Content: ({
|
|
17
|
+
className,
|
|
18
|
+
children,
|
|
19
|
+
showCloseButton,
|
|
20
|
+
...props
|
|
21
|
+
}: DialogContentProps) => react_jsx_runtime0.JSX.Element;
|
|
22
|
+
Description: ({
|
|
23
|
+
className,
|
|
24
|
+
...props
|
|
25
|
+
}: DialogDescriptionProps) => react_jsx_runtime0.JSX.Element;
|
|
26
|
+
Footer: ({
|
|
27
|
+
className,
|
|
28
|
+
showCloseButton,
|
|
29
|
+
children,
|
|
30
|
+
...props
|
|
31
|
+
}: DialogFooterProps) => react_jsx_runtime0.JSX.Element;
|
|
32
|
+
Header: ({
|
|
33
|
+
className,
|
|
34
|
+
...props
|
|
35
|
+
}: DialogHeaderProps) => react_jsx_runtime0.JSX.Element;
|
|
36
|
+
Overlay: ({
|
|
37
|
+
className,
|
|
38
|
+
...props
|
|
39
|
+
}: DialogOverlayProps) => react_jsx_runtime0.JSX.Element;
|
|
40
|
+
Portal: ({
|
|
41
|
+
...props
|
|
42
|
+
}: DialogPortalProps) => react_jsx_runtime0.JSX.Element;
|
|
43
|
+
Title: ({
|
|
44
|
+
className,
|
|
45
|
+
...props
|
|
46
|
+
}: DialogTitleProps) => react_jsx_runtime0.JSX.Element;
|
|
47
|
+
Trigger: ({
|
|
48
|
+
className,
|
|
49
|
+
...props
|
|
50
|
+
}: DialogTriggerProps) => react_jsx_runtime0.JSX.Element;
|
|
51
|
+
};
|
|
52
|
+
//#endregion
|
|
53
|
+
export { Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogOverlay, type DialogOverlayProps, DialogPortal, type DialogPortalProps, DialogProps, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { a as DialogDescription, c as DialogOverlay, i as DialogFooter, l as DialogClose, n as DialogTitle, o as DialogContent, r as DialogHeader, s as DialogPortal, t as DialogTrigger } from "../dialog-trigger-CR23tYql.js";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { Dialog as Dialog$1 } from "@base-ui/react/dialog";
|
|
6
|
+
|
|
7
|
+
//#region src/components/dialog/dialog.tsx
|
|
8
|
+
const Dialog = ({ ...props }) => /* @__PURE__ */ jsx(Dialog$1.Root, {
|
|
9
|
+
"data-slot": "dialog",
|
|
10
|
+
...props
|
|
11
|
+
});
|
|
12
|
+
Dialog.Close = DialogClose;
|
|
13
|
+
Dialog.Content = DialogContent;
|
|
14
|
+
Dialog.Description = DialogDescription;
|
|
15
|
+
Dialog.Footer = DialogFooter;
|
|
16
|
+
Dialog.Header = DialogHeader;
|
|
17
|
+
Dialog.Overlay = DialogOverlay;
|
|
18
|
+
Dialog.Portal = DialogPortal;
|
|
19
|
+
Dialog.Title = DialogTitle;
|
|
20
|
+
Dialog.Trigger = DialogTrigger;
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { _ as DrawerClose, a as DrawerPortal, c as DrawerOverlayProps, d as DrawerFooter, f as DrawerFooterProps, g as DrawerContentProps, h as DrawerContent, i as DrawerTitleProps, l as DrawerHeader, m as DrawerDescriptionProps, n as DrawerTriggerProps, o as DrawerPortalProps, p as DrawerDescription, r as DrawerTitle, s as DrawerOverlay, t as DrawerTrigger, u as DrawerHeaderProps, v as DrawerCloseProps } from "../drawer-trigger-H_Wv5R00.js";
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import { ComponentProps } from "react";
|
|
4
|
+
import { Drawer as Drawer$1 } from "vaul";
|
|
5
|
+
|
|
6
|
+
//#region src/components/drawer/drawer.d.ts
|
|
7
|
+
type DrawerProps = ComponentProps<typeof Drawer$1.Root> & {
|
|
8
|
+
onOpenChange: (open: boolean) => void;
|
|
9
|
+
};
|
|
10
|
+
declare const Drawer: {
|
|
11
|
+
({
|
|
12
|
+
children,
|
|
13
|
+
...props
|
|
14
|
+
}: DrawerProps): react_jsx_runtime0.JSX.Element;
|
|
15
|
+
Close: ({
|
|
16
|
+
...props
|
|
17
|
+
}: DrawerCloseProps) => react_jsx_runtime0.JSX.Element;
|
|
18
|
+
Content: ({
|
|
19
|
+
className,
|
|
20
|
+
children,
|
|
21
|
+
...props
|
|
22
|
+
}: DrawerContentProps) => react_jsx_runtime0.JSX.Element;
|
|
23
|
+
Description: ({
|
|
24
|
+
className,
|
|
25
|
+
...props
|
|
26
|
+
}: DrawerDescriptionProps) => react_jsx_runtime0.JSX.Element;
|
|
27
|
+
Footer: ({
|
|
28
|
+
className,
|
|
29
|
+
...props
|
|
30
|
+
}: DrawerFooterProps) => react_jsx_runtime0.JSX.Element;
|
|
31
|
+
Header: ({
|
|
32
|
+
className,
|
|
33
|
+
...props
|
|
34
|
+
}: DrawerHeaderProps) => react_jsx_runtime0.JSX.Element;
|
|
35
|
+
Overlay: ({
|
|
36
|
+
className,
|
|
37
|
+
...props
|
|
38
|
+
}: DrawerOverlayProps) => react_jsx_runtime0.JSX.Element;
|
|
39
|
+
Portal: ({
|
|
40
|
+
...props
|
|
41
|
+
}: DrawerPortalProps) => react_jsx_runtime0.JSX.Element;
|
|
42
|
+
Title: ({
|
|
43
|
+
className,
|
|
44
|
+
...props
|
|
45
|
+
}: DrawerTitleProps) => react_jsx_runtime0.JSX.Element;
|
|
46
|
+
Trigger: ({
|
|
47
|
+
className,
|
|
48
|
+
...props
|
|
49
|
+
}: DrawerTriggerProps) => react_jsx_runtime0.JSX.Element;
|
|
50
|
+
};
|
|
51
|
+
//#endregion
|
|
52
|
+
export { Drawer, DrawerClose, type DrawerCloseProps, DrawerContent, type DrawerContentProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, DrawerOverlay, type DrawerOverlayProps, DrawerPortal, type DrawerPortalProps, DrawerProps, DrawerTitle, type DrawerTitleProps, DrawerTrigger, type DrawerTriggerProps };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { a as DrawerDescription, c as DrawerOverlay, i as DrawerFooter, l as DrawerClose, n as DrawerTitle, o as DrawerContent, r as DrawerHeader, s as DrawerPortal, t as DrawerTrigger } from "../drawer-trigger-7jI4Zmqs.js";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { Drawer as Drawer$1 } from "vaul";
|
|
6
|
+
|
|
7
|
+
//#region src/components/drawer/drawer.tsx
|
|
8
|
+
const Drawer = ({ children, ...props }) => /* @__PURE__ */ jsx(Drawer$1.Root, {
|
|
9
|
+
"data-slot": "drawer",
|
|
10
|
+
...props,
|
|
11
|
+
children
|
|
12
|
+
});
|
|
13
|
+
Drawer.Close = DrawerClose;
|
|
14
|
+
Drawer.Content = DrawerContent;
|
|
15
|
+
Drawer.Description = DrawerDescription;
|
|
16
|
+
Drawer.Footer = DrawerFooter;
|
|
17
|
+
Drawer.Header = DrawerHeader;
|
|
18
|
+
Drawer.Overlay = DrawerOverlay;
|
|
19
|
+
Drawer.Portal = DrawerPortal;
|
|
20
|
+
Drawer.Title = DrawerTitle;
|
|
21
|
+
Drawer.Trigger = DrawerTrigger;
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { a as DropdownMenuShortcut, c as DropdownMenuRadioGroup, d as DropdownMenuItem, f as DropdownMenuGroup, i as DropdownMenuSub, l as DropdownMenuPortal, m as DropdownMenuCheckboxItem, n as DropdownMenuSubTrigger, o as DropdownMenuSeparator, p as DropdownMenuContent, r as DropdownMenuSubContent, s as DropdownMenuRadioItem, t as DropdownMenuTrigger, u as DropdownMenuLabel } from "../dropdown-menu-trigger-CFdruqOk.js";
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import * as react from "react";
|
|
4
|
+
import { Menu } from "@base-ui/react/menu";
|
|
5
|
+
|
|
6
|
+
//#region src/components/dropdown-menu/dropdown-menu.d.ts
|
|
7
|
+
declare const DropdownMenu: {
|
|
8
|
+
({
|
|
9
|
+
...props
|
|
10
|
+
}: Menu.Root.Props): react_jsx_runtime0.JSX.Element;
|
|
11
|
+
CheckboxItem: ({
|
|
12
|
+
className,
|
|
13
|
+
children,
|
|
14
|
+
checked,
|
|
15
|
+
...props
|
|
16
|
+
}: Menu.CheckboxItem.Props) => react_jsx_runtime0.JSX.Element;
|
|
17
|
+
Content: ({
|
|
18
|
+
align,
|
|
19
|
+
alignOffset,
|
|
20
|
+
side,
|
|
21
|
+
sideOffset,
|
|
22
|
+
className,
|
|
23
|
+
...props
|
|
24
|
+
}: Menu.Popup.Props & Pick<Menu.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">) => react_jsx_runtime0.JSX.Element;
|
|
25
|
+
Group: ({
|
|
26
|
+
...props
|
|
27
|
+
}: Menu.Group.Props) => react_jsx_runtime0.JSX.Element;
|
|
28
|
+
Item: ({
|
|
29
|
+
className,
|
|
30
|
+
inset,
|
|
31
|
+
variant,
|
|
32
|
+
...props
|
|
33
|
+
}: Menu.Item.Props & {
|
|
34
|
+
inset?: boolean;
|
|
35
|
+
variant?: "default" | "destructive";
|
|
36
|
+
}) => react_jsx_runtime0.JSX.Element;
|
|
37
|
+
Label: ({
|
|
38
|
+
className,
|
|
39
|
+
inset,
|
|
40
|
+
...props
|
|
41
|
+
}: Menu.GroupLabel.Props & {
|
|
42
|
+
inset?: boolean;
|
|
43
|
+
}) => react_jsx_runtime0.JSX.Element;
|
|
44
|
+
Portal: ({
|
|
45
|
+
...props
|
|
46
|
+
}: Menu.Portal.Props) => react_jsx_runtime0.JSX.Element;
|
|
47
|
+
RadioGroup: ({
|
|
48
|
+
...props
|
|
49
|
+
}: Menu.RadioGroup.Props) => react_jsx_runtime0.JSX.Element;
|
|
50
|
+
RadioItem: ({
|
|
51
|
+
className,
|
|
52
|
+
children,
|
|
53
|
+
...props
|
|
54
|
+
}: Menu.RadioItem.Props) => react_jsx_runtime0.JSX.Element;
|
|
55
|
+
Separator: ({
|
|
56
|
+
className,
|
|
57
|
+
...props
|
|
58
|
+
}: Menu.Separator.Props) => react_jsx_runtime0.JSX.Element;
|
|
59
|
+
Shortcut: ({
|
|
60
|
+
className,
|
|
61
|
+
...props
|
|
62
|
+
}: react.ComponentProps<"span">) => react_jsx_runtime0.JSX.Element;
|
|
63
|
+
Sub: ({
|
|
64
|
+
...props
|
|
65
|
+
}: Menu.SubmenuRoot.Props) => react_jsx_runtime0.JSX.Element;
|
|
66
|
+
SubContent: ({
|
|
67
|
+
align,
|
|
68
|
+
alignOffset,
|
|
69
|
+
side,
|
|
70
|
+
sideOffset,
|
|
71
|
+
className,
|
|
72
|
+
...props
|
|
73
|
+
}: react.ComponentProps<typeof DropdownMenuContent>) => react_jsx_runtime0.JSX.Element;
|
|
74
|
+
SubTrigger: ({
|
|
75
|
+
className,
|
|
76
|
+
inset,
|
|
77
|
+
children,
|
|
78
|
+
...props
|
|
79
|
+
}: Menu.SubmenuTrigger.Props & {
|
|
80
|
+
inset?: boolean;
|
|
81
|
+
}) => react_jsx_runtime0.JSX.Element;
|
|
82
|
+
Trigger: ({
|
|
83
|
+
className,
|
|
84
|
+
...props
|
|
85
|
+
}: Menu.Trigger.Props) => react_jsx_runtime0.JSX.Element;
|
|
86
|
+
};
|
|
87
|
+
//#endregion
|
|
88
|
+
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { a as DropdownMenuShortcut, c as DropdownMenuRadioGroup, d as DropdownMenuItem, f as DropdownMenuGroup, i as DropdownMenuSub, l as DropdownMenuPortal, m as DropdownMenuCheckboxItem, n as DropdownMenuSubTrigger, o as DropdownMenuSeparator, p as DropdownMenuContent, r as DropdownMenuSubContent, s as DropdownMenuRadioItem, t as DropdownMenuTrigger, u as DropdownMenuLabel } from "../dropdown-menu-trigger-IKeAoU_a.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Menu } from "@base-ui/react/menu";
|
|
4
|
+
|
|
5
|
+
//#region src/components/dropdown-menu/dropdown-menu.tsx
|
|
6
|
+
const DropdownMenu = ({ ...props }) => /* @__PURE__ */ jsx(Menu.Root, {
|
|
7
|
+
"data-slot": "dropdown-menu",
|
|
8
|
+
...props
|
|
9
|
+
});
|
|
10
|
+
DropdownMenu.CheckboxItem = DropdownMenuCheckboxItem;
|
|
11
|
+
DropdownMenu.Content = DropdownMenuContent;
|
|
12
|
+
DropdownMenu.Group = DropdownMenuGroup;
|
|
13
|
+
DropdownMenu.Item = DropdownMenuItem;
|
|
14
|
+
DropdownMenu.Label = DropdownMenuLabel;
|
|
15
|
+
DropdownMenu.Portal = DropdownMenuPortal;
|
|
16
|
+
DropdownMenu.RadioGroup = DropdownMenuRadioGroup;
|
|
17
|
+
DropdownMenu.RadioItem = DropdownMenuRadioItem;
|
|
18
|
+
DropdownMenu.Separator = DropdownMenuSeparator;
|
|
19
|
+
DropdownMenu.Shortcut = DropdownMenuShortcut;
|
|
20
|
+
DropdownMenu.Sub = DropdownMenuSub;
|
|
21
|
+
DropdownMenu.SubContent = DropdownMenuSubContent;
|
|
22
|
+
DropdownMenu.SubTrigger = DropdownMenuSubTrigger;
|
|
23
|
+
DropdownMenu.Trigger = DropdownMenuTrigger;
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { a as DropzoneIdle, c as DropzoneRejectProps, i as DropzoneAcceptProps, l as DropzoneStatusProps, n as useDropzoneContext, o as DropzoneIdleProps, r as DropzoneAccept, s as DropzoneReject, t as DropzoneContext } from "../dropzone-context-BRX1K7nw.js";
|
|
2
|
+
import * as tailwind_variants0 from "tailwind-variants";
|
|
3
|
+
import { VariantProps } from "tailwind-variants";
|
|
4
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
|
+
import * as react from "react";
|
|
6
|
+
import { ComponentProps, DragEvent, InputHTMLAttributes, Ref } from "react";
|
|
7
|
+
import { Accept, DropEvent, FileError, FileRejection, FileWithPath } from "react-dropzone";
|
|
8
|
+
|
|
9
|
+
//#region src/components/dropzone/dropzone.d.ts
|
|
10
|
+
declare const dropzoneVariants: tailwind_variants0.TVReturnType<{
|
|
11
|
+
variant: {
|
|
12
|
+
default: {
|
|
13
|
+
root: never[];
|
|
14
|
+
};
|
|
15
|
+
filled: {
|
|
16
|
+
root: string[];
|
|
17
|
+
};
|
|
18
|
+
light: {
|
|
19
|
+
root: string[];
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
status: {
|
|
23
|
+
idle: {
|
|
24
|
+
root: never[];
|
|
25
|
+
};
|
|
26
|
+
accept: {
|
|
27
|
+
root: string[];
|
|
28
|
+
};
|
|
29
|
+
reject: {
|
|
30
|
+
root: string[];
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
disabled: {
|
|
34
|
+
true: {
|
|
35
|
+
root: string[];
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
loading: {
|
|
39
|
+
true: {
|
|
40
|
+
root: string[];
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
activateOnClick: {
|
|
44
|
+
true: {};
|
|
45
|
+
false: {
|
|
46
|
+
root: string[];
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
}, {
|
|
50
|
+
root: string[];
|
|
51
|
+
inner: string[];
|
|
52
|
+
overlay: string[];
|
|
53
|
+
}, undefined, {
|
|
54
|
+
variant: {
|
|
55
|
+
default: {
|
|
56
|
+
root: never[];
|
|
57
|
+
};
|
|
58
|
+
filled: {
|
|
59
|
+
root: string[];
|
|
60
|
+
};
|
|
61
|
+
light: {
|
|
62
|
+
root: string[];
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
status: {
|
|
66
|
+
idle: {
|
|
67
|
+
root: never[];
|
|
68
|
+
};
|
|
69
|
+
accept: {
|
|
70
|
+
root: string[];
|
|
71
|
+
};
|
|
72
|
+
reject: {
|
|
73
|
+
root: string[];
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
disabled: {
|
|
77
|
+
true: {
|
|
78
|
+
root: string[];
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
loading: {
|
|
82
|
+
true: {
|
|
83
|
+
root: string[];
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
activateOnClick: {
|
|
87
|
+
true: {};
|
|
88
|
+
false: {
|
|
89
|
+
root: string[];
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
}, {
|
|
93
|
+
root: string[];
|
|
94
|
+
inner: string[];
|
|
95
|
+
overlay: string[];
|
|
96
|
+
}, tailwind_variants0.TVReturnType<{
|
|
97
|
+
variant: {
|
|
98
|
+
default: {
|
|
99
|
+
root: never[];
|
|
100
|
+
};
|
|
101
|
+
filled: {
|
|
102
|
+
root: string[];
|
|
103
|
+
};
|
|
104
|
+
light: {
|
|
105
|
+
root: string[];
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
status: {
|
|
109
|
+
idle: {
|
|
110
|
+
root: never[];
|
|
111
|
+
};
|
|
112
|
+
accept: {
|
|
113
|
+
root: string[];
|
|
114
|
+
};
|
|
115
|
+
reject: {
|
|
116
|
+
root: string[];
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
disabled: {
|
|
120
|
+
true: {
|
|
121
|
+
root: string[];
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
loading: {
|
|
125
|
+
true: {
|
|
126
|
+
root: string[];
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
activateOnClick: {
|
|
130
|
+
true: {};
|
|
131
|
+
false: {
|
|
132
|
+
root: string[];
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
}, {
|
|
136
|
+
root: string[];
|
|
137
|
+
inner: string[];
|
|
138
|
+
overlay: string[];
|
|
139
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
140
|
+
type DropzoneVariants = VariantProps<typeof dropzoneVariants>;
|
|
141
|
+
type DropzoneProps = Omit<ComponentProps<"div">, "onDrop" | "ref"> & DropzoneVariants & {
|
|
142
|
+
ref?: Ref<HTMLDivElement>; /** Called when any files are dropped to the dropzone */
|
|
143
|
+
onDropAny?: (files: FileWithPath[], fileRejections: FileRejection[]) => void; /** Called when valid files are dropped to the dropzone */
|
|
144
|
+
onDrop: (files: FileWithPath[]) => void; /** Called when dropped files do not meet file restrictions */
|
|
145
|
+
onReject?: (fileRejections: FileRejection[]) => void; /** Determines whether files capturing should be disabled */
|
|
146
|
+
disabled?: boolean; /** Determines whether a loading overlay should be displayed */
|
|
147
|
+
loading?: boolean; /** Mime types of the files that dropzone can accept */
|
|
148
|
+
accept?: Accept | string[]; /** A ref function which when called opens the file system file picker */
|
|
149
|
+
openRef?: Ref<() => void>; /** Determines whether multiple files can be dropped */
|
|
150
|
+
multiple?: boolean; /** Maximum file size in bytes */
|
|
151
|
+
maxSize?: number; /** Name of the form control */
|
|
152
|
+
name?: string; /** Maximum number of files that can be picked at once */
|
|
153
|
+
maxFiles?: number; /** Set to autofocus the root element */
|
|
154
|
+
autoFocus?: boolean; /** If false, disables click to open the native file selection dialog */
|
|
155
|
+
activateOnClick?: boolean; /** If false, disables drag 'n' drop */
|
|
156
|
+
activateOnDrag?: boolean; /** If false, disables Space/Enter to open the native file selection dialog */
|
|
157
|
+
activateOnKeyboard?: boolean; /** If false, stops drag event propagation to parents */
|
|
158
|
+
dragEventsBubbling?: boolean; /** Called when the dragenter event occurs */
|
|
159
|
+
onDragEnter?: (event: DragEvent<HTMLElement>) => void; /** Called when the dragleave event occurs */
|
|
160
|
+
onDragLeave?: (event: DragEvent<HTMLElement>) => void; /** Called when the dragover event occurs */
|
|
161
|
+
onDragOver?: (event: DragEvent<HTMLElement>) => void; /** Called when user closes the file selection dialog with no selection */
|
|
162
|
+
onFileDialogCancel?: () => void; /** Called when user opens the file selection dialog */
|
|
163
|
+
onFileDialogOpen?: () => void; /** If false, allow dropped items to take over the current browser window */
|
|
164
|
+
preventDropOnDocument?: boolean; /** Set to true to use the File System Access API */
|
|
165
|
+
useFsAccessApi?: boolean; /** Use this to provide a custom file aggregator */
|
|
166
|
+
getFilesFromEvent?: (event: DropEvent) => Promise<(File | DataTransferItem)[]>; /** Custom validation function */
|
|
167
|
+
validator?: <T extends File>(file: T) => FileError | FileError[] | null; /** Determines whether pointer events should be enabled on the inner element */
|
|
168
|
+
enablePointerEvents?: boolean; /** Props passed down to the internal Input component */
|
|
169
|
+
inputProps?: InputHTMLAttributes<HTMLInputElement>;
|
|
170
|
+
};
|
|
171
|
+
declare const Dropzone: {
|
|
172
|
+
({
|
|
173
|
+
className,
|
|
174
|
+
variant,
|
|
175
|
+
status: statusProp,
|
|
176
|
+
disabled: disabledProp,
|
|
177
|
+
loading,
|
|
178
|
+
multiple,
|
|
179
|
+
maxSize,
|
|
180
|
+
accept,
|
|
181
|
+
children,
|
|
182
|
+
onDropAny,
|
|
183
|
+
onDrop,
|
|
184
|
+
onReject,
|
|
185
|
+
openRef,
|
|
186
|
+
name,
|
|
187
|
+
maxFiles,
|
|
188
|
+
autoFocus,
|
|
189
|
+
activateOnClick,
|
|
190
|
+
activateOnDrag,
|
|
191
|
+
dragEventsBubbling,
|
|
192
|
+
activateOnKeyboard,
|
|
193
|
+
onDragEnter,
|
|
194
|
+
onDragLeave,
|
|
195
|
+
onDragOver,
|
|
196
|
+
onFileDialogCancel,
|
|
197
|
+
onFileDialogOpen,
|
|
198
|
+
preventDropOnDocument,
|
|
199
|
+
useFsAccessApi,
|
|
200
|
+
getFilesFromEvent,
|
|
201
|
+
validator,
|
|
202
|
+
enablePointerEvents,
|
|
203
|
+
inputProps,
|
|
204
|
+
ref,
|
|
205
|
+
...props
|
|
206
|
+
}: DropzoneProps): react_jsx_runtime0.JSX.Element;
|
|
207
|
+
Accept: {
|
|
208
|
+
({
|
|
209
|
+
children,
|
|
210
|
+
className,
|
|
211
|
+
...props
|
|
212
|
+
}: DropzoneStatusProps): react.FunctionComponentElement<any> | null;
|
|
213
|
+
displayName: string;
|
|
214
|
+
};
|
|
215
|
+
Idle: {
|
|
216
|
+
({
|
|
217
|
+
children,
|
|
218
|
+
className,
|
|
219
|
+
...props
|
|
220
|
+
}: DropzoneStatusProps): react.FunctionComponentElement<any> | null;
|
|
221
|
+
displayName: string;
|
|
222
|
+
};
|
|
223
|
+
Reject: {
|
|
224
|
+
({
|
|
225
|
+
children,
|
|
226
|
+
className,
|
|
227
|
+
...props
|
|
228
|
+
}: DropzoneStatusProps): react.FunctionComponentElement<any> | null;
|
|
229
|
+
displayName: string;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
//#endregion
|
|
233
|
+
export { Dropzone, DropzoneAccept, type DropzoneAcceptProps, DropzoneContext, DropzoneIdle, type DropzoneIdleProps, type DropzoneProps, DropzoneReject, type DropzoneRejectProps, type DropzoneVariants, dropzoneVariants, useDropzoneContext };
|