react-kui 3.0.0 → 3.1.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 (463) hide show
  1. package/ai/behaviors.json +3 -3
  2. package/ai/cli.mjs +0 -0
  3. package/ai/kui-components.json +1552 -1280
  4. package/ai/mcp.mjs +0 -0
  5. package/es/_virtual/_rolldown/runtime.js +1 -1
  6. package/es/affix/index.js +1 -1
  7. package/es/alert/index.js +29 -15
  8. package/es/anchor/anchor-context.js +1 -1
  9. package/es/anchor/anchor-link.js +1 -1
  10. package/es/anchor/anchor.js +1 -1
  11. package/es/auto-complete/index.js +378 -437
  12. package/es/avatar/avatar-group-context.js +1 -1
  13. package/es/avatar/avatar-group.js +1 -1
  14. package/es/avatar/avatar.js +2 -2
  15. package/es/back-top/index.js +3 -3
  16. package/es/badge/index.js +6 -2
  17. package/es/base/teleport.js +19 -30
  18. package/es/base/transition-props.js +1 -1
  19. package/es/base/transition.js +3 -3
  20. package/es/breadcrumb/breadcrumb-context.js +1 -1
  21. package/es/breadcrumb/breadcrumb-item.js +1 -1
  22. package/es/breadcrumb/breadcrumb.js +1 -1
  23. package/es/button/button-group-context.js +1 -1
  24. package/es/button/button-group.js +1 -1
  25. package/es/button/button.js +2 -2
  26. package/es/calendar/index.js +1 -1
  27. package/es/card/index.js +1 -1
  28. package/es/carousel/carousel-context.js +1 -1
  29. package/es/carousel/carousel-item.js +1 -1
  30. package/es/carousel/carousel.js +1 -1
  31. package/es/cascader/index.js +104 -170
  32. package/es/check-card/check-card-group.js +1 -1
  33. package/es/check-card/check-card.js +143 -143
  34. package/es/check-card/context.js +1 -1
  35. package/es/checkbox/checkbox-group-context.js +1 -1
  36. package/es/checkbox/checkbox-group.js +1 -1
  37. package/es/checkbox/checkbox.js +131 -112
  38. package/es/checkbox/index.js +1 -1
  39. package/es/collapse/collapse-panel.js +2 -2
  40. package/es/collapse/collapse.js +96 -103
  41. package/es/color-picker/alpha.js +81 -63
  42. package/es/color-picker/hue.js +69 -51
  43. package/es/color-picker/index.js +79 -128
  44. package/es/color-picker/mode.js +1 -1
  45. package/es/color-picker/paint.js +85 -67
  46. package/es/color-picker/presets.js +1 -1
  47. package/es/components.js +4 -2
  48. package/es/config/config-context.js +1 -1
  49. package/es/config/context.js +1 -1
  50. package/es/config/index.js +1 -1
  51. package/es/config/size-context.js +1 -1
  52. package/es/config/use-config-appearance.js +1 -1
  53. package/es/const/var.js +1 -1
  54. package/es/date-picker/index.js +591 -678
  55. package/es/descriptions/descriptions-item.js +1 -1
  56. package/es/descriptions/descriptions.js +2 -2
  57. package/es/divider/index.js +1 -1
  58. package/es/drawer/index.js +193 -190
  59. package/es/dropdown/dropdown-button.js +1 -1
  60. package/es/dropdown/dropdown-context.js +1 -1
  61. package/es/dropdown/dropdown.js +173 -331
  62. package/es/dropdown/trigger.js +1 -1
  63. package/es/empty/index.js +1 -1
  64. package/es/feature-card/index.js +1 -1
  65. package/es/feedback-panel/index.js +1 -1
  66. package/es/flame-wrap/index.js +1 -1
  67. package/es/flame-wrap/types.js +1 -1
  68. package/es/flex/index.js +1 -1
  69. package/es/form/field-context.js +1 -1
  70. package/es/form/form-context.js +1 -1
  71. package/es/form/form-item.js +2 -2
  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 +1 -1
  81. package/es/image/instance.js +1 -1
  82. package/es/image/preview.js +2 -2
  83. package/es/image/utils.js +1 -1
  84. package/es/index.js +3 -2
  85. package/es/input/index.js +1 -1
  86. package/es/input/input-box.js +1 -1
  87. package/es/input/input-group.js +2 -2
  88. package/es/input/input.js +1 -1
  89. package/es/input/textarea.js +1 -1
  90. package/es/input-number/index.js +1 -1
  91. package/es/input-otp/index.js +2 -1
  92. package/es/input-tag/index.js +13 -43
  93. package/es/kanban/index.js +1 -1
  94. package/es/layout/index.js +1 -1
  95. package/es/layout/layout-context.js +1 -1
  96. package/es/list-panel/index.js +1 -1
  97. package/es/loading/index.js +1 -1
  98. package/es/loading/loading-bar.js +1 -1
  99. package/es/locale/de.js +1 -1
  100. package/es/locale/el.js +1 -1
  101. package/es/locale/en.js +1 -1
  102. package/es/locale/fr.js +1 -1
  103. package/es/locale/it.js +1 -1
  104. package/es/locale/ja.js +1 -1
  105. package/es/locale/ko.js +1 -1
  106. package/es/locale/ru.js +1 -1
  107. package/es/locale/th.js +1 -1
  108. package/es/locale/uk.js +1 -1
  109. package/es/locale/vi.js +1 -1
  110. package/es/locale/zh-CN.js +1 -1
  111. package/es/locale/zh-TW.js +1 -1
  112. package/es/mentions/index.js +341 -387
  113. package/es/menu/menu-context.js +1 -1
  114. package/es/menu/menu-divider.js +1 -1
  115. package/es/menu/menu-group.js +1 -1
  116. package/es/menu/menu-item.js +3 -3
  117. package/es/menu/menu-keyboard.js +1 -1
  118. package/es/menu/menu.js +215 -220
  119. package/es/menu/recursive-menu.js +1 -1
  120. package/es/menu/sub-menu.js +3 -3
  121. package/es/message/index.js +1 -1
  122. package/es/modal/api.js +1 -1
  123. package/es/modal/modal.js +247 -244
  124. package/es/modal/toast.js +1 -1
  125. package/es/node_modules/.pnpm/kui-icons@5.0.0/node_modules/kui-icons/dist/kui-icons.esm.js +1 -1
  126. package/es/notice/container.js +1 -1
  127. package/es/notice/content.js +1 -1
  128. package/es/notice/index.js +1 -1
  129. package/es/notice/instance.js +1 -1
  130. package/es/page/index.js +3 -3
  131. package/es/page-header/index.js +1 -1
  132. package/es/popconfirm/index.js +89 -241
  133. package/es/poptip/index.js +83 -243
  134. package/es/popup/index.js +429 -0
  135. package/es/popup/layers.js +33 -0
  136. package/es/progress/index.js +1 -1
  137. package/es/qrcode/index.js +1 -1
  138. package/es/radio/radio-button.js +53 -53
  139. package/es/radio/radio-group-context.js +1 -1
  140. package/es/radio/radio-group.js +1 -1
  141. package/es/radio/radio.js +110 -91
  142. package/es/rate/index.js +58 -57
  143. package/es/rate/star.js +1 -1
  144. package/es/result/index.js +1 -1
  145. package/es/ripple/index.js +1 -1
  146. package/es/ripple/types.js +1 -1
  147. package/es/row-col/col.js +1 -1
  148. package/es/row-col/row.js +1 -1
  149. package/es/segmented/index.js +1 -1
  150. package/es/select/option.js +69 -61
  151. package/es/select/select.js +78 -213
  152. package/es/skeleton/skeleton-avatar.js +1 -1
  153. package/es/skeleton/skeleton-button.js +1 -1
  154. package/es/skeleton/skeleton-image.js +1 -1
  155. package/es/skeleton/skeleton-text.js +1 -1
  156. package/es/skeleton/skeleton.js +1 -1
  157. package/es/skeleton/use-skeleton-loading.js +1 -1
  158. package/es/slider/index.js +89 -55
  159. package/es/slider/thumb.js +2 -1
  160. package/es/space/index.js +2 -2
  161. package/es/spin/index.js +1 -1
  162. package/es/splitter/splitter-panel.js +1 -1
  163. package/es/splitter/splitter.js +1 -1
  164. package/es/stat-card/countup.js +8 -4
  165. package/es/stat-card/rollup.js +122 -0
  166. package/es/stat-card/stat-card.js +1 -1
  167. package/es/stat-card/stat-number.js +1 -1
  168. package/es/stat-card/utils/countup.js +2 -2
  169. package/es/stat-card/utils/odometer.js +104 -107
  170. package/es/steps/index.js +1 -1
  171. package/es/switch/index.js +7 -6
  172. package/es/table/column-setting.js +1 -1
  173. package/es/table/index.js +33 -29
  174. package/es/table/utils.js +1 -1
  175. package/es/tabs/tab-panel.js +1 -1
  176. package/es/tabs/tabs.js +15 -6
  177. package/es/tag/index.js +9 -5
  178. package/es/time-line/timeline-item.js +1 -1
  179. package/es/time-line/timeline.js +1 -1
  180. package/es/tooltip/index.js +127 -248
  181. package/es/tour/index.js +198 -193
  182. package/es/transfer/index.js +245 -246
  183. package/es/tree/index.js +72 -67
  184. package/es/tree/utils.js +1 -1
  185. package/es/tree-select/index.js +562 -655
  186. package/es/typography/index.js +1 -1
  187. package/es/upload/file-list.js +3 -1
  188. package/es/upload/index.js +8 -8
  189. package/es/upload/picture-sort.js +1 -1
  190. package/es/upload/selector.js +121 -116
  191. package/es/utils/checked.js +1 -1
  192. package/es/utils/color.js +1 -1
  193. package/es/utils/number.js +1 -1
  194. package/es/utils/placement.js +1 -1
  195. package/es/utils/popup.js +42 -0
  196. package/es/utils/react-node.js +1 -1
  197. package/es/utils/selection-tags.js +55 -0
  198. package/es/utils/share.js +1 -1
  199. package/es/utils/theme.js +1 -1
  200. package/es/utils/transition.js +1 -1
  201. package/es/utils/use-value.js +1 -1
  202. package/es/virtual-list/index.js +1 -1
  203. package/es/virtual-list/range.js +1 -1
  204. package/es/watermark/index.js +1 -1
  205. package/lib/index.cjs +2 -2
  206. package/lib/locale/de.cjs +1 -1
  207. package/lib/locale/el.cjs +1 -1
  208. package/lib/locale/en.cjs +1 -1
  209. package/lib/locale/fr.cjs +1 -1
  210. package/lib/locale/it.cjs +1 -1
  211. package/lib/locale/ja.cjs +1 -1
  212. package/lib/locale/ko.cjs +1 -1
  213. package/lib/locale/ru.cjs +1 -1
  214. package/lib/locale/th.cjs +1 -1
  215. package/lib/locale/uk.cjs +1 -1
  216. package/lib/locale/vi.cjs +1 -1
  217. package/lib/locale/zh-CN.cjs +1 -1
  218. package/lib/locale/zh-TW.cjs +1 -1
  219. package/package.json +32 -29
  220. package/style/base.css +1 -1
  221. package/style/components.css +2 -2
  222. package/style/index.css +2 -2
  223. package/style/theme.css +2 -2
  224. package/types/affix/index.d.cts +1 -1
  225. package/types/affix/index.d.ts +1 -1
  226. package/types/alert/index.d.cts +2 -1
  227. package/types/alert/index.d.ts +2 -1
  228. package/types/anchor/anchor-link.d.cts +1 -1
  229. package/types/anchor/anchor-link.d.ts +1 -1
  230. package/types/anchor/anchor.d.cts +1 -1
  231. package/types/anchor/anchor.d.ts +1 -1
  232. package/types/auto-complete/index.d.cts +1 -2
  233. package/types/auto-complete/index.d.ts +1 -2
  234. package/types/avatar/avatar-group.d.cts +1 -1
  235. package/types/avatar/avatar-group.d.ts +1 -1
  236. package/types/avatar/avatar.d.cts +1 -1
  237. package/types/avatar/avatar.d.ts +1 -1
  238. package/types/back-top/index.d.cts +1 -1
  239. package/types/back-top/index.d.ts +1 -1
  240. package/types/badge/index.d.cts +1 -1
  241. package/types/badge/index.d.ts +1 -1
  242. package/types/base/transition.d.cts +1 -0
  243. package/types/base/transition.d.ts +1 -0
  244. package/types/breadcrumb/breadcrumb-item.d.cts +1 -1
  245. package/types/breadcrumb/breadcrumb-item.d.ts +1 -1
  246. package/types/breadcrumb/breadcrumb.d.cts +1 -1
  247. package/types/breadcrumb/breadcrumb.d.ts +1 -1
  248. package/types/button/button-group.d.cts +1 -1
  249. package/types/button/button-group.d.ts +1 -1
  250. package/types/button/button.d.cts +1 -1
  251. package/types/button/button.d.ts +1 -1
  252. package/types/calendar/index.d.cts +1 -1
  253. package/types/calendar/index.d.ts +1 -1
  254. package/types/card/index.d.cts +2 -2
  255. package/types/card/index.d.ts +2 -2
  256. package/types/carousel/carousel-item.d.cts +1 -1
  257. package/types/carousel/carousel-item.d.ts +1 -1
  258. package/types/carousel/carousel.d.cts +1 -1
  259. package/types/carousel/carousel.d.ts +1 -1
  260. package/types/cascader/index.d.cts +1 -1
  261. package/types/cascader/index.d.ts +1 -1
  262. package/types/cascader/types.d.cts +1 -2
  263. package/types/cascader/types.d.ts +1 -2
  264. package/types/check-card/types.d.cts +2 -3
  265. package/types/check-card/types.d.ts +2 -3
  266. package/types/checkbox/checkbox-group.d.cts +1 -1
  267. package/types/checkbox/checkbox-group.d.ts +1 -1
  268. package/types/checkbox/checkbox.d.cts +1 -2
  269. package/types/checkbox/checkbox.d.ts +1 -2
  270. package/types/checkbox/index.d.cts +1 -1
  271. package/types/checkbox/index.d.ts +1 -1
  272. package/types/collapse/collapse-panel.d.cts +1 -1
  273. package/types/collapse/collapse-panel.d.ts +1 -1
  274. package/types/collapse/collapse.d.cts +1 -2
  275. package/types/collapse/collapse.d.ts +1 -2
  276. package/types/color-picker/alpha.d.cts +2 -1
  277. package/types/color-picker/alpha.d.ts +2 -1
  278. package/types/color-picker/hue.d.cts +2 -1
  279. package/types/color-picker/hue.d.ts +2 -1
  280. package/types/color-picker/index.d.cts +3 -4
  281. package/types/color-picker/index.d.ts +3 -4
  282. package/types/color-picker/paint.d.cts +2 -1
  283. package/types/color-picker/paint.d.ts +2 -1
  284. package/types/components.d.cts +17 -13
  285. package/types/components.d.ts +17 -13
  286. package/types/date-picker/index.d.cts +3 -4
  287. package/types/date-picker/index.d.ts +3 -4
  288. package/types/descriptions/descriptions.d.cts +1 -1
  289. package/types/descriptions/descriptions.d.ts +1 -1
  290. package/types/divider/index.d.cts +1 -1
  291. package/types/divider/index.d.ts +1 -1
  292. package/types/drawer/index.d.cts +0 -1
  293. package/types/drawer/index.d.ts +0 -1
  294. package/types/dropdown/dropdown-button.d.cts +1 -1
  295. package/types/dropdown/dropdown-button.d.ts +1 -1
  296. package/types/dropdown/dropdown.d.cts +1 -2
  297. package/types/dropdown/dropdown.d.ts +1 -2
  298. package/types/empty/index.d.cts +1 -1
  299. package/types/empty/index.d.ts +1 -1
  300. package/types/feature-card/index.d.cts +1 -1
  301. package/types/feature-card/index.d.ts +1 -1
  302. package/types/feedback-panel/index.d.cts +1 -1
  303. package/types/feedback-panel/index.d.ts +1 -1
  304. package/types/flex/index.d.cts +1 -1
  305. package/types/flex/index.d.ts +1 -1
  306. package/types/form/form.d.cts +1 -1
  307. package/types/form/form.d.ts +1 -1
  308. package/types/grid/grid-item.d.cts +1 -1
  309. package/types/grid/grid-item.d.ts +1 -1
  310. package/types/grid/grid.d.cts +1 -1
  311. package/types/grid/grid.d.ts +1 -1
  312. package/types/icon/index.d.cts +1 -1
  313. package/types/icon/index.d.ts +1 -1
  314. package/types/image/group.d.cts +1 -1
  315. package/types/image/group.d.ts +1 -1
  316. package/types/image/image.d.cts +1 -1
  317. package/types/image/image.d.ts +1 -1
  318. package/types/input/index.d.cts +1 -1
  319. package/types/input/index.d.ts +1 -1
  320. package/types/input/input-box.d.cts +1 -1
  321. package/types/input/input-box.d.ts +1 -1
  322. package/types/input/input-group.d.cts +1 -1
  323. package/types/input/input-group.d.ts +1 -1
  324. package/types/input/input.d.cts +1 -1
  325. package/types/input/input.d.ts +1 -1
  326. package/types/input/textarea.d.cts +1 -1
  327. package/types/input/textarea.d.ts +1 -1
  328. package/types/input-number/index.d.cts +1 -1
  329. package/types/input-number/index.d.ts +1 -1
  330. package/types/input-otp/index.d.cts +1 -1
  331. package/types/input-otp/index.d.ts +1 -1
  332. package/types/input-tag/index.d.cts +1 -1
  333. package/types/input-tag/index.d.ts +1 -1
  334. package/types/kanban/index.d.cts +1 -1
  335. package/types/kanban/index.d.ts +1 -1
  336. package/types/layout/index.d.cts +2 -2
  337. package/types/layout/index.d.ts +2 -2
  338. package/types/list-panel/index.d.cts +1 -1
  339. package/types/list-panel/index.d.ts +1 -1
  340. package/types/mentions/index.d.cts +1 -1
  341. package/types/mentions/index.d.ts +1 -1
  342. package/types/menu/menu.d.cts +1 -2
  343. package/types/menu/menu.d.ts +1 -2
  344. package/types/modal/modal.d.cts +1 -2
  345. package/types/modal/modal.d.ts +1 -2
  346. package/types/page/index.d.cts +1 -1
  347. package/types/page/index.d.ts +1 -1
  348. package/types/page-header/index.d.cts +1 -1
  349. package/types/page-header/index.d.ts +1 -1
  350. package/types/popconfirm/index.d.cts +1 -2
  351. package/types/popconfirm/index.d.ts +1 -2
  352. package/types/poptip/index.d.cts +1 -2
  353. package/types/poptip/index.d.ts +1 -2
  354. package/types/popup/index.d.cts +48 -0
  355. package/types/popup/index.d.ts +48 -0
  356. package/types/popup/layers.d.cts +9 -0
  357. package/types/popup/layers.d.ts +9 -0
  358. package/types/popup/types.d.cts +15 -0
  359. package/types/popup/types.d.ts +15 -0
  360. package/types/progress/index.d.cts +1 -1
  361. package/types/progress/index.d.ts +1 -1
  362. package/types/qrcode/index.d.cts +1 -1
  363. package/types/qrcode/index.d.ts +1 -1
  364. package/types/radio/index.d.cts +1 -0
  365. package/types/radio/index.d.ts +1 -0
  366. package/types/radio/radio-button.d.cts +1 -2
  367. package/types/radio/radio-button.d.ts +1 -2
  368. package/types/radio/radio-group.d.cts +1 -1
  369. package/types/radio/radio-group.d.ts +1 -1
  370. package/types/radio/radio.d.cts +1 -2
  371. package/types/radio/radio.d.ts +1 -2
  372. package/types/rate/index.d.cts +1 -1
  373. package/types/rate/index.d.ts +1 -1
  374. package/types/result/index.d.cts +1 -1
  375. package/types/result/index.d.ts +1 -1
  376. package/types/row-col/col.d.cts +1 -1
  377. package/types/row-col/col.d.ts +1 -1
  378. package/types/row-col/row.d.cts +1 -1
  379. package/types/row-col/row.d.ts +1 -1
  380. package/types/segmented/index.d.cts +1 -1
  381. package/types/segmented/index.d.ts +1 -1
  382. package/types/select/index.d.cts +2 -2
  383. package/types/select/index.d.ts +2 -2
  384. package/types/select/option.d.cts +1 -1
  385. package/types/select/option.d.ts +1 -1
  386. package/types/select/select.d.cts +1 -2
  387. package/types/select/select.d.ts +1 -2
  388. package/types/skeleton/skeleton-avatar.d.cts +1 -1
  389. package/types/skeleton/skeleton-avatar.d.ts +1 -1
  390. package/types/skeleton/skeleton-button.d.cts +1 -1
  391. package/types/skeleton/skeleton-button.d.ts +1 -1
  392. package/types/skeleton/skeleton-image.d.cts +1 -1
  393. package/types/skeleton/skeleton-image.d.ts +1 -1
  394. package/types/skeleton/skeleton-text.d.cts +1 -1
  395. package/types/skeleton/skeleton-text.d.ts +1 -1
  396. package/types/skeleton/skeleton.d.cts +1 -1
  397. package/types/skeleton/skeleton.d.ts +1 -1
  398. package/types/slider/index.d.cts +1 -1
  399. package/types/slider/index.d.ts +1 -1
  400. package/types/space/index.d.cts +1 -1
  401. package/types/space/index.d.ts +1 -1
  402. package/types/spin/index.d.cts +1 -1
  403. package/types/spin/index.d.ts +1 -1
  404. package/types/splitter/splitter-panel.d.cts +1 -1
  405. package/types/splitter/splitter-panel.d.ts +1 -1
  406. package/types/splitter/splitter.d.cts +1 -1
  407. package/types/splitter/splitter.d.ts +1 -1
  408. package/types/stat-card/countup.d.cts +1 -1
  409. package/types/stat-card/countup.d.ts +1 -1
  410. package/types/stat-card/rollup.d.cts +3 -2
  411. package/types/stat-card/rollup.d.ts +3 -2
  412. package/types/stat-card/stat-card.d.cts +1 -1
  413. package/types/stat-card/stat-card.d.ts +1 -1
  414. package/types/stat-card/stat-number.d.cts +1 -1
  415. package/types/stat-card/stat-number.d.ts +1 -1
  416. package/types/stat-card/utils/countup.d.cts +1 -1
  417. package/types/stat-card/utils/countup.d.ts +1 -1
  418. package/types/stat-card/utils/odometer.d.cts +7 -4
  419. package/types/stat-card/utils/odometer.d.ts +7 -4
  420. package/types/steps/index.d.cts +1 -1
  421. package/types/steps/index.d.ts +1 -1
  422. package/types/switch/index.d.cts +1 -2
  423. package/types/switch/index.d.ts +1 -2
  424. package/types/table/index.d.cts +1 -1
  425. package/types/table/index.d.ts +1 -1
  426. package/types/table/types.d.cts +2 -4
  427. package/types/table/types.d.ts +2 -4
  428. package/types/tabs/index.d.cts +1 -0
  429. package/types/tabs/index.d.ts +1 -0
  430. package/types/tabs/tab-panel.d.cts +1 -1
  431. package/types/tabs/tab-panel.d.ts +1 -1
  432. package/types/tabs/tabs.d.cts +1 -1
  433. package/types/tabs/tabs.d.ts +1 -1
  434. package/types/tag/index.d.cts +2 -1
  435. package/types/tag/index.d.ts +2 -1
  436. package/types/time-line/timeline-item.d.cts +1 -1
  437. package/types/time-line/timeline-item.d.ts +1 -1
  438. package/types/time-line/timeline.d.cts +1 -1
  439. package/types/time-line/timeline.d.ts +1 -1
  440. package/types/tooltip/index.d.cts +2 -2
  441. package/types/tooltip/index.d.ts +2 -2
  442. package/types/tour/index.d.cts +0 -2
  443. package/types/tour/index.d.ts +0 -2
  444. package/types/transfer/index.d.cts +2 -3
  445. package/types/transfer/index.d.ts +2 -3
  446. package/types/tree/index.d.cts +2 -4
  447. package/types/tree/index.d.ts +2 -4
  448. package/types/tree-select/index.d.cts +2 -3
  449. package/types/tree-select/index.d.ts +2 -3
  450. package/types/typography/index.d.cts +1 -1
  451. package/types/typography/index.d.ts +1 -1
  452. package/types/upload/index.d.cts +1 -2
  453. package/types/upload/index.d.ts +1 -2
  454. package/types/upload/selector.d.cts +1 -1
  455. package/types/upload/selector.d.ts +1 -1
  456. package/types/utils/popup.d.cts +11 -0
  457. package/types/utils/popup.d.ts +11 -0
  458. package/types/utils/selection-tags.d.cts +19 -0
  459. package/types/utils/selection-tags.d.ts +19 -0
  460. package/types/virtual-list/index.d.cts +1 -1
  461. package/types/virtual-list/index.d.ts +1 -1
  462. package/types/watermark/index.d.cts +1 -1
  463. package/types/watermark/index.d.ts +1 -1
