@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,26 @@
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
2
|
+
import { FormControl as l } from "../Form/Form.mjs";
|
3
|
+
import { FormRenderControl as p } from "../Form/FormRenderControl.mjs";
|
4
|
+
import { Textarea as f } from "../Textarea/Textarea.mjs";
|
5
|
+
const u = (e) => {
|
6
|
+
const { form: m, label: t, name: n, ...a } = e;
|
7
|
+
return /* @__PURE__ */ r(
|
8
|
+
p,
|
9
|
+
{
|
10
|
+
form: m,
|
11
|
+
name: n,
|
12
|
+
label: t,
|
13
|
+
render: ({ field: o }) => /* @__PURE__ */ r(l, { children: /* @__PURE__ */ r(
|
14
|
+
f,
|
15
|
+
{
|
16
|
+
...o,
|
17
|
+
value: o.value || "",
|
18
|
+
...a
|
19
|
+
}
|
20
|
+
) })
|
21
|
+
}
|
22
|
+
);
|
23
|
+
};
|
24
|
+
export {
|
25
|
+
u as FormTextarea
|
26
|
+
};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { TextareaProps } from '../Textarea';
|
2
|
+
import { FormRenderControlExtendProps } from '../Form';
|
3
|
+
import { UseFormReturn } from 'react-hook-form';
|
4
|
+
import { FieldValues } from 'react-hook-form/dist/types/fields';
|
5
|
+
|
6
|
+
export interface FormTextareaProps<Data extends FieldValues, Form extends UseFormReturn<Data>> extends FormRenderControlExtendProps<Data, Form>, Omit<TextareaProps, 'form' | 'name'> {
|
7
|
+
}
|
@@ -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>>;
|
package/Input/Input.mjs
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
import { jsxs as c, jsx as s } from "react/jsx-runtime";
|
2
|
+
import l, { useState as d } from "react";
|
3
|
+
import { Eye as f, EyeOff as y } from "lucide-react";
|
4
|
+
import { inputVariants as N } from "./inputVariants.mjs";
|
5
|
+
import { cn as b } from "@oneplatformdev/utils";
|
6
|
+
const p = l.forwardRef(
|
7
|
+
(t, e) => {
|
8
|
+
const {
|
9
|
+
className: a,
|
10
|
+
variant: r,
|
11
|
+
type: o,
|
12
|
+
slotProps: { input: n } = {},
|
13
|
+
...u
|
14
|
+
} = t, { startAdornment: i } = n || {};
|
15
|
+
return /* @__PURE__ */ c("div", { className: "relative", children: [
|
16
|
+
!!i && /* @__PURE__ */ s("span", { className: "absolute left-[10px] top-1/2 -translate-y-1/2", children: i }),
|
17
|
+
/* @__PURE__ */ s(
|
18
|
+
"input",
|
19
|
+
{
|
20
|
+
type: o,
|
21
|
+
className: b(
|
22
|
+
N({ variant: r, className: a }),
|
23
|
+
!!i && "pl-8"
|
24
|
+
),
|
25
|
+
ref: e,
|
26
|
+
...u
|
27
|
+
}
|
28
|
+
)
|
29
|
+
] });
|
30
|
+
}
|
31
|
+
);
|
32
|
+
p.displayName = "Input";
|
33
|
+
const m = l.forwardRef(
|
34
|
+
(t, e) => {
|
35
|
+
const [a, r] = d(!1), o = a ? "text" : "password", n = () => {
|
36
|
+
r(!a);
|
37
|
+
};
|
38
|
+
return /* @__PURE__ */ c("div", { className: "relative", children: [
|
39
|
+
/* @__PURE__ */ s(p, { ...t, type: o, className: "pr-8", ref: e }),
|
40
|
+
/* @__PURE__ */ s(w, { isVisible: a, onClick: n })
|
41
|
+
] });
|
42
|
+
}
|
43
|
+
);
|
44
|
+
m.displayName = "PasswordInput";
|
45
|
+
const w = ({ isVisible: t, onClick: e }) => /* @__PURE__ */ s(
|
46
|
+
"button",
|
47
|
+
{
|
48
|
+
type: "button",
|
49
|
+
onClick: e,
|
50
|
+
className: "absolute top-1/2 right-3 transform -translate-y-1/2",
|
51
|
+
children: t ? /* @__PURE__ */ s(f, { size: 16 }) : /* @__PURE__ */ s(y, { size: 16 })
|
52
|
+
}
|
53
|
+
), I = l.forwardRef(
|
54
|
+
({ type: t, ...e }, a) => t === "password" ? /* @__PURE__ */ s(m, { type: t, ...e, ref: a }) : /* @__PURE__ */ s(p, { type: t, ...e, ref: a })
|
55
|
+
);
|
56
|
+
I.displayName = "Input";
|
57
|
+
export {
|
58
|
+
p as BaseInput,
|
59
|
+
I as Input,
|
60
|
+
m as PasswordInput
|
61
|
+
};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { inputVariants } from './inputVariants';
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
3
|
+
import { default as React, ReactNode } from 'react';
|
4
|
+
|
5
|
+
export interface InputSlotInputProps {
|
6
|
+
startAdornment?: ReactNode;
|
7
|
+
}
|
8
|
+
export interface InputSlotProps {
|
9
|
+
input?: InputSlotInputProps;
|
10
|
+
}
|
11
|
+
export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof inputVariants> {
|
12
|
+
slotProps?: InputSlotProps;
|
13
|
+
}
|
package/Input/index.d.ts
ADDED
package/Input/index.mjs
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
import { cva as e } from "class-variance-authority";
|
2
|
+
const r = e(
|
3
|
+
"flex h-10 w-full rounded-md border border-input px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
4
|
+
{
|
5
|
+
variants: {
|
6
|
+
variant: {
|
7
|
+
default: "bg-background",
|
8
|
+
grey: "bg-slate-200"
|
9
|
+
}
|
10
|
+
},
|
11
|
+
defaultVariants: {
|
12
|
+
variant: "default"
|
13
|
+
}
|
14
|
+
}
|
15
|
+
);
|
16
|
+
export {
|
17
|
+
r as inputVariants
|
18
|
+
};
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import * as React from "react";
|
2
|
+
declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
3
|
+
value?: string;
|
4
|
+
onChange?: (newValue: string) => unknown;
|
5
|
+
maxLength: number;
|
6
|
+
textAlign?: "left" | "center" | "right";
|
7
|
+
onComplete?: (...args: any[]) => unknown;
|
8
|
+
pushPasswordManagerStrategy?: "increase-width" | "none";
|
9
|
+
pasteTransformer?: (pasted: string) => string;
|
10
|
+
containerClassName?: string;
|
11
|
+
noScriptCSSFallback?: string | null;
|
12
|
+
} & {
|
13
|
+
render: (props: import('input-otp').RenderProps) => React.ReactNode;
|
14
|
+
children?: never;
|
15
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
16
|
+
value?: string;
|
17
|
+
onChange?: (newValue: string) => unknown;
|
18
|
+
maxLength: number;
|
19
|
+
textAlign?: "left" | "center" | "right";
|
20
|
+
onComplete?: (...args: any[]) => unknown;
|
21
|
+
pushPasswordManagerStrategy?: "increase-width" | "none";
|
22
|
+
pasteTransformer?: (pasted: string) => string;
|
23
|
+
containerClassName?: string;
|
24
|
+
noScriptCSSFallback?: string | null;
|
25
|
+
} & {
|
26
|
+
render?: never;
|
27
|
+
children: React.ReactNode;
|
28
|
+
} & React.RefAttributes<HTMLInputElement>, "ref">) & React.RefAttributes<HTMLInputElement>>;
|
29
|
+
declare const InputOTPGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
30
|
+
declare const InputOTPSlot: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
31
|
+
index: number;
|
32
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
33
|
+
declare const InputOTPSeparator: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
34
|
+
export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator };
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import { jsx as r, jsxs as m } from "react/jsx-runtime";
|
2
|
+
import * as s from "react";
|
3
|
+
import { OTPInput as c, OTPInputContext as u } from "input-otp";
|
4
|
+
import { Minus as f } from "lucide-react";
|
5
|
+
import { cn as n } from "@oneplatformdev/utils";
|
6
|
+
const x = s.forwardRef(({ className: e, containerClassName: t, ...a }, o) => /* @__PURE__ */ r(
|
7
|
+
c,
|
8
|
+
{
|
9
|
+
ref: o,
|
10
|
+
containerClassName: n(
|
11
|
+
"flex items-center gap-2 has-[:disabled]:opacity-50",
|
12
|
+
t
|
13
|
+
),
|
14
|
+
className: n("disabled:cursor-not-allowed", e),
|
15
|
+
...a
|
16
|
+
}
|
17
|
+
));
|
18
|
+
x.displayName = "InputOTP";
|
19
|
+
const O = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ r("div", { ref: a, className: n("flex items-center", e), ...t }));
|
20
|
+
O.displayName = "InputOTPGroup";
|
21
|
+
const P = s.forwardRef(({ index: e, className: t, ...a }, o) => {
|
22
|
+
const i = s.useContext(u), { char: d, hasFakeCaret: l, isActive: p } = i.slots[e];
|
23
|
+
return /* @__PURE__ */ m(
|
24
|
+
"div",
|
25
|
+
{
|
26
|
+
ref: o,
|
27
|
+
className: n(
|
28
|
+
"relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",
|
29
|
+
p && "z-10 ring-1 ring-ring",
|
30
|
+
t
|
31
|
+
),
|
32
|
+
...a,
|
33
|
+
children: [
|
34
|
+
d,
|
35
|
+
l && /* @__PURE__ */ r("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ r("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
|
36
|
+
]
|
37
|
+
}
|
38
|
+
);
|
39
|
+
});
|
40
|
+
P.displayName = "InputOTPSlot";
|
41
|
+
const T = s.forwardRef(({ ...e }, t) => /* @__PURE__ */ r("div", { ref: t, role: "separator", ...e, children: /* @__PURE__ */ r(f, {}) }));
|
42
|
+
T.displayName = "InputOTPSeparator";
|
43
|
+
export {
|
44
|
+
x as InputOTP,
|
45
|
+
O as InputOTPGroup,
|
46
|
+
T as InputOTPSeparator,
|
47
|
+
P as InputOTPSlot
|
48
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './InputOTP';
|
package/Label/Label.d.ts
ADDED
@@ -0,0 +1,5 @@
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
2
|
+
import * as React from "react";
|
3
|
+
import * as LabelPrimitive from "@radix-ui/react-label";
|
4
|
+
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import('class-variance-authority/dist/types').ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
|
5
|
+
export { Label };
|
package/Label/Label.mjs
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
2
|
+
import * as i from "react";
|
3
|
+
import * as o from "@radix-ui/react-label";
|
4
|
+
import { cn as e } from "@oneplatformdev/utils";
|
5
|
+
import { labelVariants as s } from "./labelVariants.mjs";
|
6
|
+
const p = i.forwardRef(({ className: a, ...r }, m) => /* @__PURE__ */ t(
|
7
|
+
o.Root,
|
8
|
+
{
|
9
|
+
ref: m,
|
10
|
+
className: e(s(), a),
|
11
|
+
...r
|
12
|
+
}
|
13
|
+
));
|
14
|
+
p.displayName = o.Root.displayName;
|
15
|
+
export {
|
16
|
+
p as Label
|
17
|
+
};
|
package/Label/index.d.ts
ADDED
package/Label/index.mjs
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export declare const labelVariants: (props?: import('class-variance-authority/dist/types').ClassProp | undefined) => string;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { default as React, JSX } from 'react';
|
2
|
+
|
3
|
+
/**
|
4
|
+
* Component lazy load component.
|
5
|
+
* @public
|
6
|
+
* @see [Documentation](#)
|
7
|
+
* @example
|
8
|
+
* ```tsx
|
9
|
+
* import { lazy } from 'react';
|
10
|
+
* import { LazyLoader } from '@oneplatformdev/ui/LazyLoader';
|
11
|
+
*
|
12
|
+
* const ModuleComponentViewLazy = LazyLoader(
|
13
|
+
* lazy(() => import('path/to/module').then(module => ({
|
14
|
+
* default: module.ModuleComponentView,
|
15
|
+
* })),
|
16
|
+
* ),
|
17
|
+
* );
|
18
|
+
* ```
|
19
|
+
*/
|
20
|
+
export declare const LazyLoader: (Component: React.LazyExoticComponent<any>, showLoader?: boolean) => (props: any) => JSX.Element;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
2
|
+
import { Suspense as m } from "react";
|
3
|
+
import { LoadingMask as t } from "../LoadingMask/LoadingMask.mjs";
|
4
|
+
const p = (r, a = !0) => (e) => /* @__PURE__ */ o(m, { fallback: a ? /* @__PURE__ */ o(t, {}) : null, children: /* @__PURE__ */ o(r, { ...e }) });
|
5
|
+
export {
|
6
|
+
p as LazyLoader
|
7
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export { LazyLoader as default, LazyLoader } from './LazyLoader';
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const LoadingMask: () => import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,59 @@
|
|
1
|
+
import { jsx as r, jsxs as o } from "react/jsx-runtime";
|
2
|
+
const t = () => /* @__PURE__ */ r("div", { className: "flex flex-1 items-center justify-center", children: /* @__PURE__ */ o(
|
3
|
+
"svg",
|
4
|
+
{
|
5
|
+
className: "h-8 w-8 animate-spin text-gray-900 dark:text-gray-50",
|
6
|
+
viewBox: "0 0 24 24",
|
7
|
+
fill: "none",
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
9
|
+
children: [
|
10
|
+
/* @__PURE__ */ r("path", { d: "M12 4.75V6.25", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
|
11
|
+
/* @__PURE__ */ r(
|
12
|
+
"path",
|
13
|
+
{
|
14
|
+
d: "M17.1475 6.8525L16.0625 7.9375",
|
15
|
+
stroke: "currentColor",
|
16
|
+
strokeWidth: "2",
|
17
|
+
strokeLinecap: "round",
|
18
|
+
strokeLinejoin: "round"
|
19
|
+
}
|
20
|
+
),
|
21
|
+
/* @__PURE__ */ r("path", { d: "M19.25 12H17.75", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
|
22
|
+
/* @__PURE__ */ r(
|
23
|
+
"path",
|
24
|
+
{
|
25
|
+
d: "M17.1475 17.1475L16.0625 16.0625",
|
26
|
+
stroke: "currentColor",
|
27
|
+
strokeWidth: "2",
|
28
|
+
strokeLinecap: "round",
|
29
|
+
strokeLinejoin: "round"
|
30
|
+
}
|
31
|
+
),
|
32
|
+
/* @__PURE__ */ r("path", { d: "M12 17.75V19.25", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
|
33
|
+
/* @__PURE__ */ r(
|
34
|
+
"path",
|
35
|
+
{
|
36
|
+
d: "M6.8525 17.1475L7.9375 16.0625",
|
37
|
+
stroke: "currentColor",
|
38
|
+
strokeWidth: "2",
|
39
|
+
strokeLinecap: "round",
|
40
|
+
strokeLinejoin: "round"
|
41
|
+
}
|
42
|
+
),
|
43
|
+
/* @__PURE__ */ r("path", { d: "M4.75 12H6.25", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
|
44
|
+
/* @__PURE__ */ r(
|
45
|
+
"path",
|
46
|
+
{
|
47
|
+
d: "M6.8525 6.8525L7.9375 7.9375",
|
48
|
+
stroke: "currentColor",
|
49
|
+
strokeWidth: "2",
|
50
|
+
strokeLinecap: "round",
|
51
|
+
strokeLinejoin: "round"
|
52
|
+
}
|
53
|
+
)
|
54
|
+
]
|
55
|
+
}
|
56
|
+
) });
|
57
|
+
export {
|
58
|
+
t as LoadingMask
|
59
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export { LoadingMask } from './LoadingMask';
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
2
|
+
import { cn as r } from "@oneplatformdev/utils";
|
3
|
+
import { loadingProgressVariants as a } from "./loadingProgressVariants.mjs";
|
4
|
+
const f = (e) => {
|
5
|
+
const { className: s, fullWidth: t = !1, size: i, color: l, wrapClassName: n } = e;
|
6
|
+
return /* @__PURE__ */ o(
|
7
|
+
"div",
|
8
|
+
{
|
9
|
+
className: r(
|
10
|
+
n,
|
11
|
+
"w-fit h-auto",
|
12
|
+
!!t && "flex grow w-full h-full items-center justify-center"
|
13
|
+
),
|
14
|
+
children: /* @__PURE__ */ o(
|
15
|
+
"svg",
|
16
|
+
{
|
17
|
+
xmlns: "http://www.w3.org/2000/svg",
|
18
|
+
width: "24",
|
19
|
+
height: "24",
|
20
|
+
viewBox: "0 0 24 24",
|
21
|
+
fill: "none",
|
22
|
+
stroke: "currentColor",
|
23
|
+
strokeWidth: "2",
|
24
|
+
strokeLinecap: "round",
|
25
|
+
strokeLinejoin: "round",
|
26
|
+
className: r(
|
27
|
+
a({ size: i, color: l, className: s })
|
28
|
+
),
|
29
|
+
children: /* @__PURE__ */ o("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
|
30
|
+
}
|
31
|
+
)
|
32
|
+
}
|
33
|
+
);
|
34
|
+
};
|
35
|
+
export {
|
36
|
+
f as LoadingProgress
|
37
|
+
};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { loadingProgressVariants } from './loadingProgressVariants';
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
3
|
+
|
4
|
+
export interface ILoadingProgressProps extends VariantProps<typeof loadingProgressVariants> {
|
5
|
+
wrapClassName?: string;
|
6
|
+
className?: string;
|
7
|
+
fullWidth?: boolean;
|
8
|
+
}
|