fina-react-ds 1.0.40 → 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.
Files changed (67) hide show
  1. package/dist/components/alert-dialog.js +1 -166
  2. package/dist/components/alert.js +1 -73
  3. package/dist/components/avatar.js +1 -58
  4. package/dist/components/badge.js +1 -44
  5. package/dist/components/button.js +1 -153
  6. package/dist/components/calendar.js +1 -205
  7. package/dist/components/card.js +1 -99
  8. package/dist/components/checkbox.js +1 -34
  9. package/dist/components/data-loader.js +1 -24
  10. package/dist/components/date-picker.js +1 -64
  11. package/dist/components/dialog.js +1 -145
  12. package/dist/components/dropdown-menu.js +1 -248
  13. package/dist/components/file-uploader.js +1 -108
  14. package/dist/components/form-color-picker.js +1 -29
  15. package/dist/components/form-date.js +1 -30
  16. package/dist/components/form-file-uploader.js +1 -32
  17. package/dist/components/form-image-uploader.js +1 -40
  18. package/dist/components/form-input.js +1 -35
  19. package/dist/components/form-select.js +1 -51
  20. package/dist/components/form-switch.js +1 -35
  21. package/dist/components/form-textarea.js +1 -35
  22. package/dist/components/form.js +1 -110
  23. package/dist/components/hover-card.js +1 -43
  24. package/dist/components/image-uploader.js +1 -130
  25. package/dist/components/index.js +1 -200
  26. package/dist/components/input.js +1 -26
  27. package/dist/components/label.js +1 -32
  28. package/dist/components/mode-toggle.js +1 -26
  29. package/dist/components/pagination.js +1 -128
  30. package/dist/components/password-rules-checker.js +1 -44
  31. package/dist/components/popover.js +1 -50
  32. package/dist/components/select.js +1 -53
  33. package/dist/components/separator.js +1 -29
  34. package/dist/components/sheet.js +1 -160
  35. package/dist/components/sidebar.js +1 -624
  36. package/dist/components/simple-pagination.js +1 -34
  37. package/dist/components/simple-tooltip.js +1 -17
  38. package/dist/components/skeleton.js +1 -18
  39. package/dist/components/sonner.js +1 -24
  40. package/dist/components/switch.js +1 -34
  41. package/dist/components/table.js +1 -124
  42. package/dist/components/tabs.js +1 -73
  43. package/dist/components/textarea.js +1 -23
  44. package/dist/components/tooltip.js +1 -61
  45. package/dist/hooks/index.js +1 -4
  46. package/dist/hooks/use-mobile.js +1 -17
  47. package/dist/index.js +1 -225
  48. package/dist/lib/arrays.js +1 -7
  49. package/dist/lib/dates.js +1 -21
  50. package/dist/lib/http.js +1 -56
  51. package/dist/lib/index.js +1 -27
  52. package/dist/lib/strings.js +1 -6
  53. package/dist/lib/utils.js +2 -31
  54. package/dist/lib/yup.js +1 -88
  55. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +1 -12
  56. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +1 -21
  57. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.js +1 -36
  58. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +1 -18
  59. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatDistance.js +1 -72
  60. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatLong.js +1 -33
  61. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatRelative.js +1 -13
  62. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/localize.js +1 -123
  63. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/match.js +1 -112
  64. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr.js +1 -21
  65. package/dist/providers/loader-provider.js +1 -34
  66. package/dist/providers/theme-provider.js +1 -45
  67. package/package.json +1 -9
