@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,185 @@
|
|
|
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: AdiaTimeline
|
|
5
|
+
tag: timeline-ui
|
|
6
|
+
component: Timeline
|
|
7
|
+
category: display
|
|
8
|
+
version: 1
|
|
9
|
+
description: "Timeline and step wizard. Two modes: timeline (per-item state) and steps (parent-driven)."
|
|
10
|
+
props:
|
|
11
|
+
mode:
|
|
12
|
+
description: Display mode
|
|
13
|
+
type: string
|
|
14
|
+
default: timeline
|
|
15
|
+
enum:
|
|
16
|
+
- timeline
|
|
17
|
+
- steps
|
|
18
|
+
orientation:
|
|
19
|
+
description: Layout direction
|
|
20
|
+
type: string
|
|
21
|
+
default: vertical
|
|
22
|
+
enum:
|
|
23
|
+
- vertical
|
|
24
|
+
- horizontal
|
|
25
|
+
step:
|
|
26
|
+
description: Current step index (steps mode)
|
|
27
|
+
type: number
|
|
28
|
+
default: 0
|
|
29
|
+
events: {}
|
|
30
|
+
slots:
|
|
31
|
+
default:
|
|
32
|
+
description: Accepts <timeline-item-ui> children.
|
|
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: order-tracking
|
|
43
|
+
description: Order tracking card with a timeline showing order status milestones from placed to delivered.
|
|
44
|
+
a2ui: >-
|
|
45
|
+
[
|
|
46
|
+
{
|
|
47
|
+
"id": "root",
|
|
48
|
+
"component": "Card",
|
|
49
|
+
"children": [
|
|
50
|
+
"hdr",
|
|
51
|
+
"sec"
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"id": "hdr",
|
|
56
|
+
"component": "Header",
|
|
57
|
+
"children": [
|
|
58
|
+
"title",
|
|
59
|
+
"desc"
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"id": "title",
|
|
64
|
+
"component": "Text",
|
|
65
|
+
"slot": "heading",
|
|
66
|
+
"variant": "span",
|
|
67
|
+
"textContent": "Order #12345"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"id": "desc",
|
|
71
|
+
"component": "Text",
|
|
72
|
+
"slot": "description",
|
|
73
|
+
"textContent": "Estimated delivery: April 20, 2026"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"id": "sec",
|
|
77
|
+
"component": "Section",
|
|
78
|
+
"children": [
|
|
79
|
+
"col"
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"id": "col",
|
|
84
|
+
"component": "Column",
|
|
85
|
+
"gap": "4",
|
|
86
|
+
"children": [
|
|
87
|
+
"info",
|
|
88
|
+
"tl"
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"id": "info",
|
|
93
|
+
"component": "Row",
|
|
94
|
+
"gap": "4",
|
|
95
|
+
"children": [
|
|
96
|
+
"status",
|
|
97
|
+
"carrier"
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"id": "status",
|
|
102
|
+
"component": "Column",
|
|
103
|
+
"gap": "0",
|
|
104
|
+
"children": [
|
|
105
|
+
"sl",
|
|
106
|
+
"sv"
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"id": "sl",
|
|
111
|
+
"component": "Text",
|
|
112
|
+
"color": "muted",
|
|
113
|
+
"textContent": "Status"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"id": "sv",
|
|
117
|
+
"component": "Text",
|
|
118
|
+
"weight": "semibold",
|
|
119
|
+
"textContent": "In Transit"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"id": "carrier",
|
|
123
|
+
"component": "Column",
|
|
124
|
+
"gap": "0",
|
|
125
|
+
"children": [
|
|
126
|
+
"cl",
|
|
127
|
+
"cv"
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"id": "cl",
|
|
132
|
+
"component": "Text",
|
|
133
|
+
"color": "muted",
|
|
134
|
+
"textContent": "Carrier"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"id": "cv",
|
|
138
|
+
"component": "Text",
|
|
139
|
+
"weight": "semibold",
|
|
140
|
+
"textContent": "FedEx Express"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"id": "tl",
|
|
144
|
+
"component": "Timeline",
|
|
145
|
+
"children": [
|
|
146
|
+
"t1",
|
|
147
|
+
"t2",
|
|
148
|
+
"t3",
|
|
149
|
+
"t4"
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"id": "t1",
|
|
154
|
+
"component": "TimelineItem",
|
|
155
|
+
"text": "Order Placed",
|
|
156
|
+
"description": "April 15, 2026 at 2:30 PM",
|
|
157
|
+
"color": "success"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"id": "t2",
|
|
161
|
+
"component": "TimelineItem",
|
|
162
|
+
"text": "Processing",
|
|
163
|
+
"description": "April 16, 2026 at 9:00 AM",
|
|
164
|
+
"color": "success"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"id": "t3",
|
|
168
|
+
"component": "TimelineItem",
|
|
169
|
+
"text": "Shipped",
|
|
170
|
+
"description": "April 17, 2026 at 11:45 AM",
|
|
171
|
+
"color": "primary"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"id": "t4",
|
|
175
|
+
"component": "TimelineItem",
|
|
176
|
+
"text": "Delivered",
|
|
177
|
+
"description": "Expected April 20, 2026",
|
|
178
|
+
"color": "muted"
|
|
179
|
+
}
|
|
180
|
+
]
|
|
181
|
+
keywords:
|
|
182
|
+
- timeline
|
|
183
|
+
synonyms: {}
|
|
184
|
+
related:
|
|
185
|
+
- timeline-item
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://adiaui.dev/a2ui/v0_9/components/Toast.json",
|
|
4
|
+
"title": "Toast",
|
|
5
|
+
"description": "Notification popup with auto-dismiss. Animated enter/exit.",
|
|
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
|
+
"closable": {
|
|
17
|
+
"description": "When true, renders a dismiss button.",
|
|
18
|
+
"type": "boolean",
|
|
19
|
+
"default": true
|
|
20
|
+
},
|
|
21
|
+
"component": {
|
|
22
|
+
"const": "Toast"
|
|
23
|
+
},
|
|
24
|
+
"duration": {
|
|
25
|
+
"description": "Auto-dismiss time in milliseconds. 0 disables auto-dismiss.",
|
|
26
|
+
"type": "number",
|
|
27
|
+
"default": 4000
|
|
28
|
+
},
|
|
29
|
+
"icon": {
|
|
30
|
+
"description": "Leading Phosphor icon name; when omitted, defaults from `variant` (success → check, danger → x, etc.).",
|
|
31
|
+
"type": "string",
|
|
32
|
+
"default": ""
|
|
33
|
+
},
|
|
34
|
+
"open": {
|
|
35
|
+
"description": "Controls visibility and triggers auto-dismiss timer",
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"default": false
|
|
38
|
+
},
|
|
39
|
+
"position": {
|
|
40
|
+
"description": "Screen position",
|
|
41
|
+
"type": "string",
|
|
42
|
+
"enum": [
|
|
43
|
+
"top-left",
|
|
44
|
+
"top-center",
|
|
45
|
+
"top-right",
|
|
46
|
+
"bottom-left",
|
|
47
|
+
"bottom-center",
|
|
48
|
+
"bottom-right"
|
|
49
|
+
],
|
|
50
|
+
"default": "bottom-right"
|
|
51
|
+
},
|
|
52
|
+
"text": {
|
|
53
|
+
"description": "Toast message text",
|
|
54
|
+
"type": "string",
|
|
55
|
+
"default": ""
|
|
56
|
+
},
|
|
57
|
+
"variant": {
|
|
58
|
+
"description": "Color variant. `error` kept as alias for `danger`.",
|
|
59
|
+
"type": "string",
|
|
60
|
+
"enum": [
|
|
61
|
+
"default",
|
|
62
|
+
"success",
|
|
63
|
+
"warning",
|
|
64
|
+
"error",
|
|
65
|
+
"info",
|
|
66
|
+
"danger",
|
|
67
|
+
"primary",
|
|
68
|
+
"muted",
|
|
69
|
+
"neutral"
|
|
70
|
+
],
|
|
71
|
+
"default": "info"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"required": [
|
|
75
|
+
"component"
|
|
76
|
+
],
|
|
77
|
+
"unevaluatedProperties": false,
|
|
78
|
+
"x-adiaui": {
|
|
79
|
+
"anti_patterns": [],
|
|
80
|
+
"category": "container",
|
|
81
|
+
"events": {
|
|
82
|
+
"close": {
|
|
83
|
+
"description": "Fired when the toast is dismissed via click or auto-timeout"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"examples": [
|
|
87
|
+
{
|
|
88
|
+
"description": "Column of three toast notification components showing success, warning, and error variants.",
|
|
89
|
+
"a2ui": "[\n {\n \"id\": \"root\",\n \"component\": \"Column\",\n \"gap\": \"2\",\n \"children\": [\n \"t1\",\n \"t2\",\n \"t3\"\n ]\n },\n {\n \"id\": \"t1\",\n \"component\": \"Toast\",\n \"variant\": \"success\",\n \"title\": \"Saved successfully\",\n \"description\": \"Your changes have been saved.\",\n \"dismissible\": true\n },\n {\n \"id\": \"t2\",\n \"component\": \"Toast\",\n \"variant\": \"warning\",\n \"title\": \"Storage almost full\",\n \"description\": \"You are using 90% of your available storage.\",\n \"dismissible\": true\n },\n {\n \"id\": \"t3\",\n \"component\": \"Toast\",\n \"variant\": \"error\",\n \"title\": \"Upload failed\",\n \"description\": \"The file could not be uploaded. Please try again.\",\n \"dismissible\": true\n }\n]",
|
|
90
|
+
"name": "toast-notification"
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"keywords": [
|
|
94
|
+
"toast",
|
|
95
|
+
"inbox",
|
|
96
|
+
"message",
|
|
97
|
+
"snackbar",
|
|
98
|
+
"popup",
|
|
99
|
+
"warning",
|
|
100
|
+
"error",
|
|
101
|
+
"success",
|
|
102
|
+
"info",
|
|
103
|
+
"notification",
|
|
104
|
+
"remind",
|
|
105
|
+
"alert"
|
|
106
|
+
],
|
|
107
|
+
"name": "AdiaToast",
|
|
108
|
+
"related": [],
|
|
109
|
+
"slots": {},
|
|
110
|
+
"states": [
|
|
111
|
+
{
|
|
112
|
+
"description": "Default, ready for interaction.",
|
|
113
|
+
"name": "idle"
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"synonyms": {
|
|
117
|
+
"alert": [
|
|
118
|
+
"alert",
|
|
119
|
+
"banner",
|
|
120
|
+
"toast",
|
|
121
|
+
"notification"
|
|
122
|
+
],
|
|
123
|
+
"error": [
|
|
124
|
+
"alert",
|
|
125
|
+
"error",
|
|
126
|
+
"toast",
|
|
127
|
+
"empty"
|
|
128
|
+
],
|
|
129
|
+
"inbox": [
|
|
130
|
+
"notification",
|
|
131
|
+
"alert",
|
|
132
|
+
"toast",
|
|
133
|
+
"message",
|
|
134
|
+
"email",
|
|
135
|
+
"mail",
|
|
136
|
+
"folder"
|
|
137
|
+
],
|
|
138
|
+
"info": [
|
|
139
|
+
"alert",
|
|
140
|
+
"toast",
|
|
141
|
+
"notification",
|
|
142
|
+
"tooltip"
|
|
143
|
+
],
|
|
144
|
+
"message": [
|
|
145
|
+
"chat",
|
|
146
|
+
"notification",
|
|
147
|
+
"toast",
|
|
148
|
+
"alert"
|
|
149
|
+
],
|
|
150
|
+
"notification": [
|
|
151
|
+
"notification",
|
|
152
|
+
"toast",
|
|
153
|
+
"alert",
|
|
154
|
+
"badge"
|
|
155
|
+
],
|
|
156
|
+
"popup": [
|
|
157
|
+
"toast",
|
|
158
|
+
"notification",
|
|
159
|
+
"alert",
|
|
160
|
+
"popover",
|
|
161
|
+
"drawer"
|
|
162
|
+
],
|
|
163
|
+
"remind": [
|
|
164
|
+
"notification",
|
|
165
|
+
"toast",
|
|
166
|
+
"calendar"
|
|
167
|
+
],
|
|
168
|
+
"snackbar": [
|
|
169
|
+
"toast",
|
|
170
|
+
"notification",
|
|
171
|
+
"alert"
|
|
172
|
+
],
|
|
173
|
+
"success": [
|
|
174
|
+
"alert",
|
|
175
|
+
"toast",
|
|
176
|
+
"notification"
|
|
177
|
+
],
|
|
178
|
+
"warning": [
|
|
179
|
+
"alert",
|
|
180
|
+
"error",
|
|
181
|
+
"toast"
|
|
182
|
+
]
|
|
183
|
+
},
|
|
184
|
+
"tag": "toast-ui",
|
|
185
|
+
"tokens": {
|
|
186
|
+
"--toast-background": {
|
|
187
|
+
"description": "Override background color"
|
|
188
|
+
},
|
|
189
|
+
"--toast-border-color": {
|
|
190
|
+
"description": "Override border color"
|
|
191
|
+
},
|
|
192
|
+
"--toast-foreground": {
|
|
193
|
+
"description": "Override text color"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"traits": [],
|
|
197
|
+
"version": 1
|
|
198
|
+
}
|
|
199
|
+
}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
/* ═══════════════════════════════════════════════════════════════
|
|
2
|
+
TOAST-N — Notification popup with auto-dismiss.
|
|
3
|
+
═══════════════════════════════════════════════════════════════ */
|
|
4
|
+
|
|
5
|
+
@scope (toast-ui) {
|
|
6
|
+
:where(:scope) {
|
|
7
|
+
--toast-bg: var(--a-bg-subtle);
|
|
8
|
+
--toast-fg: var(--a-fg);
|
|
9
|
+
--toast-radius: var(--a-radius-md);
|
|
10
|
+
--toast-shadow: var(--a-shadow-lg);
|
|
11
|
+
--toast-duration: var(--a-duration);
|
|
12
|
+
--toast-easing: var(--a-easing-out);
|
|
13
|
+
--toast-pad-x: var(--a-space-4);
|
|
14
|
+
--toast-pad-y: var(--a-space-3);
|
|
15
|
+
--toast-border: var(--a-border-subtle);
|
|
16
|
+
--toast-max-width: 24rem;
|
|
17
|
+
--toast-gap: var(--a-space-3);
|
|
18
|
+
|
|
19
|
+
/* ── Typography ── */
|
|
20
|
+
--toast-font: var(--a-font-family);
|
|
21
|
+
--toast-size: var(--a-ui-md);
|
|
22
|
+
|
|
23
|
+
/* ── Position offset ── */
|
|
24
|
+
--toast-offset: var(--a-space-4);
|
|
25
|
+
|
|
26
|
+
/* ── Close button ── */
|
|
27
|
+
--toast-close-duration: var(--a-duration-fast);
|
|
28
|
+
--toast-close-easing: var(--a-easing);
|
|
29
|
+
--toast-focus-ring: var(--a-focus-ring);
|
|
30
|
+
--toast-focus-radius: var(--a-radius-sm);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:scope {
|
|
34
|
+
box-sizing: border-box;
|
|
35
|
+
position: fixed;
|
|
36
|
+
z-index: 9999;
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
gap: var(--toast-gap);
|
|
40
|
+
max-width: var(--toast-max-width);
|
|
41
|
+
padding: var(--toast-pad-y) var(--toast-pad-x);
|
|
42
|
+
background: var(--toast-bg);
|
|
43
|
+
color: var(--toast-fg);
|
|
44
|
+
font-family: var(--toast-font);
|
|
45
|
+
font-size: var(--toast-size);
|
|
46
|
+
border: 1px solid var(--toast-border);
|
|
47
|
+
border-radius: var(--toast-radius);
|
|
48
|
+
box-shadow: var(--toast-shadow);
|
|
49
|
+
opacity: 0;
|
|
50
|
+
pointer-events: auto;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* ── Position variants ── */
|
|
54
|
+
|
|
55
|
+
:where(:scope),
|
|
56
|
+
:where(:scope[position="bottom-right"]) {
|
|
57
|
+
bottom: var(--toast-offset);
|
|
58
|
+
right: var(--toast-offset);
|
|
59
|
+
transform: translateY(1rem);
|
|
60
|
+
}
|
|
61
|
+
:where(:scope[position="bottom-left"]) {
|
|
62
|
+
bottom: var(--toast-offset);
|
|
63
|
+
left: var(--toast-offset);
|
|
64
|
+
right: auto;
|
|
65
|
+
transform: translateY(1rem);
|
|
66
|
+
}
|
|
67
|
+
:where(:scope[position="top-right"]) {
|
|
68
|
+
top: var(--toast-offset);
|
|
69
|
+
right: var(--toast-offset);
|
|
70
|
+
bottom: auto;
|
|
71
|
+
transform: translateY(-1rem);
|
|
72
|
+
}
|
|
73
|
+
:where(:scope[position="top-left"]) {
|
|
74
|
+
top: var(--toast-offset);
|
|
75
|
+
left: var(--toast-offset);
|
|
76
|
+
right: auto;
|
|
77
|
+
bottom: auto;
|
|
78
|
+
transform: translateY(-1rem);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* ── Enter animation ── */
|
|
82
|
+
|
|
83
|
+
:scope[data-open] {
|
|
84
|
+
transition: transform var(--toast-duration) var(--toast-easing),
|
|
85
|
+
opacity var(--toast-duration) var(--toast-easing);
|
|
86
|
+
transform: translateY(0);
|
|
87
|
+
opacity: 1;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* ── Exit animation ── */
|
|
91
|
+
|
|
92
|
+
:scope[data-closing] {
|
|
93
|
+
transition: transform var(--toast-duration) var(--toast-easing),
|
|
94
|
+
opacity var(--toast-duration) var(--toast-easing);
|
|
95
|
+
opacity: 0;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
:where(:scope[data-closing]),
|
|
99
|
+
:where(:scope[data-closing][position="bottom-right"]),
|
|
100
|
+
:where(:scope[data-closing][position="bottom-left"]) {
|
|
101
|
+
transform: translateY(1rem);
|
|
102
|
+
}
|
|
103
|
+
:where(:scope[data-closing][position="top-right"]),
|
|
104
|
+
:where(:scope[data-closing][position="top-left"]) {
|
|
105
|
+
transform: translateY(-1rem);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* ── Variant: info (default) ── */
|
|
109
|
+
|
|
110
|
+
:where(:scope),
|
|
111
|
+
:where(:scope[variant="info"]) {
|
|
112
|
+
--toast-bg: var(--a-info-muted);
|
|
113
|
+
--toast-fg: var(--a-info-text-strong);
|
|
114
|
+
--toast-border: var(--a-info-border-subtle);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* ── Variant: success ── */
|
|
118
|
+
|
|
119
|
+
:where(:scope[variant="success"]) {
|
|
120
|
+
--toast-bg: var(--a-success-muted);
|
|
121
|
+
--toast-fg: var(--a-success-text-strong);
|
|
122
|
+
--toast-border: var(--a-success-border-subtle);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* ── Variant: warning ── */
|
|
126
|
+
|
|
127
|
+
:where(:scope[variant="warning"]) {
|
|
128
|
+
--toast-bg: var(--a-warning-muted);
|
|
129
|
+
--toast-fg: var(--a-warning-text-strong);
|
|
130
|
+
--toast-border: var(--a-warning-border-subtle);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/* ── Variant: danger ── */
|
|
134
|
+
|
|
135
|
+
:where(:scope[variant="danger"]) {
|
|
136
|
+
--toast-bg: var(--a-danger-muted);
|
|
137
|
+
--toast-fg: var(--a-danger-text-strong);
|
|
138
|
+
--toast-border: var(--a-danger-border-subtle);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* ── Message slot ── */
|
|
142
|
+
|
|
143
|
+
[slot="message"] {
|
|
144
|
+
flex: 1;
|
|
145
|
+
min-width: 0;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* ── Close button ── */
|
|
149
|
+
|
|
150
|
+
[slot="close"] {
|
|
151
|
+
background: none;
|
|
152
|
+
border: none;
|
|
153
|
+
font-size: 0.875rem;
|
|
154
|
+
color: currentColor;
|
|
155
|
+
cursor: pointer;
|
|
156
|
+
padding: 0;
|
|
157
|
+
line-height: 1;
|
|
158
|
+
opacity: 0.6;
|
|
159
|
+
flex-shrink: 0;
|
|
160
|
+
align-self: flex-start;
|
|
161
|
+
margin-top: 0.125rem;
|
|
162
|
+
transition: opacity var(--toast-close-duration) var(--toast-close-easing);
|
|
163
|
+
}
|
|
164
|
+
[slot="close"]::after { content: '\00d7'; }
|
|
165
|
+
[slot="close"]:hover { opacity: 1; }
|
|
166
|
+
[slot="close"]:focus-visible { box-shadow: var(--toast-focus-ring); border-radius: var(--toast-focus-radius); }
|
|
167
|
+
|
|
168
|
+
/* Inside a container: drop fixed positioning */
|
|
169
|
+
[data-toast-container] > :scope {
|
|
170
|
+
position: relative;
|
|
171
|
+
top: auto;
|
|
172
|
+
right: auto;
|
|
173
|
+
bottom: auto;
|
|
174
|
+
left: auto;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/* ── Top-layer: cannot inherit component tokens ── */
|
|
179
|
+
/* ── Toast container — stacks toasts vertically ── */
|
|
180
|
+
[data-toast-container] {
|
|
181
|
+
position: fixed;
|
|
182
|
+
z-index: 9999;
|
|
183
|
+
display: flex;
|
|
184
|
+
flex-direction: column;
|
|
185
|
+
gap: var(--a-space-2);
|
|
186
|
+
pointer-events: none;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
[data-toast-container="bottom-right"] {
|
|
190
|
+
bottom: var(--a-space-4);
|
|
191
|
+
right: var(--a-space-4);
|
|
192
|
+
align-items: flex-end;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
[data-toast-container="bottom-left"] {
|
|
196
|
+
bottom: var(--a-space-4);
|
|
197
|
+
left: var(--a-space-4);
|
|
198
|
+
align-items: flex-start;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
[data-toast-container="top-right"] {
|
|
202
|
+
top: var(--a-space-4);
|
|
203
|
+
right: var(--a-space-4);
|
|
204
|
+
align-items: flex-end;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
[data-toast-container="top-left"] {
|
|
208
|
+
top: var(--a-space-4);
|
|
209
|
+
left: var(--a-space-4);
|
|
210
|
+
align-items: flex-start;
|
|
211
|
+
}
|