From 532f9b654953eb36aee71207353ad0da50807721 Mon Sep 17 00:00:00 2001 From: Rebeka Dekany <50901361+rebekadekany@users.noreply.github.com> Date: Mon, 18 Aug 2025 10:58:13 +0200 Subject: [PATCH] Remove Bootstrap 3 related types (#27959) * Remove bootstrap-5 folder and move tokens to foundations * Remove unused `BsStyle` and `BsSize` * Fix the size prop of the reference search modal GitOrigin-RevId: 566ee519c50a39dd80bda475af40383ef8154a2c --- services/web/frontend/stories/docs/foundations.mdx | 8 ++++---- .../foundations/tokens/borderRadius.json | 0 .../{bootstrap-5 => }/foundations/tokens/colors.json | 0 .../{bootstrap-5 => }/foundations/tokens/spacing.json | 0 .../foundations/tokens/typography.json | 0 services/web/types/bootstrap.ts | 11 ----------- 6 files changed, 4 insertions(+), 15 deletions(-) rename services/web/frontend/stylesheets/{bootstrap-5 => }/foundations/tokens/borderRadius.json (100%) rename services/web/frontend/stylesheets/{bootstrap-5 => }/foundations/tokens/colors.json (100%) rename services/web/frontend/stylesheets/{bootstrap-5 => }/foundations/tokens/spacing.json (100%) rename services/web/frontend/stylesheets/{bootstrap-5 => }/foundations/tokens/typography.json (100%) delete mode 100644 services/web/types/bootstrap.ts diff --git a/services/web/frontend/stories/docs/foundations.mdx b/services/web/frontend/stories/docs/foundations.mdx index b83212683b..2e41a44003 100644 --- a/services/web/frontend/stories/docs/foundations.mdx +++ b/services/web/frontend/stories/docs/foundations.mdx @@ -1,8 +1,8 @@ import { Meta, ColorItem, ColorPalette, Title, Typeset } from '@storybook/blocks'; -import colors from '../../stylesheets/bootstrap-5/foundations/tokens/colors.json'; -import typography from '../../stylesheets/bootstrap-5/foundations/tokens/typography.json'; -import borderRadius from '../../stylesheets/bootstrap-5/foundations/tokens/borderRadius.json'; -import spacing from '../../stylesheets/bootstrap-5/foundations/tokens/spacing.json'; +import colors from '../../stylesheets/foundations/tokens/colors.json'; +import typography from '../../stylesheets/foundations/tokens/typography.json'; +import borderRadius from '../../stylesheets/foundations/tokens/borderRadius.json'; +import spacing from '../../stylesheets/foundations/tokens/spacing.json'; diff --git a/services/web/frontend/stylesheets/bootstrap-5/foundations/tokens/borderRadius.json b/services/web/frontend/stylesheets/foundations/tokens/borderRadius.json similarity index 100% rename from services/web/frontend/stylesheets/bootstrap-5/foundations/tokens/borderRadius.json rename to services/web/frontend/stylesheets/foundations/tokens/borderRadius.json diff --git a/services/web/frontend/stylesheets/bootstrap-5/foundations/tokens/colors.json b/services/web/frontend/stylesheets/foundations/tokens/colors.json similarity index 100% rename from services/web/frontend/stylesheets/bootstrap-5/foundations/tokens/colors.json rename to services/web/frontend/stylesheets/foundations/tokens/colors.json diff --git a/services/web/frontend/stylesheets/bootstrap-5/foundations/tokens/spacing.json b/services/web/frontend/stylesheets/foundations/tokens/spacing.json similarity index 100% rename from services/web/frontend/stylesheets/bootstrap-5/foundations/tokens/spacing.json rename to services/web/frontend/stylesheets/foundations/tokens/spacing.json diff --git a/services/web/frontend/stylesheets/bootstrap-5/foundations/tokens/typography.json b/services/web/frontend/stylesheets/foundations/tokens/typography.json similarity index 100% rename from services/web/frontend/stylesheets/bootstrap-5/foundations/tokens/typography.json rename to services/web/frontend/stylesheets/foundations/tokens/typography.json diff --git a/services/web/types/bootstrap.ts b/services/web/types/bootstrap.ts deleted file mode 100644 index 38f1c8085e..0000000000 --- a/services/web/types/bootstrap.ts +++ /dev/null @@ -1,11 +0,0 @@ -export type BsStyle = - | 'primary' - | 'secondary' - | 'danger' - | 'info' - | 'default' - | 'link' - | 'warning' - | 'success' - -export type BsSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl'