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
package/style/theme.css
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
:root{--kui-border-radius:6px;--kui-border-radius-lg:8px;--kui-border-radius-card:10px;--kui-shape-round:var(--kui-border-radius);--kui-shape-circle:9999px;--kui-shape-square:2px;--kui-control-height-sm:24px;--kui-control-height:32px;--kui-control-height-lg:40px;--kui-font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--kui-font-size-sm:12px;--kui-font-size:14px;--kui-font-size-lg:16px;--kui-line-height:1.571;--kui-line-height-heading:1.4;--kui-spacing-1:4px;--kui-spacing-2:8px;--kui-spacing-3:12px;--kui-spacing-4:16px;--kui-spacing-5:20px;--kui-spacing-6:24px;--kui-padding-block-sm:2px;--kui-padding-block:6px;--kui-padding-block-lg:6px;--kui-padding-inline-sm:6px;--kui-padding-inline:8px;--kui-padding-inline-lg:10px;--kui-padding-tag-box-inline-sm:2px;--kui-padding-tag-box-inline:4px;--kui-padding-tag-box-inline-lg:6px;--kui-motion-duration-fast:.15s;--kui-motion-duration:.2s;--kui-motion-duration-slow:.3s;--kui-motion-easing:ease-in-out;--kui-focus-ring-width:2px;--kui-z-index-popup:1000;--kui-z-index-overlay:1002;--kui-z-index-message:1010;--kui-control-radius:var(--kui-shape-round);--kui-card-radius:var(--kui-border-radius-card);--kui-card-padding:var(--kui-spacing-4);--kui-popup-radius:var(--kui-border-radius);--kui-disabled-opacity:.7;--kui-control-bg:var(--kui-color-bg);--kui-control-bg-fill:var(--kui-color-bg-component-overlay);--kui-control-bg-disabled:var(--kui-color-bg-component-disabled);--kui-control-border:var(--kui-color-border);--kui-control-border-hover:var(--kui-color-primary);--kui-control-border-focus:var(--kui-color-primary);--kui-control-text:var(--kui-color-text);--kui-card-bg:var(--kui-color-bg-component);--kui-card-border:var(--kui-color-border);--kui-popup-bg:var(--kui-color-bg-pop);--kui-popup-border:var(--kui-color-pop-border);--kui-popup-shadow:var(--kui-pop-shadow);--kui-theme-default-bg:var(--kui-control-bg);--kui-theme-default-border:var(--kui-control-border);--kui-theme-fill-bg:var(--kui-control-bg-fill);--kui-theme-fill-border:transparent;--kui-theme-outline-bg:transparent;--kui-theme-outline-border:var(--kui-control-border);--kui-theme-plain-bg:transparent;--kui-theme-plain-border:transparent;--kui-color-primary:#54a9ff;--kui-color-primary-hover:color-mix(in srgb, var(--kui-color-primary) 90%, transparent);--kui-color-primary-active:color-mix(in srgb, var(--kui-color-primary) 80%, transparent);--kui-color-primary-1:color-mix(in srgb, var(--kui-color-primary) 90%, transparent);--kui-color-primary-3:color-mix(in srgb, var(--kui-color-primary) 70%, transparent);--kui-color-primary-6:color-mix(in srgb, var(--kui-color-primary) 40%, transparent);--kui-color-primary-8:color-mix(in srgb, var(--kui-color-primary) 20%, transparent);--kui-color-primary-9:color-mix(in srgb, var(--kui-color-primary) 10%, transparent);--kui-color-success:#00bb5d;--kui-color-success-1:#00bb5de6;--kui-color-success-3:#00bb5db3;--kui-color-success-6:#00bb5d66;--kui-color-success-8:#00bb5d33;--kui-color-success-9:#00bb5d1a;--kui-color-warning:#ffae43;--kui-color-warning-hover:#ffae43e6;--kui-color-warning-active:#ffae43cc;--kui-color-warning-1:#ffae43e6;--kui-color-warning-3:#ffae43b3;--kui-color-warning-6:#ffae4366;--kui-color-warning-8:#ffae4333;--kui-color-warning-9:#ffae431a;--kui-color-danger:#fc725a;--kui-color-danger-hover:#fc725ae6;--kui-color-danger-active:#fc725acc;--kui-color-danger-1:#fc725ae6;--kui-color-danger-3:#fc725ab3;--kui-color-danger-6:#fc725a66;--kui-color-danger-8:#fc725a33;--kui-color-danger-9:#fc725a1a;--kui-color-pink:#ff738c;--kui-color-pink-3:#ff738cb3;--kui-color-pink-6:#ff738c66;--kui-color-pink-8:#ff738c33;--kui-color-pink-9:#ff738c1a;--kui-color-red:#ff1a1a;--kui-color-red-3:#ff1a1ab3;--kui-color-red-6:#ff1a1a66;--kui-color-red-8:#ff1a1a33;--kui-color-red-9:#ff1a1a1a;--kui-color-yellow:#cc0;--kui-color-yellow-3:#cccc00b3;--kui-color-yellow-6:#cc06;--kui-color-yellow-8:#cc03;--kui-color-yellow-9:#cccc001a;--kui-color-orange:orange;--kui-color-orange-3:#ffa500b3;--kui-color-orange-6:#ffa50066;--kui-color-orange-8:#ffa50033;--kui-color-orange-9:#ffa5001a;--kui-color-cyan:#0cc;--kui-color-cyan-3:#00ccccb3;--kui-color-cyan-6:#0cc6;--kui-color-cyan-8:#0cc3;--kui-color-cyan-9:#00cccc1a;--kui-color-violet:violet;--kui-color-violet-3:#ee82eeb3;--kui-color-violet-6:#ee82ee66;--kui-color-violet-8:#ee82ee33;--kui-color-violet-9:#ee82ee1a;--kui-color-green:#00cd00;--kui-color-green-3:#00cd00b3;--kui-color-green-6:#00cd0066;--kui-color-green-8:#00cd0033;--kui-color-green-9:#00cd001a;--kui-color-blue:#0080ff;--kui-color-blue-3:#007fffb3;--kui-color-blue-6:#007fff66;--kui-color-blue-8:#007fff33;--kui-color-blue-9:#007fff1a;--kui-color-purple:#cd00cc;--kui-color-purple-3:#cd00ccb3;--kui-color-purple-6:#cd00cc66;--kui-color-purple-8:#cd00cc33;--kui-color-purple-9:#cd00cc1a;--kui-color-brown:#d26815;--kui-color-brown-3:#d26815b3;--kui-color-brown-6:#d2681566;--kui-color-brown-8:#d2681533;--kui-color-brown-9:#d268151a;--kui-color-teal:teal;--kui-color-teal-3:#008080b3;--kui-color-teal-6:#00808066;--kui-color-teal-8:#00808033;--kui-color-teal-9:#0080801a;--kui-color-magenta:magenta;--kui-color-magenta-3:#ff00ffb3;--kui-color-magenta-6:#f0f6;--kui-color-magenta-8:#f0f3;--kui-color-magenta-9:#ff00ff1a;--kui-color-olive:olive;--kui-color-olive-3:#808000b3;--kui-color-olive-6:#80800066;--kui-color-olive-8:#80800033;--kui-color-olive-9:#8080001a;--kui-color-volcano:#ff4200;--kui-color-volcano-3:#ff4200b3;--kui-color-volcano-6:#ff420066;--kui-color-volcano-8:#ff420033;--kui-color-volcano-9:#ff42001a;--kui-color-gold:#b39700;--kui-color-gold-3:#b39700b3;--kui-color-gold-6:#b3970066;--kui-color-gold-8:#b3970033;--kui-color-gold-9:#b397001a;--kui-color-lime:#00b300;--kui-color-lime-3:#00b300b3;--kui-color-lime-6:#00b30066;--kui-color-lime-8:#00b30033;--kui-color-lime-9:#00b3001a;--kui-color-gray:gray;--kui-color-gray-1:#fafafa;--kui-color-gray-2:#f5f5f5;--kui-color-gray-3:#eee;--kui-color-gray-4:#d9d9d9;--kui-color-gray-5:#bfbfbf;--kui-color-gray-6:#8c8c8c;--kui-color-gray-7:#595959;--kui-color-gray-8:#262626;--kui-color-gray-9:#141414;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--kui-color-text:#262626;--kui-color-text-disabled:#8c8c8c;--kui-color-text-title:#141414;--kui-color-text-description:#8c8c8c;--kui-color-text-placeholder:#8c8c8c;--kui-color-text-on-solid:#fff;--kui-color-control-thumb:#fff;--kui-color-control-thumb-text:#141414;--kui-color-checkerboard:#cdcdcd;--kui-color-icon:#939393c4;--kui-color-icon-hover:#717171c4;--kui-color-icon-active:#646464c4;--kui-color-border:#e9e9e9;--kui-color-pop-border:#e7e7e7;--kui-color-outline:color-mix(in srgb, var(--kui-color-primary) 20%, transparent);--kui-color-border-disabled:#d9d9d9;--kui-color-border-split:#87878730;--kui-color-reverse:#1f1f1f;--kui-color-reverse-text:#bfbfbf;--kui-color-bg:#fff;--kui-color-bg-layout:#f5f5f5;--kui-color-bg-container:#fff;--kui-pop-shadow:0 2px 8px #00000026;--kui-color-bg-pop:#fff;--kui-color-bg-pop-dark:#262626;--kui-color-skeleton:#0000001b;--kui-color-skeleton-high:#ababab1b;--kui-color-bg-component:#f5f5f5;--kui-color-bg-component-hover:#eee;--kui-color-bg-component-active:#e7e7e7;--kui-color-row-hover:color-mix(in srgb, var(--kui-color-bg-component-hover) 40%, var(--kui-color-bg-component));--kui-color-bg-component-disabled:#f5f5f5;--kui-color-bg-component-overlay:#353a411a;--kui-color-bg-elevated:#262626;--kui-color-scrollbar-thumb:#1e1e1e34;--kui-color-scrollbar-thumb-hover:#0000001a;--kui-color-item-hover:#f5f5f5;--kui-color-item-active:#eee;--kui-color-item-selected:color-mix(in srgb, var(--kui-color-primary) 20%, transparent);--kui-color-item-disabled:#f5f5f5;--kui-component-shadow:0 0 2px color-mix(in srgb, var(--kui-color-primary) 10%, transparent);--kui-color-shadow:#00000042;--kui-color-mask:#0009;--kui-color-spin-mask:#ffffffe6;--kui-color-border-shadow:0 4px 6px #0000001a, 0 0 1px #0000004d;--kui-color-bg-1:#fafafa;--kui-color-bg-2:#f5f5f5;--kui-color-bg-3:#eee;--kui-color-bg-4:#d9d9d9;--kui-color-bg-5:#bfbfbf;--kui-color-bg-6:#8c8c8c;--kui-color-bg-7:#595959;--kui-color-bg-8:#262626;--kui-color-bg-9:#141414;--kui-color-text-secondary:var(--kui-color-text-description);--kui-color-placeholder:var(--kui-color-text-placeholder);--kui-color-item-disable:var(--kui-color-item-disabled)}[theme-mode=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--kui-color-text:#f5f5f5;--kui-color-text-disabled:#595959;--kui-color-text-title:#f5f5f5;--kui-color-text-description:#bfbfbf;--kui-color-text-placeholder:#8c8c8c;--kui-color-text-on-solid:#fff;--kui-color-control-thumb:#fff;--kui-color-control-thumb-text:#141414;--kui-color-checkerboard:#666;--kui-color-icon:#939393c4;--kui-color-icon-hover:#9d9d9dc4;--kui-color-icon-active:#b9b9b9c4;--kui-color-reverse-text:#595959;--kui-color-reverse:#f5f5f5;--kui-color-bg:#141414;--kui-color-bg-layout:#1f1f1f;--kui-color-bg-container:#1f1f1f;--kui-color-bg-pop:#262626;--kui-color-skeleton:#54545433;--kui-color-skeleton-high:#51515154;--kui-color-bg-component:#262626;--kui-color-bg-component-hover:#303030;--kui-color-bg-component-active:#383838;--kui-color-row-hover:color-mix(in srgb, var(--kui-color-bg-component-hover) 40%, var(--kui-color-bg-component));--kui-color-bg-component-disabled:#1f1f1f;--kui-color-bg-component-overlay:#585d643f;--kui-color-bg-elevated:#262626;--kui-color-bg-pop-dark:#262626;--kui-color-scrollbar-thumb:#75757577;--kui-color-scrollbar-thumb-hover:#0000001a;--kui-color-border:#333;--kui-color-pop-border:#313131;--kui-color-border-disabled:#303030;--kui-color-border-split:#87878730;--kui-color-outline:color-mix(in srgb, var(--kui-color-primary) 20%, transparent);--kui-color-shadow:#0009;--kui-color-mask:#0009;--kui-color-spin-mask:#161616d5;--kui-component-shadow:0 0 2px color-mix(in srgb, var(--kui-color-primary) 10%, transparent);--kui-pop-shadow:0 4px 16px #00000073;--kui-color-border-shadow:0 4px 6px #ffffff1a, 0 0 1px #ffffff4d;--kui-color-item-hover:#303030;--kui-color-item-active:#434343;--kui-color-item-selected:color-mix(in srgb, var(--kui-color-primary) 20%, transparent);--kui-color-item-disabled:#1f1f1f;--kui-color-bg-1:#0f0f0f;--kui-color-bg-2:#141414;--kui-color-bg-3:#1f1f1f;--kui-color-bg-4:#262626;--kui-color-bg-5:#303030;--kui-color-bg-6:#434343;--kui-color-bg-7:#595959;--kui-color-bg-8:#bfbfbf;--kui-color-bg-9:#f5f5f5;--kui-disabled-opacity:.7;--kui-control-bg:var(--kui-color-bg);--kui-control-bg-fill:var(--kui-color-bg-component-overlay);--kui-control-bg-disabled:var(--kui-color-bg-component-disabled);--kui-control-border:var(--kui-color-border);--kui-control-border-hover:var(--kui-color-primary);--kui-control-border-focus:var(--kui-color-primary);--kui-control-text:var(--kui-color-text);--kui-card-bg:var(--kui-color-bg-component);--kui-card-border:var(--kui-color-border);--kui-popup-bg:var(--kui-color-bg-pop);--kui-popup-border:var(--kui-color-pop-border);--kui-popup-shadow:var(--kui-pop-shadow);--kui-theme-default-bg:var(--kui-control-bg);--kui-theme-default-border:var(--kui-control-border);--kui-theme-fill-bg:var(--kui-control-bg-fill);--kui-theme-fill-border:transparent;--kui-theme-outline-bg:transparent;--kui-theme-outline-border:var(--kui-control-border);--kui-theme-plain-bg:transparent;--kui-theme-plain-border:transparent}[theme-mode=light]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--kui-color-text:#262626;--kui-color-text-disabled:#8c8c8c;--kui-color-text-title:#141414;--kui-color-text-description:#8c8c8c;--kui-color-text-placeholder:#8c8c8c;--kui-color-text-on-solid:#fff;--kui-color-control-thumb:#fff;--kui-color-control-thumb-text:#141414;--kui-color-checkerboard:#cdcdcd;--kui-color-icon:#939393c4;--kui-color-icon-hover:#717171c4;--kui-color-icon-active:#646464c4;--kui-color-border:#e9e9e9;--kui-color-pop-border:#e7e7e7;--kui-color-outline:color-mix(in srgb, var(--kui-color-primary) 20%, transparent);--kui-color-border-disabled:#d9d9d9;--kui-color-border-split:#87878730;--kui-color-reverse:#1f1f1f;--kui-color-reverse-text:#bfbfbf;--kui-color-bg:#fff;--kui-color-bg-layout:#f5f5f5;--kui-color-bg-container:#fff;--kui-pop-shadow:0 2px 8px #00000026;--kui-color-bg-pop:#fff;--kui-color-bg-pop-dark:#262626;--kui-color-skeleton:#0000001b;--kui-color-skeleton-high:#ababab1b;--kui-color-bg-component:#f5f5f5;--kui-color-bg-component-hover:#eee;--kui-color-bg-component-active:#e7e7e7;--kui-color-row-hover:color-mix(in srgb, var(--kui-color-bg-component-hover) 40%, var(--kui-color-bg-component));--kui-color-bg-component-disabled:#f5f5f5;--kui-color-bg-component-overlay:#353a411a;--kui-color-bg-elevated:#262626;--kui-color-scrollbar-thumb:#1e1e1e34;--kui-color-scrollbar-thumb-hover:#0000001a;--kui-color-item-hover:#f5f5f5;--kui-color-item-active:#eee;--kui-color-item-selected:color-mix(in srgb, var(--kui-color-primary) 20%, transparent);--kui-color-item-disabled:#f5f5f5;--kui-component-shadow:0 0 2px color-mix(in srgb, var(--kui-color-primary) 10%, transparent);--kui-color-shadow:#00000042;--kui-color-mask:#0009;--kui-color-spin-mask:#ffffffe6;--kui-color-border-shadow:0 4px 6px #0000001a, 0 0 1px #0000004d;--kui-color-bg-1:#fafafa;--kui-color-bg-2:#f5f5f5;--kui-color-bg-3:#eee;--kui-color-bg-4:#d9d9d9;--kui-color-bg-5:#bfbfbf;--kui-color-bg-6:#8c8c8c;--kui-color-bg-7:#595959;--kui-color-bg-8:#262626;--kui-color-bg-9:#141414;--kui-color-text-secondary:var(--kui-color-text-description);--kui-color-placeholder:var(--kui-color-text-placeholder);--kui-color-item-disable:var(--kui-color-item-disabled);--kui-disabled-opacity:.7;--kui-control-bg:var(--kui-color-bg);--kui-control-bg-fill:var(--kui-color-bg-component-overlay);--kui-control-bg-disabled:var(--kui-color-bg-component-disabled);--kui-control-border:var(--kui-color-border);--kui-control-border-hover:var(--kui-color-primary);--kui-control-border-focus:var(--kui-color-primary);--kui-control-text:var(--kui-color-text);--kui-card-bg:var(--kui-color-bg-component);--kui-card-border:var(--kui-color-border);--kui-popup-bg:var(--kui-color-bg-pop);--kui-popup-border:var(--kui-color-pop-border);--kui-popup-shadow:var(--kui-pop-shadow);--kui-theme-default-bg:var(--kui-control-bg);--kui-theme-default-border:var(--kui-control-border);--kui-theme-fill-bg:var(--kui-control-bg-fill);--kui-theme-fill-border:transparent;--kui-theme-outline-bg:transparent;--kui-theme-outline-border:var(--kui-control-border);--kui-theme-plain-bg:transparent;--kui-theme-plain-border:transparent}[shape-mode=square]{--kui-border-radius:2px;--kui-border-radius-lg:2px;--kui-border-radius-card:2px;--kui-shape-round:2px;--kui-control-radius:2px;--kui-card-radius:2px;--kui-popup-radius:2px}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface AffixProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
offsetTop?: number;
|
|
5
|
+
offsetBottom?: number;
|
|
6
|
+
target?: () => HTMLElement | Window | null;
|
|
7
|
+
onChange?: (affixed: boolean) => void;
|
|
8
|
+
}
|
|
9
|
+
export default function Affix({ children, offsetTop, offsetBottom, target, onChange, className, style, ...rest }: AffixProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface AffixProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
offsetTop?: number;
|
|
5
|
+
offsetBottom?: number;
|
|
6
|
+
target?: () => HTMLElement | Window | null;
|
|
7
|
+
onChange?: (affixed: boolean) => void;
|
|
8
|
+
}
|
|
9
|
+
export default function Affix({ children, offsetTop, offsetBottom, target, onChange, className, style, ...rest }: AffixProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IconType } from '../icon/index.cjs';
|
|
3
|
+
import { ShapeType, ThemeType } from '../const/types.cjs';
|
|
4
|
+
export interface AlertProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
type?: "info" | "success" | "warning" | "error";
|
|
6
|
+
closable?: boolean;
|
|
7
|
+
showIcon?: boolean;
|
|
8
|
+
icon?: IconType[];
|
|
9
|
+
message?: React.ReactNode;
|
|
10
|
+
description?: React.ReactNode;
|
|
11
|
+
bordered?: boolean;
|
|
12
|
+
theme?: ThemeType;
|
|
13
|
+
shape?: ShapeType;
|
|
14
|
+
onClose?: (e: React.MouseEvent<HTMLElement>) => void;
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
declare const Alert: React.FC<AlertProps>;
|
|
18
|
+
export default Alert;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IconType } from '../icon/index.js';
|
|
3
|
+
import { ShapeType, ThemeType } from '../const/types.js';
|
|
4
|
+
export interface AlertProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
type?: "info" | "success" | "warning" | "error";
|
|
6
|
+
closable?: boolean;
|
|
7
|
+
showIcon?: boolean;
|
|
8
|
+
icon?: IconType[];
|
|
9
|
+
message?: React.ReactNode;
|
|
10
|
+
description?: React.ReactNode;
|
|
11
|
+
bordered?: boolean;
|
|
12
|
+
theme?: ThemeType;
|
|
13
|
+
shape?: ShapeType;
|
|
14
|
+
onClose?: (e: React.MouseEvent<HTMLElement>) => void;
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
declare const Alert: React.FC<AlertProps>;
|
|
18
|
+
export default Alert;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface AnchorContextValue {
|
|
2
|
+
activeLink: string;
|
|
3
|
+
registerLink: (link: string) => void;
|
|
4
|
+
unregisterLink: (link: string) => void;
|
|
5
|
+
scrollTo: (link: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const AnchorContext: import('react').Context<AnchorContextValue | null>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface AnchorContextValue {
|
|
2
|
+
activeLink: string;
|
|
3
|
+
registerLink: (link: string) => void;
|
|
4
|
+
unregisterLink: (link: string) => void;
|
|
5
|
+
scrollTo: (link: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const AnchorContext: import('react').Context<AnchorContextValue | null>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AnchorHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface AnchorLinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "title"> {
|
|
3
|
+
href: string;
|
|
4
|
+
title?: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export default function AnchorLink({ href, title, className, children, onClick, ...rest }: AnchorLinkProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AnchorHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface AnchorLinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "title"> {
|
|
3
|
+
href: string;
|
|
4
|
+
title?: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export default function AnchorLink({ href, title, className, children, onClick, ...rest }: AnchorLinkProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export interface AnchorProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "onClick"> {
|
|
3
|
+
affix?: boolean;
|
|
4
|
+
offsetTop?: number;
|
|
5
|
+
bounds?: number;
|
|
6
|
+
container?: string | HTMLElement | Window;
|
|
7
|
+
onChange?: (activeLink: string) => void;
|
|
8
|
+
onClick?: (link: string) => void;
|
|
9
|
+
}
|
|
10
|
+
export default function Anchor({ affix, offsetTop, bounds, container, onChange, onClick, className, style, children, ...rest }: AnchorProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export interface AnchorProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "onClick"> {
|
|
3
|
+
affix?: boolean;
|
|
4
|
+
offsetTop?: number;
|
|
5
|
+
bounds?: number;
|
|
6
|
+
container?: string | HTMLElement | Window;
|
|
7
|
+
onChange?: (activeLink: string) => void;
|
|
8
|
+
onClick?: (link: string) => void;
|
|
9
|
+
}
|
|
10
|
+
export default function Anchor({ affix, offsetTop, bounds, container, onChange, onClick, className, style, children, ...rest }: AnchorProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ShapeType, SizeType, ThemeType } from '../const/types.cjs';
|
|
3
|
+
export interface AutoCompleteOption {
|
|
4
|
+
value: string;
|
|
5
|
+
label?: React.ReactNode;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface AutoCompleteProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "value" | "defaultValue" | "onChange" | "onSelect"> {
|
|
9
|
+
value?: string;
|
|
10
|
+
options?: Array<string | AutoCompleteOption>;
|
|
11
|
+
open?: boolean;
|
|
12
|
+
defaultOpen?: boolean;
|
|
13
|
+
showOnEmpty?: boolean;
|
|
14
|
+
clearable?: boolean;
|
|
15
|
+
loading?: boolean;
|
|
16
|
+
loadingText?: string;
|
|
17
|
+
size?: SizeType;
|
|
18
|
+
shape?: ShapeType;
|
|
19
|
+
theme?: ThemeType;
|
|
20
|
+
filterOption?: boolean | ((input: string, option: AutoCompleteOption) => boolean);
|
|
21
|
+
onChange?: (value: string) => void;
|
|
22
|
+
onClear?: () => void;
|
|
23
|
+
onSearch?: (value: string) => void;
|
|
24
|
+
onSelect?: (value: string, option: AutoCompleteOption) => void;
|
|
25
|
+
onOpenChange?: (open: boolean) => void;
|
|
26
|
+
}
|
|
27
|
+
declare const _default: React.FC<AutoCompleteProps>;
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ShapeType, SizeType, ThemeType } from '../const/types.js';
|
|
3
|
+
export interface AutoCompleteOption {
|
|
4
|
+
value: string;
|
|
5
|
+
label?: React.ReactNode;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface AutoCompleteProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "value" | "defaultValue" | "onChange" | "onSelect"> {
|
|
9
|
+
value?: string;
|
|
10
|
+
options?: Array<string | AutoCompleteOption>;
|
|
11
|
+
open?: boolean;
|
|
12
|
+
defaultOpen?: boolean;
|
|
13
|
+
showOnEmpty?: boolean;
|
|
14
|
+
clearable?: boolean;
|
|
15
|
+
loading?: boolean;
|
|
16
|
+
loadingText?: string;
|
|
17
|
+
size?: SizeType;
|
|
18
|
+
shape?: ShapeType;
|
|
19
|
+
theme?: ThemeType;
|
|
20
|
+
filterOption?: boolean | ((input: string, option: AutoCompleteOption) => boolean);
|
|
21
|
+
onChange?: (value: string) => void;
|
|
22
|
+
onClear?: () => void;
|
|
23
|
+
onSearch?: (value: string) => void;
|
|
24
|
+
onSelect?: (value: string, option: AutoCompleteOption) => void;
|
|
25
|
+
onOpenChange?: (open: boolean) => void;
|
|
26
|
+
}
|
|
27
|
+
declare const _default: React.FC<AutoCompleteProps>;
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type AvatarShape = "circle" | "square" | "round";
|
|
2
|
+
export type AvatarSize = number | "large" | "small" | "default";
|
|
3
|
+
export interface AvatarGroupContextValue {
|
|
4
|
+
shape?: AvatarShape;
|
|
5
|
+
size?: AvatarSize;
|
|
6
|
+
}
|
|
7
|
+
export declare const AvatarGroupContext: import('react').Context<AvatarGroupContextValue | null>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type AvatarShape = "circle" | "square" | "round";
|
|
2
|
+
export type AvatarSize = number | "large" | "small" | "default";
|
|
3
|
+
export interface AvatarGroupContextValue {
|
|
4
|
+
shape?: AvatarShape;
|
|
5
|
+
size?: AvatarSize;
|
|
6
|
+
}
|
|
7
|
+
export declare const AvatarGroupContext: import('react').Context<AvatarGroupContextValue | null>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { AvatarShape, AvatarSize } from './avatar-group-context.cjs';
|
|
3
|
+
export interface AvatarGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
maxCount?: number;
|
|
5
|
+
spacing?: number;
|
|
6
|
+
shape?: AvatarShape;
|
|
7
|
+
size?: AvatarSize;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
declare const AvatarGroup: React.FC<AvatarGroupProps>;
|
|
11
|
+
export default AvatarGroup;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { AvatarShape, AvatarSize } from './avatar-group-context.js';
|
|
3
|
+
export interface AvatarGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
maxCount?: number;
|
|
5
|
+
spacing?: number;
|
|
6
|
+
shape?: AvatarShape;
|
|
7
|
+
size?: AvatarSize;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
declare const AvatarGroup: React.FC<AvatarGroupProps>;
|
|
11
|
+
export default AvatarGroup;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IconType } from '../icon/index.cjs';
|
|
3
|
+
import { AvatarShape, AvatarSize } from './avatar-group-context.cjs';
|
|
4
|
+
export interface AvatarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
icon?: IconType[];
|
|
6
|
+
shape?: AvatarShape;
|
|
7
|
+
size?: AvatarSize;
|
|
8
|
+
src?: string;
|
|
9
|
+
alt?: string;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
onError?: (event: React.SyntheticEvent<HTMLImageElement>) => boolean | void;
|
|
12
|
+
}
|
|
13
|
+
declare const Avatar: React.FC<AvatarProps>;
|
|
14
|
+
export default Avatar;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IconType } from '../icon/index.js';
|
|
3
|
+
import { AvatarShape, AvatarSize } from './avatar-group-context.js';
|
|
4
|
+
export interface AvatarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
icon?: IconType[];
|
|
6
|
+
shape?: AvatarShape;
|
|
7
|
+
size?: AvatarSize;
|
|
8
|
+
src?: string;
|
|
9
|
+
alt?: string;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
onError?: (event: React.SyntheticEvent<HTMLImageElement>) => boolean | void;
|
|
12
|
+
}
|
|
13
|
+
declare const Avatar: React.FC<AvatarProps>;
|
|
14
|
+
export default Avatar;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CSSProperties, HTMLAttributes, MouseEvent } from 'react';
|
|
2
|
+
export interface BackTopProps extends Omit<HTMLAttributes<HTMLDivElement>, "onClick"> {
|
|
3
|
+
height?: number;
|
|
4
|
+
right?: CSSProperties["right"];
|
|
5
|
+
bottom?: CSSProperties["bottom"];
|
|
6
|
+
behavior?: ScrollBehavior;
|
|
7
|
+
target?: () => HTMLElement | null;
|
|
8
|
+
onClick?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
9
|
+
onVisibleChange?: (visible: boolean) => void;
|
|
10
|
+
}
|
|
11
|
+
export default function BackTop({ height, right, bottom, behavior, target, onClick, onVisibleChange, onKeyDown, children, className, style, role, tabIndex, "aria-label": ariaLabel, ...rest }: BackTopProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CSSProperties, HTMLAttributes, MouseEvent } from 'react';
|
|
2
|
+
export interface BackTopProps extends Omit<HTMLAttributes<HTMLDivElement>, "onClick"> {
|
|
3
|
+
height?: number;
|
|
4
|
+
right?: CSSProperties["right"];
|
|
5
|
+
bottom?: CSSProperties["bottom"];
|
|
6
|
+
behavior?: ScrollBehavior;
|
|
7
|
+
target?: () => HTMLElement | null;
|
|
8
|
+
onClick?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
9
|
+
onVisibleChange?: (visible: boolean) => void;
|
|
10
|
+
}
|
|
11
|
+
export default function BackTop({ height, right, bottom, behavior, target, onClick, onVisibleChange, onKeyDown, children, className, style, role, tabIndex, "aria-label": ariaLabel, ...rest }: BackTopProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type BadgeStatusType = "default" | "success" | "error" | "warning";
|
|
3
|
+
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
count?: string | number;
|
|
5
|
+
dot?: boolean;
|
|
6
|
+
pill?: boolean;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
color?: string;
|
|
9
|
+
status?: BadgeStatusType;
|
|
10
|
+
text?: React.ReactNode;
|
|
11
|
+
maxCount?: number;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
declare const Badge: React.FC<BadgeProps>;
|
|
15
|
+
export default Badge;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type BadgeStatusType = "default" | "success" | "error" | "warning";
|
|
3
|
+
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
count?: string | number;
|
|
5
|
+
dot?: boolean;
|
|
6
|
+
pill?: boolean;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
color?: string;
|
|
9
|
+
status?: BadgeStatusType;
|
|
10
|
+
text?: React.ReactNode;
|
|
11
|
+
maxCount?: number;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
declare const Badge: React.FC<BadgeProps>;
|
|
15
|
+
export default Badge;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
export interface TeleportProps {
|
|
3
|
+
/** 目标容器:支持 CSS 选择器字符串(如 "#modal")、HTMLElement 实例或 null/undefined */
|
|
4
|
+
to?: string | HTMLElement | null | undefined;
|
|
5
|
+
/** 是否禁用传送。为 true 时,内容将在组件原本的 DOM 位置渲染 */
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
/** 延迟解析目标 DOM。开启后将在下一轮宏任务中寻找节点(适用于目标 DOM 挂载较晚的场景) */
|
|
8
|
+
defer?: boolean;
|
|
9
|
+
/** 被传送的子节点 */
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
declare const Teleport: React.FC<TeleportProps>;
|
|
13
|
+
export default Teleport;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
export interface TeleportProps {
|
|
3
|
+
/** 目标容器:支持 CSS 选择器字符串(如 "#modal")、HTMLElement 实例或 null/undefined */
|
|
4
|
+
to?: string | HTMLElement | null | undefined;
|
|
5
|
+
/** 是否禁用传送。为 true 时,内容将在组件原本的 DOM 位置渲染 */
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
/** 延迟解析目标 DOM。开启后将在下一轮宏任务中寻找节点(适用于目标 DOM 挂载较晚的场景) */
|
|
8
|
+
defer?: boolean;
|
|
9
|
+
/** 被传送的子节点 */
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
declare const Teleport: React.FC<TeleportProps>;
|
|
13
|
+
export default Teleport;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TransitionProps } from './transition.cjs';
|
|
2
|
+
type HeightTransitionProps = Pick<TransitionProps, "name" | "onBeforeEnter" | "onEnter" | "onAfterEnter" | "onBeforeLeave" | "onLeave" | "onAfterLeave">;
|
|
3
|
+
export declare function getTransitionProps(name: string): HeightTransitionProps;
|
|
4
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TransitionProps } from './transition.js';
|
|
2
|
+
type HeightTransitionProps = Pick<TransitionProps, "name" | "onBeforeEnter" | "onEnter" | "onAfterEnter" | "onBeforeLeave" | "onLeave" | "onAfterLeave">;
|
|
3
|
+
export declare function getTransitionProps(name: string): HeightTransitionProps;
|
|
4
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { default as React, ReactElement } from 'react';
|
|
2
|
+
export interface TransitionProps {
|
|
3
|
+
show?: boolean;
|
|
4
|
+
name?: string;
|
|
5
|
+
appear?: boolean;
|
|
6
|
+
timeout?: number | {
|
|
7
|
+
appear?: number;
|
|
8
|
+
enter?: number;
|
|
9
|
+
exit?: number;
|
|
10
|
+
};
|
|
11
|
+
nodeRef?: React.RefObject<HTMLElement | null>;
|
|
12
|
+
enterFromClass?: string;
|
|
13
|
+
enterActiveClass?: string;
|
|
14
|
+
enterToClass?: string;
|
|
15
|
+
leaveFromClass?: string;
|
|
16
|
+
leaveActiveClass?: string;
|
|
17
|
+
leaveToClass?: string;
|
|
18
|
+
onBeforeEnter?: (el: HTMLElement) => void;
|
|
19
|
+
onEnter?: (el: HTMLElement) => void;
|
|
20
|
+
onAfterEnter?: (el: HTMLElement) => void;
|
|
21
|
+
onBeforeLeave?: (el: HTMLElement) => void;
|
|
22
|
+
onLeave?: (el: HTMLElement) => void;
|
|
23
|
+
onAfterLeave?: (el: HTMLElement) => void;
|
|
24
|
+
children: ReactElement;
|
|
25
|
+
}
|
|
26
|
+
export declare const Transition: React.ForwardRefExoticComponent<TransitionProps & React.RefAttributes<HTMLElement>>;
|
|
27
|
+
export default Transition;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { default as React, ReactElement } from 'react';
|
|
2
|
+
export interface TransitionProps {
|
|
3
|
+
show?: boolean;
|
|
4
|
+
name?: string;
|
|
5
|
+
appear?: boolean;
|
|
6
|
+
timeout?: number | {
|
|
7
|
+
appear?: number;
|
|
8
|
+
enter?: number;
|
|
9
|
+
exit?: number;
|
|
10
|
+
};
|
|
11
|
+
nodeRef?: React.RefObject<HTMLElement | null>;
|
|
12
|
+
enterFromClass?: string;
|
|
13
|
+
enterActiveClass?: string;
|
|
14
|
+
enterToClass?: string;
|
|
15
|
+
leaveFromClass?: string;
|
|
16
|
+
leaveActiveClass?: string;
|
|
17
|
+
leaveToClass?: string;
|
|
18
|
+
onBeforeEnter?: (el: HTMLElement) => void;
|
|
19
|
+
onEnter?: (el: HTMLElement) => void;
|
|
20
|
+
onAfterEnter?: (el: HTMLElement) => void;
|
|
21
|
+
onBeforeLeave?: (el: HTMLElement) => void;
|
|
22
|
+
onLeave?: (el: HTMLElement) => void;
|
|
23
|
+
onAfterLeave?: (el: HTMLElement) => void;
|
|
24
|
+
children: ReactElement;
|
|
25
|
+
}
|
|
26
|
+
export declare const Transition: React.ForwardRefExoticComponent<TransitionProps & React.RefAttributes<HTMLElement>>;
|
|
27
|
+
export default Transition;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IconType } from '../icon/index.cjs';
|
|
3
|
+
export interface BreadcrumbItemProps extends React.HTMLAttributes<HTMLLIElement> {
|
|
4
|
+
href?: string;
|
|
5
|
+
target?: string;
|
|
6
|
+
rel?: string;
|
|
7
|
+
icon?: IconType[] | React.ReactNode;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
declare const BreadcrumbItem: React.FC<BreadcrumbItemProps>;
|
|
11
|
+
export default BreadcrumbItem;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IconType } from '../icon/index.js';
|
|
3
|
+
export interface BreadcrumbItemProps extends React.HTMLAttributes<HTMLLIElement> {
|
|
4
|
+
href?: string;
|
|
5
|
+
target?: string;
|
|
6
|
+
rel?: string;
|
|
7
|
+
icon?: IconType[] | React.ReactNode;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
declare const BreadcrumbItem: React.FC<BreadcrumbItemProps>;
|
|
11
|
+
export default BreadcrumbItem;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface BreadcrumbProps extends React.HTMLAttributes<HTMLElement> {
|
|
3
|
+
separator?: React.ReactNode;
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
declare const Breadcrumb: React.FC<BreadcrumbProps>;
|
|
7
|
+
export default Breadcrumb;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface BreadcrumbProps extends React.HTMLAttributes<HTMLElement> {
|
|
3
|
+
separator?: React.ReactNode;
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
declare const Breadcrumb: React.FC<BreadcrumbProps>;
|
|
7
|
+
export default Breadcrumb;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as Breadcrumb } from './breadcrumb.cjs';
|
|
2
|
+
import { default as BreadcrumbItem } from './breadcrumb-item.cjs';
|
|
3
|
+
export type { BreadcrumbProps } from './breadcrumb.cjs';
|
|
4
|
+
export type { BreadcrumbItemProps } from './breadcrumb-item.cjs';
|
|
5
|
+
export { Breadcrumb, BreadcrumbItem };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as Breadcrumb } from './breadcrumb.js';
|
|
2
|
+
import { default as BreadcrumbItem } from './breadcrumb-item.js';
|
|
3
|
+
export type { BreadcrumbProps } from './breadcrumb.js';
|
|
4
|
+
export type { BreadcrumbItemProps } from './breadcrumb-item.js';
|
|
5
|
+
export { Breadcrumb, BreadcrumbItem };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ShapeType, SizeType } from '../const/types.cjs';
|
|
3
|
+
export interface ButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
size?: SizeType;
|
|
5
|
+
shape?: ShapeType;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare const ButtonGroup: React.FC<ButtonGroupProps>;
|
|
9
|
+
export default ButtonGroup;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ShapeType, SizeType } from '../const/types.js';
|
|
3
|
+
export interface ButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
size?: SizeType;
|
|
5
|
+
shape?: ShapeType;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare const ButtonGroup: React.FC<ButtonGroupProps>;
|
|
9
|
+
export default ButtonGroup;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ButtonType, ShapeType, SizeType, ThemeType } from '../const/types.cjs';
|
|
3
|
+
import { IconType } from '../icon/index.cjs';
|
|
4
|
+
export interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick"> {
|
|
5
|
+
htmlType?: "button" | "submit" | "reset";
|
|
6
|
+
icon?: IconType[];
|
|
7
|
+
block?: boolean;
|
|
8
|
+
size?: SizeType;
|
|
9
|
+
color?: string;
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
type?: ButtonType;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
theme?: ThemeType;
|
|
14
|
+
shape?: ShapeType;
|
|
15
|
+
href?: string;
|
|
16
|
+
target?: string;
|
|
17
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
18
|
+
}
|
|
19
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
20
|
+
export default Button;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ButtonType, ShapeType, SizeType, ThemeType } from '../const/types.js';
|
|
3
|
+
import { IconType } from '../icon/index.js';
|
|
4
|
+
export interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick"> {
|
|
5
|
+
htmlType?: "button" | "submit" | "reset";
|
|
6
|
+
icon?: IconType[];
|
|
7
|
+
block?: boolean;
|
|
8
|
+
size?: SizeType;
|
|
9
|
+
color?: string;
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
type?: ButtonType;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
theme?: ThemeType;
|
|
14
|
+
shape?: ShapeType;
|
|
15
|
+
href?: string;
|
|
16
|
+
target?: string;
|
|
17
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
18
|
+
}
|
|
19
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
20
|
+
export default Button;
|