Skip to content

Commit

Permalink
build: move bootstrap to package instead of vendor folder
Browse files Browse the repository at this point in the history
  • Loading branch information
jlopezcur committed Oct 29, 2024
1 parent d612214 commit fdd29de
Show file tree
Hide file tree
Showing 94 changed files with 41 additions and 8,984 deletions.
2 changes: 1 addition & 1 deletion .storybook/preview.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'scss/preview';
@use 'scss/preview';

.mrow {
display: grid;
Expand Down
29 changes: 13 additions & 16 deletions .storybook/scss/_preview.scss
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
// Vendor
@import 'vendors/bootstrap-5.1.3/scss/bootstrap';
@use '../../node_modules/bootstrap/scss/bootstrap';

// Functions
@import 'utils/functions/map-deep-functions';

// Variables
@import 'utils/variables/variables';
@use 'utils/functions/map-deep-functions';

// Base
@import 'base/base';
@import 'base/typography';
@import 'base/code';
@import 'base/media';
@use 'base/base';
@use 'base/typography';
@use 'base/code';
@use 'base/media';

// Utils
@import 'layout/spacing';
@use 'layout/spacing';

// Layout
@import 'layout/content';
@use 'layout/content';

// Components
@import 'components/card';
@import 'components/example';
@import 'components/table';
@import 'components/form';
@import 'components/toc';
@use 'components/card';
@use 'components/example';
@use 'components/table';
@use 'components/form';
@use 'components/toc';
1 change: 1 addition & 0 deletions .storybook/scss/base/_typography.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// ---------------------- TYPOGRAPHY - BASE ---------------------- //
@use '../utils/variables' as *;

@font-face {
font-family: 'Poppins';
Expand Down
2 changes: 2 additions & 0 deletions .storybook/scss/components/_example.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// ---------------------- TABLE - COMPONENTS ---------------------- //

@use '../utils/variables' as *;

.example {
$parent: &;
margin-bottom: $spacing-md;
Expand Down
2 changes: 2 additions & 0 deletions .storybook/scss/components/_table.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// ---------------------- TABLE - COMPONENTS ---------------------- //

@use '../utils/variables' as *;

#storybook-docs .sbdocs .sbdocs-table {
width: 100%;
text-align: left;
Expand Down
1 change: 1 addition & 0 deletions .storybook/scss/layout/_spacing.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// ---------------------- SPACING - LAYOUT ---------------------- //

@use '../utils/variables' as *;

@each $spacing-prop in $spacing-props {
@each $direction in $directions {
Expand Down
1 change: 1 addition & 0 deletions .storybook/scss/utils/variables/_index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@forward './variables';
118 changes: 0 additions & 118 deletions .storybook/scss/vendors/bootstrap-5.1.3/scss/_accordion.scss

This file was deleted.

57 changes: 0 additions & 57 deletions .storybook/scss/vendors/bootstrap-5.1.3/scss/_alert.scss

This file was deleted.

29 changes: 0 additions & 29 deletions .storybook/scss/vendors/bootstrap-5.1.3/scss/_badge.scss

This file was deleted.

28 changes: 0 additions & 28 deletions .storybook/scss/vendors/bootstrap-5.1.3/scss/_breadcrumb.scss

This file was deleted.

Loading

0 comments on commit fdd29de

Please sign in to comment.