@cryptlex/web-components 1.2.2 → 1.3.1

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.
Files changed (55) hide show
  1. package/dist/components/ui/accordion.es.js +8 -8
  2. package/dist/components/ui/accordion.es.js.map +1 -1
  3. package/dist/components/ui/avatar.es.js +43 -0
  4. package/dist/components/ui/avatar.es.js.map +1 -0
  5. package/dist/components/ui/badge.es.js +1 -1
  6. package/dist/components/ui/badge.es.js.map +1 -1
  7. package/dist/components/ui/breadcrumb.es.js +1 -1
  8. package/dist/components/ui/breadcrumb.es.js.map +1 -1
  9. package/dist/components/ui/button.es.js +5 -5
  10. package/dist/components/ui/button.es.js.map +1 -1
  11. package/dist/components/ui/calendar.es.js +3 -3
  12. package/dist/components/ui/calendar.es.js.map +1 -1
  13. package/dist/components/ui/card.es.js +17 -17
  14. package/dist/components/ui/card.es.js.map +1 -1
  15. package/dist/components/ui/chart.es.js +14 -14
  16. package/dist/components/ui/chart.es.js.map +1 -1
  17. package/dist/components/ui/command.es.js +19 -19
  18. package/dist/components/ui/command.es.js.map +1 -1
  19. package/dist/components/ui/dialog.es.js +2 -2
  20. package/dist/components/ui/dialog.es.js.map +1 -1
  21. package/dist/components/ui/drawer.es.js +99 -0
  22. package/dist/components/ui/drawer.es.js.map +1 -0
  23. package/dist/components/ui/dropdown-menu.es.js +59 -59
  24. package/dist/components/ui/dropdown-menu.es.js.map +1 -1
  25. package/dist/components/ui/form.es.js +2 -2
  26. package/dist/components/ui/form.es.js.map +1 -1
  27. package/dist/components/ui/input-otp.es.js +49 -0
  28. package/dist/components/ui/input-otp.es.js.map +1 -0
  29. package/dist/components/ui/input.es.js +7 -7
  30. package/dist/components/ui/input.es.js.map +1 -1
  31. package/dist/components/ui/label.es.js +7 -7
  32. package/dist/components/ui/label.es.js.map +1 -1
  33. package/dist/components/ui/navigation-menu.es.js +2 -2
  34. package/dist/components/ui/navigation-menu.es.js.map +1 -1
  35. package/dist/components/ui/select.es.js +21 -21
  36. package/dist/components/ui/select.es.js.map +1 -1
  37. package/dist/components/ui/sheet.es.js +5 -5
  38. package/dist/components/ui/sheet.es.js.map +1 -1
  39. package/dist/components/ui/sidebar.es.js +85 -85
  40. package/dist/components/ui/sidebar.es.js.map +1 -1
  41. package/dist/components/ui/table.es.js +8 -8
  42. package/dist/components/ui/table.es.js.map +1 -1
  43. package/dist/components/ui/tabs.es.js +47 -0
  44. package/dist/components/ui/tabs.es.js.map +1 -0
  45. package/dist/components/ui/tooltip.es.js +8 -8
  46. package/dist/components/ui/tooltip.es.js.map +1 -1
  47. package/dist/index.es.d.ts +109 -8
  48. package/dist/index.es.js +220 -193
  49. package/dist/index.es.js.map +1 -1
  50. package/dist/utils/index.es.js +17 -5
  51. package/dist/utils/index.es.js.map +1 -1
  52. package/lib/index.css +13 -10
  53. package/lib/tokens.css +14 -14
  54. package/package.json +7 -4
  55. package/tailwind.preset.ts +69 -77
