@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.
Files changed (76) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.en-US.md +2 -2
  3. package/README.md +2 -2
  4. package/cjs/dialog/style/css/index.css +88 -0
  5. package/cjs/dialog/style/index.less +16 -4
  6. package/cjs/ellipsis/index.d.ts +2 -2
  7. package/cjs/ellipsis/index.js +2 -2
  8. package/cjs/image-preview/index.js +1 -0
  9. package/cjs/index-bar/style/css/index.css +28 -5
  10. package/cjs/index-bar/style/index.less +10 -10
  11. package/cjs/pagination/arrow.js +6 -3
  12. package/cjs/pagination/style/css/index.css +21 -6
  13. package/cjs/pagination/style/index.less +9 -9
  14. package/cjs/picker/style/css/index.css +8 -0
  15. package/cjs/picker/style/index.less +2 -2
  16. package/cjs/progress/style/css/index.css +20 -0
  17. package/cjs/progress/style/index.less +5 -5
  18. package/cjs/search-bar/style/css/index.css +18 -0
  19. package/cjs/search-bar/style/index.less +5 -5
  20. package/cjs/slider/hooks/index.d.ts +1 -1
  21. package/cjs/slider/index.d.ts +10 -0
  22. package/cjs/slider/index.js +1 -0
  23. package/cjs/slider/thumb.d.ts +6 -5
  24. package/cjs/slider/thumb.js +19 -20
  25. package/dist/index.js +34 -26
  26. package/dist/index.min.js +1 -1
  27. package/dist/style.css +146 -11
  28. package/dist/style.min.css +1 -1
  29. package/esm/dialog/style/css/index.css +88 -0
  30. package/esm/dialog/style/index.less +16 -4
  31. package/esm/ellipsis/index.d.ts +2 -2
  32. package/esm/ellipsis/index.js +2 -2
  33. package/esm/image-preview/index.js +1 -0
  34. package/esm/index-bar/style/css/index.css +28 -5
  35. package/esm/index-bar/style/index.less +10 -10
  36. package/esm/pagination/arrow.js +6 -3
  37. package/esm/pagination/style/css/index.css +21 -6
  38. package/esm/pagination/style/index.less +9 -9
  39. package/esm/picker/style/css/index.css +8 -0
  40. package/esm/picker/style/index.less +2 -2
  41. package/esm/progress/style/css/index.css +20 -0
  42. package/esm/progress/style/index.less +5 -5
  43. package/esm/search-bar/style/css/index.css +18 -0
  44. package/esm/search-bar/style/index.less +5 -5
  45. package/esm/slider/hooks/index.d.ts +1 -1
  46. package/esm/slider/index.d.ts +10 -0
  47. package/esm/slider/index.js +1 -0
  48. package/esm/slider/thumb.d.ts +6 -5
  49. package/esm/slider/thumb.js +19 -17
  50. package/package.json +3 -3
  51. package/tokens/app/arcodesign/default/css-variables.less +3 -4
  52. package/tokens/app/arcodesign/default/index.d.ts +0 -1
  53. package/tokens/app/arcodesign/default/index.js +3 -4
  54. package/tokens/app/arcodesign/default/index.json +9 -21
  55. package/tokens/app/arcodesign/default/index.less +3 -4
  56. package/umd/dialog/style/css/index.css +88 -0
  57. package/umd/dialog/style/index.less +16 -4
  58. package/umd/ellipsis/index.d.ts +2 -2
  59. package/umd/ellipsis/index.js +2 -2
  60. package/umd/image-preview/index.js +1 -0
  61. package/umd/index-bar/style/css/index.css +28 -5
  62. package/umd/index-bar/style/index.less +10 -10
  63. package/umd/pagination/arrow.js +6 -3
  64. package/umd/pagination/style/css/index.css +21 -6
  65. package/umd/pagination/style/index.less +9 -9
  66. package/umd/picker/style/css/index.css +8 -0
  67. package/umd/picker/style/index.less +2 -2
  68. package/umd/progress/style/css/index.css +20 -0
  69. package/umd/progress/style/index.less +5 -5
  70. package/umd/search-bar/style/css/index.css +18 -0
  71. package/umd/search-bar/style/index.less +5 -5
  72. package/umd/slider/hooks/index.d.ts +1 -1
  73. package/umd/slider/index.d.ts +10 -0
  74. package/umd/slider/index.js +1 -0
  75. package/umd/slider/thumb.d.ts +6 -5
  76. package/umd/slider/thumb.js +23 -23
@@ -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: left;
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: right;
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: right;
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
  }
@@ -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 文本缩略
@@ -6,8 +6,8 @@ import JsEllipsis from './components/js-ellipsis';
6
6
  import NativeEllipsis from './components/native-ellipsis';
7
7
  export * from './type';
