@arco-design/mobile-react 2.30.4 → 2.30.5
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 +13 -0
- package/README.en-US.md +2 -2
- package/README.md +2 -2
- package/cjs/dialog/style/css/index.css +88 -0
- package/cjs/dialog/style/index.less +16 -4
- package/cjs/ellipsis/index.d.ts +2 -2
- package/cjs/ellipsis/index.js +2 -2
- package/cjs/image-preview/index.js +1 -0
- package/cjs/index-bar/style/css/index.css +28 -5
- package/cjs/index-bar/style/index.less +10 -10
- package/cjs/pagination/arrow.js +6 -3
- package/cjs/pagination/style/css/index.css +21 -6
- package/cjs/pagination/style/index.less +9 -9
- package/cjs/picker/style/css/index.css +8 -0
- package/cjs/picker/style/index.less +2 -2
- package/cjs/progress/style/css/index.css +20 -0
- package/cjs/progress/style/index.less +5 -5
- package/cjs/search-bar/style/css/index.css +18 -0
- package/cjs/search-bar/style/index.less +5 -5
- package/cjs/slider/hooks/index.d.ts +1 -1
- package/cjs/slider/index.d.ts +10 -0
- package/cjs/slider/index.js +1 -0
- package/cjs/slider/thumb.d.ts +6 -5
- package/cjs/slider/thumb.js +19 -20
- package/dist/index.js +34 -26
- package/dist/index.min.js +1 -1
- package/dist/style.css +146 -11
- package/dist/style.min.css +1 -1
- package/esm/dialog/style/css/index.css +88 -0
- package/esm/dialog/style/index.less +16 -4
- package/esm/ellipsis/index.d.ts +2 -2
- package/esm/ellipsis/index.js +2 -2
- package/esm/image-preview/index.js +1 -0
- package/esm/index-bar/style/css/index.css +28 -5
- package/esm/index-bar/style/index.less +10 -10
- package/esm/pagination/arrow.js +6 -3
- package/esm/pagination/style/css/index.css +21 -6
- package/esm/pagination/style/index.less +9 -9
- package/esm/picker/style/css/index.css +8 -0
- package/esm/picker/style/index.less +2 -2
- package/esm/progress/style/css/index.css +20 -0
- package/esm/progress/style/index.less +5 -5
- package/esm/search-bar/style/css/index.css +18 -0
- package/esm/search-bar/style/index.less +5 -5
- package/esm/slider/hooks/index.d.ts +1 -1
- package/esm/slider/index.d.ts +10 -0
- package/esm/slider/index.js +1 -0
- package/esm/slider/thumb.d.ts +6 -5
- package/esm/slider/thumb.js +19 -17
- package/package.json +3 -3
- package/tokens/app/arcodesign/default/css-variables.less +3 -4
- package/tokens/app/arcodesign/default/index.d.ts +0 -1
- package/tokens/app/arcodesign/default/index.js +3 -4
- package/tokens/app/arcodesign/default/index.json +9 -21
- package/tokens/app/arcodesign/default/index.less +3 -4
- package/umd/dialog/style/css/index.css +88 -0
- package/umd/dialog/style/index.less +16 -4
- package/umd/ellipsis/index.d.ts +2 -2
- package/umd/ellipsis/index.js +2 -2
- package/umd/image-preview/index.js +1 -0
- package/umd/index-bar/style/css/index.css +28 -5
- package/umd/index-bar/style/index.less +10 -10
- package/umd/pagination/arrow.js +6 -3
- package/umd/pagination/style/css/index.css +21 -6
- package/umd/pagination/style/index.less +9 -9
- package/umd/picker/style/css/index.css +8 -0
- package/umd/picker/style/index.less +2 -2
- package/umd/progress/style/css/index.css +20 -0
- package/umd/progress/style/index.less +5 -5
- package/umd/search-bar/style/css/index.css +18 -0
- package/umd/search-bar/style/index.less +5 -5
- package/umd/slider/hooks/index.d.ts +1 -1
- package/umd/slider/index.d.ts +10 -0
- package/umd/slider/index.js +1 -0
- package/umd/slider/thumb.d.ts +6 -5
- package/umd/slider/thumb.js +23 -23
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,19 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [2.30.5](https://github.com/arco-design/arco-design-mobile/compare/@arco-design/mobile-react@2.30.4...@arco-design/mobile-react@2.30.5) (2023-12-19)
|
7
|
+
|
8
|
+
|
9
|
+
### Bug Fixes
|
10
|
+
|
11
|
+
* `ImagePreview` disable duplicate preventDefault ([#212](https://github.com/arco-design/arco-design-mobile/issues/212)) ([d91d251](https://github.com/arco-design/arco-design-mobile/commit/d91d251a64bd64ae914e88c119dda442bd72d722))
|
12
|
+
* `Slider` support custom "Popover" element ([#211](https://github.com/arco-design/arco-design-mobile/issues/211)) ([716dda1](https://github.com/arco-design/arco-design-mobile/commit/716dda1d273d3b77aa5072d2b3849776790c01e3))
|
13
|
+
* rtl for `Progress`, `Pagination`, `Picker`, `SearchBar`, `Dialog`, `IndexBar` ([#213](https://github.com/arco-design/arco-design-mobile/issues/213)) ([498a777](https://github.com/arco-design/arco-design-mobile/commit/498a777992fc44410944ddc17bd2090c9b06a2f2))
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
6
19
|
## [2.30.4](https://github.com/arco-design/arco-design-mobile/compare/@arco-design/mobile-react@2.30.3...@arco-design/mobile-react@2.30.4) (2023-12-14)
|
7
20
|
|
8
21
|
|
package/README.en-US.md
CHANGED
@@ -59,8 +59,8 @@ React & ReactDOM: **<a href="https://reactjs.org/docs/cdn-links.html" target="_b
|
|
59
59
|
React Transition Group: **<a href="https://reactcommunity.org/react-transition-group/" target="_blank">Click here</a>**
|
60
60
|
|
61
61
|
```
|
62
|
-
<link ref="stylesheet" href="https://unpkg.com/@arco-design/mobile-react@2.30.
|
63
|
-
<script src="https://unpkg.com/@arco-design/mobile-react@2.30.
|
62
|
+
<link ref="stylesheet" href="https://unpkg.com/@arco-design/mobile-react@2.30.4/dist/style.min.css">
|
63
|
+
<script src="https://unpkg.com/@arco-design/mobile-react@2.30.4/dist/index.min.js"></script>
|
64
64
|
```
|
65
65
|
|
66
66
|
## Full import
|
package/README.md
CHANGED
@@ -59,8 +59,8 @@ React & ReactDOM: **<a href="https://reactjs.org/docs/cdn-links.html" target="
|
|
59
59
|
React Transition Group: **<a href="https://reactcommunity.org/react-transition-group/" target="_blank">戳这里获取</a>**
|
60
60
|
|
61
61
|
```
|
62
|
-
<link ref="stylesheet" href="https://unpkg.com/@arco-design/mobile-react@2.30.
|
63
|
-
<script src="https://unpkg.com/@arco-design/mobile-react@2.30.
|
62
|
+
<link ref="stylesheet" href="https://unpkg.com/@arco-design/mobile-react@2.30.4/dist/style.min.css">
|
63
|
+
<script src="https://unpkg.com/@arco-design/mobile-react@2.30.4/dist/index.min.js"></script>
|
64
64
|
```
|
65
65
|
|
66
66
|
## 引入全部
|
@@ -655,6 +655,10 @@
|
|
655
655
|
.arco-dialog-body.left {
|
656
656
|
text-align: left;
|
657
657
|
}
|
658
|
+
[dir="rtl"] .arco-dialog-header.left,
|
659
|
+
[dir="rtl"] .arco-dialog-body.left {
|
660
|
+
text-align: right;
|
661
|
+
}
|
658
662
|
.arco-dialog-header.center,
|
659
663
|
.arco-dialog-body.center {
|
660
664
|
text-align: center;
|
@@ -663,6 +667,10 @@
|
|
663
667
|
.arco-dialog-body.right {
|
664
668
|
text-align: right;
|
665
669
|
}
|
670
|
+
[dir="rtl"] .arco-dialog-header.right,
|
671
|
+
[dir="rtl"] .arco-dialog-body.right {
|
672
|
+
text-align: left;
|
673
|
+
}
|
666
674
|
.arco-dialog-header.android,
|
667
675
|
.arco-dialog-body.sub-title.android {
|
668
676
|
padding-top: 0.4rem ;
|
@@ -693,6 +701,9 @@
|
|
693
701
|
justify-content: flex-end;
|
694
702
|
text-align: right;
|
695
703
|
}
|
704
|
+
[dir="rtl"] .arco-dialog-footer.android {
|
705
|
+
text-align: left;
|
706
|
+
}
|
696
707
|
.arco-dialog-footer.android .dialog-footer-button {
|
697
708
|
color: #1a74ff ;
|
698
709
|
font-size: 0.3rem ;
|
@@ -701,6 +712,10 @@
|
|
701
712
|
.arco-dialog-footer.android .dialog-footer-button:not(:last-child) {
|
702
713
|
margin-right: 0.56rem ;
|
703
714
|
}
|
715
|
+
[dir="rtl"] .arco-dialog-footer.android .dialog-footer-button:not(:last-child) {
|
716
|
+
margin-right: initial;
|
717
|
+
margin-left: 0.56rem ;
|
718
|
+
}
|
704
719
|
.arco-dialog-footer.ios {
|
705
720
|
overflow: hidden;
|
706
721
|
}
|
@@ -793,6 +808,44 @@
|
|
793
808
|
border-radius: 0;
|
794
809
|
}
|
795
810
|
}
|
811
|
+
[dir='rtl'] .arco-dialog-footer.ios:not(.collapsed):not(.type-button) .dialog-footer-button:not(:last-child) {
|
812
|
+
position: relative;
|
813
|
+
border-width: 0;
|
814
|
+
}
|
815
|
+
[dir='rtl'] .arco-dialog-footer.ios:not(.collapsed):not(.type-button) .dialog-footer-button:not(:last-child)::before {
|
816
|
+
content: '';
|
817
|
+
width: 1PX;
|
818
|
+
height: 100%;
|
819
|
+
position: absolute;
|
820
|
+
left: 0;
|
821
|
+
top: 0;
|
822
|
+
z-index: 1;
|
823
|
+
border-left-style: solid;
|
824
|
+
border-left-width: 1PX;
|
825
|
+
border-left-color: #e5e6eb;
|
826
|
+
box-sizing: border-box;
|
827
|
+
transform-origin: left top;
|
828
|
+
-webkit-transform-origin: left top;
|
829
|
+
pointer-events: none;
|
830
|
+
border-radius: 0;
|
831
|
+
}
|
832
|
+
@media (-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2) {
|
833
|
+
[dir='rtl'] .arco-dialog-footer.ios:not(.collapsed):not(.type-button) .dialog-footer-button:not(:last-child)::before {
|
834
|
+
transform: scaleX(0.5);
|
835
|
+
-webkit-transform: scaleX(0.5);
|
836
|
+
border-radius: 0;
|
837
|
+
}
|
838
|
+
}
|
839
|
+
@media (-webkit-min-device-pixel-ratio: 3), (min-device-pixel-ratio: 3) {
|
840
|
+
[dir='rtl'] .arco-dialog-footer.ios:not(.collapsed):not(.type-button) .dialog-footer-button:not(:last-child)::before {
|
841
|
+
transform: scaleX(0.33333333);
|
842
|
+
-webkit-transform: scaleX(0.33333333);
|
843
|
+
border-radius: 0;
|
844
|
+
}
|
845
|
+
}
|
846
|
+
[dir='rtl'] .arco-dialog-footer.ios:not(.collapsed):not(.type-button) .dialog-footer-button:not(:last-child)::after {
|
847
|
+
display: none;
|
848
|
+
}
|
796
849
|
.arco-dialog-footer.ios.collapsed {
|
797
850
|
-webkit-box-orient: vertical;
|
798
851
|
-webkit-box-direction: normal;
|
@@ -962,6 +1015,41 @@
|
|
962
1015
|
border-radius: 0;
|
963
1016
|
}
|
964
1017
|
}
|
1018
|
+
.arco-theme-dark [dir='rtl'] .arco-dialog-footer.ios:not(.collapsed):not(.type-button) .dialog-footer-button:not(:last-child) {
|
1019
|
+
position: relative;
|
1020
|
+
border-width: 0;
|
1021
|
+
}
|
1022
|
+
.arco-theme-dark [dir='rtl'] .arco-dialog-footer.ios:not(.collapsed):not(.type-button) .dialog-footer-button:not(:last-child)::before {
|
1023
|
+
content: '';
|
1024
|
+
width: 1PX;
|
1025
|
+
height: 100%;
|
1026
|
+
position: absolute;
|
1027
|
+
left: 0;
|
1028
|
+
top: 0;
|
1029
|
+
z-index: 1;
|
1030
|
+
border-left-style: solid;
|
1031
|
+
border-left-width: 1PX;
|
1032
|
+
border-left-color: #484849;
|
1033
|
+
box-sizing: border-box;
|
1034
|
+
transform-origin: left top;
|
1035
|
+
-webkit-transform-origin: left top;
|
1036
|
+
pointer-events: none;
|
1037
|
+
border-radius: 0;
|
1038
|
+
}
|
1039
|
+
@media (-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2) {
|
1040
|
+
.arco-theme-dark [dir='rtl'] .arco-dialog-footer.ios:not(.collapsed):not(.type-button) .dialog-footer-button:not(:last-child)::before {
|
1041
|
+
transform: scaleX(0.5);
|
1042
|
+
-webkit-transform: scaleX(0.5);
|
1043
|
+
border-radius: 0;
|
1044
|
+
}
|
1045
|
+
}
|
1046
|
+
@media (-webkit-min-device-pixel-ratio: 3), (min-device-pixel-ratio: 3) {
|
1047
|
+
.arco-theme-dark [dir='rtl'] .arco-dialog-footer.ios:not(.collapsed):not(.type-button) .dialog-footer-button:not(:last-child)::before {
|
1048
|
+
transform: scaleX(0.33333333);
|
1049
|
+
-webkit-transform: scaleX(0.33333333);
|
1050
|
+
border-radius: 0;
|
1051
|
+
}
|
1052
|
+
}
|
965
1053
|
.arco-theme-dark .arco-dialog-footer.ios.collapsed .dialog-footer-button {
|
966
1054
|
position: relative;
|
967
1055
|
border-width: 0;
|
@@ -147,7 +147,7 @@
|
|
147
147
|
&-body {
|
148
148
|
|
149
149
|
&.left {
|
150
|
-
text-align
|
150
|
+
.set-value-with-rtl(text-align, left);
|
151
151
|
}
|
152
152
|
|
153
153
|
&.center {
|
@@ -155,7 +155,7 @@
|
|
155
155
|
}
|
156
156
|
|
157
157
|
&.right {
|
158
|
-
text-align
|
158
|
+
.set-value-with-rtl(text-align, right);
|
159
159
|
}
|
160
160
|
}
|
161
161
|
|
@@ -185,7 +185,7 @@
|
|
185
185
|
.use-var(padding-top, dialog-android-body-footer-gutter);
|
186
186
|
.use-var(padding-bottom, dialog-android-vertical-padding);
|
187
187
|
justify-content: flex-end;
|
188
|
-
text-align
|
188
|
+
.set-value-with-rtl(text-align, right);
|
189
189
|
|
190
190
|
.dialog-footer-button {
|
191
191
|
.use-var(color, dialog-footer-android-color);
|
@@ -193,7 +193,7 @@
|
|
193
193
|
.use-var(line-height, dialog-footer-android-line-height);
|
194
194
|
|
195
195
|
&:not(:last-child) {
|
196
|
-
.use-var(margin-right, dialog-footer-android-button-gutter);
|
196
|
+
.use-var-with-rtl(margin-right, dialog-footer-android-button-gutter);
|
197
197
|
}
|
198
198
|
}
|
199
199
|
}
|
@@ -218,6 +218,13 @@
|
|
218
218
|
|
219
219
|
&:not(:last-child) {
|
220
220
|
.onepx-border-var(right, line-color);
|
221
|
+
|
222
|
+
[dir='rtl'] & {
|
223
|
+
.onepx-border-var(left, line-color);
|
224
|
+
&::after {
|
225
|
+
display: none;
|
226
|
+
}
|
227
|
+
}
|
221
228
|
}
|
222
229
|
}
|
223
230
|
}
|
@@ -332,6 +339,11 @@
|
|
332
339
|
@{arco-dark-mode-selector} & {
|
333
340
|
.onepx-border-var(right, dark-line-color);
|
334
341
|
}
|
342
|
+
[dir='rtl'] & {
|
343
|
+
@{arco-dark-mode-selector} & {
|
344
|
+
.onepx-border-var(left, dark-line-color);
|
345
|
+
}
|
346
|
+
}
|
335
347
|
}
|
336
348
|
}
|
337
349
|
}
|
package/cjs/ellipsis/index.d.ts
CHANGED
@@ -2,8 +2,8 @@ import React from 'react';
|
|
2
2
|
import { EllipsisProps, EllipsisRef } from './type';
|
3
3
|
export * from './type';
|
4
4
|
/**
|
5
|
-
*
|
6
|
-
* @en Text ellipsis component supports multi-line abbreviations, rich text, custom abbreviations, tail character filtering, etc.
|
5
|
+
* 文本缩略组件,支持多行缩略、富文本、自定义缩略符、尾字符过滤等。如果传入的文本内容中包含换行符号`\n`,建议将`\n`替换为`<br/>`,并设置`dangerouslyUseInnerHTML=true`。
|
6
|
+
* @en Text ellipsis component supports multi-line abbreviations, rich text, custom abbreviations, tail character filtering, etc. If the incoming text contains newline characters `\n`, it is recommended to replace `\n` with `<br/>`, and set `dangerouslyUseInnerHTML=true`.
|
7
7
|
* @type 信息展示
|
8
8
|
* @type_en Data Display
|
9
9
|
* @name 文本缩略
|
package/cjs/ellipsis/index.js
CHANGED
@@ -32,8 +32,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
32
32
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
33
33
|
|
34
34
|
/**
|
35
|
-
*
|
36
|
-
* @en Text ellipsis component supports multi-line abbreviations, rich text, custom abbreviations, tail character filtering, etc.
|
35
|
+
* 文本缩略组件,支持多行缩略、富文本、自定义缩略符、尾字符过滤等。如果传入的文本内容中包含换行符号`\n`,建议将`\n`替换为`<br/>`,并设置`dangerouslyUseInnerHTML=true`。
|
36
|
+
* @en Text ellipsis component supports multi-line abbreviations, rich text, custom abbreviations, tail character filtering, etc. If the incoming text contains newline characters `\n`, it is recommended to replace `\n` with `<br/>`, and set `dangerouslyUseInnerHTML=true`.
|
37
37
|
* @type 信息展示
|
38
38
|
* @type_en Data Display
|
39
39
|
* @name 文本缩略
|
@@ -522,6 +522,10 @@
|
|
522
522
|
-webkit-align-items: center;
|
523
523
|
align-items: center;
|
524
524
|
}
|
525
|
+
[dir="rtl"] .arco-index-bar-group-title {
|
526
|
+
padding-left: initial;
|
527
|
+
padding-right: 0.32rem ;
|
528
|
+
}
|
525
529
|
.arco-index-bar-group-item {
|
526
530
|
height: 1.08rem ;
|
527
531
|
display: -webkit-box;
|
@@ -533,6 +537,10 @@
|
|
533
537
|
margin-left: 0.32rem ;
|
534
538
|
font-size: 0.32rem ;
|
535
539
|
}
|
540
|
+
[dir="rtl"] .arco-index-bar-group-item {
|
541
|
+
margin-left: initial;
|
542
|
+
margin-right: 0.32rem ;
|
543
|
+
}
|
536
544
|
.arco-index-bar-group-item:not(:last-child) {
|
537
545
|
position: relative;
|
538
546
|
border-width: 0;
|
@@ -578,9 +586,13 @@
|
|
578
586
|
-webkit-user-select: none;
|
579
587
|
user-select: none;
|
580
588
|
}
|
581
|
-
.arco-index-bar-sidebar
|
589
|
+
[dir="rtl"] .arco-index-bar-sidebar {
|
590
|
+
right: initial;
|
582
591
|
left: 0;
|
583
592
|
}
|
593
|
+
.arco-index-bar-sidebar-touching {
|
594
|
+
width: 100%;
|
595
|
+
}
|
584
596
|
.arco-index-bar-sidebar-item {
|
585
597
|
display: -webkit-box;
|
586
598
|
display: -webkit-flex;
|
@@ -623,25 +635,36 @@
|
|
623
635
|
border-radius: 9999px;
|
624
636
|
text-align: center;
|
625
637
|
padding: 0 0.16rem ;
|
626
|
-
background:
|
638
|
+
background: #333333 ;
|
627
639
|
right: 0.72rem ;
|
628
640
|
font-size: 0.48rem ;
|
629
641
|
color: #FFFFFF ;
|
630
642
|
}
|
643
|
+
[dir="rtl"] .arco-index-bar-sidebar-sweat {
|
644
|
+
right: initial;
|
645
|
+
left: 0.72rem ;
|
646
|
+
}
|
631
647
|
.arco-index-bar-sidebar-sweat::before {
|
632
648
|
content: '';
|
633
649
|
position: absolute;
|
634
650
|
top: 0;
|
635
651
|
bottom: 0;
|
636
652
|
margin: auto;
|
637
|
-
right: -0.
|
653
|
+
right: -0.56rem ;
|
638
654
|
width: 0;
|
639
655
|
height: 0;
|
640
656
|
border: 0.36rem solid transparent ;
|
641
|
-
border:
|
642
|
-
border-left-color: rgba(0, 0, 0, 0.8) ;
|
657
|
+
border-left-color: #333333 ;
|
643
658
|
border-radius: 4px;
|
644
659
|
}
|
660
|
+
[dir="rtl"] .arco-index-bar-sidebar-sweat::before {
|
661
|
+
right: initial;
|
662
|
+
left: -0.56rem ;
|
663
|
+
}
|
664
|
+
[dir="rtl"] .arco-index-bar-sidebar-sweat::before {
|
665
|
+
border-left-color: initial;
|
666
|
+
border-right-color: #333333 ;
|
667
|
+
}
|
645
668
|
.arco-index-bar-sidebar-toast {
|
646
669
|
position: absolute;
|
647
670
|
background: rgba(0, 0, 0, 0.8) ;
|
@@ -18,7 +18,7 @@
|
|
18
18
|
.use-var(color, index-bar-group-active-color);
|
19
19
|
}
|
20
20
|
&-title {
|
21
|
-
.use-var(padding-left, index-bar-group-left-spacing);
|
21
|
+
.use-var-with-rtl(padding-left, index-bar-group-left-spacing);
|
22
22
|
.use-var(height, index-bar-group-title-height);
|
23
23
|
.use-var(background, index-bar-group-title-background);
|
24
24
|
.use-var(font-size, index-bar-group-title-font-size);
|
@@ -30,7 +30,7 @@
|
|
30
30
|
.use-var(height, index-bar-group-item-height);
|
31
31
|
display: flex;
|
32
32
|
align-items: center;
|
33
|
-
.use-var(margin-left, index-bar-group-left-spacing);
|
33
|
+
.use-var-with-rtl(margin-left, index-bar-group-left-spacing);
|
34
34
|
.use-var(font-size, index-bar-group-item-font-size);
|
35
35
|
|
36
36
|
&:not(:last-child) {
|
@@ -40,16 +40,17 @@
|
|
40
40
|
}
|
41
41
|
|
42
42
|
&-sidebar {
|
43
|
-
&-touching {
|
44
|
-
left: 0;
|
45
|
-
}
|
46
43
|
position: absolute;
|
47
44
|
z-index: 2;
|
48
|
-
right
|
45
|
+
.set-prop-with-rtl(right, 0);
|
49
46
|
top: 50%;
|
50
47
|
transform: translateY(-50%) translateZ(0);
|
51
48
|
user-select: none;
|
52
49
|
|
50
|
+
&-touching {
|
51
|
+
width: 100%;
|
52
|
+
}
|
53
|
+
|
53
54
|
&-item {
|
54
55
|
display: flex;
|
55
56
|
justify-content: flex-end;
|
@@ -84,7 +85,7 @@
|
|
84
85
|
text-align: center;
|
85
86
|
.use-var(padding, index-bar-sidebar-sweat-padding);
|
86
87
|
.use-var(background, index-bar-sidebar-sweat-background);
|
87
|
-
.use-var(right, index-bar-sidebar-sweat-right);
|
88
|
+
.use-var-with-rtl(right, index-bar-sidebar-sweat-right);
|
88
89
|
.use-var(font-size, index-bar-sidebar-sweat-font-size);
|
89
90
|
.use-var(color, index-bar-sidebar-sweat-color);
|
90
91
|
&::before {
|
@@ -93,12 +94,11 @@
|
|
93
94
|
top: 0;
|
94
95
|
bottom: 0;
|
95
96
|
margin: auto;
|
96
|
-
.use-var(right, index-bar-sidebar-sweat-triangle-position);
|
97
|
+
.use-var-with-rtl(right, index-bar-sidebar-sweat-triangle-position);
|
97
98
|
width: 0;
|
98
99
|
height: 0;
|
99
100
|
.use-var(border, index-bar-sidebar-sweat-triangle-border);
|
100
|
-
border
|
101
|
-
.use-var(border-left-color, index-bar-sidebar-sweat-background);
|
101
|
+
.use-var-with-rtl(border-left-color, index-bar-sidebar-sweat-background);
|
102
102
|
border-radius: 4px;
|
103
103
|
}
|
104
104
|
}
|
package/cjs/pagination/arrow.js
CHANGED
@@ -9,10 +9,13 @@ var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
10
10
|
function Arrow() {
|
11
11
|
return /*#__PURE__*/_react.default.createElement("svg", {
|
12
|
-
width: "
|
12
|
+
width: "2",
|
13
13
|
height: "14",
|
14
|
-
viewBox: "
|
15
|
-
fill: "none"
|
14
|
+
viewBox: "3 0 2 14",
|
15
|
+
fill: "none",
|
16
|
+
style: {
|
17
|
+
overflow: 'visible'
|
18
|
+
}
|
16
19
|
}, /*#__PURE__*/_react.default.createElement("path", {
|
17
20
|
fillRule: "evenodd",
|
18
21
|
clipRule: "evenodd",
|
@@ -527,6 +527,10 @@
|
|
527
527
|
justify-content: flex-end;
|
528
528
|
margin-right: 0.48rem ;
|
529
529
|
}
|
530
|
+
[dir="rtl"] .arco-pagination-prev-field.flex-center {
|
531
|
+
margin-right: initial;
|
532
|
+
margin-left: 0.48rem ;
|
533
|
+
}
|
530
534
|
.arco-pagination-next-field {
|
531
535
|
-webkit-box-pack: end;
|
532
536
|
-webkit-justify-content: flex-end;
|
@@ -538,6 +542,10 @@
|
|
538
542
|
justify-content: flex-start;
|
539
543
|
margin-left: 0.48rem ;
|
540
544
|
}
|
545
|
+
[dir="rtl"] .arco-pagination-next-field.flex-center {
|
546
|
+
margin-left: initial;
|
547
|
+
margin-right: 0.48rem ;
|
548
|
+
}
|
541
549
|
.arco-pagination-field {
|
542
550
|
cursor: pointer;
|
543
551
|
text-align: center;
|
@@ -572,10 +580,18 @@
|
|
572
580
|
-webkit-align-items: center;
|
573
581
|
align-items: center;
|
574
582
|
}
|
583
|
+
[dir="rtl"] .arco-pagination-field .btn-icon {
|
584
|
+
-webkit-transform: scaleX(-1);
|
585
|
+
transform: scaleX(-1);
|
586
|
+
}
|
575
587
|
.arco-pagination-field .btn-icon.next {
|
576
588
|
-webkit-transform: rotateY(180deg);
|
577
589
|
transform: rotateY(180deg);
|
578
590
|
}
|
591
|
+
[dir="rtl"] .arco-pagination-field .btn-icon.next {
|
592
|
+
-webkit-transform: none;
|
593
|
+
transform: none;
|
594
|
+
}
|
579
595
|
.arco-pagination-field.button {
|
580
596
|
padding: 0.12rem 0.32rem ;
|
581
597
|
border-radius: 0.04rem ;
|
@@ -592,13 +608,12 @@
|
|
592
608
|
}
|
593
609
|
.arco-pagination-field.button .btn-icon + .btn-text,
|
594
610
|
.arco-pagination-field.button .btn-text + .btn-icon {
|
595
|
-
margin-left: 0.
|
596
|
-
}
|
597
|
-
.arco-pagination-field.button .btn-icon:first-child {
|
598
|
-
margin-left: -0.06rem ;
|
611
|
+
margin-left: 0.22rem ;
|
599
612
|
}
|
600
|
-
.arco-pagination-field.button .btn-icon
|
601
|
-
|
613
|
+
[dir="rtl"] .arco-pagination-field.button .btn-icon + .btn-text,
|
614
|
+
[dir="rtl"] .arco-pagination-field.button .btn-text + .btn-icon {
|
615
|
+
margin-left: initial;
|
616
|
+
margin-right: 0.22rem ;
|
602
617
|
}
|
603
618
|
.arco-pagination.android .arco-pagination-field.button .btn-text {
|
604
619
|
padding-top: 0.04rem;
|
@@ -16,14 +16,14 @@
|
|
16
16
|
justify-content: flex-start;
|
17
17
|
&.flex-center {
|
18
18
|
justify-content: flex-end;
|
19
|
-
.use-var(margin-right, pagination-center-field-gutter);
|
19
|
+
.use-var-with-rtl(margin-right, pagination-center-field-gutter);
|
20
20
|
}
|
21
21
|
}
|
22
22
|
&-next-field {
|
23
23
|
justify-content: flex-end;
|
24
24
|
&.flex-center {
|
25
25
|
justify-content: flex-start;
|
26
|
-
.use-var(margin-left, pagination-center-field-gutter);
|
26
|
+
.use-var-with-rtl(margin-left, pagination-center-field-gutter);
|
27
27
|
}
|
28
28
|
}
|
29
29
|
|
@@ -41,8 +41,14 @@
|
|
41
41
|
.btn-icon {
|
42
42
|
display: inline-flex;
|
43
43
|
align-items: center;
|
44
|
+
[dir="rtl"] & {
|
45
|
+
transform: scaleX(-1);
|
46
|
+
}
|
44
47
|
&.next {
|
45
48
|
transform: rotateY(180deg);
|
49
|
+
[dir="rtl"] & {
|
50
|
+
transform: none;
|
51
|
+
}
|
46
52
|
}
|
47
53
|
}
|
48
54
|
}
|
@@ -61,13 +67,7 @@
|
|
61
67
|
}
|
62
68
|
.btn-icon + .btn-text,
|
63
69
|
.btn-text + .btn-icon {
|
64
|
-
.use-var(margin-left, pagination-field-btn-icon-text-gutter);
|
65
|
-
}
|
66
|
-
.btn-icon:first-child {
|
67
|
-
.use-var(margin-left, pagination-field-btn-icon-side-margin);
|
68
|
-
}
|
69
|
-
.btn-icon:last-child {
|
70
|
-
.use-var(margin-right, pagination-field-btn-icon-side-margin);
|
70
|
+
.use-var-with-rtl(margin-left, pagination-field-btn-icon-text-gutter);
|
71
71
|
}
|
72
72
|
}
|
73
73
|
&.android &-field.button {
|
@@ -536,10 +536,18 @@
|
|
536
536
|
left: 0;
|
537
537
|
color: #165DFF ;
|
538
538
|
}
|
539
|
+
[dir="rtl"] .arco-picker-header-btn.left {
|
540
|
+
left: initial;
|
541
|
+
right: 0;
|
542
|
+
}
|
539
543
|
.arco-picker-header-btn.right {
|
540
544
|
right: 0;
|
541
545
|
color: #165DFF ;
|
542
546
|
}
|
547
|
+
[dir="rtl"] .arco-picker-header-btn.right {
|
548
|
+
right: initial;
|
549
|
+
left: 0;
|
550
|
+
}
|
543
551
|
/***************************************************
|
544
552
|
* *
|
545
553
|
* Arco Theme Style *
|
@@ -33,12 +33,12 @@
|
|
33
33
|
.use-var(padding, picker-button-padding);
|
34
34
|
|
35
35
|
&.left {
|
36
|
-
left
|
36
|
+
.set-prop-with-rtl(left, 0);
|
37
37
|
.use-var(color, picker-left-btn-color);
|
38
38
|
}
|
39
39
|
|
40
40
|
&.right {
|
41
|
-
right
|
41
|
+
.set-prop-with-rtl(right, 0);
|
42
42
|
.use-var(color, picker-right-btn-color);
|
43
43
|
}
|
44
44
|
}
|
@@ -500,6 +500,10 @@
|
|
500
500
|
left: 0;
|
501
501
|
z-index: 1001;
|
502
502
|
}
|
503
|
+
[dir="rtl"] .arco-progress.progress-fixed {
|
504
|
+
left: initial;
|
505
|
+
right: 0;
|
506
|
+
}
|
503
507
|
.arco-progress .progress-wrapper {
|
504
508
|
position: relative;
|
505
509
|
width: 100%;
|
@@ -540,6 +544,10 @@
|
|
540
544
|
-webkit-transform: translateY(-50%);
|
541
545
|
transform: translateY(-50%);
|
542
546
|
}
|
547
|
+
[dir="rtl"] .arco-progress .progress-wrapper .progress-bar .wrapper {
|
548
|
+
right: initial;
|
549
|
+
left: 0;
|
550
|
+
}
|
543
551
|
.arco-progress .progress-wrapper .filleted {
|
544
552
|
border-radius: 100PX;
|
545
553
|
}
|
@@ -548,10 +556,22 @@
|
|
548
556
|
margin-left: 0.16rem ;
|
549
557
|
color: #165DFF ;
|
550
558
|
}
|
559
|
+
[dir="rtl"] .arco-progress .progress-wrapper .text {
|
560
|
+
margin-left: initial;
|
561
|
+
margin-right: 0.16rem ;
|
562
|
+
}
|
551
563
|
.arco-progress .progress-wrapper .text-left {
|
552
564
|
margin-left: 0;
|
553
565
|
margin-right: 0.16rem ;
|
554
566
|
}
|
567
|
+
[dir="rtl"] .arco-progress .progress-wrapper .text-left {
|
568
|
+
margin-left: initial;
|
569
|
+
margin-right: 0;
|
570
|
+
}
|
571
|
+
[dir="rtl"] .arco-progress .progress-wrapper .text-left {
|
572
|
+
margin-right: initial;
|
573
|
+
margin-left: 0.16rem ;
|
574
|
+
}
|
555
575
|
.arco-progress .progress-wrapper .text-innerLeft {
|
556
576
|
position: absolute;
|
557
577
|
z-index: 1;
|
@@ -5,7 +5,7 @@
|
|
5
5
|
&.progress-fixed {
|
6
6
|
position: fixed;
|
7
7
|
width: 100%;
|
8
|
-
left
|
8
|
+
.set-prop-with-rtl(left, 0);
|
9
9
|
z-index: @full-screen-z-index + 1;;
|
10
10
|
}
|
11
11
|
|
@@ -39,7 +39,7 @@
|
|
39
39
|
|
40
40
|
.wrapper {
|
41
41
|
position: absolute;
|
42
|
-
right
|
42
|
+
.set-prop-with-rtl(right, 0);
|
43
43
|
top: 50%;
|
44
44
|
transform: translateY(-50%);
|
45
45
|
}
|
@@ -51,13 +51,13 @@
|
|
51
51
|
|
52
52
|
.text {
|
53
53
|
.use-var(font-size, progress-text-font-size);
|
54
|
-
.use-var(margin-left, progress-text-gutter);
|
54
|
+
.use-var-with-rtl(margin-left, progress-text-gutter);
|
55
55
|
.use-var(color, progress-primary-color);
|
56
56
|
}
|
57
57
|
|
58
58
|
.text-left {
|
59
|
-
margin-left
|
60
|
-
.use-var(margin-right, progress-text-gutter);
|
59
|
+
.set-prop-with-rtl(margin-left, 0);
|
60
|
+
.use-var-with-rtl(margin-right, progress-text-gutter);
|
61
61
|
}
|
62
62
|
|
63
63
|
.text-innerLeft {
|