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,270 @@
|
|
|
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 { Check } 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 { createFormFieldComponent } from "../form/field-context.js";
|
|
13
|
+
import { getValueWithType } from "../utils/checked.js";
|
|
14
|
+
import { CheckboxGroupContext } from "./checkbox-group-context.js";
|
|
15
|
+
import { c } from "react/compiler-runtime";
|
|
16
|
+
import clsx from "clsx";
|
|
17
|
+
import { useContext, useLayoutEffect, useRef, useState } from "react";
|
|
18
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
+
//#region components/checkbox/checkbox.tsx
|
|
20
|
+
var Checkbox = (t0) => {
|
|
21
|
+
const $ = c(73);
|
|
22
|
+
let ariaDescribedby;
|
|
23
|
+
let ariaInvalid;
|
|
24
|
+
let ariaLabelledby;
|
|
25
|
+
let ariaRequired;
|
|
26
|
+
let checked;
|
|
27
|
+
let children;
|
|
28
|
+
let id;
|
|
29
|
+
let label;
|
|
30
|
+
let onChange;
|
|
31
|
+
let rest;
|
|
32
|
+
let sizeProp;
|
|
33
|
+
let t1;
|
|
34
|
+
let t2;
|
|
35
|
+
let t3;
|
|
36
|
+
let t4;
|
|
37
|
+
let t5;
|
|
38
|
+
let t6;
|
|
39
|
+
let themeProp;
|
|
40
|
+
let value;
|
|
41
|
+
if ($[0] !== t0) {
|
|
42
|
+
({checked, defaultChecked: t1, valueType: t2, value, label, theme: themeProp, disabled: t3, readOnly: t4, indeterminate: t5, size: sizeProp, onChange, children, className: t6, id, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, "aria-invalid": ariaInvalid, "aria-required": ariaRequired, ...rest} = t0);
|
|
43
|
+
$[0] = t0;
|
|
44
|
+
$[1] = ariaDescribedby;
|
|
45
|
+
$[2] = ariaInvalid;
|
|
46
|
+
$[3] = ariaLabelledby;
|
|
47
|
+
$[4] = ariaRequired;
|
|
48
|
+
$[5] = checked;
|
|
49
|
+
$[6] = children;
|
|
50
|
+
$[7] = id;
|
|
51
|
+
$[8] = label;
|
|
52
|
+
$[9] = onChange;
|
|
53
|
+
$[10] = rest;
|
|
54
|
+
$[11] = sizeProp;
|
|
55
|
+
$[12] = t1;
|
|
56
|
+
$[13] = t2;
|
|
57
|
+
$[14] = t3;
|
|
58
|
+
$[15] = t4;
|
|
59
|
+
$[16] = t5;
|
|
60
|
+
$[17] = t6;
|
|
61
|
+
$[18] = themeProp;
|
|
62
|
+
$[19] = value;
|
|
63
|
+
} else {
|
|
64
|
+
ariaDescribedby = $[1];
|
|
65
|
+
ariaInvalid = $[2];
|
|
66
|
+
ariaLabelledby = $[3];
|
|
67
|
+
ariaRequired = $[4];
|
|
68
|
+
checked = $[5];
|
|
69
|
+
children = $[6];
|
|
70
|
+
id = $[7];
|
|
71
|
+
label = $[8];
|
|
72
|
+
onChange = $[9];
|
|
73
|
+
rest = $[10];
|
|
74
|
+
sizeProp = $[11];
|
|
75
|
+
t1 = $[12];
|
|
76
|
+
t2 = $[13];
|
|
77
|
+
t3 = $[14];
|
|
78
|
+
t4 = $[15];
|
|
79
|
+
t5 = $[16];
|
|
80
|
+
t6 = $[17];
|
|
81
|
+
themeProp = $[18];
|
|
82
|
+
value = $[19];
|
|
83
|
+
}
|
|
84
|
+
const defaultChecked = t1 === void 0 ? false : t1;
|
|
85
|
+
const valueType = t2 === void 0 ? "boolean" : t2;
|
|
86
|
+
const disabled = t3 === void 0 ? false : t3;
|
|
87
|
+
const readOnly = t4 === void 0 ? false : t4;
|
|
88
|
+
const indeterminate = t5 === void 0 ? false : t5;
|
|
89
|
+
const className = t6 === void 0 ? "" : t6;
|
|
90
|
+
const inheritedAppearance = useConfigAppearance();
|
|
91
|
+
const theme = themeProp ?? inheritedAppearance.theme ?? "fill";
|
|
92
|
+
const size = sizeProp ?? inheritedAppearance.size;
|
|
93
|
+
const group = useContext(CheckboxGroupContext);
|
|
94
|
+
const inputRef = useRef(null);
|
|
95
|
+
const isGroup = !!group;
|
|
96
|
+
const groupChecked = isGroup && group.value ? group.value.indexOf(value) > -1 : false;
|
|
97
|
+
const [localChecked, setLocalChecked] = useState(defaultChecked);
|
|
98
|
+
const isChecked = isGroup ? groupChecked : checked ?? localChecked;
|
|
99
|
+
const currentDisabled = disabled || isGroup && group.disabled;
|
|
100
|
+
const currentReadOnly = readOnly || Boolean(isGroup && group.readOnly);
|
|
101
|
+
const currentTheme = themeProp ?? group?.theme ?? theme;
|
|
102
|
+
const currentSize = sizeProp ?? group?.size ?? size;
|
|
103
|
+
let t7;
|
|
104
|
+
if ($[20] !== checked || $[21] !== children || $[22] !== group || $[23] !== isGroup || $[24] !== label || $[25] !== onChange || $[26] !== value || $[27] !== valueType) {
|
|
105
|
+
t7 = (newChecked) => {
|
|
106
|
+
if (!isGroup && checked === void 0) setLocalChecked(newChecked);
|
|
107
|
+
const labelVal = label ?? children ?? (typeof value === "string" || typeof value === "number" ? value : void 0);
|
|
108
|
+
const eventObj = {
|
|
109
|
+
checked: newChecked,
|
|
110
|
+
value: isGroup ? value : getValueWithType(newChecked, valueType),
|
|
111
|
+
label: labelVal
|
|
112
|
+
};
|
|
113
|
+
onChange?.(eventObj);
|
|
114
|
+
group?.onChange?.(eventObj);
|
|
115
|
+
};
|
|
116
|
+
$[20] = checked;
|
|
117
|
+
$[21] = children;
|
|
118
|
+
$[22] = group;
|
|
119
|
+
$[23] = isGroup;
|
|
120
|
+
$[24] = label;
|
|
121
|
+
$[25] = onChange;
|
|
122
|
+
$[26] = value;
|
|
123
|
+
$[27] = valueType;
|
|
124
|
+
$[28] = t7;
|
|
125
|
+
} else t7 = $[28];
|
|
126
|
+
const emitValue = t7;
|
|
127
|
+
let t8;
|
|
128
|
+
if ($[29] !== currentDisabled || $[30] !== currentReadOnly || $[31] !== emitValue) {
|
|
129
|
+
t8 = (e) => {
|
|
130
|
+
if (currentDisabled || currentReadOnly) return;
|
|
131
|
+
emitValue(e.target.checked);
|
|
132
|
+
};
|
|
133
|
+
$[29] = currentDisabled;
|
|
134
|
+
$[30] = currentReadOnly;
|
|
135
|
+
$[31] = emitValue;
|
|
136
|
+
$[32] = t8;
|
|
137
|
+
} else t8 = $[32];
|
|
138
|
+
const handleInputChange = t8;
|
|
139
|
+
let t9;
|
|
140
|
+
if ($[33] !== indeterminate) {
|
|
141
|
+
t9 = () => {
|
|
142
|
+
if (inputRef.current) inputRef.current.indeterminate = indeterminate;
|
|
143
|
+
};
|
|
144
|
+
$[33] = indeterminate;
|
|
145
|
+
$[34] = t9;
|
|
146
|
+
} else t9 = $[34];
|
|
147
|
+
useLayoutEffect(t9);
|
|
148
|
+
const t10 = currentTheme === "fill";
|
|
149
|
+
const t11 = isChecked && !indeterminate;
|
|
150
|
+
const t12 = currentSize === "small";
|
|
151
|
+
const t13 = currentSize === "large";
|
|
152
|
+
let t14;
|
|
153
|
+
if ($[35] !== className || $[36] !== currentDisabled || $[37] !== currentReadOnly || $[38] !== indeterminate || $[39] !== t10 || $[40] !== t11 || $[41] !== t12 || $[42] !== t13) {
|
|
154
|
+
t14 = clsx("k-checkbox", {
|
|
155
|
+
"k-checkbox-fill": t10,
|
|
156
|
+
"k-checkbox-disabled": currentDisabled,
|
|
157
|
+
"k-checkbox-readonly": currentReadOnly,
|
|
158
|
+
"k-checkbox-checked": t11,
|
|
159
|
+
"k-checkbox-indeterminate": indeterminate,
|
|
160
|
+
"k-checkbox-sm": t12,
|
|
161
|
+
"k-checkbox-lg": t13
|
|
162
|
+
}, className);
|
|
163
|
+
$[35] = className;
|
|
164
|
+
$[36] = currentDisabled;
|
|
165
|
+
$[37] = currentReadOnly;
|
|
166
|
+
$[38] = indeterminate;
|
|
167
|
+
$[39] = t10;
|
|
168
|
+
$[40] = t11;
|
|
169
|
+
$[41] = t12;
|
|
170
|
+
$[42] = t13;
|
|
171
|
+
$[43] = t14;
|
|
172
|
+
} else t14 = $[43];
|
|
173
|
+
const rootClasses = t14;
|
|
174
|
+
let t15;
|
|
175
|
+
if ($[44] !== indeterminate || $[45] !== isChecked) {
|
|
176
|
+
t15 = isChecked && !indeterminate ? /* @__PURE__ */ jsx(Icon, { type: Check }) : null;
|
|
177
|
+
$[44] = indeterminate;
|
|
178
|
+
$[45] = isChecked;
|
|
179
|
+
$[46] = t15;
|
|
180
|
+
} else t15 = $[46];
|
|
181
|
+
const innerNode = t15;
|
|
182
|
+
const labelNode = label ?? children;
|
|
183
|
+
const t16 = currentReadOnly || void 0;
|
|
184
|
+
const t17 = indeterminate ? "mixed" : isChecked;
|
|
185
|
+
const t18 = currentReadOnly || void 0;
|
|
186
|
+
let t19;
|
|
187
|
+
if ($[47] !== currentReadOnly) {
|
|
188
|
+
t19 = (event) => {
|
|
189
|
+
if (currentReadOnly) event.preventDefault();
|
|
190
|
+
};
|
|
191
|
+
$[47] = currentReadOnly;
|
|
192
|
+
$[48] = t19;
|
|
193
|
+
} else t19 = $[48];
|
|
194
|
+
const t20 = !!isChecked;
|
|
195
|
+
let t21;
|
|
196
|
+
if ($[49] !== ariaDescribedby || $[50] !== ariaInvalid || $[51] !== ariaLabelledby || $[52] !== ariaRequired || $[53] !== currentDisabled || $[54] !== currentReadOnly || $[55] !== handleInputChange || $[56] !== id || $[57] !== t17 || $[58] !== t18 || $[59] !== t19 || $[60] !== t20) {
|
|
197
|
+
t21 = /* @__PURE__ */ jsx("input", {
|
|
198
|
+
id,
|
|
199
|
+
type: "checkbox",
|
|
200
|
+
ref: inputRef,
|
|
201
|
+
className: "k-checkbox-input",
|
|
202
|
+
disabled: currentDisabled,
|
|
203
|
+
readOnly: currentReadOnly,
|
|
204
|
+
"aria-checked": t17,
|
|
205
|
+
"aria-readonly": t18,
|
|
206
|
+
"aria-labelledby": ariaLabelledby,
|
|
207
|
+
"aria-describedby": ariaDescribedby,
|
|
208
|
+
"aria-invalid": ariaInvalid,
|
|
209
|
+
"aria-required": ariaRequired,
|
|
210
|
+
onClick: t19,
|
|
211
|
+
checked: t20,
|
|
212
|
+
onChange: handleInputChange
|
|
213
|
+
});
|
|
214
|
+
$[49] = ariaDescribedby;
|
|
215
|
+
$[50] = ariaInvalid;
|
|
216
|
+
$[51] = ariaLabelledby;
|
|
217
|
+
$[52] = ariaRequired;
|
|
218
|
+
$[53] = currentDisabled;
|
|
219
|
+
$[54] = currentReadOnly;
|
|
220
|
+
$[55] = handleInputChange;
|
|
221
|
+
$[56] = id;
|
|
222
|
+
$[57] = t17;
|
|
223
|
+
$[58] = t18;
|
|
224
|
+
$[59] = t19;
|
|
225
|
+
$[60] = t20;
|
|
226
|
+
$[61] = t21;
|
|
227
|
+
} else t21 = $[61];
|
|
228
|
+
let t22;
|
|
229
|
+
if ($[62] !== innerNode || $[63] !== t21) {
|
|
230
|
+
t22 = /* @__PURE__ */ jsxs("span", {
|
|
231
|
+
className: "k-checkbox-symbol",
|
|
232
|
+
children: [t21, innerNode]
|
|
233
|
+
});
|
|
234
|
+
$[62] = innerNode;
|
|
235
|
+
$[63] = t21;
|
|
236
|
+
$[64] = t22;
|
|
237
|
+
} else t22 = $[64];
|
|
238
|
+
let t23;
|
|
239
|
+
if ($[65] !== labelNode) {
|
|
240
|
+
t23 = labelNode ? /* @__PURE__ */ jsx("span", {
|
|
241
|
+
className: "k-checkbox-label",
|
|
242
|
+
children: labelNode
|
|
243
|
+
}) : null;
|
|
244
|
+
$[65] = labelNode;
|
|
245
|
+
$[66] = t23;
|
|
246
|
+
} else t23 = $[66];
|
|
247
|
+
let t24;
|
|
248
|
+
if ($[67] !== rest || $[68] !== rootClasses || $[69] !== t16 || $[70] !== t22 || $[71] !== t23) {
|
|
249
|
+
t24 = /* @__PURE__ */ jsxs("label", {
|
|
250
|
+
className: rootClasses,
|
|
251
|
+
"aria-readonly": t16,
|
|
252
|
+
...rest,
|
|
253
|
+
children: [t22, t23]
|
|
254
|
+
});
|
|
255
|
+
$[67] = rest;
|
|
256
|
+
$[68] = rootClasses;
|
|
257
|
+
$[69] = t16;
|
|
258
|
+
$[70] = t22;
|
|
259
|
+
$[71] = t23;
|
|
260
|
+
$[72] = t24;
|
|
261
|
+
} else t24 = $[72];
|
|
262
|
+
return t24;
|
|
263
|
+
};
|
|
264
|
+
var checkbox_default = createFormFieldComponent(Checkbox, {
|
|
265
|
+
valueProp: "checked",
|
|
266
|
+
getFieldValue: (value) => value === true || value === 1 || value === "1",
|
|
267
|
+
getChangeValue: (event) => event.checked
|
|
268
|
+
});
|
|
269
|
+
//#endregion
|
|
270
|
+
export { checkbox_default as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
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 checkbox_default$1 from "./checkbox.js";
|
|
10
|
+
import checkbox_group_default from "./checkbox-group.js";
|
|
11
|
+
//#region components/checkbox/index.ts
|
|
12
|
+
var checkbox_default = checkbox_default$1;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { checkbox_default$1 as Checkbox, checkbox_group_default as CheckboxGroup, checkbox_default as default };
|
|
@@ -0,0 +1,233 @@
|
|
|
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 { ChevronUp } from "../node_modules/.pnpm/kui-icons@5.0.0/node_modules/kui-icons/dist/kui-icons.esm.js";
|
|
10
|
+
import Icon from "../icon/index.js";
|
|
11
|
+
import { Transition } from "../base/transition.js";
|
|
12
|
+
import { c } from "react/compiler-runtime";
|
|
13
|
+
import clsx from "clsx";
|
|
14
|
+
import "react";
|
|
15
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
+
//#region components/collapse/collapse-panel.tsx
|
|
17
|
+
var CollapsePanel = (t0) => {
|
|
18
|
+
const $ = c(43);
|
|
19
|
+
let children;
|
|
20
|
+
let extra;
|
|
21
|
+
let onExpand;
|
|
22
|
+
let panelKey;
|
|
23
|
+
let rest;
|
|
24
|
+
let t1;
|
|
25
|
+
let t2;
|
|
26
|
+
let t3;
|
|
27
|
+
let title;
|
|
28
|
+
if ($[0] !== t0) {
|
|
29
|
+
({title, disabled: t1, active: t2, extra, panelKey, onExpand, children, className: t3, ...rest} = t0);
|
|
30
|
+
$[0] = t0;
|
|
31
|
+
$[1] = children;
|
|
32
|
+
$[2] = extra;
|
|
33
|
+
$[3] = onExpand;
|
|
34
|
+
$[4] = panelKey;
|
|
35
|
+
$[5] = rest;
|
|
36
|
+
$[6] = t1;
|
|
37
|
+
$[7] = t2;
|
|
38
|
+
$[8] = t3;
|
|
39
|
+
$[9] = title;
|
|
40
|
+
} else {
|
|
41
|
+
children = $[1];
|
|
42
|
+
extra = $[2];
|
|
43
|
+
onExpand = $[3];
|
|
44
|
+
panelKey = $[4];
|
|
45
|
+
rest = $[5];
|
|
46
|
+
t1 = $[6];
|
|
47
|
+
t2 = $[7];
|
|
48
|
+
t3 = $[8];
|
|
49
|
+
title = $[9];
|
|
50
|
+
}
|
|
51
|
+
const disabled = t1 === void 0 ? false : t1;
|
|
52
|
+
const active = t2 === void 0 ? false : t2;
|
|
53
|
+
const className = t3 === void 0 ? "" : t3;
|
|
54
|
+
const setCurrentHeight = _temp;
|
|
55
|
+
const resetTransitionStyles = _temp2;
|
|
56
|
+
let t4;
|
|
57
|
+
if ($[10] !== disabled || $[11] !== onExpand || $[12] !== panelKey) {
|
|
58
|
+
t4 = () => {
|
|
59
|
+
if (!disabled && panelKey !== void 0) onExpand?.(panelKey);
|
|
60
|
+
};
|
|
61
|
+
$[10] = disabled;
|
|
62
|
+
$[11] = onExpand;
|
|
63
|
+
$[12] = panelKey;
|
|
64
|
+
$[13] = t4;
|
|
65
|
+
} else t4 = $[13];
|
|
66
|
+
const handleClick = t4;
|
|
67
|
+
let t5;
|
|
68
|
+
if ($[14] !== handleClick) {
|
|
69
|
+
t5 = (event) => {
|
|
70
|
+
if (event.key !== "Enter" && event.key !== " ") return;
|
|
71
|
+
event.preventDefault();
|
|
72
|
+
handleClick();
|
|
73
|
+
};
|
|
74
|
+
$[14] = handleClick;
|
|
75
|
+
$[15] = t5;
|
|
76
|
+
} else t5 = $[15];
|
|
77
|
+
const handleKeyDown = t5;
|
|
78
|
+
let t6;
|
|
79
|
+
if ($[16] !== active || $[17] !== className || $[18] !== disabled) {
|
|
80
|
+
t6 = clsx("k-collapse-item", {
|
|
81
|
+
"k-collapse-item-active": active,
|
|
82
|
+
"k-collapse-item-disabled": disabled
|
|
83
|
+
}, className);
|
|
84
|
+
$[16] = active;
|
|
85
|
+
$[17] = className;
|
|
86
|
+
$[18] = disabled;
|
|
87
|
+
$[19] = t6;
|
|
88
|
+
} else t6 = $[19];
|
|
89
|
+
const classes = t6;
|
|
90
|
+
const t7 = disabled ? -1 : 0;
|
|
91
|
+
const t8 = disabled || void 0;
|
|
92
|
+
let t9;
|
|
93
|
+
if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
|
|
94
|
+
t9 = /* @__PURE__ */ jsx(Icon, {
|
|
95
|
+
type: ChevronUp,
|
|
96
|
+
className: "k-collapse-arrow"
|
|
97
|
+
});
|
|
98
|
+
$[20] = t9;
|
|
99
|
+
} else t9 = $[20];
|
|
100
|
+
let t10;
|
|
101
|
+
if ($[21] !== title) {
|
|
102
|
+
t10 = /* @__PURE__ */ jsx("span", {
|
|
103
|
+
className: "k-collapse-title",
|
|
104
|
+
children: title
|
|
105
|
+
});
|
|
106
|
+
$[21] = title;
|
|
107
|
+
$[22] = t10;
|
|
108
|
+
} else t10 = $[22];
|
|
109
|
+
let t11;
|
|
110
|
+
if ($[23] !== extra) {
|
|
111
|
+
t11 = extra ? /* @__PURE__ */ jsx("span", {
|
|
112
|
+
className: "k-collapse-extra",
|
|
113
|
+
onClick: _temp3,
|
|
114
|
+
onKeyDown: _temp4,
|
|
115
|
+
children: extra
|
|
116
|
+
}) : null;
|
|
117
|
+
$[23] = extra;
|
|
118
|
+
$[24] = t11;
|
|
119
|
+
} else t11 = $[24];
|
|
120
|
+
let t12;
|
|
121
|
+
if ($[25] !== active || $[26] !== handleClick || $[27] !== handleKeyDown || $[28] !== t10 || $[29] !== t11 || $[30] !== t7 || $[31] !== t8) {
|
|
122
|
+
t12 = /* @__PURE__ */ jsxs("div", {
|
|
123
|
+
className: "k-collapse-header",
|
|
124
|
+
role: "button",
|
|
125
|
+
tabIndex: t7,
|
|
126
|
+
"aria-expanded": active,
|
|
127
|
+
"aria-disabled": t8,
|
|
128
|
+
onClick: handleClick,
|
|
129
|
+
onKeyDown: handleKeyDown,
|
|
130
|
+
children: [
|
|
131
|
+
t9,
|
|
132
|
+
t10,
|
|
133
|
+
t11
|
|
134
|
+
]
|
|
135
|
+
});
|
|
136
|
+
$[25] = active;
|
|
137
|
+
$[26] = handleClick;
|
|
138
|
+
$[27] = handleKeyDown;
|
|
139
|
+
$[28] = t10;
|
|
140
|
+
$[29] = t11;
|
|
141
|
+
$[30] = t7;
|
|
142
|
+
$[31] = t8;
|
|
143
|
+
$[32] = t12;
|
|
144
|
+
} else t12 = $[32];
|
|
145
|
+
let t13;
|
|
146
|
+
if ($[33] !== children) {
|
|
147
|
+
t13 = /* @__PURE__ */ jsx("div", {
|
|
148
|
+
className: "k-collapse-content",
|
|
149
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
150
|
+
className: "k-collapse-content-box",
|
|
151
|
+
children
|
|
152
|
+
})
|
|
153
|
+
});
|
|
154
|
+
$[33] = children;
|
|
155
|
+
$[34] = t13;
|
|
156
|
+
} else t13 = $[34];
|
|
157
|
+
let t14;
|
|
158
|
+
if ($[35] !== active || $[36] !== t13) {
|
|
159
|
+
t14 = /* @__PURE__ */ jsx(Transition, {
|
|
160
|
+
show: active,
|
|
161
|
+
name: "k-collapse-slide",
|
|
162
|
+
timeout: 350,
|
|
163
|
+
onBeforeEnter: _temp5,
|
|
164
|
+
onEnter: _temp6,
|
|
165
|
+
onAfterEnter: resetTransitionStyles,
|
|
166
|
+
onBeforeLeave: setCurrentHeight,
|
|
167
|
+
onLeave: _temp7,
|
|
168
|
+
onAfterLeave: resetTransitionStyles,
|
|
169
|
+
children: t13
|
|
170
|
+
});
|
|
171
|
+
$[35] = active;
|
|
172
|
+
$[36] = t13;
|
|
173
|
+
$[37] = t14;
|
|
174
|
+
} else t14 = $[37];
|
|
175
|
+
let t15;
|
|
176
|
+
if ($[38] !== classes || $[39] !== rest || $[40] !== t12 || $[41] !== t14) {
|
|
177
|
+
t15 = /* @__PURE__ */ jsxs("div", {
|
|
178
|
+
className: classes,
|
|
179
|
+
...rest,
|
|
180
|
+
children: [t12, t14]
|
|
181
|
+
});
|
|
182
|
+
$[38] = classes;
|
|
183
|
+
$[39] = rest;
|
|
184
|
+
$[40] = t12;
|
|
185
|
+
$[41] = t14;
|
|
186
|
+
$[42] = t15;
|
|
187
|
+
} else t15 = $[42];
|
|
188
|
+
return t15;
|
|
189
|
+
};
|
|
190
|
+
function _temp(element) {
|
|
191
|
+
element.style.height = `${element.getBoundingClientRect().height}px`;
|
|
192
|
+
element.style.opacity = "1";
|
|
193
|
+
}
|
|
194
|
+
function _temp2(element_0) {
|
|
195
|
+
element_0.style.height = "";
|
|
196
|
+
element_0.style.paddingTop = "";
|
|
197
|
+
element_0.style.paddingBottom = "";
|
|
198
|
+
element_0.style.marginTop = "";
|
|
199
|
+
element_0.style.marginBottom = "";
|
|
200
|
+
element_0.style.opacity = "";
|
|
201
|
+
element_0.style.overflow = "";
|
|
202
|
+
}
|
|
203
|
+
function _temp3(event_0) {
|
|
204
|
+
return event_0.stopPropagation();
|
|
205
|
+
}
|
|
206
|
+
function _temp4(event_1) {
|
|
207
|
+
return event_1.stopPropagation();
|
|
208
|
+
}
|
|
209
|
+
function _temp5(element_1) {
|
|
210
|
+
const reversing = element_1.style.height !== "";
|
|
211
|
+
element_1.style.overflow = "hidden";
|
|
212
|
+
element_1.style.height = reversing ? `${element_1.getBoundingClientRect().height}px` : "0px";
|
|
213
|
+
element_1.style.opacity = reversing ? getComputedStyle(element_1).opacity : "0.1";
|
|
214
|
+
}
|
|
215
|
+
function _temp6(element_2) {
|
|
216
|
+
if (element_2.scrollHeight) {
|
|
217
|
+
element_2.style.height = `${element_2.scrollHeight}px`;
|
|
218
|
+
element_2.style.opacity = "1";
|
|
219
|
+
} else {
|
|
220
|
+
element_2.style.height = "";
|
|
221
|
+
element_2.style.opacity = "";
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
function _temp7(element_3) {
|
|
225
|
+
element_3.style.height = "0px";
|
|
226
|
+
element_3.style.paddingTop = "0px";
|
|
227
|
+
element_3.style.paddingBottom = "0px";
|
|
228
|
+
element_3.style.marginTop = "0px";
|
|
229
|
+
element_3.style.marginBottom = "0px";
|
|
230
|
+
element_3.style.opacity = "0";
|
|
231
|
+
}
|
|
232
|
+
//#endregion
|
|
233
|
+
export { CollapsePanel as default };
|
|
@@ -0,0 +1,186 @@
|
|
|
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 { normalizeSurfaceShape, useConfigAppearance } from "../config/use-config-appearance.js";
|
|
10
|
+
import { getChildren } from "../utils/react-node.js";
|
|
11
|
+
import { c } from "react/compiler-runtime";
|
|
12
|
+
import clsx from "clsx";
|
|
13
|
+
import React, { useState } from "react";
|
|
14
|
+
import { jsx } from "react/jsx-runtime";
|
|
15
|
+
//#region components/collapse/collapse.tsx
|
|
16
|
+
var Collapse = (t0) => {
|
|
17
|
+
const $ = c(50);
|
|
18
|
+
let children;
|
|
19
|
+
let onChange;
|
|
20
|
+
let onOpenKeysChange;
|
|
21
|
+
let openKeys;
|
|
22
|
+
let rest;
|
|
23
|
+
let shapeProp;
|
|
24
|
+
let t1;
|
|
25
|
+
let t2;
|
|
26
|
+
let t3;
|
|
27
|
+
let t4;
|
|
28
|
+
let themeProp;
|
|
29
|
+
if ($[0] !== t0) {
|
|
30
|
+
({openKeys, defaultOpenKeys: t1, accordion: t2, sample: t3, theme: themeProp, shape: shapeProp, onChange, onOpenKeysChange, children, className: t4, ...rest} = t0);
|
|
31
|
+
$[0] = t0;
|
|
32
|
+
$[1] = children;
|
|
33
|
+
$[2] = onChange;
|
|
34
|
+
$[3] = onOpenKeysChange;
|
|
35
|
+
$[4] = openKeys;
|
|
36
|
+
$[5] = rest;
|
|
37
|
+
$[6] = shapeProp;
|
|
38
|
+
$[7] = t1;
|
|
39
|
+
$[8] = t2;
|
|
40
|
+
$[9] = t3;
|
|
41
|
+
$[10] = t4;
|
|
42
|
+
$[11] = themeProp;
|
|
43
|
+
} else {
|
|
44
|
+
children = $[1];
|
|
45
|
+
onChange = $[2];
|
|
46
|
+
onOpenKeysChange = $[3];
|
|
47
|
+
openKeys = $[4];
|
|
48
|
+
rest = $[5];
|
|
49
|
+
shapeProp = $[6];
|
|
50
|
+
t1 = $[7];
|
|
51
|
+
t2 = $[8];
|
|
52
|
+
t3 = $[9];
|
|
53
|
+
t4 = $[10];
|
|
54
|
+
themeProp = $[11];
|
|
55
|
+
}
|
|
56
|
+
let t5;
|
|
57
|
+
if ($[12] !== t1) {
|
|
58
|
+
t5 = t1 === void 0 ? [] : t1;
|
|
59
|
+
$[12] = t1;
|
|
60
|
+
$[13] = t5;
|
|
61
|
+
} else t5 = $[13];
|
|
62
|
+
const defaultOpenKeys = t5;
|
|
63
|
+
const accordion = t2 === void 0 ? false : t2;
|
|
64
|
+
const sample = t3 === void 0 ? false : t3;
|
|
65
|
+
const className = t4 === void 0 ? "" : t4;
|
|
66
|
+
const inheritedAppearance = useConfigAppearance();
|
|
67
|
+
const theme = themeProp ?? inheritedAppearance.theme ?? "outline";
|
|
68
|
+
const t6 = shapeProp ?? inheritedAppearance.shape ?? "round";
|
|
69
|
+
let t7;
|
|
70
|
+
if ($[14] !== t6) {
|
|
71
|
+
t7 = normalizeSurfaceShape(t6);
|
|
72
|
+
$[14] = t6;
|
|
73
|
+
$[15] = t7;
|
|
74
|
+
} else t7 = $[15];
|
|
75
|
+
const shape = t7;
|
|
76
|
+
const [innerActiveKeys, setInnerActiveKeys] = useState(defaultOpenKeys);
|
|
77
|
+
const activeKeys = openKeys ?? innerActiveKeys;
|
|
78
|
+
let t8;
|
|
79
|
+
if ($[16] !== defaultOpenKeys || $[17] !== openKeys) {
|
|
80
|
+
t8 = () => new Map([...defaultOpenKeys, ...openKeys ?? []].map(_temp));
|
|
81
|
+
$[16] = defaultOpenKeys;
|
|
82
|
+
$[17] = openKeys;
|
|
83
|
+
$[18] = t8;
|
|
84
|
+
} else t8 = $[18];
|
|
85
|
+
const [keyRegistry, setKeyRegistry] = useState(t8);
|
|
86
|
+
let resolvedKeys;
|
|
87
|
+
if ($[19] !== activeKeys || $[20] !== keyRegistry) {
|
|
88
|
+
resolvedKeys = new Map(keyRegistry);
|
|
89
|
+
activeKeys.forEach((key_0) => resolvedKeys.set(String(key_0), key_0));
|
|
90
|
+
$[19] = activeKeys;
|
|
91
|
+
$[20] = keyRegistry;
|
|
92
|
+
$[21] = resolvedKeys;
|
|
93
|
+
} else resolvedKeys = $[21];
|
|
94
|
+
if (activeKeys.some((key_1) => keyRegistry.get(String(key_1)) !== key_1)) setKeyRegistry(resolvedKeys);
|
|
95
|
+
const keysEqual = _temp2;
|
|
96
|
+
let t9;
|
|
97
|
+
if ($[22] !== accordion || $[23] !== activeKeys || $[24] !== onChange || $[25] !== onOpenKeysChange || $[26] !== openKeys) {
|
|
98
|
+
t9 = (key_2) => {
|
|
99
|
+
if (!key_2 && key_2 !== 0) return;
|
|
100
|
+
let nextKeys = [...activeKeys];
|
|
101
|
+
if (nextKeys.findIndex((item) => keysEqual(item, key_2)) >= 0) nextKeys = accordion ? [] : nextKeys.filter((k) => !keysEqual(k, key_2));
|
|
102
|
+
else nextKeys = accordion ? [key_2] : [...nextKeys, key_2];
|
|
103
|
+
if (openKeys === void 0) setInnerActiveKeys(nextKeys);
|
|
104
|
+
onOpenKeysChange?.(nextKeys);
|
|
105
|
+
onChange?.(key_2);
|
|
106
|
+
};
|
|
107
|
+
$[22] = accordion;
|
|
108
|
+
$[23] = activeKeys;
|
|
109
|
+
$[24] = onChange;
|
|
110
|
+
$[25] = onOpenKeysChange;
|
|
111
|
+
$[26] = openKeys;
|
|
112
|
+
$[27] = t9;
|
|
113
|
+
} else t9 = $[27];
|
|
114
|
+
const handleExpand = t9;
|
|
115
|
+
let t10;
|
|
116
|
+
if ($[28] !== className || $[29] !== sample || $[30] !== shape || $[31] !== theme) {
|
|
117
|
+
t10 = clsx("k-collapse", { "k-collapse-sample": sample }, `k-collapse-${theme}`, `k-collapse-${shape}`, className);
|
|
118
|
+
$[28] = className;
|
|
119
|
+
$[29] = sample;
|
|
120
|
+
$[30] = shape;
|
|
121
|
+
$[31] = theme;
|
|
122
|
+
$[32] = t10;
|
|
123
|
+
} else t10 = $[32];
|
|
124
|
+
const classes = t10;
|
|
125
|
+
let t11;
|
|
126
|
+
let t12;
|
|
127
|
+
let t13;
|
|
128
|
+
if ($[33] !== activeKeys || $[34] !== children || $[35] !== classes || $[36] !== handleExpand || $[37] !== resolvedKeys || $[38] !== rest) {
|
|
129
|
+
const childList = getChildren(children);
|
|
130
|
+
t11 = classes;
|
|
131
|
+
t12 = rest;
|
|
132
|
+
let t14;
|
|
133
|
+
if ($[42] !== activeKeys || $[43] !== handleExpand || $[44] !== resolvedKeys) {
|
|
134
|
+
t14 = (child, index_0) => {
|
|
135
|
+
if (!React.isValidElement(child)) return child;
|
|
136
|
+
const rawKey = child.props.panelKey ?? child.key ?? index_0;
|
|
137
|
+
const key_3 = child.props.panelKey ?? resolvedKeys.get(String(rawKey)) ?? rawKey;
|
|
138
|
+
const isActive = activeKeys.some((item_0) => keysEqual(item_0, key_3));
|
|
139
|
+
return React.cloneElement(child, {
|
|
140
|
+
panelKey: key_3,
|
|
141
|
+
active: isActive,
|
|
142
|
+
onExpand: handleExpand
|
|
143
|
+
});
|
|
144
|
+
};
|
|
145
|
+
$[42] = activeKeys;
|
|
146
|
+
$[43] = handleExpand;
|
|
147
|
+
$[44] = resolvedKeys;
|
|
148
|
+
$[45] = t14;
|
|
149
|
+
} else t14 = $[45];
|
|
150
|
+
t13 = childList.map(t14);
|
|
151
|
+
$[33] = activeKeys;
|
|
152
|
+
$[34] = children;
|
|
153
|
+
$[35] = classes;
|
|
154
|
+
$[36] = handleExpand;
|
|
155
|
+
$[37] = resolvedKeys;
|
|
156
|
+
$[38] = rest;
|
|
157
|
+
$[39] = t11;
|
|
158
|
+
$[40] = t12;
|
|
159
|
+
$[41] = t13;
|
|
160
|
+
} else {
|
|
161
|
+
t11 = $[39];
|
|
162
|
+
t12 = $[40];
|
|
163
|
+
t13 = $[41];
|
|
164
|
+
}
|
|
165
|
+
let t14;
|
|
166
|
+
if ($[46] !== t11 || $[47] !== t12 || $[48] !== t13) {
|
|
167
|
+
t14 = /* @__PURE__ */ jsx("div", {
|
|
168
|
+
className: t11,
|
|
169
|
+
...t12,
|
|
170
|
+
children: t13
|
|
171
|
+
});
|
|
172
|
+
$[46] = t11;
|
|
173
|
+
$[47] = t12;
|
|
174
|
+
$[48] = t13;
|
|
175
|
+
$[49] = t14;
|
|
176
|
+
} else t14 = $[49];
|
|
177
|
+
return t14;
|
|
178
|
+
};
|
|
179
|
+
function _temp(key) {
|
|
180
|
+
return [String(key), key];
|
|
181
|
+
}
|
|
182
|
+
function _temp2(left, right) {
|
|
183
|
+
return left === right || String(left) === String(right);
|
|
184
|
+
}
|
|
185
|
+
//#endregion
|
|
186
|
+
export { Collapse as default };
|