@trsys-tech/matrix-library 0.3.4 → 0.3.5

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.
Files changed (99) hide show
  1. package/dist/badge.es.js.map +1 -1
  2. package/dist/breadcrumb.es.js.map +1 -1
  3. package/dist/button.es.js.map +1 -1
  4. package/dist/calendar.es.js.map +1 -1
  5. package/dist/card.es.js.map +1 -1
  6. package/dist/chip.es.js.map +1 -1
  7. package/dist/collapsible.es.js.map +1 -1
  8. package/dist/combobox.es.js +84 -32
  9. package/dist/combobox.es.js.map +1 -1
  10. package/dist/command.es.js +58 -50
  11. package/dist/command.es.js.map +1 -1
  12. package/dist/components/badge/Badge.d.ts.map +1 -1
  13. package/dist/components/breadcrumb/Breadcrumb.d.ts.map +1 -1
  14. package/dist/components/button/Button.d.ts.map +1 -1
  15. package/dist/components/card/Card.d.ts.map +1 -1
  16. package/dist/components/chip/Chip.d.ts.map +1 -1
  17. package/dist/components/collapsible/Collapsible.d.ts.map +1 -1
  18. package/dist/components/combobox/Combobox.d.ts +68 -59
  19. package/dist/components/combobox/Combobox.d.ts.map +1 -1
  20. package/dist/components/command/Command.d.ts +5 -2
  21. package/dist/components/command/Command.d.ts.map +1 -1
  22. package/dist/components/confirm/Confirm.d.ts.map +1 -1
  23. package/dist/components/data-grid/DataGrid.d.ts.map +1 -1
  24. package/dist/components/date-picker/DatePicker.d.ts.map +1 -1
  25. package/dist/components/date-picker/DateRangePicker.d.ts.map +1 -1
  26. package/dist/components/date-picker/DesktopTimePicker.d.ts.map +1 -1
  27. package/dist/components/date-picker/MobileTimePicker.d.ts.map +1 -1
  28. package/dist/components/date-picker/TimePicker.d.ts.map +1 -1
  29. package/dist/components/date-picker/calendar.d.ts.map +1 -1
  30. package/dist/components/dialog/Dialog.d.ts.map +1 -1
  31. package/dist/components/form/Form.d.ts.map +1 -1
  32. package/dist/components/form-checkbox/FormCheckbox.d.ts.map +1 -1
  33. package/dist/components/form-combobox/FormCombobox.d.ts +2 -7
  34. package/dist/components/form-combobox/FormCombobox.d.ts.map +1 -1
  35. package/dist/components/form-date-picker/FormDatePicker.d.ts.map +1 -1
  36. package/dist/components/form-date-range-picker/FormDateRangePicker.d.ts.map +1 -1
  37. package/dist/components/form-input/FormInput.d.ts.map +1 -1
  38. package/dist/components/form-multi-select/FormMultiSelect.d.ts.map +1 -1
  39. package/dist/components/form-rating/FormRating.d.ts.map +1 -1
  40. package/dist/components/form-select/FormSelect.d.ts.map +1 -1
  41. package/dist/components/form-switch/FormSwitch.d.ts.map +1 -1
  42. package/dist/components/form-textarea/FormTextarea.d.ts.map +1 -1
  43. package/dist/components/form-time-picker/FormTimePicker.d.ts.map +1 -1
  44. package/dist/components/icon-botton/IconButton.d.ts.map +1 -1
  45. package/dist/components/modal/Modal.d.ts.map +1 -1
  46. package/dist/components/multi-select/MultiSelect.d.ts.map +1 -1
  47. package/dist/components/select/Select.d.ts.map +1 -1
  48. package/dist/components/tabs/Tabs.d.ts.map +1 -1
  49. package/dist/components/text-field/TextField.d.ts.map +1 -1
  50. package/dist/components/toast/Toast.d.ts.map +1 -1
  51. package/dist/components/toast/toast-components.d.ts.map +1 -1
  52. package/dist/components/toast/use-toast.d.ts.map +1 -1
  53. package/dist/confirm.es.js.map +1 -1
  54. package/dist/datagrid.es.js.map +1 -1
  55. package/dist/datepicker.es.js.map +1 -1
  56. package/dist/daterangepicker.es.js.map +1 -1
  57. package/dist/desktopdatepicker.es.js +33 -33
  58. package/dist/desktopdatepicker.es.js.map +1 -1
  59. package/dist/desktopdaterangepicker.es.js +33 -33
  60. package/dist/desktopdaterangepicker.es.js.map +1 -1
  61. package/dist/desktoptimepicker.es.js +27 -23
  62. package/dist/desktoptimepicker.es.js.map +1 -1
  63. package/dist/dialog.es.js.map +1 -1
  64. package/dist/form.es.js.map +1 -1
  65. package/dist/formcheckbox.es.js.map +1 -1
  66. package/dist/formcombobox.es.js +47 -104
  67. package/dist/formcombobox.es.js.map +1 -1
  68. package/dist/formdatepicker.es.js.map +1 -1
  69. package/dist/formdaterangepicker.es.js.map +1 -1
  70. package/dist/forminput.es.js.map +1 -1
  71. package/dist/formmultiselect.es.js.map +1 -1
  72. package/dist/formrating.es.js.map +1 -1
  73. package/dist/formselect.es.js.map +1 -1
  74. package/dist/formswitch.es.js.map +1 -1
  75. package/dist/formtextarea.es.js.map +1 -1
  76. package/dist/formtimepicker.es.js.map +1 -1
  77. package/dist/iconbutton.es.js.map +1 -1
  78. package/dist/index.d.ts +1 -0
  79. package/dist/index.d.ts.map +1 -1
  80. package/dist/index.es.js +193 -191
  81. package/dist/index.es.js.map +1 -1
  82. package/dist/mobiledatepicker.es.js +38 -38
  83. package/dist/mobiledatepicker.es.js.map +1 -1
  84. package/dist/mobiledaterangepicker.es.js +51 -51
  85. package/dist/mobiledaterangepicker.es.js.map +1 -1
  86. package/dist/mobiletimepicker.es.js +30 -26
  87. package/dist/mobiletimepicker.es.js.map +1 -1
  88. package/dist/modal.es.js.map +1 -1
  89. package/dist/multiselect.es.js +114 -106
  90. package/dist/multiselect.es.js.map +1 -1
  91. package/dist/select.es.js.map +1 -1
  92. package/dist/style.css +1 -1
  93. package/dist/tabs.es.js.map +1 -1
  94. package/dist/textfield.es.js.map +1 -1
  95. package/dist/timepicker.es.js.map +1 -1
  96. package/dist/toast-components.es.js.map +1 -1
  97. package/dist/toast.es.js.map +1 -1
  98. package/dist/use-toast.es.js.map +1 -1
  99. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -5,54 +5,55 @@ import { Breadcrumb as n, BreadcrumbEllipsis as l, BreadcrumbItem as S, Breadcru
5
5
  import { Card as D, CardContent as u, CardDescription as C, CardFooter as g, CardHeader as s, CardTitle as T } from "./card.es.js";
6
6
  import { Checkbox as P } from "./checkbox.es.js";
7
7
  import { Chip as k } from "./chip.es.js";
8
- import { Command as M, CommandDialog as B, CommandEmpty as G, CommandGroup as I, CommandInput as A, CommandItem as R, CommandList as v, CommandSeparator as L, CommandShortcut as H } from "./command.es.js";
9
- import { Collapsible as E, CollapsibleContent as O, CollapsibleTrigger as V } from "./collapsible.es.js";
10
- import { ConfirmProvider as U, useConfirm as j } from "./confirm.es.js";
11
- import { DatePicker as J } from "./datepicker.es.js";
12
- import { DateRangePicker as N } from "./daterangepicker.es.js";
13
- import { TimePicker as W } from "./timepicker.es.js";
14
- import { Calendar as Y } from "./calendar.es.js";
15
- import { DataGrid as _, DataGridActionBar as $, DataGridContent as ee, DeleteAction as re, ExtraActions as oe, FreezeAction as te, PrintAction as ae, RefreshAction as ie, SearchAction as me, useDataGrid as pe } from "./datagrid.es.js";
16
- import { Dialog as le, DialogClose as Se, DialogContent as de, DialogDescription as be, DialogFooter as xe, DialogHeader as fe, DialogOverlay as ce, DialogPortal as De, DialogTitle as ue, DialogTrigger as Ce } from "./dialog.es.js";
17
- import { Drawer as se, DrawerContent as Te, DrawerMain as Fe } from "./drawer.es.js";
18
- import { SwipableDrawer as we, SwipableDrawerClose as ke, SwipableDrawerContent as he, SwipableDrawerDescription as Me, SwipableDrawerFooter as Be, SwipableDrawerHeader as Ge, SwipableDrawerTitle as Ie, SwipableDrawerTrigger as Ae } from "./swipabledrawer.es.js";
19
- import { Form as ve, FormControl as Le, FormDescription as He, FormField as ye, FormItem as Ee, FormLabel as Oe, FormMessage as Ve } from "./form.es.js";
20
- import { FormCheckbox as Ue } from "./formcheckbox.es.js";
21
- import { FormCombobox as qe } from "./formcombobox.es.js";
22
- import { FormDatePicker as Ke } from "./formdatepicker.es.js";
23
- import { FormDateRangePicker as Qe } from "./formdaterangepicker.es.js";
24
- import { FormInput as Xe } from "./forminput.es.js";
25
- import { FormMultiSelect as Ze } from "./formmultiselect.es.js";
26
- import { FormRating as $e } from "./formrating.es.js";
27
- import { FormSelect as rr } from "./formselect.es.js";
28
- import { FormSwitch as tr } from "./formswitch.es.js";
29
- import { FormTextarea as ir } from "./formtextarea.es.js";
30
- import { FormTimePicker as pr } from "./formtimepicker.es.js";
31
- import { IconButton as lr } from "./iconbutton.es.js";
32
- import { Label as dr } from "./label.es.js";
33
- import { Modal as xr, ModalFooter as fr } from "./modal.es.js";
34
- import { Popover as Dr, PopoverAnchor as ur, PopoverContent as Cr, PopoverTrigger as gr } from "./popover.es.js";
35
- import { Rating as Tr } from "./rating.es.js";
36
- import { RadioGroup as Pr, RadioGroupItem as wr } from "./radiogroup.es.js";
37
- import { Select as hr, SelectContent as Mr, SelectGroup as Br, SelectItem as Gr, SelectLabel as Ir, SelectScrollDownButton as Ar, SelectScrollUpButton as Rr, SelectSeparator as vr, SelectTrigger as Lr, SelectValue as Hr } from "./select.es.js";
38
- import { Separator as Er } from "./separator.es.js";
39
- import { Sheet as Vr, SheetClose as zr, SheetContent as Ur, SheetDescription as jr, SheetFooter as qr, SheetHeader as Jr, SheetOverlay as Kr, SheetPortal as Nr, SheetTitle as Qr, SheetTrigger as Wr } from "./sheet.es.js";
40
- import { Sidebar as Yr, SidebarContent as Zr, SidebarFooter as _r, SidebarGroup as $r, SidebarGroupAction as eo, SidebarGroupContent as ro, SidebarGroupLabel as oo, SidebarHeader as to, SidebarInset as ao, SidebarMenu as io, SidebarMenuAction as mo, SidebarMenuBadge as po, SidebarMenuButton as no, SidebarMenuItem as lo, SidebarMenuSkeleton as So, SidebarMenuSub as bo, SidebarMenuSubButton as xo, SidebarMenuSubItem as fo, SidebarProvider as co, SidebarRail as Do, SidebarSeparator as uo, SidebarTrigger as Co, useSidebar as go } from "./sidebar.es.js";
41
- import { Skeleton as To } from "./skeleton.es.js";
42
- import { Switch as Po } from "./switch.es.js";
43
- import { Tabs as ko, TabsContent as ho, TabsList as Mo, TabsTrigger as Bo } from "./tabs.es.js";
44
- import { TextField as Io } from "./textfield.es.js";
45
- import { Toast as Ro } from "./toast.es.js";
46
- import { toast as Lo } from "./use-toast.es.js";
47
- import { Tooltip as yo, TooltipContent as Eo, TooltipProvider as Oo, TooltipTrigger as Vo } from "./tooltip.es.js";
48
- import { useIsMobile as Uo } from "./use-mobile.es.js";
49
- import { cn as qo } from "./utils.es.js";
50
- import { DesktopDatePicker as Ko } from "./desktopdatepicker.es.js";
51
- import { MobileDatePicker as Qo } from "./mobiledatepicker.es.js";
52
- import { DesktopDateRangePicker as Xo } from "./desktopdaterangepicker.es.js";
53
- import { MobileDateRangePicker as Zo } from "./mobiledaterangepicker.es.js";
54
- import { MobileTimePicker as $o } from "./mobiletimepicker.es.js";
55
- import { DesktopTimePicker as rt } from "./desktoptimepicker.es.js";
8
+ import { Combobox as M } from "./combobox.es.js";
9
+ import { Command as G, CommandDialog as I, CommandEmpty as A, CommandGroup as R, CommandInput as v, CommandItem as L, CommandList as H, CommandSeparator as y, CommandShortcut as E } from "./command.es.js";
10
+ import { Collapsible as V, CollapsibleContent as z, CollapsibleTrigger as U } from "./collapsible.es.js";
11
+ import { ConfirmProvider as q, useConfirm as J } from "./confirm.es.js";
12
+ import { DatePicker as N } from "./datepicker.es.js";
13
+ import { DateRangePicker as W } from "./daterangepicker.es.js";
14
+ import { TimePicker as Y } from "./timepicker.es.js";
15
+ import { Calendar as _ } from "./calendar.es.js";
16
+ import { DataGrid as ee, DataGridActionBar as re, DataGridContent as oe, DeleteAction as te, ExtraActions as ae, FreezeAction as ie, PrintAction as me, RefreshAction as pe, SearchAction as ne, useDataGrid as le } from "./datagrid.es.js";
17
+ import { Dialog as de, DialogClose as be, DialogContent as xe, DialogDescription as fe, DialogFooter as ce, DialogHeader as De, DialogOverlay as ue, DialogPortal as Ce, DialogTitle as ge, DialogTrigger as se } from "./dialog.es.js";
18
+ import { Drawer as Fe, DrawerContent as Pe, DrawerMain as we } from "./drawer.es.js";
19
+ import { SwipableDrawer as he, SwipableDrawerClose as Me, SwipableDrawerContent as Be, SwipableDrawerDescription as Ge, SwipableDrawerFooter as Ie, SwipableDrawerHeader as Ae, SwipableDrawerTitle as Re, SwipableDrawerTrigger as ve } from "./swipabledrawer.es.js";
20
+ import { Form as He, FormControl as ye, FormDescription as Ee, FormField as Oe, FormItem as Ve, FormLabel as ze, FormMessage as Ue } from "./form.es.js";
21
+ import { FormCheckbox as qe } from "./formcheckbox.es.js";
22
+ import { FormCombobox as Ke } from "./formcombobox.es.js";
23
+ import { FormDatePicker as Qe } from "./formdatepicker.es.js";
24
+ import { FormDateRangePicker as Xe } from "./formdaterangepicker.es.js";
25
+ import { FormInput as Ze } from "./forminput.es.js";
26
+ import { FormMultiSelect as $e } from "./formmultiselect.es.js";
27
+ import { FormRating as rr } from "./formrating.es.js";
28
+ import { FormSelect as tr } from "./formselect.es.js";
29
+ import { FormSwitch as ir } from "./formswitch.es.js";
30
+ import { FormTextarea as pr } from "./formtextarea.es.js";
31
+ import { FormTimePicker as lr } from "./formtimepicker.es.js";
32
+ import { IconButton as dr } from "./iconbutton.es.js";
33
+ import { Label as xr } from "./label.es.js";
34
+ import { Modal as cr, ModalFooter as Dr } from "./modal.es.js";
35
+ import { Popover as Cr, PopoverAnchor as gr, PopoverContent as sr, PopoverTrigger as Tr } from "./popover.es.js";
36
+ import { Rating as Pr } from "./rating.es.js";
37
+ import { RadioGroup as kr, RadioGroupItem as hr } from "./radiogroup.es.js";
38
+ import { Select as Br, SelectContent as Gr, SelectGroup as Ir, SelectItem as Ar, SelectLabel as Rr, SelectScrollDownButton as vr, SelectScrollUpButton as Lr, SelectSeparator as Hr, SelectTrigger as yr, SelectValue as Er } from "./select.es.js";
39
+ import { Separator as Vr } from "./separator.es.js";
40
+ import { Sheet as Ur, SheetClose as jr, SheetContent as qr, SheetDescription as Jr, SheetFooter as Kr, SheetHeader as Nr, SheetOverlay as Qr, SheetPortal as Wr, SheetTitle as Xr, SheetTrigger as Yr } from "./sheet.es.js";
41
+ import { Sidebar as _r, SidebarContent as $r, SidebarFooter as eo, SidebarGroup as ro, SidebarGroupAction as oo, SidebarGroupContent as to, SidebarGroupLabel as ao, SidebarHeader as io, SidebarInset as mo, SidebarMenu as po, SidebarMenuAction as no, SidebarMenuBadge as lo, SidebarMenuButton as So, SidebarMenuItem as bo, SidebarMenuSkeleton as xo, SidebarMenuSub as fo, SidebarMenuSubButton as co, SidebarMenuSubItem as Do, SidebarProvider as uo, SidebarRail as Co, SidebarSeparator as go, SidebarTrigger as so, useSidebar as To } from "./sidebar.es.js";
42
+ import { Skeleton as Po } from "./skeleton.es.js";
43
+ import { Switch as ko } from "./switch.es.js";
44
+ import { Tabs as Mo, TabsContent as Bo, TabsList as Go, TabsTrigger as Io } from "./tabs.es.js";
45
+ import { TextField as Ro } from "./textfield.es.js";
46
+ import { Toast as Lo } from "./toast.es.js";
47
+ import { toast as yo } from "./use-toast.es.js";
48
+ import { Tooltip as Oo, TooltipContent as Vo, TooltipProvider as zo, TooltipTrigger as Uo } from "./tooltip.es.js";
49
+ import { useIsMobile as qo } from "./use-mobile.es.js";
50
+ import { cn as Ko } from "./utils.es.js";
51
+ import { DesktopDatePicker as Qo } from "./desktopdatepicker.es.js";
52
+ import { MobileDatePicker as Xo } from "./mobiledatepicker.es.js";
53
+ import { DesktopDateRangePicker as Zo } from "./desktopdaterangepicker.es.js";
54
+ import { MobileDateRangePicker as $o } from "./mobiledaterangepicker.es.js";
55
+ import { MobileTimePicker as rt } from "./mobiletimepicker.es.js";
56
+ import { DesktopTimePicker as tt } from "./desktoptimepicker.es.js";
56
57
  export {
57
58
  t as Badge,
58
59
  n as Breadcrumb,
@@ -63,7 +64,7 @@ export {
63
64
  x as BreadcrumbPage,
64
65
  f as BreadcrumbSeparator,
65
66
  i as Button,
66
- Y as Calendar,
67
+ _ as Calendar,
67
68
  D as Card,
68
69
  u as CardContent,
69
70
  C as CardDescription,
@@ -72,148 +73,149 @@ export {
72
73
  T as CardTitle,
73
74
  P as Checkbox,
74
75
  k as Chip,
75
- E as Collapsible,
76
- O as CollapsibleContent,
77
- V as CollapsibleTrigger,
78
- M as Command,
79
- B as CommandDialog,
80
- G as CommandEmpty,
81
- I as CommandGroup,
82
- A as CommandInput,
83
- R as CommandItem,
84
- v as CommandList,
85
- L as CommandSeparator,
86
- H as CommandShortcut,
87
- U as ConfirmProvider,
88
- _ as DataGrid,
89
- $ as DataGridActionBar,
90
- ee as DataGridContent,
91
- J as DatePicker,
92
- N as DateRangePicker,
93
- re as DeleteAction,
94
- Ko as DesktopDatePicker,
95
- Xo as DesktopDateRangePicker,
96
- rt as DesktopTimePicker,
97
- le as Dialog,
98
- Se as DialogClose,
99
- de as DialogContent,
100
- be as DialogDescription,
101
- xe as DialogFooter,
102
- fe as DialogHeader,
103
- ce as DialogOverlay,
104
- De as DialogPortal,
105
- ue as DialogTitle,
106
- Ce as DialogTrigger,
107
- se as Drawer,
108
- Te as DrawerContent,
109
- Fe as DrawerMain,
110
- oe as ExtraActions,
111
- ve as Form,
112
- Ue as FormCheckbox,
113
- qe as FormCombobox,
114
- Le as FormControl,
115
- Ke as FormDatePicker,
116
- Qe as FormDateRangePicker,
117
- He as FormDescription,
118
- ye as FormField,
119
- Xe as FormInput,
120
- Ee as FormItem,
121
- Oe as FormLabel,
122
- Ve as FormMessage,
123
- Ze as FormMultiSelect,
124
- $e as FormRating,
125
- rr as FormSelect,
126
- tr as FormSwitch,
127
- ir as FormTextarea,
128
- pr as FormTimePicker,
129
- te as FreezeAction,
130
- lr as IconButton,
131
- dr as Label,
132
- Qo as MobileDatePicker,
133
- Zo as MobileDateRangePicker,
134
- $o as MobileTimePicker,
135
- xr as Modal,
136
- fr as ModalFooter,
137
- Dr as Popover,
138
- ur as PopoverAnchor,
139
- Cr as PopoverContent,
140
- gr as PopoverTrigger,
141
- ae as PrintAction,
142
- Pr as RadioGroup,
143
- wr as RadioGroupItem,
144
- Tr as Rating,
145
- ie as RefreshAction,
146
- me as SearchAction,
147
- hr as Select,
148
- Mr as SelectContent,
149
- Br as SelectGroup,
150
- Gr as SelectItem,
151
- Ir as SelectLabel,
152
- Ar as SelectScrollDownButton,
153
- Rr as SelectScrollUpButton,
154
- vr as SelectSeparator,
155
- Lr as SelectTrigger,
156
- Hr as SelectValue,
157
- Er as Separator,
158
- Vr as Sheet,
159
- zr as SheetClose,
160
- Ur as SheetContent,
161
- jr as SheetDescription,
162
- qr as SheetFooter,
163
- Jr as SheetHeader,
164
- Kr as SheetOverlay,
165
- Nr as SheetPortal,
166
- Qr as SheetTitle,
167
- Wr as SheetTrigger,
168
- Yr as Sidebar,
169
- Zr as SidebarContent,
170
- _r as SidebarFooter,
171
- $r as SidebarGroup,
172
- eo as SidebarGroupAction,
173
- ro as SidebarGroupContent,
174
- oo as SidebarGroupLabel,
175
- to as SidebarHeader,
176
- ao as SidebarInset,
177
- io as SidebarMenu,
178
- mo as SidebarMenuAction,
179
- po as SidebarMenuBadge,
180
- no as SidebarMenuButton,
181
- lo as SidebarMenuItem,
182
- So as SidebarMenuSkeleton,
183
- bo as SidebarMenuSub,
184
- xo as SidebarMenuSubButton,
185
- fo as SidebarMenuSubItem,
186
- co as SidebarProvider,
187
- Do as SidebarRail,
188
- uo as SidebarSeparator,
189
- Co as SidebarTrigger,
190
- To as Skeleton,
191
- we as SwipableDrawer,
192
- ke as SwipableDrawerClose,
193
- he as SwipableDrawerContent,
194
- Me as SwipableDrawerDescription,
195
- Be as SwipableDrawerFooter,
196
- Ge as SwipableDrawerHeader,
197
- Ie as SwipableDrawerTitle,
198
- Ae as SwipableDrawerTrigger,
199
- Po as Switch,
200
- ko as Tabs,
201
- ho as TabsContent,
202
- Mo as TabsList,
203
- Bo as TabsTrigger,
204
- Io as TextField,
205
- W as TimePicker,
206
- Ro as Toast,
207
- yo as Tooltip,
208
- Eo as TooltipContent,
209
- Oo as TooltipProvider,
210
- Vo as TooltipTrigger,
76
+ V as Collapsible,
77
+ z as CollapsibleContent,
78
+ U as CollapsibleTrigger,
79
+ M as Combobox,
80
+ G as Command,
81
+ I as CommandDialog,
82
+ A as CommandEmpty,
83
+ R as CommandGroup,
84
+ v as CommandInput,
85
+ L as CommandItem,
86
+ H as CommandList,
87
+ y as CommandSeparator,
88
+ E as CommandShortcut,
89
+ q as ConfirmProvider,
90
+ ee as DataGrid,
91
+ re as DataGridActionBar,
92
+ oe as DataGridContent,
93
+ N as DatePicker,
94
+ W as DateRangePicker,
95
+ te as DeleteAction,
96
+ Qo as DesktopDatePicker,
97
+ Zo as DesktopDateRangePicker,
98
+ tt as DesktopTimePicker,
99
+ de as Dialog,
100
+ be as DialogClose,
101
+ xe as DialogContent,
102
+ fe as DialogDescription,
103
+ ce as DialogFooter,
104
+ De as DialogHeader,
105
+ ue as DialogOverlay,
106
+ Ce as DialogPortal,
107
+ ge as DialogTitle,
108
+ se as DialogTrigger,
109
+ Fe as Drawer,
110
+ Pe as DrawerContent,
111
+ we as DrawerMain,
112
+ ae as ExtraActions,
113
+ He as Form,
114
+ qe as FormCheckbox,
115
+ Ke as FormCombobox,
116
+ ye as FormControl,
117
+ Qe as FormDatePicker,
118
+ Xe as FormDateRangePicker,
119
+ Ee as FormDescription,
120
+ Oe as FormField,
121
+ Ze as FormInput,
122
+ Ve as FormItem,
123
+ ze as FormLabel,
124
+ Ue as FormMessage,
125
+ $e as FormMultiSelect,
126
+ rr as FormRating,
127
+ tr as FormSelect,
128
+ ir as FormSwitch,
129
+ pr as FormTextarea,
130
+ lr as FormTimePicker,
131
+ ie as FreezeAction,
132
+ dr as IconButton,
133
+ xr as Label,
134
+ Xo as MobileDatePicker,
135
+ $o as MobileDateRangePicker,
136
+ rt as MobileTimePicker,
137
+ cr as Modal,
138
+ Dr as ModalFooter,
139
+ Cr as Popover,
140
+ gr as PopoverAnchor,
141
+ sr as PopoverContent,
142
+ Tr as PopoverTrigger,
143
+ me as PrintAction,
144
+ kr as RadioGroup,
145
+ hr as RadioGroupItem,
146
+ Pr as Rating,
147
+ pe as RefreshAction,
148
+ ne as SearchAction,
149
+ Br as Select,
150
+ Gr as SelectContent,
151
+ Ir as SelectGroup,
152
+ Ar as SelectItem,
153
+ Rr as SelectLabel,
154
+ vr as SelectScrollDownButton,
155
+ Lr as SelectScrollUpButton,
156
+ Hr as SelectSeparator,
157
+ yr as SelectTrigger,
158
+ Er as SelectValue,
159
+ Vr as Separator,
160
+ Ur as Sheet,
161
+ jr as SheetClose,
162
+ qr as SheetContent,
163
+ Jr as SheetDescription,
164
+ Kr as SheetFooter,
165
+ Nr as SheetHeader,
166
+ Qr as SheetOverlay,
167
+ Wr as SheetPortal,
168
+ Xr as SheetTitle,
169
+ Yr as SheetTrigger,
170
+ _r as Sidebar,
171
+ $r as SidebarContent,
172
+ eo as SidebarFooter,
173
+ ro as SidebarGroup,
174
+ oo as SidebarGroupAction,
175
+ to as SidebarGroupContent,
176
+ ao as SidebarGroupLabel,
177
+ io as SidebarHeader,
178
+ mo as SidebarInset,
179
+ po as SidebarMenu,
180
+ no as SidebarMenuAction,
181
+ lo as SidebarMenuBadge,
182
+ So as SidebarMenuButton,
183
+ bo as SidebarMenuItem,
184
+ xo as SidebarMenuSkeleton,
185
+ fo as SidebarMenuSub,
186
+ co as SidebarMenuSubButton,
187
+ Do as SidebarMenuSubItem,
188
+ uo as SidebarProvider,
189
+ Co as SidebarRail,
190
+ go as SidebarSeparator,
191
+ so as SidebarTrigger,
192
+ Po as Skeleton,
193
+ he as SwipableDrawer,
194
+ Me as SwipableDrawerClose,
195
+ Be as SwipableDrawerContent,
196
+ Ge as SwipableDrawerDescription,
197
+ Ie as SwipableDrawerFooter,
198
+ Ae as SwipableDrawerHeader,
199
+ Re as SwipableDrawerTitle,
200
+ ve as SwipableDrawerTrigger,
201
+ ko as Switch,
202
+ Mo as Tabs,
203
+ Bo as TabsContent,
204
+ Go as TabsList,
205
+ Io as TabsTrigger,
206
+ Ro as TextField,
207
+ Y as TimePicker,
208
+ Lo as Toast,
209
+ Oo as Tooltip,
210
+ Vo as TooltipContent,
211
+ zo as TooltipProvider,
212
+ Uo as TooltipTrigger,
211
213
  m as buttonVariants,
212
- qo as cn,
213
- Lo as toast,
214
- j as useConfirm,
215
- pe as useDataGrid,
216
- Uo as useIsMobile,
217
- go as useSidebar
214
+ Ko as cn,
215
+ yo as toast,
216
+ J as useConfirm,
217
+ le as useDataGrid,
218
+ qo as useIsMobile,
219
+ To as useSidebar
218
220
  };
219
221
  //# sourceMappingURL=index.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,12 +1,12 @@
1
- import { jsxs as t, Fragment as D, jsx as e } from "react/jsx-runtime";
2
- import * as d from "react";
3
- import { VisuallyHidden as M } from "@radix-ui/react-visually-hidden";
4
- import { Calendar as v } from "@trsys-tech/matrix-icons";
1
+ import { jsxs as r, Fragment as C, jsx as e } from "react/jsx-runtime";
2
+ import * as c from "react";
3
+ import { VisuallyHidden as D } from "@radix-ui/react-visually-hidden";
4
+ import { Calendar as w } from "@trsys-tech/matrix-icons";
5
5
  import { cn as m } from "./utils.es.js";
6
- import { Calendar as k } from "./calendar.es.js";
7
- import { Button as i } from "./button.es.js";
8
- import { Dialog as w, DialogContent as j, DialogHeader as P, DialogTitle as O, DialogDescription as S } from "./dialog.es.js";
9
- import { formatDate as o } from "./format.es.js";
6
+ import { Calendar as M } from "./calendar.es.js";
7
+ import { Button as n } from "./button.es.js";
8
+ import { Dialog as k, DialogContent as j, DialogHeader as P, DialogTitle as O, DialogDescription as S } from "./dialog.es.js";
9
+ import { formatDate as s } from "./format.es.js";
10
10
  const V = ({
11
11
  formatStr: l,
12
12
  selected: a,
@@ -14,48 +14,48 @@ const V = ({
14
14
  className: f,
15
15
  calendarClassName: h,
16
16
  cancelText: u,
17
- applyText: x,
18
- onSelect: g,
19
- disabled: y,
20
- ...b
17
+ applyText: b,
18
+ onSelect: x,
19
+ disabled: g,
20
+ ...y
21
21
  }) => {
22
- const [N, n] = d.useState(!1), [r, s] = d.useState(a), c = () => {
23
- n(!1), s(a);
24
- }, C = () => {
25
- g?.(r), n(!1);
22
+ const [v, o] = c.useState(!1), [t, i] = c.useState(a), d = () => {
23
+ o(!1), i(a);
24
+ }, N = () => {
25
+ x?.(t), o(!1);
26
26
  };
27
- return /* @__PURE__ */ t(D, { children: [
28
- /* @__PURE__ */ t(
29
- i,
27
+ return /* @__PURE__ */ r(C, { children: [
28
+ /* @__PURE__ */ r(
29
+ n,
30
30
  {
31
- variant: "outline",
31
+ variant: "text",
32
32
  className: m(
33
- "w-full border-gray-300 text-text focus:ring-0 active:ring-transparent justify-start disabled:bg-gray-100",
34
- !a && "text-muted-foreground",
33
+ "flex h-8 w-full items-center justify-between whitespace-nowrap rounded-sm border border-input bg-transparent ps-3 pe-1 py-1.5 text-sm ring-offset-background data-[placeholder]:text-muted-foreground hover:border hover:border-primary hover:bg-transparent focus:border focus:border-primary focus:outline-none focus:ring focus:ring-primary-100 disabled:cursor-not-allowed disabled:bg-gray-100 disabled:text-text-300 disabled:border-gray-100 [&>span]:line-clamp-1 [&_svg]:disabled:text-text-300",
35
34
  f
36
35
  ),
37
- onClick: () => n(!0),
38
- "aria-label": a ? `Selected date: ${o(a, l ?? "yyyy/MM/dd")}` : "Pick a date",
39
- disabled: y,
36
+ "data-placeholder": a ? void 0 : "",
37
+ onClick: () => o(!0),
38
+ "aria-label": a ? `Selected date: ${s(a, l ?? "yyyy/MM/dd")}` : "Pick a date",
39
+ disabled: g,
40
40
  children: [
41
- a ? o(a, l ?? "eee, MMM dd") : /* @__PURE__ */ e("span", { children: p ?? "Pick a date" }),
42
- /* @__PURE__ */ e(v, { className: "mr-2 h-5 w-5 ms-auto" })
41
+ a ? s(a, l ?? "eee, MMM dd") : /* @__PURE__ */ e("span", { children: p ?? "Pick a date" }),
42
+ /* @__PURE__ */ e(w, { className: "mr-2 h-5 w-5 ms-auto" })
43
43
  ]
44
44
  }
45
45
  ),
46
- /* @__PURE__ */ e(w, { open: N, onOpenChange: c, children: /* @__PURE__ */ t(j, { className: "h-dscreen w-screen p-0 flex flex-col gap-0 data-[state=open]:animate-slide-from-bottom data-[state=closed]:animate-slide-to-bottom overflow-auto max-w-screen-2xl sm:rounded-none", children: [
47
- /* @__PURE__ */ t(P, { className: "p-4 border-b border-b-gray-200", children: [
48
- /* @__PURE__ */ e(O, { asChild: !0, children: /* @__PURE__ */ t("div", { className: "text-sm font-bold space-y-1 mt-3", children: [
49
- /* @__PURE__ */ e("h5", { className: "text-text-300", children: r?.getFullYear() ?? /* @__PURE__ */ e("pre", { children: " " }) }),
50
- /* @__PURE__ */ e("h6", { className: "", children: r ? o(r, l ?? "eee, MMM dd") : /* @__PURE__ */ e("pre", { children: " " }) })
46
+ /* @__PURE__ */ e(k, { open: v, onOpenChange: d, children: /* @__PURE__ */ r(j, { className: "h-dscreen w-screen p-0 flex flex-col gap-0 data-[state=open]:animate-slide-from-bottom data-[state=closed]:animate-slide-to-bottom overflow-auto max-w-screen-2xl sm:rounded-none", children: [
47
+ /* @__PURE__ */ r(P, { className: "p-4 border-b border-b-gray-200", children: [
48
+ /* @__PURE__ */ e(O, { asChild: !0, children: /* @__PURE__ */ r("div", { className: "text-sm font-bold space-y-1 mt-3", children: [
49
+ /* @__PURE__ */ e("h5", { className: "text-text-300", children: t?.getFullYear() ?? /* @__PURE__ */ e("pre", { children: " " }) }),
50
+ /* @__PURE__ */ e("h6", { className: "", children: t ? s(t, l ?? "eee, MMM dd") : /* @__PURE__ */ e("pre", { children: " " }) })
51
51
  ] }) }),
52
- /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(S, { children: "Date Picker" }) })
52
+ /* @__PURE__ */ e(D, { children: /* @__PURE__ */ e(S, { children: "Date Picker" }) })
53
53
  ] }),
54
- /* @__PURE__ */ t("div", { className: "flex-1 flex flex-col items-center p-4", children: [
55
- /* @__PURE__ */ e(k, { ...b, mode: "single", selected: r, onSelect: s, className: m("p-0", h) }),
56
- /* @__PURE__ */ t("div", { className: "flex justify-center items-center gap-4 mt-auto w-full", children: [
57
- /* @__PURE__ */ e(i, { variant: "text", className: "flex-1 h-10", onClick: c, children: u ?? "Cancel" }),
58
- /* @__PURE__ */ e(i, { variant: "primary", className: "flex-1 h-10", onClick: C, children: x ?? "Apply" })
54
+ /* @__PURE__ */ r("div", { className: "flex-1 flex flex-col items-center p-4", children: [
55
+ /* @__PURE__ */ e(M, { ...y, mode: "single", selected: t, onSelect: i, className: m("p-0", h) }),
56
+ /* @__PURE__ */ r("div", { className: "flex justify-center items-center gap-4 mt-auto w-full", children: [
57
+ /* @__PURE__ */ e(n, { variant: "text", className: "flex-1 h-10", onClick: d, children: u ?? "Cancel" }),
58
+ /* @__PURE__ */ e(n, { variant: "primary", className: "flex-1 h-10", onClick: N, children: b ?? "Apply" })
59
59
  ] })
60
60
  ] })
61
61
  ] }) })
@@ -1 +1 @@
1
- {"version":3,"file":"mobiledatepicker.es.js","sources":["../src/components/date-picker/MobileDatePicker.tsx"],"sourcesContent":["\"use client\";\r\n\r\nimport * as React from \"react\";\r\nimport { format } from \"date-fns\";\r\nimport { PropsBase, PropsSingle } from \"react-day-picker\";\r\nimport { VisuallyHidden } from \"@radix-ui/react-visually-hidden\";\r\nimport { Calendar as CalendarIcon } from \"@trsys-tech/matrix-icons\";\r\n\r\nimport { cn } from \"../../lib/utils\";\r\nimport { Calendar } from \"./calendar\";\r\nimport { Button } from \"../button/Button\";\r\nimport { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from \"../dialog/Dialog\";\r\n\r\ntype MobileDatePickerProps = PropsBase &\r\n Omit<PropsSingle, \"mode\"> & {\r\n formatStr?: string;\r\n placeholder?: string;\r\n calendarClassName?: string;\r\n selected?: Date;\r\n required?: boolean;\r\n cancelText?: string;\r\n applyText?: string;\r\n onSelect?: (date: Date | undefined) => void;\r\n disabled?: boolean;\r\n };\r\n\r\nconst MobileDatePicker: React.FC<MobileDatePickerProps> = ({\r\n formatStr,\r\n selected,\r\n placeholder,\r\n className,\r\n calendarClassName,\r\n cancelText,\r\n applyText,\r\n onSelect,\r\n disabled,\r\n ...props\r\n}) => {\r\n const [isOpen, setIsOpen] = React.useState(false);\r\n const [selectedDate, setSelectedDate] = React.useState<Date | undefined>(selected);\r\n\r\n const handleCancel = () => {\r\n setIsOpen(false);\r\n setSelectedDate(selected);\r\n };\r\n\r\n const handleApply = () => {\r\n onSelect?.(selectedDate);\r\n setIsOpen(false);\r\n };\r\n\r\n return (\r\n <>\r\n <Button\r\n variant={\"outline\"}\r\n className={cn(\r\n \"w-full border-gray-300 text-text focus:ring-0 active:ring-transparent justify-start disabled:bg-gray-100\",\r\n !selected && \"text-muted-foreground\",\r\n className,\r\n )}\r\n onClick={() => setIsOpen(true)}\r\n aria-label={selected ? `Selected date: ${format(selected, formatStr ?? \"yyyy/MM/dd\")}` : \"Pick a date\"}\r\n disabled={disabled}\r\n >\r\n {selected ? format(selected, formatStr ?? \"eee, MMM dd\") : <span>{placeholder ?? \"Pick a date\"}</span>}\r\n <CalendarIcon className=\"mr-2 h-5 w-5 ms-auto\" />\r\n </Button>\r\n <Dialog open={isOpen} onOpenChange={handleCancel}>\r\n <DialogContent className=\"h-dscreen w-screen p-0 flex flex-col gap-0 data-[state=open]:animate-slide-from-bottom data-[state=closed]:animate-slide-to-bottom overflow-auto max-w-screen-2xl sm:rounded-none\">\r\n <DialogHeader className=\"p-4 border-b border-b-gray-200\">\r\n <DialogTitle asChild>\r\n <div className=\"text-sm font-bold space-y-1 mt-3\">\r\n <h5 className=\"text-text-300\">{selectedDate?.getFullYear() ?? <pre> </pre>}</h5>\r\n <h6 className=\"\">{selectedDate ? format(selectedDate, formatStr ?? \"eee, MMM dd\") : <pre> </pre>}</h6>\r\n </div>\r\n </DialogTitle>\r\n <VisuallyHidden>\r\n <DialogDescription>{\"Date Picker\"}</DialogDescription>\r\n </VisuallyHidden>\r\n </DialogHeader>\r\n <div className=\"flex-1 flex flex-col items-center p-4\">\r\n <Calendar {...props} mode=\"single\" selected={selectedDate} onSelect={setSelectedDate} className={cn(\"p-0\", calendarClassName)} />\r\n <div className=\"flex justify-center items-center gap-4 mt-auto w-full\">\r\n <Button variant=\"text\" className=\"flex-1 h-10\" onClick={handleCancel}>\r\n {cancelText ?? \"Cancel\"}\r\n </Button>\r\n <Button variant=\"primary\" className=\"flex-1 h-10\" onClick={handleApply}>\r\n {applyText ?? \"Apply\"}\r\n </Button>\r\n </div>\r\n </div>\r\n </DialogContent>\r\n </Dialog>\r\n </>\r\n );\r\n};\r\n\r\nexport { MobileDatePicker, type MobileDatePickerProps };\r\n"],"names":["MobileDatePicker","formatStr","selected","placeholder","className","calendarClassName","cancelText","applyText","onSelect","disabled","props","isOpen","setIsOpen","React","selectedDate","setSelectedDate","handleCancel","handleApply","jsxs","Fragment","Button","cn","format","jsx","CalendarIcon","Dialog","DialogContent","DialogHeader","DialogTitle","VisuallyHidden","DialogDescription","Calendar"],"mappings":";;;;;;;;;AA0BA,MAAMA,IAAoD,CAAC;AAAA,EACzD,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,aAAAC;AAAA,EACA,WAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,YAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,MAAM;AACJ,QAAM,CAACC,GAAQC,CAAS,IAAIC,EAAM,SAAS,EAAK,GAC1C,CAACC,GAAcC,CAAe,IAAIF,EAAM,SAA2BX,CAAQ,GAE3Ec,IAAe,MAAM;AACzB,IAAAJ,EAAU,EAAK,GACfG,EAAgBb,CAAQ;AAAA,EAC1B,GAEMe,IAAc,MAAM;AACxB,IAAAT,IAAWM,CAAY,GACvBF,EAAU,EAAK;AAAA,EACjB;AAEA,SAEI,gBAAAM,EAAAC,GAAA,EAAA,UAAA;AAAA,IAAA,gBAAAD;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,SAAS;AAAA,QACT,WAAWC;AAAA,UACT;AAAA,UACA,CAACnB,KAAY;AAAA,UACbE;AAAA,QACF;AAAA,QACA,SAAS,MAAMQ,EAAU,EAAI;AAAA,QAC7B,cAAYV,IAAW,kBAAkBoB,EAAOpB,GAAUD,KAAa,YAAY,CAAC,KAAK;AAAA,QACzF,UAAAQ;AAAA,QAEC,UAAA;AAAA,UAAWP,IAAAoB,EAAOpB,GAAUD,KAAa,aAAa,IAAK,gBAAAsB,EAAA,QAAA,EAAM,eAAe,cAAc,CAAA;AAAA,UAC/F,gBAAAA,EAACC,GAAa,EAAA,WAAU,uBAAuB,CAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IACjD;AAAA,IACA,gBAAAD,EAACE,KAAO,MAAMd,GAAQ,cAAcK,GAClC,UAAA,gBAAAE,EAACQ,GAAc,EAAA,WAAU,qLACvB,UAAA;AAAA,MAAC,gBAAAR,EAAAS,GAAA,EAAa,WAAU,kCACtB,UAAA;AAAA,QAAA,gBAAAJ,EAACK,KAAY,SAAO,IAClB,UAAC,gBAAAV,EAAA,OAAA,EAAI,WAAU,oCACb,UAAA;AAAA,UAAC,gBAAAK,EAAA,MAAA,EAAG,WAAU,iBAAiB,UAAAT,GAAc,iBAAiB,gBAAAS,EAAC,OAAI,EAAA,UAAA,IAAA,CAAC,EAAO,CAAA;AAAA,UAC1E,gBAAAA,EAAA,MAAA,EAAG,WAAU,IAAI,UAAeT,IAAAQ,EAAOR,GAAcb,KAAa,aAAa,IAAK,gBAAAsB,EAAA,OAAA,EAAI,eAAC,EAAO,CAAA;AAAA,QAAA,EAAA,CACnG,EACF,CAAA;AAAA,QACC,gBAAAA,EAAAM,GAAA,EACC,UAAC,gBAAAN,EAAAO,GAAA,EAAmB,yBAAc,EACpC,CAAA;AAAA,MAAA,GACF;AAAA,MACA,gBAAAZ,EAAC,OAAI,EAAA,WAAU,yCACb,UAAA;AAAA,QAAA,gBAAAK,EAACQ,GAAU,EAAA,GAAGrB,GAAO,MAAK,UAAS,UAAUI,GAAc,UAAUC,GAAiB,WAAWM,EAAG,OAAOhB,CAAiB,GAAG;AAAA,QAC/H,gBAAAa,EAAC,OAAI,EAAA,WAAU,yDACb,UAAA;AAAA,UAAC,gBAAAK,EAAAH,GAAA,EAAO,SAAQ,QAAO,WAAU,eAAc,SAASJ,GACrD,eAAc,SACjB,CAAA;AAAA,UACA,gBAAAO,EAACH,KAAO,SAAQ,WAAU,WAAU,eAAc,SAASH,GACxD,UAAAV,KAAa,QAChB,CAAA;AAAA,QAAA,EACF,CAAA;AAAA,MAAA,EACF,CAAA;AAAA,IAAA,EAAA,CACF,EACF,CAAA;AAAA,EAAA,GACF;AAEJ;"}
1
+ {"version":3,"file":"mobiledatepicker.es.js","sources":["../src/components/date-picker/MobileDatePicker.tsx"],"sourcesContent":["\"use client\";\r\n\r\nimport * as React from \"react\";\r\nimport { format } from \"date-fns\";\r\nimport { PropsBase, PropsSingle } from \"react-day-picker\";\r\nimport { VisuallyHidden } from \"@radix-ui/react-visually-hidden\";\r\nimport { Calendar as CalendarIcon } from \"@trsys-tech/matrix-icons\";\r\n\r\nimport { cn } from \"../../lib/utils\";\r\nimport { Calendar } from \"./calendar\";\r\nimport { Button } from \"../button/Button\";\r\nimport { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from \"../dialog/Dialog\";\r\n\r\ntype MobileDatePickerProps = PropsBase &\r\n Omit<PropsSingle, \"mode\"> & {\r\n formatStr?: string;\r\n placeholder?: string;\r\n calendarClassName?: string;\r\n selected?: Date;\r\n required?: boolean;\r\n cancelText?: string;\r\n applyText?: string;\r\n onSelect?: (date: Date | undefined) => void;\r\n disabled?: boolean;\r\n };\r\n\r\nconst MobileDatePicker: React.FC<MobileDatePickerProps> = ({\r\n formatStr,\r\n selected,\r\n placeholder,\r\n className,\r\n calendarClassName,\r\n cancelText,\r\n applyText,\r\n onSelect,\r\n disabled,\r\n ...props\r\n}) => {\r\n const [isOpen, setIsOpen] = React.useState(false);\r\n const [selectedDate, setSelectedDate] = React.useState<Date | undefined>(selected);\r\n\r\n const handleCancel = () => {\r\n setIsOpen(false);\r\n setSelectedDate(selected);\r\n };\r\n\r\n const handleApply = () => {\r\n onSelect?.(selectedDate);\r\n setIsOpen(false);\r\n };\r\n\r\n return (\r\n <>\r\n <Button\r\n variant=\"text\"\r\n className={cn(\r\n \"flex h-8 w-full items-center justify-between whitespace-nowrap rounded-sm border border-input bg-transparent ps-3 pe-1 py-1.5 text-sm ring-offset-background data-[placeholder]:text-muted-foreground hover:border hover:border-primary hover:bg-transparent focus:border focus:border-primary focus:outline-none focus:ring focus:ring-primary-100 disabled:cursor-not-allowed disabled:bg-gray-100 disabled:text-text-300 disabled:border-gray-100 [&>span]:line-clamp-1 [&_svg]:disabled:text-text-300\",\r\n className,\r\n )}\r\n data-placeholder={!selected ? \"\" : undefined}\r\n onClick={() => setIsOpen(true)}\r\n aria-label={selected ? `Selected date: ${format(selected, formatStr ?? \"yyyy/MM/dd\")}` : \"Pick a date\"}\r\n disabled={disabled}\r\n >\r\n {selected ? format(selected, formatStr ?? \"eee, MMM dd\") : <span>{placeholder ?? \"Pick a date\"}</span>}\r\n <CalendarIcon className=\"mr-2 h-5 w-5 ms-auto\" />\r\n </Button>\r\n <Dialog open={isOpen} onOpenChange={handleCancel}>\r\n <DialogContent className=\"h-dscreen w-screen p-0 flex flex-col gap-0 data-[state=open]:animate-slide-from-bottom data-[state=closed]:animate-slide-to-bottom overflow-auto max-w-screen-2xl sm:rounded-none\">\r\n <DialogHeader className=\"p-4 border-b border-b-gray-200\">\r\n <DialogTitle asChild>\r\n <div className=\"text-sm font-bold space-y-1 mt-3\">\r\n <h5 className=\"text-text-300\">{selectedDate?.getFullYear() ?? <pre> </pre>}</h5>\r\n <h6 className=\"\">{selectedDate ? format(selectedDate, formatStr ?? \"eee, MMM dd\") : <pre> </pre>}</h6>\r\n </div>\r\n </DialogTitle>\r\n <VisuallyHidden>\r\n <DialogDescription>{\"Date Picker\"}</DialogDescription>\r\n </VisuallyHidden>\r\n </DialogHeader>\r\n <div className=\"flex-1 flex flex-col items-center p-4\">\r\n <Calendar {...props} mode=\"single\" selected={selectedDate} onSelect={setSelectedDate} className={cn(\"p-0\", calendarClassName)} />\r\n <div className=\"flex justify-center items-center gap-4 mt-auto w-full\">\r\n <Button variant=\"text\" className=\"flex-1 h-10\" onClick={handleCancel}>\r\n {cancelText ?? \"Cancel\"}\r\n </Button>\r\n <Button variant=\"primary\" className=\"flex-1 h-10\" onClick={handleApply}>\r\n {applyText ?? \"Apply\"}\r\n </Button>\r\n </div>\r\n </div>\r\n </DialogContent>\r\n </Dialog>\r\n </>\r\n );\r\n};\r\n\r\nexport { MobileDatePicker, type MobileDatePickerProps };\r\n"],"names":["MobileDatePicker","formatStr","selected","placeholder","className","calendarClassName","cancelText","applyText","onSelect","disabled","props","isOpen","setIsOpen","React","selectedDate","setSelectedDate","handleCancel","handleApply","jsxs","Fragment","Button","cn","format","jsx","CalendarIcon","Dialog","DialogContent","DialogHeader","DialogTitle","VisuallyHidden","DialogDescription","Calendar"],"mappings":";;;;;;;;;AA0BA,MAAMA,IAAoD,CAAC;AAAA,EACzD,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,aAAAC;AAAA,EACA,WAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,YAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,MAAM;AACJ,QAAM,CAACC,GAAQC,CAAS,IAAIC,EAAM,SAAS,EAAK,GAC1C,CAACC,GAAcC,CAAe,IAAIF,EAAM,SAA2BX,CAAQ,GAE3Ec,IAAe,MAAM;AACzB,IAAAJ,EAAU,EAAK,GACfG,EAAgBb,CAAQ;AAAA,EAC1B,GAEMe,IAAc,MAAM;AACxB,IAAAT,IAAWM,CAAY,GACvBF,EAAU,EAAK;AAAA,EACjB;AAEA,SAEI,gBAAAM,EAAAC,GAAA,EAAA,UAAA;AAAA,IAAA,gBAAAD;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,SAAQ;AAAA,QACR,WAAWC;AAAA,UACT;AAAA,UACAjB;AAAA,QACF;AAAA,QACA,oBAAmBF,IAAgB,SAAL;AAAA,QAC9B,SAAS,MAAMU,EAAU,EAAI;AAAA,QAC7B,cAAYV,IAAW,kBAAkBoB,EAAOpB,GAAUD,KAAa,YAAY,CAAC,KAAK;AAAA,QACzF,UAAAQ;AAAA,QAEC,UAAA;AAAA,UAAWP,IAAAoB,EAAOpB,GAAUD,KAAa,aAAa,IAAK,gBAAAsB,EAAA,QAAA,EAAM,eAAe,cAAc,CAAA;AAAA,UAC/F,gBAAAA,EAACC,GAAa,EAAA,WAAU,uBAAuB,CAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IACjD;AAAA,IACA,gBAAAD,EAACE,KAAO,MAAMd,GAAQ,cAAcK,GAClC,UAAA,gBAAAE,EAACQ,GAAc,EAAA,WAAU,qLACvB,UAAA;AAAA,MAAC,gBAAAR,EAAAS,GAAA,EAAa,WAAU,kCACtB,UAAA;AAAA,QAAA,gBAAAJ,EAACK,KAAY,SAAO,IAClB,UAAC,gBAAAV,EAAA,OAAA,EAAI,WAAU,oCACb,UAAA;AAAA,UAAC,gBAAAK,EAAA,MAAA,EAAG,WAAU,iBAAiB,UAAAT,GAAc,iBAAiB,gBAAAS,EAAC,OAAI,EAAA,UAAA,IAAA,CAAC,EAAO,CAAA;AAAA,UAC1E,gBAAAA,EAAA,MAAA,EAAG,WAAU,IAAI,UAAeT,IAAAQ,EAAOR,GAAcb,KAAa,aAAa,IAAK,gBAAAsB,EAAA,OAAA,EAAI,eAAC,EAAO,CAAA;AAAA,QAAA,EAAA,CACnG,EACF,CAAA;AAAA,QACC,gBAAAA,EAAAM,GAAA,EACC,UAAC,gBAAAN,EAAAO,GAAA,EAAmB,yBAAc,EACpC,CAAA;AAAA,MAAA,GACF;AAAA,MACA,gBAAAZ,EAAC,OAAI,EAAA,WAAU,yCACb,UAAA;AAAA,QAAA,gBAAAK,EAACQ,GAAU,EAAA,GAAGrB,GAAO,MAAK,UAAS,UAAUI,GAAc,UAAUC,GAAiB,WAAWM,EAAG,OAAOhB,CAAiB,GAAG;AAAA,QAC/H,gBAAAa,EAAC,OAAI,EAAA,WAAU,yDACb,UAAA;AAAA,UAAC,gBAAAK,EAAAH,GAAA,EAAO,SAAQ,QAAO,WAAU,eAAc,SAASJ,GACrD,eAAc,SACjB,CAAA;AAAA,UACA,gBAAAO,EAACH,KAAO,SAAQ,WAAU,WAAU,eAAc,SAASH,GACxD,UAAAV,KAAa,QAChB,CAAA;AAAA,QAAA,EACF,CAAA;AAAA,MAAA,EACF,CAAA;AAAA,IAAA,EAAA,CACF,EACF,CAAA;AAAA,EAAA,GACF;AAEJ;"}