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.
@@ -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 l = Object.defineProperty;
2
- var r = (i, o) => l(i, "name", { value: o, configurable: !0 });
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 y({
7
- options: i,
8
- placeholder: o = "Sélectionner",
9
- onChange: d,
10
- value: a,
11
- ...c
6
+ function g({
7
+ options: d,
8
+ placeholder: l = "Sélectionner",
9
+ onChange: t,
10
+ value: u,
11
+ ...o
12
12
  }) {
13
- const u = /* @__PURE__ */ r((e) => {
14
- Array.isArray(e) ? d == null || d(
15
- e.map((t) => t.value)
16
- ) : d == null || d(e == null ? void 0 : e.value);
17
- }, "handleChange"), n = /* @__PURE__ */ r(() => c.isMulti ? Array.isArray(a) ? (i == null ? void 0 : i.filter((e) => a.includes(e.value))) ?? [] : [] : i.find((e) => e.value === a) ?? null, "getSelectedOptions"), s = /* @__PURE__ */ r((e) => {
18
- const t = e.relatedTarget;
19
- t && (t.tagName === "A" || t.tagName === "BUTTON" || t.tagName === "TEXTAREA" || t.tagName === "INPUT") && t.focus();
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
- ...c,
25
- options: i,
26
- onChange: u,
27
- value: n(),
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: o,
45
+ placeholder: l,
46
46
  unstyled: !0
47
47
  }
48
48
  );
49
49
  }
50
- r(y, "Select");
50
+ r(g, "Select");
51
51
  export {
52
- y as Select
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 d, AlertDialogPortal as m, AlertDialogTitle as g, AlertDialogTrigger as x } from "./components/alert-dialog.js";
2
- import { Alert as u, AlertDescription as S, AlertTitle as f } from "./components/alert.js";
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 c } from "./components/button.js";
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 N } from "./components/date-picker.js";
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 dr, DropdownMenuShortcut as mr, DropdownMenuSub as gr, DropdownMenuSubContent as xr, DropdownMenuSubTrigger as br, DropdownMenuTrigger as ur } from "./components/dropdown-menu.js";
13
- import { FileUploader as fr } from "./components/file-uploader.js";
14
- import { HoverCard as Tr, HoverCardContent as Cr, HoverCardTrigger as sr } from "./components/hover-card.js";
15
- import { Input as Fr } from "./components/input.js";
16
- import { Label as Ar } from "./components/label.js";
17
- import { ModeToggle as hr } from "./components/mode-toggle.js";
18
- import { Pagination as vr, PaginationContent as Ir, PaginationEllipsis as Hr, PaginationItem as kr, PaginationLink as yr, PaginationNext as Br, PaginationPrevious as Lr } from "./components/pagination.js";
19
- import { PasswordRulesChecker as Rr } from "./components/password-rules-checker.js";
20
- import { Popover as Or, PopoverAnchor as Nr, PopoverContent as Ur, PopoverTrigger as jr } from "./components/popover.js";
21
- import { Select as zr } from "./components/select.js";
22
- import { Separator as Jr } from "./components/separator.js";
23
- import { Sheet as Qr, SheetBody as Wr, SheetClose as Xr, SheetContent as Yr, SheetDescription as Zr, SheetFooter as _r, SheetHeader as $r, SheetTitle as re, SheetTrigger as ee } from "./components/sheet.js";
24
- import { Sidebar as te, SidebarContent as ae, SidebarFooter as ie, SidebarGroup as ne, SidebarGroupAction as pe, SidebarGroupContent as le, SidebarGroupLabel as de, SidebarHeader as me, SidebarInput as ge, SidebarInset as xe, SidebarMenu as be, SidebarMenuAction as ue, SidebarMenuBadge as Se, SidebarMenuButton as fe, SidebarMenuItem as De, SidebarMenuSkeleton as Te, SidebarMenuSub as Ce, SidebarMenuSubButton as se, SidebarMenuSubItem as ce, SidebarProvider as Fe, SidebarRail as Me, SidebarSeparator as Ae, SidebarTrigger as Pe, useSidebar as he } from "./components/sidebar.js";
25
- import { SimplePagination as ve } from "./components/simple-pagination.js";
26
- import { SimpleTooltip as He } from "./components/simple-tooltip.js";
27
- import { Skeleton as ye } from "./components/skeleton.js";
28
- import { Switch as Le } from "./components/switch.js";
29
- import { Toaster as Re } from "./components/sonner.js";
30
- import { Table as Oe, TableBody as Ne, TableCaption as Ue, TableCell as je, TableFooter as qe, TableHead as ze, TableHeader as Ve, TableRow as Je } from "./components/table.js";
31
- import { Tabs as Qe, TabsContent as We, TabsList as Xe, TabsTrigger as Ye } from "./components/tabs.js";
32
- import { Textarea as _e } from "./components/textarea.js";
33
- import { Tooltip as ro, TooltipContent as eo, TooltipProvider as oo, TooltipTrigger as to } from "./components/tooltip.js";
34
- import { FormDate as io } from "./components/form-date.js";
35
- import { FormColorPicker as po } from "./components/form-color-picker.js";
36
- import { FormFileUploader as mo } from "./components/form-file-uploader.js";
37
- import { FormInput as xo } from "./components/form-input.js";
38
- import { FormSelect as uo } from "./components/form-select.js";
39
- import { FormSwitch as fo } from "./components/form-switch.js";
40
- import { FormTextarea as To } from "./components/form-textarea.js";
41
- import { Form as so, FormControl as co, FormDescription as Fo, FormField as Mo, FormItem as Ao, FormLabel as Po, FormMessage as ho, useFormField as wo } from "./components/form.js";
42
- import { ThemeProvider as Io, useTheme as Ho } from "./providers/theme-provider.js";
43
- import { LoaderProvider as yo, useLoader as Bo } from "./providers/loader-provider.js";
44
- import { formatDate as Go } from "./lib/dates.js";
45
- import { requestApi as Eo } from "./lib/http.js";
46
- import { isNullOrEmptyString as No } from "./lib/strings.js";
47
- import { orderBy as jo, orderByText as qo } from "./lib/arrays.js";
48
- import { apiErrorDescription as Vo, cn as Jo, manageApiFormErrors as Ko } from "./lib/utils.js";
49
- import { addMethod as Wo, array as Xo, boolean as Yo, date as Zo, lazy as _o, mixed as $o, number as rt, object as et, reach as ot, ref as tt, string as at } from "./lib/yup.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 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
- u as Alert,
52
- S as AlertDescription,
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
- d as AlertDialogOverlay,
61
- m as AlertDialogPortal,
62
+ m as AlertDialogOverlay,
63
+ d as AlertDialogPortal,
62
64
  g as AlertDialogTitle,
