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

@hig/typography

Package Overview
Dependencies
Maintainers
3
Versions
255
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hig/typography - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

17

build/index.es.js

@@ -87,3 +87,4 @@ import React, { Component } from 'react';

elementType = _props.elementType,
otherProps = _objectWithoutProperties(_props, ["align", "children", "fontWeight", "variant", "stylesheet", "elementType"]);
typographyRef = _props.typographyRef,
otherProps = _objectWithoutProperties(_props, ["align", "children", "fontWeight", "variant", "stylesheet", "elementType", "typographyRef"]);

@@ -111,3 +112,4 @@ var className = otherProps.className;

_extends({}, otherProps, {
className: cx(css(styles.typography), className)
className: cx(css(styles.typography), className),
ref: typographyRef
}),

@@ -146,2 +148,6 @@ children

/**
* A callback ref that gets passed to the root HTML element
*/
typographyRef: PropTypes.func,
/**
* Indicates the initial Typography style

@@ -191,2 +197,9 @@ */

},
"typographyRef": {
"type": {
"name": "func"
},
"required": false,
"description": "A callback ref that gets passed to the root HTML element"
},
"variant": {

@@ -193,0 +206,0 @@ "type": {

@@ -94,3 +94,4 @@ 'use strict';

elementType = _props.elementType,
otherProps = _objectWithoutProperties(_props, ["align", "children", "fontWeight", "variant", "stylesheet", "elementType"]);
typographyRef = _props.typographyRef,
otherProps = _objectWithoutProperties(_props, ["align", "children", "fontWeight", "variant", "stylesheet", "elementType", "typographyRef"]);

@@ -118,3 +119,4 @@ var className = otherProps.className;

_extends({}, otherProps, {
className: emotion.cx(emotion.css(styles.typography), className)
className: emotion.cx(emotion.css(styles.typography), className),
ref: typographyRef
}),

@@ -153,2 +155,6 @@ children

/**
* A callback ref that gets passed to the root HTML element
*/
typographyRef: PropTypes.func,
/**
* Indicates the initial Typography style

@@ -198,2 +204,9 @@ */

},
"typographyRef": {
"type": {
"name": "func"
},
"required": false,
"description": "A callback ref that gets passed to the root HTML element"
},
"variant": {

@@ -200,0 +213,0 @@ "type": {

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

# [@hig/typography-v1.2.0](https://github.com/Autodesk/hig/compare/@hig/typography@1.1.0...@hig/typography@1.2.0) (2021-01-15)
### Features
* pass down a callback ref to root element ([1746795](https://github.com/Autodesk/hig/commit/1746795))
# [@hig/typography-v1.1.0](https://github.com/Autodesk/hig/compare/@hig/typography@1.0.4...@hig/typography@1.1.0) (2020-10-13)

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

6

package.json
{
"name": "@hig/typography",
"version": "1.1.0",
"version": "1.2.0",
"description": "HIG Typography components",

@@ -32,4 +32,4 @@ "author": "Autodesk Inc.",

"peerDependencies": {
"@hig/theme-context": "^3.0.0",
"@hig/theme-data": "^2.18.0",
"@hig/theme-context": "^3.0.1",
"@hig/theme-data": "^2.19.2",
"react": "^15.4.1 || ^16.3.2"

@@ -36,0 +36,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