@arco-design/mobile-react 2.22.0 → 2.22.3

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 (72) hide show
  1. package/CHANGELOG.md +26 -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/carousel/index.d.ts +6 -0
  7. package/cjs/carousel/index.js +6 -4
  8. package/cjs/dialog/style/css/index.css +2 -2
  9. package/cjs/dialog/style/index.less +1 -1
  10. package/cjs/pull-refresh/android-pull-refresh.js +2 -0
  11. package/cjs/pull-refresh/ios-pull-refresh.js +3 -2
  12. package/cjs/pull-refresh/model.d.ts +6 -2
  13. package/cjs/steps/demo/style/css/mobile.css +8 -2
  14. package/cjs/steps/index.d.ts +1 -1
  15. package/cjs/steps/index.js +5 -1
  16. package/cjs/steps/step.js +5 -3
  17. package/cjs/steps/style/css/index.css +78 -23
  18. package/cjs/steps/style/index.less +92 -24
  19. package/cjs/steps/type.d.ts +12 -0
  20. package/cjs/tabs/index.js +3 -2
  21. package/cjs/tabs/style/css/index.css +8 -8
  22. package/cjs/tabs/style/index.less +4 -4
  23. package/dist/index.js +107 -95
  24. package/dist/index.min.js +3 -3
  25. package/dist/style.css +87 -35
  26. package/dist/style.min.css +1 -1
  27. package/esm/action-sheet/style/css/index.css +2 -2
  28. package/esm/action-sheet/style/index.less +1 -1
  29. package/esm/carousel/index.d.ts +6 -0
  30. package/esm/carousel/index.js +6 -4
  31. package/esm/dialog/style/css/index.css +2 -2
  32. package/esm/dialog/style/index.less +1 -1
  33. package/esm/pull-refresh/android-pull-refresh.js +2 -0
  34. package/esm/pull-refresh/ios-pull-refresh.js +3 -2
  35. package/esm/pull-refresh/model.d.ts +6 -2
  36. package/esm/steps/demo/style/css/mobile.css +8 -2
  37. package/esm/steps/index.d.ts +1 -1
  38. package/esm/steps/index.js +5 -1
  39. package/esm/steps/step.js +5 -3
  40. package/esm/steps/style/css/index.css +78 -23
  41. package/esm/steps/style/index.less +92 -24
  42. package/esm/steps/type.d.ts +12 -0
  43. package/esm/tabs/index.js +4 -3
  44. package/esm/tabs/style/css/index.css +8 -8
  45. package/esm/tabs/style/index.less +4 -4
  46. package/package.json +3 -3
  47. package/tokens/app/arcodesign/default/css-variables.less +7 -3
  48. package/tokens/app/arcodesign/default/index.d.ts +4 -0
  49. package/tokens/app/arcodesign/default/index.js +7 -3
  50. package/tokens/app/arcodesign/default/index.json +58 -10
  51. package/tokens/app/arcodesign/default/index.less +7 -3
  52. package/tokens/mixin/index.less +1 -1
  53. package/tools/flexible.js +82 -63
  54. package/umd/action-sheet/style/css/index.css +2 -2
  55. package/umd/action-sheet/style/index.less +1 -1
  56. package/umd/carousel/index.d.ts +6 -0
  57. package/umd/carousel/index.js +6 -4
  58. package/umd/dialog/style/css/index.css +2 -2
  59. package/umd/dialog/style/index.less +1 -1
  60. package/umd/pull-refresh/android-pull-refresh.js +2 -0
  61. package/umd/pull-refresh/ios-pull-refresh.js +3 -2
  62. package/umd/pull-refresh/model.d.ts +6 -2
  63. package/umd/steps/demo/style/css/mobile.css +8 -2
  64. package/umd/steps/index.d.ts +1 -1
  65. package/umd/steps/index.js +5 -1
  66. package/umd/steps/step.js +5 -3
  67. package/umd/steps/style/css/index.css +78 -23
  68. package/umd/steps/style/index.less +92 -24
  69. package/umd/steps/type.d.ts +12 -0
  70. package/umd/tabs/index.js +3 -2
  71. package/umd/tabs/style/css/index.css +8 -8
  72. package/umd/tabs/style/index.less +4 -4
