@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,148 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://adiaui.dev/a2ui/v0_9/components/Tooltip.json",
|
|
4
|
+
"title": "Tooltip",
|
|
5
|
+
"description": "Tooltip popup on hover/focus. Uses Popover API for top-layer rendering.",
|
|
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
|
+
"anchor": {
|
|
17
|
+
"description": "ID of the anchor element that triggers the tooltip.",
|
|
18
|
+
"type": "string",
|
|
19
|
+
"default": ""
|
|
20
|
+
},
|
|
21
|
+
"component": {
|
|
22
|
+
"const": "Tooltip"
|
|
23
|
+
},
|
|
24
|
+
"delay": {
|
|
25
|
+
"description": "Delay in milliseconds before showing the tooltip on hover.",
|
|
26
|
+
"type": "number",
|
|
27
|
+
"default": 400
|
|
28
|
+
},
|
|
29
|
+
"offset": {
|
|
30
|
+
"description": "Distance in pixels between the tooltip and the anchor element.",
|
|
31
|
+
"type": "number",
|
|
32
|
+
"default": 8
|
|
33
|
+
},
|
|
34
|
+
"placement": {
|
|
35
|
+
"description": "Preferred position relative to the anchor element.",
|
|
36
|
+
"type": "string",
|
|
37
|
+
"enum": [
|
|
38
|
+
"top",
|
|
39
|
+
"bottom",
|
|
40
|
+
"left",
|
|
41
|
+
"right",
|
|
42
|
+
"top-start",
|
|
43
|
+
"top-end",
|
|
44
|
+
"bottom-start",
|
|
45
|
+
"bottom-end"
|
|
46
|
+
],
|
|
47
|
+
"default": "top"
|
|
48
|
+
},
|
|
49
|
+
"text": {
|
|
50
|
+
"description": "Tooltip text content displayed in the overlay.",
|
|
51
|
+
"type": "string",
|
|
52
|
+
"default": ""
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"required": [
|
|
56
|
+
"component"
|
|
57
|
+
],
|
|
58
|
+
"unevaluatedProperties": false,
|
|
59
|
+
"x-adiaui": {
|
|
60
|
+
"anti_patterns": [],
|
|
61
|
+
"category": "container",
|
|
62
|
+
"events": {},
|
|
63
|
+
"examples": [
|
|
64
|
+
{
|
|
65
|
+
"description": "Row of icon buttons each wrapped in a Tooltip to provide accessible hover labels.",
|
|
66
|
+
"a2ui": "[\n {\n \"id\": \"root\",\n \"component\": \"Row\",\n \"attrs\": {\n \"gap\": \"sm\"\n },\n \"children\": [\n \"tip-edit\",\n \"tip-duplicate\",\n \"tip-share\",\n \"tip-delete\"\n ]\n },\n {\n \"id\": \"tip-edit\",\n \"component\": \"Tooltip\",\n \"attrs\": {\n \"content\": \"Edit item\"\n },\n \"children\": [\n \"btn-edit\"\n ]\n },\n {\n \"id\": \"btn-edit\",\n \"component\": \"Button\",\n \"attrs\": {\n \"variant\": \"ghost\",\n \"icon\": \"edit\",\n \"aria-label\": \"Edit\",\n \"size\": \"sm\"\n }\n },\n {\n \"id\": \"tip-duplicate\",\n \"component\": \"Tooltip\",\n \"attrs\": {\n \"content\": \"Duplicate item\"\n },\n \"children\": [\n \"btn-duplicate\"\n ]\n },\n {\n \"id\": \"btn-duplicate\",\n \"component\": \"Button\",\n \"attrs\": {\n \"variant\": \"ghost\",\n \"icon\": \"copy\",\n \"aria-label\": \"Duplicate\",\n \"size\": \"sm\"\n }\n },\n {\n \"id\": \"tip-share\",\n \"component\": \"Tooltip\",\n \"attrs\": {\n \"content\": \"Share item\"\n },\n \"children\": [\n \"btn-share\"\n ]\n },\n {\n \"id\": \"btn-share\",\n \"component\": \"Button\",\n \"attrs\": {\n \"variant\": \"ghost\",\n \"icon\": \"share\",\n \"aria-label\": \"Share\",\n \"size\": \"sm\"\n }\n },\n {\n \"id\": \"tip-delete\",\n \"component\": \"Tooltip\",\n \"attrs\": {\n \"content\": \"Delete item\"\n },\n \"children\": [\n \"btn-delete\"\n ]\n },\n {\n \"id\": \"btn-delete\",\n \"component\": \"Button\",\n \"attrs\": {\n \"variant\": \"danger\",\n \"icon\": \"trash\",\n \"aria-label\": \"Delete\",\n \"size\": \"sm\"\n }\n }\n]",
|
|
67
|
+
"name": "tooltip-buttons"
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"keywords": [
|
|
71
|
+
"tooltip",
|
|
72
|
+
"info",
|
|
73
|
+
"tutorial",
|
|
74
|
+
"walkthrough",
|
|
75
|
+
"tour",
|
|
76
|
+
"help",
|
|
77
|
+
"buttons",
|
|
78
|
+
"hint",
|
|
79
|
+
"popover"
|
|
80
|
+
],
|
|
81
|
+
"name": "AdiaTooltip",
|
|
82
|
+
"related": [
|
|
83
|
+
"button"
|
|
84
|
+
],
|
|
85
|
+
"slots": {},
|
|
86
|
+
"states": [
|
|
87
|
+
{
|
|
88
|
+
"description": "Default, ready for interaction.",
|
|
89
|
+
"name": "idle"
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"synonyms": {
|
|
93
|
+
"buttons": [
|
|
94
|
+
"toolbar",
|
|
95
|
+
"button",
|
|
96
|
+
"tooltip"
|
|
97
|
+
],
|
|
98
|
+
"help": [
|
|
99
|
+
"faq",
|
|
100
|
+
"accordion",
|
|
101
|
+
"tooltip"
|
|
102
|
+
],
|
|
103
|
+
"hint": [
|
|
104
|
+
"tooltip",
|
|
105
|
+
"button",
|
|
106
|
+
"popover"
|
|
107
|
+
],
|
|
108
|
+
"info": [
|
|
109
|
+
"alert",
|
|
110
|
+
"toast",
|
|
111
|
+
"notification",
|
|
112
|
+
"tooltip"
|
|
113
|
+
],
|
|
114
|
+
"popover": [
|
|
115
|
+
"popover",
|
|
116
|
+
"menu",
|
|
117
|
+
"tooltip"
|
|
118
|
+
],
|
|
119
|
+
"tooltip": [
|
|
120
|
+
"tooltip",
|
|
121
|
+
"button",
|
|
122
|
+
"popover"
|
|
123
|
+
],
|
|
124
|
+
"tour": [
|
|
125
|
+
"onboarding",
|
|
126
|
+
"checklist",
|
|
127
|
+
"wizard",
|
|
128
|
+
"tooltip"
|
|
129
|
+
],
|
|
130
|
+
"tutorial": [
|
|
131
|
+
"onboarding",
|
|
132
|
+
"checklist",
|
|
133
|
+
"wizard",
|
|
134
|
+
"tooltip"
|
|
135
|
+
],
|
|
136
|
+
"walkthrough": [
|
|
137
|
+
"onboarding",
|
|
138
|
+
"checklist",
|
|
139
|
+
"wizard",
|
|
140
|
+
"tooltip"
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
"tag": "tooltip-ui",
|
|
144
|
+
"tokens": {},
|
|
145
|
+
"traits": [],
|
|
146
|
+
"version": 1
|
|
147
|
+
}
|
|
148
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@scope (tooltip-ui) {
|
|
2
|
+
:scope {
|
|
3
|
+
/* ── Base ── */
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
position: relative;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/*
|
|
11
|
+
* ── Tooltip popover (lives in top-layer, outside @scope) ──
|
|
12
|
+
*
|
|
13
|
+
* .tooltip-popup is rendered into the top layer via the Popover API,
|
|
14
|
+
* so it does NOT inherit custom properties from the <tooltip-ui> host.
|
|
15
|
+
* Therefore we reference --a-* design tokens directly here.
|
|
16
|
+
* There is no way to bridge component tokens to the top layer via CSS alone.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
.tooltip-popup {
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
margin: 0;
|
|
22
|
+
padding: var(--a-space-1) var(--a-space-2);
|
|
23
|
+
background: var(--a-fg);
|
|
24
|
+
color: var(--a-bg);
|
|
25
|
+
font-family: var(--a-font-family);
|
|
26
|
+
font-size: var(--a-ui-sm);
|
|
27
|
+
line-height: 1.4;
|
|
28
|
+
border: none;
|
|
29
|
+
border-radius: var(--a-radius-full);
|
|
30
|
+
box-shadow: var(--a-shadow-sm);
|
|
31
|
+
white-space: nowrap;
|
|
32
|
+
pointer-events: none;
|
|
33
|
+
/* No z-index needed — Popover API renders in the top layer which
|
|
34
|
+
has its own stacking above all document content. */
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.tooltip-popup:popover-open {
|
|
38
|
+
display: block;
|
|
39
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <tooltip-ui text="Helpful tip" placement="top">
|
|
3
|
+
* <button-ui text="Hover me"></button-ui>
|
|
4
|
+
* </tooltip-ui>
|
|
5
|
+
*
|
|
6
|
+
* Tooltip popup. Wraps its children and shows a popover on hover/focus.
|
|
7
|
+
* Uses Popover API (popover="manual") for top-layer rendering.
|
|
8
|
+
* Positioned via anchorPopover() from @core/anchor.js.
|
|
9
|
+
*
|
|
10
|
+
* No click interaction — hover/focus only.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { AdiaElement } from '@core/element.js';
|
|
14
|
+
import { anchorPopover } from '@core/anchor.js';
|
|
15
|
+
|
|
16
|
+
class AdiaTooltip extends AdiaElement {
|
|
17
|
+
static properties = {
|
|
18
|
+
text: { type: String, default: '', reflect: true },
|
|
19
|
+
placement: { type: String, default: 'top', reflect: true },
|
|
20
|
+
delay: { type: Number, default: 400, reflect: true },
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
static template = () => null;
|
|
24
|
+
|
|
25
|
+
#popover = null;
|
|
26
|
+
#timer = null;
|
|
27
|
+
#cleanup = null;
|
|
28
|
+
|
|
29
|
+
connected() {
|
|
30
|
+
this.addEventListener('mouseenter', this.#onEnter);
|
|
31
|
+
this.addEventListener('focusin', this.#onEnter);
|
|
32
|
+
this.addEventListener('mouseleave', this.#onLeave);
|
|
33
|
+
this.addEventListener('focusout', this.#onLeave);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
disconnected() {
|
|
37
|
+
this.removeEventListener('mouseenter', this.#onEnter);
|
|
38
|
+
this.removeEventListener('focusin', this.#onEnter);
|
|
39
|
+
this.removeEventListener('mouseleave', this.#onLeave);
|
|
40
|
+
this.removeEventListener('focusout', this.#onLeave);
|
|
41
|
+
this.#hide();
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
render() {
|
|
45
|
+
// Update popover text if already showing
|
|
46
|
+
if (this.#popover) this.#popover.textContent = this.text;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
#onEnter = () => {
|
|
50
|
+
if (!this.text) return;
|
|
51
|
+
if (this.#timer) clearTimeout(this.#timer);
|
|
52
|
+
this.#timer = setTimeout(() => this.#show(), this.delay);
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
#onLeave = () => {
|
|
56
|
+
if (this.#timer) { clearTimeout(this.#timer); this.#timer = null; }
|
|
57
|
+
this.#hide();
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
#show() {
|
|
61
|
+
if (this.#popover) return;
|
|
62
|
+
|
|
63
|
+
const el = document.createElement('div');
|
|
64
|
+
const id = `tooltip-${Date.now()}`;
|
|
65
|
+
el.id = id;
|
|
66
|
+
el.setAttribute('popover', 'manual');
|
|
67
|
+
el.setAttribute('role', 'tooltip');
|
|
68
|
+
el.classList.add('tooltip-popup');
|
|
69
|
+
el.textContent = this.text;
|
|
70
|
+
document.body.appendChild(el);
|
|
71
|
+
|
|
72
|
+
// Link trigger to tooltip for screen readers
|
|
73
|
+
this.setAttribute('aria-describedby', id);
|
|
74
|
+
|
|
75
|
+
try { el.showPopover(); } catch (_) { /* popover not supported */ }
|
|
76
|
+
|
|
77
|
+
this.#popover = el;
|
|
78
|
+
this.#cleanup = anchorPopover(this, el, { placement: this.placement, gap: 6 });
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
#hide() {
|
|
82
|
+
if (this.#timer) { clearTimeout(this.#timer); this.#timer = null; }
|
|
83
|
+
if (!this.#popover) return;
|
|
84
|
+
|
|
85
|
+
this.removeAttribute('aria-describedby');
|
|
86
|
+
this.#cleanup?.();
|
|
87
|
+
this.#cleanup = null;
|
|
88
|
+
|
|
89
|
+
try { this.#popover.hidePopover(); } catch (_) { /* popover not supported */ }
|
|
90
|
+
this.#popover.remove();
|
|
91
|
+
this.#popover = null;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
customElements.define('tooltip-ui', AdiaTooltip);
|
|
95
|
+
|
|
96
|
+
export { AdiaTooltip };
|
|
@@ -0,0 +1,201 @@
|
|
|
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: AdiaTooltip
|
|
5
|
+
tag: tooltip-ui
|
|
6
|
+
component: Tooltip
|
|
7
|
+
category: container
|
|
8
|
+
version: 1
|
|
9
|
+
description: Tooltip popup on hover/focus. Uses Popover API for top-layer rendering.
|
|
10
|
+
props:
|
|
11
|
+
anchor:
|
|
12
|
+
description: ID of the anchor element that triggers the tooltip.
|
|
13
|
+
type: string
|
|
14
|
+
default: ""
|
|
15
|
+
delay:
|
|
16
|
+
description: Delay in milliseconds before showing the tooltip on hover.
|
|
17
|
+
type: number
|
|
18
|
+
default: 400
|
|
19
|
+
offset:
|
|
20
|
+
description: Distance in pixels between the tooltip and the anchor element.
|
|
21
|
+
type: number
|
|
22
|
+
default: 8
|
|
23
|
+
placement:
|
|
24
|
+
description: Preferred position relative to the anchor element.
|
|
25
|
+
type: string
|
|
26
|
+
default: top
|
|
27
|
+
enum:
|
|
28
|
+
- top
|
|
29
|
+
- bottom
|
|
30
|
+
- left
|
|
31
|
+
- right
|
|
32
|
+
- top-start
|
|
33
|
+
- top-end
|
|
34
|
+
- bottom-start
|
|
35
|
+
- bottom-end
|
|
36
|
+
text:
|
|
37
|
+
description: Tooltip text content displayed in the overlay.
|
|
38
|
+
type: string
|
|
39
|
+
default: ""
|
|
40
|
+
events: {}
|
|
41
|
+
slots: {}
|
|
42
|
+
states:
|
|
43
|
+
- name: idle
|
|
44
|
+
description: Default, ready for interaction.
|
|
45
|
+
traits: []
|
|
46
|
+
tokens: {}
|
|
47
|
+
a2ui:
|
|
48
|
+
rules: []
|
|
49
|
+
anti_patterns: []
|
|
50
|
+
examples:
|
|
51
|
+
- name: tooltip-buttons
|
|
52
|
+
description: Row of icon buttons each wrapped in a Tooltip to provide accessible hover labels.
|
|
53
|
+
a2ui: >-
|
|
54
|
+
[
|
|
55
|
+
{
|
|
56
|
+
"id": "root",
|
|
57
|
+
"component": "Row",
|
|
58
|
+
"attrs": {
|
|
59
|
+
"gap": "sm"
|
|
60
|
+
},
|
|
61
|
+
"children": [
|
|
62
|
+
"tip-edit",
|
|
63
|
+
"tip-duplicate",
|
|
64
|
+
"tip-share",
|
|
65
|
+
"tip-delete"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"id": "tip-edit",
|
|
70
|
+
"component": "Tooltip",
|
|
71
|
+
"attrs": {
|
|
72
|
+
"content": "Edit item"
|
|
73
|
+
},
|
|
74
|
+
"children": [
|
|
75
|
+
"btn-edit"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"id": "btn-edit",
|
|
80
|
+
"component": "Button",
|
|
81
|
+
"attrs": {
|
|
82
|
+
"variant": "ghost",
|
|
83
|
+
"icon": "edit",
|
|
84
|
+
"aria-label": "Edit",
|
|
85
|
+
"size": "sm"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"id": "tip-duplicate",
|
|
90
|
+
"component": "Tooltip",
|
|
91
|
+
"attrs": {
|
|
92
|
+
"content": "Duplicate item"
|
|
93
|
+
},
|
|
94
|
+
"children": [
|
|
95
|
+
"btn-duplicate"
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"id": "btn-duplicate",
|
|
100
|
+
"component": "Button",
|
|
101
|
+
"attrs": {
|
|
102
|
+
"variant": "ghost",
|
|
103
|
+
"icon": "copy",
|
|
104
|
+
"aria-label": "Duplicate",
|
|
105
|
+
"size": "sm"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"id": "tip-share",
|
|
110
|
+
"component": "Tooltip",
|
|
111
|
+
"attrs": {
|
|
112
|
+
"content": "Share item"
|
|
113
|
+
},
|
|
114
|
+
"children": [
|
|
115
|
+
"btn-share"
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"id": "btn-share",
|
|
120
|
+
"component": "Button",
|
|
121
|
+
"attrs": {
|
|
122
|
+
"variant": "ghost",
|
|
123
|
+
"icon": "share",
|
|
124
|
+
"aria-label": "Share",
|
|
125
|
+
"size": "sm"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"id": "tip-delete",
|
|
130
|
+
"component": "Tooltip",
|
|
131
|
+
"attrs": {
|
|
132
|
+
"content": "Delete item"
|
|
133
|
+
},
|
|
134
|
+
"children": [
|
|
135
|
+
"btn-delete"
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"id": "btn-delete",
|
|
140
|
+
"component": "Button",
|
|
141
|
+
"attrs": {
|
|
142
|
+
"variant": "danger",
|
|
143
|
+
"icon": "trash",
|
|
144
|
+
"aria-label": "Delete",
|
|
145
|
+
"size": "sm"
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
]
|
|
149
|
+
keywords:
|
|
150
|
+
- tooltip
|
|
151
|
+
- info
|
|
152
|
+
- tutorial
|
|
153
|
+
- walkthrough
|
|
154
|
+
- tour
|
|
155
|
+
- help
|
|
156
|
+
- buttons
|
|
157
|
+
- hint
|
|
158
|
+
- popover
|
|
159
|
+
synonyms:
|
|
160
|
+
buttons:
|
|
161
|
+
- toolbar
|
|
162
|
+
- button
|
|
163
|
+
- tooltip
|
|
164
|
+
help:
|
|
165
|
+
- faq
|
|
166
|
+
- accordion
|
|
167
|
+
- tooltip
|
|
168
|
+
hint:
|
|
169
|
+
- tooltip
|
|
170
|
+
- button
|
|
171
|
+
- popover
|
|
172
|
+
info:
|
|
173
|
+
- alert
|
|
174
|
+
- toast
|
|
175
|
+
- notification
|
|
176
|
+
- tooltip
|
|
177
|
+
popover:
|
|
178
|
+
- popover
|
|
179
|
+
- menu
|
|
180
|
+
- tooltip
|
|
181
|
+
tooltip:
|
|
182
|
+
- tooltip
|
|
183
|
+
- button
|
|
184
|
+
- popover
|
|
185
|
+
tour:
|
|
186
|
+
- onboarding
|
|
187
|
+
- checklist
|
|
188
|
+
- wizard
|
|
189
|
+
- tooltip
|
|
190
|
+
tutorial:
|
|
191
|
+
- onboarding
|
|
192
|
+
- checklist
|
|
193
|
+
- wizard
|
|
194
|
+
- tooltip
|
|
195
|
+
walkthrough:
|
|
196
|
+
- onboarding
|
|
197
|
+
- checklist
|
|
198
|
+
- wizard
|
|
199
|
+
- tooltip
|
|
200
|
+
related:
|
|
201
|
+
- button
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://adiaui.dev/a2ui/v0_9/components/Tree.json",
|
|
4
|
+
"title": "Tree",
|
|
5
|
+
"description": "Collapsible tree container with keyboard navigation (arrow keys, Enter/Space). Manages selection across nested tree-item-ns.",
|
|
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": "Tree"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"required": [
|
|
21
|
+
"component"
|
|
22
|
+
],
|
|
23
|
+
"unevaluatedProperties": false,
|
|
24
|
+
"x-adiaui": {
|
|
25
|
+
"anti_patterns": [],
|
|
26
|
+
"category": "data",
|
|
27
|
+
"events": {
|
|
28
|
+
"tree-select": {
|
|
29
|
+
"description": "Fired when an item is selected. detail: { item, text, value }"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"examples": [
|
|
33
|
+
{
|
|
34
|
+
"description": "Basic Tree 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\": \"Tree\"\n }\n]",
|
|
36
|
+
"name": "basic-tree"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"keywords": [
|
|
40
|
+
"tree",
|
|
41
|
+
"folder"
|
|
42
|
+
],
|
|
43
|
+
"name": "AdiaTree",
|
|
44
|
+
"related": [],
|
|
45
|
+
"slots": {
|
|
46
|
+
"default (tree-item-ui children)": {
|
|
47
|
+
"description": "Child content region for the `default (tree-item-ui children)` slot."
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"states": [
|
|
51
|
+
{
|
|
52
|
+
"description": "Default, ready for interaction.",
|
|
53
|
+
"name": "idle"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"synonyms": {
|
|
57
|
+
"folder": [
|
|
58
|
+
"inbox",
|
|
59
|
+
"email",
|
|
60
|
+
"sidebar",
|
|
61
|
+
"nav",
|
|
62
|
+
"tree"
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
"tag": "tree-ui",
|
|
66
|
+
"tokens": {
|
|
67
|
+
"--tree-actions-gap": {
|
|
68
|
+
"description": "Gap between action icons"
|
|
69
|
+
},
|
|
70
|
+
"--tree-bg-hover": {
|
|
71
|
+
"description": "Background color on hover"
|
|
72
|
+
},
|
|
73
|
+
"--tree-bg-selected": {
|
|
74
|
+
"description": "Background color when selected"
|
|
75
|
+
},
|
|
76
|
+
"--tree-chevron-size": {
|
|
77
|
+
"description": "Size of the collapse chevron icon"
|
|
78
|
+
},
|
|
79
|
+
"--tree-duration": {
|
|
80
|
+
"description": "Transition duration"
|
|
81
|
+
},
|
|
82
|
+
"--tree-easing": {
|
|
83
|
+
"description": "Transition easing function"
|
|
84
|
+
},
|
|
85
|
+
"--tree-fg": {
|
|
86
|
+
"description": "Primary text color"
|
|
87
|
+
},
|
|
88
|
+
"--tree-fg-muted": {
|
|
89
|
+
"description": "Muted text color (icons, chevrons)"
|
|
90
|
+
},
|
|
91
|
+
"--tree-focus-ring": {
|
|
92
|
+
"description": "Focus ring box-shadow"
|
|
93
|
+
},
|
|
94
|
+
"--tree-font-size": {
|
|
95
|
+
"description": "Font size for tree items"
|
|
96
|
+
},
|
|
97
|
+
"--tree-icon-size": {
|
|
98
|
+
"description": "Size of the item icon"
|
|
99
|
+
},
|
|
100
|
+
"--tree-indent": {
|
|
101
|
+
"description": "Indentation per nesting level"
|
|
102
|
+
},
|
|
103
|
+
"--tree-row-gap": {
|
|
104
|
+
"description": "Gap between elements within a row"
|
|
105
|
+
},
|
|
106
|
+
"--tree-row-height": {
|
|
107
|
+
"description": "Height of each tree item row"
|
|
108
|
+
},
|
|
109
|
+
"--tree-row-px": {
|
|
110
|
+
"description": "Inline-end padding of each row"
|
|
111
|
+
},
|
|
112
|
+
"--tree-row-radius": {
|
|
113
|
+
"description": "Border radius of each row"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"traits": [],
|
|
117
|
+
"version": 1
|
|
118
|
+
}
|
|
119
|
+
}
|