@veritone-ce/design-system 1.12.21 → 1.12.23

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 (180) hide show
  1. package/dist/assets/theme.js +70 -72
  2. package/dist/components/Box/index.js +13 -8
  3. package/dist/components/Breadcrumbs/breadcrumbs.theme.js +14 -10
  4. package/dist/components/Breadcrumbs/index.js +9 -9
  5. package/dist/components/Button/Indicator.js +10 -10
  6. package/dist/components/Button/button.theme.js +107 -105
  7. package/dist/components/Button/index.js +26 -18
  8. package/dist/components/Button/useButtonProps.js +18 -10
  9. package/dist/components/Checkbox/checkbox.theme.js +21 -17
  10. package/dist/components/Checkbox/index.js +16 -10
  11. package/dist/components/CustomSlider/index.js +28 -18
  12. package/dist/components/Drawer/index.js +13 -8
  13. package/dist/components/FileUploader/index.js +88 -69
  14. package/dist/components/FileUploader/useUploadFile.js +148 -51
  15. package/dist/components/FormControlLabel/index.js +13 -8
  16. package/dist/components/HomeOutlinedIcon/index.js +13 -8
  17. package/dist/components/IconGroups/index.js +14 -9
  18. package/dist/components/IconListItem/index.js +17 -10
  19. package/dist/components/Input/index.js +16 -10
  20. package/dist/components/Input/input.theme.js +99 -95
  21. package/dist/components/LinearProgress/index.js +40 -33
  22. package/dist/components/LinearProgress/linearProgress.theme.js +17 -13
  23. package/dist/components/Link/index.js +13 -8
  24. package/dist/components/List/index.js +13 -8
  25. package/dist/components/ListItem/index.js +13 -8
  26. package/dist/components/ListItemButton/index.js +13 -8
  27. package/dist/components/ListItemText/index.js +13 -8
  28. package/dist/components/MenuFlyout/constants.js +3 -3
  29. package/dist/components/MenuFlyout/index.js +21 -13
  30. package/dist/components/MenuFlyout/menuFlyout.theme.js +47 -39
  31. package/dist/components/Modal/index.js +20 -13
  32. package/dist/components/Modal/modal.theme.js +28 -26
  33. package/dist/components/ModelGridView/index.js +109 -72
  34. package/dist/components/Panel/index.js +21 -19
  35. package/dist/components/ProgressIndicator/DefaultProgress.js +16 -10
  36. package/dist/components/ProgressIndicator/MLProgress.js +16 -10
  37. package/dist/components/ProgressIndicator/index.js +17 -14
  38. package/dist/components/RadioButton/RadioButton.theme.js +57 -53
  39. package/dist/components/RadioButton/index.js +24 -14
  40. package/dist/components/RadioGroup/index.js +13 -8
  41. package/dist/components/Select/index.js +48 -33
  42. package/dist/components/Select/select.theme.js +55 -51
  43. package/dist/components/StatusChip/constants.js +3 -3
  44. package/dist/components/StatusChip/index.js +19 -12
  45. package/dist/components/StatusChip/statusChip.theme.js +33 -29
  46. package/dist/components/Step/index.js +13 -8
  47. package/dist/components/StepLabel/index.js +13 -8
  48. package/dist/components/Stepper/index.js +10 -6
  49. package/dist/components/Stepper/stepper.theme.js +44 -42
  50. package/dist/components/Tabs/Badge.js +5 -6
  51. package/dist/components/Tabs/index.js +42 -23
  52. package/dist/components/Tabs/tabs.theme.js +32 -28
  53. package/dist/components/ThemeProvider/index.js +6 -7
  54. package/dist/components/Toast/index.js +41 -32
  55. package/dist/components/Typography/index.js +13 -8
  56. package/dist/components/UtilityRail/index.js +65 -57
  57. package/dist/components/UtilityRail/mock.js +1 -1
  58. package/dist/index.js +72 -72
  59. package/package.json +84 -95
  60. package/dist/assets/information.svg +0 -3
  61. package/dist/assets/warning.svg +0 -3
  62. package/dist/components/Box/__tests__/Box.test.d.ts +0 -1
  63. package/dist/components/Box/__tests__/Box.test.js +0 -16
  64. package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -11
  65. package/dist/components/Breadcrumbs/Breadcrumbs.stories.js +0 -36
  66. package/dist/components/Breadcrumbs/__tests__/Breadcrumbs.test.d.ts +0 -1
  67. package/dist/components/Breadcrumbs/__tests__/Breadcrumbs.test.js +0 -26
  68. package/dist/components/Button/Button.stories.d.ts +0 -7
  69. package/dist/components/Button/Button.stories.js +0 -99
  70. package/dist/components/Button/__tests__/Button.test.d.ts +0 -1
  71. package/dist/components/Button/__tests__/Button.test.js +0 -59
  72. package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -5
  73. package/dist/components/Checkbox/Checkbox.stories.js +0 -49
  74. package/dist/components/Checkbox/__tests__/Checkbox.test.d.ts +0 -1
  75. package/dist/components/Checkbox/__tests__/Checkbox.test.js +0 -15
  76. package/dist/components/CustomSlider/CustomSlider.stories.d.ts +0 -5
  77. package/dist/components/CustomSlider/CustomSlider.stories.js +0 -48
  78. package/dist/components/Drawer/__tests__/Drawer.test.d.ts +0 -1
  79. package/dist/components/Drawer/__tests__/Drawer.test.js +0 -16
  80. package/dist/components/FileUploader/FileUploader.stories.d.ts +0 -15
  81. package/dist/components/FileUploader/FileUploader.stories.js +0 -25
  82. package/dist/components/FileUploader/__tests__/FileUploader.test.d.ts +0 -1
  83. package/dist/components/FileUploader/__tests__/FileUploader.test.js +0 -226
  84. package/dist/components/FormControlLabel/__tests__/FormControlLabel.test.d.ts +0 -1
  85. package/dist/components/FormControlLabel/__tests__/FormControlLabel.test.js +0 -19
  86. package/dist/components/HomeOutlinedIcon/HomeOutlinedIcon.stories.d.ts +0 -7
  87. package/dist/components/HomeOutlinedIcon/HomeOutlinedIcon.stories.js +0 -20
  88. package/dist/components/HomeOutlinedIcon/__tests__/HomeOutlinedIcon.test.d.ts +0 -1
  89. package/dist/components/HomeOutlinedIcon/__tests__/HomeOutlinedIcon.test.js +0 -15
  90. package/dist/components/IconGroups/IconGroups.stories.d.ts +0 -7
  91. package/dist/components/IconGroups/IconGroups.stories.js +0 -20
  92. package/dist/components/IconGroups/__tests__/IconGroups.test.d.ts +0 -1
  93. package/dist/components/IconGroups/__tests__/IconGroups.test.js +0 -15
  94. package/dist/components/IconListItem/__tests__/IconListItem.test.d.ts +0 -1
  95. package/dist/components/IconListItem/__tests__/IconListItem.test.js +0 -15
  96. package/dist/components/Input/Input.stories.d.ts +0 -11
  97. package/dist/components/Input/Input.stories.js +0 -113
  98. package/dist/components/Input/__tests__/Input.test.d.ts +0 -1
  99. package/dist/components/Input/__tests__/Input.test.js +0 -14
  100. package/dist/components/LinearProgress/LinearProgress.stories.d.ts +0 -14
  101. package/dist/components/LinearProgress/LinearProgress.stories.js +0 -43
  102. package/dist/components/LinearProgress/__tests__/LinearProgress.test.d.ts +0 -1
  103. package/dist/components/LinearProgress/__tests__/LinearProgress.test.js +0 -40
  104. package/dist/components/Link/__tests__/Link.test.d.ts +0 -1
  105. package/dist/components/Link/__tests__/Link.test.js +0 -15
  106. package/dist/components/List/__tests__/List.test.d.ts +0 -1
  107. package/dist/components/List/__tests__/List.test.js +0 -15
  108. package/dist/components/ListItem/__tests__/ListItem.test.d.ts +0 -1
  109. package/dist/components/ListItem/__tests__/ListItem.test.js +0 -15
  110. package/dist/components/ListItemButton/__tests__/ListItemButton.test.d.ts +0 -1
  111. package/dist/components/ListItemButton/__tests__/ListItemButton.test.js +0 -15
  112. package/dist/components/ListItemText/__tests__/ListItemText.test.d.ts +0 -1
  113. package/dist/components/ListItemText/__tests__/ListItemText.test.js +0 -15
  114. package/dist/components/MenuFlyout/MenuFlyout.stories.d.ts +0 -31
  115. package/dist/components/MenuFlyout/MenuFlyout.stories.js +0 -60
  116. package/dist/components/MenuFlyout/__tests__/MenuFlyout.test.d.ts +0 -1
  117. package/dist/components/MenuFlyout/__tests__/MenuFlyout.test.js +0 -42
  118. package/dist/components/Modal/Modal.stories.d.ts +0 -15
  119. package/dist/components/Modal/Modal.stories.js +0 -195
  120. package/dist/components/Modal/__tests__/Modal.test.d.ts +0 -1
  121. package/dist/components/Modal/__tests__/Modal.test.js +0 -17
  122. package/dist/components/ModelGridView/ModelGridView.stories.d.ts +0 -5
  123. package/dist/components/ModelGridView/ModelGridView.stories.js +0 -41
  124. package/dist/components/ModelGridView/__tests__/ModelGridView.test.d.ts +0 -1
  125. package/dist/components/ModelGridView/__tests__/ModelGridView.test.js +0 -48
  126. package/dist/components/Panel/Panel.stories.d.ts +0 -14
  127. package/dist/components/Panel/Panel.stories.js +0 -63
  128. package/dist/components/Panel/__tests__/Panel.test.d.ts +0 -1
  129. package/dist/components/Panel/__tests__/Panel.test.js +0 -74
  130. package/dist/components/ProgressIndicator/ProgressIndicator.stories.d.ts +0 -7
  131. package/dist/components/ProgressIndicator/ProgressIndicator.stories.js +0 -45
  132. package/dist/components/ProgressIndicator/__tests__/ProgressIndicator.test.d.ts +0 -1
  133. package/dist/components/ProgressIndicator/__tests__/ProgressIndicator.test.js +0 -32
  134. package/dist/components/RadioButton/RadioButton.stories.d.ts +0 -10
  135. package/dist/components/RadioButton/RadioButton.stories.js +0 -38
  136. package/dist/components/RadioButton/__tests__/RadioButton.test.d.ts +0 -1
  137. package/dist/components/RadioButton/__tests__/RadioButton.test.js +0 -14
  138. package/dist/components/RadioGroup/__tests__/RadioGroup.test.d.ts +0 -1
  139. package/dist/components/RadioGroup/__tests__/RadioGroup.test.js +0 -15
  140. package/dist/components/Select/Select.stories.d.ts +0 -5
  141. package/dist/components/Select/Select.stories.js +0 -86
  142. package/dist/components/Select/__tests__/Select.test.d.ts +0 -1
  143. package/dist/components/Select/__tests__/Select.test.js +0 -40
  144. package/dist/components/StatusChip/StatusChip.stories.d.ts +0 -51
  145. package/dist/components/StatusChip/StatusChip.stories.js +0 -59
  146. package/dist/components/StatusChip/__tests__/StatusChip.test.d.ts +0 -1
  147. package/dist/components/StatusChip/__tests__/StatusChip.test.js +0 -45
  148. package/dist/components/Step/__tests__/Step.test.d.ts +0 -1
  149. package/dist/components/Step/__tests__/Step.test.js +0 -15
  150. package/dist/components/StepLabel/__tests__/StepLabel.test.d.ts +0 -1
  151. package/dist/components/StepLabel/__tests__/StepLabel.test.js +0 -15
  152. package/dist/components/Stepper/Stepper.stories.d.ts +0 -21
  153. package/dist/components/Stepper/Stepper.stories.js +0 -38
  154. package/dist/components/Stepper/__tests__/Stepper.test.d.ts +0 -1
  155. package/dist/components/Stepper/__tests__/Stepper.test.js +0 -15
  156. package/dist/components/Tabs/Tabs.stories.d.ts +0 -6
  157. package/dist/components/Tabs/Tabs.stories.js +0 -56
  158. package/dist/components/Tabs/__tests__/Tabs.test.d.ts +0 -1
  159. package/dist/components/Tabs/__tests__/Tabs.test.js +0 -53
  160. package/dist/components/ThemeProvider/__tests__/Button.test.d.ts +0 -1
  161. package/dist/components/ThemeProvider/__tests__/Button.test.js +0 -15
  162. package/dist/components/Toast/Toast.stories.d.ts +0 -14
  163. package/dist/components/Toast/Toast.stories.js +0 -108
  164. package/dist/components/Toast/__tests__/Toast.test.d.ts +0 -1
  165. package/dist/components/Toast/__tests__/Toast.test.js +0 -48
  166. package/dist/components/Typography/Typography.stories.d.ts +0 -20
  167. package/dist/components/Typography/Typography.stories.js +0 -21
  168. package/dist/components/Typography/__tests__/Typography.test.d.ts +0 -1
  169. package/dist/components/Typography/__tests__/Typography.test.js +0 -16
  170. package/dist/components/UtilityRail/UtilityRail.stories.d.ts +0 -8
  171. package/dist/components/UtilityRail/UtilityRail.stories.js +0 -23
  172. package/dist/components/UtilityRail/__tests__/UtilityRail.test.d.ts +0 -1
  173. package/dist/components/UtilityRail/__tests__/UtilityRail.test.js +0 -18
  174. package/dist/react-app-env.d.js +0 -2
  175. package/dist/reportWebVitals.d.ts +0 -3
  176. package/dist/reportWebVitals.js +0 -27
  177. package/dist/setupTests.d.ts +0 -1
  178. package/dist/setupTests.js +0 -3
  179. package/dist/utils/tests/helpers.d.ts +0 -6
  180. package/dist/utils/tests/helpers.js +0 -32
