From 7611d0bcac29b0e40ad0cb3e37e681ed8744b781 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20D=C3=A9ramond?= Date: Fri, 26 Jun 2026 05:46:54 +0200 Subject: [PATCH] Docs: remove unused CalloutDeprecatedDarkVariants and DeprecatedIn shortcodes --- .../CalloutDeprecatedDarkVariants.astro | 19 ------------------- .../components/shortcodes/DeprecatedIn.astro | 17 ----------------- site/src/types/auto-import.d.ts | 2 -- 3 files changed, 38 deletions(-) delete mode 100644 site/src/components/shortcodes/CalloutDeprecatedDarkVariants.astro delete mode 100644 site/src/components/shortcodes/DeprecatedIn.astro diff --git a/site/src/components/shortcodes/CalloutDeprecatedDarkVariants.astro b/site/src/components/shortcodes/CalloutDeprecatedDarkVariants.astro deleted file mode 100644 index 4033900d96e0..000000000000 --- a/site/src/components/shortcodes/CalloutDeprecatedDarkVariants.astro +++ /dev/null @@ -1,19 +0,0 @@ ---- -/* - * Outputs message about dark mode component variants being deprecated in v5.3. - */ - -interface Props { - component: string -} - -const { component } = Astro.props ---- - -
-

- Heads up! Dark variants for components were deprecated in v5.3.0 with the introduction of color modes. - Instead of adding .{component}-dark, set data-bs-theme="dark" on the root element, a parent - wrapper, or the component itself. -

-
diff --git a/site/src/components/shortcodes/DeprecatedIn.astro b/site/src/components/shortcodes/DeprecatedIn.astro deleted file mode 100644 index b7ee0586215a..000000000000 --- a/site/src/components/shortcodes/DeprecatedIn.astro +++ /dev/null @@ -1,17 +0,0 @@ ---- -/* - * Outputs badge to identify the version something was deprecated - */ - -interface Props { - version: string -} - -const { version } = Astro.props ---- - - - Deprecated in v{version} - diff --git a/site/src/types/auto-import.d.ts b/site/src/types/auto-import.d.ts index cfd4fe8c28f7..d8f958a8060e 100644 --- a/site/src/types/auto-import.d.ts +++ b/site/src/types/auto-import.d.ts @@ -10,11 +10,9 @@ export declare global { export const ButtonPlayground: typeof import('@shortcodes/ButtonPlayground.astro').default export const CSSVariables: typeof import('@shortcodes/CSSVariables.astro').default export const Callout: typeof import('@shortcodes/Callout.astro').default - export const CalloutDeprecatedDarkVariants: typeof import('@shortcodes/CalloutDeprecatedDarkVariants.astro').default export const CloseButton: typeof import('@shortcodes/CloseButton.astro').default export const Code: typeof import('@shortcodes/Code.astro').default export const CodeCopy: typeof import('@shortcodes/CodeCopy.astro').default - export const DeprecatedIn: typeof import('@shortcodes/DeprecatedIn.astro').default export const Details: typeof import('@shortcodes/Details.astro').default export const Example: typeof import('@shortcodes/Example.astro').default export const JsDismiss: typeof import('@shortcodes/JsDismiss.astro').default