package/dist/index.es.js CHANGED
@@ -1,196 +1,223 @@
1
- import { Badge as r, badgeVariants as t } from "./components/ui/badge.es.js";
2
- import { Breadcrumb as n, BreadcrumbEllipsis as i, BreadcrumbItem as d, BreadcrumbLink as p, BreadcrumbList as l, BreadcrumbPage as m, BreadcrumbSeparator as u } from "./components/ui/breadcrumb.es.js";
3
- import { Button as g, buttonVariants as b } from "./components/ui/button.es.js";
4
- import { Calendar as c } from "./components/ui/calendar.es.js";
5
- import { Card as x, CardContent as f, CardDescription as D, CardFooter as s, CardHeader as T, CardTitle as h } from "./components/ui/card.es.js";
6
- import { ChartContainer as v, ChartLegend as w, ChartLegendContent as P, ChartStyle as B, ChartTooltip as F, ChartTooltipContent as L } from "./components/ui/chart.es.js";
7
- import { Checkbox as N } from "./components/ui/checkbox.es.js";
8
- import { Collapsible as A, CollapsibleContent as y, CollapsibleTrigger as H } from "./components/ui/collapsible.es.js";
9
- import { Command as V, CommandDialog as E, CommandEmpty as O, CommandGroup as U, CommandInput as j, CommandItem as q, CommandList as z, CommandSeparator as J, CommandShortcut as K } from "./components/ui/command.es.js";
10
- import { Dialog as W, DialogClose as X, DialogContent as Y, DialogDescription as Z, DialogFooter as _, DialogHeader as $, DialogOverlay as ee, DialogPortal as oe, DialogTitle as re, DialogTrigger as te } from "./components/ui/dialog.es.js";
11
- import { DropdownMenu as ne, DropdownMenuCheckboxItem as ie, DropdownMenuContent as de, DropdownMenuGroup as pe, DropdownMenuItem as le, DropdownMenuLabel as me, DropdownMenuPortal as ue, DropdownMenuRadioGroup as Se, DropdownMenuRadioItem as ge, DropdownMenuSeparator as be, DropdownMenuShortcut as Ce, DropdownMenuSub as ce, DropdownMenuSubContent as Me, DropdownMenuSubTrigger as xe, DropdownMenuTrigger as fe } from "./components/ui/dropdown-menu.es.js";
12
- import { Form as se, FormControl as Te, FormDescription as he, FormField as Ie, FormItem as ve, FormLabel as we, FormMessage as Pe, useFormField as Be } from "./components/ui/form.es.js";
13
- import { Input as Le } from "./components/ui/input.es.js";
14
- import { Label as Ne } from "./components/ui/label.es.js";
15
- import { Loader as Ae } from "./components/ui/loader.es.js";
16
- import { Pagination as He, PaginationContent as Re, PaginationEllipsis as Ve, PaginationItem as Ee, PaginationLink as Oe, PaginationNext as Ue, PaginationPrevious as je } from "./components/ui/pagination.es.js";
17
- import { PasswordInput as ze } from "./components/ui/password-input.es.js";
18
- import { Popover as Ke, PopoverAnchor as Qe, PopoverContent as We, PopoverTrigger as Xe } from "./components/ui/popover.es.js";
19
- import { RadioGroup as Ze, RadioGroupItem as _e } from "./components/ui/radio-group.es.js";
20
- import { Select as eo, SelectContent as oo, SelectGroup as ro, SelectItem as to, SelectLabel as ao, SelectScrollDownButton as no, SelectScrollUpButton as io, SelectSeparator as po, SelectTrigger as lo, SelectValue as mo } from "./components/ui/select.es.js";
21
- import { Separator as So } from "./components/ui/separator.es.js";
22
- import { Sheet as bo, SheetClose as Co, SheetContent as co, SheetDescription as Mo, SheetFooter as xo, SheetHeader as fo, SheetOverlay as Do, SheetPortal as so, SheetTitle as To, SheetTrigger as ho } from "./components/ui/sheet.es.js";
23
- import { Sidebar as vo, SidebarContent as wo, SidebarFooter as Po, SidebarGroup as Bo, SidebarGroupAction as Fo, SidebarGroupContent as Lo, SidebarGroupLabel as Go, SidebarHeader as No, SidebarInput as ko, SidebarInset as Ao, SidebarMenu as yo, SidebarMenuAction as Ho, SidebarMenuBadge as Ro, SidebarMenuButton as Vo, SidebarMenuItem as Eo, SidebarMenuSkeleton as Oo, SidebarMenuSub as Uo, SidebarMenuSubButton as jo, SidebarMenuSubItem as qo, SidebarProvider as zo, SidebarRail as Jo, SidebarSeparator as Ko, SidebarTrigger as Qo, useSidebar as Wo } from "./components/ui/sidebar.es.js";
24
- import { Skeleton as Yo } from "./components/ui/skeleton.es.js";
25
- import { Table as _o, TableBody as $o, TableCaption as er, TableCell as or, TableFooter as rr, TableHead as tr, TableHeader as ar, TableRow as nr } from "./components/ui/table.es.js";
26
- import { Tooltip as dr, TooltipContent as pr, TooltipProvider as lr, TooltipTrigger as mr } from "./components/ui/tooltip.es.js";
27
- import { Accordion as Sr, AccordionContent as gr, AccordionItem as br, AccordionTrigger as Cr } from "./components/ui/accordion.es.js";
28
- import { NavigationMenu as Mr, NavigationMenuContent as xr, NavigationMenuIndicator as fr, NavigationMenuItem as Dr, NavigationMenuLink as sr, NavigationMenuList as Tr, NavigationMenuListItem as hr, NavigationMenuTrigger as Ir, NavigationMenuViewport as vr, navigationMenuTriggerStyle as wr } from "./components/ui/navigation-menu.es.js";
29
- import { Toaster as Br } from "./components/ui/sonner.es.js";
30
- import { useIsMobile as Lr } from "./hooks/use-mobile.es.js";
31
- import { cn as Nr } from "./utils/index.es.js";
1
+ import { Accordion as r, AccordionContent as t, AccordionItem as a, AccordionTrigger as n } from "./components/ui/accordion.es.js";
2
+ import { Avatar as p, AvatarFallback as d, AvatarImage as l } from "./components/ui/avatar.es.js";
3
+ import { Badge as u, badgeVariants as S } from "./components/ui/badge.es.js";
4
+ import { Breadcrumb as b, BreadcrumbEllipsis as C, BreadcrumbItem as T, BreadcrumbLink as c, BreadcrumbList as D, BreadcrumbPage as s, BreadcrumbSeparator as x } from "./components/ui/breadcrumb.es.js";
5
+ import { Button as f, buttonVariants as w } from "./components/ui/button.es.js";
6
+ import { Calendar as P } from "./components/ui/calendar.es.js";
7
+ import { Card as v, CardContent as F, CardDescription as L, CardFooter as B, CardHeader as G, CardTitle as A } from "./components/ui/card.es.js";
8
+ import { ChartContainer as H, ChartLegend as k, ChartLegendContent as y, ChartStyle as O, ChartTooltip as R, ChartTooltipContent as V } from "./components/ui/chart.es.js";
9
+ import { Checkbox as U } from "./components/ui/checkbox.es.js";
10
+ import { Collapsible as q, CollapsibleContent as z, CollapsibleTrigger as J } from "./components/ui/collapsible.es.js";
11
+ import { Command as Q, CommandDialog as W, CommandEmpty as X, CommandGroup as Y, CommandInput as Z, CommandItem as _, CommandList as $, CommandSeparator as ee, CommandShortcut as oe } from "./components/ui/command.es.js";
12
+ import { Dialog as te, DialogClose as ae, DialogContent as ne, DialogDescription as ie, DialogFooter as pe, DialogHeader as de, DialogOverlay as le, DialogPortal as me, DialogTitle as ue, DialogTrigger as Se } from "./components/ui/dialog.es.js";
13
+ import { Drawer as be, DrawerClose as Ce, DrawerContent as Te, DrawerDescription as ce, DrawerFooter as De, DrawerHeader as se, DrawerOverlay as xe, DrawerPortal as Me, DrawerTitle as fe, DrawerTrigger as we } from "./components/ui/drawer.es.js";
14
+ import { DropdownMenu as Pe, DropdownMenuCheckboxItem as he, DropdownMenuContent as ve, DropdownMenuGroup as Fe, DropdownMenuItem as Le, DropdownMenuLabel as Be, DropdownMenuPortal as Ge, DropdownMenuRadioGroup as Ae, DropdownMenuRadioItem as Ne, DropdownMenuSeparator as He, DropdownMenuShortcut as ke, DropdownMenuSub as ye, DropdownMenuSubContent as Oe, DropdownMenuSubTrigger as Re, DropdownMenuTrigger as Ve } from "./components/ui/dropdown-menu.es.js";
15
+ import { Form as Ue, FormControl as je, FormDescription as qe, FormField as ze, FormItem as Je, FormLabel as Ke, FormMessage as Qe, useFormField as We } from "./components/ui/form.es.js";
16
+ import { Input as Ye } from "./components/ui/input.es.js";
17
+ import { InputOTP as _e, InputOTPGroup as $e, InputOTPSeparator as eo, InputOTPSlot as oo } from "./components/ui/input-otp.es.js";
18
+ import { Label as to } from "./components/ui/label.es.js";
19
+ import { Loader as no } from "./components/ui/loader.es.js";
20
+ import { NavigationMenu as po, NavigationMenuContent as lo, NavigationMenuIndicator as mo, NavigationMenuItem as uo, NavigationMenuLink as So, NavigationMenuList as go, NavigationMenuListItem as bo, NavigationMenuTrigger as Co, NavigationMenuViewport as To, navigationMenuTriggerStyle as co } from "./components/ui/navigation-menu.es.js";
21
+ import { Pagination as so, PaginationContent as xo, PaginationEllipsis as Mo, PaginationItem as fo, PaginationLink as wo, PaginationNext as Io, PaginationPrevious as Po } from "./components/ui/pagination.es.js";
22
+ import { PasswordInput as vo } from "./components/ui/password-input.es.js";
23
+ import { Popover as Lo, PopoverAnchor as Bo, PopoverContent as Go, PopoverTrigger as Ao } from "./components/ui/popover.es.js";
24
+ import { RadioGroup as Ho, RadioGroupItem as ko } from "./components/ui/radio-group.es.js";
25
+ import { Select as Oo, SelectContent as Ro, SelectGroup as Vo, SelectItem as Eo, SelectLabel as Uo, SelectScrollDownButton as jo, SelectScrollUpButton as qo, SelectSeparator as zo, SelectTrigger as Jo, SelectValue as Ko } from "./components/ui/select.es.js";
26
+ import { Separator as Wo } from "./components/ui/separator.es.js";
27
+ import { Sheet as Yo, SheetClose as Zo, SheetContent as _o, SheetDescription as $o, SheetFooter as er, SheetHeader as or, SheetOverlay as rr, SheetPortal as tr, SheetTitle as ar, SheetTrigger as nr } from "./components/ui/sheet.es.js";
28
+ import { Sidebar as pr, SidebarContent as dr, SidebarFooter as lr, SidebarGroup as mr, SidebarGroupAction as ur, SidebarGroupContent as Sr, SidebarGroupLabel as gr, SidebarHeader as br, SidebarInput as Cr, SidebarInset as Tr, SidebarMenu as cr, SidebarMenuAction as Dr, SidebarMenuBadge as sr, SidebarMenuButton as xr, SidebarMenuItem as Mr, SidebarMenuSkeleton as fr, SidebarMenuSub as wr, SidebarMenuSubButton as Ir, SidebarMenuSubItem as Pr, SidebarProvider as hr, SidebarRail as vr, SidebarSeparator as Fr, SidebarTrigger as Lr, useSidebar as Br } from "./components/ui/sidebar.es.js";
29
+ import { Skeleton as Ar } from "./components/ui/skeleton.es.js";
30
+ import { Toaster as Hr } from "./components/ui/sonner.es.js";
31
+ import { Table as yr, TableBody as Or, TableCaption as Rr, TableCell as Vr, TableFooter as Er, TableHead as Ur, TableHeader as jr, TableRow as qr } from "./components/ui/table.es.js";
32
+ import { Tabs as Jr, TabsContent as Kr, TabsList as Qr, TabsTrigger as Wr } from "./components/ui/tabs.es.js";
33
+ import { Tooltip as Yr, TooltipContent as Zr, TooltipProvider as _r, TooltipTrigger as $r } from "./components/ui/tooltip.es.js";
34
+ import { useIsMobile as ot } from "./hooks/use-mobile.es.js";
35
+ import { cn as tt, getThemeHue as at, setThemeHue as nt } from "./utils/index.es.js";
32
36
  export {
33
- Sr as Accordion,
34
- gr as AccordionContent,
35
- br as AccordionItem,
36
- Cr as AccordionTrigger,
37
- r as Badge,
38
- n as Breadcrumb,
39
- i as BreadcrumbEllipsis,
40
- d as BreadcrumbItem,
41
- p as BreadcrumbLink,
42
- l as BreadcrumbList,
43
- m as BreadcrumbPage,
44
- u as BreadcrumbSeparator,
45
- g as Button,
46
- c as Calendar,
47
- x as Card,
48
- f as CardContent,
49
- D as CardDescription,
50
- s as CardFooter,
51
- T as CardHeader,
52
- h as CardTitle,
53
- v as ChartContainer,
54
- w as ChartLegend,
55
- P as ChartLegendContent,
56
- B as ChartStyle,
57
- F as ChartTooltip,
58
- L as ChartTooltipContent,
59
- N as Checkbox,
60
- A as Collapsible,
61
- y as CollapsibleContent,
62
- H as CollapsibleTrigger,
63
- V as Command,
64
- E as CommandDialog,
65
- O as CommandEmpty,
66
- U as CommandGroup,
67
- j as CommandInput,
68
- q as CommandItem,
69
- z as CommandList,
70
- J as CommandSeparator,
71
- K as CommandShortcut,
72
- W as Dialog,
73
- X as DialogClose,
74
- Y as DialogContent,
75
- Z as DialogDescription,
76
- _ as DialogFooter,
77
- $ as DialogHeader,
78
- ee as DialogOverlay,
79
- oe as DialogPortal,
80
- re as DialogTitle,
81
- te as DialogTrigger,
82
- ne as DropdownMenu,
83
- ie as DropdownMenuCheckboxItem,
84
- de as DropdownMenuContent,
85
- pe as DropdownMenuGroup,
86
- le as DropdownMenuItem,
87
- me as DropdownMenuLabel,
88
- ue as DropdownMenuPortal,
89
- Se as DropdownMenuRadioGroup,
90
- ge as DropdownMenuRadioItem,
91
- be as DropdownMenuSeparator,
92
- Ce as DropdownMenuShortcut,
93
- ce as DropdownMenuSub,
94
- Me as DropdownMenuSubContent,
95
- xe as DropdownMenuSubTrigger,
96
- fe as DropdownMenuTrigger,
97
- se as Form,
98
- Te as FormControl,
99
- he as FormDescription,
100
- Ie as FormField,
101
- ve as FormItem,
102
- we as FormLabel,
103
- Pe as FormMessage,
104
- Le as Input,
105
- Ne as Label,
106
- Ae as Loader,
107
- Mr as NavigationMenu,
108
- xr as NavigationMenuContent,
109
- fr as NavigationMenuIndicator,
110
- Dr as NavigationMenuItem,
111
- sr as NavigationMenuLink,
112
- Tr as NavigationMenuList,
113
- hr as NavigationMenuListItem,
114
- Ir as NavigationMenuTrigger,
115
- vr as NavigationMenuViewport,
116
- He as Pagination,
117
- Re as PaginationContent,
118
- Ve as PaginationEllipsis,
119
- Ee as PaginationItem,
120
- Oe as PaginationLink,
121
- Ue as PaginationNext,
122
- je as PaginationPrevious,
123
- ze as PasswordInput,
124
- Ke as Popover,
125
- Qe as PopoverAnchor,
126
- We as PopoverContent,
127
- Xe as PopoverTrigger,
128
- Ze as RadioGroup,
129
- _e as RadioGroupItem,
130
- eo as Select,
131
- oo as SelectContent,
132
- ro as SelectGroup,
133
- to as SelectItem,
134
- ao as SelectLabel,
135
- no as SelectScrollDownButton,
136
- io as SelectScrollUpButton,
137
- po as SelectSeparator,
138
- lo as SelectTrigger,
139
- mo as SelectValue,
140
- So as Separator,
141
- bo as Sheet,
142
- Co as SheetClose,
143
- co as SheetContent,
144
- Mo as SheetDescription,
145
- xo as SheetFooter,
146
- fo as SheetHeader,
147
- Do as SheetOverlay,
148
- so as SheetPortal,
149
- To as SheetTitle,
150
- ho as SheetTrigger,
151
- vo as Sidebar,
152
- wo as SidebarContent,
153
- Po as SidebarFooter,
154
- Bo as SidebarGroup,
155
- Fo as SidebarGroupAction,
156
- Lo as SidebarGroupContent,
157
- Go as SidebarGroupLabel,
158
- No as SidebarHeader,
159
- ko as SidebarInput,
160
- Ao as SidebarInset,
161
- yo as SidebarMenu,
162
- Ho as SidebarMenuAction,
163
- Ro as SidebarMenuBadge,
164
- Vo as SidebarMenuButton,
165
- Eo as SidebarMenuItem,
166
- Oo as SidebarMenuSkeleton,
167
- Uo as SidebarMenuSub,
168
- jo as SidebarMenuSubButton,
169
- qo as SidebarMenuSubItem,
170
- zo as SidebarProvider,
171
- Jo as SidebarRail,
172
- Ko as SidebarSeparator,
173
- Qo as SidebarTrigger,
174
- Yo as Skeleton,
175
- _o as Table,
176
- $o as TableBody,
177
- er as TableCaption,
178
- or as TableCell,
179
- rr as TableFooter,
180
- tr as TableHead,
181
- ar as TableHeader,
182
- nr as TableRow,
183
- Br as Toaster,
184
- dr as Tooltip,
185
- pr as TooltipContent,
186
- lr as TooltipProvider,
187
- mr as TooltipTrigger,
188
- t as badgeVariants,
189
- b as buttonVariants,
190
- Nr as cn,
191
- wr as navigationMenuTriggerStyle,
192
- Be as useFormField,
193
- Lr as useIsMobile,
194
- Wo as useSidebar
37
+ r as Accordion,
38
+ t as AccordionContent,
39
+ a as AccordionItem,
40
+ n as AccordionTrigger,
41
+ p as Avatar,
42
+ d as AvatarFallback,
43
+ l as AvatarImage,
44
+ u as Badge,
45
+ b as Breadcrumb,
46
+ C as BreadcrumbEllipsis,
47
+ T as BreadcrumbItem,
48
+ c as BreadcrumbLink,
49
+ D as BreadcrumbList,
50
+ s as BreadcrumbPage,
51
+ x as BreadcrumbSeparator,
52
+ f as Button,
53
+ P as Calendar,
54
+ v as Card,
55
+ F as CardContent,
56
+ L as CardDescription,
57
+ B as CardFooter,
58
+ G as CardHeader,
59
+ A as CardTitle,
60
+ H as ChartContainer,
61
+ k as ChartLegend,
62
+ y as ChartLegendContent,
63
+ O as ChartStyle,
64
+ R as ChartTooltip,
65
+ V as ChartTooltipContent,
66
+ U as Checkbox,
67
+ q as Collapsible,
68
+ z as CollapsibleContent,
69
+ J as CollapsibleTrigger,
70
+ Q as Command,
71
+ W as CommandDialog,
72
+ X as CommandEmpty,
73
+ Y as CommandGroup,
74
+ Z as CommandInput,
75
+ _ as CommandItem,
76
+ $ as CommandList,
77
+ ee as CommandSeparator,
78
+ oe as CommandShortcut,
79
+ te as Dialog,
80
+ ae as DialogClose,
81
+ ne as DialogContent,
82
+ ie as DialogDescription,
83
+ pe as DialogFooter,
84
+ de as DialogHeader,
85
+ le as DialogOverlay,
86
+ me as DialogPortal,
87
+ ue as DialogTitle,
88
+ Se as DialogTrigger,
89
+ be as Drawer,
90
+ Ce as DrawerClose,
91
+ Te as DrawerContent,
92
+ ce as DrawerDescription,
93
+ De as DrawerFooter,
94
+ se as DrawerHeader,
95
+ xe as DrawerOverlay,
96
+ Me as DrawerPortal,
97
+ fe as DrawerTitle,
98
+ we as DrawerTrigger,
99
+ Pe as DropdownMenu,
100
+ he as DropdownMenuCheckboxItem,
101
+ ve as DropdownMenuContent,
102
+ Fe as DropdownMenuGroup,
103
+ Le as DropdownMenuItem,
104
+ Be as DropdownMenuLabel,
105
+ Ge as DropdownMenuPortal,
106
+ Ae as DropdownMenuRadioGroup,
107
+ Ne as DropdownMenuRadioItem,
108
+ He as DropdownMenuSeparator,
109
+ ke as DropdownMenuShortcut,
110
+ ye as DropdownMenuSub,
111
+ Oe as DropdownMenuSubContent,
112
+ Re as DropdownMenuSubTrigger,
113
+ Ve as DropdownMenuTrigger,
114
+ Ue as Form,
115
+ je as FormControl,
116
+ qe as FormDescription,
117
+ ze as FormField,
118
+ Je as FormItem,
119
+ Ke as FormLabel,
120
+ Qe as FormMessage,
121
+ Ye as Input,
122
+ _e as InputOTP,
123
+ $e as InputOTPGroup,
124
+ eo as InputOTPSeparator,
125
+ oo as InputOTPSlot,
126
+ to as Label,
127
+ no as Loader,
128
+ po as NavigationMenu,
129
+ lo as NavigationMenuContent,
130
+ mo as NavigationMenuIndicator,
131
+ uo as NavigationMenuItem,
132
+ So as NavigationMenuLink,
133
+ go as NavigationMenuList,
134
+ bo as NavigationMenuListItem,
135
+ Co as NavigationMenuTrigger,
136
+ To as NavigationMenuViewport,
137
+ so as Pagination,
138
+ xo as PaginationContent,
139
+ Mo as PaginationEllipsis,
140
+ fo as PaginationItem,
141
+ wo as PaginationLink,
142
+ Io as PaginationNext,
143
+ Po as PaginationPrevious,
144
+ vo as PasswordInput,
145
+ Lo as Popover,
146
+ Bo as PopoverAnchor,
147
+ Go as PopoverContent,
148
+ Ao as PopoverTrigger,
149
+ Ho as RadioGroup,
150
+ ko as RadioGroupItem,
151
+ Oo as Select,
152
+ Ro as SelectContent,
153
+ Vo as SelectGroup,
154
+ Eo as SelectItem,
155
+ Uo as SelectLabel,
156
+ jo as SelectScrollDownButton,
157
+ qo as SelectScrollUpButton,
158
+ zo as SelectSeparator,
159
+ Jo as SelectTrigger,
160
+ Ko as SelectValue,
161
+ Wo as Separator,
162
+ Yo as Sheet,
163
+ Zo as SheetClose,
164
+ _o as SheetContent,
165
+ $o as SheetDescription,
166
+ er as SheetFooter,
167
+ or as SheetHeader,
168
+ rr as SheetOverlay,
169
+ tr as SheetPortal,
170
+ ar as SheetTitle,
171
+ nr as SheetTrigger,
172
+ pr as Sidebar,
173
+ dr as SidebarContent,
174
+ lr as SidebarFooter,
175
+ mr as SidebarGroup,
176
+ ur as SidebarGroupAction,
177
+ Sr as SidebarGroupContent,
178
+ gr as SidebarGroupLabel,
179
+ br as SidebarHeader,
180
+ Cr as SidebarInput,
181
+ Tr as SidebarInset,
182
+ cr as SidebarMenu,
183
+ Dr as SidebarMenuAction,
184
+ sr as SidebarMenuBadge,
185
+ xr as SidebarMenuButton,
186
+ Mr as SidebarMenuItem,
187
+ fr as SidebarMenuSkeleton,
188
+ wr as SidebarMenuSub,
189
+ Ir as SidebarMenuSubButton,
190
+ Pr as SidebarMenuSubItem,
191
+ hr as SidebarProvider,
192
+ vr as SidebarRail,
193
+ Fr as SidebarSeparator,
194
+ Lr as SidebarTrigger,
195
+ Ar as Skeleton,
196
+ yr as Table,
197
+ Or as TableBody,
198
+ Rr as TableCaption,
199
+ Vr as TableCell,
200
+ Er as TableFooter,
201
+ Ur as TableHead,
202
+ jr as TableHeader,
203
+ qr as TableRow,
204
+ Jr as Tabs,
205
+ Kr as TabsContent,
206
+ Qr as TabsList,
207
+ Wr as TabsTrigger,
208
+ Hr as Toaster,
209
+ Yr as Tooltip,
210
+ Zr as TooltipContent,
211
+ _r as TooltipProvider,
212
+ $r as TooltipTrigger,
213
+ S as badgeVariants,
214
+ w as buttonVariants,
215
+ tt as cn,
216
+ at as getThemeHue,
217
+ co as navigationMenuTriggerStyle,
218
+ nt as setThemeHue,
219
+ We as useFormField,
220
+ ot as useIsMobile,
221
+ Br as useSidebar
195
222
  };
