react-kui 3.1.2 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (398) hide show
  1. package/README.zh-CN.md +3 -1
  2. package/ai/kui-components.json +918 -324
  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 +112 -92
  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 +556 -207
  177. package/es/table/utils.js +140 -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/segmented/index.d.cts +2 -1
  360. package/types/segmented/index.d.ts +2 -1
  361. package/types/select/select.d.cts +2 -0
  362. package/types/select/select.d.ts +2 -0
  363. package/types/stat-card/stat-card.d.cts +3 -3
  364. package/types/stat-card/stat-card.d.ts +3 -3
  365. package/types/stat-card/utils/stat-item-key.d.cts +11 -0
  366. package/types/stat-card/utils/stat-item-key.d.ts +11 -0
  367. package/types/table/column-setting.d.cts +4 -4
  368. package/types/table/column-setting.d.ts +4 -4
  369. package/types/table/index.d.cts +2 -2
  370. package/types/table/index.d.ts +2 -2
  371. package/types/table/types.d.cts +21 -2
  372. package/types/table/types.d.ts +21 -2
  373. package/types/table/utils.d.cts +75 -0
  374. package/types/table/utils.d.ts +75 -0
  375. package/types/tag/index.d.cts +2 -2
  376. package/types/tag/index.d.ts +2 -2
  377. package/types/tooltip/index.d.cts +2 -0
  378. package/types/tooltip/index.d.ts +2 -0
  379. package/types/transfer/index.d.cts +3 -2
  380. package/types/transfer/index.d.ts +3 -2
  381. package/types/tree-select/index.d.cts +3 -1
  382. package/types/tree-select/index.d.ts +3 -1
  383. package/types/utils/checked.d.cts +1 -1
  384. package/types/utils/checked.d.ts +1 -1
  385. package/types/utils/color.d.cts +13 -0
  386. package/types/utils/color.d.ts +13 -0
  387. package/types/utils/css.d.cts +2 -0
  388. package/types/utils/css.d.ts +2 -0
  389. package/types/utils/focus.d.cts +5 -0
  390. package/types/utils/focus.d.ts +5 -0
  391. package/types/utils/overlay-order.d.cts +6 -0
  392. package/types/utils/overlay-order.d.ts +6 -0
  393. package/types/utils/overlay-stack.d.cts +13 -0
  394. package/types/utils/overlay-stack.d.ts +13 -0
  395. package/types/utils/promise.d.cts +5 -0
  396. package/types/utils/promise.d.ts +5 -0
  397. package/types/utils/react-node.d.cts +10 -0
  398. package/types/utils/react-node.d.ts +10 -0
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * react-kui v3.1.2
2
+ * react-kui v3.2.1
3
3
  * Copyright 2017-present, kui-react.
4
4
  * All rights reserved.
5
5
  * Homepage: https://react.k-ui.cn
@@ -21,6 +21,27 @@ var DEFAULTS = {
21
21
  };
22
22
  var MAX_RIPPLES = 12;
23
23
  var BASE_SPEED = 340;
