Просмотр исходного кода

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
Rebeka Dekany 1 год назад
Родитель
Сommit
532f9b6549

+ 4 - 4
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';
 
 <Meta title="Storybook Guideline / Foundations" />
 

+ 0 - 0
services/web/frontend/stylesheets/bootstrap-5/foundations/tokens/borderRadius.json → services/web/frontend/stylesheets/foundations/tokens/borderRadius.json


+ 0 - 0
services/web/frontend/stylesheets/bootstrap-5/foundations/tokens/colors.json → services/web/frontend/stylesheets/foundations/tokens/colors.json


+ 0 - 0
services/web/frontend/stylesheets/bootstrap-5/foundations/tokens/spacing.json → services/web/frontend/stylesheets/foundations/tokens/spacing.json


+ 0 - 0
services/web/frontend/stylesheets/bootstrap-5/foundations/tokens/typography.json → services/web/frontend/stylesheets/foundations/tokens/typography.json


+ 0 - 11
services/web/types/bootstrap.ts

@@ -1,11 +0,0 @@
-export type BsStyle =
-  | 'primary'
-  | 'secondary'
-  | 'danger'
-  | 'info'
-  | 'default'
-  | 'link'
-  | 'warning'
-  | 'success'
-
-export type BsSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl'