aot-ui 0.1.0 → 0.2.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 (300) hide show
  1. package/README.md +26 -20
  2. package/dist-lib/aot-ui.css +1 -1
  3. package/dist-lib/aot-ui.js +30265 -19141
  4. package/dist-lib/index.d.ts +16 -0
  5. package/dist-lib/modules/affix/components/Affix.d.ts +3 -6
  6. package/dist-lib/modules/affix/index.d.ts +1 -1
  7. package/dist-lib/modules/affix/types.d.ts +21 -5
  8. package/dist-lib/modules/alert/components/Alert.d.ts +1 -1
  9. package/dist-lib/modules/alert/index.d.ts +1 -1
  10. package/dist-lib/modules/alert/types.d.ts +39 -2
  11. package/dist-lib/modules/anchor/components/Anchor.d.ts +3 -2
  12. package/dist-lib/modules/anchor/index.d.ts +1 -1
  13. package/dist-lib/modules/anchor/types.d.ts +26 -4
  14. package/dist-lib/modules/arc-progress/components/ArcProgress.d.ts +5 -0
  15. package/dist-lib/modules/arc-progress/constants.d.ts +6 -0
  16. package/dist-lib/modules/arc-progress/index.d.ts +3 -0
  17. package/dist-lib/modules/arc-progress/types.d.ts +22 -0
  18. package/dist-lib/modules/autocomplete/components/Autocomplete.d.ts +2 -2
  19. package/dist-lib/modules/autocomplete/index.d.ts +1 -1
  20. package/dist-lib/modules/autocomplete/types.d.ts +103 -13
  21. package/dist-lib/modules/avatar/components/Avatar.d.ts +1 -1
  22. package/dist-lib/modules/avatar/components/AvatarGroup.d.ts +2 -0
  23. package/dist-lib/modules/avatar/context.d.ts +3 -0
  24. package/dist-lib/modules/avatar/index.d.ts +2 -1
  25. package/dist-lib/modules/avatar/types.d.ts +74 -3
  26. package/dist-lib/modules/back-top/components/BackTop.d.ts +1 -1
  27. package/dist-lib/modules/back-top/types.d.ts +22 -3
  28. package/dist-lib/modules/badge/components/Badge.d.ts +1 -1
  29. package/dist-lib/modules/badge/index.d.ts +1 -1
  30. package/dist-lib/modules/badge/types.d.ts +49 -3
  31. package/dist-lib/modules/border/components/Border.d.ts +5 -0
  32. package/dist-lib/modules/border/constants.d.ts +4 -0
  33. package/dist-lib/modules/border/index.d.ts +3 -0
  34. package/dist-lib/modules/border/types.d.ts +34 -0
  35. package/dist-lib/modules/breadcrumb/components/Breadcrumb.d.ts +1 -1
  36. package/dist-lib/modules/breadcrumb/index.d.ts +1 -1
  37. package/dist-lib/modules/breadcrumb/types.d.ts +30 -2
  38. package/dist-lib/modules/button/components/Button.d.ts +1 -1
  39. package/dist-lib/modules/button/components/ButtonGroup.d.ts +5 -0
  40. package/dist-lib/modules/button/context.d.ts +3 -0
  41. package/dist-lib/modules/button/index.d.ts +2 -1
  42. package/dist-lib/modules/button/types.d.ts +68 -6
  43. package/dist-lib/modules/button-fill/components/ButtonFill.d.ts +6 -0
  44. package/dist-lib/modules/button-fill/constants.d.ts +2 -0
  45. package/dist-lib/modules/button-fill/index.d.ts +3 -0
  46. package/dist-lib/modules/button-fill/types.d.ts +28 -0
  47. package/dist-lib/modules/card/components/Card.d.ts +1 -1
  48. package/dist-lib/modules/card/index.d.ts +1 -1
  49. package/dist-lib/modules/card/types.d.ts +33 -6
  50. package/dist-lib/modules/carousel/components/Carousel.d.ts +2 -2
  51. package/dist-lib/modules/carousel/components/CarouselItem.d.ts +6 -0
  52. package/dist-lib/modules/carousel/index.d.ts +2 -1
  53. package/dist-lib/modules/carousel/types.d.ts +100 -4
  54. package/dist-lib/modules/cascader/components/Cascader.d.ts +2 -2
  55. package/dist-lib/modules/cascader/components/CascaderPanel.d.ts +6 -0
  56. package/dist-lib/modules/cascader/index.d.ts +2 -1
  57. package/dist-lib/modules/cascader/pathUtils.d.ts +14 -2
  58. package/dist-lib/modules/cascader/types.d.ts +186 -17
  59. package/dist-lib/modules/collapse/components/Collapse.d.ts +2 -2
  60. package/dist-lib/modules/collapse/components/CollapseItem.d.ts +6 -0
  61. package/dist-lib/modules/collapse/index.d.ts +2 -1
  62. package/dist-lib/modules/collapse/types.d.ts +57 -7
  63. package/dist-lib/modules/color/components/Color.d.ts +5 -0
  64. package/dist-lib/modules/color/index.d.ts +3 -0
  65. package/dist-lib/modules/color/palette.d.ts +48 -0
  66. package/dist-lib/modules/color/types.d.ts +49 -0
  67. package/dist-lib/modules/color-picker/colorUtils.d.ts +35 -0
  68. package/dist-lib/modules/color-picker/components/ColorPicker.d.ts +2 -2
  69. package/dist-lib/modules/color-picker/components/ColorPickerPanel.d.ts +2 -0
  70. package/dist-lib/modules/color-picker/index.d.ts +2 -1
  71. package/dist-lib/modules/color-picker/types.d.ts +82 -3
  72. package/dist-lib/modules/config-provider/components/ConfigProvider.d.ts +11 -2
  73. package/dist-lib/modules/config-provider/index.d.ts +3 -2
  74. package/dist-lib/modules/config-provider/locale/enUS.d.ts +2 -0
  75. package/dist-lib/modules/config-provider/types.d.ts +93 -5
  76. package/dist-lib/modules/date-picker/components/DatePicker.d.ts +2 -2
  77. package/dist-lib/modules/date-picker/components/DatePickerPanel.d.ts +2 -0
  78. package/dist-lib/modules/date-picker/index.d.ts +2 -1
  79. package/dist-lib/modules/date-picker/types.d.ts +89 -14
  80. package/dist-lib/modules/date-picker/utils.d.ts +17 -0
  81. package/dist-lib/modules/datetime-picker/components/DateTimePicker.d.ts +2 -2
  82. package/dist-lib/modules/datetime-picker/index.d.ts +1 -1
  83. package/dist-lib/modules/datetime-picker/types.d.ts +81 -7
  84. package/dist-lib/modules/datetime-picker/utils.d.ts +5 -1
  85. package/dist-lib/modules/descriptions/components/Descriptions.d.ts +4 -1
  86. package/dist-lib/modules/descriptions/components/DescriptionsItem.d.ts +6 -0
  87. package/dist-lib/modules/descriptions/index.d.ts +2 -1
  88. package/dist-lib/modules/descriptions/types.d.ts +61 -8
  89. package/dist-lib/modules/divider/components/Divider.d.ts +1 -1
  90. package/dist-lib/modules/divider/index.d.ts +1 -1
  91. package/dist-lib/modules/divider/types.d.ts +7 -1
  92. package/dist-lib/modules/download/components/Download.d.ts +2 -0
  93. package/dist-lib/modules/download/constants.d.ts +20 -0
  94. package/dist-lib/modules/download/index.d.ts +3 -0
  95. package/dist-lib/modules/download/resumeStorage.d.ts +12 -0
  96. package/dist-lib/modules/download/types.d.ts +67 -0
  97. package/dist-lib/modules/drawer/components/Drawer.d.ts +1 -3
  98. package/dist-lib/modules/drawer/index.d.ts +1 -1
  99. package/dist-lib/modules/drawer/types.d.ts +55 -4
  100. package/dist-lib/modules/dropdown/components/Dropdown.d.ts +3 -2
  101. package/dist-lib/modules/dropdown/index.d.ts +1 -1
  102. package/dist-lib/modules/dropdown/types.d.ts +49 -3
  103. package/dist-lib/modules/fluid-progress/components/FluidProgress.d.ts +5 -0
  104. package/dist-lib/modules/fluid-progress/constants.d.ts +3 -0
  105. package/dist-lib/modules/fluid-progress/index.d.ts +3 -0
  106. package/dist-lib/modules/fluid-progress/types.d.ts +25 -0
  107. package/dist-lib/modules/form/components/Form.d.ts +2 -2
  108. package/dist-lib/modules/form/index.d.ts +2 -2
  109. package/dist-lib/modules/form/types.d.ts +111 -6
  110. package/dist-lib/modules/form/useForm.d.ts +18 -2
  111. package/dist-lib/modules/fox-progress/components/FoxProgress.d.ts +5 -0
  112. package/dist-lib/modules/fox-progress/constants.d.ts +1 -0
  113. package/dist-lib/modules/fox-progress/index.d.ts +3 -0
  114. package/dist-lib/modules/fox-progress/types.d.ts +19 -0
  115. package/dist-lib/modules/image/components/Image.d.ts +2 -2
  116. package/dist-lib/modules/image/components/ImageLightbox.d.ts +4 -10
  117. package/dist-lib/modules/image/components/ImagePreviewGroup.d.ts +1 -1
  118. package/dist-lib/modules/image/index.d.ts +2 -2
  119. package/dist-lib/modules/image/types.d.ts +145 -22
  120. package/dist-lib/modules/input/components/Input.d.ts +2 -2
  121. package/dist-lib/modules/input/index.d.ts +1 -1
  122. package/dist-lib/modules/input/types.d.ts +70 -5
  123. package/dist-lib/modules/input-number/components/InputNumber.d.ts +2 -2
  124. package/dist-lib/modules/input-number/index.d.ts +1 -1
  125. package/dist-lib/modules/input-number/types.d.ts +74 -5
  126. package/dist-lib/modules/input-otp/components/InputOtp.d.ts +2 -0
  127. package/dist-lib/modules/input-otp/index.d.ts +2 -0
  128. package/dist-lib/modules/input-otp/types.d.ts +67 -0
  129. package/dist-lib/modules/input-tag/components/InputTag.d.ts +2 -0
  130. package/dist-lib/modules/input-tag/index.d.ts +2 -0
  131. package/dist-lib/modules/input-tag/types.d.ts +114 -0
  132. package/dist-lib/modules/layout/components/Layout.d.ts +20 -5
  133. package/dist-lib/modules/layout/components/Row.d.ts +867 -2
  134. package/dist-lib/modules/layout/index.d.ts +1 -1
  135. package/dist-lib/modules/layout/types.d.ts +86 -5
  136. package/dist-lib/modules/link/components/Link.d.ts +1 -1
  137. package/dist-lib/modules/link/index.d.ts +1 -1
  138. package/dist-lib/modules/link/types.d.ts +44 -2
  139. package/dist-lib/modules/liquid-progress/components/LiquidProgress.d.ts +5 -0
  140. package/dist-lib/modules/liquid-progress/constants.d.ts +2 -0
  141. package/dist-lib/modules/liquid-progress/index.d.ts +3 -0
  142. package/dist-lib/modules/liquid-progress/types.d.ts +22 -0
  143. package/dist-lib/modules/mention/components/Mention.d.ts +2 -2
  144. package/dist-lib/modules/mention/index.d.ts +1 -1
  145. package/dist-lib/modules/mention/types.d.ts +105 -5
  146. package/dist-lib/modules/menu/components/Menu.d.ts +1 -1
  147. package/dist-lib/modules/menu/types.d.ts +31 -0
  148. package/dist-lib/modules/message-box/components/MessageBoxView.d.ts +1 -1
  149. package/dist-lib/modules/message-box/index.d.ts +1 -1
  150. package/dist-lib/modules/message-box/types.d.ts +40 -2
  151. package/dist-lib/modules/modal/components/Modal.d.ts +2 -2
  152. package/dist-lib/modules/modal/index.d.ts +1 -1
  153. package/dist-lib/modules/modal/types.d.ts +61 -1
  154. package/dist-lib/modules/notification/components/NotificationProvider.d.ts +1 -1
  155. package/dist-lib/modules/notification/index.d.ts +1 -1
  156. package/dist-lib/modules/notification/types.d.ts +31 -1
  157. package/dist-lib/modules/pagination/components/Pagination.d.ts +4 -1
  158. package/dist-lib/modules/pagination/index.d.ts +1 -1
  159. package/dist-lib/modules/pagination/math.d.ts +2 -3
  160. package/dist-lib/modules/pagination/types.d.ts +76 -16
  161. package/dist-lib/modules/panel-morph/constants.d.ts +2 -1
  162. package/dist-lib/modules/photo-upload/components/PhotoUpload.d.ts +1 -1
  163. package/dist-lib/modules/photo-upload/constants.d.ts +4 -0
  164. package/dist-lib/modules/photo-upload/index.d.ts +1 -0
  165. package/dist-lib/modules/photo-upload/types.d.ts +14 -0
  166. package/dist-lib/modules/popconfirm/components/Popconfirm.d.ts +1 -1
  167. package/dist-lib/modules/popconfirm/types.d.ts +9 -2
  168. package/dist-lib/modules/popover/components/Popover.d.ts +1 -1
  169. package/dist-lib/modules/popover/types.d.ts +12 -2
  170. package/dist-lib/modules/progress/components/Progress.d.ts +4 -1
  171. package/dist-lib/modules/progress/index.d.ts +1 -1
  172. package/dist-lib/modules/progress/types.d.ts +82 -9
  173. package/dist-lib/modules/radio/components/Radio.d.ts +2 -0
  174. package/dist-lib/modules/radio/components/RadioButton.d.ts +5 -0
  175. package/dist-lib/modules/radio/components/RadioGroup.d.ts +1 -1
  176. package/dist-lib/modules/radio/context.d.ts +3 -0
  177. package/dist-lib/modules/radio/index.d.ts +3 -1
  178. package/dist-lib/modules/radio/types.d.ts +100 -5
  179. package/dist-lib/modules/range-picker/components/RangePicker.d.ts +1 -1
  180. package/dist-lib/modules/range-picker/index.d.ts +1 -1
  181. package/dist-lib/modules/range-picker/types.d.ts +29 -2
  182. package/dist-lib/modules/rate/components/Rate.d.ts +2 -2
  183. package/dist-lib/modules/rate/index.d.ts +1 -1
  184. package/dist-lib/modules/rate/types.d.ts +100 -1
  185. package/dist-lib/modules/result/components/Result.d.ts +4 -1
  186. package/dist-lib/modules/result/index.d.ts +1 -1
  187. package/dist-lib/modules/result/types.d.ts +15 -2
  188. package/dist-lib/modules/scrollbar/components/Scrollbar.d.ts +2 -2
  189. package/dist-lib/modules/scrollbar/index.d.ts +1 -1
  190. package/dist-lib/modules/scrollbar/types.d.ts +86 -1
  191. package/dist-lib/modules/search/components/Search.d.ts +2 -0
  192. package/dist-lib/modules/search/index.d.ts +2 -0
  193. package/dist-lib/modules/search/types.d.ts +20 -0
  194. package/dist-lib/modules/segmented/components/Segmented.d.ts +2 -1
  195. package/dist-lib/modules/segmented/index.d.ts +1 -1
  196. package/dist-lib/modules/segmented/types.d.ts +31 -8
  197. package/dist-lib/modules/select/components/Select.d.ts +2 -2
  198. package/dist-lib/modules/select/index.d.ts +1 -1
  199. package/dist-lib/modules/select/types.d.ts +112 -16
  200. package/dist-lib/modules/skeleton/components/Skeleton.d.ts +4 -1
  201. package/dist-lib/modules/skeleton/components/SkeletonItem.d.ts +5 -0
  202. package/dist-lib/modules/skeleton/index.d.ts +2 -1
  203. package/dist-lib/modules/skeleton/types.d.ts +55 -3
  204. package/dist-lib/modules/slider/components/Slider.d.ts +2 -0
  205. package/dist-lib/modules/slider/index.d.ts +3 -2
  206. package/dist-lib/modules/slider/types.d.ts +102 -0
  207. package/dist-lib/modules/space/components/Space.d.ts +1 -1
  208. package/dist-lib/modules/space/index.d.ts +1 -1
  209. package/dist-lib/modules/space/types.d.ts +47 -4
  210. package/dist-lib/modules/spin/components/Spin.d.ts +1 -1
  211. package/dist-lib/modules/spin/components/loadingService.d.ts +44 -0
  212. package/dist-lib/modules/spin/index.d.ts +2 -0
  213. package/dist-lib/modules/spin/types.d.ts +26 -1
  214. package/dist-lib/modules/splash-intro/components/AppSplash.d.ts +25 -0
  215. package/dist-lib/modules/splash-intro/components/SplashIntro.d.ts +38 -0
  216. package/dist-lib/modules/splash-intro/components/SplashLogo.d.ts +2 -0
  217. package/dist-lib/modules/splash-intro/components/SplashStagger.d.ts +14 -0
  218. package/dist-lib/modules/splash-intro/constants.d.ts +8 -0
  219. package/dist-lib/modules/splash-intro/context.d.ts +13 -0
  220. package/dist-lib/modules/splash-intro/index.d.ts +10 -0
  221. package/dist-lib/modules/splash-intro/types.d.ts +4 -0
  222. package/dist-lib/modules/splitter/components/Splitter.d.ts +7 -1
  223. package/dist-lib/modules/splitter/index.d.ts +1 -1
  224. package/dist-lib/modules/splitter/types.d.ts +75 -9
  225. package/dist-lib/modules/statistic/components/Countdown.d.ts +3 -0
  226. package/dist-lib/modules/statistic/components/Statistic.d.ts +3 -2
  227. package/dist-lib/modules/statistic/index.d.ts +2 -1
  228. package/dist-lib/modules/statistic/types.d.ts +28 -3
  229. package/dist-lib/modules/steps/components/Steps.d.ts +1 -1
  230. package/dist-lib/modules/steps/types.d.ts +17 -0
  231. package/dist-lib/modules/storybook-welcome/components/StorybookWelcome.d.ts +1 -1
  232. package/dist-lib/modules/storybook-welcome/types.d.ts +22 -2
  233. package/dist-lib/modules/switch/components/Switch.d.ts +2 -2
  234. package/dist-lib/modules/switch/index.d.ts +1 -1
  235. package/dist-lib/modules/switch/types.d.ts +100 -3
  236. package/dist-lib/modules/table/components/Table.d.ts +6 -2
  237. package/dist-lib/modules/table/index.d.ts +1 -1
  238. package/dist-lib/modules/table/types.d.ts +129 -22
  239. package/dist-lib/modules/table-v2/components/AutoResizer.d.ts +3 -0
  240. package/dist-lib/modules/table-v2/components/TableV2.d.ts +6 -0
  241. package/dist-lib/modules/table-v2/index.d.ts +3 -0
  242. package/dist-lib/modules/table-v2/types.d.ts +161 -0
  243. package/dist-lib/modules/tabs/components/Tabs.d.ts +1 -1
  244. package/dist-lib/modules/tabs/types.d.ts +18 -2
  245. package/dist-lib/modules/tag/components/CheckTag.d.ts +3 -0
  246. package/dist-lib/modules/tag/components/Tag.d.ts +2 -1
  247. package/dist-lib/modules/tag/index.d.ts +2 -1
  248. package/dist-lib/modules/tag/types.d.ts +32 -3
  249. package/dist-lib/modules/text/components/Text.d.ts +2 -0
  250. package/dist-lib/modules/text/index.d.ts +2 -0
  251. package/dist-lib/modules/text/types.d.ts +37 -0
  252. package/dist-lib/modules/thread-expand/components/ThreadExpand.d.ts +1 -1
  253. package/dist-lib/modules/thread-expand/constants.d.ts +28 -0
  254. package/dist-lib/modules/thread-expand/index.d.ts +1 -1
  255. package/dist-lib/modules/thread-expand/types.d.ts +14 -0
  256. package/dist-lib/modules/timeline/components/Timeline.d.ts +2 -1
  257. package/dist-lib/modules/timeline/index.d.ts +1 -1
  258. package/dist-lib/modules/timeline/types.d.ts +35 -1
  259. package/dist-lib/modules/toast/components/ToastProvider.d.ts +1 -1
  260. package/dist-lib/modules/toast/index.d.ts +1 -1
  261. package/dist-lib/modules/toast/types.d.ts +39 -1
  262. package/dist-lib/modules/tooltip/components/Tooltip.d.ts +1 -1
  263. package/dist-lib/modules/tooltip/index.d.ts +1 -1
  264. package/dist-lib/modules/tooltip/types.d.ts +15 -3
  265. package/dist-lib/modules/tour/components/Tour.d.ts +2 -1
  266. package/dist-lib/modules/tour/index.d.ts +1 -1
  267. package/dist-lib/modules/tour/types.d.ts +60 -6
  268. package/dist-lib/modules/transfer/components/Transfer.d.ts +2 -2
  269. package/dist-lib/modules/transfer/components/TransferVirtualBody.d.ts +10 -0
  270. package/dist-lib/modules/transfer/index.d.ts +1 -1
  271. package/dist-lib/modules/transfer/types.d.ts +111 -18
  272. package/dist-lib/modules/transition/components/CollapseTransition.d.ts +5 -0
  273. package/dist-lib/modules/transition/components/Transition.d.ts +6 -0
  274. package/dist-lib/modules/transition/constants.d.ts +9 -0
  275. package/dist-lib/modules/transition/index.d.ts +5 -0
  276. package/dist-lib/modules/transition/types.d.ts +59 -0
  277. package/dist-lib/modules/tree/checkUtils.d.ts +3 -0
  278. package/dist-lib/modules/tree/components/Tree.d.ts +3 -2
  279. package/dist-lib/modules/tree/dragUtils.d.ts +5 -2
  280. package/dist-lib/modules/tree/index.d.ts +1 -1
  281. package/dist-lib/modules/tree/types.d.ts +93 -51
  282. package/dist-lib/modules/tree-select/components/TreeSelect.d.ts +2 -2
  283. package/dist-lib/modules/tree-select/index.d.ts +1 -1
  284. package/dist-lib/modules/tree-select/types.d.ts +85 -13
  285. package/dist-lib/modules/tree-select/utils.d.ts +14 -3
  286. package/dist-lib/modules/tree-v2/components/TreeV2.d.ts +3 -0
  287. package/dist-lib/modules/tree-v2/index.d.ts +2 -0
  288. package/dist-lib/modules/tree-v2/types.d.ts +97 -0
  289. package/dist-lib/modules/tree-v2/utils.d.ts +24 -0
  290. package/dist-lib/modules/typography/components/Typography.d.ts +9 -4
  291. package/dist-lib/modules/typography/constants.d.ts +27 -0
  292. package/dist-lib/modules/typography/index.d.ts +2 -1
  293. package/dist-lib/modules/typography/types.d.ts +14 -0
  294. package/dist-lib/modules/upload/ajaxUpload.d.ts +2 -0
  295. package/dist-lib/modules/upload/chunkUpload.d.ts +6 -0
  296. package/dist-lib/modules/upload/components/Upload.d.ts +2 -2
  297. package/dist-lib/modules/upload/index.d.ts +2 -1
  298. package/dist-lib/modules/upload/resumeStorage.d.ts +16 -0
  299. package/dist-lib/modules/upload/types.d.ts +160 -24
  300. package/package.json +80 -73
