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

@hig/text-link

Package Overview
Dependencies
Maintainers
3
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hig/text-link - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

20

build/index.es.js

@@ -1607,7 +1607,8 @@ import React, { Component } from 'react';

function stylesheet(props, themeData) {
var hasHover = props.hasHover,
var customStylesheet = props.stylesheet,
hasHover = props.hasHover,
hasFocus = props.hasFocus;
return _extends({
var styles = _extends({
// from base typography-medium

@@ -1637,2 +1638,4 @@ fontWeight: themeData["typography.body.fontWeight"],

} : {});
return customStylesheet ? customStylesheet(styles, props, themeData) : styles;
}

@@ -1712,4 +1715,6 @@

handleMouseUp = _ref2.onMouseUp;
var customStylesheet = _this2.props.stylesheet;
var styles = stylesheet(_extends$1({
stylesheet: customStylesheet,
hasFocus: hasFocus,

@@ -1779,2 +1784,6 @@ hasHover: hasHover,

onMouseUp: PropTypes.func,
/**
* Adds custom/overriding styles
*/
stylesheet: PropTypes.func,
/** Specify the anchor tag's target */

@@ -1857,2 +1866,9 @@ target: PropTypes.oneOf(availableTargets)

},
"stylesheet": {
"type": {
"name": "func"
},
"required": false,
"description": "Adds custom/overriding styles"
},
"target": {

@@ -1859,0 +1875,0 @@ "type": {

@@ -1614,7 +1614,8 @@ 'use strict';

function stylesheet(props, themeData) {
var hasHover = props.hasHover,
var customStylesheet = props.stylesheet,
hasHover = props.hasHover,
hasFocus = props.hasFocus;
return _extends({
var styles = _extends({
// from base typography-medium

@@ -1644,2 +1645,4 @@ fontWeight: themeData["typography.body.fontWeight"],

} : {});
return customStylesheet ? customStylesheet(styles, props, themeData) : styles;
}

@@ -1719,4 +1722,6 @@

handleMouseUp = _ref2.onMouseUp;
var customStylesheet = _this2.props.stylesheet;
var styles = stylesheet(_extends$1({
stylesheet: customStylesheet,
hasFocus: hasFocus,

@@ -1786,2 +1791,6 @@ hasHover: hasHover,

onMouseUp: PropTypes.func,
/**
* Adds custom/overriding styles
*/
stylesheet: PropTypes.func,
/** Specify the anchor tag's target */

@@ -1864,2 +1873,9 @@ target: PropTypes.oneOf(availableTargets)

},
"stylesheet": {
"type": {
"name": "func"
},
"required": false,
"description": "Adds custom/overriding styles"
},
"target": {

@@ -1866,0 +1882,0 @@ "type": {

@@ -0,1 +1,8 @@

# [@hig/text-link-v1.2.0](https://github.com/Autodesk/hig/compare/@hig/text-link@1.1.1...@hig/text-link@1.2.0) (2020-09-09)
### Features
* add stylesheet prop for TextLink ([4507a2c](https://github.com/Autodesk/hig/commit/4507a2c))
# [@hig/text-link-v1.1.1](https://github.com/Autodesk/hig/compare/@hig/text-link@1.1.0...@hig/text-link@1.1.1) (2020-05-12)

@@ -2,0 +9,0 @@

4

package.json
{
"name": "@hig/text-link",
"version": "1.1.1",
"version": "1.2.0",
"description": "HIG Text Link",

@@ -26,3 +26,3 @@ "author": "Autodesk Inc.",

"@hig/theme-context": "^3.0.0",
"@hig/theme-data": "^2.16.0",
"@hig/theme-data": "^2.17.0",
"react": "^15.4.1 || ^16.3.2"

@@ -29,0 +29,0 @@ },

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