@cryptlex/web-components 1.3.5 → 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.
Files changed (76) hide show
  1. package/README.md +6 -3
  2. package/dist/components/data-table/data-table.es.js +102 -88
  3. package/dist/components/data-table/data-table.es.js.map +1 -1
  4. package/dist/components/data-table/table-actions.es.js.map +1 -1
  5. package/dist/components/data-table/table-content.es.js +19 -18
  6. package/dist/components/data-table/table-content.es.js.map +1 -1
  7. package/dist/components/data-table/table-filter.es.js +264 -0
  8. package/dist/components/data-table/table-filter.es.js.map +1 -0
  9. package/dist/components/data-table/table-utils/constants.es.js +20 -6
  10. package/dist/components/data-table/table-utils/constants.es.js.map +1 -1
  11. package/dist/components/data-table/table-utils/link-display.es.js +4 -4
  12. package/dist/components/data-table/table-utils/link-display.es.js.map +1 -1
  13. package/dist/components/key-value-card/key-value-card.es.js +4 -2
  14. package/dist/components/key-value-card/key-value-card.es.js.map +1 -1
  15. package/dist/components/sidebar/app-layout.es.js +43 -39
  16. package/dist/components/sidebar/app-layout.es.js.map +1 -1
  17. package/dist/components/sidebar/breadcrumb.es.js +58 -0
  18. package/dist/components/sidebar/breadcrumb.es.js.map +1 -0
  19. package/dist/components/sidebar/nav-main.es.js +51 -39
  20. package/dist/components/sidebar/nav-main.es.js.map +1 -1
  21. package/dist/components/static-data-table/data-table.es.js +5 -5
  22. package/dist/components/static-data-table/data-table.es.js.map +1 -1
  23. package/dist/components/ui/avatar.es.js +1 -1
  24. package/dist/components/ui/avatar.es.js.map +1 -1
  25. package/dist/components/ui/badge.es.js +1 -1
  26. package/dist/components/ui/badge.es.js.map +1 -1
  27. package/dist/components/ui/button.es.js +8 -8
  28. package/dist/components/ui/button.es.js.map +1 -1
  29. package/dist/components/ui/calendar.es.js +3 -3
  30. package/dist/components/ui/chart.es.js +24 -24
  31. package/dist/components/ui/chart.es.js.map +1 -1
  32. package/dist/components/ui/checkbox.es.js +1 -1
  33. package/dist/components/ui/checkbox.es.js.map +1 -1
  34. package/dist/components/ui/command.es.js +28 -28
  35. package/dist/components/ui/command.es.js.map +1 -1
  36. package/dist/components/ui/copy-button.es.js +38 -34
  37. package/dist/components/ui/copy-button.es.js.map +1 -1
  38. package/dist/components/ui/dialog.es.js +8 -8
  39. package/dist/components/ui/dialog.es.js.map +1 -1
  40. package/dist/components/ui/dropdown-menu.es.js +38 -38
  41. package/dist/components/ui/dropdown-menu.es.js.map +1 -1
  42. package/dist/components/ui/form.es.js +4 -4
  43. package/dist/components/ui/input-otp.es.js +2 -2
  44. package/dist/components/ui/input-otp.es.js.map +1 -1
  45. package/dist/components/ui/input.es.js +7 -7
  46. package/dist/components/ui/input.es.js.map +1 -1
  47. package/dist/components/ui/mutli-select.es.js +13 -13
  48. package/dist/components/ui/mutli-select.es.js.map +1 -1
  49. package/dist/components/ui/navigation-menu.es.js +3 -3
  50. package/dist/components/ui/navigation-menu.es.js.map +1 -1
  51. package/dist/components/ui/pagination.es.js +20 -20
  52. package/dist/components/ui/password-input.es.js +10 -10
  53. package/dist/components/ui/password-input.es.js.map +1 -1
  54. package/dist/components/ui/popover.es.js +1 -1
  55. package/dist/components/ui/popover.es.js.map +1 -1
  56. package/dist/components/ui/radio-group.es.js +7 -7
  57. package/dist/components/ui/radio-group.es.js.map +1 -1
  58. package/dist/components/ui/select.es.js +17 -17
  59. package/dist/components/ui/select.es.js.map +1 -1
  60. package/dist/components/ui/sheet.es.js +8 -8
  61. package/dist/components/ui/sheet.es.js.map +1 -1
  62. package/dist/components/ui/sidebar.es.js +76 -76
  63. package/dist/components/ui/sidebar.es.js.map +1 -1
  64. package/dist/components/ui/table-page-layout.es.js +8 -8
  65. package/dist/components/ui/table-page-layout.es.js.map +1 -1
  66. package/dist/components/ui/table.es.js +1 -1
  67. package/dist/components/ui/table.es.js.map +1 -1
  68. package/dist/components/ui/tabs.es.js +11 -11
  69. package/dist/components/ui/tabs.es.js.map +1 -1
  70. package/dist/index.es.d.ts +12 -7
  71. package/dist/index.es.js +59 -58
  72. package/lib/index.css +15 -87
  73. package/lib/tailwind.preset.css +220 -0
  74. package/lib/tokens.css +54 -54
  75. package/package.json +7 -7
  76. package/tailwind.preset.ts +0 -191
