fina-react-ds 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/components/calendar.js +206 -0
  2. package/dist/components/date-picker.js +63 -0
  3. package/dist/components/select.js +12 -12
  4. package/dist/components/separator.js +29 -0
  5. package/dist/components/sheet.js +17 -5
  6. package/dist/components/sidebar.js +620 -0
  7. package/dist/components/simple-tooltip.js +17 -0
  8. package/dist/components/skeleton.js +18 -0
  9. package/dist/components/sonner.js +24 -0
  10. package/dist/components/switch.js +34 -0
  11. package/dist/components/textarea.js +23 -0
  12. package/dist/components/tooltip.js +61 -0
  13. package/dist/hooks/use-mobile.js +17 -0
  14. package/dist/index.d.ts +13 -3
  15. package/dist/index.js +140 -93
  16. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +12 -0
  17. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +21 -0
  18. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.js +36 -0
  19. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +18 -0
  20. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatDistance.js +72 -0
  21. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatLong.js +33 -0
  22. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatRelative.js +13 -0
  23. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/localize.js +123 -0
  24. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/match.js +112 -0
  25. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr.js +21 -0
  26. package/dist/node_modules/@radix-ui/react-separator/dist/index.js +27 -0
  27. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +47 -40
  28. package/dist/node_modules/@radix-ui/react-switch/dist/index.js +136 -0
  29. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +348 -0
  30. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +32 -0
  31. package/package.json +1 -1
