@cryptlex/web-components 3.3.0 → 3.3.2
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/timeline.es.js +22 -17
- package/dist/components/ui/timeline.es.js.map +1 -1
- package/dist/index.es.d.ts +11 -8
- package/dist/index.es.js +24 -22
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as n, jsxs as a } from "react/jsx-runtime";
|
|
2
2
|
import { Separator as c } from "./separator.es.js";
|
|
3
|
-
import { cn as
|
|
3
|
+
import { cn as i } from "../../utils/index.es.js";
|
|
4
4
|
import { cva as l } from "class-variance-authority";
|
|
5
|
-
function
|
|
6
|
-
return /* @__PURE__ */
|
|
5
|
+
function p({ className: t, ...e }) {
|
|
6
|
+
return /* @__PURE__ */ n("ol", { className: i("flex flex-col gap-4", t), ...e });
|
|
7
7
|
}
|
|
8
8
|
const m = l(
|
|
9
9
|
"p-1 rounded-full",
|
|
@@ -20,23 +20,28 @@ const m = l(
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
);
|
|
23
|
-
function
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
/* @__PURE__ */ t("section", { className: r("grow", i), children: s })
|
|
23
|
+
function x({ className: t, ...e }) {
|
|
24
|
+
return /* @__PURE__ */ n("li", { className: i("flex list-none gap-4", t), ...e });
|
|
25
|
+
}
|
|
26
|
+
function v({ icon: t, className: e, variant: r, ...o }) {
|
|
27
|
+
return /* @__PURE__ */ a("div", { ...o, className: "flex flex-col items-center gap-2", children: [
|
|
28
|
+
/* @__PURE__ */ n("div", { className: i(m({ variant: r, className: e })), children: /* @__PURE__ */ n(t, { className: "size-icon " }) }),
|
|
29
|
+
/* @__PURE__ */ n(c, { decorative: !0, orientation: "vertical" })
|
|
31
30
|
] });
|
|
32
31
|
}
|
|
33
|
-
function
|
|
34
|
-
|
|
32
|
+
function N({ className: t, date: e, dateFormatter: r, ...o }) {
|
|
33
|
+
const s = `${(e.getMonth() + 1).toString().padStart(2, "0")}-${e.getFullYear()}`;
|
|
34
|
+
return /* @__PURE__ */ n("time", { ...o, dateTime: e.toISOString(), className: i("font-mono leading-none text-muted", t), children: r ? r(e) : s });
|
|
35
|
+
}
|
|
36
|
+
function T({ className: t, ...e }) {
|
|
37
|
+
return /* @__PURE__ */ n("section", { className: i("", t), ...e });
|
|
35
38
|
}
|
|
36
39
|
export {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
+
p as Timeline,
|
|
41
|
+
T as TimelineContent,
|
|
42
|
+
N as TimelineDate,
|
|
43
|
+
v as TimelineIcon,
|
|
44
|
+
x as TimelineItem,
|
|
40
45
|
m as timelineIconVariants
|
|
41
46
|
};
|
|
42
47
|
//# sourceMappingURL=timeline.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeline.es.js","sources":["../../../lib/components/ui/timeline.tsx"],"sourcesContent":["import { Separator } from \"@/components/ui/separator\";\nimport { cn } from \"@/utils\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport type { LucideIcon } from \"lucide-react\";\n\nexport function Timeline({ className, ...props }: React.ComponentProps<'ol'>) {\n return <ol className={cn(\"flex flex-col gap-4\", className)} {...props} />\n}\n\nexport const timelineIconVariants = cva(\n `p-1 rounded-full`,\n {\n variants: {\n variant: {\n destructive: \"text-destructive-foreground bg-destructive\",\n success: \"text-success-foreground bg-success\",\n muted: \"text-muted-foreground bg-muted\",\n },\n },\n defaultVariants: {\n variant: \"muted\",\n },\n },\n);\nexport function TimelineItem({
|
|
1
|
+
{"version":3,"file":"timeline.es.js","sources":["../../../lib/components/ui/timeline.tsx"],"sourcesContent":["import { Separator } from \"@/components/ui/separator\";\nimport { cn } from \"@/utils\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport type { LucideIcon } from \"lucide-react\";\n\nexport function Timeline({ className, ...props }: React.ComponentProps<'ol'>) {\n return <ol className={cn(\"flex flex-col gap-4\", className)} {...props} />\n}\n\nexport const timelineIconVariants = cva(\n `p-1 rounded-full`,\n {\n variants: {\n variant: {\n destructive: \"text-destructive-foreground bg-destructive\",\n success: \"text-success-foreground bg-success\",\n muted: \"text-muted-foreground bg-muted\",\n },\n },\n defaultVariants: {\n variant: \"muted\",\n },\n },\n);\nexport function TimelineItem({ className, ...props }: React.ComponentProps<'li'> & {}) {\n\n return (\n <li className={cn(\"flex list-none gap-4\", className)} {...props} />\n )\n}\n\nexport function TimelineIcon({ icon: Icon, className, variant, ...props }: Omit<React.ComponentProps<'div'>, 'children'> & VariantProps<typeof timelineIconVariants> & {\n icon: LucideIcon\n}) {\n return <div {...props} className=\"flex flex-col items-center gap-2\">\n <div className={cn(timelineIconVariants({ variant, className }))}>\n <Icon className=\"size-icon \" />\n </div>\n <Separator decorative orientation=\"vertical\" />\n </div>\n}\n\nexport function TimelineDate({ className, date, dateFormatter, ...props }: Omit<React.ComponentProps<'time'>, 'dateTime' | 'children'> & {\n date: Date\n dateFormatter?: (d: Date) => string;\n}) {\n const defaultDateDisplay = `${(date.getMonth() + 1).toString().padStart(2, '0')}-${date.getFullYear()}`;\n return <time {...props} dateTime={date.toISOString()} className={cn(\"font-mono leading-none text-muted\", className)}>{dateFormatter ? dateFormatter(date) : defaultDateDisplay}</time>\n}\n\nexport function TimelineContent({ className, ...props }: React.ComponentProps<'section'>) {\n return <section className={cn(\"\", className)} {...props} />;\n}"],"names":["Timeline","className","props","jsx","cn","timelineIconVariants","cva","TimelineItem","TimelineIcon","Icon","variant","jsxs","Separator","TimelineDate","date","dateFormatter","defaultDateDisplay","TimelineContent"],"mappings":";;;;AAKO,SAASA,EAAS,EAAE,WAAAC,GAAW,GAAGC,KAAqC;AACnE,SAAA,gBAAAC,EAAC,QAAG,WAAWC,EAAG,uBAAuBH,CAAS,GAAI,GAAGC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I,GAAGC,GAAO;AAC7D;"}
|
package/dist/index.es.d.ts
CHANGED
|
@@ -691,20 +691,23 @@ export declare interface TfTextareaProps extends Omit<React_2.ComponentProps<typ
|
|
|
691
691
|
|
|
692
692
|
export declare function Timeline({ className, ...props }: React.ComponentProps<'ol'>): JSX.Element;
|
|
693
693
|
|
|
694
|
-
export declare
|
|
695
|
-
variant?: "destructive" | "success" | "muted" | null | undefined;
|
|
696
|
-
} & ClassProp) | undefined) => string;
|
|
694
|
+
export declare function TimelineContent({ className, ...props }: React.ComponentProps<'section'>): JSX.Element;
|
|
697
695
|
|
|
698
|
-
export declare function
|
|
696
|
+
export declare function TimelineDate({ className, date, dateFormatter, ...props }: Omit<React.ComponentProps<'time'>, 'dateTime' | 'children'> & {
|
|
699
697
|
date: Date;
|
|
700
|
-
|
|
701
|
-
iconVariant?: VariantProps<typeof timelineIconVariants>;
|
|
698
|
+
dateFormatter?: (d: Date) => string;
|
|
702
699
|
}): JSX.Element;
|
|
703
700
|
|
|
704
|
-
export declare function
|
|
705
|
-
|
|
701
|
+
export declare function TimelineIcon({ icon: Icon, className, variant, ...props }: Omit<React.ComponentProps<'div'>, 'children'> & VariantProps<typeof timelineIconVariants> & {
|
|
702
|
+
icon: LucideIcon;
|
|
706
703
|
}): JSX.Element;
|
|
707
704
|
|
|
705
|
+
export declare const timelineIconVariants: (props?: ({
|
|
706
|
+
variant?: "destructive" | "success" | "muted" | null | undefined;
|
|
707
|
+
} & ClassProp) | undefined) => string;
|
|
708
|
+
|
|
709
|
+
export declare function TimelineItem({ className, ...props }: React.ComponentProps<'li'> & {}): JSX.Element;
|
|
710
|
+
|
|
708
711
|
export declare function Toaster({ ...props }: ToasterProps): JSX.Element;
|
|
709
712
|
|
|
710
713
|
declare type ToasterProps = React.ComponentProps<typeof Toaster_2>;
|
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useIsMobile as o } from "./hooks/use-mobile.es.js";
|
|
2
|
-
import { cn as a, getThemeHue as
|
|
2
|
+
import { cn as a, getThemeHue as n, logout as i, setThemeHue as p } from "./utils/index.es.js";
|
|
3
3
|
import { fieldContext as T, formContext as m, useFieldContext as d } 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";
|
|
@@ -14,7 +14,7 @@ import { Checkbox as q, TfCheckbox as J } from "./components/inputs/checkbox.es.
|
|
|
14
14
|
import { CountrySelect as W, TfCountrySelect as Z } from "./components/inputs/country-select.es.js";
|
|
15
15
|
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
|
-
import { InputOTP as
|
|
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 me } from "./components/inputs/license-type-select.es.js";
|
|
19
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";
|
|
@@ -30,14 +30,14 @@ import { Badge as He } from "./components/ui/badge.es.js";
|
|
|
30
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
31
|
import { Button as Qe, buttonVariants as We } from "./components/ui/button.es.js";
|
|
32
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
|
|
33
|
+
import { Collapsible as ir, CollapsibleContent as pr, CollapsibleTrigger as lr } from "./components/ui/collapsible.es.js";
|
|
34
34
|
import { COPY_BUTTON_STATE_TIMEOUT as mr, CopyButton as dr } from "./components/ui/copy-button.es.js";
|
|
35
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 Ir } from "./components/ui/dialog.es.js";
|
|
36
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
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
38
|
import { Label as Jr } from "./components/ui/label.es.js";
|
|
39
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
|
|
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
41
|
import { Popover as po, PopoverAnchor as lo, PopoverContent as To, PopoverTrigger as mo } from "./components/ui/popover.es.js";
|
|
42
42
|
import { Separator as So } from "./components/ui/separator.es.js";
|
|
43
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 Io, SheetTitle as Po, SheetTrigger as Mo } from "./components/ui/sheet.es.js";
|
|
@@ -45,11 +45,11 @@ import { Sidebar as Oo, SidebarContent as Lo, SidebarContext as Ao, SidebarFoote
|
|
|
45
45
|
import { Skeleton as Qo } from "./components/ui/skeleton.es.js";
|
|
46
46
|
import { Toaster as Zo } from "./components/ui/sonner.es.js";
|
|
47
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
|
|
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
49
|
import { TablePageLayout as dt } from "./components/ui/table-page-layout.es.js";
|
|
50
50
|
import { Tabs as St, TabsContent as bt, TabsList as xt, TabsTrigger as ft } from "./components/ui/tabs.es.js";
|
|
51
|
-
import { Timeline as Dt,
|
|
52
|
-
import { Tooltip as
|
|
51
|
+
import { Timeline as Dt, TimelineContent as gt, TimelineDate as st, TimelineIcon as ct, TimelineItem as It, timelineIconVariants as Pt } from "./components/ui/timeline.es.js";
|
|
52
|
+
import { Tooltip as Et, TooltipContent as Ot, TooltipProvider as Lt, TooltipTrigger as At } from "./components/ui/tooltip.es.js";
|
|
53
53
|
export {
|
|
54
54
|
x as ACTIONS_COLUMN_ID,
|
|
55
55
|
I as ALL_OS,
|
|
@@ -78,7 +78,7 @@ export {
|
|
|
78
78
|
tr as CardHeader,
|
|
79
79
|
ar as CardTitle,
|
|
80
80
|
q as Checkbox,
|
|
81
|
-
|
|
81
|
+
ir as Collapsible,
|
|
82
82
|
pr as CollapsibleContent,
|
|
83
83
|
lr as CollapsibleTrigger,
|
|
84
84
|
dr as CopyButton,
|
|
@@ -124,8 +124,8 @@ export {
|
|
|
124
124
|
ee as FormField,
|
|
125
125
|
U as FormatDate,
|
|
126
126
|
oe as Input,
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
ne as InputOTP,
|
|
128
|
+
ie as InputOTPGroup,
|
|
129
129
|
pe as InputOTPSeparator,
|
|
130
130
|
le as InputOTPSlot,
|
|
131
131
|
Ae as KeyValueCard,
|
|
@@ -139,7 +139,7 @@ export {
|
|
|
139
139
|
oo as PaginationItem,
|
|
140
140
|
to as PaginationLink,
|
|
141
141
|
ao as PaginationNext,
|
|
142
|
-
|
|
142
|
+
no as PaginationPrevious,
|
|
143
143
|
xe as PasswordInput,
|
|
144
144
|
po as Popover,
|
|
145
145
|
lo as PopoverAnchor,
|
|
@@ -192,8 +192,8 @@ export {
|
|
|
192
192
|
ot as Table,
|
|
193
193
|
tt as TableBody,
|
|
194
194
|
at as TableCaption,
|
|
195
|
-
|
|
196
|
-
|
|
195
|
+
nt as TableCell,
|
|
196
|
+
it as TableFooter,
|
|
197
197
|
pt as TableHead,
|
|
198
198
|
lt as TableHeader,
|
|
199
199
|
dt as TablePageLayout,
|
|
@@ -211,13 +211,15 @@ export {
|
|
|
211
211
|
Pe as TfSingleSelect,
|
|
212
212
|
Oe as TfTextarea,
|
|
213
213
|
Dt as Timeline,
|
|
214
|
-
gt as
|
|
215
|
-
st as
|
|
214
|
+
gt as TimelineContent,
|
|
215
|
+
st as TimelineDate,
|
|
216
|
+
ct as TimelineIcon,
|
|
217
|
+
It as TimelineItem,
|
|
216
218
|
Zo as Toaster,
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
219
|
+
Et as Tooltip,
|
|
220
|
+
Ot as TooltipContent,
|
|
221
|
+
Lt as TooltipProvider,
|
|
222
|
+
At as TooltipTrigger,
|
|
221
223
|
ve as alertVariants,
|
|
222
224
|
We as buttonVariants,
|
|
223
225
|
a as cn,
|
|
@@ -228,14 +230,14 @@ export {
|
|
|
228
230
|
m as formContext,
|
|
229
231
|
R as getLicenseStatus,
|
|
230
232
|
w as getResourceDisplayName,
|
|
231
|
-
|
|
233
|
+
n as getThemeHue,
|
|
232
234
|
F as getValidityDisplay,
|
|
233
235
|
B as getValueFromData,
|
|
234
|
-
|
|
236
|
+
i as logout,
|
|
235
237
|
V as pluralizeTimes,
|
|
236
238
|
h as secondsToDuration,
|
|
237
239
|
p as setThemeHue,
|
|
238
|
-
|
|
240
|
+
Pt as timelineIconVariants,
|
|
239
241
|
S as useAppForm,
|
|
240
242
|
d as useFieldContext,
|
|
241
243
|
o as useIsMobile,
|