@veritone-ce/design-system 1.12.22 → 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 (178) hide show
  1. package/dist/assets/theme.js +70 -70
  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 +70 -82
  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/modules.d.js +0 -1
  175. package/dist/setupTests.d.ts +0 -1
  176. package/dist/setupTests.js +0 -3
  177. package/dist/utils/tests/helpers.d.ts +0 -6
  178. package/dist/utils/tests/helpers.js +0 -32
@@ -3,121 +3,123 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
7
- const buttonTheme = theme => ({
8
- defaultProps: {
9
- variant: 'contained',
10
- disableRipple: true
11
- },
12
- styleOverrides: {
13
- root: ({
14
- ownerState
15
- }) => ({
16
- textTransform: 'none',
17
- fontWeight: '600',
18
- '&.MuiButton-outlinedError': {
19
- backgroundColor: theme.palette.common.white
20
- },
21
- '&.Mui-disabled': {
22
- ...(ownerState.variant !== `text` && {
23
- borderColor: theme.palette.misc.altBackground,
24
- backgroundColor: theme.palette.misc.rowHoverGreyOne,
25
- borderWidth: '1px',
26
- borderStyle: 'solid'
27
- })
28
- },
29
- '& .MuiButton-startIcon': {
30
- marginRight: 0,
31
- marginLeft: 0,
32
- marginTop: '-1px',
33
- fontSize: '18px',
34
- ...{
35
- '& .MuiSvgIcon-root': {
36
- fontSize: 18
37
- }
38
- }
39
- },
40
- '& .MuiButton-endIcon': {
41
- marginRight: 0,
42
- marginLeft: 0,
43
- marginTop: '-1px',
44
- fontSize: '18px',
45
- ...{
46
- '& .MuiSvgIcon-root': {
47
- fontSize: 18
6
+ exports["default"] = void 0;
7
+ 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); }
8
+ 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; }
9
+ 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; }
10
+ 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; }
11
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
12
+ 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); }
13
+ var buttonTheme = function buttonTheme(theme) {
14
+ return {
15
+ defaultProps: {
16
+ variant: 'contained',
17
+ disableRipple: true
18
+ },
19
+ styleOverrides: {
20
+ root: function root(_ref) {
21
+ var ownerState = _ref.ownerState;
22
+ return _objectSpread(_objectSpread(_objectSpread({
23
+ textTransform: 'none',
24
+ fontWeight: '600',
25
+ '&.MuiButton-outlinedError': {
26
+ backgroundColor: theme.palette.common.white
27
+ },
28
+ '&.Mui-disabled': _objectSpread({}, ownerState.variant !== "text" && {
29
+ borderColor: theme.palette.misc.altBackground,
30
+ backgroundColor: theme.palette.misc.rowHoverGreyOne,
31
+ borderWidth: '1px',
32
+ borderStyle: 'solid'
33
+ }),
34
+ '& .MuiButton-startIcon': _objectSpread({
35
+ marginRight: 0,
36
+ marginLeft: 0,
37
+ marginTop: '-1px',
38
+ fontSize: '18px'
39
+ }, {
40
+ '& .MuiSvgIcon-root': {
41
+ fontSize: 18
42
+ }
43
+ }),
44
+ '& .MuiButton-endIcon': _objectSpread({
45
+ marginRight: 0,
46
+ marginLeft: 0,
47
+ marginTop: '-1px',
48
+ fontSize: '18px'
49
+ }, {
50
+ '& .MuiSvgIcon-root': {
51
+ fontSize: 18
52
+ }
53
+ }),
54
+ '&.Mui-disabled .MuiButton-startIcon .MuiButton-endIcon': {
55
+ opacity: 0.3
48
56
  }
49
- }
50
- },
51
- '&.Mui-disabled .MuiButton-startIcon .MuiButton-endIcon': {
52
- opacity: 0.3
53
- },
54
- ...(ownerState.variant === `contained` && {
55
- //@ts-ignore
56
- backgroundColor: ownerState.color === `primary` ? theme.palette.button.main :
57
- //@ts-ignore
58
- theme.palette[ownerState.color].main,
59
- ':hover': {
57
+ }, ownerState.variant === "contained" && {
60
58
  //@ts-ignore
61
- backgroundColor: ownerState.color === `primary` ? theme.palette.button.hover :
59
+ backgroundColor: ownerState.color === "primary" ? theme.palette.button.main :
62
60
  //@ts-ignore
63
- theme.palette[ownerState.color]
64
- }
65
- }),
66
- ...(ownerState.variant === `outlined` && {
67
- backgroundColor: ownerState.color === `primary` ? theme.palette.common.white :
68
- //@ts-ignore
69
- theme.palette[ownerState.color],
70
- //@ts-ignore
71
- color: ownerState.color === `primary` ? theme.palette.neutral.main :
72
- //@ts-ignore
73
- theme.palette[ownerState.color].main,
74
- borderColor: ownerState.color === `primary` ? theme.palette.neutral.main :
75
- //@ts-ignore
76
- theme.palette[ownerState.color].main,
77
- ':hover': {
78
- backgroundColor: ownerState.color === `primary` ? theme.palette.common.white :
61
+ theme.palette[ownerState.color].main,
62
+ ':hover': {
63
+ //@ts-ignore
64
+ backgroundColor: ownerState.color === "primary" ? theme.palette.button.hover :
65
+ //@ts-ignore
66
+ theme.palette[ownerState.color]
67
+ }
68
+ }), ownerState.variant === "outlined" && {
69
+ backgroundColor: ownerState.color === "primary" ? theme.palette.common.white :
79
70
  //@ts-ignore
80
71
  theme.palette[ownerState.color],
81
72
  //@ts-ignore
82
- color: ownerState.color === `primary` ? theme.palette.secondary.main :
73
+ color: ownerState.color === "primary" ? theme.palette.neutral.main :
83
74
  //@ts-ignore
84
- theme.palette[ownerState.color],
75
+ theme.palette[ownerState.color].main,
76
+ borderColor: ownerState.color === "primary" ? theme.palette.neutral.main :
85
77
  //@ts-ignore
86
- borderColor: ownerState.color === `primary` ? theme.palette.secondary.main :
78
+ theme.palette[ownerState.color].main,
79
+ ':hover': {
80
+ backgroundColor: ownerState.color === "primary" ? theme.palette.common.white :
81
+ //@ts-ignore
82
+ theme.palette[ownerState.color],
83
+ //@ts-ignore
84
+ color: ownerState.color === "primary" ? theme.palette.secondary.main :
85
+ //@ts-ignore
86
+ theme.palette[ownerState.color],
87
+ //@ts-ignore
88
+ borderColor: ownerState.color === "primary" ? theme.palette.secondary.main :
89
+ //@ts-ignore
90
+ theme.palette[ownerState.color]
91
+ }
92
+ }), ownerState.variant === "text" && {
93
+ backgroundColor: 'transparent',
94
+ color: ownerState.color === "primary" ? theme.palette.text.tertiary :
87
95
  //@ts-ignore
88
- theme.palette[ownerState.color]
89
- }
90
- }),
91
- ...(ownerState.variant === `text` && {
92
- backgroundColor: 'transparent',
93
- color: ownerState.color === `primary` ? theme.palette.text.tertiary :
94
- //@ts-ignore
95
- theme.palette[ownerState.color].main,
96
+ theme.palette[ownerState.color].main,
97
+ ':hover': {
98
+ backgroundColor: 'rgba(255, 255, 255, 0.15)',
99
+ //@ts-ignore
100
+ color: ownerState.color === "primary" ? theme.palette.secondary.main :
101
+ //@ts-ignore
102
+ theme.palette[ownerState.color]
103
+ }
104
+ });
105
+ }
106
+ },
107
+ variants: [{
108
+ props: {
109
+ variant: 'secondary'
110
+ },
111
+ style: {
112
+ backgroundColor: 'white',
113
+ color: theme.palette.neutral.main,
114
+ border: "1px solid ".concat(theme.palette.neutral.main),
96
115
  ':hover': {
97
- backgroundColor: 'rgba(255, 255, 255, 0.15)',
98
- //@ts-ignore
99
- color: ownerState.color === `primary` ? theme.palette.secondary.main :
100
- //@ts-ignore
101
- theme.palette[ownerState.color]
116
+ border: "1px solid ".concat(theme.palette.primary.main),
117
+ color: theme.palette.primary.main,
118
+ backgroundColor: 'white'
102
119
  }
103
- })
104
- })
105
- },
106
- variants: [{
107
- props: {
108
- variant: 'secondary'
109
- },
110
- style: {
111
- backgroundColor: 'white',
112
- color: theme.palette.neutral.main,
113
- border: `1px solid ${theme.palette.neutral.main}`,
114
- ':hover': {
115
- border: `1px solid ${theme.palette.primary.main}`,
116
- color: theme.palette.primary.main,
117
- backgroundColor: 'white'
118
120
  }
119
- }
120
- }]
121
- });
121
+ }]
122
+ };
123
+ };
122
124
  var _default = buttonTheme;