@@ -0,0 +1,34 @@
1
+ var a = Object.defineProperty;
2
+ var t = (c, e) => a(c, "name", { value: e, configurable: !0 });
3
+ import { jsx as r } from "react/jsx-runtime";
4
+ import { Root as n, Thumb as i } from "../node_modules/@radix-ui/react-switch/dist/index.js";
5
+ import { cn as f } from "../lib/utils.js";
6
+ function u({
7
+ className: c,
8
+ ...e
9
+ }) {
10
+ return /* @__PURE__ */ r(
11
+ n,
12
+ {
13
+ "data-slot": "switch",
14
+ className: f(
15
+ "fc:peer fc:data-[state=checked]:bg-primary fc:data-[state=unchecked]:bg-input-border fc:focus-visible:border-ring fc:focus-visible:ring-ring/50 fc:inline-flex fc:h-[1.15rem] fc:w-8 fc:shrink-0 fc:items-center fc:rounded-full fc:border fc:border-transparent fc:shadow-xs fc:transition-all fc:outline-none fc:focus-visible:ring-[3px] fc:disabled:cursor-not-allowed fc:disabled:opacity-50",
16
+ c
17
+ ),
18
+ ...e,
19
+ children: /* @__PURE__ */ r(
20
+ i,
21
+ {
22
+ "data-slot": "switch-thumb",
23
+ className: f(
24
+ "fc:bg-input fc:dark:bg-foreground fc:pointer-events-none fc:block fc:size-4 fc:rounded-full fc:ring-0 fc:transition-transform fc:data-[state=checked]:translate-x-[calc(100%-2px)] fc:data-[state=unchecked]:translate-x-0"
25
+ )
26
+ }
27
+ )
28
+ }
29
+ );
30
+ }
31
+ t(u, "Switch");
32
+ export {
33
+ u as Switch
34
+ };
@@ -0,0 +1,23 @@
1
+ var c = Object.defineProperty;
2
+ var i = (e, r) => c(e, "name", { value: r, configurable: !0 });
3
+ import { jsx as t } from "react/jsx-runtime";
4
+ import { cn as f } from "../lib/utils.js";
5
+ function n({ className: e, ...r }) {
6
+ return /* @__PURE__ */ t(
7
+ "textarea",
8
+ {
9
+ "data-slot": "textarea",
10
+ className: f(
11
+ "fc:bg-input fc:border-input-border placeholder:text-placeholder fc:flex fc:field-sizing-content fc:min-h-16 fc:w-full fc:rounded-md fc:border fc:px-3 fc:py-2 fc:text-base fc:shadow-xs fc:transition-[color,box-shadow] fc:outline-none fc:disabled:cursor-not-allowed fc:disabled:opacity-50 fc:md:text-sm",
12
+ "fc:focus-visible:border-ring fc:focus-visible:ring-ring/50 fc:focus-visible:ring-[3px]",
13
+ "fc:aria-invalid:ring-destructive/20 fc:dark:aria-invalid:ring-destructive/40 fc:aria-invalid:border-destructive",
14
+ e
15
+ ),
16
+ ...r
17
+ }
18
+ );
19
+ }
20
+ i(n, "Textarea");
21
+ export {
22
+ n as Textarea
23
+ };
@@ -0,0 +1,61 @@
1
+ var f = Object.defineProperty;
2
+ var i = (t, r) => f(t, "name", { value: r, configurable: !0 });
3
+ import { jsx as o, jsxs as c } from "react/jsx-runtime";
4
+ import { Root as n, Trigger as d, Portal as l, Content as s, Arrow as m, Provider as p } from "../node_modules/@radix-ui/react-tooltip/dist/index.js";
5
+ import { cn as u } from "../lib/utils.js";
6
+ function g({
7
+ delayDuration: t = 0,
8
+ ...r
9
+ }) {
10
+ return /* @__PURE__ */ o(
11
+ p,
12
+ {
13
+ "data-slot": "tooltip-provider",
14
+ delayDuration: t,
15
+ ...r
16
+ }
17
+ );
18
+ }
19
+ i(g, "TooltipProvider");
20
+ function z({
21
+ ...t
22
+ }) {
23
+ return /* @__PURE__ */ o(g, { children: /* @__PURE__ */ o(n, { "data-slot": "tooltip", ...t }) });
24
+ }
25
+ i(z, "Tooltip");
26
+ function k({
27
+ ...t
28
+ }) {
29
+ return /* @__PURE__ */ o(d, { "data-slot": "tooltip-trigger", ...t });
30
+ }
31
+ i(k, "TooltipTrigger");
32
+ function v({
33
+ className: t,
34
+ sideOffset: r = 0,
35
+ children: a,
36
+ ...e
37
+ }) {
38
+ return /* @__PURE__ */ o(l, { children: /* @__PURE__ */ c(
39
+ s,
40
+ {
41
+ "data-slot": "tooltip-content",
42
+ sideOffset: r,
43
+ className: u(
44
+ "fc:bg-dark fc:text-dark-foreground fc:animate-in fc:fade-in-0 fc:zoom-in-95 fc:data-[state=closed]:animate-out fc:data-[state=closed]:fade-out-0 fc:data-[state=closed]:zoom-out-95 fc:data-[side=bottom]:slide-in-from-top-2 fc:data-[side=left]:slide-in-from-right-2 fc:data-[side=right]:slide-in-from-left-2 fc:data-[side=top]:slide-in-from-bottom-2 fc:z-50 fc:w-fit fc:origin-(--radix-tooltip-content-transform-origin) fc:rounded-md fc:px-3 fc:py-1.5 fc:text-xs fc:text-balance",
45
+ t
46
+ ),
47
+ ...e,
48
+ children: [
49
+ a,
50
+ /* @__PURE__ */ o(m, { className: "fc:bg-dark fc:fill-dark fc:z-50 fc:size-2.5 fc:translate-y-[calc(-50%_-_2px)] fc:rotate-45 fc:rounded-[2px]" })
51
+ ]
52
+ }
53
+ ) });
54
+ }
55
+ i(v, "TooltipContent");
56
+ export {
57
+ z as Tooltip,
58
+ v as TooltipContent,
59
+ g as TooltipProvider,
60
+ k as TooltipTrigger
61
+ };
@@ -0,0 +1,17 @@
1
+ var a = Object.defineProperty;
2
+ var t = (n, e) => a(n, "name", { value: e, configurable: !0 });
3
+ import * as r from "react";
4
+ const i = 768;
5
+ function d() {
6
+ const [n, e] = r.useState(void 0);
7
+ return r.useEffect(() => {
8
+ const o = window.matchMedia(`(max-width: ${i - 1}px)`), s = /* @__PURE__ */ t(() => {
9
+ e(window.innerWidth < i);
10
+ }, "onChange");
11
+ return o.addEventListener("change", s), e(window.innerWidth < i), () => o.removeEventListener("change", s);
12
+ }, []), !!n;
13
+ }
14
+ t(d, "useIsMobile");
15
+ export {
16
+ d as useIsMobile
17
+ };
package/dist/index.d.ts CHANGED
@@ -3,16 +3,26 @@ export { Alert, AlertTitle, AlertDescription } from "./components/alert";
3
3
  export { Badge } from "./components/badge";