@@ -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/cjs/tabs/index.js CHANGED
@@ -193,6 +193,7 @@ var Tabs = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
193
193
  var touchStoppedRef = (0, _react.useRef)(false);
194
194
  var changeFromRef = (0, _react.useRef)('');
195
195
  var touchMoveBarScrollRef = (0, _react.useRef)(false);
196
+ var system = (0, _helpers.useSystem)();
196
197
  var allPanes = getAllPanes();
197
198
  var tabDirection = ['top', 'bottom'].indexOf(tabBarPosition) !== -1 ? 'vertical' : 'horizontal';
198
199
  var canSwipe = mode === 'swipe' && !disabled && swipeable && tabDirection === 'vertical' && tabs.length > 1;
@@ -307,10 +308,10 @@ var Tabs = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
307
308
 
308
309
  var evt = e.changedTouches[0];
309
310
  var touchMoveX = evt.clientX || 0;
310
- var touchMoveY = evt.clientY || 0; // bugfix: 兼容safari在右滑返回上一页时clientX为负值的情况
311
+ var touchMoveY = evt.clientY || 0; // bugfix: 兼容safari在右滑返回上一页时clientX为负值的情况,安卓有折叠屏,触点会有超出屏幕(clientX < 0)的情况,因此这里限定ios系统
311
312
  // @en bugfix: bugfix: Compatible with the case in safari where clientX is negative when swiping right back to the previous page
312
313
 
313
- var posDisX = touchMoveX < 0 ? 0 : touchMoveX - touchStartXRef.current;
314
+ var posDisX = system === 'ios' && touchMoveX < 0 ? 0 : touchMoveX - touchStartXRef.current;
314
315
  var posDisY = touchMoveY - touchStartYRef.current;
315
316
  var absDisX = Math.abs(posDisX);
316
317
  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/dist/index.js CHANGED
@@ -4222,61 +4222,63 @@
4222
4222
  loop = _d === void 0 ? true : _d,
4223
4223
  _e = props.autoPlay,
4224
4224
  autoPlay = _e === void 0 ? true : _e,
4225
- _f = props.swipeable,
4226
- swipeable = _f === void 0 ? true : _f,
4227
- _g = props.stayDuration,
4228
- stayDuration = _g === void 0 ? 4000 : _g,
4225
+ _f = props.autoPlayDirection,
4226
+ autoPlayDirection = _f === void 0 ? 'normal' : _f,
4227
+ _g = props.swipeable,
4228
+ swipeable = _g === void 0 ? true : _g,
4229
+ _h = props.stayDuration,
4230
+ stayDuration = _h === void 0 ? 4000 : _h,
4229
4231
  boxWidth = props.boxWidth,
4230
4232
  boxHeight = props.boxHeight,
4231
4233
  baseBoxWidth = props.baseBoxWidth,
4232
4234
  baseBoxHeight = props.baseBoxHeight,
4233
- _h = props.width,
4234
- width = _h === void 0 ? 0 : _h,
4235
+ _j = props.width,
4236
+ width = _j === void 0 ? 0 : _j,
4235
4237
  height = props.height,
4236
- _j = props.initialIndex,
4237
- initialIndex = _j === void 0 ? 0 : _j,
4238
+ _k = props.initialIndex,
4239
+ initialIndex = _k === void 0 ? 0 : _k,
4238
4240
  renderIndicator = props.renderIndicator,
4239
- _k = props.indicatorPos,
4240
- indicatorPos = _k === void 0 ? 'center' : _k,
4241
- _l = props.indicatorVerticalPos,
4242
- indicatorVerticalPos = _l === void 0 ? 'left' : _l,
4241
+ _l = props.indicatorPos,
4242
+ indicatorPos = _l === void 0 ? 'center' : _l,
4243
+ _m = props.indicatorVerticalPos,
4244
+ indicatorVerticalPos = _m === void 0 ? 'left' : _m,
4243
4245
  indicatorOutside = props.indicatorOutside,
