@oneplatformdev/ui 0.1.10-0 → 0.1.10-3
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/CHANGELOG.md +24 -0
- package/package.json +14 -8
- package/{index.js → ui.js} +87 -87
- package/{Badge/Badge.js → ui12.js} +1 -1
- package/{Button/Button.js → ui15.js} +5 -6
- package/{ButtonIcon/ButtonIcon.js → ui17.js} +4 -5
- package/{Calendar/Calendar.js → ui19.js} +1 -2
- package/{Carousel/Carousel.js → ui21.js} +6 -7
- package/{Checkbox/Checkbox.js → ui23.js} +18 -19
- package/{Combobox/Combobox.js → ui25.js} +36 -38
- package/{Command/Command.js → ui26.js} +19 -20
- package/{DataTable/DataTable.js → ui27.js} +12 -13
- package/{DatePicker/DatePicker.js → ui28.js} +15 -16
- package/{Dialog/Dialog.js → ui29.js} +1 -1
- package/{DropdownMenu/DropdownMenu.js → ui32.js} +5 -5
- package/{Form/Form.js → ui33.js} +8 -9
- package/{Form/FormRenderControl.js → ui34.js} +1 -1
- package/{FormCheckbox/FormCheckbox.js → ui35.js} +5 -5
- package/{FormCombobox/FormCombobox.js → ui36.js} +5 -5
- package/{FormDatePicker/FormDatePicker.js → ui37.js} +5 -5
- package/{FormInput/FormInput.js → ui38.js} +7 -7
- package/ui39.js +39 -0
- package/{Alert/Alert.js → ui4.js} +1 -1
- package/{FormTextarea/FormTextarea.js → ui40.js} +5 -5
- package/{Header/Header.js → ui41.js} +2 -2
- package/{Input/Input.js → ui43.js} +1 -1
- package/{Label/Label.js → ui45.js} +1 -1
- package/ui47.js +7 -0
- package/{LoadingMask/LoadingMask.js → ui49.js} +1 -1
- package/{AlertDialog/AlertDialogRoot.js → ui5.js} +32 -33
- package/{LoadingProgress/LoadingProgress.js → ui51.js} +1 -1
- package/{Menubar/Menubar.js → ui53.js} +4 -4
- package/{NavigationMenu/NavigationMenu.js → ui54.js} +1 -1
- package/{Pagination/Pagination.js → ui56.js} +1 -2
- package/{Popover/Popover.js → ui57.js} +1 -1
- package/{RadioGroup/RadioGroup.js → ui59.js} +1 -1
- package/{AlertDialog/AlertDialog.js → ui6.js} +1 -1
- package/{Search/Search.js → ui62.js} +9 -9
- package/{Select/SelectRoot.js → ui63.js} +3 -3
- package/{Select/Select.js → ui64.js} +24 -25
- package/{Sidebar/Sidebar.js → ui67.js} +15 -16
- package/{AreaChart/AreaChart.js → ui7.js} +1 -1
- package/{Tabs/Tabs.js → ui74.js} +1 -1
- package/{Textarea/Textarea.js → ui75.js} +1 -1
- package/{Theme/ThemeModeToggle.js → ui77.js} +5 -6
- package/{Toast/Toast.js → ui78.js} +1 -1
- package/{Aside/Aside.js → ui8.js} +1 -1
- package/{Toaster/Toaster.js → ui80.js} +2 -2
- package/{ToggleGroup/ToggleGroup.js → ui82.js} +1 -1
- package/{Tooltip/Tooltip.js → ui84.js} +1 -1
- package/{Dropzone/Dropzone.js → ui85.js} +5 -5
- package/ui87.js +19 -0
- package/{TablePagination/TablePagination.js → ui88.js} +14 -16
- package/{Aside/AsideSidebar.js → ui9.js} +1 -1
- package/ui91.js +63 -0
- package/{Dropzone/DropzoneFilePreview.js → ui93.js} +2 -2
- package/{Dropzone/DropzoneSinglePickPreview.js → ui94.js} +1 -1
- package/ui98.js +47 -0
- package/Accordion/index.js +0 -7
- package/Alert/index.js +0 -6
- package/AlertDialog/AlertDialog.stories.js +0 -121
- package/AlertDialog/AlertDialog.types.js +0 -1
- package/AlertDialog/index.js +0 -16
- package/AreaChart/AreaChart.types.js +0 -1
- package/AreaChart/index.js +0 -4
- package/Aside/Aside.types.js +0 -1
- package/Aside/index.js +0 -7
- package/AspectRatio/index.js +0 -5
- package/Avatar/index.js +0 -6
- package/Badge/Badge.types.js +0 -1
- package/Badge/index.js +0 -6
- package/Breadcrumb/index.js +0 -10
- package/Button/Button.stories.js +0 -20
- package/Button/Button.types.js +0 -1
- package/Button/index.js +0 -7
- package/ButtonIcon/ButtonIcon.stories.js +0 -126
- package/ButtonIcon/ButtonIcon.types.js +0 -1
- package/ButtonIcon/index.js +0 -7
- package/Calendar/index.js +0 -4
- package/Card/index.js +0 -9
- package/Carousel/index.js +0 -8
- package/Chart/index.js +0 -9
- package/Checkbox/Checkbox.types.js +0 -1
- package/Checkbox/index.js +0 -5
- package/Collapsible/index.js +0 -6
- package/Combobox/Combobox.types.js +0 -1
- package/Combobox/ComboboxOptionItem.js +0 -108
- package/Combobox/ComboboxOptions.js +0 -64
- package/Combobox/index.js +0 -4
- package/Command/index.js +0 -12
- package/DataTable/DataTable.types.js +0 -1
- package/DataTable/DataTableColumnFilter.js +0 -31
- package/DataTable/index.js +0 -4
- package/DataTable/useDataTable.js +0 -30
- package/DatePicker/DatePicker.types.js +0 -1
- package/DatePicker/index.js +0 -5
- package/Dialog/index.js +0 -17
- package/Drawer/index.js +0 -13
- package/DropdownMenu/index.js +0 -18
- package/Dropzone/index.js +0 -7
- package/Form/FormRenderControl.types.js +0 -1
- package/Form/index.js +0 -13
- package/FormCheckbox/FormCheckbox.types.js +0 -1
- package/FormCheckbox/index.js +0 -4
- package/FormCombobox/FormCombobox.types.js +0 -1
- package/FormCombobox/index.js +0 -4
- package/FormDatePicker/FormDatePicker.types.js +0 -1
- package/FormDatePicker/index.js +0 -5
- package/FormDropzone/FormDropzone.js +0 -19
- package/FormDropzone/FormDropzone.types.js +0 -1
- package/FormDropzone/index.js +0 -4
- package/FormInput/FormInput.types.js +0 -1
- package/FormInput/index.js +0 -4
- package/FormRadio/FormRadio.js +0 -40
- package/FormRadio/FormRadio.types.js +0 -1
- package/FormRadio/index.js +0 -4
- package/FormSelect/FormSelect.js +0 -40
- package/FormSelect/FormSelect.types.js +0 -1
- package/FormSelect/index.js +0 -4
- package/FormTextarea/FormTextarea.types.js +0 -1
- package/FormTextarea/index.js +0 -4
- package/Header/Header.types.js +0 -1
- package/Header/index.js +0 -5
- package/HoverCard/index.js +0 -6
- package/Input/Input.types.js +0 -1
- package/Input/index.js +0 -7
- package/InputOTP/index.js +0 -7
- package/Label/index.js +0 -6
- package/LazyLoader/LazyLoader.js +0 -8
- package/LazyLoader/index.js +0 -5
- package/LoadedIcon/index.js +0 -4
- package/LoadingMask/LoadingMask.types.js +0 -1
- package/LoadingMask/index.js +0 -6
- package/LoadingProgress/LoadingProgress.types.js +0 -1
- package/LoadingProgress/index.js +0 -6
- package/Menubar/index.js +0 -19
- package/NavigationMenu/index.js +0 -13
- package/Pagination/index.js +0 -10
- package/Popover/index.js +0 -7
- package/Progress/index.js +0 -4
- package/Radio/Radio.js +0 -12
- package/Radio/Radio.types.js +0 -1
- package/Radio/index.js +0 -4
- package/RadioGroup/index.js +0 -6
- package/Resizable/index.js +0 -6
- package/ScrollArea/index.js +0 -5
- package/Search/Search.types.js +0 -1
- package/Search/index.js +0 -5
- package/Select/Select.stories.js +0 -41
- package/Select/Select.types.js +0 -1
- package/Select/index.js +0 -15
- package/Separator/index.js +0 -4
- package/Sheet/index.js +0 -13
- package/Sidebar/index.js +0 -27
- package/Skeleton/index.js +0 -4
- package/Slider/index.js +0 -4
- package/Sonner/index.js +0 -4
- package/Switch/index.js +0 -4
- package/Table/index.js +0 -11
- package/TablePagination/index.js +0 -4
- package/Tabs/Tabs.types.js +0 -1
- package/Tabs/index.js +0 -10
- package/Textarea/Textarea.types.js +0 -1
- package/Textarea/index.js +0 -4
- package/Theme/index.js +0 -6
- package/Toast/Toast.types.js +0 -1
- package/Toast/index.js +0 -15
- package/Toast/toast.constants.js +0 -9
- package/Toaster/index.js +0 -4
- package/Toggle/index.js +0 -5
- package/ToggleGroup/index.js +0 -5
- package/Tooltip/Tooltip.types.js +0 -1
- package/Tooltip/index.js +0 -9
- /package/{AspectRatio/AspectRatio.js → ui10.js} +0 -0
- /package/{Avatar/Avatar.js → ui11.js} +0 -0
- /package/{Badge/badgeVariants.js → ui13.js} +0 -0
- /package/{Breadcrumb/Breadcrumb.js → ui14.js} +0 -0
- /package/{Button/buttonVariants.js → ui16.js} +0 -0
- /package/{ButtonIcon/buttonIconVariants.js → ui18.js} +0 -0
- /package/{Card/Card.js → ui20.js} +0 -0
- /package/{Chart/Chart.js → ui22.js} +0 -0
- /package/{Collapsible/Collapsible.js → ui24.js} +0 -0
- /package/{Accordion/Accordion.js → ui3.js} +0 -0
- /package/{Dialog/DialogOverlayScope.js → ui30.js} +0 -0
- /package/{Drawer/Drawer.js → ui31.js} +0 -0
- /package/{HoverCard/HoverCard.js → ui42.js} +0 -0
- /package/{InputOTP/InputOTP.js → ui44.js} +0 -0
- /package/{Label/labelVariants.js → ui46.js} +0 -0
- /package/{LoadedIcon/LoadedIcon.js → ui48.js} +0 -0
- /package/{LoadingMask/RenderLoadingMask.js → ui50.js} +0 -0
- /package/{LoadingProgress/loadingProgressVariants.js → ui52.js} +0 -0
- /package/{NavigationMenu/navigationMenuVariants.js → ui55.js} +0 -0
- /package/{Progress/Progress.js → ui58.js} +0 -0
- /package/{Resizable/Resizable.js → ui60.js} +0 -0
- /package/{ScrollArea/ScrollArea.js → ui61.js} +0 -0
- /package/{Separator/Separator.js → ui65.js} +0 -0
- /package/{Sheet/Sheet.js → ui66.js} +0 -0
- /package/{Skeleton/Skeleton.js → ui68.js} +0 -0
- /package/{Slider/Slider.js → ui69.js} +0 -0
- /package/{Sonner/Sonner.js → ui70.js} +0 -0
- /package/{Switch/Switch.js → ui71.js} +0 -0
- /package/{Table/Table.js → ui72.js} +0 -0
- /package/{Tabs/TabsRoot.js → ui73.js} +0 -0
- /package/{Theme/ThemeProvider.js → ui76.js} +0 -0
- /package/{Toast/useToast.js → ui79.js} +0 -0
- /package/{Toggle/Toggle.js → ui81.js} +0 -0
- /package/{Tooltip/TooltipRoot.js → ui83.js} +0 -0
- /package/{Dropzone/Dropzone.types.js → ui86.js} +0 -0
- /package/{Alert/alertVariants.js → ui89.js} +0 -0
- /package/{Input/inputVariants.js → ui90.js} +0 -0
- /package/{Toast/toastVariants.js → ui92.js} +0 -0
- /package/{Dropzone/DropzoneUtils.js → ui95.js} +0 -0
- /package/{Textarea/useAutosizeTextArea.js → ui96.js} +0 -0
- /package/{packages/hooks/src/useIsMobile/useIsMobile.js → ui97.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
## 0.1.10-3 (2025-09-15)
|
|
2
|
+
|
|
3
|
+
### 🧱 Updated Dependencies
|
|
4
|
+
|
|
5
|
+
- Updated @oneplatformdev/utils to 0.1.1-53
|
|
6
|
+
- Updated @oneplatformdev/hooks to 0.1.0-39
|
|
7
|
+
- Updated @oneplatformdev/tokens to 0.0.1-26
|
|
8
|
+
|
|
9
|
+
## 0.1.10-2 (2025-09-15)
|
|
10
|
+
|
|
11
|
+
### 🧱 Updated Dependencies
|
|
12
|
+
|
|
13
|
+
- Updated @oneplatformdev/utils to 0.1.1-52
|
|
14
|
+
- Updated @oneplatformdev/hooks to 0.1.0-38
|
|
15
|
+
- Updated @oneplatformdev/tokens to 0.0.1-25
|
|
16
|
+
|
|
17
|
+
## 0.1.10-1 (2025-09-15)
|
|
18
|
+
|
|
19
|
+
### 🧱 Updated Dependencies
|
|
20
|
+
|
|
21
|
+
- Updated @oneplatformdev/utils to 0.1.1-51
|
|
22
|
+
- Updated @oneplatformdev/hooks to 0.1.0-37
|
|
23
|
+
- Updated @oneplatformdev/tokens to 0.0.1-24
|
|
24
|
+
|
|
1
25
|
## 0.1.10-0 (2025-09-15)
|
|
2
26
|
|
|
3
27
|
### 🧱 Updated Dependencies
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oneplatformdev/ui",
|
|
3
|
-
"version": "0.1.10-
|
|
3
|
+
"version": "0.1.10-3",
|
|
4
4
|
"description": "React hook library",
|
|
5
5
|
"author": "One Platform Development Team",
|
|
6
6
|
"keywords": [
|
|
@@ -36,10 +36,16 @@
|
|
|
36
36
|
"import": "./index.js",
|
|
37
37
|
"default": "./index.js"
|
|
38
38
|
},
|
|
39
|
-
"./*":
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
"./*": "./*",
|
|
40
|
+
"./**/*": "./**/*"
|
|
41
|
+
},
|
|
42
|
+
"typesVersions": {
|
|
43
|
+
"*": {
|
|
44
|
+
"*": [
|
|
45
|
+
"./*",
|
|
46
|
+
"./*/index.d.ts",
|
|
47
|
+
"./index.d.ts"
|
|
48
|
+
]
|
|
43
49
|
}
|
|
44
50
|
},
|
|
45
51
|
"publishConfig": {
|
|
@@ -110,8 +116,8 @@
|
|
|
110
116
|
"sonner": "^2.0.7",
|
|
111
117
|
"vaul": "^1.1.2",
|
|
112
118
|
"zod": "^4.1.8",
|
|
113
|
-
"@oneplatformdev/
|
|
114
|
-
"@oneplatformdev/hooks": "^0.1.0-
|
|
115
|
-
"@oneplatformdev/
|
|
119
|
+
"@oneplatformdev/utils": "^0.1.1-53",
|
|
120
|
+
"@oneplatformdev/hooks": "^0.1.0-39",
|
|
121
|
+
"@oneplatformdev/tokens": "^0.0.1-26"
|
|
116
122
|
}
|
|
117
123
|
}
|
package/{index.js → ui.js}
RENAMED
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
/* empty css
|
|
2
|
-
import { Accordion as t, AccordionContent as a, AccordionItem as n, AccordionTrigger as i } from "./
|
|
3
|
-
import { Alert as l, AlertDescription as m, AlertTitle as u } from "./
|
|
4
|
-
import { AlertDialogAction as g, AlertDialogCancel as b, AlertDialogContent as x, AlertDialogDescription as f, AlertDialogFooter as S, AlertDialogHeader as s, AlertDialogOverlay as C, AlertDialogPortal as T, AlertDialogRoot as D, AlertDialogTitle as c, AlertDialogTrigger as M } from "./
|
|
5
|
-
import { AlertDialog as I } from "./
|
|
6
|
-
import { AreaChart as v } from "./
|
|
7
|
-
import { Aside as h } from "./
|
|
8
|
-
import { AsideSidebar as L } from "./
|
|
9
|
-
import { AspectRatio as B } from "./
|
|
10
|
-
import { Avatar as k, AvatarFallback as H, AvatarImage as y } from "./
|
|
11
|
-
import { Badge as O } from "./
|
|
12
|
-
import { badgeVariants as E } from "./
|
|
13
|
-
import { Breadcrumb as _, BreadcrumbEllipsis as U, BreadcrumbItem as Y, BreadcrumbLink as j, BreadcrumbList as q, BreadcrumbPage as J, BreadcrumbSeparator as K } from "./
|
|
14
|
-
import { Button as W } from "./
|
|
15
|
-
import { buttonVariants as Z } from "./
|
|
16
|
-
import { ButtonIcon as oo } from "./
|
|
17
|
-
import { buttonIconVariants as eo } from "./
|
|
18
|
-
import { Calendar as ao } from "./
|
|
19
|
-
import { Card as io, CardContent as po, CardDescription as lo, CardFooter as mo, CardHeader as uo, CardTitle as go } from "./
|
|
20
|
-
import { Carousel as xo, CarouselContent as fo, CarouselItem as So, CarouselNext as so, CarouselPrevious as Co } from "./
|
|
21
|
-
import { ChartContainer as Do, ChartLegend as co, ChartLegendContent as Mo, ChartStyle as Po, ChartTooltip as Io, ChartTooltipContent as Ao } from "./
|
|
22
|
-
import { Checkbox as wo, CheckboxLabel as ho } from "./
|
|
23
|
-
import { Collapsible as Lo, CollapsibleContent as Ro, CollapsibleTrigger as Bo } from "./
|
|
24
|
-
import { Combobox as ko } from "./
|
|
25
|
-
import { Command as yo, CommandDialog as No, CommandEmpty as Oo, CommandGroup as Vo, CommandInput as Eo, CommandItem as zo, CommandList as _o, CommandSeparator as Uo, CommandShortcut as Yo } from "./
|
|
26
|
-
import { DataTable as qo } from "./
|
|
27
|
-
import { DatePicker as Ko } from "./
|
|
28
|
-
import { Dialog as Wo, DialogClose as Xo, DialogContent as Zo, DialogDescription as $o, DialogFooter as or, DialogHeader as rr, DialogOverlay as er, DialogPortal as tr, DialogTitle as ar, DialogTrigger as nr } from "./
|
|
29
|
-
import { DialogOverlayContainerContext as pr, DialogOverlayScope as lr, useDialogOverlayContainer as mr } from "./
|
|
30
|
-
import { Drawer as dr, DrawerClose as gr, DrawerContent as br, DrawerDescription as xr, DrawerFooter as fr, DrawerHeader as Sr, DrawerOverlay as sr, DrawerPortal as Cr, DrawerTitle as Tr, DrawerTrigger as Dr } from "./
|
|
31
|
-
import { DropdownMenu as Mr, DropdownMenuCheckboxItem as Pr, DropdownMenuContent as Ir, DropdownMenuGroup as Ar, DropdownMenuItem as vr, DropdownMenuLabel as wr, DropdownMenuPortal as hr, DropdownMenuRadioGroup as Fr, DropdownMenuRadioItem as Lr, DropdownMenuSeparator as Rr, DropdownMenuShortcut as Br, DropdownMenuSub as Gr, DropdownMenuSubContent as kr, DropdownMenuSubTrigger as Hr, DropdownMenuTrigger as yr } from "./
|
|
32
|
-
import { Form as Or, FormControl as Vr, FormDescription as Er, FormField as zr, FormItem as _r, FormLabel as Ur, FormMessage as Yr, useFormField as jr } from "./
|
|
33
|
-
import { FormRenderControl as Jr } from "./
|
|
34
|
-
import { FormCheckbox as Qr } from "./
|
|
35
|
-
import { FormCombobox as Xr } from "./
|
|
36
|
-
import { FormDatePicker as $r } from "./
|
|
37
|
-
import { FormInput as re } from "./
|
|
38
|
-
import { FormSelect as te } from "./
|
|
39
|
-
import { FormTextarea as ne } from "./
|
|
40
|
-
import { Header as pe } from "./
|
|
41
|
-
import { HoverCard as me, HoverCardContent as ue, HoverCardTrigger as de } from "./
|
|
42
|
-
import { BaseInput as be, Input as xe, PasswordInput as fe } from "./
|
|
43
|
-
import { InputOTP as se, InputOTPGroup as Ce, InputOTPSeparator as Te, InputOTPSlot as De } from "./
|
|
44
|
-
import { Label as Me } from "./
|
|
45
|
-
import { labelVariants as Ie } from "./
|
|
46
|
-
import { LazyLoader as ve } from "./
|
|
47
|
-
import { LoadedIcon as he } from "./
|
|
48
|
-
import { LoadingMask as Le } from "./
|
|
49
|
-
import { RenderLoadingMask as Be } from "./
|
|
50
|
-
import { LoadingProgress as ke } from "./
|
|
51
|
-
import { loadingProgressVariants as ye } from "./
|
|
52
|
-
import { Menubar as Oe, MenubarCheckboxItem as Ve, MenubarContent as Ee, MenubarGroup as ze, MenubarItem as _e, MenubarLabel as Ue, MenubarMenu as Ye, MenubarPortal as je, MenubarRadioGroup as qe, MenubarRadioItem as Je, MenubarSeparator as Ke, MenubarShortcut as Qe, MenubarSub as We, MenubarSubContent as Xe, MenubarSubTrigger as Ze, MenubarTrigger as $e } from "./
|
|
53
|
-
import { NavigationMenu as rt, NavigationMenuContent as et, NavigationMenuIndicator as tt, NavigationMenuItem as at, NavigationMenuLink as nt, NavigationMenuList as it, NavigationMenuTrigger as pt, NavigationMenuViewport as lt } from "./
|
|
54
|
-
import { navigationMenuVariants as ut } from "./
|
|
55
|
-
import { Pagination as gt, PaginationContent as bt, PaginationEllipsis as xt, PaginationItem as ft, PaginationLink as St, PaginationNext as st, PaginationPrevious as Ct } from "./
|
|
56
|
-
import { Popover as Dt, PopoverAnchor as ct, PopoverContent as Mt, PopoverTrigger as Pt } from "./
|
|
57
|
-
import { Progress as At } from "./
|
|
58
|
-
import { RadioGroup as wt, RadioGroupItem as ht, RadioGroupLabel as Ft } from "./
|
|
59
|
-
import { ResizableHandle as Rt, ResizablePanel as Bt, ResizablePanelGroup as Gt } from "./
|
|
60
|
-
import { ScrollArea as Ht, ScrollBar as yt } from "./
|
|
61
|
-
import { Search as Ot } from "./
|
|
62
|
-
import { SelectContent as Et, SelectGroup as zt, SelectItem as _t, SelectLabel as Ut, SelectRoot as Yt, SelectScrollDownButton as jt, SelectScrollUpButton as qt, SelectSeparator as Jt, SelectTrigger as Kt, SelectValue as Qt } from "./
|
|
63
|
-
import { Select as Xt } from "./
|
|
64
|
-
import { Separator as $t } from "./
|
|
65
|
-
import { Sheet as ra, SheetClose as ea, SheetContent as ta, SheetDescription as aa, SheetFooter as na, SheetHeader as ia, SheetOverlay as pa, SheetPortal as la, SheetTitle as ma, SheetTrigger as ua } from "./
|
|
66
|
-
import { Sidebar as ga, SidebarContent as ba, SidebarFooter as xa, SidebarGroup as fa, SidebarGroupAction as Sa, SidebarGroupContent as sa, SidebarGroupLabel as Ca, SidebarHeader as Ta, SidebarInput as Da, SidebarInset as ca, SidebarMenu as Ma, SidebarMenuAction as Pa, SidebarMenuBadge as Ia, SidebarMenuButton as Aa, SidebarMenuItem as va, SidebarMenuSkeleton as wa, SidebarMenuSub as ha, SidebarMenuSubButton as Fa, SidebarMenuSubItem as La, SidebarProvider as Ra, SidebarRail as Ba, SidebarSeparator as Ga, SidebarTrigger as ka, useSidebar as Ha } from "./
|
|
67
|
-
import { Skeleton as Na } from "./
|
|
68
|
-
import { Slider as Va } from "./
|
|
69
|
-
import { Sonner as za } from "./
|
|
70
|
-
import { Switch as Ua } from "./
|
|
71
|
-
import { Table as ja, TableBody as qa, TableCaption as Ja, TableCell as Ka, TableFooter as Qa, TableHead as Wa, TableHeader as Xa, TableRow as Za } from "./
|
|
72
|
-
import { TabsContent as on, TabsList as rn, TabsRoot as en, TabsTrigger as tn } from "./
|
|
73
|
-
import { TabRender as nn, Tabs as pn } from "./
|
|
74
|
-
import { Textarea as mn } from "./
|
|
75
|
-
import { ThemeProvider as dn } from "./
|
|
76
|
-
import { ThemeModeToggle as bn } from "./
|
|
77
|
-
import { Toast as fn, ToastAction as Sn, ToastClose as sn, ToastDescription as Cn, ToastProvider as Tn, ToastTitle as Dn, ToastViewport as cn } from "./
|
|
78
|
-
import { reducer as Pn, toast as In, useNotify as An, useToast as vn } from "./
|
|
79
|
-
import { Toaster as hn } from "./
|
|
80
|
-
import { Toggle as Ln, toggleVariants as Rn } from "./
|
|
81
|
-
import { ToggleGroup as Gn, ToggleGroupItem as kn } from "./
|
|
82
|
-
import { TooltipContent as yn, TooltipProvider as Nn, TooltipRoot as On, TooltipTrigger as Vn } from "./
|
|
83
|
-
import { Tooltip as zn } from "./
|
|
84
|
-
import { Dropzone as Un } from "./
|
|
85
|
-
import { DEFAULT_FILE_TYPES as jn, DEFAULT_IMAGES_TYPES as qn } from "./
|
|
86
|
-
import { FormDropzone as Kn } from "./
|
|
87
|
-
import { TablePagination as Wn } from "./
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { Accordion as t, AccordionContent as a, AccordionItem as n, AccordionTrigger as i } from "./ui3.js";
|
|
3
|
+
import { Alert as l, AlertDescription as m, AlertTitle as u } from "./ui4.js";
|
|
4
|
+
import { AlertDialogAction as g, AlertDialogCancel as b, AlertDialogContent as x, AlertDialogDescription as f, AlertDialogFooter as S, AlertDialogHeader as s, AlertDialogOverlay as C, AlertDialogPortal as T, AlertDialogRoot as D, AlertDialogTitle as c, AlertDialogTrigger as M } from "./ui5.js";
|
|
5
|
+
import { AlertDialog as I } from "./ui6.js";
|
|
6
|
+
import { AreaChart as v } from "./ui7.js";
|
|
7
|
+
import { Aside as h } from "./ui8.js";
|
|
8
|
+
import { AsideSidebar as L } from "./ui9.js";
|
|
9
|
+
import { AspectRatio as B } from "./ui10.js";
|
|
10
|
+
import { Avatar as k, AvatarFallback as H, AvatarImage as y } from "./ui11.js";
|
|
11
|
+
import { Badge as O } from "./ui12.js";
|
|
12
|
+
import { badgeVariants as E } from "./ui13.js";
|
|
13
|
+
import { Breadcrumb as _, BreadcrumbEllipsis as U, BreadcrumbItem as Y, BreadcrumbLink as j, BreadcrumbList as q, BreadcrumbPage as J, BreadcrumbSeparator as K } from "./ui14.js";
|
|
14
|
+
import { Button as W } from "./ui15.js";
|
|
15
|
+
import { buttonVariants as Z } from "./ui16.js";
|
|
16
|
+
import { ButtonIcon as oo } from "./ui17.js";
|
|
17
|
+
import { buttonIconVariants as eo } from "./ui18.js";
|
|
18
|
+
import { Calendar as ao } from "./ui19.js";
|
|
19
|
+
import { Card as io, CardContent as po, CardDescription as lo, CardFooter as mo, CardHeader as uo, CardTitle as go } from "./ui20.js";
|
|
20
|
+
import { Carousel as xo, CarouselContent as fo, CarouselItem as So, CarouselNext as so, CarouselPrevious as Co } from "./ui21.js";
|
|
21
|
+
import { ChartContainer as Do, ChartLegend as co, ChartLegendContent as Mo, ChartStyle as Po, ChartTooltip as Io, ChartTooltipContent as Ao } from "./ui22.js";
|
|
22
|
+
import { Checkbox as wo, CheckboxLabel as ho } from "./ui23.js";
|
|
23
|
+
import { Collapsible as Lo, CollapsibleContent as Ro, CollapsibleTrigger as Bo } from "./ui24.js";
|
|
24
|
+
import { Combobox as ko } from "./ui25.js";
|
|
25
|
+
import { Command as yo, CommandDialog as No, CommandEmpty as Oo, CommandGroup as Vo, CommandInput as Eo, CommandItem as zo, CommandList as _o, CommandSeparator as Uo, CommandShortcut as Yo } from "./ui26.js";
|
|
26
|
+
import { DataTable as qo } from "./ui27.js";
|
|
27
|
+
import { DatePicker as Ko } from "./ui28.js";
|
|
28
|
+
import { Dialog as Wo, DialogClose as Xo, DialogContent as Zo, DialogDescription as $o, DialogFooter as or, DialogHeader as rr, DialogOverlay as er, DialogPortal as tr, DialogTitle as ar, DialogTrigger as nr } from "./ui29.js";
|
|
29
|
+
import { DialogOverlayContainerContext as pr, DialogOverlayScope as lr, useDialogOverlayContainer as mr } from "./ui30.js";
|
|
30
|
+
import { Drawer as dr, DrawerClose as gr, DrawerContent as br, DrawerDescription as xr, DrawerFooter as fr, DrawerHeader as Sr, DrawerOverlay as sr, DrawerPortal as Cr, DrawerTitle as Tr, DrawerTrigger as Dr } from "./ui31.js";
|
|
31
|
+
import { DropdownMenu as Mr, DropdownMenuCheckboxItem as Pr, DropdownMenuContent as Ir, DropdownMenuGroup as Ar, DropdownMenuItem as vr, DropdownMenuLabel as wr, DropdownMenuPortal as hr, DropdownMenuRadioGroup as Fr, DropdownMenuRadioItem as Lr, DropdownMenuSeparator as Rr, DropdownMenuShortcut as Br, DropdownMenuSub as Gr, DropdownMenuSubContent as kr, DropdownMenuSubTrigger as Hr, DropdownMenuTrigger as yr } from "./ui32.js";
|
|
32
|
+
import { Form as Or, FormControl as Vr, FormDescription as Er, FormField as zr, FormItem as _r, FormLabel as Ur, FormMessage as Yr, useFormField as jr } from "./ui33.js";
|
|
33
|
+
import { FormRenderControl as Jr } from "./ui34.js";
|
|
34
|
+
import { FormCheckbox as Qr } from "./ui35.js";
|
|
35
|
+
import { FormCombobox as Xr } from "./ui36.js";
|
|
36
|
+
import { FormDatePicker as $r } from "./ui37.js";
|
|
37
|
+
import { FormInput as re } from "./ui38.js";
|
|
38
|
+
import { FormSelect as te } from "./ui39.js";
|
|
39
|
+
import { FormTextarea as ne } from "./ui40.js";
|
|
40
|
+
import { Header as pe } from "./ui41.js";
|
|
41
|
+
import { HoverCard as me, HoverCardContent as ue, HoverCardTrigger as de } from "./ui42.js";
|
|
42
|
+
import { BaseInput as be, Input as xe, PasswordInput as fe } from "./ui43.js";
|
|
43
|
+
import { InputOTP as se, InputOTPGroup as Ce, InputOTPSeparator as Te, InputOTPSlot as De } from "./ui44.js";
|
|
44
|
+
import { Label as Me } from "./ui45.js";
|
|
45
|
+
import { labelVariants as Ie } from "./ui46.js";
|
|
46
|
+
import { LazyLoader as ve } from "./ui47.js";
|
|
47
|
+
import { LoadedIcon as he } from "./ui48.js";
|
|
48
|
+
import { LoadingMask as Le } from "./ui49.js";
|
|
49
|
+
import { RenderLoadingMask as Be } from "./ui50.js";
|
|
50
|
+
import { LoadingProgress as ke } from "./ui51.js";
|
|
51
|
+
import { loadingProgressVariants as ye } from "./ui52.js";
|
|
52
|
+
import { Menubar as Oe, MenubarCheckboxItem as Ve, MenubarContent as Ee, MenubarGroup as ze, MenubarItem as _e, MenubarLabel as Ue, MenubarMenu as Ye, MenubarPortal as je, MenubarRadioGroup as qe, MenubarRadioItem as Je, MenubarSeparator as Ke, MenubarShortcut as Qe, MenubarSub as We, MenubarSubContent as Xe, MenubarSubTrigger as Ze, MenubarTrigger as $e } from "./ui53.js";
|
|
53
|
+
import { NavigationMenu as rt, NavigationMenuContent as et, NavigationMenuIndicator as tt, NavigationMenuItem as at, NavigationMenuLink as nt, NavigationMenuList as it, NavigationMenuTrigger as pt, NavigationMenuViewport as lt } from "./ui54.js";
|
|
54
|
+
import { navigationMenuVariants as ut } from "./ui55.js";
|
|
55
|
+
import { Pagination as gt, PaginationContent as bt, PaginationEllipsis as xt, PaginationItem as ft, PaginationLink as St, PaginationNext as st, PaginationPrevious as Ct } from "./ui56.js";
|
|
56
|
+
import { Popover as Dt, PopoverAnchor as ct, PopoverContent as Mt, PopoverTrigger as Pt } from "./ui57.js";
|
|
57
|
+
import { Progress as At } from "./ui58.js";
|
|
58
|
+
import { RadioGroup as wt, RadioGroupItem as ht, RadioGroupLabel as Ft } from "./ui59.js";
|
|
59
|
+
import { ResizableHandle as Rt, ResizablePanel as Bt, ResizablePanelGroup as Gt } from "./ui60.js";
|
|
60
|
+
import { ScrollArea as Ht, ScrollBar as yt } from "./ui61.js";
|
|
61
|
+
import { Search as Ot } from "./ui62.js";
|
|
62
|
+
import { SelectContent as Et, SelectGroup as zt, SelectItem as _t, SelectLabel as Ut, SelectRoot as Yt, SelectScrollDownButton as jt, SelectScrollUpButton as qt, SelectSeparator as Jt, SelectTrigger as Kt, SelectValue as Qt } from "./ui63.js";
|
|
63
|
+
import { Select as Xt } from "./ui64.js";
|
|
64
|
+
import { Separator as $t } from "./ui65.js";
|
|
65
|
+
import { Sheet as ra, SheetClose as ea, SheetContent as ta, SheetDescription as aa, SheetFooter as na, SheetHeader as ia, SheetOverlay as pa, SheetPortal as la, SheetTitle as ma, SheetTrigger as ua } from "./ui66.js";
|
|
66
|
+
import { Sidebar as ga, SidebarContent as ba, SidebarFooter as xa, SidebarGroup as fa, SidebarGroupAction as Sa, SidebarGroupContent as sa, SidebarGroupLabel as Ca, SidebarHeader as Ta, SidebarInput as Da, SidebarInset as ca, SidebarMenu as Ma, SidebarMenuAction as Pa, SidebarMenuBadge as Ia, SidebarMenuButton as Aa, SidebarMenuItem as va, SidebarMenuSkeleton as wa, SidebarMenuSub as ha, SidebarMenuSubButton as Fa, SidebarMenuSubItem as La, SidebarProvider as Ra, SidebarRail as Ba, SidebarSeparator as Ga, SidebarTrigger as ka, useSidebar as Ha } from "./ui67.js";
|
|
67
|
+
import { Skeleton as Na } from "./ui68.js";
|
|
68
|
+
import { Slider as Va } from "./ui69.js";
|
|
69
|
+
import { Sonner as za } from "./ui70.js";
|
|
70
|
+
import { Switch as Ua } from "./ui71.js";
|
|
71
|
+
import { Table as ja, TableBody as qa, TableCaption as Ja, TableCell as Ka, TableFooter as Qa, TableHead as Wa, TableHeader as Xa, TableRow as Za } from "./ui72.js";
|
|
72
|
+
import { TabsContent as on, TabsList as rn, TabsRoot as en, TabsTrigger as tn } from "./ui73.js";
|
|
73
|
+
import { TabRender as nn, Tabs as pn } from "./ui74.js";
|
|
74
|
+
import { Textarea as mn } from "./ui75.js";
|
|
75
|
+
import { ThemeProvider as dn } from "./ui76.js";
|
|
76
|
+
import { ThemeModeToggle as bn } from "./ui77.js";
|
|
77
|
+
import { Toast as fn, ToastAction as Sn, ToastClose as sn, ToastDescription as Cn, ToastProvider as Tn, ToastTitle as Dn, ToastViewport as cn } from "./ui78.js";
|
|
78
|
+
import { reducer as Pn, toast as In, useNotify as An, useToast as vn } from "./ui79.js";
|
|
79
|
+
import { Toaster as hn } from "./ui80.js";
|
|
80
|
+
import { Toggle as Ln, toggleVariants as Rn } from "./ui81.js";
|
|
81
|
+
import { ToggleGroup as Gn, ToggleGroupItem as kn } from "./ui82.js";
|
|
82
|
+
import { TooltipContent as yn, TooltipProvider as Nn, TooltipRoot as On, TooltipTrigger as Vn } from "./ui83.js";
|
|
83
|
+
import { Tooltip as zn } from "./ui84.js";
|
|
84
|
+
import { Dropzone as Un } from "./ui85.js";
|
|
85
|
+
import { DEFAULT_FILE_TYPES as jn, DEFAULT_IMAGES_TYPES as qn } from "./ui86.js";
|
|
86
|
+
import { FormDropzone as Kn } from "./ui87.js";
|
|
87
|
+
import { TablePagination as Wn } from "./ui88.js";
|
|
88
88
|
export {
|
|
89
89
|
t as Accordion,
|
|
90
90
|
a as AccordionContent,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { cn as a } from "@oneplatformdev/utils";
|
|
3
|
-
import { badgeVariants as i } from "./
|
|
3
|
+
import { badgeVariants as i } from "./ui13.js";
|
|
4
4
|
function p({ className: r, variant: o, ...m }) {
|
|
5
5
|
return /* @__PURE__ */ t("div", { className: a(i({ variant: o }), r), ...m });
|
|
6
6
|
}
|
|
@@ -2,23 +2,22 @@ import { jsx as m } from "react/jsx-runtime";
|
|
|
2
2
|
import * as i from "react";
|
|
3
3
|
import { Slot as u } from "@radix-ui/react-slot";
|
|
4
4
|
import { cn as c } from "@oneplatformdev/utils";
|
|
5
|
-
import { buttonVariants as l } from "./
|
|
6
|
-
import "
|
|
7
|
-
import { Tooltip as d } from "../Tooltip/Tooltip.js";
|
|
5
|
+
import { buttonVariants as l } from "./ui16.js";
|
|
6
|
+
import { Tooltip as d } from "./ui84.js";
|
|
8
7
|
const y = i.forwardRef(
|
|
9
|
-
({ disabled: o, className: a, variant: e, size:
|
|
8
|
+
({ disabled: o, className: a, variant: e, size: n, asChild: p = !1, title: t = "", tooltip: r, ...s }, f) => /* @__PURE__ */ m(
|
|
10
9
|
d,
|
|
11
10
|
{
|
|
12
11
|
open: o || !t && !r ? !1 : void 0,
|
|
13
12
|
message: r || t,
|
|
14
13
|
delay: 300,
|
|
15
14
|
children: /* @__PURE__ */ m(
|
|
16
|
-
|
|
15
|
+
p ? u : "button",
|
|
17
16
|
{
|
|
18
17
|
type: "button",
|
|
19
18
|
ref: f,
|
|
20
19
|
disabled: o,
|
|
21
|
-
className: c(l({ variant: e, size:
|
|
20
|
+
className: c(l({ variant: e, size: n, className: a })),
|
|
22
21
|
...s
|
|
23
22
|
}
|
|
24
23
|
)
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import * as f from "react";
|
|
3
3
|
import { cn as l } from "@oneplatformdev/utils";
|
|
4
|
-
import { buttonIconVariants as u } from "./
|
|
5
|
-
import "
|
|
6
|
-
import { Tooltip as d } from "../Tooltip/Tooltip.js";
|
|
4
|
+
import { buttonIconVariants as u } from "./ui18.js";
|
|
5
|
+
import { Tooltip as d } from "./ui84.js";
|
|
7
6
|
const h = f.forwardRef(
|
|
8
|
-
({ disabled: o, className:
|
|
7
|
+
({ disabled: o, className: e, variant: m, color: a, size: p, rounded: s, title: t = "", tooltip: r, ...i }, c) => /* @__PURE__ */ n(
|
|
9
8
|
d,
|
|
10
9
|
{
|
|
11
10
|
open: o || !t && !r ? !1 : void 0,
|
|
@@ -14,7 +13,7 @@ const h = f.forwardRef(
|
|
|
14
13
|
children: /* @__PURE__ */ n(
|
|
15
14
|
"button",
|
|
16
15
|
{
|
|
17
|
-
className: l(u({ variant:
|
|
16
|
+
className: l(u({ variant: m, size: p, color: a, disabled: o, rounded: s, className: e })),
|
|
18
17
|
ref: c,
|
|
19
18
|
disabled: !!o,
|
|
20
19
|
...i
|
|
@@ -2,8 +2,7 @@ import { jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { ChevronRight as i, ChevronLeft as l } from "lucide-react";
|
|
3
3
|
import { DayPicker as m } from "react-day-picker";
|
|
4
4
|
import { cn as e } from "@oneplatformdev/utils";
|
|
5
|
-
import "
|
|
6
|
-
import { buttonVariants as o } from "../Button/buttonVariants.js";
|
|
5
|
+
import { buttonVariants as o } from "./ui16.js";
|
|
7
6
|
function u({
|
|
8
7
|
className: n,
|
|
9
8
|
classNames: s,
|
|
@@ -3,11 +3,10 @@ import * as e from "react";
|
|
|
3
3
|
import k from "embla-carousel-react";
|
|
4
4
|
import { ArrowLeft as z, ArrowRight as g } from "lucide-react";
|
|
5
5
|
import { cn as m } from "@oneplatformdev/utils";
|
|
6
|
-
import { Button as
|
|
7
|
-
|
|
8
|
-
const w = e.createContext(null);
|
|
6
|
+
import { Button as w } from "./ui15.js";
|
|
7
|
+
const p = e.createContext(null);
|
|
9
8
|
function C() {
|
|
10
|
-
const o = e.useContext(
|
|
9
|
+
const o = e.useContext(p);
|
|
11
10
|
if (!o)
|
|
12
11
|
throw new Error("useCarousel must be used within a <Carousel />");
|
|
13
12
|
return o;
|
|
@@ -48,7 +47,7 @@ const D = e.forwardRef(
|
|
|
48
47
|
r?.off("select", d);
|
|
49
48
|
};
|
|
50
49
|
}, [r, d]), /* @__PURE__ */ s(
|
|
51
|
-
|
|
50
|
+
p.Provider,
|
|
52
51
|
{
|
|
53
52
|
value: {
|
|
54
53
|
carouselRef: v,
|
|
@@ -114,7 +113,7 @@ I.displayName = "CarouselItem";
|
|
|
114
113
|
const j = e.forwardRef(({ className: o, variant: l = "outline-solid", size: t = "icon", ...a }, c) => {
|
|
115
114
|
const { orientation: i, scrollPrev: u, canScrollPrev: f } = C();
|
|
116
115
|
return /* @__PURE__ */ x(
|
|
117
|
-
|
|
116
|
+
w,
|
|
118
117
|
{
|
|
119
118
|
ref: c,
|
|
120
119
|
variant: l,
|
|
@@ -138,7 +137,7 @@ j.displayName = "CarouselPrevious";
|
|
|
138
137
|
const A = e.forwardRef(({ className: o, variant: l = "outline-solid", size: t = "icon", ...a }, c) => {
|
|
139
138
|
const { orientation: i, scrollNext: u, canScrollNext: f } = C();
|
|
140
139
|
return /* @__PURE__ */ x(
|
|
141
|
-
|
|
140
|
+
w,
|
|
142
141
|
{
|
|
143
142
|
ref: c,
|
|
144
143
|
variant: l,
|
|
@@ -1,37 +1,36 @@
|
|
|
1
1
|
import { jsx as r, jsxs as l } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
2
|
+
import * as t from "@radix-ui/react-checkbox";
|
|
3
3
|
import { MinusIcon as f, CheckIcon as p } from "lucide-react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as n from "react";
|
|
5
5
|
import { cn as i } from "@oneplatformdev/utils";
|
|
6
|
-
import { Label as h } from "
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
const d = e ? f : p;
|
|
6
|
+
import { Label as h } from "./ui45.js";
|
|
7
|
+
const d = n.forwardRef(({ className: s, checked: o, indeterminate: e, ...a }, c) => {
|
|
8
|
+
const m = e ? f : p;
|
|
10
9
|
return /* @__PURE__ */ r(
|
|
11
|
-
|
|
10
|
+
t.Root,
|
|
12
11
|
{
|
|
13
|
-
ref:
|
|
12
|
+
ref: c,
|
|
14
13
|
className: i(
|
|
15
14
|
"peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow-sm focus-visible:outline-hidden 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
|
-
|
|
15
|
+
s
|
|
17
16
|
),
|
|
18
17
|
...a,
|
|
19
|
-
checked:
|
|
18
|
+
checked: o ?? e,
|
|
20
19
|
children: /* @__PURE__ */ r(
|
|
21
|
-
|
|
20
|
+
t.Indicator,
|
|
22
21
|
{
|
|
23
22
|
className: i("flex items-center justify-center text-current"),
|
|
24
|
-
children: /* @__PURE__ */ r(
|
|
23
|
+
children: /* @__PURE__ */ r(m, { className: "h-4 w-4" })
|
|
25
24
|
}
|
|
26
25
|
)
|
|
27
26
|
}
|
|
28
27
|
);
|
|
29
28
|
});
|
|
30
|
-
|
|
31
|
-
const u =
|
|
29
|
+
d.displayName = t.Root.displayName;
|
|
30
|
+
const u = n.forwardRef(({ label: s = "", children: o, labelProps: e, ...a }, c) => /* @__PURE__ */ l(
|
|
32
31
|
h,
|
|
33
32
|
{
|
|
34
|
-
ref:
|
|
33
|
+
ref: c,
|
|
35
34
|
...e,
|
|
36
35
|
className: i(
|
|
37
36
|
"flex w-full items-start gap-3 font-normal py-3 cursor-pointer",
|
|
@@ -39,16 +38,16 @@ const u = m.forwardRef(({ label: o = "", children: s, labelProps: e, ...a }, t)
|
|
|
39
38
|
),
|
|
40
39
|
style: e?.style,
|
|
41
40
|
children: [
|
|
42
|
-
/* @__PURE__ */ r(
|
|
41
|
+
/* @__PURE__ */ r(d, { ...a }),
|
|
43
42
|
/* @__PURE__ */ l("div", { className: "flex flex-col w-full gap-3", children: [
|
|
44
|
-
/* @__PURE__ */ r("span", { className: "flex flex-col justify-start leading-[16px]", children:
|
|
45
|
-
|
|
43
|
+
/* @__PURE__ */ r("span", { className: "flex flex-col justify-start leading-[16px]", children: s }),
|
|
44
|
+
o
|
|
46
45
|
] })
|
|
47
46
|
]
|
|
48
47
|
}
|
|
49
48
|
));
|
|
50
49
|
u.displayName = "CheckboxLabel";
|
|
51
50
|
export {
|
|
52
|
-
|
|
51
|
+
d as Checkbox,
|
|
53
52
|
u as CheckboxLabel
|
|
54
53
|
};
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import { jsx as e, jsxs as l, Fragment as j } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as W, useRef as X, useState as c, useEffect as _, useCallback as
|
|
3
|
-
import { LoadingMask as K } from "../LoadingMask/LoadingMask.js";
|
|
4
|
-
import "../LoadingMask/RenderLoadingMask.js";
|
|
5
|
-
import { Popover as Q, PopoverTrigger as Y, PopoverContent as Z } from "../Popover/Popover.js";
|
|
6
|
-
import { Button as $ } from "../Button/Button.js";
|
|
7
|
-
import "../Button/buttonVariants.js";
|
|
8
|
-
import { Command as ee, CommandInput as oe, CommandList as te, CommandGroup as ne, CommandEmpty as B, CommandItem as re } from "../Command/Command.js";
|
|
2
|
+
import { forwardRef as W, useRef as X, useState as c, useEffect as _, useCallback as d, useMemo as O, useLayoutEffect as J } from "react";
|
|
9
3
|
import { cn as L } from "@oneplatformdev/utils";
|
|
10
|
-
import { useDebounceCallback as
|
|
11
|
-
import { X as
|
|
12
|
-
import { ComboboxOptions as
|
|
13
|
-
|
|
4
|
+
import { useDebounceCallback as K } from "@oneplatformdev/hooks";
|
|
5
|
+
import { X as Q, ChevronsUpDown as Y } from "lucide-react";
|
|
6
|
+
import { ComboboxOptions as Z } from "./ui91.js";
|
|
7
|
+
import { Popover as $, PopoverTrigger as ee, PopoverContent as oe } from "./ui57.js";
|
|
8
|
+
import { Button as te } from "./ui15.js";
|
|
9
|
+
import { Command as ne, CommandInput as re, CommandList as ae, CommandGroup as se, CommandEmpty as B, CommandItem as le } from "./ui26.js";
|
|
10
|
+
import { LoadingMask as ie } from "./ui49.js";
|
|
11
|
+
const Ce = W(
|
|
14
12
|
(D, T) => {
|
|
15
13
|
const {
|
|
16
|
-
value:
|
|
14
|
+
value: p,
|
|
17
15
|
onChange: A,
|
|
18
16
|
placeholder: I,
|
|
19
17
|
disabled: z,
|
|
@@ -21,7 +19,7 @@ const xe = W(
|
|
|
21
19
|
fetchOptions: G,
|
|
22
20
|
options: u,
|
|
23
21
|
emptyLabel: S = "No options",
|
|
24
|
-
emptyAction:
|
|
22
|
+
emptyAction: m,
|
|
25
23
|
commandInputAction: f,
|
|
26
24
|
listHeadAction: h,
|
|
27
25
|
onMount: g
|
|
@@ -31,7 +29,7 @@ const xe = W(
|
|
|
31
29
|
}, [u]);
|
|
32
30
|
const R = async () => {
|
|
33
31
|
a || (P(), C(""));
|
|
34
|
-
}, P =
|
|
32
|
+
}, P = d(async (o) => {
|
|
35
33
|
s(!0);
|
|
36
34
|
try {
|
|
37
35
|
const N = await G(o);
|
|
@@ -41,14 +39,14 @@ const xe = W(
|
|
|
41
39
|
} finally {
|
|
42
40
|
s(!1);
|
|
43
41
|
}
|
|
44
|
-
}, []), U =
|
|
42
|
+
}, []), U = K(P, 1e3, {
|
|
45
43
|
leading: !1,
|
|
46
44
|
trailing: !0
|
|
47
|
-
}), q =
|
|
45
|
+
}), q = d((o) => {
|
|
48
46
|
s(!0), C(o), U(o);
|
|
49
|
-
}, []), k =
|
|
47
|
+
}, []), k = d((o) => {
|
|
50
48
|
A(o.value), w(o), s(!1);
|
|
51
|
-
}, []), H =
|
|
49
|
+
}, []), H = d(() => {
|
|
52
50
|
k({ value: "", label: "" }), w(void 0), s(!1);
|
|
53
51
|
}, []), E = O(() => !!r && !t.length && !n, [n, t.length, r]), M = O(() => !t.length && !n, [n, t.length, r]), i = O(() => ({
|
|
54
52
|
options: t,
|
|
@@ -63,7 +61,7 @@ const xe = W(
|
|
|
63
61
|
setLoading: s,
|
|
64
62
|
isEmptyList: M,
|
|
65
63
|
isSearchedEmptyList: E
|
|
66
|
-
}), [n, a, t, r, x, M, E]), V =
|
|
64
|
+
}), [n, a, t, r, x, M, E]), V = d(() => {
|
|
67
65
|
if (!g) {
|
|
68
66
|
b.current = !0;
|
|
69
67
|
return;
|
|
@@ -75,15 +73,15 @@ const xe = W(
|
|
|
75
73
|
return J(() => (V(), () => {
|
|
76
74
|
b.current = !1;
|
|
77
75
|
}), []), /* @__PURE__ */ e("div", { className: "w-full", ref: T, children: /* @__PURE__ */ l(
|
|
78
|
-
|
|
76
|
+
$,
|
|
79
77
|
{
|
|
80
78
|
open: a,
|
|
81
79
|
onOpenChange: (o) => {
|
|
82
80
|
y(o), o && R();
|
|
83
81
|
},
|
|
84
82
|
children: [
|
|
85
|
-
/* @__PURE__ */ e(
|
|
86
|
-
|
|
83
|
+
/* @__PURE__ */ e(ee, { asChild: !0, className: "border-input", children: /* @__PURE__ */ l(
|
|
84
|
+
te,
|
|
87
85
|
{
|
|
88
86
|
variant: "outline",
|
|
89
87
|
role: "combobox",
|
|
@@ -97,8 +95,8 @@ const xe = W(
|
|
|
97
95
|
),
|
|
98
96
|
disabled: z,
|
|
99
97
|
children: [
|
|
100
|
-
/* @__PURE__ */ e("span", { className: "truncate max-w-[calc(100%-1.5rem)] overflow-hidden whitespace-nowrap", children:
|
|
101
|
-
|
|
98
|
+
/* @__PURE__ */ e("span", { className: "truncate max-w-[calc(100%-1.5rem)] overflow-hidden whitespace-nowrap", children: p ? t.find((o) => o.value === p)?.label || x?.label : /* @__PURE__ */ e("span", { className: "text-gray-400", children: I }) }),
|
|
99
|
+
p ? /* @__PURE__ */ e(
|
|
102
100
|
"div",
|
|
103
101
|
{
|
|
104
102
|
className: L(
|
|
@@ -110,20 +108,20 @@ const xe = W(
|
|
|
110
108
|
onClick: (o) => {
|
|
111
109
|
o.stopPropagation(), H();
|
|
112
110
|
},
|
|
113
|
-
children: /* @__PURE__ */ e(
|
|
111
|
+
children: /* @__PURE__ */ e(Q, {})
|
|
114
112
|
}
|
|
115
|
-
) : /* @__PURE__ */ e(
|
|
113
|
+
) : /* @__PURE__ */ e(Y, { className: "opacity-50 w-4 h-4" })
|
|
116
114
|
]
|
|
117
115
|
}
|
|
118
116
|
) }),
|
|
119
117
|
/* @__PURE__ */ e(
|
|
120
|
-
|
|
118
|
+
oe,
|
|
121
119
|
{
|
|
122
120
|
className: "w-(--radix-popper-anchor-width) max-w-none p-0",
|
|
123
121
|
align: "start",
|
|
124
|
-
children: /* @__PURE__ */ l(
|
|
122
|
+
children: /* @__PURE__ */ l(ne, { shouldFilter: !1, children: [
|
|
125
123
|
/* @__PURE__ */ e(
|
|
126
|
-
|
|
124
|
+
re,
|
|
127
125
|
{
|
|
128
126
|
placeholder: F,
|
|
129
127
|
value: r,
|
|
@@ -131,19 +129,19 @@ const xe = W(
|
|
|
131
129
|
}
|
|
132
130
|
),
|
|
133
131
|
typeof f == "function" ? f(i) : f,
|
|
134
|
-
/* @__PURE__ */ e(
|
|
135
|
-
|
|
132
|
+
/* @__PURE__ */ e(ae, { children: /* @__PURE__ */ l(
|
|
133
|
+
se,
|
|
136
134
|
{
|
|
137
135
|
className: L(!t.length && "p-0 shadow-none"),
|
|
138
136
|
children: [
|
|
139
|
-
n && /* @__PURE__ */ e(
|
|
140
|
-
!n && !!r && /* @__PURE__ */ e(j, { children:
|
|
137
|
+
n && /* @__PURE__ */ e(ie, { fullWidth: !0 }),
|
|
138
|
+
!n && !!r && /* @__PURE__ */ e(j, { children: m ? /* @__PURE__ */ l(B, { className: "flex flex-col gap-3 py-5 px-3 items-center", children: [
|
|
141
139
|
/* @__PURE__ */ e("span", { children: S }),
|
|
142
|
-
typeof
|
|
140
|
+
typeof m == "function" ? m(i) : m
|
|
143
141
|
] }) : /* @__PURE__ */ e(B, { children: S }) }),
|
|
144
142
|
!n && /* @__PURE__ */ l(j, { children: [
|
|
145
143
|
!!t.length && h && /* @__PURE__ */ e(
|
|
146
|
-
|
|
144
|
+
le,
|
|
147
145
|
{
|
|
148
146
|
asChild: !0,
|
|
149
147
|
className: "w-full",
|
|
@@ -152,9 +150,9 @@ const xe = W(
|
|
|
152
150
|
"combobox-list-head-action"
|
|
153
151
|
),
|
|
154
152
|
/* @__PURE__ */ e(
|
|
155
|
-
|
|
153
|
+
Z,
|
|
156
154
|
{
|
|
157
|
-
value:
|
|
155
|
+
value: p,
|
|
158
156
|
options: t,
|
|
159
157
|
onChangeOption: k,
|
|
160
158
|
setOpen: y
|
|
@@ -173,5 +171,5 @@ const xe = W(
|
|
|
173
171
|
}
|
|
174
172
|
);
|
|
175
173
|
export {
|
|
176
|
-
|
|
174
|
+
Ce as Combobox
|
|
177
175
|
};
|