@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,88 @@
|
|
|
1
|
+
@scope (progress-ui) {
|
|
2
|
+
:where(:scope) {
|
|
3
|
+
/* -- Tokens -- */
|
|
4
|
+
--progress-track: var(--a-bg-muted);
|
|
5
|
+
--progress-fill: var(--a-accent);
|
|
6
|
+
--progress-height: 0.375rem;
|
|
7
|
+
--progress-radius: var(--a-radius-full);
|
|
8
|
+
--progress-duration: var(--a-duration);
|
|
9
|
+
--progress-easing: var(--a-easing);
|
|
10
|
+
|
|
11
|
+
/* -- Indeterminate motion -- */
|
|
12
|
+
--progress-shimmer-duration: 1.5s;
|
|
13
|
+
--progress-shimmer-easing: ease-in-out;
|
|
14
|
+
--progress-spin-duration: 0.6s;
|
|
15
|
+
--progress-spin-easing: linear;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:scope {
|
|
19
|
+
/* -- Base -- */
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
display: block;
|
|
22
|
+
width: 100%;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* ── Bar variant ── */
|
|
26
|
+
|
|
27
|
+
[slot="track"] {
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: var(--progress-height);
|
|
30
|
+
border-radius: var(--progress-radius);
|
|
31
|
+
background: var(--progress-track);
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[slot="fill"] {
|
|
36
|
+
height: 100%;
|
|
37
|
+
border-radius: var(--progress-radius);
|
|
38
|
+
background: var(--progress-fill);
|
|
39
|
+
transition: width var(--progress-duration) var(--progress-easing);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* Indeterminate bar shimmer */
|
|
43
|
+
:scope[value^="-"] [slot="fill"],
|
|
44
|
+
:scope:not([value]) [slot="fill"] {
|
|
45
|
+
width: 100% !important;
|
|
46
|
+
background: linear-gradient(
|
|
47
|
+
90deg,
|
|
48
|
+
var(--progress-track) 0%,
|
|
49
|
+
var(--progress-fill) 50%,
|
|
50
|
+
var(--progress-track) 100%
|
|
51
|
+
);
|
|
52
|
+
background-size: 200% 100%;
|
|
53
|
+
animation: progress-shimmer var(--progress-shimmer-duration) var(--progress-shimmer-easing) infinite;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@keyframes progress-shimmer {
|
|
57
|
+
0% { background-position: 200% 0; }
|
|
58
|
+
100% { background-position: -200% 0; }
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* ── Spinner variant ── */
|
|
62
|
+
|
|
63
|
+
:scope[variant="spinner"] {
|
|
64
|
+
display: inline-flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
width: 1.5em;
|
|
68
|
+
height: 1.5em;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:scope[variant="spinner"] [slot="track"] { display: none; }
|
|
72
|
+
|
|
73
|
+
:scope[variant="spinner"]::after {
|
|
74
|
+
content: "";
|
|
75
|
+
box-sizing: border-box;
|
|
76
|
+
display: block;
|
|
77
|
+
width: 100%;
|
|
78
|
+
height: 100%;
|
|
79
|
+
border: 2px solid var(--progress-fill);
|
|
80
|
+
border-top-color: transparent;
|
|
81
|
+
border-radius: var(--progress-radius);
|
|
82
|
+
animation: progress-spin var(--progress-spin-duration) var(--progress-spin-easing) infinite;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@keyframes progress-spin {
|
|
86
|
+
to { transform: rotate(360deg); }
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <progress-ui value="60"></progress-ui>
|
|
3
|
+
* <progress-ui variant="spinner"></progress-ui>
|
|
4
|
+
* <progress-ui></progress-ui> <!-- indeterminate bar -->
|
|
5
|
+
*
|
|
6
|
+
* Progress indicator. Bar (default) or spinner variant.
|
|
7
|
+
* value null (absent) = indeterminate, 0-100 = determinate.
|
|
8
|
+
* (Legacy `value="-1"` is still treated as indeterminate for back-compat.)
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import { AdiaElement } from '@core/element.js';
|
|
12
|
+
|
|
13
|
+
class AdiaProgress extends AdiaElement {
|
|
14
|
+
static properties = {
|
|
15
|
+
value: { type: Number, default: null, reflect: true },
|
|
16
|
+
variant: { type: String, default: 'bar', reflect: true },
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
static template = () => null;
|
|
20
|
+
|
|
21
|
+
#track = null;
|
|
22
|
+
#fill = null;
|
|
23
|
+
|
|
24
|
+
connected() {
|
|
25
|
+
this.setAttribute('role', 'progressbar');
|
|
26
|
+
this.setAttribute('aria-valuemin', '0');
|
|
27
|
+
this.setAttribute('aria-valuemax', '100');
|
|
28
|
+
|
|
29
|
+
if (this.variant === 'bar') {
|
|
30
|
+
this.#track = document.createElement('div');
|
|
31
|
+
this.#track.setAttribute('slot', 'track');
|
|
32
|
+
this.#fill = document.createElement('div');
|
|
33
|
+
this.#fill.setAttribute('slot', 'fill');
|
|
34
|
+
this.#track.appendChild(this.#fill);
|
|
35
|
+
this.appendChild(this.#track);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
render() {
|
|
40
|
+
const indeterminate = this.value == null || this.value < 0;
|
|
41
|
+
const clamped = Math.max(0, Math.min(100, this.value));
|
|
42
|
+
|
|
43
|
+
this.setAttribute('aria-busy', String(indeterminate));
|
|
44
|
+
|
|
45
|
+
if (indeterminate) {
|
|
46
|
+
this.removeAttribute('aria-valuenow');
|
|
47
|
+
} else {
|
|
48
|
+
this.setAttribute('aria-valuenow', String(clamped));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
if (this.#fill) {
|
|
52
|
+
this.#fill.style.width = indeterminate ? '100%' : `${clamped}%`;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
disconnected() {
|
|
57
|
+
this.#track?.remove();
|
|
58
|
+
this.#track = null;
|
|
59
|
+
this.#fill = null;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
customElements.define('progress-ui', AdiaProgress);
|
|
63
|
+
|
|
64
|
+
export { AdiaProgress };
|
|
@@ -0,0 +1,342 @@
|
|
|
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: AdiaProgress
|
|
5
|
+
tag: progress-ui
|
|
6
|
+
component: Progress
|
|
7
|
+
category: display
|
|
8
|
+
version: 1
|
|
9
|
+
description: Progress indicator. Bar (default) or spinner. Value < 0 = indeterminate.
|
|
10
|
+
props:
|
|
11
|
+
value:
|
|
12
|
+
description: Current progress. 0..max (or 0..1 when max omitted). Negative = indeterminate.
|
|
13
|
+
type: number
|
|
14
|
+
default: -1
|
|
15
|
+
max:
|
|
16
|
+
description: Upper bound for value. When omitted, value is treated as a 0..1 fraction.
|
|
17
|
+
type: number
|
|
18
|
+
default: 100
|
|
19
|
+
indeterminate:
|
|
20
|
+
description: Force indeterminate mode (animated loop) regardless of value.
|
|
21
|
+
type: boolean
|
|
22
|
+
default: false
|
|
23
|
+
reflect: true
|
|
24
|
+
variant:
|
|
25
|
+
description: >-
|
|
26
|
+
Display variant. Structural values (bar, spinner) set the render mode;
|
|
27
|
+
semantic values (primary/success/warning/danger/info) set the fill color.
|
|
28
|
+
Prefer the `color` global attribute for color; variant-as-color accepted
|
|
29
|
+
for back-compat with older exemplars.
|
|
30
|
+
type: string
|
|
31
|
+
default: bar
|
|
32
|
+
enum:
|
|
33
|
+
- bar
|
|
34
|
+
- spinner
|
|
35
|
+
- primary
|
|
36
|
+
- success
|
|
37
|
+
- warning
|
|
38
|
+
- danger
|
|
39
|
+
- info
|
|
40
|
+
events: {}
|
|
41
|
+
slots:
|
|
42
|
+
fill:
|
|
43
|
+
description: Bar fill element inside track
|
|
44
|
+
track:
|
|
45
|
+
description: Bar track container
|
|
46
|
+
states:
|
|
47
|
+
- name: idle
|
|
48
|
+
description: Default, ready for interaction.
|
|
49
|
+
traits: []
|
|
50
|
+
tokens: {}
|
|
51
|
+
a2ui:
|
|
52
|
+
rules: []
|
|
53
|
+
anti_patterns: []
|
|
54
|
+
examples:
|
|
55
|
+
- name: dashboard
|
|
56
|
+
description: Two-column dashboard with quick actions (buttons) and system status (progress bars).
|
|
57
|
+
a2ui: >-
|
|
58
|
+
[
|
|
59
|
+
{
|
|
60
|
+
"id": "root",
|
|
61
|
+
"component": "Grid",
|
|
62
|
+
"children": [
|
|
63
|
+
"c1",
|
|
64
|
+
"c2"
|
|
65
|
+
],
|
|
66
|
+
"columns": "2"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"id": "c1",
|
|
70
|
+
"component": "Card",
|
|
71
|
+
"children": [
|
|
72
|
+
"c1h",
|
|
73
|
+
"c1s"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"id": "c1h",
|
|
78
|
+
"component": "Header",
|
|
79
|
+
"children": [
|
|
80
|
+
"c1t"
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"id": "c1t",
|
|
85
|
+
"component": "Text",
|
|
86
|
+
"slot": "heading",
|
|
87
|
+
"textContent": "Quick Actions",
|
|
88
|
+
"variant": "section"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"id": "c1s",
|
|
92
|
+
"component": "Section",
|
|
93
|
+
"children": [
|
|
94
|
+
"c1col"
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"id": "c1col",
|
|
99
|
+
"component": "Column",
|
|
100
|
+
"children": [
|
|
101
|
+
"b1",
|
|
102
|
+
"b2",
|
|
103
|
+
"b3"
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"id": "b1",
|
|
108
|
+
"component": "Button",
|
|
109
|
+
"text": "New Project",
|
|
110
|
+
"variant": "solid",
|
|
111
|
+
"iconLeading": "plus"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"id": "b2",
|
|
115
|
+
"component": "Button",
|
|
116
|
+
"text": "Invite Member",
|
|
117
|
+
"variant": "outline",
|
|
118
|
+
"iconLeading": "users"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"id": "b3",
|
|
122
|
+
"component": "Button",
|
|
123
|
+
"text": "View Reports",
|
|
124
|
+
"variant": "ghost",
|
|
125
|
+
"iconLeading": "chart"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"id": "c2",
|
|
129
|
+
"component": "Card",
|
|
130
|
+
"children": [
|
|
131
|
+
"c2h",
|
|
132
|
+
"c2s"
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"id": "c2h",
|
|
137
|
+
"component": "Header",
|
|
138
|
+
"children": [
|
|
139
|
+
"c2t"
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"id": "c2t",
|
|
144
|
+
"component": "Text",
|
|
145
|
+
"slot": "heading",
|
|
146
|
+
"textContent": "System Status",
|
|
147
|
+
"variant": "section"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"id": "c2s",
|
|
151
|
+
"component": "Section",
|
|
152
|
+
"children": [
|
|
153
|
+
"c2col"
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"id": "c2col",
|
|
158
|
+
"component": "Column",
|
|
159
|
+
"children": [
|
|
160
|
+
"p1",
|
|
161
|
+
"p2",
|
|
162
|
+
"p3"
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"id": "p1",
|
|
167
|
+
"component": "Progress",
|
|
168
|
+
"value": "92",
|
|
169
|
+
"label": "CPU"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"id": "p2",
|
|
173
|
+
"component": "Progress",
|
|
174
|
+
"value": "67",
|
|
175
|
+
"label": "Memory"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"id": "p3",
|
|
179
|
+
"component": "Progress",
|
|
180
|
+
"value": "34",
|
|
181
|
+
"label": "Disk"
|
|
182
|
+
}
|
|
183
|
+
]
|
|
184
|
+
- name: onboarding-checklist
|
|
185
|
+
description: User onboarding checklist with progress and checkbox items.
|
|
186
|
+
a2ui: >-
|
|
187
|
+
[
|
|
188
|
+
{
|
|
189
|
+
"id": "root",
|
|
190
|
+
"component": "Card",
|
|
191
|
+
"children": [
|
|
192
|
+
"hdr",
|
|
193
|
+
"sec"
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"id": "hdr",
|
|
198
|
+
"component": "Header",
|
|
199
|
+
"children": [
|
|
200
|
+
"title"
|
|
201
|
+
]
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"id": "title",
|
|
205
|
+
"component": "Text",
|
|
206
|
+
"slot": "heading",
|
|
207
|
+
"textContent": "Getting Started"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"id": "sec",
|
|
211
|
+
"component": "Section",
|
|
212
|
+
"children": [
|
|
213
|
+
"col"
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"id": "col",
|
|
218
|
+
"component": "Column",
|
|
219
|
+
"children": [
|
|
220
|
+
"prog",
|
|
221
|
+
"c1",
|
|
222
|
+
"c2",
|
|
223
|
+
"c3"
|
|
224
|
+
],
|
|
225
|
+
"gap": "3"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"id": "prog",
|
|
229
|
+
"component": "Progress",
|
|
230
|
+
"value": 33,
|
|
231
|
+
"max": 100
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"id": "c1",
|
|
235
|
+
"component": "CheckBox",
|
|
236
|
+
"label": "Complete your profile",
|
|
237
|
+
"checked": true
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"id": "c2",
|
|
241
|
+
"component": "CheckBox",
|
|
242
|
+
"label": "Invite team members"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"id": "c3",
|
|
246
|
+
"component": "CheckBox",
|
|
247
|
+
"label": "Create your first project"
|
|
248
|
+
}
|
|
249
|
+
]
|
|
250
|
+
keywords:
|
|
251
|
+
- progress
|
|
252
|
+
- monitor
|
|
253
|
+
- monitoring
|
|
254
|
+
- health
|
|
255
|
+
- performance
|
|
256
|
+
- workflow
|
|
257
|
+
- stepper
|
|
258
|
+
- wizard
|
|
259
|
+
- multi-step
|
|
260
|
+
- timeline
|
|
261
|
+
- loading
|
|
262
|
+
- spinner
|
|
263
|
+
- percent
|
|
264
|
+
- gamification
|
|
265
|
+
synonyms:
|
|
266
|
+
gamification:
|
|
267
|
+
- leaderboard
|
|
268
|
+
- badge
|
|
269
|
+
- progress
|
|
270
|
+
health:
|
|
271
|
+
- dashboard
|
|
272
|
+
- metric
|
|
273
|
+
- stat
|
|
274
|
+
- progress
|
|
275
|
+
loading:
|
|
276
|
+
- loading
|
|
277
|
+
- skeleton
|
|
278
|
+
- progress
|
|
279
|
+
- bar
|
|
280
|
+
monitor:
|
|
281
|
+
- dashboard
|
|
282
|
+
- metric
|
|
283
|
+
- stat
|
|
284
|
+
- chart
|
|
285
|
+
- progress
|
|
286
|
+
monitoring:
|
|
287
|
+
- dashboard
|
|
288
|
+
- metric
|
|
289
|
+
- stat
|
|
290
|
+
- chart
|
|
291
|
+
- progress
|
|
292
|
+
multi-step:
|
|
293
|
+
- wizard
|
|
294
|
+
- step
|
|
295
|
+
- progress
|
|
296
|
+
percent:
|
|
297
|
+
- progress
|
|
298
|
+
- bar
|
|
299
|
+
performance:
|
|
300
|
+
- dashboard
|
|
301
|
+
- metric
|
|
302
|
+
- chart
|
|
303
|
+
- stat
|
|
304
|
+
- progress
|
|
305
|
+
progress:
|
|
306
|
+
- progress
|
|
307
|
+
- bar
|
|
308
|
+
- tracker
|
|
309
|
+
- loading
|
|
310
|
+
spinner:
|
|
311
|
+
- loading
|
|
312
|
+
- skeleton
|
|
313
|
+
- progress
|
|
314
|
+
stepper:
|
|
315
|
+
- wizard
|
|
316
|
+
- step
|
|
317
|
+
- progress
|
|
318
|
+
- tracker
|
|
319
|
+
timeline:
|
|
320
|
+
- social
|
|
321
|
+
- post
|
|
322
|
+
- activity
|
|
323
|
+
- team
|
|
324
|
+
- progress
|
|
325
|
+
wizard:
|
|
326
|
+
- wizard
|
|
327
|
+
- step
|
|
328
|
+
- progress
|
|
329
|
+
- tracker
|
|
330
|
+
- onboarding
|
|
331
|
+
workflow:
|
|
332
|
+
- kanban
|
|
333
|
+
- board
|
|
334
|
+
- project
|
|
335
|
+
- wizard
|
|
336
|
+
- progress
|
|
337
|
+
- step
|
|
338
|
+
related:
|
|
339
|
+
- grid
|
|
340
|
+
- button
|
|
341
|
+
- check-box
|
|
342
|
+
- upload
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://adiaui.dev/a2ui/v0_9/components/ProgressRow.json",
|
|
4
|
+
"title": "ProgressRow",
|
|
5
|
+
"description": "Inline labeled progress row with label, progress bar, and meta text. Used for storage quotas, capacity breakdowns, usage indicators.",
|
|
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": "ProgressRow"
|
|
18
|
+
},
|
|
19
|
+
"icon": {
|
|
20
|
+
"description": "Optional Phosphor icon name rendered leading the label.",
|
|
21
|
+
"type": "string",
|
|
22
|
+
"default": ""
|
|
23
|
+
},
|
|
24
|
+
"label": {
|
|
25
|
+
"description": "Left-hand label text",
|
|
26
|
+
"type": "string",
|
|
27
|
+
"default": ""
|
|
28
|
+
},
|
|
29
|
+
"max": {
|
|
30
|
+
"description": "Upper bound for value. Defaults to 100.",
|
|
31
|
+
"type": "number",
|
|
32
|
+
"default": 100
|
|
33
|
+
},
|
|
34
|
+
"meta": {
|
|
35
|
+
"description": "Right-hand meta text (e.g. '32 GB', '4.2k / 10k')",
|
|
36
|
+
"type": "string",
|
|
37
|
+
"default": ""
|
|
38
|
+
},
|
|
39
|
+
"value": {
|
|
40
|
+
"description": "Progress value 0-100 (-1 = indeterminate)",
|
|
41
|
+
"type": "number",
|
|
42
|
+
"default": -1
|
|
43
|
+
},
|
|
44
|
+
"variant": {
|
|
45
|
+
"description": "Color variant for the progress fill",
|
|
46
|
+
"type": "string",
|
|
47
|
+
"enum": [
|
|
48
|
+
"success",
|
|
49
|
+
"warning",
|
|
50
|
+
"danger",
|
|
51
|
+
"info",
|
|
52
|
+
"primary"
|
|
53
|
+
],
|
|
54
|
+
"default": ""
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"required": [
|
|
58
|
+
"component"
|
|
59
|
+
],
|
|
60
|
+
"unevaluatedProperties": false,
|
|
61
|
+
"x-adiaui": {
|
|
62
|
+
"anti_patterns": [],
|
|
63
|
+
"category": "data",
|
|
64
|
+
"events": {},
|
|
65
|
+
"examples": [
|
|
66
|
+
{
|
|
67
|
+
"description": "Basic ProgressRow usage",
|
|
68
|
+
"a2ui": "[\n {\n \"id\": \"root\",\n \"component\": \"Card\",\n \"children\": [\n \"sec\"\n ]\n },\n {\n \"id\": \"sec\",\n \"component\": \"Section\",\n \"children\": [\n \"comp\"\n ]\n },\n {\n \"id\": \"comp\",\n \"component\": \"ProgressRow\",\n \"label\": \"Example ProgressRow\"\n }\n]",
|
|
69
|
+
"name": "basic-progress-row"
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"keywords": [
|
|
73
|
+
"progressrow",
|
|
74
|
+
"progress-row",
|
|
75
|
+
"progress",
|
|
76
|
+
"row"
|
|
77
|
+
],
|
|
78
|
+
"name": "AdiaProgressRow",
|
|
79
|
+
"related": [],
|
|
80
|
+
"slots": {
|
|
81
|
+
"label": {
|
|
82
|
+
"description": "Label region — control label."
|
|
83
|
+
},
|
|
84
|
+
"meta": {
|
|
85
|
+
"description": "Child content region for the `meta` slot."
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"states": [
|
|
89
|
+
{
|
|
90
|
+
"description": "Default, ready for interaction.",
|
|
91
|
+
"name": "idle"
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"synonyms": {},
|
|
95
|
+
"tag": "progress-row-ui",
|
|
96
|
+
"tokens": {},
|
|
97
|
+
"traits": [],
|
|
98
|
+
"version": 1
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
@scope (progress-row-ui) {
|
|
2
|
+
:where(:scope) {
|
|
3
|
+
/* ── Tokens ── */
|
|
4
|
+
--progress-row-gap: var(--a-space-1);
|
|
5
|
+
--progress-row-column-gap: var(--a-space-2);
|
|
6
|
+
--progress-row-label-size: var(--a-ui-size);
|
|
7
|
+
--progress-row-label-fg: var(--a-fg);
|
|
8
|
+
--progress-row-meta-size: var(--a-ui-sm);
|
|
9
|
+
--progress-row-meta-fg: var(--a-fg-muted);
|
|
10
|
+
|
|
11
|
+
/* Fill color piped into nested progress-ui via its own token */
|
|
12
|
+
--progress-row-fill-bg: var(--a-accent-bg);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:scope {
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
display: grid;
|
|
18
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
19
|
+
grid-template-areas:
|
|
20
|
+
"label meta"
|
|
21
|
+
"bar bar";
|
|
22
|
+
column-gap: var(--progress-row-column-gap);
|
|
23
|
+
row-gap: var(--progress-row-gap);
|
|
24
|
+
align-items: baseline;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[slot="label"] {
|
|
28
|
+
grid-area: label;
|
|
29
|
+
font-size: var(--progress-row-label-size);
|
|
30
|
+
color: var(--progress-row-label-fg);
|
|
31
|
+
line-height: 1.4;
|
|
32
|
+
min-width: 0;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
text-overflow: ellipsis;
|
|
35
|
+
white-space: nowrap;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
[slot="meta"] {
|
|
39
|
+
grid-area: meta;
|
|
40
|
+
font-size: var(--progress-row-meta-size);
|
|
41
|
+
color: var(--progress-row-meta-fg);
|
|
42
|
+
font-variant-numeric: tabular-nums;
|
|
43
|
+
justify-self: end;
|
|
44
|
+
line-height: 1.4;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
progress-ui {
|
|
48
|
+
grid-area: bar;
|
|
49
|
+
/* Pipe our component token into the nested progress component's token */
|
|
50
|
+
--progress-fill-bg: var(--progress-row-fill-bg);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* Variants — remap own tokens only; the nested progress inherits via --progress-row-fill-bg. */
|
|
54
|
+
:scope[variant="success"] { --progress-row-fill-bg: var(--a-success-bg); }
|
|
55
|
+
:scope[variant="warning"] { --progress-row-fill-bg: var(--a-warning-bg); }
|
|
56
|
+
:scope[variant="danger"] { --progress-row-fill-bg: var(--a-danger-bg); }
|
|
57
|
+
}
|