@veritone-ce/design-system 1.12.45 → 1.12.46
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.
- package/dist/cjs/assets/theme.js +367 -0
- package/dist/cjs/components/Alert/index.js +66 -0
- package/dist/cjs/components/AudioSlider/index.js +71 -0
- package/dist/cjs/components/Autocomplete/index.js +37 -0
- package/dist/cjs/components/Breadcrumbs/breadcrumbs.theme.js +21 -0
- package/dist/cjs/components/Breadcrumbs/index.js +72 -0
- package/dist/cjs/components/Button/Indicator.js +36 -0
- package/dist/cjs/components/Button/button.theme.js +125 -0
- package/dist/cjs/components/Button/index.js +56 -0
- package/dist/cjs/components/Checkbox/checkbox.theme.js +28 -0
- package/dist/cjs/components/Checkbox/index.js +26 -0
- package/dist/cjs/components/Drawer/index.js +24 -0
- package/dist/cjs/components/FileUploader/index.js +330 -0
- package/dist/cjs/components/FormControlLabel/index.js +23 -0
- package/dist/cjs/components/Input/index.js +42 -0
- package/dist/cjs/components/Input/input.theme.js +108 -0
- package/dist/cjs/components/LinearProgress/index.js +55 -0
- package/dist/cjs/components/LinearProgress/linearProgress.theme.js +24 -0
- package/dist/cjs/components/Link/index.js +31 -0
- package/dist/cjs/components/List/index.js +22 -0
- package/dist/cjs/components/ListItem/index.js +22 -0
- package/dist/cjs/components/ListItemButton/index.js +24 -0
- package/dist/cjs/components/ListItemText/index.js +22 -0
- package/dist/cjs/components/MenuFlyout/constants.js +12 -0
- package/dist/cjs/components/MenuFlyout/index.js +46 -0
- package/dist/cjs/components/MenuFlyout/menuFlyout.theme.js +52 -0
- package/dist/cjs/components/Modal/index.js +27 -0
- package/dist/cjs/components/Modal/modal.theme.js +35 -0
- package/dist/cjs/components/Panel/index.js +112 -0
- package/dist/cjs/components/ProgressIndicator/DefaultProgress.js +30 -0
- package/dist/cjs/components/ProgressIndicator/MLProgress.js +32 -0
- package/dist/cjs/components/ProgressIndicator/index.js +35 -0
- package/dist/cjs/components/RadioButton/RadioButton.theme.js +64 -0
- package/dist/cjs/components/RadioButton/index.js +44 -0
- package/dist/cjs/components/RadioGroup/index.js +25 -0
- package/dist/cjs/components/Select/index.js +118 -0
- package/dist/cjs/components/Select/select.theme.js +63 -0
- package/dist/cjs/components/StatusChip/constants.js +12 -0
- package/dist/cjs/components/StatusChip/index.js +40 -0
- package/dist/cjs/components/StatusChip/statusChip.theme.js +46 -0
- package/dist/cjs/components/Step/index.js +23 -0
- package/dist/cjs/components/StepLabel/index.js +22 -0
- package/dist/cjs/components/Stepper/index.js +25 -0
- package/dist/cjs/components/Stepper/stepper.theme.js +58 -0
- package/dist/cjs/components/Table/index.js +133 -0
- package/dist/cjs/components/Tabs/index.js +50 -0
- package/dist/cjs/components/Tabs/tabs.theme.js +39 -0
- package/dist/cjs/components/ThemeProvider/index.js +26 -0
- package/dist/cjs/components/Toast/index.js +37 -0
- package/dist/cjs/components/Typography/index.js +21 -0
- package/dist/cjs/components/UtilityRail/index.js +76 -0
- package/dist/cjs/components/UtilityRail/mock.js +32 -0
- package/dist/cjs/components/ZeroState/index.js +25 -0
- package/dist/cjs/components/icons/HomeOutlinedIcon/index.js +15 -0
- package/dist/cjs/components/icons/IconGroups/index.js +15 -0
- package/dist/cjs/components/icons/IconListItem/index.js +16 -0
- package/dist/cjs/index.js +312 -0
- package/dist/{assets → esm/assets}/theme.js +12 -9
- package/dist/{components → esm/components}/Alert/index.js +2 -2
- package/dist/esm/components/Autocomplete/index.js +29 -0
- package/dist/{components → esm/components}/Breadcrumbs/index.js +3 -1
- package/dist/{components → esm/components}/Button/Indicator.js +1 -1
- package/dist/{components → esm/components}/Button/button.theme.js +14 -9
- package/dist/esm/components/FileUploader/index.js +324 -0
- package/dist/{components → esm/components}/Input/input.theme.js +2 -2
- package/dist/{components → esm/components}/LinearProgress/index.js +1 -1
- package/dist/esm/components/Link/index.js +22 -0
- package/dist/{components → esm/components}/Modal/modal.theme.js +1 -1
- package/dist/{components → esm/components}/Panel/index.js +6 -4
- package/dist/{components → esm/components}/ProgressIndicator/DefaultProgress.js +1 -1
- package/dist/{components → esm/components}/ProgressIndicator/MLProgress.js +1 -1
- package/dist/esm/components/ProgressIndicator/index.js +28 -0
- package/dist/{components → esm/components}/RadioButton/RadioButton.theme.js +3 -3
- package/dist/{components → esm/components}/Select/index.js +2 -2
- package/dist/esm/components/StatusChip/statusChip.theme.js +39 -0
- package/dist/{components → esm/components}/Stepper/stepper.theme.js +1 -1
- package/dist/{components → esm/components}/Table/index.js +9 -3
- package/dist/{components → esm/components}/Tabs/index.js +1 -1
- package/dist/{components → esm/components}/ThemeProvider/index.js +3 -1
- package/dist/esm/components/Toast/index.js +29 -0
- package/dist/{components → esm/components}/UtilityRail/index.js +6 -4
- package/dist/{components → types/components}/Alert/index.d.ts +1 -1
- package/dist/{components → types/components}/AudioSlider/index.d.ts +2 -1
- package/dist/{components → types/components}/Autocomplete/index.d.ts +1 -1
- package/dist/{components → types/components}/Breadcrumbs/breadcrumbs.theme.d.ts +1 -1
- package/dist/{components → types/components}/Breadcrumbs/index.d.ts +1 -1
- package/dist/types/components/Button/Indicator.d.ts +3 -0
- package/dist/{components → types/components}/Button/button.theme.d.ts +1 -1
- package/dist/{components → types/components}/Button/index.d.ts +1 -1
- package/dist/{components → types/components}/Checkbox/checkbox.theme.d.ts +1 -1
- package/dist/{components → types/components}/Checkbox/index.d.ts +2 -2
- package/dist/{components → types/components}/Drawer/index.d.ts +1 -1
- package/dist/{components → types/components}/FileUploader/index.d.ts +3 -2
- package/dist/{components → types/components}/FormControlLabel/index.d.ts +1 -1
- package/dist/{components → types/components}/Input/index.d.ts +1 -1
- package/dist/{components → types/components}/LinearProgress/index.d.ts +2 -1
- package/dist/{components → types/components}/Link/index.d.ts +1 -1
- package/dist/{components → types/components}/List/index.d.ts +1 -1
- package/dist/{components → types/components}/ListItem/index.d.ts +1 -1
- package/dist/{components → types/components}/ListItemButton/index.d.ts +1 -1
- package/dist/{components → types/components}/ListItemText/index.d.ts +1 -1
- package/dist/{components → types/components}/MenuFlyout/index.d.ts +1 -1
- package/dist/{components → types/components}/Modal/index.d.ts +1 -1
- package/dist/{components → types/components}/Panel/index.d.ts +1 -1
- package/dist/{components → types/components}/ProgressIndicator/DefaultProgress.d.ts +2 -1
- package/dist/{components → types/components}/ProgressIndicator/MLProgress.d.ts +2 -1
- package/dist/{components → types/components}/ProgressIndicator/index.d.ts +2 -1
- package/dist/{components → types/components}/RadioButton/RadioButton.theme.d.ts +1 -1
- package/dist/{components → types/components}/RadioButton/index.d.ts +1 -1
- package/dist/{components → types/components}/RadioGroup/index.d.ts +1 -1
- package/dist/{components → types/components}/Select/index.d.ts +1 -1
- package/dist/{components → types/components}/Select/select.theme.d.ts +1 -1
- package/dist/{components → types/components}/StatusChip/index.d.ts +1 -1
- package/dist/{components → types/components}/StatusChip/statusChip.theme.d.ts +1 -1
- package/dist/{components → types/components}/Step/index.d.ts +1 -1
- package/dist/{components → types/components}/StepLabel/index.d.ts +1 -1
- package/dist/{components → types/components}/Stepper/index.d.ts +1 -1
- package/dist/{components → types/components}/Stepper/stepper.theme.d.ts +1 -1
- package/dist/{components → types/components}/Table/index.d.ts +9 -9
- package/dist/{components → types/components}/Tabs/index.d.ts +1 -1
- package/dist/{components → types/components}/Tabs/tabs.theme.d.ts +1 -1
- package/dist/{components → types/components}/ThemeProvider/index.d.ts +1 -1
- package/dist/{components → types/components}/Toast/index.d.ts +2 -1
- package/dist/{components → types/components}/Typography/index.d.ts +1 -1
- package/dist/{components → types/components}/UtilityRail/index.d.ts +2 -1
- package/dist/types/components/ZeroState/index.d.ts +3 -0
- package/dist/{components → types/components}/icons/HomeOutlinedIcon/index.d.ts +2 -1
- package/dist/{components → types/components}/icons/IconGroups/index.d.ts +2 -1
- package/dist/{components → types/components}/icons/IconListItem/index.d.ts +2 -2
- package/package.json +10 -8
- package/dist/components/Autocomplete/index.js +0 -24
- package/dist/components/Button/Indicator.d.ts +0 -2
- package/dist/components/FileUploader/index.js +0 -305
- package/dist/components/Link/index.js +0 -16
- package/dist/components/ProgressIndicator/index.js +0 -22
- package/dist/components/StatusChip/statusChip.theme.js +0 -34
- package/dist/components/Toast/index.js +0 -23
- package/dist/components/ZeroState/index.d.ts +0 -2
- /package/dist/{components → esm/components}/AudioSlider/index.js +0 -0
- /package/dist/{components → esm/components}/Breadcrumbs/breadcrumbs.theme.js +0 -0
- /package/dist/{components → esm/components}/Button/index.js +0 -0
- /package/dist/{components → esm/components}/Checkbox/checkbox.theme.js +0 -0
- /package/dist/{components → esm/components}/Checkbox/index.js +0 -0
- /package/dist/{components → esm/components}/Drawer/index.js +0 -0
- /package/dist/{components → esm/components}/FormControlLabel/index.js +0 -0
- /package/dist/{components → esm/components}/Input/index.js +0 -0
- /package/dist/{components → esm/components}/LinearProgress/linearProgress.theme.js +0 -0
- /package/dist/{components → esm/components}/List/index.js +0 -0
- /package/dist/{components → esm/components}/ListItem/index.js +0 -0
- /package/dist/{components → esm/components}/ListItemButton/index.js +0 -0
- /package/dist/{components → esm/components}/ListItemText/index.js +0 -0
- /package/dist/{components → esm/components}/MenuFlyout/constants.js +0 -0
- /package/dist/{components → esm/components}/MenuFlyout/index.js +0 -0
- /package/dist/{components → esm/components}/MenuFlyout/menuFlyout.theme.js +0 -0
- /package/dist/{components → esm/components}/Modal/index.js +0 -0
- /package/dist/{components → esm/components}/RadioButton/index.js +0 -0
- /package/dist/{components → esm/components}/RadioGroup/index.js +0 -0
- /package/dist/{components → esm/components}/Select/select.theme.js +0 -0
- /package/dist/{components → esm/components}/StatusChip/constants.js +0 -0
- /package/dist/{components → esm/components}/StatusChip/index.js +0 -0
- /package/dist/{components → esm/components}/Step/index.js +0 -0
- /package/dist/{components → esm/components}/StepLabel/index.js +0 -0
- /package/dist/{components → esm/components}/Stepper/index.js +0 -0
- /package/dist/{components → esm/components}/Tabs/tabs.theme.js +0 -0
- /package/dist/{components → esm/components}/Typography/index.js +0 -0
- /package/dist/{components → esm/components}/UtilityRail/mock.js +0 -0
- /package/dist/{components → esm/components}/ZeroState/index.js +0 -0
- /package/dist/{components → esm/components}/icons/HomeOutlinedIcon/index.js +0 -0
- /package/dist/{components → esm/components}/icons/IconGroups/index.js +0 -0
- /package/dist/{components → esm/components}/icons/IconListItem/index.js +0 -0
- /package/dist/{index.js → esm/index.js} +0 -0
- /package/dist/{assets → types/assets}/theme.d.ts +0 -0
- /package/dist/{components → types/components}/Input/input.theme.d.ts +0 -0
- /package/dist/{components → types/components}/LinearProgress/linearProgress.theme.d.ts +0 -0
- /package/dist/{components → types/components}/MenuFlyout/constants.d.ts +0 -0
- /package/dist/{components → types/components}/MenuFlyout/menuFlyout.theme.d.ts +0 -0
- /package/dist/{components → types/components}/Modal/modal.theme.d.ts +0 -0
- /package/dist/{components → types/components}/StatusChip/constants.d.ts +0 -0
- /package/dist/{components → types/components}/UtilityRail/mock.d.ts +0 -0
- /package/dist/{index.d.ts → types/index.d.ts} +0 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _material = require("@mui/material");
|
|
8
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
|
+
var DefaultProgress = function DefaultProgress(props) {
|
|
10
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
|
|
11
|
+
sx: {
|
|
12
|
+
display: 'flex'
|
|
13
|
+
},
|
|
14
|
+
className: props.className,
|
|
15
|
+
children: [props.itemLoading && /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
|
|
16
|
+
sx: {
|
|
17
|
+
fontSize: '14px',
|
|
18
|
+
mr: '10px'
|
|
19
|
+
},
|
|
20
|
+
children: " Loading ".concat(props.itemLoading)
|
|
21
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.CircularProgress, {
|
|
22
|
+
"data-testid": props['data-testid'],
|
|
23
|
+
value: props.value,
|
|
24
|
+
variant: props.variant,
|
|
25
|
+
size: 18
|
|
26
|
+
})]
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
var _default = DefaultProgress;
|
|
30
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _material = require("@mui/material");
|
|
8
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
|
+
var MLProgress = function MLProgress(props) {
|
|
10
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
|
|
11
|
+
sx: {
|
|
12
|
+
display: 'flex',
|
|
13
|
+
flexDirection: 'column',
|
|
14
|
+
alignItems: 'center',
|
|
15
|
+
justifyContent: 'center'
|
|
16
|
+
},
|
|
17
|
+
className: props.className,
|
|
18
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.CircularProgress, {
|
|
19
|
+
"data-testid": props['data-testid'],
|
|
20
|
+
value: props.value,
|
|
21
|
+
variant: props.variant,
|
|
22
|
+
size: props.type == 'large' ? 50 : 30
|
|
23
|
+
}), props.itemLoading && /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
|
|
24
|
+
sx: {
|
|
25
|
+
fontSize: '14px'
|
|
26
|
+
},
|
|
27
|
+
children: " Loading ".concat(props.itemLoading)
|
|
28
|
+
})]
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
var _default = MLProgress;
|
|
32
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
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); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _DefaultProgress = _interopRequireDefault(require("./DefaultProgress.js"));
|
|
9
|
+
var _MLProgress = _interopRequireDefault(require("./MLProgress.js"));
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
var _excluded = ["type"];
|
|
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
|
+
/**
|
|
21
|
+
- Use a progress indicator to show the user that an operation is in progress.
|
|
22
|
+
**/
|
|
23
|
+
|
|
24
|
+
var ProgressIndicator = function ProgressIndicator(_ref) {
|
|
25
|
+
var _ref$type = _ref.type,
|
|
26
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
27
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
28
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
29
|
+
children: type === 'medium' || type === 'large' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_MLProgress["default"], _objectSpread({
|
|
30
|
+
type: type
|
|
31
|
+
}, props)) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_DefaultProgress["default"], _objectSpread({}, props))
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
var _default = ProgressIndicator;
|
|
35
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var radioButtonTheme = function radioButtonTheme(theme) {
|
|
8
|
+
return {
|
|
9
|
+
defaultProps: {
|
|
10
|
+
disableFocusRipple: true,
|
|
11
|
+
disableTouchRipple: true,
|
|
12
|
+
disableRipple: true
|
|
13
|
+
},
|
|
14
|
+
styleOverrides: {
|
|
15
|
+
root: function root() {
|
|
16
|
+
return {
|
|
17
|
+
display: 'flex',
|
|
18
|
+
width: 'fit-content',
|
|
19
|
+
height: 'fit-content',
|
|
20
|
+
padding: '8px',
|
|
21
|
+
'&:hover': {
|
|
22
|
+
backgroundColor: 'transparent'
|
|
23
|
+
},
|
|
24
|
+
'& .MuiSvgIcon-root': {
|
|
25
|
+
boxSizing: 'border-box',
|
|
26
|
+
borderRadius: '50%'
|
|
27
|
+
},
|
|
28
|
+
'&.Mui-checked': {
|
|
29
|
+
'& .MuiSvgIcon-root:nth-of-type(1)': {
|
|
30
|
+
border: "1px solid ".concat(theme.palette.button.main)
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
'& .MuiSvgIcon-root:nth-of-type(1)': {
|
|
34
|
+
boxSizing: 'border-box',
|
|
35
|
+
fontSize: 18,
|
|
36
|
+
color: 'transparent',
|
|
37
|
+
border: "1px solid ".concat(theme.palette.text.secondary),
|
|
38
|
+
transition: 'border-color 0.2s'
|
|
39
|
+
},
|
|
40
|
+
'& .MuiSvgIcon-root:nth-of-type(2)': {
|
|
41
|
+
boxSizing: 'border-box',
|
|
42
|
+
width: 'auto',
|
|
43
|
+
height: 'auto',
|
|
44
|
+
color: 'transparent',
|
|
45
|
+
background: theme.palette.button.main,
|
|
46
|
+
margin: '3.37px 3.38px',
|
|
47
|
+
transition: 'background 0.2s'
|
|
48
|
+
},
|
|
49
|
+
'&.Mui-disabled': {
|
|
50
|
+
'& .MuiSvgIcon-root:nth-of-type(1)': {
|
|
51
|
+
border: "1px solid ".concat(theme.palette.text.disabled)
|
|
52
|
+
},
|
|
53
|
+
'& .MuiSvgIcon-root:nth-of-type(2)': {
|
|
54
|
+
transform: 'scale(1)',
|
|
55
|
+
background: theme.palette.text.disabled
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
var _default = radioButtonTheme;
|
|
64
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _material = require("@mui/material");
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
var RadioButton = function RadioButton(props) {
|
|
12
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.FormControlLabel, {
|
|
13
|
+
label: props.label,
|
|
14
|
+
sx: {
|
|
15
|
+
margin: 0,
|
|
16
|
+
height: '36px',
|
|
17
|
+
color: function color(theme) {
|
|
18
|
+
return theme.palette.text.secondary;
|
|
19
|
+
},
|
|
20
|
+
'& .MuiTypography-root': {
|
|
21
|
+
lineHeight: '24px'
|
|
22
|
+
},
|
|
23
|
+
'&.Mui-disabled': {
|
|
24
|
+
'& .MuiTypography-root': {
|
|
25
|
+
color: function color(theme) {
|
|
26
|
+
return theme.palette.text.disabled;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
className: props.className,
|
|
32
|
+
control: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Radio, {
|
|
33
|
+
"data-testid": props['data-testid'],
|
|
34
|
+
name: props.name,
|
|
35
|
+
checked: props.checked,
|
|
36
|
+
disabled: props.disabled,
|
|
37
|
+
required: props.required,
|
|
38
|
+
defaultChecked: props.defaultChecked,
|
|
39
|
+
onChange: props.onChange
|
|
40
|
+
})
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
var _default = RadioButton;
|
|
44
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
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); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _material = require("@mui/material");
|
|
9
|
+
var React = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
|
+
var RadioGroup = function RadioGroup(props) {
|
|
14
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.RadioGroup, {
|
|
15
|
+
"data-testid": props['data-testid'],
|
|
16
|
+
defaultValue: props.defaultValue,
|
|
17
|
+
name: props.name,
|
|
18
|
+
onChange: props.onChange,
|
|
19
|
+
value: props.value,
|
|
20
|
+
sx: props.sx,
|
|
21
|
+
className: props.className
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
var _default = RadioGroup;
|
|
25
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
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); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _material = require("@mui/material");
|
|
9
|
+
var _iconsMaterial = require("@mui/icons-material");
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
14
|
+
function Select(props) {
|
|
15
|
+
var _props$fullWidth;
|
|
16
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
|
|
17
|
+
sx: {
|
|
18
|
+
maxHeight: props.helperText ? '77px' : '56px'
|
|
19
|
+
},
|
|
20
|
+
className: props.className,
|
|
21
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.InputLabel, {
|
|
22
|
+
sx: {
|
|
23
|
+
display: 'flex',
|
|
24
|
+
alignItems: 'flex-end',
|
|
25
|
+
lineHeight: '17px',
|
|
26
|
+
marginBottom: '3px'
|
|
27
|
+
},
|
|
28
|
+
children: props.label
|
|
29
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
|
|
30
|
+
sx: {
|
|
31
|
+
display: 'flex',
|
|
32
|
+
'& .MuiOutlinedInput-root': {
|
|
33
|
+
'& .MuiSelect-outlined': {
|
|
34
|
+
padding: props.helperText ? '7px 7.5px' : '5px 8px',
|
|
35
|
+
fontSize: props.helperText ? '14px' : '16px',
|
|
36
|
+
lineHeight: props.helperText ? '20px' : '24px'
|
|
37
|
+
},
|
|
38
|
+
'&.Mui-error': {
|
|
39
|
+
'& .MuiSelect-outlined': {
|
|
40
|
+
padding: props.helperText ? '7px 8px' : '5px 13px'
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Select, {
|
|
46
|
+
"data-testid": props['data-testid'],
|
|
47
|
+
fullWidth: (_props$fullWidth = props.fullWidth) !== null && _props$fullWidth !== void 0 ? _props$fullWidth : true,
|
|
48
|
+
displayEmpty: true,
|
|
49
|
+
error: props.error !== undefined,
|
|
50
|
+
disabled: props.disabled,
|
|
51
|
+
value: props.value,
|
|
52
|
+
defaultValue: props.defaultValue,
|
|
53
|
+
onChange: props.onChange,
|
|
54
|
+
onClose: props.onClose,
|
|
55
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.MenuItem, {
|
|
56
|
+
value: "",
|
|
57
|
+
children: "Select"
|
|
58
|
+
}), props.items.map(function (item, index) {
|
|
59
|
+
var _item$key;
|
|
60
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.MenuItem, {
|
|
61
|
+
value: item.value,
|
|
62
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
|
|
63
|
+
sx: {
|
|
64
|
+
lineHeight: '20px',
|
|
65
|
+
fontSize: '14px',
|
|
66
|
+
opacity: 0.9
|
|
67
|
+
},
|
|
68
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
|
|
69
|
+
sx: {
|
|
70
|
+
fontWeight: 700
|
|
71
|
+
},
|
|
72
|
+
children: item.title
|
|
73
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
|
|
74
|
+
children: item.name
|
|
75
|
+
})]
|
|
76
|
+
})
|
|
77
|
+
}, (_item$key = item.key) !== null && _item$key !== void 0 ? _item$key : index);
|
|
78
|
+
})]
|
|
79
|
+
})
|
|
80
|
+
}), props.helperText && /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.FormHelperText, {
|
|
81
|
+
sx: {
|
|
82
|
+
lineHeight: '18px',
|
|
83
|
+
color: function color(theme) {
|
|
84
|
+
return theme.palette.text.disabled;
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
children: props.helperText
|
|
88
|
+
}), props.error && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
|
|
89
|
+
sx: {
|
|
90
|
+
display: 'flex',
|
|
91
|
+
alignItems: 'center'
|
|
92
|
+
},
|
|
93
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_iconsMaterial.Lens, {
|
|
94
|
+
sx: {
|
|
95
|
+
width: '14px',
|
|
96
|
+
height: '14px',
|
|
97
|
+
margin: '1px 3px 0 -2px',
|
|
98
|
+
color: function color(theme) {
|
|
99
|
+
return theme.palette.error.main;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.FormHelperText, {
|
|
103
|
+
sx: {
|
|
104
|
+
color: function color(theme) {
|
|
105
|
+
return theme.palette.error.main;
|
|
106
|
+
},
|
|
107
|
+
fontSize: function fontSize(theme) {
|
|
108
|
+
return theme.typography.body1.fontSize;
|
|
109
|
+
},
|
|
110
|
+
lineHeight: '18px'
|
|
111
|
+
},
|
|
112
|
+
children: props.error
|
|
113
|
+
})]
|
|
114
|
+
})]
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
var _default = Select;
|
|
118
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var selectTheme = function selectTheme(theme) {
|
|
8
|
+
return {
|
|
9
|
+
defaultProps: {
|
|
10
|
+
// fullWidth: true,
|
|
11
|
+
displayEmpty: true
|
|
12
|
+
},
|
|
13
|
+
styleOverrides: {
|
|
14
|
+
root: function root() {
|
|
15
|
+
return {
|
|
16
|
+
'&.MuiOutlinedInput-root': {
|
|
17
|
+
'& .MuiSelect-outlined': {
|
|
18
|
+
border: '1px solid ' + theme.palette.text.secondary
|
|
19
|
+
},
|
|
20
|
+
'&.Mui-focused': {
|
|
21
|
+
'& .MuiOutlinedInput-notchedOutline': {
|
|
22
|
+
borderColor: theme.palette.secondary.main
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
'&.Mui-error': {
|
|
26
|
+
'& .MuiSelect-outlined': {
|
|
27
|
+
color: theme.palette.error.main,
|
|
28
|
+
border: '1px solid ' + theme.palette.error.main,
|
|
29
|
+
fontSize: '16px',
|
|
30
|
+
lineHeight: '24px'
|
|
31
|
+
},
|
|
32
|
+
'& .MuiOutlinedInput-notchedOutline': {
|
|
33
|
+
borderColor: theme.palette.error.main
|
|
34
|
+
},
|
|
35
|
+
'& .MuiSelect-iconOutlined': {
|
|
36
|
+
color: theme.palette.text.tertiary
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
'&.Mui-disabled': {
|
|
40
|
+
'& .MuiSelect-iconOutlined': {
|
|
41
|
+
color: theme.palette.text.disabled
|
|
42
|
+
},
|
|
43
|
+
'& .MuiSelect-outlined': {
|
|
44
|
+
background: theme.palette.misc.rowHoverGreyOne,
|
|
45
|
+
borderColor: theme.palette.misc.altBackground,
|
|
46
|
+
color: theme.palette.text.disabled,
|
|
47
|
+
WebkitTextFillColor: theme.palette.text.disabled
|
|
48
|
+
},
|
|
49
|
+
'& .MuiOutlinedInput-notchedOutline': {
|
|
50
|
+
border: 'none'
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
'& .MuiSelect-iconOutlined': {
|
|
54
|
+
color: theme.palette.secondary.main
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
var _default = selectTheme;
|
|
63
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.PROCESSING = exports.ERROR = exports.COMPLETE = void 0;
|
|
7
|
+
var COMPLETE = 'complete';
|
|
8
|
+
exports.COMPLETE = COMPLETE;
|
|
9
|
+
var PROCESSING = 'processing';
|
|
10
|
+
exports.PROCESSING = PROCESSING;
|
|
11
|
+
var ERROR = 'error';
|
|
12
|
+
exports.ERROR = ERROR;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _material = require("@mui/material");
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
/**
|
|
12
|
+
- Use a StatusChip to display the status of some action to the user.
|
|
13
|
+
- 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.
|
|
14
|
+
- To override Stock Option labels, but retain corresponding chip color, use the `label` prop.
|
|
15
|
+
- To override Stock Option colors, but retain corresponding label, either use the `color` prop (for MUI stock color options) **OR** use the `coloroverride` prop (for full color customization).
|
|
16
|
+
- To fully customize StatusChip:
|
|
17
|
+
- Set `status` prop to "custom";
|
|
18
|
+
- Pass your custom string to `label` prop;
|
|
19
|
+
- Pass an MUI stock color option to `color` prop **OR** pass a custom color Hex Value to `coloroverride` prop.
|
|
20
|
+
**/
|
|
21
|
+
|
|
22
|
+
var StatusChip = function StatusChip(props) {
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
|
|
24
|
+
sx: {
|
|
25
|
+
display: "inline-flex",
|
|
26
|
+
position: "relative"
|
|
27
|
+
},
|
|
28
|
+
className: props.className,
|
|
29
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Chip, {
|
|
30
|
+
"data-testid": props['data-testid'],
|
|
31
|
+
label: props.label ? props.label : props.status,
|
|
32
|
+
color: props.color,
|
|
33
|
+
clickable: props.clickable,
|
|
34
|
+
disabled: props.disabled,
|
|
35
|
+
onClick: props.onClick
|
|
36
|
+
})
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var _default = StatusChip;
|
|
40
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _constants = require("./constants.js");
|
|
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 && {
|
|
32
|
+
//@ts-ignore
|
|
33
|
+
backgroundColor: theme.palette.success.main
|
|
34
|
+
}), ownerState.status === _constants.PROCESSING && {
|
|
35
|
+
//@ts-ignore
|
|
36
|
+
backgroundColor: theme.palette.warning.main
|
|
37
|
+
}), ownerState.status === _constants.ERROR && {
|
|
38
|
+
//@ts-ignore
|
|
39
|
+
backgroundColor: theme.palette.error.main
|
|
40
|
+
}));
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
var _default = statusChipTheme;
|
|
46
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _material = require("@mui/material");
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
var Step = function Step(props) {
|
|
12
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Step, {
|
|
13
|
+
"data-testid": props['data-testid'],
|
|
14
|
+
active: props.active,
|
|
15
|
+
completed: props.completed,
|
|
16
|
+
disabled: props.disabled,
|
|
17
|
+
sx: props.sx,
|
|
18
|
+
className: props.className,
|
|
19
|
+
children: props.children
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
var _default = Step;
|
|
23
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
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); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _material = require("@mui/material");
|
|
9
|
+
var React = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
|
+
var StepLabel = function StepLabel(props) {
|
|
14
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.StepLabel, {
|
|
15
|
+
"data-testid": props['data-testid'],
|
|
16
|
+
sx: props.sx,
|
|
17
|
+
className: props.className,
|
|
18
|
+
children: props.children
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
var _default = StepLabel;
|
|
22
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _material = require("@mui/material");
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
/**
|
|
12
|
+
The Stepper is used for highlighting where a user is in a progression of steps.
|
|
13
|
+
**/
|
|
14
|
+
|
|
15
|
+
var Stepper = function Stepper(props) {
|
|
16
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Stepper, {
|
|
17
|
+
"data-testid": props['data-testid'],
|
|
18
|
+
activeStep: props.activeStep,
|
|
19
|
+
sx: props.sx,
|
|
20
|
+
className: props.className,
|
|
21
|
+
children: props.children
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
var _default = Stepper;
|
|
25
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var stepperTheme = function stepperTheme(theme) {
|
|
8
|
+
return {
|
|
9
|
+
MuiStepConnector: {
|
|
10
|
+
styleOverrides: {
|
|
11
|
+
line: {
|
|
12
|
+
borderColor: "#E0E8F0"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
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",
|
|
29
|
+
text: {
|
|
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
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
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"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
var _default = stepperTheme;
|
|
58
|
+
exports["default"] = _default;
|