@@ -1,351 +1,193 @@
1
1
  /*!
2
- * react-kui v3.0.0
2
+ * react-kui v3.1.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
- import { getChildren } from "../utils/react-node.js";
10
- import Teleport from "../base/teleport.js";
11
- import { Transition } from "../base/transition.js";
12
- import { setPlacement } from "../utils/placement.js";
9
+ import Popup from "../popup/index.js";
13
10
  import { DropdownContext } from "./dropdown-context.js";
14
- import clsx from "clsx";
15
- import React, { useCallback, useEffect, useLayoutEffect, useRef, useState } from "react";
16
- import { jsx, jsxs } from "react/jsx-runtime";
11
+ import { c } from "react/compiler-runtime";
12
+ import { useRef } from "react";
13
+ import { jsx } from "react/jsx-runtime";
17
14
  //#region components/dropdown/dropdown.tsx
18
- var Dropdown = ({ trigger = "hover", disabled = false, arrow = false, open, defaultOpen = false, show, placement = "bottom-left", target, onOpenChange, overlay, children, className = "", style, ...rest }) => {
19
- const externalOpen = open ?? show;
20
- const initialOpen = externalOpen ?? defaultOpen;
21
- const [visible, setVisible] = useState(initialOpen);
22
- const [rendered, setRendered] = useState(initialOpen);
23
- const [positioned, setPositioned] = useState(false);
24
- const [previousOpen, setPreviousOpen] = useState(externalOpen);
25
- if (previousOpen !== externalOpen) {
26
- setPreviousOpen(externalOpen);
27
- if (externalOpen !== void 0) {
28
- setVisible(externalOpen);
29
- if (externalOpen) setRendered(true);
30
- }
15
+ var Dropdown = (t0) => {
16
+ const $ = c(40);
17
+ let attrs;
18
+ let children;
19
+ let onOpenChange;
20
+ let open;
21
+ let overlay;
22
+ let show;
23
+ let t1;
24
+ let t2;
25
+ let t3;
26
+ let t4;
27
+ let target;
28
+ if ($[0] !== t0) {
29
+ ({trigger: t1, disabled: t2, arrow: t3, open, show, placement: t4, target, onOpenChange, overlay, children, ...attrs} = t0);
30
+ $[0] = t0;
31
+ $[1] = attrs;
32
+ $[2] = children;
33
+ $[3] = onOpenChange;
34
+ $[4] = open;
35
+ $[5] = overlay;
36
+ $[6] = show;
37
+ $[7] = t1;
38
+ $[8] = t2;
39
+ $[9] = t3;
40
+ $[10] = t4;
41
+ $[11] = target;
42
+ } else {
43
+ attrs = $[1];
44
+ children = $[2];
45
+ onOpenChange = $[3];
46
+ open = $[4];
47
+ overlay = $[5];
48
+ show = $[6];
49
+ t1 = $[7];
50
+ t2 = $[8];
51
+ t3 = $[9];
52
+ t4 = $[10];
53
+ target = $[11];
31
54
  }
32
- const localRefSelection = useRef(null);
33
- const refPopper = useRef(null);
34
- const [currentPlacement, setCurrentPlacement] = useState(placement);
35
- const [transOrigin, setTransOrigin] = useState("bottom");
36
- const [left, setLeft] = useState(0);
37
- const [top, setTop] = useState(0);
38
- const placementRef = useRef(placement);
39
- const transOriginRef = useRef("bottom");
40
- const leftRef = useRef(0);
41
- const topRef = useRef(0);
42
- const showTimer = useRef(null);
43
- const positionTimer = useRef(null);
44
- const initialPositionFrameRef = useRef(null);
45
- const frameRef = useRef(null);
46
- const contextmenuPosition = useRef(null);
47
- const refSelection = target || localRefSelection;
48
- const setLocalSelection = useCallback((node) => {
49
- localRefSelection.current = node;
50
- }, []);
51
- const focusMenuItem = (last = false) => {
52
- window.requestAnimationFrame(() => {
53
- window.requestAnimationFrame(() => {
54
- const items = Array.from(refPopper.current?.querySelectorAll("[role=\"menuitem\"]:not([aria-disabled=\"true\"])") || []);
55
- items[last ? items.length - 1 : 0]?.focus({ preventScroll: true });
56
- });
57
- });
58
- };
59
- const updatePosition = useCallback((e, requestedPlacement = placement) => {
60
- if (!refPopper.current) return false;
61
- const targetElement = refSelection.current;
62
- if (!targetElement) return false;
63
- const targetRect = targetElement.getBoundingClientRect();
64
- const position = e != null ? {
65
- x: e.clientX,
66
- y: e.clientY
67
- } : trigger === "contextmenu" ? contextmenuPosition.current ? {
68
- x: targetRect.left + contextmenuPosition.current.offsetX,
69
- y: targetRect.top + contextmenuPosition.current.offsetY
70
- } : null : null;
71
- placementRef.current = requestedPlacement;
72
- setPlacement({
73
- refSelection,
74
- position,
75
- refPopper,
76
- currentPlacement: placementRef,
77
- transOrigin: transOriginRef,
78
- top: topRef,
79
- left: leftRef
80
- });
81
- setCurrentPlacement((current) => current === placementRef.current ? current : placementRef.current);
82
- setTransOrigin((current_0) => current_0 === transOriginRef.current ? current_0 : transOriginRef.current);
83
- setTop((current_1) => current_1 === topRef.current ? current_1 : topRef.current);
84
- setLeft((current_2) => current_2 === leftRef.current ? current_2 : leftRef.current);
85
- return true;
86
- }, [
87
- placement,
88
- refSelection,
89
- trigger
90
- ]);
91
- useLayoutEffect(() => {
92
- if (!rendered || !visible || positioned) return;
93
- if (updatePosition(void 0, placement)) initialPositionFrameRef.current = window.requestAnimationFrame(() => {
94
- initialPositionFrameRef.current = null;
95
- setPositioned(true);
96
- });
97
- return () => {
98
- if (initialPositionFrameRef.current !== null) {
99
- cancelAnimationFrame(initialPositionFrameRef.current);
100
- initialPositionFrameRef.current = null;
101
- }
102
- };
103
- }, [
104
- placement,
105
- positioned,
106
- rendered,
107
- updatePosition,
108
- visible
109
- ]);
110
- const schedulePositionUpdate = useCallback(() => {
111
- if (frameRef.current !== null || typeof window === "undefined") return;
112
- frameRef.current = window.requestAnimationFrame(() => {
113
- frameRef.current = null;
114
- updatePosition();
115
- });
116
- }, [updatePosition]);
117
- useEffect(() => {
118
- if (visible) positionTimer.current = setTimeout(() => updatePosition(void 0, placement), 0);
119
- return () => {
120
- if (positionTimer.current) clearTimeout(positionTimer.current);
121
- positionTimer.current = null;
122
- };
123
- }, [
124
- placement,
125
- updatePosition,
126
- visible
127
- ]);
128
- useEffect(() => {
129
- if (!visible) return;
130
- const targetElement_0 = refSelection.current;
131
- if (!targetElement_0) return;
132
- const observer = typeof ResizeObserver === "undefined" ? null : new ResizeObserver(schedulePositionUpdate);
133
- observer?.observe(targetElement_0);
134
- if (refPopper.current) observer?.observe(refPopper.current);
135
- window.addEventListener("resize", schedulePositionUpdate);
136
- window.addEventListener("scroll", schedulePositionUpdate, true);
137
- return () => {
138
- observer?.disconnect();
139
- window.removeEventListener("resize", schedulePositionUpdate);
140
- window.removeEventListener("scroll", schedulePositionUpdate, true);
141
- if (frameRef.current !== null) cancelAnimationFrame(frameRef.current);
142
- frameRef.current = null;
143
- };
144
- }, [
145
- refSelection,
146
- schedulePositionUpdate,
147
- visible
148
- ]);
149
- const outsideClick = useCallback((e_0) => {
150
- const targetElement_1 = refSelection.current;
151
- if (!refPopper.current) return;
152
- const clickedEl = e_0.target;
153
- if (!refPopper.current.contains(clickedEl) && (!targetElement_1 || !targetElement_1.contains(clickedEl)) || trigger === "contextmenu" && !refPopper.current.contains(clickedEl)) {
154
- if (externalOpen === void 0) setVisible(false);
155
- onOpenChange?.(false);
156
- }
157
- }, [
158
- externalOpen,
159
- onOpenChange,
160
- refSelection,
161
- trigger
162
- ]);
163
- useEffect(() => {
164
- if (visible) document.addEventListener("click", outsideClick);
165
- else document.removeEventListener("click", outsideClick);
166
- return () => {
167
- document.removeEventListener("click", outsideClick);
55
+ const trigger = t1 === void 0 ? "hover" : t1;
56
+ const disabled = t2 === void 0 ? false : t2;
57
+ const arrow = t3 === void 0 ? false : t3;
58
+ const placement = t4 === void 0 ? "bottom-left" : t4;
59
+ const popupRef = useRef(null);
60
+ const pendingFocus = useRef(null);
61
+ let t5;
62
+ if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
63
+ t5 = () => {
64
+ if (pendingFocus.current === null) return;
65
+ const items = popupRef.current?.getPopupElement()?.querySelectorAll("[role=\"menuitem\"]:not([aria-disabled=\"true\"])");
66
+ if (!items?.length) return;
67
+ items[pendingFocus.current ? items.length - 1 : 0]?.focus({ preventScroll: true });
68
+ pendingFocus.current = null;
168
69
  };
169
- }, [outsideClick, visible]);
170
- const clearPopTimer = () => {
171
- if (showTimer.current) {
172
- clearTimeout(showTimer.current);
173
- showTimer.current = null;
174
- }
175
- };
176
- useEffect(() => () => {
177
- clearPopTimer();
178
- if (positionTimer.current) clearTimeout(positionTimer.current);
179
- if (initialPositionFrameRef.current !== null) cancelAnimationFrame(initialPositionFrameRef.current);
180
- if (frameRef.current !== null) cancelAnimationFrame(frameRef.current);
181
- }, []);
182
- const openChange = (opened, e_1) => {
183
- if (!rendered && opened) setRendered(true);
184
- if (externalOpen === void 0) setVisible(opened);
185
- onOpenChange?.(opened);
186
- if (opened) {
187
- setPositioned(false);
188
- if (trigger === "contextmenu" && e_1) {
189
- const rect = refSelection.current?.getBoundingClientRect();
190
- if (rect) contextmenuPosition.current = {
191
- offsetX: e_1.clientX - rect.left,
192
- offsetY: e_1.clientY - rect.top
193
- };
194
- }
195
- if (positionTimer.current) clearTimeout(positionTimer.current);
196
- positionTimer.current = setTimeout(() => updatePosition(e_1, placement), 0);
197
- } else if (trigger === "contextmenu") contextmenuPosition.current = null;
198
- };
199
- useEffect(() => {
200
- if (!visible) return;
201
- const handleEscape = (event) => {
202
- if (event.key !== "Escape") return;
203
- event.preventDefault();
204
- event.stopPropagation();
205
- if (externalOpen === void 0) setVisible(false);
206
- onOpenChange?.(false);
207
- refSelection.current?.focus({ preventScroll: true });
208
- };
209
- document.addEventListener("keydown", handleEscape, true);
210
- return () => document.removeEventListener("keydown", handleEscape, true);
211
- }, [
212
- externalOpen,
213
- onOpenChange,
214
- refSelection,
215
- visible
216
- ]);
217
- const mouseEnterEvent = () => {
218
- if (disabled) return;
219
- if (trigger === "hover") {
220
- clearPopTimer();
221
- openChange(true);
222
- }
223
- };
224
- const mouseLeaveEvent = () => {
225
- if (disabled) return;
226
- if (trigger === "hover") {
227
- clearPopTimer();
228
- showTimer.current = setTimeout(() => {
229
- openChange(false);
230
- }, 300);
231
- }
232
- };
233
- const clickEvent = () => {
234
- if (disabled) return;
235
- if (trigger === "click") openChange(!visible);
236
- };
237
- const contextmenuEvent = (e_2) => {
238
- if (disabled) return;
239
- if (trigger === "contextmenu") {
240
- e_2.preventDefault();
241
- openChange(true, e_2.nativeEvent);
242
- focusMenuItem();
243
- }
244
- };
245
- const childList = getChildren(children);
246
- const candidate = childList.length === 1 ? childList[0] : /* @__PURE__ */ jsx("span", { children: childList });
247
- const firstChild = React.isValidElement(candidate) ? candidate : null;
248
- const triggerProps = {};
249
- if (!target) {
250
- triggerProps.onClick = (e_3) => {
251
- clickEvent();
252
- if (firstChild?.props.onClick) firstChild.props.onClick(e_3);
70
+ $[12] = t5;
71
+ } else t5 = $[12];
72
+ const focusMenuItem = t5;
73
+ let t6;
74
+ if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
75
+ t6 = () => popupRef.current?.cancelClose();
76
+ $[13] = t6;
77
+ } else t6 = $[13];
78
+ let t7;
79
+ if ($[14] !== trigger) {
80
+ t7 = () => {
81
+ if (trigger === "hover") popupRef.current?.scheduleClose();
253
82
  };
254
- triggerProps.onMouseEnter = (e_4) => {
255
- mouseEnterEvent();
256
- if (firstChild?.props.onMouseEnter) firstChild.props.onMouseEnter(e_4);
83
+ $[14] = trigger;
84
+ $[15] = t7;
85
+ } else t7 = $[15];
86
+ let t8;
87
+ let t9;
88
+ if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
89
+ t8 = () => popupRef.current?.cancelClose();
90
+ t9 = () => {
91
+ popupRef.current?.close();
92
+ popupRef.current?.getTriggerElement()?.focus({ preventScroll: true });
257
93
  };
258
- triggerProps.onMouseLeave = (e_5) => {
259
- mouseLeaveEvent();
260
- if (firstChild?.props.onMouseLeave) firstChild.props.onMouseLeave(e_5);
94
+ $[16] = t8;
95
+ $[17] = t9;
96
+ } else {
97
+ t8 = $[16];
98
+ t9 = $[17];
99
+ }
100
+ let t10;
101
+ if ($[18] !== t7) {
102
+ t10 = {
103
+ onMouseEnter: t6,
104
+ onMouseLeave: t7,
105
+ clearPopTimer: t8,
106
+ menuSelected: t9
261
107
  };
262
- triggerProps.onContextMenu = (e_6) => {
263
- contextmenuEvent(e_6);
264
- if (firstChild?.props.onContextMenu) firstChild.props.onContextMenu(e_6);
108
+ $[18] = t7;
109
+ $[19] = t10;
110
+ } else t10 = $[19];
111
+ const t11 = open ?? show;
112
+ let t12;
113
+ if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
114
+ t12 = { "aria-haspopup": "menu" };
115
+ $[20] = t12;
116
+ } else t12 = $[20];
117
+ let t13;
118
+ if ($[21] !== onOpenChange) {
119
+ t13 = (next, detail) => {
120
+ if (next && detail.reason === "contextmenu") pendingFocus.current = false;
121
+ if (!next) pendingFocus.current = null;
122
+ onOpenChange?.(next);
265
123
  };
266
- triggerProps.onKeyDown = (e_7) => {
267
- if (e_7.key === "Escape" && visible) {
268
- e_7.preventDefault();
269
- openChange(false);
270
- } else if (e_7.key === "ArrowDown" || e_7.key === "ArrowUp") {
271
- e_7.preventDefault();
272
- openChange(true);
273
- focusMenuItem(e_7.key === "ArrowUp");
274
- } else if (trigger === "click" && (e_7.key === "Enter" || e_7.key === " ")) {
275
- e_7.preventDefault();
276
- openChange(!visible);
124
+ $[21] = onOpenChange;
125
+ $[22] = t13;
126
+ } else t13 = $[22];
127
+ let t14;
128
+ if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
129
+ t14 = (event, popup) => {
130
+ if (event.key === "ArrowDown" || event.key === "ArrowUp") {
131
+ event.preventDefault();
132
+ pendingFocus.current = event.key === "ArrowUp";
133
+ popup.open();
134
+ focusMenuItem();
277
135
  }
278
- firstChild?.props.onKeyDown?.(e_7);
279
136
  };
280
- triggerProps["aria-haspopup"] = "menu";
281
- triggerProps["aria-expanded"] = visible;
282
- }
283
- const triggerNode = target ? candidate : firstChild ? React.cloneElement(firstChild, {
284
- ref: setLocalSelection,
285
- ...triggerProps
286
- }) : /* @__PURE__ */ jsx("span", {
287
- ref: setLocalSelection,
288
- ...triggerProps,
289
- children: candidate
290
- });
291
- const popperClasses = clsx("k-dropdown", { "k-dropdown-has-arrow": arrow }, className);
292
- const overlayNode = rendered && overlay ? /* @__PURE__ */ jsx(Transition, {
293
- show: visible,
294
- name: "k-dropdown",
295
- nodeRef: refPopper,
296
- appear: true,
297
- children: /* @__PURE__ */ jsx("div", {
298
- ref: refPopper,
299
- style: {
300
- left: `${left}px`,
301
- top: `${top}px`,
302
- transformOrigin: transOrigin,
303
- ...style,
304
- visibility: positioned ? style?.visibility : "hidden"
305
- },
306
- className: popperClasses,
307
- "k-placement": currentPlacement,
308
- onMouseEnter: clearPopTimer,
309
- onMouseLeave: mouseLeaveEvent,
310
- ...rest,
311
- children: /* @__PURE__ */ jsxs("div", {
312
- className: "k-dropdown-content",
313
- children: [/* @__PURE__ */ jsx("div", {
314
- className: "k-dropdown-body",
315
- children: overlay
316
- }), arrow && /* @__PURE__ */ jsx("div", {
317
- className: "k-dropdown-arrow",
318
- children: /* @__PURE__ */ jsxs("svg", {
319
- style: { fill: "currentcolor" },
320
- viewBox: "0 0 24 8",
321
- children: [/* @__PURE__ */ jsx("path", {
322
- d: "M24,0.97087 L24,1.97087 C20,1.97087 18.5,2.97087 16.5,4.97087 C14.5,6.97087 14,7.97087 12,7.97087 C10,7.97087 9.5,6.97087 7.5,4.97087 C5.5,2.97087 4,1.97087 0,1.97087 L0,0.97087 L24,0.97087 Z",
323
- id: "ot"
324
- }), /* @__PURE__ */ jsx("path", {
325
- d: "M24,0 L24,1 C20.032328,1 18.1576594,1.985435 16.1576594,3.985435 C14.1576594,5.985435 13.3847825,7 12,7 C10.6152175,7 9.81306952,5.985435 7.81306952,3.985435 C5.81306952,1.985435 4.0114261,1 0,1 L0,0 L24,0 Z",
326
- id: "in",
327
- stroke: "currentcolor"
328
- })]
329
- })
330
- })]
331
- })
332
- })
333
- }) : null;
334
- return /* @__PURE__ */ jsxs(DropdownContext.Provider, {
335
- value: {
336
- onMouseEnter: mouseEnterEvent,
337
- onMouseLeave: mouseLeaveEvent,
338
- clearPopTimer,
339
- menuSelected: () => {
340
- openChange(false);
341
- window.requestAnimationFrame(() => refSelection.current?.focus({ preventScroll: true }));
342
- }
343
- },
344
- children: [triggerNode, /* @__PURE__ */ jsx(Teleport, {
345
- to: "body",
346
- children: overlayNode
347
- })]
348
- });
137
+ $[23] = t14;
138
+ } else t14 = $[23];
139
+ let t15;
140
+ if ($[24] !== overlay) {
141
+ t15 = /* @__PURE__ */ jsx("div", {
142
+ className: "k-dropdown-body",
143
+ children: overlay
144
+ });
145
+ $[24] = overlay;
146
+ $[25] = t15;
147
+ } else t15 = $[25];
148
+ let t16;
149
+ if ($[26] !== arrow || $[27] !== attrs || $[28] !== children || $[29] !== disabled || $[30] !== placement || $[31] !== t11 || $[32] !== t13 || $[33] !== t15 || $[34] !== target || $[35] !== trigger) {
150
+ t16 = /* @__PURE__ */ jsx(Popup, {
151
+ ...attrs,
152
+ ref: popupRef,
153
+ open: t11,
154
+ trigger,
155
+ disabled,
156
+ arrow,
157
+ placement,
158
+ target,
159
+ prefixCls: "k-dropdown",
160
+ destroyOnClose: true,
161
+ triggerProps: t12,
162
+ onOpenChange: t13,
163
+ onTriggerKeyDown: t14,
164
+ onAfterOpen: focusMenuItem,
165
+ overlay: t15,
166
+ children
167
+ });
168
+ $[26] = arrow;
169
+ $[27] = attrs;
170
+ $[28] = children;
171
+ $[29] = disabled;
172
+ $[30] = placement;
173
+ $[31] = t11;
174
+ $[32] = t13;
175
+ $[33] = t15;
176
+ $[34] = target;
177
+ $[35] = trigger;
178
+ $[36] = t16;
179
+ } else t16 = $[36];
180
+ let t17;
181
+ if ($[37] !== t10 || $[38] !== t16) {
182
+ t17 = /* @__PURE__ */ jsx(DropdownContext.Provider, {
183
+ value: t10,
184
+ children: t16
185
+ });
186
+ $[37] = t10;
187
+ $[38] = t16;
188
+ $[39] = t17;
189
+ } else t17 = $[39];
190
+ return t17;
349
191
  };
