@superdispatch/ui 0.14.0 → 0.16.0-alpha.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 (56) hide show
  1. package/dist-node/index.js +1436 -1382
  2. package/dist-node/index.js.map +1 -1
  3. package/dist-src/adaptive-toolbar/AdaptiveToolbar.js +12 -12
  4. package/dist-src/app-bar/AppBarOverrides.js +6 -4
  5. package/dist-src/autocomplete/AutocompleteOverrides.js +13 -16
  6. package/dist-src/avatar/AvatarOverrides.js +14 -12
  7. package/dist-src/avatar-button/AvatarButton.js +78 -92
  8. package/dist-src/button/Button.js +11 -15
  9. package/dist-src/button/ButtonOverrides.js +147 -149
  10. package/dist-src/card/CardOverrides.js +10 -6
  11. package/dist-src/card-button/CardButton.js +78 -75
  12. package/dist-src/checkbox/CheckboxField.js +1 -1
  13. package/dist-src/checkbox/CheckboxGroudField.js +1 -1
  14. package/dist-src/checkbox/CheckboxOverrides.js +60 -50
  15. package/dist-src/chip/ChipOverrides.js +88 -85
  16. package/dist-src/description-list/DescriptionList.js +58 -55
  17. package/dist-src/dialog/DialogOverrides.js +31 -25
  18. package/dist-src/drawer/DrawerActions.js +32 -34
  19. package/dist-src/drawer/DrawerContent.js +10 -26
  20. package/dist-src/drawer/DrawerList.js +8 -27
  21. package/dist-src/drawer/DrawerOverrides.js +12 -10
  22. package/dist-src/drawer/DrawerTitle.js +46 -40
  23. package/dist-src/grid/GridStack.js +1 -1
  24. package/dist-src/grid/InlineGrid.js +2 -2
  25. package/dist-src/icon-button/IconButtonOverrides.js +48 -32
  26. package/dist-src/index.js +0 -2
  27. package/dist-src/info-card/InfoCard.js +28 -48
  28. package/dist-src/link/LinkOverrides.js +29 -26
  29. package/dist-src/list/ListOverrides.js +10 -7
  30. package/dist-src/menu/MenuOverrides.js +28 -14
  31. package/dist-src/overflow-text/OverflowText.js +35 -34
  32. package/dist-src/pagination/PaginationOverrides.js +27 -32
  33. package/dist-src/paper/PaperOverrides.js +8 -6
  34. package/dist-src/radio/RadioField.js +1 -1
  35. package/dist-src/radio/RadioGroupField.js +1 -1
  36. package/dist-src/radio/RadioOverrides.js +38 -36
  37. package/dist-src/responsive/ResponsiveContext.js +1 -1
  38. package/dist-src/snackbar/Snackbar.js +1 -1
  39. package/dist-src/snackbar/SnackbarContent.js +3 -3
  40. package/dist-src/snackbar/SnackbarOverrides.js +28 -18
  41. package/dist-src/svg-icon/SvgIconOverrides.js +26 -18
  42. package/dist-src/switch/SwitchOverrides.js +72 -71
  43. package/dist-src/tabs/TabsOverrides.js +34 -30
  44. package/dist-src/tag/Tag.js +2 -2
  45. package/dist-src/text-field/TextFieldOverrides.js +158 -137
  46. package/dist-src/theme/CssBaselineOverrides.js +8 -0
  47. package/dist-src/theme/ThemeProvider.js +25 -28
  48. package/dist-src/tiles/Tiles.js +4 -3
  49. package/dist-src/toolbar/ToolbarOverrides.js +10 -8
  50. package/dist-src/tooltip/TooltipOverrides.js +33 -30
  51. package/dist-src/typography/TypographyOverrides.js +14 -2
  52. package/dist-src/utils/mergeRefs.js +10 -7
  53. package/dist-types/index.d.ts +31 -39
  54. package/dist-web/index.js +1387 -1331
  55. package/dist-web/index.js.map +1 -1
  56. package/package.json +9 -3
package/dist-web/index.js CHANGED
@@ -1,49 +1,50 @@
1
1
  import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
2
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
+ import _taggedTemplateLiteral from '@babel/runtime/helpers/taggedTemplateLiteral';
3
4
  import { ResizeObserver } from '@juggle/resize-observer';
4
- import { Button as Button$1, CircularProgress, Toolbar, Grid, Typography, Menu, MenuItem, ButtonBase, Avatar, FormControl, FormControlLabel, Checkbox, FormHelperText, FormLabel, FormGroup, useMediaQuery, Tooltip, SvgIcon, AppBar, List, Card, CardContent, Radio, RadioGroup, SnackbarContent as SnackbarContent$1, IconButton, Portal, Snackbar as Snackbar$1, Slide, CssBaseline, createTheme, createGenerateClassName } from '@material-ui/core';
5
- import { MoreHoriz, Close, Warning, CheckCircle } from '@material-ui/icons';
6
- import { makeStyles, StylesProvider, ThemeProvider as ThemeProvider$1 } from '@material-ui/styles';
5
+ import { MoreHoriz, Close, Warning, CheckCircle } from '@mui/icons-material';
6
+ import { CircularProgress, Toolbar, Grid, Typography, Menu, MenuItem, styled, Avatar, ButtonBase, FormControl, FormControlLabel, Checkbox, FormHelperText, FormLabel, FormGroup, useMediaQuery, Tooltip, SvgIcon, AppBar, List, CardContent, Card, Radio, RadioGroup, SnackbarContent as SnackbarContent$1, IconButton, Portal, Snackbar as Snackbar$1, Slide, autocompleteClasses, buttonClasses, checkboxClasses, chipClasses, dialogClasses, iconButtonClasses, listItemClasses, menuItemClasses, paginationItemClasses, radioClasses, switchClasses, formLabelClasses, inputBaseClasses, outlinedInputClasses, tooltipClasses, ThemeProvider as ThemeProvider$1, CssBaseline, createTheme } from '@mui/material';
7
7
  import { useEventHandler, useDeepEqualValue, useValueObserver, useDeepEqualMemo, useConstant } from '@superdispatch/hooks';
8
- import { forwardRef, useRef, useState, useLayoutEffect, useMemo, useContext, createContext, Children, useCallback } from 'react';
8
+ import { forwardRef, useRef, useState, useLayoutEffect, useContext, createContext, useMemo, Children, useCallback } from 'react';
9
+ import { LoadingButton, loadingButtonClasses } from '@mui/lab';
9
10
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
10
- import clsx from 'clsx';
11
- import styled, { css, ThemeProvider as ThemeProvider$2 } from 'styled-components';
11
+ import styled$1, { css } from 'styled-components';
12
12
  import flattenChildren from 'react-keyed-flatten-children';
13
- import createBreakpoints from '@material-ui/core/styles/createBreakpoints';
13
+ import { makeStyles, StylesProvider, createGenerateClassName } from '@mui/styles';
14
+ import clsx from 'clsx';
15
+ import { createBreakpoints } from '@mui/system';
14
16
 
