@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,139 +1,141 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { ChevronRight as
|
|
3
|
-
import { Button as
|
|
4
|
-
import { m as
|
|
5
|
-
import { memo as
|
|
6
|
-
import { FontNormalSxProps as
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
color: "var(--color-text-light)",
|
|
25
|
-
cursor: "pointer",
|
|
26
|
-
display: "inline-flex",
|
|
27
|
-
lineHeight: "var(--font-lineheight-text)",
|
|
28
|
-
minHeight: 20,
|
|
29
|
-
padding: "12px 16px",
|
|
30
|
-
position: "relative",
|
|
31
|
-
textDecoration: "none",
|
|
32
|
-
textShadow: "none",
|
|
33
|
-
textTransform: "none",
|
|
34
|
-
verticalAlign: "middle",
|
|
35
|
-
":focus": {
|
|
36
|
-
outline: "2px dashed var(--color-text)",
|
|
37
|
-
outlineOffset: "3px",
|
|
38
|
-
boxShadow: "none"
|
|
39
|
-
},
|
|
40
|
-
// Styles that apply to contained (type === primary)
|
|
41
|
-
"&.MuiButton-contained": {
|
|
42
|
-
"&.MuiButton-colorPrimary": {
|
|
43
|
-
backgroundColor: "var(--color-primary)",
|
|
44
|
-
borderColor: "var(--color-primary)",
|
|
45
|
-
":hover, :active, :focus": {
|
|
46
|
-
backgroundColor: "var(--color-primary-hover)"
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"&.MuiButton-colorError": {
|
|
50
|
-
backgroundColor: "var(--color-error)",
|
|
51
|
-
borderColor: "var(--color-error)",
|
|
52
|
-
":hover, :active, :focus": {
|
|
53
|
-
backgroundColor: "var(--color-error-hover)"
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"&.Mui-disabled": {
|
|
57
|
-
backgroundColor: "var(--color-disabled)",
|
|
58
|
-
borderColor: "var(--color-disabled)",
|
|
59
|
-
color: "var(--color-text-disabled)"
|
|
60
|
-
},
|
|
61
|
-
":hover, :active, :focus": {
|
|
62
|
-
color: "var(--color-text-light)"
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
// Styles that apply to outlined (type === secondary)
|
|
66
|
-
"&.MuiButton-outlined": {
|
|
67
|
-
background: "none",
|
|
68
|
-
border: "1px solid var(--color-primary)",
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { ChevronRight as d } from "@mui/icons-material";
|
|
3
|
+
import { Button as v, buttonClasses as r } from "@mui/material";
|
|
4
|
+
import { m as b } from "../../../chunks/index.DJYQ_-zP.js";
|
|
5
|
+
import { memo as s } from "react";
|
|
6
|
+
import { FontNormalSxProps as m } from "../../../_constants.js";
|
|
7
|
+
const C = s(
|
|
8
|
+
({ type: o, startIcon: t, "data-qa": i, children: c, buttonType: n, ...a }) => {
|
|
9
|
+
let e = "contained";
|
|
10
|
+
return o === "text" && (e = "text"), o === "secondary" && (e = "outlined"), /* @__PURE__ */ l(
|
|
11
|
+
v,
|
|
12
|
+
{
|
|
13
|
+
...a,
|
|
14
|
+
"data-qa": i,
|
|
15
|
+
disableElevation: !0,
|
|
16
|
+
endIcon: o === "text" && /* @__PURE__ */ l(d, {}),
|
|
17
|
+
startIcon: o !== "text" && t,
|
|
18
|
+
sx: b(
|
|
19
|
+
{
|
|
20
|
+
// Styles that apply to all button types and colors
|
|
21
|
+
appearance: "none",
|
|
22
|
+
border: "1px solid",
|
|
23
|
+
borderRadius: 0,
|
|
69
24
|
boxSizing: "border-box",
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
25
|
+
color: "var(--color-text-light)",
|
|
26
|
+
cursor: "pointer",
|
|
27
|
+
display: "inline-flex",
|
|
28
|
+
lineHeight: "var(--font-lineheight-text)",
|
|
29
|
+
minHeight: 20,
|
|
30
|
+
padding: "12px 16px",
|
|
31
|
+
position: "relative",
|
|
32
|
+
textDecoration: "none",
|
|
33
|
+
textShadow: "none",
|
|
34
|
+
textTransform: "none",
|
|
35
|
+
verticalAlign: "middle",
|
|
36
|
+
":focus": {
|
|
37
|
+
outline: "2px dashed var(--color-text)",
|
|
38
|
+
outlineOffset: "3px",
|
|
39
|
+
boxShadow: "none"
|
|
77
40
|
},
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
41
|
+
// Styles that apply to contained (type === primary)
|
|
42
|
+
[`&.${r.contained}`]: {
|
|
43
|
+
[`&.${r.colorPrimary}`]: {
|
|
44
|
+
backgroundColor: "var(--color-primary)",
|
|
45
|
+
borderColor: "var(--color-primary)",
|
|
46
|
+
":hover, :active, :focus": {
|
|
47
|
+
backgroundColor: "var(--color-primary-hover)"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
[`&.${r.colorError}`]: {
|
|
51
|
+
backgroundColor: "var(--color-error)",
|
|
52
|
+
borderColor: "var(--color-error)",
|
|
53
|
+
":hover, :active, :focus": {
|
|
54
|
+
backgroundColor: "var(--color-error-hover)"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
[`&.${r.disabled}`]: {
|
|
58
|
+
backgroundColor: "var(--color-disabled)",
|
|
59
|
+
borderColor: "var(--color-disabled)",
|
|
60
|
+
color: "var(--color-text-disabled)"
|
|
61
|
+
},
|
|
81
62
|
":hover, :active, :focus": {
|
|
82
|
-
|
|
83
|
-
color: "var(--color-error-hover)"
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
":disabled": {
|
|
87
|
-
backgroundColor: "transparent",
|
|
88
|
-
borderColor: "var(--color-text-disabled)",
|
|
89
|
-
color: "var(--color-text-disabled)"
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
// Styles that apply to text (type === text)
|
|
93
|
-
"&.MuiButton-text": {
|
|
94
|
-
background: "none",
|
|
95
|
-
borderColor: "transparent",
|
|
96
|
-
display: "inline-block",
|
|
97
|
-
textTransform: "uppercase",
|
|
98
|
-
fontWeight: "bold",
|
|
99
|
-
fontSize: "1.075rem",
|
|
100
|
-
verticalAlign: "middle",
|
|
101
|
-
"&.MuiButton-colorPrimary": {
|
|
102
|
-
color: "var(--color-primary)",
|
|
103
|
-
":hover": {
|
|
104
|
-
backgroundColor: "var(--color-rijks-skyblue-light)"
|
|
63
|
+
color: "var(--color-text-light)"
|
|
105
64
|
}
|
|
106
65
|
},
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
66
|
+
// Styles that apply to outlined (type === secondary)
|
|
67
|
+
[`&.${r.outlined}`]: {
|
|
68
|
+
background: "none",
|
|
69
|
+
border: "1px solid var(--color-primary)",
|
|
70
|
+
boxSizing: "border-box",
|
|
71
|
+
[`&.${r.colorPrimary}`]: {
|
|
72
|
+
color: "var(--color-primary)",
|
|
73
|
+
borderColor: "var(--color-primary)",
|
|
74
|
+
":hover, :active, :focus": {
|
|
75
|
+
borderColor: "var(--color-primary-hover)",
|
|
76
|
+
color: "var(--color-primary-hover)"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
[`&.${r.colorError}`]: {
|
|
80
|
+
color: "var(--color-error)",
|
|
81
|
+
borderColor: "var(--color-error)",
|
|
82
|
+
":hover, :active, :focus": {
|
|
83
|
+
borderColor: "var(--color-error-hover)",
|
|
84
|
+
color: "var(--color-error-hover)"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
":disabled": {
|
|
88
|
+
backgroundColor: "transparent",
|
|
89
|
+
borderColor: "var(--color-text-disabled)",
|
|
90
|
+
color: "var(--color-text-disabled)"
|
|
111
91
|
}
|
|
112
92
|
},
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
"
|
|
122
|
-
|
|
93
|
+
// Styles that apply to text (type === text)
|
|
94
|
+
[`&.${r.text}`]: {
|
|
95
|
+
background: "none",
|
|
96
|
+
borderColor: "transparent",
|
|
97
|
+
display: "inline-block",
|
|
98
|
+
textTransform: "uppercase",
|
|
99
|
+
fontWeight: "bold",
|
|
100
|
+
fontSize: "1.075rem",
|
|
101
|
+
verticalAlign: "middle",
|
|
102
|
+
[`&.${r.colorPrimary}`]: {
|
|
103
|
+
color: "var(--color-primary)",
|
|
104
|
+
":hover": {
|
|
105
|
+
backgroundColor: "var(--color-rijks-skyblue-light)"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
[`&.${r.colorError}`]: {
|
|
109
|
+
color: "var(--color-error)",
|
|
110
|
+
":hover": {
|
|
111
|
+
backgroundColor: "var(--color-rijks-red-1-light)"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
[`&.${r.endIcon}`]: {
|
|
115
|
+
width: "1rem",
|
|
116
|
+
height: "1rem",
|
|
117
|
+
verticalAlign: "text-top"
|
|
118
|
+
},
|
|
119
|
+
":disabled": {
|
|
120
|
+
backgroundColor: "transparent",
|
|
121
|
+
color: "var(--color-text-disabled)",
|
|
122
|
+
[`&.${r.endIcon}`]: {
|
|
123
|
+
fill: "var(--color-text-disabled)"
|
|
124
|
+
}
|
|
123
125
|
}
|
|
124
126
|
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
127
|
+
},
|
|
128
|
+
a.sx,
|
|
129
|
+
m
|
|
130
|
+
),
|
|
131
|
+
type: n,
|
|
132
|
+
variant: e,
|
|
133
|
+
children: c
|
|
134
|
+
}
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
);
|
|
136
138
|
export {
|
|
137
|
-
|
|
139
|
+
C as AoaButton
|
|
138
140
|
};
|
|
139
141
|
//# sourceMappingURL=Button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sources":["../../../../src/components/atoms/button/Button.tsx"],"sourcesContent":["import { ChevronRight } from
|
|
1
|
+
{"version":3,"file":"Button.js","sources":["../../../../src/components/atoms/button/Button.tsx"],"sourcesContent":["import { ChevronRight } from '@mui/icons-material';\nimport {\n Button as MUIButton,\n buttonClasses,\n type ButtonTypeMap,\n type ButtonProps as MUIButtonProps\n} from '@mui/material';\nimport merge from 'lodash.merge';\nimport { memo, type ButtonHTMLAttributes, type ReactNode } from 'react';\nimport { FontNormalSxProps } from '../../../_constants';\n\ninterface CommonProps {\n /**\n * Data-qa tag for E2E test purposes\n */\n 'data-qa'?: string;\n /**\n * Defines the colour and style of the button\n */\n type: 'primary' | 'secondary' | 'text';\n}\n\nexport type AoaButtonProps = Omit<MUIButtonProps<ButtonTypeMap['defaultComponent'], CommonProps>, 'variant'> & {\n readonly buttonType?: ButtonHTMLAttributes<HTMLButtonElement>['type'];\n};\n\n/**\n * Constructs a button using pre-defined Rijks styling\n *\n * @param props - Props to pass to the button\n * @example\n * ```jsx\n * <AoaButton onClick={() => console.log()} type='primary'>button</AoaButton>\n * ```\n */\n\nexport const AoaButton = memo(\n ({ type, startIcon, 'data-qa': dataQa, children, buttonType, ...props }: AoaButtonProps): ReactNode => {\n let variant: 'contained' | 'outlined' | 'text' = 'contained';\n\n if (type === 'text') {\n variant = 'text';\n }\n\n if (type === 'secondary') {\n variant = 'outlined';\n }\n\n return (\n <MUIButton\n {...props}\n data-qa={dataQa}\n disableElevation\n endIcon={type === 'text' && <ChevronRight />}\n startIcon={type !== 'text' && startIcon}\n sx={merge(\n {\n // Styles that apply to all button types and colors\n appearance: 'none',\n border: '1px solid',\n borderRadius: 0,\n boxSizing: 'border-box',\n color: 'var(--color-text-light)',\n cursor: 'pointer',\n display: 'inline-flex',\n lineHeight: 'var(--font-lineheight-text)',\n minHeight: 20,\n padding: '12px 16px',\n position: 'relative',\n textDecoration: 'none',\n textShadow: 'none',\n textTransform: 'none',\n verticalAlign: 'middle',\n\n ':focus': {\n outline: '2px dashed var(--color-text)',\n outlineOffset: '3px',\n boxShadow: 'none'\n },\n\n // Styles that apply to contained (type === primary)\n [`&.${buttonClasses.contained}`]: {\n [`&.${buttonClasses.colorPrimary}`]: {\n backgroundColor: 'var(--color-primary)',\n borderColor: 'var(--color-primary)',\n\n ':hover, :active, :focus': {\n backgroundColor: 'var(--color-primary-hover)'\n }\n },\n\n [`&.${buttonClasses.colorError}`]: {\n backgroundColor: 'var(--color-error)',\n borderColor: 'var(--color-error)',\n\n ':hover, :active, :focus': {\n backgroundColor: 'var(--color-error-hover)'\n }\n },\n\n [`&.${buttonClasses.disabled}`]: {\n backgroundColor: 'var(--color-disabled)',\n borderColor: 'var(--color-disabled)',\n color: 'var(--color-text-disabled)'\n },\n\n ':hover, :active, :focus': {\n color: 'var(--color-text-light)'\n }\n },\n\n // Styles that apply to outlined (type === secondary)\n [`&.${buttonClasses.outlined}`]: {\n background: 'none',\n border: '1px solid var(--color-primary)',\n boxSizing: 'border-box',\n\n [`&.${buttonClasses.colorPrimary}`]: {\n color: 'var(--color-primary)',\n borderColor: 'var(--color-primary)',\n\n ':hover, :active, :focus': {\n borderColor: 'var(--color-primary-hover)',\n color: 'var(--color-primary-hover)'\n }\n },\n\n [`&.${buttonClasses.colorError}`]: {\n color: 'var(--color-error)',\n borderColor: 'var(--color-error)',\n\n ':hover, :active, :focus': {\n borderColor: 'var(--color-error-hover)',\n color: 'var(--color-error-hover)'\n }\n },\n\n ':disabled': {\n backgroundColor: 'transparent',\n borderColor: 'var(--color-text-disabled)',\n color: 'var(--color-text-disabled)'\n }\n },\n\n // Styles that apply to text (type === text)\n [`&.${buttonClasses.text}`]: {\n background: 'none',\n borderColor: 'transparent',\n display: 'inline-block',\n textTransform: 'uppercase',\n fontWeight: 'bold',\n fontSize: '1.075rem',\n verticalAlign: 'middle',\n\n [`&.${buttonClasses.colorPrimary}`]: {\n color: 'var(--color-primary)',\n\n ':hover': {\n backgroundColor: 'var(--color-rijks-skyblue-light)'\n }\n },\n\n [`&.${buttonClasses.colorError}`]: {\n color: 'var(--color-error)',\n\n ':hover': {\n backgroundColor: 'var(--color-rijks-red-1-light)'\n }\n },\n\n [`&.${buttonClasses.endIcon}`]: {\n width: '1rem',\n height: '1rem',\n verticalAlign: 'text-top'\n },\n\n ':disabled': {\n backgroundColor: 'transparent',\n color: 'var(--color-text-disabled)',\n\n [`&.${buttonClasses.endIcon}`]: {\n fill: 'var(--color-text-disabled)'\n }\n }\n }\n },\n props.sx,\n FontNormalSxProps\n )}\n type={buttonType}\n variant={variant}\n >\n {children}\n </MUIButton>\n );\n }\n);\n"],"names":["AoaButton","memo","type","startIcon","dataQa","children","buttonType","props","variant","jsx","MUIButton","ChevronRight","merge","buttonClasses","FontNormalSxProps"],"mappings":";;;;;;AAoCO,MAAMA,IAAYC;AAAA,EACvB,CAAC,EAAE,MAAAC,GAAM,WAAAC,GAAW,WAAWC,GAAQ,UAAAC,GAAU,YAAAC,GAAY,GAAGC,QAAuC;AACrG,QAAIC,IAA6C;AAEjD,WAAIN,MAAS,WACDM,IAAA,SAGRN,MAAS,gBACDM,IAAA,aAIV,gBAAAC;AAAA,MAACC;AAAAA,MAAA;AAAA,QACE,GAAGH;AAAA,QACJ,WAASH;AAAA,QACT,kBAAgB;AAAA,QAChB,SAASF,MAAS,UAAU,gBAAAO,EAACE,GAAa,CAAA,CAAA;AAAA,QAC1C,WAAWT,MAAS,UAAUC;AAAA,QAC9B,IAAIS;AAAA,UACF;AAAA;AAAA,YAEE,YAAY;AAAA,YACZ,QAAQ;AAAA,YACR,cAAc;AAAA,YACd,WAAW;AAAA,YACX,OAAO;AAAA,YACP,QAAQ;AAAA,YACR,SAAS;AAAA,YACT,YAAY;AAAA,YACZ,WAAW;AAAA,YACX,SAAS;AAAA,YACT,UAAU;AAAA,YACV,gBAAgB;AAAA,YAChB,YAAY;AAAA,YACZ,eAAe;AAAA,YACf,eAAe;AAAA,YAEf,UAAU;AAAA,cACR,SAAS;AAAA,cACT,eAAe;AAAA,cACf,WAAW;AAAA,YACb;AAAA;AAAA,YAGA,CAAC,KAAKC,EAAc,SAAS,EAAE,GAAG;AAAA,cAChC,CAAC,KAAKA,EAAc,YA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MAAM,CAAC;IACvB;;OAEG;IACH,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAC3C;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;;;;;;GAQG;AAEH,eAAO,MAAM,aAAa,8CAAgB,kBAAkB,KAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/icon-button/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwC,KAAK,OAAO,EAAE,MAAM,eAAe,CAAC;AAEnF,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7C,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IAC3C;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;;;;;;GAQG;AAEH,eAAO,MAAM,aAAa,8CAAgB,kBAAkB,KAAG,SAAS,CAqDtE,CAAC"}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { IconButton as a, Tooltip as l } from "@mui/material";
|
|
3
3
|
import { m as i } from "../../../chunks/index.DJYQ_-zP.js";
|
|
4
|
-
import { memo as
|
|
5
|
-
const
|
|
4
|
+
import { memo as t } from "react";
|
|
5
|
+
const s = t((o) => {
|
|
6
6
|
const e = /* @__PURE__ */ r(
|
|
7
7
|
a,
|
|
8
8
|
{
|
|
9
|
+
"aria-label": o.label,
|
|
9
10
|
"data-qa": o["data-qa"],
|
|
10
11
|
disableFocusRipple: !0,
|
|
11
12
|
disableRipple: !0,
|
|
12
13
|
disableTouchRipple: !0,
|
|
13
14
|
disabled: o.disabled,
|
|
14
15
|
onClick: o.onClick,
|
|
16
|
+
role: "button",
|
|
15
17
|
sx: i(
|
|
16
18
|
{
|
|
17
19
|
color: "var(--color-primary)",
|
|
@@ -41,9 +43,9 @@ const b = d((o) => {
|
|
|
41
43
|
children: o.icon
|
|
42
44
|
}
|
|
43
45
|
);
|
|
44
|
-
return /* @__PURE__ */ r(l, { title: o.label, children: o.disabled ? /* @__PURE__ */ r("span", { "data-testid": "disabled-span-wrapper", children: e }) : e });
|
|
46
|
+
return /* @__PURE__ */ r(l, { title: o.label, children: o.disabled ? /* @__PURE__ */ r("span", { "aria-label": o.label, "data-testid": "disabled-span-wrapper", role: "tooltip", children: e }) : e });
|
|
45
47
|
});
|
|
46
48
|
export {
|
|
47
|
-
|
|
49
|
+
s as AoaIconButton
|
|
48
50
|
};
|
|
49
51
|
//# sourceMappingURL=IconButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.js","sources":["../../../../src/components/atoms/icon-button/IconButton.tsx"],"sourcesContent":["import { IconButton as MUIIconButton, Tooltip, type SxProps } from
|
|
1
|
+
{"version":3,"file":"IconButton.js","sources":["../../../../src/components/atoms/icon-button/IconButton.tsx"],"sourcesContent":["import { IconButton as MUIIconButton, Tooltip, type SxProps } from '@mui/material';\nimport merge from 'lodash.merge';\nimport { memo, type ReactNode } from 'react';\n\nexport interface AoaIconButtonProps {\n /**\n * Data-qa tag for E2E test purposes\n */\n readonly 'data-qa'?: string;\n /**\n * Whether this button should be disabled\n */\n readonly disabled?: boolean;\n /**\n * The icon to be displayed as a button\n */\n readonly icon: JSX.Element;\n /**\n * Whether this button is being used inline\n */\n readonly inline?: boolean;\n /**\n * The label that is shown on hover\n */\n readonly label: string;\n /**\n * The action that should be triggered when clicking the button\n */\n onClick(this: void, ..._args: any[]): void;\n /**\n * Material UI's property to apply styling\n */\n readonly sx?: SxProps;\n}\n\n/**\n * Constructs an icon button using pre-defined Rijks styling\n *\n * @param props - Props to pass to the icon button\n * @example\n * ```jsx\n * <AoaIconButton onClick={() => console.log()} label='Order a burger' icon={<Fastfood />} />\n * ```\n */\n\nexport const AoaIconButton = memo((props: AoaIconButtonProps): ReactNode => {\n const Button = (\n <MUIIconButton\n aria-label={props.label}\n data-qa={props['data-qa']}\n disableFocusRipple\n disableRipple\n disableTouchRipple\n disabled={props.disabled}\n onClick={props.onClick}\n role='button'\n sx={merge(\n {\n color: 'var(--color-primary)',\n border: '1px solid var(--color-primary)',\n borderRadius: 0,\n ':hover, :active, :focus': {\n color: 'var(--color-primary-hover)',\n borderColor: 'var(--color-primary-hover)'\n },\n ':disabled': {\n backgroundColor: 'transparent',\n borderColor: 'var(--color-text-disabled)',\n color: 'var(--color-text-disabled)'\n },\n ':focus': {\n outline: '2px dashed var(--color-text)',\n outlineOffset: 3,\n boxShadow: 'none'\n },\n ...(props.inline && {\n border: 'none',\n padding: 0\n })\n },\n props.sx\n )}\n >\n {props.icon}\n </MUIIconButton>\n );\n\n return (\n <Tooltip title={props.label}>\n {props.disabled ? (\n <span aria-label={props.label} data-testid='disabled-span-wrapper' role='tooltip'>\n {Button}\n </span>\n ) : (\n Button\n )}\n </Tooltip>\n );\n});\n"],"names":["AoaIconButton","memo","props","Button","jsx","MUIIconButton","merge","Tooltip"],"mappings":";;;;AA6Ca,MAAAA,IAAgBC,EAAK,CAACC,MAAyC;AAC1E,QAAMC,IACJ,gBAAAC;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,cAAYH,EAAM;AAAA,MAClB,WAASA,EAAM,SAAS;AAAA,MACxB,oBAAkB;AAAA,MAClB,eAAa;AAAA,MACb,oBAAkB;AAAA,MAClB,UAAUA,EAAM;AAAA,MAChB,SAASA,EAAM;AAAA,MACf,MAAK;AAAA,MACL,IAAII;AAAA,QACF;AAAA,UACE,OAAO;AAAA,UACP,QAAQ;AAAA,UACR,cAAc;AAAA,UACd,2BAA2B;AAAA,YACzB,OAAO;AAAA,YACP,aAAa;AAAA,UACf;AAAA,UACA,aAAa;AAAA,YACX,iBAAiB;AAAA,YACjB,aAAa;AAAA,YACb,OAAO;AAAA,UACT;AAAA,UACA,UAAU;AAAA,YACR,SAAS;AAAA,YACT,eAAe;AAAA,YACf,WAAW;AAAA,UACb;AAAA,UACA,GAAIJ,EAAM,UAAU;AAAA,YAClB,QAAQ;AAAA,YACR,SAAS;AAAA,UAAA;AAAA,QAEb;AAAA,QACAA,EAAM;AAAA,MACR;AAAA,MAEC,UAAMA,EAAA;AAAA,IAAA;AAAA,EACT;AAGF,2BACGK,GAAQ,EAAA,OAAOL,EAAM,OACnB,UAAAA,EAAM,WACJ,gBAAAE,EAAA,QAAA,EAAK,cAAYF,EAAM,OAAO,eAAY,yBAAwB,MAAK,WACrE,UAAAC,GACH,IAEAA,EAEJ,CAAA;AAEJ,CAAC;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { TextFieldProps } from '@mui/material';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
export interface AoaInputProps extends Omit<TextFieldProps,
|
|
3
|
+
export interface AoaInputProps extends Omit<TextFieldProps, 'variant'> {
|
|
4
4
|
/**
|
|
5
5
|
* Data-qa tag for E2E test purposes
|
|
6
6
|
*/
|
|
7
|
-
readonly
|
|
7
|
+
readonly 'data-qa'?: string;
|
|
8
8
|
/**
|
|
9
9
|
* Whether this input field is optional
|
|
10
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EAIpB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAG7C,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC;IACpE;;OAEG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,QAAQ,+DAAiC,aAAa,KAAG,SAAS,CAkE7E,CAAC"}
|
|
@@ -1,63 +1,68 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { TextField as
|
|
3
|
-
import { m as
|
|
4
|
-
import { memo as
|
|
5
|
-
import { FontNormalSxProps as
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
{
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { TextField as s, inputLabelClasses as n, formHelperTextClasses as o, inputBaseClasses as e } from "@mui/material";
|
|
3
|
+
import { m as d } from "../../../chunks/index.DJYQ_-zP.js";
|
|
4
|
+
import { memo as p } from "react";
|
|
5
|
+
import { FontNormalSxProps as t } from "../../../_constants.js";
|
|
6
|
+
const u = p(({ optional: a, ...r }) => {
|
|
7
|
+
var l;
|
|
8
|
+
return /* @__PURE__ */ i(
|
|
9
|
+
s,
|
|
10
|
+
{
|
|
11
|
+
...r,
|
|
12
|
+
required: !a,
|
|
13
|
+
slotProps: {
|
|
14
|
+
inputLabel: { shrink: !1, ...(l = r.slotProps) == null ? void 0 : l.inputLabel }
|
|
15
|
+
},
|
|
16
|
+
sx: d(
|
|
17
|
+
{
|
|
18
|
+
[`.${e.root}`]: {
|
|
19
|
+
...t,
|
|
20
|
+
marginTop: "35px",
|
|
21
|
+
[`&.${e.multiline}`]: {
|
|
22
|
+
padding: 0
|
|
23
|
+
},
|
|
24
|
+
[`:not(.${o.error})::after`]: {
|
|
25
|
+
borderColor: "var(--color-rijks-skyblue)"
|
|
26
|
+
},
|
|
27
|
+
[`.${e.input}`]: {
|
|
28
|
+
padding: "17px 12px 16px",
|
|
29
|
+
":disabled": {
|
|
30
|
+
backgroundColor: "var(--color-disabled)",
|
|
31
|
+
borderColor: "var(--color-disabled)"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
22
34
|
},
|
|
23
|
-
|
|
24
|
-
|
|
35
|
+
[`.${n.root}`]: {
|
|
36
|
+
...t,
|
|
37
|
+
marginLeft: "-14px",
|
|
38
|
+
marginTop: "-10px",
|
|
25
39
|
":disabled": {
|
|
26
|
-
|
|
27
|
-
|
|
40
|
+
color: "var(--color-text-disabled)"
|
|
41
|
+
},
|
|
42
|
+
[`:focus:not(.${o.error})`]: {
|
|
43
|
+
color: "var(--color-rijks-skyblue)"
|
|
44
|
+
},
|
|
45
|
+
[`:not(.${o.required})::after`]: {
|
|
46
|
+
content: '"(optioneel)"',
|
|
47
|
+
marginLeft: "5px",
|
|
48
|
+
fontSize: "calc(var(--font-size-text) * 0.75)"
|
|
49
|
+
},
|
|
50
|
+
[`&.${o.error}`]: {
|
|
51
|
+
...t,
|
|
52
|
+
fontWeight: "bold"
|
|
53
|
+
},
|
|
54
|
+
[`&.${o.disabled}`]: {
|
|
55
|
+
color: "var(--color-text-disabled)"
|
|
28
56
|
}
|
|
29
57
|
}
|
|
30
58
|
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
},
|
|
38
|
-
":focus:not(.Mui-error)": {
|
|
39
|
-
color: "var(--color-rijks-skyblue)"
|
|
40
|
-
},
|
|
41
|
-
":not(.Mui-required)::after": {
|
|
42
|
-
content: '"(optioneel)"',
|
|
43
|
-
marginLeft: "5px",
|
|
44
|
-
fontSize: "calc(var(--font-size-text) * 0.75)"
|
|
45
|
-
},
|
|
46
|
-
"&.Mui-error": {
|
|
47
|
-
...r,
|
|
48
|
-
fontWeight: "bold"
|
|
49
|
-
},
|
|
50
|
-
"&.Mui-disabled": {
|
|
51
|
-
color: "var(--color-text-disabled)"
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
o.sx
|
|
56
|
-
),
|
|
57
|
-
variant: "outlined"
|
|
58
|
-
}
|
|
59
|
-
));
|
|
59
|
+
r.sx
|
|
60
|
+
),
|
|
61
|
+
variant: "outlined"
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
});
|
|
60
65
|
export {
|
|
61
|
-
|
|
66
|
+
u as AoaInput
|
|
62
67
|
};
|
|
63
68
|
//# sourceMappingURL=Input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.js","sources":["../../../../src/components/atoms/input/Input.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"Input.js","sources":["../../../../src/components/atoms/input/Input.tsx"],"sourcesContent":["import {\n TextField,\n type TextFieldProps,\n inputBaseClasses,\n inputLabelClasses,\n formHelperTextClasses\n} from '@mui/material';\nimport merge from 'lodash.merge';\nimport { memo, type ReactNode } from 'react';\nimport { FontNormalSxProps } from '../../../_constants';\n\nexport interface AoaInputProps extends Omit<TextFieldProps, 'variant'> {\n /**\n * Data-qa tag for E2E test purposes\n */\n readonly 'data-qa'?: string;\n /**\n * Whether this input field is optional\n */\n readonly optional?: boolean;\n}\n\n/**\n * Constructs an input field using pre-defined Rijks styling\n *\n * @param props - Props to pass to the input field\n * @example\n * ```jsx\n * <AoaInput label=\"User name\" value={value} onChange={() => handleOnChange} />\n * ```\n */\nexport const AoaInput = memo(({ optional, ...props }: AoaInputProps): ReactNode => {\n return (\n <TextField\n {...props}\n required={!optional}\n slotProps={{\n inputLabel: { shrink: false, ...props.slotProps?.inputLabel }\n }}\n sx={merge(\n {\n [`.${inputBaseClasses.root}`]: {\n ...FontNormalSxProps,\n marginTop: '35px',\n\n [`&.${inputBaseClasses.multiline}`]: {\n padding: 0\n },\n\n [`:not(.${formHelperTextClasses.error})::after`]: {\n borderColor: 'var(--color-rijks-skyblue)'\n },\n\n [`.${inputBaseClasses.input}`]: {\n padding: '17px 12px 16px',\n\n ':disabled': {\n backgroundColor: 'var(--color-disabled)',\n borderColor: 'var(--color-disabled)'\n }\n }\n },\n\n [`.${inputLabelClasses.root}`]: {\n ...FontNormalSxProps,\n marginLeft: '-14px',\n marginTop: '-10px',\n\n ':disabled': {\n color: 'var(--color-text-disabled)'\n },\n\n [`:focus:not(.${formHelperTextClasses.error})`]: {\n color: 'var(--color-rijks-skyblue)'\n },\n\n [`:not(.${formHelperTextClasses.required})::after`]: {\n content: '\"(optioneel)\"',\n marginLeft: '5px',\n fontSize: 'calc(var(--font-size-text) * 0.75)'\n },\n\n [`&.${formHelperTextClasses.error}`]: {\n ...FontNormalSxProps,\n fontWeight: 'bold'\n },\n\n [`&.${formHelperTextClasses.disabled}`]: {\n color: 'var(--color-text-disabled)'\n }\n }\n },\n props.sx\n )}\n variant='outlined'\n />\n );\n});\n"],"names":["AoaInput","memo","optional","props","jsx","TextField","_a","merge","inputBaseClasses","FontNormalSxProps","formHelperTextClasses","inputLabelClasses"],"mappings":";;;;;AA+BO,MAAMA,IAAWC,EAAK,CAAC,EAAE,UAAAC,GAAU,GAAGC,QAAsC;;AAE/E,SAAA,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACE,GAAGF;AAAA,MACJ,UAAU,CAACD;AAAA,MACX,WAAW;AAAA,QACT,YAAY,EAAE,QAA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actNode } from 'react';
|
|
3
|
-
export interface AoaLogoProps extends BoxProps<ElementType<any,
|
|
3
|
+
export interface AoaLogoProps extends BoxProps<ElementType<any, 'svg'>> {
|
|
4
4
|
/**
|
|
5
5
|
* Data-qa tag to apply to the search bar and input element
|
|
6
6
|
*/
|
|
7
|
-
readonly
|
|
7
|
+
readonly 'data-qa'?: string;
|
|
8
8
|
/**
|
|
9
9
|
* Any additional CSSProperties to pass to the component
|
|
10
10
|
*/
|