4244
- _m = props.showIndicator,
4245
- showIndicator = _m === void 0 ? true : _m,
4246
- _o = props.hideSingleIndicator,
4247
- hideSingleIndicator = _o === void 0 ? true : _o,
4248
- _p = props.indicatorType,
4249
- indicatorType = _p === void 0 ? 'square' : _p,
4250
- _q = props.indicatorClass,
4251
- indicatorClass = _q === void 0 ? '' : _q,
4246
+ _o = props.showIndicator,
4247
+ showIndicator = _o === void 0 ? true : _o,
4248
+ _p = props.hideSingleIndicator,
4249
+ hideSingleIndicator = _p === void 0 ? true : _p,
4250
+ _q = props.indicatorType,
4251
+ indicatorType = _q === void 0 ? 'square' : _q,
4252
+ _r = props.indicatorClass,
4253
+ indicatorClass = _r === void 0 ? '' : _r,
4252
4254
  indicatorInverse = props.indicatorInverse,
4253
- _r = props.spaceBetween,
4254
- spaceBetween = _r === void 0 ? 0 : _r,
4255
- _s = props.offsetBetween,
4256
- offsetBetween = _s === void 0 ? 0 : _s,
4255
+ _s = props.spaceBetween,
4256
+ spaceBetween = _s === void 0 ? 0 : _s,
4257
+ _t = props.offsetBetween,
4258
+ offsetBetween = _t === void 0 ? 0 : _t,
4257
4259
  currentIndex = props.currentIndex,
4258
- _t = props.autoHeight,
4259
- autoHeight = _t === void 0 ? false : _t,
4260
- _u = props.percentToChange,
4261
- percentToChange = _u === void 0 ? 0.3 : _u,
4262
- _v = props.distanceToChange,
4263
- distanceToChange = _v === void 0 ? 10 : _v,
4264
- _w = props.speedToChange,
4265
- speedToChange = _w === void 0 ? 100 : _w,
4260
+ _u = props.autoHeight,
4261
+ autoHeight = _u === void 0 ? false : _u,
4262
+ _v = props.percentToChange,
4263
+ percentToChange = _v === void 0 ? 0.3 : _v,
4264
+ _w = props.distanceToChange,
4265
+ distanceToChange = _w === void 0 ? 10 : _w,
4266
+ _x = props.speedToChange,
4267
+ speedToChange = _x === void 0 ? 100 : _x,
4266
4268
  vertical = props.vertical,
4267
4269
  lazyloadCount = props.lazyloadCount,
4268
- _x = props.inactiveScale,
4269
- inactiveScale = _x === void 0 ? 1 : _x,
4270
- _y = props.stopPropagation,
4271
- stopPropagation = _y === void 0 ? true : _y,
4272
- _z = props.fakeItem,
4273
- fakeItem = _z === void 0 ? false : _z,
4274
- _0 = props.allowEndBlank,
4275
- allowEndBlank = _0 === void 0 ? false : _0,
4276
- _1 = props.bounceWhenNoLoop,
4277
- bounceWhenNoLoop = _1 === void 0 ? false : _1,
4278
- _2 = props.bounceDampRate,
4279
- bounceDampRate = _2 === void 0 ? 3 : _2,
4270
+ _y = props.inactiveScale,
4271
+ inactiveScale = _y === void 0 ? 1 : _y,
4272
+ _z = props.stopPropagation,
4273
+ stopPropagation = _z === void 0 ? true : _z,
4274
+ _0 = props.fakeItem,
4275
+ fakeItem = _0 === void 0 ? false : _0,
4276
+ _1 = props.allowEndBlank,
4277
+ allowEndBlank = _1 === void 0 ? false : _1,
4278
+ _2 = props.bounceWhenNoLoop,
4279
+ bounceWhenNoLoop = _2 === void 0 ? false : _2,
4280
+ _3 = props.bounceDampRate,
4281
+ bounceDampRate = _3 === void 0 ? 3 : _3,
4280
4282
  distanceProcessor = props.distanceProcessor,