350
192
  //#endregion
351
193
  export { Dropdown as default };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * react-kui v3.0.0
2
+ * react-kui v3.1.0
3
3
  * Copyright 2017-present, kui-react.
4
4
  * All rights reserved.
5
5
  * Homepage: https://react.k-ui.cn
package/es/empty/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * react-kui v3.0.0
2
+ * react-kui v3.1.0
3
3
  * Copyright 2017-present, kui-react.
4
4
  * All rights reserved.
5
5
  * Homepage: https://react.k-ui.cn
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * react-kui v3.0.0
2
+ * react-kui v3.1.0
3
3
  * Copyright 2017-present, kui-react.
4
4
  * All rights reserved.
5
5
  * Homepage: https://react.k-ui.cn
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * react-kui v3.0.0
2
+ * react-kui v3.1.0
3
3
  * Copyright 2017-present, kui-react.
4
4
  * All rights reserved.
5
5
  * Homepage: https://react.k-ui.cn
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * react-kui v3.0.0
2
+ * react-kui v3.1.0
3
3
  * Copyright 2017-present, kui-react.
4
4
  * All rights reserved.
5
5
  * Homepage: https://react.k-ui.cn
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * react-kui v3.0.0
2
+ * react-kui v3.1.0
3
3
  * Copyright 2017-present, kui-react.
