@arco-design/mobile-react 2.36.2 → 2.37.0

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 (167) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.en-US.md +2 -2
  3. package/README.md +2 -2
  4. package/cjs/_helpers/hooks.d.ts +1 -1
  5. package/cjs/_helpers/hooks.js +1 -1
  6. package/cjs/_helpers/react-dom.d.ts +5 -5
  7. package/cjs/_helpers/react-dom.js +49 -32
  8. package/cjs/_helpers/render.js +6 -3
  9. package/cjs/action-sheet/index.d.ts +3 -2
  10. package/cjs/action-sheet/index.js +2 -2
  11. package/cjs/checkbox/checkbox.d.ts +1 -1
  12. package/cjs/checkbox/group.d.ts +1 -1
  13. package/cjs/checkbox/hooks/useMergeProps.d.ts +1 -1
  14. package/cjs/checkbox/index.d.ts +2 -2
  15. package/cjs/context-provider/index.d.ts +8 -2
  16. package/cjs/count-down/hooks.js +2 -2
  17. package/cjs/dialog/index.d.ts +8 -3
  18. package/cjs/dialog/methods.d.ts +6 -2
  19. package/cjs/dropdown-menu/helper.d.ts +2 -2
  20. package/cjs/ellipsis/components/native-ellipsis.d.ts +2 -3
  21. package/cjs/ellipsis/components/native-ellipsis.js +1 -2
  22. package/cjs/form/type.d.ts +5 -5
  23. package/cjs/image-preview/index.d.ts +2 -2
  24. package/cjs/index-bar/group.js +3 -1
  25. package/cjs/index-bar/index.d.ts +2 -2
  26. package/cjs/index-bar/utils.d.ts +1 -1
  27. package/cjs/masking/index.d.ts +2 -2
  28. package/cjs/notify/index.d.ts +8 -8
  29. package/cjs/notify/index.js +2 -2
  30. package/cjs/picker-view/components/cascader.js +3 -1
  31. package/cjs/picker-view/components/picker-cell.js +1 -1
  32. package/cjs/picker-view/index.js +3 -1
  33. package/cjs/popup/index.d.ts +2 -2
  34. package/cjs/popup-swiper/index.d.ts +2 -2
  35. package/cjs/pull-refresh/hooks.d.ts +2 -2
  36. package/cjs/radio/group.d.ts +1 -1
  37. package/cjs/radio/index.d.ts +2 -2
  38. package/cjs/radio/radio.d.ts +1 -1
  39. package/cjs/skeleton/elements.js +9 -3
  40. package/cjs/slider/hooks/index.d.ts +1 -1
  41. package/cjs/slider/hooks/useSliderEvents.d.ts +1 -1
  42. package/cjs/stepper/hooks/useValue.d.ts +2 -1
  43. package/cjs/steps/index.d.ts +1 -1
  44. package/cjs/tabs/type.d.ts +2 -2
  45. package/cjs/toast/index.d.ts +12 -12
  46. package/cjs/toast/index.js +1 -1
  47. package/dist/index.js +103 -75
  48. package/dist/index.min.js +4 -4
  49. package/esm/_helpers/hooks.d.ts +1 -1
  50. package/esm/_helpers/hooks.js +1 -1
  51. package/esm/_helpers/react-dom.d.ts +5 -5
  52. package/esm/_helpers/react-dom.js +49 -30
  53. package/esm/_helpers/render.js +6 -3
  54. package/esm/action-sheet/index.d.ts +3 -2
  55. package/esm/action-sheet/index.js +2 -2
  56. package/esm/checkbox/checkbox.d.ts +1 -1
  57. package/esm/checkbox/group.d.ts +1 -1
  58. package/esm/checkbox/hooks/useMergeProps.d.ts +1 -1
  59. package/esm/checkbox/index.d.ts +2 -2
  60. package/esm/context-provider/index.d.ts +8 -2
  61. package/esm/count-down/hooks.js +2 -2
  62. package/esm/dialog/index.d.ts +8 -3
  63. package/esm/dialog/methods.d.ts +6 -2
  64. package/esm/dropdown-menu/helper.d.ts +2 -2
  65. package/esm/ellipsis/components/native-ellipsis.d.ts +2 -3
  66. package/esm/ellipsis/components/native-ellipsis.js +1 -1
  67. package/esm/form/type.d.ts +5 -5
  68. package/esm/image-preview/index.d.ts +2 -2
  69. package/esm/index-bar/group.js +3 -1
  70. package/esm/index-bar/index.d.ts +2 -2
  71. package/esm/index-bar/utils.d.ts +1 -1
  72. package/esm/masking/index.d.ts +2 -2
  73. package/esm/notify/index.d.ts +8 -8
  74. package/esm/notify/index.js +2 -2
  75. package/esm/picker-view/components/cascader.js +3 -1
  76. package/esm/picker-view/components/picker-cell.js +1 -1
  77. package/esm/picker-view/index.js +3 -1
  78. package/esm/popup/index.d.ts +2 -2
  79. package/esm/popup-swiper/index.d.ts +2 -2
  80. package/esm/pull-refresh/hooks.d.ts +2 -2
  81. package/esm/radio/group.d.ts +1 -1
  82. package/esm/radio/index.d.ts +2 -2
  83. package/esm/radio/radio.d.ts +1 -1
  84. package/esm/skeleton/elements.js +9 -3
  85. package/esm/slider/hooks/index.d.ts +1 -1
  86. package/esm/slider/hooks/useSliderEvents.d.ts +1 -1
  87. package/esm/stepper/hooks/useValue.d.ts +2 -1
  88. package/esm/steps/index.d.ts +1 -1
  89. package/esm/tabs/type.d.ts +2 -2
  90. package/esm/toast/index.d.ts +12 -12
  91. package/esm/toast/index.js +1 -1
  92. package/esnext/_helpers/hooks.js +1 -1
  93. package/esnext/_helpers/react-dom.d.ts +5 -5
  94. package/esnext/_helpers/react-dom.js +47 -28
  95. package/esnext/_helpers/render.js +3 -2
  96. package/esnext/action-sheet/index.d.ts +3 -2
  97. package/esnext/action-sheet/index.js +1 -1
  98. package/esnext/context-provider/index.d.ts +8 -2
  99. package/esnext/context-provider/index.js +1 -1
  100. package/esnext/count-down/hooks.js +2 -2
  101. package/esnext/dialog/index.d.ts +8 -3
  102. package/esnext/dialog/methods.d.ts +6 -2
  103. package/esnext/dropdown-menu/helper.d.ts +1 -1
  104. package/esnext/ellipsis/components/native-ellipsis.d.ts +2 -3
  105. package/esnext/ellipsis/components/native-ellipsis.js +1 -1
  106. package/esnext/form/type.d.ts +5 -5
  107. package/esnext/image-preview/index.d.ts +2 -2
  108. package/esnext/index-bar/group.js +5 -1
  109. package/esnext/index-bar/index.d.ts +2 -2
  110. package/esnext/masking/index.d.ts +2 -2
  111. package/esnext/notify/index.d.ts +8 -8
  112. package/esnext/notify/index.js +2 -2
  113. package/esnext/picker-view/components/cascader.js +5 -1
  114. package/esnext/picker-view/components/picker-cell.js +1 -1
  115. package/esnext/picker-view/index.js +5 -1
  116. package/esnext/popup/index.d.ts +2 -2
  117. package/esnext/popup-swiper/index.d.ts +2 -2
  118. package/esnext/pull-refresh/hooks.d.ts +2 -2
  119. package/esnext/skeleton/elements.js +15 -3
  120. package/esnext/slider/hooks/useSliderEvents.d.ts +1 -1
  121. package/esnext/tabs/type.d.ts +2 -2
  122. package/esnext/toast/index.d.ts +12 -12
  123. package/esnext/toast/index.js +1 -1
  124. package/package.json +3 -3
  125. package/umd/_helpers/hooks.d.ts +1 -1
  126. package/umd/_helpers/hooks.js +1 -1
  127. package/umd/_helpers/react-dom.d.ts +5 -5
  128. package/umd/_helpers/react-dom.js +53 -35
  129. package/umd/_helpers/render.js +6 -3
  130. package/umd/action-sheet/index.d.ts +3 -2
  131. package/umd/action-sheet/index.js +2 -2
  132. package/umd/checkbox/checkbox.d.ts +1 -1
  133. package/umd/checkbox/group.d.ts +1 -1
  134. package/umd/checkbox/hooks/useMergeProps.d.ts +1 -1
  135. package/umd/checkbox/index.d.ts +2 -2
  136. package/umd/context-provider/index.d.ts +8 -2
  137. package/umd/count-down/hooks.js +2 -2
  138. package/umd/dialog/index.d.ts +8 -3
  139. package/umd/dialog/methods.d.ts +6 -2
  140. package/umd/dropdown-menu/helper.d.ts +2 -2
  141. package/umd/ellipsis/components/native-ellipsis.d.ts +2 -3
  142. package/umd/ellipsis/components/native-ellipsis.js +1 -2
  143. package/umd/form/type.d.ts +5 -5
  144. package/umd/image-preview/index.d.ts +2 -2
  145. package/umd/index-bar/group.js +3 -1
  146. package/umd/index-bar/index.d.ts +2 -2
  147. package/umd/index-bar/utils.d.ts +1 -1
  148. package/umd/masking/index.d.ts +2 -2
  149. package/umd/notify/index.d.ts +8 -8
  150. package/umd/notify/index.js +2 -2
  151. package/umd/picker-view/components/cascader.js +3 -1
  152. package/umd/picker-view/components/picker-cell.js +1 -1
  153. package/umd/picker-view/index.js +3 -1
  154. package/umd/popup/index.d.ts +2 -2
  155. package/umd/popup-swiper/index.d.ts +2 -2
  156. package/umd/pull-refresh/hooks.d.ts +2 -2
  157. package/umd/radio/group.d.ts +1 -1
  158. package/umd/radio/index.d.ts +2 -2
  159. package/umd/radio/radio.d.ts +1 -1
  160. package/umd/skeleton/elements.js +9 -3
  161. package/umd/slider/hooks/index.d.ts +1 -1
  162. package/umd/slider/hooks/useSliderEvents.d.ts +1 -1
  163. package/umd/stepper/hooks/useValue.d.ts +2 -1
  164. package/umd/steps/index.d.ts +1 -1
  165. package/umd/tabs/type.d.ts +2 -2
  166. package/umd/toast/index.d.ts +12 -12
  167. package/umd/toast/index.js +1 -1
