Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@govuk-react/hint-text

Package Overview
Dependencies
Maintainers
5
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@govuk-react/hint-text - npm Package Compare versions

Comparing version 0.2.2 to 0.2.4

5

es/index.js

@@ -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

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc