@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
package/dist/style.css CHANGED
@@ -241,8 +241,8 @@ samp {
241
241
  .arco-action-sheet-title.android,
242
242
  .arco-action-sheet-title.system-android {
243
243
  font-weight: 400;
244
- -webkit-text-stroke: 0.3PX #1d2129;
245
- text-stroke: 0.3PX #1d2129;
244
+ -webkit-text-stroke: 0.3PX currentColor;
245
+ text-stroke: 0.3PX currentColor;
246
246
  }
247
247
  .arco-action-sheet-sub-title {
248
248
  color: #86909c ;
@@ -2222,8 +2222,8 @@ samp {
2222
2222
  .arco-tab-cell.vertical:not(.custom).line.active.system-android,
2223
2223
  .arco-tab-cell.vertical:not(.custom).line-divide.active.system-android {
2224
2224
  font-weight: 400;
2225
- -webkit-text-stroke: 0.3PX #165dff;
2226
- text-stroke: 0.3PX #165dff;
2225
+ -webkit-text-stroke: 0.3PX currentColor;
2226
+ text-stroke: 0.3PX currentColor;
2227
2227
  }
2228
2228
  .arco-tab-cell.vertical:not(.custom).card {
2229
2229
  color: #165dff ;
@@ -2237,8 +2237,8 @@ samp {
2237
2237
  .arco-tab-cell.vertical:not(.custom).card.active.android,
2238
2238
  .arco-tab-cell.vertical:not(.custom).card.active.system-android {
2239
2239
  font-weight: 400;
2240
- -webkit-text-stroke: 0.3PX #ffffff;
2241
- text-stroke: 0.3PX #ffffff;
2240
+ -webkit-text-stroke: 0.3PX currentColor;
2241
+ text-stroke: 0.3PX currentColor;
2242
2242
  }
2243
2243
  .arco-tab-cell.vertical:not(.custom).card:not(:last-child) {
2244
2244
  border-right: 1PX solid #165dff ;
@@ -2280,8 +2280,8 @@ samp {
2280
2280
  .arco-tab-cell.vertical:not(.custom).tag.active.system-android,
2281
2281
  .arco-tab-cell.vertical:not(.custom).tag-divide.active.system-android {
2282
2282
  font-weight: 400;
2283
- -webkit-text-stroke: 0.3PX #ffffff;
2284
- text-stroke: 0.3PX #ffffff;
2283
+ -webkit-text-stroke: 0.3PX currentColor;
2284
+ text-stroke: 0.3PX currentColor;
2285
2285
  }
2286
2286
  .arco-tab-cell.horizontal {
2287
2287
  height: 1.08rem ;
@@ -2294,8 +2294,8 @@ samp {
2294
2294
  .arco-tab-cell.horizontal.active.android,
2295
2295
  .arco-tab-cell.horizontal.active.system-android {
2296
2296
  font-weight: 400;
2297
- -webkit-text-stroke: 0.3PX #165dff;
2298
- text-stroke: 0.3PX #165dff;
2297
+ -webkit-text-stroke: 0.3PX currentColor;
2298
+ text-stroke: 0.3PX currentColor;
2299
2299
  }
2300
2300
  .arco-tab-pane-container.mode-swipe {
2301
2301
  display: flex;
@@ -2447,8 +2447,8 @@ samp {
2447
2447
  .arco-dialog-header.ios.android,
2448
2448
  .arco-dialog-header.ios.system-android {
2449
2449
  font-weight: 400;
2450
- -webkit-text-stroke: 0.3PX #1d2129;
2451
- text-stroke: 0.3PX #1d2129;
2450
+ -webkit-text-stroke: 0.3PX currentColor;
2451
+ text-stroke: 0.3PX currentColor;
2452
2452
  }
2453
2453
  .arco-dialog-header.ios.only-title {
2454
2454
  padding-bottom: 0.4rem ;
@@ -4858,13 +4858,19 @@ samp {
4858
4858
  }
4859
4859
  .arco-steps-item.horizontal {
4860
4860
  flex-direction: column;
4861
+ }
4862
+ .arco-steps-item-align-center {
4861
4863
  align-items: center;
4862
4864
  }
4863
- .arco-steps-item.vertical {
4865
+ .arco-steps-item-align-start {
4864
4866
  align-items: flex-start;
4865
4867
  }
4866
- .arco-steps-item:last-child .arco-steps-item-tail:after {
4867
- display: none;
4868
+ .arco-steps-item-align-center.vertical {
4869
+ padding-bottom: 0.5rem ;
4870
+ }
4871
+ .arco-steps-item:first-child .arco-steps-item-tail::before,
4872
+ .arco-steps-item:last-child .arco-steps-item-tail::after {
4873
+ visibility: hidden;
4868
4874
  }
4869
4875
  .arco-steps-item-tail {
4870
4876
  position: absolute;
@@ -4874,33 +4880,78 @@ samp {
4874
4880
  }
4875
4881
  .horizontal .arco-steps-item-tail {
4876
4882
  width: 100%;
4877
- left: 50%;
4878
4883
  height: 18PX ;
4879
- padding: 0 0.36rem ;
4880
4884
  }
4881
- .horizontal .arco-steps-item-tail:after {
4885
+ .horizontal .arco-steps-item-tail::before,
4886
+ .horizontal .arco-steps-item-tail::after {
4887
+ height: 1PX ;
4888
+ }
4889
+ .horizontal .arco-steps-item-tail-align-start {
4890
+ left: 9PX ;
4891
+ padding: 0 18PX ;
4892
+ }
4893
+ .horizontal .arco-steps-item-tail-align-start::after {
4882
4894
  content: "";
4883
- display: inline-block;
4884
4895
  width: 100%;
4885
- height: 1PX ;
4886
- background: #e5e6eb ;
4887
- border-radius: 0.04rem;
4896
+ border-radius: 2PX ;
4897
+ }
4898
+ .horizontal .arco-steps-item-tail-align-center::before,
4899
+ .horizontal .arco-steps-item-tail-align-center::after {
4900
+ content: "";
4901
+ width: 50%;
4902
+ }
4903
+ .horizontal .arco-steps-item-tail-align-center::before {
4904
+ margin-right: 18PX ;
4905
+ border-top-right-radius: 2PX ;
4906
+ border-bottom-right-radius: 2PX ;
4907
+ }
4908
+ .horizontal .arco-steps-item-tail-align-center::after {
4909
+ margin-left: 18PX ;
4910
+ border-top-left-radius: 2PX ;
4911
+ border-bottom-left-radius: 2PX ;
4888
4912
  }
4889
4913
  .vertical .arco-steps-item-tail {
4890
4914
  height: 100%;
4891
4915
  width: 18PX ;
4892
- top: 0.18rem ;
4893
- padding: 0.28rem 0 ;
4916
+ flex-direction: column;
4894
4917
  }
4895
- .vertical .arco-steps-item-tail:after {
4918
+ .vertical .arco-steps-item-tail::before,
4919
+ .vertical .arco-steps-item-tail::after {
4920
+ width: 1PX ;
4921
+ }
4922
+ .vertical .arco-steps-item-tail-align-start {
4923
+ top: 9PX ;
4924
+ padding: 14PX 0 ;
4925
+ }
4926
+ .vertical .arco-steps-item-tail-align-start::after {
4896
4927
  content: "";
4897
- display: inline-block;
4898
4928
  height: 100%;
4899
- width: 1PX ;
4929
+ border-radius: 2PX ;
4930
+ }
4931
+ .vertical .arco-steps-item-tail-align-center::before,
4932
+ .vertical .arco-steps-item-tail-align-center::after {
4933
+ content: "";
4934
+ height: 50%;
4935
+ }
4936
+ .vertical .arco-steps-item-tail-align-center::before {
4937
+ margin-bottom: 14PX ;
4938
+ border-bottom-left-radius: 2PX ;
4939
+ border-bottom-right-radius: 2PX ;
4940
+ }
4941
+ .vertical .arco-steps-item-tail-align-center::after {
4942
+ margin-top: 14PX ;
4943
+ border-top-left-radius: 2PX ;
4944
+ border-top-right-radius: 2PX ;
4945
+ }
4946
+ .arco-steps-item-tail::after,
4947
+ .arco-steps-item-tail::before {
4948
+ display: inline-block;
4900
4949
  background: #e5e6eb ;
4901
- border-radius: 0.04rem;
4902
4950
  }
4903
- .finish .arco-steps-item-tail:after {
4951
+ .arco-steps-item-tail-status-finish::before,
4952
+ .arco-steps-item-tail-status-finish::after,
4953
+ .arco-steps-item-tail-align-center.arco-steps-item-tail-status-process::before,
4954
+ .arco-steps-item-tail-align-center.arco-steps-item-tail-status-error::before {
4904
4955
  background: #165dff ;
4905
4956
  }
4906
4957
  .arco-steps-item-custom-icon,
@@ -4946,8 +4997,8 @@ samp {
4946
4997
  .arco-steps-item-icon-num.android,
4947
4998
  .arco-steps-item-icon-num.system-android {
4948
4999
  font-weight: 400;
4949
- -webkit-text-stroke: 0.3PX #86909c;
4950
- text-stroke: 0.3PX #86909c;
5000
+ -webkit-text-stroke: 0.3PX currentColor;
5001
+ text-stroke: 0.3PX currentColor;
4951
5002
  }
4952
5003
  .process .arco-steps-item-icon-num {
4953
5004
  color: #FFFFFF ;
@@ -4971,16 +5022,17 @@ samp {
4971
5022
  border: none;
4972
5023
  background: #165dff ;
4973
5024
  }
4974
- .arco-steps-item-content {
4975
- text-align: center;
4976
- }
4977
5025
  .horizontal .arco-steps-item-content {
4978
5026
  margin-top: 0.1rem ;
4979
5027
  }
5028
+ .horizontal .arco-steps-item-content-align-center {
5029
+ text-align: center;
5030
+ }
4980
5031
  .vertical .arco-steps-item-content {
4981
5032
  margin-left: 0.26rem ;
4982
- text-align: left;
4983
5033
  flex: 1;
5034
+ }
5035
+ .vertical .arco-steps-item-content-align-start {
4984
5036
  padding-bottom: 0.5rem ;
4985
5037
  }
4986
5038
  .arco-steps-item-title {