@arcblock/ux 2.9.14 → 2.9.16
Sign up to get free protection for your applications and to get access to all the features.
- package/es/Locale/selector.js +1 -1
- package/es/SessionBlocklet/index.js +1 -1
- package/es/SessionUser/components/un-login.js +1 -1
- package/es/Theme/theme.js +12 -3
- package/lib/Locale/selector.js +1 -1
- package/lib/SessionBlocklet/index.js +1 -1
- package/lib/SessionUser/components/un-login.js +1 -1
- package/lib/Theme/theme.js +12 -3
- package/package.json +8 -7
- package/src/Locale/selector.jsx +1 -1
- package/src/SessionBlocklet/index.jsx +1 -1
- package/src/SessionUser/components/un-login.jsx +1 -1
- package/src/Theme/theme.js +13 -3
package/es/Locale/selector.js
CHANGED
@@ -3,8 +3,8 @@ import { useState, useContext, useRef, useMemo } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
4
4
|
import { Button, Typography, IconButton, Popper, MenuItem, MenuList, Box, ClickAwayListener } from '@mui/material';
|
5
5
|
import { Icon as IconifyIcon } from '@iconify/react';
|
6
|
-
import LanguageIcon from '@iconify-icons/material-symbols/language';
|
7
6
|
import CheckIcon from '@iconify-icons/material-symbols/check';
|
7
|
+
import LanguageIcon from 'iconify-icons-material-symbols-400/language';
|
8
8
|
import noop from 'lodash/noop';
|
9
9
|
import { getColor, getBackground } from '../Util';
|
10
10
|
import { temp as colors } from '../Colors';
|
@@ -2,7 +2,7 @@ import { useRef } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
import { Box, ClickAwayListener, Fade, IconButton, List, ListItem, ListItemButton, Paper, Popper, Typography } from '@mui/material';
|
4
4
|
import { Icon } from '@iconify/react';
|
5
|
-
import DashboardOutlineRoundedIcon from '
|
5
|
+
import DashboardOutlineRoundedIcon from 'iconify-icons-material-symbols-400/dashboard-outline-rounded';
|
6
6
|
import WidgetsOutlineRoundedIcon from '@iconify-icons/material-symbols/widgets-outline-rounded';
|
7
7
|
import { useMemoizedFn, useReactive } from 'ahooks';
|
8
8
|
import Button from '../Button';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import PropTypes from 'prop-types';
|
2
2
|
import { Box, CircularProgress, IconButton } from '@mui/material';
|
3
3
|
import { Icon } from '@iconify/react';
|
4
|
-
import PersonOutlineRoundedIcon from '
|
4
|
+
import PersonOutlineRoundedIcon from 'iconify-icons-material-symbols-400/person-outline-rounded';
|
5
5
|
import { useRef } from 'react';
|
6
6
|
import { useMemoizedFn } from 'ahooks';
|
7
7
|
import noop from 'lodash/noop';
|
package/es/Theme/theme.js
CHANGED
@@ -1,7 +1,16 @@
|
|
1
1
|
// https://app.zeplin.io/styleguide/5d1436f1e97c2156f49c0725/colors
|
2
2
|
import { createTheme as _createTheme, responsiveFontSizes } from '@mui/material/styles';
|
3
|
-
|
4
|
-
import '@fontsource/
|
3
|
+
// 为了避免加载全量的字体导致打包后体积太大,目前只选择了 latin 语系的字体
|
4
|
+
import '@fontsource/inter/latin-400.css';
|
5
|
+
import '@fontsource/inter/latin-500.css';
|
6
|
+
import '@fontsource/inter/latin-600.css';
|
7
|
+
import '@fontsource/inter/latin-700.css';
|
8
|
+
import '@fontsource/inter/latin-900.css';
|
9
|
+
import '@fontsource/inter/latin-ext-400.css';
|
10
|
+
import '@fontsource/inter/latin-ext-500.css';
|
11
|
+
import '@fontsource/inter/latin-ext-600.css';
|
12
|
+
import '@fontsource/inter/latin-ext-700.css';
|
13
|
+
import '@fontsource/inter/latin-ext-900.css';
|
5
14
|
import colors from '../Colors';
|
6
15
|
const muiDarkTheme = _createTheme({
|
7
16
|
palette: {
|
@@ -50,7 +59,7 @@ export const create = ({
|
|
50
59
|
main: mode === 'light' ? '#222222' : colors.common.white,
|
51
60
|
gray: mode === 'light' ? colors.grey[500] : colors.grey[300]
|
52
61
|
},
|
53
|
-
fontFamily: ['
|
62
|
+
fontFamily: ['Inter', 'Avenir', '-apple-system', 'BlinkMacSystemFont', '"Segoe UI"', 'Roboto', '"Helvetica Neue"', 'Arial', 'sans-serif', '"Apple Color Emoji"', '"Segoe UI Emoji"', '"Segoe UI Symbol"'].join(','),
|
54
63
|
// 按最新设计规范, 只使用 400/700
|
55
64
|
fontWeightLight: 400,
|
56
65
|
fontWeightRegular: 400,
|
package/lib/Locale/selector.js
CHANGED
@@ -8,8 +8,8 @@ var _react = require("react");
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
9
9
|
var _material = require("@mui/material");
|
10
10
|
var _react2 = require("@iconify/react");
|
11
|
-
var _language = _interopRequireDefault(require("@iconify-icons/material-symbols/language"));
|
12
11
|
var _check = _interopRequireDefault(require("@iconify-icons/material-symbols/check"));
|
12
|
+
var _language = _interopRequireDefault(require("iconify-icons-material-symbols-400/language"));
|
13
13
|
var _noop = _interopRequireDefault(require("lodash/noop"));
|
14
14
|
var _Util = require("../Util");
|
15
15
|
var _Colors = require("../Colors");
|
@@ -8,7 +8,7 @@ var _react = require("react");
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
9
9
|
var _material = require("@mui/material");
|
10
10
|
var _react2 = require("@iconify/react");
|
11
|
-
var _dashboardOutlineRounded = _interopRequireDefault(require("
|
11
|
+
var _dashboardOutlineRounded = _interopRequireDefault(require("iconify-icons-material-symbols-400/dashboard-outline-rounded"));
|
12
12
|
var _widgetsOutlineRounded = _interopRequireDefault(require("@iconify-icons/material-symbols/widgets-outline-rounded"));
|
13
13
|
var _ahooks = require("ahooks");
|
14
14
|
var _Button = _interopRequireDefault(require("../Button"));
|
@@ -7,7 +7,7 @@ exports.default = UnLogin;
|
|
7
7
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
8
8
|
var _material = require("@mui/material");
|
9
9
|
var _react = require("@iconify/react");
|
10
|
-
var _personOutlineRounded = _interopRequireDefault(require("
|
10
|
+
var _personOutlineRounded = _interopRequireDefault(require("iconify-icons-material-symbols-400/person-outline-rounded"));
|
11
11
|
var _react2 = require("react");
|
12
12
|
var _ahooks = require("ahooks");
|
13
13
|
var _noop = _interopRequireDefault(require("lodash/noop"));
|
package/lib/Theme/theme.js
CHANGED
@@ -5,10 +5,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.createTheme = exports.create = void 0;
|
7
7
|
var _styles = require("@mui/material/styles");
|
8
|
-
require("@fontsource/
|
9
|
-
require("@fontsource/
|
8
|
+
require("@fontsource/inter/latin-400.css");
|
9
|
+
require("@fontsource/inter/latin-500.css");
|
10
|
+
require("@fontsource/inter/latin-600.css");
|
11
|
+
require("@fontsource/inter/latin-700.css");
|
12
|
+
require("@fontsource/inter/latin-900.css");
|
13
|
+
require("@fontsource/inter/latin-ext-400.css");
|
14
|
+
require("@fontsource/inter/latin-ext-500.css");
|
15
|
+
require("@fontsource/inter/latin-ext-600.css");
|
16
|
+
require("@fontsource/inter/latin-ext-700.css");
|
17
|
+
require("@fontsource/inter/latin-ext-900.css");
|
10
18
|
var _Colors = _interopRequireDefault(require("../Colors"));
|
11
19
|
const _excluded = ["mode", "pageWidth", "palette", "typography", "overrides"]; // https://app.zeplin.io/styleguide/5d1436f1e97c2156f49c0725/colors
|
20
|
+
// 为了避免加载全量的字体导致打包后体积太大,目前只选择了 latin 语系的字体
|
12
21
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
13
22
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
14
23
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
@@ -64,7 +73,7 @@ const create = exports.create = function create() {
|
|
64
73
|
main: mode === 'light' ? '#222222' : _Colors.default.common.white,
|
65
74
|
gray: mode === 'light' ? _Colors.default.grey[500] : _Colors.default.grey[300]
|
66
75
|
},
|
67
|
-
fontFamily: ['
|
76
|
+
fontFamily: ['Inter', 'Avenir', '-apple-system', 'BlinkMacSystemFont', '"Segoe UI"', 'Roboto', '"Helvetica Neue"', 'Arial', 'sans-serif', '"Apple Color Emoji"', '"Segoe UI Emoji"', '"Segoe UI Symbol"'].join(','),
|
68
77
|
// 按最新设计规范, 只使用 400/700
|
69
78
|
fontWeightLight: 400,
|
70
79
|
fontWeightRegular: 400,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@arcblock/ux",
|
3
|
-
"version": "2.9.
|
3
|
+
"version": "2.9.16",
|
4
4
|
"description": "Common used react components for arcblock products",
|
5
5
|
"keywords": [
|
6
6
|
"react",
|
@@ -344,17 +344,17 @@
|
|
344
344
|
"peerDependencies": {
|
345
345
|
"react": ">=18.1.0"
|
346
346
|
},
|
347
|
-
"gitHead": "
|
347
|
+
"gitHead": "d970601a888adbd27f76ee9ce490bc8f93f11833",
|
348
348
|
"dependencies": {
|
349
349
|
"@arcblock/did-motif": "^1.1.13",
|
350
|
-
"@arcblock/icons": "^2.9.
|
351
|
-
"@arcblock/nft-display": "^2.9.
|
352
|
-
"@arcblock/react-hooks": "^2.9.
|
350
|
+
"@arcblock/icons": "^2.9.16",
|
351
|
+
"@arcblock/nft-display": "^2.9.16",
|
352
|
+
"@arcblock/react-hooks": "^2.9.16",
|
353
353
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
354
354
|
"@emotion/react": "^11.10.4",
|
355
355
|
"@emotion/styled": "^11.10.4",
|
356
|
-
"@fontsource/
|
357
|
-
"@fontsource/ubuntu-mono": "^
|
356
|
+
"@fontsource/inter": "^5.0.16",
|
357
|
+
"@fontsource/ubuntu-mono": "^5.0.18",
|
358
358
|
"@iconify-icons/logos": "^1.2.36",
|
359
359
|
"@iconify-icons/material-symbols": "^1.2.58",
|
360
360
|
"@iconify-icons/mdi": "^1.2.48",
|
@@ -373,6 +373,7 @@
|
|
373
373
|
"devices.css": "^0.1.15",
|
374
374
|
"highlight.js": "^11.6.0",
|
375
375
|
"iconify-icon": "^1.0.8",
|
376
|
+
"iconify-icons-material-symbols-400": "^0.0.1",
|
376
377
|
"is-svg": "^4.3.2",
|
377
378
|
"js-cookie": "^2.2.1",
|
378
379
|
"lodash": "^4.17.21",
|
package/src/Locale/selector.jsx
CHANGED
@@ -3,8 +3,8 @@ import { useState, useContext, useRef, useMemo } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
4
4
|
import { Button, Typography, IconButton, Popper, MenuItem, MenuList, Box, ClickAwayListener } from '@mui/material';
|
5
5
|
import { Icon as IconifyIcon } from '@iconify/react';
|
6
|
-
import LanguageIcon from '@iconify-icons/material-symbols/language';
|
7
6
|
import CheckIcon from '@iconify-icons/material-symbols/check';
|
7
|
+
import LanguageIcon from 'iconify-icons-material-symbols-400/language';
|
8
8
|
import noop from 'lodash/noop';
|
9
9
|
|
10
10
|
import { getColor, getBackground } from '../Util';
|
@@ -13,7 +13,7 @@ import {
|
|
13
13
|
Typography,
|
14
14
|
} from '@mui/material';
|
15
15
|
import { Icon } from '@iconify/react';
|
16
|
-
import DashboardOutlineRoundedIcon from '
|
16
|
+
import DashboardOutlineRoundedIcon from 'iconify-icons-material-symbols-400/dashboard-outline-rounded';
|
17
17
|
import WidgetsOutlineRoundedIcon from '@iconify-icons/material-symbols/widgets-outline-rounded';
|
18
18
|
import { useMemoizedFn, useReactive } from 'ahooks';
|
19
19
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import PropTypes from 'prop-types';
|
2
2
|
import { Box, CircularProgress, IconButton } from '@mui/material';
|
3
3
|
import { Icon } from '@iconify/react';
|
4
|
-
import PersonOutlineRoundedIcon from '
|
4
|
+
import PersonOutlineRoundedIcon from 'iconify-icons-material-symbols-400/person-outline-rounded';
|
5
5
|
import { useRef } from 'react';
|
6
6
|
import { useMemoizedFn } from 'ahooks';
|
7
7
|
import noop from 'lodash/noop';
|
package/src/Theme/theme.js
CHANGED
@@ -1,7 +1,17 @@
|
|
1
1
|
// https://app.zeplin.io/styleguide/5d1436f1e97c2156f49c0725/colors
|
2
2
|
import { createTheme as _createTheme, responsiveFontSizes } from '@mui/material/styles';
|
3
|
-
|
4
|
-
import '@fontsource/
|
3
|
+
// 为了避免加载全量的字体导致打包后体积太大,目前只选择了 latin 语系的字体
|
4
|
+
import '@fontsource/inter/latin-400.css';
|
5
|
+
import '@fontsource/inter/latin-500.css';
|
6
|
+
import '@fontsource/inter/latin-600.css';
|
7
|
+
import '@fontsource/inter/latin-700.css';
|
8
|
+
import '@fontsource/inter/latin-900.css';
|
9
|
+
import '@fontsource/inter/latin-ext-400.css';
|
10
|
+
import '@fontsource/inter/latin-ext-500.css';
|
11
|
+
import '@fontsource/inter/latin-ext-600.css';
|
12
|
+
import '@fontsource/inter/latin-ext-700.css';
|
13
|
+
import '@fontsource/inter/latin-ext-900.css';
|
14
|
+
|
5
15
|
import colors from '../Colors';
|
6
16
|
|
7
17
|
const muiDarkTheme = _createTheme({ palette: { mode: 'dark' } });
|
@@ -52,7 +62,7 @@ export const create = ({ mode = 'light', pageWidth = 'md', palette, typography,
|
|
52
62
|
gray: mode === 'light' ? colors.grey[500] : colors.grey[300],
|
53
63
|
},
|
54
64
|
fontFamily: [
|
55
|
-
'
|
65
|
+
'Inter',
|
56
66
|
'Avenir',
|
57
67
|
'-apple-system',
|
58
68
|
'BlinkMacSystemFont',
|