4281
4283
  getInnerScrollContainer = props.getInnerScrollContainer,
4282
4284
  onChange = props.onChange,
@@ -4287,8 +4289,8 @@
4287
4289
  onTransitionStart = props.onTransitionStart,
4288
4290
  onTransitionEnd = props.onTransitionEnd,
4289
4291
  onDistanceChange = props.onDistanceChange,
4290
- _3 = props.stopTouchThreshold,
4291
- stopTouchThreshold = _3 === void 0 ? 0 : _3,
4292
+ _4 = props.stopTouchThreshold,
4293
+ stopTouchThreshold = _4 === void 0 ? 0 : _4,
4292
4294
  onTouchStopped = props.onTouchStopped,
4293
4295
  onPageVisibleChange = props.onPageVisibleChange;
4294
4296
  var domRef = React.useRef(null);
@@ -4302,13 +4304,13 @@
4302
4304
  var touchStartedRef = React.useRef(false);
4303
4305
  var touchMovedRef = React.useRef(false);
4304
4306
 
4305
- var _4 = React.useState(baseBoxWidth || 0),
4306
- wrapWidth = _4[0],
4307
- setWrapWidth = _4[1];
4307
+ var _5 = React.useState(baseBoxWidth || 0),
4308
+ wrapWidth = _5[0],
4309
+ setWrapWidth = _5[1];
4308
4310
 
4309
- var _5 = React.useState(baseBoxHeight || 0),
4310
- wrapHeight = _5[0],
4311
- setWrapHeight = _5[1];
4311
+ var _6 = React.useState(baseBoxHeight || 0),
4312
+ wrapHeight = _6[0],
4313
+ setWrapHeight = _6[1];
4312
4314
 
4313
4315
  var touchStartXRef = React.useRef(0);
4314
4316
  var touchStartYRef = React.useRef(0);
@@ -4316,45 +4318,45 @@
4316
4318
  var touchStoppedRef = React.useRef(false);
4317
4319
  var bouncingRef = React.useRef(false);
4318
4320
 
4319
- var _6 = React.useState('auto'),
4320
- currentItemHeight = _6[0],
4321
- setCurrentItemHeight = _6[1];
4321
+ var _7 = React.useState('auto'),
4322
+ currentItemHeight = _7[0],
4323
+ setCurrentItemHeight = _7[1];
4322
4324
 
4323
- var _7 = useRefState(false),
4324
- posAdjusting = _7[0],
4325
- posAdjustingRef = _7[1],
4326
- setPosAdjusting = _7[2];
4325
+ var _8 = useRefState(false),
4326
+ posAdjusting = _8[0],
4327
+ posAdjustingRef = _8[1],
4328
+ setPosAdjusting = _8[2];
4327
4329
 
4328
- var _8 = useRefState(0),
4329
- distance = _8[0],
4330
- distanceRef = _8[1],
4331
- setDistance = _8[2];
4330
+ var _9 = useRefState(0),
4331
+ distance = _9[0],
4332
+ distanceRef = _9[1],
4333
+ setDistance = _9[2];
4332
4334
 
4333
- var _9 = React.useState(true),
4334
- isAutoJump = _9[0],
4335
- setIsAutoJump = _9[1];
4335
+ var _10 = React.useState(true),
4336
+ isAutoJump = _10[0],
4337
+ setIsAutoJump = _10[1];
4336
4338
 
4337
- var _10 = useRefState(currentIndex !== void 0 ? currentIndex : initialIndex),
4338
- index = _10[0],
4339
- indexRef = _10[1],
4340
- setIndex = _10[2];
4339
+ var _11 = useRefState(currentIndex !== void 0 ? currentIndex : initialIndex),
4340
+ index = _11[0],
4341
+ indexRef = _11[1],
4342
+ setIndex = _11[2];
4341
4343
 
