@cryptlex/web-components 3.2.2 → 3.2.3

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.
@@ -0,0 +1,29 @@
1
+ import { jsxs as d, jsx as t } from "react/jsx-runtime";
2
+ import { cn as i } from "../../utils/index.es.js";
3
+ import { cva as c } from "class-variance-authority";
4
+ const n = c(
5
+ "transition-colors border border-dotted p-2 text-foreground text-sm inline-flex items-start gap-2",
6
+ {
7
+ variants: {
8
+ variant: {
9
+ destructive: "bg-destructive-foreground/20 text-destructive border-destructive",
10
+ success: "bg-success-foreground/20 text-success border-success",
11
+ muted: "bg-muted-foreground/20 text-muted border-muted"
12
+ }
13
+ },
14
+ defaultVariants: {
15
+ variant: "muted"
16
+ }
17
+ }
18
+ );
19
+ function f({ children: r, className: s, variant: o, icon: e, ...a }) {
20
+ return /* @__PURE__ */ d("div", { role: "alert", className: i(n({ variant: o }), s), ...a, children: [
21
+ e && /* @__PURE__ */ t(e, { className: "size-icon mt-1" }),
22
+ /* @__PURE__ */ t("span", { className: "w-full", children: r })
23
+ ] });
24
+ }
25
+ export {
26
+ f as Alert,
27
+ n as alertVariants
28
+ };
29
+ //# sourceMappingURL=alert.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.es.js","sources":["../../../lib/components/ui/alert.tsx"],"sourcesContent":["import { cn } from \"@/utils\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { type LucideIcon } from \"lucide-react\";\n\nexport const alertVariants = cva(\n `transition-colors border border-dotted p-2 text-foreground text-sm inline-flex items-start gap-2`,\n {\n variants: {\n variant: {\n destructive: \"bg-destructive-foreground/20 text-destructive border-destructive\",\n success: \"bg-success-foreground/20 text-success border-success\",\n muted: \"bg-muted-foreground/20 text-muted border-muted\",\n },\n },\n defaultVariants: {\n variant: \"muted\",\n },\n },\n);\n\nexport function Alert({ children, className, variant, icon: Icon, ...props }: React.ComponentProps<'div'> & VariantProps<typeof alertVariants> & {\n icon?: LucideIcon\n}) {\n\n return (\n <div role=\"alert\" className={cn(alertVariants({ variant }), className)} {...props}>\n {Icon && <Icon className=\"size-icon mt-1\" />}\n <span className=\"w-full\">\n {children}\n </span>\n </div>)\n}"],"names":["alertVariants","cva","Alert","children","className","variant","Icon","props","jsxs","cn","jsx"],"mappings":";;;AAIO,MAAMA,IAAgBC;AAAA,EACzB;AAAA,EACA;AAAA,IACI,UAAU;AAAA,MACN,SAAS;AAAA,QACL,aAAa;AAAA,QACb,SAAS;AAAA,QACT,OAAO;AAAA,MAAA;AAAA,IAEf;AAAA,IACA,iBAAiB;AAAA,MACb,SAAS;AAAA,IAAA;AAAA,EACb;AAER;AAEgB,SAAAC,EAAM,EAAE,UAAAC,GAAU,WAAAC,GAAW,SAAAC,GAAS,MAAMC,GAAM,GAAGC,KAElE;AAEC,SACK,gBAAAC,EAAA,OAAA,EAAI,MAAK,SAAQ,WAAWC,EAAGT,EAAc,EAAE,SAAAK,EAAS,CAAA,GAAGD,CAAS,GAAI,GAAGG,GACvE,UAAA;AAAA,IAAQD,KAAA,gBAAAI,EAACJ,GAAK,EAAA,WAAU,iBAAiB,CAAA;AAAA,IACzC,gBAAAI,EAAA,QAAA,EAAK,WAAU,UACX,UAAAP,EACL,CAAA;AAAA,EAAA,GACJ;AACR;"}
@@ -1,11 +1,11 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { cn as o } from "../../utils/index.es.js";
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { cn as r } from "../../utils/index.es.js";
3
3
  function c({ className: e, ...n }) {
4
- return /* @__PURE__ */ r(
4
+ return /* @__PURE__ */ i(
5
5
  "div",
6
6
  {
7
- className: o(
8
- "text-muted-foreground hover:text-foreground transition-colors inline-flex items-center justify-center leading-none select-none bg-card border px-2 h-input py-1 focus:outline-hidden focus:ring-1 focus:ring-ring",
7
+ className: r(
8
+ "text-muted transition-colors inline-flex items-center justify-center leading-none select-none bg-card border px-2 h-input py-1 focus:outline-hidden focus:ring-1 focus:ring-ring",
9
9
  e
10
10
  ),
11
11
  ...n
@@ -1 +1 @@
1
- {"version":3,"file":"badge.es.js","sources":["../../../lib/components/ui/badge.tsx"],"sourcesContent":["import { cn } from \"@/utils\";\nimport type * as React from \"react\";\n\nexport function Badge({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tclassName={cn(\n\t\t\t\t\"text-muted-foreground hover:text-foreground transition-colors inline-flex items-center justify-center leading-none select-none bg-card border px-2 h-input py-1 focus:outline-hidden focus:ring-1 focus:ring-ring\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n"],"names":["Badge","className","props","jsx","cn"],"mappings":";;AAGO,SAASA,EAAM,EAAE,WAAAC,GAAW,GAAGC,KAAsC;AAE1E,SAAA,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,WAAWC;AAAA,QACV;AAAA,QACAH;AAAA,MACD;AAAA,MACC,GAAGC;AAAA,IAAA;AAAA,EACL;AAEF;"}
1
+ {"version":3,"file":"badge.es.js","sources":["../../../lib/components/ui/badge.tsx"],"sourcesContent":["import { cn } from \"@/utils\";\nimport type * as React from \"react\";\n\nexport function Badge({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tclassName={cn(\n\t\t\t\t\"text-muted transition-colors inline-flex items-center justify-center leading-none select-none bg-card border px-2 h-input py-1 focus:outline-hidden focus:ring-1 focus:ring-ring\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n"],"names":["Badge","className","props","jsx","cn"],"mappings":";;AAGO,SAASA,EAAM,EAAE,WAAAC,GAAW,GAAGC,KAAsC;AAE1E,SAAA,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,WAAWC;AAAA,QACV;AAAA,QACAH;AAAA,MACD;AAAA,MACC,GAAGC;AAAA,IAAA;AAAA,EACL;AAEF;"}
@@ -56,6 +56,14 @@ export declare function AccordionTrigger({ className, children, ...props }: Reac
56
56
  /** Reserved name for actions column */
57
57
  export declare const ACTIONS_COLUMN_ID = "Actions";
58
58
 
59
+ export declare function Alert({ children, className, variant, icon: Icon, ...props }: React.ComponentProps<'div'> & VariantProps<typeof alertVariants> & {
60
+ icon?: LucideIcon;
61
+ }): JSX.Element;
62
+
63
+ export declare const alertVariants: (props?: ({
64
+ variant?: "destructive" | "success" | "muted" | null | undefined;
65
+ } & ClassProp) | undefined) => string;
66
+
59
67
  export declare const ALL_OS: {
60
68
  [key: string]: string;
61
69
  };
package/dist/index.es.js CHANGED
@@ -7,7 +7,7 @@ import { TABLE_CHECK_BOX_COLUMN as D, TABLE_DEFAULT_DATE_COLUMNS as g, TABLE_ID_
7
7
  import { ALL_OS as P, COMPARISON_OPERATOR_LABELS as I, DEFAULT_FILTERABLE_FIELDS as M, FILTERABLE_PROPERTY_TYPES as E, FILTER_COMPARISON_OPERATORS as O, OPERATORS_FOR_FILTER_TYPE as L, RESOURCE_DEFINITIONS as A, RESOURCE_NAMES as _, getLicenseStatus as R, getResourceDisplayName as w, getValidityDisplay as F, getValueFromData as B, secondsToDuration as h } from "./components/data-table/table-utils/constants.es.js";
8
8
  import { createTableFetchFn as v } from "./components/data-table/table-utils/createTableFetchFn.es.js";
9
9
  import { FormatDate as U } from "./components/data-table/table-utils/date.es.js";
10
- import { convertCamelCaseToTitleCase as H, convertToTitleCase as k, pluralizeTimes as Y } from "./components/data-table/table-utils/string.es.js";
10
+ import { convertCamelCaseToTitleCase as H, convertToTitleCase as k, pluralizeTimes as V } from "./components/data-table/table-utils/string.es.js";
11
11
  import { DYNAMIC_INPUT_TARGET as K } from "./components/data-table/table-utils/types.es.js";
12
12
  import { Calendar as X } from "./components/inputs/calendar.es.js";
13
13
  import { Checkbox as q, TfCheckbox as J } from "./components/inputs/checkbox.es.js";
@@ -24,30 +24,31 @@ import { SingleSelect as Pe, TfSingleSelect as Ie } from "./components/inputs/se
24
24
  import { Textarea as Ee, TfTextarea as Oe } from "./components/inputs/textarea.es.js";
25
25
  import { KeyValueCard as Ae } from "./components/key-value-card/key-value-card.es.js";
26
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";
27
+ import { Alert as Ne, alertVariants as ve } from "./components/ui/alert.es.js";
28
+ import { Avatar as Ue } from "./components/ui/avatar.es.js";
29
+ import { Badge as He } from "./components/ui/badge.es.js";
30
+ import { Breadcrumb as Ve, BreadcrumbEllipsis as Ye, BreadcrumbItem as Ke, BreadcrumbLink as ze, BreadcrumbList as Xe, BreadcrumbPage as je, BreadcrumbSeparator as qe } from "./components/ui/breadcrumb.es.js";
31
+ import { Button as Qe, buttonVariants as We } from "./components/ui/button.es.js";
32
+ import { Card as $e, CardContent as er, CardDescription as rr, CardFooter as or, CardHeader as tr, CardTitle as ar } from "./components/ui/card.es.js";
33
+ import { Collapsible as ir, CollapsibleContent as pr, CollapsibleTrigger as lr } from "./components/ui/collapsible.es.js";
34
+ import { COPY_BUTTON_STATE_TIMEOUT as dr, CopyButton as mr } from "./components/ui/copy-button.es.js";
35
+ import { Dialog as Sr, DialogClose as br, DialogContent as xr, DialogDescription as fr, DialogFooter as Cr, DialogHeader as Dr, DialogOverlay as gr, DialogPortal as sr, DialogTitle as cr, DialogTrigger as Pr } from "./components/ui/dialog.es.js";
36
+ import { Drawer as Mr, DrawerClose as Er, DrawerContent as Or, DrawerDescription as Lr, DrawerFooter as Ar, DrawerHeader as _r, DrawerOverlay as Rr, DrawerPortal as wr, DrawerTitle as Fr, DrawerTrigger as Br } from "./components/ui/drawer.es.js";
37
+ import { DropdownMenu as Nr, DropdownMenuCheckboxItem as vr, DropdownMenuContent as yr, DropdownMenuGroup as Ur, DropdownMenuItem as Gr, DropdownMenuLabel as Hr, DropdownMenuPortal as kr, DropdownMenuRadioGroup as Vr, DropdownMenuRadioItem as Yr, DropdownMenuSub as Kr, DropdownMenuSubContent as zr, DropdownMenuSubTrigger as Xr, DropdownMenuTrigger as jr } from "./components/ui/dropdown-menu.es.js";
38
+ import { Label as Jr } from "./components/ui/label.es.js";
39
+ import { Loader as Wr } from "./components/ui/loader.es.js";
40
+ import { Pagination as $r, PaginationContent as eo, PaginationEllipsis as ro, PaginationItem as oo, PaginationLink as to, PaginationNext as ao, PaginationPrevious as no } from "./components/ui/pagination.es.js";
41
+ import { Popover as po, PopoverAnchor as lo, PopoverContent as To, PopoverTrigger as mo } from "./components/ui/popover.es.js";
42
+ import { Separator as So } from "./components/ui/separator.es.js";
43
+ import { Sheet as xo, SheetClose as fo, SheetContent as Co, SheetDescription as Do, SheetFooter as go, SheetHeader as so, SheetOverlay as co, SheetPortal as Po, SheetTitle as Io, SheetTrigger as Mo } from "./components/ui/sheet.es.js";
44
+ import { Sidebar as Oo, SidebarContent as Lo, SidebarContext as Ao, SidebarFooter as _o, SidebarGroup as Ro, SidebarGroupAction as wo, SidebarGroupContent as Fo, SidebarGroupLabel as Bo, SidebarHeader as ho, SidebarInset as No, SidebarMenu as vo, SidebarMenuAction as yo, SidebarMenuBadge as Uo, SidebarMenuButton as Go, SidebarMenuItem as Ho, SidebarMenuSkeleton as ko, SidebarMenuSub as Vo, SidebarMenuSubButton as Yo, SidebarMenuSubItem as Ko, SidebarProvider as zo, SidebarRail as Xo, SidebarTrigger as jo, useSidebar as qo } from "./components/ui/sidebar.es.js";
45
+ import { Skeleton as Qo } from "./components/ui/skeleton.es.js";
46
+ import { Toaster as Zo } from "./components/ui/sonner.es.js";
47
+ import { StaticDataTable as et } from "./components/ui/static-data-table.es.js";
48
+ import { Table as ot, TableBody as tt, TableCaption as at, TableCell as nt, TableFooter as it, TableHead as pt, TableHeader as lt, TableRow as Tt } from "./components/ui/table.es.js";
49
+ import { TablePageLayout as mt } from "./components/ui/table-page-layout.es.js";
50
+ import { Tabs as St, TabsContent as bt, TabsList as xt, TabsTrigger as ft } from "./components/ui/tabs.es.js";
51
+ import { Tooltip as Dt, TooltipContent as gt, TooltipProvider as st, TooltipTrigger as ct } from "./components/ui/tooltip.es.js";
51
52
  export {
52
53
  x as ACTIONS_COLUMN_ID,
53
54
  P as ALL_OS,
@@ -55,67 +56,68 @@ export {
55
56
  we as AccordionContent,
56
57
  Fe as AccordionItem,
57
58
  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,
59
+ Ne as Alert,
60
+ Ue as Avatar,
61
+ He as Badge,
62
+ Ve as Breadcrumb,
63
+ Ye as BreadcrumbEllipsis,
64
+ Ke as BreadcrumbItem,
65
+ ze as BreadcrumbLink,
66
+ Xe as BreadcrumbList,
67
+ je as BreadcrumbPage,
68
+ qe as BreadcrumbSeparator,
69
+ Qe as Button,
68
70
  I as COMPARISON_OPERATOR_LABELS,
69
- pr as COPY_BUTTON_STATE_TIMEOUT,
71
+ dr as COPY_BUTTON_STATE_TIMEOUT,
70
72
  X as Calendar,
71
- Qe as Card,
72
- We as CardContent,
73
- Ze as CardDescription,
74
- $e as CardFooter,
75
- er as CardHeader,
76
- rr as CardTitle,
73
+ $e as Card,
74
+ er as CardContent,
75
+ rr as CardDescription,
76
+ or as CardFooter,
77
+ tr as CardHeader,
78
+ ar as CardTitle,
77
79
  q as Checkbox,
78
- tr as Collapsible,
79
- ar as CollapsibleContent,
80
- nr as CollapsibleTrigger,
81
- lr as CopyButton,
80
+ ir as Collapsible,
81
+ pr as CollapsibleContent,
82
+ lr as CollapsibleTrigger,
83
+ mr as CopyButton,
82
84
  W as CountrySelect,
83
85
  M as DEFAULT_FILTERABLE_FIELDS,
84
86
  K as DYNAMIC_INPUT_TARGET,
85
87
  f as DataTable,
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,
88
+ Sr as Dialog,
89
+ br as DialogClose,
90
+ xr as DialogContent,
91
+ fr as DialogDescription,
92
+ Cr as DialogFooter,
93
+ Dr as DialogHeader,
94
+ gr as DialogOverlay,
95
+ sr as DialogPortal,
96
+ cr as DialogTitle,
97
+ Pr as DialogTrigger,
98
+ Mr as Drawer,
99
+ Er as DrawerClose,
100
+ Or as DrawerContent,
101
+ Lr as DrawerDescription,
102
+ Ar as DrawerFooter,
103
+ _r as DrawerHeader,
104
+ Rr as DrawerOverlay,
105
+ wr as DrawerPortal,
106
+ Fr as DrawerTitle,
107
+ Br as DrawerTrigger,
108
+ Nr as DropdownMenu,
109
+ vr as DropdownMenuCheckboxItem,
110
+ yr as DropdownMenuContent,
111
+ Ur as DropdownMenuGroup,
112
+ Gr as DropdownMenuItem,
113
+ Hr as DropdownMenuLabel,
114
+ kr as DropdownMenuPortal,
115
+ Vr as DropdownMenuRadioGroup,
116
+ Yr as DropdownMenuRadioItem,
117
+ Kr as DropdownMenuSub,
118
+ zr as DropdownMenuSubContent,
119
+ Xr as DropdownMenuSubTrigger,
120
+ jr as DropdownMenuTrigger,
119
121
  E as FILTERABLE_PROPERTY_TYPES,
120
122
  O as FILTER_COMPARISON_OPERATORS,
121
123
  ee as FormField,
@@ -126,79 +128,79 @@ export {
126
128
  pe as InputOTPSeparator,
127
129
  le as InputOTPSlot,
128
130
  Ae as KeyValueCard,
129
- Xr as Label,
130
- qr as Loader,
131
+ Jr as Label,
132
+ Wr as Loader,
131
133
  ue as MultiSelect,
132
134
  L as OPERATORS_FOR_FILTER_TYPE,
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,
135
+ $r as Pagination,
136
+ eo as PaginationContent,
137
+ ro as PaginationEllipsis,
138
+ oo as PaginationItem,
139
+ to as PaginationLink,
140
+ ao as PaginationNext,
141
+ no as PaginationPrevious,
140
142
  xe as PasswordInput,
141
- ao as Popover,
142
- no as PopoverAnchor,
143
- io as PopoverContent,
144
- po as PopoverTrigger,
143
+ po as Popover,
144
+ lo as PopoverAnchor,
145
+ To as PopoverContent,
146
+ mo as PopoverTrigger,
145
147
  A as RESOURCE_DEFINITIONS,
146
148
  _ as RESOURCE_NAMES,
147
149
  Ce as RadioGroup,
148
150
  De as RadioGroupItem,
149
151
  se as SearchInput,
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,
152
+ So as Separator,
153
+ xo as Sheet,
154
+ fo as SheetClose,
155
+ Co as SheetContent,
156
+ Do as SheetDescription,
157
+ go as SheetFooter,
158
+ so as SheetHeader,
159
+ co as SheetOverlay,
160
+ Po as SheetPortal,
161
+ Io as SheetTitle,
162
+ Mo as SheetTrigger,
163
+ Oo as Sidebar,
164
+ Lo as SidebarContent,
165
+ Ao as SidebarContext,
166
+ _o as SidebarFooter,
167
+ Ro as SidebarGroup,
168
+ wo as SidebarGroupAction,
169
+ Fo as SidebarGroupContent,
170
+ Bo as SidebarGroupLabel,
171
+ ho as SidebarHeader,
172
+ No as SidebarInset,
173
+ vo as SidebarMenu,
174
+ yo as SidebarMenuAction,
175
+ Uo as SidebarMenuBadge,
176
+ Go as SidebarMenuButton,
177
+ Ho as SidebarMenuItem,
178
+ ko as SidebarMenuSkeleton,
179
+ Vo as SidebarMenuSub,
180
+ Yo as SidebarMenuSubButton,
181
+ Ko as SidebarMenuSubItem,
182
+ zo as SidebarProvider,
183
+ Xo as SidebarRail,
184
+ jo as SidebarTrigger,
183
185
  Pe as SingleSelect,
184
- jo as Skeleton,
185
- Wo as StaticDataTable,
186
+ Qo as Skeleton,
187
+ et as StaticDataTable,
186
188
  D as TABLE_CHECK_BOX_COLUMN,
187
189
  g as TABLE_DEFAULT_DATE_COLUMNS,
188
190
  s as TABLE_ID_COLUMN,
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,
191
+ ot as Table,
192
+ tt as TableBody,
193
+ at as TableCaption,
194
+ nt as TableCell,
195
+ it as TableFooter,
196
+ pt as TableHead,
197
+ lt as TableHeader,
198
+ mt as TablePageLayout,
199
+ Tt as TableRow,
200
+ St as Tabs,
201
+ bt as TabsContent,
202
+ xt as TabsList,
203
+ ft as TabsTrigger,
202
204
  Ee as Textarea,
203
205
  J as TfCheckbox,
204
206
  Z as TfCountrySelect,
@@ -207,12 +209,13 @@ export {
207
209
  Se as TfMultiSelect,
208
210
  Ie as TfSingleSelect,
209
211
  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,
212
+ Zo as Toaster,
213
+ Dt as Tooltip,
214
+ gt as TooltipContent,
215
+ st as TooltipProvider,
216
+ ct as TooltipTrigger,
217
+ ve as alertVariants,
218
+ We as buttonVariants,
216
219
  a as cn,
217
220
  H as convertCamelCaseToTitleCase,
218
221
  k as convertToTitleCase,
@@ -225,12 +228,12 @@ export {
225
228
  F as getValidityDisplay,
226
229
  B as getValueFromData,
227
230
  i as logout,
228
- Y as pluralizeTimes,
231
+ V as pluralizeTimes,
229
232
  h as secondsToDuration,
230
233
  p as setThemeHue,
231
234
  S as useAppForm,
232
235
  m as useFieldContext,
233
236
  o as useIsMobile,
234
- zo as useSidebar
237
+ qo as useSidebar
235
238
  };
236
239
  //# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/lib/base.css CHANGED
@@ -31,18 +31,31 @@
31
31
  @apply bg-background text-foreground;
32
32
  }
33
33
 
34
+ code {
35
+ @apply font-mono font-bold font-stretch-extra-expanded;
36
+ }
37
+
38
+ p, ul, ol, blockquote, picture, video, pre, figure, h2, h3 {
39
+ @apply mb-4 mt-2;
40
+ }
41
+
42
+ p {
43
+ @apply body;
44
+ }
45
+
46
+ ul > li {
47
+ @apply list-disc ms-4;
48
+ }
49
+
34
50
  *::-webkit-scrollbar {
35
- width: 6px;
36
- height: 6px;
51
+ @apply size-1.5;
37
52
  }
38
53
 
39
54
  *::-webkit-scrollbar-track {
40
- background: white;
41
- border-radius: 2px;
55
+ @apply bg-background rounded-none;
42
56
  }
43
57
 
44
58
  *::-webkit-scrollbar-thumb {
45
- background-color: gray;
46
- border: 3px solid gray;
59
+ @apply bg-foreground border-2 border-solid border-foreground;
47
60
  }
48
61
  }
package/lib/theme.css CHANGED
@@ -1,29 +1,24 @@
1
1
  /** https://tailwindcss.com/docs/theme#theme-variable-namespaces */
2
2
  @theme static {
3
3
  /* Radius */
4
- --radius: 0.25rem;
5
- --radius-sm: calc(var(--radius) - 4px);
6
- --radius-md: calc(var(--radius) - 2px);
7
- --radius-lg: var(--radius);
4
+ /* TODO remove */
5
+ --radius-*: initial;
8
6
 
9
7
  /* Text Sizes */
8
+ /* Reset all default text sizes */
10
9
  --text-*: initial;
11
- --text-xs: 0.75rem;
12
- --text-xs--line-height: calc(1 / 0.75);
13
- --text-sm: 0.875rem;
14
- --text-sm--line-height: calc(1.25 / 0.875);
15
- --text-base: 1rem;
16
- --text-base--line-height: calc(1.5 / 1);
17
- --text-lg: 1.125rem;
18
- --text-lg--line-height: calc(1.75 / 1.125);
19
- --text-xl: 1.25rem;
20
- --text-xl--line-height: calc(1.75 / 1.25);
21
- --text-2xl: 1.5rem;
22
- --text-2xl--line-height: calc(2 / 1.5);
23
- --text-3xl: 1.875rem;
24
- --text-3xl--line-height: calc(2.25 / 1.875);
25
- --text-4xl: 2.25rem;
26
- --text-4xl--line-height: calc(2.5 / 2.25);
10
+
11
+ --scale: 1.125;
12
+ /* Don't change the lines below, you only need to change the --scale above. */
13
+ --text-lg: calc(1rem * var(--scale));
14
+ --text-xl: calc(var(--text-lg) * var(--scale));
15
+ --text-2xl: calc(var(--text-xl) * var(--scale));
16
+ --text-3xl: calc(var(--text-2xl) * var(--scale));
17
+ --text-4xl: calc(var(--text-3xl) * var(--scale));
18
+ --text-5xl: calc(var(--text-4xl) * var(--scale));
19
+ --text-base: calc(1rem / var(--scale));
20
+ --text-sm: calc(var(--text-base) / var(--scale));
21
+ --text-xs: calc(var(--text-sm) / var(--scale));
27
22
 
28
23
  /* Colors */
29
24
  --color-*: initial;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptlex/web-components",
3
- "version": "3.2.2",
3
+ "version": "3.2.3",
4
4
  "description": "React component library for Cryptlex web applications",
5
5
  "author": "Cryptlex",
6
6
  "type": "module",