@superdispatch/ui 0.16.0-alpha.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 (120) hide show
  1. package/dist-node/index.js +205 -3686
  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 +1 -5
  27. package/dist-src/info-card/InfoCard.js +27 -37
  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/{v5/theme → theme}/CssBaselineOverrides.js +0 -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-types/index.d.ts +7 -621
  53. package/dist-web/index.js +18 -3495
  54. package/dist-web/index.js.map +1 -1
  55. package/package.json +1 -1
  56. package/dist-src/v5/adaptive-toolbar/AdaptiveToolbar.js +0 -146
  57. package/dist-src/v5/app-bar/AppBarOverrides.js +0 -9
  58. package/dist-src/v5/autocomplete/AutocompleteOverrides.js +0 -63
  59. package/dist-src/v5/avatar/AvatarOverrides.js +0 -21
  60. package/dist-src/v5/avatar-button/AvatarButton.js +0 -146
  61. package/dist-src/v5/button/Button.js +0 -32
  62. package/dist-src/v5/button/ButtonOverrides.js +0 -238
  63. package/dist-src/v5/card/CardOverrides.js +0 -16
  64. package/dist-src/v5/card-button/CardButton.js +0 -135
  65. package/dist-src/v5/checkbox/CheckboxField.js +0 -37
  66. package/dist-src/v5/checkbox/CheckboxGroudField.js +0 -32
  67. package/dist-src/v5/checkbox/CheckboxOverrides.js +0 -71
  68. package/dist-src/v5/chip/ChipOverrides.js +0 -106
  69. package/dist-src/v5/columns/Column.js +0 -75
  70. package/dist-src/v5/columns/Columns.js +0 -28
  71. package/dist-src/v5/description-list/DescriptionList.js +0 -114
  72. package/dist-src/v5/dialog/DialogOverrides.js +0 -43
  73. package/dist-src/v5/drawer/DrawerActions.js +0 -69
  74. package/dist-src/v5/drawer/DrawerContent.js +0 -15
  75. package/dist-src/v5/drawer/DrawerList.js +0 -31
  76. package/dist-src/v5/drawer/DrawerOverrides.js +0 -17
  77. package/dist-src/v5/drawer/DrawerTitle.js +0 -119
  78. package/dist-src/v5/grid/GridStack.js +0 -33
  79. package/dist-src/v5/grid/InlineGrid.js +0 -34
  80. package/dist-src/v5/icon-button/IconButtonOverrides.js +0 -60
  81. package/dist-src/v5/index.js +0 -38
  82. package/dist-src/v5/info-card/InfoCard.js +0 -59
  83. package/dist-src/v5/inline/Inline.js +0 -56
  84. package/dist-src/v5/link/LinkOverrides.js +0 -46
  85. package/dist-src/v5/list/ListOverrides.js +0 -16
  86. package/dist-src/v5/menu/MenuOverrides.js +0 -34
  87. package/dist-src/v5/overflow-text/OverflowText.js +0 -84
  88. package/dist-src/v5/pagination/PaginationOverrides.js +0 -35
  89. package/dist-src/v5/paper/PaperOverrides.js +0 -13
  90. package/dist-src/v5/props/AlignProps.js +0 -15
  91. package/dist-src/v5/props/CollapseProp.js +0 -3
  92. package/dist-src/v5/props/ResponsiveProp.js +0 -42
  93. package/dist-src/v5/props/SpaceProp.js +0 -28
  94. package/dist-src/v5/radio/RadioField.js +0 -36
  95. package/dist-src/v5/radio/RadioGroupField.js +0 -38
  96. package/dist-src/v5/radio/RadioOverrides.js +0 -49
  97. package/dist-src/v5/responsive/CollapseBreakpoint.js +0 -15
  98. package/dist-src/v5/responsive/ResponsiveContext.js +0 -31
  99. package/dist-src/v5/snackbar/Snackbar.js +0 -53
  100. package/dist-src/v5/snackbar/SnackbarContent.js +0 -105
  101. package/dist-src/v5/snackbar/SnackbarOverrides.js +0 -35
  102. package/dist-src/v5/snackbar/SnackbarStack.js +0 -113
  103. package/dist-src/v5/stack/Stack.js +0 -43
  104. package/dist-src/v5/svg-icon/SvgIconOverrides.js +0 -33
  105. package/dist-src/v5/switch/SwitchOverrides.js +0 -88
  106. package/dist-src/v5/tabs/TabsOverrides.js +0 -45
  107. package/dist-src/v5/tag/Tag.js +0 -118
  108. package/dist-src/v5/text-field/TextFieldOverrides.js +0 -205
  109. package/dist-src/v5/theme/Color.js +0 -77
  110. package/dist-src/v5/theme/SuperDispatchTheme.js +0 -2
  111. package/dist-src/v5/theme/ThemeProvider.js +0 -142
  112. package/dist-src/v5/tiles/Tiles.js +0 -94
  113. package/dist-src/v5/toolbar/ToolbarOverrides.js +0 -15
  114. package/dist-src/v5/tooltip/TooltipOverrides.js +0 -42
  115. package/dist-src/v5/typography/TypographyOverrides.js +0 -121
  116. package/dist-src/v5/utils/VisibilityObserver.js +0 -53
  117. package/dist-src/v5/utils/isEmptyReactNode.js +0 -3
  118. package/dist-src/v5/utils/mergeRefs.js +0 -20
  119. package/dist-src/v5/utils/renderChildren.js +0 -8
  120. package/dist-src/v5/utils/useUID.js +0 -6
package/dist-web/index.js CHANGED
@@ -3,20 +3,16 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
3
3
  import _taggedTemplateLiteral from '@babel/runtime/helpers/taggedTemplateLiteral';
4
4
  import { ResizeObserver } from '@juggle/resize-observer';
5
5
  import { MoreHoriz, Close, Warning, CheckCircle } from '@mui/icons-material';
6
- import { CircularProgress, Toolbar, Grid, Typography, Menu, MenuItem, styled, Avatar, ButtonBase, FormControl, FormControlLabel, Checkbox, FormHelperText, FormLabel, FormGroup, useMediaQuery, Tooltip, SvgIcon, AppBar, List, CardContent, Card, Radio, RadioGroup, SnackbarContent as SnackbarContent$2, IconButton, Portal, Snackbar as Snackbar$2, Slide, autocompleteClasses, buttonClasses, checkboxClasses, chipClasses, dialogClasses, iconButtonClasses, listItemClasses, menuItemClasses, paginationItemClasses, radioClasses, switchClasses, formLabelClasses, inputBaseClasses, outlinedInputClasses, tooltipClasses, ThemeProvider as ThemeProvider$2, CssBaseline, createTheme } from '@mui/material';
6
+ import { CircularProgress, Toolbar, Grid, Typography, Menu, MenuItem, styled, Avatar, ButtonBase, FormControl, FormControlLabel, Checkbox, FormHelperText, FormLabel, FormGroup, useMediaQuery, Tooltip, SvgIcon, AppBar, List, CardContent, Card, Radio, RadioGroup, SnackbarContent as SnackbarContent$1, IconButton, Portal, Snackbar as Snackbar$1, Slide, autocompleteClasses, buttonClasses, checkboxClasses, chipClasses, dialogClasses, iconButtonClasses, listItemClasses, menuItemClasses, paginationItemClasses, radioClasses, switchClasses, formLabelClasses, inputBaseClasses, outlinedInputClasses, tooltipClasses, ThemeProvider as ThemeProvider$1, CssBaseline, createTheme } from '@mui/material';
7
7
  import { useEventHandler, useDeepEqualValue, useValueObserver, useDeepEqualMemo, useConstant } from '@superdispatch/hooks';
8
8
  import { forwardRef, useRef, useState, useLayoutEffect, useContext, createContext, useMemo, Children, useCallback } from 'react';
9
9
  import { LoadingButton, loadingButtonClasses } from '@mui/lab';
10
10
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
11
- import styled$1, { css, ThemeProvider as ThemeProvider$4 } from 'styled-components';
12
- import { Grid as Grid$1, Button as Button$2, CircularProgress as CircularProgress$1, Toolbar as Toolbar$1, Typography as Typography$1, Menu as Menu$1, MenuItem as MenuItem$1, ButtonBase as ButtonBase$1, Avatar as Avatar$1, FormControl as FormControl$1, FormControlLabel as FormControlLabel$1, Checkbox as Checkbox$1, FormHelperText as FormHelperText$1, FormLabel as FormLabel$1, FormGroup as FormGroup$1, useMediaQuery as useMediaQuery$1, Tooltip as Tooltip$1, SvgIcon as SvgIcon$1, AppBar as AppBar$1, List as List$1, Card as Card$1, CardContent as CardContent$1, Radio as Radio$1, RadioGroup as RadioGroup$1, SnackbarContent as SnackbarContent$3, IconButton as IconButton$1, Portal as Portal$1, Snackbar as Snackbar$3, Slide as Slide$1, CssBaseline as CssBaseline$1, createTheme as createTheme$1, createGenerateClassName as createGenerateClassName$1 } from '@material-ui/core';
11
+ import styled$1, { css } from 'styled-components';
13
12
  import flattenChildren from 'react-keyed-flatten-children';
14
13
  import { makeStyles, StylesProvider, createGenerateClassName } from '@mui/styles';
15
14
  import clsx from 'clsx';
16
15
  import { createBreakpoints } from '@mui/system';
17
- import { MoreHoriz as MoreHoriz$1, Close as Close$1, Warning as Warning$1, CheckCircle as CheckCircle$1 } from '@material-ui/icons';
18
- import { makeStyles as makeStyles$1, StylesProvider as StylesProvider$1, ThemeProvider as ThemeProvider$3 } from '@material-ui/styles';
19
- import createBreakpoints$1 from '@material-ui/core/styles/createBreakpoints';
20
16
 
21
17
  var _excluded = ["size", "children", "isActive", "isLoading", "color"];