196
223
  //# sourceMappingURL=index.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,9 +1,21 @@
1
- import { clsx as o } from "clsx";
2
- import { twMerge as t } from "tailwind-merge";
3
- function n(...r) {
4
- return t(o(r));
1
+ import { clsx as n } from "clsx";
2
+ function r(...e) {
3
+ return n(e);
4
+ }
5
+ const t = "--primary-hue";
6
+ function u() {
7
+ return document.documentElement.style.getPropertyValue(t);
8
+ }
9
+ function m(e) {
10
+ document.documentElement.style.setProperty(
11
+ t,
12
+ // In this case, it must be a number.
13
+ e
14
+ );
5
15
  }
6
16
  export {
7
- n as cn
17
+ r as cn,
18
+ u as getThemeHue,
19
+ m as setThemeHue
8
20
  };
9
21
  //# 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\"\nimport { twMerge } from \"tailwind-merge\"\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n"],"names":["cn","inputs","twMerge","clsx"],"mappings":";;AAGO,SAASA,KAAMC,GAAsB;AACnC,SAAAC,EAAQC,EAAKF,CAAM,CAAC;AAC7B;"}
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"],"names":["cn","inputs","clsx","PRIMARY_HUE_PROPERTY","getThemeHue","setThemeHue","hue"],"mappings":";AAEO,SAASA,KAAMC,GAAsB;AAC1C,SAAQC,EAAKD,CAAM;AACrB;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;"}
package/lib/index.css CHANGED
@@ -4,11 +4,11 @@
4
4
  @tailwind utilities;
5
5
 
6
6
  :root {
7
- /* shadcn tokens */
7
+ /* shad/cn tokens */
8
8
  --background: var(--neutral-1);
9
9
  --foreground: var(--neutral-10);
10
10
 
11
- --card: var(--background);
11
+ --card: var(--neutral-2);
12
12
  --card-foreground: var(--foreground);
13
13
  --popover: var(--background);
14
14
  --popover-foreground: var(--foreground);
@@ -54,6 +54,9 @@
54
54
 
55
55
  --sidebar-border: 220 13% 91%;
56
56
  --sidebar-ring: 217.2 91.2% 59.8%;
57
+
58
+ /** Grid Tokens */
59
+ --grid-fluid-min: 16rem;
57
60
  }
58
61
 
59
62
  @layer base {
@@ -66,32 +69,32 @@
66
69
  }
67
70
 
68
71
  h1 {
69
- @apply text-heading-1 my-v3;
72
+ @apply text-heading-1;
70
73
  }
71
74
 
72
75
  h2 {
73
- @apply text-heading-2 mt-v4 mb-v5;
76
+ @apply text-heading-2;
74
77
  }
75
78
 
76
79
  h3 {
77
- @apply text-heading-3 mt-v3 mb-v5;
80
+ @apply text-heading-3;
78
81
  }
79
82
 
80
83
  h4 {
81
- @apply text-heading-4 mt-v4 mb-v5;
84
+ @apply text-heading-4;
82
85
  }
83
86
 
84
87
  h5 {
85
- @apply text-heading-5 mt-v4 mb-v5;
88
+ @apply text-heading-5;
86
89
  }
87
90
 
88
91
  h6 {
89
- @apply text-heading-6 mt-v4 mb-v5;
92
+ @apply text-heading-6;
90
93
  }
91
94
 
92
95
  p {
93
- @apply text-body my-v1;
94
- }
96
+ @apply text-body;
97
+ }
95
98
 
