@rws-aoa/react-library 3.6.5 → 4.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/_constants.js.map +1 -1
- package/dist/components/atoms/_menu/menu-item/MenuItem.d.ts.map +1 -1
- package/dist/components/atoms/_menu/menu-item/MenuItem.js +47 -41
- package/dist/components/atoms/_menu/menu-item/MenuItem.js.map +1 -1
- package/dist/components/atoms/_menu/user-menu/UserMenu.d.ts +1 -1
- package/dist/components/atoms/_menu/user-menu/UserMenu.d.ts.map +1 -1
- package/dist/components/atoms/_menu/user-menu/UserMenu.js +15 -14
- package/dist/components/atoms/_menu/user-menu/UserMenu.js.map +1 -1
- package/dist/components/atoms/button/Button.d.ts +4 -4
- package/dist/components/atoms/button/Button.d.ts.map +1 -1
- package/dist/components/atoms/button/Button.js +129 -127
- package/dist/components/atoms/button/Button.js.map +1 -1
- package/dist/components/atoms/icon-button/IconButton.d.ts +1 -1
- package/dist/components/atoms/icon-button/IconButton.d.ts.map +1 -1
- package/dist/components/atoms/icon-button/IconButton.js +6 -4
- package/dist/components/atoms/icon-button/IconButton.js.map +1 -1
- package/dist/components/atoms/input/Input.d.ts +2 -2
- package/dist/components/atoms/input/Input.d.ts.map +1 -1
- package/dist/components/atoms/input/Input.js +60 -55
- package/dist/components/atoms/input/Input.js.map +1 -1
- package/dist/components/atoms/logo/Logo.d.ts +2 -2
- package/dist/components/atoms/logo/Logo.js.map +1 -1
- package/dist/components/atoms/no-permission/NoPermission.d.ts +1 -1
- package/dist/components/atoms/no-permission/NoPermission.d.ts.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.d.ts +2 -2
- package/dist/components/atoms/notification/Notification.d.ts.map +1 -1
- package/dist/components/atoms/notification/Notification.js +22 -22
- package/dist/components/atoms/notification/Notification.js.map +1 -1
- package/dist/components/atoms/notification/_icons/Error.js.map +1 -1
- package/dist/components/atoms/notification/_icons/Info.js.map +1 -1
- package/dist/components/atoms/notification/_icons/Success.js.map +1 -1
- package/dist/components/atoms/notification/_icons/Warning.js.map +1 -1
- package/dist/components/atoms/section-header/SectionHeader.d.ts +2 -2
- package/dist/components/atoms/section-header/SectionHeader.d.ts.map +1 -1
- package/dist/components/atoms/section-header/SectionHeader.js +61 -39
- package/dist/components/atoms/section-header/SectionHeader.js.map +1 -1
- package/dist/components/atoms/selection-buttons/checkbox/Checkbox.d.ts +2 -2
- package/dist/components/atoms/selection-buttons/checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/atoms/selection-buttons/checkbox/Checkbox.js +12 -12
- package/dist/components/atoms/selection-buttons/checkbox/Checkbox.js.map +1 -1
- package/dist/components/atoms/selection-buttons/radio-button/RadioButton.d.ts +1 -1
- package/dist/components/atoms/selection-buttons/radio-button/RadioButton.d.ts.map +1 -1
- package/dist/components/atoms/selection-buttons/radio-button/RadioButton.js +9 -9
- package/dist/components/atoms/selection-buttons/radio-button/RadioButton.js.map +1 -1
- package/dist/components/atoms/selection-buttons/switch-button/SwitchButton.d.ts +1 -1
- package/dist/components/atoms/selection-buttons/switch-button/SwitchButton.d.ts.map +1 -1
- package/dist/components/atoms/selection-buttons/switch-button/SwitchButton.js +10 -10
- package/dist/components/atoms/selection-buttons/switch-button/SwitchButton.js.map +1 -1
- package/dist/components/atoms/table/Table.d.ts +4 -4
- package/dist/components/atoms/table/Table.d.ts.map +1 -1
- package/dist/components/atoms/table/Table.js +66 -64
- package/dist/components/atoms/table/Table.js.map +1 -1
- package/dist/components/atoms/table/_QuickSearchToolbar.d.ts +2 -2
- package/dist/components/atoms/table/_QuickSearchToolbar.d.ts.map +1 -1
- package/dist/components/atoms/table/_QuickSearchToolbar.js +29 -22
- package/dist/components/atoms/table/_QuickSearchToolbar.js.map +1 -1
- package/dist/components/atoms/zero-width-space/ZeroWidthSpace.js.map +1 -1
- package/dist/components/molecules/file-dropzone/FileDropzone.d.ts.map +1 -1
- package/dist/components/molecules/file-dropzone/FileDropzone.js +24 -13
- package/dist/components/molecules/file-dropzone/FileDropzone.js.map +1 -1
- package/dist/components/molecules/file-table/FileTable.d.ts +4 -4
- package/dist/components/molecules/file-table/FileTable.js +17 -17
- package/dist/components/molecules/file-table/FileTable.js.map +1 -1
- package/dist/components/molecules/form-error/FormError.d.ts +2 -2
- package/dist/components/molecules/form-error/FormError.js.map +1 -1
- package/dist/components/molecules/form-modal/FormModal.d.ts +2 -2
- package/dist/components/molecules/form-modal/FormModal.d.ts.map +1 -1
- package/dist/components/molecules/form-modal/FormModal.js +10 -1
- package/dist/components/molecules/form-modal/FormModal.js.map +1 -1
- package/dist/components/molecules/modal/Modal.d.ts +1 -1
- package/dist/components/molecules/modal/Modal.d.ts.map +1 -1
- package/dist/components/molecules/modal/Modal.js.map +1 -1
- package/dist/components/molecules/modal-close-button/ModalCloseButton.js.map +1 -1
- package/dist/components/molecules/navigation-bar/NavigationBar.d.ts.map +1 -1
- package/dist/components/molecules/navigation-bar/NavigationBar.js +27 -16
- package/dist/components/molecules/navigation-bar/NavigationBar.js.map +1 -1
- package/dist/components/molecules/upload-button/UploadButton.d.ts +2 -2
- package/dist/components/molecules/upload-button/UploadButton.d.ts.map +1 -1
- package/dist/components/molecules/upload-button/UploadButton.js +25 -23
- package/dist/components/molecules/upload-button/UploadButton.js.map +1 -1
- package/dist/components/organisms/content-page/ContentPage.d.ts +1 -1
- package/dist/components/organisms/content-page/ContentPage.d.ts.map +1 -1
- package/dist/components/organisms/content-page/ContentPage.js +6 -4
- package/dist/components/organisms/content-page/ContentPage.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/package.json +45 -45
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Notification.js","sources":["../../../../src/components/atoms/notification/Notification.tsx"],"sourcesContent":["import { Alert, type SxProps } from
|
|
1
|
+
{"version":3,"file":"Notification.js","sources":["../../../../src/components/atoms/notification/Notification.tsx"],"sourcesContent":["import { Alert, type SxProps, alertClasses } from '@mui/material';\nimport merge from 'lodash.merge';\nimport { memo, type ReactNode } from 'react';\nimport { FontNormalSxProps } from '../../../_constants';\nimport { IconError } from './_icons/Error';\nimport { IconInfo } from './_icons/Info';\nimport { IconSuccess } from './_icons/Success';\nimport { IconWarning } from './_icons/Warning';\n\nexport type Severity = 'error' | 'info' | 'success' | 'warning';\n\nexport interface AoaNotificationProps {\n /**\n * Data-qa tag for E2E test purposes\n */\n readonly 'data-qa'?: string;\n /**\n * The message to be displayed in the notification\n */\n readonly message: string;\n /**\n * The type of notification\n */\n readonly severity: Severity;\n /**\n * Material UI's property to apply styling\n */\n readonly sx?: SxProps;\n}\n\n/**\n * Constructs an alert using pre-defined Rijks styling\n *\n * @param props - Props to pass to the alert\n * @example\n * ```jsx\n * <AoaNotification message=\"wrong password\" severity=\"error\" />\n * ```\n */\n\nexport const AoaNotification = memo((props: AoaNotificationProps): ReactNode => {\n return (\n <Alert\n data-qa={props['data-qa']}\n iconMapping={{\n error: <IconError />,\n warning: <IconWarning />,\n info: <IconInfo />,\n success: <IconSuccess />\n }}\n severity={props.severity}\n sx={merge(\n {\n color: 'var(--color-text)',\n\n [`&.${alertClasses.standard}.${alertClasses.colorSuccess}`]: {\n backgroundColor: 'var(--color-rijks-notification-green)'\n },\n\n [`&.${alertClasses.standard}.${alertClasses.colorError}`]: {\n backgroundColor: 'var(--color-rijks-notification-red)'\n },\n\n [`&.${alertClasses.standard}.${alertClasses.colorWarning}`]: {\n backgroundColor: 'var(--color-rijks-notification-yellow)'\n },\n\n [`&.${alertClasses.standard}.${alertClasses.colorInfo}`]: {\n backgroundColor: 'var(--color-rijks-notification-blue)'\n }\n },\n FontNormalSxProps,\n props.sx\n )}\n >\n {props.message}\n </Alert>\n );\n});\n"],"names":["AoaNotification","memo","props","jsx","Alert","IconError","IconWarning","IconInfo","IconSuccess","merge","alertClasses","FontNormalSxProps"],"mappings":";;;;;;;;;AAwCa,MAAAA,IAAkBC,EAAK,CAACC,MAEjC,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,WAASF,EAAM,SAAS;AAAA,IACxB,aAAa;AAAA,MACX,yBAAQG,GAAU,EAAA;AAAA,MAClB,2BAAUC,GAAY,EAAA;AAAA,MACtB,wBAAOC,GAAS,EAAA;AAAA,MAChB,2BAAUC,GAAY,CAAA,CAAA;AAAA,IACxB;AAAA,IACA,UAAUN,EAAM;AAAA,IAChB,IAAIO;AAAA,MACF;AAAA,QACE,OAAO;AAAA,QAEP,CAAC,KAAKC,EAAa,QAAQ,IAAIA,EAAa,YAAY,EAAE,GAAG;AAAA,UAC3D,iBAAiB;AAAA,QACnB;AAAA,QAEA,CAAC,KAAKA,EAAa,QAAQ,IAAIA,EAAa,UAAU,EAAE,GAAG;AAAA,UACzD,iBAAiB;AAAA,QACnB;AAAA,QAEA,CAAC,KAAKA,EAAa,QAAQ,IAAIA,EAAa,YAAY,EAAE,GAAG;AAAA,UAC3D,iBAAiB;AAAA,QACnB;AAAA,QAEA,CAAC,KAAKA,EAAa,QAAQ,IAAIA,EAAa,SAAS,EAAE,GAAG;AAAA,UACxD,iBAAiB;AAAA,QAAA;AAAA,MAErB;AAAA,MACAC;AAAA,MACAT,EAAM;AAAA,IACR;AAAA,IAEC,UAAMA,EAAA;AAAA,EAAA;AACT,CAEH;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Error.js","sources":["../../../../../src/components/atoms/notification/_icons/Error.tsx"],"sourcesContent":["import { memo } from
|
|
1
|
+
{"version":3,"file":"Error.js","sources":["../../../../../src/components/atoms/notification/_icons/Error.tsx"],"sourcesContent":["import { memo } from 'react';\n\nexport const IconError = memo(() => (\n <svg\n aria-label='icon error'\n height='24px'\n version='1.1'\n viewBox='0 0 24 24'\n width='24px'\n x='0px'\n xmlSpace='preserve'\n xmlns='http://www.w3.org/2000/svg'\n xmlnsXlink='http://www.w3.org/1999/xlink'\n y='0px'\n >\n <g>\n <g>\n <rect height='24' style={{ fill: 'none' }} width='24' />\n </g>\n </g>\n <g>\n <g>\n <g>\n <circle cx='12' cy='12' r='10.5' style={{ fill: '#D52B1E' }} />\n </g>\n <path\n d='M15.12,7.71L12,10.48L8.88,7.71C8.55,7.42,8.05,7.43,7.73,7.73c-0.3,0.32-0.31,0.81-0.02,1.14L10.48,12\n\t\t\tl-2.77,3.12c-0.29,0.33-0.29,0.83,0.02,1.14c0.32,0.3,0.81,0.31,1.14,0.02L12,13.52l3.12,2.77c0.33,0.29,0.83,0.28,1.14-0.02\n\t\t\tc0.3-0.32,0.31-0.81,0.02-1.14L13.52,12l2.77-3.12c0.29-0.33,0.29-0.83-0.02-1.14C15.95,7.43,15.45,7.42,15.12,7.71 M12,12.01\n\t\t\tl-0.01-0.01L12,11.99l0.01-0.01l0.01,0.01l0.01,0.01L12,12.01z'\n style={{ fill: '#FFFFFF' }}\n />\n </g>\n </g>\n </svg>\n));\n"],"names":["IconError","memo","jsxs","jsx"],"mappings":";;AAEa,MAAAA,IAAYC,EAAK,MAC5B,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,cAAW;AAAA,IACX,QAAO;AAAA,IACP,SAAQ;AAAA,IACR,SAAQ;AAAA,IACR,OAAM;AAAA,IACN,GAAE;AAAA,IACF,UAAS;AAAA,IACT,OAAM;AAAA,IACN,YAAW;AAAA,IACX,GAAE;AAAA,IAEF,UAAA;AAAA,MAAA,gBAAAC,EAAC,KACC,EAAA,UAAA,gBAAAA,EAAC,KACC,EAAA,UAAA,gBAAAA,EAAC,UAAK,QAAO,MAAK,OAAO,EAAE,MAAM,OAAO,GAAG,OAAM,KAAA,CAAK,EACxD,CAAA,GACF;AAAA,MACA,gBAAAA,EAAC,KACC,EAAA,UAAA,gBAAAD,EAAC,KACC,EAAA,UAAA;AAAA,QAAA,gBAAAC,EAAC,KACC,EAAA,UAAA,gBAAAA,EAAC,UAAO,EAAA,IAAG,MAAK,IAAG,MAAK,GAAE,QAAO,OAAO,EAAE,MAAM,UAAA,EAAa,CAAA,GAC/D;AAAA,QACA,gBAAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAE;AAAA;AAAA;AAAA;AAAA,YAIF,OAAO,EAAE,MAAM,UAAU;AAAA,UAAA;AAAA,QAAA;AAAA,MAC3B,EAAA,CACF,EACF,CAAA;AAAA,IAAA;AAAA,EAAA;AACF,CACD;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Info.js","sources":["../../../../../src/components/atoms/notification/_icons/Info.tsx"],"sourcesContent":["import { memo } from
|
|
1
|
+
{"version":3,"file":"Info.js","sources":["../../../../../src/components/atoms/notification/_icons/Info.tsx"],"sourcesContent":["import { memo } from 'react';\n\nexport const IconInfo = memo(() => (\n <svg\n aria-label='icon info'\n height='24px'\n version='1.1'\n viewBox='0 0 24 24'\n width='24px'\n x='0px'\n xmlSpace='preserve'\n xmlns='http://www.w3.org/2000/svg'\n xmlnsXlink='http://www.w3.org/1999/xlink'\n y='0px'\n >\n <g>\n <g>\n <rect height='24' style={{ fill: 'none' }} width='24' />\n </g>\n </g>\n <g>\n <g>\n <path\n d='M22.04,3.78c-0.16-0.95-0.88-1.67-1.83-1.83C17.48,1.5,12.91,1.5,12,1.5c-0.91,0-5.48,0-8.22,0.46\n\t\t\tC2.84,2.11,2.11,2.84,1.96,3.78C1.5,6.52,1.5,11.09,1.5,12s0,5.48,0.46,8.22c0.16,0.95,0.88,1.67,1.83,1.83\n\t\t\tc2.74,0.46,7.3,0.46,8.22,0.46c0.91,0,5.48,0,8.22-0.46c0.95-0.16,1.67-0.88,1.83-1.83c0.46-2.74,0.46-7.3,0.46-8.22\n\t\t\tC22.5,9.26,22.5,6.52,22.04,3.78z'\n style={{ fill: '#007BC7' }}\n />\n <g>\n <path\n d='M10.71,6.93c0-0.34,0.11-0.63,0.33-0.88c0.22-0.25,0.54-0.38,0.95-0.38c0.41,0,0.72,0.12,0.94,0.36\n\t\t\t\tc0.22,0.24,0.33,0.54,0.33,0.9c0,0.32-0.11,0.61-0.33,0.86s-0.54,0.37-0.94,0.37c-0.41,0-0.72-0.12-0.95-0.35\n\t\t\t\tC10.82,7.57,10.71,7.28,10.71,6.93z M13.11,9.32v8.96h-2.21V9.41L13.11,9.32z'\n style={{ fill: '#FFFFFF' }}\n />\n </g>\n </g>\n </g>\n </svg>\n));\n"],"names":["IconInfo","memo","jsxs","jsx"],"mappings":";;AAEa,MAAAA,IAAWC,EAAK,MAC3B,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,cAAW;AAAA,IACX,QAAO;AAAA,IACP,SAAQ;AAAA,IACR,SAAQ;AAAA,IACR,OAAM;AAAA,IACN,GAAE;AAAA,IACF,UAAS;AAAA,IACT,OAAM;AAAA,IACN,YAAW;AAAA,IACX,GAAE;AAAA,IAEF,UAAA;AAAA,MAAA,gBAAAC,EAAC,KACC,EAAA,UAAA,gBAAAA,EAAC,KACC,EAAA,UAAA,gBAAAA,EAAC,UAAK,QAAO,MAAK,OAAO,EAAE,MAAM,OAAO,GAAG,OAAM,KAAA,CAAK,EACxD,CAAA,GACF;AAAA,MACA,gBAAAA,EAAC,KACC,EAAA,UAAA,gBAAAD,EAAC,KACC,EAAA,UAAA;AAAA,QAAA,gBAAAC;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAE;AAAA;AAAA;AAAA;AAAA,YAIF,OAAO,EAAE,MAAM,UAAU;AAAA,UAAA;AAAA,QAC3B;AAAA,0BACC,KACC,EAAA,UAAA,gBAAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAE;AAAA;AAAA;AAAA,YAGF,OAAO,EAAE,MAAM,UAAU;AAAA,UAAA;AAAA,QAAA,EAE7B,CAAA;AAAA,MAAA,EAAA,CACF,EACF,CAAA;AAAA,IAAA;AAAA,EAAA;AACF,CACD;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Success.js","sources":["../../../../../src/components/atoms/notification/_icons/Success.tsx"],"sourcesContent":["import { memo } from
|
|
1
|
+
{"version":3,"file":"Success.js","sources":["../../../../../src/components/atoms/notification/_icons/Success.tsx"],"sourcesContent":["import { memo } from 'react';\n\nexport const IconSuccess = memo(() => (\n <svg\n aria-label='icon success'\n height='24px'\n version='1.1'\n viewBox='0 0 24 24'\n width='24px'\n x='0px'\n xmlSpace='preserve'\n xmlns='http://www.w3.org/2000/svg'\n xmlnsXlink='http://www.w3.org/1999/xlink'\n y='0px'\n >\n <g>\n <g>\n <rect height='24' style={{ fill: 'none' }} width='24' />\n </g>\n </g>\n <g>\n <g>\n <path\n d='M22.04,3.78c-0.16-0.95-0.88-1.67-1.83-1.83C17.48,1.5,12.91,1.5,12,1.5c-0.91,0-5.48,0-8.22,0.46\n\t\t\tC2.83,2.11,2.11,2.83,1.96,3.78C1.5,6.52,1.5,11.09,1.5,12s0,5.48,0.46,8.22c0.16,0.95,0.88,1.67,1.83,1.83\n\t\t\tc2.74,0.46,7.3,0.46,8.22,0.46c0.91,0,5.48,0,8.22-0.46c0.95-0.16,1.67-0.88,1.83-1.83c0.46-2.74,0.46-7.3,0.46-8.22\n\t\t\tC22.5,9.26,22.5,6.52,22.04,3.78z'\n style={{ fill: '#39870C' }}\n />\n <path\n d='M16.5,7.35c-0.31-0.23-0.75-0.19-1.01,0.1l-4.4,4.95l-2.65-2.3C8.16,9.86,7.75,9.86,7.47,10.1\n\t\t\tc-0.28,0.24-0.35,0.65-0.16,0.97l3.2,5.38c0.14,0.23,0.38,0.37,0.64,0.37c0,0,0,0,0,0c0.26,0,0.51-0.14,0.64-0.36l4.89-8.09\n\t\t\tC16.89,8.02,16.81,7.59,16.5,7.35z'\n style={{ fill: '#FFFFFF' }}\n />\n </g>\n </g>\n </svg>\n));\n"],"names":["IconSuccess","memo","jsxs","jsx"],"mappings":";;AAEa,MAAAA,IAAcC,EAAK,MAC9B,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,cAAW;AAAA,IACX,QAAO;AAAA,IACP,SAAQ;AAAA,IACR,SAAQ;AAAA,IACR,OAAM;AAAA,IACN,GAAE;AAAA,IACF,UAAS;AAAA,IACT,OAAM;AAAA,IACN,YAAW;AAAA,IACX,GAAE;AAAA,IAEF,UAAA;AAAA,MAAA,gBAAAC,EAAC,KACC,EAAA,UAAA,gBAAAA,EAAC,KACC,EAAA,UAAA,gBAAAA,EAAC,UAAK,QAAO,MAAK,OAAO,EAAE,MAAM,OAAO,GAAG,OAAM,KAAA,CAAK,EACxD,CAAA,GACF;AAAA,MACA,gBAAAA,EAAC,KACC,EAAA,UAAA,gBAAAD,EAAC,KACC,EAAA,UAAA;AAAA,QAAA,gBAAAC;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAE;AAAA;AAAA;AAAA;AAAA,YAIF,OAAO,EAAE,MAAM,UAAU;AAAA,UAAA;AAAA,QAC3B;AAAA,QACA,gBAAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAE;AAAA;AAAA;AAAA,YAGF,OAAO,EAAE,MAAM,UAAU;AAAA,UAAA;AAAA,QAAA;AAAA,MAC3B,EAAA,CACF,EACF,CAAA;AAAA,IAAA;AAAA,EAAA;AACF,CACD;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Warning.js","sources":["../../../../../src/components/atoms/notification/_icons/Warning.tsx"],"sourcesContent":["import { memo } from
|
|
1
|
+
{"version":3,"file":"Warning.js","sources":["../../../../../src/components/atoms/notification/_icons/Warning.tsx"],"sourcesContent":["import { memo } from 'react';\n\nexport const IconWarning = memo(() => (\n <svg\n aria-label='icon warning'\n height='24px'\n version='1.1'\n viewBox='0 0 24 24'\n width='24px'\n x='0px'\n xmlSpace='preserve'\n xmlns='http://www.w3.org/2000/svg'\n xmlnsXlink='http://www.w3.org/1999/xlink'\n y='0px'\n >\n <g>\n <g>\n <rect height='24' style={{ fill: 'none' }} width='24' />\n </g>\n </g>\n <g>\n <g>\n <path\n d='M23.38,19.64L13.67,2.47c-0.73-1.3-2.6-1.3-3.34,0L0.62,19.64c-0.72,1.28,0.2,2.86,1.67,2.86h19.43\n\t\t\tC23.18,22.5,24.1,20.92,23.38,19.64z'\n style={{ fill: '#FFB612' }}\n />\n <g>\n <path\n d='M10.54,17.45c0-0.44,0.12-0.82,0.36-1.12c0.24-0.31,0.6-0.46,1.09-0.46c0.48,0,0.85,0.14,1.1,0.4\n\t\t\t\tc0.25,0.27,0.38,0.66,0.38,1.18c0,0.43-0.12,0.8-0.36,1.09c-0.24,0.29-0.6,0.44-1.09,0.44c-0.48,0-0.85-0.13-1.1-0.39\n\t\t\t\tC10.67,18.34,10.54,17.96,10.54,17.45z M10.85,7.18l2.48-0.2l-0.22,5.51v2.63l-2.27,0.05V7.18z'\n />\n </g>\n </g>\n </g>\n </svg>\n));\n"],"names":["IconWarning","memo","jsxs","jsx"],"mappings":";;AAEa,MAAAA,IAAcC,EAAK,MAC9B,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,cAAW;AAAA,IACX,QAAO;AAAA,IACP,SAAQ;AAAA,IACR,SAAQ;AAAA,IACR,OAAM;AAAA,IACN,GAAE;AAAA,IACF,UAAS;AAAA,IACT,OAAM;AAAA,IACN,YAAW;AAAA,IACX,GAAE;AAAA,IAEF,UAAA;AAAA,MAAA,gBAAAC,EAAC,KACC,EAAA,UAAA,gBAAAA,EAAC,KACC,EAAA,UAAA,gBAAAA,EAAC,UAAK,QAAO,MAAK,OAAO,EAAE,MAAM,OAAO,GAAG,OAAM,KAAA,CAAK,EACxD,CAAA,GACF;AAAA,MACA,gBAAAA,EAAC,KACC,EAAA,UAAA,gBAAAD,EAAC,KACC,EAAA,UAAA;AAAA,QAAA,gBAAAC;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAE;AAAA;AAAA,YAEF,OAAO,EAAE,MAAM,UAAU;AAAA,UAAA;AAAA,QAC3B;AAAA,0BACC,KACC,EAAA,UAAA,gBAAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAE;AAAA;AAAA;AAAA,UAAA;AAAA,QAAA,EAIN,CAAA;AAAA,MAAA,EAAA,CACF,EACF,CAAA;AAAA,IAAA;AAAA,EAAA;AACF,CACD;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BoxProps } from '@mui/material';
|
|
2
2
|
import { PropsWithChildren, ReactNode } from 'react';
|
|
3
|
-
export interface AoaSectionHeaderProps extends Omit<BoxProps,
|
|
3
|
+
export interface AoaSectionHeaderProps extends Omit<BoxProps, 'title'> {
|
|
4
4
|
/**
|
|
5
5
|
* Data-qa tag for E2E test purposes
|
|
6
6
|
*/
|
|
7
|
-
readonly
|
|
7
|
+
readonly 'data-qa'?: string;
|
|
8
8
|
/**
|
|
9
9
|
* The content to show as subtitle, lighter grey and below the title
|
|
10
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SectionHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/section-header/SectionHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"SectionHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/section-header/SectionHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+C,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE3F,OAAO,EAAQ,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAErE,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC;IACpE;;OAEG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;CAC3B;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,gFACoB,iBAAiB,CAAC,qBAAqB,CAAC,6CAuDxF,CAAC"}
|
|
@@ -1,47 +1,69 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Box as m, Typography as i, Divider as s } from "@mui/material";
|
|
3
|
-
import { m as
|
|
1
|
+
import { jsxs as n, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Box as m, Typography as i, Divider as s, typographyClasses as c } from "@mui/material";
|
|
3
|
+
import { m as l } from "../../../chunks/index.DJYQ_-zP.js";
|
|
4
4
|
import { memo as p } from "react";
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
marginBottom: 2,
|
|
13
|
-
'breakpoints.down("sm")': {
|
|
14
|
-
flexBasis: "100%",
|
|
15
|
-
width: "100%",
|
|
5
|
+
const h = p(
|
|
6
|
+
({ title: a, subtitle: t = "", children: e, ...r }) => /* @__PURE__ */ n(
|
|
7
|
+
m,
|
|
8
|
+
{
|
|
9
|
+
...r,
|
|
10
|
+
sx: l(
|
|
11
|
+
{
|
|
16
12
|
marginRight: 0,
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
marginBottom: 2,
|
|
14
|
+
'breakpoints.down("sm")': {
|
|
15
|
+
flexBasis: "100%",
|
|
16
|
+
width: "100%",
|
|
17
|
+
marginRight: 0,
|
|
18
|
+
"&:not(:first-of-type)": {
|
|
19
|
+
marginTop: 3
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
[`.${c.root}`]: {
|
|
23
|
+
fontFamily: "var(--font-text)"
|
|
19
24
|
}
|
|
20
25
|
},
|
|
21
|
-
|
|
22
|
-
fontFamily: "var(--font-text)"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
r.sx
|
|
26
|
-
),
|
|
27
|
-
children: [
|
|
28
|
-
/* @__PURE__ */ o(i, { color: "textPrimary", component: "h1", "data-qa": "section-title", sx: { fontSize: "var(--font-size-h1)" }, variant: "h5", children: a }),
|
|
29
|
-
!!t && /* @__PURE__ */ o(i, { color: "textSecondary", component: "span", "data-qa": "section-subtitle", sx: { fontSize: "var(--font-size-text)" }, variant: "subtitle1", children: t }),
|
|
30
|
-
/* @__PURE__ */ o(
|
|
31
|
-
s,
|
|
32
|
-
{
|
|
33
|
-
sx: {
|
|
34
|
-
backgroundColor: "var(--color-rijks-skyblue)",
|
|
35
|
-
marginBottom: 3,
|
|
36
|
-
paddingBottom: 0.25
|
|
37
|
-
}
|
|
38
|
-
}
|
|
26
|
+
r.sx
|
|
39
27
|
),
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
28
|
+
children: [
|
|
29
|
+
/* @__PURE__ */ o(
|
|
30
|
+
i,
|
|
31
|
+
{
|
|
32
|
+
color: "textPrimary",
|
|
33
|
+
component: "h1",
|
|
34
|
+
"data-qa": "section-title",
|
|
35
|
+
sx: { fontSize: "var(--font-size-h1)" },
|
|
36
|
+
variant: "h5",
|
|
37
|
+
children: a
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
!!t && /* @__PURE__ */ o(
|
|
41
|
+
i,
|
|
42
|
+
{
|
|
43
|
+
color: "textSecondary",
|
|
44
|
+
component: "span",
|
|
45
|
+
"data-qa": "section-subtitle",
|
|
46
|
+
sx: { fontSize: "var(--font-size-text)" },
|
|
47
|
+
variant: "subtitle1",
|
|
48
|
+
children: t
|
|
49
|
+
}
|
|
50
|
+
),
|
|
51
|
+
/* @__PURE__ */ o(
|
|
52
|
+
s,
|
|
53
|
+
{
|
|
54
|
+
sx: {
|
|
55
|
+
backgroundColor: "var(--color-rijks-skyblue)",
|
|
56
|
+
marginBottom: 3,
|
|
57
|
+
paddingBottom: 0.25
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
),
|
|
61
|
+
e
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
);
|
|
44
66
|
export {
|
|
45
|
-
|
|
67
|
+
h as AoaSectionHeader
|
|
46
68
|
};
|
|
47
69
|
//# sourceMappingURL=SectionHeader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SectionHeader.js","sources":["../../../../src/components/atoms/section-header/SectionHeader.tsx"],"sourcesContent":["import { Box, Divider, Typography, type BoxProps } from
|
|
1
|
+
{"version":3,"file":"SectionHeader.js","sources":["../../../../src/components/atoms/section-header/SectionHeader.tsx"],"sourcesContent":["import { Box, Divider, Typography, typographyClasses, type BoxProps } from '@mui/material';\nimport merge from 'lodash.merge';\nimport { memo, type PropsWithChildren, type ReactNode } from 'react';\n\nexport interface AoaSectionHeaderProps extends Omit<BoxProps, 'title'> {\n /**\n * Data-qa tag for E2E test purposes\n */\n readonly 'data-qa'?: string;\n /**\n * The content to show as subtitle, lighter grey and below the title\n */\n readonly subtitle?: ReactNode;\n /**\n * The title to show in the first Typography component\n */\n readonly title: ReactNode;\n}\n\n/**\n * Constructs a section header using pre-defined Rijks styling\n *\n * @param props - Props to pass to the section header\n * @example\n * ```jsx\n * <AoaSectionHeader title='This is a title' subtitle='And this is a subtitle' />\n * ```\n */\nexport const AoaSectionHeader = memo(\n ({ title, subtitle = '', children, ...props }: PropsWithChildren<AoaSectionHeaderProps>) => {\n return (\n <Box\n {...props}\n sx={merge(\n {\n marginRight: 0,\n marginBottom: 2,\n 'breakpoints.down(\"sm\")': {\n flexBasis: '100%',\n width: '100%',\n marginRight: 0,\n\n '&:not(:first-of-type)': {\n marginTop: 3\n }\n },\n [`.${typographyClasses.root}`]: {\n fontFamily: 'var(--font-text)'\n }\n },\n props.sx\n )}\n >\n <Typography\n color='textPrimary'\n component='h1'\n data-qa='section-title'\n sx={{ fontSize: 'var(--font-size-h1)' }}\n variant='h5'\n >\n {title}\n </Typography>\n {Boolean(subtitle) && (\n <Typography\n color='textSecondary'\n component='span'\n data-qa='section-subtitle'\n sx={{ fontSize: 'var(--font-size-text)' }}\n variant='subtitle1'\n >\n {subtitle}\n </Typography>\n )}\n <Divider\n sx={{\n backgroundColor: 'var(--color-rijks-skyblue)',\n marginBottom: 3,\n paddingBottom: 0.25\n }}\n />\n {children}\n </Box>\n );\n }\n);\n"],"names":["AoaSectionHeader","memo","title","subtitle","children","props","jsxs","Box","merge","typographyClasses","jsx","Typography","Divider"],"mappings":";;;;AA4BO,MAAMA,IAAmBC;AAAA,EAC9B,CAAC,EAAE,OAAAC,GAAO,UAAAC,IAAW,IAAI,UAAAC,GAAU,GAAGC,QAElC,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACE,GAAGF;AAAA,MACJ,IAAIG;AAAA,QACF;AAAA,UACE,aAAa;AAAA,UACb,cAAc;AAAA,UACd,0BAA0B;AAAA,YACxB,WAAW;AAAA,YACX,OAAO;AAAA,YACP,aAAa;AAAA,YAEb,yBAAyB;AAAA,cACvB,WAAW;AAAA,YAAA;AAAA,UAEf;AAAA,UACA,CAAC,IAAIC,EAAkB,IAAI,EAAE,GAAG;AAAA,YAC9B,YAAY;AAAA,UAAA;AAAA,QAEhB;AAAA,QACAJ,EAAM;AAAA,MACR;AAAA,MAEA,UAAA;AAAA,QAAA,gBAAAK;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,OAAM;AAAA,YACN,WAAU;AAAA,YACV,WAAQ;AAAA,YACR,IAAI,EAAE,UAAU,sBAAsB;AAAA,YACtC,SAAQ;AAAA,YAEP,UAAAT;AAAA,UAAA;AAAA,QACH;AAAA,QACC,EAAQC,KACP,gBAAAO;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,OAAM;AAAA,YACN,WAAU;AAAA,YACV,WAAQ;AAAA,YACR,IAAI,EAAE,UAAU,wBAAwB;AAAA,YACxC,SAAQ;AAAA,YAEP,UAAAR;AAAA,UAAA;AAAA,QACH;AAAA,QAEF,gBAAAO;AAAA,UAACE;AAAA,UAAA;AAAA,YACC,IAAI;AAAA,cACF,iBAAiB;AAAA,cACjB,cAAc;AAAA,cACd,eAAe;AAAA,YAAA;AAAA,UACjB;AAAA,QACF;AAAA,QACCR;AAAA,MAAA;AAAA,IAAA;AAAA,EACH;AAGN;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CheckboxProps as MUICheckboxProps } from '@mui/material';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
export interface AoaCheckboxProps extends Omit<MUICheckboxProps,
|
|
3
|
+
export interface AoaCheckboxProps extends Omit<MUICheckboxProps, 'checkedIcon' | 'icon'> {
|
|
4
4
|
/**
|
|
5
5
|
* Whether this checkbox is checked
|
|
6
6
|
*/
|
|
@@ -8,7 +8,7 @@ export interface AoaCheckboxProps extends Omit<MUICheckboxProps, "checkedIcon" |
|
|
|
8
8
|
/**
|
|
9
9
|
* Data-qa tag for E2E test purposes
|
|
10
10
|
*/
|
|
11
|
-
readonly
|
|
11
|
+
readonly 'data-qa'?: string;
|
|
12
12
|
/**
|
|
13
13
|
* The label that is shown after the checkbox
|
|
14
14
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/selection-buttons/checkbox/Checkbox.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/selection-buttons/checkbox/Checkbox.tsx"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,aAAa,IAAI,gBAAgB,EACvC,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAG7C,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,aAAa,GAAG,MAAM,CAAC;IACtF;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;GAQG;AAEH,eAAO,MAAM,WAAW,4DAA8B,gBAAgB,KAAG,SAAS,CA8BhF,CAAC"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { FormControlLabel as
|
|
4
|
-
import { m as
|
|
5
|
-
import { memo as
|
|
2
|
+
import { CheckBoxOutlineBlank as t, CheckBox as l } from "@mui/icons-material";
|
|
3
|
+
import { FormControlLabel as m, typographyClasses as i, Checkbox as c } from "@mui/material";
|
|
4
|
+
import { m as a } from "../../../../chunks/index.DJYQ_-zP.js";
|
|
5
|
+
import { memo as s } from "react";
|
|
6
6
|
import { FontNormalSxProps as n } from "../../../../_constants.js";
|
|
7
|
-
const
|
|
8
|
-
|
|
7
|
+
const k = s(({ label: e, ...r }) => /* @__PURE__ */ o(
|
|
8
|
+
m,
|
|
9
9
|
{
|
|
10
10
|
control: /* @__PURE__ */ o(
|
|
11
|
-
|
|
11
|
+
c,
|
|
12
12
|
{
|
|
13
13
|
...r,
|
|
14
|
-
checkedIcon: /* @__PURE__ */ o(
|
|
15
|
-
icon: /* @__PURE__ */ o(
|
|
16
|
-
sx:
|
|
14
|
+
checkedIcon: /* @__PURE__ */ o(l, { color: "inherit", fontSize: "small" }),
|
|
15
|
+
icon: /* @__PURE__ */ o(t, { color: "inherit", fontSize: "small" }),
|
|
16
|
+
sx: a(
|
|
17
17
|
{
|
|
18
18
|
color: "var(--color-primary)",
|
|
19
19
|
":focus": {
|
|
@@ -30,10 +30,10 @@ const u = a(({ label: e, ...r }) => /* @__PURE__ */ o(
|
|
|
30
30
|
}
|
|
31
31
|
),
|
|
32
32
|
label: e,
|
|
33
|
-
sx: {
|
|
33
|
+
sx: { [`.${i.root}`]: n }
|
|
34
34
|
}
|
|
35
35
|
));
|
|
36
36
|
export {
|
|
37
|
-
|
|
37
|
+
k as AoaCheckbox
|
|
38
38
|
};
|
|
39
39
|
//# sourceMappingURL=Checkbox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.js","sources":["../../../../../src/components/atoms/selection-buttons/checkbox/Checkbox.tsx"],"sourcesContent":["import { CheckBox as CheckBoxIcon, CheckBoxOutlineBlank as CheckBoxOutlineBlankIcon } from
|
|
1
|
+
{"version":3,"file":"Checkbox.js","sources":["../../../../../src/components/atoms/selection-buttons/checkbox/Checkbox.tsx"],"sourcesContent":["import { CheckBox as CheckBoxIcon, CheckBoxOutlineBlank as CheckBoxOutlineBlankIcon } from '@mui/icons-material';\nimport {\n Checkbox as MUICheckbox,\n FormControlLabel as MUIFormControlLabel,\n typographyClasses,\n type CheckboxProps as MUICheckboxProps\n} from '@mui/material';\nimport merge from 'lodash.merge';\nimport { memo, type ReactNode } from 'react';\nimport { FontNormalSxProps } from '../../../../_constants';\n\nexport interface AoaCheckboxProps extends Omit<MUICheckboxProps, 'checkedIcon' | 'icon'> {\n /**\n * Whether this checkbox is checked\n */\n readonly checked: boolean;\n /**\n * Data-qa tag for E2E test purposes\n */\n readonly 'data-qa'?: string;\n /**\n * The label that is shown after the checkbox\n */\n readonly label: string;\n}\n\n/**\n * Constructs a checkbox using pre-defined Rijks styling\n *\n * @param props - Props to pass to the checkbox\n * @example\n * ```jsx\n * <AoaCheckbox label=\"Demo checkbox\" checked={true} onChange={handleChange} />} />\n * ```\n */\n\nexport const AoaCheckbox = memo(({ label, ...props }: AoaCheckboxProps): ReactNode => {\n return (\n <MUIFormControlLabel\n control={\n <MUICheckbox\n {...props}\n checkedIcon={<CheckBoxIcon color='inherit' fontSize='small' />}\n icon={<CheckBoxOutlineBlankIcon color='inherit' fontSize='small' />}\n sx={merge(\n {\n color: 'var(--color-primary)',\n\n ':focus': {\n outline: '2px dashed var(--color-text)',\n outlineOffset: '-9px',\n borderRadius: 0\n },\n\n ':disabled': {\n color: 'var(--color-disabled)'\n }\n },\n props.sx\n )}\n />\n }\n label={label}\n sx={{ [`.${typographyClasses.root}`]: FontNormalSxProps }}\n />\n );\n});\n"],"names":["AoaCheckbox","memo","label","props","jsx","MUIFormControlLabel","MUICheckbox","CheckBoxIcon","CheckBoxOutlineBlankIcon","merge","typographyClasses","FontNormalSxProps"],"mappings":";;;;;;AAoCO,MAAMA,IAAcC,EAAK,CAAC,EAAE,OAAAC,GAAO,GAAGC,QAEzC,gBAAAC;AAAA,EAACC;AAAAA,EAAA;AAAA,IACC,SACE,gBAAAD;AAAA,MAACE;AAAAA,MAAA;AAAA,QACE,GAAGH;AAAA,QACJ,aAAc,gBAAAC,EAAAG,GAAA,EAAa,OAAM,WAAU,UAAS,SAAQ;AAAA,QAC5D,MAAO,gBAAAH,EAAAI,GAAA,EAAyB,OAAM,WAAU,UAAS,SAAQ;AAAA,QACjE,IAAIC;AAAA,UACF;AAAA,YACE,OAAO;AAAA,YAEP,UAAU;AAAA,cACR,SAAS;AAAA,cACT,eAAe;AAAA,cACf,cAAc;AAAA,YAChB;AAAA,YAEA,aAAa;AAAA,cACX,OAAO;AAAA,YAAA;AAAA,UAEX;AAAA,UACAN,EAAM;AAAA,QAAA;AAAA,MACR;AAAA,IACF;AAAA,IAEF,OAAAD;AAAA,IACA,IAAI,EAAE,CAAC,IAAIQ,EAAkB,IAAI,EAAE,GAAGC,EAAkB;AAAA,EAAA;AAC1D,CAEH;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/selection-buttons/radio-button/RadioButton.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"RadioButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/selection-buttons/radio-button/RadioButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,UAAU,IAAI,mBAAmB,EACvC,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAG7C,MAAM,WAAW,mBAAoB,SAAQ,mBAAmB;IAC9D;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;GAQG;AAEH,eAAO,MAAM,cAAc,4DAA8B,mBAAmB,KAAG,SAAS,CA2BtF,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { FormControlLabel as m,
|
|
3
|
-
import { m as
|
|
4
|
-
import { memo as
|
|
5
|
-
import { FontNormalSxProps as
|
|
6
|
-
const
|
|
2
|
+
import { FormControlLabel as m, typographyClasses as a, Radio as e } from "@mui/material";
|
|
3
|
+
import { m as l } from "../../../../chunks/index.DJYQ_-zP.js";
|
|
4
|
+
import { memo as s } from "react";
|
|
5
|
+
import { FontNormalSxProps as i } from "../../../../_constants.js";
|
|
6
|
+
const n = s(({ label: t, ...o }) => /* @__PURE__ */ r(
|
|
7
7
|
m,
|
|
8
8
|
{
|
|
9
9
|
control: /* @__PURE__ */ r(
|
|
10
|
-
|
|
10
|
+
e,
|
|
11
11
|
{
|
|
12
12
|
...o,
|
|
13
|
-
sx:
|
|
13
|
+
sx: l(
|
|
14
14
|
{
|
|
15
15
|
color: "var(--color-primary)",
|
|
16
16
|
":focus": {
|
|
@@ -26,10 +26,10 @@ const f = i(({ label: t, ...o }) => /* @__PURE__ */ r(
|
|
|
26
26
|
}
|
|
27
27
|
),
|
|
28
28
|
label: t,
|
|
29
|
-
sx: {
|
|
29
|
+
sx: { [`.${a.root}`]: i }
|
|
30
30
|
}
|
|
31
31
|
));
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
n as AoaRadioButton
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=RadioButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioButton.js","sources":["../../../../../src/components/atoms/selection-buttons/radio-button/RadioButton.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"RadioButton.js","sources":["../../../../../src/components/atoms/selection-buttons/radio-button/RadioButton.tsx"],"sourcesContent":["import {\n FormControlLabel as MUIFormControlLabel,\n Radio as MUIRadioButton,\n typographyClasses,\n type RadioProps as MUIRadioButtonProps\n} from '@mui/material';\nimport merge from 'lodash.merge';\nimport { memo, type ReactNode } from 'react';\nimport { FontNormalSxProps } from '../../../../_constants';\n\nexport interface AoaRadioButtonProps extends MUIRadioButtonProps {\n /**\n * Whether this radio button is checked\n */\n readonly checked: boolean;\n /**\n * Data-qa tag for E2E test purposes\n */\n readonly 'data-qa'?: string;\n /**\n * The label that is shown after the radio button\n */\n readonly label: string;\n}\n\n/**\n * Constructs a radio button using pre-defined Rijks styling\n *\n * @param props - Props to pass to the radio button\n * @example\n * ```jsx\n * <AoaRadioButton label=\"Demo radio button\" />} />\n * ```\n */\n\nexport const AoaRadioButton = memo(({ label, ...props }: AoaRadioButtonProps): ReactNode => {\n return (\n <MUIFormControlLabel\n control={\n <MUIRadioButton\n {...props}\n sx={merge(\n {\n color: 'var(--color-primary)',\n\n ':focus': {\n outline: '2px dashed var(--color-text)',\n outlineOffset: '-8px'\n },\n\n ':disabled': {\n color: 'var(--color-disabled)'\n }\n },\n props.sx\n )}\n />\n }\n label={label}\n sx={{ [`.${typographyClasses.root}`]: FontNormalSxProps }}\n />\n );\n});\n"],"names":["AoaRadioButton","memo","label","props","jsx","MUIFormControlLabel","MUIRadioButton","merge","typographyClasses","FontNormalSxProps"],"mappings":";;;;;AAmCO,MAAMA,IAAiBC,EAAK,CAAC,EAAE,OAAAC,GAAO,GAAGC,QAE5C,gBAAAC;AAAA,EAACC;AAAAA,EAAA;AAAA,IACC,SACE,gBAAAD;AAAA,MAACE;AAAAA,MAAA;AAAA,QACE,GAAGH;AAAA,QACJ,IAAII;AAAA,UACF;AAAA,YACE,OAAO;AAAA,YAEP,UAAU;AAAA,cACR,SAAS;AAAA,cACT,eAAe;AAAA,YACjB;AAAA,YAEA,aAAa;AAAA,cACX,OAAO;AAAA,YAAA;AAAA,UAEX;AAAA,UACAJ,EAAM;AAAA,QAAA;AAAA,MACR;AAAA,IACF;AAAA,IAEF,OAAAD;AAAA,IACA,IAAI,EAAE,CAAC,IAAIM,EAAkB,IAAI,EAAE,GAAGC,EAAkB;AAAA,EAAA;AAC1D,CAEH;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwitchButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/selection-buttons/switch-button/SwitchButton.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"SwitchButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/selection-buttons/switch-button/SwitchButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,WAAW,IAAI,oBAAoB,EAEzC,MAAM,eAAe,CAAC;AACvB,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAG7C,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB;IAChE;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;GAQG;AAEH,eAAO,MAAM,eAAe,4DAA8B,oBAAoB,KAAG,SAAS,CA+BxF,CAAC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { FormControlLabel as i, Switch as
|
|
3
|
-
import { memo as
|
|
4
|
-
import { FontNormalSxProps as
|
|
5
|
-
const
|
|
2
|
+
import { FormControlLabel as i, switchClasses as r, typographyClasses as s, Switch as e } from "@mui/material";
|
|
3
|
+
import { memo as p } from "react";
|
|
4
|
+
import { FontNormalSxProps as l } from "../../../../_constants.js";
|
|
5
|
+
const n = p(({ label: t, ...a }) => /* @__PURE__ */ o(
|
|
6
6
|
i,
|
|
7
7
|
{
|
|
8
|
-
control: /* @__PURE__ */ o(
|
|
9
|
-
label:
|
|
8
|
+
control: /* @__PURE__ */ o(e, { ...a }),
|
|
9
|
+
label: t,
|
|
10
10
|
sx: {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
[`.${s.root}`]: l,
|
|
12
|
+
[`.${r.root}`]: {
|
|
13
13
|
color: "var(--color-primary)",
|
|
14
14
|
width: "64px",
|
|
15
15
|
":focus": {
|
|
@@ -20,7 +20,7 @@ const d = a(({ label: r, ...t }) => /* @__PURE__ */ o(
|
|
|
20
20
|
":disabled": {
|
|
21
21
|
color: "var(--color-disabled)"
|
|
22
22
|
},
|
|
23
|
-
|
|
23
|
+
[`.${r.track}`]: {
|
|
24
24
|
height: "22px",
|
|
25
25
|
marginTop: "-4px",
|
|
26
26
|
marginLeft: "-3px",
|
|
@@ -31,6 +31,6 @@ const d = a(({ label: r, ...t }) => /* @__PURE__ */ o(
|
|
|
31
31
|
}
|
|
32
32
|
));
|
|
33
33
|
export {
|
|
34
|
-
|
|
34
|
+
n as AoaSwitchButton
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=SwitchButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwitchButton.js","sources":["../../../../../src/components/atoms/selection-buttons/switch-button/SwitchButton.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"SwitchButton.js","sources":["../../../../../src/components/atoms/selection-buttons/switch-button/SwitchButton.tsx"],"sourcesContent":["import {\n FormControlLabel as MUIFormControlLabel,\n Switch as MUISwitchButton,\n typographyClasses,\n type SwitchProps as MUISwitchButtonProps,\n switchClasses\n} from '@mui/material';\nimport { memo, type ReactNode } from 'react';\nimport { FontNormalSxProps } from '../../../../_constants';\n\nexport interface AoaSwitchButtonProps extends MUISwitchButtonProps {\n /**\n * Whether this switch button is checked\n */\n readonly checked: boolean;\n /**\n * Data-qa tag for E2E test purposes\n */\n readonly 'data-qa'?: string;\n /**\n * The label that is shown after the switch button\n */\n readonly label: string;\n}\n\n/**\n * Constructs a switch button using pre-defined Rijks styling\n *\n * @param props - Props to pass to the switch button\n * @example\n * ```jsx\n * <AoaSwitchButton label=\"Demo switch button\" checked={true} onChange={handleChange} />} />\n * ```\n */\n\nexport const AoaSwitchButton = memo(({ label, ...props }: AoaSwitchButtonProps): ReactNode => {\n return (\n <MUIFormControlLabel\n control={<MUISwitchButton {...props} />}\n label={label}\n sx={{\n [`.${typographyClasses.root}`]: FontNormalSxProps,\n [`.${switchClasses.root}`]: {\n color: 'var(--color-primary)',\n width: '64px',\n\n ':focus': {\n outline: '2px dashed var(--color-text)',\n outlineOffset: '-9px',\n borderRadius: 0\n },\n\n ':disabled': {\n color: 'var(--color-disabled)'\n },\n\n [`.${switchClasses.track}`]: {\n height: '22px',\n marginTop: '-4px',\n marginLeft: '-3px',\n borderRadius: '11px'\n }\n }\n }}\n />\n );\n});\n"],"names":["AoaSwitchButton","memo","label","props","jsx","MUIFormControlLabel","MUISwitchButton","typographyClasses","FontNormalSxProps","switchClasses"],"mappings":";;;;AAmCO,MAAMA,IAAkBC,EAAK,CAAC,EAAE,OAAAC,GAAO,GAAGC,QAE7C,gBAAAC;AAAA,EAACC;AAAAA,EAAA;AAAA,IACC,SAAS,gBAAAD,EAACE,GAAiB,EAAA,GAAGH,EAAO,CAAA;AAAA,IACrC,OAAAD;AAAA,IACA,IAAI;AAAA,MACF,CAAC,IAAIK,EAAkB,IAAI,EAAE,GAAGC;AAAA,MAChC,CAAC,IAAIC,EAAc,IAAI,EAAE,GAAG;AAAA,QAC1B,OAAO;AAAA,QACP,OAAO;AAAA,QAEP,UAAU;AAAA,UACR,SAAS;AAAA,UACT,eAAe;AAAA,UACf,cAAc;AAAA,QAChB;AAAA,QAEA,aAAa;AAAA,UACX,OAAO;AAAA,QACT;AAAA,QAEA,CAAC,IAAIA,EAAc,KAAK,EAAE,GAAG;AAAA,UAC3B,QAAQ;AAAA,UACR,WAAW;AAAA,UACX,YAAY;AAAA,UACZ,cAAc;AAAA,QAAA;AAAA,MAChB;AAAA,IACF;AAAA,EACF;AACF,CAEH;"}
|
|
@@ -35,7 +35,7 @@ type ModeProps =
|
|
|
35
35
|
*/
|
|
36
36
|
{
|
|
37
37
|
getData?: never;
|
|
38
|
-
mode:
|
|
38
|
+
mode: 'client';
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
41
|
* The Redux action that takes PaginationModel as parameter to retrieve data from the server
|
|
@@ -60,17 +60,17 @@ export type AoaTableProps<T extends object = any> = ModeProps & {
|
|
|
60
60
|
/**
|
|
61
61
|
* Data-qa tag for E2E test purposes
|
|
62
62
|
*/
|
|
63
|
-
readonly
|
|
63
|
+
readonly 'data-qa'?: string;
|
|
64
64
|
/**
|
|
65
65
|
* Overwrite a safe selection of the {@link DataGrid} properties
|
|
66
66
|
*/
|
|
67
|
-
readonly dataGridOverridableProps?: Pick<DataGridProps<T>,
|
|
67
|
+
readonly dataGridOverridableProps?: Pick<DataGridProps<T>, 'checkboxSelection' | 'getRowId' | 'ignoreDiacritics' | 'isRowSelectable' | 'loading' | 'onRowSelectionModelChange' | 'rowSelectionModel'>;
|
|
68
68
|
/**
|
|
69
69
|
* Sets the initial sortModel in case the required sorting differs from the back-end's default sorting
|
|
70
70
|
*/
|
|
71
71
|
readonly initialSort?: {
|
|
72
72
|
field: string;
|
|
73
|
-
sort:
|
|
73
|
+
sort: 'asc' | 'desc';
|
|
74
74
|
};
|
|
75
75
|
/**
|
|
76
76
|
* Overwrites the default labels when you need a different language than Dutch
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA0C,KAAK,OAAO,EAAE,MAAM,eAAe,CAAC;AACrF,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,aAAa,EACnB,MAAM,kBAAkB,CAAC;AAM1B,MAAM,WAAW,YAAY,CAAC,CAAC,SAAS,MAAM,GAAG,GAAG;IAClD;;OAEG;IACH,KAAK,EAAE,CAAC,EAAE,CAAC;IACX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,MAAM,GAAG,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;AAEtE,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,WAAW,EAAE,eAAe,CAAC;IAC7B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,EAAE,aAAa,CAAC;CAC1B;AAED,KAAK,SAAS;AACZ;;GAEG;AACD;IAAE,OAAO,CAAC,EAAE,KAAK,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE;AACrC;;GAEG;GACD;IAAE,OAAO,CAAC,YAAY,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAAC,IAAI,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAExF,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,MAAM,GAAG,GAAG,IAAI,SAAS,GAAG;IAC9D;;OAEG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC;IACvC;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;IAClC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,wBAAwB,CAAC,EAAE,IAAI,CACtC,aAAa,CAAC,CAAC,CAAC,EACd,mBAAmB,GACnB,UAAU,GACV,kBAAkB,GAClB,iBAAiB,GACjB,SAAS,GACT,2BAA2B,GAC3B,mBAAmB,CACtB,CAAC;IACF;;OAEG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,KAAK,GAAG,MAAM,CAAA;KAAE,CAAC;IAC/D;;OAEG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,cAAc,GAAG;QAAE,YAAY,EAAE,MAAM,CAAA;KAAE,CAAC;IAChE;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAOF;;;;;;;;;;;;GAYG;AAEH,iBAAS,kBAAkB,CAAC,CAAC,SAAS,MAAM,GAAG,GAAG,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,2CAmM1E;AAED,eAAO,MAAM,QAAQ,EAA+B,OAAO,kBAAkB,CAAC"}
|