@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.
- package/CHANGELOG.md +27 -0
- package/README.en-US.md +2 -2
- package/README.md +2 -2
- package/cjs/_helpers/render.d.ts +3 -1
- package/cjs/_helpers/render.js +10 -3
- package/cjs/action-sheet/index.d.ts +5 -5
- package/cjs/action-sheet/index.js +4 -3
- package/cjs/action-sheet/methods.d.ts +1 -1
- package/cjs/badge/style/css/index.css +1 -2
- package/cjs/checkbox/checkbox.js +4 -0
- package/cjs/circle-progress/index.js +4 -0
- package/cjs/context-provider/index.d.ts +4 -0
- package/cjs/context-provider/index.js +14 -2
- package/cjs/dialog/index.d.ts +8 -8
- package/cjs/dialog/index.js +3 -2
- package/cjs/dialog/methods.d.ts +3 -3
- package/cjs/dialog/style/css/index.css +1 -2
- package/cjs/ellipsis/components/js-ellipsis.d.ts +4 -2
- package/cjs/ellipsis/components/js-ellipsis.js +14 -1
- package/cjs/ellipsis/components/native-ellipsis.d.ts +1 -1
- package/cjs/ellipsis/components/native-ellipsis.js +6 -1
- package/cjs/ellipsis/demo/style/css/mobile.css +1 -1
- package/cjs/ellipsis/demo/style/mobile.less +3 -1
- package/cjs/ellipsis/index.js +6 -2
- package/cjs/ellipsis/style/css/index.css +14 -1
- package/cjs/ellipsis/style/index.less +15 -1
- package/cjs/ellipsis/type.d.ts +22 -76
- package/cjs/image-preview/index.d.ts +3 -3
- package/cjs/image-preview/index.js +3 -2
- package/cjs/image-preview/methods.d.ts +2 -1
- package/cjs/image-preview/methods.js +2 -2
- package/cjs/input/hooks.js +1 -0
- package/cjs/input/index.d.ts +5 -0
- package/cjs/input/index.js +6 -2
- package/cjs/masking/index.d.ts +4 -14
- package/cjs/masking/index.js +3 -2
- package/cjs/masking/methods.d.ts +3 -2
- package/cjs/masking/methods.js +2 -2
- package/cjs/nav-bar/index.d.ts +12 -0
- package/cjs/nav-bar/index.js +8 -2
- package/cjs/notify/index.d.ts +12 -12
- package/cjs/notify/index.js +3 -2
- package/cjs/notify/methods.d.ts +2 -1
- package/cjs/notify/methods.js +2 -2
- package/cjs/picker-view/components/picker-cell.js +3 -1
- package/cjs/popup/index.d.ts +4 -4
- package/cjs/popup/index.js +3 -2
- package/cjs/popup/methods.d.ts +1 -1
- package/cjs/popup-swiper/index.d.ts +12 -6
- package/cjs/popup-swiper/index.js +3 -2
- package/cjs/popup-swiper/methods.d.ts +1 -1
- package/cjs/progress/index.js +4 -0
- package/cjs/rate/index.js +5 -0
- package/cjs/slider/index.js +6 -1
- package/cjs/stepper/index.js +7 -1
- package/cjs/swipe-action/index.d.ts +1 -0
- package/cjs/swipe-action/index.js +10 -0
- package/cjs/switch/index.js +4 -0
- package/cjs/toast/index.d.ts +18 -18
- package/cjs/toast/index.js +3 -2
- package/cjs/toast/methods.d.ts +2 -1
- package/cjs/toast/methods.js +2 -2
- package/dist/index.js +141 -47
- package/dist/index.min.js +3 -3
- package/dist/style.css +26 -114
- package/dist/style.min.css +1 -1
- package/esm/_helpers/render.d.ts +3 -1
- package/esm/_helpers/render.js +10 -3
- package/esm/action-sheet/index.d.ts +5 -5
- package/esm/action-sheet/index.js +4 -3
- package/esm/action-sheet/methods.d.ts +1 -1
- package/esm/badge/style/css/index.css +1 -2
- package/esm/checkbox/checkbox.js +4 -0
- package/esm/circle-progress/index.js +4 -0
- package/esm/context-provider/index.d.ts +4 -0
- package/esm/context-provider/index.js +13 -2
- package/esm/dialog/index.d.ts +8 -8
- package/esm/dialog/index.js +3 -2
- package/esm/dialog/methods.d.ts +3 -3
- package/esm/dialog/style/css/index.css +1 -2
- package/esm/ellipsis/components/js-ellipsis.d.ts +4 -2
- package/esm/ellipsis/components/js-ellipsis.js +14 -1
- package/esm/ellipsis/components/native-ellipsis.d.ts +1 -1
- package/esm/ellipsis/components/native-ellipsis.js +6 -1
- package/esm/ellipsis/demo/style/css/mobile.css +1 -1
- package/esm/ellipsis/demo/style/mobile.less +3 -1
- package/esm/ellipsis/index.js +6 -2
- package/esm/ellipsis/style/css/index.css +14 -1
- package/esm/ellipsis/style/index.less +15 -1
- package/esm/ellipsis/type.d.ts +22 -76
- package/esm/image-preview/index.d.ts +3 -3
- package/esm/image-preview/index.js +3 -2
- package/esm/image-preview/methods.d.ts +2 -1
- package/esm/image-preview/methods.js +2 -2
- package/esm/input/hooks.js +1 -0
- package/esm/input/index.d.ts +5 -0
- package/esm/input/index.js +6 -2
- package/esm/masking/index.d.ts +4 -14
- package/esm/masking/index.js +3 -2
- package/esm/masking/methods.d.ts +3 -2
- package/esm/masking/methods.js +2 -2
- package/esm/nav-bar/index.d.ts +12 -0
- package/esm/nav-bar/index.js +8 -2
- package/esm/notify/index.d.ts +12 -12
- package/esm/notify/index.js +3 -2
- package/esm/notify/methods.d.ts +2 -1
- package/esm/notify/methods.js +2 -2
- package/esm/picker-view/components/picker-cell.js +3 -1
- package/esm/popup/index.d.ts +4 -4
- package/esm/popup/index.js +3 -2
- package/esm/popup/methods.d.ts +1 -1
- package/esm/popup-swiper/index.d.ts +12 -6
- package/esm/popup-swiper/index.js +3 -2
- package/esm/popup-swiper/methods.d.ts +1 -1
- package/esm/progress/index.js +4 -0
- package/esm/rate/index.js +5 -0
- package/esm/slider/index.js +6 -1
- package/esm/stepper/index.js +7 -1
- package/esm/swipe-action/index.d.ts +1 -0
- package/esm/swipe-action/index.js +1 -0
- package/esm/switch/index.js +4 -0
- package/esm/toast/index.d.ts +18 -18
- package/esm/toast/index.js +3 -2
- package/esm/toast/methods.d.ts +2 -1
- package/esm/toast/methods.js +2 -2
- package/package.json +3 -3
- package/style/css/public.css +4 -4
- package/tokens/app/arcodesign/default/css-variables.less +2 -0
- package/tokens/app/arcodesign/default/index.d.ts +2 -0
- package/tokens/app/arcodesign/default/index.js +127 -125
- package/tokens/app/arcodesign/default/index.json +24 -0
- package/tokens/app/arcodesign/default/index.less +2 -0
- package/umd/_helpers/render.d.ts +3 -1
- package/umd/_helpers/render.js +13 -7
- package/umd/action-sheet/index.d.ts +5 -5
- package/umd/action-sheet/index.js +4 -3
- package/umd/action-sheet/methods.d.ts +1 -1
- package/umd/badge/style/css/index.css +1 -2
- package/umd/checkbox/checkbox.js +4 -0
- package/umd/circle-progress/index.js +4 -0
- package/umd/context-provider/index.d.ts +4 -0
- package/umd/context-provider/index.js +13 -1
- package/umd/dialog/index.d.ts +8 -8
- package/umd/dialog/index.js +3 -2
- package/umd/dialog/methods.d.ts +3 -3
- package/umd/dialog/style/css/index.css +1 -2
- package/umd/ellipsis/components/js-ellipsis.d.ts +4 -2
- package/umd/ellipsis/components/js-ellipsis.js +14 -1
- package/umd/ellipsis/components/native-ellipsis.d.ts +1 -1
- package/umd/ellipsis/components/native-ellipsis.js +6 -1
- package/umd/ellipsis/demo/style/css/mobile.css +1 -1
- package/umd/ellipsis/demo/style/mobile.less +3 -1
- package/umd/ellipsis/index.js +6 -2
- package/umd/ellipsis/style/css/index.css +14 -1
- package/umd/ellipsis/style/index.less +15 -1
- package/umd/ellipsis/type.d.ts +22 -76
- package/umd/image-preview/index.d.ts +3 -3
- package/umd/image-preview/index.js +3 -2
- package/umd/image-preview/methods.d.ts +2 -1
- package/umd/image-preview/methods.js +2 -2
- package/umd/input/hooks.js +1 -0
- package/umd/input/index.d.ts +5 -0
- package/umd/input/index.js +6 -2
- package/umd/masking/index.d.ts +4 -14
- package/umd/masking/index.js +3 -2
- package/umd/masking/methods.d.ts +3 -2
- package/umd/masking/methods.js +2 -2
- package/umd/nav-bar/index.d.ts +12 -0
- package/umd/nav-bar/index.js +8 -2
- package/umd/notify/index.d.ts +12 -12
- package/umd/notify/index.js +3 -2
- package/umd/notify/methods.d.ts +2 -1
- package/umd/notify/methods.js +2 -2
- package/umd/picker-view/components/picker-cell.js +3 -1
- package/umd/popup/index.d.ts +4 -4
- package/umd/popup/index.js +3 -2
- package/umd/popup/methods.d.ts +1 -1
- package/umd/popup-swiper/index.d.ts +12 -6
- package/umd/popup-swiper/index.js +3 -2
- package/umd/popup-swiper/methods.d.ts +1 -1
- package/umd/progress/index.js +4 -0
- package/umd/rate/index.js +5 -0
- package/umd/slider/index.js +6 -1
- package/umd/stepper/index.js +7 -1
- package/umd/swipe-action/index.d.ts +1 -0
- package/umd/swipe-action/index.js +11 -4
- package/umd/switch/index.js +4 -0
- package/umd/toast/index.d.ts +18 -18
- package/umd/toast/index.js +3 -2
- package/umd/toast/methods.d.ts +2 -1
- 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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
2176
|
-
animation-name: caterpillarX;
|
2113
|
+
animation-name: caterpillarX;
|
2177
2114
|
}
|
2178
2115
|
.arco-tab-cell-underline-inner.caterpillar:not(.custom-animate).horizontal {
|
2179
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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 ;
|