react-kui 3.1.2 → 3.2.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 (396) hide show
  1. package/README.zh-CN.md +3 -1
  2. package/ai/kui-components.json +912 -318
  3. package/es/_virtual/_rolldown/runtime.js +1 -1
  4. package/es/affix/index.js +1 -1
  5. package/es/alert/index.js +11 -4
  6. package/es/anchor/anchor-context.js +1 -1
  7. package/es/anchor/anchor-link.js +1 -1
  8. package/es/anchor/anchor.js +1 -1
  9. package/es/auto-complete/index.js +371 -347
  10. package/es/avatar/avatar-group-context.js +1 -1
  11. package/es/avatar/avatar-group.js +1 -1
  12. package/es/avatar/avatar.js +1 -1
  13. package/es/back-top/index.js +1 -1
  14. package/es/badge/index.js +10 -8
  15. package/es/base/teleport.js +1 -1
  16. package/es/base/transition-props.js +1 -1
  17. package/es/base/transition.js +1 -1
  18. package/es/breadcrumb/breadcrumb-context.js +1 -1
  19. package/es/breadcrumb/breadcrumb-item.js +1 -1
  20. package/es/breadcrumb/breadcrumb.js +1 -1
  21. package/es/button/button-group-context.js +1 -1
  22. package/es/button/button-group.js +1 -1
  23. package/es/button/button.js +13 -6
  24. package/es/calendar/index.js +20 -6
  25. package/es/card/index.js +11 -4
  26. package/es/carousel/carousel-context.js +1 -1
  27. package/es/carousel/carousel-item.js +1 -1
  28. package/es/carousel/carousel.js +1 -1
  29. package/es/carousel/drag.js +1 -1
  30. package/es/cascader/index.js +13 -10
  31. package/es/check-card/check-card-group.js +3 -3
  32. package/es/check-card/check-card.js +155 -141
  33. package/es/check-card/context.js +1 -1
  34. package/es/checkbox/checkbox-group-context.js +1 -1
  35. package/es/checkbox/checkbox-group.js +3 -3
  36. package/es/checkbox/checkbox.js +64 -244
  37. package/es/checkbox/index.js +1 -1
  38. package/es/collapse/collapse-panel.js +1 -1
  39. package/es/collapse/collapse.js +96 -82
  40. package/es/color-picker/alpha.js +1 -1
  41. package/es/color-picker/hue.js +1 -1
  42. package/es/color-picker/index.js +7 -7
  43. package/es/color-picker/mode.js +2 -2
  44. package/es/color-picker/paint.js +1 -1
  45. package/es/color-picker/presets.js +1 -1
  46. package/es/components.js +4 -4
  47. package/es/config/config-context.js +16 -3
  48. package/es/config/context.js +29 -2
  49. package/es/config/index.js +31 -12
  50. package/es/config/popup-host.js +106 -0
  51. package/es/config/size-context.js +1 -1
  52. package/es/config/use-config-appearance.js +62 -2
  53. package/es/const/var.js +6 -2
  54. package/es/date-picker/index.js +404 -885
  55. package/es/descriptions/descriptions-item.js +1 -1
  56. package/es/descriptions/descriptions.js +1 -1
  57. package/es/divider/index.js +1 -1
  58. package/es/drawer/index.js +328 -240
  59. package/es/dropdown/dropdown-button.js +69 -51
  60. package/es/dropdown/dropdown-context.js +1 -1
  61. package/es/dropdown/dropdown.js +137 -93
  62. package/es/dropdown/trigger.js +85 -33
  63. package/es/empty/index.js +3 -4
  64. package/es/feature-card/index.js +15 -4
  65. package/es/feedback-panel/index.js +95 -81
  66. package/es/flame-wrap/index.js +116 -109
  67. package/es/flame-wrap/types.js +54 -6
  68. package/es/flex/index.js +1 -1
  69. package/es/form/field-context.js +16 -2
  70. package/es/form/form-context.js +1 -1
  71. package/es/form/form-item.js +7 -6
  72. package/es/form/form.js +1 -1
  73. package/es/form/utils.js +1 -1
  74. package/es/grid/grid-item.js +1 -1
  75. package/es/grid/grid.js +1 -1
  76. package/es/grid/useBreakpoint.js +1 -1
  77. package/es/icon/index.js +1 -1
  78. package/es/image/group.js +1 -1
  79. package/es/image/image-group-context.js +1 -1
  80. package/es/image/image.js +137 -123
  81. package/es/image/instance.js +1 -1
  82. package/es/image/preview.js +1 -1
  83. package/es/image/utils.js +1 -1
  84. package/es/index.js +3 -3
  85. package/es/input/index.js +3 -3
  86. package/es/input/input-base.js +7 -7
  87. package/es/input/input-box.js +2 -2
  88. package/es/input/input-group.js +43 -127
  89. package/es/input/input.js +1 -1
  90. package/es/input/textarea.js +28 -114
  91. package/es/input-number/index.js +7 -5
  92. package/es/input-otp/index.js +5 -5
  93. package/es/input-tag/index.js +5 -5
  94. package/es/kanban/index.js +79 -63
  95. package/es/layout/index.js +1 -1
  96. package/es/layout/layout-context.js +1 -1
  97. package/es/list-panel/index.js +96 -83
  98. package/es/loading/index.js +1 -1
  99. package/es/loading/loading-bar.js +1 -1
  100. package/es/locale/de.js +10 -2
  101. package/es/locale/el.js +10 -2
  102. package/es/locale/en.js +10 -2
  103. package/es/locale/fr.js +10 -2
  104. package/es/locale/it.js +10 -2
  105. package/es/locale/ja.js +10 -2
  106. package/es/locale/ko.js +10 -2
  107. package/es/locale/ru.js +10 -2
  108. package/es/locale/th.js +10 -2
  109. package/es/locale/uk.js +10 -2
  110. package/es/locale/vi.js +10 -2
  111. package/es/locale/zh-CN.js +10 -2
  112. package/es/locale/zh-TW.js +10 -2
  113. package/es/mentions/index.js +291 -286
  114. package/es/menu/menu-context.js +1 -1
  115. package/es/menu/menu-divider.js +1 -1
  116. package/es/menu/menu-group.js +1 -1
  117. package/es/menu/menu-item.js +1 -1
  118. package/es/menu/menu-keyboard.js +41 -2
  119. package/es/menu/menu.js +268 -222
  120. package/es/menu/recursive-menu.js +1 -1
  121. package/es/menu/sub-menu.js +81 -23
  122. package/es/message/index.js +1 -1
  123. package/es/modal/api.js +46 -12
  124. package/es/modal/modal.js +441 -345
  125. package/es/modal/toast.js +177 -64
  126. package/es/node_modules/.pnpm/kui-icons@5.0.0/node_modules/kui-icons/dist/kui-icons.esm.js +1 -1
  127. package/es/notice/container.js +1 -1
  128. package/es/notice/content.js +1 -1
  129. package/es/notice/index.js +1 -1
  130. package/es/notice/instance.js +1 -1
  131. package/es/page/index.js +13 -8
  132. package/es/page/responsive.js +1 -1
  133. package/es/page-header/index.js +1 -1
  134. package/es/popconfirm/index.js +36 -35
  135. package/es/poptip/index.js +47 -45
  136. package/es/popup/index.js +5 -2
  137. package/es/popup/layers.js +11 -2
  138. package/es/progress/index.js +1 -1
  139. package/es/qrcode/index.js +13 -7
  140. package/es/radio/radio-button.js +51 -44
  141. package/es/radio/radio-group-context.js +1 -1
  142. package/es/radio/radio-group.js +49 -52
  143. package/es/radio/radio.js +46 -197
  144. package/es/rate/index.js +1 -1
  145. package/es/rate/star.js +1 -1
  146. package/es/result/index.js +1 -1
  147. package/es/ripple/index.js +104 -97
  148. package/es/ripple/types.js +71 -18
  149. package/es/row-col/col.js +1 -1
  150. package/es/row-col/row.js +1 -1
  151. package/es/segmented/index.js +3 -3
  152. package/es/select/option.js +1 -1
  153. package/es/select/select.js +29 -29
  154. package/es/skeleton/skeleton-avatar.js +1 -1
  155. package/es/skeleton/skeleton-button.js +1 -1
  156. package/es/skeleton/skeleton-image.js +1 -1
  157. package/es/skeleton/skeleton-text.js +1 -1
  158. package/es/skeleton/skeleton.js +1 -1
  159. package/es/skeleton/use-skeleton-loading.js +1 -1
  160. package/es/slider/index.js +1 -1
  161. package/es/slider/thumb.js +1 -1
  162. package/es/space/index.js +1 -1
  163. package/es/spin/index.js +1 -1
  164. package/es/splitter/splitter-panel.js +1 -1
  165. package/es/splitter/splitter.js +1 -1
  166. package/es/stat-card/countup.js +2 -2
  167. package/es/stat-card/rollup.js +1 -1
  168. package/es/stat-card/stat-card.js +16 -7
  169. package/es/stat-card/stat-number.js +4 -3
  170. package/es/stat-card/utils/countup.js +1 -1
  171. package/es/stat-card/utils/odometer.js +1 -1
  172. package/es/stat-card/utils/stat-item-key.js +22 -0
  173. package/es/steps/index.js +1 -1
  174. package/es/switch/index.js +3 -3
  175. package/es/table/column-setting.js +104 -115
  176. package/es/table/index.js +544 -206
  177. package/es/table/utils.js +141 -3
  178. package/es/tabs/tab-panel.js +1 -1
  179. package/es/tabs/tabs.js +1 -1
  180. package/es/tag/index.js +12 -5
  181. package/es/time-line/timeline-item.js +1 -1
  182. package/es/time-line/timeline.js +1 -1
  183. package/es/tooltip/index.js +114 -94
  184. package/es/tour/index.js +1 -1
  185. package/es/transfer/index.js +190 -172
  186. package/es/tree/index.js +55 -44
  187. package/es/tree/utils.js +1 -1
  188. package/es/tree-select/index.js +259 -781
  189. package/es/typography/index.js +1 -1
  190. package/es/upload/file-list.js +1 -1
  191. package/es/upload/index.js +5 -6
  192. package/es/upload/picture-sort.js +1 -1
  193. package/es/upload/selector.js +1 -1
  194. package/es/utils/checked.js +1 -1
  195. package/es/utils/color.js +25 -2
  196. package/es/utils/css.js +19 -0
  197. package/es/utils/focus.js +63 -0
  198. package/es/utils/number.js +1 -1
  199. package/es/utils/overlay-order.js +18 -0
  200. package/es/utils/overlay-stack.js +33 -0
  201. package/es/utils/placement.js +1 -1
  202. package/es/utils/popup.js +1 -1
  203. package/es/utils/promise.js +18 -0
  204. package/es/utils/react-node.js +55 -30
  205. package/es/utils/selection-tags.js +6 -4
  206. package/es/utils/share.js +5 -2
  207. package/es/utils/theme.js +1 -1
  208. package/es/utils/transition.js +1 -1
  209. package/es/utils/use-value.js +1 -1
  210. package/es/virtual-list/index.js +1 -1
  211. package/es/virtual-list/range.js +3 -2
  212. package/es/watermark/index.js +1 -1
  213. package/lib/index.cjs +2 -2
  214. package/lib/locale/de.cjs +2 -2
  215. package/lib/locale/el.cjs +2 -2
  216. package/lib/locale/en.cjs +2 -2
  217. package/lib/locale/fr.cjs +2 -2
  218. package/lib/locale/it.cjs +2 -2
  219. package/lib/locale/ja.cjs +2 -2
  220. package/lib/locale/ko.cjs +2 -2
  221. package/lib/locale/ru.cjs +2 -2
  222. package/lib/locale/th.cjs +2 -2
  223. package/lib/locale/uk.cjs +2 -2
  224. package/lib/locale/vi.cjs +2 -2
  225. package/lib/locale/zh-CN.cjs +2 -2
  226. package/lib/locale/zh-TW.cjs +2 -2
  227. package/package.json +4 -3
  228. package/readme.md +3 -1
  229. package/style/base.css +2 -2
  230. package/style/components.css +2 -2
  231. package/style/index.css +2 -2
  232. package/style/theme.css +2 -2
  233. package/types/alert/index.d.cts +2 -2
  234. package/types/alert/index.d.ts +2 -2
  235. package/types/auto-complete/index.d.cts +7 -1
  236. package/types/auto-complete/index.d.ts +7 -1
  237. package/types/badge/index.d.cts +2 -1
  238. package/types/badge/index.d.ts +2 -1
  239. package/types/button/button.d.cts +2 -2
  240. package/types/button/button.d.ts +2 -2
  241. package/types/card/index.d.cts +3 -3
  242. package/types/card/index.d.ts +3 -3
  243. package/types/cascader/index.d.cts +1 -1
  244. package/types/cascader/index.d.ts +1 -1
  245. package/types/cascader/types.d.cts +2 -0
  246. package/types/cascader/types.d.ts +2 -0
  247. package/types/check-card/context.d.cts +4 -3
  248. package/types/check-card/context.d.ts +4 -3
  249. package/types/check-card/index.d.cts +1 -1
  250. package/types/check-card/index.d.ts +1 -1
  251. package/types/check-card/types.d.cts +3 -4
  252. package/types/check-card/types.d.ts +3 -4
  253. package/types/checkbox/checkbox-group.d.cts +2 -2
  254. package/types/checkbox/checkbox-group.d.ts +2 -2
  255. package/types/checkbox/checkbox.d.cts +2 -2
  256. package/types/checkbox/checkbox.d.ts +2 -2
  257. package/types/collapse/collapse.d.cts +3 -3
  258. package/types/collapse/collapse.d.ts +3 -3
  259. package/types/color-picker/index.d.cts +3 -1
  260. package/types/color-picker/index.d.ts +3 -1
  261. package/types/components.d.cts +2 -2
  262. package/types/components.d.ts +2 -2
  263. package/types/config/config-context.d.cts +15 -2
  264. package/types/config/config-context.d.ts +15 -2
  265. package/types/config/context.d.cts +6 -0
  266. package/types/config/context.d.ts +6 -0
  267. package/types/config/popup-host.d.cts +16 -0
  268. package/types/config/popup-host.d.ts +16 -0
  269. package/types/config/use-config-appearance.d.cts +41 -2
  270. package/types/config/use-config-appearance.d.ts +41 -2
  271. package/types/const/types.d.cts +30 -1
  272. package/types/const/types.d.ts +30 -1
  273. package/types/const/var.d.cts +6 -1
  274. package/types/const/var.d.ts +6 -1
  275. package/types/date-picker/index.d.cts +3 -1
  276. package/types/date-picker/index.d.ts +3 -1
  277. package/types/descriptions/descriptions.d.cts +2 -2
  278. package/types/descriptions/descriptions.d.ts +2 -2
  279. package/types/drawer/index.d.cts +1 -0
  280. package/types/drawer/index.d.ts +1 -0
  281. package/types/dropdown/dropdown-button.d.cts +5 -2
  282. package/types/dropdown/dropdown-button.d.ts +5 -2
  283. package/types/dropdown/dropdown-context.d.cts +6 -0
  284. package/types/dropdown/dropdown-context.d.ts +6 -0
  285. package/types/dropdown/dropdown.d.cts +2 -0
  286. package/types/dropdown/dropdown.d.ts +2 -0
  287. package/types/feature-card/index.d.cts +3 -3
  288. package/types/feature-card/index.d.ts +3 -3
  289. package/types/feedback-panel/index.d.cts +3 -3
  290. package/types/feedback-panel/index.d.ts +3 -3
  291. package/types/flame-wrap/types.d.cts +18 -0
  292. package/types/flame-wrap/types.d.ts +18 -0
  293. package/types/form/field-context.d.cts +2 -0
  294. package/types/form/field-context.d.ts +2 -0
  295. package/types/image/image.d.cts +2 -2
  296. package/types/image/image.d.ts +2 -2
  297. package/types/input/input-group.d.cts +2 -2
  298. package/types/input/input-group.d.ts +2 -2
  299. package/types/input-number/index.d.cts +2 -0
  300. package/types/input-number/index.d.ts +2 -0
  301. package/types/kanban/index.d.cts +3 -2
  302. package/types/kanban/index.d.ts +3 -2
  303. package/types/list-panel/index.d.cts +3 -3
  304. package/types/list-panel/index.d.ts +3 -3
  305. package/types/locale/de.d.cts +6 -0
  306. package/types/locale/de.d.ts +6 -0
  307. package/types/locale/el.d.cts +6 -0
  308. package/types/locale/el.d.ts +6 -0
  309. package/types/locale/en.d.cts +6 -0
  310. package/types/locale/en.d.ts +6 -0
  311. package/types/locale/fr.d.cts +6 -0
  312. package/types/locale/fr.d.ts +6 -0
  313. package/types/locale/it.d.cts +6 -0
  314. package/types/locale/it.d.ts +6 -0
  315. package/types/locale/ja.d.cts +6 -0
  316. package/types/locale/ja.d.ts +6 -0
  317. package/types/locale/ko.d.cts +6 -0
  318. package/types/locale/ko.d.ts +6 -0
  319. package/types/locale/ru.d.cts +6 -0
  320. package/types/locale/ru.d.ts +6 -0
  321. package/types/locale/th.d.cts +6 -0
  322. package/types/locale/th.d.ts +6 -0
  323. package/types/locale/uk.d.cts +6 -0
  324. package/types/locale/uk.d.ts +6 -0
  325. package/types/locale/vi.d.cts +6 -0
  326. package/types/locale/vi.d.ts +6 -0
  327. package/types/locale/zh-CN.d.cts +6 -0
  328. package/types/locale/zh-CN.d.ts +6 -0
  329. package/types/locale/zh-TW.d.cts +6 -0
  330. package/types/locale/zh-TW.d.ts +6 -0
  331. package/types/mentions/index.d.cts +2 -0
  332. package/types/mentions/index.d.ts +2 -0
  333. package/types/menu/menu-keyboard.d.cts +23 -0
  334. package/types/menu/menu-keyboard.d.ts +23 -0
  335. package/types/modal/api.d.cts +6 -1
  336. package/types/modal/api.d.ts +6 -1
  337. package/types/modal/modal.d.cts +1 -0
  338. package/types/modal/modal.d.ts +1 -0
  339. package/types/modal/toast.d.cts +8 -2
  340. package/types/modal/toast.d.ts +8 -2
  341. package/types/page/index.d.cts +2 -2
  342. package/types/page/index.d.ts +2 -2
  343. package/types/popconfirm/index.d.cts +2 -0
  344. package/types/popconfirm/index.d.ts +2 -0
  345. package/types/poptip/index.d.cts +2 -0
  346. package/types/poptip/index.d.ts +2 -0
  347. package/types/popup/layers.d.cts +2 -0
  348. package/types/popup/layers.d.ts +2 -0
  349. package/types/qrcode/index.d.cts +2 -2
  350. package/types/qrcode/index.d.ts +2 -2
  351. package/types/radio/radio-button.d.cts +2 -2
  352. package/types/radio/radio-button.d.ts +2 -2
  353. package/types/radio/radio-group.d.cts +2 -2
  354. package/types/radio/radio-group.d.ts +2 -2
  355. package/types/radio/radio.d.cts +2 -2
  356. package/types/radio/radio.d.ts +2 -2
  357. package/types/ripple/types.d.cts +18 -0
  358. package/types/ripple/types.d.ts +18 -0
  359. package/types/select/select.d.cts +2 -0
  360. package/types/select/select.d.ts +2 -0
  361. package/types/stat-card/stat-card.d.cts +3 -3
  362. package/types/stat-card/stat-card.d.ts +3 -3
  363. package/types/stat-card/utils/stat-item-key.d.cts +11 -0
  364. package/types/stat-card/utils/stat-item-key.d.ts +11 -0
  365. package/types/table/column-setting.d.cts +4 -4
  366. package/types/table/column-setting.d.ts +4 -4
  367. package/types/table/index.d.cts +2 -2
  368. package/types/table/index.d.ts +2 -2
  369. package/types/table/types.d.cts +21 -2
  370. package/types/table/types.d.ts +21 -2
  371. package/types/table/utils.d.cts +75 -0
  372. package/types/table/utils.d.ts +75 -0
  373. package/types/tag/index.d.cts +2 -2
  374. package/types/tag/index.d.ts +2 -2
  375. package/types/tooltip/index.d.cts +2 -0
  376. package/types/tooltip/index.d.ts +2 -0
  377. package/types/transfer/index.d.cts +3 -2
  378. package/types/transfer/index.d.ts +3 -2
  379. package/types/tree-select/index.d.cts +3 -1
  380. package/types/tree-select/index.d.ts +3 -1
  381. package/types/utils/checked.d.cts +1 -1
  382. package/types/utils/checked.d.ts +1 -1
  383. package/types/utils/color.d.cts +13 -0
  384. package/types/utils/color.d.ts +13 -0
  385. package/types/utils/css.d.cts +2 -0
  386. package/types/utils/css.d.ts +2 -0
  387. package/types/utils/focus.d.cts +5 -0
  388. package/types/utils/focus.d.ts +5 -0
  389. package/types/utils/overlay-order.d.cts +6 -0
  390. package/types/utils/overlay-order.d.ts +6 -0
  391. package/types/utils/overlay-stack.d.cts +13 -0
  392. package/types/utils/overlay-stack.d.ts +13 -0
  393. package/types/utils/promise.d.cts +5 -0
  394. package/types/utils/promise.d.ts +5 -0
  395. package/types/utils/react-node.d.cts +10 -0
  396. package/types/utils/react-node.d.ts +10 -0
