@veritone-ce/design-system 1.12.35 → 1.12.36
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/assets/theme.js +49 -63
- package/dist/components/Alert/index.d.ts +1 -1
- package/dist/components/Alert/index.js +20 -23
- package/dist/components/AudioSlider/index.js +7 -16
- package/dist/components/Breadcrumbs/breadcrumbs.theme.d.ts +1 -1
- package/dist/components/Breadcrumbs/breadcrumbs.theme.js +1 -8
- package/dist/components/Breadcrumbs/index.js +11 -19
- package/dist/components/Button/Indicator.js +6 -13
- package/dist/components/Button/button.theme.d.ts +1 -1
- package/dist/components/Button/button.theme.js +10 -22
- package/dist/components/Button/index.js +10 -21
- package/dist/components/Checkbox/checkbox.theme.d.ts +1 -1
- package/dist/components/Checkbox/checkbox.theme.js +1 -8
- package/dist/components/Checkbox/index.js +6 -14
- package/dist/components/Drawer/index.js +5 -15
- package/dist/components/FileUploader/index.js +40 -65
- package/dist/components/FileUploader/useUploadFile.d.ts +1 -1
- package/dist/components/FileUploader/useUploadFile.js +22 -44
- package/dist/components/FormControlLabel/index.d.ts +1 -1
- package/dist/components/FormControlLabel/index.js +5 -15
- package/dist/components/Input/index.js +7 -15
- package/dist/components/Input/input.theme.js +3 -10
- package/dist/components/LinearProgress/index.js +10 -16
- package/dist/components/LinearProgress/linearProgress.theme.d.ts +1 -2
- package/dist/components/LinearProgress/linearProgress.theme.js +2 -9
- package/dist/components/Link/index.js +7 -22
- package/dist/components/List/index.js +5 -15
- package/dist/components/ListItem/index.js +5 -15
- package/dist/components/ListItemButton/index.js +5 -15
- package/dist/components/ListItemText/index.js +5 -15
- package/dist/components/MenuFlyout/constants.js +3 -12
- package/dist/components/MenuFlyout/index.js +12 -19
- package/dist/components/MenuFlyout/menuFlyout.theme.d.ts +2 -2
- package/dist/components/MenuFlyout/menuFlyout.theme.js +3 -11
- package/dist/components/Modal/index.js +7 -14
- package/dist/components/Modal/modal.theme.js +2 -9
- package/dist/components/Panel/index.js +18 -25
- package/dist/components/ProgressIndicator/DefaultProgress.d.ts +1 -1
- package/dist/components/ProgressIndicator/DefaultProgress.js +8 -14
- package/dist/components/ProgressIndicator/MLProgress.d.ts +1 -1
- package/dist/components/ProgressIndicator/MLProgress.js +8 -14
- package/dist/components/ProgressIndicator/index.js +10 -23
- package/dist/components/RadioButton/RadioButton.theme.d.ts +1 -1
- package/dist/components/RadioButton/RadioButton.theme.js +4 -11
- package/dist/components/RadioButton/index.js +6 -14
- package/dist/components/RadioGroup/index.d.ts +2 -2
- package/dist/components/RadioGroup/index.js +5 -15
- package/dist/components/Select/index.js +20 -30
- package/dist/components/Select/select.theme.d.ts +1 -1
- package/dist/components/Select/select.theme.js +1 -8
- package/dist/components/StatusChip/constants.js +3 -12
- package/dist/components/StatusChip/index.js +6 -14
- package/dist/components/StatusChip/statusChip.theme.d.ts +1 -1
- package/dist/components/StatusChip/statusChip.theme.js +7 -19
- package/dist/components/Step/index.js +5 -13
- package/dist/components/StepLabel/index.js +5 -15
- package/dist/components/Stepper/index.js +5 -13
- package/dist/components/Stepper/stepper.theme.d.ts +1 -1
- package/dist/components/Stepper/stepper.theme.js +2 -9
- package/dist/components/Table/index.js +27 -49
- package/dist/components/Tabs/index.js +12 -21
- package/dist/components/Tabs/tabs.theme.d.ts +1 -1
- package/dist/components/Tabs/tabs.theme.js +1 -8
- package/dist/components/ThemeProvider/index.js +9 -18
- package/dist/components/Toast/index.d.ts +1 -1
- package/dist/components/Toast/index.js +8 -23
- package/dist/components/Typography/index.js +5 -13
- package/dist/components/UtilityRail/index.js +17 -25
- package/dist/components/UtilityRail/mock.d.ts +1 -1
- package/dist/components/UtilityRail/mock.js +2 -9
- package/dist/components/ZeroState/index.js +5 -12
- package/dist/components/icons/HomeOutlinedIcon/index.js +4 -11
- package/dist/components/icons/IconGroups/index.js +4 -12
- package/dist/components/icons/IconListItem/index.d.ts +1 -1
- package/dist/components/icons/IconListItem/index.js +4 -12
- package/dist/index.d.ts +70 -70
- package/dist/index.js +36 -304
- package/package.json +33 -31
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var linearProgress = function linearProgress(theme) {
|
|
1
|
+
var linearProgress = function linearProgress() {
|
|
8
2
|
return {
|
|
9
3
|
styleOverrides: {
|
|
10
4
|
root: function root() {
|
|
@@ -20,5 +14,4 @@ var linearProgress = function linearProgress(theme) {
|
|
|
20
14
|
}
|
|
21
15
|
};
|
|
22
16
|
};
|
|
23
|
-
|
|
24
|
-
exports["default"] = _default;
|
|
17
|
+
export default linearProgress;
|
|
@@ -1,31 +1,16 @@
|
|
|
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
1
|
var _excluded = ["sx", "className"];
|
|
12
|
-
function
|
|
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 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; }
|
|
2
|
+
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); }
|
|
20
3
|
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; }
|
|
4
|
+
import { Link as MuiLink } from '@mui/material';
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
21
7
|
var Link = function Link(_ref) {
|
|
22
8
|
var sx = _ref.sx,
|
|
23
9
|
className = _ref.className,
|
|
24
|
-
restProps =
|
|
25
|
-
return /*#__PURE__*/(
|
|
10
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
11
|
+
return /*#__PURE__*/_jsx(MuiLink, _extends({}, restProps, {
|
|
26
12
|
sx: sx,
|
|
27
13
|
className: className
|
|
28
14
|
}));
|
|
29
15
|
};
|
|
30
|
-
|
|
31
|
-
exports["default"] = _default;
|
|
16
|
+
export default Link;
|
|
@@ -1,22 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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; }
|
|
1
|
+
import { List as MuiList } from '@mui/material';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
4
|
var List = function List(props) {
|
|
14
|
-
return /*#__PURE__*/(
|
|
5
|
+
return /*#__PURE__*/_jsx(MuiList, {
|
|
15
6
|
"data-testid": props['data-testid'],
|
|
16
7
|
sx: props.sx,
|
|
17
8
|
className: props.className,
|
|
18
9
|
children: props.children
|
|
19
10
|
});
|
|
20
11
|
};
|
|
21
|
-
|
|
22
|
-
exports["default"] = _default;
|
|
12
|
+
export default List;
|
|
@@ -1,22 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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; }
|
|
1
|
+
import { ListItem as MuiListItem } from '@mui/material';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
4
|
var ListItem = function ListItem(props) {
|
|
14
|
-
return /*#__PURE__*/(
|
|
5
|
+
return /*#__PURE__*/_jsx(MuiListItem, {
|
|
15
6
|
"data-testid": props['data-testid'],
|
|
16
7
|
sx: props.sx,
|
|
17
8
|
className: props.className,
|
|
18
9
|
children: props.children
|
|
19
10
|
});
|
|
20
11
|
};
|
|
21
|
-
|
|
22
|
-
exports["default"] = _default;
|
|
12
|
+
export default ListItem;
|
|
@@ -1,17 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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; }
|
|
1
|
+
import { ListItemButton as MuiListItemButton } from '@mui/material';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
4
|
var ListItemButton = function ListItemButton(props) {
|
|
14
|
-
return /*#__PURE__*/(
|
|
5
|
+
return /*#__PURE__*/_jsx(MuiListItemButton, {
|
|
15
6
|
"data-testid": props['data-testid'],
|
|
16
7
|
disabled: props.disabled,
|
|
17
8
|
selected: props.selected,
|
|
@@ -20,5 +11,4 @@ var ListItemButton = function ListItemButton(props) {
|
|
|
20
11
|
children: props.children
|
|
21
12
|
});
|
|
22
13
|
};
|
|
23
|
-
|
|
24
|
-
exports["default"] = _default;
|
|
14
|
+
export default ListItemButton;
|
|
@@ -1,22 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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; }
|
|
1
|
+
import { ListItemText as MuiListItemText } from '@mui/material';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
4
|
var ListItemText = function ListItemText(props) {
|
|
14
|
-
return /*#__PURE__*/(
|
|
5
|
+
return /*#__PURE__*/_jsx(MuiListItemText, {
|
|
15
6
|
"data-testid": props['data-testid'],
|
|
16
7
|
sx: props.sx,
|
|
17
8
|
className: props.className,
|
|
18
9
|
children: props.children
|
|
19
10
|
});
|
|
20
11
|
};
|
|
21
|
-
|
|
22
|
-
exports["default"] = _default;
|
|
12
|
+
export default ListItemText;
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.shareWithLabel = exports.editLabel = exports.deleteLabel = void 0;
|
|
7
|
-
var editLabel = 'Edit Project';
|
|
8
|
-
exports.editLabel = editLabel;
|
|
9
|
-
var shareWithLabel = 'Share with...';
|
|
10
|
-
exports.shareWithLabel = shareWithLabel;
|
|
11
|
-
var deleteLabel = 'Delete Project';
|
|
12
|
-
exports.deleteLabel = deleteLabel;
|
|
1
|
+
export var editLabel = 'Edit Project';
|
|
2
|
+
export var shareWithLabel = 'Share with...';
|
|
3
|
+
export var deleteLabel = 'Delete Project';
|
|
@@ -1,36 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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 }; }
|
|
1
|
+
import { Menu as MuiMenu, MenuItem, ListItemIcon, Box, Typography } from '@mui/material';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
5
|
var MenuFlyout = function MenuFlyout(props) {
|
|
12
|
-
return /*#__PURE__*/(
|
|
6
|
+
return /*#__PURE__*/_jsx(MuiMenu, {
|
|
13
7
|
"data-testid": props['data-testid'],
|
|
14
8
|
open: props.open,
|
|
15
9
|
onClose: props.onClose,
|
|
16
10
|
sx: props.sx,
|
|
17
11
|
className: props.className,
|
|
18
12
|
children: props.menuOptions.map(function (menuItem, index) {
|
|
19
|
-
return /*#__PURE__*/(
|
|
20
|
-
children: /*#__PURE__*/(
|
|
13
|
+
return /*#__PURE__*/_jsx(MenuItem, {
|
|
14
|
+
children: /*#__PURE__*/_jsxs(Box, {
|
|
21
15
|
sx: {
|
|
22
16
|
display: 'flex',
|
|
23
17
|
alignItems: 'center'
|
|
24
18
|
},
|
|
25
|
-
children: [/*#__PURE__*/(
|
|
19
|
+
children: [/*#__PURE__*/_jsx(Box, {
|
|
26
20
|
sx: {
|
|
27
21
|
mr: '10px'
|
|
28
22
|
},
|
|
29
|
-
children: menuItem.icon && /*#__PURE__*/(
|
|
23
|
+
children: menuItem.icon && /*#__PURE__*/_jsx(ListItemIcon, {
|
|
30
24
|
children: menuItem.icon
|
|
31
25
|
})
|
|
32
|
-
}), /*#__PURE__*/(
|
|
33
|
-
children: /*#__PURE__*/(
|
|
26
|
+
}), /*#__PURE__*/_jsx(Box, {
|
|
27
|
+
children: /*#__PURE__*/_jsx(Typography, {
|
|
34
28
|
sx: {
|
|
35
29
|
fontSize: '14px'
|
|
36
30
|
},
|
|
@@ -42,5 +36,4 @@ var MenuFlyout = function MenuFlyout(props) {
|
|
|
42
36
|
})
|
|
43
37
|
});
|
|
44
38
|
};
|
|
45
|
-
|
|
46
|
-
exports["default"] = _default;
|
|
39
|
+
export default MenuFlyout;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Theme } from '../../assets/theme';
|
|
1
|
+
import { Theme } from '../../assets/theme.js';
|
|
2
2
|
export declare const menuFlyoutTheme: (theme: Theme) => {
|
|
3
3
|
styleOverrides: {
|
|
4
4
|
root: () => {
|
|
@@ -29,7 +29,7 @@ export declare const menuFlyoutTheme: (theme: Theme) => {
|
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
|
-
export declare const menuItemTheme: (
|
|
32
|
+
export declare const menuItemTheme: () => {
|
|
33
33
|
styleOverrides: {
|
|
34
34
|
root: () => {
|
|
35
35
|
whiteSpace: string;
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.menuItemTheme = exports.menuFlyoutTheme = void 0;
|
|
7
|
-
var menuFlyoutTheme = function menuFlyoutTheme(theme) {
|
|
1
|
+
export var menuFlyoutTheme = function menuFlyoutTheme(theme) {
|
|
8
2
|
return {
|
|
9
3
|
styleOverrides: {
|
|
10
4
|
root: function root() {
|
|
@@ -38,8 +32,7 @@ var menuFlyoutTheme = function menuFlyoutTheme(theme) {
|
|
|
38
32
|
}
|
|
39
33
|
};
|
|
40
34
|
};
|
|
41
|
-
|
|
42
|
-
var menuItemTheme = function menuItemTheme(theme) {
|
|
35
|
+
export var menuItemTheme = function menuItemTheme() {
|
|
43
36
|
return {
|
|
44
37
|
styleOverrides: {
|
|
45
38
|
root: function root() {
|
|
@@ -52,5 +45,4 @@ var menuItemTheme = function menuItemTheme(theme) {
|
|
|
52
45
|
}
|
|
53
46
|
}
|
|
54
47
|
};
|
|
55
|
-
};
|
|
56
|
-
exports.menuItemTheme = menuItemTheme;
|
|
48
|
+
};
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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 }; }
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Dialog, DialogTitle } from '@mui/material';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
5
|
var Modal = function Modal(props) {
|
|
12
|
-
return /*#__PURE__*/(
|
|
6
|
+
return /*#__PURE__*/_jsxs(Dialog, {
|
|
13
7
|
"data-testid": props['data-testid'],
|
|
14
8
|
open: props.open,
|
|
15
9
|
onClose: props.onClose,
|
|
@@ -17,11 +11,10 @@ var Modal = function Modal(props) {
|
|
|
17
11
|
"aria-describedby": "alert-dialog-description",
|
|
18
12
|
sx: props.sx,
|
|
19
13
|
className: props.className,
|
|
20
|
-
children: [/*#__PURE__*/(
|
|
14
|
+
children: [/*#__PURE__*/_jsx(DialogTitle, {
|
|
21
15
|
id: "alert-dialog-title",
|
|
22
16
|
children: props.title
|
|
23
17
|
}), props.children]
|
|
24
18
|
});
|
|
25
19
|
};
|
|
26
|
-
|
|
27
|
-
exports["default"] = _default;
|
|
20
|
+
export default Modal;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
1
|
var modalTheme = function modalTheme(theme) {
|
|
8
2
|
return {
|
|
9
3
|
defaultProps: {},
|
|
@@ -17,7 +11,7 @@ var modalTheme = function modalTheme(theme) {
|
|
|
17
11
|
margin: 'auto',
|
|
18
12
|
'& .MuiPaper-root': {
|
|
19
13
|
margin: '0px',
|
|
20
|
-
boxShadow: "\n 0px 4px 34px\n "
|
|
14
|
+
boxShadow: "\n 0px 4px 34px\n " + theme.palette.text.primary,
|
|
21
15
|
width: '410px'
|
|
22
16
|
},
|
|
23
17
|
'& .MuiDialogTitle-root': {
|
|
@@ -31,5 +25,4 @@ var modalTheme = function modalTheme(theme) {
|
|
|
31
25
|
}
|
|
32
26
|
};
|
|
33
27
|
};
|
|
34
|
-
|
|
35
|
-
exports["default"] = _default;
|
|
28
|
+
export default modalTheme;
|
|
@@ -1,19 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _material = require("@mui/material");
|
|
8
|
-
var _Close = _interopRequireDefault(require("@mui/icons-material/Close"));
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
1
|
+
import { Box, Typography, useTheme } from '@mui/material';
|
|
2
|
+
import { Close as CloseIcon } from '@mui/icons-material';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
5
|
var Panel = function Panel(props) {
|
|
12
|
-
var _useTheme =
|
|
6
|
+
var _useTheme = useTheme(),
|
|
13
7
|
palette = _useTheme.palette;
|
|
14
|
-
return /*#__PURE__*/(
|
|
8
|
+
return /*#__PURE__*/_jsx(Box, {
|
|
15
9
|
component: "div",
|
|
16
|
-
"data-testid": props['data-testid'] ? "overlay-"
|
|
10
|
+
"data-testid": props['data-testid'] ? "overlay-" + props['data-testid'] : 'overlay-panel',
|
|
17
11
|
sx: {
|
|
18
12
|
position: 'absolute',
|
|
19
13
|
top: 0,
|
|
@@ -24,7 +18,7 @@ var Panel = function Panel(props) {
|
|
|
24
18
|
marginTop: '55px'
|
|
25
19
|
},
|
|
26
20
|
className: props.className,
|
|
27
|
-
children: /*#__PURE__*/(
|
|
21
|
+
children: /*#__PURE__*/_jsxs(Box, {
|
|
28
22
|
component: "div",
|
|
29
23
|
"data-testid": props['data-testid'] || 'wrapper-panel',
|
|
30
24
|
sx: {
|
|
@@ -36,12 +30,12 @@ var Panel = function Panel(props) {
|
|
|
36
30
|
height: '100%',
|
|
37
31
|
display: 'flex',
|
|
38
32
|
flexDirection: 'column',
|
|
39
|
-
boxShadow: "0 4px 10px "
|
|
33
|
+
boxShadow: "0 4px 10px " + palette.text.primary + "80",
|
|
40
34
|
overflow: 'auto',
|
|
41
|
-
borderBottom: "5px solid "
|
|
35
|
+
borderBottom: "5px solid " + palette.secondary.main,
|
|
42
36
|
zIndex: 2
|
|
43
37
|
},
|
|
44
|
-
children: [/*#__PURE__*/(
|
|
38
|
+
children: [/*#__PURE__*/_jsxs(Box, {
|
|
45
39
|
component: "header",
|
|
46
40
|
"data-testid": "header-panel",
|
|
47
41
|
sx: {
|
|
@@ -55,7 +49,7 @@ var Panel = function Panel(props) {
|
|
|
55
49
|
top: 0,
|
|
56
50
|
zIndex: 1000
|
|
57
51
|
},
|
|
58
|
-
children: [/*#__PURE__*/(
|
|
52
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
59
53
|
sx: {
|
|
60
54
|
fontFamily: 'Dosis',
|
|
61
55
|
textTransform: 'uppercase',
|
|
@@ -66,10 +60,10 @@ var Panel = function Panel(props) {
|
|
|
66
60
|
letterSpacing: '0.25px'
|
|
67
61
|
},
|
|
68
62
|
children: props.title
|
|
69
|
-
}), /*#__PURE__*/(
|
|
63
|
+
}), /*#__PURE__*/_jsx(Box, {
|
|
70
64
|
component: "button",
|
|
71
65
|
"aria-label": "close-button-panel",
|
|
72
|
-
"data-testid": props['data-testid'] ? "close-button-"
|
|
66
|
+
"data-testid": props['data-testid'] ? "close-button-" + props['data-testid'] : 'close-button-wrapper-panel',
|
|
73
67
|
onClick: props.onClose,
|
|
74
68
|
sx: {
|
|
75
69
|
cursor: 'pointer',
|
|
@@ -81,7 +75,7 @@ var Panel = function Panel(props) {
|
|
|
81
75
|
alignItems: 'center',
|
|
82
76
|
justifyContent: 'center'
|
|
83
77
|
},
|
|
84
|
-
children: /*#__PURE__*/(
|
|
78
|
+
children: /*#__PURE__*/_jsx(CloseIcon, {
|
|
85
79
|
"data-testid": "panel-close-icon",
|
|
86
80
|
sx: {
|
|
87
81
|
fill: palette.common.white,
|
|
@@ -89,13 +83,13 @@ var Panel = function Panel(props) {
|
|
|
89
83
|
}
|
|
90
84
|
})
|
|
91
85
|
})]
|
|
92
|
-
}), /*#__PURE__*/(
|
|
86
|
+
}), /*#__PURE__*/_jsx(Box, {
|
|
93
87
|
component: "div",
|
|
94
88
|
sx: {
|
|
95
89
|
overflow: 'auto',
|
|
96
90
|
flex: 1
|
|
97
91
|
},
|
|
98
|
-
children: /*#__PURE__*/(
|
|
92
|
+
children: /*#__PURE__*/_jsx(Box, {
|
|
99
93
|
component: "div",
|
|
100
94
|
"data-testid": "panel-content",
|
|
101
95
|
sx: {
|
|
@@ -108,5 +102,4 @@ var Panel = function Panel(props) {
|
|
|
108
102
|
})
|
|
109
103
|
});
|
|
110
104
|
};
|
|
111
|
-
|
|
112
|
-
exports["default"] = _default;
|
|
105
|
+
export default Panel;
|
|
@@ -1,24 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _material = require("@mui/material");
|
|
8
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
1
|
+
import { Box, CircularProgress, Typography } from '@mui/material';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
4
|
var DefaultProgress = function DefaultProgress(props) {
|
|
10
|
-
return /*#__PURE__*/(
|
|
5
|
+
return /*#__PURE__*/_jsxs(Box, {
|
|
11
6
|
sx: {
|
|
12
7
|
display: 'flex'
|
|
13
8
|
},
|
|
14
9
|
className: props.className,
|
|
15
|
-
children: [props.itemLoading && /*#__PURE__*/(
|
|
10
|
+
children: [props.itemLoading && /*#__PURE__*/_jsx(Typography, {
|
|
16
11
|
sx: {
|
|
17
12
|
fontSize: '14px',
|
|
18
13
|
mr: '10px'
|
|
19
14
|
},
|
|
20
|
-
children: " Loading "
|
|
21
|
-
}), /*#__PURE__*/(
|
|
15
|
+
children: " Loading " + props.itemLoading
|
|
16
|
+
}), /*#__PURE__*/_jsx(CircularProgress, {
|
|
22
17
|
"data-testid": props['data-testid'],
|
|
23
18
|
value: props.value,
|
|
24
19
|
variant: props.variant,
|
|
@@ -26,5 +21,4 @@ var DefaultProgress = function DefaultProgress(props) {
|
|
|
26
21
|
})]
|
|
27
22
|
});
|
|
28
23
|
};
|
|
29
|
-
|
|
30
|
-
exports["default"] = _default;
|
|
24
|
+
export default DefaultProgress;
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _material = require("@mui/material");
|
|
8
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
1
|
+
import { CircularProgress, Typography, Box } from '@mui/material';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
4
|
var MLProgress = function MLProgress(props) {
|
|
10
|
-
return /*#__PURE__*/(
|
|
5
|
+
return /*#__PURE__*/_jsxs(Box, {
|
|
11
6
|
sx: {
|
|
12
7
|
display: 'flex',
|
|
13
8
|
flexDirection: 'column',
|
|
@@ -15,18 +10,17 @@ var MLProgress = function MLProgress(props) {
|
|
|
15
10
|
justifyContent: 'center'
|
|
16
11
|
},
|
|
17
12
|
className: props.className,
|
|
18
|
-
children: [/*#__PURE__*/(
|
|
13
|
+
children: [/*#__PURE__*/_jsx(CircularProgress, {
|
|
19
14
|
"data-testid": props['data-testid'],
|
|
20
15
|
value: props.value,
|
|
21
16
|
variant: props.variant,
|
|
22
17
|
size: props.type == 'large' ? 50 : 30
|
|
23
|
-
}), props.itemLoading && /*#__PURE__*/(
|
|
18
|
+
}), props.itemLoading && /*#__PURE__*/_jsx(Typography, {
|
|
24
19
|
sx: {
|
|
25
20
|
fontSize: '14px'
|
|
26
21
|
},
|
|
27
|
-
children: " Loading "
|
|
22
|
+
children: " Loading " + props.itemLoading
|
|
28
23
|
})]
|
|
29
24
|
});
|
|
30
25
|
};
|
|
31
|
-
|
|
32
|
-
exports["default"] = _default;
|
|
26
|
+
export default MLProgress;
|
|
@@ -1,22 +1,10 @@
|
|
|
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"));
|
|
9
|
-
var _MLProgress = _interopRequireDefault(require("./MLProgress"));
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
1
|
var _excluded = ["type"];
|
|
12
|
-
function
|
|
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; }
|
|
2
|
+
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); }
|
|
19
3
|
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; }
|
|
4
|
+
import DefaultProgress from './DefaultProgress.js';
|
|
5
|
+
import MLProgress from './MLProgress.js';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
20
8
|
/**
|
|
21
9
|
- Use a progress indicator to show the user that an operation is in progress.
|
|
22
10
|
**/
|
|
@@ -24,12 +12,11 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
24
12
|
var ProgressIndicator = function ProgressIndicator(_ref) {
|
|
25
13
|
var _ref$type = _ref.type,
|
|
26
14
|
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
27
|
-
props =
|
|
28
|
-
return /*#__PURE__*/(
|
|
29
|
-
children: type === 'medium' || type === 'large' ? /*#__PURE__*/(
|
|
15
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
16
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
17
|
+
children: type === 'medium' || type === 'large' ? /*#__PURE__*/_jsx(MLProgress, _extends({
|
|
30
18
|
type: type
|
|
31
|
-
}, props)) : /*#__PURE__*/(
|
|
19
|
+
}, props)) : /*#__PURE__*/_jsx(DefaultProgress, _extends({}, props))
|
|
32
20
|
});
|
|
33
21
|
};
|
|
34
|
-
|
|
35
|
-
exports["default"] = _default;
|
|
22
|
+
export default ProgressIndicator;
|