@trsys-tech/matrix-library 0.3.5 → 0.3.7
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/accordion.es.js +40 -0
- package/dist/accordion.es.js.map +1 -0
- package/dist/avatar.es.js +20 -0
- package/dist/avatar.es.js.map +1 -0
- package/dist/components/command/Command.d.ts +7 -7
- package/dist/components/progress/Progress.d.ts +106 -0
- package/dist/components/progress/Progress.d.ts.map +1 -0
- package/dist/contextmenu.es.js +116 -0
- package/dist/contextmenu.es.js.map +1 -0
- package/dist/index.d.ts +11 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +248 -217
- package/dist/index.es.js.map +1 -1
- package/dist/progress.es.js +39 -0
- package/dist/progress.es.js.map +1 -0
- package/dist/style.css +1 -1
- package/package.json +2 -1
package/dist/index.es.js
CHANGED
|
@@ -1,221 +1,252 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { DataGrid as
|
|
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 {
|
|
56
|
-
import {
|
|
2
|
+
import { Accordion as t, AccordionContent as a, AccordionItem as i, AccordionTrigger as n } from "./accordion.es.js";
|
|
3
|
+
import { Avatar as p, AvatarFallback as l, AvatarImage as x } from "./avatar.es.js";
|
|
4
|
+
import { Badge as d } from "./badge.es.js";
|
|
5
|
+
import { Breadcrumb as c, BreadcrumbEllipsis as u, BreadcrumbItem as f, BreadcrumbLink as C, BreadcrumbList as g, BreadcrumbPage as D, BreadcrumbSeparator as s } from "./breadcrumb.es.js";
|
|
6
|
+
import { Button as T, buttonVariants as F } from "./button.es.js";
|
|
7
|
+
import { Calendar as k } from "./calendar.es.js";
|
|
8
|
+
import { Card as h, CardContent as A, CardDescription as I, CardFooter as B, CardHeader as G, CardTitle as v } from "./card.es.js";
|
|
9
|
+
import { Checkbox as L } from "./checkbox.es.js";
|
|
10
|
+
import { Chip as y } from "./chip.es.js";
|
|
11
|
+
import { Collapsible as O, CollapsibleContent as V, CollapsibleTrigger as z } from "./collapsible.es.js";
|
|
12
|
+
import { Combobox as j } from "./combobox.es.js";
|
|
13
|
+
import { Command as J, CommandDialog as K, CommandEmpty as N, CommandGroup as Q, CommandInput as W, CommandItem as X, CommandList as Y, CommandSeparator as Z, CommandShortcut as _ } from "./command.es.js";
|
|
14
|
+
import { ConfirmProvider as ee, useConfirm as re } from "./confirm.es.js";
|
|
15
|
+
import { ContextMenu as te, ContextMenuCheckboxItem as ae, ContextMenuContent as ie, ContextMenuGroup as ne, ContextMenuItem as me, ContextMenuLabel as pe, ContextMenuPortal as le, ContextMenuRadioGroup as xe, ContextMenuRadioItem as Se, ContextMenuSeparator as de, ContextMenuShortcut as be, ContextMenuSub as ce, ContextMenuSubContent as ue, ContextMenuSubTrigger as fe, ContextMenuTrigger as Ce } from "./contextmenu.es.js";
|
|
16
|
+
import { DataGrid as De, DataGridActionBar as se, DataGridContent as Me, DeleteAction as Te, ExtraActions as Fe, FreezeAction as Pe, PrintAction as ke, RefreshAction as we, SearchAction as he, useDataGrid as Ae } from "./datagrid.es.js";
|
|
17
|
+
import { DatePicker as Be } from "./datepicker.es.js";
|
|
18
|
+
import { DateRangePicker as ve } from "./daterangepicker.es.js";
|
|
19
|
+
import { TimePicker as Le } from "./timepicker.es.js";
|
|
20
|
+
import { Dialog as ye, DialogClose as Ee, DialogContent as Oe, DialogDescription as Ve, DialogFooter as ze, DialogHeader as Ue, DialogOverlay as je, DialogPortal as qe, DialogTitle as Je, DialogTrigger as Ke } from "./dialog.es.js";
|
|
21
|
+
import { Drawer as Qe, DrawerContent as We, DrawerMain as Xe } from "./drawer.es.js";
|
|
22
|
+
import { SwipableDrawer as Ze, SwipableDrawerClose as _e, SwipableDrawerContent as $e, SwipableDrawerDescription as er, SwipableDrawerFooter as rr, SwipableDrawerHeader as or, SwipableDrawerTitle as tr, SwipableDrawerTrigger as ar } from "./swipabledrawer.es.js";
|
|
23
|
+
import { Form as nr, FormControl as mr, FormDescription as pr, FormField as lr, FormItem as xr, FormLabel as Sr, FormMessage as dr } from "./form.es.js";
|
|
24
|
+
import { FormCheckbox as cr } from "./formcheckbox.es.js";
|
|
25
|
+
import { FormCombobox as fr } from "./formcombobox.es.js";
|
|
26
|
+
import { FormDatePicker as gr } from "./formdatepicker.es.js";
|
|
27
|
+
import { FormDateRangePicker as sr } from "./formdaterangepicker.es.js";
|
|
28
|
+
import { FormInput as Tr } from "./forminput.es.js";
|
|
29
|
+
import { FormMultiSelect as Pr } from "./formmultiselect.es.js";
|
|
30
|
+
import { FormRating as wr } from "./formrating.es.js";
|
|
31
|
+
import { FormSelect as Ar } from "./formselect.es.js";
|
|
32
|
+
import { FormSwitch as Br } from "./formswitch.es.js";
|
|
33
|
+
import { FormTextarea as vr } from "./formtextarea.es.js";
|
|
34
|
+
import { FormTimePicker as Lr } from "./formtimepicker.es.js";
|
|
35
|
+
import { IconButton as yr } from "./iconbutton.es.js";
|
|
36
|
+
import { Label as Or } from "./label.es.js";
|
|
37
|
+
import { Modal as zr, ModalFooter as Ur } from "./modal.es.js";
|
|
38
|
+
import { MultiSelect as qr } from "./multiselect.es.js";
|
|
39
|
+
import { Popover as Kr, PopoverAnchor as Nr, PopoverContent as Qr, PopoverTrigger as Wr } from "./popover.es.js";
|
|
40
|
+
import { Progress as Yr } from "./progress.es.js";
|
|
41
|
+
import { RadioGroup as _r, RadioGroupItem as $r } from "./radiogroup.es.js";
|
|
42
|
+
import { Rating as ro } from "./rating.es.js";
|
|
43
|
+
import { Select as to, SelectContent as ao, SelectGroup as io, SelectItem as no, SelectLabel as mo, SelectScrollDownButton as po, SelectScrollUpButton as lo, SelectSeparator as xo, SelectTrigger as So, SelectValue as bo } from "./select.es.js";
|
|
44
|
+
import { Separator as uo } from "./separator.es.js";
|
|
45
|
+
import { Sheet as Co, SheetClose as go, SheetContent as Do, SheetDescription as so, SheetFooter as Mo, SheetHeader as To, SheetOverlay as Fo, SheetPortal as Po, SheetTitle as ko, SheetTrigger as wo } from "./sheet.es.js";
|
|
46
|
+
import { Sidebar as Ao, SidebarContent as Io, SidebarFooter as Bo, SidebarGroup as Go, SidebarGroupAction as vo, SidebarGroupContent as Ro, SidebarGroupLabel as Lo, SidebarHeader as Ho, SidebarInset as yo, SidebarMenu as Eo, SidebarMenuAction as Oo, SidebarMenuBadge as Vo, SidebarMenuButton as zo, SidebarMenuItem as Uo, SidebarMenuSkeleton as jo, SidebarMenuSub as qo, SidebarMenuSubButton as Jo, SidebarMenuSubItem as Ko, SidebarProvider as No, SidebarRail as Qo, SidebarSeparator as Wo, SidebarTrigger as Xo, useSidebar as Yo } from "./sidebar.es.js";
|
|
47
|
+
import { Skeleton as _o } from "./skeleton.es.js";
|
|
48
|
+
import { Switch as et } from "./switch.es.js";
|
|
49
|
+
import { Tabs as ot, TabsContent as tt, TabsList as at, TabsTrigger as it } from "./tabs.es.js";
|
|
50
|
+
import { TextField as mt } from "./textfield.es.js";
|
|
51
|
+
import { Textarea as lt } from "./textarea.es.js";
|
|
52
|
+
import { Toast as St } from "./toast.es.js";
|
|
53
|
+
import { toast as bt } from "./use-toast.es.js";
|
|
54
|
+
import { Tooltip as ut, TooltipContent as ft, TooltipProvider as Ct, TooltipTrigger as gt } from "./tooltip.es.js";
|
|
55
|
+
import { useIsMobile as st } from "./use-mobile.es.js";
|
|
56
|
+
import { cn as Tt } from "./utils.es.js";
|
|
57
|
+
import { DesktopDatePicker as Pt } from "./desktopdatepicker.es.js";
|
|
58
|
+
import { MobileDatePicker as wt } from "./mobiledatepicker.es.js";
|
|
59
|
+
import { DesktopDateRangePicker as At } from "./desktopdaterangepicker.es.js";
|
|
60
|
+
import { MobileDateRangePicker as Bt } from "./mobiledaterangepicker.es.js";
|
|
61
|
+
import { MobileTimePicker as vt } from "./mobiletimepicker.es.js";
|
|
62
|
+
import { DesktopTimePicker as Lt } from "./desktoptimepicker.es.js";
|
|
57
63
|
export {
|
|
58
|
-
t as
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
x as
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
s as
|
|
73
|
-
T as
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
Ur as
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
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
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
64
|
+
t as Accordion,
|
|
65
|
+
a as AccordionContent,
|
|
66
|
+
i as AccordionItem,
|
|
67
|
+
n as AccordionTrigger,
|
|
68
|
+
p as Avatar,
|
|
69
|
+
l as AvatarFallback,
|
|
70
|
+
x as AvatarImage,
|
|
71
|
+
d as Badge,
|
|
72
|
+
c as Breadcrumb,
|
|
73
|
+
u as BreadcrumbEllipsis,
|
|
74
|
+
f as BreadcrumbItem,
|
|
75
|
+
C as BreadcrumbLink,
|
|
76
|
+
g as BreadcrumbList,
|
|
77
|
+
D as BreadcrumbPage,
|
|
78
|
+
s as BreadcrumbSeparator,
|
|
79
|
+
T as Button,
|
|
80
|
+
k as Calendar,
|
|
81
|
+
h as Card,
|
|
82
|
+
A as CardContent,
|
|
83
|
+
I as CardDescription,
|
|
84
|
+
B as CardFooter,
|
|
85
|
+
G as CardHeader,
|
|
86
|
+
v as CardTitle,
|
|
87
|
+
L as Checkbox,
|
|
88
|
+
y as Chip,
|
|
89
|
+
O as Collapsible,
|
|
90
|
+
V as CollapsibleContent,
|
|
91
|
+
z as CollapsibleTrigger,
|
|
92
|
+
j as Combobox,
|
|
93
|
+
J as Command,
|
|
94
|
+
K as CommandDialog,
|
|
95
|
+
N as CommandEmpty,
|
|
96
|
+
Q as CommandGroup,
|
|
97
|
+
W as CommandInput,
|
|
98
|
+
X as CommandItem,
|
|
99
|
+
Y as CommandList,
|
|
100
|
+
Z as CommandSeparator,
|
|
101
|
+
_ as CommandShortcut,
|
|
102
|
+
ee as ConfirmProvider,
|
|
103
|
+
te as ContextMenu,
|
|
104
|
+
ae as ContextMenuCheckboxItem,
|
|
105
|
+
ie as ContextMenuContent,
|
|
106
|
+
ne as ContextMenuGroup,
|
|
107
|
+
me as ContextMenuItem,
|
|
108
|
+
pe as ContextMenuLabel,
|
|
109
|
+
le as ContextMenuPortal,
|
|
110
|
+
xe as ContextMenuRadioGroup,
|
|
111
|
+
Se as ContextMenuRadioItem,
|
|
112
|
+
de as ContextMenuSeparator,
|
|
113
|
+
be as ContextMenuShortcut,
|
|
114
|
+
ce as ContextMenuSub,
|
|
115
|
+
ue as ContextMenuSubContent,
|
|
116
|
+
fe as ContextMenuSubTrigger,
|
|
117
|
+
Ce as ContextMenuTrigger,
|
|
118
|
+
De as DataGrid,
|
|
119
|
+
se as DataGridActionBar,
|
|
120
|
+
Me as DataGridContent,
|
|
121
|
+
Be as DatePicker,
|
|
122
|
+
ve as DateRangePicker,
|
|
123
|
+
Te as DeleteAction,
|
|
124
|
+
Pt as DesktopDatePicker,
|
|
125
|
+
At as DesktopDateRangePicker,
|
|
126
|
+
Lt as DesktopTimePicker,
|
|
127
|
+
ye as Dialog,
|
|
128
|
+
Ee as DialogClose,
|
|
129
|
+
Oe as DialogContent,
|
|
130
|
+
Ve as DialogDescription,
|
|
131
|
+
ze as DialogFooter,
|
|
132
|
+
Ue as DialogHeader,
|
|
133
|
+
je as DialogOverlay,
|
|
134
|
+
qe as DialogPortal,
|
|
135
|
+
Je as DialogTitle,
|
|
136
|
+
Ke as DialogTrigger,
|
|
137
|
+
Qe as Drawer,
|
|
138
|
+
We as DrawerContent,
|
|
139
|
+
Xe as DrawerMain,
|
|
140
|
+
Fe as ExtraActions,
|
|
141
|
+
nr as Form,
|
|
142
|
+
cr as FormCheckbox,
|
|
143
|
+
fr as FormCombobox,
|
|
144
|
+
mr as FormControl,
|
|
145
|
+
gr as FormDatePicker,
|
|
146
|
+
sr as FormDateRangePicker,
|
|
147
|
+
pr as FormDescription,
|
|
148
|
+
lr as FormField,
|
|
149
|
+
Tr as FormInput,
|
|
150
|
+
xr as FormItem,
|
|
151
|
+
Sr as FormLabel,
|
|
152
|
+
dr as FormMessage,
|
|
153
|
+
Pr as FormMultiSelect,
|
|
154
|
+
wr as FormRating,
|
|
155
|
+
Ar as FormSelect,
|
|
156
|
+
Br as FormSwitch,
|
|
157
|
+
vr as FormTextarea,
|
|
158
|
+
Lr as FormTimePicker,
|
|
159
|
+
Pe as FreezeAction,
|
|
160
|
+
yr as IconButton,
|
|
161
|
+
Or as Label,
|
|
162
|
+
wt as MobileDatePicker,
|
|
163
|
+
Bt as MobileDateRangePicker,
|
|
164
|
+
vt as MobileTimePicker,
|
|
165
|
+
zr as Modal,
|
|
166
|
+
Ur as ModalFooter,
|
|
167
|
+
qr as MultiSelect,
|
|
168
|
+
Kr as Popover,
|
|
169
|
+
Nr as PopoverAnchor,
|
|
170
|
+
Qr as PopoverContent,
|
|
171
|
+
Wr as PopoverTrigger,
|
|
172
|
+
ke as PrintAction,
|
|
173
|
+
Yr as Progress,
|
|
174
|
+
_r as RadioGroup,
|
|
175
|
+
$r as RadioGroupItem,
|
|
176
|
+
ro as Rating,
|
|
177
|
+
we as RefreshAction,
|
|
178
|
+
he as SearchAction,
|
|
179
|
+
to as Select,
|
|
180
|
+
ao as SelectContent,
|
|
181
|
+
io as SelectGroup,
|
|
182
|
+
no as SelectItem,
|
|
183
|
+
mo as SelectLabel,
|
|
184
|
+
po as SelectScrollDownButton,
|
|
185
|
+
lo as SelectScrollUpButton,
|
|
186
|
+
xo as SelectSeparator,
|
|
187
|
+
So as SelectTrigger,
|
|
188
|
+
bo as SelectValue,
|
|
189
|
+
uo as Separator,
|
|
190
|
+
Co as Sheet,
|
|
191
|
+
go as SheetClose,
|
|
192
|
+
Do as SheetContent,
|
|
193
|
+
so as SheetDescription,
|
|
194
|
+
Mo as SheetFooter,
|
|
195
|
+
To as SheetHeader,
|
|
196
|
+
Fo as SheetOverlay,
|
|
197
|
+
Po as SheetPortal,
|
|
198
|
+
ko as SheetTitle,
|
|
199
|
+
wo as SheetTrigger,
|
|
200
|
+
Ao as Sidebar,
|
|
201
|
+
Io as SidebarContent,
|
|
202
|
+
Bo as SidebarFooter,
|
|
203
|
+
Go as SidebarGroup,
|
|
204
|
+
vo as SidebarGroupAction,
|
|
205
|
+
Ro as SidebarGroupContent,
|
|
206
|
+
Lo as SidebarGroupLabel,
|
|
207
|
+
Ho as SidebarHeader,
|
|
208
|
+
yo as SidebarInset,
|
|
209
|
+
Eo as SidebarMenu,
|
|
210
|
+
Oo as SidebarMenuAction,
|
|
211
|
+
Vo as SidebarMenuBadge,
|
|
212
|
+
zo as SidebarMenuButton,
|
|
213
|
+
Uo as SidebarMenuItem,
|
|
214
|
+
jo as SidebarMenuSkeleton,
|
|
215
|
+
qo as SidebarMenuSub,
|
|
216
|
+
Jo as SidebarMenuSubButton,
|
|
217
|
+
Ko as SidebarMenuSubItem,
|
|
218
|
+
No as SidebarProvider,
|
|
219
|
+
Qo as SidebarRail,
|
|
220
|
+
Wo as SidebarSeparator,
|
|
221
|
+
Xo as SidebarTrigger,
|
|
222
|
+
_o as Skeleton,
|
|
223
|
+
Ze as SwipableDrawer,
|
|
224
|
+
_e as SwipableDrawerClose,
|
|
225
|
+
$e as SwipableDrawerContent,
|
|
226
|
+
er as SwipableDrawerDescription,
|
|
227
|
+
rr as SwipableDrawerFooter,
|
|
228
|
+
or as SwipableDrawerHeader,
|
|
229
|
+
tr as SwipableDrawerTitle,
|
|
230
|
+
ar as SwipableDrawerTrigger,
|
|
231
|
+
et as Switch,
|
|
232
|
+
ot as Tabs,
|
|
233
|
+
tt as TabsContent,
|
|
234
|
+
at as TabsList,
|
|
235
|
+
it as TabsTrigger,
|
|
236
|
+
mt as TextField,
|
|
237
|
+
lt as Textarea,
|
|
238
|
+
Le as TimePicker,
|
|
239
|
+
St as Toast,
|
|
240
|
+
ut as Tooltip,
|
|
241
|
+
ft as TooltipContent,
|
|
242
|
+
Ct as TooltipProvider,
|
|
243
|
+
gt as TooltipTrigger,
|
|
244
|
+
F as buttonVariants,
|
|
245
|
+
Tt as cn,
|
|
246
|
+
bt as toast,
|
|
247
|
+
re as useConfirm,
|
|
248
|
+
Ae as useDataGrid,
|
|
249
|
+
st as useIsMobile,
|
|
250
|
+
Yo as useSidebar
|
|
220
251
|
};
|
|
221
252
|
//# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import * as f from "react";
|
|
3
|
+
import * as r from "@radix-ui/react-progress";
|
|
4
|
+
import { cn as s } from "./utils.es.js";
|
|
5
|
+
import { tv as g } from "tailwind-variants";
|
|
6
|
+
const i = g({
|
|
7
|
+
base: "",
|
|
8
|
+
variants: {
|
|
9
|
+
variant: {
|
|
10
|
+
primary: "bg-primary",
|
|
11
|
+
info: "bg-info",
|
|
12
|
+
success: "bg-success",
|
|
13
|
+
warning: "bg-warning",
|
|
14
|
+
danger: "bg-danger"
|
|
15
|
+
},
|
|
16
|
+
size: {
|
|
17
|
+
sm: "h-[3px]",
|
|
18
|
+
md: "h-[4px]",
|
|
19
|
+
lg: "h-[5px]"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
defaultVariants: {
|
|
23
|
+
variant: "primary",
|
|
24
|
+
size: "md"
|
|
25
|
+
}
|
|
26
|
+
}), p = f.forwardRef(
|
|
27
|
+
({ className: o, value: e, variant: t, size: n, ...m }, l) => /* @__PURE__ */ a(r.Root, { ref: l, className: s(i({ size: n }), "relative w-full overflow-hidden bg-gray-300", o), ...m, children: /* @__PURE__ */ a(
|
|
28
|
+
r.Indicator,
|
|
29
|
+
{
|
|
30
|
+
className: s("h-full w-full flex-1 transition-all", i({ variant: t })),
|
|
31
|
+
style: { transform: `translateX(-${100 - (e || 0)}%)` }
|
|
32
|
+
}
|
|
33
|
+
) })
|
|
34
|
+
);
|
|
35
|
+
p.displayName = r.Root.displayName;
|
|
36
|
+
export {
|
|
37
|
+
p as Progress
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=progress.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.es.js","sources":["../src/components/progress/Progress.tsx"],"sourcesContent":["\"use client\";\r\n\r\nimport * as React from \"react\";\r\nimport * as ProgressPrimitive from \"@radix-ui/react-progress\";\r\nimport { cn } from \"../../lib/utils\";\r\nimport { tv, VariantProps } from \"tailwind-variants\";\r\n\r\nconst progressVariants = tv({\r\n base: \"\",\r\n variants: {\r\n variant: {\r\n primary: \"bg-primary\",\r\n info: \"bg-info\",\r\n success: \"bg-success\",\r\n warning: \"bg-warning\",\r\n danger: \"bg-danger\",\r\n },\r\n size: {\r\n sm: \"h-[3px]\",\r\n md: \"h-[4px]\",\r\n lg: \"h-[5px]\",\r\n },\r\n },\r\n defaultVariants: {\r\n variant: \"primary\",\r\n size: \"md\",\r\n },\r\n});\r\n\r\ntype ProgressProps = React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root> & {\r\n variant?: VariantProps<typeof progressVariants>[\"variant\"];\r\n size?: VariantProps<typeof progressVariants>[\"size\"];\r\n};\r\n\r\nconst Progress = React.forwardRef<React.ElementRef<typeof ProgressPrimitive.Root>, ProgressProps>(\r\n ({ className, value, variant, size, ...props }, ref) => (\r\n <ProgressPrimitive.Root ref={ref} className={cn(progressVariants({ size }), \"relative w-full overflow-hidden bg-gray-300\", className)} {...props}>\r\n <ProgressPrimitive.Indicator\r\n className={cn(\"h-full w-full flex-1 transition-all\", progressVariants({ variant }))}\r\n style={{ transform: `translateX(-${100 - (value || 0)}%)` }}\r\n />\r\n </ProgressPrimitive.Root>\r\n ),\r\n);\r\nProgress.displayName = ProgressPrimitive.Root.displayName;\r\n\r\nexport { Progress, type ProgressProps };\r\n"],"names":["progressVariants","tv","Progress","React","className","value","variant","size","props","ref","jsx","ProgressPrimitive","cn"],"mappings":";;;;;AAOA,MAAMA,IAAmBC,EAAG;AAAA,EAC1B,MAAM;AAAA,EACN,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAAS;AAAA,MACT,MAAM;AAAA,MACN,SAAS;AAAA,MACT,SAAS;AAAA,MACT,QAAQ;AAAA,IACV;AAAA,IACA,MAAM;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IAAA;AAAA,EAER;AAAA,EACA,iBAAiB;AAAA,IACf,SAAS;AAAA,IACT,MAAM;AAAA,EAAA;AAEV,CAAC,GAOKC,IAAWC,EAAM;AAAA,EACrB,CAAC,EAAE,WAAAC,GAAW,OAAAC,GAAO,SAAAC,GAAS,MAAAC,GAAM,GAAGC,EAAM,GAAGC,MAC9C,gBAAAC,EAACC,EAAkB,MAAlB,EAAuB,KAAAF,GAAU,WAAWG,EAAGZ,EAAiB,EAAE,MAAAO,EAAM,CAAA,GAAG,+CAA+CH,CAAS,GAAI,GAAGI,GACzI,UAAA,gBAAAE;AAAA,IAACC,EAAkB;AAAA,IAAlB;AAAA,MACC,WAAWC,EAAG,uCAAuCZ,EAAiB,EAAE,SAAAM,EAAS,CAAA,CAAC;AAAA,MAClF,OAAO,EAAE,WAAW,eAAe,OAAOD,KAAS,EAAE,KAAK;AAAA,IAAA;AAAA,EAAA,EAE9D,CAAA;AAEJ;AACAH,EAAS,cAAcS,EAAkB,KAAK;"}
|