fina-react-ds 1.0.15 → 1.0.17
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,29 @@
|
|
|
1
|
+
var i = Object.defineProperty;
|
|
2
|
+
var m = (o, e) => i(o, "name", { value: e, configurable: !0 });
|
|
3
|
+
import { jsx as r, jsxs as c } from "react/jsx-runtime";
|
|
4
|
+
import { HexColorPicker as s } from "react-colorful";
|
|
5
|
+
import { useFormContext as F } from "react-hook-form";
|
|
6
|
+
import { FormField as f, FormItem as p, FormLabel as x, FormControl as a, FormMessage as d } from "./form.js";
|
|
7
|
+
function P({
|
|
8
|
+
name: o,
|
|
9
|
+
label: e,
|
|
10
|
+
required: l = !1
|
|
11
|
+
}) {
|
|
12
|
+
const { control: n } = F();
|
|
13
|
+
return /* @__PURE__ */ r(
|
|
14
|
+
f,
|
|
15
|
+
{
|
|
16
|
+
control: n,
|
|
17
|
+
name: o,
|
|
18
|
+
render: /* @__PURE__ */ m(({ field: t }) => /* @__PURE__ */ c(p, { children: [
|
|
19
|
+
/* @__PURE__ */ r(x, { required: l, children: e }),
|
|
20
|
+
/* @__PURE__ */ r(a, { children: /* @__PURE__ */ r(s, { color: t.value ?? "", ...t }) }),
|
|
21
|
+
/* @__PURE__ */ r(d, {})
|
|
22
|
+
] }), "render")
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
m(P, "FormColorPicker");
|
|
27
|
+
export {
|
|
28
|
+
P as FormColorPicker
|
|
29
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export { Tabs, TabsList, TabsTrigger, TabsContent } from "./components/tabs";
|
|
|
32
32
|
export { Textarea } from "./components/textarea";
|
|
33
33
|
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider, } from "./components/tooltip";
|
|
34
34
|
export { FormDate } from "./components/form-date";
|
|
35
|
+
export { FormColorPicker } from "./components/form-color-picker";
|
|
35
36
|
export { FormFileUploader } from "./components/form-file-uploader";
|
|
36
37
|
export { FormInput } from "./components/form-input";
|
|
37
38
|
export { FormSelect } from "./components/form-select";
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AlertDialog as r, AlertDialogAction as t, AlertDialogCancel as a, AlertDialogContent as i, AlertDialogDescription as n, AlertDialogFooter as p, AlertDialogHeader as l, AlertDialogOverlay as d, AlertDialogPortal as m, AlertDialogTitle as g, AlertDialogTrigger as S } from "./components/alert-dialog.js";
|
|
2
2
|
import { Alert as u, AlertDescription as x, AlertTitle as D } from "./components/alert.js";
|
|
3
3
|
import { Badge as T } from "./components/badge.js";
|
|
4
|
-
import { Button as s, buttonVariants as
|
|
5
|
-
import { Avatar as c, AvatarFallback as
|
|
4
|
+
import { Button as s, buttonVariants as F } from "./components/button.js";
|
|
5
|
+
import { Avatar as c, AvatarFallback as P, AvatarImage as A } from "./components/avatar.js";
|
|
6
6
|
import { Calendar as h } from "./components/calendar.js";
|
|
7
|
-
import { Card as I, CardAction as H, CardContent as
|
|
7
|
+
import { Card as I, CardAction as H, CardContent as k, CardDescription as L, CardFooter as B, CardHeader as G, CardTitle as R } from "./components/card.js";
|
|
8
8
|
import { Checkbox as O } from "./components/checkbox.js";
|
|
9
9
|
import { DatePicker as E } from "./components/date-picker.js";
|
|
10
10
|
import { Dialog as V, DialogClose as j, DialogContent as q, DialogDescription as z, DialogFooter as J, DialogHeader as K, DialogOverlay as Q, DialogPortal as W, DialogTitle as X, DialogTrigger as Y } from "./components/dialog.js";
|
|
@@ -12,18 +12,18 @@ import { DataLoader as _ } from "./components/data-loader.js";
|
|
|
12
12
|
import { DropdownMenu as ee, DropdownMenuCheckboxItem as oe, DropdownMenuContent as re, DropdownMenuGroup as te, DropdownMenuItem as ae, DropdownMenuLabel as ie, DropdownMenuPortal as ne, DropdownMenuRadioGroup as pe, DropdownMenuRadioItem as le, DropdownMenuSeparator as de, DropdownMenuShortcut as me, DropdownMenuSub as ge, DropdownMenuSubContent as Se, DropdownMenuSubTrigger as be, DropdownMenuTrigger as ue } from "./components/dropdown-menu.js";
|
|
13
13
|
import { FileUploader as De } from "./components/file-uploader.js";
|
|
14
14
|
import { HoverCard as Te, HoverCardContent as Ce, HoverCardTrigger as se } from "./components/hover-card.js";
|
|
15
|
-
import { Input as
|
|
16
|
-
import { Label as
|
|
15
|
+
import { Input as Me } from "./components/input.js";
|
|
16
|
+
import { Label as Pe } from "./components/label.js";
|
|
17
17
|
import { ModeToggle as we } from "./components/mode-toggle.js";
|
|
18
|
-
import { Pagination as ve, PaginationContent as Ie, PaginationEllipsis as He, PaginationItem as
|
|
18
|
+
import { Pagination as ve, PaginationContent as Ie, PaginationEllipsis as He, PaginationItem as ke, PaginationLink as Le, PaginationNext as Be, PaginationPrevious as Ge } from "./components/pagination.js";
|
|
19
19
|
import { PasswordRulesChecker as ye } from "./components/password-rules-checker.js";
|
|
20
20
|
import { Popover as Ue, PopoverAnchor as Ee, PopoverContent as Ne, PopoverTrigger as Ve } from "./components/popover.js";
|
|
21
21
|
import { Select as qe } from "./components/select.js";
|
|
22
22
|
import { Separator as Je } from "./components/separator.js";
|
|
23
23
|
import { Sheet as Qe, SheetBody as We, SheetClose as Xe, SheetContent as Ye, SheetDescription as Ze, SheetFooter as _e, SheetHeader as $e, SheetTitle as eo, SheetTrigger as oo } from "./components/sheet.js";
|
|
24
|
-
import { Sidebar as to, SidebarContent as ao, SidebarFooter as io, SidebarGroup as no, SidebarGroupAction as po, SidebarGroupContent as lo, SidebarGroupLabel as mo, SidebarHeader as go, SidebarInput as So, SidebarInset as bo, SidebarMenu as uo, SidebarMenuAction as xo, SidebarMenuBadge as Do, SidebarMenuButton as fo, SidebarMenuItem as To, SidebarMenuSkeleton as Co, SidebarMenuSub as so, SidebarMenuSubButton as
|
|
24
|
+
import { Sidebar as to, SidebarContent as ao, SidebarFooter as io, SidebarGroup as no, SidebarGroupAction as po, SidebarGroupContent as lo, SidebarGroupLabel as mo, SidebarHeader as go, SidebarInput as So, SidebarInset as bo, SidebarMenu as uo, SidebarMenuAction as xo, SidebarMenuBadge as Do, SidebarMenuButton as fo, SidebarMenuItem as To, SidebarMenuSkeleton as Co, SidebarMenuSub as so, SidebarMenuSubButton as Fo, SidebarMenuSubItem as Mo, SidebarProvider as co, SidebarRail as Po, SidebarSeparator as Ao, SidebarTrigger as wo, useSidebar as ho } from "./components/sidebar.js";
|
|
25
25
|
import { SimplePagination as Io } from "./components/simple-pagination.js";
|
|
26
|
-
import { SimpleTooltip as
|
|
26
|
+
import { SimpleTooltip as ko } from "./components/simple-tooltip.js";
|
|
27
27
|
import { Skeleton as Bo } from "./components/skeleton.js";
|
|
28
28
|
import { Switch as Ro } from "./components/switch.js";
|
|
29
29
|
import { Toaster as Oo } from "./components/sonner.js";
|
|
@@ -32,14 +32,15 @@ import { Tabs as Wo, TabsContent as Xo, TabsList as Yo, TabsTrigger as Zo } from
|
|
|
32
32
|
import { Textarea as $o } from "./components/textarea.js";
|
|
33
33
|
import { Tooltip as or, TooltipContent as rr, TooltipProvider as tr, TooltipTrigger as ar } from "./components/tooltip.js";
|
|
34
34
|
import { FormDate as nr } from "./components/form-date.js";
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
35
|
+
import { FormColorPicker as lr } from "./components/form-color-picker.js";
|
|
36
|
+
import { FormFileUploader as mr } from "./components/form-file-uploader.js";
|
|
37
|
+
import { FormInput as Sr } from "./components/form-input.js";
|
|
38
|
+
import { FormSelect as ur } from "./components/form-select.js";
|
|
39
|
+
import { FormSwitch as Dr } from "./components/form-switch.js";
|
|
40
|
+
import { FormTextarea as Tr } from "./components/form-textarea.js";
|
|
41
|
+
import { Form as sr, FormControl as Fr, FormDescription as Mr, FormField as cr, FormItem as Pr, FormLabel as Ar, FormMessage as wr, useFormField as hr } from "./components/form.js";
|
|
42
|
+
import { ThemeProvider as Ir, useTheme as Hr } from "./providers/theme-provider.js";
|
|
43
|
+
import { LoaderProvider as Lr, useLoader as Br } from "./providers/loader-provider.js";
|
|
43
44
|
export {
|
|
44
45
|
u as Alert,
|
|
45
46
|
x as AlertDescription,
|
|
@@ -56,15 +57,15 @@ export {
|
|
|
56
57
|
S as AlertDialogTrigger,
|
|
57
58
|
D as AlertTitle,
|
|
58
59
|
c as Avatar,
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
P as AvatarFallback,
|
|
61
|
+
A as AvatarImage,
|
|
61
62
|
T as Badge,
|
|
62
63
|
s as Button,
|
|
63
64
|
h as Calendar,
|
|
64
65
|
I as Card,
|
|
65
66
|
H as CardAction,
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
k as CardContent,
|
|
68
|
+
L as CardDescription,
|
|
68
69
|
B as CardFooter,
|
|
69
70
|
G as CardHeader,
|
|
70
71
|
R as CardTitle,
|
|
@@ -97,31 +98,32 @@ export {
|
|
|
97
98
|
be as DropdownMenuSubTrigger,
|
|
98
99
|
ue as DropdownMenuTrigger,
|
|
99
100
|
De as FileUploader,
|
|
100
|
-
|
|
101
|
-
|
|
101
|
+
sr as Form,
|
|
102
|
+
lr as FormColorPicker,
|
|
103
|
+
Fr as FormControl,
|
|
102
104
|
nr as FormDate,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
105
|
+
Mr as FormDescription,
|
|
106
|
+
cr as FormField,
|
|
107
|
+
mr as FormFileUploader,
|
|
108
|
+
Sr as FormInput,
|
|
109
|
+
Pr as FormItem,
|
|
110
|
+
Ar as FormLabel,
|
|
111
|
+
wr as FormMessage,
|
|
112
|
+
ur as FormSelect,
|
|
113
|
+
Dr as FormSwitch,
|
|
114
|
+
Tr as FormTextarea,
|
|
113
115
|
Te as HoverCard,
|
|
114
116
|
Ce as HoverCardContent,
|
|
115
117
|
se as HoverCardTrigger,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
118
|
+
Me as Input,
|
|
119
|
+
Pe as Label,
|
|
120
|
+
Lr as LoaderProvider,
|
|
119
121
|
we as ModeToggle,
|
|
120
122
|
ve as Pagination,
|
|
121
123
|
Ie as PaginationContent,
|
|
122
124
|
He as PaginationEllipsis,
|
|
123
|
-
|
|
124
|
-
|
|
125
|
+
ke as PaginationItem,
|
|
126
|
+
Le as PaginationLink,
|
|
125
127
|
Be as PaginationNext,
|
|
126
128
|
Ge as PaginationPrevious,
|
|
127
129
|
ye as PasswordRulesChecker,
|
|
@@ -157,14 +159,14 @@ export {
|
|
|
157
159
|
To as SidebarMenuItem,
|
|
158
160
|
Co as SidebarMenuSkeleton,
|
|
159
161
|
so as SidebarMenuSub,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
+
Fo as SidebarMenuSubButton,
|
|
163
|
+
Mo as SidebarMenuSubItem,
|
|
162
164
|
co as SidebarProvider,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
+
Po as SidebarRail,
|
|
166
|
+
Ao as SidebarSeparator,
|
|
165
167
|
wo as SidebarTrigger,
|
|
166
168
|
Io as SimplePagination,
|
|
167
|
-
|
|
169
|
+
ko as SimpleTooltip,
|
|
168
170
|
Bo as Skeleton,
|
|
169
171
|
Ro as Switch,
|
|
170
172
|
Eo as Table,
|
|
@@ -180,15 +182,15 @@ export {
|
|
|
180
182
|
Yo as TabsList,
|
|
181
183
|
Zo as TabsTrigger,
|
|
182
184
|
$o as Textarea,
|
|
183
|
-
|
|
185
|
+
Ir as ThemeProvider,
|
|
184
186
|
Oo as Toaster,
|
|
185
187
|
or as Tooltip,
|
|
186
188
|
rr as TooltipContent,
|
|
187
189
|
tr as TooltipProvider,
|
|
188
190
|
ar as TooltipTrigger,
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
191
|
+
F as buttonVariants,
|
|
192
|
+
hr as useFormField,
|
|
193
|
+
Br as useLoader,
|
|
192
194
|
ho as useSidebar,
|
|
193
|
-
|
|
195
|
+
Hr as useTheme
|
|
194
196
|
};
|