package/dist/index.js CHANGED
@@ -1,225 +1 @@
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
- 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};
@@ -1,7 +1 @@
1
- var u = Object.defineProperty;
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 = Object.defineProperty;
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.defineProperty;
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 { formatDate as e } from "./dates.js";
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};
@@ -1,6 +1 @@
1
- var n = Object.defineProperty;
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.defineProperty;
2
- var t = (r, e) => a(r, "name", { value: e, configurable: !0 });
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 = Object.defineProperty;
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};
@@ -1,12 +1 @@
1
- var r = Object.defineProperty;
2
- var n = (t, d) => r(t, "name", { value: d, configurable: !0 });
3
- function u(t) {
4
- return (d = {}) => {
5
- const o = d.width ? String(d.width) : t.defaultWidth;
6
- return t.formats[o] || t.formats[t.defaultWidth];
7
- };
8
- }
9
- n(u, "buildFormatLongFn");
10
- export {
11
- u as buildFormatLongFn
12
- };
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};
@@ -1,21 +1 @@
1
- var f = Object.defineProperty;
2
- var u = (t, n) => f(t, "name", { value: n, configurable: !0 });
3
- function o(t) {
4
- return (n, e) => {
5
- const a = e?.context ? String(e.context) : "standalone";
6
- let i;
7
- if (a === "formatting" && t.formattingValues) {
8
- const d = t.defaultFormattingWidth || t.defaultWidth, l = e?.width ? String(e.width) : d;
9
- i = t.formattingValues[l] || t.formattingValues[d];
10
- } else {
11
- const d = t.defaultWidth, l = e?.width ? String(e.width) : t.defaultWidth;
12
- i = t.values[l] || t.values[d];
13
- }
14
- const c = t.argumentCallback ? t.argumentCallback(n) : n;
15
- return i[c];
16
- };
17
- }
18
- u(o, "buildLocalizeFn");
19
- export {
20
- o as buildLocalizeFn
21
- };
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};
@@ -1,36 +1 @@
1
- var o = Object.defineProperty;
2
- var r = (t, n) => o(t, "name", { value: n, configurable: !0 });
3
- function m(t) {
4
- return (n, e = {}) => {
5
- const l = e.width, f = l && t.matchPatterns[l] || t.matchPatterns[t.defaultMatchWidth], d = n.match(f);
6
- if (!d)
7
- return null;
8
- const c = d[0], u = l && t.parsePatterns[l] || t.parsePatterns[t.defaultParseWidth], h = Array.isArray(u) ? k(u, (i) => i.test(c)) : (
9
- // [TODO] -- I challenge you to fix the type
10
- P(u, (i) => i.test(c))
11
- );
12
- let a;
13
- a = t.valueCallback ? t.valueCallback(h) : h, a = e.valueCallback ? (
14
- // [TODO] -- I challenge you to fix the type
15
- e.valueCallback(a)
16
- ) : a;
17
- const s = n.slice(c.length);
18
- return { value: a, rest: s };
19
- };
20
- }
21
- r(m, "buildMatchFn");
22
- function P(t, n) {
23
- for (const e in t)
24
- if (Object.prototype.hasOwnProperty.call(t, e) && n(t[e]))
25
- return e;
26
- }
27
- r(P, "findKey");
28
- function k(t, n) {
29
- for (let e = 0; e < t.length; e++)
30
- if (n(t[e]))
31
- return e;
32
- }
33
- r(k, "findIndex");
34
- export {
35
- m as buildMatchFn
36
- };
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};
@@ -1,18 +1 @@
1
- var b = Object.defineProperty;
2
- var u = (t, l) => b(t, "name", { value: l, configurable: !0 });
3
- function v(t) {
4
- return (l, c = {}) => {
5
- const n = l.match(t.matchPattern);
6
- if (!n) return null;
7
- const r = n[0], a = l.match(t.parsePattern);
8
- if (!a) return null;
9
- let e = t.valueCallback ? t.valueCallback(a[0]) : a[0];
10
- e = c.valueCallback ? c.valueCallback(e) : e;
11
- const h = l.slice(r.length);
12
- return { value: e, rest: h };
13
- };
14
- }
15
- u(v, "buildMatchPatternFn");
16
- export {
17
- v as buildMatchPatternFn
18
- };
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};