4
4
  * All rights reserved.
5
5
  * Homepage: https://react.k-ui.cn
package/es/flex/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * react-kui v3.0.0
2
+ * react-kui v3.1.0
3
3
  * Copyright 2017-present, kui-react.
4
4
  * All rights reserved.
5
5
  * Homepage: https://react.k-ui.cn
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * react-kui v3.0.0
2
+ * react-kui v3.1.0
3
3
  * Copyright 2017-present, kui-react.
4
4
  * All rights reserved.
5
5
  * Homepage: https://react.k-ui.cn
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * react-kui v3.0.0
2
+ * react-kui v3.1.0
3
3
  * Copyright 2017-present, kui-react.
4
4
  * All rights reserved.
5
5
  * Homepage: https://react.k-ui.cn
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * react-kui v3.0.0
2
+ * react-kui v3.1.0
3
3
  * Copyright 2017-present, kui-react.
4
4
  * All rights reserved.
5
5
  * Homepage: https://react.k-ui.cn
@@ -8,9 +8,9 @@
8
8
 
9
9
  import zh_CN_default from "../locale/zh-CN.js";
10
10
  import { ConfigContext } from "../config/config-context.js";
11
+ import { Transition } from "../base/transition.js";
11
12
  import { FormContext } from "./form-context.js";