package/dist/index.es.js CHANGED
@@ -2,17 +2,17 @@ import { Accordion as t, AccordionContent as a, AccordionItem as n, AccordionTri
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
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 P } from "./components/ui/button.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 h, CardHeader as A, CardTitle as O } from "./components/ui/card.es.js";
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
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
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
12
  import { CopyButton as ae } from "./components/ui/copy-button.es.js";
13
13
  import { Dialog as ie, DialogClose as pe, DialogContent as me, DialogDescription as le, DialogFooter as de, DialogHeader as ue, DialogOverlay as Se, DialogPortal as ge, DialogTitle as Te, DialogTrigger as be } from "./components/ui/dialog.es.js";
14
- import { Drawer as De, DrawerClose as xe, DrawerContent as fe, DrawerDescription as ce, DrawerFooter as se, DrawerHeader as Me, DrawerOverlay as Ie, DrawerPortal as Pe, DrawerTitle as Le, DrawerTrigger as Fe } from "./components/ui/drawer.es.js";
15
- import { DropdownMenu as Ee, DropdownMenuCheckboxItem as Re, DropdownMenuContent as ve, DropdownMenuGroup as he, DropdownMenuItem as Ae, DropdownMenuLabel as Oe, DropdownMenuPortal as Be, DropdownMenuRadioGroup as Ne, DropdownMenuRadioItem as _e, DropdownMenuSeparator as ye, DropdownMenuShortcut as Ge, DropdownMenuSub as ke, DropdownMenuSubContent as He, DropdownMenuSubTrigger as Ue, DropdownMenuTrigger as Ve } from "./components/ui/dropdown-menu.es.js";
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
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
17
  import { Input as $e } from "./components/ui/input.es.js";
18
18
  import { InputOTP as oo, InputOTPGroup as ro, InputOTPSeparator as to, InputOTPSlot as ao } from "./components/ui/input-otp.es.js";
@@ -21,15 +21,15 @@ import { LinkButton as mo } from "./components/ui/link-button.es.js";
21
21
  import { Loader as uo } from "./components/ui/loader.es.js";
22
22
  import "./components/ui/mutli-select.es.js";
23
23
  import { NavigationMenu as go, NavigationMenuContent as To, NavigationMenuIndicator as bo, NavigationMenuItem as Co, NavigationMenuLink as Do, NavigationMenuList as xo, NavigationMenuListItem as fo, NavigationMenuTrigger as co, NavigationMenuViewport as so, navigationMenuTriggerStyle as Mo } from "./components/ui/navigation-menu.es.js";
24
- import { Pagination as Po, PaginationContent as Lo, PaginationEllipsis as Fo, PaginationItem as wo, PaginationLink as Eo, PaginationNext as Ro, PaginationPrevious as vo } from "./components/ui/pagination.es.js";
25
- import { PasswordInput as Ao } from "./components/ui/password-input.es.js";
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
26
  import { Popover as Bo, PopoverAnchor as No, PopoverContent as _o, PopoverTrigger as yo } from "./components/ui/popover.es.js";
