@rws-aoa/react-library 7.1.0 → 8.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.
Files changed (75) hide show
  1. package/dist/chunks/{FieldError.DXcLGJ_k.js → FieldError.5EPMwcGp.js} +3 -3
  2. package/dist/chunks/FieldError.5EPMwcGp.js.map +1 -0
  3. package/dist/chunks/{compiler-runtime.hDcrsMwn.js → compiler-runtime.CrLvXwKf.js} +1 -19
  4. package/dist/chunks/{compiler-runtime.hDcrsMwn.js.map → compiler-runtime.CrLvXwKf.js.map} +1 -1
  5. package/dist/chunks/{lodash.CA_K01A9.js → lodash.DPVO3Hgf.js} +1 -9
  6. package/dist/chunks/{lodash.CA_K01A9.js.map → lodash.DPVO3Hgf.js.map} +1 -1
  7. package/dist/components/atoms/_menu/menu-item/MenuItem.d.ts +2 -2
  8. package/dist/components/atoms/_menu/menu-item/MenuItem.d.ts.map +1 -1
  9. package/dist/components/atoms/_menu/menu-item/MenuItem.js +5 -5
  10. package/dist/components/atoms/_menu/menu-item/MenuItem.js.map +1 -1
  11. package/dist/components/atoms/_menu/user-menu/UserMenu.js +2 -2
  12. package/dist/components/atoms/button/Button.d.ts.map +1 -1
  13. package/dist/components/atoms/button/Button.js +1 -1
  14. package/dist/components/atoms/button/Button.js.map +1 -1
  15. package/dist/components/atoms/icon-button/IconButton.js +28 -31
  16. package/dist/components/atoms/icon-button/IconButton.js.map +1 -1
  17. package/dist/components/atoms/input/Input.d.ts.map +1 -1
  18. package/dist/components/atoms/input/Input.js +1 -1
  19. package/dist/components/atoms/input/Input.js.map +1 -1
  20. package/dist/components/atoms/logo/Logo.js +1 -1
  21. package/dist/components/atoms/no-permission/NoPermission.js +1 -1
  22. package/dist/components/atoms/notification/Notification.js +1 -1
  23. package/dist/components/atoms/notification/_icons/Error.js +1 -1
  24. package/dist/components/atoms/notification/_icons/Info.js +1 -1
  25. package/dist/components/atoms/notification/_icons/Success.js +1 -1
  26. package/dist/components/atoms/notification/_icons/Warning.js +1 -1
  27. package/dist/components/atoms/section-header/SectionHeader.d.ts.map +1 -1
  28. package/dist/components/atoms/section-header/SectionHeader.js +1 -1
  29. package/dist/components/atoms/section-header/SectionHeader.js.map +1 -1
  30. package/dist/components/atoms/selection-buttons/checkbox/Checkbox.d.ts.map +1 -1
  31. package/dist/components/atoms/selection-buttons/checkbox/Checkbox.js +1 -1
  32. package/dist/components/atoms/selection-buttons/checkbox/Checkbox.js.map +1 -1
  33. package/dist/components/atoms/selection-buttons/radio-button/RadioButton.d.ts.map +1 -1
  34. package/dist/components/atoms/selection-buttons/radio-button/RadioButton.js +1 -1
  35. package/dist/components/atoms/selection-buttons/radio-button/RadioButton.js.map +1 -1
  36. package/dist/components/atoms/table/Table.d.ts +2 -5
  37. package/dist/components/atoms/table/Table.d.ts.map +1 -1
  38. package/dist/components/atoms/table/Table.js +28 -33
  39. package/dist/components/atoms/table/Table.js.map +1 -1
  40. package/dist/components/atoms/table/_QuickSearchToolbar.d.ts.map +1 -1
  41. package/dist/components/atoms/table/_QuickSearchToolbar.js +1 -31
  42. package/dist/components/atoms/table/_QuickSearchToolbar.js.map +1 -1
  43. package/dist/components/atoms/tooltip/Tooltip.d.ts.map +1 -1
  44. package/dist/components/atoms/tooltip/Tooltip.js +1 -1
  45. package/dist/components/atoms/tooltip/Tooltip.js.map +1 -1
  46. package/dist/components/atoms/zero-width-space/ZeroWidthSpace.js +1 -1
  47. package/dist/components/molecules/field-error/FieldError.d.ts.map +1 -1
  48. package/dist/components/molecules/field-error/FieldError.js +2 -2
  49. package/dist/components/molecules/file-dropzone/FileDropzone.d.ts.map +1 -1
  50. package/dist/components/molecules/file-dropzone/FileDropzone.js +1 -1
  51. package/dist/components/molecules/file-dropzone/FileDropzone.js.map +1 -1
  52. package/dist/components/molecules/file-table/FileTable.d.ts +4 -7
  53. package/dist/components/molecules/file-table/FileTable.d.ts.map +1 -1
  54. package/dist/components/molecules/file-table/FileTable.js +2 -2
  55. package/dist/components/molecules/file-table/FileTable.js.map +1 -1
  56. package/dist/components/molecules/form-error/FormError.d.ts.map +1 -1
  57. package/dist/components/molecules/form-error/FormError.js +2 -2
  58. package/dist/components/molecules/form-modal/FormModal.d.ts.map +1 -1
  59. package/dist/components/molecules/form-modal/FormModal.js +3 -3
  60. package/dist/components/molecules/modal/Modal.d.ts.map +1 -1
  61. package/dist/components/molecules/modal/Modal.js +2 -2
  62. package/dist/components/molecules/modal/Modal.js.map +1 -1
  63. package/dist/components/molecules/modal-close-button/ModalCloseButton.js +1 -1
  64. package/dist/components/molecules/navigation-bar/NavigationBar.d.ts.map +1 -1
  65. package/dist/components/molecules/navigation-bar/NavigationBar.js +43 -46
  66. package/dist/components/molecules/navigation-bar/NavigationBar.js.map +1 -1
  67. package/dist/components/molecules/upload-button/UploadButton.js +2 -2
  68. package/dist/components/organisms/content-page/ContentPage.js +1 -1
  69. package/dist/contexts/TanstackFormContext.d.ts +1 -1
  70. package/dist/contexts/TanstackFormContext.d.ts.map +1 -1
  71. package/dist/contexts/TanstackFormContext.js +1 -1
  72. package/dist/index.d.ts.map +1 -1
  73. package/dist/index.js +1 -1
  74. package/package.json +31 -31
  75. package/dist/chunks/FieldError.DXcLGJ_k.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAGhF,MAAM,WAAW,eAAgB,SAAQ,YAAY;IACnD;;OAEG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EACzB,SAAS,EAAE,KAAK,EAChB,KAAK,EACL,SAAS,EACT,UAAU,EACV,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,eAAe,2CAkCjB"}
