@cryptlex/web-components 1.3.4 → 1.4.0
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/README.md +6 -3
- 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 +112 -95
- 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 +20 -15
- package/dist/components/data-table/table-content.es.js.map +1 -1
- package/dist/components/data-table/table-filter.es.js +264 -0
- package/dist/components/data-table/table-filter.es.js.map +1 -0
- package/dist/components/data-table/table-utils/constants.es.js +20 -6
- package/dist/components/data-table/table-utils/constants.es.js.map +1 -1
- package/dist/components/data-table/table-utils/link-display.es.js +4 -4
- package/dist/components/data-table/table-utils/link-display.es.js.map +1 -1
- package/dist/components/key-value-card/key-value-card.es.js +87 -0
- package/dist/components/key-value-card/key-value-card.es.js.map +1 -0
- package/dist/components/sidebar/app-layout.es.js +41 -47
- package/dist/components/sidebar/app-layout.es.js.map +1 -1
- package/dist/components/sidebar/breadcrumb.es.js +58 -0
- package/dist/components/sidebar/breadcrumb.es.js.map +1 -0
- package/dist/components/sidebar/nav-main.es.js +65 -51
- package/dist/components/sidebar/nav-main.es.js.map +1 -1
- package/dist/components/static-data-table/data-table.es.js +8 -8
- package/dist/components/static-data-table/data-table.es.js.map +1 -1
- package/dist/components/ui/avatar.es.js +1 -1
- package/dist/components/ui/avatar.es.js.map +1 -1
- package/dist/components/ui/badge.es.js +1 -1
- package/dist/components/ui/badge.es.js.map +1 -1
- package/dist/components/ui/button.es.js +15 -14
- package/dist/components/ui/button.es.js.map +1 -1
- package/dist/components/ui/calendar.es.js +3 -3
- package/dist/components/ui/chart.es.js +16 -16
- package/dist/components/ui/chart.es.js.map +1 -1
- package/dist/components/ui/checkbox.es.js +1 -1
- package/dist/components/ui/checkbox.es.js.map +1 -1
- package/dist/components/ui/command.es.js +28 -28
- package/dist/components/ui/command.es.js.map +1 -1
- package/dist/components/ui/copy-button.es.js +76 -0
- package/dist/components/ui/copy-button.es.js.map +1 -0
- package/dist/components/ui/dialog.es.js +8 -8
- package/dist/components/ui/dialog.es.js.map +1 -1
- package/dist/components/ui/drawer.es.js +18 -21
- package/dist/components/ui/drawer.es.js.map +1 -1
- package/dist/components/ui/dropdown-menu.es.js +38 -38
- package/dist/components/ui/dropdown-menu.es.js.map +1 -1
- package/dist/components/ui/form.es.js +4 -4
- package/dist/components/ui/input-otp.es.js +2 -2
- package/dist/components/ui/input-otp.es.js.map +1 -1
- package/dist/components/ui/input.es.js +7 -7
- package/dist/components/ui/input.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 +17 -15
- package/dist/components/ui/mutli-select.es.js.map +1 -1
- package/dist/components/ui/navigation-menu.es.js +3 -3
- package/dist/components/ui/navigation-menu.es.js.map +1 -1
- package/dist/components/ui/password-input.es.js +10 -10
- package/dist/components/ui/password-input.es.js.map +1 -1
- package/dist/components/ui/popover.es.js +1 -1
- package/dist/components/ui/popover.es.js.map +1 -1
- package/dist/components/ui/radio-group.es.js +7 -7
- package/dist/components/ui/radio-group.es.js.map +1 -1
- package/dist/components/ui/select.es.js +20 -20
- package/dist/components/ui/select.es.js.map +1 -1
- package/dist/components/ui/sheet.es.js +8 -8
- package/dist/components/ui/sheet.es.js.map +1 -1
- package/dist/components/ui/sidebar.es.js +76 -76
- package/dist/components/ui/sidebar.es.js.map +1 -1
- package/dist/components/ui/table-page-layout.es.js +8 -8
- package/dist/components/ui/table-page-layout.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/components/ui/tabs.es.js +11 -11
- package/dist/components/ui/tabs.es.js.map +1 -1
- package/dist/index.es.d.ts +54 -21
- package/dist/index.es.js +231 -226
- 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/lib/index.css +15 -87
- package/lib/tailwind.preset.css +220 -0
- package/lib/tokens.css +54 -54
- package/package.json +9 -8
- package/dist/components/info-card/info-card.es.js +0 -71
- package/dist/components/info-card/info-card.es.js.map +0 -1
- package/tailwind.preset.ts +0 -183
package/dist/index.es.js
CHANGED
|
@@ -1,60 +1,63 @@
|
|
|
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
|
|
5
|
-
import { Button as I, buttonVariants 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
|
+
import { Button as I, buttonVariants as L } from "./components/ui/button.es.js";
|
|
6
6
|
import { Calendar as F } from "./components/ui/calendar.es.js";
|
|
7
|
-
import { Card as E, CardContent as R, CardDescription as v, CardFooter as
|
|
8
|
-
import { ChartContainer as
|
|
7
|
+
import { Card as E, CardContent as R, CardDescription as v, CardFooter as A, CardHeader as O, CardTitle as h } from "./components/ui/card.es.js";
|
|
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 Le, DrawerTitle as Pe, DrawerTrigger as Fe } from "./components/ui/drawer.es.js";
|
|
15
|
+
import { DropdownMenu as Ee, DropdownMenuCheckboxItem as Re, DropdownMenuContent as ve, DropdownMenuGroup as Ae, DropdownMenuItem as Oe, DropdownMenuLabel as he, 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 Lo, PaginationContent as Po, 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 Oo } 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 Lr, SidebarMenuAction as Pr, SidebarMenuBadge as Fr, SidebarMenuButton as wr, SidebarMenuItem as Er, SidebarMenuSkeleton as Rr, SidebarMenuSub as vr, SidebarMenuSubButton as Ar, SidebarMenuSubItem as Or, SidebarProvider as hr, 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 { ALL_OS as It, COMPARISON_OPERATOR_LABELS as Lt, DEFAULT_FILTERABLE_FIELDS as Pt, FILTERABLE_PROPERTY_TYPES as Ft, FILTER_COMPARISON_OPERATORS as wt, OPERATORS_FOR_FILTER_TYPE as Et, RESOURCE_DEFINITIONS as Rt, RESOURCE_NAMES as vt, getLicenseStatus as At, getResourceDisplayName as Ot, getValidityDisplay as ht, getValueFromData as Bt, secondsToDuration as Nt } from "./components/data-table/table-utils/constants.es.js";
|
|
44
|
+
import { createTableFetchFn as yt } from "./components/data-table/table-utils/createTableFetchFn.es.js";
|
|
45
|
+
import { FormatDate as kt } from "./components/data-table/table-utils/date.es.js";
|
|
46
|
+
import { getLinkDisplay as Ut } from "./components/data-table/table-utils/link-display.es.js";
|
|
47
|
+
import { convertCamelCaseToTitleCase as Yt, convertToTitleCase as Kt, pluralizeTimes as zt } from "./components/data-table/table-utils/string.es.js";
|
|
48
|
+
import { DYNAMIC_INPUT_TARGET as jt } from "./components/data-table/table-utils/types.es.js";
|
|
49
|
+
import { KeyValueCard as Jt } from "./components/key-value-card/key-value-card.es.js";
|
|
50
|
+
import { AppLayout as Wt } from "./components/sidebar/app-layout.es.js";
|
|
51
|
+
import { NavMain as $t } from "./components/sidebar/nav-main.es.js";
|
|
52
|
+
import { SideBar as oa } from "./components/sidebar/sidebar.es.js";
|
|
53
|
+
import { StaticDataTable as ta } from "./components/static-data-table/data-table.es.js";
|
|
52
54
|
export {
|
|
55
|
+
It as ALL_OS,
|
|
53
56
|
t as Accordion,
|
|
54
57
|
a as AccordionContent,
|
|
55
58
|
n as AccordionItem,
|
|
56
59
|
i as AccordionTrigger,
|
|
57
|
-
|
|
60
|
+
Wt as AppLayout,
|
|
58
61
|
m as Avatar,
|
|
59
62
|
l as AvatarFallback,
|
|
60
63
|
d as AvatarImage,
|
|
@@ -63,28 +66,28 @@ export {
|
|
|
63
66
|
C as BreadcrumbEllipsis,
|
|
64
67
|
D as BreadcrumbItem,
|
|
65
68
|
x as BreadcrumbLink,
|
|
66
|
-
|
|
67
|
-
|
|
69
|
+
f as BreadcrumbList,
|
|
70
|
+
c as BreadcrumbPage,
|
|
68
71
|
s as BreadcrumbSeparator,
|
|
69
72
|
I as Button,
|
|
70
|
-
|
|
71
|
-
|
|
73
|
+
ft as CHECK_BOX,
|
|
74
|
+
Lt as COMPARISON_OPERATOR_LABELS,
|
|
72
75
|
F as Calendar,
|
|
73
76
|
E as Card,
|
|
74
77
|
R as CardContent,
|
|
75
78
|
v as CardDescription,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
79
|
+
A as CardFooter,
|
|
80
|
+
O as CardHeader,
|
|
81
|
+
h as CardTitle,
|
|
82
|
+
N as ChartContainer,
|
|
80
83
|
_ as ChartLegend,
|
|
81
84
|
y as ChartLegendContent,
|
|
82
85
|
G as ChartStyle,
|
|
83
|
-
|
|
84
|
-
|
|
86
|
+
k as ChartTooltip,
|
|
87
|
+
H as ChartTooltipContent,
|
|
85
88
|
V as Checkbox,
|
|
86
|
-
|
|
87
|
-
|
|
89
|
+
K as Collapsible,
|
|
90
|
+
z as CollapsibleContent,
|
|
88
91
|
X as CollapsibleTrigger,
|
|
89
92
|
q as Command,
|
|
90
93
|
J as CommandDialog,
|
|
@@ -95,176 +98,178 @@ export {
|
|
|
95
98
|
ee as CommandList,
|
|
96
99
|
oe as CommandSeparator,
|
|
97
100
|
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
|
-
Pe as
|
|
122
|
-
Fe as
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
101
|
+
ae as CopyButton,
|
|
102
|
+
ct as DEFAULT_DATE_COLUMNS,
|
|
103
|
+
Pt as DEFAULT_FILTERABLE_FIELDS,
|
|
104
|
+
jt as DYNAMIC_INPUT_TARGET,
|
|
105
|
+
Dt as DataTable,
|
|
106
|
+
ie as Dialog,
|
|
107
|
+
pe as DialogClose,
|
|
108
|
+
me as DialogContent,
|
|
109
|
+
le as DialogDescription,
|
|
110
|
+
de as DialogFooter,
|
|
111
|
+
ue as DialogHeader,
|
|
112
|
+
Se as DialogOverlay,
|
|
113
|
+
ge as DialogPortal,
|
|
114
|
+
Te as DialogTitle,
|
|
115
|
+
be as DialogTrigger,
|
|
116
|
+
De as Drawer,
|
|
117
|
+
xe as DrawerClose,
|
|
118
|
+
fe as DrawerContent,
|
|
119
|
+
ce as DrawerDescription,
|
|
120
|
+
se as DrawerFooter,
|
|
121
|
+
Me as DrawerHeader,
|
|
122
|
+
Ie as DrawerOverlay,
|
|
123
|
+
Le as DrawerPortal,
|
|
124
|
+
Pe as DrawerTitle,
|
|
125
|
+
Fe as DrawerTrigger,
|
|
126
|
+
Ee as DropdownMenu,
|
|
127
|
+
Re as DropdownMenuCheckboxItem,
|
|
128
|
+
ve as DropdownMenuContent,
|
|
129
|
+
Ae as DropdownMenuGroup,
|
|
130
|
+
Oe as DropdownMenuItem,
|
|
127
131
|
he as DropdownMenuLabel,
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
132
|
+
Be as DropdownMenuPortal,
|
|
133
|
+
Ne as DropdownMenuRadioGroup,
|
|
134
|
+
_e as DropdownMenuRadioItem,
|
|
135
|
+
ye as DropdownMenuSeparator,
|
|
136
|
+
Ge as DropdownMenuShortcut,
|
|
137
|
+
ke as DropdownMenuSub,
|
|
138
|
+
He as DropdownMenuSubContent,
|
|
139
|
+
Ue as DropdownMenuSubTrigger,
|
|
140
|
+
Ve as DropdownMenuTrigger,
|
|
141
|
+
Ft as FILTERABLE_PROPERTY_TYPES,
|
|
142
|
+
wt as FILTER_COMPARISON_OPERATORS,
|
|
143
|
+
Ke as Form,
|
|
144
|
+
ze as FormControl,
|
|
145
|
+
Xe as FormDescription,
|
|
146
|
+
je as FormField,
|
|
147
|
+
qe as FormItem,
|
|
148
|
+
Je as FormLabel,
|
|
149
|
+
Qe as FormMessage,
|
|
150
|
+
kt as FormatDate,
|
|
151
|
+
st as ID_COLUMN,
|
|
152
|
+
$e as Input,
|
|
153
|
+
oo as InputOTP,
|
|
154
|
+
ro as InputOTPGroup,
|
|
155
|
+
to as InputOTPSeparator,
|
|
156
|
+
ao as InputOTPSlot,
|
|
157
|
+
Jt as KeyValueCard,
|
|
158
|
+
io as Label,
|
|
159
|
+
mo as LinkButton,
|
|
160
|
+
uo as Loader,
|
|
161
|
+
$t as NavMain,
|
|
162
|
+
go as NavigationMenu,
|
|
163
|
+
To as NavigationMenuContent,
|
|
164
|
+
bo as NavigationMenuIndicator,
|
|
165
|
+
Co as NavigationMenuItem,
|
|
166
|
+
Do as NavigationMenuLink,
|
|
167
|
+
xo as NavigationMenuList,
|
|
168
|
+
fo as NavigationMenuListItem,
|
|
169
|
+
co as NavigationMenuTrigger,
|
|
170
|
+
so as NavigationMenuViewport,
|
|
171
|
+
Et as OPERATORS_FOR_FILTER_TYPE,
|
|
172
|
+
Lo as Pagination,
|
|
173
|
+
Po as PaginationContent,
|
|
174
|
+
Fo as PaginationEllipsis,
|
|
175
|
+
wo as PaginationItem,
|
|
176
|
+
Eo as PaginationLink,
|
|
177
|
+
Ro as PaginationNext,
|
|
178
|
+
vo as PaginationPrevious,
|
|
179
|
+
Oo as PasswordInput,
|
|
180
|
+
Bo as Popover,
|
|
181
|
+
No as PopoverAnchor,
|
|
182
|
+
_o as PopoverContent,
|
|
183
|
+
yo as PopoverTrigger,
|
|
184
|
+
Rt as RESOURCE_DEFINITIONS,
|
|
185
|
+
vt as RESOURCE_NAMES,
|
|
186
|
+
ko as RadioGroup,
|
|
187
|
+
Ho as RadioGroupItem,
|
|
188
|
+
Vo as SearchInput,
|
|
189
|
+
Ko as Select,
|
|
190
|
+
zo as SelectContent,
|
|
191
|
+
Xo as SelectGroup,
|
|
192
|
+
jo as SelectItem,
|
|
193
|
+
qo as SelectLabel,
|
|
194
|
+
Jo as SelectScrollDownButton,
|
|
195
|
+
Qo as SelectScrollUpButton,
|
|
196
|
+
Wo as SelectSeparator,
|
|
197
|
+
Zo as SelectTrigger,
|
|
198
|
+
$o as SelectValue,
|
|
199
|
+
or as Separator,
|
|
200
|
+
tr as Sheet,
|
|
201
|
+
ar as SheetClose,
|
|
202
|
+
nr as SheetContent,
|
|
203
|
+
ir as SheetDescription,
|
|
204
|
+
pr as SheetFooter,
|
|
205
|
+
mr as SheetHeader,
|
|
206
|
+
lr as SheetOverlay,
|
|
207
|
+
dr as SheetPortal,
|
|
208
|
+
ur as SheetTitle,
|
|
209
|
+
Sr as SheetTrigger,
|
|
210
|
+
oa as SideBar,
|
|
211
|
+
Tr as Sidebar,
|
|
212
|
+
br as SidebarContent,
|
|
213
|
+
Cr as SidebarFooter,
|
|
214
|
+
Dr as SidebarGroup,
|
|
215
|
+
xr as SidebarGroupAction,
|
|
216
|
+
fr as SidebarGroupContent,
|
|
217
|
+
cr as SidebarGroupLabel,
|
|
218
|
+
sr as SidebarHeader,
|
|
219
|
+
Mr as SidebarInput,
|
|
220
|
+
Ir as SidebarInset,
|
|
221
|
+
Lr as SidebarMenu,
|
|
222
|
+
Pr as SidebarMenuAction,
|
|
223
|
+
Fr as SidebarMenuBadge,
|
|
224
|
+
wr as SidebarMenuButton,
|
|
225
|
+
Er as SidebarMenuItem,
|
|
226
|
+
Rr as SidebarMenuSkeleton,
|
|
227
|
+
vr as SidebarMenuSub,
|
|
228
|
+
Ar as SidebarMenuSubButton,
|
|
229
|
+
Or as SidebarMenuSubItem,
|
|
230
|
+
hr as SidebarProvider,
|
|
231
|
+
Br as SidebarRail,
|
|
232
|
+
Nr as SidebarSeparator,
|
|
233
|
+
_r as SidebarTrigger,
|
|
234
|
+
kr as Skeleton,
|
|
235
|
+
ta as StaticDataTable,
|
|
236
|
+
Yr as Table,
|
|
237
|
+
Kr as TableBody,
|
|
238
|
+
zr as TableCaption,
|
|
239
|
+
Xr as TableCell,
|
|
240
|
+
jr as TableFooter,
|
|
241
|
+
qr as TableHead,
|
|
242
|
+
Jr as TableHeader,
|
|
243
|
+
mt as TablePageLayout,
|
|
244
|
+
Qr as TableRow,
|
|
245
|
+
Zr as Tabs,
|
|
246
|
+
$r as TabsContent,
|
|
247
|
+
et as TabsList,
|
|
248
|
+
ot as TabsTrigger,
|
|
249
|
+
Ur as Toaster,
|
|
250
|
+
tt as Tooltip,
|
|
251
|
+
at as TooltipContent,
|
|
252
|
+
nt as TooltipProvider,
|
|
253
|
+
it as TooltipTrigger,
|
|
249
254
|
g as badgeVariants,
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
255
|
+
L as buttonVariants,
|
|
256
|
+
St as cn,
|
|
257
|
+
Yt as convertCamelCaseToTitleCase,
|
|
258
|
+
Kt as convertToTitleCase,
|
|
259
|
+
yt as createTableFetchFn,
|
|
260
|
+
At as getLicenseStatus,
|
|
261
|
+
Ut as getLinkDisplay,
|
|
262
|
+
Ot as getResourceDisplayName,
|
|
263
|
+
gt as getThemeHue,
|
|
264
|
+
ht as getValidityDisplay,
|
|
265
|
+
Bt as getValueFromData,
|
|
266
|
+
Tt as logout,
|
|
267
|
+
Mo as navigationMenuTriggerStyle,
|
|
268
|
+
zt as pluralizeTimes,
|
|
269
|
+
Nt as secondsToDuration,
|
|
270
|
+
bt as setThemeHue,
|
|
271
|
+
We as useFormField,
|
|
272
|
+
dt as useIsMobile,
|
|
273
|
+
yr as useSidebar
|
|
269
274
|
};
|
|
270
275
|
//# 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;"}
|