From 3b5656ee75678c42b2cb40e95846515f646db557 Mon Sep 17 00:00:00 2001 From: Guillermo Rodas Date: Sat, 17 Jul 2021 13:24:32 +0200 Subject: [PATCH] fix: rename bertical to vertical --- layout/FullHeightContent/FullHeightContent.js | 2 +- .../FullHeightContent.stories.js.snap | 2 +- layout/Spacer/Spacer.js | 4 ++-- layout/Spacer/Spacer.module.css | 2 +- layout/Spacer/components/Bertical/index.js | 1 - .../Bertical.js => Vertical/Vertical.js} | 10 +++++----- .../Vertical.stories.js} | 10 +++++----- .../__snapshots__/Vertical.stories.js.snap} | 16 ++++++++-------- layout/Spacer/components/Vertical/index.js | 1 + layout/Spacer/components/index.js | 2 +- molecules/LoadingError/LoadingError.stories.js | 2 +- molecules/TaskCounter/TaskCounter.js | 2 +- .../__snapshots__/TaskCounter.stories.js.snap | 6 +++--- tokens/Token/components/FontWeight.js | 2 +- 14 files changed, 31 insertions(+), 31 deletions(-) delete mode 100644 layout/Spacer/components/Bertical/index.js rename layout/Spacer/components/{Bertical/Bertical.js => Vertical/Vertical.js} (70%) rename layout/Spacer/components/{Bertical/Bertical.stories.js => Vertical/Vertical.stories.js} (68%) rename layout/Spacer/components/{Bertical/__snapshots__/Bertical.stories.js.snap => Vertical/__snapshots__/Vertical.stories.js.snap} (73%) create mode 100644 layout/Spacer/components/Vertical/index.js diff --git a/layout/FullHeightContent/FullHeightContent.js b/layout/FullHeightContent/FullHeightContent.js index b95bd11..6659bd7 100644 --- a/layout/FullHeightContent/FullHeightContent.js +++ b/layout/FullHeightContent/FullHeightContent.js @@ -19,7 +19,7 @@ export const FullHeightContent = ({ })} >
{content}
- +
{footer}
) diff --git a/layout/FullHeightContent/__snapshots__/FullHeightContent.stories.js.snap b/layout/FullHeightContent/__snapshots__/FullHeightContent.stories.js.snap index b03561e..1f90b87 100644 --- a/layout/FullHeightContent/__snapshots__/FullHeightContent.stories.js.snap +++ b/layout/FullHeightContent/__snapshots__/FullHeightContent.stories.js.snap @@ -24,7 +24,7 @@ exports[`Storyshots Layout/FullHeightContent Default 1`] = ` Mice defiling required Bilbo sailing unspoiled this hunting. 14th refuge knowing breath Middle-earth sack demon children?
( +export const Vertical = ({ getStyles, size, isPlayground }) => (
( /> ) -Bertical.propTypes = { +Vertical.propTypes = { getStyles: PropTypes.func.isRequired, size: PropTypes.string.isRequired, isPlayground: PropTypes.bool, } -Bertical.defaultProps = { +Vertical.defaultProps = { size: 'none', isPlayground: false, getStyles: () => {}, } -export default withStyles(styles)(Bertical) +export default withStyles(styles)(Vertical) diff --git a/layout/Spacer/components/Bertical/Bertical.stories.js b/layout/Spacer/components/Vertical/Vertical.stories.js similarity index 68% rename from layout/Spacer/components/Bertical/Bertical.stories.js rename to layout/Spacer/components/Vertical/Vertical.stories.js index 7f9fd01..f05c870 100644 --- a/layout/Spacer/components/Bertical/Bertical.stories.js +++ b/layout/Spacer/components/Vertical/Vertical.stories.js @@ -1,4 +1,4 @@ -import { Bertical } from '.' +import { Vertical } from '.' import { options, styles } from '../..' import { @@ -7,12 +7,12 @@ import { getOptionsArgTypes, } from '../../../../helpers/storybook' -const Template = getTemplate(Bertical, styles) -const ListTemplate = getListTemplate(Bertical, styles) +const Template = getTemplate(Vertical, styles) +const ListTemplate = getListTemplate(Vertical, styles) export default { - title: 'Layout/Spacer/Bertical', - component: Bertical, + title: 'Layout/Spacer/Vertical', + component: Vertical, args: { isPlayground: true }, argTypes: { size: getOptionsArgTypes(options.sizes), diff --git a/layout/Spacer/components/Bertical/__snapshots__/Bertical.stories.js.snap b/layout/Spacer/components/Vertical/__snapshots__/Vertical.stories.js.snap similarity index 73% rename from layout/Spacer/components/Bertical/__snapshots__/Bertical.stories.js.snap rename to layout/Spacer/components/Vertical/__snapshots__/Vertical.stories.js.snap index 8493119..61b0b20 100644 --- a/layout/Spacer/components/Bertical/__snapshots__/Bertical.stories.js.snap +++ b/layout/Spacer/components/Vertical/__snapshots__/Vertical.stories.js.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Storyshots Layout/Spacer/Bertical Default 1`] = ` +exports[`Storyshots Layout/Spacer/Vertical Default 1`] = `
`; -exports[`Storyshots Layout/Spacer/Bertical Sizes 1`] = ` +exports[`Storyshots Layout/Spacer/Vertical Sizes 1`] = `
- + {!isCollapsed && children}
diff --git a/molecules/TaskCounter/__snapshots__/TaskCounter.stories.js.snap b/molecules/TaskCounter/__snapshots__/TaskCounter.stories.js.snap index ca94a00..41835fd 100644 --- a/molecules/TaskCounter/__snapshots__/TaskCounter.stories.js.snap +++ b/molecules/TaskCounter/__snapshots__/TaskCounter.stories.js.snap @@ -33,7 +33,7 @@ exports[`Storyshots Molecules/TaskCounter Default 1`] = `
{ FontWeight.propTypes = { label: PropTypes.string.isRequired, - value: PropTypes.string.isRequired, + value: PropTypes.number.isRequired, children: PropTypes.string.isRequired, }