@arco-design/mobile-react 2.19.1-7cada34.0 → 2.19.1-941e02b.7
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/README.md +2 -2
- package/cjs/circle-progress/index.js +5 -3
- package/cjs/collapse/collapse.js +2 -2
- package/cjs/grid/index.js +13 -12
- package/cjs/image/index.d.ts +0 -1
- package/cjs/image/index.js +9 -7
- package/cjs/image-picker/add-icon.d.ts +2 -0
- package/cjs/image-picker/add-icon.js +22 -0
- package/cjs/image-picker/demo/style/css/mobile.css +40 -0
- package/cjs/image-picker/demo/style/mobile.less +42 -0
- package/cjs/image-picker/index.d.ts +181 -0
- package/cjs/image-picker/index.js +301 -0
- package/cjs/image-picker/style/css/index.css +147 -0
- package/cjs/image-picker/style/css/index.d.ts +2 -0
- package/cjs/image-picker/style/css/index.js +5 -0
- package/cjs/image-picker/style/index.d.ts +2 -0
- package/cjs/image-picker/style/index.js +5 -0
- package/cjs/image-picker/style/index.less +116 -0
- package/cjs/image-preview/index.d.ts +2 -2
- package/cjs/index.d.ts +1 -0
- package/cjs/index.js +5 -1
- package/cjs/nav-bar/back-icon.d.ts +2 -2
- package/cjs/nav-bar/back-icon.js +2 -2
- package/cjs/progress/index.js +3 -1
- package/cjs/slider/hooks/index.d.ts +1 -1
- package/cjs/slider/marks.d.ts +5 -5
- package/cjs/slider/marks.js +4 -4
- package/cjs/slider/popover.d.ts +2 -2
- package/cjs/slider/popover.js +3 -5
- package/cjs/steps/demo/style/css/mobile.css +1 -1
- package/cjs/steps/demo/style/mobile.less +1 -1
- package/cjs/steps/step.js +3 -1
- package/cjs/steps/style/css/index.css +19 -20
- package/cjs/steps/style/index.less +11 -16
- package/cjs/style.d.ts +1 -0
- package/cjs/style.js +2 -0
- package/cjs/swipe-load/index.js +2 -2
- package/cjs/switch/index.js +1 -1
- package/cjs/tab-bar/item.js +2 -2
- package/cjs/tab-bar/tab-bar.js +2 -2
- package/dist/index.js +532 -226
- package/dist/index.min.js +4 -5
- package/dist/style.css +126 -16
- package/dist/style.min.css +1 -1
- package/esm/circle-progress/index.js +5 -3
- package/esm/collapse/collapse.js +1 -1
- package/esm/grid/index.js +13 -12
- package/esm/image/index.d.ts +0 -1
- package/esm/image/index.js +10 -8
- package/esm/image-picker/add-icon.d.ts +2 -0
- package/esm/image-picker/add-icon.js +14 -0
- package/esm/image-picker/demo/style/css/mobile.css +40 -0
- package/esm/image-picker/demo/style/mobile.less +42 -0
- package/esm/image-picker/index.d.ts +181 -0
- package/esm/image-picker/index.js +282 -0
- package/esm/image-picker/style/css/index.css +147 -0
- package/esm/image-picker/style/css/index.d.ts +2 -0
- package/esm/image-picker/style/css/index.js +2 -0
- package/esm/image-picker/style/index.d.ts +2 -0
- package/esm/image-picker/style/index.js +2 -0
- package/esm/image-picker/style/index.less +116 -0
- package/esm/image-preview/index.d.ts +2 -2
- package/esm/index.d.ts +1 -0
- package/esm/index.js +1 -0
- package/esm/nav-bar/back-icon.d.ts +2 -2
- package/esm/nav-bar/back-icon.js +2 -2
- package/esm/progress/index.js +3 -1
- package/esm/slider/hooks/index.d.ts +1 -1
- package/esm/slider/marks.d.ts +5 -5
- package/esm/slider/marks.js +3 -3
- package/esm/slider/popover.d.ts +2 -2
- package/esm/slider/popover.js +2 -2
- package/esm/steps/demo/style/css/mobile.css +1 -1
- package/esm/steps/demo/style/mobile.less +1 -1
- package/esm/steps/step.js +3 -1
- package/esm/steps/style/css/index.css +19 -20
- package/esm/steps/style/index.less +11 -16
- package/esm/style.d.ts +1 -0
- package/esm/style.js +1 -0
- package/esm/swipe-load/index.js +1 -1
- package/esm/switch/index.js +1 -1
- package/esm/tab-bar/item.js +1 -1
- package/esm/tab-bar/tab-bar.js +1 -1
- package/package.json +5 -5
- package/tokens/app/arcodesign/default/css-variables.less +17 -2
- package/tokens/app/arcodesign/default/index.d.ts +17 -2
- package/tokens/app/arcodesign/default/index.js +18 -3
- package/tokens/app/arcodesign/default/index.json +140 -24
- package/tokens/app/arcodesign/default/index.less +17 -2
- package/umd/circle-progress/index.js +5 -3
- package/umd/collapse/collapse.js +4 -4
- package/umd/grid/index.js +13 -12
- package/umd/image/index.d.ts +0 -1
- package/umd/image/index.js +9 -7
- package/umd/image-picker/add-icon.d.ts +2 -0
- package/umd/image-picker/add-icon.js +35 -0
- package/umd/image-picker/demo/style/css/mobile.css +40 -0
- package/umd/image-picker/demo/style/mobile.less +42 -0
- package/umd/image-picker/index.d.ts +181 -0
- package/umd/image-picker/index.js +304 -0
- package/umd/image-picker/style/css/index.css +147 -0
- package/umd/image-picker/style/css/index.d.ts +2 -0
- package/umd/image-picker/style/css/index.js +15 -0
- package/umd/image-picker/style/index.d.ts +2 -0
- package/umd/image-picker/style/index.js +15 -0
- package/umd/image-picker/style/index.less +116 -0
- package/umd/image-preview/index.d.ts +2 -2
- package/umd/index.d.ts +1 -0
- package/umd/index.js +7 -5
- package/umd/nav-bar/back-icon.d.ts +2 -2
- package/umd/nav-bar/back-icon.js +2 -2
- package/umd/progress/index.js +3 -1
- package/umd/slider/hooks/index.d.ts +1 -1
- package/umd/slider/marks.d.ts +5 -5
- package/umd/slider/marks.js +6 -6
- package/umd/slider/popover.d.ts +2 -2
- package/umd/slider/popover.js +3 -5
- package/umd/steps/demo/style/css/mobile.css +1 -1
- package/umd/steps/demo/style/mobile.less +1 -1
- package/umd/steps/step.js +3 -1
- package/umd/steps/style/css/index.css +19 -20
- package/umd/steps/style/index.less +11 -16
- package/umd/style.d.ts +1 -0
- package/umd/style.js +4 -4
- package/umd/swipe-load/index.js +4 -4
- package/umd/switch/index.js +1 -1
- package/umd/tab-bar/item.js +4 -4
- package/umd/tab-bar/tab-bar.js +4 -4
@@ -0,0 +1,147 @@
|
|
1
|
+
.arco-image-picker {
|
2
|
+
font-size: 0.28rem ;
|
3
|
+
}
|
4
|
+
.arco-image-picker-container {
|
5
|
+
display: -webkit-box;
|
6
|
+
display: -webkit-flex;
|
7
|
+
display: flex;
|
8
|
+
-webkit-flex-wrap: wrap;
|
9
|
+
flex-wrap: wrap;
|
10
|
+
}
|
11
|
+
.arco-image-picker-image {
|
12
|
+
position: relative;
|
13
|
+
width: 100%;
|
14
|
+
display: -webkit-box;
|
15
|
+
display: -webkit-flex;
|
16
|
+
display: flex;
|
17
|
+
-webkit-box-align: center;
|
18
|
+
-webkit-align-items: center;
|
19
|
+
align-items: center;
|
20
|
+
-webkit-box-pack: center;
|
21
|
+
-webkit-justify-content: center;
|
22
|
+
justify-content: center;
|
23
|
+
padding-top: 100%;
|
24
|
+
border-radius: 0.04rem ;
|
25
|
+
overflow: hidden;
|
26
|
+
}
|
27
|
+
.arco-image-picker-image-container {
|
28
|
+
position: absolute;
|
29
|
+
top: 0;
|
30
|
+
width: 100%;
|
31
|
+
height: 100%;
|
32
|
+
left: 0;
|
33
|
+
}
|
34
|
+
.arco-image-picker-image .arco-image {
|
35
|
+
height: 100%;
|
36
|
+
width: 100%;
|
37
|
+
}
|
38
|
+
.arco-image-picker-image-mask {
|
39
|
+
position: absolute;
|
40
|
+
left: 0;
|
41
|
+
top: 0;
|
42
|
+
width: 100%;
|
43
|
+
height: 100%;
|
44
|
+
z-index: 2;
|
45
|
+
}
|
46
|
+
.arco-image-picker-add {
|
47
|
+
background-color: #f7f8fa ;
|
48
|
+
border-radius: 0.04rem ;
|
49
|
+
position: relative;
|
50
|
+
width: 100%;
|
51
|
+
height: 100%;
|
52
|
+
padding-top: 100%;
|
53
|
+
}
|
54
|
+
.arco-image-picker-add-container {
|
55
|
+
position: absolute;
|
56
|
+
top: 0;
|
57
|
+
width: 100%;
|
58
|
+
height: 100%;
|
59
|
+
left: 0;
|
60
|
+
display: -webkit-box;
|
61
|
+
display: -webkit-flex;
|
62
|
+
display: flex;
|
63
|
+
-webkit-box-orient: vertical;
|
64
|
+
-webkit-box-direction: normal;
|
65
|
+
-webkit-flex-direction: column;
|
66
|
+
flex-direction: column;
|
67
|
+
-webkit-box-pack: center;
|
68
|
+
-webkit-justify-content: center;
|
69
|
+
justify-content: center;
|
70
|
+
-webkit-box-align: center;
|
71
|
+
-webkit-align-items: center;
|
72
|
+
align-items: center;
|
73
|
+
text-align: center;
|
74
|
+
font-size: 0.24rem ;
|
75
|
+
color: #86909c ;
|
76
|
+
}
|
77
|
+
.arco-image-picker-add-icon {
|
78
|
+
font-size: 0.6rem ;
|
79
|
+
color: #d8d8d8 ;
|
80
|
+
}
|
81
|
+
.arco-image-picker-add-icon svg {
|
82
|
+
display: block;
|
83
|
+
}
|
84
|
+
.arco-image-picker-add-disabled {
|
85
|
+
pointer-events: none;
|
86
|
+
}
|
87
|
+
.arco-image-picker-add-disabled .arco-image-picker-add-icon {
|
88
|
+
opacity: 0.7 ;
|
89
|
+
}
|
90
|
+
.arco-image-picker-add input {
|
91
|
+
position: absolute;
|
92
|
+
opacity: 0;
|
93
|
+
left: 0;
|
94
|
+
top: 0;
|
95
|
+
width: 100%;
|
96
|
+
height: 100%;
|
97
|
+
display: none;
|
98
|
+
}
|
99
|
+
.arco-image-picker-close {
|
100
|
+
position: absolute;
|
101
|
+
top: 0;
|
102
|
+
right: 0;
|
103
|
+
z-index: 2;
|
104
|
+
}
|
105
|
+
.arco-image-picker-close-icon {
|
106
|
+
display: -webkit-box;
|
107
|
+
display: -webkit-flex;
|
108
|
+
display: flex;
|
109
|
+
-webkit-box-align: center;
|
110
|
+
-webkit-align-items: center;
|
111
|
+
align-items: center;
|
112
|
+
-webkit-box-pack: center;
|
113
|
+
-webkit-justify-content: center;
|
114
|
+
justify-content: center;
|
115
|
+
font-size: 0.24rem ;
|
116
|
+
width: 0.36rem ;
|
117
|
+
height: 0.36rem ;
|
118
|
+
color: #ffffff ;
|
119
|
+
background: rgba(0, 0, 0, 0.3) ;
|
120
|
+
border-radius: 0 0.04rem ;
|
121
|
+
}
|
122
|
+
.arco-image-picker-error {
|
123
|
+
position: absolute;
|
124
|
+
top: 0;
|
125
|
+
left: 0;
|
126
|
+
width: 100%;
|
127
|
+
height: 100%;
|
128
|
+
display: -webkit-box;
|
129
|
+
display: -webkit-flex;
|
130
|
+
display: flex;
|
131
|
+
-webkit-box-orient: vertical;
|
132
|
+
-webkit-box-direction: normal;
|
133
|
+
-webkit-flex-direction: column;
|
134
|
+
flex-direction: column;
|
135
|
+
-webkit-box-pack: center;
|
136
|
+
-webkit-justify-content: center;
|
137
|
+
justify-content: center;
|
138
|
+
-webkit-box-align: center;
|
139
|
+
-webkit-align-items: center;
|
140
|
+
align-items: center;
|
141
|
+
background: rgba(0, 0, 0, 0.5) ;
|
142
|
+
color: #ffffff ;
|
143
|
+
font-size: 0.28rem ;
|
144
|
+
}
|
145
|
+
.arco-image-picker-disabled {
|
146
|
+
pointer-events: none;
|
147
|
+
}
|
@@ -0,0 +1,116 @@
|
|
1
|
+
@import '../../../style/mixin.less';
|
2
|
+
|
3
|
+
.@{prefix}-image-picker {
|
4
|
+
.use-var(font-size, image-picker-font-size);
|
5
|
+
&-container {
|
6
|
+
display: flex;
|
7
|
+
flex-wrap: wrap;
|
8
|
+
}
|
9
|
+
.container() {
|
10
|
+
position: absolute;
|
11
|
+
top: 0;
|
12
|
+
width: 100%;
|
13
|
+
height: 100%;
|
14
|
+
left: 0;
|
15
|
+
}
|
16
|
+
&-image {
|
17
|
+
position: relative;
|
18
|
+
width: 100%;
|
19
|
+
display: flex;
|
20
|
+
align-items: center;
|
21
|
+
justify-content: center;
|
22
|
+
padding-top: 100%;
|
23
|
+
.use-var(border-radius, image-picker-border-radius);
|
24
|
+
overflow: hidden;
|
25
|
+
&-container {
|
26
|
+
.container()
|
27
|
+
}
|
28
|
+
.arco-image{
|
29
|
+
height: 100%;
|
30
|
+
width: 100%;
|
31
|
+
}
|
32
|
+
&-mask {
|
33
|
+
position: absolute;
|
34
|
+
left: 0;
|
35
|
+
top: 0;
|
36
|
+
width: 100%;
|
37
|
+
height: 100%;
|
38
|
+
z-index: 2;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
&-add {
|
42
|
+
.use-var(background-color, image-picker-add-background);
|
43
|
+
.use-var(border-radius, image-picker-border-radius);
|
44
|
+
position: relative;
|
45
|
+
width: 100%;
|
46
|
+
height: 100%;
|
47
|
+
padding-top: 100%;
|
48
|
+
&-container {
|
49
|
+
.container();
|
50
|
+
display: flex;
|
51
|
+
flex-direction: column;
|
52
|
+
justify-content: center;
|
53
|
+
align-items: center;
|
54
|
+
text-align: center;
|
55
|
+
.use-var(font-size, image-picker-add-text-font-size);
|
56
|
+
.use-var(color, image-picker-add-text-color);
|
57
|
+
}
|
58
|
+
&-icon {
|
59
|
+
.use-var(font-size, image-picker-add-icon-font-size);
|
60
|
+
.use-var(color, image-picker-add-icon-color);
|
61
|
+
svg {
|
62
|
+
display: block;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
&-disabled {
|
66
|
+
pointer-events: none;
|
67
|
+
}
|
68
|
+
&-disabled &-icon {
|
69
|
+
.use-var(opacity, image-picker-disabled-opacity);
|
70
|
+
}
|
71
|
+
input {
|
72
|
+
position: absolute;
|
73
|
+
opacity: 0;
|
74
|
+
left: 0;
|
75
|
+
top: 0;
|
76
|
+
width: 100%;
|
77
|
+
height: 100%;
|
78
|
+
display: none;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
&-close {
|
82
|
+
position: absolute;
|
83
|
+
top: 0;
|
84
|
+
right: 0;
|
85
|
+
z-index: 2;
|
86
|
+
&-icon {
|
87
|
+
display: flex;
|
88
|
+
align-items: center;
|
89
|
+
justify-content: center;
|
90
|
+
.use-var(font-size, image-picker-close-font-size);
|
91
|
+
.use-var(width, image-picker-close-width);
|
92
|
+
.use-var(height, image-picker-close-height);
|
93
|
+
.use-var(color, image-picker-close-color);
|
94
|
+
.use-var(background, image-picker-close-background);
|
95
|
+
.use-var(border-radius, image-picker-close-border-radius);
|
96
|
+
}
|
97
|
+
}
|
98
|
+
&-error {
|
99
|
+
position: absolute;
|
100
|
+
top: 0;
|
101
|
+
left: 0;
|
102
|
+
width: 100%;
|
103
|
+
height: 100%;
|
104
|
+
display: flex;
|
105
|
+
flex-direction: column;
|
106
|
+
justify-content: center;
|
107
|
+
align-items: center;
|
108
|
+
.use-var(background, image-picker-error-background);
|
109
|
+
.use-var(color, image-picker-error-color);
|
110
|
+
.use-var(font-size, image-picker-font-size);
|
111
|
+
}
|
112
|
+
}
|
113
|
+
|
114
|
+
.@{prefix}-image-picker-disabled {
|
115
|
+
pointer-events: none;
|
116
|
+
}
|
@@ -268,9 +268,9 @@ declare const _default: React.ForwardRefExoticComponent<ImagePreviewProps & Reac
|
|
268
268
|
* @param {ImagePreviewProps} config configuration
|
269
269
|
* @returns {{ close: () => void; update: (newConfig: ImagePreviewProps) => void; }}
|
270
270
|
*/
|
271
|
-
open: (config: Pick<ImagePreviewProps & React.RefAttributes<ImagePreviewRef>, "style" | "ref" | "key" | "getContainer" | "className" | "onClose" | "onTouchMove" | "fit" | "loadingArea" | "errorArea" | "showLoading" | "showError" | "retryTime" | "staticLabel" | "onChange" | "onTouchEnd" | "onTouchStart" | "animateDurationSlide" | "loop" | "swipeable" | "renderIndicator" | "indicatorPos" | "showIndicator" | "hideSingleIndicator" | "spaceBetween" | "percentToChange" | "distanceToChange" | "speedToChange" | "lazyloadCount" | "onAfterChange" | "
|
271
|
+
open: (config: Pick<ImagePreviewProps & React.RefAttributes<ImagePreviewRef>, "style" | "ref" | "key" | "getContainer" | "className" | "onClose" | "onTouchMove" | "fit" | "loadingArea" | "errorArea" | "showLoading" | "showError" | "retryTime" | "staticLabel" | "onChange" | "onTouchEnd" | "onTouchStart" | "animateDurationSlide" | "loop" | "swipeable" | "renderIndicator" | "indicatorPos" | "showIndicator" | "hideSingleIndicator" | "spaceBetween" | "percentToChange" | "distanceToChange" | "speedToChange" | "lazyloadCount" | "onAfterChange" | "images" | "openIndex" | "displayDuration" | "replaceFallbackWhenLoaded" | "noselect" | "scrollBezier" | "swipeToClose" | "getMinScale" | "getMaxScale" | "getDoubleClickScale" | "getThumbBounds" | "onImageClick" | "onImageDoubleClick" | "onImageLongTap">) => {
|
272
272
|
close: () => void;
|
273
|
-
update: (newConfig: Pick<ImagePreviewProps & React.RefAttributes<ImagePreviewRef>, "style" | "ref" | "key" | "getContainer" | "className" | "onClose" | "onTouchMove" | "fit" | "loadingArea" | "errorArea" | "showLoading" | "showError" | "retryTime" | "staticLabel" | "onChange" | "onTouchEnd" | "onTouchStart" | "animateDurationSlide" | "loop" | "swipeable" | "renderIndicator" | "indicatorPos" | "showIndicator" | "hideSingleIndicator" | "spaceBetween" | "percentToChange" | "distanceToChange" | "speedToChange" | "lazyloadCount" | "onAfterChange" | "
|
273
|
+
update: (newConfig: Pick<ImagePreviewProps & React.RefAttributes<ImagePreviewRef>, "style" | "ref" | "key" | "getContainer" | "className" | "onClose" | "onTouchMove" | "fit" | "loadingArea" | "errorArea" | "showLoading" | "showError" | "retryTime" | "staticLabel" | "onChange" | "onTouchEnd" | "onTouchStart" | "animateDurationSlide" | "loop" | "swipeable" | "renderIndicator" | "indicatorPos" | "showIndicator" | "hideSingleIndicator" | "spaceBetween" | "percentToChange" | "distanceToChange" | "speedToChange" | "lazyloadCount" | "onAfterChange" | "images" | "openIndex" | "displayDuration" | "replaceFallbackWhenLoaded" | "noselect" | "scrollBezier" | "swipeToClose" | "getMinScale" | "getMaxScale" | "getDoubleClickScale" | "getThumbBounds" | "onImageClick" | "onImageDoubleClick" | "onImageLongTap">) => void; /**
|
274
274
|
* 是否可循环滑动
|
275
275
|
* @en Whether it can be swiped circularly
|
276
276
|
* @default false
|
package/esm/index.d.ts
CHANGED
@@ -21,6 +21,7 @@ export { default as Ellipsis } from './ellipsis';
|
|
21
21
|
export { default as Grid } from './grid';
|
22
22
|
export { default as Image } from './image';
|
23
23
|
export { default as ShowMonitor } from './show-monitor';
|
24
|
+
export { default as ImagePicker } from './image-picker';
|
24
25
|
export { default as ImagePreview } from './image-preview';
|
25
26
|
export { default as Input } from './input';
|
26
27
|
export { default as LoadMore } from './load-more';
|
package/esm/index.js
CHANGED
@@ -21,6 +21,7 @@ export { default as Ellipsis } from './ellipsis';
|
|
21
21
|
export { default as Grid } from './grid';
|
22
22
|
export { default as Image } from './image';
|
23
23
|
export { default as ShowMonitor } from './show-monitor';
|
24
|
+
export { default as ImagePicker } from './image-picker';
|
24
25
|
export { default as ImagePreview } from './image-preview';
|
25
26
|
export { default as Input } from './input';
|
26
27
|
export { default as LoadMore } from './load-more';
|
package/esm/nav-bar/back-icon.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
|
3
|
-
|
3
|
+
function BackArrow(_ref) {
|
4
4
|
var _ref$color = _ref.color,
|
5
5
|
color = _ref$color === void 0 ? 'currentColor' : _ref$color;
|
6
6
|
return /*#__PURE__*/React.createElement("div", {
|
@@ -13,6 +13,6 @@ var BackArrow = function BackArrow(_ref) {
|
|
13
13
|
d: "M2.1,8l5.4,5.4c0.1,0.1,0.1,0.3,0,0.5L7,14.4c-0.1,0.1-0.3,0.1-0.5,0L0.7,8.5c-0.3-0.3-0.3-0.7,0-0.9 l5.9-5.9c0.1-0.1,0.3-0.1,0.5,0l0.5,0.5c0.1,0.1,0.1,0.3,0,0.5L2.1,8z",
|
14
14
|
fill: color
|
15
15
|
})));
|
16
|
-
}
|
16
|
+
}
|
17
17
|
|
18
18
|
export default BackArrow;
|
package/esm/progress/index.js
CHANGED
@@ -67,7 +67,9 @@ var Progress = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
67
67
|
background: progressColor
|
68
68
|
}
|
69
69
|
}, currentPercentage, "%");
|
70
|
-
}
|
70
|
+
}
|
71
|
+
|
72
|
+
if (position === percentPosition) {
|
71
73
|
return /*#__PURE__*/React.createElement("div", {
|
72
74
|
style: {
|
73
75
|
color: progressColor
|
package/esm/slider/marks.d.ts
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
import
|
2
|
-
declare
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
2
|
+
declare function Marks({ runTimeConfig, className, style, }: {
|
3
3
|
runTimeConfig: Array<{
|
4
4
|
value: number;
|
5
5
|
activated: boolean;
|
6
6
|
label: ReactNode;
|
7
7
|
}>;
|
8
|
-
className?: string
|
9
|
-
style?:
|
10
|
-
})
|
8
|
+
className?: string;
|
9
|
+
style?: CSSProperties;
|
10
|
+
}): JSX.Element;
|
11
11
|
export default Marks;
|
package/esm/slider/marks.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
2
|
import React, { useContext, useCallback } from 'react';
|
3
|
+
import { cls } from '@arco-design/mobile-utils';
|
3
4
|
import { GlobalContext } from '../context-provider';
|
4
5
|
import { SliderContext } from './hooks';
|
5
|
-
import { cls } from '@arco-design/mobile-utils';
|
6
6
|
|
7
|
-
|
7
|
+
function Marks(_ref) {
|
8
8
|
var runTimeConfig = _ref.runTimeConfig,
|
9
9
|
_ref$className = _ref.className,
|
10
10
|
className = _ref$className === void 0 ? '' : _ref$className,
|
@@ -43,6 +43,6 @@ var Marks = function Marks(_ref) {
|
|
43
43
|
className: prefixCls + "-slider-marks-item-label"
|
44
44
|
}, label));
|
45
45
|
}));
|
46
|
-
}
|
46
|
+
}
|
47
47
|
|
48
48
|
export default Marks;
|
package/esm/slider/popover.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
|
-
export declare
|
2
|
+
export declare function Popover({ visible, content, children, }: {
|
3
3
|
visible: boolean;
|
4
4
|
content: ReactNode;
|
5
5
|
children: ReactNode;
|
6
|
-
})
|
6
|
+
}): JSX.Element;
|
package/esm/slider/popover.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import React, { useContext } from 'react';
|
2
2
|
import Transition from '../transition';
|
3
3
|
import { GlobalContext } from '../context-provider';
|
4
|
-
export
|
4
|
+
export function Popover(_ref) {
|
5
5
|
var visible = _ref.visible,
|
6
6
|
content = _ref.content,
|
7
7
|
children = _ref.children;
|
@@ -24,4 +24,4 @@ export var Popover = function Popover(_ref) {
|
|
24
24
|
}, content), /*#__PURE__*/React.createElement("div", {
|
25
25
|
className: prefixCls + "-slider-popover-arrow"
|
26
26
|
}))), children);
|
27
|
-
}
|
27
|
+
}
|
package/esm/steps/step.js
CHANGED
@@ -32,11 +32,20 @@
|
|
32
32
|
}
|
33
33
|
.arco-steps-item-tail {
|
34
34
|
position: absolute;
|
35
|
+
display: -webkit-box;
|
36
|
+
display: -webkit-flex;
|
37
|
+
display: flex;
|
38
|
+
-webkit-box-align: center;
|
39
|
+
-webkit-align-items: center;
|
40
|
+
align-items: center;
|
41
|
+
-webkit-box-pack: center;
|
42
|
+
-webkit-justify-content: center;
|
43
|
+
justify-content: center;
|
35
44
|
}
|
36
45
|
.horizontal .arco-steps-item-tail {
|
37
46
|
width: 100%;
|
38
|
-
top: 0.18rem;
|
39
47
|
left: 50%;
|
48
|
+
height: 18PX ;
|
40
49
|
padding: 0 0.36rem ;
|
41
50
|
}
|
42
51
|
.horizontal .arco-steps-item-tail:after {
|
@@ -49,8 +58,8 @@
|
|
49
58
|
}
|
50
59
|
.vertical .arco-steps-item-tail {
|
51
60
|
height: 100%;
|
52
|
-
|
53
|
-
|
61
|
+
width: 18PX ;
|
62
|
+
top: 0.18rem ;
|
54
63
|
padding: 0.28rem 0 ;
|
55
64
|
}
|
56
65
|
.vertical .arco-steps-item-tail:after {
|
@@ -64,25 +73,22 @@
|
|
64
73
|
.finish .arco-steps-item-tail:after {
|
65
74
|
background: #165dff ;
|
66
75
|
}
|
67
|
-
.arco-steps-item-custom-icon
|
68
|
-
|
69
|
-
display: -webkit-
|
70
|
-
display: flex;
|
76
|
+
.arco-steps-item-custom-icon,
|
77
|
+
.arco-steps-item-icon {
|
78
|
+
display: -webkit-inline-box;
|
79
|
+
display: -webkit-inline-flex;
|
80
|
+
display: inline-flex;
|
71
81
|
-webkit-box-align: center;
|
72
82
|
-webkit-align-items: center;
|
73
83
|
align-items: center;
|
74
84
|
-webkit-box-pack: center;
|
75
85
|
-webkit-justify-content: center;
|
76
86
|
justify-content: center;
|
77
|
-
width:
|
78
|
-
height:
|
87
|
+
width: 18PX ;
|
88
|
+
height: 18PX ;
|
79
89
|
}
|
80
90
|
.arco-steps-item-icon {
|
81
|
-
display: inline-block;
|
82
91
|
border-radius: 50%;
|
83
|
-
width: 18PX ;
|
84
|
-
height: 18PX ;
|
85
|
-
text-align: center;
|
86
92
|
}
|
87
93
|
.number.finish .arco-steps-item-icon {
|
88
94
|
background: #E8F3FF ;
|
@@ -97,11 +103,7 @@
|
|
97
103
|
background: #F53F3F ;
|
98
104
|
}
|
99
105
|
.arco-steps-item-icon svg {
|
100
|
-
position: relative;
|
101
106
|
font-size: 10PX ;
|
102
|
-
top: 50%;
|
103
|
-
-webkit-transform: translateY(-50%);
|
104
|
-
transform: translateY(-50%);
|
105
107
|
}
|
106
108
|
.finish .arco-steps-item-icon svg {
|
107
109
|
color: #165dff ;
|
@@ -128,9 +130,6 @@
|
|
128
130
|
}
|
129
131
|
.arco-steps-item-icon-dot {
|
130
132
|
position: relative;
|
131
|
-
top: 50%;
|
132
|
-
-webkit-transform: translateY(-50%);
|
133
|
-
transform: translateY(-50%);
|
134
133
|
display: inline-block;
|
135
134
|
width: 8PX ;
|
136
135
|
height: 8PX ;
|
@@ -24,11 +24,14 @@
|
|
24
24
|
|
25
25
|
&-tail {
|
26
26
|
position: absolute;
|
27
|
+
display: flex;
|
28
|
+
align-items: center;
|
29
|
+
justify-content: center;
|
27
30
|
|
28
31
|
.horizontal & {
|
29
32
|
width: 100%;
|
30
|
-
.rem(top, 9);
|
31
33
|
left: 50%;
|
34
|
+
.use-var(height, steps-icon-height);
|
32
35
|
.use-var(padding, steps-tail-horizontal-padding);
|
33
36
|
|
34
37
|
&:after {
|
@@ -43,8 +46,8 @@
|
|
43
46
|
|
44
47
|
.vertical & {
|
45
48
|
height: 100%;
|
46
|
-
.
|
47
|
-
.
|
49
|
+
.use-var(width, steps-icon-width);
|
50
|
+
.use-var(top, steps-tail-vertical-top);
|
48
51
|
.use-var(padding, steps-tail-vertical-padding);
|
49
52
|
|
50
53
|
&:after {
|
@@ -62,20 +65,17 @@
|
|
62
65
|
}
|
63
66
|
}
|
64
67
|
|
65
|
-
&-custom-icon
|
66
|
-
|
68
|
+
&-custom-icon,
|
69
|
+
&-icon {
|
70
|
+
display: inline-flex;
|
67
71
|
align-items: center;
|
68
72
|
justify-content: center;
|
69
|
-
.use-var(width, steps-
|
70
|
-
.use-var(height, steps-
|
73
|
+
.use-var(width, steps-icon-width);
|
74
|
+
.use-var(height, steps-icon-height);
|
71
75
|
}
|
72
76
|
|
73
77
|
&-icon {
|
74
|
-
display: inline-block;
|
75
78
|
border-radius: 50%;
|
76
|
-
.use-var(width, steps-icon-width);
|
77
|
-
.use-var(height, steps-icon-height);
|
78
|
-
text-align: center;
|
79
79
|
|
80
80
|
.number.finish & {
|
81
81
|
.use-var(background, steps-finish-icon-num-background);
|
@@ -94,10 +94,7 @@
|
|
94
94
|
}
|
95
95
|
|
96
96
|
svg {
|
97
|
-
position: relative;
|
98
97
|
.use-var(font-size, steps-icon-svg-standard-font-size);
|
99
|
-
top: 50%;
|
100
|
-
transform: translateY(-50%);
|
101
98
|
|
102
99
|
.finish & {
|
103
100
|
.use-var(color, steps-finish-icon-svg-color);
|
@@ -122,8 +119,6 @@
|
|
122
119
|
|
123
120
|
&-dot {
|
124
121
|
position: relative;
|
125
|
-
top: 50%;
|
126
|
-
transform: translateY(-50%);
|
127
122
|
display: inline-block;
|
128
123
|
.use-var(width, steps-dot-width);
|
129
124
|
.use-var(height, steps-dot-height);
|
package/esm/style.d.ts
CHANGED
package/esm/style.js
CHANGED
package/esm/swipe-load/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import React, { useRef, forwardRef, useImperativeHandle, useEffect, useState, useContext } from 'react';
|
2
|
-
import { ContextLayout, GlobalContext } from '../context-provider';
|
3
2
|
import { cls, fingerDisToLabelDis, defaultLocale } from '@arco-design/mobile-utils';
|
3
|
+
import { ContextLayout, GlobalContext } from '../context-provider';
|
4
4
|
import { useAddListener } from '../_helpers/hooks';
|
5
5
|
export * from './type';
|
6
6
|
/**
|
package/esm/switch/index.js
CHANGED
@@ -117,7 +117,7 @@ var Switch = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
117
117
|
className: prefixCls + "-switch-text"
|
118
118
|
}, switchChecked ? text.off || '' : text.on || '') : null, /*#__PURE__*/React.createElement("div", {
|
119
119
|
className: prefixCls + "-switch-inner"
|
120
|
-
}, innerArea
|
120
|
+
}, innerArea || null));
|
121
121
|
});
|
122
122
|
});
|
123
123
|
export default Switch;
|
package/esm/tab-bar/item.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
2
|
import React, { forwardRef, useContext, useImperativeHandle, useRef } from 'react';
|
3
|
-
import { ContextLayout } from '../context-provider';
|
4
3
|
import { cls } from '@arco-design/mobile-utils';
|
4
|
+
import { ContextLayout } from '../context-provider';
|
5
5
|
import { TabBarContext } from './tab-bar';
|
6
6
|
export var Item = /*#__PURE__*/forwardRef(function (props, ref) {
|
7
7
|
var _useContext = useContext(TabBarContext),
|
package/esm/tab-bar/tab-bar.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
2
2
|
import React, { Children, createContext, forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useState } from 'react';
|
3
|
-
import { ContextLayout } from '../context-provider';
|
4
3
|
import { cls } from '@arco-design/mobile-utils';
|
4
|
+
import { ContextLayout } from '../context-provider';
|
5
5
|
import { useRefState } from '../_helpers';
|
6
6
|
export var TabBarContext = /*#__PURE__*/createContext({
|
7
7
|
changeIndex: function changeIndex() {},
|