123
- exports.default = _default;
125
+ exports["default"] = _default;
@@ -1,31 +1,39 @@
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 _Indicator = _interopRequireDefault(require("./Indicator"));
9
- var _useButtonProps = _interopRequireDefault(require("./useButtonProps"));
10
+ var _useButtonProps2 = _interopRequireDefault(require("./useButtonProps"));
10
11
  var _jsxRuntime = require("react/jsx-runtime");
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+ var _excluded = ["children"],
13
+ _excluded2 = ["isLoading"];
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
+ 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; }
16
+ 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; }
17
+ 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; }
18
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
19
+ 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); }
20
+ 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; }
21
+ 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; }
12
22
  /**
13
23
  - Use a button for common user click actions. Several variations available.
14
24
  **/
15
- const Button = ({
16
- children,
17
- ...props
18
- }) => {
19
- const {
20
- isLoading,
21
- ...muiButtonProps
22
- } = (0, _useButtonProps.default)(props);
25
+ var Button = function Button(_ref) {
26
+ var children = _ref.children,
27
+ props = _objectWithoutProperties(_ref, _excluded);
28
+ var _useButtonProps = (0, _useButtonProps2["default"])(props),
29
+ isLoading = _useButtonProps.isLoading,
30
+ muiButtonProps = _objectWithoutProperties(_useButtonProps, _excluded2);
23
31
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
24
32
  sx: {
25
- display: `inline-flex`,
26
- position: `relative`
33
+ display: "inline-flex",
34
+ position: "relative"
27
35
  },
28
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
36
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, _objectSpread(_objectSpread({
29
37
  sx: {
30
38
  fontSize: '14px',
31
39
  gap: '5px',
@@ -38,11 +46,11 @@ const Button = ({
38
46
  lineHeight: '16px',
39
47
  height: 36
40
48
  },
41
- disableElevation: true,
42
- ...muiButtonProps,
49
+ disableElevation: true
50
+ }, muiButtonProps), {}, {
43
51
  children: children
44
- }), isLoading && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Indicator.default, {})]
52
+ })), isLoading && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Indicator["default"], {})]
45
53
  });
