@arcblock/ux 2.0.0 → 2.0.1
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.
|
@@ -11,9 +11,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
11
11
|
|
|
12
12
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
13
|
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
var _blue = _interopRequireDefault(require("@mui/material/colors/blue"));
|
|
14
|
+
var _colors = require("@mui/material/colors");
|
|
17
15
|
|
|
18
16
|
var _Logo = _interopRequireDefault(require("../Logo"));
|
|
19
17
|
|
|
@@ -62,13 +60,13 @@ function ActivityIndicator(_ref) {
|
|
|
62
60
|
showText: false
|
|
63
61
|
}), /*#__PURE__*/_react.default.createElement(Orbit, {
|
|
64
62
|
size: 56,
|
|
65
|
-
orbitColor:
|
|
66
|
-
atomColor:
|
|
63
|
+
orbitColor: _colors.green[500],
|
|
64
|
+
atomColor: _colors.green[500],
|
|
67
65
|
duration: 1
|
|
68
66
|
}), /*#__PURE__*/_react.default.createElement(Orbit, {
|
|
69
67
|
size: 80,
|
|
70
|
-
orbitColor:
|
|
71
|
-
atomColor:
|
|
68
|
+
orbitColor: _colors.blue[800],
|
|
69
|
+
atomColor: _colors.blue[800],
|
|
72
70
|
duration: 1.5
|
|
73
71
|
}), /*#__PURE__*/_react.default.createElement(Orbit, {
|
|
74
72
|
size: 100,
|
package/lib/Alert/index.js
CHANGED
|
@@ -13,7 +13,7 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
13
13
|
|
|
14
14
|
var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _colors = require("@mui/material/colors");
|
|
17
17
|
|
|
18
18
|
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
19
19
|
|
|
@@ -75,7 +75,7 @@ const Alert = props => {
|
|
|
75
75
|
borderColor
|
|
76
76
|
} = types[type] || types.success;
|
|
77
77
|
const styles = Object.assign({
|
|
78
|
-
color:
|
|
78
|
+
color: _colors.blueGrey[500],
|
|
79
79
|
backgroundColor: variant === 'border' ? backgroundColor : 'transparent',
|
|
80
80
|
borderLeft: variant === 'border' ? "5px solid ".concat(borderColor) : 'none'
|
|
81
81
|
}, style);
|
|
@@ -19,7 +19,7 @@ var _Button = _interopRequireDefault(require("@mui/material/Button"));
|
|
|
19
19
|
|
|
20
20
|
var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _colors = require("@mui/material/colors");
|
|
23
23
|
|
|
24
24
|
var _image = _interopRequireDefault(require("../../Icon/image"));
|
|
25
25
|
|
|
@@ -110,7 +110,7 @@ const gradient = 'linear-gradient(32deg, rgba(144, 255, 230, 0.1), rgba(144, 255
|
|
|
110
110
|
const MenuItem = (0, _styledComponents.default)(_Button.default).withConfig({
|
|
111
111
|
displayName: "sidebar__MenuItem",
|
|
112
112
|
componentId: "sc-gaosgy-1"
|
|
113
|
-
})(["&&{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;transition:all 200ms ease-in-out;background:", ";padding:24px 0;border-left:2px solid ", ";border-radius:0;&:hover{background:", ";border-left-color:", ";}.menu-title{margin-top:8px;font-size:12px;font-weight:500;text-align:center;text-transform:capitalize;letter-spacing:normal;width:80%;color:", ";}}"], props => props.selected ? gradient : '', props => props.selected ?
|
|
113
|
+
})(["&&{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;transition:all 200ms ease-in-out;background:", ";padding:24px 0;border-left:2px solid ", ";border-radius:0;&:hover{background:", ";border-left-color:", ";}.menu-title{margin-top:8px;font-size:12px;font-weight:500;text-align:center;text-transform:capitalize;letter-spacing:normal;width:80%;color:", ";}}"], props => props.selected ? gradient : '', props => props.selected ? _colors.teal.A700 : 'transparent', gradient, _colors.teal.A700, props => props.theme.palette.text.primary);
|
|
114
114
|
|
|
115
115
|
var _default = (0, _reactRouterDom.withRouter)((0, _withTheme.default)(Sidebar));
|
|
116
116
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcblock/ux",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Common used react components for arcblock products",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
"react": ">=18.1.0",
|
|
54
54
|
"react-ga": "^2.7.0"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "9fa98015ebb44b81cc813dad0196cc48c14c5cf7",
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@arcblock/icons": "^2.0.
|
|
59
|
-
"@arcblock/react-hooks": "^2.0.
|
|
58
|
+
"@arcblock/icons": "^2.0.1",
|
|
59
|
+
"@arcblock/react-hooks": "^2.0.1",
|
|
60
60
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
61
61
|
"@emotion/react": "^11.9.0",
|
|
62
62
|
"@emotion/styled": "^11.8.1",
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
|
-
import green from '@mui/material/colors
|
|
5
|
-
import blue from '@mui/material/colors/blue';
|
|
4
|
+
import { green, blue } from '@mui/material/colors';
|
|
6
5
|
|
|
7
6
|
import Logo from '../Logo';
|
|
8
7
|
import colors from '../Colors';
|
package/src/Alert/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import Typography from '@mui/material/Typography';
|
|
5
|
-
import blueGrey from '@mui/material/colors
|
|
5
|
+
import { blueGrey } from '@mui/material/colors';
|
|
6
6
|
|
|
7
7
|
import Icon from '../Icon';
|
|
8
8
|
import { mergeProps } from '../Util';
|
|
@@ -6,7 +6,7 @@ import withTheme from '@mui/styles/withTheme';
|
|
|
6
6
|
import { withRouter, Link } from 'react-router-dom';
|
|
7
7
|
import Button from '@mui/material/Button';
|
|
8
8
|
import Typography from '@mui/material/Typography';
|
|
9
|
-
import teal from '@mui/material/colors
|
|
9
|
+
import { teal } from '@mui/material/colors';
|
|
10
10
|
|
|
11
11
|
import ImageIcon from '../../Icon/image';
|
|
12
12
|
import Logo from '../../Logo';
|