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