@@ -1,11 +1,20 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
- exports.default = void 0;
7
+ exports["default"] = void 0;
7
8
  var _material = require("@mui/material");
8
9
  var _jsxRuntime = require("react/jsx-runtime");
10
+ var _excluded = ["label"];
11
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
12
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
13
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
14
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
15
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
16
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
17
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
9
18
  /**
10
19
  - Use a StatusChip to display the status of some action to the user.
11
20
  - Veritone stock options derive from the required `status` prop and include Complete, Processing, or Error. Their corresponding colors derive from Veritone's Design System guidelines.
@@ -17,21 +26,19 @@ var _jsxRuntime = require("react/jsx-runtime");
17
26
  - Pass an MUI stock color option to `color` prop **OR** pass a custom color Hex Value to `coloroverride` prop.
18
27
  **/
19
28
 
20
- const StatusChip = ({
21
- label,
22
- ...props
23
- }) => {
29
+ var StatusChip = function StatusChip(_ref) {
30
+ var label = _ref.label,
31
+ props = _objectWithoutProperties(_ref, _excluded);
24
32
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
25
33
  sx: {
26
- display: `inline-flex`,
27
- position: `relative`
34
+ display: "inline-flex",
35
+ position: "relative"
28
36
  },
29
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Chip, {
37
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Chip, _objectSpread({
30
38
  label: label ? label : props.status,
31
- "data-testid": true,
32
- ...props
33
- })
39
+ "data-testid": true
40
+ }, props))
34
41
  });