1
+ {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAGhF,MAAM,WAAW,eAAgB,SAAQ,YAAY;IACnD;;OAEG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,2CAiC5H"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { Tooltip as i, Box as x, tooltipClasses as d } from "@mui/material";
3
- import { l as m } from "../../../chunks/lodash.CA_K01A9.js";
3
+ import { l as m } from "../../../chunks/lodash.DPVO3Hgf.js";
4
4
  function g({
5
5
  "data-qa": t,
6
6
  title: p,
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.js","sources":["../../../../src/components/atoms/tooltip/Tooltip.tsx"],"sourcesContent":["import { Box, Tooltip, tooltipClasses, type TooltipProps } from '@mui/material';\nimport { merge } from 'lodash';\n\nexport interface AoaTooltipProps extends TooltipProps {\n /**\n * Data-qa tag to apply to the tooltip\n */\n readonly 'data-qa'?: string;\n}\n\n/**\n * Constructs a tooltip using pre-defined Rijks styling\n *\n * @param props - Props to pass to the {@link Tooltip}\n */\nexport function AoaTooltip({\n 'data-qa': qaTag,\n title,\n placement,\n enterDelay,\n className,\n children,\n ...props\n}: AoaTooltipProps) {\n return (\n <Tooltip\n {...props}\n classes={{ popper: className }}\n describeChild\n enterDelay={enterDelay ?? 300}\n placement={placement ?? 'top'}\n slotProps={merge(\n {\n popper: {\n sx: {\n [`& .${tooltipClasses.tooltip}`]: {\n lineHeight: 1.5,\n backgroundColor: '#FFFFFF',\n borderRadius: 0,\n boxShadow:\n '0 1px 3px 0 rgb(0 0 0 / 20%), 0 1px 1px 0 rgb(0 0 0 / 14%), 0 2px 1px -1px rgb(0 0 0 / 12%) !important',\n color: 'var(--color-text)'\n }\n }\n }\n },\n props.slotProps\n )}\n title={\n <Box data-qa={qaTag} sx={{ p: 1 }}>\n {title}\n </Box>\n }\n >\n {children}\n </Tooltip>\n );\n}\n"],"names":["AoaTooltip","qaTag","title","placement","enterDelay","className","children","props","jsx","Tooltip","popper","merge","sx","tooltipClasses","tooltip","lineHeight","backgroundColor","borderRadius","boxShadow","color","slotProps","Box","p"],"mappings":";;;AAeO,SAASA,EAAW;AAAA,EACzB,WAAWC;AAAAA,EACXC,OAAAA;AAAAA,EACAC,WAAAA;AAAAA,EACAC,YAAAA;AAAAA,EACAC,WAAAA;AAAAA,EACAC,UAAAA;AAAAA,EACA,GAAGC;AACY,GAAG;AAClB,SACE,gBAAAC,EAACC,GAAA,EACC,GAAIF,GACJ,SAAS;AAAA,IAAEG,QAAQL;AAAAA,EAAAA,GACnB,eAAa,IACb,YAAYD,KAAc,KAC1B,WAAWD,KAAa,OACxB,WAAWQ,QACT;AAAA,IACED,QAAQ;AAAA,MACNE,IAAI;AAAA,QACF,CAAC,MAAMC,EAAeC,OAAO,EAAE,GAAG;AAAA,UAChCC,YAAY;AAAA,UACZC,iBAAiB;AAAA,UACjBC,cAAc;AAAA,UACdC,WACE;AAAA,UACFC,OAAO;AAAA,QAAA;AAAA,MACT;AAAA,IACF;AAAA,EACF,GAEFZ,EAAMa,SACR,GACA,OACE,gBAAAZ,EAACa,GAAA,EAAI,WAASpB,GAAO,IAAI;AAAA,IAAEqB,GAAG;AAAA,EAAA,GAC3BpB,UAAAA,GACH,GAGDI,UAAAA,EAAAA,CACH;AAEJ;"}
1
+ {"version":3,"file":"Tooltip.js","sources":["../../../../src/components/atoms/tooltip/Tooltip.tsx"],"sourcesContent":["import { Box, Tooltip, tooltipClasses, type TooltipProps } from '@mui/material';\nimport { merge } from 'lodash';\n\nexport interface AoaTooltipProps extends TooltipProps {\n /**\n * Data-qa tag to apply to the tooltip\n */\n readonly 'data-qa'?: string;\n}\n\n/**\n * Constructs a tooltip using pre-defined Rijks styling\n *\n * @param props - Props to pass to the {@link Tooltip}\n */\nexport function AoaTooltip({ 'data-qa': qaTag, title, placement, enterDelay, className, children, ...props }: AoaTooltipProps) {\n return (\n <Tooltip\n {...props}\n classes={{ popper: className }}\n describeChild\n enterDelay={enterDelay ?? 300}\n placement={placement ?? 'top'}\n slotProps={merge(\n {\n popper: {\n sx: {\n [`& .${tooltipClasses.tooltip}`]: {\n lineHeight: 1.5,\n backgroundColor: '#FFFFFF',\n borderRadius: 0,\n boxShadow: '0 1px 3px 0 rgb(0 0 0 / 20%), 0 1px 1px 0 rgb(0 0 0 / 14%), 0 2px 1px -1px rgb(0 0 0 / 12%) !important',\n color: 'var(--color-text)'\n }\n }\n }\n },\n props.slotProps\n )}\n title={\n <Box data-qa={qaTag} sx={{ p: 1 }}>\n {title}\n </Box>\n }\n >\n {children}\n </Tooltip>\n );\n}\n"],"names":["AoaTooltip","qaTag","title","placement","enterDelay","className","children","props","jsx","Tooltip","popper","merge","sx","tooltipClasses","tooltip","lineHeight","backgroundColor","borderRadius","boxShadow","color","slotProps","Box","p"],"mappings":";;;AAeO,SAASA,EAAW;AAAA,EAAE,WAAWC;AAAAA,EAAOC,OAAAA;AAAAA,EAAOC,WAAAA;AAAAA,EAAWC,YAAAA;AAAAA,EAAYC,WAAAA;AAAAA,EAAWC,UAAAA;AAAAA,EAAU,GAAGC;AAAuB,GAAG;AAC7H,SACE,gBAAAC,EAACC,GAAA,EACC,GAAIF,GACJ,SAAS;AAAA,IAAEG,QAAQL;AAAAA,EAAAA,GACnB,eAAa,IACb,YAAYD,KAAc,KAC1B,WAAWD,KAAa,OACxB,WAAWQ,QACT;AAAA,IACED,QAAQ;AAAA,MACNE,IAAI;AAAA,QACF,CAAC,MAAMC,EAAeC,OAAO,EAAE,GAAG;AAAA,UAChCC,YAAY;AAAA,UACZC,iBAAiB;AAAA,UACjBC,cAAc;AAAA,UACdC,WAAW;AAAA,UACXC,OAAO;AAAA,QAAA;AAAA,MACT;AAAA,IACF;AAAA,EACF,GAEFZ,EAAMa,SACR,GACA,OACE,gBAAAZ,EAACa,GAAA,EAAI,WAASpB,GAAO,IAAI;AAAA,IAAEqB,GAAG;AAAA,EAAA,GAC3BpB,UAAAA,GACH,GAGDI,UAAAA,EAAAA,CACH;AAEJ;"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import { c } from "../../../chunks/compiler-runtime.hDcrsMwn.js";
2
+ import { c } from "../../../chunks/compiler-runtime.CrLvXwKf.js";
3
3
  import { Typography as l } from "@mui/material";
4
4
  function h(p) {
5
5
  const t = c.c(8);
@@ -1 +1 @@
1
- {"version":3,"file":"FieldError.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/field-error/FieldError.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,kBAAkB,kDAiB7E"}
1
+ {"version":3,"file":"FieldError.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/field-error/FieldError.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,kBAAkB,kDAe7E"}
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
- import "../../../chunks/compiler-runtime.hDcrsMwn.js";
3
- import { A as t } from "../../../chunks/FieldError.DXcLGJ_k.js";
2
+ import "../../../chunks/compiler-runtime.CrLvXwKf.js";
3
+ import { A as t } from "../../../chunks/FieldError.5EPMwcGp.js";
4
4
  import "../../atoms/notification/Notification.js";
5
5
  export {
6
6
  t as AoaFieldError
@@ -1 +1 @@
1
- {"version":3,"file":"FileDropzone.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/file-dropzone/FileDropzone.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAe,KAAK,MAAM,EAAsC,MAAM,gBAAgB,CAAC;AAI9F,MAAM,MAAM,eAAe,CAAC,MAAM,SAAS,MAAM,IAAI,MAAM,GAAG;IAC5D;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,oBAAoB,CAAC,MAAM,SAAS,MAAM,EAAE,KAAK,SAAS,eAAe,CAAC,MAAM,CAAC;IAChG;;OAEG;IACH,YAAY,EAAE,KAAK,EAAE,CAAC;IACtB;;;;;OAKG;IACH,mBAAmB,CAAC,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC;IAC1C;;OAEG;IACH,OAAO,CAAC,EAAE,sBAAsB,CAAC;IACjC;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC;;OAEG;IACH,iBAAiB,CAAC,CAAC,YAAY,EAAE,IAAI,GAAG,MAAM,CAAC;IAC/C;;;;;OAKG;IACH,UAAU,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;CAClC;AAED,wBAAgB,eAAe,CAAC,MAAM,SAAS,MAAM,EAAE,KAAK,SAAS,eAAe,CAAC,MAAM,CAAC,EAC1F,KAAK,EAAE,QAAQ,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,2CAiGxE"}
1
+ {"version":3,"file":"FileDropzone.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/file-dropzone/FileDropzone.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAe,KAAK,MAAM,EAAsC,MAAM,gBAAgB,CAAC;AAI9F,MAAM,MAAM,eAAe,CAAC,MAAM,SAAS,MAAM,IAAI,MAAM,GAAG;IAC5D;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,oBAAoB,CAAC,MAAM,SAAS,MAAM,EAAE,KAAK,SAAS,eAAe,CAAC,MAAM,CAAC;IAChG;;OAEG;IACH,YAAY,EAAE,KAAK,EAAE,CAAC;IACtB;;;;;OAKG;IACH,mBAAmB,CAAC,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC;IAC1C;;OAEG;IACH,OAAO,CAAC,EAAE,sBAAsB,CAAC;IACjC;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC;;OAEG;IACH,iBAAiB,CAAC,CAAC,YAAY,EAAE,IAAI,GAAG,MAAM,CAAC;IAC/C;;;;;OAKG;IACH,UAAU,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;CAClC;AAED,wBAAgB,eAAe,CAAC,MAAM,SAAS,MAAM,EAAE,KAAK,SAAS,eAAe,CAAC,MAAM,CAAC,EAC1F,KAAK,EAAE,QAAQ,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,2CAwFxE"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as v, jsxs as k } from "react/jsx-runtime";
2
- import { c as P } from "../../../chunks/compiler-runtime.hDcrsMwn.js";
2
+ import { c as P } from "../../../chunks/compiler-runtime.CrLvXwKf.js";
3
3
  import { Box as w } from "@mui/material";
4
4
  import { useDropzone as A } from "react-dropzone";
5
5
  import { toast as E } from "react-toastify";
@@ -1 +1 @@
1
- {"version":3,"file":"FileDropzone.js","sources":["../../../../src/components/molecules/file-dropzone/FileDropzone.tsx"],"sourcesContent":["import { Box } from '@mui/material';\nimport type { PropsWithChildren, ReactNode } from 'react';\nimport { useDropzone, type Accept, type FileError, type FileRejection } from 'react-dropzone';\nimport { toast } from 'react-toastify';\nimport { isExtensionAllowed } from '../../../_constants';\n\nexport type AoaDropableFile<TProps extends object> = TProps & {\n /**\n * The file that was dropped\n */\n file: File;\n};\n\nexport interface AoaFileDropzoneDataQas {\n /**\n * The data-qa tag for the input\n */\n input: string;\n /**\n * The data-qa tag for the root element\n */\n root: string;\n}\n\nexport interface AoaFileDropzoneProps<TProps extends object, TFile extends AoaDropableFile<TProps>> {\n /**\n * The current set of files that are already dropped, coming from Redux or Tanstack Store\n */\n currentFiles: TFile[];\n /**\n * A custom function that can perform extra checks when validating files.\n * This should return `true` if the file should be rejected or `false` if it should be accepted\n *\n * @param file - The file to be validated\n */\n customFileValidator?(file: File): boolean;\n /**\n * data-qa tags for testing\n */\n dataQas?: AoaFileDropzoneDataQas;\n /**\n * The regular expression that validates if the dropped file should be accepted or rejected\n */\n extensionRegex: RegExp;\n /**\n * The toast warning message to be shown when a file is rejection\n */\n extensionWarning: string;\n /**\n * The extension map to be passed to the dropzone component\n */\n extensions: Accept;\n /**\n * The children to show inside the box where files can be dropped\n */\n fileDropChildren?: ReactNode;\n /**\n * Whether the dropzone should be disabled or not\n */\n isDisabled?: boolean;\n /**\n * A maximum count of files that should be accepted, if exceeded no save action will be performed\n */\n maxUploadFiles?: number;\n /**\n * The toast warning message to be shown when the files to be uploaded exceeds the maximum,\n * required if {@link AoaFileDropzoneProps.maxUploadFiles | maxUploadFiles} is specified.\n */\n maxUploadSizeExceededWarning?: string;\n /**\n * Additional properties to set for every file that is to be saved\n */\n perFileProperties?(acceptedFile: File): TProps;\n /**\n * The function to overwrite the files in the client store.\n * This should overwrite all files, not merge with current, which is handled in this component\n *\n * @param files - The new set of files to be stored\n */\n storeFiles(files: TFile[]): void;\n}\n\nexport function AoaFileDropzone<TProps extends object, TFile extends AoaDropableFile<TProps>>(\n props: Readonly<PropsWithChildren<AoaFileDropzoneProps<TProps, TFile>>>\n) {\n function showMaxUploadFilesWarning() {\n toast(\n props.maxUploadSizeExceededWarning ??\n `U heeft meer dan ${props.maxUploadFiles} bestand(en) geselecteerd. Dit is niet toegestaan.`,\n {\n type: 'warning'\n }\n );\n }\n\n function handleDrop(acceptedFiles: File[], fileRejections: FileRejection[]) {\n if (fileRejections.length > 0) {\n if (fileRejections.every((file) => file.errors.every((error) => error.code === 'too-many-files'))) {\n showMaxUploadFilesWarning();\n } else {\n toast(props.extensionWarning, { type: 'warning' });\n }\n }\n\n const filesClone = [...props.currentFiles];\n for (const acceptedFile of acceptedFiles) {\n const existingFileIndex = filesClone.findIndex((file) => file.file.name === acceptedFile.name);\n if (existingFileIndex === -1) {\n filesClone.push({ file: acceptedFile, ...props.perFileProperties?.(acceptedFile) } as TFile & TProps);\n } else {\n filesClone.splice(existingFileIndex, 1, {\n file: acceptedFile,\n ...props.perFileProperties?.(acceptedFile)\n } as TFile & TProps);\n }\n }\n\n if (props.maxUploadFiles && filesClone.length > props.maxUploadFiles) {\n showMaxUploadFilesWarning();\n } else {\n props.storeFiles(filesClone);\n }\n }\n\n function fileValidator(file: File): FileError | null {\n if (props.customFileValidator?.(file)) {\n return {\n code: 'custom-validator',\n message: props.extensionWarning\n };\n }\n\n if (isExtensionAllowed(props.extensionRegex, file.name)) {\n return null;\n }\n\n return {\n code: 'name-not-ok',\n message: props.extensionWarning\n };\n }\n\n const { getRootProps, getInputProps } = useDropzone({\n onDrop: handleDrop,\n disabled: props.isDisabled,\n accept: props.extensions,\n maxFiles: props.maxUploadFiles,\n validator: fileValidator\n });\n\n return (\n <Box\n {...getRootProps()}\n data-qa={props.dataQas?.root ?? 'file-dropzone-root'}\n sx={{\n '&:focus': {\n outline: 'none'\n }\n }}\n >\n <input\n {...getInputProps()}\n aria-label='File drop'\n data-qa={props.dataQas?.input ?? 'file-drop-input'}\n data-testid='file-drop-input'\n />\n <Box\n sx={{\n backgroundColor: 'var(--color-rijks-grey-2)',\n borderWidth: 1,\n borderStyle: 'dashed',\n borderColor: 'black',\n marginBottom: 0.5,\n textAlign: 'center'\n }}\n >\n {props.fileDropChildren}\n </Box>\n </Box>\n );\n}\n"],"names":["AoaFileDropzone","props","$","_c","t0","maxUploadFiles","maxUploadSizeExceededWarning","toast","type","showMaxUploadFilesWarning","t1","acceptedFiles","fileRejections","length","every","_temp2","extensionWarning","filesClone","currentFiles","acceptedFile","existingFileIndex","findIndex","file_0","file","name","push","perFileProperties","splice","storeFiles","handleDrop","t2","file_1","customFileValidator","code","message","isExtensionAllowed","extensionRegex","fileValidator","t3","extensions","isDisabled","onDrop","disabled","accept","maxFiles","validator","getRootProps","getInputProps","useDropzone","t4","t5","dataQas","root","t6","Symbol","for","outline","t7","t8","input","t9","t10","backgroundColor","borderWidth","borderStyle","borderColor","marginBottom","textAlign","t11","fileDropChildren","Box","t12","errors","_temp","error"],"mappings":";;;;;;AAkFO,SAAAA,EAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,EAAA;AAAA,MAAAC;AAAA,EAAAF,EAAA,CAAA,MAAAD,EAAAI,kBAAAH,EAAA,CAAA,MAAAD,EAAAK,gCAGLF,eAAA;AACEG,IAAAA,EACEN,EAAKK,gCACH,oBAAoBL,EAAKI,cAAA,sDAAmE;AAAA,MAAAG,MAEtF;AAAA,IAAA,CAEV;AAAA,EAAC,GACFN,EAAA,CAAA,IAAAD,EAAAI,gBAAAH,EAAA,CAAA,IAAAD,EAAAK,8BAAAJ,OAAAE,KAAAA,IAAAF,EAAA,CAAA;AARD,QAAAO,IAAAL;AAQC,MAAAM;AAAA,EAAAR,EAAA,CAAA,MAAAD,KAAAC,SAAAO,KAEDC,IAAA,SAAAC,GAAAC,GAAA;AAAA,IACMA,EAAcC,SAAA,MACZD,EAAcE,MAAAC,CAA8E,IAC9FN,EAAAA,IAEAF,EAAMN,EAAKe,kBAAA;AAAA,MAAAR,MAA2B;AAAA,IAAA,CAAW;AAIrD,UAAAS,IAAA,CAAA,GAAuBhB,EAAKiB,YAAA;AAAe,eACtCC,KAAsBR,GAAa;AACtC,YAAAS,IAA0BH,EAAUI,UAAAC,CAAAA,MAAqBC,EAAIA,KAAAC,SAAeL,EAAYK,IAAK;AAAE,MAC3FJ,MAAiB,KACnBH,EAAUQ,KAAA;AAAA,QAAAF,MAAcJ;AAAAA,QAAY,GAAKlB,EAAKyB,oBAAqBP,CAAY;AAAA,MAAA,CAAqB,IAEpGF,EAAUU,OAAQP,GAAiB,GAAA;AAAA,QAAAG,MAC3BJ;AAAAA,QAAY,GACflB,EAAKyB,oBAAqBP,CAAY;AAAA,MAAA,CACxB;AAAA,IAAC;AAA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,KAAA/C,EAAA,EAAA,MAAAgD,KAAAhD,UAAA0D,KA1BRW,sBAACD,GAAA,EAAG,GACErB,GACK,WAAAC,GACL,IAAAG,GAMJO,UAAAA;AAAAA,IAAAA;AAAAA,IAMAQ;AAAAA,EAAAA,GAYF,GAAMlE,QAAAkE,GAAAlE,QAAA+C,GAAA/C,QAAAgD,GAAAhD,QAAA0D,GAAA1D,QAAAqE,KAAAA,IAAArE,EAAA,EAAA,GA3BNqE;AA2BM;AAhGH,SAAAxD,EAAAQ,GAAA;AAAA,SAekCA,EAAIiD,OAAA1D,MAAA2D,CAAwD;AAAC;AAf/F,SAAAA,EAAAC,GAAA;AAAA,SAe+DA,EAAKzC,SAAU;AAAgB;"}
1
+ {"version":3,"file":"FileDropzone.js","sources":["../../../../src/components/molecules/file-dropzone/FileDropzone.tsx"],"sourcesContent":["import { Box } from '@mui/material';\nimport type { PropsWithChildren, ReactNode } from 'react';\nimport { useDropzone, type Accept, type FileError, type FileRejection } from 'react-dropzone';\nimport { toast } from 'react-toastify';\nimport { isExtensionAllowed } from '../../../_constants';\n\nexport type AoaDropableFile<TProps extends object> = TProps & {\n /**\n * The file that was dropped\n */\n file: File;\n};\n\nexport interface AoaFileDropzoneDataQas {\n /**\n * The data-qa tag for the input\n */\n input: string;\n /**\n * The data-qa tag for the root element\n */\n root: string;\n}\n\nexport interface AoaFileDropzoneProps<TProps extends object, TFile extends AoaDropableFile<TProps>> {\n /**\n * The current set of files that are already dropped, coming from Redux or Tanstack Store\n */\n currentFiles: TFile[];\n /**\n * A custom function that can perform extra checks when validating files.\n * This should return `true` if the file should be rejected or `false` if it should be accepted\n *\n * @param file - The file to be validated\n */\n customFileValidator?(file: File): boolean;\n /**\n * data-qa tags for testing\n */\n dataQas?: AoaFileDropzoneDataQas;\n /**\n * The regular expression that validates if the dropped file should be accepted or rejected\n */\n extensionRegex: RegExp;\n /**\n * The toast warning message to be shown when a file is rejection\n */\n extensionWarning: string;\n /**\n * The extension map to be passed to the dropzone component\n */\n extensions: Accept;\n /**\n * The children to show inside the box where files can be dropped\n */\n fileDropChildren?: ReactNode;\n /**\n * Whether the dropzone should be disabled or not\n */\n isDisabled?: boolean;\n /**\n * A maximum count of files that should be accepted, if exceeded no save action will be performed\n */\n maxUploadFiles?: number;\n /**\n * The toast warning message to be shown when the files to be uploaded exceeds the maximum,\n * required if {@link AoaFileDropzoneProps.maxUploadFiles | maxUploadFiles} is specified.\n */\n maxUploadSizeExceededWarning?: string;\n /**\n * Additional properties to set for every file that is to be saved\n */\n perFileProperties?(acceptedFile: File): TProps;\n /**\n * The function to overwrite the files in the client store.\n * This should overwrite all files, not merge with current, which is handled in this component\n *\n * @param files - The new set of files to be stored\n */\n storeFiles(files: TFile[]): void;\n}\n\nexport function AoaFileDropzone<TProps extends object, TFile extends AoaDropableFile<TProps>>(\n props: Readonly<PropsWithChildren<AoaFileDropzoneProps<TProps, TFile>>>\n) {\n function showMaxUploadFilesWarning() {\n toast(props.maxUploadSizeExceededWarning ?? `U heeft meer dan ${props.maxUploadFiles} bestand(en) geselecteerd. Dit is niet toegestaan.`, {\n type: 'warning'\n });\n }\n\n function handleDrop(acceptedFiles: File[], fileRejections: FileRejection[]) {\n if (fileRejections.length > 0) {\n if (fileRejections.every((file) => file.errors.every((error) => error.code === 'too-many-files'))) {\n showMaxUploadFilesWarning();\n } else {\n toast(props.extensionWarning, { type: 'warning' });\n }\n }\n\n const filesClone = [...props.currentFiles];\n for (const acceptedFile of acceptedFiles) {\n const existingFileIndex = filesClone.findIndex((file) => file.file.name === acceptedFile.name);\n if (existingFileIndex === -1) {\n filesClone.push({ file: acceptedFile, ...props.perFileProperties?.(acceptedFile) } as TFile & TProps);\n } else {\n filesClone.splice(existingFileIndex, 1, {\n file: acceptedFile,\n ...props.perFileProperties?.(acceptedFile)\n } as TFile & TProps);\n }\n }\n\n if (props.maxUploadFiles && filesClone.length > props.maxUploadFiles) {\n showMaxUploadFilesWarning();\n } else {\n props.storeFiles(filesClone);\n }\n }\n\n function fileValidator(file: File): FileError | null {\n if (props.customFileValidator?.(file)) {\n return {\n code: 'custom-validator',\n message: props.extensionWarning\n };\n }\n\n if (isExtensionAllowed(props.extensionRegex, file.name)) {\n return null;\n }\n\n return {\n code: 'name-not-ok',\n message: props.extensionWarning\n };\n }\n\n const { getRootProps, getInputProps } = useDropzone({\n onDrop: handleDrop,\n disabled: props.isDisabled,\n accept: props.extensions,\n maxFiles: props.maxUploadFiles,\n validator: fileValidator\n });\n\n return (\n <Box\n {...getRootProps()}\n data-qa={props.dataQas?.root ?? 'file-dropzone-root'}\n sx={{\n '&:focus': {\n outline: 'none'\n }\n }}\n >\n <input {...getInputProps()} aria-label='File drop' data-qa={props.dataQas?.input ?? 'file-drop-input'} data-testid='file-drop-input' />\n <Box\n sx={{\n backgroundColor: 'var(--color-rijks-grey-2)',\n borderWidth: 1,\n borderStyle: 'dashed',\n borderColor: 'black',\n marginBottom: 0.5,\n textAlign: 'center'\n }}\n >\n {props.fileDropChildren}\n </Box>\n </Box>\n );\n}\n"],"names":["AoaFileDropzone","props","$","_c","t0","maxUploadFiles","maxUploadSizeExceededWarning","toast","type","showMaxUploadFilesWarning","t1","acceptedFiles","fileRejections","length","every","_temp2","extensionWarning","filesClone","currentFiles","acceptedFile","existingFileIndex","findIndex","file_0","file","name","push","perFileProperties","splice","storeFiles","handleDrop","t2","file_1","customFileValidator","code","message","isExtensionAllowed","extensionRegex","fileValidator","t3","extensions","isDisabled","onDrop","disabled","accept","maxFiles","validator","getRootProps","getInputProps","useDropzone","t4","t5","dataQas","root","t6","Symbol","for","outline","t7","t8","input","t9","t10","backgroundColor","borderWidth","borderStyle","borderColor","marginBottom","textAlign","t11","fileDropChildren","Box","t12","errors","_temp","error"],"mappings":";;;;;;AAkFO,SAAAA,EAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,EAAA;AAAA,MAAAC;AAAA,EAAAF,EAAA,CAAA,MAAAD,EAAAI,kBAAAH,EAAA,CAAA,MAAAD,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M;AAvFH,SAAAxD,EAAAQ,GAAA;AAAA,SAWkCA,EAAIiD,OAAA1D,MAAA2D,CAAwD;AAAC;AAX/F,SAAAA,EAAAC,GAAA;AAAA,SAW+DA,EAAKzC,SAAU;AAAgB;"}
@@ -1,4 +1,4 @@
1
- import { DataGridProps, GridColDef, GridValidRowModel } from '@mui/x-data-grid';
1
+ import { DataGridProps, GridColDef, GridGetRowsParams, GridPaginationModel, GridValidRowModel } from '@mui/x-data-grid';
2
2
  export interface AoaFileTableProps<T extends GridValidRowModel = any> {
3
3
  /**
4
4
  * The column structure to display the data
@@ -17,12 +17,9 @@ export interface AoaFileTableProps<T extends GridValidRowModel = any> {
17
17
  */
18
18
  dataGridOverridableProps?: Pick<DataGridProps<T>, 'getRowId' | 'ignoreDiacritics'>;
19
19
  /**
20
- * Sets the initial sortModel in case the required sorting differs from the back-end's default sorting
20
+ * Sets the initial query options to retain query details after opening a page and returning to the table
21
21
  */
22
- initialSort?: {
23
- field: string;
24
- sort: 'asc' | 'desc';
25
- };
22
+ initialQueryOptions?: GridPaginationModel & Omit<GridGetRowsParams, 'end' | 'paginationModel' | 'start'>;
26
23
  }
27
- export declare function AoaFileTable<T extends object = any>({ data, columns, initialSort, dataGridOverridableProps, 'data-qa': dataQa }: Readonly<AoaFileTableProps<T>>): import("react/jsx-runtime").JSX.Element;
24
+ export declare function AoaFileTable<T extends object = any>({ data, columns, initialQueryOptions, dataGridOverridableProps, 'data-qa': dataQa }: Readonly<AoaFileTableProps<T>>): import("react/jsx-runtime").JSX.Element;
28
25
  //# sourceMappingURL=FileTable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileTable.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/file-table/FileTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAGrF,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,iBAAiB,GAAG,GAAG;IAClE;;OAEG;IACH,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;IACzB;;OAEG;IACH,IAAI,EAAE,CAAC,EAAE,CAAC;IACV;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,wBAAwB,CAAC,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,kBAAkB,CAAC,CAAC;IACnF;;OAEG;IACH,WAAW,CAAC,EAAE;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,KAAK,GAAG,MAAM,CAAC;KACtB,CAAC;CACH;AAED,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,GAAG,GAAG,EAAE,EACnD,IAAI,EACJ,OAAO,EACP,WAAW,EACX,wBAAwB,EACxB,SAAS,EAAE,MAAM,EAClB,EAAE,QAAQ,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,2CAchC"}
1
+ {"version":3,"file":"FileTable.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/file-table/FileTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAG7H,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,iBAAiB,GAAG,GAAG;IAClE;;OAEG;IACH,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;IACzB;;OAEG;IACH,IAAI,EAAE,CAAC,EAAE,CAAC;IACV;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,wBAAwB,CAAC,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,kBAAkB,CAAC,CAAC;IACnF;;OAEG;IACH,mBAAmB,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAC,iBAAiB,EAAE,KAAK,GAAG,iBAAiB,GAAG,OAAO,CAAC,CAAC;CAC1G;AAED,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,GAAG,GAAG,EAAE,EACnD,IAAI,EACJ,OAAO,EACP,mBAAmB,EACnB,wBAAwB,EACxB,SAAS,EAAE,MAAM,EAClB,EAAE,QAAQ,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,2CAchC"}
@@ -3,14 +3,14 @@ import { AoaTable as i } from "../../atoms/table/Table.js";
3
3
  function d({
4
4
  data: o,
5
5
  columns: a,
6
- initialSort: t,
6
+ initialQueryOptions: t,
7
7
  dataGridOverridableProps: r,
8
8
  "data-qa": e
9
9
  }) {
10
10
  return /* @__PURE__ */ n(i, { columns: a, data: {
11
11
  rows: o ?? [],
12
12
  rowCount: o?.length ?? 0
13
- }, "data-qa": e, dataGridOverridableProps: r, initialSort: t, mode: "client" });
13
+ }, "data-qa": e, dataGridOverridableProps: r, initialQueryOptions: t, mode: "client" });
14
14
  }
15
15
  export {
16
16
  d as AoaFileTable
@@ -1 +1 @@
1
- {"version":3,"file":"FileTable.js","sources":["../../../../src/components/molecules/file-table/FileTable.tsx"],"sourcesContent":["import type { DataGridProps, GridColDef, GridValidRowModel } from '@mui/x-data-grid';\nimport { AoaTable } from '../../atoms/table/Table';\n\nexport interface AoaFileTableProps<T extends GridValidRowModel = any> {\n /**\n * The column structure to display the data\n */\n columns: GridColDef<T>[];\n /**\n * The TableData object to be displayed in the table\n */\n data: T[];\n /**\n * Data-qa tag for E2E test purposes\n */\n 'data-qa'?: string;\n /**\n * Overwrite a safe selection of the {@link DataGrid} properties\n */\n dataGridOverridableProps?: Pick<DataGridProps<T>, 'getRowId' | 'ignoreDiacritics'>;\n /**\n * Sets the initial sortModel in case the required sorting differs from the back-end's default sorting\n */\n initialSort?: {\n field: string;\n sort: 'asc' | 'desc';\n };\n}\n\nexport function AoaFileTable<T extends object = any>({\n data,\n columns,\n initialSort,\n dataGridOverridableProps,\n 'data-qa': dataQa\n}: Readonly<AoaFileTableProps<T>>) {\n return (\n <AoaTable<T>\n columns={columns}\n data={{\n rows: data ?? [],\n rowCount: data?.length ?? 0\n }}\n data-qa={dataQa}\n dataGridOverridableProps={dataGridOverridableProps}\n initialSort={initialSort}\n mode='client'\n />\n );\n}\n"],"names":["AoaFileTable","data","columns","initialSort","dataGridOverridableProps","dataQa","jsx","AoaTable","rows","rowCount","length"],"mappings":";;AA6BO,SAASA,EAAqC;AAAA,EACnDC,MAAAA;AAAAA,EACAC,SAAAA;AAAAA,EACAC,aAAAA;AAAAA,EACAC,0BAAAA;AAAAA,EACA,WAAWC;AACmB,GAAG;AACjC,SACE,gBAAAC,EAACC,GAAA,EACC,SAAAL,GACA,MAAM;AAAA,IACJM,MAAMP,KAAQ,CAAA;AAAA,IACdQ,UAAUR,GAAMS,UAAU;AAAA,EAAA,GAE5B,WAASL,GACT,0BAAAD,GACA,aAAAD,GACA,MAAK,UAAQ;AAGnB;"}
1
+ {"version":3,"file":"FileTable.js","sources":["../../../../src/components/molecules/file-table/FileTable.tsx"],"sourcesContent":["import type { DataGridProps, GridColDef, GridGetRowsParams, GridPaginationModel, GridValidRowModel } from '@mui/x-data-grid';\nimport { AoaTable } from '../../atoms/table/Table';\n\nexport interface AoaFileTableProps<T extends GridValidRowModel = any> {\n /**\n * The column structure to display the data\n */\n columns: GridColDef<T>[];\n /**\n * The TableData object to be displayed in the table\n */\n data: T[];\n /**\n * Data-qa tag for E2E test purposes\n */\n 'data-qa'?: string;\n /**\n * Overwrite a safe selection of the {@link DataGrid} properties\n */\n dataGridOverridableProps?: Pick<DataGridProps<T>, 'getRowId' | 'ignoreDiacritics'>;\n /**\n * Sets the initial query options to retain query details after opening a page and returning to the table\n */\n initialQueryOptions?: GridPaginationModel & Omit<GridGetRowsParams, 'end' | 'paginationModel' | 'start'>;\n}\n\nexport function AoaFileTable<T extends object = any>({\n data,\n columns,\n initialQueryOptions,\n dataGridOverridableProps,\n 'data-qa': dataQa\n}: Readonly<AoaFileTableProps<T>>) {\n return (\n <AoaTable<T>\n columns={columns}\n data={{\n rows: data ?? [],\n rowCount: data?.length ?? 0\n }}\n data-qa={dataQa}\n dataGridOverridableProps={dataGridOverridableProps}\n initialQueryOptions={initialQueryOptions}\n mode='client'\n />\n );\n}\n"],"names":["AoaFileTable","data","columns","initialQueryOptions","dataGridOverridableProps","dataQa","jsx","AoaTable","rows","rowCount","length"],"mappings":";;AA0BO,SAASA,EAAqC;AAAA,EACnDC,MAAAA;AAAAA,EACAC,SAAAA;AAAAA,EACAC,qBAAAA;AAAAA,EACAC,0BAAAA;AAAAA,EACA,WAAWC;AACmB,GAAG;AACjC,SACE,gBAAAC,EAACC,GAAA,EACC,SAAAL,GACA,MAAM;AAAA,IACJM,MAAMP,KAAQ,CAAA;AAAA,IACdQ,UAAUR,GAAMS,UAAU;AAAA,EAAA,GAE5B,WAASL,GACT,0BAAAD,GACA,qBAAAD,GACA,MAAK,UAAQ;AAGnB;"}
@@ -1 +1 @@
1
- {"version":3,"file":"FormError.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/form-error/FormError.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,iBAAiB,2CAuBpE"}
1
+ {"version":3,"file":"FormError.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/form-error/FormError.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,iBAAiB,2CAqBpE"}
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
- import "../../../chunks/compiler-runtime.hDcrsMwn.js";
3
- import { a } from "../../../chunks/FieldError.DXcLGJ_k.js";
2
+ import "../../../chunks/compiler-runtime.CrLvXwKf.js";
3
+ import { a } from "../../../chunks/FieldError.5EPMwcGp.js";
4
4
  import "../../atoms/notification/Notification.js";
5
5
  export {
6
6
  a as AoaFormError
@@ -1 +1 @@
1
- {"version":3,"file":"FormModal.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/form-modal/FormModal.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAuB,KAAK,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAE5G,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,aAAa,EAAE,eAAe,CAAC,EAAE,wBAAwB;IACvG;;OAEG;IACH,oBAAoB,CAAC,EAAE,IAAI,CAAC,cAAc,EAAE,YAAY,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC,GAAG;QACxG,oBAAoB,CAAC,EAAE,OAAO,CAAC;KAChC,CAAC;IACF;;OAEG;IACH,UAAU,EAAE,kBAAkB,CAAC;IAC/B;;OAEG;IACH,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,YAAY,CAAC,EAC3B,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EAAE,EAAE,oBAAoB,EAAE,GAAG,oBAAoB,EAAO,EAC5E,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,aAAa,EACb,WAAW,EACZ,EAAE,QAAQ,CAAC,iBAAiB,CAAC,2CAiG7B"}
1
+ {"version":3,"file":"FormModal.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/form-modal/FormModal.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAuB,KAAK,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAE5G,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,aAAa,EAAE,eAAe,CAAC,EAAE,wBAAwB;IACvG;;OAEG;IACH,oBAAoB,CAAC,EAAE,IAAI,CAAC,cAAc,EAAE,YAAY,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC,GAAG;QACxG,oBAAoB,CAAC,EAAE,OAAO,CAAC;KAChC,CAAC;IACF;;OAEG;IACH,UAAU,EAAE,kBAAkB,CAAC;IAC/B;;OAEG;IACH,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,YAAY,CAAC,EAC3B,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EAAE,EAAE,oBAAoB,EAAE,GAAG,oBAAoB,EAAO,EAC5E,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,aAAa,EACb,WAAW,EACZ,EAAE,QAAQ,CAAC,iBAAiB,CAAC,2CA4F7B"}
@@ -1,8 +1,8 @@
1
1
  import "react/jsx-runtime";
2
- import "../../../chunks/compiler-runtime.hDcrsMwn.js";
2
+ import "../../../chunks/compiler-runtime.CrLvXwKf.js";
3
3
  import "@mui/material";
4
- import "../../../chunks/lodash.CA_K01A9.js";
5
- import { b as d } from "../../../chunks/FieldError.DXcLGJ_k.js";
4
+ import "../../../chunks/lodash.DPVO3Hgf.js";
5
+ import { b as d } from "../../../chunks/FieldError.5EPMwcGp.js";
6
6
  import "../../atoms/button/Button.js";
7
7
  import "../modal-close-button/ModalCloseButton.js";
8
8
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,kBAAkB,EACvB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACtB,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAuB,KAAK,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAE5G,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WA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AAa;IAC5B;;OAEG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACjD;;OAEG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IACjD;;OAEG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IAC7C;;OAEG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,SAAS,CAAC;IACnC;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,SAAS,CAAC;IAClC;;OAEG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,WAAW,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,QAAQ,CAAC,EACvB,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,aAAa,EACb,aAAa,EACb,WAAW,EACZ,EAAE,wBAAwB,GAAG,aAAa,2CA+C1C"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as A, jsxs as q } from "react/jsx-runtime";
2
- import { c as P } from "../../../chunks/compiler-runtime.hDcrsMwn.js";
2
+ import { c as P } from "../../../chunks/compiler-runtime.CrLvXwKf.js";
3
3
  import { DialogTitle as B, DialogContent as E, Dialog as M } from "@mui/material";
4
- import { l as C } from "../../../chunks/lodash.CA_K01A9.js";
4
+ import { l as C } from "../../../chunks/lodash.DPVO3Hgf.js";
5
5
  import { AoaModalCloseButton as R } from "../modal-close-button/ModalCloseButton.js";
6
6
  function Q(b) {
7
7
  const o = P.c(27), {
@@ -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';\nimport 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 function AoaModal({\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"],"names":["AoaModal","t0","$","_c","DialogProps","DialogTitleProps","DialogContentProps","modalQas","open","topic","dialogContent","dialogActions","closeAction","t1","modal","t2","Boolean","t3","sx","merge","borderRadius","minWidth","t4","title","t5","padding","color","fontSize","fontWeight","t6","jsx","DialogTitle","t7","AoaModalCloseButton","t8","content","t9","t10","DialogContent","t11","Dialog"],"mappings":";;;;;AAgFO,SAAAA,EAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,EAAA,GAAkB;AAAA,IAAAC,aAAAA;AAAAA,IAAAC,kBAAAA;AAAAA,IAAAC,oBAAAA;AAAAA,IAAAC,UAAAA;AAAAA,IAAAC,MAAAA;AAAAA,IAAAC,OAAAA;AAAAA,IAAAC,eAAAA;AAAAA,IAAAC,eAAAA;AAAAA,IAAAC,aAAAA;AAAAA,EAAAA,IAAAX,GAcVY,IAAAN,GAAQO,SAAW,SACtBC,IAAAC,EAAQR;AAAK,MAAAS;AAAA,EAAAf,EAAA,CAAA,MAAAE,GAAAc,MACfD,IAAAE,EAAAA,MAAA;AAAA,IAAA,eAAA;AAAA,MAAAC,cAAA;AAAA,MAAAC,UAIY;AAAA,IAAA;AAAA,EAAM,GAGpBjB,GAAWc,EACb,GAAChB,EAAA,CAAA,IAAAE,GAAAc,IAAAhB,OAAAe,KAAAA,IAAAf,EAAA,CAAA;AAIU,QAAAoB,IAAAf,GAAQgB,SAAW;AAAa,MAAAC;AAAA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AAhC,QAAAkC,GAAAlC,QAAAmC,KAAAA,IAAAnC,EAAA,EAAA;AAAA,MAAAqC;AAAA,SAAArC,EAAA,EAAA,MAAAE,KAAAF,EAAA,EAAA,MAAAS,KAAAT,EAAA,EAAA,MAAAW,KAAAX,EAAA,EAAA,MAAAmC,KAAAnC,EAAA,EAAA,MAAAa,KAAAb,EAAA,EAAA,MAAAe,KAAAf,EAAA,EAAA,MAAA2B,KAAA3B,UAAA8B,KAzClBO,sBAACC,KAAM,GACDpC,GACK,WAAAS,GACH,MAAAE,GACF,IAAAE,GAUJY,UAAAA;AAAAA,IAAAA;AAAAA,IAeAG;AAAAA,IACAK;AAAAA,IAYC1B;AAAAA,EAAAA,GACH,GAAST,QAAAE,GAAAF,QAAAS,GAAAT,QAAAW,GAAAX,QAAAmC,GAAAnC,QAAAa,GAAAb,QAAAe,GAAAf,QAAA2B,GAAA3B,QAAA8B,GAAA9B,QAAAqC,KAAAA,IAAArC,EAAA,EAAA,GA3CTqC;AA2CS;"}
1
+ {"version":3,"file":"Modal.js","sources":["../../../../src/components/molecules/modal/Modal.tsx"],"sourcesContent":["import { Dialog, DialogContent, DialogTitle, type DialogContentProps, type DialogProps, type DialogTitleProps } from '@mui/material';\nimport { merge } from 'lodash';\nimport 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 function AoaModal({\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"],"names":["AoaModal","t0","$","_c","DialogProps","DialogTitleProps","DialogContentProps","modalQas","open","topic","dialogContent","dialogActions","closeAction","t1","modal","t2","Boolean","t3","sx","merge","borderRadius","minWidth","t4","title","t5","padding","color","fontSize","fontWeight","t6","jsx","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AAa,GAAAb,QAAAe,GAAAf,QAAA2B,GAAA3B,QAAA8B,GAAA9B,QAAAqC,KAAAA,IAAArC,EAAA,EAAA,GA3CTqC;AA2CS;"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { c } from "../../../chunks/compiler-runtime.hDcrsMwn.js";
2
+ import { c } from "../../../chunks/compiler-runtime.CrLvXwKf.js";
3
3
  import { Close as s } from "@mui/icons-material";
4
4
  import { AoaIconButton as m } from "../../atoms/icon-button/IconButton.js";
5
5
  function b(r) {
@@ -1 +1 @@
1
- {"version":3,"file":"NavigationBar.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/navigation-bar/NavigationBar.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAe,KAAK,OAAO,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAEpF,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,UAAU,EAAE,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,2CAiG5D"}
1
+ {"version":3,"file":"NavigationBar.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/navigation-bar/NavigationBar.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAe,KAAK,OAAO,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAEpF,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,UAAU,EAAE,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,2CA2F5D"}
@@ -1,31 +1,28 @@
1
- import { jsx as n, jsxs as y } from "react/jsx-runtime";
2
- import { c as B } from "../../../chunks/compiler-runtime.hDcrsMwn.js";
3
- import { Box as R, AppBar as W, Toolbar as A } from "@mui/material";
4
- import { l as I } from "../../../chunks/lodash.CA_K01A9.js";
5
- import { useState as M, useEffect as S } from "react";
6
- import { FontNormalSxProps as P } from "../../../_constants.js";
1
+ import { jsx as f, jsxs as y } from "react/jsx-runtime";
2
+ import { c as B } from "../../../chunks/compiler-runtime.CrLvXwKf.js";
3
+ import { Box as S, AppBar as W, Toolbar as R } from "@mui/material";
4
+ import { useLocation as _ } from "@tanstack/react-router";
5
+ import { l as P } from "../../../chunks/lodash.DPVO3Hgf.js";
6
+ import { useState as A, useEffect as I } from "react";
7
+ import { FontNormalSxProps as j } from "../../../_constants.js";
7
8
  import { AoaMenuItem as p } from "../../atoms/_menu/menu-item/MenuItem.js";
8
- import { AoaUserMenu as T } from "../../atoms/_menu/user-menu/UserMenu.js";
9
- function U(t) {
10
- const e = B.c(28), [o, k] = M(0);
11
- let m, b;
12
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (m = () => {
13
- const r = window.sessionStorage.getItem("activeMenuTab");
14
- r && k(JSON.parse(r));
15
- }, b = [], e[0] = m, e[1] = b) : (m = e[0], b = e[1]), S(m, b);
16
- let f, d;
17
- e[2] !== o ? (f = () => {
18
- window.sessionStorage.setItem("activeMenuTab", o.toString());
19
- }, d = [o], e[2] = o, e[3] = f, e[4] = d) : (f = e[3], d = e[4]), S(f, d);
9
+ import { AoaUserMenu as C } from "../../atoms/_menu/user-menu/UserMenu.js";
10
+ function $(t) {
11
+ const e = B.c(27), [o, w] = A(null), c = _();
12
+ let d, h;
13
+ e[0] !== c.pathname || e[1] !== t.pages ? (d = () => {
14
+ const a = t.pages.findIndex((m) => m.to && c.pathname.startsWith(m.to) || m.subItems?.some((b) => b.to && c.pathname.startsWith(b.to)));
15
+ w(a >= 0 ? a + 1 : 0);
16
+ }, h = [c.pathname, t.pages], e[0] = c.pathname, e[1] = t.pages, e[2] = d, e[3] = h) : (d = e[2], h = e[3]), I(d, h);
20
17
  let g;
21
- e[5] === Symbol.for("react.memo_cache_sentinel") ? (g = I.merge({
18
+ e[4] === Symbol.for("react.memo_cache_sentinel") ? (g = P.merge({
22
19
  color: "var(--color-text)",
23
20
  backgroundColor: "var(--color-rijks-yellow)",
24
21
  height: "70px",
25
22
  boxShadow: "none"
26
- }, P), e[5] = g) : g = e[5];
23
+ }, j), e[4] = g) : g = e[4];
27
24
  let u;
28
- e[6] === Symbol.for("react.memo_cache_sentinel") ? (u = {
25
+ e[5] === Symbol.for("react.memo_cache_sentinel") ? (u = {
29
26
  height: "100%",
30
27
  overflowX: "scroll",
31
28
  scrollbarWidth: "thin",
@@ -62,39 +59,39 @@ function U(t) {
62
59
  background: "rgba(100, 100, 100, .61)",
63
60
  WebkitBorderRadius: "100px"
64
61
  }
65
- }, e[6] = u) : u = e[6];
66
- const w = t.homePath ?? "/";
67
- let l;
68
- e[7] !== t.name || e[8] !== w ? (l = {
62
+ }, e[5] = u) : u = e[5];
63
+ const v = t.homePath ?? "/";
64
+ let r;
65
+ e[6] !== t.name || e[7] !== v ? (r = {
69
66
  label: t.name,
70
- to: w
71
- }, e[7] = t.name, e[8] = w, e[9] = l) : l = e[9];
72
- let i;
73
- e[10] !== o || e[11] !== l ? (i = /* @__PURE__ */ n(p, { index: 0, page: l, selectedPage: o, setSelectedPage: k }), e[10] = o, e[11] = l, e[12] = i) : i = e[12];
74
- let h;
75
- e[13] === Symbol.for("react.memo_cache_sentinel") ? (h = {
67
+ to: v
68
+ }, e[6] = t.name, e[7] = v, e[8] = r) : r = e[8];
69
+ let l;
70
+ e[9] !== o || e[10] !== r ? (l = /* @__PURE__ */ f(p, { index: 0, page: r, selectedPage: o, setSelectedPage: w }), e[9] = o, e[10] = r, e[11] = l) : l = e[11];
71
+ let x;
72
+ e[12] === Symbol.for("react.memo_cache_sentinel") ? (x = {
76
73
  flexGrow: 1,
77
74
  display: "flex",
78
75
  height: "100%"
79
- }, e[13] = h) : h = e[13];
80
- let a;
81
- if (e[14] !== t.pages || e[15] !== o) {
82
- let r;
83
- e[17] !== o ? (r = (_, v) => /* @__PURE__ */ n(p, { index: v + 1, page: _, selectedPage: o, setSelectedPage: k }, v), e[17] = o, e[18] = r) : r = e[18], a = t.pages.map(r), e[14] = t.pages, e[15] = o, e[16] = a;
76
+ }, e[12] = x) : x = e[12];
77
+ let i;
78
+ if (e[13] !== t.pages || e[14] !== o) {
79
+ let a;
80
+ e[16] !== o ? (a = (m, b) => /* @__PURE__ */ f(p, { index: b + 1, page: m, selectedPage: o, setSelectedPage: w }, b), e[16] = o, e[17] = a) : a = e[17], i = t.pages.map(a), e[13] = t.pages, e[14] = o, e[15] = i;
84
81
  } else
85
- a = e[16];
82
+ i = e[15];
86
83
  let s;
87
- e[19] !== a ? (s = /* @__PURE__ */ n(R, { sx: h, children: a }), e[19] = a, e[20] = s) : s = e[20];
88
- let c;
89
- e[21] !== t.settings || e[22] !== t.username ? (c = /* @__PURE__ */ n(T, { settings: t.settings, username: t.username }), e[21] = t.settings, e[22] = t.username, e[23] = c) : c = e[23];
90
- let x;
91
- return e[24] !== s || e[25] !== c || e[26] !== i ? (x = /* @__PURE__ */ n(W, { position: "static", sx: g, children: /* @__PURE__ */ y(A, { role: "menu", sx: u, tabIndex: 0, children: [
92
- i,
84
+ e[18] !== i ? (s = /* @__PURE__ */ f(S, { sx: x, children: i }), e[18] = i, e[19] = s) : s = e[19];
85
+ let n;
86
+ e[20] !== t.settings || e[21] !== t.username ? (n = /* @__PURE__ */ f(C, { settings: t.settings, username: t.username }), e[20] = t.settings, e[21] = t.username, e[22] = n) : n = e[22];
87
+ let k;
88
+ return e[23] !== n || e[24] !== l || e[25] !== s ? (k = /* @__PURE__ */ f(W, { position: "static", sx: g, children: /* @__PURE__ */ y(R, { role: "menu", sx: u, tabIndex: 0, children: [
89
+ l,
93
90
  s,
94
- c
95
- ] }) }), e[24] = s, e[25] = c, e[26] = i, e[27] = x) : x = e[27], x;
91
+ n
92
+ ] }) }), e[23] = n, e[24] = l, e[25] = s, e[26] = k) : k = e[26], k;
96
93
  }
97
94
  export {
98
- U as AoaNavigationBar
95
+ $ as AoaNavigationBar
99
96
  };
100
97
  //# 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';\nimport { useEffect, useState } 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 function AoaNavigationBar(props: AoaNavigationBarProps) {\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","props","$","_c","selectedPage","setSelectedPage","useState","t0","t1","Symbol","for","sessionStorage","window","getItem","JSON","parse","useEffect","t2","t3","setItem","toString","t4","merge","color","backgroundColor","height","boxShadow","FontNormalSxProps","t5","overflowX","scrollbarWidth","scrollbarColor","overflow","borderRadius","width","WebkitBorderRadius","background","opacity","transition","WebkitTransition","border","t6","homePath","t7","name","label","to","t8","AoaMenuItem","t9","flexGrow","display","t10","pages","t11","page","index","jsx","map","Box","t12","settings","username","AoaUserMenu","t13","AppBar","jsxs","Toolbar"],"mappings":";;;;;;;;AA0DO,SAAAA,EAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,EAAA,GACL,CAAAC,GAAAC,CAAA,IAAwCC,GAAkB;AAAE,MAAAC,GAAAC;AAAA,EAAAN,EAAA,CAAA,MAAAO,OAAAC,IAAA,2BAAA,KAElDH,IAAAA,MAAA;AACR,UAAAI,IAAuBC,OAAAD,eAAAE,QAA8B,eAAe;AAAE,IAClEF,KACFN,EAAgBS,KAAAC,MAAWJ,CAAc,CAAC;AAAA,EAAC,GAE5CH,IAAA,CAAA,GAAEN,OAAAK,GAAAL,OAAAM,MAAAD,IAAAL,EAAA,CAAA,GAAAM,IAAAN,EAAA,CAAA,IALLc,EAAUT,GAKPC,CAAE;AAAC,MAAAS,GAAAC;AAAA,EA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AAAkD,KATJE,IAAA,gBAAAG,EAACE,GAAA,EAAQ,IAAAV,GACNG,UAAAA,GASH,GAAMlD,QAAAkD,GAAAlD,QAAAoD,KAAAA,IAAApD,EAAA,EAAA;AAAA,MAAA0D;AAAA,EAAA1D,EAAA,EAAA,MAAAD,EAAA4D,YAAA3D,EAAA,EAAA,MAAAD,EAAA6D,YACNF,sBAACG,GAAA,EAAsB,UAAA9D,EAAK4D,UAAqB,UAAA5D,EAAK6D,UAAS,GAAI5D,EAAA,EAAA,IAAAD,EAAA4D,UAAA3D,EAAA,EAAA,IAAAD,EAAA6D,UAAA5D,QAAA0D,KAAAA,IAAA1D,EAAA,EAAA;AAAA,MAAA8D;AAAA,SAAA9D,EAAA,EAAA,MAAAoD,KAAApD,UAAA0D,KAAA1D,EAAA,EAAA,MAAA6C,KA9EvEiB,IAAA,gBAAAP,EAACQ,GAAA,EACU,UAAA,UACL,IAAA5C,GAUJ,UAAA,gBAAA6C,EAACC,GAAA,EACM,MAAA,QACD,IAAAvC,GA6CM,aAEVmB,UAAAA;AAAAA,IAAAA;AAAAA,IAMAO;AAAAA,IAWAM;AAAAA,EAAAA,EAAAA,CACF,EAAA,CACF,GAAS1D,QAAAoD,GAAApD,QAAA0D,GAAA1D,QAAA6C,GAAA7C,QAAA8D,KAAAA,IAAA9D,EAAA,EAAA,GAhFT8D;AAgFS;"}
1
+ {"version":3,"file":"NavigationBar.js","sources":["../../../../src/components/molecules/navigation-bar/NavigationBar.tsx"],"sourcesContent":["import { AppBar, Box, Toolbar } from '@mui/material';\nimport { useLocation } from '@tanstack/react-router';\nimport { merge } from 'lodash';\nimport { useEffect, useState } 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 function AoaNavigationBar(props: AoaNavigationBarProps) {\n const [selectedPage, setSelectedPage] = useState<number | null>(null);\n\n const location = useLocation();\n\n useEffect(() => {\n // Find the index of the page that matches the current pathname\n const pageIndexByPathname = props.pages.findIndex(\n (page) =>\n // Check if the main page's path matches the current location\n (page.to && location.pathname.startsWith(page.to)) ||\n // Check if any of the subitems' paths match the current location\n page.subItems?.some((subItem) => subItem.to && location.pathname.startsWith(subItem.to))\n );\n\n // Add 1 because the home page is at index 0 in the MenuItem rendering\n setSelectedPage(pageIndexByPathname >= 0 ? pageIndexByPathname + 1 : 0);\n }, [location.pathname, props.pages]);\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 index={0} page={{ label: props.name, to: props.homePath ?? '/' }} selectedPage={selectedPage} setSelectedPage={setSelectedPage} />\n <Box sx={{ flexGrow: 1, display: 'flex', height: '100%' }}>\n {props.pages.map((page, index) => (\n <AoaMenuItem index={index + 1} key={index} page={page} selectedPage={selectedPage} setSelectedPage={setSelectedPage} />\n ))}\n </Box>\n <AoaUserMenu settings={props.settings} username={props.username} />\n </Toolbar>\n </AppBar>\n );\n}\n"],"names":["AoaNavigationBar","props","$","_c","selectedPage","setSelectedPage","useState","location","useLocation","t0","t1","pathname","pages","pageIndexByPathname","findIndex","page","to","startsWith","subItems","some","subItem","useEffect","t2","Symbol","for","merge","color","backgroundColor","height","boxShadow","FontNormalSxProps","t3","overflowX","scrollbarWidth","scrollbarColor","overflow","borderRadius","width","WebkitBorderRadius","background","opacity","transition","WebkitTransition","border","t4","homePath","t5","name","label","t6","AoaMenuItem","t7","flexGrow","display","t8","t9","page_0","index","jsx","map","Box","t10","settings","username","AoaUserMenu","t11","AppBar","jsxs","Toolbar"],"mappings":";;;;;;;;;AA2DO,SAAAA,EAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,EAAA,GACL,CAAAC,GAAAC,CAAA,IAAwCC,MAA4B,GAEpEC,IAAiBC,E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ES;"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as h } from "react/jsx-runtime";
2
- import { c as U } from "../../../chunks/compiler-runtime.hDcrsMwn.js";
2
+ import { c as U } from "../../../chunks/compiler-runtime.CrLvXwKf.js";
3
3
  import { CircularProgress as k } from "@mui/material";
4
- import { l as B } from "../../../chunks/lodash.CA_K01A9.js";
4
+ import { l as B } from "../../../chunks/lodash.DPVO3Hgf.js";
5
5
  import { AoaButton as C } from "../../atoms/button/Button.js";
6
6
  function P(b) {
7
7
  const e = U.c(30);
@@ -1,5 +1,5 @@
1
1
  import { jsx as c, jsxs as s } from "react/jsx-runtime";
2
- import { c as m } from "../../../chunks/compiler-runtime.hDcrsMwn.js";
2
+ import { c as m } from "../../../chunks/compiler-runtime.CrLvXwKf.js";
3
3
  import { Container as p, Box as d } from "@mui/material";
4
4
  import { AoaSectionHeader as f } from "../../atoms/section-header/SectionHeader.js";
5
5
  function j(n) {
@@ -19,5 +19,5 @@ export declare const useAoaAppForm: <TFormData, TOnMount extends import('@tansta
19
19
  readonly AoaFormModal: typeof AoaFormModal;
20
20
  readonly AoaFormError: typeof AoaFormError;
21
21
  }>;
22
- }>) => import("react").JSX.Element;
22
+ }>) => import('react').ReactNode;
23
23
  //# sourceMappingURL=TanstackFormContext.d.ts.map
@@ -1 +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,+KACnB,iBAAiB,yIACP,CAAC;AAE7B,eAAO,MAAoB,aAAa;;;;;IAAY,WAAW;;;;;;;;;;;;kCAU7D,CAAC"}
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,+KACnB,iBAAiB,yIACP,CAAC;AAE7B,eAAO,MAAoB,aAAa;;;;;IAAY,WAAW;;;;;;;;;;;;gCAU7D,CAAC"}
@@ -1,5 +1,5 @@
1
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.DXcLGJ_k.js";
2
+ import { c as t, d as s, u as r, e as m, f as F, w as x } from "../chunks/FieldError.5EPMwcGp.js";
3
3
  export {
4
4
  t as aoaFieldContext,
5
5
  s as aoaFormContext,
@@ -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,qB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,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAGvF,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACvG,OAAO,EACL,eAAe,EACf,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EAC1B,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AACnG,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AACnG,OAAO,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAClJ,OAAO,EAAE,mBAAmB,EAAE,KAAK,wBAAwB,EAAE,MAAM,4DAA4D,CAAC;AAChI,OAAO,EAAE,QAAQ,EAAE,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,EAAE,cAAc,IAAI,kBAAkB,EAAE,KAAK,mBAAmB,IAAI,uBAAuB,EAAE,MAAM,iDAAiD,CAAC;AAG5J,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,aAAa,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC"}
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ import { AoaSwitchButton as b } from "./components/atoms/selection-buttons/switc
11
11
  import { AoaTable as T } from "./components/atoms/table/Table.js";
12
12
  import { AoaTooltip as w } from "./components/atoms/tooltip/Tooltip.js";
13
13
  import { AoaZeroWidthSpace as N } from "./components/atoms/zero-width-space/ZeroWidthSpace.js";
14
- import { A as E, a as I, b as P, c as k, d as v, u as z, e as D, f as H, w as L } from "./chunks/FieldError.DXcLGJ_k.js";
14
+ import { A as E, a as I, b as P, c as k, d as v, u as z, e as D, f as H, w as L } from "./chunks/FieldError.5EPMwcGp.js";
15
15
  import { AoaFileDropzone as U } from "./components/molecules/file-dropzone/FileDropzone.js";
16
16
  import { AoaFileTable as Z } from "./components/molecules/file-table/FileTable.js";
17
17
  import { AoaModalCloseButton as q } from "./components/molecules/modal-close-button/ModalCloseButton.js";