@rws-aoa/react-library 4.0.0 → 5.0.0
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/chunks/FieldError.DAUtZvvC.js +143 -0
- package/dist/chunks/FieldError.DAUtZvvC.js.map +1 -0
- package/dist/chunks/lodash.DOeeRDpT.js +3678 -0
- package/dist/chunks/lodash.DOeeRDpT.js.map +1 -0
- package/dist/components/atoms/_menu/menu-item/MenuItem.js +10 -10
- package/dist/components/atoms/_menu/menu-item/MenuItem.js.map +1 -1
- package/dist/components/atoms/_menu/user-menu/UserMenu.js +20 -20
- package/dist/components/atoms/_menu/user-menu/UserMenu.js.map +1 -1
- package/dist/components/atoms/button/Button.js +12 -12
- package/dist/components/atoms/button/Button.js.map +1 -1
- package/dist/components/atoms/icon-button/IconButton.js +4 -4
- package/dist/components/atoms/icon-button/IconButton.js.map +1 -1
- package/dist/components/atoms/input/Input.d.ts.map +1 -1
- package/dist/components/atoms/input/Input.js +4 -3
- package/dist/components/atoms/input/Input.js.map +1 -1
- package/dist/components/atoms/no-permission/NoPermission.js +9 -9
- package/dist/components/atoms/no-permission/NoPermission.js.map +1 -1
- package/dist/components/atoms/notification/Notification.js +10 -10
- package/dist/components/atoms/notification/Notification.js.map +1 -1
- package/dist/components/atoms/section-header/SectionHeader.js +12 -12
- package/dist/components/atoms/section-header/SectionHeader.js.map +1 -1
- package/dist/components/atoms/selection-buttons/checkbox/Checkbox.js +8 -8
- package/dist/components/atoms/selection-buttons/checkbox/Checkbox.js.map +1 -1
- package/dist/components/atoms/selection-buttons/radio-button/RadioButton.js +8 -8
- package/dist/components/atoms/selection-buttons/radio-button/RadioButton.js.map +1 -1
- package/dist/components/atoms/table/Table.d.ts.map +1 -1
- package/dist/components/atoms/table/Table.js +42 -44
- package/dist/components/atoms/table/Table.js.map +1 -1
- package/dist/components/atoms/table/_QuickSearchToolbar.d.ts.map +1 -1
- package/dist/components/atoms/table/_QuickSearchToolbar.js +1 -0
- package/dist/components/atoms/table/_QuickSearchToolbar.js.map +1 -1
- package/dist/components/molecules/field-error/FieldError.d.ts +22 -0
- package/dist/components/molecules/field-error/FieldError.d.ts.map +1 -0
- package/dist/components/molecules/field-error/FieldError.js +7 -0
- package/dist/components/molecules/field-error/FieldError.js.map +1 -0
- package/dist/components/molecules/form-error/FormError.d.ts +17 -4
- package/dist/components/molecules/form-error/FormError.d.ts.map +1 -1
- package/dist/components/molecules/form-error/FormError.js +4 -10
- package/dist/components/molecules/form-error/FormError.js.map +1 -1
- package/dist/components/molecules/form-modal/FormModal.d.ts +31 -34
- package/dist/components/molecules/form-modal/FormModal.d.ts.map +1 -1
- package/dist/components/molecules/form-modal/FormModal.js +7 -75
- package/dist/components/molecules/form-modal/FormModal.js.map +1 -1
- package/dist/components/molecules/modal/Modal.js +12 -12
- package/dist/components/molecules/modal/Modal.js.map +1 -1
- package/dist/components/molecules/navigation-bar/NavigationBar.js +21 -21
- package/dist/components/molecules/navigation-bar/NavigationBar.js.map +1 -1
- package/dist/components/molecules/upload-button/UploadButton.js +16 -16
- package/dist/components/molecules/upload-button/UploadButton.js.map +1 -1
- package/dist/contexts/TanstackFormContext.d.ts +29 -0
- package/dist/contexts/TanstackFormContext.d.ts.map +1 -0
- package/dist/contexts/TanstackFormContext.js +11 -0
- package/dist/contexts/TanstackFormContext.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +40 -34
- package/dist/index.js.map +1 -1
- package/package.json +41 -32
- package/dist/chunks/index.DJYQ_-zP.js +0 -489
- package/dist/chunks/index.DJYQ_-zP.js.map +0 -1
|
@@ -1,78 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
form: u,
|
|
8
|
-
formModalQas: t,
|
|
9
|
-
formLabels: p,
|
|
10
|
-
formName: x,
|
|
11
|
-
DialogProps: b,
|
|
12
|
-
DialogTitleProps: y,
|
|
13
|
-
DialogContentProps: n,
|
|
14
|
-
AoaSubmitButtonProps: B,
|
|
15
|
-
modalQas: i,
|
|
16
|
-
open: g,
|
|
17
|
-
topic: A,
|
|
18
|
-
dialogContent: j,
|
|
19
|
-
closeAction: h
|
|
20
|
-
}) {
|
|
21
|
-
return /* @__PURE__ */ c(S, { ...b, "data-qa": (i == null ? void 0 : i.modal) ?? "modal", open: !!g, children: [
|
|
22
|
-
/* @__PURE__ */ e(T, { ...y, "data-qa": (i == null ? void 0 : i.title) ?? "modal-title", maxWidth: "sm", sx: { m: 0, p: 2 }, children: A }),
|
|
23
|
-
/* @__PURE__ */ e(W, { closeAction: h }),
|
|
24
|
-
/* @__PURE__ */ c(
|
|
25
|
-
"form",
|
|
26
|
-
{
|
|
27
|
-
"data-qa": (t == null ? void 0 : t.form) ?? "form",
|
|
28
|
-
name: x,
|
|
29
|
-
onSubmit: async (r) => {
|
|
30
|
-
r.preventDefault(), r.stopPropagation(), await u.handleSubmit();
|
|
31
|
-
},
|
|
32
|
-
children: [
|
|
33
|
-
/* @__PURE__ */ e(
|
|
34
|
-
k,
|
|
35
|
-
{
|
|
36
|
-
...n,
|
|
37
|
-
"data-qa": (i == null ? void 0 : i.content) ?? "modal-content",
|
|
38
|
-
sx: F(
|
|
39
|
-
{
|
|
40
|
-
padding: "0 3rem 2rem"
|
|
41
|
-
},
|
|
42
|
-
n == null ? void 0 : n.sx
|
|
43
|
-
),
|
|
44
|
-
children: j
|
|
45
|
-
}
|
|
46
|
-
),
|
|
47
|
-
/* @__PURE__ */ c(w, { "data-qa": (t == null ? void 0 : t.dialogActions) ?? "dialog-actions", children: [
|
|
48
|
-
/* @__PURE__ */ e(
|
|
49
|
-
q,
|
|
50
|
-
{
|
|
51
|
-
"data-qa": (t == null ? void 0 : t.cancelButton) ?? "cancel-form",
|
|
52
|
-
onClick: () => {
|
|
53
|
-
u.reset(), h();
|
|
54
|
-
},
|
|
55
|
-
type: "secondary",
|
|
56
|
-
children: p.cancel
|
|
57
|
-
}
|
|
58
|
-
),
|
|
59
|
-
/* @__PURE__ */ e(
|
|
60
|
-
q,
|
|
61
|
-
{
|
|
62
|
-
...B,
|
|
63
|
-
buttonType: "submit",
|
|
64
|
-
"data-qa": (t == null ? void 0 : t.submitButton) ?? "submit-form",
|
|
65
|
-
type: "primary",
|
|
66
|
-
children: p.submit
|
|
67
|
-
}
|
|
68
|
-
)
|
|
69
|
-
] })
|
|
70
|
-
]
|
|
71
|
-
}
|
|
72
|
-
)
|
|
73
|
-
] });
|
|
74
|
-
}
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "@mui/material";
|
|
3
|
+
import "../../../chunks/lodash.DOeeRDpT.js";
|
|
4
|
+
import { b } from "../../../chunks/FieldError.DAUtZvvC.js";
|
|
5
|
+
import "../../atoms/button/Button.js";
|
|
6
|
+
import "../modal-close-button/ModalCloseButton.js";
|
|
75
7
|
export {
|
|
76
|
-
|
|
8
|
+
b as AoaFormModal
|
|
77
9
|
};
|
|
78
10
|
//# sourceMappingURL=FormModal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormModal.js","sources":[
|
|
1
|
+
{"version":3,"file":"FormModal.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as u, jsx as
|
|
1
|
+
import { jsxs as u, jsx as x } from "react/jsx-runtime";
|
|
2
2
|
import { Dialog as v, DialogTitle as b, DialogContent as j } from "@mui/material";
|
|
3
|
-
import {
|
|
3
|
+
import { l as d } from "../../../chunks/lodash.DOeeRDpT.js";
|
|
4
4
|
import { memo as q } from "react";
|
|
5
5
|
import { AoaModalCloseButton as A } from "../modal-close-button/ModalCloseButton.js";
|
|
6
6
|
const z = q(
|
|
@@ -9,8 +9,8 @@ const z = q(
|
|
|
9
9
|
DialogTitleProps: t,
|
|
10
10
|
DialogContentProps: m,
|
|
11
11
|
modalQas: e,
|
|
12
|
-
open:
|
|
13
|
-
topic:
|
|
12
|
+
open: n,
|
|
13
|
+
topic: c,
|
|
14
14
|
dialogContent: f,
|
|
15
15
|
dialogActions: h,
|
|
16
16
|
closeAction: i
|
|
@@ -19,8 +19,8 @@ const z = q(
|
|
|
19
19
|
{
|
|
20
20
|
...r,
|
|
21
21
|
"data-qa": (e == null ? void 0 : e.modal) ?? "modal",
|
|
22
|
-
open: !!
|
|
23
|
-
sx:
|
|
22
|
+
open: !!n,
|
|
23
|
+
sx: d.merge(
|
|
24
24
|
{
|
|
25
25
|
"> div > div": {
|
|
26
26
|
borderRadius: 0,
|
|
@@ -30,12 +30,12 @@ const z = q(
|
|
|
30
30
|
r == null ? void 0 : r.sx
|
|
31
31
|
),
|
|
32
32
|
children: [
|
|
33
|
-
/* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ x(
|
|
34
34
|
b,
|
|
35
35
|
{
|
|
36
36
|
...t,
|
|
37
37
|
"data-qa": (e == null ? void 0 : e.title) ?? "modal-title",
|
|
38
|
-
sx:
|
|
38
|
+
sx: d.merge(
|
|
39
39
|
{
|
|
40
40
|
padding: "3rem 3rem 1rem",
|
|
41
41
|
color: "var(--color-rijks-logoblue)",
|
|
@@ -44,16 +44,16 @@ const z = q(
|
|
|
44
44
|
},
|
|
45
45
|
t == null ? void 0 : t.sx
|
|
46
46
|
),
|
|
47
|
-
children:
|
|
47
|
+
children: c
|
|
48
48
|
}
|
|
49
49
|
),
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
/* @__PURE__ */
|
|
50
|
+
/* @__PURE__ */ x(A, { closeAction: i }),
|
|
51
|
+
/* @__PURE__ */ x(
|
|
52
52
|
j,
|
|
53
53
|
{
|
|
54
54
|
...m,
|
|
55
55
|
"data-qa": (e == null ? void 0 : e.content) ?? "modal-content",
|
|
56
|
-
sx:
|
|
56
|
+
sx: d.merge(
|
|
57
57
|
{
|
|
58
58
|
padding: "0 3rem 2rem"
|
|
59
59
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.js","sources":["../../../../src/components/molecules/modal/Modal.tsx"],"sourcesContent":["import {\n Dialog,\n DialogContent,\n DialogTitle,\n type DialogContentProps,\n type DialogProps,\n type DialogTitleProps\n} from '@mui/material';\nimport merge from 'lodash
|
|
1
|
+
{"version":3,"file":"Modal.js","sources":["../../../../src/components/molecules/modal/Modal.tsx"],"sourcesContent":["import {\n Dialog,\n DialogContent,\n DialogTitle,\n type DialogContentProps,\n type DialogProps,\n type DialogTitleProps\n} from '@mui/material';\nimport { merge } from 'lodash';\nimport { memo, type ReactNode } from 'react';\nimport { AoaModalCloseButton, type AoaModalCloseButtonProps } from '../modal-close-button/ModalCloseButton';\n\nexport interface AoaModalQAs {\n /**\n * Data-qa tag applied to the content\n */\n content?: string;\n /**\n * Data-qa tag applied to the main modal\n */\n modal?: string;\n /**\n * Data-qa tag applied to the title\n */\n title?: string;\n}\n\nexport interface AoaModalProps {\n /**\n * Any other props passed to the {@link DialogContent}\n */\n readonly DialogContentProps?: DialogContentProps;\n /**\n * Any other props passed to the {@link Dialog}\n */\n readonly DialogProps?: Omit<DialogProps, 'open'>;\n /**\n * Any other props passed to the {@link DialogTitle}\n */\n readonly DialogTitleProps?: DialogTitleProps;\n /**\n * Optional for adding dialog actions below the content\n */\n readonly dialogActions?: ReactNode;\n /**\n * The content to show in the modal\n */\n readonly dialogContent: ReactNode;\n /**\n * Object of data-qa tags to pass to the modal\n */\n readonly modalQas?: AoaModalQAs;\n /**\n * Whether the modal should be opened or not\n */\n readonly open: boolean;\n /**\n * Title for the modal\n */\n readonly topic: string;\n}\n\n/**\n * Constructs a modal using pre-defined Rijkswaterstaat styling\n *\n * @param props - Props to pass to the modal - {@link ModalProps}\n * @example\n * ```jsx\n * <AoaModal\n * topic='topic'\n * modalQas={{\n * modal: 'modal',\n * content: 'content',\n * title: 'title',\n * }}\n * dialogContent={<div>SAMPLE</div>}\n * open={true}\n * />\n * ```\n */\nexport const AoaModal = memo(\n ({\n DialogProps,\n DialogTitleProps,\n DialogContentProps,\n modalQas,\n open,\n topic,\n dialogContent,\n dialogActions,\n closeAction\n }: AoaModalCloseButtonProps & AoaModalProps) => {\n return (\n <Dialog\n {...DialogProps}\n data-qa={modalQas?.modal ?? 'modal'}\n open={Boolean(open)}\n sx={merge(\n {\n '> div > div': {\n borderRadius: 0,\n minWidth: '45vw'\n }\n },\n DialogProps?.sx\n )}\n >\n <DialogTitle\n {...DialogTitleProps}\n data-qa={modalQas?.title ?? 'modal-title'}\n sx={merge(\n {\n padding: '3rem 3rem 1rem',\n color: 'var(--color-rijks-logoblue)',\n fontSize: '1.1rem',\n fontWeight: 'bolder'\n },\n DialogTitleProps?.sx\n )}\n >\n {topic}\n </DialogTitle>\n <AoaModalCloseButton closeAction={closeAction} />\n <DialogContent\n {...DialogContentProps}\n data-qa={modalQas?.content ?? 'modal-content'}\n sx={merge(\n {\n padding: '0 3rem 2rem'\n },\n DialogContentProps?.sx\n )}\n >\n {dialogContent}\n </DialogContent>\n {dialogActions}\n </Dialog>\n );\n }\n);\n"],"names":["AoaModal","memo","DialogProps","DialogTitleProps","DialogContentProps","modalQas","open","topic","dialogContent","dialogActions","closeAction","jsxs","Dialog","merge","jsx","DialogTitle","AoaModalCloseButton","DialogContent"],"mappings":";;;;;AAgFO,MAAMA,IAAWC;AAAA,EACtB,CAAC;AAAA,IACC,aAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,UAAAC;AAAA,IACA,MAAAC;AAAA,IACA,OAAAC;AAAA,IACA,eAAAC;AAAA,IACA,eAAAC;AAAA,IACA,aAAAC;AAAA,EAAA,MAGE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACE,GAAGV;AAAA,MACJ,YAASG,KAAA,gBAAAA,EAAU,UAAS;AAAA,MAC5B,MAAM,EAAQC;AAAA,MACd,IAAIO,EAAA;AAAA,QACF;AAAA,UACE,eAAe;AAAA,YACb,cAAc;AAAA,YACd,UAAU;AAAA,UAAA;AAAA,QAEd;AAAA,QACAX,KAAA,gBAAAA,EAAa;AAAA,MACf;AAAA,MAEA,UAAA;AAAA,QAAA,gBAAAY;AAAA,UAACC;AAAA,UAAA;AAAA,YACE,GAAGZ;AAAA,YACJ,YAASE,KAAA,gBAAAA,EAAU,UAAS;AAAA,YAC5B,IAAIQ,EAAA;AAAA,cACF;AAAA,gBACE,SAAS;AAAA,gBACT,OAAO;AAAA,gBACP,UAAU;AAAA,gBACV,YAAY;AAAA,cACd;AAAA,cACAV,KAAA,gBAAAA,EAAkB;AAAA,YACpB;AAAA,YAEC,UAAAI;AAAA,UAAA;AAAA,QACH;AAAA,QACA,gBAAAO,EAACE,KAAoB,aAAAN,GAA0B;AAAA,QAC/C,gBAAAI;AAAA,UAACG;AAAA,UAAA;AAAA,YACE,GAAGb;AAAA,YACJ,YAASC,KAAA,gBAAAA,EAAU,YAAW;AAAA,YAC9B,IAAIQ,EAAA;AAAA,cACF;AAAA,gBACE,SAAS;AAAA,cACX;AAAA,cACAT,KAAA,gBAAAA,EAAoB;AAAA,YACtB;AAAA,YAEC,UAAAI;AAAA,UAAA;AAAA,QACH;AAAA,QACCC;AAAA,MAAA;AAAA,IAAA;AAAA,EACH;AAGN;"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { AppBar as
|
|
3
|
-
import { m } from "../../../chunks/
|
|
1
|
+
import { jsx as o, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { AppBar as b, Toolbar as n, Box as d } from "@mui/material";
|
|
3
|
+
import { l as m } from "../../../chunks/lodash.DOeeRDpT.js";
|
|
4
4
|
import { memo as g, useState as u, useEffect as s } from "react";
|
|
5
5
|
import { FontNormalSxProps as x } from "../../../_constants.js";
|
|
6
6
|
import { AoaMenuItem as l } from "../../atoms/_menu/menu-item/MenuItem.js";
|
|
7
|
-
import { AoaUserMenu as
|
|
8
|
-
const
|
|
9
|
-
const [
|
|
7
|
+
import { AoaUserMenu as h } from "../../atoms/_menu/user-menu/UserMenu.js";
|
|
8
|
+
const R = g((r) => {
|
|
9
|
+
const [e, a] = u(0);
|
|
10
10
|
return s(() => {
|
|
11
11
|
const t = window.sessionStorage.getItem("activeMenuTab");
|
|
12
12
|
t && a(JSON.parse(t));
|
|
13
13
|
}, []), s(() => {
|
|
14
|
-
window.sessionStorage.setItem("activeMenuTab",
|
|
15
|
-
}, [
|
|
16
|
-
|
|
14
|
+
window.sessionStorage.setItem("activeMenuTab", e.toString());
|
|
15
|
+
}, [e]), /* @__PURE__ */ o(
|
|
16
|
+
b,
|
|
17
17
|
{
|
|
18
18
|
position: "static",
|
|
19
|
-
sx: m(
|
|
19
|
+
sx: m.merge(
|
|
20
20
|
{
|
|
21
21
|
color: "var(--color-text)",
|
|
22
22
|
backgroundColor: "var(--color-rijks-yellow)",
|
|
@@ -25,7 +25,7 @@ const I = g((r) => {
|
|
|
25
25
|
},
|
|
26
26
|
x
|
|
27
27
|
),
|
|
28
|
-
children: /* @__PURE__ */
|
|
28
|
+
children: /* @__PURE__ */ c(
|
|
29
29
|
n,
|
|
30
30
|
{
|
|
31
31
|
role: "menu",
|
|
@@ -39,7 +39,7 @@ const I = g((r) => {
|
|
|
39
39
|
borderRadius: "4px",
|
|
40
40
|
width: "6px",
|
|
41
41
|
height: "6px",
|
|
42
|
-
|
|
42
|
+
WebkitBorderRadius: "4px"
|
|
43
43
|
},
|
|
44
44
|
"::-webkit-scrollbar:hover": {
|
|
45
45
|
background: "#c5c5c5;"
|
|
@@ -50,7 +50,7 @@ const I = g((r) => {
|
|
|
50
50
|
"::-webkit-scrollbar-track": {
|
|
51
51
|
opacity: 0,
|
|
52
52
|
transition: "all 0.5s",
|
|
53
|
-
|
|
53
|
+
WebkitTransition: "all .5s"
|
|
54
54
|
},
|
|
55
55
|
"::-webkit-scrollbar-thumb": {
|
|
56
56
|
overflow: "visible",
|
|
@@ -60,35 +60,35 @@ const I = g((r) => {
|
|
|
60
60
|
},
|
|
61
61
|
"::-webkit-scrollbar-thumb:vertical": {
|
|
62
62
|
background: "rgba(100, 100, 100, .5)",
|
|
63
|
-
|
|
63
|
+
WebkitBorderRadius: "100px"
|
|
64
64
|
},
|
|
65
65
|
"::-webkit-scrollbar-thumb:vertical:active": {
|
|
66
66
|
background: "rgba(100, 100, 100, .61)",
|
|
67
|
-
|
|
67
|
+
WebkitBorderRadius: "100px"
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
tabIndex: 0,
|
|
71
71
|
children: [
|
|
72
|
-
/* @__PURE__ */
|
|
72
|
+
/* @__PURE__ */ o(
|
|
73
73
|
l,
|
|
74
74
|
{
|
|
75
75
|
index: 0,
|
|
76
76
|
page: { label: r.name, to: r.homePath ?? "/" },
|
|
77
|
-
selectedPage:
|
|
77
|
+
selectedPage: e,
|
|
78
78
|
setSelectedPage: a
|
|
79
79
|
}
|
|
80
80
|
),
|
|
81
|
-
/* @__PURE__ */
|
|
81
|
+
/* @__PURE__ */ o(d, { sx: { flexGrow: 1, display: "flex", height: "100%" }, children: r.pages.map((t, i) => /* @__PURE__ */ o(
|
|
82
82
|
l,
|
|
83
83
|
{
|
|
84
84
|
index: i + 1,
|
|
85
85
|
page: t,
|
|
86
|
-
selectedPage:
|
|
86
|
+
selectedPage: e,
|
|
87
87
|
setSelectedPage: a
|
|
88
88
|
},
|
|
89
89
|
i
|
|
90
90
|
)) }),
|
|
91
|
-
/* @__PURE__ */
|
|
91
|
+
/* @__PURE__ */ o(h, { settings: r.settings, username: r.username })
|
|
92
92
|
]
|
|
93
93
|
}
|
|
94
94
|
)
|
|
@@ -96,6 +96,6 @@ const I = g((r) => {
|
|
|
96
96
|
);
|
|
97
97
|
});
|
|
98
98
|
export {
|
|
99
|
-
|
|
99
|
+
R as AoaNavigationBar
|
|
100
100
|
};
|
|
101
101
|
//# sourceMappingURL=NavigationBar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationBar.js","sources":["../../../../src/components/molecules/navigation-bar/NavigationBar.tsx"],"sourcesContent":["import { AppBar, Box, Toolbar } from '@mui/material';\nimport merge from 'lodash
|
|
1
|
+
{"version":3,"file":"NavigationBar.js","sources":["../../../../src/components/molecules/navigation-bar/NavigationBar.tsx"],"sourcesContent":["import { AppBar, Box, Toolbar } from '@mui/material';\nimport { merge } from 'lodash';\nimport { memo, useEffect, useState, type ReactNode } from 'react';\nimport { FontNormalSxProps } from '../../../_constants';\nimport { AoaMenuItem, type AoaPage } from '../../atoms/_menu/menu-item/MenuItem';\nimport { AoaUserMenu, type AoaSetting } from '../../atoms/_menu/user-menu/UserMenu';\n\nexport interface AoaNavigationBarProps {\n /**\n * If your home page is not on the root url, use this prop to set the home path\n */\n readonly homePath?: string;\n /**\n * The name of the application that will be used for the Home tab\n */\n readonly name: string;\n /**\n * A list of all the pages and optional subpages to be shown in the menu\n */\n readonly pages: AoaPage[];\n /**\n * A list of all the settings to be shown in the menu\n */\n readonly settings: AoaSetting[];\n /**\n * Optional username to be displayed next to the settings menu\n */\n readonly username?: string;\n}\n\n/**\n * Constructs a navigation bar using pre-defined Rijks styling\n *\n * @param props - Props to pass to the navigation bar\n * @example\n * ```jsx\n * <AoaNavigationBar\n * name=\"Demo App\"\n * pages={\n * [\n * {\n * label: \"Products\",\n * to: \"/products\",\n * subItems: [\n * {\n * label: \"Books\",\n * to: \"/books\",\n * icon: <BookIcon />\n * }\n * ]\n * }\n * ]\n * }\n * settings={[{ label: \"Logout\", onClick: () => console.log(\"Logout\") }]}\n * />\n * ```\n */\n\nexport const AoaNavigationBar = memo((props: AoaNavigationBarProps): ReactNode => {\n const [selectedPage, setSelectedPage] = useState<number>(0);\n\n useEffect(() => {\n const sessionStorage = window.sessionStorage.getItem('activeMenuTab');\n if (sessionStorage) {\n setSelectedPage(JSON.parse(sessionStorage));\n }\n }, []);\n\n useEffect(() => {\n window.sessionStorage.setItem('activeMenuTab', selectedPage.toString());\n }, [selectedPage]);\n\n return (\n <AppBar\n position='static'\n sx={merge(\n {\n color: 'var(--color-text)',\n backgroundColor: 'var(--color-rijks-yellow)',\n height: '70px',\n boxShadow: 'none'\n },\n FontNormalSxProps\n )}\n >\n <Toolbar\n role='menu'\n sx={{\n height: '100%',\n overflowX: 'scroll',\n scrollbarWidth: 'thin',\n scrollbarColor: '#c5c5c5 #f6f6f6',\n\n '::-webkit-scrollbar': {\n overflow: 'visible',\n borderRadius: '4px',\n width: '6px',\n height: '6px',\n WebkitBorderRadius: '4px'\n },\n\n '::-webkit-scrollbar:hover': {\n background: '#c5c5c5;'\n },\n\n '::-webkit-scrollbar-corner': {\n background: 'rgba(0,0,0,0.5)'\n },\n\n '::-webkit-scrollbar-track': {\n opacity: 0,\n transition: 'all 0.5s',\n WebkitTransition: 'all .5s'\n },\n\n '::-webkit-scrollbar-thumb': {\n overflow: 'visible',\n backgroundColor: '#c5c5c5;',\n borderRadius: '4px',\n border: '3px solid #f6f6f6'\n },\n\n '::-webkit-scrollbar-thumb:vertical': {\n background: 'rgba(100, 100, 100, .5)',\n WebkitBorderRadius: '100px'\n },\n\n '::-webkit-scrollbar-thumb:vertical:active': {\n background: 'rgba(100, 100, 100, .61)',\n WebkitBorderRadius: '100px'\n }\n }}\n tabIndex={0}\n >\n <AoaMenuItem\n index={0}\n page={{ label: props.name, to: props.homePath ?? '/' }}\n selectedPage={selectedPage}\n setSelectedPage={setSelectedPage}\n />\n <Box sx={{ flexGrow: 1, display: 'flex', height: '100%' }}>\n {props.pages.map((page, index) => (\n <AoaMenuItem\n index={index + 1}\n key={index}\n page={page}\n selectedPage={selectedPage}\n setSelectedPage={setSelectedPage}\n />\n ))}\n </Box>\n <AoaUserMenu settings={props.settings} username={props.username} />\n </Toolbar>\n </AppBar>\n );\n});\n"],"names":["AoaNavigationBar","memo","props","selectedPage","setSelectedPage","useState","useEffect","sessionStorage","jsx","AppBar","merge","FontNormalSxProps","jsxs","Toolbar","AoaMenuItem","Box","page","index","AoaUserMenu"],"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YAAY;AAAA,cACZ,oBAAoB;AAAA,YAAA;AAAA,UAExB;AAAA,UACA,UAAU;AAAA,UAEV,UAAA;AAAA,YAAA,gBAAAL;AAAA,cAACM;AAAA,cAAA;AAAA,gBACC,OAAO;AAAA,gBACP,MAAM,EAAE,OAAOZ,EAAM,MAAM,IAAIA,EAAM,YAAY,IAAI;AAAA,gBACrD,cAAAC;AAAA,gBACA,iBAAAC;AAAA,cAAA;AAAA,YACF;AAAA,8BACCW,GAAI,EAAA,IAAI,EAAE,UAAU,GAAG,SAAS,QAAQ,QAAQ,UAC9C,UAAMb,EAAA,MAAM,IAAI,CAACc,GAAMC,MACtB,gBAAAT;AAAA,cAACM;AAAA,cAAA;AAAA,gBACC,OAAOG,IAAQ;AAAA,gBAEf,MAAAD;AAAA,gBACA,cAAAb;AAAA,gBACA,iBAAAC;AAAA,cAAA;AAAA,cAHKa;AAAA,YAKR,CAAA,GACH;AAAA,8BACCC,GAAY,EAAA,UAAUhB,EAAM,UAAU,UAAUA,EAAM,SAAU,CAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IACnE;AAAA,EACF;AAEJ,CAAC;"}
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { CircularProgress as
|
|
3
|
-
import {
|
|
2
|
+
import { CircularProgress as g } from "@mui/material";
|
|
3
|
+
import { l as f } from "../../../chunks/lodash.DOeeRDpT.js";
|
|
4
4
|
import { AoaButton as u } from "../../atoms/button/Button.js";
|
|
5
|
-
function
|
|
5
|
+
function B({
|
|
6
6
|
isUploading: o,
|
|
7
7
|
isDisabled: a,
|
|
8
8
|
children: e,
|
|
9
9
|
sx: i,
|
|
10
|
-
isNeverDisabled:
|
|
11
|
-
type:
|
|
12
|
-
files:
|
|
13
|
-
setIsUploading:
|
|
10
|
+
isNeverDisabled: s,
|
|
11
|
+
type: m,
|
|
12
|
+
files: l,
|
|
13
|
+
setIsUploading: n,
|
|
14
14
|
onClick: r,
|
|
15
|
-
...
|
|
15
|
+
...p
|
|
16
16
|
}) {
|
|
17
17
|
return /* @__PURE__ */ t(
|
|
18
18
|
u,
|
|
19
19
|
{
|
|
20
|
-
...
|
|
21
|
-
disabled:
|
|
20
|
+
...p,
|
|
21
|
+
disabled: s ? !1 : !!a || o || Object.keys(l ?? []).length < 1,
|
|
22
22
|
loading: o,
|
|
23
|
-
loadingIndicator: /* @__PURE__ */ t(
|
|
23
|
+
loadingIndicator: /* @__PURE__ */ t(g, { "aria-label": "Uploading...", size: 20 }),
|
|
24
24
|
loadingPosition: "start",
|
|
25
|
-
onClick: (
|
|
26
|
-
|
|
25
|
+
onClick: (d) => {
|
|
26
|
+
n(!0), r == null || r(d);
|
|
27
27
|
},
|
|
28
|
-
sx: f({ marginRight: 0 }, i),
|
|
29
|
-
type:
|
|
28
|
+
sx: f.merge({ marginRight: 0 }, i),
|
|
29
|
+
type: m ?? "primary",
|
|
30
30
|
children: e
|
|
31
31
|
}
|
|
32
32
|
);
|
|
33
33
|
}
|
|
34
34
|
export {
|
|
35
|
-
|
|
35
|
+
B as AoaUploadButton
|
|
36
36
|
};
|
|
37
37
|
//# sourceMappingURL=UploadButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UploadButton.js","sources":["../../../../src/components/molecules/upload-button/UploadButton.tsx"],"sourcesContent":["import { CircularProgress } from '@mui/material';\nimport merge from 'lodash
|
|
1
|
+
{"version":3,"file":"UploadButton.js","sources":["../../../../src/components/molecules/upload-button/UploadButton.tsx"],"sourcesContent":["import { CircularProgress } from '@mui/material';\nimport { merge } from 'lodash';\nimport type { PropsWithChildren } from 'react';\nimport { AoaButton, type AoaButtonProps } from '../../atoms/button/Button';\n\nexport interface AoaUploadButtonProps<TData> extends Omit<AoaButtonProps, 'disabled' | 'startIcon' | 'type'> {\n /**\n * The files that should be checked, required if {@link AoaUploadButtonProps.noFilesAllowed} is `false`\n */\n readonly files?: TData[];\n /**\n * Whether the button should be disabled\n */\n readonly isDisabled?: boolean;\n /**\n * Whether the button should never be disabled.\n * - If `true` the button never goes into a `disabled` state, regardless of other conditions\n * - If `false` the button will be disabled if there are no files provided\n * (through {@link AoaUploadButtonProps.files | `files`}), or the upload progress is running\n */\n readonly isNeverDisabled?: boolean;\n\n /**\n * Whether the upload process is running. This controls whether a spinner is shown and the button is disabled\n */\n readonly isUploading: boolean;\n /**\n * The action to change {@link AoaUploadButtonProps.isUploading | `isUploading`} to `true`\n *\n * @param newState - The new state of the `isUploading` flag\n */\n setIsUploading(this: void, newState: boolean): void;\n\n /**\n * The type of the button. This _cannot_ be a `text` style button like the base {@link AoaButton}\n */\n readonly type?: 'primary' | 'secondary';\n}\n\nexport function AoaUploadButton<TData>({\n isUploading,\n isDisabled,\n children,\n sx,\n isNeverDisabled,\n type,\n files,\n setIsUploading,\n onClick,\n ...props\n}: PropsWithChildren<AoaUploadButtonProps<TData>>) {\n return (\n <AoaButton\n {...props}\n disabled={isNeverDisabled ? false : Boolean(isDisabled) || isUploading || Object.keys(files ?? []).length < 1}\n loading={isUploading}\n loadingIndicator={<CircularProgress aria-label='Uploading...' size={20} />}\n loadingPosition='start'\n onClick={(event) => {\n setIsUploading(true);\n onClick?.(event);\n }}\n sx={merge({ marginRight: 0 }, sx)}\n type={type ?? 'primary'}\n >\n {children}\n </AoaButton>\n );\n}\n"],"names":["AoaUploadButton","isUploading","isDisabled","children","sx","isNeverDisabled","type","files","setIsUploading","onClick","props","jsx","AoaButton","CircularProgress","event","merge"],"mappings":";;;;AAuCO,SAASA,EAAuB;AAAA,EACrC,aAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;AAAA,EACA,IAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,SAAAC;AAAA,EACA,GAAGC;AACL,GAAmD;AAE/C,SAAA,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACE,GAAGF;AAAA,MACJ,UAAUL,IAAkB,KAAQ,EAAQH,KAAeD,KAAe,OAAO,KAAKM,KAAS,EAAE,EAAE,SAAS;AAAA,MAC5G,SAASN;AAAA,MACT,kBAAmB,gBAAAU,EAAAE,GAAA,EAAiB,cAAW,gBAAe,MAAM,IAAI;AAAA,MACxE,iBAAgB;AAAA,MAChB,SAAS,CAACC,MAAU;AAClB,QAAAN,EAAe,EAAI,GACnBC,KAAA,QAAAA,EAAUK;AAAA,MACZ;AAAA,MACA,IAAIC,EAAAA,MAAM,EAAE,aAAa,EAAA,GAAKX,CAAE;AAAA,MAChC,MAAME,KAAQ;AAAA,MAEb,UAAAH;AAAA,IAAA;AAAA,EACH;AAEJ;"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AoaFieldError } from '../components/molecules/field-error/FieldError';
|
|
2
|
+
import { AoaFormError } from '../components/molecules/form-error/FormError';
|
|
3
|
+
import { AoaFormModal } from '../components/molecules/form-modal/FormModal';
|
|
4
|
+
export declare const aoaFieldContext: import('react').Context<import('@tanstack/form-core').AnyFieldApi>, aoaFormContext: import('react').Context<import('@tanstack/form-core').AnyFormApi>, useAoaFieldContext: <TData>() => import('@tanstack/form-core').FieldApi<any, string, TData, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any>, useAoaFormContext: () => import('@tanstack/react-form').ReactFormExtendedApi<Record<string, never>, any, any, any, any, any, any, any, any, any>;
|
|
5
|
+
export declare const useAoaAppForm: <TFormData, TOnMount extends import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined, TOnChange extends import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends import('@tanstack/form-core').FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends import('@tanstack/form-core').FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends import('@tanstack/form-core').FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends import('@tanstack/form-core').FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta>(props: import('@tanstack/form-core').FormOptions<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnServer, TSubmitMeta>) => import('@tanstack/form-core').FormApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnServer, TSubmitMeta> & import('@tanstack/react-form').ReactFormApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnServer, TSubmitMeta> & NoInfer<{
|
|
6
|
+
readonly AoaFormModal: typeof AoaFormModal;
|
|
7
|
+
readonly AoaFormError: typeof AoaFormError;
|
|
8
|
+
}> & {
|
|
9
|
+
AppField: import('@tanstack/react-form').FieldComponent<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnServer, TSubmitMeta, NoInfer<{
|
|
10
|
+
readonly AoaFieldError: typeof AoaFieldError;
|
|
11
|
+
}>>;
|
|
12
|
+
AppForm: import('react').ComponentType<import('react').PropsWithChildren>;
|
|
13
|
+
}, withAoaForm: <TFormData, TOnMount extends import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined, TOnChange extends import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends import('@tanstack/form-core').FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends import('@tanstack/form-core').FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends import('@tanstack/form-core').FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends import('@tanstack/form-core').FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta, TRenderProps extends Record<string, unknown> = {}>({ render, props, }: import('@tanstack/react-form').WithFormProps<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnServer, TSubmitMeta, {
|
|
14
|
+
readonly AoaFieldError: typeof AoaFieldError;
|
|
15
|
+
}, {
|
|
16
|
+
readonly AoaFormModal: typeof AoaFormModal;
|
|
17
|
+
readonly AoaFormError: typeof AoaFormError;
|
|
18
|
+
}, TRenderProps>) => (props: import('react').PropsWithChildren<NoInfer<[unknown] extends [TRenderProps] ? any : TRenderProps> & {
|
|
19
|
+
form: import('@tanstack/form-core').FormApi<[unknown] extends [TFormData] ? any : TFormData, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnMount] ? [TOnMount] extends [TOnMount & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount : TOnMount, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnChange] ? [TOnChange] extends [TOnChange & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange : TOnChange, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync] ? [TOnChangeAsync] extends [TOnChangeAsync & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync : TOnChangeAsync, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnBlur] ? [TOnBlur] extends [TOnBlur & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur : TOnBlur, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync] ? [TOnBlurAsync] extends [TOnBlurAsync & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync : TOnBlurAsync, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit] ? [TOnSubmit] extends [TOnSubmit & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit : TOnSubmit, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync] ? [TOnSubmitAsync] extends [TOnSubmitAsync & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync : TOnSubmitAsync, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnServer] ? [TOnServer] extends [TOnServer & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer : TOnServer, [unknown] extends [TSubmitMeta] ? any : TSubmitMeta> & import('@tanstack/react-form').ReactFormApi<[unknown] extends [TFormData] ? any : TFormData, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnMount] ? [TOnMount] extends [TOnMount & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount : TOnMount, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnChange] ? [TOnChange] extends [TOnChange & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange : TOnChange, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync] ? [TOnChangeAsync] extends [TOnChangeAsync & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync : TOnChangeAsync, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnBlur] ? [TOnBlur] extends [TOnBlur & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur : TOnBlur, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync] ? [TOnBlurAsync] extends [TOnBlurAsync & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync : TOnBlurAsync, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit] ? [TOnSubmit] extends [TOnSubmit & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit : TOnSubmit, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync] ? [TOnSubmitAsync] extends [TOnSubmitAsync & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync : TOnSubmitAsync, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnServer] ? [TOnServer] extends [TOnServer & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer : TOnServer, [unknown] extends [TSubmitMeta] ? any : TSubmitMeta> & NoInfer<{
|
|
20
|
+
readonly AoaFormModal: typeof AoaFormModal;
|
|
21
|
+
readonly AoaFormError: typeof AoaFormError;
|
|
22
|
+
}> & {
|
|
23
|
+
AppField: import('@tanstack/react-form').FieldComponent<[unknown] extends [TFormData] ? any : TFormData, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnMount] ? [TOnMount] extends [TOnMount & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount : TOnMount, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnChange] ? [TOnChange] extends [TOnChange & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange : TOnChange, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync] ? [TOnChangeAsync] extends [TOnChangeAsync & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync : TOnChangeAsync, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnBlur] ? [TOnBlur] extends [TOnBlur & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur : TOnBlur, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync] ? [TOnBlurAsync] extends [TOnBlurAsync & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync : TOnBlurAsync, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit] ? [TOnSubmit] extends [TOnSubmit & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit : TOnSubmit, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync] ? [TOnSubmitAsync] extends [TOnSubmitAsync & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync : TOnSubmitAsync, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnServer] ? [TOnServer] extends [TOnServer & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer : TOnServer, [unknown] extends [TSubmitMeta] ? any : TSubmitMeta, NoInfer<{
|
|
24
|
+
readonly AoaFieldError: typeof AoaFieldError;
|
|
25
|
+
}>>;
|
|
26
|
+
AppForm: import('react').ComponentType<import('react').PropsWithChildren>;
|
|
27
|
+
};
|
|
28
|
+
}>) => import("react").JSX.Element;
|
|
29
|
+
//# sourceMappingURL=TanstackFormContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TanstackFormContext.d.ts","sourceRoot":"","sources":["../../src/contexts/TanstackFormContext.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAE5E,eAAO,MACS,eAAe,sEAChB,cAAc,qEACV,kBAAkB,2JACnB,iBAAiB,+HACP,CAAC;AAE7B,eAAO,MAAoB,aAAa;;;;;;;;GAAY,WAAW;;;;;;;;;;;;;;;kCAU7D,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "@tanstack/react-form";
|
|
2
|
+
import { c as t, d as s, u as r, e as m, f as F, w as x } from "../chunks/FieldError.DAUtZvvC.js";
|
|
3
|
+
export {
|
|
4
|
+
t as aoaFieldContext,
|
|
5
|
+
s as aoaFormContext,
|
|
6
|
+
r as useAoaAppForm,
|
|
7
|
+
m as useAoaFieldContext,
|
|
8
|
+
F as useAoaFormContext,
|
|
9
|
+
x as withAoaForm
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=TanstackFormContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TanstackFormContext.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export { AoaRadioButton, type AoaRadioButtonProps } from './components/atoms/sel
|
|
|
12
12
|
export { AoaSwitchButton, type AoaSwitchButtonProps } from './components/atoms/selection-buttons/switch-button/SwitchButton';
|
|
13
13
|
export { AoaTable, type AoaTableColumns, type AoaTableData, type AoaTableProps, type AoaTableQueryOptions } from './components/atoms/table/Table';
|
|
14
14
|
export { AoaZeroWidthSpace } from './components/atoms/zero-width-space/ZeroWidthSpace';
|
|
15
|
+
export { AoaFieldError, type AoaFieldErrorProps } from './components/molecules/field-error/FieldError';
|
|
15
16
|
export { AoaFileDropzone, type AoaDropableFile, type AoaFileDropzoneDataQas, type AoaFileDropzoneProps } from './components/molecules/file-dropzone/FileDropzone';
|
|
16
17
|
export { AoaFileTable, type AoaFileTableProps } from './components/molecules/file-table/FileTable';
|
|
17
18
|
export { AoaFormError, type AoaFormErrorProps } from './components/molecules/form-error/FormError';
|
|
@@ -21,4 +22,5 @@ export { AoaModal, type AoaModalProps, type AoaModalQAs } from './components/mol
|
|
|
21
22
|
export { AoaNavigationBar, type AoaNavigationBarProps } from './components/molecules/navigation-bar/NavigationBar';
|
|
22
23
|
export { AoaUploadButton, type AoaUploadButtonProps } from './components/molecules/upload-button/UploadButton';
|
|
23
24
|
export { AoaContentPage as AoaContentTemplate, type AoaContentPageProps as AoaContentTemplateProps } from './components/organisms/content-page/ContentPage';
|
|
25
|
+
export { aoaFieldContext, aoaFormContext, useAoaAppForm, useAoaFieldContext, useAoaFormContext, withAoaForm } from './contexts/TanstackFormContext';
|
|
24
26
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,OAAO,EAAE,MAAM,6CAA6C,CAAC;AAC3E,YAAY,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClF,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AACnG,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AAC3G,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AAC1G,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,iDAAiD,CAAC;AAC/G,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,wDAAwD,CAAC;AAC5G,OAAO,EACL,cAAc,EACd,KAAK,mBAAmB,EACzB,MAAM,+DAA+D,CAAC;AACvE,OAAO,EACL,eAAe,EACf,KAAK,oBAAoB,EAC1B,MAAM,iEAAiE,CAAC;AACzE,OAAO,EACL,QAAQ,EACR,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB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E,KAAK,aAAa,EAAE,KAAK,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACpG,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AACnH,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAG/G,OAAO,EACL,cAAc,IAAI,kBAAkB,EACpC,KAAK,mBAAmB,IAAI,uBAAuB,EACpD,MAAM,iDAAiD,CAAC;AAGzD,OAAO,EACL,eAAe,EACf,cAAc,EACd,aAAa,EACb,kBAAkB,EAClB,iBAAiB,EACjB,WAAW,EACZ,MAAM,gCAAgC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,45 +1,51 @@
|
|
|
1
|
-
import { AoaButton as
|
|
2
|
-
import { AoaIconButton as
|
|
1
|
+
import { AoaButton as r } from "./components/atoms/button/Button.js";
|
|
2
|
+
import { AoaIconButton as e } from "./components/atoms/icon-button/IconButton.js";
|
|
3
3
|
import { AoaInput as m } from "./components/atoms/input/Input.js";
|
|
4
4
|
import { AoaLogo as x } from "./components/atoms/logo/Logo.js";
|
|
5
5
|
import { AoaNoPermission as n } from "./components/atoms/no-permission/NoPermission.js";
|
|
6
|
-
import { AoaNotification as
|
|
7
|
-
import { AoaSectionHeader as
|
|
8
|
-
import { AoaCheckbox as
|
|
9
|
-
import { AoaRadioButton as
|
|
6
|
+
import { AoaNotification as s } from "./components/atoms/notification/Notification.js";
|
|
7
|
+
import { AoaSectionHeader as d } from "./components/atoms/section-header/SectionHeader.js";
|
|
8
|
+
import { AoaCheckbox as F } from "./components/atoms/selection-buttons/checkbox/Checkbox.js";
|
|
9
|
+
import { AoaRadioButton as c } from "./components/atoms/selection-buttons/radio-button/RadioButton.js";
|
|
10
10
|
import { AoaSwitchButton as b } from "./components/atoms/selection-buttons/switch-button/SwitchButton.js";
|
|
11
|
-
import { AoaTable as
|
|
12
|
-
import { AoaZeroWidthSpace as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { AoaContentPage as q } from "./components/organisms/content-page/ContentPage.js";
|
|
11
|
+
import { AoaTable as g } from "./components/atoms/table/Table.js";
|
|
12
|
+
import { AoaZeroWidthSpace as M } from "./components/atoms/zero-width-space/ZeroWidthSpace.js";
|
|
13
|
+
import { A as S, a as T, b as E, c as I, d as P, u as k, e as v, f as z, w as D } from "./chunks/FieldError.DAUtZvvC.js";
|
|
14
|
+
import { AoaFileDropzone as L } from "./components/molecules/file-dropzone/FileDropzone.js";
|
|
15
|
+
import { AoaFileTable as U } from "./components/molecules/file-table/FileTable.js";
|
|
16
|
+
import { AoaModalCloseButton as Z } from "./components/molecules/modal-close-button/ModalCloseButton.js";
|
|
17
|
+
import { AoaModal as q } from "./components/molecules/modal/Modal.js";
|
|
18
|
+
import { AoaNavigationBar as G } from "./components/molecules/navigation-bar/NavigationBar.js";
|
|
19
|
+
import { AoaUploadButton as K } from "./components/molecules/upload-button/UploadButton.js";
|
|
20
|
+
import { AoaContentPage as Q } from "./components/organisms/content-page/ContentPage.js";
|
|
22
21
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
22
|
+
r as AoaButton,
|
|
23
|
+
F as AoaCheckbox,
|
|
24
|
+
Q as AoaContentTemplate,
|
|
25
|
+
S as AoaFieldError,
|
|
26
|
+
L as AoaFileDropzone,
|
|
27
|
+
U as AoaFileTable,
|
|
28
|
+
T as AoaFormError,
|
|
29
|
+
E as AoaFormModal,
|
|
30
|
+
e as AoaIconButton,
|
|
31
31
|
m as AoaInput,
|
|
32
32
|
x as AoaLogo,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
q as AoaModal,
|
|
34
|
+
Z as AoaModalCloseButton,
|
|
35
|
+
G as AoaNavigationBar,
|
|
36
36
|
n as AoaNoPermission,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
s as AoaNotification,
|
|
38
|
+
c as AoaRadioButton,
|
|
39
|
+
d as AoaSectionHeader,
|
|
40
40
|
b as AoaSwitchButton,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
g as AoaTable,
|
|
42
|
+
K as AoaUploadButton,
|
|
43
|
+
M as AoaZeroWidthSpace,
|
|
44
|
+
I as aoaFieldContext,
|
|
45
|
+
P as aoaFormContext,
|
|
46
|
+
k as useAoaAppForm,
|
|
47
|
+
v as useAoaFieldContext,
|
|
48
|
+
z as useAoaFormContext,
|
|
49
|
+
D as withAoaForm
|
|
44
50
|
};
|
|
45
51
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|