@okta/odyssey-react-mui 0.14.6 → 0.15.1

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 (97) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/components/Icon/Add.js.map +1 -1
  3. package/dist/components/Icon/AddCircle.js.map +1 -1
  4. package/dist/components/Icon/AlertCircle.js.map +1 -1
  5. package/dist/components/Icon/AlertCircleFilled.js.map +1 -1
  6. package/dist/components/Icon/AlertTriangleFilled.js.map +1 -1
  7. package/dist/components/Icon/Anchor.js.map +1 -1
  8. package/dist/components/Icon/ArrowDown.js.map +1 -1
  9. package/dist/components/Icon/ArrowLeft.js.map +1 -1
  10. package/dist/components/Icon/ArrowRight.js.map +1 -1
  11. package/dist/components/Icon/ArrowUp.js.map +1 -1
  12. package/dist/components/Icon/ArrowUpDown.d.ts +16 -0
  13. package/dist/components/Icon/ArrowUpDown.d.ts.map +1 -0
  14. package/dist/components/Icon/ArrowUpDown.js +34 -0
  15. package/dist/components/Icon/ArrowUpDown.js.map +1 -0
  16. package/dist/components/Icon/Calendar.js.map +1 -1
  17. package/dist/components/Icon/Check.js.map +1 -1
  18. package/dist/components/Icon/CheckCircleFilled.js.map +1 -1
  19. package/dist/components/Icon/ChevronDown.js.map +1 -1
  20. package/dist/components/Icon/ChevronUp.js.map +1 -1
  21. package/dist/components/Icon/Close.js.map +1 -1
  22. package/dist/components/Icon/CloseCircleFilled.js.map +1 -1
  23. package/dist/components/Icon/Copy.js.map +1 -1
  24. package/dist/components/Icon/Delete.js.map +1 -1
  25. package/dist/components/Icon/Download.js.map +1 -1
  26. package/dist/components/Icon/DragHandle.js.map +1 -1
  27. package/dist/components/Icon/Edit.js.map +1 -1
  28. package/dist/components/Icon/ExternalLink.js.map +1 -1
  29. package/dist/components/Icon/Eye.js.map +1 -1
  30. package/dist/components/Icon/EyeOff.js.map +1 -1
  31. package/dist/components/Icon/Filter.js.map +1 -1
  32. package/dist/components/Icon/Globe.js.map +1 -1
  33. package/dist/components/Icon/Home.js.map +1 -1
  34. package/dist/components/Icon/Icon.js +6 -5
  35. package/dist/components/Icon/Icon.js.map +1 -1
  36. package/dist/components/Icon/InformationCircle.js.map +1 -1
  37. package/dist/components/Icon/InformationCircleFilled.js.map +1 -1
  38. package/dist/components/Icon/Notification.js.map +1 -1
  39. package/dist/components/Icon/OverflowVertical.js.map +1 -1
  40. package/dist/components/Icon/QuestionCircle.js.map +1 -1
  41. package/dist/components/Icon/QuestionCircleFilled.js.map +1 -1
  42. package/dist/components/Icon/Search.js.map +1 -1
  43. package/dist/components/Icon/Settings.js.map +1 -1
  44. package/dist/components/Icon/Subtract.js.map +1 -1
  45. package/dist/components/Icon/SvgIcon.js.map +1 -1
  46. package/dist/components/Icon/User.js.map +1 -1
  47. package/dist/components/Icon/UserGroup.d.ts +16 -0
  48. package/dist/components/Icon/UserGroup.d.ts.map +1 -0
  49. package/dist/components/Icon/UserGroup.js +34 -0
  50. package/dist/components/Icon/UserGroup.js.map +1 -0
  51. package/dist/components/Icon/index.d.ts +4 -0
  52. package/dist/components/Icon/index.d.ts.map +1 -1
  53. package/dist/components/Icon/index.js +6 -0
  54. package/dist/components/Icon/index.js.map +1 -1
  55. package/dist/components/Icon/types.js.map +1 -1
  56. package/dist/components/Link/Link.js.map +1 -1
  57. package/dist/components/Link/index.js.map +1 -1
  58. package/dist/components/PasswordInput/PasswordInput.js +1 -3
  59. package/dist/components/PasswordInput/PasswordInput.js.map +1 -1
  60. package/dist/components/PasswordInput/index.js.map +1 -1
  61. package/dist/components/index.js.map +1 -1
  62. package/dist/index.js.map +1 -1
  63. package/dist/themes/index.js.map +1 -1
  64. package/dist/themes/odyssey/components.d.ts.map +1 -1
  65. package/dist/themes/odyssey/components.js +987 -577
  66. package/dist/themes/odyssey/components.js.map +1 -1
  67. package/dist/themes/odyssey/components.types.d.ts +10 -1
  68. package/dist/themes/odyssey/components.types.d.ts.map +1 -1
  69. package/dist/themes/odyssey/components.types.js.map +1 -1
  70. package/dist/themes/odyssey/index.js.map +1 -1
  71. package/dist/themes/odyssey/mixins.js.map +1 -1
  72. package/dist/themes/odyssey/mixins.types.js.map +1 -1
  73. package/dist/themes/odyssey/palette.js.map +1 -1
  74. package/dist/themes/odyssey/palette.types.js.map +1 -1
  75. package/dist/themes/odyssey/shape.js.map +1 -1
  76. package/dist/themes/odyssey/spacing.js.map +1 -1
  77. package/dist/themes/odyssey/theme.js.map +1 -1
  78. package/dist/themes/odyssey/typography.d.ts.map +1 -1
  79. package/dist/themes/odyssey/typography.js +14 -9
  80. package/dist/themes/odyssey/typography.js.map +1 -1
  81. package/dist/themes/odyssey/typography.types.d.ts +9 -5
  82. package/dist/themes/odyssey/typography.types.d.ts.map +1 -1
  83. package/dist/themes/odyssey/typography.types.js +11 -0
  84. package/dist/themes/odyssey/typography.types.js.map +1 -1
  85. package/dist/utils/index.js.map +1 -1
  86. package/dist/utils/oid.d.ts +1 -1
  87. package/dist/utils/oid.d.ts.map +1 -1
  88. package/dist/utils/oid.js.map +1 -1
  89. package/jest.config.cjs +1 -0
  90. package/package.json +4 -4
  91. package/src/components/Icon/ArrowUpDown.tsx +44 -0
  92. package/src/components/Icon/UserGroup.tsx +44 -0
  93. package/src/components/Icon/index.tsx +8 -0
  94. package/src/themes/odyssey/{components.ts → components.tsx} +308 -17
  95. package/src/themes/odyssey/components.types.ts +11 -1
  96. package/src/themes/odyssey/typography.ts +13 -8
  97. package/src/themes/odyssey/typography.types.ts +12 -7
@@ -10,105 +10,135 @@
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
12
  import { outlinedInputClasses } from "@mui/material/OutlinedInput";
