fina-react-ds 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,160 @@
1
+ var f = Object.defineProperty;
2
+ var e = (t, a) => f(t, "name", { value: a, configurable: !0 });
3
+ import { jsx as o, jsxs as n } from "react/jsx-runtime";
4
+ import { Root as i, Portal as s, Overlay as d, Trigger as g, Content as m, Title as u, Description as p, Action as x, Cancel as D } from "../node_modules/@radix-ui/react-alert-dialog/dist/index.js";
5
+ import { cn as l } from "../lib/utils.js";
6
+ import { buttonVariants as r } from "./button.js";
7
+ function C({
8
+ ...t
9
+ }) {
10
+ return /* @__PURE__ */ o(i, { "data-slot": "alert-dialog", ...t });
11
+ }
12
+ e(C, "AlertDialog");
13
+ function h({
14
+ ...t
15
+ }) {
16
+ return /* @__PURE__ */ o(g, { "data-slot": "alert-dialog-trigger", ...t });
17
+ }
18
+ e(h, "AlertDialogTrigger");
19
+ function A({
20
+ ...t
21
+ }) {
22
+ return /* @__PURE__ */ o(s, { "data-slot": "alert-dialog-portal", ...t });
23
+ }
24
+ e(A, "AlertDialogPortal");
25
+ function v({
26
+ className: t,
27
+ ...a
28
+ }) {
29
+ return /* @__PURE__ */ o(
30
+ d,
31
+ {
32
+ "data-slot": "alert-dialog-overlay",
33
+ className: l(
34
+ "fc:data-[state=open]:animate-in fc:data-[state=closed]:animate-out fc:data-[state=closed]:fade-out-0 fc:data-[state=open]:fade-in-0 fc:fixed fc:inset-0 fc:z-50 fc:bg-black/50",
35
+ t
36
+ ),
37
+ ...a
38
+ }
39
+ );
40
+ }
41
+ e(v, "AlertDialogOverlay");
42
+ function z({
43
+ className: t,
44
+ ...a
45
+ }) {
46
+ return /* @__PURE__ */ n(A, { children: [
47
+ /* @__PURE__ */ o(v, {}),
48
+ /* @__PURE__ */ o(
49
+ m,
50
+ {
51
+ "data-slot": "alert-dialog-content",
52
+ className: l(
53
+ "fc:bg-card fc:data-[state=open]:animate-in fc:data-[state=closed]:animate-out fc:data-[state=closed]:fade-out-0 fc:data-[state=open]:fade-in-0 fc:data-[state=closed]:zoom-out-95 fc:data-[state=open]:zoom-in-95 fc:fixed fc:top-[50%] fc:left-[50%] fc:z-50 fc:grid fc:w-full fc:max-w-[calc(100%-2rem)] fc:translate-x-[-50%] fc:translate-y-[-50%] fc:gap-4 fc:rounded-lg fc:border fc:p-6 fc:shadow-lg fc:duration-200 fc:sm:max-w-lg",
54
+ t
55
+ ),
56
+ ...a
57
+ }
58
+ )
59
+ ] });
60
+ }
61
+ e(z, "AlertDialogContent");
62
+ function j({
63
+ className: t,
64
+ ...a
65
+ }) {
66
+ return /* @__PURE__ */ o(
67
+ "div",
68
+ {
69
+ "data-slot": "alert-dialog-header",
70
+ className: l("fc:flex fc:flex-col fc:gap-2 fc:text-center fc:sm:text-left", t),
71
+ ...a
72
+ }
73
+ );
74
+ }
75
+ e(j, "AlertDialogHeader");
76
+ function O({
77
+ className: t,
78
+ ...a
79
+ }) {
80
+ return /* @__PURE__ */ o(
81
+ "div",
82
+ {
83
+ "data-slot": "alert-dialog-footer",
84
+ className: l(
85
+ "fc:flex fc:flex-col-reverse fc:gap-2 fc:sm:flex-row fc:sm:justify-end",
86
+ t
87
+ ),
88
+ ...a
89
+ }
90
+ );
91
+ }
92
+ e(O, "AlertDialogFooter");
93
+ function P({
94
+ className: t,
95
+ ...a
96
+ }) {
97
+ return /* @__PURE__ */ o(
98
+ u,
99
+ {
100
+ "data-slot": "alert-dialog-title",
101
+ className: l("fc:text-lg fc:font-semibold", t),
102
+ ...a
103
+ }
104
+ );
105
+ }
106
+ e(P, "AlertDialogTitle");
107
+ function k({
108
+ className: t,
109
+ ...a
110
+ }) {
111
+ return /* @__PURE__ */ o(
112
+ p,
113
+ {
114
+ "data-slot": "alert-dialog-description",
115
+ className: l("fc:text-muted fc:text-sm", t),
116
+ ...a
117
+ }
118
+ );
119
+ }
120
+ e(k, "AlertDialogDescription");
121
+ function R({
122
+ color: t = "primary",
123
+ className: a,
124
+ ...c
125
+ }) {
126
+ return /* @__PURE__ */ o(
127
+ x,
128
+ {
129
+ className: l(r({ color: t }), a),
130
+ ...c
131
+ }
132
+ );
133
+ }
134
+ e(R, "AlertDialogAction");
135
+ function F({
136
+ className: t,
137
+ ...a
138
+ }) {
139
+ return /* @__PURE__ */ o(
140
+ D,
141
+ {
142
+ className: l(r({ variant: "ghost", color: "dark" }), t),
143
+ ...a
144
+ }
145
+ );
146
+ }
147
+ e(F, "AlertDialogCancel");
148
+ export {
149
+ C as AlertDialog,
150
+ R as AlertDialogAction,
151
+ F as AlertDialogCancel,
152
+ z as AlertDialogContent,
153
+ k as AlertDialogDescription,
154
+ O as AlertDialogFooter,
155
+ j as AlertDialogHeader,
156
+ v as AlertDialogOverlay,
157
+ A as AlertDialogPortal,
158
+ P as AlertDialogTitle,
159
+ h as AlertDialogTrigger
160
+ };
@@ -1,6 +1,6 @@
1
1
  import { VariantProps } from "class-variance-authority";
