@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,139 @@
|
|
1
|
+
import { cva as r } from "class-variance-authority";
|
2
|
+
const e = r(
|
3
|
+
"aspect-square inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
4
|
+
{
|
5
|
+
variants: {
|
6
|
+
variant: {
|
7
|
+
contained: "border shadow",
|
8
|
+
outlined: "border bg-transparent hover:shadow-sm",
|
9
|
+
ghost: "bg-transparent hover:bg-accent hover:text-accent-foreground",
|
10
|
+
link: "underline-offset-4 hover:underline bg-transparent hover:bg-transparent"
|
11
|
+
},
|
12
|
+
color: {
|
13
|
+
primary: "",
|
14
|
+
secondary: "",
|
15
|
+
error: "",
|
16
|
+
success: "",
|
17
|
+
disabled: "contrast-50"
|
18
|
+
},
|
19
|
+
size: {
|
20
|
+
sm: "w-8 h-8 rounded-sm text-xs [&_svg]:size-4",
|
21
|
+
md: "w-9 h-9 px-4 rounded-md [&_svg]:size-5",
|
22
|
+
lg: "w-10 h-10 rounded-md [&_svg]:size-6",
|
23
|
+
icon: "h-9 w-9 [&_svg]:size-5 rounded-sm"
|
24
|
+
},
|
25
|
+
disabled: {
|
26
|
+
true: "cursor-not-allowed contrast-50",
|
27
|
+
false: "cursor-pointer"
|
28
|
+
},
|
29
|
+
rounded: {
|
30
|
+
true: "rounded-full",
|
31
|
+
false: ""
|
32
|
+
}
|
33
|
+
},
|
34
|
+
compoundVariants: [
|
35
|
+
// contained
|
36
|
+
{
|
37
|
+
variant: "contained",
|
38
|
+
color: "primary",
|
39
|
+
disabled: !1,
|
40
|
+
className: "bg-typography-primary border-typography-primary text-white dark:bg-gray-3 dark:border-gray-3 dark:text-typography-secondary"
|
41
|
+
},
|
42
|
+
{
|
43
|
+
variant: "contained",
|
44
|
+
color: "secondary",
|
45
|
+
disabled: !1,
|
46
|
+
className: "bg-gray-2 border-gray-2 text-typography-primary dark:bg-gray-3 dark:border-gray-3 dark:text-typography-secondary"
|
47
|
+
},
|
48
|
+
{
|
49
|
+
variant: "contained",
|
50
|
+
color: "error",
|
51
|
+
disabled: !1,
|
52
|
+
className: "bg-typography-error/90 border-typography-error/90 text-white dark:bg-typography-error/80 dark:border-typography-error/80 dark:text-typography-primary"
|
53
|
+
},
|
54
|
+
{
|
55
|
+
variant: "contained",
|
56
|
+
color: "success",
|
57
|
+
disabled: !1,
|
58
|
+
className: "bg-typography-success/90 border-typography-success/90 text-white dark:bg-typography-success/80 dark:border-typography-success/80 dark:text-typography-primary"
|
59
|
+
},
|
60
|
+
// outlined
|
61
|
+
{
|
62
|
+
variant: "outlined",
|
63
|
+
color: "primary",
|
64
|
+
disabled: !1,
|
65
|
+
className: "border-typography-primary text-typography-primary hover:bg-typography-primary/15"
|
66
|
+
},
|
67
|
+
{
|
68
|
+
variant: "outlined",
|
69
|
+
color: "secondary",
|
70
|
+
disabled: !1,
|
71
|
+
className: "border-border text-typography-secondary hover:bg-border-border/15"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
variant: "outlined",
|
75
|
+
color: "error",
|
76
|
+
disabled: !1,
|
77
|
+
className: "border-typography-error text-typography-error hover:bg-typography-error/15"
|
78
|
+
},
|
79
|
+
{
|
80
|
+
variant: "outlined",
|
81
|
+
color: "success",
|
82
|
+
disabled: !1,
|
83
|
+
className: "border-typography-success text-typography-success hover:bg-typography-success/15"
|
84
|
+
},
|
85
|
+
// link - ghost
|
86
|
+
{
|
87
|
+
variant: ["link", "ghost"],
|
88
|
+
color: "primary",
|
89
|
+
className: "text-typography-primary"
|
90
|
+
},
|
91
|
+
{
|
92
|
+
variant: ["link", "ghost"],
|
93
|
+
color: "secondary",
|
94
|
+
className: "text-typography-secondary"
|
95
|
+
},
|
96
|
+
{
|
97
|
+
variant: ["link", "ghost"],
|
98
|
+
color: "success",
|
99
|
+
className: "text-typography-success"
|
100
|
+
},
|
101
|
+
{
|
102
|
+
variant: ["link", "ghost"],
|
103
|
+
color: "error",
|
104
|
+
className: "text-typography-error"
|
105
|
+
},
|
106
|
+
// ghost
|
107
|
+
{
|
108
|
+
variant: "ghost",
|
109
|
+
color: "primary",
|
110
|
+
className: "hover:bg-typography-primary/15"
|
111
|
+
},
|
112
|
+
{
|
113
|
+
variant: "ghost",
|
114
|
+
color: "secondary",
|
115
|
+
className: "hover:bg-typography-secondary/15"
|
116
|
+
},
|
117
|
+
{
|
118
|
+
variant: "ghost",
|
119
|
+
color: "success",
|
120
|
+
className: "hover:bg-typography-success/15"
|
121
|
+
},
|
122
|
+
{
|
123
|
+
variant: "ghost",
|
124
|
+
color: "error",
|
125
|
+
className: "hover:bg-typography-error/15"
|
126
|
+
}
|
127
|
+
],
|
128
|
+
defaultVariants: {
|
129
|
+
variant: "contained",
|
130
|
+
size: "md",
|
131
|
+
color: "primary",
|
132
|
+
disabled: !1,
|
133
|
+
rounded: !1
|
134
|
+
}
|
135
|
+
}
|
136
|
+
);
|
137
|
+
export {
|
138
|
+
e as buttonIconVariants
|
139
|
+
};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { DayPicker } from 'react-day-picker';
|
2
|
+
import * as React from "react";
|
3
|
+
export type CalendarProps = React.ComponentProps<typeof DayPicker>;
|
4
|
+
declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps): import("react/jsx-runtime").JSX.Element;
|
5
|
+
declare namespace Calendar {
|
6
|
+
var displayName: string;
|
7
|
+
}
|
8
|
+
export { Calendar };
|
@@ -0,0 +1,63 @@
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
2
|
+
import { ChevronLeft as i, ChevronRight as l } from "lucide-react";
|
3
|
+
import { DayPicker as m } from "react-day-picker";
|
4
|
+
import { cn as e } from "@oneplatformdev/utils";
|
5
|
+
import "../Button/Button.mjs";
|
6
|
+
import { buttonVariants as o } from "../Button/buttonVariants.mjs";
|
7
|
+
function u({
|
8
|
+
className: n,
|
9
|
+
classNames: s,
|
10
|
+
showOutsideDays: c = !0,
|
11
|
+
...d
|
12
|
+
}) {
|
13
|
+
return /* @__PURE__ */ r(
|
14
|
+
m,
|
15
|
+
{
|
16
|
+
showOutsideDays: c,
|
17
|
+
className: e("p-3", n),
|
18
|
+
classNames: {
|
19
|
+
months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
|
20
|
+
month: "space-y-4",
|
21
|
+
caption: "flex justify-center pt-1 relative items-center",
|
22
|
+
caption_label: "text-sm font-medium",
|
23
|
+
nav: "space-x-1 flex items-center",
|
24
|
+
nav_button: e(
|
25
|
+
o({ variant: "outline" }),
|
26
|
+
"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"
|
27
|
+
),
|
28
|
+
nav_button_previous: "absolute left-1",
|
29
|
+
nav_button_next: "absolute right-1",
|
30
|
+
table: "w-full border-collapse space-y-1",
|
31
|
+
head_row: "flex",
|
32
|
+
head_cell: "text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",
|
33
|
+
row: "flex w-full mt-2",
|
34
|
+
cell: e(
|
35
|
+
"relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",
|
36
|
+
d.mode === "range" ? "[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md" : "[&:has([aria-selected])]:rounded-md"
|
37
|
+
),
|
38
|
+
day: e(
|
39
|
+
o({ variant: "ghost" }),
|
40
|
+
"h-8 w-8 p-0 font-normal aria-selected:opacity-100"
|
41
|
+
),
|
42
|
+
day_range_start: "day-range-start",
|
43
|
+
day_range_end: "day-range-end",
|
44
|
+
day_selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
|
45
|
+
day_today: "bg-accent text-accent-foreground",
|
46
|
+
day_outside: "day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",
|
47
|
+
day_disabled: "text-muted-foreground opacity-50",
|
48
|
+
day_range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground",
|
49
|
+
day_hidden: "invisible",
|
50
|
+
...s
|
51
|
+
},
|
52
|
+
components: {
|
53
|
+
IconLeft: ({ className: a, ...t }) => /* @__PURE__ */ r(i, { className: e("h-4 w-4", a), ...t }),
|
54
|
+
IconRight: ({ className: a, ...t }) => /* @__PURE__ */ r(l, { className: e("h-4 w-4", a), ...t })
|
55
|
+
},
|
56
|
+
...d
|
57
|
+
}
|
58
|
+
);
|
59
|
+
}
|
60
|
+
u.displayName = "Calendar";
|
61
|
+
export {
|
62
|
+
u as Calendar
|
63
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Calendar';
|
package/Card/Card.d.ts
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
import * as React from "react";
|
2
|
+
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
3
|
+
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
4
|
+
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
5
|
+
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
6
|
+
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
7
|
+
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
8
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };
|
package/Card/Card.mjs
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
2
|
+
import * as o from "react";
|
3
|
+
import { cn as t } from "@oneplatformdev/utils";
|
4
|
+
const s = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ d(
|
5
|
+
"div",
|
6
|
+
{
|
7
|
+
ref: r,
|
8
|
+
className: t(
|
9
|
+
"rounded-xl border bg-card text-card-foreground shadow",
|
10
|
+
a
|
11
|
+
),
|
12
|
+
...e
|
13
|
+
}
|
14
|
+
));
|
15
|
+
s.displayName = "Card";
|
16
|
+
const i = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ d(
|
17
|
+
"div",
|
18
|
+
{
|
19
|
+
ref: r,
|
20
|
+
className: t("flex flex-col space-y-1.5 p-6", a),
|
21
|
+
...e
|
22
|
+
}
|
23
|
+
));
|
24
|
+
i.displayName = "CardHeader";
|
25
|
+
const c = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ d(
|
26
|
+
"div",
|
27
|
+
{
|
28
|
+
ref: r,
|
29
|
+
className: t("font-semibold leading-none tracking-tight", a),
|
30
|
+
...e
|
31
|
+
}
|
32
|
+
));
|
33
|
+
c.displayName = "CardTitle";
|
34
|
+
const m = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ d(
|
35
|
+
"div",
|
36
|
+
{
|
37
|
+
ref: r,
|
38
|
+
className: t("text-sm text-muted-foreground", a),
|
39
|
+
...e
|
40
|
+
}
|
41
|
+
));
|
42
|
+
m.displayName = "CardDescription";
|
43
|
+
const n = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ d("div", { ref: r, className: t("p-6 pt-0", a), ...e }));
|
44
|
+
n.displayName = "CardContent";
|
45
|
+
const f = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ d(
|
46
|
+
"div",
|
47
|
+
{
|
48
|
+
ref: r,
|
49
|
+
className: t("flex items-center p-6 pt-0", a),
|
50
|
+
...e
|
51
|
+
}
|
52
|
+
));
|
53
|
+
f.displayName = "CardFooter";
|
54
|
+
export {
|
55
|
+
s as Card,
|
56
|
+
n as CardContent,
|
57
|
+
m as CardDescription,
|
58
|
+
f as CardFooter,
|
59
|
+
i as CardHeader,
|
60
|
+
c as CardTitle
|
61
|
+
};
|
package/Card/index.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Card';
|
package/Card/index.mjs
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
import { default as useEmblaCarousel, UseEmblaCarouselType } from 'embla-carousel-react';
|
2
|
+
import * as React from "react";
|
3
|
+
type CarouselApi = UseEmblaCarouselType[1];
|
4
|
+
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
|
5
|
+
type CarouselOptions = UseCarouselParameters[0];
|
6
|
+
type CarouselPlugin = UseCarouselParameters[1];
|
7
|
+
type CarouselProps = {
|
8
|
+
opts?: CarouselOptions;
|
9
|
+
plugins?: CarouselPlugin;
|
10
|
+
orientation?: "horizontal" | "vertical";
|
11
|
+
setApi?: (api: CarouselApi) => void;
|
12
|
+
};
|
13
|
+
declare const Carousel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & CarouselProps & React.RefAttributes<HTMLDivElement>>;
|
14
|
+
declare const CarouselContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
15
|
+
declare const CarouselItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
16
|
+
declare const CarouselPrevious: React.ForwardRefExoticComponent<Omit<import('../Button').ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
17
|
+
declare const CarouselNext: React.ForwardRefExoticComponent<Omit<import('../Button').ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
18
|
+
export { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, };
|
@@ -0,0 +1,168 @@
|
|
1
|
+
import { jsx as s, jsxs as x } from "react/jsx-runtime";
|
2
|
+
import * as r from "react";
|
3
|
+
import k from "embla-carousel-react";
|
4
|
+
import { ArrowLeft as z, ArrowRight as g } from "lucide-react";
|
5
|
+
import { cn as m } from "@oneplatformdev/utils";
|
6
|
+
import { Button as w } from "../Button/Button.mjs";
|
7
|
+
import "../Button/buttonVariants.mjs";
|
8
|
+
const v = r.createContext(null);
|
9
|
+
function C() {
|
10
|
+
const o = r.useContext(v);
|
11
|
+
if (!o)
|
12
|
+
throw new Error("useCarousel must be used within a <Carousel />");
|
13
|
+
return o;
|
14
|
+
}
|
15
|
+
const D = r.forwardRef(
|
16
|
+
({
|
17
|
+
orientation: o = "horizontal",
|
18
|
+
opts: l,
|
19
|
+
setApi: t,
|
20
|
+
plugins: a,
|
21
|
+
className: c,
|
22
|
+
children: i,
|
23
|
+
...u
|
24
|
+
}, f) => {
|
25
|
+
const [y, e] = k(
|
26
|
+
{
|
27
|
+
...l,
|
28
|
+
axis: o === "horizontal" ? "x" : "y"
|
29
|
+
},
|
30
|
+
a
|
31
|
+
), [b, p] = r.useState(!1), [P, S] = r.useState(!1), d = r.useCallback((n) => {
|
32
|
+
n && (p(n.canScrollPrev()), S(n.canScrollNext()));
|
33
|
+
}, []), h = r.useCallback(() => {
|
34
|
+
e == null || e.scrollPrev();
|
35
|
+
}, [e]), N = r.useCallback(() => {
|
36
|
+
e == null || e.scrollNext();
|
37
|
+
}, [e]), R = r.useCallback(
|
38
|
+
(n) => {
|
39
|
+
n.key === "ArrowLeft" ? (n.preventDefault(), h()) : n.key === "ArrowRight" && (n.preventDefault(), N());
|
40
|
+
},
|
41
|
+
[h, N]
|
42
|
+
);
|
43
|
+
return r.useEffect(() => {
|
44
|
+
!e || !t || t(e);
|
45
|
+
}, [e, t]), r.useEffect(() => {
|
46
|
+
if (e)
|
47
|
+
return d(e), e.on("reInit", d), e.on("select", d), () => {
|
48
|
+
e == null || e.off("select", d);
|
49
|
+
};
|
50
|
+
}, [e, d]), /* @__PURE__ */ s(
|
51
|
+
v.Provider,
|
52
|
+
{
|
53
|
+
value: {
|
54
|
+
carouselRef: y,
|
55
|
+
api: e,
|
56
|
+
opts: l,
|
57
|
+
orientation: o || ((l == null ? void 0 : l.axis) === "y" ? "vertical" : "horizontal"),
|
58
|
+
scrollPrev: h,
|
59
|
+
scrollNext: N,
|
60
|
+
canScrollPrev: b,
|
61
|
+
canScrollNext: P
|
62
|
+
},
|
63
|
+
children: /* @__PURE__ */ s(
|
64
|
+
"div",
|
65
|
+
{
|
66
|
+
ref: f,
|
67
|
+
onKeyDownCapture: R,
|
68
|
+
className: m("relative", c),
|
69
|
+
role: "region",
|
70
|
+
"aria-roledescription": "carousel",
|
71
|
+
...u,
|
72
|
+
children: i
|
73
|
+
}
|
74
|
+
)
|
75
|
+
}
|
76
|
+
);
|
77
|
+
}
|
78
|
+
);
|
79
|
+
D.displayName = "Carousel";
|
80
|
+
const E = r.forwardRef(({ className: o, ...l }, t) => {
|
81
|
+
const { carouselRef: a, orientation: c } = C();
|
82
|
+
return /* @__PURE__ */ s("div", { ref: a, className: "overflow-hidden", children: /* @__PURE__ */ s(
|
83
|
+
"div",
|
84
|
+
{
|
85
|
+
ref: t,
|
86
|
+
className: m(
|
87
|
+
"flex",
|
88
|
+
c === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
|
89
|
+
o
|
90
|
+
),
|
91
|
+
...l
|
92
|
+
}
|
93
|
+
) });
|
94
|
+
});
|
95
|
+
E.displayName = "CarouselContent";
|
96
|
+
const I = r.forwardRef(({ className: o, ...l }, t) => {
|
97
|
+
const { orientation: a } = C();
|
98
|
+
return /* @__PURE__ */ s(
|
99
|
+
"div",
|
100
|
+
{
|
101
|
+
ref: t,
|
102
|
+
role: "group",
|
103
|
+
"aria-roledescription": "slide",
|
104
|
+
className: m(
|
105
|
+
"min-w-0 shrink-0 grow-0 basis-full",
|
106
|
+
a === "horizontal" ? "pl-4" : "pt-4",
|
107
|
+
o
|
108
|
+
),
|
109
|
+
...l
|
110
|
+
}
|
111
|
+
);
|
112
|
+
});
|
113
|
+
I.displayName = "CarouselItem";
|
114
|
+
const j = r.forwardRef(({ className: o, variant: l = "outline", size: t = "icon", ...a }, c) => {
|
115
|
+
const { orientation: i, scrollPrev: u, canScrollPrev: f } = C();
|
116
|
+
return /* @__PURE__ */ x(
|
117
|
+
w,
|
118
|
+
{
|
119
|
+
ref: c,
|
120
|
+
variant: l,
|
121
|
+
size: t,
|
122
|
+
className: m(
|
123
|
+
"absolute h-8 w-8 rounded-full",
|
124
|
+
i === "horizontal" ? "-left-12 top-1/2 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
125
|
+
o
|
126
|
+
),
|
127
|
+
disabled: !f,
|
128
|
+
onClick: u,
|
129
|
+
...a,
|
130
|
+
children: [
|
131
|
+
/* @__PURE__ */ s(z, { className: "h-4 w-4" }),
|
132
|
+
/* @__PURE__ */ s("span", { className: "sr-only", children: "Previous slide" })
|
133
|
+
]
|
134
|
+
}
|
135
|
+
);
|
136
|
+
});
|
137
|
+
j.displayName = "CarouselPrevious";
|
138
|
+
const A = r.forwardRef(({ className: o, variant: l = "outline", size: t = "icon", ...a }, c) => {
|
139
|
+
const { orientation: i, scrollNext: u, canScrollNext: f } = C();
|
140
|
+
return /* @__PURE__ */ x(
|
141
|
+
w,
|
142
|
+
{
|
143
|
+
ref: c,
|
144
|
+
variant: l,
|
145
|
+
size: t,
|
146
|
+
className: m(
|
147
|
+
"absolute h-8 w-8 rounded-full",
|
148
|
+
i === "horizontal" ? "-right-12 top-1/2 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
149
|
+
o
|
150
|
+
),
|
151
|
+
disabled: !f,
|
152
|
+
onClick: u,
|
153
|
+
...a,
|
154
|
+
children: [
|
155
|
+
/* @__PURE__ */ s(g, { className: "h-4 w-4" }),
|
156
|
+
/* @__PURE__ */ s("span", { className: "sr-only", children: "Next slide" })
|
157
|
+
]
|
158
|
+
}
|
159
|
+
);
|
160
|
+
});
|
161
|
+
A.displayName = "CarouselNext";
|
162
|
+
export {
|
163
|
+
D as Carousel,
|
164
|
+
E as CarouselContent,
|
165
|
+
I as CarouselItem,
|
166
|
+
A as CarouselNext,
|
167
|
+
j as CarouselPrevious
|
168
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Carousel';
|
package/Chart/Chart.d.ts
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
import * as React from "react";
|
2
|
+
import * as RechartsPrimitive from "recharts";
|
3
|
+
declare const THEMES: {
|
4
|
+
readonly light: "";
|
5
|
+
readonly dark: ".dark";
|
6
|
+
};
|
7
|
+
export type ChartConfig = {
|
8
|
+
[k in string]: {
|
9
|
+
label?: React.ReactNode;
|
10
|
+
icon?: React.ComponentType;
|
11
|
+
} & ({
|
12
|
+
color?: string;
|
13
|
+
theme?: never;
|
14
|
+
} | {
|
15
|
+
color?: never;
|
16
|
+
theme: Record<keyof typeof THEMES, string>;
|
17
|
+
});
|
18
|
+
};
|
19
|
+
declare const ChartContainer: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
20
|
+
config: ChartConfig;
|
21
|
+
children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
|
22
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
23
|
+
declare const ChartStyle: ({ id, config }: {
|
24
|
+
id: string;
|
25
|
+
config: ChartConfig;
|
26
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
27
|
+
declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
|
28
|
+
declare const ChartTooltipContent: React.ForwardRefExoticComponent<Omit<RechartsPrimitive.DefaultTooltipContentProps<import('recharts/types/component/DefaultTooltipContent').ValueType, import('recharts/types/component/DefaultTooltipContent').NameType> & {
|
29
|
+
accessibilityLayer?: boolean;
|
30
|
+
active?: boolean | undefined;
|
31
|
+
includeHidden?: boolean | undefined;
|
32
|
+
allowEscapeViewBox?: import('recharts/types/util/types').AllowInDimension;
|
33
|
+
animationDuration?: import('recharts/types/util/types').AnimationDuration;
|
34
|
+
animationEasing?: import('recharts/types/util/types').AnimationTiming;
|
35
|
+
content?: import('recharts/types/component/Tooltip').ContentType<import('recharts/types/component/DefaultTooltipContent').ValueType, import('recharts/types/component/DefaultTooltipContent').NameType> | undefined;
|
36
|
+
coordinate?: Partial<import('recharts/types/util/types').Coordinate>;
|
37
|
+
cursor?: boolean | React.ReactElement | React.SVGProps<SVGElement>;
|
38
|
+
filterNull?: boolean;
|
39
|
+
defaultIndex?: number;
|
40
|
+
isAnimationActive?: boolean;
|
41
|
+
offset?: number;
|
42
|
+
payloadUniqBy?: import('recharts/types/util/payload/getUniqPayload').UniqueOption<import('recharts/types/component/DefaultTooltipContent').Payload<import('recharts/types/component/DefaultTooltipContent').ValueType, import('recharts/types/component/DefaultTooltipContent').NameType>> | undefined;
|
43
|
+
position?: Partial<import('recharts/types/util/types').Coordinate>;
|
44
|
+
reverseDirection?: import('recharts/types/util/types').AllowInDimension;
|
45
|
+
shared?: boolean;
|
46
|
+
trigger?: "hover" | "click";
|
47
|
+
useTranslate3d?: boolean;
|
48
|
+
viewBox?: import('recharts/types/util/types').CartesianViewBox;
|
49
|
+
wrapperStyle?: React.CSSProperties;
|
50
|
+
} & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
51
|
+
hideLabel?: boolean;
|
52
|
+
hideIndicator?: boolean;
|
53
|
+
indicator?: "line" | "dot" | "dashed";
|
54
|
+
nameKey?: string;
|
55
|
+
labelKey?: string;
|
56
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
57
|
+
declare const ChartLegend: typeof RechartsPrimitive.Legend;
|
58
|
+
declare const ChartLegendContent: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Pick<RechartsPrimitive.LegendProps, "payload" | "verticalAlign"> & {
|
59
|
+
hideIcon?: boolean;
|
60
|
+
nameKey?: string;
|
61
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
62
|
+
export { ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, ChartLegendContent, ChartStyle, };
|