fina-react-ds 1.0.35 → 1.0.37
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/form-image-uploader.d.ts +7 -0
- package/dist/components/form-image-uploader.js +31 -0
- package/dist/components/image-uploader.d.ts +8 -0
- package/dist/components/image-uploader.js +131 -0
- package/dist/components/select.js +22 -22
- package/dist/index.d.ts +2 -0
- package/dist/index.js +170 -166
- package/dist/themes/base.css +10 -1
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ImageUploader } from "./image-uploader";
|
|
2
|
+
export declare function FormImageUploader({ name, label, required, actualImageUrl, ...props }: {
|
|
3
|
+
name: string;
|
|
4
|
+
label: string;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
actualImageUrl?: string;
|
|
7
|
+
} & React.ComponentProps<typeof ImageUploader>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var d = Object.defineProperty;
|
|
2
|
+
var m = (o, e) => d(o, "name", { value: e, configurable: !0 });
|
|
3
|
+
import { jsx as r, jsxs as s } from "react/jsx-runtime";
|
|
4
|
+
import { useFormContext as F } from "react-hook-form";
|
|
5
|
+
import { FormField as f, FormItem as p, FormLabel as c, FormControl as u, FormMessage as x } from "./form.js";
|
|
6
|
+
import { ImageUploader as g } from "./image-uploader.js";
|
|
7
|
+
function v({
|
|
8
|
+
name: o,
|
|
9
|
+
label: e,
|
|
10
|
+
required: t = !1,
|
|
11
|
+
actualImageUrl: l = "",
|
|
12
|
+
...n
|
|
13
|
+
}) {
|
|
14
|
+
const { control: i } = F();
|
|
15
|
+
return /* @__PURE__ */ r(
|
|
16
|
+
f,
|
|
17
|
+
{
|
|
18
|
+
control: i,
|
|
19
|
+
name: o,
|
|
20
|
+
render: /* @__PURE__ */ m(({ field: { value: h, ...a } }) => /* @__PURE__ */ s(p, { children: [
|
|
21
|
+
/* @__PURE__ */ r(c, { required: t, children: e }),
|
|
22
|
+
/* @__PURE__ */ r(u, { children: /* @__PURE__ */ r(g, { actualImageUrl: l, ...a, ...n }) }),
|
|
23
|
+
/* @__PURE__ */ r(x, {})
|
|
24
|
+
] }), "render")
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
m(v, "FormImageUploader");
|
|
29
|
+
export {
|
|
30
|
+
v as FormImageUploader
|
|
31
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function ImageUploader({ onChange, "aria-invalid": ariaInvalid, ref, actualImageUrl, }: {
|
|
2
|
+
onChange?: (file: File | null) => void;
|
|
3
|
+
"aria-invalid"?: boolean;
|
|
4
|
+
ref?: React.ForwardedRef<{
|
|
5
|
+
focus: () => void;
|
|
6
|
+
}>;
|
|
7
|
+
actualImageUrl?: string;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
var k = Object.defineProperty;
|
|
2
|
+
var l = (r, n) => k(r, "name", { value: n, configurable: !0 });
|
|
3
|
+
import { jsxs as s, jsx as i, Fragment as x } from "react/jsx-runtime";
|
|
4
|
+
import { useState as F, useImperativeHandle as D, useCallback as b } from "react";
|
|
5
|
+
import { FileIcon as I, UploadIcon as w } from "lucide-react";
|
|
6
|
+
import { useDropzone as P } from "react-dropzone";
|
|
7
|
+
import { cn as o } from "../lib/utils.js";
|
|
8
|
+
import { Button as S } from "./button.js";
|
|
9
|
+
function q({
|
|
10
|
+
onChange: r,
|
|
11
|
+
"aria-invalid": n,
|
|
12
|
+
ref: v,
|
|
13
|
+
actualImageUrl: a = ""
|
|
14
|
+
}) {
|
|
15
|
+
const d = {
|
|
16
|
+
"image/jpeg": ["*"],
|
|
17
|
+
"image/png": ["*"],
|
|
18
|
+
"image/gif": ["*"]
|
|
19
|
+
}, [m, u] = F([]);
|
|
20
|
+
D(v, () => ({
|
|
21
|
+
focus: /* @__PURE__ */ l(() => {
|
|
22
|
+
e != null && e.current && e.current.focus();
|
|
23
|
+
}, "focus")
|
|
24
|
+
}));
|
|
25
|
+
const g = b(
|
|
26
|
+
(t) => {
|
|
27
|
+
u(t), r == null || r(t.length > 0 ? t[0] : null);
|
|
28
|
+
},
|
|
29
|
+
[r]
|
|
30
|
+
), h = /* @__PURE__ */ l(() => {
|
|
31
|
+
e != null && e.current && e.current.focus();
|
|
32
|
+
}, "handleFileDialogCancel"), { getRootProps: N, getInputProps: y, acceptedFiles: p, open: j, rootRef: e } = P({
|
|
33
|
+
maxFiles: 1,
|
|
34
|
+
noClick: !0,
|
|
35
|
+
onDrop: g,
|
|
36
|
+
onFileDialogCancel: h,
|
|
37
|
+
accept: d
|
|
38
|
+
}), z = b((t) => {
|
|
39
|
+
let c = 0, f = "ko";
|
|
40
|
+
return c = t.size / 1e3, c > 1e3 && (c /= 1e3, f = "mo"), c.toFixed(2) + " " + f;
|
|
41
|
+
}, []);
|
|
42
|
+
return /* @__PURE__ */ s("div", { className: "flex space-x-2 items-center h-50", children: [
|
|
43
|
+
a && /* @__PURE__ */ i("div", { className: "flex-1 h-full", children: /* @__PURE__ */ i(
|
|
44
|
+
"img",
|
|
45
|
+
{
|
|
46
|
+
src: a,
|
|
47
|
+
alt: "Preview",
|
|
48
|
+
className: "w-full h-full object-cover object-center rounded-md"
|
|
49
|
+
}
|
|
50
|
+
) }),
|
|
51
|
+
/* @__PURE__ */ s(
|
|
52
|
+
"div",
|
|
53
|
+
{
|
|
54
|
+
...N(),
|
|
55
|
+
className: o(
|
|
56
|
+
"bg-input border border-input-border flex flex-col h-50 flex-2 rounded-md px-3 py-1 text-base shadow-xs items-center justify-center md:text-sm outline-none",
|
|
57
|
+
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
58
|
+
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive"
|
|
59
|
+
),
|
|
60
|
+
"aria-invalid": n,
|
|
61
|
+
children: [
|
|
62
|
+
m.length > 0 && /* @__PURE__ */ s(x, { children: [
|
|
63
|
+
/* @__PURE__ */ i(
|
|
64
|
+
"div",
|
|
65
|
+
{
|
|
66
|
+
className: o(
|
|
67
|
+
"bg-primary text-primary-foreground flex items-center justify-center rounded-full size-10 mb-4"
|
|
68
|
+
),
|
|
69
|
+
children: /* @__PURE__ */ i(I, { className: "size-4" })
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
/* @__PURE__ */ s("div", { className: "mb-4 text-center", children: [
|
|
73
|
+
p[0].name,
|
|
74
|
+
/* @__PURE__ */ i("br", {}),
|
|
75
|
+
z(p[0])
|
|
76
|
+
] }),
|
|
77
|
+
/* @__PURE__ */ i(
|
|
78
|
+
S,
|
|
79
|
+
{
|
|
80
|
+
type: "button",
|
|
81
|
+
color: "destructive",
|
|
82
|
+
variant: "ghost",
|
|
83
|
+
onClick: /* @__PURE__ */ l(() => {
|
|
84
|
+
var t;
|
|
85
|
+
u([]), r == null || r(null), (t = e == null ? void 0 : e.current) == null || t.focus();
|
|
86
|
+
}, "onClick"),
|
|
87
|
+
children: "Supprimer"
|
|
88
|
+
}
|
|
89
|
+
)
|
|
90
|
+
] }),
|
|
91
|
+
m.length === 0 && /* @__PURE__ */ s(x, { children: [
|
|
92
|
+
/* @__PURE__ */ i(
|
|
93
|
+
"div",
|
|
94
|
+
{
|
|
95
|
+
className: o(
|
|
96
|
+
"bg-primary text-primary-foreground flex items-center justify-center rounded-full size-10 mb-4"
|
|
97
|
+
),
|
|
98
|
+
children: /* @__PURE__ */ i(w, { className: "size-4" })
|
|
99
|
+
}
|
|
100
|
+
),
|
|
101
|
+
/* @__PURE__ */ s("div", { className: "mb-4", children: [
|
|
102
|
+
"Glisser-déposer ou",
|
|
103
|
+
" ",
|
|
104
|
+
/* @__PURE__ */ i(
|
|
105
|
+
"span",
|
|
106
|
+
{
|
|
107
|
+
className: "font-bold underline cursor-pointer",
|
|
108
|
+
onClick: j,
|
|
109
|
+
children: "Choisir un fichier"
|
|
110
|
+
}
|
|
111
|
+
),
|
|
112
|
+
" ",
|
|
113
|
+
"à uploader"
|
|
114
|
+
] }),
|
|
115
|
+
/* @__PURE__ */ s("div", { className: "text-center text-sm md:text-xs", children: [
|
|
116
|
+
"Formats acceptés : ",
|
|
117
|
+
Object.keys(d).join(", "),
|
|
118
|
+
/* @__PURE__ */ i("br", {}),
|
|
119
|
+
"Taille max : 5Mo"
|
|
120
|
+
] })
|
|
121
|
+
] }),
|
|
122
|
+
/* @__PURE__ */ i("input", { ...y() })
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
)
|
|
126
|
+
] });
|
|
127
|
+
}
|
|
128
|
+
l(q, "ImageUploader");
|
|
129
|
+
export {
|
|
130
|
+
q as ImageUploader
|
|
131
|
+
};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
var
|
|
2
|
-
var r = (
|
|
1
|
+
var n = Object.defineProperty;
|
|
2
|
+
var r = (d, l) => n(d, "name", { value: l, configurable: !0 });
|
|
3
3
|
import { jsx as m } from "react/jsx-runtime";
|
|
4
4
|
import p from "clsx";
|
|
5
5
|
import f from "react-select";
|
|
6
|
-
function
|
|
7
|
-
options:
|
|
8
|
-
placeholder:
|
|
9
|
-
onChange:
|
|
10
|
-
value:
|
|
11
|
-
...
|
|
6
|
+
function g({
|
|
7
|
+
options: d,
|
|
8
|
+
placeholder: l = "Sélectionner",
|
|
9
|
+
onChange: t,
|
|
10
|
+
value: u,
|
|
11
|
+
...o
|
|
12
12
|
}) {
|
|
13
|
-
const
|
|
14
|
-
Array.isArray(e) ?
|
|
15
|
-
e.map((
|
|
16
|
-
) :
|
|
17
|
-
}, "handleChange"),
|
|
18
|
-
const
|
|
19
|
-
|
|
13
|
+
const c = /* @__PURE__ */ r((e) => {
|
|
14
|
+
Array.isArray(e) ? t == null || t(
|
|
15
|
+
e.map((i) => i.value)
|
|
16
|
+
) : e === null ? t == null || t(null) : t == null || t(e.value);
|
|
17
|
+
}, "handleChange"), a = /* @__PURE__ */ r(() => o.isMulti ? Array.isArray(u) ? (d == null ? void 0 : d.filter((e) => u.includes(e.value))) ?? [] : [] : d.find((e) => e.value === u) ?? null, "getSelectedOptions"), s = /* @__PURE__ */ r((e) => {
|
|
18
|
+
const i = e.relatedTarget;
|
|
19
|
+
i && (i.tagName === "A" || i.tagName === "BUTTON" || i.tagName === "TEXTAREA" || i.tagName === "INPUT") && i.focus();
|
|
20
20
|
}, "onBlurWorkaround");
|
|
21
21
|
return /* @__PURE__ */ m(
|
|
22
22
|
f,
|
|
23
23
|
{
|
|
24
|
-
...
|
|
25
|
-
options:
|
|
26
|
-
onChange:
|
|
27
|
-
value:
|
|
24
|
+
...o,
|
|
25
|
+
options: d,
|
|
26
|
+
onChange: c,
|
|
27
|
+
value: a(),
|
|
28
28
|
classNames: {
|
|
29
29
|
control: /* @__PURE__ */ r(() => "px-3 py-1 border bg-input rounded-md text-base md:text-sm min-h-9! shadow-none border-input-border has-[:focus]:border-ring has-[:focus]:ring-[3px] ring-ring/50 has-aria-invalid:border-destructive! has-aria-invalid:ring-destructive/20! has-aria-invalid:dark:ring-destructive/40!", "control"),
|
|
30
30
|
menu: /* @__PURE__ */ r(() => "bg-popover border rounded-md py-0 overflow-hidden shadow-md mt-2", "menu"),
|
|
@@ -42,12 +42,12 @@ function y({
|
|
|
42
42
|
noOptionsMessage: /* @__PURE__ */ r(() => "py-2", "noOptionsMessage")
|
|
43
43
|
},
|
|
44
44
|
onBlur: s,
|
|
45
|
-
placeholder:
|
|
45
|
+
placeholder: l,
|
|
46
46
|
unstyled: !0
|
|
47
47
|
}
|
|
48
48
|
);
|
|
49
49
|
}
|
|
50
|
-
r(
|
|
50
|
+
r(g, "Select");
|
|
51
51
|
export {
|
|
52
|
-
|
|
52
|
+
g as Select
|
|
53
53
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, Di
|
|
|
11
11
|
export { DataLoader } from "./components/data-loader";
|
|
12
12
|
export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, } from "./components/dropdown-menu";
|
|
13
13
|
export { FileUploader } from "./components/file-uploader";
|
|
14
|
+
export { ImageUploader } from "./components/image-uploader";
|
|
14
15
|
export { HoverCard, HoverCardTrigger, HoverCardContent, } from "./components/hover-card";
|
|
15
16
|
export { Input } from "./components/input";
|
|
16
17
|
export { Label } from "./components/label";
|
|
@@ -38,6 +39,7 @@ export { FormInput } from "./components/form-input";
|
|
|
38
39
|
export { FormSelect } from "./components/form-select";
|
|
39
40
|
export { FormSwitch } from "./components/form-switch";
|
|
40
41
|
export { FormTextarea } from "./components/form-textarea";
|
|
42
|
+
export { FormImageUploader } from "./components/form-image-uploader";
|
|
41
43
|
export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, } from "./components/form";
|
|
42
44
|
export { ThemeProvider, useTheme } from "./providers/theme-provider";
|
|
43
45
|
export { LoaderProvider, useLoader } from "./providers/loader-provider";
|
package/dist/index.js
CHANGED
|
@@ -1,55 +1,57 @@
|
|
|
1
|
-
import { AlertDialog as o, AlertDialogAction as t, AlertDialogCancel as a, AlertDialogContent as i, AlertDialogDescription as n, AlertDialogFooter as p, AlertDialogHeader as l, AlertDialogOverlay as
|
|
2
|
-
import { Alert as
|
|
1
|
+
import { AlertDialog as o, AlertDialogAction as t, AlertDialogCancel as a, AlertDialogContent as i, AlertDialogDescription as n, AlertDialogFooter as p, AlertDialogHeader as l, AlertDialogOverlay as m, AlertDialogPortal as d, AlertDialogTitle as g, AlertDialogTrigger as x } from "./components/alert-dialog.js";
|
|
2
|
+
import { Alert as f, AlertDescription as u, AlertTitle as S } from "./components/alert.js";
|
|
3
3
|
import { Badge as T } from "./components/badge.js";
|
|
4
|
-
import { Button as s, buttonVariants as
|
|
4
|
+
import { Button as s, buttonVariants as F } from "./components/button.js";
|
|
5
5
|
import { Avatar as M, AvatarFallback as A, AvatarImage as P } from "./components/avatar.js";
|
|
6
6
|
import { Calendar as w } from "./components/calendar.js";
|
|
7
7
|
import { Card as I, CardAction as H, CardContent as k, CardDescription as y, CardFooter as B, CardHeader as L, CardTitle as G } from "./components/card.js";
|
|
8
8
|
import { Checkbox as E } from "./components/checkbox.js";
|
|
9
|
-
import { DatePicker as
|
|
9
|
+
import { DatePicker as O } from "./components/date-picker.js";
|
|
10
10
|
import { Dialog as j, DialogClose as q, DialogContent as z, DialogDescription as V, DialogFooter as J, DialogHeader as K, DialogOverlay as Q, DialogPortal as W, DialogTitle as X, DialogTrigger as Y } from "./components/dialog.js";
|
|
11
11
|
import { DataLoader as _ } from "./components/data-loader.js";
|
|
12
|
-
import { DropdownMenu as rr, DropdownMenuCheckboxItem as er, DropdownMenuContent as or, DropdownMenuGroup as tr, DropdownMenuItem as ar, DropdownMenuLabel as ir, DropdownMenuPortal as nr, DropdownMenuRadioGroup as pr, DropdownMenuRadioItem as lr, DropdownMenuSeparator as
|
|
13
|
-
import { FileUploader as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
12
|
+
import { DropdownMenu as rr, DropdownMenuCheckboxItem as er, DropdownMenuContent as or, DropdownMenuGroup as tr, DropdownMenuItem as ar, DropdownMenuLabel as ir, DropdownMenuPortal as nr, DropdownMenuRadioGroup as pr, DropdownMenuRadioItem as lr, DropdownMenuSeparator as mr, DropdownMenuShortcut as dr, DropdownMenuSub as gr, DropdownMenuSubContent as xr, DropdownMenuSubTrigger as br, DropdownMenuTrigger as fr } from "./components/dropdown-menu.js";
|
|
13
|
+
import { FileUploader as Sr } from "./components/file-uploader.js";
|
|
14
|
+
import { ImageUploader as Tr } from "./components/image-uploader.js";
|
|
15
|
+
import { HoverCard as sr, HoverCardContent as Fr, HoverCardTrigger as cr } from "./components/hover-card.js";
|
|
16
|
+
import { Input as Ar } from "./components/input.js";
|
|
17
|
+
import { Label as hr } from "./components/label.js";
|
|
18
|
+
import { ModeToggle as vr } from "./components/mode-toggle.js";
|
|
19
|
+
import { Pagination as Hr, PaginationContent as kr, PaginationEllipsis as yr, PaginationItem as Br, PaginationLink as Lr, PaginationNext as Gr, PaginationPrevious as Rr } from "./components/pagination.js";
|
|
20
|
+
import { PasswordRulesChecker as Ur } from "./components/password-rules-checker.js";
|
|
21
|
+
import { Popover as Nr, PopoverAnchor as jr, PopoverContent as qr, PopoverTrigger as zr } from "./components/popover.js";
|
|
22
|
+
import { Select as Jr } from "./components/select.js";
|
|
23
|
+
import { Separator as Qr } from "./components/separator.js";
|
|
24
|
+
import { Sheet as Xr, SheetBody as Yr, SheetClose as Zr, SheetContent as _r, SheetDescription as $r, SheetFooter as re, SheetHeader as ee, SheetTitle as oe, SheetTrigger as te } from "./components/sheet.js";
|
|
25
|
+
import { Sidebar as ie, SidebarContent as ne, SidebarFooter as pe, SidebarGroup as le, SidebarGroupAction as me, SidebarGroupContent as de, SidebarGroupLabel as ge, SidebarHeader as xe, SidebarInput as be, SidebarInset as fe, SidebarMenu as ue, SidebarMenuAction as Se, SidebarMenuBadge as De, SidebarMenuButton as Te, SidebarMenuItem as Ce, SidebarMenuSkeleton as se, SidebarMenuSub as Fe, SidebarMenuSubButton as ce, SidebarMenuSubItem as Me, SidebarProvider as Ae, SidebarRail as Pe, SidebarSeparator as he, SidebarTrigger as we, useSidebar as ve } from "./components/sidebar.js";
|
|
26
|
+
import { SimplePagination as He } from "./components/simple-pagination.js";
|
|
27
|
+
import { SimpleTooltip as ye } from "./components/simple-tooltip.js";
|
|
28
|
+
import { Skeleton as Le } from "./components/skeleton.js";
|
|
29
|
+
import { Switch as Re } from "./components/switch.js";
|
|
30
|
+
import { Toaster as Ue } from "./components/sonner.js";
|
|
31
|
+
import { Table as Ne, TableBody as je, TableCaption as qe, TableCell as ze, TableFooter as Ve, TableHead as Je, TableHeader as Ke, TableRow as Qe } from "./components/table.js";
|
|
32
|
+
import { Tabs as Xe, TabsContent as Ye, TabsList as Ze, TabsTrigger as _e } from "./components/tabs.js";
|
|
33
|
+
import { Textarea as ro } from "./components/textarea.js";
|
|
34
|
+
import { Tooltip as oo, TooltipContent as to, TooltipProvider as ao, TooltipTrigger as io } from "./components/tooltip.js";
|
|
35
|
+
import { FormDate as po } from "./components/form-date.js";
|
|
36
|
+
import { FormColorPicker as mo } from "./components/form-color-picker.js";
|
|
37
|
+
import { FormFileUploader as xo } from "./components/form-file-uploader.js";
|
|
38
|
+
import { FormInput as fo } from "./components/form-input.js";
|
|
39
|
+
import { FormSelect as So } from "./components/form-select.js";
|
|
40
|
+
import { FormSwitch as To } from "./components/form-switch.js";
|
|
41
|
+
import { FormTextarea as so } from "./components/form-textarea.js";
|
|
42
|
+
import { FormImageUploader as co } from "./components/form-image-uploader.js";
|
|
43
|
+
import { Form as Ao, FormControl as Po, FormDescription as ho, FormField as wo, FormItem as vo, FormLabel as Io, FormMessage as Ho, useFormField as ko } from "./components/form.js";
|
|
44
|
+
import { ThemeProvider as Bo, useTheme as Lo } from "./providers/theme-provider.js";
|
|
45
|
+
import { LoaderProvider as Ro, useLoader as Eo } from "./providers/loader-provider.js";
|
|
46
|
+
import { formatDate as Oo } from "./lib/dates.js";
|
|
47
|
+
import { requestApi as jo } from "./lib/http.js";
|
|
48
|
+
import { isNullOrEmptyString as zo } from "./lib/strings.js";
|
|
49
|
+
import { orderBy as Jo, orderByText as Ko } from "./lib/arrays.js";
|
|
50
|
+
import { apiErrorDescription as Wo, cn as Xo, manageApiFormErrors as Yo } from "./lib/utils.js";
|
|
51
|
+
import { addMethod as _o, array as $o, boolean as rt, date as et, lazy as ot, mixed as tt, number as at, object as it, reach as nt, ref as pt, string as lt } from "./lib/yup.js";
|
|
50
52
|
export {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
+
f as Alert,
|
|
54
|
+
u as AlertDescription,
|
|
53
55
|
o as AlertDialog,
|
|
54
56
|
t as AlertDialogAction,
|
|
55
57
|
a as AlertDialogCancel,
|
|
@@ -57,11 +59,11 @@ export {
|
|
|
57
59
|
n as AlertDialogDescription,
|
|
58
60
|
p as AlertDialogFooter,
|
|
59
61
|
l as AlertDialogHeader,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
+
m as AlertDialogOverlay,
|
|
63
|
+
d as AlertDialogPortal,
|
|
62
64
|
g as AlertDialogTitle,
|
|
63
65
|
x as AlertDialogTrigger,
|
|
64
|
-
|
|
66
|
+
S as AlertTitle,
|
|
65
67
|
M as Avatar,
|
|
66
68
|
A as AvatarFallback,
|
|
67
69
|
P as AvatarImage,
|
|
@@ -77,7 +79,7 @@ export {
|
|
|
77
79
|
G as CardTitle,
|
|
78
80
|
E as Checkbox,
|
|
79
81
|
_ as DataLoader,
|
|
80
|
-
|
|
82
|
+
O as DatePicker,
|
|
81
83
|
j as Dialog,
|
|
82
84
|
q as DialogClose,
|
|
83
85
|
z as DialogContent,
|
|
@@ -97,125 +99,127 @@ export {
|
|
|
97
99
|
nr as DropdownMenuPortal,
|
|
98
100
|
pr as DropdownMenuRadioGroup,
|
|
99
101
|
lr as DropdownMenuRadioItem,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
+
mr as DropdownMenuSeparator,
|
|
103
|
+
dr as DropdownMenuShortcut,
|
|
102
104
|
gr as DropdownMenuSub,
|
|
103
105
|
xr as DropdownMenuSubContent,
|
|
104
106
|
br as DropdownMenuSubTrigger,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
To as
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
hr as
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
Hr as
|
|
131
|
-
kr as
|
|
132
|
-
yr as
|
|
133
|
-
Br as
|
|
134
|
-
Lr as
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
jr as
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
Xr as
|
|
145
|
-
Yr as
|
|
146
|
-
Zr as
|
|
147
|
-
_r as
|
|
148
|
-
$r as
|
|
149
|
-
re as
|
|
150
|
-
ee as
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
ie as
|
|
154
|
-
ne as
|
|
155
|
-
pe as
|
|
156
|
-
le as
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
ge as
|
|
160
|
-
xe as
|
|
161
|
-
be as
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
De as
|
|
166
|
-
Te as
|
|
167
|
-
Ce as
|
|
168
|
-
se as
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
Me as
|
|
172
|
-
Ae as
|
|
173
|
-
Pe as
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
je as
|
|
182
|
-
qe as
|
|
183
|
-
ze as
|
|
184
|
-
Ve as
|
|
185
|
-
Je as
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
Xe as
|
|
189
|
-
Ye as
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
oo as
|
|
196
|
-
to as
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
107
|
+
fr as DropdownMenuTrigger,
|
|
108
|
+
Sr as FileUploader,
|
|
109
|
+
Ao as Form,
|
|
110
|
+
mo as FormColorPicker,
|
|
111
|
+
Po as FormControl,
|
|
112
|
+
po as FormDate,
|
|
113
|
+
ho as FormDescription,
|
|
114
|
+
wo as FormField,
|
|
115
|
+
xo as FormFileUploader,
|
|
116
|
+
co as FormImageUploader,
|
|
117
|
+
fo as FormInput,
|
|
118
|
+
vo as FormItem,
|
|
119
|
+
Io as FormLabel,
|
|
120
|
+
Ho as FormMessage,
|
|
121
|
+
So as FormSelect,
|
|
122
|
+
To as FormSwitch,
|
|
123
|
+
so as FormTextarea,
|
|
124
|
+
sr as HoverCard,
|
|
125
|
+
Fr as HoverCardContent,
|
|
126
|
+
cr as HoverCardTrigger,
|
|
127
|
+
Tr as ImageUploader,
|
|
128
|
+
Ar as Input,
|
|
129
|
+
hr as Label,
|
|
130
|
+
Ro as LoaderProvider,
|
|
131
|
+
vr as ModeToggle,
|
|
132
|
+
Hr as Pagination,
|
|
133
|
+
kr as PaginationContent,
|
|
134
|
+
yr as PaginationEllipsis,
|
|
135
|
+
Br as PaginationItem,
|
|
136
|
+
Lr as PaginationLink,
|
|
137
|
+
Gr as PaginationNext,
|
|
138
|
+
Rr as PaginationPrevious,
|
|
139
|
+
Ur as PasswordRulesChecker,
|
|
140
|
+
Nr as Popover,
|
|
141
|
+
jr as PopoverAnchor,
|
|
142
|
+
qr as PopoverContent,
|
|
143
|
+
zr as PopoverTrigger,
|
|
144
|
+
Jr as Select,
|
|
145
|
+
Qr as Separator,
|
|
146
|
+
Xr as Sheet,
|
|
147
|
+
Yr as SheetBody,
|
|
148
|
+
Zr as SheetClose,
|
|
149
|
+
_r as SheetContent,
|
|
150
|
+
$r as SheetDescription,
|
|
151
|
+
re as SheetFooter,
|
|
152
|
+
ee as SheetHeader,
|
|
153
|
+
oe as SheetTitle,
|
|
154
|
+
te as SheetTrigger,
|
|
155
|
+
ie as Sidebar,
|
|
156
|
+
ne as SidebarContent,
|
|
157
|
+
pe as SidebarFooter,
|
|
158
|
+
le as SidebarGroup,
|
|
159
|
+
me as SidebarGroupAction,
|
|
160
|
+
de as SidebarGroupContent,
|
|
161
|
+
ge as SidebarGroupLabel,
|
|
162
|
+
xe as SidebarHeader,
|
|
163
|
+
be as SidebarInput,
|
|
164
|
+
fe as SidebarInset,
|
|
165
|
+
ue as SidebarMenu,
|
|
166
|
+
Se as SidebarMenuAction,
|
|
167
|
+
De as SidebarMenuBadge,
|
|
168
|
+
Te as SidebarMenuButton,
|
|
169
|
+
Ce as SidebarMenuItem,
|
|
170
|
+
se as SidebarMenuSkeleton,
|
|
171
|
+
Fe as SidebarMenuSub,
|
|
172
|
+
ce as SidebarMenuSubButton,
|
|
173
|
+
Me as SidebarMenuSubItem,
|
|
174
|
+
Ae as SidebarProvider,
|
|
175
|
+
Pe as SidebarRail,
|
|
176
|
+
he as SidebarSeparator,
|
|
177
|
+
we as SidebarTrigger,
|
|
178
|
+
He as SimplePagination,
|
|
179
|
+
ye as SimpleTooltip,
|
|
180
|
+
Le as Skeleton,
|
|
181
|
+
Re as Switch,
|
|
182
|
+
Ne as Table,
|
|
183
|
+
je as TableBody,
|
|
184
|
+
qe as TableCaption,
|
|
185
|
+
ze as TableCell,
|
|
186
|
+
Ve as TableFooter,
|
|
187
|
+
Je as TableHead,
|
|
188
|
+
Ke as TableHeader,
|
|
189
|
+
Qe as TableRow,
|
|
190
|
+
Xe as Tabs,
|
|
191
|
+
Ye as TabsContent,
|
|
192
|
+
Ze as TabsList,
|
|
193
|
+
_e as TabsTrigger,
|
|
194
|
+
ro as Textarea,
|
|
195
|
+
Bo as ThemeProvider,
|
|
196
|
+
Ue as Toaster,
|
|
197
|
+
oo as Tooltip,
|
|
198
|
+
to as TooltipContent,
|
|
199
|
+
ao as TooltipProvider,
|
|
200
|
+
io as TooltipTrigger,
|
|
201
|
+
_o as addMethod,
|
|
202
|
+
Wo as apiErrorDescription,
|
|
203
|
+
$o as array,
|
|
204
|
+
rt as boolean,
|
|
205
|
+
F as buttonVariants,
|
|
206
|
+
Xo as cn,
|
|
207
|
+
et as date,
|
|
208
|
+
Oo as formatDate,
|
|
209
|
+
zo as isNullOrEmptyString,
|
|
210
|
+
ot as lazy,
|
|
211
|
+
Yo as manageApiFormErrors,
|
|
212
|
+
tt as mixed,
|
|
213
|
+
at as number,
|
|
214
|
+
it as object,
|
|
215
|
+
Jo as orderBy,
|
|
216
|
+
Ko as orderByText,
|
|
217
|
+
nt as reach,
|
|
218
|
+
pt as ref,
|
|
219
|
+
jo as requestApi,
|
|
220
|
+
lt as string,
|
|
221
|
+
ko as useFormField,
|
|
222
|
+
Eo as useLoader,
|
|
223
|
+
ve as useSidebar,
|
|
224
|
+
Lo as useTheme
|
|
221
225
|
};
|
package/dist/themes/base.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! tailwindcss v4.1.
|
|
1
|
+
/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */
|
|
2
2
|
@layer properties;
|
|
3
3
|
@layer theme, base, components, utilities;
|
|
4
4
|
@layer theme {
|
|
@@ -538,6 +538,9 @@
|
|
|
538
538
|
.flex-1 {
|
|
539
539
|
flex: 1;
|
|
540
540
|
}
|
|
541
|
+
.flex-2 {
|
|
542
|
+
flex: 2;
|
|
543
|
+
}
|
|
541
544
|
.flex-none {
|
|
542
545
|
flex: none;
|
|
543
546
|
}
|
|
@@ -913,6 +916,12 @@
|
|
|
913
916
|
.fill-dark {
|
|
914
917
|
fill: var(--dark);
|
|
915
918
|
}
|
|
919
|
+
.object-cover {
|
|
920
|
+
object-fit: cover;
|
|
921
|
+
}
|
|
922
|
+
.object-center {
|
|
923
|
+
object-position: center;
|
|
924
|
+
}
|
|
916
925
|
.p-0 {
|
|
917
926
|
padding: calc(var(--spacing) * 0);
|
|
918
927
|
}
|