96
99
  body {
97
100
  @apply bg-background text-foreground;
package/lib/tokens.css CHANGED
@@ -1,10 +1,10 @@
1
1
  /*!
2
- This CSS is generated by tokens.css, do not modify directly.
2
+ This CSS is generated by tokens.scss, do not modify directly.
3
3
  Instead, compile the SCSS file again to create modifications.
4
4
  */
5
5
  :root {
6
6
  --primary-hue: 240;
7
- --xprimary-1: 0.99 0.02 var(--primary-hue);
7
+ --xprimary-1: 0.99 0.01 var(--primary-hue);
8
8
  --xprimary-2: 0.97 0.03 var(--primary-hue);
9
9
  --xprimary-3: 0.9 0.04 var(--primary-hue);
10
10
  --xprimary-4: 0.72 0.13 var(--primary-hue);
@@ -25,7 +25,7 @@
25
25
  --primary-9: var(--xprimary-9);
26
26
  --primary-10: var(--xprimary-10);
27
27
  --secondary-hue: calc(var(--primary-hue) + 60);
28
- --xsecondary-1: 0.99 0.02 var(--secondary-hue);
28
+ --xsecondary-1: 0.99 0.01 var(--secondary-hue);
29
29
  --xsecondary-2: 0.97 0.03 var(--secondary-hue);
30
30
  --xsecondary-3: 0.9 0.04 var(--secondary-hue);
31
31
  --xsecondary-4: 0.72 0.13 var(--secondary-hue);
@@ -46,7 +46,7 @@
46
46
  --secondary-9: var(--xsecondary-9);
47
47
  --secondary-10: var(--xsecondary-10);
48
48
  --destructive-hue: 10;
49
- --xdestructive-1: 0.99 0.02 var(--destructive-hue);
49
+ --xdestructive-1: 0.99 0.01 var(--destructive-hue);
50
50
  --xdestructive-2: 0.97 0.03 var(--destructive-hue);
51
51
  --xdestructive-3: 0.9 0.04 var(--destructive-hue);
52
52
  --xdestructive-4: 0.72 0.13 var(--destructive-hue);
@@ -67,7 +67,7 @@
67
67
  --destructive-9: var(--xdestructive-9);
68
68
  --destructive-10: var(--xdestructive-10);
69
69
  --success-hue: 152;
70
- --xsuccess-1: 0.99 0.02 var(--success-hue);
70
+ --xsuccess-1: 0.99 0.01 var(--success-hue);
71
71
  --xsuccess-2: 0.97 0.03 var(--success-hue);
72
72
  --xsuccess-3: 0.9 0.04 var(--success-hue);
73
73
  --xsuccess-4: 0.72 0.13 var(--success-hue);
@@ -109,15 +109,15 @@
109
109
  --neutral-8: var(--xneutral-8);
110
110
  --neutral-9: var(--xneutral-9);
111
111
  --neutral-10: var(--xneutral-10);
112
- /* Increase or decrease the number to change the vertical spacing globally*/
113
- /* Base Vertical Spacing */
114
- --space: 1.2;
115
- /* Vertical Spacing - multiplier */
116
- --vspace-1: calc(var(--space) * 1rem);
117
- --vspace-2: calc(3 * var(--space) * 1rem);
118
- --vspace-3: calc(2 * var(--space) * 1rem);
119
- --vspace-4: calc(1.5 * var(--space) * 1rem);
120
- --vspace-5: calc(0.5 * var(--space) * 1rem);
112
+ /* https://www.fluid-type-scale.com/, https://fluidtypography.com/ */
113
+ --font-xs: clamp(0.52rem, 0.08vi + 0.5rem, 0.56rem);
114
+ --font-sm: clamp(0.65rem, 0.18vi + 0.6rem, 0.75rem);
115
+ --font-base: clamp(0.81rem, 0.34vi + 0.73rem, 1rem);
116
+ --font-md: clamp(1.02rem, 0.58vi + 0.87rem, 1.33rem);
117
+ --font-lg: clamp(1.27rem, 0.92vi + 1.04rem, 1.78rem);
118
+ --font-xl: clamp(1.59rem, 1.42vi + 1.23rem, 2.37rem);
119
+ --font-2xl: clamp(1.98rem, 2.13vi + 1.45rem, 3.16rem);
120
+ --font-3xl: clamp(2.48rem, 3.14vi + 1.69rem, 4.21rem);
121
121
  }
122
122
 
123
123
  .dark {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptlex/web-components",
3
- "version": "1.2.2",
3
+ "version": "1.3.1",
4
4
  "description": "React component library for Cryptlex web applications",
5
5
  "author": "Cryptlex",
6
6
  "type": "module",
@@ -43,6 +43,7 @@
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@radix-ui/react-accordion": "^1.2.1",
46
+ "@radix-ui/react-avatar": "^1.1.1",
46
47
  "@radix-ui/react-checkbox": "^1.1.2",
47
48
  "@radix-ui/react-collapsible": "^1.1.1",
48
49
  "@radix-ui/react-dialog": "^1.1.2",
@@ -56,21 +57,23 @@
56
57
  "@radix-ui/react-separator": "^1.1.0",
57
58
  "@radix-ui/react-slot": "^1.1.0",
58
59
  "@radix-ui/react-tooltip": "^1.1.3",
59
- "sonner": "^1.7.0",
60
+ "@radix-ui/react-tabs": "^1.1.1",
60
61
  "@tanstack/react-table": "^8.20.5",
61
62
  "class-variance-authority": "^0.7.0",
62
63
  "clsx": "^2.1.1",
63
64
  "cmdk": "1.0.0",
64
65
  "date-fns": "^3.0.0",
66
+ "input-otp": "^1.4.1",
65
67
  "lucide-react": "^0.453.0",
66
68
  "react": "^18.3.1",
67
69
  "react-day-picker": "8.10.1",
68
70
  "react-dom": "^18.3.1",
69
71
  "react-hook-form": "^7.53.1",
70
72
  "recharts": "^2.13.0",
71
- "tailwind-merge": "^2.5.4",
73
+ "sonner": "^1.7.0",
72
74
  "tailwindcss": "^3.4.14",
73
- "tailwindcss-animate": "^1.0.7"
75
+ "tailwindcss-animate": "^1.0.7",
76
+ "vaul": "^1.1.1"
74
77
  },
75
78
  "devDependencies": {
76
79
  "@eslint/js": "^9.11.1",