@cryptlex/web-components 1.3.4 → 1.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/components/data-table/column-picker.es.js +12 -11
- package/dist/components/data-table/column-picker.es.js.map +1 -1
- package/dist/components/data-table/data-table.es.js +34 -31
- package/dist/components/data-table/data-table.es.js.map +1 -1
- package/dist/components/data-table/table-actions.es.js +8 -8
- package/dist/components/data-table/table-actions.es.js.map +1 -1
- package/dist/components/data-table/table-content.es.js +21 -17
- package/dist/components/data-table/table-content.es.js.map +1 -1
- package/dist/components/key-value-card/key-value-card.es.js +85 -0
- package/dist/components/key-value-card/key-value-card.es.js.map +1 -0
- package/dist/components/sidebar/app-layout.es.js +12 -22
- package/dist/components/sidebar/app-layout.es.js.map +1 -1
- package/dist/components/sidebar/nav-main.es.js +44 -42
- package/dist/components/sidebar/nav-main.es.js.map +1 -1
- package/dist/components/static-data-table/data-table.es.js +6 -6
- package/dist/components/static-data-table/data-table.es.js.map +1 -1
- package/dist/components/ui/button.es.js +10 -9
- package/dist/components/ui/button.es.js.map +1 -1
- package/dist/components/ui/chart.es.js +9 -9
- package/dist/components/ui/copy-button.es.js +72 -0
- package/dist/components/ui/copy-button.es.js.map +1 -0
- package/dist/components/ui/drawer.es.js +18 -21
- package/dist/components/ui/drawer.es.js.map +1 -1
- package/dist/components/ui/link-button.es.js +22 -0
- package/dist/components/ui/link-button.es.js.map +1 -0
- package/dist/components/ui/mutli-select.es.js +20 -18
- package/dist/components/ui/mutli-select.es.js.map +1 -1
- package/dist/components/ui/pagination.es.js +20 -20
- package/dist/components/ui/select.es.js +13 -13
- package/dist/components/ui/select.es.js.map +1 -1
- package/dist/components/ui/table.es.js +19 -19
- package/dist/components/ui/table.es.js.map +1 -1
- package/dist/index.es.d.ts +43 -15
- package/dist/index.es.js +225 -221
- package/dist/index.es.js.map +1 -1
- package/dist/utils/index.es.js +19 -14
- package/dist/utils/index.es.js.map +1 -1
- package/package.json +4 -3
- package/tailwind.preset.ts +55 -47
- package/dist/components/info-card/info-card.es.js +0 -71
- package/dist/components/info-card/info-card.es.js.map +0 -1
package/dist/index.es.js
CHANGED
|
@@ -1,60 +1,62 @@
|
|
|
1
1
|
import { Accordion as t, AccordionContent as a, AccordionItem as n, AccordionTrigger as i } from "./components/ui/accordion.es.js";
|
|
2
2
|
import { Avatar as m, AvatarFallback as l, AvatarImage as d } from "./components/ui/avatar.es.js";
|
|
3
3
|
import { Badge as S, badgeVariants as g } from "./components/ui/badge.es.js";
|
|
4
|
-
import { Breadcrumb as b, BreadcrumbEllipsis as C, BreadcrumbItem as D, BreadcrumbLink as x, BreadcrumbList as
|
|
4
|
+
import { Breadcrumb as b, BreadcrumbEllipsis as C, BreadcrumbItem as D, BreadcrumbLink as x, BreadcrumbList as f, BreadcrumbPage as c, BreadcrumbSeparator as s } from "./components/ui/breadcrumb.es.js";
|
|
5
5
|
import { Button as I, buttonVariants as P } from "./components/ui/button.es.js";
|
|
6
6
|
import { Calendar as F } from "./components/ui/calendar.es.js";
|
|
7
7
|
import { Card as E, CardContent as R, CardDescription as v, CardFooter as h, CardHeader as A, CardTitle as O } from "./components/ui/card.es.js";
|
|
8
|
-
import { ChartContainer as
|
|
8
|
+
import { ChartContainer as N, ChartLegend as _, ChartLegendContent as y, ChartStyle as G, ChartTooltip as k, ChartTooltipContent as H } from "./components/ui/chart.es.js";
|
|
9
9
|
import { Checkbox as V } from "./components/ui/checkbox.es.js";
|
|
10
|
-
import { Collapsible as
|
|
10
|
+
import { Collapsible as K, CollapsibleContent as z, CollapsibleTrigger as X } from "./components/ui/collapsible.es.js";
|
|
11
11
|
import { Command as q, CommandDialog as J, CommandEmpty as Q, CommandGroup as W, CommandInput as Z, CommandItem as $, CommandList as ee, CommandSeparator as oe, CommandShortcut as re } from "./components/ui/command.es.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
12
|
+
import { CopyButton as ae } from "./components/ui/copy-button.es.js";
|
|
13
|
+
import { Dialog as ie, DialogClose as pe, DialogContent as me, DialogDescription as le, DialogFooter as de, DialogHeader as ue, DialogOverlay as Se, DialogPortal as ge, DialogTitle as Te, DialogTrigger as be } from "./components/ui/dialog.es.js";
|
|
14
|
+
import { Drawer as De, DrawerClose as xe, DrawerContent as fe, DrawerDescription as ce, DrawerFooter as se, DrawerHeader as Me, DrawerOverlay as Ie, DrawerPortal as Pe, DrawerTitle as Le, DrawerTrigger as Fe } from "./components/ui/drawer.es.js";
|
|
15
|
+
import { DropdownMenu as Ee, DropdownMenuCheckboxItem as Re, DropdownMenuContent as ve, DropdownMenuGroup as he, DropdownMenuItem as Ae, DropdownMenuLabel as Oe, DropdownMenuPortal as Be, DropdownMenuRadioGroup as Ne, DropdownMenuRadioItem as _e, DropdownMenuSeparator as ye, DropdownMenuShortcut as Ge, DropdownMenuSub as ke, DropdownMenuSubContent as He, DropdownMenuSubTrigger as Ue, DropdownMenuTrigger as Ve } from "./components/ui/dropdown-menu.es.js";
|
|
16
|
+
import { Form as Ke, FormControl as ze, FormDescription as Xe, FormField as je, FormItem as qe, FormLabel as Je, FormMessage as Qe, useFormField as We } from "./components/ui/form.es.js";
|
|
17
|
+
import { Input as $e } from "./components/ui/input.es.js";
|
|
18
|
+
import { InputOTP as oo, InputOTPGroup as ro, InputOTPSeparator as to, InputOTPSlot as ao } from "./components/ui/input-otp.es.js";
|
|
19
|
+
import { Label as io } from "./components/ui/label.es.js";
|
|
20
|
+
import { LinkButton as mo } from "./components/ui/link-button.es.js";
|
|
21
|
+
import { Loader as uo } from "./components/ui/loader.es.js";
|
|
20
22
|
import "./components/ui/mutli-select.es.js";
|
|
21
|
-
import { NavigationMenu as
|
|
22
|
-
import { Pagination as
|
|
23
|
-
import { PasswordInput as
|
|
24
|
-
import { Popover as
|
|
25
|
-
import { RadioGroup as
|
|
26
|
-
import { SearchInput as
|
|
27
|
-
import { Select as
|
|
28
|
-
import { Separator as
|
|
29
|
-
import { Sheet as
|
|
30
|
-
import { Sidebar as
|
|
31
|
-
import { Skeleton as
|
|
32
|
-
import { Toaster as
|
|
33
|
-
import { Table as
|
|
34
|
-
import { Tabs as
|
|
35
|
-
import { Tooltip as
|
|
36
|
-
import { TablePageLayout as
|
|
37
|
-
import { useIsMobile as
|
|
38
|
-
import { cn as
|
|
39
|
-
import { DataTable as
|
|
40
|
-
import { CHECK_BOX as
|
|
41
|
-
import { COMPARISON_OPERATOR_LABELS as
|
|
42
|
-
import { createTableFetchFn as
|
|
43
|
-
import { FormatDate as
|
|
44
|
-
import { getLinkDisplay as
|
|
45
|
-
import { convertCamelCaseToTitleCase as
|
|
46
|
-
import { DYNAMIC_INPUT_TARGET as
|
|
47
|
-
import {
|
|
48
|
-
import { AppLayout as
|
|
49
|
-
import { NavMain as
|
|
50
|
-
import { SideBar as
|
|
51
|
-
import { StaticDataTable as
|
|
23
|
+
import { NavigationMenu as go, NavigationMenuContent as To, NavigationMenuIndicator as bo, NavigationMenuItem as Co, NavigationMenuLink as Do, NavigationMenuList as xo, NavigationMenuListItem as fo, NavigationMenuTrigger as co, NavigationMenuViewport as so, navigationMenuTriggerStyle as Mo } from "./components/ui/navigation-menu.es.js";
|
|
24
|
+
import { Pagination as Po, PaginationContent as Lo, PaginationEllipsis as Fo, PaginationItem as wo, PaginationLink as Eo, PaginationNext as Ro, PaginationPrevious as vo } from "./components/ui/pagination.es.js";
|
|
25
|
+
import { PasswordInput as Ao } from "./components/ui/password-input.es.js";
|
|
26
|
+
import { Popover as Bo, PopoverAnchor as No, PopoverContent as _o, PopoverTrigger as yo } from "./components/ui/popover.es.js";
|
|
27
|
+
import { RadioGroup as ko, RadioGroupItem as Ho } from "./components/ui/radio-group.es.js";
|
|
28
|
+
import { SearchInput as Vo } from "./components/ui/search-input.es.js";
|
|
29
|
+
import { Select as Ko, SelectContent as zo, SelectGroup as Xo, SelectItem as jo, SelectLabel as qo, SelectScrollDownButton as Jo, SelectScrollUpButton as Qo, SelectSeparator as Wo, SelectTrigger as Zo, SelectValue as $o } from "./components/ui/select.es.js";
|
|
30
|
+
import { Separator as or } from "./components/ui/separator.es.js";
|
|
31
|
+
import { Sheet as tr, SheetClose as ar, SheetContent as nr, SheetDescription as ir, SheetFooter as pr, SheetHeader as mr, SheetOverlay as lr, SheetPortal as dr, SheetTitle as ur, SheetTrigger as Sr } from "./components/ui/sheet.es.js";
|
|
32
|
+
import { Sidebar as Tr, SidebarContent as br, SidebarFooter as Cr, SidebarGroup as Dr, SidebarGroupAction as xr, SidebarGroupContent as fr, SidebarGroupLabel as cr, SidebarHeader as sr, SidebarInput as Mr, SidebarInset as Ir, SidebarMenu as Pr, SidebarMenuAction as Lr, SidebarMenuBadge as Fr, SidebarMenuButton as wr, SidebarMenuItem as Er, SidebarMenuSkeleton as Rr, SidebarMenuSub as vr, SidebarMenuSubButton as hr, SidebarMenuSubItem as Ar, SidebarProvider as Or, SidebarRail as Br, SidebarSeparator as Nr, SidebarTrigger as _r, useSidebar as yr } from "./components/ui/sidebar.es.js";
|
|
33
|
+
import { Skeleton as kr } from "./components/ui/skeleton.es.js";
|
|
34
|
+
import { Toaster as Ur } from "./components/ui/sonner.es.js";
|
|
35
|
+
import { Table as Yr, TableBody as Kr, TableCaption as zr, TableCell as Xr, TableFooter as jr, TableHead as qr, TableHeader as Jr, TableRow as Qr } from "./components/ui/table.es.js";
|
|
36
|
+
import { Tabs as Zr, TabsContent as $r, TabsList as et, TabsTrigger as ot } from "./components/ui/tabs.es.js";
|
|
37
|
+
import { Tooltip as tt, TooltipContent as at, TooltipProvider as nt, TooltipTrigger as it } from "./components/ui/tooltip.es.js";
|
|
38
|
+
import { TablePageLayout as mt } from "./components/ui/table-page-layout.es.js";
|
|
39
|
+
import { useIsMobile as dt } from "./hooks/use-mobile.es.js";
|
|
40
|
+
import { cn as St, getThemeHue as gt, logout as Tt, setThemeHue as bt } from "./utils/index.es.js";
|
|
41
|
+
import { DataTable as Dt } from "./components/data-table/data-table.es.js";
|
|
42
|
+
import { CHECK_BOX as ft, DEFAULT_DATE_COLUMNS as ct, ID_COLUMN as st } from "./components/data-table/table-commons.es.js";
|
|
43
|
+
import { COMPARISON_OPERATOR_LABELS as It, DEFAULT_FILTERABLE_FIELDS as Pt, FILTERABLE_PROPERTY_TYPES as Lt, FILTER_COMPARISON_OPERATORS as Ft, OPERATORS_FOR_FILTER_TYPE as wt, RESOURCE_DEFINITIONS as Et, RESOURCE_NAMES as Rt, getLicenseStatus as vt, getResourceDisplayName as ht, getValidityDisplay as At, getValueFromData as Ot, secondsToDuration as Bt } from "./components/data-table/table-utils/constants.es.js";
|
|
44
|
+
import { createTableFetchFn as _t } from "./components/data-table/table-utils/createTableFetchFn.es.js";
|
|
45
|
+
import { FormatDate as Gt } from "./components/data-table/table-utils/date.es.js";
|
|
46
|
+
import { getLinkDisplay as Ht } from "./components/data-table/table-utils/link-display.es.js";
|
|
47
|
+
import { convertCamelCaseToTitleCase as Vt, convertToTitleCase as Yt, pluralizeTimes as Kt } from "./components/data-table/table-utils/string.es.js";
|
|
48
|
+
import { DYNAMIC_INPUT_TARGET as Xt } from "./components/data-table/table-utils/types.es.js";
|
|
49
|
+
import { KeyValueCard as qt } from "./components/key-value-card/key-value-card.es.js";
|
|
50
|
+
import { AppLayout as Qt } from "./components/sidebar/app-layout.es.js";
|
|
51
|
+
import { NavMain as Zt } from "./components/sidebar/nav-main.es.js";
|
|
52
|
+
import { SideBar as ea } from "./components/sidebar/sidebar.es.js";
|
|
53
|
+
import { StaticDataTable as ra } from "./components/static-data-table/data-table.es.js";
|
|
52
54
|
export {
|
|
53
55
|
t as Accordion,
|
|
54
56
|
a as AccordionContent,
|
|
55
57
|
n as AccordionItem,
|
|
56
58
|
i as AccordionTrigger,
|
|
57
|
-
|
|
59
|
+
Qt as AppLayout,
|
|
58
60
|
m as Avatar,
|
|
59
61
|
l as AvatarFallback,
|
|
60
62
|
d as AvatarImage,
|
|
@@ -63,12 +65,12 @@ export {
|
|
|
63
65
|
C as BreadcrumbEllipsis,
|
|
64
66
|
D as BreadcrumbItem,
|
|
65
67
|
x as BreadcrumbLink,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
+
f as BreadcrumbList,
|
|
69
|
+
c as BreadcrumbPage,
|
|
68
70
|
s as BreadcrumbSeparator,
|
|
69
71
|
I as Button,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
+
ft as CHECK_BOX,
|
|
73
|
+
It as COMPARISON_OPERATOR_LABELS,
|
|
72
74
|
F as Calendar,
|
|
73
75
|
E as Card,
|
|
74
76
|
R as CardContent,
|
|
@@ -76,15 +78,15 @@ export {
|
|
|
76
78
|
h as CardFooter,
|
|
77
79
|
A as CardHeader,
|
|
78
80
|
O as CardTitle,
|
|
79
|
-
|
|
81
|
+
N as ChartContainer,
|
|
80
82
|
_ as ChartLegend,
|
|
81
83
|
y as ChartLegendContent,
|
|
82
84
|
G as ChartStyle,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
+
k as ChartTooltip,
|
|
86
|
+
H as ChartTooltipContent,
|
|
85
87
|
V as Checkbox,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
+
K as Collapsible,
|
|
89
|
+
z as CollapsibleContent,
|
|
88
90
|
X as CollapsibleTrigger,
|
|
89
91
|
q as Command,
|
|
90
92
|
J as CommandDialog,
|
|
@@ -95,176 +97,178 @@ export {
|
|
|
95
97
|
ee as CommandList,
|
|
96
98
|
oe as CommandSeparator,
|
|
97
99
|
re as CommandShortcut,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
be as
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
ce as
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
Fe as
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
Ne as
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
He as
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
ze as
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
io as
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
vo as
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
$o as
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
100
|
+
ae as CopyButton,
|
|
101
|
+
ct as DEFAULT_DATE_COLUMNS,
|
|
102
|
+
Pt as DEFAULT_FILTERABLE_FIELDS,
|
|
103
|
+
Xt as DYNAMIC_INPUT_TARGET,
|
|
104
|
+
Dt as DataTable,
|
|
105
|
+
ie as Dialog,
|
|
106
|
+
pe as DialogClose,
|
|
107
|
+
me as DialogContent,
|
|
108
|
+
le as DialogDescription,
|
|
109
|
+
de as DialogFooter,
|
|
110
|
+
ue as DialogHeader,
|
|
111
|
+
Se as DialogOverlay,
|
|
112
|
+
ge as DialogPortal,
|
|
113
|
+
Te as DialogTitle,
|
|
114
|
+
be as DialogTrigger,
|
|
115
|
+
De as Drawer,
|
|
116
|
+
xe as DrawerClose,
|
|
117
|
+
fe as DrawerContent,
|
|
118
|
+
ce as DrawerDescription,
|
|
119
|
+
se as DrawerFooter,
|
|
120
|
+
Me as DrawerHeader,
|
|
121
|
+
Ie as DrawerOverlay,
|
|
122
|
+
Pe as DrawerPortal,
|
|
123
|
+
Le as DrawerTitle,
|
|
124
|
+
Fe as DrawerTrigger,
|
|
125
|
+
Ee as DropdownMenu,
|
|
126
|
+
Re as DropdownMenuCheckboxItem,
|
|
127
|
+
ve as DropdownMenuContent,
|
|
128
|
+
he as DropdownMenuGroup,
|
|
129
|
+
Ae as DropdownMenuItem,
|
|
130
|
+
Oe as DropdownMenuLabel,
|
|
131
|
+
Be as DropdownMenuPortal,
|
|
132
|
+
Ne as DropdownMenuRadioGroup,
|
|
133
|
+
_e as DropdownMenuRadioItem,
|
|
134
|
+
ye as DropdownMenuSeparator,
|
|
135
|
+
Ge as DropdownMenuShortcut,
|
|
136
|
+
ke as DropdownMenuSub,
|
|
137
|
+
He as DropdownMenuSubContent,
|
|
138
|
+
Ue as DropdownMenuSubTrigger,
|
|
139
|
+
Ve as DropdownMenuTrigger,
|
|
140
|
+
Lt as FILTERABLE_PROPERTY_TYPES,
|
|
141
|
+
Ft as FILTER_COMPARISON_OPERATORS,
|
|
142
|
+
Ke as Form,
|
|
143
|
+
ze as FormControl,
|
|
144
|
+
Xe as FormDescription,
|
|
145
|
+
je as FormField,
|
|
146
|
+
qe as FormItem,
|
|
147
|
+
Je as FormLabel,
|
|
148
|
+
Qe as FormMessage,
|
|
149
|
+
Gt as FormatDate,
|
|
150
|
+
st as ID_COLUMN,
|
|
151
|
+
$e as Input,
|
|
152
|
+
oo as InputOTP,
|
|
153
|
+
ro as InputOTPGroup,
|
|
154
|
+
to as InputOTPSeparator,
|
|
155
|
+
ao as InputOTPSlot,
|
|
156
|
+
qt as KeyValueCard,
|
|
157
|
+
io as Label,
|
|
158
|
+
mo as LinkButton,
|
|
159
|
+
uo as Loader,
|
|
160
|
+
Zt as NavMain,
|
|
161
|
+
go as NavigationMenu,
|
|
162
|
+
To as NavigationMenuContent,
|
|
163
|
+
bo as NavigationMenuIndicator,
|
|
164
|
+
Co as NavigationMenuItem,
|
|
165
|
+
Do as NavigationMenuLink,
|
|
166
|
+
xo as NavigationMenuList,
|
|
167
|
+
fo as NavigationMenuListItem,
|
|
168
|
+
co as NavigationMenuTrigger,
|
|
169
|
+
so as NavigationMenuViewport,
|
|
170
|
+
wt as OPERATORS_FOR_FILTER_TYPE,
|
|
171
|
+
Po as Pagination,
|
|
172
|
+
Lo as PaginationContent,
|
|
173
|
+
Fo as PaginationEllipsis,
|
|
174
|
+
wo as PaginationItem,
|
|
175
|
+
Eo as PaginationLink,
|
|
176
|
+
Ro as PaginationNext,
|
|
177
|
+
vo as PaginationPrevious,
|
|
178
|
+
Ao as PasswordInput,
|
|
179
|
+
Bo as Popover,
|
|
180
|
+
No as PopoverAnchor,
|
|
181
|
+
_o as PopoverContent,
|
|
182
|
+
yo as PopoverTrigger,
|
|
183
|
+
Et as RESOURCE_DEFINITIONS,
|
|
184
|
+
Rt as RESOURCE_NAMES,
|
|
185
|
+
ko as RadioGroup,
|
|
186
|
+
Ho as RadioGroupItem,
|
|
187
|
+
Vo as SearchInput,
|
|
188
|
+
Ko as Select,
|
|
189
|
+
zo as SelectContent,
|
|
190
|
+
Xo as SelectGroup,
|
|
191
|
+
jo as SelectItem,
|
|
192
|
+
qo as SelectLabel,
|
|
193
|
+
Jo as SelectScrollDownButton,
|
|
194
|
+
Qo as SelectScrollUpButton,
|
|
195
|
+
Wo as SelectSeparator,
|
|
196
|
+
Zo as SelectTrigger,
|
|
197
|
+
$o as SelectValue,
|
|
198
|
+
or as Separator,
|
|
199
|
+
tr as Sheet,
|
|
200
|
+
ar as SheetClose,
|
|
201
|
+
nr as SheetContent,
|
|
202
|
+
ir as SheetDescription,
|
|
203
|
+
pr as SheetFooter,
|
|
204
|
+
mr as SheetHeader,
|
|
205
|
+
lr as SheetOverlay,
|
|
206
|
+
dr as SheetPortal,
|
|
207
|
+
ur as SheetTitle,
|
|
208
|
+
Sr as SheetTrigger,
|
|
209
|
+
ea as SideBar,
|
|
210
|
+
Tr as Sidebar,
|
|
211
|
+
br as SidebarContent,
|
|
212
|
+
Cr as SidebarFooter,
|
|
213
|
+
Dr as SidebarGroup,
|
|
214
|
+
xr as SidebarGroupAction,
|
|
215
|
+
fr as SidebarGroupContent,
|
|
216
|
+
cr as SidebarGroupLabel,
|
|
217
|
+
sr as SidebarHeader,
|
|
218
|
+
Mr as SidebarInput,
|
|
219
|
+
Ir as SidebarInset,
|
|
220
|
+
Pr as SidebarMenu,
|
|
221
|
+
Lr as SidebarMenuAction,
|
|
222
|
+
Fr as SidebarMenuBadge,
|
|
223
|
+
wr as SidebarMenuButton,
|
|
224
|
+
Er as SidebarMenuItem,
|
|
225
|
+
Rr as SidebarMenuSkeleton,
|
|
226
|
+
vr as SidebarMenuSub,
|
|
227
|
+
hr as SidebarMenuSubButton,
|
|
228
|
+
Ar as SidebarMenuSubItem,
|
|
229
|
+
Or as SidebarProvider,
|
|
230
|
+
Br as SidebarRail,
|
|
231
|
+
Nr as SidebarSeparator,
|
|
232
|
+
_r as SidebarTrigger,
|
|
233
|
+
kr as Skeleton,
|
|
234
|
+
ra as StaticDataTable,
|
|
235
|
+
Yr as Table,
|
|
236
|
+
Kr as TableBody,
|
|
237
|
+
zr as TableCaption,
|
|
238
|
+
Xr as TableCell,
|
|
239
|
+
jr as TableFooter,
|
|
240
|
+
qr as TableHead,
|
|
241
|
+
Jr as TableHeader,
|
|
242
|
+
mt as TablePageLayout,
|
|
243
|
+
Qr as TableRow,
|
|
244
|
+
Zr as Tabs,
|
|
245
|
+
$r as TabsContent,
|
|
246
|
+
et as TabsList,
|
|
247
|
+
ot as TabsTrigger,
|
|
248
|
+
Ur as Toaster,
|
|
249
|
+
tt as Tooltip,
|
|
250
|
+
at as TooltipContent,
|
|
251
|
+
nt as TooltipProvider,
|
|
252
|
+
it as TooltipTrigger,
|
|
249
253
|
g as badgeVariants,
|
|
250
254
|
P as buttonVariants,
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
255
|
+
St as cn,
|
|
256
|
+
Vt as convertCamelCaseToTitleCase,
|
|
257
|
+
Yt as convertToTitleCase,
|
|
258
|
+
_t as createTableFetchFn,
|
|
259
|
+
vt as getLicenseStatus,
|
|
260
|
+
Ht as getLinkDisplay,
|
|
261
|
+
ht as getResourceDisplayName,
|
|
262
|
+
gt as getThemeHue,
|
|
263
|
+
At as getValidityDisplay,
|
|
264
|
+
Ot as getValueFromData,
|
|
265
|
+
Tt as logout,
|
|
266
|
+
Mo as navigationMenuTriggerStyle,
|
|
267
|
+
Kt as pluralizeTimes,
|
|
268
|
+
Bt as secondsToDuration,
|
|
269
|
+
bt as setThemeHue,
|
|
270
|
+
We as useFormField,
|
|
271
|
+
dt as useIsMobile,
|
|
272
|
+
yr as useSidebar
|
|
269
273
|
};
|
|
270
274
|
//# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/utils/index.es.js
CHANGED
|
@@ -1,26 +1,31 @@
|
|
|
1
|
-
import { clsx as
|
|
2
|
-
function
|
|
3
|
-
return
|
|
1
|
+
import { clsx as t } from "clsx";
|
|
2
|
+
function l(...e) {
|
|
3
|
+
return t(e);
|
|
4
4
|
}
|
|
5
|
-
const
|
|
6
|
-
function
|
|
7
|
-
return document.documentElement.style.getPropertyValue(
|
|
5
|
+
const o = "--primary-hue";
|
|
6
|
+
function u() {
|
|
7
|
+
return document.documentElement.style.getPropertyValue(o);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function m(e) {
|
|
10
10
|
document.documentElement.style.setProperty(
|
|
11
|
-
|
|
11
|
+
o,
|
|
12
12
|
// In this case, it must be a number.
|
|
13
13
|
e
|
|
14
14
|
);
|
|
15
15
|
}
|
|
16
16
|
const n = "AT", r = "RT";
|
|
17
|
-
function
|
|
18
|
-
|
|
17
|
+
function i() {
|
|
18
|
+
if (typeof window < "u" && window.localStorage)
|
|
19
|
+
try {
|
|
20
|
+
localStorage.removeItem(r), localStorage.removeItem(n), window.location.replace("/auth/login");
|
|
21
|
+
} catch (e) {
|
|
22
|
+
console.error("Logout failed:", e);
|
|
23
|
+
}
|
|
19
24
|
}
|
|
20
25
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
26
|
+
l as cn,
|
|
27
|
+
u as getThemeHue,
|
|
28
|
+
i as logout,
|
|
29
|
+
m as setThemeHue
|
|
25
30
|
};
|
|
26
31
|
//# sourceMappingURL=index.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../../lib/utils/index.ts"],"sourcesContent":["import { clsx, type ClassValue } from 'clsx';\n\nexport function cn(...inputs: ClassValue[]) {\n return clsx(inputs);\n}\n\nconst PRIMARY_HUE_PROPERTY = '--primary-hue';\n\n/**\n *\n * @returns\n */\nexport function getThemeHue() {\n return document.documentElement.style.getPropertyValue(PRIMARY_HUE_PROPERTY);\n}\n\n/**\n * @param hue the hue value to set in the document style\n */\nexport function setThemeHue(hue: number) {\n document.documentElement.style.setProperty(\n PRIMARY_HUE_PROPERTY,\n // In this case, it must be a number.\n hue as unknown as string,\n );\n}\n\nconst ACCESS_TOKEN = 'AT';\nconst REFRESH_TOKEN = 'RT';\nexport function logout() {\n localStorage.removeItem(REFRESH_TOKEN);\n
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../lib/utils/index.ts"],"sourcesContent":["import { clsx, type ClassValue } from 'clsx';\n\nexport function cn(...inputs: ClassValue[]) {\n return clsx(inputs);\n}\n\nconst PRIMARY_HUE_PROPERTY = '--primary-hue';\n\n/**\n *\n * @returns\n */\nexport function getThemeHue() {\n return document.documentElement.style.getPropertyValue(PRIMARY_HUE_PROPERTY);\n}\n\n/**\n * @param hue the hue value to set in the document style\n */\nexport function setThemeHue(hue: number) {\n document.documentElement.style.setProperty(\n PRIMARY_HUE_PROPERTY,\n // In this case, it must be a number.\n hue as unknown as string,\n );\n}\n\nconst ACCESS_TOKEN = 'AT';\nconst REFRESH_TOKEN = 'RT';\nexport function logout() {\n if (typeof window !== 'undefined' && window.localStorage) {\n try {\n localStorage.removeItem(REFRESH_TOKEN);\n localStorage.removeItem(ACCESS_TOKEN);\n window.location.replace('/auth/login');\n } catch (error) {\n console.error('Logout failed:', error);\n }\n }\n}\n"],"names":["cn","inputs","clsx","PRIMARY_HUE_PROPERTY","getThemeHue","setThemeHue","hue","ACCESS_TOKEN","REFRESH_TOKEN","logout","error"],"mappings":";AAEO,SAASA,KAAMC,GAAsB;AAC1C,SAAOC,EAAKD,CAAM;AACpB;AAEA,MAAME,IAAuB;AAMtB,SAASC,IAAc;AAC5B,SAAO,SAAS,gBAAgB,MAAM,iBAAiBD,CAAoB;AAC7E;AAKO,SAASE,EAAYC,GAAa;AACvC,WAAS,gBAAgB,MAAM;AAAA,IAC7BH;AAAA;AAAA,IAEAG;AAAA,EACF;AACF;AAEA,MAAMC,IAAe,MACfC,IAAgB;AACf,SAASC,IAAS;AACvB,MAAI,OAAO,SAAW,OAAe,OAAO;AACtC,QAAA;AACF,mBAAa,WAAWD,CAAa,GACrC,aAAa,WAAWD,CAAY,GAC7B,OAAA,SAAS,QAAQ,aAAa;AAAA,aAC9BG,GAAO;AACN,cAAA,MAAM,kBAAkBA,CAAK;AAAA,IAAA;AAG3C;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cryptlex/web-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.5",
|
|
4
4
|
"description": "React component library for Cryptlex web applications",
|
|
5
5
|
"author": "Cryptlex",
|
|
6
6
|
"type": "module",
|
|
@@ -62,24 +62,25 @@
|
|
|
62
62
|
"@tanstack/react-router": "^1.87.1",
|
|
63
63
|
"@tanstack/react-table": "^8.20.5",
|
|
64
64
|
"class-variance-authority": "^0.7.0",
|
|
65
|
-
"openapi-fetch": ">=0.13.3",
|
|
66
65
|
"clsx": "^2.1.1",
|
|
67
66
|
"cmdk": "1.0.0",
|
|
68
67
|
"date-fns": "^3.0.0",
|
|
69
68
|
"input-otp": "^1.4.1",
|
|
70
69
|
"lodash-es": "^4.17.21",
|
|
71
70
|
"lucide-react": "^0.453.0",
|
|
71
|
+
"openapi-fetch": ">=0.13.3",
|
|
72
72
|
"react": "^18.3.1",
|
|
73
73
|
"react-day-picker": "8.10.1",
|
|
74
74
|
"react-dom": "^18.3.1",
|
|
75
75
|
"react-hook-form": "^7.53.1",
|
|
76
76
|
"recharts": "^2.13.0",
|
|
77
|
+
"rollup-preserve-directives": "^1.1.3",
|
|
77
78
|
"sonner": "^1.7.0",
|
|
78
79
|
"tailwindcss": "^3.4.14",
|
|
79
80
|
"tailwindcss-animate": "^1.0.7",
|
|
80
81
|
"use-debounce": "^10.0.4",
|
|
81
82
|
"vaul": "^1.1.1",
|
|
82
|
-
"
|
|
83
|
+
"zod": "^3.24.1"
|
|
83
84
|
},
|
|
84
85
|
"dependencies": {
|
|
85
86
|
"@cryptlex/web-api-types": "^1.17.0"
|