@arco-design/mobile-react 2.23.0 → 2.24.1

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 (191) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.en-US.md +2 -2
  3. package/README.md +2 -2
  4. package/cjs/_helpers/render.d.ts +3 -1
  5. package/cjs/_helpers/render.js +10 -3
  6. package/cjs/action-sheet/index.d.ts +5 -5
  7. package/cjs/action-sheet/index.js +4 -3
  8. package/cjs/action-sheet/methods.d.ts +1 -1
  9. package/cjs/badge/style/css/index.css +1 -2
  10. package/cjs/checkbox/checkbox.js +4 -0
  11. package/cjs/circle-progress/index.js +4 -0
  12. package/cjs/context-provider/index.d.ts +4 -0
  13. package/cjs/context-provider/index.js +14 -2
  14. package/cjs/dialog/index.d.ts +8 -8
  15. package/cjs/dialog/index.js +3 -2
  16. package/cjs/dialog/methods.d.ts +3 -3
  17. package/cjs/dialog/style/css/index.css +1 -2
  18. package/cjs/ellipsis/components/js-ellipsis.d.ts +4 -2
  19. package/cjs/ellipsis/components/js-ellipsis.js +14 -1
  20. package/cjs/ellipsis/components/native-ellipsis.d.ts +1 -1
  21. package/cjs/ellipsis/components/native-ellipsis.js +6 -1
  22. package/cjs/ellipsis/demo/style/css/mobile.css +1 -1
  23. package/cjs/ellipsis/demo/style/mobile.less +3 -1
  24. package/cjs/ellipsis/index.js +6 -2
  25. package/cjs/ellipsis/style/css/index.css +14 -1
  26. package/cjs/ellipsis/style/index.less +15 -1
  27. package/cjs/ellipsis/type.d.ts +22 -76
  28. package/cjs/image-preview/index.d.ts +3 -3
  29. package/cjs/image-preview/index.js +3 -2
  30. package/cjs/image-preview/methods.d.ts +2 -1
  31. package/cjs/image-preview/methods.js +2 -2
  32. package/cjs/input/hooks.js +1 -0
  33. package/cjs/input/index.d.ts +5 -0
  34. package/cjs/input/index.js +6 -2
  35. package/cjs/masking/index.d.ts +4 -14
  36. package/cjs/masking/index.js +3 -2
  37. package/cjs/masking/methods.d.ts +3 -2
  38. package/cjs/masking/methods.js +2 -2
  39. package/cjs/nav-bar/index.d.ts +12 -0
  40. package/cjs/nav-bar/index.js +8 -2
  41. package/cjs/notify/index.d.ts +12 -12
  42. package/cjs/notify/index.js +3 -2
  43. package/cjs/notify/methods.d.ts +2 -1
  44. package/cjs/notify/methods.js +2 -2
  45. package/cjs/picker-view/components/picker-cell.js +3 -1
  46. package/cjs/popup/index.d.ts +4 -4
  47. package/cjs/popup/index.js +3 -2
  48. package/cjs/popup/methods.d.ts +1 -1
  49. package/cjs/popup-swiper/index.d.ts +12 -6
  50. package/cjs/popup-swiper/index.js +3 -2
  51. package/cjs/popup-swiper/methods.d.ts +1 -1
  52. package/cjs/progress/index.js +4 -0
  53. package/cjs/rate/index.js +5 -0
  54. package/cjs/slider/index.js +6 -1
  55. package/cjs/stepper/index.js +7 -1
  56. package/cjs/swipe-action/index.d.ts +1 -0
  57. package/cjs/swipe-action/index.js +10 -0
  58. package/cjs/switch/index.js +4 -0
  59. package/cjs/toast/index.d.ts +18 -18
  60. package/cjs/toast/index.js +3 -2
  61. package/cjs/toast/methods.d.ts +2 -1
  62. package/cjs/toast/methods.js +2 -2
  63. package/dist/index.js +141 -47
  64. package/dist/index.min.js +3 -3
  65. package/dist/style.css +26 -114
  66. package/dist/style.min.css +1 -1
  67. package/esm/_helpers/render.d.ts +3 -1
  68. package/esm/_helpers/render.js +10 -3
  69. package/esm/action-sheet/index.d.ts +5 -5
  70. package/esm/action-sheet/index.js +4 -3
  71. package/esm/action-sheet/methods.d.ts +1 -1
  72. package/esm/badge/style/css/index.css +1 -2
  73. package/esm/checkbox/checkbox.js +4 -0
  74. package/esm/circle-progress/index.js +4 -0
  75. package/esm/context-provider/index.d.ts +4 -0
  76. package/esm/context-provider/index.js +13 -2
  77. package/esm/dialog/index.d.ts +8 -8
  78. package/esm/dialog/index.js +3 -2
  79. package/esm/dialog/methods.d.ts +3 -3
  80. package/esm/dialog/style/css/index.css +1 -2
  81. package/esm/ellipsis/components/js-ellipsis.d.ts +4 -2
  82. package/esm/ellipsis/components/js-ellipsis.js +14 -1
  83. package/esm/ellipsis/components/native-ellipsis.d.ts +1 -1
  84. package/esm/ellipsis/components/native-ellipsis.js +6 -1
  85. package/esm/ellipsis/demo/style/css/mobile.css +1 -1
  86. package/esm/ellipsis/demo/style/mobile.less +3 -1
  87. package/esm/ellipsis/index.js +6 -2
  88. package/esm/ellipsis/style/css/index.css +14 -1
  89. package/esm/ellipsis/style/index.less +15 -1
  90. package/esm/ellipsis/type.d.ts +22 -76
  91. package/esm/image-preview/index.d.ts +3 -3
  92. package/esm/image-preview/index.js +3 -2
  93. package/esm/image-preview/methods.d.ts +2 -1
  94. package/esm/image-preview/methods.js +2 -2
  95. package/esm/input/hooks.js +1 -0
  96. package/esm/input/index.d.ts +5 -0
  97. package/esm/input/index.js +6 -2
  98. package/esm/masking/index.d.ts +4 -14
  99. package/esm/masking/index.js +3 -2
  100. package/esm/masking/methods.d.ts +3 -2
  101. package/esm/masking/methods.js +2 -2
  102. package/esm/nav-bar/index.d.ts +12 -0
  103. package/esm/nav-bar/index.js +8 -2
  104. package/esm/notify/index.d.ts +12 -12
  105. package/esm/notify/index.js +3 -2
  106. package/esm/notify/methods.d.ts +2 -1
  107. package/esm/notify/methods.js +2 -2
  108. package/esm/picker-view/components/picker-cell.js +3 -1
  109. package/esm/popup/index.d.ts +4 -4
  110. package/esm/popup/index.js +3 -2
  111. package/esm/popup/methods.d.ts +1 -1
  112. package/esm/popup-swiper/index.d.ts +12 -6
  113. package/esm/popup-swiper/index.js +3 -2
  114. package/esm/popup-swiper/methods.d.ts +1 -1
  115. package/esm/progress/index.js +4 -0
  116. package/esm/rate/index.js +5 -0
  117. package/esm/slider/index.js +6 -1
  118. package/esm/stepper/index.js +7 -1
  119. package/esm/swipe-action/index.d.ts +1 -0
  120. package/esm/swipe-action/index.js +1 -0
  121. package/esm/switch/index.js +4 -0
  122. package/esm/toast/index.d.ts +18 -18
  123. package/esm/toast/index.js +3 -2
  124. package/esm/toast/methods.d.ts +2 -1
  125. package/esm/toast/methods.js +2 -2
  126. package/package.json +3 -3
  127. package/style/css/public.css +4 -4
  128. package/tokens/app/arcodesign/default/css-variables.less +2 -0
  129. package/tokens/app/arcodesign/default/index.d.ts +2 -0
  130. package/tokens/app/arcodesign/default/index.js +127 -125
  131. package/tokens/app/arcodesign/default/index.json +24 -0
  132. package/tokens/app/arcodesign/default/index.less +2 -0
  133. package/umd/_helpers/render.d.ts +3 -1
  134. package/umd/_helpers/render.js +13 -7
  135. package/umd/action-sheet/index.d.ts +5 -5
  136. package/umd/action-sheet/index.js +4 -3
  137. package/umd/action-sheet/methods.d.ts +1 -1
  138. package/umd/badge/style/css/index.css +1 -2
  139. package/umd/checkbox/checkbox.js +4 -0
  140. package/umd/circle-progress/index.js +4 -0
  141. package/umd/context-provider/index.d.ts +4 -0
  142. package/umd/context-provider/index.js +13 -1
  143. package/umd/dialog/index.d.ts +8 -8
  144. package/umd/dialog/index.js +3 -2
  145. package/umd/dialog/methods.d.ts +3 -3
  146. package/umd/dialog/style/css/index.css +1 -2
  147. package/umd/ellipsis/components/js-ellipsis.d.ts +4 -2
  148. package/umd/ellipsis/components/js-ellipsis.js +14 -1
  149. package/umd/ellipsis/components/native-ellipsis.d.ts +1 -1
  150. package/umd/ellipsis/components/native-ellipsis.js +6 -1
  151. package/umd/ellipsis/demo/style/css/mobile.css +1 -1
  152. package/umd/ellipsis/demo/style/mobile.less +3 -1
  153. package/umd/ellipsis/index.js +6 -2
  154. package/umd/ellipsis/style/css/index.css +14 -1
  155. package/umd/ellipsis/style/index.less +15 -1
  156. package/umd/ellipsis/type.d.ts +22 -76
  157. package/umd/image-preview/index.d.ts +3 -3
  158. package/umd/image-preview/index.js +3 -2
  159. package/umd/image-preview/methods.d.ts +2 -1
  160. package/umd/image-preview/methods.js +2 -2
  161. package/umd/input/hooks.js +1 -0
  162. package/umd/input/index.d.ts +5 -0
  163. package/umd/input/index.js +6 -2
  164. package/umd/masking/index.d.ts +4 -14
  165. package/umd/masking/index.js +3 -2
  166. package/umd/masking/methods.d.ts +3 -2
  167. package/umd/masking/methods.js +2 -2
  168. package/umd/nav-bar/index.d.ts +12 -0
  169. package/umd/nav-bar/index.js +8 -2
  170. package/umd/notify/index.d.ts +12 -12
  171. package/umd/notify/index.js +3 -2
  172. package/umd/notify/methods.d.ts +2 -1
  173. package/umd/notify/methods.js +2 -2
  174. package/umd/picker-view/components/picker-cell.js +3 -1
  175. package/umd/popup/index.d.ts +4 -4
  176. package/umd/popup/index.js +3 -2
  177. package/umd/popup/methods.d.ts +1 -1
  178. package/umd/popup-swiper/index.d.ts +12 -6
  179. package/umd/popup-swiper/index.js +3 -2
  180. package/umd/popup-swiper/methods.d.ts +1 -1
  181. package/umd/progress/index.js +4 -0
  182. package/umd/rate/index.js +5 -0
  183. package/umd/slider/index.js +6 -1
  184. package/umd/stepper/index.js +7 -1
  185. package/umd/swipe-action/index.d.ts +1 -0
  186. package/umd/swipe-action/index.js +11 -4
  187. package/umd/switch/index.js +4 -0
  188. package/umd/toast/index.d.ts +18 -18
  189. package/umd/toast/index.js +3 -2
  190. package/umd/toast/methods.d.ts +2 -1
  191. package/umd/toast/methods.js +2 -2
