@govuk-react/hint-text
Advanced tools
Comparing version 0.7.1 to 0.8.0
@@ -8,3 +8,6 @@ // https://github.com/alphagov/govuk-frontend/tree/master/src/components/ | ||
import { spacing, typography } from '@govuk-react/lib'; | ||
var StyledHint = styled('span')(typography.font({ | ||
var StyledHint = styled('span').withConfig({ | ||
displayName: "src__StyledHint", | ||
componentId: "sc-1qn4br2-0" | ||
})(typography.font({ | ||
size: 19 | ||
@@ -34,3 +37,3 @@ }), { | ||
var HintText = function HintText(props) { | ||
return React.createElement(StyledHint, props); | ||
return /*#__PURE__*/React.createElement(StyledHint, props); | ||
}; | ||
@@ -37,0 +40,0 @@ |
@@ -9,4 +9,4 @@ import React from 'react'; | ||
stories.add('Component default', function () { | ||
return React.createElement(HintText, null, "Example"); | ||
return /*#__PURE__*/React.createElement(HintText, null, "Example"); | ||
}); | ||
//# sourceMappingURL=stories.js.map |
@@ -7,3 +7,3 @@ import React from 'react'; | ||
var example = 'example'; | ||
var wrapper = React.createElement(HintText, null, example); | ||
var wrapper = /*#__PURE__*/React.createElement(HintText, null, example); | ||
it('renders without crashing', function () { | ||
@@ -10,0 +10,0 @@ var div = document.createElement('div'); |
"use strict"; | ||
exports.__esModule = true; | ||
exports.default = void 0; | ||
exports["default"] = void 0; | ||
@@ -18,6 +18,9 @@ var _styledComponents = _interopRequireDefault(require("styled-components")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
// https://github.com/alphagov/govuk-frontend/tree/master/src/components/ | ||
var StyledHint = (0, _styledComponents.default)('span')(_lib.typography.font({ | ||
var StyledHint = (0, _styledComponents["default"])('span').withConfig({ | ||
displayName: "src__StyledHint", | ||
componentId: "sc-1qn4br2-0" | ||
})(_lib.typography.font({ | ||
size: 19 | ||
@@ -47,8 +50,8 @@ }), { | ||
var HintText = function HintText(props) { | ||
return _react.default.createElement(StyledHint, props); | ||
return /*#__PURE__*/_react["default"].createElement(StyledHint, props); | ||
}; | ||
var _default = HintText; | ||
exports.default = _default; | ||
exports["default"] = _default; | ||
module.exports = exports.default; | ||
//# sourceMappingURL=index.js.map |
@@ -13,9 +13,9 @@ "use strict"; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
var stories = (0, _react2.storiesOf)('Typography/HintText', module); | ||
stories.addDecorator((0, _storybookComponents.withDocsCustom)(_README.default)); | ||
stories.addDecorator((0, _storybookComponents.withDocsCustom)(_README["default"])); | ||
stories.add('Component default', function () { | ||
return _react.default.createElement(_.default, null, "Example"); | ||
return /*#__PURE__*/_react["default"].createElement(_["default"], null, "Example"); | ||
}); | ||
//# sourceMappingURL=stories.js.map |
@@ -11,3 +11,3 @@ "use strict"; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -17,3 +17,3 @@ describe('HintText', function () { | ||
var wrapper = _react.default.createElement(_.default, null, example); | ||
var wrapper = /*#__PURE__*/_react["default"].createElement(_["default"], null, example); | ||
@@ -23,3 +23,3 @@ it('renders without crashing', function () { | ||
_reactDom.default.render(wrapper, div); | ||
_reactDom["default"].render(wrapper, div); | ||
}); | ||
@@ -26,0 +26,0 @@ it('matches wrapper snapshot', function () { |
{ | ||
"name": "@govuk-react/hint-text", | ||
"version": "0.7.1", | ||
"version": "0.8.0", | ||
"dependencies": { | ||
"@govuk-react/constants": "^0.7.1", | ||
"@govuk-react/lib": "^0.7.1", | ||
"govuk-colours": "^1.0.3" | ||
"@govuk-react/constants": "^0.8.0", | ||
"@govuk-react/lib": "^0.8.0", | ||
"govuk-colours": "^1.1.0" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=16.2.0", | ||
"styled-components": ">=4" | ||
"styled-components": ">=5.1" | ||
}, | ||
@@ -13,0 +13,0 @@ "scripts": { |
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
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
193
17386
+ Added@govuk-react/constants@0.8.0(transitive)
+ Added@govuk-react/lib@0.8.0(transitive)
- Removed@govuk-react/constants@0.7.1(transitive)
- Removed@govuk-react/lib@0.7.1(transitive)
Updated@govuk-react/lib@^0.8.0
Updatedgovuk-colours@^1.1.0