react-kui 2.0.0 → 3.0.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.
- package/AI.en-US.md +23 -0
- package/AI.md +76 -0
- package/LICENSE +21 -21
- package/README.zh-CN.md +142 -0
- package/ai/behaviors.json +16 -0
- package/ai/cli.mjs +27 -0
- package/ai/evals/README.md +59 -0
- package/ai/evals/cases.json +207 -0
- package/ai/evals/config.json +4 -0
- package/ai/evals/evaluate.mjs +267 -0
- package/ai/evals/run.mjs +118 -0
- package/ai/kui-components.json +58292 -0
- package/ai/kui-components.schema.json +143 -0
- package/ai/mcp.mjs +290 -0
- package/ai/skills/react-kui/SKILL.md +16 -0
- package/ai/skills/react-kui/references/components.md +9 -0
- package/ai/skills/react-kui/references/mcp.md +14 -0
- package/ai/templates/form.tsx +69 -0
- package/ai/templates/index.json +23 -0
- package/ai/templates/modal-editor.tsx +80 -0
- package/ai/templates/table.tsx +85 -0
- package/ai/validate.d.mts +16 -0
- package/ai/validate.mjs +184 -0
- package/es/_virtual/_rolldown/runtime.js +21 -0
- package/es/affix/index.js +222 -0
- package/es/alert/index.js +71 -0
- package/es/anchor/anchor-context.js +13 -0
- package/es/anchor/anchor-link.js +121 -0
- package/es/anchor/anchor.js +431 -0
- package/es/auto-complete/index.js +692 -0
- package/es/avatar/avatar-group-context.js +13 -0
- package/es/avatar/avatar-group.js +145 -0
- package/es/avatar/avatar.js +204 -0
- package/es/back-top/index.js +224 -0
- package/es/badge/index.js +66 -0
- package/es/base/teleport.js +83 -0
- package/es/base/transition-props.js +56 -0
- package/es/base/transition.js +108 -0
- package/es/breadcrumb/breadcrumb-context.js +13 -0
- package/es/breadcrumb/breadcrumb-item.js +128 -0
- package/es/breadcrumb/breadcrumb.js +75 -0
- package/es/button/button-group-context.js +13 -0
- package/es/button/button-group.js +100 -0
- package/es/button/button.js +99 -0
- package/es/calendar/index.js +271 -0
- package/es/card/index.js +157 -0
- package/es/carousel/carousel-context.js +17 -0
- package/es/carousel/carousel-item.js +71 -0
- package/es/carousel/carousel.js +453 -0
- package/es/cascader/index.js +435 -0
- package/es/check-card/check-card-group.js +211 -0
- package/es/check-card/check-card.js +326 -0
- package/es/check-card/context.js +13 -0
- package/es/checkbox/checkbox-group-context.js +13 -0
- package/es/checkbox/checkbox-group.js +168 -0
- package/es/checkbox/checkbox.js +270 -0
- package/es/checkbox/index.js +14 -0
- package/es/collapse/collapse-panel.js +233 -0
- package/es/collapse/collapse.js +186 -0
- package/es/color-picker/alpha.js +131 -0
- package/es/color-picker/hue.js +111 -0
- package/es/color-picker/index.js +329 -0
- package/es/color-picker/mode.js +178 -0
- package/es/color-picker/paint.js +175 -0
- package/es/color-picker/presets.js +80 -0
- package/es/components.js +260 -0
- package/es/config/config-context.js +13 -0
- package/es/config/context.js +26 -0
- package/es/config/index.js +52 -0
- package/es/config/size-context.js +13 -0
- package/es/config/use-config-appearance.js +39 -0
- package/es/const/var.js +31 -0
- package/es/date-picker/index.js +1257 -0
- package/es/descriptions/descriptions-item.js +25 -0
- package/es/descriptions/descriptions.js +285 -0
- package/es/divider/index.js +38 -0
- package/es/drawer/index.js +432 -0
- package/es/dropdown/dropdown-button.js +139 -0
- package/es/dropdown/dropdown-context.js +16 -0
- package/es/dropdown/dropdown.js +351 -0
- package/es/dropdown/trigger.js +88 -0
- package/es/empty/index.js +133 -0
- package/es/feature-card/index.js +74 -0
- package/es/feedback-panel/index.js +179 -0
- package/es/flame-wrap/index.js +262 -0
- package/es/flame-wrap/types.js +593 -0
- package/es/flex/index.js +46 -0
- package/es/form/field-context.js +102 -0
- package/es/form/form-context.js +13 -0
- package/es/form/form-item.js +327 -0
- package/es/form/form.js +303 -0
- package/es/form/utils.js +44 -0
- package/es/grid/grid-item.js +130 -0
- package/es/grid/grid.js +177 -0
- package/es/grid/useBreakpoint.js +64 -0
- package/es/icon/index.js +161 -0
- package/es/image/group.js +121 -0
- package/es/image/image-group-context.js +13 -0
- package/es/image/image.js +314 -0
- package/es/image/instance.js +47 -0
- package/es/image/preview.js +383 -0
- package/es/image/utils.js +39 -0
- package/es/index.js +129 -0
- package/es/input/index.js +15 -0
- package/es/input/input-box.js +40 -0
- package/es/input/input-group.js +150 -0
- package/es/input/input.js +203 -0
- package/es/input/textarea.js +135 -0
- package/es/input-number/index.js +153 -0
- package/es/input-otp/index.js +142 -0
- package/es/input-tag/index.js +178 -0
- package/es/kanban/index.js +254 -0
- package/es/layout/index.js +256 -0
- package/es/layout/layout-context.js +13 -0
- package/es/list-panel/index.js +194 -0
- package/es/loading/index.js +69 -0
- package/es/loading/loading-bar.js +133 -0
- package/es/locale/de.js +69 -0
- package/es/locale/el.js +69 -0
- package/es/locale/en.js +69 -0
- package/es/locale/fr.js +69 -0
- package/es/locale/it.js +69 -0
- package/es/locale/ja.js +69 -0
- package/es/locale/ko.js +69 -0
- package/es/locale/ru.js +69 -0
- package/es/locale/th.js +69 -0
- package/es/locale/uk.js +69 -0
- package/es/locale/vi.js +69 -0
- package/es/locale/zh-CN.js +69 -0
- package/es/locale/zh-TW.js +69 -0
- package/es/mentions/index.js +710 -0
- package/es/menu/menu-context.js +20 -0
- package/es/menu/menu-divider.js +29 -0
- package/es/menu/menu-group.js +49 -0
- package/es/menu/menu-item.js +79 -0
- package/es/menu/menu-keyboard.js +35 -0
- package/es/menu/menu.js +484 -0
- package/es/menu/recursive-menu.js +68 -0
- package/es/menu/sub-menu.js +256 -0
- package/es/message/index.js +67 -0
- package/es/modal/api.js +62 -0
- package/es/modal/modal.js +589 -0
- package/es/modal/toast.js +99 -0
- package/es/node_modules/.pnpm/kui-icons@5.0.0/node_modules/kui-icons/dist/kui-icons.esm.js +189 -0
- package/es/notice/container.js +123 -0
- package/es/notice/content.js +92 -0
- package/es/notice/index.js +52 -0
- package/es/notice/instance.js +65 -0
- package/es/page/index.js +275 -0
- package/es/page-header/index.js +134 -0
- package/es/popconfirm/index.js +275 -0
- package/es/poptip/index.js +270 -0
- package/es/progress/index.js +253 -0
- package/es/qrcode/index.js +204 -0
- package/es/radio/radio-button.js +158 -0
- package/es/radio/radio-group-context.js +13 -0
- package/es/radio/radio-group.js +264 -0
- package/es/radio/radio.js +232 -0
- package/es/rate/index.js +253 -0
- package/es/rate/star.js +150 -0
- package/es/result/index.js +147 -0
- package/es/ripple/index.js +245 -0
- package/es/ripple/types.js +433 -0
- package/es/row-col/col.js +163 -0
- package/es/row-col/row.js +37 -0
- package/es/segmented/index.js +240 -0
- package/es/select/option.js +124 -0
- package/es/select/select.js +655 -0
- package/es/skeleton/skeleton-avatar.js +44 -0
- package/es/skeleton/skeleton-button.js +43 -0
- package/es/skeleton/skeleton-image.js +131 -0
- package/es/skeleton/skeleton-text.js +113 -0
- package/es/skeleton/skeleton.js +148 -0
- package/es/skeleton/use-skeleton-loading.js +53 -0
- package/es/slider/index.js +484 -0
- package/es/slider/thumb.js +158 -0
- package/es/space/index.js +94 -0
- package/es/spin/index.js +61 -0
- package/es/splitter/splitter-panel.js +50 -0
- package/es/splitter/splitter.js +310 -0
- package/es/stat-card/countup.js +157 -0
- package/es/stat-card/stat-card.js +63 -0
- package/es/stat-card/stat-number.js +125 -0
- package/es/stat-card/utils/countup.js +291 -0
- package/es/stat-card/utils/odometer.js +129 -0
- package/es/steps/index.js +139 -0
- package/es/switch/index.js +72 -0
- package/es/table/column-setting.js +179 -0
- package/es/table/index.js +506 -0
- package/es/table/utils.js +34 -0
- package/es/tabs/tab-panel.js +86 -0
- package/es/tabs/tabs.js +263 -0
- package/es/tag/index.js +74 -0
- package/es/time-line/timeline-item.js +133 -0
- package/es/time-line/timeline.js +55 -0
- package/es/tooltip/index.js +278 -0
- package/es/tour/index.js +379 -0
- package/es/transfer/index.js +511 -0
- package/es/tree/index.js +488 -0
- package/es/tree/utils.js +101 -0
- package/es/tree-select/index.js +938 -0
- package/es/typography/index.js +359 -0
- package/es/upload/file-list.js +143 -0
- package/es/upload/index.js +434 -0
- package/es/upload/picture-sort.js +142 -0
- package/es/upload/selector.js +207 -0
- package/es/utils/checked.js +24 -0
- package/es/utils/color.js +15 -0
- package/es/utils/number.js +74 -0
- package/es/utils/placement.js +151 -0
- package/es/utils/react-node.js +63 -0
- package/es/utils/share.js +12 -0
- package/es/utils/theme.js +57 -0
- package/es/utils/transition.js +58 -0
- package/es/utils/use-value.js +60 -0
- package/es/virtual-list/index.js +252 -0
- package/es/virtual-list/range.js +27 -0
- package/es/watermark/index.js +313 -0
- package/lib/index.cjs +9 -0
- package/lib/locale/de.cjs +9 -0
- package/lib/locale/el.cjs +9 -0
- package/lib/locale/en.cjs +9 -0
- package/lib/locale/fr.cjs +9 -0
- package/lib/locale/it.cjs +9 -0
- package/lib/locale/ja.cjs +9 -0
- package/lib/locale/ko.cjs +9 -0
- package/lib/locale/ru.cjs +9 -0
- package/lib/locale/th.cjs +9 -0
- package/lib/locale/uk.cjs +9 -0
- package/lib/locale/vi.cjs +9 -0
- package/lib/locale/zh-CN.cjs +9 -0
- package/lib/locale/zh-TW.cjs +9 -0
- package/package.json +175 -94
- package/readme.md +142 -82
- package/style/base.css +9 -0
- package/style/components.css +9 -0
- package/style/index.css +9 -0
- package/style/theme.css +9 -0
- package/types/affix/index.d.cts +9 -0
- package/types/affix/index.d.ts +9 -0
- package/types/alert/index.d.cts +18 -0
- package/types/alert/index.d.ts +18 -0
- package/types/anchor/anchor-context.d.cts +7 -0
- package/types/anchor/anchor-context.d.ts +7 -0
- package/types/anchor/anchor-link.d.cts +6 -0
- package/types/anchor/anchor-link.d.ts +6 -0
- package/types/anchor/anchor.d.cts +10 -0
- package/types/anchor/anchor.d.ts +10 -0
- package/types/anchor/index.d.cts +5 -0
- package/types/anchor/index.d.ts +5 -0
- package/types/auto-complete/index.d.cts +28 -0
- package/types/auto-complete/index.d.ts +28 -0
- package/types/avatar/avatar-group-context.d.cts +7 -0
- package/types/avatar/avatar-group-context.d.ts +7 -0
- package/types/avatar/avatar-group.d.cts +11 -0
- package/types/avatar/avatar-group.d.ts +11 -0
- package/types/avatar/avatar.d.cts +14 -0
- package/types/avatar/avatar.d.ts +14 -0
- package/types/avatar/index.d.cts +5 -0
- package/types/avatar/index.d.ts +5 -0
- package/types/back-top/index.d.cts +11 -0
- package/types/back-top/index.d.ts +11 -0
- package/types/badge/index.d.cts +15 -0
- package/types/badge/index.d.ts +15 -0
- package/types/base/teleport.d.cts +13 -0
- package/types/base/teleport.d.ts +13 -0
- package/types/base/transition-props.d.cts +4 -0
- package/types/base/transition-props.d.ts +4 -0
- package/types/base/transition.d.cts +27 -0
- package/types/base/transition.d.ts +27 -0
- package/types/breadcrumb/breadcrumb-context.d.cts +2 -0
- package/types/breadcrumb/breadcrumb-context.d.ts +2 -0
- package/types/breadcrumb/breadcrumb-item.d.cts +11 -0
- package/types/breadcrumb/breadcrumb-item.d.ts +11 -0
- package/types/breadcrumb/breadcrumb.d.cts +7 -0
- package/types/breadcrumb/breadcrumb.d.ts +7 -0
- package/types/breadcrumb/index.d.cts +5 -0
- package/types/breadcrumb/index.d.ts +5 -0
- package/types/button/button-group-context.d.cts +6 -0
- package/types/button/button-group-context.d.ts +6 -0
- package/types/button/button-group.d.cts +9 -0
- package/types/button/button-group.d.ts +9 -0
- package/types/button/button.d.cts +20 -0
- package/types/button/button.d.ts +20 -0
- package/types/button/index.d.cts +5 -0
- package/types/button/index.d.ts +5 -0
- package/types/calendar/index.d.cts +36 -0
- package/types/calendar/index.d.ts +36 -0
- package/types/card/index.d.cts +22 -0
- package/types/card/index.d.ts +22 -0
- package/types/carousel/carousel-context.d.cts +6 -0
- package/types/carousel/carousel-context.d.ts +6 -0
- package/types/carousel/carousel-item.d.cts +3 -0
- package/types/carousel/carousel-item.d.ts +3 -0
- package/types/carousel/carousel.d.cts +18 -0
- package/types/carousel/carousel.d.ts +18 -0
- package/types/carousel/index.d.cts +5 -0
- package/types/carousel/index.d.ts +5 -0
- package/types/cascader/index.d.cts +5 -0
- package/types/cascader/index.d.ts +5 -0
- package/types/cascader/types.d.cts +38 -0
- package/types/cascader/types.d.ts +38 -0
- package/types/check-card/check-card-group.d.cts +4 -0
- package/types/check-card/check-card-group.d.ts +4 -0
- package/types/check-card/check-card.d.cts +4 -0
- package/types/check-card/check-card.d.ts +4 -0
- package/types/check-card/context.d.cts +14 -0
- package/types/check-card/context.d.ts +14 -0
- package/types/check-card/index.d.cts +4 -0
- package/types/check-card/index.d.ts +4 -0
- package/types/check-card/types.d.cts +46 -0
- package/types/check-card/types.d.ts +46 -0
- package/types/checkbox/checkbox-group-context.d.cts +11 -0
- package/types/checkbox/checkbox-group-context.d.ts +11 -0
- package/types/checkbox/checkbox-group.d.cts +22 -0
- package/types/checkbox/checkbox-group.d.ts +22 -0
- package/types/checkbox/checkbox.d.cts +23 -0
- package/types/checkbox/checkbox.d.ts +23 -0
- package/types/checkbox/index.d.cts +6 -0
- package/types/checkbox/index.d.ts +6 -0
- package/types/collapse/collapse-panel.d.cts +12 -0
- package/types/collapse/collapse-panel.d.ts +12 -0
- package/types/collapse/collapse.d.cts +15 -0
- package/types/collapse/collapse.d.ts +15 -0
- package/types/collapse/index.d.cts +6 -0
- package/types/collapse/index.d.ts +6 -0
- package/types/color-picker/alpha.d.cts +6 -0
- package/types/color-picker/alpha.d.ts +6 -0
- package/types/color-picker/hue.d.cts +5 -0
- package/types/color-picker/hue.d.ts +5 -0
- package/types/color-picker/index.d.cts +30 -0
- package/types/color-picker/index.d.ts +30 -0
- package/types/color-picker/mode.d.cts +10 -0
- package/types/color-picker/mode.d.ts +10 -0
- package/types/color-picker/paint.d.cts +7 -0
- package/types/color-picker/paint.d.ts +7 -0
- package/types/color-picker/presets.d.cts +7 -0
- package/types/color-picker/presets.d.ts +7 -0
- package/types/components.d.cts +165 -0
- package/types/components.d.ts +165 -0
- package/types/config/config-context.d.cts +11 -0
- package/types/config/config-context.d.ts +11 -0
- package/types/config/context.d.cts +7 -0
- package/types/config/context.d.ts +7 -0
- package/types/config/index.d.cts +14 -0
- package/types/config/index.d.ts +14 -0
- package/types/config/size-context.d.cts +3 -0
- package/types/config/size-context.d.ts +3 -0
- package/types/config/use-config-appearance.d.cts +7 -0
- package/types/config/use-config-appearance.d.ts +7 -0
- package/types/const/types.d.cts +22 -0
- package/types/const/types.d.ts +22 -0
- package/types/const/var.d.cts +1 -0
- package/types/const/var.d.ts +1 -0
- package/types/date-picker/index.d.cts +54 -0
- package/types/date-picker/index.d.ts +54 -0
- package/types/descriptions/descriptions-item.d.cts +5 -0
- package/types/descriptions/descriptions-item.d.ts +5 -0
- package/types/descriptions/descriptions.d.cts +21 -0
- package/types/descriptions/descriptions.d.ts +21 -0
- package/types/descriptions/index.d.cts +4 -0
- package/types/descriptions/index.d.ts +4 -0
- package/types/directives/outsiteclick.d.cts +3 -0
- package/types/directives/outsiteclick.d.ts +3 -0
- package/types/directives/resize.d.cts +3 -0
- package/types/directives/resize.d.ts +3 -0
- package/types/directives/scroll.d.cts +3 -0
- package/types/directives/scroll.d.ts +3 -0
- package/types/directives/transfer.d.cts +2 -0
- package/types/directives/transfer.d.ts +2 -0
- package/types/divider/index.d.cts +14 -0
- package/types/divider/index.d.ts +14 -0
- package/types/drawer/index.d.cts +27 -0
- package/types/drawer/index.d.ts +27 -0
- package/types/dropdown/dropdown-button.d.cts +17 -0
- package/types/dropdown/dropdown-button.d.ts +17 -0
- package/types/dropdown/dropdown-context.d.cts +11 -0
- package/types/dropdown/dropdown-context.d.ts +11 -0
- package/types/dropdown/dropdown.d.cts +18 -0
- package/types/dropdown/dropdown.d.ts +18 -0
- package/types/dropdown/index.d.cts +4 -0
- package/types/dropdown/index.d.ts +4 -0
- package/types/dropdown/trigger.d.cts +9 -0
- package/types/dropdown/trigger.d.ts +9 -0
- package/types/empty/index.d.cts +9 -0
- package/types/empty/index.d.ts +9 -0
- package/types/feature-card/index.d.cts +20 -0
- package/types/feature-card/index.d.ts +20 -0
- package/types/feedback-panel/index.d.cts +15 -0
- package/types/feedback-panel/index.d.ts +15 -0
- package/types/flame-wrap/index.d.cts +3 -0
- package/types/flame-wrap/index.d.ts +3 -0
- package/types/flame-wrap/types.d.cts +71 -0
- package/types/flame-wrap/types.d.ts +71 -0
- package/types/flex/index.d.cts +15 -0
- package/types/flex/index.d.ts +15 -0
- package/types/form/field-context.d.cts +39 -0
- package/types/form/field-context.d.ts +39 -0
- package/types/form/form-context.d.cts +22 -0
- package/types/form/form-context.d.ts +22 -0
- package/types/form/form-item.d.cts +12 -0
- package/types/form/form-item.d.ts +12 -0
- package/types/form/form.d.cts +40 -0
- package/types/form/form.d.ts +40 -0
- package/types/form/index.d.cts +7 -0
- package/types/form/index.d.ts +7 -0
- package/types/form/types.d.cts +20 -0
- package/types/form/types.d.ts +20 -0
- package/types/form/utils.d.cts +6 -0
- package/types/form/utils.d.ts +6 -0
- package/types/grid/grid-item.d.cts +10 -0
- package/types/grid/grid-item.d.ts +10 -0
- package/types/grid/grid.d.cts +17 -0
- package/types/grid/grid.d.ts +17 -0
- package/types/grid/index.d.cts +6 -0
- package/types/grid/index.d.ts +6 -0
- package/types/grid/useBreakpoint.d.cts +11 -0
- package/types/grid/useBreakpoint.d.ts +11 -0
- package/types/icon/index.d.cts +15 -0
- package/types/icon/index.d.ts +15 -0
- package/types/image/group.d.cts +5 -0
- package/types/image/group.d.ts +5 -0
- package/types/image/image-group-context.d.cts +8 -0
- package/types/image/image-group-context.d.ts +8 -0
- package/types/image/image.d.cts +28 -0
- package/types/image/image.d.ts +28 -0
- package/types/image/index.d.cts +6 -0
- package/types/image/index.d.ts +6 -0
- package/types/image/instance.d.cts +5 -0
- package/types/image/instance.d.ts +5 -0
- package/types/image/preview.d.cts +19 -0
- package/types/image/preview.d.ts +19 -0
- package/types/image/utils.d.cts +6 -0
- package/types/image/utils.d.ts +6 -0
- package/types/index.d.cts +8 -0
- package/types/index.d.ts +8 -0
- package/types/input/index.d.cts +8 -0
- package/types/input/index.d.ts +8 -0
- package/types/input/input-box.d.cts +14 -0
- package/types/input/input-box.d.ts +14 -0
- package/types/input/input-group.d.cts +11 -0
- package/types/input/input-group.d.ts +11 -0
- package/types/input/input.d.cts +28 -0
- package/types/input/input.d.ts +28 -0
- package/types/input/textarea.d.cts +11 -0
- package/types/input/textarea.d.ts +11 -0
- package/types/input-number/index.d.cts +27 -0
- package/types/input-number/index.d.ts +27 -0
- package/types/input-otp/index.d.cts +27 -0
- package/types/input-otp/index.d.ts +27 -0
- package/types/input-tag/index.d.cts +23 -0
- package/types/input-tag/index.d.ts +23 -0
- package/types/kanban/index.d.cts +31 -0
- package/types/kanban/index.d.ts +31 -0
- package/types/layout/index.d.cts +29 -0
- package/types/layout/index.d.ts +29 -0
- package/types/layout/layout-context.d.cts +1 -0
- package/types/layout/layout-context.d.ts +1 -0
- package/types/list-panel/index.d.cts +16 -0
- package/types/list-panel/index.d.ts +16 -0
- package/types/loading/index.d.cts +10 -0
- package/types/loading/index.d.ts +10 -0
- package/types/loading/loading-bar.d.cts +12 -0
- package/types/loading/loading-bar.d.ts +12 -0
- package/types/locale/de.d.cts +65 -0
- package/types/locale/de.d.ts +65 -0
- package/types/locale/el.d.cts +65 -0
- package/types/locale/el.d.ts +65 -0
- package/types/locale/en.d.cts +65 -0
- package/types/locale/en.d.ts +65 -0
- package/types/locale/fr.d.cts +65 -0
- package/types/locale/fr.d.ts +65 -0
- package/types/locale/it.d.cts +65 -0
- package/types/locale/it.d.ts +65 -0
- package/types/locale/ja.d.cts +65 -0
- package/types/locale/ja.d.ts +65 -0
- package/types/locale/ko.d.cts +65 -0
- package/types/locale/ko.d.ts +65 -0
- package/types/locale/ru.d.cts +65 -0
- package/types/locale/ru.d.ts +65 -0
- package/types/locale/th.d.cts +65 -0
- package/types/locale/th.d.ts +65 -0
- package/types/locale/uk.d.cts +65 -0
- package/types/locale/uk.d.ts +65 -0
- package/types/locale/vi.d.cts +65 -0
- package/types/locale/vi.d.ts +65 -0
- package/types/locale/zh-CN.d.cts +65 -0
- package/types/locale/zh-CN.d.ts +65 -0
- package/types/locale/zh-TW.d.cts +65 -0
- package/types/locale/zh-TW.d.ts +65 -0
- package/types/mentions/index.d.cts +28 -0
- package/types/mentions/index.d.ts +28 -0
- package/types/menu/index.d.cts +7 -0
- package/types/menu/index.d.ts +7 -0
- package/types/menu/menu-context.d.cts +24 -0
- package/types/menu/menu-context.d.ts +24 -0
- package/types/menu/menu-divider.d.cts +3 -0
- package/types/menu/menu-divider.d.ts +3 -0
- package/types/menu/menu-group.d.cts +7 -0
- package/types/menu/menu-group.d.ts +7 -0
- package/types/menu/menu-item.d.cts +15 -0
- package/types/menu/menu-item.d.ts +15 -0
- package/types/menu/menu-keyboard.d.cts +7 -0
- package/types/menu/menu-keyboard.d.ts +7 -0
- package/types/menu/menu.d.cts +33 -0
- package/types/menu/menu.d.ts +33 -0
- package/types/menu/recursive-menu.d.cts +7 -0
- package/types/menu/recursive-menu.d.ts +7 -0
- package/types/menu/sub-menu.d.cts +12 -0
- package/types/menu/sub-menu.d.ts +12 -0
- package/types/message/index.d.cts +24 -0
- package/types/message/index.d.ts +24 -0
- package/types/modal/api.d.cts +26 -0
- package/types/modal/api.d.ts +26 -0
- package/types/modal/index.d.cts +4 -0
- package/types/modal/index.d.ts +4 -0
- package/types/modal/modal.d.cts +32 -0
- package/types/modal/modal.d.ts +32 -0
- package/types/modal/toast.d.cts +15 -0
- package/types/modal/toast.d.ts +15 -0
- package/types/notice/container.d.cts +9 -0
- package/types/notice/container.d.ts +9 -0
- package/types/notice/content.d.cts +22 -0
- package/types/notice/content.d.ts +22 -0
- package/types/notice/index.d.cts +24 -0
- package/types/notice/index.d.ts +24 -0
- package/types/notice/instance.d.cts +7 -0
- package/types/notice/instance.d.ts +7 -0
- package/types/page/index.d.cts +19 -0
- package/types/page/index.d.ts +19 -0
- package/types/page-header/index.d.cts +10 -0
- package/types/page-header/index.d.ts +10 -0
- package/types/popconfirm/index.d.cts +27 -0
- package/types/popconfirm/index.d.ts +27 -0
- package/types/poptip/index.d.cts +25 -0
- package/types/poptip/index.d.ts +25 -0
- package/types/progress/index.d.cts +21 -0
- package/types/progress/index.d.ts +21 -0
- package/types/qrcode/index.d.cts +28 -0
- package/types/qrcode/index.d.ts +28 -0
- package/types/radio/index.d.cts +7 -0
- package/types/radio/index.d.ts +7 -0
- package/types/radio/radio-button.d.cts +20 -0
- package/types/radio/radio-button.d.ts +20 -0
- package/types/radio/radio-group-context.d.cts +13 -0
- package/types/radio/radio-group-context.d.ts +13 -0
- package/types/radio/radio-group.d.cts +26 -0
- package/types/radio/radio-group.d.ts +26 -0
- package/types/radio/radio.d.cts +17 -0
- package/types/radio/radio.d.ts +17 -0
- package/types/radio/types.d.cts +5 -0
- package/types/radio/types.d.ts +5 -0
- package/types/rate/index.d.cts +22 -0
- package/types/rate/index.d.ts +22 -0
- package/types/rate/star.d.cts +19 -0
- package/types/rate/star.d.ts +19 -0
- package/types/result/index.d.cts +12 -0
- package/types/result/index.d.ts +12 -0
- package/types/ripple/index.d.cts +10 -0
- package/types/ripple/index.d.ts +10 -0
- package/types/ripple/types.d.cts +48 -0
- package/types/ripple/types.d.ts +48 -0
- package/types/row-col/col.d.cts +26 -0
- package/types/row-col/col.d.ts +26 -0
- package/types/row-col/index.d.cts +5 -0
- package/types/row-col/index.d.ts +5 -0
- package/types/row-col/row.d.cts +9 -0
- package/types/row-col/row.d.ts +9 -0
- package/types/segmented/index.d.cts +25 -0
- package/types/segmented/index.d.ts +25 -0
- package/types/select/index.d.cts +5 -0
- package/types/select/index.d.ts +5 -0
- package/types/select/option.d.cts +17 -0
- package/types/select/option.d.ts +17 -0
- package/types/select/select.d.cts +51 -0
- package/types/select/select.d.ts +51 -0
- package/types/skeleton/index.d.cts +11 -0
- package/types/skeleton/index.d.ts +11 -0
- package/types/skeleton/skeleton-avatar.d.cts +13 -0
- package/types/skeleton/skeleton-avatar.d.ts +13 -0
- package/types/skeleton/skeleton-button.d.cts +14 -0
- package/types/skeleton/skeleton-button.d.ts +14 -0
- package/types/skeleton/skeleton-image.d.cts +11 -0
- package/types/skeleton/skeleton-image.d.ts +11 -0
- package/types/skeleton/skeleton-text.d.cts +12 -0
- package/types/skeleton/skeleton-text.d.ts +12 -0
- package/types/skeleton/skeleton.d.cts +19 -0
- package/types/skeleton/skeleton.d.ts +19 -0
- package/types/skeleton/use-skeleton-loading.d.cts +1 -0
- package/types/skeleton/use-skeleton-loading.d.ts +1 -0
- package/types/slider/index.d.cts +21 -0
- package/types/slider/index.d.ts +21 -0
- package/types/slider/thumb.d.cts +17 -0
- package/types/slider/thumb.d.ts +17 -0
- package/types/space/index.d.cts +15 -0
- package/types/space/index.d.ts +15 -0
- package/types/spin/index.d.cts +11 -0
- package/types/spin/index.d.ts +11 -0
- package/types/splitter/index.d.cts +4 -0
- package/types/splitter/index.d.ts +4 -0
- package/types/splitter/splitter-panel.d.cts +7 -0
- package/types/splitter/splitter-panel.d.ts +7 -0
- package/types/splitter/splitter.d.cts +9 -0
- package/types/splitter/splitter.d.ts +9 -0
- package/types/stat-card/countup.d.cts +11 -0
- package/types/stat-card/countup.d.ts +11 -0
- package/types/stat-card/index.d.cts +5 -0
- package/types/stat-card/index.d.ts +5 -0
- package/types/stat-card/rollup.d.cts +7 -0
- package/types/stat-card/rollup.d.ts +7 -0
- package/types/stat-card/stat-card.d.cts +31 -0
- package/types/stat-card/stat-card.d.ts +31 -0
- package/types/stat-card/stat-number.d.cts +13 -0
- package/types/stat-card/stat-number.d.ts +13 -0
- package/types/stat-card/utils/countup.d.cts +128 -0
- package/types/stat-card/utils/countup.d.ts +128 -0
- package/types/stat-card/utils/odometer.d.cts +14 -0
- package/types/stat-card/utils/odometer.d.ts +14 -0
- package/types/steps/index.d.cts +20 -0
- package/types/steps/index.d.ts +20 -0
- package/types/switch/index.d.cts +21 -0
- package/types/switch/index.d.ts +21 -0
- package/types/table/column-setting.d.cts +28 -0
- package/types/table/column-setting.d.ts +28 -0
- package/types/table/index.d.cts +5 -0
- package/types/table/index.d.ts +5 -0
- package/types/table/types.d.cts +66 -0
- package/types/table/types.d.ts +66 -0
- package/types/table/utils.d.cts +14 -0
- package/types/table/utils.d.ts +14 -0
- package/types/tabs/index.d.cts +5 -0
- package/types/tabs/index.d.ts +5 -0
- package/types/tabs/tab-panel.d.cts +17 -0
- package/types/tabs/tab-panel.d.ts +17 -0
- package/types/tabs/tabs.d.cts +16 -0
- package/types/tabs/tabs.d.ts +16 -0
- package/types/tabs/types.d.cts +16 -0
- package/types/tabs/types.d.ts +16 -0
- package/types/tag/index.d.cts +16 -0
- package/types/tag/index.d.ts +16 -0
- package/types/time-line/index.d.cts +5 -0
- package/types/time-line/index.d.ts +5 -0
- package/types/time-line/timeline-item.d.cts +10 -0
- package/types/time-line/timeline-item.d.ts +10 -0
- package/types/time-line/timeline.d.cts +6 -0
- package/types/time-line/timeline.d.ts +6 -0
- package/types/tooltip/index.d.cts +23 -0
- package/types/tooltip/index.d.ts +23 -0
- package/types/tour/index.d.cts +22 -0
- package/types/tour/index.d.ts +22 -0
- package/types/transfer/index.d.cts +33 -0
- package/types/transfer/index.d.ts +33 -0
- package/types/tree/index.d.cts +51 -0
- package/types/tree/index.d.ts +51 -0
- package/types/tree/types.d.cts +27 -0
- package/types/tree/types.d.ts +27 -0
- package/types/tree/utils.d.cts +33 -0
- package/types/tree/utils.d.ts +33 -0
- package/types/tree-select/index.d.cts +60 -0
- package/types/tree-select/index.d.ts +60 -0
- package/types/typography/index.d.cts +40 -0
- package/types/typography/index.d.ts +40 -0
- package/types/upload/file-list.d.cts +19 -0
- package/types/upload/file-list.d.ts +19 -0
- package/types/upload/index.d.cts +90 -0
- package/types/upload/index.d.ts +90 -0
- package/types/upload/picture-sort.d.cts +2 -0
- package/types/upload/picture-sort.d.ts +2 -0
- package/types/upload/selector.d.cts +21 -0
- package/types/upload/selector.d.ts +21 -0
- package/types/utils/checked.d.cts +2 -0
- package/types/utils/checked.d.ts +2 -0
- package/types/utils/color.d.cts +1 -0
- package/types/utils/color.d.ts +1 -0
- package/types/utils/element.d.cts +2 -0
- package/types/utils/element.d.ts +2 -0
- package/types/utils/mouse.d.cts +1 -0
- package/types/utils/mouse.d.ts +1 -0
- package/types/utils/number.d.cts +6 -0
- package/types/utils/number.d.ts +6 -0
- package/types/utils/placement.d.cts +16 -0
- package/types/utils/placement.d.ts +16 -0
- package/types/utils/react-node.d.cts +5 -0
- package/types/utils/react-node.d.ts +5 -0
- package/types/utils/share.d.cts +12 -0
- package/types/utils/share.d.ts +12 -0
- package/types/utils/theme.d.cts +5 -0
- package/types/utils/theme.d.ts +5 -0
- package/types/utils/transition.d.cts +3 -0
- package/types/utils/transition.d.ts +3 -0
- package/types/utils/use-value.d.cts +2 -0
- package/types/utils/use-value.d.ts +2 -0
- package/types/virtual-list/index.d.cts +17 -0
- package/types/virtual-list/index.d.ts +17 -0
- package/types/virtual-list/range.d.cts +15 -0
- package/types/virtual-list/range.d.ts +15 -0
- package/types/watermark/index.d.cts +27 -0
- package/types/watermark/index.d.ts +27 -0
- package/dist/k-ui.css +0 -7
- package/dist/k-ui.js +0 -13
|
@@ -0,0 +1,710 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* react-kui v3.0.0
|
|
3
|
+
* Copyright 2017-present, kui-react.
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Homepage: https://react.k-ui.cn
|
|
6
|
+
* Author: Qiu / https://chuchur.com
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { useConfigAppearance } from "../config/use-config-appearance.js";
|
|
10
|
+
import { CircleX, Loading } from "../node_modules/.pnpm/kui-icons@5.0.0/node_modules/kui-icons/dist/kui-icons.esm.js";
|
|
11
|
+
import Icon from "../icon/index.js";
|
|
12
|
+
import { useValue } from "../utils/use-value.js";
|
|
13
|
+
import Empty from "../empty/index.js";
|
|
14
|
+
import { createFormFieldComponent } from "../form/field-context.js";
|
|
15
|
+
import Teleport from "../base/teleport.js";
|
|
16
|
+
import { Transition } from "../base/transition.js";
|
|
17
|
+
import textarea_default from "../input/textarea.js";
|
|
18
|
+
import { setPlacement } from "../utils/placement.js";
|
|
19
|
+
import { c } from "react/compiler-runtime";
|
|
20
|
+
import clsx from "clsx";
|
|
21
|
+
import { useEffect, useEffectEvent, useId, useRef, useState } from "react";
|
|
22
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
23
|
+
//#region components/mentions/index.tsx
|
|
24
|
+
var caretPosition = (element) => {
|
|
25
|
+
const style = window.getComputedStyle(element);
|
|
26
|
+
const rect = element.getBoundingClientRect();
|
|
27
|
+
const mirror = document.createElement("div");
|
|
28
|
+
const copiedProperties = [
|
|
29
|
+
"boxSizing",
|
|
30
|
+
"borderTopWidth",
|
|
31
|
+
"borderRightWidth",
|
|
32
|
+
"borderBottomWidth",
|
|
33
|
+
"borderLeftWidth",
|
|
34
|
+
"paddingTop",
|
|
35
|
+
"paddingRight",
|
|
36
|
+
"paddingBottom",
|
|
37
|
+
"paddingLeft",
|
|
38
|
+
"fontStyle",
|
|
39
|
+
"fontVariant",
|
|
40
|
+
"fontWeight",
|
|
41
|
+
"fontStretch",
|
|
42
|
+
"fontSize",
|
|
43
|
+
"fontFamily",
|
|
44
|
+
"lineHeight",
|
|
45
|
+
"letterSpacing",
|
|
46
|
+
"textTransform",
|
|
47
|
+
"textAlign",
|
|
48
|
+
"textIndent",
|
|
49
|
+
"tabSize"
|
|
50
|
+
];
|
|
51
|
+
Object.assign(mirror.style, {
|
|
52
|
+
position: "fixed",
|
|
53
|
+
visibility: "hidden",
|
|
54
|
+
overflow: "hidden",
|
|
55
|
+
whiteSpace: "pre-wrap",
|
|
56
|
+
overflowWrap: "break-word",
|
|
57
|
+
width: `${rect.width}px`,
|
|
58
|
+
left: `${rect.left - element.scrollLeft}px`,
|
|
59
|
+
top: `${rect.top - element.scrollTop}px`
|
|
60
|
+
});
|
|
61
|
+
copiedProperties.forEach((property) => {
|
|
62
|
+
mirror.style[property] = style[property];
|
|
63
|
+
});
|
|
64
|
+
mirror.textContent = element.value.slice(0, element.selectionStart);
|
|
65
|
+
const marker = document.createElement("span");
|
|
66
|
+
marker.textContent = "";
|
|
67
|
+
mirror.append(marker);
|
|
68
|
+
document.body.append(mirror);
|
|
69
|
+
const markerRect = marker.getBoundingClientRect();
|
|
70
|
+
mirror.remove();
|
|
71
|
+
return markerRect;
|
|
72
|
+
};
|
|
73
|
+
var EMPTY_OPTIONS = [];
|
|
74
|
+
var Mentions = (t0) => {
|
|
75
|
+
const $ = c(141);
|
|
76
|
+
let className;
|
|
77
|
+
let disabled;
|
|
78
|
+
let emptyText;
|
|
79
|
+
let filterOption;
|
|
80
|
+
let loadingText;
|
|
81
|
+
let onChange;
|
|
82
|
+
let onClear;
|
|
83
|
+
let onSearch;
|
|
84
|
+
let onSelect;
|
|
85
|
+
let readOnly;
|
|
86
|
+
let rest;
|
|
87
|
+
let shapeProp;
|
|
88
|
+
let sizeProp;
|
|
89
|
+
let t1;
|
|
90
|
+
let t2;
|
|
91
|
+
let t3;
|
|
92
|
+
let t4;
|
|
93
|
+
let t5;
|
|
94
|
+
let t6;
|
|
95
|
+
let themeProp;
|
|
96
|
+
let value;
|
|
97
|
+
if ($[0] !== t0) {
|
|
98
|
+
({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);
|
|
99
|
+
$[0] = t0;
|
|
100
|
+
$[1] = className;
|
|
101
|
+
$[2] = disabled;
|
|
102
|
+
$[3] = emptyText;
|
|
103
|
+
$[4] = filterOption;
|
|
104
|
+
$[5] = loadingText;
|
|
105
|
+
$[6] = onChange;
|
|
106
|
+
$[7] = onClear;
|
|
107
|
+
$[8] = onSearch;
|
|
108
|
+
$[9] = onSelect;
|
|
109
|
+
$[10] = readOnly;
|
|
110
|
+
$[11] = rest;
|
|
111
|
+
$[12] = shapeProp;
|
|
112
|
+
$[13] = sizeProp;
|
|
113
|
+
$[14] = t1;
|
|
114
|
+
$[15] = t2;
|
|
115
|
+
$[16] = t3;
|
|
116
|
+
$[17] = t4;
|
|
117
|
+
$[18] = t5;
|
|
118
|
+
$[19] = t6;
|
|
119
|
+
$[20] = themeProp;
|
|
120
|
+
$[21] = value;
|
|
121
|
+
} else {
|
|
122
|
+
className = $[1];
|
|
123
|
+
disabled = $[2];
|
|
124
|
+
emptyText = $[3];
|
|
125
|
+
filterOption = $[4];
|
|
126
|
+
loadingText = $[5];
|
|
127
|
+
onChange = $[6];
|
|
128
|
+
onClear = $[7];
|
|
129
|
+
onSearch = $[8];
|
|
130
|
+
onSelect = $[9];
|
|
131
|
+
readOnly = $[10];
|
|
132
|
+
rest = $[11];
|
|
133
|
+
shapeProp = $[12];
|
|
134
|
+
sizeProp = $[13];
|
|
135
|
+
t1 = $[14];
|
|
136
|
+
t2 = $[15];
|
|
137
|
+
t3 = $[16];
|
|
138
|
+
t4 = $[17];
|
|
139
|
+
t5 = $[18];
|
|
140
|
+
t6 = $[19];
|
|
141
|
+
themeProp = $[20];
|
|
142
|
+
value = $[21];
|
|
143
|
+
}
|
|
144
|
+
const options = t1 === void 0 ? EMPTY_OPTIONS : t1;
|
|
145
|
+
let t7;
|
|
146
|
+
if ($[22] !== t2) {
|
|
147
|
+
t7 = t2 === void 0 ? ["@"] : t2;
|
|
148
|
+
$[22] = t2;
|
|
149
|
+
$[23] = t7;
|
|
150
|
+
} else t7 = $[23];
|
|
151
|
+
const triggers = t7;
|
|
152
|
+
const rows = t3 === void 0 ? 1 : t3;
|
|
153
|
+
const placement = t4 === void 0 ? "bottom-left" : t4;
|
|
154
|
+
const loading = t5 === void 0 ? false : t5;
|
|
155
|
+
const clearable = t6 === void 0 ? true : t6;
|
|
156
|
+
const inheritedAppearance = useConfigAppearance();
|
|
157
|
+
const size = sizeProp ?? inheritedAppearance.size;
|
|
158
|
+
const shape = shapeProp ?? inheritedAppearance.shape;
|
|
159
|
+
const theme = themeProp ?? inheritedAppearance.theme ?? "fill";
|
|
160
|
+
const [inner, setInner] = useValue(value, _temp);
|
|
161
|
+
const t8 = useId();
|
|
162
|
+
let t9;
|
|
163
|
+
if ($[24] !== t8) {
|
|
164
|
+
let t10;
|
|
165
|
+
if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
|
|
166
|
+
t10 = /:/g;
|
|
167
|
+
$[26] = t10;
|
|
168
|
+
} else t10 = $[26];
|
|
169
|
+
t9 = t8.replace(t10, "");
|
|
170
|
+
$[24] = t8;
|
|
171
|
+
$[25] = t9;
|
|
172
|
+
} else t9 = $[25];
|
|
173
|
+
const listboxId = `k-mentions-listbox-${t9}`;
|
|
174
|
+
const [query, setQuery] = useState(null);
|
|
175
|
+
const [rendered, setRendered] = useState(false);
|
|
176
|
+
const [active, setActive] = useState(0);
|
|
177
|
+
let t10;
|
|
178
|
+
if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
|
|
179
|
+
t10 = [];
|
|
180
|
+
$[27] = t10;
|
|
181
|
+
} else t10 = $[27];
|
|
182
|
+
const [shown, setShown] = useState(t10);
|
|
183
|
+
const [positioned, setPositioned] = useState(false);
|
|
184
|
+
let t11;
|
|
185
|
+
if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
|
|
186
|
+
t11 = {
|
|
187
|
+
left: 0,
|
|
188
|
+
top: 0,
|
|
189
|
+
origin: "left top",
|
|
190
|
+
width: 260
|
|
191
|
+
};
|
|
192
|
+
$[28] = t11;
|
|
193
|
+
} else t11 = $[28];
|
|
194
|
+
const [position, setPosition] = useState(t11);
|
|
195
|
+
const rootRef = useRef(null);
|
|
196
|
+
const textareaRef = useRef(null);
|
|
197
|
+
const dropdownRef = useRef(null);
|
|
198
|
+
const placementRef = useRef(placement);
|
|
199
|
+
const originRef = useRef("left top");
|
|
200
|
+
const topRef = useRef(0);
|
|
201
|
+
const leftRef = useRef(0);
|
|
202
|
+
const composing = useRef(false);
|
|
203
|
+
const current = inner;
|
|
204
|
+
let t12;
|
|
205
|
+
if ($[29] !== options) {
|
|
206
|
+
t12 = options.map(_temp2);
|
|
207
|
+
$[29] = options;
|
|
208
|
+
$[30] = t12;
|
|
209
|
+
} else t12 = $[30];
|
|
210
|
+
const normalized = t12;
|
|
211
|
+
let t13;
|
|
212
|
+
if ($[31] !== triggers) {
|
|
213
|
+
t13 = triggers.filter(Boolean);
|
|
214
|
+
$[31] = triggers;
|
|
215
|
+
$[32] = t13;
|
|
216
|
+
} else t13 = $[32];
|
|
217
|
+
const effectiveTriggers = t13;
|
|
218
|
+
const firstEnabled = _temp4;
|
|
219
|
+
let t14;
|
|
220
|
+
if ($[33] === Symbol.for("react.memo_cache_sentinel")) {
|
|
221
|
+
t14 = (items_0) => {
|
|
222
|
+
setShown(items_0);
|
|
223
|
+
setActive(firstEnabled(items_0));
|
|
224
|
+
};
|
|
225
|
+
$[33] = t14;
|
|
226
|
+
} else t14 = $[33];
|
|
227
|
+
const setMatches = t14;
|
|
228
|
+
let t15;
|
|
229
|
+
if ($[34] !== active || $[35] !== shown) {
|
|
230
|
+
t15 = (offset) => {
|
|
231
|
+
const enabled = shown.map(_temp5).filter(_temp6);
|
|
232
|
+
if (!enabled.length) return;
|
|
233
|
+
const currentIndex = enabled.indexOf(active);
|
|
234
|
+
setActive(enabled[(Math.max(currentIndex, 0) + offset + enabled.length) % enabled.length]);
|
|
235
|
+
};
|
|
236
|
+
$[34] = active;
|
|
237
|
+
$[35] = shown;
|
|
238
|
+
$[36] = t15;
|
|
239
|
+
} else t15 = $[36];
|
|
240
|
+
const moveActive = t15;
|
|
241
|
+
let t16;
|
|
242
|
+
if ($[37] !== filterOption || $[38] !== normalized || $[39] !== onSearch) {
|
|
243
|
+
t16 = (state) => {
|
|
244
|
+
if (onSearch && !filterOption) return normalized;
|
|
245
|
+
return normalized.filter((option_1) => filterOption ? filterOption(state.text, option_1) : option_1.value.toLocaleLowerCase().includes(state.text.toLocaleLowerCase()));
|
|
246
|
+
};
|
|
247
|
+
$[37] = filterOption;
|
|
248
|
+
$[38] = normalized;
|
|
249
|
+
$[39] = onSearch;
|
|
250
|
+
$[40] = t16;
|
|
251
|
+
} else t16 = $[40];
|
|
252
|
+
const getMatches = t16;
|
|
253
|
+
const [previousNormalized, setPreviousNormalized] = useState(normalized);
|
|
254
|
+
if (previousNormalized !== normalized) {
|
|
255
|
+
setPreviousNormalized(normalized);
|
|
256
|
+
if (query) setMatches(getMatches(query));
|
|
257
|
+
}
|
|
258
|
+
let t17;
|
|
259
|
+
if ($[41] !== placement || $[42] !== query) {
|
|
260
|
+
t17 = () => {
|
|
261
|
+
if (!query || !textareaRef.current || !dropdownRef.current) return;
|
|
262
|
+
const rect = caretPosition(textareaRef.current);
|
|
263
|
+
placementRef.current = placement;
|
|
264
|
+
setPlacement({
|
|
265
|
+
refSelection: rootRef,
|
|
266
|
+
refPopper: dropdownRef,
|
|
267
|
+
currentPlacement: placementRef,
|
|
268
|
+
transOrigin: originRef,
|
|
269
|
+
top: topRef,
|
|
270
|
+
left: leftRef,
|
|
271
|
+
position: {
|
|
272
|
+
x: rect.left,
|
|
273
|
+
y: rect.bottom
|
|
274
|
+
},
|
|
275
|
+
offset: 4
|
|
276
|
+
});
|
|
277
|
+
setPosition({
|
|
278
|
+
left: leftRef.current,
|
|
279
|
+
top: topRef.current,
|
|
280
|
+
origin: originRef.current,
|
|
281
|
+
width: Math.min(260, rootRef.current?.offsetWidth || 260)
|
|
282
|
+
});
|
|
283
|
+
setPositioned(true);
|
|
284
|
+
};
|
|
285
|
+
$[41] = placement;
|
|
286
|
+
$[42] = query;
|
|
287
|
+
$[43] = t17;
|
|
288
|
+
} else t17 = $[43];
|
|
289
|
+
const updatePosition = t17;
|
|
290
|
+
let t18;
|
|
291
|
+
if ($[44] !== effectiveTriggers || $[45] !== getMatches || $[46] !== onSearch || $[47] !== query || $[48] !== readOnly) {
|
|
292
|
+
t18 = (text, caret, t19) => {
|
|
293
|
+
const search = t19 === void 0 ? false : t19;
|
|
294
|
+
if (readOnly) {
|
|
295
|
+
setQuery(null);
|
|
296
|
+
return;
|
|
297
|
+
}
|
|
298
|
+
const prefix = text.slice(0, caret);
|
|
299
|
+
let found = null;
|
|
300
|
+
effectiveTriggers.forEach((trigger) => {
|
|
301
|
+
const start = prefix.lastIndexOf(trigger);
|
|
302
|
+
if (start >= 0 && !/\s/.test(prefix.slice(start + trigger.length)) && (!found || start > found.start)) found = {
|
|
303
|
+
start,
|
|
304
|
+
trigger,
|
|
305
|
+
text: prefix.slice(start + trigger.length)
|
|
306
|
+
};
|
|
307
|
+
});
|
|
308
|
+
const nextQuery = found;
|
|
309
|
+
setQuery(nextQuery);
|
|
310
|
+
if (!query && nextQuery) setPositioned(false);
|
|
311
|
+
if (nextQuery) {
|
|
312
|
+
setRendered(true);
|
|
313
|
+
setMatches(onSearch && search && nextQuery.text ? [] : getMatches(nextQuery));
|
|
314
|
+
if (search && nextQuery.text) onSearch?.(nextQuery.text, nextQuery.trigger);
|
|
315
|
+
} else setMatches([]);
|
|
316
|
+
};
|
|
317
|
+
$[44] = effectiveTriggers;
|
|
318
|
+
$[45] = getMatches;
|
|
319
|
+
$[46] = onSearch;
|
|
320
|
+
$[47] = query;
|
|
321
|
+
$[48] = readOnly;
|
|
322
|
+
$[49] = t18;
|
|
323
|
+
} else t18 = $[49];
|
|
324
|
+
const updateQuery = t18;
|
|
325
|
+
const positionDropdown = useEffectEvent(updatePosition);
|
|
326
|
+
let t19;
|
|
327
|
+
if ($[50] !== positionDropdown || $[51] !== query) {
|
|
328
|
+
t19 = () => {
|
|
329
|
+
if (!query) return;
|
|
330
|
+
let frame = 0;
|
|
331
|
+
const update = () => {
|
|
332
|
+
cancelAnimationFrame(frame);
|
|
333
|
+
frame = requestAnimationFrame(positionDropdown);
|
|
334
|
+
};
|
|
335
|
+
const closeOutside = (event) => {
|
|
336
|
+
const target = event.target;
|
|
337
|
+
if (!rootRef.current?.contains(target) && !dropdownRef.current?.contains(target)) setQuery(null);
|
|
338
|
+
};
|
|
339
|
+
const observer = new ResizeObserver(update);
|
|
340
|
+
if (rootRef.current) observer.observe(rootRef.current);
|
|
341
|
+
if (dropdownRef.current) observer.observe(dropdownRef.current);
|
|
342
|
+
update();
|
|
343
|
+
window.addEventListener("resize", update);
|
|
344
|
+
window.addEventListener("scroll", update, true);
|
|
345
|
+
document.addEventListener("mousedown", closeOutside);
|
|
346
|
+
return () => {
|
|
347
|
+
cancelAnimationFrame(frame);
|
|
348
|
+
observer.disconnect();
|
|
349
|
+
window.removeEventListener("resize", update);
|
|
350
|
+
window.removeEventListener("scroll", update, true);
|
|
351
|
+
document.removeEventListener("mousedown", closeOutside);
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
$[50] = positionDropdown;
|
|
355
|
+
$[51] = query;
|
|
356
|
+
$[52] = t19;
|
|
357
|
+
} else t19 = $[52];
|
|
358
|
+
let t20;
|
|
359
|
+
if ($[53] !== placement || $[54] !== query || $[55] !== shown) {
|
|
360
|
+
t20 = [
|
|
361
|
+
query,
|
|
362
|
+
shown,
|
|
363
|
+
placement
|
|
364
|
+
];
|
|
365
|
+
$[53] = placement;
|
|
366
|
+
$[54] = query;
|
|
367
|
+
$[55] = shown;
|
|
368
|
+
$[56] = t20;
|
|
369
|
+
} else t20 = $[56];
|
|
370
|
+
useEffect(t19, t20);
|
|
371
|
+
let t21;
|
|
372
|
+
let t22;
|
|
373
|
+
if ($[57] !== active || $[58] !== listboxId) {
|
|
374
|
+
t21 = () => {
|
|
375
|
+
dropdownRef.current?.querySelector(`#${listboxId}-option-${active}`)?.scrollIntoView({ block: "nearest" });
|
|
376
|
+
};
|
|
377
|
+
t22 = [active, listboxId];
|
|
378
|
+
$[57] = active;
|
|
379
|
+
$[58] = listboxId;
|
|
380
|
+
$[59] = t21;
|
|
381
|
+
$[60] = t22;
|
|
382
|
+
} else {
|
|
383
|
+
t21 = $[59];
|
|
384
|
+
t22 = $[60];
|
|
385
|
+
}
|
|
386
|
+
useEffect(t21, t22);
|
|
387
|
+
let t23;
|
|
388
|
+
if ($[61] !== onChange || $[62] !== readOnly || $[63] !== setInner) {
|
|
389
|
+
t23 = (next_0) => {
|
|
390
|
+
if (readOnly) return;
|
|
391
|
+
setInner(next_0);
|
|
392
|
+
onChange?.(next_0);
|
|
393
|
+
};
|
|
394
|
+
$[61] = onChange;
|
|
395
|
+
$[62] = readOnly;
|
|
396
|
+
$[63] = setInner;
|
|
397
|
+
$[64] = t23;
|
|
398
|
+
} else t23 = $[64];
|
|
399
|
+
const setValue = t23;
|
|
400
|
+
let t24;
|
|
401
|
+
if ($[65] !== onClear || $[66] !== readOnly || $[67] !== setValue) {
|
|
402
|
+
t24 = (event_0) => {
|
|
403
|
+
if (readOnly) return;
|
|
404
|
+
event_0.stopPropagation();
|
|
405
|
+
setValue("");
|
|
406
|
+
setQuery(null);
|
|
407
|
+
onClear?.();
|
|
408
|
+
textareaRef.current?.focus();
|
|
409
|
+
};
|
|
410
|
+
$[65] = onClear;
|
|
411
|
+
$[66] = readOnly;
|
|
412
|
+
$[67] = setValue;
|
|
413
|
+
$[68] = t24;
|
|
414
|
+
} else t24 = $[68];
|
|
415
|
+
const clear = t24;
|
|
416
|
+
let t25;
|
|
417
|
+
if ($[69] !== current || $[70] !== onSelect || $[71] !== query || $[72] !== readOnly || $[73] !== setValue) {
|
|
418
|
+
t25 = (option_2) => {
|
|
419
|
+
const textarea = textareaRef.current;
|
|
420
|
+
if (readOnly || !query || option_2.disabled || !textarea) return;
|
|
421
|
+
const state_0 = query;
|
|
422
|
+
const caret_0 = textarea.selectionStart;
|
|
423
|
+
setValue(`${current.slice(0, state_0.start)}${state_0.trigger}${option_2.value} ${current.slice(caret_0)}`);
|
|
424
|
+
setQuery(null);
|
|
425
|
+
onSelect?.(option_2, state_0.trigger);
|
|
426
|
+
requestAnimationFrame(() => {
|
|
427
|
+
const at = state_0.start + state_0.trigger.length + option_2.value.length + 1;
|
|
428
|
+
textarea.focus();
|
|
429
|
+
textarea.setSelectionRange(at, at);
|
|
430
|
+
});
|
|
431
|
+
};
|
|
432
|
+
$[69] = current;
|
|
433
|
+
$[70] = onSelect;
|
|
434
|
+
$[71] = query;
|
|
435
|
+
$[72] = readOnly;
|
|
436
|
+
$[73] = setValue;
|
|
437
|
+
$[74] = t25;
|
|
438
|
+
} else t25 = $[74];
|
|
439
|
+
const choose = t25;
|
|
440
|
+
const t26 = size === "small";
|
|
441
|
+
const t27 = size === "large";
|
|
442
|
+
const t28 = clearable && !!current && !disabled && !readOnly;
|
|
443
|
+
let t29;
|
|
444
|
+
if ($[75] !== className || $[76] !== disabled || $[77] !== readOnly || $[78] !== t26 || $[79] !== t27 || $[80] !== t28) {
|
|
445
|
+
t29 = clsx("k-mentions", className, {
|
|
446
|
+
"k-mentions-sm": t26,
|
|
447
|
+
"k-mentions-lg": t27,
|
|
448
|
+
"k-mentions-disabled": disabled,
|
|
449
|
+
"k-mentions-readonly": readOnly,
|
|
450
|
+
"k-mentions-has-clear": t28
|
|
451
|
+
});
|
|
452
|
+
$[75] = className;
|
|
453
|
+
$[76] = disabled;
|
|
454
|
+
$[77] = readOnly;
|
|
455
|
+
$[78] = t26;
|
|
456
|
+
$[79] = t27;
|
|
457
|
+
$[80] = t28;
|
|
458
|
+
$[81] = t29;
|
|
459
|
+
} else t29 = $[81];
|
|
460
|
+
const t30 = Boolean(query);
|
|
461
|
+
const t31 = query ? listboxId : void 0;
|
|
462
|
+
const t32 = query && shown[active] ? `${listboxId}-option-${active}` : void 0;
|
|
463
|
+
let t33;
|
|
464
|
+
if ($[82] !== setValue || $[83] !== updateQuery) {
|
|
465
|
+
t33 = (text_0) => {
|
|
466
|
+
setValue(text_0);
|
|
467
|
+
if (composing.current) return;
|
|
468
|
+
if (textareaRef.current) updateQuery(text_0, textareaRef.current.selectionStart, true);
|
|
469
|
+
};
|
|
470
|
+
$[82] = setValue;
|
|
471
|
+
$[83] = updateQuery;
|
|
472
|
+
$[84] = t33;
|
|
473
|
+
} else t33 = $[84];
|
|
474
|
+
let t34;
|
|
475
|
+
if ($[85] === Symbol.for("react.memo_cache_sentinel")) {
|
|
476
|
+
t34 = () => {
|
|
477
|
+
composing.current = true;
|
|
478
|
+
};
|
|
479
|
+
$[85] = t34;
|
|
480
|
+
} else t34 = $[85];
|
|
481
|
+
let t35;
|
|
482
|
+
if ($[86] !== updateQuery) {
|
|
483
|
+
t35 = (event_1) => {
|
|
484
|
+
composing.current = false;
|
|
485
|
+
updateQuery(event_1.currentTarget.value, event_1.currentTarget.selectionStart, true);
|
|
486
|
+
};
|
|
487
|
+
$[86] = updateQuery;
|
|
488
|
+
$[87] = t35;
|
|
489
|
+
} else t35 = $[87];
|
|
490
|
+
let t36;
|
|
491
|
+
let t37;
|
|
492
|
+
let t38;
|
|
493
|
+
if ($[88] !== current || $[89] !== updateQuery) {
|
|
494
|
+
t36 = () => textareaRef.current && updateQuery(current, textareaRef.current.selectionStart);
|
|
495
|
+
t37 = () => textareaRef.current && updateQuery(current, textareaRef.current.selectionStart);
|
|
496
|
+
t38 = (event_2) => {
|
|
497
|
+
if ([
|
|
498
|
+
"ArrowLeft",
|
|
499
|
+
"ArrowRight",
|
|
500
|
+
"Home",
|
|
501
|
+
"End"
|
|
502
|
+
].includes(event_2.key) && textareaRef.current) updateQuery(current, textareaRef.current.selectionStart);
|
|
503
|
+
};
|
|
504
|
+
$[88] = current;
|
|
505
|
+
$[89] = updateQuery;
|
|
506
|
+
$[90] = t36;
|
|
507
|
+
$[91] = t37;
|
|
508
|
+
$[92] = t38;
|
|
509
|
+
} else {
|
|
510
|
+
t36 = $[90];
|
|
511
|
+
t37 = $[91];
|
|
512
|
+
t38 = $[92];
|
|
513
|
+
}
|
|
514
|
+
let t39;
|
|
515
|
+
if ($[93] !== active || $[94] !== choose || $[95] !== moveActive || $[96] !== query || $[97] !== shown) {
|
|
516
|
+
t39 = (event_3) => {
|
|
517
|
+
if (!query) return;
|
|
518
|
+
if ((event_3.key === "ArrowDown" || event_3.key === "ArrowUp") && shown.length) {
|
|
519
|
+
moveActive(event_3.key === "ArrowDown" ? 1 : -1);
|
|
520
|
+
event_3.preventDefault();
|
|
521
|
+
} else if (event_3.key === "Enter" && shown.length) {
|
|
522
|
+
choose(shown[active]);
|
|
523
|
+
event_3.preventDefault();
|
|
524
|
+
} else if (event_3.key === "Escape") {
|
|
525
|
+
event_3.preventDefault();
|
|
526
|
+
event_3.stopPropagation();
|
|
527
|
+
setQuery(null);
|
|
528
|
+
}
|
|
529
|
+
};
|
|
530
|
+
$[93] = active;
|
|
531
|
+
$[94] = choose;
|
|
532
|
+
$[95] = moveActive;
|
|
533
|
+
$[96] = query;
|
|
534
|
+
$[97] = shown;
|
|
535
|
+
$[98] = t39;
|
|
536
|
+
} else t39 = $[98];
|
|
537
|
+
let t40;
|
|
538
|
+
if ($[99] !== current || $[100] !== disabled || $[101] !== readOnly || $[102] !== rest || $[103] !== rows || $[104] !== shape || $[105] !== size || $[106] !== t30 || $[107] !== t31 || $[108] !== t32 || $[109] !== t33 || $[110] !== t35 || $[111] !== t36 || $[112] !== t37 || $[113] !== t38 || $[114] !== t39 || $[115] !== theme) {
|
|
539
|
+
t40 = /* @__PURE__ */ jsx(textarea_default, {
|
|
540
|
+
...rest,
|
|
541
|
+
ref: textareaRef,
|
|
542
|
+
value: current,
|
|
543
|
+
rows,
|
|
544
|
+
size,
|
|
545
|
+
shape,
|
|
546
|
+
theme,
|
|
547
|
+
disabled,
|
|
548
|
+
readOnly,
|
|
549
|
+
"aria-haspopup": "listbox",
|
|
550
|
+
"aria-expanded": t30,
|
|
551
|
+
"aria-controls": t31,
|
|
552
|
+
"aria-activedescendant": t32,
|
|
553
|
+
onChange: t33,
|
|
554
|
+
onCompositionStart: t34,
|
|
555
|
+
onCompositionEnd: t35,
|
|
556
|
+
onClick: t36,
|
|
557
|
+
onSelect: t37,
|
|
558
|
+
onKeyUp: t38,
|
|
559
|
+
onKeyDown: t39
|
|
560
|
+
});
|
|
561
|
+
$[99] = current;
|
|
562
|
+
$[100] = disabled;
|
|
563
|
+
$[101] = readOnly;
|
|
564
|
+
$[102] = rest;
|
|
565
|
+
$[103] = rows;
|
|
566
|
+
$[104] = shape;
|
|
567
|
+
$[105] = size;
|
|
568
|
+
$[106] = t30;
|
|
569
|
+
$[107] = t31;
|
|
570
|
+
$[108] = t32;
|
|
571
|
+
$[109] = t33;
|
|
572
|
+
$[110] = t35;
|
|
573
|
+
$[111] = t36;
|
|
574
|
+
$[112] = t37;
|
|
575
|
+
$[113] = t38;
|
|
576
|
+
$[114] = t39;
|
|
577
|
+
$[115] = theme;
|
|
578
|
+
$[116] = t40;
|
|
579
|
+
} else t40 = $[116];
|
|
580
|
+
let t41;
|
|
581
|
+
if ($[117] !== clear || $[118] !== clearable || $[119] !== current || $[120] !== disabled || $[121] !== readOnly) {
|
|
582
|
+
t41 = clearable && current && !disabled && !readOnly && /* @__PURE__ */ jsx(Icon, {
|
|
583
|
+
className: "k-mentions-clearable",
|
|
584
|
+
type: CircleX,
|
|
585
|
+
role: "button",
|
|
586
|
+
tabIndex: 0,
|
|
587
|
+
"aria-label": "Clear",
|
|
588
|
+
onPointerDown: _temp7,
|
|
589
|
+
onClick: clear,
|
|
590
|
+
onKeyDown: (event_5) => {
|
|
591
|
+
if (event_5.key === "Enter" || event_5.key === " ") clear(event_5);
|
|
592
|
+
}
|
|
593
|
+
});
|
|
594
|
+
$[117] = clear;
|
|
595
|
+
$[118] = clearable;
|
|
596
|
+
$[119] = current;
|
|
597
|
+
$[120] = disabled;
|
|
598
|
+
$[121] = readOnly;
|
|
599
|
+
$[122] = t41;
|
|
600
|
+
} else t41 = $[122];
|
|
601
|
+
let t42;
|
|
602
|
+
if ($[123] !== active || $[124] !== choose || $[125] !== emptyText || $[126] !== listboxId || $[127] !== loading || $[128] !== loadingText || $[129] !== position || $[130] !== positioned || $[131] !== query || $[132] !== rendered || $[133] !== shown || $[134] !== size) {
|
|
603
|
+
t42 = rendered && /* @__PURE__ */ jsx(Teleport, {
|
|
604
|
+
to: "body",
|
|
605
|
+
children: /* @__PURE__ */ jsx(Transition, {
|
|
606
|
+
show: !!query,
|
|
607
|
+
name: "k-select",
|
|
608
|
+
nodeRef: dropdownRef,
|
|
609
|
+
appear: true,
|
|
610
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
611
|
+
ref: dropdownRef,
|
|
612
|
+
id: listboxId,
|
|
613
|
+
className: clsx("k-select-dropdown", "k-mentions-dropdown", {
|
|
614
|
+
"k-select-dropdown-sm": size === "small",
|
|
615
|
+
"k-select-dropdown-lg": size === "large"
|
|
616
|
+
}),
|
|
617
|
+
style: {
|
|
618
|
+
left: position.left,
|
|
619
|
+
top: position.top,
|
|
620
|
+
width: position.width,
|
|
621
|
+
visibility: positioned ? void 0 : "hidden",
|
|
622
|
+
transformOrigin: position.origin
|
|
623
|
+
},
|
|
624
|
+
role: "listbox",
|
|
625
|
+
children: loading ? /* @__PURE__ */ jsxs("div", {
|
|
626
|
+
className: "k-select-loading k-mentions-loading",
|
|
627
|
+
children: [/* @__PURE__ */ jsx(Icon, {
|
|
628
|
+
type: Loading,
|
|
629
|
+
spin: true
|
|
630
|
+
}), loadingText && /* @__PURE__ */ jsx("span", { children: loadingText })]
|
|
631
|
+
}) : shown.length ? /* @__PURE__ */ jsx("ul", { children: shown.map((option_3, index_2) => /* @__PURE__ */ jsx("li", {
|
|
632
|
+
id: `${listboxId}-option-${index_2}`,
|
|
633
|
+
role: "option",
|
|
634
|
+
"aria-selected": active === index_2,
|
|
635
|
+
className: clsx("k-select-item", {
|
|
636
|
+
"k-select-item-active": active === index_2,
|
|
637
|
+
"k-select-item-disabled": option_3.disabled
|
|
638
|
+
}),
|
|
639
|
+
onMouseDown: _temp8,
|
|
640
|
+
onMouseEnter: () => !option_3.disabled && setActive(index_2),
|
|
641
|
+
onClick: () => choose(option_3),
|
|
642
|
+
children: option_3.label ?? option_3.value
|
|
643
|
+
}, option_3.value)) }) : /* @__PURE__ */ jsx(Empty, { description: emptyText })
|
|
644
|
+
})
|
|
645
|
+
})
|
|
646
|
+
});
|
|
647
|
+
$[123] = active;
|
|
648
|
+
$[124] = choose;
|
|
649
|
+
$[125] = emptyText;
|
|
650
|
+
$[126] = listboxId;
|
|
651
|
+
$[127] = loading;
|
|
652
|
+
$[128] = loadingText;
|
|
653
|
+
$[129] = position;
|
|
654
|
+
$[130] = positioned;
|
|
655
|
+
$[131] = query;
|
|
656
|
+
$[132] = rendered;
|
|
657
|
+
$[133] = shown;
|
|
658
|
+
$[134] = size;
|
|
659
|
+
$[135] = t42;
|
|
660
|
+
} else t42 = $[135];
|
|
661
|
+
let t43;
|
|
662
|
+
if ($[136] !== t29 || $[137] !== t40 || $[138] !== t41 || $[139] !== t42) {
|
|
663
|
+
t43 = /* @__PURE__ */ jsxs("div", {
|
|
664
|
+
ref: rootRef,
|
|
665
|
+
className: t29,
|
|
666
|
+
children: [
|
|
667
|
+
t40,
|
|
668
|
+
t41,
|
|
669
|
+
t42
|
|
670
|
+
]
|
|
671
|
+
});
|
|
672
|
+
$[136] = t29;
|
|
673
|
+
$[137] = t40;
|
|
674
|
+
$[138] = t41;
|
|
675
|
+
$[139] = t42;
|
|
676
|
+
$[140] = t43;
|
|
677
|
+
} else t43 = $[140];
|
|
678
|
+
return t43;
|
|
679
|
+
};
|
|
680
|
+
var mentions_default = createFormFieldComponent(Mentions);
|
|
681
|
+
function _temp(next) {
|
|
682
|
+
return next ?? "";
|
|
683
|
+
}
|
|
684
|
+
function _temp2(item) {
|
|
685
|
+
return typeof item === "string" ? {
|
|
686
|
+
value: item,
|
|
687
|
+
label: item
|
|
688
|
+
} : item;
|
|
689
|
+
}
|
|
690
|
+
function _temp3(option) {
|
|
691
|
+
return !option.disabled;
|
|
692
|
+
}
|
|
693
|
+
function _temp4(items) {
|
|
694
|
+
const index = items.findIndex(_temp3);
|
|
695
|
+
return index < 0 ? 0 : index;
|
|
696
|
+
}
|
|
697
|
+
function _temp5(option_0, index_0) {
|
|
698
|
+
return !option_0.disabled ? index_0 : -1;
|
|
699
|
+
}
|
|
700
|
+
function _temp6(index_1) {
|
|
701
|
+
return index_1 >= 0;
|
|
702
|
+
}
|
|
703
|
+
function _temp7(event_4) {
|
|
704
|
+
return event_4.preventDefault();
|
|
705
|
+
}
|
|
706
|
+
function _temp8(event_6) {
|
|
707
|
+
return event_6.preventDefault();
|
|
708
|
+
}
|
|
709
|
+
//#endregion
|
|
710
|
+
export { mentions_default as default };
|