fina-react-ds 1.0.37 → 1.0.39
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/components/calendar.js +11 -12
- package/dist/components/data-loader.js +1 -1
- package/dist/components/date-picker.js +28 -28
- package/dist/components/file-uploader.js +46 -47
- package/dist/components/form-file-uploader.d.ts +2 -1
- package/dist/components/form-file-uploader.js +18 -16
- package/dist/components/form-image-uploader.d.ts +2 -1
- package/dist/components/form-image-uploader.js +23 -14
- package/dist/components/form-input.d.ts +2 -1
- package/dist/components/form-input.js +22 -20
- package/dist/components/form-select.d.ts +2 -1
- package/dist/components/form-select.js +31 -29
- package/dist/components/form-textarea.d.ts +2 -1
- package/dist/components/form-textarea.js +22 -20
- package/dist/components/form.js +14 -14
- package/dist/components/html-input.d.ts +1 -0
- package/dist/components/image-uploader.js +53 -54
- package/dist/components/index.d.ts +45 -0
- package/dist/components/index.js +200 -0
- package/dist/components/select.js +39 -39
- package/dist/components/sidebar.js +49 -49
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +4 -0
- package/dist/lib/index.d.ts +6 -0
- package/dist/lib/index.js +27 -0
- package/package.json +49 -36
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -12
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -21
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -36
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -18
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatDistance.js +0 -72
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatLong.js +0 -33
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatRelative.js +0 -13
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/localize.js +0 -123
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/match.js +0 -112
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr.js +0 -21
- package/dist/themes/base.css +0 -3396
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
import { jsx as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
function
|
|
7
|
-
options:
|
|
8
|
-
placeholder:
|
|
9
|
-
onChange:
|
|
10
|
-
value:
|
|
11
|
-
...
|
|
1
|
+
var c = Object.defineProperty;
|
|
2
|
+
var e = (n, o) => c(n, "name", { value: o, configurable: !0 });
|
|
3
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
4
|
+
import m from "clsx";
|
|
5
|
+
import g from "react-select";
|
|
6
|
+
function h({
|
|
7
|
+
options: n,
|
|
8
|
+
placeholder: o = "Sélectionner",
|
|
9
|
+
onChange: i,
|
|
10
|
+
value: a,
|
|
11
|
+
...d
|
|
12
12
|
}) {
|
|
13
|
-
const
|
|
14
|
-
Array.isArray(
|
|
15
|
-
|
|
16
|
-
) :
|
|
17
|
-
}, "handleChange"),
|
|
18
|
-
const
|
|
19
|
-
|
|
13
|
+
const l = /* @__PURE__ */ e((r) => {
|
|
14
|
+
Array.isArray(r) ? i?.(
|
|
15
|
+
r.map((t) => t.value)
|
|
16
|
+
) : i?.(r === null ? null : r.value);
|
|
17
|
+
}, "handleChange"), u = /* @__PURE__ */ e(() => d.isMulti ? Array.isArray(a) ? n?.filter((r) => a.includes(r.value)) ?? [] : [] : n.find((r) => r.value === a) ?? null, "getSelectedOptions"), s = /* @__PURE__ */ e((r) => {
|
|
18
|
+
const t = r.relatedTarget;
|
|
19
|
+
t && (t.tagName === "A" || t.tagName === "BUTTON" || t.tagName === "TEXTAREA" || t.tagName === "INPUT") && t.focus();
|
|
20
20
|
}, "onBlurWorkaround");
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
|
|
21
|
+
return /* @__PURE__ */ p(
|
|
22
|
+
g,
|
|
23
23
|
{
|
|
24
|
-
...
|
|
25
|
-
options:
|
|
26
|
-
onChange:
|
|
27
|
-
value:
|
|
24
|
+
...d,
|
|
25
|
+
options: n,
|
|
26
|
+
onChange: l,
|
|
27
|
+
value: u(),
|
|
28
28
|
classNames: {
|
|
29
|
-
control: /* @__PURE__ */
|
|
30
|
-
menu: /* @__PURE__ */
|
|
31
|
-
menuList: /* @__PURE__ */
|
|
32
|
-
option: /* @__PURE__ */
|
|
29
|
+
control: /* @__PURE__ */ e(() => "px-3 py-1 border bg-input rounded-md text-base md:text-sm min-h-9! shadow-none border-input-border has-[:focus]:border-ring has-[:focus]:ring-[3px] ring-ring/50 has-aria-invalid:border-destructive! has-aria-invalid:ring-destructive/20! has-aria-invalid:dark:ring-destructive/40!", "control"),
|
|
30
|
+
menu: /* @__PURE__ */ e(() => "bg-popover border rounded-md py-0 overflow-hidden shadow-md mt-2", "menu"),
|
|
31
|
+
menuList: /* @__PURE__ */ e(() => "py-0 bg-popover", "menuList"),
|
|
32
|
+
option: /* @__PURE__ */ e((r) => m(
|
|
33
33
|
"py-1 px-2 text-popover-foreground text-base md:text-sm!",
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
r.isSelected && "bg-input-accent!",
|
|
35
|
+
r.isFocused && "bg-input-accent/50"
|
|
36
36
|
), "option"),
|
|
37
|
-
placeholder: /* @__PURE__ */
|
|
38
|
-
multiValue: /* @__PURE__ */
|
|
39
|
-
multiValueRemove: /* @__PURE__ */
|
|
40
|
-
dropdownIndicator: /* @__PURE__ */
|
|
41
|
-
clearIndicator: /* @__PURE__ */
|
|
42
|
-
noOptionsMessage: /* @__PURE__ */
|
|
37
|
+
placeholder: /* @__PURE__ */ e(() => "text-placeholder", "placeholder"),
|
|
38
|
+
multiValue: /* @__PURE__ */ e(() => "bg-input-accent text-input-accent-foreground mr-1 px-1 py-0.5 rounded-md flex items-center", "multiValue"),
|
|
39
|
+
multiValueRemove: /* @__PURE__ */ e(() => "cursor-pointer", "multiValueRemove"),
|
|
40
|
+
dropdownIndicator: /* @__PURE__ */ e(() => "text-placeholder cursor-pointer", "dropdownIndicator"),
|
|
41
|
+
clearIndicator: /* @__PURE__ */ e(() => "text-placeholder cursor-pointer", "clearIndicator"),
|
|
42
|
+
noOptionsMessage: /* @__PURE__ */ e(() => "py-2", "noOptionsMessage")
|
|
43
43
|
},
|
|
44
44
|
onBlur: s,
|
|
45
|
-
placeholder:
|
|
45
|
+
placeholder: o,
|
|
46
46
|
unstyled: !0
|
|
47
47
|
}
|
|
48
48
|
);
|
|
49
49
|
}
|
|
50
|
-
|
|
50
|
+
e(h, "Select");
|
|
51
51
|
export {
|
|
52
|
-
|
|
52
|
+
h as Select
|
|
53
53
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
2
|
-
var r = (a, e) =>
|
|
1
|
+
var z = Object.defineProperty;
|
|
2
|
+
var r = (a, e) => z(a, "name", { value: e, configurable: !0 });
|
|
3
3
|
import { jsx as t, jsxs as g } from "react/jsx-runtime";
|
|
4
|
-
import * as
|
|
5
|
-
import { cva as
|
|
4
|
+
import * as u from "react";
|
|
5
|
+
import { cva as I } from "class-variance-authority";
|
|
6
6
|
import { PanelLeftIcon as E } from "lucide-react";
|
|
7
7
|
import { Slot as v } from "radix-ui";
|
|
8
8
|
import { useIsMobile as D } from "../hooks/use-mobile.js";
|
|
@@ -11,17 +11,17 @@ import { Button as R } from "./button.js";
|
|
|
11
11
|
import { Input as T } from "./input.js";
|
|
12
12
|
import { Separator as B } from "./separator.js";
|
|
13
13
|
import { Sheet as A, SheetContent as O, SheetHeader as H, SheetTitle as K, SheetDescription as j } from "./sheet.js";
|
|
14
|
-
import { Skeleton as
|
|
14
|
+
import { Skeleton as k } from "./skeleton.js";
|
|
15
15
|
import { Tooltip as G, TooltipTrigger as L, TooltipContent as $, TooltipProvider as P } from "./tooltip.js";
|
|
16
|
-
const V = "sidebar_state", W =
|
|
16
|
+
const V = "sidebar_state", W = 3600 * 24 * 7, q = "16rem", F = "18rem", U = "3rem", X = "b", _ = u.createContext(null);
|
|
17
17
|
function N() {
|
|
18
|
-
const a =
|
|
18
|
+
const a = u.useContext(_);
|
|
19
19
|
if (!a)
|
|
20
20
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
21
21
|
return a;
|
|
22
22
|
}
|
|
23
23
|
r(N, "useSidebar");
|
|
24
|
-
function
|
|
24
|
+
function ce({
|
|
25
25
|
defaultOpen: a = !0,
|
|
26
26
|
open: e,
|
|
27
27
|
onOpenChange: n,
|
|
@@ -30,32 +30,32 @@ function ue({
|
|
|
30
30
|
children: l,
|
|
31
31
|
...m
|
|
32
32
|
}) {
|
|
33
|
-
const
|
|
33
|
+
const c = D(), [p, b] = u.useState(!1), [x, M] = u.useState(a), h = e ?? x, w = u.useCallback(
|
|
34
34
|
(s) => {
|
|
35
35
|
const f = typeof s == "function" ? s(h) : s;
|
|
36
|
-
n ? n(f) :
|
|
36
|
+
n ? n(f) : M(f), document.cookie = `${V}=${f}; path=/; max-age=${W}`;
|
|
37
37
|
},
|
|
38
38
|
[n, h]
|
|
39
|
-
), S =
|
|
40
|
-
|
|
39
|
+
), S = u.useCallback(() => c ? b((s) => !s) : w((s) => !s), [c, w, b]);
|
|
40
|
+
u.useEffect(() => {
|
|
41
41
|
const s = /* @__PURE__ */ r((f) => {
|
|
42
42
|
f.key === X && (f.metaKey || f.ctrlKey) && (f.preventDefault(), S());
|
|
43
43
|
}, "handleKeyDown");
|
|
44
44
|
return window.addEventListener("keydown", s), () => window.removeEventListener("keydown", s);
|
|
45
45
|
}, [S]);
|
|
46
|
-
const y = h ? "expanded" : "collapsed",
|
|
46
|
+
const y = h ? "expanded" : "collapsed", C = u.useMemo(
|
|
47
47
|
() => ({
|
|
48
48
|
state: y,
|
|
49
49
|
open: h,
|
|
50
50
|
setOpen: w,
|
|
51
|
-
isMobile:
|
|
51
|
+
isMobile: c,
|
|
52
52
|
openMobile: p,
|
|
53
53
|
setOpenMobile: b,
|
|
54
54
|
toggleSidebar: S
|
|
55
55
|
}),
|
|
56
|
-
[y, h, w,
|
|
56
|
+
[y, h, w, c, p, b, S]
|
|
57
57
|
);
|
|
58
|
-
return /* @__PURE__ */ t(
|
|
58
|
+
return /* @__PURE__ */ t(_.Provider, { value: C, children: /* @__PURE__ */ t(P, { delayDuration: 0, children: /* @__PURE__ */ t(
|
|
59
59
|
"div",
|
|
60
60
|
{
|
|
61
61
|
"data-slot": "sidebar-wrapper",
|
|
@@ -73,8 +73,8 @@ function ue({
|
|
|
73
73
|
}
|
|
74
74
|
) }) });
|
|
75
75
|
}
|
|
76
|
-
r(
|
|
77
|
-
function
|
|
76
|
+
r(ce, "SidebarProvider");
|
|
77
|
+
function ue({
|
|
78
78
|
side: a = "left",
|
|
79
79
|
variant: e = "sidebar",
|
|
80
80
|
collapsible: n = "offcanvas",
|
|
@@ -82,7 +82,7 @@ function ce({
|
|
|
82
82
|
children: d,
|
|
83
83
|
...l
|
|
84
84
|
}) {
|
|
85
|
-
const { isMobile: m, state:
|
|
85
|
+
const { isMobile: m, state: c, openMobile: p, setOpenMobile: b } = N();
|
|
86
86
|
return n === "none" ? /* @__PURE__ */ t(
|
|
87
87
|
"div",
|
|
88
88
|
{
|
|
@@ -117,8 +117,8 @@ function ce({
|
|
|
117
117
|
"div",
|
|
118
118
|
{
|
|
119
119
|
className: "group peer text-sidebar-foreground hidden md:block",
|
|
120
|
-
"data-state":
|
|
121
|
-
"data-collapsible":
|
|
120
|
+
"data-state": c,
|
|
121
|
+
"data-collapsible": c === "collapsed" ? n : "",
|
|
122
122
|
"data-variant": e,
|
|
123
123
|
"data-side": a,
|
|
124
124
|
"data-slot": "sidebar",
|
|
@@ -162,7 +162,7 @@ function ce({
|
|
|
162
162
|
}
|
|
163
163
|
);
|
|
164
164
|
}
|
|
165
|
-
r(
|
|
165
|
+
r(ue, "Sidebar");
|
|
166
166
|
function be({
|
|
167
167
|
className: a,
|
|
168
168
|
onClick: e,
|
|
@@ -179,7 +179,7 @@ function be({
|
|
|
179
179
|
size: "icon",
|
|
180
180
|
className: i("size-7", a),
|
|
181
181
|
onClick: /* @__PURE__ */ r((d) => {
|
|
182
|
-
e
|
|
182
|
+
e?.(d), o();
|
|
183
183
|
}, "onClick"),
|
|
184
184
|
...n,
|
|
185
185
|
children: [
|
|
@@ -370,7 +370,7 @@ function ye({
|
|
|
370
370
|
);
|
|
371
371
|
}
|
|
372
372
|
r(ye, "SidebarGroupContent");
|
|
373
|
-
function
|
|
373
|
+
function ke({ className: a, ...e }) {
|
|
374
374
|
return /* @__PURE__ */ t(
|
|
375
375
|
"ul",
|
|
376
376
|
{
|
|
@@ -381,8 +381,8 @@ function _e({ className: a, ...e }) {
|
|
|
381
381
|
}
|
|
382
382
|
);
|
|
383
383
|
}
|
|
384
|
-
r(
|
|
385
|
-
function
|
|
384
|
+
r(ke, "SidebarMenu");
|
|
385
|
+
function _e({ className: a, ...e }) {
|
|
386
386
|
return /* @__PURE__ */ t(
|
|
387
387
|
"li",
|
|
388
388
|
{
|
|
@@ -393,8 +393,8 @@ function Me({ className: a, ...e }) {
|
|
|
393
393
|
}
|
|
394
394
|
);
|
|
395
395
|
}
|
|
396
|
-
r(
|
|
397
|
-
const Y =
|
|
396
|
+
r(_e, "SidebarMenuItem");
|
|
397
|
+
const Y = I(
|
|
398
398
|
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
399
399
|
{
|
|
400
400
|
variants: {
|
|
@@ -414,7 +414,7 @@ const Y = C(
|
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
416
|
);
|
|
417
|
-
function
|
|
417
|
+
function Me({
|
|
418
418
|
asChild: a = !1,
|
|
419
419
|
isActive: e = !1,
|
|
420
420
|
variant: n = "default",
|
|
@@ -423,8 +423,8 @@ function ke({
|
|
|
423
423
|
className: l,
|
|
424
424
|
...m
|
|
425
425
|
}) {
|
|
426
|
-
const
|
|
427
|
-
|
|
426
|
+
const c = a ? v.Root : "button", { isMobile: p, state: b } = N(), x = /* @__PURE__ */ t(
|
|
427
|
+
c,
|
|
428
428
|
{
|
|
429
429
|
"data-slot": "sidebar-menu-button",
|
|
430
430
|
"data-sidebar": "menu-button",
|
|
@@ -449,8 +449,8 @@ function ke({
|
|
|
449
449
|
)
|
|
450
450
|
] })) : x;
|
|
451
451
|
}
|
|
452
|
-
r(
|
|
453
|
-
function
|
|
452
|
+
r(Me, "SidebarMenuButton");
|
|
453
|
+
function Ce({
|
|
454
454
|
className: a,
|
|
455
455
|
asChild: e = !1,
|
|
456
456
|
showOnHover: n = !1,
|
|
@@ -477,8 +477,8 @@ function ze({
|
|
|
477
477
|
}
|
|
478
478
|
);
|
|
479
479
|
}
|
|
480
|
-
r(
|
|
481
|
-
function
|
|
480
|
+
r(Ce, "SidebarMenuAction");
|
|
481
|
+
function ze({
|
|
482
482
|
className: a,
|
|
483
483
|
...e
|
|
484
484
|
}) {
|
|
@@ -500,13 +500,13 @@ function Ie({
|
|
|
500
500
|
}
|
|
501
501
|
);
|
|
502
502
|
}
|
|
503
|
-
r(
|
|
504
|
-
function
|
|
503
|
+
r(ze, "SidebarMenuBadge");
|
|
504
|
+
function Ie({
|
|
505
505
|
className: a,
|
|
506
506
|
showIcon: e = !1,
|
|
507
507
|
...n
|
|
508
508
|
}) {
|
|
509
|
-
const o =
|
|
509
|
+
const o = u.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
|
|
510
510
|
return /* @__PURE__ */ g(
|
|
511
511
|
"div",
|
|
512
512
|
{
|
|
@@ -516,14 +516,14 @@ function Ce({
|
|
|
516
516
|
...n,
|
|
517
517
|
children: [
|
|
518
518
|
e && /* @__PURE__ */ t(
|
|
519
|
-
|
|
519
|
+
k,
|
|
520
520
|
{
|
|
521
521
|
className: "size-4 rounded-md",
|
|
522
522
|
"data-sidebar": "menu-skeleton-icon"
|
|
523
523
|
}
|
|
524
524
|
),
|
|
525
525
|
/* @__PURE__ */ t(
|
|
526
|
-
|
|
526
|
+
k,
|
|
527
527
|
{
|
|
528
528
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
529
529
|
"data-sidebar": "menu-skeleton-text",
|
|
@@ -536,7 +536,7 @@ function Ce({
|
|
|
536
536
|
}
|
|
537
537
|
);
|
|
538
538
|
}
|
|
539
|
-
r(
|
|
539
|
+
r(Ie, "SidebarMenuSkeleton");
|
|
540
540
|
function Ee({ className: a, ...e }) {
|
|
541
541
|
return /* @__PURE__ */ t(
|
|
542
542
|
"ul",
|
|
@@ -597,7 +597,7 @@ function Re({
|
|
|
597
597
|
}
|
|
598
598
|
r(Re, "SidebarMenuSubButton");
|
|
599
599
|
export {
|
|
600
|
-
|
|
600
|
+
ue as Sidebar,
|
|
601
601
|
xe as SidebarContent,
|
|
602
602
|
he as SidebarFooter,
|
|
603
603
|
we as SidebarGroup,
|
|
@@ -607,16 +607,16 @@ export {
|
|
|
607
607
|
me as SidebarHeader,
|
|
608
608
|
ge as SidebarInput,
|
|
609
609
|
pe as SidebarInset,
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
610
|
+
ke as SidebarMenu,
|
|
611
|
+
Ce as SidebarMenuAction,
|
|
612
|
+
ze as SidebarMenuBadge,
|
|
613
|
+
Me as SidebarMenuButton,
|
|
614
|
+
_e as SidebarMenuItem,
|
|
615
|
+
Ie as SidebarMenuSkeleton,
|
|
616
616
|
Ee as SidebarMenuSub,
|
|
617
617
|
Re as SidebarMenuSubButton,
|
|
618
618
|
De as SidebarMenuSubItem,
|
|
619
|
-
|
|
619
|
+
ce as SidebarProvider,
|
|
620
620
|
fe as SidebarRail,
|
|
621
621
|
ve as SidebarSeparator,
|
|
622
622
|
be as SidebarTrigger,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useIsMobile } from "./use-mobile";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { formatDate } from "./dates";
|
|
2
|
+
export { requestApi } from "./http";
|
|
3
|
+
export { isNullOrEmptyString } from "./strings";
|
|
4
|
+
export { orderByText, orderBy } from "./arrays";
|
|
5
|
+
export { cn, apiErrorDescription, manageApiFormErrors } from "./utils";
|
|
6
|
+
export { string, number, boolean, date, array, object, mixed, ref, lazy, reach, addMethod, } from "./yup";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { formatDate as e } from "./dates.js";
|
|
2
|
+
import { requestApi as a } from "./http.js";
|
|
3
|
+
import { isNullOrEmptyString as p } from "./strings.js";
|
|
4
|
+
import { orderBy as f, orderByText as x } from "./arrays.js";
|
|
5
|
+
import { apiErrorDescription as n, cn as s, manageApiFormErrors as y } from "./utils.js";
|
|
6
|
+
import { addMethod as l, array as b, boolean as g, date as u, lazy as E, mixed as h, number as A, object as B, reach as D, ref as j, string as q } from "./yup.js";
|
|
7
|
+
export {
|
|
8
|
+
l as addMethod,
|
|
9
|
+
n as apiErrorDescription,
|
|
10
|
+
b as array,
|
|
11
|
+
g as boolean,
|
|
12
|
+
s as cn,
|
|
13
|
+
u as date,
|
|
14
|
+
e as formatDate,
|
|
15
|
+
p as isNullOrEmptyString,
|
|
16
|
+
E as lazy,
|
|
17
|
+
y as manageApiFormErrors,
|
|
18
|
+
h as mixed,
|
|
19
|
+
A as number,
|
|
20
|
+
B as object,
|
|
21
|
+
f as orderBy,
|
|
22
|
+
x as orderByText,
|
|
23
|
+
D as reach,
|
|
24
|
+
j as ref,
|
|
25
|
+
a as requestApi,
|
|
26
|
+
q as string
|
|
27
|
+
};
|
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.
|
|
8
|
+
"version": "1.0.39",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"files": [
|
|
11
11
|
"dist"
|
|
@@ -19,54 +19,68 @@
|
|
|
19
19
|
"import": "./dist/index.js",
|
|
20
20
|
"require": "./dist/index.js"
|
|
21
21
|
},
|
|
22
|
+
"./components": {
|
|
23
|
+
"types": "./dist/components/index.d.ts",
|
|
24
|
+
"import": "./dist/components/index.js",
|
|
25
|
+
"require": "./dist/components/index.js"
|
|
26
|
+
},
|
|
27
|
+
"./lib": {
|
|
28
|
+
"types": "./dist/lib/index.d.ts",
|
|
29
|
+
"import": "./dist/lib/index.js",
|
|
30
|
+
"require": "./dist/lib/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./hooks": {
|
|
33
|
+
"types": "./dist/hooks/index.d.ts",
|
|
34
|
+
"import": "./dist/hooks/index.js",
|
|
35
|
+
"require": "./dist/hooks/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./themes/*.css": "./dist/themes/*.css",
|
|
22
38
|
"./*": "./dist/*"
|
|
23
39
|
},
|
|
24
40
|
"dependencies": {
|
|
41
|
+
"@ckeditor/ckeditor5-react": "^11.0.0",
|
|
42
|
+
"ckeditor5": "^47.1.0",
|
|
25
43
|
"class-variance-authority": "^0.7.1",
|
|
26
44
|
"clsx": "^2.1.1",
|
|
27
45
|
"date-fns": "^4.0.0",
|
|
28
|
-
"lucide-react": "^0.
|
|
46
|
+
"lucide-react": "^0.546.0",
|
|
29
47
|
"next-themes": "^0.4.6",
|
|
30
48
|
"qs": "^6.14.0",
|
|
31
|
-
"radix-ui": "^1.4.
|
|
49
|
+
"radix-ui": "^1.4.3",
|
|
32
50
|
"react-colorful": "^5.6.1",
|
|
33
|
-
"react-day-picker": "9.
|
|
51
|
+
"react-day-picker": "9.11.1",
|
|
34
52
|
"react-dropzone": "^14.3.8",
|
|
35
|
-
"react-select": "^5.10.
|
|
53
|
+
"react-select": "^5.10.2",
|
|
36
54
|
"react-spinners": "^0.17.0",
|
|
37
|
-
"sonner": "^2.0.
|
|
55
|
+
"sonner": "^2.0.7",
|
|
38
56
|
"tailwind-merge": "^3.3.1",
|
|
39
|
-
"tw-animate-css": "^1.
|
|
40
|
-
"yup": "^1.
|
|
57
|
+
"tw-animate-css": "^1.4.0",
|
|
58
|
+
"yup": "^1.7.1"
|
|
41
59
|
},
|
|
42
60
|
"devDependencies": {
|
|
43
|
-
"@eslint/js": "^9.
|
|
44
|
-
"@tailwindcss/cli": "^4.1.
|
|
45
|
-
"@tailwindcss/vite": "^4.1.
|
|
46
|
-
"@types/node": "^
|
|
61
|
+
"@eslint/js": "^9.38.0",
|
|
62
|
+
"@tailwindcss/cli": "^4.1.15",
|
|
63
|
+
"@tailwindcss/vite": "^4.1.15",
|
|
64
|
+
"@types/node": "^24.9.0",
|
|
47
65
|
"@types/qs": "^6.14.0",
|
|
48
|
-
"@types/react": "^19.
|
|
49
|
-
"@types/react-dom": "^19.
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"eslint": "^
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"react": "^19.1.0",
|
|
59
|
-
"react-dom": "^19.1.0",
|
|
60
|
-
"react-hook-form": "^7.60.0",
|
|
66
|
+
"@types/react": "^19.2.2",
|
|
67
|
+
"@types/react-dom": "^19.2.2",
|
|
68
|
+
"vom": "^4.1.0",
|
|
69
|
+
"eslint": "^9.38.0",
|
|
70
|
+
"eslint-plugin-react-hooks": "^7.0.0",
|
|
71
|
+
"eslint-plugin-react-refresh": "^0.4.24",
|
|
72
|
+
"globals": "^16.4.0",
|
|
73
|
+
"react": "^19.2.0",
|
|
74
|
+
"react-dom": "^19.2.0",
|
|
75
|
+
"react-hook-form": "^7.65.0",
|
|
61
76
|
"rimraf": "^6.0.1",
|
|
62
|
-
"rollup": "^4.
|
|
63
|
-
"tailwindcss": "^4.1.
|
|
77
|
+
"rollup": "^4.52.5",
|
|
78
|
+
"tailwindcss": "^4.1.15",
|
|
64
79
|
"tsc-alias": "^1.8.16",
|
|
65
|
-
"typescript": "~5.
|
|
66
|
-
"typescript-eslint": "^8.
|
|
67
|
-
"vite": "^
|
|
68
|
-
"vite-plugin-static-copy": "^
|
|
69
|
-
"vitest": "^3.2.3"
|
|
80
|
+
"typescript": "~5.9.3",
|
|
81
|
+
"typescript-eslint": "^8.46.2",
|
|
82
|
+
"vite": "^7.1.11",
|
|
83
|
+
"vite-plugin-static-copy": "^3.1.4"
|
|
70
84
|
},
|
|
71
85
|
"peerDependencies": {
|
|
72
86
|
"class-variance-authority": "^0.7.1",
|
|
@@ -90,13 +104,12 @@
|
|
|
90
104
|
},
|
|
91
105
|
"scripts": {
|
|
92
106
|
"dev": "vite",
|
|
93
|
-
"build": "rimraf dist && pnpm build:types && pnpm build:
|
|
107
|
+
"build": "rimraf dist && pnpm build:types && pnpm build:components && pnpm build:clean",
|
|
94
108
|
"build:types": "tsc -p tsconfig.build.json && tsc-alias",
|
|
95
109
|
"build:themes": "pnpm dlx @tailwindcss/cli -i ./src/themes/base.css -o ./dist/themes/base.css",
|
|
96
110
|
"build:components": "vite build",
|
|
97
|
-
"build:clean": "rimraf dist/vite.config.d.ts dist/vite.config.d.ts.map",
|
|
98
|
-
"lint": "eslint .
|
|
99
|
-
"stylelint": "stylelint src/**/*.css",
|
|
111
|
+
"build:clean": "rimraf dist/vite.config.d.ts dist/vite.config.d.ts.map && rimraf dist/node_modules",
|
|
112
|
+
"lint": "eslint .",
|
|
100
113
|
"preview": "vite preview"
|
|
101
114
|
}
|
|
102
115
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
};
|
package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
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
|
-
};
|
package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
};
|