12
13
  import { FormFieldProvider, isFormFieldComponent } from "./field-context.js";
13
- import { Transition } from "../base/transition.js";
14
14
  import Col from "../row-col/col.js";
15
15
  import Row from "../row-col/row.js";
16
16
  import clsx from "clsx";
package/es/form/form.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * react-kui v3.0.0
2
+ * react-kui v3.1.0
3
3
  * Copyright 2017-present, kui-react.
4
4
  * All rights reserved.
5
5
  * Homepage: https://react.k-ui.cn
package/es/form/utils.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * react-kui v3.0.0
2
+ * react-kui v3.1.0
3
3
  * Copyright 2017-present, kui-react.
4
4
  * All rights reserved.
5
5
  * Homepage: https://react.k-ui.cn
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * react-kui v3.0.0
2
+ * react-kui v3.1.0
3
3
  * Copyright 2017-present, kui-react.
4
4
  * All rights reserved.
5
5
  * Homepage: https://react.k-ui.cn
package/es/grid/grid.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * react-kui v3.0.0
2
+ * react-kui v3.1.0
3
3
  * Copyright 2017-present, kui-react.
4
4
  * All rights reserved.
5
5
  * Homepage: https://react.k-ui.cn
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * react-kui v3.0.0
2
+ * react-kui v3.1.0
3
3
  * Copyright 2017-present, kui-react.
4
4
  * All rights reserved.
5
5
  * Homepage: https://react.k-ui.cn
package/es/icon/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * react-kui v3.0.0
2
+ * react-kui v3.1.0
3
3
  * Copyright 2017-present, kui-react.
4
4
  * All rights reserved.
5
5
  * Homepage: https://react.k-ui.cn