@adia-ai/web-components 0.0.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 +195 -0
- package/a2ui/dockables/action.js +152 -0
- package/a2ui/dockables/base.js +30 -0
- package/a2ui/dockables/controller.js +97 -0
- package/a2ui/dockables/data-source.js +103 -0
- package/a2ui/dockables/index.js +6 -0
- package/a2ui/dockables/lifecycle.js +84 -0
- package/a2ui/dockables/provider.js +59 -0
- package/a2ui/index.js +19 -0
- package/a2ui/manifest-runtime.js +226 -0
- package/a2ui/registry.js +200 -0
- package/a2ui/renderer.js +361 -0
- package/a2ui/root.js +152 -0
- package/a2ui/stream.js +243 -0
- package/a2ui/surface-manifest.js +294 -0
- package/a2ui/surface.js +222 -0
- package/a2ui/wire-factory.js +134 -0
- package/a2ui/wiring-engine.js +209 -0
- package/a2ui/wiring-registry.js +342 -0
- package/components/accordion/accordion.a2ui.json +129 -0
- package/components/accordion/accordion.css +133 -0
- package/components/accordion/accordion.js +125 -0
- package/components/accordion/accordion.yaml +527 -0
- package/components/action-list/action-list.a2ui.json +64 -0
- package/components/action-list/action-list.css +115 -0
- package/components/action-list/action-list.js +149 -0
- package/components/action-list/action-list.yaml +56 -0
- package/components/agent-artifact/agent-artifact.a2ui.json +99 -0
- package/components/agent-artifact/agent-artifact.css +94 -0
- package/components/agent-artifact/agent-artifact.js +169 -0
- package/components/agent-artifact/agent-artifact.yaml +71 -0
- package/components/agent-feedback-bar/agent-feedback-bar.a2ui.json +91 -0
- package/components/agent-feedback-bar/agent-feedback-bar.css +33 -0
- package/components/agent-feedback-bar/agent-feedback-bar.js +152 -0
- package/components/agent-feedback-bar/agent-feedback-bar.yaml +65 -0
- package/components/agent-questions/agent-questions.a2ui.json +89 -0
- package/components/agent-questions/agent-questions.css +146 -0
- package/components/agent-questions/agent-questions.js +189 -0
- package/components/agent-questions/agent-questions.yaml +63 -0
- package/components/agent-reasoning/agent-reasoning.a2ui.json +100 -0
- package/components/agent-reasoning/agent-reasoning.css +273 -0
- package/components/agent-reasoning/agent-reasoning.js +469 -0
- package/components/agent-reasoning/agent-reasoning.yaml +70 -0
- package/components/agent-suggestions/agent-suggestions.a2ui.json +87 -0
- package/components/agent-suggestions/agent-suggestions.css +18 -0
- package/components/agent-suggestions/agent-suggestions.js +87 -0
- package/components/agent-suggestions/agent-suggestions.yaml +59 -0
- package/components/agent-trace/agent-trace.a2ui.json +78 -0
- package/components/agent-trace/agent-trace.css +275 -0
- package/components/agent-trace/agent-trace.js +216 -0
- package/components/agent-trace/agent-trace.yaml +53 -0
- package/components/alert/alert.a2ui.json +211 -0
- package/components/alert/alert.css +88 -0
- package/components/alert/alert.js +96 -0
- package/components/alert/alert.yaml +205 -0
- package/components/avatar/avatar.a2ui.json +215 -0
- package/components/avatar/avatar.css +159 -0
- package/components/avatar/avatar.js +157 -0
- package/components/avatar/avatar.yaml +559 -0
- package/components/badge/badge.a2ui.json +169 -0
- package/components/badge/badge.css +78 -0
- package/components/badge/badge.js +53 -0
- package/components/badge/badge.yaml +612 -0
- package/components/block/block.a2ui.json +135 -0
- package/components/block/block.css +29 -0
- package/components/block/block.js +23 -0
- package/components/block/block.yaml +115 -0
- package/components/breadcrumb/breadcrumb.a2ui.json +86 -0
- package/components/breadcrumb/breadcrumb.css +78 -0
- package/components/breadcrumb/breadcrumb.js +44 -0
- package/components/breadcrumb/breadcrumb.yaml +84 -0
- package/components/button/button.a2ui.json +172 -0
- package/components/button/button.css +168 -0
- package/components/button/button.js +60 -0
- package/components/button/button.yaml +120 -0
- package/components/calendar-picker/calendar-picker.a2ui.json +139 -0
- package/components/calendar-picker/calendar-picker.css +321 -0
- package/components/calendar-picker/calendar-picker.js +324 -0
- package/components/calendar-picker/calendar-picker.yaml +243 -0
- package/components/canvas/canvas.a2ui.json +75 -0
- package/components/canvas/canvas.css +52 -0
- package/components/canvas/canvas.js +179 -0
- package/components/canvas/canvas.yaml +62 -0
- package/components/card/card.a2ui.json +276 -0
- package/components/card/card.css +362 -0
- package/components/card/card.js +58 -0
- package/components/card/card.yaml +527 -0
- package/components/chart/chart.a2ui.json +298 -0
- package/components/chart/chart.css +512 -0
- package/components/chart/chart.js +1075 -0
- package/components/chart/chart.yaml +540 -0
- package/components/chat/chat-input.css +141 -0
- package/components/chat/chat-input.js +242 -0
- package/components/chat/chat.a2ui.json +181 -0
- package/components/chat/chat.css +193 -0
- package/components/chat/chat.js +155 -0
- package/components/chat/chat.yaml +230 -0
- package/components/check/check.a2ui.json +134 -0
- package/components/check/check.css +126 -0
- package/components/check/check.js +58 -0
- package/components/check/check.yaml +109 -0
- package/components/code/code.a2ui.json +153 -0
- package/components/code/code.css +133 -0
- package/components/code/code.js +114 -0
- package/components/code/code.yaml +163 -0
- package/components/col/col.a2ui.json +104 -0
- package/components/col/col.css +36 -0
- package/components/col/col.js +19 -0
- package/components/col/col.yaml +364 -0
- package/components/color-picker/color-picker.a2ui.json +100 -0
- package/components/color-picker/color-picker.css +182 -0
- package/components/color-picker/color-picker.js +537 -0
- package/components/color-picker/color-picker.yaml +105 -0
- package/components/command/command.a2ui.json +221 -0
- package/components/command/command.css +251 -0
- package/components/command/command.js +284 -0
- package/components/command/command.yaml +186 -0
- package/components/description-list/description-list.a2ui.json +89 -0
- package/components/description-list/description-list.css +70 -0
- package/components/description-list/description-list.js +75 -0
- package/components/description-list/description-list.yaml +59 -0
- package/components/divider/divider.a2ui.json +126 -0
- package/components/divider/divider.css +102 -0
- package/components/divider/divider.js +47 -0
- package/components/divider/divider.yaml +366 -0
- package/components/drawer/drawer.a2ui.json +199 -0
- package/components/drawer/drawer.css +342 -0
- package/components/drawer/drawer.js +263 -0
- package/components/drawer/drawer.yaml +366 -0
- package/components/embed/embed.a2ui.json +150 -0
- package/components/embed/embed.css +28 -0
- package/components/embed/embed.js +63 -0
- package/components/embed/embed.yaml +224 -0
- package/components/empty-state/empty-state.a2ui.json +133 -0
- package/components/empty-state/empty-state.css +58 -0
- package/components/empty-state/empty-state.js +87 -0
- package/components/empty-state/empty-state.yaml +314 -0
- package/components/footer/footer.a2ui.json +79 -0
- package/components/footer/footer.yaml +239 -0
- package/components/grid/grid.a2ui.json +171 -0
- package/components/grid/grid.css +37 -0
- package/components/grid/grid.js +21 -0
- package/components/grid/grid.yaml +577 -0
- package/components/header/header.a2ui.json +76 -0
- package/components/header/header.yaml +336 -0
- package/components/heatmap/heatmap.a2ui.json +150 -0
- package/components/heatmap/heatmap.css +146 -0
- package/components/heatmap/heatmap.js +246 -0
- package/components/heatmap/heatmap.yaml +131 -0
- package/components/icon/icon.a2ui.json +79 -0
- package/components/icon/icon.css +20 -0
- package/components/icon/icon.js +26 -0
- package/components/icon/icon.yaml +233 -0
- package/components/image/image.a2ui.json +261 -0
- package/components/image/image.css +76 -0
- package/components/image/image.js +102 -0
- package/components/image/image.yaml +477 -0
- package/components/index.js +85 -0
- package/components/input/input.a2ui.json +284 -0
- package/components/input/input.css +162 -0
- package/components/input/input.js +148 -0
- package/components/input/input.yaml +496 -0
- package/components/inspector/inspector.a2ui.json +67 -0
- package/components/inspector/inspector.css +31 -0
- package/components/inspector/inspector.js +133 -0
- package/components/inspector/inspector.yaml +58 -0
- package/components/kbd/kbd.a2ui.json +96 -0
- package/components/kbd/kbd.css +62 -0
- package/components/kbd/kbd.js +24 -0
- package/components/kbd/kbd.yaml +213 -0
- package/components/list/list.a2ui.json +145 -0
- package/components/list/list.css +103 -0
- package/components/list/list.js +236 -0
- package/components/list/list.yaml +122 -0
- package/components/menu/menu.a2ui.json +146 -0
- package/components/menu/menu.css +146 -0
- package/components/menu/menu.js +296 -0
- package/components/menu/menu.yaml +123 -0
- package/components/modal/modal.a2ui.json +136 -0
- package/components/modal/modal.css +153 -0
- package/components/modal/modal.js +181 -0
- package/components/modal/modal.yaml +114 -0
- package/components/noodles/noodles.a2ui.json +145 -0
- package/components/noodles/noodles.css +118 -0
- package/components/noodles/noodles.js +470 -0
- package/components/noodles/noodles.yaml +123 -0
- package/components/otp-input/otp-input.a2ui.json +104 -0
- package/components/otp-input/otp-input.css +78 -0
- package/components/otp-input/otp-input.js +170 -0
- package/components/otp-input/otp-input.yaml +218 -0
- package/components/pagination/pagination.a2ui.json +122 -0
- package/components/pagination/pagination.css +162 -0
- package/components/pagination/pagination.js +185 -0
- package/components/pagination/pagination.yaml +165 -0
- package/components/pane/pane.a2ui.json +94 -0
- package/components/pane/pane.css +166 -0
- package/components/pane/pane.js +140 -0
- package/components/pane/pane.yaml +197 -0
- package/components/pipeline-status/pipeline-status.a2ui.json +90 -0
- package/components/pipeline-status/pipeline-status.css +162 -0
- package/components/pipeline-status/pipeline-status.js +176 -0
- package/components/pipeline-status/pipeline-status.yaml +99 -0
- package/components/popover/popover.a2ui.json +181 -0
- package/components/popover/popover.css +57 -0
- package/components/popover/popover.js +170 -0
- package/components/popover/popover.yaml +257 -0
- package/components/progress/progress.a2ui.json +199 -0
- package/components/progress/progress.css +88 -0
- package/components/progress/progress.js +64 -0
- package/components/progress/progress.yaml +342 -0
- package/components/progress-row/progress-row.a2ui.json +100 -0
- package/components/progress-row/progress-row.css +57 -0
- package/components/progress-row/progress-row.js +92 -0
- package/components/progress-row/progress-row.yaml +87 -0
- package/components/radio/radio.a2ui.json +232 -0
- package/components/radio/radio.css +102 -0
- package/components/radio/radio.js +73 -0
- package/components/radio/radio.yaml +248 -0
- package/components/range/range.a2ui.json +151 -0
- package/components/range/range.css +148 -0
- package/components/range/range.js +177 -0
- package/components/range/range.yaml +188 -0
- package/components/rating/rating.a2ui.json +105 -0
- package/components/rating/rating.css +92 -0
- package/components/rating/rating.js +138 -0
- package/components/rating/rating.yaml +74 -0
- package/components/richtext/richtext.a2ui.json +82 -0
- package/components/richtext/richtext.css +225 -0
- package/components/richtext/richtext.js +74 -0
- package/components/richtext/richtext.yaml +89 -0
- package/components/row/row.a2ui.json +102 -0
- package/components/row/row.css +51 -0
- package/components/row/row.js +39 -0
- package/components/row/row.yaml +358 -0
- package/components/search/search.a2ui.json +186 -0
- package/components/search/search.css +28 -0
- package/components/search/search.js +124 -0
- package/components/search/search.yaml +154 -0
- package/components/section/section.a2ui.json +78 -0
- package/components/section/section.yaml +338 -0
- package/components/segment/segment.a2ui.json +100 -0
- package/components/segment/segment.css +81 -0
- package/components/segment/segment.js +32 -0
- package/components/segment/segment.yaml +216 -0
- package/components/segmented/segmented.a2ui.json +106 -0
- package/components/segmented/segmented.css +67 -0
- package/components/segmented/segmented.js +149 -0
- package/components/segmented/segmented.yaml +91 -0
- package/components/select/select.a2ui.json +203 -0
- package/components/select/select.css +277 -0
- package/components/select/select.js +388 -0
- package/components/select/select.yaml +375 -0
- package/components/skeleton/skeleton.a2ui.json +120 -0
- package/components/skeleton/skeleton.css +47 -0
- package/components/skeleton/skeleton.js +43 -0
- package/components/skeleton/skeleton.yaml +153 -0
- package/components/slider/slider.a2ui.json +162 -0
- package/components/slider/slider.css +137 -0
- package/components/slider/slider.js +162 -0
- package/components/slider/slider.yaml +299 -0
- package/components/stack/stack.a2ui.json +62 -0
- package/components/stack/stack.css +28 -0
- package/components/stack/stack.js +18 -0
- package/components/stack/stack.yaml +54 -0
- package/components/stat/stat.a2ui.json +246 -0
- package/components/stat/stat.css +101 -0
- package/components/stat/stat.js +91 -0
- package/components/stat/stat.yaml +206 -0
- package/components/stepper/stepper.a2ui.json +77 -0
- package/components/stepper/stepper.css +243 -0
- package/components/stepper/stepper.js +118 -0
- package/components/stepper/stepper.yaml +73 -0
- package/components/stream/stream.a2ui.json +98 -0
- package/components/stream/stream.css +37 -0
- package/components/stream/stream.js +99 -0
- package/components/stream/stream.yaml +87 -0
- package/components/swiper/swiper.a2ui.json +140 -0
- package/components/swiper/swiper.css +267 -0
- package/components/swiper/swiper.js +285 -0
- package/components/swiper/swiper.yaml +268 -0
- package/components/switch/switch.a2ui.json +134 -0
- package/components/switch/switch.css +104 -0
- package/components/switch/switch.js +53 -0
- package/components/switch/switch.yaml +322 -0
- package/components/table/cell-types.js +296 -0
- package/components/table/table.a2ui.json +458 -0
- package/components/table/table.css +531 -0
- package/components/table/table.js +1392 -0
- package/components/table/table.yaml +528 -0
- package/components/tabs/tab.js +34 -0
- package/components/tabs/tabs.a2ui.json +174 -0
- package/components/tabs/tabs.css +162 -0
- package/components/tabs/tabs.js +226 -0
- package/components/tabs/tabs.yaml +255 -0
- package/components/tag/tag.a2ui.json +148 -0
- package/components/tag/tag.css +118 -0
- package/components/tag/tag.js +88 -0
- package/components/tag/tag.yaml +125 -0
- package/components/text/text.a2ui.json +99 -0
- package/components/text/text.css +65 -0
- package/components/text/text.js +35 -0
- package/components/text/text.yaml +360 -0
- package/components/textarea/textarea.a2ui.json +91 -0
- package/components/textarea/textarea.css +93 -0
- package/components/textarea/textarea.js +114 -0
- package/components/textarea/textarea.yaml +79 -0
- package/components/timeline/timeline.a2ui.json +82 -0
- package/components/timeline/timeline.css +389 -0
- package/components/timeline/timeline.js +171 -0
- package/components/timeline/timeline.yaml +185 -0
- package/components/toast/toast.a2ui.json +199 -0
- package/components/toast/toast.css +211 -0
- package/components/toast/toast.js +146 -0
- package/components/toast/toast.yaml +184 -0
- package/components/toggle-group/toggle-group.a2ui.json +126 -0
- package/components/toggle-group/toggle-group.css +102 -0
- package/components/toggle-group/toggle-group.js +147 -0
- package/components/toggle-group/toggle-group.yaml +98 -0
- package/components/toolbar/toolbar.a2ui.json +131 -0
- package/components/toolbar/toolbar.css +132 -0
- package/components/toolbar/toolbar.js +366 -0
- package/components/toolbar/toolbar.yaml +238 -0
- package/components/tooltip/tooltip.a2ui.json +148 -0
- package/components/tooltip/tooltip.css +39 -0
- package/components/tooltip/tooltip.js +96 -0
- package/components/tooltip/tooltip.yaml +201 -0
- package/components/tree/tree.a2ui.json +119 -0
- package/components/tree/tree.css +133 -0
- package/components/tree/tree.js +253 -0
- package/components/tree/tree.yaml +92 -0
- package/components/upload/upload.a2ui.json +185 -0
- package/components/upload/upload.css +115 -0
- package/components/upload/upload.js +189 -0
- package/components/upload/upload.yaml +302 -0
- package/core/anchor.js +187 -0
- package/core/controller.js +182 -0
- package/core/element.js +257 -0
- package/core/form.js +217 -0
- package/core/icons.js +180 -0
- package/core/markdown.js +95 -0
- package/core/polyfills.js +23 -0
- package/core/provider.js +262 -0
- package/core/signals.js +113 -0
- package/core/template.js +226 -0
- package/core/transport.js +77 -0
- package/package.json +38 -0
- package/patterns/adia-chat/adia-chat.a2ui.json +149 -0
- package/patterns/adia-chat/adia-chat.css +10 -0
- package/patterns/adia-chat/adia-chat.js +297 -0
- package/patterns/adia-chat/adia-chat.yaml +118 -0
- package/patterns/adia-chat/css/adia-chat.empty.css +12 -0
- package/patterns/adia-chat/css/adia-chat.layout.css +60 -0
- package/patterns/adia-chat/css/adia-chat.markdown.css +74 -0
- package/patterns/adia-chat/css/adia-chat.messages.css +87 -0
- package/patterns/adia-chat/css/adia-chat.streaming.css +30 -0
- package/patterns/adia-chat/css/adia-chat.tokens.css +95 -0
- package/patterns/adia-chat/index.html +93 -0
- package/patterns/adia-editor/adia-editor.a2ui.json +58 -0
- package/patterns/adia-editor/adia-editor.css +6 -0
- package/patterns/adia-editor/adia-editor.js +56 -0
- package/patterns/adia-editor/adia-editor.yaml +36 -0
- package/patterns/adia-editor/css/adia-editor.layout.css +86 -0
- package/patterns/adia-editor/css/adia-editor.tokens.css +28 -0
- package/patterns/adia-editor/index.html +179 -0
- package/patterns/app-nav/app-nav.a2ui.json +89 -0
- package/patterns/app-nav/app-nav.css +92 -0
- package/patterns/app-nav/app-nav.js +99 -0
- package/patterns/app-nav/app-nav.yaml +54 -0
- package/patterns/app-nav-group/app-nav-group.a2ui.json +82 -0
- package/patterns/app-nav-group/app-nav-group.css +261 -0
- package/patterns/app-nav-group/app-nav-group.js +116 -0
- package/patterns/app-nav-group/app-nav-group.yaml +59 -0
- package/patterns/app-nav-item/app-nav-item.a2ui.json +83 -0
- package/patterns/app-nav-item/app-nav-item.css +156 -0
- package/patterns/app-nav-item/app-nav-item.js +42 -0
- package/patterns/app-nav-item/app-nav-item.yaml +62 -0
- package/patterns/app-shell/app-shell.a2ui.json +114 -0
- package/patterns/app-shell/app-shell.css +14 -0
- package/patterns/app-shell/app-shell.js +251 -0
- package/patterns/app-shell/app-shell.yaml +66 -0
- package/patterns/app-shell/css/app-shell.collapsed.css +86 -0
- package/patterns/app-shell/css/app-shell.helpers.css +42 -0
- package/patterns/app-shell/css/app-shell.main.css +58 -0
- package/patterns/app-shell/css/app-shell.shell.css +44 -0
- package/patterns/app-shell/css/app-shell.sidebar.css +116 -0
- package/patterns/app-shell/css/app-shell.templates.css +214 -0
- package/patterns/app-shell/css/app-shell.tokens.css +116 -0
- package/patterns/app-shell/index.html +112 -0
- package/patterns/gen-ui/gen-ui.a2ui.json +72 -0
- package/patterns/gen-ui/gen-ui.css +83 -0
- package/patterns/gen-ui/gen-ui.js +136 -0
- package/patterns/gen-ui/gen-ui.yaml +43 -0
- package/patterns/index.js +10 -0
- package/patterns/section-nav/section-nav.a2ui.json +91 -0
- package/patterns/section-nav/section-nav.css +59 -0
- package/patterns/section-nav/section-nav.js +42 -0
- package/patterns/section-nav/section-nav.yaml +58 -0
- package/patterns/section-nav-group/section-nav-group.a2ui.json +95 -0
- package/patterns/section-nav-group/section-nav-group.css +74 -0
- package/patterns/section-nav-group/section-nav-group.js +84 -0
- package/patterns/section-nav-group/section-nav-group.yaml +66 -0
- package/patterns/section-nav-item/section-nav-item.a2ui.json +97 -0
- package/patterns/section-nav-item/section-nav-item.css +96 -0
- package/patterns/section-nav-item/section-nav-item.js +66 -0
- package/patterns/section-nav-item/section-nav-item.yaml +70 -0
- package/styles/colors/index.css +6 -0
- package/styles/colors/parameters.css +52 -0
- package/styles/colors/primitives-accent.css +89 -0
- package/styles/colors/primitives-brand.css +89 -0
- package/styles/colors/primitives-danger.css +89 -0
- package/styles/colors/primitives-info.css +89 -0
- package/styles/colors/primitives-neutral.css +91 -0
- package/styles/colors/primitives-shared.css +57 -0
- package/styles/colors/primitives-success.css +89 -0
- package/styles/colors/primitives-warning.css +89 -0
- package/styles/colors/primitives.css +17 -0
- package/styles/colors/scrims.css +182 -0
- package/styles/colors/semantics.css +595 -0
- package/styles/colors/surfaces.css +43 -0
- package/styles/fonts.css +99 -0
- package/styles/layouts/admin.css +7 -0
- package/styles/prose.css +186 -0
- package/styles/styles.css +193 -0
- package/styles/themes.css +155 -0
- package/styles/tokens.css +304 -0
- package/styles/typography.css +853 -0
- package/traits/active-state.js +24 -0
- package/traits/anchor-positioning.js +66 -0
- package/traits/attention-pulse.js +30 -0
- package/traits/confetti-burst.js +65 -0
- package/traits/confetti.js +57 -0
- package/traits/count-up.js +42 -0
- package/traits/define.js +76 -0
- package/traits/dirty-state.js +38 -0
- package/traits/drag-ghost.js +38 -0
- package/traits/draggable.js +73 -0
- package/traits/fade-presence.js +52 -0
- package/traits/focus-trap.js +63 -0
- package/traits/focusable.js +38 -0
- package/traits/glow-focus.js +33 -0
- package/traits/gradient-shift.js +32 -0
- package/traits/haptic-feedback.js +28 -0
- package/traits/hotkey.js +62 -0
- package/traits/hoverable.js +26 -0
- package/traits/index.js +55 -0
- package/traits/inertia-drag.js +133 -0
- package/traits/intersection-observer.js +33 -0
- package/traits/keyboard-nav.js +36 -0
- package/traits/magnetic-hover.js +37 -0
- package/traits/noise-texture.js +30 -0
- package/traits/parallax.js +42 -0
- package/traits/portal.js +27 -0
- package/traits/pressable.js +75 -0
- package/traits/resizable.js +100 -0
- package/traits/resize-observer.js +31 -0
- package/traits/ripple.js +53 -0
- package/traits/roving-tabindex.js +67 -0
- package/traits/scale-press.js +43 -0
- package/traits/scroll-lock.js +27 -0
- package/traits/shimmer-loading.js +44 -0
- package/traits/snap-to-grid.js +28 -0
- package/traits/sound-feedback.js +30 -0
- package/traits/spring-animate.js +56 -0
- package/traits/tilt-hover.js +37 -0
- package/traits/tossable.js +178 -0
- package/traits/typeahead.js +63 -0
- package/traits/typewriter.js +35 -0
- package/traits/validation.js +118 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
@scope (stat-ui) {
|
|
2
|
+
:where(:scope) {
|
|
3
|
+
/* ── Tokens ──
|
|
4
|
+
Use size-responsive tokens so stat shrinks when parent card has size="sm". */
|
|
5
|
+
--stat-value-size: var(--a-title-size);
|
|
6
|
+
--stat-value-weight: var(--a-weight-bold);
|
|
7
|
+
--stat-value-fg: var(--a-fg-strong);
|
|
8
|
+
--stat-label-size: var(--a-ui-size);
|
|
9
|
+
--stat-label-fg: var(--a-fg);
|
|
10
|
+
--stat-change-size: var(--a-ui-size);
|
|
11
|
+
--stat-up-fg: var(--a-success-bg);
|
|
12
|
+
--stat-down-fg: var(--a-danger-bg);
|
|
13
|
+
--stat-icon-fg: var(--a-fg-muted);
|
|
14
|
+
|
|
15
|
+
/* ── Spacing ── */
|
|
16
|
+
--stat-column-gap: var(--a-space-3);
|
|
17
|
+
--stat-row-gap: var(--a-space-2);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:scope {
|
|
21
|
+
/* ── Base ──
|
|
22
|
+
Layout:
|
|
23
|
+
label icon ← eyebrow row (icon decorative, auto-width)
|
|
24
|
+
value ← full-width hero number
|
|
25
|
+
change ← trend delta, full width */
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
display: grid;
|
|
28
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
29
|
+
grid-template-areas:
|
|
30
|
+
"label icon"
|
|
31
|
+
"value value"
|
|
32
|
+
"change change";
|
|
33
|
+
column-gap: var(--stat-column-gap);
|
|
34
|
+
row-gap: var(--stat-row-gap);
|
|
35
|
+
align-items: baseline;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* ── Label (eyebrow) ── */
|
|
39
|
+
[slot="label"] {
|
|
40
|
+
grid-area: label;
|
|
41
|
+
font-size: var(--stat-label-size);
|
|
42
|
+
color: var(--stat-label-fg);
|
|
43
|
+
line-height: 1.4;
|
|
44
|
+
min-width: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* ── Change delta (under value) ── */
|
|
48
|
+
[slot="change"] {
|
|
49
|
+
grid-column: 1 / -1;
|
|
50
|
+
display: inline-flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
gap: 0.25em;
|
|
53
|
+
font-size: var(--stat-change-size);
|
|
54
|
+
line-height: 1;
|
|
55
|
+
justify-self: start;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* ── Value ── */
|
|
59
|
+
[slot="value"] {
|
|
60
|
+
grid-column: 1 / -1;
|
|
61
|
+
font-size: var(--stat-value-size);
|
|
62
|
+
font-weight: var(--stat-value-weight);
|
|
63
|
+
color: var(--stat-value-fg);
|
|
64
|
+
line-height: 1.2;
|
|
65
|
+
min-width: 0;
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
text-overflow: ellipsis;
|
|
68
|
+
white-space: nowrap;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* Trend arrows via ::before */
|
|
72
|
+
:scope[trend="up"] [slot="change"]::before {
|
|
73
|
+
content: "\25B2";
|
|
74
|
+
color: var(--stat-up-fg);
|
|
75
|
+
}
|
|
76
|
+
:scope[trend="up"] [slot="change"] {
|
|
77
|
+
color: var(--stat-up-fg);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
:scope[trend="down"] [slot="change"]::before {
|
|
81
|
+
content: "\25BC";
|
|
82
|
+
color: var(--stat-down-fg);
|
|
83
|
+
}
|
|
84
|
+
:scope[trend="down"] [slot="change"] {
|
|
85
|
+
color: var(--stat-down-fg);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
:scope[trend="neutral"] [slot="change"] {
|
|
89
|
+
color: var(--stat-label-fg);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* ── Icon ── */
|
|
93
|
+
[slot="icon"] {
|
|
94
|
+
grid-area: icon;
|
|
95
|
+
align-self: start;
|
|
96
|
+
color: var(--stat-icon-fg);
|
|
97
|
+
--a-icon-size: 1.25rem;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
[slot="icon"][hidden] { display: none; }
|
|
101
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <stat-ui value="1,234" label="Total Users" change="+12%" trend="up"></stat-ui>
|
|
3
|
+
* <stat-ui value="$42.5k" label="Revenue" change="-3%" trend="down"></stat-ui>
|
|
4
|
+
* <stat-ui value="99.9%" label="Uptime" icon="check-circle"></stat-ui>
|
|
5
|
+
*
|
|
6
|
+
* Metric/KPI display — value + label + optional change indicator.
|
|
7
|
+
*
|
|
8
|
+
* Trend: up, down, neutral (colors the change badge accordingly)
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import { AdiaElement } from '@core/element.js';
|
|
12
|
+
|
|
13
|
+
class AdiaStat extends AdiaElement {
|
|
14
|
+
static properties = {
|
|
15
|
+
value: { type: String, default: '', reflect: true },
|
|
16
|
+
label: { type: String, default: '', reflect: true },
|
|
17
|
+
change: { type: String, default: '', reflect: true },
|
|
18
|
+
trend: { type: String, default: '', reflect: true },
|
|
19
|
+
icon: { type: String, default: '', reflect: true },
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
static template = () => null;
|
|
23
|
+
|
|
24
|
+
#valueEl = null;
|
|
25
|
+
#labelEl = null;
|
|
26
|
+
#changeEl = null;
|
|
27
|
+
#iconEl = null;
|
|
28
|
+
|
|
29
|
+
connected() {
|
|
30
|
+
this.#valueEl = this.querySelector(':scope > [slot="value"]');
|
|
31
|
+
if (!this.#valueEl) {
|
|
32
|
+
this.#valueEl = document.createElement('span');
|
|
33
|
+
this.#valueEl.setAttribute('slot', 'value');
|
|
34
|
+
this.appendChild(this.#valueEl);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
this.#labelEl = this.querySelector(':scope > [slot="label"]');
|
|
38
|
+
if (!this.#labelEl) {
|
|
39
|
+
this.#labelEl = document.createElement('span');
|
|
40
|
+
this.#labelEl.setAttribute('slot', 'label');
|
|
41
|
+
this.appendChild(this.#labelEl);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
this.#changeEl = this.querySelector(':scope > [slot="change"]');
|
|
45
|
+
if (!this.#changeEl) {
|
|
46
|
+
this.#changeEl = document.createElement('span');
|
|
47
|
+
this.#changeEl.setAttribute('slot', 'change');
|
|
48
|
+
this.appendChild(this.#changeEl);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
this.#iconEl = this.querySelector(':scope > [slot="icon"]');
|
|
52
|
+
if (!this.#iconEl) {
|
|
53
|
+
this.#iconEl = document.createElement('icon-ui');
|
|
54
|
+
this.#iconEl.setAttribute('slot', 'icon');
|
|
55
|
+
this.appendChild(this.#iconEl);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
render() {
|
|
60
|
+
if (!this.#valueEl) return;
|
|
61
|
+
|
|
62
|
+
this.#valueEl.textContent = this.value;
|
|
63
|
+
this.#labelEl.textContent = this.label;
|
|
64
|
+
|
|
65
|
+
// Change badge
|
|
66
|
+
if (this.change) {
|
|
67
|
+
this.#changeEl.textContent = this.change;
|
|
68
|
+
this.#changeEl.hidden = false;
|
|
69
|
+
} else {
|
|
70
|
+
this.#changeEl.hidden = true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// Icon
|
|
74
|
+
if (this.icon) {
|
|
75
|
+
this.#iconEl.setAttribute('name', this.icon);
|
|
76
|
+
this.#iconEl.hidden = false;
|
|
77
|
+
} else {
|
|
78
|
+
this.#iconEl.hidden = true;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
disconnected() {
|
|
83
|
+
this.#valueEl = null;
|
|
84
|
+
this.#labelEl = null;
|
|
85
|
+
this.#changeEl = null;
|
|
86
|
+
this.#iconEl = null;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
customElements.define('stat-ui', AdiaStat);
|
|
90
|
+
|
|
91
|
+
export { AdiaStat };
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
# Generated by scripts/migrate-yamls-to-v1.mjs — migrated to v1 contract.
|
|
2
|
+
# Edit this file; run `npm run build:components` to regenerate a2ui.json.
|
|
3
|
+
$schema: ../../../../scripts/schemas/component.yaml.schema.json
|
|
4
|
+
name: AdiaStat
|
|
5
|
+
tag: stat-ui
|
|
6
|
+
component: Stat
|
|
7
|
+
category: display
|
|
8
|
+
version: 1
|
|
9
|
+
description: Metric/KPI display — value + label + optional change indicator and trend.
|
|
10
|
+
props:
|
|
11
|
+
change:
|
|
12
|
+
description: Change indicator text (e.g. '+12%', '-3%')
|
|
13
|
+
type: string
|
|
14
|
+
default: ""
|
|
15
|
+
icon:
|
|
16
|
+
description: Icon name displayed in the icon slot
|
|
17
|
+
type: string
|
|
18
|
+
default: ""
|
|
19
|
+
label:
|
|
20
|
+
description: Eyebrow label describing the metric
|
|
21
|
+
type: string
|
|
22
|
+
default: ""
|
|
23
|
+
trend:
|
|
24
|
+
description: >-
|
|
25
|
+
Trend direction or narrative subtitle. Canonical values color the change
|
|
26
|
+
badge (up=success, down=danger, neutral/flat=muted); any other string
|
|
27
|
+
renders as caption-style text under the primary value.
|
|
28
|
+
type: string
|
|
29
|
+
default: ""
|
|
30
|
+
value:
|
|
31
|
+
description: The primary metric value to display
|
|
32
|
+
type: string
|
|
33
|
+
default: ""
|
|
34
|
+
events: {}
|
|
35
|
+
slots:
|
|
36
|
+
change:
|
|
37
|
+
description: "Child content region for the `change` slot."
|
|
38
|
+
icon:
|
|
39
|
+
description: "Icon region — single icon-ui child."
|
|
40
|
+
label:
|
|
41
|
+
description: "Label region — control label."
|
|
42
|
+
value:
|
|
43
|
+
description: "Child content region for the `value` slot."
|
|
44
|
+
states:
|
|
45
|
+
- name: idle
|
|
46
|
+
description: Default, ready for interaction.
|
|
47
|
+
traits: []
|
|
48
|
+
tokens:
|
|
49
|
+
--stat-change-size:
|
|
50
|
+
description: Font size for the change badge
|
|
51
|
+
--stat-column-gap:
|
|
52
|
+
description: Horizontal gap between grid columns
|
|
53
|
+
--stat-down-fg:
|
|
54
|
+
description: Color for downward trend
|
|
55
|
+
--stat-icon-fg:
|
|
56
|
+
description: Color for the icon
|
|
57
|
+
--stat-label-fg:
|
|
58
|
+
description: Text color for the label
|
|
59
|
+
--stat-label-size:
|
|
60
|
+
description: Font size for the label
|
|
61
|
+
--stat-row-gap:
|
|
62
|
+
description: Vertical gap between grid rows
|
|
63
|
+
--stat-up-fg:
|
|
64
|
+
description: Color for upward trend
|
|
65
|
+
--stat-value-fg:
|
|
66
|
+
description: Text color for the primary value
|
|
67
|
+
--stat-value-size:
|
|
68
|
+
description: Font size for the primary value
|
|
69
|
+
--stat-value-weight:
|
|
70
|
+
description: Font weight for the primary value
|
|
71
|
+
a2ui:
|
|
72
|
+
rules: []
|
|
73
|
+
anti_patterns: []
|
|
74
|
+
examples:
|
|
75
|
+
- name: basic-stat
|
|
76
|
+
description: Basic Stat usage
|
|
77
|
+
a2ui: >-
|
|
78
|
+
[
|
|
79
|
+
{
|
|
80
|
+
"id": "root",
|
|
81
|
+
"component": "Card",
|
|
82
|
+
"children": [
|
|
83
|
+
"sec"
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"id": "sec",
|
|
88
|
+
"component": "Section",
|
|
89
|
+
"children": [
|
|
90
|
+
"comp"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"id": "comp",
|
|
95
|
+
"component": "Stat",
|
|
96
|
+
"label": "Example Stat",
|
|
97
|
+
"value": ""
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
keywords:
|
|
101
|
+
- stat
|
|
102
|
+
- stats
|
|
103
|
+
- statistics
|
|
104
|
+
- kpi
|
|
105
|
+
- numbers
|
|
106
|
+
- figures
|
|
107
|
+
- analytics
|
|
108
|
+
- reporting
|
|
109
|
+
- insights
|
|
110
|
+
- monitor
|
|
111
|
+
- monitoring
|
|
112
|
+
- health
|
|
113
|
+
- overview
|
|
114
|
+
- summary
|
|
115
|
+
- telemetry
|
|
116
|
+
- observability
|
|
117
|
+
- performance
|
|
118
|
+
- scoreboard
|
|
119
|
+
synonyms:
|
|
120
|
+
analytics:
|
|
121
|
+
- chart
|
|
122
|
+
- dashboard
|
|
123
|
+
- metric
|
|
124
|
+
- stat
|
|
125
|
+
- leaderboard
|
|
126
|
+
figures:
|
|
127
|
+
- stat
|
|
128
|
+
- metric
|
|
129
|
+
- chart
|
|
130
|
+
health:
|
|
131
|
+
- dashboard
|
|
132
|
+
- metric
|
|
133
|
+
- stat
|
|
134
|
+
- progress
|
|
135
|
+
insights:
|
|
136
|
+
- chart
|
|
137
|
+
- dashboard
|
|
138
|
+
- metric
|
|
139
|
+
- stat
|
|
140
|
+
kpi:
|
|
141
|
+
- stat
|
|
142
|
+
- metric
|
|
143
|
+
- dashboard
|
|
144
|
+
- chart
|
|
145
|
+
monitor:
|
|
146
|
+
- dashboard
|
|
147
|
+
- metric
|
|
148
|
+
- stat
|
|
149
|
+
- chart
|
|
150
|
+
- progress
|
|
151
|
+
monitoring:
|
|
152
|
+
- dashboard
|
|
153
|
+
- metric
|
|
154
|
+
- stat
|
|
155
|
+
- chart
|
|
156
|
+
- progress
|
|
157
|
+
numbers:
|
|
158
|
+
- stat
|
|
159
|
+
- metric
|
|
160
|
+
observability:
|
|
161
|
+
- dashboard
|
|
162
|
+
- metric
|
|
163
|
+
- chart
|
|
164
|
+
- stat
|
|
165
|
+
overview:
|
|
166
|
+
- dashboard
|
|
167
|
+
- metric
|
|
168
|
+
- stat
|
|
169
|
+
- card
|
|
170
|
+
performance:
|
|
171
|
+
- dashboard
|
|
172
|
+
- metric
|
|
173
|
+
- chart
|
|
174
|
+
- stat
|
|
175
|
+
- progress
|
|
176
|
+
reporting:
|
|
177
|
+
- chart
|
|
178
|
+
- dashboard
|
|
179
|
+
- metric
|
|
180
|
+
- stat
|
|
181
|
+
- table
|
|
182
|
+
- data
|
|
183
|
+
scoreboard:
|
|
184
|
+
- leaderboard
|
|
185
|
+
- stat
|
|
186
|
+
statistics:
|
|
187
|
+
- stat
|
|
188
|
+
- metric
|
|
189
|
+
- dashboard
|
|
190
|
+
- chart
|
|
191
|
+
stats:
|
|
192
|
+
- stat
|
|
193
|
+
- metric
|
|
194
|
+
- dashboard
|
|
195
|
+
- chart
|
|
196
|
+
summary:
|
|
197
|
+
- dashboard
|
|
198
|
+
- metric
|
|
199
|
+
- stat
|
|
200
|
+
- card
|
|
201
|
+
telemetry:
|
|
202
|
+
- dashboard
|
|
203
|
+
- metric
|
|
204
|
+
- chart
|
|
205
|
+
- stat
|
|
206
|
+
related: []
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://adiaui.dev/a2ui/v0_9/components/Stepper.json",
|
|
4
|
+
"title": "Stepper",
|
|
5
|
+
"description": "Wizard / process stepper — parent step index drives numbered children.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"allOf": [
|
|
8
|
+
{
|
|
9
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"$ref": "common_types.json#/$defs/CatalogComponentCommon"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"properties": {
|
|
16
|
+
"component": {
|
|
17
|
+
"const": "Stepper"
|
|
18
|
+
},
|
|
19
|
+
"orientation": {
|
|
20
|
+
"description": "horizontal | vertical",
|
|
21
|
+
"type": "string",
|
|
22
|
+
"default": "horizontal"
|
|
23
|
+
},
|
|
24
|
+
"step": {
|
|
25
|
+
"description": "Current step index (0-based).",
|
|
26
|
+
"type": "number",
|
|
27
|
+
"default": 0
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"required": [
|
|
31
|
+
"component"
|
|
32
|
+
],
|
|
33
|
+
"unevaluatedProperties": false,
|
|
34
|
+
"x-adiaui": {
|
|
35
|
+
"anti_patterns": [],
|
|
36
|
+
"category": "navigation",
|
|
37
|
+
"events": {},
|
|
38
|
+
"examples": [
|
|
39
|
+
{
|
|
40
|
+
"description": "Three-step wizard",
|
|
41
|
+
"a2ui": "[\n {\n \"id\": \"root\",\n \"component\": \"Stepper\",\n \"step\": 1,\n \"children\": [\n \"s1\",\n \"s2\",\n \"s3\"\n ]\n },\n {\n \"id\": \"s1\",\n \"component\": \"StepperItem\",\n \"text\": \"Account\"\n },\n {\n \"id\": \"s2\",\n \"component\": \"StepperItem\",\n \"text\": \"Details\"\n },\n {\n \"id\": \"s3\",\n \"component\": \"StepperItem\",\n \"text\": \"Review\"\n }\n]",
|
|
42
|
+
"name": "basic"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"keywords": [
|
|
46
|
+
"stepper",
|
|
47
|
+
"wizard",
|
|
48
|
+
"steps",
|
|
49
|
+
"process",
|
|
50
|
+
"onboarding",
|
|
51
|
+
"multi-step"
|
|
52
|
+
],
|
|
53
|
+
"name": "AdiaStepper",
|
|
54
|
+
"related": [
|
|
55
|
+
"timeline-ui",
|
|
56
|
+
"progress-ui"
|
|
57
|
+
],
|
|
58
|
+
"slots": {
|
|
59
|
+
"default": {
|
|
60
|
+
"description": "Default slot — primary child content."
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"states": [
|
|
64
|
+
{
|
|
65
|
+
"description": "Default, ready for interaction.",
|
|
66
|
+
"name": "idle"
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"synonyms": {
|
|
70
|
+
"timeline-ui mode=steps": "stepper-ui"
|
|
71
|
+
},
|
|
72
|
+
"tag": "stepper-ui",
|
|
73
|
+
"tokens": {},
|
|
74
|
+
"traits": [],
|
|
75
|
+
"version": 1
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
/* ═══════════════════════════════════════════════════════════════
|
|
2
|
+
STEPPER-N + STEPPER-ITEM-N
|
|
3
|
+
|
|
4
|
+
Extracted from the old timeline-ui[mode="steps"]. Wizard-style
|
|
5
|
+
numbered circles, auto-checkmark on completed, connector line.
|
|
6
|
+
Parent `step` index drives child state.
|
|
7
|
+
═══════════════════════════════════════════════════════════════ */
|
|
8
|
+
|
|
9
|
+
@scope (stepper-ui) {
|
|
10
|
+
:where(:scope) {
|
|
11
|
+
/* ── Circle ── */
|
|
12
|
+
--stepper-size: 2rem;
|
|
13
|
+
--stepper-bg: var(--a-bg);
|
|
14
|
+
--stepper-border: var(--a-border);
|
|
15
|
+
--stepper-fg: var(--a-fg-muted);
|
|
16
|
+
--stepper-font: var(--a-ui-sm);
|
|
17
|
+
--stepper-weight: var(--a-weight-medium);
|
|
18
|
+
--stepper-border-size: 2px;
|
|
19
|
+
|
|
20
|
+
--stepper-active-bg: var(--a-bg);
|
|
21
|
+
--stepper-active-border: var(--a-accent);
|
|
22
|
+
--stepper-active-fg: var(--a-accent);
|
|
23
|
+
|
|
24
|
+
--stepper-done-bg: var(--a-accent);
|
|
25
|
+
--stepper-done-border: var(--a-accent);
|
|
26
|
+
--stepper-done-fg: var(--a-accent-fg);
|
|
27
|
+
|
|
28
|
+
--stepper-line: var(--a-border-subtle);
|
|
29
|
+
--stepper-line-done: var(--a-accent);
|
|
30
|
+
--stepper-line-size: 2px;
|
|
31
|
+
|
|
32
|
+
/* ── Layout ── */
|
|
33
|
+
--stepper-radius-full: var(--a-radius-full);
|
|
34
|
+
--stepper-item-gap: var(--a-space-3);
|
|
35
|
+
--stepper-item-gap-sm: var(--a-space-2);
|
|
36
|
+
--stepper-pad-x: var(--a-space-4);
|
|
37
|
+
--stepper-pad-y: var(--a-space-6);
|
|
38
|
+
--stepper-offset-xs: var(--a-space-1);
|
|
39
|
+
--stepper-min-width: 5rem;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:scope {
|
|
43
|
+
box-sizing: border-box;
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: row;
|
|
46
|
+
counter-reset: step;
|
|
47
|
+
gap: 0;
|
|
48
|
+
min-width: 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:scope[orientation="vertical"] {
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* ── Item tokens + label/description styling ── */
|
|
57
|
+
:where(stepper-item-ui) {
|
|
58
|
+
--stepper-label-weight: var(--a-weight-medium);
|
|
59
|
+
--stepper-label-size: var(--a-ui-size);
|
|
60
|
+
--stepper-label-fg: var(--a-fg);
|
|
61
|
+
--stepper-pending-fg: var(--a-fg-muted);
|
|
62
|
+
--stepper-desc-fg: var(--a-fg-subtle);
|
|
63
|
+
--stepper-desc-size: var(--a-ui-sm);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
stepper-item-ui {
|
|
67
|
+
box-sizing: border-box;
|
|
68
|
+
position: relative;
|
|
69
|
+
display: block;
|
|
70
|
+
counter-increment: step;
|
|
71
|
+
flex: 1;
|
|
72
|
+
min-width: var(--stepper-min-width);
|
|
73
|
+
text-align: center;
|
|
74
|
+
padding-top: calc(var(--stepper-size) + var(--stepper-item-gap-sm));
|
|
75
|
+
padding-left: 0;
|
|
76
|
+
padding-bottom: 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* Numbered circle */
|
|
80
|
+
stepper-item-ui::after {
|
|
81
|
+
content: counter(step);
|
|
82
|
+
position: absolute;
|
|
83
|
+
top: 0;
|
|
84
|
+
left: 50%;
|
|
85
|
+
transform: translateX(-50%);
|
|
86
|
+
width: var(--stepper-size);
|
|
87
|
+
height: var(--stepper-size);
|
|
88
|
+
border-radius: var(--stepper-radius-full);
|
|
89
|
+
border: var(--stepper-border-size) solid var(--stepper-border);
|
|
90
|
+
background: var(--stepper-bg);
|
|
91
|
+
color: var(--stepper-fg);
|
|
92
|
+
font-size: var(--stepper-font);
|
|
93
|
+
font-weight: var(--stepper-weight);
|
|
94
|
+
display: flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
justify-content: center;
|
|
97
|
+
box-sizing: border-box;
|
|
98
|
+
z-index: 1;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/* Connector line */
|
|
102
|
+
stepper-item-ui::before {
|
|
103
|
+
content: '';
|
|
104
|
+
position: absolute;
|
|
105
|
+
top: calc(var(--stepper-size) / 2);
|
|
106
|
+
left: calc(50% + var(--stepper-size) / 2 + 2px);
|
|
107
|
+
right: calc(-50% + var(--stepper-size) / 2 + 2px);
|
|
108
|
+
height: var(--stepper-line-size);
|
|
109
|
+
background: var(--stepper-line);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
stepper-item-ui[data-last]::before {
|
|
113
|
+
display: none;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* Active state */
|
|
117
|
+
stepper-item-ui[active]::after {
|
|
118
|
+
border-color: var(--stepper-active-border);
|
|
119
|
+
color: var(--stepper-active-fg);
|
|
120
|
+
background: var(--stepper-active-bg);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
stepper-item-ui[active] [slot="label"] {
|
|
124
|
+
color: var(--stepper-label-fg);
|
|
125
|
+
font-weight: var(--stepper-label-weight);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* Completed state — checkmark replaces number */
|
|
129
|
+
stepper-item-ui[completed]::after {
|
|
130
|
+
content: '\2713';
|
|
131
|
+
background: var(--stepper-done-bg);
|
|
132
|
+
border-color: var(--stepper-done-border);
|
|
133
|
+
color: var(--stepper-done-fg);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
stepper-item-ui[completed]::before {
|
|
137
|
+
background: var(--stepper-line-done);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
stepper-item-ui[completed] [slot="label"] {
|
|
141
|
+
color: var(--stepper-label-fg);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/* Pending label */
|
|
145
|
+
stepper-item-ui:not([active]):not([completed]) [slot="label"] {
|
|
146
|
+
color: var(--stepper-pending-fg);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* Icon replaces number */
|
|
150
|
+
stepper-item-ui:has([slot="icon"])::after {
|
|
151
|
+
content: '';
|
|
152
|
+
font-size: 0;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
stepper-item-ui [slot="icon"] {
|
|
156
|
+
position: absolute;
|
|
157
|
+
top: 0;
|
|
158
|
+
left: 50%;
|
|
159
|
+
transform: translateX(-50%);
|
|
160
|
+
width: var(--stepper-size);
|
|
161
|
+
height: var(--stepper-size);
|
|
162
|
+
border-radius: var(--stepper-radius-full);
|
|
163
|
+
border: var(--stepper-border-size) solid var(--stepper-border);
|
|
164
|
+
background: var(--stepper-bg);
|
|
165
|
+
display: flex;
|
|
166
|
+
align-items: center;
|
|
167
|
+
justify-content: center;
|
|
168
|
+
--a-icon-size: 0.625rem;
|
|
169
|
+
color: var(--stepper-fg);
|
|
170
|
+
z-index: 1;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
stepper-item-ui[active] [slot="icon"] {
|
|
174
|
+
border-color: var(--stepper-active-border);
|
|
175
|
+
color: var(--stepper-active-fg);
|
|
176
|
+
background: var(--stepper-active-bg);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
stepper-item-ui[completed] [slot="icon"] {
|
|
180
|
+
background: var(--stepper-done-bg);
|
|
181
|
+
border-color: var(--stepper-done-border);
|
|
182
|
+
color: var(--stepper-done-fg);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/* ── Content slots ── */
|
|
186
|
+
|
|
187
|
+
stepper-item-ui [slot="label"] {
|
|
188
|
+
display: block;
|
|
189
|
+
font-weight: var(--stepper-label-weight);
|
|
190
|
+
font-size: var(--stepper-label-size);
|
|
191
|
+
line-height: 1.4;
|
|
192
|
+
color: var(--stepper-label-fg);
|
|
193
|
+
min-width: 0;
|
|
194
|
+
overflow-wrap: break-word;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
stepper-item-ui [slot="description"] {
|
|
198
|
+
display: block;
|
|
199
|
+
margin-top: var(--stepper-offset-xs);
|
|
200
|
+
color: var(--stepper-desc-fg);
|
|
201
|
+
font-size: var(--stepper-desc-size);
|
|
202
|
+
line-height: 1.5;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
stepper-item-ui [slot]:empty {
|
|
206
|
+
display: none;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/* ── Vertical orientation ── */
|
|
210
|
+
|
|
211
|
+
stepper-ui[orientation="vertical"] > stepper-item-ui {
|
|
212
|
+
flex: none;
|
|
213
|
+
text-align: left;
|
|
214
|
+
padding-top: 0;
|
|
215
|
+
padding-left: calc(var(--stepper-size) + var(--stepper-pad-x));
|
|
216
|
+
padding-bottom: var(--stepper-pad-y);
|
|
217
|
+
min-height: var(--stepper-size);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
stepper-ui[orientation="vertical"] > stepper-item-ui::after {
|
|
221
|
+
left: 0;
|
|
222
|
+
top: 0;
|
|
223
|
+
transform: none;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
stepper-ui[orientation="vertical"] > stepper-item-ui::before {
|
|
227
|
+
left: calc(var(--stepper-size) / 2 - 1px);
|
|
228
|
+
transform: none;
|
|
229
|
+
top: calc(var(--stepper-size) + var(--stepper-offset-xs));
|
|
230
|
+
right: auto;
|
|
231
|
+
width: var(--stepper-line-size);
|
|
232
|
+
height: auto;
|
|
233
|
+
bottom: 0;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
stepper-ui[orientation="vertical"] > stepper-item-ui [slot="icon"] {
|
|
237
|
+
left: 0;
|
|
238
|
+
transform: none;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
stepper-ui[orientation="vertical"] > stepper-item-ui[data-last] {
|
|
242
|
+
padding-bottom: 0;
|
|
243
|
+
}
|