@aithe/aithe-ui 26.2.2
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/LICENSE +21 -0
- package/README.md +466 -0
- package/dist/apps/api/app.d.ts +24 -0
- package/dist/apps/api/app.d.ts.map +1 -0
- package/dist/apps/api/demo-data.d.ts +3 -0
- package/dist/apps/api/demo-data.d.ts.map +1 -0
- package/dist/apps/api/docs-viewer.d.ts +54 -0
- package/dist/apps/api/docs-viewer.d.ts.map +1 -0
- package/dist/apps/api/i18n/en-US.d.ts +7 -0
- package/dist/apps/api/i18n/en-US.d.ts.map +1 -0
- package/dist/apps/api/i18n/index.d.ts +2 -0
- package/dist/apps/api/i18n/index.d.ts.map +1 -0
- package/dist/apps/api/i18n/zh-CN.d.ts +7 -0
- package/dist/apps/api/i18n/zh-CN.d.ts.map +1 -0
- package/dist/apps/api/index.html +13 -0
- package/dist/apps/api/pages/docs.d.ts +11 -0
- package/dist/apps/api/pages/docs.d.ts.map +1 -0
- package/dist/apps/api/standalone.d.ts +2 -0
- package/dist/apps/api/standalone.d.ts.map +1 -0
- package/dist/apps/demo/app.d.ts +28 -0
- package/dist/apps/demo/app.d.ts.map +1 -0
- package/dist/apps/demo/editor.d.ts +28 -0
- package/dist/apps/demo/editor.d.ts.map +1 -0
- package/dist/apps/demo/helpers.d.ts +2 -0
- package/dist/apps/demo/helpers.d.ts.map +1 -0
- package/dist/apps/demo/i18n/en-US.d.ts +7 -0
- package/dist/apps/demo/i18n/en-US.d.ts.map +1 -0
- package/dist/apps/demo/i18n/en.d.ts +3 -0
- package/dist/apps/demo/i18n/en.d.ts.map +1 -0
- package/dist/apps/demo/i18n/index.d.ts +2 -0
- package/dist/apps/demo/i18n/index.d.ts.map +1 -0
- package/dist/apps/demo/i18n/zh-CN.d.ts +7 -0
- package/dist/apps/demo/i18n/zh-CN.d.ts.map +1 -0
- package/dist/apps/demo/i18n/zh.d.ts +3 -0
- package/dist/apps/demo/i18n/zh.d.ts.map +1 -0
- package/dist/apps/demo/index.html +13 -0
- package/dist/apps/demo/pages/basic.d.ts +3 -0
- package/dist/apps/demo/pages/basic.d.ts.map +1 -0
- package/dist/apps/demo/pages/container.d.ts +3 -0
- package/dist/apps/demo/pages/container.d.ts.map +1 -0
- package/dist/apps/demo/pages/data.d.ts +3 -0
- package/dist/apps/demo/pages/data.d.ts.map +1 -0
- package/dist/apps/demo/pages/display.d.ts +3 -0
- package/dist/apps/demo/pages/display.d.ts.map +1 -0
- package/dist/apps/demo/pages/feedback.d.ts +3 -0
- package/dist/apps/demo/pages/feedback.d.ts.map +1 -0
- package/dist/apps/demo/pages/form.d.ts +3 -0
- package/dist/apps/demo/pages/form.d.ts.map +1 -0
- package/dist/apps/demo/pages/layout.d.ts +3 -0
- package/dist/apps/demo/pages/layout.d.ts.map +1 -0
- package/dist/apps/demo/pages/navigation.d.ts +3 -0
- package/dist/apps/demo/pages/navigation.d.ts.map +1 -0
- package/dist/apps/demo/pages/progress.d.ts +3 -0
- package/dist/apps/demo/pages/progress.d.ts.map +1 -0
- package/dist/apps/demo/pages/theme.d.ts +3 -0
- package/dist/apps/demo/pages/theme.d.ts.map +1 -0
- package/dist/apps/demo/standalone.d.ts +2 -0
- package/dist/apps/demo/standalone.d.ts.map +1 -0
- package/dist/base/aithe-element.d.ts +29 -0
- package/dist/base/aithe-element.d.ts.map +1 -0
- package/dist/components/avatar/avatar.d.ts +13 -0
- package/dist/components/avatar/avatar.d.ts.map +1 -0
- package/dist/components/badge/badge.d.ts +14 -0
- package/dist/components/badge/badge.d.ts.map +1 -0
- package/dist/components/basic/avatar.d.ts +13 -0
- package/dist/components/basic/avatar.d.ts.map +1 -0
- package/dist/components/basic/badge.d.ts +14 -0
- package/dist/components/basic/badge.d.ts.map +1 -0
- package/dist/components/basic/button-group.d.ts +11 -0
- package/dist/components/basic/button-group.d.ts.map +1 -0
- package/dist/components/basic/button.d.ts +13 -0
- package/dist/components/basic/button.d.ts.map +1 -0
- package/dist/components/basic/card.d.ts +18 -0
- package/dist/components/basic/card.d.ts.map +1 -0
- package/dist/components/basic/chip.d.ts +13 -0
- package/dist/components/basic/chip.d.ts.map +1 -0
- package/dist/components/basic/divider.d.ts +9 -0
- package/dist/components/basic/divider.d.ts.map +1 -0
- package/dist/components/basic/empty.d.ts +12 -0
- package/dist/components/basic/empty.d.ts.map +1 -0
- package/dist/components/basic/icon.d.ts +12 -0
- package/dist/components/basic/icon.d.ts.map +1 -0
- package/dist/components/basic/input.d.ts +28 -0
- package/dist/components/basic/input.d.ts.map +1 -0
- package/dist/components/basic/tag.d.ts +14 -0
- package/dist/components/basic/tag.d.ts.map +1 -0
- package/dist/components/basic/textarea.d.ts +18 -0
- package/dist/components/basic/textarea.d.ts.map +1 -0
- package/dist/components/breadcrumb/breadcrumb-item.d.ts +11 -0
- package/dist/components/breadcrumb/breadcrumb-item.d.ts.map +1 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +9 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts.map +1 -0
- package/dist/components/button/button.d.ts +13 -0
- package/dist/components/button/button.d.ts.map +1 -0
- package/dist/components/card/card.d.ts +18 -0
- package/dist/components/card/card.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox-group.d.ts +17 -0
- package/dist/components/checkbox/checkbox-group.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.d.ts +15 -0
- package/dist/components/checkbox/checkbox.d.ts.map +1 -0
- package/dist/components/container/callout.d.ts +11 -0
- package/dist/components/container/callout.d.ts.map +1 -0
- package/dist/components/container/details.d.ts +13 -0
- package/dist/components/container/details.d.ts.map +1 -0
- package/dist/components/container/scroller.d.ts +16 -0
- package/dist/components/container/scroller.d.ts.map +1 -0
- package/dist/components/container/split-panel.d.ts +20 -0
- package/dist/components/container/split-panel.d.ts.map +1 -0
- package/dist/components/data/pagination.d.ts +15 -0
- package/dist/components/data/pagination.d.ts.map +1 -0
- package/dist/components/data/tab-group.d.ts +8 -0
- package/dist/components/data/tab-group.d.ts.map +1 -0
- package/dist/components/data/tab-pane.d.ts +11 -0
- package/dist/components/data/tab-pane.d.ts.map +1 -0
- package/dist/components/data/table.d.ts +30 -0
- package/dist/components/data/table.d.ts.map +1 -0
- package/dist/components/data/tabs.d.ts +17 -0
- package/dist/components/data/tabs.d.ts.map +1 -0
- package/dist/components/data/tree.d.ts +21 -0
- package/dist/components/data/tree.d.ts.map +1 -0
- package/dist/components/display/animated-image.d.ts +13 -0
- package/dist/components/display/animated-image.d.ts.map +1 -0
- package/dist/components/display/carousel.d.ts +23 -0
- package/dist/components/display/carousel.d.ts.map +1 -0
- package/dist/components/display/comparison.d.ts +12 -0
- package/dist/components/display/comparison.d.ts.map +1 -0
- package/dist/components/display/markdown.d.ts +11 -0
- package/dist/components/display/markdown.d.ts.map +1 -0
- package/dist/components/divider/divider.d.ts +9 -0
- package/dist/components/divider/divider.d.ts.map +1 -0
- package/dist/components/drawer/drawer.d.ts +29 -0
- package/dist/components/drawer/drawer.d.ts.map +1 -0
- package/dist/components/dropdown/dropdown.d.ts +34 -0
- package/dist/components/dropdown/dropdown.d.ts.map +1 -0
- package/dist/components/feedback/alert.d.ts +15 -0
- package/dist/components/feedback/alert.d.ts.map +1 -0
- package/dist/components/feedback/dialog.d.ts +20 -0
- package/dist/components/feedback/dialog.d.ts.map +1 -0
- package/dist/components/feedback/drawer.d.ts +29 -0
- package/dist/components/feedback/drawer.d.ts.map +1 -0
- package/dist/components/feedback/dropdown.d.ts +34 -0
- package/dist/components/feedback/dropdown.d.ts.map +1 -0
- package/dist/components/feedback/loading.d.ts +13 -0
- package/dist/components/feedback/loading.d.ts.map +1 -0
- package/dist/components/feedback/modal.d.ts +28 -0
- package/dist/components/feedback/modal.d.ts.map +1 -0
- package/dist/components/feedback/notification.d.ts +20 -0
- package/dist/components/feedback/notification.d.ts.map +1 -0
- package/dist/components/feedback/popover.d.ts +16 -0
- package/dist/components/feedback/popover.d.ts.map +1 -0
- package/dist/components/feedback/toast.d.ts +18 -0
- package/dist/components/feedback/toast.d.ts.map +1 -0
- package/dist/components/feedback/tooltip.d.ts +18 -0
- package/dist/components/feedback/tooltip.d.ts.map +1 -0
- package/dist/components/form/checkbox-group.d.ts +17 -0
- package/dist/components/form/checkbox-group.d.ts.map +1 -0
- package/dist/components/form/checkbox.d.ts +15 -0
- package/dist/components/form/checkbox.d.ts.map +1 -0
- package/dist/components/form/color-picker.d.ts +17 -0
- package/dist/components/form/color-picker.d.ts.map +1 -0
- package/dist/components/form/combobox.d.ts +22 -0
- package/dist/components/form/combobox.d.ts.map +1 -0
- package/dist/components/form/date-picker.d.ts +15 -0
- package/dist/components/form/date-picker.d.ts.map +1 -0
- package/dist/components/form/form-item.d.ts +15 -0
- package/dist/components/form/form-item.d.ts.map +1 -0
- package/dist/components/form/form.d.ts +14 -0
- package/dist/components/form/form.d.ts.map +1 -0
- package/dist/components/form/radio-group.d.ts +15 -0
- package/dist/components/form/radio-group.d.ts.map +1 -0
- package/dist/components/form/radio.d.ts +12 -0
- package/dist/components/form/radio.d.ts.map +1 -0
- package/dist/components/form/rate.d.ts +14 -0
- package/dist/components/form/rate.d.ts.map +1 -0
- package/dist/components/form/select.d.ts +35 -0
- package/dist/components/form/select.d.ts.map +1 -0
- package/dist/components/form/slider.d.ts +17 -0
- package/dist/components/form/slider.d.ts.map +1 -0
- package/dist/components/form/switch.d.ts +12 -0
- package/dist/components/form/switch.d.ts.map +1 -0
- package/dist/components/form/time-picker.d.ts +13 -0
- package/dist/components/form/time-picker.d.ts.map +1 -0
- package/dist/components/form/transfer.d.ts +24 -0
- package/dist/components/form/transfer.d.ts.map +1 -0
- package/dist/components/form/upload.d.ts +16 -0
- package/dist/components/form/upload.d.ts.map +1 -0
- package/dist/components/input/input.d.ts +28 -0
- package/dist/components/input/input.d.ts.map +1 -0
- package/dist/components/layout/affix.d.ts +23 -0
- package/dist/components/layout/affix.d.ts.map +1 -0
- package/dist/components/layout/col.d.ts +17 -0
- package/dist/components/layout/col.d.ts.map +1 -0
- package/dist/components/layout/collapse-item.d.ts +15 -0
- package/dist/components/layout/collapse-item.d.ts.map +1 -0
- package/dist/components/layout/collapse.d.ts +18 -0
- package/dist/components/layout/collapse.d.ts.map +1 -0
- package/dist/components/layout/container.d.ts +15 -0
- package/dist/components/layout/container.d.ts.map +1 -0
- package/dist/components/layout/flex.d.ts +15 -0
- package/dist/components/layout/flex.d.ts.map +1 -0
- package/dist/components/layout/page-container.d.ts +11 -0
- package/dist/components/layout/page-container.d.ts.map +1 -0
- package/dist/components/layout/page.d.ts +8 -0
- package/dist/components/layout/page.d.ts.map +1 -0
- package/dist/components/layout/row.d.ts +13 -0
- package/dist/components/layout/row.d.ts.map +1 -0
- package/dist/components/layout/space.d.ts +13 -0
- package/dist/components/layout/space.d.ts.map +1 -0
- package/dist/components/layout/timeline-item.d.ts +12 -0
- package/dist/components/layout/timeline-item.d.ts.map +1 -0
- package/dist/components/layout/timeline.d.ts +12 -0
- package/dist/components/layout/timeline.d.ts.map +1 -0
- package/dist/components/modal/modal.d.ts +28 -0
- package/dist/components/modal/modal.d.ts.map +1 -0
- package/dist/components/navigation/back-top.d.ts +21 -0
- package/dist/components/navigation/back-top.d.ts.map +1 -0
- package/dist/components/navigation/breadcrumb-item.d.ts +11 -0
- package/dist/components/navigation/breadcrumb-item.d.ts.map +1 -0
- package/dist/components/navigation/breadcrumb.d.ts +9 -0
- package/dist/components/navigation/breadcrumb.d.ts.map +1 -0
- package/dist/components/navigation/menu-item.d.ts +16 -0
- package/dist/components/navigation/menu-item.d.ts.map +1 -0
- package/dist/components/navigation/menu.d.ts +18 -0
- package/dist/components/navigation/menu.d.ts.map +1 -0
- package/dist/components/navigation/steps.d.ts +14 -0
- package/dist/components/navigation/steps.d.ts.map +1 -0
- package/dist/components/navigation/sub-menu.d.ts +18 -0
- package/dist/components/navigation/sub-menu.d.ts.map +1 -0
- package/dist/components/popover/popover.d.ts +16 -0
- package/dist/components/popover/popover.d.ts.map +1 -0
- package/dist/components/progress/progress-bar.d.ts +12 -0
- package/dist/components/progress/progress-bar.d.ts.map +1 -0
- package/dist/components/progress/progress-ring.d.ts +13 -0
- package/dist/components/progress/progress-ring.d.ts.map +1 -0
- package/dist/components/progress/skeleton.d.ts +13 -0
- package/dist/components/progress/skeleton.d.ts.map +1 -0
- package/dist/components/progress/spinner.d.ts +12 -0
- package/dist/components/progress/spinner.d.ts.map +1 -0
- package/dist/components/radio/radio-group.d.ts +15 -0
- package/dist/components/radio/radio-group.d.ts.map +1 -0
- package/dist/components/radio/radio.d.ts +12 -0
- package/dist/components/radio/radio.d.ts.map +1 -0
- package/dist/components/select/select.d.ts +35 -0
- package/dist/components/select/select.d.ts.map +1 -0
- package/dist/components/switch/switch.d.ts +12 -0
- package/dist/components/switch/switch.d.ts.map +1 -0
- package/dist/components/table/table.d.ts +30 -0
- package/dist/components/table/table.d.ts.map +1 -0
- package/dist/components/tabs/tab-pane.d.ts +11 -0
- package/dist/components/tabs/tab-pane.d.ts.map +1 -0
- package/dist/components/tabs/tabs.d.ts +15 -0
- package/dist/components/tabs/tabs.d.ts.map +1 -0
- package/dist/components/tag/tag.d.ts +14 -0
- package/dist/components/tag/tag.d.ts.map +1 -0
- package/dist/components/tooltip/tooltip.d.ts +18 -0
- package/dist/components/tooltip/tooltip.d.ts.map +1 -0
- package/dist/core/aithe-element.d.ts +2 -0
- package/dist/core/aithe-element.d.ts.map +1 -0
- package/dist/core/anchored-overlay.d.ts +17 -0
- package/dist/core/anchored-overlay.d.ts.map +1 -0
- package/dist/core/floating.d.ts +12 -0
- package/dist/core/floating.d.ts.map +1 -0
- package/dist/core/styles.d.ts +8 -0
- package/dist/core/styles.d.ts.map +1 -0
- package/dist/core/types.d.ts +33 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/core/utils.d.ts +6 -0
- package/dist/core/utils.d.ts.map +1 -0
- package/dist/demo/app.d.ts +19 -0
- package/dist/demo/app.d.ts.map +1 -0
- package/dist/demo/editor.d.ts +28 -0
- package/dist/demo/editor.d.ts.map +1 -0
- package/dist/demo/helpers.d.ts +2 -0
- package/dist/demo/helpers.d.ts.map +1 -0
- package/dist/demo/pages/basic.d.ts +3 -0
- package/dist/demo/pages/basic.d.ts.map +1 -0
- package/dist/demo/pages/container.d.ts +3 -0
- package/dist/demo/pages/container.d.ts.map +1 -0
- package/dist/demo/pages/data.d.ts +3 -0
- package/dist/demo/pages/data.d.ts.map +1 -0
- package/dist/demo/pages/display.d.ts +3 -0
- package/dist/demo/pages/display.d.ts.map +1 -0
- package/dist/demo/pages/feedback.d.ts +3 -0
- package/dist/demo/pages/feedback.d.ts.map +1 -0
- package/dist/demo/pages/form.d.ts +3 -0
- package/dist/demo/pages/form.d.ts.map +1 -0
- package/dist/demo/pages/layout.d.ts +3 -0
- package/dist/demo/pages/layout.d.ts.map +1 -0
- package/dist/demo/pages/navigation.d.ts +3 -0
- package/dist/demo/pages/navigation.d.ts.map +1 -0
- package/dist/demo/pages/progress.d.ts +3 -0
- package/dist/demo/pages/progress.d.ts.map +1 -0
- package/dist/demo/standalone.d.ts +2 -0
- package/dist/demo/standalone.d.ts.map +1 -0
- package/dist/demo-page.d.ts +2 -0
- package/dist/demo-page.d.ts.map +1 -0
- package/dist/demo.d.ts +2 -0
- package/dist/demo.d.ts.map +1 -0
- package/dist/global.d.ts +5 -0
- package/dist/global.d.ts.map +1 -0
- package/dist/index-jd7NIlfT.js +9798 -0
- package/dist/index-jd7NIlfT.js.map +1 -0
- package/dist/index.d.ts +80 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9728 -0
- package/dist/index.js.map +1 -0
- package/dist/index.umd.js +7189 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/index2.js +9892 -0
- package/dist/index2.js.map +1 -0
- package/dist/src/base/aithe-element.d.ts +59 -0
- package/dist/src/base/aithe-element.d.ts.map +1 -0
- package/dist/src/components/basic/avatar.d.ts +31 -0
- package/dist/src/components/basic/avatar.d.ts.map +1 -0
- package/dist/src/components/basic/badge.d.ts +33 -0
- package/dist/src/components/basic/badge.d.ts.map +1 -0
- package/dist/src/components/basic/button-group.d.ts +23 -0
- package/dist/src/components/basic/button-group.d.ts.map +1 -0
- package/dist/src/components/basic/button.d.ts +44 -0
- package/dist/src/components/basic/button.d.ts.map +1 -0
- package/dist/src/components/basic/card.d.ts +38 -0
- package/dist/src/components/basic/card.d.ts.map +1 -0
- package/dist/src/components/basic/chip.d.ts +26 -0
- package/dist/src/components/basic/chip.d.ts.map +1 -0
- package/dist/src/components/basic/divider.d.ts +23 -0
- package/dist/src/components/basic/divider.d.ts.map +1 -0
- package/dist/src/components/basic/empty.d.ts +21 -0
- package/dist/src/components/basic/empty.d.ts.map +1 -0
- package/dist/src/components/basic/icon.d.ts +60 -0
- package/dist/src/components/basic/icon.d.ts.map +1 -0
- package/dist/src/components/basic/input.d.ts +57 -0
- package/dist/src/components/basic/input.d.ts.map +1 -0
- package/dist/src/components/basic/tag.d.ts +34 -0
- package/dist/src/components/basic/tag.d.ts.map +1 -0
- package/dist/src/components/basic/textarea.d.ts +34 -0
- package/dist/src/components/basic/textarea.d.ts.map +1 -0
- package/dist/src/components/container/callout.d.ts +23 -0
- package/dist/src/components/container/callout.d.ts.map +1 -0
- package/dist/src/components/container/details.d.ts +29 -0
- package/dist/src/components/container/details.d.ts.map +1 -0
- package/dist/src/components/container/scroller.d.ts +32 -0
- package/dist/src/components/container/scroller.d.ts.map +1 -0
- package/dist/src/components/container/split-panel.d.ts +38 -0
- package/dist/src/components/container/split-panel.d.ts.map +1 -0
- package/dist/src/components/data/pagination.d.ts +27 -0
- package/dist/src/components/data/pagination.d.ts.map +1 -0
- package/dist/src/components/data/tab-pane.d.ts +33 -0
- package/dist/src/components/data/tab-pane.d.ts.map +1 -0
- package/dist/src/components/data/table-column.d.ts +46 -0
- package/dist/src/components/data/table-column.d.ts.map +1 -0
- package/dist/src/components/data/table.d.ts +88 -0
- package/dist/src/components/data/table.d.ts.map +1 -0
- package/dist/src/components/data/tabs.d.ts +38 -0
- package/dist/src/components/data/tabs.d.ts.map +1 -0
- package/dist/src/components/data/timeline-item.d.ts +24 -0
- package/dist/src/components/data/timeline-item.d.ts.map +1 -0
- package/dist/src/components/data/timeline.d.ts +49 -0
- package/dist/src/components/data/timeline.d.ts.map +1 -0
- package/dist/src/components/data/tree-menu.d.ts +43 -0
- package/dist/src/components/data/tree-menu.d.ts.map +1 -0
- package/dist/src/components/data/tree.d.ts +45 -0
- package/dist/src/components/data/tree.d.ts.map +1 -0
- package/dist/src/components/display/animated-image.d.ts +25 -0
- package/dist/src/components/display/animated-image.d.ts.map +1 -0
- package/dist/src/components/display/carousel.d.ts +41 -0
- package/dist/src/components/display/carousel.d.ts.map +1 -0
- package/dist/src/components/display/comparison.d.ts +24 -0
- package/dist/src/components/display/comparison.d.ts.map +1 -0
- package/dist/src/components/display/markdown.d.ts +19 -0
- package/dist/src/components/display/markdown.d.ts.map +1 -0
- package/dist/src/components/feedback/alert.d.ts +32 -0
- package/dist/src/components/feedback/alert.d.ts.map +1 -0
- package/dist/src/components/feedback/dialog.d.ts +42 -0
- package/dist/src/components/feedback/dialog.d.ts.map +1 -0
- package/dist/src/components/feedback/drawer.d.ts +59 -0
- package/dist/src/components/feedback/drawer.d.ts.map +1 -0
- package/dist/src/components/feedback/dropdown.d.ts +70 -0
- package/dist/src/components/feedback/dropdown.d.ts.map +1 -0
- package/dist/src/components/feedback/loading.d.ts +27 -0
- package/dist/src/components/feedback/loading.d.ts.map +1 -0
- package/dist/src/components/feedback/modal.d.ts +58 -0
- package/dist/src/components/feedback/modal.d.ts.map +1 -0
- package/dist/src/components/feedback/notification.d.ts +35 -0
- package/dist/src/components/feedback/notification.d.ts.map +1 -0
- package/dist/src/components/feedback/popover.d.ts +35 -0
- package/dist/src/components/feedback/popover.d.ts.map +1 -0
- package/dist/src/components/feedback/toast.d.ts +35 -0
- package/dist/src/components/feedback/toast.d.ts.map +1 -0
- package/dist/src/components/feedback/tooltip.d.ts +41 -0
- package/dist/src/components/feedback/tooltip.d.ts.map +1 -0
- package/dist/src/components/form/checkbox-group.d.ts +38 -0
- package/dist/src/components/form/checkbox-group.d.ts.map +1 -0
- package/dist/src/components/form/checkbox.d.ts +35 -0
- package/dist/src/components/form/checkbox.d.ts.map +1 -0
- package/dist/src/components/form/color-picker.d.ts +32 -0
- package/dist/src/components/form/color-picker.d.ts.map +1 -0
- package/dist/src/components/form/combobox.d.ts +45 -0
- package/dist/src/components/form/combobox.d.ts.map +1 -0
- package/dist/src/components/form/date-picker.d.ts +30 -0
- package/dist/src/components/form/date-picker.d.ts.map +1 -0
- package/dist/src/components/form/form-item.d.ts +34 -0
- package/dist/src/components/form/form-item.d.ts.map +1 -0
- package/dist/src/components/form/form.d.ts +32 -0
- package/dist/src/components/form/form.d.ts.map +1 -0
- package/dist/src/components/form/radio-group.d.ts +34 -0
- package/dist/src/components/form/radio-group.d.ts.map +1 -0
- package/dist/src/components/form/radio.d.ts +30 -0
- package/dist/src/components/form/radio.d.ts.map +1 -0
- package/dist/src/components/form/rate.d.ts +27 -0
- package/dist/src/components/form/rate.d.ts.map +1 -0
- package/dist/src/components/form/select.d.ts +74 -0
- package/dist/src/components/form/select.d.ts.map +1 -0
- package/dist/src/components/form/slider.d.ts +33 -0
- package/dist/src/components/form/slider.d.ts.map +1 -0
- package/dist/src/components/form/switch.d.ts +28 -0
- package/dist/src/components/form/switch.d.ts.map +1 -0
- package/dist/src/components/form/time-picker.d.ts +26 -0
- package/dist/src/components/form/time-picker.d.ts.map +1 -0
- package/dist/src/components/form/transfer.d.ts +42 -0
- package/dist/src/components/form/transfer.d.ts.map +1 -0
- package/dist/src/components/form/upload.d.ts +34 -0
- package/dist/src/components/form/upload.d.ts.map +1 -0
- package/dist/src/components/layout/affix.d.ts +35 -0
- package/dist/src/components/layout/affix.d.ts.map +1 -0
- package/dist/src/components/layout/col.d.ts +32 -0
- package/dist/src/components/layout/col.d.ts.map +1 -0
- package/dist/src/components/layout/collapse-item.d.ts +31 -0
- package/dist/src/components/layout/collapse-item.d.ts.map +1 -0
- package/dist/src/components/layout/collapse.d.ts +31 -0
- package/dist/src/components/layout/collapse.d.ts.map +1 -0
- package/dist/src/components/layout/container.d.ts +30 -0
- package/dist/src/components/layout/container.d.ts.map +1 -0
- package/dist/src/components/layout/flex.d.ts +31 -0
- package/dist/src/components/layout/flex.d.ts.map +1 -0
- package/dist/src/components/layout/page-container.d.ts +22 -0
- package/dist/src/components/layout/page-container.d.ts.map +1 -0
- package/dist/src/components/layout/page.d.ts +26 -0
- package/dist/src/components/layout/page.d.ts.map +1 -0
- package/dist/src/components/layout/row.d.ts +27 -0
- package/dist/src/components/layout/row.d.ts.map +1 -0
- package/dist/src/components/layout/space.d.ts +27 -0
- package/dist/src/components/layout/space.d.ts.map +1 -0
- package/dist/src/components/layout/timeline-item.d.ts +24 -0
- package/dist/src/components/layout/timeline-item.d.ts.map +1 -0
- package/dist/src/components/layout/timeline.d.ts +49 -0
- package/dist/src/components/layout/timeline.d.ts.map +1 -0
- package/dist/src/components/navigation/back-top.d.ts +30 -0
- package/dist/src/components/navigation/back-top.d.ts.map +1 -0
- package/dist/src/components/navigation/breadcrumb-item.d.ts +26 -0
- package/dist/src/components/navigation/breadcrumb-item.d.ts.map +1 -0
- package/dist/src/components/navigation/breadcrumb.d.ts +24 -0
- package/dist/src/components/navigation/breadcrumb.d.ts.map +1 -0
- package/dist/src/components/navigation/dropdown.d.ts +70 -0
- package/dist/src/components/navigation/dropdown.d.ts.map +1 -0
- package/dist/src/components/navigation/menu-item.d.ts +33 -0
- package/dist/src/components/navigation/menu-item.d.ts.map +1 -0
- package/dist/src/components/navigation/menu.d.ts +35 -0
- package/dist/src/components/navigation/menu.d.ts.map +1 -0
- package/dist/src/components/navigation/steps.d.ts +31 -0
- package/dist/src/components/navigation/steps.d.ts.map +1 -0
- package/dist/src/components/navigation/sub-menu.d.ts +37 -0
- package/dist/src/components/navigation/sub-menu.d.ts.map +1 -0
- package/dist/src/components/navigation/theme-picker.d.ts +27 -0
- package/dist/src/components/navigation/theme-picker.d.ts.map +1 -0
- package/dist/src/components/progress/progress-bar.d.ts +21 -0
- package/dist/src/components/progress/progress-bar.d.ts.map +1 -0
- package/dist/src/components/progress/progress-ring.d.ts +23 -0
- package/dist/src/components/progress/progress-ring.d.ts.map +1 -0
- package/dist/src/components/progress/skeleton.d.ts +28 -0
- package/dist/src/components/progress/skeleton.d.ts.map +1 -0
- package/dist/src/components/progress/spinner.d.ts +21 -0
- package/dist/src/components/progress/spinner.d.ts.map +1 -0
- package/dist/src/components/theme/locale-switch.d.ts +24 -0
- package/dist/src/components/theme/locale-switch.d.ts.map +1 -0
- package/dist/src/components/theme/theme-picker.d.ts +43 -0
- package/dist/src/components/theme/theme-picker.d.ts.map +1 -0
- package/dist/src/components/theme/theme-preview.d.ts +29 -0
- package/dist/src/components/theme/theme-preview.d.ts.map +1 -0
- package/dist/src/core/aithe-element.d.ts +2 -0
- package/dist/src/core/aithe-element.d.ts.map +1 -0
- package/dist/src/core/anchored-overlay.d.ts +43 -0
- package/dist/src/core/anchored-overlay.d.ts.map +1 -0
- package/dist/src/core/floating.d.ts +43 -0
- package/dist/src/core/floating.d.ts.map +1 -0
- package/dist/src/core/i18n/index.d.ts +125 -0
- package/dist/src/core/i18n/index.d.ts.map +1 -0
- package/dist/src/core/i18n/locales/en-US.d.ts +7 -0
- package/dist/src/core/i18n/locales/en-US.d.ts.map +1 -0
- package/dist/src/core/i18n/locales/en.d.ts +3 -0
- package/dist/src/core/i18n/locales/en.d.ts.map +1 -0
- package/dist/src/core/i18n/locales/index.d.ts +7 -0
- package/dist/src/core/i18n/locales/index.d.ts.map +1 -0
- package/dist/src/core/i18n/locales/zh-CN.d.ts +7 -0
- package/dist/src/core/i18n/locales/zh-CN.d.ts.map +1 -0
- package/dist/src/core/i18n/locales/zh.d.ts +3 -0
- package/dist/src/core/i18n/locales/zh.d.ts.map +1 -0
- package/dist/src/core/styles.d.ts +17 -0
- package/dist/src/core/styles.d.ts.map +1 -0
- package/dist/src/core/types.d.ts +127 -0
- package/dist/src/core/types.d.ts.map +1 -0
- package/dist/src/core/utils.d.ts +44 -0
- package/dist/src/core/utils.d.ts.map +1 -0
- package/dist/src/global.d.ts +25 -0
- package/dist/src/global.d.ts.map +1 -0
- package/dist/src/index.d.ts +86 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/styles/global.css.d.ts +5 -0
- package/dist/src/styles/global.css.d.ts.map +1 -0
- package/dist/src/styles/mixins.d.ts +9 -0
- package/dist/src/styles/mixins.d.ts.map +1 -0
- package/dist/src/styles/theme/amber.d.ts +3 -0
- package/dist/src/styles/theme/amber.d.ts.map +1 -0
- package/dist/src/styles/theme/blue.d.ts +3 -0
- package/dist/src/styles/theme/blue.d.ts.map +1 -0
- package/dist/src/styles/theme/charcoal.d.ts +3 -0
- package/dist/src/styles/theme/charcoal.d.ts.map +1 -0
- package/dist/src/styles/theme/cyan.d.ts +3 -0
- package/dist/src/styles/theme/cyan.d.ts.map +1 -0
- package/dist/src/styles/theme/dark.d.ts +3 -0
- package/dist/src/styles/theme/dark.d.ts.map +1 -0
- package/dist/src/styles/theme/ebony.d.ts +3 -0
- package/dist/src/styles/theme/ebony.d.ts.map +1 -0
- package/dist/src/styles/theme/festive.d.ts +3 -0
- package/dist/src/styles/theme/festive.d.ts.map +1 -0
- package/dist/src/styles/theme/graphite.d.ts +3 -0
- package/dist/src/styles/theme/graphite.d.ts.map +1 -0
- package/dist/src/styles/theme/gray.d.ts +3 -0
- package/dist/src/styles/theme/gray.d.ts.map +1 -0
- package/dist/src/styles/theme/indigo.d.ts +3 -0
- package/dist/src/styles/theme/indigo.d.ts.map +1 -0
- package/dist/src/styles/theme/ink.d.ts +3 -0
- package/dist/src/styles/theme/ink.d.ts.map +1 -0
- package/dist/src/styles/theme/light.d.ts +3 -0
- package/dist/src/styles/theme/light.d.ts.map +1 -0
- package/dist/src/styles/theme/midnight.d.ts +3 -0
- package/dist/src/styles/theme/midnight.d.ts.map +1 -0
- package/dist/src/styles/theme/navy.d.ts +3 -0
- package/dist/src/styles/theme/navy.d.ts.map +1 -0
- package/dist/src/styles/theme/obsidian.d.ts +3 -0
- package/dist/src/styles/theme/obsidian.d.ts.map +1 -0
- package/dist/src/styles/theme/onyx.d.ts +3 -0
- package/dist/src/styles/theme/onyx.d.ts.map +1 -0
- package/dist/src/styles/theme/orange.d.ts +3 -0
- package/dist/src/styles/theme/orange.d.ts.map +1 -0
- package/dist/src/styles/theme/pink.d.ts +3 -0
- package/dist/src/styles/theme/pink.d.ts.map +1 -0
- package/dist/src/styles/theme/purple.d.ts +3 -0
- package/dist/src/styles/theme/purple.d.ts.map +1 -0
- package/dist/src/styles/theme/raisin.d.ts +3 -0
- package/dist/src/styles/theme/raisin.d.ts.map +1 -0
- package/dist/src/styles/theme/slate.d.ts +3 -0
- package/dist/src/styles/theme/slate.d.ts.map +1 -0
- package/dist/src/styles/theme/teal.d.ts +3 -0
- package/dist/src/styles/theme/teal.d.ts.map +1 -0
- package/dist/src/styles/theme.d.ts +11 -0
- package/dist/src/styles/theme.d.ts.map +1 -0
- package/dist/src/types/component.d.ts +11 -0
- package/dist/src/types/component.d.ts.map +1 -0
- package/dist/src/types/index.d.ts +4 -0
- package/dist/src/types/index.d.ts.map +1 -0
- package/dist/src/types/theme.d.ts +17 -0
- package/dist/src/types/theme.d.ts.map +1 -0
- package/dist/src/utils/dom.d.ts +26 -0
- package/dist/src/utils/dom.d.ts.map +1 -0
- package/dist/src/utils/events.d.ts +11 -0
- package/dist/src/utils/events.d.ts.map +1 -0
- package/dist/src/utils/index.d.ts +6 -0
- package/dist/src/utils/index.d.ts.map +1 -0
- package/dist/src/utils/theme.d.ts +46 -0
- package/dist/src/utils/theme.d.ts.map +1 -0
- package/dist/src/utils/validation.d.ts +30 -0
- package/dist/src/utils/validation.d.ts.map +1 -0
- package/dist/styles/global.css.d.ts +3 -0
- package/dist/styles/global.css.d.ts.map +1 -0
- package/dist/styles/mixins.d.ts +5 -0
- package/dist/styles/mixins.d.ts.map +1 -0
- package/dist/styles/theme/blue.d.ts +2 -0
- package/dist/styles/theme/blue.d.ts.map +1 -0
- package/dist/styles/theme/dark.d.ts +2 -0
- package/dist/styles/theme/dark.d.ts.map +1 -0
- package/dist/styles/theme/gray.d.ts +2 -0
- package/dist/styles/theme/gray.d.ts.map +1 -0
- package/dist/styles/theme/light.d.ts +2 -0
- package/dist/styles/theme/light.d.ts.map +1 -0
- package/dist/styles/theme.d.ts +3 -0
- package/dist/styles/theme.d.ts.map +1 -0
- package/dist/types/component.d.ts +11 -0
- package/dist/types/component.d.ts.map +1 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/theme.d.ts +17 -0
- package/dist/types/theme.d.ts.map +1 -0
- package/dist/utils/dom.d.ts +4 -0
- package/dist/utils/dom.d.ts.map +1 -0
- package/dist/utils/events.d.ts +2 -0
- package/dist/utils/events.d.ts.map +1 -0
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/theme.d.ts +9 -0
- package/dist/utils/theme.d.ts.map +1 -0
- package/dist/utils/validation.d.ts +4 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/docs/api/basic/avatar.md +33 -0
- package/docs/api/basic/badge.md +34 -0
- package/docs/api/basic/button-group.md +32 -0
- package/docs/api/basic/button.md +38 -0
- package/docs/api/basic/card.md +43 -0
- package/docs/api/basic/chip.md +30 -0
- package/docs/api/basic/divider.md +31 -0
- package/docs/api/basic/empty.md +29 -0
- package/docs/api/basic/icon.md +245 -0
- package/docs/api/basic/input.md +43 -0
- package/docs/api/basic/tag.md +34 -0
- package/docs/api/basic/textarea.md +34 -0
- package/docs/api/container/callout.md +30 -0
- package/docs/api/container/details.md +31 -0
- package/docs/api/container/scroller.md +33 -0
- package/docs/api/container/split-panel.md +35 -0
- package/docs/api/data/pagination.md +31 -0
- package/docs/api/data/tab-pane.md +36 -0
- package/docs/api/data/table-column.md +58 -0
- package/docs/api/data/table.md +89 -0
- package/docs/api/data/tabs.md +35 -0
- package/docs/api/data/timeline-item.md +32 -0
- package/docs/api/data/timeline.md +67 -0
- package/docs/api/data/tree-menu.md +58 -0
- package/docs/api/data/tree.md +51 -0
- package/docs/api/display/animated-image.md +31 -0
- package/docs/api/display/carousel.md +35 -0
- package/docs/api/display/comparison.md +31 -0
- package/docs/api/display/markdown.md +29 -0
- package/docs/api/feedback/alert.md +35 -0
- package/docs/api/feedback/dialog.md +37 -0
- package/docs/api/feedback/drawer.md +39 -0
- package/docs/api/feedback/loading.md +34 -0
- package/docs/api/feedback/modal.md +40 -0
- package/docs/api/feedback/notification.md +33 -0
- package/docs/api/feedback/popover.md +32 -0
- package/docs/api/feedback/toast.md +33 -0
- package/docs/api/feedback/tooltip.md +34 -0
- package/docs/api/form/checkbox-group.md +34 -0
- package/docs/api/form/checkbox.md +34 -0
- package/docs/api/form/color-picker.md +33 -0
- package/docs/api/form/combobox.md +49 -0
- package/docs/api/form/date-picker.md +33 -0
- package/docs/api/form/form-item.md +35 -0
- package/docs/api/form/form.md +34 -0
- package/docs/api/form/radio-group.md +33 -0
- package/docs/api/form/radio.md +33 -0
- package/docs/api/form/rate.md +31 -0
- package/docs/api/form/select.md +56 -0
- package/docs/api/form/slider.md +34 -0
- package/docs/api/form/switch.md +31 -0
- package/docs/api/form/time-picker.md +31 -0
- package/docs/api/form/transfer.md +36 -0
- package/docs/api/form/upload.md +36 -0
- package/docs/api/layout/affix.md +31 -0
- package/docs/api/layout/col.md +35 -0
- package/docs/api/layout/collapse-item.md +34 -0
- package/docs/api/layout/collapse.md +32 -0
- package/docs/api/layout/container.md +35 -0
- package/docs/api/layout/flex.md +36 -0
- package/docs/api/layout/page-container.md +31 -0
- package/docs/api/layout/page.md +35 -0
- package/docs/api/layout/row.md +34 -0
- package/docs/api/layout/space.md +34 -0
- package/docs/api/navigation/back-top.md +29 -0
- package/docs/api/navigation/breadcrumb-item.md +32 -0
- package/docs/api/navigation/breadcrumb.md +32 -0
- package/docs/api/navigation/dropdown.md +50 -0
- package/docs/api/navigation/menu-item.md +34 -0
- package/docs/api/navigation/menu.md +36 -0
- package/docs/api/navigation/steps.md +32 -0
- package/docs/api/navigation/sub-menu.md +38 -0
- package/docs/api/progress/progress-bar.md +30 -0
- package/docs/api/progress/progress-ring.md +31 -0
- package/docs/api/progress/skeleton.md +34 -0
- package/docs/api/progress/spinner.md +30 -0
- package/docs/api/summary.md +162 -0
- package/docs/api/theme/locale-switch.md +98 -0
- package/docs/api/theme/theme-picker.md +37 -0
- package/docs/api/theme/theme-preview.md +29 -0
- package/docs/changelog/CHANGELOG.md +71 -0
- package/docs/changelog/VERSION_26.2.2.md +608 -0
- package/docs/framework-integration.md +422 -0
- package/docs/guide.md +326 -0
- package/docs/i18n.md +269 -0
- package/docs/issue/issue_26.2.2.1.md +58 -0
- package/docs/issue/issue_26.2.2.2.md +53 -0
- package/docs/issue/issue_26.2.2.3.md +86 -0
- package/docs/issue/issue_26.2.2.4.md +95 -0
- package/docs/quickstart.md +115 -0
- package/docs/theming.md +257 -0
- package/package.json +80 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { AitheThemeName } from '../types';
|
|
2
|
+
/** Default theme name used when no theme is explicitly set. 未显式设置主题时使用的默认主题名称。 */
|
|
3
|
+
export declare const AITHE_DEFAULT_THEME: AitheThemeName;
|
|
4
|
+
/** localStorage key for persisting the user's theme preference. 用于持久化用户主题偏好的 localStorage 键。 */
|
|
5
|
+
export declare const AITHE_THEME_STORAGE_KEY = "aithe-ui-theme";
|
|
6
|
+
/**
|
|
7
|
+
* Convert a theme name to its corresponding CSS class name.
|
|
8
|
+
* 将主题名称转换为对应的 CSS 类名。
|
|
9
|
+
*
|
|
10
|
+
* @param theme - Theme name. 主题名称。
|
|
11
|
+
* @returns CSS class string like `"aithe-theme-light"`. 类似 `"aithe-theme-light"` 的 CSS 类字符串。
|
|
12
|
+
*/
|
|
13
|
+
export declare function getThemeClassName(theme: AitheThemeName): string;
|
|
14
|
+
/**
|
|
15
|
+
* Read the current global theme from the document root.
|
|
16
|
+
* 从文档根元素读取当前全局主题。
|
|
17
|
+
*
|
|
18
|
+
* @returns The resolved theme name. 解析后的主题名称。
|
|
19
|
+
*/
|
|
20
|
+
export declare function getGlobalTheme(): AitheThemeName;
|
|
21
|
+
/**
|
|
22
|
+
* Apply a theme globally on the document root and optionally persist it.
|
|
23
|
+
* 在文档根元素上全局应用主题,并可选地持久化。
|
|
24
|
+
*
|
|
25
|
+
* @param theme - Theme name to apply. 要应用的主题名称。
|
|
26
|
+
* @param persist - Whether to save to localStorage. Defaults to `true`. 是否保存到 localStorage,默认为 `true`。
|
|
27
|
+
*/
|
|
28
|
+
export declare function setGlobalTheme(theme: AitheThemeName, persist?: boolean): void;
|
|
29
|
+
/**
|
|
30
|
+
* Load a previously stored theme from localStorage.
|
|
31
|
+
* 从 localStorage 加载之前存储的主题。
|
|
32
|
+
*
|
|
33
|
+
* @returns The stored theme name, or `null` if none exists. 存储的主题名称,或 `null`。
|
|
34
|
+
*/
|
|
35
|
+
export declare function loadStoredTheme(): AitheThemeName | null;
|
|
36
|
+
/**
|
|
37
|
+
* Resolve the effective theme for a component by checking its local override,
|
|
38
|
+
* its closest themed ancestor, and finally the global theme.
|
|
39
|
+
* 通过检查组件的本地覆盖、最近的带主题祖先元素,最终全局主题,来解析组件的有效主题。
|
|
40
|
+
*
|
|
41
|
+
* @param element - The component element. 组件元素。
|
|
42
|
+
* @param componentTheme - Optional local theme override. 可选的本地主题覆盖。
|
|
43
|
+
* @returns The resolved theme name. 解析后的主题名称。
|
|
44
|
+
*/
|
|
45
|
+
export declare function resolveComputedTheme(element: HTMLElement, componentTheme?: AitheThemeName): AitheThemeName;
|
|
46
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/utils/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C,kFAAkF;AAClF,eAAO,MAAM,mBAAmB,EAAE,cAAwB,CAAC;AAC3D,gGAAgG;AAChG,eAAO,MAAM,uBAAuB,mBAAmB,CAAC;AAExD;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,CAE/D;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,IAAI,cAAc,CAe/C;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,UAAO,GAAG,IAAI,CAgB1E;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,IAAI,cAAc,GAAG,IAAI,CAMvD;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,WAAW,EACpB,cAAc,CAAC,EAAE,cAAc,GAC9B,cAAc,CAiBhB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Check whether a value is `null` or `undefined`.
|
|
3
|
+
* 检查值是否为 `null` 或 `undefined`。
|
|
4
|
+
*
|
|
5
|
+
* @param value - Value to check. 要检查的值。
|
|
6
|
+
* @returns `true` when the value is nullish. 当值为空时返回 `true`。
|
|
7
|
+
*/
|
|
8
|
+
export declare function isNil(value: unknown): value is null | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Convert an HTML attribute value to a boolean, treating empty string and
|
|
11
|
+
* `"true"` as truthy (matches HTML boolean attribute semantics).
|
|
12
|
+
* 将 HTML 属性值转换为布尔值,将空字符串和 `"true"` 视为真值(符合 HTML 布尔属性语义)。
|
|
13
|
+
*
|
|
14
|
+
* @param value - Attribute value to convert. 要转换的属性值。
|
|
15
|
+
* @returns Boolean interpretation. 布尔解释。
|
|
16
|
+
*/
|
|
17
|
+
export declare function toBooleanAttribute(value: unknown): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Normalize a CSS dimension value: bare numbers get `px` appended,
|
|
20
|
+
* size aliases (`xs`/`sm`/`md`/`lg`/`xl`) resolve to design tokens,
|
|
21
|
+
* and already-valid CSS values pass through unchanged.
|
|
22
|
+
* 规范化 CSS 尺寸值:纯数字追加 `px`,尺寸别名(`xs`/`sm`/`md`/`lg`/`xl`)解析为设计令牌,
|
|
23
|
+
* 已有效的 CSS 值直接通过。
|
|
24
|
+
*
|
|
25
|
+
* @param value - Raw value to normalize. 要规范化的原始值。
|
|
26
|
+
* @param fallback - Default value when input is empty. Defaults to `""`. 输入为空时的默认值,默认为 `""`。
|
|
27
|
+
* @returns A valid CSS dimension string. 有效的 CSS 尺寸字符串。
|
|
28
|
+
*/
|
|
29
|
+
export declare function normalizeCssUnit(value: string | number | null | undefined, fallback?: string): string;
|
|
30
|
+
//# sourceMappingURL=validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/utils/validation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,IAAI,GAAG,SAAS,CAE/D;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAE1D;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,QAAQ,SAAK,GAAG,MAAM,CAuBjG"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const aitheGlobalCssText = "\n:root {\n --aithe-space-0: 0;\n --aithe-space-1: 4px;\n --aithe-space-2: 8px;\n --aithe-space-3: 12px;\n --aithe-space-4: 16px;\n --aithe-space-5: 20px;\n --aithe-space-6: 24px;\n --aithe-space-7: 32px;\n --aithe-space-8: 40px;\n --aithe-space-9: 48px;\n --aithe-space-10: 64px;\n --aithe-space-xs: var(--aithe-space-2);\n --aithe-space-sm: var(--aithe-space-3);\n --aithe-space-md: var(--aithe-space-4);\n --aithe-space-lg: var(--aithe-space-6);\n --aithe-space-xl: var(--aithe-space-8);\n --aithe-radius-sm: 6px;\n --aithe-radius-md: 10px;\n --aithe-radius-lg: 14px;\n --aithe-radius-xl: 20px;\n --aithe-radius-full: 999px;\n --aithe-shadow-1: 0 6px 18px rgba(18, 24, 38, 0.06);\n --aithe-shadow-2: 0 12px 28px rgba(18, 24, 38, 0.08);\n --aithe-shadow-3: 0 18px 40px rgba(18, 24, 38, 0.1);\n --aithe-shadow-4: 0 22px 56px rgba(18, 24, 38, 0.14);\n --aithe-shadow-5: 0 28px 72px rgba(18, 24, 38, 0.18);\n --aithe-font-family: 'Sora', 'IBM Plex Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;\n --aithe-font-family-mono: 'JetBrains Mono', 'SFMono-Regular', 'Consolas', monospace;\n --aithe-font-size-xs: 12px;\n --aithe-font-size-sm: 13px;\n --aithe-font-size-md: 14px;\n --aithe-font-size-lg: 16px;\n --aithe-font-size-xl: 20px;\n --aithe-font-size-2xl: 28px;\n --aithe-font-weight-regular: 400;\n --aithe-font-weight-medium: 500;\n --aithe-font-weight-semibold: 600;\n --aithe-font-weight-bold: 700;\n --aithe-line-height-tight: 1.2;\n --aithe-line-height-base: 1.5;\n --aithe-line-height-loose: 1.7;\n --aithe-z-base: 1;\n --aithe-z-dropdown: 1000;\n --aithe-z-popover: 1010;\n --aithe-z-modal: 1080;\n --aithe-z-drawer: 1090;\n --aithe-z-tooltip: 1120;\n --aithe-duration-fast: 140ms;\n --aithe-duration-base: 220ms;\n --aithe-duration-slow: 320ms;\n --aithe-ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);\n --aithe-control-height-sm: 32px;\n --aithe-control-height-md: 40px;\n --aithe-control-height-lg: 48px;\n}\n\nhtml,\nbody {\n margin: 0;\n width: 100%;\n min-height: 100%;\n background: var(--aithe-color-bg-subtle);\n color: var(--aithe-color-text);\n font-family: var(--aithe-font-family);\n}\n\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\n::selection {\n background: var(--aithe-color-selection);\n}\n";
|
|
2
|
+
export declare const aitheGlobalResetStyles: import("lit").CSSResult;
|
|
3
|
+
//# sourceMappingURL=global.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"global.css.d.ts","sourceRoot":"","sources":["../../src/styles/global.css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,+vEA6E9B,CAAC;AAEF,eAAO,MAAM,sBAAsB,yBAuBlC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const aithePrimitiveTokens: import("lit").CSSResult;
|
|
2
|
+
export declare const aitheSurfaceStyles: import("lit").CSSResult;
|
|
3
|
+
export declare const aitheControlStyles: import("lit").CSSResult;
|
|
4
|
+
export declare const aitheControlFocusStyles: import("lit").CSSResult;
|
|
5
|
+
//# sourceMappingURL=mixins.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mixins.d.ts","sourceRoot":"","sources":["../../src/styles/mixins.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,yBAyDhC,CAAC;AAEF,eAAO,MAAM,kBAAkB,yBAM9B,CAAC;AAEF,eAAO,MAAM,kBAAkB,yBAU9B,CAAC;AAEF,eAAO,MAAM,uBAAuB,yBAGnC,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const blueThemeTokens = "\n.aithe-theme-blue,\n[data-aithe-theme='blue'] {\n color-scheme: dark;\n --aithe-primary-1: #eaf3ff;\n --aithe-primary-2: #d2e4ff;\n --aithe-primary-3: #aacbff;\n --aithe-primary-4: #79acff;\n --aithe-primary-5: #518fff;\n --aithe-primary-6: #2c73f6;\n --aithe-primary-7: #245dd0;\n --aithe-primary-8: #234ca6;\n --aithe-primary-9: #213f81;\n --aithe-primary-10: #1f3365;\n --aithe-success-1: #effcf7;\n --aithe-success-2: #d2f5e4;\n --aithe-success-3: #afead0;\n --aithe-success-4: #7fd5af;\n --aithe-success-5: #59bd92;\n --aithe-success-6: #3aa478;\n --aithe-success-7: #2d8964;\n --aithe-success-8: #266f53;\n --aithe-success-9: #215a45;\n --aithe-success-10: #1b4938;\n --aithe-warning-1: #fff8e9;\n --aithe-warning-2: #ffefc7;\n --aithe-warning-3: #ffdd90;\n --aithe-warning-4: #ffc45c;\n --aithe-warning-5: #f2aa3d;\n --aithe-warning-6: #d38b25;\n --aithe-warning-7: #af6e1b;\n --aithe-warning-8: #8e5718;\n --aithe-warning-9: #724618;\n --aithe-warning-10: #5b3815;\n --aithe-danger-1: #fff0f3;\n --aithe-danger-2: #ffdbe2;\n --aithe-danger-3: #ffbbc8;\n --aithe-danger-4: #ff8fa1;\n --aithe-danger-5: #f66a80;\n --aithe-danger-6: #de5069;\n --aithe-danger-7: #bd3f56;\n --aithe-danger-8: #99354a;\n --aithe-danger-9: #7c2f3f;\n --aithe-danger-10: #632837;\n --aithe-neutral-1: #f1f5fd;\n --aithe-neutral-2: #d8e1f0;\n --aithe-neutral-3: #bcc7da;\n --aithe-neutral-4: #9ca9c1;\n --aithe-neutral-5: #7d8ca7;\n --aithe-neutral-6: #66758f;\n --aithe-neutral-7: #505d74;\n --aithe-neutral-8: #3a4559;\n --aithe-neutral-9: #242d3d;\n --aithe-neutral-10: #141c29;\n --aithe-color-bg: #09111f;\n --aithe-color-bg-subtle: radial-gradient(circle at top right, rgba(44, 115, 246, 0.22) 0%, rgba(9, 17, 31, 1) 54%);\n --aithe-color-surface: rgba(10, 24, 45, 0.82);\n --aithe-color-surface-elevated: rgba(14, 31, 57, 0.96);\n --aithe-color-surface-muted: #13253f;\n --aithe-color-border: rgba(130, 176, 255, 0.16);\n --aithe-color-border-strong: rgba(154, 195, 255, 0.26);\n --aithe-color-text: #edf4ff;\n --aithe-color-text-muted: #b3c5e6;\n --aithe-color-text-subtle: #7f99be;\n --aithe-color-overlay: rgba(2, 7, 14, 0.68);\n --aithe-color-selection: rgba(81, 143, 255, 0.24);\n --aithe-color-focus-ring: rgba(81, 143, 255, 0.42);\n}\n";
|
|
2
|
+
//# sourceMappingURL=blue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blue.d.ts","sourceRoot":"","sources":["../../../src/styles/theme/blue.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,+vEAoE3B,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const darkThemeTokens = "\n.aithe-theme-dark,\n[data-aithe-theme='dark'] {\n color-scheme: dark;\n --aithe-primary-1: #edf4ff;\n --aithe-primary-2: #d7e5ff;\n --aithe-primary-3: #b8d2ff;\n --aithe-primary-4: #8ab3ff;\n --aithe-primary-5: #6092ff;\n --aithe-primary-6: #4a7dff;\n --aithe-primary-7: #3d68e0;\n --aithe-primary-8: #3555b6;\n --aithe-primary-9: #2f478f;\n --aithe-primary-10: #28396f;\n --aithe-success-1: #effcf7;\n --aithe-success-2: #cef6df;\n --aithe-success-3: #a7ecc4;\n --aithe-success-4: #7ad7a5;\n --aithe-success-5: #53bf88;\n --aithe-success-6: #35a66f;\n --aithe-success-7: #278a5c;\n --aithe-success-8: #1e6f4b;\n --aithe-success-9: #195a3d;\n --aithe-success-10: #154931;\n --aithe-warning-1: #fff8eb;\n --aithe-warning-2: #ffeec8;\n --aithe-warning-3: #ffdd92;\n --aithe-warning-4: #ffc85f;\n --aithe-warning-5: #f1b042;\n --aithe-warning-6: #d18f29;\n --aithe-warning-7: #ad701d;\n --aithe-warning-8: #8b5819;\n --aithe-warning-9: #6f4617;\n --aithe-warning-10: #593813;\n --aithe-danger-1: #fff1f4;\n --aithe-danger-2: #ffdce2;\n --aithe-danger-3: #ffbcc8;\n --aithe-danger-4: #ff92a4;\n --aithe-danger-5: #f86c83;\n --aithe-danger-6: #df526b;\n --aithe-danger-7: #be4159;\n --aithe-danger-8: #99354a;\n --aithe-danger-9: #7a2d3d;\n --aithe-danger-10: #612634;\n --aithe-neutral-1: #f5f7fb;\n --aithe-neutral-2: #dfe5ef;\n --aithe-neutral-3: #c7d0de;\n --aithe-neutral-4: #aab6c9;\n --aithe-neutral-5: #8997b0;\n --aithe-neutral-6: #6d7a92;\n --aithe-neutral-7: #536077;\n --aithe-neutral-8: #3b465a;\n --aithe-neutral-9: #242d3d;\n --aithe-neutral-10: #121925;\n --aithe-color-bg: #0d1119;\n --aithe-color-bg-subtle: radial-gradient(circle at top, rgba(55, 87, 151, 0.22) 0%, rgba(13, 17, 25, 1) 58%);\n --aithe-color-surface: rgba(17, 24, 39, 0.82);\n --aithe-color-surface-elevated: rgba(19, 27, 44, 0.96);\n --aithe-color-surface-muted: #151c2b;\n --aithe-color-border: rgba(172, 188, 217, 0.14);\n --aithe-color-border-strong: rgba(183, 198, 228, 0.22);\n --aithe-color-text: #edf3ff;\n --aithe-color-text-muted: #b0bdd4;\n --aithe-color-text-subtle: #8894ab;\n --aithe-color-overlay: rgba(1, 4, 11, 0.68);\n --aithe-color-selection: rgba(116, 170, 255, 0.24);\n --aithe-color-focus-ring: rgba(116, 170, 255, 0.42);\n --aithe-shadow-1: 0 8px 18px rgba(0, 0, 0, 0.18);\n --aithe-shadow-2: 0 14px 34px rgba(0, 0, 0, 0.24);\n --aithe-shadow-3: 0 20px 44px rgba(0, 0, 0, 0.3);\n --aithe-shadow-4: 0 24px 56px rgba(0, 0, 0, 0.36);\n --aithe-shadow-5: 0 30px 72px rgba(0, 0, 0, 0.42);\n}\n";
|
|
2
|
+
//# sourceMappingURL=dark.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dark.d.ts","sourceRoot":"","sources":["../../../src/styles/theme/dark.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,ugFAyE3B,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const grayThemeTokens = "\n.aithe-theme-gray,\n[data-aithe-theme='gray'] {\n color-scheme: light;\n --aithe-primary-1: #f4f6fb;\n --aithe-primary-2: #e8edf6;\n --aithe-primary-3: #d4dce9;\n --aithe-primary-4: #b8c3d8;\n --aithe-primary-5: #96a4c0;\n --aithe-primary-6: #7485a4;\n --aithe-primary-7: #5e708d;\n --aithe-primary-8: #4d5d76;\n --aithe-primary-9: #404d61;\n --aithe-primary-10: #313a48;\n --aithe-success-1: #eff7f3;\n --aithe-success-2: #dcefe4;\n --aithe-success-3: #badfc9;\n --aithe-success-4: #97cfac;\n --aithe-success-5: #73bd90;\n --aithe-success-6: #5aa277;\n --aithe-success-7: #4a8461;\n --aithe-success-8: #3d6950;\n --aithe-success-9: #335543;\n --aithe-success-10: #294437;\n --aithe-warning-1: #f9f4ea;\n --aithe-warning-2: #f3e8cf;\n --aithe-warning-3: #e8d3a3;\n --aithe-warning-4: #dbbb79;\n --aithe-warning-5: #c7a05b;\n --aithe-warning-6: #ab8442;\n --aithe-warning-7: #8d6a33;\n --aithe-warning-8: #72532a;\n --aithe-warning-9: #5b4324;\n --aithe-warning-10: #49371f;\n --aithe-danger-1: #faf1f2;\n --aithe-danger-2: #f2dfe2;\n --aithe-danger-3: #e8c3c9;\n --aithe-danger-4: #dba0a9;\n --aithe-danger-5: #c97d88;\n --aithe-danger-6: #b0626d;\n --aithe-danger-7: #924f59;\n --aithe-danger-8: #764149;\n --aithe-danger-9: #60363d;\n --aithe-danger-10: #4d2c31;\n --aithe-neutral-1: #fafbfc;\n --aithe-neutral-2: #f0f2f5;\n --aithe-neutral-3: #dfe4ea;\n --aithe-neutral-4: #c8d0db;\n --aithe-neutral-5: #adb7c6;\n --aithe-neutral-6: #8f99aa;\n --aithe-neutral-7: #717b8d;\n --aithe-neutral-8: #566070;\n --aithe-neutral-9: #3d4654;\n --aithe-neutral-10: #252d36;\n --aithe-color-bg: #f3f4f7;\n --aithe-color-bg-subtle: linear-gradient(180deg, #f8f9fb 0%, #eff1f4 100%);\n --aithe-color-surface: rgba(255, 255, 255, 0.84);\n --aithe-color-surface-elevated: rgba(255, 255, 255, 0.96);\n --aithe-color-surface-muted: #eceff4;\n --aithe-color-border: rgba(76, 84, 98, 0.16);\n --aithe-color-border-strong: rgba(55, 62, 72, 0.24);\n --aithe-color-text: #222831;\n --aithe-color-text-muted: #5a6473;\n --aithe-color-text-subtle: #848c97;\n --aithe-color-overlay: rgba(28, 31, 37, 0.46);\n --aithe-color-selection: rgba(116, 133, 164, 0.2);\n --aithe-color-focus-ring: rgba(116, 133, 164, 0.34);\n}\n";
|
|
2
|
+
//# sourceMappingURL=gray.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gray.d.ts","sourceRoot":"","sources":["../../../src/styles/theme/gray.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,2tEAoE3B,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const lightThemeTokens = "\n.aithe-theme-light,\n[data-aithe-theme='light'],\n:root {\n color-scheme: light;\n --aithe-primary-1: #f2f7ff;\n --aithe-primary-2: #e3efff;\n --aithe-primary-3: #c8deff;\n --aithe-primary-4: #9ec5ff;\n --aithe-primary-5: #74aaff;\n --aithe-primary-6: #4d8dff;\n --aithe-primary-7: #326fe1;\n --aithe-primary-8: #2859b5;\n --aithe-primary-9: #22488f;\n --aithe-primary-10: #1d3970;\n --aithe-success-1: #effcf6;\n --aithe-success-2: #d9f5e6;\n --aithe-success-3: #b7ebcf;\n --aithe-success-4: #84d9ae;\n --aithe-success-5: #52c48a;\n --aithe-success-6: #2eae70;\n --aithe-success-7: #1f915d;\n --aithe-success-8: #1b754e;\n --aithe-success-9: #185e40;\n --aithe-success-10: #144b34;\n --aithe-warning-1: #fff8e8;\n --aithe-warning-2: #ffefc7;\n --aithe-warning-3: #ffe08c;\n --aithe-warning-4: #ffcc59;\n --aithe-warning-5: #f6b73a;\n --aithe-warning-6: #dd9621;\n --aithe-warning-7: #b97516;\n --aithe-warning-8: #955b14;\n --aithe-warning-9: #754712;\n --aithe-warning-10: #5c390f;\n --aithe-danger-1: #fff1f2;\n --aithe-danger-2: #ffe0e4;\n --aithe-danger-3: #ffc4cb;\n --aithe-danger-4: #ff9ca8;\n --aithe-danger-5: #ff7283;\n --aithe-danger-6: #f04f64;\n --aithe-danger-7: #cf3950;\n --aithe-danger-8: #ab3144;\n --aithe-danger-9: #882c3a;\n --aithe-danger-10: #6d2630;\n --aithe-neutral-1: #f7f8fb;\n --aithe-neutral-2: #eef1f6;\n --aithe-neutral-3: #e1e6ef;\n --aithe-neutral-4: #c9d1df;\n --aithe-neutral-5: #aeb8cb;\n --aithe-neutral-6: #8f9ab0;\n --aithe-neutral-7: #6d788f;\n --aithe-neutral-8: #4d576b;\n --aithe-neutral-9: #2f3747;\n --aithe-neutral-10: #151a22;\n --aithe-color-bg: #f5f7fb;\n --aithe-color-bg-subtle: linear-gradient(180deg, #f9fbff 0%, #f2f5fb 100%);\n --aithe-color-surface: rgba(255, 255, 255, 0.82);\n --aithe-color-surface-elevated: rgba(255, 255, 255, 0.98);\n --aithe-color-surface-muted: #eef2f8;\n --aithe-color-border: rgba(76, 94, 132, 0.18);\n --aithe-color-border-strong: rgba(52, 66, 96, 0.28);\n --aithe-color-text: #152033;\n --aithe-color-text-muted: #526079;\n --aithe-color-text-subtle: #7b879b;\n --aithe-color-overlay: rgba(11, 17, 29, 0.54);\n --aithe-color-selection: rgba(77, 141, 255, 0.18);\n --aithe-color-focus-ring: rgba(77, 141, 255, 0.38);\n}\n";
|
|
2
|
+
//# sourceMappingURL=light.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"light.d.ts","sourceRoot":"","sources":["../../../src/styles/theme/light.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,quEAqE5B,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const aitheThemeText = "\n\n.aithe-theme-light,\n[data-aithe-theme='light'],\n:root {\n color-scheme: light;\n --aithe-primary-1: #f2f7ff;\n --aithe-primary-2: #e3efff;\n --aithe-primary-3: #c8deff;\n --aithe-primary-4: #9ec5ff;\n --aithe-primary-5: #74aaff;\n --aithe-primary-6: #4d8dff;\n --aithe-primary-7: #326fe1;\n --aithe-primary-8: #2859b5;\n --aithe-primary-9: #22488f;\n --aithe-primary-10: #1d3970;\n --aithe-success-1: #effcf6;\n --aithe-success-2: #d9f5e6;\n --aithe-success-3: #b7ebcf;\n --aithe-success-4: #84d9ae;\n --aithe-success-5: #52c48a;\n --aithe-success-6: #2eae70;\n --aithe-success-7: #1f915d;\n --aithe-success-8: #1b754e;\n --aithe-success-9: #185e40;\n --aithe-success-10: #144b34;\n --aithe-warning-1: #fff8e8;\n --aithe-warning-2: #ffefc7;\n --aithe-warning-3: #ffe08c;\n --aithe-warning-4: #ffcc59;\n --aithe-warning-5: #f6b73a;\n --aithe-warning-6: #dd9621;\n --aithe-warning-7: #b97516;\n --aithe-warning-8: #955b14;\n --aithe-warning-9: #754712;\n --aithe-warning-10: #5c390f;\n --aithe-danger-1: #fff1f2;\n --aithe-danger-2: #ffe0e4;\n --aithe-danger-3: #ffc4cb;\n --aithe-danger-4: #ff9ca8;\n --aithe-danger-5: #ff7283;\n --aithe-danger-6: #f04f64;\n --aithe-danger-7: #cf3950;\n --aithe-danger-8: #ab3144;\n --aithe-danger-9: #882c3a;\n --aithe-danger-10: #6d2630;\n --aithe-neutral-1: #f7f8fb;\n --aithe-neutral-2: #eef1f6;\n --aithe-neutral-3: #e1e6ef;\n --aithe-neutral-4: #c9d1df;\n --aithe-neutral-5: #aeb8cb;\n --aithe-neutral-6: #8f9ab0;\n --aithe-neutral-7: #6d788f;\n --aithe-neutral-8: #4d576b;\n --aithe-neutral-9: #2f3747;\n --aithe-neutral-10: #151a22;\n --aithe-color-bg: #f5f7fb;\n --aithe-color-bg-subtle: linear-gradient(180deg, #f9fbff 0%, #f2f5fb 100%);\n --aithe-color-surface: rgba(255, 255, 255, 0.82);\n --aithe-color-surface-elevated: rgba(255, 255, 255, 0.98);\n --aithe-color-surface-muted: #eef2f8;\n --aithe-color-border: rgba(76, 94, 132, 0.18);\n --aithe-color-border-strong: rgba(52, 66, 96, 0.28);\n --aithe-color-text: #152033;\n --aithe-color-text-muted: #526079;\n --aithe-color-text-subtle: #7b879b;\n --aithe-color-overlay: rgba(11, 17, 29, 0.54);\n --aithe-color-selection: rgba(77, 141, 255, 0.18);\n --aithe-color-focus-ring: rgba(77, 141, 255, 0.38);\n}\n\n\n.aithe-theme-dark,\n[data-aithe-theme='dark'] {\n color-scheme: dark;\n --aithe-primary-1: #edf4ff;\n --aithe-primary-2: #d7e5ff;\n --aithe-primary-3: #b8d2ff;\n --aithe-primary-4: #8ab3ff;\n --aithe-primary-5: #6092ff;\n --aithe-primary-6: #4a7dff;\n --aithe-primary-7: #3d68e0;\n --aithe-primary-8: #3555b6;\n --aithe-primary-9: #2f478f;\n --aithe-primary-10: #28396f;\n --aithe-success-1: #effcf7;\n --aithe-success-2: #cef6df;\n --aithe-success-3: #a7ecc4;\n --aithe-success-4: #7ad7a5;\n --aithe-success-5: #53bf88;\n --aithe-success-6: #35a66f;\n --aithe-success-7: #278a5c;\n --aithe-success-8: #1e6f4b;\n --aithe-success-9: #195a3d;\n --aithe-success-10: #154931;\n --aithe-warning-1: #fff8eb;\n --aithe-warning-2: #ffeec8;\n --aithe-warning-3: #ffdd92;\n --aithe-warning-4: #ffc85f;\n --aithe-warning-5: #f1b042;\n --aithe-warning-6: #d18f29;\n --aithe-warning-7: #ad701d;\n --aithe-warning-8: #8b5819;\n --aithe-warning-9: #6f4617;\n --aithe-warning-10: #593813;\n --aithe-danger-1: #fff1f4;\n --aithe-danger-2: #ffdce2;\n --aithe-danger-3: #ffbcc8;\n --aithe-danger-4: #ff92a4;\n --aithe-danger-5: #f86c83;\n --aithe-danger-6: #df526b;\n --aithe-danger-7: #be4159;\n --aithe-danger-8: #99354a;\n --aithe-danger-9: #7a2d3d;\n --aithe-danger-10: #612634;\n --aithe-neutral-1: #f5f7fb;\n --aithe-neutral-2: #dfe5ef;\n --aithe-neutral-3: #c7d0de;\n --aithe-neutral-4: #aab6c9;\n --aithe-neutral-5: #8997b0;\n --aithe-neutral-6: #6d7a92;\n --aithe-neutral-7: #536077;\n --aithe-neutral-8: #3b465a;\n --aithe-neutral-9: #242d3d;\n --aithe-neutral-10: #121925;\n --aithe-color-bg: #0d1119;\n --aithe-color-bg-subtle: radial-gradient(circle at top, rgba(55, 87, 151, 0.22) 0%, rgba(13, 17, 25, 1) 58%);\n --aithe-color-surface: rgba(17, 24, 39, 0.82);\n --aithe-color-surface-elevated: rgba(19, 27, 44, 0.96);\n --aithe-color-surface-muted: #151c2b;\n --aithe-color-border: rgba(172, 188, 217, 0.14);\n --aithe-color-border-strong: rgba(183, 198, 228, 0.22);\n --aithe-color-text: #edf3ff;\n --aithe-color-text-muted: #b0bdd4;\n --aithe-color-text-subtle: #8894ab;\n --aithe-color-overlay: rgba(1, 4, 11, 0.68);\n --aithe-color-selection: rgba(116, 170, 255, 0.24);\n --aithe-color-focus-ring: rgba(116, 170, 255, 0.42);\n --aithe-shadow-1: 0 8px 18px rgba(0, 0, 0, 0.18);\n --aithe-shadow-2: 0 14px 34px rgba(0, 0, 0, 0.24);\n --aithe-shadow-3: 0 20px 44px rgba(0, 0, 0, 0.3);\n --aithe-shadow-4: 0 24px 56px rgba(0, 0, 0, 0.36);\n --aithe-shadow-5: 0 30px 72px rgba(0, 0, 0, 0.42);\n}\n\n\n.aithe-theme-gray,\n[data-aithe-theme='gray'] {\n color-scheme: light;\n --aithe-primary-1: #f4f6fb;\n --aithe-primary-2: #e8edf6;\n --aithe-primary-3: #d4dce9;\n --aithe-primary-4: #b8c3d8;\n --aithe-primary-5: #96a4c0;\n --aithe-primary-6: #7485a4;\n --aithe-primary-7: #5e708d;\n --aithe-primary-8: #4d5d76;\n --aithe-primary-9: #404d61;\n --aithe-primary-10: #313a48;\n --aithe-success-1: #eff7f3;\n --aithe-success-2: #dcefe4;\n --aithe-success-3: #badfc9;\n --aithe-success-4: #97cfac;\n --aithe-success-5: #73bd90;\n --aithe-success-6: #5aa277;\n --aithe-success-7: #4a8461;\n --aithe-success-8: #3d6950;\n --aithe-success-9: #335543;\n --aithe-success-10: #294437;\n --aithe-warning-1: #f9f4ea;\n --aithe-warning-2: #f3e8cf;\n --aithe-warning-3: #e8d3a3;\n --aithe-warning-4: #dbbb79;\n --aithe-warning-5: #c7a05b;\n --aithe-warning-6: #ab8442;\n --aithe-warning-7: #8d6a33;\n --aithe-warning-8: #72532a;\n --aithe-warning-9: #5b4324;\n --aithe-warning-10: #49371f;\n --aithe-danger-1: #faf1f2;\n --aithe-danger-2: #f2dfe2;\n --aithe-danger-3: #e8c3c9;\n --aithe-danger-4: #dba0a9;\n --aithe-danger-5: #c97d88;\n --aithe-danger-6: #b0626d;\n --aithe-danger-7: #924f59;\n --aithe-danger-8: #764149;\n --aithe-danger-9: #60363d;\n --aithe-danger-10: #4d2c31;\n --aithe-neutral-1: #fafbfc;\n --aithe-neutral-2: #f0f2f5;\n --aithe-neutral-3: #dfe4ea;\n --aithe-neutral-4: #c8d0db;\n --aithe-neutral-5: #adb7c6;\n --aithe-neutral-6: #8f99aa;\n --aithe-neutral-7: #717b8d;\n --aithe-neutral-8: #566070;\n --aithe-neutral-9: #3d4654;\n --aithe-neutral-10: #252d36;\n --aithe-color-bg: #f3f4f7;\n --aithe-color-bg-subtle: linear-gradient(180deg, #f8f9fb 0%, #eff1f4 100%);\n --aithe-color-surface: rgba(255, 255, 255, 0.84);\n --aithe-color-surface-elevated: rgba(255, 255, 255, 0.96);\n --aithe-color-surface-muted: #eceff4;\n --aithe-color-border: rgba(76, 84, 98, 0.16);\n --aithe-color-border-strong: rgba(55, 62, 72, 0.24);\n --aithe-color-text: #222831;\n --aithe-color-text-muted: #5a6473;\n --aithe-color-text-subtle: #848c97;\n --aithe-color-overlay: rgba(28, 31, 37, 0.46);\n --aithe-color-selection: rgba(116, 133, 164, 0.2);\n --aithe-color-focus-ring: rgba(116, 133, 164, 0.34);\n}\n\n\n.aithe-theme-blue,\n[data-aithe-theme='blue'] {\n color-scheme: dark;\n --aithe-primary-1: #eaf3ff;\n --aithe-primary-2: #d2e4ff;\n --aithe-primary-3: #aacbff;\n --aithe-primary-4: #79acff;\n --aithe-primary-5: #518fff;\n --aithe-primary-6: #2c73f6;\n --aithe-primary-7: #245dd0;\n --aithe-primary-8: #234ca6;\n --aithe-primary-9: #213f81;\n --aithe-primary-10: #1f3365;\n --aithe-success-1: #effcf7;\n --aithe-success-2: #d2f5e4;\n --aithe-success-3: #afead0;\n --aithe-success-4: #7fd5af;\n --aithe-success-5: #59bd92;\n --aithe-success-6: #3aa478;\n --aithe-success-7: #2d8964;\n --aithe-success-8: #266f53;\n --aithe-success-9: #215a45;\n --aithe-success-10: #1b4938;\n --aithe-warning-1: #fff8e9;\n --aithe-warning-2: #ffefc7;\n --aithe-warning-3: #ffdd90;\n --aithe-warning-4: #ffc45c;\n --aithe-warning-5: #f2aa3d;\n --aithe-warning-6: #d38b25;\n --aithe-warning-7: #af6e1b;\n --aithe-warning-8: #8e5718;\n --aithe-warning-9: #724618;\n --aithe-warning-10: #5b3815;\n --aithe-danger-1: #fff0f3;\n --aithe-danger-2: #ffdbe2;\n --aithe-danger-3: #ffbbc8;\n --aithe-danger-4: #ff8fa1;\n --aithe-danger-5: #f66a80;\n --aithe-danger-6: #de5069;\n --aithe-danger-7: #bd3f56;\n --aithe-danger-8: #99354a;\n --aithe-danger-9: #7c2f3f;\n --aithe-danger-10: #632837;\n --aithe-neutral-1: #f1f5fd;\n --aithe-neutral-2: #d8e1f0;\n --aithe-neutral-3: #bcc7da;\n --aithe-neutral-4: #9ca9c1;\n --aithe-neutral-5: #7d8ca7;\n --aithe-neutral-6: #66758f;\n --aithe-neutral-7: #505d74;\n --aithe-neutral-8: #3a4559;\n --aithe-neutral-9: #242d3d;\n --aithe-neutral-10: #141c29;\n --aithe-color-bg: #09111f;\n --aithe-color-bg-subtle: radial-gradient(circle at top right, rgba(44, 115, 246, 0.22) 0%, rgba(9, 17, 31, 1) 54%);\n --aithe-color-surface: rgba(10, 24, 45, 0.82);\n --aithe-color-surface-elevated: rgba(14, 31, 57, 0.96);\n --aithe-color-surface-muted: #13253f;\n --aithe-color-border: rgba(130, 176, 255, 0.16);\n --aithe-color-border-strong: rgba(154, 195, 255, 0.26);\n --aithe-color-text: #edf4ff;\n --aithe-color-text-muted: #b3c5e6;\n --aithe-color-text-subtle: #7f99be;\n --aithe-color-overlay: rgba(2, 7, 14, 0.68);\n --aithe-color-selection: rgba(81, 143, 255, 0.24);\n --aithe-color-focus-ring: rgba(81, 143, 255, 0.42);\n}\n\n\n:root {\n --aithe-space-0: 0;\n --aithe-space-1: 4px;\n --aithe-space-2: 8px;\n --aithe-space-3: 12px;\n --aithe-space-4: 16px;\n --aithe-space-5: 20px;\n --aithe-space-6: 24px;\n --aithe-space-7: 32px;\n --aithe-space-8: 40px;\n --aithe-space-9: 48px;\n --aithe-space-10: 64px;\n --aithe-space-xs: var(--aithe-space-2);\n --aithe-space-sm: var(--aithe-space-3);\n --aithe-space-md: var(--aithe-space-4);\n --aithe-space-lg: var(--aithe-space-6);\n --aithe-space-xl: var(--aithe-space-8);\n --aithe-radius-sm: 6px;\n --aithe-radius-md: 10px;\n --aithe-radius-lg: 14px;\n --aithe-radius-xl: 20px;\n --aithe-radius-full: 999px;\n --aithe-shadow-1: 0 6px 18px rgba(18, 24, 38, 0.06);\n --aithe-shadow-2: 0 12px 28px rgba(18, 24, 38, 0.08);\n --aithe-shadow-3: 0 18px 40px rgba(18, 24, 38, 0.1);\n --aithe-shadow-4: 0 22px 56px rgba(18, 24, 38, 0.14);\n --aithe-shadow-5: 0 28px 72px rgba(18, 24, 38, 0.18);\n --aithe-font-family: 'Sora', 'IBM Plex Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;\n --aithe-font-family-mono: 'JetBrains Mono', 'SFMono-Regular', 'Consolas', monospace;\n --aithe-font-size-xs: 12px;\n --aithe-font-size-sm: 13px;\n --aithe-font-size-md: 14px;\n --aithe-font-size-lg: 16px;\n --aithe-font-size-xl: 20px;\n --aithe-font-size-2xl: 28px;\n --aithe-font-weight-regular: 400;\n --aithe-font-weight-medium: 500;\n --aithe-font-weight-semibold: 600;\n --aithe-font-weight-bold: 700;\n --aithe-line-height-tight: 1.2;\n --aithe-line-height-base: 1.5;\n --aithe-line-height-loose: 1.7;\n --aithe-z-base: 1;\n --aithe-z-dropdown: 1000;\n --aithe-z-popover: 1010;\n --aithe-z-modal: 1080;\n --aithe-z-drawer: 1090;\n --aithe-z-tooltip: 1120;\n --aithe-duration-fast: 140ms;\n --aithe-duration-base: 220ms;\n --aithe-duration-slow: 320ms;\n --aithe-ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);\n --aithe-control-height-sm: 32px;\n --aithe-control-height-md: 40px;\n --aithe-control-height-lg: 48px;\n}\n\nhtml,\nbody {\n margin: 0;\n width: 100%;\n min-height: 100%;\n background: var(--aithe-color-bg-subtle);\n color: var(--aithe-color-text);\n font-family: var(--aithe-font-family);\n}\n\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\n::selection {\n background: var(--aithe-color-selection);\n}\n\n";
|
|
2
|
+
export declare function registerAitheTheme(): void;
|
|
3
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/styles/theme.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,cAAc,67WAM1B,CAAC;AAEF,wBAAgB,kBAAkB,IAAI,IAAI,CAczC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AitheComponentSize, AitheThemeName, AitheVariant } from './theme';
|
|
2
|
+
/**
|
|
3
|
+
* Shared properties inherited by all Aithe components.
|
|
4
|
+
*/
|
|
5
|
+
export interface AitheCommonProps {
|
|
6
|
+
variant?: AitheVariant;
|
|
7
|
+
size?: AitheComponentSize;
|
|
8
|
+
theme?: AitheThemeName;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/types/component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEhF;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in Aithe UI theme names.
|
|
3
|
+
*/
|
|
4
|
+
export type AitheBuiltinTheme = 'light' | 'dark' | 'gray' | 'blue';
|
|
5
|
+
/**
|
|
6
|
+
* Theme name that supports official and user-defined themes.
|
|
7
|
+
*/
|
|
8
|
+
export type AitheThemeName = AitheBuiltinTheme | (string & {});
|
|
9
|
+
/**
|
|
10
|
+
* Shared size scale used by most controls.
|
|
11
|
+
*/
|
|
12
|
+
export type AitheComponentSize = 'sm' | 'md' | 'lg';
|
|
13
|
+
/**
|
|
14
|
+
* Shared variant string used by visual components.
|
|
15
|
+
*/
|
|
16
|
+
export type AitheVariant = 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'neutral' | string;
|
|
17
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/types/theme.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAEnE;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,iBAAiB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEpD;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function findClosestThemeElement(element: HTMLElement | null): HTMLElement | null;
|
|
2
|
+
export declare function getFocusableElements(root: ParentNode): HTMLElement[];
|
|
3
|
+
export declare function findFirstFocusable(root: ParentNode): HTMLElement | null;
|
|
4
|
+
//# sourceMappingURL=dom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../src/utils/dom.ts"],"names":[],"mappings":"AAAA,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,GAAG,WAAW,GAAG,IAAI,CAiBvF;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,UAAU,GAAG,WAAW,EAAE,CAcpE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,UAAU,GAAG,WAAW,GAAG,IAAI,CAEvE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/utils/events.ts"],"names":[],"mappings":"AAAA,wBAAgB,cAAc,CAAC,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,GAAG,IAAI,CASrF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AitheThemeName } from '../types';
|
|
2
|
+
export declare const AITHE_DEFAULT_THEME: AitheThemeName;
|
|
3
|
+
export declare const AITHE_THEME_STORAGE_KEY = "aithe-ui-theme";
|
|
4
|
+
export declare function getThemeClassName(theme: AitheThemeName): string;
|
|
5
|
+
export declare function getGlobalTheme(): AitheThemeName;
|
|
6
|
+
export declare function setGlobalTheme(theme: AitheThemeName, persist?: boolean): void;
|
|
7
|
+
export declare function loadStoredTheme(): AitheThemeName | null;
|
|
8
|
+
export declare function resolveComputedTheme(element: HTMLElement, componentTheme?: AitheThemeName): AitheThemeName;
|
|
9
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/utils/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C,eAAO,MAAM,mBAAmB,EAAE,cAAwB,CAAC;AAC3D,eAAO,MAAM,uBAAuB,mBAAmB,CAAC;AAExD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,CAE/D;AAED,wBAAgB,cAAc,IAAI,cAAc,CAe/C;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,UAAO,GAAG,IAAI,CAgB1E;AAED,wBAAgB,eAAe,IAAI,cAAc,GAAG,IAAI,CAMvD;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,WAAW,EAAE,cAAc,CAAC,EAAE,cAAc,GAAG,cAAc,CAiB1G"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function isNil(value: unknown): value is null | undefined;
|
|
2
|
+
export declare function toBooleanAttribute(value: unknown): boolean;
|
|
3
|
+
export declare function normalizeCssUnit(value: string | number | null | undefined, fallback?: string): string;
|
|
4
|
+
//# sourceMappingURL=validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/utils/validation.ts"],"names":[],"mappings":"AAAA,wBAAgB,KAAK,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,IAAI,GAAG,SAAS,CAE/D;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAE1D;AAED,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,EACzC,QAAQ,SAAK,GACZ,MAAM,CAuBR"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# AitheAvatar / AitheAvatar 头像
|
|
2
|
+
|
|
3
|
+
> Avatar displaying an image, initials, or custom content.
|
|
4
|
+
> 头像组件,显示图片、首字母或自定义内容。
|
|
5
|
+
|
|
6
|
+
## Slots / 插槽
|
|
7
|
+
|
|
8
|
+
| Name | Description (EN) | Description (CN) |
|
|
9
|
+
|------|-------------------|-------------------|
|
|
10
|
+
| (default) | Default slot for fallback content when image fails. | 图片加载失败时的后备内容。 |
|
|
11
|
+
|
|
12
|
+
## Properties / 属性
|
|
13
|
+
|
|
14
|
+
| Name | Type | Default | Description (EN) | Description (CN) |
|
|
15
|
+
|------|------|---------|-------------------|-------------------|
|
|
16
|
+
| src | `string` | `''` | Image source URL. | 图片源地址。 |
|
|
17
|
+
| alt | `string` | `''` | Alt text for the image. | 图片替代文本。 |
|
|
18
|
+
| text | `string` | `''` | Text used to generate initials fallback. | 用于生成首字母后备显示的文本。 |
|
|
19
|
+
| shape | `'circle' \| 'square'` | `'circle'` | Avatar shape variant. | 头像形状。 |
|
|
20
|
+
| size | `'sm' \| 'md' \| 'lg'` | `'md'` | Avatar size preset. | 头像尺寸预设。 |
|
|
21
|
+
|
|
22
|
+
## Events / 事件
|
|
23
|
+
|
|
24
|
+
| Name | Detail | Description (EN) | Description (CN) |
|
|
25
|
+
|------|--------|-------------------|-------------------|
|
|
26
|
+
| — | — | No custom events. | 无自定义事件。 |
|
|
27
|
+
|
|
28
|
+
## Examples / 示例
|
|
29
|
+
|
|
30
|
+
```html
|
|
31
|
+
<aithe-avatar src="/photo.jpg" alt="User" shape="circle" size="md"></aithe-avatar>
|
|
32
|
+
<aithe-avatar text="Jane Smith" shape="square" size="lg"></aithe-avatar>
|
|
33
|
+
```
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# AitheBadge / AitheBadge 徽标
|
|
2
|
+
|
|
3
|
+
> Badge / count indicator overlaid on an anchor element.
|
|
4
|
+
> 徽标/计数指示器,覆盖在锚点元素上。
|
|
5
|
+
|
|
6
|
+
## Slots / 插槽
|
|
7
|
+
|
|
8
|
+
| Name | Description (EN) | Description (CN) |
|
|
9
|
+
| --------- | ------------------------------------------------- | ------------------------------------- |
|
|
10
|
+
| (default) | Default slot for the anchor element. | 锚点元素内容。 |
|
|
11
|
+
| badge | Custom badge content (overrides `value` display). | 自定义徽标内容(覆盖 `value` 显示)。 |
|
|
12
|
+
|
|
13
|
+
## Properties / 属性
|
|
14
|
+
|
|
15
|
+
| Name | Type | Default | Description (EN) | Description (CN) |
|
|
16
|
+
| --------- | -------------------------------------------------------------- | ------------- | ----------------------------------------------- | ---------------------------- |
|
|
17
|
+
| value | `string` | `''` | Badge display value (number or string). | 徽标显示值(数字或字符串)。 |
|
|
18
|
+
| max-count | `number` | `99` | Maximum count before showing "N+" format. | 超过此数值显示"N+"格式。 |
|
|
19
|
+
| dot | `boolean` | `false` | Whether to show a small dot instead of a count. | 是否显示小圆点而非数字。 |
|
|
20
|
+
| position | `'top-right' \| 'top-left' \| 'bottom-right' \| 'bottom-left'` | `'top-right'` | Badge position relative to the anchor. | 徽标相对于锚点的位置。 |
|
|
21
|
+
|
|
22
|
+
## Events / 事件
|
|
23
|
+
|
|
24
|
+
| Name | Detail | Description (EN) | Description (CN) |
|
|
25
|
+
| ---- | ------ | ----------------- | ---------------- |
|
|
26
|
+
| — | — | No custom events. | 无自定义事件。 |
|
|
27
|
+
|
|
28
|
+
## Examples / 示例
|
|
29
|
+
|
|
30
|
+
```html
|
|
31
|
+
<aithe-badge value="5">
|
|
32
|
+
<aithe-button type="default">Messages</aithe-button>
|
|
33
|
+
</aithe-badge>
|
|
34
|
+
```
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# AitheButtonGroup / AitheButtonGroup 按钮组
|
|
2
|
+
|
|
3
|
+
> Button group layout helper for consistent spacing.
|
|
4
|
+
> 按钮组布局辅助组件,提供统一间距。
|
|
5
|
+
|
|
6
|
+
## Slots / 插槽
|
|
7
|
+
|
|
8
|
+
| Name | Description (EN) | Description (CN) |
|
|
9
|
+
|------|-------------------|-------------------|
|
|
10
|
+
| (default) | Default slot for button elements. | 按钮元素内容。 |
|
|
11
|
+
|
|
12
|
+
## Properties / 属性
|
|
13
|
+
|
|
14
|
+
| Name | Type | Default | Description (EN) | Description (CN) |
|
|
15
|
+
|------|------|---------|-------------------|-------------------|
|
|
16
|
+
| gap | `string` | `'var(--aithe-space-2)'` | Gap between buttons (CSS value). | 按钮间距(CSS 值)。 |
|
|
17
|
+
| vertical | `boolean` | `false` | Whether buttons are stacked vertically. | 是否垂直排列按钮。 |
|
|
18
|
+
|
|
19
|
+
## Events / 事件
|
|
20
|
+
|
|
21
|
+
| Name | Detail | Description (EN) | Description (CN) |
|
|
22
|
+
|------|--------|-------------------|-------------------|
|
|
23
|
+
| — | — | No custom events. | 无自定义事件。 |
|
|
24
|
+
|
|
25
|
+
## Examples / 示例
|
|
26
|
+
|
|
27
|
+
```html
|
|
28
|
+
<aithe-button-group gap="var(--aithe-space-3)">
|
|
29
|
+
<aithe-button>Cancel</aithe-button>
|
|
30
|
+
<aithe-button type="primary">Submit</aithe-button>
|
|
31
|
+
</aithe-button-group>
|
|
32
|
+
```
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# AitheButton / AitheButton 按钮
|
|
2
|
+
|
|
3
|
+
> Button component with multiple visual types, sizes, and states.
|
|
4
|
+
> 按钮组件,支持多种视觉类型、尺寸和状态。
|
|
5
|
+
|
|
6
|
+
## Slots / 插槽
|
|
7
|
+
|
|
8
|
+
| Name | Description (EN) | Description (CN) |
|
|
9
|
+
|------|-------------------|-------------------|
|
|
10
|
+
| (default) | Default slot for button label. | 默认插槽,用于按钮标签。 |
|
|
11
|
+
| prefix | Icon or content before the label. | 标签前的图标或内容。 |
|
|
12
|
+
| suffix | Icon or content after the label. | 标签后的图标或内容。 |
|
|
13
|
+
|
|
14
|
+
## Properties / 属性
|
|
15
|
+
|
|
16
|
+
| Name | Type | Default | Description (EN) | Description (CN) |
|
|
17
|
+
|------|------|---------|-------------------|-------------------|
|
|
18
|
+
| type | `'primary' \| 'default' \| 'dashed' \| 'text' \| 'link'` | `'default'` | Visual type of the button. | 按钮的视觉类型。 |
|
|
19
|
+
| size | `'small' \| 'medium' \| 'large'` | `'medium'` | Size scale of the button. | 按钮的尺寸规格。 |
|
|
20
|
+
| title | `string` | `''` | Display title (shown as tooltip). | 显示标题(作为工具提示)。 |
|
|
21
|
+
| icon | `string` | `''` | Icon name to display before the label. | 在标签前显示的图标名称。 |
|
|
22
|
+
| disabled | `boolean` | `false` | Whether the button is disabled. | 按钮是否禁用。 |
|
|
23
|
+
| loading | `boolean` | `false` | Whether the button shows a loading spinner. | 按钮是否显示加载旋转器。 |
|
|
24
|
+
| danger | `boolean` | `false` | Whether the button uses danger styling. | 按钮是否使用危险样式。 |
|
|
25
|
+
| block | `boolean` | `false` | Whether the button spans the full width of its container. | 按钮是否占满容器宽度。 |
|
|
26
|
+
|
|
27
|
+
## Events / 事件
|
|
28
|
+
|
|
29
|
+
| Name | Detail | Description (EN) | Description (CN) |
|
|
30
|
+
|------|--------|-------------------|-------------------|
|
|
31
|
+
| aithe-click | `{ originalEvent: MouseEvent }` | Emitted when the button is clicked (not when disabled/loading). | 按钮被点击时发出(禁用/加载时不发出)。 |
|
|
32
|
+
|
|
33
|
+
## Examples / 示例
|
|
34
|
+
|
|
35
|
+
```html
|
|
36
|
+
<aithe-button type="primary" size="medium" title="Submit form" icon="check">Submit</aithe-button>
|
|
37
|
+
<aithe-button type="danger" loading>Deleting...</aithe-button>
|
|
38
|
+
```
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# AitheCard / AitheCard 卡片
|
|
2
|
+
|
|
3
|
+
> Card container with header, body, and footer sections.
|
|
4
|
+
> 卡片容器,包含标题、正文和底部区域。
|
|
5
|
+
|
|
6
|
+
## Slots / 插槽
|
|
7
|
+
|
|
8
|
+
| Name | Description (EN) | Description (CN) |
|
|
9
|
+
|------|-------------------|-------------------|
|
|
10
|
+
| (default) | Default slot for card body content. | 卡片正文内容。 |
|
|
11
|
+
| header | Custom header content (overrides title). | 自定义头部内容(覆盖标题)。 |
|
|
12
|
+
| footer | Footer action area. | 底部操作区域。 |
|
|
13
|
+
|
|
14
|
+
## Properties / 属性
|
|
15
|
+
|
|
16
|
+
| Name | Type | Default | Description (EN) | Description (CN) |
|
|
17
|
+
|------|------|---------|-------------------|-------------------|
|
|
18
|
+
| title | `string` | `''` | Card title text. | 卡片标题文本。 |
|
|
19
|
+
| icon | `string` | `''` | Icon name displayed before the title. | 在标题前显示的图标名称。 |
|
|
20
|
+
| shadow | `number` | `2` | Shadow elevation level (0–4). | 阴影层级(0–4)。 |
|
|
21
|
+
| body-padding | `string` | `'var(--aithe-space-lg)'` | Padding for the card body section. | 卡片正文区域内边距。 |
|
|
22
|
+
| bordered | `boolean` | `true` | Whether to show a border around the card. | 是否显示卡片边框。 |
|
|
23
|
+
| divider | `'border' \| 'none'` | `'border'` | Divider style between header/body/footer sections. | 区域间分割线样式。 |
|
|
24
|
+
|
|
25
|
+
## Events / 事件
|
|
26
|
+
|
|
27
|
+
| Name | Detail | Description (EN) | Description (CN) |
|
|
28
|
+
|------|--------|-------------------|-------------------|
|
|
29
|
+
| — | — | No custom events. | 无自定义事件。 |
|
|
30
|
+
|
|
31
|
+
## Examples / 示例
|
|
32
|
+
|
|
33
|
+
```html
|
|
34
|
+
<aithe-card title="Settings" icon="settings" shadow="2">
|
|
35
|
+
<p>Card body content here.</p>
|
|
36
|
+
<span slot="footer">Updated just now</span>
|
|
37
|
+
</aithe-card>
|
|
38
|
+
|
|
39
|
+
<!-- No dividers between sections -->
|
|
40
|
+
<aithe-card title="Settings" icon="settings" divider="none">
|
|
41
|
+
<p>Card body content here.</p>
|
|
42
|
+
</aithe-card>
|
|
43
|
+
```
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# AitheChip / AitheChip 芯片
|
|
2
|
+
|
|
3
|
+
> Compact selectable chip with optional close button.
|
|
4
|
+
> 紧凑的可选中芯片,支持可选关闭按钮。
|
|
5
|
+
|
|
6
|
+
## Slots / 插槽
|
|
7
|
+
|
|
8
|
+
| Name | Description (EN) | Description (CN) |
|
|
9
|
+
|------|-------------------|-------------------|
|
|
10
|
+
| (default) | Default slot for chip label content. | 芯片标签内容。 |
|
|
11
|
+
|
|
12
|
+
## Properties / 属性
|
|
13
|
+
|
|
14
|
+
| Name | Type | Default | Description (EN) | Description (CN) |
|
|
15
|
+
|------|------|---------|-------------------|-------------------|
|
|
16
|
+
| selected | `boolean` | `false` | Whether the chip is selected. | 是否选中。 |
|
|
17
|
+
| closable | `boolean` | `false` | Whether the chip shows a close button. Clicking it animates and removes the chip from DOM. | 是否显示关闭按钮。点击后动画移除芯片。 |
|
|
18
|
+
|
|
19
|
+
## Events / 事件
|
|
20
|
+
|
|
21
|
+
| Name | Detail | Description (EN) | Description (CN) |
|
|
22
|
+
|------|--------|-------------------|-------------------|
|
|
23
|
+
| aithe-select | `{ selected }` | Emitted when chip selection state changes. | 选中状态变更时触发。 |
|
|
24
|
+
| aithe-close | — | Emitted when the close button is clicked, before the chip is removed from DOM. | 关闭按钮点击时触发,在芯片从 DOM 移除之前。 |
|
|
25
|
+
|
|
26
|
+
## Examples / 示例
|
|
27
|
+
|
|
28
|
+
```html
|
|
29
|
+
<aithe-chip closable>Filter Tag</aithe-chip>
|
|
30
|
+
```
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# AitheDivider / AitheDivider 分割线
|
|
2
|
+
|
|
3
|
+
> Horizontal or vertical divider line with optional label.
|
|
4
|
+
> 水平或垂直分割线,支持可选标签。
|
|
5
|
+
|
|
6
|
+
## Slots / 插槽
|
|
7
|
+
|
|
8
|
+
| Name | Description (EN) | Description (CN) |
|
|
9
|
+
|------|-------------------|-------------------|
|
|
10
|
+
| (default) | Default slot for divider label text (horizontal mode). | 分割线标签文本(水平模式)。 |
|
|
11
|
+
|
|
12
|
+
## Properties / 属性
|
|
13
|
+
|
|
14
|
+
| Name | Type | Default | Description (EN) | Description (CN) |
|
|
15
|
+
|------|------|---------|-------------------|-------------------|
|
|
16
|
+
| vertical | `boolean` | `false` | Whether the divider renders vertically. | 是否垂直渲染分割线。 |
|
|
17
|
+
| dashed | `boolean` | `false` | Whether the line style is dashed. | 是否使用虚线样式。 |
|
|
18
|
+
| label | `string` | `''` | Center label text for horizontal divider. | 水平分割线的居中标签文本。 |
|
|
19
|
+
|
|
20
|
+
## Events / 事件
|
|
21
|
+
|
|
22
|
+
| Name | Detail | Description (EN) | Description (CN) |
|
|
23
|
+
|------|--------|-------------------|-------------------|
|
|
24
|
+
| — | — | No custom events. | 无自定义事件。 |
|
|
25
|
+
|
|
26
|
+
## Examples / 示例
|
|
27
|
+
|
|
28
|
+
```html
|
|
29
|
+
<aithe-divider label="Section"></aithe-divider>
|
|
30
|
+
<aithe-divider vertical dashed></aithe-divider>
|
|
31
|
+
```
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# AitheEmpty / AitheEmpty 空状态
|
|
2
|
+
|
|
3
|
+
> Empty state placeholder with icon and text.
|
|
4
|
+
> 空状态占位组件,显示图标和提示文本。
|
|
5
|
+
|
|
6
|
+
## Slots / 插槽
|
|
7
|
+
|
|
8
|
+
| Name | Description (EN) | Description (CN) |
|
|
9
|
+
|------|-------------------|-------------------|
|
|
10
|
+
| (default) | Default slot for custom empty content (overrides icon + text). | 自定义空状态内容(覆盖图标和文本)。 |
|
|
11
|
+
|
|
12
|
+
## Properties / 属性
|
|
13
|
+
|
|
14
|
+
| Name | Type | Default | Description (EN) | Description (CN) |
|
|
15
|
+
|------|------|---------|-------------------|-------------------|
|
|
16
|
+
| text | `string` | `'暂无数据'` | Placeholder text. | 占位提示文本。 |
|
|
17
|
+
| icon | `string` | `'sparkles'` | Built-in icon name to display. | 显示的内置图标名称。 |
|
|
18
|
+
|
|
19
|
+
## Events / 事件
|
|
20
|
+
|
|
21
|
+
| Name | Detail | Description (EN) | Description (CN) |
|
|
22
|
+
|------|--------|-------------------|-------------------|
|
|
23
|
+
| — | — | No custom events. | 无自定义事件。 |
|
|
24
|
+
|
|
25
|
+
## Examples / 示例
|
|
26
|
+
|
|
27
|
+
```html
|
|
28
|
+
<aithe-empty text="No results found" icon="sparkles"></aithe-empty>
|
|
29
|
+
```
|