react-kui 3.1.1 → 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 +33 -36
  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
@@ -1,15 +1,14 @@
1
1
  /*!
2
- * react-kui v3.1.1
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
- 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 Popup from "../popup/index.js";
12
- import { useConfigAppearance } from "../config/use-config-appearance.js";
11
+ import { useFormAppearance } from "../config/use-config-appearance.js";
13
12
  import { Loading } from "../node_modules/.pnpm/kui-icons@5.0.0/node_modules/kui-icons/dist/kui-icons.esm.js";
14
13
  import Icon from "../icon/index.js";
15
14
  import { useValue } from "../utils/use-value.js";
@@ -22,7 +21,9 @@ import { jsx, jsxs } from "react/jsx-runtime";
22
21
  //#region components/auto-complete/index.tsx
23
22
  var EMPTY_OPTIONS = [];
24
23
  var AutoComplete = (t0) => {
25
- const $ = c(165);
24
+ const $ = c(175);
25
+ let addonAfter;
26
+ let addonBefore;
26
27
  let className;
27
28
  let disabled;
28
29
  let loadingText;
@@ -37,116 +38,130 @@ var AutoComplete = (t0) => {
37
38
  let onSearch;
38
39
  let onSelect;
39
40
  let open;
41
+ let prefix;
40
42
  let readOnly;
41
43
  let rest;
42
44
  let shapeProp;
43
45
  let sizeProp;
46
+ let suffix;
44
47
  let t1;
45
48
  let t2;
46
49
  let t3;
47
50
  let t4;
48
51
  let t5;
52
+ let t6;
49
53
  let themeProp;
50
54
  let value;
51
55
  if ($[0] !== t0) {
52
- ({value, options: t1, open, showOnEmpty: t2, clearable: t3, loading: t4, loadingText, size: sizeProp, shape: shapeProp, theme: themeProp, filterOption: t5, onChange, onClear, onSearch, onSelect, onOpenChange, className, disabled, readOnly, onFocus, onBlur, onKeyDown, onCompositionStart, onCompositionEnd, ...rest} = t0);
56
+ ({value, options: t1, open, showOnEmpty: t2, clearable: t3, loading: t4, loadingText, addonBefore, addonAfter, prefix, suffix, size: sizeProp, shape: shapeProp, theme: themeProp, filterOption: t5, destroyOnClose: t6, onChange, onClear, onSearch, onSelect, onOpenChange, className, disabled, readOnly, onFocus, onBlur, onKeyDown, onCompositionStart, onCompositionEnd, ...rest} = t0);
53
57
  $[0] = t0;
54
- $[1] = className;
55
- $[2] = disabled;
56
- $[3] = loadingText;
57
- $[4] = onBlur;
58
- $[5] = onChange;
59
- $[6] = onClear;
60
- $[7] = onCompositionEnd;
61
- $[8] = onCompositionStart;
62
- $[9] = onFocus;
63
- $[10] = onKeyDown;
64
- $[11] = onOpenChange;
65
- $[12] = onSearch;
66
- $[13] = onSelect;
67
- $[14] = open;
68
- $[15] = readOnly;
69
- $[16] = rest;
70
- $[17] = shapeProp;
71
- $[18] = sizeProp;
72
- $[19] = t1;
73
- $[20] = t2;
74
- $[21] = t3;
75
- $[22] = t4;
76
- $[23] = t5;
77
- $[24] = themeProp;
78
- $[25] = value;
58
+ $[1] = addonAfter;
59
+ $[2] = addonBefore;
60
+ $[3] = className;
61
+ $[4] = disabled;
62
+ $[5] = loadingText;
63
+ $[6] = onBlur;
64
+ $[7] = onChange;
65
+ $[8] = onClear;
66
+ $[9] = onCompositionEnd;
67
+ $[10] = onCompositionStart;
68
+ $[11] = onFocus;
69
+ $[12] = onKeyDown;
70
+ $[13] = onOpenChange;
71
+ $[14] = onSearch;
72
+ $[15] = onSelect;
73
+ $[16] = open;
74
+ $[17] = prefix;
75
+ $[18] = readOnly;
76
+ $[19] = rest;
77
+ $[20] = shapeProp;
78
+ $[21] = sizeProp;
79
+ $[22] = suffix;
80
+ $[23] = t1;
81
+ $[24] = t2;
82
+ $[25] = t3;
83
+ $[26] = t4;
84
+ $[27] = t5;
85
+ $[28] = t6;
86
+ $[29] = themeProp;
87
+ $[30] = value;
79
88
  } else {
80
- className = $[1];
81
- disabled = $[2];
82
- loadingText = $[3];
83
- onBlur = $[4];
84
- onChange = $[5];
85
- onClear = $[6];
86
- onCompositionEnd = $[7];
87
- onCompositionStart = $[8];
88
- onFocus = $[9];
89
- onKeyDown = $[10];
90
- onOpenChange = $[11];
91
- onSearch = $[12];
92
- onSelect = $[13];
93
- open = $[14];
94
- readOnly = $[15];
95
- rest = $[16];
96
- shapeProp = $[17];
97
- sizeProp = $[18];
98
- t1 = $[19];
99
- t2 = $[20];
100
- t3 = $[21];
101
- t4 = $[22];
102
- t5 = $[23];
103
- themeProp = $[24];
104
- value = $[25];
89
+ addonAfter = $[1];
90
+ addonBefore = $[2];
91
+ className = $[3];
92
+ disabled = $[4];
93
+ loadingText = $[5];
94
+ onBlur = $[6];
95
+ onChange = $[7];
96
+ onClear = $[8];
97
+ onCompositionEnd = $[9];
98
+ onCompositionStart = $[10];
99
+ onFocus = $[11];
100
+ onKeyDown = $[12];
101
+ onOpenChange = $[13];
102
+ onSearch = $[14];
103
+ onSelect = $[15];
104
+ open = $[16];
105
+ prefix = $[17];
106
+ readOnly = $[18];
107
+ rest = $[19];
108
+ shapeProp = $[20];
109
+ sizeProp = $[21];
110
+ suffix = $[22];
111
+ t1 = $[23];
112
+ t2 = $[24];
113
+ t3 = $[25];
114
+ t4 = $[26];
115
+ t5 = $[27];
116
+ t6 = $[28];
117
+ themeProp = $[29];
118
+ value = $[30];
105
119
  }
106
120
  const options = t1 === void 0 ? EMPTY_OPTIONS : t1;
107
121
  const showOnEmpty = t2 === void 0 ? false : t2;
108
122
  const clearable = t3 === void 0 ? false : t3;
109
123
  const loading = t4 === void 0 ? false : t4;
110
124
  const filterOption = t5 === void 0 ? true : t5;
111
- const inheritedAppearance = useConfigAppearance();
125
+ const destroyOnClose = t6 === void 0 ? true : t6;
126
+ const inheritedAppearance = useFormAppearance();
112
127
  const size = sizeProp ?? inheritedAppearance.size;
113
128
  const shape = shapeProp ?? inheritedAppearance.shape;
114
129
  const theme = themeProp ?? inheritedAppearance.theme ?? "fill";
115
- const locale = useContext(ConfigContext)?.locale || zh_CN_default;
116
- const t6 = useId();
117
- let t7;
118
- if ($[26] !== t6) {
119
- let t8;
120
- if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
121
- t8 = /:/g;
122
- $[28] = t8;
123
- } else t8 = $[28];
124
- t7 = t6.replace(t8, "");
125
- $[26] = t6;
126
- $[27] = t7;
127
- } else t7 = $[27];
128
- const listboxId = `k-auto-complete-listbox-${t7}`;
130
+ const locale = useContext(ConfigContext)?.locale || DEFAULT_LOCALE;
131
+ const t7 = useId();
129
132
  let t8;
130
- if ($[29] !== options) {
131
- t8 = options.map(_temp);
132
- $[29] = options;
133
- $[30] = t8;
134
- } else t8 = $[30];
135
- const normalized = t8;
133
+ if ($[31] !== t7) {
134
+ let t9;
135
+ if ($[33] === Symbol.for("react.memo_cache_sentinel")) {
136
+ t9 = /:/g;
137
+ $[33] = t9;
138
+ } else t9 = $[33];
139
+ t8 = t7.replace(t9, "");
140
+ $[31] = t7;
141
+ $[32] = t8;
142
+ } else t8 = $[32];
143
+ const listboxId = `k-auto-complete-listbox-${t8}`;
144
+ let t9;
145
+ if ($[34] !== options) {
146
+ t9 = options.map(_temp);
147
+ $[34] = options;
148
+ $[35] = t9;
149
+ } else t9 = $[35];
150
+ const normalized = t9;
136
151
  const initialCurrent = value ?? "";
137
152
  const initiallyOpen = open ?? false;
138
- let t9;
139
- if ($[31] !== filterOption || $[32] !== initialCurrent || $[33] !== initiallyOpen || $[34] !== loading || $[35] !== normalized || $[36] !== showOnEmpty) {
140
- t9 = initiallyOpen && (initialCurrent || showOnEmpty) && !loading ? normalized.filter((option) => typeof filterOption === "function" ? filterOption(initialCurrent, option) : !filterOption || option.value.toLocaleLowerCase().includes(initialCurrent.toLocaleLowerCase())) : [];
141
- $[31] = filterOption;
142
- $[32] = initialCurrent;
143
- $[33] = initiallyOpen;
144
- $[34] = loading;
145
- $[35] = normalized;
146
- $[36] = showOnEmpty;
147
- $[37] = t9;
148
- } else t9 = $[37];
149
- const initialShownOptions = t9;
153
+ let t10;
154
+ if ($[36] !== filterOption || $[37] !== initialCurrent || $[38] !== initiallyOpen || $[39] !== loading || $[40] !== normalized || $[41] !== showOnEmpty) {
155
+ t10 = initiallyOpen && (initialCurrent || showOnEmpty) && !loading ? normalized.filter((option) => typeof filterOption === "function" ? filterOption(initialCurrent, option) : !filterOption || option.value.toLocaleLowerCase().includes(initialCurrent.toLocaleLowerCase())) : [];
156
+ $[36] = filterOption;
157
+ $[37] = initialCurrent;
158
+ $[38] = initiallyOpen;
159
+ $[39] = loading;
160
+ $[40] = normalized;
161
+ $[41] = showOnEmpty;
162
+ $[42] = t10;
163
+ } else t10 = $[42];
164
+ const initialShownOptions = t10;
150
165
  const [innerValue, setInnerValue] = useValue(value, _temp2);
151
166
  const [innerOpen, setInnerOpen] = useValue(open, _temp3);
152
167
  const [active, setActive] = useState(-1);
@@ -160,43 +175,43 @@ var AutoComplete = (t0) => {
160
175
  const current = innerValue;
161
176
  const requestedOpen = innerOpen;
162
177
  const visible = (loading || !suppressRemoteOptions && shownOptions.length > 0) && requestedOpen;
163
- let t10;
164
- if ($[38] !== filterOption || $[39] !== normalized) {
165
- t10 = (input) => normalized.filter((option_0) => typeof filterOption === "function" ? filterOption(input, option_0) : !filterOption || option_0.value.toLocaleLowerCase().includes(input.toLocaleLowerCase()));
166
- $[38] = filterOption;
167
- $[39] = normalized;
168
- $[40] = t10;
169
- } else t10 = $[40];
170
- const getMatches = t10;
171
178
  let t11;
172
- if ($[41] !== disabled || $[42] !== loading || $[43] !== onOpenChange || $[44] !== readOnly || $[45] !== setInnerOpen || $[46] !== suppressRemoteOptions) {
173
- t11 = (next_1) => {
179
+ if ($[43] !== filterOption || $[44] !== normalized) {
180
+ t11 = (input) => normalized.filter((option_0) => typeof filterOption === "function" ? filterOption(input, option_0) : !filterOption || option_0.value.toLocaleLowerCase().includes(input.toLocaleLowerCase()));
181
+ $[43] = filterOption;
182
+ $[44] = normalized;
183
+ $[45] = t11;
184
+ } else t11 = $[45];
185
+ const getMatches = t11;
186
+ let t12;
187
+ if ($[46] !== disabled || $[47] !== loading || $[48] !== onOpenChange || $[49] !== readOnly || $[50] !== setInnerOpen || $[51] !== suppressRemoteOptions) {
188
+ t12 = (next_1) => {
174
189
  if (next_1 && (disabled || readOnly)) return;
175
190
  if (next_1 && suppressRemoteOptions && !loading) return;
176
191
  setInnerOpen(next_1);
177
192
  if (!next_1) setActive(-1);
178
193
  onOpenChange?.(next_1);
179
194
  };
180
- $[41] = disabled;
181
- $[42] = loading;
182
- $[43] = onOpenChange;
183
- $[44] = readOnly;
184
- $[45] = setInnerOpen;
185
- $[46] = suppressRemoteOptions;
186
- $[47] = t11;
187
- } else t11 = $[47];
188
- const setOpen = t11;
189
- let t12;
190
- if ($[48] !== getMatches) {
191
- t12 = (input_0) => {
195
+ $[46] = disabled;
196
+ $[47] = loading;
197
+ $[48] = onOpenChange;
198
+ $[49] = readOnly;
199
+ $[50] = setInnerOpen;
200
+ $[51] = suppressRemoteOptions;
201
+ $[52] = t12;
202
+ } else t12 = $[52];
203
+ const setOpen = t12;
204
+ let t13;
205
+ if ($[53] !== getMatches) {
206
+ t13 = (input_0) => {
192
207
  const matches = getMatches(input_0);
193
208
  if (matches.length) setShownOptions(matches);
194
209
  return matches.length > 0;
195
210
  };
196
- $[48] = getMatches;
197
- $[49] = t12;
198
- } else t12 = $[49];
199
- const commitMatches = t12;
211
+ $[53] = getMatches;
212
+ $[54] = t13;
213
+ } else t13 = $[54];
214
+ const commitMatches = t13;
200
215
  const syncOpen = (next_2) => {
201
216
  setInnerOpen(next_2);
202
217
  if (!next_2) setActive(-1);
@@ -205,17 +220,17 @@ var AutoComplete = (t0) => {
205
220
  revision: (state?.revision ?? 0) + 1
206
221
  }));
207
222
  };
208
- let t13;
209
- if ($[50] !== loading || $[51] !== normalized) {
210
- t13 = {
223
+ let t14;
224
+ if ($[55] !== loading || $[56] !== normalized) {
225
+ t14 = {
211
226
  loading,
212
227
  normalized
213
228
  };
214
- $[50] = loading;
215
- $[51] = normalized;
216
- $[52] = t13;
217
- } else t13 = $[52];
218
- const [previousRemoteState, setPreviousRemoteState] = useState(t13);
229
+ $[55] = loading;
230
+ $[56] = normalized;
231
+ $[57] = t14;
232
+ } else t14 = $[57];
233
+ const [previousRemoteState, setPreviousRemoteState] = useState(t14);
219
234
  if (previousRemoteState.loading !== loading || previousRemoteState.normalized !== normalized) {
220
235
  setPreviousRemoteState({
221
236
  loading,
@@ -241,91 +256,91 @@ var AutoComplete = (t0) => {
241
256
  setSuppressRemoteOptions(false);
242
257
  } else setActive(-1);
243
258
  }
244
- let t14;
245
- if ($[53] !== onOpenChange) {
246
- t14 = (next_3) => onOpenChange?.(next_3);
247
- $[53] = onOpenChange;
248
- $[54] = t14;
249
- } else t14 = $[54];
250
- const emitSyncedOpen = useEffectEvent(t14);
251
259
  let t15;
252
- if ($[55] !== emitSyncedOpen || $[56] !== syncedOpenChange) {
253
- t15 = () => {
260
+ if ($[58] !== onOpenChange) {
261
+ t15 = (next_3) => onOpenChange?.(next_3);
262
+ $[58] = onOpenChange;
263
+ $[59] = t15;
264
+ } else t15 = $[59];
265
+ const emitSyncedOpen = useEffectEvent(t15);
266
+ let t16;
267
+ if ($[60] !== emitSyncedOpen || $[61] !== syncedOpenChange) {
268
+ t16 = () => {
254
269
  if (syncedOpenChange) emitSyncedOpen(syncedOpenChange.value);
255
270
  };
256
- $[55] = emitSyncedOpen;
257
- $[56] = syncedOpenChange;
258
- $[57] = t15;
259
- } else t15 = $[57];
260
- let t16;
261
- if ($[58] !== syncedOpenChange) {
262
- t16 = [syncedOpenChange];
263
- $[58] = syncedOpenChange;
264
- $[59] = t16;
265
- } else t16 = $[59];
266
- useEffect(t15, t16);
271
+ $[60] = emitSyncedOpen;
272
+ $[61] = syncedOpenChange;
273
+ $[62] = t16;
274
+ } else t16 = $[62];
267
275
  let t17;
276
+ if ($[63] !== syncedOpenChange) {
277
+ t17 = [syncedOpenChange];
278
+ $[63] = syncedOpenChange;
279
+ $[64] = t17;
280
+ } else t17 = $[64];
281
+ useEffect(t16, t17);
268
282
  let t18;
269
- if ($[60] === Symbol.for("react.memo_cache_sentinel")) {
270
- t17 = () => () => clearTimeout(blurTimer.current);
271
- t18 = [];
272
- $[60] = t17;
273
- $[61] = t18;
283
+ let t19;
284
+ if ($[65] === Symbol.for("react.memo_cache_sentinel")) {
285
+ t18 = () => () => clearTimeout(blurTimer.current);
286
+ t19 = [];
287
+ $[65] = t18;
288
+ $[66] = t19;
274
289
  } else {
275
- t17 = $[60];
276
- t18 = $[61];
290
+ t18 = $[65];
291
+ t19 = $[66];
277
292
  }
278
- useEffect(t17, t18);
279
- let t19;
293
+ useEffect(t18, t19);
280
294
  let t20;
281
- if ($[62] !== active || $[63] !== listboxId) {
282
- t19 = () => {
295
+ let t21;
296
+ if ($[67] !== active || $[68] !== listboxId) {
297
+ t20 = () => {
283
298
  (dropdownRef.current?.querySelector(`#${listboxId}-option-${active}`))?.scrollIntoView?.({ block: "nearest" });
284
299
  };
285
- t20 = [active, listboxId];
286
- $[62] = active;
287
- $[63] = listboxId;
288
- $[64] = t19;
289
- $[65] = t20;
300
+ t21 = [active, listboxId];
301
+ $[67] = active;
302
+ $[68] = listboxId;
303
+ $[69] = t20;
304
+ $[70] = t21;
290
305
  } else {
291
- t19 = $[64];
292
- t20 = $[65];
306
+ t20 = $[69];
307
+ t21 = $[70];
293
308
  }
294
- useEffect(t19, t20);
295
- let t21;
296
- if ($[66] !== disabled || $[67] !== onChange || $[68] !== readOnly || $[69] !== setInnerValue) {
297
- t21 = (next_4) => {
309
+ useEffect(t20, t21);
310
+ let t22;
311
+ if ($[71] !== disabled || $[72] !== onChange || $[73] !== readOnly || $[74] !== setInnerValue) {
312
+ t22 = (next_4) => {
298
313
  if (disabled || readOnly) return;
299
314
  setInnerValue(next_4);
300
315
  onChange?.(next_4);
301
316
  };
302
- $[66] = disabled;
303
- $[67] = onChange;
304
- $[68] = readOnly;
305
- $[69] = setInnerValue;
306
- $[70] = t21;
307
- } else t21 = $[70];
308
- const update = t21;
309
- let t22;
310
- if ($[71] !== disabled || $[72] !== onSelect || $[73] !== readOnly || $[74] !== setOpen || $[75] !== update) {
311
- t22 = (option_2) => {
317
+ $[71] = disabled;
318
+ $[72] = onChange;
319
+ $[73] = readOnly;
320
+ $[74] = setInnerValue;
321
+ $[75] = t22;
322
+ } else t22 = $[75];
323
+ const update = t22;
324
+ let t23;
325
+ if ($[76] !== disabled || $[77] !== onSelect || $[78] !== readOnly || $[79] !== setOpen || $[80] !== update) {
326
+ t23 = (option_2) => {
312
327
  if (disabled || readOnly || option_2.disabled) return;
313
328
  update(option_2.value);
314
329
  onSelect?.(option_2.value, option_2);
315
330
  setOpen(false);
316
331
  setActive(-1);
317
332
  };
318
- $[71] = disabled;
319
- $[72] = onSelect;
320
- $[73] = readOnly;
321
- $[74] = setOpen;
322
- $[75] = update;
323
- $[76] = t22;
324
- } else t22 = $[76];
325
- const choose = t22;
333
+ $[76] = disabled;
334
+ $[77] = onSelect;
335
+ $[78] = readOnly;
336
+ $[79] = setOpen;
337
+ $[80] = update;
338
+ $[81] = t23;
339
+ } else t23 = $[81];
340
+ const choose = t23;
326
341
  let handleInput;
327
342
  let search;
328
- if ($[77] !== commitMatches || $[78] !== disabled || $[79] !== loading || $[80] !== onSearch || $[81] !== readOnly || $[82] !== setOpen || $[83] !== showOnEmpty || $[84] !== update) {
343
+ if ($[82] !== commitMatches || $[83] !== disabled || $[84] !== loading || $[85] !== onSearch || $[86] !== readOnly || $[87] !== setOpen || $[88] !== showOnEmpty || $[89] !== update) {
329
344
  handleInput = (next_5) => {
330
345
  if (disabled || readOnly) return;
331
346
  update(next_5);
@@ -347,23 +362,23 @@ var AutoComplete = (t0) => {
347
362
  }
348
363
  setActive(-1);
349
364
  };
350
- $[77] = commitMatches;
351
- $[78] = disabled;
352
- $[79] = loading;
353
- $[80] = onSearch;
354
- $[81] = readOnly;
355
- $[82] = setOpen;
356
- $[83] = showOnEmpty;
357
- $[84] = update;
358
- $[85] = handleInput;
359
- $[86] = search;
365
+ $[82] = commitMatches;
366
+ $[83] = disabled;
367
+ $[84] = loading;
368
+ $[85] = onSearch;
369
+ $[86] = readOnly;
370
+ $[87] = setOpen;
371
+ $[88] = showOnEmpty;
372
+ $[89] = update;
373
+ $[90] = handleInput;
374
+ $[91] = search;
360
375
  } else {
361
- handleInput = $[85];
362
- search = $[86];
376
+ handleInput = $[90];
377
+ search = $[91];
363
378
  }
364
- let t23;
365
- if ($[87] !== active || $[88] !== choose || $[89] !== current || $[90] !== disabled || $[91] !== getMatches || $[92] !== readOnly || $[93] !== setOpen || $[94] !== showOnEmpty || $[95] !== shownOptions || $[96] !== suppressRemoteOptions || $[97] !== visible) {
366
- t23 = (event) => {
379
+ let t24;
380
+ if ($[92] !== active || $[93] !== choose || $[94] !== current || $[95] !== disabled || $[96] !== getMatches || $[97] !== readOnly || $[98] !== setOpen || $[99] !== showOnEmpty || $[100] !== shownOptions || $[101] !== suppressRemoteOptions || $[102] !== visible) {
381
+ t24 = (event) => {
367
382
  if (disabled || readOnly) return;
368
383
  if (event.key === "ArrowDown" || event.key === "ArrowUp") {
369
384
  if (!current && !showOnEmpty || suppressRemoteOptions) return;
@@ -385,31 +400,31 @@ var AutoComplete = (t0) => {
385
400
  setOpen(false);
386
401
  }
387
402
  };
388
- $[87] = active;
389
- $[88] = choose;
390
- $[89] = current;
391
- $[90] = disabled;
392
- $[91] = getMatches;
393
- $[92] = readOnly;
394
- $[93] = setOpen;
395
- $[94] = showOnEmpty;
396
- $[95] = shownOptions;
397
- $[96] = suppressRemoteOptions;
398
- $[97] = visible;
399
- $[98] = t23;
400
- } else t23 = $[98];
401
- const handleKeyDown = t23;
402
- let t24;
403
- if ($[99] !== className) {
404
- t24 = clsx("k-auto-complete", className);
405
- $[99] = className;
406
- $[100] = t24;
407
- } else t24 = $[100];
408
- const t25 = visible ? listboxId : void 0;
409
- const t26 = visible && active >= 0 ? `${listboxId}-option-${active}` : void 0;
410
- let t27;
411
- if ($[101] !== current || $[102] !== disabled || $[103] !== getMatches || $[104] !== loading || $[105] !== onFocus || $[106] !== readOnly || $[107] !== setOpen || $[108] !== showOnEmpty) {
412
- t27 = (event_0) => {
403
+ $[92] = active;
404
+ $[93] = choose;
405
+ $[94] = current;
406
+ $[95] = disabled;
407
+ $[96] = getMatches;
408
+ $[97] = readOnly;
409
+ $[98] = setOpen;
410
+ $[99] = showOnEmpty;
411
+ $[100] = shownOptions;
412
+ $[101] = suppressRemoteOptions;
413
+ $[102] = visible;
414
+ $[103] = t24;
415
+ } else t24 = $[103];
416
+ const handleKeyDown = t24;
417
+ let t25;
418
+ if ($[104] !== className) {
419
+ t25 = clsx("k-auto-complete", className);
420
+ $[104] = className;
421
+ $[105] = t25;
422
+ } else t25 = $[105];
423
+ const t26 = visible ? listboxId : void 0;
424
+ const t27 = visible && active >= 0 ? `${listboxId}-option-${active}` : void 0;
425
+ let t28;
426
+ if ($[106] !== current || $[107] !== disabled || $[108] !== getMatches || $[109] !== loading || $[110] !== onFocus || $[111] !== readOnly || $[112] !== setOpen || $[113] !== showOnEmpty) {
427
+ t28 = (event_0) => {
413
428
  onFocus?.(event_0);
414
429
  if (event_0.defaultPrevented) return;
415
430
  if (disabled || readOnly) return;
@@ -417,61 +432,61 @@ var AutoComplete = (t0) => {
417
432
  if (matches_1.length) setShownOptions(matches_1);
418
433
  if ((current || showOnEmpty) && (matches_1.length || loading)) setOpen(true);
419
434
  };
420
- $[101] = current;
421
- $[102] = disabled;
422
- $[103] = getMatches;
423
- $[104] = loading;
424
- $[105] = onFocus;
425
- $[106] = readOnly;
426
- $[107] = setOpen;
427
- $[108] = showOnEmpty;
428
- $[109] = t27;
429
- } else t27 = $[109];
430
- let t28;
431
- if ($[110] !== onBlur || $[111] !== setOpen) {
432
- t28 = (event_1) => {
435
+ $[106] = current;
436
+ $[107] = disabled;
437
+ $[108] = getMatches;
438
+ $[109] = loading;
439
+ $[110] = onFocus;
440
+ $[111] = readOnly;
441
+ $[112] = setOpen;
442
+ $[113] = showOnEmpty;
443
+ $[114] = t28;
444
+ } else t28 = $[114];
445
+ let t29;
446
+ if ($[115] !== onBlur || $[116] !== setOpen) {
447
+ t29 = (event_1) => {
433
448
  onBlur?.(event_1);
434
449
  if (event_1.defaultPrevented) return;
435
450
  clearTimeout(blurTimer.current);
436
451
  blurTimer.current = setTimeout(() => setOpen(false), 120);
437
452
  };
438
- $[110] = onBlur;
439
- $[111] = setOpen;
440
- $[112] = t28;
441
- } else t28 = $[112];
442
- let t29;
443
- if ($[113] !== onCompositionStart) {
444
- t29 = (event_2) => {
453
+ $[115] = onBlur;
454
+ $[116] = setOpen;
455
+ $[117] = t29;
456
+ } else t29 = $[117];
457
+ let t30;
458
+ if ($[118] !== onCompositionStart) {
459
+ t30 = (event_2) => {
445
460
  composing.current = true;
446
461
  onCompositionStart?.(event_2);
447
462
  };
448
- $[113] = onCompositionStart;
449
- $[114] = t29;
450
- } else t29 = $[114];
451
- let t30;
452
- if ($[115] !== onCompositionEnd || $[116] !== search) {
453
- t30 = (event_3) => {
463
+ $[118] = onCompositionStart;
464
+ $[119] = t30;
465
+ } else t30 = $[119];
466
+ let t31;
467
+ if ($[120] !== onCompositionEnd || $[121] !== search) {
468
+ t31 = (event_3) => {
454
469
  composing.current = false;
455
470
  onCompositionEnd?.(event_3);
456
471
  if (!event_3.defaultPrevented) search(event_3.currentTarget.value);
457
472
  };
458
- $[115] = onCompositionEnd;
459
- $[116] = search;
460
- $[117] = t30;
461
- } else t30 = $[117];
462
- let t31;
463
- if ($[118] !== handleKeyDown || $[119] !== onKeyDown) {
464
- t31 = (event_4) => {
473
+ $[120] = onCompositionEnd;
474
+ $[121] = search;
475
+ $[122] = t31;
476
+ } else t31 = $[122];
477
+ let t32;
478
+ if ($[123] !== handleKeyDown || $[124] !== onKeyDown) {
479
+ t32 = (event_4) => {
465
480
  onKeyDown?.(event_4);
466
481
  if (!event_4.defaultPrevented) handleKeyDown(event_4);
467
482
  };
468
- $[118] = handleKeyDown;
469
- $[119] = onKeyDown;
470
- $[120] = t31;
471
- } else t31 = $[120];
472
- let t32;
473
- if ($[121] !== clearable || $[122] !== current || $[123] !== disabled || $[124] !== handleInput || $[125] !== onClear || $[126] !== readOnly || $[127] !== rest || $[128] !== shape || $[129] !== size || $[130] !== t25 || $[131] !== t26 || $[132] !== t27 || $[133] !== t28 || $[134] !== t29 || $[135] !== t30 || $[136] !== t31 || $[137] !== theme || $[138] !== visible) {
474
- t32 = /* @__PURE__ */ jsx(input_default, {
483
+ $[123] = handleKeyDown;
484
+ $[124] = onKeyDown;
485
+ $[125] = t32;
486
+ } else t32 = $[125];
487
+ let t33;
488
+ if ($[126] !== addonAfter || $[127] !== addonBefore || $[128] !== clearable || $[129] !== current || $[130] !== disabled || $[131] !== handleInput || $[132] !== onClear || $[133] !== prefix || $[134] !== readOnly || $[135] !== rest || $[136] !== shape || $[137] !== size || $[138] !== suffix || $[139] !== t26 || $[140] !== t27 || $[141] !== t28 || $[142] !== t29 || $[143] !== t30 || $[144] !== t31 || $[145] !== t32 || $[146] !== theme || $[147] !== visible) {
489
+ t33 = /* @__PURE__ */ jsx(input_default, {
475
490
  ...rest,
476
491
  value: current,
477
492
  disabled,
@@ -480,54 +495,62 @@ var AutoComplete = (t0) => {
480
495
  shape,
481
496
  theme,
482
497
  clearable,
498
+ addonBefore,
499
+ addonAfter,
500
+ prefix,
501
+ suffix,
483
502
  role: "combobox",
484
503
  "aria-autocomplete": "list",
485
504
  "aria-expanded": visible,
486
- "aria-controls": t25,
487
- "aria-activedescendant": t26,
488
- onFocus: t27,
489
- onBlur: t28,
490
- onCompositionStart: t29,
491
- onCompositionEnd: t30,
505
+ "aria-controls": t26,
506
+ "aria-activedescendant": t27,
507
+ onFocus: t28,
508
+ onBlur: t29,
509
+ onCompositionStart: t30,
510
+ onCompositionEnd: t31,
492
511
  onClear,
493
512
  onChange: handleInput,
494
- onKeyDown: t31
513
+ onKeyDown: t32
495
514
  });
496
- $[121] = clearable;
497
- $[122] = current;
498
- $[123] = disabled;
499
- $[124] = handleInput;
500
- $[125] = onClear;
501
- $[126] = readOnly;
502
- $[127] = rest;
503
- $[128] = shape;
504
- $[129] = size;
505
- $[130] = t25;
506
- $[131] = t26;
507
- $[132] = t27;
508
- $[133] = t28;
509
- $[134] = t29;
510
- $[135] = t30;
511
- $[136] = t31;
512
- $[137] = theme;
513
- $[138] = visible;
514
- $[139] = t32;
515
- } else t32 = $[139];
516
- const t33 = size === "small";
517
- const t34 = size === "large";
518
- let t35;
519
- if ($[140] !== t33 || $[141] !== t34) {
520
- t35 = clsx("k-select-dropdown", "k-auto-complete-dropdown", {
521
- "k-select-dropdown-sm": t33,
522
- "k-select-dropdown-lg": t34
523
- });
524
- $[140] = t33;
525
- $[141] = t34;
526
- $[142] = t35;
527
- } else t35 = $[142];
515
+ $[126] = addonAfter;
516
+ $[127] = addonBefore;
517
+ $[128] = clearable;
518
+ $[129] = current;
519
+ $[130] = disabled;
520
+ $[131] = handleInput;
521
+ $[132] = onClear;
522
+ $[133] = prefix;
523
+ $[134] = readOnly;
524
+ $[135] = rest;
525
+ $[136] = shape;
526
+ $[137] = size;
527
+ $[138] = suffix;
528
+ $[139] = t26;
529
+ $[140] = t27;
530
+ $[141] = t28;
531
+ $[142] = t29;
532
+ $[143] = t30;
533
+ $[144] = t31;
534
+ $[145] = t32;
535
+ $[146] = theme;
536
+ $[147] = visible;
537
+ $[148] = t33;
538
+ } else t33 = $[148];
539
+ const t34 = size === "small";
540
+ const t35 = size === "large";
528
541
  let t36;
529
- if ($[143] !== active || $[144] !== choose || $[145] !== disabled || $[146] !== listboxId || $[147] !== loading || $[148] !== loadingText || $[149] !== locale || $[150] !== readOnly || $[151] !== shownOptions) {
530
- t36 = loading ? /* @__PURE__ */ jsxs("div", {
542
+ if ($[149] !== t34 || $[150] !== t35) {
543
+ t36 = clsx("k-select-dropdown", "k-auto-complete-dropdown", {
544
+ "k-select-dropdown-sm": t34,
545
+ "k-select-dropdown-lg": t35
546
+ });
547
+ $[149] = t34;
548
+ $[150] = t35;
549
+ $[151] = t36;
550
+ } else t36 = $[151];
551
+ let t37;
552
+ if ($[152] !== active || $[153] !== choose || $[154] !== disabled || $[155] !== listboxId || $[156] !== loading || $[157] !== loadingText || $[158] !== locale || $[159] !== readOnly || $[160] !== shownOptions) {
553
+ t37 = loading ? /* @__PURE__ */ jsxs("div", {
531
554
  className: "k-select-loading",
532
555
  children: [/* @__PURE__ */ jsx(Icon, {
533
556
  type: Loading,
@@ -547,34 +570,34 @@ var AutoComplete = (t0) => {
547
570
  onClick: () => choose(option_5),
548
571
  children: option_5.label ?? option_5.value
549
572
  }, option_5.value)) });
550
- $[143] = active;
551
- $[144] = choose;
552
- $[145] = disabled;
553
- $[146] = listboxId;
554
- $[147] = loading;
555
- $[148] = loadingText;
556
- $[149] = locale;
557
- $[150] = readOnly;
558
- $[151] = shownOptions;
559
- $[152] = t36;
560
- } else t36 = $[152];
561
- let t37;
562
- if ($[153] !== listboxId || $[154] !== t35 || $[155] !== t36) {
563
- t37 = /* @__PURE__ */ jsx("div", {
573
+ $[152] = active;
574
+ $[153] = choose;
575
+ $[154] = disabled;
576
+ $[155] = listboxId;
577
+ $[156] = loading;
578
+ $[157] = loadingText;
579
+ $[158] = locale;
580
+ $[159] = readOnly;
581
+ $[160] = shownOptions;
582
+ $[161] = t37;
583
+ } else t37 = $[161];
584
+ let t38;
585
+ if ($[162] !== listboxId || $[163] !== t36 || $[164] !== t37) {
586
+ t38 = /* @__PURE__ */ jsx("div", {
564
587
  ref: dropdownRef,
565
588
  id: listboxId,
566
- className: t35,
589
+ className: t36,
567
590
  role: "listbox",
568
- children: t36
591
+ children: t37
569
592
  });
570
- $[153] = listboxId;
571
- $[154] = t35;
572
- $[155] = t36;
573
- $[156] = t37;
574
- } else t37 = $[156];
575
- let t38;
576
- if ($[157] !== setOpen || $[158] !== t37 || $[159] !== visible) {
577
- t38 = /* @__PURE__ */ jsx(Popup, {
593
+ $[162] = listboxId;
594
+ $[163] = t36;
595
+ $[164] = t37;
596
+ $[165] = t38;
597
+ } else t38 = $[165];
598
+ let t39;
599
+ if ($[166] !== destroyOnClose || $[167] !== setOpen || $[168] !== t38 || $[169] !== visible) {
600
+ t39 = /* @__PURE__ */ jsx(Popup, {
578
601
  raw: true,
579
602
  open: visible,
580
603
  target: rootRef,
@@ -584,28 +607,29 @@ var AutoComplete = (t0) => {
584
607
  transitionName: "k-select",
585
608
  offset: 6,
586
609
  matchTriggerWidth: true,
587
- destroyOnClose: true,
610
+ destroyOnClose,
588
611
  onOpenChange: setOpen,
589
- overlay: t37
612
+ overlay: t38
590
613
  });
591
- $[157] = setOpen;
592
- $[158] = t37;
593
- $[159] = visible;
594
- $[160] = t38;
595
- } else t38 = $[160];
596
- let t39;
597
- if ($[161] !== t24 || $[162] !== t32 || $[163] !== t38) {
598
- t39 = /* @__PURE__ */ jsxs("div", {
614
+ $[166] = destroyOnClose;
615
+ $[167] = setOpen;
616
+ $[168] = t38;
617
+ $[169] = visible;
618
+ $[170] = t39;
619
+ } else t39 = $[170];
620
+ let t40;
621
+ if ($[171] !== t25 || $[172] !== t33 || $[173] !== t39) {
622
+ t40 = /* @__PURE__ */ jsxs("div", {
599
623
  ref: rootRef,
600
- className: t24,
601
- children: [t32, t38]
624
+ className: t25,
625
+ children: [t33, t39]
602
626
  });
603
- $[161] = t24;
604
- $[162] = t32;
605
- $[163] = t38;
606
- $[164] = t39;
607
- } else t39 = $[164];
608
- return t39;
627
+ $[171] = t25;
628
+ $[172] = t33;
629
+ $[173] = t39;
630
+ $[174] = t40;
631
+ } else t40 = $[174];
632
+ return t40;
609
633
  };
610
634
  var auto_complete_default = createFormFieldComponent(AutoComplete);
611
635
  function _temp(item) {