@@ -191,12 +191,7 @@ export declare function methodsGenerator<P extends OpenBaseProps>(Comp: React.Fu
191
191
  */
192
192
  open: (config: Pick<P, Exclude<keyof P, "visible" | "close">> & {
193
193
  key?: string | undefined;
194
- }) => {
195
- /**
196
- * 点击蒙层是否关闭菜单
197
- * @en Whether to click the mask to close the menu
198
- * @default true
199
- */
194
+ }, context?: import("../context-provider").GlobalContextParams | undefined) => {
200
195
  close: () => void;
201
196
  update: (newConfig: Pick<P, Exclude<keyof P, "visible" | "close">> & {
202
197
  key?: string | undefined;
@@ -210,16 +205,11 @@ declare const _default: React.ForwardRefExoticComponent<MaskingProps & React.Ref
210
205
  * @param {MaskingProps} config Configuration
211
206
  * @returns {{ close: () => void; update: (newConfig: MaskingProps) => void; }}
212
207
  */
213
- open: (config: Pick<MaskingProps & React.RefAttributes<MaskingRef>, "ref" | "children" | "key" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "className" | "onClose" | "contentAtCenter" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onTouchMove" | "onPreventTouchMove" | "getScrollContainer"> & {
208
+ open: (config: Pick<import("../context-provider").WithGlobalContext<MaskingProps & React.RefAttributes<MaskingRef>>, "children" | "ref" | "key" | "context" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "className" | "onClose" | "contentAtCenter" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onTouchMove" | "onPreventTouchMove" | "getScrollContainer"> & {
214
209
  key?: string | undefined;
215
- }) => {
216
- /**
217
- * 点击蒙层是否关闭菜单
218
- * @en Whether to click the mask to close the menu
219
- * @default true
220
- */
210
+ }, context?: import("../context-provider").GlobalContextParams | undefined) => {
221
211
  close: () => void;
222
- update: (newConfig: Pick<MaskingProps & React.RefAttributes<MaskingRef>, "ref" | "children" | "key" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "className" | "onClose" | "contentAtCenter" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onTouchMove" | "onPreventTouchMove" | "getScrollContainer"> & {
212
+ update: (newConfig: Pick<import("../context-provider").WithGlobalContext<MaskingProps & React.RefAttributes<MaskingRef>>, "children" | "ref" | "key" | "context" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "className" | "onClose" | "contentAtCenter" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onTouchMove" | "onPreventTouchMove" | "getScrollContainer"> & {
223
213
  key?: string | undefined;
224
214
  }) => void;
225
215
  };
@@ -1,6 +1,6 @@
1
1
  import React, { useRef, forwardRef, useImperativeHandle, useEffect, useState } from 'react';
2
2
  import { cls, nextTick, componentWrapper } from '@arco-design/mobile-utils';
3
- import { ContextLayout } from '../context-provider';
3
+ import { ContextLayout, CompWithGlobalContext } from '../context-provider';
4
4
  import Portal from '../portal';
5
5
  import Transition from '../transition';
6
6
  import { usePopupScroll, usePreventBodyScroll } from '../_helpers';
@@ -190,6 +190,7 @@ export function methodsGenerator(Comp) {
190
190
  open: open(Comp)
191
191
  };
192
192
  }
193
+ var MaskingWithGlobalContext = CompWithGlobalContext(Masking);
193
194
  /**
194
195
  * 通用模态弹窗,内部内容自定义。默认做了防滚动穿透处理,如果弹层内容中需要滚动,则需将滚动容器传入`getScrollContainer`属性以在未滚动到顶部或底部时释放滚动。
195
196
  * @en Generic modal popup with custom internal content. By default, anti-scroll penetration processing is performed. If scrolling is required in the content of the bullet layer, need to pass the scroll container to the `getScrollContainer` to release scrolling when it is not scrolled to the top or bottom.
@@ -199,4 +200,4 @@ export function methodsGenerator(Comp) {
199
200
  * @name_en Masking
200
201
  */
201
202
 
202
- export default componentWrapper(Masking, methodsGenerator(Masking));
203
+ export default componentWrapper(Masking, methodsGenerator(MaskingWithGlobalContext));
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { GlobalContextParams } from '../context-provider';
2
3
  export interface OpenBaseProps {
3
4
  unmountOnExit?: boolean;
4
5
  getContainer?: () => HTMLElement;
@@ -8,13 +9,13 @@ export interface OpenBaseProps {
8
9
  }
9
10
  export declare function getOpenMethod<T extends {
10
11
  key?: string;
11
- }, P extends OpenBaseProps>(Component: React.FunctionComponent<P>, containerId?: string, normalize?: (config: T) => P): (config: T) => {
12
+ }, P extends OpenBaseProps>(Component: React.FunctionComponent<P>, containerId?: string, normalize?: (config: T) => P): (config: T, context?: GlobalContextParams | undefined) => {
12
13
  close: () => void;
13
14
  update: (newConfig: T) => void;
14
15
  };
15
16
  export declare function open<P extends OpenBaseProps>(Component: React.FunctionComponent<P>, containerId?: string): (config: Pick<P, Exclude<keyof P, "visible" | "close">> & {
16
17
  key?: string | undefined;
17
- }) => {
18
+ }, context?: GlobalContextParams | undefined) => {
18
19
  close: () => void;
19
20
  update: (newConfig: Pick<P, Exclude<keyof P, "visible" | "close">> & {
20
21
  key?: string | undefined;
@@ -8,7 +8,7 @@ export function getOpenMethod(Component, containerId, normalize) {
8
8
  };
9
9
  }
10
10
 
11
- return function (config) {
11
+ return function (config, context) {
12
12
  var baseProps = _extends({
13
13
  unmountOnExit: true
14
14
  }, normalize(config), {
@@ -26,7 +26,7 @@ export function getOpenMethod(Component, containerId, normalize) {
26
26
 
27
27
  var leaving = false;
28
28
 
29
- var _ReactDOMRender = new ReactDOMRender(Component, div),
29
+ var _ReactDOMRender = new ReactDOMRender(Component, div, context),
30
30
  render = _ReactDOMRender.render;
31
31
 
32
32
  function update(newConfig) {
@@ -105,6 +105,18 @@ export interface NavBarProps {
105
105
  * @en Set a custom style according to the scroll offset value. After setting this property, the scroll event of the scroll container will be monitored.
106
106
  */
107
107
  getComputedStyleByScroll?: (offset: number) => CSSProperties;
108
+ /**
109
+ * 无障碍aria-label属性
110
+ * @en Accessibility attribute aria-label
111
+ * @default ""
112
+ */
113
+ ariaLabel?: string;
114
+ /**
115
+ * 无障碍role属性
116
+ * @en Accessibility attribute role
117
+ * @default "banner"
118
+ */
119
+ ariaRole?: string;
108
120
  }
109
121
  /**
110
122
  * 导航栏组件,支持吸顶和沉浸式,支持在指定滚动位置展示,支持根据滚动位置实时更新style。
@@ -39,7 +39,11 @@ var NavBar = /*#__PURE__*/forwardRef(function (props, ref) {
39
39
  getScrollContainer = props.getScrollContainer,
40
40
  _props$showOffset = props.showOffset,
41
41
  showOffset = _props$showOffset === void 0 ? 0 : _props$showOffset,
42
- getComputedStyleByScroll = props.getComputedStyleByScroll;
42
+ getComputedStyleByScroll = props.getComputedStyleByScroll,
43
+ _props$ariaLabel = props.ariaLabel,
44
+ ariaLabel = _props$ariaLabel === void 0 ? '' : _props$ariaLabel,
45
+ _props$ariaRole = props.ariaRole,
46
+ ariaRole = _props$ariaRole === void 0 ? 'banner' : _props$ariaRole;
43
47
  var navBarRef = useRef(null);
44
48
 
45
49
  var _useState = useState(showOffset > 0),
@@ -127,7 +131,9 @@ var NavBar = /*#__PURE__*/forwardRef(function (props, ref) {
127
131
  paddingTop: fixed && statusBarHeight ? statusBarHeight + "px" : ''
128
132
  }, style || {}, relBackground ? {
129
133
  background: relBackground
130
- } : {})
134
+ } : {}),
135
+ "aria-label": ariaLabel,
136
+ role: ariaRole
131
137
  }, /*#__PURE__*/React.createElement("div", {
132
138
  className: cls(className, system, prefixCls + "-nav-bar-wrapper", (_cls2 = {}, _cls2[prefixCls + "-nav-bar-wrapper-fixed"] = fixed, _cls2[prefixCls + "-nav-bar-wrapper-border"] = hasBottomLine, _cls2)),
133
139
  style: _extends({
@@ -9,7 +9,7 @@ export declare function methodsGenerator<P extends NotifyBaseProps>(Comp: React.
9
9
  * @param {string | NotifyProps} config
10
10
  * @returns {{ update: (config: NotifyProps) => void; close: () => void }}
11
11
  */
12
- info: (originConfig: string | Pick<P, Exclude<keyof P, "visible" | "close">>) => {
12
+ info: (originConfig: string | Pick<P, Exclude<keyof P, "visible" | "close">>, context?: import("../context-provider").GlobalContextParams | undefined) => {
13
13
  update: (newConfig: Pick<P, Exclude<keyof P, "visible" | "close">>) => void;
14
14
  close: () => void;
15
15
  };
@@ -19,7 +19,7 @@ export declare function methodsGenerator<P extends NotifyBaseProps>(Comp: React.
19
19
  * @param {string | NotifyProps} config
20
20
  * @returns {{ update: (config: NotifyProps) => void; close: () => void }}
21
21
  */
22
- success: (originConfig: string | Pick<P, Exclude<keyof P, "visible" | "close">>) => {
22
+ success: (originConfig: string | Pick<P, Exclude<keyof P, "visible" | "close">>, context?: import("../context-provider").GlobalContextParams | undefined) => {
23
23
  update: (newConfig: Pick<P, Exclude<keyof P, "visible" | "close">>) => void;
24
24
  close: () => void;
25
25
  };
@@ -29,7 +29,7 @@ export declare function methodsGenerator<P extends NotifyBaseProps>(Comp: React.
29
29
  * @param {string | NotifyProps} config
30
30
  * @returns {{ update: (config: NotifyProps) => void; close: () => void }}
31
31
  */
32
- error: (originConfig: string | Pick<P, Exclude<keyof P, "visible" | "close">>) => {
32
+ error: (originConfig: string | Pick<P, Exclude<keyof P, "visible" | "close">>, context?: import("../context-provider").GlobalContextParams | undefined) => {
33
33
  update: (newConfig: Pick<P, Exclude<keyof P, "visible" | "close">>) => void;
34
34
  close: () => void;
35
35
  };
@@ -39,7 +39,7 @@ export declare function methodsGenerator<P extends NotifyBaseProps>(Comp: React.
39
39
  * @param {string | NotifyProps} config
40
40
  * @returns {{ update: (config: NotifyProps) => void; close: () => void }}
41
41
  */
42
- warn: (originConfig: string | Pick<P, Exclude<keyof P, "visible" | "close">>) => {
42
+ warn: (originConfig: string | Pick<P, Exclude<keyof P, "visible" | "close">>, context?: import("../context-provider").GlobalContextParams | undefined) => {
43
43
  update: (newConfig: Pick<P, Exclude<keyof P, "visible" | "close">>) => void;
44
44
  close: () => void;
45
45
  };
@@ -51,8 +51,8 @@ declare const _default: React.ForwardRefExoticComponent<NotifyProps & React.RefA
51
51
  * @param {string | NotifyProps} config
52
52
  * @returns {{ update: (config: NotifyProps) => void; close: () => void }}
53
53
  */
54
- info: (originConfig: string | Pick<NotifyProps & React.RefAttributes<NotifyRef>, "style" | "content" | "transitionDuration" | "ref" | "key" | "getContainer" | "type" | "className" | "duration" | "onClose">) => {
55
- update: (newConfig: Pick<NotifyProps & React.RefAttributes<NotifyRef>, "style" | "content" | "transitionDuration" | "ref" | "key" | "getContainer" | "type" | "className" | "duration" | "onClose">) => void;
54
+ info: (originConfig: string | Pick<import("../context-provider").WithGlobalContext<NotifyProps & React.RefAttributes<NotifyRef>>, "style" | "content" | "transitionDuration" | "ref" | "key" | "context" | "getContainer" | "type" | "className" | "duration" | "onClose">, context?: import("../context-provider").GlobalContextParams | undefined) => {
55
+ update: (newConfig: Pick<import("../context-provider").WithGlobalContext<NotifyProps & React.RefAttributes<NotifyRef>>, "style" | "content" | "transitionDuration" | "ref" | "key" | "context" | "getContainer" | "type" | "className" | "duration" | "onClose">) => void;
56
56
  close: () => void;
57
57
  };
58
58
  /**
@@ -61,8 +61,8 @@ declare const _default: React.ForwardRefExoticComponent<NotifyProps & React.RefA
61
61
  * @param {string | NotifyProps} config
62
62
  * @returns {{ update: (config: NotifyProps) => void; close: () => void }}
63
63
  */
64
- success: (originConfig: string | Pick<NotifyProps & React.RefAttributes<NotifyRef>, "style" | "content" | "transitionDuration" | "ref" | "key" | "getContainer" | "type" | "className" | "duration" | "onClose">) => {
65
- update: (newConfig: Pick<NotifyProps & React.RefAttributes<NotifyRef>, "style" | "content" | "transitionDuration" | "ref" | "key" | "getContainer" | "type" | "className" | "duration" | "onClose">) => void;
64
+ success: (originConfig: string | Pick<import("../context-provider").WithGlobalContext<NotifyProps & React.RefAttributes<NotifyRef>>, "style" | "content" | "transitionDuration" | "ref" | "key" | "context" | "getContainer" | "type" | "className" | "duration" | "onClose">, context?: import("../context-provider").GlobalContextParams | undefined) => {
65
+ update: (newConfig: Pick<import("../context-provider").WithGlobalContext<NotifyProps & React.RefAttributes<NotifyRef>>, "style" | "content" | "transitionDuration" | "ref" | "key" | "context" | "getContainer" | "type" | "className" | "duration" | "onClose">) => void;
66
66
  close: () => void;
67
67
  };
68
68
  /**
@@ -71,8 +71,8 @@ declare const _default: React.ForwardRefExoticComponent<NotifyProps & React.RefA
71
71
  * @param {string | NotifyProps} config
72
72
  * @returns {{ update: (config: NotifyProps) => void; close: () => void }}
73
73
  */
74
- error: (originConfig: string | Pick<NotifyProps & React.RefAttributes<NotifyRef>, "style" | "content" | "transitionDuration" | "ref" | "key" | "getContainer" | "type" | "className" | "duration" | "onClose">) => {
75
- update: (newConfig: Pick<NotifyProps & React.RefAttributes<NotifyRef>, "style" | "content" | "transitionDuration" | "ref" | "key" | "getContainer" | "type" | "className" | "duration" | "onClose">) => void;
74
+ error: (originConfig: string | Pick<import("../context-provider").WithGlobalContext<NotifyProps & React.RefAttributes<NotifyRef>>, "style" | "content" | "transitionDuration" | "ref" | "key" | "context" | "getContainer" | "type" | "className" | "duration" | "onClose">, context?: import("../context-provider").GlobalContextParams | undefined) => {
75
+ update: (newConfig: Pick<import("../context-provider").WithGlobalContext<NotifyProps & React.RefAttributes<NotifyRef>>, "style" | "content" | "transitionDuration" | "ref" | "key" | "context" | "getContainer" | "type" | "className" | "duration" | "onClose">) => void;
76
76
  close: () => void;
77
77
  };
78
78
  /**
@@ -81,8 +81,8 @@ declare const _default: React.ForwardRefExoticComponent<NotifyProps & React.RefA
81
81
  * @param {string | NotifyProps} config
82
82
  * @returns {{ update: (config: NotifyProps) => void; close: () => void }}
83
83
  */
84
- warn: (originConfig: string | Pick<NotifyProps & React.RefAttributes<NotifyRef>, "style" | "content" | "transitionDuration" | "ref" | "key" | "getContainer" | "type" | "className" | "duration" | "onClose">) => {
85
- update: (newConfig: Pick<NotifyProps & React.RefAttributes<NotifyRef>, "style" | "content" | "transitionDuration" | "ref" | "key" | "getContainer" | "type" | "className" | "duration" | "onClose">) => void;
84
+ warn: (originConfig: string | Pick<import("../context-provider").WithGlobalContext<NotifyProps & React.RefAttributes<NotifyRef>>, "style" | "content" | "transitionDuration" | "ref" | "key" | "context" | "getContainer" | "type" | "className" | "duration" | "onClose">, context?: import("../context-provider").GlobalContextParams | undefined) => {
85
+ update: (newConfig: Pick<import("../context-provider").WithGlobalContext<NotifyProps & React.RefAttributes<NotifyRef>>, "style" | "content" | "transitionDuration" | "ref" | "key" | "context" | "getContainer" | "type" | "className" | "duration" | "onClose">) => void;
86
86
  close: () => void;
87
87
  };
88
88
  };
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { useRef, forwardRef, useImperativeHandle, useEffect, useState } from 'react';
3
3
  import ReactDOM from 'react-dom';
4
4
  import { componentWrapper, nextTick } from '@arco-design/mobile-utils';
5
- import { ContextLayout } from '../context-provider';
5
+ import { ContextLayout, CompWithGlobalContext } from '../context-provider';
6
6
  import { getStyleWithVendor, useUpdateEffect } from '../_helpers';
7
7
  import { notify } from './methods';
8
8
  export * from './type';
@@ -145,6 +145,7 @@ export function methodsGenerator(Comp) {
145
145
  warn: notify(Comp, 'warn')
146
146
  };
147
147
  }
148
+ var NotifyWithGlobalContext = CompWithGlobalContext(Notify);
148
149
  /**
149
150
  * 主动操作后显示的反馈信息横条,可采用方法调用或者组件调用的方式
150
151
  * @en The feedback information bar displayed after active operation can be called by method or by component.
@@ -154,4 +155,4 @@ export function methodsGenerator(Comp) {
154
155
  * @name_en Notify
155
156
  */
156
157
 
157
- export default componentWrapper(Notify, methodsGenerator(Notify));
158
+ export default componentWrapper(Notify, methodsGenerator(NotifyWithGlobalContext));
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { GlobalContextParams } from '../context-provider';
2
3
  export interface NotifyBaseProps {
3
4
  getContainer?: () => HTMLElement;
4
5
  onClose?: (scene?: string) => void;
@@ -7,7 +8,7 @@ export interface NotifyBaseProps {
7
8
  close?: (e: any) => void;
8
9
  type?: string;
9
10
  }
10
- export declare function notify<P extends NotifyBaseProps>(Component: React.FC<P>, type?: string): (originConfig: string | Pick<P, Exclude<keyof P, "visible" | "close">>) => {
11
+ export declare function notify<P extends NotifyBaseProps>(Component: React.FC<P>, type?: string): (originConfig: string | Pick<P, Exclude<keyof P, "visible" | "close">>, context?: GlobalContextParams | undefined) => {
11
12
  update: (newConfig: Pick<P, Exclude<keyof P, "visible" | "close">>) => void;
12
13
  close: () => void;
13
14
  };
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import { nextTick } from '@arco-design/mobile-utils';
3
3
  import { ReactDOMRender } from '../_helpers/render';
4
4
  export function notify(Component, type) {
5
- return function (originConfig) {
5
+ return function (originConfig, context) {
6
6
  var config = typeof originConfig === 'string' ? {
7
7
  content: originConfig,
8
8
  type: 'info'
@@ -21,7 +21,7 @@ export function notify(Component, type) {
21
21
  document.body.appendChild(div);
22
22
  }
23
23
 
24
- var _ReactDOMRender = new ReactDOMRender(Component, div),
24
+ var _ReactDOMRender = new ReactDOMRender(Component, div, context),
25
25
  render = _ReactDOMRender.render,
26
26
  unmount = _ReactDOMRender.unmount;
27
27
 
@@ -346,12 +346,14 @@ var PickerCell = /*#__PURE__*/forwardRef(function (props, ref) {
346
346
  ref: wrapRef,
347
347
  onTouchStart: _handleItemTouchStart,
348
348
  onTouchEnd: _handleColumnTouchEnd,
349
- onTouchCancel: _handleColumnTouchEnd
349
+ onTouchCancel: _handleColumnTouchEnd,
350
+ "aria-disabled": disabled
350
351
  }, data.map(function (item, index) {
351
352
  var _cls;
352
353
 
353
354
  var dis = Math.abs(index - currentIndex);
354
355
  return /*#__PURE__*/React.createElement("div", {
356
+ "aria-label": index === currentIndex ? "" + item.value : '',
355
357
  key: index + "_" + item.value,
356
358
  className: cls(prefixCls + "-column-item", (_cls = {
357
359
  selected: index === currentIndex
@@ -52,7 +52,7 @@ export declare function methodsGenerator<P extends OpenBaseProps>(Comp: React.Fu
52
52
  */
53
53
  open: (config: Pick<P, Exclude<keyof P, "visible" | "close">> & {
54
54
  key?: string | undefined;
55
- }) => {
55
+ }, context?: import("../context-provider").GlobalContextParams | undefined) => {
56
56
  close: () => void;
57
57
  update: (newConfig: Pick<P, Exclude<keyof P, "visible" | "close">> & {
58
58
  key?: string | undefined;
@@ -66,11 +66,11 @@ declare const _default: React.ForwardRefExoticComponent<PopupProps & React.RefAt
66
66
  * @param {PopupProps} config Configuration
67
67
  * @returns {{ close: () => void; update: (newConfig: PopupProps) => void; }}
68
68
  */
69
- open: (config: Pick<PopupProps & React.RefAttributes<PopupRef>, "direction" | "ref" | "children" | "key" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "className" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onTouchMove" | "onPreventTouchMove" | "getScrollContainer" | "needBottomOffset" | "translateZ"> & {
69
+ open: (config: Pick<import("../context-provider").WithGlobalContext<PopupProps & React.RefAttributes<PopupRef>>, "direction" | "children" | "ref" | "key" | "context" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "className" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onTouchMove" | "onPreventTouchMove" | "getScrollContainer" | "needBottomOffset" | "translateZ"> & {
70
70
  key?: string | undefined;
71
- }) => {
71
+ }, context?: import("../context-provider").GlobalContextParams | undefined) => {
72
72
  close: () => void;
73
- update: (newConfig: Pick<PopupProps & React.RefAttributes<PopupRef>, "direction" | "ref" | "children" | "key" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "className" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onTouchMove" | "onPreventTouchMove" | "getScrollContainer" | "needBottomOffset" | "translateZ"> & {
73
+ update: (newConfig: Pick<import("../context-provider").WithGlobalContext<PopupProps & React.RefAttributes<PopupRef>>, "direction" | "children" | "ref" | "key" | "context" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "className" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onTouchMove" | "onPreventTouchMove" | "getScrollContainer" | "needBottomOffset" | "translateZ"> & {
74
74
  key?: string | undefined;
75
75
  }) => void;
76
76
  };
@@ -3,7 +3,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutP
3
3
  var _excluded = ["children", "maskClass", "contentClass", "contentTransitionType", "className", "direction", "needBottomOffset", "translateZ", "maskTransitionTimeout", "contentTransitionTimeout"];
4
4
  import React, { useRef, forwardRef, useImperativeHandle } from 'react';
5
5
  import { cls, componentWrapper } from '@arco-design/mobile-utils';
6
- import { ContextLayout } from '../context-provider';
6
+ import { ContextLayout, CompWithGlobalContext } from '../context-provider';
7
7
  import Masking from '../masking';
8
8
  import { open } from './methods';
9
9
  export * from './methods';
@@ -69,6 +69,7 @@ export function methodsGenerator(Comp) {
69
69
  open: open(Comp)
70
70
  };
71
71
  }
72
+ var PopupWithGlobalContext = CompWithGlobalContext(Popup);
72
73
  /**
73
74
  * 基于模态弹窗的的全屏菜单,支持各个方向。默认做了防滚动穿透处理,如果弹层内容中需要滚动,则需将滚动容器传入`getScrollContainer`属性以在未滚动到顶部或底部时释放滚动。
74
75
  * @en A full-screen menu based on a modal popup, supporting all directions. By default, anti-scroll penetration processing is performed. If scrolling is required in the content of the popup layer, you need to pass the scroll container to the `getScrollContainer` property to release scrolling when it is not scrolled to the top or bottom.
@@ -78,4 +79,4 @@ export function methodsGenerator(Comp) {
78
79
  * @name_en Popup
79
80
  */
80
81
 
81
- export default componentWrapper(Popup, methodsGenerator(Popup));
82
+ export default componentWrapper(Popup, methodsGenerator(PopupWithGlobalContext));
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { OpenBaseProps } from '../masking/methods';
3
3
  export declare function open<P extends OpenBaseProps>(Component: React.FunctionComponent<P>): (config: Pick<P, Exclude<keyof P, "visible" | "close">> & {
4
4
  key?: string | undefined;
5
- }) => {
5
+ }, context?: import("../context-provider").GlobalContextParams | undefined) => {
6
6
  close: () => void;
7
7
  update: (newConfig: Pick<P, Exclude<keyof P, "visible" | "close">> & {
8
8
  key?: string | undefined;
@@ -59,11 +59,14 @@ export declare function methodsGenerator<P extends OpenBaseProps>(Comp: React.Fu
59
59
  */
60
60
  open: (config: Pick<P, Exclude<keyof P, "visible" | "close">> & {
61
61
  key?: string | undefined;
62
- }) => {
62
+ }, context?: import("../context-provider").GlobalContextParams | undefined) => {
63
63
  close: () => void;
64
64
  update: (newConfig: Pick<P, Exclude<keyof P, "visible" | "close">> & {
65
65
  key?: string | undefined;
66
- }) => void;
66
+ }) => void; /**
67
+ * 内容面板 touchstart 事件,返回true时表示阻止本组件内部处理事件
68
+ * @en The touchstart callback of content panel. When it returns true, it means that the event is prevented from being processed inside the component
69
+ */
67
70
  };
68
71
  };
69
72
  declare const _default: React.ForwardRefExoticComponent<PopupSwiperProps & React.RefAttributes<PopupSwiperRef>> & {
@@ -73,13 +76,16 @@ declare const _default: React.ForwardRefExoticComponent<PopupSwiperProps & React
73
76
  * @param {string | PopupSwiperProps} config Configuration
74
77
  * @returns {{ close: () => void; update: (newConfig: PopupSwiperProps) => void; }}
75
78
  */
76
- open: (config: Pick<PopupSwiperProps & React.RefAttributes<PopupSwiperRef>, "direction" | "ref" | "children" | "key" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "className" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onTouchMove" | "onPreventTouchMove" | "getScrollContainer" | "needBottomOffset" | "translateZ" | "onTouchEnd" | "onTouchStart" | "percentToClose" | "distanceToClose" | "speedToClose" | "allowSwipeDirections" | "exitDirection"> & {
79
+ open: (config: Pick<import("../context-provider").WithGlobalContext<PopupSwiperProps & React.RefAttributes<PopupSwiperRef>>, "direction" | "children" | "ref" | "key" | "context" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "className" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onTouchMove" | "onPreventTouchMove" | "getScrollContainer" | "needBottomOffset" | "translateZ" | "onTouchEnd" | "onTouchStart" | "percentToClose" | "distanceToClose" | "speedToClose" | "allowSwipeDirections" | "exitDirection"> & {
77
80
  key?: string | undefined;
78
- }) => {
81
+ }, context?: import("../context-provider").GlobalContextParams | undefined) => {
79
82
  close: () => void;
80
- update: (newConfig: Pick<PopupSwiperProps & React.RefAttributes<PopupSwiperRef>, "direction" | "ref" | "children" | "key" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "className" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onTouchMove" | "onPreventTouchMove" | "getScrollContainer" | "needBottomOffset" | "translateZ" | "onTouchEnd" | "onTouchStart" | "percentToClose" | "distanceToClose" | "speedToClose" | "allowSwipeDirections" | "exitDirection"> & {
83
+ update: (newConfig: Pick<import("../context-provider").WithGlobalContext<PopupSwiperProps & React.RefAttributes<PopupSwiperRef>>, "direction" | "children" | "ref" | "key" | "context" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "className" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onTouchMove" | "onPreventTouchMove" | "getScrollContainer" | "needBottomOffset" | "translateZ" | "onTouchEnd" | "onTouchStart" | "percentToClose" | "distanceToClose" | "speedToClose" | "allowSwipeDirections" | "exitDirection"> & {
81
84
  key?: string | undefined;
82
- }) => void;
85
+ }) => void; /**
86
+ * 内容面板 touchstart 事件,返回true时表示阻止本组件内部处理事件
87
+ * @en The touchstart callback of content panel. When it returns true, it means that the event is prevented from being processed inside the component
88
+ */
83
89
  };
84
90
  };
85
91
  /**
@@ -3,7 +3,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutP
3
3
  var _excluded = ["className", "visible", "children", "maskStyle", "contentStyle", "direction", "percentToClose", "distanceToClose", "speedToClose", "allowSwipeDirections", "exitDirection", "onTouchMove", "onTouchStart", "onTouchEnd", "onOpen", "onClose", "close"];
4
4
  import React, { useRef, forwardRef, useImperativeHandle, useCallback, useState, useEffect, useMemo } from 'react';
5
5
  import { cls, componentWrapper, nextTick } from '@arco-design/mobile-utils';
6
- import { ContextLayout } from '../context-provider';
6
+ import { ContextLayout, CompWithGlobalContext } from '../context-provider';
7
7
  import Popup from '../popup';
8
8
  import { open } from './methods';
9
9
  import { getStyleWithVendor, useRefState } from '../_helpers';
@@ -258,6 +258,7 @@ export function methodsGenerator(Comp) {
258
258
  open: open(Comp)
259
259
  };
260
260
  }
261
+ var PopupSwiperWithGlobalContext = CompWithGlobalContext(PopupSwiper);
261
262
  /**
262
263
  * 基于弹出层(Popup)封装的具有手势关闭功能的弹出层组件,拥有 Popup 组件的其他能力。
263
264
  * @en The popup with gesture closing function based on the popup encapsulation, has other capabilities of the Popup component.
@@ -267,4 +268,4 @@ export function methodsGenerator(Comp) {
267
268
  * @name_en PopupSwiper
268
269
  */
269
270
 
270
- export default componentWrapper(PopupSwiper, methodsGenerator(PopupSwiper));
271
+ export default componentWrapper(PopupSwiper, methodsGenerator(PopupSwiperWithGlobalContext));
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { OpenBaseProps } from '../masking/methods';
3
3
  export declare function open<P extends OpenBaseProps>(Component: React.FunctionComponent<P>): (config: Pick<P, Exclude<keyof P, "visible" | "close">> & {
4
4
  key?: string | undefined;
5
- }) => {
5
+ }, context?: import("../context-provider").GlobalContextParams | undefined) => {
6
6
  close: () => void;
7
7
  update: (newConfig: Pick<P, Exclude<keyof P, "visible" | "close">> & {
8
8
  key?: string | undefined;
@@ -86,6 +86,10 @@ var Progress = /*#__PURE__*/forwardRef(function (props, ref) {
86
86
  function renderBarProgress(_ref) {
87
87
  var prefixCls = _ref.prefixCls;
88
88
  return /*#__PURE__*/React.createElement("div", {
89
+ role: "progressbar",
90
+ "aria-valuenow": percentage,
91
+ "aria-valuemax": 100,
92
+ "aria-valuemin": 0,
89
93
  className: cls(prefixCls + "-progress", {
90
94
  'progress-fixed': mode === 'nav'
91
95
  }, {
package/esm/rate/index.js CHANGED
@@ -144,6 +144,11 @@ var Rate = /*#__PURE__*/forwardRef(function (props, ref) {
144
144
  return /*#__PURE__*/React.createElement(ContextLayout, null, function (_ref2) {
145
145
  var prefixCls = _ref2.prefixCls;
146
146
  return /*#__PURE__*/React.createElement("div", {
147
+ role: "slider",
148
+ "aria-valuemin": 0,
149
+ "aria-valuemax": count,
150
+ "aria-valuenow": innerValue,
151
+ "aria-disabled": disabled,
147
152
  className: cls(prefixCls + "-rate", className, {
148
153
  disabled: disabled
149
154
  }),
@@ -126,7 +126,12 @@ var Slider = /*#__PURE__*/forwardRef(function (_, ref) {
126
126
  'show-marks': showMarks
127
127
  }),
128
128
  style: style,
129
- ref: domRef
129
+ ref: domRef,
130
+ role: "slider",
131
+ "aria-valuemin": min,
132
+ "aria-valuemax": max,
133
+ "aria-valuenow": Array.isArray(valueGroup) ? valueGroup[0] : valueGroup,
134
+ "aria-disabled": disabled
130
135
  }, isHorizontal ? renderPrefixLabel : renderSuffixLabel, /*#__PURE__*/React.createElement("div", {
131
136
  className: prefixCls + "-slider-wrapper"
132
137
  }, /*#__PURE__*/React.createElement(Marks, {
@@ -125,6 +125,7 @@ var Stepper = /*#__PURE__*/forwardRef(function (props, ref) {
125
125
  ref: domRef,
126
126
  onClick: onClick
127
127
  }, /*#__PURE__*/React.createElement("div", {
128
+ "aria-label": "decrease",
128
129
  onClick: handleMinusButtonClick
129
130
  }, minusButton || /*#__PURE__*/React.createElement("div", {
130
131
  className: cls(prefixCls + "-stepper-minus-button")
@@ -142,8 +143,13 @@ var Stepper = /*#__PURE__*/forwardRef(function (props, ref) {
142
143
  value: showValue,
143
144
  readOnly: inputReadonly,
144
145
  ref: inputRef,
145
- type: "number"
146
+ type: "number",
147
+ role: "spinbutton",
148
+ "aria-valuenow": Number(showValue),
149
+ "aria-valuemax": max,
150
+ "aria-valuemin": min
146
151
  }), /*#__PURE__*/React.createElement("div", {
152
+ "aria-label": "increase",
147
153
  onClick: handleAddButtonClick
148
154
  }, addButton || /*#__PURE__*/React.createElement("div", {
149
155
  className: cls(prefixCls + "-stepper-add-button")
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { SwipeActionProps, SwipeActionRef } from './type';
3
+ export * from './type';
3
4
  /**
4
5
  * 滑动操作组件,左右滑动拉出菜单栏
5
6
  * @en SwipeAction component, slide left and right to pull out the menu bar
@@ -4,6 +4,7 @@ import { nextTick, cls } from '@arco-design/mobile-utils';
4
4
  import { GlobalContext } from '../context-provider';
5
5
  import RenderAction from './item';
6
6
  import { getStyleWithVendor, useLatestRef, useRefState } from '../_helpers';
7
+ export * from './type';
7
8
  /**
8
9
  * 滑动操作组件,左右滑动拉出菜单栏
9
10
  * @en SwipeAction component, slide left and right to pull out the menu bar
@@ -104,6 +104,10 @@ var Switch = /*#__PURE__*/forwardRef(function (props, ref) {
104
104
  return /*#__PURE__*/React.createElement(ContextLayout, null, function (_ref) {
105
105
  var prefixCls = _ref.prefixCls;
106
106
  return /*#__PURE__*/React.createElement("div", {
107
+ role: "switch",
108
+ "aria-checked": switchChecked,
109
+ "aria-disabled": disabled,
110
+ tabIndex: 0,
107
111
  ref: domRef,
108
112
  className: cls(prefixCls + "-switch all-border-box", className, "type-" + platform, "system-" + system, shape, {
109
113
  checked: switchChecked,