@govuk-react/label-text
Advanced tools
Comparing version 0.7.1 to 0.8.0
@@ -8,3 +8,6 @@ import styled from 'styled-components'; | ||
var StyledLabelText = styled('span')(typography.font({ | ||
var StyledLabelText = styled('span').withConfig({ | ||
displayName: "src__StyledLabelText", | ||
componentId: "sc-12l0n4z-0" | ||
})(typography.font({ | ||
size: 19 | ||
@@ -38,3 +41,3 @@ }), typography.textColour, { | ||
var LabelText = function LabelText(props) { | ||
return React.createElement(StyledLabelText, props); | ||
return /*#__PURE__*/React.createElement(StyledLabelText, props); | ||
}; | ||
@@ -41,0 +44,0 @@ |
@@ -9,4 +9,4 @@ import React from 'react'; | ||
stories.add('Component default', function () { | ||
return React.createElement(LabelText, null, "Example"); | ||
return /*#__PURE__*/React.createElement(LabelText, null, "Example"); | ||
}); | ||
//# sourceMappingURL=stories.js.map |
@@ -8,6 +8,6 @@ import React from 'react'; | ||
var example = 'example'; | ||
var wrapper = React.createElement(LabelText, { | ||
var wrapper = /*#__PURE__*/React.createElement(LabelText, { | ||
error: example | ||
}, example); | ||
var noError = React.createElement(LabelText, null, example); | ||
var noError = /*#__PURE__*/React.createElement(LabelText, null, example); | ||
beforeEach(function () { | ||
@@ -14,0 +14,0 @@ props = { |
"use strict"; | ||
exports.__esModule = true; | ||
exports.default = void 0; | ||
exports["default"] = void 0; | ||
@@ -14,3 +14,3 @@ 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 }; } | ||
@@ -20,3 +20,6 @@ // TODO should `LabelText` and `Label` be consolidated? | ||
// https://github.com/alphagov/govuk-frontend/blob/master/src/components/label/_label.scss | ||
var StyledLabelText = (0, _styledComponents.default)('span')(_lib.typography.font({ | ||
var StyledLabelText = (0, _styledComponents["default"])('span').withConfig({ | ||
displayName: "src__StyledLabelText", | ||
componentId: "sc-12l0n4z-0" | ||
})(_lib.typography.font({ | ||
size: 19 | ||
@@ -50,8 +53,8 @@ }), _lib.typography.textColour, { | ||
var LabelText = function LabelText(props) { | ||
return _react.default.createElement(StyledLabelText, props); | ||
return /*#__PURE__*/_react["default"].createElement(StyledLabelText, props); | ||
}; | ||
var _default = LabelText; | ||
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)('Form/LabelText', 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 }; } | ||
@@ -18,7 +18,7 @@ describe('LabelText', function () { | ||
var wrapper = _react.default.createElement(_.default, { | ||
var wrapper = /*#__PURE__*/_react["default"].createElement(_["default"], { | ||
error: example | ||
}, example); | ||
var noError = _react.default.createElement(_.default, null, example); | ||
var noError = /*#__PURE__*/_react["default"].createElement(_["default"], null, example); | ||
@@ -33,3 +33,3 @@ beforeEach(function () { | ||
_reactDom.default.render(wrapper, div); | ||
_reactDom["default"].render(wrapper, div); | ||
}); | ||
@@ -36,0 +36,0 @@ it('passes `props.children` to the rendered `wrapper` as `children`', function () { |
{ | ||
"name": "@govuk-react/label-text", | ||
"version": "0.7.1", | ||
"version": "0.8.0", | ||
"dependencies": { | ||
"@govuk-react/lib": "^0.7.1" | ||
"@govuk-react/lib": "^0.8.0" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=16.2.0", | ||
"styled-components": ">=4" | ||
"styled-components": ">=5.1" | ||
}, | ||
@@ -11,0 +11,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
246
21577
+ 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