4342
- var _11 = useRefState([]),
4343
- transforms = _11[0],
4344
- transformsRef = _11[1],
4345
- setTransforms = _11[2];
4344
+ var _12 = useRefState([]),
4345
+ transforms = _12[0],
4346
+ transformsRef = _12[1],
4347
+ setTransforms = _12[2];
4346
4348
 
4347
- var _12 = useRefState('left'),
4348
- direction = _12[0],
4349
- directionRef = _12[1],
4350
- setStateDirection = _12[2];
4349
+ var _13 = useRefState(autoPlayDirection === 'reverse' && autoPlay ? 'right' : 'left'),
4350
+ direction = _13[0],
4351
+ directionRef = _13[1],
4352
+ setStateDirection = _13[2];
4351
4353
 
4352
4354
  var lastDirectionRef = React.useRef('');
4353
4355
  var lastShownIndexRef = React.useRef(-1);
4354
4356
 
4355
- var _13 = getAllChildren(),
4356
- allChildren = _13.allChildren,
4357
- fakeTwoChildren = _13.fakeTwoChildren;
4357
+ var _14 = getAllChildren(),
4358
+ allChildren = _14.allChildren,
4359
+ fakeTwoChildren = _14.fakeTwoChildren;
4358
4360
 
4359
4361
  var total = allChildren.length;
4360
4362
  var shownTotal = fakeTwoChildren ? 2 : total;
@@ -4386,9 +4388,9 @@
4386
4388
  return Math.max(0, Math.min(inactiveScale, 1));
4387
4389
  }, [inactiveScale]);
4388
4390
 
4389
- var _14 = React.useState([]),
4390
- fakeIndexes = _14[0],
4391
- setFakeIndexes = _14[1];
4391
+ var _15 = React.useState([]),
4392
+ fakeIndexes = _15[0],
4393
+ setFakeIndexes = _15[1];
4392
4394
 
4393
4395
  var system = useSystem(); // 开启自动循环时iOS会有渲染问题需要强刷dom,但不需要autoPlay的不用强刷,这里判断下
4394
4396
  // @en When the automatic loop is turned on, there will be rendering problems in iOS. Need to brush the dom, but if you don't need autoPlay, don't need to brush.
@@ -4581,7 +4583,7 @@
4581
4583
  return function () {
4582
4584
  clear();
4583
4585
  };
