@hashicorp/hashi-alert-banner
Advanced tools
Comparing version 1.2.3-fonts.0 to 1.2.3
@@ -114,3 +114,3 @@ 'use strict'; | ||
'div', | ||
{ 'class': 'tag' }, | ||
{ className: 'tag g-type-label' }, | ||
preact.h( | ||
@@ -124,3 +124,3 @@ 'span', | ||
'div', | ||
{ 'class': 'text' }, | ||
{ className: 'text g-type-body-small-strong' }, | ||
preact.h( | ||
@@ -137,13 +137,13 @@ 'span', | ||
) | ||
), | ||
preact.h( | ||
'span', | ||
{ | ||
'class': 'close', | ||
onClick: function onClick() { | ||
_this2.onClose(); | ||
} | ||
}, | ||
preact.h(CloseIcon, null) | ||
) | ||
), | ||
preact.h( | ||
'span', | ||
{ | ||
'class': 'close', | ||
onClick: function onClick() { | ||
_this2.onClose(); | ||
} | ||
}, | ||
preact.h(CloseIcon, null) | ||
) | ||
@@ -150,0 +150,0 @@ ); |
20
index.js
@@ -40,18 +40,18 @@ import { h, Component } from 'preact' | ||
<div class="g-container"> | ||
<div class="tag"> | ||
<div className="tag g-type-label"> | ||
<span>{tag}</span> | ||
</div> | ||
<div class="text"> | ||
<div className="text g-type-body-small-strong"> | ||
<span>{text}</span>{' '} | ||
{link_text && <span class="link-text">{link_text}</span>} | ||
</div> | ||
<span | ||
class="close" | ||
onClick={() => { | ||
this.onClose() | ||
}} | ||
> | ||
<CloseIcon /> | ||
</span> | ||
</div> | ||
<span | ||
class="close" | ||
onClick={() => { | ||
this.onClose() | ||
}} | ||
> | ||
<CloseIcon /> | ||
</span> | ||
</div> | ||
@@ -58,0 +58,0 @@ ) |
{ | ||
"name": "@hashicorp/hashi-alert-banner", | ||
"description": "alert banner with text and a link", | ||
"version": "1.2.3-fonts.0", | ||
"version": "1.2.3", | ||
"main": "dist", | ||
"peerDependencies": { | ||
"@hashicorp/hashi-global-styles": "fonts", | ||
"@hashicorp/hashi-global-styles": "^2.0.0", | ||
"js-cookie": "2.2.0", | ||
@@ -18,3 +18,3 @@ "preact": "^8.2.7", | ||
}, | ||
"gitHead": "c1a627e45f3a8773fe95eb71961eaabcf5388e4a" | ||
"gitHead": "02692d1903470be9d62f32459d751c6d17cbff65" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
21748
718
1