@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,577 @@
|
|
|
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: AdiaGrid
|
|
5
|
+
tag: grid-ui
|
|
6
|
+
component: Grid
|
|
7
|
+
category: layout
|
|
8
|
+
version: 1
|
|
9
|
+
description: >-
|
|
10
|
+
CSS grid layout primitive. Supports [columns="1..6"] for equal columns,
|
|
11
|
+
[columns="auto-fill"|"auto-fit"] for responsive density, and a per-child
|
|
12
|
+
[span="2..6"|"full"] attribute for asymmetric layouts. Compose a 2:1 split as
|
|
13
|
+
columns="3" + the wide child span="2"; compose a 3:2 split as columns="5" +
|
|
14
|
+
span="3" + span="2". Never set grid-template-columns via inline style — use the
|
|
15
|
+
span attribute on children instead.
|
|
16
|
+
props:
|
|
17
|
+
columnGap:
|
|
18
|
+
description: Column gap override
|
|
19
|
+
type: string
|
|
20
|
+
default: ""
|
|
21
|
+
attribute: column-gap
|
|
22
|
+
columns:
|
|
23
|
+
description: Number of columns or grid-template-columns
|
|
24
|
+
type: string
|
|
25
|
+
default: "3"
|
|
26
|
+
cols:
|
|
27
|
+
description: Alias for `columns` — accepted for back-compat.
|
|
28
|
+
type: string
|
|
29
|
+
default: ""
|
|
30
|
+
gap:
|
|
31
|
+
description: Grid gap
|
|
32
|
+
type: string
|
|
33
|
+
default: md
|
|
34
|
+
rowGap:
|
|
35
|
+
description: Row gap override
|
|
36
|
+
type: string
|
|
37
|
+
default: ""
|
|
38
|
+
attribute: row-gap
|
|
39
|
+
events: {}
|
|
40
|
+
slots:
|
|
41
|
+
default:
|
|
42
|
+
description: "Default slot — primary child content."
|
|
43
|
+
states:
|
|
44
|
+
- name: idle
|
|
45
|
+
description: Default, ready for interaction.
|
|
46
|
+
traits: []
|
|
47
|
+
tokens: {}
|
|
48
|
+
a2ui:
|
|
49
|
+
rules:
|
|
50
|
+
- >-
|
|
51
|
+
For asymmetric column ratios, use [columns="N"] plus [span="M"] on the child
|
|
52
|
+
that should be wider. Never set grid-template-columns via style — it bypasses
|
|
53
|
+
the component API and reads as a local hack.
|
|
54
|
+
- >-
|
|
55
|
+
Canonical ratios: 1:1 → columns="2"; 2:1 → columns="3" + span="2";
|
|
56
|
+
3:1 → columns="4" + span="3"; 3:2 → columns="5" + span="3"+"2";
|
|
57
|
+
4:1 → columns="5" + span="4". Round unusual ratios (e.g. 7:5) to 3:2.
|
|
58
|
+
- >-
|
|
59
|
+
The default (no columns attribute) gives equal auto-columns flowing in a
|
|
60
|
+
single row. Prefer the explicit numeric attribute for dashboard rows so the
|
|
61
|
+
layout is predictable when items wrap.
|
|
62
|
+
anti_patterns: []
|
|
63
|
+
examples:
|
|
64
|
+
- name: chart-dashboard
|
|
65
|
+
description: Dashboard with KPI stat grid and two chart cards.
|
|
66
|
+
a2ui: >-
|
|
67
|
+
[
|
|
68
|
+
{
|
|
69
|
+
"id": "root",
|
|
70
|
+
"component": "Column",
|
|
71
|
+
"children": [
|
|
72
|
+
"header-row",
|
|
73
|
+
"kpi-grid",
|
|
74
|
+
"chart-grid"
|
|
75
|
+
],
|
|
76
|
+
"gap": "4"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"id": "header-row",
|
|
80
|
+
"component": "Row",
|
|
81
|
+
"children": [
|
|
82
|
+
"dash-title",
|
|
83
|
+
"dash-actions"
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"id": "dash-title",
|
|
88
|
+
"component": "Text",
|
|
89
|
+
"textContent": "Dashboard",
|
|
90
|
+
"variant": "title"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"id": "dash-actions",
|
|
94
|
+
"component": "Row",
|
|
95
|
+
"children": [
|
|
96
|
+
"export-btn"
|
|
97
|
+
],
|
|
98
|
+
"gap": "2"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"id": "export-btn",
|
|
102
|
+
"component": "Button",
|
|
103
|
+
"text": "Export",
|
|
104
|
+
"variant": "outline",
|
|
105
|
+
"size": "sm",
|
|
106
|
+
"icon": "download"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"id": "kpi-grid",
|
|
110
|
+
"component": "Grid",
|
|
111
|
+
"children": [
|
|
112
|
+
"k1",
|
|
113
|
+
"k2",
|
|
114
|
+
"k3",
|
|
115
|
+
"k4"
|
|
116
|
+
],
|
|
117
|
+
"columns": "4"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"id": "k1",
|
|
121
|
+
"component": "Card",
|
|
122
|
+
"children": [
|
|
123
|
+
"k1h",
|
|
124
|
+
"k1s"
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"id": "k1h",
|
|
129
|
+
"component": "Header",
|
|
130
|
+
"children": [
|
|
131
|
+
"k1l"
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"id": "k1l",
|
|
136
|
+
"component": "Text",
|
|
137
|
+
"slot": "heading",
|
|
138
|
+
"textContent": "Revenue",
|
|
139
|
+
"variant": "label"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"id": "k1s",
|
|
143
|
+
"component": "Section",
|
|
144
|
+
"children": [
|
|
145
|
+
"k1v",
|
|
146
|
+
"k1b"
|
|
147
|
+
]
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"id": "k1v",
|
|
151
|
+
"component": "Text",
|
|
152
|
+
"textContent": "$48.2k",
|
|
153
|
+
"variant": "title"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"id": "k1b",
|
|
157
|
+
"component": "Badge",
|
|
158
|
+
"text": "+12.5%",
|
|
159
|
+
"variant": "success",
|
|
160
|
+
"size": "sm"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"id": "k2",
|
|
164
|
+
"component": "Card",
|
|
165
|
+
"children": [
|
|
166
|
+
"k2h",
|
|
167
|
+
"k2s"
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"id": "k2h",
|
|
172
|
+
"component": "Header",
|
|
173
|
+
"children": [
|
|
174
|
+
"k2l"
|
|
175
|
+
]
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"id": "k2l",
|
|
179
|
+
"component": "Text",
|
|
180
|
+
"slot": "heading",
|
|
181
|
+
"textContent": "Users",
|
|
182
|
+
"variant": "label"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"id": "k2s",
|
|
186
|
+
"component": "Section",
|
|
187
|
+
"children": [
|
|
188
|
+
"k2v",
|
|
189
|
+
"k2b"
|
|
190
|
+
]
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"id": "k2v",
|
|
194
|
+
"component": "Text",
|
|
195
|
+
"textContent": "2,340",
|
|
196
|
+
"variant": "title"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"id": "k2b",
|
|
200
|
+
"component": "Badge",
|
|
201
|
+
"text": "+8%",
|
|
202
|
+
"variant": "success",
|
|
203
|
+
"size": "sm"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"id": "k3",
|
|
207
|
+
"component": "Card",
|
|
208
|
+
"children": [
|
|
209
|
+
"k3h",
|
|
210
|
+
"k3s"
|
|
211
|
+
]
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"id": "k3h",
|
|
215
|
+
"component": "Header",
|
|
216
|
+
"children": [
|
|
217
|
+
"k3l"
|
|
218
|
+
]
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"id": "k3l",
|
|
222
|
+
"component": "Text",
|
|
223
|
+
"slot": "heading",
|
|
224
|
+
"textContent": "Bounce",
|
|
225
|
+
"variant": "label"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"id": "k3s",
|
|
229
|
+
"component": "Section",
|
|
230
|
+
"children": [
|
|
231
|
+
"k3v",
|
|
232
|
+
"k3b"
|
|
233
|
+
]
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"id": "k3v",
|
|
237
|
+
"component": "Text",
|
|
238
|
+
"textContent": "24.3%",
|
|
239
|
+
"variant": "title"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"id": "k3b",
|
|
243
|
+
"component": "Badge",
|
|
244
|
+
"text": "-3.1%",
|
|
245
|
+
"variant": "danger",
|
|
246
|
+
"size": "sm"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"id": "k4",
|
|
250
|
+
"component": "Card",
|
|
251
|
+
"children": [
|
|
252
|
+
"k4h",
|
|
253
|
+
"k4s"
|
|
254
|
+
]
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"id": "k4h",
|
|
258
|
+
"component": "Header",
|
|
259
|
+
"children": [
|
|
260
|
+
"k4l"
|
|
261
|
+
]
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"id": "k4l",
|
|
265
|
+
"component": "Text",
|
|
266
|
+
"slot": "heading",
|
|
267
|
+
"textContent": "Session",
|
|
268
|
+
"variant": "label"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"id": "k4s",
|
|
272
|
+
"component": "Section",
|
|
273
|
+
"children": [
|
|
274
|
+
"k4v",
|
|
275
|
+
"k4b"
|
|
276
|
+
]
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"id": "k4v",
|
|
280
|
+
"component": "Text",
|
|
281
|
+
"textContent": "4m 23s",
|
|
282
|
+
"variant": "title"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"id": "k4b",
|
|
286
|
+
"component": "Badge",
|
|
287
|
+
"text": "+15s",
|
|
288
|
+
"variant": "info",
|
|
289
|
+
"size": "sm"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"id": "chart-grid",
|
|
293
|
+
"component": "Grid",
|
|
294
|
+
"children": [
|
|
295
|
+
"ch1",
|
|
296
|
+
"ch2"
|
|
297
|
+
],
|
|
298
|
+
"columns": "2"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"id": "ch1",
|
|
302
|
+
"component": "Card",
|
|
303
|
+
"children": [
|
|
304
|
+
"ch1h",
|
|
305
|
+
"ch1s"
|
|
306
|
+
]
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"id": "ch1h",
|
|
310
|
+
"component": "Header",
|
|
311
|
+
"children": [
|
|
312
|
+
"ch1t"
|
|
313
|
+
]
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"id": "ch1t",
|
|
317
|
+
"component": "Text",
|
|
318
|
+
"slot": "heading",
|
|
319
|
+
"textContent": "Revenue",
|
|
320
|
+
"variant": "section"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"id": "ch1s",
|
|
324
|
+
"component": "Section",
|
|
325
|
+
"children": [
|
|
326
|
+
"ch1-chart"
|
|
327
|
+
]
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"id": "ch1-chart",
|
|
331
|
+
"component": "Chart",
|
|
332
|
+
"type": "bar",
|
|
333
|
+
"x": "month",
|
|
334
|
+
"y": "revenue"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"id": "ch2",
|
|
338
|
+
"component": "Card",
|
|
339
|
+
"children": [
|
|
340
|
+
"ch2h",
|
|
341
|
+
"ch2s"
|
|
342
|
+
]
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"id": "ch2h",
|
|
346
|
+
"component": "Header",
|
|
347
|
+
"children": [
|
|
348
|
+
"ch2t"
|
|
349
|
+
]
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"id": "ch2t",
|
|
353
|
+
"component": "Text",
|
|
354
|
+
"slot": "heading",
|
|
355
|
+
"textContent": "Users",
|
|
356
|
+
"variant": "section"
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"id": "ch2s",
|
|
360
|
+
"component": "Section",
|
|
361
|
+
"children": [
|
|
362
|
+
"ch2-chart"
|
|
363
|
+
]
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"id": "ch2-chart",
|
|
367
|
+
"component": "Chart",
|
|
368
|
+
"type": "line",
|
|
369
|
+
"x": "month",
|
|
370
|
+
"y": "users"
|
|
371
|
+
}
|
|
372
|
+
]
|
|
373
|
+
- name: dashboard
|
|
374
|
+
description: Two-column dashboard with quick actions (buttons) and system status (progress bars).
|
|
375
|
+
a2ui: >-
|
|
376
|
+
[
|
|
377
|
+
{
|
|
378
|
+
"id": "root",
|
|
379
|
+
"component": "Grid",
|
|
380
|
+
"children": [
|
|
381
|
+
"c1",
|
|
382
|
+
"c2"
|
|
383
|
+
],
|
|
384
|
+
"columns": "2"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"id": "c1",
|
|
388
|
+
"component": "Card",
|
|
389
|
+
"children": [
|
|
390
|
+
"c1h",
|
|
391
|
+
"c1s"
|
|
392
|
+
]
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"id": "c1h",
|
|
396
|
+
"component": "Header",
|
|
397
|
+
"children": [
|
|
398
|
+
"c1t"
|
|
399
|
+
]
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"id": "c1t",
|
|
403
|
+
"component": "Text",
|
|
404
|
+
"slot": "heading",
|
|
405
|
+
"textContent": "Quick Actions",
|
|
406
|
+
"variant": "section"
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
"id": "c1s",
|
|
410
|
+
"component": "Section",
|
|
411
|
+
"children": [
|
|
412
|
+
"c1col"
|
|
413
|
+
]
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"id": "c1col",
|
|
417
|
+
"component": "Column",
|
|
418
|
+
"children": [
|
|
419
|
+
"b1",
|
|
420
|
+
"b2",
|
|
421
|
+
"b3"
|
|
422
|
+
]
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"id": "b1",
|
|
426
|
+
"component": "Button",
|
|
427
|
+
"text": "New Project",
|
|
428
|
+
"variant": "solid",
|
|
429
|
+
"iconLeading": "plus"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"id": "b2",
|
|
433
|
+
"component": "Button",
|
|
434
|
+
"text": "Invite Member",
|
|
435
|
+
"variant": "outline",
|
|
436
|
+
"iconLeading": "users"
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"id": "b3",
|
|
440
|
+
"component": "Button",
|
|
441
|
+
"text": "View Reports",
|
|
442
|
+
"variant": "ghost",
|
|
443
|
+
"iconLeading": "chart"
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"id": "c2",
|
|
447
|
+
"component": "Card",
|
|
448
|
+
"children": [
|
|
449
|
+
"c2h",
|
|
450
|
+
"c2s"
|
|
451
|
+
]
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"id": "c2h",
|
|
455
|
+
"component": "Header",
|
|
456
|
+
"children": [
|
|
457
|
+
"c2t"
|
|
458
|
+
]
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"id": "c2t",
|
|
462
|
+
"component": "Text",
|
|
463
|
+
"slot": "heading",
|
|
464
|
+
"textContent": "System Status",
|
|
465
|
+
"variant": "section"
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"id": "c2s",
|
|
469
|
+
"component": "Section",
|
|
470
|
+
"children": [
|
|
471
|
+
"c2col"
|
|
472
|
+
]
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"id": "c2col",
|
|
476
|
+
"component": "Column",
|
|
477
|
+
"children": [
|
|
478
|
+
"p1",
|
|
479
|
+
"p2",
|
|
480
|
+
"p3"
|
|
481
|
+
]
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"id": "p1",
|
|
485
|
+
"component": "Progress",
|
|
486
|
+
"value": "92",
|
|
487
|
+
"label": "CPU"
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"id": "p2",
|
|
491
|
+
"component": "Progress",
|
|
492
|
+
"value": "67",
|
|
493
|
+
"label": "Memory"
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"id": "p3",
|
|
497
|
+
"component": "Progress",
|
|
498
|
+
"value": "34",
|
|
499
|
+
"label": "Disk"
|
|
500
|
+
}
|
|
501
|
+
]
|
|
502
|
+
keywords:
|
|
503
|
+
- grid
|
|
504
|
+
- ecommerce
|
|
505
|
+
- marketplace
|
|
506
|
+
- catalog
|
|
507
|
+
- columns
|
|
508
|
+
- photos
|
|
509
|
+
- pictures
|
|
510
|
+
- gallery
|
|
511
|
+
- portfolio
|
|
512
|
+
- responsive
|
|
513
|
+
synonyms:
|
|
514
|
+
catalog:
|
|
515
|
+
- product
|
|
516
|
+
- card
|
|
517
|
+
- image
|
|
518
|
+
- grid
|
|
519
|
+
- inventory
|
|
520
|
+
columns:
|
|
521
|
+
- split
|
|
522
|
+
- grid
|
|
523
|
+
- table
|
|
524
|
+
ecommerce:
|
|
525
|
+
- product
|
|
526
|
+
- pricing
|
|
527
|
+
- inventory
|
|
528
|
+
- card
|
|
529
|
+
- image
|
|
530
|
+
- grid
|
|
531
|
+
gallery:
|
|
532
|
+
- image
|
|
533
|
+
- gallery
|
|
534
|
+
- card
|
|
535
|
+
- grid
|
|
536
|
+
grid:
|
|
537
|
+
- table
|
|
538
|
+
- data
|
|
539
|
+
- card
|
|
540
|
+
- image
|
|
541
|
+
- feature
|
|
542
|
+
- grid
|
|
543
|
+
marketplace:
|
|
544
|
+
- product
|
|
545
|
+
- pricing
|
|
546
|
+
- card
|
|
547
|
+
- image
|
|
548
|
+
- grid
|
|
549
|
+
- search
|
|
550
|
+
- filter
|
|
551
|
+
photos:
|
|
552
|
+
- image
|
|
553
|
+
- gallery
|
|
554
|
+
- card
|
|
555
|
+
- grid
|
|
556
|
+
pictures:
|
|
557
|
+
- image
|
|
558
|
+
- gallery
|
|
559
|
+
- card
|
|
560
|
+
- grid
|
|
561
|
+
portfolio:
|
|
562
|
+
- image
|
|
563
|
+
- gallery
|
|
564
|
+
- card
|
|
565
|
+
- grid
|
|
566
|
+
- feature
|
|
567
|
+
responsive:
|
|
568
|
+
- split
|
|
569
|
+
- sidebar
|
|
570
|
+
- grid
|
|
571
|
+
- card
|
|
572
|
+
related:
|
|
573
|
+
- button
|
|
574
|
+
- badge
|
|
575
|
+
- chart
|
|
576
|
+
- progress
|
|
577
|
+
- color-picker
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://adiaui.dev/a2ui/v0_9/components/Header.json",
|
|
4
|
+
"title": "Header",
|
|
5
|
+
"description": "Card header. Contains heading text and optional action slot.",
|
|
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": "Header"
|
|
18
|
+
},
|
|
19
|
+
"padding": {
|
|
20
|
+
"description": "Bare attribute — enables default header padding. Card's own `padding` prop sets scale.",
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"default": false
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": [
|
|
26
|
+
"component"
|
|
27
|
+
],
|
|
28
|
+
"unevaluatedProperties": false,
|
|
29
|
+
"x-adiaui": {
|
|
30
|
+
"anti_patterns": [],
|
|
31
|
+
"category": "container",
|
|
32
|
+
"events": {},
|
|
33
|
+
"examples": [
|
|
34
|
+
{
|
|
35
|
+
"description": "Chat interface with message bubbles containing avatar and text pairs, plus an input footer.",
|
|
36
|
+
"a2ui": "[\n {\n \"id\": \"root\",\n \"component\": \"Card\",\n \"children\": [\n \"hdr\",\n \"sec\",\n \"ftr\"\n ]\n },\n {\n \"id\": \"hdr\",\n \"component\": \"Header\",\n \"children\": [\n \"title\"\n ]\n },\n {\n \"id\": \"title\",\n \"component\": \"Text\",\n \"slot\": \"heading\",\n \"textContent\": \"Chat\"\n },\n {\n \"id\": \"sec\",\n \"component\": \"Section\",\n \"children\": [\n \"messages\"\n ]\n },\n {\n \"id\": \"messages\",\n \"component\": \"Column\",\n \"gap\": \"3\",\n \"children\": [\n \"msg1\",\n \"msg2\",\n \"msg3\",\n \"msg4\"\n ]\n },\n {\n \"id\": \"msg1\",\n \"component\": \"Row\",\n \"gap\": \"2\",\n \"children\": [\n \"a1\",\n \"t1\"\n ]\n },\n {\n \"id\": \"a1\",\n \"component\": \"Avatar\",\n \"name\": \"User\",\n \"size\": \"sm\"\n },\n {\n \"id\": \"t1\",\n \"component\": \"Text\",\n \"variant\": \"body\",\n \"textContent\": \"Hello! Can you help me with something?\"\n },\n {\n \"id\": \"msg2\",\n \"component\": \"Row\",\n \"gap\": \"2\",\n \"children\": [\n \"a2\",\n \"t2\"\n ]\n },\n {\n \"id\": \"a2\",\n \"component\": \"Avatar\",\n \"name\": \"Assistant\",\n \"size\": \"sm\"\n },\n {\n \"id\": \"t2\",\n \"component\": \"Text\",\n \"variant\": \"body\",\n \"textContent\": \"Of course! I'd be happy to help. What do you need?\"\n },\n {\n \"id\": \"msg3\",\n \"component\": \"Row\",\n \"gap\": \"2\",\n \"children\": [\n \"a3\",\n \"t3\"\n ]\n },\n {\n \"id\": \"a3\",\n \"component\": \"Avatar\",\n \"name\": \"User\",\n \"size\": \"sm\"\n },\n {\n \"id\": \"t3\",\n \"component\": \"Text\",\n \"variant\": \"body\",\n \"textContent\": \"I need to build a dashboard layout.\"\n },\n {\n \"id\": \"msg4\",\n \"component\": \"Row\",\n \"gap\": \"2\",\n \"children\": [\n \"a4\",\n \"t4\"\n ]\n },\n {\n \"id\": \"a4\",\n \"component\": \"Avatar\",\n \"name\": \"Assistant\",\n \"size\": \"sm\"\n },\n {\n \"id\": \"t4\",\n \"component\": \"Text\",\n \"variant\": \"body\",\n \"textContent\": \"Great choice! Let me suggest some patterns for that.\"\n },\n {\n \"id\": \"ftr\",\n \"component\": \"Footer\",\n \"children\": [\n \"input-row\"\n ]\n },\n {\n \"id\": \"input-row\",\n \"component\": \"Row\",\n \"gap\": \"2\",\n \"children\": [\n \"chat-input\",\n \"send-btn\"\n ]\n },\n {\n \"id\": \"chat-input\",\n \"component\": \"Input\",\n \"placeholder\": \"Type a message...\"\n },\n {\n \"id\": \"send-btn\",\n \"component\": \"Button\",\n \"text\": \"Send\",\n \"icon\": \"send\",\n \"variant\": \"primary\"\n }\n]",
|
|
37
|
+
"name": "chat-interface"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"description": "Command palette card with search input and a list of command options.",
|
|
41
|
+
"a2ui": "[\n {\n \"id\": \"root\",\n \"component\": \"Card\",\n \"children\": [\n \"hdr\",\n \"sec\"\n ]\n },\n {\n \"id\": \"hdr\",\n \"component\": \"Header\",\n \"children\": [\n \"search\"\n ]\n },\n {\n \"id\": \"search\",\n \"component\": \"Input\",\n \"placeholder\": \"Type a command or search...\",\n \"icon\": \"search\"\n },\n {\n \"id\": \"sec\",\n \"component\": \"Section\",\n \"children\": [\n \"options\"\n ]\n },\n {\n \"id\": \"options\",\n \"component\": \"Column\",\n \"gap\": \"1\",\n \"children\": [\n \"opt1\",\n \"opt2\",\n \"opt3\",\n \"opt4\",\n \"opt5\"\n ]\n },\n {\n \"id\": \"opt1\",\n \"component\": \"Row\",\n \"gap\": \"2\",\n \"children\": [\n \"i1\",\n \"l1\"\n ]\n },\n {\n \"id\": \"i1\",\n \"component\": \"Icon\",\n \"name\": \"file\"\n },\n {\n \"id\": \"l1\",\n \"component\": \"Text\",\n \"textContent\": \"Open File\"\n },\n {\n \"id\": \"opt2\",\n \"component\": \"Row\",\n \"gap\": \"2\",\n \"children\": [\n \"i2\",\n \"l2\"\n ]\n },\n {\n \"id\": \"i2\",\n \"component\": \"Icon\",\n \"name\": \"gear\"\n },\n {\n \"id\": \"l2\",\n \"component\": \"Text\",\n \"textContent\": \"Settings\"\n },\n {\n \"id\": \"opt3\",\n \"component\": \"Row\",\n \"gap\": \"2\",\n \"children\": [\n \"i3\",\n \"l3\"\n ]\n },\n {\n \"id\": \"i3\",\n \"component\": \"Icon\",\n \"name\": \"palette\"\n },\n {\n \"id\": \"l3\",\n \"component\": \"Text\",\n \"textContent\": \"Change Theme\"\n },\n {\n \"id\": \"opt4\",\n \"component\": \"Row\",\n \"gap\": \"2\",\n \"children\": [\n \"i4\",\n \"l4\"\n ]\n },\n {\n \"id\": \"i4\",\n \"component\": \"Icon\",\n \"name\": \"users\"\n },\n {\n \"id\": \"l4\",\n \"component\": \"Text\",\n \"textContent\": \"Manage Users\"\n },\n {\n \"id\": \"opt5\",\n \"component\": \"Row\",\n \"gap\": \"2\",\n \"children\": [\n \"i5\",\n \"l5\"\n ]\n },\n {\n \"id\": \"i5\",\n \"component\": \"Icon\",\n \"name\": \"sign-out\"\n },\n {\n \"id\": \"l5\",\n \"component\": \"Text\",\n \"textContent\": \"Sign Out\"\n }\n]",
|
|
42
|
+
"name": "command-palette"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"keywords": [
|
|
46
|
+
"header"
|
|
47
|
+
],
|
|
48
|
+
"name": "AdiaHeader",
|
|
49
|
+
"related": [
|
|
50
|
+
"avatar",
|
|
51
|
+
"input",
|
|
52
|
+
"button",
|
|
53
|
+
"skeleton",
|
|
54
|
+
"alert"
|
|
55
|
+
],
|
|
56
|
+
"slots": {
|
|
57
|
+
"default": {
|
|
58
|
+
"description": "Default slot — primary child content."
|
|
59
|
+
},
|
|
60
|
+
"action": {
|
|
61
|
+
"description": "Action region — buttons or badges on the right."
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"states": [
|
|
65
|
+
{
|
|
66
|
+
"description": "Default, ready for interaction.",
|
|
67
|
+
"name": "idle"
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"synonyms": {},
|
|
71
|
+
"tag": "header-n",
|
|
72
|
+
"tokens": {},
|
|
73
|
+
"traits": [],
|
|
74
|
+
"version": 1
|
|
75
|
+
}
|
|
76
|
+
}
|