@arcblock/ux 2.13.12 → 2.13.13
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 +9 -5
- package/lib/Address/did-address.js +14 -7
- package/lib/BlockletV2/blocklet.js +1 -1
- package/lib/CloseButton/index.js +1 -2
- package/lib/Colors/index.d.ts +1 -3
- package/lib/Colors/index.js +2 -4
- package/lib/Colors/themes/default.d.ts +3 -66
- package/lib/Colors/themes/default.js +4 -74
- package/lib/Colors/themes/did-connect.d.ts +11 -6
- package/lib/Colors/themes/did-connect.js +17 -12
- package/lib/Colors/themes/temp.d.ts +3 -0
- package/lib/Colors/themes/temp.js +3 -0
- package/lib/Config/config-provider.d.ts +4 -5
- package/lib/Config/config-provider.js +7 -26
- package/lib/Config/theme-mode-toggle.js +0 -1
- package/lib/DID/index.js +3 -4
- package/lib/Datatable/CustomToolbar.js +3 -0
- package/lib/Datatable/index.js +105 -71
- package/lib/Footer/index.js +2 -5
- package/lib/Header/header.js +3 -1
- package/lib/Header/responsive-header.js +3 -1
- package/lib/Layout/dashboard/index.js +14 -2
- package/lib/Layout/dashboard/sidebar.js +1 -2
- package/lib/LoadingMask/index.js +4 -3
- package/lib/Locale/selector.js +3 -3
- package/lib/NavMenu/nav-menu.js +14 -9
- package/lib/NavMenu/products.js +3 -1
- package/lib/NavMenu/style.js +7 -3
- package/lib/NavMenu/sub-item-group.js +1 -1
- package/lib/PhoneInput/country-select.js +2 -3
- package/lib/SessionBlocklet/index.js +3 -3
- package/lib/SessionUser/components/did-space.js +14 -28
- package/lib/SessionUser/components/logged-in.js +2 -2
- package/lib/SessionUser/components/quick-login-item.js +13 -11
- package/lib/SessionUser/components/session-user-item.js +5 -6
- package/lib/SessionUser/components/session-user-switch.js +15 -13
- package/lib/SessionUser/components/un-login.js +9 -7
- package/lib/SessionUser/components/user-info.js +9 -8
- package/lib/SessionUser/images/did-spaces.svg +7 -13
- package/lib/Success/index.js +8 -4
- package/lib/Switch/index.js +3 -3
- package/lib/Tabs/index.js +8 -9
- package/lib/Theme/theme-provider.d.ts +5 -1
- package/lib/Theme/theme-provider.js +60 -5
- package/lib/Theme/theme.d.ts +6 -3
- package/lib/Theme/theme.js +55 -19
- package/lib/UserCard/Container/card.js +1 -1
- package/lib/UserCard/Container/dialog.js +1 -1
- package/lib/Util/index.d.ts +8 -0
- package/lib/Util/index.js +23 -1
- package/lib/type.d.ts +5 -1
- package/package.json +7 -6
- package/src/ActivityIndicator/index.jsx +4 -4
- package/src/Address/did-address.tsx +5 -5
- package/src/BlockletV2/blocklet.tsx +1 -1
- package/src/CloseButton/index.tsx +1 -2
- package/src/Colors/index.ts +2 -7
- package/src/Colors/themes/default.ts +4 -50
- package/src/Colors/themes/did-connect.ts +13 -6
- package/src/Colors/themes/temp.ts +3 -0
- package/src/Config/config-provider.tsx +17 -30
- package/src/Config/theme-mode-toggle.tsx +1 -1
- package/src/DID/index.tsx +3 -4
- package/src/Datatable/CustomToolbar.jsx +1 -0
- package/src/Datatable/index.jsx +107 -70
- package/src/Footer/index.tsx +2 -2
- package/src/Header/header.tsx +1 -1
- package/src/Header/responsive-header.tsx +2 -0
- package/src/Layout/dashboard/index.tsx +8 -4
- package/src/Layout/dashboard/sidebar.tsx +1 -2
- package/src/LoadingMask/index.tsx +3 -4
- package/src/Locale/selector.tsx +3 -4
- package/src/NavMenu/nav-menu.tsx +15 -10
- package/src/NavMenu/products.tsx +1 -1
- package/src/NavMenu/style.ts +5 -2
- package/src/NavMenu/sub-item-group.tsx +1 -1
- package/src/PhoneInput/country-select.tsx +2 -3
- package/src/SessionBlocklet/index.tsx +3 -3
- package/src/SessionUser/components/did-space.tsx +14 -10
- package/src/SessionUser/components/logged-in.tsx +2 -2
- package/src/SessionUser/components/quick-login-item.tsx +11 -12
- package/src/SessionUser/components/session-user-item.tsx +3 -6
- package/src/SessionUser/components/session-user-switch.tsx +13 -12
- package/src/SessionUser/components/un-login.tsx +7 -6
- package/src/SessionUser/components/user-info.tsx +7 -8
- package/src/SessionUser/images/did-spaces.svg +7 -13
- package/src/Success/index.tsx +6 -4
- package/src/Switch/index.jsx +3 -3
- package/src/Tabs/index.tsx +8 -9
- package/src/Theme/theme-provider.tsx +73 -2
- package/src/Theme/theme.ts +73 -22
- package/src/UserCard/Container/card.tsx +1 -1
- package/src/UserCard/Container/dialog.tsx +1 -1
- package/src/Util/index.ts +25 -0
- package/src/type.d.ts +5 -1
package/lib/Datatable/index.js
CHANGED
@@ -503,99 +503,133 @@ const alignCss = css`
|
|
503
503
|
`;
|
504
504
|
const TableContainer = styled('div', {
|
505
505
|
shouldForwardProp: prop => prop !== 'verticalKeyWidth'
|
506
|
-
})
|
507
|
-
|
508
|
-
|
509
|
-
|
506
|
+
})(({
|
507
|
+
theme,
|
508
|
+
verticalKeyWidth
|
509
|
+
}) => {
|
510
|
+
const primaryTextColor = theme.palette.text.primary;
|
511
|
+
const defaultBgColor = theme.palette.background.default;
|
512
|
+
const hoverBgColor = theme.palette.action.hover;
|
513
|
+
const oddRowBgColor = theme.palette.grey[50];
|
514
|
+
const verticalKeyWidthStyle = verticalKeyWidth ? `
|
515
|
+
${theme.breakpoints.down('md')} {
|
516
|
+
[class*='MUIDataTable-responsiveBase'] {
|
517
|
+
tr:not([class*='responsiveSimple']) {
|
518
|
+
td.MuiTableCell-body {
|
519
|
+
> div {
|
520
|
+
&:first-of-type {
|
521
|
+
width: ${verticalKeyWidth + (!/\D/.test(verticalKeyWidth) ? 'px' : '')};
|
522
|
+
}
|
523
|
+
}
|
524
|
+
}
|
525
|
+
}
|
526
|
+
}
|
527
|
+
}
|
528
|
+
` : '';
|
529
|
+
return css`
|
530
|
+
&.datatable-hide-header {
|
531
|
+
thead.MuiTableHead-root {
|
532
|
+
display: none;
|
533
|
+
}
|
510
534
|
}
|
511
|
-
}
|
512
535
|
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
536
|
+
td {
|
537
|
+
&.vertical-align-top {
|
538
|
+
align-items: flex-start;
|
539
|
+
}
|
540
|
+
&.vertical-align-center {
|
541
|
+
align-items: center;
|
542
|
+
}
|
543
|
+
&.vertical-align-bottom {
|
544
|
+
align-items: flex-end;
|
545
|
+
}
|
522
546
|
}
|
523
|
-
}
|
524
547
|
|
525
|
-
height: 100%;
|
526
|
-
> .MuiPaper-root {
|
527
|
-
display: flex;
|
528
|
-
flex-direction: column;
|
529
548
|
height: 100%;
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
549
|
+
> .MuiPaper-root {
|
550
|
+
display: flex;
|
551
|
+
flex-direction: column;
|
552
|
+
height: 100%;
|
553
|
+
box-shadow: none;
|
554
|
+
background: none;
|
555
|
+
background-color: ${defaultBgColor};
|
535
556
|
}
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
font-size: 14px;
|
557
|
+
${theme.breakpoints.down('md')} {
|
558
|
+
td.MuiTableCell-body {
|
559
|
+
padding-right: 0;
|
560
|
+
}
|
561
|
+
[class*='MUIDataTable-responsiveBase'] {
|
562
|
+
tr:not([class*='responsiveSimple']) {
|
563
|
+
td.MuiTableCell-body {
|
564
|
+
display: flex;
|
565
|
+
> div {
|
546
566
|
width: auto;
|
547
|
-
flex:
|
548
|
-
|
549
|
-
|
550
|
-
|
567
|
+
flex: 1;
|
568
|
+
&:first-of-type {
|
569
|
+
font-weight: bold;
|
570
|
+
font-size: 14px;
|
571
|
+
width: auto;
|
572
|
+
flex: 0 0 auto;
|
573
|
+
padding-right: 16px;
|
574
|
+
&:empty {
|
575
|
+
padding-right: 0;
|
576
|
+
}
|
551
577
|
}
|
552
578
|
}
|
553
579
|
}
|
554
580
|
}
|
555
581
|
}
|
556
582
|
}
|
557
|
-
|
558
|
-
${props => props.theme.breakpoints.up('md')} {
|
559
|
-
${alignCss}
|
560
|
-
}
|
561
|
-
${props => props.theme.breakpoints.up('sm')} {
|
562
|
-
[class*='responsiveSimple'] {
|
583
|
+
${theme.breakpoints.up('md')} {
|
563
584
|
${alignCss}
|
564
585
|
}
|
565
|
-
|
586
|
+
${theme.breakpoints.up('sm')} {
|
587
|
+
[class*='responsiveSimple'] {
|
588
|
+
${alignCss}
|
589
|
+
}
|
590
|
+
}
|
566
591
|
|
567
|
-
|
568
|
-
if (inProps.verticalKeyWidth) {
|
569
|
-
return `
|
570
|
-
${inProps.theme.breakpoints.down('md')} {
|
571
|
-
[class*='MUIDataTable-responsiveBase'] {
|
572
|
-
tr:not([class*='responsiveSimple']) {
|
573
|
-
td.MuiTableCell-body {
|
574
|
-
> div {
|
575
|
-
&:first-of-type {
|
576
|
-
width: ${inProps.verticalKeyWidth + (!/\D/.test(inProps.verticalKeyWidth) ? 'px' : '')};
|
577
|
-
}
|
578
|
-
}
|
579
|
-
}
|
580
|
-
}
|
581
|
-
}
|
582
|
-
}
|
583
|
-
`;
|
584
|
-
}
|
585
|
-
return '';
|
586
|
-
}}
|
592
|
+
${verticalKeyWidthStyle}
|
587
593
|
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
594
|
+
.MuiTableCell-head {
|
595
|
+
color: ${primaryTextColor};
|
596
|
+
background-color: ${defaultBgColor};
|
597
|
+
}
|
598
|
+
|
599
|
+
.MuiTableCell-root {
|
600
|
+
color: ${primaryTextColor};
|
601
|
+
}
|
602
|
+
|
603
|
+
.MuiTableRow-root {
|
604
|
+
background-color: ${defaultBgColor};
|
605
|
+
&:nth-of-type(even) {
|
606
|
+
background-color: ${defaultBgColor};
|
607
|
+
}
|
608
|
+
&:hover {
|
609
|
+
background-color: ${hoverBgColor};
|
610
|
+
}
|
611
|
+
&.MuiTableRow-footer {
|
612
|
+
background-color: ${defaultBgColor};
|
592
613
|
}
|
593
614
|
}
|
594
|
-
|
595
|
-
|
615
|
+
|
616
|
+
&.datatable-stripped {
|
617
|
+
.MuiTableRow-root:nth-of-type(odd) {
|
618
|
+
background-color: ${oddRowBgColor};
|
619
|
+
&:hover {
|
620
|
+
background-color: ${hoverBgColor};
|
621
|
+
}
|
622
|
+
&.MuiTableRow-footer {
|
623
|
+
background-color: ${defaultBgColor};
|
624
|
+
}
|
625
|
+
}
|
626
|
+
}
|
627
|
+
`;
|
628
|
+
});
|
596
629
|
const FooterContainer = styled('div')`
|
597
630
|
display: flex;
|
598
631
|
align-items: center;
|
632
|
+
background-color: ${props => props.theme.palette.background.default};
|
599
633
|
.datatable-footer {
|
600
634
|
position: relative;
|
601
635
|
margin-left: auto;
|
package/lib/Footer/index.js
CHANGED
@@ -100,7 +100,7 @@ const Container = styled('div', {
|
|
100
100
|
position: relative;
|
101
101
|
margin-top: 64px;
|
102
102
|
padding: 24px 0 32px;
|
103
|
-
border-top: 1px solid ${props => props.
|
103
|
+
border-top: 1px solid ${props => props.theme.palette.divider};
|
104
104
|
box-sizing: border-box;
|
105
105
|
width: 100%;
|
106
106
|
|
@@ -115,10 +115,7 @@ const Container = styled('div', {
|
|
115
115
|
flex-wrap: wrap;
|
116
116
|
|
117
117
|
.footer-item {
|
118
|
-
color: ${
|
119
|
-
theme,
|
120
|
-
dark
|
121
|
-
}) => dark ? theme.palette.grey[500] : theme.palette.grey[900]};
|
118
|
+
color: ${props => props.theme.palette.text.hint};
|
122
119
|
display: flex;
|
123
120
|
align-items: center;
|
124
121
|
flex-wrap: wrap;
|
package/lib/Header/header.js
CHANGED
@@ -99,7 +99,9 @@ function ResponsiveHeader({
|
|
99
99
|
style: {
|
100
100
|
top: 64,
|
101
101
|
bottom: 0,
|
102
|
-
boxShadow: 'none'
|
102
|
+
boxShadow: 'none',
|
103
|
+
backgroundImage: 'none',
|
104
|
+
backgroundColor: theme.palette.background.paper
|
103
105
|
}
|
104
106
|
},
|
105
107
|
children: /*#__PURE__*/_jsx(MenuPanel, {
|
@@ -63,6 +63,7 @@ function Dashboard({
|
|
63
63
|
fullWidth = false,
|
64
64
|
dense = 'auto',
|
65
65
|
footerProps = {},
|
66
|
+
sx,
|
66
67
|
children,
|
67
68
|
...rest
|
68
69
|
}) {
|
@@ -100,6 +101,7 @@ function Dashboard({
|
|
100
101
|
}
|
101
102
|
}, []);
|
102
103
|
return /*#__PURE__*/_jsxs(Wrapper, {
|
104
|
+
sx: sx,
|
103
105
|
...rest,
|
104
106
|
className: classes,
|
105
107
|
sidebarWidth: sidebarWidth,
|
@@ -177,6 +179,7 @@ function Dashboard({
|
|
177
179
|
}),
|
178
180
|
children: children
|
179
181
|
}), footerVisible && /*#__PURE__*/_jsx(Footer, {
|
182
|
+
dark: theme.palette.mode === 'dark',
|
180
183
|
...footerProps
|
181
184
|
})]
|
182
185
|
})]
|
@@ -190,6 +193,9 @@ const Wrapper = styled('div', {
|
|
190
193
|
display: flex;
|
191
194
|
flex-direction: column;
|
192
195
|
height: 100vh;
|
196
|
+
background-color: ${({
|
197
|
+
theme
|
198
|
+
}) => theme.palette.background.default};
|
193
199
|
}
|
194
200
|
.dashboard-body {
|
195
201
|
overflow: hidden;
|
@@ -219,11 +225,17 @@ const Wrapper = styled('div', {
|
|
219
225
|
}
|
220
226
|
&.dashboard-dense {
|
221
227
|
.dashboard-header {
|
222
|
-
border-bottom: 1px solid
|
228
|
+
border-bottom: 1px solid;
|
229
|
+
border-color: ${({
|
230
|
+
theme
|
231
|
+
}) => theme.palette.divider};
|
223
232
|
}
|
224
233
|
.dashboard-sidebar {
|
225
234
|
width: 256px;
|
226
|
-
border-right: 1px solid
|
235
|
+
border-right: 1px solid;
|
236
|
+
border-color: ${({
|
237
|
+
theme
|
238
|
+
}) => theme.palette.divider};
|
227
239
|
}
|
228
240
|
}
|
229
241
|
${props => props.theme.breakpoints.up('md')} {
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import Typography from '@mui/material/Typography';
|
3
|
-
import { teal } from '@mui/material/colors';
|
4
3
|
import clsx from 'clsx';
|
5
4
|
import { styled } from '../../Theme';
|
6
5
|
import { NavLink } from './external-link';
|
@@ -91,7 +90,7 @@ const Root = styled('div')`
|
|
91
90
|
&.layout-sidebar-link--active {
|
92
91
|
color: ${props => props.theme.palette.primary.main};
|
93
92
|
background: ${gradient};
|
94
|
-
border-left-color: ${
|
93
|
+
border-left-color: ${props => props.theme.palette.primary.main};
|
95
94
|
}
|
96
95
|
}
|
97
96
|
.layout-sidebar-icon {
|
package/lib/LoadingMask/index.js
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import { Box } from '@mui/material';
|
3
|
-
import { temp as colors } from '../Colors';
|
4
3
|
export default function LoadingMask({
|
5
4
|
size = 64,
|
6
5
|
padding,
|
@@ -38,7 +37,7 @@ export default function LoadingMask({
|
|
38
37
|
height: finialSize,
|
39
38
|
overflow: 'hidden',
|
40
39
|
borderRadius: `${finialRadius}px`,
|
41
|
-
backgroundColor:
|
40
|
+
backgroundColor: 'grey.200',
|
42
41
|
'&::before,&::after': {
|
43
42
|
content: '""',
|
44
43
|
position: 'absolute',
|
@@ -57,7 +56,9 @@ export default function LoadingMask({
|
|
57
56
|
borderRadius: `${finialRadius - finialBorderWidth}px`
|
58
57
|
},
|
59
58
|
'&::before': {
|
60
|
-
background:
|
59
|
+
background: ({
|
60
|
+
palette
|
61
|
+
}) => `conic-gradient(from 45deg, transparent 0%, transparent 50%, ${palette.secondary.main} 90%, ${palette.secondary.main} 100%)`,
|
61
62
|
transform: 'scale(100)',
|
62
63
|
animation: `rotate ${finialDuration}s linear infinite`,
|
63
64
|
'@keyframes rotate': {
|
package/lib/Locale/selector.js
CHANGED
@@ -98,9 +98,9 @@ export default function LocaleSelector(props) {
|
|
98
98
|
children: /*#__PURE__*/_jsx(Box, {
|
99
99
|
className: "locales",
|
100
100
|
sx: {
|
101
|
-
backgroundColor: 'background.
|
101
|
+
backgroundColor: 'background.paper',
|
102
102
|
boxShadow: 2,
|
103
|
-
borderRadius:
|
103
|
+
borderRadius: 1
|
104
104
|
},
|
105
105
|
children: /*#__PURE__*/_jsx(ClickAwayListener, {
|
106
106
|
onClickAway: onClose,
|
@@ -130,7 +130,7 @@ export default function LocaleSelector(props) {
|
|
130
130
|
icon: CheckIcon,
|
131
131
|
className: code === locale ? 'check-icon check-icon-visible' : 'check-icon',
|
132
132
|
sx: {
|
133
|
-
marginRight:
|
133
|
+
marginRight: 1,
|
134
134
|
visibility: code === locale ? 'visible' : 'hidden'
|
135
135
|
}
|
136
136
|
}), name]
|
package/lib/NavMenu/nav-menu.js
CHANGED
@@ -8,6 +8,7 @@ import { useCreation, useMemoizedFn, useReactive, useSize, useThrottleFn } from
|
|
8
8
|
import { NavMenuProvider, useNavMenuContext } from './nav-menu-context';
|
9
9
|
import { NavMenuRoot, NavMenuItem, NavMenuSub, NavMenuSubList, NavMenuStyled } from './style';
|
10
10
|
import { SubContainer } from './sub-container';
|
11
|
+
import { useTheme } from '../Theme';
|
11
12
|
|
12
13
|
// 过滤 children 中的 Item/Sub, 忽略其它类型的 element
|
13
14
|
function filterItems(children) {
|
@@ -34,12 +35,16 @@ function NavMenu({
|
|
34
35
|
mode = 'horizontal',
|
35
36
|
children: _childs = null,
|
36
37
|
activeId = null,
|
37
|
-
textColor
|
38
|
-
activeTextColor
|
39
|
-
bgColor
|
38
|
+
textColor,
|
39
|
+
activeTextColor,
|
40
|
+
bgColor,
|
40
41
|
onSelected,
|
41
42
|
...rest
|
42
43
|
}) {
|
44
|
+
const theme = useTheme();
|
45
|
+
const $textColor = useCreation(() => theme.palette.grey[400], [theme]);
|
46
|
+
const $activeTextColor = useCreation(() => theme.palette.text.primary, [theme]);
|
47
|
+
const $bgColor = useCreation(() => theme.palette.background.default, [theme]);
|
43
48
|
// eslint-disable-next-line no-param-reassign
|
44
49
|
const children = filterItems(_childs);
|
45
50
|
if (!items?.length && !children?.length) {
|
@@ -64,14 +69,14 @@ function NavMenu({
|
|
64
69
|
return {
|
65
70
|
...currentState,
|
66
71
|
mode,
|
67
|
-
textColor,
|
68
|
-
activeTextColor,
|
69
|
-
bgColor,
|
72
|
+
textColor: $textColor,
|
73
|
+
activeTextColor: $activeTextColor,
|
74
|
+
bgColor: $bgColor,
|
70
75
|
activate,
|
71
76
|
open,
|
72
77
|
close
|
73
78
|
};
|
74
|
-
}, [currentState.activeId, currentState.hiddenItemCount, currentState.openedIds, mode, textColor, activeTextColor, bgColor, activate, open, close]);
|
79
|
+
}, [currentState.activeId, currentState.hiddenItemCount, currentState.openedIds, mode, $textColor, $activeTextColor, $bgColor, activate, open, close]);
|
75
80
|
const navMenuRef = useRef(null);
|
76
81
|
const itemRefs = useRef([]);
|
77
82
|
const moreIconRef = useRef(null);
|
@@ -193,8 +198,8 @@ function NavMenu({
|
|
193
198
|
children: /*#__PURE__*/_jsx(NavMenuStyled, {
|
194
199
|
...rest,
|
195
200
|
className: classes,
|
196
|
-
$textColor: textColor,
|
197
|
-
$bgColor: bgColor,
|
201
|
+
$textColor: $textColor,
|
202
|
+
$bgColor: $bgColor,
|
198
203
|
children: /*#__PURE__*/_jsxs(NavMenuRoot, {
|
199
204
|
className: clsx('navmenu-root', `navmenu-root--${mode}`),
|
200
205
|
ref: navMenuRef,
|
package/lib/NavMenu/products.js
CHANGED
package/lib/NavMenu/style.js
CHANGED
@@ -4,7 +4,8 @@ export const NavMenuStyled = styled('nav', {
|
|
4
4
|
shouldForwardProp: prop => prop !== '$bgColor' && prop !== '$textColor'
|
5
5
|
})(({
|
6
6
|
$bgColor,
|
7
|
-
$textColor
|
7
|
+
$textColor,
|
8
|
+
theme
|
8
9
|
}) => ({
|
9
10
|
position: 'relative',
|
10
11
|
padding: '0 16px',
|
@@ -13,7 +14,10 @@ export const NavMenuStyled = styled('nav', {
|
|
13
14
|
flexGrow: 100,
|
14
15
|
backgroundColor: $bgColor,
|
15
16
|
color: $textColor,
|
16
|
-
fontSize: '16px'
|
17
|
+
fontSize: '16px',
|
18
|
+
'&.navmenu--inline': {
|
19
|
+
backgroundColor: theme.palette.background.paper
|
20
|
+
}
|
17
21
|
}));
|
18
22
|
|
19
23
|
// .navmenu-root
|
@@ -242,7 +246,7 @@ export const NavMenuSubList = styled('ul')(({
|
|
242
246
|
margin: 0,
|
243
247
|
padding: '16px',
|
244
248
|
borderRadius: '4px',
|
245
|
-
|
249
|
+
backgroundColor: theme.palette.background.paper,
|
246
250
|
'& .navmenu-item + .navmenu-item': {
|
247
251
|
marginTop: '8px'
|
248
252
|
}
|
@@ -3,7 +3,6 @@ import { useMemo, forwardRef, useState } from 'react';
|
|
3
3
|
import { Box, MenuItem, Select, Typography, TextField } from '@mui/material';
|
4
4
|
import { FlagEmoji, defaultCountries, parseCountry } from 'react-international-phone';
|
5
5
|
import ArrowDownwardIcon from '@arcblock/icons/lib/ArrowDown';
|
6
|
-
import { temp as colors } from '../Colors';
|
7
6
|
import { mergeSx } from '../Util/style';
|
8
7
|
|
9
8
|
// 定义组件类型
|
@@ -101,11 +100,11 @@ const CountrySelectInner = /*#__PURE__*/forwardRef(({
|
|
101
100
|
},
|
102
101
|
'&:hover': {
|
103
102
|
'fieldset.MuiOutlinedInput-notchedOutline': {
|
104
|
-
borderColor:
|
103
|
+
borderColor: 'divider'
|
105
104
|
}
|
106
105
|
},
|
107
106
|
'fieldset.MuiOutlinedInput-notchedOutline': {
|
108
|
-
borderColor:
|
107
|
+
borderColor: 'divider'
|
109
108
|
},
|
110
109
|
'.MuiMenuItem-root': {
|
111
110
|
justifyContent: 'flex-start'
|
@@ -90,7 +90,7 @@ export default function SessionBlocklet({
|
|
90
90
|
children: /*#__PURE__*/_jsxs(Paper, {
|
91
91
|
variant: "outlined",
|
92
92
|
sx: {
|
93
|
-
borderRadius:
|
93
|
+
borderRadius: 1.5,
|
94
94
|
width: 350,
|
95
95
|
maxWidth: '90vw',
|
96
96
|
p: 2,
|
@@ -119,7 +119,7 @@ export default function SessionBlocklet({
|
|
119
119
|
gap: 1,
|
120
120
|
width: '100%',
|
121
121
|
height: '100%',
|
122
|
-
borderRadius:
|
122
|
+
borderRadius: 1,
|
123
123
|
'&:hover': {
|
124
124
|
backgroundColor: 'action.hover'
|
125
125
|
}
|
@@ -128,7 +128,7 @@ export default function SessionBlocklet({
|
|
128
128
|
component: "img",
|
129
129
|
src: `${BLOCKLET_SERVICE_PATH_PREFIX}/blocklet/logo-bundle/${item.component.did}`,
|
130
130
|
sx: {
|
131
|
-
borderRadius:
|
131
|
+
borderRadius: 1,
|
132
132
|
width: 50,
|
133
133
|
height: 50,
|
134
134
|
objectFit: 'contain'
|