@arco-design/mobile-react 2.20.0 → 2.21.2
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 +54 -0
- package/README.en-US.md +2 -2
- package/README.md +2 -2
- package/cjs/avatar/index.d.ts +1 -1
- package/cjs/avatar/index.js +1 -1
- package/cjs/badge/index.d.ts +1 -1
- package/cjs/badge/index.js +1 -1
- package/cjs/button/style/css/index.css +64 -64
- package/cjs/button/style/index.less +7 -5
- package/cjs/carousel/index.d.ts +1 -1
- package/cjs/carousel/index.js +1 -1
- package/cjs/cell/index.d.ts +1 -1
- package/cjs/cell/index.js +1 -1
- package/cjs/checkbox/index.d.ts +1 -1
- package/cjs/checkbox/index.js +1 -1
- package/cjs/collapse/index.d.ts +1 -1
- package/cjs/collapse/index.js +1 -1
- package/cjs/count-down/index.d.ts +1 -1
- package/cjs/count-down/index.js +1 -1
- package/cjs/date-picker/index.d.ts +1 -1
- package/cjs/date-picker/index.js +1 -1
- package/cjs/dropdown/dropdown.js +36 -20
- package/cjs/dropdown/style/css/index.css +3 -0
- package/cjs/dropdown/style/index.less +2 -0
- package/cjs/ellipsis/components/js-ellipsis.js +2 -3
- package/cjs/ellipsis/index.d.ts +1 -1
- package/cjs/ellipsis/index.js +3 -4
- package/cjs/image/index.d.ts +1 -1
- package/cjs/image/index.js +1 -1
- package/cjs/image-picker/index.d.ts +4 -175
- package/cjs/image-picker/index.js +41 -18
- package/cjs/image-picker/type.d.ts +174 -0
- package/cjs/image-picker/type.js +3 -0
- package/cjs/image-preview/index.d.ts +1 -1
- package/cjs/image-preview/index.js +1 -1
- package/cjs/index.d.ts +2 -0
- package/cjs/index.js +9 -1
- package/cjs/input/hooks.js +49 -8
- package/cjs/input/index.d.ts +1 -1
- package/cjs/input/index.js +1 -1
- package/cjs/input/props.d.ts +8 -2
- package/cjs/notice-bar/index.d.ts +1 -1
- package/cjs/notice-bar/index.js +1 -1
- package/cjs/picker/index.d.ts +1 -1
- package/cjs/picker/index.js +1 -1
- package/cjs/picker-view/index.d.ts +1 -1
- package/cjs/picker-view/index.js +1 -1
- package/cjs/popover/index.d.ts +1 -1
- package/cjs/popover/index.js +1 -1
- package/cjs/popup-swiper/index.js +3 -2
- package/cjs/radio/index.d.ts +1 -1
- package/cjs/radio/index.js +1 -1
- package/cjs/rate/index.d.ts +1 -1
- package/cjs/rate/index.js +1 -1
- package/cjs/search-bar/association.d.ts +3 -0
- package/cjs/search-bar/association.js +92 -0
- package/cjs/search-bar/cancel-button.d.ts +10 -0
- package/cjs/search-bar/cancel-button.js +41 -0
- package/cjs/search-bar/demo/style/css/mobile.css +5 -0
- package/cjs/search-bar/demo/style/mobile.less +9 -0
- package/cjs/search-bar/highlight.d.ts +12 -0
- package/cjs/search-bar/highlight.js +77 -0
- package/cjs/search-bar/index.d.ts +13 -0
- package/cjs/search-bar/index.js +231 -0
- package/cjs/search-bar/style/css/index.css +148 -0
- package/cjs/search-bar/style/css/index.d.ts +2 -0
- package/cjs/search-bar/style/css/index.js +5 -0
- package/cjs/search-bar/style/index.d.ts +2 -0
- package/cjs/search-bar/style/index.js +5 -0
- package/cjs/search-bar/style/index.less +111 -0
- package/cjs/search-bar/type.d.ts +163 -0
- package/cjs/search-bar/type.js +3 -0
- package/cjs/slider/index.d.ts +1 -1
- package/cjs/slider/index.js +1 -1
- package/cjs/steps/index.d.ts +1 -1
- package/cjs/steps/index.js +1 -1
- package/cjs/sticky/index.d.ts +1 -1
- package/cjs/style.d.ts +2 -0
- package/cjs/style.js +4 -0
- package/cjs/swipe-action/demo/style/css/mobile.css +5 -0
- package/cjs/swipe-action/demo/style/mobile.less +9 -0
- package/cjs/swipe-action/index.d.ts +12 -0
- package/cjs/swipe-action/index.js +337 -0
- package/cjs/swipe-action/item.d.ts +11 -0
- package/cjs/swipe-action/item.js +52 -0
- package/cjs/swipe-action/style/css/index.css +88 -0
- package/cjs/swipe-action/style/css/index.d.ts +2 -0
- package/cjs/swipe-action/style/css/index.js +5 -0
- package/cjs/swipe-action/style/index.d.ts +2 -0
- package/cjs/swipe-action/style/index.js +5 -0
- package/cjs/swipe-action/style/index.less +89 -0
- package/cjs/swipe-action/type.d.ts +123 -0
- package/cjs/swipe-action/type.js +3 -0
- package/cjs/switch/index.d.ts +1 -1
- package/cjs/switch/index.js +1 -1
- package/cjs/tabs/tab-pane.js +5 -1
- package/cjs/tag/index.d.ts +1 -1
- package/cjs/tag/index.js +1 -1
- package/cjs/textarea/index.d.ts +1 -1
- package/cjs/textarea/index.js +1 -1
- package/dist/index.js +7394 -6570
- package/dist/index.min.js +6 -6
- package/dist/style.css +267 -64
- package/dist/style.min.css +1 -1
- package/esm/avatar/index.d.ts +1 -1
- package/esm/avatar/index.js +1 -1
- package/esm/badge/index.d.ts +1 -1
- package/esm/badge/index.js +1 -1
- package/esm/button/style/css/index.css +64 -64
- package/esm/button/style/index.less +7 -5
- package/esm/carousel/index.d.ts +1 -1
- package/esm/carousel/index.js +1 -1
- package/esm/cell/index.d.ts +1 -1
- package/esm/cell/index.js +1 -1
- package/esm/checkbox/index.d.ts +1 -1
- package/esm/checkbox/index.js +1 -1
- package/esm/collapse/index.d.ts +1 -1
- package/esm/collapse/index.js +1 -1
- package/esm/count-down/index.d.ts +1 -1
- package/esm/count-down/index.js +1 -1
- package/esm/date-picker/index.d.ts +1 -1
- package/esm/date-picker/index.js +1 -1
- package/esm/dropdown/dropdown.js +36 -20
- package/esm/dropdown/style/css/index.css +3 -0
- package/esm/dropdown/style/index.less +2 -0
- package/esm/ellipsis/components/js-ellipsis.js +2 -3
- package/esm/ellipsis/index.d.ts +1 -1
- package/esm/ellipsis/index.js +3 -4
- package/esm/image/index.d.ts +1 -1
- package/esm/image/index.js +1 -1
- package/esm/image-picker/index.d.ts +4 -175
- package/esm/image-picker/index.js +30 -17
- package/esm/image-picker/type.d.ts +174 -0
- package/esm/image-picker/type.js +1 -0
- package/esm/image-preview/index.d.ts +1 -1
- package/esm/image-preview/index.js +1 -1
- package/esm/index.d.ts +2 -0
- package/esm/index.js +2 -0
- package/esm/input/hooks.js +49 -8
- package/esm/input/index.d.ts +1 -1
- package/esm/input/index.js +1 -1
- package/esm/input/props.d.ts +8 -2
- package/esm/notice-bar/index.d.ts +1 -1
- package/esm/notice-bar/index.js +1 -1
- package/esm/picker/index.d.ts +1 -1
- package/esm/picker/index.js +1 -1
- package/esm/picker-view/index.d.ts +1 -1
- package/esm/picker-view/index.js +1 -1
- package/esm/popover/index.d.ts +1 -1
- package/esm/popover/index.js +1 -1
- package/esm/popup-swiper/index.js +3 -2
- package/esm/radio/index.d.ts +1 -1
- package/esm/radio/index.js +1 -1
- package/esm/rate/index.d.ts +1 -1
- package/esm/rate/index.js +1 -1
- package/esm/search-bar/association.d.ts +3 -0
- package/esm/search-bar/association.js +82 -0
- package/esm/search-bar/cancel-button.d.ts +10 -0
- package/esm/search-bar/cancel-button.js +30 -0
- package/esm/search-bar/demo/style/css/mobile.css +5 -0
- package/esm/search-bar/demo/style/mobile.less +9 -0
- package/esm/search-bar/highlight.d.ts +12 -0
- package/esm/search-bar/highlight.js +66 -0
- package/esm/search-bar/index.d.ts +13 -0
- package/esm/search-bar/index.js +212 -0
- package/esm/search-bar/style/css/index.css +148 -0
- package/esm/search-bar/style/css/index.d.ts +2 -0
- package/esm/search-bar/style/css/index.js +2 -0
- package/esm/search-bar/style/index.d.ts +2 -0
- package/esm/search-bar/style/index.js +2 -0
- package/esm/search-bar/style/index.less +111 -0
- package/esm/search-bar/type.d.ts +163 -0
- package/esm/search-bar/type.js +1 -0
- package/esm/slider/index.d.ts +1 -1
- package/esm/slider/index.js +1 -1
- package/esm/steps/index.d.ts +1 -1
- package/esm/steps/index.js +1 -1
- package/esm/sticky/index.d.ts +1 -1
- package/esm/style.d.ts +2 -0
- package/esm/style.js +2 -0
- package/esm/swipe-action/demo/style/css/mobile.css +5 -0
- package/esm/swipe-action/demo/style/mobile.less +9 -0
- package/esm/swipe-action/index.d.ts +12 -0
- package/esm/swipe-action/index.js +320 -0
- package/esm/swipe-action/item.d.ts +11 -0
- package/esm/swipe-action/item.js +42 -0
- package/esm/swipe-action/style/css/index.css +88 -0
- package/esm/swipe-action/style/css/index.d.ts +2 -0
- package/esm/swipe-action/style/css/index.js +2 -0
- package/esm/swipe-action/style/index.d.ts +2 -0
- package/esm/swipe-action/style/index.js +2 -0
- package/esm/swipe-action/style/index.less +89 -0
- package/esm/swipe-action/type.d.ts +123 -0
- package/esm/swipe-action/type.js +1 -0
- package/esm/switch/index.d.ts +1 -1
- package/esm/switch/index.js +1 -1
- package/esm/tabs/tab-pane.js +5 -1
- package/esm/tag/index.d.ts +1 -1
- package/esm/tag/index.js +1 -1
- package/esm/textarea/index.d.ts +1 -1
- package/esm/textarea/index.js +1 -1
- package/package.json +3 -3
- package/tokens/app/arcodesign/default/css-variables.less +34 -0
- package/tokens/app/arcodesign/default/index.d.ts +34 -0
- package/tokens/app/arcodesign/default/index.js +34 -0
- package/tokens/app/arcodesign/default/index.json +398 -0
- package/tokens/app/arcodesign/default/index.less +34 -0
- package/umd/avatar/index.d.ts +1 -1
- package/umd/avatar/index.js +1 -1
- package/umd/badge/index.d.ts +1 -1
- package/umd/badge/index.js +1 -1
- package/umd/button/style/css/index.css +64 -64
- package/umd/button/style/index.less +7 -5
- package/umd/carousel/index.d.ts +1 -1
- package/umd/carousel/index.js +1 -1
- package/umd/cell/index.d.ts +1 -1
- package/umd/cell/index.js +1 -1
- package/umd/checkbox/index.d.ts +1 -1
- package/umd/checkbox/index.js +1 -1
- package/umd/collapse/index.d.ts +1 -1
- package/umd/collapse/index.js +1 -1
- package/umd/count-down/index.d.ts +1 -1
- package/umd/count-down/index.js +1 -1
- package/umd/date-picker/index.d.ts +1 -1
- package/umd/date-picker/index.js +1 -1
- package/umd/dropdown/dropdown.js +36 -20
- package/umd/dropdown/style/css/index.css +3 -0
- package/umd/dropdown/style/index.less +2 -0
- package/umd/ellipsis/components/js-ellipsis.js +2 -3
- package/umd/ellipsis/index.d.ts +1 -1
- package/umd/ellipsis/index.js +3 -4
- package/umd/image/index.d.ts +1 -1
- package/umd/image/index.js +1 -1
- package/umd/image-picker/index.d.ts +4 -175
- package/umd/image-picker/index.js +40 -22
- package/umd/image-picker/type.d.ts +174 -0
- package/umd/image-picker/type.js +17 -0
- package/umd/image-preview/index.d.ts +1 -1
- package/umd/image-preview/index.js +1 -1
- package/umd/index.d.ts +2 -0
- package/umd/index.js +9 -5
- package/umd/input/hooks.js +48 -7
- package/umd/input/index.d.ts +1 -1
- package/umd/input/index.js +1 -1
- package/umd/input/props.d.ts +8 -2
- package/umd/notice-bar/index.d.ts +1 -1
- package/umd/notice-bar/index.js +1 -1
- package/umd/picker/index.d.ts +1 -1
- package/umd/picker/index.js +1 -1
- package/umd/picker-view/index.d.ts +1 -1
- package/umd/picker-view/index.js +1 -1
- package/umd/popover/index.d.ts +1 -1
- package/umd/popover/index.js +1 -1
- package/umd/popup-swiper/index.js +3 -2
- package/umd/radio/index.d.ts +1 -1
- package/umd/radio/index.js +1 -1
- package/umd/rate/index.d.ts +1 -1
- package/umd/rate/index.js +1 -1
- package/umd/search-bar/association.d.ts +3 -0
- package/umd/search-bar/association.js +101 -0
- package/umd/search-bar/cancel-button.d.ts +10 -0
- package/umd/search-bar/cancel-button.js +52 -0
- package/umd/search-bar/demo/style/css/mobile.css +5 -0
- package/umd/search-bar/demo/style/mobile.less +9 -0
- package/umd/search-bar/highlight.d.ts +12 -0
- package/umd/search-bar/highlight.js +87 -0
- package/umd/search-bar/index.d.ts +13 -0
- package/umd/search-bar/index.js +229 -0
- package/umd/search-bar/style/css/index.css +148 -0
- package/umd/search-bar/style/css/index.d.ts +2 -0
- package/umd/search-bar/style/css/index.js +15 -0
- package/umd/search-bar/style/index.d.ts +2 -0
- package/umd/search-bar/style/index.js +15 -0
- package/umd/search-bar/style/index.less +111 -0
- package/umd/search-bar/type.d.ts +163 -0
- package/umd/search-bar/type.js +17 -0
- package/umd/slider/index.d.ts +1 -1
- package/umd/slider/index.js +1 -1
- package/umd/steps/index.d.ts +1 -1
- package/umd/steps/index.js +1 -1
- package/umd/sticky/index.d.ts +1 -1
- package/umd/style.d.ts +2 -0
- package/umd/style.js +4 -4
- package/umd/swipe-action/demo/style/css/mobile.css +5 -0
- package/umd/swipe-action/demo/style/mobile.less +9 -0
- package/umd/swipe-action/index.d.ts +12 -0
- package/umd/swipe-action/index.js +342 -0
- package/umd/swipe-action/item.d.ts +11 -0
- package/umd/swipe-action/item.js +62 -0
- package/umd/swipe-action/style/css/index.css +88 -0
- package/umd/swipe-action/style/css/index.d.ts +2 -0
- package/umd/swipe-action/style/css/index.js +15 -0
- package/umd/swipe-action/style/index.d.ts +2 -0
- package/umd/swipe-action/style/index.js +15 -0
- package/umd/swipe-action/style/index.less +89 -0
- package/umd/swipe-action/type.d.ts +123 -0
- package/umd/swipe-action/type.js +17 -0
- package/umd/switch/index.d.ts +1 -1
- package/umd/switch/index.js +1 -1
- package/umd/tabs/tab-pane.js +5 -1
- package/umd/tag/index.d.ts +1 -1
- package/umd/tag/index.js +1 -1
- package/umd/textarea/index.d.ts +1 -1
- package/umd/textarea/index.js +1 -1
@@ -18,14 +18,21 @@
|
|
18
18
|
user-select: none;
|
19
19
|
/* Non-prefixed version, currently*/
|
20
20
|
}
|
21
|
-
.arco-button-inline {
|
21
|
+
.arco-button.arco-button-inline {
|
22
22
|
width: auto;
|
23
23
|
display: inline-block;
|
24
24
|
}
|
25
|
-
.arco-button-type-ghost {
|
25
|
+
.arco-button.arco-button-type-ghost {
|
26
26
|
background: transparent ;
|
27
27
|
color: #165dff ;
|
28
28
|
}
|
29
|
+
.arco-button.arco-button-type-ghost-disabled {
|
30
|
+
background: transparent ;
|
31
|
+
color: #94bfff ;
|
32
|
+
}
|
33
|
+
.arco-button.arco-button-type-ghost-active {
|
34
|
+
background: #e8f3ff ;
|
35
|
+
}
|
29
36
|
.arco-button-type-ghost .bg-color-with-config {
|
30
37
|
background: #165dff;
|
31
38
|
}
|
@@ -38,17 +45,17 @@
|
|
38
45
|
.arco-button-type-ghost .stroke-color-with-config {
|
39
46
|
stroke: #165dff;
|
40
47
|
}
|
41
|
-
.arco-button-type-
|
42
|
-
background: transparent ;
|
43
|
-
color: #94bfff ;
|
44
|
-
}
|
45
|
-
.arco-button-type-ghost-active {
|
46
|
-
background: #e8f3ff ;
|
47
|
-
}
|
48
|
-
.arco-button-type-default {
|
48
|
+
.arco-button.arco-button-type-default {
|
49
49
|
background: #E8F3FF ;
|
50
50
|
color: #165dff ;
|
51
51
|
}
|
52
|
+
.arco-button.arco-button-type-default-disabled {
|
53
|
+
background: #E8F3FF ;
|
54
|
+
color: #94bfff ;
|
55
|
+
}
|
56
|
+
.arco-button.arco-button-type-default-active {
|
57
|
+
background: #94bfff ;
|
58
|
+
}
|
52
59
|
.arco-button-type-default .bg-color-with-config {
|
53
60
|
background: #165dff;
|
54
61
|
}
|
@@ -61,16 +68,16 @@
|
|
61
68
|
.arco-button-type-default .stroke-color-with-config {
|
62
69
|
stroke: #165dff;
|
63
70
|
}
|
64
|
-
.arco-button-type-
|
65
|
-
background: #
|
66
|
-
color: #
|
71
|
+
.arco-button.arco-button-type-primary {
|
72
|
+
background: #165dff ;
|
73
|
+
color: #fff ;
|
67
74
|
}
|
68
|
-
.arco-button-type-
|
75
|
+
.arco-button.arco-button-type-primary-disabled {
|
69
76
|
background: #94bfff ;
|
77
|
+
color: #E8F3FF ;
|
70
78
|
}
|
71
|
-
.arco-button-type-primary {
|
72
|
-
background: #
|
73
|
-
color: #fff ;
|
79
|
+
.arco-button.arco-button-type-primary-active {
|
80
|
+
background: #0E42D2 ;
|
74
81
|
}
|
75
82
|
.arco-button-type-primary .bg-color-with-config {
|
76
83
|
background: #fff;
|
@@ -84,108 +91,101 @@
|
|
84
91
|
.arco-button-type-primary .stroke-color-with-config {
|
85
92
|
stroke: #fff;
|
86
93
|
}
|
87
|
-
.arco-button-type-
|
88
|
-
background: #94bfff ;
|
89
|
-
color: #E8F3FF ;
|
90
|
-
}
|
91
|
-
.arco-button-type-primary-active {
|
92
|
-
background: #0E42D2 ;
|
93
|
-
}
|
94
|
-
.arco-button-type-ghost {
|
94
|
+
.arco-button.arco-button-type-ghost {
|
95
95
|
border: 1PX solid currentColor;
|
96
96
|
}
|
97
|
-
.arco-button-type-ghost.half-border {
|
97
|
+
.arco-button.arco-button-type-ghost.half-border {
|
98
98
|
border-width: 0;
|
99
99
|
box-shadow: 0 0 0 1PX currentColor inset;
|
100
100
|
}
|
101
101
|
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
|
102
|
-
.arco-button-type-ghost.half-border {
|
102
|
+
.arco-button.arco-button-type-ghost.half-border {
|
103
103
|
box-shadow: 0 0 0 0.5PX currentColor inset;
|
104
104
|
}
|
105
105
|
}
|
106
|
-
.ios .arco-button-type-ghost.half-border,
|
107
|
-
.arco-button-type-ghost.half-border.ios {
|
106
|
+
.ios .arco-button.arco-button-type-ghost.half-border,
|
107
|
+
.arco-button.arco-button-type-ghost.half-border.ios {
|
108
108
|
box-shadow: none;
|
109
109
|
border: 0.5PX solid currentColor;
|
110
110
|
}
|
111
|
-
.arco-button-size-mini {
|
111
|
+
.arco-button.arco-button-size-mini {
|
112
112
|
padding: 0 0.16rem ;
|
113
113
|
height: 0.48rem ;
|
114
114
|
}
|
115
|
-
.arco-button-size-mini-is-round {
|
115
|
+
.arco-button.arco-button-size-mini-is-round {
|
116
116
|
border-radius: 0.48rem ;
|
117
117
|
}
|
118
|
-
.arco-button-size-mini-is-square {
|
118
|
+
.arco-button.arco-button-size-mini-is-square {
|
119
119
|
border-radius: 0;
|
120
120
|
}
|
121
|
-
.arco-button-size-mini .arco-button-icon,
|
122
|
-
.arco-button-size-mini i,
|
123
|
-
.arco-button-size-mini .arco-button-text,
|
124
|
-
.arco-button-size-mini svg {
|
121
|
+
.arco-button.arco-button-size-mini .arco-button-icon,
|
122
|
+
.arco-button.arco-button-size-mini i,
|
123
|
+
.arco-button.arco-button-size-mini .arco-button-text,
|
124
|
+
.arco-button.arco-button-size-mini svg {
|
125
125
|
font-size: 0.24rem ;
|
126
126
|
}
|
127
|
-
.arco-button-size-small {
|
127
|
+
.arco-button.arco-button-size-small {
|
128
128
|
padding: 0 0.16rem ;
|
129
129
|
height: 0.56rem ;
|
130
130
|
}
|
131
|
-
.arco-button-size-small-is-round {
|
131
|
+
.arco-button.arco-button-size-small-is-round {
|
132
132
|
border-radius: 0.56rem ;
|
133
133
|
}
|
134
|
-
.arco-button-size-small-is-square {
|
134
|
+
.arco-button.arco-button-size-small-is-square {
|
135
135
|
border-radius: 0;
|
136
136
|
}
|
137
|
-
.arco-button-size-small .arco-button-icon,
|
138
|
-
.arco-button-size-small i,
|
139
|
-
.arco-button-size-small .arco-button-text,
|
140
|
-
.arco-button-size-small svg {
|
137
|
+
.arco-button.arco-button-size-small .arco-button-icon,
|
138
|
+
.arco-button.arco-button-size-small i,
|
139
|
+
.arco-button.arco-button-size-small .arco-button-text,
|
140
|
+
.arco-button.arco-button-size-small svg {
|
141
141
|
font-size: 0.28rem ;
|
142
142
|
}
|
143
|
-
.arco-button-size-medium {
|
143
|
+
.arco-button.arco-button-size-medium {
|
144
144
|
padding: 0 0.32rem ;
|
145
145
|
height: 0.64rem ;
|
146
146
|
}
|
147
|
-
.arco-button-size-medium-is-round {
|
147
|
+
.arco-button.arco-button-size-medium-is-round {
|
148
148
|
border-radius: 0.64rem ;
|
149
149
|
}
|
150
|
-
.arco-button-size-medium-is-square {
|
150
|
+
.arco-button.arco-button-size-medium-is-square {
|
151
151
|
border-radius: 0;
|
152
152
|
}
|
153
|
-
.arco-button-size-medium .arco-button-icon,
|
154
|
-
.arco-button-size-medium i,
|
155
|
-
.arco-button-size-medium .arco-button-text,
|
156
|
-
.arco-button-size-medium svg {
|
153
|
+
.arco-button.arco-button-size-medium .arco-button-icon,
|
154
|
+
.arco-button.arco-button-size-medium i,
|
155
|
+
.arco-button.arco-button-size-medium .arco-button-text,
|
156
|
+
.arco-button.arco-button-size-medium svg {
|
157
157
|
font-size: 0.28rem ;
|
158
158
|
}
|
159
|
-
.arco-button-size-large {
|
159
|
+
.arco-button.arco-button-size-large {
|
160
160
|
padding: 0 0.32rem ;
|
161
161
|
height: 0.72rem ;
|
162
162
|
}
|
163
|
-
.arco-button-size-large-is-round {
|
163
|
+
.arco-button.arco-button-size-large-is-round {
|
164
164
|
border-radius: 0.72rem ;
|
165
165
|
}
|
166
|
-
.arco-button-size-large-is-square {
|
166
|
+
.arco-button.arco-button-size-large-is-square {
|
167
167
|
border-radius: 0;
|
168
168
|
}
|
169
|
-
.arco-button-size-large .arco-button-icon,
|
170
|
-
.arco-button-size-large i,
|
171
|
-
.arco-button-size-large .arco-button-text,
|
172
|
-
.arco-button-size-large svg {
|
169
|
+
.arco-button.arco-button-size-large .arco-button-icon,
|
170
|
+
.arco-button.arco-button-size-large i,
|
171
|
+
.arco-button.arco-button-size-large .arco-button-text,
|
172
|
+
.arco-button.arco-button-size-large svg {
|
173
173
|
font-size: 0.3rem ;
|
174
174
|
}
|
175
|
-
.arco-button-size-huge {
|
175
|
+
.arco-button.arco-button-size-huge {
|
176
176
|
padding: 0 0.32rem ;
|
177
177
|
height: 0.88rem ;
|
178
178
|
}
|
179
|
-
.arco-button-size-huge-is-round {
|
179
|
+
.arco-button.arco-button-size-huge-is-round {
|
180
180
|
border-radius: 0.88rem ;
|
181
181
|
}
|
182
|
-
.arco-button-size-huge-is-square {
|
182
|
+
.arco-button.arco-button-size-huge-is-square {
|
183
183
|
border-radius: 0;
|
184
184
|
}
|
185
|
-
.arco-button-size-huge .arco-button-icon,
|
186
|
-
.arco-button-size-huge i,
|
187
|
-
.arco-button-size-huge .arco-button-text,
|
188
|
-
.arco-button-size-huge svg {
|
185
|
+
.arco-button.arco-button-size-huge .arco-button-icon,
|
186
|
+
.arco-button.arco-button-size-huge i,
|
187
|
+
.arco-button.arco-button-size-huge .arco-button-text,
|
188
|
+
.arco-button.arco-button-size-huge svg {
|
189
189
|
font-size: 0.32rem ;
|
190
190
|
}
|
191
191
|
.arco-button-text-android {
|
@@ -56,14 +56,14 @@
|
|
56
56
|
.use-var(border-radius, button-radius);
|
57
57
|
.noselect();
|
58
58
|
|
59
|
-
|
59
|
+
&&-inline {
|
60
60
|
width: auto;
|
61
61
|
display: inline-block;
|
62
62
|
}
|
63
63
|
|
64
64
|
.set-button-type(length(@type-map));
|
65
65
|
|
66
|
-
|
66
|
+
&&-type-ghost {
|
67
67
|
.button-has-border-value(currentColor);
|
68
68
|
}
|
69
69
|
|
@@ -101,10 +101,9 @@
|
|
101
101
|
.set-button-type(@index) when (@index > 0) {
|
102
102
|
@type: extract(@type-map, @index);
|
103
103
|
|
104
|
-
|
104
|
+
&&-type-@{type} {
|
105
105
|
.use-var(background, 'button-@{type}-background');
|
106
106
|
.use-var(color, 'button-@{type}-text-color');
|
107
|
-
.set-loading-color-var('button-@{type}-text-color');
|
108
107
|
&-disabled {
|
109
108
|
.use-var(background, 'button-@{type}-disabled-background');
|
110
109
|
.use-var(color, 'button-@{type}-disabled-text-color')
|
@@ -113,6 +112,9 @@
|
|
113
112
|
.use-var(background, 'button-@{type}-clicked-background');
|
114
113
|
}
|
115
114
|
}
|
115
|
+
&-type-@{type} {
|
116
|
+
.set-loading-color-var('button-@{type}-text-color');
|
117
|
+
}
|
116
118
|
|
117
119
|
.set-button-type(@index - 1);
|
118
120
|
}
|
@@ -120,7 +122,7 @@
|
|
120
122
|
.set-button-size(@index) when (@index > 0) {
|
121
123
|
@size: extract(@size-map, @index);
|
122
124
|
|
123
|
-
|
125
|
+
&&-size-@{size} {
|
124
126
|
.use-var(padding, "button-@{size}-padding");
|
125
127
|
.button-size-height("button-@{size}-height");
|
126
128
|
.button-text-size("button-@{size}-text-size");
|
package/esm/carousel/index.d.ts
CHANGED
@@ -357,7 +357,7 @@ export interface CarouselRef {
|
|
357
357
|
/**
|
358
358
|
* 轮播组件,支持自定义轮播索引样式及滑块宽度。**需要注意的是,如果正使用`fastclick`,需要为 touchstart 的 target 添加`needsclick`类**(<a href="https://github.com/ftlabs/fastclick#ignore-certain-elements-with-needsclick" target="_blank">详情戳这里</a>),以规避`fastclick`逻辑与组件内部的手势冲突。(如果使用了`list`属性则无需额外添加)
|
359
359
|
* @en Carousel component, supports custom carousel index style and slider width. **Note that if you are using `fastclick`, you need to add a `needsclick` class to the touchstart target ** (<a href="https://github.com/ftlabs/fastclick#ignore-certain-elements- with-needsclick" target="_blank">click here for details</a>) to avoid `fastclick` logic conflicts with gestures inside the component. (no need to add if `list` is set)
|
360
|
-
* @type
|
360
|
+
* @type 信息展示
|
361
361
|
* @type_en Data Display
|
362
362
|
* @name 轮播图
|
363
363
|
* @name_en Carousel
|
package/esm/carousel/index.js
CHANGED
@@ -7,7 +7,7 @@ import { useRefState, useListenResize, useUpdateEffect, getStyleWithVendor, useS
|
|
7
7
|
/**
|
8
8
|
* 轮播组件,支持自定义轮播索引样式及滑块宽度。**需要注意的是,如果正使用`fastclick`,需要为 touchstart 的 target 添加`needsclick`类**(<a href="https://github.com/ftlabs/fastclick#ignore-certain-elements-with-needsclick" target="_blank">详情戳这里</a>),以规避`fastclick`逻辑与组件内部的手势冲突。(如果使用了`list`属性则无需额外添加)
|
9
9
|
* @en Carousel component, supports custom carousel index style and slider width. **Note that if you are using `fastclick`, you need to add a `needsclick` class to the touchstart target ** (<a href="https://github.com/ftlabs/fastclick#ignore-certain-elements- with-needsclick" target="_blank">click here for details</a>) to avoid `fastclick` logic conflicts with gestures inside the component. (no need to add if `list` is set)
|
10
|
-
* @type
|
10
|
+
* @type 信息展示
|
11
11
|
* @type_en Data Display
|
12
12
|
* @name 轮播图
|
13
13
|
* @name_en Carousel
|
package/esm/cell/index.d.ts
CHANGED
@@ -6,7 +6,7 @@ declare const _default: import("react").ForwardRefExoticComponent<import("./type
|
|
6
6
|
/**
|
7
7
|
* 单元格组件,含单元格及单元格组合,常用于设置项、表单等。
|
8
8
|
* @en Cell, including cells and cell group, are often used to set items, forms, etc.
|
9
|
-
* @type
|
9
|
+
* @type 信息展示
|
10
10
|
* @type_en Data Display
|
11
11
|
* @name 单元格
|
12
12
|
* @name_en Cell
|
package/esm/cell/index.js
CHANGED
package/esm/checkbox/index.d.ts
CHANGED
@@ -8,7 +8,7 @@ declare const _default: import("react").ForwardRefExoticComponent<import("./type
|
|
8
8
|
* @en Checkbox, click to switch selection when available, support disabled status, support checkbox group.
|
9
9
|
* @name 复选框
|
10
10
|
* @name_en Checkbox
|
11
|
-
* @type
|
11
|
+
* @type 数据录入
|
12
12
|
* @type_en Data Entry
|
13
13
|
*/
|
14
14
|
export default _default;
|
package/esm/checkbox/index.js
CHANGED
package/esm/collapse/index.d.ts
CHANGED
package/esm/collapse/index.js
CHANGED
package/esm/count-down/index.js
CHANGED
@@ -12,7 +12,7 @@ export interface DatePickerRef {
|
|
12
12
|
/**
|
13
13
|
* 日期时间选择器,基于`Picker`组件扩展,支持指定范围,单位可精确到秒。
|
14
14
|
* @en Date picker, based on the `Picker` component, supports the specified range, the unit can be accurate to seconds.
|
15
|
-
* @type
|
15
|
+
* @type 数据录入
|
16
16
|
* @type_en Data Entry
|
17
17
|
* @name 日期时间选择器
|
18
18
|
* @name_en DatePicker
|
package/esm/date-picker/index.js
CHANGED
@@ -21,7 +21,7 @@ var initDate = Date.now();
|
|
21
21
|
/**
|
22
22
|
* 日期时间选择器,基于`Picker`组件扩展,支持指定范围,单位可精确到秒。
|
23
23
|
* @en Date picker, based on the `Picker` component, supports the specified range, the unit can be accurate to seconds.
|
24
|
-
* @type
|
24
|
+
* @type 数据录入
|
25
25
|
* @type_en Data Entry
|
26
26
|
* @name 日期时间选择器
|
27
27
|
* @name_en DatePicker
|
package/esm/dropdown/dropdown.js
CHANGED
@@ -78,7 +78,7 @@ export function componentGenerator(Comp) {
|
|
78
78
|
// @en down=0 is to expand upwards, 1 is to expand downwards
|
79
79
|
|
80
80
|
|
81
|
-
var _useState3 = useState(
|
81
|
+
var _useState3 = useState(null),
|
82
82
|
down = _useState3[0],
|
83
83
|
setDown = _useState3[1];
|
84
84
|
|
@@ -117,12 +117,15 @@ export function componentGenerator(Comp) {
|
|
117
117
|
|
118
118
|
usePopupScroll(showDropdown, domRef.current, getScrollContainer);
|
119
119
|
usePreventBodyScroll(showDropdown, preventBodyScroll, initialBodyOverflow);
|
120
|
-
|
120
|
+
var updateDown = useCallback(function (wrapperHeight) {
|
121
121
|
var _dropdownContainer$cu2;
|
122
122
|
|
123
123
|
// 为0的时候不改变
|
124
124
|
// @en Does not change when it is 0
|
125
|
-
if (
|
125
|
+
if (wrapperHeight === 0) {
|
126
|
+
return;
|
127
|
+
}
|
128
|
+
|
126
129
|
var tempEl = getAnchorElement ? getAnchorElement() : (_dropdownContainer$cu2 = dropdownContainer.current) == null ? void 0 : _dropdownContainer$cu2.parentElement;
|
127
130
|
|
128
131
|
var _ref = (tempEl == null ? void 0 : tempEl.getBoundingClientRect()) || {
|
@@ -137,7 +140,7 @@ export function componentGenerator(Comp) {
|
|
137
140
|
var tempMaskHeight = windowHeight - tempTop; // 没有指定方向,且空间足够时,或向上展开的空间不够,向下展开
|
138
141
|
// @en If there is no specified direction and there is enough space, or there is not enough space to expand upward, expand downward
|
139
142
|
|
140
|
-
var tempDown = direction !== 'up' &&
|
143
|
+
var tempDown = direction !== 'up' && wrapperHeight < tempMaskHeight || wrapperHeight > tempTop;
|
141
144
|
|
142
145
|
if (tempDown) {
|
143
146
|
maskHeight.current = tempMaskHeight;
|
@@ -154,7 +157,7 @@ export function componentGenerator(Comp) {
|
|
154
157
|
}
|
155
158
|
|
156
159
|
setDown(tempDown);
|
157
|
-
}, [
|
160
|
+
}, [props.top, props.bottom, Boolean(getAnchorElement), direction, windowHeight]);
|
158
161
|
/**
|
159
162
|
* 取消选择
|
160
163
|
* @en Cancel selection
|
@@ -195,19 +198,27 @@ export function componentGenerator(Comp) {
|
|
195
198
|
};
|
196
199
|
}, [showDropdown, clickOtherToClose, handleCancel]);
|
197
200
|
useEffect(function () {
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
201
|
+
var wrapperHeight = 0;
|
202
|
+
|
203
|
+
if (height !== void 0) {
|
204
|
+
// 受控模式下,完全交由外层控制
|
205
|
+
// @en In controlled mode, it is completely controlled by the outer layer
|
206
|
+
wrapperHeight = height;
|
207
|
+
} else {
|
208
|
+
if (!optionsContainer.current) return;
|
209
|
+
|
210
|
+
if (!showDropdown) {
|
211
|
+
wrapperHeight = 0;
|
203
212
|
} else {
|
204
|
-
|
205
|
-
if (!showDropdown) setOptionsWrapperHeight(0);else {
|
206
|
-
setOptionsWrapperHeight(optionsContainer.current.getBoundingClientRect().height);
|
207
|
-
}
|
213
|
+
wrapperHeight = optionsContainer.current.getBoundingClientRect().height;
|
208
214
|
}
|
215
|
+
}
|
216
|
+
|
217
|
+
updateDown(wrapperHeight);
|
218
|
+
nextTick(function () {
|
219
|
+
setOptionsWrapperHeight(wrapperHeight);
|
209
220
|
});
|
210
|
-
}, [showDropdown, options.length, height]);
|
221
|
+
}, [showDropdown, options.length, height, updateDown]);
|
211
222
|
useImperativeHandle(ref, function () {
|
212
223
|
return {
|
213
224
|
dom: domRef.current
|
@@ -216,13 +227,17 @@ export function componentGenerator(Comp) {
|
|
216
227
|
|
217
228
|
function getOptionsStyle() {
|
218
229
|
var trans = down ? 'translateY(-100%)' : 'translateY(100%)';
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
230
|
+
var transStyle = down === null ? {
|
231
|
+
opacity: 0
|
232
|
+
} : {
|
233
|
+
opacity: 1,
|
234
|
+
transform: optionsWrapperHeight ? 'translateY(0)' : trans,
|
235
|
+
transition: "all " + dropdownAnimationTimeout + "ms " + dropdownAnimationFunction
|
236
|
+
};
|
237
|
+
return getStyleWithVendor(_extends({}, transStyle, {
|
223
238
|
overflow: optionsWrapperHeight > maxHeight || height ? 'auto' : 'hidden',
|
224
239
|
maxHeight: maxHeight + "px"
|
225
|
-
});
|
240
|
+
}));
|
226
241
|
}
|
227
242
|
|
228
243
|
function renderInnerOptions() {
|
@@ -256,6 +271,7 @@ export function componentGenerator(Comp) {
|
|
256
271
|
},
|
257
272
|
onExited: function onExited(el) {
|
258
273
|
el.style.visibility = 'hidden';
|
274
|
+
setDown(null);
|
259
275
|
},
|
260
276
|
mountOnEnter: mountOnEnter,
|
261
277
|
unmountOnExit: unmountOnExit
|
@@ -11,8 +11,7 @@ var JsEllipsis = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
11
11
|
maxHeight = props.maxHeight,
|
12
12
|
ellipsisNode = props.ellipsisNode,
|
13
13
|
collapseNode = props.collapseNode,
|
14
|
-
|
15
|
-
endExcludes = _props$endExcludes === void 0 ? [] : _props$endExcludes,
|
14
|
+
endExcludes = props.endExcludes,
|
16
15
|
reflowOnResize = props.reflowOnResize,
|
17
16
|
onReflow = props.onReflow,
|
18
17
|
onEllipsisNodeClick = props.onEllipsisNodeClick,
|
@@ -65,7 +64,7 @@ var JsEllipsis = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
65
64
|
} // Remove the exclude char at the end of the content.
|
66
65
|
|
67
66
|
|
68
|
-
while (endExcludes.includes(currentText[currentText.length - 1])) {
|
67
|
+
while (endExcludes && endExcludes.includes(currentText[currentText.length - 1])) {
|
69
68
|
currentText = currentText.slice(0, -1);
|
70
69
|
} // Callback after reflow.
|
71
70
|
|
package/esm/ellipsis/index.d.ts
CHANGED
@@ -4,7 +4,7 @@ export * from './type';
|
|
4
4
|
/**
|
5
5
|
* 文本缩略组件,支持多行缩略、富文本、自定义缩略符、尾字符过滤等。
|
6
6
|
* @en Text ellipsis component supports multi-line abbreviations, rich text, custom abbreviations, tail character filtering, etc.
|
7
|
-
* @type
|
7
|
+
* @type 信息展示
|
8
8
|
* @type_en Data Display
|
9
9
|
* @name 文本缩略
|
10
10
|
* @name_en Ellipsis
|
package/esm/ellipsis/index.js
CHANGED
@@ -8,7 +8,7 @@ export * from './type';
|
|
8
8
|
/**
|
9
9
|
* 文本缩略组件,支持多行缩略、富文本、自定义缩略符、尾字符过滤等。
|
10
10
|
* @en Text ellipsis component supports multi-line abbreviations, rich text, custom abbreviations, tail character filtering, etc.
|
11
|
-
* @type
|
11
|
+
* @type 信息展示
|
12
12
|
* @type_en Data Display
|
13
13
|
* @name 文本缩略
|
14
14
|
* @name_en Ellipsis
|
@@ -28,15 +28,14 @@ var Ellipsis = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
28
28
|
_props$collapseNode = props.collapseNode,
|
29
29
|
collapseNode = _props$collapseNode === void 0 ? '' : _props$collapseNode,
|
30
30
|
onCollapseNodeClick = props.onCollapseNodeClick,
|
31
|
-
|
32
|
-
endExcludes = _props$endExcludes === void 0 ? [] : _props$endExcludes,
|
31
|
+
endExcludes = props.endExcludes,
|
33
32
|
_props$reflowOnResize = props.reflowOnResize,
|
34
33
|
reflowOnResize = _props$reflowOnResize === void 0 ? false : _props$reflowOnResize,
|
35
34
|
onReflow = props.onReflow,
|
36
35
|
onEllipsisNodeClick = props.onEllipsisNodeClick;
|
37
36
|
var domRef = useRef(null);
|
38
37
|
var jsEllipsisRef = useRef(null);
|
39
|
-
var useNativeEllipsis = isSupportWebkitLineClamp() && maxHeight === void 0 && ellipsisNode === '...' && endExcludes.length === 0 && !onReflow && !onEllipsisNodeClick;
|
38
|
+
var useNativeEllipsis = isSupportWebkitLineClamp() && maxHeight === void 0 && ellipsisNode === '...' && (!endExcludes || endExcludes.length === 0) && !onReflow && !onEllipsisNodeClick;
|
40
39
|
useImperativeHandle(ref, function () {
|
41
40
|
var _jsEllipsisRef$curren;
|
42
41
|
|
package/esm/image/index.d.ts
CHANGED
@@ -177,7 +177,7 @@ export interface ImageRef {
|
|
177
177
|
/**
|
178
178
|
* 增强版的 img 标签,提供多种图片填充模式,支持图片加载中提示、加载失败提示。
|
179
179
|
* @en Enhanced img tag, provides a variety of image filling modes, and supports image loading prompts and loading failure prompts.
|
180
|
-
* @type
|
180
|
+
* @type 信息展示
|
181
181
|
* @type_en Data Display
|
182
182
|
* @name 图片
|
183
183
|
* @name_en Image
|
package/esm/image/index.js
CHANGED
@@ -8,7 +8,7 @@ import { useSystem, useWindowSize, getStyleWithVendor, useMountedState } from '.
|
|
8
8
|
/**
|
9
9
|
* 增强版的 img 标签,提供多种图片填充模式,支持图片加载中提示、加载失败提示。
|
10
10
|
* @en Enhanced img tag, provides a variety of image filling modes, and supports image loading prompts and loading failure prompts.
|
11
|
-
* @type
|
11
|
+
* @type 信息展示
|
12
12
|
* @type_en Data Display
|
13
13
|
* @name 图片
|
14
14
|
* @name_en Image
|