4
4
  export { Button, buttonVariants } from "./components/button";
5
5
  export { Avatar, AvatarImage, AvatarFallback } from "./components/avatar";
6
+ export { Calendar } from "./components/calendar";
6
7
  export { Card, CardHeader, CardAction, CardTitle, CardDescription, CardContent, CardFooter } from "./components/card";
7
8
  export { Checkbox } from "./components/checkbox";
9
+ export { DatePicker } from "./components/date-picker";
8
10
  export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from "./components/dialog";
9
11
  export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, } from "./components/dropdown-menu";
10
- export { Tabs, TabsList, TabsTrigger, TabsContent } from "./components/tabs";
11
12
  export { Input } from "./components/input";
12
13
  export { Label } from "./components/label";
13
14
  export { Pagination, PaginationContent, PaginationLink, PaginationItem, PaginationPrevious, PaginationNext, PaginationEllipsis, } from "./components/pagination";
14
- export { SimplePagination } from "./components/simple-pagination";
15
15
  export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor, } from "./components/popover";
16
16
  export { Select } from "./components/select";
17
- export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, } from "./components/sheet";
17
+ export { Separator } from "./components/separator";
18
+ export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetBody, SheetFooter, SheetTitle, SheetDescription, } from "./components/sheet";
19
+ export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, } from "./components/sidebar";
20
+ export { SimplePagination } from "./components/simple-pagination";
21
+ export { SimpleTooltip } from "./components/simple-tooltip";
22
+ export { Skeleton } from "./components/skeleton";
23
+ export { Switch } from "./components/switch";
24
+ export { Toaster } from "./components/sonner";
18
25
  export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, } from "./components/table";
26
+ export { Tabs, TabsList, TabsTrigger, TabsContent } from "./components/tabs";
27
+ export { Textarea } from "./components/textarea";
28
+ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider, } from "./components/tooltip";
package/dist/index.js CHANGED
@@ -1,98 +1,145 @@
1
1
  import { cn as r } from "./lib/utils.js";
