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 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/date";
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 S } from "./components/alert-dialog.js";
2
- import { Alert as u, AlertDescription as x, AlertTitle as D } from "./components/alert.js";
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 L, CardFooter as B, CardHeader as G, CardTitle as R } from "./components/card.js";
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 E } from "./components/date-picker.js";
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 Se, DropdownMenuSubTrigger as be, DropdownMenuTrigger as ue } from "./components/dropdown-menu.js";
13
- import { FileUploader as De } from "./components/file-uploader.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 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 Le, PaginationNext as Be, PaginationPrevious as Ge } from "./components/pagination.js";
19
- import { PasswordRulesChecker as ye } from "./components/password-rules-checker.js";
20
- import { Popover as Ue, PopoverAnchor as Ee, PopoverContent as Ne, PopoverTrigger as Ve } from "./components/popover.js";
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 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";
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 Bo } from "./components/skeleton.js";
28
- import { Switch as Ro } from "./components/switch.js";
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 Eo, TableBody as No, TableCaption as Vo, TableCell as jo, TableFooter as qo, TableHead as zo, TableHeader as Jo, TableRow as Ko } from "./components/table.js";
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 Sr } from "./components/form-input.js";
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 Dr } from "./components/form-switch.js";
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 Lr, useLoader as Br } from "./providers/loader-provider.js";
44
- import { formatDate as Rr } from "./lib/date.js";
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
- x as AlertDescription,
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
- S as AlertDialogTrigger,
59
- D as AlertTitle,
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
- L as CardDescription,
70
- B as CardFooter,
71
- G as CardHeader,
72
- R as CardTitle,
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
- E as DatePicker,
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
- Se as DropdownMenuSubContent,
99
- be as DropdownMenuSubTrigger,
100
+ xe as DropdownMenuSubContent,
101
+ Se as DropdownMenuSubTrigger,
100
102
  ue as DropdownMenuTrigger,
101
- De as FileUploader,
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
- Sr as FormInput,
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
- Dr as FormSwitch,
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
- Lr as LoaderProvider,
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
- Le as PaginationLink,
128
- Be as PaginationNext,
129
- Ge as PaginationPrevious,
130
- ye as PasswordRulesChecker,
131
- Ue as Popover,
132
- Ee as PopoverAnchor,
133
- Ne as PopoverContent,
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
- So as SidebarInput,
155
- bo as SidebarInset,
156
+ xo as SidebarInput,
157
+ So as SidebarInset,
156
158
  uo as SidebarMenu,
157
- xo as SidebarMenuAction,
158
- Do as SidebarMenuBadge,
159
- fo as SidebarMenuButton,
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
- Bo as Skeleton,
172
- Ro as Switch,
173
- Eo as Table,
174
- No as TableBody,
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
- Rr as formatDate,
195
+ Gr as formatDate,
196
+ Or as isNullOrEmptyString,
197
+ Nr as orderBy,
198
+ Ur as orderByText,
194
199
  hr as useFormField,
195
- Br as useLoader,
200
+ Lr as useLoader,
196
201
  ho as useSidebar,
197
202
  Hr as useTheme
198
203
  };
@@ -0,0 +1,3 @@
1
+ declare const orderByText: (array: Array<object>, propName: keyof object) => object[];
2
+ declare const orderBy: (array: Array<object>, propName: keyof object) => object[];
3
+ export { orderByText, orderBy };
@@ -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
+ };
@@ -0,0 +1,2 @@
1
+ declare const isNullOrEmptyString: (value: string | null | undefined) => boolean;
2
+ export { isNullOrEmptyString };
@@ -0,0 +1,6 @@
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
+ };
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.20",
8
+ "version": "1.0.21",
9
9
  "type": "module",
10
10
  "files": [
11
11
  "dist"
File without changes
File without changes