@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,24 @@
|
|
1
|
+
import { cva as a } from "class-variance-authority";
|
2
|
+
const t = a(
|
3
|
+
"animate-spin",
|
4
|
+
{
|
5
|
+
variants: {
|
6
|
+
color: {
|
7
|
+
primary: "text-primary",
|
8
|
+
default: ""
|
9
|
+
},
|
10
|
+
size: {
|
11
|
+
default: "",
|
12
|
+
sm: "",
|
13
|
+
lg: "w-20 h-20"
|
14
|
+
}
|
15
|
+
},
|
16
|
+
defaultVariants: {
|
17
|
+
size: "default",
|
18
|
+
color: "default"
|
19
|
+
}
|
20
|
+
}
|
21
|
+
);
|
22
|
+
export {
|
23
|
+
t as loadingProgressVariants
|
24
|
+
};
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import * as React from "react";
|
2
|
+
import * as MenubarPrimitive from "@radix-ui/react-menubar";
|
3
|
+
declare const MenubarMenu: typeof MenubarPrimitive.Menu;
|
4
|
+
declare const MenubarGroup: typeof MenubarPrimitive.Group;
|
5
|
+
declare const MenubarPortal: typeof MenubarPrimitive.Portal;
|
6
|
+
declare const MenubarSub: typeof MenubarPrimitive.Sub;
|
7
|
+
declare const MenubarRadioGroup: typeof MenubarPrimitive.RadioGroup;
|
8
|
+
declare const Menubar: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
9
|
+
declare const MenubarTrigger: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
10
|
+
declare const MenubarSubTrigger: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
11
|
+
inset?: boolean;
|
12
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
13
|
+
declare const MenubarSubContent: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
14
|
+
declare const MenubarContent: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
15
|
+
declare const MenubarItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
16
|
+
inset?: boolean;
|
17
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
18
|
+
declare const MenubarCheckboxItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
19
|
+
declare const MenubarRadioItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
20
|
+
declare const MenubarLabel: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
21
|
+
inset?: boolean;
|
22
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
23
|
+
declare const MenubarSeparator: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
24
|
+
declare const MenubarShortcut: {
|
25
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
26
|
+
displayname: string;
|
27
|
+
};
|
28
|
+
export { Menubar, MenubarMenu, MenubarTrigger, MenubarContent, MenubarItem, MenubarSeparator, MenubarLabel, MenubarCheckboxItem, MenubarRadioGroup, MenubarRadioItem, MenubarPortal, MenubarSubContent, MenubarSubTrigger, MenubarGroup, MenubarSub, MenubarShortcut, };
|
@@ -0,0 +1,175 @@
|
|
1
|
+
import { jsx as n, jsxs as c } from "react/jsx-runtime";
|
2
|
+
import * as d from "react";
|
3
|
+
import * as e from "@radix-ui/react-menubar";
|
4
|
+
import { ChevronRight as m, Check as u, Circle as p } from "lucide-react";
|
5
|
+
import { cn as s } from "@oneplatformdev/utils";
|
6
|
+
const k = e.Menu, z = e.Group, T = e.Portal, j = e.Sub, G = e.RadioGroup, f = d.forwardRef(({ className: t, ...a }, o) => /* @__PURE__ */ n(
|
7
|
+
e.Root,
|
8
|
+
{
|
9
|
+
ref: o,
|
10
|
+
className: s(
|
11
|
+
"flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm",
|
12
|
+
t
|
13
|
+
),
|
14
|
+
...a
|
15
|
+
}
|
16
|
+
));
|
17
|
+
f.displayName = e.Root.displayName;
|
18
|
+
const b = d.forwardRef(({ className: t, ...a }, o) => /* @__PURE__ */ n(
|
19
|
+
e.Trigger,
|
20
|
+
{
|
21
|
+
ref: o,
|
22
|
+
className: s(
|
23
|
+
"flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
|
24
|
+
t
|
25
|
+
),
|
26
|
+
...a
|
27
|
+
}
|
28
|
+
));
|
29
|
+
b.displayName = e.Trigger.displayName;
|
30
|
+
const g = d.forwardRef(({ className: t, inset: a, children: o, ...r }, i) => /* @__PURE__ */ c(
|
31
|
+
e.SubTrigger,
|
32
|
+
{
|
33
|
+
ref: i,
|
34
|
+
className: s(
|
35
|
+
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
|
36
|
+
a && "pl-8",
|
37
|
+
t
|
38
|
+
),
|
39
|
+
...r,
|
40
|
+
children: [
|
41
|
+
o,
|
42
|
+
/* @__PURE__ */ n(m, { className: "ml-auto h-4 w-4" })
|
43
|
+
]
|
44
|
+
}
|
45
|
+
));
|
46
|
+
g.displayName = e.SubTrigger.displayName;
|
47
|
+
const x = d.forwardRef(({ className: t, ...a }, o) => /* @__PURE__ */ n(
|
48
|
+
e.SubContent,
|
49
|
+
{
|
50
|
+
ref: o,
|
51
|
+
className: s(
|
52
|
+
"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",
|
53
|
+
t
|
54
|
+
),
|
55
|
+
...a
|
56
|
+
}
|
57
|
+
));
|
58
|
+
x.displayName = e.SubContent.displayName;
|
59
|
+
const N = d.forwardRef(
|
60
|
+
({ className: t, align: a = "start", alignOffset: o = -4, sideOffset: r = 8, ...i }, l) => /* @__PURE__ */ n(e.Portal, { children: /* @__PURE__ */ n(
|
61
|
+
e.Content,
|
62
|
+
{
|
63
|
+
ref: l,
|
64
|
+
align: a,
|
65
|
+
alignOffset: o,
|
66
|
+
sideOffset: r,
|
67
|
+
className: s(
|
68
|
+
"z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in 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",
|
69
|
+
t
|
70
|
+
),
|
71
|
+
...i
|
72
|
+
}
|
73
|
+
) })
|
74
|
+
);
|
75
|
+
N.displayName = e.Content.displayName;
|
76
|
+
const y = d.forwardRef(({ className: t, inset: a, ...o }, r) => /* @__PURE__ */ n(
|
77
|
+
e.Item,
|
78
|
+
{
|
79
|
+
ref: r,
|
80
|
+
className: s(
|
81
|
+
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
82
|
+
a && "pl-8",
|
83
|
+
t
|
84
|
+
),
|
85
|
+
...o
|
86
|
+
}
|
87
|
+
));
|
88
|
+
y.displayName = e.Item.displayName;
|
89
|
+
const h = d.forwardRef(({ className: t, children: a, checked: o, ...r }, i) => /* @__PURE__ */ c(
|
90
|
+
e.CheckboxItem,
|
91
|
+
{
|
92
|
+
ref: i,
|
93
|
+
className: s(
|
94
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
95
|
+
t
|
96
|
+
),
|
97
|
+
checked: o,
|
98
|
+
...r,
|
99
|
+
children: [
|
100
|
+
/* @__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(u, { className: "h-4 w-4" }) }) }),
|
101
|
+
a
|
102
|
+
]
|
103
|
+
}
|
104
|
+
));
|
105
|
+
h.displayName = e.CheckboxItem.displayName;
|
106
|
+
const w = d.forwardRef(({ className: t, children: a, ...o }, r) => /* @__PURE__ */ c(
|
107
|
+
e.RadioItem,
|
108
|
+
{
|
109
|
+
ref: r,
|
110
|
+
className: s(
|
111
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
112
|
+
t
|
113
|
+
),
|
114
|
+
...o,
|
115
|
+
children: [
|
116
|
+
/* @__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-4 w-4 fill-current" }) }) }),
|
117
|
+
a
|
118
|
+
]
|
119
|
+
}
|
120
|
+
));
|
121
|
+
w.displayName = e.RadioItem.displayName;
|
122
|
+
const M = d.forwardRef(({ className: t, inset: a, ...o }, r) => /* @__PURE__ */ n(
|
123
|
+
e.Label,
|
124
|
+
{
|
125
|
+
ref: r,
|
126
|
+
className: s(
|
127
|
+
"px-2 py-1.5 text-sm font-semibold",
|
128
|
+
a && "pl-8",
|
129
|
+
t
|
130
|
+
),
|
131
|
+
...o
|
132
|
+
}
|
133
|
+
));
|
134
|
+
M.displayName = e.Label.displayName;
|
135
|
+
const R = d.forwardRef(({ className: t, ...a }, o) => /* @__PURE__ */ n(
|
136
|
+
e.Separator,
|
137
|
+
{
|
138
|
+
ref: o,
|
139
|
+
className: s("-mx-1 my-1 h-px bg-muted", t),
|
140
|
+
...a
|
141
|
+
}
|
142
|
+
));
|
143
|
+
R.displayName = e.Separator.displayName;
|
144
|
+
const v = ({
|
145
|
+
className: t,
|
146
|
+
...a
|
147
|
+
}) => /* @__PURE__ */ n(
|
148
|
+
"span",
|
149
|
+
{
|
150
|
+
className: s(
|
151
|
+
"ml-auto text-xs tracking-widest text-muted-foreground",
|
152
|
+
t
|
153
|
+
),
|
154
|
+
...a
|
155
|
+
}
|
156
|
+
);
|
157
|
+
v.displayname = "MenubarShortcut";
|
158
|
+
export {
|
159
|
+
f as Menubar,
|
160
|
+
h as MenubarCheckboxItem,
|
161
|
+
N as MenubarContent,
|
162
|
+
z as MenubarGroup,
|
163
|
+
y as MenubarItem,
|
164
|
+
M as MenubarLabel,
|
165
|
+
k as MenubarMenu,
|
166
|
+
T as MenubarPortal,
|
167
|
+
G as MenubarRadioGroup,
|
168
|
+
w as MenubarRadioItem,
|
169
|
+
R as MenubarSeparator,
|
170
|
+
v as MenubarShortcut,
|
171
|
+
j as MenubarSub,
|
172
|
+
x as MenubarSubContent,
|
173
|
+
g as MenubarSubTrigger,
|
174
|
+
b as MenubarTrigger
|
175
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Menubar';
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { Menubar as u, MenubarCheckboxItem as a, MenubarContent as b, MenubarGroup as n, MenubarItem as M, MenubarLabel as o, MenubarMenu as t, MenubarPortal as S, MenubarRadioGroup as g, MenubarRadioItem as i, MenubarSeparator as m, MenubarShortcut as p, MenubarSub as C, MenubarSubContent as I, MenubarSubTrigger as c, MenubarTrigger as d } from "./Menubar.mjs";
|
2
|
+
export {
|
3
|
+
u as Menubar,
|
4
|
+
a as MenubarCheckboxItem,
|
5
|
+
b as MenubarContent,
|
6
|
+
n as MenubarGroup,
|
7
|
+
M as MenubarItem,
|
8
|
+
o as MenubarLabel,
|
9
|
+
t as MenubarMenu,
|
10
|
+
S as MenubarPortal,
|
11
|
+
g as MenubarRadioGroup,
|
12
|
+
i as MenubarRadioItem,
|
13
|
+
m as MenubarSeparator,
|
14
|
+
p as MenubarShortcut,
|
15
|
+
C as MenubarSub,
|
16
|
+
I as MenubarSubContent,
|
17
|
+
c as MenubarSubTrigger,
|
18
|
+
d as MenubarTrigger
|
19
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import * as React from "react";
|
2
|
+
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
3
|
+
declare const NavigationMenu: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
4
|
+
declare const NavigationMenuList: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuListProps & React.RefAttributes<HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
5
|
+
declare const NavigationMenuItem: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>>;
|
6
|
+
declare const NavigationMenuTrigger: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
7
|
+
declare const NavigationMenuContent: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
8
|
+
declare const NavigationMenuLink: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
9
|
+
declare const NavigationMenuViewport: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuViewportProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
10
|
+
declare const NavigationMenuIndicator: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuIndicatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
11
|
+
export { NavigationMenu, NavigationMenuList, NavigationMenuItem, NavigationMenuContent, NavigationMenuTrigger, NavigationMenuLink, NavigationMenuIndicator, NavigationMenuViewport, };
|
@@ -0,0 +1,101 @@
|
|
1
|
+
import { jsxs as s, jsx as i } from "react/jsx-runtime";
|
2
|
+
import * as r from "react";
|
3
|
+
import * as t from "@radix-ui/react-navigation-menu";
|
4
|
+
import { ChevronDown as l } from "lucide-react";
|
5
|
+
import { cn as n } from "@oneplatformdev/utils";
|
6
|
+
import { navigationMenuVariants as f } from "./navigationMenuVariants.mjs";
|
7
|
+
const p = r.forwardRef(({ className: a, children: e, ...o }, d) => /* @__PURE__ */ s(
|
8
|
+
t.Root,
|
9
|
+
{
|
10
|
+
ref: d,
|
11
|
+
className: n(
|
12
|
+
"relative z-10 flex max-w-max flex-1 items-center justify-center",
|
13
|
+
a
|
14
|
+
),
|
15
|
+
...o,
|
16
|
+
children: [
|
17
|
+
e,
|
18
|
+
/* @__PURE__ */ i(m, {})
|
19
|
+
]
|
20
|
+
}
|
21
|
+
));
|
22
|
+
p.displayName = t.Root.displayName;
|
23
|
+
const u = r.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ i(
|
24
|
+
t.List,
|
25
|
+
{
|
26
|
+
ref: o,
|
27
|
+
className: n(
|
28
|
+
"group flex flex-1 list-none items-center justify-center space-x-1",
|
29
|
+
a
|
30
|
+
),
|
31
|
+
...e
|
32
|
+
}
|
33
|
+
));
|
34
|
+
u.displayName = t.List.displayName;
|
35
|
+
const y = t.Item, c = r.forwardRef(({ className: a, children: e, ...o }, d) => /* @__PURE__ */ s(
|
36
|
+
t.Trigger,
|
37
|
+
{
|
38
|
+
ref: d,
|
39
|
+
className: n(f(), "group", a),
|
40
|
+
...o,
|
41
|
+
children: [
|
42
|
+
e,
|
43
|
+
" ",
|
44
|
+
/* @__PURE__ */ i(
|
45
|
+
l,
|
46
|
+
{
|
47
|
+
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180",
|
48
|
+
"aria-hidden": "true"
|
49
|
+
}
|
50
|
+
)
|
51
|
+
]
|
52
|
+
}
|
53
|
+
));
|
54
|
+
c.displayName = t.Trigger.displayName;
|
55
|
+
const v = r.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ i(
|
56
|
+
t.Content,
|
57
|
+
{
|
58
|
+
ref: o,
|
59
|
+
className: n(
|
60
|
+
"left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",
|
61
|
+
a
|
62
|
+
),
|
63
|
+
...e
|
64
|
+
}
|
65
|
+
));
|
66
|
+
v.displayName = t.Content.displayName;
|
67
|
+
const M = t.Link, m = r.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ i("div", { className: n("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ i(
|
68
|
+
t.Viewport,
|
69
|
+
{
|
70
|
+
className: n(
|
71
|
+
"origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",
|
72
|
+
a
|
73
|
+
),
|
74
|
+
ref: o,
|
75
|
+
...e
|
76
|
+
}
|
77
|
+
) }));
|
78
|
+
m.displayName = t.Viewport.displayName;
|
79
|
+
const N = r.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ i(
|
80
|
+
t.Indicator,
|
81
|
+
{
|
82
|
+
ref: o,
|
83
|
+
className: n(
|
84
|
+
"top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",
|
85
|
+
a
|
86
|
+
),
|
87
|
+
...e,
|
88
|
+
children: /* @__PURE__ */ i("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
89
|
+
}
|
90
|
+
));
|
91
|
+
N.displayName = t.Indicator.displayName;
|
92
|
+
export {
|
93
|
+
p as NavigationMenu,
|
94
|
+
v as NavigationMenuContent,
|
95
|
+
N as NavigationMenuIndicator,
|
96
|
+
y as NavigationMenuItem,
|
97
|
+
M as NavigationMenuLink,
|
98
|
+
u as NavigationMenuList,
|
99
|
+
c as NavigationMenuTrigger,
|
100
|
+
m as NavigationMenuViewport
|
101
|
+
};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { NavigationMenu as a, NavigationMenuContent as t, NavigationMenuIndicator as o, NavigationMenuItem as e, NavigationMenuLink as g, NavigationMenuList as r, NavigationMenuTrigger as u, NavigationMenuViewport as v } from "./NavigationMenu.mjs";
|
2
|
+
import { navigationMenuVariants as N } from "./navigationMenuVariants.mjs";
|
3
|
+
export {
|
4
|
+
a as NavigationMenu,
|
5
|
+
t as NavigationMenuContent,
|
6
|
+
o as NavigationMenuIndicator,
|
7
|
+
e as NavigationMenuItem,
|
8
|
+
g as NavigationMenuLink,
|
9
|
+
r as NavigationMenuList,
|
10
|
+
u as NavigationMenuTrigger,
|
11
|
+
v as NavigationMenuViewport,
|
12
|
+
N as navigationMenuVariants
|
13
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const navigationMenuVariants: (props?: import('class-variance-authority/dist/types').ClassProp | undefined) => string;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { cva as e } from "class-variance-authority";
|
2
|
+
const n = e(
|
3
|
+
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"
|
4
|
+
);
|
5
|
+
export {
|
6
|
+
n as navigationMenuVariants
|
7
|
+
};
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { ButtonProps } from '../Button';
|
2
|
+
import * as React from "react";
|
3
|
+
declare const Pagination: {
|
4
|
+
({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
|
5
|
+
displayName: string;
|
6
|
+
};
|
7
|
+
declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
8
|
+
declare const PaginationItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
9
|
+
type PaginationLinkProps = {
|
10
|
+
isActive?: boolean;
|
11
|
+
} & Pick<ButtonProps, "size"> & React.ComponentProps<"a">;
|
12
|
+
declare const PaginationLink: {
|
13
|
+
({ className, isActive, size, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
|
14
|
+
displayName: string;
|
15
|
+
};
|
16
|
+
declare const PaginationPrevious: {
|
17
|
+
({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
|
18
|
+
displayName: string;
|
19
|
+
};
|
20
|
+
declare const PaginationNext: {
|
21
|
+
({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
|
22
|
+
displayName: string;
|
23
|
+
};
|
24
|
+
declare const PaginationEllipsis: {
|
25
|
+
({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
26
|
+
displayName: string;
|
27
|
+
};
|
28
|
+
export { Pagination, PaginationContent, PaginationLink, PaginationItem, PaginationPrevious, PaginationNext, PaginationEllipsis, };
|
@@ -0,0 +1,106 @@
|
|
1
|
+
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
2
|
+
import * as l from "react";
|
3
|
+
import { ChevronLeft as m, ChevronRight as c, MoreHorizontal as p } from "lucide-react";
|
4
|
+
import { cn as n } from "@oneplatformdev/utils";
|
5
|
+
import "../Button/Button.mjs";
|
6
|
+
import { buttonVariants as g } from "../Button/buttonVariants.mjs";
|
7
|
+
const d = ({ className: i, ...a }) => /* @__PURE__ */ e(
|
8
|
+
"nav",
|
9
|
+
{
|
10
|
+
role: "navigation",
|
11
|
+
"aria-label": "pagination",
|
12
|
+
className: n("mx-auto flex w-full justify-center", i),
|
13
|
+
...a
|
14
|
+
}
|
15
|
+
);
|
16
|
+
d.displayName = "Pagination";
|
17
|
+
const N = l.forwardRef(({ className: i, ...a }, t) => /* @__PURE__ */ e(
|
18
|
+
"ul",
|
19
|
+
{
|
20
|
+
ref: t,
|
21
|
+
className: n("flex flex-row items-center gap-1", i),
|
22
|
+
...a
|
23
|
+
}
|
24
|
+
));
|
25
|
+
N.displayName = "PaginationContent";
|
26
|
+
const f = l.forwardRef(({ className: i, ...a }, t) => /* @__PURE__ */ e("li", { ref: t, className: n("", i), ...a }));
|
27
|
+
f.displayName = "PaginationItem";
|
28
|
+
const s = ({
|
29
|
+
className: i,
|
30
|
+
isActive: a,
|
31
|
+
size: t = "icon",
|
32
|
+
...r
|
33
|
+
}) => /* @__PURE__ */ e(
|
34
|
+
"a",
|
35
|
+
{
|
36
|
+
"aria-current": a ? "page" : void 0,
|
37
|
+
className: n(
|
38
|
+
g({
|
39
|
+
variant: a ? "outline" : "ghost",
|
40
|
+
size: t
|
41
|
+
}),
|
42
|
+
i
|
43
|
+
),
|
44
|
+
...r
|
45
|
+
}
|
46
|
+
);
|
47
|
+
s.displayName = "PaginationLink";
|
48
|
+
const P = ({
|
49
|
+
className: i,
|
50
|
+
...a
|
51
|
+
}) => /* @__PURE__ */ o(
|
52
|
+
s,
|
53
|
+
{
|
54
|
+
"aria-label": "Go to previous page",
|
55
|
+
size: "default",
|
56
|
+
className: n("gap-1 pl-2.5", i),
|
57
|
+
...a,
|
58
|
+
children: [
|
59
|
+
/* @__PURE__ */ e(m, { className: "h-4 w-4" }),
|
60
|
+
/* @__PURE__ */ e("span", { children: "Previous" })
|
61
|
+
]
|
62
|
+
}
|
63
|
+
);
|
64
|
+
P.displayName = "PaginationPrevious";
|
65
|
+
const u = ({
|
66
|
+
className: i,
|
67
|
+
...a
|
68
|
+
}) => /* @__PURE__ */ o(
|
69
|
+
s,
|
70
|
+
{
|
71
|
+
"aria-label": "Go to next page",
|
72
|
+
size: "default",
|
73
|
+
className: n("gap-1 pr-2.5", i),
|
74
|
+
...a,
|
75
|
+
children: [
|
76
|
+
/* @__PURE__ */ e("span", { children: "Next" }),
|
77
|
+
/* @__PURE__ */ e(c, { className: "h-4 w-4" })
|
78
|
+
]
|
79
|
+
}
|
80
|
+
);
|
81
|
+
u.displayName = "PaginationNext";
|
82
|
+
const h = ({
|
83
|
+
className: i,
|
84
|
+
...a
|
85
|
+
}) => /* @__PURE__ */ o(
|
86
|
+
"span",
|
87
|
+
{
|
88
|
+
"aria-hidden": !0,
|
89
|
+
className: n("flex h-9 w-9 items-center justify-center", i),
|
90
|
+
...a,
|
91
|
+
children: [
|
92
|
+
/* @__PURE__ */ e(p, { className: "h-4 w-4" }),
|
93
|
+
/* @__PURE__ */ e("span", { className: "sr-only", children: "More pages" })
|
94
|
+
]
|
95
|
+
}
|
96
|
+
);
|
97
|
+
h.displayName = "PaginationEllipsis";
|
98
|
+
export {
|
99
|
+
d as Pagination,
|
100
|
+
N as PaginationContent,
|
101
|
+
h as PaginationEllipsis,
|
102
|
+
f as PaginationItem,
|
103
|
+
s as PaginationLink,
|
104
|
+
u as PaginationNext,
|
105
|
+
P as PaginationPrevious
|
106
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Pagination';
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { Pagination as a, PaginationContent as t, PaginationEllipsis as o, PaginationItem as P, PaginationLink as g, PaginationNext as e, PaginationPrevious as r } from "./Pagination.mjs";
|
2
|
+
export {
|
3
|
+
a as Pagination,
|
4
|
+
t as PaginationContent,
|
5
|
+
o as PaginationEllipsis,
|
6
|
+
P as PaginationItem,
|
7
|
+
g as PaginationLink,
|
8
|
+
e as PaginationNext,
|
9
|
+
r as PaginationPrevious
|
10
|
+
};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import * as React from "react";
|
2
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
3
|
+
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
4
|
+
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
5
|
+
declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
|
6
|
+
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
7
|
+
export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
2
|
+
import * as n from "react";
|
3
|
+
import * as o from "@radix-ui/react-popover";
|
4
|
+
import { cn as s } from "@oneplatformdev/utils";
|
5
|
+
const l = o.Root, c = o.Trigger, g = o.Anchor, m = n.forwardRef(({ className: e, align: a = "center", sideOffset: r = 4, ...d }, i) => /* @__PURE__ */ t(o.Portal, { children: /* @__PURE__ */ t(
|
6
|
+
o.Content,
|
7
|
+
{
|
8
|
+
ref: i,
|
9
|
+
align: a,
|
10
|
+
sideOffset: r,
|
11
|
+
className: s(
|
12
|
+
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",
|
13
|
+
e
|
14
|
+
),
|
15
|
+
...d
|
16
|
+
}
|
17
|
+
) }));
|
18
|
+
m.displayName = o.Content.displayName;
|
19
|
+
export {
|
20
|
+
l as Popover,
|
21
|
+
g as PopoverAnchor,
|
22
|
+
m as PopoverContent,
|
23
|
+
c as PopoverTrigger
|
24
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Popover';
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import * as React from "react";
|
2
|
+
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
3
|
+
declare const Progress: React.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
4
|
+
export { Progress };
|