35
42
  };
36
43
  var _default = StatusChip;
37
- exports.default = _default;
44
+ exports["default"] = _default;
@@ -3,40 +3,44 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports["default"] = void 0;
7
7
  var _constants = require("./constants");
8
- const statusChipTheme = theme => ({
9
- styleOverrides: {
10
- root: ({
11
- ownerState
12
- }) => ({
13
- height: '18px',
14
- width: '86px',
15
- fontSize: '9px',
16
- borderRadius: '2px',
17
- fontFamily: 'Nunito sans',
18
- fontStyle: 'normal',
19
- fontWeight: 800,
20
- textTransform: 'uppercase',
21
- color: theme.palette.common.white,
22
- ...(ownerState.coloroverride ? {
23
- backgroundColor: ownerState.coloroverride
24
- } : {
25
- ...(ownerState.status === _constants.COMPLETE && {
8
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
9
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
11
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
12
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
13
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
14
+ var statusChipTheme = function statusChipTheme(theme) {
15
+ return {
16
+ styleOverrides: {
17
+ root: function root(_ref) {
18
+ var ownerState = _ref.ownerState;
19
+ return _objectSpread({
20
+ height: '18px',
21
+ width: '86px',
22
+ fontSize: '9px',
23
+ borderRadius: '2px',
24
+ fontFamily: 'Nunito sans',
25
+ fontStyle: 'normal',
26
+ fontWeight: 800,
27
+ textTransform: 'uppercase',
28
+ color: theme.palette.common.white
29
+ }, ownerState.coloroverride ? {
30
+ backgroundColor: ownerState.coloroverride
31
+ } : _objectSpread(_objectSpread(_objectSpread({}, ownerState.status === _constants.COMPLETE && {
26
32
  //@ts-ignore
27
33
  backgroundColor: theme.palette.success.main
28
- }),
29
- ...(ownerState.status === _constants.PROCESSING && {
34
+ }), ownerState.status === _constants.PROCESSING && {
30
35
  //@ts-ignore
31
36
  backgroundColor: theme.palette.warning.main
32
- }),
33
- ...(ownerState.status === _constants.ERROR && {
37
+ }), ownerState.status === _constants.ERROR && {
34
38
  //@ts-ignore
35
39
  backgroundColor: theme.palette.error.main
36
- })
37
- })
38
- })
39
- }
40
- });
40
+ }));
41
+ }
42
+ }
43
+ };
44
+ };
41
45
  var _default = statusChipTheme;
