@govuk-react/label-text
Advanced tools
Comparing version 0.2.2 to 0.2.4
var _styled; | ||
// https://github.com/alphagov/govuk-frontend/tree/master/src/components/ | ||
import styled from 'react-emotion'; | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { BLACK } from 'govuk-colours'; | ||
@@ -45,2 +45,6 @@ import { withWhiteSpace } from '@govuk-react/hoc'; | ||
LabelText.propTypes = process.env.NODE_ENV !== "production" ? { | ||
/** Text for the label */ | ||
children: PropTypes.node.isRequired | ||
} : {}; | ||
export default withWhiteSpace({ | ||
@@ -47,0 +51,0 @@ marginBottom: 0 |
@@ -10,2 +10,4 @@ "use strict"; | ||
var _propTypes = _interopRequireDefault(require("prop-types")); | ||
var _govukColours = require("govuk-colours"); | ||
@@ -57,2 +59,7 @@ | ||
LabelText.propTypes = process.env.NODE_ENV !== "production" ? { | ||
/** Text for the label */ | ||
children: _propTypes.default.node.isRequired | ||
} : {}; | ||
var _default = (0, _hoc.withWhiteSpace)({ | ||
@@ -59,0 +66,0 @@ marginBottom: 0 |
{ | ||
"name": "@govuk-react/label-text", | ||
"version": "0.2.2", | ||
"version": "0.2.4", | ||
"dependencies": { | ||
"@govuk-react/constants": "^0.2.2", | ||
"@govuk-react/hoc": "^0.2.2", | ||
"@govuk-react/hoc": "^0.2.4", | ||
"govuk-colours": "^1.0.3" | ||
@@ -8,0 +8,0 @@ }, |
@@ -20,2 +20,7 @@ LabelText | ||
### Properties | ||
Prop | Required | Default | Type | Description | ||
:--- | :------- | :------ | :--- | :---------- | ||
`children` | true | | node | Text for the label | ||
@@ -1,5 +0,4 @@ | ||
// https://github.com/alphagov/govuk-frontend/tree/master/src/components/ | ||
import styled from 'react-emotion'; | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { BLACK } from 'govuk-colours'; | ||
@@ -51,2 +50,7 @@ import { withWhiteSpace } from '@govuk-react/hoc'; | ||
LabelText.propTypes = { | ||
/** Text for the label */ | ||
children: PropTypes.node.isRequired, | ||
}; | ||
export default withWhiteSpace({ marginBottom: 0 })(LabelText); |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
24574
275
26
3
Updated@govuk-react/hoc@^0.2.4