24
+ /**
25
+ * Chrome 156 renames the experimental boolean `layoutsubtree` to the
26
+ * standardized `content="drawable"`, and the element handed to
27
+ * `drawElementImage()` now declares itself with its own `drawable` attribute
28
+ * (WICG html-in-canvas issue #169). Browsers advertise the new spelling with a
29
+ * reflected `content` IDL attribute, so the shape is read off the prototype
30
+ * rather than sniffed from a version string: every release only ever sees the
31
+ * attribute it understands.
32
+ */
33
+ function htmlInCanvasMarkup() {
34
+ const legacy = {
35
+ canvas: { layoutsubtree: "true" },
36
+ element: {}
37
+ };
38
+ if (typeof document === "undefined") return legacy;
39
+ if (!("content" in HTMLCanvasElement.prototype)) return legacy;
40
+ return {
41
+ canvas: { content: "drawable" },
42
+ element: { drawable: "" }
43
+ };
44
+ }
24
45
  var VERT = `#version 300 es
25
46
  precision highp float;
26
47
  layout(location = 0) in vec2 aPos;
@@ -81,8 +102,15 @@ void main () {
81
102
  float shade = pow(clamp(-g * 1.6, 0.0, 1.0), 2.0) * uShine * 0.3;
82
103
 
83
104
  if (uHasContent < 0.5) {
84
- float a = clamp(glint * 0.9 + shade * 0.5, 0.0, 0.85);
85
- outColor = vec4(vec3(glint * 0.9), a);
105
+ // Degraded overlay: the page behind the canvas cannot be sampled here, so
106
+ // the wave has to paint itself. White on the lit flank alone vanishes over
107
+ // light content and black on the shadow flank alone vanishes over dark
108
+ // content, so each ring half takes the tone its slope points at and the
109
+ // ripple stays legible whatever the host page is coloured like.
110
+ float dark = pow(clamp(-g * 1.6, 0.0, 1.0), 2.0) * uShine;
111
+ float a = clamp((glint + dark) * 0.8, 0.0, 0.5);
112
+ vec3 tone = glint > dark ? vec3(1.0) : vec3(0.0);
113
+ outColor = vec4(tone * a, a);
86
114
  return;
87
115
  }
88
116
 
@@ -141,22 +169,46 @@ function createRipple(elements, options = {}) {
141
169
  let wake = () => {};
142
170
  let appearanceFrame = 0;
143
171
  let appearanceObserver = null;
144
- if (htmlInCanvas) {
145
- paintable.onpaint = () => {
172
+ let usesPaintEvent = false;
173
+ /**
174
+ * Keep the live DOM copy lined up with the pixels drawn from it, so pointer
175
+ * input, focus rings and screen reader bounds land where the user sees them.
176
+ * Which half of that job the browser does changed twice, so the branch keys
177
+ * off what the draw call actually hands back instead of a version number.
178
+ */
179
+ function syncGeometry(transform) {
180
+ if (transform && typeof transform.toString === "function") {
181
+ if (paintable.updateElementGeometry) paintable.updateElementGeometry(content, { canvasTransform: transform });
182
+ else content.style.transform = transform.toString();
183
+ return;
184
+ }
185
+ if (content.style.transform) content.style.transform = "";
186
+ }
187
+ function onPaint() {
188
+ try {
189
+ sourceCtx.reset();
190
+ for (const background of getBackgroundStack(content)) {
191
+ sourceCtx.fillStyle = background;
192
+ sourceCtx.fillRect(0, 0, source.width, source.height);
193
+ }
194
+ const transform = sourceCtx.drawElementImage(content, 0, 0);
195
+ contentDirty = true;
146
196
  try {
147
- sourceCtx.reset();
148
- for (const background of getBackgroundStack(content)) {
149
- sourceCtx.fillStyle = background;
150
- sourceCtx.fillRect(0, 0, source.width, source.height);
151
- }
152
- const transform = sourceCtx.drawElementImage(content, 0, 0);
153
- if (transform) content.style.transform = transform.toString();
154
- contentDirty = true;
155
- wake();
197
+ syncGeometry(transform);
156
198
  } catch (error) {
157
- console.error("Ripple failed to capture its HTML content:", error);
199
+ console.error("Ripple failed to align its HTML content:", error);
158
200
  }
159
- };
201
+ wake();
202
+ } catch (error) {
203
+ console.error("Ripple failed to capture its HTML content:", error);
204
+ }
205
+ }
206
+ if (htmlInCanvas) {
207
+ if ("onpaint" in paintable) paintable.onpaint = onPaint;
208
+ else {
209
+ usesPaintEvent = true;
210
+ source.addEventListener("paint", onPaint);
211
+ }
160
212
  appearanceObserver = new MutationObserver(() => {
161
213
  cancelAnimationFrame(appearanceFrame);
162
214
  appearanceFrame = requestAnimationFrame(() => {
@@ -423,11 +475,12 @@ function createRipple(elements, options = {}) {
423
475
  gl.deleteShader(fragmentShader);
424
476
  gl.deleteBuffer(quad);
425
477
  if (htmlInCanvas) {
426
- paintable.onpaint = null;
478
+ if (usesPaintEvent) source.removeEventListener("paint", onPaint);
479
+ else paintable.onpaint = null;
427
480
  content.style.removeProperty("transform");
428
481
  }
429
482
  }
430
483
  };
431
484
  }
432
485
  //#endregion
433
- export { createRipple, supportsHtmlInCanvas };
486
+ export { createRipple, htmlInCanvasMarkup, supportsHtmlInCanvas };
package/es/row-col/col.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * react-kui v3.1.2
2
+ * react-kui v3.2.1
3
3
  * Copyright 2017-present, kui-react.
4
4
  * All rights reserved.
5
5
  * Homepage: https://react.k-ui.cn
package/es/row-col/row.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * react-kui v3.1.2
2
+ * react-kui v3.2.1
3
3
  * Copyright 2017-present, kui-react.
4
4
  * All rights reserved.
5
5
  * Homepage: https://react.k-ui.cn
@@ -1,12 +1,12 @@
1
1
  /*!
2
- * react-kui v3.1.2
2
+ * react-kui v3.2.1
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 { useConfigAppearance } from "../config/use-config-appearance.js";
9
+ import { useFormAppearance } from "../config/use-config-appearance.js";
10
10
  import Icon from "../icon/index.js";
11
11
  import { useValue } from "../utils/use-value.js";
12
12
  import { createFormFieldComponent } from "../form/field-context.js";
@@ -15,8 +15,13 @@ import clsx from "clsx";
15
15
  import { useEffect, useRef, useState } from "react";
16
16
  import { jsx, jsxs } from "react/jsx-runtime";
17
17
  //#region components/segmented/index.tsx
18
+ var isOptionObject = (option) => typeof option === "object" && option !== null;
19
+ var normalizeOptions = (options) => options.map((option) => isOptionObject(option) ? option : {
20
+ label: option,
21
+ value: option
22
+ });
18
23
  var Segmented = (t0) => {
19
- const $ = c(47);
24
+ const $ = c(50);
20
25
  let className;
21
26
  let onChange;
22
27
  let onKeyDown;
@@ -66,7 +71,7 @@ var Segmented = (t0) => {
66
71
  const readOnly = t3 === void 0 ? false : t3;
67
72
  const block = t4 === void 0 ? false : t4;
68
73
  const direction = t5 === void 0 ? "horizontal" : t5;
69
- const inheritedAppearance = useConfigAppearance();
74
+ const inheritedAppearance = useFormAppearance();
70
75
  const size = sizeProp ?? inheritedAppearance.size ?? "medium";
71
76
  const shape = shapeProp ?? inheritedAppearance.shape ?? "round";
72
77
  const rootRef = useRef(null);
@@ -78,64 +83,73 @@ var Segmented = (t0) => {
78
83
  const itemRefs = useRef(t6);
79
84
  const [innerValue, setInnerValue] = useValue(value, _temp);
80
85
  const currentValue = innerValue;
86
+ const items = normalizeOptions(options);
81
87
  let t7;
82
- if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
83
- t7 = {};
84
- $[15] = t7;
85
- } else t7 = $[15];
86
- const [indicatorStyle, setIndicatorStyle] = useState(t7);
88
+ if ($[15] !== currentValue) {
89
+ t7 = (item) => item.value === currentValue;
90
+ $[15] = currentValue;
91
+ $[16] = t7;
92
+ } else t7 = $[16];
93
+ const selectedItem = items.find(t7);
94
+ const focusValue = selectedItem && !selectedItem.disabled ? selectedItem.value : items.find(_temp2)?.value;
95
+ let t8;
96
+ if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
97
+ t8 = {};
98
+ $[17] = t8;
99
+ } else t8 = $[17];
100
+ const [indicatorStyle, setIndicatorStyle] = useState(t8);
87
101
  const [ready, setReady] = useState(false);
88
102
  const vertical = direction === "vertical";
89
- let t8;
90
- if ($[16] !== currentValue || $[17] !== vertical) {
91
- t8 = () => {
92
- const item = currentValue === void 0 ? void 0 : itemRefs.current.get(currentValue);
93
- if (!item) {
103
+ let t9;
104
+ if ($[18] !== currentValue || $[19] !== vertical) {
105
+ t9 = () => {
106
+ const item_1 = currentValue === void 0 ? void 0 : itemRefs.current.get(currentValue);
107
+ if (!item_1) {
94
108
  setReady(false);
95
109
  setIndicatorStyle({});
96
110
  return;
97
111
  }
98
112
  setIndicatorStyle(vertical ? {
99
- height: item.offsetHeight,
100
- top: item.offsetTop
113
+ height: item_1.offsetHeight,
114
+ top: item_1.offsetTop
101
115
  } : {
102
- width: item.offsetWidth,
103
- left: item.offsetLeft
116
+ width: item_1.offsetWidth,
117
+ left: item_1.offsetLeft
104
118
  });
105
119
  requestAnimationFrame(() => setReady(true));
106
120
  };
107
- $[16] = currentValue;
108
- $[17] = vertical;
109
- $[18] = t8;
110
- } else t8 = $[18];
111
- const updateIndicator = t8;
112
- let t9;
113
- if ($[19] !== updateIndicator) {
114
- t9 = () => {
121
+ $[18] = currentValue;
122
+ $[19] = vertical;
123
+ $[20] = t9;
124
+ } else t9 = $[20];
125
+ const updateIndicator = t9;
126
+ let t10;
127
+ if ($[21] !== updateIndicator) {
128
+ t10 = () => {
115
129
  updateIndicator();
116
130
  const observer = new ResizeObserver(updateIndicator);
117
131
  if (rootRef.current) observer.observe(rootRef.current);
118
132
  return () => observer.disconnect();
119
133
  };
120
- $[19] = updateIndicator;
121
- $[20] = t9;
122
- } else t9 = $[20];
123
- useEffect(t9, [options, updateIndicator]);
124
- let t10;
125
- if ($[21] !== currentValue || $[22] !== disabled || $[23] !== onChange || $[24] !== readOnly || $[25] !== setInnerValue) {
126
- t10 = (option) => {
134
+ $[21] = updateIndicator;
135
+ $[22] = t10;
136
+ } else t10 = $[22];
137
+ useEffect(t10, [options, updateIndicator]);
138
+ let t11;
139
+ if ($[23] !== currentValue || $[24] !== disabled || $[25] !== onChange || $[26] !== readOnly || $[27] !== setInnerValue) {
140
+ t11 = (option) => {
127
141
  if (disabled || readOnly || option.disabled || option.value === currentValue) return;
128
142
  setInnerValue(option.value);
129
143
  onChange?.(option.value);
130
144
  };
131
- $[21] = currentValue;
132
- $[22] = disabled;
133
- $[23] = onChange;
134
- $[24] = readOnly;
135
- $[25] = setInnerValue;
136
- $[26] = t10;
137
- } else t10 = $[26];
138
- const select = t10;
145
+ $[23] = currentValue;
146
+ $[24] = disabled;
147
+ $[25] = onChange;
148
+ $[26] = readOnly;
149
+ $[27] = setInnerValue;
150
+ $[28] = t11;
151
+ } else t11 = $[28];
152
+ const select = t11;
139
153
  const move = (event) => {
140
154
  onKeyDown?.(event);
141
155
  if (event.defaultPrevented || ![
@@ -146,7 +160,7 @@ var Segmented = (t0) => {
146
160
  "Home",
147
161
  "End"
148
162
  ].includes(event.key)) return;
149
- const available = options.filter(_temp2);
163
+ const available = items.filter(_temp3);
150
164
  if (!available.length || disabled || readOnly) return;
151
165
  event.preventDefault();
152
166
  const current = available.findIndex((option_1) => option_1.value === currentValue);
@@ -156,27 +170,28 @@ var Segmented = (t0) => {
156
170
  requestAnimationFrame(() => itemRefs.current.get(next_0.value)?.focus());
157
171
  }
158
172
  };
159
- const t11 = `k-segmented-${size}`;
160
- const t12 = `k-segmented-${shape}`;
161
- let t13;
162
- if ($[27] !== block || $[28] !== className || $[29] !== disabled || $[30] !== t11 || $[31] !== t12 || $[32] !== vertical) {
163
- t13 = clsx("k-segmented", t11, t12, {
173
+ const t12 = `k-segmented-${size}`;
174
+ const t13 = `k-segmented-${shape}`;
175
+ let t14;
176
+ if ($[29] !== block || $[30] !== className || $[31] !== disabled || $[32] !== t12 || $[33] !== t13 || $[34] !== vertical) {
177
+ t14 = clsx("k-segmented", t12, t13, {
164
178
  "k-segmented-block": block,
165
179
  "k-segmented-vertical": vertical,
166
180
  "k-segmented-disabled": disabled
167
181
  }, className);
168
- $[27] = block;
169
- $[28] = className;
170
- $[29] = disabled;
171
- $[30] = t11;
172
- $[31] = t12;
173
- $[32] = vertical;
182
+ $[29] = block;
183
+ $[30] = className;
184
+ $[31] = disabled;
185
+ $[32] = t12;
174
186
  $[33] = t13;
175
- } else t13 = $[33];
176
- const t14 = "radiogroup";
177
- const t15 = disabled || void 0;
178
- const t16 = readOnly || void 0;
179
- const t17 = options.map((option_2) => /* @__PURE__ */ jsxs("button", {
187
+ $[34] = vertical;
188
+ $[35] = t14;
189
+ } else t14 = $[35];
190
+ const t15 = "radiogroup";
191
+ const t16 = vertical ? "vertical" : "horizontal";
192
+ const t17 = disabled || void 0;
193
+ const t18 = readOnly || void 0;
194
+ const t19 = items.map((option_2) => /* @__PURE__ */ jsxs("button", {
180
195
  ref: (node) => {
181
196
  if (node) itemRefs.current.set(option_2.value, node);
182
197
  else itemRefs.current.delete(option_2.value);
@@ -186,54 +201,59 @@ var Segmented = (t0) => {
186
201
  role: "radio",
187
202
  "aria-checked": option_2.value === currentValue,
188
203
  disabled: disabled || option_2.disabled,
189
- tabIndex: option_2.value === currentValue ? 0 : -1,
204
+ tabIndex: option_2.value === focusValue ? 0 : -1,
190
205
  onClick: () => select(option_2),
191
206
  children: [option_2.icon && /* @__PURE__ */ jsx(Icon, { type: option_2.icon }), /* @__PURE__ */ jsx("span", { children: renderLabel?.(option_2, option_2.value === currentValue) ?? option_2.label ?? option_2.value })]
192
207
  }, option_2.value));
193
- let t18;
194
- if ($[34] !== ready) {
195
- t18 = clsx("k-segmented-indicator", { "is-ready": ready });
196
- $[34] = ready;
197
- $[35] = t18;
198
- } else t18 = $[35];
199
- let t19;
200
- if ($[36] !== indicatorStyle || $[37] !== t18) {
201
- t19 = /* @__PURE__ */ jsx("span", {
202
- className: t18,
208
+ let t20;
209
+ if ($[36] !== ready) {
210
+ t20 = clsx("k-segmented-indicator", { "is-ready": ready });
211
+ $[36] = ready;
212
+ $[37] = t20;
213
+ } else t20 = $[37];
214
+ let t21;
215
+ if ($[38] !== indicatorStyle || $[39] !== t20) {
216
+ t21 = /* @__PURE__ */ jsx("span", {
217
+ className: t20,
203
218
  style: indicatorStyle
204
219
  });
205
- $[36] = indicatorStyle;
206
- $[37] = t18;
207
- $[38] = t19;
208
- } else t19 = $[38];
209
- let t20;
210
- if ($[39] !== move || $[40] !== rest || $[41] !== t13 || $[42] !== t15 || $[43] !== t16 || $[44] !== t17 || $[45] !== t19) {
211
- t20 = /* @__PURE__ */ jsxs("div", {
220
+ $[38] = indicatorStyle;
221
+ $[39] = t20;
222
+ $[40] = t21;
223
+ } else t21 = $[40];
224
+ let t22;
225
+ if ($[41] !== move || $[42] !== rest || $[43] !== t14 || $[44] !== t16 || $[45] !== t17 || $[46] !== t18 || $[47] !== t19 || $[48] !== t21) {
226
+ t22 = /* @__PURE__ */ jsxs("div", {
212
227
  ...rest,
213
228
  ref: rootRef,
214
- className: t13,
215
- role: t14,
216
- "aria-disabled": t15,
217
- "aria-readonly": t16,
229
+ className: t14,
230
+ role: t15,
231
+ "aria-orientation": t16,
232
+ "aria-disabled": t17,
233
+ "aria-readonly": t18,
218
234
  onKeyDown: move,
219
- children: [t17, t19]
235
+ children: [t19, t21]
220
236
  });
221
- $[39] = move;
222
- $[40] = rest;
223
- $[41] = t13;
224
- $[42] = t15;
225
- $[43] = t16;
226
- $[44] = t17;
227
- $[45] = t19;
228
- $[46] = t20;
229
- } else t20 = $[46];
230
- return t20;
237
+ $[41] = move;
238
+ $[42] = rest;
239
+ $[43] = t14;
240
+ $[44] = t16;
241
+ $[45] = t17;
242
+ $[46] = t18;
243
+ $[47] = t19;
244
+ $[48] = t21;
245
+ $[49] = t22;
246
+ } else t22 = $[49];
247
+ return t22;
231
248
  };
232
249
  var segmented_default = createFormFieldComponent(Segmented);
233
250
  function _temp(next) {
234
251
  return next;
235
252
  }
236
- function _temp2(option_0) {
253
+ function _temp2(item_0) {
254
+ return !item_0.disabled;
255
+ }
256
+ function _temp3(option_0) {
237
257
  return !option_0.disabled;
238
258
  }
239
259
  //#endregion
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * react-kui v3.1.2
2
+ * react-kui v3.2.1
3
3
  * Copyright 2017-present, kui-react.
4
4
  * All rights reserved.
5
5
  * Homepage: https://react.k-ui.cn
@@ -1,16 +1,15 @@
1
1
  /*!
2
- * react-kui v3.1.2
2
+ * react-kui v3.2.1
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 zh_CN_default from "../locale/zh-CN.js";
10
- import { ConfigContext } from "../config/config-context.js";
9
+ import { ConfigContext, DEFAULT_LOCALE } from "../config/config-context.js";
11
10
  import { getChildren } from "../utils/react-node.js";
12
11
  import Popup from "../popup/index.js";
13
- import { useConfigAppearance } from "../config/use-config-appearance.js";
12
+ import { resolveTheme, useFormAppearance } from "../config/use-config-appearance.js";
14
13
  import { ChevronDown, CircleX, Loading } from "../node_modules/.pnpm/kui-icons@5.0.0/node_modules/kui-icons/dist/kui-icons.esm.js";
15
14
  import Icon from "../icon/index.js";
16
15
  import { useValue } from "../utils/use-value.js";
@@ -29,12 +28,13 @@ var normalizeValue = (value) => {
29
28
  if (isEmpty(value)) return [];
30
29
  return typeof value === "string" || typeof value === "number" ? [value] : [];
31
30
  };
32
- var Select = ({ placeholder, size: sizeProp, placement = "bottom-left", width, maxTagCount, value, open: openProp, clearable = true, filterable = false, allowCreate = false, block = false, disabled = false, readOnly = false, multiple = false, loading = false, bordered = true, extendWidth = true, showArrow = true, options, theme: themeProp, emptyText, loadingText, icon, shape: shapeProp, virtual = false, itemHeight = 33, overscan = 5, arrowIcon, onSearch, onChange, onSelect, onClear: onClearCallback, onOpenChange, children, className = "", style, ...rest }) => {
33
- const inheritedAppearance = useConfigAppearance();
31
+ var isSameLabelMap = (next, previous) => next.size === previous.size && [...next].every(([val, label]) => previous.has(val) && Object.is(previous.get(val), label));
32
+ var Select = ({ placeholder, size: sizeProp, placement = "bottom-left", destroyOnClose = true, width, maxTagCount, value, open: openProp, clearable = true, filterable = false, allowCreate = false, block = false, disabled = false, readOnly = false, multiple = false, loading = false, bordered = true, extendWidth = true, showArrow = true, options, theme: themeProp, emptyText, loadingText, icon, shape: shapeProp, virtual = false, itemHeight = 33, overscan = 5, arrowIcon, onSearch, onChange, onSelect, onClear: onClearCallback, onOpenChange, children, className = "", style, ...rest }) => {
33
+ const inheritedAppearance = useFormAppearance();
34
34
  const size = sizeProp ?? inheritedAppearance.size;
35
- const theme = themeProp ?? inheritedAppearance.theme ?? "fill";
35
+ const theme = resolveTheme(themeProp ?? inheritedAppearance.theme, "fill");
36
36
  const shape = shapeProp ?? inheritedAppearance.shape;
37
- const locale = useContext(ConfigContext)?.locale || zh_CN_default;
37
+ const locale = useContext(ConfigContext)?.locale || DEFAULT_LOCALE;
38
38
  const [innerVisible, setInnerVisible] = useValue(openProp, (next) => next ?? false);
39
39
  const visible = innerVisible;
40
40
  const setVisible = (next_0) => {
@@ -99,14 +99,14 @@ var Select = ({ placeholder, size: sizeProp, placement = "bottom-left", width, m
99
99
  const optionHeight = optionEl.offsetHeight;
100
100
  containerEl.scrollTop = optionTop - containerEl.clientHeight / 2 + optionHeight / 2;
101
101
  };
102
- const [selectedLabels, setSelectedLabels] = useState(/* @__PURE__ */ new Map());
102
+ const [selectedLabels, setSelectedLabels] = useState(() => /* @__PURE__ */ new Map());
103
103
  const lookup = new Map((loading && options ? options : optionsData).map((item) => [item.value, item.label]));
104
104
  const nextLabels = new Map(currentValue.map((val_0) => [val_0, lookup.get(val_0) ?? selectedLabels.get(val_0) ?? val_0]));
105
- if (nextLabels.size !== selectedLabels.size || [...nextLabels].some(([val_1, label_0]) => selectedLabels.get(val_1) !== label_0)) setSelectedLabels(nextLabels);
106
- const labelText = currentValue.map((val_2) => nextLabels.get(val_2));
107
- const isChecked = (val_3) => {
108
- if (multiple) return currentValue.indexOf(val_3) >= 0;
109
- else return !isEmpty(currentValue) && currentValue[0] === val_3;
105
+ if (!isSameLabelMap(nextLabels, selectedLabels)) setSelectedLabels(nextLabels);
106
+ const labelText = currentValue.map((val_1) => nextLabels.get(val_1));
107
+ const isChecked = (val_2) => {
108
+ if (multiple) return currentValue.indexOf(val_2) >= 0;
109
+ else return !isEmpty(currentValue) && currentValue[0] === val_2;
110
110
  };
111
111
  function clearQuery() {
112
112
  setActiveIndex(-1);
@@ -127,14 +127,14 @@ var Select = ({ placeholder, size: sizeProp, placement = "bottom-left", width, m
127
127
  };
128
128
  function handleSelect(item_0) {
129
129
  if (disabled || readOnly) return;
130
- const { value: val_4, label: lbl } = item_0;
130
+ const { value: val_3, label: lbl } = item_0;
131
131
  let selected = true;
132
132
  let nextValue = [...currentValue];
133
133
  if (multiple) {
134
- if (nextValue.indexOf(val_4) >= 0) {
134
+ if (nextValue.indexOf(val_3) >= 0) {
135
135
  selected = false;
136
- nextValue = nextValue.filter((v) => v !== val_4);
137
- } else nextValue.push(val_4);
136
+ nextValue = nextValue.filter((v) => v !== val_3);
137
+ } else nextValue.push(val_3);
138
138
  setTimeout(updatePosition, 0);
139
139
  if (searchable) {
140
140
  if (queryInputRef.current) {
@@ -142,11 +142,11 @@ var Select = ({ placeholder, size: sizeProp, placement = "bottom-left", width, m
142
142
  queryInputRef.current.style.width = "";
143
143
  }
144
144
  setQueryKey("");
145
- setActiveIndex(optionsData.findIndex((option_0) => option_0.value === val_4));
145
+ setActiveIndex(optionsData.findIndex((option_0) => option_0.value === val_3));
146
146
  showQuery();
147
147
  }
148
148
  } else {
149
- nextValue = [val_4];
149
+ nextValue = [val_3];
150
150
  setVisible(false);
151
151
  onOpenChange?.(false);
152
152
  clearQuery();
@@ -156,7 +156,7 @@ var Select = ({ placeholder, size: sizeProp, placement = "bottom-left", width, m
156
156
  const outputValue = multiple ? nextValue : nextValue[0];
157
157
  onChange?.(outputValue);
158
158
  onSelect?.({
159
- value: val_4,
159
+ value: val_3,
160
160
  label: lbl,
161
161
  selected
162
162
  });
@@ -319,17 +319,17 @@ var Select = ({ placeholder, size: sizeProp, placement = "bottom-left", width, m
319
319
  } else if (e_1.key === "Tab") closeDropdown();
320
320
  };
321
321
  const renderOption = (item_3, index_3) => {
322
- const { label: label_1, value: val_5, disabled: optionDisabled } = item_3;
322
+ const { label: label_0, value: val_4, disabled: optionDisabled } = item_3;
323
323
  return /* @__PURE__ */ jsx(Option, {
324
324
  onSelect: handleSelect,
325
325
  onMouseEnter: optionDisabled ? void 0 : () => onMouseenter(index_3),
326
326
  active: activeIndex === index_3,
327
- value: val_5,
328
- label: label_1,
327
+ value: val_4,
328
+ label: label_0,
329
329
  disabled: optionDisabled,
330
- checked: isChecked(val_5),
330
+ checked: isChecked(val_4),
331
331
  multiple
332
- }, `${val_5}-${label_1}`);
332
+ }, `${val_4}-${label_0}`);
333
333
  };
334
334
  const queryKeydown = (e_2) => {
335
335
  if (disabled || readOnly) return;
@@ -387,7 +387,7 @@ var Select = ({ placeholder, size: sizeProp, placement = "bottom-left", width, m
387
387
  prefixCls: "k-select-dropdown",
388
388
  transitionName: "k-select",
389
389
  matchTriggerWidth: extendWidth,
390
- destroyOnClose: true,
390
+ destroyOnClose,
391
391
  onOpenChange: (next_2) => {
392
392
  if (!next_2) closeDropdown();
393
393
  },
@@ -458,10 +458,10 @@ var Select = ({ placeholder, size: sizeProp, placement = "bottom-left", width, m
458
458
  "k-select-readonly": readOnly,
459
459
  "k-select-block": block,
460
460
  "k-select-opened": visible,
461
- "k-select-borderless": bordered === false || theme === "plain",
461
+ "k-select-borderless": bordered === false,
462
+ [`k-select-${theme}`]: true,
462
463
  "k-select-lg": size === "large",
463
464
  "k-select-sm": size === "small",
464
- "k-select-fill": theme === "fill",
465
465
  "k-select-has-icon": icon,
466
466
  "k-select-circle": shape === "circle" && !multiple,
467
467
  "k-select-square": shape === "square",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * react-kui v3.1.2
2
+ * react-kui v3.2.1
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.1.2
2
+ * react-kui v3.2.1
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.1.2
2
+ * react-kui v3.2.1
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.1.2
2
+ * react-kui v3.2.1
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.1.2
2
+ * react-kui v3.2.1
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.1.2
2
+ * react-kui v3.2.1
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.1.2
2
+ * react-kui v3.2.1
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.1.2
2
+ * react-kui v3.2.1
3
3
  * Copyright 2017-present, kui-react.
4
4
  * All rights reserved.
5
5
  * Homepage: https://react.k-ui.cn