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

@govuk-react/label

Package Overview
Dependencies
Maintainers
2
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@govuk-react/label - npm Package Compare versions

Comparing version 0.1.25 to 0.1.26

20

es/index.js
var _glamorous$label;
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
// https://github.com/alphagov/govuk-frontend/tree/master/src/components/
import glamorous from 'glamorous';
import React from 'react';
import PropTypes from 'prop-types';
import { ERROR_COLOUR } from 'govuk-colours';

@@ -29,7 +34,18 @@ import { MEDIA_QUERIES, SITE_WIDTH, SPACING } from '@govuk-react/constants';

var Label = function Label(props) {
return React.createElement(GLabel, props);
var Label = function Label(_ref2) {
var className = _ref2.className,
props = _objectWithoutProperties(_ref2, ["className"]);
return React.createElement(GLabel, _extends({
className: className
}, props));
};
Label.defaultProps = {
className: undefined
};
Label.propTypes = process.env.NODE_ENV !== "production" ? {
className: PropTypes.string
} : {};
export default Label;
//# sourceMappingURL=index.js.map

@@ -10,2 +10,4 @@ "use strict";

var _propTypes = _interopRequireDefault(require("prop-types"));
var _govukColours = require("govuk-colours");

@@ -19,2 +21,6 @@

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
var GLabel = _glamorous.default.label((_glamorous$label = {

@@ -41,6 +47,17 @@ display: 'flex',

var Label = function Label(props) {
return _react.default.createElement(GLabel, props);
var Label = function Label(_ref2) {
var className = _ref2.className,
props = _objectWithoutProperties(_ref2, ["className"]);
return _react.default.createElement(GLabel, _extends({
className: className
}, props));
};
Label.defaultProps = {
className: undefined
};
Label.propTypes = process.env.NODE_ENV !== "production" ? {
className: _propTypes.default.string
} : {};
var _default = Label;

@@ -47,0 +64,0 @@ exports.default = _default;

6

package.json
{
"name": "@govuk-react/label",
"version": "0.1.25",
"version": "0.1.26",
"dependencies": {
"@govuk-react/constants": "^0.1.21",
"@govuk-react/constants": "^0.1.26",
"govuk-colours": "^1.0.3"

@@ -15,3 +15,3 @@ },

"@babel/cli": "^7.0.0-beta.40",
"@govuk-react/api-docs": "^0.1.25",
"@govuk-react/api-docs": "^0.1.26",
"@storybook/addon-actions": "^3.3.14",

@@ -18,0 +18,0 @@ "@storybook/react": "^3.3.14",

@@ -5,2 +5,3 @@ // https://github.com/alphagov/govuk-frontend/tree/master/src/components/

import React from 'react';
import PropTypes from 'prop-types';

@@ -32,4 +33,12 @@ import { ERROR_COLOUR } from 'govuk-colours';

const Label = props => <GLabel {...props} />;
const Label = ({ className, ...props }) => (<GLabel className={className} {...props} />);
Label.defaultProps = {
className: undefined,
};
Label.propTypes = {
className: PropTypes.string,
};
export default Label;

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