@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,125 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <accordion-ui>
|
|
3
|
+
* <accordion-item-ui text="Section 1">Content for section 1</accordion-item-ui>
|
|
4
|
+
* <accordion-item-ui text="Section 2">Content for section 2</accordion-item-ui>
|
|
5
|
+
* </accordion-ui>
|
|
6
|
+
*
|
|
7
|
+
* Accordion container + item pair.
|
|
8
|
+
* Container manages single/multiple open states.
|
|
9
|
+
* Items handle their own expand/collapse toggle.
|
|
10
|
+
*
|
|
11
|
+
* Events (on accordion-item-ui):
|
|
12
|
+
* toggle — { detail: { open } }
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { AdiaElement } from '@core/element.js';
|
|
16
|
+
|
|
17
|
+
// ── Accordion Container ────────────────────────────────────────
|
|
18
|
+
|
|
19
|
+
class AdiaAccordion extends AdiaElement {
|
|
20
|
+
static properties = {
|
|
21
|
+
multiple: { type: Boolean, default: false, reflect: true },
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
static template = () => null;
|
|
25
|
+
|
|
26
|
+
connected() {
|
|
27
|
+
this.addEventListener('toggle', this.#onItemToggle);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
disconnected() {
|
|
31
|
+
this.removeEventListener('toggle', this.#onItemToggle);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
#onItemToggle = (e) => {
|
|
35
|
+
if (this.multiple) return;
|
|
36
|
+
|
|
37
|
+
const target = e.target;
|
|
38
|
+
if (!target.open) return;
|
|
39
|
+
|
|
40
|
+
// Close other items
|
|
41
|
+
const items = this.querySelectorAll('accordion-item-ui');
|
|
42
|
+
for (const item of items) {
|
|
43
|
+
if (item !== target && item.open) {
|
|
44
|
+
item.open = false;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
customElements.define('accordion-ui', AdiaAccordion);
|
|
50
|
+
|
|
51
|
+
// ── Accordion Item ─────────────────────────────────────────────
|
|
52
|
+
|
|
53
|
+
class AdiaAccordionItem extends AdiaElement {
|
|
54
|
+
static properties = {
|
|
55
|
+
text: { type: String, default: '', reflect: true },
|
|
56
|
+
open: { type: Boolean, default: false, reflect: true },
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
static template = () => null;
|
|
60
|
+
|
|
61
|
+
#bound = false;
|
|
62
|
+
|
|
63
|
+
connected() {
|
|
64
|
+
// Stamp header if not present
|
|
65
|
+
if (!this.querySelector('[slot="header"]')) {
|
|
66
|
+
const header = document.createElement('div');
|
|
67
|
+
header.setAttribute('slot', 'header');
|
|
68
|
+
|
|
69
|
+
const label = document.createElement('span');
|
|
70
|
+
label.setAttribute('slot', 'header-text');
|
|
71
|
+
header.appendChild(label);
|
|
72
|
+
|
|
73
|
+
const caret = document.createElement('icon-ui');
|
|
74
|
+
caret.setAttribute('name', 'caret-down');
|
|
75
|
+
caret.setAttribute('slot', 'caret');
|
|
76
|
+
header.appendChild(caret);
|
|
77
|
+
|
|
78
|
+
this.prepend(header);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// Stamp content wrapper if not present
|
|
82
|
+
if (!this.querySelector('[slot="body"]')) {
|
|
83
|
+
const body = document.createElement('div');
|
|
84
|
+
body.setAttribute('slot', 'body');
|
|
85
|
+
|
|
86
|
+
// Move non-slotted children into body
|
|
87
|
+
const children = [...this.childNodes].filter(n => {
|
|
88
|
+
if (n.nodeType === 1) return !n.hasAttribute('slot');
|
|
89
|
+
return n.nodeType === 3 && n.textContent.trim();
|
|
90
|
+
});
|
|
91
|
+
for (const child of children) body.appendChild(child);
|
|
92
|
+
|
|
93
|
+
this.appendChild(body);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
if (!this.#bound) {
|
|
97
|
+
this.#bound = true;
|
|
98
|
+
this.addEventListener('click', this.#onClick);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
disconnected() {
|
|
103
|
+
this.removeEventListener('click', this.#onClick);
|
|
104
|
+
this.#bound = false;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
render() {
|
|
108
|
+
const label = this.querySelector('[slot="header-text"]');
|
|
109
|
+
if (label) label.textContent = this.text;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
#onClick = (e) => {
|
|
113
|
+
const header = this.querySelector('[slot="header"]');
|
|
114
|
+
if (!header || !header.contains(e.target)) return;
|
|
115
|
+
|
|
116
|
+
this.open = !this.open;
|
|
117
|
+
this.dispatchEvent(new CustomEvent('toggle', {
|
|
118
|
+
bubbles: true,
|
|
119
|
+
detail: { open: this.open },
|
|
120
|
+
}));
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
customElements.define('accordion-item-ui', AdiaAccordionItem);
|
|
124
|
+
|
|
125
|
+
export { AdiaAccordion, AdiaAccordionItem };
|
|
@@ -0,0 +1,527 @@
|
|
|
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: AdiaAccordion
|
|
5
|
+
tag: accordion-ui
|
|
6
|
+
component: Accordion
|
|
7
|
+
category: container
|
|
8
|
+
version: 1
|
|
9
|
+
description: Accordion container managing single/multiple open states.
|
|
10
|
+
props:
|
|
11
|
+
multiple:
|
|
12
|
+
description: Allow multiple panels to be open simultaneously
|
|
13
|
+
type: boolean
|
|
14
|
+
default: false
|
|
15
|
+
events:
|
|
16
|
+
change:
|
|
17
|
+
description: Fired when the set of open panels changes
|
|
18
|
+
slots:
|
|
19
|
+
default:
|
|
20
|
+
description: pane-ui children
|
|
21
|
+
states:
|
|
22
|
+
- name: idle
|
|
23
|
+
description: Default, ready for interaction.
|
|
24
|
+
traits: []
|
|
25
|
+
tokens: {}
|
|
26
|
+
a2ui:
|
|
27
|
+
rules: []
|
|
28
|
+
anti_patterns: []
|
|
29
|
+
examples:
|
|
30
|
+
- name: accordion-settings
|
|
31
|
+
description: Settings panel with accordion sections for profile, notifications, and privacy configuration.
|
|
32
|
+
a2ui: >-
|
|
33
|
+
[
|
|
34
|
+
{
|
|
35
|
+
"id": "root",
|
|
36
|
+
"component": "Card",
|
|
37
|
+
"children": [
|
|
38
|
+
"hdr",
|
|
39
|
+
"body",
|
|
40
|
+
"ftr"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"id": "hdr",
|
|
45
|
+
"component": "Header",
|
|
46
|
+
"slots": {
|
|
47
|
+
"heading": "Settings",
|
|
48
|
+
"description": "Manage your account preferences and configuration."
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"id": "body",
|
|
53
|
+
"component": "Section",
|
|
54
|
+
"children": [
|
|
55
|
+
"accordion"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"id": "accordion",
|
|
60
|
+
"component": "Accordion",
|
|
61
|
+
"attrs": {
|
|
62
|
+
"type": "multiple"
|
|
63
|
+
},
|
|
64
|
+
"children": [
|
|
65
|
+
"sec-profile",
|
|
66
|
+
"sec-notifications",
|
|
67
|
+
"sec-privacy"
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"id": "sec-profile",
|
|
72
|
+
"component": "AccordionItem",
|
|
73
|
+
"attrs": {
|
|
74
|
+
"text": "Profile",
|
|
75
|
+
"icon": "user"
|
|
76
|
+
},
|
|
77
|
+
"children": [
|
|
78
|
+
"profile-form"
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"id": "profile-form",
|
|
83
|
+
"component": "Column",
|
|
84
|
+
"attrs": {
|
|
85
|
+
"gap": "md"
|
|
86
|
+
},
|
|
87
|
+
"children": [
|
|
88
|
+
"profile-name",
|
|
89
|
+
"profile-email",
|
|
90
|
+
"profile-bio"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"id": "profile-name",
|
|
95
|
+
"component": "Input",
|
|
96
|
+
"attrs": {
|
|
97
|
+
"label": "Display Name",
|
|
98
|
+
"placeholder": "Enter your name",
|
|
99
|
+
"value": "Jane Doe"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"id": "profile-email",
|
|
104
|
+
"component": "Input",
|
|
105
|
+
"attrs": {
|
|
106
|
+
"label": "Email",
|
|
107
|
+
"type": "email",
|
|
108
|
+
"placeholder": "you@example.com",
|
|
109
|
+
"value": "jane@example.com"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"id": "profile-bio",
|
|
114
|
+
"component": "TextArea",
|
|
115
|
+
"attrs": {
|
|
116
|
+
"label": "Bio",
|
|
117
|
+
"placeholder": "Tell us about yourself",
|
|
118
|
+
"rows": 3
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"id": "sec-notifications",
|
|
123
|
+
"component": "AccordionItem",
|
|
124
|
+
"attrs": {
|
|
125
|
+
"text": "Notifications",
|
|
126
|
+
"icon": "bell"
|
|
127
|
+
},
|
|
128
|
+
"children": [
|
|
129
|
+
"notif-options"
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"id": "notif-options",
|
|
134
|
+
"component": "Column",
|
|
135
|
+
"attrs": {
|
|
136
|
+
"gap": "md"
|
|
137
|
+
},
|
|
138
|
+
"children": [
|
|
139
|
+
"notif-email",
|
|
140
|
+
"notif-push",
|
|
141
|
+
"notif-marketing"
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"id": "notif-email",
|
|
146
|
+
"component": "Row",
|
|
147
|
+
"attrs": {
|
|
148
|
+
"justify": "between",
|
|
149
|
+
"align": "center"
|
|
150
|
+
},
|
|
151
|
+
"children": [
|
|
152
|
+
"notif-email-label",
|
|
153
|
+
"notif-email-toggle"
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"id": "notif-email-label",
|
|
158
|
+
"component": "Text",
|
|
159
|
+
"attrs": {
|
|
160
|
+
"variant": "body"
|
|
161
|
+
},
|
|
162
|
+
"content": "Email notifications"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"id": "notif-email-toggle",
|
|
166
|
+
"component": "Toggle",
|
|
167
|
+
"attrs": {
|
|
168
|
+
"checked": true
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"id": "notif-push",
|
|
173
|
+
"component": "Row",
|
|
174
|
+
"attrs": {
|
|
175
|
+
"justify": "between",
|
|
176
|
+
"align": "center"
|
|
177
|
+
},
|
|
178
|
+
"children": [
|
|
179
|
+
"notif-push-label",
|
|
180
|
+
"notif-push-toggle"
|
|
181
|
+
]
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"id": "notif-push-label",
|
|
185
|
+
"component": "Text",
|
|
186
|
+
"attrs": {
|
|
187
|
+
"variant": "body"
|
|
188
|
+
},
|
|
189
|
+
"content": "Push notifications"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"id": "notif-push-toggle",
|
|
193
|
+
"component": "Toggle",
|
|
194
|
+
"attrs": {
|
|
195
|
+
"checked": true
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"id": "notif-marketing",
|
|
200
|
+
"component": "Row",
|
|
201
|
+
"attrs": {
|
|
202
|
+
"justify": "between",
|
|
203
|
+
"align": "center"
|
|
204
|
+
},
|
|
205
|
+
"children": [
|
|
206
|
+
"notif-marketing-label",
|
|
207
|
+
"notif-marketing-toggle"
|
|
208
|
+
]
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"id": "notif-marketing-label",
|
|
212
|
+
"component": "Text",
|
|
213
|
+
"attrs": {
|
|
214
|
+
"variant": "body"
|
|
215
|
+
},
|
|
216
|
+
"content": "Marketing emails"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"id": "notif-marketing-toggle",
|
|
220
|
+
"component": "Toggle",
|
|
221
|
+
"attrs": {
|
|
222
|
+
"checked": false
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"id": "sec-privacy",
|
|
227
|
+
"component": "AccordionItem",
|
|
228
|
+
"attrs": {
|
|
229
|
+
"text": "Privacy",
|
|
230
|
+
"icon": "lock"
|
|
231
|
+
},
|
|
232
|
+
"children": [
|
|
233
|
+
"privacy-options"
|
|
234
|
+
]
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"id": "privacy-options",
|
|
238
|
+
"component": "Column",
|
|
239
|
+
"attrs": {
|
|
240
|
+
"gap": "md"
|
|
241
|
+
},
|
|
242
|
+
"children": [
|
|
243
|
+
"priv-profile-vis",
|
|
244
|
+
"priv-activity",
|
|
245
|
+
"priv-data"
|
|
246
|
+
]
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"id": "priv-profile-vis",
|
|
250
|
+
"component": "Row",
|
|
251
|
+
"attrs": {
|
|
252
|
+
"justify": "between",
|
|
253
|
+
"align": "center"
|
|
254
|
+
},
|
|
255
|
+
"children": [
|
|
256
|
+
"priv-profile-label",
|
|
257
|
+
"priv-profile-toggle"
|
|
258
|
+
]
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"id": "priv-profile-label",
|
|
262
|
+
"component": "Text",
|
|
263
|
+
"attrs": {
|
|
264
|
+
"variant": "body"
|
|
265
|
+
},
|
|
266
|
+
"content": "Public profile"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"id": "priv-profile-toggle",
|
|
270
|
+
"component": "Toggle",
|
|
271
|
+
"attrs": {
|
|
272
|
+
"checked": true
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"id": "priv-activity",
|
|
277
|
+
"component": "Row",
|
|
278
|
+
"attrs": {
|
|
279
|
+
"justify": "between",
|
|
280
|
+
"align": "center"
|
|
281
|
+
},
|
|
282
|
+
"children": [
|
|
283
|
+
"priv-activity-label",
|
|
284
|
+
"priv-activity-toggle"
|
|
285
|
+
]
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"id": "priv-activity-label",
|
|
289
|
+
"component": "Text",
|
|
290
|
+
"attrs": {
|
|
291
|
+
"variant": "body"
|
|
292
|
+
},
|
|
293
|
+
"content": "Show activity status"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"id": "priv-activity-toggle",
|
|
297
|
+
"component": "Toggle",
|
|
298
|
+
"attrs": {
|
|
299
|
+
"checked": false
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"id": "priv-data",
|
|
304
|
+
"component": "Row",
|
|
305
|
+
"attrs": {
|
|
306
|
+
"justify": "between",
|
|
307
|
+
"align": "center"
|
|
308
|
+
},
|
|
309
|
+
"children": [
|
|
310
|
+
"priv-data-label",
|
|
311
|
+
"priv-data-toggle"
|
|
312
|
+
]
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"id": "priv-data-label",
|
|
316
|
+
"component": "Text",
|
|
317
|
+
"attrs": {
|
|
318
|
+
"variant": "body"
|
|
319
|
+
},
|
|
320
|
+
"content": "Allow analytics collection"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"id": "priv-data-toggle",
|
|
324
|
+
"component": "Toggle",
|
|
325
|
+
"attrs": {
|
|
326
|
+
"checked": true
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"id": "ftr",
|
|
331
|
+
"component": "Footer",
|
|
332
|
+
"children": [
|
|
333
|
+
"save-btn"
|
|
334
|
+
]
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"id": "save-btn",
|
|
338
|
+
"component": "Button",
|
|
339
|
+
"attrs": {
|
|
340
|
+
"variant": "primary"
|
|
341
|
+
},
|
|
342
|
+
"content": "Save Changes"
|
|
343
|
+
}
|
|
344
|
+
]
|
|
345
|
+
- name: faq-accordion
|
|
346
|
+
description: Frequently asked questions presented in an accordion layout with expandable
|
|
347
|
+
question/answer items.
|
|
348
|
+
a2ui: >-
|
|
349
|
+
[
|
|
350
|
+
{
|
|
351
|
+
"id": "root",
|
|
352
|
+
"component": "Card",
|
|
353
|
+
"children": [
|
|
354
|
+
"hdr",
|
|
355
|
+
"body"
|
|
356
|
+
]
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"id": "hdr",
|
|
360
|
+
"component": "Header",
|
|
361
|
+
"children": [
|
|
362
|
+
"title",
|
|
363
|
+
"desc"
|
|
364
|
+
]
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"id": "title",
|
|
368
|
+
"component": "Text",
|
|
369
|
+
"slot": "heading",
|
|
370
|
+
"variant": "section",
|
|
371
|
+
"textContent": "Frequently Asked Questions"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"id": "desc",
|
|
375
|
+
"component": "Text",
|
|
376
|
+
"slot": "description",
|
|
377
|
+
"variant": "caption",
|
|
378
|
+
"textContent": "Find answers to common questions about our platform."
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"id": "body",
|
|
382
|
+
"component": "Section",
|
|
383
|
+
"children": [
|
|
384
|
+
"col-wrap"
|
|
385
|
+
]
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"id": "accordion",
|
|
389
|
+
"component": "Accordion",
|
|
390
|
+
"children": [
|
|
391
|
+
"q1",
|
|
392
|
+
"q2",
|
|
393
|
+
"q3",
|
|
394
|
+
"q4",
|
|
395
|
+
"q5"
|
|
396
|
+
]
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"id": "q1",
|
|
400
|
+
"component": "AccordionItem",
|
|
401
|
+
"text": "What is included in the free plan?",
|
|
402
|
+
"children": [
|
|
403
|
+
"a1"
|
|
404
|
+
]
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"id": "a1",
|
|
408
|
+
"component": "Text",
|
|
409
|
+
"variant": "body",
|
|
410
|
+
"textContent": "The free plan includes up to 3 projects, 1 GB of storage, and access to community support forums."
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"id": "q2",
|
|
414
|
+
"component": "AccordionItem",
|
|
415
|
+
"text": "Can I upgrade or downgrade at any time?",
|
|
416
|
+
"children": [
|
|
417
|
+
"a2"
|
|
418
|
+
]
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"id": "a2",
|
|
422
|
+
"component": "Text",
|
|
423
|
+
"variant": "body",
|
|
424
|
+
"textContent": "Yes, you can change your plan at any time. When upgrading, you'll be charged a prorated amount."
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"id": "q3",
|
|
428
|
+
"component": "AccordionItem",
|
|
429
|
+
"text": "How does billing work for teams?",
|
|
430
|
+
"children": [
|
|
431
|
+
"a3"
|
|
432
|
+
]
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"id": "a3",
|
|
436
|
+
"component": "Text",
|
|
437
|
+
"variant": "body",
|
|
438
|
+
"textContent": "Team billing is per-seat. You're charged for each active team member on a monthly or annual basis."
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
"id": "q4",
|
|
442
|
+
"component": "AccordionItem",
|
|
443
|
+
"text": "Do you offer refunds?",
|
|
444
|
+
"children": [
|
|
445
|
+
"a4"
|
|
446
|
+
]
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"id": "a4",
|
|
450
|
+
"component": "Text",
|
|
451
|
+
"variant": "body",
|
|
452
|
+
"textContent": "We offer a full refund within 30 days of purchase. After 30 days, we provide prorated refunds for annual plans."
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"id": "q5",
|
|
456
|
+
"component": "AccordionItem",
|
|
457
|
+
"text": "Is my data secure?",
|
|
458
|
+
"children": [
|
|
459
|
+
"a5"
|
|
460
|
+
]
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"id": "a5",
|
|
464
|
+
"component": "Text",
|
|
465
|
+
"variant": "body",
|
|
466
|
+
"textContent": "We use AES-256 encryption at rest, TLS 1.3 in transit, and are SOC 2 Type II certified."
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"id": "col-wrap",
|
|
470
|
+
"component": "Column",
|
|
471
|
+
"children": [
|
|
472
|
+
"accordion"
|
|
473
|
+
],
|
|
474
|
+
"gap": "4"
|
|
475
|
+
}
|
|
476
|
+
]
|
|
477
|
+
keywords:
|
|
478
|
+
- accordion
|
|
479
|
+
- options
|
|
480
|
+
- faq
|
|
481
|
+
- questions
|
|
482
|
+
- help
|
|
483
|
+
- support
|
|
484
|
+
- knowledge-base
|
|
485
|
+
- collapse
|
|
486
|
+
- expand
|
|
487
|
+
synonyms:
|
|
488
|
+
accordion:
|
|
489
|
+
- accordion
|
|
490
|
+
- faq
|
|
491
|
+
- settings
|
|
492
|
+
collapse:
|
|
493
|
+
- accordion
|
|
494
|
+
- faq
|
|
495
|
+
- drawer
|
|
496
|
+
expand:
|
|
497
|
+
- accordion
|
|
498
|
+
- faq
|
|
499
|
+
- drawer
|
|
500
|
+
faq:
|
|
501
|
+
- faq
|
|
502
|
+
- accordion
|
|
503
|
+
help:
|
|
504
|
+
- faq
|
|
505
|
+
- accordion
|
|
506
|
+
- tooltip
|
|
507
|
+
knowledge-base:
|
|
508
|
+
- faq
|
|
509
|
+
- accordion
|
|
510
|
+
options:
|
|
511
|
+
- settings
|
|
512
|
+
- radio
|
|
513
|
+
- segmented
|
|
514
|
+
- accordion
|
|
515
|
+
questions:
|
|
516
|
+
- faq
|
|
517
|
+
- accordion
|
|
518
|
+
support:
|
|
519
|
+
- faq
|
|
520
|
+
- accordion
|
|
521
|
+
- chat
|
|
522
|
+
related:
|
|
523
|
+
- accordion-item
|
|
524
|
+
- input
|
|
525
|
+
- text-area
|
|
526
|
+
- toggle
|
|
527
|
+
- button
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://adiaui.dev/a2ui/v0_9/components/ActionList.json",
|
|
4
|
+
"title": "ActionList",
|
|
5
|
+
"description": "Inline list of command actions with keyboard navigation. Fires action event when an item is clicked or activated via keyboard.",
|
|
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": "ActionList"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"required": [
|
|
21
|
+
"component"
|
|
22
|
+
],
|
|
23
|
+
"unevaluatedProperties": false,
|
|
24
|
+
"x-adiaui": {
|
|
25
|
+
"anti_patterns": [],
|
|
26
|
+
"category": "navigation",
|
|
27
|
+
"events": {
|
|
28
|
+
"action": {
|
|
29
|
+
"description": "Fired on action."
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"examples": [
|
|
33
|
+
{
|
|
34
|
+
"description": "Basic ActionList usage",
|
|
35
|
+
"a2ui": "[\n {\n \"id\": \"root\",\n \"component\": \"Card\",\n \"children\": [\n \"sec\"\n ]\n },\n {\n \"id\": \"sec\",\n \"component\": \"Section\",\n \"children\": [\n \"comp\"\n ]\n },\n {\n \"id\": \"comp\",\n \"component\": \"ActionList\"\n }\n]",
|
|
36
|
+
"name": "basic-action-list"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"keywords": [
|
|
40
|
+
"actionlist",
|
|
41
|
+
"action-list",
|
|
42
|
+
"action",
|
|
43
|
+
"list"
|
|
44
|
+
],
|
|
45
|
+
"name": "AdiaActionList",
|
|
46
|
+
"related": [],
|
|
47
|
+
"slots": {
|
|
48
|
+
"default (action-item-ui children)": {
|
|
49
|
+
"description": "Child content region for the `default (action-item-ui children)` slot."
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"states": [
|
|
53
|
+
{
|
|
54
|
+
"description": "Default, ready for interaction.",
|
|
55
|
+
"name": "idle"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"synonyms": {},
|
|
59
|
+
"tag": "action-list-ui",
|
|
60
|
+
"tokens": {},
|
|
61
|
+
"traits": [],
|
|
62
|
+
"version": 1
|
|
63
|
+
}
|
|
64
|
+
}
|