@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.
- package/dist/badge.es.js.map +1 -1
- package/dist/breadcrumb.es.js.map +1 -1
- package/dist/button.es.js.map +1 -1
- package/dist/calendar.es.js.map +1 -1
- package/dist/card.es.js.map +1 -1
- package/dist/chip.es.js.map +1 -1
- package/dist/collapsible.es.js.map +1 -1
- package/dist/combobox.es.js +84 -32
- package/dist/combobox.es.js.map +1 -1
- package/dist/command.es.js +58 -50
- package/dist/command.es.js.map +1 -1
- package/dist/components/badge/Badge.d.ts.map +1 -1
- package/dist/components/breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/components/button/Button.d.ts.map +1 -1
- package/dist/components/card/Card.d.ts.map +1 -1
- package/dist/components/chip/Chip.d.ts.map +1 -1
- package/dist/components/collapsible/Collapsible.d.ts.map +1 -1
- package/dist/components/combobox/Combobox.d.ts +68 -59
- package/dist/components/combobox/Combobox.d.ts.map +1 -1
- package/dist/components/command/Command.d.ts +5 -2
- package/dist/components/command/Command.d.ts.map +1 -1
- package/dist/components/confirm/Confirm.d.ts.map +1 -1
- package/dist/components/data-grid/DataGrid.d.ts.map +1 -1
- package/dist/components/date-picker/DatePicker.d.ts.map +1 -1
- package/dist/components/date-picker/DateRangePicker.d.ts.map +1 -1
- package/dist/components/date-picker/DesktopTimePicker.d.ts.map +1 -1
- package/dist/components/date-picker/MobileTimePicker.d.ts.map +1 -1
- package/dist/components/date-picker/TimePicker.d.ts.map +1 -1
- package/dist/components/date-picker/calendar.d.ts.map +1 -1
- package/dist/components/dialog/Dialog.d.ts.map +1 -1
- package/dist/components/form/Form.d.ts.map +1 -1
- package/dist/components/form-checkbox/FormCheckbox.d.ts.map +1 -1
- package/dist/components/form-combobox/FormCombobox.d.ts +2 -7
- package/dist/components/form-combobox/FormCombobox.d.ts.map +1 -1
- package/dist/components/form-date-picker/FormDatePicker.d.ts.map +1 -1
- package/dist/components/form-date-range-picker/FormDateRangePicker.d.ts.map +1 -1
- package/dist/components/form-input/FormInput.d.ts.map +1 -1
- package/dist/components/form-multi-select/FormMultiSelect.d.ts.map +1 -1
- package/dist/components/form-rating/FormRating.d.ts.map +1 -1
- package/dist/components/form-select/FormSelect.d.ts.map +1 -1
- package/dist/components/form-switch/FormSwitch.d.ts.map +1 -1
- package/dist/components/form-textarea/FormTextarea.d.ts.map +1 -1
- package/dist/components/form-time-picker/FormTimePicker.d.ts.map +1 -1
- package/dist/components/icon-botton/IconButton.d.ts.map +1 -1
- package/dist/components/modal/Modal.d.ts.map +1 -1
- package/dist/components/multi-select/MultiSelect.d.ts.map +1 -1
- package/dist/components/select/Select.d.ts.map +1 -1
- package/dist/components/tabs/Tabs.d.ts.map +1 -1
- package/dist/components/text-field/TextField.d.ts.map +1 -1
- package/dist/components/toast/Toast.d.ts.map +1 -1
- package/dist/components/toast/toast-components.d.ts.map +1 -1
- package/dist/components/toast/use-toast.d.ts.map +1 -1
- package/dist/confirm.es.js.map +1 -1
- package/dist/datagrid.es.js.map +1 -1
- package/dist/datepicker.es.js.map +1 -1
- package/dist/daterangepicker.es.js.map +1 -1
- package/dist/desktopdatepicker.es.js +33 -33
- package/dist/desktopdatepicker.es.js.map +1 -1
- package/dist/desktopdaterangepicker.es.js +33 -33
- package/dist/desktopdaterangepicker.es.js.map +1 -1
- package/dist/desktoptimepicker.es.js +27 -23
- package/dist/desktoptimepicker.es.js.map +1 -1
- package/dist/dialog.es.js.map +1 -1
- package/dist/form.es.js.map +1 -1
- package/dist/formcheckbox.es.js.map +1 -1
- package/dist/formcombobox.es.js +47 -104
- package/dist/formcombobox.es.js.map +1 -1
- package/dist/formdatepicker.es.js.map +1 -1
- package/dist/formdaterangepicker.es.js.map +1 -1
- package/dist/forminput.es.js.map +1 -1
- package/dist/formmultiselect.es.js.map +1 -1
- package/dist/formrating.es.js.map +1 -1
- package/dist/formselect.es.js.map +1 -1
- package/dist/formswitch.es.js.map +1 -1
- package/dist/formtextarea.es.js.map +1 -1
- package/dist/formtimepicker.es.js.map +1 -1
- package/dist/iconbutton.es.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +193 -191
- package/dist/index.es.js.map +1 -1
- package/dist/mobiledatepicker.es.js +38 -38
- package/dist/mobiledatepicker.es.js.map +1 -1
- package/dist/mobiledaterangepicker.es.js +51 -51
- package/dist/mobiledaterangepicker.es.js.map +1 -1
- package/dist/mobiletimepicker.es.js +30 -26
- package/dist/mobiletimepicker.es.js.map +1 -1
- package/dist/modal.es.js.map +1 -1
- package/dist/multiselect.es.js +114 -106
- package/dist/multiselect.es.js.map +1 -1
- package/dist/select.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tabs.es.js.map +1 -1
- package/dist/textfield.es.js.map +1 -1
- package/dist/timepicker.es.js.map +1 -1
- package/dist/toast-components.es.js.map +1 -1
- package/dist/toast.es.js.map +1 -1
- package/dist/use-toast.es.js.map +1 -1
- 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 {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
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
|
-
|
|
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
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
M as
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
N as
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
se as
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
qe as
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
Qe as
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
$e as
|
|
125
|
-
rr as
|
|
126
|
-
tr as
|
|
127
|
-
ir as
|
|
128
|
-
pr as
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
dr as
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
$o as
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
Dr as
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
Er as
|
|
158
|
-
Vr as
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
Yr as
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
ko as
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
Io as
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
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
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
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
|
package/dist/index.es.js.map
CHANGED
|
@@ -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
|
|
2
|
-
import * as
|
|
3
|
-
import { VisuallyHidden as
|
|
4
|
-
import { Calendar as
|
|
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
|
|
7
|
-
import { Button as
|
|
8
|
-
import { Dialog as
|
|
9
|
-
import { formatDate as
|
|
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:
|
|
18
|
-
onSelect:
|
|
19
|
-
disabled:
|
|
20
|
-
...
|
|
17
|
+
applyText: b,
|
|
18
|
+
onSelect: x,
|
|
19
|
+
disabled: g,
|
|
20
|
+
...y
|
|
21
21
|
}) => {
|
|
22
|
-
const [
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
|
|
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__ */
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
|
|
27
|
+
return /* @__PURE__ */ r(C, { children: [
|
|
28
|
+
/* @__PURE__ */ r(
|
|
29
|
+
n,
|
|
30
30
|
{
|
|
31
|
-
variant: "
|
|
31
|
+
variant: "text",
|
|
32
32
|
className: m(
|
|
33
|
-
"w-full border-
|
|
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
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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 ?
|
|
42
|
-
/* @__PURE__ */ e(
|
|
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(
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
/* @__PURE__ */ e(O, { asChild: !0, children: /* @__PURE__ */
|
|
49
|
-
/* @__PURE__ */ e("h5", { className: "text-text-300", children:
|
|
50
|
-
/* @__PURE__ */ e("h6", { className: "", 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(
|
|
52
|
+
/* @__PURE__ */ e(D, { children: /* @__PURE__ */ e(S, { children: "Date Picker" }) })
|
|
53
53
|
] }),
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
-
/* @__PURE__ */ e(
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
/* @__PURE__ */ e(
|
|
58
|
-
/* @__PURE__ */ e(
|
|
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
|
|
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;"}
|