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