4584
- }, [userSetBoxWidth, userSetBoxHeight, childWidth, childHeight, stayDuration, noInterval]);
4586
+ }, [userSetBoxWidth, userSetBoxHeight, childWidth, childHeight, stayDuration, noInterval, autoPlayDirection]);
4585
4587
  useUpdateEffect(function () {
4586
4588
  if (currentIndex !== void 0) {
4587
4589
  jumpTo(currentIndex);
@@ -4721,7 +4723,7 @@
4721
4723
  var changedIndex = newIndex !== oldIndex ? getShownIndex(newIndex) : -1;
4722
4724
 
4723
4725
  if (autoJump) {
4724
- setDirection('left');
4726
+ setDirection(autoPlayDirection === 'reverse' ? 'right' : 'left');
4725
4727
  } else if (newIndex === indexRef.current) {
4726
4728
  setDirection(distanceRef.current > 0 ? 'right' : 'left');
4727
4729
  } else {
@@ -4775,7 +4777,7 @@
4775
4777
  }
4776
4778
 
4777
4779
  timerRef.current = delayTimeout(function () {
4778
- jumpTo(indexRef.current + 1);
4780
+ jumpTo(autoPlayDirection === 'reverse' ? indexRef.current - 1 : indexRef.current + 1);
4779
4781
  }, stayDuration);
4780
4782
  }
4781
4783
 
@@ -8061,6 +8063,7 @@
8061
8063
  var touchStoppedRef = React.useRef(false);
8062
8064
  var changeFromRef = React.useRef('');
8063
8065
  var touchMoveBarScrollRef = React.useRef(false);
8066
+ var system = useSystem();
8064
8067
  var allPanes = getAllPanes();
8065
8068
  var tabDirection = ['top', 'bottom'].indexOf(tabBarPosition) !== -1 ? 'vertical' : 'horizontal';
8066
8069
  var canSwipe = mode === 'swipe' && !disabled && swipeable && tabDirection === 'vertical' && tabs.length > 1;
@@ -8173,10 +8176,10 @@
8173
8176
 
8174
8177
  var evt = e.changedTouches[0];
8175
8178
  var touchMoveX = evt.clientX || 0;
8176
- var touchMoveY = evt.clientY || 0; // bugfix: 兼容safari在右滑返回上一页时clientX为负值的情况
8179
+ var touchMoveY = evt.clientY || 0; // bugfix: 兼容safari在右滑返回上一页时clientX为负值的情况,安卓有折叠屏,触点会有超出屏幕(clientX < 0)的情况,因此这里限定ios系统
8177
8180
  // @en bugfix: bugfix: Compatible with the case in safari where clientX is negative when swiping right back to the previous page
8178
8181
 
8179
- var posDisX = touchMoveX < 0 ? 0 : touchMoveX - touchStartXRef.current;
8182
+ var posDisX = system === 'ios' && touchMoveX < 0 ? 0 : touchMoveX - touchStartXRef.current;
8180
8183
  var posDisY = touchMoveY - touchStartYRef.current;
8181
8184
  var absDisX = Math.abs(posDisX);
8182
8185
  var absDisY = Math.abs(posDisY);
@@ -20831,6 +20834,7 @@
20831
20834
 
20832
20835
  var animationRef = React.useRef(0);
20833
20836
  var className = props.className,
20837
+ style = props.style,
20834
20838
  children = props.children,
20835
20839
  _d = props.loadingText,
20836
20840
  loadingText = _d === void 0 ? /*#__PURE__*/React__default["default"].createElement("div", {
@@ -21006,9 +21010,9 @@
21006
21010
  'is-disabled': disabled || !touching && useHideAsNestedScroll
21007
21011
  }),
21008
21012
  ref: domRef,
21009
- style: contentHeight > 0 ? {
21013
+ style: contentHeight > 0 ? __assign({
21010
21014
  height: contentHeight
21011
- } : {}
21015
+ }, style || {}) : style
21012
21016
  }, /*#__PURE__*/React__default["default"].createElement("div", {
21013
21017
  className: cls(prefixCls + "-pull-refresh-content-wrapper")
21014
21018
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -21038,6 +21042,7 @@
21038
21042
  locale = _c === void 0 ? defaultLocale : _c;
21039
21043
 
21040
21044
  var className = props.className,
21045
+ style = props.style,
21041
21046
  children = props.children,
21042
21047
  _d = props.loosingText,
21043
21048
  loosingText = _d === void 0 ? /*#__PURE__*/React__default["default"].createElement("div", {
@@ -21272,6 +21277,7 @@
21272
21277
  className: cls(prefixCls + "-pull-refresh all-border-box is-android", className, {
21273
21278
  'is-disabled': (disabled || !touching && useHideAsNestedScroll) && status !== PullRefreshStatus.Loading
21274
21279
  }),
21280
+ style: style,
21275
21281
  ref: domRef
21276
21282
  }, /*#__PURE__*/React__default["default"].createElement("div", {
21277
21283
  className: cls(prefixCls + "-pull-refresh-place"),
@@ -22741,9 +22747,11 @@
22741
22747
  _b = _a.index,
22742
22748
  index = _b === void 0 ? 0 : _b,
22743
22749
  contextStatus = _a.status,
22750
+ contextAlign = _a.align,
22744
22751
  changeIndex = _a.changeIndex;
22745
22752
 
22746
22753
  var status = props.status || contextStatus;
22754
+ var align = props.align || contextAlign;
22747
22755
  var domRef = React.useRef(null);
22748
22756
  React.useImperativeHandle(ref, function () {
22749
22757
  return {
@@ -22782,12 +22790,12 @@
22782
22790
  var prefixCls = _a.prefixCls;
22783
22791
  return /*#__PURE__*/React__default["default"].createElement("div", {
22784
22792
  ref: domRef,
22785
- className: cls(prefixCls + "-steps-item", currentStatus, direction, iconType),
22793
+ className: cls(prefixCls + "-steps-item", prefixCls + "-steps-item-align-" + align, currentStatus, direction, iconType),
22786
22794
  onClick: function onClick() {
22787
22795
  return changeIndex(index);
22788
22796
  }
22789
22797
  }, /*#__PURE__*/React__default["default"].createElement("div", {
22790
- className: cls(prefixCls + "-steps-item-tail", currentStatus + "-tail-color-with-config")
22798
+ className: cls(prefixCls + "-steps-item-tail", prefixCls + "-steps-item-tail-status-" + currentStatus, prefixCls + "-steps-item-tail-align-" + align, currentStatus + "-tail-color-with-config")
22791
22799
  }), icon ? /*#__PURE__*/React__default["default"].createElement("div", {
22792
22800
  className: cls(prefixCls + "-steps-item-custom-icon", currentStatus + "-custom-icon-bg-color-with-config")
22793
22801
  }, icon) : /*#__PURE__*/React__default["default"].createElement("div", {
@@ -22795,7 +22803,7 @@
22795
22803
  }, iconType === 'number' ? renderNumIcon(prefixCls) : /*#__PURE__*/React__default["default"].createElement("span", {
22796
22804
  className: cls(prefixCls + "-steps-item-icon-dot")
22797
22805
  })), title || description ? /*#__PURE__*/React__default["default"].createElement("div", {
22798
- className: cls(prefixCls + "-steps-item-content")
22806
+ className: cls(prefixCls + "-steps-item-content", prefixCls + "-steps-item-content-align-" + align)
22799
22807
  }, title ? /*#__PURE__*/React__default["default"].createElement("div", {
22800
22808
  className: cls(prefixCls + "-steps-item-title", currentStatus + "-title-color-with-config")
22801
22809
  }, title) : null, description ? /*#__PURE__*/React__default["default"].createElement("div", {
@@ -22814,6 +22822,7 @@
22814
22822
  children = props.children,
22815
22823
  _b = props.direction,
22816
22824
  direction = _b === void 0 ? 'horizontal' : _b,
22825
+ userSetAlign = props.align,
22817
22826
  _c = props.iconType,
22818
22827
  iconType = _c === void 0 ? 'number' : _c,
22819
22828
  current = props.current,
@@ -22824,6 +22833,8 @@
22824
22833
  items = props.items,
22825
22834
  onClick = props.onClick,
22826
22835
  onChange = props.onChange;
22836
+ var defaultAlign = direction === 'vertical' ? 'start' : 'center';
22837
+ var align = userSetAlign !== void 0 ? userSetAlign : defaultAlign;
22827
22838
 
22828
22839
  var _f = React.useState(Number(defaultIndex)),
22829
22840
  innerIndex = _f[0],
@@ -22859,11 +22870,12 @@
22859
22870
  direction: direction,
22860
22871
  index: index,
22861
22872
  status: activeIndex === index ? status : void 0,
22873
+ align: align,
22862
22874
  changeIndex: changeIndex
22863
22875
  },
22864
22876
  key: index
22865
22877
  }, child);
22866
- }, [iconType, activeIndex, direction]);
22878
+ }, [iconType, activeIndex, direction, align]);
22867
22879
  return /*#__PURE__*/React__default["default"].createElement(ContextLayout, null, function (_a) {
22868
22880
  var prefixCls = _a.prefixCls;
22869
22881
  return /*#__PURE__*/React__default["default"].createElement("div", {