@govuk-react/label-text
Advanced tools
Comparing version 0.7.0 to 0.7.1
import React from 'react'; | ||
import { storiesOf } from '@storybook/react'; | ||
import { WithDocsCustom } from '@govuk-react/storybook-components'; | ||
import { withDocsCustom } from '@govuk-react/storybook-components'; | ||
import LabelText from '.'; | ||
import ReadMe from '../README.md'; | ||
var stories = storiesOf('Form/LabelText', module); | ||
stories.addDecorator(WithDocsCustom(ReadMe)); | ||
stories.addDecorator(withDocsCustom(ReadMe)); | ||
stories.add('Component default', function () { | ||
@@ -9,0 +9,0 @@ return React.createElement(LabelText, null, "Example"); |
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import { mount } from 'enzyme'; | ||
import LabelText from './'; | ||
import LabelText from '.'; | ||
describe('LabelText', function () { | ||
@@ -6,0 +6,0 @@ var props; |
@@ -16,3 +16,3 @@ "use strict"; | ||
var stories = (0, _react2.storiesOf)('Form/LabelText', module); | ||
stories.addDecorator((0, _storybookComponents.WithDocsCustom)(_README.default)); | ||
stories.addDecorator((0, _storybookComponents.withDocsCustom)(_README.default)); | ||
stories.add('Component default', function () { | ||
@@ -19,0 +19,0 @@ return _react.default.createElement(_.default, null, "Example"); |
@@ -9,3 +9,3 @@ "use strict"; | ||
var _ = _interopRequireDefault(require("./")); | ||
var _ = _interopRequireDefault(require(".")); | ||
@@ -12,0 +12,0 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
{ | ||
"name": "@govuk-react/label-text", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"dependencies": { | ||
"@govuk-react/lib": "^0.7.0" | ||
"@govuk-react/lib": "^0.7.1" | ||
}, | ||
@@ -7,0 +7,0 @@ "peerDependencies": { |
@@ -21,3 +21,3 @@ import styled from 'styled-components'; | ||
}), | ||
spacing.withWhiteSpace({ marginBottom: 0 }), | ||
spacing.withWhiteSpace({ marginBottom: 0 }) | ||
); | ||
@@ -24,0 +24,0 @@ |
import React from 'react'; | ||
import { storiesOf } from '@storybook/react'; | ||
import { WithDocsCustom } from '@govuk-react/storybook-components'; | ||
import { withDocsCustom } from '@govuk-react/storybook-components'; | ||
@@ -10,6 +10,4 @@ import LabelText from '.'; | ||
stories.addDecorator(WithDocsCustom(ReadMe)); | ||
stories.addDecorator(withDocsCustom(ReadMe)); | ||
stories.add('Component default', () => ( | ||
<LabelText>Example</LabelText> | ||
)); | ||
stories.add('Component default', () => <LabelText>Example</LabelText>); |
@@ -5,3 +5,3 @@ import React from 'react'; | ||
import LabelText from './'; | ||
import LabelText from '.'; | ||
@@ -8,0 +8,0 @@ describe('LabelText', () => { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
23627
240
Updated@govuk-react/lib@^0.7.1