@aithe/aithe-ui 26.2.3 → 26.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -11
- package/dist/apps/admin/app.js +12 -0
- package/dist/apps/admin/components/admin-app.js +83 -0
- package/dist/apps/admin/components/admin-layout.d.ts +0 -1
- package/dist/apps/admin/components/admin-layout.d.ts.map +1 -1
- package/dist/apps/admin/components/admin-layout.js +250 -0
- package/dist/apps/admin/datahub/auth.js +24 -0
- package/dist/apps/admin/datahub/dashboard.js +16 -0
- package/dist/apps/admin/datahub/index.js +42 -0
- package/dist/apps/admin/datahub/menu.js +16 -0
- package/dist/apps/admin/datahub/mock/auth.js +11 -0
- package/dist/apps/admin/datahub/mock/dashboard.js +10 -0
- package/dist/apps/admin/datahub/mock/menu.js +42 -0
- package/dist/apps/admin/i18n/de-DE.js +37 -0
- package/dist/apps/admin/i18n/en-US.js +37 -0
- package/dist/apps/admin/i18n/es-ES.js +38 -0
- package/dist/apps/admin/i18n/fr-FR.js +37 -0
- package/dist/apps/admin/i18n/index.js +27 -0
- package/dist/apps/admin/i18n/ja-JP.js +38 -0
- package/dist/apps/admin/i18n/ko-KR.js +37 -0
- package/dist/apps/admin/i18n/pt-BR.js +37 -0
- package/dist/apps/admin/i18n/zh-CN.js +37 -0
- package/dist/apps/admin/i18n/zh-HK.js +37 -0
- package/dist/apps/admin/i18n/zh-TW.js +37 -0
- package/dist/apps/admin/pages/dashboard-page.d.ts +1 -0
- package/dist/apps/admin/pages/dashboard-page.d.ts.map +1 -1
- package/dist/apps/admin/pages/dashboard-page.js +199 -0
- package/dist/apps/admin/pages/login-page.js +278 -0
- package/dist/apps/admin/pages/not-found-page.js +57 -0
- package/dist/apps/admin/pages/role-page.js +76 -0
- package/dist/apps/admin/pages/settings-page.js +95 -0
- package/dist/apps/admin/pages/user-page.js +76 -0
- package/dist/apps/admin/router/index.js +43 -0
- package/dist/apps/admin/standalone.js +1 -0
- package/dist/apps/admin/store/auth.js +42 -0
- package/dist/apps/api/app.js +82 -0
- package/dist/apps/api/demo-data.d.ts.map +1 -1
- package/dist/apps/api/demo-data.js +965 -0
- package/dist/apps/api/docs-viewer.js +684 -0
- package/dist/apps/api/i18n/de-DE.d.ts.map +1 -1
- package/dist/apps/api/i18n/de-DE.js +130 -0
- package/dist/apps/api/i18n/en-US.d.ts.map +1 -1
- package/dist/apps/api/i18n/en-US.js +140 -0
- package/dist/apps/api/i18n/es-ES.d.ts.map +1 -1
- package/dist/apps/api/i18n/es-ES.js +130 -0
- package/dist/apps/api/i18n/fr-FR.d.ts.map +1 -1
- package/dist/apps/api/i18n/fr-FR.js +130 -0
- package/dist/apps/api/i18n/index.js +27 -0
- package/dist/apps/api/i18n/ja-JP.d.ts.map +1 -1
- package/dist/apps/api/i18n/ja-JP.js +130 -0
- package/dist/apps/api/i18n/ko-KR.d.ts.map +1 -1
- package/dist/apps/api/i18n/ko-KR.js +130 -0
- package/dist/apps/api/i18n/pt-BR.d.ts.map +1 -1
- package/dist/apps/api/i18n/pt-BR.js +130 -0
- package/dist/apps/api/i18n/zh-CN.d.ts.map +1 -1
- package/dist/apps/api/i18n/zh-CN.js +140 -0
- package/dist/apps/api/i18n/zh-HK.d.ts.map +1 -1
- package/dist/apps/api/i18n/zh-HK.js +130 -0
- package/dist/apps/api/i18n/zh-TW.d.ts.map +1 -1
- package/dist/apps/api/i18n/zh-TW.js +130 -0
- package/dist/apps/api/pages/docs.d.ts.map +1 -1
- package/dist/apps/api/pages/docs.js +367 -0
- package/dist/apps/api/standalone.js +1 -0
- package/dist/apps/demo/app.js +273 -0
- package/dist/apps/demo/editor.d.ts.map +1 -1
- package/dist/apps/demo/editor.js +270 -0
- package/dist/apps/demo/helpers.js +7 -0
- package/dist/apps/demo/i18n/de-DE.d.ts.map +1 -1
- package/dist/apps/demo/i18n/de-DE.js +269 -0
- package/dist/apps/demo/i18n/en-US.d.ts.map +1 -1
- package/dist/apps/demo/i18n/en-US.js +281 -0
- package/dist/apps/demo/i18n/es-ES.d.ts.map +1 -1
- package/dist/apps/demo/i18n/es-ES.js +269 -0
- package/dist/apps/demo/i18n/fr-FR.d.ts.map +1 -1
- package/dist/apps/demo/i18n/fr-FR.js +269 -0
- package/dist/apps/demo/i18n/index.js +27 -0
- package/dist/apps/demo/i18n/ja-JP.d.ts.map +1 -1
- package/dist/apps/demo/i18n/ja-JP.js +269 -0
- package/dist/apps/demo/i18n/ko-KR.d.ts.map +1 -1
- package/dist/apps/demo/i18n/ko-KR.js +269 -0
- package/dist/apps/demo/i18n/pt-BR.d.ts.map +1 -1
- package/dist/apps/demo/i18n/pt-BR.js +269 -0
- package/dist/apps/demo/i18n/zh-CN.d.ts.map +1 -1
- package/dist/apps/demo/i18n/zh-CN.js +281 -0
- package/dist/apps/demo/i18n/zh-HK.d.ts.map +1 -1
- package/dist/apps/demo/i18n/zh-HK.js +269 -0
- package/dist/apps/demo/i18n/zh-TW.d.ts.map +1 -1
- package/dist/apps/demo/i18n/zh-TW.js +269 -0
- package/dist/apps/demo/pages/autoform.js +412 -0
- package/dist/apps/demo/pages/basic.js +157 -0
- package/dist/apps/demo/pages/code.js +1088 -0
- package/dist/apps/demo/pages/container.js +42 -0
- package/dist/apps/demo/pages/dashboard.js +159 -0
- package/dist/apps/demo/pages/data.d.ts.map +1 -1
- package/dist/apps/demo/pages/data.js +327 -0
- package/dist/apps/demo/pages/display.d.ts.map +1 -1
- package/dist/apps/demo/pages/display.js +295 -0
- package/dist/apps/demo/pages/feedback.js +94 -0
- package/dist/apps/demo/pages/form.js +99 -0
- package/dist/apps/demo/pages/layout.js +74 -0
- package/dist/apps/demo/pages/navigation.js +54 -0
- package/dist/apps/demo/pages/progress.js +42 -0
- package/dist/apps/demo/pages/theme.js +126 -0
- package/dist/apps/demo/standalone.js +1 -0
- package/dist/components/basic/AGENTS.md +1 -0
- package/dist/components/basic/avatar.js +168 -0
- package/dist/components/basic/badge.js +157 -0
- package/dist/components/basic/button-group.js +70 -0
- package/dist/components/basic/button.d.ts +2 -4
- package/dist/components/basic/button.d.ts.map +1 -1
- package/dist/components/basic/button.js +315 -0
- package/dist/components/basic/card.js +186 -0
- package/dist/components/basic/chip.js +103 -0
- package/dist/components/basic/divider.js +127 -0
- package/dist/components/basic/empty.js +72 -0
- package/dist/components/basic/icon.js +129 -0
- package/dist/components/basic/input.d.ts.map +1 -1
- package/dist/components/basic/input.js +314 -0
- package/dist/components/basic/tag.d.ts +7 -2
- package/dist/components/basic/tag.d.ts.map +1 -1
- package/dist/components/basic/tag.js +248 -0
- package/dist/components/basic/textarea.d.ts +0 -1
- package/dist/components/basic/textarea.d.ts.map +1 -1
- package/dist/components/basic/textarea.js +130 -0
- package/dist/components/container/callout.js +108 -0
- package/dist/components/container/details.js +117 -0
- package/dist/components/container/scroller.js +144 -0
- package/dist/components/container/split-panel.js +150 -0
- package/dist/components/data/AGENTS.md +1 -1
- package/dist/components/data/box-table.d.ts +53 -0
- package/dist/components/data/box-table.d.ts.map +1 -0
- package/dist/components/data/box-table.js +220 -0
- package/dist/components/data/dropdown.d.ts +8 -5
- package/dist/components/data/dropdown.d.ts.map +1 -1
- package/dist/components/data/dropdown.js +219 -0
- package/dist/components/data/metrics-group.js +180 -0
- package/dist/components/data/metrics.d.ts +11 -0
- package/dist/components/data/metrics.d.ts.map +1 -1
- package/dist/components/data/metrics.js +309 -0
- package/dist/components/data/pagination.js +119 -0
- package/dist/components/data/tab-pane.d.ts +58 -12
- package/dist/components/data/tab-pane.d.ts.map +1 -1
- package/dist/components/data/tab-pane.js +130 -0
- package/dist/components/data/table-column.d.ts +29 -5
- package/dist/components/data/table-column.d.ts.map +1 -1
- package/dist/components/data/table-column.js +123 -0
- package/dist/components/data/table.d.ts +134 -54
- package/dist/components/data/table.d.ts.map +1 -1
- package/dist/components/data/table.js +1210 -0
- package/dist/components/data/tabs.d.ts +60 -3
- package/dist/components/data/tabs.d.ts.map +1 -1
- package/dist/components/data/tabs.js +416 -0
- package/dist/components/data/timeline-item.js +127 -0
- package/dist/components/data/timeline.js +204 -0
- package/dist/components/data/tree-menu.d.ts +12 -2
- package/dist/components/data/tree-menu.d.ts.map +1 -1
- package/dist/components/data/tree-menu.js +482 -0
- package/dist/components/data/tree.js +269 -0
- package/dist/components/display/AGENTS.md +5 -2
- package/dist/components/display/animated-image.js +98 -0
- package/dist/components/display/brief-box.d.ts +42 -0
- package/dist/components/display/brief-box.d.ts.map +1 -0
- package/dist/components/display/brief-box.js +117 -0
- package/dist/components/display/carousel.js +223 -0
- package/dist/components/display/code-editor.d.ts.map +1 -1
- package/dist/components/display/code-editor.js +976 -0
- package/dist/components/display/comparison.js +132 -0
- package/dist/components/display/desc-item.d.ts +48 -0
- package/dist/components/display/desc-item.d.ts.map +1 -0
- package/dist/components/display/desc-item.js +150 -0
- package/dist/components/display/desc.d.ts +64 -0
- package/dist/components/display/desc.d.ts.map +1 -0
- package/dist/components/display/desc.js +363 -0
- package/dist/components/display/detail-box.d.ts +51 -0
- package/dist/components/display/detail-box.d.ts.map +1 -0
- package/dist/components/display/detail-box.js +157 -0
- package/dist/components/display/label.js +166 -0
- package/dist/components/display/markdown-editor.js +319 -0
- package/dist/components/display/markdown.d.ts.map +1 -1
- package/dist/components/display/markdown.js +193 -0
- package/dist/components/display/mini-box.d.ts +31 -0
- package/dist/components/display/mini-box.d.ts.map +1 -0
- package/dist/components/display/mini-box.js +137 -0
- package/dist/components/display/profile.d.ts +18 -0
- package/dist/components/display/profile.d.ts.map +1 -0
- package/dist/components/display/profile.js +164 -0
- package/dist/components/feedback/AGENTS.md +1 -0
- package/dist/components/feedback/alert.js +150 -0
- package/dist/components/feedback/dialog.js +228 -0
- package/dist/components/feedback/drawer.d.ts.map +1 -1
- package/dist/components/feedback/drawer.js +338 -0
- package/dist/components/feedback/loading.js +130 -0
- package/dist/components/feedback/modal.d.ts.map +1 -1
- package/dist/components/feedback/modal.js +303 -0
- package/dist/components/feedback/notification.js +170 -0
- package/dist/components/feedback/popover.d.ts +1 -1
- package/dist/components/feedback/popover.js +124 -0
- package/dist/components/feedback/toast.js +142 -0
- package/dist/components/feedback/tooltip.d.ts +1 -1
- package/dist/components/feedback/tooltip.js +153 -0
- package/dist/components/form/AGENTS.md +4 -0
- package/dist/components/form/autoform-item.js +761 -0
- package/dist/components/form/autoform.d.ts +15 -5
- package/dist/components/form/autoform.d.ts.map +1 -1
- package/dist/components/form/autoform.js +303 -0
- package/dist/components/form/checkbox-group.js +118 -0
- package/dist/components/form/checkbox.js +123 -0
- package/dist/components/form/color-picker.js +148 -0
- package/dist/components/form/combobox.d.ts.map +1 -1
- package/dist/components/form/combobox.js +282 -0
- package/dist/components/form/date-picker.js +123 -0
- package/dist/components/form/form-item.d.ts.map +1 -1
- package/dist/components/form/form-item.js +141 -0
- package/dist/components/form/form.js +94 -0
- package/dist/components/form/radio-group.js +106 -0
- package/dist/components/form/radio.js +110 -0
- package/dist/components/form/rate.js +116 -0
- package/dist/components/form/select.d.ts +1 -1
- package/dist/components/form/select.js +495 -0
- package/dist/components/form/slider.js +134 -0
- package/dist/components/form/switch.js +146 -0
- package/dist/components/form/time-picker.js +92 -0
- package/dist/components/form/transfer.js +273 -0
- package/dist/components/form/upload.js +138 -0
- package/dist/components/framework/body.js +333 -0
- package/dist/components/framework/dashboard-panel.js +519 -0
- package/dist/components/framework/dashboard.d.ts.map +1 -1
- package/dist/components/framework/dashboard.js +1084 -0
- package/dist/components/framework/header.js +237 -0
- package/dist/components/framework/log-panel.js +637 -0
- package/dist/components/framework/page.js +151 -0
- package/dist/components/framework/sidebar.d.ts +4 -10
- package/dist/components/framework/sidebar.d.ts.map +1 -1
- package/dist/components/framework/sidebar.js +477 -0
- package/dist/components/layout/affix.js +137 -0
- package/dist/components/layout/col.js +103 -0
- package/dist/components/layout/collapse-item.js +165 -0
- package/dist/components/layout/collapse.js +108 -0
- package/dist/components/layout/container.js +92 -0
- package/dist/components/layout/flex.js +100 -0
- package/dist/components/layout/row.js +103 -0
- package/dist/components/layout/space.js +85 -0
- package/dist/components/navigation/back-top.js +127 -0
- package/dist/components/navigation/breadcrumb-item.js +108 -0
- package/dist/components/navigation/breadcrumb.js +70 -0
- package/dist/components/navigation/menu-item.js +181 -0
- package/dist/components/navigation/menu.js +126 -0
- package/dist/components/navigation/steps.js +183 -0
- package/dist/components/navigation/sub-menu.js +253 -0
- package/dist/components/progress/progress-bar.js +97 -0
- package/dist/components/progress/progress-ring.js +111 -0
- package/dist/components/progress/skeleton.js +108 -0
- package/dist/components/progress/spinner.js +129 -0
- package/dist/components/theme/locale-switch.js +241 -0
- package/dist/components/theme/shadow-picker.js +233 -0
- package/dist/components/theme/shape-picker.js +232 -0
- package/dist/components/theme/theme-picker.js +236 -0
- package/dist/components/theme/theme-preview.d.ts +1 -2
- package/dist/components/theme/theme-preview.d.ts.map +1 -1
- package/dist/components/theme/theme-preview.js +376 -0
- package/dist/components/theme/theme-switch.d.ts.map +1 -1
- package/dist/components/theme/theme-switch.js +318 -0
- package/dist/components/theme/typo-picker.js +219 -0
- package/dist/core/AGENTS.md +6 -1
- package/dist/core/aithe-element.d.ts +2 -2
- package/dist/core/aithe-element.js +135 -0
- package/dist/core/aithe-widget.js +30 -0
- package/dist/core/anchored-overlay.d.ts +3 -0
- package/dist/core/anchored-overlay.d.ts.map +1 -1
- package/dist/core/anchored-overlay.js +111 -0
- package/dist/core/autoform/autoform.js +79 -0
- package/dist/core/autoform/condition.js +170 -0
- package/dist/core/autoform/index.js +8 -0
- package/dist/core/autoform/types.js +7 -0
- package/dist/core/datahub/config/strategy.d.ts +1 -1
- package/dist/core/datahub/config/strategy.d.ts.map +1 -1
- package/dist/core/datahub/config/strategy.js +50 -0
- package/dist/core/datahub/core/adapter/fetch-adapter.d.ts +1 -1
- package/dist/core/datahub/core/adapter/fetch-adapter.d.ts.map +1 -1
- package/dist/core/datahub/core/adapter/fetch-adapter.js +118 -0
- package/dist/core/datahub/core/adapter/index.js +7 -0
- package/dist/core/datahub/core/adapter/mock-adapter.d.ts +1 -1
- package/dist/core/datahub/core/adapter/mock-adapter.d.ts.map +1 -1
- package/dist/core/datahub/core/adapter/mock-adapter.js +58 -0
- package/dist/core/datahub/core/api-styles.d.ts +1 -1
- package/dist/core/datahub/core/api-styles.d.ts.map +1 -1
- package/dist/core/datahub/core/api-styles.js +131 -0
- package/dist/core/datahub/core/datahub-core.d.ts +3 -3
- package/dist/core/datahub/core/datahub-core.d.ts.map +1 -1
- package/dist/core/datahub/core/datahub-core.js +441 -0
- package/dist/core/datahub/core/index.js +7 -0
- package/dist/core/datahub/index.js +50 -0
- package/dist/core/datahub/types.d.ts +6 -0
- package/dist/core/datahub/types.d.ts.map +1 -1
- package/dist/core/datahub/types.js +31 -0
- package/dist/core/datahub/utils/cache.js +55 -0
- package/dist/core/datahub/utils/common.js +23 -0
- package/dist/core/datahub/utils/dedup.d.ts +1 -1
- package/dist/core/datahub/utils/dedup.d.ts.map +1 -1
- package/dist/core/datahub/utils/dedup.js +52 -0
- package/dist/core/datahub/utils/idempotent.js +61 -0
- package/dist/core/datahub/utils/is-query.js +53 -0
- package/dist/core/datahub/utils/loading.js +78 -0
- package/dist/core/filter/__tests__/index.test.d.ts +2 -0
- package/dist/core/filter/__tests__/index.test.d.ts.map +1 -0
- package/dist/core/filter/__tests__/index.test.js +230 -0
- package/dist/core/filter/builtins.d.ts +60 -0
- package/dist/core/filter/builtins.d.ts.map +1 -0
- package/dist/core/filter/builtins.js +172 -0
- package/dist/core/filter/factory.d.ts +54 -0
- package/dist/core/filter/factory.d.ts.map +1 -0
- package/dist/core/filter/factory.js +96 -0
- package/dist/core/filter/index.d.ts +11 -0
- package/dist/core/filter/index.d.ts.map +1 -0
- package/dist/core/filter/index.js +9 -0
- package/dist/core/filter/types.d.ts +12 -0
- package/dist/core/filter/types.d.ts.map +1 -0
- package/dist/core/filter/types.js +1 -0
- package/dist/core/floating.js +132 -0
- package/dist/core/highlight/index.js +43 -0
- package/dist/core/highlight/lang-bash.js +27 -0
- package/dist/core/highlight/lang-c.js +27 -0
- package/dist/core/highlight/lang-cmake.js +27 -0
- package/dist/core/highlight/lang-cpp.js +27 -0
- package/dist/core/highlight/lang-css.js +24 -0
- package/dist/core/highlight/lang-dart.js +27 -0
- package/dist/core/highlight/lang-dockerfile.js +16 -0
- package/dist/core/highlight/lang-fsharp.js +23 -0
- package/dist/core/highlight/lang-go.js +22 -0
- package/dist/core/highlight/lang-html.js +12 -0
- package/dist/core/highlight/lang-java.js +22 -0
- package/dist/core/highlight/lang-javascript.js +26 -0
- package/dist/core/highlight/lang-json.js +13 -0
- package/dist/core/highlight/lang-jsonline.js +13 -0
- package/dist/core/highlight/lang-jsx.js +30 -0
- package/dist/core/highlight/lang-kotlin.js +27 -0
- package/dist/core/highlight/lang-latex.js +22 -0
- package/dist/core/highlight/lang-lua.js +26 -0
- package/dist/core/highlight/lang-makefile.js +22 -0
- package/dist/core/highlight/lang-markdown.js +18 -0
- package/dist/core/highlight/lang-objectivec.js +24 -0
- package/dist/core/highlight/lang-perl.js +30 -0
- package/dist/core/highlight/lang-powershell.js +23 -0
- package/dist/core/highlight/lang-python.js +27 -0
- package/dist/core/highlight/lang-r.js +21 -0
- package/dist/core/highlight/lang-ruby.js +29 -0
- package/dist/core/highlight/lang-rust.js +24 -0
- package/dist/core/highlight/lang-scala.js +26 -0
- package/dist/core/highlight/lang-sql.js +21 -0
- package/dist/core/highlight/lang-svelte.js +27 -0
- package/dist/core/highlight/lang-swift.js +28 -0
- package/dist/core/highlight/lang-tsx.js +35 -0
- package/dist/core/highlight/lang-typescript.js +31 -0
- package/dist/core/highlight/lang-vue.js +29 -0
- package/dist/core/highlight/lang-wasm.js +22 -0
- package/dist/core/highlight/lang-xml.js +12 -0
- package/dist/core/highlight/lang-yaml.js +14 -0
- package/dist/core/highlight/registry.js +99 -0
- package/dist/core/logger/LoggerCore.js +626 -0
- package/dist/core/logger/index.js +10 -0
- package/dist/core/logger/types.js +29 -0
- package/dist/core/markdown/index.js +20 -0
- package/dist/core/markdown/parser.d.ts +2 -0
- package/dist/core/markdown/parser.d.ts.map +1 -1
- package/dist/core/markdown/parser.js +376 -0
- package/dist/core/markdown/plugins.js +608 -0
- package/dist/core/markdown/types.d.ts +5 -0
- package/dist/core/markdown/types.d.ts.map +1 -1
- package/dist/core/markdown/types.js +7 -0
- package/dist/core/router/index.js +244 -0
- package/dist/core/styles.js +44 -0
- package/dist/core/types.d.ts +50 -3
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2812 -1253
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1670 -728
- package/dist/index.umd.js.map +1 -1
- package/dist/styles/aithe-ui.d.ts +23 -0
- package/dist/styles/aithe-ui.d.ts.map +1 -1
- package/dist/styles/aithe-ui.js +185 -0
- package/dist/styles/global.css.d.ts +1 -1
- package/dist/styles/global.css.d.ts.map +1 -1
- package/dist/styles/global.css.js +119 -0
- package/dist/styles/i18n/index.js +206 -0
- package/dist/styles/i18n/locales/de-DE.d.ts.map +1 -1
- package/dist/styles/i18n/locales/de-DE.js +148 -0
- package/dist/styles/i18n/locales/en-US.d.ts.map +1 -1
- package/dist/styles/i18n/locales/en-US.js +157 -0
- package/dist/styles/i18n/locales/es-ES.d.ts.map +1 -1
- package/dist/styles/i18n/locales/es-ES.js +148 -0
- package/dist/styles/i18n/locales/fr-FR.d.ts.map +1 -1
- package/dist/styles/i18n/locales/fr-FR.js +148 -0
- package/dist/styles/i18n/locales/index.js +14 -0
- package/dist/styles/i18n/locales/ja-JP.d.ts.map +1 -1
- package/dist/styles/i18n/locales/ja-JP.js +148 -0
- package/dist/styles/i18n/locales/ko-KR.d.ts.map +1 -1
- package/dist/styles/i18n/locales/ko-KR.js +148 -0
- package/dist/styles/i18n/locales/pt-BR.d.ts.map +1 -1
- package/dist/styles/i18n/locales/pt-BR.js +148 -0
- package/dist/styles/i18n/locales/zh-CN.d.ts.map +1 -1
- package/dist/styles/i18n/locales/zh-CN.js +157 -0
- package/dist/styles/i18n/locales/zh-HK.d.ts.map +1 -1
- package/dist/styles/i18n/locales/zh-HK.js +148 -0
- package/dist/styles/i18n/locales/zh-TW.d.ts.map +1 -1
- package/dist/styles/i18n/locales/zh-TW.js +148 -0
- package/dist/styles/layout/index.js +88 -0
- package/dist/styles/mixins.js +43 -0
- package/dist/styles/shadow/cyber.js +19 -0
- package/dist/styles/shadow/deep.js +19 -0
- package/dist/styles/shadow/diffuse.js +19 -0
- package/dist/styles/shadow/flat.js +19 -0
- package/dist/styles/shadow/glassmorphism.js +19 -0
- package/dist/styles/shadow/index.js +129 -0
- package/dist/styles/shadow/neumorphism.js +21 -0
- package/dist/styles/shadow/retro.js +19 -0
- package/dist/styles/shadow/sharp-business.js +19 -0
- package/dist/styles/shadow/skeuomorphic.js +21 -0
- package/dist/styles/shape/chamfer.js +19 -0
- package/dist/styles/shape/circle.js +19 -0
- package/dist/styles/shape/index.js +174 -0
- package/dist/styles/shape/organic.js +19 -0
- package/dist/styles/shape/pill.js +19 -0
- package/dist/styles/shape/rounded.js +21 -0
- package/dist/styles/shape/rounder.js +19 -0
- package/dist/styles/shape/sharp.js +19 -0
- package/dist/styles/shape/smooth.js +19 -0
- package/dist/styles/theme/aliyun.d.ts +1 -1
- package/dist/styles/theme/aliyun.d.ts.map +1 -1
- package/dist/styles/theme/aliyun.js +102 -0
- package/dist/styles/theme/amber.d.ts +1 -1
- package/dist/styles/theme/amber.d.ts.map +1 -1
- package/dist/styles/theme/amber.js +101 -0
- package/dist/styles/theme/blue.d.ts +1 -1
- package/dist/styles/theme/blue.d.ts.map +1 -1
- package/dist/styles/theme/blue.js +101 -0
- package/dist/styles/theme/charcoal.d.ts +1 -1
- package/dist/styles/theme/charcoal.d.ts.map +1 -1
- package/dist/styles/theme/charcoal.js +106 -0
- package/dist/styles/theme/cyan.d.ts +1 -1
- package/dist/styles/theme/cyan.d.ts.map +1 -1
- package/dist/styles/theme/cyan.js +96 -0
- package/dist/styles/theme/dark.d.ts +1 -1
- package/dist/styles/theme/dark.d.ts.map +1 -1
- package/dist/styles/theme/dark.js +106 -0
- package/dist/styles/theme/ebony.d.ts +1 -1
- package/dist/styles/theme/ebony.d.ts.map +1 -1
- package/dist/styles/theme/ebony.js +106 -0
- package/dist/styles/theme/festive.d.ts +1 -1
- package/dist/styles/theme/festive.d.ts.map +1 -1
- package/dist/styles/theme/festive.js +101 -0
- package/dist/styles/theme/graphite.d.ts +1 -1
- package/dist/styles/theme/graphite.d.ts.map +1 -1
- package/dist/styles/theme/graphite.js +106 -0
- package/dist/styles/theme/gray.d.ts +1 -1
- package/dist/styles/theme/gray.d.ts.map +1 -1
- package/dist/styles/theme/gray.js +101 -0
- package/dist/styles/theme/huawei.d.ts +1 -1
- package/dist/styles/theme/huawei.d.ts.map +1 -1
- package/dist/styles/theme/huawei.js +102 -0
- package/dist/styles/theme/index.d.ts +1 -1
- package/dist/styles/theme/index.d.ts.map +1 -1
- package/dist/styles/theme/index.js +276 -0
- package/dist/styles/theme/indigo.d.ts +1 -1
- package/dist/styles/theme/indigo.d.ts.map +1 -1
- package/dist/styles/theme/indigo.js +101 -0
- package/dist/styles/theme/ink.d.ts +1 -1
- package/dist/styles/theme/ink.d.ts.map +1 -1
- package/dist/styles/theme/ink.js +106 -0
- package/dist/styles/theme/light.d.ts +1 -1
- package/dist/styles/theme/light.d.ts.map +1 -1
- package/dist/styles/theme/light.js +102 -0
- package/dist/styles/theme/midnight.d.ts +1 -1
- package/dist/styles/theme/midnight.d.ts.map +1 -1
- package/dist/styles/theme/midnight.js +106 -0
- package/dist/styles/theme/navy.d.ts +1 -1
- package/dist/styles/theme/navy.d.ts.map +1 -1
- package/dist/styles/theme/navy.js +106 -0
- package/dist/styles/theme/obsidian.d.ts +1 -1
- package/dist/styles/theme/obsidian.d.ts.map +1 -1
- package/dist/styles/theme/obsidian.js +106 -0
- package/dist/styles/theme/onyx.d.ts +1 -1
- package/dist/styles/theme/onyx.d.ts.map +1 -1
- package/dist/styles/theme/onyx.js +106 -0
- package/dist/styles/theme/orange.d.ts +1 -1
- package/dist/styles/theme/orange.d.ts.map +1 -1
- package/dist/styles/theme/orange.js +101 -0
- package/dist/styles/theme/pink.d.ts +1 -1
- package/dist/styles/theme/pink.d.ts.map +1 -1
- package/dist/styles/theme/pink.js +101 -0
- package/dist/styles/theme/purple.d.ts +1 -1
- package/dist/styles/theme/purple.d.ts.map +1 -1
- package/dist/styles/theme/purple.js +101 -0
- package/dist/styles/theme/raisin.d.ts +1 -1
- package/dist/styles/theme/raisin.d.ts.map +1 -1
- package/dist/styles/theme/raisin.js +106 -0
- package/dist/styles/theme/slate.d.ts +1 -1
- package/dist/styles/theme/slate.d.ts.map +1 -1
- package/dist/styles/theme/slate.js +106 -0
- package/dist/styles/theme/teal.d.ts +1 -1
- package/dist/styles/theme/teal.d.ts.map +1 -1
- package/dist/styles/theme/teal.js +101 -0
- package/dist/styles/theme/tianyi.d.ts +1 -1
- package/dist/styles/theme/tianyi.d.ts.map +1 -1
- package/dist/styles/theme/tianyi.js +102 -0
- package/dist/styles/types.js +1 -0
- package/dist/styles/typo/business.js +34 -0
- package/dist/styles/typo/compact.js +34 -0
- package/dist/styles/typo/index.js +99 -0
- package/dist/styles/typo/luxury.js +34 -0
- package/dist/styles/typo/minimal.js +34 -0
- package/dist/types/index.js +2 -0
- package/dist/utils/dom.js +51 -0
- package/dist/utils/events.js +32 -0
- package/dist/utils/icon.js +176 -0
- package/dist/utils/index.js +4 -0
- package/dist/utils/utils.d.ts +5 -5
- package/dist/utils/utils.js +89 -0
- package/dist/utils/validation.js +52 -0
- package/docs/api/basic/button.md +9 -6
- package/docs/api/basic/tag.md +24 -17
- package/docs/api/data/box-table.md +73 -0
- package/docs/api/data/dropdown.md +3 -2
- package/docs/api/data/metrics.md +2 -0
- package/docs/api/data/table-column.md +37 -23
- package/docs/api/data/table.md +158 -44
- package/docs/api/data/tabs.md +46 -1
- package/docs/api/data/tree-menu.md +55 -2
- package/docs/api/display/box.md +66 -0
- package/docs/api/display/brief-box.md +73 -0
- package/docs/api/display/desc-item.md +57 -0
- package/docs/api/display/desc.md +204 -0
- package/docs/api/display/detail-box.md +75 -0
- package/docs/api/display/mini-box.md +100 -0
- package/docs/api/display/profile.md +92 -0
- package/docs/api/feedback/popover.md +10 -10
- package/docs/api/feedback/tooltip.md +14 -14
- package/docs/api/form/autoform-item.md +100 -0
- package/docs/api/form/autoform.md +4 -1
- package/docs/api/form/select.md +28 -28
- package/docs/api/framework/log-panel.md +46 -0
- package/docs/api/framework/sidebar.md +3 -2
- package/docs/api/summary.md +45 -35
- package/docs/api/theme/theme-switch.md +1 -1
- package/docs/autoform.md +13 -1
- package/docs/changelog/CHANGELOG.md +80 -0
- package/docs/changelog/VERSION_26.3.1.md +966 -0
- package/docs/datahub.md +1 -1
- package/docs/filter.md +332 -0
- package/docs/framework-integration.md +2 -2
- package/docs/guide.md +66 -1
- package/docs/i18n.md +2 -2
- package/docs/issue/issue_26.3.1.0.md +84 -0
- package/docs/issue/issue_26.3.1.1.md +72 -0
- package/docs/issue/issue_26.3.1.2.md +75 -0
- package/docs/issue/issue_26.3.1.3.md +78 -0
- package/docs/issue/issue_26.3.1.4.md +113 -0
- package/docs/issue/issue_26.3.1.5.md +142 -0
- package/docs/issue/issue_26.3.1.6.md +100 -0
- package/docs/issue/issue_26.3.1.7.md +78 -0
- package/docs/quickstart.md +5 -5
- package/package.json +5 -2
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Neumorphism shadow style tokens.
|
|
3
|
+
* 新拟态阴影风格令牌。
|
|
4
|
+
*
|
|
5
|
+
* Provides soft, extruded shadows with light and dark highlights
|
|
6
|
+
* for a tactile, 3D appearance.
|
|
7
|
+
* 提供柔和的凸起阴影,配合亮部和暗部高光,
|
|
8
|
+
* 营造触感强烈的3D效果。
|
|
9
|
+
*/
|
|
10
|
+
export const neumorphismShadowTokens = {
|
|
11
|
+
'--aithe-shadow-1': '5px 5px 12px rgba(18, 24, 38, 0.15), -5px -5px 12px rgba(255, 255, 255, 0.8)',
|
|
12
|
+
'--aithe-shadow-2': '8px 8px 18px rgba(18, 24, 38, 0.18), -8px -8px 18px rgba(255, 255, 255, 0.75)',
|
|
13
|
+
'--aithe-shadow-3': '10px 10px 24px rgba(18, 24, 38, 0.2), -10px -10px 24px rgba(255, 255, 255, 0.7)',
|
|
14
|
+
'--aithe-shadow-4': '14px 14px 30px rgba(18, 24, 38, 0.22), -14px -14px 30px rgba(255, 255, 255, 0.65)',
|
|
15
|
+
'--aithe-shadow-5': '18px 18px 36px rgba(18, 24, 38, 0.25), -18px -18px 36px rgba(255, 255, 255, 0.6)',
|
|
16
|
+
'--aithe-shadow-glow': 'none',
|
|
17
|
+
'--aithe-shadow-inner': 'inset 3px 3px 6px rgba(18, 24, 38, 0.1), inset -3px -3px 6px rgba(255, 255, 255, 0.7)',
|
|
18
|
+
'--aithe-shadow-blur': '0px',
|
|
19
|
+
'--aithe-shadow-opacity': '1',
|
|
20
|
+
'--aithe-shadow-border-glow': '0px',
|
|
21
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Retro shadow style tokens.
|
|
3
|
+
* 复古阴影风格令牌。
|
|
4
|
+
*
|
|
5
|
+
* Provides warm, vintage-toned shadows with a nostalgic aesthetic.
|
|
6
|
+
* 提供温暖、复古色调的阴影,营造怀旧感。
|
|
7
|
+
*/
|
|
8
|
+
export const retroShadowTokens = {
|
|
9
|
+
'--aithe-shadow-1': '0 2px 6px rgba(120, 90, 40, 0.15)',
|
|
10
|
+
'--aithe-shadow-2': '0 4px 10px rgba(120, 90, 40, 0.2)',
|
|
11
|
+
'--aithe-shadow-3': '0 6px 16px rgba(120, 90, 40, 0.25)',
|
|
12
|
+
'--aithe-shadow-4': '0 8px 22px rgba(120, 90, 40, 0.3)',
|
|
13
|
+
'--aithe-shadow-5': '0 12px 28px rgba(120, 90, 40, 0.35)',
|
|
14
|
+
'--aithe-shadow-glow': 'none',
|
|
15
|
+
'--aithe-shadow-inner': 'inset 0 0 60px rgba(120, 90, 40, 0.06)',
|
|
16
|
+
'--aithe-shadow-blur': '0px',
|
|
17
|
+
'--aithe-shadow-opacity': '1',
|
|
18
|
+
'--aithe-shadow-border-glow': '0px',
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sharp Business shadow style tokens.
|
|
3
|
+
* 商务锐利阴影风格令牌。
|
|
4
|
+
*
|
|
5
|
+
* Provides clean, bottom-aligned shadows for a professional, corporate look.
|
|
6
|
+
* 提供简洁、底部对齐的阴影,营造专业商务风格。
|
|
7
|
+
*/
|
|
8
|
+
export const sharpBusinessShadowTokens = {
|
|
9
|
+
'--aithe-shadow-1': '0 2px 0 rgba(18, 24, 38, 0.18)',
|
|
10
|
+
'--aithe-shadow-2': '0 3px 0 rgba(18, 24, 38, 0.22)',
|
|
11
|
+
'--aithe-shadow-3': '0 4px 0 rgba(18, 24, 38, 0.28)',
|
|
12
|
+
'--aithe-shadow-4': '0 5px 0 rgba(18, 24, 38, 0.34)',
|
|
13
|
+
'--aithe-shadow-5': '0 6px 0 rgba(18, 24, 38, 0.4)',
|
|
14
|
+
'--aithe-shadow-glow': 'none',
|
|
15
|
+
'--aithe-shadow-inner': 'none',
|
|
16
|
+
'--aithe-shadow-blur': '0px',
|
|
17
|
+
'--aithe-shadow-opacity': '1',
|
|
18
|
+
'--aithe-shadow-border-glow': '0px',
|
|
19
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skeuomorphic shadow style tokens (default).
|
|
3
|
+
* 拟物化阴影风格令牌(默认)。
|
|
4
|
+
*
|
|
5
|
+
* Provides layered shadows mimicking realistic depth and material.
|
|
6
|
+
* The default shadow style for Aithe UI.
|
|
7
|
+
* 提供模拟真实材质和立体感的多层阴影。
|
|
8
|
+
* Aithe UI 的默认阴影风格。
|
|
9
|
+
*/
|
|
10
|
+
export const skeuomorphicShadowTokens = {
|
|
11
|
+
'--aithe-shadow-1': '0 2px 4px rgba(18, 24, 38, 0.1), 0 4px 8px rgba(18, 24, 38, 0.06)',
|
|
12
|
+
'--aithe-shadow-2': '0 4px 8px rgba(18, 24, 38, 0.12), 0 8px 16px rgba(18, 24, 38, 0.08)',
|
|
13
|
+
'--aithe-shadow-3': '0 6px 12px rgba(18, 24, 38, 0.14), 0 12px 24px rgba(18, 24, 38, 0.1)',
|
|
14
|
+
'--aithe-shadow-4': '0 8px 16px rgba(18, 24, 38, 0.16), 0 16px 32px rgba(18, 24, 38, 0.12)',
|
|
15
|
+
'--aithe-shadow-5': '0 12px 20px rgba(18, 24, 38, 0.18), 0 20px 40px rgba(18, 24, 38, 0.14)',
|
|
16
|
+
'--aithe-shadow-glow': 'none',
|
|
17
|
+
'--aithe-shadow-inner': 'inset 0 1px 0 rgba(255, 255, 255, 0.15)',
|
|
18
|
+
'--aithe-shadow-blur': '0px',
|
|
19
|
+
'--aithe-shadow-opacity': '1',
|
|
20
|
+
'--aithe-shadow-border-glow': '0px',
|
|
21
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chamfer shape style tokens.
|
|
3
|
+
* 切角形状风格令牌。
|
|
4
|
+
*
|
|
5
|
+
* Provides asymmetric border-radius for a geometric, beveled look.
|
|
6
|
+
* 提供非对称圆角,营造几何斜切效果。
|
|
7
|
+
*/
|
|
8
|
+
export const chamferShapeTokens = {
|
|
9
|
+
'--aithe-radius-sm': '2px',
|
|
10
|
+
'--aithe-radius-md': '0px 8px 0px 8px',
|
|
11
|
+
'--aithe-radius-lg': '0px 12px 0px 12px',
|
|
12
|
+
'--aithe-radius-xl': '0px 16px 0px 16px',
|
|
13
|
+
'--aithe-radius-full': '0px 999px 0px 999px',
|
|
14
|
+
'--aithe-container-radius-sm': '2px',
|
|
15
|
+
'--aithe-container-radius-md': '0px 8px 0px 8px',
|
|
16
|
+
'--aithe-container-radius-lg': '0px 12px 0px 12px',
|
|
17
|
+
'--aithe-container-radius-xl': '0px 16px 0px 16px',
|
|
18
|
+
'--aithe-container-radius-full': '0px 999px 0px 999px',
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Circle shape style tokens.
|
|
3
|
+
* 圆形形状风格令牌。
|
|
4
|
+
*
|
|
5
|
+
* Provides fully circular (50%) border-radius for avatars and icons.
|
|
6
|
+
* 为头像和图标提供全圆形(50%)圆角。
|
|
7
|
+
*/
|
|
8
|
+
export const circleShapeTokens = {
|
|
9
|
+
'--aithe-radius-sm': '50%',
|
|
10
|
+
'--aithe-radius-md': '50%',
|
|
11
|
+
'--aithe-radius-lg': '50%',
|
|
12
|
+
'--aithe-radius-xl': '50%',
|
|
13
|
+
'--aithe-radius-full': '50%',
|
|
14
|
+
'--aithe-container-radius-sm': '10px',
|
|
15
|
+
'--aithe-container-radius-md': '16px',
|
|
16
|
+
'--aithe-container-radius-lg': '22px',
|
|
17
|
+
'--aithe-container-radius-xl': '28px',
|
|
18
|
+
'--aithe-container-radius-full': '999px',
|
|
19
|
+
};
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
export { sharpShapeTokens } from './sharp';
|
|
2
|
+
export { smoothShapeTokens } from './smooth';
|
|
3
|
+
export { roundedShapeTokens } from './rounded';
|
|
4
|
+
export { rounderShapeTokens } from './rounder';
|
|
5
|
+
export { pillShapeTokens } from './pill';
|
|
6
|
+
export { circleShapeTokens } from './circle';
|
|
7
|
+
export { chamferShapeTokens } from './chamfer';
|
|
8
|
+
export { organicShapeTokens } from './organic';
|
|
9
|
+
import { sharpShapeTokens } from './sharp';
|
|
10
|
+
import { smoothShapeTokens } from './smooth';
|
|
11
|
+
import { roundedShapeTokens } from './rounded';
|
|
12
|
+
import { rounderShapeTokens } from './rounder';
|
|
13
|
+
import { pillShapeTokens } from './pill';
|
|
14
|
+
import { circleShapeTokens } from './circle';
|
|
15
|
+
import { chamferShapeTokens } from './chamfer';
|
|
16
|
+
import { organicShapeTokens } from './organic';
|
|
17
|
+
/** Map of all built-in shape style names to their CSS variable token maps. 所有内置形状风格名称到其 CSS 变量 token 映射的映射表。 */
|
|
18
|
+
const SHAPE_TOKENS = {
|
|
19
|
+
sharp: sharpShapeTokens,
|
|
20
|
+
smooth: smoothShapeTokens,
|
|
21
|
+
rounded: roundedShapeTokens,
|
|
22
|
+
rounder: rounderShapeTokens,
|
|
23
|
+
pill: pillShapeTokens,
|
|
24
|
+
circle: circleShapeTokens,
|
|
25
|
+
chamfer: chamferShapeTokens,
|
|
26
|
+
organic: organicShapeTokens,
|
|
27
|
+
};
|
|
28
|
+
/** Border-radius preview values for each built-in shape. 每个内置形状的 border-radius 预览值。 */
|
|
29
|
+
const SHAPE_PREVIEW_RADIUS = {
|
|
30
|
+
sharp: '0px',
|
|
31
|
+
smooth: '4px',
|
|
32
|
+
rounded: '10px',
|
|
33
|
+
rounder: '16px',
|
|
34
|
+
pill: '999px',
|
|
35
|
+
circle: '50%',
|
|
36
|
+
chamfer: '0px 8px 0px 8px',
|
|
37
|
+
organic: '30% 70% 70% 30% / 30% 30% 70% 70%',
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Static tree menu data for shape selection, compatible with `<aithe-tree-menu>`.
|
|
41
|
+
* 用于形状选择的静态树形菜单数据,兼容 `<aithe-tree-menu>`。
|
|
42
|
+
* Each item carries a `preview` extension field with the border-radius value.
|
|
43
|
+
* 每个项携带 `preview` 扩展字段,包含 border-radius 值。
|
|
44
|
+
*/
|
|
45
|
+
export const shapeMenu = Object.keys(SHAPE_TOKENS).map((shape) => ({
|
|
46
|
+
id: shape,
|
|
47
|
+
label: shape.charAt(0).toUpperCase() + shape.slice(1),
|
|
48
|
+
preview: SHAPE_PREVIEW_RADIUS[shape],
|
|
49
|
+
i18n: `shapePicker.${shape}`,
|
|
50
|
+
}));
|
|
51
|
+
/** localStorage key for persisting the selected shape style. 用于持久化所选形状风格的 localStorage 键名。 */
|
|
52
|
+
const STORAGE_KEY = 'aithe-shape';
|
|
53
|
+
/** Default shape style name. 默认形状风格名称。 */
|
|
54
|
+
export const AITHE_DEFAULT_SHAPE = 'rounded';
|
|
55
|
+
/** Current active shape style. 当前激活的形状风格。 */
|
|
56
|
+
let currentShape = AITHE_DEFAULT_SHAPE;
|
|
57
|
+
/** Set of listener functions for shape style changes. 形状风格变更监听函数集合。 */
|
|
58
|
+
const listeners = new Set();
|
|
59
|
+
/**
|
|
60
|
+
* Get the CSS variable token map for a given shape style.
|
|
61
|
+
* 获取指定形状风格的 CSS 变量 token 映射。
|
|
62
|
+
*
|
|
63
|
+
* @param shape - Shape style name. 形状风格名称。
|
|
64
|
+
* @returns CSS variable token map, or `undefined` if not found. CSS 变量 token 映射,若未找到则返回 `undefined`。
|
|
65
|
+
*/
|
|
66
|
+
export function getShapeTokens(shape) {
|
|
67
|
+
return SHAPE_TOKENS[shape];
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Get the list of all built-in shape style names.
|
|
71
|
+
* 获取所有内置形状风格名称列表。
|
|
72
|
+
*
|
|
73
|
+
* @returns Array of built-in shape style names. 内置形状风格名称数组。
|
|
74
|
+
*/
|
|
75
|
+
export function getAitheShapes() {
|
|
76
|
+
return Object.keys(SHAPE_TOKENS);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Load the previously persisted shape style from localStorage.
|
|
80
|
+
* 从 localStorage 加载之前持久化的形状风格。
|
|
81
|
+
*
|
|
82
|
+
* @returns Stored shape name, or `undefined` if none. 存储的形状名称,若无则返回 `undefined`。
|
|
83
|
+
*/
|
|
84
|
+
function loadStoredShape() {
|
|
85
|
+
try {
|
|
86
|
+
const raw = localStorage.getItem(STORAGE_KEY);
|
|
87
|
+
if (!raw)
|
|
88
|
+
return undefined;
|
|
89
|
+
return raw;
|
|
90
|
+
}
|
|
91
|
+
catch {
|
|
92
|
+
return undefined;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Persist the shape style name to localStorage.
|
|
97
|
+
* 将形状风格名称持久化到 localStorage。
|
|
98
|
+
*
|
|
99
|
+
* @param shape - Shape style name to persist. 要持久化的形状风格名称。
|
|
100
|
+
*/
|
|
101
|
+
function storeShape(shape) {
|
|
102
|
+
try {
|
|
103
|
+
localStorage.setItem(STORAGE_KEY, shape);
|
|
104
|
+
}
|
|
105
|
+
catch {
|
|
106
|
+
// ignore
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Apply shape CSS variable tokens to the document root.
|
|
111
|
+
* 将形状 CSS 变量 token 应用到文档根元素。
|
|
112
|
+
*
|
|
113
|
+
* @param shape - Shape style name. 形状风格名称。
|
|
114
|
+
*/
|
|
115
|
+
function applyShapeTokens(shape) {
|
|
116
|
+
const root = document.documentElement;
|
|
117
|
+
const tokens = SHAPE_TOKENS[shape];
|
|
118
|
+
if (tokens) {
|
|
119
|
+
for (const [key, value] of Object.entries(tokens)) {
|
|
120
|
+
root.style.setProperty(key, value);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Set the global shape style and optionally persist to localStorage.
|
|
126
|
+
* 设置全局形状风格,可选持久化到 localStorage。
|
|
127
|
+
*
|
|
128
|
+
* @param shape - Shape style name to apply. 要应用的形状风格名称。
|
|
129
|
+
* @param persist - Whether to save to localStorage. Defaults to `true`. 是否保存到 localStorage,默认为 `true`。
|
|
130
|
+
*/
|
|
131
|
+
export function setAitheShape(shape, persist = true) {
|
|
132
|
+
if (shape === currentShape)
|
|
133
|
+
return;
|
|
134
|
+
currentShape = shape;
|
|
135
|
+
if (persist)
|
|
136
|
+
storeShape(shape);
|
|
137
|
+
document.documentElement.dataset.aitheShape = shape;
|
|
138
|
+
applyShapeTokens(shape);
|
|
139
|
+
for (const fn of listeners) {
|
|
140
|
+
fn();
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Get the current global shape style.
|
|
145
|
+
* 获取当前全局形状风格。
|
|
146
|
+
*
|
|
147
|
+
* @returns Current shape style name. 当前形状风格名称。
|
|
148
|
+
*/
|
|
149
|
+
export function getAitheShape() {
|
|
150
|
+
return currentShape;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Initialize the shape subsystem: load stored preference and apply shape tokens.
|
|
154
|
+
* 初始化形状子系统:加载存储的偏好并应用形状 token。
|
|
155
|
+
*
|
|
156
|
+
* @param defaultShape - Fallback shape when no stored preference exists. Defaults to `AITHE_DEFAULT_SHAPE`. 无存储偏好时的回退形状,默认为 `AITHE_DEFAULT_SHAPE`。
|
|
157
|
+
*/
|
|
158
|
+
export function initAitheShape(defaultShape = AITHE_DEFAULT_SHAPE) {
|
|
159
|
+
const stored = loadStoredShape();
|
|
160
|
+
currentShape = stored || defaultShape;
|
|
161
|
+
document.documentElement.dataset.aitheShape = currentShape;
|
|
162
|
+
applyShapeTokens(currentShape);
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Subscribe to shape style changes. Returns an unsubscribe function.
|
|
166
|
+
* 订阅形状风格变更,返回取消订阅函数。
|
|
167
|
+
*
|
|
168
|
+
* @param fn - Callback function invoked when shape changes. 形状变更时调用的回调函数。
|
|
169
|
+
* @returns Unsubscribe function. 取消订阅函数。
|
|
170
|
+
*/
|
|
171
|
+
export function onAitheShapeChange(fn) {
|
|
172
|
+
listeners.add(fn);
|
|
173
|
+
return () => listeners.delete(fn);
|
|
174
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Organic shape style tokens.
|
|
3
|
+
* 有机形状风格令牌。
|
|
4
|
+
*
|
|
5
|
+
* Provides fluid, blob-like border-radius for a playful, nature-inspired look.
|
|
6
|
+
* 提供流动、 blob 形状的圆角,营造活泼、自然的视觉效果。
|
|
7
|
+
*/
|
|
8
|
+
export const organicShapeTokens = {
|
|
9
|
+
'--aithe-radius-sm': '30% 70% 70% 30% / 30% 30% 70% 70%',
|
|
10
|
+
'--aithe-radius-md': '30% 70% 70% 30% / 30% 30% 70% 70%',
|
|
11
|
+
'--aithe-radius-lg': '60% 40% 30% 70% / 60% 30% 70% 40%',
|
|
12
|
+
'--aithe-radius-xl': '60% 40% 30% 70% / 60% 30% 70% 40%',
|
|
13
|
+
'--aithe-radius-full': '63% 37% 30% 70% / 60% 30% 70% 40%',
|
|
14
|
+
'--aithe-container-radius-sm': '4px 10px 4px 10px',
|
|
15
|
+
'--aithe-container-radius-md': '6px 14px 6px 14px',
|
|
16
|
+
'--aithe-container-radius-lg': '8px 18px 8px 18px',
|
|
17
|
+
'--aithe-container-radius-xl': '10px 22px 10px 22px',
|
|
18
|
+
'--aithe-container-radius-full': '12px 26px 12px 26px',
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pill shape style tokens.
|
|
3
|
+
* 药丸形状风格令牌。
|
|
4
|
+
*
|
|
5
|
+
* Provides fully rounded (999px) border-radius for buttons and tags.
|
|
6
|
+
* 为按钮和标签提供全圆角(999px)。
|
|
7
|
+
*/
|
|
8
|
+
export const pillShapeTokens = {
|
|
9
|
+
'--aithe-radius-sm': '999px',
|
|
10
|
+
'--aithe-radius-md': '999px',
|
|
11
|
+
'--aithe-radius-lg': '999px',
|
|
12
|
+
'--aithe-radius-xl': '999px',
|
|
13
|
+
'--aithe-radius-full': '999px',
|
|
14
|
+
'--aithe-container-radius-sm': '10px',
|
|
15
|
+
'--aithe-container-radius-md': '16px',
|
|
16
|
+
'--aithe-container-radius-lg': '22px',
|
|
17
|
+
'--aithe-container-radius-xl': '28px',
|
|
18
|
+
'--aithe-container-radius-full': '999px',
|
|
19
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rounded shape style tokens (default).
|
|
3
|
+
* 圆角形状风格令牌(默认)。
|
|
4
|
+
*
|
|
5
|
+
* Provides moderate border-radius for a friendly, approachable look.
|
|
6
|
+
* The default shape style for Aithe UI.
|
|
7
|
+
* 提供适中圆角,营造友好、亲切的视觉效果。
|
|
8
|
+
* Aithe UI 的默认形状风格。
|
|
9
|
+
*/
|
|
10
|
+
export const roundedShapeTokens = {
|
|
11
|
+
'--aithe-radius-sm': '6px',
|
|
12
|
+
'--aithe-radius-md': '10px',
|
|
13
|
+
'--aithe-radius-lg': '14px',
|
|
14
|
+
'--aithe-radius-xl': '20px',
|
|
15
|
+
'--aithe-radius-full': '999px',
|
|
16
|
+
'--aithe-container-radius-sm': '6px',
|
|
17
|
+
'--aithe-container-radius-md': '10px',
|
|
18
|
+
'--aithe-container-radius-lg': '14px',
|
|
19
|
+
'--aithe-container-radius-xl': '20px',
|
|
20
|
+
'--aithe-container-radius-full': '999px',
|
|
21
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rounder shape style tokens.
|
|
3
|
+
* 更圆润形状风格令牌。
|
|
4
|
+
*
|
|
5
|
+
* Provides larger border-radius for a softer, more rounded appearance.
|
|
6
|
+
* 提供更大的圆角,营造更加柔和、圆润的视觉效果。
|
|
7
|
+
*/
|
|
8
|
+
export const rounderShapeTokens = {
|
|
9
|
+
'--aithe-radius-sm': '10px',
|
|
10
|
+
'--aithe-radius-md': '16px',
|
|
11
|
+
'--aithe-radius-lg': '22px',
|
|
12
|
+
'--aithe-radius-xl': '28px',
|
|
13
|
+
'--aithe-radius-full': '999px',
|
|
14
|
+
'--aithe-container-radius-sm': '10px',
|
|
15
|
+
'--aithe-container-radius-md': '16px',
|
|
16
|
+
'--aithe-container-radius-lg': '22px',
|
|
17
|
+
'--aithe-container-radius-xl': '28px',
|
|
18
|
+
'--aithe-container-radius-full': '999px',
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sharp shape style tokens.
|
|
3
|
+
* 锐利形状风格令牌。
|
|
4
|
+
*
|
|
5
|
+
* Provides zero border-radius for a sharp, geometric appearance.
|
|
6
|
+
* 提供零圆角,营造锐利、几何化的外观。
|
|
7
|
+
*/
|
|
8
|
+
export const sharpShapeTokens = {
|
|
9
|
+
'--aithe-radius-sm': '0px',
|
|
10
|
+
'--aithe-radius-md': '0px',
|
|
11
|
+
'--aithe-radius-lg': '0px',
|
|
12
|
+
'--aithe-radius-xl': '0px',
|
|
13
|
+
'--aithe-radius-full': '0px',
|
|
14
|
+
'--aithe-container-radius-sm': '0px',
|
|
15
|
+
'--aithe-container-radius-md': '0px',
|
|
16
|
+
'--aithe-container-radius-lg': '0px',
|
|
17
|
+
'--aithe-container-radius-xl': '0px',
|
|
18
|
+
'--aithe-container-radius-full': '0px',
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Smooth shape style tokens.
|
|
3
|
+
* 平滑形状风格令牌。
|
|
4
|
+
*
|
|
5
|
+
* Provides subtle border-radius for a clean, professional look.
|
|
6
|
+
* 提供轻微圆角,营造简洁、专业的视觉效果。
|
|
7
|
+
*/
|
|
8
|
+
export const smoothShapeTokens = {
|
|
9
|
+
'--aithe-radius-sm': '2px',
|
|
10
|
+
'--aithe-radius-md': '4px',
|
|
11
|
+
'--aithe-radius-lg': '6px',
|
|
12
|
+
'--aithe-radius-xl': '8px',
|
|
13
|
+
'--aithe-radius-full': '999px',
|
|
14
|
+
'--aithe-container-radius-sm': '2px',
|
|
15
|
+
'--aithe-container-radius-md': '4px',
|
|
16
|
+
'--aithe-container-radius-lg': '6px',
|
|
17
|
+
'--aithe-container-radius-xl': '8px',
|
|
18
|
+
'--aithe-container-radius-full': '999px',
|
|
19
|
+
};
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
* vibrant, tech-innovative style.
|
|
7
7
|
* 灵感来自阿里云品牌色:橙色 primary (#FF6A00),配充满活力的科技创新风格。
|
|
8
8
|
*/
|
|
9
|
-
export declare const aliyunThemeTokens = "\n.aithe-theme-aliyun,\n[data-aithe-theme='aliyun'] {\n color-scheme: light;\n --aithe-primary-1: #fff7ed;\n --aithe-primary-2: #ffedd5;\n --aithe-primary-3: #ffd8a8;\n --aithe-primary-4: #ffbe78;\n --aithe-primary-5: #ffa04a;\n --aithe-primary-6: #ff8228;\n --aithe-primary-7: #ff6a00;\n --aithe-primary-8: #d65700;\n --aithe-primary-9: #ad4700;\n --aithe-primary-10: #8a3900;\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: #f6f7f9;\n --aithe-neutral-2: #ebedf2;\n --aithe-neutral-3: #d9dce6;\n --aithe-neutral-4: #bfc4d2;\n --aithe-neutral-5: #a2a8ba;\n --aithe-neutral-6: #848ba0;\n --aithe-neutral-7: #656d85;\n --aithe-neutral-8: #485069;\n --aithe-neutral-9: #2c344b;\n --aithe-neutral-10: #161c2e;\n --aithe-color-bg: #faf7f3;\n --aithe-color-bg-subtle: linear-gradient(180deg, #fefbf8 0%, #f5f0ea 100%);\n --aithe-color-surface: rgba(255, 255, 255, 0.88);\n --aithe-color-surface-elevated: rgba(255, 255, 255, 0.98);\n --aithe-color-surface-muted: #f0eae2;\n --aithe-color-border: rgba(255, 106, 0, 0.16);\n --aithe-color-border-strong: rgba(255, 106, 0, 0.28);\n --aithe-color-text: #0e1524;\n --aithe-color-text-muted: #3d4a64;\n --aithe-color-text-subtle: #6c7a94;\n --aithe-color-overlay: rgba(10, 15, 28, 0.50);\n --aithe-color-selection: rgba(255, 106, 0, 0.16);\n --aithe-color-focus-ring: rgba(255, 106, 0, 0.34);\n --aithe-color-text-on-primary: #ffffff;\n --aithe-code-keyword: #7c3aed;\n --aithe-code-boolean: #b45309;\n --aithe-code-builtin: #2563eb;\n --aithe-code-number: #b45309;\n --aithe-code-string: #15803d;\n --aithe-code-function: #2563eb;\n --aithe-code-type: #a16207;\n --aithe-code-preprocessor: #7c3aed;\n --aithe-code-tag: #dc2626;\n --aithe-code-attr: #b45309;\n --aithe-code-key: #dc2626;\n --aithe-code-punctuation: #5c6bc0;\n --aithe-code-entity: #b45309;\n --aithe-code-comment: #94a3b8;\n --aithe-code-doctype: #94a3b8;\n --aithe-code-placeholder: #94a3b8;\n}\n";
|
|
9
|
+
export declare const aliyunThemeTokens = "\n.aithe-theme-aliyun,\n[data-aithe-theme='aliyun'] {\n color-scheme: light;\n --aithe-primary-1: #fff7ed;\n --aithe-primary-2: #ffedd5;\n --aithe-primary-3: #ffd8a8;\n --aithe-primary-4: #ffbe78;\n --aithe-primary-5: #ffa04a;\n --aithe-primary-6: #ff8228;\n --aithe-primary-7: #ff6a00;\n --aithe-primary-8: #d65700;\n --aithe-primary-9: #ad4700;\n --aithe-primary-10: #8a3900;\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: #f6f7f9;\n --aithe-neutral-2: #ebedf2;\n --aithe-neutral-3: #d9dce6;\n --aithe-neutral-4: #bfc4d2;\n --aithe-neutral-5: #a2a8ba;\n --aithe-neutral-6: #848ba0;\n --aithe-neutral-7: #656d85;\n --aithe-neutral-8: #485069;\n --aithe-neutral-9: #2c344b;\n --aithe-neutral-10: #161c2e;\n --aithe-fill-1: #f7f8fa;\n --aithe-fill-2: #f0f1f3;\n --aithe-color-bg: #faf7f3;\n --aithe-color-bg-subtle: linear-gradient(180deg, #fefbf8 0%, #f5f0ea 100%);\n --aithe-color-surface: rgba(255, 255, 255, 0.88);\n --aithe-color-surface-elevated: rgba(255, 255, 255, 0.98);\n --aithe-color-surface-muted: #f0eae2;\n --aithe-color-surface-hover: rgba(0, 0, 0, 0.04);\n --aithe-color-border: rgba(255, 106, 0, 0.16);\n --aithe-color-border-strong: rgba(255, 106, 0, 0.28);\n --aithe-color-text: #0e1524;\n --aithe-color-text-muted: #3d4a64;\n --aithe-color-text-subtle: #6c7a94;\n --aithe-color-overlay: rgba(10, 15, 28, 0.50);\n --aithe-color-selection: rgba(255, 106, 0, 0.16);\n --aithe-color-focus-ring: rgba(255, 106, 0, 0.34);\n --aithe-color-text-secondary: #3d4a66;\n --aithe-color-bg-muted: #e8ecf4;\n --aithe-color-bg-hover: rgba(0, 0, 0, 0.04);\n --aithe-color-border-subtle: rgba(76, 94, 132, 0.10);\n --aithe-primary-6-rgb: 77, 141, 255;\n --aithe-color-text-on-primary: #ffffff;\n --aithe-code-keyword: #7c3aed;\n --aithe-code-boolean: #b45309;\n --aithe-code-builtin: #2563eb;\n --aithe-code-number: #b45309;\n --aithe-code-string: #15803d;\n --aithe-code-function: #2563eb;\n --aithe-code-type: #a16207;\n --aithe-code-preprocessor: #7c3aed;\n --aithe-code-tag: #dc2626;\n --aithe-code-attr: #b45309;\n --aithe-code-key: #dc2626;\n --aithe-code-punctuation: #5c6bc0;\n --aithe-code-entity: #b45309;\n --aithe-code-comment: #94a3b8;\n --aithe-code-doctype: #94a3b8;\n --aithe-code-placeholder: #94a3b8;\n}\n";
|
|
10
10
|
//# sourceMappingURL=aliyun.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aliyun.d.ts","sourceRoot":"","sources":["../../../src/styles/theme/aliyun.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"aliyun.d.ts","sourceRoot":"","sources":["../../../src/styles/theme/aliyun.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,knGA6F7B,CAAC"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Alibaba Cloud (Aliyun) theme tokens.
|
|
3
|
+
* 阿里云风格主题令牌。
|
|
4
|
+
*
|
|
5
|
+
* Inspired by Alibaba Cloud's brand identity: orange primary (#FF6A00) with
|
|
6
|
+
* vibrant, tech-innovative style.
|
|
7
|
+
* 灵感来自阿里云品牌色:橙色 primary (#FF6A00),配充满活力的科技创新风格。
|
|
8
|
+
*/
|
|
9
|
+
export const aliyunThemeTokens = `
|
|
10
|
+
.aithe-theme-aliyun,
|
|
11
|
+
[data-aithe-theme='aliyun'] {
|
|
12
|
+
color-scheme: light;
|
|
13
|
+
--aithe-primary-1: #fff7ed;
|
|
14
|
+
--aithe-primary-2: #ffedd5;
|
|
15
|
+
--aithe-primary-3: #ffd8a8;
|
|
16
|
+
--aithe-primary-4: #ffbe78;
|
|
17
|
+
--aithe-primary-5: #ffa04a;
|
|
18
|
+
--aithe-primary-6: #ff8228;
|
|
19
|
+
--aithe-primary-7: #ff6a00;
|
|
20
|
+
--aithe-primary-8: #d65700;
|
|
21
|
+
--aithe-primary-9: #ad4700;
|
|
22
|
+
--aithe-primary-10: #8a3900;
|
|
23
|
+
--aithe-success-1: #effcf7;
|
|
24
|
+
--aithe-success-2: #d2f5e4;
|
|
25
|
+
--aithe-success-3: #afead0;
|
|
26
|
+
--aithe-success-4: #7fd5af;
|
|
27
|
+
--aithe-success-5: #59bd92;
|
|
28
|
+
--aithe-success-6: #3aa478;
|
|
29
|
+
--aithe-success-7: #2d8964;
|
|
30
|
+
--aithe-success-8: #266f53;
|
|
31
|
+
--aithe-success-9: #215a45;
|
|
32
|
+
--aithe-success-10: #1b4938;
|
|
33
|
+
--aithe-warning-1: #fff8e9;
|
|
34
|
+
--aithe-warning-2: #ffefc7;
|
|
35
|
+
--aithe-warning-3: #ffdd90;
|
|
36
|
+
--aithe-warning-4: #ffc45c;
|
|
37
|
+
--aithe-warning-5: #f2aa3d;
|
|
38
|
+
--aithe-warning-6: #d38b25;
|
|
39
|
+
--aithe-warning-7: #af6e1b;
|
|
40
|
+
--aithe-warning-8: #8e5718;
|
|
41
|
+
--aithe-warning-9: #724618;
|
|
42
|
+
--aithe-warning-10: #5b3815;
|
|
43
|
+
--aithe-danger-1: #fff0f3;
|
|
44
|
+
--aithe-danger-2: #ffdbe2;
|
|
45
|
+
--aithe-danger-3: #ffbbc8;
|
|
46
|
+
--aithe-danger-4: #ff8fa1;
|
|
47
|
+
--aithe-danger-5: #f66a80;
|
|
48
|
+
--aithe-danger-6: #de5069;
|
|
49
|
+
--aithe-danger-7: #bd3f56;
|
|
50
|
+
--aithe-danger-8: #99354a;
|
|
51
|
+
--aithe-danger-9: #7c2f3f;
|
|
52
|
+
--aithe-danger-10: #632837;
|
|
53
|
+
--aithe-neutral-1: #f6f7f9;
|
|
54
|
+
--aithe-neutral-2: #ebedf2;
|
|
55
|
+
--aithe-neutral-3: #d9dce6;
|
|
56
|
+
--aithe-neutral-4: #bfc4d2;
|
|
57
|
+
--aithe-neutral-5: #a2a8ba;
|
|
58
|
+
--aithe-neutral-6: #848ba0;
|
|
59
|
+
--aithe-neutral-7: #656d85;
|
|
60
|
+
--aithe-neutral-8: #485069;
|
|
61
|
+
--aithe-neutral-9: #2c344b;
|
|
62
|
+
--aithe-neutral-10: #161c2e;
|
|
63
|
+
--aithe-fill-1: #f7f8fa;
|
|
64
|
+
--aithe-fill-2: #f0f1f3;
|
|
65
|
+
--aithe-color-bg: #faf7f3;
|
|
66
|
+
--aithe-color-bg-subtle: linear-gradient(180deg, #fefbf8 0%, #f5f0ea 100%);
|
|
67
|
+
--aithe-color-surface: rgba(255, 255, 255, 0.88);
|
|
68
|
+
--aithe-color-surface-elevated: rgba(255, 255, 255, 0.98);
|
|
69
|
+
--aithe-color-surface-muted: #f0eae2;
|
|
70
|
+
--aithe-color-surface-hover: rgba(0, 0, 0, 0.04);
|
|
71
|
+
--aithe-color-border: rgba(255, 106, 0, 0.16);
|
|
72
|
+
--aithe-color-border-strong: rgba(255, 106, 0, 0.28);
|
|
73
|
+
--aithe-color-text: #0e1524;
|
|
74
|
+
--aithe-color-text-muted: #3d4a64;
|
|
75
|
+
--aithe-color-text-subtle: #6c7a94;
|
|
76
|
+
--aithe-color-overlay: rgba(10, 15, 28, 0.50);
|
|
77
|
+
--aithe-color-selection: rgba(255, 106, 0, 0.16);
|
|
78
|
+
--aithe-color-focus-ring: rgba(255, 106, 0, 0.34);
|
|
79
|
+
--aithe-color-text-secondary: #3d4a66;
|
|
80
|
+
--aithe-color-bg-muted: #e8ecf4;
|
|
81
|
+
--aithe-color-bg-hover: rgba(0, 0, 0, 0.04);
|
|
82
|
+
--aithe-color-border-subtle: rgba(76, 94, 132, 0.10);
|
|
83
|
+
--aithe-primary-6-rgb: 77, 141, 255;
|
|
84
|
+
--aithe-color-text-on-primary: #ffffff;
|
|
85
|
+
--aithe-code-keyword: #7c3aed;
|
|
86
|
+
--aithe-code-boolean: #b45309;
|
|
87
|
+
--aithe-code-builtin: #2563eb;
|
|
88
|
+
--aithe-code-number: #b45309;
|
|
89
|
+
--aithe-code-string: #15803d;
|
|
90
|
+
--aithe-code-function: #2563eb;
|
|
91
|
+
--aithe-code-type: #a16207;
|
|
92
|
+
--aithe-code-preprocessor: #7c3aed;
|
|
93
|
+
--aithe-code-tag: #dc2626;
|
|
94
|
+
--aithe-code-attr: #b45309;
|
|
95
|
+
--aithe-code-key: #dc2626;
|
|
96
|
+
--aithe-code-punctuation: #5c6bc0;
|
|
97
|
+
--aithe-code-entity: #b45309;
|
|
98
|
+
--aithe-code-comment: #94a3b8;
|
|
99
|
+
--aithe-code-doctype: #94a3b8;
|
|
100
|
+
--aithe-code-placeholder: #94a3b8;
|
|
101
|
+
}
|
|
102
|
+
`;
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* Warm & gentle, mild warning & emphasis.
|
|
6
6
|
* 温暖柔和、温和警示与强调,适合内容平台、阅读场景、辅助提示。
|
|
7
7
|
*/
|
|
8
|
-
export declare const amberThemeTokens = "\n.aithe-theme-amber,\n[data-aithe-theme='amber'] {\n color-scheme: light;\n --aithe-primary-1: #fffbe6;\n --aithe-primary-2: #fff3c4;\n --aithe-primary-3: #ffe78a;\n --aithe-primary-4: #ffd84d;\n --aithe-primary-5: #f0c020;\n --aithe-primary-6: #d4a010;\n --aithe-primary-7: #b08008;\n --aithe-primary-8: #8c6206;\n --aithe-primary-9: #6a4a04;\n --aithe-primary-10: #483202;\n --aithe-success-1: #f2faf1;\n --aithe-success-2: #daf0d6;\n --aithe-success-3: #b6e0ae;\n --aithe-success-4: #84cc78;\n --aithe-success-5: #5ab84e;\n --aithe-success-6: #3a9e32;\n --aithe-success-7: #2c8028;\n --aithe-success-8: #236421;\n --aithe-success-9: #1b4c1a;\n --aithe-success-10: #143613;\n --aithe-warning-1: #fff9f0;\n --aithe-warning-2: #ffefcc;\n --aithe-warning-3: #ffe0a0;\n --aithe-warning-4: #ffcc6a;\n --aithe-warning-5: #f0b030;\n --aithe-warning-6: #c89018;\n --aithe-warning-7: #a07010;\n --aithe-warning-8: #7a550c;\n --aithe-warning-9: #563e08;\n --aithe-warning-10: #3a2a05;\n --aithe-danger-1: #fff1f0;\n --aithe-danger-2: #ffddd9;\n --aithe-danger-3: #ffc0b8;\n --aithe-danger-4: #ff9a8e;\n --aithe-danger-5: #f07068;\n --aithe-danger-6: #d44844;\n --aithe-danger-7: #b02e2c;\n --aithe-danger-8: #8c201e;\n --aithe-danger-9: #6a1616;\n --aithe-danger-10: #4a0e0e;\n --aithe-neutral-1: #faf9f5;\n --aithe-neutral-2: #f2efe6;\n --aithe-neutral-3: #e4ded2;\n --aithe-neutral-4: #cec4b2;\n --aithe-neutral-5: #b0a48e;\n --aithe-neutral-6: #928872;\n --aithe-neutral-7: #746c5c;\n --aithe-neutral-8: #565044;\n --aithe-neutral-9: #38342c;\n --aithe-neutral-10: #1c1a14;\n --aithe-color-bg: #fdfaf2;\n --aithe-color-bg-subtle: linear-gradient(180deg, #fffdf6 0%, #faf4e6 100%);\n --aithe-color-surface: rgba(255, 254, 248, 0.86);\n --aithe-color-surface-elevated: rgba(255, 255, 255, 0.98);\n --aithe-color-surface-muted: #f2ead8;\n --aithe-color-border: rgba(140, 100, 30, 0.18);\n --aithe-color-border-strong: rgba(120, 80, 20, 0.28);\n --aithe-color-text: #2a2210;\n --aithe-color-text-muted: #6e5a2e;\n --aithe-color-text-subtle: #9e8a5a;\n --aithe-color-overlay: rgba(24, 18, 4, 0.48);\n --aithe-color-selection: rgba(212, 160, 16, 0.16);\n --aithe-color-focus-ring: rgba(212, 160, 16, 0.36);\n --aithe-color-text-on-primary: #ffffff;\n --aithe-code-keyword: #7c3aed;\n --aithe-code-boolean: #92400e;\n --aithe-code-builtin: #b45309;\n --aithe-code-number: #92400e;\n --aithe-code-string: #15803d;\n --aithe-code-function: #b45309;\n --aithe-code-type: #78350f;\n --aithe-code-preprocessor: #7c3aed;\n --aithe-code-tag: #dc2626;\n --aithe-code-attr: #92400e;\n --aithe-code-key: #dc2626;\n --aithe-code-punctuation: #5c6bc0;\n --aithe-code-entity: #92400e;\n --aithe-code-comment: #746c5c;\n --aithe-code-doctype: #746c5c;\n --aithe-code-placeholder: #746c5c;\n}\n";
|
|
8
|
+
export declare const amberThemeTokens = "\n.aithe-theme-amber,\n[data-aithe-theme='amber'] {\n color-scheme: light;\n --aithe-primary-1: #fffbe6;\n --aithe-primary-2: #fff3c4;\n --aithe-primary-3: #ffe78a;\n --aithe-primary-4: #ffd84d;\n --aithe-primary-5: #f0c020;\n --aithe-primary-6: #d4a010;\n --aithe-primary-7: #b08008;\n --aithe-primary-8: #8c6206;\n --aithe-primary-9: #6a4a04;\n --aithe-primary-10: #483202;\n --aithe-success-1: #f2faf1;\n --aithe-success-2: #daf0d6;\n --aithe-success-3: #b6e0ae;\n --aithe-success-4: #84cc78;\n --aithe-success-5: #5ab84e;\n --aithe-success-6: #3a9e32;\n --aithe-success-7: #2c8028;\n --aithe-success-8: #236421;\n --aithe-success-9: #1b4c1a;\n --aithe-success-10: #143613;\n --aithe-warning-1: #fff9f0;\n --aithe-warning-2: #ffefcc;\n --aithe-warning-3: #ffe0a0;\n --aithe-warning-4: #ffcc6a;\n --aithe-warning-5: #f0b030;\n --aithe-warning-6: #c89018;\n --aithe-warning-7: #a07010;\n --aithe-warning-8: #7a550c;\n --aithe-warning-9: #563e08;\n --aithe-warning-10: #3a2a05;\n --aithe-danger-1: #fff1f0;\n --aithe-danger-2: #ffddd9;\n --aithe-danger-3: #ffc0b8;\n --aithe-danger-4: #ff9a8e;\n --aithe-danger-5: #f07068;\n --aithe-danger-6: #d44844;\n --aithe-danger-7: #b02e2c;\n --aithe-danger-8: #8c201e;\n --aithe-danger-9: #6a1616;\n --aithe-danger-10: #4a0e0e;\n --aithe-neutral-1: #faf9f5;\n --aithe-neutral-2: #f2efe6;\n --aithe-neutral-3: #e4ded2;\n --aithe-neutral-4: #cec4b2;\n --aithe-neutral-5: #b0a48e;\n --aithe-neutral-6: #928872;\n --aithe-neutral-7: #746c5c;\n --aithe-neutral-8: #565044;\n --aithe-neutral-9: #38342c;\n --aithe-neutral-10: #1c1a14;\n --aithe-fill-1: #f7f8fa;\n --aithe-fill-2: #f0f1f3;\n --aithe-color-bg: #fdfaf2;\n --aithe-color-bg-subtle: linear-gradient(180deg, #fffdf6 0%, #faf4e6 100%);\n --aithe-color-surface: rgba(255, 254, 248, 0.86);\n --aithe-color-surface-elevated: rgba(255, 255, 255, 0.98);\n --aithe-color-surface-muted: #f2ead8;\n --aithe-color-surface-hover: rgba(0, 0, 0, 0.04);\n --aithe-color-border: rgba(140, 100, 30, 0.18);\n --aithe-color-border-strong: rgba(120, 80, 20, 0.28);\n --aithe-color-text: #2a2210;\n --aithe-color-text-muted: #6e5a2e;\n --aithe-color-text-subtle: #9e8a5a;\n --aithe-color-overlay: rgba(24, 18, 4, 0.48);\n --aithe-color-selection: rgba(212, 160, 16, 0.16);\n --aithe-color-focus-ring: rgba(212, 160, 16, 0.36);\n --aithe-color-text-secondary: #3d4a66;\n --aithe-color-bg-muted: #e8ecf4;\n --aithe-color-bg-hover: rgba(0, 0, 0, 0.04);\n --aithe-color-border-subtle: rgba(76, 94, 132, 0.10);\n --aithe-primary-6-rgb: 77, 141, 255;\n --aithe-color-text-on-primary: #ffffff;\n --aithe-code-keyword: #7c3aed;\n --aithe-code-boolean: #92400e;\n --aithe-code-builtin: #b45309;\n --aithe-code-number: #92400e;\n --aithe-code-string: #15803d;\n --aithe-code-function: #b45309;\n --aithe-code-type: #78350f;\n --aithe-code-preprocessor: #7c3aed;\n --aithe-code-tag: #dc2626;\n --aithe-code-attr: #92400e;\n --aithe-code-key: #dc2626;\n --aithe-code-punctuation: #5c6bc0;\n --aithe-code-entity: #92400e;\n --aithe-code-comment: #746c5c;\n --aithe-code-doctype: #746c5c;\n --aithe-code-placeholder: #746c5c;\n}\n";
|
|
9
9
|
//# sourceMappingURL=amber.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"amber.d.ts","sourceRoot":"","sources":["../../../src/styles/theme/amber.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"amber.d.ts","sourceRoot":"","sources":["../../../src/styles/theme/amber.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,knGA6F5B,CAAC"}
|