@unicom-cloud/ui 0.8.99 → 0.8.101

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 (293) hide show
  1. package/Anchor.js +3 -1
  2. package/Badge.js +7 -6
  3. package/Copy.js +49 -2
  4. package/Details.js +13 -2
  5. package/Divider.js +3 -2
  6. package/Flex.js +22 -0
  7. package/Grid.js +1 -1
  8. package/LiquidFill.js +3 -2
  9. package/Loading.js +16 -3
  10. package/Marquee.js +3 -2
  11. package/QrCode.js +3 -2
  12. package/Space.js +3 -3
  13. package/Splitter.js +5 -5
  14. package/SuspenseFallbackTest.js +2 -4
  15. package/Tag.js +3 -2
  16. package/Tour.js +3 -2
  17. package/alert/index.js +61 -64
  18. package/anchor/index.js +5 -3
  19. package/back-top/index.js +32 -33
  20. package/badge/index.js +19 -18
  21. package/calendar/index.js +85 -84
  22. package/components/common/development/index.js +44 -29
  23. package/components/common/empty/index.js +35 -23
  24. package/components/common/flex/index.js +64 -0
  25. package/components/common/flex/interface.js +9 -0
  26. package/components/common/higher-order/with-speech-synthesis/index.js +79 -55
  27. package/components/common/space/index.js +71 -91
  28. package/components/common/suspense-fallback-test/index.js +16 -0
  29. package/components/common/utils/toArray.js +12 -0
  30. package/copy/index.js +83 -35
  31. package/details/index.js +102 -62
  32. package/divider/index.js +27 -21
  33. package/empty/index.js +13 -13
  34. package/flex/index.js +47 -0
  35. package/flex/interface.js +1 -0
  36. package/grid/{GridItem.js → Item.js} +15 -15
  37. package/grid/index.js +1 -1
  38. package/icon/interface.js +1 -0
  39. package/icon-hover/interface.js +1 -0
  40. package/index.js +610 -599
  41. package/input/Button.js +39 -34
  42. package/input/Textarea.js +108 -104
  43. package/liquid-fill/index.js +3 -2
  44. package/loading/index.js +72 -53
  45. package/loading/interface.js +1 -0
  46. package/marquee/index.js +3 -2
  47. package/modal/Modal.js +73 -74
  48. package/package.json +1 -1
  49. package/portal/interface.js +1 -0
  50. package/qr-code/index.js +3 -2
  51. package/segmented/index.js +113 -105
  52. package/space/index.js +41 -35
  53. package/speech-synthesis/interface.js +1 -0
  54. package/spin/index.js +75 -62
  55. package/splitter/Panel.js +39 -0
  56. package/splitter/SplitBar.js +157 -0
  57. package/splitter/Splitter.js +135 -0
  58. package/splitter/hooks/useEvent.js +12 -0
  59. package/splitter/hooks/useItems.js +26 -0
  60. package/splitter/hooks/useResizable.js +26 -0
  61. package/splitter/hooks/useResize.js +68 -0
  62. package/splitter/hooks/useSizes.js +60 -0
  63. package/splitter/index.js +6 -115
  64. package/style.css +1 -1
  65. package/suspense-fallback-test/index.js +2 -11
  66. package/suspense-fallback-test/interface.js +1 -0
  67. package/table/Table.js +38 -38
  68. package/table/hook/useThResizable.js +72 -26
  69. package/table/tbody/Td.js +80 -77
  70. package/table/th-resizable/index.js +92 -35
  71. package/tag/index.js +42 -41
  72. package/tooltip/index.js +89 -82
  73. package/tour/index.js +5 -6
  74. package/trigger/index.js +67 -70
  75. package/types/common/development/index.d.ts +7 -1
  76. package/types/common/development/interface.d.ts +22 -0
  77. package/types/common/empty/index.d.ts +2 -1
  78. package/types/common/flex/index.d.ts +14 -0
  79. package/types/common/flex/interface.d.ts +62 -0
  80. package/types/common/higher-order/with-speech-synthesis/index.d.ts +6 -1
  81. package/types/common/higher-order/with-speech-synthesis/interface.d.ts +13 -0
  82. package/types/common/space/index.d.ts +4 -3
  83. package/types/common/space/interface.d.ts +10 -18
  84. package/types/common/suspense-fallback-test/index.d.ts +7 -0
  85. package/types/common/suspense-fallback-test/interface.d.ts +1 -0
  86. package/types/common/utils/PqbCSSTransition.d.ts +1 -1
  87. package/types/common/utils/toArray.d.ts +13 -0
  88. package/types/pc/affix/interface.d.ts +0 -2
  89. package/types/pc/alert/index.d.ts +3 -2
  90. package/types/pc/alert/interface.d.ts +7 -1
  91. package/types/pc/anchor/index.d.ts +2 -1
  92. package/types/pc/anchor/interface.d.ts +0 -2
  93. package/types/pc/auto-complete/interface.d.ts +0 -6
  94. package/types/pc/avatar/interface.d.ts +0 -4
  95. package/types/pc/badge/Count.d.ts +1 -1
  96. package/types/pc/breadcrumb/Item.d.ts +1 -1
  97. package/types/pc/breadcrumb/interface.d.ts +0 -3
  98. package/types/pc/calendar/Month.d.ts +1 -1
  99. package/types/pc/calendar/WeekList.d.ts +1 -1
  100. package/types/pc/calendar/Year.d.ts +1 -1
  101. package/types/pc/calendar/header/Panel.d.ts +1 -1
  102. package/types/pc/calendar/header/index.d.ts +1 -1
  103. package/types/pc/calendar/index.d.ts +1 -1
  104. package/types/pc/calendar/interface.d.ts +2 -1
  105. package/types/pc/carousel/interface.d.ts +2 -6
  106. package/types/pc/cascader/interface.d.ts +7 -19
  107. package/types/pc/cascader/panel/List.d.ts +1 -1
  108. package/types/pc/cascader/panel/Option.d.ts +1 -1
  109. package/types/pc/cascader/panel/Search.d.ts +1 -1
  110. package/types/pc/checkbox/Group.d.ts +2 -2
  111. package/types/pc/checkbox/GroupBlock.d.ts +1 -1
  112. package/types/pc/checkbox/IconCheck.d.ts +1 -1
  113. package/types/pc/checkbox/interface.d.ts +0 -1
  114. package/types/pc/collapse/interface.d.ts +0 -2
  115. package/types/pc/color-picker/InputRgb.d.ts +1 -1
  116. package/types/pc/color-picker/Palette.d.ts +1 -1
  117. package/types/pc/color-picker/interface.d.ts +0 -2
  118. package/types/pc/config-provider/ConfigProvider.d.ts +1 -1
  119. package/types/pc/config-provider/interface.d.ts +17 -17
  120. package/types/pc/copy/index.d.ts +1 -1
  121. package/types/pc/copy/interface.d.ts +2 -1
  122. package/types/pc/date-picker/interface.d.ts +0 -17
  123. package/types/pc/date-picker/panel/Body.d.ts +1 -1
  124. package/types/pc/date-picker/panel/Footer.d.ts +1 -1
  125. package/types/pc/date-picker/panel/Header.d.ts +1 -1
  126. package/types/pc/date-picker/panel/WeekList.d.ts +1 -1
  127. package/types/pc/date-picker/panel/date/index.d.ts +1 -1
  128. package/types/pc/date-picker/panel/month/index.d.ts +1 -1
  129. package/types/pc/date-picker/panel/quarter/index.d.ts +1 -1
  130. package/types/pc/date-picker/panel/range/index.d.ts +1 -1
  131. package/types/pc/date-picker/panel/week/index.d.ts +1 -1
  132. package/types/pc/date-picker/panel/year/index.d.ts +1 -1
  133. package/types/pc/descriptions/index.d.ts +1 -1
  134. package/types/pc/descriptions/interface.d.ts +0 -1
  135. package/types/pc/details/index.d.ts +3 -2
  136. package/types/pc/details/interface.d.ts +16 -0
  137. package/types/pc/development/index.d.ts +2 -1
  138. package/types/pc/development/interface.d.ts +15 -0
  139. package/types/pc/divider/index.d.ts +7 -2
  140. package/types/pc/draggable/Item.d.ts +1 -1
  141. package/types/pc/draggable/index.d.ts +1 -1
  142. package/types/pc/drawer/interface.d.ts +0 -7
  143. package/types/pc/dropdown/interface.d.ts +0 -1
  144. package/types/pc/flex/index.d.ts +9 -0
  145. package/types/pc/flex/interface.d.ts +16 -0
  146. package/types/pc/form/Control.d.ts +1 -1
  147. package/types/pc/form/FormList.d.ts +1 -1
  148. package/types/pc/form/IconSymbol.d.ts +1 -1
  149. package/types/pc/form/interface.d.ts +9 -22
  150. package/types/pc/form/util.d.ts +1 -1
  151. package/types/pc/grid/index.d.ts +3 -3
  152. package/types/pc/grid/interface.d.ts +1 -6
  153. package/types/pc/icon/addFromIconFontCn.d.ts +1 -7
  154. package/types/pc/icon/index.d.ts +2 -7
  155. package/types/pc/icon/interface.d.ts +13 -0
  156. package/types/pc/icon-hover/index.d.ts +2 -8
  157. package/types/pc/icon-hover/interface.d.ts +8 -0
  158. package/types/pc/image/ImageFooter.d.ts +1 -1
  159. package/types/pc/image/ImagePreviewArrow.d.ts +1 -1
  160. package/types/pc/image/TriggerForToolbar.d.ts +1 -1
  161. package/types/pc/image/interface.d.ts +0 -13
  162. package/types/pc/index.d.ts +63 -50
  163. package/types/pc/input/Textarea.d.ts +2 -6
  164. package/types/pc/input/interface.d.ts +5 -13
  165. package/types/pc/input-number/interface.d.ts +0 -4
  166. package/types/pc/input-tag/interface.d.ts +0 -13
  167. package/types/pc/layout/interface.d.ts +0 -1
  168. package/types/pc/link/interface.d.ts +0 -1
  169. package/types/pc/list/interface.d.ts +0 -4
  170. package/types/pc/loading/index.d.ts +4 -3
  171. package/types/pc/loading/interface.d.ts +6 -0
  172. package/types/pc/menu/Indent.d.ts +1 -1
  173. package/types/pc/menu/OverflowWrap.d.ts +1 -1
  174. package/types/pc/menu/interface.d.ts +0 -8
  175. package/types/pc/menu/sub-menu/Inline.d.ts +1 -1
  176. package/types/pc/menu/sub-menu/Pop.d.ts +1 -1
  177. package/types/pc/message/interface.d.ts +0 -2
  178. package/types/pc/modal/interface.d.ts +0 -5
  179. package/types/pc/notification/interface.d.ts +0 -1
  180. package/types/pc/overflow-ellipsis/OverflowItem.d.ts +1 -1
  181. package/types/pc/overflow-ellipsis/index.d.ts +1 -1
  182. package/types/pc/pagination/PageItem.d.ts +3 -3
  183. package/types/pc/pagination/PageJumper.d.ts +1 -1
  184. package/types/pc/pagination/PageOption.d.ts +1 -1
  185. package/types/pc/pagination/interface.d.ts +0 -2
  186. package/types/pc/popconfirm/interface.d.ts +8 -10
  187. package/types/pc/popover/interface.d.ts +0 -1
  188. package/types/pc/portal/Portal.d.ts +2 -6
  189. package/types/pc/portal/index.d.ts +2 -9
  190. package/types/pc/portal/interface.d.ts +14 -0
  191. package/types/pc/progress/CircleProgress.d.ts +1 -1
  192. package/types/pc/progress/LineProgess.d.ts +1 -1
  193. package/types/pc/progress/StepProgress.d.ts +1 -1
  194. package/types/pc/progress/interface.d.ts +0 -3
  195. package/types/pc/radio/Group.d.ts +2 -2
  196. package/types/pc/radio/GroupBlock.d.ts +1 -1
  197. package/types/pc/radio/Radio.d.ts +1 -1
  198. package/types/pc/resize-box/ResizeTrigger.d.ts +1 -1
  199. package/types/pc/resize-box/interface.d.ts +1 -7
  200. package/types/pc/result/403.d.ts +1 -1
  201. package/types/pc/result/404.d.ts +1 -1
  202. package/types/pc/result/500.d.ts +1 -1
  203. package/types/pc/segmented/interface.d.ts +6 -6
  204. package/types/pc/select/interface.d.ts +0 -12
  205. package/types/pc/select-view/interface.d.ts +0 -7
  206. package/types/pc/skeleton/Image.d.ts +1 -1
  207. package/types/pc/skeleton/Text.d.ts +2 -1
  208. package/types/pc/slider/Button.d.ts +1 -1
  209. package/types/pc/slider/Input.d.ts +1 -1
  210. package/types/pc/slider/Tick.d.ts +1 -1
  211. package/types/pc/slider/interface.d.ts +0 -4
  212. package/types/pc/space/index.d.ts +7 -5
  213. package/types/pc/speech-synthesis/index.d.ts +3 -1
  214. package/types/pc/speech-synthesis/interface.d.ts +7 -0
  215. package/types/pc/spin/DotLoading.d.ts +1 -1
  216. package/types/pc/spin/interface.d.ts +4 -1
  217. package/types/pc/splitter/Panel.d.ts +8 -0
  218. package/types/pc/splitter/SplitBar.d.ts +21 -0
  219. package/types/pc/splitter/Splitter.d.ts +4 -0
  220. package/types/pc/splitter/hooks/useEvent.d.ts +3 -0
  221. package/types/pc/splitter/hooks/useItems.d.ts +10 -0
  222. package/types/pc/splitter/hooks/useResizable.d.ts +8 -0
  223. package/types/pc/splitter/hooks/useResize.d.ts +4 -0
  224. package/types/pc/splitter/hooks/useSizes.d.ts +5 -0
  225. package/types/pc/splitter/index.d.ts +8 -3
  226. package/types/pc/splitter/interface.d.ts +181 -38
  227. package/types/pc/statistic/interface.d.ts +0 -4
  228. package/types/pc/steps/interface.d.ts +0 -3
  229. package/types/pc/suspense-fallback-test/index.d.ts +2 -3
  230. package/types/pc/suspense-fallback-test/interface.d.ts +2 -0
  231. package/types/pc/table/ColGroup.d.ts +1 -1
  232. package/types/pc/table/hook/useThResizable.d.ts +2 -2
  233. package/types/pc/table/interface.d.ts +4 -15
  234. package/types/pc/table/summary/Cell.d.ts +1 -1
  235. package/types/pc/table/summary/Row.d.ts +1 -1
  236. package/types/pc/table/tbody/Td.d.ts +1 -1
  237. package/types/pc/table/tbody/index.d.ts +1 -1
  238. package/types/pc/table/tfoot/index.d.ts +1 -1
  239. package/types/pc/table/th-resizable/index.d.ts +1 -1
  240. package/types/pc/table/thead/Column.d.ts +1 -1
  241. package/types/pc/table/thead/index.d.ts +1 -1
  242. package/types/pc/tabs/TabContent.d.ts +1 -1
  243. package/types/pc/tabs/interface.d.ts +0 -7
  244. package/types/pc/tabs/tab-header/DropdownIcon.d.ts +1 -1
  245. package/types/pc/tabs/tab-header/TabInk.d.ts +1 -1
  246. package/types/pc/tabs/tab-header/TabNavIcon.d.ts +1 -1
  247. package/types/pc/tag/index.d.ts +2 -0
  248. package/types/pc/tag/interface.d.ts +0 -1
  249. package/types/pc/time-picker/Picker.d.ts +1 -1
  250. package/types/pc/time-picker/RangePicker.d.ts +1 -1
  251. package/types/pc/time-picker/TimeColumn.d.ts +1 -1
  252. package/types/pc/time-picker/TimePicker.d.ts +1 -1
  253. package/types/pc/time-picker/index.d.ts +1 -1
  254. package/types/pc/time-picker/interface.d.ts +0 -7
  255. package/types/pc/tooltip/interface.d.ts +4 -1
  256. package/types/pc/transfer/Item.d.ts +1 -1
  257. package/types/pc/transfer/List.d.ts +1 -1
  258. package/types/pc/transfer/interface.d.ts +2 -9
  259. package/types/pc/tree/Animation.d.ts +1 -1
  260. package/types/pc/tree/interface.d.ts +2 -8
  261. package/types/pc/tree-select/interface.d.ts +0 -8
  262. package/types/pc/trigger/interface.d.ts +0 -5
  263. package/types/pc/typography/EditContent.d.ts +2 -1
  264. package/types/pc/typography/Operations.d.ts +1 -1
  265. package/types/pc/typography/interface.d.ts +45 -30
  266. package/types/pc/upload/interface.d.ts +6 -11
  267. package/types/pc/upload/list/index.d.ts +1 -1
  268. package/types/pc/utils/index.d.ts +1 -0
  269. package/types/pc/utils/names.d.ts +6 -0
  270. package/types/pc/utils/toArray.d.ts +3 -0
  271. package/types/pc/verification-code/VerificationCode.d.ts +1 -1
  272. package/types/pc/verification-code/interface.d.ts +0 -2
  273. package/types/pc/virtual-list/VirtualList.d.ts +2 -38
  274. package/types/pc/virtual-list/index.d.ts +2 -1
  275. package/types/pc/virtual-list/interface.d.ts +56 -0
  276. package/types/pc/watermark/Watermark.d.ts +1 -1
  277. package/types/pc/watermark/interface.d.ts +0 -2
  278. package/typography/Base.js +73 -73
  279. package/typography/EditContent.js +43 -33
  280. package/typography/Ellipsis.js +117 -184
  281. package/typography/Operations.js +97 -49
  282. package/typography/useCssEllipsis.js +7 -6
  283. package/utils/index.js +117 -115
  284. package/utils/names.js +4 -0
  285. package/utils/toArray.js +5 -0
  286. package/version/index.js +1 -1
  287. package/virtual-list/interface.js +1 -0
  288. package/components/common/space/toArray.js +0 -11
  289. package/loading/style/index.module.less.js +0 -4
  290. package/types/common/space/toArray.d.ts +0 -3
  291. package/types/pc/suspense-fallback-test/style/index.d.ts +0 -1
  292. /package/{suspense-fallback-test/style/index.less.js → development/interface.js} +0 -0
  293. /package/types/pc/grid/{GridItem.d.ts → Item.d.ts} +0 -0
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ /**
3
+ * SuspenseFallbackTest 组件
4
+ * @description 用于测试Suspense的fallback状态,创建一个永远不会加载完成的懒加载组件
5
+ */
6
+ declare const SuspenseFallbackTest: React.ForwardRefExoticComponent<object & React.RefAttributes<unknown>>;
7
+ export default SuspenseFallbackTest;
@@ -0,0 +1 @@
1
+ export type SuspenseFallbackTestProps = object;
@@ -1,4 +1,4 @@
1
1
  import { CSSTransition } from '@unicom-cloud/react-transition-group';
