@govuk-react/hint-text
Advanced tools
Comparing version 0.2.2 to 0.2.4
@@ -6,2 +6,3 @@ var _styled; | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import * as COLOUR from 'govuk-colours'; | ||
@@ -41,2 +42,6 @@ import { withWhiteSpace } from '@govuk-react/hoc'; | ||
HintText.propTypes = process.env.NODE_ENV !== "production" ? { | ||
/** Text for the hint */ | ||
children: PropTypes.node.isRequired | ||
} : {}; | ||
export default withWhiteSpace({ | ||
@@ -43,0 +48,0 @@ marginBottom: 0 |
@@ -10,2 +10,4 @@ "use strict"; | ||
var _propTypes = _interopRequireDefault(require("prop-types")); | ||
var COLOUR = _interopRequireWildcard(require("govuk-colours")); | ||
@@ -54,2 +56,7 @@ | ||
HintText.propTypes = process.env.NODE_ENV !== "production" ? { | ||
/** Text for the hint */ | ||
children: _propTypes.default.node.isRequired | ||
} : {}; | ||
var _default = (0, _hoc.withWhiteSpace)({ | ||
@@ -56,0 +63,0 @@ marginBottom: 0 |
{ | ||
"name": "@govuk-react/hint-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 @@ }, |
@@ -12,3 +12,2 @@ HintText | ||
Simple | ||
@@ -22,2 +21,7 @@ ```jsx | ||
### Properties | ||
Prop | Required | Default | Type | Description | ||
:--- | :------- | :------ | :--- | :---------- | ||
`children` | true | | node | Text for the hint | ||
@@ -5,2 +5,3 @@ // https://github.com/alphagov/govuk-frontend/tree/master/src/components/ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import * as COLOUR from 'govuk-colours'; | ||
@@ -46,2 +47,7 @@ import { withWhiteSpace } from '@govuk-react/hoc'; | ||
HintText.propTypes = { | ||
/** Text for the hint */ | ||
children: PropTypes.node.isRequired, | ||
}; | ||
export default withWhiteSpace({ marginBottom: 0 })(HintText); |
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
20442
220
26
3
Updated@govuk-react/hoc@^0.2.4