@superdispatch/ui 0.25.2 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist-node/index.js +273 -391
  2. package/dist-node/index.js.map +1 -1
  3. package/dist-src/adaptive-toolbar/AdaptiveToolbar.js +6 -15
  4. package/dist-src/adaptive-vertical-toolbar/AdaptiveVerticalToolbar.js +3 -10
  5. package/dist-src/autocomplete/AutocompleteOverrides.js +2 -1
  6. package/dist-src/avatar-button/AvatarButton.js +28 -31
  7. package/dist-src/button/Button.js +9 -12
  8. package/dist-src/button/ButtonOverrides.js +0 -6
  9. package/dist-src/card-button/CardButton.js +12 -15
  10. package/dist-src/checkbox/CheckboxField.js +10 -12
  11. package/dist-src/checkbox/CheckboxGroudField.js +9 -11
  12. package/dist-src/checkbox/CheckboxOverrides.js +1 -2
  13. package/dist-src/columns/Column.js +0 -13
  14. package/dist-src/columns/Columns.js +0 -2
  15. package/dist-src/description-list/DescriptionList.js +10 -12
  16. package/dist-src/drawer/DrawerActions.js +5 -8
  17. package/dist-src/drawer/DrawerContent.js +3 -4
  18. package/dist-src/drawer/DrawerList.js +3 -6
  19. package/dist-src/drawer/DrawerTitle.js +10 -13
  20. package/dist-src/dropdown-button/DropdownButton.js +9 -21
  21. package/dist-src/grid/GridStack.js +4 -6
  22. package/dist-src/grid/InlineGrid.js +6 -8
  23. package/dist-src/info-card/InfoCard.js +17 -19
  24. package/dist-src/info-tooltip/InfoTooltip.js +11 -14
  25. package/dist-src/inline/Inline.js +0 -2
  26. package/dist-src/link/LinkOverrides.js +0 -2
  27. package/dist-src/number-field/NumberField.js +17 -23
  28. package/dist-src/overflow-text/OverflowText.js +13 -15
  29. package/dist-src/pagination/PaginationOverrides.js +2 -1
  30. package/dist-src/pattern-field/PatternField.js +10 -10
  31. package/dist-src/props/AlignProps.js +0 -2
  32. package/dist-src/props/ResponsiveProp.js +0 -1
  33. package/dist-src/props/SpaceProp.js +0 -7
  34. package/dist-src/radio/RadioField.js +10 -12
  35. package/dist-src/radio/RadioFieldCard.js +11 -13
  36. package/dist-src/radio/RadioGroupField.js +12 -14
  37. package/dist-src/radio/RadioOverrides.js +1 -2
  38. package/dist-src/responsive/CollapseBreakpoint.js +0 -2
  39. package/dist-src/responsive/MinBreakpoint.js +0 -2
  40. package/dist-src/responsive/ResponsiveContext.js +0 -2
  41. package/dist-src/snackbar/Snackbar.js +10 -14
  42. package/dist-src/snackbar/SnackbarContent.js +19 -23
  43. package/dist-src/snackbar/SnackbarStack.js +13 -20
  44. package/dist-src/stack/Stack.js +0 -2
  45. package/dist-src/tag/Tag.js +10 -11
  46. package/dist-src/theme/Color.js +0 -2
  47. package/dist-src/theme/ThemeProvider.js +1 -12
  48. package/dist-src/tiles/Tiles.js +0 -3
  49. package/dist-src/utils/ResizeObserver.js +0 -1
  50. package/dist-src/utils/VisibilityObserver.js +4 -6
  51. package/dist-src/utils/mergeRefs.js +0 -1
  52. package/dist-src/utils/renderChildren.js +2 -2
  53. package/dist-web/index.js +272 -392
  54. package/dist-web/index.js.map +1 -1
  55. package/package.json +2 -2
@@ -8,9 +8,7 @@ import { forwardRef, useRef, useState } from 'react';
8
8
  import { Button } from "../button/Button.js";
9
9
  import { DropdownButton } from "../dropdown-button/DropdownButton.js";
10
10
  import { useResizeObserver } from "../utils/ResizeObserver.js";