package/style/theme.css CHANGED
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * react-kui v3.1.2
2
+ * react-kui v3.2.0
3
3
  * Copyright 2017-present, kui-react.
4
4
  * All rights reserved.
5
5
  * Homepage: https://react.k-ui.cn
6
6
  * Author: Qiu / https://chuchur.com
7
7
  */
8
8
 
9
- :root{--kui-border-radius:6px;--kui-border-radius-lg:8px;--kui-border-radius-card:10px;--kui-shape-circle:9999px;--kui-shape-square:2px;--kui-control-height-sm:24px;--kui-control-height:32px;--kui-control-height-lg:40px;--kui-font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--kui-font-size-sm:12px;--kui-font-size:14px;--kui-font-size-lg:16px;--kui-line-height:1.571;--kui-line-height-heading:1.4;--kui-spacing-1:4px;--kui-spacing-2:8px;--kui-spacing-3:12px;--kui-spacing-4:16px;--kui-spacing-5:20px;--kui-spacing-6:24px;--kui-padding-block-sm:2px;--kui-padding-block:6px;--kui-padding-block-lg:6px;--kui-padding-inline-sm:6px;--kui-padding-inline:8px;--kui-padding-inline-lg:10px;--kui-padding-tag-box-inline-sm:2px;--kui-padding-tag-box-inline:4px;--kui-padding-tag-box-inline-lg:6px;--kui-motion-duration-fast:.15s;--kui-motion-duration:.2s;--kui-motion-duration-slow:.3s;--kui-motion-easing:ease-in-out;--kui-focus-ring-width:2px;--kui-z-index-popup:1000;--kui-z-index-overlay:1002;--kui-z-index-message:1010;--kui-disabled-opacity:.7;--kui-theme-fill-border:transparent;--kui-theme-outline-bg:transparent;--kui-theme-plain-bg:transparent;--kui-theme-plain-border:transparent;--kui-color-primary:#54a9ff;--kui-color-success:#00bb5d;--kui-color-warning:#ffae43;--kui-color-danger:#fc725a;--kui-color-pink:#ff738c;--kui-color-red:#ff1a1a;--kui-color-yellow:#cc0;--kui-color-orange:orange;--kui-color-cyan:#0cc;--kui-color-violet:violet;--kui-color-green:#00cd00;--kui-color-blue:#0080ff;--kui-color-purple:#cd00cc;--kui-color-brown:#d26815;--kui-color-teal:teal;--kui-color-magenta:magenta;--kui-color-olive:olive;--kui-color-volcano:#ff4200;--kui-color-gold:#b39700;--kui-color-lime:#00b300;--kui-color-gray:gray;--kui-color-gray-1:#fafafa;--kui-color-gray-2:#f5f5f5;--kui-color-gray-3:#eee;--kui-color-gray-4:#d9d9d9;--kui-color-gray-5:#bfbfbf;--kui-color-gray-6:#8c8c8c;--kui-color-gray-7:#595959;--kui-color-gray-8:#262626;--kui-color-gray-9:#141414;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--kui-color-text:#262626;--kui-color-text-disabled:#8c8c8c;--kui-color-text-title:#141414;--kui-color-text-description:#8c8c8c;--kui-color-text-placeholder:#8c8c8c;--kui-color-text-on-solid:#fff;--kui-color-control-thumb:#fff;--kui-color-control-thumb-text:#141414;--kui-color-checkerboard:#cdcdcd;--kui-color-icon:#939393c4;--kui-color-icon-hover:#717171c4;--kui-color-icon-active:#646464c4;--kui-color-border:#e9e9e9;--kui-color-pop-border:#e7e7e7;--kui-color-border-disabled:#d9d9d9;--kui-color-border-split:#87878730;--kui-color-reverse:#1f1f1f;--kui-color-reverse-text:#bfbfbf;--kui-color-bg:#fff;--kui-color-bg-layout:#f5f5f5;--kui-color-bg-container:#fff;--kui-pop-shadow:0 2px 8px #00000026;--kui-color-bg-pop:#fff;--kui-color-bg-pop-dark:#262626;--kui-color-skeleton:#0000001b;--kui-color-skeleton-high:#ababab1b;--kui-color-bg-component:#f5f5f5;--kui-color-bg-component-hover:#eee;--kui-color-bg-component-active:#e7e7e7;--kui-color-bg-component-disabled:#f5f5f5;--kui-color-bg-component-overlay:#353a411a;--kui-color-bg-elevated:#fff;--kui-color-scrollbar-thumb:#1e1e1e34;--kui-color-scrollbar-thumb-hover:#0000001a;--kui-color-item-hover:#f5f5f5;--kui-color-item-active:#eee;--kui-color-item-disabled:#f5f5f5;--kui-color-shadow:#00000042;--kui-color-mask:#0009;--kui-color-spin-mask:#ffffffe6;--kui-color-border-shadow:0 4px 6px #0000001a, 0 0 1px #0000004d;--kui-color-bg-1:#fafafa;--kui-color-bg-2:#f5f5f5;--kui-color-bg-3:#eee;--kui-color-bg-4:#d9d9d9;--kui-color-bg-5:#bfbfbf;--kui-color-bg-6:#8c8c8c;--kui-color-bg-7:#595959;--kui-color-bg-8:#262626;--kui-color-bg-9:#141414;--kui-color-text-secondary:var(--kui-color-text-description);--kui-color-placeholder:var(--kui-color-text-placeholder);--kui-color-item-disable:var(--kui-color-item-disabled)}[theme-mode=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--kui-color-text:#f5f5f5;--kui-color-text-disabled:#595959;--kui-color-text-title:#f5f5f5;--kui-color-text-description:#bfbfbf;--kui-color-text-placeholder:#8c8c8c;--kui-color-text-on-solid:#fff;--kui-color-control-thumb:#fff;--kui-color-control-thumb-text:#141414;--kui-color-checkerboard:#666;--kui-color-icon:#939393c4;--kui-color-icon-hover:#9d9d9dc4;--kui-color-icon-active:#b9b9b9c4;--kui-color-reverse-text:#595959;--kui-color-reverse:#f5f5f5;--kui-color-bg:#141414;--kui-color-bg-layout:#1f1f1f;--kui-color-bg-container:#1f1f1f;--kui-color-bg-pop:#262626;--kui-color-skeleton:#54545433;--kui-color-skeleton-high:#51515154;--kui-color-bg-component:#262626;--kui-color-bg-component-hover:#303030;--kui-color-bg-component-active:#383838;--kui-color-bg-component-disabled:#1f1f1f;--kui-color-bg-component-overlay:#585d643f;--kui-color-bg-elevated:#262626;--kui-color-bg-pop-dark:#262626;--kui-color-scrollbar-thumb:#75757577;--kui-color-scrollbar-thumb-hover:#0000001a;--kui-color-border:#333;--kui-color-pop-border:#313131;--kui-color-border-disabled:#303030;--kui-color-border-split:#87878730;--kui-color-shadow:#0009;--kui-color-mask:#0009;--kui-color-spin-mask:#161616d5;--kui-pop-shadow:0 4px 16px #00000073;--kui-color-border-shadow:0 4px 6px #ffffff1a, 0 0 1px #ffffff4d;--kui-color-item-hover:#303030;--kui-color-item-active:#434343;--kui-color-item-disabled:#1f1f1f;--kui-color-bg-1:#0f0f0f;--kui-color-bg-2:#141414;--kui-color-bg-3:#1f1f1f;--kui-color-bg-4:#262626;--kui-color-bg-5:#303030;--kui-color-bg-6:#434343;--kui-color-bg-7:#595959;--kui-color-bg-8:#bfbfbf;--kui-color-bg-9:#f5f5f5;--kui-color-text-secondary:var(--kui-color-text-description);--kui-color-placeholder:var(--kui-color-text-placeholder);--kui-color-item-disable:var(--kui-color-item-disabled)}[theme-mode=light]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--kui-color-text:#262626;--kui-color-text-disabled:#8c8c8c;--kui-color-text-title:#141414;--kui-color-text-description:#8c8c8c;--kui-color-text-placeholder:#8c8c8c;--kui-color-text-on-solid:#fff;--kui-color-control-thumb:#fff;--kui-color-control-thumb-text:#141414;--kui-color-checkerboard:#cdcdcd;--kui-color-icon:#939393c4;--kui-color-icon-hover:#717171c4;--kui-color-icon-active:#646464c4;--kui-color-border:#e9e9e9;--kui-color-pop-border:#e7e7e7;--kui-color-border-disabled:#d9d9d9;--kui-color-border-split:#87878730;--kui-color-reverse:#1f1f1f;--kui-color-reverse-text:#bfbfbf;--kui-color-bg:#fff;--kui-color-bg-layout:#f5f5f5;--kui-color-bg-container:#fff;--kui-pop-shadow:0 2px 8px #00000026;--kui-color-bg-pop:#fff;--kui-color-bg-pop-dark:#262626;--kui-color-skeleton:#0000001b;--kui-color-skeleton-high:#ababab1b;--kui-color-bg-component:#f5f5f5;--kui-color-bg-component-hover:#eee;--kui-color-bg-component-active:#e7e7e7;--kui-color-bg-component-disabled:#f5f5f5;--kui-color-bg-component-overlay:#353a411a;--kui-color-bg-elevated:#fff;--kui-color-scrollbar-thumb:#1e1e1e34;--kui-color-scrollbar-thumb-hover:#0000001a;--kui-color-item-hover:#f5f5f5;--kui-color-item-active:#eee;--kui-color-item-disabled:#f5f5f5;--kui-color-shadow:#00000042;--kui-color-mask:#0009;--kui-color-spin-mask:#ffffffe6;--kui-color-border-shadow:0 4px 6px #0000001a, 0 0 1px #0000004d;--kui-color-bg-1:#fafafa;--kui-color-bg-2:#f5f5f5;--kui-color-bg-3:#eee;--kui-color-bg-4:#d9d9d9;--kui-color-bg-5:#bfbfbf;--kui-color-bg-6:#8c8c8c;--kui-color-bg-7:#595959;--kui-color-bg-8:#262626;--kui-color-bg-9:#141414;--kui-color-text-secondary:var(--kui-color-text-description);--kui-color-placeholder:var(--kui-color-text-placeholder);--kui-color-item-disable:var(--kui-color-item-disabled)}[shape-mode=square]{--kui-border-radius:2px;--kui-border-radius-lg:2px;--kui-border-radius-card:2px}
9
+ :root{--kui-border-radius:6px;--kui-border-radius-lg:8px;--kui-border-radius-card:10px;--kui-shape-circle:9999px;--kui-shape-square:2px;--kui-control-height-sm:24px;--kui-control-height:32px;--kui-control-height-lg:40px;--kui-font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--kui-font-size-sm:12px;--kui-font-size:14px;--kui-font-size-lg:16px;--kui-line-height:1.571;--kui-line-height-heading:1.4;--kui-spacing-1:4px;--kui-spacing-2:8px;--kui-spacing-3:12px;--kui-spacing-4:16px;--kui-spacing-5:20px;--kui-spacing-6:24px;--kui-padding-block-sm:2px;--kui-padding-block:6px;--kui-padding-block-lg:6px;--kui-padding-inline-sm:6px;--kui-padding-inline:8px;--kui-padding-inline-lg:10px;--kui-padding-tag-box-inline-sm:2px;--kui-padding-tag-box-inline:4px;--kui-padding-tag-box-inline-lg:6px;--kui-motion-duration-fast:.15s;--kui-motion-duration:.2s;--kui-motion-duration-slow:.3s;--kui-motion-easing:ease-in-out;--kui-focus-ring-width:2px;--kui-z-index-popup:1000;--kui-z-index-overlay:1002;--kui-z-index-message:1010;--kui-disabled-opacity:.7;--kui-theme-fill-border:transparent;--kui-theme-outline-bg:transparent;--kui-theme-plain-bg:transparent;--kui-theme-plain-border:transparent;--kui-color-primary:#54a9ff;--kui-color-success:#00bb5d;--kui-color-warning:#ffae43;--kui-color-danger:#fc725a;--kui-color-pink:#ff738c;--kui-color-red:#ff1a1a;--kui-color-yellow:#cc0;--kui-color-orange:orange;--kui-color-cyan:#0cc;--kui-color-violet:violet;--kui-color-green:#00cd00;--kui-color-blue:#0080ff;--kui-color-purple:#cd00cc;--kui-color-brown:#d26815;--kui-color-teal:teal;--kui-color-magenta:magenta;--kui-color-olive:olive;--kui-color-volcano:#ff4200;--kui-color-gold:#b39700;--kui-color-lime:#00b300;--kui-color-gray:gray;--kui-color-gray-1:#fafafa;--kui-color-gray-2:#f5f5f5;--kui-color-gray-3:#eee;--kui-color-gray-4:#d9d9d9;--kui-color-gray-5:#bfbfbf;--kui-color-gray-6:#8c8c8c;--kui-color-gray-7:#595959;--kui-color-gray-8:#262626;--kui-color-gray-9:#141414;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--kui-color-text:#262626;--kui-color-text-disabled:#8c8c8c;--kui-color-text-title:#141414;--kui-color-text-description:#8c8c8c;--kui-color-text-placeholder:#8c8c8c;--kui-theme-plain-hover:#2626261a;--kui-theme-plain-active:#26262629;--kui-color-text-on-solid:#fff;--kui-theme-solid-outline:#fff6;--kui-theme-solid-muted:#ffffffd9;--kui-theme-solid-placeholder:#ffffffbf;--kui-theme-solid-chip:#ffffff2e;--kui-theme-solid-ink-80:#fffc;--kui-theme-solid-ink-70:#ffffffb3;--kui-theme-solid-ink-45:#ffffff73;--kui-theme-solid-ink-30:#ffffff4d;--kui-theme-solid-ink-26:#ffffff42;--kui-theme-solid-ink-24:#ffffff3d;--kui-theme-solid-ink-14:#ffffff24;--kui-color-primary-text:#326599;--kui-color-danger-text:#974436;--kui-color-warning-text:#805722;--kui-color-red-text:#bf1414;--kui-color-orange-text:#805300;--kui-color-yellow-text:#660;--kui-color-olive-text:#660;--kui-color-green-text:#007100;--kui-color-teal-text:#006d6d;--kui-color-blue-text:#0060bf;--kui-color-volcano-text:#b32e00;--kui-color-violet-text:#834883;--kui-color-cyan-text:#007070;--kui-color-gold-text:#746200;--kui-color-lime-text:#007400;--kui-color-magenta-text:#a600a6;--kui-color-purple-text:#a400a3;--kui-color-pink-text:#994554;--kui-color-brown-text:#9e4e10;--kui-color-gray-text:#606060;--kui-color-control-thumb:#fff;--kui-color-control-thumb-text:#141414;--kui-color-checkerboard:#cdcdcd;--kui-color-icon:#939393c4;--kui-color-icon-hover:#717171c4;--kui-color-icon-active:#646464c4;--kui-color-border:#e9e9e9;--kui-color-pop-border:#e7e7e7;--kui-color-border-disabled:#d9d9d9;--kui-color-border-split:#87878730;--kui-color-reverse:#1f1f1f;--kui-color-reverse-text:#bfbfbf;--kui-color-bg:#fff;--kui-color-bg-layout:#f5f5f5;--kui-color-bg-container:#fff;--kui-pop-shadow:0 2px 8px #00000026;--kui-color-bg-pop:#fff;--kui-color-bg-pop-dark:#262626;--kui-color-skeleton:#0000001b;--kui-color-skeleton-high:#ababab1b;--kui-color-bg-component:#f5f5f5;--kui-color-bg-component-hover:#eee;--kui-color-bg-component-active:#e7e7e7;--kui-color-bg-component-disabled:#f5f5f5;--kui-color-bg-component-overlay:#353a411a;--kui-color-bg-elevated:#fff;--kui-color-row-hover:#f2f2f2;--kui-color-scrollbar-thumb:#1e1e1e34;--kui-color-scrollbar-thumb-hover:#1e1e1e59;--kui-color-item-hover:#f5f5f5;--kui-color-item-active:#eee;--kui-color-item-disabled:#f5f5f5;--kui-color-shadow:#00000042;--kui-color-mask:#0009;--kui-color-spin-mask:#ffffffe6;--kui-color-border-shadow:0 4px 6px #0000001a, 0 0 1px #0000004d;--kui-color-hover-shadow:#26262614;--kui-color-bg-1:#fafafa;--kui-color-bg-2:#f5f5f5;--kui-color-bg-3:#eee;--kui-color-bg-4:#d9d9d9;--kui-color-bg-5:#bfbfbf;--kui-color-bg-6:#8c8c8c;--kui-color-bg-7:#595959;--kui-color-bg-8:#262626;--kui-color-bg-9:#141414;--kui-color-text-secondary:var(--kui-color-text-description);--kui-color-placeholder:var(--kui-color-text-placeholder);--kui-color-item-disable:var(--kui-color-item-disabled)}[theme-mode=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--kui-color-text:#f5f5f5;--kui-color-text-disabled:#595959;--kui-color-text-title:#f5f5f5;--kui-color-text-description:#bfbfbf;--kui-color-text-placeholder:#8c8c8c;--kui-theme-plain-hover:#f5f5f51a;--kui-theme-plain-active:#f5f5f529;--kui-color-text-on-solid:#fff;--kui-theme-solid-outline:#fff6;--kui-theme-solid-muted:#ffffffd9;--kui-theme-solid-placeholder:#ffffffbf;--kui-theme-solid-chip:#ffffff2e;--kui-theme-solid-ink-80:#fffc;--kui-theme-solid-ink-70:#ffffffb3;--kui-theme-solid-ink-45:#ffffff73;--kui-theme-solid-ink-30:#ffffff4d;--kui-theme-solid-ink-26:#ffffff42;--kui-theme-solid-ink-24:#ffffff3d;--kui-theme-solid-ink-14:#ffffff24;--kui-color-primary-text:#54a9ff;--kui-color-danger-text:#fc806b;--kui-color-warning-text:#ffae43;--kui-color-red-text:#ff7676;--kui-color-orange-text:orange;--kui-color-yellow-text:#cc0;--kui-color-olive-text:#a6a64d;--kui-color-green-text:#00cd00;--kui-color-teal-text:#66b3b3;--kui-color-blue-text:#4da6ff;--kui-color-volcano-text:#ff7b4d;--kui-color-violet-text:violet;--kui-color-cyan-text:#0cc;--kui-color-gold-text:#bba119;--kui-color-lime-text:#19bb19;--kui-color-magenta-text:#ff59ff;--kui-color-purple-text:#e680e6;--kui-color-pink-text:#ff738c;--kui-color-brown-text:#e0955b;--kui-color-gray-text:#a6a6a6;--kui-color-control-thumb:#fff;--kui-color-control-thumb-text:#141414;--kui-color-checkerboard:#666;--kui-color-icon:#939393c4;--kui-color-icon-hover:#9d9d9dc4;--kui-color-icon-active:#b9b9b9c4;--kui-color-reverse-text:#595959;--kui-color-reverse:#f5f5f5;--kui-color-bg:#141414;--kui-color-bg-layout:#1f1f1f;--kui-color-bg-container:#1f1f1f;--kui-color-bg-pop:#262626;--kui-color-skeleton:#54545433;--kui-color-skeleton-high:#51515154;--kui-color-bg-component:#262626;--kui-color-bg-component-hover:#303030;--kui-color-bg-component-active:#383838;--kui-color-bg-component-disabled:#1f1f1f;--kui-color-bg-component-overlay:#585d643f;--kui-color-bg-elevated:#262626;--kui-color-row-hover:#2a2a2a;--kui-color-bg-pop-dark:#262626;--kui-color-scrollbar-thumb:#75757577;--kui-color-scrollbar-thumb-hover:#a0a0a09e;--kui-color-border:#333;--kui-color-pop-border:#313131;--kui-color-border-disabled:#303030;--kui-color-border-split:#87878730;--kui-color-shadow:#0009;--kui-color-mask:#0009;--kui-color-spin-mask:#161616d5;--kui-pop-shadow:0 4px 16px #00000073;--kui-color-border-shadow:0 4px 6px #ffffff1a, 0 0 1px #ffffff4d;--kui-color-hover-shadow:#f5f5f514;--kui-color-item-hover:#303030;--kui-color-item-active:#434343;--kui-color-item-disabled:#1f1f1f;--kui-color-bg-1:#0f0f0f;--kui-color-bg-2:#141414;--kui-color-bg-3:#1f1f1f;--kui-color-bg-4:#262626;--kui-color-bg-5:#303030;--kui-color-bg-6:#434343;--kui-color-bg-7:#595959;--kui-color-bg-8:#bfbfbf;--kui-color-bg-9:#f5f5f5;--kui-color-text-secondary:var(--kui-color-text-description);--kui-color-placeholder:var(--kui-color-text-placeholder);--kui-color-item-disable:var(--kui-color-item-disabled)}[theme-mode=light]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--kui-color-text:#262626;--kui-color-text-disabled:#8c8c8c;--kui-color-text-title:#141414;--kui-color-text-description:#8c8c8c;--kui-color-text-placeholder:#8c8c8c;--kui-theme-plain-hover:#2626261a;--kui-theme-plain-active:#26262629;--kui-color-text-on-solid:#fff;--kui-theme-solid-outline:#fff6;--kui-theme-solid-muted:#ffffffd9;--kui-theme-solid-placeholder:#ffffffbf;--kui-theme-solid-chip:#ffffff2e;--kui-theme-solid-ink-80:#fffc;--kui-theme-solid-ink-70:#ffffffb3;--kui-theme-solid-ink-45:#ffffff73;--kui-theme-solid-ink-30:#ffffff4d;--kui-theme-solid-ink-26:#ffffff42;--kui-theme-solid-ink-24:#ffffff3d;--kui-theme-solid-ink-14:#ffffff24;--kui-color-primary-text:#326599;--kui-color-danger-text:#974436;--kui-color-warning-text:#805722;--kui-color-red-text:#bf1414;--kui-color-orange-text:#805300;--kui-color-yellow-text:#660;--kui-color-olive-text:#660;--kui-color-green-text:#007100;--kui-color-teal-text:#006d6d;--kui-color-blue-text:#0060bf;--kui-color-volcano-text:#b32e00;--kui-color-violet-text:#834883;--kui-color-cyan-text:#007070;--kui-color-gold-text:#746200;--kui-color-lime-text:#007400;--kui-color-magenta-text:#a600a6;--kui-color-purple-text:#a400a3;--kui-color-pink-text:#994554;--kui-color-brown-text:#9e4e10;--kui-color-gray-text:#606060;--kui-color-control-thumb:#fff;--kui-color-control-thumb-text:#141414;--kui-color-checkerboard:#cdcdcd;--kui-color-icon:#939393c4;--kui-color-icon-hover:#717171c4;--kui-color-icon-active:#646464c4;--kui-color-border:#e9e9e9;--kui-color-pop-border:#e7e7e7;--kui-color-border-disabled:#d9d9d9;--kui-color-border-split:#87878730;--kui-color-reverse:#1f1f1f;--kui-color-reverse-text:#bfbfbf;--kui-color-bg:#fff;--kui-color-bg-layout:#f5f5f5;--kui-color-bg-container:#fff;--kui-pop-shadow:0 2px 8px #00000026;--kui-color-bg-pop:#fff;--kui-color-bg-pop-dark:#262626;--kui-color-skeleton:#0000001b;--kui-color-skeleton-high:#ababab1b;--kui-color-bg-component:#f5f5f5;--kui-color-bg-component-hover:#eee;--kui-color-bg-component-active:#e7e7e7;--kui-color-bg-component-disabled:#f5f5f5;--kui-color-bg-component-overlay:#353a411a;--kui-color-bg-elevated:#fff;--kui-color-row-hover:#f2f2f2;--kui-color-scrollbar-thumb:#1e1e1e34;--kui-color-scrollbar-thumb-hover:#1e1e1e59;--kui-color-item-hover:#f5f5f5;--kui-color-item-active:#eee;--kui-color-item-disabled:#f5f5f5;--kui-color-shadow:#00000042;--kui-color-mask:#0009;--kui-color-spin-mask:#ffffffe6;--kui-color-border-shadow:0 4px 6px #0000001a, 0 0 1px #0000004d;--kui-color-hover-shadow:#26262614;--kui-color-bg-1:#fafafa;--kui-color-bg-2:#f5f5f5;--kui-color-bg-3:#eee;--kui-color-bg-4:#d9d9d9;--kui-color-bg-5:#bfbfbf;--kui-color-bg-6:#8c8c8c;--kui-color-bg-7:#595959;--kui-color-bg-8:#262626;--kui-color-bg-9:#141414;--kui-color-text-secondary:var(--kui-color-text-description);--kui-color-placeholder:var(--kui-color-text-placeholder);--kui-color-item-disable:var(--kui-color-item-disabled)}[shape-mode=square]{--kui-border-radius:2px;--kui-border-radius-lg:2px;--kui-border-radius-card:2px}
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { IconType } from '../icon/index.cjs';
3
- import { ShapeType, ThemeType } from '../const/types.cjs';
3
+ import { ShapeType, SurfaceThemeType } from '../const/types.cjs';
4
4
  export interface AlertProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "defaultValue" | "defaultChecked"> {
5
5
  type?: "info" | "success" | "warning" | "error";
6
6
  closable?: boolean;
@@ -9,7 +9,7 @@ export interface AlertProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "
9
9
  message?: React.ReactNode;
10
10
  description?: React.ReactNode;
11
11
  bordered?: boolean;
12
- theme?: ThemeType;
12
+ theme?: SurfaceThemeType;
13
13
  shape?: ShapeType;
14
14
  onClose?: (e: React.MouseEvent<HTMLElement>) => void;
15
15
  onAfterClose?: () => void;
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { IconType } from '../icon/index.js';
3
- import { ShapeType, ThemeType } from '../const/types.js';
3
+ import { ShapeType, SurfaceThemeType } from '../const/types.js';
4
4
  export interface AlertProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "defaultValue" | "defaultChecked"> {
5
5
  type?: "info" | "success" | "warning" | "error";
6
6
  closable?: boolean;
@@ -9,7 +9,7 @@ export interface AlertProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "
9
9
  message?: React.ReactNode;
10
10
  description?: React.ReactNode;
11
11
  bordered?: boolean;
12
- theme?: ThemeType;
12
+ theme?: SurfaceThemeType;
13
13
  shape?: ShapeType;
14
14
  onClose?: (e: React.MouseEvent<HTMLElement>) => void;
15
15
  onAfterClose?: () => void;
@@ -5,7 +5,7 @@ export interface AutoCompleteOption {
5
5
  label?: React.ReactNode;
6
6
  disabled?: boolean;
7
7
  }
8
- export interface AutoCompleteProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "value" | "defaultValue" | "onChange" | "onSelect" | "defaultChecked"> {
8
+ export interface AutoCompleteProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "prefix" | "value" | "defaultValue" | "onChange" | "onSelect" | "defaultChecked"> {
9
9
  value?: string;
10
10
  options?: Array<string | AutoCompleteOption>;
11
11
  open?: boolean;
@@ -13,10 +13,16 @@ export interface AutoCompleteProps extends Omit<React.InputHTMLAttributes<HTMLIn
13
13
  clearable?: boolean;
14
14
  loading?: boolean;
15
15
  loadingText?: string;
16
+ addonBefore?: React.ReactNode;
17
+ addonAfter?: React.ReactNode;
18
+ prefix?: React.ReactNode;
19
+ suffix?: React.ReactNode;
16
20
  size?: SizeType;
17
21
  shape?: ShapeType;
18
22
  theme?: ThemeType;
19
23
  filterOption?: boolean | ((input: string, option: AutoCompleteOption) => boolean);
24
+ /** 关闭后是否销毁面板内容。默认销毁(重开时重新挂载);设为 false 可保留面板内的表单状态,代价是每个打开过的实例留一份隐藏 DOM。 */
25
+ destroyOnClose?: boolean;
20
26
  onChange?: (value: string) => void;
21
27
  onClear?: () => void;
22
28
  onSearch?: (value: string) => void;
@@ -5,7 +5,7 @@ export interface AutoCompleteOption {
5
5
  label?: React.ReactNode;
6
6
  disabled?: boolean;
7
7
  }
8
- export interface AutoCompleteProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "value" | "defaultValue" | "onChange" | "onSelect" | "defaultChecked"> {
8
+ export interface AutoCompleteProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "prefix" | "value" | "defaultValue" | "onChange" | "onSelect" | "defaultChecked"> {
9
9
  value?: string;
10
10
  options?: Array<string | AutoCompleteOption>;
11
11
  open?: boolean;
@@ -13,10 +13,16 @@ export interface AutoCompleteProps extends Omit<React.InputHTMLAttributes<HTMLIn
13
13
  clearable?: boolean;
14
14
  loading?: boolean;
15
15
  loadingText?: string;
16
+ addonBefore?: React.ReactNode;
17
+ addonAfter?: React.ReactNode;
18
+ prefix?: React.ReactNode;
19
+ suffix?: React.ReactNode;
16
20
  size?: SizeType;
17
21
  shape?: ShapeType;
18
22
  theme?: ThemeType;
19
23
  filterOption?: boolean | ((input: string, option: AutoCompleteOption) => boolean);
24
+ /** 关闭后是否销毁面板内容。默认销毁(重开时重新挂载);设为 false 可保留面板内的表单状态,代价是每个打开过的实例留一份隐藏 DOM。 */
25
+ destroyOnClose?: boolean;
20
26
  onChange?: (value: string) => void;
21
27
  onClear?: () => void;
22
28
  onSearch?: (value: string) => void;
@@ -1,11 +1,12 @@
1
1
  import { default as React } from 'react';
2
+ import { ColorType } from '../const/types.cjs';
2
3
  export type BadgeStatusType = "default" | "success" | "error" | "warning";
3
4
  export interface BadgeProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "defaultValue" | "defaultChecked"> {
4
5
  count?: string | number;
5
6
  dot?: boolean;
6
7
  pill?: boolean;
7
8
  active?: boolean;
8
- color?: string;
9
+ color?: ColorType;
9
10
  status?: BadgeStatusType;
10
11
  text?: React.ReactNode;
11
12
  maxCount?: number;
@@ -1,11 +1,12 @@
1
1
  import { default as React } from 'react';
2
+ import { ColorType } from '../const/types.js';
2
3
  export type BadgeStatusType = "default" | "success" | "error" | "warning";
3
4
  export interface BadgeProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "defaultValue" | "defaultChecked"> {
4
5
  count?: string | number;
5
6
  dot?: boolean;
6
7
  pill?: boolean;
7
8
  active?: boolean;
8
- color?: string;
9
+ color?: ColorType;
9
10
  status?: BadgeStatusType;
10
11
  text?: React.ReactNode;
11
12
  maxCount?: number;
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { ButtonType, ShapeType, SizeType, ThemeType } from '../const/types.cjs';
2
+ import { ButtonType, ShapeType, SizeType, SurfaceThemeType } from '../const/types.cjs';
3
3
  import { IconType } from '../icon/index.cjs';
4
4
  export interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick" | "defaultValue" | "defaultChecked"> {
5
5
  htmlType?: "button" | "submit" | "reset";
@@ -10,7 +10,7 @@ export interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonE
10
10
  loading?: boolean;
11
11
  type?: ButtonType;
12
12
  disabled?: boolean;
13
- theme?: ThemeType;
13
+ theme?: SurfaceThemeType;
14
14
  shape?: ShapeType;
15
15
  href?: string;
16
16
  target?: string;
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { ButtonType, ShapeType, SizeType, ThemeType } from '../const/types.js';
2
+ import { ButtonType, ShapeType, SizeType, SurfaceThemeType } from '../const/types.js';
3
3
  import { IconType } from '../icon/index.js';
4
4
  export interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick" | "defaultValue" | "defaultChecked"> {
5
5
  htmlType?: "button" | "submit" | "reset";
@@ -10,7 +10,7 @@ export interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonE
10
10
  loading?: boolean;
11
11
  type?: ButtonType;
12
12
  disabled?: boolean;
13
- theme?: ThemeType;
13
+ theme?: SurfaceThemeType;
14
14
  shape?: ShapeType;
15
15
  href?: string;
16
16
  target?: string;
@@ -1,10 +1,10 @@
1
1
  import { default as React } from 'react';
2
2
  import { IconType } from '../icon/index.cjs';
3
- import { ShapeType, SizeType, ThemeType } from '../const/types.cjs';
3
+ import { SizeType, SurfaceShapeType, SurfaceThemeType } from '../const/types.cjs';
4
4
  export interface CardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title" | "defaultValue" | "defaultChecked"> {
5
5
  bordered?: boolean;
6
- theme?: ThemeType;
7
- shape?: ShapeType;
6
+ theme?: SurfaceThemeType;
7
+ shape?: SurfaceShapeType;
8
8
  size?: SizeType;
9
9
  title?: React.ReactNode;
10
10
  icon?: IconType[];
@@ -1,10 +1,10 @@
1
1
  import { default as React } from 'react';
2
2
  import { IconType } from '../icon/index.js';
3
- import { ShapeType, SizeType, ThemeType } from '../const/types.js';
3
+ import { SizeType, SurfaceShapeType, SurfaceThemeType } from '../const/types.js';
4
4
  export interface CardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title" | "defaultValue" | "defaultChecked"> {
5
5
  bordered?: boolean;
6
- theme?: ThemeType;
7
- shape?: ShapeType;
6
+ theme?: SurfaceThemeType;
7
+ shape?: SurfaceShapeType;
8
8
  size?: SizeType;
9
9
  title?: React.ReactNode;
10
10
  icon?: IconType[];
@@ -1,5 +1,5 @@
1
1
  import { CascaderProps } from './types.cjs';
2
- declare function Cascader({ value, open: openProp, options: optionsProp, theme: themeProp, bordered, shape: shapeProp, showArrow, placeholder, icon, arrowIcon, emptyText, loadData, disabled, readOnly, clearable, size: sizeProp, expandTrigger, showAllLevels, separator, placement, onChange, onExpandChange, onOpenChange, className, style, onClick, onKeyDown, ...rest }: CascaderProps): import("react").JSX.Element;
2
+ declare function Cascader({ value, open: openProp, options: optionsProp, theme: themeProp, bordered, shape: shapeProp, showArrow, placeholder, icon, arrowIcon, emptyText, loadData, disabled, readOnly, clearable, size: sizeProp, expandTrigger, showAllLevels, separator, placement, destroyOnClose, onChange, onExpandChange, onOpenChange, className, style, onClick, onKeyDown, ...rest }: CascaderProps): import("react").JSX.Element;
3
3
  declare const _default: typeof Cascader;
4
4
  export default _default;
5
5
  export type { CascaderLoadData, CascaderOption, CascaderProps, CascaderValue } from './types.cjs';
@@ -1,5 +1,5 @@
1
1
  import { CascaderProps } from './types.js';
2
- declare function Cascader({ value, open: openProp, options: optionsProp, theme: themeProp, bordered, shape: shapeProp, showArrow, placeholder, icon, arrowIcon, emptyText, loadData, disabled, readOnly, clearable, size: sizeProp, expandTrigger, showAllLevels, separator, placement, onChange, onExpandChange, onOpenChange, className, style, onClick, onKeyDown, ...rest }: CascaderProps): import("react").JSX.Element;
2
+ declare function Cascader({ value, open: openProp, options: optionsProp, theme: themeProp, bordered, shape: shapeProp, showArrow, placeholder, icon, arrowIcon, emptyText, loadData, disabled, readOnly, clearable, size: sizeProp, expandTrigger, showAllLevels, separator, placement, destroyOnClose, onChange, onExpandChange, onOpenChange, className, style, onClick, onKeyDown, ...rest }: CascaderProps): import("react").JSX.Element;
3
3
  declare const _default: typeof Cascader;
4
4
  export default _default;
5
5
  export type { CascaderLoadData, CascaderOption, CascaderProps, CascaderValue } from './types.js';
@@ -31,6 +31,8 @@ export interface CascaderProps extends Omit<HTMLAttributes<HTMLDivElement>, "onC
31
31
  showAllLevels?: boolean;
32
32
  separator?: string;
33
33
  placement?: DropPlacementsType;
34
+ /** 关闭后是否销毁面板内容。默认销毁(重开时重新挂载);设为 false 可保留面板内的表单状态,代价是每个打开过的实例留一份隐藏 DOM。 */
35
+ destroyOnClose?: boolean;
34
36
  onChange?: (value: CascaderValue) => void;
35
37
  onExpandChange?: (value: CascaderValue) => void;
36
38
  onOpenChange?: (open: boolean) => void;
@@ -31,6 +31,8 @@ export interface CascaderProps extends Omit<HTMLAttributes<HTMLDivElement>, "onC
31
31
  showAllLevels?: boolean;
32
32
  separator?: string;
33
33
  placement?: DropPlacementsType;
34
+ /** 关闭后是否销毁面板内容。默认销毁(重开时重新挂载);设为 false 可保留面板内的表单状态,代价是每个打开过的实例留一份隐藏 DOM。 */
35
+ destroyOnClose?: boolean;
34
36
  onChange?: (value: CascaderValue) => void;
35
37
  onExpandChange?: (value: CascaderValue) => void;
36
38
  onOpenChange?: (open: boolean) => void;
@@ -1,11 +1,12 @@
1
+ import { ShapeType, SizeType, ThemeType } from '../const/types.cjs';
1
2
  import { CheckCardValue } from './types.cjs';
2
3
  export interface CheckCardGroupContextValue {
3
4
  value?: CheckCardValue;
4
5
  disabled: boolean;
5
6
  readOnly: boolean;
6
- theme?: string;
7
- size?: string;
8
- shape?: string;
7
+ theme?: ThemeType;
8
+ size?: SizeType;
9
+ shape?: ShapeType;
9
10
  select: (value: CheckCardValue) => void;
10
11
  register: (value: CheckCardValue, element: HTMLDivElement, disabled: boolean) => void;
11
12
  unregister: (value: CheckCardValue) => void;
@@ -1,11 +1,12 @@
1
+ import { ShapeType, SizeType, ThemeType } from '../const/types.js';
1
2
  import { CheckCardValue } from './types.js';
2
3
  export interface CheckCardGroupContextValue {
3
4
  value?: CheckCardValue;
4
5
  disabled: boolean;
5
6
  readOnly: boolean;
6
- theme?: string;
7
- size?: string;
8
- shape?: string;
7
+ theme?: ThemeType;
8
+ size?: SizeType;
9
+ shape?: ShapeType;
9
10
  select: (value: CheckCardValue) => void;
10
11
  register: (value: CheckCardValue, element: HTMLDivElement, disabled: boolean) => void;
11
12
  unregister: (value: CheckCardValue) => void;
@@ -1,4 +1,4 @@
1
1
  import { default as CheckCard } from './check-card.cjs';
2
2
  import { default as CheckCardGroup } from './check-card-group.cjs';
3
- export type { CheckCardChangeEvent, CheckCardGroupProps, CheckCardOption, CheckCardProps, CheckCardTheme, CheckCardValue, } from './types.cjs';
3
+ export type { CheckCardChangeEvent, CheckCardGroupProps, CheckCardOption, CheckCardProps, CheckCardValue, } from './types.cjs';
4
4
  export { CheckCard, CheckCardGroup };
@@ -1,4 +1,4 @@
1
1
  import { default as CheckCard } from './check-card.js';
2
2
  import { default as CheckCardGroup } from './check-card-group.js';
3
- export type { CheckCardChangeEvent, CheckCardGroupProps, CheckCardOption, CheckCardProps, CheckCardTheme, CheckCardValue, } from './types.js';
3
+ export type { CheckCardChangeEvent, CheckCardGroupProps, CheckCardOption, CheckCardProps, CheckCardValue, } from './types.js';
4
4
  export { CheckCard, CheckCardGroup };
@@ -1,7 +1,6 @@
1
- import { ShapeType, SizeType } from '../const/types.cjs';
1
+ import { ShapeType, SizeType, SurfaceThemeType } from '../const/types.cjs';
2
2
  import { IconType } from '../icon/index.cjs';
3
3
  export type CheckCardValue = string | number;
4
- export type CheckCardTheme = "outline" | "fill";
5
4
  export interface CheckCardChangeEvent {
6
5
  checked: boolean;
7
6
  value?: CheckCardValue;
@@ -25,7 +24,7 @@ export interface CheckCardProps extends Omit<React.HTMLAttributes<HTMLDivElement
25
24
  showIndicator?: boolean;
26
25
  disabled?: boolean;
27
26
  readOnly?: boolean;
28
- theme?: CheckCardTheme;
27
+ theme?: SurfaceThemeType;
29
28
  size?: SizeType;
30
29
  shape?: ShapeType;
31
30
  onChange?: (event: CheckCardChangeEvent) => void;
@@ -37,7 +36,7 @@ export interface CheckCardGroupProps extends Omit<React.HTMLAttributes<HTMLDivEl
37
36
  disabled?: boolean;
38
37
  readOnly?: boolean;
39
38
  direction?: "horizontal" | "vertical";
40
- theme?: CheckCardTheme;
39
+ theme?: SurfaceThemeType;
41
40
  size?: SizeType;
42
41
  shape?: ShapeType;
43
42
  onChange?: (value: CheckCardValue) => void;
@@ -1,7 +1,6 @@
1
- import { ShapeType, SizeType } from '../const/types.js';
1
+ import { ShapeType, SizeType, SurfaceThemeType } from '../const/types.js';
2
2
  import { IconType } from '../icon/index.js';
3
3
  export type CheckCardValue = string | number;
4
- export type CheckCardTheme = "outline" | "fill";
5
4
  export interface CheckCardChangeEvent {
6
5
  checked: boolean;
7
6
  value?: CheckCardValue;
@@ -25,7 +24,7 @@ export interface CheckCardProps extends Omit<React.HTMLAttributes<HTMLDivElement
25
24
  showIndicator?: boolean;
26
25
  disabled?: boolean;
27
26
  readOnly?: boolean;
28
- theme?: CheckCardTheme;
27
+ theme?: SurfaceThemeType;
29
28
  size?: SizeType;
30
29
  shape?: ShapeType;
31
30
  onChange?: (event: CheckCardChangeEvent) => void;
@@ -37,7 +36,7 @@ export interface CheckCardGroupProps extends Omit<React.HTMLAttributes<HTMLDivEl
37
36
  disabled?: boolean;
38
37
  readOnly?: boolean;
39
38
  direction?: "horizontal" | "vertical";
40
- theme?: CheckCardTheme;
39
+ theme?: SurfaceThemeType;
41
40
  size?: SizeType;
42
41
  shape?: ShapeType;
43
42
  onChange?: (value: CheckCardValue) => void;
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { DirectionType, SizeType, ThemeType } from '../const/types.cjs';
2
+ import { DirectionType, SizeType, MarkThemeType } from '../const/types.cjs';
3
3
  export interface CheckboxOption<T extends string | number = string | number> {
4
4
  label?: string;
5
5
  value: T;
@@ -9,7 +9,7 @@ export interface CheckboxOption<T extends string | number = string | number> {
9
9
  }
10
10
  export interface CheckboxGroupProps<T extends string | number = string | number> extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue" | "defaultChecked"> {
11
11
  value?: T[];
12
- theme?: ThemeType;
12
+ theme?: MarkThemeType;
13
13
  disabled?: boolean;
14
14
  readOnly?: boolean;
15
15
  options?: CheckboxOption[];
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { DirectionType, SizeType, ThemeType } from '../const/types.js';
2
+ import { DirectionType, SizeType, MarkThemeType } from '../const/types.js';
3
3
  export interface CheckboxOption<T extends string | number = string | number> {
4
4
  label?: string;
5
5
  value: T;
@@ -9,7 +9,7 @@ export interface CheckboxOption<T extends string | number = string | number> {
9
9
  }
10
10
  export interface CheckboxGroupProps<T extends string | number = string | number> extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue" | "defaultChecked"> {
11
11
  value?: T[];
12
- theme?: ThemeType;
12
+ theme?: MarkThemeType;
13
13
  disabled?: boolean;
14
14
  readOnly?: boolean;
15
15
  options?: CheckboxOption[];
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { SizeType, ThemeType, ValueType } from '../const/types.cjs';
2
+ import { SizeType, MarkThemeType, ValueType } from '../const/types.cjs';
3
3
  export interface ChangeEvent {
4
4
  value?: unknown;
5
5
  label?: React.ReactNode;
@@ -10,7 +10,7 @@ export interface CheckboxProps extends Omit<React.HTMLAttributes<HTMLLabelElemen
10
10
  valueType?: ValueType;
11
11
  value?: unknown;
12
12
  label?: React.ReactNode;
13
- theme?: ThemeType;
13
+ theme?: MarkThemeType;
14
14
  disabled?: boolean;
15
15
  readOnly?: boolean;
16
16
  indeterminate?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { SizeType, ThemeType, ValueType } from '../const/types.js';
2
+ import { SizeType, MarkThemeType, ValueType } from '../const/types.js';
3
3
  export interface ChangeEvent {
4
4
  value?: unknown;
5
5
  label?: React.ReactNode;
@@ -10,7 +10,7 @@ export interface CheckboxProps extends Omit<React.HTMLAttributes<HTMLLabelElemen
10
10
  valueType?: ValueType;
11
11
  value?: unknown;
12
12
  label?: React.ReactNode;
13
- theme?: ThemeType;
13
+ theme?: MarkThemeType;
14
14
  disabled?: boolean;
15
15
  readOnly?: boolean;
16
16
  indeterminate?: boolean;
@@ -1,11 +1,11 @@
1
1
  import { default as React } from 'react';
2
- import { ShapeType, ThemeType } from '../const/types.cjs';
2
+ import { SurfaceShapeType, SurfaceThemeType } from '../const/types.cjs';
3
3
  export interface CollapseProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue" | "defaultChecked"> {
4
4
  openKeys?: (string | number)[];
5
5
  accordion?: boolean;
6
6
  sample?: boolean;
7
- theme?: ThemeType;
8
- shape?: ShapeType;
7
+ theme?: SurfaceThemeType;
8
+ shape?: SurfaceShapeType;
9
9
  onChange?: (key: string | number) => void;
10
10
  onOpenKeysChange?: (keys: (string | number)[]) => void;
11
11
  children?: React.ReactNode;
@@ -1,11 +1,11 @@
1
1
  import { default as React } from 'react';
2
- import { ShapeType, ThemeType } from '../const/types.js';
2
+ import { SurfaceShapeType, SurfaceThemeType } from '../const/types.js';
3
3
  export interface CollapseProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue" | "defaultChecked"> {
4
4
  openKeys?: (string | number)[];
5
5
  accordion?: boolean;
6
6
  sample?: boolean;
7
- theme?: ThemeType;
8
- shape?: ShapeType;
7
+ theme?: SurfaceThemeType;
8
+ shape?: SurfaceShapeType;
9
9
  onChange?: (key: string | number) => void;
10
10
  onOpenKeysChange?: (keys: (string | number)[]) => void;
11
11
  children?: React.ReactNode;
@@ -9,6 +9,8 @@ export interface ColorPickerProps extends Omit<HTMLAttributes<HTMLDivElement>, "
9
9
  disabledAlpha?: boolean;
10
10
  showText?: boolean;
11
11
  placement?: DropPlacementsType;
12
+ /** 关闭后是否销毁面板内容。默认销毁(重开时重新挂载);设为 false 可保留面板内的表单状态,代价是每个打开过的实例留一份隐藏 DOM。 */
13
+ destroyOnClose?: boolean;
12
14
  trigger?: "hover" | "click";
13
15
  size?: SizeType;
14
16
  theme?: ThemeType;
@@ -22,7 +24,7 @@ export interface ColorPickerProps extends Omit<HTMLAttributes<HTMLDivElement>, "
22
24
  /** Render only the color panel without a trigger or portal. */
23
25
  panelOnly?: boolean;
24
26
  }
25
- declare function ColorPicker({ value, open: openProp, disabled, readOnly, disabledAlpha, showText, placement, trigger, size: sizeProp, theme: themeProp, shape: shapeProp, mode: modeProp, presets, onChange, onUpdateMode, onOpenChange, className, children, panelOnly, ...rest }: ColorPickerProps): import("react").JSX.Element;
27
+ declare function ColorPicker({ value, open: openProp, disabled, readOnly, disabledAlpha, showText, placement, destroyOnClose, trigger, size: sizeProp, theme: themeProp, shape: shapeProp, mode: modeProp, presets, onChange, onUpdateMode, onOpenChange, className, children, panelOnly, ...rest }: ColorPickerProps): import("react").JSX.Element;
26
28
  export type ColorPickerPanelProps = Omit<ColorPickerProps, "panelOnly" | "open" | "children">;
27
29
  export declare function ColorPickerPanel(props: ColorPickerPanelProps): import("react").JSX.Element;
28
30
  declare const _default: typeof ColorPicker;
@@ -9,6 +9,8 @@ export interface ColorPickerProps extends Omit<HTMLAttributes<HTMLDivElement>, "
9
9
  disabledAlpha?: boolean;
10
10
  showText?: boolean;
11
11
  placement?: DropPlacementsType;
12
+ /** 关闭后是否销毁面板内容。默认销毁(重开时重新挂载);设为 false 可保留面板内的表单状态,代价是每个打开过的实例留一份隐藏 DOM。 */
13
+ destroyOnClose?: boolean;
12
14
  trigger?: "hover" | "click";
13
15
  size?: SizeType;
14
16
  theme?: ThemeType;
@@ -22,7 +24,7 @@ export interface ColorPickerProps extends Omit<HTMLAttributes<HTMLDivElement>, "
22
24
  /** Render only the color panel without a trigger or portal. */
23
25
  panelOnly?: boolean;
24
26
  }
25
- declare function ColorPicker({ value, open: openProp, disabled, readOnly, disabledAlpha, showText, placement, trigger, size: sizeProp, theme: themeProp, shape: shapeProp, mode: modeProp, presets, onChange, onUpdateMode, onOpenChange, className, children, panelOnly, ...rest }: ColorPickerProps): import("react").JSX.Element;
27
+ declare function ColorPicker({ value, open: openProp, disabled, readOnly, disabledAlpha, showText, placement, destroyOnClose, trigger, size: sizeProp, theme: themeProp, shape: shapeProp, mode: modeProp, presets, onChange, onUpdateMode, onOpenChange, className, children, panelOnly, ...rest }: ColorPickerProps): import("react").JSX.Element;
26
28
  export type ColorPickerPanelProps = Omit<ColorPickerProps, "panelOnly" | "open" | "children">;
27
29
  export declare function ColorPickerPanel(props: ColorPickerPanelProps): import("react").JSX.Element;
28
30
  declare const _default: typeof ColorPicker;
@@ -31,7 +31,7 @@ export type { CarouselItemProps, CarouselProps, CarouselRef } from './carousel/i
31
31
  export { Checkbox, CheckboxGroup } from './checkbox/index.cjs';
32
32
  export type { ChangeEvent, CheckboxChangeEvent, CheckboxGroupProps, CheckboxOption, CheckboxProps, } from './checkbox/index.cjs';
33
33
  export { CheckCard, CheckCardGroup } from './check-card/index.cjs';
34
- export type { CheckCardChangeEvent, CheckCardGroupProps, CheckCardOption, CheckCardProps, CheckCardTheme, CheckCardValue, } from './check-card/index.cjs';
34
+ export type { CheckCardChangeEvent, CheckCardGroupProps, CheckCardOption, CheckCardProps, CheckCardValue, } from './check-card/index.cjs';
35
35
  export { Collapse, CollapsePanel } from './collapse/index.cjs';
36
36
  export type { CollapsePanelProps, CollapseProps } from './collapse/index.cjs';
37
37
  export { default as ColorPicker, ColorPickerPanel } from './color-picker/index.cjs';
@@ -157,7 +157,7 @@ export type { UploadChangeEvent, UploadContext, UploadCustomRequest, UploadFile,
157
157
  export { default as Watermark } from './watermark/index.cjs';
158
158
  export type { Font as WatermarkFont, WatermarkLayoutType, WatermarkProps, WatermarkTextItem, } from './watermark/index.cjs';
159
159
  export { default as theme } from './utils/theme.cjs';
160
- export type { AlignType, BooleanType, ButtonType, ColorType, DirectionType, DrawerPlacementsType, DropPlacementsType, PlacementsType, RadioType, ShapeType, SizeType, SpinModeType, ThemeType, TriggerType, UploadStatusType, ValueType, } from './const/types.cjs';
160
+ export type { AlignType, BooleanType, ButtonType, ColorType, DirectionType, DrawerPlacementsType, DropPlacementsType, MarkThemeType, PlacementsType, RadioType, ShapeType, SizeType, SpinModeType, SurfaceShapeType, SurfaceThemeType, ThemeType, TriggerType, UploadStatusType, ValueType, } from './const/types.cjs';
161
161
  export { default as VirtualList } from './virtual-list/index.cjs';
162
162
  export type { VirtualListKey, VirtualListProps, VirtualListRef } from './virtual-list/index.cjs';
163
163
  export { getVirtualRange } from './virtual-list/range.cjs';
@@ -31,7 +31,7 @@ export type { CarouselItemProps, CarouselProps, CarouselRef } from './carousel/i
31
31
  export { Checkbox, CheckboxGroup } from './checkbox/index.js';
32
32
  export type { ChangeEvent, CheckboxChangeEvent, CheckboxGroupProps, CheckboxOption, CheckboxProps, } from './checkbox/index.js';
33
33
  export { CheckCard, CheckCardGroup } from './check-card/index.js';
34
- export type { CheckCardChangeEvent, CheckCardGroupProps, CheckCardOption, CheckCardProps, CheckCardTheme, CheckCardValue, } from './check-card/index.js';
34
+ export type { CheckCardChangeEvent, CheckCardGroupProps, CheckCardOption, CheckCardProps, CheckCardValue, } from './check-card/index.js';
35
35
  export { Collapse, CollapsePanel } from './collapse/index.js';
36
36
  export type { CollapsePanelProps, CollapseProps } from './collapse/index.js';
37
37
  export { default as ColorPicker, ColorPickerPanel } from './color-picker/index.js';
@@ -157,7 +157,7 @@ export type { UploadChangeEvent, UploadContext, UploadCustomRequest, UploadFile,
157
157
  export { default as Watermark } from './watermark/index.js';
158
158
  export type { Font as WatermarkFont, WatermarkLayoutType, WatermarkProps, WatermarkTextItem, } from './watermark/index.js';
159
159
  export { default as theme } from './utils/theme.js';
160
- export type { AlignType, BooleanType, ButtonType, ColorType, DirectionType, DrawerPlacementsType, DropPlacementsType, PlacementsType, RadioType, ShapeType, SizeType, SpinModeType, ThemeType, TriggerType, UploadStatusType, ValueType, } from './const/types.js';
160
+ export type { AlignType, BooleanType, ButtonType, ColorType, DirectionType, DrawerPlacementsType, DropPlacementsType, MarkThemeType, PlacementsType, RadioType, ShapeType, SizeType, SpinModeType, SurfaceShapeType, SurfaceThemeType, ThemeType, TriggerType, UploadStatusType, ValueType, } from './const/types.js';
161
161
  export { default as VirtualList } from './virtual-list/index.js';
162
162
  export type { VirtualListKey, VirtualListProps, VirtualListRef } from './virtual-list/index.js';
163
163
  export { getVirtualRange } from './virtual-list/range.js';
@@ -1,6 +1,13 @@
1
- import { default as zhCN } from '../locale/zh-CN.cjs';
1
+ import { default as enUS } from '../locale/en.cjs';
2
2
  import { ShapeType, SizeType, ThemeType } from '../const/types.cjs';
3
- export type Locale = typeof zhCN & Record<string, unknown>;
3
+ /** 语言包的形状契约就是 `en` 这一份:其余语言都得把 `k.*` 这些键填全。 */
4
+ export type Locale = typeof enUS & Record<string, unknown>;
5
+ /**
6
+ * 没有 ConfigProvider 兜底时用的语言。
7
+ * 默认值只有这一个出处,组件里不许再各自写 `|| zhCN` 之类的兜底;要改库级默认就改这里。
8
+ * 选 `en` 与文档口径一致,也和 dayjs 那侧对得上——中文语言包没注册时月份和星期本来就是英文。
9
+ */
10
+ export declare const DEFAULT_LOCALE: Locale;
4
11
  export interface ConfigContextValue {
5
12
  locale: Locale | null;
6
13
  getPopupContainer?: () => HTMLElement | null | undefined;
@@ -8,4 +15,10 @@ export interface ConfigContextValue {
8
15
  shape?: ShapeType;
9
16
  theme?: ThemeType;
10
17
  }
18
+ /**
19
+ * 没有 ConfigProvider 时的默认值。
20
+ * 导出它不是为了让人用,而是让 ConfigProvider 能凭引用认出自己是不是最外层:
21
+ * useContext 拿到这个对象就说明上面没有别的 Provider,这时才需要把配置登记给命令式 API。
22
+ */
23
+ export declare const EMPTY_CONFIG: ConfigContextValue;
11
24
  export declare const ConfigContext: import('react').Context<ConfigContextValue>;
@@ -1,6 +1,13 @@
1
- import { default as zhCN } from '../locale/zh-CN.js';
1
+ import { default as enUS } from '../locale/en.js';
2
2
  import { ShapeType, SizeType, ThemeType } from '../const/types.js';
3
- export type Locale = typeof zhCN & Record<string, unknown>;
3
+ /** 语言包的形状契约就是 `en` 这一份:其余语言都得把 `k.*` 这些键填全。 */
4
+ export type Locale = typeof enUS & Record<string, unknown>;
5
+ /**
6
+ * 没有 ConfigProvider 兜底时用的语言。
7
+ * 默认值只有这一个出处,组件里不许再各自写 `|| zhCN` 之类的兜底;要改库级默认就改这里。
8
+ * 选 `en` 与文档口径一致,也和 dayjs 那侧对得上——中文语言包没注册时月份和星期本来就是英文。
9
+ */
10
+ export declare const DEFAULT_LOCALE: Locale;
4
11
  export interface ConfigContextValue {
5
12
  locale: Locale | null;
6
13
  getPopupContainer?: () => HTMLElement | null | undefined;
@@ -8,4 +15,10 @@ export interface ConfigContextValue {
8
15
  shape?: ShapeType;
9
16
  theme?: ThemeType;
10
17
  }
18
+ /**
19
+ * 没有 ConfigProvider 时的默认值。
20
+ * 导出它不是为了让人用,而是让 ConfigProvider 能凭引用认出自己是不是最外层:
21
+ * useContext 拿到这个对象就说明上面没有别的 Provider,这时才需要把配置登记给命令式 API。
22
+ */
23
+ export declare const EMPTY_CONFIG: ConfigContextValue;
11
24
  export declare const ConfigContext: import('react').Context<ConfigContextValue>;