63
65
  x as AlertDialogTrigger,
64
- f as AlertTitle,
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
- N as DatePicker,
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
- dr as DropdownMenuSeparator,
101
- mr as DropdownMenuShortcut,
102
+ mr as DropdownMenuSeparator,
103
+ dr as DropdownMenuShortcut,
102
104
  gr as DropdownMenuSub,
103
105
  xr as DropdownMenuSubContent,
104
106
  br as DropdownMenuSubTrigger,
105
- ur as DropdownMenuTrigger,
106
- fr as FileUploader,
107
- so as Form,
108
- po as FormColorPicker,
109
- co as FormControl,
110
- io as FormDate,
111
- Fo as FormDescription,
112
- Mo as FormField,
113
- mo as FormFileUploader,
114
- xo as FormInput,
115
- Ao as FormItem,
116
- Po as FormLabel,
117
- ho as FormMessage,
118
- uo as FormSelect,
119
- fo as FormSwitch,
120
- To as FormTextarea,
121
- Tr as HoverCard,
122
- Cr as HoverCardContent,
123
- sr as HoverCardTrigger,
124
- Fr as Input,
125
- Ar as Label,
126
- yo as LoaderProvider,
127
- hr as ModeToggle,
128
- vr as Pagination,
129
- Ir as PaginationContent,
130
- Hr as PaginationEllipsis,
131
- kr as PaginationItem,
132
- yr as PaginationLink,
133
- Br as PaginationNext,
134
- Lr as PaginationPrevious,
135
- Rr as PasswordRulesChecker,
136
- Or as Popover,
137
- Nr as PopoverAnchor,
138
- Ur as PopoverContent,
139
- jr as PopoverTrigger,
140
- zr as Select,
141
- Jr as Separator,
142
- Qr as Sheet,
143
- Wr as SheetBody,
144
- Xr as SheetClose,
145
- Yr as SheetContent,
146
- Zr as SheetDescription,
147
- _r as SheetFooter,
148
- $r as SheetHeader,
149
- re as SheetTitle,
150
- ee as SheetTrigger,
151
- te as Sidebar,
152
- ae as SidebarContent,
153
- ie as SidebarFooter,
154
- ne as SidebarGroup,
155
- pe as SidebarGroupAction,
156
- le as SidebarGroupContent,
157
- de as SidebarGroupLabel,
158
- me as SidebarHeader,
159
- ge as SidebarInput,
160
- xe as SidebarInset,
161
- be as SidebarMenu,
162
- ue as SidebarMenuAction,
163
- Se as SidebarMenuBadge,
164
- fe as SidebarMenuButton,
165
- De as SidebarMenuItem,
166
- Te as SidebarMenuSkeleton,
167
- Ce as SidebarMenuSub,
168
- se as SidebarMenuSubButton,
169
- ce as SidebarMenuSubItem,
170
- Fe as SidebarProvider,
171
- Me as SidebarRail,
172
- Ae as SidebarSeparator,
173
- Pe as SidebarTrigger,
174
- ve as SimplePagination,
175
- He as SimpleTooltip,
176
- ye as Skeleton,
177
- Le as Switch,
178
- Oe as Table,
179
- Ne as TableBody,
180
- Ue as TableCaption,
181
- je as TableCell,
182
- qe as TableFooter,
183
- ze as TableHead,
184
- Ve as TableHeader,
185
- Je as TableRow,
186
- Qe as Tabs,
187
- We as TabsContent,
188
- Xe as TabsList,
189
- Ye as TabsTrigger,
190
- _e as Textarea,
191
- Io as ThemeProvider,
192
- Re as Toaster,
193
- ro as Tooltip,
194
- eo as TooltipContent,
195
- oo as TooltipProvider,
196
- to as TooltipTrigger,
197
- Wo as addMethod,
198
- Vo as apiErrorDescription,
199
- Xo as array,
200
- Yo as boolean,
201
- c as buttonVariants,
202
- Jo as cn,
203
- Zo as date,
204
- Go as formatDate,
205
- No as isNullOrEmptyString,
206
- _o as lazy,
207
- Ko as manageApiFormErrors,
208
- $o as mixed,
209
- rt as number,
210
- et as object,
211
- jo as orderBy,
212
- qo as orderByText,
213
- ot as reach,
214
- tt as ref,
215
- Eo as requestApi,
216
- at as string,
217
- wo as useFormField,
218
- Bo as useLoader,
219
- he as useSidebar,
220
- Ho as useTheme
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
  };
@@ -1,4 +1,4 @@
1
- /*! tailwindcss v4.1.13 | MIT License | https://tailwindcss.com */
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
  }
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "https://github.com/F1na/fina-react-ds"
6
6
  },
7
7
  "private": false,
8
- "version": "1.0.35",
8
+ "version": "1.0.37",
9
9
  "type": "module",
10
10
  "files": [
11
11
  "dist"