22
18
  var Button = /*#__PURE__*/forwardRef((_ref, ref) => {
@@ -698,7 +694,7 @@ function columnRootMixin(width) {
698
694
 
699
695
  var ColumnRoot = /*#__PURE__*/styled$1.div.withConfig({
700
696
  displayName: "Column__ColumnRoot",
701
- componentId: "SD__sc-nqzztj-0"
697
+ componentId: "SD__sc-m9n6o6-0"
702
698
  })(_ref => {
703
699
  var {
704
700
  theme,
@@ -782,7 +778,7 @@ function columnsRootMixin(align, spaceProp, isReversed, isCollapsed) {
782
778
 
783
779
  var Columns = /*#__PURE__*/styled$1.div.withConfig({
784
780
  displayName: "Columns",
785
- componentId: "SD__sc-1uebhbi-0"
781
+ componentId: "SD__sc-1a73118-0"
786
782
  })(_ref => {
787
783
  var {
788
784
  theme,
@@ -1278,13 +1274,13 @@ var GridStack = /*#__PURE__*/forwardRef((_ref, ref) => {
1278
1274
  props = _objectWithoutProperties(_ref, _excluded$b);
1279
1275
 
1280
1276
  var items = Children.toArray(children);
1281
- return /*#__PURE__*/jsx(Grid$1, _objectSpread(_objectSpread({}, props), {}, {
1277
+ return /*#__PURE__*/jsx(Grid, _objectSpread(_objectSpread({}, props), {}, {
1282
1278
  ref: ref,
1283
1279
  container: true,
1284
1280
  wrap: "nowrap",
1285
1281
  direction: "column",
1286
1282
  alignItems: alignItems,
1287
- children: items.map((item, idx) => /*#__PURE__*/jsx(Grid$1, {
1283
+ children: items.map((item, idx) => /*#__PURE__*/jsx(Grid, {
1288
1284
  item: true,
1289
1285
  zeroMinWidth: true,
1290
1286
  xs: alignItems === 'stretch' ? 12 : undefined,
@@ -1309,13 +1305,13 @@ var InlineGrid = /*#__PURE__*/forwardRef((_ref, ref) => {
1309
1305
  props = _objectWithoutProperties(_ref, _excluded$c);
1310
1306
 
1311
1307
  var items = Children.toArray(children);
1312
- return /*#__PURE__*/jsx(Grid$1, _objectSpread(_objectSpread({}, props), {}, {
1308
+ return /*#__PURE__*/jsx(Grid, _objectSpread(_objectSpread({}, props), {}, {
1313
1309
  ref: ref,
1314
1310
  wrap: wrap,
1315
1311
  container: true,
1316
- justify: justify,
1312
+ justifyContent: justify,
1317
1313
  alignItems: alignItems,
1318
- children: items.map((item, idx) => /*#__PURE__*/jsx(Grid$1, {
1314
+ children: items.map((item, idx) => /*#__PURE__*/jsx(Grid, {
1319
1315
  item: true,
1320
1316
  zeroMinWidth: true,
1321
1317
  children: item
@@ -1406,7 +1402,7 @@ function inlineRootMixin(spaceProp, noWrap, verticalAlign, horizontalAlign) {
1406
1402
 
1407
1403
  var InlineRoot = /*#__PURE__*/styled$1.div.withConfig({
1408
1404
  displayName: "Inline__InlineRoot",
1409
- componentId: "SD__sc-1tgkwtt-0"
1405
+ componentId: "SD__sc-13du4wm-0"
1410
1406
  })(_ref => {
1411
1407
  var {
1412
1408
  theme,
@@ -1571,7 +1567,7 @@ var SnackbarContent = /*#__PURE__*/forwardRef((_ref, ref) => {
1571
1567
  styles = _objectWithoutProperties(_useStyles, _excluded2$1);
1572
1568
 
1573
1569
  var Icon = variant === 'error' ? Warning : variant === 'success' ? CheckCircle : undefined;
1574
- return /*#__PURE__*/jsx(SnackbarContent$2, _objectSpread(_objectSpread({}, props), {}, {
1570
+ return /*#__PURE__*/jsx(SnackbarContent$1, _objectSpread(_objectSpread({}, props), {}, {
1575
1571
  ref: ref,
1576
1572
  classes: styles,
1577
1573
  className: clsx(className, {
@@ -1635,7 +1631,7 @@ var Snackbar = /*#__PURE__*/forwardRef((_ref, ref) => {
1635
1631
  }
1636
1632
 
1637
1633
  return /*#__PURE__*/jsx(Portal, {
1638
- children: /*#__PURE__*/jsx(Snackbar$2, _objectSpread(_objectSpread({}, props), {}, {
1634
+ children: /*#__PURE__*/jsx(Snackbar$1, _objectSpread(_objectSpread({}, props), {}, {
1639
1635
  ref: ref,
1640
1636
  open: open,
1641
1637
  TransitionComponent: TransitionComponent,
@@ -1768,7 +1764,7 @@ function stackItemMixin(space, align) {
1768
1764
 
1769
1765
  var StackRoot = /*#__PURE__*/styled$1.div.withConfig({
1770
1766
  displayName: "Stack__StackRoot",
1771
- componentId: "SD__sc-dmzxni-0"
1767
+ componentId: "SD__sc-qkml7c-0"
1772
1768
  })(_ref => {
1773
1769
  var {
1774
1770
  theme,
@@ -2602,84 +2598,6 @@ function overrideList(theme) {
2602
2598
  };
2603
2599
  }
2604
2600
 
2605
- var Color$1;
2606
-
2607
- (function (Color) {
2608
- Color["White"] = "#fff";
2609
- Color["White50"] = "rgba(255, 255, 255, 0.5)";
2610
- Color["White40"] = "rgba(255, 255, 255, 0.4)";
2611
- Color["White20"] = "rgba(255, 255, 255, 0.2)";
2612
- Color["White10"] = "rgba(255, 255, 255, 0.1)";
2613
- Color["White08"] = "rgba(255, 255, 255, 0.08)";
2614
- Color["Transparent"] = "rgba(0, 0, 0, 0)";
2615
- Color["Black"] = "#000";
2616
- Color["Black50"] = "rgba(0, 0, 0, 0.5)";
2617
- Color["Black20"] = "rgba(0, 0, 0, 0.2)";
2618
- Color["Grey100"] = "#8F949E";
2619
- Color["Grey200"] = "#6A707C";
2620
- Color["Grey300"] = "#5B6371";
2621
- Color["Grey400"] = "#323C4E";
2622
- Color["Grey450"] = "#222F44";
2623
- Color["Grey500"] = "#192334";
2624
- Color["Dark100"] = "#8F949E";
2625
- Color["Dark200"] = "#6A707C";
2626
- Color["Dark300"] = "#5B6371";
2627
- Color["Dark400"] = "#323C4E";
2628
- Color["Dark450"] = "#222F44";
2629
- Color["Dark500"] = "#192334";
2630
- Color["Silver100"] = "#F6F7F8";
2631
- Color["Silver200"] = "#F3F5F8";
2632
- Color["Silver300"] = "#E8ECF0";
2633
- Color["Silver400"] = "#E1E5EA";
2634
- Color["Silver500"] = "#C4CDD5";
2635
- Color["Blue50"] = "#EBF4FF";
2636
- Color["Blue75"] = "#CCE5FF";
2637
- Color["Blue100"] = "#A8D1FF";
2638
- Color["Blue200"] = "#66ADFF";
2639
- Color["Blue300"] = "#0075FF";
2640
- Color["Blue400"] = "#0063DB";
2641
- Color["Blue500"] = "#0050B2";
2642
- Color["Green50"] = "#ECF9EF";
2643
- Color["Green75"] = "#C8F4D1";
2644
- Color["Green100"] = "#90EAAE";
2645
- Color["Green200"] = "#5DDA87";
2646
- Color["Green300"] = "#1FA84D";
2647
- Color["Green400"] = "#1E8F46";
2648
- Color["Green500"] = "#19803D";
2649
- Color["Purple50"] = "#EFEEFC";
2650
- Color["Purple75"] = "#DCDBF5";
2651
- Color["Purple100"] = "#CBC8EE";
2652
- Color["Purple200"] = "#A7A1E8";
2653
- Color["Purple300"] = "#6559CF";
2654
- Color["Purple400"] = "#473ABB";
2655
- Color["Purple500"] = "#3A2F9D";
2656
- Color["Red50"] = "#FFEDEB";
2657
- Color["Red75"] = "#FDD9D3";
2658
- Color["Red100"] = "#FDC2BA";
2659
- Color["Red200"] = "#FE988B";
2660
- Color["Red300"] = "#EE3017";
2661
- Color["Red400"] = "#D9210D";
2662
- Color["Red500"] = "#C31909";
2663
- Color["Teal50"] = "#E3F6FC";
2664
- Color["Teal75"] = "#BEEDF9";
2665
- Color["Teal100"] = "#91E3F8";
2666
- Color["Teal200"] = "#61D3EF";
2667
- Color["Teal300"] = "#00A0CC";
2668
- Color["Teal400"] = "#008DB8";
2669
- Color["Teal500"] = "#007DA3";
2670
- Color["Yellow50"] = "#FFF9E5";
2671
- Color["Yellow75"] = "#FFF1C2";
2672
- Color["Yellow100"] = "#FFE494";
2673
- Color["Yellow200"] = "#FFDC6B";
2674
- Color["Yellow300"] = "#FFCB47";
2675
- Color["Yellow400"] = "#FFA91F";
2676
- Color["Yellow500"] = "#DB7500";
2677
- })(Color$1 || (Color$1 = {}));
2678
-
2679
- function isColorProp$1(name) {
2680
- return typeof name == 'string' && Object.prototype.hasOwnProperty.call(Color$1, name);
2681
- }
2682
-
2683
2601
  function overrideMenu(theme) {
2684
2602
  theme.components.MuiMenu = {
2685
2603
  defaultProps: {
@@ -2699,12 +2617,12 @@ function overrideMenu(theme) {
2699
2617
  paddingTop: theme.spacing(1),
2700
2618
  paddingBottom: theme.spacing(1),
2701
2619
  '& .MuiTouchRipple-root': {
2702
- color: Color$1.Blue100
2620
+ color: Color.Blue100
2703
2621
  },
2704
2622
  ["&.".concat(menuItemClasses.selected, ", &.").concat(menuItemClasses.selected, ":hover")]: {
2705
- backgroundColor: Color$1.Blue50,
2623
+ backgroundColor: Color.Blue50,
2706
2624
  ["&.".concat(menuItemClasses.focusVisible)]: {
2707
- backgroundColor: Color$1.Blue50
2625
+ backgroundColor: Color.Blue50
2708
2626
  }
2709
2627
  }
2710
2628
  })
@@ -3479,7 +3397,7 @@ function ThemeProvider(_ref) {
3479
3397
  return /*#__PURE__*/jsx(StylesProvider, {
3480
3398
  injectFirst: injectFirst,
3481
3399
  generateClassName: generateClassName,
3482
- children: /*#__PURE__*/jsxs(ThemeProvider$2, {
3400
+ children: /*#__PURE__*/jsxs(ThemeProvider$1, {
3483
3401
  theme: theme,
3484
3402
  children: [/*#__PURE__*/jsx(CssBaseline, {}), /*#__PURE__*/jsx(ResponsiveContextProvider, {
3485
3403
  children: /*#__PURE__*/jsx(SnackbarStackProvider, {
@@ -3579,3400 +3497,5 @@ var Tiles = /*#__PURE__*/forwardRef((_ref, ref) => {
3579
3497
  });
3580
3498
  if (process.env.NODE_ENV !== "production") Tiles.displayName = "Tiles";
3581
3499
 
3582
-
3583
-
3584
- var index = /*#__PURE__*/Object.freeze({
3585
- __proto__: null,
3586
- AdaptiveToolbar: AdaptiveToolbar,
3587
- AvatarButton: AvatarButton,
3588
- Button: Button,
3589
- CardButton: CardButton,
3590
- CheckboxField: CheckboxField,
3591
- CheckboxGroupField: CheckboxGroupField,
3592
- Column: Column,
3593
- Columns: Columns,
3594
- DescriptionListItem: DescriptionListItem,
3595
- DescriptionList: DescriptionList,
3596
- DrawerActions: DrawerActions,
3597
- DrawerContent: DrawerContent,
3598
- DrawerList: DrawerList,
3599
- DrawerTitle: DrawerTitle,
3600
- GridStack: GridStack,
3601
- InlineGrid: InlineGrid,
3602
- InfoCard: InfoCard,
3603
- Inline: Inline,
3604
- OverflowText: OverflowText,
3605
- parseAlignProp: parseAlignProp,
3606
- parseCollapsedBelow: parseCollapsedBelow,
3607
- parseResponsiveProp: parseResponsiveProp,
3608
- useResponsiveProp: useResponsiveProp,
3609
- useResponsiveValue: useResponsiveValue,
3610
- useResponsivePropRecord: useResponsivePropRecord,
3611
- parseSpaceProp: parseSpaceProp,
3612
- RadioField: RadioField,
3613
- RadioGroupField: RadioGroupField,
3614
- Snackbar: Snackbar,
3615
- SnackbarContent: SnackbarContent,
3616
- useSnackbarStack: useSnackbarStack,
3617
- SnackbarStackConsumer: SnackbarStackConsumer,
3618
- SnackbarStackProvider: SnackbarStackProvider,
3619
- Stack: Stack,
3620
- Tag: Tag,
3621
- get Color () { return Color; },
3622
- isColorProp: isColorProp,
3623
- ThemeProvider: ThemeProvider,
3624
- Tiles: Tiles,
3625
- isEmptyReactNode: isEmptyReactNode,
3626
- mergeRefs: mergeRefs,
3627
- assignRef: assignRef,
3628
- renderChildren: renderChildren,
3629
- useUID: useUID,
3630
- useVisibilityObserver: useVisibilityObserver,
3631
- VisibilityObserver: VisibilityObserver
3632
- });
3633
-
3634
- var _excluded$k = ["size", "children", "disabled", "isActive", "isLoading", "color"];
3635
- var Button$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
3636
- var {
3637
- size,
3638
- children,
3639
- disabled,
3640
- isActive,
3641
- isLoading,
3642
- color = 'primary'
3643
- } = _ref,
3644
- props = _objectWithoutProperties(_ref, _excluded$k);
3645
-
3646
- return /*#__PURE__*/jsx(Button$2, _objectSpread(_objectSpread({}, props), {}, {
3647
- ref: ref,
3648
- size: size,
3649
- "data-color": color,
3650
- "aria-busy": isLoading,
3651
- "aria-expanded": isActive,
3652
- disabled: disabled || isLoading,
3653
- color: color === 'primary' ? color : 'default',
3654
- children: !isLoading ? children : /*#__PURE__*/jsxs(Fragment, {
3655
- children: [children, /*#__PURE__*/jsx(CircularProgress$1, {
3656
- size: "1em",
3657
- color: "inherit"
3658
- })]
3659
- })
3660
- }));
3661
- });
3662
- if (process.env.NODE_ENV !== "production") Button$1.displayName = "Button";
3663
-
3664
- var _excluded$l = ["items"];
3665
-
3666
- function useResizeObserver$1(node, observer) {
3667
- var handler = useEventHandler(observer);
3668
- useLayoutEffect(() => {
3669
- if (!node) {
3670
- return;
3671
- }
3672
-
3673
- var resizeObserver = new ResizeObserver(() => {
3674
- handler(node);
3675
- });
3676
- resizeObserver.observe(node);
3677
- handler(node);
3678
- return () => {
3679
- resizeObserver.disconnect();
3680
- };
3681
- }, [node, handler]);
3682
- }
3683
-
3684
- var useStyles$3 = /*#__PURE__*/makeStyles$1({
3685
- actions: {
3686
- overflow: 'hidden'
3687
- }
3688
- }, {
3689
- name: 'SD-AdaptiveToolbar'
3690
- });
3691
- var AdaptiveToolbar$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
3692
- var {
3693
- items
3694
- } = _ref,
3695
- props = _objectWithoutProperties(_ref, _excluded$l);
3696
-
3697
- var styles = useStyles$3();
3698
- var itemNodes = useRef([]);
3699
- var optionsButtonRef = useRef(null);
3700
- var [firstHiddenIdx, setFirstHiddenIdx] = useState(-1);
3701
- var menuItems = firstHiddenIdx === -1 ? [] : items.slice(firstHiddenIdx);
3702
- var [menuButtonNode, setMenuButtonRef] = useState();
3703
- var [rootNode, setRootNode] = useState(null);
3704
- useResizeObserver$1(rootNode, node => {
3705
- var _optionsButtonRef$cur;
3706
-
3707
- var rootRect = node.getBoundingClientRect();
3708
- var rootWidth = rootRect.left + rootRect.width;
3709
- var optionsButtonRect = (_optionsButtonRef$cur = optionsButtonRef.current) === null || _optionsButtonRef$cur === void 0 ? void 0 : _optionsButtonRef$cur.getBoundingClientRect();
3710
- var optionsButtonWidth = (optionsButtonRect === null || optionsButtonRect === void 0 ? void 0 : optionsButtonRect.width) || 0;
3711
- var maxRightPosition = rootWidth - optionsButtonWidth;
3712
- var mountedNodes = itemNodes.current.filter(x => x != null);
3713
- var hiddenIdx = mountedNodes.findIndex((itemNode, idx) => {
3714
- itemNode.removeAttribute('hidden');
3715
- var itemRect = itemNode.getBoundingClientRect();
3716
- var itemRightPosition = itemRect.left + itemRect.width; // Ignore options button width when checking last item.
3717
-
3718
- if (idx === mountedNodes.length - 1) {
3719
- return itemRightPosition > rootWidth;
3720
- }
3721
-
3722
- return itemRightPosition > maxRightPosition;
3723
- });
3724
-
3725
- if (hiddenIdx !== -1) {
3726
- mountedNodes.slice(hiddenIdx).forEach(itemNode => {
3727
- itemNode.setAttribute('hidden', 'true');
3728
- });
3729
- }
3730
-
3731
- setFirstHiddenIdx(hiddenIdx);
3732
- });
3733
- return /*#__PURE__*/jsx(Toolbar$1, _objectSpread(_objectSpread({}, props), {}, {
3734
- ref: ref,
3735
- children: /*#__PURE__*/jsxs(Grid$1, {
3736
- container: true,
3737
- spacing: 1,
3738
- wrap: "nowrap",
3739
- ref: setRootNode,
3740
- children: [/*#__PURE__*/jsx(Grid$1, {
3741
- item: true,
3742
- className: styles.actions,
3743
- children: /*#__PURE__*/jsx(Grid$1, {
3744
- container: true,
3745
- spacing: 1,
3746
- wrap: "nowrap",
3747
- component: "div",
3748
- children: items.map((item, idx) => /*#__PURE__*/jsx(Grid$1, {
3749
- item: true,
3750
- ref: node => {
3751
- itemNodes.current[idx] = node;
3752
- },
3753
- children: /*#__PURE__*/jsx(Button$1, _objectSpread(_objectSpread({
3754
- type: "button",
3755
- onClick: item.onClick
3756
- }, item.ButtonProps), {}, {
3757
- children: /*#__PURE__*/jsx(Typography$1, {
3758
- noWrap: true,
3759
- variant: "inherit",
3760
- children: item.label
3761
- })
3762
- }))
3763
- }, item.key))
3764
- })
3765
- }), menuItems.length > 0 && /*#__PURE__*/jsxs(Grid$1, {
3766
- item: true,
3767
- ref: optionsButtonRef,
3768
- component: "div",
3769
- children: [/*#__PURE__*/jsx(Button$1, {
3770
- type: "button",
3771
- onClick: _ref2 => {
3772
- var {
3773
- currentTarget
3774
- } = _ref2;
3775
- setMenuButtonRef(currentTarget);
3776
- },
3777
- children: /*#__PURE__*/jsx(MoreHoriz$1, {})
3778
- }), /*#__PURE__*/jsx(Menu$1, {
3779
- open: !!menuButtonNode,
3780
- anchorEl: menuButtonNode,
3781
- onClose: () => {
3782
- setMenuButtonRef(undefined);
3783
- },
3784
- children: menuItems.map(item => /*#__PURE__*/jsx(MenuItem$1, {
3785
- onClick: event => {
3786
- var _item$onClick;
3787
-
3788
- (_item$onClick = item.onClick) === null || _item$onClick === void 0 ? void 0 : _item$onClick.call(item, event);
3789
- setMenuButtonRef(undefined);
3790
- },
3791
- children: item.label
3792
- }, item.key))
3793
- })]
3794
- })]
3795
- })
3796
- }));
3797
- });
3798
- if (process.env.NODE_ENV !== "production") AdaptiveToolbar$1.displayName = "AdaptiveToolbar";
3799
-
3800
- var _excluded$m = ["size", "icon", "isLoading", "classes", "disabled", "avatarRef", "className", "alt", "imgProps", "sizes", "src", "srcSet", "variant", "children"],
3801
- _excluded2$2 = ["button", "overlay", "progress", "withIcon", "sizeLarge"];
3802
- var useStyles$4 = /*#__PURE__*/makeStyles$1(theme => {
3803
- var sm = theme.breakpoints.up('sm');
3804
- return {
3805
- button: {
3806
- borderRadius: '50%',
3807
- '&[disabled], &[aria-busy="true"]': {
3808
- '& > $overlay': {
3809
- backgroundColor: Color$1.White50
3810
- }
3811
- },
3812
- '&:not([disabled])[aria-busy="false"]': {
3813
- '&:hover, &:focus': {
3814
- '&$withIcon > $overlay': {
3815
- backgroundColor: Color$1.Black50,
3816
- '& > svg': {
3817
- opacity: 1
3818
- }
3819
- },
3820
- '&:not($withIcon) > $overlay': {
3821
- backgroundColor: Color$1.Black20
3822
- }
3823
- }
3824
- }
3825
- },
3826
- overlay: {
3827
- top: 0,
3828
- left: 0,
3829
- right: 0,
3830
- bottom: 0,
3831
- position: 'absolute',
3832
- display: 'flex',
3833
- alignItems: 'center',
3834
- justifyContent: 'center',
3835
- borderRadius: '50%',
3836
- backgroundColor: Color$1.Transparent,
3837
- transition: theme.transitions.create('background-color'),
3838
- '& > svg': {
3839
- opacity: 0,
3840
- color: Color$1.White,
3841
- transition: theme.transitions.create('opacity'),
3842
- fontSize: theme.spacing(3),
3843
- [sm]: {
3844
- fontSize: theme.spacing(2)
3845
- }
3846
- }
3847
- },
3848
- progress: {
3849
- top: 0,
3850
- left: 0,
3851
- position: 'absolute',
3852
- fontSize: theme.spacing(5),
3853
- [sm]: {
3854
- fontSize: theme.spacing(4)
3855
- }
3856
- },
3857
- withIcon: {},
3858
- sizeLarge: {
3859
- '& > $root': _objectSpread(_objectSpread({}, theme.typography.h2), {}, {
3860
- width: theme.spacing(7),
3861
- height: theme.spacing(7),
3862
- [sm]: {
3863
- width: theme.spacing(8),
3864
- height: theme.spacing(8)
3865
- }
3866
- }),
3867
- '& > $overlay': {
3868
- '& > $progress': {
3869
- fontSize: theme.spacing(7),
3870
- [sm]: {
3871
- fontSize: theme.spacing(8)
3872
- }
3873
- },
3874
- '& > svg': {
3875
- fontSize: theme.spacing(4),
3876
- [sm]: {
3877
- fontSize: theme.spacing(3)
3878
- }
3879
- }
3880
- }
3881
- },
3882
- root: {},
3883
- colorDefault: {},
3884
- circular: {},
3885
- rounded: {},
3886
- square: {},
3887
- img: {},
3888
- fallback: {}
3889
- };
3890
- }, {
3891
- name: 'SD-AvatarButton'
3892
- });
3893
- var AvatarButton$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
3894
- var {
3895
- size,
3896
- icon,
3897
- isLoading = false,
3898
- classes,
3899
- disabled = false,
3900
- avatarRef,
3901
- className,
3902
- alt,
3903
- imgProps,
3904
- sizes,
3905
- src,
3906
- srcSet,
3907
- variant,
3908
- children
3909
- } = _ref,
3910
- props = _objectWithoutProperties(_ref, _excluded$m);
3911
-
3912
- var _useStyles = useStyles$4({
3913
- classes
3914
- }),
3915
- {
3916
- button: buttonClassName,
3917
- overlay: overlayClassName,
3918
- progress: progressClassName,
3919
- withIcon: withIconClassName,
3920
- sizeLarge: sizeLargeClassName
3921
- } = _useStyles,
3922
- avatarClasses = _objectWithoutProperties(_useStyles, _excluded2$2);
3923
-
3924
- return /*#__PURE__*/jsxs(ButtonBase$1, _objectSpread(_objectSpread({}, props), {}, {
3925
- ref: ref,
3926
- "aria-busy": isLoading,
3927
- "aria-disabled": disabled,
3928
- disabled: disabled || isLoading,
3929
- className: clsx(className, buttonClassName, !!icon && withIconClassName, size === 'large' && sizeLargeClassName),
3930
- children: [/*#__PURE__*/jsx(Avatar$1, {
3931
- ref: avatarRef,
3932
- classes: avatarClasses,
3933
- variant: variant,
3934
- alt: alt,
3935
- src: src,
3936
- sizes: sizes,
3937
- srcSet: srcSet,
3938
- imgProps: imgProps,
3939
- children: children
3940
- }), /*#__PURE__*/jsxs("div", {
3941
- className: overlayClassName,
3942
- children: [icon, isLoading && /*#__PURE__*/jsx(CircularProgress$1, {
3943
- size: "1em",
3944
- className: progressClassName,
3945
- thickness: size === 'large' ? 2.5 : 1.5
3946
- })]
3947
- })]
3948
- }));
3949
- });
3950
- if (process.env.NODE_ENV !== "production") AvatarButton$1.displayName = "AvatarButton";
3951
-
3952
- var _excluded$n = ["hint", "size", "error", "classes", "className", "children", "endIcon", "startIcon", "disabled"];
3953
- var useStyles$5 = /*#__PURE__*/makeStyles$1(theme => ({
3954
- root: {
3955
- width: '100%',
3956
- display: 'flex',
3957
- alignItems: 'center',
3958
- flexDirection: 'column',
3959
- justifyContent: 'center',
3960
- backgroundColor: Color$1.White,
3961
- border: '1px dashed',
3962
- borderRadius: theme.spacing(0.5),
3963
- padding: theme.spacing(1.5),
3964
- minHeight: theme.spacing(13),
3965
- transition: theme.transitions.create(['color', 'box-shadow', 'border-color', 'background-color'])
3966
- },
3967
- disabled: {
3968
- color: Color$1.Dark200,
3969
- borderColor: Color$1.Silver500,
3970
- backgroundColor: Color$1.Silver100
3971
- },
3972
- error: {
3973
- color: Color$1.Red300,
3974
- borderColor: Color$1.Red300,
3975
- backgroundColor: Color$1.Red50,
3976
- '&:focus': {
3977
- backgroundColor: Color$1.Red75
3978
- }
3979
- },
3980
- primary: {
3981
- color: Color$1.Blue300,
3982
- borderColor: Color$1.Silver500,
3983
- '&:focus': {
3984
- backgroundColor: Color$1.Blue50
3985
- },
3986
- '&:hover, &:active': {
3987
- borderColor: Color$1.Blue300,
3988
- backgroundColor: Color$1.Blue50
3989
- }
3990
- },
3991
- sizeSmall: {
3992
- minHeight: theme.spacing(6)
3993
- },
3994
- sizeLarge: {
3995
- minHeight: theme.spacing(17.5)
3996
- },
3997
- label: {
3998
- display: 'flex',
3999
- alignItems: 'center'
4000
- },
4001
- icon: {
4002
- display: 'flex',
4003
- '& svg': {
4004
- fontSize: theme.spacing(3),
4005
- [theme.breakpoints.up('sm')]: {
4006
- fontSize: theme.spacing(2.5)
4007
- }
4008
- }
4009
- },
4010
- startIcon: {
4011
- marginRight: theme.spacing(1),
4012
- marginLeft: theme.spacing(-0.5)
4013
- },
4014
- endIcon: {
4015
- marginLeft: theme.spacing(1),
4016
- marginRight: theme.spacing(-0.5)
4017
- },
4018
- hint: {
4019
- marginTop: theme.spacing(0.5)
4020
- }
4021
- }), {
4022
- name: 'SD-CardButton'
4023
- });
4024
- var CardButton$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
4025
- var {
4026
- hint,
4027
- size,
4028
- error,
4029
- classes,
4030
- className,
4031
- children,
4032
- endIcon,
4033
- startIcon,
4034
- disabled
4035
- } = _ref,
4036
- props = _objectWithoutProperties(_ref, _excluded$n);
4037
-
4038
- var styles = useStyles$5({
4039
- classes
4040
- });
4041
- return /*#__PURE__*/jsx(ButtonBase$1, _objectSpread(_objectSpread({}, props), {}, {
4042
- ref: ref,
4043
- disabled: disabled,
4044
- className: clsx(styles.root, className, disabled ? styles.disabled : error ? styles.error : styles.primary, {
4045
- 'small': styles.sizeSmall,
4046
- 'large': styles.sizeLarge
4047
- }[size]),
4048
- children: error ? /*#__PURE__*/jsx(Typography$1, {
4049
- variant: "h4",
4050
- color: "inherit",
4051
- className: styles.label,
4052
- children: error
4053
- }) : /*#__PURE__*/jsxs(Fragment, {
4054
- children: [/*#__PURE__*/jsxs(Typography$1, {
4055
- variant: "h4",
4056
- color: "inherit",
4057
- className: styles.label,
4058
- children: [!!startIcon && /*#__PURE__*/jsx("span", {
4059
- className: clsx(styles.icon, styles.startIcon),
4060
- children: startIcon
4061
- }), children, !!endIcon && /*#__PURE__*/jsx("span", {
4062
- className: clsx(styles.icon, styles.endIcon),
4063
- children: endIcon
4064
- })]
4065
- }), !!hint && /*#__PURE__*/jsx(Typography$1, {
4066
- color: "textSecondary",
4067
- className: styles.hint,
4068
- children: hint
4069
- })]
4070
- })
4071
- }));
4072
- });
4073
- if (process.env.NODE_ENV !== "production") CardButton$1.displayName = "CardButton";
4074
-
4075
- var _excluded$o = ["label", "error", "checked", "onBlur", "onChange", "helperText", "FormControlLabelProps"];
4076
- var CheckboxField$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
4077
- var {
4078
- label,
4079
- error,
4080
- checked,
4081
- onBlur,
4082
- onChange,
4083
- helperText,
4084
- FormControlLabelProps: formControlLabelProps
4085
- } = _ref,
4086
- props = _objectWithoutProperties(_ref, _excluded$o);
4087
-
4088
- return /*#__PURE__*/jsxs(FormControl$1, {
4089
- error: error,
4090
- children: [/*#__PURE__*/jsx(FormControlLabel$1, _objectSpread(_objectSpread({}, formControlLabelProps), {}, {
4091
- label: label,
4092
- checked: checked,
4093
- onBlur: onBlur,
4094
- onChange: onChange,
4095
- control: /*#__PURE__*/jsx(Checkbox$1, _objectSpread({
4096
- ref: ref,
4097
- color: "primary",
4098
- disableRipple: true
4099
- }, props))
4100
- })), helperText && /*#__PURE__*/jsx(FormHelperText$1, {
4101
- children: helperText
4102
- })]
4103
- });
4104
- });
4105
- if (process.env.NODE_ENV !== "production") CheckboxField$1.displayName = "CheckboxField";
4106
-
4107
- var _excluded$p = ["FormGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
4108
- var CheckboxGroupField$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
4109
- var {
4110
- FormGroupProps: formGroupProps,
4111
- label,
4112
- FormLabelProps: formLabelProps,
4113
- helperText,
4114
- FormHelperTextProps: formHelperTextProps,
4115
- children
4116
- } = _ref,
4117
- formControlProps = _objectWithoutProperties(_ref, _excluded$p);
4118
-
4119
- return /*#__PURE__*/jsxs(FormControl$1, _objectSpread(_objectSpread({}, formControlProps), {}, {
4120
- hiddenLabel: !label,
4121
- children: [!!label && /*#__PURE__*/jsx(FormLabel$1, _objectSpread(_objectSpread({}, formLabelProps), {}, {
4122
- children: label
4123
- })), /*#__PURE__*/jsx(FormGroup$1, _objectSpread(_objectSpread({
4124
- ref: ref
4125
- }, formGroupProps), {}, {
4126
- children: children
4127
- })), !!helperText && /*#__PURE__*/jsx(FormHelperText$1, _objectSpread(_objectSpread({}, formHelperTextProps), {}, {
4128
- children: helperText
4129
- }))]
4130
- }));
4131
- });
4132
- if (process.env.NODE_ENV !== "production") CheckboxGroupField$1.displayName = "CheckboxGroupField";
4133
-
4134
- var Context$2 = /*#__PURE__*/createContext({});
4135
-
4136
- function useBreakpoint$1(breakpoint) {
4137
- return useMediaQuery$1(theme => theme.breakpoints.only(breakpoint));
4138
- }
4139
-
4140
- function ResponsiveContextProvider$1(_ref) {
4141
- var {
4142
- children,
4143
- defaultBreakpoint
4144
- } = _ref;
4145
- var isXS = useBreakpoint$1('xs');
4146
- var isSM = useBreakpoint$1('sm');
4147
- var isMD = useBreakpoint$1('md');
4148
- var isLG = useBreakpoint$1('lg');
4149
- var isXL = useBreakpoint$1('xl');
4150
- var breakpoint = isXS ? 'xs' : isSM ? 'sm' : isMD ? 'md' : isLG ? 'lg' : isXL ? 'xl' : defaultBreakpoint;
4151
- var ctx = useMemo(() => ({
4152
- breakpoint
4153
- }), [breakpoint]);
4154
- return /*#__PURE__*/jsx(Context$2.Provider, {
4155
- value: ctx,
4156
- children: children
4157
- });
4158
- }
4159
- function useResponsiveContext$1() {
4160
- return useContext(Context$2);
4161
- }
4162
-
4163
- function parseResponsiveProp$1(prop) {
4164
- var _tablet, _desktop;
4165
-
4166
- if (typeof prop != 'object') return [prop, prop, prop];
4167
- var [mobile, tablet, desktop] = prop;
4168
- (_tablet = tablet) !== null && _tablet !== void 0 ? _tablet : tablet = mobile;
4169
- (_desktop = desktop) !== null && _desktop !== void 0 ? _desktop : desktop = tablet;
4170
- return [mobile, tablet, desktop];
4171
- }
4172
- function useResponsiveProp$1(prop) {
4173
- return useDeepEqualValue(parseResponsiveProp$1(prop));
4174
- }
4175
- function useResponsiveValue$1(xs, sm) {
4176
- var md = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : sm;
4177
- var lg = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : md;
4178
- var xl = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : lg;
4179
- var {
4180
- breakpoint = 'xs'
4181
- } = useResponsiveContext$1();
4182
- return {
4183
- xs,
4184
- sm,
4185
- md,
4186
- lg,
4187
- xl
4188
- }[breakpoint];
4189
- }
4190
- function useResponsivePropRecord$1(prop) {
4191
- if (typeof prop != 'object') prop = {
4192
- xs: prop
4193
- };
4194
- var {
4195
- xs,
4196
- sm,
4197
- md,
4198
- lg,
4199
- xl
4200
- } = prop;
4201
- return useResponsiveValue$1(xs, sm !== null && sm !== void 0 ? sm : xs, md, lg, xl);
4202
- }
4203
-
4204
- function computeFlexBasis$1(scale) {
4205
- return "".concat(scale * 100, "%");
4206
- }
4207
-
4208
- function flexBasisMixin$1(width) {
4209
- switch (width) {
4210
- case '1/2':
4211
- return computeFlexBasis$1(1 / 2);
4212
-
4213
- case '1/3':
4214
- return computeFlexBasis$1(1 / 3);
4215
-
4216
- case '2/3':
4217
- return computeFlexBasis$1(2 / 3);
4218
-
4219
- case '1/4':
4220
- return computeFlexBasis$1(1 / 4);
4221
-
4222
- case '3/4':
4223
- return computeFlexBasis$1(3 / 4);
4224
-
4225
- case '1/5':
4226
- return computeFlexBasis$1(1 / 5);
4227
-
4228
- case '2/5':
4229
- return computeFlexBasis$1(2 / 5);
4230
-
4231
- case '3/5':
4232
- return computeFlexBasis$1(3 / 5);
4233
-
4234
- case '4/5':
4235
- return computeFlexBasis$1(4 / 5);
4236
- }
4237
-
4238
- return 'auto';
4239
- }
4240
-
4241
- function columnRootMixin$1(width) {
4242
- return css(["flex-grow:0;flex-basis:", ";width:", ";flex-shrink:", ";"], flexBasisMixin$1(width), width === 'fluid' ? '100%' : 'auto', width === 'fluid' || width === 'adaptive' ? 1 : 0);
4243
- }
4244
-
4245
- var ColumnRoot$1 = /*#__PURE__*/styled$1.div.withConfig({
4246
- displayName: "Column__ColumnRoot",
4247
- componentId: "SD__sc-m9n6o6-0"
4248
- })(_ref => {
4249
- var {
4250
- theme,
4251
- columnWidth
4252
- } = _ref;
4253
- return css(["min-width:0;", ";", "{", ";}", "{", ";}& > div{padding-top:var(--column-space-top);padding-left:var(--column-space-left);padding-bottom:var(--column-space-bottom);}&:last-child > div{padding-top:0;padding-bottom:0;}"], columnRootMixin$1(columnWidth[0]), theme.breakpoints.up('sm'), columnRootMixin$1(columnWidth[1]), theme.breakpoints.up('md'), columnRootMixin$1(columnWidth[2]));
4254
- });
4255
- var Column$1 = /*#__PURE__*/forwardRef((_ref2, ref) => {
4256
- var {
4257
- children,
4258
- 'aria-label': ariaLabel,
4259
- 'aria-labelledby': ariaLabelledBy,
4260
- width = 'fluid'
4261
- } = _ref2;
4262
- var columnWidth = useResponsiveProp$1(width);
4263
- return /*#__PURE__*/jsx(ColumnRoot$1, {
4264
- ref: ref,
4265
- columnWidth: columnWidth,
4266
- "aria-label": ariaLabel,
4267
- "aria-labelledby": ariaLabelledBy,
4268
- children: /*#__PURE__*/jsx("div", {
4269
- children: children
4270
- })
4271
- });
4272
- });
4273
- if (process.env.NODE_ENV !== "production") Column$1.displayName = "Column";
4274
-
4275
- function parseAlignProp$1(align) {
4276
- switch (align) {
4277
- case 'top':
4278
- case 'left':
4279
- default:
4280
- return 'initial';
4281
-
4282
- case 'center':
4283
- return 'center';
4284
-
4285
- case 'right':
4286
- case 'bottom':
4287
- return 'flex-end';
4288
- }
4289
- }
4290
-
4291
- function parseCollapsedBelow$1(collapsedBelow) {
4292
- return [collapsedBelow === 'tablet' || collapsedBelow === 'desktop', collapsedBelow === 'desktop', false];
4293
- }
4294
-
4295
- function parseSpaceProp$1(prop) {
4296
- switch (prop) {
4297
- case 'none':
4298
- default:
4299
- return 0;
4300
-
4301
- case 'xxsmall':
4302
- return 4;
4303
-
4304
- case 'xsmall':
4305
- return 8;
4306
-
4307
- case 'small':
4308
- return 16;
4309
-
4310
- case 'medium':
4311
- return 24;
4312
-
4313
- case 'large':
4314
- return 32;
4315
-
4316
- case 'xlarge':
4317
- return 40;
4318
-
4319
- case 'xxlarge':
4320
- return 48;
4321
- }
4322
- }
4323
-
4324
- function columnsRootMixin$1(align, spaceProp, isReversed, isCollapsed) {
4325
- var space = parseSpaceProp$1(spaceProp);
4326
- return css(["--column-space-left:", "px;--column-space-top:", "px;--column-space-bottom:", "px;align-items:", ";margin-left:", "px;width:", ";flex-direction:", ";"], isCollapsed ? 0 : space, isCollapsed && isReversed ? space : 0, isCollapsed && !isReversed ? space : 0, parseAlignProp$1(align), isCollapsed ? 0 : "-".concat(space), isCollapsed ? '100%' : "calc(100% + ".concat(space, "px)"), isCollapsed ? !isReversed ? 'column' : 'column-reverse' : !isReversed ? 'row' : 'row-reverse');
4327
- }
4328
-
4329
- var Columns$1 = /*#__PURE__*/styled$1.div.withConfig({
4330
- displayName: "Columns",
4331
- componentId: "SD__sc-1a73118-0"
4332
- })(_ref => {
4333
- var {
4334
- theme,
4335
- collapseBelow,
4336
- align: alignProp = 'top',
4337
- space: spaceProp = 'none',
4338
- reverse: reverseProp = false
4339
- } = _ref;
4340
- var align = parseResponsiveProp$1(alignProp);
4341
- var space = parseResponsiveProp$1(spaceProp);
4342
- var reverse = parseResponsiveProp$1(reverseProp);
4343
- var collapsed = parseCollapsedBelow$1(collapseBelow);
4344
- return css(["width:100%;display:flex;", ";", "{", ";}", "{", ";}"], columnsRootMixin$1(align[0], space[0], reverse[0], collapsed[0]), theme.breakpoints.up('sm'), columnsRootMixin$1(align[1], space[1], reverse[1], collapsed[1]), theme.breakpoints.up('md'), columnsRootMixin$1(align[2], space[2], reverse[2], collapsed[2]));
4345
- });
4346
-
4347
- function renderChildren$1(node) {
4348
- if (node == null || typeof node == 'boolean') {
4349
- return null;
4350
- } // Workaround for https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18051
4351
-
4352
-
4353
- return node;
4354
- }
4355
-
4356
- var _excluded$q = ["render", "onChange"];
4357
- function useVisibilityObserver$1(node) {
4358
- var {
4359
- threshold = 0,
4360
- marginTop = '0px',
4361
- marginLeft = '0px',
4362
- marginRight = '0px',
4363
- marginBottom = '0px'
4364
- } = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
4365
- var [state, setState] = useState('undetermined');
4366
- var rootMargin = "".concat(marginTop, " ").concat(marginRight, " ").concat(marginBottom, " ").concat(marginLeft);
4367
- useLayoutEffect(() => {
4368
- if (!node || !('IntersectionObserver' in window)) {
4369
- setState('undetermined');
4370
- return;
4371
- }
4372
-
4373
- var observer = new IntersectionObserver(_ref => {
4374
- var [entry] = _ref;
4375
- setState(entry !== null && entry !== void 0 && entry.isIntersecting ? 'visible' : 'invisible');
4376
- }, {
4377
- rootMargin,
4378
- threshold
4379
- });
4380
- observer.observe(node);
4381
- return () => {
4382
- observer.disconnect();
4383
- };
4384
- }, [node, threshold, rootMargin]);
4385
- return state;
4386
- }
4387
- function VisibilityObserver$1(_ref2) {
4388
- var {
4389
- render,
4390
- onChange
4391
- } = _ref2,
4392
- options = _objectWithoutProperties(_ref2, _excluded$q);
4393
-
4394
- var [node, setNode] = useState(null);
4395
- var visibility = useVisibilityObserver$1(node, options);
4396
- var children = render({
4397
- ref: setNode,
4398
- visibility
4399
- });
4400
- useValueObserver(visibility, () => {
4401
- onChange === null || onChange === void 0 ? void 0 : onChange(visibility);
4402
- });
4403
- return renderChildren$1(children);
4404
- }
4405
-
4406
- var _excluded$r = ["title", "enterDelay"],
4407
- _excluded2$3 = ["onClick", "children", "className", "disableUnderline", "TooltipProps"];
4408
- var useStyles$6 = /*#__PURE__*/makeStyles$1(theme => ({
4409
- root: {
4410
- marginBottom: -1,
4411
- borderBottom: '1px dashed transparent',
4412
- transition: theme.transitions.create('border'),
4413
- '&$truncated': {
4414
- cursor: 'pointer',
4415
- borderBottomColor: Color$1.Silver500
4416
- }
4417
- },
4418
- truncated: {},
4419
- sentinel: {
4420
- width: 1,
4421
- height: '100%',
4422
- display: 'inline-block'
4423
- }
4424
- }), {
4425
- name: 'SD-OverflowText'
4426
- });
4427
- var OverflowText$1 = /*#__PURE__*/forwardRef((_ref, rootRef) => {
4428
- var {
4429
- onClick: _onClick,
4430
- children,
4431
- className,
4432
- disableUnderline,
4433
- TooltipProps: {
4434
- title = children,
4435
- enterDelay = 1000
4436
- } = {}
4437
- } = _ref,
4438
- tooltipProps = _objectWithoutProperties(_ref.TooltipProps, _excluded$r),
4439
- props = _objectWithoutProperties(_ref, _excluded2$3);
4440
-
4441
- var [isOpen, setIsOpen] = useState(false);
4442
- var styles = useStyles$6();
4443
- return /*#__PURE__*/jsx(VisibilityObserver$1, {
4444
- render: _ref2 => {
4445
- var {
4446
- ref,
4447
- visibility
4448
- } = _ref2;
4449
- var isTooltipEnabled = !!children && visibility === 'invisible';
4450
- return /*#__PURE__*/jsx(Tooltip$1, _objectSpread(_objectSpread({}, tooltipProps), {}, {
4451
- enterDelay: 1000,
4452
- title: title || '',
4453
- disableFocusListener: true,
4454
- open: isOpen && isTooltipEnabled,
4455
- onOpen: () => {
4456
- setIsOpen(true);
4457
- },
4458
- onClose: () => {
4459
- setIsOpen(false);
4460
- },
4461
- children: /*#__PURE__*/jsxs(Typography$1, _objectSpread(_objectSpread({}, props), {}, {
4462
- ref: rootRef,
4463
- noWrap: true,
4464
- onClick: event => {
4465
- setIsOpen(true);
4466
- _onClick === null || _onClick === void 0 ? void 0 : _onClick(event);
4467
- },
4468
- className: clsx(styles.root, className, !disableUnderline && visibility === 'invisible' && styles.truncated),
4469
- children: [children, !!children && /*#__PURE__*/jsx("span", {
4470
- ref: ref,
4471
- className: styles.sentinel
4472
- })]
4473
- }))
4474
- }));
4475
- }
4476
- });
4477
- });
4478
- if (process.env.NODE_ENV !== "production") OverflowText$1.displayName = "OverflowText";
4479
-
4480
- function isEmptyReactNode$1(node) {
4481
- return node == null || typeof node == 'boolean' || typeof node == 'string' && node.length === 0;
4482
- }
4483
-
4484
- var current$1 = 0;
4485
- function useUID$1(defaultID) {
4486
- var uid = useMemo(() => "uid_".concat(current$1 += 1), []);
4487
- return defaultID || uid;
4488
- }
4489
-
4490
- var _excluded$s = ["size"];
4491
-
4492
- function sizeVariant$1(theme, mobileSpacing, desktopSpacing) {
4493
- return {
4494
- '& > $list, & > $item': {
4495
- '&:not(:last-child)': {
4496
- paddingBottom: theme.spacing(mobileSpacing),
4497
- [theme.breakpoints.up('sm')]: {
4498
- paddingBottom: theme.spacing(desktopSpacing)
4499
- }
4500
- }
4501
- }
4502
- };
4503
- }
4504
-
4505
- var useStyles$7 = /*#__PURE__*/makeStyles$1(theme => ({
4506
- list: sizeVariant$1(theme, 2, 1),
4507
- listSmall: sizeVariant$1(theme, 1, 0.5),
4508
- listLarge: sizeVariant$1(theme, 3, 2),
4509
- item: {
4510
- display: 'flex',
4511
- alignItems: 'center'
4512
- },
4513
- icon: {
4514
- display: 'inline-flex',
4515
- marginRight: theme.spacing(1),
4516
- '& > .MuiSvgIcon-root': {
4517
- color: Color$1.Dark100,
4518
- fontSize: theme.spacing(3),
4519
- [theme.breakpoints.up('sm')]: {
4520
- fontSize: theme.spacing(2)
4521
- }
4522
- }
4523
- }
4524
- }), {
4525
- name: 'SD-DescriptionList'
4526
- }); //
4527
- // DescriptionList
4528
- //
4529
-
4530
- var DescriptionList$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
4531
- var {
4532
- size
4533
- } = _ref,
4534
- props = _objectWithoutProperties(_ref, _excluded$s);
4535
-
4536
- var styles = useStyles$7();
4537
- return /*#__PURE__*/jsx("div", _objectSpread(_objectSpread({}, props), {}, {
4538
- ref: ref,
4539
- "data-size": size,
4540
- className: clsx(styles.list, {
4541
- 'small': styles.listSmall,
4542
- 'large': styles.listLarge
4543
- }[size])
4544
- }));
4545
- }); //
4546
- // DescriptionListItem
4547
- //
4548
-
4549
- if (process.env.NODE_ENV !== "production") DescriptionList$1.displayName = "DescriptionList";
4550
- var DescriptionListItem$1 = /*#__PURE__*/forwardRef((_ref2, ref) => {
4551
- var _ref3, _contentTypographyPro, _contentTypographyPro2;
4552
-
4553
- var {
4554
- inset,
4555
- icon = inset ? /*#__PURE__*/jsx(SvgIcon$1, {}) : null,
4556
- label,
4557
- labelTypographyProps,
4558
- content,
4559
- contentTypographyProps,
4560
- fallback
4561
- } = _ref2;
4562
- var styles = useStyles$7();
4563
- var labelID = useUID$1(labelTypographyProps === null || labelTypographyProps === void 0 ? void 0 : labelTypographyProps.id);
4564
- var shouldRenderFallback = isEmptyReactNode$1(content);
4565
- return /*#__PURE__*/jsxs("div", {
4566
- ref: ref,
4567
- className: styles.item,
4568
- "aria-labelledby": label != null ? labelID : undefined,
4569
- children: [!!icon && /*#__PURE__*/jsx("div", {
4570
- className: styles.icon,
4571
- children: icon
4572
- }), /*#__PURE__*/jsxs(OverflowText$1, _objectSpread(_objectSpread({}, contentTypographyProps), {}, {
4573
- component: "span",
4574
- color: shouldRenderFallback && label == null ? 'textSecondary' : 'textPrimary',
4575
- TooltipProps: _objectSpread(_objectSpread({}, contentTypographyProps === null || contentTypographyProps === void 0 ? void 0 : contentTypographyProps.TooltipProps), {}, {
4576
- 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
4577
- }),
4578
- children: [label != null && /*#__PURE__*/jsx(Typography$1, _objectSpread(_objectSpread({}, labelTypographyProps), {}, {
4579
- id: labelID,
4580
- variant: "body2",
4581
- component: "span",
4582
- color: "textSecondary",
4583
- children: label
4584
- })), label != null && ' ', !shouldRenderFallback ? content : fallback]
4585
- }))]
4586
- });
4587
- });
4588
- if (process.env.NODE_ENV !== "production") DescriptionListItem$1.displayName = "DescriptionListItem";
4589
-
4590
- var _excluded$t = ["children", "className"];
4591
- var useStyles$8 = /*#__PURE__*/makeStyles$1(theme => ({
4592
- appBar: {
4593
- '&&': {
4594
- bottom: 0,
4595
- top: 'auto',
4596
- borderLeft: 'none',
4597
- borderRight: 'none',
4598
- borderBottom: 'none',
4599
- transition: theme.transitions.create(['border-color']),
4600
- '&:not($appBarSticky)': {
4601
- borderTopColor: Color$1.Transparent
4602
- }
4603
- }
4604
- },
4605
- appBarSticky: {},
4606
- toolbar: {
4607
- '&.MuiToolbar-gutters': {
4608
- paddingLeft: theme.spacing(3),
4609
- paddingRight: theme.spacing(3),
4610
- [theme.breakpoints.up('md')]: {
4611
- paddingLeft: theme.spacing(4),
4612
- paddingRight: theme.spacing(4)
4613
- }
4614
- }
4615
- }
4616
- }), {
4617
- name: 'SD-DrawerActions'
4618
- });
4619
- var DrawerActions$1 = /*#__PURE__*/forwardRef((_ref, appBarRef) => {
4620
- var {
4621
- children,
4622
- className
4623
- } = _ref,
4624
- props = _objectWithoutProperties(_ref, _excluded$t);
4625
-
4626
- var styles = useStyles$8();
4627
- return /*#__PURE__*/jsx(VisibilityObserver$1, {
4628
- render: _ref2 => {
4629
- var {
4630
- ref,
4631
- visibility
4632
- } = _ref2;
4633
- return /*#__PURE__*/jsxs(Fragment, {
4634
- children: [/*#__PURE__*/jsx(AppBar$1, _objectSpread(_objectSpread({}, props), {}, {
4635
- ref: appBarRef,
4636
- position: "sticky",
4637
- className: clsx(className, styles.appBar, visibility === 'invisible' && styles.appBarSticky),
4638
- children: /*#__PURE__*/jsx(Toolbar$1, {
4639
- className: styles.toolbar,
4640
- children: children
4641
- })
4642
- })), /*#__PURE__*/jsx("div", {
4643
- ref: ref
4644
- })]
4645
- });
4646
- }
4647
- });
4648
- });
4649
- if (process.env.NODE_ENV !== "production") DrawerActions$1.displayName = "DrawerActions";
4650
-
4651
- var _excluded$u = ["className"];
4652
- var useStyles$9 = /*#__PURE__*/makeStyles$1(theme => ({
4653
- root: {
4654
- maxWidth: '100%',
4655
- padding: theme.spacing(2, 3),
4656
- [theme.breakpoints.up('md')]: {
4657
- padding: theme.spacing(2, 4)
4658
- }
4659
- }
4660
- }), {
4661
- name: 'SD-DrawerContent'
4662
- });
4663
- var DrawerContent$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
4664
- var {
4665
- className
4666
- } = _ref,
4667
- props = _objectWithoutProperties(_ref, _excluded$u);
4668
-
4669
- var styles = useStyles$9();
4670
- return /*#__PURE__*/jsx("div", _objectSpread(_objectSpread({}, props), {}, {
4671
- ref: ref,
4672
- className: clsx(styles.root, className)
4673
- }));
4674
- });
4675
- if (process.env.NODE_ENV !== "production") DrawerContent$1.displayName = "DrawerContent";
4676
-
4677
- var _excluded$v = ["className"];
4678
-
4679
- function listItemMixins$1(theme, space) {
4680
- return {
4681
- '& .MuiListItem-gutters': {
4682
- paddingLeft: theme.spacing(space),
4683
- paddingRight: theme.spacing(space),
4684
- '&.MuiListItem-secondaryAction': {
4685
- paddingRight: theme.spacing(space * 2)
4686
- },
4687
- '& .MuiListItemSecondaryAction-root': {
4688
- right: theme.spacing(space),
4689
- '& .MuiIconButton-edgeEnd': {
4690
- marginRight: theme.spacing(-(space / 2))
4691
- }
4692
- }
4693
- }
4694
- };
4695
- }
4696
-
4697
- var useStyles$a = /*#__PURE__*/makeStyles$1(theme => ({
4698
- root: _objectSpread(_objectSpread({
4699
- maxWidth: '100%'
4700
- }, listItemMixins$1(theme, 3)), {}, {
4701
- [theme.breakpoints.up('md')]: _objectSpread({}, listItemMixins$1(theme, 4))
4702
- })
4703
- }), {
4704
- name: 'SD-DrawerList'
4705
- });
4706
- var DrawerList$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
4707
- var {
4708
- className
4709
- } = _ref,
4710
- props = _objectWithoutProperties(_ref, _excluded$v);
4711
-
4712
- var styles = useStyles$a();
4713
- return /*#__PURE__*/jsx(List$1, _objectSpread(_objectSpread({}, props), {}, {
4714
- ref: ref,
4715
- component: "div",
4716
- className: clsx(className, styles.root)
4717
- }));
4718
- });
4719
- if (process.env.NODE_ENV !== "production") DrawerList$1.displayName = "DrawerList";
4720
-
4721
- var _excluded$w = ["title", "titleTypographyProps", "subtitle", "subtitleTypographyProps", "startAction", "endAction", "className"];
4722
- var useStyles$b = /*#__PURE__*/makeStyles$1(theme => ({
4723
- appBar: {
4724
- '&&': {
4725
- borderTop: 'none',
4726
- borderLeft: 'none',
4727
- borderRight: 'none',
4728
- transition: theme.transitions.create(['border-color']),
4729
- '&:not($appBarSticky)': {
4730
- borderBottomColor: Color$1.Transparent
4731
- }
4732
- }
4733
- },
4734
- appBarSticky: {},
4735
- toolbar: {
4736
- '&.MuiToolbar-gutters': {
4737
- paddingLeft: theme.spacing(3),
4738
- paddingRight: theme.spacing(3),
4739
- [theme.breakpoints.up('md')]: {
4740
- paddingLeft: theme.spacing(4),
4741
- paddingRight: theme.spacing(4)
4742
- }
4743
- }
4744
- },
4745
- startAction: {
4746
- marginRight: theme.spacing(0.5),
4747
- '& .MuiIconButton-edgeStart': {
4748
- marginLeft: theme.spacing(-2)
4749
- }
4750
- },
4751
- endAction: {
4752
- marginLeft: theme.spacing(0.5),
4753
- '& .MuiIconButton-edgeEnd': {
4754
- marginRight: theme.spacing(-2)
4755
- }
4756
- }
4757
- }), {
4758
- name: 'SD-DrawerTitle'
4759
- });
4760
- var DrawerTitle$1 = /*#__PURE__*/forwardRef((_ref, appBarRef) => {
4761
- var {
4762
- title,
4763
- titleTypographyProps,
4764
- subtitle,
4765
- subtitleTypographyProps,
4766
- startAction,
4767
- endAction,
4768
- className
4769
- } = _ref,
4770
- props = _objectWithoutProperties(_ref, _excluded$w);
4771
-
4772
- var styles = useStyles$b();
4773
- return /*#__PURE__*/jsx(VisibilityObserver$1, {
4774
- render: _ref2 => {
4775
- var {
4776
- ref,
4777
- visibility
4778
- } = _ref2;
4779
- return /*#__PURE__*/jsxs(Fragment, {
4780
- children: [/*#__PURE__*/jsx("div", {
4781
- ref: ref
4782
- }), /*#__PURE__*/jsx(AppBar$1, _objectSpread(_objectSpread({}, props), {}, {
4783
- ref: appBarRef,
4784
- position: "sticky",
4785
- className: clsx(styles.appBar, className, visibility === 'invisible' && styles.appBarSticky),
4786
- children: /*#__PURE__*/jsx(Toolbar$1, {
4787
- className: styles.toolbar,
4788
- children: /*#__PURE__*/jsxs(Grid$1, {
4789
- container: true,
4790
- alignItems: "center",
4791
- children: [!!startAction && /*#__PURE__*/jsx(Grid$1, {
4792
- item: true,
4793
- className: styles.startAction,
4794
- children: startAction
4795
- }), /*#__PURE__*/jsxs(Grid$1, {
4796
- item: true,
4797
- xs: true,
4798
- zeroMinWidth: true,
4799
- children: [/*#__PURE__*/jsx(Typography$1, _objectSpread(_objectSpread({
4800
- variant: "h3",
4801
- noWrap: true
4802
- }, titleTypographyProps), {}, {
4803
- children: title
4804
- })), !!subtitle && /*#__PURE__*/jsx(Typography$1, _objectSpread(_objectSpread({
4805
- variant: "body2",
4806
- noWrap: true
4807
- }, subtitleTypographyProps), {}, {
4808
- children: subtitle
4809
- }))]
4810
- }), !!endAction && /*#__PURE__*/jsx(Grid$1, {
4811
- item: true,
4812
- className: styles.endAction,
4813
- children: endAction
4814
- })]
4815
- })
4816
- })
4817
- }))]
4818
- });
4819
- }
4820
- });
4821
- });
4822
- if (process.env.NODE_ENV !== "production") DrawerTitle$1.displayName = "DrawerTitle";
4823
-
4824
- var _excluded$x = ["children", "alignItems"];
4825
-
4826
- /**
4827
- * @deprecated in favor of `Stack`.
4828
- */
4829
- var GridStack$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
4830
- var {
4831
- children,
4832
- alignItems = 'stretch'
4833
- } = _ref,
4834
- props = _objectWithoutProperties(_ref, _excluded$x);
4835
-
4836
- var items = Children.toArray(children);
4837
- return /*#__PURE__*/jsx(Grid$1, _objectSpread(_objectSpread({}, props), {}, {
4838
- ref: ref,
4839
- container: true,
4840
- wrap: "nowrap",
4841
- direction: "column",
4842
- alignItems: alignItems,
4843
- children: items.map((item, idx) => /*#__PURE__*/jsx(Grid$1, {
4844
- item: true,
4845
- zeroMinWidth: true,
4846
- xs: alignItems === 'stretch' ? 12 : undefined,
4847
- children: item
4848
- }, idx))
4849
- }));
4850
- });
4851
- if (process.env.NODE_ENV !== "production") GridStack$1.displayName = "GridStack";
4852
-
4853
- var _excluded$y = ["children", "wrap", "justify", "alignItems"];
4854
-
4855
- /**
4856
- * @deprecated in favor of `Inline` component.
4857
- */
4858
- var InlineGrid$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
4859
- var {
4860
- children,
4861
- wrap = 'wrap',
4862
- justify = 'flex-start',
4863
- alignItems = 'flex-start'
4864
- } = _ref,
4865
- props = _objectWithoutProperties(_ref, _excluded$y);
4866
-
4867
- var items = Children.toArray(children);
4868
- return /*#__PURE__*/jsx(Grid$1, _objectSpread(_objectSpread({}, props), {}, {
4869
- ref: ref,
4870
- wrap: wrap,
4871
- container: true,
4872
- justify: justify,
4873
- alignItems: alignItems,
4874
- children: items.map((item, idx) => /*#__PURE__*/jsx(Grid$1, {
4875
- item: true,
4876
- zeroMinWidth: true,
4877
- children: item
4878
- }, idx))
4879
- }));
4880
- });
4881
- if (process.env.NODE_ENV !== "production") InlineGrid$1.displayName = "InlineGrid";
4882
-
4883
- function mergeRefs$1() {
4884
- for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
4885
- refs[_key] = arguments[_key];
4886
- }
4887
-
4888
- return node => {
4889
- refs.forEach(ref => {
4890
- assignRef$1(ref, node);
4891
- });
4892
- };
4893
- }
4894
- function assignRef$1(ref, value) {
4895
- if (ref) {
4896
- if (typeof ref === 'function') {
4897
- ref(value);
4898
- } else {
4899
- ref.current = value;
4900
- }
4901
- }
4902
- }
4903
-
4904
- var _excluded$z = ["size", "square", "classes", "children", "className", "CardContentProps"],
4905
- _excluded2$4 = ["content", "sizeLarge", "fullWidth"];
4906
- var useStyles$c = /*#__PURE__*/makeStyles$1(theme => ({
4907
- root: {
4908
- '&$fullWidth': {
4909
- borderRadius: 0,
4910
- borderLeftWidth: 0,
4911
- borderRightWidth: 0
4912
- }
4913
- },
4914
- fullWidth: {},
4915
- sizeLarge: {},
4916
- content: {
4917
- padding: theme.spacing(2),
4918
- '$sizeLarge > &': {
4919
- [theme.breakpoints.up('sm')]: {
4920
- padding: theme.spacing(3)
4921
- }
4922
- }
4923
- }
4924
- }), {
4925
- name: 'SD-InfoCard'
4926
- });
4927
- var InfoCard$1 = /*#__PURE__*/forwardRef((_ref, _ref2) => {
4928
- var {
4929
- size,
4930
- square,
4931
- classes,
4932
- children,
4933
- className,
4934
- CardContentProps: cardContentProps = {}
4935
- } = _ref,
4936
- props = _objectWithoutProperties(_ref, _excluded$z);
4937
-
4938
- var _useStyles = useStyles$c({
4939
- classes
4940
- }),
4941
- {
4942
- content: contentClassName,
4943
- sizeLarge: sizeLargeClassName,
4944
- fullWidth: fullWidthClassName
4945
- } = _useStyles,
4946
- styles = _objectWithoutProperties(_useStyles, _excluded2$4);
4947
-
4948
- var [rootNode, setRootNode] = useState(null);
4949
- var clientRect = rootNode === null || rootNode === void 0 ? void 0 : rootNode.getBoundingClientRect();
4950
- var isFullWidth = (clientRect === null || clientRect === void 0 ? void 0 : clientRect.width) === window.innerWidth;
4951
- return /*#__PURE__*/jsx(Card$1, _objectSpread(_objectSpread({}, props), {}, {
4952
- ref: node => {
4953
- assignRef$1(_ref2, node);
4954
- setRootNode(node);
4955
- },
4956
- classes: styles,
4957
- className: clsx(className, isFullWidth && fullWidthClassName, size === 'large' && sizeLargeClassName),
4958
- children: /*#__PURE__*/jsx(CardContent$1, _objectSpread(_objectSpread({}, cardContentProps), {}, {
4959
- className: clsx(cardContentProps.className, contentClassName),
4960
- children: children
4961
- }))
4962
- }));
4963
- });
4964
- if (process.env.NODE_ENV !== "production") InfoCard$1.displayName = "InfoCard";
4965
-
4966
- function inlineRootMixin$1(spaceProp, noWrap, verticalAlign, horizontalAlign) {
4967
- var space = parseSpaceProp$1(spaceProp);
4968
- return css(["&:before{margin-top:", "px;}& > div{display:flex;margin-left:-", "px;flex-wrap:", ";align-items:", ";justify-content:", ";& > div{&:empty{display:none;}min-width:0;flex-shrink:0;max-width:100%;margin-top:", "px;margin-left:", "px;}}"], -space - 1, space, noWrap ? 'nowrap' : 'wrap', parseAlignProp$1(verticalAlign), parseAlignProp$1(horizontalAlign), space, space);
4969
- }
4970
-
4971
- var InlineRoot$1 = /*#__PURE__*/styled$1.div.withConfig({
4972
- displayName: "Inline__InlineRoot",
4973
- componentId: "SD__sc-13du4wm-0"
4974
- })(_ref => {
4975
- var {
4976
- theme,
4977
- space,
4978
- noWrap,
4979
- verticalAlign,
4980
- horizontalAlign
4981
- } = _ref;
4982
- return css(["padding-top:1px;&:before{content:'';display:block;}", " ", "{", "}", "{", "}"], inlineRootMixin$1(space[0], noWrap[0], verticalAlign[0], horizontalAlign[0]), theme.breakpoints.up('sm'), inlineRootMixin$1(space[1], noWrap[1], verticalAlign[1], horizontalAlign[1]), theme.breakpoints.up('md'), inlineRootMixin$1(space[2], noWrap[2], verticalAlign[2], horizontalAlign[2]));
4983
- });
4984
- var Inline$1 = /*#__PURE__*/forwardRef((_ref2, ref) => {
4985
- var {
4986
- children,
4987
- 'aria-label': ariaLabel,
4988
- 'aria-labelledby': ariaLabelledBy,
4989
- noWrap: noWrapProp = false,
4990
- space: spaceProp = 'xsmall',
4991
- verticalAlign: verticalAlignProp = 'top',
4992
- horizontalAlign: horizontalAlignProp = 'left'
4993
- } = _ref2;
4994
- var space = useResponsiveProp$1(spaceProp);
4995
- var noWrap = useResponsiveProp$1(noWrapProp);
4996
- var verticalAlign = useResponsiveProp$1(verticalAlignProp);
4997
- var horizontalAlign = useResponsiveProp$1(horizontalAlignProp);
4998
- return /*#__PURE__*/jsx(InlineRoot$1, {
4999
- ref: ref,
5000
- space: space,
5001
- noWrap: noWrap,
5002
- verticalAlign: verticalAlign,
5003
- horizontalAlign: horizontalAlign,
5004
- "aria-label": ariaLabel,
5005
- "aria-labelledby": ariaLabelledBy,
5006
- children: /*#__PURE__*/jsx("div", {
5007
- children: flattenChildren(children).map((child, idx) => /*#__PURE__*/jsx("div", {
5008
- children: child
5009
- }, idx))
5010
- })
5011
- });
5012
- });
5013
- if (process.env.NODE_ENV !== "production") Inline$1.displayName = "Inline";
5014
-
5015
- var _excluded$A = ["label", "error", "checked", "onBlur", "onChange", "helperText", "FormControlLabelProps"];
5016
- var RadioField$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
5017
- var {
5018
- label,
5019
- error,
5020
- checked,
5021
- onBlur,
5022
- onChange,
5023
- helperText,
5024
- FormControlLabelProps: formControlLabelProps
5025
- } = _ref,
5026
- props = _objectWithoutProperties(_ref, _excluded$A);
5027
-
5028
- return /*#__PURE__*/jsxs(FormControl$1, {
5029
- error: error,
5030
- children: [/*#__PURE__*/jsx(FormControlLabel$1, _objectSpread(_objectSpread({}, formControlLabelProps), {}, {
5031
- label: label,
5032
- checked: checked,
5033
- onBlur: onBlur,
5034
- onChange: onChange,
5035
- control: /*#__PURE__*/jsx(Radio$1, _objectSpread({
5036
- ref: ref,
5037
- color: "primary"
5038
- }, props))
5039
- })), helperText && /*#__PURE__*/jsx(FormHelperText$1, {
5040
- children: helperText
5041
- })]
5042
- });
5043
- });
5044
- if (process.env.NODE_ENV !== "production") RadioField$1.displayName = "RadioField";
5045
-
5046
- var _excluded$B = ["name", "value", "onChange", "RadioGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
5047
- var RadioGroupField$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
5048
- var {
5049
- name,
5050
- value = '',
5051
- onChange,
5052
- RadioGroupProps: radioGroupProps,
5053
- label,
5054
- FormLabelProps: formLabelProps,
5055
- helperText,
5056
- FormHelperTextProps: formHelperTextProps,
5057
- children
5058
- } = _ref,
5059
- formControlProps = _objectWithoutProperties(_ref, _excluded$B);
5060
-
5061
- return /*#__PURE__*/jsxs(FormControl$1, _objectSpread(_objectSpread({}, formControlProps), {}, {
5062
- hiddenLabel: !label,
5063
- children: [!!label && /*#__PURE__*/jsx(FormLabel$1, _objectSpread(_objectSpread({}, formLabelProps), {}, {
5064
- children: label
5065
- })), /*#__PURE__*/jsx(RadioGroup$1, _objectSpread(_objectSpread({
5066
- ref: ref
5067
- }, radioGroupProps), {}, {
5068
- name: name,
5069
- value: value,
5070
- onChange: onChange,
5071
- children: children
5072
- })), !!helperText && /*#__PURE__*/jsx(FormHelperText$1, _objectSpread(_objectSpread({}, formHelperTextProps), {}, {
5073
- children: helperText
5074
- }))]
5075
- }));
5076
- });
5077
- if (process.env.NODE_ENV !== "production") RadioGroupField$1.displayName = "RadioGroupField";
5078
-
5079
- var BREAKPOINTS = ['xs', 'sm', 'md', 'lg', 'xl'];
5080
- function useCollapseBreakpoint(collapseBreakpoint) {
5081
- var {
5082
- breakpoint = 'xs'
5083
- } = useResponsiveContext$1();
5084
-
5085
- if (collapseBreakpoint == null) {
5086
- return false;
5087
- }
5088
-
5089
- var breakpointIDX = BREAKPOINTS.indexOf(breakpoint);
5090
- var collapseBreakpointIDX = BREAKPOINTS.indexOf(collapseBreakpoint);
5091
- return breakpointIDX < collapseBreakpointIDX;
5092
- }
5093
-
5094
- var _excluded$C = ["action", "children", "onClose", "className", "classes", "variant"],
5095
- _excluded2$5 = ["icon", "closeButton", "variantError", "variantSuccess"];
5096
- var useStyles$d = /*#__PURE__*/makeStyles$1(theme => ({
5097
- root: {
5098
- color: Color$1.White,
5099
- backgroundColor: Color$1.Dark500,
5100
- '&$variantError': {
5101
- color: Color$1.White,
5102
- backgroundColor: Color$1.Red500
5103
- }
5104
- },
5105
- action: {
5106
- paddingLeft: theme.spacing(1)
5107
- },
5108
- message: {
5109
- alignItems: 'center',
5110
- [theme.breakpoints.down('xs')]: {
5111
- fontSize: theme.spacing(2)
5112
- }
5113
- },
5114
- icon: {
5115
- marginRight: theme.spacing(1),
5116
- fontSize: theme.spacing(3)
5117
- },
5118
- closeButton: {
5119
- color: Color$1.White40,
5120
- '&:hover, &:focus': {
5121
- backgroundColor: Color$1.White08,
5122
- color: Color$1.White40
5123
- }
5124
- },
5125
- variantError: {},
5126
- variantSuccess: {}
5127
- }), {
5128
- name: 'SD-SnackbarContent'
5129
- });
5130
- var SnackbarContent$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
5131
- var {
5132
- action,
5133
- children,
5134
- onClose,
5135
- className,
5136
- classes,
5137
- variant = 'default'
5138
- } = _ref,
5139
- props = _objectWithoutProperties(_ref, _excluded$C);
5140
-
5141
- var _useStyles = useStyles$d({
5142
- classes
5143
- }),
5144
- {
5145
- icon,
5146
- closeButton,
5147
- variantError,
5148
- variantSuccess
5149
- } = _useStyles,
5150
- styles = _objectWithoutProperties(_useStyles, _excluded2$5);
5151
-
5152
- var Icon = variant === 'error' ? Warning$1 : variant === 'success' ? CheckCircle$1 : undefined;
5153
- return /*#__PURE__*/jsx(SnackbarContent$3, _objectSpread(_objectSpread({}, props), {}, {
5154
- ref: ref,
5155
- classes: styles,
5156
- className: clsx(className, {
5157
- 'error': variantError,
5158
- 'success': variantSuccess
5159
- }[variant]),
5160
- message: /*#__PURE__*/jsxs(Fragment, {
5161
- children: [Icon && /*#__PURE__*/jsx(Icon, {
5162
- className: icon
5163
- }), children]
5164
- }),
5165
- action: !action && !onClose ? null : /*#__PURE__*/jsxs(Grid$1, {
5166
- container: true,
5167
- spacing: 1,
5168
- alignItems: "center",
5169
- wrap: "nowrap",
5170
- children: [!!action && /*#__PURE__*/jsx(Grid$1, {
5171
- item: true,
5172
- children: action
5173
- }), onClose && /*#__PURE__*/jsx(Grid$1, {
5174
- item: true,
5175
- children: /*#__PURE__*/jsx(IconButton$1, {
5176
- "aria-label": "close",
5177
- onClick: onClose,
5178
- className: closeButton,
5179
- children: /*#__PURE__*/jsx(Close$1, {
5180
- fontSize: "small"
5181
- })
5182
- })
5183
- })]
5184
- })
5185
- }));
5186
- });
5187
- if (process.env.NODE_ENV !== "production") SnackbarContent$1.displayName = "SnackbarContent";
5188
-
5189
- var _excluded$D = ["open", "action", "variant", "onClose", "children", "ContentProps", "hasCloseButton", "TransitionComponent"];
5190
-
5191
- function SlideTransition$1(props) {
5192
- return /*#__PURE__*/jsx(Slide$1, _objectSpread(_objectSpread({}, props), {}, {
5193
- direction: "up"
5194
- }));
5195
- }
5196
-
5197
- var Snackbar$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
5198
- var {
5199
- open,
5200
- action,
5201
- variant,
5202
- onClose,
5203
- children,
5204
- ContentProps,
5205
- hasCloseButton = onClose != null,
5206
- TransitionComponent = SlideTransition$1
5207
- } = _ref,
5208
- props = _objectWithoutProperties(_ref, _excluded$D);
5209
-
5210
- function handleClose(reason) {
5211
- if (reason !== 'clickaway') {
5212
- onClose === null || onClose === void 0 ? void 0 : onClose(reason === 'timeout' ? 'timeout' : 'explicit');
5213
- }
5214
- }
5215
-
5216
- return /*#__PURE__*/jsx(Portal$1, {
5217
- children: /*#__PURE__*/jsx(Snackbar$3, _objectSpread(_objectSpread({}, props), {}, {
5218
- ref: ref,
5219
- open: open,
5220
- TransitionComponent: TransitionComponent,
5221
- onClose: (_, reason) => {
5222
- handleClose(reason);
5223
- },
5224
- children: /*#__PURE__*/jsx(SnackbarContent$1, _objectSpread(_objectSpread({}, ContentProps), {}, {
5225
- action: action,
5226
- variant: variant,
5227
- onClose: !hasCloseButton ? undefined : () => {
5228
- handleClose('explicit');
5229
- },
5230
- children: children
5231
- }))
5232
- }))
5233
- });
5234
- });
5235
- if (process.env.NODE_ENV !== "production") Snackbar$1.displayName = "Snackbar";
5236
-
5237
- var _excluded$E = ["onClose", "variant", "key", "id", "autoHideDuration"];
5238
-
5239
- function warnContext$1() {
5240
- // eslint-disable-next-line no-console
5241
- console.log('`useSnackbarStack` is used outside of `SnackbarStackProvider`.');
5242
- }
5243
-
5244
- var Context$3 = /*#__PURE__*/createContext({
5245
- clearStack: warnContext$1,
5246
- addSnackbar: () => {
5247
- warnContext$1();
5248
- return warnContext$1;
5249
- }
5250
- });
5251
- function useSnackbarStack$1() {
5252
- return useContext(Context$3);
5253
- }
5254
- function SnackbarStackConsumer$1(_ref) {
5255
- var {
5256
- children
5257
- } = _ref;
5258
- return /*#__PURE__*/jsx(Context$3.Consumer, {
5259
- children: children
5260
- });
5261
- }
5262
- var TRANSIENT_KEY$1 = '@@transient@@';
5263
- function SnackbarStackProvider$1(_ref2) {
5264
- var {
5265
- children
5266
- } = _ref2;
5267
- var [stack, setStack] = useState(new Map());
5268
- var transientKeyRef = useRef(0);
5269
- var getNextTransientKey = useCallback(() => TRANSIENT_KEY$1 + String(transientKeyRef.current += 1), []);
5270
- var clearStack = useCallback(() => {
5271
- setStack(x => x.size === 0 ? x : new Map());
5272
- }, []);
5273
- var addSnackbar = useCallback(function (message) {
5274
- var _ref3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
5275
- {
5276
- onClose: _onClose,
5277
- variant,
5278
- key = variant !== 'error' ? // We don't want non error snackbars without key to pop back.
5279
- getNextTransientKey() : typeof message === 'string' ? message : Math.random(),
5280
- id = String(key),
5281
- autoHideDuration = 5000
5282
- } = _ref3,
5283
- props = _objectWithoutProperties(_ref3, _excluded$E);
5284
-
5285
- function removeSnackbar() {
5286
- setStack(prev => {
5287
- if (prev.has(key)) {
5288
- var next = new Map(prev);
5289
- next.delete(key);
5290
- return next;
5291
- }
5292
-
5293
- return prev;
5294
- });
5295
- }
5296
-
5297
- setStack(prev => {
5298
- var next = new Map(prev);
5299
-
5300
- for (var prevKey of prev.keys()) {
5301
- // Ensure that we insert value to the end of the map.
5302
- if (Object.is(key, prevKey)) {
5303
- next.delete(key);
5304
- } // Ensure that transient snackbar will not pop back.
5305
-
5306
-
5307
- if (typeof prevKey == 'string' && prevKey.startsWith(TRANSIENT_KEY$1)) {
5308
- next.delete(prevKey);
5309
- }
5310
- }
5311
-
5312
- return next.set(key, _objectSpread(_objectSpread({}, props), {}, {
5313
- id,
5314
- key,
5315
- variant,
5316
- autoHideDuration,
5317
- children: message,
5318
- onClose: reason => {
5319
- removeSnackbar();
5320
- _onClose === null || _onClose === void 0 ? void 0 : _onClose(reason);
5321
- }
5322
- }));
5323
- });
5324
- return removeSnackbar;
5325
- }, [getNextTransientKey]);
5326
- var snackbarProps = useDeepEqualMemo(prev => {
5327
- var next = Array.from(stack.values()).pop();
5328
- return next ? _objectSpread(_objectSpread({}, next), {}, {
5329
- open: true
5330
- }) : _objectSpread(_objectSpread({}, prev), {}, {
5331
- open: false
5332
- });
5333
- }, [stack]);
5334
- var api = useMemo(() => ({
5335
- clearStack,
5336
- addSnackbar
5337
- }), [clearStack, addSnackbar]);
5338
- return /*#__PURE__*/jsxs(Context$3.Provider, {
5339
- value: api,
5340
- children: [children, /*#__PURE__*/jsx(Snackbar$1, _objectSpread({}, snackbarProps))]
5341
- });
5342
- }
5343
-
5344
- function stackItemMixin$1(space, align) {
5345
- return css(["flex-direction:column;align-items:", ";display:", ";&:empty{display:none;}&:not(:empty) ~ div{padding-top:", "px;}"], parseAlignProp$1(align), align === 'left' ? 'block' : 'flex', parseSpaceProp$1(space));
5346
- }
5347
-
5348
- var StackRoot$1 = /*#__PURE__*/styled$1.div.withConfig({
5349
- displayName: "Stack__StackRoot",
5350
- componentId: "SD__sc-qkml7c-0"
5351
- })(_ref => {
5352
- var {
5353
- theme,
5354
- space,
5355
- align
5356
- } = _ref;
5357
- return css(["width:100%;& > div{", ";", "{", ";}", "{", ";}}"], stackItemMixin$1(space[0], align[0]), theme.breakpoints.up('sm'), stackItemMixin$1(space[1], align[1]), theme.breakpoints.up('md'), stackItemMixin$1(space[2], align[2]));
5358
- });
5359
- var Stack$1 = /*#__PURE__*/forwardRef((_ref2, ref) => {
5360
- var {
5361
- children,
5362
- 'aria-label': ariaLabel,
5363
- 'aria-labelledby': ariaLabelledBy,
5364
- space = 'xsmall',
5365
- align = 'left'
5366
- } = _ref2;
5367
- return /*#__PURE__*/jsx(StackRoot$1, {
5368
- ref: ref,
5369
- align: parseResponsiveProp$1(align),
5370
- space: parseResponsiveProp$1(space),
5371
- "aria-label": ariaLabel,
5372
- "aria-labelledby": ariaLabelledBy,
5373
- children: flattenChildren(children).map((child, idx) => /*#__PURE__*/jsx("div", {
5374
- children: child
5375
- }, idx))
5376
- });
5377
- });
5378
- if (process.env.NODE_ENV !== "production") Stack$1.displayName = "Stack";
5379
-
5380
- var _excluded$F = ["color", "variant", "children", "classes", "className", "noWrap", "fontWeight", "component"];
5381
- var useStyles$e = /*#__PURE__*/makeStyles$1(theme => ({
5382
- root: {
5383
- maxWidth: '100%',
5384
- alignItems: 'center',
5385
- display: 'inline-flex',
5386
- borderRadius: theme.spacing(0.5),
5387
- padding: theme.spacing(0, 0.5)
5388
- },
5389
- variantSubtle: {
5390
- '&$colorGrey': {
5391
- color: Color$1.Dark300,
5392
- backgroundColor: Color$1.Silver200
5393
- },
5394
- '&$colorBlue': {
5395
- color: Color$1.Blue500,
5396
- backgroundColor: Color$1.Blue50
5397
- },
5398
- '&$colorGreen': {
5399
- color: Color$1.Green500,
5400
- backgroundColor: Color$1.Green50
5401
- },
5402
- '&$colorPurple': {
5403
- color: Color$1.Purple500,
5404
- backgroundColor: Color$1.Purple50
5405
- },
5406
- '&$colorRed': {
5407
- color: Color$1.Red500,
5408
- backgroundColor: Color$1.Red50
5409
- },
5410
- '&$colorTeal': {
5411
- color: Color$1.Teal500,
5412
- backgroundColor: Color$1.Teal50
5413
- },
5414
- '&$colorYellow': {
5415
- color: Color$1.Yellow500,
5416
- backgroundColor: Color$1.Yellow50
5417
- }
5418
- },
5419
- variantBold: {
5420
- color: Color$1.White,
5421
- '&$colorGrey': {
5422
- backgroundColor: Color$1.Dark300
5423
- },
5424
- '&$colorBlue': {
5425
- backgroundColor: Color$1.Blue500
5426
- },
5427
- '&$colorGreen': {
5428
- backgroundColor: Color$1.Green500
5429
- },
5430
- '&$colorPurple': {
5431
- backgroundColor: Color$1.Purple500
5432
- },
5433
- '&$colorRed': {
5434
- backgroundColor: Color$1.Red500
5435
- },
5436
- '&$colorTeal': {
5437
- backgroundColor: Color$1.Teal500
5438
- },
5439
- '&$colorYellow': {
5440
- backgroundColor: Color$1.Yellow500
5441
- }
5442
- },
5443
- colorGrey: {},
5444
- colorBlue: {},
5445
- colorGreen: {},
5446
- colorPurple: {},
5447
- colorRed: {},
5448
- colorTeal: {},
5449
- colorYellow: {}
5450
- }), {
5451
- name: 'SD-Tag'
5452
- });
5453
- var Tag$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
5454
- var {
5455
- color,
5456
- variant,
5457
- children,
5458
- classes,
5459
- className,
5460
- noWrap = true,
5461
- fontWeight = 'bold',
5462
- component = 'div'
5463
- } = _ref,
5464
- props = _objectWithoutProperties(_ref, _excluded$F);
5465
-
5466
- var styles = useStyles$e({
5467
- classes
5468
- });
5469
- return /*#__PURE__*/jsx(Typography$1, _objectSpread(_objectSpread({}, props), {}, {
5470
- ref: ref,
5471
- noWrap: noWrap,
5472
- component: component,
5473
- variant: fontWeight === 'bold' ? 'body1' : 'body2',
5474
- className: clsx(styles.root, className, {
5475
- 'grey': styles.colorGrey,
5476
- 'blue': styles.colorBlue,
5477
- 'green': styles.colorGreen,
5478
- 'purple': styles.colorPurple,
5479
- 'red': styles.colorRed,
5480
- 'teal': styles.colorTeal,
5481
- 'yellow': styles.colorYellow
5482
- }[color], {
5483
- 'subtle': styles.variantSubtle,
5484
- 'bold': styles.variantBold
5485
- }[variant]),
5486
- children: children
5487
- }));
5488
- });
5489
- if (process.env.NODE_ENV !== "production") Tag$1.displayName = "Tag";
5490
-
5491
- function overrideAppBar$1(theme) {
5492
- theme.props.MuiAppBar = {
5493
- elevation: 0,
5494
- color: 'inherit',
5495
- position: 'static'
5496
- };
5497
- }
5498
-
5499
- function overrideAutocomplete$1(theme) {
5500
- var sm = theme.breakpoints.up('sm'); // Remove `Object.assign` after official release of `Autocomplete`.
5501
-
5502
- Object.assign(theme.props, {
5503
- MuiAutocomplete: {
5504
- popupIcon: /*#__PURE__*/jsx(SvgIcon$1, {
5505
- children: /*#__PURE__*/jsx("path", {
5506
- d: "M12 16.5L6 9h12l-6 7.5z",
5507
- fill: "currentColor"
5508
- })
5509
- })
5510
- }
5511
- });
5512
- Object.assign(theme.overrides, {
5513
- MuiAutocomplete: {
5514
- paper: _objectSpread({}, theme.typography.body2),
5515
- tag: {
5516
- margin: '4px',
5517
- [sm]: {
5518
- margin: '2px'
5519
- }
5520
- },
5521
- endAdornment: {
5522
- top: 0,
5523
- bottom: 0,
5524
- display: 'flex',
5525
- alignItems: 'center'
5526
- },
5527
- popupIndicator: {
5528
- '& .MuiSvgIcon-root': {
5529
- fontSize: '24px',
5530
- [sm]: {
5531
- fontSize: '16px'
5532
- }
5533
- }
5534
- },
5535
- inputRoot: {
5536
- '&[class*="MuiOutlinedInput-root"]': {
5537
- padding: '6px 8px',
5538
- '& $input': {
5539
- width: '144px',
5540
- padding: '4px'
5541
- },
5542
- '& $input:first-child': {
5543
- paddingLeft: undefined
5544
- },
5545
- '& $endAdornment': {
5546
- right: '12px'
5547
- },
5548
- [sm]: {
5549
- padding: theme.spacing(0.5, 0.75),
5550
- '& $input': {
5551
- padding: '2px'
5552
- },
5553
- '& $endAdornment': {
5554
- right: '8px'
5555
- }
5556
- }
5557
- }
5558
- }
5559
- }
5560
- });
5561
- }
5562
-
5563
- function overrideAvatar$1(theme) {
5564
- theme.overrides.MuiAvatar = {
5565
- root: _objectSpread(_objectSpread({}, theme.typography.h5), {}, {
5566
- textTransform: 'uppercase',
5567
- width: theme.spacing(5),
5568
- height: theme.spacing(5),
5569
- [theme.breakpoints.up('sm')]: {
5570
- width: theme.spacing(4),
5571
- height: theme.spacing(4)
5572
- }
5573
- }),
5574
- colorDefault: {
5575
- color: Color$1.Dark300,
5576
- backgroundColor: Color$1.Silver300
5577
- }
5578
- };
5579
- }
5580
-
5581
- function outlineShadow$1() {
5582
- var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
5583
- var color = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Color$1.Transparent;
5584
- return "0 0 0 ".concat(size, "px ").concat(color);
5585
- }
5586
-
5587
- function textVariant$1(text, outline, background, progress) {
5588
- return {
5589
- color: text,
5590
- boxShadow: outlineShadow$1(),
5591
- backgroundColor: Color$1.Transparent,
5592
- '&:hover': {
5593
- backgroundColor: background
5594
- },
5595
- '&[aria-expanded="true"]': {
5596
- backgroundColor: background
5597
- },
5598
- '&:focus': {
5599
- backgroundColor: background,
5600
- boxShadow: outlineShadow$1(2, outline)
5601
- },
5602
- '&$disabled': {
5603
- color: outline,
5604
- boxShadow: outlineShadow$1(),
5605
- backgroundColor: Color$1.Transparent
5606
- },
5607
- '&$disabled[aria-busy="true"]': {
5608
- color: progress
5609
- }
5610
- };
5611
- }
5612
-
5613
- function outlinedBorder$1(borderColor) {
5614
- var outlineColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Color$1.Transparent;
5615
- return "inset 0 0 0 1px ".concat(borderColor, ", 0 0 0 2px ").concat(outlineColor);
5616
- }
5617
-
5618
- function outlinedVariant$1(staleText, staleBorder, disabledText, disabledBorder, activeText, activeBorder, activeOutline, activeBackground, progress, backgroundColor) {
5619
- return {
5620
- backgroundColor,
5621
- color: staleText,
5622
- border: undefined,
5623
- boxShadow: outlinedBorder$1(staleBorder),
5624
- '&:hover': {
5625
- color: activeText,
5626
- border: undefined,
5627
- backgroundColor: activeBackground,
5628
- boxShadow: outlinedBorder$1(activeBorder)
5629
- },
5630
- '&[aria-expanded="true"]': {
5631
- color: activeText,
5632
- backgroundColor: activeBackground,
5633
- boxShadow: outlinedBorder$1(activeBorder)
5634
- },
5635
- '&:focus': {
5636
- boxShadow: outlinedBorder$1(activeBorder, activeOutline)
5637
- },
5638
- '&$disabled': {
5639
- backgroundColor,
5640
- color: disabledText,
5641
- boxShadow: outlinedBorder$1(disabledBorder)
5642
- },
5643
- '&$disabled[aria-busy="true"]': {
5644
- color: progress
5645
- }
5646
- };
5647
- }
5648
-
5649
- function containedVariant$1(text, backgroundColor, outline, active, disabledText, disabledBackground) {
5650
- return {
5651
- color: text,
5652
- backgroundColor,
5653
- boxShadow: outlineShadow$1(),
5654
- '&:hover': {
5655
- backgroundColor: active
5656
- },
5657
- '&[aria-expanded="true"]': {
5658
- backgroundColor: active
5659
- },
5660
- '&:focus': {
5661
- boxShadow: outlineShadow$1(3, outline)
5662
- },
5663
- '&$disabled': {
5664
- color: disabledText,
5665
- boxShadow: outlineShadow$1(),
5666
- backgroundColor: disabledBackground
5667
- }
5668
- };
5669
- }
5670
-
5671
- function overrideButton$1(theme) {
5672
- var sm = theme.breakpoints.up('sm');
5673
- theme.props.MuiButton = {
5674
- color: 'primary',
5675
- variant: 'outlined',
5676
- disableFocusRipple: true
5677
- };
5678
- theme.overrides.MuiButton = {
5679
- root: {
5680
- color: undefined,
5681
- minWidth: theme.spacing(6),
5682
- transition: theme.transitions.create(['color', 'border', 'box-shadow', 'background-color']),
5683
- padding: theme.spacing(1.25, 3),
5684
- [sm]: {
5685
- padding: theme.spacing(0.75, 2)
5686
- },
5687
- '&:hover': {
5688
- backgroundColor: undefined,
5689
- '&$disabled': {
5690
- backgroundColor: undefined
5691
- },
5692
- '@media (hover: none)': {
5693
- backgroundColor: undefined
5694
- }
5695
- },
5696
- '&$disabled': {
5697
- color: undefined
5698
- },
5699
- '&[aria-busy="true"]': {
5700
- '& $label': {
5701
- visibility: 'hidden',
5702
- '& > [role="progressbar"]': {
5703
- position: 'absolute',
5704
- visibility: 'visible',
5705
- top: 'calc(50% - 0.5em)',
5706
- left: 'calc(50% - 0.5em)',
5707
- fontSize: theme.spacing(2),
5708
- '$sizeLarge &': {
5709
- fontSize: theme.spacing(3)
5710
- }
5711
- }
5712
- }
5713
- }
5714
- },
5715
- label: {
5716
- '& > .MuiSvgIcon-root': {
5717
- fontSize: '24px',
5718
- [sm]: {
5719
- fontSize: '20px'
5720
- },
5721
- '$sizeLarge &': {
5722
- fontSize: '28px',
5723
- [sm]: {
5724
- fontSize: '24px'
5725
- }
5726
- }
5727
- }
5728
- },
5729
- sizeSmall: {
5730
- padding: theme.spacing(0.5, 3),
5731
- [sm]: {
5732
- padding: theme.spacing(0.25, 2)
5733
- }
5734
- },
5735
- sizeLarge: {
5736
- fontSize: '18px',
5737
- lineHeight: '28px',
5738
- padding: theme.spacing(1.75, 8),
5739
- [sm]: {
5740
- fontSize: '16px',
5741
- lineHeight: '24px',
5742
- padding: theme.spacing(1, 4)
5743
- }
5744
- },
5745
- text: {
5746
- padding: undefined,
5747
- '&[data-color="error"]': textVariant$1(Color$1.Red300, Color$1.Red100, Color$1.Red50, Color$1.Red200),
5748
- '&[data-color="success"]': textVariant$1(Color$1.Green300, Color$1.Green100, Color$1.Green50, Color$1.Green200),
5749
- '&[data-color="white"]': textVariant$1(Color$1.White, Color$1.White50, Color$1.White10, Color$1.White50)
5750
- },
5751
- textPrimary: textVariant$1(Color$1.Blue300, Color$1.Blue100, Color$1.Blue50, Color$1.Blue200),
5752
- textSizeSmall: {
5753
- padding: undefined,
5754
- fontSize: undefined
5755
- },
5756
- textSizeLarge: {
5757
- padding: undefined,
5758
- fontSize: undefined
5759
- },
5760
- outlined: {
5761
- border: undefined,
5762
- padding: undefined,
5763
- '&$disabled': {
5764
- border: undefined
5765
- },
5766
- '&[data-color="error"]': outlinedVariant$1(Color$1.Red300, Color$1.Red300, Color$1.Red100, Color$1.Red100, Color$1.Red300, Color$1.Red300, Color$1.Red100, Color$1.Red50, Color$1.Red300, Color$1.White),
5767
- '&[data-color="success"]': outlinedVariant$1(Color$1.Green300, Color$1.Green300, Color$1.Green100, Color$1.Green100, Color$1.Green300, Color$1.Green300, Color$1.Green100, Color$1.Green50, Color$1.Green300, Color$1.White),
5768
- '&[data-color="white"]': outlinedVariant$1(Color$1.White, Color$1.White50, Color$1.White50, Color$1.White40, Color$1.White, Color$1.White50, Color$1.White40, Color$1.White10, Color$1.White50, Color$1.Transparent)
5769
- },
5770
- outlinedPrimary: outlinedVariant$1(Color$1.Dark500, Color$1.Silver500, Color$1.Silver500, Color$1.Silver400, Color$1.Blue300, Color$1.Blue300, Color$1.Blue100, Color$1.Blue50, Color$1.Dark200, Color$1.White),
5771
- outlinedSizeSmall: {
5772
- padding: undefined,
5773
- fontSize: undefined
5774
- },
5775
- outlinedSizeLarge: {
5776
- padding: undefined,
5777
- fontSize: undefined
5778
- },
5779
- contained: {
5780
- boxShadow: undefined,
5781
- backgroundColor: undefined,
5782
- '&:hover': {
5783
- boxShadow: undefined,
5784
- backgroundColor: undefined,
5785
- '&$disabled': {
5786
- backgroundColor: undefined
5787
- },
5788
- '@media (hover: none)': {
5789
- boxShadow: undefined,
5790
- backgroundColor: undefined
5791
- }
5792
- },
5793
- '&:active': {
5794
- boxShadow: undefined
5795
- },
5796
- '&$focusVisible': {
5797
- boxShadow: undefined
5798
- },
5799
- '&$disabled': {
5800
- color: undefined,
5801
- boxShadow: undefined,
5802
- backgroundColor: undefined
5803
- },
5804
- '&[data-color="error"]': containedVariant$1(Color$1.White, Color$1.Red300, Color$1.Red100, Color$1.Red500, Color$1.White, Color$1.Red100),
5805
- '&[data-color="success"]': containedVariant$1(Color$1.White, Color$1.Green300, Color$1.Green100, Color$1.Green500, Color$1.White, Color$1.Green100),
5806
- '&[data-color="white"]': containedVariant$1(Color$1.White, Color$1.White20, Color$1.White40, Color$1.White40, Color$1.White50, Color$1.White08)
5807
- },
5808
- containedPrimary: containedVariant$1(Color$1.White, Color$1.Blue300, Color$1.Blue100, Color$1.Blue500, Color$1.White, Color$1.Blue100),
5809
- containedSizeSmall: {
5810
- padding: undefined,
5811
- fontSize: undefined
5812
- },
5813
- containedSizeLarge: {
5814
- padding: undefined,
5815
- fontSize: undefined
5816
- }
5817
- };
5818
- }
5819
-
5820
- function overrideCard$1(theme) {
5821
- theme.props.MuiCard = {
5822
- variant: 'outlined'
5823
- };
5824
- theme.overrides.MuiCardContent = {
5825
- root: {
5826
- '&:last-child': {
5827
- paddingBottom: undefined
5828
- }
5829
- }
5830
- };
5831
- }
5832
-
5833
- function overrideCheckbox$1(theme) {
5834
- theme.props.MuiCheckbox = {
5835
- color: 'primary',
5836
- icon: /*#__PURE__*/jsx(SvgIcon$1, {
5837
- children: /*#__PURE__*/jsx("rect", {
5838
- width: "17",
5839
- height: "17",
5840
- x: "3.5",
5841
- y: "3.5",
5842
- fill: Color$1.White,
5843
- stroke: "currentColor",
5844
- rx: "1.5"
5845
- })
5846
- }),
5847
- checkedIcon: /*#__PURE__*/jsxs(SvgIcon$1, {
5848
- children: [/*#__PURE__*/jsx("rect", {
5849
- width: "18",
5850
- height: "18",
5851
- x: "3",
5852
- y: "3",
5853
- fill: "currentColor",
5854
- rx: "2"
5855
- }), /*#__PURE__*/jsx("path", {
5856
- fill: Color$1.White,
5857
- 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"
5858
- })]
5859
- }),
5860
- indeterminateIcon: /*#__PURE__*/jsxs(SvgIcon$1, {
5861
- children: [/*#__PURE__*/jsx("rect", {
5862
- width: "18",
5863
- height: "18",
5864
- x: "3",
5865
- y: "3",
5866
- fill: "currentIcon",
5867
- rx: "2"
5868
- }), /*#__PURE__*/jsx("path", {
5869
- fill: Color$1.White,
5870
- d: "M7 11h10v2H7v-2z"
5871
- })]
5872
- })
5873
- };
5874
- theme.overrides.MuiCheckbox = {
5875
- root: {
5876
- color: Color$1.Dark100,
5877
- marginTop: theme.spacing(-0.625),
5878
- marginBottom: theme.spacing(-0.625)
5879
- },
5880
- colorPrimary: {
5881
- '&$checked$disabled': {
5882
- color: Color$1.Silver500
5883
- },
5884
- '&:hover:not($checked)': {
5885
- color: Color$1.Dark100
5886
- }
5887
- }
5888
- };
5889
- }
5890
-
5891
- function overrideChip$1(theme) {
5892
- var sm = theme.breakpoints.up('sm');
5893
- theme.props.MuiChip = {
5894
- size: 'small',
5895
- deleteIcon: /*#__PURE__*/jsx("div", {
5896
- children: /*#__PURE__*/jsx(SvgIcon$1, {
5897
- children: /*#__PURE__*/jsx("path", {
5898
- fillRule: "evenodd",
5899
- clipRule: "evenodd",
5900
- 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",
5901
- fill: "currentColor"
5902
- })
5903
- })
5904
- })
5905
- };
5906
- theme.overrides.MuiChip = {
5907
- root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
5908
- color: undefined,
5909
- height: undefined,
5910
- borderRadius: 4,
5911
- backgroundColor: Color$1.Silver200,
5912
- '&$disabled': {
5913
- opacity: undefined,
5914
- color: Color$1.Dark100
5915
- }
5916
- }),
5917
- sizeSmall: {
5918
- height: undefined
5919
- },
5920
- labelSmall: {
5921
- paddingLeft: 6,
5922
- paddingRight: 6,
5923
- [sm]: {
5924
- paddingLeft: 4,
5925
- paddingRight: 4
5926
- }
5927
- },
5928
- clickable: {
5929
- '&:hover, &:focus': {
5930
- backgroundColor: undefined
5931
- },
5932
- '&:active': {
5933
- boxShadow: undefined
5934
- },
5935
- '&:focus': {
5936
- boxShadow: "0 0 0 2px ".concat(Color$1.Silver300)
5937
- },
5938
- '&:active, &:hover': {
5939
- backgroundColor: Color$1.Silver300
5940
- }
5941
- },
5942
- deletable: {
5943
- '&:focus': {
5944
- backgroundColor: undefined,
5945
- boxShadow: "0 0 0 2px ".concat(Color$1.Silver300)
5946
- }
5947
- },
5948
- deleteIcon: {
5949
- width: undefined,
5950
- height: undefined,
5951
- display: 'flex',
5952
- transition: theme.transitions.create('background-color'),
5953
- '&:active, &:hover, &:focus': {
5954
- '& > svg': {
5955
- backgroundColor: Color$1.Silver400
5956
- }
5957
- },
5958
- '& > svg': {
5959
- borderRadius: '50%',
5960
- color: Color$1.Dark200,
5961
- fontSize: '1em'
5962
- }
5963
- },
5964
- deleteIconSmall: {
5965
- width: undefined,
5966
- height: undefined,
5967
- padding: theme.spacing(0.5),
5968
- marginLeft: theme.spacing(-0.5),
5969
- marginRight: theme.spacing(0.25),
5970
- [sm]: {
5971
- marginRight: 0
5972
- }
5973
- },
5974
- icon: {
5975
- color: Color$1.Dark100,
5976
- fontSize: '1em',
5977
- marginRight: undefined
5978
- },
5979
- iconSmall: {
5980
- width: undefined,
5981
- height: undefined,
5982
- marginLeft: 8,
5983
- marginRight: undefined,
5984
- [sm]: {
5985
- marginLeft: 4
5986
- }
5987
- }
5988
- };
5989
- }
5990
-
5991
- function overrideDialog$1(theme) {
5992
- theme.props.MuiDialogTitle = {
5993
- disableTypography: true
5994
- };
5995
- theme.overrides.MuiDialog = {
5996
- paper: {
5997
- margin: theme.spacing(3)
5998
- },
5999
- paperWidthXs: {
6000
- maxWidth: Math.max(theme.breakpoints.values.xs, 360),
6001
- '&$paperScrollBody': {
6002
- [theme.breakpoints.down(Math.max(theme.breakpoints.values.xs, 360) + 32 * 2)]: {
6003
- maxWidth: 'calc(100% - 64px)'
6004
- }
6005
- }
6006
- }
6007
- };
6008
- theme.overrides.MuiDialogTitle = {
6009
- root: _objectSpread({}, theme.typography.h3)
6010
- };
6011
- theme.overrides.MuiDialogContent = {
6012
- root: {
6013
- padding: theme.spacing(0, 3)
6014
- }
6015
- };
6016
- theme.overrides.MuiDialogActions = {
6017
- root: {
6018
- padding: theme.spacing(3)
6019
- },
6020
- spacing: {
6021
- '& > :not(:first-child)': {
6022
- marginLeft: theme.spacing(2)
6023
- }
6024
- }
6025
- };
6026
- }
6027
-
6028
- function overrideDrawer$1(theme) {
6029
- theme.props.MuiDrawer = {
6030
- anchor: 'right'
6031
- };
6032
- theme.overrides.MuiDrawer = {
6033
- paper: {
6034
- maxWidth: '100%',
6035
- minWidth: '100%',
6036
- [theme.breakpoints.up('sm')]: {
6037
- minWidth: theme.spacing(54),
6038
- maxWidth: theme.breakpoints.values.sm
6039
- }
6040
- }
6041
- };
6042
- }
6043
-
6044
- function overrideIconButton$1(theme) {
6045
- theme.overrides.MuiIconButton = {
6046
- root: {
6047
- color: Color$1.Dark100,
6048
- backgroundColor: Color$1.Transparent,
6049
- transition: theme.transitions.create(['color', 'background-color'], {
6050
- duration: theme.transitions.duration.short
6051
- }),
6052
- '&:hover': {
6053
- backgroundColor: Color$1.Transparent
6054
- },
6055
- '&:active': {
6056
- color: Color$1.Dark500
6057
- },
6058
- '&:hover ': {
6059
- color: Color$1.Dark300
6060
- },
6061
- '&:focus': {
6062
- backgroundColor: Color$1.Silver400
6063
- },
6064
- '&$disabled': {
6065
- color: Color$1.Silver500
6066
- }
6067
- },
6068
- colorPrimary: {
6069
- '&:active': {
6070
- color: Color$1.Blue500
6071
- },
6072
- '&:hover ': {
6073
- color: Color$1.Blue300
6074
- },
6075
- '&:focus': {
6076
- backgroundColor: Color$1.Blue50
6077
- }
6078
- },
6079
- edgeEnd: {
6080
- marginRight: theme.spacing(-1)
6081
- },
6082
- edgeStart: {
6083
- marginLeft: theme.spacing(-1)
6084
- }
6085
- };
6086
- }
6087
-
6088
- function line$1(color) {
6089
- return "linear-gradient(to right, ".concat(color, " 0%, ").concat(color, " 100%)");
6090
- }
6091
-
6092
- function overrideLink$1(theme) {
6093
- theme.props.MuiLink = {
6094
- underline: 'none',
6095
- color: 'textPrimary'
6096
- };
6097
- theme.overrides.MuiLink = {
6098
- root: {
6099
- backgroundSize: '100% 1px',
6100
- backgroundRepeat: 'repeat-x',
6101
- backgroundPosition: '0 100%',
6102
- backgroundColor: Color$1.Transparent,
6103
- '&:focus': {
6104
- outline: 'none'
6105
- },
6106
- '&:hover, &:active': {
6107
- backgroundImage: line$1('currentColor')
6108
- },
6109
- '&.MuiTypography-colorTextPrimary': {
6110
- backgroundImage: line$1(Color$1.Silver500),
6111
- '&:focus, &:hover, &:active': {
6112
- color: Color$1.Blue300,
6113
- backgroundImage: line$1(Color$1.Blue300)
6114
- }
6115
- }
6116
- },
6117
- button: {
6118
- // Reset button styles.
6119
- backgroundColor: undefined,
6120
- // Override browser defaults.
6121
- fontSize: 'inherit',
6122
- textAlign: 'inherit',
6123
- lineHeight: 'inherit',
6124
- userSelect: 'inherit',
6125
- verticalAlign: 'inherit'
6126
- }
6127
- };
6128
- }
6129
-
6130
- function overrideList$1(theme) {
6131
- theme.overrides.MuiListItem = {
6132
- root: {
6133
- '&$selected, &$selected:hover': {
6134
- backgroundColor: Color$1.Blue50
6135
- },
6136
- '& .MuiTouchRipple-root': {
6137
- color: Color$1.Blue100
6138
- }
6139
- }
6140
- };
6141
- }
6142
-
6143
- function overrideMenu$1(theme) {
6144
- theme.props.MuiMenu = {
6145
- getContentAnchorEl: null,
6146
- anchorOrigin: {
6147
- vertical: 'bottom',
6148
- horizontal: 'left'
6149
- },
6150
- transformOrigin: {
6151
- vertical: 'top',
6152
- horizontal: 'left'
6153
- }
6154
- };
6155
- theme.overrides.MuiMenuItem = {
6156
- root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
6157
- paddingTop: theme.spacing(1),
6158
- paddingBottom: theme.spacing(1)
6159
- })
6160
- };
6161
- }
6162
-
6163
- function overridePagination$1(theme) {
6164
- var props = {};
6165
- var overrides = {
6166
- root: {
6167
- color: Color$1.Dark400
6168
- },
6169
- page: {
6170
- '&:hover': {
6171
- backgroundColor: Color$1.Silver200
6172
- },
6173
- '&$focusVisible': {
6174
- borderRadius: 4,
6175
- backgroundColor: Color$1.White,
6176
- border: "1px solid ".concat(Color$1.Blue100)
6177
- },
6178
- '&$selected': {
6179
- backgroundColor: Color$1.Silver400,
6180
- '&:hover, &$focusVisible': {
6181
- backgroundColor: Color$1.Silver400
6182
- },
6183
- '&$disabled': {
6184
- color: Color$1.Dark100,
6185
- backgroundColor: Color$1.Silver400
6186
- }
6187
- },
6188
- '&$disabled': {
6189
- opacity: undefined,
6190
- color: Color$1.Dark100
6191
- }
6192
- }
6193
- }; // Remove `Object.assign` after official release of `PaginationItem`.
6194
-
6195
- Object.assign(theme.props, {
6196
- MuiPaginationItem: props
6197
- });
6198
- Object.assign(theme.overrides, {
6199
- MuiPaginationItem: overrides
6200
- });
6201
- }
6202
-
6203
- function overridePaper$1(theme) {
6204
- theme.props.MuiPaper = {
6205
- elevation: 0
6206
- };
6207
- theme.overrides.MuiPaper = {
6208
- elevation0: {
6209
- border: "1px solid ".concat(Color$1.Silver400)
6210
- }
6211
- };
6212
- }
6213
-
6214
- function overrideRadio$1(theme) {
6215
- theme.props.MuiRadio = {
6216
- color: 'primary',
6217
- icon: /*#__PURE__*/jsx(SvgIcon$1, {
6218
- children: /*#__PURE__*/jsx("circle", {
6219
- cx: "12",
6220
- cy: "12",
6221
- r: "8.5",
6222
- fill: Color$1.White,
6223
- stroke: "currentColor"
6224
- })
6225
- }),
6226
- checkedIcon: /*#__PURE__*/jsxs(SvgIcon$1, {
6227
- children: [/*#__PURE__*/jsx("circle", {
6228
- cx: "12",
6229
- cy: "12",
6230
- r: "8.5",
6231
- fill: "currentColor",
6232
- stroke: "currentColor"
6233
- }), /*#__PURE__*/jsx("circle", {
6234
- cx: "12",
6235
- cy: "12",
6236
- r: "4",
6237
- fill: Color$1.White
6238
- })]
6239
- })
6240
- };
6241
- theme.overrides.MuiRadio = {
6242
- root: {
6243
- color: Color$1.Dark100,
6244
- marginTop: theme.spacing(-0.625),
6245
- marginBottom: theme.spacing(-0.625)
6246
- },
6247
- colorPrimary: {
6248
- '&$checked$disabled': {
6249
- color: Color$1.Silver500
6250
- },
6251
- '&:hover:not($checked)': {
6252
- color: Color$1.Dark100
6253
- }
6254
- }
6255
- };
6256
- }
6257
-
6258
- function overrideSnackbar$1(theme) {
6259
- theme.overrides.MuiSnackbar = {
6260
- anchorOriginBottomCenter: {
6261
- left: 0,
6262
- right: 0,
6263
- bottom: 0
6264
- }
6265
- };
6266
- theme.overrides.MuiSnackbarContent = {
6267
- root: {
6268
- width: '100%',
6269
- borderRadius: 0,
6270
- minHeight: theme.spacing(7.5),
6271
- [theme.breakpoints.up('sm')]: {
6272
- width: theme.spacing(54),
6273
- maxWidth: theme.spacing(54),
6274
- borderRadius: theme.spacing(0.5)
6275
- }
6276
- },
6277
- message: {
6278
- flex: 1,
6279
- display: 'flex'
6280
- }
6281
- };
6282
- }
6283
-
6284
- function overrideSvgIcon$1(theme) {
6285
- var sm = theme.breakpoints.up('sm');
6286
- theme.overrides.MuiSvgIcon = {
6287
- root: {
6288
- display: 'inherit',
6289
- fontSize: 'var(--mui-svg-icon-size, 32px)',
6290
- [sm]: {
6291
- fontSize: 'var(--mui-svg-icon-size, 24px)'
6292
- }
6293
- },
6294
- fontSizeSmall: {
6295
- fontSize: 'var(--mui-svg-icon-size, 24px)',
6296
- [sm]: {
6297
- fontSize: 'var(--mui-svg-icon-size, 16px)'
6298
- }
6299
- },
6300
- fontSizeLarge: {
6301
- fontSize: 'var(--mui-svg-icon-size, 32px)'
6302
- },
6303
- colorAction: {
6304
- color: Color$1.Dark100
6305
- }
6306
- };
6307
- }
6308
-
6309
- function overrideSwitch$1(theme) {
6310
- var sm = theme.breakpoints.up('sm');
6311
- theme.props.MuiSwitch = {
6312
- color: 'primary',
6313
- disableRipple: true,
6314
- disableFocusRipple: true
6315
- };
6316
- theme.overrides.MuiSwitch = {
6317
- root: {
6318
- width: theme.spacing(9.5),
6319
- height: theme.spacing(5.5),
6320
- padding: theme.spacing(0.75, 1.5),
6321
- [sm]: {
6322
- width: theme.spacing(8),
6323
- height: theme.spacing(4),
6324
- padding: theme.spacing(0.5, 1.5)
6325
- }
6326
- },
6327
- track: {
6328
- opacity: undefined,
6329
- boxShadow: "0 0 0 0 ".concat(Color$1.Transparent),
6330
- transition: theme.transitions.create(['box-shadow', 'background-color'], {
6331
- duration: theme.transitions.duration.shortest
6332
- }),
6333
- borderRadius: theme.spacing(2),
6334
- [sm]: {
6335
- borderRadius: theme.spacing(1.625)
6336
- }
6337
- },
6338
- thumb: {
6339
- color: Color$1.White,
6340
- boxShadow: undefined,
6341
- width: theme.spacing(3),
6342
- height: theme.spacing(3),
6343
- [sm]: {
6344
- width: theme.spacing(2),
6345
- height: theme.spacing(2)
6346
- }
6347
- },
6348
- switchBase: {
6349
- left: theme.spacing(1),
6350
- padding: theme.spacing(1.25, 1),
6351
- [sm]: {
6352
- padding: theme.spacing(1)
6353
- },
6354
- '&$checked': {
6355
- transform: "translateX(".concat(theme.spacing(2.5), "px)"),
6356
- [sm]: {
6357
- transform: "translateX(".concat(theme.spacing(2), "px)")
6358
- }
6359
- },
6360
- '&$checked + $track': {
6361
- opacity: undefined
6362
- },
6363
- '&$disabled + $track': {
6364
- opacity: undefined
6365
- }
6366
- },
6367
- colorPrimary: {
6368
- '&$checked': {
6369
- color: undefined,
6370
- '&:hover': {
6371
- backgroundColor: undefined,
6372
- '& + $track': {
6373
- backgroundColor: Color$1.Blue400
6374
- }
6375
- }
6376
- },
6377
- '& + $track': {
6378
- backgroundColor: Color$1.Silver500
6379
- },
6380
- '&$disabled + $track': {
6381
- backgroundColor: Color$1.Silver300
6382
- },
6383
- '&$checked$disabled + $track': {
6384
- backgroundColor: Color$1.Blue100
6385
- },
6386
- '&:hover + $track': {
6387
- backgroundColor: Color$1.Dark100
6388
- },
6389
- '&.Mui-focusVisible + $track': {
6390
- boxShadow: "0 0 0 3px ".concat(Color$1.Blue100)
6391
- }
6392
- }
6393
- };
6394
- }
6395
-
6396
- function overrideTabs$1(theme) {
6397
- theme.props.MuiTabs = {
6398
- variant: 'scrollable',
6399
- textColor: 'primary',
6400
- indicatorColor: 'primary'
6401
- };
6402
- theme.overrides.MuiTabs = {
6403
- root: {
6404
- minHeight: theme.spacing(6)
6405
- },
6406
- scrollButtons: {
6407
- opacity: 1,
6408
- color: Color$1.Dark100,
6409
- width: theme.spacing(4),
6410
- transition: theme.transitions.create('opacity', {
6411
- duration: theme.transitions.duration.short
6412
- })
6413
- }
6414
- };
6415
- theme.overrides.MuiTab = {
6416
- root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
6417
- minHeight: theme.spacing(6),
6418
- transition: theme.transitions.create(['color'], {
6419
- duration: theme.transitions.duration.short
6420
- }),
6421
- [theme.breakpoints.up('sm')]: {
6422
- minWidth: undefined,
6423
- fontSize: undefined,
6424
- padding: theme.spacing(0.75, 3)
6425
- }
6426
- }),
6427
- textColorPrimary: {
6428
- color: Color$1.Dark500,
6429
- '&:hover, &:focus': {
6430
- color: Color$1.Blue300
6431
- }
6432
- }
6433
- };
6434
- }
6435
-
6436
- var SelectIcon$1 = /*#__PURE__*/forwardRef((props, ref) => /*#__PURE__*/jsx(SvgIcon$1, _objectSpread(_objectSpread({
6437
- ref: ref
6438
- }, props), {}, {
6439
- children: /*#__PURE__*/jsx("path", {
6440
- d: "M12 16.5L6 9h12l-6 7.5z",
6441
- fill: "currentColor"
6442
- })
6443
- })));
6444
- if (process.env.NODE_ENV !== "production") SelectIcon$1.displayName = "SelectIcon";
6445
- function overrideTextField$1(theme) {
6446
- var sm = theme.breakpoints.up('sm');
6447
- theme.props.MuiTextField = {
6448
- minRows: 4,
6449
- maxRows: 4,
6450
- variant: 'outlined'
6451
- };
6452
- theme.overrides.MuiFormLabel = {
6453
- root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
6454
- color: Color$1.Dark400,
6455
- '&$error': {
6456
- color: undefined
6457
- },
6458
- '&$focused': {
6459
- color: undefined
6460
- },
6461
- '&$disabled': {
6462
- color: undefined
6463
- }
6464
- })
6465
- };
6466
- theme.overrides.MuiInputBase = {
6467
- root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
6468
- '&$disabled': {
6469
- backgroundColor: Color$1.Silver100
6470
- }
6471
- }),
6472
- input: {
6473
- textOverflow: 'ellipsis',
6474
- height: theme.spacing(3),
6475
- [sm]: {
6476
- height: theme.spacing(2.5)
6477
- }
6478
- },
6479
- inputMultiline: {
6480
- resize: 'vertical'
6481
- }
6482
- };
6483
- theme.props.MuiInputLabel = {
6484
- shrink: true
6485
- };
6486
- theme.overrides.MuiInputLabel = {
6487
- root: {
6488
- marginBottom: theme.spacing(0.5),
6489
- transformOrigin: undefined
6490
- },
6491
- formControl: {
6492
- top: undefined,
6493
- left: undefined,
6494
- position: undefined,
6495
- transform: undefined
6496
- },
6497
- shrink: {
6498
- transform: undefined,
6499
- transformOrigin: undefined
6500
- },
6501
- outlined: {
6502
- zIndex: undefined,
6503
- transform: undefined,
6504
- pointerEvents: undefined,
6505
- '&$shrink': {
6506
- transform: undefined
6507
- }
6508
- }
6509
- };
6510
- theme.props.MuiOutlinedInput = {
6511
- notched: false
6512
- };
6513
- theme.overrides.MuiOutlinedInput = {
6514
- root: {
6515
- '&:hover $notchedOutline': {
6516
- borderColor: undefined
6517
- }
6518
- },
6519
- input: {
6520
- padding: theme.spacing(1.25, 1.5),
6521
- [sm]: {
6522
- padding: theme.spacing(0.75, 1)
6523
- }
6524
- },
6525
- multiline: {
6526
- padding: theme.spacing(0.75, 1)
6527
- },
6528
- adornedStart: {
6529
- paddingLeft: theme.spacing(1)
6530
- },
6531
- adornedEnd: {
6532
- paddingRight: theme.spacing(1)
6533
- },
6534
- notchedOutline: {
6535
- top: 0,
6536
- borderColor: Color$1.Silver500,
6537
- '& legend': {
6538
- display: 'none'
6539
- }
6540
- }
6541
- };
6542
- theme.props.MuiSelect = {
6543
- IconComponent: SelectIcon$1
6544
- };
6545
- theme.overrides.MuiSelect = {
6546
- icon: {
6547
- top: 'calc(50% - 0.5em)',
6548
- '$disabled &': {
6549
- color: Color$1.Dark100
6550
- },
6551
- fontSize: theme.spacing(3),
6552
- [sm]: {
6553
- fontSize: theme.spacing(2)
6554
- }
6555
- },
6556
- iconOutlined: {
6557
- right: theme.spacing(1.5),
6558
- [sm]: {
6559
- right: theme.spacing(1)
6560
- }
6561
- },
6562
- select: {
6563
- '&:focus': {
6564
- backgroundColor: undefined
6565
- }
6566
- },
6567
- selectMenu: {
6568
- '&&': {
6569
- paddingRight: theme.spacing(4.5),
6570
- [sm]: {
6571
- right: theme.spacing(4)
6572
- }
6573
- }
6574
- }
6575
- };
6576
- theme.overrides.MuiInputAdornment = {
6577
- root: {
6578
- '& .MuiSvgIcon-root:not(.MuiSvgIcon-fontSizeSmall)': {
6579
- fontSize: theme.spacing(3),
6580
- [sm]: {
6581
- fontSize: theme.spacing(2.5)
6582
- }
6583
- },
6584
- '& .MuiIconButton-root': {
6585
- padding: theme.spacing(1)
6586
- }
6587
- },
6588
- positionStart: {
6589
- '& .MuiIconButton-root': {
6590
- marginLeft: theme.spacing(-0.5),
6591
- [sm]: {
6592
- marginLeft: theme.spacing(-0.75)
6593
- }
6594
- }
6595
- },
6596
- positionEnd: {
6597
- '& .MuiIconButton-root': {
6598
- marginRight: theme.spacing(-0.5),
6599
- [sm]: {
6600
- marginRight: theme.spacing(-0.75)
6601
- }
6602
- }
6603
- }
6604
- };
6605
- theme.overrides.MuiFormHelperText = {
6606
- root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
6607
- marginTop: theme.spacing(0.5)
6608
- }),
6609
- contained: {
6610
- marginLeft: undefined,
6611
- marginRight: undefined
6612
- }
6613
- };
6614
- }
6615
-
6616
- function overrideToolbar$1(theme) {
6617
- theme.overrides.MuiToolbar = {
6618
- regular: {
6619
- minHeight: theme.spacing(8)
6620
- },
6621
- gutters: {
6622
- [theme.breakpoints.up('sm')]: {
6623
- paddingLeft: theme.spacing(2),
6624
- paddingRight: theme.spacing(2)
6625
- }
6626
- }
6627
- };
6628
- }
6629
-
6630
- function overrideTooltip$1(theme) {
6631
- theme.props.MuiTooltip = {
6632
- arrow: true
6633
- };
6634
- theme.overrides.MuiTooltip = {
6635
- tooltip: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
6636
- padding: theme.spacing(1, 1.5),
6637
- backgroundColor: Color$1.Dark400
6638
- }),
6639
- popperArrow: {
6640
- '&[x-placement*="top"] $arrow': {
6641
- '&::before': {
6642
- borderBottomRightRadius: 2
6643
- }
6644
- },
6645
- '&[x-placement*="left"] $arrow': {
6646
- '&::before': {
6647
- borderTopRightRadius: 2
6648
- }
6649
- },
6650
- '&[x-placement*="right"] $arrow': {
6651
- '&::before': {
6652
- borderBottomLeftRadius: 2
6653
- }
6654
- },
6655
- '&[x-placement*="bottom"] $arrow': {
6656
- '&::before': {
6657
- borderTopLeftRadius: 2
6658
- }
6659
- }
6660
- },
6661
- arrow: {
6662
- color: Color$1.Dark400,
6663
- fontSize: theme.spacing(1)
6664
- }
6665
- };
6666
- }
6667
-
6668
- function createTypographyOptions$1(breakpoints) {
6669
- var xsOnly = breakpoints.only('xs');
6670
- return {
6671
- fontSize: 14,
6672
- fontWeightLight: 300,
6673
- fontWeightRegular: 400,
6674
- fontWeightMedium: 500,
6675
- fontWeightBold: 600,
6676
- fontFamily: '"Inter", sans-serif',
6677
- h1: {
6678
- fontSize: '32px',
6679
- lineHeight: '40px',
6680
- fontWeight: 700,
6681
- [xsOnly]: {
6682
- fontSize: '28px',
6683
- lineHeight: '36px'
6684
- }
6685
- },
6686
- h2: {
6687
- fontSize: '24px',
6688
- lineHeight: '28px',
6689
- fontWeight: 500,
6690
- [xsOnly]: {
6691
- fontSize: '22px',
6692
- lineHeight: '26px'
6693
- }
6694
- },
6695
- h3: {
6696
- fontSize: '20px',
6697
- lineHeight: '28px',
6698
- fontWeight: 500,
6699
- [xsOnly]: {
6700
- fontSize: '20px',
6701
- lineHeight: '26px'
6702
- }
6703
- },
6704
- h4: {
6705
- fontSize: '16px',
6706
- lineHeight: '24px',
6707
- fontWeight: 500,
6708
- [xsOnly]: {
6709
- fontSize: '17px',
6710
- lineHeight: '26px'
6711
- }
6712
- },
6713
- h5: {
6714
- fontSize: '14px',
6715
- lineHeight: '20px',
6716
- fontWeight: 600,
6717
- [xsOnly]: {
6718
- fontSize: '16px',
6719
- lineHeight: '24px'
6720
- }
6721
- },
6722
- h6: {
6723
- fontSize: '12px',
6724
- lineHeight: '16px',
6725
- fontWeight: 700,
6726
- letterSpacing: '0.1em',
6727
- textTransform: 'uppercase',
6728
- [xsOnly]: {
6729
- fontSize: '14px',
6730
- lineHeight: '20px'
6731
- }
6732
- },
6733
- body1: {
6734
- fontSize: '14px',
6735
- lineHeight: '20px',
6736
- fontWeight: 600,
6737
- [xsOnly]: {
6738
- fontSize: '16px',
6739
- lineHeight: '24px'
6740
- }
6741
- },
6742
- body2: {
6743
- fontSize: '14px',
6744
- lineHeight: '20px',
6745
- fontWeight: 400,
6746
- [xsOnly]: {
6747
- fontSize: '16px',
6748
- lineHeight: '24px'
6749
- }
6750
- },
6751
- caption: {
6752
- fontSize: '12px',
6753
- lineHeight: '16px',
6754
- fontWeight: 400,
6755
- [xsOnly]: {
6756
- fontSize: '14px',
6757
- lineHeight: '20px'
6758
- }
6759
- },
6760
- button: {
6761
- fontSize: '14px',
6762
- lineHeight: '20px',
6763
- fontWeight: 600,
6764
- textTransform: undefined,
6765
- [xsOnly]: {
6766
- fontSize: '16px',
6767
- lineHeight: '24px'
6768
- }
6769
- }
6770
- };
6771
- }
6772
- function overrideTypography$1(theme) {
6773
- theme.props.MuiTypography = {
6774
- variant: 'body2'
6775
- };
6776
- }
6777
-
6778
- function createSuperDispatchTheme$1() {
6779
- var breakpoints = createBreakpoints$1({});
6780
- var theme = createTheme$1({
6781
- breakpoints,
6782
- palette: {
6783
- primary: {
6784
- main: Color$1.Blue300
6785
- },
6786
- error: {
6787
- main: Color$1.Red300
6788
- },
6789
- action: {
6790
- hover: Color$1.Silver100,
6791
- selected: Color$1.Silver300,
6792
- disabled: Color$1.Silver400
6793
- },
6794
- text: {
6795
- primary: Color$1.Dark500,
6796
- secondary: Color$1.Dark200,
6797
- hint: Color$1.Dark100,
6798
- disabled: Color$1.Dark100
6799
- },
6800
- divider: Color$1.Silver400
6801
- },
6802
- typography: createTypographyOptions$1(breakpoints),
6803
- props: {},
6804
- overrides: {}
6805
- });
6806
- overrideAppBar$1(theme);
6807
- overrideAutocomplete$1(theme);
6808
- overrideAvatar$1(theme);
6809
- overrideButton$1(theme);
6810
- overrideCard$1(theme);
6811
- overrideCheckbox$1(theme);
6812
- overrideChip$1(theme);
6813
- overrideDialog$1(theme);
6814
- overrideDrawer$1(theme);
6815
- overrideIconButton$1(theme);
6816
- overrideLink$1(theme);
6817
- overrideList$1(theme);
6818
- overrideMenu$1(theme);
6819
- overridePaper$1(theme);
6820
- overrideRadio$1(theme);
6821
- overrideSnackbar$1(theme);
6822
- overrideSvgIcon$1(theme);
6823
- overrideSwitch$1(theme);
6824
- overrideTabs$1(theme);
6825
- overrideTextField$1(theme);
6826
- overrideToolbar$1(theme);
6827
- overrideTooltip$1(theme);
6828
- overrideTypography$1(theme);
6829
- overridePagination$1(theme);
6830
- return theme;
6831
- }
6832
-
6833
- var generateMaterialClassName$1 = /*#__PURE__*/createGenerateClassName$1();
6834
-
6835
- function generateClassName$1(rule, sheet) {
6836
- var {
6837
- meta,
6838
- link
6839
- } = (sheet === null || sheet === void 0 ? void 0 : sheet.options) || {};
6840
-
6841
- if (meta && rule.type === 'style') {
6842
- if (meta.startsWith('SD-')) {
6843
- return "".concat(meta, "-").concat(rule.key);
6844
- }
6845
-
6846
- if (meta.startsWith('Mui')) {
6847
- var isPseudoClass = ['checked', 'disabled', 'error', 'focused', 'focusVisible', 'required', 'expanded', 'selected'].includes(rule.key);
6848
-
6849
- if (isPseudoClass) {
6850
- return "Mui-".concat(rule.key);
6851
- }
6852
-
6853
- if (!link) {
6854
- return "".concat(meta, "-").concat(rule.key);
6855
- }
6856
- }
6857
- }
6858
-
6859
- return generateMaterialClassName$1(rule, sheet);
6860
- }
6861
-
6862
- function ThemeProvider$1(_ref) {
6863
- var {
6864
- modifier,
6865
- children,
6866
- injectFirst = true
6867
- } = _ref;
6868
- var theme = useConstant(() => {
6869
- var nextTheme = createSuperDispatchTheme$1();
6870
- return !modifier ? nextTheme : modifier(nextTheme);
6871
- });
6872
- return /*#__PURE__*/jsx(StylesProvider$1, {
6873
- injectFirst: injectFirst,
6874
- generateClassName: generateClassName$1,
6875
- children: /*#__PURE__*/jsxs(ThemeProvider$3, {
6876
- theme: theme,
6877
- children: [/*#__PURE__*/jsx(CssBaseline$1, {}), /*#__PURE__*/jsx(ThemeProvider$4, {
6878
- theme: theme,
6879
- children: /*#__PURE__*/jsx(ResponsiveContextProvider$1, {
6880
- children: /*#__PURE__*/jsx(SnackbarStackProvider$1, {
6881
- children: children
6882
- })
6883
- })
6884
- })]
6885
- })
6886
- });
6887
- }
6888
-
6889
- var PREVENT_COLLAPSE$1 = 1;
6890
-
6891
- function spaceVariant$1(theme, space) {
6892
- var gap = theme.spacing(space);
6893
- return {
6894
- '&:before': {
6895
- marginTop: -gap - PREVENT_COLLAPSE$1
6896
- },
6897
- '& > $container': {
6898
- marginLeft: -gap,
6899
- '& > $child > $childContainer': {
6900
- marginTop: gap,
6901
- marginLeft: gap
6902
- }
6903
- }
6904
- };
6905
- }
6906
-
6907
- function columnVariant$1(columns) {
6908
- return {
6909
- flex: "0 0 ".concat(100 / columns, "%")
6910
- };
6911
- }
6912
-
6913
- var useStyles$f = /*#__PURE__*/makeStyles$1(theme => ({
6914
- root: {
6915
- paddingTop: PREVENT_COLLAPSE$1,
6916
- '&:before': {
6917
- content: '""',
6918
- display: 'block',
6919
- marginTop: -PREVENT_COLLAPSE$1
6920
- }
6921
- },
6922
- container: {
6923
- display: 'flex',
6924
- flexWrap: 'wrap'
6925
- },
6926
- child: {
6927
- minWidth: 0
6928
- },
6929
- childContainer: {
6930
- height: '100%'
6931
- },
6932
- space1: spaceVariant$1(theme, 1),
6933
- space2: spaceVariant$1(theme, 2),
6934
- space3: spaceVariant$1(theme, 3),
6935
- space4: spaceVariant$1(theme, 4),
6936
- space5: spaceVariant$1(theme, 5),
6937
- space6: spaceVariant$1(theme, 6),
6938
- space7: spaceVariant$1(theme, 7),
6939
- space8: spaceVariant$1(theme, 8),
6940
- space9: spaceVariant$1(theme, 9),
6941
- space10: spaceVariant$1(theme, 10),
6942
- columns1: columnVariant$1(1),
6943
- columns2: columnVariant$1(2),
6944
- columns3: columnVariant$1(3),
6945
- columns4: columnVariant$1(4),
6946
- columns5: columnVariant$1(5),
6947
- columns6: columnVariant$1(6)
6948
- }), {
6949
- name: 'SD-Tiles'
6950
- });
6951
- var Tiles$1 = /*#__PURE__*/forwardRef((_ref, ref) => {
6952
- var {
6953
- children,
6954
- space: spaceProp = 1,
6955
- columns: columnsProp = 1
6956
- } = _ref;
6957
- var styles = useStyles$f({});
6958
- var space = useResponsivePropRecord$1(spaceProp);
6959
- var columns = useResponsivePropRecord$1(columnsProp);
6960
- return /*#__PURE__*/jsx("div", {
6961
- ref: ref,
6962
- className: clsx(styles.root, space === 1 && styles.space1, space === 2 && styles.space2, space === 3 && styles.space3, space === 4 && styles.space4, space === 5 && styles.space5, space === 6 && styles.space6, space === 7 && styles.space7, space === 8 && styles.space8, space === 9 && styles.space9, space === 10 && styles.space10),
6963
- children: /*#__PURE__*/jsx("div", {
6964
- className: styles.container,
6965
- children: flattenChildren(children).map((child, idx) => /*#__PURE__*/jsx("div", {
6966
- className: clsx(styles.child, columns === 1 && styles.columns1, columns === 2 && styles.columns2, columns === 3 && styles.columns3, columns === 4 && styles.columns4, columns === 5 && styles.columns5, columns === 6 && styles.columns6),
6967
- children: /*#__PURE__*/jsx("div", {
6968
- className: styles.childContainer,
6969
- children: child
6970
- })
6971
- }, idx))
6972
- })
6973
- });
6974
- });
6975
- if (process.env.NODE_ENV !== "production") Tiles$1.displayName = "Tiles";
6976
-
6977
- export { AdaptiveToolbar$1 as AdaptiveToolbar, AvatarButton$1 as AvatarButton, Button$1 as Button, CardButton$1 as CardButton, CheckboxField$1 as CheckboxField, CheckboxGroupField$1 as CheckboxGroupField, Color$1 as Color, Column$1 as Column, Columns$1 as Columns, DescriptionList$1 as DescriptionList, DescriptionListItem$1 as DescriptionListItem, DrawerActions$1 as DrawerActions, DrawerContent$1 as DrawerContent, DrawerList$1 as DrawerList, DrawerTitle$1 as DrawerTitle, GridStack$1 as GridStack, InfoCard$1 as InfoCard, Inline$1 as Inline, InlineGrid$1 as InlineGrid, OverflowText$1 as OverflowText, RadioField$1 as RadioField, RadioGroupField$1 as RadioGroupField, ResponsiveContextProvider$1 as ResponsiveContextProvider, Snackbar$1 as Snackbar, SnackbarContent$1 as SnackbarContent, SnackbarStackConsumer$1 as SnackbarStackConsumer, SnackbarStackProvider$1 as SnackbarStackProvider, Stack$1 as Stack, Tag$1 as Tag, ThemeProvider$1 as ThemeProvider, Tiles$1 as Tiles, VisibilityObserver$1 as VisibilityObserver, assignRef$1 as assignRef, isColorProp$1 as isColorProp, isEmptyReactNode$1 as isEmptyReactNode, mergeRefs$1 as mergeRefs, parseAlignProp$1 as parseAlignProp, parseCollapsedBelow$1 as parseCollapsedBelow, parseResponsiveProp$1 as parseResponsiveProp, parseSpaceProp$1 as parseSpaceProp, renderChildren$1 as renderChildren, useCollapseBreakpoint, useResponsiveContext$1 as useResponsiveContext, useResponsiveProp$1 as useResponsiveProp, useResponsivePropRecord$1 as useResponsivePropRecord, useResponsiveValue$1 as useResponsiveValue, useSnackbarStack$1 as useSnackbarStack, useUID$1 as useUID, useVisibilityObserver$1 as useVisibilityObserver, index as v5 };
3500
+ export { AdaptiveToolbar, AvatarButton, Button, CardButton, CheckboxField, CheckboxGroupField, Color, Column, Columns, DescriptionList, DescriptionListItem, DrawerActions, DrawerContent, DrawerList, DrawerTitle, GridStack, InfoCard, Inline, InlineGrid, OverflowText, RadioField, RadioGroupField, Snackbar, SnackbarContent, SnackbarStackConsumer, SnackbarStackProvider, Stack, Tag, ThemeProvider, Tiles, VisibilityObserver, assignRef, isColorProp, isEmptyReactNode, mergeRefs, parseAlignProp, parseCollapsedBelow, parseResponsiveProp, parseSpaceProp, renderChildren, useResponsiveProp, useResponsivePropRecord, useResponsiveValue, useSnackbarStack, useUID, useVisibilityObserver };
6978
3501
  //# sourceMappingURL=index.js.map