27
27
  import { RadioGroup as ko, RadioGroupItem as Ho } from "./components/ui/radio-group.es.js";
28
28
  import { SearchInput as Vo } from "./components/ui/search-input.es.js";
29
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
30
  import { Separator as or } from "./components/ui/separator.es.js";
31
31
  import { Sheet as tr, SheetClose as ar, SheetContent as nr, SheetDescription as ir, SheetFooter as pr, SheetHeader as mr, SheetOverlay as lr, SheetPortal as dr, SheetTitle as ur, SheetTrigger as Sr } from "./components/ui/sheet.es.js";
32
- import { Sidebar as Tr, SidebarContent as br, SidebarFooter as Cr, SidebarGroup as Dr, SidebarGroupAction as xr, SidebarGroupContent as fr, SidebarGroupLabel as cr, SidebarHeader as sr, SidebarInput as Mr, SidebarInset as Ir, SidebarMenu as Pr, SidebarMenuAction as Lr, SidebarMenuBadge as Fr, SidebarMenuButton as wr, SidebarMenuItem as Er, SidebarMenuSkeleton as Rr, SidebarMenuSub as vr, SidebarMenuSubButton as hr, SidebarMenuSubItem as Ar, SidebarProvider as Or, SidebarRail as Br, SidebarSeparator as Nr, SidebarTrigger as _r, useSidebar as yr } from "./components/ui/sidebar.es.js";
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
33
  import { Skeleton as kr } from "./components/ui/skeleton.es.js";
34
34
  import { Toaster as Ur } from "./components/ui/sonner.es.js";
35
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";
@@ -40,23 +40,24 @@ import { useIsMobile as dt } from "./hooks/use-mobile.es.js";
40
40
  import { cn as St, getThemeHue as gt, logout as Tt, setThemeHue as bt } from "./utils/index.es.js";
41
41
  import { DataTable as Dt } from "./components/data-table/data-table.es.js";
42
42
  import { CHECK_BOX as ft, DEFAULT_DATE_COLUMNS as ct, ID_COLUMN as st } from "./components/data-table/table-commons.es.js";
