@arcblock/ux 2.10.90 → 2.11.0
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/Tabs/index.js +3 -2
- package/package.json +5 -5
- package/src/Tabs/index.tsx +14 -10
package/lib/Tabs/index.js
CHANGED
@@ -98,7 +98,7 @@ function LineTabs({
|
|
98
98
|
cursor: 'not-allowed',
|
99
99
|
pointerEvents: 'auto'
|
100
100
|
},
|
101
|
-
'.MuiTabs-scroller': {
|
101
|
+
'.MuiTabs-scroller': rest.orientation !== 'vertical' ? {
|
102
102
|
'&::after': {
|
103
103
|
content: '""',
|
104
104
|
display: 'block',
|
@@ -107,7 +107,7 @@ function LineTabs({
|
|
107
107
|
backgroundColor: colors.strokeBorderStrong,
|
108
108
|
bottom: 0
|
109
109
|
}
|
110
|
-
},
|
110
|
+
} : {},
|
111
111
|
'.MuiTabs-flexContainer': {
|
112
112
|
display: 'inline-flex',
|
113
113
|
columnGap: 2.5,
|
@@ -130,6 +130,7 @@ function LineTabs({
|
|
130
130
|
}
|
131
131
|
},
|
132
132
|
'.MuiTabs-indicator': {
|
133
|
+
display: rest.orientation !== 'vertical' ? 'block' : 'none',
|
133
134
|
height: '1px',
|
134
135
|
backgroundColor: colors.foregroundsFgBase
|
135
136
|
},
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@arcblock/ux",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.11.0",
|
4
4
|
"description": "Common used react components for arcblock products",
|
5
5
|
"keywords": [
|
6
6
|
"react",
|
@@ -68,12 +68,12 @@
|
|
68
68
|
"react": ">=18.2.0",
|
69
69
|
"react-router-dom": ">=6.22.3"
|
70
70
|
},
|
71
|
-
"gitHead": "
|
71
|
+
"gitHead": "c07858fa8f3721cc7ba060e70e1577ae6a509bbb",
|
72
72
|
"dependencies": {
|
73
73
|
"@arcblock/did-motif": "^1.1.13",
|
74
|
-
"@arcblock/icons": "^2.
|
75
|
-
"@arcblock/nft-display": "^2.
|
76
|
-
"@arcblock/react-hooks": "^2.
|
74
|
+
"@arcblock/icons": "^2.11.0",
|
75
|
+
"@arcblock/nft-display": "^2.11.0",
|
76
|
+
"@arcblock/react-hooks": "^2.11.0",
|
77
77
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
78
78
|
"@fontsource/inter": "^5.0.16",
|
79
79
|
"@fontsource/ubuntu-mono": "^5.0.18",
|
package/src/Tabs/index.tsx
CHANGED
@@ -104,16 +104,19 @@ function LineTabs({ tabs, current, onChange, ...rest }: LineTabsProps) {
|
|
104
104
|
cursor: 'not-allowed',
|
105
105
|
pointerEvents: 'auto',
|
106
106
|
},
|
107
|
-
'.MuiTabs-scroller':
|
108
|
-
'
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
107
|
+
'.MuiTabs-scroller':
|
108
|
+
rest.orientation !== 'vertical'
|
109
|
+
? {
|
110
|
+
'&::after': {
|
111
|
+
content: '""',
|
112
|
+
display: 'block',
|
113
|
+
width: '100%',
|
114
|
+
height: '1px',
|
115
|
+
backgroundColor: colors.strokeBorderStrong,
|
116
|
+
bottom: 0,
|
117
|
+
},
|
118
|
+
}
|
119
|
+
: {},
|
117
120
|
'.MuiTabs-flexContainer': {
|
118
121
|
display: 'inline-flex',
|
119
122
|
columnGap: 2.5,
|
@@ -136,6 +139,7 @@ function LineTabs({ tabs, current, onChange, ...rest }: LineTabsProps) {
|
|
136
139
|
},
|
137
140
|
},
|
138
141
|
'.MuiTabs-indicator': {
|
142
|
+
display: rest.orientation !== 'vertical' ? 'block' : 'none',
|
139
143
|
height: '1px',
|
140
144
|
backgroundColor: colors.foregroundsFgBase,
|
141
145
|
},
|