@arco-design/mobile-react 2.31.3 → 2.31.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 (204) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.en-US.md +2 -2
  3. package/README.md +2 -2
  4. package/cjs/action-sheet/style/css/index.css +2 -2
  5. package/cjs/avatar/style/css/index.css +2 -2
  6. package/cjs/badge/style/css/index.css +2 -2
  7. package/cjs/button/style/css/index.css +2 -2
  8. package/cjs/carousel/style/css/index.css +2 -2
  9. package/cjs/cell/style/css/index.css +2 -2
  10. package/cjs/checkbox/style/css/index.css +2 -2
  11. package/cjs/circle-progress/style/css/index.css +2 -2
  12. package/cjs/collapse/style/css/index.css +2 -2
  13. package/cjs/count-down/style/css/index.css +2 -2
  14. package/cjs/date-picker/style/css/index.css +2 -2
  15. package/cjs/dialog/style/css/index.css +2 -2
  16. package/cjs/divider/style/css/index.css +2 -2
  17. package/cjs/dropdown/style/css/index.css +2 -2
  18. package/cjs/dropdown-menu/style/css/index.css +2 -2
  19. package/cjs/ellipsis/style/css/index.css +2 -2
  20. package/cjs/form/style/css/index.css +2 -2
  21. package/cjs/grid/style/css/index.css +2 -2
  22. package/cjs/image/style/css/index.css +2 -2
  23. package/cjs/image-picker/style/css/index.css +2 -2
  24. package/cjs/image-preview/style/css/index.css +2 -2
  25. package/cjs/index-bar/style/css/index.css +2 -2
  26. package/cjs/input/style/css/index.css +2 -2
  27. package/cjs/keyboard/style/css/index.css +2 -2
  28. package/cjs/load-more/style/css/index.css +2 -2
  29. package/cjs/loading/style/css/index.css +2 -2
  30. package/cjs/masking/style/css/index.css +2 -2
  31. package/cjs/nav-bar/style/css/index.css +2 -2
  32. package/cjs/notice-bar/style/css/index.css +2 -2
  33. package/cjs/notify/style/css/index.css +2 -2
  34. package/cjs/pagination/style/css/index.css +2 -2
  35. package/cjs/picker/style/css/index.css +2 -2
  36. package/cjs/picker-view/style/css/index.css +2 -2
  37. package/cjs/popover/style/css/index.css +2 -2
  38. package/cjs/popover/style/css/menu.css +2 -2
  39. package/cjs/popup/style/css/index.css +2 -2
  40. package/cjs/popup-swiper/style/css/index.css +2 -2
  41. package/cjs/progress/style/css/index.css +2 -2
  42. package/cjs/pull-refresh/style/css/index.css +2 -2
  43. package/cjs/radio/style/css/index.css +2 -2
  44. package/cjs/rate/style/css/index.css +2 -2
  45. package/cjs/search-bar/style/css/index.css +2 -2
  46. package/cjs/skeleton/style/css/index.css +2 -2
  47. package/cjs/slider/style/css/index.css +2 -2
  48. package/cjs/stepper/hooks/useInputEvent.d.ts +1 -0
  49. package/cjs/stepper/hooks/useInputEvent.js +3 -2
  50. package/cjs/stepper/hooks/useValue.d.ts +1 -0
  51. package/cjs/stepper/hooks/useValue.js +2 -1
  52. package/cjs/stepper/index.js +3 -1
  53. package/cjs/stepper/style/css/index.css +3 -2
  54. package/cjs/stepper/style/index.less +1 -0
  55. package/cjs/steps/style/css/index.css +2 -2
  56. package/cjs/sticky/style/css/index.css +2 -2
  57. package/cjs/swipe-action/style/css/index.css +2 -2
  58. package/cjs/swipe-load/style/css/index.css +2 -2
  59. package/cjs/switch/style/css/index.css +2 -2
  60. package/cjs/tab-bar/style/css/index.css +2 -2
  61. package/cjs/tabs/style/css/index.css +2 -2
  62. package/cjs/tag/style/css/index.css +2 -2
  63. package/cjs/textarea/style/css/index.css +2 -2
  64. package/cjs/toast/style/css/index.css +2 -2
  65. package/cjs/transition/style/css/index.css +2 -2
  66. package/cjs/uploader/style/css/index.css +2 -2
  67. package/dist/index.js +8 -4
  68. package/dist/index.min.js +1 -1
  69. package/dist/style.css +115 -114
  70. package/dist/style.min.css +1 -1
  71. package/esm/action-sheet/style/css/index.css +2 -2
  72. package/esm/avatar/style/css/index.css +2 -2
  73. package/esm/badge/style/css/index.css +2 -2
  74. package/esm/button/style/css/index.css +2 -2
  75. package/esm/carousel/style/css/index.css +2 -2
  76. package/esm/cell/style/css/index.css +2 -2
  77. package/esm/checkbox/style/css/index.css +2 -2
  78. package/esm/circle-progress/style/css/index.css +2 -2
  79. package/esm/collapse/style/css/index.css +2 -2
  80. package/esm/count-down/style/css/index.css +2 -2
  81. package/esm/date-picker/style/css/index.css +2 -2
  82. package/esm/dialog/style/css/index.css +2 -2
  83. package/esm/divider/style/css/index.css +2 -2
  84. package/esm/dropdown/style/css/index.css +2 -2
  85. package/esm/dropdown-menu/style/css/index.css +2 -2
  86. package/esm/ellipsis/style/css/index.css +2 -2
  87. package/esm/form/style/css/index.css +2 -2
  88. package/esm/grid/style/css/index.css +2 -2
  89. package/esm/image/style/css/index.css +2 -2
  90. package/esm/image-picker/style/css/index.css +2 -2
  91. package/esm/image-preview/style/css/index.css +2 -2
  92. package/esm/index-bar/style/css/index.css +2 -2
  93. package/esm/input/style/css/index.css +2 -2
  94. package/esm/keyboard/style/css/index.css +2 -2
  95. package/esm/load-more/style/css/index.css +2 -2
  96. package/esm/loading/style/css/index.css +2 -2
  97. package/esm/masking/style/css/index.css +2 -2
  98. package/esm/nav-bar/style/css/index.css +2 -2
  99. package/esm/notice-bar/style/css/index.css +2 -2
  100. package/esm/notify/style/css/index.css +2 -2
  101. package/esm/pagination/style/css/index.css +2 -2
  102. package/esm/picker/style/css/index.css +2 -2
  103. package/esm/picker-view/style/css/index.css +2 -2
  104. package/esm/popover/style/css/index.css +2 -2
  105. package/esm/popover/style/css/menu.css +2 -2
  106. package/esm/popup/style/css/index.css +2 -2
  107. package/esm/popup-swiper/style/css/index.css +2 -2
  108. package/esm/progress/style/css/index.css +2 -2
  109. package/esm/pull-refresh/style/css/index.css +2 -2
  110. package/esm/radio/style/css/index.css +2 -2
  111. package/esm/rate/style/css/index.css +2 -2
  112. package/esm/search-bar/style/css/index.css +2 -2
  113. package/esm/skeleton/style/css/index.css +2 -2
  114. package/esm/slider/style/css/index.css +2 -2
  115. package/esm/stepper/hooks/useInputEvent.d.ts +1 -0
  116. package/esm/stepper/hooks/useInputEvent.js +3 -2
  117. package/esm/stepper/hooks/useValue.d.ts +1 -0
  118. package/esm/stepper/hooks/useValue.js +2 -1
  119. package/esm/stepper/index.js +3 -1
  120. package/esm/stepper/style/css/index.css +3 -2
  121. package/esm/stepper/style/index.less +1 -0
  122. package/esm/steps/style/css/index.css +2 -2
  123. package/esm/sticky/style/css/index.css +2 -2
  124. package/esm/swipe-action/style/css/index.css +2 -2
  125. package/esm/swipe-load/style/css/index.css +2 -2
  126. package/esm/switch/style/css/index.css +2 -2
  127. package/esm/tab-bar/style/css/index.css +2 -2
  128. package/esm/tabs/style/css/index.css +2 -2
  129. package/esm/tag/style/css/index.css +2 -2
  130. package/esm/textarea/style/css/index.css +2 -2
  131. package/esm/toast/style/css/index.css +2 -2
  132. package/esm/transition/style/css/index.css +2 -2
  133. package/esm/uploader/style/css/index.css +2 -2
  134. package/package.json +3 -3
  135. package/style/css/public.css +2 -2
  136. package/tokens/app/arcodesign/default/css-variables.less +1 -0
  137. package/tokens/app/arcodesign/default/index.d.ts +1 -0
  138. package/tokens/app/arcodesign/default/index.js +1 -0
  139. package/tokens/app/arcodesign/default/index.json +12 -0
  140. package/tokens/app/arcodesign/default/index.less +1 -0
  141. package/tokens/mixin/index.less +2 -2
  142. package/umd/action-sheet/style/css/index.css +2 -2
  143. package/umd/avatar/style/css/index.css +2 -2
  144. package/umd/badge/style/css/index.css +2 -2
  145. package/umd/button/style/css/index.css +2 -2
  146. package/umd/carousel/style/css/index.css +2 -2
  147. package/umd/cell/style/css/index.css +2 -2
  148. package/umd/checkbox/style/css/index.css +2 -2
  149. package/umd/circle-progress/style/css/index.css +2 -2
  150. package/umd/collapse/style/css/index.css +2 -2
  151. package/umd/count-down/style/css/index.css +2 -2
  152. package/umd/date-picker/style/css/index.css +2 -2
  153. package/umd/dialog/style/css/index.css +2 -2
  154. package/umd/divider/style/css/index.css +2 -2
  155. package/umd/dropdown/style/css/index.css +2 -2
  156. package/umd/dropdown-menu/style/css/index.css +2 -2
  157. package/umd/ellipsis/style/css/index.css +2 -2
  158. package/umd/form/style/css/index.css +2 -2
  159. package/umd/grid/style/css/index.css +2 -2
  160. package/umd/image/style/css/index.css +2 -2
  161. package/umd/image-picker/style/css/index.css +2 -2
  162. package/umd/image-preview/style/css/index.css +2 -2
  163. package/umd/index-bar/style/css/index.css +2 -2
  164. package/umd/input/style/css/index.css +2 -2
  165. package/umd/keyboard/style/css/index.css +2 -2
  166. package/umd/load-more/style/css/index.css +2 -2
  167. package/umd/loading/style/css/index.css +2 -2
  168. package/umd/masking/style/css/index.css +2 -2
  169. package/umd/nav-bar/style/css/index.css +2 -2
  170. package/umd/notice-bar/style/css/index.css +2 -2
  171. package/umd/notify/style/css/index.css +2 -2
  172. package/umd/pagination/style/css/index.css +2 -2
  173. package/umd/picker/style/css/index.css +2 -2
  174. package/umd/picker-view/style/css/index.css +2 -2
  175. package/umd/popover/style/css/index.css +2 -2
  176. package/umd/popover/style/css/menu.css +2 -2
  177. package/umd/popup/style/css/index.css +2 -2
  178. package/umd/popup-swiper/style/css/index.css +2 -2
  179. package/umd/progress/style/css/index.css +2 -2
  180. package/umd/pull-refresh/style/css/index.css +2 -2
  181. package/umd/radio/style/css/index.css +2 -2
  182. package/umd/rate/style/css/index.css +2 -2
  183. package/umd/search-bar/style/css/index.css +2 -2
  184. package/umd/skeleton/style/css/index.css +2 -2
  185. package/umd/slider/style/css/index.css +2 -2
  186. package/umd/stepper/hooks/useInputEvent.d.ts +1 -0
  187. package/umd/stepper/hooks/useInputEvent.js +3 -2
  188. package/umd/stepper/hooks/useValue.d.ts +1 -0
  189. package/umd/stepper/hooks/useValue.js +2 -1
  190. package/umd/stepper/index.js +3 -1
  191. package/umd/stepper/style/css/index.css +3 -2
  192. package/umd/stepper/style/index.less +1 -0
  193. package/umd/steps/style/css/index.css +2 -2
  194. package/umd/sticky/style/css/index.css +2 -2
  195. package/umd/swipe-action/style/css/index.css +2 -2
  196. package/umd/swipe-load/style/css/index.css +2 -2
  197. package/umd/switch/style/css/index.css +2 -2
  198. package/umd/tab-bar/style/css/index.css +2 -2
  199. package/umd/tabs/style/css/index.css +2 -2
  200. package/umd/tag/style/css/index.css +2 -2
  201. package/umd/textarea/style/css/index.css +2 -2
  202. package/umd/toast/style/css/index.css +2 -2
  203. package/umd/transition/style/css/index.css +2 -2
  204. package/umd/uploader/style/css/index.css +2 -2