46
54
  };
47
55
  var _default = Button;
48
- exports.default = _default;
56
+ exports["default"] = _default;
@@ -1,18 +1,26 @@
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
- const useButtonProps = ({
8
- isLoading = false,
9
- ...props
10
- }) => {
11
- return {
7
+ exports["default"] = void 0;
8
+ var _excluded = ["isLoading"];
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
+ 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; }
15
+ 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; }
16
+ var useButtonProps = function useButtonProps(_ref) {
17
+ var _ref$isLoading = _ref.isLoading,
18
+ isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
19
+ props = _objectWithoutProperties(_ref, _excluded);
20
+ return _objectSpread({
12
21
  disabled: isLoading || props.disabled,
13
- isLoading,
14
- ...props
15
- };
22
+ isLoading: isLoading
23
+ }, props);
16
24
  };
17
25
  var _default = useButtonProps;
18
- exports.default = _default;
26
+ exports["default"] = _default;
@@ -3,22 +3,26 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
7
- const checkboxTheme = theme => ({
8
- styleOverrides: {
9
- root: () => ({
10
- marginRight: '8px',
11
- '&.MuiCheckbox-root': {
12
- color: theme.palette.text.secondary
13
- },
14
- '&.Mui-checked, &.MuiCheckbox-indeterminate': {
15
- color: theme.palette.button.main
16
- },
17
- '&.Mui-disabled': {
18
- color: theme.palette.text.disabled
6
+ exports["default"] = void 0;
7
+ var checkboxTheme = function checkboxTheme(theme) {
8
+ return {
9
+ styleOverrides: {
10
+ root: function root() {
11
+ return {
12
+ marginRight: '8px',
13
+ '&.MuiCheckbox-root': {
14
+ color: theme.palette.text.secondary
15
+ },
16
+ '&.Mui-checked, &.MuiCheckbox-indeterminate': {
17
+ color: theme.palette.button.main
18
+ },
19
+ '&.Mui-disabled': {
20
+ color: theme.palette.text.disabled
21
+ }
22
+ };
19
23
  }
20
- })
21
- }
22
- });
24
+ }
25
+ };
26
+ };
23
27
  var _default = checkboxTheme;
24
- exports.default = _default;
28
+ exports["default"] = _default;
@@ -1,23 +1,29 @@
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 = _interopRequireDefault(require("react"));
8
9
  var _material = require("@mui/material");
9
10
  var _jsxRuntime = require("react/jsx-runtime");
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
- const Checkbox = ({
12
- label,
13
- ...props
14
- }) => {
11
+ var _excluded = ["label"];
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
+ 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; }
14
+ 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; }
15
+ 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; }
16
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
17
+ 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); }
18
+ 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; }
19
+ 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; }
20
+ var Checkbox = function Checkbox(_ref) {
21
+ var label = _ref.label,
22
+ props = _objectWithoutProperties(_ref, _excluded);
15
23
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.FormControlLabel, {
16
24
  label: label,
17
- control: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Checkbox, {
18
- ...props
19
- })
25
+ control: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Checkbox, _objectSpread({}, props))
20
26
  });
