Skip to content

Commit

Permalink
fix: rename bertical to vertical
Browse files Browse the repository at this point in the history
  • Loading branch information
glrodasz committed Jul 17, 2021
1 parent 24c7ab3 commit 3b5656e
Show file tree
Hide file tree
Showing 14 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion layout/FullHeightContent/FullHeightContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const FullHeightContent = ({
})}
>
<div className={styles.content}>{content}</div>
<Spacer.Bertical size="sm" />
<Spacer.Vertical size="sm" />
<div className={styles.footer}>{footer}</div>
</div>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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?
</div>
<div
className="spacer bertical"
className="spacer vertical"
style={
Object {
"height": 15,
Expand Down
4 changes: 2 additions & 2 deletions layout/Spacer/Spacer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import PropTypes from 'prop-types'

import { Bertical, Horizontal } from './components'
import { Vertical, Horizontal } from './components'

import styles from './Spacer.module.css'
import { mapSize } from './helpers'
Expand Down Expand Up @@ -34,7 +34,7 @@ Spacer.defaultProps = {

const SpacerWithStyles = withStyles(styles)(Spacer)

SpacerWithStyles.Bertical = Bertical
SpacerWithStyles.Vertical = Vertical
SpacerWithStyles.Horizontal = Horizontal

export default SpacerWithStyles
2 changes: 1 addition & 1 deletion layout/Spacer/Spacer.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
display: inline-block;
}

.bertical {
.vertical {
display: block;
width: 100%;
}
1 change: 0 additions & 1 deletion layout/Spacer/components/Bertical/index.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { mapSize } from '../../helpers'
import styles from '../../Spacer.module.css'
import withStyles from '../../../../hocs/withStyles'

export const Bertical = ({ getStyles, size, isPlayground }) => (
export const Vertical = ({ getStyles, size, isPlayground }) => (
<div
className={getStyles('spacer', 'bertical', {
className={getStyles('spacer', 'vertical', {
'is-playground': isPlayground,
})}
style={{
Expand All @@ -16,16 +16,16 @@ export const Bertical = ({ 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)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Bertical } from '.'
import { Vertical } from '.'
import { options, styles } from '../..'

import {
Expand All @@ -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),
Expand Down
Original file line number Diff line number Diff line change
@@ -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`] = `
<div
style={
Object {
Expand All @@ -16,7 +16,7 @@ exports[`Storyshots Layout/Spacer/Bertical Default 1`] = `
}
>
<div
className="spacer bertical is-playground"
className="spacer vertical is-playground"
style={
Object {
"height": 0,
Expand All @@ -26,7 +26,7 @@ exports[`Storyshots Layout/Spacer/Bertical Default 1`] = `
</div>
`;

exports[`Storyshots Layout/Spacer/Bertical Sizes 1`] = `
exports[`Storyshots Layout/Spacer/Vertical Sizes 1`] = `
<div
style={
Object {
Expand All @@ -42,39 +42,39 @@ exports[`Storyshots Layout/Spacer/Bertical Sizes 1`] = `
}
>
<div
className="spacer bertical is-playground"
className="spacer vertical is-playground"
style={
Object {
"height": 0,
}
}
/>
<div
className="spacer bertical is-playground"
className="spacer vertical is-playground"
style={
Object {
"height": 5,
}
}
/>
<div
className="spacer bertical is-playground"
className="spacer vertical is-playground"
style={
Object {
"height": 15,
}
}
/>
<div
className="spacer bertical is-playground"
className="spacer vertical is-playground"
style={
Object {
"height": 20,
}
}
/>
<div
className="spacer bertical is-playground"
className="spacer vertical is-playground"
style={
Object {
"height": 40,
Expand Down
1 change: 1 addition & 0 deletions layout/Spacer/components/Vertical/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default, Vertical } from './Vertical'
2 changes: 1 addition & 1 deletion layout/Spacer/components/index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { default as Horizontal } from './Horizontal'
export { default as Bertical } from './Bertical'
export { default as Vertical } from './Vertical'
2 changes: 1 addition & 1 deletion molecules/LoadingError/LoadingError.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
component: LoadingError,
args: {
children:
"Exile ruins brook Angmar inn wars retaken. Swiftly attacks Grma merely! Opinion Eorlingas inquisitive windlance? You are full of surprises, Master Baggins. Houses warning garden noble innocent silver charm numerous thirsty came Treebeard's warm. ",
"Exile ruins brook Angmar inn wars retaken. Swiftly attacks Grma merely! Opinion Eorlingas inquisitive windlance? You are full of surprises, Master Baggins. Houses warning garden noble innocent silver charm numerous thirsty came Treebeard's warm.",
},
}

Expand Down
2 changes: 1 addition & 1 deletion molecules/TaskCounter/TaskCounter.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const TaskCounter = ({
{total ? `${current}/${total}` : current}
</Paragraph>
</div>
<Spacer.Bertical size="xs" />
<Spacer.Vertical size="xs" />
<Divider />
{!isCollapsed && children}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ exports[`Storyshots Molecules/TaskCounter Default 1`] = `
</div>
</div>
<div
className="spacer bertical"
className="spacer vertical"
style={
Object {
"height": 5,
Expand Down Expand Up @@ -113,7 +113,7 @@ exports[`Storyshots Molecules/TaskCounter Toggleable 1`] = `
</div>
</div>
<div
className="spacer bertical"
className="spacer vertical"
style={
Object {
"height": 5,
Expand Down Expand Up @@ -160,7 +160,7 @@ exports[`Storyshots Molecules/TaskCounter Total 1`] = `
</div>
</div>
<div
className="spacer bertical"
className="spacer vertical"
style={
Object {
"height": 5,
Expand Down
2 changes: 1 addition & 1 deletion tokens/Token/components/FontWeight.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const FontWeight = ({ label, value, children }) => {

FontWeight.propTypes = {
label: PropTypes.string.isRequired,
value: PropTypes.string.isRequired,
value: PropTypes.number.isRequired,
children: PropTypes.string.isRequired,
}

Expand Down

0 comments on commit 3b5656e

Please sign in to comment.