@@ -106,7 +106,7 @@
106
106
  * @param @rules {en} customized rewrite rules, default to initial
107
107
  * @example
108
108
  * ```
109
- * @import '@arco-design/mobile-utils/style/mixin.less';
109
+ * @import '@arco-design/mobile-react/style/mixin.less';
110
110
  *
111
111
  * .demo {
112
112
  * .set-prop-with-rtl(right, auto);
@@ -122,7 +122,7 @@
122
122
  * @param @value {en} css property value
123
123
  * @example
124
124
  * ```
125
- * @import '@arco-design/mobile-utils/style/mixin.less';
125
+ * @import '@arco-design/mobile-react/style/mixin.less';
126
126
  *
127
127
  * .demo {
128
128
  * .set-value-with-rtl(text-align, left);
@@ -106,7 +106,7 @@
106
106
  * @param @rules {en} customized rewrite rules, default to initial
107
107
  * @example
108
108
  * ```
109
- * @import '@arco-design/mobile-utils/style/mixin.less';
109
+ * @import '@arco-design/mobile-react/style/mixin.less';
110
110
  *
111
111
  * .demo {
112
112
  * .set-prop-with-rtl(right, auto);
@@ -122,7 +122,7 @@
122
122
  * @param @value {en} css property value
123
123
  * @example
124
124
  * ```
125
- * @import '@arco-design/mobile-utils/style/mixin.less';
125
+ * @import '@arco-design/mobile-react/style/mixin.less';
126
126
  *
127
127
  * .demo {
128
128
  * .set-value-with-rtl(text-align, left);
@@ -106,7 +106,7 @@
106
106
  * @param @rules {en} customized rewrite rules, default to initial
107
107
  * @example
108
108
  * ```
109
- * @import '@arco-design/mobile-utils/style/mixin.less';
109
+ * @import '@arco-design/mobile-react/style/mixin.less';
110
110
  *
111
111
  * .demo {
112
112
  * .set-prop-with-rtl(right, auto);
@@ -122,7 +122,7 @@
122
122
  * @param @value {en} css property value
123
123
  * @example
124
124
  * ```
125
- * @import '@arco-design/mobile-utils/style/mixin.less';
125
+ * @import '@arco-design/mobile-react/style/mixin.less';
126
126
  *
127
127
  * .demo {
128
128
  * .set-value-with-rtl(text-align, left);
@@ -106,7 +106,7 @@
106
106
  * @param @rules {en} customized rewrite rules, default to initial
107
107
  * @example
108
108
  * ```
109
- * @import '@arco-design/mobile-utils/style/mixin.less';
109
+ * @import '@arco-design/mobile-react/style/mixin.less';
110
110
  *
111
111
  * .demo {
112
112
  * .set-prop-with-rtl(right, auto);
@@ -122,7 +122,7 @@
122
122
  * @param @value {en} css property value
123
123
  * @example
124
124
  * ```
125
- * @import '@arco-design/mobile-utils/style/mixin.less';
125
+ * @import '@arco-design/mobile-react/style/mixin.less';
126
126
  *
127
127
  * .demo {
128
128
  * .set-value-with-rtl(text-align, left);
@@ -106,7 +106,7 @@
106
106
  * @param @rules {en} customized rewrite rules, default to initial
107
107
  * @example
108
108
  * ```
109
- * @import '@arco-design/mobile-utils/style/mixin.less';
109
+ * @import '@arco-design/mobile-react/style/mixin.less';
110
110
  *
111
111
  * .demo {
112
112
  * .set-prop-with-rtl(right, auto);
@@ -122,7 +122,7 @@
122
122
  * @param @value {en} css property value
123
123
  * @example
124
124
  * ```
125
- * @import '@arco-design/mobile-utils/style/mixin.less';
125
+ * @import '@arco-design/mobile-react/style/mixin.less';
126
126
  *
127
127
  * .demo {
128
128
  * .set-value-with-rtl(text-align, left);
@@ -106,7 +106,7 @@
106
106
  * @param @rules {en} customized rewrite rules, default to initial
107
107
  * @example
108
108
  * ```
109
- * @import '@arco-design/mobile-utils/style/mixin.less';
109
+ * @import '@arco-design/mobile-react/style/mixin.less';
110
110
  *
111
111
  * .demo {
112
112
  * .set-prop-with-rtl(right, auto);
@@ -122,7 +122,7 @@
122
122
  * @param @value {en} css property value
123
123
  * @example
124
124
  * ```
125
- * @import '@arco-design/mobile-utils/style/mixin.less';
125
+ * @import '@arco-design/mobile-react/style/mixin.less';
126
126
  *
127
127
  * .demo {
128
128
  * .set-value-with-rtl(text-align, left);
@@ -106,7 +106,7 @@
106
106
  * @param @rules {en} customized rewrite rules, default to initial
107
107
  * @example
108
108
  * ```
109
- * @import '@arco-design/mobile-utils/style/mixin.less';
109
+ * @import '@arco-design/mobile-react/style/mixin.less';
110
110
  *
111
111
  * .demo {
112
112
  * .set-prop-with-rtl(right, auto);
@@ -122,7 +122,7 @@
122
122
  * @param @value {en} css property value
123
123
  * @example
124
124
  * ```
125
- * @import '@arco-design/mobile-utils/style/mixin.less';
125
+ * @import '@arco-design/mobile-react/style/mixin.less';
126
126
  *
127
127
  * .demo {
128
128
  * .set-value-with-rtl(text-align, left);
@@ -106,7 +106,7 @@
106
106
  * @param @rules {en} customized rewrite rules, default to initial
107
107
  * @example
108
108
  * ```
109
- * @import '@arco-design/mobile-utils/style/mixin.less';
109
+ * @import '@arco-design/mobile-react/style/mixin.less';
110
110
  *
111
111
  * .demo {
112
112
  * .set-prop-with-rtl(right, auto);
@@ -122,7 +122,7 @@
122
122
  * @param @value {en} css property value
123
123
  * @example
124
124
  * ```
125
- * @import '@arco-design/mobile-utils/style/mixin.less';
125
+ * @import '@arco-design/mobile-react/style/mixin.less';
126
126
  *
127
127
  * .demo {
128
128
  * .set-value-with-rtl(text-align, left);
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { StepperProps } from '../type';
3
3
  export default function useInputEvent(params: Required<Pick<StepperProps, 'defaultValue' | 'min' | 'max' | 'digits' | 'allowEmpty'>> & Pick<StepperProps, 'onBlur' | 'onChange' | 'onInput'> & {
4
4
  actualInputValue: number;
5
+ innerValue: number;
5
6
  updateValue: (updater: number | ((oldValue: number) => number)) => void;
6
7
  }): {
7
8
  handleInput: (e: React.FocusEvent<HTMLInputElement>) => void;
@@ -5,6 +5,7 @@ export default function useInputEvent(params) {
5
5
  max = params.max,
6
6
  digits = params.digits,
7
7
  actualInputValue = params.actualInputValue,
8
+ innerValue = params.innerValue,
8
9
  allowEmpty = params.allowEmpty,
9
10
  updateValue = params.updateValue,
10
11
  onBlur = params.onBlur,
@@ -44,8 +45,8 @@ export default function useInputEvent(params) {
44
45
  };
45
46
 
46
47
  useUpdateEffect(function () {
47
- onChange && onChange(actualInputValue);
48
- }, [actualInputValue]);
48
+ onChange && onChange(innerValue);
49
+ }, [innerValue]);
49
50
  return {
50
51
  handleInput: handleInput,
51
52
  handleBlur: handleBlur
@@ -3,4 +3,5 @@ export default function useValue(params: Required<Pick<StepperProps, 'defaultVal
3
3
  updateValue: (updater: number | ((oldValue: number) => number)) => void;
4
4
  actualInputValue: number;
5
5
  showValue: string | number;
6
+ innerValue: number;
6
7
  };
@@ -33,6 +33,7 @@ export default function useValue(params) {
33
33
  return {
34
34
  updateValue: updateValue,
35
35
  actualInputValue: actualInputValue,
36
- showValue: showValue
36
+ showValue: showValue,
37
+ innerValue: innerValue
37
38
  };
38
39
  }
@@ -57,7 +57,8 @@ var Stepper = /*#__PURE__*/forwardRef(function (props, ref) {
57
57
  }),
58
58
  updateValue = _useValue.updateValue,
59
59
  actualInputValue = _useValue.actualInputValue,
60
- showValue = _useValue.showValue; // 按钮点击的相关逻辑
60
+ showValue = _useValue.showValue,
61
+ innerValue = _useValue.innerValue; // 按钮点击的相关逻辑
61
62
  // @en The logic is that handle button click
62
63
 
63
64
 
@@ -87,6 +88,7 @@ var Stepper = /*#__PURE__*/forwardRef(function (props, ref) {
87
88
  digits: digits,
88
89
  actualInputValue: actualInputValue,
89
90
  allowEmpty: allowEmpty,
91
+ innerValue: innerValue,
90
92
  updateValue: updateValue,
91
93
  onBlur: onBlur,
92
94
  onChange: onChange,
@@ -106,7 +106,7 @@
106
106
  * @param @rules {en} customized rewrite rules, default to initial
107
107
  * @example
108
108
  * ```
109
- * @import '@arco-design/mobile-utils/style/mixin.less';
109
+ * @import '@arco-design/mobile-react/style/mixin.less';
110
110
  *
111
111
  * .demo {
112
112
  * .set-prop-with-rtl(right, auto);
@@ -122,7 +122,7 @@
122
122
  * @param @value {en} css property value
123
123
  * @example
124
124
  * ```
125
- * @import '@arco-design/mobile-utils/style/mixin.less';
125
+ * @import '@arco-design/mobile-react/style/mixin.less';
126
126
  *
127
127
  * .demo {
128
128
  * .set-value-with-rtl(text-align, left);
@@ -515,6 +515,7 @@
515
515
  display: -webkit-flex;
516
516
  display: flex;
517
517
  font-size: 0.28rem ;
518
+ width: 1.96rem ;
518
519
  }
519
520
  .arco-stepper.arco-square {
520
521
  border-width: 1PX;
@@ -3,6 +3,7 @@
3
3
  .@{prefix}-stepper {
4
4
  display: flex;
5
5
  .use-var(font-size, stepper-font-size);
6
+ .use-var(width, stepper-width);
6
7
 
7
8
  &.@{prefix}-square {
8
9
  border-width: 1PX;
@@ -106,7 +106,7 @@
106
106
  * @param @rules {en} customized rewrite rules, default to initial
107
107
  * @example
108
108
  * ```
109
- * @import '@arco-design/mobile-utils/style/mixin.less';
109
+ * @import '@arco-design/mobile-react/style/mixin.less';
110
110
  *
111
111
  * .demo {
112
112
  * .set-prop-with-rtl(right, auto);
@@ -122,7 +122,7 @@
122
122
  * @param @value {en} css property value
123
123
  * @example
124
124
  * ```
125
- * @import '@arco-design/mobile-utils/style/mixin.less';
125
+ * @import '@arco-design/mobile-react/style/mixin.less';
126
126
  *
127
127
  * .demo {
128
128
  * .set-value-with-rtl(text-align, left);
@@ -106,7 +106,7 @@
106
106
  * @param @rules {en} customized rewrite rules, default to initial
107
107
  * @example
108
108
  * ```
109
- * @import '@arco-design/mobile-utils/style/mixin.less';
109
+ * @import '@arco-design/mobile-react/style/mixin.less';
110
110
  *
111
111
  * .demo {
112
112
  * .set-prop-with-rtl(right, auto);
@@ -122,7 +122,7 @@
122
122
  * @param @value {en} css property value
123
123
  * @example
124
124
  * ```
125
- * @import '@arco-design/mobile-utils/style/mixin.less';
125
+ * @import '@arco-design/mobile-react/style/mixin.less';
126
126
  *
127
127
  * .demo {
128
128
  * .set-value-with-rtl(text-align, left);
@@ -106,7 +106,7 @@
106
106
  * @param @rules {en} customized rewrite rules, default to initial
107
107
  * @example
108
108
  * ```
109
- * @import '@arco-design/mobile-utils/style/mixin.less';
109
+ * @import '@arco-design/mobile-react/style/mixin.less';
110
110
  *
111
111
  * .demo {
112
112
  * .set-prop-with-rtl(right, auto);
@@ -122,7 +122,7 @@
122
122
  * @param @value {en} css property value
123
123
  * @example
124
124
  * ```
125
- * @import '@arco-design/mobile-utils/style/mixin.less';
125
+ * @import '@arco-design/mobile-react/style/mixin.less';
126
126
  *
127
127
  * .demo {
128
128
  * .set-value-with-rtl(text-align, left);
@@ -106,7 +106,7 @@
106
106
  * @param @rules {en} customized rewrite rules, default to initial
107
107
  * @example
108
108
  * ```
109
- * @import '@arco-design/mobile-utils/style/mixin.less';
109
+ * @import '@arco-design/mobile-react/style/mixin.less';
110
110
  *
111
111
  * .demo {
112
112
  * .set-prop-with-rtl(right, auto);
@@ -122,7 +122,7 @@
122
122
  * @param @value {en} css property value
123
123
  * @example
124
124
  * ```
125
- * @import '@arco-design/mobile-utils/style/mixin.less';
125
+ * @import '@arco-design/mobile-react/style/mixin.less';
126
126
  *
127
127
  * .demo {
128
128
  * .set-value-with-rtl(text-align, left);
@@ -106,7 +106,7 @@
106
106
  * @param @rules {en} customized rewrite rules, default to initial
107
107
  * @example
108
108
  * ```
109
- * @import '@arco-design/mobile-utils/style/mixin.less';
109
+ * @import '@arco-design/mobile-react/style/mixin.less';
110
110
  *
111
111
  * .demo {
112
112
  * .set-prop-with-rtl(right, auto);
@@ -122,7 +122,7 @@
122
122
  * @param @value {en} css property value
123
123
  * @example
124
124
  * ```
125
- * @import '@arco-design/mobile-utils/style/mixin.less';
125
+ * @import '@arco-design/mobile-react/style/mixin.less';
126
126
  *
127
127
  * .demo {
128
128
  * .set-value-with-rtl(text-align, left);
@@ -106,7 +106,7 @@
106
106
  * @param @rules {en} customized rewrite rules, default to initial
107
107
  * @example
108
108
  * ```
109
- * @import '@arco-design/mobile-utils/style/mixin.less';
109
+ * @import '@arco-design/mobile-react/style/mixin.less';
110
110
  *
111
111
  * .demo {
112
112
  * .set-prop-with-rtl(right, auto);
@@ -122,7 +122,7 @@
122
122
  * @param @value {en} css property value
123
123
  * @example
124
124
  * ```
125
- * @import '@arco-design/mobile-utils/style/mixin.less';
125
+ * @import '@arco-design/mobile-react/style/mixin.less';
126
126
  *
127
127
  * .demo {
128
128
  * .set-value-with-rtl(text-align, left);
@@ -106,7 +106,7 @@
106
106
  * @param @rules {en} customized rewrite rules, default to initial
107
107
  * @example
108
108
  * ```
109
- * @import '@arco-design/mobile-utils/style/mixin.less';
109
+ * @import '@arco-design/mobile-react/style/mixin.less';
110
110
  *
111
111
  * .demo {
112
112
  * .set-prop-with-rtl(right, auto);
@@ -122,7 +122,7 @@
122
122
  * @param @value {en} css property value
123
123
  * @example
124
124
  * ```
125
- * @import '@arco-design/mobile-utils/style/mixin.less';
125
+ * @import '@arco-design/mobile-react/style/mixin.less';
126
126
  *
127
127
  * .demo {
128
128
  * .set-value-with-rtl(text-align, left);
@@ -106,7 +106,7 @@
106
106
  * @param @rules {en} customized rewrite rules, default to initial
107
107
  * @example
108
108
  * ```
109
- * @import '@arco-design/mobile-utils/style/mixin.less';
109
+ * @import '@arco-design/mobile-react/style/mixin.less';
110
110
  *
111
111
  * .demo {
112
112
  * .set-prop-with-rtl(right, auto);
@@ -122,7 +122,7 @@
122
122
  * @param @value {en} css property value
123
123
  * @example
124
124
  * ```
125
- * @import '@arco-design/mobile-utils/style/mixin.less';
125
+ * @import '@arco-design/mobile-react/style/mixin.less';
126
126
  *
127
127
  * .demo {
128
128
  * .set-value-with-rtl(text-align, left);
@@ -106,7 +106,7 @@
106
106
  * @param @rules {en} customized rewrite rules, default to initial
107
107
  * @example
108
108
  * ```
109
- * @import '@arco-design/mobile-utils/style/mixin.less';
109
+ * @import '@arco-design/mobile-react/style/mixin.less';
110
110
  *
111
111
  * .demo {
112
112
  * .set-prop-with-rtl(right, auto);
@@ -122,7 +122,7 @@
122
122
  * @param @value {en} css property value
123
123
  * @example
124
124
  * ```
125
- * @import '@arco-design/mobile-utils/style/mixin.less';
125
+ * @import '@arco-design/mobile-react/style/mixin.less';
126
126
  *
127
127
  * .demo {
128
128
  * .set-value-with-rtl(text-align, left);
@@ -106,7 +106,7 @@
106
106
  * @param @rules {en} customized rewrite rules, default to initial
107
107
  * @example
108
108
  * ```
109
- * @import '@arco-design/mobile-utils/style/mixin.less';
109
+ * @import '@arco-design/mobile-react/style/mixin.less';
110
110
  *
111
111
  * .demo {
112
112
  * .set-prop-with-rtl(right, auto);
@@ -122,7 +122,7 @@
122
122
  * @param @value {en} css property value
123
123
  * @example
124
124
  * ```
125
- * @import '@arco-design/mobile-utils/style/mixin.less';
125
+ * @import '@arco-design/mobile-react/style/mixin.less';
126
126
  *
127
127
  * .demo {
128
128
  * .set-value-with-rtl(text-align, left);
@@ -106,7 +106,7 @@
106
106
  * @param @rules {en} customized rewrite rules, default to initial
107
107
  * @example
108
108
  * ```
109
- * @import '@arco-design/mobile-utils/style/mixin.less';
109
+ * @import '@arco-design/mobile-react/style/mixin.less';
110
110
  *
111
111
  * .demo {
112
112
  * .set-prop-with-rtl(right, auto);
@@ -122,7 +122,7 @@
122
122
  * @param @value {en} css property value
123
123
  * @example
124
124
  * ```
125
- * @import '@arco-design/mobile-utils/style/mixin.less';
125
+ * @import '@arco-design/mobile-react/style/mixin.less';
126
126
  *
127
127
  * .demo {
128
128
  * .set-value-with-rtl(text-align, left);
@@ -106,7 +106,7 @@
106
106
  * @param @rules {en} customized rewrite rules, default to initial
107
107
  * @example
108
108
  * ```
109
- * @import '@arco-design/mobile-utils/style/mixin.less';
109
+ * @import '@arco-design/mobile-react/style/mixin.less';
110
110
  *
111
111
  * .demo {
112
112
  * .set-prop-with-rtl(right, auto);
@@ -122,7 +122,7 @@
122
122
  * @param @value {en} css property value
123
123
  * @example
124
124
  * ```
125
- * @import '@arco-design/mobile-utils/style/mixin.less';
125
+ * @import '@arco-design/mobile-react/style/mixin.less';
126
126
  *
127
127
  * .demo {
128
128
  * .set-value-with-rtl(text-align, left);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arco-design/mobile-react",
3
- "version": "2.31.3",
3
+ "version": "2.31.5",
4
4
  "description": "",
5
5
  "main": "cjs/index.js",
6
6
  "module": "esm/index.js",
@@ -15,7 +15,7 @@
15
15
  "author": "taoyiyue@bytedance.com",
16
16
  "license": "ISC",
17
17
  "dependencies": {
18
- "@arco-design/mobile-utils": "2.18.3",
18
+ "@arco-design/mobile-utils": "2.18.5",
19
19
  "@arco-design/transformable": "^1.0.0",
20
20
  "@babel/runtime": "^7",
21
21
  "lodash.throttle": "^4.1.1",
@@ -47,5 +47,5 @@
47
47
  "publishConfig": {
48
48
  "access": "public"
49
49
  },
50
- "gitHead": "6eab3e99e70f5fed7994acbf3d8bb01800310635"
50
+ "gitHead": "8b2b5c2694e65be7a57a4f8d8d1af5db4601fda2"
51
51
  }
@@ -319,7 +319,7 @@
319
319
  * @param @rules {en} customized rewrite rules, default to initial
320
320
  * @example
321
321
  * ```
322
- * @import '@arco-design/mobile-utils/style/mixin.less';
322
+ * @import '@arco-design/mobile-react/style/mixin.less';
323
323
  *
324
324
  * .demo {
325
325
  * .set-prop-with-rtl(right, auto);
@@ -335,7 +335,7 @@
335
335
  * @param @value {en} css property value
336
336
  * @example
337
337
  * ```
338
- * @import '@arco-design/mobile-utils/style/mixin.less';
338
+ * @import '@arco-design/mobile-react/style/mixin.less';
339
339
  *
340
340
  * .demo {
341
341
  * .set-value-with-rtl(text-align, left);
@@ -963,6 +963,7 @@
963
963
  --index-bar-sidebar-toast-radius: ~`pxtorem(4)`;
964
964
  --index-bar-sidebar-toast-padding: 0 ~`pxtorem(8)`;
965
965
  --index-bar-sidebar-toast-font-size: ~`pxtorem(24)`;
966
+ --stepper-width: ~`pxtorem(98)`;
966
967
  --stepper-font-size: ~`pxtorem(14)`;
967
968
  --dark-stepper-square-border-color: var(--dark-lighter-line-color);
968
969
  --stepper-square-border-color: var(--lighter-line-color);
@@ -962,6 +962,7 @@ export interface ArcodesignToken extends Record<string, string> {
962
962
  'index-bar-sidebar-toast-radius': string;
963
963
  'index-bar-sidebar-toast-padding': string;
964
964
  'index-bar-sidebar-toast-font-size': string;
965
+ 'stepper-width': string;
965
966
  'stepper-font-size': string;
966
967
  'dark-stepper-square-border-color': string;
967
968
  'stepper-square-border-color': string;
@@ -974,6 +974,7 @@ var tokens = {
974
974
  "index-bar-sidebar-toast-radius": "0.08rem",
975
975
  "index-bar-sidebar-toast-padding": "0 0.16rem",
976
976
  "index-bar-sidebar-toast-font-size": "0.48rem",
977
+ "stepper-width": "1.96rem",
977
978
  "stepper-font-size": "0.28rem",
978
979
  "dark-stepper-square-border-color": "var(--dark-lighter-line-color)",
979
980
  "stepper-square-border-color": "var(--lighter-line-color)",
@@ -9411,6 +9411,18 @@
9411
9411
  "en": "Square border radius of Stepper"
9412
9412
  }
9413
9413
  },
9414
+ "stepperWidth": {
9415
+ "cssKey": "stepper-width",
9416
+ "desc": "步进器整体宽度",
9417
+ "override": "",
9418
+ "value": "~`pxtorem(98)`",
9419
+ "jsValue": "@getRem@98",
9420
+ "staticValue": "1.96rem",
9421
+ "localeDesc": {
9422
+ "ch": "步进器整体宽度",
9423
+ "en": "Width of Stepper"
9424
+ }
9425
+ },
9414
9426
  "stepsDescriptionColor": {
9415
9427
  "cssKey": "steps-description-color",
9416
9428
  "desc": "steps 步骤默认描述文字颜色",
@@ -962,6 +962,7 @@
962
962
  @index-bar-sidebar-toast-radius: ~`pxtorem(4)`;
963
963
  @index-bar-sidebar-toast-padding: 0 ~`pxtorem(8)`;
964
964
  @index-bar-sidebar-toast-font-size: ~`pxtorem(24)`;
965
+ @stepper-width: ~`pxtorem(98)`;
965
966
  @stepper-font-size: ~`pxtorem(14)`;
966
967
  @dark-stepper-square-border-color: @dark-lighter-line-color;
967
968
  @stepper-square-border-color: @lighter-line-color;
@@ -156,7 +156,7 @@
156
156
  * @param @rules {en} customized rewrite rules, default to initial
157
157
  * @example
158
158
  * ```
159
- * @import '@arco-design/mobile-utils/style/mixin.less';
159
+ * @import '@arco-design/mobile-react/style/mixin.less';
160
160
  *
161
161
  * .demo {
162
162
  * .set-prop-with-rtl(right, auto);
@@ -183,7 +183,7 @@
183
183
  * @param @value {en} css property value
184
184
  * @example
185
185
  * ```
186
- * @import '@arco-design/mobile-utils/style/mixin.less';
186
+ * @import '@arco-design/mobile-react/style/mixin.less';
187
187
  *
188
188
  * .demo {
189
189
  * .set-value-with-rtl(text-align, left);
@@ -106,7 +106,7 @@
106
106
  * @param @rules {en} customized rewrite rules, default to initial
107
107
  * @example
108
108
  * ```
109
- * @import '@arco-design/mobile-utils/style/mixin.less';
109
+ * @import '@arco-design/mobile-react/style/mixin.less';
110
110
  *
111
111
  * .demo {
112
112
  * .set-prop-with-rtl(right, auto);
@@ -122,7 +122,7 @@
122
122
  * @param @value {en} css property value
123
123
  * @example
124
124
  * ```
125
- * @import '@arco-design/mobile-utils/style/mixin.less';
125
+ * @import '@arco-design/mobile-react/style/mixin.less';
126
126
  *
127
127
  * .demo {
128
128
  * .set-value-with-rtl(text-align, left);
@@ -106,7 +106,7 @@
106
106
  * @param @rules {en} customized rewrite rules, default to initial
107
107
  * @example
108
108
  * ```
109
- * @import '@arco-design/mobile-utils/style/mixin.less';
109
+ * @import '@arco-design/mobile-react/style/mixin.less';
110
110
  *
111
111
  * .demo {
112
112
  * .set-prop-with-rtl(right, auto);
@@ -122,7 +122,7 @@
122
122
  * @param @value {en} css property value
123
123
  * @example
124
124
  * ```
125
- * @import '@arco-design/mobile-utils/style/mixin.less';
125
+ * @import '@arco-design/mobile-react/style/mixin.less';
126
126
  *
127
127
  * .demo {
128
128
  * .set-value-with-rtl(text-align, left);
@@ -106,7 +106,7 @@
106
106
  * @param @rules {en} customized rewrite rules, default to initial
107
107
  * @example
108
108
  * ```
109
- * @import '@arco-design/mobile-utils/style/mixin.less';
109
+ * @import '@arco-design/mobile-react/style/mixin.less';
110
110
  *
111
111
  * .demo {
112
112
  * .set-prop-with-rtl(right, auto);
@@ -122,7 +122,7 @@
122
122
  * @param @value {en} css property value
123
123
  * @example
124
124
  * ```
125
- * @import '@arco-design/mobile-utils/style/mixin.less';
125
+ * @import '@arco-design/mobile-react/style/mixin.less';
126
126
  *
127
127
  * .demo {
128
128
  * .set-value-with-rtl(text-align, left);