@arco-design/mobile-react 2.22.0 → 2.22.2

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.
Files changed (65) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.en-US.md +2 -2
  3. package/README.md +2 -2
  4. package/cjs/action-sheet/style/css/index.css +2 -2
  5. package/cjs/action-sheet/style/index.less +1 -1
  6. package/cjs/dialog/style/css/index.css +2 -2
  7. package/cjs/dialog/style/index.less +1 -1
  8. package/cjs/pull-refresh/android-pull-refresh.js +2 -0
  9. package/cjs/pull-refresh/ios-pull-refresh.js +3 -2
  10. package/cjs/pull-refresh/model.d.ts +6 -2
  11. package/cjs/steps/demo/style/css/mobile.css +8 -2
  12. package/cjs/steps/index.d.ts +1 -1
  13. package/cjs/steps/index.js +5 -1
  14. package/cjs/steps/step.js +5 -3
  15. package/cjs/steps/style/css/index.css +78 -23
  16. package/cjs/steps/style/index.less +92 -24
  17. package/cjs/steps/type.d.ts +12 -0
  18. package/cjs/tabs/index.js +3 -2
  19. package/cjs/tabs/style/css/index.css +8 -8
  20. package/cjs/tabs/style/index.less +4 -4
  21. package/dist/index.js +19 -9
  22. package/dist/index.min.js +3 -3
  23. package/dist/style.css +87 -35
  24. package/dist/style.min.css +1 -1
  25. package/esm/action-sheet/style/css/index.css +2 -2
  26. package/esm/action-sheet/style/index.less +1 -1
  27. package/esm/dialog/style/css/index.css +2 -2
  28. package/esm/dialog/style/index.less +1 -1
  29. package/esm/pull-refresh/android-pull-refresh.js +2 -0
  30. package/esm/pull-refresh/ios-pull-refresh.js +3 -2
  31. package/esm/pull-refresh/model.d.ts +6 -2
  32. package/esm/steps/demo/style/css/mobile.css +8 -2
  33. package/esm/steps/index.d.ts +1 -1
  34. package/esm/steps/index.js +5 -1
  35. package/esm/steps/step.js +5 -3
  36. package/esm/steps/style/css/index.css +78 -23
  37. package/esm/steps/style/index.less +92 -24
  38. package/esm/steps/type.d.ts +12 -0
  39. package/esm/tabs/index.js +4 -3
  40. package/esm/tabs/style/css/index.css +8 -8
  41. package/esm/tabs/style/index.less +4 -4
  42. package/package.json +3 -3
  43. package/tokens/app/arcodesign/default/css-variables.less +7 -3
  44. package/tokens/app/arcodesign/default/index.d.ts +4 -0
  45. package/tokens/app/arcodesign/default/index.js +7 -3
  46. package/tokens/app/arcodesign/default/index.json +58 -10
  47. package/tokens/app/arcodesign/default/index.less +7 -3
  48. package/tokens/mixin/index.less +1 -1
  49. package/umd/action-sheet/style/css/index.css +2 -2
  50. package/umd/action-sheet/style/index.less +1 -1
  51. package/umd/dialog/style/css/index.css +2 -2
  52. package/umd/dialog/style/index.less +1 -1
  53. package/umd/pull-refresh/android-pull-refresh.js +2 -0
  54. package/umd/pull-refresh/ios-pull-refresh.js +3 -2
  55. package/umd/pull-refresh/model.d.ts +6 -2
  56. package/umd/steps/demo/style/css/mobile.css +8 -2
  57. package/umd/steps/index.d.ts +1 -1
  58. package/umd/steps/index.js +5 -1
  59. package/umd/steps/step.js +5 -3
  60. package/umd/steps/style/css/index.css +78 -23
  61. package/umd/steps/style/index.less +92 -24
  62. package/umd/steps/type.d.ts +12 -0
  63. package/umd/tabs/index.js +3 -2
  64. package/umd/tabs/style/css/index.css +8 -8
  65. package/umd/tabs/style/index.less +4 -4
