@arco-design/mobile-react 2.23.0 → 2.24.1

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 (191) hide show
  1. package/CHANGELOG.md +27 -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/ellipsis/components/js-ellipsis.d.ts +4 -2
  19. package/cjs/ellipsis/components/js-ellipsis.js +14 -1
  20. package/cjs/ellipsis/components/native-ellipsis.d.ts +1 -1
  21. package/cjs/ellipsis/components/native-ellipsis.js +6 -1
  22. package/cjs/ellipsis/demo/style/css/mobile.css +1 -1
  23. package/cjs/ellipsis/demo/style/mobile.less +3 -1
  24. package/cjs/ellipsis/index.js +6 -2
  25. package/cjs/ellipsis/style/css/index.css +14 -1
  26. package/cjs/ellipsis/style/index.less +15 -1
  27. package/cjs/ellipsis/type.d.ts +22 -76
  28. package/cjs/image-preview/index.d.ts +3 -3
  29. package/cjs/image-preview/index.js +3 -2
  30. package/cjs/image-preview/methods.d.ts +2 -1
  31. package/cjs/image-preview/methods.js +2 -2
  32. package/cjs/input/hooks.js +1 -0
  33. package/cjs/input/index.d.ts +5 -0
  34. package/cjs/input/index.js +6 -2
  35. package/cjs/masking/index.d.ts +4 -14
  36. package/cjs/masking/index.js +3 -2
  37. package/cjs/masking/methods.d.ts +3 -2
  38. package/cjs/masking/methods.js +2 -2
  39. package/cjs/nav-bar/index.d.ts +12 -0
  40. package/cjs/nav-bar/index.js +8 -2
  41. package/cjs/notify/index.d.ts +12 -12
  42. package/cjs/notify/index.js +3 -2
  43. package/cjs/notify/methods.d.ts +2 -1
  44. package/cjs/notify/methods.js +2 -2
  45. package/cjs/picker-view/components/picker-cell.js +3 -1
  46. package/cjs/popup/index.d.ts +4 -4
  47. package/cjs/popup/index.js +3 -2
  48. package/cjs/popup/methods.d.ts +1 -1
  49. package/cjs/popup-swiper/index.d.ts +12 -6
  50. package/cjs/popup-swiper/index.js +3 -2
  51. package/cjs/popup-swiper/methods.d.ts +1 -1
  52. package/cjs/progress/index.js +4 -0
  53. package/cjs/rate/index.js +5 -0
  54. package/cjs/slider/index.js +6 -1
  55. package/cjs/stepper/index.js +7 -1
  56. package/cjs/swipe-action/index.d.ts +1 -0
  57. package/cjs/swipe-action/index.js +10 -0
  58. package/cjs/switch/index.js +4 -0
  59. package/cjs/toast/index.d.ts +18 -18
  60. package/cjs/toast/index.js +3 -2
  61. package/cjs/toast/methods.d.ts +2 -1
  62. package/cjs/toast/methods.js +2 -2
  63. package/dist/index.js +141 -47
  64. package/dist/index.min.js +3 -3
  65. package/dist/style.css +26 -114
  66. package/dist/style.min.css +1 -1
  67. package/esm/_helpers/render.d.ts +3 -1
  68. package/esm/_helpers/render.js +10 -3
  69. package/esm/action-sheet/index.d.ts +5 -5
  70. package/esm/action-sheet/index.js +4 -3
  71. package/esm/action-sheet/methods.d.ts +1 -1
  72. package/esm/badge/style/css/index.css +1 -2
  73. package/esm/checkbox/checkbox.js +4 -0
  74. package/esm/circle-progress/index.js +4 -0
  75. package/esm/context-provider/index.d.ts +4 -0
  76. package/esm/context-provider/index.js +13 -2
  77. package/esm/dialog/index.d.ts +8 -8
  78. package/esm/dialog/index.js +3 -2
  79. package/esm/dialog/methods.d.ts +3 -3
  80. package/esm/dialog/style/css/index.css +1 -2
  81. package/esm/ellipsis/components/js-ellipsis.d.ts +4 -2
  82. package/esm/ellipsis/components/js-ellipsis.js +14 -1
  83. package/esm/ellipsis/components/native-ellipsis.d.ts +1 -1
  84. package/esm/ellipsis/components/native-ellipsis.js +6 -1
  85. package/esm/ellipsis/demo/style/css/mobile.css +1 -1
  86. package/esm/ellipsis/demo/style/mobile.less +3 -1
  87. package/esm/ellipsis/index.js +6 -2
  88. package/esm/ellipsis/style/css/index.css +14 -1
  89. package/esm/ellipsis/style/index.less +15 -1
  90. package/esm/ellipsis/type.d.ts +22 -76
  91. package/esm/image-preview/index.d.ts +3 -3
  92. package/esm/image-preview/index.js +3 -2
  93. package/esm/image-preview/methods.d.ts +2 -1
  94. package/esm/image-preview/methods.js +2 -2
  95. package/esm/input/hooks.js +1 -0
  96. package/esm/input/index.d.ts +5 -0
  97. package/esm/input/index.js +6 -2
  98. package/esm/masking/index.d.ts +4 -14
  99. package/esm/masking/index.js +3 -2
  100. package/esm/masking/methods.d.ts +3 -2
  101. package/esm/masking/methods.js +2 -2
  102. package/esm/nav-bar/index.d.ts +12 -0
  103. package/esm/nav-bar/index.js +8 -2
  104. package/esm/notify/index.d.ts +12 -12
  105. package/esm/notify/index.js +3 -2
  106. package/esm/notify/methods.d.ts +2 -1
  107. package/esm/notify/methods.js +2 -2
  108. package/esm/picker-view/components/picker-cell.js +3 -1
  109. package/esm/popup/index.d.ts +4 -4
  110. package/esm/popup/index.js +3 -2
  111. package/esm/popup/methods.d.ts +1 -1
  112. package/esm/popup-swiper/index.d.ts +12 -6
  113. package/esm/popup-swiper/index.js +3 -2
  114. package/esm/popup-swiper/methods.d.ts +1 -1
  115. package/esm/progress/index.js +4 -0
  116. package/esm/rate/index.js +5 -0
  117. package/esm/slider/index.js +6 -1
  118. package/esm/stepper/index.js +7 -1
  119. package/esm/swipe-action/index.d.ts +1 -0
  120. package/esm/swipe-action/index.js +1 -0
  121. package/esm/switch/index.js +4 -0
  122. package/esm/toast/index.d.ts +18 -18
  123. package/esm/toast/index.js +3 -2
  124. package/esm/toast/methods.d.ts +2 -1
  125. package/esm/toast/methods.js +2 -2
  126. package/package.json +3 -3
  127. package/style/css/public.css +4 -4
  128. package/tokens/app/arcodesign/default/css-variables.less +2 -0
  129. package/tokens/app/arcodesign/default/index.d.ts +2 -0
  130. package/tokens/app/arcodesign/default/index.js +127 -125
  131. package/tokens/app/arcodesign/default/index.json +24 -0
  132. package/tokens/app/arcodesign/default/index.less +2 -0
  133. package/umd/_helpers/render.d.ts +3 -1
  134. package/umd/_helpers/render.js +13 -7
  135. package/umd/action-sheet/index.d.ts +5 -5
  136. package/umd/action-sheet/index.js +4 -3
  137. package/umd/action-sheet/methods.d.ts +1 -1
  138. package/umd/badge/style/css/index.css +1 -2
  139. package/umd/checkbox/checkbox.js +4 -0
  140. package/umd/circle-progress/index.js +4 -0
  141. package/umd/context-provider/index.d.ts +4 -0
  142. package/umd/context-provider/index.js +13 -1
  143. package/umd/dialog/index.d.ts +8 -8
  144. package/umd/dialog/index.js +3 -2
  145. package/umd/dialog/methods.d.ts +3 -3
  146. package/umd/dialog/style/css/index.css +1 -2
  147. package/umd/ellipsis/components/js-ellipsis.d.ts +4 -2
  148. package/umd/ellipsis/components/js-ellipsis.js +14 -1
  149. package/umd/ellipsis/components/native-ellipsis.d.ts +1 -1
  150. package/umd/ellipsis/components/native-ellipsis.js +6 -1
  151. package/umd/ellipsis/demo/style/css/mobile.css +1 -1
  152. package/umd/ellipsis/demo/style/mobile.less +3 -1
  153. package/umd/ellipsis/index.js +6 -2
  154. package/umd/ellipsis/style/css/index.css +14 -1
  155. package/umd/ellipsis/style/index.less +15 -1
  156. package/umd/ellipsis/type.d.ts +22 -76
  157. package/umd/image-preview/index.d.ts +3 -3
  158. package/umd/image-preview/index.js +3 -2
  159. package/umd/image-preview/methods.d.ts +2 -1
  160. package/umd/image-preview/methods.js +2 -2
  161. package/umd/input/hooks.js +1 -0
  162. package/umd/input/index.d.ts +5 -0
  163. package/umd/input/index.js +6 -2
  164. package/umd/masking/index.d.ts +4 -14
  165. package/umd/masking/index.js +3 -2
  166. package/umd/masking/methods.d.ts +3 -2
  167. package/umd/masking/methods.js +2 -2
  168. package/umd/nav-bar/index.d.ts +12 -0
  169. package/umd/nav-bar/index.js +8 -2
  170. package/umd/notify/index.d.ts +12 -12
  171. package/umd/notify/index.js +3 -2
  172. package/umd/notify/methods.d.ts +2 -1
  173. package/umd/notify/methods.js +2 -2
  174. package/umd/picker-view/components/picker-cell.js +3 -1
  175. package/umd/popup/index.d.ts +4 -4
  176. package/umd/popup/index.js +3 -2
  177. package/umd/popup/methods.d.ts +1 -1
  178. package/umd/popup-swiper/index.d.ts +12 -6
  179. package/umd/popup-swiper/index.js +3 -2
  180. package/umd/popup-swiper/methods.d.ts +1 -1
  181. package/umd/progress/index.js +4 -0
  182. package/umd/rate/index.js +5 -0
  183. package/umd/slider/index.js +6 -1
  184. package/umd/stepper/index.js +7 -1
  185. package/umd/swipe-action/index.d.ts +1 -0
  186. package/umd/swipe-action/index.js +11 -4
  187. package/umd/switch/index.js +4 -0
  188. package/umd/toast/index.d.ts +18 -18
  189. package/umd/toast/index.js +3 -2
  190. package/umd/toast/methods.d.ts +2 -1
  191. 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 {
@@ -3025,12 +2939,24 @@ samp {
3025
2939
  .arco-ellipsis {
3026
2940
  font-size: 0.32rem ;
3027
2941
  }
3028
- .arco-ellipsis-native.ellipsis {
2942
+ .arco-ellipsis-native.ellipsis,
2943
+ .arco-ellipsis-js-content-initial {
3029
2944
  display: -webkit-box;
3030
2945
  overflow: hidden;
3031
2946
  text-overflow: ellipsis;
3032
2947
  word-break: break-word;
3033
2948
  -webkit-box-orient: vertical;
2949
+ position: relative;
2950
+ }
2951
+ .arco-ellipsis-native-ellipsis-node {
2952
+ position: absolute;
2953
+ right: 0;
2954
+ bottom: 0;
2955
+ background: linear-gradient(90deg, rgba(255, 255, 255, 0), #ffffff 20PX, #ffffff) ;
2956
+ padding-left: 20PX ;
2957
+ }
2958
+ .arco-ellipsis-js-content-ellipsis {
2959
+ display: none;
3034
2960
  }
3035
2961
 
3036
2962
  .arco-grid {
@@ -3677,8 +3603,7 @@ samp {
3677
3603
  line-height: 0.72rem ;
3678
3604
  }
3679
3605
  .arco-notice-bar-content-inner.animate {
3680
- -webkit-animation: marquee linear both;
3681
- animation: marquee linear both;
3606
+ animation: marquee linear both;
3682
3607
  }
3683
3608
  .arco-notice-bar-content .arco-carousel {
3684
3609
  height: 0.72rem ;
@@ -3711,14 +3636,6 @@ samp {
3711
3636
  right: -2PX;
3712
3637
  transform: rotate(180deg);
3713
3638
  }
3714
- @-webkit-keyframes marquee {
3715
- 0% {
3716
- transform: translate3d(0, 0, 0);
3717
- }
3718
- 100% {
3719
- transform: translate3d(-100%, 0, 0);
3720
- }
3721
- }
3722
3639
  @keyframes marquee {
3723
3640
  0% {
3724
3641
  transform: translate3d(0, 0, 0);
@@ -3993,7 +3910,6 @@ samp {
3993
3910
  .arco-popover-inner {
3994
3911
  box-sizing: border-box;
3995
3912
  position: absolute;
3996
- width: -webkit-max-content;
3997
3913
  width: -moz-max-content;
3998
3914
  width: max-content;
3999
3915
  z-index: 1010;
@@ -4336,7 +4252,6 @@ samp {
4336
4252
  position: absolute;
4337
4253
  display: flex;
4338
4254
  width: 100%;
4339
- height: -webkit-fit-content;
4340
4255
  height: -moz-fit-content;
4341
4256
  height: fit-content;
4342
4257
  justify-content: center;
@@ -4562,10 +4477,8 @@ samp {
4562
4477
  .arco-slider-thumb-wrapper {
4563
4478
  position: absolute;
4564
4479
  display: flex;
4565
- width: -webkit-fit-content;
4566
4480
  width: -moz-fit-content;
4567
4481
  width: fit-content;
4568
- height: -webkit-fit-content;
4569
4482
  height: -moz-fit-content;
4570
4483
  height: fit-content;
4571
4484
  margin: auto;
@@ -4600,7 +4513,6 @@ samp {
4600
4513
  }
4601
4514
  .arco-slider-popover {
4602
4515
  position: absolute;
4603
- width: -webkit-max-content;
4604
4516
  width: -moz-max-content;
4605
4517
  width: max-content;
4606
4518
  color: #fff ;