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

@govuk-react/label-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/label-text - npm Package Compare versions

Comparing version 0.2.2 to 0.2.4

6

es/index.js
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

4

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

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