15
- var _excluded = ["size", "children", "disabled", "isActive", "isLoading", "color"];
17
+ var _excluded = ["size", "children", "isActive", "isLoading", "color"];
16
18
  var Button = /*#__PURE__*/forwardRef((_ref, ref) => {
17
19
  var {
18
20
  size,
19
21
  children,
20
- disabled,
21
22
  isActive,
22
23
  isLoading,
23
24
  color = 'primary'
24
25
  } = _ref,
25
26
  props = _objectWithoutProperties(_ref, _excluded);
26
27
 
27
- return /*#__PURE__*/jsx(Button$1, _objectSpread(_objectSpread({}, props), {}, {
28
+ return /*#__PURE__*/jsx(LoadingButton, _objectSpread(_objectSpread({}, props), {}, {
28
29
  ref: ref,
29
30
  size: size,
30
31
  "data-color": color,
31
- "aria-busy": isLoading,
32
+ loading: isLoading,
32
33
  "aria-expanded": isActive,
33
- disabled: disabled || isLoading,
34
- color: color === 'primary' ? color : 'default',
35
- children: !isLoading ? children : /*#__PURE__*/jsxs(Fragment, {
36
- children: [children, /*#__PURE__*/jsx(CircularProgress, {
37
- size: "1em",
38
- color: "inherit"
39
- })]
40
- })
34
+ color: color === 'primary' ? color : 'inherit',
35
+ loadingIndicator: /*#__PURE__*/jsx(CircularProgress, {
36
+ size: "1em",
37
+ color: "inherit"
38
+ }),
39
+ children: children
41
40
  }));
42
41
  });
43
42
  if (process.env.NODE_ENV !== "production") Button.displayName = "Button";
44
43
 
45
44
  var _excluded$1 = ["items"];
46
45
 
46
+ var _templateObject;
47
+
47
48
  function useResizeObserver(node, observer) {
48
49
  var handler = useEventHandler(observer);
49
50
  useLayoutEffect(() => {
@@ -62,20 +63,15 @@ function useResizeObserver(node, observer) {
62
63
  }, [node, handler]);
63
64
  }
64
65
 
65
- var useStyles = /*#__PURE__*/makeStyles({
66
- actions: {
67
- overflow: 'hidden'
68
- }
69
- }, {
66
+ var GridActionsItem = /*#__PURE__*/styled(Grid, {
70
67
  name: 'SD-AdaptiveToolbar'
71
- });
68
+ })(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n overflow: hidden;\n"])));
72
69
  var AdaptiveToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
73
70
  var {
74
71
  items
75
72
  } = _ref,
76
73
  props = _objectWithoutProperties(_ref, _excluded$1);
77
74
 
78
- var styles = useStyles();
79
75
  var itemNodes = useRef([]);
80
76
  var optionsButtonRef = useRef(null);
81
77
  var [firstHiddenIdx, setFirstHiddenIdx] = useState(-1);
@@ -118,9 +114,8 @@ var AdaptiveToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
118
114
  spacing: 1,
119
115
  wrap: "nowrap",
120
116
  ref: setRootNode,
121
- children: [/*#__PURE__*/jsx(Grid, {
117
+ children: [/*#__PURE__*/jsx(GridActionsItem, {
122
118
  item: true,
123
- className: styles.actions,
124
119
  children: /*#__PURE__*/jsx(Grid, {
125
120
  container: true,
126
121
  spacing: 1,
@@ -133,6 +128,8 @@ var AdaptiveToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
133
128
  },
134
129
  children: /*#__PURE__*/jsx(Button, _objectSpread(_objectSpread({
135
130
  type: "button",
131
+ color: "primary",
132
+ variant: "outlined",
136
133
  onClick: item.onClick
137
134
  }, item.ButtonProps), {}, {
138
135
  children: /*#__PURE__*/jsx(Typography, {
@@ -149,6 +146,7 @@ var AdaptiveToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
149
146
  component: "div",
150
147
  children: [/*#__PURE__*/jsx(Button, {
151
148
  type: "button",
149
+ variant: "outlined",
152
150
  onClick: _ref2 => {
153
151
  var {
154
152
  currentTarget
@@ -256,66 +254,79 @@ function isColorProp(name) {
256
254
  return typeof name == 'string' && Object.prototype.hasOwnProperty.call(Color, name);
257
255
  }
258
256
 
259
- var _excluded$2 = ["size", "icon", "isLoading", "classes", "disabled", "avatarRef", "className", "alt", "imgProps", "sizes", "src", "srcSet", "variant", "children"],
260
- _excluded2 = ["button", "overlay", "progress", "withIcon", "sizeLarge"];
261
- var useStyles$1 = /*#__PURE__*/makeStyles(theme => {
257
+ var _excluded$2 = ["size", "icon", "isLoading", "disabled", "avatarRef", "alt", "imgProps", "sizes", "src", "srcSet", "variant", "children"];
258
+ var Overlay = /*#__PURE__*/styled('div')(_ref => {
259
+ var {
260
+ theme
261
+ } = _ref;
262
262
  var sm = theme.breakpoints.up('sm');
263
263
  return {
264
- button: {
265
- borderRadius: '50%',
266
- '&[disabled], &[aria-busy="true"]': {
267
- '& > $overlay': {
268
- backgroundColor: Color.White50
269
- }
270
- },
271
- '&:not([disabled])[aria-busy="false"]': {
272
- '&:hover, &:focus': {
273
- '&$withIcon > $overlay': {
274
- backgroundColor: Color.Black50,
275
- '& > svg': {
276
- opacity: 1
277
- }
278
- },
279
- '&:not($withIcon) > $overlay': {
280
- backgroundColor: Color.Black20
281
- }
282
- }
264
+ top: 0,
265
+ left: 0,
266
+ right: 0,
267
+ bottom: 0,
268
+ position: 'absolute',
269
+ display: 'flex',
270
+ alignItems: 'center',
271
+ justifyContent: 'center',
272
+ borderRadius: '50%',
273
+ backgroundColor: Color.Transparent,
274
+ transition: theme.transitions.create('background-color'),
275
+ '& > svg': {
276
+ opacity: 0,
277
+ color: Color.White,
278
+ transition: theme.transitions.create('opacity'),
279
+ fontSize: theme.spacing(3),
280
+ [sm]: {
281
+ fontSize: theme.spacing(2)
283
282
  }
284
- },
285
- overlay: {
286
- top: 0,
287
- left: 0,
288
- right: 0,
289
- bottom: 0,
290
- position: 'absolute',
291
- display: 'flex',
292
- alignItems: 'center',
293
- justifyContent: 'center',
294
- borderRadius: '50%',
295
- backgroundColor: Color.Transparent,
296
- transition: theme.transitions.create('background-color'),
297
- '& > svg': {
298
- opacity: 0,
299
- color: Color.White,
300
- transition: theme.transitions.create('opacity'),
301
- fontSize: theme.spacing(3),
302
- [sm]: {
303
- fontSize: theme.spacing(2)
304
- }
283
+ }
284
+ };
285
+ });
286
+ var StyledProgress = /*#__PURE__*/styled(CircularProgress)(_ref2 => {
287
+ var {
288
+ theme
289
+ } = _ref2;
290
+ var sm = theme.breakpoints.up('sm');
291
+ return {
292
+ top: 0,
293
+ left: 0,
294
+ position: 'absolute',
295
+ fontSize: theme.spacing(5),
296
+ [sm]: {
297
+ fontSize: theme.spacing(4)
298
+ }
299
+ };
300
+ });
301
+ var StyledButton = /*#__PURE__*/styled(ButtonBase, {
302
+ name: 'SD-AvatarButton'
303
+ })(_ref3 => {
304
+ var {
305
+ theme
306
+ } = _ref3;
307
+ var sm = theme.breakpoints.up('sm');
308
+ return {
309
+ borderRadius: '50%',
310
+ '&[disabled], &[aria-busy="true"]': {
311
+ ["& > ".concat(Overlay)]: {
312
+ backgroundColor: Color.White50
305
313
  }
306
314
  },
307
- progress: {
308
- top: 0,
309
- left: 0,
310
- position: 'absolute',
311
- fontSize: theme.spacing(5),
312
- [sm]: {
313
- fontSize: theme.spacing(4)
315
+ '&:not([disabled])[aria-busy="false"]': {
316
+ '&:hover, &:focus': {
317
+ ["&[data-with-icon=\"true\"] > ".concat(Overlay)]: {
318
+ backgroundColor: Color.Black50,
319
+ '& > svg': {
320
+ opacity: 1
321
+ }
322
+ },
323
+ ["&:not([data-with-icon=\"true\"]) > ".concat(Overlay)]: {
324
+ backgroundColor: Color.Black20
325
+ }
314
326
  }
315
327
  },
316
- withIcon: {},
317
- sizeLarge: {
318
- '& > $root': _objectSpread(_objectSpread({}, theme.typography.h2), {}, {
328
+ '&[data-size-large="true"]': {
329
+ '& > .MuiAvatar-root': _objectSpread(_objectSpread({}, theme.typography.h2), {}, {
319
330
  width: theme.spacing(7),
320
331
  height: theme.spacing(7),
321
332
  [sm]: {
@@ -323,8 +334,8 @@ var useStyles$1 = /*#__PURE__*/makeStyles(theme => {
323
334
  height: theme.spacing(8)
324
335
  }
325
336
  }),
326
- '& > $overlay': {
327
- '& > $progress': {
337
+ ["& > ".concat(Overlay)]: {
338
+ ["& > ".concat(StyledProgress)]: {
328
339
  fontSize: theme.spacing(7),
329
340
  [sm]: {
330
341
  fontSize: theme.spacing(8)
@@ -337,27 +348,16 @@ var useStyles$1 = /*#__PURE__*/makeStyles(theme => {
337
348
  }
338
349
  }
339
350
  }
340
- },
341
- root: {},
342
- colorDefault: {},
343
- circular: {},
344
- rounded: {},
345
- square: {},
346
- img: {},
347
- fallback: {}
348
- };
349
- }, {
350
- name: 'SD-AvatarButton'
351
+ }
352
+ };
351
353
  });
352
- var AvatarButton = /*#__PURE__*/forwardRef((_ref, ref) => {
354
+ var AvatarButton = /*#__PURE__*/forwardRef((_ref4, ref) => {
353
355
  var {
354
356
  size,
355
357
  icon,
356
358
  isLoading = false,
357
- classes,
358
359
  disabled = false,
359
360
  avatarRef,
360
- className,
361
361
  alt,
362
362
  imgProps,
363
363
  sizes,
@@ -365,30 +365,18 @@ var AvatarButton = /*#__PURE__*/forwardRef((_ref, ref) => {
365
365
  srcSet,
366
366
  variant,
367
367
  children
368
- } = _ref,
369
- props = _objectWithoutProperties(_ref, _excluded$2);
370
-
371
- var _useStyles = useStyles$1({
372
- classes
373
- }),
374
- {
375
- button: buttonClassName,
376
- overlay: overlayClassName,
377
- progress: progressClassName,
378
- withIcon: withIconClassName,
379
- sizeLarge: sizeLargeClassName
380
- } = _useStyles,
381
- avatarClasses = _objectWithoutProperties(_useStyles, _excluded2);
368
+ } = _ref4,
369
+ props = _objectWithoutProperties(_ref4, _excluded$2);
382
370
 
383
- return /*#__PURE__*/jsxs(ButtonBase, _objectSpread(_objectSpread({}, props), {}, {
371
+ return /*#__PURE__*/jsxs(StyledButton, _objectSpread(_objectSpread({}, props), {}, {
384
372
  ref: ref,
385
373
  "aria-busy": isLoading,
386
374
  "aria-disabled": disabled,
387
375
  disabled: disabled || isLoading,
388
- className: clsx(className, buttonClassName, !!icon && withIconClassName, size === 'large' && sizeLargeClassName),
376
+ "data-with-icon": !!icon,
377
+ "data-size-large": size === 'large',
389
378
  children: [/*#__PURE__*/jsx(Avatar, {
390
379
  ref: avatarRef,
391
- classes: avatarClasses,
392
380
  variant: variant,
393
381
  alt: alt,
394
382
  src: src,
@@ -396,11 +384,9 @@ var AvatarButton = /*#__PURE__*/forwardRef((_ref, ref) => {
396
384
  srcSet: srcSet,
397
385
  imgProps: imgProps,
398
386
  children: children
399
- }), /*#__PURE__*/jsxs("div", {
400
- className: overlayClassName,
401
- children: [icon, isLoading && /*#__PURE__*/jsx(CircularProgress, {
387
+ }), /*#__PURE__*/jsxs(Overlay, {
388
+ children: [icon, isLoading && /*#__PURE__*/jsx(StyledProgress, {
402
389
  size: "1em",
403
- className: progressClassName,
404
390
  thickness: size === 'large' ? 2.5 : 1.5
405
391
  })]
406
392
  })]
@@ -409,8 +395,11 @@ var AvatarButton = /*#__PURE__*/forwardRef((_ref, ref) => {
409
395
  if (process.env.NODE_ENV !== "production") AvatarButton.displayName = "AvatarButton";
410
396
 
411
397
  var _excluded$3 = ["hint", "size", "error", "classes", "className", "children", "endIcon", "startIcon", "disabled"];
412
- var useStyles$2 = /*#__PURE__*/makeStyles(theme => ({
413
- root: {
398
+ var StyledButton$1 = /*#__PURE__*/styled(ButtonBase)(_ref => {
399
+ var {
400
+ theme
401
+ } = _ref;
402
+ return {
414
403
  width: '100%',
415
404
  display: 'flex',
416
405
  alignItems: 'center',
@@ -421,66 +410,74 @@ var useStyles$2 = /*#__PURE__*/makeStyles(theme => ({
421
410
  borderRadius: theme.spacing(0.5),
422
411
  padding: theme.spacing(1.5),
423
412
  minHeight: theme.spacing(13),
424
- transition: theme.transitions.create(['color', 'box-shadow', 'border-color', 'background-color'])
425
- },
426
- disabled: {
427
- color: Color.Dark200,
428
- borderColor: Color.Silver500,
429
- backgroundColor: Color.Silver100
430
- },
431
- error: {
432
- color: Color.Red300,
433
- borderColor: Color.Red300,
434
- backgroundColor: Color.Red50,
435
- '&:focus': {
436
- backgroundColor: Color.Red75
437
- }
438
- },
439
- primary: {
440
- color: Color.Blue300,
441
- borderColor: Color.Silver500,
442
- '&:focus': {
443
- backgroundColor: Color.Blue50
413
+ transition: theme.transitions.create(['color', 'box-shadow', 'border-color', 'background-color']),
414
+ '&[data-disabled="true"]': {
415
+ color: Color.Dark200,
416
+ borderColor: Color.Silver500,
417
+ backgroundColor: Color.Silver100
444
418
  },
445
- '&:hover, &:active': {
446
- borderColor: Color.Blue300,
447
- backgroundColor: Color.Blue50
419
+ '&[data-primary="true"]': {
420
+ color: Color.Blue300,
421
+ borderColor: Color.Silver500,
422
+ '&:focus': {
423
+ backgroundColor: Color.Blue50
424
+ },
425
+ '&:hover, &:active': {
426
+ borderColor: Color.Blue300,
427
+ backgroundColor: Color.Blue50
428
+ }
429
+ },
430
+ '&[data-error="true"]': {
431
+ color: Color.Red300,
432
+ borderColor: Color.Red300,
433
+ backgroundColor: Color.Red50,
434
+ '&:focus': {
435
+ backgroundColor: Color.Red75
436
+ }
437
+ },
438
+ '&[data-size="small"]': {
439
+ minHeight: theme.spacing(6)
440
+ },
441
+ '&[data-size="large"]': {
442
+ minHeight: theme.spacing(17.5)
448
443
  }
449
- },
450
- sizeSmall: {
451
- minHeight: theme.spacing(6)
452
- },
453
- sizeLarge: {
454
- minHeight: theme.spacing(17.5)
455
- },
456
- label: {
457
- display: 'flex',
458
- alignItems: 'center'
459
- },
460
- icon: {
444
+ };
445
+ });
446
+ var Label = /*#__PURE__*/styled(Typography)({
447
+ display: 'flex',
448
+ alignItems: 'center'
449
+ });
450
+ var Hint = /*#__PURE__*/styled(Typography)(_ref2 => {
451
+ var {
452
+ theme
453
+ } = _ref2;
454
+ return {
455
+ marginTop: theme.spacing(0.5)
456
+ };
457
+ });
458
+ var Icon = /*#__PURE__*/styled('span')(_ref3 => {
459
+ var {
460
+ theme
461
+ } = _ref3;
462
+ return {
461
463
  display: 'flex',
462
464
  '& svg': {
463
465
  fontSize: theme.spacing(3),
464
466
  [theme.breakpoints.up('sm')]: {
465
467
  fontSize: theme.spacing(2.5)
466
468
  }
469
+ },
470
+ '&[data-placement="start"]': {
471
+ marginRight: theme.spacing(1),
472
+ marginLeft: theme.spacing(-0.5)
473
+ },
474
+ '&[data-placement="end"]': {
475
+ marginLeft: theme.spacing(1),
476
+ marginRight: theme.spacing(-0.5)
467
477
  }
468
- },
469
- startIcon: {
470
- marginRight: theme.spacing(1),
471
- marginLeft: theme.spacing(-0.5)
472
- },
473
- endIcon: {
474
- marginLeft: theme.spacing(1),
475
- marginRight: theme.spacing(-0.5)
476
- },
477
- hint: {
478
- marginTop: theme.spacing(0.5)
479
- }
480
- }), {
481
- name: 'SD-CardButton'
478
+ };
482
479
  });
483
- var CardButton = /*#__PURE__*/forwardRef((_ref, ref) => {
480
+ var CardButton = /*#__PURE__*/forwardRef((_ref4, ref) => {
484
481
  var {
485
482
  hint,
486
483
  size,
@@ -491,39 +488,33 @@ var CardButton = /*#__PURE__*/forwardRef((_ref, ref) => {
491
488
  endIcon,
492
489
  startIcon,
493
490
  disabled
494
- } = _ref,
495
- props = _objectWithoutProperties(_ref, _excluded$3);
491
+ } = _ref4,
492
+ props = _objectWithoutProperties(_ref4, _excluded$3);
496
493
 
497
- var styles = useStyles$2({
498
- classes
499
- });
500
- return /*#__PURE__*/jsx(ButtonBase, _objectSpread(_objectSpread({}, props), {}, {
494
+ return /*#__PURE__*/jsx(StyledButton$1, _objectSpread(_objectSpread({}, props), {}, {
501
495
  ref: ref,
502
496
  disabled: disabled,
503
- className: clsx(styles.root, className, disabled ? styles.disabled : error ? styles.error : styles.primary, {
504
- 'small': styles.sizeSmall,
505
- 'large': styles.sizeLarge
506
- }[size]),
507
- children: error ? /*#__PURE__*/jsx(Typography, {
497
+ "data-size": size,
498
+ "data-disabled": !!disabled,
499
+ "data-error": !disabled && !!error,
500
+ "data-primary": !disabled && !error,
501
+ children: error ? /*#__PURE__*/jsx(Label, {
508
502
  variant: "h4",
509
503
  color: "inherit",
510
- className: styles.label,
511
504
  children: error
512
505
  }) : /*#__PURE__*/jsxs(Fragment, {
513
- children: [/*#__PURE__*/jsxs(Typography, {
506
+ children: [/*#__PURE__*/jsxs(Label, {
514
507
  variant: "h4",
515
508
  color: "inherit",
516
- className: styles.label,
517
- children: [!!startIcon && /*#__PURE__*/jsx("span", {
518
- className: clsx(styles.icon, styles.startIcon),
509
+ children: [!!startIcon && /*#__PURE__*/jsx(Icon, {
510
+ "data-placement": "start",
519
511
  children: startIcon
520
- }), children, !!endIcon && /*#__PURE__*/jsx("span", {
521
- className: clsx(styles.icon, styles.endIcon),
512
+ }), children, !!endIcon && /*#__PURE__*/jsx(Icon, {
513
+ "data-placement": "end",
522
514
  children: endIcon
523
515
  })]
524
- }), !!hint && /*#__PURE__*/jsx(Typography, {
516
+ }), !!hint && /*#__PURE__*/jsx(Hint, {
525
517
  color: "textSecondary",
526
- className: styles.hint,
527
518
  children: hint
528
519
  })]
529
520
  })
@@ -701,7 +692,7 @@ function columnRootMixin(width) {
701
692
  return css(["flex-grow:0;flex-basis:", ";width:", ";flex-shrink:", ";"], flexBasisMixin(width), width === 'fluid' ? '100%' : 'auto', width === 'fluid' || width === 'adaptive' ? 1 : 0);
702
693
  }
703
694
 
704
- var ColumnRoot = /*#__PURE__*/styled.div.withConfig({
695
+ var ColumnRoot = /*#__PURE__*/styled$1.div.withConfig({
705
696
  displayName: "Column__ColumnRoot",
706
697
  componentId: "SD__sc-m9n6o6-0"
707
698
  })(_ref => {
@@ -785,7 +776,7 @@ function columnsRootMixin(align, spaceProp, isReversed, isCollapsed) {
785
776
  return css(["--column-space-left:", "px;--column-space-top:", "px;--column-space-bottom:", "px;align-items:", ";margin-left:", "px;width:", ";flex-direction:", ";"], isCollapsed ? 0 : space, isCollapsed && isReversed ? space : 0, isCollapsed && !isReversed ? space : 0, parseAlignProp(align), isCollapsed ? 0 : "-".concat(space), isCollapsed ? '100%' : "calc(100% + ".concat(space, "px)"), isCollapsed ? !isReversed ? 'column' : 'column-reverse' : !isReversed ? 'row' : 'row-reverse');
786
777
  }
787
778
 
788
- var Columns = /*#__PURE__*/styled.div.withConfig({
779
+ var Columns = /*#__PURE__*/styled$1.div.withConfig({
789
780
  displayName: "Columns",
790
781
  componentId: "SD__sc-1a73118-0"
791
782
  })(_ref => {
@@ -863,48 +854,52 @@ function VisibilityObserver(_ref2) {
863
854
  }
864
855
 
865
856
  var _excluded$7 = ["title", "enterDelay"],
866
- _excluded2$1 = ["onClick", "children", "className", "disableUnderline", "TooltipProps"];
867
- var useStyles$3 = /*#__PURE__*/makeStyles(theme => ({
868
- root: {
857
+ _excluded2 = ["onClick", "children", "disableUnderline", "TooltipProps"];
858
+ var Root = /*#__PURE__*/styled(Typography, {
859
+ name: 'SD-OverflowText',
860
+ shouldForwardProp: prop => prop !== 'truncated'
861
+ })(_ref => {
862
+ var {
863
+ truncated,
864
+ theme
865
+ } = _ref;
866
+ return _objectSpread({
869
867
  marginBottom: -1,
870
868
  borderBottom: '1px dashed transparent',
871
- transition: theme.transitions.create('border'),
872
- '&$truncated': {
873
- cursor: 'pointer',
874
- borderBottomColor: Color.Silver500
875
- }
876
- },
877
- truncated: {},
878
- sentinel: {
879
- width: 1,
880
- height: '100%',
881
- display: 'inline-block'
882
- }
883
- }), {
884
- name: 'SD-OverflowText'
869
+ transition: theme.transitions.create('border')
870
+ }, truncated && {
871
+ cursor: 'pointer',
872
+ borderBottomColor: Color.Silver500
873
+ });
874
+ });
875
+ var Sential = /*#__PURE__*/styled('span', {
876
+ name: 'SD-OverflowText',
877
+ slot: 'Sential'
878
+ })({
879
+ width: 1,
880
+ height: '100%',
881
+ display: 'inline-block'
885
882
  });
886
- var OverflowText = /*#__PURE__*/forwardRef((_ref, rootRef) => {
883
+ var OverflowText = /*#__PURE__*/forwardRef((_ref2, rootRef) => {
887
884
  var {
888
885
  onClick: _onClick,
889
886
  children,
890
- className,
891
887
  disableUnderline,
892
888
  TooltipProps: {
893
889
  title = children,
894
890
  enterDelay = 1000
895
891
  } = {}
896
- } = _ref,
897
- tooltipProps = _objectWithoutProperties(_ref.TooltipProps, _excluded$7),
898
- props = _objectWithoutProperties(_ref, _excluded2$1);
892
+ } = _ref2,
893
+ tooltipProps = _objectWithoutProperties(_ref2.TooltipProps, _excluded$7),
894
+ props = _objectWithoutProperties(_ref2, _excluded2);
899
895
 
900
896
  var [isOpen, setIsOpen] = useState(false);
901
- var styles = useStyles$3();
902
897
  return /*#__PURE__*/jsx(VisibilityObserver, {
903
- render: _ref2 => {
898
+ render: _ref3 => {
904
899
  var {
905
900
  ref,
906
901
  visibility
907
- } = _ref2;
902
+ } = _ref3;
908
903
  var isTooltipEnabled = !!children && visibility === 'invisible';
909
904
  return /*#__PURE__*/jsx(Tooltip, _objectSpread(_objectSpread({}, tooltipProps), {}, {
910
905
  enterDelay: 1000,
@@ -917,17 +912,16 @@ var OverflowText = /*#__PURE__*/forwardRef((_ref, rootRef) => {
917
912
  onClose: () => {
918
913
  setIsOpen(false);
919
914
  },
920
- children: /*#__PURE__*/jsxs(Typography, _objectSpread(_objectSpread({}, props), {}, {
915
+ children: /*#__PURE__*/jsxs(Root, _objectSpread(_objectSpread({}, props), {}, {
921
916
  ref: rootRef,
922
917
  noWrap: true,
918
+ truncated: !disableUnderline && visibility === 'invisible',
923
919
  onClick: event => {
924
920
  setIsOpen(true);
925
921
  _onClick === null || _onClick === void 0 ? void 0 : _onClick(event);
926
922
  },
927
- className: clsx(styles.root, className, !disableUnderline && visibility === 'invisible' && styles.truncated),
928
- children: [children, !!children && /*#__PURE__*/jsx("span", {
929
- ref: ref,
930
- className: styles.sentinel
923
+ children: [children, !!children && /*#__PURE__*/jsx(Sential, {
924
+ ref: ref
931
925
  })]
932
926
  }))
933
927
  }));
@@ -947,29 +941,18 @@ function useUID(defaultID) {
947
941
  }
948
942
 
949
943
  var _excluded$8 = ["size"];
950
-
951
- function sizeVariant(theme, mobileSpacing, desktopSpacing) {
944
+ var DescriptionListItemRoot = /*#__PURE__*/styled('div', {
945
+ name: 'SD-DescriptionListItem',
946
+ slot: 'Root'
947
+ })({
948
+ display: 'flex',
949
+ alignItems: 'center'
950
+ });
951
+ var DescriptionListItemIcon = /*#__PURE__*/styled('div')(_ref => {
952
+ var {
953
+ theme
954
+ } = _ref;
952
955
  return {
953
- '& > $list, & > $item': {
954
- '&:not(:last-child)': {
955
- paddingBottom: theme.spacing(mobileSpacing),
956
- [theme.breakpoints.up('sm')]: {
957
- paddingBottom: theme.spacing(desktopSpacing)
958
- }
959
- }
960
- }
961
- };
962
- }
963
-
964
- var useStyles$4 = /*#__PURE__*/makeStyles(theme => ({
965
- list: sizeVariant(theme, 2, 1),
966
- listSmall: sizeVariant(theme, 1, 0.5),
967
- listLarge: sizeVariant(theme, 3, 2),
968
- item: {
969
- display: 'flex',
970
- alignItems: 'center'
971
- },
972
- icon: {
973
956
  display: 'inline-flex',
974
957
  marginRight: theme.spacing(1),
975
958
  '& > .MuiSvgIcon-root': {
@@ -979,33 +962,11 @@ var useStyles$4 = /*#__PURE__*/makeStyles(theme => ({
979
962
  fontSize: theme.spacing(2)
980
963
  }
981
964
  }
982
- }
983
- }), {
984
- name: 'SD-DescriptionList'
985
- }); //
986
- // DescriptionList
987
- //
988
-
989
- var DescriptionList = /*#__PURE__*/forwardRef((_ref, ref) => {
990
- var {
991
- size
992
- } = _ref,
993
- props = _objectWithoutProperties(_ref, _excluded$8);
994
-
995
- var styles = useStyles$4();
996
- return /*#__PURE__*/jsx("div", _objectSpread(_objectSpread({}, props), {}, {
997
- ref: ref,
998
- "data-size": size,
999
- className: clsx(styles.list, {
1000
- 'small': styles.listSmall,
1001
- 'large': styles.listLarge
1002
- }[size])
1003
- }));
965
+ };
1004
966
  }); //
1005
967
  // DescriptionListItem
1006
968
  //
1007
969
 
1008
- if (process.env.NODE_ENV !== "production") DescriptionList.displayName = "DescriptionList";
1009
970
  var DescriptionListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
1010
971
  var _ref3, _contentTypographyPro, _contentTypographyPro2;
1011
972
 
@@ -1018,15 +979,12 @@ var DescriptionListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
1018
979
  contentTypographyProps,
1019
980
  fallback
1020
981
  } = _ref2;
1021
- var styles = useStyles$4();
1022
982
  var labelID = useUID(labelTypographyProps === null || labelTypographyProps === void 0 ? void 0 : labelTypographyProps.id);
1023
983
  var shouldRenderFallback = isEmptyReactNode(content);
1024
- return /*#__PURE__*/jsxs("div", {
984
+ return /*#__PURE__*/jsxs(DescriptionListItemRoot, {
1025
985
  ref: ref,
1026
- className: styles.item,
1027
986
  "aria-labelledby": label != null ? labelID : undefined,
1028
- children: [!!icon && /*#__PURE__*/jsx("div", {
1029
- className: styles.icon,
987
+ children: [!!icon && /*#__PURE__*/jsx(DescriptionListItemIcon, {
1030
988
  children: icon
1031
989
  }), /*#__PURE__*/jsxs(OverflowText, _objectSpread(_objectSpread({}, contentTypographyProps), {}, {
1032
990
  component: "span",
@@ -1043,26 +1001,72 @@ var DescriptionListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
1043
1001
  })), label != null && ' ', !shouldRenderFallback ? content : fallback]
1044
1002
  }))]
1045
1003
  });
1046
- });
1004
+ }); //
1005
+ // DescriptionList
1006
+ //
1007
+
1047
1008
  if (process.env.NODE_ENV !== "production") DescriptionListItem.displayName = "DescriptionListItem";
1009
+ var DescriptionListRoot = /*#__PURE__*/styled('div', {
1010
+ name: 'SD-DescriptionList',
1011
+ slot: 'Root'
1012
+ })(_ref4 => {
1013
+ var {
1014
+ theme
1015
+ } = _ref4;
1016
+ return _objectSpread(_objectSpread({}, sizeVariant(theme, 2, 1)), {}, {
1017
+ '&[data-size="small"]': sizeVariant(theme, 1, 0.5),
1018
+ '&[data-size="large"]': sizeVariant(theme, 3, 2)
1019
+ });
1020
+ });
1048
1021
 
1049
- var _excluded$9 = ["children", "className"];
1050
- var useStyles$5 = /*#__PURE__*/makeStyles(theme => ({
1051
- appBar: {
1052
- '&&': {
1053
- bottom: 0,
1054
- top: 'auto',
1055
- borderLeft: 'none',
1056
- borderRight: 'none',
1057
- borderBottom: 'none',
1058
- transition: theme.transitions.create(['border-color']),
1059
- '&:not($appBarSticky)': {
1060
- borderTopColor: Color.Transparent
1022
+ function sizeVariant(theme, mobileSpacing, desktopSpacing) {
1023
+ return {
1024
+ ["& > ".concat(DescriptionListRoot, ", & > ").concat(DescriptionListItemRoot)]: {
1025
+ '&:not(:last-child)': {
1026
+ paddingBottom: theme.spacing(mobileSpacing),
1027
+ [theme.breakpoints.up('sm')]: {
1028
+ paddingBottom: theme.spacing(desktopSpacing)
1029
+ }
1061
1030
  }
1062
1031
  }
1063
- },
1064
- appBarSticky: {},
1065
- toolbar: {
1032
+ };
1033
+ }
1034
+
1035
+ var DescriptionList = /*#__PURE__*/forwardRef((_ref5, ref) => {
1036
+ var {
1037
+ size
1038
+ } = _ref5,
1039
+ props = _objectWithoutProperties(_ref5, _excluded$8);
1040
+
1041
+ return /*#__PURE__*/jsx(DescriptionListRoot, _objectSpread(_objectSpread({}, props), {}, {
1042
+ ref: ref,
1043
+ "data-size": size
1044
+ }));
1045
+ });
1046
+ if (process.env.NODE_ENV !== "production") DescriptionList.displayName = "DescriptionList";
1047
+
1048
+ var _excluded$9 = ["children"];
1049
+ var StyledAppBar = /*#__PURE__*/styled(AppBar)(_ref => {
1050
+ var {
1051
+ theme
1052
+ } = _ref;
1053
+ return {
1054
+ bottom: 0,
1055
+ top: 'auto',
1056
+ borderLeft: 'none',
1057
+ borderRight: 'none',
1058
+ borderBottom: 'none',
1059
+ transition: theme.transitions.create(['border-color']),
1060
+ '&[data-sticky="false"]': {
1061
+ borderTopColor: Color.Transparent
1062
+ }
1063
+ };
1064
+ });
1065
+ var StyledToolbar = /*#__PURE__*/styled(Toolbar)(_ref2 => {
1066
+ var {
1067
+ theme
1068
+ } = _ref2;
1069
+ return {
1066
1070
  '&.MuiToolbar-gutters': {
1067
1071
  paddingLeft: theme.spacing(3),
1068
1072
  paddingRight: theme.spacing(3),
@@ -1071,31 +1075,26 @@ var useStyles$5 = /*#__PURE__*/makeStyles(theme => ({
1071
1075
  paddingRight: theme.spacing(4)
1072
1076
  }
1073
1077
  }
1074
- }
1075
- }), {
1076
- name: 'SD-DrawerActions'
1078
+ };
1077
1079
  });
1078
- var DrawerActions = /*#__PURE__*/forwardRef((_ref, appBarRef) => {
1080
+ var DrawerActions = /*#__PURE__*/forwardRef((_ref3, appBarRef) => {
1079
1081
  var {
1080
- children,
1081
- className
1082
- } = _ref,
1083
- props = _objectWithoutProperties(_ref, _excluded$9);
1082
+ children
1083
+ } = _ref3,
1084
+ props = _objectWithoutProperties(_ref3, _excluded$9);
1084
1085
 
1085
- var styles = useStyles$5();
1086
1086
  return /*#__PURE__*/jsx(VisibilityObserver, {
1087
- render: _ref2 => {
1087
+ render: _ref4 => {
1088
1088
  var {
1089
1089
  ref,
1090
1090
  visibility
1091
- } = _ref2;
1091
+ } = _ref4;
1092
1092
  return /*#__PURE__*/jsxs(Fragment, {
1093
- children: [/*#__PURE__*/jsx(AppBar, _objectSpread(_objectSpread({}, props), {}, {
1093
+ children: [/*#__PURE__*/jsx(StyledAppBar, _objectSpread(_objectSpread({}, props), {}, {
1094
1094
  ref: appBarRef,
1095
1095
  position: "sticky",
1096
- className: clsx(className, styles.appBar, visibility === 'invisible' && styles.appBarSticky),
1097
- children: /*#__PURE__*/jsx(Toolbar, {
1098
- className: styles.toolbar,
1096
+ "data-sticky": visibility === 'invisible',
1097
+ children: /*#__PURE__*/jsx(StyledToolbar, {
1099
1098
  children: children
1100
1099
  })
1101
1100
  })), /*#__PURE__*/jsx("div", {
@@ -1107,33 +1106,20 @@ var DrawerActions = /*#__PURE__*/forwardRef((_ref, appBarRef) => {
1107
1106
  });
1108
1107
  if (process.env.NODE_ENV !== "production") DrawerActions.displayName = "DrawerActions";
1109
1108
 
1110
- var _excluded$a = ["className"];
1111
- var useStyles$6 = /*#__PURE__*/makeStyles(theme => ({
1112
- root: {
1109
+ var DrawerContent = /*#__PURE__*/styled('div', {
1110
+ name: 'SD-DrawerContent'
1111
+ })(_ref => {
1112
+ var {
1113
+ theme
1114
+ } = _ref;
1115
+ return {
1113
1116
  maxWidth: '100%',
1114
1117
  padding: theme.spacing(2, 3),
1115
1118
  [theme.breakpoints.up('md')]: {
1116
1119
  padding: theme.spacing(2, 4)
1117
1120
  }
1118
- }
1119
- }), {
1120
- name: 'SD-DrawerContent'
1121
- });
1122
- var DrawerContent = /*#__PURE__*/forwardRef((_ref, ref) => {
1123
- var {
1124
- className
1125
- } = _ref,
1126
- props = _objectWithoutProperties(_ref, _excluded$a);
1127
-
1128
- var styles = useStyles$6();
1129
- return /*#__PURE__*/jsx("div", _objectSpread(_objectSpread({}, props), {}, {
1130
- ref: ref,
1131
- className: clsx(styles.root, className)
1132
- }));
1121
+ };
1133
1122
  });
1134
- if (process.env.NODE_ENV !== "production") DrawerContent.displayName = "DrawerContent";
1135
-
1136
- var _excluded$b = ["className"];
1137
1123
 
1138
1124
  function listItemMixins(theme, space) {
1139
1125
  return {
@@ -1153,45 +1139,37 @@ function listItemMixins(theme, space) {
1153
1139
  };
1154
1140
  }
1155
1141
 
1156
- var useStyles$7 = /*#__PURE__*/makeStyles(theme => ({
1157
- root: _objectSpread(_objectSpread({
1142
+ var DrawerList = /*#__PURE__*/styled(List)(_ref => {
1143
+ var {
1144
+ theme
1145
+ } = _ref;
1146
+ return _objectSpread(_objectSpread({
1158
1147
  maxWidth: '100%'
1159
1148
  }, listItemMixins(theme, 3)), {}, {
1160
1149
  [theme.breakpoints.up('md')]: _objectSpread({}, listItemMixins(theme, 4))
1161
- })
1162
- }), {
1163
- name: 'SD-DrawerList'
1150
+ });
1164
1151
  });
1165
- var DrawerList = /*#__PURE__*/forwardRef((_ref, ref) => {
1166
- var {
1167
- className
1168
- } = _ref,
1169
- props = _objectWithoutProperties(_ref, _excluded$b);
1170
1152
 
1171
- var styles = useStyles$7();
1172
- return /*#__PURE__*/jsx(List, _objectSpread(_objectSpread({}, props), {}, {
1173
- ref: ref,
1174
- component: "div",
1175
- className: clsx(className, styles.root)
1176
- }));
1177
- });
1178
- if (process.env.NODE_ENV !== "production") DrawerList.displayName = "DrawerList";
1179
-
1180
- var _excluded$c = ["title", "titleTypographyProps", "subtitle", "subtitleTypographyProps", "startAction", "endAction", "className"];
1181
- var useStyles$8 = /*#__PURE__*/makeStyles(theme => ({
1182
- appBar: {
1183
- '&&': {
1184
- borderTop: 'none',
1185
- borderLeft: 'none',
1186
- borderRight: 'none',
1187
- transition: theme.transitions.create(['border-color']),
1188
- '&:not($appBarSticky)': {
1189
- borderBottomColor: Color.Transparent
1190
- }
1153
+ var _excluded$a = ["title", "titleTypographyProps", "subtitle", "subtitleTypographyProps", "startAction", "endAction"];
1154
+ var StyledAppBar$1 = /*#__PURE__*/styled(AppBar)(_ref => {
1155
+ var {
1156
+ theme
1157
+ } = _ref;
1158
+ return {
1159
+ borderTop: 'none',
1160
+ borderLeft: 'none',
1161
+ borderRight: 'none',
1162
+ transition: theme.transitions.create(['border-color']),
1163
+ '&[data-sticky="false"]': {
1164
+ borderBottomColor: Color.Transparent
1191
1165
  }
1192
- },
1193
- appBarSticky: {},
1194
- toolbar: {
1166
+ };
1167
+ });
1168
+ var StyledToolbar$1 = /*#__PURE__*/styled(Toolbar)(_ref2 => {
1169
+ var {
1170
+ theme
1171
+ } = _ref2;
1172
+ return {
1195
1173
  '&.MuiToolbar-gutters': {
1196
1174
  paddingLeft: theme.spacing(3),
1197
1175
  paddingRight: theme.spacing(3),
@@ -1200,56 +1178,60 @@ var useStyles$8 = /*#__PURE__*/makeStyles(theme => ({
1200
1178
  paddingRight: theme.spacing(4)
1201
1179
  }
1202
1180
  }
1203
- },
1204
- startAction: {
1205
- marginRight: theme.spacing(0.5),
1206
- '& .MuiIconButton-edgeStart': {
1207
- marginLeft: theme.spacing(-2)
1181
+ };
1182
+ });
1183
+ var StartAction = /*#__PURE__*/styled(Grid)(_ref3 => {
1184
+ var {
1185
+ theme
1186
+ } = _ref3;
1187
+ return {
1188
+ marginRight: theme.spacing(0.5),
1189
+ '& .MuiIconButton-edgeStart': {
1190
+ marginLeft: theme.spacing(-2)
1208
1191
  }
1209
- },
1210
- endAction: {
1192
+ };
1193
+ });
1194
+ var EndAction = /*#__PURE__*/styled(Grid)(_ref4 => {
1195
+ var {
1196
+ theme
1197
+ } = _ref4;
1198
+ return {
1211
1199
  marginLeft: theme.spacing(0.5),
1212
1200
  '& .MuiIconButton-edgeEnd': {
1213
1201
  marginRight: theme.spacing(-2)
1214
1202
  }
1215
- }
1216
- }), {
1217
- name: 'SD-DrawerTitle'
1203
+ };
1218
1204
  });
1219
- var DrawerTitle = /*#__PURE__*/forwardRef((_ref, appBarRef) => {
1205
+ var DrawerTitle = /*#__PURE__*/forwardRef((_ref5, appBarRef) => {
1220
1206
  var {
1221
1207
  title,
1222
1208
  titleTypographyProps,
1223
1209
  subtitle,
1224
1210
  subtitleTypographyProps,
1225
1211
  startAction,
1226
- endAction,
1227
- className
1228
- } = _ref,
1229
- props = _objectWithoutProperties(_ref, _excluded$c);
1212
+ endAction
1213
+ } = _ref5,
1214
+ props = _objectWithoutProperties(_ref5, _excluded$a);
1230
1215
 
1231
- var styles = useStyles$8();
1232
1216
  return /*#__PURE__*/jsx(VisibilityObserver, {
1233
- render: _ref2 => {
1217
+ render: _ref6 => {
1234
1218
  var {
1235
1219
  ref,
1236
1220
  visibility
1237
- } = _ref2;
1221
+ } = _ref6;
1238
1222
  return /*#__PURE__*/jsxs(Fragment, {
1239
1223
  children: [/*#__PURE__*/jsx("div", {
1240
1224
  ref: ref
1241
- }), /*#__PURE__*/jsx(AppBar, _objectSpread(_objectSpread({}, props), {}, {
1225
+ }), /*#__PURE__*/jsx(StyledAppBar$1, _objectSpread(_objectSpread({}, props), {}, {
1242
1226
  ref: appBarRef,
1243
1227
  position: "sticky",
1244
- className: clsx(styles.appBar, className, visibility === 'invisible' && styles.appBarSticky),
1245
- children: /*#__PURE__*/jsx(Toolbar, {
1246
- className: styles.toolbar,
1228
+ "data-sticky": visibility === 'invisible',
1229
+ children: /*#__PURE__*/jsx(StyledToolbar$1, {
1247
1230
  children: /*#__PURE__*/jsxs(Grid, {
1248
1231
  container: true,
1249
1232
  alignItems: "center",
1250
- children: [!!startAction && /*#__PURE__*/jsx(Grid, {
1233
+ children: [!!startAction && /*#__PURE__*/jsx(StartAction, {
1251
1234
  item: true,
1252
- className: styles.startAction,
1253
1235
  children: startAction
1254
1236
  }), /*#__PURE__*/jsxs(Grid, {
1255
1237
  item: true,
@@ -1266,9 +1248,8 @@ var DrawerTitle = /*#__PURE__*/forwardRef((_ref, appBarRef) => {
1266
1248
  }, subtitleTypographyProps), {}, {
1267
1249
  children: subtitle
1268
1250
  }))]
1269
- }), !!endAction && /*#__PURE__*/jsx(Grid, {
1251
+ }), !!endAction && /*#__PURE__*/jsx(EndAction, {
1270
1252
  item: true,
1271
- className: styles.endAction,
1272
1253
  children: endAction
1273
1254
  })]
1274
1255
  })
@@ -1280,7 +1261,7 @@ var DrawerTitle = /*#__PURE__*/forwardRef((_ref, appBarRef) => {
1280
1261
  });
1281
1262
  if (process.env.NODE_ENV !== "production") DrawerTitle.displayName = "DrawerTitle";
1282
1263
 
1283
- var _excluded$d = ["children", "alignItems"];
1264
+ var _excluded$b = ["children", "alignItems"];
1284
1265
 
1285
1266
  /**
1286
1267
  * @deprecated in favor of `Stack`.
@@ -1290,7 +1271,7 @@ var GridStack = /*#__PURE__*/forwardRef((_ref, ref) => {
1290
1271
  children,
1291
1272
  alignItems = 'stretch'
1292
1273
  } = _ref,
1293
- props = _objectWithoutProperties(_ref, _excluded$d);
1274
+ props = _objectWithoutProperties(_ref, _excluded$b);
1294
1275
 
1295
1276
  var items = Children.toArray(children);
1296
1277
  return /*#__PURE__*/jsx(Grid, _objectSpread(_objectSpread({}, props), {}, {
@@ -1309,7 +1290,7 @@ var GridStack = /*#__PURE__*/forwardRef((_ref, ref) => {
1309
1290
  });
1310
1291
  if (process.env.NODE_ENV !== "production") GridStack.displayName = "GridStack";
1311
1292
 
1312
- var _excluded$e = ["children", "wrap", "justify", "alignItems"];
1293
+ var _excluded$c = ["children", "wrap", "justify", "alignItems"];
1313
1294
 
1314
1295
  /**
1315
1296
  * @deprecated in favor of `Inline` component.
@@ -1321,14 +1302,14 @@ var InlineGrid = /*#__PURE__*/forwardRef((_ref, ref) => {
1321
1302
  justify = 'flex-start',
1322
1303
  alignItems = 'flex-start'
1323
1304
  } = _ref,
1324
- props = _objectWithoutProperties(_ref, _excluded$e);
1305
+ props = _objectWithoutProperties(_ref, _excluded$c);
1325
1306
 
1326
1307
  var items = Children.toArray(children);
1327
1308
  return /*#__PURE__*/jsx(Grid, _objectSpread(_objectSpread({}, props), {}, {
1328
1309
  ref: ref,
1329
1310
  wrap: wrap,
1330
1311
  container: true,
1331
- justify: justify,
1312
+ justifyContent: justify,
1332
1313
  alignItems: alignItems,
1333
1314
  children: items.map((item, idx) => /*#__PURE__*/jsx(Grid, {
1334
1315
  item: true,
@@ -1339,41 +1320,54 @@ var InlineGrid = /*#__PURE__*/forwardRef((_ref, ref) => {
1339
1320
  });
1340
1321
  if (process.env.NODE_ENV !== "production") InlineGrid.displayName = "InlineGrid";
1341
1322
 
1342
- var _excluded$f = ["size", "square", "classes", "children", "className", "CardContentProps"],
1343
- _excluded2$2 = ["content", "sizeLarge", "fullWidth"];
1323
+ function mergeRefs() {
1324
+ for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
1325
+ refs[_key] = arguments[_key];
1326
+ }
1344
1327
 
1328
+ return node => {
1329
+ refs.forEach(ref => {
1330
+ assignRef(ref, node);
1331
+ });
1332
+ };
1333
+ }
1345
1334
  function assignRef(ref, value) {
1346
1335
  if (ref) {
1347
- if (typeof ref === 'object') {
1348
- ref.current = value;
1349
- } else {
1336
+ if (typeof ref === 'function') {
1350
1337
  ref(value);
1338
+ } else {
1339
+ ref.current = value;
1351
1340
  }
1352
1341
  }
1353
1342
  }
1354
1343
 
1355
- var useStyles$9 = /*#__PURE__*/makeStyles(theme => ({
1356
- root: {
1357
- '&$fullWidth': {
1344
+ var _excluded$d = ["size", "square", "classes", "children", "className", "CardContentProps"];
1345
+ var StyledCardContent = /*#__PURE__*/styled(CardContent)(_ref => {
1346
+ var {
1347
+ theme
1348
+ } = _ref;
1349
+ return {
1350
+ padding: theme.spacing(2)
1351
+ };
1352
+ });
1353
+ var StyledCard = /*#__PURE__*/styled(Card)(_ref2 => {
1354
+ var {
1355
+ theme
1356
+ } = _ref2;
1357
+ return {
1358
+ '&[data-full-width="true"]': {
1358
1359
  borderRadius: 0,
1359
1360
  borderLeftWidth: 0,
1360
1361
  borderRightWidth: 0
1361
- }
1362
- },
1363
- fullWidth: {},
1364
- sizeLarge: {},
1365
- content: {
1366
- padding: theme.spacing(2),
1367
- '$sizeLarge > &': {
1362
+ },
1363
+ ["&[data-size=\"large\"] > ".concat(StyledCardContent)]: {
1368
1364
  [theme.breakpoints.up('sm')]: {
1369
1365
  padding: theme.spacing(3)
1370
1366
  }
1371
1367
  }
1372
- }
1373
- }), {
1374
- name: 'SD-InfoCard'
1368
+ };
1375
1369
  });
1376
- var InfoCard = /*#__PURE__*/forwardRef((_ref, _ref2) => {
1370
+ var InfoCard = /*#__PURE__*/forwardRef((_ref3, _ref4) => {
1377
1371
  var {
1378
1372
  size,
1379
1373
  square,
@@ -1381,31 +1375,20 @@ var InfoCard = /*#__PURE__*/forwardRef((_ref, _ref2) => {
1381
1375
  children,
1382
1376
  className,
1383
1377
  CardContentProps: cardContentProps = {}
1384
- } = _ref,
1385
- props = _objectWithoutProperties(_ref, _excluded$f);
1386
-
1387
- var _useStyles = useStyles$9({
1388
- classes
1389
- }),
1390
- {
1391
- content: contentClassName,
1392
- sizeLarge: sizeLargeClassName,
1393
- fullWidth: fullWidthClassName
1394
- } = _useStyles,
1395
- styles = _objectWithoutProperties(_useStyles, _excluded2$2);
1378
+ } = _ref3,
1379
+ props = _objectWithoutProperties(_ref3, _excluded$d);
1396
1380
 
1397
1381
  var [rootNode, setRootNode] = useState(null);
1398
1382
  var clientRect = rootNode === null || rootNode === void 0 ? void 0 : rootNode.getBoundingClientRect();
1399
1383
  var isFullWidth = (clientRect === null || clientRect === void 0 ? void 0 : clientRect.width) === window.innerWidth;
1400
- return /*#__PURE__*/jsx(Card, _objectSpread(_objectSpread({}, props), {}, {
1384
+ return /*#__PURE__*/jsx(StyledCard, _objectSpread(_objectSpread({}, props), {}, {
1401
1385
  ref: node => {
1402
- assignRef(_ref2, node);
1386
+ assignRef(_ref4, node);
1403
1387
  setRootNode(node);
1404
1388
  },
1405
- classes: styles,
1406
- className: clsx(className, isFullWidth && fullWidthClassName, size === 'large' && sizeLargeClassName),
1407
- children: /*#__PURE__*/jsx(CardContent, _objectSpread(_objectSpread({}, cardContentProps), {}, {
1408
- className: clsx(cardContentProps.className, contentClassName),
1389
+ "data-size": size,
1390
+ "data-full-width": isFullWidth,
1391
+ children: /*#__PURE__*/jsx(StyledCardContent, _objectSpread(_objectSpread({}, cardContentProps), {}, {
1409
1392
  children: children
1410
1393
  }))
1411
1394
  }));
@@ -1417,7 +1400,7 @@ function inlineRootMixin(spaceProp, noWrap, verticalAlign, horizontalAlign) {
1417
1400
  return css(["&:before{margin-top:", "px;}& > div{display:flex;margin-left:-", "px;flex-wrap:", ";align-items:", ";justify-content:", ";& > div{&:empty{display:none;}min-width:0;flex-shrink:0;max-width:100%;margin-top:", "px;margin-left:", "px;}}"], -space - 1, space, noWrap ? 'nowrap' : 'wrap', parseAlignProp(verticalAlign), parseAlignProp(horizontalAlign), space, space);
1418
1401
  }
1419
1402
 
1420
- var InlineRoot = /*#__PURE__*/styled.div.withConfig({
1403
+ var InlineRoot = /*#__PURE__*/styled$1.div.withConfig({
1421
1404
  displayName: "Inline__InlineRoot",
1422
1405
  componentId: "SD__sc-13du4wm-0"
1423
1406
  })(_ref => {
@@ -1461,7 +1444,7 @@ var Inline = /*#__PURE__*/forwardRef((_ref2, ref) => {
1461
1444
  });
1462
1445
  if (process.env.NODE_ENV !== "production") Inline.displayName = "Inline";
1463
1446
 
1464
- var _excluded$g = ["label", "error", "checked", "onBlur", "onChange", "helperText", "FormControlLabelProps"];
1447
+ var _excluded$e = ["label", "error", "checked", "onBlur", "onChange", "helperText", "FormControlLabelProps"];
1465
1448
  var RadioField = /*#__PURE__*/forwardRef((_ref, ref) => {
1466
1449
  var {
1467
1450
  label,
@@ -1472,7 +1455,7 @@ var RadioField = /*#__PURE__*/forwardRef((_ref, ref) => {
1472
1455
  helperText,
1473
1456
  FormControlLabelProps: formControlLabelProps
1474
1457
  } = _ref,
1475
- props = _objectWithoutProperties(_ref, _excluded$g);
1458
+ props = _objectWithoutProperties(_ref, _excluded$e);
1476
1459
 
1477
1460
  return /*#__PURE__*/jsxs(FormControl, {
1478
1461
  error: error,
@@ -1492,7 +1475,7 @@ var RadioField = /*#__PURE__*/forwardRef((_ref, ref) => {
1492
1475
  });
1493
1476
  if (process.env.NODE_ENV !== "production") RadioField.displayName = "RadioField";
1494
1477
 
1495
- var _excluded$h = ["name", "value", "onChange", "RadioGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
1478
+ var _excluded$f = ["name", "value", "onChange", "RadioGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
1496
1479
  var RadioGroupField = /*#__PURE__*/forwardRef((_ref, ref) => {
1497
1480
  var {
1498
1481
  name,
@@ -1505,7 +1488,7 @@ var RadioGroupField = /*#__PURE__*/forwardRef((_ref, ref) => {
1505
1488
  FormHelperTextProps: formHelperTextProps,
1506
1489
  children
1507
1490
  } = _ref,
1508
- formControlProps = _objectWithoutProperties(_ref, _excluded$h);
1491
+ formControlProps = _objectWithoutProperties(_ref, _excluded$f);
1509
1492
 
1510
1493
  return /*#__PURE__*/jsxs(FormControl, _objectSpread(_objectSpread({}, formControlProps), {}, {
1511
1494
  hiddenLabel: !label,
@@ -1525,24 +1508,9 @@ var RadioGroupField = /*#__PURE__*/forwardRef((_ref, ref) => {
1525
1508
  });
1526
1509
  if (process.env.NODE_ENV !== "production") RadioGroupField.displayName = "RadioGroupField";
1527
1510
 
1528
- var BREAKPOINTS = ['xs', 'sm', 'md', 'lg', 'xl'];
1529
- function useCollapseBreakpoint(collapseBreakpoint) {
1530
- var {
1531
- breakpoint = 'xs'
1532
- } = useResponsiveContext();
1533
-
1534
- if (collapseBreakpoint == null) {
1535
- return false;
1536
- }
1537
-
1538
- var breakpointIDX = BREAKPOINTS.indexOf(breakpoint);
1539
- var collapseBreakpointIDX = BREAKPOINTS.indexOf(collapseBreakpoint);
1540
- return breakpointIDX < collapseBreakpointIDX;
1541
- }
1542
-
1543
- var _excluded$i = ["action", "children", "onClose", "className", "classes", "variant"],
1544
- _excluded2$3 = ["icon", "closeButton", "variantError", "variantSuccess"];
1545
- var useStyles$a = /*#__PURE__*/makeStyles(theme => ({
1511
+ var _excluded$g = ["action", "children", "onClose", "className", "classes", "variant"],
1512
+ _excluded2$1 = ["icon", "closeButton", "variantError", "variantSuccess"];
1513
+ var useStyles = /*#__PURE__*/makeStyles(theme => ({
1546
1514
  root: {
1547
1515
  color: Color.White,
1548
1516
  backgroundColor: Color.Dark500,
@@ -1585,9 +1553,9 @@ var SnackbarContent = /*#__PURE__*/forwardRef((_ref, ref) => {
1585
1553
  classes,
1586
1554
  variant = 'default'
1587
1555
  } = _ref,
1588
- props = _objectWithoutProperties(_ref, _excluded$i);
1556
+ props = _objectWithoutProperties(_ref, _excluded$g);
1589
1557
 
1590
- var _useStyles = useStyles$a({
1558
+ var _useStyles = useStyles({
1591
1559
  classes
1592
1560
  }),
1593
1561
  {
@@ -1596,7 +1564,7 @@ var SnackbarContent = /*#__PURE__*/forwardRef((_ref, ref) => {
1596
1564
  variantError,
1597
1565
  variantSuccess
1598
1566
  } = _useStyles,
1599
- styles = _objectWithoutProperties(_useStyles, _excluded2$3);
1567
+ styles = _objectWithoutProperties(_useStyles, _excluded2$1);
1600
1568
 
1601
1569
  var Icon = variant === 'error' ? Warning : variant === 'success' ? CheckCircle : undefined;
1602
1570
  return /*#__PURE__*/jsx(SnackbarContent$1, _objectSpread(_objectSpread({}, props), {}, {
@@ -1635,7 +1603,7 @@ var SnackbarContent = /*#__PURE__*/forwardRef((_ref, ref) => {
1635
1603
  });
1636
1604
  if (process.env.NODE_ENV !== "production") SnackbarContent.displayName = "SnackbarContent";
1637
1605
 
1638
- var _excluded$j = ["open", "action", "variant", "onClose", "children", "ContentProps", "hasCloseButton", "TransitionComponent"];
1606
+ var _excluded$h = ["open", "action", "variant", "onClose", "children", "ContentProps", "hasCloseButton", "TransitionComponent"];
1639
1607
 
1640
1608
  function SlideTransition(props) {
1641
1609
  return /*#__PURE__*/jsx(Slide, _objectSpread(_objectSpread({}, props), {}, {
@@ -1654,7 +1622,7 @@ var Snackbar = /*#__PURE__*/forwardRef((_ref, ref) => {
1654
1622
  hasCloseButton = onClose != null,
1655
1623
  TransitionComponent = SlideTransition
1656
1624
  } = _ref,
1657
- props = _objectWithoutProperties(_ref, _excluded$j);
1625
+ props = _objectWithoutProperties(_ref, _excluded$h);
1658
1626
 
1659
1627
  function handleClose(reason) {
1660
1628
  if (reason !== 'clickaway') {
@@ -1683,7 +1651,7 @@ var Snackbar = /*#__PURE__*/forwardRef((_ref, ref) => {
1683
1651
  });
1684
1652
  if (process.env.NODE_ENV !== "production") Snackbar.displayName = "Snackbar";
1685
1653
 
1686
- var _excluded$k = ["onClose", "variant", "key", "id", "autoHideDuration"];
1654
+ var _excluded$i = ["onClose", "variant", "key", "id", "autoHideDuration"];
1687
1655
 
1688
1656
  function warnContext() {
1689
1657
  // eslint-disable-next-line no-console
@@ -1729,7 +1697,7 @@ function SnackbarStackProvider(_ref2) {
1729
1697
  id = String(key),
1730
1698
  autoHideDuration = 5000
1731
1699
  } = _ref3,
1732
- props = _objectWithoutProperties(_ref3, _excluded$k);
1700
+ props = _objectWithoutProperties(_ref3, _excluded$i);
1733
1701
 
1734
1702
  function removeSnackbar() {
1735
1703
  setStack(prev => {
@@ -1794,7 +1762,7 @@ function stackItemMixin(space, align) {
1794
1762
  return css(["flex-direction:column;align-items:", ";display:", ";&:empty{display:none;}&:not(:empty) ~ div{padding-top:", "px;}"], parseAlignProp(align), align === 'left' ? 'block' : 'flex', parseSpaceProp(space));
1795
1763
  }
1796
1764
 
1797
- var StackRoot = /*#__PURE__*/styled.div.withConfig({
1765
+ var StackRoot = /*#__PURE__*/styled$1.div.withConfig({
1798
1766
  displayName: "Stack__StackRoot",
1799
1767
  componentId: "SD__sc-qkml7c-0"
1800
1768
  })(_ref => {
@@ -1826,8 +1794,8 @@ var Stack = /*#__PURE__*/forwardRef((_ref2, ref) => {
1826
1794
  });
1827
1795
  if (process.env.NODE_ENV !== "production") Stack.displayName = "Stack";
1828
1796
 
1829
- var _excluded$l = ["color", "variant", "children", "classes", "className", "noWrap", "fontWeight", "component"];
1830
- var useStyles$b = /*#__PURE__*/makeStyles(theme => ({
1797
+ var _excluded$j = ["color", "variant", "children", "classes", "className", "noWrap", "fontWeight", "component"];
1798
+ var useStyles$1 = /*#__PURE__*/makeStyles(theme => ({
1831
1799
  root: {
1832
1800
  maxWidth: '100%',
1833
1801
  alignItems: 'center',
@@ -1910,9 +1878,9 @@ var Tag = /*#__PURE__*/forwardRef((_ref, ref) => {
1910
1878
  fontWeight = 'bold',
1911
1879
  component = 'div'
1912
1880
  } = _ref,
1913
- props = _objectWithoutProperties(_ref, _excluded$l);
1881
+ props = _objectWithoutProperties(_ref, _excluded$j);
1914
1882
 
1915
- var styles = useStyles$b({
1883
+ var styles = useStyles$1({
1916
1884
  classes
1917
1885
  });
1918
1886
  return /*#__PURE__*/jsx(Typography, _objectSpread(_objectSpread({}, props), {}, {
@@ -1938,28 +1906,27 @@ var Tag = /*#__PURE__*/forwardRef((_ref, ref) => {
1938
1906
  if (process.env.NODE_ENV !== "production") Tag.displayName = "Tag";
1939
1907
 
1940
1908
  function overrideAppBar(theme) {
1941
- theme.props.MuiAppBar = {
1942
- elevation: 0,
1943
- color: 'inherit',
1944
- position: 'static'
1909
+ theme.components.MuiAppBar = {
1910
+ defaultProps: {
1911
+ elevation: 0,
1912
+ color: 'inherit',
1913
+ position: 'static'
1914
+ }
1945
1915
  };
1946
1916
  }
1947
1917
 
1948
1918
  function overrideAutocomplete(theme) {
1949
- var sm = theme.breakpoints.up('sm'); // Remove `Object.assign` after official release of `Autocomplete`.
1950
-
1951
- Object.assign(theme.props, {
1952
- MuiAutocomplete: {
1919
+ var sm = theme.breakpoints.up('sm');
1920
+ theme.components.MuiAutocomplete = {
1921
+ defaultProps: {
1953
1922
  popupIcon: /*#__PURE__*/jsx(SvgIcon, {
1954
1923
  children: /*#__PURE__*/jsx("path", {
1955
1924
  d: "M12 16.5L6 9h12l-6 7.5z",
1956
1925
  fill: "currentColor"
1957
1926
  })
1958
1927
  })
1959
- }
1960
- });
1961
- Object.assign(theme.overrides, {
1962
- MuiAutocomplete: {
1928
+ },
1929
+ styleOverrides: {
1963
1930
  paper: _objectSpread({}, theme.typography.body2),
1964
1931
  tag: {
1965
1932
  margin: '4px',
@@ -1984,45 +1951,47 @@ function overrideAutocomplete(theme) {
1984
1951
  inputRoot: {
1985
1952
  '&[class*="MuiOutlinedInput-root"]': {
1986
1953
  padding: '6px 8px',
1987
- '& $input': {
1954
+ ["& .".concat(autocompleteClasses.input)]: {
1988
1955
  width: '144px',
1989
1956
  padding: '4px'
1990
1957
  },
1991
- '& $input:first-child': {
1992
- paddingLeft: undefined
1958
+ ["& .".concat(autocompleteClasses.input, ":first-child")]: {
1959
+ paddingLeft: 'unset'
1993
1960
  },
1994
- '& $endAdornment': {
1961
+ ["& .".concat(autocompleteClasses.endAdornment)]: {
1995
1962
  right: '12px'
1996
1963
  },
1997
1964
  [sm]: {
1998
1965
  padding: theme.spacing(0.5, 0.75),
1999
- '& $input': {
1966
+ ["& .".concat(autocompleteClasses.input)]: {
2000
1967
  padding: '2px'
2001
1968
  },
2002
- '& $endAdornment': {
1969
+ ["& .".concat(autocompleteClasses.endAdornment)]: {
2003
1970
  right: '8px'
2004
1971
  }
2005
1972
  }
2006
1973
  }
2007
1974
  }
2008
1975
  }
2009
- });
1976
+ };
2010
1977
  }
2011
1978
 
2012
1979
  function overrideAvatar(theme) {
2013
- theme.overrides.MuiAvatar = {
2014
- root: _objectSpread(_objectSpread({}, theme.typography.h5), {}, {
2015
- textTransform: 'uppercase',
2016
- width: theme.spacing(5),
2017
- height: theme.spacing(5),
2018
- [theme.breakpoints.up('sm')]: {
2019
- width: theme.spacing(4),
2020
- height: theme.spacing(4)
1980
+ theme.components.MuiAvatar = {
1981
+ styleOverrides: {
1982
+ root: _objectSpread(_objectSpread({}, theme.typography.h5), {}, {
1983
+ textTransform: 'uppercase',
1984
+ width: theme.spacing(5),
1985
+ height: theme.spacing(5),
1986
+ [theme.breakpoints.up('sm')]: {
1987
+ width: theme.spacing(4),
1988
+ height: theme.spacing(4)
1989
+ }
1990
+ }),
1991
+ colorDefault: {
1992
+ color: Color.Dark300,
1993
+ backgroundColor: Color.Silver300
2021
1994
  }
2022
- }),
2023
- colorDefault: {
2024
- color: Color.Dark300,
2025
- backgroundColor: Color.Silver300
2026
1995
  }
2027
1996
  };
2028
1997
  }
@@ -2035,9 +2004,11 @@ function outlineShadow() {
2035
2004
 
2036
2005
  function textVariant(text, outline, background, progress) {
2037
2006
  return {
2038
- color: text,
2039
- boxShadow: outlineShadow(),
2040
- backgroundColor: Color.Transparent,
2007
+ '&': {
2008
+ color: text,
2009
+ boxShadow: outlineShadow(),
2010
+ backgroundColor: Color.Transparent
2011
+ },
2041
2012
  '&:hover': {
2042
2013
  backgroundColor: background
2043
2014
  },
@@ -2048,13 +2019,13 @@ function textVariant(text, outline, background, progress) {
2048
2019
  backgroundColor: background,
2049
2020
  boxShadow: outlineShadow(2, outline)
2050
2021
  },
2051
- '&$disabled': {
2022
+ ["&.".concat(buttonClasses.disabled)]: {
2052
2023
  color: outline,
2053
2024
  boxShadow: outlineShadow(),
2054
- backgroundColor: Color.Transparent
2055
- },
2056
- '&$disabled[aria-busy="true"]': {
2057
- color: progress
2025
+ backgroundColor: Color.Transparent,
2026
+ ["& .".concat(loadingButtonClasses.loadingIndicator)]: {
2027
+ color: progress
2028
+ }
2058
2029
  }
2059
2030
  };
2060
2031
  }
@@ -2068,11 +2039,11 @@ function outlinedVariant(staleText, staleBorder, disabledText, disabledBorder, a
2068
2039
  return {
2069
2040
  backgroundColor,
2070
2041
  color: staleText,
2071
- border: undefined,
2042
+ border: 0,
2072
2043
  boxShadow: outlinedBorder(staleBorder),
2073
2044
  '&:hover': {
2074
2045
  color: activeText,
2075
- border: undefined,
2046
+ border: 0,
2076
2047
  backgroundColor: activeBackground,
2077
2048
  boxShadow: outlinedBorder(activeBorder)
2078
2049
  },
@@ -2084,13 +2055,13 @@ function outlinedVariant(staleText, staleBorder, disabledText, disabledBorder, a
2084
2055
  '&:focus': {
2085
2056
  boxShadow: outlinedBorder(activeBorder, activeOutline)
2086
2057
  },
2087
- '&$disabled': {
2058
+ ["&.".concat(buttonClasses.disabled)]: {
2088
2059
  backgroundColor,
2089
2060
  color: disabledText,
2090
- boxShadow: outlinedBorder(disabledBorder)
2091
- },
2092
- '&$disabled[aria-busy="true"]': {
2093
- color: progress
2061
+ boxShadow: outlinedBorder(disabledBorder),
2062
+ ["& .".concat(loadingButtonClasses.loadingIndicator)]: {
2063
+ color: progress
2064
+ }
2094
2065
  }
2095
2066
  };
2096
2067
  }
@@ -2109,229 +2080,236 @@ function containedVariant(text, backgroundColor, outline, active, disabledText,
2109
2080
  '&:focus': {
2110
2081
  boxShadow: outlineShadow(3, outline)
2111
2082
  },
2112
- '&$disabled': {
2083
+ ["&.".concat(buttonClasses.disabled)]: {
2113
2084
  color: disabledText,
2114
2085
  boxShadow: outlineShadow(),
2115
- backgroundColor: disabledBackground
2086
+ backgroundColor: disabledBackground,
2087
+ ["& .".concat(loadingButtonClasses.loadingIndicator)]: {
2088
+ color: disabledText
2089
+ }
2116
2090
  }
2117
2091
  };
2118
2092
  }
2119
2093
 
2094
+ function sizeSmall(theme) {
2095
+ var sm = theme.breakpoints.up('sm');
2096
+ return _objectSpread(_objectSpread({}, theme.typography.button), {}, {
2097
+ padding: theme.spacing(0.5, 3),
2098
+ [sm]: {
2099
+ padding: theme.spacing(0.25, 2)
2100
+ }
2101
+ });
2102
+ }
2103
+
2104
+ function sizeLarge(theme) {
2105
+ var sm = theme.breakpoints.up('sm');
2106
+ return _objectSpread(_objectSpread({}, theme.typography.button), {}, {
2107
+ fontSize: '18px',
2108
+ lineHeight: '28px',
2109
+ padding: theme.spacing(1.75, 8),
2110
+ [sm]: {
2111
+ fontSize: '16px',
2112
+ lineHeight: '24px',
2113
+ padding: theme.spacing(1, 4)
2114
+ }
2115
+ });
2116
+ }
2117
+
2120
2118
  function overrideButton(theme) {
2121
2119
  var sm = theme.breakpoints.up('sm');
2122
- theme.props.MuiButton = {
2123
- color: 'primary',
2124
- variant: 'outlined',
2125
- disableFocusRipple: true
2126
- };
2127
- theme.overrides.MuiButton = {
2128
- root: {
2129
- color: undefined,
2130
- minWidth: theme.spacing(6),
2131
- transition: theme.transitions.create(['color', 'border', 'box-shadow', 'background-color']),
2132
- padding: theme.spacing(1.25, 3),
2133
- [sm]: {
2134
- padding: theme.spacing(0.75, 2)
2135
- },
2136
- '&:hover': {
2137
- backgroundColor: undefined,
2138
- '&$disabled': {
2139
- backgroundColor: undefined
2140
- },
2141
- '@media (hover: none)': {
2142
- backgroundColor: undefined
2143
- }
2144
- },
2145
- '&$disabled': {
2146
- color: undefined
2147
- },
2148
- '&[aria-busy="true"]': {
2149
- '& $label': {
2150
- visibility: 'hidden',
2151
- '& > [role="progressbar"]': {
2152
- position: 'absolute',
2153
- visibility: 'visible',
2154
- top: 'calc(50% - 0.5em)',
2155
- left: 'calc(50% - 0.5em)',
2156
- fontSize: theme.spacing(2),
2157
- '$sizeLarge &': {
2158
- fontSize: theme.spacing(3)
2159
- }
2160
- }
2120
+ theme.components.MuiLoadingButton = {
2121
+ defaultProps: {
2122
+ variant: 'outlined'
2123
+ },
2124
+ styleOverrides: {
2125
+ loadingIndicator: {
2126
+ color: 'inherit',
2127
+ fontSize: theme.spacing(2),
2128
+ [".".concat(buttonClasses.sizeLarge, " &")]: {
2129
+ fontSize: theme.spacing(3)
2161
2130
  }
2162
2131
  }
2163
- },
2164
- label: {
2165
- '& > .MuiSvgIcon-root': {
2166
- fontSize: '24px',
2132
+ }
2133
+ };
2134
+ theme.components.MuiButton = {
2135
+ defaultProps: {
2136
+ color: 'primary',
2137
+ variant: 'outlined',
2138
+ disableFocusRipple: true
2139
+ },
2140
+ styleOverrides: {
2141
+ root: {
2142
+ minWidth: theme.spacing(6),
2143
+ transition: theme.transitions.create(['color', 'border', 'box-shadow', 'background-color']),
2144
+ padding: theme.spacing(1.25, 3),
2167
2145
  [sm]: {
2168
- fontSize: '20px'
2146
+ padding: theme.spacing(0.75, 2)
2169
2147
  },
2170
- '$sizeLarge &': {
2171
- fontSize: '28px',
2172
- [sm]: {
2173
- fontSize: '24px'
2148
+ '&:hover': {
2149
+ backgroundColor: 'initial',
2150
+ ["&.".concat(buttonClasses.disabled)]: {
2151
+ backgroundColor: 'initial'
2152
+ },
2153
+ '@media (hover: none)': {
2154
+ backgroundColor: 'initial'
2174
2155
  }
2175
- }
2176
- }
2177
- },
2178
- sizeSmall: {
2179
- padding: theme.spacing(0.5, 3),
2180
- [sm]: {
2181
- padding: theme.spacing(0.25, 2)
2182
- }
2183
- },
2184
- sizeLarge: {
2185
- fontSize: '18px',
2186
- lineHeight: '28px',
2187
- padding: theme.spacing(1.75, 8),
2188
- [sm]: {
2189
- fontSize: '16px',
2190
- lineHeight: '24px',
2191
- padding: theme.spacing(1, 4)
2192
- }
2193
- },
2194
- text: {
2195
- padding: undefined,
2196
- '&[data-color="error"]': textVariant(Color.Red300, Color.Red100, Color.Red50, Color.Red200),
2197
- '&[data-color="success"]': textVariant(Color.Green300, Color.Green100, Color.Green50, Color.Green200),
2198
- '&[data-color="white"]': textVariant(Color.White, Color.White50, Color.White10, Color.White50)
2199
- },
2200
- textPrimary: textVariant(Color.Blue300, Color.Blue100, Color.Blue50, Color.Blue200),
2201
- textSizeSmall: {
2202
- padding: undefined,
2203
- fontSize: undefined
2204
- },
2205
- textSizeLarge: {
2206
- padding: undefined,
2207
- fontSize: undefined
2208
- },
2209
- outlined: {
2210
- border: undefined,
2211
- padding: undefined,
2212
- '&$disabled': {
2213
- border: undefined
2214
- },
2215
- '&[data-color="error"]': outlinedVariant(Color.Red300, Color.Red300, Color.Red100, Color.Red100, Color.Red300, Color.Red300, Color.Red100, Color.Red50, Color.Red300, Color.White),
2216
- '&[data-color="success"]': outlinedVariant(Color.Green300, Color.Green300, Color.Green100, Color.Green100, Color.Green300, Color.Green300, Color.Green100, Color.Green50, Color.Green300, Color.White),
2217
- '&[data-color="white"]': outlinedVariant(Color.White, Color.White50, Color.White50, Color.White40, Color.White, Color.White50, Color.White40, Color.White10, Color.White50, Color.Transparent)
2218
- },
2219
- outlinedPrimary: outlinedVariant(Color.Dark500, Color.Silver500, Color.Silver500, Color.Silver400, Color.Blue300, Color.Blue300, Color.Blue100, Color.Blue50, Color.Dark200, Color.White),
2220
- outlinedSizeSmall: {
2221
- padding: undefined,
2222
- fontSize: undefined
2223
- },
2224
- outlinedSizeLarge: {
2225
- padding: undefined,
2226
- fontSize: undefined
2227
- },
2228
- contained: {
2229
- boxShadow: undefined,
2230
- backgroundColor: undefined,
2231
- '&:hover': {
2232
- boxShadow: undefined,
2233
- backgroundColor: undefined,
2234
- '&$disabled': {
2235
- backgroundColor: undefined
2236
2156
  },
2237
- '@media (hover: none)': {
2238
- boxShadow: undefined,
2239
- backgroundColor: undefined
2157
+ ["&.".concat(buttonClasses.disabled)]: {
2158
+ color: 'initial'
2159
+ },
2160
+ '& > .MuiSvgIcon-root': {
2161
+ fontSize: '24px',
2162
+ [sm]: {
2163
+ fontSize: '20px'
2164
+ },
2165
+ [".".concat(buttonClasses.sizeLarge, "&")]: {
2166
+ fontSize: '28px',
2167
+ [sm]: {
2168
+ fontSize: '24px'
2169
+ }
2170
+ }
2240
2171
  }
2241
2172
  },
2242
- '&:active': {
2243
- boxShadow: undefined
2173
+ sizeSmall: sizeSmall(theme),
2174
+ sizeLarge: sizeLarge(theme),
2175
+ text: {
2176
+ padding: 'initial',
2177
+ '&[data-color="error"]': textVariant(Color.Red300, Color.Red100, Color.Red50, Color.Red200),
2178
+ '&[data-color="success"]': textVariant(Color.Green300, Color.Green100, Color.Green50, Color.Green200),
2179
+ '&[data-color="white"]': textVariant(Color.White, Color.White50, Color.White10, Color.White50)
2244
2180
  },
2245
- '&$focusVisible': {
2246
- boxShadow: undefined
2181
+ textPrimary: textVariant(Color.Blue300, Color.Blue100, Color.Blue50, Color.Blue200),
2182
+ textSizeSmall: sizeSmall(theme),
2183
+ textSizeLarge: sizeLarge(theme),
2184
+ outlined: {
2185
+ border: 'none',
2186
+ padding: 'initial',
2187
+ ["&.".concat(buttonClasses.disabled)]: {
2188
+ border: 'none'
2189
+ },
2190
+ '&[data-color="error"]': outlinedVariant(Color.Red300, Color.Red300, Color.Red100, Color.Red100, Color.Red300, Color.Red300, Color.Red100, Color.Red50, Color.Red300, Color.White),
2191
+ '&[data-color="success"]': outlinedVariant(Color.Green300, Color.Green300, Color.Green100, Color.Green100, Color.Green300, Color.Green300, Color.Green100, Color.Green50, Color.Green300, Color.White),
2192
+ '&[data-color="white"]': outlinedVariant(Color.White, Color.White50, Color.White50, Color.White40, Color.White, Color.White50, Color.White40, Color.White10, Color.White50, Color.Transparent)
2247
2193
  },
2248
- '&$disabled': {
2249
- color: undefined,
2250
- boxShadow: undefined,
2251
- backgroundColor: undefined
2194
+ outlinedPrimary: outlinedVariant(Color.Dark500, Color.Silver500, Color.Silver500, Color.Silver400, Color.Blue300, Color.Blue300, Color.Blue100, Color.Blue50, Color.Dark200, Color.White),
2195
+ outlinedSizeSmall: sizeSmall(theme),
2196
+ outlinedSizeLarge: sizeLarge(theme),
2197
+ contained: {
2198
+ boxShadow: 'none',
2199
+ backgroundColor: 'initial',
2200
+ '&:hover': {
2201
+ boxShadow: 'none',
2202
+ backgroundColor: 'initial',
2203
+ ["&.".concat(buttonClasses.disabled)]: {
2204
+ backgroundColor: 'none'
2205
+ },
2206
+ '@media (hover: none)': {
2207
+ boxShadow: 'none',
2208
+ backgroundColor: 'none'
2209
+ }
2210
+ },
2211
+ '&:active': {
2212
+ boxShadow: 'none'
2213
+ },
2214
+ ["&.".concat(buttonClasses.focusVisible)]: {
2215
+ boxShadow: 'none'
2216
+ },
2217
+ ["&.".concat(buttonClasses.disabled)]: {
2218
+ color: 'initial',
2219
+ boxShadow: 'none',
2220
+ backgroundColor: 'initial'
2221
+ },
2222
+ '&[data-color="error"]': containedVariant(Color.White, Color.Red300, Color.Red100, Color.Red500, Color.White, Color.Red100),
2223
+ '&[data-color="success"]': containedVariant(Color.White, Color.Green300, Color.Green100, Color.Green500, Color.White, Color.Green100),
2224
+ '&[data-color="white"]': containedVariant(Color.White, Color.White20, Color.White40, Color.White40, Color.White50, Color.White08)
2252
2225
  },
2253
- '&[data-color="error"]': containedVariant(Color.White, Color.Red300, Color.Red100, Color.Red500, Color.White, Color.Red100),
2254
- '&[data-color="success"]': containedVariant(Color.White, Color.Green300, Color.Green100, Color.Green500, Color.White, Color.Green100),
2255
- '&[data-color="white"]': containedVariant(Color.White, Color.White20, Color.White40, Color.White40, Color.White50, Color.White08)
2256
- },
2257
- containedPrimary: containedVariant(Color.White, Color.Blue300, Color.Blue100, Color.Blue500, Color.White, Color.Blue100),
2258
- containedSizeSmall: {
2259
- padding: undefined,
2260
- fontSize: undefined
2261
- },
2262
- containedSizeLarge: {
2263
- padding: undefined,
2264
- fontSize: undefined
2226
+ containedPrimary: containedVariant(Color.White, Color.Blue300, Color.Blue100, Color.Blue500, Color.White, Color.Blue100),
2227
+ containedSizeSmall: sizeSmall(theme),
2228
+ containedSizeLarge: sizeLarge(theme)
2265
2229
  }
2266
2230
  };
2267
2231
  }
2268
2232
 
2269
2233
  function overrideCard(theme) {
2270
- theme.props.MuiCard = {
2271
- variant: 'outlined'
2234
+ theme.components.MuiCard = {
2235
+ defaultProps: {
2236
+ variant: 'outlined'
2237
+ }
2272
2238
  };
2273
- theme.overrides.MuiCardContent = {
2274
- root: {
2275
- '&:last-child': {
2276
- paddingBottom: undefined
2239
+ theme.components.MuiCardContent = {
2240
+ styleOverrides: {
2241
+ root: {
2242
+ '&:last-child': {
2243
+ paddingBottom: '16px'
2244
+ }
2277
2245
  }
2278
2246
  }
2279
2247
  };
2280
2248
  }
2281
2249
 
2282
2250
  function overrideCheckbox(theme) {
2283
- theme.props.MuiCheckbox = {
2284
- color: 'primary',
2285
- icon: /*#__PURE__*/jsx(SvgIcon, {
2286
- children: /*#__PURE__*/jsx("rect", {
2287
- width: "17",
2288
- height: "17",
2289
- x: "3.5",
2290
- y: "3.5",
2291
- fill: Color.White,
2292
- stroke: "currentColor",
2293
- rx: "1.5"
2251
+ theme.components.MuiCheckbox = {
2252
+ defaultProps: {
2253
+ color: 'primary',
2254
+ icon: /*#__PURE__*/jsx(SvgIcon, {
2255
+ children: /*#__PURE__*/jsx("rect", {
2256
+ width: "17",
2257
+ height: "17",
2258
+ x: "3.5",
2259
+ y: "3.5",
2260
+ fill: Color.White,
2261
+ stroke: "currentColor",
2262
+ rx: "1.5"
2263
+ })
2264
+ }),
2265
+ checkedIcon: /*#__PURE__*/jsxs(SvgIcon, {
2266
+ children: [/*#__PURE__*/jsx("rect", {
2267
+ width: "18",
2268
+ height: "18",
2269
+ x: "3",
2270
+ y: "3",
2271
+ fill: "currentColor",
2272
+ rx: "2"
2273
+ }), /*#__PURE__*/jsx("path", {
2274
+ fill: Color.White,
2275
+ d: "M15.73 8l-.63.63c-1.43 1.43-2.94 3.05-4.37 4.5l-1.9-1.57-.7-.57L7 12.38l.7.57 2.53 2.09.63.52.58-.58c1.6-1.62 3.35-3.5 4.93-5.08l.63-.63L15.73 8z"
2276
+ })]
2277
+ }),
2278
+ indeterminateIcon: /*#__PURE__*/jsxs(SvgIcon, {
2279
+ children: [/*#__PURE__*/jsx("rect", {
2280
+ width: "18",
2281
+ height: "18",
2282
+ x: "3",
2283
+ y: "3",
2284
+ fill: "currentIcon",
2285
+ rx: "2"
2286
+ }), /*#__PURE__*/jsx("path", {
2287
+ fill: Color.White,
2288
+ d: "M7 11h10v2H7v-2z"
2289
+ })]
2294
2290
  })
2295
- }),
2296
- checkedIcon: /*#__PURE__*/jsxs(SvgIcon, {
2297
- children: [/*#__PURE__*/jsx("rect", {
2298
- width: "18",
2299
- height: "18",
2300
- x: "3",
2301
- y: "3",
2302
- fill: "currentColor",
2303
- rx: "2"
2304
- }), /*#__PURE__*/jsx("path", {
2305
- fill: Color.White,
2306
- d: "M15.73 8l-.63.63c-1.43 1.43-2.94 3.05-4.37 4.5l-1.9-1.57-.7-.57L7 12.38l.7.57 2.53 2.09.63.52.58-.58c1.6-1.62 3.35-3.5 4.93-5.08l.63-.63L15.73 8z"
2307
- })]
2308
- }),
2309
- indeterminateIcon: /*#__PURE__*/jsxs(SvgIcon, {
2310
- children: [/*#__PURE__*/jsx("rect", {
2311
- width: "18",
2312
- height: "18",
2313
- x: "3",
2314
- y: "3",
2315
- fill: "currentIcon",
2316
- rx: "2"
2317
- }), /*#__PURE__*/jsx("path", {
2318
- fill: Color.White,
2319
- d: "M7 11h10v2H7v-2z"
2320
- })]
2321
- })
2322
- };
2323
- theme.overrides.MuiCheckbox = {
2324
- root: {
2325
- color: Color.Dark100,
2326
- marginTop: theme.spacing(-0.625),
2327
- marginBottom: theme.spacing(-0.625)
2328
2291
  },
2329
- colorPrimary: {
2330
- '&$checked$disabled': {
2331
- color: Color.Silver500
2292
+ styleOverrides: {
2293
+ root: {
2294
+ color: Color.Dark100,
2295
+ marginTop: theme.spacing(-0.625),
2296
+ marginBottom: theme.spacing(-0.625)
2332
2297
  },
2333
- '&:hover:not($checked)': {
2334
- color: Color.Dark100
2298
+ indeterminate: {
2299
+ ["&:not(.".concat(checkboxClasses.checked, ")")]: {
2300
+ color: Color.Dark100
2301
+ },
2302
+ ["&.".concat(checkboxClasses.disabled)]: {
2303
+ color: Color.Silver400
2304
+ }
2305
+ },
2306
+ colorPrimary: {
2307
+ ["&.".concat(checkboxClasses.checked, ".").concat(checkboxClasses.disabled)]: {
2308
+ color: Color.Silver500
2309
+ },
2310
+ ["&:hover:not(.".concat(checkboxClasses.checked, ")")]: {
2311
+ color: Color.Dark100
2312
+ }
2335
2313
  }
2336
2314
  }
2337
2315
  };
@@ -2339,197 +2317,223 @@ function overrideCheckbox(theme) {
2339
2317
 
2340
2318
  function overrideChip(theme) {
2341
2319
  var sm = theme.breakpoints.up('sm');
2342
- theme.props.MuiChip = {
2343
- size: 'small',
2344
- deleteIcon: /*#__PURE__*/jsx("div", {
2345
- children: /*#__PURE__*/jsx(SvgIcon, {
2346
- children: /*#__PURE__*/jsx("path", {
2347
- fillRule: "evenodd",
2348
- clipRule: "evenodd",
2349
- d: "M13.239 12L17 8.239 15.761 7 12 10.761 8.239 7 7 8.239 10.761 12 7 15.761 8.239 17 12 13.239 15.761 17 17 15.761 13.239 12z",
2350
- fill: "currentColor"
2320
+ theme.components.MuiChip = {
2321
+ defaultProps: {
2322
+ size: 'small',
2323
+ deleteIcon: /*#__PURE__*/jsx("div", {
2324
+ children: /*#__PURE__*/jsx(SvgIcon, {
2325
+ children: /*#__PURE__*/jsx("path", {
2326
+ fillRule: "evenodd",
2327
+ clipRule: "evenodd",
2328
+ d: "M13.239 12L17 8.239 15.761 7 12 10.761 8.239 7 7 8.239 10.761 12 7 15.761 8.239 17 12 13.239 15.761 17 17 15.761 13.239 12z",
2329
+ fill: "currentColor"
2330
+ })
2351
2331
  })
2352
2332
  })
2353
- })
2354
- };
2355
- theme.overrides.MuiChip = {
2356
- root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
2357
- color: undefined,
2358
- height: undefined,
2359
- borderRadius: 4,
2360
- backgroundColor: Color.Silver200,
2361
- '&$disabled': {
2362
- opacity: undefined,
2363
- color: Color.Dark100
2364
- }
2365
- }),
2366
- sizeSmall: {
2367
- height: undefined
2368
2333
  },
2369
- labelSmall: {
2370
- paddingLeft: 6,
2371
- paddingRight: 6,
2372
- [sm]: {
2373
- paddingLeft: 4,
2374
- paddingRight: 4
2375
- }
2376
- },
2377
- clickable: {
2378
- '&:hover, &:focus': {
2379
- backgroundColor: undefined
2334
+ styleOverrides: {
2335
+ root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
2336
+ color: 'unset',
2337
+ height: 'unset',
2338
+ borderRadius: 4,
2339
+ backgroundColor: Color.Silver200,
2340
+ ["&.".concat(chipClasses.disabled)]: {
2341
+ opacity: 1,
2342
+ color: Color.Dark100
2343
+ }
2344
+ }),
2345
+ sizeSmall: {
2346
+ height: 'unset'
2380
2347
  },
2381
- '&:active': {
2382
- boxShadow: undefined
2348
+ labelSmall: {
2349
+ paddingLeft: 6,
2350
+ paddingRight: 6,
2351
+ [sm]: {
2352
+ paddingLeft: 4,
2353
+ paddingRight: 4
2354
+ }
2383
2355
  },
2384
- '&:focus': {
2385
- boxShadow: "0 0 0 2px ".concat(Color.Silver300)
2356
+ clickable: {
2357
+ '&:hover, &:focus': {
2358
+ backgroundColor: Color.Silver200
2359
+ },
2360
+ '&:active': {
2361
+ boxShadow: 'unset'
2362
+ },
2363
+ '&:focus': {
2364
+ boxShadow: "0 0 0 2px ".concat(Color.Silver300)
2365
+ },
2366
+ '&:active, &:hover': {
2367
+ backgroundColor: Color.Silver300
2368
+ }
2386
2369
  },
2387
- '&:active, &:hover': {
2388
- backgroundColor: Color.Silver300
2389
- }
2390
- },
2391
- deletable: {
2392
- '&:focus': {
2393
- backgroundColor: undefined,
2394
- boxShadow: "0 0 0 2px ".concat(Color.Silver300)
2395
- }
2396
- },
2397
- deleteIcon: {
2398
- width: undefined,
2399
- height: undefined,
2400
- display: 'flex',
2401
- transition: theme.transitions.create('background-color'),
2402
- '&:active, &:hover, &:focus': {
2370
+ deletable: {
2371
+ '&:focus': {
2372
+ backgroundColor: Color.Silver200,
2373
+ boxShadow: "0 0 0 2px ".concat(Color.Silver300)
2374
+ }
2375
+ },
2376
+ deleteIcon: {
2377
+ width: 'unset',
2378
+ height: 'unset',
2379
+ display: 'flex',
2380
+ fontSize: 14,
2381
+ transition: theme.transitions.create('background-color'),
2382
+ '&:active, &:hover, &:focus': {
2383
+ '& > svg': {
2384
+ backgroundColor: Color.Silver400
2385
+ }
2386
+ },
2403
2387
  '& > svg': {
2404
- backgroundColor: Color.Silver400
2388
+ borderRadius: '50%',
2389
+ color: Color.Dark200,
2390
+ fontSize: '1em'
2405
2391
  }
2406
2392
  },
2407
- '& > svg': {
2408
- borderRadius: '50%',
2409
- color: Color.Dark200,
2410
- fontSize: '1em'
2411
- }
2412
- },
2413
- deleteIconSmall: {
2414
- width: undefined,
2415
- height: undefined,
2416
- padding: theme.spacing(0.5),
2417
- marginLeft: theme.spacing(-0.5),
2418
- marginRight: theme.spacing(0.25),
2419
- [sm]: {
2420
- marginRight: 0
2421
- }
2422
- },
2423
- icon: {
2424
- color: Color.Dark100,
2425
- fontSize: '1em',
2426
- marginRight: undefined
2427
- },
2428
- iconSmall: {
2429
- width: undefined,
2430
- height: undefined,
2431
- marginLeft: 8,
2432
- marginRight: undefined,
2433
- [sm]: {
2434
- marginLeft: 4
2393
+ deleteIconSmall: {
2394
+ width: 'unset',
2395
+ height: 'unset',
2396
+ padding: theme.spacing(0.5),
2397
+ marginLeft: theme.spacing(-0.5),
2398
+ marginRight: theme.spacing(0.25),
2399
+ [sm]: {
2400
+ marginRight: 0
2401
+ }
2402
+ },
2403
+ icon: {
2404
+ color: Color.Dark100,
2405
+ fontSize: '1em',
2406
+ marginRight: 'unset'
2407
+ },
2408
+ iconSmall: {
2409
+ width: 'unset',
2410
+ height: 'unset',
2411
+ marginLeft: 8,
2412
+ marginRight: 'unset',
2413
+ [sm]: {
2414
+ marginLeft: 4
2415
+ }
2435
2416
  }
2436
2417
  }
2437
2418
  };
2438
2419
  }
2439
2420
 
2440
2421
  function overrideDialog(theme) {
2441
- theme.props.MuiDialogTitle = {
2442
- disableTypography: true
2443
- };
2444
- theme.overrides.MuiDialog = {
2445
- paper: {
2446
- margin: theme.spacing(3)
2447
- },
2448
- paperWidthXs: {
2449
- maxWidth: Math.max(theme.breakpoints.values.xs, 360),
2450
- '&$paperScrollBody': {
2451
- [theme.breakpoints.down(Math.max(theme.breakpoints.values.xs, 360) + 32 * 2)]: {
2452
- maxWidth: 'calc(100% - 64px)'
2422
+ theme.components.MuiDialog = {
2423
+ styleOverrides: {
2424
+ paper: {
2425
+ margin: theme.spacing(3)
2426
+ },
2427
+ paperWidthXs: {
2428
+ maxWidth: Math.max(theme.breakpoints.values.xs, 360),
2429
+ ["&.".concat(dialogClasses.paperScrollBody)]: {
2430
+ [theme.breakpoints.down(Math.max(theme.breakpoints.values.xs, 360) + 32 * 2)]: {
2431
+ maxWidth: 'calc(100% - 64px)'
2432
+ }
2453
2433
  }
2454
2434
  }
2455
2435
  }
2456
2436
  };
2457
- theme.overrides.MuiDialogTitle = {
2458
- root: _objectSpread({}, theme.typography.h3)
2437
+ theme.components.MuiDialogTitle = {
2438
+ defaultProps: {
2439
+ // @ts-expect-error DialogTitleProps has missing type def
2440
+ variant: 'h3'
2441
+ }
2459
2442
  };
2460
- theme.overrides.MuiDialogContent = {
2461
- root: {
2462
- padding: theme.spacing(0, 3)
2443
+ theme.components.MuiDialogContent = {
2444
+ styleOverrides: {
2445
+ root: {
2446
+ padding: theme.spacing(0, 3)
2447
+ }
2463
2448
  }
2464
2449
  };
2465
- theme.overrides.MuiDialogActions = {
2466
- root: {
2467
- padding: theme.spacing(3)
2468
- },
2469
- spacing: {
2470
- '& > :not(:first-child)': {
2471
- marginLeft: theme.spacing(2)
2450
+ theme.components.MuiDialogActions = {
2451
+ styleOverrides: {
2452
+ root: {
2453
+ padding: theme.spacing(3)
2454
+ },
2455
+ spacing: {
2456
+ '& > :not(:first-child)': {
2457
+ marginLeft: theme.spacing(2)
2458
+ }
2472
2459
  }
2473
2460
  }
2474
2461
  };
2475
2462
  }
2476
2463
 
2477
2464
  function overrideDrawer(theme) {
2478
- theme.props.MuiDrawer = {
2479
- anchor: 'right'
2480
- };
2481
- theme.overrides.MuiDrawer = {
2482
- paper: {
2483
- maxWidth: '100%',
2484
- minWidth: '100%',
2485
- [theme.breakpoints.up('sm')]: {
2486
- minWidth: theme.spacing(54),
2487
- maxWidth: theme.breakpoints.values.sm
2465
+ theme.components.MuiDrawer = {
2466
+ defaultProps: {
2467
+ anchor: 'right'
2468
+ },
2469
+ styleOverrides: {
2470
+ paper: {
2471
+ maxWidth: '100%',
2472
+ minWidth: '100%',
2473
+ [theme.breakpoints.up('sm')]: {
2474
+ minWidth: theme.spacing(54),
2475
+ maxWidth: theme.breakpoints.values.sm
2476
+ }
2488
2477
  }
2489
2478
  }
2490
2479
  };
2491
2480
  }
2492
2481
 
2493
2482
  function overrideIconButton(theme) {
2494
- theme.overrides.MuiIconButton = {
2495
- root: {
2496
- color: Color.Dark100,
2497
- backgroundColor: Color.Transparent,
2498
- transition: theme.transitions.create(['color', 'background-color'], {
2499
- duration: theme.transitions.duration.short
2500
- }),
2501
- '&:hover': {
2502
- backgroundColor: Color.Transparent
2503
- },
2504
- '&:active': {
2505
- color: Color.Dark500
2483
+ theme.components.MuiIconButton = {
2484
+ styleOverrides: {
2485
+ root: {
2486
+ // no selector for default color
2487
+ ["&:not(.".concat(iconButtonClasses.colorInherit, "):not(.").concat(iconButtonClasses.colorPrimary, "):not(.").concat(iconButtonClasses.colorSecondary, "):not(.").concat(iconButtonClasses.disabled, ")")]: {
2488
+ color: Color.Dark100
2489
+ },
2490
+ backgroundColor: Color.Transparent,
2491
+ transition: theme.transitions.create(['color', 'background-color'], {
2492
+ duration: theme.transitions.duration.short
2493
+ }),
2494
+ '&:hover': {
2495
+ backgroundColor: Color.Transparent
2496
+ },
2497
+ '&:active': {
2498
+ color: Color.Dark500
2499
+ },
2500
+ '&:hover ': {
2501
+ color: Color.Dark300
2502
+ },
2503
+ '&:focus': {
2504
+ backgroundColor: Color.Silver400
2505
+ },
2506
+ ["&.".concat(iconButtonClasses.disabled)]: {
2507
+ color: Color.Silver500
2508
+ }
2506
2509
  },
2507
- '&:hover ': {
2508
- color: Color.Dark300
2510
+ colorPrimary: {
2511
+ '&:active': {
2512
+ color: Color.Blue500
2513
+ },
2514
+ '&:hover ': {
2515
+ color: Color.Blue300
2516
+ },
2517
+ '&:focus': {
2518
+ backgroundColor: Color.Blue50
2519
+ }
2509
2520
  },
2510
- '&:focus': {
2511
- backgroundColor: Color.Silver400
2521
+ edgeEnd: {
2522
+ marginRight: theme.spacing(-1)
2512
2523
  },
2513
- '&$disabled': {
2514
- color: Color.Silver500
2515
- }
2516
- },
2517
- colorPrimary: {
2518
- '&:active': {
2519
- color: Color.Blue500
2524
+ edgeStart: {
2525
+ marginLeft: theme.spacing(-1)
2520
2526
  },
2521
- '&:hover ': {
2522
- color: Color.Blue300
2527
+ sizeSmall: {
2528
+ padding: 3,
2529
+ fontSize: theme.typography.pxToRem(18)
2523
2530
  },
2524
- '&:focus': {
2525
- backgroundColor: Color.Blue50
2531
+ sizeMedium: {
2532
+ padding: 12,
2533
+ fontSize: theme.typography.pxToRem(24)
2534
+ },
2535
+ sizeLarge: {// todo declare large size
2526
2536
  }
2527
- },
2528
- edgeEnd: {
2529
- marginRight: theme.spacing(-1)
2530
- },
2531
- edgeStart: {
2532
- marginLeft: theme.spacing(-1)
2533
2537
  }
2534
2538
  };
2535
2539
  }
@@ -2539,344 +2543,381 @@ function line(color) {
2539
2543
  }
2540
2544
 
2541
2545
  function overrideLink(theme) {
2542
- theme.props.MuiLink = {
2543
- underline: 'none',
2544
- color: 'textPrimary'
2545
- };
2546
- theme.overrides.MuiLink = {
2547
- root: {
2548
- backgroundSize: '100% 1px',
2549
- backgroundRepeat: 'repeat-x',
2550
- backgroundPosition: '0 100%',
2551
- backgroundColor: Color.Transparent,
2552
- '&:focus': {
2553
- outline: 'none'
2554
- },
2555
- '&:hover, &:active': {
2556
- backgroundImage: line('currentColor')
2546
+ theme.components.MuiLink = {
2547
+ defaultProps: {
2548
+ underline: 'none',
2549
+ color: 'textPrimary'
2550
+ },
2551
+ styleOverrides: {
2552
+ root: {
2553
+ backgroundSize: '100% 1px',
2554
+ backgroundRepeat: 'repeat-x',
2555
+ backgroundPosition: '0 100%',
2556
+ backgroundColor: Color.Transparent,
2557
+ '&:focus': {
2558
+ outline: 'none'
2559
+ },
2560
+ '&:hover, &:active': {
2561
+ backgroundImage: line('currentColor')
2562
+ }
2557
2563
  },
2558
- '&.MuiTypography-colorTextPrimary': {
2564
+ // @ts-expect-error type def need in patch-package
2565
+ colorTextPrimary: {
2559
2566
  backgroundImage: line(Color.Silver500),
2560
2567
  '&:focus, &:hover, &:active': {
2561
2568
  color: Color.Blue300,
2562
2569
  backgroundImage: line(Color.Blue300)
2563
2570
  }
2571
+ },
2572
+ button: {
2573
+ // Reset button styles.
2574
+ backgroundColor: 'unset',
2575
+ // Override browser defaults.
2576
+ fontSize: 'inherit',
2577
+ textAlign: 'inherit',
2578
+ lineHeight: 'inherit',
2579
+ userSelect: 'inherit',
2580
+ verticalAlign: 'inherit'
2564
2581
  }
2565
- },
2566
- button: {
2567
- // Reset button styles.
2568
- backgroundColor: undefined,
2569
- // Override browser defaults.
2570
- fontSize: 'inherit',
2571
- textAlign: 'inherit',
2572
- lineHeight: 'inherit',
2573
- userSelect: 'inherit',
2574
- verticalAlign: 'inherit'
2575
2582
  }
2576
2583
  };
2577
2584
  }
2578
2585
 
2579
2586
  function overrideList(theme) {
2580
- theme.overrides.MuiListItem = {
2581
- root: {
2582
- '&$selected, &$selected:hover': {
2583
- backgroundColor: Color.Blue50
2584
- },
2585
- '& .MuiTouchRipple-root': {
2586
- color: Color.Blue100
2587
+ theme.components.MuiListItem = {
2588
+ styleOverrides: {
2589
+ root: {
2590
+ ["&.".concat(listItemClasses.selected, ", &.").concat(listItemClasses.selected, ":hover")]: {
2591
+ backgroundColor: Color.Blue50
2592
+ },
2593
+ '& .MuiTouchRipple-root': {
2594
+ color: Color.Blue100
2595
+ }
2587
2596
  }
2588
2597
  }
2589
2598
  };
2590
2599
  }
2591
2600
 
2592
2601
  function overrideMenu(theme) {
2593
- theme.props.MuiMenu = {
2594
- getContentAnchorEl: null,
2595
- anchorOrigin: {
2596
- vertical: 'bottom',
2597
- horizontal: 'left'
2598
- },
2599
- transformOrigin: {
2600
- vertical: 'top',
2601
- horizontal: 'left'
2602
+ theme.components.MuiMenu = {
2603
+ defaultProps: {
2604
+ anchorOrigin: {
2605
+ vertical: 'bottom',
2606
+ horizontal: 'left'
2607
+ },
2608
+ transformOrigin: {
2609
+ vertical: 'top',
2610
+ horizontal: 'left'
2611
+ }
2602
2612
  }
2603
2613
  };
2604
- theme.overrides.MuiMenuItem = {
2605
- root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
2606
- paddingTop: theme.spacing(1),
2607
- paddingBottom: theme.spacing(1)
2608
- })
2614
+ theme.components.MuiMenuItem = {
2615
+ styleOverrides: {
2616
+ root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
2617
+ paddingTop: theme.spacing(1),
2618
+ paddingBottom: theme.spacing(1),
2619
+ '& .MuiTouchRipple-root': {
2620
+ color: Color.Blue100
2621
+ },
2622
+ ["&.".concat(menuItemClasses.selected, ", &.").concat(menuItemClasses.selected, ":hover")]: {
2623
+ backgroundColor: Color.Blue50,
2624
+ ["&.".concat(menuItemClasses.focusVisible)]: {
2625
+ backgroundColor: Color.Blue50
2626
+ }
2627
+ }
2628
+ })
2629
+ }
2609
2630
  };
2610
2631
  }
2611
2632
 
2612
2633
  function overridePagination(theme) {
2613
- var props = {};
2614
- var overrides = {
2615
- root: {
2616
- color: Color.Dark400
2617
- },
2618
- page: {
2619
- '&:hover': {
2620
- backgroundColor: Color.Silver200
2634
+ theme.components.MuiPaginationItem = {
2635
+ styleOverrides: {
2636
+ root: {
2637
+ color: Color.Dark400
2621
2638
  },
2622
- '&$focusVisible': {
2623
- borderRadius: 4,
2624
- backgroundColor: Color.White,
2625
- border: "1px solid ".concat(Color.Blue100)
2626
- },
2627
- '&$selected': {
2628
- backgroundColor: Color.Silver400,
2629
- '&:hover, &$focusVisible': {
2630
- backgroundColor: Color.Silver400
2639
+ page: {
2640
+ '&:hover': {
2641
+ backgroundColor: Color.Silver200
2631
2642
  },
2632
- '&$disabled': {
2633
- color: Color.Dark100,
2634
- backgroundColor: Color.Silver400
2643
+ ["&.".concat(paginationItemClasses.focusVisible)]: {
2644
+ borderRadius: 4,
2645
+ backgroundColor: Color.White,
2646
+ border: "1px solid ".concat(Color.Blue100)
2647
+ },
2648
+ ["&.".concat(paginationItemClasses.selected)]: {
2649
+ backgroundColor: Color.Silver400,
2650
+ ["&:hover, &.".concat(paginationItemClasses.focusVisible)]: {
2651
+ backgroundColor: Color.Silver400
2652
+ },
2653
+ ["&.".concat(paginationItemClasses.disabled)]: {
2654
+ color: Color.Dark100,
2655
+ backgroundColor: Color.Silver400
2656
+ }
2657
+ },
2658
+ ["&.".concat(paginationItemClasses.disabled)]: {
2659
+ opacity: 1,
2660
+ color: Color.Dark100
2635
2661
  }
2636
- },
2637
- '&$disabled': {
2638
- opacity: undefined,
2639
- color: Color.Dark100
2640
2662
  }
2641
2663
  }
2642
- }; // Remove `Object.assign` after official release of `PaginationItem`.
2643
-
2644
- Object.assign(theme.props, {
2645
- MuiPaginationItem: props
2646
- });
2647
- Object.assign(theme.overrides, {
2648
- MuiPaginationItem: overrides
2649
- });
2664
+ };
2650
2665
  }
2651
2666
 
2652
2667
  function overridePaper(theme) {
2653
- theme.props.MuiPaper = {
2654
- elevation: 0
2655
- };
2656
- theme.overrides.MuiPaper = {
2657
- elevation0: {
2658
- border: "1px solid ".concat(Color.Silver400)
2668
+ theme.components.MuiPaper = {
2669
+ defaultProps: {
2670
+ elevation: 0
2671
+ },
2672
+ styleOverrides: {
2673
+ elevation0: {
2674
+ border: "1px solid ".concat(Color.Silver400)
2675
+ }
2659
2676
  }
2660
2677
  };
2661
2678
  }
2662
2679
 
2663
2680
  function overrideRadio(theme) {
2664
- theme.props.MuiRadio = {
2665
- color: 'primary',
2666
- icon: /*#__PURE__*/jsx(SvgIcon, {
2667
- children: /*#__PURE__*/jsx("circle", {
2668
- cx: "12",
2669
- cy: "12",
2670
- r: "8.5",
2671
- fill: Color.White,
2672
- stroke: "currentColor"
2681
+ theme.components.MuiRadio = {
2682
+ defaultProps: {
2683
+ color: 'primary',
2684
+ icon: /*#__PURE__*/jsx(SvgIcon, {
2685
+ children: /*#__PURE__*/jsx("circle", {
2686
+ cx: "12",
2687
+ cy: "12",
2688
+ r: "8.5",
2689
+ fill: Color.White,
2690
+ stroke: "currentColor"
2691
+ })
2692
+ }),
2693
+ checkedIcon: /*#__PURE__*/jsxs(SvgIcon, {
2694
+ children: [/*#__PURE__*/jsx("circle", {
2695
+ cx: "12",
2696
+ cy: "12",
2697
+ r: "8.5",
2698
+ fill: "currentColor",
2699
+ stroke: "currentColor"
2700
+ }), /*#__PURE__*/jsx("circle", {
2701
+ cx: "12",
2702
+ cy: "12",
2703
+ r: "4",
2704
+ fill: Color.White
2705
+ })]
2673
2706
  })
2674
- }),
2675
- checkedIcon: /*#__PURE__*/jsxs(SvgIcon, {
2676
- children: [/*#__PURE__*/jsx("circle", {
2677
- cx: "12",
2678
- cy: "12",
2679
- r: "8.5",
2680
- fill: "currentColor",
2681
- stroke: "currentColor"
2682
- }), /*#__PURE__*/jsx("circle", {
2683
- cx: "12",
2684
- cy: "12",
2685
- r: "4",
2686
- fill: Color.White
2687
- })]
2688
- })
2689
- };
2690
- theme.overrides.MuiRadio = {
2691
- root: {
2692
- color: Color.Dark100,
2693
- marginTop: theme.spacing(-0.625),
2694
- marginBottom: theme.spacing(-0.625)
2695
2707
  },
2696
- colorPrimary: {
2697
- '&$checked$disabled': {
2698
- color: Color.Silver500
2708
+ styleOverrides: {
2709
+ root: {
2710
+ color: Color.Dark100,
2711
+ marginTop: theme.spacing(-0.625),
2712
+ marginBottom: theme.spacing(-0.625)
2699
2713
  },
2700
- '&:hover:not($checked)': {
2701
- color: Color.Dark100
2714
+ colorPrimary: {
2715
+ ["&.".concat(radioClasses.disabled, ".").concat(radioClasses.checked)]: {
2716
+ color: Color.Silver500
2717
+ },
2718
+ ["&:hover:not(.".concat(radioClasses.checked, ")")]: {
2719
+ color: Color.Dark100
2720
+ }
2702
2721
  }
2703
2722
  }
2704
2723
  };
2705
2724
  }
2706
2725
 
2707
2726
  function overrideSnackbar(theme) {
2708
- theme.overrides.MuiSnackbar = {
2709
- anchorOriginBottomCenter: {
2710
- left: 0,
2711
- right: 0,
2712
- bottom: 0
2727
+ theme.components.MuiSnackbar = {
2728
+ defaultProps: {
2729
+ anchorOrigin: {
2730
+ vertical: 'bottom',
2731
+ horizontal: 'center'
2732
+ }
2733
+ },
2734
+ styleOverrides: {
2735
+ anchorOriginBottomCenter: {
2736
+ left: 0,
2737
+ right: 0,
2738
+ bottom: 0
2739
+ }
2713
2740
  }
2714
2741
  };
2715
- theme.overrides.MuiSnackbarContent = {
2716
- root: {
2717
- width: '100%',
2718
- borderRadius: 0,
2719
- minHeight: theme.spacing(7.5),
2720
- [theme.breakpoints.up('sm')]: {
2721
- width: theme.spacing(54),
2722
- maxWidth: theme.spacing(54),
2723
- borderRadius: theme.spacing(0.5)
2742
+ theme.components.MuiSnackbarContent = {
2743
+ styleOverrides: {
2744
+ root: {
2745
+ width: '100%',
2746
+ borderRadius: 0,
2747
+ minHeight: theme.spacing(7.5),
2748
+ [theme.breakpoints.up('sm')]: {
2749
+ width: theme.spacing(54),
2750
+ maxWidth: theme.spacing(54),
2751
+ borderRadius: theme.spacing(0.5)
2752
+ }
2753
+ },
2754
+ message: {
2755
+ flex: 1,
2756
+ display: 'flex'
2724
2757
  }
2725
- },
2726
- message: {
2727
- flex: 1,
2728
- display: 'flex'
2729
2758
  }
2730
2759
  };
2731
2760
  }
2732
2761
 
2733
2762
  function overrideSvgIcon(theme) {
2734
2763
  var sm = theme.breakpoints.up('sm');
2735
- theme.overrides.MuiSvgIcon = {
2736
- root: {
2737
- display: 'inherit',
2738
- fontSize: 'var(--mui-svg-icon-size, 32px)',
2739
- [sm]: {
2740
- fontSize: 'var(--mui-svg-icon-size, 24px)'
2741
- }
2742
- },
2743
- fontSizeSmall: {
2744
- fontSize: 'var(--mui-svg-icon-size, 24px)',
2745
- [sm]: {
2746
- fontSize: 'var(--mui-svg-icon-size, 16px)'
2764
+ theme.components.MuiSvgIcon = {
2765
+ styleOverrides: {
2766
+ root: {
2767
+ display: 'inherit',
2768
+ fontSize: 'var(--mui-svg-icon-size, 32px)',
2769
+ [sm]: {
2770
+ fontSize: 'var(--mui-svg-icon-size, 24px)'
2771
+ }
2772
+ },
2773
+ fontSizeInherit: {
2774
+ fontSize: 'inherit',
2775
+ [sm]: {
2776
+ fontSize: 'inherit'
2777
+ }
2778
+ },
2779
+ fontSizeSmall: {
2780
+ fontSize: 'var(--mui-svg-icon-size, 24px)',
2781
+ [sm]: {
2782
+ fontSize: 'var(--mui-svg-icon-size, 16px)'
2783
+ }
2784
+ },
2785
+ fontSizeLarge: {
2786
+ fontSize: 'var(--mui-svg-icon-size, 32px)'
2787
+ },
2788
+ colorAction: {
2789
+ color: Color.Dark100
2747
2790
  }
2748
- },
2749
- fontSizeLarge: {
2750
- fontSize: 'var(--mui-svg-icon-size, 32px)'
2751
- },
2752
- colorAction: {
2753
- color: Color.Dark100
2754
2791
  }
2755
2792
  };
2756
2793
  }
2757
2794
 
2758
2795
  function overrideSwitch(theme) {
2759
2796
  var sm = theme.breakpoints.up('sm');
2760
- theme.props.MuiSwitch = {
2761
- color: 'primary',
2762
- disableRipple: true,
2763
- disableFocusRipple: true
2764
- };
2765
- theme.overrides.MuiSwitch = {
2766
- root: {
2767
- width: theme.spacing(9.5),
2768
- height: theme.spacing(5.5),
2769
- padding: theme.spacing(0.75, 1.5),
2770
- [sm]: {
2771
- width: theme.spacing(8),
2772
- height: theme.spacing(4),
2773
- padding: theme.spacing(0.5, 1.5)
2774
- }
2775
- },
2776
- track: {
2777
- opacity: undefined,
2778
- boxShadow: "0 0 0 0 ".concat(Color.Transparent),
2779
- transition: theme.transitions.create(['box-shadow', 'background-color'], {
2780
- duration: theme.transitions.duration.shortest
2781
- }),
2782
- borderRadius: theme.spacing(2),
2783
- [sm]: {
2784
- borderRadius: theme.spacing(1.625)
2785
- }
2786
- },
2787
- thumb: {
2788
- color: Color.White,
2789
- boxShadow: undefined,
2790
- width: theme.spacing(3),
2791
- height: theme.spacing(3),
2792
- [sm]: {
2793
- width: theme.spacing(2),
2794
- height: theme.spacing(2)
2795
- }
2796
- },
2797
- switchBase: {
2798
- left: theme.spacing(1),
2799
- padding: theme.spacing(1.25, 1),
2800
- [sm]: {
2801
- padding: theme.spacing(1)
2797
+ theme.components.MuiSwitch = {
2798
+ defaultProps: {
2799
+ color: 'primary',
2800
+ disableRipple: true,
2801
+ disableFocusRipple: true
2802
+ },
2803
+ styleOverrides: {
2804
+ root: {
2805
+ width: theme.spacing(9.5),
2806
+ height: theme.spacing(5.5),
2807
+ padding: theme.spacing(0.75, 1.5),
2808
+ [sm]: {
2809
+ width: theme.spacing(8),
2810
+ height: theme.spacing(4),
2811
+ padding: theme.spacing(0.5, 1.5)
2812
+ }
2802
2813
  },
2803
- '&$checked': {
2804
- transform: "translateX(".concat(theme.spacing(2.5), "px)"),
2814
+ track: {
2815
+ opacity: 1,
2816
+ boxShadow: "0 0 0 0 ".concat(Color.Transparent),
2817
+ transition: theme.transitions.create(['box-shadow', 'background-color'], {
2818
+ duration: theme.transitions.duration.shortest
2819
+ }),
2820
+ borderRadius: theme.spacing(2),
2805
2821
  [sm]: {
2806
- transform: "translateX(".concat(theme.spacing(2), "px)")
2822
+ borderRadius: theme.spacing(1.625)
2807
2823
  }
2808
2824
  },
2809
- '&$checked + $track': {
2810
- opacity: undefined
2825
+ thumb: {
2826
+ color: Color.White,
2827
+ boxShadow: 'none',
2828
+ width: theme.spacing(3),
2829
+ height: theme.spacing(3),
2830
+ [sm]: {
2831
+ width: theme.spacing(2),
2832
+ height: theme.spacing(2)
2833
+ }
2811
2834
  },
2812
- '&$disabled + $track': {
2813
- opacity: undefined
2814
- }
2815
- },
2816
- colorPrimary: {
2817
- '&$checked': {
2818
- color: undefined,
2819
- '&:hover': {
2820
- backgroundColor: undefined,
2821
- '& + $track': {
2822
- backgroundColor: Color.Blue400
2835
+ switchBase: {
2836
+ left: theme.spacing(1),
2837
+ padding: theme.spacing(1.25, 1),
2838
+ [sm]: {
2839
+ padding: theme.spacing(1)
2840
+ },
2841
+ ["&.".concat(switchClasses.checked)]: {
2842
+ transform: "translateX(".concat(theme.spacing(2.5), ")"),
2843
+ [sm]: {
2844
+ transform: "translateX(".concat(theme.spacing(2), ")")
2823
2845
  }
2846
+ },
2847
+ ["&.".concat(switchClasses.checked, " + .").concat(switchClasses.track)]: {
2848
+ opacity: 1
2849
+ },
2850
+ ["&.".concat(switchClasses.disabled, " + .").concat(switchClasses.track)]: {
2851
+ opacity: 1
2824
2852
  }
2825
2853
  },
2826
- '& + $track': {
2827
- backgroundColor: Color.Silver500
2828
- },
2829
- '&$disabled + $track': {
2830
- backgroundColor: Color.Silver300
2831
- },
2832
- '&$checked$disabled + $track': {
2833
- backgroundColor: Color.Blue100
2834
- },
2835
- '&:hover + $track': {
2836
- backgroundColor: Color.Dark100
2837
- },
2838
- '&.Mui-focusVisible + $track': {
2839
- boxShadow: "0 0 0 3px ".concat(Color.Blue100)
2854
+ colorPrimary: {
2855
+ ["&.".concat(switchClasses.checked)]: {
2856
+ '&:hover': {
2857
+ ["& + .".concat(switchClasses.track)]: {
2858
+ backgroundColor: Color.Blue400
2859
+ }
2860
+ }
2861
+ },
2862
+ ["& + .".concat(switchClasses.track)]: {
2863
+ backgroundColor: Color.Silver500
2864
+ },
2865
+ ["&.".concat(switchClasses.disabled, " + .").concat(switchClasses.track)]: {
2866
+ backgroundColor: Color.Silver300
2867
+ },
2868
+ ["&.".concat(switchClasses.checked, ".").concat(switchClasses.disabled, " + .").concat(switchClasses.track)]: {
2869
+ backgroundColor: Color.Blue100
2870
+ },
2871
+ ["&:hover + .".concat(switchClasses.track)]: {
2872
+ backgroundColor: Color.Dark100
2873
+ },
2874
+ ["&.Mui-focusVisible + .".concat(switchClasses.track)]: {
2875
+ boxShadow: "0 0 0 3px ".concat(Color.Blue100)
2876
+ }
2840
2877
  }
2841
2878
  }
2842
2879
  };
2843
2880
  }
2844
2881
 
2845
2882
  function overrideTabs(theme) {
2846
- theme.props.MuiTabs = {
2847
- variant: 'scrollable',
2848
- textColor: 'primary',
2849
- indicatorColor: 'primary'
2850
- };
2851
- theme.overrides.MuiTabs = {
2852
- root: {
2853
- minHeight: theme.spacing(6)
2854
- },
2855
- scrollButtons: {
2856
- opacity: 1,
2857
- color: Color.Dark100,
2858
- width: theme.spacing(4),
2859
- transition: theme.transitions.create('opacity', {
2860
- duration: theme.transitions.duration.short
2861
- })
2883
+ theme.components.MuiTabs = {
2884
+ defaultProps: {
2885
+ variant: 'scrollable',
2886
+ textColor: 'primary',
2887
+ indicatorColor: 'primary'
2888
+ },
2889
+ styleOverrides: {
2890
+ root: {
2891
+ minHeight: theme.spacing(6)
2892
+ },
2893
+ scrollButtons: {
2894
+ opacity: 1,
2895
+ color: Color.Dark100,
2896
+ width: theme.spacing(4),
2897
+ transition: theme.transitions.create('opacity', {
2898
+ duration: theme.transitions.duration.short
2899
+ })
2900
+ }
2862
2901
  }
2863
2902
  };
2864
- theme.overrides.MuiTab = {
2865
- root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
2866
- minHeight: theme.spacing(6),
2867
- transition: theme.transitions.create(['color'], {
2868
- duration: theme.transitions.duration.short
2903
+ theme.components.MuiTab = {
2904
+ styleOverrides: {
2905
+ root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
2906
+ minHeight: theme.spacing(6),
2907
+ transition: theme.transitions.create(['color'], {
2908
+ duration: theme.transitions.duration.short
2909
+ }),
2910
+ [theme.breakpoints.up('sm')]: {
2911
+ minWidth: 'unset',
2912
+ fontSize: 'unset',
2913
+ padding: theme.spacing(0.75, 3)
2914
+ }
2869
2915
  }),
2870
- [theme.breakpoints.up('sm')]: {
2871
- minWidth: undefined,
2872
- fontSize: undefined,
2873
- padding: theme.spacing(0.75, 3)
2874
- }
2875
- }),
2876
- textColorPrimary: {
2877
- color: Color.Dark500,
2878
- '&:hover, &:focus': {
2879
- color: Color.Blue300
2916
+ textColorPrimary: {
2917
+ color: Color.Dark500,
2918
+ '&:hover, &:focus': {
2919
+ color: Color.Blue300
2920
+ }
2880
2921
  }
2881
2922
  }
2882
2923
  };
@@ -2893,223 +2934,248 @@ var SelectIcon = /*#__PURE__*/forwardRef((props, ref) => /*#__PURE__*/jsx(SvgIco
2893
2934
  if (process.env.NODE_ENV !== "production") SelectIcon.displayName = "SelectIcon";
2894
2935
  function overrideTextField(theme) {
2895
2936
  var sm = theme.breakpoints.up('sm');
2896
- theme.props.MuiTextField = {
2897
- minRows: 4,
2898
- maxRows: 4,
2899
- variant: 'outlined'
2900
- };
2901
- theme.overrides.MuiFormLabel = {
2902
- root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
2903
- color: Color.Dark400,
2904
- '&$error': {
2905
- color: undefined
2906
- },
2907
- '&$focused': {
2908
- color: undefined
2909
- },
2910
- '&$disabled': {
2911
- color: undefined
2912
- }
2913
- })
2914
- };
2915
- theme.overrides.MuiInputBase = {
2916
- root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
2917
- '&$disabled': {
2918
- backgroundColor: Color.Silver100
2919
- }
2920
- }),
2921
- input: {
2922
- textOverflow: 'ellipsis',
2923
- height: theme.spacing(3),
2924
- [sm]: {
2925
- height: theme.spacing(2.5)
2926
- }
2927
- },
2928
- inputMultiline: {
2929
- resize: 'vertical'
2937
+ theme.components.MuiTextField = {
2938
+ defaultProps: {
2939
+ minRows: 4,
2940
+ maxRows: 4,
2941
+ variant: 'outlined'
2930
2942
  }
2931
2943
  };
2932
- theme.props.MuiInputLabel = {
2933
- shrink: true
2944
+ theme.components.MuiFormLabel = {
2945
+ styleOverrides: {
2946
+ root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
2947
+ color: Color.Dark400,
2948
+ ["&.".concat(formLabelClasses.error)]: {
2949
+ color: Color.Dark400
2950
+ },
2951
+ ["&.".concat(formLabelClasses.focused)]: {
2952
+ color: Color.Dark400
2953
+ },
2954
+ ["&.".concat(formLabelClasses.disabled)]: {
2955
+ color: Color.Dark400
2956
+ }
2957
+ })
2958
+ }
2934
2959
  };
2935
- theme.overrides.MuiInputLabel = {
2936
- root: {
2937
- marginBottom: theme.spacing(0.5),
2938
- transformOrigin: undefined
2939
- },
2940
- formControl: {
2941
- top: undefined,
2942
- left: undefined,
2943
- position: undefined,
2944
- transform: undefined
2945
- },
2946
- shrink: {
2947
- transform: undefined,
2948
- transformOrigin: undefined
2949
- },
2950
- outlined: {
2951
- zIndex: undefined,
2952
- transform: undefined,
2953
- pointerEvents: undefined,
2954
- '&$shrink': {
2955
- transform: undefined
2960
+ theme.components.MuiInputBase = {
2961
+ styleOverrides: {
2962
+ root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
2963
+ ["&.".concat(inputBaseClasses.disabled)]: {
2964
+ backgroundColor: Color.Silver100
2965
+ }
2966
+ }),
2967
+ input: {
2968
+ textOverflow: 'ellipsis',
2969
+ height: theme.spacing(3),
2970
+ [sm]: {
2971
+ height: theme.spacing(2.5)
2972
+ }
2973
+ },
2974
+ inputMultiline: {
2975
+ resize: 'vertical'
2956
2976
  }
2957
2977
  }
2958
2978
  };
2959
- theme.props.MuiOutlinedInput = {
2960
- notched: false
2961
- };
2962
- theme.overrides.MuiOutlinedInput = {
2963
- root: {
2964
- '&:hover $notchedOutline': {
2965
- borderColor: undefined
2966
- }
2967
- },
2968
- input: {
2969
- padding: theme.spacing(1.25, 1.5),
2970
- [sm]: {
2971
- padding: theme.spacing(0.75, 1)
2972
- }
2973
- },
2974
- multiline: {
2975
- padding: theme.spacing(0.75, 1)
2976
- },
2977
- adornedStart: {
2978
- paddingLeft: theme.spacing(1)
2979
- },
2980
- adornedEnd: {
2981
- paddingRight: theme.spacing(1)
2982
- },
2983
- notchedOutline: {
2984
- top: 0,
2985
- borderColor: Color.Silver500,
2986
- '& legend': {
2987
- display: 'none'
2979
+ theme.components.MuiInputLabel = {
2980
+ defaultProps: {
2981
+ shrink: true
2982
+ },
2983
+ styleOverrides: {
2984
+ root: {
2985
+ marginBottom: theme.spacing(0.5),
2986
+ transformOrigin: 'unset'
2987
+ },
2988
+ formControl: {
2989
+ top: 'unset',
2990
+ left: 'unset',
2991
+ position: 'unset',
2992
+ transform: 'unset'
2993
+ },
2994
+ shrink: {
2995
+ transform: 'unset',
2996
+ transformOrigin: 'unset'
2997
+ },
2998
+ outlined: {
2999
+ zIndex: 'unset',
3000
+ transform: 'unset',
3001
+ pointerEvents: 'unset'
2988
3002
  }
2989
3003
  }
2990
3004
  };
2991
- theme.props.MuiSelect = {
2992
- IconComponent: SelectIcon
2993
- };
2994
- theme.overrides.MuiSelect = {
2995
- icon: {
2996
- top: 'calc(50% - 0.5em)',
2997
- '$disabled &': {
2998
- color: Color.Dark100
3005
+ theme.components.MuiOutlinedInput = {
3006
+ defaultProps: {
3007
+ notched: false
3008
+ },
3009
+ styleOverrides: {
3010
+ root: {
3011
+ ["&:hover .".concat(outlinedInputClasses.notchedOutline)]: {
3012
+ borderColor: Color.Silver500
3013
+ }
2999
3014
  },
3000
- fontSize: theme.spacing(3),
3001
- [sm]: {
3002
- fontSize: theme.spacing(2)
3003
- }
3004
- },
3005
- iconOutlined: {
3006
- right: theme.spacing(1.5),
3007
- [sm]: {
3008
- right: theme.spacing(1)
3009
- }
3010
- },
3011
- select: {
3012
- '&:focus': {
3013
- backgroundColor: undefined
3014
- }
3015
- },
3016
- selectMenu: {
3017
- '&&': {
3018
- paddingRight: theme.spacing(4.5),
3015
+ input: {
3016
+ padding: theme.spacing(1.25, 1.5),
3019
3017
  [sm]: {
3020
- right: theme.spacing(4)
3018
+ padding: theme.spacing(0.75, 1)
3019
+ },
3020
+ '&.MuiInputBase-inputAdornedStart': {
3021
+ paddingLeft: 0
3022
+ },
3023
+ '&.MuiInputBase-inputAdornedEnd': {
3024
+ paddingRight: 0
3025
+ }
3026
+ },
3027
+ inputMultiline: {
3028
+ padding: 0,
3029
+ [sm]: {
3030
+ padding: 0
3031
+ }
3032
+ },
3033
+ multiline: {
3034
+ padding: theme.spacing(0.75, 1)
3035
+ },
3036
+ adornedStart: {
3037
+ paddingLeft: theme.spacing(1)
3038
+ },
3039
+ adornedEnd: {
3040
+ paddingRight: theme.spacing(1)
3041
+ },
3042
+ notchedOutline: {
3043
+ top: 0,
3044
+ borderColor: Color.Silver500,
3045
+ '& legend': {
3046
+ display: 'none'
3021
3047
  }
3022
3048
  }
3023
3049
  }
3024
3050
  };
3025
- theme.overrides.MuiInputAdornment = {
3026
- root: {
3027
- '& .MuiSvgIcon-root:not(.MuiSvgIcon-fontSizeSmall)': {
3051
+ theme.components.MuiSelect = {
3052
+ defaultProps: {
3053
+ IconComponent: SelectIcon
3054
+ },
3055
+ styleOverrides: {
3056
+ icon: {
3057
+ top: 'calc(50% - 0.5em)',
3058
+ '$disabled &': {
3059
+ color: Color.Dark100
3060
+ },
3028
3061
  fontSize: theme.spacing(3),
3029
3062
  [sm]: {
3030
- fontSize: theme.spacing(2.5)
3063
+ fontSize: theme.spacing(2)
3031
3064
  }
3032
3065
  },
3033
- '& .MuiIconButton-root': {
3034
- padding: theme.spacing(1)
3035
- }
3036
- },
3037
- positionStart: {
3038
- '& .MuiIconButton-root': {
3039
- marginLeft: theme.spacing(-0.5),
3066
+ iconOutlined: {
3067
+ right: theme.spacing(1.5),
3040
3068
  [sm]: {
3041
- marginLeft: theme.spacing(-0.75)
3069
+ right: theme.spacing(1)
3042
3070
  }
3043
- }
3044
- },
3045
- positionEnd: {
3046
- '& .MuiIconButton-root': {
3047
- marginRight: theme.spacing(-0.5),
3071
+ },
3072
+ select: {
3073
+ paddingRight: theme.spacing(4.5),
3048
3074
  [sm]: {
3049
- marginRight: theme.spacing(-0.75)
3075
+ right: theme.spacing(4)
3076
+ },
3077
+ '&:focus': {
3078
+ backgroundColor: 'unset'
3050
3079
  }
3051
3080
  }
3052
3081
  }
3053
3082
  };
3054
- theme.overrides.MuiFormHelperText = {
3055
- root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
3056
- marginTop: theme.spacing(0.5)
3057
- }),
3058
- contained: {
3059
- marginLeft: undefined,
3060
- marginRight: undefined
3083
+ theme.components.MuiInputAdornment = {
3084
+ styleOverrides: {
3085
+ root: {
3086
+ '& .MuiSvgIcon-root:not(.MuiSvgIcon-fontSizeSmall)': {
3087
+ fontSize: theme.spacing(3),
3088
+ [sm]: {
3089
+ fontSize: theme.spacing(2.5)
3090
+ }
3091
+ },
3092
+ '& .MuiIconButton-root': {
3093
+ padding: theme.spacing(1)
3094
+ }
3095
+ },
3096
+ positionStart: {
3097
+ '& .MuiIconButton-root': {
3098
+ marginLeft: theme.spacing(-0.5),
3099
+ [sm]: {
3100
+ marginLeft: theme.spacing(-0.75)
3101
+ }
3102
+ }
3103
+ },
3104
+ positionEnd: {
3105
+ '& .MuiIconButton-root': {
3106
+ marginRight: theme.spacing(-0.5),
3107
+ [sm]: {
3108
+ marginRight: theme.spacing(-0.75)
3109
+ }
3110
+ }
3111
+ }
3112
+ }
3113
+ };
3114
+ theme.components.MuiFormHelperText = {
3115
+ styleOverrides: {
3116
+ root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
3117
+ marginTop: theme.spacing(0.5)
3118
+ }),
3119
+ contained: {
3120
+ marginLeft: 'unset',
3121
+ marginRight: 'unset'
3122
+ }
3061
3123
  }
3062
3124
  };
3063
3125
  }
3064
3126
 
3065
3127
  function overrideToolbar(theme) {
3066
- theme.overrides.MuiToolbar = {
3067
- regular: {
3068
- minHeight: theme.spacing(8)
3069
- },
3070
- gutters: {
3071
- [theme.breakpoints.up('sm')]: {
3072
- paddingLeft: theme.spacing(2),
3073
- paddingRight: theme.spacing(2)
3128
+ theme.components.MuiToolbar = {
3129
+ styleOverrides: {
3130
+ regular: {
3131
+ minHeight: theme.spacing(8)
3132
+ },
3133
+ gutters: {
3134
+ [theme.breakpoints.up('sm')]: {
3135
+ paddingLeft: theme.spacing(2),
3136
+ paddingRight: theme.spacing(2)
3137
+ }
3074
3138
  }
3075
3139
  }
3076
3140
  };
3077
3141
  }
3078
3142
 
3079
3143
  function overrideTooltip(theme) {
3080
- theme.props.MuiTooltip = {
3081
- arrow: true
3082
- };
3083
- theme.overrides.MuiTooltip = {
3084
- tooltip: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
3085
- padding: theme.spacing(1, 1.5),
3086
- backgroundColor: Color.Dark400
3087
- }),
3088
- popperArrow: {
3089
- '&[x-placement*="top"] $arrow': {
3090
- '&::before': {
3091
- borderBottomRightRadius: 2
3092
- }
3093
- },
3094
- '&[x-placement*="left"] $arrow': {
3095
- '&::before': {
3096
- borderTopRightRadius: 2
3097
- }
3098
- },
3099
- '&[x-placement*="right"] $arrow': {
3100
- '&::before': {
3101
- borderBottomLeftRadius: 2
3144
+ theme.components.MuiTooltip = {
3145
+ defaultProps: {
3146
+ arrow: true
3147
+ },
3148
+ styleOverrides: {
3149
+ tooltip: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
3150
+ padding: theme.spacing(1, 1.5),
3151
+ backgroundColor: Color.Dark400
3152
+ }),
3153
+ popperArrow: {
3154
+ ["&[data-popper-placement*=\"top\"] .".concat(tooltipClasses.arrow)]: {
3155
+ '&::before': {
3156
+ borderBottomRightRadius: 2
3157
+ }
3158
+ },
3159
+ ["&[data-popper-placement*=\"left\"] .".concat(tooltipClasses.arrow)]: {
3160
+ '&::before': {
3161
+ borderTopRightRadius: 2
3162
+ }
3163
+ },
3164
+ ["&[data-popper-placement*=\"right\"] .".concat(tooltipClasses.arrow)]: {
3165
+ '&::before': {
3166
+ borderBottomLeftRadius: 2
3167
+ }
3168
+ },
3169
+ ["&[data-popper-placement*=\"bottom\"] .".concat(tooltipClasses.arrow)]: {
3170
+ '&::before': {
3171
+ borderTopLeftRadius: 2
3172
+ }
3102
3173
  }
3103
3174
  },
3104
- '&[x-placement*="bottom"] $arrow': {
3105
- '&::before': {
3106
- borderTopLeftRadius: 2
3107
- }
3175
+ arrow: {
3176
+ color: Color.Dark400,
3177
+ fontSize: theme.spacing(1)
3108
3178
  }
3109
- },
3110
- arrow: {
3111
- color: Color.Dark400,
3112
- fontSize: theme.spacing(1)
3113
3179
  }
3114
3180
  };
3115
3181
  }
@@ -3219,8 +3285,18 @@ function createTypographyOptions(breakpoints) {
3219
3285
  };
3220
3286
  }
3221
3287
  function overrideTypography(theme) {
3222
- theme.props.MuiTypography = {
3223
- variant: 'body2'
3288
+ theme.components.MuiTypography = {
3289
+ defaultProps: {
3290
+ variant: 'body2'
3291
+ }
3292
+ };
3293
+ }
3294
+
3295
+ function overrideCssBaseline(theme) {
3296
+ theme.components.MuiCssBaseline = {
3297
+ styleOverrides: {
3298
+ body: _objectSpread({}, theme.typography.body2)
3299
+ }
3224
3300
  };
3225
3301
  }
3226
3302
 
@@ -3243,39 +3319,39 @@ function createSuperDispatchTheme() {
3243
3319
  text: {
3244
3320
  primary: Color.Dark500,
3245
3321
  secondary: Color.Dark200,
3246
- hint: Color.Dark100,
3322
+ // hint: Color.Dark100, todo
3247
3323
  disabled: Color.Dark100
3248
3324
  },
3249
3325
  divider: Color.Silver400
3250
3326
  },
3251
3327
  typography: createTypographyOptions(breakpoints),
3252
- props: {},
3253
- overrides: {}
3328
+ components: {}
3254
3329
  });
3330
+ overrideCard(theme);
3331
+ overrideButton(theme);
3255
3332
  overrideAppBar(theme);
3256
- overrideAutocomplete(theme);
3333
+ overridePaper(theme);
3334
+ overrideTooltip(theme);
3335
+ overrideSvgIcon(theme);
3336
+ overrideToolbar(theme);
3337
+ overrideIconButton(theme);
3338
+ overrideTypography(theme);
3339
+ overrideMenu(theme);
3257
3340
  overrideAvatar(theme);
3258
- overrideButton(theme);
3259
- overrideCard(theme);
3341
+ overrideTextField(theme);
3342
+ overrideAutocomplete(theme);
3343
+ overrideCssBaseline(theme);
3260
3344
  overrideCheckbox(theme);
3345
+ overrideRadio(theme);
3346
+ overrideSwitch(theme);
3261
3347
  overrideChip(theme);
3262
3348
  overrideDialog(theme);
3263
3349
  overrideDrawer(theme);
3264
- overrideIconButton(theme);
3265
- overrideLink(theme);
3350
+ overridePagination(theme);
3266
3351
  overrideList(theme);
3267
- overrideMenu(theme);
3268
- overridePaper(theme);
3269
- overrideRadio(theme);
3352
+ overrideLink(theme);
3270
3353
  overrideSnackbar(theme);
3271
- overrideSvgIcon(theme);
3272
- overrideSwitch(theme);
3273
3354
  overrideTabs(theme);
3274
- overrideTextField(theme);
3275
- overrideToolbar(theme);
3276
- overrideTooltip(theme);
3277
- overrideTypography(theme);
3278
- overridePagination(theme);
3279
3355
  return theme;
3280
3356
  }
3281
3357
 
@@ -3323,12 +3399,9 @@ function ThemeProvider(_ref) {
3323
3399
  generateClassName: generateClassName,
3324
3400
  children: /*#__PURE__*/jsxs(ThemeProvider$1, {
3325
3401
  theme: theme,
3326
- children: [/*#__PURE__*/jsx(CssBaseline, {}), /*#__PURE__*/jsx(ThemeProvider$2, {
3327
- theme: theme,
3328
- children: /*#__PURE__*/jsx(ResponsiveContextProvider, {
3329
- children: /*#__PURE__*/jsx(SnackbarStackProvider, {
3330
- children: children
3331
- })
3402
+ children: [/*#__PURE__*/jsx(CssBaseline, {}), /*#__PURE__*/jsx(ResponsiveContextProvider, {
3403
+ children: /*#__PURE__*/jsx(SnackbarStackProvider, {
3404
+ children: children
3332
3405
  })
3333
3406
  })]
3334
3407
  })
@@ -3339,12 +3412,13 @@ var PREVENT_COLLAPSE = 1;
3339
3412
 
3340
3413
  function spaceVariant(theme, space) {
3341
3414
  var gap = theme.spacing(space);
3415
+ var parsedGap = parseInt(gap);
3342
3416
  return {
3343
3417
  '&:before': {
3344
- marginTop: -gap - PREVENT_COLLAPSE
3418
+ marginTop: -parsedGap - PREVENT_COLLAPSE
3345
3419
  },
3346
3420
  '& > $container': {
3347
- marginLeft: -gap,
3421
+ marginLeft: -parsedGap,
3348
3422
  '& > $child > $childContainer': {
3349
3423
  marginTop: gap,
3350
3424
  marginLeft: gap
@@ -3359,7 +3433,7 @@ function columnVariant(columns) {
3359
3433
  };
3360
3434
  }
3361
3435
 
3362
- var useStyles$c = /*#__PURE__*/makeStyles(theme => ({
3436
+ var useStyles$2 = /*#__PURE__*/makeStyles(theme => ({
3363
3437
  root: {
3364
3438
  paddingTop: PREVENT_COLLAPSE,
3365
3439
  '&:before': {
@@ -3403,7 +3477,7 @@ var Tiles = /*#__PURE__*/forwardRef((_ref, ref) => {
3403
3477
  space: spaceProp = 1,
3404
3478
  columns: columnsProp = 1
3405
3479
  } = _ref;
3406
- var styles = useStyles$c({});
3480
+ var styles = useStyles$2({});
3407
3481
  var space = useResponsivePropRecord(spaceProp);
3408
3482
  var columns = useResponsivePropRecord(columnsProp);
3409
3483
  return /*#__PURE__*/jsx("div", {
@@ -3423,23 +3497,5 @@ var Tiles = /*#__PURE__*/forwardRef((_ref, ref) => {
3423
3497
  });
3424
3498
  if (process.env.NODE_ENV !== "production") Tiles.displayName = "Tiles";
3425
3499
 
3426
- function mergeRefs() {
3427
- for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
3428
- refs[_key] = arguments[_key];
3429
- }
3430
-
3431
- return node => {
3432
- refs.forEach(ref => {
3433
- if (ref) {
3434
- if (typeof ref === 'function') {
3435
- ref(node);
3436
- } else {
3437
- ref.current = node;
3438
- }
3439
- }
3440
- });
3441
- };
3442
- }
3443
-
3444
- export { AdaptiveToolbar, AvatarButton, Button, CardButton, CheckboxField, CheckboxGroupField, Color, Column, Columns, DescriptionList, DescriptionListItem, DrawerActions, DrawerContent, DrawerList, DrawerTitle, GridStack, InfoCard, Inline, InlineGrid, OverflowText, RadioField, RadioGroupField, ResponsiveContextProvider, Snackbar, SnackbarContent, SnackbarStackConsumer, SnackbarStackProvider, Stack, Tag, ThemeProvider, Tiles, VisibilityObserver, isColorProp, isEmptyReactNode, mergeRefs, parseAlignProp, parseCollapsedBelow, parseResponsiveProp, parseSpaceProp, renderChildren, useCollapseBreakpoint, useResponsiveContext, useResponsiveProp, useResponsivePropRecord, useResponsiveValue, useSnackbarStack, useUID, useVisibilityObserver };
3500
+ export { AdaptiveToolbar, AvatarButton, Button, CardButton, CheckboxField, CheckboxGroupField, Color, Column, Columns, DescriptionList, DescriptionListItem, DrawerActions, DrawerContent, DrawerList, DrawerTitle, GridStack, InfoCard, Inline, InlineGrid, OverflowText, RadioField, RadioGroupField, Snackbar, SnackbarContent, SnackbarStackConsumer, SnackbarStackProvider, Stack, Tag, ThemeProvider, Tiles, VisibilityObserver, assignRef, isColorProp, isEmptyReactNode, mergeRefs, parseAlignProp, parseCollapsedBelow, parseResponsiveProp, parseSpaceProp, renderChildren, useResponsiveProp, useResponsivePropRecord, useResponsiveValue, useSnackbarStack, useUID, useVisibilityObserver };
3445
3501
  //# sourceMappingURL=index.js.map