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

@tds/core-heading

Package Overview
Dependencies
Maintainers
7
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tds/core-heading - npm Package Compare versions

Comparing version 1.1.11 to 1.2.0

14

__tests__/Heading.spec.jsx

@@ -45,2 +45,16 @@ import React from 'react'

it('renders as a span', () => {
const heading = doMount({ level: 'h4', tag: 'span' })
expect(heading).toHaveClassName('h4')
expect(heading).toHaveDisplayName('span')
})
it('renders as a div', () => {
const heading = doMount({ level: 'h4', tag: 'div' })
expect(heading).toHaveClassName('h4')
expect(heading).toHaveDisplayName('div')
})
it('renders a heading in the same tag as level if tag is not specified', () => {

@@ -47,0 +61,0 @@ const heading = doMount({ level: 'h4' })

@@ -6,2 +6,14 @@ # Change Log

# [1.2.0](https://github.com/telusdigital/tds/compare/@tds/core-heading@1.1.11...@tds/core-heading@1.2.0) (2019-03-28)
### Features
* **core-heading:** add div option to tag prop ([3090634](https://github.com/telusdigital/tds/commit/3090634))
* **core-heading:** add span option to tag prop ([22bd433](https://github.com/telusdigital/tds/commit/22bd433))
## [1.1.11](https://github.com/telusdigital/tds/compare/@tds/core-heading@1.1.10...@tds/core-heading@1.1.11) (2019-03-20)

@@ -8,0 +20,0 @@

2

dist/index.cjs.js

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

*/
tag: PropTypes.oneOf(['h1', 'h2', 'h3', 'h4']),
tag: PropTypes.oneOf(['h1', 'h2', 'h3', 'h4', 'div', 'span']),

@@ -183,0 +183,0 @@ /**

@@ -176,3 +176,3 @@ import React from 'react';

*/
tag: PropTypes.oneOf(['h1', 'h2', 'h3', 'h4']),
tag: PropTypes.oneOf(['h1', 'h2', 'h3', 'h4', 'div', 'span']),

@@ -179,0 +179,0 @@ /**

@@ -45,3 +45,3 @@ import React from 'react'

*/
tag: PropTypes.oneOf(['h1', 'h2', 'h3', 'h4']),
tag: PropTypes.oneOf(['h1', 'h2', 'h3', 'h4', 'div', 'span']),
/**

@@ -48,0 +48,0 @@ * Invert the text color to appear light on dark backgrounds.

{
"name": "@tds/core-heading",
"version": "1.1.11",
"version": "1.2.0",
"description": "Page headings",

@@ -35,3 +35,3 @@ "main": "index.cjs.js",

},
"gitHead": "196e6c4eabd01d8f21cfb4e37a223b04ee7f2ac0"
"gitHead": "75271399f62033f94090e64280329ed148b6ee2f"
}
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