Comparing version 0.2.3 to 0.2.4
@@ -67,6 +67,9 @@ 'use strict'; | ||
if (isNaN(this.minSize)) { | ||
this.minSize = this.fontSize; | ||
this.minSize = 0; | ||
} | ||
this.computedStyle = window.getComputedStyle(this.host); | ||
this.fontSize = Number(this.computedStyle.fontSize.replace('px', '')); | ||
if (this.minSize === 0) { | ||
this.minSize = this.fontSize; | ||
} | ||
if (this.minSize > this.maxSize) { | ||
@@ -84,3 +87,3 @@ this.maxSize = this.minSize; | ||
render() { | ||
return (index.h(index.Host, { key: 'a481ea1f996d1da4b4bf77b331dcdf9908d76373' }, index.h("slot", { key: '7fd70a27be055a44528e307c8af8e8d8e4b85db7' }))); | ||
return (index.h(index.Host, { key: '17bdf3b0b4e2f5a16da9e94e2bf3f62bbe2f1773' }, index.h("slot", { key: 'bc404ad774f1396550f4fa380ecfb246c8082f63' }))); | ||
} | ||
@@ -87,0 +90,0 @@ get host() { return index.getElement(this); } |
@@ -58,6 +58,9 @@ import { Host, h } from "@stencil/core"; | ||
if (isNaN(this.minSize)) { | ||
this.minSize = this.fontSize; | ||
this.minSize = 0; | ||
} | ||
this.computedStyle = window.getComputedStyle(this.host); | ||
this.fontSize = Number(this.computedStyle.fontSize.replace('px', '')); | ||
if (this.minSize === 0) { | ||
this.minSize = this.fontSize; | ||
} | ||
if (this.minSize > this.maxSize) { | ||
@@ -75,3 +78,3 @@ this.maxSize = this.minSize; | ||
render() { | ||
return (h(Host, { key: 'a481ea1f996d1da4b4bf77b331dcdf9908d76373' }, h("slot", { key: '7fd70a27be055a44528e307c8af8e8d8e4b85db7' }))); | ||
return (h(Host, { key: '17bdf3b0b4e2f5a16da9e94e2bf3f62bbe2f1773' }, h("slot", { key: 'bc404ad774f1396550f4fa380ecfb246c8082f63' }))); | ||
} | ||
@@ -78,0 +81,0 @@ static get is() { return "sui-flextext"; } |
@@ -63,6 +63,9 @@ import { r as registerInstance, h, H as Host, g as getElement } from './index-eb54f0e7.js'; | ||
if (isNaN(this.minSize)) { | ||
this.minSize = this.fontSize; | ||
this.minSize = 0; | ||
} | ||
this.computedStyle = window.getComputedStyle(this.host); | ||
this.fontSize = Number(this.computedStyle.fontSize.replace('px', '')); | ||
if (this.minSize === 0) { | ||
this.minSize = this.fontSize; | ||
} | ||
if (this.minSize > this.maxSize) { | ||
@@ -80,3 +83,3 @@ this.maxSize = this.minSize; | ||
render() { | ||
return (h(Host, { key: 'a481ea1f996d1da4b4bf77b331dcdf9908d76373' }, h("slot", { key: '7fd70a27be055a44528e307c8af8e8d8e4b85db7' }))); | ||
return (h(Host, { key: '17bdf3b0b4e2f5a16da9e94e2bf3f62bbe2f1773' }, h("slot", { key: 'bc404ad774f1396550f4fa380ecfb246c8082f63' }))); | ||
} | ||
@@ -83,0 +86,0 @@ get host() { return getElement(this); } |
@@ -1,2 +0,2 @@ | ||
import{p as e,b as i}from"./p-db654622.js";export{s as setNonce}from"./p-db654622.js";import{g as t}from"./p-e1255160.js";var a=()=>{const i=import.meta.url;const t={};if(i!==""){t.resourcesUrl=new URL(".",i).href}return e(t)};a().then((async e=>{await t();return i([["p-e689d09c",[[1,"sui-flextext",{minSize:[1026,"min-size"],maxSize:[1026,"max-size"]}],[1,"sui-nav",{autoHide:[2,"auto-hide"]}],[1,"sui-overlay",{position:[1],transitionTime:[1,"transition-time"],close:[64],open:[64]}],[1,"sui-textarea",{value:[1025],disabled:[4],el:[16],textValue:[32]},null,{value:["valueHandler"]}],[1,"sui-tooltip",{classNames:[32],tipBackgroundColor:[32]},[[1,"mouseenter","setPosition"]]]]]],e)})); | ||
import{p as e,b as i}from"./p-db654622.js";export{s as setNonce}from"./p-db654622.js";import{g as t}from"./p-e1255160.js";var a=()=>{const i=import.meta.url;const t={};if(i!==""){t.resourcesUrl=new URL(".",i).href}return e(t)};a().then((async e=>{await t();return i([["p-cefc990c",[[1,"sui-flextext",{minSize:[1026,"min-size"],maxSize:[1026,"max-size"]}],[1,"sui-nav",{autoHide:[2,"auto-hide"]}],[1,"sui-overlay",{position:[1],transitionTime:[1,"transition-time"],close:[64],open:[64]}],[1,"sui-textarea",{value:[1025],disabled:[4],el:[16],textValue:[32]},null,{value:["valueHandler"]}],[1,"sui-tooltip",{classNames:[32],tipBackgroundColor:[32]},[[1,"mouseenter","setPosition"]]]]]],e)})); | ||
//# sourceMappingURL=skateui.esm.js.map |
{ | ||
"name": "skateui", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "Vanilla HTML compatible custom UI components", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1050872
7930