42
- exports.default = _default;
46
+ exports["default"] = _default;
@@ -1,17 +1,22 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
- exports.default = void 0;
7
+ exports["default"] = void 0;
7
8
  var _material = require("@mui/material");
8
9
  var _jsxRuntime = require("react/jsx-runtime");
9
- const Step = ({
10
- ...props
11
- }) => {
12
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Step, {
13
- ...props
14
- });
10
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
12
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
13
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
14
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
15
+ function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
16
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
17
+ var Step = function Step(_ref) {
18
+ var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
19
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Step, _objectSpread({}, props));
15
20
  };
16
21
  var _default = Step;
17
- exports.default = _default;
22
+ exports["default"] = _default;
@@ -1,17 +1,22 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
- exports.default = void 0;
7
+ exports["default"] = void 0;
7
8
  var _material = require("@mui/material");
8
9
  var _jsxRuntime = require("react/jsx-runtime");
9
- const StepLabel = ({
10
- ...props
11
- }) => {
12
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.StepLabel, {
13
- ...props
14
- });
10
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
12
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
13
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
14
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
15
+ function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
16
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
17
+ var StepLabel = function StepLabel(_ref) {
18
+ var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
19
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.StepLabel, _objectSpread({}, props));
15
20
  };
16
21
  var _default = StepLabel;