2
- import { Alert as n, AlertDescription as a, AlertTitle as i } from "./components/alert.js";
3
- import { Badge as l } from "./components/badge.js";
4
- import { Button as d, buttonVariants as D } from "./components/button.js";
5
- import { Avatar as m, AvatarFallback as T, AvatarImage as b } from "./components/avatar.js";
6
- import { Card as C, CardAction as f, CardContent as w, CardDescription as s, CardFooter as M, CardHeader as P, CardTitle as S } from "./components/card.js";
7
- import { Checkbox as h } from "./components/checkbox.js";
8
- import { Dialog as A, DialogClose as I, DialogContent as F, DialogDescription as H, DialogFooter as k, DialogHeader as L, DialogOverlay as B, DialogPortal as R, DialogTitle as y, DialogTrigger as G } from "./components/dialog.js";
9
- import { DropdownMenu as N, DropdownMenuCheckboxItem as O, DropdownMenuContent as V, DropdownMenuGroup as j, DropdownMenuItem as q, DropdownMenuLabel as z, DropdownMenuPortal as J, DropdownMenuRadioGroup as K, DropdownMenuRadioItem as Q, DropdownMenuSeparator as U, DropdownMenuShortcut as W, DropdownMenuSub as X, DropdownMenuSubContent as Y, DropdownMenuSubTrigger as Z, DropdownMenuTrigger as _ } from "./components/dropdown-menu.js";
10
- import { Tabs as oo, TabsContent as eo, TabsList as ro, TabsTrigger as to } from "./components/tabs.js";
11
- import { Input as ao } from "./components/input.js";
12
- import { Label as po } from "./components/label.js";
13
- import { Pagination as go, PaginationContent as Do, PaginationEllipsis as uo, PaginationItem as mo, PaginationLink as To, PaginationNext as bo, PaginationPrevious as xo } from "./components/pagination.js";
14
- import { SimplePagination as fo } from "./components/simple-pagination.js";
15
- import { Popover as so, PopoverAnchor as Mo, PopoverContent as Po, PopoverTrigger as So } from "./components/popover.js";
16
- import { Select as ho } from "./components/select.js";
17
- import { Sheet as Ao, SheetClose as Io, SheetContent as Fo, SheetDescription as Ho, SheetFooter as ko, SheetHeader as Lo, SheetTitle as Bo, SheetTrigger as Ro } from "./components/sheet.js";
18
- import { Table as Go, TableBody as Eo, TableCaption as No, TableCell as Oo, TableFooter as Vo, TableHead as jo, TableHeader as qo, TableRow as zo } from "./components/table.js";
2
+ import { Alert as a, AlertDescription as n, AlertTitle as i } from "./components/alert.js";
3
+ import { Badge as d } from "./components/badge.js";
4
+ import { Button as b, buttonVariants as S } from "./components/button.js";
5
+ import { Avatar as g, AvatarFallback as m, AvatarImage as x } from "./components/avatar.js";
6
+ import { Calendar as D } from "./components/calendar.js";
7
+ import { Card as C, CardAction as M, CardContent as s, CardDescription as P, CardFooter as w, CardHeader as c, CardTitle as h } from "./components/card.js";
8
+ import { Checkbox as A } from "./components/checkbox.js";
9
+ import { DatePicker as k } from "./components/date-picker.js";
10
+ import { Dialog as F, DialogClose as G, DialogContent as H, DialogDescription as L, DialogFooter as R, DialogHeader as y, DialogOverlay as E, DialogPortal as N, DialogTitle as O, DialogTrigger as V } from "./components/dialog.js";
11
+ import { DropdownMenu as q, DropdownMenuCheckboxItem as z, DropdownMenuContent as J, DropdownMenuGroup as K, DropdownMenuItem as Q, DropdownMenuLabel as U, DropdownMenuPortal as W, DropdownMenuRadioGroup as X, DropdownMenuRadioItem as Y, DropdownMenuSeparator as Z, DropdownMenuShortcut as _, DropdownMenuSub as $, DropdownMenuSubContent as ee, DropdownMenuSubTrigger as oe, DropdownMenuTrigger as re } from "./components/dropdown-menu.js";
12
+ import { Input as ae } from "./components/input.js";
13
+ import { Label as ie } from "./components/label.js";
14
+ import { Pagination as de, PaginationContent as le, PaginationEllipsis as be, PaginationItem as Se, PaginationLink as ue, PaginationNext as ge, PaginationPrevious as me } from "./components/pagination.js";
15
+ import { Popover as Te, PopoverAnchor as De, PopoverContent as fe, PopoverTrigger as Ce } from "./components/popover.js";
16
+ import { Select as se } from "./components/select.js";
17
+ import { Separator as we } from "./components/separator.js";
18
+ import { Sheet as he, SheetBody as ve, SheetClose as Ae, SheetContent as Ie, SheetDescription as ke, SheetFooter as Be, SheetHeader as Fe, SheetTitle as Ge, SheetTrigger as He } from "./components/sheet.js";
19
+ import { Sidebar as Re, SidebarContent as ye, SidebarFooter as Ee, SidebarGroup as Ne, SidebarGroupAction as Oe, SidebarGroupContent as Ve, SidebarGroupLabel as je, SidebarHeader as qe, SidebarInput as ze, SidebarInset as Je, SidebarMenu as Ke, SidebarMenuAction as Qe, SidebarMenuBadge as Ue, SidebarMenuButton as We, SidebarMenuItem as Xe, SidebarMenuSkeleton as Ye, SidebarMenuSub as Ze, SidebarMenuSubButton as _e, SidebarMenuSubItem as $e, SidebarProvider as eo, SidebarRail as oo, SidebarSeparator as ro, SidebarTrigger as to, useSidebar as ao } from "./components/sidebar.js";
20
+ import { SimplePagination as io } from "./components/simple-pagination.js";
21
+ import { SimpleTooltip as lo } from "./components/simple-tooltip.js";
22
+ import { Skeleton as So } from "./components/skeleton.js";
23
+ import { Switch as go } from "./components/switch.js";
24
+ import { Toaster as xo } from "./components/sonner.js";
25
+ import { Table as Do, TableBody as fo, TableCaption as Co, TableCell as Mo, TableFooter as so, TableHead as Po, TableHeader as wo, TableRow as co } from "./components/table.js";
26
+ import { Tabs as vo, TabsContent as Ao, TabsList as Io, TabsTrigger as ko } from "./components/tabs.js";
27
+ import { Textarea as Fo } from "./components/textarea.js";
28
+ import { Tooltip as Ho, TooltipContent as Lo, TooltipProvider as Ro, TooltipTrigger as yo } from "./components/tooltip.js";
19
29
  export {
20
- n as Alert,
21
- a as AlertDescription,
30
+ a as Alert,
31
+ n as AlertDescription,
22
32
  i as AlertTitle,
23
- m as Avatar,
24
- T as AvatarFallback,
25
- b as AvatarImage,
26
- l as Badge,
27
- d as Button,
33
+ g as Avatar,
34
+ m as AvatarFallback,
35
+ x as AvatarImage,
36
+ d as Badge,
37
+ b as Button,
38
+ D as Calendar,
28
39
  C as Card,
29
- f as CardAction,
30
- w as CardContent,
31
- s as CardDescription,
32
- M as CardFooter,
33
- P as CardHeader,
34
- S as CardTitle,
35
- h as Checkbox,
36
- A as Dialog,
37
- I as DialogClose,
38
- F as DialogContent,
39
- H as DialogDescription,
40
- k as DialogFooter,
41
- L as DialogHeader,
42
- B as DialogOverlay,
43
- R as DialogPortal,
44
- y as DialogTitle,
45
- G as DialogTrigger,
46
- N as DropdownMenu,
47
- O as DropdownMenuCheckboxItem,
48
- V as DropdownMenuContent,
49
- j as DropdownMenuGroup,
50
- q as DropdownMenuItem,
51
- z as DropdownMenuLabel,
52
- J as DropdownMenuPortal,
53
- K as DropdownMenuRadioGroup,
54
- Q as DropdownMenuRadioItem,
55
- U as DropdownMenuSeparator,
56
- W as DropdownMenuShortcut,
57
- X as DropdownMenuSub,
58
- Y as DropdownMenuSubContent,
59
- Z as DropdownMenuSubTrigger,
60
- _ as DropdownMenuTrigger,
61
- ao as Input,
62
- po as Label,
63
- go as Pagination,
64
- Do as PaginationContent,
65
- uo as PaginationEllipsis,
66
- mo as PaginationItem,
67
- To as PaginationLink,
68
- bo as PaginationNext,
69
- xo as PaginationPrevious,
70
- so as Popover,
71
- Mo as PopoverAnchor,
72
- Po as PopoverContent,
73
- So as PopoverTrigger,
74
- ho as Select,
75
- Ao as Sheet,
76
- Io as SheetClose,
77
- Fo as SheetContent,
78
- Ho as SheetDescription,
79
- ko as SheetFooter,
80
- Lo as SheetHeader,
81
- Bo as SheetTitle,
82
- Ro as SheetTrigger,
83
- fo as SimplePagination,
84
- Go as Table,
85
- Eo as TableBody,
86
- No as TableCaption,
87
- Oo as TableCell,
88
- Vo as TableFooter,
89
- jo as TableHead,
90
- qo as TableHeader,
91
- zo as TableRow,
92
- oo as Tabs,
93
- eo as TabsContent,
94
- ro as TabsList,
95
- to as TabsTrigger,
96
- D as buttonVariants,
97
- r as cn
40
+ M as CardAction,
41
+ s as CardContent,
42
+ P as CardDescription,
43
+ w as CardFooter,
44
+ c as CardHeader,
45
+ h as CardTitle,
46
+ A as Checkbox,
47
+ k as DatePicker,
48
+ F as Dialog,
49
+ G as DialogClose,
50
+ H as DialogContent,
51
+ L as DialogDescription,
52
+ R as DialogFooter,
53
+ y as DialogHeader,
54
+ E as DialogOverlay,
55
+ N as DialogPortal,
56
+ O as DialogTitle,
57
+ V as DialogTrigger,
58
+ q as DropdownMenu,
59
+ z as DropdownMenuCheckboxItem,
60
+ J as DropdownMenuContent,
61
+ K as DropdownMenuGroup,
62
+ Q as DropdownMenuItem,
63
+ U as DropdownMenuLabel,
64
+ W as DropdownMenuPortal,
65
+ X as DropdownMenuRadioGroup,
66
+ Y as DropdownMenuRadioItem,
67
+ Z as DropdownMenuSeparator,
68
+ _ as DropdownMenuShortcut,
69
+ $ as DropdownMenuSub,
70
+ ee as DropdownMenuSubContent,
71
+ oe as DropdownMenuSubTrigger,
72
+ re as DropdownMenuTrigger,
73
+ ae as Input,
74
+ ie as Label,
75
+ de as Pagination,
76
+ le as PaginationContent,
77
+ be as PaginationEllipsis,
78
+ Se as PaginationItem,
79
+ ue as PaginationLink,
80
+ ge as PaginationNext,
81
+ me as PaginationPrevious,
82
+ Te as Popover,
83
+ De as PopoverAnchor,
84
+ fe as PopoverContent,
85
+ Ce as PopoverTrigger,
86
+ se as Select,
87
+ we as Separator,
88
+ he as Sheet,
89
+ ve as SheetBody,
90
+ Ae as SheetClose,
91
+ Ie as SheetContent,
92
+ ke as SheetDescription,
93
+ Be as SheetFooter,
94
+ Fe as SheetHeader,
95
+ Ge as SheetTitle,
96
+ He as SheetTrigger,
97
+ Re as Sidebar,
98
+ ye as SidebarContent,
99
+ Ee as SidebarFooter,
100
+ Ne as SidebarGroup,
101
+ Oe as SidebarGroupAction,
102
+ Ve as SidebarGroupContent,
103
+ je as SidebarGroupLabel,
104
+ qe as SidebarHeader,
105
+ ze as SidebarInput,
106
+ Je as SidebarInset,
107
+ Ke as SidebarMenu,
108
+ Qe as SidebarMenuAction,
109
+ Ue as SidebarMenuBadge,
110
+ We as SidebarMenuButton,
111
+ Xe as SidebarMenuItem,
112
+ Ye as SidebarMenuSkeleton,
113
+ Ze as SidebarMenuSub,
114
+ _e as SidebarMenuSubButton,
115
+ $e as SidebarMenuSubItem,
116
+ eo as SidebarProvider,
117
+ oo as SidebarRail,
118
+ ro as SidebarSeparator,
119
+ to as SidebarTrigger,
120
+ io as SimplePagination,
121
+ lo as SimpleTooltip,
122
+ So as Skeleton,
123
+ go as Switch,
124
+ Do as Table,
125
+ fo as TableBody,
126
+ Co as TableCaption,
127
+ Mo as TableCell,
128
+ so as TableFooter,
129
+ Po as TableHead,
130
+ wo as TableHeader,
131
+ co as TableRow,
132
+ vo as Tabs,
133
+ Ao as TabsContent,
134
+ Io as TabsList,
135
+ ko as TabsTrigger,
136
+ Fo as Textarea,
137
+ xo as Toaster,
138
+ Ho as Tooltip,
139
+ Lo as TooltipContent,
140
+ Ro as TooltipProvider,
141
+ yo as TooltipTrigger,
142
+ S as buttonVariants,
143
+ r as cn,
144
+ ao as useSidebar
98
145
  };
