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

@hixme-ui/text

Package Overview
Dependencies
Maintainers
3
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hixme-ui/text - npm Package Compare versions

Comparing version 1.10.0 to 1.11.0

20

lib/Text.js

@@ -6,3 +6,3 @@ 'use strict';

});
exports.Label = exports.LabelBase = exports.HyperLink = exports.TextLink = exports.Paragraph = undefined;
exports.Label = exports.LabelBase = exports.HyperLink = exports.TextLink = exports.TextDiv = exports.Paragraph = undefined;

@@ -35,2 +35,3 @@ var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');

var Paragraph = exports.Paragraph = _TextBase2.default.withComponent('p');
var TextDiv = exports.TextDiv = _TextBase2.default.withComponent('div');

@@ -45,5 +46,6 @@ var TextLink = exports.TextLink = _TextBase2.default.withComponent('a');

var a = _ref.a,
div = _ref.div,
label = _ref.label,
p = _ref.p,
label = _ref.label,
props = (0, _objectWithoutProperties3.default)(_ref, ['a', 'p', 'label']);
props = (0, _objectWithoutProperties3.default)(_ref, ['a', 'div', 'label', 'p']);

@@ -56,2 +58,4 @@ var Tag = _TextBase2.default;

Tag = Paragraph;
} else if (div) {
Tag = TextDiv;
} else if (label) {

@@ -69,11 +73,13 @@ Tag = Label;

a: _propTypes2.default.bool,
p: _propTypes2.default.bool,
div: _propTypes2.default.bool,
href: _propTypes2.default.string,
label: _propTypes2.default.bool,
href: _propTypes2.default.string
p: _propTypes2.default.bool
};
Text.defaultProps = {
a: false,
p: false,
div: false,
href: null,
label: false,
href: null
p: false
};

@@ -80,0 +86,0 @@

{
"name": "@hixme-ui/text",
"version": "1.10.0",
"version": "1.11.0",
"description": "hixme-ui text component. For all your communictation needs.",

@@ -45,3 +45,3 @@ "publishConfig": {

"devDependencies": {
"@hixme-ui/theme": "^1.10.0",
"@hixme-ui/theme": "^1.11.0",
"babel-cli": "^6.26.0",

@@ -86,3 +86,3 @@ "babel-core": "^6.26.0",

"dependencies": {
"@hixme-ui/theme-props": "^1.10.0",
"@hixme-ui/theme-props": "^1.11.0",
"prop-types": "^15.6.0",

@@ -89,0 +89,0 @@ "react": "^16.0.0",

@@ -6,2 +6,3 @@ import React from 'react'

export const Paragraph = TextBase.withComponent('p')
export const TextDiv = TextBase.withComponent('div')

@@ -22,4 +23,5 @@ export const TextLink = TextBase.withComponent('a')

a,
div,
label,
p,
label,
...props

@@ -33,2 +35,4 @@ }) => {

Tag = Paragraph
} else if (div) {
Tag = TextDiv
} else if (label) {

@@ -46,11 +50,13 @@ Tag = Label

a: PropTypes.bool,
div: PropTypes.bool,
href: PropTypes.string,
label: PropTypes.bool,
p: PropTypes.bool,
label: PropTypes.bool,
href: PropTypes.string,
}
Text.defaultProps = {
a: false,
div: false,
href: null,
label: false,
p: false,
label: false,
href: null,
}

@@ -57,0 +63,0 @@

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