@arco-design/mobile-react 2.23.0 → 2.24.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.
Files changed (156) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.en-US.md +2 -2
  3. package/README.md +2 -2
  4. package/cjs/_helpers/render.d.ts +3 -1
  5. package/cjs/_helpers/render.js +10 -3
  6. package/cjs/action-sheet/index.d.ts +5 -5
  7. package/cjs/action-sheet/index.js +4 -3
  8. package/cjs/action-sheet/methods.d.ts +1 -1
  9. package/cjs/badge/style/css/index.css +1 -2
  10. package/cjs/checkbox/checkbox.js +4 -0
  11. package/cjs/circle-progress/index.js +4 -0
  12. package/cjs/context-provider/index.d.ts +4 -0
  13. package/cjs/context-provider/index.js +14 -2
  14. package/cjs/dialog/index.d.ts +8 -8
  15. package/cjs/dialog/index.js +3 -2
  16. package/cjs/dialog/methods.d.ts +3 -3
  17. package/cjs/dialog/style/css/index.css +1 -2
  18. package/cjs/image-preview/index.d.ts +3 -3
  19. package/cjs/image-preview/index.js +3 -2
  20. package/cjs/image-preview/methods.d.ts +2 -1
  21. package/cjs/image-preview/methods.js +2 -2
  22. package/cjs/input/hooks.js +1 -0
  23. package/cjs/input/index.d.ts +5 -0
  24. package/cjs/input/index.js +6 -2
  25. package/cjs/masking/index.d.ts +4 -14
  26. package/cjs/masking/index.js +3 -2
  27. package/cjs/masking/methods.d.ts +3 -2
  28. package/cjs/masking/methods.js +2 -2
  29. package/cjs/nav-bar/index.d.ts +12 -0
  30. package/cjs/nav-bar/index.js +8 -2
  31. package/cjs/notify/index.d.ts +12 -12
  32. package/cjs/notify/index.js +3 -2
  33. package/cjs/notify/methods.d.ts +2 -1
  34. package/cjs/notify/methods.js +2 -2
  35. package/cjs/picker-view/components/picker-cell.js +3 -1
  36. package/cjs/popup/index.d.ts +4 -4
  37. package/cjs/popup/index.js +3 -2
  38. package/cjs/popup/methods.d.ts +1 -1
  39. package/cjs/popup-swiper/index.d.ts +12 -6
  40. package/cjs/popup-swiper/index.js +3 -2
  41. package/cjs/popup-swiper/methods.d.ts +1 -1
  42. package/cjs/progress/index.js +4 -0
  43. package/cjs/rate/index.js +5 -0
  44. package/cjs/slider/index.js +6 -1
  45. package/cjs/stepper/index.js +7 -1
  46. package/cjs/swipe-action/index.d.ts +1 -0
  47. package/cjs/swipe-action/index.js +10 -0
  48. package/cjs/switch/index.js +4 -0
  49. package/cjs/toast/index.d.ts +18 -18
  50. package/cjs/toast/index.js +3 -2
  51. package/cjs/toast/methods.d.ts +2 -1
  52. package/cjs/toast/methods.js +2 -2
  53. package/dist/index.js +115 -43
  54. package/dist/index.min.js +3 -3
  55. package/dist/style.css +13 -113
  56. package/dist/style.min.css +1 -1
  57. package/esm/_helpers/render.d.ts +3 -1
  58. package/esm/_helpers/render.js +10 -3
  59. package/esm/action-sheet/index.d.ts +5 -5
  60. package/esm/action-sheet/index.js +4 -3
  61. package/esm/action-sheet/methods.d.ts +1 -1
  62. package/esm/badge/style/css/index.css +1 -2
  63. package/esm/checkbox/checkbox.js +4 -0
  64. package/esm/circle-progress/index.js +4 -0
  65. package/esm/context-provider/index.d.ts +4 -0
  66. package/esm/context-provider/index.js +13 -2
  67. package/esm/dialog/index.d.ts +8 -8
  68. package/esm/dialog/index.js +3 -2
  69. package/esm/dialog/methods.d.ts +3 -3
  70. package/esm/dialog/style/css/index.css +1 -2
  71. package/esm/image-preview/index.d.ts +3 -3
  72. package/esm/image-preview/index.js +3 -2
  73. package/esm/image-preview/methods.d.ts +2 -1
  74. package/esm/image-preview/methods.js +2 -2
  75. package/esm/input/hooks.js +1 -0
  76. package/esm/input/index.d.ts +5 -0
  77. package/esm/input/index.js +6 -2
  78. package/esm/masking/index.d.ts +4 -14
  79. package/esm/masking/index.js +3 -2
  80. package/esm/masking/methods.d.ts +3 -2
  81. package/esm/masking/methods.js +2 -2
  82. package/esm/nav-bar/index.d.ts +12 -0
  83. package/esm/nav-bar/index.js +8 -2
  84. package/esm/notify/index.d.ts +12 -12
  85. package/esm/notify/index.js +3 -2
  86. package/esm/notify/methods.d.ts +2 -1
  87. package/esm/notify/methods.js +2 -2
  88. package/esm/picker-view/components/picker-cell.js +3 -1
  89. package/esm/popup/index.d.ts +4 -4
  90. package/esm/popup/index.js +3 -2
  91. package/esm/popup/methods.d.ts +1 -1
  92. package/esm/popup-swiper/index.d.ts +12 -6
  93. package/esm/popup-swiper/index.js +3 -2
  94. package/esm/popup-swiper/methods.d.ts +1 -1
  95. package/esm/progress/index.js +4 -0
  96. package/esm/rate/index.js +5 -0
  97. package/esm/slider/index.js +6 -1
  98. package/esm/stepper/index.js +7 -1
  99. package/esm/swipe-action/index.d.ts +1 -0
  100. package/esm/swipe-action/index.js +1 -0
  101. package/esm/switch/index.js +4 -0
  102. package/esm/toast/index.d.ts +18 -18
  103. package/esm/toast/index.js +3 -2
  104. package/esm/toast/methods.d.ts +2 -1
  105. package/esm/toast/methods.js +2 -2
  106. package/package.json +3 -3
  107. package/style/css/public.css +4 -4
  108. package/umd/_helpers/render.d.ts +3 -1
  109. package/umd/_helpers/render.js +13 -7
  110. package/umd/action-sheet/index.d.ts +5 -5
  111. package/umd/action-sheet/index.js +4 -3
  112. package/umd/action-sheet/methods.d.ts +1 -1
  113. package/umd/badge/style/css/index.css +1 -2
  114. package/umd/checkbox/checkbox.js +4 -0
  115. package/umd/circle-progress/index.js +4 -0
  116. package/umd/context-provider/index.d.ts +4 -0
  117. package/umd/context-provider/index.js +13 -1
  118. package/umd/dialog/index.d.ts +8 -8
  119. package/umd/dialog/index.js +3 -2
  120. package/umd/dialog/methods.d.ts +3 -3
  121. package/umd/dialog/style/css/index.css +1 -2
  122. package/umd/image-preview/index.d.ts +3 -3
  123. package/umd/image-preview/index.js +3 -2
  124. package/umd/image-preview/methods.d.ts +2 -1
  125. package/umd/image-preview/methods.js +2 -2
  126. package/umd/input/hooks.js +1 -0
  127. package/umd/input/index.d.ts +5 -0
  128. package/umd/input/index.js +6 -2
  129. package/umd/masking/index.d.ts +4 -14
  130. package/umd/masking/index.js +3 -2
  131. package/umd/masking/methods.d.ts +3 -2
  132. package/umd/masking/methods.js +2 -2
  133. package/umd/nav-bar/index.d.ts +12 -0
  134. package/umd/nav-bar/index.js +8 -2
  135. package/umd/notify/index.d.ts +12 -12
  136. package/umd/notify/index.js +3 -2
  137. package/umd/notify/methods.d.ts +2 -1
  138. package/umd/notify/methods.js +2 -2
  139. package/umd/picker-view/components/picker-cell.js +3 -1
  140. package/umd/popup/index.d.ts +4 -4
  141. package/umd/popup/index.js +3 -2
  142. package/umd/popup/methods.d.ts +1 -1
  143. package/umd/popup-swiper/index.d.ts +12 -6
  144. package/umd/popup-swiper/index.js +3 -2
  145. package/umd/popup-swiper/methods.d.ts +1 -1
  146. package/umd/progress/index.js +4 -0
  147. package/umd/rate/index.js +5 -0
  148. package/umd/slider/index.js +6 -1
  149. package/umd/stepper/index.js +7 -1
  150. package/umd/swipe-action/index.d.ts +1 -0
  151. package/umd/swipe-action/index.js +11 -4
  152. package/umd/switch/index.js +4 -0
  153. package/umd/toast/index.d.ts +18 -18
  154. package/umd/toast/index.js +3 -2
  155. package/umd/toast/methods.d.ts +2 -1
  156. package/umd/toast/methods.js +2 -2