@@ -0,0 +1,12 @@
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
+ };
@@ -0,0 +1,21 @@
1
+ var n = Object.defineProperty;
2
+ var c = (t, d) => n(t, "name", { value: d, configurable: !0 });
3
+ function m(t) {
4
+ return (d, e) => {
5
+ const f = e != null && e.context ? String(e.context) : "standalone";
6
+ let u;
7
+ if (f === "formatting" && t.formattingValues) {
8
+ const l = t.defaultFormattingWidth || t.defaultWidth, a = e != null && e.width ? String(e.width) : l;
9
+ u = t.formattingValues[a] || t.formattingValues[l];
10
+ } else {
11
+ const l = t.defaultWidth, a = e != null && e.width ? String(e.width) : t.defaultWidth;
12
+ u = t.values[a] || t.values[l];
13
+ }
14
+ const h = t.argumentCallback ? t.argumentCallback(d) : d;
15
+ return u[h];
16
+ };
17
+ }
18
+ c(m, "buildLocalizeFn");
19
+ export {
20
+ m as buildLocalizeFn
21
+ };
@@ -0,0 +1,36 @@
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
+ };
@@ -0,0 +1,18 @@
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
+ };
@@ -0,0 +1,72 @@
1
+ var u = Object.defineProperty;
2
+ var t = (r, o) => u(r, "name", { value: o, configurable: !0 });
3
+ const a = {
4
+ lessThanXSeconds: {
5
+ one: "moins d’une seconde",
6
+ other: "moins de {{count}} secondes"
7
+ },
8
+ xSeconds: {
9
+ one: "1 seconde",
10
+ other: "{{count}} secondes"
11
+ },
12
+ halfAMinute: "30 secondes",
13
+ lessThanXMinutes: {
14
+ one: "moins d’une minute",
15
+ other: "moins de {{count}} minutes"
16
+ },
17
+ xMinutes: {
18
+ one: "1 minute",
19
+ other: "{{count}} minutes"
20
+ },
21
+ aboutXHours: {
22
+ one: "environ 1 heure",
23
+ other: "environ {{count}} heures"
24
+ },
25
+ xHours: {
26
+ one: "1 heure",
27
+ other: "{{count}} heures"
28
+ },
29
+ xDays: {
30
+ one: "1 jour",
31
+ other: "{{count}} jours"
32
+ },
33
+ aboutXWeeks: {
34
+ one: "environ 1 semaine",
35
+ other: "environ {{count}} semaines"
36
+ },
37
+ xWeeks: {
38
+ one: "1 semaine",
39
+ other: "{{count}} semaines"
40
+ },
41
+ aboutXMonths: {
42
+ one: "environ 1 mois",
43
+ other: "environ {{count}} mois"
44
+ },
45
+ xMonths: {
46
+ one: "1 mois",
47
+ other: "{{count}} mois"
48
+ },
49
+ aboutXYears: {
50
+ one: "environ 1 an",
51
+ other: "environ {{count}} ans"
52
+ },
53
+ xYears: {
54
+ one: "1 an",
55
+ other: "{{count}} ans"
56
+ },
57
+ overXYears: {
58
+ one: "plus d’un an",
59
+ other: "plus de {{count}} ans"
60
+ },
61
+ almostXYears: {
62
+ one: "presqu’un an",
63
+ other: "presque {{count}} ans"
64
+ }
65
+ }, c = /* @__PURE__ */ t((r, o, n) => {
66
+ let e;
67
+ const s = a[r];
68
+ return typeof s == "string" ? e = s : o === 1 ? e = s.one : e = s.other.replace("{{count}}", String(o)), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "dans " + e : "il y a " + e : e;
69
+ }, "formatDistance");
70
+ export {
71
+ c as formatDistance
72
+ };
@@ -0,0 +1,33 @@
1
+ import { buildFormatLongFn as t } from "../../_lib/buildFormatLongFn.js";
2
+ const m = {
3
+ full: "EEEE d MMMM y",
4
+ long: "d MMMM y",
5
+ medium: "d MMM y",
6
+ short: "dd/MM/y"
7
+ }, d = {
8
+ full: "HH:mm:ss zzzz",
9
+ long: "HH:mm:ss z",
10
+ medium: "HH:mm:ss",
11
+ short: "HH:mm"
12
+ }, e = {
13
+ full: "{{date}} 'à' {{time}}",
14
+ long: "{{date}} 'à' {{time}}",
15
+ medium: "{{date}}, {{time}}",
16
+ short: "{{date}}, {{time}}"
17
+ }, a = {
18
+ date: t({
19
+ formats: m,
20
+ defaultWidth: "full"
21
+ }),
22
+ time: t({
23
+ formats: d,
24
+ defaultWidth: "full"
25
+ }),
26
+ dateTime: t({
27
+ formats: e,
28
+ defaultWidth: "full"
29
+ })
30
+ };
31
+ export {
32
+ a as formatLong
33
+ };
@@ -0,0 +1,13 @@
1
+ var a = Object.defineProperty;
2
+ var o = (e, t) => a(e, "name", { value: t, configurable: !0 });
3
+ const r = {
4
+ lastWeek: "eeee 'dernier à' p",
5
+ yesterday: "'hier à' p",
6
+ today: "'aujourd’hui à' p",
7
+ tomorrow: "'demain à' p'",
8
+ nextWeek: "eeee 'prochain à' p",
9
+ other: "P"
10
+ }, d = /* @__PURE__ */ o((e, t, i, p) => r[e], "formatRelative");
11
+ export {
12
+ d as formatRelative
13
+ };