13
+ import { tableBodyClasses } from "@mui/material/TableBody";
14
+ import { tableCellClasses } from "@mui/material/TableCell";
15
+ import { tableHeadClasses } from "@mui/material/TableHead";
16
+ import { tableRowClasses } from "@mui/material/TableRow";
17
+ import { tableSortLabelClasses } from "@mui/material/TableSortLabel";
18
+ import { AlertTriangleFilledIcon, ArrowDownIcon, CheckCircleFilledIcon, InformationCircleFilledIcon } from "../../components/Icon/index.js";
19
+ import { jsx as _jsx } from "react/jsx-runtime";
13
20
  export const components = {
14
21
  MuiAlert: {
22
+ defaultProps: {
23
+ iconMapping: {
24
+ error: _jsx(AlertTriangleFilledIcon, {}),
25
+ info: _jsx(InformationCircleFilledIcon, {}),
26
+ success: _jsx(CheckCircleFilledIcon, {}),
27
+ warning: _jsx(AlertTriangleFilledIcon, {})
28
+ }
29
+ },
15
30
  styleOverrides: {
16
- root: ({
17
- ownerState,
18
- theme
19
- }) => ({
20
- padding: theme.spacing(4),
21
- gap: theme.spacing(4),
22
- color: theme.palette.text.primary,
23
- ...(ownerState.severity && {
24
- backgroundColor: theme.palette[ownerState.severity].lighter,
25
- borderColor: theme.palette[ownerState.severity].light
26
- }),
27
- ...(ownerState.variant === "banner" && {
28
- position: "relative",
29
- justifyContent: "center",
30
- alignItems: "center",
31
- borderWidth: 0
32
- }),
33
- ...(ownerState.variant === "infobox" && {
34
- borderStyle: "solid",
35
- borderWidth: 1,
36
- "&:not(:last-child)": {
37
- marginBottom: theme.spacing(4)
38
- }
39
- }),
40
- ...(ownerState.variant === "toast" && {
41
- maxWidth: theme.mixins.maxWidth,
42
- borderStyle: "solid",
43
- borderWidth: 1,
44
- position: "relative",
45
- alignItems: "start"
46
- })
47
- }),
48
- action: ({
49
- ownerState,
50
- theme
51
- }) => ({ ...(ownerState.variant === "banner" && {
52
- padding: 0,
31
+ root: _ref => {
32
+ let {
33
+ ownerState,
34
+ theme
35
+ } = _ref;
36
+ return {
37
+ padding: theme.spacing(4),
38
+ gap: theme.spacing(4),
39
+ color: theme.palette.text.primary,
40
+ ...(ownerState.severity && {
41
+ backgroundColor: theme.palette[ownerState.severity].lighter,
42
+ borderColor: theme.palette[ownerState.severity].light
43
+ }),
44
+ ...(ownerState.variant === "banner" && {
45
+ position: "relative",
46
+ justifyContent: "center",
47
+ alignItems: "center",
48
+ borderWidth: 0
49
+ }),
50
+ ...(ownerState.variant === "infobox" && {
51
+ borderStyle: "solid",
52
+ borderWidth: 1,
53
+ "&:not(:last-child)": {
54
+ marginBottom: theme.spacing(4)
55
+ }
56
+ }),
57
+ ...(ownerState.variant === "toast" && {
58
+ maxWidth: theme.mixins.maxWidth,
59
+ borderStyle: "solid",
60
+ borderWidth: 1,
61
+ position: "relative",
62
+ alignItems: "start"
63
+ })
64
+ };
65
+ },
66
+ action: _ref2 => {
67
+ let {
68
+ ownerState,
69
+ theme
70
+ } = _ref2;
71
+ return { ...(ownerState.variant === "banner" && {
72
+ padding: 0,
73
+ marginRight: 0,
74
+ top: "50%",
75
+ right: theme.spacing(4),
76
+ position: "absolute",
77
+ transform: "translateY(-50%)"
78
+ }),
79
+ ...(ownerState.variant === "toast" && {
80
+ position: "absolute",
81
+ top: `calc(${theme.spacing(4)} - ${theme.spacing(1)} + ${theme.mixins.borderWidth})`,
82
+ right: `calc(${theme.spacing(4)} - ${theme.spacing(1)} + ${theme.mixins.borderWidth})`,
83
+ padding: 0,
84
+ marginLeft: 0,
85
+ marginRight: 0
86
+ })
87
+ };
88
+ },
89
+ icon: _ref3 => {
90
+ let {
91
+ ownerState,
92
+ theme
93
+ } = _ref3;
94
+ return {
53
95
  marginRight: 0,
54
- top: "50%",
55
- right: theme.spacing(4),
56
- position: "absolute",
57
- transform: "translateY(-50%)"
58
- }),
59
- ...(ownerState.variant === "toast" && {
60
- position: "absolute",
61
- top: `calc(${theme.spacing(4)} - ${theme.spacing(1)} + ${theme.mixins.borderWidth})`,
62
- right: `calc(${theme.spacing(4)} - ${theme.spacing(1)} + ${theme.mixins.borderWidth})`,
63
96
  padding: 0,
64
- marginLeft: 0,
65
- marginRight: 0
66
- })
67
- }),
68
- icon: ({
69
- ownerState,
70
- theme
71
- }) => ({
72
- marginRight: 0,
73
- padding: 0,
74
- fontSize: "1.429rem",
75
- opacity: 1,
76
- ...(ownerState.severity && {
77
- color: theme.palette[ownerState.severity].main
78
- }),
79
- ...(ownerState.severity === "warning" && {
80
- color: theme.palette[ownerState.severity].dark
81
- })
82
- }),
83
- message: ({
84
- ownerState,
85
- theme
86
- }) => ({
87
- padding: 0,
88
- lineHeight: theme.typography.body.lineHeight,
89
- ...(ownerState.variant === "banner" && {
90
- display: "flex",
91
- justifyContent: "space-between",
92
- gap: theme.spacing(4)
93
- }),
94
- ...(ownerState.variant === "toast" && {
95
- flexGrow: 1,
96
- paddingRight: `calc((${theme.spacing(1)} * 2) + ${theme.typography.body.fontSize} + ${theme.spacing(4)})`
97
- })
98
- })
97
+ fontSize: "1.429rem",
98
+ opacity: 1,
99
+ ...(ownerState.severity && {
100
+ color: theme.palette[ownerState.severity].main
101
+ }),
102
+ ...(ownerState.severity === "warning" && {
103
+ color: theme.palette[ownerState.severity].dark
104
+ })
105
+ };
106
+ },
107
+ message: _ref4 => {
108
+ let {
109
+ ownerState,
110
+ theme
111
+ } = _ref4;
112
+ return {
113
+ padding: 0,
114
+ lineHeight: theme.typography.body1.lineHeight,
115
+ overflow: "visible",
116
+ ...(ownerState.variant === "banner" && {
117
+ display: "flex",
118
+ justifyContent: "space-between",
119
+ gap: theme.spacing(4)
120
+ }),
121
+ ...(ownerState.variant === "toast" && {
122
+ flexGrow: 1
123
+ })
124
+ };
125
+ }
99
126
  }
100
127
  },
101
128
  MuiAlertTitle: {
102
129
  styleOverrides: {
103
- root: ({
104
- theme
105
- }) => ({
106
- marginTop: 0,
107
- marginBottom: theme.spacing(1),
108
- lineHeight: theme.typography.h6.lineHeight,
109
- fontSize: theme.typography.h6.fontSize,
110
- fontWeight: theme.typography.fontWeightBold
111
- })
130
+ root: _ref5 => {
131
+ let {
132
+ theme
133
+ } = _ref5;
134
+ return {
135
+ marginTop: 0,
136
+ marginBottom: theme.spacing(1),
137
+ lineHeight: theme.typography.h6.lineHeight,
138
+ fontSize: theme.typography.h6.fontSize,
139
+ fontWeight: theme.typography.fontWeightBold
140
+ };
141
+ }
112
142
  }
113
143
  },
114
144
  MuiButton: {
@@ -119,142 +149,163 @@ export const components = {
119
149
  props: {
120
150
  variant: "primary"
121
151
  },
122
- style: ({
123
- theme
124
- }) => ({
125
- fontWeight: 600,
126
- color: theme.palette.common.white,
127
- borderColor: "transparent",
128
- backgroundColor: theme.palette.primary.main,
129
- "&:hover, &:focus-visible": {
130
- backgroundColor: theme.palette.primary.dark
131
- },
132
- "&:focus-visible": {
133
- outlineColor: theme.palette.primary.main
134
- },
135
- "&:active": {
136
- backgroundColor: theme.palette.primary.main
137
- },
138
- "&:disabled": {
152
+ style: _ref6 => {
153
+ let {
154
+ theme
155
+ } = _ref6;
156
+ return {
157
+ fontWeight: 600,
139
158
  color: theme.palette.common.white,
140
- backgroundColor: theme.palette.primary.light
141
- }
142
- })
159
+ borderColor: "transparent",
160
+ backgroundColor: theme.palette.primary.main,
161
+ "&:hover, &:focus-visible": {
162
+ backgroundColor: theme.palette.primary.dark
163
+ },
164
+ "&:focus-visible": {
165
+ outlineColor: theme.palette.primary.main
166
+ },
167
+ "&:active": {
168
+ backgroundColor: theme.palette.primary.main
169
+ },
170
+ "&:disabled": {
171
+ color: theme.palette.common.white,
172
+ backgroundColor: theme.palette.primary.light
173
+ }
174
+ };
175
+ }
143
176
  }, {
144
177
  props: {
145
178
  variant: "secondary"
146
179
  },
147
- style: ({
148
- theme
149
- }) => ({
150
- backgroundColor: theme.palette.grey[50],
151
- borderColor: theme.palette.grey[200],
152
- color: theme.palette.text.primary,
153
- "&:hover, &:focus-visible": {
154
- backgroundColor: theme.palette.primary.lighter,
155
- borderColor: theme.palette.primary.light,
156
- color: theme.palette.primary.main
157
- },
158
- "&:focus-visible": {
159
- outlineColor: theme.palette.primary.main
160
- },
161
- "&:active": {
162
- borderColor: theme.palette.primary.main
163
- },
164
- "&:disabled": {
165
- borderColor: theme.palette.grey[100],
166
- backgroundColor: theme.palette.grey[100],
167
- color: theme.palette.grey[500]
168
- }
169
- })
180
+ style: _ref7 => {
181
+ let {
182
+ theme
183
+ } = _ref7;
184
+ return {
185
+ backgroundColor: theme.palette.grey[50],
186
+ borderColor: theme.palette.grey[200],
187
+ color: theme.palette.text.primary,
188
+ "&:hover, &:focus-visible": {
189
+ backgroundColor: theme.palette.primary.lighter,
190
+ borderColor: theme.palette.primary.light,
191
+ color: theme.palette.primary.main
192
+ },
193
+ "&:focus-visible": {
194
+ outlineColor: theme.palette.primary.main
195
+ },
196
+ "&:active": {
197
+ borderColor: theme.palette.primary.main
198
+ },
199
+ "&:disabled": {
200
+ borderColor: theme.palette.grey[100],
201
+ backgroundColor: theme.palette.grey[100],
202
+ color: theme.palette.grey[500]
203
+ }
204
+ };
205
+ }
170
206
  }, {
171
207
  props: {
172
208
  variant: "danger"
173
209
  },
174
- style: ({
175
- theme
176
- }) => ({
177
- backgroundColor: theme.palette.error.main,
178
- color: theme.palette.common.white,
179
- borderColor: "transparent",
180
- "&:hover": {
181
- backgroundColor: theme.palette.error.dark
182
- },
183
- "&:focus-visible": {
184
- outlineColor: theme.palette.error.main,
185
- backgroundColor: theme.palette.error.dark
186
- },
187
- "&:active": {
188
- backgroundColor: theme.palette.error.main
189
- },
190
- "&:disabled": {
210
+ style: _ref8 => {
211
+ let {
212
+ theme
213
+ } = _ref8;
214
+ return {
215
+ backgroundColor: theme.palette.error.main,
191
216
  color: theme.palette.common.white,
192
- backgroundColor: theme.palette.error.light
193
- }
194
- })
217
+ borderColor: "transparent",
218
+ "&:hover": {
219
+ backgroundColor: theme.palette.error.dark
220
+ },
221
+ "&:focus-visible": {
222
+ outlineColor: theme.palette.error.main,
223
+ backgroundColor: theme.palette.error.dark
224
+ },
225
+ "&:active": {
226
+ backgroundColor: theme.palette.error.main
227
+ },
228
+ "&:disabled": {
229
+ color: theme.palette.common.white,
230
+ backgroundColor: theme.palette.error.light
231
+ }
232
+ };
233
+ }
195
234
  }, {
196
235
  props: {
197
236
  variant: "floating"
198
237
  },
199
- style: ({
200
- theme
201
- }) => ({
202
- backgroundColor: theme.palette.common.white,
203
- color: theme.palette.text.primary,
204
- borderColor: "transparent",
205
- "&:hover, &:focus-visible": {
206
- backgroundColor: "rgba(29, 29, 33, 0.1)",
207
- borderColor: "transparent"
208
- },
209
- "&:focus-visible": {
210
- outlineColor: theme.palette.primary.main
211
- },
212
- "&:active": {
213
- backgroundColor: "rgba(29, 29, 33, 0.2)",
214
- borderColor: "transparent"
215
- },
216
- "&:disabled": {
217
- backgroundColor: "rgba(235, 235, 237, 0.6)",
218
- color: theme.palette.text.secondary,
219
- borderColor: "transparent"
220
- }
221
- })
238
+ style: _ref9 => {
239
+ let {
240
+ theme
241
+ } = _ref9;
242
+ return {
243
+ backgroundColor: theme.palette.common.white,
244
+ color: theme.palette.text.primary,
245
+ borderColor: "transparent",
246
+ "&:hover, &:focus-visible": {
247
+ backgroundColor: "rgba(29, 29, 33, 0.1)",
248
+ borderColor: "transparent"
249
+ },
250
+ "&:focus-visible": {
251
+ outlineColor: theme.palette.primary.main
252
+ },
253
+ "&:active": {
254
+ backgroundColor: "rgba(29, 29, 33, 0.2)",
255
+ borderColor: "transparent"
256
+ },
257
+ "&:disabled": {
258
+ backgroundColor: "rgba(235, 235, 237, 0.6)",
259
+ color: theme.palette.text.secondary,
260
+ borderColor: "transparent"
261
+ }
262
+ };
263
+ }
222
264
  }, {
223
265
  props: {
224
266
  size: "s"
225
267
  },
226
- style: ({
227
- theme
228
- }) => ({
229
- paddingBlock: `calc(${theme.spacing(2)} - 1px)`,
230
- paddingInline: `calc(${theme.spacing(3)} - 1px)`,
231
- fontSize: "1rem"
232
- })
268
+ style: _ref10 => {
269
+ let {
270
+ theme
271
+ } = _ref10;
272
+ return {
273
+ paddingBlock: `calc(${theme.spacing(2)} - 1px)`,
274
+ paddingInline: `calc(${theme.spacing(3)} - 1px)`,
275
+ fontSize: "1rem"
276
+ };
277
+ }
233
278
  }, {
234
279
  props: {
235
280
  size: "l"
236
281
  },
237
- style: ({
238
- theme
239
- }) => ({
240
- paddingBlock: `calc(${theme.spacing(4)} - 1px)`,
241
- paddingInline: `calc(${theme.spacing(4)} - 1px)`
242
- })
282
+ style: _ref11 => {
283
+ let {
284
+ theme
285
+ } = _ref11;
286
+ return {
287
+ paddingBlock: `calc(${theme.spacing(4)} - 1px)`,
288
+ paddingInline: `calc(${theme.spacing(4)} - 1px)`
289
+ };
290
+ }
243
291
  }, {
244
292
  props: {
245
293
  fullWidth: true
246
294
  },
247
- style: ({
248
- theme
249
- }) => ({
250
- display: "block",
251
- width: "100%",
252
- marginBlock: "0",
253
- marginInline: "0",
254
- "&:not(:last-child)": {
255
- marginBlockEnd: theme.spacing(4)
256
- }
257
- })
295
+ style: _ref12 => {
296
+ let {
297
+ theme
298
+ } = _ref12;
299
+ return {
300
+ display: "block",
301
+ width: "100%",
302
+ marginBlock: "0",
303
+ marginInline: "0",
304
+ "&:not(:last-child)": {
305
+ marginBlockEnd: theme.spacing(4)
306
+ }
307
+ };
308
+ }
258
309
  }, {
259
310
  props: {
260
311
  children: ""
@@ -267,41 +318,45 @@ export const components = {
267
318
  }
268
319
  }],
269
320
  styleOverrides: {
270
- root: ({
271
- theme
272
- }) => ({
273
- fontWeight: 600,
274
- padding: `calc(${theme.spacing(3)} - 1px) ${theme.spacing(3)}`,
275
- display: "inline-block",
276
- position: "relative",
277
- marginBlock: "0",
278
- marginInline: "0",
279
- transitionProperty: "color, background-color, border-color, outline-offset, outline-color",
280
- transitionDuration: "100ms",
281
- transitionTimingFunction: "linear",
282
- borderWidth: "1px",
283
- borderStyle: "solid",
284
- outlineColor: "transparent",
285
- outlineOffset: "0",
286
- fontSize: "1rem",
287
- lineHeight: "1.14285714",
288
- whiteSpace: "nowrap",
289
- "& + &": {
290
- marginInlineStart: theme.spacing(2)
291
- },
292
- "&:focus-visible": {
293
- outlineOffset: "2px",
294
- outlineStyle: "solid",
295
- outlineWidth: "2px"
296
- },
297
- "&:disabled": {
298
- cursor: "not-allowed",
299
- pointerEvents: "inherit"
300
- },
301
- ".MuiButton-startIcon > *:nth-of-type(1)": {
302
- fontSize: "inherit"
303
- }
304
- })
321
+ root: _ref13 => {
322
+ let {
323
+ theme
324
+ } = _ref13;
325
+ return {
326
+ fontWeight: 600,
327
+ minWidth: "unset",
328
+ padding: `calc(${theme.spacing(3)} - 1px) ${theme.spacing(3)}`,
329
+ display: "inline-block",
330
+ position: "relative",
331
+ marginBlock: "0",
332
+ marginInline: "0",
333
+ transitionProperty: "color, background-color, border-color, outline-offset, outline-color",
334
+ transitionDuration: "100ms",
335
+ transitionTimingFunction: "linear",
336
+ borderWidth: theme.mixins.borderWidth,
337
+ borderStyle: theme.mixins.borderStyle,
338
+ outlineColor: "transparent",
339
+ outlineOffset: "0",
340
+ fontSize: theme.typography.body1.fontSize,
341
+ lineHeight: "1.14285714",
342
+ whiteSpace: "nowrap",
343
+ ".MuiButton-root + &": {
344
+ marginInlineStart: theme.spacing(2)
345
+ },
346
+ "&:focus-visible": {
347
+ outlineOffset: "2px",
348
+ outlineStyle: "solid",
349
+ outlineWidth: "2px"
350
+ },
351
+ "&:disabled": {
352
+ cursor: "not-allowed",
353
+ pointerEvents: "inherit"
354
+ },
355
+ ".MuiButton-startIcon > *:nth-of-type(1)": {
356
+ fontSize: "inherit"
357
+ }
358
+ };
359
+ }
305
360
  }
306
361
  },
307
362
  MuiButtonBase: {
@@ -321,32 +376,35 @@ export const components = {
321
376
  size: "small"
322
377
  },
323
378
  styleOverrides: {
324
- root: ({
325
- theme
326
- }) => ({
327
- borderRadius: "4px",
328
- "&:hover": {
329
- backgroundColor: "transparent"
330
- },
331
- padding: 0,
332
- ".Mui-error > &": {
333
- color: theme.palette.error.main,
379
+ root: _ref14 => {
380
+ let {
381
+ theme
382
+ } = _ref14;
383
+ return {
384
+ borderRadius: "4px",
334
385
  "&:hover": {
335
- color: theme.palette.error.dark
336
- }
337
- },
338
- ".Mui-error > &.Mui-checked": {
339
- "&:hover": {
340
- color: theme.palette.error.dark
386
+ backgroundColor: "transparent"
387
+ },
388
+ padding: 0,
389
+ ".Mui-error > &": {
390
+ color: theme.palette.error.main,
391
+ "&:hover": {
392
+ color: theme.palette.error.dark
393
+ }
394
+ },
395
+ ".Mui-error > &.Mui-checked": {
396
+ "&:hover": {
397
+ color: theme.palette.error.dark
398
+ }
399
+ },
400
+ "&.Mui-focusVisible": {
401
+ outlineColor: theme.palette.primary.main,
402
+ outlineOffset: 0,
403
+ outlineStyle: "solid",
404
+ outlineWidth: "2px"
341
405
  }
342
- },
343
- "&.Mui-focusVisible": {
344
- outlineColor: theme.palette.primary.main,
345
- outlineOffset: 0,
346
- outlineStyle: "solid",
347
- outlineWidth: "2px"
348
- }
349
- })
406
+ };
407
+ }
350
408
  }
351
409
  },
352
410
  MuiCircularProgress: {
@@ -358,81 +416,102 @@ export const components = {
358
416
  variant: "indeterminate"
359
417
  },
360
418
  styleOverrides: {
361
- root: ({
362
- theme,
363
- ownerState
364
- }) => ({ ...(ownerState.color !== "inherit" && {
365
- color: theme.palette.primary.dark
366
- })
367
- }),
368
- circle: ({
369
- ownerState
370
- }) => ({ ...(ownerState.variant === "indeterminate" && {
371
- strokeDasharray: "160%, 360%"
372
- })
373
- })
419
+ root: _ref15 => {
420
+ let {
421
+ theme,
422
+ ownerState
423
+ } = _ref15;
424
+ return { ...(ownerState.color !== "inherit" && {
425
+ color: theme.palette.primary.dark
426
+ })
427
+ };
428
+ },
429
+ circle: _ref16 => {
430
+ let {
431
+ ownerState
432
+ } = _ref16;
433
+ return { ...(ownerState.variant === "indeterminate" && {
434
+ strokeDasharray: "160%, 360%"
435
+ })
436
+ };
437
+ }
374
438
  }
375
439
  },
376
440
  MuiFormControl: {
441
+ defaultProps: {
442
+ margin: "normal"
443
+ },
377
444
  styleOverrides: {
378
- root: ({
379
- ownerState,
380
- theme
381
- }) => ({
382
- width: "100%",
383
- maxWidth: "32rem",
384
- ...(ownerState.margin === "normal" && {
385
- marginTop: 0,
386
- marginBottom: theme.spacing(4)
387
- }),
388
- ...(ownerState.margin === "dense" && {
389
- marginTop: 0,
390
- marginBottom: theme.spacing(4)
391
- }),
392
- ...(ownerState.fullWidth && {
393
- maxWidth: "100%"
394
- })
395
- })
445
+ root: _ref17 => {
446
+ let {
447
+ ownerState,
448
+ theme
449
+ } = _ref17;
450
+ return {
451
+ width: "100%",
452
+ maxWidth: "32rem",
453
+ ...(ownerState.margin === "normal" && {
454
+ marginTop: 0,
455
+ marginBottom: theme.spacing(5),
456
+ "&:last-child": {
457
+ marginBottom: 0
458
+ }
459
+ }),
460
+ ...(ownerState.margin === "dense" && {
461
+ marginTop: 0,
462
+ marginBottom: theme.spacing(5),
463
+ "&:last-child": {
464
+ marginBottom: 0
465
+ }
466
+ }),
467
+ ...(ownerState.fullWidth && {
468
+ maxWidth: "100%"
469
+ })
470
+ };
471
+ }
396
472
  }
397
473
  },
398
474
  MuiFormControlLabel: {
399
475
  styleOverrides: {
400
- root: ({
401
- theme,
402
- ownerState
403
- }) => ({
404
- gap: theme.spacing(2),
405
- marginLeft: 0,
406
- marginRight: 0,
407
- ...(ownerState.labelPlacement === "start" && {
476
+ root: _ref18 => {
477
+ let {
478
+ theme,
479
+ ownerState
480
+ } = _ref18;
481
+ return {
482
+ gap: theme.spacing(2),
408
483
  marginLeft: 0,
409
- marginRight: 0
410
- }),
411
- ...(ownerState.labelPlacement === "top" && {
412
- marginLeft: 0
413
- }),
414
- ...(ownerState.labelPlacement === "bottom" && {
415
- marginLeft: 0
416
- }),
417
- "&:not(:last-child)": {
418
- marginBottom: theme.spacing(2)
419
- },
420
- "&.Mui-disabled": {
421
- pointerEvents: "none"
422
- },
423
- "&:hover .MuiRadio-root, &:hover .MuiCheckbox-root": {
424
- color: theme.palette.text.primary
425
- },
426
- "&:hover .MuiRadio-root.Mui-checked, &:hover .MuiCheckbox-root.Mui-checked": {
427
- color: theme.palette.primary.dark
428
- },
429
- "&.Mui-error:hover .MuiRadio-root, &.Mui-error:hover .MuiCheckbox-root": {
430
- color: theme.palette.error.dark
431
- },
432
- "&.Mui-error:hover .MuiRadio-root.Mui-checked, &.Mui-error:hover .MuiCheckbox-root.Mui-checked": {
433
- color: theme.palette.error.dark
434
- }
435
- })
484
+ marginRight: 0,
485
+ ...(ownerState.labelPlacement === "start" && {
486
+ marginLeft: 0,
487
+ marginRight: 0
488
+ }),
489
+ ...(ownerState.labelPlacement === "top" && {
490
+ marginLeft: 0
491
+ }),
492
+ ...(ownerState.labelPlacement === "bottom" && {
493
+ marginLeft: 0
494
+ }),
495
+ "&:not(:last-child)": {
496
+ marginBottom: theme.spacing(2)
497
+ },
498
+ "&.Mui-disabled": {
499
+ pointerEvents: "none"
500
+ },
501
+ "&:hover .MuiRadio-root, &:hover .MuiCheckbox-root": {
502
+ color: theme.palette.text.primary
503
+ },
504
+ "&:hover .MuiRadio-root.Mui-checked, &:hover .MuiCheckbox-root.Mui-checked": {
505
+ color: theme.palette.primary.dark
506
+ },
507
+ "&.Mui-error:hover .MuiRadio-root, &.Mui-error:hover .MuiCheckbox-root": {
508
+ color: theme.palette.error.dark
509
+ },
510
+ "&.Mui-error:hover .MuiRadio-root.Mui-checked, &.Mui-error:hover .MuiCheckbox-root.Mui-checked": {
511
+ color: theme.palette.error.dark
512
+ }
513
+ };
514
+ }
436
515
  }
437
516
  },
438
517
  MuiFormHelperText: {
@@ -440,46 +519,75 @@ export const components = {
440
519
  variant: "standard"
441
520
  },
442
521
  styleOverrides: {
443
- root: ({
444
- theme
445
- }) => ({
446
- lineHeight: "1.33333333",
447
- marginTop: theme.spacing(2),
448
- ".MuiFormLabel-root + &": {
449
- marginTop: `-${theme.spacing(1)}`,
450
- color: theme.palette.text.secondary
451
- },
452
- marginBottom: theme.spacing(2),
453
- "&:last-child": {
454
- marginBottom: 0
455
- }
456
- })
522
+ root: _ref19 => {
523
+ let {
524
+ theme
525
+ } = _ref19;
526
+ return {
527
+ lineHeight: "1.33333333",
528
+ marginTop: theme.spacing(2),
529
+ ".MuiFormLabel-root + &": {
530
+ marginTop: `-${theme.spacing(1)}`,
531
+ color: theme.palette.text.secondary
532
+ },
533
+ marginBottom: theme.spacing(2),
534
+ "&:last-child": {
535
+ marginBottom: 0
536
+ }
537
+ };
538
+ }
457
539
  }
458
540
  },
459
541
  MuiFormLabel: {
460
542
  styleOverrides: {
461
- root: ({
462
- theme
463
- }) => ({
464
- color: theme.palette.text.primary,
465
- lineHeight: "1.14285714",
466
- fontSize: "1rem",
467
- fontWeight: 600,
468
- marginBottom: theme.spacing(2),
469
- "&.Mui-focused, &.Mui-error, &.Mui-disabled": {
470
- color: theme.palette.text.primary
471
- }
472
- })
543
+ root: _ref20 => {
544
+ let {
545
+ theme
546
+ } = _ref20;
547
+ return {
548
+ color: theme.palette.text.primary,
549
+ lineHeight: "1.14285714",
550
+ fontSize: "1rem",
551
+ fontWeight: 600,
552
+ marginBottom: theme.spacing(2),
553
+ "&.Mui-focused, &.Mui-error, &.Mui-disabled": {
554
+ color: theme.palette.text.primary
555
+ }
556
+ };
557
+ }
473
558
  }
474
559
  },
475
560
  MuiIconButton: {
476
561
  styleOverrides: {
477
- root: ({
478
- theme
479
- }) => ({
480
- padding: theme.spacing(1),
481
- fontSize: theme.typography.body.fontSize
482
- })
562
+ root: _ref21 => {
563
+ let {
564
+ theme
565
+ } = _ref21;
566
+ return {
567
+ padding: theme.spacing(1),
568
+ fontSize: theme.typography.body1.fontSize,
569
+ backgroundColor: "transparent",
570
+ color: theme.palette.text.primary,
571
+ borderColor: "transparent",
572
+ borderRadius: theme.mixins.borderRadius,
573
+ "&:hover, &:focus-visible": {
574
+ backgroundColor: "rgba(29, 29, 33, 0.1)",
575
+ borderColor: "transparent"
576
+ },
577
+ "&:focus-visible": {
578
+ outlineColor: theme.palette.primary.main
579
+ },
580
+ "&:active": {
581
+ backgroundColor: "rgba(29, 29, 33, 0.2)",
582
+ borderColor: "transparent"
583
+ },
584
+ "&:disabled": {
585
+ backgroundColor: "rgba(235, 235, 237, 0.6)",
586
+ color: theme.palette.text.secondary,
587
+ borderColor: "transparent"
588
+ }
589
+ };
590
+ }
483
591
  }
484
592
  },
485
593
  MuiInputAdornment: {
@@ -487,23 +595,35 @@ export const components = {
487
595
  variant: "outlined"
488
596
  },
489
597
  styleOverrides: {
490
- root: ({
491
- ownerState
492
- }) => ({
493
- display: "flex",
494
- ...(ownerState.position === "start" && {
495
- marginRight: 0
496
- }),
497
- ...(ownerState.position === "end" && {
498
- marginLeft: 0
499
- })
500
- })
598
+ root: _ref22 => {
599
+ let {
600
+ ownerState
601
+ } = _ref22;
602
+ return {
603
+ display: "flex",
604
+ ...(ownerState.position === "start" && {
605
+ marginRight: 0
606
+ }),
607
+ ...(ownerState.position === "end" && {
608
+ marginLeft: 0
609
+ })
610
+ };
611
+ }
501
612
  }
502
613
  },
503
614
  MuiInputBase: {
504
615
  styleOverrides: {
505
- root: {
506
- lineHeight: "1.14285714"
616
+ root: _ref23 => {
617
+ let {
618
+ ownerState,
619
+ theme
620
+ } = _ref23;
621
+ return {
622
+ lineHeight: "1.14285714",
623
+ ...(ownerState.readOnly === true && {
624
+ backgroundColor: theme.palette.grey[50]
625
+ })
626
+ };
507
627
  },
508
628
  input: {
509
629
  boxSizing: "border-box",
@@ -517,86 +637,95 @@ export const components = {
517
637
  shrink: false
518
638
  },
519
639
  styleOverrides: {
520
- root: ({
521
- ownerState
522
- }) => ({ ...(ownerState.formControl && {
523
- position: "initial",
524
- transform: "none"
525
- }),
526
- ...(ownerState.variant === "outlined" && {
527
- pointerEvents: "initial",
528
- transform: "none",
529
- maxWidth: "100%",
530
- ...(ownerState.size === "small" && {
640
+ root: _ref24 => {
641
+ let {
642
+ ownerState
643
+ } = _ref24;
644
+ return { ...(ownerState.formControl && {
645
+ position: "initial",
531
646
  transform: "none"
647
+ }),
648
+ ...(ownerState.variant === "outlined" && {
649
+ pointerEvents: "initial",
650
+ transform: "none",
651
+ maxWidth: "100%",
652
+ ...(ownerState.size === "small" && {
653
+ transform: "none"
654
+ })
532
655
  })
533
- })
534
- })
656
+ };
657
+ }
535
658
  }
536
659
  },
537
660
  MuiLink: {
538
661
  styleOverrides: {
539
- root: ({
540
- theme
541
- }) => ({
542
- color: theme.palette.primary.main,
543
- textDecoration: "none",
544
- "&:hover": {
662
+ root: _ref25 => {
663
+ let {
664
+ theme
665
+ } = _ref25;
666
+ return {
545
667
  color: theme.palette.primary.main,
546
- textDecoration: "underline"
547
- },
548
- "&:focus-visible": {
549
- outlineColor: theme.palette.primary.main,
550
- outlineOffset: "2px",
551
- outlineStyle: "solid",
552
- outlineWidth: "1px"
553
- },
554
- "&:visited": {
555
- color: theme.palette.primary.main
556
- },
557
- ".Link-indicator, .Link-icon": {
558
- display: "inline-block",
559
- height: "1em",
560
- lineHeight: 1
561
- },
562
- ".Link-indicator": {
563
- marginInlineStart: theme.spacing(2)
564
- },
565
- ".Link-icon": {
566
- marginInlineEnd: theme.spacing(2)
567
- },
568
- svg: {
569
- fontSize: "1rem",
570
- height: "1em",
571
- position: "relative",
572
- top: "-0.0625em",
573
- verticalAlign: "middle",
574
- width: "1em"
575
- }
576
- })
668
+ textDecoration: "none",
669
+ "&:hover": {
670
+ color: theme.palette.primary.main,
671
+ textDecoration: "underline"
672
+ },
673
+ "&:focus-visible": {
674
+ outlineColor: theme.palette.primary.main,
675
+ outlineOffset: "2px",
676
+ outlineStyle: "solid",
677
+ outlineWidth: "1px"
678
+ },
679
+ "&:visited": {
680
+ color: theme.palette.primary.main
681
+ },
682
+ ".Link-indicator, .Link-icon": {
683
+ display: "inline-block",
684
+ height: "1em",
685
+ lineHeight: 1
686
+ },
687
+ ".Link-indicator": {
688
+ marginInlineStart: theme.spacing(2)
689
+ },
690
+ ".Link-icon": {
691
+ marginInlineEnd: theme.spacing(2)
692
+ },
693
+ svg: {
694
+ fontSize: "1rem",
695
+ height: "1em",
696
+ position: "relative",
697
+ top: "-0.0625em",
698
+ verticalAlign: "middle",
699
+ width: "1em"
700
+ }
701
+ };
702
+ }
577
703
  },
578
704
  variants: [{
579
705
  props: {
580
706
  variant: "monochrome"
581
707
  },
582
- style: ({
583
- theme
584
- }) => ({
585
- color: theme.palette.text.primary,
586
- textDecoration: "underline",
587
- "&:hover": {
588
- color: theme.palette.text.secondary
589
- },
590
- "&:focus-visible": {
591
- outlineColor: theme.palette.primary.main,
592
- outlineOffset: "2px",
593
- outlineStyle: "solid",
594
- outlineWidth: "1px"
595
- },
596
- "&:visited": {
597
- color: theme.palette.text.primary
598
- }
599
- })
708
+ style: _ref26 => {
709
+ let {
710
+ theme
711
+ } = _ref26;
712
+ return {
713
+ color: theme.palette.text.primary,
714
+ textDecoration: "underline",
715
+ "&:hover": {
716
+ color: theme.palette.text.secondary
717
+ },
718
+ "&:focus-visible": {
719
+ outlineColor: theme.palette.primary.main,
720
+ outlineOffset: "2px",
721
+ outlineStyle: "solid",
722
+ outlineWidth: "1px"
723
+ },
724
+ "&:visited": {
725
+ color: theme.palette.text.primary
726
+ }
727
+ };
728
+ }
600
729
  }]
601
730
  },
602
731
  MuiNativeSelect: {
@@ -604,11 +733,14 @@ export const components = {
604
733
  variant: "outlined"
605
734
  },
606
735
  styleOverrides: {
607
- icon: ({
608
- theme
609
- }) => ({
610
- color: theme.palette.text.primary
611
- })
736
+ icon: _ref27 => {
737
+ let {
738
+ theme
739
+ } = _ref27;
740
+ return {
741
+ color: theme.palette.text.primary
742
+ };
743
+ }
612
744
  }
613
745
  },
614
746
  MuiOutlinedInput: {
@@ -617,59 +749,69 @@ export const components = {
617
749
  minRows: 3
618
750
  },
619
751
  styleOverrides: {
620
- root: ({
621
- ownerState,
622
- theme
623
- }) => ({
624
- [`&:hover .${outlinedInputClasses.notchedOutline}`]: {
625
- borderColor: theme.palette.text.primary
626
- },
627
- [`&.${outlinedInputClasses.focused} .${outlinedInputClasses.notchedOutline}`]: {
628
- borderColor: theme.palette.primary.main,
629
- borderWidth: 2
630
- },
631
- [`&.${outlinedInputClasses.error} .${outlinedInputClasses.notchedOutline}`]: {
632
- borderColor: theme.palette.error.main
633
- },
634
- [`&.${outlinedInputClasses.error}:hover .${outlinedInputClasses.notchedOutline}`]: {
635
- borderColor: theme.palette.error.dark
636
- },
637
- [`&.${outlinedInputClasses.error}.${outlinedInputClasses.focused} .${outlinedInputClasses.notchedOutline}`]: {
638
- borderColor: theme.palette.error.main
639
- },
640
- [`&.${outlinedInputClasses.disabled} .${outlinedInputClasses.notchedOutline}`]: {
641
- borderColor: theme.palette.action.disabled
642
- },
643
- [`&.${outlinedInputClasses.disabled}`]: {
644
- backgroundColor: theme.palette.grey[50],
645
- pointerEvents: "none"
646
- },
647
- ...(ownerState.startAdornment && {
648
- paddingLeft: theme.spacing(3)
649
- }),
650
- ...(ownerState.endAdornment && {
651
- paddingRight: theme.spacing(3)
652
- }),
653
- ...(ownerState.multiline && {
654
- padding: "0",
655
- ...(ownerState.size === "small" && {
656
- padding: "0"
752
+ root: _ref28 => {
753
+ let {
754
+ ownerState,
755
+ theme
756
+ } = _ref28;
757
+ return {
758
+ [`&:hover .${outlinedInputClasses.notchedOutline}`]: {
759
+ borderColor: theme.palette.text.primary
760
+ },
761
+ [`&.${outlinedInputClasses.focused} .${outlinedInputClasses.notchedOutline}`]: {
762
+ borderColor: theme.palette.primary.main,
763
+ borderWidth: 2
764
+ },
765
+ [`&.${outlinedInputClasses.error} .${outlinedInputClasses.notchedOutline}`]: {
766
+ borderColor: theme.palette.error.main
767
+ },
768
+ [`&.${outlinedInputClasses.error}:hover .${outlinedInputClasses.notchedOutline}`]: {
769
+ borderColor: theme.palette.error.dark
770
+ },
771
+ [`&.${outlinedInputClasses.error}.${outlinedInputClasses.focused} .${outlinedInputClasses.notchedOutline}`]: {
772
+ borderColor: theme.palette.error.main
773
+ },
774
+ [`&.${outlinedInputClasses.disabled} .${outlinedInputClasses.notchedOutline}`]: {
775
+ borderColor: theme.palette.action.disabled,
776
+ pointerEvents: "auto"
777
+ },
778
+ [`&.${outlinedInputClasses.disabled}`]: {
779
+ backgroundColor: theme.palette.grey[50],
780
+ cursor: "not-allowed"
781
+ },
782
+ ...(ownerState.startAdornment && {
783
+ paddingLeft: theme.spacing(3)
784
+ }),
785
+ ...(ownerState.endAdornment && {
786
+ paddingRight: theme.spacing(3)
787
+ }),
788
+ ...(ownerState.multiline && {
789
+ padding: "0",
790
+ ...(ownerState.size === "small" && {
791
+ padding: "0"
792
+ })
657
793
  })
658
- })
659
- }),
660
- input: ({
661
- theme
662
- }) => ({
663
- padding: `calc(${theme.spacing(3)} - 1px) ${theme.spacing(3)}`,
664
- borderWidth: theme.mixins.borderWidth,
665
- borderStyle: theme.mixins.borderStyle,
666
- borderColor: "transparent"
667
- }),
668
- notchedOutline: ({
669
- theme
670
- }) => ({
671
- borderColor: theme.palette.grey[500]
672
- })
794
+ };
795
+ },
796
+ input: _ref29 => {
797
+ let {
798
+ theme
799
+ } = _ref29;
800
+ return {
801
+ padding: `calc(${theme.spacing(3)} - 1px) ${theme.spacing(3)}`,
802
+ borderWidth: theme.mixins.borderWidth,
803
+ borderStyle: theme.mixins.borderStyle,
804
+ borderColor: "transparent"
805
+ };
806
+ },
807
+ notchedOutline: _ref30 => {
808
+ let {
809
+ theme
810
+ } = _ref30;
811
+ return {
812
+ borderColor: theme.palette.grey[500]
813
+ };
814
+ }
673
815
  }
674
816
  },
675
817
  MuiRadio: {
@@ -677,26 +819,29 @@ export const components = {
677
819
  size: "small"
678
820
  },
679
821
  styleOverrides: {
680
- root: ({
681
- theme
682
- }) => ({
683
- "&:hover": {
684
- backgroundColor: "transparent"
685
- },
686
- padding: 0,
687
- ".Mui-error > &": {
688
- color: theme.palette.error.main,
822
+ root: _ref31 => {
823
+ let {
824
+ theme
825
+ } = _ref31;
826
+ return {
689
827
  "&:hover": {
690
- color: theme.palette.error.dark
828
+ backgroundColor: "transparent"
829
+ },
830
+ padding: 0,
831
+ ".Mui-error > &": {
832
+ color: theme.palette.error.main,
833
+ "&:hover": {
834
+ color: theme.palette.error.dark
835
+ }
836
+ },
837
+ "&.Mui-focusVisible": {
838
+ outlineColor: theme.palette.primary.main,
839
+ outlineOffset: 0,
840
+ outlineStyle: "solid",
841
+ outlineWidth: "2px"
691
842
  }
692
- },
693
- "&.Mui-focusVisible": {
694
- outlineColor: theme.palette.primary.main,
695
- outlineOffset: 0,
696
- outlineStyle: "solid",
697
- outlineWidth: "2px"
698
- }
699
- })
843
+ };
844
+ }
700
845
  }
701
846
  },
702
847
  MuiSnackbar: {
@@ -707,90 +852,355 @@ export const components = {
707
852
  }
708
853
  }
709
854
  },
855
+ MuiSvgIcon: {
856
+ defaultProps: {
857
+ fontSize: "inherit",
858
+ color: "inherit"
859
+ }
860
+ },
710
861
  MuiTab: {
711
862
  defaultProps: {
712
863
  iconPosition: "start"
713
864
  },
714
865
  styleOverrides: {
715
- root: ({
716
- theme,
717
- ownerState
718
- }) => ({
719
- maxWidth: `calc(${theme.mixins.maxWidth} / 2)`,
720
- minWidth: "unset",
721
- minHeight: "unset",
722
- padding: `${theme.spacing(4)} 0`,
723
- lineHeight: theme.typography.body.lineHeight,
724
- overflow: "visible",
725
- ...(ownerState.selected == true && {
726
- color: theme.palette.text.primary
727
- }),
728
- ...(ownerState.textColor === "inherit" && {
729
- color: "inherit",
730
- opacity: 1
731
- }),
732
- ...(ownerState.wrapped && {
733
- fontSize: theme.typography.caption.fontSize,
734
- lineHeight: theme.typography.caption.lineHeight
735
- }),
736
- "&:hover": {
737
- color: theme.palette.primary.main
738
- },
739
- "&:focus-visible::before, &.Mui-focusVisible::before": {
740
- content: "''",
741
- position: "absolute",
742
- top: theme.spacing(4),
743
- right: `calc(-1 * ${theme.spacing(2)})`,
744
- bottom: theme.spacing(4),
745
- left: `calc(-1 * ${theme.spacing(2)})`,
746
- borderWidth: theme.mixins.borderWidth,
747
- borderStyle: theme.mixins.borderStyle,
748
- borderColor: theme.palette.primary.main,
749
- borderRadius: theme.mixins.borderRadius
750
- },
751
- "&.Mui-selected": {
752
- color: theme.palette.text.primary,
753
- fontWeight: theme.typography.fontWeightBold,
866
+ root: _ref32 => {
867
+ let {
868
+ theme,
869
+ ownerState
870
+ } = _ref32;
871
+ return {
872
+ maxWidth: `calc(${theme.mixins.maxWidth} / 2)`,
873
+ minWidth: "unset",
874
+ minHeight: "unset",
875
+ padding: `${theme.spacing(4)} 0`,
876
+ lineHeight: theme.typography.body1.lineHeight,
877
+ overflow: "visible",
878
+ ...(ownerState.selected == true && {
879
+ color: theme.palette.text.primary
880
+ }),
881
+ ...(ownerState.textColor === "inherit" && {
882
+ color: "inherit",
883
+ opacity: 1
884
+ }),
885
+ ...(ownerState.wrapped && {
886
+ fontSize: theme.typography.subtitle1.fontSize,
887
+ lineHeight: theme.typography.subtitle1.lineHeight
888
+ }),
754
889
  "&:hover": {
755
890
  color: theme.palette.primary.main
891
+ },
892
+ "&:focus-visible::before, &.Mui-focusVisible::before": {
893
+ content: "''",
894
+ position: "absolute",
895
+ top: theme.spacing(4),
896
+ right: `calc(-1 * ${theme.spacing(2)})`,
897
+ bottom: theme.spacing(4),
898
+ left: `calc(-1 * ${theme.spacing(2)})`,
899
+ borderWidth: theme.mixins.borderWidth,
900
+ borderStyle: theme.mixins.borderStyle,
901
+ borderColor: theme.palette.primary.main,
902
+ borderRadius: theme.mixins.borderRadius
903
+ },
904
+ "&.Mui-selected": {
905
+ color: theme.palette.text.primary,
906
+ fontWeight: theme.typography.fontWeightBold,
907
+ "&:hover": {
908
+ color: theme.palette.primary.main
909
+ }
910
+ },
911
+ "&.Mui-disabled": {
912
+ cursor: "not-allowed",
913
+ pointerEvents: "unset",
914
+ "&:hover": {
915
+ color: theme.palette.text.disabled
916
+ }
756
917
  }
757
- },
758
- "&.Mui-disabled": {
759
- cursor: "not-allowed",
760
- pointerEvents: "unset",
918
+ };
919
+ }
920
+ }
921
+ },
922
+ MuiTable: {
923
+ styleOverrides: {
924
+ root: _ref33 => {
925
+ let {
926
+ theme,
927
+ ownerState
928
+ } = _ref33;
929
+ return {
930
+ display: "table",
931
+ width: "auto",
932
+ borderCollapse: "separate",
933
+ borderSpacing: 0,
934
+ border: `${theme.mixins.borderWidth} ${theme.mixins.borderStyle} ${theme.palette.grey[100]}`,
935
+ borderRadius: theme.mixins.borderRadius,
936
+ marginBlock: theme.spacing(0),
937
+ marginInline: theme.spacing(0),
938
+ lineHeight: "1.14285714",
939
+ "&:only-child": {
940
+ marginBlockEnd: 0
941
+ },
942
+ ...(ownerState.stickyHeader && {
943
+ borderCollapse: "separate"
944
+ })
945
+ };
946
+ }
947
+ }
948
+ },
949
+ MuiTableCell: {
950
+ styleOverrides: {
951
+ root: _ref34 => {
952
+ let {
953
+ theme,
954
+ ownerState
955
+ } = _ref34;
956
+ return { ...theme.typography.body1,
957
+ maxWidth: theme.mixins.maxWidth,
958
+ borderBottom: `${theme.mixins.borderWidth} ${theme.mixins.borderStyle} ${theme.palette.grey[100]}`,
959
+ textAlign: "start",
960
+ verticalAlign: "baseline",
961
+ padding: "unset",
962
+ paddingBlock: theme.spacing(4),
963
+ paddingInline: theme.spacing(4),
964
+ overflowWrap: "break-word",
965
+ [`.${tableBodyClasses.root} .${tableRowClasses.root}:last-of-type &`]: {
966
+ borderBottom: 0
967
+ },
968
+ [`.${tableRowClasses.selected} &`]: {
969
+ borderBottomColor: theme.palette.primary.light
970
+ },
971
+ [`.${tableRowClasses.selected}:hover &`]: {
972
+ borderBottomColor: theme.palette.primary.main
973
+ },
974
+ ...(ownerState.variant === "action" && {
975
+ paddingBlock: 0
976
+ }),
977
+ ...(ownerState.variant === "body" && {
978
+ color: theme.palette.text.primary
979
+ }),
980
+ ...(ownerState.variant === "date" && {
981
+ whiteSpace: "nowrap"
982
+ }),
983
+ ...(ownerState.variant === "footer" && {
984
+ color: theme.palette.text.secondary,
985
+ lineHeight: theme.typography.body1.lineHeight,
986
+ fontSize: theme.typography.body1.fontSize
987
+ }),
988
+ [`.${tableHeadClasses.root} &`]: {
989
+ color: theme.palette.text.secondary,
990
+ lineHeight: theme.typography.body1.lineHeight,
991
+ fontWeight: theme.typography.fontWeightBold,
992
+ backgroundColor: theme.palette.grey[50]
993
+ },
994
+ ...(ownerState.variant === "head" && {
995
+ lineHeight: theme.typography.body1.lineHeight,
996
+ fontWeight: theme.typography.fontWeightBold
997
+ }),
998
+ ...(ownerState.variant === "number" && {
999
+ textAlign: "right",
1000
+ fontFeatureSettings: '"lnum", "tnum"'
1001
+ }),
1002
+ ...(ownerState.padding === "checkbox" && {
1003
+ width: 48,
1004
+ padding: "0 0 0 4px"
1005
+ }),
1006
+ ...(ownerState.padding === "none" && {
1007
+ padding: 0
1008
+ }),
1009
+ ...(ownerState.align === "left" && {
1010
+ textAlign: "left"
1011
+ }),
1012
+ ...(ownerState.align === "center" && {
1013
+ textAlign: "center"
1014
+ }),
1015
+ ...(ownerState.align === "right" && {
1016
+ textAlign: "right",
1017
+ flexDirection: "row-reverse"
1018
+ }),
1019
+ ...(ownerState.align === "justify" && {
1020
+ textAlign: "justify"
1021
+ })
1022
+ };
1023
+ }
1024
+ }
1025
+ },
1026
+ MuiTableContainer: {
1027
+ styleOverrides: {
1028
+ root: _ref35 => {
1029
+ let {
1030
+ theme
1031
+ } = _ref35;
1032
+ return {
1033
+ width: "unset",
1034
+ maxWidth: "100%",
1035
+ marginBlockStart: theme.spacing(0),
1036
+ marginBlockEnd: theme.spacing(4),
1037
+ marginInline: 0,
1038
+ overflowX: "auto",
1039
+ "&:last-child": {
1040
+ marginBlock: 0
1041
+ }
1042
+ };
1043
+ }
1044
+ }
1045
+ },
1046
+ MuiTableRow: {
1047
+ styleOverrides: {
1048
+ root: _ref36 => {
1049
+ let {
1050
+ theme
1051
+ } = _ref36;
1052
+ return {
1053
+ verticalAlign: "unset",
1054
+ [`&.${tableRowClasses.hover}:hover`]: {
1055
+ backgroundColor: theme.palette.grey[50]
1056
+ },
1057
+ [`&.${tableRowClasses.selected}`]: {
1058
+ backgroundColor: theme.palette.primary.lighter,
1059
+ "&:hover": {
1060
+ backgroundColor: theme.palette.primary.lighter
1061
+ }
1062
+ }
1063
+ };
1064
+ }
1065
+ }
1066
+ },
1067
+ MuiTableSortLabel: {
1068
+ defaultProps: {
1069
+ IconComponent: ArrowDownIcon
1070
+ },
1071
+ styleOverrides: {
1072
+ root: _ref37 => {
1073
+ let {
1074
+ theme
1075
+ } = _ref37;
1076
+ return {
1077
+ cursor: "pointer",
1078
+ display: "inline-flex",
1079
+ justifyContent: "flex-start",
1080
+ flexDirection: "inherit",
1081
+ alignItems: "center",
1082
+ "&:focus-visible": {
1083
+ color: theme.palette.text.primary,
1084
+ outlineOffset: theme.spacing(4),
1085
+ outlineStyle: "solid",
1086
+ outlineWidth: "2px",
1087
+ outlineColor: theme.palette.primary.main
1088
+ },
761
1089
  "&:hover": {
762
- color: theme.palette.text.disabled
1090
+ color: theme.palette.text.primary,
1091
+ [`& .${tableSortLabelClasses.icon}`]: {
1092
+ opacity: 1
1093
+ }
1094
+ },
1095
+ [`&.${tableSortLabelClasses.active}`]: {
1096
+ color: theme.palette.text.secondary,
1097
+ [`& .${tableSortLabelClasses.icon}`]: {
1098
+ opacity: 1,
1099
+ color: "inherit"
1100
+ }
763
1101
  }
764
- }
765
- })
1102
+ };
1103
+ },
1104
+ icon: _ref38 => {
1105
+ let {
1106
+ theme,
1107
+ ownerState
1108
+ } = _ref38;
1109
+ return {
1110
+ fontSize: "inherit",
1111
+ marginRight: 0,
1112
+ marginLeft: 0,
1113
+ opacity: 0,
1114
+ color: "inherit",
1115
+ transition: theme.transitions.create(["opacity", "transform"], {
1116
+ duration: theme.transitions.duration.shorter
1117
+ }),
1118
+ userSelect: "none",
1119
+ [`.${tableCellClasses.alignRight} &`]: {
1120
+ marginInlineEnd: theme.spacing(2)
1121
+ },
1122
+ [`.${tableCellClasses.alignLeft} &`]: {
1123
+ marginInlineStart: theme.spacing(2)
1124
+ },
1125
+ ...(ownerState.direction === "desc" && {
1126
+ transform: "rotate(0deg)"
1127
+ }),
1128
+ ...(ownerState.direction === "asc" && {
1129
+ transform: "rotate(180deg)"
1130
+ })
1131
+ };
1132
+ }
766
1133
  }
767
1134
  },
768
1135
  MuiTabs: {
769
1136
  styleOverrides: {
770
- root: ({
771
- theme
772
- }) => ({
773
- minHeight: "unset",
774
- marginBottom: theme.spacing(5)
775
- }),
776
- flexContainer: ({
777
- theme
778
- }) => ({
779
- gap: theme.spacing(5),
780
- borderBottom: `${theme.mixins.borderWidth} ${theme.mixins.borderStyle} ${theme.palette.divider}`
781
- })
1137
+ root: _ref39 => {
1138
+ let {
1139
+ theme
1140
+ } = _ref39;
1141
+ return {
1142
+ minHeight: "unset",
1143
+ marginBottom: theme.spacing(5)
1144
+ };
1145
+ },
1146
+ flexContainer: _ref40 => {
1147
+ let {
1148
+ theme
1149
+ } = _ref40;
1150
+ return {
1151
+ gap: theme.spacing(5),
1152
+ borderBottom: `${theme.mixins.borderWidth} ${theme.mixins.borderStyle} ${theme.palette.divider}`
1153
+ };
1154
+ }
782
1155
  }
783
1156
  },
784
1157
  MuiTypography: {
785
1158
  defaultProps: {
786
- fontFamily: "'Public Sans', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu', 'Cantarell', 'Helvetica Neue', 'Noto Sans Arabic', sans-serif"
1159
+ fontFamily: "'Public Sans', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu', 'Cantarell', 'Helvetica Neue', 'Noto Sans Arabic', sans-serif",
1160
+ variantMapping: {
1161
+ h1: "h1",
1162
+ h2: "h2",
1163
+ h3: "h3",
1164
+ h4: "h4",
1165
+ h5: "h5",
1166
+ h6: "h6",
1167
+ subtitle1: "p",
1168
+ body1: "p",
1169
+ inherit: "p",
1170
+ kbd: "kbd",
1171
+ legend: "legend"
1172
+ }
787
1173
  },
788
1174
  styleOverrides: {
789
- paragraph: ({
790
- theme
791
- }) => ({
792
- marginBottom: theme.spacing(4)
793
- })
1175
+ paragraph: _ref41 => {
1176
+ let {
1177
+ theme
1178
+ } = _ref41;
1179
+ return {
1180
+ marginBottom: theme.spacing(4)
1181
+ };
1182
+ },
1183
+ root: _ref42 => {
1184
+ let {
1185
+ theme,
1186
+ ownerState
1187
+ } = _ref42;
1188
+ return { ...(ownerState.variant === "kbd" && {
1189
+ display: "inline-block",
1190
+ minWidth: `calc(${theme.typography.subtitle1.fontSize} * ${theme.typography.h5.lineHeight})`,
1191
+ borderStyle: theme.mixins.borderStyle,
1192
+ borderWidth: theme.mixins.borderWidth,
1193
+ borderRadius: theme.mixins.borderRadius,
1194
+ borderColor: theme.palette.grey[200],
1195
+ backgroundColor: theme.palette.grey[50],
1196
+ padding: `calc(${theme.spacing(1)} / 2) ${theme.spacing(1)}`,
1197
+ fontSize: theme.typography.subtitle1.fontSize,
1198
+ fontWeight: theme.typography.fontWeightRegular,
1199
+ lineHeight: theme.typography.h5.lineHeight,
1200
+ boxShadow: `0 1px 1px 0 hsla(240, 6%, 12%, 0.05)`
1201
+ })
1202
+ };
1203
+ }
794
1204
  }
795
1205
  }
796
1206
  };