package/dist/style.css CHANGED
@@ -1,12 +1,12 @@
1
1
  * {
2
- margin: 0;
3
- padding: 0;
4
- border: 0;
5
- -webkit-font-smoothing: antialiased;
6
2
  -webkit-tap-highlight-color: transparent;
7
3
  }
8
4
  body {
5
+ margin: 0;
6
+ padding: 0;
7
+ border: 0;
9
8
  touch-action: manipulation;
9
+ -webkit-font-smoothing: antialiased;
10
10
  -webkit-text-size-adjust: none;
11
11
  }
12
12
  button,
@@ -590,14 +590,6 @@ samp {
590
590
  .arco-loading .stroke-color-with-config {
591
591
  stroke: #165dff;
592
592
  }
593
- @-webkit-keyframes changDeg {
594
- 0% {
595
- transform: rotate(0deg);
596
- }
597
- 100% {
598
- transform: rotate(360deg);
599
- }
600
- }
601
593
  @keyframes changDeg {
602
594
  0% {
603
595
  transform: rotate(0deg);
@@ -609,8 +601,7 @@ samp {
609
601
  .arco-loading.circle,
610
602
  .arco-loading.arc,
611
603
  .arco-loading.spin {
612
- -webkit-animation: changDeg 1s infinite linear;
613
- animation: changDeg 1s infinite linear;
604
+ animation: changDeg 1s infinite linear;
614
605
  }
615
606
  .arco-loading.circle .loading-circle-middle {
616
607
  stop-opacity: 0.5;
@@ -669,16 +660,6 @@ samp {
669
660
  stop-opacity: 0;
670
661
  }
671
662
 
672
- @-webkit-keyframes scale-on {
673
- 0% {
674
- transform: scale(0);
675
- opacity: 0;
676
- }
677
- 100% {
678
- transform: scale(1);
679
- opacity: 1;
680
- }
681
- }
682
663
  @keyframes scale-on {
683
664
  0% {
684
665
  transform: scale(0);
@@ -689,16 +670,6 @@ samp {
689
670
  opacity: 1;
690
671
  }
691
672
  }
692
- @-webkit-keyframes scale-off {
693
- 0% {
694
- transform: scale(1);
695
- opacity: 1;
696
- }
697
- 100% {
698
- transform: scale(0);
699
- opacity: 0;
700
- }
701
- }
702
673
  @keyframes scale-off {
703
674
  0% {
704
675
  transform: scale(1);
@@ -710,12 +681,10 @@ samp {
710
681
  }
711
682
  }
712
683
  .arco-scale-enter-active {
713
- -webkit-animation: scale-on 0.4s cubic-bezier(0.3, 1.3, 0.3, 1) forwards;
714
- animation: scale-on 0.4s cubic-bezier(0.3, 1.3, 0.3, 1) forwards;
684
+ animation: scale-on 0.4s cubic-bezier(0.3, 1.3, 0.3, 1) forwards;
715
685
  }
716
686
  .arco-scale-exit-active {
717
- -webkit-animation: scale-off 0.4s cubic-bezier(0.3, 1.3, 0.3, 1) forwards;
718
- animation: scale-off 0.4s cubic-bezier(0.3, 1.3, 0.3, 1) forwards;
687
+ animation: scale-off 0.4s cubic-bezier(0.3, 1.3, 0.3, 1) forwards;
719
688
  }
720
689
  .arco-badge {
721
690
  cursor: pointer;
@@ -1584,14 +1553,6 @@ samp {
1584
1553
  display: inline-block;
1585
1554
  transition: all 0.2s ;
1586
1555
  }
1587
- @-webkit-keyframes changDeg {
1588
- 0% {
1589
- transform: rotate(0deg);
1590
- }
1591
- 100% {
1592
- transform: rotate(360deg);
1593
- }
1594
- }
1595
1556
  @keyframes changDeg {
1596
1557
  0% {
1597
1558
  transform: rotate(0deg);
@@ -2085,17 +2046,6 @@ samp {
2085
2046
  align-items: center;
2086
2047
  justify-content: center;
2087
2048
  }
2088
- @-webkit-keyframes caterpillarX {
2089
- 0% {
2090
- transform: scaleX(1) translateZ(0);
2091
- }
2092
- 50% {
2093
- transform: scaleX(2) translateZ(0);
2094
- }
2095
- 100% {
2096
- transform: scaleX(1) translateZ(0);
2097
- }
2098
- }
2099
2049
  @keyframes caterpillarX {
2100
2050
  0% {
2101
2051
  transform: scaleX(1) translateZ(0);
@@ -2107,17 +2057,6 @@ samp {
2107
2057
  transform: scaleX(1) translateZ(0);
2108
2058
  }
2109
2059
  }
2110
- @-webkit-keyframes caterpillarY {
2111
- 0% {
2112
- transform: scaleY(1) translateZ(0);
2113
- }
2114
- 50% {
2115
- transform: scaleY(2) translateZ(0);
2116
- }
2117
- 100% {
2118
- transform: scaleY(1) translateZ(0);
2119
- }
2120
- }
2121
2060
  @keyframes caterpillarY {
2122
2061
  0% {
2123
2062
  transform: scaleY(1) translateZ(0);
@@ -2168,16 +2107,13 @@ samp {
2168
2107
  background-color: #165dff ;
2169
2108
  }
2170
2109
  .arco-tab-cell-underline-inner.caterpillar {
2171
- -webkit-animation-timing-function: linear;
2172
- animation-timing-function: linear;
2110
+ animation-timing-function: linear;
2173
2111
  }
2174
2112
  .arco-tab-cell-underline-inner.caterpillar:not(.custom-animate).vertical {
2175
- -webkit-animation-name: caterpillarX;
2176
- animation-name: caterpillarX;
2113
+ animation-name: caterpillarX;
2177
2114
  }
2178
2115
  .arco-tab-cell-underline-inner.caterpillar:not(.custom-animate).horizontal {
2179
- -webkit-animation-name: caterpillarY;
2180
- animation-name: caterpillarY;
2116
+ animation-name: caterpillarY;
2181
2117
  }
2182
2118
  .arco-tab-cell {
2183
2119
  font-size: 0.3rem ;
@@ -2333,16 +2269,6 @@ samp {
2333
2269
  }
2334
2270
 
2335
2271
 
2336
- @-webkit-keyframes fade-scale-on {
2337
- 0% {
2338
- opacity: 0;
2339
- transform: scale(0.5);
2340
- }
2341
- 100% {
2342
- opacity: 1;
2343
- transform: scale(1);
2344
- }
2345
- }
2346
2272
  @keyframes fade-scale-on {
2347
2273
  0% {
2348
2274
  opacity: 0;
@@ -2353,16 +2279,6 @@ samp {
2353
2279
  transform: scale(1);
2354
2280
  }
2355
2281
  }
2356
- @-webkit-keyframes fade-scale-off {
2357
- 0% {
2358
- opacity: 1;
2359
- transform: scale(1);
2360
- }
2361
- 100% {
2362
- opacity: 0;
2363
- transform: scale(0.5);
2364
- }
2365
- }
2366
2282
  @keyframes fade-scale-off {
2367
2283
  0% {
2368
2284
  opacity: 1;
@@ -2374,12 +2290,10 @@ samp {
2374
2290
  }
2375
2291
  }
2376
2292
  .arco-fade-scale-enter-active {
2377
- -webkit-animation: fade-scale-on 0.45s cubic-bezier(0.2, 1.23, 0.25, 1) forwards;
2378
- animation: fade-scale-on 0.45s cubic-bezier(0.2, 1.23, 0.25, 1) forwards;
2293
+ animation: fade-scale-on 0.45s cubic-bezier(0.2, 1.23, 0.25, 1) forwards;
2379
2294
  }
2380
2295
  .arco-fade-scale-exit-active {
2381
- -webkit-animation: fade-scale-off 0.15s cubic-bezier(0.48, 0.04, 0.52, 0.96) forwards;
2382
- animation: fade-scale-off 0.15s cubic-bezier(0.48, 0.04, 0.52, 0.96) forwards;
2296
+ animation: fade-scale-off 0.15s cubic-bezier(0.48, 0.04, 0.52, 0.96) forwards;
2383
2297
  }
2384
2298
  .arco-dialog-mask,
2385
2299
  .arco-dialog-container {
@@ -3677,8 +3591,7 @@ samp {
3677
3591
  line-height: 0.72rem ;
3678
3592
  }
3679
3593
  .arco-notice-bar-content-inner.animate {
3680
- -webkit-animation: marquee linear both;
3681
- animation: marquee linear both;
3594
+ animation: marquee linear both;
3682
3595
  }
3683
3596
  .arco-notice-bar-content .arco-carousel {
3684
3597
  height: 0.72rem ;
@@ -3711,14 +3624,6 @@ samp {
3711
3624
  right: -2PX;
3712
3625
  transform: rotate(180deg);
3713
3626
  }
3714
- @-webkit-keyframes marquee {
3715
- 0% {
3716
- transform: translate3d(0, 0, 0);
3717
- }
3718
- 100% {
3719
- transform: translate3d(-100%, 0, 0);
3720
- }
3721
- }
3722
3627
  @keyframes marquee {
3723
3628
  0% {
3724
3629
  transform: translate3d(0, 0, 0);
@@ -3993,7 +3898,6 @@ samp {
3993
3898
  .arco-popover-inner {
3994
3899
  box-sizing: border-box;
3995
3900
  position: absolute;
3996
- width: -webkit-max-content;
3997
3901
  width: -moz-max-content;
3998
3902
  width: max-content;
3999
3903
  z-index: 1010;
@@ -4336,7 +4240,6 @@ samp {
4336
4240
  position: absolute;
4337
4241
  display: flex;
4338
4242
  width: 100%;
4339
- height: -webkit-fit-content;
4340
4243
  height: -moz-fit-content;
4341
4244
  height: fit-content;
4342
4245
  justify-content: center;
@@ -4562,10 +4465,8 @@ samp {
4562
4465
  .arco-slider-thumb-wrapper {
4563
4466
  position: absolute;
4564
4467
  display: flex;
4565
- width: -webkit-fit-content;
4566
4468
  width: -moz-fit-content;
4567
4469
  width: fit-content;
4568
- height: -webkit-fit-content;
4569
4470
  height: -moz-fit-content;
4570
4471
  height: fit-content;
4571
4472
  margin: auto;
@@ -4600,7 +4501,6 @@ samp {
4600
4501
  }
4601
4502
  .arco-slider-popover {
4602
4503
  position: absolute;
4603
- width: -webkit-max-content;
4604
4504
  width: -moz-max-content;
4605
4505
  width: max-content;
4606
4506
  color: #fff ;