fina-react-ds 1.0.20 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -1
- package/dist/index.js +54 -49
- package/dist/lib/arrays.d.ts +3 -0
- package/dist/lib/arrays.js +7 -0
- package/dist/lib/strings.d.ts +2 -0
- package/dist/lib/strings.js +6 -0
- package/package.json +1 -1
- /package/dist/lib/{date.d.ts → dates.d.ts} +0 -0
- /package/dist/lib/{date.js → dates.js} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -41,4 +41,6 @@ export { FormTextarea } from "./components/form-textarea";
|
|
|
41
41
|
export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, } from "./components/form";
|
|
42
42
|
export { ThemeProvider, useTheme } from "./providers/theme-provider";
|
|
43
43
|
export { LoaderProvider, useLoader } from "./providers/loader-provider";
|
|
44
|
-
export { formatDate } from "./lib/
|
|
44
|
+
export { formatDate } from "./lib/dates";
|
|
45
|
+
export { isNullOrEmptyString } from "./lib/strings";
|
|
46
|
+
export { orderByText, orderBy } from "./lib/arrays";
|
package/dist/index.js
CHANGED
|
@@ -1,50 +1,52 @@
|
|
|
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
|
|
2
|
-
import { Alert as u, AlertDescription as
|
|
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 x } from "./components/alert-dialog.js";
|
|
2
|
+
import { Alert as u, AlertDescription as b, AlertTitle as f } from "./components/alert.js";
|
|
3
3
|
import { Badge as T } from "./components/badge.js";
|
|
4
4
|
import { Button as s, buttonVariants as F } from "./components/button.js";
|
|
5
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 k, CardDescription as
|
|
7
|
+
import { Card as I, CardAction as H, CardContent as k, CardDescription as B, CardFooter as L, CardHeader as y, CardTitle as G } from "./components/card.js";
|
|
8
8
|
import { Checkbox as O } from "./components/checkbox.js";
|
|
9
|
-
import { DatePicker as
|
|
9
|
+
import { DatePicker as N } 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";
|
|
11
11
|
import { DataLoader as _ } from "./components/data-loader.js";
|
|
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
|
|
13
|
-
import { FileUploader as
|
|
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 xe, DropdownMenuSubTrigger as Se, DropdownMenuTrigger as ue } from "./components/dropdown-menu.js";
|
|
13
|
+
import { FileUploader as fe } from "./components/file-uploader.js";
|
|
14
14
|
import { HoverCard as Te, HoverCardContent as Ce, HoverCardTrigger as se } from "./components/hover-card.js";
|
|
15
15
|
import { Input as Me } from "./components/input.js";
|
|
16
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 ke, PaginationLink as
|
|
19
|
-
import { PasswordRulesChecker as
|
|
20
|
-
import { Popover as
|
|
18
|
+
import { Pagination as ve, PaginationContent as Ie, PaginationEllipsis as He, PaginationItem as ke, PaginationLink as Be, PaginationNext as Le, PaginationPrevious as ye } from "./components/pagination.js";
|
|
19
|
+
import { PasswordRulesChecker as Re } from "./components/password-rules-checker.js";
|
|
20
|
+
import { Popover as Ee, PopoverAnchor as Ne, PopoverContent as Ue, 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
|
|
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 xo, SidebarInset as So, SidebarMenu as uo, SidebarMenuAction as bo, SidebarMenuBadge as fo, SidebarMenuButton as Do, 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
26
|
import { SimpleTooltip as ko } from "./components/simple-tooltip.js";
|
|
27
|
-
import { Skeleton as
|
|
28
|
-
import { Switch as
|
|
27
|
+
import { Skeleton as Lo } from "./components/skeleton.js";
|
|
28
|
+
import { Switch as Go } from "./components/switch.js";
|
|
29
29
|
import { Toaster as Oo } from "./components/sonner.js";
|
|
30
|
-
import { Table as
|
|
30
|
+
import { Table as No, TableBody as Uo, TableCaption as Vo, TableCell as jo, TableFooter as qo, TableHead as zo, TableHeader as Jo, TableRow as Ko } from "./components/table.js";
|
|
31
31
|
import { Tabs as Wo, TabsContent as Xo, TabsList as Yo, TabsTrigger as Zo } from "./components/tabs.js";
|
|
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
35
|
import { FormColorPicker as lr } from "./components/form-color-picker.js";
|
|
36
36
|
import { FormFileUploader as mr } from "./components/form-file-uploader.js";
|
|
37
|
-
import { FormInput as
|
|
37
|
+
import { FormInput as xr } from "./components/form-input.js";
|
|
38
38
|
import { FormSelect as ur } from "./components/form-select.js";
|
|
39
|
-
import { FormSwitch as
|
|
39
|
+
import { FormSwitch as fr } from "./components/form-switch.js";
|
|
40
40
|
import { FormTextarea as Tr } from "./components/form-textarea.js";
|
|
41
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
42
|
import { ThemeProvider as Ir, useTheme as Hr } from "./providers/theme-provider.js";
|
|
43
|
-
import { LoaderProvider as
|
|
44
|
-
import { formatDate as
|
|
43
|
+
import { LoaderProvider as Br, useLoader as Lr } from "./providers/loader-provider.js";
|
|
44
|
+
import { formatDate as Gr } from "./lib/dates.js";
|
|
45
|
+
import { isNullOrEmptyString as Or } from "./lib/strings.js";
|
|
46
|
+
import { orderBy as Nr, orderByText as Ur } from "./lib/arrays.js";
|
|
45
47
|
export {
|
|
46
48
|
u as Alert,
|
|
47
|
-
|
|
49
|
+
b as AlertDescription,
|
|
48
50
|
r as AlertDialog,
|
|
49
51
|
t as AlertDialogAction,
|
|
50
52
|
a as AlertDialogCancel,
|
|
@@ -55,8 +57,8 @@ export {
|
|
|
55
57
|
d as AlertDialogOverlay,
|
|
56
58
|
m as AlertDialogPortal,
|
|
57
59
|
g as AlertDialogTitle,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
+
x as AlertDialogTrigger,
|
|
61
|
+
f as AlertTitle,
|
|
60
62
|
c as Avatar,
|
|
61
63
|
P as AvatarFallback,
|
|
62
64
|
A as AvatarImage,
|
|
@@ -66,13 +68,13 @@ export {
|
|
|
66
68
|
I as Card,
|
|
67
69
|
H as CardAction,
|
|
68
70
|
k as CardContent,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
B as CardDescription,
|
|
72
|
+
L as CardFooter,
|
|
73
|
+
y as CardHeader,
|
|
74
|
+
G as CardTitle,
|
|
73
75
|
O as Checkbox,
|
|
74
76
|
_ as DataLoader,
|
|
75
|
-
|
|
77
|
+
N as DatePicker,
|
|
76
78
|
V as Dialog,
|
|
77
79
|
j as DialogClose,
|
|
78
80
|
q as DialogContent,
|
|
@@ -95,10 +97,10 @@ export {
|
|
|
95
97
|
de as DropdownMenuSeparator,
|
|
96
98
|
me as DropdownMenuShortcut,
|
|
97
99
|
ge as DropdownMenuSub,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
+
xe as DropdownMenuSubContent,
|
|
101
|
+
Se as DropdownMenuSubTrigger,
|
|
100
102
|
ue as DropdownMenuTrigger,
|
|
101
|
-
|
|
103
|
+
fe as FileUploader,
|
|
102
104
|
sr as Form,
|
|
103
105
|
lr as FormColorPicker,
|
|
104
106
|
Fr as FormControl,
|
|
@@ -106,31 +108,31 @@ export {
|
|
|
106
108
|
Mr as FormDescription,
|
|
107
109
|
cr as FormField,
|
|
108
110
|
mr as FormFileUploader,
|
|
109
|
-
|
|
111
|
+
xr as FormInput,
|
|
110
112
|
Pr as FormItem,
|
|
111
113
|
Ar as FormLabel,
|
|
112
114
|
wr as FormMessage,
|
|
113
115
|
ur as FormSelect,
|
|
114
|
-
|
|
116
|
+
fr as FormSwitch,
|
|
115
117
|
Tr as FormTextarea,
|
|
116
118
|
Te as HoverCard,
|
|
117
119
|
Ce as HoverCardContent,
|
|
118
120
|
se as HoverCardTrigger,
|
|
119
121
|
Me as Input,
|
|
120
122
|
Pe as Label,
|
|
121
|
-
|
|
123
|
+
Br as LoaderProvider,
|
|
122
124
|
we as ModeToggle,
|
|
123
125
|
ve as Pagination,
|
|
124
126
|
Ie as PaginationContent,
|
|
125
127
|
He as PaginationEllipsis,
|
|
126
128
|
ke as PaginationItem,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
129
|
+
Be as PaginationLink,
|
|
130
|
+
Le as PaginationNext,
|
|
131
|
+
ye as PaginationPrevious,
|
|
132
|
+
Re as PasswordRulesChecker,
|
|
133
|
+
Ee as Popover,
|
|
134
|
+
Ne as PopoverAnchor,
|
|
135
|
+
Ue as PopoverContent,
|
|
134
136
|
Ve as PopoverTrigger,
|
|
135
137
|
qe as Select,
|
|
136
138
|
Je as Separator,
|
|
@@ -151,12 +153,12 @@ export {
|
|
|
151
153
|
lo as SidebarGroupContent,
|
|
152
154
|
mo as SidebarGroupLabel,
|
|
153
155
|
go as SidebarHeader,
|
|
154
|
-
|
|
155
|
-
|
|
156
|
+
xo as SidebarInput,
|
|
157
|
+
So as SidebarInset,
|
|
156
158
|
uo as SidebarMenu,
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
159
|
+
bo as SidebarMenuAction,
|
|
160
|
+
fo as SidebarMenuBadge,
|
|
161
|
+
Do as SidebarMenuButton,
|
|
160
162
|
To as SidebarMenuItem,
|
|
161
163
|
Co as SidebarMenuSkeleton,
|
|
162
164
|
so as SidebarMenuSub,
|
|
@@ -168,10 +170,10 @@ export {
|
|
|
168
170
|
wo as SidebarTrigger,
|
|
169
171
|
Io as SimplePagination,
|
|
170
172
|
ko as SimpleTooltip,
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
173
|
+
Lo as Skeleton,
|
|
174
|
+
Go as Switch,
|
|
175
|
+
No as Table,
|
|
176
|
+
Uo as TableBody,
|
|
175
177
|
Vo as TableCaption,
|
|
176
178
|
jo as TableCell,
|
|
177
179
|
qo as TableFooter,
|
|
@@ -190,9 +192,12 @@ export {
|
|
|
190
192
|
tr as TooltipProvider,
|
|
191
193
|
ar as TooltipTrigger,
|
|
192
194
|
F as buttonVariants,
|
|
193
|
-
|
|
195
|
+
Gr as formatDate,
|
|
196
|
+
Or as isNullOrEmptyString,
|
|
197
|
+
Nr as orderBy,
|
|
198
|
+
Ur as orderByText,
|
|
194
199
|
hr as useFormField,
|
|
195
|
-
|
|
200
|
+
Lr as useLoader,
|
|
196
201
|
ho as useSidebar,
|
|
197
202
|
Hr as useTheme
|
|
198
203
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var s = Object.defineProperty;
|
|
2
|
+
var o = (t, r) => s(t, "name", { value: r, configurable: !0 });
|
|
3
|
+
const f = /* @__PURE__ */ o((t, r) => t.sort((e, n) => e[r].toLowerCase() < n[r].toLowerCase() ? -1 : e[r].toLowerCase() > n[r].toLowerCase() ? 1 : 0), "orderByText"), i = /* @__PURE__ */ o((t, r) => t.sort((e, n) => e[r] < n[r] ? -1 : e[r] > n[r] ? 1 : 0), "orderBy");
|
|
4
|
+
export {
|
|
5
|
+
i as orderBy,
|
|
6
|
+
f as orderByText
|
|
7
|
+
};
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|