@veritone-ce/design-system 1.12.28 → 1.12.31
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.d.ts +13 -11
- package/dist/assets/theme.js +53 -44
- package/dist/components/Alert/index.d.ts +22 -0
- package/dist/components/Alert/index.js +62 -0
- package/dist/components/AudioSlider/index.d.ts +12 -0
- package/dist/components/AudioSlider/index.js +73 -0
- package/dist/components/Box/index.d.ts +9 -4
- package/dist/components/Box/index.js +11 -10
- package/dist/components/Breadcrumbs/index.d.ts +6 -3
- package/dist/components/Breadcrumbs/index.js +15 -13
- package/dist/components/Button/Indicator.js +6 -4
- package/dist/components/Button/index.d.ts +14 -5
- package/dist/components/Button/index.js +27 -26
- package/dist/components/Checkbox/index.d.ts +10 -3
- package/dist/components/Checkbox/index.js +11 -14
- package/dist/components/Drawer/index.d.ts +12 -4
- package/dist/components/Drawer/index.js +12 -10
- package/dist/components/FileUploader/index.d.ts +21 -8
- package/dist/components/FileUploader/index.js +70 -102
- package/dist/components/FileUploader/useUploadFile.d.ts +1 -1
- package/dist/components/FileUploader/useUploadFile.js +10 -9
- package/dist/components/FormControlLabel/index.d.ts +9 -4
- package/dist/components/FormControlLabel/index.js +11 -10
- package/dist/components/Input/index.d.ts +22 -4
- package/dist/components/Input/index.js +27 -13
- package/dist/components/Input/input.theme.js +1 -2
- package/dist/components/LinearProgress/index.d.ts +9 -4
- package/dist/components/LinearProgress/index.js +9 -37
- package/dist/components/Link/index.d.ts +7 -4
- package/dist/components/Link/index.js +13 -4
- package/dist/components/List/index.d.ts +8 -4
- package/dist/components/List/index.js +10 -10
- package/dist/components/ListItem/index.d.ts +8 -4
- package/dist/components/ListItem/index.js +10 -10
- package/dist/components/ListItemButton/index.d.ts +10 -4
- package/dist/components/ListItemButton/index.js +12 -10
- package/dist/components/ListItemText/index.d.ts +8 -4
- package/dist/components/ListItemText/index.js +10 -10
- package/dist/components/MenuFlyout/index.d.ts +11 -5
- package/dist/components/MenuFlyout/index.js +9 -19
- package/dist/components/Modal/index.d.ts +7 -4
- package/dist/components/Modal/index.js +10 -21
- package/dist/components/Panel/index.d.ts +7 -6
- package/dist/components/Panel/index.js +13 -20
- package/dist/components/ProgressIndicator/DefaultProgress.d.ts +2 -2
- package/dist/components/ProgressIndicator/DefaultProgress.js +10 -15
- package/dist/components/ProgressIndicator/MLProgress.d.ts +5 -2
- package/dist/components/ProgressIndicator/MLProgress.js +9 -14
- package/dist/components/ProgressIndicator/index.d.ts +13 -4
- package/dist/components/ProgressIndicator/index.js +4 -2
- package/dist/components/RadioButton/index.d.ts +15 -5
- package/dist/components/RadioButton/index.js +12 -17
- package/dist/components/RadioGroup/index.d.ts +28 -4
- package/dist/components/RadioGroup/index.js +13 -10
- package/dist/components/Select/index.d.ts +35 -9
- package/dist/components/Select/index.js +32 -30
- package/dist/components/StatusChip/index.d.ts +10 -8
- package/dist/components/StatusChip/index.js +12 -16
- package/dist/components/Step/index.d.ts +21 -4
- package/dist/components/Step/index.js +12 -11
- package/dist/components/StepLabel/index.d.ts +11 -4
- package/dist/components/StepLabel/index.js +10 -10
- package/dist/components/Stepper/index.d.ts +16 -7
- package/dist/components/Stepper/index.js +9 -11
- package/dist/components/Table/index.d.ts +85 -0
- package/dist/components/Table/index.js +123 -0
- package/dist/components/Tabs/index.d.ts +10 -6
- package/dist/components/Tabs/index.js +40 -48
- package/dist/components/ThemeProvider/index.d.ts +8 -2
- package/dist/components/ThemeProvider/index.js +12 -6
- package/dist/components/Toast/index.d.ts +5 -21
- package/dist/components/Toast/index.js +17 -51
- package/dist/components/Typography/index.d.ts +9 -3
- package/dist/components/Typography/index.js +10 -11
- package/dist/components/UtilityRail/index.d.ts +4 -3
- package/dist/components/UtilityRail/index.js +10 -18
- package/dist/components/ZeroState/index.d.ts +2 -0
- package/dist/components/ZeroState/index.js +25 -0
- package/dist/components/icons/HomeOutlinedIcon/index.d.ts +5 -0
- package/dist/components/icons/HomeOutlinedIcon/index.js +15 -0
- package/dist/components/icons/IconGroups/index.d.ts +5 -0
- package/dist/components/icons/IconGroups/index.js +16 -0
- package/dist/components/icons/IconListItem/index.d.ts +7 -0
- package/dist/components/icons/IconListItem/index.js +17 -0
- package/dist/index.d.ts +57 -23
- package/dist/index.js +85 -38
- package/package.json +8 -4
- package/dist/components/Button/useButtonProps.d.ts +0 -3
- package/dist/components/Button/useButtonProps.js +0 -26
- package/dist/components/CustomSlider/index.d.ts +0 -12
- package/dist/components/CustomSlider/index.js +0 -89
- package/dist/components/HomeOutlinedIcon/index.d.ts +0 -5
- package/dist/components/HomeOutlinedIcon/index.js +0 -22
- package/dist/components/IconGroups/index.d.ts +0 -5
- package/dist/components/IconGroups/index.js +0 -23
- package/dist/components/IconListItem/index.d.ts +0 -7
- package/dist/components/IconListItem/index.js +0 -27
- package/dist/components/ModelGridView/index.d.ts +0 -15
- package/dist/components/ModelGridView/index.js +0 -330
- package/dist/components/Tabs/Badge.d.ts +0 -7
- package/dist/components/Tabs/Badge.js +0 -29
|
@@ -1,29 +1,43 @@
|
|
|
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); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports["default"] = void 0;
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
8
|
var _TextField = _interopRequireDefault(require("@mui/material/TextField"));
|
|
9
|
+
var _material = require("@mui/material");
|
|
10
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
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; }
|
|
15
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
16
|
-
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); }
|
|
17
|
-
function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
|
|
18
|
-
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
|
-
var Input = function Input(_ref) {
|
|
20
|
-
var TextFieldProps = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
21
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextField["default"], _objectSpread({
|
|
12
|
+
var Input = function Input(props) {
|
|
13
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextField["default"], {
|
|
22
14
|
InputLabelProps: {
|
|
23
15
|
shrink: false
|
|
24
16
|
},
|
|
25
|
-
"data-testid":
|
|
26
|
-
|
|
17
|
+
"data-testid": props['data-testid'],
|
|
18
|
+
type: props.type,
|
|
19
|
+
value: props.value,
|
|
20
|
+
helperText: props.helperText,
|
|
21
|
+
label: props.label,
|
|
22
|
+
disabled: props.disabled,
|
|
23
|
+
placeholder: props.placeholder,
|
|
24
|
+
required: props.required,
|
|
25
|
+
error: props.error,
|
|
26
|
+
name: props.name,
|
|
27
|
+
multiline: props.multiline,
|
|
28
|
+
rows: props.rows,
|
|
29
|
+
maxRows: props.maxRows,
|
|
30
|
+
minRows: props.minRows,
|
|
31
|
+
InputProps: {
|
|
32
|
+
startAdornment: props.prefixEl ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.InputAdornment, {
|
|
33
|
+
position: "start",
|
|
34
|
+
children: props.prefixEl
|
|
35
|
+
}) : null
|
|
36
|
+
},
|
|
37
|
+
sx: props.sx,
|
|
38
|
+
className: props.className,
|
|
39
|
+
onChange: props.onChange
|
|
40
|
+
});
|
|
27
41
|
};
|
|
28
42
|
var _default = Input;
|
|
29
43
|
exports["default"] = _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type LinearProgressProps = {
|
|
1
|
+
import { SxProps, Theme } from '@mui/system';
|
|
2
|
+
export type LinearProgressProps = {
|
|
3
3
|
'data-testid'?: string;
|
|
4
4
|
value: number;
|
|
5
5
|
/**
|
|
@@ -18,10 +18,15 @@ type LinearProgressProps = {
|
|
|
18
18
|
- Optional prop that can be passed to show error message
|
|
19
19
|
**/
|
|
20
20
|
isUploaded: boolean;
|
|
21
|
-
|
|
21
|
+
/**
|
|
22
|
+
- Prop that shows whether the file is fully uploaded or not
|
|
23
|
+
**/
|
|
24
|
+
sx?: SxProps<Theme>;
|
|
25
|
+
className?: string;
|
|
26
|
+
};
|
|
22
27
|
/**
|
|
23
28
|
- Use a Linear Progress Bar to show the user that an operation is in progress.
|
|
24
29
|
This is currently being used in conjuction with the uploader tool
|
|
25
30
|
**/
|
|
26
|
-
declare const LinearProgress: (
|
|
31
|
+
declare const LinearProgress: (props: LinearProgressProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
32
|
export default LinearProgress;
|
|
@@ -1,38 +1,23 @@
|
|
|
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); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports["default"] = void 0;
|
|
8
7
|
var _material = require("@mui/material");
|
|
9
8
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
var _excluded = ["value", "itemLoading", "isError", "feedbackText", "isUploaded"];
|
|
11
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
12
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
14
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
15
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
16
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
17
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
18
9
|
/**
|
|
19
10
|
- Use a Linear Progress Bar to show the user that an operation is in progress.
|
|
20
11
|
This is currently being used in conjuction with the uploader tool
|
|
21
12
|
**/
|
|
22
13
|
|
|
23
|
-
var LinearProgress = function LinearProgress(
|
|
24
|
-
var value = _ref.value,
|
|
25
|
-
itemLoading = _ref.itemLoading,
|
|
26
|
-
_ref$isError = _ref.isError,
|
|
27
|
-
isError = _ref$isError === void 0 ? false : _ref$isError,
|
|
28
|
-
feedbackText = _ref.feedbackText,
|
|
29
|
-
isUploaded = _ref.isUploaded,
|
|
30
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
14
|
+
var LinearProgress = function LinearProgress(props) {
|
|
31
15
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
|
|
32
16
|
sx: {
|
|
33
17
|
width: "100%",
|
|
34
18
|
margin: "5px 0"
|
|
35
19
|
},
|
|
20
|
+
className: props.className,
|
|
36
21
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
|
|
37
22
|
sx: {
|
|
38
23
|
display: "flex",
|
|
@@ -44,38 +29,25 @@ var LinearProgress = function LinearProgress(_ref) {
|
|
|
44
29
|
fontSize: "14px",
|
|
45
30
|
fontWeight: "600"
|
|
46
31
|
},
|
|
47
|
-
children: itemLoading
|
|
32
|
+
children: props.itemLoading
|
|
48
33
|
})
|
|
49
|
-
}),
|
|
34
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.LinearProgress, {
|
|
50
35
|
"aria-label": 'linear progress bar',
|
|
51
36
|
variant: "determinate",
|
|
52
|
-
value: value,
|
|
37
|
+
value: props.value,
|
|
38
|
+
"data-testid": props['data-testid'],
|
|
53
39
|
sx: {
|
|
54
40
|
'& .MuiLinearProgress-bar': {
|
|
55
|
-
backgroundColor: "#EB0000"
|
|
41
|
+
backgroundColor: props.isError ? "#EB0000" : props.isUploaded ? "#28BA3F" : undefined
|
|
56
42
|
}
|
|
57
43
|
}
|
|
58
|
-
},
|
|
59
|
-
"aria-label": 'linear progress bar',
|
|
60
|
-
variant: "determinate",
|
|
61
|
-
value: value
|
|
62
|
-
}, props), {}, {
|
|
63
|
-
sx: {
|
|
64
|
-
'& .MuiLinearProgress-bar': {
|
|
65
|
-
backgroundColor: "#28BA3F"
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
})) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.LinearProgress, _objectSpread({
|
|
69
|
-
"aria-label": 'linear progress bar',
|
|
70
|
-
variant: "determinate",
|
|
71
|
-
value: value
|
|
72
|
-
}, props)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
|
|
44
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
|
|
73
45
|
sx: {
|
|
74
46
|
fontSize: "11px",
|
|
75
47
|
marginTop: "10px",
|
|
76
48
|
color: "#5C6269"
|
|
77
49
|
},
|
|
78
|
-
children: feedbackText ? feedbackText : "".concat(value, "%")
|
|
50
|
+
children: props.feedbackText ? props.feedbackText : "".concat(props.value, "%")
|
|
79
51
|
})]
|
|
80
52
|
});
|
|
81
53
|
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { SxProps, Theme } from '@mui/system';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type LinkProps = Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'color'> & {
|
|
3
4
|
'data-testid'?: string;
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
sx?: SxProps<Theme>;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const Link: ({ sx, className, ...restProps }: LinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
9
|
export default Link;
|
|
@@ -6,17 +6,26 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports["default"] = void 0;
|
|
8
8
|
var _material = require("@mui/material");
|
|
9
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
var _excluded = ["sx", "className"];
|
|
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; }
|
|
10
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; }
|
|
11
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; }
|
|
12
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; }
|
|
13
17
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
14
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); }
|
|
15
|
-
function
|
|
16
|
-
function
|
|
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; }
|
|
17
21
|
var Link = function Link(_ref) {
|
|
18
|
-
var
|
|
19
|
-
|
|
22
|
+
var sx = _ref.sx,
|
|
23
|
+
className = _ref.className,
|
|
24
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
25
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Link, _objectSpread(_objectSpread({}, restProps), {}, {
|
|
26
|
+
sx: sx,
|
|
27
|
+
className: className
|
|
28
|
+
}));
|
|
20
29
|
};
|
|
21
30
|
var _default = Link;
|
|
22
31
|
exports["default"] = _default;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SxProps, Theme } from '@mui/system';
|
|
3
|
+
export type ListProps = {
|
|
3
4
|
'data-testid'?: string;
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
sx?: SxProps<Theme>;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const List: (props: ListProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
10
|
export default List;
|
|
@@ -6,17 +6,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports["default"] = void 0;
|
|
8
8
|
var _material = require("@mui/material");
|
|
9
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
function
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.List, _objectSpread({}, props));
|
|
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 List = function List(props) {
|
|
14
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.List, {
|
|
15
|
+
"data-testid": props['data-testid'],
|
|
16
|
+
sx: props.sx,
|
|
17
|
+
className: props.className,
|
|
18
|
+
children: props.children
|
|
19
|
+
});
|
|
20
20
|
};
|
|
21
21
|
var _default = List;
|
|
22
22
|
exports["default"] = _default;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { SxProps, Theme } from '@mui/system';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type ListItemProps = {
|
|
3
4
|
'data-testid'?: string;
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
sx?: SxProps<Theme>;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const ListItem: (props: ListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
10
|
export default ListItem;
|
|
@@ -6,17 +6,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports["default"] = void 0;
|
|
8
8
|
var _material = require("@mui/material");
|
|
9
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
function
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.ListItem, _objectSpread({}, props));
|
|
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 ListItem = function ListItem(props) {
|
|
14
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.ListItem, {
|
|
15
|
+
"data-testid": props['data-testid'],
|
|
16
|
+
sx: props.sx,
|
|
17
|
+
className: props.className,
|
|
18
|
+
children: props.children
|
|
19
|
+
});
|
|
20
20
|
};
|
|
21
21
|
var _default = ListItem;
|
|
22
22
|
exports["default"] = _default;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SxProps, Theme } from '@mui/system';
|
|
3
|
+
export type ListItemButtonProps = {
|
|
3
4
|
'data-testid'?: string;
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
selected?: boolean;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
sx?: SxProps<Theme>;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
declare const ListItemButton: (props: ListItemButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
12
|
export default ListItemButton;
|
|
@@ -6,17 +6,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports["default"] = void 0;
|
|
8
8
|
var _material = require("@mui/material");
|
|
9
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
function
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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 ListItemButton = function ListItemButton(props) {
|
|
14
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.ListItemButton, {
|
|
15
|
+
"data-testid": props['data-testid'],
|
|
16
|
+
disabled: props.disabled,
|
|
17
|
+
selected: props.selected,
|
|
18
|
+
sx: props.sx,
|
|
19
|
+
className: props.className,
|
|
20
|
+
children: props.children
|
|
21
|
+
});
|
|
20
22
|
};
|
|
21
23
|
var _default = ListItemButton;
|
|
22
24
|
exports["default"] = _default;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { SxProps, Theme } from '@mui/system';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type ListItemTextProps = {
|
|
3
4
|
'data-testid'?: string;
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
sx?: SxProps<Theme>;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const ListItemText: (props: ListItemTextProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
10
|
export default ListItemText;
|
|
@@ -6,17 +6,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports["default"] = void 0;
|
|
8
8
|
var _material = require("@mui/material");
|
|
9
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
function
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.ListItemText, _objectSpread({}, props));
|
|
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 ListItemText = function ListItemText(props) {
|
|
14
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.ListItemText, {
|
|
15
|
+
"data-testid": props['data-testid'],
|
|
16
|
+
sx: props.sx,
|
|
17
|
+
className: props.className,
|
|
18
|
+
children: props.children
|
|
19
|
+
});
|
|
20
20
|
};
|
|
21
21
|
var _default = ListItemText;
|
|
22
22
|
exports["default"] = _default;
|
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
import { MenuProps } from '@mui/material';
|
|
2
1
|
import React from 'react';
|
|
3
|
-
|
|
2
|
+
import { SxProps, Theme } from '@mui/system';
|
|
3
|
+
export type MenuOption = {
|
|
4
4
|
label: string;
|
|
5
5
|
icon?: React.ReactElement;
|
|
6
6
|
};
|
|
7
|
-
type MenuFlyoutProps = {
|
|
7
|
+
export type MenuFlyoutProps = {
|
|
8
8
|
'data-testid'?: string;
|
|
9
|
+
open: boolean;
|
|
10
|
+
onClose?: {
|
|
11
|
+
bivarianceHack(event: Event, reason: 'backdropClick' | 'escapeKeyDown'): void;
|
|
12
|
+
}['bivarianceHack'];
|
|
9
13
|
/**
|
|
10
14
|
An array of objects of type `MenuOption[]`. Each object in this array **requires** a label property of type `string` and an **optional** icon property of type `React.ReactElement`. Each object represents a list item on the menu flyout component.
|
|
11
15
|
**/
|
|
12
16
|
menuOptions: MenuOption[];
|
|
13
|
-
|
|
14
|
-
|
|
17
|
+
sx?: SxProps<Theme>;
|
|
18
|
+
className?: string;
|
|
19
|
+
};
|
|
20
|
+
declare const MenuFlyout: (props: MenuFlyoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
21
|
export default MenuFlyout;
|
|
@@ -1,6 +1,5 @@
|
|
|
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); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
@@ -8,24 +7,15 @@ exports["default"] = void 0;
|
|
|
8
7
|
var _material = require("@mui/material");
|
|
9
8
|
var _react = _interopRequireDefault(require("react"));
|
|
10
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
var _excluded = ["menuOptions", "open"];
|
|
12
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
var menuOptions = _ref.menuOptions,
|
|
22
|
-
open = _ref.open,
|
|
23
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
24
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Menu, _objectSpread(_objectSpread({
|
|
25
|
-
"data-testid": true,
|
|
26
|
-
open: true
|
|
27
|
-
}, props), {}, {
|
|
28
|
-
children: menuOptions.map(function (menuItem, index) {
|
|
11
|
+
var MenuFlyout = function MenuFlyout(props) {
|
|
12
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Menu, {
|
|
13
|
+
"data-testid": props['data-testid'],
|
|
14
|
+
open: props.open,
|
|
15
|
+
onClose: props.onClose,
|
|
16
|
+
sx: props.sx,
|
|
17
|
+
className: props.className,
|
|
18
|
+
children: props.menuOptions.map(function (menuItem, index) {
|
|
29
19
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.MenuItem, {
|
|
30
20
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
|
|
31
21
|
sx: {
|
|
@@ -50,7 +40,7 @@ var MenuFlyout = function MenuFlyout(_ref) {
|
|
|
50
40
|
})
|
|
51
41
|
}, index);
|
|
52
42
|
})
|
|
53
|
-
})
|
|
43
|
+
});
|
|
54
44
|
};
|
|
55
45
|
var _default = MenuFlyout;
|
|
56
46
|
exports["default"] = _default;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
import { SxProps, Theme } from '@mui/system';
|
|
3
|
+
export type ModalProps = {
|
|
3
4
|
'data-testid'?: string;
|
|
4
|
-
|
|
5
|
-
isOpen: boolean;
|
|
5
|
+
open: boolean;
|
|
6
6
|
title?: string;
|
|
7
7
|
height?: string;
|
|
8
8
|
children?: React.ReactNode;
|
|
9
|
+
onClose?(): void;
|
|
10
|
+
sx?: SxProps<Theme>;
|
|
11
|
+
className?: string;
|
|
9
12
|
};
|
|
10
|
-
declare const Modal: (
|
|
13
|
+
declare const Modal: (props: ModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
14
|
export default Modal;
|
|
@@ -1,6 +1,5 @@
|
|
|
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); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
@@ -8,31 +7,21 @@ exports["default"] = void 0;
|
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
8
|
var _material = require("@mui/material");
|
|
10
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
var _excluded = ["handleClose", "isOpen", "title", "children"];
|
|
12
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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 Modal = function Modal(_ref) {
|
|
21
|
-
var handleClose = _ref.handleClose,
|
|
22
|
-
isOpen = _ref.isOpen,
|
|
23
|
-
title = _ref.title,
|
|
24
|
-
children = _ref.children,
|
|
25
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
26
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Dialog, _objectSpread(_objectSpread({}, props), {}, {
|
|
27
|
-
open: isOpen,
|
|
28
|
-
onClose: handleClose,
|
|
11
|
+
var Modal = function Modal(props) {
|
|
12
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Dialog, {
|
|
13
|
+
"data-testid": props['data-testid'],
|
|
14
|
+
open: props.open,
|
|
15
|
+
onClose: props.onClose,
|
|
29
16
|
"aria-labelledby": "alert-dialog-title",
|
|
30
17
|
"aria-describedby": "alert-dialog-description",
|
|
18
|
+
sx: props.sx,
|
|
19
|
+
className: props.className,
|
|
31
20
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.DialogTitle, {
|
|
32
21
|
id: "alert-dialog-title",
|
|
33
|
-
children: title
|
|
34
|
-
}), children]
|
|
35
|
-
})
|
|
22
|
+
children: props.title
|
|
23
|
+
}), props.children]
|
|
24
|
+
});
|
|
36
25
|
};
|
|
37
26
|
var _default = Modal;
|
|
38
27
|
exports["default"] = _default;
|