@umbraco-ui/uui-box
Advanced tools
Comparing version 1.7.0-rc.0 to 1.7.0
@@ -5,3 +5,3 @@ import { css, LitElement } from 'lit'; | ||
import { UUITextStyles } from '@umbraco-ui/uui-css/lib'; | ||
import { literal, unsafeStatic, html } from 'lit/static-html.js'; | ||
import { html, unsafeStatic } from 'lit/static-html.js'; | ||
@@ -26,3 +26,3 @@ var __defProp = Object.defineProperty; | ||
this.headline = null; | ||
this._headlineVariantTag = literal`h5`; | ||
this._headlineVariantTag = "h5"; | ||
this._headlineSlotHasContent = false; | ||
@@ -42,8 +42,7 @@ this._headlineSlotChanged = (e) => { | ||
set headlineVariant(value) { | ||
if (!value) { | ||
this._headlineVariantTag = literal`h5`; | ||
} else { | ||
this._headlineVariantTag = unsafeStatic(value); | ||
} | ||
this._headlineVariantTag = value; | ||
} | ||
get headlineVariant() { | ||
return this._headlineVariantTag; | ||
} | ||
/** | ||
@@ -60,3 +59,3 @@ * Renders a header with the `header`-slot, `header-actions`-slot, headline and `headline`-slot within | ||
style=${this._headerSlotHasContent || this._headlineSlotHasContent || this._headerActionsSlotHasContent || this.headline !== null ? "" : "display: none"}> | ||
<${this._headlineVariantTag} | ||
<${unsafeStatic(this._headlineVariantTag)} | ||
id="headline" | ||
@@ -67,3 +66,3 @@ class="uui-h5" | ||
<slot name="headline" @slotchange=${this._headlineSlotChanged}></slot> | ||
</${this._headlineVariantTag}> | ||
</${unsafeStatic(this._headlineVariantTag)}> | ||
<slot name="header" @slotchange=${this._headerSlotChanged}></slot> | ||
@@ -70,0 +69,0 @@ <slot name="header-actions" @slotchange=${this._headerActionsSlotChanged}></slot> |
@@ -30,2 +30,3 @@ import { LitElement } from 'lit'; | ||
set headlineVariant(value: UUIInterfaceHeading); | ||
get headlineVariant(): UUIInterfaceHeading; | ||
private _headlineVariantTag; | ||
@@ -32,0 +33,0 @@ private _headlineSlotHasContent; |
{ | ||
"name": "@umbraco-ui/uui-box", | ||
"version": "1.7.0-rc.0", | ||
"version": "1.7.0", | ||
"license": "MIT", | ||
@@ -32,4 +32,4 @@ "description": "A box web component for grouping elements", | ||
"dependencies": { | ||
"@umbraco-ui/uui-base": "1.7.0-rc.0", | ||
"@umbraco-ui/uui-css": "1.7.0-rc.0" | ||
"@umbraco-ui/uui-base": "1.7.0", | ||
"@umbraco-ui/uui-css": "1.7.0" | ||
}, | ||
@@ -44,3 +44,3 @@ "scripts": { | ||
}, | ||
"gitHead": "a7166e62b37b609e74b96821d397c694a5f42458" | ||
"gitHead": "1f139dc2b4ed9ba7b9fb1af5e934589d7c4d8f06" | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
12264
1
+ Added@umbraco-ui/uui-base@1.7.0(transitive)
+ Added@umbraco-ui/uui-css@1.7.0(transitive)
- Removed@umbraco-ui/uui-base@1.7.0-rc.0(transitive)
- Removed@umbraco-ui/uui-css@1.7.0-rc.0(transitive)
Updated@umbraco-ui/uui-base@1.7.0
Updated@umbraco-ui/uui-css@1.7.0