From 79a61abc5aa51803cd0f310deaa18fdb90d831db Mon Sep 17 00:00:00 2001 From: Charles de Dreuille Date: Tue, 3 Feb 2026 18:36:01 +0000 Subject: [PATCH] Finalise animation and cleaning report Signed-off-by: Charles de Dreuille --- .../src/app/components/toast/components.tsx | 16 +-- docs-ui/src/app/components/toast/snippets.ts | 34 +++--- packages/ui/report.api.md | 107 ++++-------------- .../ui/src/components/Toast/Toast.module.css | 18 ++- .../ui/src/components/Toast/Toast.stories.tsx | 45 +++++--- packages/ui/src/components/Toast/Toast.tsx | 83 +++++++++----- .../{ToastRegion.tsx => ToastContainer.tsx} | 32 +++--- .../ui/src/components/Toast/definition.ts | 28 ++--- packages/ui/src/components/Toast/index.ts | 11 +- packages/ui/src/components/Toast/types.ts | 12 +- packages/ui/src/definitions.ts | 2 +- 11 files changed, 184 insertions(+), 204 deletions(-) rename packages/ui/src/components/Toast/{ToastRegion.tsx => ToastContainer.tsx} (84%) diff --git a/docs-ui/src/app/components/toast/components.tsx b/docs-ui/src/app/components/toast/components.tsx index 037075b1dd..a688b0869c 100644 --- a/docs-ui/src/app/components/toast/components.tsx +++ b/docs-ui/src/app/components/toast/components.tsx @@ -1,13 +1,13 @@ 'use client'; import { useState } from 'react'; -import { ToastRegion, toastQueue, Button, Flex } from '@backstage/ui'; +import { ToastContainer, toastQueue, Button, Flex } from '@backstage/ui'; import type { ToastContent } from '@backstage/ui'; export function Default() { return ( <> - + + + + + + ), }); @@ -126,7 +135,7 @@ export const Default = meta.story({ export const StatusVariants = meta.story({ render: () => ( <> - +