@oneplatformdev/ui 0.0.1-beta.11
Sign up to get free protection for your applications and to get access to all the features.
- package/Accordion/Accordion.d.ts +7 -0
- package/Accordion/Accordion.mjs +46 -0
- package/Accordion/index.d.ts +1 -0
- package/Accordion/index.mjs +7 -0
- package/Accordion/package.json +7 -0
- package/Alert/Alert.d.ts +7 -0
- package/Alert/Alert.mjs +37 -0
- package/Alert/alertVariants.d.ts +4 -0
- package/Alert/alertVariants.mjs +19 -0
- package/Alert/index.d.ts +1 -0
- package/Alert/index.mjs +6 -0
- package/Alert/package.json +7 -0
- package/AlertDialog/AlertDialog.d.ts +65 -0
- package/AlertDialog/AlertDialog.mjs +97 -0
- package/AlertDialog/AlertDialog.types.d.ts +53 -0
- package/AlertDialog/AlertDialogRoot.d.ts +21 -0
- package/AlertDialog/AlertDialogRoot.mjs +114 -0
- package/AlertDialog/index.d.ts +3 -0
- package/AlertDialog/index.mjs +16 -0
- package/AlertDialog/package.json +7 -0
- package/AreaChart/AreaChart.d.ts +4 -0
- package/AreaChart/AreaChart.mjs +27 -0
- package/AreaChart/AreaChart.types.d.ts +15 -0
- package/AreaChart/index.d.ts +2 -0
- package/AreaChart/index.mjs +4 -0
- package/AreaChart/package.json +7 -0
- package/Aside/Aside.d.ts +4 -0
- package/Aside/Aside.mjs +23 -0
- package/Aside/Aside.types.d.ts +18 -0
- package/Aside/AsideSidebar.d.ts +3 -0
- package/Aside/AsideSidebar.mjs +37 -0
- package/Aside/index.d.ts +3 -0
- package/Aside/index.mjs +7 -0
- package/Aside/package.json +7 -0
- package/AspectRatio/AspectRatio.d.ts +2 -0
- package/AspectRatio/AspectRatio.mjs +5 -0
- package/AspectRatio/index.d.ts +1 -0
- package/AspectRatio/index.mjs +5 -0
- package/AspectRatio/package.json +7 -0
- package/Avatar/Avatar.d.ts +5 -0
- package/Avatar/Avatar.mjs +42 -0
- package/Avatar/index.d.ts +1 -0
- package/Avatar/index.mjs +6 -0
- package/Avatar/package.json +7 -0
- package/Badge/Badge.d.ts +5 -0
- package/Badge/Badge.mjs +10 -0
- package/Badge/Badge.types.d.ts +5 -0
- package/Badge/badgeVariants.d.ts +3 -0
- package/Badge/badgeVariants.mjs +20 -0
- package/Badge/index.d.ts +3 -0
- package/Badge/index.mjs +6 -0
- package/Badge/package.json +7 -0
- package/Breadcrumb/Breadcrumb.d.ts +19 -0
- package/Breadcrumb/Breadcrumb.mjs +90 -0
- package/Breadcrumb/index.d.ts +1 -0
- package/Breadcrumb/index.mjs +10 -0
- package/Breadcrumb/package.json +7 -0
- package/Button/Button.d.ts +4 -0
- package/Button/Button.mjs +31 -0
- package/Button/Button.types.d.ts +8 -0
- package/Button/buttonVariants.d.ts +4 -0
- package/Button/buttonVariants.mjs +29 -0
- package/Button/index.d.ts +3 -0
- package/Button/index.mjs +7 -0
- package/Button/package.json +7 -0
- package/ButtonIcon/ButtonIcon.d.ts +3 -0
- package/ButtonIcon/ButtonIcon.mjs +29 -0
- package/ButtonIcon/ButtonIcon.types.d.ts +7 -0
- package/ButtonIcon/buttonIconVariants.d.ts +7 -0
- package/ButtonIcon/buttonIconVariants.mjs +139 -0
- package/ButtonIcon/index.d.ts +3 -0
- package/ButtonIcon/index.mjs +7 -0
- package/ButtonIcon/package.json +7 -0
- package/Calendar/Calendar.d.ts +8 -0
- package/Calendar/Calendar.mjs +63 -0
- package/Calendar/index.d.ts +1 -0
- package/Calendar/index.mjs +4 -0
- package/Calendar/package.json +7 -0
- package/Card/Card.d.ts +8 -0
- package/Card/Card.mjs +61 -0
- package/Card/index.d.ts +1 -0
- package/Card/index.mjs +9 -0
- package/Card/package.json +7 -0
- package/Carousel/Carousel.d.ts +18 -0
- package/Carousel/Carousel.mjs +168 -0
- package/Carousel/index.d.ts +1 -0
- package/Carousel/index.mjs +8 -0
- package/Carousel/package.json +7 -0
- package/Chart/Chart.d.ts +62 -0
- package/Chart/Chart.mjs +210 -0
- package/Chart/index.d.ts +1 -0
- package/Chart/index.mjs +9 -0
- package/Chart/package.json +7 -0
- package/Checkbox/Checkbox.d.ts +4 -0
- package/Checkbox/Checkbox.mjs +27 -0
- package/Checkbox/index.d.ts +1 -0
- package/Checkbox/index.mjs +4 -0
- package/Checkbox/package.json +7 -0
- package/Collapsible/Collapsible.d.ts +5 -0
- package/Collapsible/Collapsible.mjs +7 -0
- package/Collapsible/index.d.ts +1 -0
- package/Collapsible/index.mjs +6 -0
- package/Collapsible/package.json +7 -0
- package/Combobox/Combobox.d.ts +4 -0
- package/Combobox/Combobox.mjs +126 -0
- package/Combobox/Combobox.types.d.ts +15 -0
- package/Combobox/index.d.ts +2 -0
- package/Combobox/index.mjs +4 -0
- package/Combobox/package.json +7 -0
- package/Command/Command.d.ts +80 -0
- package/Command/Command.mjs +109 -0
- package/Command/index.d.ts +1 -0
- package/Command/index.mjs +12 -0
- package/Command/package.json +7 -0
- package/DataTable/DataTable.d.ts +4 -0
- package/DataTable/DataTable.mjs +64 -0
- package/DataTable/DataTable.types.d.ts +11 -0
- package/DataTable/index.d.ts +2 -0
- package/DataTable/index.mjs +4 -0
- package/DataTable/package.json +7 -0
- package/DataTable/useDataTable.d.ts +3 -0
- package/DataTable/useDataTable.mjs +30 -0
- package/DatePicker/DatePicker.d.ts +3 -0
- package/DatePicker/DatePicker.mjs +699 -0
- package/DatePicker/DatePicker.types.d.ts +5 -0
- package/DatePicker/index.d.ts +3 -0
- package/DatePicker/index.mjs +5 -0
- package/DatePicker/package.json +7 -0
- package/Dialog/Dialog.d.ts +19 -0
- package/Dialog/Dialog.mjs +100 -0
- package/Dialog/index.d.ts +1 -0
- package/Dialog/index.mjs +13 -0
- package/Dialog/package.json +7 -0
- package/Drawer/Drawer.d.ts +22 -0
- package/Drawer/Drawer.mjs +98 -0
- package/Drawer/index.d.ts +1 -0
- package/Drawer/index.mjs +13 -0
- package/Drawer/package.json +7 -0
- package/DropdownMenu/DropdownMenu.d.ts +27 -0
- package/DropdownMenu/DropdownMenu.mjs +144 -0
- package/DropdownMenu/index.d.ts +1 -0
- package/DropdownMenu/index.mjs +18 -0
- package/DropdownMenu/package.json +7 -0
- package/Dropzone/Dropzone.d.ts +16 -0
- package/Dropzone/Dropzone.mjs +2923 -0
- package/Dropzone/Dropzone.types.d.ts +21 -0
- package/Dropzone/FilePreview.d.ts +15 -0
- package/Dropzone/FilePreview.mjs +7 -0
- package/Dropzone/index.d.ts +2 -0
- package/Dropzone/index.mjs +7 -0
- package/Dropzone/package.json +7 -0
- package/FilePreview-C6IeuOqo.js +40 -0
- package/Form/Form.d.ts +23 -0
- package/Form/Form.mjs +95 -0
- package/Form/FormRenderControl.d.ts +5 -0
- package/Form/FormRenderControl.mjs +21 -0
- package/Form/FormRenderControl.types.d.ts +18 -0
- package/Form/index.d.ts +3 -0
- package/Form/index.mjs +13 -0
- package/Form/package.json +7 -0
- package/FormCheckbox/FormCheckbox.d.ts +5 -0
- package/FormCheckbox/FormCheckbox.mjs +30 -0
- package/FormCheckbox/FormCheckbox.types.d.ts +7 -0
- package/FormCheckbox/index.d.ts +2 -0
- package/FormCheckbox/index.mjs +4 -0
- package/FormCheckbox/package.json +7 -0
- package/FormCombobox/FormCombobox.d.ts +4 -0
- package/FormCombobox/FormCombobox.mjs +26 -0
- package/FormCombobox/FormCombobox.types.d.ts +7 -0
- package/FormCombobox/index.d.ts +2 -0
- package/FormCombobox/index.mjs +4 -0
- package/FormCombobox/package.json +7 -0
- package/FormDatePicker/FormDatePicker.d.ts +4 -0
- package/FormDatePicker/FormDatePicker.mjs +27 -0
- package/FormDatePicker/FormDatePicker.types.d.ts +7 -0
- package/FormDatePicker/index.d.ts +3 -0
- package/FormDatePicker/index.mjs +5 -0
- package/FormDatePicker/package.json +7 -0
- package/FormInput/FormInput.d.ts +5 -0
- package/FormInput/FormInput.mjs +26 -0
- package/FormInput/FormInput.types.d.ts +7 -0
- package/FormInput/index.d.ts +2 -0
- package/FormInput/index.mjs +4 -0
- package/FormInput/package.json +7 -0
- package/FormSelect/FormSelect.d.ts +5 -0
- package/FormSelect/FormSelect.mjs +38 -0
- package/FormSelect/FormSelect.types.d.ts +7 -0
- package/FormSelect/index.d.ts +2 -0
- package/FormSelect/index.mjs +4 -0
- package/FormSelect/package.json +7 -0
- package/FormTextarea/FormTextarea.d.ts +5 -0
- package/FormTextarea/FormTextarea.mjs +26 -0
- package/FormTextarea/FormTextarea.types.d.ts +7 -0
- package/FormTextarea/index.d.ts +2 -0
- package/FormTextarea/index.mjs +4 -0
- package/FormTextarea/package.json +7 -0
- package/Header/Header.d.ts +4 -0
- package/Header/Header.mjs +26 -0
- package/Header/Header.types.d.ts +3 -0
- package/Header/index.d.ts +2 -0
- package/Header/index.mjs +5 -0
- package/Header/package.json +7 -0
- package/HoverCard/HoverCard.d.ts +6 -0
- package/HoverCard/HoverCard.mjs +23 -0
- package/HoverCard/index.d.ts +1 -0
- package/HoverCard/index.mjs +6 -0
- package/HoverCard/package.json +7 -0
- package/Input/Input.d.ts +6 -0
- package/Input/Input.mjs +61 -0
- package/Input/Input.types.d.ts +13 -0
- package/Input/index.d.ts +3 -0
- package/Input/index.mjs +7 -0
- package/Input/inputVariants.d.ts +3 -0
- package/Input/inputVariants.mjs +18 -0
- package/Input/package.json +7 -0
- package/InputOTP/InputOTP.d.ts +34 -0
- package/InputOTP/InputOTP.mjs +48 -0
- package/InputOTP/index.d.ts +1 -0
- package/InputOTP/index.mjs +7 -0
- package/InputOTP/package.json +7 -0
- package/Label/Label.d.ts +5 -0
- package/Label/Label.mjs +17 -0
- package/Label/index.d.ts +2 -0
- package/Label/index.mjs +6 -0
- package/Label/labelVariants.d.ts +1 -0
- package/Label/labelVariants.mjs +7 -0
- package/Label/package.json +7 -0
- package/LazyLoader/LazyLoader.d.ts +20 -0
- package/LazyLoader/LazyLoader.mjs +7 -0
- package/LazyLoader/index.d.ts +1 -0
- package/LazyLoader/index.mjs +5 -0
- package/LazyLoader/package.json +7 -0
- package/LoadingMask/LoadingMask.d.ts +1 -0
- package/LoadingMask/LoadingMask.mjs +59 -0
- package/LoadingMask/index.d.ts +1 -0
- package/LoadingMask/index.mjs +4 -0
- package/LoadingMask/package.json +7 -0
- package/LoadingProgress/LoadingProgress.d.ts +4 -0
- package/LoadingProgress/LoadingProgress.mjs +37 -0
- package/LoadingProgress/LoadingProgress.types.d.ts +8 -0
- package/LoadingProgress/index.d.ts +3 -0
- package/LoadingProgress/index.mjs +6 -0
- package/LoadingProgress/loadingProgressVariants.d.ts +4 -0
- package/LoadingProgress/loadingProgressVariants.mjs +24 -0
- package/LoadingProgress/package.json +7 -0
- package/Menubar/Menubar.d.ts +28 -0
- package/Menubar/Menubar.mjs +175 -0
- package/Menubar/index.d.ts +1 -0
- package/Menubar/index.mjs +19 -0
- package/Menubar/package.json +7 -0
- package/NavigationMenu/NavigationMenu.d.ts +11 -0
- package/NavigationMenu/NavigationMenu.mjs +101 -0
- package/NavigationMenu/index.d.ts +2 -0
- package/NavigationMenu/index.mjs +13 -0
- package/NavigationMenu/navigationMenuVariants.d.ts +1 -0
- package/NavigationMenu/navigationMenuVariants.mjs +7 -0
- package/NavigationMenu/package.json +7 -0
- package/Pagination/Pagination.d.ts +28 -0
- package/Pagination/Pagination.mjs +106 -0
- package/Pagination/index.d.ts +1 -0
- package/Pagination/index.mjs +10 -0
- package/Pagination/package.json +7 -0
- package/Popover/Popover.d.ts +7 -0
- package/Popover/Popover.mjs +24 -0
- package/Popover/index.d.ts +1 -0
- package/Popover/index.mjs +7 -0
- package/Popover/package.json +7 -0
- package/Progress/Progress.d.ts +4 -0
- package/Progress/Progress.mjs +26 -0
- package/Progress/index.d.ts +1 -0
- package/Progress/index.mjs +4 -0
- package/Progress/package.json +7 -0
- package/README.md +33 -0
- package/RadioGroup/RadioGroup.d.ts +5 -0
- package/RadioGroup/RadioGroup.mjs +31 -0
- package/RadioGroup/index.d.ts +1 -0
- package/RadioGroup/index.mjs +5 -0
- package/RadioGroup/package.json +7 -0
- package/Resizable/Resizable.d.ts +23 -0
- package/Resizable/Resizable.mjs +36 -0
- package/Resizable/index.d.ts +1 -0
- package/Resizable/index.mjs +6 -0
- package/Resizable/package.json +7 -0
- package/ScrollArea/ScrollArea.d.ts +5 -0
- package/ScrollArea/ScrollArea.mjs +38 -0
- package/ScrollArea/index.d.ts +1 -0
- package/ScrollArea/index.mjs +5 -0
- package/ScrollArea/package.json +7 -0
- package/Search/Search.d.ts +4 -0
- package/Search/Search.mjs +30 -0
- package/Search/Search.types.d.ts +6 -0
- package/Search/index.d.ts +3 -0
- package/Search/index.mjs +5 -0
- package/Search/package.json +7 -0
- package/Select/Select.d.ts +3 -0
- package/Select/Select.mjs +72 -0
- package/Select/Select.types.d.ts +29 -0
- package/Select/SelectRoot.d.ts +13 -0
- package/Select/SelectRoot.mjs +121 -0
- package/Select/index.d.ts +3 -0
- package/Select/index.mjs +15 -0
- package/Select/package.json +7 -0
- package/Separator/Separator.d.ts +4 -0
- package/Separator/Separator.mjs +24 -0
- package/Separator/index.d.ts +1 -0
- package/Separator/index.mjs +4 -0
- package/Separator/package.json +7 -0
- package/Sheet/Sheet.d.ts +25 -0
- package/Sheet/Sheet.mjs +110 -0
- package/Sheet/index.d.ts +1 -0
- package/Sheet/index.mjs +13 -0
- package/Sheet/package.json +7 -0
- package/Sidebar/Sidebar.d.ts +66 -0
- package/Sidebar/Sidebar.mjs +543 -0
- package/Sidebar/index.d.ts +1 -0
- package/Sidebar/index.mjs +27 -0
- package/Sidebar/package.json +7 -0
- package/Skeleton/Skeleton.d.ts +4 -0
- package/Skeleton/Skeleton.mjs +17 -0
- package/Skeleton/index.d.ts +1 -0
- package/Skeleton/index.mjs +4 -0
- package/Skeleton/package.json +7 -0
- package/Slider/Slider.d.ts +4 -0
- package/Slider/Slider.mjs +23 -0
- package/Slider/index.d.ts +1 -0
- package/Slider/index.mjs +4 -0
- package/Slider/package.json +7 -0
- package/Sonner/Sonner.d.ts +5 -0
- package/Sonner/Sonner.mjs +25 -0
- package/Sonner/index.d.ts +1 -0
- package/Sonner/index.mjs +4 -0
- package/Sonner/package.json +7 -0
- package/Switch/Switch.d.ts +4 -0
- package/Switch/Switch.mjs +27 -0
- package/Switch/index.d.ts +1 -0
- package/Switch/index.mjs +4 -0
- package/Switch/package.json +7 -0
- package/Table/Table.d.ts +10 -0
- package/Table/Table.mjs +90 -0
- package/Table/index.d.ts +1 -0
- package/Table/index.mjs +11 -0
- package/Table/package.json +7 -0
- package/Tabs/Tabs.d.ts +4 -0
- package/Tabs/Tabs.mjs +9 -0
- package/Tabs/Tabs.types.d.ts +9 -0
- package/Tabs/TabsRoot.d.ts +7 -0
- package/Tabs/TabsRoot.mjs +46 -0
- package/Tabs/index.d.ts +2 -0
- package/Tabs/index.mjs +9 -0
- package/Tabs/package.json +7 -0
- package/Textarea/Textarea.d.ts +4 -0
- package/Textarea/Textarea.mjs +18 -0
- package/Textarea/Textarea.types.d.ts +4 -0
- package/Textarea/index.d.ts +2 -0
- package/Textarea/index.mjs +4 -0
- package/Textarea/package.json +7 -0
- package/Theme/ThemeModeToggle.d.ts +8 -0
- package/Theme/ThemeModeToggle.mjs +48 -0
- package/Theme/ThemeProvider.d.ts +4 -0
- package/Theme/ThemeProvider.mjs +27 -0
- package/Theme/index.d.ts +2 -0
- package/Theme/index.mjs +6 -0
- package/Theme/package.json +7 -0
- package/Toast/Toast.d.ts +13 -0
- package/Toast/Toast.mjs +80 -0
- package/Toast/Toast.types.d.ts +34 -0
- package/Toast/index.d.ts +3 -0
- package/Toast/index.mjs +15 -0
- package/Toast/package.json +7 -0
- package/Toast/toast.constants.d.ts +6 -0
- package/Toast/toast.constants.mjs +9 -0
- package/Toast/toastVariants.d.ts +3 -0
- package/Toast/toastVariants.mjs +21 -0
- package/Toast/useToast.d.ts +16 -0
- package/Toast/useToast.mjs +101 -0
- package/Toaster/Toaster.d.ts +1 -0
- package/Toaster/Toaster.mjs +22 -0
- package/Toaster/index.d.ts +1 -0
- package/Toaster/index.mjs +4 -0
- package/Toaster/package.json +7 -0
- package/Toggle/Toggle.d.ts +12 -0
- package/Toggle/Toggle.mjs +37 -0
- package/Toggle/index.d.ts +1 -0
- package/Toggle/index.mjs +5 -0
- package/Toggle/package.json +7 -0
- package/ToggleGroup/ToggleGroup.d.ts +12 -0
- package/ToggleGroup/ToggleGroup.mjs +41 -0
- package/ToggleGroup/index.d.ts +1 -0
- package/ToggleGroup/index.mjs +5 -0
- package/ToggleGroup/package.json +7 -0
- package/Tooltip/Tooltip.d.ts +4 -0
- package/Tooltip/Tooltip.mjs +12 -0
- package/Tooltip/Tooltip.types.d.ts +8 -0
- package/Tooltip/TooltipRoot.d.ts +7 -0
- package/Tooltip/TooltipRoot.mjs +23 -0
- package/Tooltip/index.d.ts +3 -0
- package/Tooltip/index.mjs +9 -0
- package/Tooltip/package.json +7 -0
- package/index.css +1 -0
- package/index.d.ts +66 -0
- package/index.mjs +358 -0
- package/package.json +103 -0
- package/tailwind.config.mjs +148 -0
@@ -0,0 +1,19 @@
|
|
1
|
+
import * as React from "react";
|
2
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
3
|
+
declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
4
|
+
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
5
|
+
declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
6
|
+
declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
7
|
+
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
8
|
+
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
9
|
+
declare const DialogHeader: {
|
10
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
11
|
+
displayName: string;
|
12
|
+
};
|
13
|
+
declare const DialogFooter: {
|
14
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
15
|
+
displayName: string;
|
16
|
+
};
|
17
|
+
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
18
|
+
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
19
|
+
export { Dialog, DialogPortal, DialogOverlay, DialogTrigger, DialogClose, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
|
@@ -0,0 +1,100 @@
|
|
1
|
+
import { jsx as o, jsxs as n } from "react/jsx-runtime";
|
2
|
+
import * as l from "react";
|
3
|
+
import * as e from "@radix-ui/react-dialog";
|
4
|
+
import { X as c } from "lucide-react";
|
5
|
+
import { cn as i } from "@oneplatformdev/utils";
|
6
|
+
const b = e.Root, h = e.Trigger, m = e.Portal, v = e.Close, d = l.forwardRef(({ className: a, ...t }, s) => /* @__PURE__ */ o(
|
7
|
+
e.Overlay,
|
8
|
+
{
|
9
|
+
ref: s,
|
10
|
+
className: i(
|
11
|
+
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
12
|
+
a
|
13
|
+
),
|
14
|
+
...t
|
15
|
+
}
|
16
|
+
));
|
17
|
+
d.displayName = e.Overlay.displayName;
|
18
|
+
const f = l.forwardRef(({ className: a, children: t, ...s }, r) => /* @__PURE__ */ n(m, { children: [
|
19
|
+
/* @__PURE__ */ o(d, {}),
|
20
|
+
/* @__PURE__ */ n(
|
21
|
+
e.Content,
|
22
|
+
{
|
23
|
+
ref: r,
|
24
|
+
className: i(
|
25
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
|
26
|
+
a
|
27
|
+
),
|
28
|
+
...s,
|
29
|
+
children: [
|
30
|
+
t,
|
31
|
+
/* @__PURE__ */ n(e.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
32
|
+
/* @__PURE__ */ o(c, { className: "h-4 w-4" }),
|
33
|
+
/* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
|
34
|
+
] })
|
35
|
+
]
|
36
|
+
}
|
37
|
+
)
|
38
|
+
] }));
|
39
|
+
f.displayName = e.Content.displayName;
|
40
|
+
const p = ({
|
41
|
+
className: a,
|
42
|
+
...t
|
43
|
+
}) => /* @__PURE__ */ o(
|
44
|
+
"div",
|
45
|
+
{
|
46
|
+
className: i(
|
47
|
+
"flex flex-col space-y-1.5 text-center sm:text-left",
|
48
|
+
a
|
49
|
+
),
|
50
|
+
...t
|
51
|
+
}
|
52
|
+
);
|
53
|
+
p.displayName = "DialogHeader";
|
54
|
+
const g = ({
|
55
|
+
className: a,
|
56
|
+
...t
|
57
|
+
}) => /* @__PURE__ */ o(
|
58
|
+
"div",
|
59
|
+
{
|
60
|
+
className: i(
|
61
|
+
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
62
|
+
a
|
63
|
+
),
|
64
|
+
...t
|
65
|
+
}
|
66
|
+
);
|
67
|
+
g.displayName = "DialogFooter";
|
68
|
+
const u = l.forwardRef(({ className: a, ...t }, s) => /* @__PURE__ */ o(
|
69
|
+
e.Title,
|
70
|
+
{
|
71
|
+
ref: s,
|
72
|
+
className: i(
|
73
|
+
"text-lg font-semibold leading-none tracking-tight",
|
74
|
+
a
|
75
|
+
),
|
76
|
+
...t
|
77
|
+
}
|
78
|
+
));
|
79
|
+
u.displayName = e.Title.displayName;
|
80
|
+
const y = l.forwardRef(({ className: a, ...t }, s) => /* @__PURE__ */ o(
|
81
|
+
e.Description,
|
82
|
+
{
|
83
|
+
ref: s,
|
84
|
+
className: i("text-sm text-muted-foreground", a),
|
85
|
+
...t
|
86
|
+
}
|
87
|
+
));
|
88
|
+
y.displayName = e.Description.displayName;
|
89
|
+
export {
|
90
|
+
b as Dialog,
|
91
|
+
v as DialogClose,
|
92
|
+
f as DialogContent,
|
93
|
+
y as DialogDescription,
|
94
|
+
g as DialogFooter,
|
95
|
+
p as DialogHeader,
|
96
|
+
d as DialogOverlay,
|
97
|
+
m as DialogPortal,
|
98
|
+
u as DialogTitle,
|
99
|
+
h as DialogTrigger
|
100
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Dialog';
|
package/Dialog/index.mjs
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
import { Dialog as l, DialogClose as a, DialogContent as g, DialogDescription as D, DialogFooter as e, DialogHeader as r, DialogOverlay as t, DialogPortal as n, DialogTitle as p, DialogTrigger as s } from "./Dialog.mjs";
|
2
|
+
export {
|
3
|
+
l as Dialog,
|
4
|
+
a as DialogClose,
|
5
|
+
g as DialogContent,
|
6
|
+
D as DialogDescription,
|
7
|
+
e as DialogFooter,
|
8
|
+
r as DialogHeader,
|
9
|
+
t as DialogOverlay,
|
10
|
+
n as DialogPortal,
|
11
|
+
p as DialogTitle,
|
12
|
+
s as DialogTrigger
|
13
|
+
};
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { Drawer as DrawerPrimitive } from 'vaul';
|
2
|
+
import * as React from "react";
|
3
|
+
declare const Drawer: {
|
4
|
+
({ shouldScaleBackground, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
5
|
+
displayName: string;
|
6
|
+
};
|
7
|
+
declare const DrawerTrigger: React.ForwardRefExoticComponent<import('@radix-ui/react-dialog').DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
8
|
+
declare const DrawerPortal: typeof import('vaul').Portal;
|
9
|
+
declare const DrawerClose: React.ForwardRefExoticComponent<import('@radix-ui/react-dialog').DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
10
|
+
declare const DrawerOverlay: React.ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-dialog').DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
11
|
+
declare const DrawerContent: React.ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-dialog').DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
12
|
+
declare const DrawerHeader: {
|
13
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
14
|
+
displayName: string;
|
15
|
+
};
|
16
|
+
declare const DrawerFooter: {
|
17
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
18
|
+
displayName: string;
|
19
|
+
};
|
20
|
+
declare const DrawerTitle: React.ForwardRefExoticComponent<Omit<import('@radix-ui/react-dialog').DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
21
|
+
declare const DrawerDescription: React.ForwardRefExoticComponent<Omit<import('@radix-ui/react-dialog').DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
22
|
+
export { Drawer, DrawerPortal, DrawerOverlay, DrawerTrigger, DrawerClose, DrawerContent, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription, };
|
@@ -0,0 +1,98 @@
|
|
1
|
+
import { jsx as t, jsxs as i } from "react/jsx-runtime";
|
2
|
+
import * as l from "react";
|
3
|
+
import { Drawer as a } from "vaul";
|
4
|
+
import { cn as s } from "@oneplatformdev/utils";
|
5
|
+
const n = ({
|
6
|
+
shouldScaleBackground: e = !0,
|
7
|
+
...r
|
8
|
+
}) => /* @__PURE__ */ t(
|
9
|
+
a.Root,
|
10
|
+
{
|
11
|
+
shouldScaleBackground: e,
|
12
|
+
...r
|
13
|
+
}
|
14
|
+
);
|
15
|
+
n.displayName = "Drawer";
|
16
|
+
const u = a.Trigger, c = a.Portal, b = a.Close, d = l.forwardRef(({ className: e, ...r }, o) => /* @__PURE__ */ t(
|
17
|
+
a.Overlay,
|
18
|
+
{
|
19
|
+
ref: o,
|
20
|
+
className: s("fixed inset-0 z-50 bg-black/80", e),
|
21
|
+
...r
|
22
|
+
}
|
23
|
+
));
|
24
|
+
d.displayName = a.Overlay.displayName;
|
25
|
+
const p = l.forwardRef(({ className: e, children: r, ...o }, m) => /* @__PURE__ */ i(c, { children: [
|
26
|
+
/* @__PURE__ */ t(d, {}),
|
27
|
+
/* @__PURE__ */ i(
|
28
|
+
a.Content,
|
29
|
+
{
|
30
|
+
ref: m,
|
31
|
+
className: s(
|
32
|
+
"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
|
33
|
+
e
|
34
|
+
),
|
35
|
+
...o,
|
36
|
+
children: [
|
37
|
+
/* @__PURE__ */ t("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
|
38
|
+
r
|
39
|
+
]
|
40
|
+
}
|
41
|
+
)
|
42
|
+
] }));
|
43
|
+
p.displayName = "DrawerContent";
|
44
|
+
const f = ({
|
45
|
+
className: e,
|
46
|
+
...r
|
47
|
+
}) => /* @__PURE__ */ t(
|
48
|
+
"div",
|
49
|
+
{
|
50
|
+
className: s("grid gap-1.5 p-4 text-center sm:text-left", e),
|
51
|
+
...r
|
52
|
+
}
|
53
|
+
);
|
54
|
+
f.displayName = "DrawerHeader";
|
55
|
+
const w = ({
|
56
|
+
className: e,
|
57
|
+
...r
|
58
|
+
}) => /* @__PURE__ */ t(
|
59
|
+
"div",
|
60
|
+
{
|
61
|
+
className: s("mt-auto flex flex-col gap-2 p-4", e),
|
62
|
+
...r
|
63
|
+
}
|
64
|
+
);
|
65
|
+
w.displayName = "DrawerFooter";
|
66
|
+
const D = l.forwardRef(({ className: e, ...r }, o) => /* @__PURE__ */ t(
|
67
|
+
a.Title,
|
68
|
+
{
|
69
|
+
ref: o,
|
70
|
+
className: s(
|
71
|
+
"text-lg font-semibold leading-none tracking-tight",
|
72
|
+
e
|
73
|
+
),
|
74
|
+
...r
|
75
|
+
}
|
76
|
+
));
|
77
|
+
D.displayName = a.Title.displayName;
|
78
|
+
const x = l.forwardRef(({ className: e, ...r }, o) => /* @__PURE__ */ t(
|
79
|
+
a.Description,
|
80
|
+
{
|
81
|
+
ref: o,
|
82
|
+
className: s("text-sm text-muted-foreground", e),
|
83
|
+
...r
|
84
|
+
}
|
85
|
+
));
|
86
|
+
x.displayName = a.Description.displayName;
|
87
|
+
export {
|
88
|
+
n as Drawer,
|
89
|
+
b as DrawerClose,
|
90
|
+
p as DrawerContent,
|
91
|
+
x as DrawerDescription,
|
92
|
+
w as DrawerFooter,
|
93
|
+
f as DrawerHeader,
|
94
|
+
d as DrawerOverlay,
|
95
|
+
c as DrawerPortal,
|
96
|
+
D as DrawerTitle,
|
97
|
+
u as DrawerTrigger
|
98
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Drawer';
|
package/Drawer/index.mjs
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
import { Drawer as a, DrawerClose as D, DrawerContent as w, DrawerDescription as o, DrawerFooter as t, DrawerHeader as i, DrawerOverlay as l, DrawerPortal as n, DrawerTitle as g, DrawerTrigger as p } from "./Drawer.mjs";
|
2
|
+
export {
|
3
|
+
a as Drawer,
|
4
|
+
D as DrawerClose,
|
5
|
+
w as DrawerContent,
|
6
|
+
o as DrawerDescription,
|
7
|
+
t as DrawerFooter,
|
8
|
+
i as DrawerHeader,
|
9
|
+
l as DrawerOverlay,
|
10
|
+
n as DrawerPortal,
|
11
|
+
g as DrawerTitle,
|
12
|
+
p as DrawerTrigger
|
13
|
+
};
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import * as React from "react";
|
2
|
+
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
3
|
+
declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
4
|
+
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
5
|
+
declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
6
|
+
declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
7
|
+
declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
8
|
+
declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
9
|
+
declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
10
|
+
inset?: boolean;
|
11
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
12
|
+
declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
13
|
+
declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
14
|
+
declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
15
|
+
inset?: boolean;
|
16
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
17
|
+
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
18
|
+
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
19
|
+
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
20
|
+
inset?: boolean;
|
21
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
22
|
+
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
23
|
+
declare const DropdownMenuShortcut: {
|
24
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
25
|
+
displayName: string;
|
26
|
+
};
|
27
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, };
|
@@ -0,0 +1,144 @@
|
|
1
|
+
import { jsxs as l, jsx as n } from "react/jsx-runtime";
|
2
|
+
import * as d from "react";
|
3
|
+
import * as e from "@radix-ui/react-dropdown-menu";
|
4
|
+
import { ChevronRight as c, Check as m, Circle as p } from "lucide-react";
|
5
|
+
import { cn as r } from "@oneplatformdev/utils";
|
6
|
+
const R = e.Root, I = e.Trigger, S = e.Group, C = e.Portal, z = e.Sub, k = e.RadioGroup, u = d.forwardRef(({ className: t, inset: o, children: a, ...s }, i) => /* @__PURE__ */ l(
|
7
|
+
e.SubTrigger,
|
8
|
+
{
|
9
|
+
ref: i,
|
10
|
+
className: r(
|
11
|
+
"flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
12
|
+
o && "pl-8",
|
13
|
+
t
|
14
|
+
),
|
15
|
+
...s,
|
16
|
+
children: [
|
17
|
+
a,
|
18
|
+
/* @__PURE__ */ n(c, { className: "ml-auto" })
|
19
|
+
]
|
20
|
+
}
|
21
|
+
));
|
22
|
+
u.displayName = e.SubTrigger.displayName;
|
23
|
+
const f = d.forwardRef(({ className: t, ...o }, a) => /* @__PURE__ */ n(
|
24
|
+
e.SubContent,
|
25
|
+
{
|
26
|
+
ref: a,
|
27
|
+
className: r(
|
28
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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",
|
29
|
+
t
|
30
|
+
),
|
31
|
+
...o
|
32
|
+
}
|
33
|
+
));
|
34
|
+
f.displayName = e.SubContent.displayName;
|
35
|
+
const b = d.forwardRef(({ className: t, sideOffset: o = 4, ...a }, s) => /* @__PURE__ */ n(e.Portal, { children: /* @__PURE__ */ n(
|
36
|
+
e.Content,
|
37
|
+
{
|
38
|
+
ref: s,
|
39
|
+
sideOffset: o,
|
40
|
+
className: r(
|
41
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
|
42
|
+
"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",
|
43
|
+
t
|
44
|
+
),
|
45
|
+
...a
|
46
|
+
}
|
47
|
+
) }));
|
48
|
+
b.displayName = e.Content.displayName;
|
49
|
+
const g = d.forwardRef(({ className: t, inset: o, ...a }, s) => /* @__PURE__ */ n(
|
50
|
+
e.Item,
|
51
|
+
{
|
52
|
+
ref: s,
|
53
|
+
className: r(
|
54
|
+
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
|
55
|
+
o && "pl-8",
|
56
|
+
t
|
57
|
+
),
|
58
|
+
...a
|
59
|
+
}
|
60
|
+
));
|
61
|
+
g.displayName = e.Item.displayName;
|
62
|
+
const w = d.forwardRef(({ className: t, children: o, checked: a, ...s }, i) => /* @__PURE__ */ l(
|
63
|
+
e.CheckboxItem,
|
64
|
+
{
|
65
|
+
ref: i,
|
66
|
+
className: r(
|
67
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
68
|
+
t
|
69
|
+
),
|
70
|
+
checked: a,
|
71
|
+
...s,
|
72
|
+
children: [
|
73
|
+
/* @__PURE__ */ n("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n(e.ItemIndicator, { children: /* @__PURE__ */ n(m, { className: "h-4 w-4" }) }) }),
|
74
|
+
o
|
75
|
+
]
|
76
|
+
}
|
77
|
+
));
|
78
|
+
w.displayName = e.CheckboxItem.displayName;
|
79
|
+
const h = d.forwardRef(({ className: t, children: o, ...a }, s) => /* @__PURE__ */ l(
|
80
|
+
e.RadioItem,
|
81
|
+
{
|
82
|
+
ref: s,
|
83
|
+
className: r(
|
84
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
85
|
+
t
|
86
|
+
),
|
87
|
+
...a,
|
88
|
+
children: [
|
89
|
+
/* @__PURE__ */ n("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n(e.ItemIndicator, { children: /* @__PURE__ */ n(p, { className: "h-2 w-2 fill-current" }) }) }),
|
90
|
+
o
|
91
|
+
]
|
92
|
+
}
|
93
|
+
));
|
94
|
+
h.displayName = e.RadioItem.displayName;
|
95
|
+
const N = d.forwardRef(({ className: t, inset: o, ...a }, s) => /* @__PURE__ */ n(
|
96
|
+
e.Label,
|
97
|
+
{
|
98
|
+
ref: s,
|
99
|
+
className: r(
|
100
|
+
"px-2 py-1.5 text-sm font-semibold",
|
101
|
+
o && "pl-8",
|
102
|
+
t
|
103
|
+
),
|
104
|
+
...a
|
105
|
+
}
|
106
|
+
));
|
107
|
+
N.displayName = e.Label.displayName;
|
108
|
+
const x = d.forwardRef(({ className: t, ...o }, a) => /* @__PURE__ */ n(
|
109
|
+
e.Separator,
|
110
|
+
{
|
111
|
+
ref: a,
|
112
|
+
className: r("-mx-1 my-1 h-px bg-muted", t),
|
113
|
+
...o
|
114
|
+
}
|
115
|
+
));
|
116
|
+
x.displayName = e.Separator.displayName;
|
117
|
+
const y = ({
|
118
|
+
className: t,
|
119
|
+
...o
|
120
|
+
}) => /* @__PURE__ */ n(
|
121
|
+
"span",
|
122
|
+
{
|
123
|
+
className: r("ml-auto text-xs tracking-widest opacity-60", t),
|
124
|
+
...o
|
125
|
+
}
|
126
|
+
);
|
127
|
+
y.displayName = "DropdownMenuShortcut";
|
128
|
+
export {
|
129
|
+
R as DropdownMenu,
|
130
|
+
w as DropdownMenuCheckboxItem,
|
131
|
+
b as DropdownMenuContent,
|
132
|
+
S as DropdownMenuGroup,
|
133
|
+
g as DropdownMenuItem,
|
134
|
+
N as DropdownMenuLabel,
|
135
|
+
C as DropdownMenuPortal,
|
136
|
+
k as DropdownMenuRadioGroup,
|
137
|
+
h as DropdownMenuRadioItem,
|
138
|
+
x as DropdownMenuSeparator,
|
139
|
+
y as DropdownMenuShortcut,
|
140
|
+
z as DropdownMenuSub,
|
141
|
+
f as DropdownMenuSubContent,
|
142
|
+
u as DropdownMenuSubTrigger,
|
143
|
+
I as DropdownMenuTrigger
|
144
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './DropdownMenu';
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { DropdownMenu as r, DropdownMenuCheckboxItem as e, DropdownMenuContent as u, DropdownMenuGroup as p, DropdownMenuItem as d, DropdownMenuLabel as w, DropdownMenuPortal as D, DropdownMenuRadioGroup as M, DropdownMenuRadioItem as t, DropdownMenuSeparator as a, DropdownMenuShortcut as b, DropdownMenuSub as S, DropdownMenuSubContent as g, DropdownMenuSubTrigger as i, DropdownMenuTrigger as m } from "./DropdownMenu.mjs";
|
2
|
+
export {
|
3
|
+
r as DropdownMenu,
|
4
|
+
e as DropdownMenuCheckboxItem,
|
5
|
+
u as DropdownMenuContent,
|
6
|
+
p as DropdownMenuGroup,
|
7
|
+
d as DropdownMenuItem,
|
8
|
+
w as DropdownMenuLabel,
|
9
|
+
D as DropdownMenuPortal,
|
10
|
+
M as DropdownMenuRadioGroup,
|
11
|
+
t as DropdownMenuRadioItem,
|
12
|
+
a as DropdownMenuSeparator,
|
13
|
+
b as DropdownMenuShortcut,
|
14
|
+
S as DropdownMenuSub,
|
15
|
+
g as DropdownMenuSubContent,
|
16
|
+
i as DropdownMenuSubTrigger,
|
17
|
+
m as DropdownMenuTrigger
|
18
|
+
};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { DropzoneProps } from './Dropzone.types';
|
2
|
+
|
3
|
+
/**
|
4
|
+
* Dropzone component - A drag-and-drop file upload area with image previews, error handling, and localization.
|
5
|
+
* @component
|
6
|
+
* @param {DropzoneProps} props - The Dropzone component props.
|
7
|
+
* @param {string[]} [props.acceptTypes=DEFAULT_FILE_TYPES] - Allowed file types. Defaults to `DEFAULT_FILE_TYPES`.
|
8
|
+
* @param {number} props.maxSizeMB - Maximum file size in megabytes.
|
9
|
+
* @param {number} [props.maxFiles=1] - Maximum number of files allowed. Defaults to 1.
|
10
|
+
* @param {DropzoneTranslations} props.translations - Object containing localized text.
|
11
|
+
* @param {(files: File[]) => void} props.onFilesSelected - Callback triggered when valid files are selected.
|
12
|
+
* @param {(errors: FileRejection[]) => void} [props.onErrors] - Callback triggered when files are rejected due to errors.
|
13
|
+
* @param {boolean} [props.hideErrors=false] - If `true`, hides error messages but keeps the red border.
|
14
|
+
* @returns {JSX.Element} The rendered Dropzone component.
|
15
|
+
*/
|
16
|
+
export declare const Dropzone: React.FC<DropzoneProps>;
|