@oneplatformdev/ui 0.0.1-beta.100
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/Accordion/Accordion.d.ts +9 -0
- package/Accordion/Accordion.mjs +49 -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 +32 -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 +64 -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 +5 -0
- package/Checkbox/Checkbox.mjs +54 -0
- package/Checkbox/Checkbox.types.d.ts +10 -0
- package/Checkbox/index.d.ts +2 -0
- package/Checkbox/index.mjs +5 -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 +15 -0
- package/Combobox/Combobox.types.d.ts +38 -0
- package/Combobox/ComboboxOptionItem.d.ts +5 -0
- package/Combobox/ComboboxOptionItem.mjs +67 -0
- package/Combobox/ComboboxOptions.d.ts +4 -0
- package/Combobox/ComboboxOptions.mjs +12 -0
- package/Combobox/index.d.ts +2 -0
- package/Combobox/index.mjs +4 -0
- package/Combobox/package.json +7 -0
- package/Combobox-Dfbnw0oF.js +303 -0
- package/Command/Command.d.ts +80 -0
- package/Command/Command.mjs +116 -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 +11 -0
- package/DataTable/DataTable.mjs +64 -0
- package/DataTable/DataTable.types.d.ts +11 -0
- package/DataTable/DataTableColumnFilter.d.ts +4 -0
- package/DataTable/DataTableColumnFilter.mjs +31 -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 +21 -0
- package/Dialog/Dialog.mjs +117 -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 +148 -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 +22 -0
- package/Dropzone/Dropzone.mjs +152 -0
- package/Dropzone/Dropzone.types.d.ts +42 -0
- package/Dropzone/DropzoneFilePreview.d.ts +4 -0
- package/Dropzone/DropzoneFilePreview.mjs +9 -0
- package/Dropzone/DropzoneSinglePickPreview.d.ts +10 -0
- package/Dropzone/DropzoneSinglePickPreview.mjs +41 -0
- package/Dropzone/DropzoneUtils.d.ts +5 -0
- package/Dropzone/DropzoneUtils.mjs +24 -0
- package/Dropzone/index.d.ts +2 -0
- package/Dropzone/index.mjs +7 -0
- package/Dropzone/package.json +7 -0
- package/DropzoneFilePreview-Dhtv8F4u.js +67 -0
- package/Form/Form.d.ts +23 -0
- package/Form/Form.mjs +98 -0
- package/Form/FormRenderControl.d.ts +4 -0
- package/Form/FormRenderControl.mjs +21 -0
- package/Form/FormRenderControl.types.d.ts +16 -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 +4 -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 +6 -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 +29 -0
- package/FormDatePicker/FormDatePicker.types.d.ts +6 -0
- package/FormDatePicker/index.d.ts +3 -0
- package/FormDatePicker/index.mjs +5 -0
- package/FormDatePicker/package.json +7 -0
- package/FormDropzone/FormDropzone.d.ts +4 -0
- package/FormDropzone/FormDropzone.mjs +19 -0
- package/FormDropzone/FormDropzone.types.d.ts +6 -0
- package/FormDropzone/index.d.ts +2 -0
- package/FormDropzone/index.mjs +4 -0
- package/FormDropzone/package.json +7 -0
- package/FormInput/FormInput.d.ts +7 -0
- package/FormInput/FormInput.mjs +44 -0
- package/FormInput/FormInput.types.d.ts +6 -0
- package/FormInput/index.d.ts +2 -0
- package/FormInput/index.mjs +4 -0
- package/FormInput/package.json +7 -0
- package/FormRadio/FormRadio.d.ts +4 -0
- package/FormRadio/FormRadio.mjs +40 -0
- package/FormRadio/FormRadio.types.d.ts +6 -0
- package/FormRadio/index.d.ts +2 -0
- package/FormRadio/index.mjs +4 -0
- package/FormRadio/package.json +7 -0
- package/FormSelect/FormSelect.d.ts +4 -0
- package/FormSelect/FormSelect.mjs +40 -0
- package/FormSelect/FormSelect.types.d.ts +6 -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 +4 -0
- package/FormTextarea/FormTextarea.mjs +27 -0
- package/FormTextarea/FormTextarea.types.d.ts +6 -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 +73 -0
- package/Input/Input.types.d.ts +17 -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 +24 -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 +10 -0
- package/Label/package.json +7 -0
- package/LazyLoader/LazyLoader.d.ts +20 -0
- package/LazyLoader/LazyLoader.mjs +8 -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 +4 -0
- package/LoadingMask/LoadingMask.mjs +21 -0
- package/LoadingMask/LoadingMask.types.d.ts +5 -0
- package/LoadingMask/RenderLoadingMask.d.ts +3 -0
- package/LoadingMask/RenderLoadingMask.mjs +108 -0
- package/LoadingMask/index.d.ts +3 -0
- package/LoadingMask/index.mjs +6 -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 +28 -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/Radio/Radio.d.ts +4 -0
- package/Radio/Radio.mjs +12 -0
- package/Radio/Radio.types.d.ts +11 -0
- package/Radio/index.d.ts +2 -0
- package/Radio/index.mjs +4 -0
- package/Radio/package.json +7 -0
- package/RadioGroup/RadioGroup.d.ts +11 -0
- package/RadioGroup/RadioGroup.mjs +49 -0
- package/RadioGroup/index.d.ts +1 -0
- package/RadioGroup/index.mjs +6 -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 +51 -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 +103 -0
- package/Select/Select.types.d.ts +37 -0
- package/Select/SelectRoot.d.ts +13 -0
- package/Select/SelectRoot.mjs +126 -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 +28 -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/TablePagination/TablePagination.d.ts +16 -0
- package/TablePagination/TablePagination.mjs +74 -0
- package/TablePagination/index.d.ts +1 -0
- package/TablePagination/index.mjs +4 -0
- package/TablePagination/package.json +7 -0
- package/Tabs/Tabs.d.ts +5 -0
- package/Tabs/Tabs.mjs +23 -0
- package/Tabs/Tabs.types.d.ts +12 -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 +10 -0
- package/Tabs/package.json +7 -0
- package/Textarea/Textarea.d.ts +4 -0
- package/Textarea/Textarea.mjs +75 -0
- package/Textarea/Textarea.types.d.ts +18 -0
- package/Textarea/index.d.ts +2 -0
- package/Textarea/index.mjs +4 -0
- package/Textarea/package.json +7 -0
- package/Textarea/useAutosizeTextArea.d.ts +3 -0
- package/Textarea/useAutosizeTextArea.mjs +20 -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 +68 -0
- package/index.mjs +367 -0
- package/package.json +103 -0
- package/tailwind.config.mjs +148 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { FormControl as a } from "../Form/Form.mjs";
|
|
3
|
+
import { FormRenderControl as b } from "../Form/FormRenderControl.mjs";
|
|
4
|
+
import { C as p } from "../Combobox-Dfbnw0oF.js";
|
|
5
|
+
const x = (m) => {
|
|
6
|
+
const { form: n, label: e, name: t, ...C } = m;
|
|
7
|
+
return /* @__PURE__ */ o(
|
|
8
|
+
b,
|
|
9
|
+
{
|
|
10
|
+
form: n,
|
|
11
|
+
label: e,
|
|
12
|
+
name: t,
|
|
13
|
+
render: ({ field: r }) => /* @__PURE__ */ o(a, { children: /* @__PURE__ */ o(
|
|
14
|
+
p,
|
|
15
|
+
{
|
|
16
|
+
...C,
|
|
17
|
+
...r,
|
|
18
|
+
onChange: r.onChange
|
|
19
|
+
}
|
|
20
|
+
) })
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
x as FormCombobox
|
|
26
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FormRenderControlExtendProps } from '../Form';
|
|
2
|
+
import { ComboboxProps } from '../Combobox';
|
|
3
|
+
import { FieldValues } from 'react-hook-form';
|
|
4
|
+
|
|
5
|
+
export interface FormComboboxProps<Data extends FieldValues> extends FormRenderControlExtendProps<Data>, Omit<ComboboxProps, 'value' | 'onChange'> {
|
|
6
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { DatePicker as l } from "../DatePicker/DatePicker.mjs";
|
|
3
|
+
import { FormControl as p } from "../Form/Form.mjs";
|
|
4
|
+
import { FormRenderControl as s } from "../Form/FormRenderControl.mjs";
|
|
5
|
+
const h = (m) => {
|
|
6
|
+
const { form: n, name: a, label: c, onDateChange: r, ...i } = m;
|
|
7
|
+
return /* @__PURE__ */ e(
|
|
8
|
+
s,
|
|
9
|
+
{
|
|
10
|
+
form: n,
|
|
11
|
+
name: a,
|
|
12
|
+
label: c,
|
|
13
|
+
render: ({ field: o }) => /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(
|
|
14
|
+
l,
|
|
15
|
+
{
|
|
16
|
+
...o,
|
|
17
|
+
...i,
|
|
18
|
+
selectedDate: o.value,
|
|
19
|
+
onDateChange: (t) => {
|
|
20
|
+
o.onChange(t), r == null || r(t);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
) })
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
h as FormDatePicker
|
|
29
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DatePickerProps } from '../DatePicker';
|
|
2
|
+
import { FormRenderControlExtendProps } from '../Form';
|
|
3
|
+
import { FieldValues } from 'react-hook-form';
|
|
4
|
+
|
|
5
|
+
export interface FormDatePickerProps<Data extends FieldValues> extends FormRenderControlExtendProps<Data>, Omit<DatePickerProps, 'onDateChange'>, Partial<Pick<DatePickerProps, 'onDateChange'>> {
|
|
6
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { FormControl as a } from "../Form/Form.mjs";
|
|
3
|
+
import { FormRenderControl as l } from "../Form/FormRenderControl.mjs";
|
|
4
|
+
import { Dropzone as f } from "../Dropzone/Dropzone.mjs";
|
|
5
|
+
const h = (n) => {
|
|
6
|
+
const { form: e, label: m, name: t, ...p } = n;
|
|
7
|
+
return /* @__PURE__ */ o(
|
|
8
|
+
l,
|
|
9
|
+
{
|
|
10
|
+
form: e,
|
|
11
|
+
label: m,
|
|
12
|
+
name: t,
|
|
13
|
+
render: ({ field: r }) => /* @__PURE__ */ o(a, { children: /* @__PURE__ */ o(f, { ...p, ...r, onChangeValue: r.onChange }) })
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
h as FormDropzone
|
|
19
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FormRenderControlExtendProps } from '../Form';
|
|
2
|
+
import { DropzoneProps } from '../Dropzone';
|
|
3
|
+
import { FieldValues } from 'react-hook-form';
|
|
4
|
+
|
|
5
|
+
export interface FormDropzoneProps<Data extends FieldValues> extends FormRenderControlExtendProps<Data>, DropzoneProps {
|
|
6
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactElement, Ref } from 'react';
|
|
2
|
+
import { FieldValues } from 'react-hook-form';
|
|
3
|
+
import { FormInputProps } from './FormInput.types';
|
|
4
|
+
|
|
5
|
+
export declare const FormInput: <Data extends FieldValues>(props: FormInputProps<Data> & {
|
|
6
|
+
ref?: Ref<HTMLInputElement>;
|
|
7
|
+
}) => ReactElement;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { FormControl as g } from "../Form/Form.mjs";
|
|
3
|
+
import { FormRenderControl as v } from "../Form/FormRenderControl.mjs";
|
|
4
|
+
import { Input as x } from "../Input/Input.mjs";
|
|
5
|
+
import { forwardRef as y } from "react";
|
|
6
|
+
function R(c, t) {
|
|
7
|
+
const { form: s, label: C, name: F, onChange: m, onBlur: p, onPaste: u, style: I, ...h } = c;
|
|
8
|
+
return /* @__PURE__ */ a(
|
|
9
|
+
v,
|
|
10
|
+
{
|
|
11
|
+
form: s,
|
|
12
|
+
name: F,
|
|
13
|
+
label: C,
|
|
14
|
+
render: ({ field: o }) => /* @__PURE__ */ a(g, { children: /* @__PURE__ */ a(
|
|
15
|
+
x,
|
|
16
|
+
{
|
|
17
|
+
...o,
|
|
18
|
+
...h,
|
|
19
|
+
ref: (r) => {
|
|
20
|
+
o.ref(r), typeof t == "function" ? t(r) : t && (t.current = r);
|
|
21
|
+
},
|
|
22
|
+
style: I,
|
|
23
|
+
value: o.value || "",
|
|
24
|
+
onChange: (...r) => {
|
|
25
|
+
var n;
|
|
26
|
+
(n = o.onChange) == null || n.call(o, ...r), m == null || m(...r);
|
|
27
|
+
},
|
|
28
|
+
onPaste: (...r) => {
|
|
29
|
+
var n;
|
|
30
|
+
(n = o.onChange) == null || n.call(o, ...r), u == null || u(...r);
|
|
31
|
+
},
|
|
32
|
+
onBlur: (...r) => {
|
|
33
|
+
var n;
|
|
34
|
+
(n = o.onBlur) == null || n.call(o), p == null || p(...r);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
) })
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
const q = y(R);
|
|
42
|
+
export {
|
|
43
|
+
q as FormInput
|
|
44
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InputProps } from '../Input';
|
|
2
|
+
import { FormRenderControlExtendProps } from '../Form';
|
|
3
|
+
import { FieldValues } from 'react-hook-form';
|
|
4
|
+
|
|
5
|
+
export interface FormInputProps<Data extends FieldValues> extends FormRenderControlExtendProps<Data>, Omit<InputProps, 'form' | 'name'> {
|
|
6
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { FormControl as t, FormItem as F } from "../Form/Form.mjs";
|
|
3
|
+
import { FormRenderControl as f } from "../Form/FormRenderControl.mjs";
|
|
4
|
+
import { Radio as i } from "../Radio/Radio.mjs";
|
|
5
|
+
const b = (n) => {
|
|
6
|
+
const {
|
|
7
|
+
form: u,
|
|
8
|
+
name: d,
|
|
9
|
+
label: c,
|
|
10
|
+
onValueChange: m,
|
|
11
|
+
value: h,
|
|
12
|
+
defaultValue: s,
|
|
13
|
+
renderOption: a,
|
|
14
|
+
...v
|
|
15
|
+
} = n;
|
|
16
|
+
return /* @__PURE__ */ e(
|
|
17
|
+
f,
|
|
18
|
+
{
|
|
19
|
+
form: u,
|
|
20
|
+
name: d,
|
|
21
|
+
label: c,
|
|
22
|
+
render: ({ field: o }) => /* @__PURE__ */ e(t, { children: /* @__PURE__ */ e(
|
|
23
|
+
i,
|
|
24
|
+
{
|
|
25
|
+
...o,
|
|
26
|
+
...v,
|
|
27
|
+
defaultValue: s || o.value,
|
|
28
|
+
value: h || o.value,
|
|
29
|
+
onValueChange: (r) => {
|
|
30
|
+
o.onChange(r), m == null || m(r);
|
|
31
|
+
},
|
|
32
|
+
renderOption: (r, l) => /* @__PURE__ */ e(F, { children: /* @__PURE__ */ e(t, { children: (a == null ? void 0 : a(r, l)) || /* @__PURE__ */ e(l, { ...r }) }) }, r.value)
|
|
33
|
+
}
|
|
34
|
+
) })
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
b as FormRadio
|
|
40
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { RadioProps } from '../Radio';
|
|
2
|
+
import { FormRenderControlExtendProps } from '../Form';
|
|
3
|
+
import { FieldValues } from 'react-hook-form';
|
|
4
|
+
|
|
5
|
+
export interface FormRadioGroupProps<Data extends FieldValues> extends FormRenderControlExtendProps<Data>, Partial<Omit<RadioProps, 'name'>> {
|
|
6
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
|
+
import { FormSelectProps } from './FormSelect.types';
|
|
3
|
+
|
|
4
|
+
export declare const FormSelect: <Data extends FieldValues, ExtendOptionData>(props: FormSelectProps<Data, ExtendOptionData>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { FormControl as f } from "../Form/Form.mjs";
|
|
3
|
+
import { FormRenderControl as d } from "../Form/FormRenderControl.mjs";
|
|
4
|
+
import "../Select/SelectRoot.mjs";
|
|
5
|
+
import { Select as g } from "../Select/Select.mjs";
|
|
6
|
+
const S = (n) => {
|
|
7
|
+
const {
|
|
8
|
+
form: m,
|
|
9
|
+
label: i,
|
|
10
|
+
name: p,
|
|
11
|
+
options: l = [],
|
|
12
|
+
onChange: r,
|
|
13
|
+
containerProps: c,
|
|
14
|
+
...s
|
|
15
|
+
} = n;
|
|
16
|
+
return /* @__PURE__ */ e(
|
|
17
|
+
d,
|
|
18
|
+
{
|
|
19
|
+
form: m,
|
|
20
|
+
name: p,
|
|
21
|
+
label: i,
|
|
22
|
+
containerProps: c,
|
|
23
|
+
render: ({ field: t }) => /* @__PURE__ */ e(
|
|
24
|
+
g,
|
|
25
|
+
{
|
|
26
|
+
value: t.value,
|
|
27
|
+
options: l,
|
|
28
|
+
onChange: (o) => {
|
|
29
|
+
t.onChange(o), r == null || r(o);
|
|
30
|
+
},
|
|
31
|
+
renderTrigger: (o, a) => /* @__PURE__ */ e(f, { children: a }),
|
|
32
|
+
...s
|
|
33
|
+
}
|
|
34
|
+
)
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
S as FormSelect
|
|
40
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SelectProps } from '../Select';
|
|
2
|
+
import { FormRenderControlExtendProps } from '../Form';
|
|
3
|
+
import { FieldValues } from 'react-hook-form';
|
|
4
|
+
|
|
5
|
+
export interface FormSelectProps<Data extends FieldValues, ExtendOptionData> extends FormRenderControlExtendProps<Data>, Omit<SelectProps<ExtendOptionData>, 'onChange'>, Partial<Pick<SelectProps<ExtendOptionData>, 'onChange'>> {
|
|
6
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { FormControl as p } from "../Form/Form.mjs";
|
|
3
|
+
import { FormRenderControl as i } from "../Form/FormRenderControl.mjs";
|
|
4
|
+
import { Textarea as s } from "../Textarea/Textarea.mjs";
|
|
5
|
+
const F = (e) => {
|
|
6
|
+
const { form: t, label: m, name: n, containerProps: a, ...l } = e;
|
|
7
|
+
return /* @__PURE__ */ r(
|
|
8
|
+
i,
|
|
9
|
+
{
|
|
10
|
+
form: t,
|
|
11
|
+
name: n,
|
|
12
|
+
label: m,
|
|
13
|
+
containerProps: a,
|
|
14
|
+
render: ({ field: o }) => /* @__PURE__ */ r(p, { children: /* @__PURE__ */ r(
|
|
15
|
+
s,
|
|
16
|
+
{
|
|
17
|
+
...o,
|
|
18
|
+
value: o.value || "",
|
|
19
|
+
...l
|
|
20
|
+
}
|
|
21
|
+
) })
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
F as FormTextarea
|
|
27
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TextareaProps } from '../Textarea';
|
|
2
|
+
import { FormRenderControlExtendProps } from '../Form';
|
|
3
|
+
import { FieldValues } from 'react-hook-form';
|
|
4
|
+
|
|
5
|
+
export interface FormTextareaProps<Data extends FieldValues> extends FormRenderControlExtendProps<Data>, Omit<TextareaProps, 'form' | 'name'> {
|
|
6
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { SidebarTrigger as t } from "../Sidebar/Sidebar.mjs";
|
|
3
|
+
import { Separator as l } from "../Separator/Separator.mjs";
|
|
4
|
+
const m = (s) => {
|
|
5
|
+
const {
|
|
6
|
+
children: r,
|
|
7
|
+
hideTrigger: a = !1
|
|
8
|
+
} = s;
|
|
9
|
+
return /* @__PURE__ */ i(
|
|
10
|
+
"header",
|
|
11
|
+
{
|
|
12
|
+
className: "flex h-16 shrink-0 items-center justify-between gap-2 transition-[width,height] ease-linear group-has-[[data-collapsible=icon]]/sidebar-wrapper:h-12",
|
|
13
|
+
children: [
|
|
14
|
+
!a && /* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
|
|
15
|
+
/* @__PURE__ */ e(t, { className: "ml-1" }),
|
|
16
|
+
/* @__PURE__ */ e(l, { orientation: "vertical", className: "mr-2 h-4" })
|
|
17
|
+
] }),
|
|
18
|
+
a ? r : /* @__PURE__ */ e("div", { className: "flex-1 text-right pr-6", children: r })
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
m as Header,
|
|
25
|
+
m as default
|
|
26
|
+
};
|
package/Header/index.mjs
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
|
|
3
|
+
declare const HoverCard: React.FC<HoverCardPrimitive.HoverCardProps>;
|
|
4
|
+
declare const HoverCardTrigger: React.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
5
|
+
declare const HoverCardContent: React.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export { HoverCard, HoverCardTrigger, HoverCardContent };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
import * as t from "@radix-ui/react-hover-card";
|
|
4
|
+
import { cn as s } from "@oneplatformdev/utils";
|
|
5
|
+
const l = t.Root, c = t.Trigger, m = n.forwardRef(({ className: o, align: e = "center", sideOffset: a = 4, ...r }, d) => /* @__PURE__ */ i(
|
|
6
|
+
t.Content,
|
|
7
|
+
{
|
|
8
|
+
ref: d,
|
|
9
|
+
align: e,
|
|
10
|
+
sideOffset: a,
|
|
11
|
+
className: s(
|
|
12
|
+
"z-50 w-64 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
|
+
o
|
|
14
|
+
),
|
|
15
|
+
...r
|
|
16
|
+
}
|
|
17
|
+
));
|
|
18
|
+
m.displayName = t.Content.displayName;
|
|
19
|
+
export {
|
|
20
|
+
l as HoverCard,
|
|
21
|
+
m as HoverCardContent,
|
|
22
|
+
c as HoverCardTrigger
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './HoverCard';
|
package/Input/Input.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InputProps } from './Input.types';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
|
|
4
|
+
export declare const BaseInput: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
5
|
+
export declare const PasswordInput: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
6
|
+
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|