@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,71 @@
|
|
|
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: AdiaAgentArtifact
|
|
5
|
+
tag: agent-artifact-ui
|
|
6
|
+
component: AgentArtifact
|
|
7
|
+
category: agent
|
|
8
|
+
version: 1
|
|
9
|
+
description: Inline container for structured agent artifacts (A2UI, JSON, tickets).
|
|
10
|
+
props:
|
|
11
|
+
kind:
|
|
12
|
+
description: Uppercase badge label.
|
|
13
|
+
type: string
|
|
14
|
+
default: ""
|
|
15
|
+
collapsed:
|
|
16
|
+
description: Start collapsed.
|
|
17
|
+
type: boolean
|
|
18
|
+
default: false
|
|
19
|
+
icon:
|
|
20
|
+
description: icon-ui name in header.
|
|
21
|
+
type: string
|
|
22
|
+
default: ""
|
|
23
|
+
title:
|
|
24
|
+
description: Header title.
|
|
25
|
+
type: string
|
|
26
|
+
default: ""
|
|
27
|
+
tone:
|
|
28
|
+
description: neutral | accent | warning | danger
|
|
29
|
+
type: string
|
|
30
|
+
default: neutral
|
|
31
|
+
events:
|
|
32
|
+
artifact-toggle:
|
|
33
|
+
description: "Fired on artifact-toggle."
|
|
34
|
+
slots:
|
|
35
|
+
default:
|
|
36
|
+
description: "Default slot — primary child content."
|
|
37
|
+
primary:
|
|
38
|
+
description: "Child content region for the `primary` slot."
|
|
39
|
+
secondary:
|
|
40
|
+
description: "Child content region for the `secondary` slot."
|
|
41
|
+
states:
|
|
42
|
+
- name: idle
|
|
43
|
+
description: Default, ready for interaction.
|
|
44
|
+
traits: []
|
|
45
|
+
tokens: {}
|
|
46
|
+
a2ui:
|
|
47
|
+
rules: []
|
|
48
|
+
anti_patterns: []
|
|
49
|
+
examples:
|
|
50
|
+
- name: basic
|
|
51
|
+
description: Artifact with a code body and two actions.
|
|
52
|
+
a2ui: >-
|
|
53
|
+
[
|
|
54
|
+
{
|
|
55
|
+
"id": "root",
|
|
56
|
+
"component": "AgentArtifact",
|
|
57
|
+
"title": "product-card",
|
|
58
|
+
"kind": "A2UI",
|
|
59
|
+
"icon": "layout"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
keywords:
|
|
63
|
+
- artifact
|
|
64
|
+
- container
|
|
65
|
+
- inline
|
|
66
|
+
- preview
|
|
67
|
+
- attachment
|
|
68
|
+
synonyms: {}
|
|
69
|
+
related:
|
|
70
|
+
- card-ui
|
|
71
|
+
- code-ui
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://adiaui.dev/a2ui/v0_9/components/AgentFeedbackBar.json",
|
|
4
|
+
"title": "AgentFeedbackBar",
|
|
5
|
+
"description": "Thumbs + save row under an agent response.",
|
|
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": "AgentFeedbackBar"
|
|
18
|
+
},
|
|
19
|
+
"disabled": {
|
|
20
|
+
"description": "Disable all actions.",
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"default": false
|
|
23
|
+
},
|
|
24
|
+
"saveIcon": {
|
|
25
|
+
"description": "Save button icon.",
|
|
26
|
+
"type": "string",
|
|
27
|
+
"default": "bookmark-simple"
|
|
28
|
+
},
|
|
29
|
+
"saveLabel": {
|
|
30
|
+
"description": "Save button text; empty hides it.",
|
|
31
|
+
"type": "string",
|
|
32
|
+
"default": ""
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"required": [
|
|
36
|
+
"component"
|
|
37
|
+
],
|
|
38
|
+
"unevaluatedProperties": false,
|
|
39
|
+
"x-adiaui": {
|
|
40
|
+
"anti_patterns": [],
|
|
41
|
+
"category": "agent",
|
|
42
|
+
"events": {
|
|
43
|
+
"feedback-rate": {
|
|
44
|
+
"description": "Fired on feedback-rate."
|
|
45
|
+
},
|
|
46
|
+
"feedback-save": {
|
|
47
|
+
"description": "Fired on feedback-save."
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"examples": [
|
|
51
|
+
{
|
|
52
|
+
"description": "Thumbs + save",
|
|
53
|
+
"a2ui": "[\n {\n \"id\": \"root\",\n \"component\": \"AgentFeedbackBar\",\n \"saveLabel\": \"Save pattern\"\n }\n]",
|
|
54
|
+
"name": "basic"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"keywords": [
|
|
58
|
+
"feedback",
|
|
59
|
+
"thumbs",
|
|
60
|
+
"rating",
|
|
61
|
+
"save",
|
|
62
|
+
"bookmark"
|
|
63
|
+
],
|
|
64
|
+
"name": "AdiaAgentFeedbackBar",
|
|
65
|
+
"related": [
|
|
66
|
+
"agent-suggestions-ui",
|
|
67
|
+
"agent-trace-ui"
|
|
68
|
+
],
|
|
69
|
+
"slots": {
|
|
70
|
+
"default": {
|
|
71
|
+
"description": "Default slot — primary child content."
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"states": [
|
|
75
|
+
{
|
|
76
|
+
"description": "Default, ready for interaction.",
|
|
77
|
+
"name": "idle"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"description": "Non-interactive; dimmed.",
|
|
81
|
+
"attribute": "disabled",
|
|
82
|
+
"name": "disabled"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"synonyms": {},
|
|
86
|
+
"tag": "agent-feedback-bar-ui",
|
|
87
|
+
"tokens": {},
|
|
88
|
+
"traits": [],
|
|
89
|
+
"version": 1
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@scope (agent-feedback-bar-ui) {
|
|
2
|
+
:where(:scope) {
|
|
3
|
+
/* ── Layout ── */
|
|
4
|
+
--agent-feedback-bar-gap: var(--a-space-1);
|
|
5
|
+
--agent-feedback-bar-padding: var(--a-space-2);
|
|
6
|
+
|
|
7
|
+
/* ── Typography ── */
|
|
8
|
+
--agent-feedback-bar-font: var(--a-ui-sm);
|
|
9
|
+
|
|
10
|
+
/* ── Colors ── */
|
|
11
|
+
--agent-feedback-bar-fg: var(--a-fg-muted);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:scope {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
gap: var(--agent-feedback-bar-gap);
|
|
18
|
+
padding-block: var(--agent-feedback-bar-padding);
|
|
19
|
+
font-size: var(--agent-feedback-bar-font);
|
|
20
|
+
color: var(--agent-feedback-bar-fg);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-feedback-status] {
|
|
24
|
+
margin-inline-start: auto;
|
|
25
|
+
color: var(--agent-feedback-bar-fg);
|
|
26
|
+
font-size: var(--agent-feedback-bar-font);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:scope[disabled] {
|
|
30
|
+
opacity: 0.6;
|
|
31
|
+
pointer-events: none;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <agent-feedback-bar-ui> — Thumbs + save row under an agent response.
|
|
3
|
+
*
|
|
4
|
+
* Emits semantic events; the host decides how to persist. Status slot shows a
|
|
5
|
+
* short acknowledgement ("Thanks!", "Saved as X") after an action fires.
|
|
6
|
+
*
|
|
7
|
+
* Usage:
|
|
8
|
+
* <agent-feedback-bar-ui
|
|
9
|
+
* save-label="Save pattern"
|
|
10
|
+
* save-icon="bookmark-simple"
|
|
11
|
+
* ></agent-feedback-bar-ui>
|
|
12
|
+
*
|
|
13
|
+
* el.addEventListener('feedback-rate', e => persist(e.detail.rating));
|
|
14
|
+
* el.addEventListener('feedback-save', async () => {
|
|
15
|
+
* const name = await savePattern(...);
|
|
16
|
+
* el.setStatus(`Saved as "${name}"`, { lock: 'save' });
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* Attributes:
|
|
20
|
+
* save-label — text of the save button (empty → save button hidden)
|
|
21
|
+
* save-icon — icon for the save button (default: bookmark-simple)
|
|
22
|
+
* disabled — disable all actions
|
|
23
|
+
*
|
|
24
|
+
* Events:
|
|
25
|
+
* feedback-rate — detail: { rating: 1..5 } (thumbs-up = 5, thumbs-down = 2)
|
|
26
|
+
* feedback-save — detail: {} (save action pressed)
|
|
27
|
+
*
|
|
28
|
+
* JS API:
|
|
29
|
+
* .setStatus(text, { lock? }) lock='rate'|'save'|'all' disables matching buttons
|
|
30
|
+
* .reset() clear status, re-enable buttons
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
import { AdiaElement } from '@core/element.js';
|
|
34
|
+
|
|
35
|
+
class AdiaAgentFeedbackBar extends AdiaElement {
|
|
36
|
+
static properties = {
|
|
37
|
+
'save-label': { type: String, default: '', attribute: 'save-label' },
|
|
38
|
+
'save-icon': { type: String, default: 'bookmark-simple', attribute: 'save-icon' },
|
|
39
|
+
disabled: { type: Boolean, default: false, reflect: true },
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
static template = () => null;
|
|
43
|
+
|
|
44
|
+
#upEl = null;
|
|
45
|
+
#downEl = null;
|
|
46
|
+
#saveEl = null;
|
|
47
|
+
#statusEl = null;
|
|
48
|
+
#rated = false;
|
|
49
|
+
#saved = false;
|
|
50
|
+
|
|
51
|
+
connected() {
|
|
52
|
+
this.#build();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
disconnected() {
|
|
56
|
+
this.#upEl?.removeEventListener('press', this.#onUp);
|
|
57
|
+
this.#downEl?.removeEventListener('press', this.#onDown);
|
|
58
|
+
this.#saveEl?.removeEventListener('press', this.#onSave);
|
|
59
|
+
this.#upEl = this.#downEl = this.#saveEl = this.#statusEl = null;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
setStatus(text, { lock = '' } = {}) {
|
|
63
|
+
if (!this.#statusEl) return;
|
|
64
|
+
this.#statusEl.textContent = text || '';
|
|
65
|
+
if (lock === 'rate' || lock === 'all') {
|
|
66
|
+
this.#rated = true;
|
|
67
|
+
if (this.#upEl) this.#upEl.disabled = true;
|
|
68
|
+
if (this.#downEl) this.#downEl.disabled = true;
|
|
69
|
+
}
|
|
70
|
+
if (lock === 'save' || lock === 'all') {
|
|
71
|
+
this.#saved = true;
|
|
72
|
+
if (this.#saveEl) this.#saveEl.disabled = true;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
reset() {
|
|
77
|
+
this.#rated = false;
|
|
78
|
+
this.#saved = false;
|
|
79
|
+
if (this.#statusEl) this.#statusEl.textContent = '';
|
|
80
|
+
if (this.#upEl) this.#upEl.disabled = false;
|
|
81
|
+
if (this.#downEl) this.#downEl.disabled = false;
|
|
82
|
+
if (this.#saveEl) this.#saveEl.disabled = false;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
#onUp = () => { if (!this.#rated && !this.disabled) this.#emitRate(5); };
|
|
86
|
+
#onDown = () => { if (!this.#rated && !this.disabled) this.#emitRate(2); };
|
|
87
|
+
#onSave = () => { if (!this.#saved && !this.disabled) this.#emitSave(); };
|
|
88
|
+
|
|
89
|
+
#emitRate(rating) {
|
|
90
|
+
this.dispatchEvent(new CustomEvent('feedback-rate', {
|
|
91
|
+
bubbles: true, detail: { rating },
|
|
92
|
+
}));
|
|
93
|
+
// Host owns lock — but pre-set a generic ack as a courtesy.
|
|
94
|
+
if (!this.#statusEl?.textContent) {
|
|
95
|
+
this.setStatus(rating >= 4 ? 'Thanks!' : 'Noted', { lock: 'rate' });
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
#emitSave() {
|
|
100
|
+
this.dispatchEvent(new CustomEvent('feedback-save', {
|
|
101
|
+
bubbles: true, detail: {},
|
|
102
|
+
}));
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
render() {
|
|
106
|
+
// Re-sync attributes (label/icon) that may have changed.
|
|
107
|
+
const label = this['save-label'];
|
|
108
|
+
const icon = this['save-icon'];
|
|
109
|
+
if (this.#saveEl) {
|
|
110
|
+
if (label) {
|
|
111
|
+
this.#saveEl.setAttribute('text', label);
|
|
112
|
+
this.#saveEl.hidden = false;
|
|
113
|
+
} else {
|
|
114
|
+
this.#saveEl.hidden = true;
|
|
115
|
+
}
|
|
116
|
+
if (icon) this.#saveEl.setAttribute('icon', icon);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
#build() {
|
|
121
|
+
this.innerHTML = '';
|
|
122
|
+
|
|
123
|
+
this.#upEl = makeButton({ icon: 'thumbs-up' });
|
|
124
|
+
this.#downEl = makeButton({ icon: 'thumbs-down' });
|
|
125
|
+
this.#saveEl = makeButton({
|
|
126
|
+
icon: this['save-icon'] || 'bookmark-simple',
|
|
127
|
+
text: this['save-label'] || '',
|
|
128
|
+
});
|
|
129
|
+
if (!this['save-label']) this.#saveEl.hidden = true;
|
|
130
|
+
|
|
131
|
+
this.#upEl.addEventListener('press', this.#onUp);
|
|
132
|
+
this.#downEl.addEventListener('press', this.#onDown);
|
|
133
|
+
this.#saveEl.addEventListener('press', this.#onSave);
|
|
134
|
+
|
|
135
|
+
this.#statusEl = document.createElement('span');
|
|
136
|
+
this.#statusEl.setAttribute('data-feedback-status', '');
|
|
137
|
+
|
|
138
|
+
this.append(this.#upEl, this.#downEl, this.#saveEl, this.#statusEl);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
function makeButton({ icon, text = '' }) {
|
|
143
|
+
const btn = document.createElement('button-ui');
|
|
144
|
+
btn.setAttribute('icon', icon);
|
|
145
|
+
btn.setAttribute('variant', 'ghost');
|
|
146
|
+
btn.setAttribute('size', 'sm');
|
|
147
|
+
if (text) btn.setAttribute('text', text);
|
|
148
|
+
return btn;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
customElements.define('agent-feedback-bar-ui', AdiaAgentFeedbackBar);
|
|
152
|
+
export { AdiaAgentFeedbackBar };
|
|
@@ -0,0 +1,65 @@
|
|
|
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: AdiaAgentFeedbackBar
|
|
5
|
+
tag: agent-feedback-bar-ui
|
|
6
|
+
component: AgentFeedbackBar
|
|
7
|
+
category: agent
|
|
8
|
+
version: 1
|
|
9
|
+
description: Thumbs + save row under an agent response.
|
|
10
|
+
props:
|
|
11
|
+
disabled:
|
|
12
|
+
description: Disable all actions.
|
|
13
|
+
type: boolean
|
|
14
|
+
default: false
|
|
15
|
+
reflect: true
|
|
16
|
+
saveIcon:
|
|
17
|
+
description: Save button icon.
|
|
18
|
+
type: string
|
|
19
|
+
default: bookmark-simple
|
|
20
|
+
attribute: save-icon
|
|
21
|
+
saveLabel:
|
|
22
|
+
description: Save button text; empty hides it.
|
|
23
|
+
type: string
|
|
24
|
+
default: ""
|
|
25
|
+
attribute: save-label
|
|
26
|
+
events:
|
|
27
|
+
feedback-rate:
|
|
28
|
+
description: "Fired on feedback-rate."
|
|
29
|
+
feedback-save:
|
|
30
|
+
description: "Fired on feedback-save."
|
|
31
|
+
slots:
|
|
32
|
+
default:
|
|
33
|
+
description: "Default slot — primary child content."
|
|
34
|
+
states:
|
|
35
|
+
- name: idle
|
|
36
|
+
description: Default, ready for interaction.
|
|
37
|
+
- name: disabled
|
|
38
|
+
description: Non-interactive; dimmed.
|
|
39
|
+
attribute: disabled
|
|
40
|
+
traits: []
|
|
41
|
+
tokens: {}
|
|
42
|
+
a2ui:
|
|
43
|
+
rules: []
|
|
44
|
+
anti_patterns: []
|
|
45
|
+
examples:
|
|
46
|
+
- name: basic
|
|
47
|
+
description: Thumbs + save
|
|
48
|
+
a2ui: >-
|
|
49
|
+
[
|
|
50
|
+
{
|
|
51
|
+
"id": "root",
|
|
52
|
+
"component": "AgentFeedbackBar",
|
|
53
|
+
"saveLabel": "Save pattern"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
keywords:
|
|
57
|
+
- feedback
|
|
58
|
+
- thumbs
|
|
59
|
+
- rating
|
|
60
|
+
- save
|
|
61
|
+
- bookmark
|
|
62
|
+
synonyms: {}
|
|
63
|
+
related:
|
|
64
|
+
- agent-suggestions-ui
|
|
65
|
+
- agent-trace-ui
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://adiaui.dev/a2ui/v0_9/components/AgentQuestions.json",
|
|
4
|
+
"title": "AgentQuestions",
|
|
5
|
+
"description": "Multi-choice clarifying-question cards.",
|
|
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": "AgentQuestions"
|
|
18
|
+
},
|
|
19
|
+
"helper": {
|
|
20
|
+
"description": "Helper text.",
|
|
21
|
+
"type": "string",
|
|
22
|
+
"default": ""
|
|
23
|
+
},
|
|
24
|
+
"multi": {
|
|
25
|
+
"description": "Allow multi-select.",
|
|
26
|
+
"type": "boolean",
|
|
27
|
+
"default": false
|
|
28
|
+
},
|
|
29
|
+
"question": {
|
|
30
|
+
"description": "Headline question.",
|
|
31
|
+
"type": "string",
|
|
32
|
+
"default": ""
|
|
33
|
+
},
|
|
34
|
+
"submitLabel": {
|
|
35
|
+
"description": "Submit button label (multi mode).",
|
|
36
|
+
"type": "string",
|
|
37
|
+
"default": "Continue"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"required": [
|
|
41
|
+
"component"
|
|
42
|
+
],
|
|
43
|
+
"unevaluatedProperties": false,
|
|
44
|
+
"x-adiaui": {
|
|
45
|
+
"anti_patterns": [],
|
|
46
|
+
"category": "agent",
|
|
47
|
+
"events": {
|
|
48
|
+
"questions-answer": {
|
|
49
|
+
"description": "Fired on questions-answer."
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"examples": [
|
|
53
|
+
{
|
|
54
|
+
"description": "Three-option clarifying question",
|
|
55
|
+
"a2ui": "[\n {\n \"id\": \"root\",\n \"component\": \"AgentQuestions\",\n \"question\": \"Which direction fits best?\"\n }\n]",
|
|
56
|
+
"name": "basic"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"keywords": [
|
|
60
|
+
"questions",
|
|
61
|
+
"choices",
|
|
62
|
+
"options",
|
|
63
|
+
"multiple choice",
|
|
64
|
+
"elicit",
|
|
65
|
+
"clarify"
|
|
66
|
+
],
|
|
67
|
+
"name": "AdiaAgentQuestions",
|
|
68
|
+
"related": [
|
|
69
|
+
"agent-suggestions-ui",
|
|
70
|
+
"agent-reasoning-ui"
|
|
71
|
+
],
|
|
72
|
+
"slots": {
|
|
73
|
+
"default": {
|
|
74
|
+
"description": "Default slot — primary child content."
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"states": [
|
|
78
|
+
{
|
|
79
|
+
"description": "Default, ready for interaction.",
|
|
80
|
+
"name": "idle"
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"synonyms": {},
|
|
84
|
+
"tag": "agent-questions-ui",
|
|
85
|
+
"tokens": {},
|
|
86
|
+
"traits": [],
|
|
87
|
+
"version": 1
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
@scope (agent-questions-ui) {
|
|
2
|
+
:where(:scope) {
|
|
3
|
+
/* ── Typography ── */
|
|
4
|
+
--agent-questions-q-size: var(--a-ui-md);
|
|
5
|
+
--agent-questions-q-weight: var(--a-weight-medium);
|
|
6
|
+
--agent-questions-helper-size: var(--a-ui-sm);
|
|
7
|
+
--agent-questions-label-size: var(--a-ui-md);
|
|
8
|
+
--agent-questions-label-weight: var(--a-weight-medium);
|
|
9
|
+
--agent-questions-desc-size: var(--a-ui-sm);
|
|
10
|
+
|
|
11
|
+
/* ── Colors ── */
|
|
12
|
+
--agent-questions-q-fg: var(--a-fg);
|
|
13
|
+
--agent-questions-helper-fg: var(--a-fg-muted);
|
|
14
|
+
--agent-questions-label-fg: var(--a-fg);
|
|
15
|
+
--agent-questions-desc-fg: var(--a-fg-muted);
|
|
16
|
+
--agent-questions-option-bg: var(--a-bg);
|
|
17
|
+
--agent-questions-option-bg-hover: var(--a-bg-subtle);
|
|
18
|
+
--agent-questions-option-bg-sel: var(--a-accent-muted);
|
|
19
|
+
--agent-questions-option-border: var(--a-border-subtle);
|
|
20
|
+
--agent-questions-option-border-sel: var(--a-accent-bg);
|
|
21
|
+
--agent-questions-check-bg: var(--a-accent-bg);
|
|
22
|
+
--agent-questions-check-fg: var(--a-accent-fg);
|
|
23
|
+
|
|
24
|
+
/* ── Layout ── */
|
|
25
|
+
--agent-questions-gap: var(--a-space-2);
|
|
26
|
+
--agent-questions-option-gap: var(--a-space-3);
|
|
27
|
+
--agent-questions-option-padding: var(--a-space-3);
|
|
28
|
+
--agent-questions-option-radius: var(--a-radius);
|
|
29
|
+
--agent-questions-q-padding: var(--a-space-1);
|
|
30
|
+
/* Component-intrinsic measurement; no --a-space-* equivalent */
|
|
31
|
+
--agent-questions-check-size: 20px;
|
|
32
|
+
|
|
33
|
+
/* ── Motion ── */
|
|
34
|
+
--agent-questions-duration: var(--a-duration-fast);
|
|
35
|
+
--agent-questions-easing: var(--a-easing-out);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:scope {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
gap: var(--agent-questions-gap);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[data-questions-q] {
|
|
45
|
+
font-size: var(--agent-questions-q-size);
|
|
46
|
+
font-weight: var(--agent-questions-q-weight);
|
|
47
|
+
color: var(--agent-questions-q-fg);
|
|
48
|
+
padding: var(--agent-questions-q-padding) 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
[data-questions-helper] {
|
|
52
|
+
font-size: var(--agent-questions-helper-size);
|
|
53
|
+
color: var(--agent-questions-helper-fg);
|
|
54
|
+
padding-block-end: var(--a-space-1);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
[data-questions-options] {
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
gap: var(--agent-questions-gap);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
[data-questions-option] {
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
gap: var(--agent-questions-option-gap);
|
|
67
|
+
padding: var(--agent-questions-option-padding);
|
|
68
|
+
border: 1px solid var(--agent-questions-option-border);
|
|
69
|
+
border-radius: var(--agent-questions-option-radius);
|
|
70
|
+
background: var(--agent-questions-option-bg);
|
|
71
|
+
color: inherit;
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
text-align: start;
|
|
74
|
+
font: inherit;
|
|
75
|
+
transition:
|
|
76
|
+
background var(--agent-questions-duration) var(--agent-questions-easing),
|
|
77
|
+
border-color var(--agent-questions-duration) var(--agent-questions-easing);
|
|
78
|
+
min-width: 0;
|
|
79
|
+
width: 100%;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
[data-questions-option]:hover {
|
|
83
|
+
background: var(--agent-questions-option-bg-hover);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
[data-questions-option][data-selected] {
|
|
87
|
+
background: var(--agent-questions-option-bg-sel);
|
|
88
|
+
border-color: var(--agent-questions-option-border-sel);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
[data-questions-option][disabled] {
|
|
92
|
+
cursor: default;
|
|
93
|
+
opacity: 0.7;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
[data-questions-option]:focus-visible {
|
|
97
|
+
outline: 2px solid var(--agent-questions-option-border-sel);
|
|
98
|
+
outline-offset: 2px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
[data-questions-option-icon] {
|
|
102
|
+
flex-shrink: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
[data-questions-option-body] {
|
|
106
|
+
flex: 1;
|
|
107
|
+
min-width: 0;
|
|
108
|
+
display: flex;
|
|
109
|
+
flex-direction: column;
|
|
110
|
+
gap: 2px;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
[data-questions-option-label] {
|
|
114
|
+
font-size: var(--agent-questions-label-size);
|
|
115
|
+
font-weight: var(--agent-questions-label-weight);
|
|
116
|
+
color: var(--agent-questions-label-fg);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
[data-questions-option-desc] {
|
|
120
|
+
font-size: var(--agent-questions-desc-size);
|
|
121
|
+
color: var(--agent-questions-desc-fg);
|
|
122
|
+
line-height: 1.4;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
[data-questions-option-check] {
|
|
126
|
+
width: var(--agent-questions-check-size);
|
|
127
|
+
height: var(--agent-questions-check-size);
|
|
128
|
+
border-radius: 50%;
|
|
129
|
+
flex-shrink: 0;
|
|
130
|
+
display: flex;
|
|
131
|
+
align-items: center;
|
|
132
|
+
justify-content: center;
|
|
133
|
+
background: transparent;
|
|
134
|
+
opacity: 0;
|
|
135
|
+
transition: opacity var(--agent-questions-duration) var(--agent-questions-easing);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
[data-questions-option][data-selected] [data-questions-option-check] {
|
|
139
|
+
background: var(--agent-questions-check-bg);
|
|
140
|
+
opacity: 1;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
[data-questions-option][data-selected] [data-questions-option-check] icon-ui {
|
|
144
|
+
color: var(--agent-questions-check-fg);
|
|
145
|
+
}
|
|
146
|
+
}
|