@@ -1,4 +1,106 @@
1
+ import { CSSProperties, ReactNode } from 'react';
2
+ /** 项目约定 sm/md/lg;兼容 Form / Element 的 small/default/large */
3
+ export type SliderSize = "sm" | "md" | "lg" | "small" | "default" | "large";
4
+ export type SliderTooltipPlacement = "top" | "bottom" | "left" | "right";
5
+ export type SliderMark = string | {
6
+ label: ReactNode;
7
+ style?: CSSProperties;
8
+ };
9
+ export type SliderMarks = Record<number, SliderMark>;
10
+ export type SliderValue = number | [number, number];
11
+ export type SliderStep = number | "mark";
1
12
  export type SliderPhase = "idle" | "drag" | "coast" | "snap";
13
+ export type SliderProps = {
14
+ value?: SliderValue;
15
+ /**
16
+ * @default 0
17
+ */
18
+ defaultValue?: SliderValue;
19
+ /**
20
+ * @default 0
21
+ */
22
+ min?: number;
23
+ /**
24
+ * @default 100
25
+ */
26
+ max?: number;
27
+ /**
28
+ * 步长;为 "mark" 时只能落在 marks 上
29
+ * @default 1
30
+ */
31
+ step?: SliderStep;
32
+ /**
33
+ * @default false
34
+ */
35
+ disabled?: boolean;
36
+ /**
37
+ * 是否显示输入框(仅非 range 且 step 不为 mark)
38
+ * @default false
39
+ */
40
+ showInput?: boolean;
41
+ /**
42
+ * 输入框是否显示加减按钮
43
+ * @default true
44
+ */
45
+ showInputControls?: boolean;
46
+ size?: SliderSize;
47
+ /** 输入框尺寸;默认跟随 size */
48
+ inputSize?: SliderSize;
49
+ /**
50
+ * 是否显示间断点
51
+ * @default false
52
+ */
53
+ showStops?: boolean;
54
+ /**
55
+ * 是否显示 Tooltip
56
+ * @default true
57
+ */
58
+ showTooltip?: boolean;
59
+ /** 格式化 Tooltip 文案 */
60
+ formatTooltip?: (value: number) => ReactNode;
61
+ /**
62
+ * 范围选择
63
+ * @default false
64
+ */
65
+ range?: boolean;
66
+ /**
67
+ * 垂直模式
68
+ * @default false
69
+ */
70
+ vertical?: boolean;
71
+ /** 垂直模式高度,必填建议 */
72
+ height?: string | number;
73
+ "aria-label"?: string;
74
+ rangeStartLabel?: string;
75
+ rangeEndLabel?: string;
76
+ formatValueText?: (value: number) => string;
77
+ tooltipClassName?: string;
78
+ /**
79
+ * Tooltip 位置
80
+ * @default "top"
81
+ */
82
+ placement?: SliderTooltipPlacement;
83
+ /** 标记点;key 须为 number 且落在 [min, max] */
84
+ marks?: SliderMarks;
85
+ /**
86
+ * 输入时是否触发表单校验(由 FormItem 接管时生效)
87
+ * @default true
88
+ */
89
+ validateEvent?: boolean;
90
+ /**
91
+ * tooltip 非活动时是否保持挂载;showTooltip 为 false 时恒为 false
92
+ * @default true
93
+ */
94
+ persistent?: boolean;
95
+ /** @deprecated 请使用 aria-label */
96
+ label?: string;
97
+ id?: string;
98
+ className?: string;
99
+ /** 拖动结束 / 点击改变后触发 */
100
+ onChange?: (value: SliderValue) => void;
101
+ /** 拖动过程中实时触发 */
102
+ onInput?: (value: SliderValue) => void;
103
+ };
2
104
  export type SnapSliderProps = {
3
105
  value: number;
4
106
  min?: number;
@@ -1,2 +1,2 @@
1
1
  import { SpaceProps } from '../types';
2
- export declare function Space({ children, direction, size, wrap, align, split, className, }: SpaceProps): import('react').JSX.Element;
2
+ export declare function Space({ children, direction, size, wrap, align, alignment, spacer, split, fill, fillRatio, prefixCls, className, style, }: SpaceProps): import('react').JSX.Element;
@@ -1,2 +1,2 @@
1
1
  export { Space } from './components/Space';
2
- export type { SpaceAlign, SpaceDirection, SpaceProps, SpaceSize, } from './types';
2
+ export type { SpaceAlign, SpaceDirection, SpaceProps, SpaceSize, SpaceSizePreset, } from './types';
@@ -1,14 +1,57 @@
1
- import { ReactNode } from 'react';
2
- export type SpaceSize = "sm" | "md" | "lg" | number;
1
+ import { CSSProperties, ReactNode } from 'react';
2
+ /** 对齐 Element:small=8 / default=12 / large=16;兼容 sm/md/lg */
3
+ export type SpaceSizePreset = "small" | "default" | "large" | "sm" | "md" | "lg";
4
+ export type SpaceSize = SpaceSizePreset | number | [number, number];
3
5
  export type SpaceDirection = "horizontal" | "vertical";
4
- export type SpaceAlign = "start" | "center" | "end" | "baseline";
6
+ /** 对齐 align-items;alignment 为 Element 命名 */
7
+ export type SpaceAlign = "start" | "center" | "end" | "baseline" | "stretch" | "flex-start" | "flex-end";
5
8
  export type SpaceProps = {
6
9
  children?: ReactNode;
10
+ /**
11
+ * 排列方向
12
+ * @default "horizontal"
13
+ */
7
14
  direction?: SpaceDirection;
15
+ /**
16
+ * 间距:预设 / 数字 / [水平, 垂直]
17
+ * @default "small"
18
+ */
8
19
  size?: SpaceSize;
20
+ /**
21
+ * 水平模式下是否自动换行
22
+ * @default false
23
+ */
9
24
  wrap?: boolean;
25
+ /**
26
+ * 子项对齐(align-items)
27
+ * @default "center"
28
+ */
10
29
  align?: SpaceAlign;
11
- /** 分隔节点,插在子项之间 */
30
+ /** Element 命名,等价于 align */
31
+ alignment?: SpaceAlign;
32
+ /**
33
+ * 间隔符(字符串 / 数字 / 节点)
34
+ */
35
+ spacer?: ReactNode;
36
+ /**
37
+ * @deprecated 请优先使用 spacer
38
+ */
12
39
  split?: ReactNode;
40
+ /**
41
+ * 子元素是否填充父容器
42
+ * @default false
43
+ */
44
+ fill?: boolean;
45
+ /**
46
+ * 填充父容器的比例(%)
47
+ * @default 100
48
+ */
49
+ fillRatio?: number;
50
+ /**
51
+ * space-item 类名前缀
52
+ * @default "aot-space"
53
+ */
54
+ prefixCls?: string;
13
55
  className?: string;
56
+ style?: CSSProperties;
14
57
  };
@@ -1,2 +1,2 @@
1
1
  import { SpinProps } from '../types';
2
- export declare function Spin({ spinning, tip, children, size, className, }: SpinProps): import('react').JSX.Element | null;
2
+ export declare function Spin({ spinning, tip, children, size, fullscreen, background, indicator, svg, lock, className, style, }: SpinProps): string | number | bigint | boolean | import('react').JSX.Element | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | null;
@@ -0,0 +1,44 @@
1
+ import { ReactNode } from 'react';
2
+ export type LoadingServiceOptions = {
3
+ /** 加载文案 */
4
+ text?: ReactNode;
5
+ /** 遮罩背景色 */
6
+ background?: string;
7
+ /** 自定义指示器 */
8
+ spinner?: ReactNode;
9
+ /**
10
+ * 自定义 SVG HTML 字符串
11
+ * 警告:勿传入用户输入
12
+ */
13
+ svg?: string;
14
+ /** 尺寸 */
15
+ size?: "sm" | "md" | "lg";
16
+ /**
17
+ * 是否全屏;服务方式默认 true
18
+ * @default true
19
+ */
20
+ fullscreen?: boolean;
21
+ /**
22
+ * 同 fullscreen 挂到 body(默认行为)
23
+ * @default true when fullscreen
24
+ */
25
+ body?: boolean;
26
+ /**
27
+ * 是否锁定 body 滚动
28
+ * @default true when fullscreen
29
+ */
30
+ lock?: boolean;
31
+ className?: string;
32
+ };
33
+ export type LoadingInstance = {
34
+ close: () => void;
35
+ };
36
+ /**
37
+ * 命令式 Loading(对齐 Element Plus `ElLoading.service`)。
38
+ * 全屏 Loading 为单例:重复调用返回同一实例。
39
+ */
40
+ export declare function showLoading(options?: LoadingServiceOptions): LoadingInstance;
41
+ /** 别名,对齐 Element `ElLoading.service` */
42
+ export declare const Loading: {
43
+ service: typeof showLoading;
44
+ };
@@ -1,2 +1,4 @@
1
1
  export { Spin } from './components/Spin';
2
+ export { Loading, showLoading, } from './components/loadingService';
3
+ export type { LoadingInstance, LoadingServiceOptions, } from './components/loadingService';
2
4
  export type { SpinProps, SpinSize } from './types';
@@ -1,9 +1,34 @@
1
- import { ReactNode } from 'react';
1
+ import { CSSProperties, ReactNode } from 'react';
2
2
  export type SpinSize = "sm" | "md" | "lg";
3
3
  export type SpinProps = {
4
+ /**
5
+ * 是否显示加载中
6
+ * @default true
7
+ */
4
8
  spinning?: boolean;
9
+ /** 加载文案(同 Element text) */
5
10
  tip?: ReactNode;
6
11
  children?: ReactNode;
7
12
  size?: SpinSize;
13
+ /**
14
+ * 全屏遮罩(portal 到 body)
15
+ * @default false
16
+ */
17
+ fullscreen?: boolean;
18
+ /** 遮罩背景色 */
19
+ background?: string;
20
+ /** 自定义指示器 */
21
+ indicator?: ReactNode;
22
+ /**
23
+ * 自定义 SVG HTML 字符串(覆盖默认指示器)。
24
+ * 警告:勿传入用户输入,以免 XSS。
25
+ */
26
+ svg?: string;
27
+ /**
28
+ * 全屏时是否锁定 body 滚动
29
+ * @default true(fullscreen 时)
30
+ */
31
+ lock?: boolean;
8
32
  className?: string;
33
+ style?: CSSProperties;
9
34
  };
@@ -0,0 +1,25 @@
1
+ import { ReactNode } from 'react';
2
+ import { SplashIntroProps } from './SplashIntro';
3
+ export type AppSplashProps = Omit<SplashIntroProps, "children"> & {
4
+ children: ReactNode;
5
+ /**
6
+ * 为 true 时用 SplashStagger 包裹子树(主内容错落入场)。
7
+ * 若子组件自行使用 useSplashReady + SplashStagger,保持 false。
8
+ * @default false
9
+ */
10
+ staggerChildren?: boolean;
11
+ };
12
+ /**
13
+ * 主程序启动动画入口。
14
+ * 默认 fullscreen;演示页可传 fullscreen={false} + minHeight 嵌入预览。
15
+ *
16
+ * @example
17
+ * ```tsx
18
+ * <AppSplash brand="启动中" brandSub="AOT">
19
+ * <AppShell>
20
+ * <HomePage />
21
+ * </AppShell>
22
+ * </AppSplash>
23
+ * ```
24
+ */
25
+ export declare function AppSplash({ children, staggerChildren, brand, brandSub, fullscreen, minHeight, ...rest }: AppSplashProps): import('react').JSX.Element;
@@ -0,0 +1,38 @@
1
+ import { CSSProperties, ReactNode } from 'react';
2
+ export type SplashPhase = "breath" | "reveal" | "enter" | "done";
3
+ export type SplashIntroProps = {
4
+ children: ReactNode | ((ctx: {
5
+ contentReady: boolean;
6
+ phase: SplashPhase;
7
+ }) => ReactNode);
8
+ /** 跳过动画,直接展示内容 */
9
+ skip?: boolean;
10
+ /** 点击遮罩可跳过(进入 reveal→done 快进) */
11
+ clickToSkip?: boolean;
12
+ /** 显示右上角「跳过」按钮 */
13
+ showSkipButton?: boolean;
14
+ skipLabel?: string;
15
+ /** Brand caption under logo on the veil. Pass empty string to hide. */
16
+ brand?: string;
17
+ brandSub?: string;
18
+ /** 自定义 Logo;默认内置 SplashLogo */
19
+ logo?: ReactNode;
20
+ /** 呼吸阶段时长 ms */
21
+ breathMs?: number;
22
+ /** 揭示阶段时长 ms */
23
+ revealMs?: number;
24
+ /** 遮罩淡出时长 ms */
25
+ veilFadeMs?: number;
26
+ /** 遮罩背景色 */
27
+ background?: string;
28
+ /** 最小高度(修复仅 min-height 父级时高度塌缩) */
29
+ minHeight?: number | string;
30
+ /** 铺满父级(常用 100% / 100vh) */
31
+ fullscreen?: boolean;
32
+ className?: string;
33
+ style?: CSSProperties;
34
+ onPhaseChange?: (phase: SplashPhase) => void;
35
+ onDone?: () => void;
36
+ onSkip?: () => void;
37
+ };
38
+ export declare function SplashIntro({ children, skip, clickToSkip, showSkipButton, skipLabel, brand, brandSub, logo, breathMs, revealMs, veilFadeMs, background, minHeight, fullscreen, className, style, onPhaseChange, onDone, onSkip, }: SplashIntroProps): import('react').JSX.Element;
@@ -0,0 +1,2 @@
1
+ /** Circular mark used as the “door” centerpiece on the splash. */
2
+ export declare function SplashLogo(): import('react').JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { CSSProperties, ReactNode } from 'react';
2
+ export type SplashStaggerProps = {
3
+ /** 为 true 时子项错落入场;false 时保持隐藏待播 */
4
+ ready?: boolean;
5
+ children?: ReactNode;
6
+ className?: string;
7
+ style?: CSSProperties;
8
+ };
9
+ /**
10
+ * 启动揭示后的内容错落入场容器。
11
+ * 通常配合 SplashIntro 的 contentReady:
12
+ * `<SplashStagger ready={contentReady}>{…}</SplashStagger>`
13
+ */
14
+ export declare function SplashStagger({ ready, children, className, style, }: SplashStaggerProps): import('react').JSX.Element;
@@ -0,0 +1,8 @@
1
+ export declare const SPLASH_BREATH_MS = 600;
2
+ export declare const SPLASH_REVEAL_MS = 700;
3
+ export declare const SPLASH_STAGGER_MS = 60;
4
+ /** Extra hold after reveal before removing veil (ms). */
5
+ export declare const SPLASH_VEIL_FADE_MS = 180;
6
+ /** Veil brand caption (unicode escapes keep encoding stable). */
7
+ export declare const SPLASH_BRAND = "\u542F\u52A8\u4E2D";
8
+ export declare const SPLASH_BRAND_SUB = "AOT";
@@ -0,0 +1,13 @@
1
+ import { ReactNode } from 'react';
2
+ import { SplashPhase } from './components/SplashIntro';
3
+ export type SplashContextValue = {
4
+ contentReady: boolean;
5
+ phase: SplashPhase;
6
+ };
7
+ export declare function SplashProvider({ value, children, }: {
8
+ value: SplashContextValue;
9
+ children: ReactNode;
10
+ }): import('react').JSX.Element;
11
+ /** 读取主程序 / AppSplash 的入场状态;未包裹时默认已就绪 */
12
+ export declare function useSplash(): SplashContextValue;
13
+ export declare function useSplashReady(): boolean;
@@ -0,0 +1,10 @@
1
+ export { SplashIntro } from './components/SplashIntro';
2
+ export type { SplashIntroProps, SplashPhase } from './components/SplashIntro';
3
+ export { SplashLogo } from './components/SplashLogo';
4
+ export { SplashStagger } from './components/SplashStagger';
5
+ export type { SplashStaggerProps } from './components/SplashStagger';
6
+ export { AppSplash } from './components/AppSplash';
7
+ export type { AppSplashProps } from './components/AppSplash';
8
+ export { useSplash, useSplashReady } from './context';
9
+ export type { SplashContextValue } from './context';
10
+ export { SPLASH_BREATH_MS, SPLASH_REVEAL_MS, SPLASH_STAGGER_MS, SPLASH_VEIL_FADE_MS, SPLASH_BRAND, SPLASH_BRAND_SUB, } from './constants';
@@ -0,0 +1,4 @@
1
+ export type { SplashPhase, SplashIntroProps } from './components/SplashIntro';
2
+ export type { SplashStaggerProps } from './components/SplashStagger';
3
+ export type { AppSplashProps } from './components/AppSplash';
4
+ export type { SplashContextValue } from './context';
@@ -1,6 +1,12 @@
1
1
  import { SplitterPanelProps, SplitterProps } from '../types';
2
2
  declare function Panel(_props: SplitterPanelProps): null;
3
- declare function SplitterRoot({ children, layout, defaultSizes, minSize, className, style, onResize, }: SplitterProps): import('react').JSX.Element;
3
+ declare namespace Panel {
4
+ var displayName: string;
5
+ }
6
+ declare function SplitterRoot({ children, layout, lazy, showBarHandle, barClassName, barStyle, bar, className, style, onResizeStart, onResize, onResizeEnd, onCollapse, }: SplitterProps): import('react').JSX.Element;
7
+ declare namespace SplitterRoot {
8
+ var displayName: string;
9
+ }
4
10
  export declare const Splitter: typeof SplitterRoot & {
5
11
  Panel: typeof Panel;
6
12
  };
@@ -1,2 +1,2 @@
1
1
  export { Splitter } from './components/Splitter';
2
- export type { SplitterPanelProps, SplitterProps } from './types';
2
+ export type { SplitterProps, SplitterPanelProps, SplitterSizeValue, SplitterBarRenderContext, } from './types';
@@ -1,19 +1,85 @@
1
- import { CSSProperties, ReactNode } from 'react';
1
+ import { CSSProperties, ReactNode, Ref } from 'react';
2
+ /** 像素、百分比或数字(数字按像素) */
3
+ export type SplitterSizeValue = number | string;
4
+ export type SplitterBarRenderContext = {
5
+ /** 分隔条索引(第 i 与 i+1 面板之间) */
6
+ index: number;
7
+ /** 是否正在拖拽该条 */
8
+ dragging: boolean;
9
+ /** 是否水平布局 */
10
+ horizontal: boolean;
11
+ /** 该条是否可拖 */
12
+ resizable: boolean;
13
+ };
2
14
  export type SplitterProps = {
3
- children: ReactNode;
4
- /** Layout direction of panes. */
15
+ children?: ReactNode;
16
+ /**
17
+ * 布局方向
18
+ * @default "horizontal"
19
+ */
5
20
  layout?: "horizontal" | "vertical";
6
- /** Initial sizes as percentages; length should match pane count. */
7
- defaultSizes?: number[];
8
- minSize?: number;
21
+ /**
22
+ * 拖动时是否延迟更新面板尺寸(仅松手后应用)
23
+ * @default false
24
+ */
25
+ lazy?: boolean;
26
+ /**
27
+ * 是否显示默认拖动手柄纹理
28
+ * @default true
29
+ */
30
+ showBarHandle?: boolean;
31
+ /** 拖动条自定义类名 */
32
+ barClassName?: string;
33
+ /** 拖动条自定义样式 */
34
+ barStyle?: CSSProperties;
35
+ /**
36
+ * 自定义拖动条内容(替换默认手柄;折叠按钮仍会渲染在两侧)
37
+ * 传 ReactNode 或按 index 渲染的函数
38
+ */
39
+ bar?: ReactNode | ((ctx: SplitterBarRenderContext) => ReactNode);
9
40
  className?: string;
10
41
  style?: CSSProperties;
11
- onResize?: (sizes: number[]) => void;
42
+ /** 开始拖拽分隔条(index 为分隔条索引) */
43
+ onResizeStart?: (index: number, sizes: number[]) => void;
44
+ /** 拖拽中(lazy 时不随拖动触发面板更新,仍可能触发本事件) */
45
+ onResize?: (index: number, sizes: number[]) => void;
46
+ /** 拖拽结束 */
47
+ onResizeEnd?: (index: number, sizes: number[]) => void;
48
+ /** 面板折叠 / 展开 */
49
+ onCollapse?: (index: number, sizes: number[], collapsed: boolean[]) => void;
12
50
  };
13
51
  export type SplitterPanelProps = {
14
52
  children?: ReactNode;
53
+ /**
54
+ * 面板大小(像素或百分比,如 100、"100px"、"30%")
55
+ */
56
+ size?: SplitterSizeValue;
57
+ /**
58
+ * 非受控初始大小
59
+ */
60
+ defaultSize?: SplitterSizeValue;
61
+ /** 最小尺寸 */
62
+ min?: SplitterSizeValue;
63
+ /** 最大尺寸 */
64
+ max?: SplitterSizeValue;
65
+ /**
66
+ * 是否可拖拽调整(任一侧为 false 则该处分隔条不可拖)
67
+ * @default true
68
+ */
69
+ resizable?: boolean;
70
+ /**
71
+ * 是否可快速折叠
72
+ * @default false
73
+ */
74
+ collapsible?: boolean;
75
+ /** 自定义起始侧折叠按钮 */
76
+ startCollapsible?: ReactNode;
77
+ /** 自定义结束侧折叠按钮 */
78
+ endCollapsible?: ReactNode;
15
79
  className?: string;
16
80
  style?: CSSProperties;
17
- /** Optional min size percentage for this panel. */
18
- min?: number;
81
+ /** 面板大小变化(受控配合 size) */
82
+ onSizeChange?: (size: string) => void;
83
+ /** 面板 DOM ref */
84
+ panelRef?: Ref<HTMLDivElement | null>;
19
85
  };
@@ -0,0 +1,3 @@
1
+ import { CountdownExposes, CountdownProps } from '../types';
2
+ export declare const Countdown: import('react').ForwardRefExoticComponent<CountdownProps & import('react').RefAttributes<CountdownExposes>>;
3
+ export default Countdown;
@@ -1,2 +1,3 @@
1
- import { StatisticProps } from '../types';
2
- export declare function Statistic({ title, value, prefix, suffix, precision, className, }: StatisticProps): import('react').JSX.Element;
1
+ import { StatisticExposes, StatisticProps } from '../types';
2
+ export declare const Statistic: import('react').ForwardRefExoticComponent<StatisticProps & import('react').RefAttributes<StatisticExposes>>;
3
+ export default Statistic;
@@ -1,2 +1,3 @@
1
1
  export { Statistic } from './components/Statistic';
2
- export type { StatisticProps } from './types';
2
+ export { Countdown } from './components/Countdown';
3
+ export type { CountdownExposes, CountdownProps, StatisticExposes, StatisticProps, } from './types';
@@ -1,9 +1,34 @@
1
- import { ReactNode } from 'react';
1
+ import { CSSProperties, ReactNode } from 'react';
2
2
  export type StatisticProps = {
3
+ /** 数字内容 */
4
+ value?: number;
5
+ decimalSeparator?: string;
6
+ /** 自定义格式化;优先于 precision / separator */
7
+ formatter?: (value: number) => ReactNode;
8
+ groupSeparator?: string;
9
+ precision?: number;
10
+ prefix?: ReactNode;
11
+ suffix?: ReactNode;
3
12
  title?: ReactNode;
4
- value: number | string;
13
+ valueStyle?: CSSProperties;
14
+ className?: string;
15
+ };
16
+ export type StatisticExposes = {
17
+ displayValue: ReactNode;
18
+ };
19
+ export type CountdownProps = {
20
+ /** 目标时间:时间戳 ms 或 Date */
21
+ value: number | Date;
22
+ /** 格式,如 HH:mm:ss / DD [days] HH:mm:ss */
23
+ format?: string;
5
24
  prefix?: ReactNode;
6
25
  suffix?: ReactNode;
7
- precision?: number;
26
+ title?: ReactNode;
27
+ valueStyle?: CSSProperties;
8
28
  className?: string;
29
+ onChange?: (remainMs: number) => void;
30
+ onFinish?: () => void;
31
+ };
32
+ export type CountdownExposes = {
33
+ displayValue: string;
9
34
  };
@@ -1,2 +1,2 @@
1
1
  import { StepsProps } from '../types';
2
- export declare function Steps({ items, current, status, direction, className, onChange, }: StepsProps): import('react').JSX.Element;
2
+ export declare function Steps({ items, current, status, finishStatus, direction, alignCenter, simple, className, onChange, }: StepsProps): import('react').JSX.Element;
@@ -4,6 +4,8 @@ export type StepItem = {
4
4
  key: string;
5
5
  title: ReactNode;
6
6
  description?: ReactNode;
7
+ /** 自定义图标;覆盖默认序号 */
8
+ icon?: ReactNode;
7
9
  /** 覆盖该步状态(优先于 current 推导) */
8
10
  status?: StepStatus;
9
11
  };
@@ -14,7 +16,22 @@ export type StepsProps = {
14
16
  * 指定当前步骤状态;未传时 current 步为 process,之前为 finish,之后为 wait
15
17
  */
16
18
  status?: StepStatus;
19
+ /**
20
+ * 已完成步骤的状态
21
+ * @default finish
22
+ */
23
+ finishStatus?: StepStatus;
17
24
  direction?: "horizontal" | "vertical";
25
+ /**
26
+ * 标题与描述居中(horizontal)
27
+ * @default false
28
+ */
29
+ alignCenter?: boolean;
30
+ /**
31
+ * 简洁风格(忽略 description / alignCenter 等)
32
+ * @default false
33
+ */
34
+ simple?: boolean;
18
35
  className?: string;
19
36
  onChange?: (index: number) => void;
20
37
  };
@@ -1,2 +1,2 @@
1
1
  import { StorybookWelcomeProps } from '../types';
2
- export declare function StorybookWelcome({ className, pages: pagesProp, initialIndex, skipLabel, startLabel, onSkip, onStart, onIndexChange, }: StorybookWelcomeProps): import('react').JSX.Element;
2
+ export declare function StorybookWelcome({ className, pages: pagesProp, initialIndex, index: indexProp, skipLabel, startLabel, showSkip, showNav, showDots, clickableDots, loop, autoplay, autoplayInterval, swipeable, onSkip, onStart, onIndexChange, }: StorybookWelcomeProps): import('react').JSX.Element;
@@ -3,8 +3,10 @@ export type StorybookPage = {
3
3
  id: string;
4
4
  title: string;
5
5
  body: string;
6
- /** Custom illustration node; falls back to tone blob if omitted. */
6
+ /** Custom illustration node; falls back to tone blob / image if omitted. */
7
7
  art?: ReactNode;
8
+ /** Optional cover image URL (used when art is omitted). */
9
+ image?: string;
8
10
  /** Soft background wash behind the art. */
9
11
  tone?: string;
10
12
  };
@@ -12,10 +14,28 @@ export type StorybookWelcomeProps = {
12
14
  className?: string;
13
15
  /** Editable pages (length = page count). */
14
16
  pages?: StorybookPage[];
15
- /** Initial page index. */
17
+ /** Initial page index (uncontrolled). */
16
18
  initialIndex?: number;
19
+ /** Controlled page index. */
20
+ index?: number;
17
21
  skipLabel?: string;
18
22
  startLabel?: string;
23
+ /** 显示跳过按钮(默认 true) */
24
+ showSkip?: boolean;
25
+ /** 显示左右箭头(默认 true) */
26
+ showNav?: boolean;
27
+ /** 显示底部圆点(默认 true) */
28
+ showDots?: boolean;
29
+ /** 点击圆点跳转(默认 true) */
30
+ clickableDots?: boolean;
31
+ /** 末页后循环到首页 */
32
+ loop?: boolean;
33
+ /** 自动翻页 */
34
+ autoplay?: boolean;
35
+ /** 自动翻页间隔 ms */
36
+ autoplayInterval?: number;
37
+ /** 允许拖拽滑动(默认 true) */
38
+ swipeable?: boolean;
19
39
  onSkip?: () => void;
20
40
  onStart?: () => void;
21
41
  onIndexChange?: (index: number) => void;
@@ -1,2 +1,2 @@
1
- import { SwitchProps } from '../types';
2
- export declare function Switch({ checked: checkedProp, defaultChecked, disabled, loading, size, checkedLabel, uncheckedLabel, className, "aria-label": ariaLabel, onChange, }: SwitchProps): import('react').JSX.Element;
1
+ import { SwitchHandle, SwitchProps } from '../types';
2
+ export declare const Switch: import('react').ForwardRefExoticComponent<SwitchProps & import('react').RefAttributes<SwitchHandle>>;