@govuk-react/input
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 Input from '.'; | ||
import ReadMe from '../README.md'; | ||
var stories = storiesOf('Form/Input', module); | ||
stories.addDecorator(WithDocsCustom(ReadMe)); | ||
stories.addDecorator(withDocsCustom(ReadMe)); | ||
stories.add('Component default', function () { | ||
@@ -9,0 +9,0 @@ return React.createElement(Input, { |
import React from 'react'; | ||
import { mount } from 'enzyme'; | ||
import { ORANGE } from 'govuk-colours'; | ||
import Input from './'; | ||
import Input from '.'; | ||
describe('Input', function () { | ||
@@ -6,0 +6,0 @@ var wrapper = React.createElement(Input, { |
@@ -16,3 +16,3 @@ "use strict"; | ||
var stories = (0, _react2.storiesOf)('Form/Input', 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, { |
@@ -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/input", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"dependencies": { | ||
"@govuk-react/constants": "^0.7.0", | ||
"@govuk-react/lib": "^0.7.0", | ||
"@govuk-react/constants": "^0.7.1", | ||
"@govuk-react/lib": "^0.7.1", | ||
"govuk-colours": "^1.0.3" | ||
@@ -8,0 +8,0 @@ }, |
@@ -42,3 +42,3 @@ import React from 'react'; | ||
}), | ||
spacing.withWhiteSpace({ marginBottom: 0 }), | ||
spacing.withWhiteSpace({ marginBottom: 0 }) | ||
); | ||
@@ -45,0 +45,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 Input from '.'; | ||
stories.addDecorator(WithDocsCustom(ReadMe)); | ||
stories.addDecorator(withDocsCustom(ReadMe)); | ||
stories.add('Component default', () => ( | ||
<Input type="text" /> | ||
)); | ||
stories.add('Component default', () => <Input type="text" />); |
@@ -5,3 +5,3 @@ import React from 'react'; | ||
import Input from './'; | ||
import Input from '.'; | ||
@@ -8,0 +8,0 @@ describe('Input', () => { |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32554
305
Updated@govuk-react/lib@^0.7.1