@oneplatformdev/ui 0.0.1-beta.99 → 0.1.2-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -30
- package/package.json +35 -92
- package/src/globals.css +123 -0
- package/Accordion/Accordion.d.ts +0 -9
- package/Accordion/Accordion.mjs +0 -49
- package/Accordion/index.d.ts +0 -1
- package/Accordion/index.mjs +0 -7
- package/Accordion/package.json +0 -7
- package/Alert/Alert.d.ts +0 -7
- package/Alert/Alert.mjs +0 -37
- package/Alert/alertVariants.d.ts +0 -4
- package/Alert/alertVariants.mjs +0 -19
- package/Alert/index.d.ts +0 -1
- package/Alert/index.mjs +0 -6
- package/Alert/package.json +0 -7
- package/AlertDialog/AlertDialog.d.ts +0 -65
- package/AlertDialog/AlertDialog.mjs +0 -97
- package/AlertDialog/AlertDialog.types.d.ts +0 -53
- package/AlertDialog/AlertDialogRoot.d.ts +0 -21
- package/AlertDialog/AlertDialogRoot.mjs +0 -114
- package/AlertDialog/index.d.ts +0 -3
- package/AlertDialog/index.mjs +0 -16
- package/AlertDialog/package.json +0 -7
- package/AreaChart/AreaChart.d.ts +0 -4
- package/AreaChart/AreaChart.mjs +0 -27
- package/AreaChart/AreaChart.types.d.ts +0 -15
- package/AreaChart/index.d.ts +0 -2
- package/AreaChart/index.mjs +0 -4
- package/AreaChart/package.json +0 -7
- package/Aside/Aside.d.ts +0 -4
- package/Aside/Aside.mjs +0 -23
- package/Aside/Aside.types.d.ts +0 -18
- package/Aside/AsideSidebar.d.ts +0 -3
- package/Aside/AsideSidebar.mjs +0 -37
- package/Aside/index.d.ts +0 -3
- package/Aside/index.mjs +0 -7
- package/Aside/package.json +0 -7
- package/AspectRatio/AspectRatio.d.ts +0 -2
- package/AspectRatio/AspectRatio.mjs +0 -5
- package/AspectRatio/index.d.ts +0 -1
- package/AspectRatio/index.mjs +0 -5
- package/AspectRatio/package.json +0 -7
- package/Avatar/Avatar.d.ts +0 -5
- package/Avatar/Avatar.mjs +0 -42
- package/Avatar/index.d.ts +0 -1
- package/Avatar/index.mjs +0 -6
- package/Avatar/package.json +0 -7
- package/Badge/Badge.d.ts +0 -5
- package/Badge/Badge.mjs +0 -10
- package/Badge/Badge.types.d.ts +0 -5
- package/Badge/badgeVariants.d.ts +0 -3
- package/Badge/badgeVariants.mjs +0 -20
- package/Badge/index.d.ts +0 -3
- package/Badge/index.mjs +0 -6
- package/Badge/package.json +0 -7
- package/Breadcrumb/Breadcrumb.d.ts +0 -19
- package/Breadcrumb/Breadcrumb.mjs +0 -90
- package/Breadcrumb/index.d.ts +0 -1
- package/Breadcrumb/index.mjs +0 -10
- package/Breadcrumb/package.json +0 -7
- package/Button/Button.d.ts +0 -4
- package/Button/Button.mjs +0 -32
- package/Button/Button.types.d.ts +0 -8
- package/Button/buttonVariants.d.ts +0 -4
- package/Button/buttonVariants.mjs +0 -29
- package/Button/index.d.ts +0 -3
- package/Button/index.mjs +0 -7
- package/Button/package.json +0 -7
- package/ButtonIcon/ButtonIcon.d.ts +0 -3
- package/ButtonIcon/ButtonIcon.mjs +0 -29
- package/ButtonIcon/ButtonIcon.types.d.ts +0 -7
- package/ButtonIcon/buttonIconVariants.d.ts +0 -7
- package/ButtonIcon/buttonIconVariants.mjs +0 -139
- package/ButtonIcon/index.d.ts +0 -3
- package/ButtonIcon/index.mjs +0 -7
- package/ButtonIcon/package.json +0 -7
- package/Calendar/Calendar.d.ts +0 -8
- package/Calendar/Calendar.mjs +0 -64
- package/Calendar/index.d.ts +0 -1
- package/Calendar/index.mjs +0 -4
- package/Calendar/package.json +0 -7
- package/Card/Card.d.ts +0 -8
- package/Card/Card.mjs +0 -61
- package/Card/index.d.ts +0 -1
- package/Card/index.mjs +0 -9
- package/Card/package.json +0 -7
- package/Carousel/Carousel.d.ts +0 -18
- package/Carousel/Carousel.mjs +0 -168
- package/Carousel/index.d.ts +0 -1
- package/Carousel/index.mjs +0 -8
- package/Carousel/package.json +0 -7
- package/Chart/Chart.d.ts +0 -62
- package/Chart/Chart.mjs +0 -210
- package/Chart/index.d.ts +0 -1
- package/Chart/index.mjs +0 -9
- package/Chart/package.json +0 -7
- package/Checkbox/Checkbox.d.ts +0 -5
- package/Checkbox/Checkbox.mjs +0 -54
- package/Checkbox/Checkbox.types.d.ts +0 -10
- package/Checkbox/index.d.ts +0 -2
- package/Checkbox/index.mjs +0 -5
- package/Checkbox/package.json +0 -7
- package/Collapsible/Collapsible.d.ts +0 -5
- package/Collapsible/Collapsible.mjs +0 -7
- package/Collapsible/index.d.ts +0 -1
- package/Collapsible/index.mjs +0 -6
- package/Collapsible/package.json +0 -7
- package/Combobox/Combobox.d.ts +0 -4
- package/Combobox/Combobox.mjs +0 -15
- package/Combobox/Combobox.types.d.ts +0 -38
- package/Combobox/ComboboxOptionItem.d.ts +0 -5
- package/Combobox/ComboboxOptionItem.mjs +0 -67
- package/Combobox/ComboboxOptions.d.ts +0 -4
- package/Combobox/ComboboxOptions.mjs +0 -12
- package/Combobox/index.d.ts +0 -2
- package/Combobox/index.mjs +0 -4
- package/Combobox/package.json +0 -7
- package/Combobox-Dfbnw0oF.js +0 -303
- package/Command/Command.d.ts +0 -80
- package/Command/Command.mjs +0 -116
- package/Command/index.d.ts +0 -1
- package/Command/index.mjs +0 -12
- package/Command/package.json +0 -7
- package/DataTable/DataTable.d.ts +0 -11
- package/DataTable/DataTable.mjs +0 -64
- package/DataTable/DataTable.types.d.ts +0 -11
- package/DataTable/DataTableColumnFilter.d.ts +0 -4
- package/DataTable/DataTableColumnFilter.mjs +0 -31
- package/DataTable/index.d.ts +0 -2
- package/DataTable/index.mjs +0 -4
- package/DataTable/package.json +0 -7
- package/DataTable/useDataTable.d.ts +0 -3
- package/DataTable/useDataTable.mjs +0 -30
- package/DatePicker/DatePicker.d.ts +0 -3
- package/DatePicker/DatePicker.mjs +0 -699
- package/DatePicker/DatePicker.types.d.ts +0 -5
- package/DatePicker/index.d.ts +0 -3
- package/DatePicker/index.mjs +0 -5
- package/DatePicker/package.json +0 -7
- package/Dialog/Dialog.d.ts +0 -21
- package/Dialog/Dialog.mjs +0 -117
- package/Dialog/index.d.ts +0 -1
- package/Dialog/index.mjs +0 -13
- package/Dialog/package.json +0 -7
- package/Drawer/Drawer.d.ts +0 -22
- package/Drawer/Drawer.mjs +0 -98
- package/Drawer/index.d.ts +0 -1
- package/Drawer/index.mjs +0 -13
- package/Drawer/package.json +0 -7
- package/DropdownMenu/DropdownMenu.d.ts +0 -27
- package/DropdownMenu/DropdownMenu.mjs +0 -148
- package/DropdownMenu/index.d.ts +0 -1
- package/DropdownMenu/index.mjs +0 -18
- package/DropdownMenu/package.json +0 -7
- package/Dropzone/Dropzone.d.ts +0 -22
- package/Dropzone/Dropzone.mjs +0 -152
- package/Dropzone/Dropzone.types.d.ts +0 -42
- package/Dropzone/DropzoneFilePreview.d.ts +0 -4
- package/Dropzone/DropzoneFilePreview.mjs +0 -9
- package/Dropzone/DropzoneSinglePickPreview.d.ts +0 -10
- package/Dropzone/DropzoneSinglePickPreview.mjs +0 -41
- package/Dropzone/DropzoneUtils.d.ts +0 -5
- package/Dropzone/DropzoneUtils.mjs +0 -24
- package/Dropzone/index.d.ts +0 -2
- package/Dropzone/index.mjs +0 -7
- package/Dropzone/package.json +0 -7
- package/DropzoneFilePreview-Dhtv8F4u.js +0 -67
- package/Form/Form.d.ts +0 -23
- package/Form/Form.mjs +0 -98
- package/Form/FormRenderControl.d.ts +0 -4
- package/Form/FormRenderControl.mjs +0 -21
- package/Form/FormRenderControl.types.d.ts +0 -16
- package/Form/index.d.ts +0 -3
- package/Form/index.mjs +0 -13
- package/Form/package.json +0 -7
- package/FormCheckbox/FormCheckbox.d.ts +0 -4
- package/FormCheckbox/FormCheckbox.mjs +0 -30
- package/FormCheckbox/FormCheckbox.types.d.ts +0 -7
- package/FormCheckbox/index.d.ts +0 -2
- package/FormCheckbox/index.mjs +0 -4
- package/FormCheckbox/package.json +0 -7
- package/FormCombobox/FormCombobox.d.ts +0 -4
- package/FormCombobox/FormCombobox.mjs +0 -26
- package/FormCombobox/FormCombobox.types.d.ts +0 -6
- package/FormCombobox/index.d.ts +0 -2
- package/FormCombobox/index.mjs +0 -4
- package/FormCombobox/package.json +0 -7
- package/FormDatePicker/FormDatePicker.d.ts +0 -4
- package/FormDatePicker/FormDatePicker.mjs +0 -29
- package/FormDatePicker/FormDatePicker.types.d.ts +0 -6
- package/FormDatePicker/index.d.ts +0 -3
- package/FormDatePicker/index.mjs +0 -5
- package/FormDatePicker/package.json +0 -7
- package/FormDropzone/FormDropzone.d.ts +0 -4
- package/FormDropzone/FormDropzone.mjs +0 -19
- package/FormDropzone/FormDropzone.types.d.ts +0 -6
- package/FormDropzone/index.d.ts +0 -2
- package/FormDropzone/index.mjs +0 -4
- package/FormDropzone/package.json +0 -7
- package/FormInput/FormInput.d.ts +0 -7
- package/FormInput/FormInput.mjs +0 -40
- package/FormInput/FormInput.types.d.ts +0 -6
- package/FormInput/index.d.ts +0 -2
- package/FormInput/index.mjs +0 -4
- package/FormInput/package.json +0 -7
- package/FormRadio/FormRadio.d.ts +0 -4
- package/FormRadio/FormRadio.mjs +0 -40
- package/FormRadio/FormRadio.types.d.ts +0 -6
- package/FormRadio/index.d.ts +0 -2
- package/FormRadio/index.mjs +0 -4
- package/FormRadio/package.json +0 -7
- package/FormSelect/FormSelect.d.ts +0 -4
- package/FormSelect/FormSelect.mjs +0 -40
- package/FormSelect/FormSelect.types.d.ts +0 -6
- package/FormSelect/index.d.ts +0 -2
- package/FormSelect/index.mjs +0 -4
- package/FormSelect/package.json +0 -7
- package/FormTextarea/FormTextarea.d.ts +0 -4
- package/FormTextarea/FormTextarea.mjs +0 -27
- package/FormTextarea/FormTextarea.types.d.ts +0 -6
- package/FormTextarea/index.d.ts +0 -2
- package/FormTextarea/index.mjs +0 -4
- package/FormTextarea/package.json +0 -7
- package/Header/Header.d.ts +0 -4
- package/Header/Header.mjs +0 -26
- package/Header/Header.types.d.ts +0 -3
- package/Header/index.d.ts +0 -2
- package/Header/index.mjs +0 -5
- package/Header/package.json +0 -7
- package/HoverCard/HoverCard.d.ts +0 -6
- package/HoverCard/HoverCard.mjs +0 -23
- package/HoverCard/index.d.ts +0 -1
- package/HoverCard/index.mjs +0 -6
- package/HoverCard/package.json +0 -7
- package/Input/Input.d.ts +0 -6
- package/Input/Input.mjs +0 -73
- package/Input/Input.types.d.ts +0 -17
- package/Input/index.d.ts +0 -3
- package/Input/index.mjs +0 -7
- package/Input/inputVariants.d.ts +0 -3
- package/Input/inputVariants.mjs +0 -24
- package/Input/package.json +0 -7
- package/InputOTP/InputOTP.d.ts +0 -34
- package/InputOTP/InputOTP.mjs +0 -48
- package/InputOTP/index.d.ts +0 -1
- package/InputOTP/index.mjs +0 -7
- package/InputOTP/package.json +0 -7
- package/Label/Label.d.ts +0 -5
- package/Label/Label.mjs +0 -17
- package/Label/index.d.ts +0 -2
- package/Label/index.mjs +0 -6
- package/Label/labelVariants.d.ts +0 -1
- package/Label/labelVariants.mjs +0 -10
- package/Label/package.json +0 -7
- package/LazyLoader/LazyLoader.d.ts +0 -20
- package/LazyLoader/LazyLoader.mjs +0 -8
- package/LazyLoader/index.d.ts +0 -1
- package/LazyLoader/index.mjs +0 -5
- package/LazyLoader/package.json +0 -7
- package/LoadingMask/LoadingMask.d.ts +0 -4
- package/LoadingMask/LoadingMask.mjs +0 -21
- package/LoadingMask/LoadingMask.types.d.ts +0 -5
- package/LoadingMask/RenderLoadingMask.d.ts +0 -3
- package/LoadingMask/RenderLoadingMask.mjs +0 -108
- package/LoadingMask/index.d.ts +0 -3
- package/LoadingMask/index.mjs +0 -6
- package/LoadingMask/package.json +0 -7
- package/LoadingProgress/LoadingProgress.d.ts +0 -4
- package/LoadingProgress/LoadingProgress.mjs +0 -37
- package/LoadingProgress/LoadingProgress.types.d.ts +0 -8
- package/LoadingProgress/index.d.ts +0 -3
- package/LoadingProgress/index.mjs +0 -6
- package/LoadingProgress/loadingProgressVariants.d.ts +0 -4
- package/LoadingProgress/loadingProgressVariants.mjs +0 -24
- package/LoadingProgress/package.json +0 -7
- package/Menubar/Menubar.d.ts +0 -28
- package/Menubar/Menubar.mjs +0 -175
- package/Menubar/index.d.ts +0 -1
- package/Menubar/index.mjs +0 -19
- package/Menubar/package.json +0 -7
- package/NavigationMenu/NavigationMenu.d.ts +0 -11
- package/NavigationMenu/NavigationMenu.mjs +0 -101
- package/NavigationMenu/index.d.ts +0 -2
- package/NavigationMenu/index.mjs +0 -13
- package/NavigationMenu/navigationMenuVariants.d.ts +0 -1
- package/NavigationMenu/navigationMenuVariants.mjs +0 -7
- package/NavigationMenu/package.json +0 -7
- package/Pagination/Pagination.d.ts +0 -28
- package/Pagination/Pagination.mjs +0 -106
- package/Pagination/index.d.ts +0 -1
- package/Pagination/index.mjs +0 -10
- package/Pagination/package.json +0 -7
- package/Popover/Popover.d.ts +0 -7
- package/Popover/Popover.mjs +0 -28
- package/Popover/index.d.ts +0 -1
- package/Popover/index.mjs +0 -7
- package/Popover/package.json +0 -7
- package/Progress/Progress.d.ts +0 -4
- package/Progress/Progress.mjs +0 -26
- package/Progress/index.d.ts +0 -1
- package/Progress/index.mjs +0 -4
- package/Progress/package.json +0 -7
- package/Radio/Radio.d.ts +0 -4
- package/Radio/Radio.mjs +0 -12
- package/Radio/Radio.types.d.ts +0 -11
- package/Radio/index.d.ts +0 -2
- package/Radio/index.mjs +0 -4
- package/Radio/package.json +0 -7
- package/RadioGroup/RadioGroup.d.ts +0 -11
- package/RadioGroup/RadioGroup.mjs +0 -49
- package/RadioGroup/index.d.ts +0 -1
- package/RadioGroup/index.mjs +0 -6
- package/RadioGroup/package.json +0 -7
- package/Resizable/Resizable.d.ts +0 -23
- package/Resizable/Resizable.mjs +0 -36
- package/Resizable/index.d.ts +0 -1
- package/Resizable/index.mjs +0 -6
- package/Resizable/package.json +0 -7
- package/ScrollArea/ScrollArea.d.ts +0 -5
- package/ScrollArea/ScrollArea.mjs +0 -51
- package/ScrollArea/index.d.ts +0 -1
- package/ScrollArea/index.mjs +0 -5
- package/ScrollArea/package.json +0 -7
- package/Search/Search.d.ts +0 -4
- package/Search/Search.mjs +0 -30
- package/Search/Search.types.d.ts +0 -6
- package/Search/index.d.ts +0 -3
- package/Search/index.mjs +0 -5
- package/Search/package.json +0 -7
- package/Select/Select.d.ts +0 -3
- package/Select/Select.mjs +0 -103
- package/Select/Select.types.d.ts +0 -37
- package/Select/SelectRoot.d.ts +0 -13
- package/Select/SelectRoot.mjs +0 -126
- package/Select/index.d.ts +0 -3
- package/Select/index.mjs +0 -15
- package/Select/package.json +0 -7
- package/Separator/Separator.d.ts +0 -4
- package/Separator/Separator.mjs +0 -24
- package/Separator/index.d.ts +0 -1
- package/Separator/index.mjs +0 -4
- package/Separator/package.json +0 -7
- package/Sheet/Sheet.d.ts +0 -28
- package/Sheet/Sheet.mjs +0 -110
- package/Sheet/index.d.ts +0 -1
- package/Sheet/index.mjs +0 -13
- package/Sheet/package.json +0 -7
- package/Sidebar/Sidebar.d.ts +0 -66
- package/Sidebar/Sidebar.mjs +0 -543
- package/Sidebar/index.d.ts +0 -1
- package/Sidebar/index.mjs +0 -27
- package/Sidebar/package.json +0 -7
- package/Skeleton/Skeleton.d.ts +0 -4
- package/Skeleton/Skeleton.mjs +0 -17
- package/Skeleton/index.d.ts +0 -1
- package/Skeleton/index.mjs +0 -4
- package/Skeleton/package.json +0 -7
- package/Slider/Slider.d.ts +0 -4
- package/Slider/Slider.mjs +0 -23
- package/Slider/index.d.ts +0 -1
- package/Slider/index.mjs +0 -4
- package/Slider/package.json +0 -7
- package/Sonner/Sonner.d.ts +0 -5
- package/Sonner/Sonner.mjs +0 -25
- package/Sonner/index.d.ts +0 -1
- package/Sonner/index.mjs +0 -4
- package/Sonner/package.json +0 -7
- package/Switch/Switch.d.ts +0 -4
- package/Switch/Switch.mjs +0 -27
- package/Switch/index.d.ts +0 -1
- package/Switch/index.mjs +0 -4
- package/Switch/package.json +0 -7
- package/Table/Table.d.ts +0 -10
- package/Table/Table.mjs +0 -90
- package/Table/index.d.ts +0 -1
- package/Table/index.mjs +0 -11
- package/Table/package.json +0 -7
- package/TablePagination/TablePagination.d.ts +0 -16
- package/TablePagination/TablePagination.mjs +0 -74
- package/TablePagination/index.d.ts +0 -1
- package/TablePagination/index.mjs +0 -4
- package/TablePagination/package.json +0 -7
- package/Tabs/Tabs.d.ts +0 -5
- package/Tabs/Tabs.mjs +0 -23
- package/Tabs/Tabs.types.d.ts +0 -12
- package/Tabs/TabsRoot.d.ts +0 -7
- package/Tabs/TabsRoot.mjs +0 -46
- package/Tabs/index.d.ts +0 -2
- package/Tabs/index.mjs +0 -10
- package/Tabs/package.json +0 -7
- package/Textarea/Textarea.d.ts +0 -4
- package/Textarea/Textarea.mjs +0 -75
- package/Textarea/Textarea.types.d.ts +0 -18
- package/Textarea/index.d.ts +0 -2
- package/Textarea/index.mjs +0 -4
- package/Textarea/package.json +0 -7
- package/Textarea/useAutosizeTextArea.d.ts +0 -3
- package/Textarea/useAutosizeTextArea.mjs +0 -20
- package/Theme/ThemeModeToggle.d.ts +0 -8
- package/Theme/ThemeModeToggle.mjs +0 -48
- package/Theme/ThemeProvider.d.ts +0 -4
- package/Theme/ThemeProvider.mjs +0 -27
- package/Theme/index.d.ts +0 -2
- package/Theme/index.mjs +0 -6
- package/Theme/package.json +0 -7
- package/Toast/Toast.d.ts +0 -13
- package/Toast/Toast.mjs +0 -80
- package/Toast/Toast.types.d.ts +0 -34
- package/Toast/index.d.ts +0 -3
- package/Toast/index.mjs +0 -15
- package/Toast/package.json +0 -7
- package/Toast/toast.constants.d.ts +0 -6
- package/Toast/toast.constants.mjs +0 -9
- package/Toast/toastVariants.d.ts +0 -3
- package/Toast/toastVariants.mjs +0 -21
- package/Toast/useToast.d.ts +0 -16
- package/Toast/useToast.mjs +0 -101
- package/Toaster/Toaster.d.ts +0 -1
- package/Toaster/Toaster.mjs +0 -22
- package/Toaster/index.d.ts +0 -1
- package/Toaster/index.mjs +0 -4
- package/Toaster/package.json +0 -7
- package/Toggle/Toggle.d.ts +0 -12
- package/Toggle/Toggle.mjs +0 -37
- package/Toggle/index.d.ts +0 -1
- package/Toggle/index.mjs +0 -5
- package/Toggle/package.json +0 -7
- package/ToggleGroup/ToggleGroup.d.ts +0 -12
- package/ToggleGroup/ToggleGroup.mjs +0 -41
- package/ToggleGroup/index.d.ts +0 -1
- package/ToggleGroup/index.mjs +0 -5
- package/ToggleGroup/package.json +0 -7
- package/Tooltip/Tooltip.d.ts +0 -4
- package/Tooltip/Tooltip.mjs +0 -12
- package/Tooltip/Tooltip.types.d.ts +0 -8
- package/Tooltip/TooltipRoot.d.ts +0 -7
- package/Tooltip/TooltipRoot.mjs +0 -23
- package/Tooltip/index.d.ts +0 -3
- package/Tooltip/index.mjs +0 -9
- package/Tooltip/package.json +0 -7
- package/index.css +0 -1
- package/index.d.ts +0 -68
- package/index.mjs +0 -367
- package/tailwind.config.mjs +0 -148
package/Carousel/Carousel.mjs
DELETED
@@ -1,168 +0,0 @@
|
|
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
|
-
};
|
package/Carousel/index.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './Carousel';
|
package/Carousel/index.mjs
DELETED
package/Carousel/package.json
DELETED
package/Chart/Chart.d.ts
DELETED
@@ -1,62 +0,0 @@
|
|
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, };
|
package/Chart/Chart.mjs
DELETED
@@ -1,210 +0,0 @@
|
|
1
|
-
import { jsx as s, jsxs as m, Fragment as P } from "react/jsx-runtime";
|
2
|
-
import * as g from "react";
|
3
|
-
import * as C from "recharts";
|
4
|
-
import { cn as i } from "@oneplatformdev/utils";
|
5
|
-
const I = { light: "", dark: ".dark" }, j = g.createContext(null);
|
6
|
-
function $() {
|
7
|
-
const o = g.useContext(j);
|
8
|
-
if (!o)
|
9
|
-
throw new Error("useChart must be used within a <ChartContainer />");
|
10
|
-
return o;
|
11
|
-
}
|
12
|
-
const S = g.forwardRef(({ id: o, className: e, children: n, config: r, ...a }, f) => {
|
13
|
-
const l = g.useId(), c = `chart-${o || l.replace(/:/g, "")}`;
|
14
|
-
return /* @__PURE__ */ s(j.Provider, { value: { config: r }, children: /* @__PURE__ */ m(
|
15
|
-
"div",
|
16
|
-
{
|
17
|
-
"data-chart": c,
|
18
|
-
ref: f,
|
19
|
-
className: i(
|
20
|
-
"flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",
|
21
|
-
e
|
22
|
-
),
|
23
|
-
...a,
|
24
|
-
children: [
|
25
|
-
/* @__PURE__ */ s(E, { id: c, config: r }),
|
26
|
-
/* @__PURE__ */ s(C.ResponsiveContainer, { children: n })
|
27
|
-
]
|
28
|
-
}
|
29
|
-
) });
|
30
|
-
});
|
31
|
-
S.displayName = "Chart";
|
32
|
-
const E = ({ id: o, config: e }) => {
|
33
|
-
const n = Object.entries(e).filter(
|
34
|
-
([, r]) => r.theme || r.color
|
35
|
-
);
|
36
|
-
return n.length ? /* @__PURE__ */ s(
|
37
|
-
"style",
|
38
|
-
{
|
39
|
-
dangerouslySetInnerHTML: {
|
40
|
-
__html: Object.entries(I).map(
|
41
|
-
([r, a]) => `
|
42
|
-
${a} [data-chart=${o}] {
|
43
|
-
${n.map(([f, l]) => {
|
44
|
-
var h;
|
45
|
-
const c = ((h = l.theme) == null ? void 0 : h[r]) || l.color;
|
46
|
-
return c ? ` --color-${f}: ${c};` : null;
|
47
|
-
}).join(`
|
48
|
-
`)}
|
49
|
-
}
|
50
|
-
`
|
51
|
-
).join(`
|
52
|
-
`)
|
53
|
-
}
|
54
|
-
}
|
55
|
-
) : null;
|
56
|
-
}, q = C.Tooltip, K = g.forwardRef(
|
57
|
-
({
|
58
|
-
active: o,
|
59
|
-
payload: e,
|
60
|
-
className: n,
|
61
|
-
indicator: r = "dot",
|
62
|
-
hideLabel: a = !1,
|
63
|
-
hideIndicator: f = !1,
|
64
|
-
label: l,
|
65
|
-
labelFormatter: c,
|
66
|
-
labelClassName: h,
|
67
|
-
formatter: u,
|
68
|
-
color: L,
|
69
|
-
nameKey: R,
|
70
|
-
labelKey: _
|
71
|
-
}, T) => {
|
72
|
-
const { config: p } = $(), N = g.useMemo(() => {
|
73
|
-
var x;
|
74
|
-
if (a || !(e != null && e.length))
|
75
|
-
return null;
|
76
|
-
const [t] = e, w = `${_ || t.dataKey || t.name || "value"}`, v = k(p, t, w), d = !_ && typeof l == "string" ? ((x = p[l]) == null ? void 0 : x.label) || l : v == null ? void 0 : v.label;
|
77
|
-
return c ? /* @__PURE__ */ s("div", { className: i("font-medium", h), children: c(d, e) }) : d ? /* @__PURE__ */ s("div", { className: i("font-medium", h), children: d }) : null;
|
78
|
-
}, [
|
79
|
-
l,
|
80
|
-
c,
|
81
|
-
e,
|
82
|
-
a,
|
83
|
-
h,
|
84
|
-
p,
|
85
|
-
_
|
86
|
-
]);
|
87
|
-
if (!o || !(e != null && e.length))
|
88
|
-
return null;
|
89
|
-
const b = e.length === 1 && r !== "dot";
|
90
|
-
return /* @__PURE__ */ m(
|
91
|
-
"div",
|
92
|
-
{
|
93
|
-
ref: T,
|
94
|
-
className: i(
|
95
|
-
"grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",
|
96
|
-
n
|
97
|
-
),
|
98
|
-
children: [
|
99
|
-
b ? null : N,
|
100
|
-
/* @__PURE__ */ s("div", { className: "grid gap-1.5", children: e.map((t, w) => {
|
101
|
-
const v = `${R || t.name || t.dataKey || "value"}`, d = k(p, t, v), x = L || t.payload.fill || t.color;
|
102
|
-
return /* @__PURE__ */ s(
|
103
|
-
"div",
|
104
|
-
{
|
105
|
-
className: i(
|
106
|
-
"flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",
|
107
|
-
r === "dot" && "items-center"
|
108
|
-
),
|
109
|
-
children: u && (t == null ? void 0 : t.value) !== void 0 && t.name ? u(t.value, t.name, t, w, t.payload) : /* @__PURE__ */ m(P, { children: [
|
110
|
-
d != null && d.icon ? /* @__PURE__ */ s(d.icon, {}) : !f && /* @__PURE__ */ s(
|
111
|
-
"div",
|
112
|
-
{
|
113
|
-
className: i(
|
114
|
-
"shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",
|
115
|
-
{
|
116
|
-
"h-2.5 w-2.5": r === "dot",
|
117
|
-
"w-1": r === "line",
|
118
|
-
"w-0 border-[1.5px] border-dashed bg-transparent": r === "dashed",
|
119
|
-
"my-0.5": b && r === "dashed"
|
120
|
-
}
|
121
|
-
),
|
122
|
-
style: {
|
123
|
-
"--color-bg": x,
|
124
|
-
"--color-border": x
|
125
|
-
}
|
126
|
-
}
|
127
|
-
),
|
128
|
-
/* @__PURE__ */ m(
|
129
|
-
"div",
|
130
|
-
{
|
131
|
-
className: i(
|
132
|
-
"flex flex-1 justify-between leading-none",
|
133
|
-
b ? "items-end" : "items-center"
|
134
|
-
),
|
135
|
-
children: [
|
136
|
-
/* @__PURE__ */ m("div", { className: "grid gap-1.5", children: [
|
137
|
-
b ? N : null,
|
138
|
-
/* @__PURE__ */ s("span", { className: "text-muted-foreground", children: (d == null ? void 0 : d.label) || t.name })
|
139
|
-
] }),
|
140
|
-
t.value && /* @__PURE__ */ s("span", { className: "font-mono font-medium tabular-nums text-foreground", children: t.value.toLocaleString() })
|
141
|
-
]
|
142
|
-
}
|
143
|
-
)
|
144
|
-
] })
|
145
|
-
},
|
146
|
-
t.dataKey
|
147
|
-
);
|
148
|
-
}) })
|
149
|
-
]
|
150
|
-
}
|
151
|
-
);
|
152
|
-
}
|
153
|
-
);
|
154
|
-
K.displayName = "ChartTooltip";
|
155
|
-
const y = C.Legend, M = g.forwardRef(
|
156
|
-
({ className: o, hideIcon: e = !1, payload: n, verticalAlign: r = "bottom", nameKey: a }, f) => {
|
157
|
-
const { config: l } = $();
|
158
|
-
return n != null && n.length ? /* @__PURE__ */ s(
|
159
|
-
"div",
|
160
|
-
{
|
161
|
-
ref: f,
|
162
|
-
className: i(
|
163
|
-
"flex items-center justify-center gap-4",
|
164
|
-
r === "top" ? "pb-3" : "pt-3",
|
165
|
-
o
|
166
|
-
),
|
167
|
-
children: n.map((c) => {
|
168
|
-
const h = `${a || c.dataKey || "value"}`, u = k(l, c, h);
|
169
|
-
return /* @__PURE__ */ m(
|
170
|
-
"div",
|
171
|
-
{
|
172
|
-
className: i(
|
173
|
-
"flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"
|
174
|
-
),
|
175
|
-
children: [
|
176
|
-
u != null && u.icon && !e ? /* @__PURE__ */ s(u.icon, {}) : /* @__PURE__ */ s(
|
177
|
-
"div",
|
178
|
-
{
|
179
|
-
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
180
|
-
style: {
|
181
|
-
backgroundColor: c.color
|
182
|
-
}
|
183
|
-
}
|
184
|
-
),
|
185
|
-
u == null ? void 0 : u.label
|
186
|
-
]
|
187
|
-
},
|
188
|
-
c.value
|
189
|
-
);
|
190
|
-
})
|
191
|
-
}
|
192
|
-
) : null;
|
193
|
-
}
|
194
|
-
);
|
195
|
-
M.displayName = "ChartLegend";
|
196
|
-
function k(o, e, n) {
|
197
|
-
if (typeof e != "object" || e === null)
|
198
|
-
return;
|
199
|
-
const r = "payload" in e && typeof e.payload == "object" && e.payload !== null ? e.payload : void 0;
|
200
|
-
let a = n;
|
201
|
-
return n in e && typeof e[n] == "string" ? a = e[n] : r && n in r && typeof r[n] == "string" && (a = r[n]), a in o ? o[a] : o[n];
|
202
|
-
}
|
203
|
-
export {
|
204
|
-
S as ChartContainer,
|
205
|
-
y as ChartLegend,
|
206
|
-
M as ChartLegendContent,
|
207
|
-
E as ChartStyle,
|
208
|
-
q as ChartTooltip,
|
209
|
-
K as ChartTooltipContent
|
210
|
-
};
|
package/Chart/index.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './Chart';
|
package/Chart/index.mjs
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
import { ChartContainer as o, ChartLegend as r, ChartLegendContent as C, ChartStyle as n, ChartTooltip as a, ChartTooltipContent as h } from "./Chart.mjs";
|
2
|
-
export {
|
3
|
-
o as ChartContainer,
|
4
|
-
r as ChartLegend,
|
5
|
-
C as ChartLegendContent,
|
6
|
-
n as ChartStyle,
|
7
|
-
a as ChartTooltip,
|
8
|
-
h as ChartTooltipContent
|
9
|
-
};
|
package/Chart/package.json
DELETED
package/Checkbox/Checkbox.d.ts
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
import { CheckboxLabelProps, CheckboxProps } from './Checkbox.types';
|
2
|
-
import * as React from 'react';
|
3
|
-
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
|
4
|
-
declare const CheckboxLabel: React.ForwardRefExoticComponent<CheckboxLabelProps & React.RefAttributes<HTMLLabelElement>>;
|
5
|
-
export { Checkbox, CheckboxLabel };
|
package/Checkbox/Checkbox.mjs
DELETED
@@ -1,54 +0,0 @@
|
|
1
|
-
import { jsx as r, jsxs as n } from "react/jsx-runtime";
|
2
|
-
import * as s from "@radix-ui/react-checkbox";
|
3
|
-
import { MinusIcon as l, CheckIcon as h } from "lucide-react";
|
4
|
-
import * as m from "react";
|
5
|
-
import { cn as a } from "@oneplatformdev/utils";
|
6
|
-
import { Label as u } from "../Label/Label.mjs";
|
7
|
-
import "../Label/labelVariants.mjs";
|
8
|
-
const d = m.forwardRef(({ className: t, checked: c, indeterminate: e, ...i }, o) => {
|
9
|
-
const f = e ? l : h;
|
10
|
-
return /* @__PURE__ */ r(
|
11
|
-
s.Root,
|
12
|
-
{
|
13
|
-
ref: o,
|
14
|
-
className: a(
|
15
|
-
"peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
|
16
|
-
t
|
17
|
-
),
|
18
|
-
...i,
|
19
|
-
checked: c ?? e,
|
20
|
-
children: /* @__PURE__ */ r(
|
21
|
-
s.Indicator,
|
22
|
-
{
|
23
|
-
className: a("flex items-center justify-center text-current"),
|
24
|
-
children: /* @__PURE__ */ r(f, { className: "h-4 w-4" })
|
25
|
-
}
|
26
|
-
)
|
27
|
-
}
|
28
|
-
);
|
29
|
-
});
|
30
|
-
d.displayName = s.Root.displayName;
|
31
|
-
const x = m.forwardRef(({ label: t = "", children: c, labelProps: e, ...i }, o) => /* @__PURE__ */ n(
|
32
|
-
u,
|
33
|
-
{
|
34
|
-
ref: o,
|
35
|
-
...e,
|
36
|
-
className: a(
|
37
|
-
"flex w-full items-start gap-3 font-normal py-3 cursor-pointer",
|
38
|
-
e == null ? void 0 : e.className
|
39
|
-
),
|
40
|
-
style: e == null ? void 0 : e.style,
|
41
|
-
children: [
|
42
|
-
/* @__PURE__ */ r(d, { ...i }),
|
43
|
-
/* @__PURE__ */ n("div", { className: "flex flex-col w-full gap-3", children: [
|
44
|
-
/* @__PURE__ */ r("span", { className: "flex flex-col justify-start leading-[16px]", children: t }),
|
45
|
-
c
|
46
|
-
] })
|
47
|
-
]
|
48
|
-
}
|
49
|
-
));
|
50
|
-
x.displayName = "CheckboxLabel";
|
51
|
-
export {
|
52
|
-
d as Checkbox,
|
53
|
-
x as CheckboxLabel
|
54
|
-
};
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { Label } from '../Label';
|
2
|
-
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
3
|
-
import * as React from 'react';
|
4
|
-
export interface CheckboxProps extends React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root> {
|
5
|
-
indeterminate?: boolean;
|
6
|
-
}
|
7
|
-
export interface CheckboxLabelProps extends CheckboxProps {
|
8
|
-
label?: string;
|
9
|
-
labelProps?: React.ComponentPropsWithoutRef<typeof Label>;
|
10
|
-
}
|
package/Checkbox/index.d.ts
DELETED
package/Checkbox/index.mjs
DELETED
package/Checkbox/package.json
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
2
|
-
declare const Collapsible: import('react').ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & import('react').RefAttributes<HTMLDivElement>>;
|
3
|
-
declare const CollapsibleTrigger: import('react').ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
|
4
|
-
declare const CollapsibleContent: import('react').ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & import('react').RefAttributes<HTMLDivElement>>;
|
5
|
-
export { Collapsible, CollapsibleTrigger, CollapsibleContent };
|
package/Collapsible/index.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './Collapsible';
|
package/Collapsible/index.mjs
DELETED
package/Collapsible/package.json
DELETED
package/Combobox/Combobox.d.ts
DELETED
package/Combobox/Combobox.mjs
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
import "react/jsx-runtime";
|
2
|
-
import "react";
|
3
|
-
import "../LoadingMask/LoadingMask.mjs";
|
4
|
-
import "../LoadingMask/RenderLoadingMask.mjs";
|
5
|
-
import "../Popover/Popover.mjs";
|
6
|
-
import "../Button/Button.mjs";
|
7
|
-
import "../Button/buttonVariants.mjs";
|
8
|
-
import "../Command/Command.mjs";
|
9
|
-
import "@oneplatformdev/utils";
|
10
|
-
import "@oneplatformdev/hooks";
|
11
|
-
import "lucide-react";
|
12
|
-
import { C as c } from "../Combobox-Dfbnw0oF.js";
|
13
|
-
export {
|
14
|
-
c as Combobox
|
15
|
-
};
|
@@ -1,38 +0,0 @@
|
|
1
|
-
import { Dispatch, ReactNode, SetStateAction } from 'react';
|
2
|
-
|
3
|
-
export interface ComboboxOption {
|
4
|
-
value: string;
|
5
|
-
label: string;
|
6
|
-
items?: ComboboxOption[];
|
7
|
-
}
|
8
|
-
export interface ComboboxPropsOnMountParams {
|
9
|
-
setOptions: Dispatch<SetStateAction<ComboboxOption[]>>;
|
10
|
-
search: string;
|
11
|
-
open: boolean;
|
12
|
-
setOpen: Dispatch<SetStateAction<boolean>>;
|
13
|
-
}
|
14
|
-
export interface IComboboxOptionsNodeProps {
|
15
|
-
value?: string;
|
16
|
-
option: ComboboxOption;
|
17
|
-
onChangeOption?: (option: ComboboxOption) => void;
|
18
|
-
deep?: number;
|
19
|
-
setOpen: Dispatch<SetStateAction<boolean>>;
|
20
|
-
}
|
21
|
-
export interface IComboboxOptionsProps extends Omit<IComboboxOptionsNodeProps, 'option'> {
|
22
|
-
options?: ComboboxOption[];
|
23
|
-
}
|
24
|
-
export interface ComboboxProps {
|
25
|
-
value: string;
|
26
|
-
onChange: (value: string) => void;
|
27
|
-
placeholder?: string;
|
28
|
-
searchLabel?: string;
|
29
|
-
disabled?: boolean;
|
30
|
-
fetchOptions: (search?: string) => Promise<ComboboxOption[]>;
|
31
|
-
options?: ComboboxOption[];
|
32
|
-
/** Command Empty list label*/
|
33
|
-
emptyLabel?: string;
|
34
|
-
/** Command Empty list action */
|
35
|
-
emptyAction?: ((params: ComboboxPropsOnMountParams) => ReactNode) | ReactNode;
|
36
|
-
/** Callback for load data on start component */
|
37
|
-
onMount?: (params: ComboboxPropsOnMountParams) => Promise<void>;
|
38
|
-
}
|