@@ -15,6 +15,7 @@ var Steps = /*#__PURE__*/forwardRef(function (props, ref) {
15
15
  children = props.children,
16
16
  _props$direction = props.direction,
17
17
  direction = _props$direction === void 0 ? 'horizontal' : _props$direction,
18
+ userSetAlign = props.align,
18
19
  _props$iconType = props.iconType,
19
20
  iconType = _props$iconType === void 0 ? 'number' : _props$iconType,
20
21
  current = props.current,
@@ -25,6 +26,8 @@ var Steps = /*#__PURE__*/forwardRef(function (props, ref) {
25
26
  items = props.items,
26
27
  onClick = props.onClick,
27
28
  onChange = props.onChange;
29
+ var defaultAlign = direction === 'vertical' ? 'start' : 'center';
30
+ var align = userSetAlign !== void 0 ? userSetAlign : defaultAlign;
28
31
 
29
32
  var _useState = useState(Number(defaultIndex)),
30
33
  innerIndex = _useState[0],
@@ -60,11 +63,12 @@ var Steps = /*#__PURE__*/forwardRef(function (props, ref) {
60
63
  direction: direction,
61
64
  index: index,
62
65
  status: activeIndex === index ? status : void 0,
66
+ align: align,
63
67
  changeIndex: changeIndex
64
68
  },
65
69
  key: index
66
70
  }, child);
67
- }, [iconType, activeIndex, direction]);
71
+ }, [iconType, activeIndex, direction, align]);
68
72
  return /*#__PURE__*/React.createElement(ContextLayout, null, function (_ref) {
69
73
  var prefixCls = _ref.prefixCls;
70
74
  return /*#__PURE__*/React.createElement("div", {
package/esm/steps/step.js CHANGED
@@ -15,9 +15,11 @@ var Step = /*#__PURE__*/forwardRef(function (props, ref) {
15
15
  _useContext$index = _useContext.index,
16
16
  index = _useContext$index === void 0 ? 0 : _useContext$index,
17
17
  contextStatus = _useContext.status,
18
+ contextAlign = _useContext.align,
18
19
  changeIndex = _useContext.changeIndex;
19
20
 
20
21
  var status = props.status || contextStatus;
22
+ var align = props.align || contextAlign;
21
23
  var domRef = useRef(null);
22
24
  useImperativeHandle(ref, function () {
23
25
  return {
@@ -56,12 +58,12 @@ var Step = /*#__PURE__*/forwardRef(function (props, ref) {
56
58
  var prefixCls = _ref.prefixCls;
57
59
  return /*#__PURE__*/React.createElement("div", {
58
60
  ref: domRef,
59
- className: cls(prefixCls + "-steps-item", currentStatus, direction, iconType),
61
+ className: cls(prefixCls + "-steps-item", prefixCls + "-steps-item-align-" + align, currentStatus, direction, iconType),
60
62
  onClick: function onClick() {
61
63
  return changeIndex(index);
62
64
  }
63
65
  }, /*#__PURE__*/React.createElement("div", {
64
- className: cls(prefixCls + "-steps-item-tail", currentStatus + "-tail-color-with-config")
66
+ className: cls(prefixCls + "-steps-item-tail", prefixCls + "-steps-item-tail-status-" + currentStatus, prefixCls + "-steps-item-tail-align-" + align, currentStatus + "-tail-color-with-config")
65
67
  }), icon ? /*#__PURE__*/React.createElement("div", {
66
68
  className: cls(prefixCls + "-steps-item-custom-icon", currentStatus + "-custom-icon-bg-color-with-config")
67
69
  }, icon) : /*#__PURE__*/React.createElement("div", {
@@ -69,7 +71,7 @@ var Step = /*#__PURE__*/forwardRef(function (props, ref) {
69
71
  }, iconType === 'number' ? renderNumIcon(prefixCls) : /*#__PURE__*/React.createElement("span", {
70
72
  className: cls(prefixCls + "-steps-item-icon-dot")
71
73
  })), title || description ? /*#__PURE__*/React.createElement("div", {
72
- className: cls(prefixCls + "-steps-item-content")
74
+ className: cls(prefixCls + "-steps-item-content", prefixCls + "-steps-item-content-align-" + align)
73
75
  }, title ? /*#__PURE__*/React.createElement("div", {
74
76
  className: cls(prefixCls + "-steps-item-title", currentStatus + "-title-color-with-config")
75
77
  }, title) : null, description ? /*#__PURE__*/React.createElement("div", {
@@ -18,17 +18,23 @@
18
18
  -webkit-box-direction: normal;
19
19
  -webkit-flex-direction: column;
20
20
  flex-direction: column;
21
+ }
22
+ .arco-steps-item-align-center {
21
23
  -webkit-box-align: center;
22
24
  -webkit-align-items: center;
23
25
  align-items: center;
24
26
  }
25
- .arco-steps-item.vertical {
27
+ .arco-steps-item-align-start {
26
28
  -webkit-box-align: start;
27
29
  -webkit-align-items: flex-start;
28
30
  align-items: flex-start;
29
31
  }
30
- .arco-steps-item:last-child .arco-steps-item-tail:after {
31
- display: none;
32
+ .arco-steps-item-align-center.vertical {
33
+ padding-bottom: 0.5rem ;
34
+ }
35
+ .arco-steps-item:first-child .arco-steps-item-tail::before,
36
+ .arco-steps-item:last-child .arco-steps-item-tail::after {
37
+ visibility: hidden;
32
38
  }
33
39
  .arco-steps-item-tail {
34
40
  position: absolute;
@@ -44,33 +50,81 @@
44
50
  }
45
51
  .horizontal .arco-steps-item-tail {
46
52
  width: 100%;
47
- left: 50%;
48
53
  height: 18PX ;
49
- padding: 0 0.36rem ;
50
54
  }
51
- .horizontal .arco-steps-item-tail:after {
55
+ .horizontal .arco-steps-item-tail::before,
56
+ .horizontal .arco-steps-item-tail::after {
57
+ height: 1PX ;
58
+ }
59
+ .horizontal .arco-steps-item-tail-align-start {
60
+ left: 9PX ;
61
+ padding: 0 18PX ;
62
+ }
63
+ .horizontal .arco-steps-item-tail-align-start::after {
52
64
  content: "";
53
- display: inline-block;
54
65
  width: 100%;
55
- height: 1PX ;
56
- background: #e5e6eb ;
57
- border-radius: 0.04rem;
66
+ border-radius: 2PX ;
67
+ }
68
+ .horizontal .arco-steps-item-tail-align-center::before,
69
+ .horizontal .arco-steps-item-tail-align-center::after {
70
+ content: "";
71
+ width: 50%;
72
+ }
73
+ .horizontal .arco-steps-item-tail-align-center::before {
74
+ margin-right: 18PX ;
75
+ border-top-right-radius: 2PX ;
76
+ border-bottom-right-radius: 2PX ;
77
+ }
78
+ .horizontal .arco-steps-item-tail-align-center::after {
79
+ margin-left: 18PX ;
80
+ border-top-left-radius: 2PX ;
81
+ border-bottom-left-radius: 2PX ;
58
82
  }
59
83
  .vertical .arco-steps-item-tail {
60
84
  height: 100%;
61
85
  width: 18PX ;
62
- top: 0.18rem ;
63
- padding: 0.28rem 0 ;
86
+ -webkit-box-orient: vertical;
87
+ -webkit-box-direction: normal;
88
+ -webkit-flex-direction: column;
89
+ flex-direction: column;
64
90
  }
65
- .vertical .arco-steps-item-tail:after {
91
+ .vertical .arco-steps-item-tail::before,
92
+ .vertical .arco-steps-item-tail::after {
93
+ width: 1PX ;
94
+ }
95
+ .vertical .arco-steps-item-tail-align-start {
96
+ top: 9PX ;
97
+ padding: 14PX 0 ;
98
+ }
99
+ .vertical .arco-steps-item-tail-align-start::after {
66
100
  content: "";
67
- display: inline-block;
68
101
  height: 100%;
69
- width: 1PX ;
102
+ border-radius: 2PX ;
103
+ }
104
+ .vertical .arco-steps-item-tail-align-center::before,
105
+ .vertical .arco-steps-item-tail-align-center::after {
106
+ content: "";
107
+ height: 50%;
108
+ }
109
+ .vertical .arco-steps-item-tail-align-center::before {
110
+ margin-bottom: 14PX ;
111
+ border-bottom-left-radius: 2PX ;
112
+ border-bottom-right-radius: 2PX ;
113
+ }
114
+ .vertical .arco-steps-item-tail-align-center::after {
115
+ margin-top: 14PX ;
116
+ border-top-left-radius: 2PX ;
117
+ border-top-right-radius: 2PX ;
118
+ }
119
+ .arco-steps-item-tail::after,
120
+ .arco-steps-item-tail::before {
121
+ display: inline-block;
70
122
  background: #e5e6eb ;
71
- border-radius: 0.04rem;
72
123
  }
73
- .finish .arco-steps-item-tail:after {
124
+ .arco-steps-item-tail-status-finish::before,
125
+ .arco-steps-item-tail-status-finish::after,
126
+ .arco-steps-item-tail-align-center.arco-steps-item-tail-status-process::before,
127
+ .arco-steps-item-tail-align-center.arco-steps-item-tail-status-error::before {
74
128
  background: #165dff ;
75
129
  }
76
130
  .arco-steps-item-custom-icon,
@@ -122,8 +176,8 @@
122
176
  .arco-steps-item-icon-num.android,
123
177
  .arco-steps-item-icon-num.system-android {
124
178
  font-weight: 400;
125
- -webkit-text-stroke: 0.3PX #86909c;
126
- text-stroke: 0.3PX #86909c;
179
+ -webkit-text-stroke: 0.3PX currentColor;
180
+ text-stroke: 0.3PX currentColor;
127
181
  }
128
182
  .process .arco-steps-item-icon-num {
129
183
  color: #FFFFFF ;
@@ -147,18 +201,19 @@
147
201
  border: none;
148
202
  background: #165dff ;
149
203
  }
150
- .arco-steps-item-content {
151
- text-align: center;
152
- }
153
204
  .horizontal .arco-steps-item-content {
154
205
  margin-top: 0.1rem ;
155
206
  }
207
+ .horizontal .arco-steps-item-content-align-center {
208
+ text-align: center;
209
+ }
156
210
  .vertical .arco-steps-item-content {
157
211
  margin-left: 0.26rem ;
158
- text-align: left;
159
212
  -webkit-box-flex: 1;
160
213
  -webkit-flex: 1;
161
214
  flex: 1;
215
+ }
216
+ .vertical .arco-steps-item-content-align-start {
162
217
  padding-bottom: 0.5rem ;
163
218
  }
164
219
  .arco-steps-item-title {
@@ -11,15 +11,23 @@
11
11
 
12
12
  &.horizontal {
13
13
  flex-direction: column;
14
+ }
15
+
16
+ &-align-center {
14
17
  align-items: center;
15
18
  }
16
19
 
17
- &.vertical {
20
+ &-align-start {
18
21
  align-items: flex-start;
19
22
  }
20
23
 
21
- &:last-child &-tail:after {
22
- display: none;
24
+ &-align-center.vertical {
25
+ .use-var(padding-bottom, steps-vertical-content-padding-bottom);
26
+ }
27
+
28
+ &:first-child &-tail::before,
29
+ &:last-child &-tail::after {
30
+ visibility: hidden;
23
31
  }
24
32
 
25
33
  &-tail {
@@ -30,37 +38,93 @@
30
38
 
31
39
  .horizontal & {
32
40
  width: 100%;
33
- left: 50%;
34
41
  .use-var(height, steps-icon-height);
35
- .use-var(padding, steps-tail-horizontal-padding);
36
42
 
37
- &:after {
38
- content: "";
39
- display: inline-block;
40
- width: 100%;
43
+ &::before,
44
+ &::after {
41
45
  .use-var(height, steps-tail-standard-size);
42
- .use-var(background, steps-tail-standard-background);
43
- .rem(border-radius, 2);
46
+ }
47
+
48
+ &-align-start {
49
+ .use-var(left, steps-tail-horizontal-left);
50
+ .use-var(padding, steps-tail-horizontal-padding);
51
+
52
+ &::after {
53
+ content: "";
54
+ width: 100%;
55
+ .use-var(border-radius, steps-tail-border-radius);
56
+ }
57
+ }
58
+
59
+ &-align-center {
60
+ &::before,
61
+ &::after {
62
+ content: "";
63
+ width: 50%;
64
+ }
65
+ &::before {
66
+ .use-var(margin-right, steps-tail-horizontal-gutter);
67
+ .use-var(border-top-right-radius, steps-tail-border-radius);
68
+ .use-var(border-bottom-right-radius, steps-tail-border-radius);
69
+ }
70
+ &::after {
71
+ .use-var(margin-left, steps-tail-horizontal-gutter);
72
+ .use-var(border-top-left-radius, steps-tail-border-radius);
73
+ .use-var(border-bottom-left-radius, steps-tail-border-radius);
74
+ }
44
75
  }
45
76
  }
46
77
 
47
78
  .vertical & {
48
79
  height: 100%;
49
80
  .use-var(width, steps-icon-width);
50
- .use-var(top, steps-tail-vertical-top);
51
- .use-var(padding, steps-tail-vertical-padding);
81
+ flex-direction: column;
52
82
 
53
- &:after {
54
- content: "";
55
- display: inline-block;
56
- height: 100%;
83
+ &::before,
84
+ &::after {
57
85
  .use-var(width, steps-tail-standard-size);
58
- .use-var(background, steps-tail-standard-background);
59
- .rem(border-radius, 2);
60
86
  }
87
+
88
+ &-align-start {
89
+ .use-var(top, steps-tail-vertical-top);
90
+ .use-var(padding, steps-tail-vertical-padding);
91
+
92
+ &::after {
93
+ content: "";
94
+ height: 100%;
95
+ .use-var(border-radius, steps-tail-border-radius);
96
+ }
97
+ }
98
+
99
+ &-align-center {
100
+ &::before,
101
+ &::after {
102
+ content: "";
103
+ height: 50%;
104
+ }
105
+ &::before {
106
+ .use-var(margin-bottom, steps-tail-vertical-gutter);
107
+ .use-var(border-bottom-left-radius, steps-tail-border-radius);
108
+ .use-var(border-bottom-right-radius, steps-tail-border-radius);
109
+ }
110
+ &::after {
111
+ .use-var(margin-top, steps-tail-vertical-gutter);
112
+ .use-var(border-top-left-radius, steps-tail-border-radius);
113
+ .use-var(border-top-right-radius, steps-tail-border-radius);
114
+ }
115
+ }
116
+ }
117
+
118
+ &::after,
119
+ &::before {
120
+ display: inline-block;
121
+ .use-var(background, steps-tail-standard-background);
61
122
  }
62
123
 
63
- .finish &:after {
124
+ &-status-finish::before,
125
+ &-status-finish::after,
126
+ &-align-center&-status-process::before,
127
+ &-align-center&-status-error::before {
64
128
  .use-var(background, steps-tail-finish-background);
65
129
  }
66
130
  }
@@ -110,7 +174,7 @@
110
174
  .use-var(font-size, steps-icon-num-font-size);
111
175
  .use-var(line-height, steps-icon-num-line-height);
112
176
  .use-var(color, steps-icon-num-color);
113
- .text-medium-var(steps-icon-num-color);
177
+ .text-medium();
114
178
 
115
179
  .process & {
116
180
  .use-var(color, steps-process-icon-num-color);
@@ -142,17 +206,21 @@
142
206
  }
143
207
 
144
208
  &-content {
145
- text-align: center;
146
209
 
147
210
  .horizontal & {
148
211
  .use-var(margin-top, steps-horizontal-content-margin-top);
212
+ &-align-center {
213
+ text-align: center;
214
+ }
149
215
  }
150
216
 
151
217
  .vertical & {
152
218
  .use-var(margin-left, steps-vertical-content-margin-left);
153
- text-align: left;
154
219
  flex: 1;
155
- .use-var(padding-bottom, steps-vertical-content-padding-bottom);
220
+
221
+ &-align-start {
222
+ .use-var(padding-bottom, steps-vertical-content-padding-bottom);
223
+ }
156
224
  }
157
225
  }
158
226
 
@@ -20,6 +20,11 @@ export interface StepProps {
20
20
  * @en Specify the step status. When this item is not input, the status will be automatically specified according to the current property of steps
21
21
  */
22
22
  status?: 'finish' | 'error' | 'wait' | 'process';
23
+ /**
24
+ * 指定对齐方式,不配置该项时,会跟随 Steps 的 align 属性值
25
+ * @en Specify the step alignment. When this item is not input, it will be automatically specified according to the align property of steps
26
+ */
27
+ align?: 'center' | 'start';
23
28
  }
24
29
  export interface StepsProps {
25
30
  /**
@@ -38,6 +43,13 @@ export interface StepsProps {
38
43
  * @default horizontal
39
44
  */
40
45
  direction?: 'vertical' | 'horizontal';
46
+ /**
47
+ * 步骤条对齐方式
48
+ * @en Step alignment
49
+ * @default direction="horizontal" 时默认为 "center",direction="vertical" 时默认为 "start"
50
+ * @default_en "center" when direction="horizontal" and "start" when direction="vertical"
51
+ */
52
+ align?: 'center' | 'start';
41
53
  /**
42
54
  * 指定当前步骤,从 0 开始记数。在子 Step 元素中,可以通过 status 属性覆盖状态,传入则受控
43
55
  * @en Specify the current step, counting from 0. In the step children elements, the status can be overwritten through the status, and it is controlled if it is input
package/esm/tabs/index.js CHANGED
@@ -4,7 +4,7 @@ import { cls, nextTick } from '@arco-design/mobile-utils';
4
4
  import { ContextLayout } from '../context-provider';
5
5
  import TabCell from './tab-cell';
6
6
  import TabPane from './tab-pane';
7
- import { useRefState, useListenResize, useUpdateEffect, useSwiperInnerScroll } from '../_helpers';
7
+ import { useRefState, useListenResize, useUpdateEffect, useSwiperInnerScroll, useSystem } from '../_helpers';
8
8
  export * from './type';
9
9
  /**
10
10
  * 用于让用户在不同的视图中进行切换。为优化移动端渲染性能,如有替换DOM、发请求更新数据等操作,请在`onAfterChange`而非`onChange`回调中进行。
@@ -167,6 +167,7 @@ var Tabs = /*#__PURE__*/forwardRef(function (props, ref) {
167
167
  var touchStoppedRef = useRef(false);
168
168
  var changeFromRef = useRef('');
169
169
  var touchMoveBarScrollRef = useRef(false);
170
+ var system = useSystem();
170
171
  var allPanes = getAllPanes();
171
172
  var tabDirection = ['top', 'bottom'].indexOf(tabBarPosition) !== -1 ? 'vertical' : 'horizontal';
172
173
  var canSwipe = mode === 'swipe' && !disabled && swipeable && tabDirection === 'vertical' && tabs.length > 1;
@@ -281,10 +282,10 @@ var Tabs = /*#__PURE__*/forwardRef(function (props, ref) {
281
282
 
282
283
  var evt = e.changedTouches[0];
283
284
  var touchMoveX = evt.clientX || 0;
284
- var touchMoveY = evt.clientY || 0; // bugfix: 兼容safari在右滑返回上一页时clientX为负值的情况
285
+ var touchMoveY = evt.clientY || 0; // bugfix: 兼容safari在右滑返回上一页时clientX为负值的情况,安卓有折叠屏,触点会有超出屏幕(clientX < 0)的情况,因此这里限定ios系统
285
286
  // @en bugfix: bugfix: Compatible with the case in safari where clientX is negative when swiping right back to the previous page
286
287
 
287
- var posDisX = touchMoveX < 0 ? 0 : touchMoveX - touchStartXRef.current;
288
+ var posDisX = system === 'ios' && touchMoveX < 0 ? 0 : touchMoveX - touchStartXRef.current;
288
289
  var posDisY = touchMoveY - touchStartYRef.current;
289
290
  var absDisX = Math.abs(posDisX);
290
291
  var absDisY = Math.abs(posDisY);
@@ -386,8 +386,8 @@
386
386
  .arco-tab-cell.vertical:not(.custom).line.active.system-android,
387
387
  .arco-tab-cell.vertical:not(.custom).line-divide.active.system-android {
388
388
  font-weight: 400;
389
- -webkit-text-stroke: 0.3PX #165dff;
390
- text-stroke: 0.3PX #165dff;
389
+ -webkit-text-stroke: 0.3PX currentColor;
390
+ text-stroke: 0.3PX currentColor;
391
391
  }
392
392
  .arco-tab-cell.vertical:not(.custom).card {
393
393
  color: #165dff ;
@@ -401,8 +401,8 @@
401
401
  .arco-tab-cell.vertical:not(.custom).card.active.android,
402
402
  .arco-tab-cell.vertical:not(.custom).card.active.system-android {
403
403
  font-weight: 400;
404
- -webkit-text-stroke: 0.3PX #ffffff;
405
- text-stroke: 0.3PX #ffffff;
404
+ -webkit-text-stroke: 0.3PX currentColor;
405
+ text-stroke: 0.3PX currentColor;
406
406
  }
407
407
  .arco-tab-cell.vertical:not(.custom).card:not(:last-child) {
408
408
  border-right: 1PX solid #165dff ;
@@ -444,8 +444,8 @@
444
444
  .arco-tab-cell.vertical:not(.custom).tag.active.system-android,
445
445
  .arco-tab-cell.vertical:not(.custom).tag-divide.active.system-android {
446
446
  font-weight: 400;
447
- -webkit-text-stroke: 0.3PX #ffffff;
448
- text-stroke: 0.3PX #ffffff;
447
+ -webkit-text-stroke: 0.3PX currentColor;
448
+ text-stroke: 0.3PX currentColor;
449
449
  }
450
450
  .arco-tab-cell.horizontal {
451
451
  height: 1.08rem ;
@@ -458,8 +458,8 @@
458
458
  .arco-tab-cell.horizontal.active.android,
459
459
  .arco-tab-cell.horizontal.active.system-android {
460
460
  font-weight: 400;
461
- -webkit-text-stroke: 0.3PX #165dff;
462
- text-stroke: 0.3PX #165dff;
461
+ -webkit-text-stroke: 0.3PX currentColor;
462
+ text-stroke: 0.3PX currentColor;
463
463
  }
464
464
  .arco-tab-pane-container.mode-swipe {
465
465
  display: -webkit-box;
@@ -322,7 +322,7 @@
322
322
  &.line-divide {
323
323
 
324
324
  &.active {
325
- .text-medium-var(tabs-tab-bar-line-active-color);
325
+ .text-medium();
326
326
  .use-var(color, tabs-tab-bar-line-active-color);
327
327
  }
328
328
  }
@@ -333,7 +333,7 @@
333
333
  &.active {
334
334
  .use-var(background, tabs-tab-bar-card-color);
335
335
  .use-var(color, tabs-tab-bar-card-text-color);
336
- .text-medium-var(tabs-tab-bar-card-text-color);
336
+ .text-medium();
337
337
  }
338
338
 
339
339
  &:not(:last-child) {
@@ -374,7 +374,7 @@
374
374
  &.active {
375
375
  .use-var(background, tabs-tab-bar-tag-active-background);
376
376
  .use-var(color, tabs-tab-bar-tag-active-text-color);
377
- .text-medium-var(tabs-tab-bar-tag-active-text-color);
377
+ .text-medium();
378
378
  }
379
379
  }
380
380
  }
@@ -384,7 +384,7 @@
384
384
  .use-var(height, tabs-tab-bar-horizontal-height);
385
385
 
386
386
  &.active {
387
- .text-medium-var(tabs-tab-bar-line-active-color);
387
+ .text-medium();
388
388
  .use-var(color, tabs-tab-bar-line-active-color);
389
389
  }
390
390
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arco-design/mobile-react",
3
- "version": "2.22.0",
3
+ "version": "2.22.2",
4
4
  "description": "",
5
5
  "main": "cjs/index.js",
6
6
  "module": "esm/index.js",
@@ -15,7 +15,7 @@
15
15
  "author": "taoyiyue@bytedance.com",
16
16
  "license": "ISC",
17
17
  "dependencies": {
18
- "@arco-design/mobile-utils": "^2.12.4",
18
+ "@arco-design/mobile-utils": "^2.12.6",
19
19
  "@arco-design/transformable": "^1.0.0",
20
20
  "es6-promise": "^4.2.8",
21
21
  "lodash.throttle": "^4.1.1",
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "00c2641c2230e9115db0af84f0b16545b6c8b8e3"
39
+ "gitHead": "52a29775d16e5e7d2b7645086644cf03aac6d71f"
40
40
  }
@@ -517,9 +517,13 @@
517
517
  --notify-font-size: ~`pxtorem(14)`;
518
518
  --notify-min-height: ~`pxtorem(36)`;
519
519
  --steps-padding: ~`pxtorem(16)` 0;
520
- --steps-tail-horizontal-padding: 0 ~`pxtorem(18)`;
521
- --steps-tail-vertical-padding: ~`pxtorem(14)` 0;
522
- --steps-tail-vertical-top: ~`pxtorem(9)`;
520
+ --steps-tail-border-radius: 2PX;
521
+ --steps-tail-horizontal-gutter: 18PX;
522
+ --steps-tail-vertical-gutter: 14PX;
523
+ --steps-tail-horizontal-padding: 0 var(--steps-tail-horizontal-gutter);
524
+ --steps-tail-vertical-padding: var(--steps-tail-vertical-gutter) 0;
525
+ --steps-tail-horizontal-left: 9PX;
526
+ --steps-tail-vertical-top: 9PX;
523
527
  --steps-tail-standard-size: 1PX;
524
528
  --steps-tail-standard-background: var(--line-color);
525
529
  --steps-tail-finish-background: var(--primary-color);
@@ -516,8 +516,12 @@ export interface ArcodesignToken extends Record<string, string> {
516
516
  'notify-font-size': string;
517
517
  'notify-min-height': string;
518
518
  'steps-padding': string;
519
+ 'steps-tail-border-radius': string;
520
+ 'steps-tail-horizontal-gutter': string;
521
+ 'steps-tail-vertical-gutter': string;
519
522
  'steps-tail-horizontal-padding': string;
520
523
  'steps-tail-vertical-padding': string;
524
+ 'steps-tail-horizontal-left': string;
521
525
  'steps-tail-vertical-top': string;
522
526
  'steps-tail-standard-size': string;
523
527
  'steps-tail-standard-background': string;
@@ -528,9 +528,13 @@ var tokens = {
528
528
  "notify-font-size": "0.28rem",
529
529
  "notify-min-height": "0.72rem",
530
530
  "steps-padding": "0.32rem 0",
531
- "steps-tail-horizontal-padding": "0 0.36rem",
532
- "steps-tail-vertical-padding": "0.28rem 0",
533
- "steps-tail-vertical-top": "0.18rem",
531
+ "steps-tail-border-radius": "2PX",
532
+ "steps-tail-horizontal-gutter": "18PX",
533
+ "steps-tail-vertical-gutter": "14PX",
534
+ "steps-tail-horizontal-padding": "0 18PX",
535
+ "steps-tail-vertical-padding": "14PX 0",
536
+ "steps-tail-horizontal-left": "9PX",
537
+ "steps-tail-vertical-top": "9PX",
534
538
  "steps-tail-standard-size": "1PX",
535
539
  "steps-tail-standard-background": "#e5e6eb",
536
540
  "steps-tail-finish-background": "#165dff",