8
8
  /**
9
- * 文本缩略组件,支持多行缩略、富文本、自定义缩略符、尾字符过滤等。
10
- * @en Text ellipsis component supports multi-line abbreviations, rich text, custom abbreviations, tail character filtering, etc.
9
+ * 文本缩略组件,支持多行缩略、富文本、自定义缩略符、尾字符过滤等。如果传入的文本内容中包含换行符号`\n`,建议将`\n`替换为`<br/>`,并设置`dangerouslyUseInnerHTML=true`。
10
+ * @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`.
11
11
  * @type 信息展示
12
12
  * @type_en Data Display
13
13
  * @name 文本缩略
@@ -230,6 +230,7 @@ var ImagePreview = /*#__PURE__*/forwardRef(function (props, ref) {
230
230
  dragMode: 'always',
231
231
  transformMode: 'matrix',
232
232
  useDomBoundary: false,
233
+ preventScroll: false,
233
234
  cubic: {
234
235
  scroll: scrollBezier
235
236
  },
@@ -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-touching {
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: rgba(0, 0, 0, 0.8) ;
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.54rem ;
653
+ right: -0.56rem ;
638
654
  width: 0;
639
655
  height: 0;
640
656
  border: 0.36rem solid transparent ;
641
- border: 18px solid transparent;
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: 0;
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: 18px solid transparent;
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
  }
@@ -1,10 +1,13 @@
1
1
  import React from 'react';
2
2
  export default function Arrow() {
3
3
  return /*#__PURE__*/React.createElement("svg", {
4
- width: "8",
4
+ width: "2",
5
5
  height: "14",
6
- viewBox: "0 0 8 14",
7
- fill: "none"
6
+ viewBox: "3 0 2 14",
7
+ fill: "none",
8
+ style: {
9
+ overflow: 'visible'
10
+ }
8
11
  }, /*#__PURE__*/React.createElement("path", {
9
12
  fillRule: "evenodd",
10
13
  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.16rem ;
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:last-child {
601
- margin-right: -0.06rem ;
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: 0;
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: 0;
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: 0;
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: 0;
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: 0;
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 {
@@ -538,9 +538,15 @@
538
538
  .arco-search-bar-input-left {
539
539
  text-align: left;
540
540
  }
541
+ [dir="rtl"] .arco-search-bar-input-left {
542
+ text-align: right;
543
+ }
541
544
  .arco-search-bar-input-right {
542
545
  text-align: right;
543
546
  }
547
+ [dir="rtl"] .arco-search-bar-input-right {
548
+ text-align: left;
549
+ }
544
550
  .arco-search-bar-input-center {
545
551
  text-align: center;
546
552
  }
@@ -570,11 +576,19 @@
570
576
  .arco-search-bar-prefix {
571
577
  margin-right: 0.18rem ;
572
578
  }
579
+ [dir="rtl"] .arco-search-bar-prefix {
580
+ margin-right: initial;
581
+ margin-left: 0.18rem ;
582
+ }
573
583
  .arco-search-bar-clear {
574
584
  color: #c9cdd4 ;
575
585
  font-size: 16PX ;
576
586
  padding-left: 0.32rem ;
577
587
  }
588
+ [dir="rtl"] .arco-search-bar-clear {
589
+ padding-left: initial;
590
+ padding-right: 0.32rem ;
591
+ }
578
592
  .arco-search-bar-search-icon {
579
593
  color: #86909c ;
580
594
  font-size: 0.32rem ;
@@ -584,6 +598,10 @@
584
598
  color: #165DFF ;
585
599
  font-size: 0.3rem ;
586
600
  }
601
+ [dir="rtl"] .arco-search-bar-cancel-btn {
602
+ margin-left: initial;
603
+ margin-right: 0.32rem ;
604
+ }
587
605
  .arco-search-bar-association {
588
606
  position: absolute;
589
607
  left: 0;
@@ -34,10 +34,10 @@
34
34
  .use-var(height, search-bar-input-height);
35
35
  .use-var(caret-color, search-bar-input-caret-color);
36
36
  &-left {
37
- text-align: left;
37
+ .set-value-with-rtl(text-align, left);
38
38
  }
39
39
  &-right {
40
- text-align: right;
40
+ .set-value-with-rtl(text-align, right);
41
41
  }
42
42
  &-center {
43
43
  text-align: center;
@@ -62,13 +62,13 @@
62
62
  }
63
63
 
64
64
  &-prefix {
65
- .use-var(margin-right, search-bar-prefix-margin-right);
65
+ .use-var-with-rtl(margin-right, search-bar-prefix-margin-right);
66
66
  }
67
67
 
68
68
  &-clear {
69
69
  .use-var(color, search-bar-clear-icon-color);
70
70
  .use-var(font-size, search-bar-clear-icon-font-size);
71
- .use-var(padding-left, search-bar-clear-icon-padding-left);
71
+ .use-var-with-rtl(padding-left, search-bar-clear-icon-padding-left);
72
72
  }
73
73
 
74
74
  &-search-icon {
@@ -77,7 +77,7 @@
77
77
  }
78
78
 
79
79
  &-cancel-btn {
80
- .use-var(margin-left, search-bar-cancel-btn-margin-left);
80
+ .use-var-with-rtl(margin-left, search-bar-cancel-btn-margin-left);
81
81
  .use-var(color, search-bar-cancel-btn-color);
82
82
  .use-var(font-size, search-bar-cancel-btn-font-size);
83
83
  }