Compare commits

..

2 Commits

Author SHA1 Message Date
a7527ab73c 1.0.19 2021-03-28 22:20:16 +00:00
ffba30da5a fix(core): update 2021-03-28 22:20:16 +00:00
3 changed files with 15 additions and 3 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "@designestate/dees-element", "name": "@designestate/dees-element",
"version": "1.0.18", "version": "1.0.19",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "@designestate/dees-element", "name": "@designestate/dees-element",
"version": "1.0.18", "version": "1.0.19",
"private": false, "private": false,
"description": "a custom element class extending lit element class", "description": "a custom element class extending lit element class",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",

View File

@ -1,4 +1,4 @@
import { CSSResult } from 'lit-element'; import { CSSResult, unsafeCSS } from 'lit-element';
import * as plugins from './dees-element.plugins'; import * as plugins from './dees-element.plugins';
import * as domtools from '@designestate/dees-domtools'; import * as domtools from '@designestate/dees-domtools';
@ -32,6 +32,18 @@ export class CssManager {
return domtools.elementBasic.staticStyles; return domtools.elementBasic.staticStyles;
} }
public cssForTablet(contentArg) {
return unsafeCSS(domtools.breakpoints.cssForTablet(contentArg));
};
public cssForPhablet(contentArg) {
return unsafeCSS(domtools.breakpoints.cssForPhablet(contentArg));
}
public cssForPhone(contentArg) {
return unsafeCSS(domtools.breakpoints.cssForPhone(contentArg));
};
public bdTheme(brightValueArg: string, darkValueArg: string): CSSResult { public bdTheme(brightValueArg: string, darkValueArg: string): CSSResult {
let returnCssVar: string; let returnCssVar: string;
const existingTriplet = this.bdVarTripletStore.find( const existingTriplet = this.bdVarTripletStore.find(