@veritone-ce/design-system 1.12.22 → 1.12.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/theme.js +70 -70
- package/dist/components/Box/index.js +13 -8
- package/dist/components/Breadcrumbs/breadcrumbs.theme.js +14 -10
- package/dist/components/Breadcrumbs/index.js +9 -9
- package/dist/components/Button/Indicator.js +10 -10
- package/dist/components/Button/button.theme.js +107 -105
- package/dist/components/Button/index.js +26 -18
- package/dist/components/Button/useButtonProps.js +18 -10
- package/dist/components/Checkbox/checkbox.theme.js +21 -17
- package/dist/components/Checkbox/index.js +16 -10
- package/dist/components/CustomSlider/index.js +28 -18
- package/dist/components/Drawer/index.js +13 -8
- package/dist/components/FileUploader/index.js +88 -69
- package/dist/components/FileUploader/useUploadFile.js +148 -51
- package/dist/components/FormControlLabel/index.js +13 -8
- package/dist/components/HomeOutlinedIcon/index.js +13 -8
- package/dist/components/IconGroups/index.js +14 -9
- package/dist/components/IconListItem/index.js +17 -10
- package/dist/components/Input/index.js +16 -10
- package/dist/components/Input/input.theme.js +99 -95
- package/dist/components/LinearProgress/index.js +40 -33
- package/dist/components/LinearProgress/linearProgress.theme.js +17 -13
- package/dist/components/Link/index.js +13 -8
- package/dist/components/List/index.js +13 -8
- package/dist/components/ListItem/index.js +13 -8
- package/dist/components/ListItemButton/index.js +13 -8
- package/dist/components/ListItemText/index.js +13 -8
- package/dist/components/MenuFlyout/constants.js +3 -3
- package/dist/components/MenuFlyout/index.js +21 -13
- package/dist/components/MenuFlyout/menuFlyout.theme.js +47 -39
- package/dist/components/Modal/index.js +20 -13
- package/dist/components/Modal/modal.theme.js +28 -26
- package/dist/components/ModelGridView/index.js +109 -72
- package/dist/components/Panel/index.js +21 -19
- package/dist/components/ProgressIndicator/DefaultProgress.js +16 -10
- package/dist/components/ProgressIndicator/MLProgress.js +16 -10
- package/dist/components/ProgressIndicator/index.js +17 -14
- package/dist/components/RadioButton/RadioButton.theme.js +57 -53
- package/dist/components/RadioButton/index.js +24 -14
- package/dist/components/RadioGroup/index.js +13 -8
- package/dist/components/Select/index.js +48 -33
- package/dist/components/Select/select.theme.js +55 -51
- package/dist/components/StatusChip/constants.js +3 -3
- package/dist/components/StatusChip/index.js +19 -12
- package/dist/components/StatusChip/statusChip.theme.js +33 -29
- package/dist/components/Step/index.js +13 -8
- package/dist/components/StepLabel/index.js +13 -8
- package/dist/components/Stepper/index.js +10 -6
- package/dist/components/Stepper/stepper.theme.js +44 -42
- package/dist/components/Tabs/Badge.js +5 -6
- package/dist/components/Tabs/index.js +42 -23
- package/dist/components/Tabs/tabs.theme.js +32 -28
- package/dist/components/ThemeProvider/index.js +6 -7
- package/dist/components/Toast/index.js +41 -32
- package/dist/components/Typography/index.js +13 -8
- package/dist/components/UtilityRail/index.js +65 -57
- package/dist/components/UtilityRail/mock.js +1 -1
- package/dist/index.js +72 -72
- package/package.json +70 -82
- package/dist/assets/information.svg +0 -3
- package/dist/assets/warning.svg +0 -3
- package/dist/components/Box/__tests__/Box.test.d.ts +0 -1
- package/dist/components/Box/__tests__/Box.test.js +0 -16
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -11
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.js +0 -36
- package/dist/components/Breadcrumbs/__tests__/Breadcrumbs.test.d.ts +0 -1
- package/dist/components/Breadcrumbs/__tests__/Breadcrumbs.test.js +0 -26
- package/dist/components/Button/Button.stories.d.ts +0 -7
- package/dist/components/Button/Button.stories.js +0 -99
- package/dist/components/Button/__tests__/Button.test.d.ts +0 -1
- package/dist/components/Button/__tests__/Button.test.js +0 -59
- package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -5
- package/dist/components/Checkbox/Checkbox.stories.js +0 -49
- package/dist/components/Checkbox/__tests__/Checkbox.test.d.ts +0 -1
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +0 -15
- package/dist/components/CustomSlider/CustomSlider.stories.d.ts +0 -5
- package/dist/components/CustomSlider/CustomSlider.stories.js +0 -48
- package/dist/components/Drawer/__tests__/Drawer.test.d.ts +0 -1
- package/dist/components/Drawer/__tests__/Drawer.test.js +0 -16
- package/dist/components/FileUploader/FileUploader.stories.d.ts +0 -15
- package/dist/components/FileUploader/FileUploader.stories.js +0 -25
- package/dist/components/FileUploader/__tests__/FileUploader.test.d.ts +0 -1
- package/dist/components/FileUploader/__tests__/FileUploader.test.js +0 -226
- package/dist/components/FormControlLabel/__tests__/FormControlLabel.test.d.ts +0 -1
- package/dist/components/FormControlLabel/__tests__/FormControlLabel.test.js +0 -19
- package/dist/components/HomeOutlinedIcon/HomeOutlinedIcon.stories.d.ts +0 -7
- package/dist/components/HomeOutlinedIcon/HomeOutlinedIcon.stories.js +0 -20
- package/dist/components/HomeOutlinedIcon/__tests__/HomeOutlinedIcon.test.d.ts +0 -1
- package/dist/components/HomeOutlinedIcon/__tests__/HomeOutlinedIcon.test.js +0 -15
- package/dist/components/IconGroups/IconGroups.stories.d.ts +0 -7
- package/dist/components/IconGroups/IconGroups.stories.js +0 -20
- package/dist/components/IconGroups/__tests__/IconGroups.test.d.ts +0 -1
- package/dist/components/IconGroups/__tests__/IconGroups.test.js +0 -15
- package/dist/components/IconListItem/__tests__/IconListItem.test.d.ts +0 -1
- package/dist/components/IconListItem/__tests__/IconListItem.test.js +0 -15
- package/dist/components/Input/Input.stories.d.ts +0 -11
- package/dist/components/Input/Input.stories.js +0 -113
- package/dist/components/Input/__tests__/Input.test.d.ts +0 -1
- package/dist/components/Input/__tests__/Input.test.js +0 -14
- package/dist/components/LinearProgress/LinearProgress.stories.d.ts +0 -14
- package/dist/components/LinearProgress/LinearProgress.stories.js +0 -43
- package/dist/components/LinearProgress/__tests__/LinearProgress.test.d.ts +0 -1
- package/dist/components/LinearProgress/__tests__/LinearProgress.test.js +0 -40
- package/dist/components/Link/__tests__/Link.test.d.ts +0 -1
- package/dist/components/Link/__tests__/Link.test.js +0 -15
- package/dist/components/List/__tests__/List.test.d.ts +0 -1
- package/dist/components/List/__tests__/List.test.js +0 -15
- package/dist/components/ListItem/__tests__/ListItem.test.d.ts +0 -1
- package/dist/components/ListItem/__tests__/ListItem.test.js +0 -15
- package/dist/components/ListItemButton/__tests__/ListItemButton.test.d.ts +0 -1
- package/dist/components/ListItemButton/__tests__/ListItemButton.test.js +0 -15
- package/dist/components/ListItemText/__tests__/ListItemText.test.d.ts +0 -1
- package/dist/components/ListItemText/__tests__/ListItemText.test.js +0 -15
- package/dist/components/MenuFlyout/MenuFlyout.stories.d.ts +0 -31
- package/dist/components/MenuFlyout/MenuFlyout.stories.js +0 -60
- package/dist/components/MenuFlyout/__tests__/MenuFlyout.test.d.ts +0 -1
- package/dist/components/MenuFlyout/__tests__/MenuFlyout.test.js +0 -42
- package/dist/components/Modal/Modal.stories.d.ts +0 -15
- package/dist/components/Modal/Modal.stories.js +0 -195
- package/dist/components/Modal/__tests__/Modal.test.d.ts +0 -1
- package/dist/components/Modal/__tests__/Modal.test.js +0 -17
- package/dist/components/ModelGridView/ModelGridView.stories.d.ts +0 -5
- package/dist/components/ModelGridView/ModelGridView.stories.js +0 -41
- package/dist/components/ModelGridView/__tests__/ModelGridView.test.d.ts +0 -1
- package/dist/components/ModelGridView/__tests__/ModelGridView.test.js +0 -48
- package/dist/components/Panel/Panel.stories.d.ts +0 -14
- package/dist/components/Panel/Panel.stories.js +0 -63
- package/dist/components/Panel/__tests__/Panel.test.d.ts +0 -1
- package/dist/components/Panel/__tests__/Panel.test.js +0 -74
- package/dist/components/ProgressIndicator/ProgressIndicator.stories.d.ts +0 -7
- package/dist/components/ProgressIndicator/ProgressIndicator.stories.js +0 -45
- package/dist/components/ProgressIndicator/__tests__/ProgressIndicator.test.d.ts +0 -1
- package/dist/components/ProgressIndicator/__tests__/ProgressIndicator.test.js +0 -32
- package/dist/components/RadioButton/RadioButton.stories.d.ts +0 -10
- package/dist/components/RadioButton/RadioButton.stories.js +0 -38
- package/dist/components/RadioButton/__tests__/RadioButton.test.d.ts +0 -1
- package/dist/components/RadioButton/__tests__/RadioButton.test.js +0 -14
- package/dist/components/RadioGroup/__tests__/RadioGroup.test.d.ts +0 -1
- package/dist/components/RadioGroup/__tests__/RadioGroup.test.js +0 -15
- package/dist/components/Select/Select.stories.d.ts +0 -5
- package/dist/components/Select/Select.stories.js +0 -86
- package/dist/components/Select/__tests__/Select.test.d.ts +0 -1
- package/dist/components/Select/__tests__/Select.test.js +0 -40
- package/dist/components/StatusChip/StatusChip.stories.d.ts +0 -51
- package/dist/components/StatusChip/StatusChip.stories.js +0 -59
- package/dist/components/StatusChip/__tests__/StatusChip.test.d.ts +0 -1
- package/dist/components/StatusChip/__tests__/StatusChip.test.js +0 -45
- package/dist/components/Step/__tests__/Step.test.d.ts +0 -1
- package/dist/components/Step/__tests__/Step.test.js +0 -15
- package/dist/components/StepLabel/__tests__/StepLabel.test.d.ts +0 -1
- package/dist/components/StepLabel/__tests__/StepLabel.test.js +0 -15
- package/dist/components/Stepper/Stepper.stories.d.ts +0 -21
- package/dist/components/Stepper/Stepper.stories.js +0 -38
- package/dist/components/Stepper/__tests__/Stepper.test.d.ts +0 -1
- package/dist/components/Stepper/__tests__/Stepper.test.js +0 -15
- package/dist/components/Tabs/Tabs.stories.d.ts +0 -6
- package/dist/components/Tabs/Tabs.stories.js +0 -56
- package/dist/components/Tabs/__tests__/Tabs.test.d.ts +0 -1
- package/dist/components/Tabs/__tests__/Tabs.test.js +0 -53
- package/dist/components/ThemeProvider/__tests__/Button.test.d.ts +0 -1
- package/dist/components/ThemeProvider/__tests__/Button.test.js +0 -15
- package/dist/components/Toast/Toast.stories.d.ts +0 -14
- package/dist/components/Toast/Toast.stories.js +0 -108
- package/dist/components/Toast/__tests__/Toast.test.d.ts +0 -1
- package/dist/components/Toast/__tests__/Toast.test.js +0 -48
- package/dist/components/Typography/Typography.stories.d.ts +0 -20
- package/dist/components/Typography/Typography.stories.js +0 -21
- package/dist/components/Typography/__tests__/Typography.test.d.ts +0 -1
- package/dist/components/Typography/__tests__/Typography.test.js +0 -16
- package/dist/components/UtilityRail/UtilityRail.stories.d.ts +0 -8
- package/dist/components/UtilityRail/UtilityRail.stories.js +0 -23
- package/dist/components/UtilityRail/__tests__/UtilityRail.test.d.ts +0 -1
- package/dist/components/UtilityRail/__tests__/UtilityRail.test.js +0 -18
- package/dist/modules.d.js +0 -1
- package/dist/setupTests.d.ts +0 -1
- package/dist/setupTests.js +0 -3
- package/dist/utils/tests/helpers.d.ts +0 -6
- package/dist/utils/tests/helpers.js +0 -32
|
@@ -1,23 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
|
-
exports
|
|
7
|
+
exports["default"] = void 0;
|
|
7
8
|
var _material = require("@mui/material");
|
|
8
9
|
var _react = _interopRequireDefault(require("react"));
|
|
9
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
var _excluded = ["menuOptions", "open"];
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
14
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
15
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
16
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
17
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
18
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
19
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
20
|
+
var MenuFlyout = function MenuFlyout(_ref) {
|
|
21
|
+
var menuOptions = _ref.menuOptions,
|
|
22
|
+
open = _ref.open,
|
|
23
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
24
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Menu, _objectSpread(_objectSpread({
|
|
17
25
|
"data-testid": true,
|
|
18
|
-
open: true
|
|
19
|
-
|
|
20
|
-
children: menuOptions.map((menuItem, index)
|
|
26
|
+
open: true
|
|
27
|
+
}, props), {}, {
|
|
28
|
+
children: menuOptions.map(function (menuItem, index) {
|
|
21
29
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.MenuItem, {
|
|
22
30
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
|
|
23
31
|
sx: {
|
|
@@ -42,7 +50,7 @@ const MenuFlyout = ({
|
|
|
42
50
|
})
|
|
43
51
|
}, index);
|
|
44
52
|
})
|
|
45
|
-
});
|
|
53
|
+
}));
|
|
46
54
|
};
|
|
47
55
|
var _default = MenuFlyout;
|
|
48
|
-
exports
|
|
56
|
+
exports["default"] = _default;
|
|
@@ -4,45 +4,53 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.menuItemTheme = exports.menuFlyoutTheme = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
7
|
+
var menuFlyoutTheme = function menuFlyoutTheme(theme) {
|
|
8
|
+
return {
|
|
9
|
+
styleOverrides: {
|
|
10
|
+
root: function root() {
|
|
11
|
+
return {
|
|
12
|
+
height: 'auto',
|
|
13
|
+
fontSize: '14px',
|
|
14
|
+
borderRadius: '2px',
|
|
15
|
+
fontFamily: 'Nunito',
|
|
16
|
+
fontStyle: 'normal',
|
|
17
|
+
fontWeight: 400,
|
|
18
|
+
textTransform: 'capitalize',
|
|
19
|
+
backgroundColor: theme.palette.common.white,
|
|
20
|
+
':hover, :focus': {
|
|
21
|
+
backgroundColor: theme.palette.misc.altBackground
|
|
22
|
+
},
|
|
23
|
+
'& .MuiList-root, &.MuiMenu-list': {
|
|
24
|
+
minWidth: 168,
|
|
25
|
+
maxWidth: 200,
|
|
26
|
+
padding: 0
|
|
27
|
+
},
|
|
28
|
+
'& .MuiPaper-root': {
|
|
29
|
+
background: '#FFFFFF',
|
|
30
|
+
border: '1px solid #7C848D',
|
|
31
|
+
borderRadius: '0px 0px 4px 4px',
|
|
32
|
+
padding: '10px',
|
|
33
|
+
gap: '20px',
|
|
34
|
+
boxShadow: '3px 3px 5px rgba(0, 0, 0, 0.2)'
|
|
35
|
+
}
|
|
36
|
+
};
|
|
33
37
|
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
};
|
|
37
41
|
exports.menuFlyoutTheme = menuFlyoutTheme;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
42
|
+
var menuItemTheme = function menuItemTheme(theme) {
|
|
43
|
+
return {
|
|
44
|
+
styleOverrides: {
|
|
45
|
+
root: function root() {
|
|
46
|
+
return {
|
|
47
|
+
whiteSpace: 'normal',
|
|
48
|
+
minWidth: 168,
|
|
49
|
+
maxWidth: 200,
|
|
50
|
+
padding: '5px'
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
};
|
|
48
56
|
exports.menuItemTheme = menuItemTheme;
|
|
@@ -1,22 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
|
-
exports
|
|
7
|
+
exports["default"] = void 0;
|
|
7
8
|
var _react = _interopRequireDefault(require("react"));
|
|
8
9
|
var _material = require("@mui/material");
|
|
9
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
var _excluded = ["handleClose", "isOpen", "title", "children"];
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
14
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
15
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
16
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
17
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
18
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
19
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
20
|
+
var 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), {}, {
|
|
20
27
|
open: isOpen,
|
|
21
28
|
onClose: handleClose,
|
|
22
29
|
"aria-labelledby": "alert-dialog-title",
|
|
@@ -25,7 +32,7 @@ const Modal = ({
|
|
|
25
32
|
id: "alert-dialog-title",
|
|
26
33
|
children: title
|
|
27
34
|
}), children]
|
|
28
|
-
});
|
|
35
|
+
}));
|
|
29
36
|
};
|
|
30
37
|
var _default = Modal;
|
|
31
|
-
exports
|
|
38
|
+
exports["default"] = _default;
|
|
@@ -3,31 +3,33 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var modalTheme = function modalTheme(theme) {
|
|
8
|
+
return {
|
|
9
|
+
defaultProps: {},
|
|
10
|
+
styleOverrides: {
|
|
11
|
+
root: function root() {
|
|
12
|
+
return {
|
|
13
|
+
borderRadius: '4px',
|
|
14
|
+
'& .MuiBackdrop-root': {
|
|
15
|
+
backgroundColor: theme.palette.neutral.main
|
|
16
|
+
},
|
|
17
|
+
margin: 'auto',
|
|
18
|
+
'& .MuiPaper-root': {
|
|
19
|
+
margin: '0px',
|
|
20
|
+
boxShadow: "\n 0px 4px 34px\n ".concat(theme.palette.text.primary),
|
|
21
|
+
width: '410px'
|
|
22
|
+
},
|
|
23
|
+
'& .MuiDialogTitle-root': {
|
|
24
|
+
fontSize: '18px',
|
|
25
|
+
fontWeight: '600',
|
|
26
|
+
lineHeight: '24px',
|
|
27
|
+
color: theme.palette.text.primary
|
|
28
|
+
}
|
|
29
|
+
};
|
|
28
30
|
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
};
|
|
32
34
|
var _default = modalTheme;
|
|
33
|
-
exports
|
|
35
|
+
exports["default"] = _default;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
|
-
exports
|
|
7
|
+
exports["default"] = void 0;
|
|
7
8
|
var React = _interopRequireWildcard(require("react"));
|
|
8
9
|
var _material = require("@mui/material");
|
|
9
10
|
var _utils = require("@mui/utils");
|
|
@@ -11,9 +12,15 @@ var _MoreVert = _interopRequireDefault(require("@mui/icons-material/MoreVert"));
|
|
|
11
12
|
var _EditOutlined = _interopRequireDefault(require("@mui/icons-material/EditOutlined"));
|
|
12
13
|
var _ArticleRounded = _interopRequireDefault(require("@mui/icons-material/ArticleRounded"));
|
|
13
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
16
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null ||
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
16
|
+
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); }
|
|
17
|
+
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; }
|
|
18
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
19
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
20
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
21
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
22
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
23
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
17
24
|
function descendingComparator(a, b, orderBy) {
|
|
18
25
|
if (b[orderBy] < a[orderBy]) {
|
|
19
26
|
return -1;
|
|
@@ -26,9 +33,13 @@ function descendingComparator(a, b, orderBy) {
|
|
|
26
33
|
|
|
27
34
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
28
35
|
function getComparator(order, orderBy) {
|
|
29
|
-
return order === 'desc' ?
|
|
36
|
+
return order === 'desc' ? function (a, b) {
|
|
37
|
+
return descendingComparator(a, b, orderBy);
|
|
38
|
+
} : function (a, b) {
|
|
39
|
+
return -descendingComparator(a, b, orderBy);
|
|
40
|
+
};
|
|
30
41
|
}
|
|
31
|
-
|
|
42
|
+
var headCells = [{
|
|
32
43
|
id: 'modelName',
|
|
33
44
|
numeric: false,
|
|
34
45
|
disablePadding: false,
|
|
@@ -57,74 +68,86 @@ const headCells = [{
|
|
|
57
68
|
label: 'Deployed'
|
|
58
69
|
}];
|
|
59
70
|
function EnhancedTableHead(props) {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
71
|
+
var order = props.order,
|
|
72
|
+
orderBy = props.orderBy,
|
|
73
|
+
onRequestSort = props.onRequestSort;
|
|
74
|
+
var createSortHandler = function createSortHandler(property) {
|
|
75
|
+
return function (event) {
|
|
76
|
+
onRequestSort(event, property);
|
|
77
|
+
};
|
|
67
78
|
};
|
|
68
79
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.TableHead, {
|
|
69
80
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.TableRow, {
|
|
70
81
|
sx: {
|
|
71
82
|
'& .MuiTableCell-root': {
|
|
72
|
-
borderBottomColor: theme
|
|
83
|
+
borderBottomColor: function borderBottomColor(theme) {
|
|
84
|
+
return theme.palette.text.disabled;
|
|
85
|
+
},
|
|
73
86
|
padding: '14.25px 16px',
|
|
74
87
|
'&.MuiTableCell-paddingNone': {
|
|
75
88
|
padding: 0
|
|
76
89
|
}
|
|
77
90
|
}
|
|
78
91
|
},
|
|
79
|
-
children: [headCells.map(
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
fill: '#1B1D1F',
|
|
90
|
-
':hover': {
|
|
92
|
+
children: [headCells.map(function (headCell) {
|
|
93
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.TableCell, {
|
|
94
|
+
padding: headCell.disablePadding ? 'none' : 'normal',
|
|
95
|
+
sortDirection: orderBy === headCell.id ? order : false,
|
|
96
|
+
children: [headCell.label, headCell.sortable && /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.TableSortLabel, {
|
|
97
|
+
active: orderBy === headCell.id,
|
|
98
|
+
direction: orderBy === headCell.id ? order : 'desc',
|
|
99
|
+
onClick: createSortHandler(headCell.id),
|
|
100
|
+
sx: {
|
|
101
|
+
'& .MuiSvgIcon-root': {
|
|
91
102
|
opacity: 1,
|
|
92
|
-
fill: '#1B1D1F'
|
|
103
|
+
fill: '#1B1D1F',
|
|
104
|
+
':hover': {
|
|
105
|
+
opacity: 1,
|
|
106
|
+
fill: '#1B1D1F'
|
|
107
|
+
}
|
|
93
108
|
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
})
|
|
101
|
-
})
|
|
102
|
-
}
|
|
109
|
+
},
|
|
110
|
+
children: orderBy === headCell.id ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
|
|
111
|
+
component: "span",
|
|
112
|
+
sx: _utils.visuallyHidden,
|
|
113
|
+
children: order === 'desc' ? 'sorted descending' : 'sorted ascending'
|
|
114
|
+
}) : null
|
|
115
|
+
})]
|
|
116
|
+
}, headCell.id);
|
|
117
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.TableCell, {})]
|
|
103
118
|
})
|
|
104
119
|
});
|
|
105
120
|
}
|
|
106
|
-
|
|
107
|
-
rows
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
121
|
+
var ModelGridView = function ModelGridView(_ref) {
|
|
122
|
+
var rows = _ref.rows;
|
|
123
|
+
var _React$useState = React.useState('desc'),
|
|
124
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
125
|
+
order = _React$useState2[0],
|
|
126
|
+
setOrder = _React$useState2[1];
|
|
127
|
+
var _React$useState3 = React.useState('lastModified'),
|
|
128
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
129
|
+
orderBy = _React$useState4[0],
|
|
130
|
+
setOrderBy = _React$useState4[1];
|
|
131
|
+
var _React$useState5 = React.useState(null),
|
|
132
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
133
|
+
anchorEl = _React$useState6[0],
|
|
134
|
+
setAnchorEl = _React$useState6[1];
|
|
135
|
+
var open = Boolean(anchorEl);
|
|
136
|
+
var menuOptions = [{
|
|
137
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_EditOutlined["default"], {}),
|
|
115
138
|
label: 'Edit Model'
|
|
116
139
|
}, {
|
|
117
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ArticleRounded
|
|
140
|
+
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ArticleRounded["default"], {}),
|
|
118
141
|
label: 'View Conset Form'
|
|
119
142
|
}];
|
|
120
|
-
|
|
143
|
+
var handleClick = function handleClick(event) {
|
|
121
144
|
setAnchorEl(event.currentTarget);
|
|
122
145
|
};
|
|
123
|
-
|
|
146
|
+
var handleClose = function handleClose() {
|
|
124
147
|
setAnchorEl(null);
|
|
125
148
|
};
|
|
126
|
-
|
|
127
|
-
|
|
149
|
+
var handleRequestSort = function handleRequestSort(event, property) {
|
|
150
|
+
var isAsc = orderBy === property && order === 'asc';
|
|
128
151
|
setOrder(isAsc ? 'desc' : 'asc');
|
|
129
152
|
setOrderBy(property);
|
|
130
153
|
};
|
|
@@ -156,13 +179,15 @@ const ModelGridView = ({
|
|
|
156
179
|
orderBy: orderBy,
|
|
157
180
|
onRequestSort: handleRequestSort
|
|
158
181
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.TableBody, {
|
|
159
|
-
children: rows.slice().sort(getComparator(order, orderBy)).map((row, index)
|
|
160
|
-
|
|
182
|
+
children: rows.slice().sort(getComparator(order, orderBy)).map(function (row, index) {
|
|
183
|
+
var labelId = "enhanced-table-checkbox-".concat(index);
|
|
161
184
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.TableRow, {
|
|
162
185
|
tabIndex: -1,
|
|
163
186
|
sx: {
|
|
164
187
|
'& .MuiTableCell-root': {
|
|
165
|
-
borderBottomColor: theme
|
|
188
|
+
borderBottomColor: function borderBottomColor(theme) {
|
|
189
|
+
return theme.palette.misc.altBackground;
|
|
190
|
+
},
|
|
166
191
|
padding: '17px 16px',
|
|
167
192
|
'&.MuiTableCell-paddingNone': {
|
|
168
193
|
padding: 0
|
|
@@ -179,8 +204,12 @@ const ModelGridView = ({
|
|
|
179
204
|
underline: "always",
|
|
180
205
|
sx: {
|
|
181
206
|
'&.MuiLink-underlineAlways': {
|
|
182
|
-
color: theme
|
|
183
|
-
|
|
207
|
+
color: function color(theme) {
|
|
208
|
+
return theme.palette.button.main;
|
|
209
|
+
},
|
|
210
|
+
textDecorationColor: function textDecorationColor(theme) {
|
|
211
|
+
return theme.palette.button.main;
|
|
212
|
+
}
|
|
184
213
|
}
|
|
185
214
|
},
|
|
186
215
|
children: row.modelName
|
|
@@ -196,8 +225,12 @@ const ModelGridView = ({
|
|
|
196
225
|
flexDirection: 'row',
|
|
197
226
|
justifyContent: 'center',
|
|
198
227
|
alignItems: 'center',
|
|
199
|
-
backgroundColor: theme
|
|
200
|
-
|
|
228
|
+
backgroundColor: function backgroundColor(theme) {
|
|
229
|
+
return theme.palette.success.main;
|
|
230
|
+
},
|
|
231
|
+
color: function color(theme) {
|
|
232
|
+
return theme.palette.common.white;
|
|
233
|
+
},
|
|
201
234
|
width: '82px',
|
|
202
235
|
height: '18px',
|
|
203
236
|
borderRadius: '2px',
|
|
@@ -225,7 +258,7 @@ const ModelGridView = ({
|
|
|
225
258
|
"aria-expanded": open ? 'true' : undefined,
|
|
226
259
|
"aria-haspopup": "true",
|
|
227
260
|
onClick: handleClick,
|
|
228
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_MoreVert
|
|
261
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_MoreVert["default"], {})
|
|
229
262
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Menu, {
|
|
230
263
|
id: "long-menu",
|
|
231
264
|
MenuListProps: {
|
|
@@ -240,19 +273,23 @@ const ModelGridView = ({
|
|
|
240
273
|
borderRadius: 0
|
|
241
274
|
}
|
|
242
275
|
},
|
|
243
|
-
children: menuOptions.map(
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
276
|
+
children: menuOptions.map(function (option) {
|
|
277
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.MenuItem, {
|
|
278
|
+
onClick: handleClose,
|
|
279
|
+
sx: {
|
|
280
|
+
fontSize: '14px',
|
|
281
|
+
lineHeight: '20px',
|
|
282
|
+
height: '46px',
|
|
283
|
+
gap: '13px',
|
|
284
|
+
'& .MuiSvgIcon-root': {
|
|
285
|
+
color: function color(theme) {
|
|
286
|
+
return theme.palette.text.tertiary;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
children: [option.icon, option.label]
|
|
291
|
+
}, option.label);
|
|
292
|
+
})
|
|
256
293
|
})]
|
|
257
294
|
})]
|
|
258
295
|
}, row.modelName);
|
|
@@ -264,4 +301,4 @@ const ModelGridView = ({
|
|
|
264
301
|
});
|
|
265
302
|
};
|
|
266
303
|
var _default = ModelGridView;
|
|
267
|
-
exports
|
|
304
|
+
exports["default"] = _default;
|
|
@@ -3,25 +3,27 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports["default"] = void 0;
|
|
7
7
|
var _material = require("@mui/material");
|
|
8
8
|
var _Close = _interopRequireDefault(require("@mui/icons-material/Close"));
|
|
9
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
10
|
+
var _excluded = ["title", "isOpen", "children", "size", "handleClose"];
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
|
+
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; }
|
|
13
|
+
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; }
|
|
14
|
+
var Panel = function Panel(_ref) {
|
|
15
|
+
var title = _ref.title,
|
|
16
|
+
isOpen = _ref.isOpen,
|
|
17
|
+
children = _ref.children,
|
|
18
|
+
_ref$size = _ref.size,
|
|
19
|
+
size = _ref$size === void 0 ? 'big' : _ref$size,
|
|
20
|
+
handleClose = _ref.handleClose,
|
|
21
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
22
|
+
var _useTheme = (0, _material.useTheme)(),
|
|
23
|
+
palette = _useTheme.palette;
|
|
22
24
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
|
|
23
25
|
component: "div",
|
|
24
|
-
"data-testid": props['data-testid'] ?
|
|
26
|
+
"data-testid": props['data-testid'] ? "overlay-".concat(props['data-testid']) : 'overlay-panel',
|
|
25
27
|
sx: {
|
|
26
28
|
position: 'absolute',
|
|
27
29
|
top: 0,
|
|
@@ -42,9 +44,9 @@ const Panel = ({
|
|
|
42
44
|
height: '99vh',
|
|
43
45
|
display: 'flex',
|
|
44
46
|
flexDirection: 'column',
|
|
45
|
-
boxShadow:
|
|
47
|
+
boxShadow: "0 4px 10px ".concat(palette.text.primary, "80"),
|
|
46
48
|
overflow: 'auto',
|
|
47
|
-
borderBottom:
|
|
49
|
+
borderBottom: "5px solid ".concat(palette.secondary.main),
|
|
48
50
|
zIndex: 2
|
|
49
51
|
},
|
|
50
52
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
|
|
@@ -74,7 +76,7 @@ const Panel = ({
|
|
|
74
76
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
|
|
75
77
|
component: "button",
|
|
76
78
|
"aria-label": "close-button-panel",
|
|
77
|
-
"data-testid": props['data-testid'] ?
|
|
79
|
+
"data-testid": props['data-testid'] ? "close-button-".concat(props['data-testid']) : 'close-button-wrapper-panel',
|
|
78
80
|
onClick: handleClose,
|
|
79
81
|
sx: {
|
|
80
82
|
cursor: 'pointer',
|
|
@@ -86,7 +88,7 @@ const Panel = ({
|
|
|
86
88
|
alignItems: 'center',
|
|
87
89
|
justifyContent: 'center'
|
|
88
90
|
},
|
|
89
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Close
|
|
91
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Close["default"], {
|
|
90
92
|
"data-testid": "panel-close-icon",
|
|
91
93
|
sx: {
|
|
92
94
|
fill: palette.common.white,
|
|
@@ -114,4 +116,4 @@ const Panel = ({
|
|
|
114
116
|
});
|
|
115
117
|
};
|
|
116
118
|
var _default = Panel;
|
|
117
|
-
exports
|
|
119
|
+
exports["default"] = _default;
|