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