2
2
  declare const alertVariants: (props?: ({
3
- variant?: "info" | "warning" | "success" | "destructive" | null | undefined;
3
+ variant?: "info" | "success" | "warning" | "destructive" | null | undefined;
4
4
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
5
5
  declare function Alert({ variant, className, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>): import("react/jsx-runtime").JSX.Element;
6
6
  declare function AlertTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { VariantProps } from "class-variance-authority";
2
2
  declare const badgeVariants: (props?: ({
3
- variant?: "info" | "warning" | "success" | "destructive" | "primary" | null | undefined;
3
+ variant?: "primary" | "info" | "success" | "warning" | "destructive" | null | undefined;
4
4
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
5
5
  declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
6
6
  asChild?: boolean;
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from "class-variance-authority";
2
2
  declare const buttonVariants: (props?: ({
3
- color?: "info" | "warning" | "success" | "destructive" | "primary" | "dark" | null | undefined;
4
- variant?: "link" | "contained" | "outline" | "ghost" | null | undefined;
3
+ color?: "primary" | "info" | "success" | "warning" | "destructive" | "dark" | null | undefined;
4
+ variant?: "contained" | "outline" | "ghost" | "link" | null | undefined;
5
5
  size?: "default" | "sm" | "lg" | "icon" | null | undefined;
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  declare function Button({ className, variant, color, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
@@ -43,7 +43,7 @@ declare function SidebarGroupContent({ className, ...props }: React.ComponentPro
43
43
  declare function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
44
44
  declare function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
45
45
  declare const sidebarMenuButtonVariants: (props?: ({
46
- variant?: "default" | "outline" | null | undefined;
46
+ variant?: "outline" | "default" | null | undefined;
47
47
  size?: "default" | "sm" | "lg" | null | undefined;
48
48
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
49
49
  declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, ...props }: React.ComponentProps<"button"> & {
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { cn } from "./lib/utils";
1
+ export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, } from "./components/alert-dialog";
2
2
  export { Alert, AlertTitle, AlertDescription } from "./components/alert";
3
3
  export { Badge } from "./components/badge";
4
4
  export { Button, buttonVariants } from "./components/button";
package/dist/index.js CHANGED
@@ -1,145 +1,155 @@
1
- import { cn as r } from "./lib/utils.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";
1
+ import { AlertDialog as r, AlertDialogAction as t, AlertDialogCancel as a, AlertDialogContent as i, AlertDialogDescription as n, AlertDialogFooter as l, AlertDialogHeader as p, AlertDialogOverlay as d, AlertDialogPortal as g, AlertDialogTitle as b, AlertDialogTrigger as S } from "./components/alert-dialog.js";
2
+ import { Alert as D, AlertDescription as m, AlertTitle as T } from "./components/alert.js";
3
+ import { Badge as f } from "./components/badge.js";
4
+ import { Button as M, buttonVariants as A } from "./components/button.js";
5
+ import { Avatar as P, AvatarFallback as c, AvatarImage as w } from "./components/avatar.js";
6
+ import { Calendar as v } from "./components/calendar.js";
7
+ import { Card as k, CardAction as B, CardContent as F, CardDescription as H, CardFooter as G, CardHeader as L, CardTitle as y } from "./components/card.js";
8
+ import { Checkbox as O } from "./components/checkbox.js";
9
+ import { DatePicker as N } from "./components/date-picker.js";
10
+ import { Dialog as j, DialogClose as q, DialogContent as z, DialogDescription as J, DialogFooter as K, DialogHeader as Q, DialogOverlay as U, DialogPortal as W, DialogTitle as X, DialogTrigger as Y } from "./components/dialog.js";
11
+ import { DropdownMenu as _, DropdownMenuCheckboxItem as $, DropdownMenuContent as ee, DropdownMenuGroup as oe, DropdownMenuItem as re, DropdownMenuLabel as te, DropdownMenuPortal as ae, DropdownMenuRadioGroup as ie, DropdownMenuRadioItem as ne, DropdownMenuSeparator as le, DropdownMenuShortcut as pe, DropdownMenuSub as de, DropdownMenuSubContent as ge, DropdownMenuSubTrigger as be, DropdownMenuTrigger as Se } from "./components/dropdown-menu.js";
12
+ import { Input as De } from "./components/input.js";
13
+ import { Label as Te } from "./components/label.js";
14
+ import { Pagination as fe, PaginationContent as Ce, PaginationEllipsis as Me, PaginationItem as Ae, PaginationLink as se, PaginationNext as Pe, PaginationPrevious as ce } from "./components/pagination.js";
15
+ import { Popover as he, PopoverAnchor as ve, PopoverContent as Ie, PopoverTrigger as ke } from "./components/popover.js";
16
+ import { Select as Fe } from "./components/select.js";
17
+ import { Separator as Ge } from "./components/separator.js";
18
+ import { Sheet as ye, SheetBody as Re, SheetClose as Oe, SheetContent as Ee, SheetDescription as Ne, SheetFooter as Ve, SheetHeader as je, SheetTitle as qe, SheetTrigger as ze } from "./components/sheet.js";
19
+ import { Sidebar as Ke, SidebarContent as Qe, SidebarFooter as Ue, SidebarGroup as We, SidebarGroupAction as Xe, SidebarGroupContent as Ye, SidebarGroupLabel as Ze, SidebarHeader as _e, SidebarInput as $e, SidebarInset as eo, SidebarMenu as oo, SidebarMenuAction as ro, SidebarMenuBadge as to, SidebarMenuButton as ao, SidebarMenuItem as io, SidebarMenuSkeleton as no, SidebarMenuSub as lo, SidebarMenuSubButton as po, SidebarMenuSubItem as go, SidebarProvider as bo, SidebarRail as So, SidebarSeparator as uo, SidebarTrigger as Do, useSidebar as mo } from "./components/sidebar.js";
20
+ import { SimplePagination as xo } from "./components/simple-pagination.js";
21
+ import { SimpleTooltip as Co } from "./components/simple-tooltip.js";
22
+ import { Skeleton as Ao } from "./components/skeleton.js";
23
+ import { Switch as Po } from "./components/switch.js";
24
+ import { Toaster as wo } from "./components/sonner.js";
25
+ import { Table as vo, TableBody as Io, TableCaption as ko, TableCell as Bo, TableFooter as Fo, TableHead as Ho, TableHeader as Go, TableRow as Lo } from "./components/table.js";
26
+ import { Tabs as Ro, TabsContent as Oo, TabsList as Eo, TabsTrigger as No } from "./components/tabs.js";
27
+ import { Textarea as jo } from "./components/textarea.js";
28
+ import { Tooltip as zo, TooltipContent as Jo, TooltipProvider as Ko, TooltipTrigger as Qo } from "./components/tooltip.js";
29
29
  export {
30
- a as Alert,
31
- n as AlertDescription,
32
- i as AlertTitle,
33
- g as Avatar,
34
- m as AvatarFallback,
35
- x as AvatarImage,
36
- d as Badge,
37
- b as Button,
38
- D as Calendar,
39
- C as Card,
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
30
+ D as Alert,
31
+ m as AlertDescription,
32
+ r as AlertDialog,
33
+ t as AlertDialogAction,
34
+ a as AlertDialogCancel,
35
+ i as AlertDialogContent,
36
+ n as AlertDialogDescription,
37
+ l as AlertDialogFooter,
38
+ p as AlertDialogHeader,
39
+ d as AlertDialogOverlay,
40
+ g as AlertDialogPortal,
41
+ b as AlertDialogTitle,
42
+ S as AlertDialogTrigger,
43
+ T as AlertTitle,
44
+ P as Avatar,
45
+ c as AvatarFallback,
46
+ w as AvatarImage,
47
+ f as Badge,
48
+ M as Button,
49
+ v as Calendar,
50
+ k as Card,
51
+ B as CardAction,
52
+ F as CardContent,
53
+ H as CardDescription,
54
+ G as CardFooter,
55
+ L as CardHeader,
56
+ y as CardTitle,
57
+ O as Checkbox,
58
+ N as DatePicker,
59
+ j as Dialog,
60
+ q as DialogClose,
61
+ z as DialogContent,
62
+ J as DialogDescription,
63
+ K as DialogFooter,
64
+ Q as DialogHeader,
65
+ U as DialogOverlay,
66
+ W as DialogPortal,
67
+ X as DialogTitle,
68
+ Y as DialogTrigger,
69
+ _ as DropdownMenu,
70
+ $ as DropdownMenuCheckboxItem,
71
+ ee as DropdownMenuContent,
72
+ oe as DropdownMenuGroup,
73
+ re as DropdownMenuItem,
74
+ te as DropdownMenuLabel,
75
+ ae as DropdownMenuPortal,
76
+ ie as DropdownMenuRadioGroup,
77
+ ne as DropdownMenuRadioItem,
78
+ le as DropdownMenuSeparator,
79
+ pe as DropdownMenuShortcut,
80
+ de as DropdownMenuSub,
81
+ ge as DropdownMenuSubContent,
82
+ be as DropdownMenuSubTrigger,
83
+ Se as DropdownMenuTrigger,
84
+ De as Input,
85
+ Te as Label,
86
+ fe as Pagination,
87
+ Ce as PaginationContent,
88
+ Me as PaginationEllipsis,
89
+ Ae as PaginationItem,
90
+ se as PaginationLink,
91
+ Pe as PaginationNext,
92
+ ce as PaginationPrevious,
93
+ he as Popover,
94
+ ve as PopoverAnchor,
95
+ Ie as PopoverContent,
96
+ ke as PopoverTrigger,
97
+ Fe as Select,
98
+ Ge as Separator,
99
+ ye as Sheet,
100
+ Re as SheetBody,
101
+ Oe as SheetClose,
102
+ Ee as SheetContent,
103
+ Ne as SheetDescription,
104
+ Ve as SheetFooter,
105
+ je as SheetHeader,
106
+ qe as SheetTitle,
107
+ ze as SheetTrigger,
108
+ Ke as Sidebar,
109
+ Qe as SidebarContent,
110
+ Ue as SidebarFooter,
111
+ We as SidebarGroup,
112
+ Xe as SidebarGroupAction,
113
+ Ye as SidebarGroupContent,
114
+ Ze as SidebarGroupLabel,
115
+ _e as SidebarHeader,
116
+ $e as SidebarInput,
117
+ eo as SidebarInset,
118
+ oo as SidebarMenu,
119
+ ro as SidebarMenuAction,
120
+ to as SidebarMenuBadge,
121
+ ao as SidebarMenuButton,
122
+ io as SidebarMenuItem,
123
+ no as SidebarMenuSkeleton,
124
+ lo as SidebarMenuSub,
125
+ po as SidebarMenuSubButton,
126
+ go as SidebarMenuSubItem,
127
+ bo as SidebarProvider,
128
+ So as SidebarRail,
129
+ uo as SidebarSeparator,
130
+ Do as SidebarTrigger,
131
+ xo as SimplePagination,
132
+ Co as SimpleTooltip,
133
+ Ao as Skeleton,
134
+ Po as Switch,
135
+ vo as Table,
136
+ Io as TableBody,
137
+ ko as TableCaption,
138
+ Bo as TableCell,
139
+ Fo as TableFooter,
140
+ Ho as TableHead,
141
+ Go as TableHeader,
142
+ Lo as TableRow,
143
+ Ro as Tabs,
144
+ Oo as TabsContent,
145
+ Eo as TabsList,
146
+ No as TabsTrigger,
147
+ jo as Textarea,
148
+ wo as Toaster,
149
+ zo as Tooltip,
150
+ Jo as TooltipContent,
151
+ Ko as TooltipProvider,
152
+ Qo as TooltipTrigger,
153
+ A as buttonVariants,
154
+ mo as useSidebar
145
155
  };
@@ -0,0 +1,130 @@
1
+ var M = Object.defineProperty;
2
+ var s = (e, o) => M(e, "name", { value: o, configurable: !0 });
3
+ import * as l from "react";
4
+ import { createContextScope as x } from "../../react-context/dist/index.js";
5
+ import { useComposedRefs as v } from "../../react-compose-refs/dist/index.js";
6
+ import { createDialogScope as f, Root as I, Portal as L, Overlay as $, Trigger as F, WarningProvider as G, Content as j, Title as W, Description as Y, Close as D } from "../../react-dialog/dist/index.js";
7
+ import { composeEventHandlers as q } from "../../primitive/dist/index.js";
8
+ import { createSlottable as B } from "../../react-slot/dist/index.js";
9
+ import { jsx as i, jsxs as H } from "react/jsx-runtime";
10
+ var m = "AlertDialog", [V, ne] = x(m, [
11
+ f
12
+ ]), n = f(), y = /* @__PURE__ */ s((e) => {
13
+ const { __scopeAlertDialog: o, ...r } = e, t = n(o);
14
+ return /* @__PURE__ */ i(I, { ...t, ...r, modal: !0 });
15
+ }, "AlertDialog");
16
+ y.displayName = m;
17
+ var k = "AlertDialogTrigger", _ = l.forwardRef(
18
+ (e, o) => {
19
+ const { __scopeAlertDialog: r, ...t } = e, a = n(r);
20
+ return /* @__PURE__ */ i(F, { ...a, ...t, ref: o });
21
+ }
22
+ );
23
+ _.displayName = k;
24
+ var z = "AlertDialogPortal", N = /* @__PURE__ */ s((e) => {
25
+ const { __scopeAlertDialog: o, ...r } = e, t = n(o);
26
+ return /* @__PURE__ */ i(L, { ...t, ...r });
27
+ }, "AlertDialogPortal");
28
+ N.displayName = z;
29
+ var J = "AlertDialogOverlay", R = l.forwardRef(
30
+ (e, o) => {
31
+ const { __scopeAlertDialog: r, ...t } = e, a = n(r);
32
+ return /* @__PURE__ */ i($, { ...a, ...t, ref: o });
33
+ }
34
+ );
35
+ R.displayName = J;
36
+ var c = "AlertDialogContent", [K, Q] = V(c), U = B("AlertDialogContent"), C = l.forwardRef(
37
+ (e, o) => {
38
+ const { __scopeAlertDialog: r, children: t, ...a } = e, d = n(r), g = l.useRef(null), w = v(o, g), u = l.useRef(null);
39
+ return /* @__PURE__ */ i(
40
+ G,
41
+ {
42
+ contentName: c,
43
+ titleName: h,
44
+ docsSlug: "alert-dialog",
45
+ children: /* @__PURE__ */ i(K, { scope: r, cancelRef: u, children: /* @__PURE__ */ H(
46
+ j,
47
+ {
48
+ role: "alertdialog",
49
+ ...d,
50
+ ...a,
51
+ ref: w,
52
+ onOpenAutoFocus: q(a.onOpenAutoFocus, (p) => {
53
+ var A;
54
+ p.preventDefault(), (A = u.current) == null || A.focus({ preventScroll: !0 });
55
+ }),
56
+ onPointerDownOutside: /* @__PURE__ */ s((p) => p.preventDefault(), "onPointerDownOutside"),
57
+ onInteractOutside: /* @__PURE__ */ s((p) => p.preventDefault(), "onInteractOutside"),
58
+ children: [
59
+ /* @__PURE__ */ i(U, { children: t }),
60
+ /* @__PURE__ */ i(Z, { contentRef: g })
61
+ ]
62
+ }
63
+ ) })
64
+ }
65
+ );
66
+ }
67
+ );
68
+ C.displayName = c;
69
+ var h = "AlertDialogTitle", E = l.forwardRef(
70
+ (e, o) => {
71
+ const { __scopeAlertDialog: r, ...t } = e, a = n(r);
72
+ return /* @__PURE__ */ i(W, { ...a, ...t, ref: o });
73
+ }
74
+ );
75
+ E.displayName = h;
76
+ var S = "AlertDialogDescription", P = l.forwardRef((e, o) => {
77
+ const { __scopeAlertDialog: r, ...t } = e, a = n(r);
78
+ return /* @__PURE__ */ i(Y, { ...a, ...t, ref: o });
79
+ });
80
+ P.displayName = S;
81
+ var X = "AlertDialogAction", T = l.forwardRef(
82
+ (e, o) => {
83
+ const { __scopeAlertDialog: r, ...t } = e, a = n(r);
84
+ return /* @__PURE__ */ i(D, { ...a, ...t, ref: o });
85
+ }
86
+ );
87
+ T.displayName = X;
88
+ var O = "AlertDialogCancel", b = l.forwardRef(
89
+ (e, o) => {
90
+ const { __scopeAlertDialog: r, ...t } = e, { cancelRef: a } = Q(O, r), d = n(r), g = v(o, a);
91
+ return /* @__PURE__ */ i(D, { ...d, ...t, ref: g });
92
+ }
93
+ );
94
+ b.displayName = O;
95
+ var Z = /* @__PURE__ */ s(({ contentRef: e }) => {
96
+ const o = `\`${c}\` requires a description for the component to be accessible for screen reader users.
97
+
98
+ You can add a description to the \`${c}\` by passing a \`${S}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
99
+
100
+ Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${c}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
101
+
102
+ For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;
103
+ return l.useEffect(() => {
104
+ var t;
105
+ document.getElementById(
106
+ (t = e.current) == null ? void 0 : t.getAttribute("aria-describedby")
107
+ ) || console.warn(o);
108
+ }, [o, e]), null;
109
+ }, "DescriptionWarning"), se = y, ce = _, pe = N, ge = R, de = C, ue = T, Ae = b, ve = E, fe = P;
110
+ export {
111
+ ue as Action,
112
+ y as AlertDialog,
113
+ T as AlertDialogAction,
114
+ b as AlertDialogCancel,
115
+ C as AlertDialogContent,
116
+ P as AlertDialogDescription,
117
+ R as AlertDialogOverlay,
118
+ N as AlertDialogPortal,
119
+ E as AlertDialogTitle,
120
+ _ as AlertDialogTrigger,
121
+ Ae as Cancel,
122
+ de as Content,
123
+ fe as Description,
124
+ ge as Overlay,
125
+ pe as Portal,
126
+ se as Root,
127
+ ve as Title,
128
+ ce as Trigger,
129
+ ne as createAlertDialogScope
130
+ };
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "https://github.com/F1na/fina-react-ds"
6
6
  },
7
7
  "private": false,
8
- "version": "1.0.2",
8
+ "version": "1.0.3",
9
9
  "type": "module",
10
10
  "files": [
11
11
  "dist"