@cryptlex/web-components 3.1.2 → 3.2.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/dist/components/ui/sidebar.es.js +196 -253
- package/dist/components/ui/sidebar.es.js.map +1 -1
- package/dist/index.es.d.ts +33 -29
- package/dist/index.es.js +163 -160
- package/dist/index.es.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/theme.css +5 -0
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useIsMobile as o } from "./hooks/use-mobile.es.js";
|
|
2
2
|
import { cn as a, getThemeHue as n, logout as i, setThemeHue as p } from "./utils/index.es.js";
|
|
3
|
-
import { fieldContext as T, formContext as d, useFieldContext as
|
|
3
|
+
import { fieldContext as T, formContext as d, useFieldContext as m } from "./utils/form-context.es.js";
|
|
4
4
|
import { useAppForm as S } from "./utils/form-hook.es.js";
|
|
5
5
|
import { ACTIONS_COLUMN_ID as x, DataTable as f } from "./components/data-table/data-table.es.js";
|
|
6
6
|
import { TABLE_CHECK_BOX_COLUMN as D, TABLE_DEFAULT_DATE_COLUMNS as g, TABLE_ID_COLUMN as s } from "./components/data-table/table-commons.es.js";
|
|
@@ -16,105 +16,106 @@ import { FormField as ee } from "./components/inputs/form-field.es.js";
|
|
|
16
16
|
import { Input as oe, TfInput as te } from "./components/inputs/input.es.js";
|
|
17
17
|
import { InputOTP as ne, InputOTPGroup as ie, InputOTPSeparator as pe, InputOTPSlot as le } from "./components/inputs/input-otp.es.js";
|
|
18
18
|
import { TfLicenseTypeSelect as de } from "./components/inputs/license-type-select.es.js";
|
|
19
|
-
import { MultiSelect as
|
|
19
|
+
import { MultiSelect as ue, TfMultiSelect as Se } from "./components/inputs/multi-select.es.js";
|
|
20
20
|
import { PasswordInput as xe } from "./components/inputs/password-input.es.js";
|
|
21
21
|
import { RadioGroup as Ce, RadioGroupItem as De } from "./components/inputs/radio-group.es.js";
|
|
22
22
|
import { SearchInput as se } from "./components/inputs/search-input.es.js";
|
|
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 {
|
|
23
|
+
import { SingleSelect as Pe, TfSingleSelect as Ie } from "./components/inputs/select.es.js";
|
|
24
|
+
import { Textarea as Ee, TfTextarea as Oe } from "./components/inputs/textarea.es.js";
|
|
25
|
+
import { KeyValueCard as Ae } from "./components/key-value-card/key-value-card.es.js";
|
|
26
|
+
import { Accordion as Re, AccordionContent as we, AccordionItem as Fe, AccordionTrigger as Be } from "./components/ui/accordion.es.js";
|
|
27
|
+
import { Avatar as Ne } from "./components/ui/avatar.es.js";
|
|
28
|
+
import { Badge as ye } from "./components/ui/badge.es.js";
|
|
29
|
+
import { Breadcrumb as Ge, BreadcrumbEllipsis as He, BreadcrumbItem as ke, BreadcrumbLink as Ye, BreadcrumbList as Ve, BreadcrumbPage as Ke, BreadcrumbSeparator as ze } from "./components/ui/breadcrumb.es.js";
|
|
30
|
+
import { Button as je, buttonVariants as qe } from "./components/ui/button.es.js";
|
|
31
|
+
import { Card as Qe, CardContent as We, CardDescription as Ze, CardFooter as $e, CardHeader as er, CardTitle as rr } from "./components/ui/card.es.js";
|
|
32
|
+
import { Collapsible as tr, CollapsibleContent as ar, CollapsibleTrigger as nr } from "./components/ui/collapsible.es.js";
|
|
33
|
+
import { COPY_BUTTON_STATE_TIMEOUT as pr, CopyButton as lr } from "./components/ui/copy-button.es.js";
|
|
34
|
+
import { Dialog as dr, DialogClose as mr, DialogContent as ur, DialogDescription as Sr, DialogFooter as br, DialogHeader as xr, DialogOverlay as fr, DialogPortal as Cr, DialogTitle as Dr, DialogTrigger as gr } from "./components/ui/dialog.es.js";
|
|
35
|
+
import { Drawer as cr, DrawerClose as Pr, DrawerContent as Ir, DrawerDescription as Mr, DrawerFooter as Er, DrawerHeader as Or, DrawerOverlay as Lr, DrawerPortal as Ar, DrawerTitle as _r, DrawerTrigger as Rr } from "./components/ui/drawer.es.js";
|
|
36
|
+
import { DropdownMenu as Fr, DropdownMenuCheckboxItem as Br, DropdownMenuContent as hr, DropdownMenuGroup as Nr, DropdownMenuItem as vr, DropdownMenuLabel as yr, DropdownMenuPortal as Ur, DropdownMenuRadioGroup as Gr, DropdownMenuRadioItem as Hr, DropdownMenuSub as kr, DropdownMenuSubContent as Yr, DropdownMenuSubTrigger as Vr, DropdownMenuTrigger as Kr } from "./components/ui/dropdown-menu.es.js";
|
|
37
|
+
import { Label as Xr } from "./components/ui/label.es.js";
|
|
38
|
+
import { Loader as qr } from "./components/ui/loader.es.js";
|
|
39
|
+
import { Pagination as Qr, PaginationContent as Wr, PaginationEllipsis as Zr, PaginationItem as $r, PaginationLink as eo, PaginationNext as ro, PaginationPrevious as oo } from "./components/ui/pagination.es.js";
|
|
40
|
+
import { Popover as ao, PopoverAnchor as no, PopoverContent as io, PopoverTrigger as po } from "./components/ui/popover.es.js";
|
|
41
|
+
import { Separator as To } from "./components/ui/separator.es.js";
|
|
42
|
+
import { Sheet as uo, SheetClose as So, SheetContent as bo, SheetDescription as xo, SheetFooter as fo, SheetHeader as Co, SheetOverlay as Do, SheetPortal as go, SheetTitle as so, SheetTrigger as co } from "./components/ui/sheet.es.js";
|
|
43
|
+
import { Sidebar as Io, SidebarContent as Mo, SidebarContext as Eo, SidebarFooter as Oo, SidebarGroup as Lo, SidebarGroupAction as Ao, SidebarGroupContent as _o, SidebarGroupLabel as Ro, SidebarHeader as wo, SidebarInset as Fo, SidebarMenu as Bo, SidebarMenuAction as ho, SidebarMenuBadge as No, SidebarMenuButton as vo, SidebarMenuItem as yo, SidebarMenuSkeleton as Uo, SidebarMenuSub as Go, SidebarMenuSubButton as Ho, SidebarMenuSubItem as ko, SidebarProvider as Yo, SidebarRail as Vo, SidebarTrigger as Ko, useSidebar as zo } from "./components/ui/sidebar.es.js";
|
|
44
|
+
import { Skeleton as jo } from "./components/ui/skeleton.es.js";
|
|
45
|
+
import { Toaster as Jo } from "./components/ui/sonner.es.js";
|
|
46
|
+
import { StaticDataTable as Wo } from "./components/ui/static-data-table.es.js";
|
|
47
|
+
import { Table as $o, TableBody as et, TableCaption as rt, TableCell as ot, TableFooter as tt, TableHead as at, TableHeader as nt, TableRow as it } from "./components/ui/table.es.js";
|
|
48
|
+
import { TablePageLayout as lt } from "./components/ui/table-page-layout.es.js";
|
|
49
|
+
import { Tabs as dt, TabsContent as mt, TabsList as ut, TabsTrigger as St } from "./components/ui/tabs.es.js";
|
|
50
|
+
import { Tooltip as xt, TooltipContent as ft, TooltipProvider as Ct, TooltipTrigger as Dt } from "./components/ui/tooltip.es.js";
|
|
50
51
|
export {
|
|
51
52
|
x as ACTIONS_COLUMN_ID,
|
|
52
53
|
P as ALL_OS,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
54
|
+
Re as Accordion,
|
|
55
|
+
we as AccordionContent,
|
|
56
|
+
Fe as AccordionItem,
|
|
57
|
+
Be as AccordionTrigger,
|
|
58
|
+
Ne as Avatar,
|
|
59
|
+
ye as Badge,
|
|
60
|
+
Ge as Breadcrumb,
|
|
61
|
+
He as BreadcrumbEllipsis,
|
|
62
|
+
ke as BreadcrumbItem,
|
|
63
|
+
Ye as BreadcrumbLink,
|
|
64
|
+
Ve as BreadcrumbList,
|
|
65
|
+
Ke as BreadcrumbPage,
|
|
66
|
+
ze as BreadcrumbSeparator,
|
|
67
|
+
je as Button,
|
|
67
68
|
I as COMPARISON_OPERATOR_LABELS,
|
|
68
|
-
|
|
69
|
+
pr as COPY_BUTTON_STATE_TIMEOUT,
|
|
69
70
|
X as Calendar,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
71
|
+
Qe as Card,
|
|
72
|
+
We as CardContent,
|
|
73
|
+
Ze as CardDescription,
|
|
74
|
+
$e as CardFooter,
|
|
75
|
+
er as CardHeader,
|
|
76
|
+
rr as CardTitle,
|
|
76
77
|
q as Checkbox,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
tr as Collapsible,
|
|
79
|
+
ar as CollapsibleContent,
|
|
80
|
+
nr as CollapsibleTrigger,
|
|
81
|
+
lr as CopyButton,
|
|
81
82
|
W as CountrySelect,
|
|
82
83
|
M as DEFAULT_FILTERABLE_FIELDS,
|
|
83
84
|
K as DYNAMIC_INPUT_TARGET,
|
|
84
85
|
f as DataTable,
|
|
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
|
-
|
|
86
|
+
dr as Dialog,
|
|
87
|
+
mr as DialogClose,
|
|
88
|
+
ur as DialogContent,
|
|
89
|
+
Sr as DialogDescription,
|
|
90
|
+
br as DialogFooter,
|
|
91
|
+
xr as DialogHeader,
|
|
92
|
+
fr as DialogOverlay,
|
|
93
|
+
Cr as DialogPortal,
|
|
94
|
+
Dr as DialogTitle,
|
|
95
|
+
gr as DialogTrigger,
|
|
96
|
+
cr as Drawer,
|
|
97
|
+
Pr as DrawerClose,
|
|
98
|
+
Ir as DrawerContent,
|
|
99
|
+
Mr as DrawerDescription,
|
|
100
|
+
Er as DrawerFooter,
|
|
101
|
+
Or as DrawerHeader,
|
|
102
|
+
Lr as DrawerOverlay,
|
|
103
|
+
Ar as DrawerPortal,
|
|
104
|
+
_r as DrawerTitle,
|
|
105
|
+
Rr as DrawerTrigger,
|
|
106
|
+
Fr as DropdownMenu,
|
|
107
|
+
Br as DropdownMenuCheckboxItem,
|
|
108
|
+
hr as DropdownMenuContent,
|
|
109
|
+
Nr as DropdownMenuGroup,
|
|
110
|
+
vr as DropdownMenuItem,
|
|
111
|
+
yr as DropdownMenuLabel,
|
|
112
|
+
Ur as DropdownMenuPortal,
|
|
113
|
+
Gr as DropdownMenuRadioGroup,
|
|
114
|
+
Hr as DropdownMenuRadioItem,
|
|
115
|
+
kr as DropdownMenuSub,
|
|
116
|
+
Yr as DropdownMenuSubContent,
|
|
117
|
+
Vr as DropdownMenuSubTrigger,
|
|
118
|
+
Kr as DropdownMenuTrigger,
|
|
118
119
|
E as FILTERABLE_PROPERTY_TYPES,
|
|
119
120
|
O as FILTER_COMPARISON_OPERATORS,
|
|
120
121
|
ee as FormField,
|
|
@@ -124,92 +125,94 @@ export {
|
|
|
124
125
|
ie as InputOTPGroup,
|
|
125
126
|
pe as InputOTPSeparator,
|
|
126
127
|
le as InputOTPSlot,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
Ae as KeyValueCard,
|
|
129
|
+
Xr as Label,
|
|
130
|
+
qr as Loader,
|
|
131
|
+
ue as MultiSelect,
|
|
131
132
|
L as OPERATORS_FOR_FILTER_TYPE,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
133
|
+
Qr as Pagination,
|
|
134
|
+
Wr as PaginationContent,
|
|
135
|
+
Zr as PaginationEllipsis,
|
|
136
|
+
$r as PaginationItem,
|
|
137
|
+
eo as PaginationLink,
|
|
138
|
+
ro as PaginationNext,
|
|
139
|
+
oo as PaginationPrevious,
|
|
139
140
|
xe as PasswordInput,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
ao as Popover,
|
|
142
|
+
no as PopoverAnchor,
|
|
143
|
+
io as PopoverContent,
|
|
144
|
+
po as PopoverTrigger,
|
|
144
145
|
A as RESOURCE_DEFINITIONS,
|
|
145
146
|
_ as RESOURCE_NAMES,
|
|
146
147
|
Ce as RadioGroup,
|
|
147
148
|
De as RadioGroupItem,
|
|
148
149
|
se as SearchInput,
|
|
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
|
-
|
|
150
|
+
To as Separator,
|
|
151
|
+
uo as Sheet,
|
|
152
|
+
So as SheetClose,
|
|
153
|
+
bo as SheetContent,
|
|
154
|
+
xo as SheetDescription,
|
|
155
|
+
fo as SheetFooter,
|
|
156
|
+
Co as SheetHeader,
|
|
157
|
+
Do as SheetOverlay,
|
|
158
|
+
go as SheetPortal,
|
|
159
|
+
so as SheetTitle,
|
|
160
|
+
co as SheetTrigger,
|
|
161
|
+
Io as Sidebar,
|
|
162
|
+
Mo as SidebarContent,
|
|
163
|
+
Eo as SidebarContext,
|
|
164
|
+
Oo as SidebarFooter,
|
|
165
|
+
Lo as SidebarGroup,
|
|
166
|
+
Ao as SidebarGroupAction,
|
|
167
|
+
_o as SidebarGroupContent,
|
|
168
|
+
Ro as SidebarGroupLabel,
|
|
169
|
+
wo as SidebarHeader,
|
|
170
|
+
Fo as SidebarInset,
|
|
171
|
+
Bo as SidebarMenu,
|
|
172
|
+
ho as SidebarMenuAction,
|
|
173
|
+
No as SidebarMenuBadge,
|
|
174
|
+
vo as SidebarMenuButton,
|
|
175
|
+
yo as SidebarMenuItem,
|
|
176
|
+
Uo as SidebarMenuSkeleton,
|
|
177
|
+
Go as SidebarMenuSub,
|
|
178
|
+
Ho as SidebarMenuSubButton,
|
|
179
|
+
ko as SidebarMenuSubItem,
|
|
180
|
+
Yo as SidebarProvider,
|
|
181
|
+
Vo as SidebarRail,
|
|
182
|
+
Ko as SidebarTrigger,
|
|
183
|
+
Pe as SingleSelect,
|
|
184
|
+
jo as Skeleton,
|
|
185
|
+
Wo as StaticDataTable,
|
|
184
186
|
D as TABLE_CHECK_BOX_COLUMN,
|
|
185
187
|
g as TABLE_DEFAULT_DATE_COLUMNS,
|
|
186
188
|
s as TABLE_ID_COLUMN,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
189
|
+
$o as Table,
|
|
190
|
+
et as TableBody,
|
|
191
|
+
rt as TableCaption,
|
|
192
|
+
ot as TableCell,
|
|
193
|
+
tt as TableFooter,
|
|
194
|
+
at as TableHead,
|
|
195
|
+
nt as TableHeader,
|
|
196
|
+
lt as TablePageLayout,
|
|
197
|
+
it as TableRow,
|
|
198
|
+
dt as Tabs,
|
|
199
|
+
mt as TabsContent,
|
|
200
|
+
ut as TabsList,
|
|
201
|
+
St as TabsTrigger,
|
|
202
|
+
Ee as Textarea,
|
|
201
203
|
J as TfCheckbox,
|
|
202
204
|
Z as TfCountrySelect,
|
|
203
205
|
te as TfInput,
|
|
204
206
|
de as TfLicenseTypeSelect,
|
|
205
207
|
Se as TfMultiSelect,
|
|
206
|
-
Ie as
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
208
|
+
Ie as TfSingleSelect,
|
|
209
|
+
Oe as TfTextarea,
|
|
210
|
+
Jo as Toaster,
|
|
211
|
+
xt as Tooltip,
|
|
212
|
+
ft as TooltipContent,
|
|
213
|
+
Ct as TooltipProvider,
|
|
214
|
+
Dt as TooltipTrigger,
|
|
215
|
+
qe as buttonVariants,
|
|
213
216
|
a as cn,
|
|
214
217
|
H as convertCamelCaseToTitleCase,
|
|
215
218
|
k as convertToTitleCase,
|
|
@@ -226,8 +229,8 @@ export {
|
|
|
226
229
|
h as secondsToDuration,
|
|
227
230
|
p as setThemeHue,
|
|
228
231
|
S as useAppForm,
|
|
229
|
-
|
|
232
|
+
m as useFieldContext,
|
|
230
233
|
o as useIsMobile,
|
|
231
|
-
|
|
234
|
+
zo as useSidebar
|
|
232
235
|
};
|
|
233
236
|
//# 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/lib/index.css
CHANGED
package/lib/theme.css
CHANGED
|
@@ -130,6 +130,11 @@
|
|
|
130
130
|
--spacing-input: calc(var(--spacing) * 8);
|
|
131
131
|
--spacing-table: calc(var(--spacing) * 100);
|
|
132
132
|
|
|
133
|
+
/* Header nav */
|
|
134
|
+
--spacing-header: calc(var(--spacing) * 16);
|
|
135
|
+
/* Helper for using sidebar with header */
|
|
136
|
+
--spacing-sidebar: calc(100svh - var(--spacing-header));
|
|
137
|
+
|
|
133
138
|
/* Minimum length for fluid grid containers */
|
|
134
139
|
--fluid-grid-min: var(--container-3xs);
|
|
135
140
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cryptlex/web-components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "React component library for Cryptlex web applications",
|
|
5
5
|
"author": "Cryptlex",
|
|
6
6
|
"type": "module",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"recharts": "2.15.3",
|
|
62
62
|
"sonner": "^1.7.0",
|
|
63
63
|
"tailwindcss": "^4.0.6",
|
|
64
|
-
"
|
|
64
|
+
"tw-animate-css": "1.3.0",
|
|
65
65
|
"vaul": "1.1.2"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|