fina-react-ds 1.0.39 → 1.0.42
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/alert-dialog.js +1 -166
- package/dist/components/alert.js +1 -73
- package/dist/components/avatar.js +1 -58
- package/dist/components/badge.js +1 -44
- package/dist/components/button.js +1 -153
- package/dist/components/calendar.js +1 -205
- package/dist/components/card.js +1 -99
- package/dist/components/checkbox.js +1 -34
- package/dist/components/data-loader.js +1 -24
- package/dist/components/date-picker.js +1 -64
- package/dist/components/dialog.js +1 -145
- package/dist/components/dropdown-menu.js +1 -248
- package/dist/components/file-uploader.js +1 -108
- package/dist/components/form-color-picker.js +1 -29
- package/dist/components/form-date.js +1 -30
- package/dist/components/form-file-uploader.js +1 -32
- package/dist/components/form-image-uploader.js +1 -40
- package/dist/components/form-input.js +1 -35
- package/dist/components/form-select.js +1 -51
- package/dist/components/form-switch.js +1 -35
- package/dist/components/form-textarea.js +1 -35
- package/dist/components/form.js +1 -110
- package/dist/components/hover-card.js +1 -43
- package/dist/components/image-uploader.js +1 -130
- package/dist/components/index.js +1 -200
- package/dist/components/input.js +1 -26
- package/dist/components/label.js +1 -32
- package/dist/components/mode-toggle.js +1 -26
- package/dist/components/pagination.js +1 -128
- package/dist/components/password-rules-checker.js +1 -44
- package/dist/components/popover.js +1 -50
- package/dist/components/select.js +1 -53
- package/dist/components/separator.js +1 -29
- package/dist/components/sheet.js +1 -160
- package/dist/components/sidebar.js +1 -624
- package/dist/components/simple-pagination.js +1 -34
- package/dist/components/simple-tooltip.js +1 -17
- package/dist/components/skeleton.js +1 -18
- package/dist/components/sonner.js +1 -24
- package/dist/components/switch.js +1 -34
- package/dist/components/table.js +1 -124
- package/dist/components/tabs.js +1 -73
- package/dist/components/textarea.js +1 -23
- package/dist/components/tooltip.js +1 -61
- package/dist/hooks/index.js +1 -4
- package/dist/hooks/use-mobile.js +1 -17
- package/dist/index.js +1 -225
- package/dist/lib/arrays.js +1 -7
- package/dist/lib/dates.js +1 -21
- package/dist/lib/http.js +1 -56
- package/dist/lib/index.js +1 -27
- package/dist/lib/strings.js +1 -6
- package/dist/lib/utils.js +2 -31
- package/dist/lib/yup.js +1 -88
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.js +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatDistance.js +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatLong.js +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatRelative.js +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/localize.js +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/match.js +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr.js +1 -0
- package/dist/providers/loader-provider.js +1 -34
- package/dist/providers/theme-provider.js +1 -45
- package/package.json +2 -10
package/dist/index.js
CHANGED
|
@@ -1,225 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Alert as f, AlertDescription as u, AlertTitle as S } from "./components/alert.js";
|
|
3
|
-
import { Badge as T } from "./components/badge.js";
|
|
4
|
-
import { Button as s, buttonVariants as F } from "./components/button.js";
|
|
5
|
-
import { Avatar as M, AvatarFallback as A, AvatarImage as P } from "./components/avatar.js";
|
|
6
|
-
import { Calendar as w } from "./components/calendar.js";
|
|
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
|
-
import { Checkbox as E } from "./components/checkbox.js";
|
|
9
|
-
import { DatePicker as O } from "./components/date-picker.js";
|
|
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
|
-
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 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";
|
|
52
|
-
export {
|
|
53
|
-
f as Alert,
|
|
54
|
-
u as AlertDescription,
|
|
55
|
-
o as AlertDialog,
|
|
56
|
-
t as AlertDialogAction,
|
|
57
|
-
a as AlertDialogCancel,
|
|
58
|
-
i as AlertDialogContent,
|
|
59
|
-
n as AlertDialogDescription,
|
|
60
|
-
p as AlertDialogFooter,
|
|
61
|
-
l as AlertDialogHeader,
|
|
62
|
-
m as AlertDialogOverlay,
|
|
63
|
-
d as AlertDialogPortal,
|
|
64
|
-
g as AlertDialogTitle,
|
|
65
|
-
x as AlertDialogTrigger,
|
|
66
|
-
S as AlertTitle,
|
|
67
|
-
M as Avatar,
|
|
68
|
-
A as AvatarFallback,
|
|
69
|
-
P as AvatarImage,
|
|
70
|
-
T as Badge,
|
|
71
|
-
s as Button,
|
|
72
|
-
w as Calendar,
|
|
73
|
-
I as Card,
|
|
74
|
-
H as CardAction,
|
|
75
|
-
k as CardContent,
|
|
76
|
-
y as CardDescription,
|
|
77
|
-
B as CardFooter,
|
|
78
|
-
L as CardHeader,
|
|
79
|
-
G as CardTitle,
|
|
80
|
-
E as Checkbox,
|
|
81
|
-
_ as DataLoader,
|
|
82
|
-
O as DatePicker,
|
|
83
|
-
j as Dialog,
|
|
84
|
-
q as DialogClose,
|
|
85
|
-
z as DialogContent,
|
|
86
|
-
V as DialogDescription,
|
|
87
|
-
J as DialogFooter,
|
|
88
|
-
K as DialogHeader,
|
|
89
|
-
Q as DialogOverlay,
|
|
90
|
-
W as DialogPortal,
|
|
91
|
-
X as DialogTitle,
|
|
92
|
-
Y as DialogTrigger,
|
|
93
|
-
rr as DropdownMenu,
|
|
94
|
-
er as DropdownMenuCheckboxItem,
|
|
95
|
-
or as DropdownMenuContent,
|
|
96
|
-
tr as DropdownMenuGroup,
|
|
97
|
-
ar as DropdownMenuItem,
|
|
98
|
-
ir as DropdownMenuLabel,
|
|
99
|
-
nr as DropdownMenuPortal,
|
|
100
|
-
pr as DropdownMenuRadioGroup,
|
|
101
|
-
lr as DropdownMenuRadioItem,
|
|
102
|
-
mr as DropdownMenuSeparator,
|
|
103
|
-
dr as DropdownMenuShortcut,
|
|
104
|
-
gr as DropdownMenuSub,
|
|
105
|
-
xr as DropdownMenuSubContent,
|
|
106
|
-
br as DropdownMenuSubTrigger,
|
|
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
|
|
225
|
-
};
|
|
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";import{Alert as f,AlertDescription as u,AlertTitle as S}from"./components/alert.js";import{Badge as T}from"./components/badge.js";import{Button as s,buttonVariants as F}from"./components/button.js";import{Avatar as M,AvatarFallback as A,AvatarImage as P}from"./components/avatar.js";import{Calendar as w}from"./components/calendar.js";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";import{Checkbox as E}from"./components/checkbox.js";import{DatePicker as O}from"./components/date-picker.js";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";import{DataLoader as _}from"./components/data-loader.js";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";import{FileUploader as Sr}from"./components/file-uploader.js";import{ImageUploader as Tr}from"./components/image-uploader.js";import{HoverCard as sr,HoverCardContent as Fr,HoverCardTrigger as cr}from"./components/hover-card.js";import{Input as Ar}from"./components/input.js";import{Label as hr}from"./components/label.js";import{ModeToggle as vr}from"./components/mode-toggle.js";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";import{PasswordRulesChecker as Ur}from"./components/password-rules-checker.js";import{Popover as Nr,PopoverAnchor as jr,PopoverContent as qr,PopoverTrigger as zr}from"./components/popover.js";import{Select as Jr}from"./components/select.js";import{Separator as Qr}from"./components/separator.js";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";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";import{SimplePagination as He}from"./components/simple-pagination.js";import{SimpleTooltip as ye}from"./components/simple-tooltip.js";import{Skeleton as Le}from"./components/skeleton.js";import{Switch as Re}from"./components/switch.js";import{Toaster as Ue}from"./components/sonner.js";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";import{Tabs as Xe,TabsContent as Ye,TabsList as Ze,TabsTrigger as _e}from"./components/tabs.js";import{Textarea as ro}from"./components/textarea.js";import{Tooltip as oo,TooltipContent as to,TooltipProvider as ao,TooltipTrigger as io}from"./components/tooltip.js";import{FormDate as po}from"./components/form-date.js";import{FormColorPicker as mo}from"./components/form-color-picker.js";import{FormFileUploader as xo}from"./components/form-file-uploader.js";import{FormInput as fo}from"./components/form-input.js";import{FormSelect as So}from"./components/form-select.js";import{FormSwitch as To}from"./components/form-switch.js";import{FormTextarea as so}from"./components/form-textarea.js";import{FormImageUploader as co}from"./components/form-image-uploader.js";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";import{ThemeProvider as Bo,useTheme as Lo}from"./providers/theme-provider.js";import{LoaderProvider as Ro,useLoader as Eo}from"./providers/loader-provider.js";import{formatDate as Oo}from"./lib/dates.js";import{requestApi as jo}from"./lib/http.js";import{isNullOrEmptyString as zo}from"./lib/strings.js";import{orderBy as Jo,orderByText as Ko}from"./lib/arrays.js";import{apiErrorDescription as Wo,cn as Xo,manageApiFormErrors as Yo}from"./lib/utils.js";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";export{f as Alert,u as AlertDescription,o as AlertDialog,t as AlertDialogAction,a as AlertDialogCancel,i as AlertDialogContent,n as AlertDialogDescription,p as AlertDialogFooter,l as AlertDialogHeader,m as AlertDialogOverlay,d as AlertDialogPortal,g as AlertDialogTitle,x as AlertDialogTrigger,S as AlertTitle,M as Avatar,A as AvatarFallback,P as AvatarImage,T as Badge,s as Button,w as Calendar,I as Card,H as CardAction,k as CardContent,y as CardDescription,B as CardFooter,L as CardHeader,G as CardTitle,E as Checkbox,_ as DataLoader,O as DatePicker,j as Dialog,q as DialogClose,z as DialogContent,V as DialogDescription,J as DialogFooter,K as DialogHeader,Q as DialogOverlay,W as DialogPortal,X as DialogTitle,Y as DialogTrigger,rr as DropdownMenu,er as DropdownMenuCheckboxItem,or as DropdownMenuContent,tr as DropdownMenuGroup,ar as DropdownMenuItem,ir as DropdownMenuLabel,nr as DropdownMenuPortal,pr as DropdownMenuRadioGroup,lr as DropdownMenuRadioItem,mr as DropdownMenuSeparator,dr as DropdownMenuShortcut,gr as DropdownMenuSub,xr as DropdownMenuSubContent,br as DropdownMenuSubTrigger,fr as DropdownMenuTrigger,Sr as FileUploader,Ao as Form,mo as FormColorPicker,Po as FormControl,po as FormDate,ho as FormDescription,wo as FormField,xo as FormFileUploader,co as FormImageUploader,fo as FormInput,vo as FormItem,Io as FormLabel,Ho as FormMessage,So as FormSelect,To as FormSwitch,so as FormTextarea,sr as HoverCard,Fr as HoverCardContent,cr as HoverCardTrigger,Tr as ImageUploader,Ar as Input,hr as Label,Ro as LoaderProvider,vr as ModeToggle,Hr as Pagination,kr as PaginationContent,yr as PaginationEllipsis,Br as PaginationItem,Lr as PaginationLink,Gr as PaginationNext,Rr as PaginationPrevious,Ur as PasswordRulesChecker,Nr as Popover,jr as PopoverAnchor,qr as PopoverContent,zr as PopoverTrigger,Jr as Select,Qr as Separator,Xr as Sheet,Yr as SheetBody,Zr as SheetClose,_r as SheetContent,$r as SheetDescription,re as SheetFooter,ee as SheetHeader,oe as SheetTitle,te as SheetTrigger,ie as Sidebar,ne as SidebarContent,pe as SidebarFooter,le as SidebarGroup,me as SidebarGroupAction,de as SidebarGroupContent,ge as SidebarGroupLabel,xe as SidebarHeader,be as SidebarInput,fe as SidebarInset,ue as SidebarMenu,Se as SidebarMenuAction,De as SidebarMenuBadge,Te as SidebarMenuButton,Ce as SidebarMenuItem,se as SidebarMenuSkeleton,Fe as SidebarMenuSub,ce as SidebarMenuSubButton,Me as SidebarMenuSubItem,Ae as SidebarProvider,Pe as SidebarRail,he as SidebarSeparator,we as SidebarTrigger,He as SimplePagination,ye as SimpleTooltip,Le as Skeleton,Re as Switch,Ne as Table,je as TableBody,qe as TableCaption,ze as TableCell,Ve as TableFooter,Je as TableHead,Ke as TableHeader,Qe as TableRow,Xe as Tabs,Ye as TabsContent,Ze as TabsList,_e as TabsTrigger,ro as Textarea,Bo as ThemeProvider,Ue as Toaster,oo as Tooltip,to as TooltipContent,ao as TooltipProvider,io as TooltipTrigger,_o as addMethod,Wo as apiErrorDescription,$o as array,rt as boolean,F as buttonVariants,Xo as cn,et as date,Oo as formatDate,zo as isNullOrEmptyString,ot as lazy,Yo as manageApiFormErrors,tt as mixed,at as number,it as object,Jo as orderBy,Ko as orderByText,nt as reach,pt as ref,jo as requestApi,lt as string,ko as useFormField,Eo as useLoader,ve as useSidebar,Lo as useTheme};
|
package/dist/lib/arrays.js
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
var u
|
|
2
|
-
var c = (r, t) => u(r, "name", { value: t, configurable: !0 });
|
|
3
|
-
const f = /* @__PURE__ */ c((r, t, s = "asc") => r.sort((e, n) => e[t].toLowerCase() < n[t].toLowerCase() ? s === "asc" ? -1 : 1 : e[t].toLowerCase() > n[t].toLowerCase() ? s === "asc" ? 1 : -1 : 0), "orderByText"), i = /* @__PURE__ */ c((r, t, s = "asc") => r.sort((e, n) => e[t] < n[t] ? s === "asc" ? -1 : 1 : e[t] > n[t] ? s === "asc" ? 1 : -1 : 0), "orderBy");
|
|
4
|
-
export {
|
|
5
|
-
i as orderBy,
|
|
6
|
-
f as orderByText
|
|
7
|
-
};
|
|
1
|
+
var u=Object.defineProperty;var c=(r,t)=>u(r,"name",{value:t,configurable:!0});const f=c((r,t,s="asc")=>r.sort((e,n)=>e[t].toLowerCase()<n[t].toLowerCase()?s==="asc"?-1:1:e[t].toLowerCase()>n[t].toLowerCase()?s==="asc"?1:-1:0),"orderByText"),i=c((r,t,s="asc")=>r.sort((e,n)=>e[t]<n[t]?s==="asc"?-1:1:e[t]>n[t]?s==="asc"?1:-1:0),"orderBy");export{i as orderBy,f as orderByText};
|
package/dist/lib/dates.js
CHANGED
|
@@ -1,21 +1 @@
|
|
|
1
|
-
var o
|
|
2
|
-
var l = (r, a) => o(r, "name", { value: a, configurable: !0 });
|
|
3
|
-
import { format as e } from "date-fns";
|
|
4
|
-
import { fr as y } from "../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr.js";
|
|
5
|
-
const i = /* @__PURE__ */ l((r, a) => {
|
|
6
|
-
switch (a) {
|
|
7
|
-
case "api":
|
|
8
|
-
return e(r, "yyyy-MM-dd", { locale: y });
|
|
9
|
-
case "displayDate":
|
|
10
|
-
return e(r, "dd/MM/yyyy", { locale: y });
|
|
11
|
-
case "displayDateTime":
|
|
12
|
-
return e(r, "dd/MM/yyyy HH:mm", { locale: y });
|
|
13
|
-
case "displayTime":
|
|
14
|
-
return e(r, "HH:mm", { locale: y });
|
|
15
|
-
default:
|
|
16
|
-
return e(r, a, { locale: y });
|
|
17
|
-
}
|
|
18
|
-
}, "formatDate");
|
|
19
|
-
export {
|
|
20
|
-
i as formatDate
|
|
21
|
-
};
|
|
1
|
+
var o=Object.defineProperty;var l=(r,a)=>o(r,"name",{value:a,configurable:!0});import{format as e}from"date-fns";import{fr as y}from"../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr.js";const i=l((r,a)=>{switch(a){case"api":return e(r,"yyyy-MM-dd",{locale:y});case"displayDate":return e(r,"dd/MM/yyyy",{locale:y});case"displayDateTime":return e(r,"dd/MM/yyyy HH:mm",{locale:y});case"displayTime":return e(r,"HH:mm",{locale:y});default:return e(r,a,{locale:y})}},"formatDate");export{i as formatDate};
|
package/dist/lib/http.js
CHANGED
|
@@ -1,56 +1 @@
|
|
|
1
|
-
var p = Object.
|
|
2
|
-
var n = (t, r) => p(t, "name", { value: r, configurable: !0 });
|
|
3
|
-
import m from "qs";
|
|
4
|
-
const h = /* @__PURE__ */ n((t) => t != null, "valueExists"), j = /* @__PURE__ */ n((t, r) => {
|
|
5
|
-
if (t) {
|
|
6
|
-
if (t instanceof FormData)
|
|
7
|
-
return t;
|
|
8
|
-
if (r) {
|
|
9
|
-
const a = new FormData();
|
|
10
|
-
return Object.keys(t).forEach((e) => {
|
|
11
|
-
if (Array.isArray(t[e]))
|
|
12
|
-
for (const s of t[e])
|
|
13
|
-
a.append(`${e}[]`, s || "");
|
|
14
|
-
else
|
|
15
|
-
a.append(e, h(t[e]) ? t[e] : "");
|
|
16
|
-
}), a;
|
|
17
|
-
}
|
|
18
|
-
return JSON.stringify(t);
|
|
19
|
-
}
|
|
20
|
-
}, "formatBodyForRequest"), d = /* @__PURE__ */ n((t, r = null) => {
|
|
21
|
-
let a = t;
|
|
22
|
-
return r && (a += `?${m.stringify(r, { encode: !1 })}`), a;
|
|
23
|
-
}, "formatUrlForRequest"), v = /* @__PURE__ */ n(async (t, r, a = null, e = null, s = null, i = !1) => {
|
|
24
|
-
const u = new Headers({
|
|
25
|
-
Accept: "application/json",
|
|
26
|
-
...s
|
|
27
|
-
});
|
|
28
|
-
!i && !(e instanceof FormData) && u.append("Content-Type", "application/json");
|
|
29
|
-
const l = {
|
|
30
|
-
method: t,
|
|
31
|
-
headers: u,
|
|
32
|
-
body: j(e, i)
|
|
33
|
-
};
|
|
34
|
-
let o = null;
|
|
35
|
-
const c = await fetch(
|
|
36
|
-
d(r, a),
|
|
37
|
-
l
|
|
38
|
-
).catch((f) => (o = f, null));
|
|
39
|
-
return o ? Promise.reject(o) : g(c);
|
|
40
|
-
}, "requestApi"), g = /* @__PURE__ */ n(async (t) => {
|
|
41
|
-
if (t.status === 204)
|
|
42
|
-
return Promise.resolve(null);
|
|
43
|
-
const r = await (t.headers.get("Content-Type") === "application/json" ? t.json() : t.blob()).catch(() => "Response parsing error");
|
|
44
|
-
return t.status >= 200 && t.status < 300 ? Promise.resolve(r) : t.status >= 400 && t.status <= 500 ? Promise.reject({
|
|
45
|
-
status: t.status,
|
|
46
|
-
raw: r,
|
|
47
|
-
message: r
|
|
48
|
-
}) : Promise.reject({
|
|
49
|
-
status: t.status,
|
|
50
|
-
raw: "",
|
|
51
|
-
message: ""
|
|
52
|
-
});
|
|
53
|
-
}, "handleResponse");
|
|
54
|
-
export {
|
|
55
|
-
v as requestApi
|
|
56
|
-
};
|
|
1
|
+
var p=Object.defineProperty;var n=(t,r)=>p(t,"name",{value:r,configurable:!0});import m from"qs";const h=n(t=>t!=null,"valueExists"),j=n((t,r)=>{if(t){if(t instanceof FormData)return t;if(r){const a=new FormData;return Object.keys(t).forEach(e=>{if(Array.isArray(t[e]))for(const s of t[e])a.append(`${e}[]`,s||"");else a.append(e,h(t[e])?t[e]:"")}),a}return JSON.stringify(t)}},"formatBodyForRequest"),d=n((t,r=null)=>{let a=t;return r&&(a+=`?${m.stringify(r,{encode:!1})}`),a},"formatUrlForRequest"),v=n(async(t,r,a=null,e=null,s=null,i=!1)=>{const u=new Headers({Accept:"application/json",...s});!i&&!(e instanceof FormData)&&u.append("Content-Type","application/json");const l={method:t,headers:u,body:j(e,i)};let o=null;const c=await fetch(d(r,a),l).catch(f=>(o=f,null));return o?Promise.reject(o):g(c)},"requestApi"),g=n(async t=>{if(t.status===204)return Promise.resolve(null);const r=await(t.headers.get("Content-Type")==="application/json"?t.json():t.blob()).catch(()=>"Response parsing error");return t.status>=200&&t.status<300?Promise.resolve(r):t.status>=400&&t.status<=500?Promise.reject({status:t.status,raw:r,message:r}):Promise.reject({status:t.status,raw:"",message:""})},"handleResponse");export{v as requestApi};
|
package/dist/lib/index.js
CHANGED
|
@@ -1,27 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { requestApi as a } from "./http.js";
|
|
3
|
-
import { isNullOrEmptyString as p } from "./strings.js";
|
|
4
|
-
import { orderBy as f, orderByText as x } from "./arrays.js";
|
|
5
|
-
import { apiErrorDescription as n, cn as s, manageApiFormErrors as y } from "./utils.js";
|
|
6
|
-
import { addMethod as l, array as b, boolean as g, date as u, lazy as E, mixed as h, number as A, object as B, reach as D, ref as j, string as q } from "./yup.js";
|
|
7
|
-
export {
|
|
8
|
-
l as addMethod,
|
|
9
|
-
n as apiErrorDescription,
|
|
10
|
-
b as array,
|
|
11
|
-
g as boolean,
|
|
12
|
-
s as cn,
|
|
13
|
-
u as date,
|
|
14
|
-
e as formatDate,
|
|
15
|
-
p as isNullOrEmptyString,
|
|
16
|
-
E as lazy,
|
|
17
|
-
y as manageApiFormErrors,
|
|
18
|
-
h as mixed,
|
|
19
|
-
A as number,
|
|
20
|
-
B as object,
|
|
21
|
-
f as orderBy,
|
|
22
|
-
x as orderByText,
|
|
23
|
-
D as reach,
|
|
24
|
-
j as ref,
|
|
25
|
-
a as requestApi,
|
|
26
|
-
q as string
|
|
27
|
-
};
|
|
1
|
+
import{formatDate as e}from"./dates.js";import{requestApi as a}from"./http.js";import{isNullOrEmptyString as p}from"./strings.js";import{orderBy as f,orderByText as x}from"./arrays.js";import{apiErrorDescription as n,cn as s,manageApiFormErrors as y}from"./utils.js";import{addMethod as l,array as b,boolean as g,date as u,lazy as E,mixed as h,number as A,object as B,reach as D,ref as j,string as q}from"./yup.js";export{l as addMethod,n as apiErrorDescription,b as array,g as boolean,s as cn,u as date,e as formatDate,p as isNullOrEmptyString,E as lazy,y as manageApiFormErrors,h as mixed,A as number,B as object,f as orderBy,x as orderByText,D as reach,j as ref,a as requestApi,q as string};
|
package/dist/lib/strings.js
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
var n
|
|
2
|
-
var t = (r, i) => n(r, "name", { value: i, configurable: !0 });
|
|
3
|
-
const l = /* @__PURE__ */ t((r) => r == null || r.trim() === "", "isNullOrEmptyString");
|
|
4
|
-
export {
|
|
5
|
-
l as isNullOrEmptyString
|
|
6
|
-
};
|
|
1
|
+
var n=Object.defineProperty;var t=(r,i)=>n(r,"name",{value:i,configurable:!0});const l=t(r=>r==null||r.trim()==="","isNullOrEmptyString");export{l as isNullOrEmptyString};
|
package/dist/lib/utils.js
CHANGED
|
@@ -1,31 +1,2 @@
|
|
|
1
|
-
var a = Object.
|
|
2
|
-
|
|
3
|
-
import { clsx as c } from "clsx";
|
|
4
|
-
import { twMerge as f } from "tailwind-merge";
|
|
5
|
-
const w = /* @__PURE__ */ t((...r) => f(c(r)), "cn"), y = /* @__PURE__ */ t((r) => {
|
|
6
|
-
let e = "Une erreur est survenue";
|
|
7
|
-
return r.status === 400 ? e = "Données invalides" : typeof r.raw == "object" && r.raw.error && (e = r.raw.error), e;
|
|
8
|
-
}, "apiErrorDescription"), E = /* @__PURE__ */ t((r, e) => {
|
|
9
|
-
if (r.status === 400 && e && typeof r.raw == "object") {
|
|
10
|
-
let i = !0;
|
|
11
|
-
Object.entries(r.raw).forEach(([n, s]) => {
|
|
12
|
-
let o = "";
|
|
13
|
-
Array.isArray(s) ? o = s.join(`
|
|
14
|
-
`) : o = s, e.setError(
|
|
15
|
-
n,
|
|
16
|
-
{
|
|
17
|
-
type: "server",
|
|
18
|
-
message: o
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
shouldFocus: i
|
|
22
|
-
}
|
|
23
|
-
), i = !1;
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
}, "manageApiFormErrors");
|
|
27
|
-
export {
|
|
28
|
-
y as apiErrorDescription,
|
|
29
|
-
w as cn,
|
|
30
|
-
E as manageApiFormErrors
|
|
31
|
-
};
|
|
1
|
+
var a=Object.defineProperty;var t=(r,e)=>a(r,"name",{value:e,configurable:!0});import{clsx as c}from"clsx";import{twMerge as f}from"tailwind-merge";const w=t((...r)=>f(c(r)),"cn"),y=t(r=>{let e="Une erreur est survenue";return r.status===400?e="Données invalides":typeof r.raw=="object"&&r.raw.error&&(e=r.raw.error),e},"apiErrorDescription"),E=t((r,e)=>{if(r.status===400&&e&&typeof r.raw=="object"){let i=!0;Object.entries(r.raw).forEach(([n,s])=>{let o="";Array.isArray(s)?o=s.join(`
|
|
2
|
+
`):o=s,e.setError(n,{type:"server",message:o},{shouldFocus:i}),i=!1})}},"manageApiFormErrors");export{y as apiErrorDescription,w as cn,E as manageApiFormErrors};
|
package/dist/lib/yup.js
CHANGED
|
@@ -1,88 +1 @@
|
|
|
1
|
-
var r
|
|
2
|
-
var t = (e, i) => r(e, "name", { value: i, configurable: !0 });
|
|
3
|
-
import * as a from "yup";
|
|
4
|
-
a.setLocale({
|
|
5
|
-
mixed: {
|
|
6
|
-
default: "Ce champ est invalide",
|
|
7
|
-
required: "Ce champ est obligatoire",
|
|
8
|
-
defined: "Ce champ doit être défini",
|
|
9
|
-
notNull: "Ce champ ne doit pas être nul",
|
|
10
|
-
oneOf: "Ce champ doit être l’un des suivants : ${values}",
|
|
11
|
-
notOneOf: "Ce champ ne doit pas être l’un des suivants : ${values}",
|
|
12
|
-
notType: /* @__PURE__ */ t(({ type: e }) => {
|
|
13
|
-
switch (e) {
|
|
14
|
-
case "array":
|
|
15
|
-
return "Ce champ doit être un tableau";
|
|
16
|
-
case "date":
|
|
17
|
-
return "Ce champ doit être un date";
|
|
18
|
-
case "number":
|
|
19
|
-
return "Ce champ doit être un nombre";
|
|
20
|
-
case "object":
|
|
21
|
-
return "Ce champ doit être un object";
|
|
22
|
-
case "string":
|
|
23
|
-
return "Ce champ doit être une chaîne de caractères";
|
|
24
|
-
case "boolean":
|
|
25
|
-
return "Ce champ doit être un booléen";
|
|
26
|
-
default:
|
|
27
|
-
return "Type invalide";
|
|
28
|
-
}
|
|
29
|
-
}, "notType")
|
|
30
|
-
},
|
|
31
|
-
string: {
|
|
32
|
-
length: "Ce champ doit contenir exactement ${length} caractères",
|
|
33
|
-
min: "Ce champ doit contenir au minimum ${min} caractères",
|
|
34
|
-
max: "Ce champ doit contenir au maximum ${max} caractères",
|
|
35
|
-
matches: "Ce champ doit correspondre au format requis",
|
|
36
|
-
email: "Veuillez saisir une adresse email valide",
|
|
37
|
-
url: "Veuillez saisir une URL valide",
|
|
38
|
-
uuid: "Veuillez saisir un UUID valide",
|
|
39
|
-
datetime: "Veuillez saisir une date et heure valide",
|
|
40
|
-
trim: "Ce champ ne doit pas contenir d’espaces vides",
|
|
41
|
-
lowercase: "Ce champ doit être en minuscules",
|
|
42
|
-
uppercase: "Ce champ doit être en majuscules"
|
|
43
|
-
},
|
|
44
|
-
number: {
|
|
45
|
-
min: "Ce champ doit être supérieur ou égal à ${min}",
|
|
46
|
-
max: "Ce champ doit être inférieur ou égal à ${max}",
|
|
47
|
-
lessThan: "Ce champ doit être inférieur à ${less}",
|
|
48
|
-
moreThan: "Ce champ doit être supérieur à ${more}",
|
|
49
|
-
positive: "Ce champ doit être un nombre positif",
|
|
50
|
-
negative: "Ce champ doit être un nombre négatif",
|
|
51
|
-
integer: "Ce champ doit être un nombre entier"
|
|
52
|
-
},
|
|
53
|
-
date: {
|
|
54
|
-
min: "Cette date doit être postérieure au ${min}",
|
|
55
|
-
max: "Cette date doit être antérieure au ${max}"
|
|
56
|
-
},
|
|
57
|
-
array: {
|
|
58
|
-
min: "Ce champ doit contenir au minimum ${min} éléments",
|
|
59
|
-
max: "Ce champ doit contenir au maximum ${max} éléments",
|
|
60
|
-
length: "Ce champ doit contenir exactement ${length} éléments"
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
const {
|
|
64
|
-
string: m,
|
|
65
|
-
number: o,
|
|
66
|
-
boolean: u,
|
|
67
|
-
date: c,
|
|
68
|
-
array: s,
|
|
69
|
-
object: d,
|
|
70
|
-
mixed: l,
|
|
71
|
-
ref: p,
|
|
72
|
-
lazy: h,
|
|
73
|
-
reach: C,
|
|
74
|
-
addMethod: b
|
|
75
|
-
} = a;
|
|
76
|
-
export {
|
|
77
|
-
b as addMethod,
|
|
78
|
-
s as array,
|
|
79
|
-
u as boolean,
|
|
80
|
-
c as date,
|
|
81
|
-
h as lazy,
|
|
82
|
-
l as mixed,
|
|
83
|
-
o as number,
|
|
84
|
-
d as object,
|
|
85
|
-
C as reach,
|
|
86
|
-
p as ref,
|
|
87
|
-
m as string
|
|
88
|
-
};
|
|
1
|
+
var r=Object.defineProperty;var t=(e,i)=>r(e,"name",{value:i,configurable:!0});import*as a from"yup";a.setLocale({mixed:{default:"Ce champ est invalide",required:"Ce champ est obligatoire",defined:"Ce champ doit être défini",notNull:"Ce champ ne doit pas être nul",oneOf:"Ce champ doit être l’un des suivants : ${values}",notOneOf:"Ce champ ne doit pas être l’un des suivants : ${values}",notType:t(({type:e})=>{switch(e){case"array":return"Ce champ doit être un tableau";case"date":return"Ce champ doit être un date";case"number":return"Ce champ doit être un nombre";case"object":return"Ce champ doit être un object";case"string":return"Ce champ doit être une chaîne de caractères";case"boolean":return"Ce champ doit être un booléen";default:return"Type invalide"}},"notType")},string:{length:"Ce champ doit contenir exactement ${length} caractères",min:"Ce champ doit contenir au minimum ${min} caractères",max:"Ce champ doit contenir au maximum ${max} caractères",matches:"Ce champ doit correspondre au format requis",email:"Veuillez saisir une adresse email valide",url:"Veuillez saisir une URL valide",uuid:"Veuillez saisir un UUID valide",datetime:"Veuillez saisir une date et heure valide",trim:"Ce champ ne doit pas contenir d’espaces vides",lowercase:"Ce champ doit être en minuscules",uppercase:"Ce champ doit être en majuscules"},number:{min:"Ce champ doit être supérieur ou égal à ${min}",max:"Ce champ doit être inférieur ou égal à ${max}",lessThan:"Ce champ doit être inférieur à ${less}",moreThan:"Ce champ doit être supérieur à ${more}",positive:"Ce champ doit être un nombre positif",negative:"Ce champ doit être un nombre négatif",integer:"Ce champ doit être un nombre entier"},date:{min:"Cette date doit être postérieure au ${min}",max:"Cette date doit être antérieure au ${max}"},array:{min:"Ce champ doit contenir au minimum ${min} éléments",max:"Ce champ doit contenir au maximum ${max} éléments",length:"Ce champ doit contenir exactement ${length} éléments"}});const{string:m,number:o,boolean:u,date:c,array:s,object:d,mixed:l,ref:p,lazy:h,reach:C,addMethod:b}=a;export{b as addMethod,s as array,u as boolean,c as date,h as lazy,l as mixed,o as number,d as object,C as reach,p as ref,m as string};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r=Object.defineProperty;var n=(t,d)=>r(t,"name",{value:d,configurable:!0});function u(t){return(d={})=>{const o=d.width?String(d.width):t.defaultWidth;return t.formats[o]||t.formats[t.defaultWidth]}}n(u,"buildFormatLongFn");export{u as buildFormatLongFn};
|
package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var f=Object.defineProperty;var u=(t,n)=>f(t,"name",{value:n,configurable:!0});function o(t){return(n,e)=>{const a=e?.context?String(e.context):"standalone";let i;if(a==="formatting"&&t.formattingValues){const d=t.defaultFormattingWidth||t.defaultWidth,l=e?.width?String(e.width):d;i=t.formattingValues[l]||t.formattingValues[d]}else{const d=t.defaultWidth,l=e?.width?String(e.width):t.defaultWidth;i=t.values[l]||t.values[d]}const c=t.argumentCallback?t.argumentCallback(n):n;return i[c]}}u(o,"buildLocalizeFn");export{o as buildLocalizeFn};
|
package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var o=Object.defineProperty;var r=(t,n)=>o(t,"name",{value:n,configurable:!0});function m(t){return(n,e={})=>{const l=e.width,f=l&&t.matchPatterns[l]||t.matchPatterns[t.defaultMatchWidth],d=n.match(f);if(!d)return null;const c=d[0],u=l&&t.parsePatterns[l]||t.parsePatterns[t.defaultParseWidth],h=Array.isArray(u)?k(u,i=>i.test(c)):P(u,i=>i.test(c));let a;a=t.valueCallback?t.valueCallback(h):h,a=e.valueCallback?e.valueCallback(a):a;const s=n.slice(c.length);return{value:a,rest:s}}}r(m,"buildMatchFn");function P(t,n){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&n(t[e]))return e}r(P,"findKey");function k(t,n){for(let e=0;e<t.length;e++)if(n(t[e]))return e}r(k,"findIndex");export{m as buildMatchFn};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var b=Object.defineProperty;var u=(t,l)=>b(t,"name",{value:l,configurable:!0});function v(t){return(l,c={})=>{const n=l.match(t.matchPattern);if(!n)return null;const r=n[0],a=l.match(t.parsePattern);if(!a)return null;let e=t.valueCallback?t.valueCallback(a[0]):a[0];e=c.valueCallback?c.valueCallback(e):e;const h=l.slice(r.length);return{value:e,rest:h}}}u(v,"buildMatchPatternFn");export{v as buildMatchPatternFn};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var u=Object.defineProperty;var r=(s,n)=>u(s,"name",{value:n,configurable:!0});const i={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},c=r((s,n,t)=>{let e;const o=i[s];return typeof o=="string"?e=o:n===1?e=o.one:e=o.other.replace("{{count}}",String(n)),t?.addSuffix?t.comparison&&t.comparison>0?"dans "+e:"il y a "+e:e},"formatDistance");export{c as formatDistance};
|
package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatLong.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{buildFormatLongFn as t}from"../../_lib/buildFormatLongFn.js";const m={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},d={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},e={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},a={date:t({formats:m,defaultWidth:"full"}),time:t({formats:d,defaultWidth:"full"}),dateTime:t({formats:e,defaultWidth:"full"})};export{a as formatLong};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=Object.defineProperty;var o=(e,t)=>a(e,"name",{value:t,configurable:!0});const r={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},d=o((e,t,i,p)=>r[e],"formatRelative");export{d as formatRelative};
|
package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/localize.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var d=Object.defineProperty;var t=(n,i)=>d(n,"name",{value:i,configurable:!0});import{buildLocalizeFn as r}from"../../_lib/buildLocalizeFn.js";const s={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},u={narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},l={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},v={narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},c={narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},h=t((n,i)=>{const a=Number(n),e=i?.unit;if(a===0)return"0";const o=["year","week","hour","minute","second"];let m;return a===1?m=e&&o.includes(e)?"ère":"er":m="ème",a+m},"ordinalNumber"),M=["MMM","MMMM"],g={preprocessor:t((n,i)=>n.getDate()===1||!i.some(e=>e.isToken&&M.includes(e.value))?i:i.map(e=>e.isToken&&e.value==="do"?{isToken:!0,value:"d"}:e),"preprocessor"),ordinalNumber:h,era:r({values:s,defaultWidth:"wide"}),quarter:r({values:u,defaultWidth:"wide",argumentCallback:t(n=>n-1,"argumentCallback")}),month:r({values:l,defaultWidth:"wide"}),day:r({values:v,defaultWidth:"wide"}),dayPeriod:r({values:c,defaultWidth:"wide"})};export{g as localize};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r=Object.defineProperty;var t=(a,e)=>r(a,"name",{value:e,configurable:!0});import{buildMatchFn as i}from"../../_lib/buildMatchFn.js";import{buildMatchPatternFn as n}from"../../_lib/buildMatchPatternFn.js";const s=/^(\d+)(ième|ère|ème|er|e)?/i,d=/\d+/i,m={narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},o={any:[/^av/i,/^ap/i]},c={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},u={any:[/1/i,/2/i,/3/i,/4/i]},h={narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},l={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},P={narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},p={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},v={narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},j={any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},w={ordinalNumber:n({matchPattern:s,parsePattern:d,valueCallback:t(a=>parseInt(a),"valueCallback")}),era:i({matchPatterns:m,defaultMatchWidth:"wide",parsePatterns:o,defaultParseWidth:"any"}),quarter:i({matchPatterns:c,defaultMatchWidth:"wide",parsePatterns:u,defaultParseWidth:"any",valueCallback:t(a=>a+1,"valueCallback")}),month:i({matchPatterns:h,defaultMatchWidth:"wide",parsePatterns:l,defaultParseWidth:"any"}),day:i({matchPatterns:P,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),dayPeriod:i({matchPatterns:v,defaultMatchWidth:"any",parsePatterns:j,defaultParseWidth:"any"})};export{w as match};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{formatDistance as o}from"./fr/_lib/formatDistance.js";import{formatLong as t}from"./fr/_lib/formatLong.js";import{formatRelative as r}from"./fr/_lib/formatRelative.js";import{localize as a}from"./fr/_lib/localize.js";import{match as m}from"./fr/_lib/match.js";const s={code:"fr",formatDistance:o,formatLong:t,formatRelative:r,localize:a,match:m,options:{weekStartsOn:1,firstWeekContainsDate:4}};export{s as default,s as fr};
|
|
@@ -1,34 +1 @@
|
|
|
1
|
-
var l
|
|
2
|
-
var t = (e, o) => l(e, "name", { value: o, configurable: !0 });
|
|
3
|
-
import { jsxs as u, jsx as c } from "react/jsx-runtime";
|
|
4
|
-
import { useState as f, createContext as m, useContext as g } from "react";
|
|
5
|
-
import { toast as h } from "sonner";
|
|
6
|
-
const v = {
|
|
7
|
-
isLoading: !1,
|
|
8
|
-
loadingWithToast: /* @__PURE__ */ t(() => null, "loadingWithToast")
|
|
9
|
-
}, s = m(v);
|
|
10
|
-
function P({ children: e, ...o }) {
|
|
11
|
-
const [r, i] = f(!1), d = {
|
|
12
|
-
isLoading: r,
|
|
13
|
-
loadingWithToast: /* @__PURE__ */ t((a, n) => {
|
|
14
|
-
i(!0), n.loading || (n.loading = "Chargement en cours"), h.promise(a, n), a.finally(() => {
|
|
15
|
-
i(!1);
|
|
16
|
-
});
|
|
17
|
-
}, "loadingWithToast")
|
|
18
|
-
};
|
|
19
|
-
return /* @__PURE__ */ u(s.Provider, { ...o, value: d, children: [
|
|
20
|
-
e,
|
|
21
|
-
r && /* @__PURE__ */ c("div", { className: "fixed inset-0 z-9999 bg-transparent pointer-events-auto" })
|
|
22
|
-
] });
|
|
23
|
-
}
|
|
24
|
-
t(P, "LoaderProvider");
|
|
25
|
-
const w = /* @__PURE__ */ t(() => {
|
|
26
|
-
const e = g(s);
|
|
27
|
-
if (e === void 0)
|
|
28
|
-
throw new Error("useTheme must be used within a ThemeProvider");
|
|
29
|
-
return e;
|
|
30
|
-
}, "useLoader");
|
|
31
|
-
export {
|
|
32
|
-
P as LoaderProvider,
|
|
33
|
-
w as useLoader
|
|
34
|
-
};
|
|
1
|
+
var l=Object.defineProperty;var t=(e,o)=>l(e,"name",{value:o,configurable:!0});import{jsxs as u,jsx as c}from"react/jsx-runtime";import{useState as f,createContext as m,useContext as g}from"react";import{toast as h}from"sonner";const v={isLoading:!1,loadingWithToast:t(()=>null,"loadingWithToast")},s=m(v);function P({children:e,...o}){const[r,i]=f(!1),d={isLoading:r,loadingWithToast:t((a,n)=>{i(!0),n.loading||(n.loading="Chargement en cours"),h.promise(a,n),a.finally(()=>{i(!1)})},"loadingWithToast")};return u(s.Provider,{...o,value:d,children:[e,r&&c("div",{className:"fixed inset-0 z-9999 bg-transparent pointer-events-auto"})]})}t(P,"LoaderProvider");const w=t(()=>{const e=g(s);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e},"useLoader");export{P as LoaderProvider,w as useLoader};
|
|
@@ -1,45 +1 @@
|
|
|
1
|
-
var h
|
|
2
|
-
var s = (e, r) => h(e, "name", { value: r, configurable: !0 });
|
|
3
|
-
import { jsx as u } from "react/jsx-runtime";
|
|
4
|
-
import { useState as l, useEffect as T, createContext as f, useContext as v } from "react";
|
|
5
|
-
const w = {
|
|
6
|
-
theme: "system",
|
|
7
|
-
setTheme: /* @__PURE__ */ s(() => null, "setTheme")
|
|
8
|
-
}, n = f(w);
|
|
9
|
-
function P({
|
|
10
|
-
children: e,
|
|
11
|
-
defaultTheme: r = "system",
|
|
12
|
-
storageKey: m = "vite-ui-theme",
|
|
13
|
-
...i
|
|
14
|
-
}) {
|
|
15
|
-
const [o, c] = l(
|
|
16
|
-
() => localStorage.getItem(m) || r
|
|
17
|
-
);
|
|
18
|
-
T(() => {
|
|
19
|
-
const t = window.document.documentElement;
|
|
20
|
-
if (t.classList.remove("light", "dark"), o === "system") {
|
|
21
|
-
const d = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
22
|
-
t.classList.add(d);
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
t.classList.add(o);
|
|
26
|
-
}, [o]);
|
|
27
|
-
const a = {
|
|
28
|
-
theme: o,
|
|
29
|
-
setTheme: /* @__PURE__ */ s((t) => {
|
|
30
|
-
localStorage.setItem(m, t), c(t);
|
|
31
|
-
}, "setTheme")
|
|
32
|
-
};
|
|
33
|
-
return /* @__PURE__ */ u(n.Provider, { ...i, value: a, children: e });
|
|
34
|
-
}
|
|
35
|
-
s(P, "ThemeProvider");
|
|
36
|
-
const S = /* @__PURE__ */ s(() => {
|
|
37
|
-
const e = v(n);
|
|
38
|
-
if (e === void 0)
|
|
39
|
-
throw new Error("useTheme must be used within a ThemeProvider");
|
|
40
|
-
return e;
|
|
41
|
-
}, "useTheme");
|
|
42
|
-
export {
|
|
43
|
-
P as ThemeProvider,
|
|
44
|
-
S as useTheme
|
|
45
|
-
};
|
|
1
|
+
var h=Object.defineProperty;var s=(e,r)=>h(e,"name",{value:r,configurable:!0});import{jsx as u}from"react/jsx-runtime";import{useState as l,useEffect as T,createContext as f,useContext as v}from"react";const w={theme:"system",setTheme:s(()=>null,"setTheme")},n=f(w);function P({children:e,defaultTheme:r="system",storageKey:m="vite-ui-theme",...i}){const[o,c]=l(()=>localStorage.getItem(m)||r);T(()=>{const t=window.document.documentElement;if(t.classList.remove("light","dark"),o==="system"){const d=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";t.classList.add(d);return}t.classList.add(o)},[o]);const a={theme:o,setTheme:s(t=>{localStorage.setItem(m,t),c(t)},"setTheme")};return u(n.Provider,{...i,value:a,children:e})}s(P,"ThemeProvider");const S=s(()=>{const e=v(n);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e},"useTheme");export{P as ThemeProvider,S as useTheme};
|