@abtnode/ux 1.8.6 → 1.8.7

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.
@@ -7,14 +7,18 @@ exports.default = CardSelector;
7
7
 
8
8
  var _react = require("react");
9
9
 
10
- var _styledComponents = _interopRequireDefault(require("styled-components"));
10
+ var _styled = _interopRequireDefault(require("@emotion/styled"));
11
11
 
12
12
  var _propTypes = _interopRequireDefault(require("prop-types"));
13
13
 
14
14
  var _jsxRuntime = require("react/jsx-runtime");
15
15
 
16
+ var _templateObject;
17
+
16
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
19
 
20
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
21
+
18
22
  function CardSelector(_ref) {
19
23
  let {
20
24
  list,
@@ -98,10 +102,7 @@ function CardSelector(_ref) {
98
102
  });
99
103
  }
100
104
 
101
- const Contianer = _styledComponents.default.div.withConfig({
102
- displayName: "card-selector__Contianer",
103
- componentId: "sc-t0bkjd-0"
104
- })(["overflow:hidden;mask-image:linear-gradient(to left,transparent,black 3%,black 97%,transparent);overflow:hidden;.card-container{display:flex;white-space:nowrap;width:max-content;transition:all ease 0.3s;}.card-item{display:inline-flex;justify-content:center;align-items:center;flex-shrink:0;cursor:pointer;img{max-width:100%;max-height:100%;width:auto;height:auto;outline:#526ded solid 0;transition:all ease 0.2s;box-shadow:rgba(0,0,0,0.2) 0 0 10px;}&.selected{cursor:default;img{outline:#526ded solid 5px;}}}"]);
105
+ const Contianer = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n overflow: hidden;\n mask-image: linear-gradient(to left, transparent, black 3%, black 97%, transparent);\n overflow: hidden;\n .card-container {\n display: flex;\n white-space: nowrap;\n width: max-content;\n transition: all ease 0.3s;\n }\n .card-item {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n flex-shrink: 0;\n cursor: pointer;\n img {\n max-width: 100%;\n max-height: 100%;\n width: auto;\n height: auto;\n outline: #526ded solid 0;\n transition: all ease 0.2s;\n box-shadow: rgba(0, 0, 0, 0.2) 0 0 10px;\n }\n &.selected {\n cursor: default;\n img {\n outline: #526ded solid 5px;\n }\n }\n }\n"])));
105
106
 
106
107
  CardSelector.propTypes = {
107
108
  list: _propTypes.default.array,
@@ -7,7 +7,7 @@ exports.default = void 0;
7
7
 
8
8
  var _react = require("react");
9
9
 
10
- var _styledComponents = _interopRequireDefault(require("styled-components"));
10
+ var _styled = _interopRequireDefault(require("@emotion/styled"));
11
11
 
12
12
  var _reactRouterDom = require("react-router-dom");
13
13
 
@@ -33,9 +33,12 @@ var _usePassportId = _interopRequireDefault(require("./hooks/use-passport-id"));
33
33
 
34
34
  var _jsxRuntime = require("react/jsx-runtime");
35
35
 
36
+ var _templateObject;
37
+
36
38
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
37
39
 
38
- /* eslint-disable react/jsx-one-expression-per-line, no-undef */
40
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
41
+
39
42
  // eslint-disable-next-line react/prop-types
40
43
  function IssuePassport(_ref) {
41
44
  let {
@@ -51,7 +54,7 @@ function IssuePassport(_ref) {
51
54
  locale
52
55
  } = (0, _react.useContext)(_context.LocaleContext);
53
56
  const [success, setSuccess] = (0, _react.useState)(false);
54
- const history = (0, _reactRouterDom.useHistory)();
57
+ const navigate = (0, _reactRouterDom.useNavigate)();
55
58
  const {
56
59
  setPassportId
57
60
  } = (0, _usePassportId.default)();
@@ -83,11 +86,15 @@ function IssuePassport(_ref) {
83
86
  }
84
87
 
85
88
  if ((((_window$env = window.env) === null || _window$env === void 0 ? void 0 : _window$env.apiPrefix) || '').startsWith(_constant.WELLKNOWN_SERVICE_PATH_PREFIX)) {
86
- history.replace("".concat(_constant.WELLKNOWN_SERVICE_PATH_PREFIX, "/login"));
89
+ navigate("".concat(_constant.WELLKNOWN_SERVICE_PATH_PREFIX, "/login"), {
90
+ replace: true
91
+ });
87
92
  return;
88
93
  }
89
94
 
90
- history.replace('/');
95
+ navigate('/', {
96
+ replace: true
97
+ });
91
98
  };
92
99
 
93
100
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(Div, {
@@ -143,10 +150,7 @@ function IssuePassport(_ref) {
143
150
  });
144
151
  }
145
152
 
146
- const Div = (0, _styledComponents.default)(_Center.default).withConfig({
147
- displayName: "issue-passport__Div",
148
- componentId: "sc-ovfail-0"
149
- })([".header{text-align:center;margin-bottom:8px;}.subheader{text-align:center;margin-bottom:24px;}.login{padding:24px;height:auto;min-height:480px;display:flex;flex-direction:column;}.connect{background:#fafafa;}"]);
153
+ const Div = (0, _styled.default)(_Center.default)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .header {\n text-align: center;\n margin-bottom: 8px;\n }\n\n .subheader {\n text-align: center;\n margin-bottom: 24px;\n }\n\n .login {\n padding: 24px;\n height: auto;\n min-height: 480px;\n display: flex;\n flex-direction: column;\n }\n\n .connect {\n background: #fafafa;\n }\n"])));
150
154
 
151
155
  var _default = (0, _wrapLocale.default)(IssuePassport);
152
156
 
@@ -5,16 +5,20 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = ContentLayout;
7
7
 
8
- var _styledComponents = _interopRequireDefault(require("styled-components"));
8
+ var _styled = _interopRequireDefault(require("@emotion/styled"));
9
9
 
10
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
 
12
12
  var _jsxRuntime = require("react/jsx-runtime");
13
13
 
14
+ var _templateObject;
15
+
14
16
  const _excluded = ["children"];
15
17
 
16
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
19
 
20
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
21
+
18
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; }
19
23
 
20
24
  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; }
@@ -40,7 +44,4 @@ ContentLayout.propTypes = {
40
44
  children: _propTypes.default.any.isRequired
41
45
  };
42
46
 
43
- const Container = _styledComponents.default.div.withConfig({
44
- displayName: "content-layout__Container",
45
- componentId: "sc-panu44-0"
46
- })(["display:flex;flex-direction:column;align-items:center;width:100%;height:100%;.header{text-align:center;}.body{display:flex;flex-direction:column;align-items:center;margin-top:30px;width:100%;min-height:200px;flex:1;", "{padding:24px;}", "{padding:0 16px 16px;}}.footer{display:flex;justify-content:center;", "{padding-bottom:34px;}", "{margin-top:auto;padding-bottom:10px;}}"], props => props.theme.breakpoints.up('md'), props => props.theme.breakpoints.down('md'), props => props.theme.breakpoints.up('sm'), props => props.theme.breakpoints.down('md'));
47
+ const Container = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n height: 100%;\n\n .header {\n text-align: center;\n }\n\n .body {\n display: flex;\n flex-direction: column;\n align-items: center;\n margin-top: 30px;\n width: 100%;\n min-height: 200px;\n flex: 1;\n\n ", " {\n padding: 24px;\n }\n\n ", " {\n padding: 0 16px 16px;\n }\n }\n\n .footer {\n display: flex;\n justify-content: center;\n\n ", " {\n padding-bottom: 34px;\n }\n\n ", " {\n margin-top: auto;\n padding-bottom: 10px;\n }\n }\n"])), props => props.theme.breakpoints.up('md'), props => props.theme.breakpoints.down('md'), props => props.theme.breakpoints.up('sm'), props => props.theme.breakpoints.down('md'));
@@ -5,14 +5,18 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
- var _styledComponents = _interopRequireDefault(require("styled-components"));
8
+ var _styled = _interopRequireDefault(require("@emotion/styled"));
9
9
 
10
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
 
12
12
  var _jsxRuntime = require("react/jsx-runtime");
13
13
 
14
+ var _templateObject;
15
+
14
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
17
 
18
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
19
+
16
20
  function PageHeader(_ref) {
17
21
  let {
18
22
  title,
@@ -29,10 +33,7 @@ function PageHeader(_ref) {
29
33
  });
30
34
  }
31
35
 
32
- const Content = _styledComponents.default.div.withConfig({
33
- displayName: "page-header__Content",
34
- componentId: "sc-1w6zplg-0"
35
- })(["text-align:center;.title{font-size:24px;font-weight:400;color:", ";}.sub-title{margin:0 auto;max-width:90%;font-size:14px;color:", ";}"], props => props.theme.palette.common.black, props => props.theme.palette.grey[600]);
36
+ const Content = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n text-align: center;\n\n .title {\n font-size: 24px;\n font-weight: 400;\n color: ", ";\n }\n\n .sub-title {\n margin: 0 auto;\n max-width: 90%;\n font-size: 14px;\n color: ", ";\n }\n"])), props => props.theme.palette.common.black, props => props.theme.palette.grey[600]);
36
37
 
37
38
  var _default = PageHeader;
38
39
  exports.default = _default;
@@ -7,7 +7,7 @@ exports.default = HeaderAddon;
7
7
 
8
8
  var _react = require("react");
9
9
 
10
- var _styledComponents = _interopRequireDefault(require("styled-components"));
10
+ var _styled = _interopRequireDefault(require("@emotion/styled"));
11
11
 
12
12
  var _propTypes = _interopRequireDefault(require("prop-types"));
13
13
 
@@ -27,8 +27,12 @@ var _QuestionMarkCircle = _interopRequireDefault(require("@arcblock/icons/lib/Qu
27
27
 
28
28
  var _jsxRuntime = require("react/jsx-runtime");
29
29
 
30
+ var _templateObject;
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; }
@@ -115,7 +119,4 @@ HeaderAddon.defaultProps = {
115
119
  sessionManagerProps: {}
116
120
  };
117
121
 
118
- const Div = _styledComponents.default.div.withConfig({
119
- displayName: "addon__Div",
120
- componentId: "sc-5tyqcw-0"
121
- })(["display:flex;justify-content:center;align-items:center;.MuiIconButton-root svg{width:26px;height:26px;}.user-addon{.user-avatar{width:28px;border-radius:14px;height:auto;}}", "{> button,> a{padding-left:8px;padding-right:8px;}}"], props => props.theme.breakpoints.down('md'));
122
+ const Div = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-items: center;\n\n .MuiIconButton-root svg {\n width: 26px;\n height: 26px;\n }\n\n .user-addon {\n .user-avatar {\n width: 28px;\n border-radius: 14px;\n height: auto;\n }\n }\n\n ", " {\n > button,\n > a {\n padding-left: 8px;\n padding-right: 8px;\n }\n }\n"])), props => props.theme.breakpoints.down('md'));
@@ -7,7 +7,7 @@ exports.default = void 0;
7
7
 
8
8
  var _react = require("react");
9
9
 
10
- var _styledComponents = _interopRequireDefault(require("styled-components"));
10
+ var _styled = _interopRequireDefault(require("@emotion/styled"));
11
11
 
12
12
  var _reactRouterDom = require("react-router-dom");
13
13
 
@@ -51,11 +51,12 @@ var _usePassportId = _interopRequireDefault(require("./hooks/use-passport-id"));
51
51
 
52
52
  var _jsxRuntime = require("react/jsx-runtime");
53
53
 
54
+ var _templateObject;
55
+
54
56
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
55
57
 
56
- /* eslint-disable react/no-unstable-nested-components */
58
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
57
59
 
58
- /* eslint-disable react/jsx-one-expression-per-line */
59
60
  // eslint-disable-next-line react/prop-types
60
61
  function ColorStepIcon(_ref) {
61
62
  let {
@@ -109,7 +110,7 @@ function LostPassport(_ref2) {
109
110
  const [user, setUser] = (0, _react.useState)(false);
110
111
  const [passport, setPassport] = (0, _react.useState)(false);
111
112
  const [success, setSuccess] = (0, _react.useState)(false);
112
- const history = (0, _reactRouterDom.useHistory)();
113
+ const navigate = (0, _reactRouterDom.useNavigate)();
113
114
  const [activeStep, setActiveStep] = (0, _react.useState)(0);
114
115
  const {
115
116
  setPassportId
@@ -151,16 +152,22 @@ function LostPassport(_ref2) {
151
152
  const redirect = searchParams.get('redirect');
152
153
 
153
154
  if (redirect) {
154
- history.replace(redirect);
155
+ navigate(redirect, {
156
+ replace: true
157
+ });
155
158
  return;
156
159
  }
157
160
 
158
161
  if ((((_window$env = window.env) === null || _window$env === void 0 ? void 0 : _window$env.apiPrefix) || '').startsWith(_constant.WELLKNOWN_SERVICE_PATH_PREFIX)) {
159
- history.replace("".concat(_constant.WELLKNOWN_SERVICE_PATH_PREFIX, "/login"));
162
+ navigate("".concat(_constant.WELLKNOWN_SERVICE_PATH_PREFIX, "/login"), {
163
+ replace: true
164
+ });
160
165
  return;
161
166
  }
162
167
 
163
- history.replace('/');
168
+ navigate('/', {
169
+ replace: true
170
+ });
164
171
  };
165
172
 
166
173
  const handleChange = event => {
@@ -347,10 +354,7 @@ function LostPassport(_ref2) {
347
354
  });
348
355
  }
349
356
 
350
- const Div = (0, _styledComponents.default)(_Container.default).withConfig({
351
- displayName: "lost-passport__Div",
352
- componentId: "sc-1ov2rpb-0"
353
- })(["padding-top:46px;padding-bottom:46px;height:100%;overflow:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;@media (max-width:", "px){display:block;}.header{text-align:center;margin-bottom:24px;}.stepper{padding:24px;height:auto;width:100%;min-height:640px;display:flex;flex-direction:column;.stepper-progress{padding:0;flex:0;margin-bottom:24px;.MuiStepLabel-label.MuiStepLabel-alternativeLabel{margin-top:8px;}.MuiStepConnector-alternativeLabel{top:24px;}.MuiStepConnector-lineHorizontal{height:3px;border:none;background-color:#eaeaf0;border-radius:1px;}.step-icon-w{background-color:", ";z-index:1;color:", ";width:50px;height:50px;display:flex;border-radius:50%;justify-content:center;align-items:center;.step-icon{font-size:30px;}}.step-icon-w--active{background-color:", ";}.step-icon-w--completed{background-color:", ";}}.stepper-content{padding:0 64px;flex:1;display:flex;justify-content:center;align-items:center;margin-bottom:24px;.stepper-icon{margin-left:40px;}.stepper-auth{padding:0;.auth-title{margin-bottom:16px;}}.stepper-tip{text-align:center;margin-bottom:16px;}@media (max-width:", "px){padding:0;}}.stepper-actions{flex:0;text-align:right;padding:0 64px;display:none;.step-button{margin-right:8px;}}.select-passport{width:80%;@media (max-width:", "px){width:100%;}}.user-info{.name{font-weight:500;font-size:18px;line-height:25px;color:#222222;}}}.connect{background:#fafafa;}"], props => props.theme.breakpoints.values.sm, props => props.theme.palette.grey[500], props => props.theme.palette.common.white, props => props.theme.palette.primary.main, props => props.theme.palette.secondary.main, props => props.theme.breakpoints.values.sm, props => props.theme.breakpoints.values.sm);
357
+ const Div = (0, _styled.default)(_Container.default)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding-top: 46px;\n padding-bottom: 46px;\n height: 100%;\n overflow: auto;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n @media (max-width: ", "px) {\n display: block;\n }\n .header {\n text-align: center;\n margin-bottom: 24px;\n }\n\n .stepper {\n padding: 24px;\n height: auto;\n width: 100%;\n min-height: 640px;\n display: flex;\n flex-direction: column;\n\n .stepper-progress {\n padding: 0;\n flex: 0;\n margin-bottom: 24px;\n\n .MuiStepLabel-label.MuiStepLabel-alternativeLabel {\n margin-top: 8px;\n }\n\n .MuiStepConnector-alternativeLabel {\n top: 24px;\n }\n\n .MuiStepConnector-lineHorizontal {\n height: 3px;\n border: none;\n background-color: #eaeaf0;\n border-radius: 1px;\n }\n\n .step-icon-w {\n background-color: ", ";\n z-index: 1;\n color: ", ";\n width: 50px;\n height: 50px;\n display: flex;\n border-radius: 50%;\n justify-content: center;\n align-items: center;\n .step-icon {\n font-size: 30px;\n }\n }\n\n .step-icon-w--active {\n background-color: ", ";\n }\n\n .step-icon-w--completed {\n background-color: ", ";\n }\n }\n\n .stepper-content {\n padding: 0 64px;\n flex: 1;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-bottom: 24px;\n\n .stepper-icon {\n margin-left: 40px;\n }\n\n .stepper-auth {\n padding: 0;\n\n .auth-title {\n margin-bottom: 16px;\n }\n }\n\n .stepper-tip {\n text-align: center;\n margin-bottom: 16px;\n }\n @media (max-width: ", "px) {\n padding: 0;\n }\n }\n\n .stepper-actions {\n flex: 0;\n text-align: right;\n padding: 0 64px;\n display: none;\n .step-button {\n margin-right: 8px;\n }\n }\n\n .select-passport {\n width: 80%;\n @media (max-width: ", "px) {\n width: 100%;\n }\n }\n\n .user-info {\n .name {\n font-weight: 500;\n font-size: 18px;\n line-height: 25px;\n color: #222222;\n }\n }\n }\n\n .connect {\n background: #fafafa;\n }\n"])), props => props.theme.breakpoints.values.sm, props => props.theme.palette.grey[500], props => props.theme.palette.common.white, props => props.theme.palette.primary.main, props => props.theme.palette.secondary.main, props => props.theme.breakpoints.values.sm, props => props.theme.breakpoints.values.sm);
354
358
 
355
359
  var _default = (0, _wrapLocale.default)(LostPassport);
356
360
 
package/lib/nav-logo.js CHANGED
@@ -7,15 +7,19 @@ exports.default = LogoContainer;
7
7
 
8
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
9
 
10
- var _styledComponents = _interopRequireDefault(require("styled-components"));
10
+ var _styled = _interopRequireDefault(require("@emotion/styled"));
11
11
 
12
12
  var _jsxRuntime = require("react/jsx-runtime");
13
13
 
14
+ var _templateObject, _templateObject2;
15
+
14
16
  const _excluded = ["logo", "name", "subname", "previousData"],
15
17
  _excluded2 = ["logo"];
16
18
 
17
19
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
20
 
21
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
22
+
19
23
  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; }
20
24
 
21
25
  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; }
@@ -130,12 +134,6 @@ function LogoImg(_ref2) {
130
134
  }));
131
135
  }
132
136
 
133
- const LogoImgDiv = _styledComponents.default.div.withConfig({
134
- displayName: "nav-logo__LogoImgDiv",
135
- componentId: "sc-b61p4p-0"
136
- })(["display:block;> *{display:block;}"]);
137
+ const LogoImgDiv = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: block;\n > * {\n display: block;\n }\n"])));
137
138
 
138
- const Container = _styledComponents.default.div.withConfig({
139
- displayName: "nav-logo__Container",
140
- componentId: "sc-b61p4p-1"
141
- })(["position:relative;display:block;.logo-inner{display:flex;align-items:center;height:100%;.logo-img-content{position:relative;display:block;}.logo-info{display:flex;flex-direction:column;justify-content:center;margin-left:10px;letter-spacing:0.1px;&.zero-left{margin-left:0%;}.logo-name{position:relative;line-height:16px;font-size:16px;color:#121319;}.logo-subname{position:relative;line-height:13px;font-size:13px;color:#7d8085;}}}.postion-abs{position:absolute;left:0;top:0;height:100%;}.right-fade-out-ele{animation:right-fade-out ease 0.5s;animation-delay:2s;animation-fill-mode:forwards;}.right-fade-in-ele{animation:right-fade-in ease 0.5s;animation-delay:2s;animation-fill-mode:both;}@keyframes right-fade-out{0%{opacity:1;transform:translate(0,0);}100%{opacity:0;transform:translate(8px,0);}}@keyframes right-fade-in{0%{opacity:0;transform:translate(8px,0);}100%{opacity:1;transform:translate(0,0);}}.left-fade-out-ele{animation:left-fade-out ease 0.5s;animation-delay:2s;animation-fill-mode:forwards;}.left-fade-in-ele{animation:left-fade-in ease 0.5s;animation-delay:2s;animation-fill-mode:both;}@keyframes left-fade-out{0%{opacity:1;transform:translate(0,0);}100%{opacity:0;transform:translate(-8px,0);}}@keyframes left-fade-in{0%{opacity:0;transform:translate(-8px,0);}100%{opacity:1;transform:translate(0,0);}}"]);
139
+ const Container = _styled.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: relative;\n display: block;\n\n .logo-inner {\n display: flex;\n align-items: center;\n height: 100%;\n .logo-img-content {\n position: relative;\n display: block;\n }\n .logo-info {\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin-left: 10px;\n letter-spacing: 0.1px;\n &.zero-left {\n margin-left: 0%;\n }\n .logo-name {\n position: relative;\n line-height: 16px;\n font-size: 16px;\n color: #121319;\n }\n .logo-subname {\n position: relative;\n line-height: 13px;\n font-size: 13px;\n color: #7d8085;\n }\n }\n }\n\n .postion-abs {\n position: absolute;\n left: 0;\n top: 0;\n height: 100%;\n }\n\n .right-fade-out-ele {\n animation: right-fade-out ease 0.5s;\n animation-delay: 2s;\n animation-fill-mode: forwards;\n }\n\n .right-fade-in-ele {\n animation: right-fade-in ease 0.5s;\n animation-delay: 2s;\n animation-fill-mode: both;\n }\n\n @keyframes right-fade-out {\n 0% {\n opacity: 1;\n transform: translate(0, 0);\n }\n 100% {\n opacity: 0;\n transform: translate(8px, 0);\n }\n }\n\n @keyframes right-fade-in {\n 0% {\n opacity: 0;\n transform: translate(8px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate(0, 0);\n }\n }\n\n .left-fade-out-ele {\n animation: left-fade-out ease 0.5s;\n animation-delay: 2s;\n animation-fill-mode: forwards;\n }\n\n .left-fade-in-ele {\n animation: left-fade-in ease 0.5s;\n animation-delay: 2s;\n animation-fill-mode: both;\n }\n\n @keyframes left-fade-out {\n 0% {\n opacity: 1;\n transform: translate(0, 0);\n }\n 100% {\n opacity: 0;\n transform: translate(-8px, 0);\n }\n }\n\n @keyframes left-fade-in {\n 0% {\n opacity: 0;\n transform: translate(-8px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate(0, 0);\n }\n }\n"])));
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.8.6",
6
+ "version": "1.8.7",
7
7
  "description": "UX components shared across abtnode packages",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -21,36 +21,34 @@
21
21
  "author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
22
22
  "license": "MIT",
23
23
  "dependencies": {
24
- "@abtnode/auth": "1.8.6",
25
- "@abtnode/constant": "1.8.6",
26
- "@arcblock/did-connect": "^2.1.70",
27
- "@arcblock/icons": "^2.1.70",
28
- "@arcblock/ux": "^2.1.70",
29
- "@blocklet/meta": "1.8.6",
30
- "@emotion/react": "^11.9.0",
31
- "@emotion/styled": "^11.8.1",
32
- "@mui/icons-material": "^5.6.2",
33
- "@mui/material": "^5.6.4",
34
- "@mui/styles": "^5.6.2",
35
- "ahooks": "^3.4.0",
36
- "dayjs": "^1.11.2",
37
- "flat": "^5.0.0",
24
+ "@abtnode/auth": "1.8.7",
25
+ "@abtnode/constant": "1.8.7",
26
+ "@arcblock/did-connect": "^2.4.0",
27
+ "@arcblock/icons": "^2.4.0",
28
+ "@arcblock/ux": "^2.4.0",
29
+ "@blocklet/meta": "1.8.7",
30
+ "@emotion/react": "^11.10.0",
31
+ "@emotion/styled": "^11.10.0",
32
+ "@mui/icons-material": "^5.8.4",
33
+ "@mui/material": "^5.10.0",
34
+ "@mui/styles": "^5.9.3",
35
+ "ahooks": "^3.7.0",
36
+ "dayjs": "^1.11.4",
37
+ "flat": "^5.0.2",
38
38
  "notistack": "2.0.5",
39
- "prop-types": "^15.7.2",
40
- "react": "^18.1.0",
39
+ "prop-types": "^15.8.1",
40
+ "react": "^18.2.0",
41
41
  "react-color": "^2.19.3",
42
- "react-router-dom": "^5.1.2",
43
- "react-use": "^17.3.2",
44
- "styled-components": "^5.0.1"
42
+ "react-router-dom": "^6.3.0",
43
+ "react-use": "^17.4.0"
45
44
  },
46
45
  "devDependencies": {
47
- "@babel/cli": "^7.8.4",
48
- "@babel/core": "^7.8.4",
49
- "@babel/plugin-proposal-class-properties": "^7.8.3",
50
- "@babel/preset-env": "^7.8.4",
51
- "@babel/preset-react": "^7.8.3",
52
- "babel-plugin-inline-react-svg": "^1.1.1",
53
- "babel-plugin-styled-components": "^1.10.7"
46
+ "@babel/cli": "^7.18.10",
47
+ "@babel/core": "^7.18.10",
48
+ "@babel/plugin-proposal-class-properties": "^7.18.6",
49
+ "@babel/preset-env": "^7.18.10",
50
+ "@babel/preset-react": "^7.18.6",
51
+ "babel-plugin-inline-react-svg": "^1.1.2"
54
52
  },
55
- "gitHead": "070dad4ce5e12c8961399788f9d206bf7d9d263f"
53
+ "gitHead": "9807ea28b3ae634f5806c875774ac3b7e38502a1"
56
54
  }