@@ -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<import("../context-provider").WithGlobalContext<PopupProps & React.RefAttributes<PopupRef>>, "direction" | "children" | "ref" | "key" | "context" | "translateZ" | "className" | "getScrollContainer" | "onTouchMove" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "needBottomOffset"> & {
69
+ open: (config: Pick<import("../context-provider").WithGlobalContext<PopupProps & React.RefAttributes<PopupRef>>, "ref" | "className" | "children" | "direction" | "context" | "key" | "translateZ" | "getScrollContainer" | "onTouchMove" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "needBottomOffset"> & {
70
70
  key?: string | undefined;
71
71
  }, context?: import("../context-provider").GlobalContextParams | undefined) => {
72
72
  close: () => void;
73
- update: (newConfig: Pick<import("../context-provider").WithGlobalContext<PopupProps & React.RefAttributes<PopupRef>>, "direction" | "children" | "ref" | "key" | "context" | "translateZ" | "className" | "getScrollContainer" | "onTouchMove" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "needBottomOffset"> & {
73
+ update: (newConfig: Pick<import("../context-provider").WithGlobalContext<PopupProps & React.RefAttributes<PopupRef>>, "ref" | "className" | "children" | "direction" | "context" | "key" | "translateZ" | "getScrollContainer" | "onTouchMove" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "needBottomOffset"> & {
74
74
  key?: string | undefined;
75
75
  }) => void;
76
76
  };
@@ -73,11 +73,11 @@ declare const _default: React.ForwardRefExoticComponent<PopupSwiperProps & React
73
73
  * @param {string | PopupSwiperProps} config Configuration
74
74
  * @returns {{ close: () => void; update: (newConfig: PopupSwiperProps) => void; }}
75
75
  */
76
- open: (config: Pick<import("../context-provider").WithGlobalContext<PopupSwiperProps & React.RefAttributes<PopupSwiperRef>>, "direction" | "children" | "ref" | "key" | "context" | "translateZ" | "className" | "getScrollContainer" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "needBottomOffset" | "percentToClose" | "distanceToClose" | "speedToClose" | "allowSwipeDirections" | "exitDirection"> & {
76
+ open: (config: Pick<import("../context-provider").WithGlobalContext<PopupSwiperProps & React.RefAttributes<PopupSwiperRef>>, "ref" | "className" | "children" | "direction" | "context" | "key" | "translateZ" | "getScrollContainer" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "needBottomOffset" | "percentToClose" | "distanceToClose" | "speedToClose" | "allowSwipeDirections" | "exitDirection"> & {
77
77
  key?: string | undefined;
78
78
  }, context?: import("../context-provider").GlobalContextParams | undefined) => {
79
79
  close: () => void;
80
- update: (newConfig: Pick<import("../context-provider").WithGlobalContext<PopupSwiperProps & React.RefAttributes<PopupSwiperRef>>, "direction" | "children" | "ref" | "key" | "context" | "translateZ" | "className" | "getScrollContainer" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "needBottomOffset" | "percentToClose" | "distanceToClose" | "speedToClose" | "allowSwipeDirections" | "exitDirection"> & {
80
+ update: (newConfig: Pick<import("../context-provider").WithGlobalContext<PopupSwiperProps & React.RefAttributes<PopupSwiperRef>>, "ref" | "className" | "children" | "direction" | "context" | "key" | "translateZ" | "getScrollContainer" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "needBottomOffset" | "percentToClose" | "distanceToClose" | "speedToClose" | "allowSwipeDirections" | "exitDirection"> & {
81
81
  key?: string | undefined;
82
82
  }) => void;
83
83
  };
@@ -17,14 +17,14 @@ export declare const useCommonState: ({ onRefresh, loosingMinHeight, }: {
17
17
  tipsHeight: number;
18
18
  };
19
19
  export declare const useAddScrollEvents: ({ domRef, handleTouchStart, handleTouchMove, handleTouchEnd, }: {
20
- domRef: RefObject<HTMLDivElement>;
20
+ domRef: RefObject<HTMLDivElement | null>;
21
21
  handleTouchStart: (evt: HTMLElementEventMap['touchstart']) => void;
22
22
  handleTouchMove: (evt: HTMLElementEventMap['touchmove']) => void;
23
23
  handleTouchEnd: (evt: HTMLElementEventMap['touchend']) => void;
24
24
  }) => void;
25
25
  export declare const useCheckAsStart: ({ allowPullWhenNotTop, domRef, }: {
26
26
  allowPullWhenNotTop: boolean;
27
- domRef: RefObject<HTMLDivElement>;
27
+ domRef: RefObject<HTMLDivElement | null>;
28
28
  }) => {
29
29
  ifShouldHandle: () => boolean | null;
30
30
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { RadioGroupProps, RadioGroupRef, RadioProps, RadioRef, ValueType } from './type';
3
3
  import { GroupContextParams } from '../checkbox';
4
- export declare const RadioGroupContext: React.Context<GroupContextParams<string | number>>;
4
+ export declare const RadioGroupContext: React.Context<GroupContextParams<React.ReactText>>;
5
5
  export declare function componentGenerator<T extends ValueType = ValueType, P extends RadioProps<T> = RadioProps<T>, R extends RadioRef = RadioRef>(Comp: React.ForwardRefExoticComponent<P & React.RefAttributes<R>>): React.ForwardRefExoticComponent<RadioGroupProps<T, P> & React.RefAttributes<RadioGroupRef>>;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export * from './type';
3
- declare const _default: import("react").ForwardRefExoticComponent<import("./type").RadioProps<string | number> & import("react").RefAttributes<import("./type").RadioRef>> & {
4
- Group: import("react").ForwardRefExoticComponent<import("./type").RadioGroupProps<string | number, import("./type").RadioProps<string | number> & import("react").RefAttributes<import("./type").RadioRef>> & import("react").RefAttributes<import("./type").RadioGroupRef>> & {
3
+ declare const _default: import("react").ForwardRefExoticComponent<import("./type").RadioProps<import("react").ReactText> & import("react").RefAttributes<import("./type").RadioRef>> & {
4
+ Group: import("react").ForwardRefExoticComponent<import("./type").RadioGroupProps<import("react").ReactText, import("./type").RadioProps<import("react").ReactText> & import("react").RefAttributes<import("./type").RadioRef>> & import("react").RefAttributes<import("./type").RadioGroupRef>> & {
5
5
  displayName?: string | undefined;
6
6
  };
7
7
  } & {
@@ -2,4 +2,4 @@ import React from 'react';
2
2
  import { CheckboxProps, CheckboxRef } from '../checkbox';
3
3
  import { RadioProps, RadioRef, ValueType } from './type';
4
4
  export declare function componentGenerator<T extends ValueType = ValueType, P extends CheckboxProps<T> = CheckboxProps<T>, R extends CheckboxRef = CheckboxRef>(Comp: React.ForwardRefExoticComponent<P & React.RefAttributes<R>>): React.ForwardRefExoticComponent<RadioProps<T> & React.RefAttributes<RadioRef>>;
5
- export declare const Radio: React.ForwardRefExoticComponent<RadioProps<string | number> & React.RefAttributes<RadioRef>>;
5
+ export declare const Radio: React.ForwardRefExoticComponent<RadioProps<React.ReactText> & React.RefAttributes<RadioRef>>;
@@ -191,7 +191,9 @@
191
191
  backgroundColor: backgroundColor
192
192
  },
193
193
  ref: function ref(el) {
194
- return el && (lineDomRefs.current[idx] = el);
194
+ if (el) {
195
+ lineDomRefs.current[idx] = el;
196
+ }
195
197
  }
196
198
  }, isGradientAnimation && offsets !== undefined && /*#__PURE__*/_react.default.createElement("div", {
197
199
  className: prefixCls + "-skeleton-animation-item",
@@ -279,7 +281,9 @@
279
281
  backgroundColor: backgroundColor
280
282
  },
281
283
  ref: function ref(el) {
282
- return el && (iconDomRefs.current[idx] = el);
284
+ if (el) {
285
+ iconDomRefs.current[idx] = el;
286
+ }
283
287
  }
284
288
  }, isGradientAnimation && iconOffsets !== undefined && /*#__PURE__*/_react.default.createElement("div", {
285
289
  className: prefixCls + "-skeleton-animation-item",
@@ -292,7 +296,9 @@
292
296
  backgroundColor: backgroundColor
293
297
  },
294
298
  ref: function ref(el) {
295
- return el && (textDomRefs.current[idx] = el);
299
+ if (el) {
300
+ textDomRefs.current[idx] = el;
301
+ }
296
302
  }
297
303
  }, isGradientAnimation && textOffsets !== undefined && /*#__PURE__*/_react.default.createElement("div", {
298
304
  className: prefixCls + "-skeleton-animation-item",
@@ -5,7 +5,7 @@ export declare type LinePosition = {
5
5
  length: number;
6
6
  start: number;
7
7
  };
8
- export declare const SliderContext: React.Context<Required<Pick<SliderProps, "max" | "disabled" | "style" | "size" | "step" | "type" | "className" | "onChange" | "onAfterChange" | "min" | "suffixLabel" | "prefixLabel" | "useRange" | "useAnimation" | "showTooltip" | "showMarks" | "useMarkOnly" | "draggableTrackOnly" | "formatTooltip" | "renderThumb">> & Pick<SliderProps, "value" | "defaultValue" | "marks" | "renderThumbPopover">>;
8
+ export declare const SliderContext: React.Context<Required<Pick<SliderProps, "className" | "style" | "disabled" | "step" | "size" | "type" | "onChange" | "onAfterChange" | "max" | "min" | "suffixLabel" | "prefixLabel" | "useRange" | "useAnimation" | "showTooltip" | "showMarks" | "useMarkOnly" | "draggableTrackOnly" | "formatTooltip" | "renderThumb">> & Pick<SliderProps, "value" | "defaultValue" | "marks" | "renderThumbPopover">>;
9
9
  export * from './useSliderIcon';
10
10
  export * from './useSliderInit';
11
11
  export * from './useSliderStyle';
@@ -7,7 +7,7 @@ declare enum IsTouchingStatus {
7
7
  }
8
8
  export declare const useSliderEvents: ({ getLinePosition, lineRef, valueGroup, setValueGroup, setCommonIsTouching, }: {
9
9
  getLinePosition: () => LinePosition;
10
- lineRef: RefObject<HTMLDivElement>;
10
+ lineRef: RefObject<HTMLDivElement | null>;
11
11
  valueGroup: number | number[];
12
12
  setValueGroup: React.Dispatch<React.SetStateAction<number | [number, number]>>;
13
13
  setCommonIsTouching: React.Dispatch<React.SetStateAction<number>>;
@@ -1,7 +1,8 @@
1
+ /// <reference types="react" />
1
2
  import { StepperProps } from '..';
2
3
  export default function useValue(params: Required<Pick<StepperProps, 'defaultValue' | 'min' | 'max' | 'digits'>> & Pick<StepperProps, 'formatter' | 'value'>): {
3
4
  updateValue: (updater: number | ((oldValue: number) => number)) => void;
4
5
  actualInputValue: number;
5
- showValue: string | number;
6
+ showValue: import("react").ReactText;
6
7
  innerValue: number;
7
8
  };
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { StepsProps, StepsRef } from './type';
3
3
  export * from './type';
4
- export declare const StepsContext: React.Context<Pick<StepsProps, "direction" | "status" | "align" | "iconType" | "current" | "reverseOrder"> & {
4
+ export declare const StepsContext: React.Context<Pick<StepsProps, "status" | "direction" | "align" | "iconType" | "current" | "reverseOrder"> & {
5
5
  index?: number | undefined;
6
6
  changeIndex: (newIndex: number) => void;
7
7
  }>;
@@ -1,4 +1,4 @@
1
- import { CSSProperties, ReactNode, ReactNodeArray } from 'react';
1
+ import { CSSProperties, ReactNode } from 'react';
2
2
  export declare type TabData = string | {
3
3
  title: ReactNode;
4
4
  [x: string]: any;
@@ -573,7 +573,7 @@ export interface TabCellRef {
573
573
  }
574
574
  export interface TabPaneProps extends Pick<TabsProps, 'duration' | 'transitionDuration' | 'lazyloadCount' | 'hideContentStyle' | 'renderHideContent' | 'mode' | 'tabPaneClass' | 'tabPaneStyle' | 'tabPaneExtra' | 'getScrollContainer' | 'scrollThrottle' | 'scrollOffset' | 'goLastWhenScrollBottom' | 'scrollVertical' | 'translateZ' | 'fullScreen' | 'autoHeight' | 'onScroll' | 'swipeEnergySaving'> {
575
575
  prefixCls?: string;
576
- panes: ReactNodeArray;
576
+ panes: ReactNode[];
577
577
  activeIndex: number;
578
578
  activeIndexRef: React.MutableRefObject<number>;
579
579
  tabDirection: 'horizontal' | 'vertical';
@@ -185,8 +185,8 @@ declare const _default: React.ForwardRefExoticComponent<ToastProps & React.RefAt
185
185
  * @param {string | ToastProps} config Configuration
186
186
  * @returns {{ update: (config: ToastProps) => void; close: () => void }}
187
187
  */
188
- toast: (originConfig: string | Pick<import("../context-provider").WithGlobalContext<ToastProps & React.RefAttributes<ToastRef>>, "loading" | "content" | "layout" | "icon" | "direction" | "transitionDuration" | "ref" | "key" | "type" | "context" | "duration" | "className" | "getContainer" | "onClose" | "initialBodyOverflow" | "loadingIcon" | "loadingInner" | "disableBodyTouch" | "typeIconMap">, context?: import("../context-provider").GlobalContextParams | undefined) => {
189
- update: (newConfig: Pick<import("../context-provider").WithGlobalContext<ToastProps & React.RefAttributes<ToastRef>>, "loading" | "content" | "layout" | "icon" | "direction" | "transitionDuration" | "ref" | "key" | "type" | "context" | "duration" | "className" | "getContainer" | "onClose" | "initialBodyOverflow" | "loadingIcon" | "loadingInner" | "disableBodyTouch" | "typeIconMap">) => void;
188
+ toast: (originConfig: string | Pick<import("../context-provider").WithGlobalContext<ToastProps & React.RefAttributes<ToastRef>>, "ref" | "className" | "duration" | "content" | "layout" | "icon" | "direction" | "transitionDuration" | "context" | "key" | "type" | "getContainer" | "onClose" | "initialBodyOverflow" | "loading" | "loadingIcon" | "loadingInner" | "disableBodyTouch" | "typeIconMap">, context?: import("../context-provider").GlobalContextParams | undefined) => {
189
+ update: (newConfig: Pick<import("../context-provider").WithGlobalContext<ToastProps & React.RefAttributes<ToastRef>>, "ref" | "className" | "duration" | "content" | "layout" | "icon" | "direction" | "transitionDuration" | "context" | "key" | "type" | "getContainer" | "onClose" | "initialBodyOverflow" | "loading" | "loadingIcon" | "loadingInner" | "disableBodyTouch" | "typeIconMap">) => void;
190
190
  close: () => void;
191
191
  hide: () => void;
192
192
  };
@@ -196,8 +196,8 @@ declare const _default: React.ForwardRefExoticComponent<ToastProps & React.RefAt
196
196
  * @param {string | ToastProps} config Configuration
197
197
  * @returns {{ update: (config: ToastProps) => void; close: () => void }}
198
198
  */
199
- info: (originConfig: string | Pick<import("../context-provider").WithGlobalContext<ToastProps & React.RefAttributes<ToastRef>>, "loading" | "content" | "layout" | "icon" | "direction" | "transitionDuration" | "ref" | "key" | "type" | "context" | "duration" | "className" | "getContainer" | "onClose" | "initialBodyOverflow" | "loadingIcon" | "loadingInner" | "disableBodyTouch" | "typeIconMap">, context?: import("../context-provider").GlobalContextParams | undefined) => {
200
- update: (newConfig: Pick<import("../context-provider").WithGlobalContext<ToastProps & React.RefAttributes<ToastRef>>, "loading" | "content" | "layout" | "icon" | "direction" | "transitionDuration" | "ref" | "key" | "type" | "context" | "duration" | "className" | "getContainer" | "onClose" | "initialBodyOverflow" | "loadingIcon" | "loadingInner" | "disableBodyTouch" | "typeIconMap">) => void;
199
+ info: (originConfig: string | Pick<import("../context-provider").WithGlobalContext<ToastProps & React.RefAttributes<ToastRef>>, "ref" | "className" | "duration" | "content" | "layout" | "icon" | "direction" | "transitionDuration" | "context" | "key" | "type" | "getContainer" | "onClose" | "initialBodyOverflow" | "loading" | "loadingIcon" | "loadingInner" | "disableBodyTouch" | "typeIconMap">, context?: import("../context-provider").GlobalContextParams | undefined) => {
200
+ update: (newConfig: Pick<import("../context-provider").WithGlobalContext<ToastProps & React.RefAttributes<ToastRef>>, "ref" | "className" | "duration" | "content" | "layout" | "icon" | "direction" | "transitionDuration" | "context" | "key" | "type" | "getContainer" | "onClose" | "initialBodyOverflow" | "loading" | "loadingIcon" | "loadingInner" | "disableBodyTouch" | "typeIconMap">) => void;
201
201
  close: () => void;
202
202
  hide: () => void;
203
203
  };
@@ -207,8 +207,8 @@ declare const _default: React.ForwardRefExoticComponent<ToastProps & React.RefAt
207
207
  * @param {string | ToastProps} config Configuration
208
208
  * @returns {{ update: (config: ToastProps) => void; close: () => void }}
209
209
  */
210
- success: (originConfig: string | Pick<import("../context-provider").WithGlobalContext<ToastProps & React.RefAttributes<ToastRef>>, "loading" | "content" | "layout" | "icon" | "direction" | "transitionDuration" | "ref" | "key" | "type" | "context" | "duration" | "className" | "getContainer" | "onClose" | "initialBodyOverflow" | "loadingIcon" | "loadingInner" | "disableBodyTouch" | "typeIconMap">, context?: import("../context-provider").GlobalContextParams | undefined) => {
211
- update: (newConfig: Pick<import("../context-provider").WithGlobalContext<ToastProps & React.RefAttributes<ToastRef>>, "loading" | "content" | "layout" | "icon" | "direction" | "transitionDuration" | "ref" | "key" | "type" | "context" | "duration" | "className" | "getContainer" | "onClose" | "initialBodyOverflow" | "loadingIcon" | "loadingInner" | "disableBodyTouch" | "typeIconMap">) => void;
210
+ success: (originConfig: string | Pick<import("../context-provider").WithGlobalContext<ToastProps & React.RefAttributes<ToastRef>>, "ref" | "className" | "duration" | "content" | "layout" | "icon" | "direction" | "transitionDuration" | "context" | "key" | "type" | "getContainer" | "onClose" | "initialBodyOverflow" | "loading" | "loadingIcon" | "loadingInner" | "disableBodyTouch" | "typeIconMap">, context?: import("../context-provider").GlobalContextParams | undefined) => {
211
+ update: (newConfig: Pick<import("../context-provider").WithGlobalContext<ToastProps & React.RefAttributes<ToastRef>>, "ref" | "className" | "duration" | "content" | "layout" | "icon" | "direction" | "transitionDuration" | "context" | "key" | "type" | "getContainer" | "onClose" | "initialBodyOverflow" | "loading" | "loadingIcon" | "loadingInner" | "disableBodyTouch" | "typeIconMap">) => void;
212
212
  close: () => void;
213
213
  hide: () => void;
214
214
  };
@@ -218,8 +218,8 @@ declare const _default: React.ForwardRefExoticComponent<ToastProps & React.RefAt
218
218
  * @param {string | ToastProps} config Configuration
219
219
  * @returns {{ update: (config: ToastProps) => void; close: () => void }}
220
220
  */
221
- error: (originConfig: string | Pick<import("../context-provider").WithGlobalContext<ToastProps & React.RefAttributes<ToastRef>>, "loading" | "content" | "layout" | "icon" | "direction" | "transitionDuration" | "ref" | "key" | "type" | "context" | "duration" | "className" | "getContainer" | "onClose" | "initialBodyOverflow" | "loadingIcon" | "loadingInner" | "disableBodyTouch" | "typeIconMap">, context?: import("../context-provider").GlobalContextParams | undefined) => {
222
- update: (newConfig: Pick<import("../context-provider").WithGlobalContext<ToastProps & React.RefAttributes<ToastRef>>, "loading" | "content" | "layout" | "icon" | "direction" | "transitionDuration" | "ref" | "key" | "type" | "context" | "duration" | "className" | "getContainer" | "onClose" | "initialBodyOverflow" | "loadingIcon" | "loadingInner" | "disableBodyTouch" | "typeIconMap">) => void;
221
+ error: (originConfig: string | Pick<import("../context-provider").WithGlobalContext<ToastProps & React.RefAttributes<ToastRef>>, "ref" | "className" | "duration" | "content" | "layout" | "icon" | "direction" | "transitionDuration" | "context" | "key" | "type" | "getContainer" | "onClose" | "initialBodyOverflow" | "loading" | "loadingIcon" | "loadingInner" | "disableBodyTouch" | "typeIconMap">, context?: import("../context-provider").GlobalContextParams | undefined) => {
222
+ update: (newConfig: Pick<import("../context-provider").WithGlobalContext<ToastProps & React.RefAttributes<ToastRef>>, "ref" | "className" | "duration" | "content" | "layout" | "icon" | "direction" | "transitionDuration" | "context" | "key" | "type" | "getContainer" | "onClose" | "initialBodyOverflow" | "loading" | "loadingIcon" | "loadingInner" | "disableBodyTouch" | "typeIconMap">) => void;
223
223
  close: () => void;
224
224
  hide: () => void;
225
225
  };
@@ -229,8 +229,8 @@ declare const _default: React.ForwardRefExoticComponent<ToastProps & React.RefAt
229
229
  * @param {string | ToastProps} config Configuration
230
230
  * @returns {{ update: (config: ToastProps) => void; close: () => void }}
231
231
  */
232
- loading: (originConfig: string | Pick<import("../context-provider").WithGlobalContext<ToastProps & React.RefAttributes<ToastRef>>, "loading" | "content" | "layout" | "icon" | "direction" | "transitionDuration" | "ref" | "key" | "type" | "context" | "duration" | "className" | "getContainer" | "onClose" | "initialBodyOverflow" | "loadingIcon" | "loadingInner" | "disableBodyTouch" | "typeIconMap">, context?: import("../context-provider").GlobalContextParams | undefined) => {
233
- update: (newConfig: Pick<import("../context-provider").WithGlobalContext<ToastProps & React.RefAttributes<ToastRef>>, "loading" | "content" | "layout" | "icon" | "direction" | "transitionDuration" | "ref" | "key" | "type" | "context" | "duration" | "className" | "getContainer" | "onClose" | "initialBodyOverflow" | "loadingIcon" | "loadingInner" | "disableBodyTouch" | "typeIconMap">) => void;
232
+ loading: (originConfig: string | Pick<import("../context-provider").WithGlobalContext<ToastProps & React.RefAttributes<ToastRef>>, "ref" | "className" | "duration" | "content" | "layout" | "icon" | "direction" | "transitionDuration" | "context" | "key" | "type" | "getContainer" | "onClose" | "initialBodyOverflow" | "loading" | "loadingIcon" | "loadingInner" | "disableBodyTouch" | "typeIconMap">, context?: import("../context-provider").GlobalContextParams | undefined) => {
233
+ update: (newConfig: Pick<import("../context-provider").WithGlobalContext<ToastProps & React.RefAttributes<ToastRef>>, "ref" | "className" | "duration" | "content" | "layout" | "icon" | "direction" | "transitionDuration" | "context" | "key" | "type" | "getContainer" | "onClose" | "initialBodyOverflow" | "loading" | "loadingIcon" | "loadingInner" | "disableBodyTouch" | "typeIconMap">) => void;
234
234
  close: () => void;
235
235
  hide: () => void;
236
236
  };
@@ -240,8 +240,8 @@ declare const _default: React.ForwardRefExoticComponent<ToastProps & React.RefAt
240
240
  * @param {string | ToastProps} config Configuration
241
241
  * @returns {{ update: (config: ToastProps) => void; close: () => void }}
242
242
  */
243
- warn: (originConfig: string | Pick<import("../context-provider").WithGlobalContext<ToastProps & React.RefAttributes<ToastRef>>, "loading" | "content" | "layout" | "icon" | "direction" | "transitionDuration" | "ref" | "key" | "type" | "context" | "duration" | "className" | "getContainer" | "onClose" | "initialBodyOverflow" | "loadingIcon" | "loadingInner" | "disableBodyTouch" | "typeIconMap">, context?: import("../context-provider").GlobalContextParams | undefined) => {
244
- update: (newConfig: Pick<import("../context-provider").WithGlobalContext<ToastProps & React.RefAttributes<ToastRef>>, "loading" | "content" | "layout" | "icon" | "direction" | "transitionDuration" | "ref" | "key" | "type" | "context" | "duration" | "className" | "getContainer" | "onClose" | "initialBodyOverflow" | "loadingIcon" | "loadingInner" | "disableBodyTouch" | "typeIconMap">) => void;
243
+ warn: (originConfig: string | Pick<import("../context-provider").WithGlobalContext<ToastProps & React.RefAttributes<ToastRef>>, "ref" | "className" | "duration" | "content" | "layout" | "icon" | "direction" | "transitionDuration" | "context" | "key" | "type" | "getContainer" | "onClose" | "initialBodyOverflow" | "loading" | "loadingIcon" | "loadingInner" | "disableBodyTouch" | "typeIconMap">, context?: import("../context-provider").GlobalContextParams | undefined) => {
244
+ update: (newConfig: Pick<import("../context-provider").WithGlobalContext<ToastProps & React.RefAttributes<ToastRef>>, "ref" | "className" | "duration" | "content" | "layout" | "icon" | "direction" | "transitionDuration" | "context" | "key" | "type" | "getContainer" | "onClose" | "initialBodyOverflow" | "loading" | "loadingIcon" | "loadingInner" | "disableBodyTouch" | "typeIconMap">) => void;
245
245
  close: () => void;
246
246
  hide: () => void;
247
247
  };
@@ -66,7 +66,7 @@
66
66
  direction = _props$direction === void 0 ? 'center' : _props$direction,
67
67
  typeIconMap = props.typeIconMap,
68
68
  initialBodyOverflow = props.initialBodyOverflow;
69
- var closeTimerRef = (0, _react.useRef)();
69
+ var closeTimerRef = (0, _react.useRef)(undefined);
70
70
  var domRef = (0, _react.useRef)(null);
71
71
  var wrapDomRef = (0, _react.useRef)(null);
72
72
  var isInitialMount = (0, _react.useRef)(false);