@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,366 @@
|
|
|
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: AdiaDivider
|
|
5
|
+
tag: divider-ui
|
|
6
|
+
component: Divider
|
|
7
|
+
category: display
|
|
8
|
+
version: 1
|
|
9
|
+
description: Horizontal or vertical divider with optional label.
|
|
10
|
+
props:
|
|
11
|
+
axis:
|
|
12
|
+
description: Divider orientation.
|
|
13
|
+
type: string
|
|
14
|
+
default: horizontal
|
|
15
|
+
enum:
|
|
16
|
+
- horizontal
|
|
17
|
+
- vertical
|
|
18
|
+
orientation:
|
|
19
|
+
description: Alias for `axis` — accepted for back-compat.
|
|
20
|
+
type: string
|
|
21
|
+
default: ""
|
|
22
|
+
enum: ["", horizontal, vertical]
|
|
23
|
+
label:
|
|
24
|
+
description: Center label text
|
|
25
|
+
type: string
|
|
26
|
+
default: ""
|
|
27
|
+
vertical:
|
|
28
|
+
description: Vertical orientation
|
|
29
|
+
type: boolean
|
|
30
|
+
default: false
|
|
31
|
+
events: {}
|
|
32
|
+
slots: {}
|
|
33
|
+
states:
|
|
34
|
+
- name: idle
|
|
35
|
+
description: Default, ready for interaction.
|
|
36
|
+
traits: []
|
|
37
|
+
tokens: {}
|
|
38
|
+
a2ui:
|
|
39
|
+
rules: []
|
|
40
|
+
anti_patterns: []
|
|
41
|
+
examples:
|
|
42
|
+
- name: settings-page
|
|
43
|
+
description: Settings page with profile, notifications, and appearance sections as cards.
|
|
44
|
+
a2ui: >-
|
|
45
|
+
[
|
|
46
|
+
{
|
|
47
|
+
"id": "root",
|
|
48
|
+
"component": "Column",
|
|
49
|
+
"children": [
|
|
50
|
+
"page-title",
|
|
51
|
+
"profile",
|
|
52
|
+
"notif",
|
|
53
|
+
"appearance",
|
|
54
|
+
"save-footer"
|
|
55
|
+
],
|
|
56
|
+
"gap": "4"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"id": "page-title",
|
|
60
|
+
"component": "Text",
|
|
61
|
+
"textContent": "Settings",
|
|
62
|
+
"variant": "title"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"id": "profile",
|
|
66
|
+
"component": "Card",
|
|
67
|
+
"children": [
|
|
68
|
+
"p-hdr",
|
|
69
|
+
"p-sec"
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": "p-hdr",
|
|
74
|
+
"component": "Header",
|
|
75
|
+
"children": [
|
|
76
|
+
"p-title"
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"id": "p-title",
|
|
81
|
+
"component": "Text",
|
|
82
|
+
"slot": "heading",
|
|
83
|
+
"textContent": "Profile",
|
|
84
|
+
"variant": "section"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"id": "p-sec",
|
|
88
|
+
"component": "Section",
|
|
89
|
+
"children": [
|
|
90
|
+
"p-col"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"id": "p-col",
|
|
95
|
+
"component": "Column",
|
|
96
|
+
"children": [
|
|
97
|
+
"p-upload",
|
|
98
|
+
"p-name",
|
|
99
|
+
"p-email"
|
|
100
|
+
],
|
|
101
|
+
"gap": "4"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"id": "p-upload",
|
|
105
|
+
"component": "Upload",
|
|
106
|
+
"label": "Profile Photo",
|
|
107
|
+
"accept": "image/*"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"id": "p-name",
|
|
111
|
+
"component": "Input",
|
|
112
|
+
"label": "Full Name",
|
|
113
|
+
"name": "name",
|
|
114
|
+
"placeholder": "Your name"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"id": "p-email",
|
|
118
|
+
"component": "Input",
|
|
119
|
+
"label": "Email",
|
|
120
|
+
"name": "email",
|
|
121
|
+
"type": "email",
|
|
122
|
+
"placeholder": "you@example.com"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"id": "notif",
|
|
126
|
+
"component": "Card",
|
|
127
|
+
"children": [
|
|
128
|
+
"n-hdr",
|
|
129
|
+
"n-sec"
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"id": "n-hdr",
|
|
134
|
+
"component": "Header",
|
|
135
|
+
"children": [
|
|
136
|
+
"n-title"
|
|
137
|
+
]
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"id": "n-title",
|
|
141
|
+
"component": "Text",
|
|
142
|
+
"slot": "heading",
|
|
143
|
+
"textContent": "Notifications",
|
|
144
|
+
"variant": "section"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"id": "n-sec",
|
|
148
|
+
"component": "Section",
|
|
149
|
+
"children": [
|
|
150
|
+
"n-col"
|
|
151
|
+
]
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"id": "n-col",
|
|
155
|
+
"component": "Column",
|
|
156
|
+
"children": [
|
|
157
|
+
"n-email",
|
|
158
|
+
"n-div",
|
|
159
|
+
"n-push"
|
|
160
|
+
],
|
|
161
|
+
"gap": "4"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"id": "n-email",
|
|
165
|
+
"component": "Row",
|
|
166
|
+
"children": [
|
|
167
|
+
"n-email-label",
|
|
168
|
+
"n-email-toggle"
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"id": "n-email-label",
|
|
173
|
+
"component": "Text",
|
|
174
|
+
"variant": "body",
|
|
175
|
+
"textContent": "Email notifications"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"id": "n-email-toggle",
|
|
179
|
+
"component": "Toggle",
|
|
180
|
+
"name": "email-notif",
|
|
181
|
+
"label": "Email notifications"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"id": "n-div",
|
|
185
|
+
"component": "Divider"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"id": "n-push",
|
|
189
|
+
"component": "Row",
|
|
190
|
+
"children": [
|
|
191
|
+
"n-push-label",
|
|
192
|
+
"n-push-toggle"
|
|
193
|
+
]
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"id": "n-push-label",
|
|
197
|
+
"component": "Text",
|
|
198
|
+
"variant": "body",
|
|
199
|
+
"textContent": "Push notifications"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"id": "n-push-toggle",
|
|
203
|
+
"component": "Toggle",
|
|
204
|
+
"name": "push-notif",
|
|
205
|
+
"label": "Push notifications"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"id": "appearance",
|
|
209
|
+
"component": "Card",
|
|
210
|
+
"children": [
|
|
211
|
+
"a-hdr",
|
|
212
|
+
"a-sec"
|
|
213
|
+
]
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"id": "a-hdr",
|
|
217
|
+
"component": "Header",
|
|
218
|
+
"children": [
|
|
219
|
+
"a-title"
|
|
220
|
+
]
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"id": "a-title",
|
|
224
|
+
"component": "Text",
|
|
225
|
+
"slot": "heading",
|
|
226
|
+
"textContent": "Appearance",
|
|
227
|
+
"variant": "section"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"id": "a-sec",
|
|
231
|
+
"component": "Section",
|
|
232
|
+
"children": [
|
|
233
|
+
"a-col"
|
|
234
|
+
]
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"id": "a-col",
|
|
238
|
+
"component": "Column",
|
|
239
|
+
"children": [
|
|
240
|
+
"a-theme",
|
|
241
|
+
"a-density"
|
|
242
|
+
],
|
|
243
|
+
"gap": "4"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"id": "a-theme",
|
|
247
|
+
"component": "Select",
|
|
248
|
+
"label": "Theme",
|
|
249
|
+
"name": "theme",
|
|
250
|
+
"placeholder": "Choose theme..."
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"id": "a-density",
|
|
254
|
+
"component": "Select",
|
|
255
|
+
"label": "Density",
|
|
256
|
+
"name": "density",
|
|
257
|
+
"placeholder": "Choose density..."
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"id": "save-footer",
|
|
261
|
+
"component": "Footer",
|
|
262
|
+
"children": [
|
|
263
|
+
"save-row"
|
|
264
|
+
]
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"id": "save-row",
|
|
268
|
+
"component": "Row",
|
|
269
|
+
"children": [
|
|
270
|
+
"cancel-btn",
|
|
271
|
+
"save-btn"
|
|
272
|
+
],
|
|
273
|
+
"gap": "2",
|
|
274
|
+
"justify": "end"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"id": "cancel-btn",
|
|
278
|
+
"component": "Button",
|
|
279
|
+
"text": "Cancel",
|
|
280
|
+
"variant": "ghost"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"id": "save-btn",
|
|
284
|
+
"component": "Button",
|
|
285
|
+
"text": "Save Changes",
|
|
286
|
+
"variant": "primary"
|
|
287
|
+
}
|
|
288
|
+
]
|
|
289
|
+
- name: divider-label
|
|
290
|
+
description: Horizontal divider with a centered label text, commonly used to separate sections or as
|
|
291
|
+
an 'or' separator.
|
|
292
|
+
a2ui: >-
|
|
293
|
+
[
|
|
294
|
+
{
|
|
295
|
+
"id": "root",
|
|
296
|
+
"component": "Row",
|
|
297
|
+
"attrs": {
|
|
298
|
+
"align": "center",
|
|
299
|
+
"gap": "md"
|
|
300
|
+
},
|
|
301
|
+
"children": [
|
|
302
|
+
"line-left",
|
|
303
|
+
"label",
|
|
304
|
+
"line-right"
|
|
305
|
+
]
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"id": "line-left",
|
|
309
|
+
"component": "Divider",
|
|
310
|
+
"attrs": {
|
|
311
|
+
"flex": 1
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"id": "label",
|
|
316
|
+
"component": "Text",
|
|
317
|
+
"attrs": {
|
|
318
|
+
"variant": "caption",
|
|
319
|
+
"muted": true
|
|
320
|
+
},
|
|
321
|
+
"content": "or continue with"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"id": "line-right",
|
|
325
|
+
"component": "Divider",
|
|
326
|
+
"attrs": {
|
|
327
|
+
"flex": 1
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
]
|
|
331
|
+
keywords:
|
|
332
|
+
- divider
|
|
333
|
+
- label
|
|
334
|
+
- layout
|
|
335
|
+
- separator
|
|
336
|
+
- spacer
|
|
337
|
+
synonyms:
|
|
338
|
+
divider:
|
|
339
|
+
- divider
|
|
340
|
+
- label
|
|
341
|
+
- split
|
|
342
|
+
label:
|
|
343
|
+
- badge
|
|
344
|
+
- tag
|
|
345
|
+
- divider
|
|
346
|
+
- label
|
|
347
|
+
layout:
|
|
348
|
+
- split
|
|
349
|
+
- sidebar
|
|
350
|
+
- drawer
|
|
351
|
+
- tabs
|
|
352
|
+
- divider
|
|
353
|
+
- bleed
|
|
354
|
+
separator:
|
|
355
|
+
- divider
|
|
356
|
+
- label
|
|
357
|
+
spacer:
|
|
358
|
+
- divider
|
|
359
|
+
- label
|
|
360
|
+
- bleed
|
|
361
|
+
related:
|
|
362
|
+
- upload
|
|
363
|
+
- input
|
|
364
|
+
- toggle
|
|
365
|
+
- select
|
|
366
|
+
- button
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://adiaui.dev/a2ui/v0_9/components/Drawer.json",
|
|
4
|
+
"title": "Drawer",
|
|
5
|
+
"description": "Slide-out panel anchored to a viewport edge. Uses native <dialog> for focus trap, Escape dismiss, and ::backdrop. Panel is a flex column that scrolls as a whole — the header and footer stick to the top/bottom of the panel when the body overflows. Authors can compose content with either card-n-style bare tags (<header>, <section>, <footer>) or explicit [slot=\"header|body|footer\"] attributes; multiple <section> siblings are allowed and stack in author order between the sticky header and footer. The header activates a card-n-aligned 3-column grid (icon | heading+description | action+close) when any direct [slot=\"icon|heading|description|action\"] child is present.",
|
|
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": "Drawer"
|
|
18
|
+
},
|
|
19
|
+
"open": {
|
|
20
|
+
"description": "Controls visibility. When false, backdrop and panel are removed from DOM.",
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"default": false
|
|
23
|
+
},
|
|
24
|
+
"permanent": {
|
|
25
|
+
"description": "When true, hide close button and suppress backdrop/Escape dismiss",
|
|
26
|
+
"type": "boolean",
|
|
27
|
+
"default": false
|
|
28
|
+
},
|
|
29
|
+
"side": {
|
|
30
|
+
"description": "Anchor side",
|
|
31
|
+
"type": "string",
|
|
32
|
+
"enum": [
|
|
33
|
+
"left",
|
|
34
|
+
"right",
|
|
35
|
+
"top",
|
|
36
|
+
"bottom"
|
|
37
|
+
],
|
|
38
|
+
"default": "right"
|
|
39
|
+
},
|
|
40
|
+
"size": {
|
|
41
|
+
"description": "Panel width/height",
|
|
42
|
+
"type": "string",
|
|
43
|
+
"enum": [
|
|
44
|
+
"sm",
|
|
45
|
+
"md",
|
|
46
|
+
"lg"
|
|
47
|
+
],
|
|
48
|
+
"default": "md"
|
|
49
|
+
},
|
|
50
|
+
"text": {
|
|
51
|
+
"description": "Title text displayed in the drawer header",
|
|
52
|
+
"type": "string",
|
|
53
|
+
"default": ""
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"required": [
|
|
57
|
+
"component"
|
|
58
|
+
],
|
|
59
|
+
"unevaluatedProperties": false,
|
|
60
|
+
"x-adiaui": {
|
|
61
|
+
"anti_patterns": [],
|
|
62
|
+
"category": "container",
|
|
63
|
+
"events": {
|
|
64
|
+
"close": {
|
|
65
|
+
"description": "Fired when the drawer is dismissed via close button or backdrop click"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"examples": [
|
|
69
|
+
{
|
|
70
|
+
"description": "Card with a trigger button that opens a Drawer side panel containing a form with inputs and actions.",
|
|
71
|
+
"a2ui": "[\n {\n \"id\": \"root\",\n \"component\": \"Card\",\n \"children\": [\n \"card-hdr\",\n \"card-body\",\n \"drawer\"\n ]\n },\n {\n \"id\": \"card-hdr\",\n \"component\": \"Header\",\n \"slots\": {\n \"heading\": \"Projects\",\n \"description\": \"Manage your active projects.\",\n \"action\": \"trigger-btn\"\n }\n },\n {\n \"id\": \"trigger-btn\",\n \"component\": \"Button\",\n \"attrs\": {\n \"variant\": \"primary\",\n \"icon\": \"plus\",\n \"triggers\": \"drawer\"\n },\n \"content\": \"New Project\"\n },\n {\n \"id\": \"card-body\",\n \"component\": \"Section\",\n \"children\": [\n \"empty\"\n ]\n },\n {\n \"id\": \"empty\",\n \"component\": \"EmptyState\",\n \"attrs\": {\n \"icon\": \"folder\",\n \"heading\": \"No projects yet\",\n \"description\": \"Create your first project to get started.\"\n }\n },\n {\n \"id\": \"drawer\",\n \"component\": \"Drawer\",\n \"attrs\": {\n \"side\": \"right\",\n \"title\": \"Create Project\"\n },\n \"children\": [\n \"drawer-hdr\",\n \"drawer-body\",\n \"drawer-ftr\"\n ]\n },\n {\n \"id\": \"drawer-hdr\",\n \"component\": \"Header\",\n \"slots\": {\n \"heading\": \"New Project\",\n \"description\": \"Fill in the details to create a new project.\"\n }\n },\n {\n \"id\": \"drawer-body\",\n \"component\": \"Section\",\n \"children\": [\n \"drawer-form\"\n ]\n },\n {\n \"id\": \"drawer-form\",\n \"component\": \"Column\",\n \"attrs\": {\n \"gap\": \"md\"\n },\n \"children\": [\n \"field-name\",\n \"field-desc\",\n \"field-category\",\n \"field-visibility\"\n ]\n },\n {\n \"id\": \"field-name\",\n \"component\": \"Input\",\n \"attrs\": {\n \"label\": \"Project Name\",\n \"placeholder\": \"My Awesome Project\",\n \"required\": true\n }\n },\n {\n \"id\": \"field-desc\",\n \"component\": \"TextArea\",\n \"attrs\": {\n \"label\": \"Description\",\n \"placeholder\": \"Describe your project...\",\n \"rows\": 4\n }\n },\n {\n \"id\": \"field-category\",\n \"component\": \"Select\",\n \"attrs\": {\n \"label\": \"Category\",\n \"placeholder\": \"Select a category\",\n \"options\": [\n {\n \"label\": \"Web Application\",\n \"value\": \"web\"\n },\n {\n \"label\": \"Mobile App\",\n \"value\": \"mobile\"\n },\n {\n \"label\": \"API Service\",\n \"value\": \"api\"\n },\n {\n \"label\": \"Library\",\n \"value\": \"library\"\n }\n ]\n }\n },\n {\n \"id\": \"field-visibility\",\n \"component\": \"Select\",\n \"attrs\": {\n \"label\": \"Visibility\",\n \"placeholder\": \"Select visibility\",\n \"options\": [\n {\n \"label\": \"Public\",\n \"value\": \"public\"\n },\n {\n \"label\": \"Private\",\n \"value\": \"private\"\n },\n {\n \"label\": \"Team Only\",\n \"value\": \"team\"\n }\n ]\n }\n },\n {\n \"id\": \"drawer-ftr\",\n \"component\": \"Footer\",\n \"children\": [\n \"drawer-actions\"\n ]\n },\n {\n \"id\": \"drawer-actions\",\n \"component\": \"Row\",\n \"attrs\": {\n \"gap\": \"sm\"\n },\n \"children\": [\n \"cancel-btn\",\n \"create-btn\"\n ]\n },\n {\n \"id\": \"cancel-btn\",\n \"component\": \"Button\",\n \"attrs\": {\n \"variant\": \"outline\"\n },\n \"content\": \"Cancel\"\n },\n {\n \"id\": \"create-btn\",\n \"component\": \"Button\",\n \"attrs\": {\n \"variant\": \"primary\"\n },\n \"content\": \"Create Project\"\n }\n]",
|
|
72
|
+
"name": "drawer-panel"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"keywords": [
|
|
76
|
+
"drawer",
|
|
77
|
+
"popup",
|
|
78
|
+
"modal",
|
|
79
|
+
"dialog",
|
|
80
|
+
"panel",
|
|
81
|
+
"hamburger",
|
|
82
|
+
"sidebar",
|
|
83
|
+
"layout",
|
|
84
|
+
"collapse",
|
|
85
|
+
"expand"
|
|
86
|
+
],
|
|
87
|
+
"name": "AdiaDrawer",
|
|
88
|
+
"related": [
|
|
89
|
+
"button",
|
|
90
|
+
"empty-state",
|
|
91
|
+
"input",
|
|
92
|
+
"text-area",
|
|
93
|
+
"select"
|
|
94
|
+
],
|
|
95
|
+
"slots": {
|
|
96
|
+
"description": {
|
|
97
|
+
"description": "Direct child of <header> — grid row 2, spans the heading + action columns. Also accepts bare <p> / <small> tags."
|
|
98
|
+
},
|
|
99
|
+
"action": {
|
|
100
|
+
"description": "Direct child of <header> — placed in the grid's last column alongside the stamped close button. Flex container for badge + button combinations."
|
|
101
|
+
},
|
|
102
|
+
"backdrop": {
|
|
103
|
+
"description": "Scrim overlay behind the drawer (stamped by the component)."
|
|
104
|
+
},
|
|
105
|
+
"body": {
|
|
106
|
+
"description": "Scrollable content region. Accepts one or more bare <section> tags or [slot=\"body\"] elements; multi-section stacks are mounted in author order and share the panel's scroll context. [bleed] removes section padding; [padding] adds a canvas-scrim background for hero regions."
|
|
107
|
+
},
|
|
108
|
+
"close": {
|
|
109
|
+
"description": "Close button inside the header — stamped automatically unless [permanent]. Participates in the header's action-column grid via the :is([slot=\"action\"], [slot=\"close\"]) union selector."
|
|
110
|
+
},
|
|
111
|
+
"footer": {
|
|
112
|
+
"description": "Optional sticky action row pinned to the bottom of the panel. Only mounted if the author supplies a bare <footer> tag or [slot=\"footer\"]. Inner [slot=\"description\"] + [slot=\"action\"] triggers space-between layout, matching card-ui footer semantics."
|
|
113
|
+
},
|
|
114
|
+
"header": {
|
|
115
|
+
"description": "Title bar — pinned to the top of the panel via position:sticky. Accepts either a bare <header> tag or [slot=\"header\"]. When any direct child has [slot=\"icon|heading|description|action\"], the header activates a card-n-aligned 3-column grid; otherwise renders as a block with the close button appended."
|
|
116
|
+
},
|
|
117
|
+
"heading": {
|
|
118
|
+
"description": "Direct child of <header> — grid row 1. Also accepts bare <h1>-<h6> tags. Renders as a flex container, so inline badges/metadata sit alongside the title. If the drawer has a [text] attribute and no author-supplied heading, a <span slot=\"heading\" data-stamped> is stamped with the text value."
|
|
119
|
+
},
|
|
120
|
+
"icon": {
|
|
121
|
+
"description": "Direct child of <header> — placed in column 1 of the card-ui grid. Spans two rows when a [slot=\"description\"] sibling is present so the icon aligns with the heading."
|
|
122
|
+
},
|
|
123
|
+
"panel": {
|
|
124
|
+
"description": "Sliding panel container (stamped by the component)."
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"states": [
|
|
128
|
+
{
|
|
129
|
+
"description": "Default, ready for interaction.",
|
|
130
|
+
"name": "idle"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"synonyms": {
|
|
134
|
+
"collapse": [
|
|
135
|
+
"accordion",
|
|
136
|
+
"faq",
|
|
137
|
+
"drawer"
|
|
138
|
+
],
|
|
139
|
+
"dialog": [
|
|
140
|
+
"drawer",
|
|
141
|
+
"alert",
|
|
142
|
+
"popover",
|
|
143
|
+
"panel"
|
|
144
|
+
],
|
|
145
|
+
"drawer": [
|
|
146
|
+
"drawer",
|
|
147
|
+
"sidebar",
|
|
148
|
+
"panel"
|
|
149
|
+
],
|
|
150
|
+
"expand": [
|
|
151
|
+
"accordion",
|
|
152
|
+
"faq",
|
|
153
|
+
"drawer"
|
|
154
|
+
],
|
|
155
|
+
"hamburger": [
|
|
156
|
+
"nav",
|
|
157
|
+
"menu",
|
|
158
|
+
"sidebar",
|
|
159
|
+
"drawer"
|
|
160
|
+
],
|
|
161
|
+
"layout": [
|
|
162
|
+
"split",
|
|
163
|
+
"sidebar",
|
|
164
|
+
"drawer",
|
|
165
|
+
"tabs",
|
|
166
|
+
"divider",
|
|
167
|
+
"bleed"
|
|
168
|
+
],
|
|
169
|
+
"modal": [
|
|
170
|
+
"drawer",
|
|
171
|
+
"alert",
|
|
172
|
+
"popover",
|
|
173
|
+
"panel"
|
|
174
|
+
],
|
|
175
|
+
"panel": [
|
|
176
|
+
"tabs",
|
|
177
|
+
"drawer",
|
|
178
|
+
"panel",
|
|
179
|
+
"split"
|
|
180
|
+
],
|
|
181
|
+
"popup": [
|
|
182
|
+
"toast",
|
|
183
|
+
"notification",
|
|
184
|
+
"alert",
|
|
185
|
+
"popover",
|
|
186
|
+
"drawer"
|
|
187
|
+
],
|
|
188
|
+
"sidebar": [
|
|
189
|
+
"sidebar",
|
|
190
|
+
"nav",
|
|
191
|
+
"drawer"
|
|
192
|
+
]
|
|
193
|
+
},
|
|
194
|
+
"tag": "drawer-ui",
|
|
195
|
+
"tokens": {},
|
|
196
|
+
"traits": [],
|
|
197
|
+
"version": 1
|
|
198
|
+
}
|
|
199
|
+
}
|