tenjin-ui-kit 0.3.67 → 0.3.69
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/.dockerignore +6 -0
- package/.storybook/main.js +16 -0
- package/.storybook/preview.js +11 -0
- package/Dockerfile +17 -0
- package/Jenkinsfile +66 -0
- package/build/asset-manifest.json +16 -0
- package/build/favicon.ico +0 -0
- package/build/index.html +1 -0
- package/build/logo192.png +0 -0
- package/build/logo512.png +0 -0
- package/build/manifest.json +25 -0
- package/build/robots.txt +3 -0
- package/build/static/css/main.e7366529.css +2 -0
- package/build/static/css/main.e7366529.css.map +1 -0
- package/build/static/js/453.900c81c3.chunk.js +2 -0
- package/build/static/js/453.900c81c3.chunk.js.map +1 -0
- package/build/static/js/main.8abb72fa.js +3 -0
- package/build/static/js/main.8abb72fa.js.LICENSE.txt +61 -0
- package/build/static/js/main.8abb72fa.js.map +1 -0
- package/build/static/media/logo.6ce24c58023cc2f8fd88fe9d219db6c6.svg +1 -0
- package/build/tenjinLogo.png +0 -0
- package/dist/README.md +13 -0
- package/dist/common/hooks/apiHooks.js +155 -0
- package/dist/common/hooks/newApiHook.js +188 -0
- package/{common → dist/common}/utils/security/index.js +2 -2
- package/{common → dist/common}/utils/security/securityConfig.js +1 -2
- package/dist/components/Canvas.js +330 -0
- package/dist/components/DragBox/index.js +40 -0
- package/dist/components/InputWithChip/index.js +294 -0
- package/{components → dist/components}/RightContext/index.js +19 -28
- package/dist/components/WorkFlow.js +42 -0
- package/dist/components/WorkFlowBuilder.js +115 -0
- package/dist/components/alert/Style.js +20 -0
- package/dist/components/alert/index.js +67 -0
- package/{components → dist/components}/attachment/index.js +21 -28
- package/{components → dist/components}/authenticationProvider/AuthError.js +3 -4
- package/{components → dist/components}/authenticationProvider/AuthLoader.js +3 -4
- package/dist/components/authenticationProvider/index.js +110 -0
- package/{components → dist/components}/avatar/index.js +13 -14
- package/dist/components/avatar/styles.js +91 -0
- package/dist/components/breadCrumbs/index.js +169 -0
- package/{components → dist/components}/breadCrumbs/style.js +1 -4
- package/{components → dist/components}/browsingTestCaseLayout/DetailsViewLayout/DetailsViewContent/index.js +5 -6
- package/{components → dist/components}/browsingTestCaseLayout/DetailsViewLayout/DetailsViewContent/style.js +5 -8
- package/{components → dist/components}/browsingTestCaseLayout/DetailsViewLayout/DetailsViewHeader/index.js +4 -5
- package/{components → dist/components}/browsingTestCaseLayout/TreeViewLayout/TreeViewContent/Index.js +4 -5
- package/{components → dist/components}/browsingTestCaseLayout/TreeViewLayout/TreeViewHeader/Index.js +5 -6
- package/dist/components/browsingTestCaseLayout/TreeViewLayout/TreeViewHeader/style.js +23 -0
- package/{components → dist/components}/browsingTestCaseLayout/index.js +25 -30
- package/dist/components/button/index.js +133 -0
- package/{components → dist/components}/chatBotModal/index.js +36 -45
- package/dist/components/checkBox/index.js +29 -0
- package/{components → dist/components}/combobox/index.js +51 -72
- package/dist/components/divider/index.js +37 -0
- package/{components → dist/components}/editableField/index.js +19 -28
- package/{components → dist/components}/error/index.js +6 -12
- package/dist/components/errorBoundary/index.js +140 -0
- package/dist/components/fileUploader/index.js +151 -0
- package/dist/components/fileUploader/style.js +57 -0
- package/dist/components/filter/ValueSelector.js +333 -0
- package/{components → dist/components}/filter/index.js +31 -36
- package/{components → dist/components}/iconButton/index.js +3 -4
- package/dist/components/input/index.js +167 -0
- package/dist/components/layout/index.js +94 -0
- package/dist/components/layout/main/index.js +24 -0
- package/dist/components/layout/main/style.js +19 -0
- package/{components → dist/components}/layout/pageContent/index.js +6 -7
- package/dist/components/layout/sidebar/FlatMenu.js +64 -0
- package/dist/components/layout/sidebar/GroupedIconMenu.js +233 -0
- package/dist/components/layout/sidebar/GroupedMenu.js +57 -0
- package/dist/components/layout/sidebar/ProjectMenu.js +223 -0
- package/dist/components/layout/sidebar/index.js +88 -0
- package/dist/components/layout/sidebar/style.js +149 -0
- package/{components → dist/components}/layout/topBar/ProjectTopbar.js +81 -98
- package/dist/components/layout/topBar/UserAvatar.js +138 -0
- package/dist/components/layout/topBar/index.js +121 -0
- package/{components → dist/components}/loader/index.js +9 -12
- package/dist/components/menu/index.js +71 -0
- package/{components → dist/components}/modal/Modal.js +5 -6
- package/dist/components/modal/index.js +88 -0
- package/dist/components/modal/style.js +65 -0
- package/dist/components/optionMenu/index.js +105 -0
- package/dist/components/pagination/index.js +114 -0
- package/dist/components/pagination/style.js +33 -0
- package/dist/components/paginationUpdated/index.js +73 -0
- package/dist/components/paper/index.js +43 -0
- package/dist/components/paper/style.js +31 -0
- package/dist/components/reactSelect/index.js +195 -0
- package/dist/components/reactSelect/style.js +130 -0
- package/dist/components/richTextEditor/index.js +64 -0
- package/dist/components/select/GroupedSelect.js +167 -0
- package/dist/components/select/SimpleSelect.js +184 -0
- package/{components → dist/components}/select/index.js +38 -54
- package/dist/components/simpleSelect/index.js +53 -0
- package/{components → dist/components}/sort/index.js +19 -22
- package/{components → dist/components}/switch/index.js +10 -11
- package/dist/components/switch/style.js +39 -0
- package/{components → dist/components}/switch/switch.js +17 -23
- package/dist/components/table/ReactTable.js +101 -0
- package/dist/components/table/SimpleTable.js +117 -0
- package/dist/components/table/index.js +381 -0
- package/dist/components/text/index.js +65 -0
- package/{components → dist/components}/timeStamp/index.js +4 -6
- package/dist/components/timeStamp/style.js +20 -0
- package/dist/components/topBar/index.js +169 -0
- package/{components → dist/components}/tree/index.js +29 -47
- package/dist/components/tree/style.js +29 -0
- package/dist/components/valuePicker/ValueSelector.js +205 -0
- package/{components → dist/components}/valuePicker/index.js +19 -26
- package/{components → dist/components}/wrapperLayout/layout/index.js +4 -5
- package/{components → dist/components}/wrapperLayout/main/index.js +4 -5
- package/{components → dist/components}/wrapperLayout/main/pageContainer/index.js +4 -5
- package/dist/components/wrapperLayout/main/sideBar/index.js +272 -0
- package/dist/components/wrapperLayout/main/sideBar/style.js +190 -0
- package/{components → dist/components}/wrapperLayout/topBar/UserAvatar.js +4 -5
- package/dist/components/wrapperLayout/topBar/avatar.js +55 -0
- package/dist/components/wrapperLayout/topBar/index.js +196 -0
- package/{components → dist/components}/wrapperLayout/topBar/menuIcon.js +4 -5
- package/dist/components/wrapperLayout/topBar/style.js +74 -0
- package/dist/http/index.js +133 -0
- package/{index.js → dist/index.js} +53 -55
- package/dist/package.json +127 -0
- package/{templates → dist/templates}/listPage/index.js +36 -57
- package/{themes → dist/themes}/default.js +5 -7
- package/{themes → dist/themes}/defaultSmall.js +2 -3
- package/{themes → dist/themes}/responsiveTheme.js +6 -8
- package/package.json +4 -1
- package/public/favicon.ico +0 -0
- package/public/index.html +43 -0
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +25 -0
- package/public/robots.txt +3 -0
- package/public/tenjinLogo.png +0 -0
- package/common/hooks/apiHooks.js +0 -223
- package/common/hooks/newApiHook.js +0 -270
- package/components/Canvas.js +0 -254
- package/components/DragBox/index.js +0 -45
- package/components/InputWithChip/index.js +0 -187
- package/components/WorkFlow.js +0 -47
- package/components/WorkFlowBuilder.js +0 -130
- package/components/alert/Style.js +0 -23
- package/components/alert/index.js +0 -69
- package/components/authenticationProvider/index.js +0 -166
- package/components/avatar/styles.js +0 -94
- package/components/breadCrumbs/index.js +0 -180
- package/components/browsingTestCaseLayout/TreeViewLayout/TreeViewHeader/style.js +0 -26
- package/components/button/index.js +0 -135
- package/components/checkBox/index.js +0 -30
- package/components/divider/index.js +0 -41
- package/components/errorBoundary/index.js +0 -160
- package/components/fileUploader/index.js +0 -156
- package/components/fileUploader/style.js +0 -60
- package/components/filter/ValueSelector.js +0 -350
- package/components/input/index.js +0 -174
- package/components/layout/index.js +0 -98
- package/components/layout/main/index.js +0 -27
- package/components/layout/main/style.js +0 -22
- package/components/layout/sidebar/FlatMenu.js +0 -64
- package/components/layout/sidebar/GroupedIconMenu.js +0 -246
- package/components/layout/sidebar/GroupedMenu.js +0 -67
- package/components/layout/sidebar/ProjectMenu.js +0 -230
- package/components/layout/sidebar/index.js +0 -91
- package/components/layout/sidebar/style.js +0 -154
- package/components/layout/topBar/UserAvatar.js +0 -145
- package/components/layout/topBar/index.js +0 -132
- package/components/menu/index.js +0 -80
- package/components/modal/index.js +0 -91
- package/components/modal/style.js +0 -68
- package/components/optionMenu/index.js +0 -112
- package/components/pagination/index.js +0 -129
- package/components/pagination/style.js +0 -36
- package/components/paginationUpdated/index.js +0 -75
- package/components/paper/index.js +0 -44
- package/components/paper/style.js +0 -34
- package/components/reactSelect/index.js +0 -212
- package/components/reactSelect/style.js +0 -163
- package/components/richTextEditor/index.js +0 -83
- package/components/select/GroupedSelect.js +0 -183
- package/components/select/SimpleSelect.js +0 -212
- package/components/simpleSelect/index.js +0 -56
- package/components/switch/style.js +0 -42
- package/components/table/ReactTable.js +0 -118
- package/components/table/SimpleTable.js +0 -136
- package/components/table/index.js +0 -256
- package/components/text/index.js +0 -67
- package/components/timeStamp/style.js +0 -23
- package/components/topBar/index.js +0 -176
- package/components/tree/style.js +0 -32
- package/components/valuePicker/ValueSelector.js +0 -273
- package/components/wrapperLayout/main/sideBar/index.js +0 -262
- package/components/wrapperLayout/main/sideBar/style.js +0 -196
- package/components/wrapperLayout/topBar/avatar.js +0 -57
- package/components/wrapperLayout/topBar/index.js +0 -182
- package/components/wrapperLayout/topBar/style.js +0 -77
- package/http/index.js +0 -226
- /package/{assets → dist/assets}/images/MicrosoftTeams-image (1).png +0 -0
- /package/{assets → dist/assets}/images/tenjin-4.0-logo.png +0 -0
- /package/{components → dist/components}/RightContext/index.css +0 -0
- /package/{components → dist/components}/browsingTestCaseLayout/style.css +0 -0
- /package/{components → dist/components}/errorBoundary/Error.jpg +0 -0
- /package/{components → dist/components}/iconButton/style.js +0 -0
- /package/{components → dist/components}/richTextEditor/style.js +0 -0
- /package/{components → dist/components}/wrapperLayout/layout/style.js +0 -0
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _material = require("@mui/material");
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _text = _interopRequireDefault(require("../text"));
|
|
10
|
-
var _excluded = ["label"];
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
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); }
|
|
13
|
-
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; }
|
|
14
|
-
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; }
|
|
15
|
-
var CheckBox = function CheckBox(props) {
|
|
16
|
-
var label = props.label,
|
|
17
|
-
rest = _objectWithoutProperties(props, _excluded);
|
|
18
|
-
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_material.FormControlLabel, _extends({
|
|
19
|
-
control: /*#__PURE__*/_react.default.createElement(_material.Checkbox, rest),
|
|
20
|
-
label: /*#__PURE__*/_react.default.createElement(_text.default, null, label)
|
|
21
|
-
}, rest)));
|
|
22
|
-
};
|
|
23
|
-
CheckBox.defaultProps = {
|
|
24
|
-
size: "medium",
|
|
25
|
-
color: "primary",
|
|
26
|
-
defaultChecked: true,
|
|
27
|
-
labelPlacement: "right"
|
|
28
|
-
};
|
|
29
|
-
var _default = CheckBox;
|
|
30
|
-
exports.default = _default;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = Divider;
|
|
7
|
-
var React = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _styles = require("@mui/material/styles");
|
|
9
|
-
var _material = require("@mui/material");
|
|
10
|
-
var _Chip = _interopRequireDefault(require("@mui/material/Chip"));
|
|
11
|
-
var _text = _interopRequireDefault(require("../text"));
|
|
12
|
-
var _responsiveTheme = _interopRequireDefault(require("../../themes/responsiveTheme"));
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
-
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); }
|
|
15
|
-
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; }
|
|
16
|
-
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); }
|
|
17
|
-
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; }
|
|
18
|
-
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; }
|
|
19
|
-
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; }
|
|
20
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
21
|
-
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); }
|
|
22
|
-
var Root = (0, _styles.styled)("div")(function () {
|
|
23
|
-
return _objectSpread(_objectSpread({
|
|
24
|
-
width: "100%"
|
|
25
|
-
}, _responsiveTheme.default.typography.body2), {}, {
|
|
26
|
-
"& > :not(style) + :not(style)": {
|
|
27
|
-
marginTop: _responsiveTheme.default.spacing(2)
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
});
|
|
31
|
-
function Divider(props) {
|
|
32
|
-
return /*#__PURE__*/React.createElement(Root, null, props.type && props.type === "Chip" ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_material.Divider, {
|
|
33
|
-
textAlign: props.textAlign && props.textAlign
|
|
34
|
-
}, /*#__PURE__*/React.createElement(_Chip.default, {
|
|
35
|
-
label: props.title && props.title
|
|
36
|
-
})), /*#__PURE__*/React.createElement(_text.default, null, props.children)) : props.title && props.title ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_material.Divider, {
|
|
37
|
-
textAlign: props.textAlign && props.textAlign
|
|
38
|
-
}, /*#__PURE__*/React.createElement(_text.default, null, props.title && props.title)), props.children) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_material.Divider, {
|
|
39
|
-
textAlign: props.textAlign && props.textAlign
|
|
40
|
-
}), props.children));
|
|
41
|
-
}
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _material = require("@mui/material");
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _Error = _interopRequireDefault(require("./Error.jpg"));
|
|
10
|
-
var _text = _interopRequireDefault(require("../text"));
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
14
|
-
function _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); }
|
|
15
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
16
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
17
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
18
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
19
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
20
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
21
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
22
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
23
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
24
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
25
|
-
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; }
|
|
26
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
27
|
-
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); }
|
|
28
|
-
// const ErrorBoundary = (props) => {
|
|
29
|
-
// const { homePage } = props;
|
|
30
|
-
// const [hasError, setHasError] = useState(false);
|
|
31
|
-
// useEffect(() => {
|
|
32
|
-
// const handleError = (error) => {
|
|
33
|
-
// window.alert("coming");
|
|
34
|
-
// // console.error(error);
|
|
35
|
-
// setHasError(true);
|
|
36
|
-
// };
|
|
37
|
-
// window.addEventListener("error", handleError);
|
|
38
|
-
// return () => {
|
|
39
|
-
// window.removeEventListener("error", handleError);
|
|
40
|
-
// };
|
|
41
|
-
// }, []);
|
|
42
|
-
// if (hasError) {
|
|
43
|
-
// return (
|
|
44
|
-
// <Grid container>
|
|
45
|
-
// <Grid item xs={6} margin="auto">
|
|
46
|
-
// <Grid container justifyContent="center">
|
|
47
|
-
// <h1>Oops! Something went wrong.</h1>
|
|
48
|
-
// </Grid>
|
|
49
|
-
// <Grid container justifyContent="center">
|
|
50
|
-
// <Stack direction="row" spacing={2}>
|
|
51
|
-
// <Button
|
|
52
|
-
// variant="outlined"
|
|
53
|
-
// onClick={() => window.location.reload()}
|
|
54
|
-
// >
|
|
55
|
-
// Reload
|
|
56
|
-
// </Button>
|
|
57
|
-
// <Button variant="outlined">
|
|
58
|
-
// <a href={homePage ?? "/"}> Bak to Home</a>
|
|
59
|
-
// </Button>
|
|
60
|
-
// </Stack>
|
|
61
|
-
// </Grid>
|
|
62
|
-
// </Grid>
|
|
63
|
-
// <Grid item xs={6}>
|
|
64
|
-
// <img
|
|
65
|
-
// style={{ height: "100vh", width: "100%", overflow: "hidden" }}
|
|
66
|
-
// src={error_image}
|
|
67
|
-
// />
|
|
68
|
-
// </Grid>
|
|
69
|
-
// </Grid>
|
|
70
|
-
// );
|
|
71
|
-
// } else {
|
|
72
|
-
// return <>{props.children}</>;
|
|
73
|
-
// }
|
|
74
|
-
// };
|
|
75
|
-
// export default ErrorBoundary;
|
|
76
|
-
var ErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
77
|
-
_inherits(ErrorBoundary, _Component);
|
|
78
|
-
var _super = _createSuper(ErrorBoundary);
|
|
79
|
-
function ErrorBoundary(props) {
|
|
80
|
-
var _this;
|
|
81
|
-
_classCallCheck(this, ErrorBoundary);
|
|
82
|
-
_this = _super.call(this, props);
|
|
83
|
-
_defineProperty(_assertThisInitialized(_this), "handleGoBack", function () {
|
|
84
|
-
window.history.back();
|
|
85
|
-
window.setTimeout(function () {
|
|
86
|
-
window.location.reload();
|
|
87
|
-
}, 10);
|
|
88
|
-
});
|
|
89
|
-
_this.state = {
|
|
90
|
-
hasError: false
|
|
91
|
-
};
|
|
92
|
-
return _this;
|
|
93
|
-
}
|
|
94
|
-
_createClass(ErrorBoundary, [{
|
|
95
|
-
key: "componentDidCatch",
|
|
96
|
-
value: function componentDidCatch(error, errorInfo) {
|
|
97
|
-
this.setState({
|
|
98
|
-
hasError: true
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
}, {
|
|
102
|
-
key: "render",
|
|
103
|
-
value: function render() {
|
|
104
|
-
if (this.state.hasError) {
|
|
105
|
-
var _this$props$homePage;
|
|
106
|
-
return /*#__PURE__*/_react.default.createElement(_material.Grid, {
|
|
107
|
-
container: true
|
|
108
|
-
}, /*#__PURE__*/_react.default.createElement(_material.Grid, {
|
|
109
|
-
item: true,
|
|
110
|
-
xs: 6,
|
|
111
|
-
margin: "auto"
|
|
112
|
-
}, /*#__PURE__*/_react.default.createElement(_material.Grid, {
|
|
113
|
-
container: true,
|
|
114
|
-
justifyContent: "center",
|
|
115
|
-
textAlign: "center"
|
|
116
|
-
}, /*#__PURE__*/_react.default.createElement(_text.default, {
|
|
117
|
-
variant: "title",
|
|
118
|
-
bold: true
|
|
119
|
-
}, "Oops! Something went wrong."), /*#__PURE__*/_react.default.createElement(_text.default, {
|
|
120
|
-
variant: "body1"
|
|
121
|
-
}, "Please Reload the page or Refresh the page or return Home to try again.")), /*#__PURE__*/_react.default.createElement(_material.Grid, {
|
|
122
|
-
container: true,
|
|
123
|
-
justifyContent: "center"
|
|
124
|
-
}, /*#__PURE__*/_react.default.createElement(_material.Stack, {
|
|
125
|
-
direction: "row",
|
|
126
|
-
spacing: 2
|
|
127
|
-
}, /*#__PURE__*/_react.default.createElement(_material.Button, {
|
|
128
|
-
variant: "contained",
|
|
129
|
-
onClick: function onClick() {
|
|
130
|
-
return window.location.reload();
|
|
131
|
-
}
|
|
132
|
-
}, "Reload"), /*#__PURE__*/_react.default.createElement(_material.Button, {
|
|
133
|
-
variant: "contained",
|
|
134
|
-
onClick: this.handleGoBack
|
|
135
|
-
}, "Go Back"), /*#__PURE__*/_react.default.createElement(_material.Button, {
|
|
136
|
-
variant: "outlined"
|
|
137
|
-
}, /*#__PURE__*/_react.default.createElement("a", {
|
|
138
|
-
style: {
|
|
139
|
-
textDecoration: "none"
|
|
140
|
-
},
|
|
141
|
-
href: (_this$props$homePage = this.props.homePage) !== null && _this$props$homePage !== void 0 ? _this$props$homePage : "/"
|
|
142
|
-
}, " ", "Go Home"))))), /*#__PURE__*/_react.default.createElement(_material.Grid, {
|
|
143
|
-
item: true,
|
|
144
|
-
xs: 6
|
|
145
|
-
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
146
|
-
style: {
|
|
147
|
-
height: "100vh",
|
|
148
|
-
width: "100%",
|
|
149
|
-
overflow: "hidden"
|
|
150
|
-
},
|
|
151
|
-
src: _Error.default
|
|
152
|
-
})));
|
|
153
|
-
}
|
|
154
|
-
return this.props.children;
|
|
155
|
-
}
|
|
156
|
-
}]);
|
|
157
|
-
return ErrorBoundary;
|
|
158
|
-
}(_react.Component);
|
|
159
|
-
var _default = ErrorBoundary;
|
|
160
|
-
exports.default = _default;
|
|
@@ -1,156 +0,0 @@
|
|
|
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 _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _material = require("@mui/material");
|
|
10
|
-
var _styles = require("@mui/material/styles");
|
|
11
|
-
var _fi = require("react-icons/fi");
|
|
12
|
-
var _text = _interopRequireDefault(require("../text"));
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
-
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); }
|
|
15
|
-
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; }
|
|
16
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
17
|
-
var FileInput = (0, _styles.styled)("input")({
|
|
18
|
-
display: "none"
|
|
19
|
-
});
|
|
20
|
-
var DropzoneContainer = (0, _styles.styled)(_material.Container)({
|
|
21
|
-
width: "27.3rem",
|
|
22
|
-
height: "9.3rem",
|
|
23
|
-
display: "flex",
|
|
24
|
-
flexDirection: "column",
|
|
25
|
-
alignItems: "center",
|
|
26
|
-
justifyContent: "center",
|
|
27
|
-
padding: "2rem",
|
|
28
|
-
border: "1.5px dashed #ACACAC",
|
|
29
|
-
borderRadius: "0.5rem",
|
|
30
|
-
"&:hover": {
|
|
31
|
-
cursor: "pointer",
|
|
32
|
-
backgroundColor: "#f5f5f5"
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
var DropzoneText = (0, _styles.styled)("p")({
|
|
36
|
-
margin: "1rem",
|
|
37
|
-
display: "flex",
|
|
38
|
-
justifyContent: "center",
|
|
39
|
-
alignItems: "center",
|
|
40
|
-
flexDirection: "column",
|
|
41
|
-
gap: "1rem"
|
|
42
|
-
});
|
|
43
|
-
var FileUploader = function FileUploader(props) {
|
|
44
|
-
var _selectedFile$, _selectedFile$$name, _selectedFile$2, _selectedFile$3;
|
|
45
|
-
var selectedFile = props.selectedFile,
|
|
46
|
-
setSelectedFile = props.setSelectedFile,
|
|
47
|
-
key = props.key;
|
|
48
|
-
var fileInputRef = (0, _react.useRef)(null);
|
|
49
|
-
|
|
50
|
-
// const handleFileInput = (e) => {
|
|
51
|
-
// e.target.files[0] && setSelectedFile(e.target.files);
|
|
52
|
-
// };
|
|
53
|
-
var handleFileInput = function handleFileInput(e) {
|
|
54
|
-
// e.target.files[0] && setSelectedFile(e.target.files);
|
|
55
|
-
var selectedFile = e.target.files[0];
|
|
56
|
-
if (selectedFile) {
|
|
57
|
-
var _selectedFile$name, _selectedFile$name$sp, _selectedFile$name$sp2;
|
|
58
|
-
var excludedExtensions = [".zip", ".exe", ".batch", ".webm", ".mp4", ".mp3", ".bat", ".js", ".vbs", ".html", ".scr", ".cmd", ".rar", ".svg", ".lnk"];
|
|
59
|
-
var fileExtension = selectedFile === null || selectedFile === void 0 ? void 0 : (_selectedFile$name = selectedFile.name) === null || _selectedFile$name === void 0 ? void 0 : (_selectedFile$name$sp = _selectedFile$name.split(".")) === null || _selectedFile$name$sp === void 0 ? void 0 : (_selectedFile$name$sp2 = _selectedFile$name$sp.pop()) === null || _selectedFile$name$sp2 === void 0 ? void 0 : _selectedFile$name$sp2.toLowerCase();
|
|
60
|
-
if (excludedExtensions.some(function (ext) {
|
|
61
|
-
return selectedFile.name.endsWith(ext);
|
|
62
|
-
})) {
|
|
63
|
-
alert("Selected file type .".concat(fileExtension, " is not allowed."));
|
|
64
|
-
e.target.value = null;
|
|
65
|
-
} else {
|
|
66
|
-
e.target.files[0] && setSelectedFile(e.target.files);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
var handleDrop = function handleDrop(e) {
|
|
71
|
-
e.preventDefault();
|
|
72
|
-
e.stopPropagation();
|
|
73
|
-
// setSelectedFile(e.dataTransfer.files);
|
|
74
|
-
var droppedFiles = e.dataTransfer.files;
|
|
75
|
-
if (droppedFiles.length > 0) {
|
|
76
|
-
var _droppedFiles$, _droppedFiles$$name, _droppedFiles$$name$s, _droppedFiles$$name$s2;
|
|
77
|
-
var excludedExtensions = [".zip", ".exe", ".batch", ".webm", ".mp4", ".mp3", ".bat", ".js", ".vbs", ".html", ".scr", ".cmd", ".rar", ".svg", ".lnk"];
|
|
78
|
-
var fileExtension = (_droppedFiles$ = droppedFiles[0]) === null || _droppedFiles$ === void 0 ? void 0 : (_droppedFiles$$name = _droppedFiles$.name) === null || _droppedFiles$$name === void 0 ? void 0 : (_droppedFiles$$name$s = _droppedFiles$$name.split(".")) === null || _droppedFiles$$name$s === void 0 ? void 0 : (_droppedFiles$$name$s2 = _droppedFiles$$name$s.pop()) === null || _droppedFiles$$name$s2 === void 0 ? void 0 : _droppedFiles$$name$s2.toLowerCase();
|
|
79
|
-
if (excludedExtensions !== null && excludedExtensions !== void 0 && excludedExtensions.some(function (ext) {
|
|
80
|
-
var _droppedFiles$2, _droppedFiles$2$name;
|
|
81
|
-
return (_droppedFiles$2 = droppedFiles[0]) === null || _droppedFiles$2 === void 0 ? void 0 : (_droppedFiles$2$name = _droppedFiles$2.name) === null || _droppedFiles$2$name === void 0 ? void 0 : _droppedFiles$2$name.endsWith(ext);
|
|
82
|
-
})) {
|
|
83
|
-
alert("Selected file type .".concat(fileExtension, " is not allowed."));
|
|
84
|
-
} else {
|
|
85
|
-
setSelectedFile(droppedFiles);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
var handleDragOver = function handleDragOver(e) {
|
|
90
|
-
e.preventDefault();
|
|
91
|
-
e.stopPropagation();
|
|
92
|
-
};
|
|
93
|
-
var handleClick = function handleClick(e) {
|
|
94
|
-
e.preventDefault();
|
|
95
|
-
fileInputRef.current.click();
|
|
96
|
-
};
|
|
97
|
-
return /*#__PURE__*/_react.default.createElement(_material.Grid, {
|
|
98
|
-
container: true,
|
|
99
|
-
justifyContent: "center"
|
|
100
|
-
}, /*#__PURE__*/_react.default.createElement(_material.Grid, {
|
|
101
|
-
item: true,
|
|
102
|
-
xs: 12
|
|
103
|
-
}, /*#__PURE__*/_react.default.createElement(DropzoneContainer, {
|
|
104
|
-
onClick: handleClick,
|
|
105
|
-
onDrop: handleDrop,
|
|
106
|
-
onDragOver: handleDragOver
|
|
107
|
-
}, /*#__PURE__*/_react.default.createElement(DropzoneText, null, !(selectedFile !== null && selectedFile !== void 0 && selectedFile.length) > 0 ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_fi.FiUpload, {
|
|
108
|
-
size: "1.9rem",
|
|
109
|
-
color: "#44409A"
|
|
110
|
-
}), /*#__PURE__*/_react.default.createElement(_text.default, {
|
|
111
|
-
bold: true,
|
|
112
|
-
fontWeight: "400",
|
|
113
|
-
fontSize: "1rem"
|
|
114
|
-
}, "Drag and Drop or ", /*#__PURE__*/_react.default.createElement("b", null, "Choose File"), " to Upload")) : (selectedFile === null || selectedFile === void 0 ? void 0 : selectedFile.length) > 1 ? /*#__PURE__*/_react.default.createElement("ul", null, Array.from(selectedFile).map(function (file, index) {
|
|
115
|
-
var _file$name;
|
|
116
|
-
return /*#__PURE__*/_react.default.createElement(_material.Tooltip, {
|
|
117
|
-
arrow: true,
|
|
118
|
-
placement: "top",
|
|
119
|
-
title: (file === null || file === void 0 ? void 0 : (_file$name = file.name) === null || _file$name === void 0 ? void 0 : _file$name.length) > 25 ? file === null || file === void 0 ? void 0 : file.name : ""
|
|
120
|
-
}, /*#__PURE__*/_react.default.createElement(_text.default, {
|
|
121
|
-
sx: {
|
|
122
|
-
width: "220px",
|
|
123
|
-
whiteSpace: "nowrap",
|
|
124
|
-
overflow: "hidden",
|
|
125
|
-
textOverflow: "ellipsis",
|
|
126
|
-
fontWeight: 400,
|
|
127
|
-
fontSize: "1rem"
|
|
128
|
-
},
|
|
129
|
-
key: index
|
|
130
|
-
}, file === null || file === void 0 ? void 0 : file.name));
|
|
131
|
-
})) : /*#__PURE__*/_react.default.createElement(_material.Tooltip, {
|
|
132
|
-
arrow: true,
|
|
133
|
-
placement: "top",
|
|
134
|
-
title: ((_selectedFile$ = selectedFile[0]) === null || _selectedFile$ === void 0 ? void 0 : (_selectedFile$$name = _selectedFile$.name) === null || _selectedFile$$name === void 0 ? void 0 : _selectedFile$$name.length) > 25 ? (_selectedFile$2 = selectedFile[0]) === null || _selectedFile$2 === void 0 ? void 0 : _selectedFile$2.name : ""
|
|
135
|
-
}, /*#__PURE__*/_react.default.createElement(_text.default, {
|
|
136
|
-
sx: {
|
|
137
|
-
width: "220px",
|
|
138
|
-
whiteSpace: "nowrap",
|
|
139
|
-
overflow: "hidden",
|
|
140
|
-
textOverflow: "ellipsis",
|
|
141
|
-
fontWeight: 400,
|
|
142
|
-
fontSize: "1rem",
|
|
143
|
-
display: "flex",
|
|
144
|
-
justifyContent: "center"
|
|
145
|
-
}
|
|
146
|
-
}, (_selectedFile$3 = selectedFile[0]) === null || _selectedFile$3 === void 0 ? void 0 : _selectedFile$3.name)))), /*#__PURE__*/_react.default.createElement(FileInput, _extends({
|
|
147
|
-
type: "file",
|
|
148
|
-
accept: "image/*",
|
|
149
|
-
onChange: handleFileInput,
|
|
150
|
-
id: "fileInput",
|
|
151
|
-
ref: fileInputRef,
|
|
152
|
-
key: key
|
|
153
|
-
}, props))));
|
|
154
|
-
};
|
|
155
|
-
var _default = FileUploader;
|
|
156
|
-
exports.default = _default;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _styles = require("@mui/styles");
|
|
8
|
-
var _default2 = _interopRequireDefault(require("../../themes/default"));
|
|
9
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
var _default = (0, _styles.makeStyles)(function () {
|
|
11
|
-
return {
|
|
12
|
-
modalContentWrapper: {
|
|
13
|
-
position: "absolute",
|
|
14
|
-
backgroundColor: _default2.default.palette.background.paper,
|
|
15
|
-
borderRadius: "3px",
|
|
16
|
-
boxShadow: _default2.default.shadows[5],
|
|
17
|
-
top: "10%",
|
|
18
|
-
"&:focus": {
|
|
19
|
-
outline: "none"
|
|
20
|
-
},
|
|
21
|
-
margin: "auto"
|
|
22
|
-
},
|
|
23
|
-
default: {
|
|
24
|
-
width: "400px",
|
|
25
|
-
left: "calc(50% - 400px / 2)"
|
|
26
|
-
},
|
|
27
|
-
large: {
|
|
28
|
-
width: "600px",
|
|
29
|
-
left: "calc(50% - 600px / 2)"
|
|
30
|
-
},
|
|
31
|
-
xlarge: {
|
|
32
|
-
width: "800px",
|
|
33
|
-
left: "calc(50% - 800px / 2)"
|
|
34
|
-
},
|
|
35
|
-
fullscreen: {
|
|
36
|
-
width: "98%",
|
|
37
|
-
left: "1%",
|
|
38
|
-
top: "10px"
|
|
39
|
-
},
|
|
40
|
-
header: {
|
|
41
|
-
display: "flex",
|
|
42
|
-
alignItems: "center",
|
|
43
|
-
padding: "0.4rem 1rem",
|
|
44
|
-
borderBottom: "1px solid #ccc",
|
|
45
|
-
"& .title": {
|
|
46
|
-
flexGrow: 1,
|
|
47
|
-
fontWeight: 500
|
|
48
|
-
},
|
|
49
|
-
"& .modalCloseTrigger": {
|
|
50
|
-
cursor: "pointer"
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
content: {
|
|
54
|
-
padding: "0.4rem 1rem",
|
|
55
|
-
maxHeight: "calc(100vh - 170px)",
|
|
56
|
-
overflowY: "auto"
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
});
|
|
60
|
-
exports.default = _default;
|