11
- import { jsx as _jsx } from "react/jsx-runtime";
12
- import { Fragment as _Fragment } from "react/jsx-runtime";
13
- import { jsxs as _jsxs } from "react/jsx-runtime";
11
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
14
12
  var useStyles = /*#__PURE__*/makeStyles({
15
13
  actions: {
16
14
  overflow: 'hidden'
@@ -20,10 +18,9 @@ var useStyles = /*#__PURE__*/makeStyles({
20
18
  });
21
19
  export var AdaptiveToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
22
20
  var {
23
- items
24
- } = _ref,
25
- props = _objectWithoutProperties(_ref, _excluded);
26
-
21
+ items
22
+ } = _ref,
23
+ props = _objectWithoutProperties(_ref, _excluded);
27
24
  var styles = useStyles();
28
25
  var itemNodes = useRef([]);
29
26
  var optionsButtonRef = useRef(null);
@@ -33,7 +30,6 @@ export var AdaptiveToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
33
30
  var [rootNode, setRootNode] = useState(null);
34
31
  useResizeObserver(rootNode, node => {
35
32
  var _optionsButtonRef$cur;
36
-
37
33
  var rootRect = node.getBoundingClientRect();
38
34
  var rootWidth = rootRect.left + rootRect.width;
39
35
  var optionsButtonRect = (_optionsButtonRef$cur = optionsButtonRef.current) === null || _optionsButtonRef$cur === void 0 ? void 0 : _optionsButtonRef$cur.getBoundingClientRect();
@@ -43,21 +39,19 @@ export var AdaptiveToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
43
39
  var hiddenIdx = mountedNodes.findIndex((itemNode, idx) => {
44
40
  itemNode.removeAttribute('hidden');
45
41
  var itemRect = itemNode.getBoundingClientRect();
46
- var itemRightPosition = itemRect.left + itemRect.width; // Ignore options button width when checking last item.
42
+ var itemRightPosition = itemRect.left + itemRect.width;
47
43
 
44
+ // Ignore options button width when checking last item.
48
45
  if (idx === mountedNodes.length - 1) {
49
46
  return itemRightPosition > rootWidth;
50
47
  }
51
-
52
48
  return itemRightPosition > maxRightPosition;
53
49
  });
54
-
55
50
  if (hiddenIdx !== -1) {
56
51
  mountedNodes.slice(hiddenIdx).forEach(itemNode => {
57
52
  itemNode.setAttribute('hidden', 'true');
58
53
  });
59
54
  }
60
-
61
55
  setFirstHiddenIdx(hiddenIdx);
62
56
  });
63
57
  return /*#__PURE__*/_jsx(Toolbar, _objectSpread(_objectSpread({}, props), {}, {
@@ -121,13 +115,11 @@ export var AdaptiveToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
121
115
  },
122
116
  children: menuItems.map((item, index, arr) => {
123
117
  var _item$dropdown;
124
-
125
118
  var next = arr[index + 1];
126
119
  return /*#__PURE__*/_jsxs(_Fragment, {
127
120
  children: [/*#__PURE__*/_jsx(MenuItem, {
128
121
  onClick: event => {
129
122
  var _item$onClick;
130
-
131
123
  (_item$onClick = item.onClick) === null || _item$onClick === void 0 ? void 0 : _item$onClick.call(item, event);
132
124
  setMenuButtonRef(undefined);
133
125
  },
@@ -135,7 +127,6 @@ export var AdaptiveToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
135
127
  }, item.key), (_item$dropdown = item.dropdown) === null || _item$dropdown === void 0 ? void 0 : _item$dropdown.map(dropdownItem => /*#__PURE__*/_jsx(MenuItem, {
136
128
  onClick: event => {
137
129
  var _dropdownItem$onClick;
138
-
139
130
  (_dropdownItem$onClick = dropdownItem.onClick) === null || _dropdownItem$onClick === void 0 ? void 0 : _dropdownItem$onClick.call(dropdownItem, event);
140
131
  setMenuButtonRef(undefined);
141
132
  },
@@ -5,8 +5,7 @@ import { cloneElement, forwardRef, useRef, useState } from 'react';
5
5
  import { Button } from "../button/Button.js";
6
6
  import { mergeRefs } from "../utils/mergeRefs.js";
7
7
  import { useResizeObserver } from "../utils/ResizeObserver.js";
8
- import { jsx as _jsx } from "react/jsx-runtime";
9
- import { jsxs as _jsxs } from "react/jsx-runtime";
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
9
  var useStyles = /*#__PURE__*/makeStyles({
11
10
  root: {
12
11
  overflow: 'hidden',
@@ -15,12 +14,10 @@ var useStyles = /*#__PURE__*/makeStyles({
15
14
  }, {
16
15
  name: 'SD-AdaptiveVerticalToolbar'
17
16
  });
18
-
19
17
  var defaultMoreElement = /*#__PURE__*/_jsx(Button, {
20
18
  type: "button",
21
19
  children: /*#__PURE__*/_jsx(MoreHoriz, {})
22
20
  });
23
-
24
21
  export var AdaptiveVerticalToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
25
22
  var {
26
23
  items,
@@ -38,7 +35,6 @@ export var AdaptiveVerticalToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
38
35
  var [rootNode, setRootNode] = useState(null);
39
36
  useResizeObserver(rootNode, node => {
40
37
  var _optionsButtonRef$cur;
41
-
42
38
  var rootRect = node.getBoundingClientRect();
43
39
  var rootHeight = rootRect.bottom;
44
40
  var optionsButtonRect = (_optionsButtonRef$cur = optionsButtonRef.current) === null || _optionsButtonRef$cur === void 0 ? void 0 : _optionsButtonRef$cur.getBoundingClientRect();
@@ -47,21 +43,19 @@ export var AdaptiveVerticalToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
47
43
  var mountedNodes = itemNodes.current.filter(x => x != null);
48
44
  var hiddenIdx = mountedNodes.findIndex((itemNode, idx) => {
49
45
  itemNode.removeAttribute('hidden');
50
- var itemRect = itemNode.getBoundingClientRect(); // Ignore options button height when checking last item.
46
+ var itemRect = itemNode.getBoundingClientRect();
51
47
 
48
+ // Ignore options button height when checking last item.
52
49
  if (idx === mountedNodes.length - 1) {
53
50
  return itemRect.bottom > rootHeight;
54
51
  }
55
-
56
52
  return itemRect.bottom > maxBottomPosition;
57
53
  });
58
-
59
54
  if (hiddenIdx !== -1) {
60
55
  mountedNodes.slice(hiddenIdx).forEach(itemNode => {
61
56
  itemNode.setAttribute('hidden', 'true');
62
57
  });
63
58
  }
64
-
65
59
  setFirstHiddenIdx(hiddenIdx);
66
60
  });
67
61
  return /*#__PURE__*/_jsxs(Grid, {
@@ -101,7 +95,6 @@ export var AdaptiveVerticalToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
101
95
  return [/*#__PURE__*/_jsx(MenuItem, {
102
96
  onClick: event => {
103
97
  var _item$onClick;
104
-
105
98
  (_item$onClick = item.onClick) === null || _item$onClick === void 0 ? void 0 : _item$onClick.call(item, event);
106
99
  setMenuButtonRef(undefined);
107
100
  },
@@ -2,8 +2,9 @@ import _objectSpread from "@babel/runtime/helpers/objectSpread2";
2
2
  import { SvgIcon } from '@material-ui/core';
3
3
  import { jsx as _jsx } from "react/jsx-runtime";
4
4
  export function overrideAutocomplete(theme) {
5
- var sm = theme.breakpoints.up('sm'); // Remove `Object.assign` after official release of `Autocomplete`.
5
+ var sm = theme.breakpoints.up('sm');
6
6
 
7
+ // Remove `Object.assign` after official release of `Autocomplete`.
7
8
  Object.assign(theme.props, {
8
9
  MuiAutocomplete: {
9
10
  popupIcon: /*#__PURE__*/_jsx(SvgIcon, {
@@ -1,14 +1,13 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
2
2
  import _objectSpread from "@babel/runtime/helpers/objectSpread2";
3
3
  var _excluded = ["size", "icon", "isLoading", "classes", "disabled", "avatarRef", "className", "alt", "imgProps", "sizes", "src", "srcSet", "variant", "children"],
4
- _excluded2 = ["button", "overlay", "progress", "withIcon", "sizeLarge"];
4
+ _excluded2 = ["button", "overlay", "progress", "withIcon", "sizeLarge"];
5
5
  import { Avatar, ButtonBase, CircularProgress } from '@material-ui/core';
6
6
  import { makeStyles } from '@material-ui/styles';
7
7
  import clsx from 'clsx';
8
8
  import { forwardRef } from 'react';
9
9
  import { Color } from "../theme/Color.js";
10
- import { jsx as _jsx } from "react/jsx-runtime";
11
- import { jsxs as _jsxs } from "react/jsx-runtime";
10
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
11
  var useStyles = /*#__PURE__*/makeStyles(theme => {
13
12
  var sm = theme.breakpoints.up('sm');
14
13
  return {
@@ -103,35 +102,33 @@ var useStyles = /*#__PURE__*/makeStyles(theme => {
103
102
  });
104
103
  export var AvatarButton = /*#__PURE__*/forwardRef((_ref, ref) => {
105
104
  var {
106
- size,
107
- icon,
108
- isLoading = false,
109
- classes,
110
- disabled = false,
111
- avatarRef,
112
- className,
113
- alt,
114
- imgProps,
115
- sizes,
116
- src,
117
- srcSet,
118
- variant,
119
- children
120
- } = _ref,
121
- props = _objectWithoutProperties(_ref, _excluded);
122
-
105
+ size,
106
+ icon,
107
+ isLoading = false,
108
+ classes,
109
+ disabled = false,
110
+ avatarRef,
111
+ className,
112
+ alt,
113
+ imgProps,
114
+ sizes,
115
+ src,
116
+ srcSet,
117
+ variant,
118
+ children
119
+ } = _ref,
120
+ props = _objectWithoutProperties(_ref, _excluded);
123
121
  var _useStyles = useStyles({
124
- classes
125
- }),
126
- {
127
- button: buttonClassName,
128
- overlay: overlayClassName,
129
- progress: progressClassName,
130
- withIcon: withIconClassName,
131
- sizeLarge: sizeLargeClassName
132
- } = _useStyles,
133
- avatarClasses = _objectWithoutProperties(_useStyles, _excluded2);
134
-
122
+ classes
123
+ }),
124
+ {
125
+ button: buttonClassName,
126
+ overlay: overlayClassName,
127
+ progress: progressClassName,
128
+ withIcon: withIconClassName,
129
+ sizeLarge: sizeLargeClassName
130
+ } = _useStyles,
131
+ avatarClasses = _objectWithoutProperties(_useStyles, _excluded2);
135
132
  return /*#__PURE__*/_jsxs(ButtonBase, _objectSpread(_objectSpread({}, props), {}, {
136
133
  ref: ref,
137
134
  "aria-busy": isLoading,
@@ -3,20 +3,17 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  var _excluded = ["size", "children", "disabled", "isActive", "isLoading", "color"];
4
4
  import { Button as MaterialButton, CircularProgress } from '@material-ui/core';
5
5
  import { forwardRef } from 'react';
6
- import { jsx as _jsx } from "react/jsx-runtime";
7
- import { Fragment as _Fragment } from "react/jsx-runtime";
8
- import { jsxs as _jsxs } from "react/jsx-runtime";
6
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
9
7
  export var Button = /*#__PURE__*/forwardRef((_ref, ref) => {
10
8
  var {
11
- size,
12
- children,
13
- disabled,
14
- isActive,
15
- isLoading,
16
- color = 'primary'
17
- } = _ref,
18
- props = _objectWithoutProperties(_ref, _excluded);
19
-
9
+ size,
10
+ children,
11
+ disabled,
12
+ isActive,
13
+ isLoading,
14
+ color = 'primary'
15
+ } = _ref,
16
+ props = _objectWithoutProperties(_ref, _excluded);
20
17
  return /*#__PURE__*/_jsx(MaterialButton, _objectSpread(_objectSpread({}, props), {}, {
21
18
  ref: ref,
22
19
  size: size,
@@ -1,11 +1,9 @@
1
1
  import { Color } from "../theme/Color.js";
2
-
3
2
  function outlineShadow() {
4
3
  var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
5
4
  var color = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Color.Transparent;
6
5
  return "0 0 0 ".concat(size, "px ").concat(color);
7
6
  }
8
-
9
7
  function textVariant(text, outline, background, progress) {
10
8
  return {
11
9
  color: text,
@@ -31,12 +29,10 @@ function textVariant(text, outline, background, progress) {
31
29
  }
32
30
  };
33
31
  }
34
-
35
32
  function outlinedBorder(borderColor) {
36
33
  var outlineColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Color.Transparent;
37
34
  return "inset 0 0 0 1px ".concat(borderColor, ", 0 0 0 2px ").concat(outlineColor);
38
35
  }
39
-
40
36
  function outlinedVariant(staleText, staleBorder, disabledText, disabledBorder, activeText, activeBorder, activeOutline, activeBackground, progress, backgroundColor) {
41
37
  return {
42
38
  backgroundColor,
@@ -67,7 +63,6 @@ function outlinedVariant(staleText, staleBorder, disabledText, disabledBorder, a
67
63
  }
68
64
  };
69
65
  }
70
-
71
66
  function containedVariant(text, backgroundColor, outline, active, disabledText, disabledBackground) {
72
67
  return {
73
68
  color: text,
@@ -89,7 +84,6 @@ function containedVariant(text, backgroundColor, outline, active, disabledText,
89
84
  }
90
85
  };
91
86
  }
92
-
93
87
  export function overrideButton(theme) {
94
88
  var sm = theme.breakpoints.up('sm');
95
89
  theme.props.MuiButton = {
@@ -6,9 +6,7 @@ import { makeStyles } from '@material-ui/styles';
6
6
  import clsx from 'clsx';
7
7
  import { forwardRef } from 'react';
8
8
  import { Color } from "../theme/Color.js";
9
- import { jsx as _jsx } from "react/jsx-runtime";
10
- import { jsxs as _jsxs } from "react/jsx-runtime";
11
- import { Fragment as _Fragment } from "react/jsx-runtime";
9
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
12
10
  var useStyles = /*#__PURE__*/makeStyles(theme => ({
13
11
  root: {
14
12
  width: '100%',
@@ -82,18 +80,17 @@ var useStyles = /*#__PURE__*/makeStyles(theme => ({
82
80
  });
83
81
  export var CardButton = /*#__PURE__*/forwardRef((_ref, ref) => {
84
82
  var {
85
- hint,
86
- size,
87
- error,
88
- classes,
89
- className,
90
- children,
91
- endIcon,
92
- startIcon,
93
- disabled
94
- } = _ref,
95
- props = _objectWithoutProperties(_ref, _excluded);
96
-
83
+ hint,
84
+ size,
85
+ error,
86
+ classes,
87
+ className,
88
+ children,
89
+ endIcon,
90
+ startIcon,
91
+ disabled
92
+ } = _ref,
93
+ props = _objectWithoutProperties(_ref, _excluded);
97
94
  var styles = useStyles({
98
95
  classes
99
96
  });
@@ -5,8 +5,7 @@ import { Checkbox, FormControl as FormControlMui, FormControlLabel, FormHelperTe
5
5
  import { forwardRef } from 'react';
6
6
  import styled from 'styled-components';
7
7
  import { Color } from "../theme/Color.js";
8
- import { jsx as _jsx } from "react/jsx-runtime";
9
- import { jsxs as _jsxs } from "react/jsx-runtime";
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
9
  var FormControl = /*#__PURE__*/styled(FormControlMui).withConfig({
11
10
  displayName: "CheckboxField__FormControl",
12
11
  componentId: "SD__sc-1wxu0g6-0"
@@ -17,16 +16,15 @@ var FormHelperText = /*#__PURE__*/styled(FormHelperTextMui).withConfig({
17
16
  })(["color:", ";margin-left:30px;margin-top:0;margin-bottom:4px;&.Mui-error{color:", ";}"], Color.Dark300, Color.Red500);
18
17
  export var CheckboxField = /*#__PURE__*/forwardRef((_ref, ref) => {
19
18
  var {
20
- label,
21
- error,
22
- checked,
23
- onBlur,
24
- onChange,
25
- helperText,
26
- FormControlLabelProps: formControlLabelProps
27
- } = _ref,
28
- props = _objectWithoutProperties(_ref, _excluded);
29
-
19
+ label,
20
+ error,
21
+ checked,
22
+ onBlur,
23
+ onChange,
24
+ helperText,
25
+ FormControlLabelProps: formControlLabelProps
26
+ } = _ref,
27
+ props = _objectWithoutProperties(_ref, _excluded);
30
28
  return /*#__PURE__*/_jsxs(FormControl, {
31
29
  error: error,
32
30
  children: [/*#__PURE__*/_jsx(FormControlLabel, _objectSpread(_objectSpread({}, formControlLabelProps), {}, {
@@ -5,8 +5,7 @@ import { FormControl, FormGroup, FormHelperText as FormHelperTextMui, FormLabel
5
5
  import { forwardRef } from 'react';
6
6
  import styled from 'styled-components';
7
7
  import { Color } from "../theme/Color.js";
8
- import { jsx as _jsx } from "react/jsx-runtime";
9
- import { jsxs as _jsxs } from "react/jsx-runtime";
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
9
  var FormLabel = /*#__PURE__*/styled(FormLabelMui).withConfig({
11
10
  displayName: "CheckboxGroudField__FormLabel",
12
11
  componentId: "SD__sc-1lihyfy-0"
@@ -17,15 +16,14 @@ var FormHelperText = /*#__PURE__*/styled(FormHelperTextMui).withConfig({
17
16
  })(["margin-top:8px;color:", ";&.Mui-error{color:", ";}"], Color.Dark300, Color.Red500);
18
17
  export var CheckboxGroupField = /*#__PURE__*/forwardRef((_ref, ref) => {
19
18
  var {
20
- FormGroupProps: formGroupProps,
21
- label,
22
- FormLabelProps: formLabelProps,
23
- helperText,
24
- FormHelperTextProps: formHelperTextProps,
25
- children
26
- } = _ref,
27
- formControlProps = _objectWithoutProperties(_ref, _excluded);
28
-
19
+ FormGroupProps: formGroupProps,
20
+ label,
21
+ FormLabelProps: formLabelProps,
22
+ helperText,
23
+ FormHelperTextProps: formHelperTextProps,
24
+ children
25
+ } = _ref,
26
+ formControlProps = _objectWithoutProperties(_ref, _excluded);
29
27
  return /*#__PURE__*/_jsxs(FormControl, _objectSpread(_objectSpread({}, formControlProps), {}, {
30
28
  hiddenLabel: !label,
31
29
  children: [!!label && /*#__PURE__*/_jsx(FormLabel, _objectSpread(_objectSpread({}, formLabelProps), {}, {
@@ -1,7 +1,6 @@
1
1
  import { SvgIcon } from '@material-ui/core';
2
2
  import { Color } from "../theme/Color.js";
3
- import { jsx as _jsx } from "react/jsx-runtime";
4
- import { jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
4
  export function overrideCheckbox(theme) {
6
5
  theme.props.MuiCheckbox = {
7
6
  color: 'primary',
@@ -2,48 +2,35 @@ import { forwardRef } from 'react';
2
2
  import styled, { css } from 'styled-components';
3
3
  import { useResponsiveProp } from "../props/ResponsiveProp.js";
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
-
6
5
  function computeFlexBasis(scale) {
7
6
  return "".concat(scale * 100, "%");
8
7
  }
9
-
10
8
  function flexBasisMixin(width) {
11
9
  switch (width) {
12
10
  case '1/2':
13
11
  return computeFlexBasis(1 / 2);
14
-
15
12
  case '1/3':
16
13
  return computeFlexBasis(1 / 3);
17
-
18
14
  case '2/3':
19
15
  return computeFlexBasis(2 / 3);
20
-
21
16
  case '1/4':
22
17
  return computeFlexBasis(1 / 4);
23
-
24
18
  case '3/4':
25
19
  return computeFlexBasis(3 / 4);
26
-
27
20
  case '1/5':
28
21
  return computeFlexBasis(1 / 5);
29
-
30
22
  case '2/5':
31
23
  return computeFlexBasis(2 / 5);
32
-
33
24
  case '3/5':
34
25
  return computeFlexBasis(3 / 5);
35
-
36
26
  case '4/5':
37
27
  return computeFlexBasis(4 / 5);
38
28
  }
39
-
40
29
  return 'auto';
41
30
  }
42
-
43
31
  function columnRootMixin(width) {
44
32
  return css(["flex-grow:0;flex-basis:", ";width:", ";flex-shrink:", ";"], flexBasisMixin(width), width === 'fluid' ? '100%' : 'auto', width === 'fluid' || width === 'adaptive' ? 1 : 0);
45
33
  }
46
-
47
34
  var ColumnRoot = /*#__PURE__*/styled.div.withConfig({
48
35
  displayName: "Column__ColumnRoot",
49
36
  componentId: "SD__sc-m9n6o6-0"
@@ -3,12 +3,10 @@ import { parseAlignProp } from "../props/AlignProps.js";
3
3
  import { parseCollapsedBelow } from "../props/CollapseProp.js";
4
4
  import { parseResponsiveProp } from "../props/ResponsiveProp.js";
5
5
  import { parseSpaceProp } from "../props/SpaceProp.js";
6
-
7
6
  function columnsRootMixin(align, spaceProp, isReversed, isCollapsed) {
8
7
  var space = parseSpaceProp(spaceProp);
9
8
  return css(["--column-space-left:", "px;--column-space-top:", "px;--column-space-bottom:", "px;align-items:", ";margin-left:", "px;width:", ";flex-direction:", ";"], isCollapsed ? 0 : space, isCollapsed && isReversed ? space : 0, isCollapsed && !isReversed ? space : 0, parseAlignProp(align), isCollapsed ? 0 : "-".concat(space), isCollapsed ? '100%' : "calc(100% + ".concat(space, "px)"), isCollapsed ? !isReversed ? 'column' : 'column-reverse' : !isReversed ? 'row' : 'row-reverse');
10
9
  }
11
-
12
10
  export var Columns = /*#__PURE__*/styled.div.withConfig({
13
11
  displayName: "Columns",
14
12
  componentId: "SD__sc-1a73118-0"
@@ -9,9 +9,7 @@ import { OverflowText } from "../overflow-text/OverflowText.js";
9
9
  import { Color } from "../theme/Color.js";
10
10
  import { isEmptyReactNode } from "../utils/isEmptyReactNode.js";
11
11
  import { useUID } from "../utils/useUID.js";
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { jsxs as _jsxs } from "react/jsx-runtime";
14
-
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
13
  function sizeVariant(theme, mobileSpacing, desktopSpacing) {
16
14
  return {
17
15
  '& > $list, & > $item': {
@@ -24,7 +22,6 @@ function sizeVariant(theme, mobileSpacing, desktopSpacing) {
24
22
  }
25
23
  };
26
24
  }
27
-
28
25
  var useStyles = /*#__PURE__*/makeStyles(theme => ({
29
26
  list: sizeVariant(theme, 2, 1),
30
27
  listSmall: sizeVariant(theme, 1, 0.5),
@@ -46,16 +43,17 @@ var useStyles = /*#__PURE__*/makeStyles(theme => ({
46
43
  }
47
44
  }), {
48
45
  name: 'SD-DescriptionList'
49
- }); //
46
+ });
47
+
48
+ //
50
49
  // DescriptionList
51
50
  //
52
51
 
53
52
  export var DescriptionList = /*#__PURE__*/forwardRef((_ref, ref) => {
54
53
  var {
55
- size
56
- } = _ref,
57
- props = _objectWithoutProperties(_ref, _excluded);
58
-
54
+ size
55
+ } = _ref,
56
+ props = _objectWithoutProperties(_ref, _excluded);
59
57
  var styles = useStyles();
60
58
  return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({}, props), {}, {
61
59
  ref: ref,
@@ -65,14 +63,14 @@ export var DescriptionList = /*#__PURE__*/forwardRef((_ref, ref) => {
65
63
  'large': styles.listLarge
66
64
  }[size])
67
65
  }));
68
- }); //
66
+ });
67
+
68
+ //
69
69
  // DescriptionListItem
70
70
  //
71
-
72
71
  if (process.env.NODE_ENV !== "production") DescriptionList.displayName = "DescriptionList";
73
72
  export var DescriptionListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
74
73
  var _ref3, _contentTypographyPro, _contentTypographyPro2;
75
-
76
74
  var {
77
75
  inset,
78
76
  icon = inset ? /*#__PURE__*/_jsx(SvgIcon, {}) : null,
@@ -7,9 +7,7 @@ import clsx from 'clsx';
7
7
  import { forwardRef } from 'react';
8
8
  import { Color } from "../theme/Color.js";
9
9
  import { VisibilityObserver } from "../utils/VisibilityObserver.js";
10
- import { jsx as _jsx } from "react/jsx-runtime";
11
- import { Fragment as _Fragment } from "react/jsx-runtime";
12
- import { jsxs as _jsxs } from "react/jsx-runtime";
10
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
13
11
  var useStyles = /*#__PURE__*/makeStyles(theme => ({
14
12
  appBar: {
15
13
  '&&': {
@@ -40,11 +38,10 @@ var useStyles = /*#__PURE__*/makeStyles(theme => ({
40
38
  });
41
39
  export var DrawerActions = /*#__PURE__*/forwardRef((_ref, appBarRef) => {
42
40
  var {
43
- children,
44
- className
45
- } = _ref,
46
- props = _objectWithoutProperties(_ref, _excluded);
47
-
41
+ children,
42
+ className
43
+ } = _ref,
44
+ props = _objectWithoutProperties(_ref, _excluded);
48
45
  var styles = useStyles();
49
46
  return /*#__PURE__*/_jsx(VisibilityObserver, {
50
47
  render: _ref2 => {
@@ -18,10 +18,9 @@ var useStyles = /*#__PURE__*/makeStyles(theme => ({
18
18
  });
19
19
  export var DrawerContent = /*#__PURE__*/forwardRef((_ref, ref) => {
20
20
  var {
21
- className
22
- } = _ref,
23
- props = _objectWithoutProperties(_ref, _excluded);
24
-
21
+ className
22
+ } = _ref,
23
+ props = _objectWithoutProperties(_ref, _excluded);
25
24
  var styles = useStyles();
26
25
  return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({}, props), {}, {
27
26
  ref: ref,
@@ -6,7 +6,6 @@ import { makeStyles } from '@material-ui/styles';
6
6
  import clsx from 'clsx';
7
7
  import { forwardRef } from 'react';
8
8
  import { jsx as _jsx } from "react/jsx-runtime";
9
-
10
9
  function listItemMixins(theme, space) {
11
10
  return {
12
11
  '& .MuiListItem-gutters': {
@@ -24,7 +23,6 @@ function listItemMixins(theme, space) {
24
23
  }
25
24
  };
26
25
  }
27
-
28
26
  var useStyles = /*#__PURE__*/makeStyles(theme => ({
29
27
  root: _objectSpread(_objectSpread({
30
28
  maxWidth: '100%'
@@ -36,10 +34,9 @@ var useStyles = /*#__PURE__*/makeStyles(theme => ({
36
34
  });
37
35
  export var DrawerList = /*#__PURE__*/forwardRef((_ref, ref) => {
38
36
  var {
39
- className
40
- } = _ref,
41
- props = _objectWithoutProperties(_ref, _excluded);
42
-
37
+ className
38
+ } = _ref,
39
+ props = _objectWithoutProperties(_ref, _excluded);
43
40
  var styles = useStyles();
44
41
  return /*#__PURE__*/_jsx(List, _objectSpread(_objectSpread({}, props), {}, {
45
42
  ref: ref,
@@ -7,9 +7,7 @@ import clsx from 'clsx';
7
7
  import { forwardRef } from 'react';
8
8
  import { Color } from "../theme/Color.js";
9
9
  import { VisibilityObserver } from "../utils/VisibilityObserver.js";
10
- import { jsx as _jsx } from "react/jsx-runtime";
11
- import { jsxs as _jsxs } from "react/jsx-runtime";
12
- import { Fragment as _Fragment } from "react/jsx-runtime";
10
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
13
11
  var useStyles = /*#__PURE__*/makeStyles(theme => ({
14
12
  appBar: {
15
13
  '&&': {
@@ -50,16 +48,15 @@ var useStyles = /*#__PURE__*/makeStyles(theme => ({
50
48
  });
51
49
  export var DrawerTitle = /*#__PURE__*/forwardRef((_ref, appBarRef) => {
52
50
  var {
53
- title,
54
- titleTypographyProps,
55
- subtitle,
56
- subtitleTypographyProps,
57
- startAction,
58
- endAction,
59
- className
60
- } = _ref,
61
- props = _objectWithoutProperties(_ref, _excluded);
62
-
51
+ title,
52
+ titleTypographyProps,
53
+ subtitle,
54
+ subtitleTypographyProps,
55
+ startAction,
56
+ endAction,
57
+ className
58
+ } = _ref,
59
+ props = _objectWithoutProperties(_ref, _excluded);
63
60
  var styles = useStyles();
64
61
  return /*#__PURE__*/_jsx(VisibilityObserver, {
65
62
  render: _ref2 => {