@arcblock/ux 2.3.0 → 2.4.2
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/lib/ActivityIndicator/index.js +7 -9
- package/lib/Alert/index.js +6 -5
- package/lib/AnimationWaiter/index.js +6 -5
- package/lib/Badge/index.js +6 -5
- package/lib/Blocklet/blocklet.js +6 -5
- package/lib/Blocklet/utils.js +6 -5
- package/lib/BlockletNFT/index.js +6 -5
- package/lib/Center/index.js +6 -5
- package/lib/ClickToCopy/index.js +6 -5
- package/lib/CodeBlock/index.js +6 -5
- package/lib/ContactForm/index.js +6 -5
- package/lib/CookieConsent/index.js +6 -5
- package/lib/CountDown/index.js +6 -5
- package/lib/Datatable/CustomToolbar.js +7 -9
- package/lib/Datatable/DatatableContext.js +2 -2
- package/lib/Datatable/TableSearch.js +6 -5
- package/lib/Datatable/index.js +12 -15
- package/lib/Dialog/dialog.js +8 -10
- package/lib/Earth/index.js +7 -9
- package/lib/Empty/index.js +6 -5
- package/lib/ErrorBoundary/fallback.js +6 -5
- package/lib/Footer/index.js +6 -6
- package/lib/Header/auto-hidden.js +6 -5
- package/lib/Header/header.js +6 -5
- package/lib/Header/responsive-header.js +7 -9
- package/lib/Icon/image.js +6 -5
- package/lib/Icon/index.js +6 -5
- package/lib/InfoRow/index.js +6 -5
- package/lib/Layout/dashboard/index.js +7 -9
- package/lib/Layout/dashboard/sidebar.js +6 -5
- package/lib/Layout/dashboard-legacy/header.js +6 -5
- package/lib/Layout/dashboard-legacy/index.js +6 -5
- package/lib/Layout/dashboard-legacy/sidebar.js +7 -9
- package/lib/Layout/index.js +7 -9
- package/lib/Locale/selector.js +6 -5
- package/lib/Logo/index.js +6 -5
- package/lib/Metric/index.js +6 -6
- package/lib/NFTDisplay/aspect-ratio-container.js +6 -5
- package/lib/NFTDisplay/broken.js +6 -5
- package/lib/NFTDisplay/index.js +6 -5
- package/lib/NFTDisplay/loading.js +6 -5
- package/lib/NFTDisplay/svg-embedder/inline-svg.js +9 -11
- package/lib/NavMenu/style.js +8 -13
- package/lib/PricingTable/PricingPlan.js +6 -5
- package/lib/PricingTable/index.js +6 -5
- package/lib/Result/result.js +6 -5
- package/lib/Screenshot/index.js +6 -5
- package/lib/SplitButton/index.js +7 -9
- package/lib/Tag/index.js +6 -5
- package/lib/TextCollapse/index.js +6 -5
- package/lib/Theme/theme-provider.js +9 -7
- package/lib/Video/index.js +6 -5
- package/lib/Wallet/Action.js +6 -5
- package/lib/Wallet/Download.js +6 -5
- package/lib/Wallet/Open.js +6 -5
- package/lib/WechatPrompt/index.js +6 -5
- package/lib/withTheme/index.js +9 -5
- package/package.json +5 -7
- package/src/ActivityIndicator/index.js +1 -1
- package/src/Alert/index.js +1 -1
- package/src/AnimationWaiter/index.js +1 -1
- package/src/Badge/index.js +1 -1
- package/src/Blocklet/blocklet.js +1 -1
- package/src/Blocklet/utils.js +1 -1
- package/src/BlockletNFT/index.js +1 -1
- package/src/Center/index.js +1 -1
- package/src/ClickToCopy/index.js +1 -1
- package/src/CodeBlock/index.js +1 -1
- package/src/ContactForm/index.js +1 -1
- package/src/CookieConsent/index.js +1 -1
- package/src/CountDown/index.js +1 -1
- package/src/Datatable/CustomToolbar.js +1 -1
- package/src/Datatable/DatatableContext.js +2 -2
- package/src/Datatable/TableSearch.js +1 -1
- package/src/Datatable/index.js +5 -4
- package/src/Dialog/dialog.js +1 -1
- package/src/Earth/index.js +1 -1
- package/src/Empty/index.js +1 -1
- package/src/ErrorBoundary/fallback.js +1 -1
- package/src/Footer/index.js +1 -1
- package/src/Header/auto-hidden.js +1 -1
- package/src/Header/header.js +1 -1
- package/src/Header/responsive-header.js +1 -1
- package/src/Icon/image.js +1 -1
- package/src/Icon/index.js +1 -1
- package/src/InfoRow/index.js +1 -1
- package/src/Layout/dashboard/index.js +1 -1
- package/src/Layout/dashboard/sidebar.js +1 -1
- package/src/Layout/dashboard-legacy/header.js +1 -1
- package/src/Layout/dashboard-legacy/index.js +1 -1
- package/src/Layout/dashboard-legacy/sidebar.js +1 -1
- package/src/Layout/index.js +1 -1
- package/src/Locale/selector.js +1 -1
- package/src/Logo/index.js +1 -1
- package/src/Metric/index.js +1 -1
- package/src/NFTDisplay/aspect-ratio-container.js +1 -1
- package/src/NFTDisplay/broken.js +1 -1
- package/src/NFTDisplay/index.js +1 -1
- package/src/NFTDisplay/loading.js +1 -1
- package/src/NFTDisplay/svg-embedder/inline-svg.js +2 -2
- package/src/NavMenu/style.js +1 -1
- package/src/PricingTable/PricingPlan.js +1 -1
- package/src/PricingTable/index.js +1 -1
- package/src/Result/result.js +1 -1
- package/src/Screenshot/index.js +1 -1
- package/src/SplitButton/index.js +1 -1
- package/src/Tag/index.js +1 -1
- package/src/TextCollapse/index.js +1 -1
- package/src/Theme/theme-provider.js +7 -6
- package/src/Video/index.js +1 -1
- package/src/Wallet/Action.js +1 -1
- package/src/Wallet/Download.js +1 -1
- package/src/Wallet/Open.js +1 -1
- package/src/WechatPrompt/index.js +1 -1
- package/src/withTheme/index.js +6 -4
package/lib/Datatable/index.js
CHANGED
@@ -12,7 +12,9 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
12
|
|
13
13
|
var _muiDatatables = _interopRequireWildcard(require("mui-datatables"));
|
14
14
|
|
15
|
-
var
|
15
|
+
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
16
|
+
|
17
|
+
var _react2 = require("@emotion/react");
|
16
18
|
|
17
19
|
var _isObject = _interopRequireDefault(require("lodash/isObject"));
|
18
20
|
|
@@ -32,6 +34,8 @@ var _DatatableContext = require("./DatatableContext");
|
|
32
34
|
|
33
35
|
var _jsxRuntime = require("react/jsx-runtime");
|
34
36
|
|
37
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
38
|
+
|
35
39
|
const _excluded = ["data", "columns", "locale", "options", "style", "customButtons", "onChange", "loading", "disabled", "stripped", "verticalKeyWidth", "hideTableHeader", "components", "emptyNode", "durable", "durableKeys"];
|
36
40
|
|
37
41
|
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); }
|
@@ -40,6 +44,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
40
44
|
|
41
45
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
42
46
|
|
47
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
48
|
+
|
43
49
|
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; }
|
44
50
|
|
45
51
|
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; }
|
@@ -52,7 +58,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
52
58
|
|
53
59
|
function Datatable(_ref) {
|
54
60
|
let props = Object.assign({}, _ref);
|
55
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_DatatableContext.
|
61
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_DatatableContext.DatatableProvider, {
|
56
62
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ReDatatable, _objectSpread({}, props))
|
57
63
|
});
|
58
64
|
}
|
@@ -417,12 +423,9 @@ const getDurableData = key => {
|
|
417
423
|
};
|
418
424
|
|
419
425
|
exports.getDurableData = getDurableData;
|
420
|
-
const alignCss = (0,
|
426
|
+
const alignCss = (0, _react2.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .MuiTableCell-head {\n [class*='MUIDataTableHeadCell-toolButton'] {\n width: 100%;\n > [class*='MUIDataTableHeadCell-sortAction'] {\n width: 100%;\n }\n }\n &.pc-align-center {\n text-align: center;\n [class*='MUIDataTableHeadCell-toolButton'] > [class*='MUIDataTableHeadCell-sortAction'] {\n justify-content: center;\n }\n }\n &.pc-align-right {\n text-align: right;\n [class*='MUIDataTableHeadCell-toolButton'] {\n margin-right: 0;\n padding-right: 0;\n & > [class*='MUIDataTableHeadCell-sortAction'] {\n justify-content: flex-end;\n }\n }\n }\n }\n .MuiTableCell-body {\n &.pc-align-center {\n text-align: center;\n }\n &.pc-align-right {\n text-align: right;\n }\n }\n"])));
|
421
427
|
|
422
|
-
const TableContainer =
|
423
|
-
displayName: "Datatable__TableContainer",
|
424
|
-
componentId: "sc-1ju12vq-0"
|
425
|
-
})(["&.datatable-hide-header{thead.MuiTableHead-root{display:none;}}td{&.vertical-align-top{align-items:flex-start;}&.vertical-align-center{align-items:center;}&.vertical-align-bottom{align-items:flex-end;}}height:100%;> .MuiPaper-root{display:flex;flex-direction:column;height:100%;box-shadow:none;}", "{td.MuiTableCell-body{padding-right:0;}[class*='MUIDataTable-responsiveBase']{tr:not([class*='responsiveSimple']){td.MuiTableCell-body{display:flex;> div{width:auto;flex:1;&:first-child{font-weight:bold;font-size:14px;width:auto;flex:0 0 auto;padding-right:16px;&:empty{padding-right:0;}}}}}}}", "{", "}", "{[class*='responsiveSimple']{", "}}", " &.datatable-stripped{.MuiTableBody-root{tr:nth-of-type(odd){background-color:", ";}}}"], props => props.theme.breakpoints.down('md'), props => props.theme.breakpoints.up('md'), alignCss, props => props.theme.breakpoints.up('sm'), alignCss, inProps => {
|
428
|
+
const TableContainer = _styled.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n &.datatable-hide-header {\n thead.MuiTableHead-root {\n display: none;\n }\n }\n\n td {\n &.vertical-align-top {\n align-items: flex-start;\n }\n &.vertical-align-center {\n align-items: center;\n }\n &.vertical-align-bottom {\n align-items: flex-end;\n }\n }\n\n height: 100%;\n > .MuiPaper-root {\n display: flex;\n flex-direction: column;\n height: 100%;\n box-shadow: none;\n }\n ", " {\n td.MuiTableCell-body {\n padding-right: 0;\n }\n [class*='MUIDataTable-responsiveBase'] {\n tr:not([class*='responsiveSimple']) {\n td.MuiTableCell-body {\n display: flex;\n > div {\n width: auto;\n flex: 1;\n &:first-child {\n font-weight: bold;\n font-size: 14px;\n width: auto;\n flex: 0 0 auto;\n padding-right: 16px;\n &:empty {\n padding-right: 0;\n }\n }\n }\n }\n }\n }\n }\n ", " {\n ", "\n }\n ", " {\n [class*='responsiveSimple'] {\n ", "\n }\n }\n\n ", "\n\n &.datatable-stripped {\n .MuiTableBody-root {\n tr:nth-of-type(odd) {\n background-color: ", ";\n }\n }\n }\n"])), props => props.theme.breakpoints.down('md'), props => props.theme.breakpoints.up('md'), alignCss, props => props.theme.breakpoints.up('sm'), alignCss, inProps => {
|
426
429
|
if (inProps.verticalKeyWidth) {
|
427
430
|
return "\n ".concat(inProps.theme.breakpoints.down('md'), " {\n [class*='MUIDataTable-responsiveBase'] {\n tr:not([class*='responsiveSimple']) {\n td.MuiTableCell-body {\n > div {\n &:first-child {\n width: ").concat(inProps.verticalKeyWidth + (!/\D/.test(inProps.verticalKeyWidth) ? 'px' : ''), ";\n }\n }\n }\n }\n }\n }\n ");
|
428
431
|
}
|
@@ -430,10 +433,7 @@ const TableContainer = _styledComponents.default.div.withConfig({
|
|
430
433
|
return '';
|
431
434
|
}, props => props.theme.palette.action.hover);
|
432
435
|
|
433
|
-
const FilterLine =
|
434
|
-
displayName: "Datatable__FilterLine",
|
435
|
-
componentId: "sc-1ju12vq-1"
|
436
|
-
})(["display:flex;align-items:center;.toolbar-filter-content{margin-bottom:8px;}.toolbar-filter-title{font-weight:700;font-size:14px;}"]);
|
436
|
+
const FilterLine = _styled.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n .toolbar-filter-content {\n margin-bottom: 8px;\n }\n .toolbar-filter-title {\n font-weight: 700;\n font-size: 14px;\n }\n"])));
|
437
437
|
|
438
438
|
function WrapFilterList(props) {
|
439
439
|
const {
|
@@ -476,7 +476,4 @@ function WrapTableFooter(props) {
|
|
476
476
|
});
|
477
477
|
}
|
478
478
|
|
479
|
-
const FooterContainer =
|
480
|
-
displayName: "Datatable__FooterContainer",
|
481
|
-
componentId: "sc-1ju12vq-2"
|
482
|
-
})(["display:flex;align-items:center;.datatable-footer{position:relative;margin-left:auto;&.datatable-footer-disabled{position:relative;.MuiTablePagination-root{opacity:0.6;}&:after{position:absolute;display:block;z-index:2;width:100%;height:100%;left:0;top:0;content:'';cursor:not-allowed;}}}", "{.MuiTableCell-footer,.MuiToolbar-gutters{padding:0;}div[variant='standard']{margin-left:4px;margin-right:16px;}.MuiTablePagination-actions{margin-left:10px;}}"], props => props.theme.breakpoints.down('sm'));
|
479
|
+
const FooterContainer = _styled.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n .datatable-footer {\n position: relative;\n margin-left: auto;\n &.datatable-footer-disabled {\n position: relative;\n .MuiTablePagination-root {\n opacity: 0.6;\n }\n &:after {\n position: absolute;\n display: block;\n z-index: 2;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n content: '';\n cursor: not-allowed;\n }\n }\n }\n\n ", " {\n .MuiTableCell-footer,\n .MuiToolbar-gutters {\n padding: 0;\n }\n\n div[variant='standard'] {\n margin-left: 4px;\n margin-right: 16px;\n }\n\n .MuiTablePagination-actions {\n margin-left: 10px;\n }\n }\n"])), props => props.theme.breakpoints.down('sm'));
|
package/lib/Dialog/dialog.js
CHANGED
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
7
7
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
9
9
|
|
10
|
-
var
|
10
|
+
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
11
11
|
|
12
12
|
var _Dialog = _interopRequireDefault(require("@mui/material/Dialog"));
|
13
13
|
|
@@ -25,10 +25,14 @@ var _Close = _interopRequireDefault(require("@mui/icons-material/Close"));
|
|
25
25
|
|
26
26
|
var _jsxRuntime = require("react/jsx-runtime");
|
27
27
|
|
28
|
+
var _templateObject, _templateObject2;
|
29
|
+
|
28
30
|
const _excluded = ["children", "title", "prepend", "toolbar", "actions", "showCloseButton", "actionsPosition", "PaperProps"];
|
29
31
|
|
30
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
31
33
|
|
34
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
35
|
+
|
32
36
|
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; }
|
33
37
|
|
34
38
|
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; }
|
@@ -140,15 +144,9 @@ Dialog.defaultProps = {
|
|
140
144
|
actionsPosition: 'right',
|
141
145
|
PaperProps: {}
|
142
146
|
};
|
143
|
-
const StyledMuiDialog = (0,
|
144
|
-
|
145
|
-
|
146
|
-
})([".MuiDialog-paper{", ";}.MuiDialogContent-root{padding:16px 24px;}.MuiDialogActions-root{padding:8px 24px 16px 24px;}.MuiDialogActions-root.ux-dialog_actions--left{justify-content:flex-start;}.MuiDialogActions-root.ux-dialog_actions--right{justify-content:flex-end;}.MuiDialogActions-root.ux-dialog_actions--center{justify-content:center;}"], props => props.fullScreen ? 'border-radius: 0;' : '');
|
147
|
-
|
148
|
-
const Header = _styledComponents.default.div.withConfig({
|
149
|
-
displayName: "dialog__Header",
|
150
|
-
componentId: "sc-kt5gv0-1"
|
151
|
-
})(["display:flex;justify-content:space-between;align-items:center;padding:16px 24px;.ux-dialog_left{display:flex;justify-content:flex-start;align-items:center;min-width:0;}.ux-dialog_right{display:flex;justify-content:flex-end;align-items:center;}.ux-dialog_toolbar{display:flex;align-items:center;}.ux-dialog_title{margin:0;font-size:18px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.ux-dialog_closeButton{", "}"], props => props.isMobile ? 'margin-left: -12px;' : 'margin-right: -12px;');
|
147
|
+
const StyledMuiDialog = (0, _styled.default)(_Dialog.default)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .MuiDialog-paper {\n ", ";\n }\n .MuiDialogContent-root {\n padding: 16px 24px;\n }\n .MuiDialogActions-root {\n padding: 8px 24px 16px 24px;\n }\n .MuiDialogActions-root.ux-dialog_actions--left {\n justify-content: flex-start;\n }\n .MuiDialogActions-root.ux-dialog_actions--right {\n justify-content: flex-end;\n }\n .MuiDialogActions-root.ux-dialog_actions--center {\n justify-content: center;\n }\n"])), props => props.fullScreen ? 'border-radius: 0;' : '');
|
148
|
+
|
149
|
+
const Header = _styled.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 16px 24px;\n .ux-dialog_left {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n min-width: 0;\n }\n .ux-dialog_right {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n }\n .ux-dialog_toolbar {\n display: flex;\n align-items: center;\n }\n .ux-dialog_title {\n margin: 0;\n font-size: 18px;\n font-weight: 500;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n .ux-dialog_closeButton {\n /* \u4F7F closeButton \u4E0E content \u5DE6/\u53F3\u5BF9\u9F50 */\n ", "\n }\n"])), props => props.isMobile ? 'margin-left: -12px;' : 'margin-right: -12px;');
|
152
150
|
|
153
151
|
var _default = Dialog;
|
154
152
|
exports.default = _default;
|
package/lib/Earth/index.js
CHANGED
@@ -11,7 +11,7 @@ var _useSpring = _interopRequireDefault(require("react-use/lib/useSpring"));
|
|
11
11
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
13
13
|
|
14
|
-
var
|
14
|
+
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
15
15
|
|
16
16
|
var d3 = _interopRequireWildcard(require("d3-geo"));
|
17
17
|
|
@@ -25,12 +25,16 @@ var _util = _interopRequireDefault(require("./util"));
|
|
25
25
|
|
26
26
|
var _jsxRuntime = require("react/jsx-runtime");
|
27
27
|
|
28
|
+
var _templateObject, _templateObject2;
|
29
|
+
|
28
30
|
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); }
|
29
31
|
|
30
32
|
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; }
|
31
33
|
|
32
34
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
33
35
|
|
36
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
37
|
+
|
34
38
|
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; }
|
35
39
|
|
36
40
|
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; }
|
@@ -444,12 +448,6 @@ Earth.defaultProps = {
|
|
444
448
|
colors: {}
|
445
449
|
};
|
446
450
|
|
447
|
-
const Container =
|
448
|
-
displayName: "Earth__Container",
|
449
|
-
componentId: "sc-406ond-0"
|
450
|
-
})(["background-color:", ";width:", "px;height:", "px;position:relative;animation-name:zoomIn;animation-duration:1s;animation-iteration-count:1;animation-timing-function:ease;user-select:none;.defs{height:0;width:0;}.frame{fill:none;pointer-events:all;}.country{fill:", ";stroke:", ";stroke-width:0.5px;transition:fill 300ms ease;&:hover{fill:", ";}}.country--active{fill:", ";}.globe{fill:", ";stroke:rgba(255,255,255,0.5);stroke-width:0.25px;}.graticule{fill:none;stroke:", ";}.star{fill:#fff;stroke:rgba(255,255,255,0.5);stroke-width:0.25px;}.marker{.marker__outer{fill-opacity:0;animation:scaleIn 2s infinite ease-in-out;}}@keyframes zoomIn{from{opacity:0;transform:scale3d(0.1,0.1,0.1);}50%{opacity:1;}}@keyframes scaleIn{from{fill-opacity:0.3;transform:scale3d(0.5,0.5,0.5);}to{fill-opacity:0;transform:scale3d(1.5,1.5,1.5);}}"], props => props.theme === 'light' ? '#f7f7f7' : '#222', props => props.width, props => props.height, props => props.colors.land, props => props.colors.border, props => props.colors.activeLand, props => props.colors.activeLand, props => props.colors.ocean, props => props.colors.graticule);
|
451
|
+
const Container = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background-color: ", ";\n width: ", "px;\n height: ", "px;\n position: relative;\n animation-name: zoomIn;\n animation-duration: 1s;\n animation-iteration-count: 1;\n animation-timing-function: ease;\n user-select: none;\n\n .defs {\n height: 0;\n width: 0;\n }\n\n .frame {\n fill: none;\n pointer-events: all;\n }\n\n .country {\n fill: ", ";\n stroke: ", ";\n stroke-width: 0.5px;\n transition: fill 300ms ease;\n\n &:hover {\n fill: ", ";\n }\n }\n\n .country--active {\n fill: ", ";\n }\n\n .globe {\n fill: ", ";\n stroke: rgba(255, 255, 255, 0.5);\n stroke-width: 0.25px;\n }\n\n .graticule {\n fill: none;\n stroke: ", ";\n }\n\n .star {\n fill: #fff;\n stroke: rgba(255, 255, 255, 0.5);\n stroke-width: 0.25px;\n }\n\n .marker {\n .marker__outer {\n fill-opacity: 0;\n animation: scaleIn 2s infinite ease-in-out;\n }\n }\n\n @keyframes zoomIn {\n from {\n opacity: 0;\n transform: scale3d(0.1, 0.1, 0.1);\n }\n\n 50% {\n opacity: 1;\n }\n }\n\n @keyframes scaleIn {\n from {\n fill-opacity: 0.3;\n transform: scale3d(0.5, 0.5, 0.5);\n }\n to {\n fill-opacity: 0;\n transform: scale3d(1.5, 1.5, 1.5);\n }\n }\n"])), props => props.theme === 'light' ? '#f7f7f7' : '#222', props => props.width, props => props.height, props => props.colors.land, props => props.colors.border, props => props.colors.activeLand, props => props.colors.activeLand, props => props.colors.ocean, props => props.colors.graticule);
|
451
452
|
|
452
|
-
const Tooltip =
|
453
|
-
displayName: "Earth__Tooltip",
|
454
|
-
componentId: "sc-406ond-1"
|
455
|
-
})(["position:absolute;width:auto;min-width:90px;max-width:320px;padding:8px 12px;font-size:14px;background-color:#4a4a4a;border-radius:2px;animation-name:fadeIn;animation-duration:250ms;animation-iteration-count:1;animation-timing-function:ease;.title,.description{margin:0;font-size:16px;color:#fff;}.description{margin-top:", "px;color:#fff;font-size:12px;}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}"], props => props.theme.spacing(1));
|
453
|
+
const Tooltip = _styled.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: absolute;\n width: auto;\n min-width: 90px;\n max-width: 320px;\n padding: 8px 12px;\n font-size: 14px;\n background-color: #4a4a4a;\n border-radius: 2px;\n animation-name: fadeIn;\n animation-duration: 250ms;\n animation-iteration-count: 1;\n animation-timing-function: ease;\n\n .title,\n .description {\n margin: 0;\n font-size: 16px;\n color: #fff;\n }\n\n .description {\n margin-top: ", "px;\n color: #fff;\n font-size: 12px;\n }\n\n @keyframes fadeIn {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n }\n"])), props => props.theme.spacing(1));
|
package/lib/Empty/index.js
CHANGED
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
7
7
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
9
9
|
|
10
|
-
var
|
10
|
+
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
11
11
|
|
12
12
|
var _Icon = _interopRequireDefault(require("../Icon"));
|
13
13
|
|
@@ -15,6 +15,8 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
15
15
|
|
16
16
|
const _excluded = ["name", "color", "size", "children"];
|
17
17
|
|
18
|
+
var _templateObject;
|
19
|
+
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
19
21
|
|
20
22
|
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; }
|
@@ -27,10 +29,9 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
27
29
|
|
28
30
|
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; }
|
29
31
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
})(["display:flex;justify-content:center;align-items:center;flex-direction:column;height:100%;min-height:100px;color:#999;.empty-icon{margin:10px 0;}"]);
|
32
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
33
|
+
|
34
|
+
const Wrapper = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n height: 100%;\n min-height: 100px;\n color: #999;\n .empty-icon {\n margin: 10px 0;\n }\n"])));
|
34
35
|
|
35
36
|
function Empty(_ref) {
|
36
37
|
let {
|
@@ -8,7 +8,7 @@ exports.ErrorFallbackRetry = ErrorFallbackRetry;
|
|
8
8
|
|
9
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
10
10
|
|
11
|
-
var
|
11
|
+
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
12
12
|
|
13
13
|
var _styles = require("@mui/material/styles");
|
14
14
|
|
@@ -18,8 +18,12 @@ var _Button = _interopRequireDefault(require("../Button"));
|
|
18
18
|
|
19
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
20
20
|
|
21
|
+
var _templateObject;
|
22
|
+
|
21
23
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
22
24
|
|
25
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
26
|
+
|
23
27
|
function InternalErrorFallback(_ref) {
|
24
28
|
let {
|
25
29
|
title,
|
@@ -83,7 +87,4 @@ ErrorFallbackRetry.propTypes = {
|
|
83
87
|
resetErrorBoundary: _propTypes.default.func.isRequired
|
84
88
|
};
|
85
89
|
|
86
|
-
const Root =
|
87
|
-
displayName: "fallback__Root",
|
88
|
-
componentId: "sc-1ajge2q-0"
|
89
|
-
})(["padding:16px;border:2px solid ", ";border-radius:4px;color:", ";background-color:", ";font-size:14px;h3{margin:0;font-size:16px;}pre{white-space:normal;}"], props => props.$theme.palette.error.main, props => props.$theme.palette.error.main, _colors.red[50]);
|
90
|
+
const Root = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: 16px;\n border: 2px solid ", ";\n border-radius: 4px;\n color: ", ";\n background-color: ", ";\n font-size: 14px;\n h3 {\n margin: 0;\n font-size: 16px;\n }\n pre {\n white-space: normal;\n }\n"])), props => props.$theme.palette.error.main, props => props.$theme.palette.error.main, _colors.red[50]);
|
package/lib/Footer/index.js
CHANGED
@@ -7,7 +7,7 @@ exports.default = Footer;
|
|
7
7
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
9
9
|
|
10
|
-
var
|
10
|
+
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
11
11
|
|
12
12
|
var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
|
13
13
|
|
@@ -19,9 +19,12 @@ var _Logo = _interopRequireDefault(require("../Logo"));
|
|
19
19
|
|
20
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
21
21
|
|
22
|
+
var _templateObject;
|
23
|
+
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
23
25
|
|
24
|
-
|
26
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
27
|
+
|
25
28
|
function Footer(props) {
|
26
29
|
const newProps = (0, _Util.mergeProps)(props, Footer, ['dark', 'style']);
|
27
30
|
const {
|
@@ -86,10 +89,7 @@ Footer.defaultProps = {
|
|
86
89
|
style: {}
|
87
90
|
};
|
88
91
|
|
89
|
-
const Container =
|
90
|
-
displayName: "Footer__Container",
|
91
|
-
componentId: "sc-1qpifuv-0"
|
92
|
-
})(["margin-top:64px;padding:24px 0 32px;border-top:1px solid ", ";box-sizing:border-box;width:100%;@media (max-width:540px){padding:8px 0;}.footer{display:flex;align-items:center;justify-content:space-between;.footer-item{color:", ";display:flex;align-items:center;flex-wrap:wrap;font-size:0.9rem;}.footer-brand{margin-left:8px;margin-right:8px;}.logo-container{margin-left:24px;width:90px;opacity:0.5;}@media (max-width:540px){.footer-item{font-size:0.7rem;}.logo-container{margin:0 0 0 16px;width:70px;height:40px;}}@media (max-width:380px){.footer-item{font-size:0.65rem;}.logo-container{margin:0 0 0 8px;height:24px;}}}"], props => props.dark ? props.theme.palette.grey[900] : '#dee2e7', _ref => {
|
92
|
+
const Container = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin-top: 64px;\n padding: 24px 0 32px;\n border-top: 1px solid ", ";\n box-sizing: border-box;\n width: 100%;\n\n @media (max-width: 540px) {\n padding: 8px 0;\n }\n\n .footer {\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n .footer-item {\n color: ", ";\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n font-size: 0.9rem;\n }\n\n .footer-brand {\n margin-left: 8px;\n margin-right: 8px;\n }\n\n .logo-container {\n margin-left: 24px;\n width: 90px;\n opacity: 0.5;\n }\n\n @media (max-width: 540px) {\n .footer-item {\n font-size: 0.7rem;\n }\n\n .logo-container {\n margin: 0 0 0 16px;\n width: 70px;\n height: 40px;\n }\n }\n\n @media (max-width: 380px) {\n .footer-item {\n font-size: 0.65rem;\n }\n\n .logo-container {\n margin: 0 0 0 8px;\n height: 24px;\n }\n }\n }\n"])), props => props.dark ? props.theme.palette.grey[900] : '#dee2e7', _ref => {
|
93
93
|
let {
|
94
94
|
theme,
|
95
95
|
dark
|
@@ -7,16 +7,20 @@ exports.default = void 0;
|
|
7
7
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
9
9
|
|
10
|
-
var
|
10
|
+
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
11
11
|
|
12
12
|
var _Box = _interopRequireDefault(require("@mui/material/Box"));
|
13
13
|
|
14
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
15
15
|
|
16
|
+
var _templateObject;
|
17
|
+
|
16
18
|
const _excluded = ["height"];
|
17
19
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
19
21
|
|
22
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
23
|
+
|
20
24
|
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; }
|
21
25
|
|
22
26
|
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; }
|
@@ -44,9 +48,6 @@ function AutoHidden(_ref) {
|
|
44
48
|
AutoHidden.propTypes = {
|
45
49
|
height: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired
|
46
50
|
};
|
47
|
-
const Root = (0,
|
48
|
-
displayName: "auto-hidden__Root",
|
49
|
-
componentId: "sc-1vwixkj-0"
|
50
|
-
})(["overflow:hidden;&:before{content:'';display:inline-block;width:1px;height:100%;float:left;}> *{float:left;white-space:nowrap;}"]);
|
51
|
+
const Root = (0, _styled.default)(_Box.default)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n overflow: hidden;\n &:before {\n content: '';\n display: inline-block;\n width: 1px;\n height: 100%;\n float: left;\n }\n > * {\n float: left;\n white-space: nowrap;\n }\n"])));
|
51
52
|
var _default = AutoHidden;
|
52
53
|
exports.default = _default;
|
package/lib/Header/header.js
CHANGED
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
7
7
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
9
9
|
|
10
|
-
var
|
10
|
+
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
11
11
|
|
12
12
|
var _Box = _interopRequireDefault(require("@mui/material/Box"));
|
13
13
|
|
@@ -19,10 +19,14 @@ var _autoHidden = _interopRequireDefault(require("./auto-hidden"));
|
|
19
19
|
|
20
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
21
21
|
|
22
|
+
var _templateObject;
|
23
|
+
|
22
24
|
const _excluded = ["logo", "brand", "brandAddon", "description", "children", "addons", "prepend", "align"];
|
23
25
|
|
24
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
25
27
|
|
28
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
29
|
+
|
26
30
|
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; }
|
27
31
|
|
28
32
|
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; }
|
@@ -120,10 +124,7 @@ Header.defaultProps = {
|
|
120
124
|
align: 'left'
|
121
125
|
};
|
122
126
|
|
123
|
-
const Root =
|
124
|
-
displayName: "header__Root",
|
125
|
-
componentId: "sc-15qnwg1-0"
|
126
|
-
})(["position:relative;z-index:", ";font-size:14px;background:", ";.header-container{display:flex;align-items:center;height:64px;}.header-logo{display:inline-flex;position:relative;height:44px;margin-right:16px;img,svg{width:auto;height:100%;max-height:100%;}> a{height:100%;line-height:1;}> a::before{position:absolute;top:0;right:0;bottom:0;left:0;background-color:transparent;content:'';}}.header-brand{display:flex;flex-direction:column;justify-content:center;height:44px;margin-right:16px;line-height:1;a{color:inherit;text-decoration:none;}.header-brand-title{display:flex;align-items:center;h2{margin:0;font-size:16px;}}.header-brand-desc{margin-top:4px;color:#9397a1;}}.header-brand-addon{margin-right:16px;}.header-addons{display:flex;align-items:center;}", "{.header-brand{margin-right:12px;.header-brand-title{h2{font-size:14px;}}}}", "{.header-menu{display:inline-block;}.header-logo{height:32px;}.header-brand{.header-brand-title{h2{font-size:13px;}}.header-brand-desc{font-size:12px;}}.header-brand-addon{display:none;}}"], props => props.$theme.zIndex.appBar, props => props.$theme.palette.common.white, props => props.$theme.breakpoints.down('lg'), props => props.$theme.breakpoints.down('md'));
|
127
|
+
const Root = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n z-index: ", ";\n font-size: 14px;\n background: ", ";\n .header-container {\n display: flex;\n align-items: center;\n height: 64px;\n }\n .header-logo {\n display: inline-flex;\n position: relative;\n height: 44px;\n margin-right: 16px;\n img,\n svg {\n width: auto;\n height: 100%;\n max-height: 100%;\n }\n > a {\n height: 100%;\n line-height: 1;\n }\n > a::before {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: transparent;\n content: '';\n }\n }\n .header-brand {\n display: flex;\n flex-direction: column;\n justify-content: center;\n height: 44px;\n margin-right: 16px;\n line-height: 1;\n a {\n color: inherit;\n text-decoration: none;\n }\n .header-brand-title {\n display: flex;\n align-items: center;\n h2 {\n margin: 0;\n font-size: 16px;\n }\n }\n .header-brand-desc {\n margin-top: 4px;\n color: #9397a1;\n }\n }\n .header-brand-addon {\n margin-right: 16px;\n }\n .header-addons {\n display: flex;\n align-items: center;\n }\n ", " {\n .header-brand {\n margin-right: 12px;\n .header-brand-title {\n h2 {\n font-size: 14px;\n }\n }\n }\n }\n ", " {\n .header-menu {\n display: inline-block;\n }\n .header-logo {\n height: 32px;\n }\n .header-brand {\n .header-brand-title {\n h2 {\n font-size: 13px;\n }\n }\n .header-brand-desc {\n font-size: 12px;\n }\n }\n .header-brand-addon {\n display: none;\n }\n }\n"])), props => props.$theme.zIndex.appBar, props => props.$theme.palette.common.white, props => props.$theme.breakpoints.down('lg'), props => props.$theme.breakpoints.down('md'));
|
127
128
|
|
128
129
|
var _default = Header;
|
129
130
|
exports.default = _default;
|
@@ -9,7 +9,7 @@ var _react = require("react");
|
|
9
9
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
11
11
|
|
12
|
-
var
|
12
|
+
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
13
13
|
|
14
14
|
var _Menu = _interopRequireDefault(require("@mui/icons-material/Menu"));
|
15
15
|
|
@@ -29,10 +29,14 @@ var _header = _interopRequireDefault(require("./header"));
|
|
29
29
|
|
30
30
|
var _jsxRuntime = require("react/jsx-runtime");
|
31
31
|
|
32
|
+
var _templateObject, _templateObject2;
|
33
|
+
|
32
34
|
const _excluded = ["menu", "prepend", "children"];
|
33
35
|
|
34
36
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
35
37
|
|
38
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
39
|
+
|
36
40
|
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; }
|
37
41
|
|
38
42
|
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; }
|
@@ -121,13 +125,7 @@ ResponsiveHeader.propTypes = _objectSpread(_objectSpread({}, _header.default.Pro
|
|
121
125
|
children: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func])
|
122
126
|
});
|
123
127
|
ResponsiveHeader.defaultProps = _objectSpread({}, _header.default.defaultProps);
|
124
|
-
const Root = (0,
|
125
|
-
|
126
|
-
componentId: "sc-1dugv47-0"
|
127
|
-
})([".header-menu{display:none;}", "{.header-menu{display:flex;margin-right:12px;}}"], props => props.$theme.breakpoints.down('md'));
|
128
|
-
const MenuPanel = (0, _styledComponents.default)(_Container.default).withConfig({
|
129
|
-
displayName: "responsive-header__MenuPanel",
|
130
|
-
componentId: "sc-1dugv47-1"
|
131
|
-
})(["padding-top:8px;padding-bottom:16px;.navmenu{margin:0 -16px;.navmenu-root > .navmenu-item,.navmenu-root > .navmenu-sub{border:0;}}"]);
|
128
|
+
const Root = (0, _styled.default)(_header.default)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .header-menu {\n display: none;\n }\n ", " {\n .header-menu {\n display: flex;\n margin-right: 12px;\n }\n }\n"])), props => props.$theme.breakpoints.down('md'));
|
129
|
+
const MenuPanel = (0, _styled.default)(_Container.default)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding-top: 8px;\n padding-bottom: 16px;\n .navmenu {\n margin: 0 -16px;\n .navmenu-root > .navmenu-item,\n .navmenu-root > .navmenu-sub {\n border: 0;\n }\n }\n"])));
|
132
130
|
var _default = ResponsiveHeader;
|
133
131
|
exports.default = _default;
|
package/lib/Icon/image.js
CHANGED
@@ -7,16 +7,20 @@ exports.default = ImageIcon;
|
|
7
7
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
9
9
|
|
10
|
-
var
|
10
|
+
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
11
11
|
|
12
12
|
var _Img = _interopRequireDefault(require("../Img"));
|
13
13
|
|
14
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
15
15
|
|
16
|
+
var _templateObject;
|
17
|
+
|
16
18
|
const _excluded = ["name", "size", "alt", "color", "style", "prefix", "showBadge"];
|
17
19
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
19
21
|
|
22
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
23
|
+
|
20
24
|
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; }
|
21
25
|
|
22
26
|
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; }
|
@@ -77,7 +81,4 @@ ImageIcon.defaultProps = {
|
|
77
81
|
showBadge: false
|
78
82
|
};
|
79
83
|
|
80
|
-
const Div =
|
81
|
-
displayName: "image__Div",
|
82
|
-
componentId: "sc-1136r3s-0"
|
83
|
-
})(["position:relative;.badge-point{position:absolute;width:10px;height:10px;border-radius:10px;background-color:#fe4e44;right:-2px;top:0;box-shadow:0px 1px 4px rgba(0,0,0,0.3),0px 0px 20px rgba(0,0,0,0.1);}"]);
|
84
|
+
const Div = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n .badge-point {\n position: absolute;\n width: 10px;\n height: 10px;\n border-radius: 10px;\n background-color: #fe4e44;\n right: -2px;\n top: 0;\n box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.3), 0px 0px 20px rgba(0, 0, 0, 0.1);\n }\n"])));
|
package/lib/Icon/index.js
CHANGED
@@ -9,16 +9,20 @@ var _react = require("react");
|
|
9
9
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
11
11
|
|
12
|
-
var
|
12
|
+
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
13
13
|
|
14
14
|
var _Colors = _interopRequireDefault(require("../Colors"));
|
15
15
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
17
17
|
|
18
|
+
var _templateObject;
|
19
|
+
|
18
20
|
const _excluded = ["name", "color", "size", "variant", "rounded", "style", "className", "forwardedRef"];
|
19
21
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
21
23
|
|
24
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
25
|
+
|
22
26
|
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; }
|
23
27
|
|
24
28
|
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; }
|
@@ -89,10 +93,7 @@ Icon.defaultProps = {
|
|
89
93
|
style: {}
|
90
94
|
};
|
91
95
|
|
92
|
-
const Span =
|
93
|
-
displayName: "Icon__Span",
|
94
|
-
componentId: "sc-3s68zh-0"
|
95
|
-
})(["width:", "px;height:", "px;border-radius:50%;border:1px solid ", ";display:flex;justify-content:center;align-items:center;.fa,.fas,.fal,.far{line-height:", "px;}"], props => props.size * 2, props => props.size * 2, props => props.color, props => props.size);
|
96
|
+
const Span = _styled.default.span(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: ", "px;\n height: ", "px;\n border-radius: 50%;\n border: 1px solid ", ";\n display: flex;\n justify-content: center;\n align-items: center;\n\n .fa,\n .fas,\n .fal,\n .far {\n line-height: ", "px;\n }\n"])), props => props.size * 2, props => props.size * 2, props => props.color, props => props.size);
|
96
97
|
|
97
98
|
var _default = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, _objectSpread(_objectSpread({}, props), {}, {
|
98
99
|
forwardedRef: ref
|
package/lib/InfoRow/index.js
CHANGED
@@ -11,16 +11,20 @@ var _camelCase = _interopRequireDefault(require("lodash/camelCase"));
|
|
11
11
|
|
12
12
|
var _upperFirst = _interopRequireDefault(require("lodash/upperFirst"));
|
13
13
|
|
14
|
-
var
|
14
|
+
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
15
15
|
|
16
16
|
var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
|
17
17
|
|
18
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
19
19
|
|
20
|
+
var _templateObject;
|
21
|
+
|
20
22
|
const _excluded = ["name", "nameFormatter", "layout", "children", "valueComponent", "nameWidth"];
|
21
23
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
23
25
|
|
26
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
27
|
+
|
24
28
|
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; }
|
25
29
|
|
26
30
|
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; }
|
@@ -78,10 +82,7 @@ InfoRow.defaultProps = {
|
|
78
82
|
layout: 'horizontal'
|
79
83
|
};
|
80
84
|
|
81
|
-
const Container =
|
82
|
-
displayName: "InfoRow__Container",
|
83
|
-
componentId: "sc-8ablax-0"
|
84
|
-
})(["display:flex;flex-direction:", ";justify-content:flex-start;align-items:", ";margin-bottom:16px;.info-row__name{width:", "px;margin-right:", ";margin-bottom:", ";text-transform:capitalize;}.info-row__value{flex:1;overflow:auto;word-wrap:break-word;font-weight:500;}@media (max-width:", "px){flex-direction:column;justify-content:flex-start;align-items:flex-start;.info-row__name{font-weight:bold;}.info-row__value{width:100%;font-size:12px;margin-top:8px;}}"], props => props.layout === 'vertical' ? 'column' : 'row', props => props.layout === 'vertical' ? 'flex-start' : 'center', props => props.width, props => props.layout === 'vertical' ? '0' : '8px', props => props.layout === 'vertical' ? '8px' : '0', props => props.theme.breakpoints.values.md);
|
85
|
+
const Container = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: ", ";\n justify-content: flex-start;\n align-items: ", ";\n margin-bottom: 16px;\n\n .info-row__name {\n width: ", "px;\n margin-right: ", ";\n margin-bottom: ", ";\n text-transform: capitalize;\n }\n\n .info-row__value {\n flex: 1;\n overflow: auto;\n word-wrap: break-word;\n font-weight: 500;\n }\n\n @media (max-width: ", "px) {\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n .info-row__name {\n font-weight: bold;\n }\n\n .info-row__value {\n width: 100%;\n font-size: 12px;\n margin-top: 8px;\n }\n }\n"])), props => props.layout === 'vertical' ? 'column' : 'row', props => props.layout === 'vertical' ? 'flex-start' : 'center', props => props.width, props => props.layout === 'vertical' ? '0' : '8px', props => props.layout === 'vertical' ? '8px' : '0', props => props.theme.breakpoints.values.md);
|
85
86
|
|
86
87
|
var _default = InfoRow;
|
87
88
|
exports.default = _default;
|
@@ -13,7 +13,7 @@ var _reactRouterDom = require("react-router-dom");
|
|
13
13
|
|
14
14
|
var _reactHelmet = _interopRequireDefault(require("react-helmet"));
|
15
15
|
|
16
|
-
var
|
16
|
+
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
17
17
|
|
18
18
|
var _styles = require("@mui/material/styles");
|
19
19
|
|
@@ -39,12 +39,16 @@ var _withExternalLink = require("./with-external-link");
|
|
39
39
|
|
40
40
|
var _jsxRuntime = require("react/jsx-runtime");
|
41
41
|
|
42
|
+
var _templateObject, _templateObject2;
|
43
|
+
|
42
44
|
const _excluded = ["closeMenu"],
|
43
45
|
_excluded2 = ["children", "title", "headerProps", "links", "fullWidth", "dense"],
|
44
46
|
_excluded3 = ["legacy"];
|
45
47
|
|
46
48
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
47
49
|
|
50
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
51
|
+
|
48
52
|
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; }
|
49
53
|
|
50
54
|
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; }
|
@@ -181,15 +185,9 @@ Dashboard.defaultProps = {
|
|
181
185
|
dense: 'auto'
|
182
186
|
};
|
183
187
|
|
184
|
-
const Wrapper =
|
185
|
-
displayName: "dashboard__Wrapper",
|
186
|
-
componentId: "sc-arvc7q-0"
|
187
|
-
})(["&.dashboard{display:flex;flex-direction:column;height:100vh;}.dashboard-body{overflow:hidden;flex:1;}.dashboard-sidebar{box-sizing:border-box;flex:0 0 auto;width:", "px;&:hover{overflow-y:auto;}}.dashboard-main{display:flex;flex-direction:column;overflow:auto;flex:1;}.dashboard-content{flex:1;}&.dashboard-dense{.dashboard-sidebar{width:auto;}}", "{.header-logo{display:flex;justify-content:center;width:", "px;}&.dashboard-dense{.header-logo{width:auto;}}}"], props => props.sidebarWidth, props => props.theme.breakpoints.up('md'), props => props.sidebarWidth - 24 * 2);
|
188
|
+
const Wrapper = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &.dashboard {\n display: flex;\n flex-direction: column;\n height: 100vh;\n }\n .dashboard-body {\n overflow: hidden;\n flex: 1;\n }\n .dashboard-sidebar {\n box-sizing: border-box;\n flex: 0 0 auto;\n width: ", "px;\n &:hover {\n overflow-y: auto;\n }\n }\n .dashboard-main {\n display: flex;\n flex-direction: column;\n overflow: auto;\n flex: 1;\n }\n .dashboard-content {\n flex: 1;\n }\n &.dashboard-dense {\n .dashboard-sidebar {\n width: auto;\n }\n }\n ", " {\n .header-logo {\n display: flex;\n justify-content: center;\n /* logo \u4E0E sidebar \u4E2D\u7684 icon \u5782\u76F4\u5BF9\u9F50, sidebarWidth - 24 * 2 */\n width: ", "px;\n }\n &.dashboard-dense {\n .header-logo {\n /* dense = true \u65F6 logo \u4E0E sidenav icons \u4E0D\u9700\u8981\u5BF9\u9F50 */\n width: auto;\n }\n }\n }\n"])), props => props.sidebarWidth, props => props.theme.breakpoints.up('md'), props => props.sidebarWidth - 24 * 2);
|
188
189
|
|
189
|
-
const StyledUxHeader = (0,
|
190
|
-
displayName: "dashboard__StyledUxHeader",
|
191
|
-
componentId: "sc-arvc7q-1"
|
192
|
-
})([".header-container{max-width:100%;}"]); // 兼容旧版 dashboard
|
190
|
+
const StyledUxHeader = (0, _styled.default)(_Header.ResponsiveHeader)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n .header-container {\n max-width: 100%;\n }\n"]))); // 兼容旧版 dashboard
|
193
191
|
|
194
192
|
function DashboardWrapper(_ref4) {
|
195
193
|
let {
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
7
7
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
9
9
|
|
10
|
-
var
|
10
|
+
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
11
11
|
|
12
12
|
var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
|
13
13
|
|
@@ -19,10 +19,14 @@ var _withExternalLink = require("./with-external-link");
|
|
19
19
|
|
20
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
21
21
|
|
22
|
+
var _templateObject;
|
23
|
+
|
22
24
|
const _excluded = ["links", "addons", "dense"];
|
23
25
|
|
24
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
25
27
|
|
28
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
29
|
+
|
26
30
|
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; }
|
27
31
|
|
28
32
|
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; }
|
@@ -117,10 +121,7 @@ Sidebar.defaultProps = {
|
|
117
121
|
};
|
118
122
|
const gradient = 'linear-gradient(32deg, rgba(144, 255, 230, 0.1), rgba(144, 255, 230, 0))';
|
119
123
|
|
120
|
-
const Root =
|
121
|
-
displayName: "sidebar__Root",
|
122
|
-
componentId: "sc-gaosgy-0"
|
123
|
-
})(["display:flex;flex-direction:column;ul{list-style:none;margin:0;padding:0;}.layout-sidebar-link{display:flex;flex-direction:column;align-items:center;padding:22px 24px;color:", ";text-decoration:none;&:hover,&.layout-sidebar-link--active{color:", ";background:", ";border-left-color:", ";}}.layout-sidebar-icon{display:inline-block;width:32px;height:32px;> img,> svg{width:32px;height:32px;}}.layout-sidebar-badge{position:relative;&:after{content:'';position:absolute;width:10px;height:10px;border-radius:10px;background-color:#fe4e44;right:-2px;top:0;box-shadow:0px 1px 4px rgba(0,0,0,0.3),0px 0px 20px rgba(0,0,0,0.1);}}.layout-sidebar-link-text{margin-top:8px;font-size:12px;font-weight:500;text-align:center;text-transform:capitalize;letter-spacing:normal;}.layout-sidebar-divider{display:flex;justify-content:center;align-items:center;&::after{content:'';display:inline-block;width:80px;max-width:100%;border-bottom:1px solid #ddd;}}&.layout-sidebar-dense{box-sizing:border-box;height:100%;padding-top:28px;border-right:1px solid #ddd;.layout-sidebar-link{flex-direction:row;align-items:center;padding:10px 36px 10px 24px;}.layout-sidebar-icon{display:inline-block;width:20px;height:20px;margin-right:12px;> img,> svg{width:20px;height:20px;}}.layout-sidebar-badge{&:after{width:6px;height:6px;border-radius:6px;right:-2px;top:0;}}.layout-sidebar-link-text{margin-top:0;font-size:14px;}.layout-sidebar-divider{&::after{content:'';display:inline-block;width:100%;margin:12px 0;}}}"], props => props.theme.palette.text.secondary, props => props.theme.palette.primary.main, gradient, _colors.teal.A700);
|
124
|
+
const Root = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n ul {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n .layout-sidebar-link {\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 22px 24px;\n color: ", ";\n text-decoration: none;\n\n &:hover,\n &.layout-sidebar-link--active {\n color: ", ";\n background: ", ";\n border-left-color: ", ";\n }\n }\n .layout-sidebar-icon {\n display: inline-block;\n width: 32px;\n height: 32px;\n > img,\n > svg {\n width: 32px;\n height: 32px;\n }\n }\n .layout-sidebar-badge {\n position: relative;\n &:after {\n content: '';\n position: absolute;\n width: 10px;\n height: 10px;\n border-radius: 10px;\n background-color: #fe4e44;\n right: -2px;\n top: 0;\n box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.3), 0px 0px 20px rgba(0, 0, 0, 0.1);\n }\n }\n .layout-sidebar-link-text {\n margin-top: 8px;\n font-size: 12px;\n font-weight: 500;\n text-align: center;\n text-transform: capitalize;\n letter-spacing: normal;\n }\n .layout-sidebar-divider {\n display: flex;\n justify-content: center;\n align-items: center;\n &::after {\n content: '';\n display: inline-block;\n width: 80px;\n max-width: 100%;\n border-bottom: 1px solid #ddd;\n }\n }\n &.layout-sidebar-dense {\n box-sizing: border-box;\n height: 100%;\n padding-top: 28px;\n border-right: 1px solid #ddd;\n .layout-sidebar-link {\n flex-direction: row;\n align-items: center;\n padding: 10px 36px 10px 24px;\n }\n .layout-sidebar-icon {\n display: inline-block;\n width: 20px;\n height: 20px;\n margin-right: 12px;\n > img,\n > svg {\n width: 20px;\n height: 20px;\n }\n }\n .layout-sidebar-badge {\n &:after {\n width: 6px;\n height: 6px;\n border-radius: 6px;\n right: -2px;\n top: 0;\n }\n }\n .layout-sidebar-link-text {\n margin-top: 0;\n font-size: 14px;\n }\n .layout-sidebar-divider {\n &::after {\n content: '';\n display: inline-block;\n width: 100%;\n margin: 12px 0;\n }\n }\n }\n"])), props => props.theme.palette.text.secondary, props => props.theme.palette.primary.main, gradient, _colors.teal.A700);
|
124
125
|
|
125
126
|
var _default = Sidebar;
|
126
127
|
exports.default = _default;
|