21
27
  };
22
28
  var _default = Checkbox;
23
- exports.default = _default;
29
+ exports["default"] = _default;
@@ -1,15 +1,24 @@
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 _Slider = _interopRequireDefault(require("@mui/material/Slider"));
8
9
  var _styles = require("@mui/material/styles");
9
10
  var _Box = _interopRequireDefault(require("@mui/material/Box"));
10
11
  var _jsxRuntime = require("react/jsx-runtime");
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
- const MuiSlider = (0, _styles.styled)(_Slider.default)({
12
+ var _excluded = ["value", "onChange", "max", "isAvailable", "step", "label", "typeData"];
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 _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; }
20
+ 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; }
21
+ var MuiSlider = (0, _styles.styled)(_Slider["default"])({
13
22
  color: '#1871E8',
14
23
  height: 6,
15
24
  '& .MuiSlider-track': {
@@ -50,30 +59,31 @@ const MuiSlider = (0, _styles.styled)(_Slider.default)({
50
59
  boxShadow: 'none'
51
60
  }
52
61
  });
53
- const AudioSlider = ({
54
- value,
55
- onChange,
56
- max = 3,
57
- isAvailable = true,
58
- step,
59
- label,
60
- typeData = 'audio',
61
- ...props
62
- }) => {
63
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
62
+ var AudioSlider = function AudioSlider(_ref) {
63
+ var value = _ref.value,
64
+ onChange = _ref.onChange,
65
+ _ref$max = _ref.max,
66
+ max = _ref$max === void 0 ? 3 : _ref$max,
67
+ _ref$isAvailable = _ref.isAvailable,
68
+ isAvailable = _ref$isAvailable === void 0 ? true : _ref$isAvailable,
69
+ step = _ref.step,
70
+ label = _ref.label,
71
+ _ref$typeData = _ref.typeData,
72
+ typeData = _ref$typeData === void 0 ? 'audio' : _ref$typeData,
73
+ props = _objectWithoutProperties(_ref, _excluded);
74
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box["default"], {
64
75
  sx: {
65
76
  width: 320
66
77
  },
67
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(MuiSlider, {
68
- ...props,
78
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(MuiSlider, _objectSpread(_objectSpread({}, props), {}, {
69
79
  "aria-label": "audio-slider",
70
80
  value: value,
71
81
  max: max,
72
82
  step: step,
73
83
  onChange: onChange,
74
84
  disabled: !isAvailable
75
- })
85
+ }))
76
86
  });
77
87
  };
78
88
  var _default = AudioSlider;
79
- exports.default = _default;
89
+ 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 Drawer = ({
10
- ...props
11
- }) => {
12
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Drawer, {
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 Drawer = function Drawer(_ref) {
18
+ var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
19
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Drawer, _objectSpread({}, props));
15
20
  };
16
21
  var _default = Drawer;
17
- exports.default = _default;
22
+ exports["default"] = _default;