43
- import { COMPARISON_OPERATOR_LABELS as It, DEFAULT_FILTERABLE_FIELDS as Pt, FILTERABLE_PROPERTY_TYPES as Lt, FILTER_COMPARISON_OPERATORS as Ft, OPERATORS_FOR_FILTER_TYPE as wt, RESOURCE_DEFINITIONS as Et, RESOURCE_NAMES as Rt, getLicenseStatus as vt, getResourceDisplayName as ht, getValidityDisplay as At, getValueFromData as Ot, secondsToDuration as Bt } from "./components/data-table/table-utils/constants.es.js";
44
- import { createTableFetchFn as _t } from "./components/data-table/table-utils/createTableFetchFn.es.js";
45
- import { FormatDate as Gt } from "./components/data-table/table-utils/date.es.js";
46
- import { getLinkDisplay as Ht } from "./components/data-table/table-utils/link-display.es.js";
47
- import { convertCamelCaseToTitleCase as Vt, convertToTitleCase as Yt, pluralizeTimes as Kt } from "./components/data-table/table-utils/string.es.js";
48
- import { DYNAMIC_INPUT_TARGET as Xt } from "./components/data-table/table-utils/types.es.js";
49
- import { KeyValueCard as qt } from "./components/key-value-card/key-value-card.es.js";
50
- import { AppLayout as Qt } from "./components/sidebar/app-layout.es.js";
51
- import { NavMain as Zt } from "./components/sidebar/nav-main.es.js";
52
- import { SideBar as ea } from "./components/sidebar/sidebar.es.js";
53
- import { StaticDataTable as ra } from "./components/static-data-table/data-table.es.js";
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";
54
54
  export {
55
+ It as ALL_OS,
55
56
  t as Accordion,
56
57
  a as AccordionContent,
57
58
  n as AccordionItem,
58
59
  i as AccordionTrigger,
59
- Qt as AppLayout,
60
+ Wt as AppLayout,
60
61
  m as Avatar,
61
62
  l as AvatarFallback,
62
63
  d as AvatarImage,
@@ -70,14 +71,14 @@ export {
70
71
  s as BreadcrumbSeparator,
71
72
  I as Button,
72
73
  ft as CHECK_BOX,
73
- It as COMPARISON_OPERATOR_LABELS,
74
+ Lt as COMPARISON_OPERATOR_LABELS,
74
75
  F as Calendar,
75
76
  E as Card,
76
77
  R as CardContent,
77
78
  v as CardDescription,
78
- h as CardFooter,
79
- A as CardHeader,
80
- O as CardTitle,
79
+ A as CardFooter,
80
+ O as CardHeader,
81
+ h as CardTitle,
81
82
  N as ChartContainer,
82
83
  _ as ChartLegend,
83
84
  y as ChartLegendContent,
@@ -100,7 +101,7 @@ export {
100
101
  ae as CopyButton,
101
102
  ct as DEFAULT_DATE_COLUMNS,
102
103
  Pt as DEFAULT_FILTERABLE_FIELDS,
103
- Xt as DYNAMIC_INPUT_TARGET,
104
+ jt as DYNAMIC_INPUT_TARGET,
104
105
  Dt as DataTable,
105
106
  ie as Dialog,
106
107
  pe as DialogClose,
@@ -119,15 +120,15 @@ export {
119
120
  se as DrawerFooter,
120
121
  Me as DrawerHeader,
121
122
  Ie as DrawerOverlay,
122
- Pe as DrawerPortal,
123
- Le as DrawerTitle,
123
+ Le as DrawerPortal,
124
+ Pe as DrawerTitle,
124
125
  Fe as DrawerTrigger,
125
126
  Ee as DropdownMenu,
126
127
  Re as DropdownMenuCheckboxItem,
127
128
  ve as DropdownMenuContent,
128
- he as DropdownMenuGroup,
129
- Ae as DropdownMenuItem,
130
- Oe as DropdownMenuLabel,
129
+ Ae as DropdownMenuGroup,
130
+ Oe as DropdownMenuItem,
131
+ he as DropdownMenuLabel,
131
132
  Be as DropdownMenuPortal,
132
133
  Ne as DropdownMenuRadioGroup,
133
134
  _e as DropdownMenuRadioItem,
@@ -137,8 +138,8 @@ export {
137
138
  He as DropdownMenuSubContent,
138
139
  Ue as DropdownMenuSubTrigger,
139
140
  Ve as DropdownMenuTrigger,
140
- Lt as FILTERABLE_PROPERTY_TYPES,
141
- Ft as FILTER_COMPARISON_OPERATORS,
141
+ Ft as FILTERABLE_PROPERTY_TYPES,
142
+ wt as FILTER_COMPARISON_OPERATORS,
142
143
  Ke as Form,
143
144
  ze as FormControl,
144
145
  Xe as FormDescription,
@@ -146,18 +147,18 @@ export {
146
147
  qe as FormItem,
147
148
  Je as FormLabel,
148
149
  Qe as FormMessage,
149
- Gt as FormatDate,
150
+ kt as FormatDate,
150
151
  st as ID_COLUMN,
151
152
  $e as Input,
152
153
  oo as InputOTP,
153
154
  ro as InputOTPGroup,
154
155
  to as InputOTPSeparator,
155
156
  ao as InputOTPSlot,
156
- qt as KeyValueCard,
157
+ Jt as KeyValueCard,
157
158
  io as Label,
158
159
  mo as LinkButton,
159
160
  uo as Loader,
160
- Zt as NavMain,
161
+ $t as NavMain,
161
162
  go as NavigationMenu,
162
163
  To as NavigationMenuContent,
163
164
  bo as NavigationMenuIndicator,
@@ -167,21 +168,21 @@ export {
167
168
  fo as NavigationMenuListItem,
168
169
  co as NavigationMenuTrigger,
169
170
  so as NavigationMenuViewport,
170
- wt as OPERATORS_FOR_FILTER_TYPE,
171
- Po as Pagination,
172
- Lo as PaginationContent,
171
+ Et as OPERATORS_FOR_FILTER_TYPE,
172
+ Lo as Pagination,
173
+ Po as PaginationContent,
173
174
  Fo as PaginationEllipsis,
174
175
  wo as PaginationItem,
175
176
  Eo as PaginationLink,
176
177
  Ro as PaginationNext,
177
178
  vo as PaginationPrevious,
178
- Ao as PasswordInput,
179
+ Oo as PasswordInput,
179
180
  Bo as Popover,
180
181
  No as PopoverAnchor,
181
182
  _o as PopoverContent,
182
183
  yo as PopoverTrigger,
183
- Et as RESOURCE_DEFINITIONS,
184
- Rt as RESOURCE_NAMES,
184
+ Rt as RESOURCE_DEFINITIONS,
185
+ vt as RESOURCE_NAMES,
185
186
  ko as RadioGroup,
186
187
  Ho as RadioGroupItem,
187
188
  Vo as SearchInput,
@@ -206,7 +207,7 @@ export {
206
207
  dr as SheetPortal,
207
208
  ur as SheetTitle,
208
209
  Sr as SheetTrigger,
209
- ea as SideBar,
210
+ oa as SideBar,
210
211
  Tr as Sidebar,
211
212
  br as SidebarContent,
212
213
  Cr as SidebarFooter,
@@ -217,21 +218,21 @@ export {
217
218
  sr as SidebarHeader,
218
219
  Mr as SidebarInput,
219
220
  Ir as SidebarInset,
220
- Pr as SidebarMenu,
221
- Lr as SidebarMenuAction,
221
+ Lr as SidebarMenu,
222
+ Pr as SidebarMenuAction,
222
223
  Fr as SidebarMenuBadge,
223
224
  wr as SidebarMenuButton,
224
225
  Er as SidebarMenuItem,
225
226
  Rr as SidebarMenuSkeleton,
226
227
  vr as SidebarMenuSub,
227
- hr as SidebarMenuSubButton,
228
- Ar as SidebarMenuSubItem,
229
- Or as SidebarProvider,
228
+ Ar as SidebarMenuSubButton,
229
+ Or as SidebarMenuSubItem,
230
+ hr as SidebarProvider,
230
231
  Br as SidebarRail,
231
232
  Nr as SidebarSeparator,
232
233
  _r as SidebarTrigger,
233
234
  kr as Skeleton,
234
- ra as StaticDataTable,
235
+ ta as StaticDataTable,
235
236
  Yr as Table,
236
237
  Kr as TableBody,
237
238
  zr as TableCaption,
@@ -251,21 +252,21 @@ export {
251
252
  nt as TooltipProvider,
252
253
  it as TooltipTrigger,
253
254
  g as badgeVariants,
254
- P as buttonVariants,
255
+ L as buttonVariants,
255
256
  St as cn,
256
- Vt as convertCamelCaseToTitleCase,
257
- Yt as convertToTitleCase,
258
- _t as createTableFetchFn,
259
- vt as getLicenseStatus,
260
- Ht as getLinkDisplay,
261
- ht as getResourceDisplayName,
257
+ Yt as convertCamelCaseToTitleCase,
258
+ Kt as convertToTitleCase,
259
+ yt as createTableFetchFn,
260
+ At as getLicenseStatus,
261
+ Ut as getLinkDisplay,
262
+ Ot as getResourceDisplayName,
262
263
  gt as getThemeHue,
263
- At as getValidityDisplay,
264
- Ot as getValueFromData,
264
+ ht as getValidityDisplay,
265
+ Bt as getValueFromData,
265
266
  Tt as logout,
266
267
  Mo as navigationMenuTriggerStyle,
267
- Kt as pluralizeTimes,
268
- Bt as secondsToDuration,
268
+ zt as pluralizeTimes,
269
+ Nt as secondsToDuration,
269
270
  bt as setThemeHue,
270
271
  We as useFormField,
271
272
  dt as useIsMobile,
package/lib/index.css CHANGED
@@ -1,62 +1,9 @@
1
1
  @import url('tokens.css');
2
- @tailwind base;
3
- @tailwind components;
4
- @tailwind utilities;
2
+ @import 'tailwindcss';
3
+ @import './tailwind.preset.css';
5
4
 
6
- :root {
7
- /* shad/cn tokens */
8
- --background: var(--neutral-1);
9
- --foreground: var(--neutral-10);
10
-
11
- --card: var(--neutral-2);
12
- --card-foreground: var(--foreground);
13
- --popover: var(--background);
14
- --popover-foreground: var(--foreground);
15
-
16
- --primary: var(--primary-8);
17
- --primary-foreground: var(--primary-2);
18
-
19
- --secondary: var(--secondary-8);
20
- --secondary-foreground: var(--secondary-2);
21
-
22
- --muted: var(--neutral-7);
23
- --muted-foreground: var(--neutral-4);
24
-
25
- --accent: var(--neutral-7);
26
- --accent-foreground: var(--neutral-4);
27
-
28
- --destructive: var(--destructive-8);
29
- --destructive-foreground: var(--destructive-2);
30
-
31
- --success: var(--success-8);
32
- --succcess-foreground: var(--success-2);
33
-
34
- --border: var(--neutral-3);
35
- --input: var(--border);
36
- --ring: var(--neutral-5);
37
-
38
- --chart-1: var(--primary-5);
39
- --chart-2: var(--primary-4);
40
- --chart-3: var(--secondary-5);
41
- --chart-4: var(--secondary-4);
42
- --chart-5: var(--secondary-2);
43
-
44
- --radius: 0.25rem;
45
-
46
- --sidebar-background: var(--background);
47
- --sidebar-foreground: var(--foreground);
48
-
49
- --sidebar-primary: 240 5.9% 10%;
50
- --sidebar-primary-foreground: 0 0% 98%;
51
-
52
- --sidebar-accent: 240 4.8% 95.9%;
53
- --sidebar-accent-foreground: 240 5.9% 10%;
54
-
55
- --sidebar-border: 220 13% 91%;
56
- --sidebar-ring: 217.2 91.2% 59.8%;
57
-
58
- /** Grid Tokens */
59
- --grid-fluid-min: 16rem;
5
+ @utility link {
6
+ @apply text-primary underline hover:underline-offset-2 hover:text-primary/70;
60
7
  }
61
8
 
62
9
  @layer base {
@@ -68,42 +15,23 @@
68
15
  @apply link;
69
16
  }
70
17
 
71
- h1 {
72
- @apply text-heading-1;
73
- }
74
-
75
- h2 {
76
- @apply text-heading-2;
77
- }
78
-
79
- h3 {
80
- @apply text-heading-3;
81
- }
82
-
83
- h4 {
84
- @apply text-heading-4;
85
- }
86
-
87
- h5 {
88
- @apply text-heading-5;
18
+ body {
19
+ @apply bg-background/50 text-foreground;
89
20
  }
90
21
 
91
- h6 {
92
- @apply text-heading-6;
22
+ *::-webkit-scrollbar {
23
+ width: 6px;
24
+ height: 6px;
93
25
  }
94
26
 
95
- p {
96
- @apply text-body;
97
- }
98
-
99
- body {
100
- @apply bg-background text-foreground;
27
+ *::-webkit-scrollbar-track {
28
+ background: white;
29
+ border-radius: 2px;
101
30
  }
102
31
 
103
- }
32
+ *::-webkit-scrollbar-thumb {
33
+ background-color: gray;
104
34
 
105
- @layer components {
106
- .link {
107
- @apply text-primary underline hover:underline-offset-2 hover:text-primary/70;
35
+ border: 3px solid gray;
108
36
  }
109
37
  }
@@ -0,0 +1,220 @@
1
+ /** https://tailwindcss.com/docs/theme#theme-variable-namespaces */
2
+
3
+ @plugin "tailwindcss-animate";
4
+
5
+ @theme {
6
+ /* Radius */
7
+ --radius: 0.25rem;
8
+ --radius-lg: var(--radius);
9
+ --radius-md: calc(var(--radius) - 2px);
10
+ --radius-sm: calc(var(--radius) - 4px);
11
+
12
+ /* Text Sizes */
13
+ --text-sm: 0.875rem;
14
+ --text-base: 1rem;
15
+ --text-md: 1.125rem;
16
+ --text-lg: 1.25rem;
17
+ --text-xl: 1.5rem;
18
+ --text-2xl: 1.75rem;
19
+ --text-3xl: 2rem;
20
+
21
+ /* Colors */
22
+ --color-*: initial;
23
+ --color-primary-1: var(--primary-1);
24
+ --color-primary-2: var(--primary-2);
25
+ --color-primary-3: var(--primary-3);
26
+ --color-primary-4: var(--primary-4);
27
+ --color-primary-5: var(--primary-5);
28
+ --color-primary-6: var(--primary-6);
29
+ --color-primary-7: var(--primary-7);
30
+ --color-primary-8: var(--primary-8);
31
+ --color-primary-9: var(--primary-9);
32
+ --color-primary-10: var(--primary-10);
33
+
34
+ --color-secondary-1: var(--secondary-1);
35
+ --color-secondary-2: var(--secondary-2);
36
+ --color-secondary-3: var(--secondary-3);
37
+ --color-secondary-4: var(--secondary-4);
38
+ --color-secondary-5: var(--secondary-5);
39
+ --color-secondary-6: var(--secondary-6);
40
+ --color-secondary-7: var(--secondary-7);
41
+ --color-secondary-8: var(--secondary-8);
42
+ --color-secondary-9: var(--secondary-9);
43
+ --color-secondary-10: var(--secondary-10);
44
+
45
+ --color-neutral-1: var(--neutral-1);
46
+ --color-neutral-2: var(--neutral-2);
47
+ --color-neutral-3: var(--neutral-3);
48
+ --color-neutral-4: var(--neutral-4);
49
+ --color-neutral-5: var(--neutral-5);
50
+ --color-neutral-6: var(--neutral-6);
51
+ --color-neutral-7: var(--neutral-7);
52
+ --color-neutral-8: var(--neutral-8);
53
+ --color-neutral-9: var(--neutral-9);
54
+ --color-neutral-10: var(--neutral-10);
55
+
56
+ --color-destructive-1: var(--destructive-1);
57
+ --color-destructive-2: var(--destructive-2);
58
+ --color-destructive-3: var(--destructive-3);
59
+ --color-destructive-4: var(--destructive-4);
60
+ --color-destructive-5: var(--destructive-5);
61
+ --color-destructive-6: var(--destructive-6);
62
+ --color-destructive-7: var(--destructive-7);
63
+ --color-destructive-8: var(--destructive-8);
64
+ --color-destructive-9: var(--destructive-9);
65
+ --color-destructive-10: var(--destructive-10);
66
+
67
+ --color-success-1: var(--success-1);
68
+ --color-success-2: var(--success-2);
69
+ --color-success-3: var(--success-3);
70
+ --color-success-4: var(--success-4);
71
+ --color-success-5: var(--success-5);
72
+ --color-success-6: var(--success-6);
73
+ --color-success-7: var(--success-7);
74
+ --color-success-8: var(--success-8);
75
+ --color-success-9: var(--success-9);
76
+ --color-success-10: var(--success-10);
77
+
78
+ --color-background: var(--color-neutral-2);
79
+ --color-foreground: var(--color-neutral-10);
80
+
81
+ --color-card: var(--color-neutral-2);
82
+ --color-card-foreground: var(--color-foreground);
83
+
84
+ --color-popover: var(--color-background);
85
+ --color-popover-foreground: var(--color-foreground);
86
+
87
+ --color-primary: var(--color-primary-8);
88
+ --color-primary-foreground: var(--color-primary-2);
89
+ --color-secondary: var(--color-secondary-8);
90
+ --color-secondary-foreground: var(--color-secondary-2);
91
+ --color-muted: var(--color-neutral-7);
92
+ --color-muted-foreground: var(--color-neutral-4);
93
+ --color-accent: var(--color-neutral-7);
94
+ --color-accent-foreground: var(--color-neutral-4);
95
+ --color-destructive: var(--color-destructive-8);
96
+ --color-destructive-foreground: var(--color-destructive-2);
97
+ --color-success: var(--color-success-8);
98
+ --color-success-foreground: var(--color-success-2);
99
+
100
+ --color-border: var(--color-neutral-3);
101
+ --color-input: var(--color-border);
102
+ --color-ring: var(--color-neutral-5);
103
+
104
+ --color-chart-1: var(--color-primary-5);
105
+ --color-chart-2: var(--color-primary-4);
106
+ --color-chart-3: var(--color-secondary-5);
107
+ --color-chart-4: var(--color-secondary-4);
108
+ --color-chart-5: var(--color-secondary-2);
109
+
110
+ --color-sidebar-background: var(--color-background);
111
+ --color-sidebar-foreground: var(--color-foreground);
112
+ /* // TODO */
113
+ --color-sidebar-primary: 240 5.9% 10%;
114
+ --color-sidebar-primary-foreground: 0 0% 98%;
115
+
116
+ --color-sidebar-accent: 240 4.8% 95.9%;
117
+ --color-sidebar-accent-foreground: 240 5.9% 10%;
118
+
119
+ --color-sidebar-border: var(--color-border);
120
+ --color-sidebar-ring: var(--color-ring);
121
+
122
+ /** TODO Grid Tokens */
123
+ /* --grid-fluid-min: 16rem;
124
+ gridTemplateColumns: {
125
+ fluid: 'repeat(auto-fill, minmax(var(--grid-fluid-min), 1fr))',
126
+ }, */
127
+
128
+ --animate-accordion-down: accordion-down 0.2s ease-out;
129
+
130
+ @keyframes accordion-down {
131
+ from {
132
+ height: 0;
133
+ }
134
+
135
+ to {
136
+ height: var(--radix-accordion-content-height);
137
+ }
138
+ }
139
+
140
+ --animate-accordion-up: accordion-up 0.2s ease-out;
141
+
142
+ @keyframes accordion-up {
143
+ from {
144
+ height: var(--radix-accordion-content-height);
145
+ }
146
+
147
+ to {
148
+ height: 0;
149
+ }
150
+ }
151
+
152
+ --animate-collapsible-down: collapsible-down 0.2s ease-out;
153
+
154
+ @keyframes collapsible-down {
155
+ from {
156
+ height: 0;
157
+ }
158
+
159
+ to {
160
+ height: var(--radix-collapsible-content-height);
161
+ }
162
+ }
163
+
164
+ --animate-collapsible-up: collapsible-up 0.2s ease-out;
165
+
166
+ @keyframes collapsible-up {
167
+ from {
168
+ height: var(--radix-collapsible-content-height);
169
+ }
170
+
171
+ to {
172
+ height: 0;
173
+ }
174
+ }
175
+ }
176
+
177
+ @utility text-caption {
178
+ @apply text-sm;
179
+ }
180
+
181
+
182
+ @utility text-body {
183
+ @apply text-base;
184
+ /* lineHeight: '1.6', */
185
+ }
186
+
187
+ @utility text-heading-6 {
188
+ @apply text-base;
189
+ /* fontWeight: 700, */
190
+ /* lineHeight: '1.2', */
191
+
192
+ }
193
+
194
+ @utility text-heading-5 {
195
+ @apply text-md;
196
+ /* lineHeight: '1.2', */
197
+ }
198
+
199
+ @utility text-heading-4 {
200
+ @apply text-lg;
201
+ /* lineHeight: '1.2', */
202
+ /* fontWeight: 500, */
203
+ }
204
+
205
+ @utlility text-heading-3 {
206
+ @apply text-xl;
207
+ }
208
+
209
+ @utility text-heading-2 {
210
+ @apply text-2xl;
211
+ /* lineHeight: '1', */
212
+ /* fontWeight: 300, */
213
+ }
214
+
215
+ @utility text-heading-1 {
216
+ @apply text-3xl;
217
+ /* lineHeight: '1', */
218
+ }
219
+
220
+ @layer components {}