2
- declare function PqbCSSTransition(props: CSSTransition): import("react/jsx-dev-runtime").JSX.Element;
2
+ declare function PqbCSSTransition(props: CSSTransition): import("react/jsx-runtime").JSX.Element;
3
3
  export { PqbCSSTransition };
4
4
  export default PqbCSSTransition;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ interface ToArrayOptions {
3
+ keepEmpty?: boolean;
4
+ }
5
+ /**
6
+ * 将React子节点转换为数组
7
+ * @param children React子节点
8
+ * @param options 配置选项
9
+ * @returns React元素数组
10
+ */
11
+ declare function toArray(children: React.ReactNode, options?: ToArrayOptions): React.ReactElement[];
12
+ export { toArray };
13
+ export default toArray;
@@ -8,14 +8,12 @@ export interface AffixProps {
8
8
  /**
9
9
  * @zh 给 `fixed` 的元素设置 className。
10
10
  * @en ClassName of the fixed element.
11
- * @version 2.8.0
12
11
  */
13
12
  affixClassName?: string | string[];
14
13
  /**
15
14
  * @zh
16
15
  * 给 `fixed` 的元素设置 style,注意不要设置 `position` `top` `width` `height`, 因为这几个属性是在元素 fixed 时候用于定位的。
17
16
  * @en Style of the fixed elements. Don't set `position` `top` `width` `height` attributes as they are used for positioning when the element is fixed.
18
- * @version 2.8.0
19
17
  */
20
18
  affixStyle?: CSSProperties;
21
19
  /**
@@ -1,4 +1,5 @@
1
+ import React from 'react';
1
2
  import { AlertProps } from './interface';
2
- declare const AlertComponent: import("react").ForwardRefExoticComponent<AlertProps & import("react").RefAttributes<unknown>>;
3
- export default AlertComponent;
3
+ declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<unknown>>;
4
+ export default Alert;
4
5
  export type { AlertProps };
@@ -1,4 +1,4 @@
1
- import { CSSProperties, ReactNode } from 'react';
1
+ import React, { CSSProperties, ReactNode } from 'react';
2
2
  /**
3
3
  * @title Alert
4
4
  */
@@ -63,4 +63,10 @@ export interface AlertProps {
63
63
  * @en Whether to show as banner
64
64
  */
65
65
  banner?: boolean;
66
+ /**
67
+ * 自定义组件内容
68
+ * @en Custom component content
69
+ * @default null
70
+ */
71
+ children?: React.ReactNode;
66
72
  }
@@ -1,4 +1,5 @@
1
1
  import Anchor, { AnchorLink } from './Anchor';
2
- export { AnchorLink };
2
+ import { findNode } from './util';
3
+ export { AnchorLink, findNode as findAnchorLinkNode };
3
4
  export default Anchor;
4
5
  export type { AnchorProps } from './interface';
@@ -15,7 +15,6 @@ export interface AnchorProps {
15
15
  * @zh 方向
16
16
  * @en Direction
17
17
  * @defaultValue vertical
18
- * @version 2.51.0
19
18
  */
20
19
  direction?: 'vertical' | 'horizontal';
21
20
  /**
@@ -77,7 +76,6 @@ export interface AnchorProps {
77
76
  */
78
77
  lineless?: boolean;
79
78
  /**
80
- * @version 2.22.0
81
79
  * @zh 容器中基准线的位置相对容器顶部的偏移量,在没有设置的时候,取值为滚动容器高度的一半。当锚点到达或离开基准线的时候会更新锚点的状态。
82
80
  * @en The offset of the baseline relative to the top of the container.
83
81
  * The value is half of the height of the scrolling container if not specified.
@@ -57,7 +57,6 @@ export interface AutoCompleteProps extends PartialSelectProps {
57
57
  /**
58
58
  * @zh 状态
59
59
  * @en Status
60
- * @version 2.45.0
61
60
  */
62
61
  status?: 'error' | 'warning';
63
62
  /**
@@ -68,14 +67,12 @@ export interface AutoCompleteProps extends PartialSelectProps {
68
67
  /**
69
68
  * @zh 是否处于加载状态。
70
69
  * @en Whether the component is loading data.
71
- * @version 2.10.0
72
70
  */
73
71
  loading?: boolean;
74
72
  /**
75
73
  * @zh 自定义触发元素
76
74
  * @en Custom trigger element
77
75
  * @defaultValue <Input />
78
- * @version `() => ReactElement` in 2.31.0
79
76
  */
80
77
  triggerElement?: ReactElement | (({ value }: {
81
78
  value: any;
@@ -98,7 +95,6 @@ export interface AutoCompleteProps extends PartialSelectProps {
98
95
  /**
99
96
  * @zh 按下回车键的回调
100
97
  * @en Callback when Enter is pressed
101
- * @version `activeOption` in 2.25.1
102
98
  */
103
99
  onPressEnter?: (e: any, activeOption?: OptionInfo) => void;
104
100
  /**
@@ -114,13 +110,11 @@ export interface AutoCompleteProps extends PartialSelectProps {
114
110
  /**
115
111
  * @zh 传递虚拟滚动属性。
116
112
  * @en Virtual scroll properties.
117
- * @version 2.2.0
118
113
  */
119
114
  virtualListProps?: AvailableVirtualListProps;
120
115
  /**
121
116
  * @zh 传递 Input 组件的属性。
122
117
  * @en Properties of Input component.
123
- * @version 2.10.0
124
118
  */
125
119
  inputProps?: Partial<InputProps>;
126
120
  }
@@ -71,25 +71,21 @@ export interface AvatarGroupProps {
71
71
  /**
72
72
  * @zh 头像组内的头像 `z-index` 递增,默认是递减。
73
73
  * @en Whether `z-index` of the avatars in group are in ascending order. The default is in descending order.
74
- * @version 2.3.0
75
74
  */
76
75
  zIndexAscend?: boolean;
77
76
  /**
78
77
  * @zh 头像组最多显示的头像数量,多余头像将以 `+x` 的形式展示。
79
78
  * @en The maximum number of avatars displayed in the avatar group. The rest of avatars will be displayed as a `+x`.
80
- * @version 2.4.0
81
79
  */
82
80
  maxCount?: number;
83
81
  /**
84
82
  * @zh 多余头像样式。
85
83
  * @en Style for `+x`.
86
- * @version 2.4.0
87
84
  */
88
85
  maxStyle?: CSSProperties;
89
86
  /**
90
87
  * @zh 多余头像气泡的 `TriggerProps`。
91
88
  * @en `TriggerProps` for popover around `+x`.
92
- * @version 2.4.0
93
89
  */
94
90
  maxPopoverTriggerProps?: TriggerProps;
95
91
  }
@@ -4,5 +4,5 @@ declare function Count({ prefixCls, maxCount, count, className, style }: {
4
4
  count: any;
5
5
  className: any;
6
6
  style: any;
7
- }): import("react/jsx-dev-runtime").JSX.Element;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
8
  export default Count;
@@ -1,6 +1,6 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  import { BreadCrumbItemProps } from './interface';
3
- declare function Item(props: PropsWithChildren<BreadCrumbItemProps>): import("react/jsx-dev-runtime").JSX.Element;
3
+ declare function Item(props: PropsWithChildren<BreadCrumbItemProps>): import("react/jsx-runtime").JSX.Element;
4
4
  declare namespace Item {
5
5
  var displayName: string;
6
6
  }
@@ -58,19 +58,16 @@ export interface BreadCrumbItemProps extends CustomHTMLElement {
58
58
  /**
59
59
  * @zh 超链接地址
60
60
  * @en href
61
- * @version 2.40.0
62
61
  */
63
62
  href?: string;
64
63
  /**
65
64
  * @zh 点击回调
66
65
  * @en click callback
67
- * @version 2.40.0
68
66
  */
69
67
  onClick?: (e: any) => void;
70
68
  /**
71
69
  * @zh 标签名,可以是 html 标签或是组件
72
70
  * @en Configure the outermost label, which can be an html label or a component
73
- * @version 2.40.0
74
71
  * @defaultValue div
75
72
  */
76
73
  tagName?: string | React.FC<any> | React.ComponentClass<any>;
@@ -11,5 +11,5 @@ export interface MonthProps extends CalendarProps {
11
11
  CALENDAR_LOCALE?: Record<string, any>;
12
12
  }
13
13
  export declare function getAllDaysByTime(props: CalendarProps, time: Dayjs): never[][];
14
- declare function Month(props: MonthProps): import("react/jsx-dev-runtime").JSX.Element;
14
+ declare function Month(props: MonthProps): import("react/jsx-runtime").JSX.Element;
15
15
  export default Month;
@@ -6,5 +6,5 @@ interface WeekListProps {
6
6
  panel?: boolean;
7
7
  innerMode?: 'day' | 'week' | 'month' | 'year';
8
8
  }
9
- declare function WeekList(props: WeekListProps): import("react/jsx-dev-runtime").JSX.Element;
9
+ declare function WeekList(props: WeekListProps): import("react/jsx-runtime").JSX.Element;
10
10
  export default WeekList;
@@ -9,5 +9,5 @@ interface YearProps extends CalendarProps {
9
9
  CALENDAR_LOCALE?: Record<string, any>;
10
10
  innerMode?: 'day' | 'week' | 'month' | 'year';
11
11
  }
12
- declare function Year(props: YearProps): import("react/jsx-dev-runtime").JSX.Element;
12
+ declare function Year(props: YearProps): import("react/jsx-runtime").JSX.Element;
13
13
  export default Year;
@@ -1,2 +1,2 @@
1
- declare function PanelHeader(props: any): import("react/jsx-dev-runtime").JSX.Element;
1
+ declare function PanelHeader(props: any): import("react/jsx-runtime").JSX.Element;
2
2
  export default PanelHeader;
@@ -1,2 +1,2 @@
1
- declare function Header(props: any): import("react/jsx-dev-runtime").JSX.Element;
1
+ declare function Header(props: any): import("react/jsx-runtime").JSX.Element;
2
2
  export default Header;
@@ -1,7 +1,7 @@
1
1
  import Month from './Month';
2
2
  import Year from './Year';
3
3
  import { CalendarProps } from './interface';
4
- declare function Calendar(baseProps: CalendarProps): import("react/jsx-dev-runtime").JSX.Element;
4
+ declare function Calendar(baseProps: CalendarProps): import("react/jsx-runtime").JSX.Element;
5
5
  declare namespace Calendar {
6
6
  var displayName: string;
7
7
  }
@@ -1,5 +1,5 @@
1
- import { ReactNode, CSSProperties } from 'react';
2
1
  import { Dayjs } from 'dayjs';
2
+ import { CSSProperties, ReactNode } from 'react';
3
3
  export type CalendarValue = Dayjs | Date | string | number;
4
4
  /**
5
5
  * @title Calendar
@@ -101,6 +101,7 @@ export interface CalendarProps {
101
101
  onChange: any;
102
102
  onChangePageDate: any;
103
103
  onChangeMode: any;
104
+ header?: ReactNode;
104
105
  }) => ReactNode;
105
106
  /**
106
107
  * @zh
@@ -27,10 +27,10 @@ export interface CarouselProps {
27
27
  currentIndex?: number;
28
28
  /**
29
29
  * @zh
30
- * 是否自动循环展示,或者传入 `{ interval: 自动切换的时间间隔(默认: 3000), hoverToPause: 鼠标悬浮时是否暂停自动切换(默认: true) }` 进行高级配置 (`2.14.0` 支持传入对象)
30
+ * 是否自动循环展示,或者传入 `{ interval: 自动切换的时间间隔(默认: 3000), hoverToPause: 鼠标悬浮时是否暂停自动切换(默认: true) }` 进行高级配置
31
31
  * @en
32
32
  * Whether to scroll automatically, or pass in `{ interval: the time interval for switching (default: 3000),
33
- * hoverToPause: whether to pause switching while hover (default: true) }` for configuration (object is supported from `2.14.0`)
33
+ * hoverToPause: whether to pause switching while hover (default: true) }` for configuration
34
34
  */
35
35
  autoPlay?: boolean | {
36
36
  interval?: number;
@@ -41,7 +41,6 @@ export interface CarouselProps {
41
41
  * 是否仅渲染满足动画效果的最少数量的 children
42
42
  * @en
43
43
  * Whether to render only the minimum number of children that meet the animation effect
44
- * @version 2.21.0
45
44
  */
46
45
  miniRender?: boolean;
47
46
  autoPlaySpeed?: number;
@@ -83,7 +82,6 @@ export interface CarouselProps {
83
82
  /**
84
83
  * @zh 自定义图标
85
84
  * @en Customize icons
86
- * @version 2.25.0
87
85
  */
88
86
  icons?: {
89
87
  prev?: ReactNode;
@@ -118,13 +116,11 @@ export interface CarouselProps {
118
116
  /**
119
117
  * @zh 幻灯片发生切换时的回调函数。
120
118
  * @en Callback when slide changes.
121
- * @version `isManual` in 2.4.0
122
119
  */
123
120
  onChange?: (index: number, prevIndex: number, isManual: boolean) => void;
124
121
  /**
125
122
  * @zh 用于获得带有 API 方法的 Carousel 引用。
126
123
  * @en Carousel reference for imperative API calls.
127
- * @version 2.16.1
128
124
  */
129
125
  carousel?: MutableRefObject<CarouselHandle>;
130
126
  }
@@ -1,7 +1,7 @@
1
1
  import { CSSProperties, ReactNode } from 'react';
2
2
  import { SelectViewCommonProps } from '../select-view';
3
3
  import { TriggerProps } from '../trigger';
4
- import { VirtualListProps } from '../virtual-list/VirtualList';
4
+ import type { VirtualListProps } from '../virtual-list/interface';
5
5
  import { NodeProps } from './base/node';
6
6
  import Store from './base/store';
7
7
  /**
@@ -16,7 +16,6 @@ export interface CascaderProps<T = any> extends Omit<SelectViewCommonProps, 'sho
16
16
  /**
17
17
  * @zh 输入框的值
18
18
  * @en Input Value
19
- * @version 2.34.0
20
19
  */
21
20
  inputValue?: string;
22
21
  /**
@@ -66,13 +65,13 @@ export interface CascaderProps<T = any> extends Omit<SelectViewCommonProps, 'sho
66
65
  * @zh
67
66
  * 使单选模式可搜索,传入 `{ retainInputValue: true }` 在搜索框聚焦时保留现有内容
68
67
  * 传入 `{ retainInputValueWhileSelect: true }` 在多选选择时保留输入框内容。
69
- * 传入 `{ panelMode: 'select' }` 以搜索面板形式展示可选项 (`2.39.0`)
70
- * `renderOption` 自定义渲染搜索项 (`2.39.0`)
68
+ * 传入 `{ panelMode: 'select' }` 以搜索面板形式展示可选项
69
+ * `renderOption` 自定义渲染搜索项
71
70
  * @en
72
71
  * Whether single mode Select is searchable. `{ retainInputValue: true }` to retain the existing content when the search box is focused,
73
72
  * `{ retainInputValueWhileSelect: true }` to retain the existing content when multiple selection is selected.
74
- * `{ panelMode: 'select' }` Display options as a search panel (`2.39.0`)
75
- * `renderOption` Custom rendering search option (`2.39.0`)
73
+ * `{ panelMode: 'select' }` Display options as a search panel
74
+ * `renderOption` Custom rendering search option
76
75
  */
77
76
  showSearch?: boolean | {
78
77
  panelMode?: 'cascader' | 'select';
@@ -108,44 +107,37 @@ export interface CascaderProps<T = any> extends Omit<SelectViewCommonProps, 'sho
108
107
  * Customize the return value <br/> parent:
109
108
  * Only return the parent node when all child nodes are selected <br/> child: Return child nodes
110
109
  * @defaultValue child
111
- * @version 2.31.0
112
110
  */
113
111
  checkedStrategy?: 'parent' | 'child';
114
112
  /**
115
113
  * @zh 自定义下拉列表类名
116
114
  * @en Custom dropdown list classname
117
- * @version 2.35.0
118
115
  */
119
116
  dropdownMenuClassName?: string | string[];
120
117
  /**
121
118
  * @zh 菜单列样式
122
119
  * @en dropdown menu column style
123
- * @version 2.35.0
124
120
  */
125
121
  dropdownMenuColumnStyle?: CSSProperties;
126
122
  /**
127
123
  * @zh 传递虚拟滚动属性。开启虚拟滚动后,每列级联菜单的会存在默认宽度,可通过 `dropdownMenuColumnStyle` 进行样式调整
128
124
  * @en virtual list props. After virtual scrolling is enabled, there will be a default width for each column of cascading menus, which can be adjusted by `dropdownMenuColumnStyle`
129
- * @version 2.35.0
130
125
  */
131
126
  virtualListProps?: Pick<VirtualListProps<any>, 'threshold' | 'isStaticItemHeight'>;
132
127
  /**
133
128
  * @zh 是否默认高亮搜索结果第一个选项。
134
129
  * @en Whether to highlight the first option of search results by default
135
- * @version 2.37.0
136
130
  * @defaultValue true
137
131
  */
138
132
  defaultActiveFirstOption?: boolean;
139
133
  /**
140
134
  * @zh 自定义下拉菜单的展示。
141
135
  * @en Customize the popup menu.
142
- * @version 2.15.0
143
136
  */
144
137
  dropdownRender?: (menu: ReactNode) => ReactNode;
145
138
  /**
146
139
  * @zh 自定义下拉菜单每一列的展示。
147
140
  * @en Customize columns of the menu.
148
- * @version 2.15.0, `level` in 2.17.0
149
141
  */
150
142
  dropdownColumnRender?: (menu: ReactNode, level: number) => ReactNode;
151
143
  /**
@@ -169,9 +161,8 @@ export interface CascaderProps<T = any> extends Omit<SelectViewCommonProps, 'sho
169
161
  */
170
162
  renderFormat?: (valueShow: any[]) => ReactNode;
171
163
  /**
172
- * @zh 搜索时的回调。(reason in `2.34.0`)
173
- * @en Callback when input changed.(reason in `2.34.0`)
174
- * @version 2.20.0
164
+ * @zh 搜索时的回调。
165
+ * @en Callback when input changed.
175
166
  */
176
167
  onSearch?: (inputValue: string, reason: InputValueChangeReason) => void;
177
168
  /**
@@ -184,7 +175,6 @@ export interface CascaderProps<T = any> extends Omit<SelectViewCommonProps, 'sho
184
175
  /**
185
176
  * @zh inputValue改变时的回调
186
177
  * @en Callback when inputValue change.
187
- * @version 2.34.0
188
178
  */
189
179
  onInputValueChange?: (inputValue: string, reason: InputValueChangeReason) => void;
190
180
  /**
@@ -210,7 +200,6 @@ export interface CascaderProps<T = any> extends Omit<SelectViewCommonProps, 'sho
210
200
  /**
211
201
  * @zh 图标配置。
212
202
  * @en Icon configuration.
213
- * @version 2.50.0
214
203
  */
215
204
  icons?: {
216
205
  loading?: ReactNode;
@@ -248,7 +237,6 @@ export interface OptionProps {
248
237
  /**
249
238
  * @zh 是否禁用复选框选中
250
239
  * @en Whether to disable the check box is selected
251
- * @version 2.21.0
252
240
  */
253
241
  disableCheckbox?: boolean;
254
242
  /**
@@ -1,4 +1,4 @@
1
1
  import { CascaderPanelProps, OptionProps } from '../../cascader/interface';
2
2
  export declare const getLegalIndex: (currentIndex: any, maxIndex: any) => any;
3
- declare const ListPanel: <T extends OptionProps>(props: CascaderPanelProps<T>) => import("react/jsx-dev-runtime").JSX.Element;
3
+ declare const ListPanel: <T extends OptionProps>(props: CascaderPanelProps<T>) => import("react/jsx-runtime").JSX.Element;
4
4
  export default ListPanel;
@@ -19,5 +19,5 @@ export interface CascaderOptionProps<T> {
19
19
  onMouseEnter?: () => void;
20
20
  onMultipleChecked?: (checked: boolean) => void;
21
21
  }
22
- declare const Option: <T extends OptionProps>(props: CascaderOptionProps<T>) => import("react/jsx-dev-runtime").JSX.Element;
22
+ declare const Option: <T extends OptionProps>(props: CascaderOptionProps<T>) => import("react/jsx-runtime").JSX.Element;
23
23
  export default Option;
@@ -24,5 +24,5 @@ export type SearchPanelProps<T> = {
24
24
  next?: ReactNode;
25
25
  };
26
26
  };
27
- declare const SearchPanel: <T extends OptionProps>(props: SearchPanelProps<T>) => import("react/jsx-dev-runtime").JSX.Element;
27
+ declare const SearchPanel: <T extends OptionProps>(props: SearchPanelProps<T>) => import("react/jsx-runtime").JSX.Element;
28
28
  export default SearchPanel;
@@ -8,8 +8,8 @@ export declare const CheckboxGroupContext: React.Context<{
8
8
  registerValue: (value: ReactText) => void;
9
9
  unRegisterValue: (value: ReactText) => void;
10
10
  }>;
11
- export declare const ClearCheckboxGroupContext: ({ children, }: PropsWithChildren<{}>) => import("react/jsx-dev-runtime").JSX.Element;
12
- declare function Group<T extends React.ReactText>(props: PropsWithChildren<CheckboxGroupProps<T>>): import("react/jsx-dev-runtime").JSX.Element;
11
+ export declare const ClearCheckboxGroupContext: ({ children, }: PropsWithChildren<{}>) => import("react/jsx-runtime").JSX.Element;
12
+ declare function Group<T extends React.ReactText>(props: PropsWithChildren<CheckboxGroupProps<T>>): import("react/jsx-runtime").JSX.Element;
13
13
  declare namespace Group {
14
14
  var displayName: string;
15
15
  }
@@ -1,5 +1,5 @@
1
1
  import { CheckboxGroupProps } from './interface';
2
- declare function CheckboxGroupBlock(props: any): import("react/jsx-dev-runtime").JSX.Element;
2
+ declare function CheckboxGroupBlock(props: any): import("react/jsx-runtime").JSX.Element;
3
3
  declare namespace CheckboxGroupBlock {
4
4
  var displayName: string;
5
5
  }
@@ -1,4 +1,4 @@
1
1
  declare function IconCheck({ className }: {
2
2
  className: any;
3
- }): import("react/jsx-dev-runtime").JSX.Element;
3
+ }): import("react/jsx-runtime").JSX.Element;
4
4
  export default IconCheck;
@@ -45,7 +45,6 @@ export interface CheckboxProps<T extends ReactText = any> extends Omit<HTMLAttri
45
45
  /**
46
46
  * @zh 自定义 IconUiCheck
47
47
  * @en Custom IconUiCheck
48
- * @version 2.43.0
49
48
  */
50
49
  icon?: ReactNode;
51
50
  checkboxGroupValue?: T[];
@@ -51,7 +51,6 @@ export interface CollapseProps {
51
51
  /**
52
52
  * @zh 可触发折叠操作的区域
53
53
  * @en The area that can trigger the collapse operation
54
- * @version 2.41.0
55
54
  */
56
55
  triggerRegion?: 'header' | 'icon';
57
56
  /**
@@ -73,7 +72,6 @@ export interface CollapseItemProps {
73
72
  /**
74
73
  * @zh 内容区域的附加样式。
75
74
  * @en Additional styles of the content area.
76
- * @version 2.15.0
77
75
  */
78
76
  contentStyle?: CSSProperties;
79
77
  /**
@@ -6,5 +6,5 @@ interface InputRgbProps {
6
6
  onAlphaChange: (value: number) => void;
7
7
  disabledAlpha?: boolean;
8
8
  }
9
- export declare const InputRgb: ({ color, alpha, onHsvChange, onAlphaChange, disabledAlpha, }: InputRgbProps) => import("react/jsx-dev-runtime").JSX.Element;
9
+ export declare const InputRgb: ({ color, alpha, onHsvChange, onAlphaChange, disabledAlpha, }: InputRgbProps) => import("react/jsx-runtime").JSX.Element;
10
10
  export {};
@@ -3,5 +3,5 @@ interface PaletteProps {
3
3
  color: Color;
4
4
  onChange: (s: number, v: number) => void;
5
5
  }
6
- export declare const Palette: ({ color, onChange }: PaletteProps) => import("react/jsx-dev-runtime").JSX.Element;
6
+ export declare const Palette: ({ color, onChange }: PaletteProps) => import("react/jsx-runtime").JSX.Element;
7
7
  export {};
@@ -96,7 +96,6 @@ export interface ColorPickerProps {
96
96
  /**
97
97
  * @zh 自定义触发元素。
98
98
  * @en The trigger element which executes the dropdown action.
99
- * @version 2.60.0
100
99
  */
101
100
  triggerElement?: ReactNode | ((params: {
102
101
  value: string | GradientColor[];
@@ -114,7 +113,6 @@ export interface ColorPickerProps {
114
113
  /**
115
114
  * @zh 自定义面板底部内容
116
115
  * @en Customize the bottom content of the panel
117
- * @version 2.62.0
118
116
  */
119
117
  renderFooter?: () => ReactNode;
120
118
  }
@@ -1,6 +1,6 @@
1
1
  import ConfigContext, { ConfigProviderDefaultProps } from './context';
2
2
  import { ConfigProviderProps } from './interface';
3
- declare function ConfigProvider(baseProps: ConfigProviderProps): import("react/jsx-dev-runtime").JSX.Element;
3
+ declare function ConfigProvider(baseProps: ConfigProviderProps): import("react/jsx-runtime").JSX.Element;
4
4
  declare namespace ConfigProvider {
5
5
  var ConfigContext: import("react").Context<ConfigProviderProps>;
6
6
  var displayName: string;