17
- exports.default = _default;
22
+ exports["default"] = _default;
@@ -3,9 +3,15 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports["default"] = void 0;
7
7
  var _material = require("@mui/material");
8
8
  var _jsxRuntime = require("react/jsx-runtime");
9
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
10
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
12
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
13
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
14
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
9
15
  /**
10
16
  The Stepper is used for highlighting where a user is in a progression of steps.
11
17
  For additional information see:
@@ -14,10 +20,8 @@ var _jsxRuntime = require("react/jsx-runtime");
14
20
  https://mui.com/material-ui/api/step-label/ .
15
21
  **/
16
22
 
17
- const Stepper = props => {
18
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Stepper, {
19
- ...props
20
- });
23
+ var Stepper = function Stepper(props) {
24
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Stepper, _objectSpread({}, props));
21
25
  };
22
26
  var _default = Stepper;
23
- exports.default = _default;
27
+ exports["default"] = _default;
@@ -3,54 +3,56 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
7
- const stepperTheme = theme => ({
8
- MuiStepConnector: {
9
- styleOverrides: {
10
- line: {
11
- borderColor: `#E0E8F0`
6
+ exports["default"] = void 0;
7
+ var stepperTheme = function stepperTheme(theme) {
8
+ return {
9
+ MuiStepConnector: {
10
+ styleOverrides: {
11
+ line: {
12
+ borderColor: "#E0E8F0"
13
+ }
12
14
  }
13
- }
14
- },
15
- MuiStep: {
16
- defaultProps: {
17
- completed: false
18
- }
19
- },
20
- MuiStepIcon: {
21
- styleOverrides: {
22
- root: {
23
- borderRadius: `100%`,
24
- height: `35px`,
25
- width: `35px`,
26
- outline: `1px solid ${theme.palette.text.tertiary}`,
27
- color: `white`,
28
- text: {
29
- fill: theme.palette.text.tertiary
30
- },
31
- '&.Mui-active': {
32
- outline: `none`,
33
- color: theme.palette.text.tertiary,
15
+ },
16
+ MuiStep: {
17
+ defaultProps: {
18
+ completed: false
19
+ }
20
+ },
21
+ MuiStepIcon: {
22
+ styleOverrides: {
23
+ root: {
24
+ borderRadius: "100%",
25
+ height: "35px",
26
+ width: "35px",
27
+ outline: "1px solid ".concat(theme.palette.text.tertiary),
28
+ color: "white",
34
29
  text: {
35
- fill: `white`
30
+ fill: theme.palette.text.tertiary
31
+ },
32
+ '&.Mui-active': {
33
+ outline: "none",
34
+ color: theme.palette.text.tertiary,
35
+ text: {
36
+ fill: "white"
37
+ }
36
38
  }
37
39
  }
38
40
  }
39
- }
40
- },
41
- MuiStepLabel: {
42
- styleOverrides: {
43
- label: {
44
- fontWeight: `600`,
45
- '&.Mui-active': {
46
- fontWeight: `600`
41
+ },
42
+ MuiStepLabel: {
43
+ styleOverrides: {
44
+ label: {
45
+ fontWeight: "600",
46
+ '&.Mui-active': {
47
+ fontWeight: "600"
48
+ }
49
+ },
50
+ iconContainer: {
51
+ padding: "0 10px 0 0"
47
52
  }
48
- },
49
- iconContainer: {
50
- padding: `0 10px 0 0`
51
53
  }
52
54
  }
53
- }
54
- });
55
+ };
56
+ };
55
57
  var _default = stepperTheme;
56
- exports.default = _default;
58
+ exports["default"] = _default;
@@ -3,13 +3,12 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports["default"] = void 0;
7
7
  var _material = require("@mui/material");
8
8
  var _jsxRuntime = require("react/jsx-runtime");
9
- function BadgeLabel({
10
- badgeCount,
11
- label
12
- }) {
9
+ function BadgeLabel(_ref) {
10
+ var badgeCount = _ref.badgeCount,
11
+ label = _ref.label;
13
12
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
14
13
  sx: {
15
14
  display: 'flex',
@@ -27,4 +26,4 @@ function BadgeLabel({
27
26
  });
28
27
  }
29
28
  var _default = BadgeLabel;
30
- exports.default = _default;
29
+ exports["default"] = _default;
@@ -1,39 +1,58 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
- exports.default = void 0;
7
+ exports["default"] = void 0;
7
8
  var _react = require("react");
8
9
  var _material = require("@mui/material");
9
10
  var _Badge = _interopRequireDefault(require("./Badge"));
10
11
  var _jsxRuntime = require("react/jsx-runtime");
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
- const BasicTabs = ({
13
- tabs,
14
- ...props
15
- }) => {
16
- const [selectedTab, setSelectedTab] = (0, _react.useState)(0);
17
- const handleChange = (event, newValue) => {
12
+ var _excluded = ["tabs"];
13
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
14
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
15
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
16
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
17
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
18
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
19
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
20
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
21
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
22
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
23
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
24
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
25
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
26
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
27
+ var BasicTabs = function BasicTabs(_ref) {
28
+ var tabs = _ref.tabs,
29
+ props = _objectWithoutProperties(_ref, _excluded);
30
+ var _useState = (0, _react.useState)(0),
31
+ _useState2 = _slicedToArray(_useState, 2),
32
+ selectedTab = _useState2[0],
33
+ setSelectedTab = _useState2[1];
34
+ var handleChange = function handleChange(event, newValue) {
18
35
  setSelectedTab(newValue);
19
36
  };
20
37
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
21
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Tabs, {
38
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Tabs, _objectSpread(_objectSpread({
22
39
  value: selectedTab,
23
- onChange: handleChange,
24
- ...props,
25
- children: tabs.map((tab, index) => /*#__PURE__*/(0, _react.createElement)(_material.Tab, {
26
- ...tab,
27
- key: index,
28
- value: index,
29
- label: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Badge.default, {
30
- badgeCount: tab.count ?? 0,
31
- label: tab.label
32
- }),
33
- disableRipple: true
34
- }))
35
- }), tabs[selectedTab].content && tabs[selectedTab].content]
40
+ onChange: handleChange
41
+ }, props), {}, {
42
+ children: tabs.map(function (tab, index) {
43
+ var _tab$count;
44
+ return /*#__PURE__*/(0, _react.createElement)(_material.Tab, _objectSpread(_objectSpread({}, tab), {}, {
45
+ key: index,
46
+ value: index,
47
+ label: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Badge["default"], {
48
+ badgeCount: (_tab$count = tab.count) !== null && _tab$count !== void 0 ? _tab$count : 0,
49
+ label: tab.label
50
+ }),
51
+ disableRipple: true
52
+ }));
53
+ })
54
+ })), tabs[selectedTab].content && tabs[selectedTab].content]
36
55
  });
37
56
  };
38
57
  var _default = BasicTabs;
39
- exports.default = _default;
58
+ exports["default"] = _default;
@@ -3,33 +3,37 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
7
- const tabsTheme = theme => ({
8
- styleOverrides: {
9
- root: () => ({
10
- '& .MuiTabs-indicator': {
11
- backgroundColor: theme.palette.text.primary
12
- },
13
- '.css-1v8tsix-MuiButtonBase-root-MuiTab-root.Mui-selected': {
14
- color: theme.palette.text.primary
15
- },
16
- '.css-1v8tsix-MuiButtonBase-root-MuiTab-root': {
17
- color: theme.palette.text.secondary,
18
- '&:hover': {
19
- color: theme.palette.text.primary
20
- }
21
- },
22
- '& .MuiBadge-badge': {
23
- backgroundColor: theme.palette.misc.rowOnHoverGreyTwo,
24
- color: theme.palette.text.primary,
25
- fontSize: '10px',
26
- padding: '0 4px',
27
- height: '18px',
28
- minWidth: '18px',
29
- borderRadius: '9px'
6
+ exports["default"] = void 0;
7
+ var tabsTheme = function tabsTheme(theme) {
8
+ return {
9
+ styleOverrides: {
10
+ root: function root() {
11
+ return {
12
+ '& .MuiTabs-indicator': {
13
+ backgroundColor: theme.palette.text.primary
14
+ },
15
+ '.css-1v8tsix-MuiButtonBase-root-MuiTab-root.Mui-selected': {
16
+ color: theme.palette.text.primary
17
+ },
18
+ '.css-1v8tsix-MuiButtonBase-root-MuiTab-root': {
19
+ color: theme.palette.text.secondary,
20
+ '&:hover': {
21
+ color: theme.palette.text.primary
22
+ }
23
+ },
24
+ '& .MuiBadge-badge': {
25
+ backgroundColor: theme.palette.misc.rowOnHoverGreyTwo,
26
+ color: theme.palette.text.primary,
27
+ fontSize: '10px',
28
+ padding: '0 4px',
29
+ height: '18px',
30
+ minWidth: '18px',
31
+ borderRadius: '9px'
32
+ }
33
+ };
30
34
  }
31
- })
32
- }
33
- });
35
+ }
36
+ };
37
+ };
34
38
  var _default = tabsTheme;
35
- exports.default = _default;
39
+ exports["default"] = _default;
@@ -3,18 +3,17 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports["default"] = void 0;
7
7
  var _system = require("@mui/system");
8
8
  var _theme = _interopRequireDefault(require("../../assets/theme"));
9
9
  var _jsxRuntime = require("react/jsx-runtime");
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
- const ThemeProvider = ({
12
- children
13
- }) => {
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+ var ThemeProvider = function ThemeProvider(_ref) {
12
+ var children = _ref.children;
14
13
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_system.ThemeProvider, {
15
- theme: _theme.default,
14
+ theme: _theme["default"],
16
15
  children: children
17
16
  });
18
17
  };
19
18
  var _default = ThemeProvider;
20
- exports.default = _default;
19
+ exports["default"] = _default;