{"size": 2064, "ext": "js", "max_stars_repo_path": "build/es6/node_modules/@lrnwebcomponents/simple-colors/simple-colors.js", "max_stars_repo_name": "ChristianMurphy/HAXcms", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "build/es6/node_modules/@lrnwebcomponents/simple-colors/simple-colors.js", "max_issues_repo_name": "ChristianMurphy/HAXcms", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "build/es6/node_modules/@lrnwebcomponents/simple-colors/simple-colors.js", "max_forks_repo_name": "ChristianMurphy/HAXcms", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 516.0, "max_line_length": 1790, "alphanum_fraction": 0.8013565891}
import{html,PolymerElement}from"../../@polymer/polymer/polymer-element.js";import"./lib/simple-colors-styles.js";class SimpleColors extends PolymerElement{static get template(){return html`
      <style is="custom-style" include="simple-colors"></style>
      <slot></slot>
    `}static get properties(){return{accentColor:{name:"accentColor",type:"String",value:"grey",reflectToAttribute:!0,notify:!0},dark:{name:"dark",type:"Boolean",value:!1,reflectToAttribute:!0,notify:!0},colors:{name:"colors",type:"Object",value:window.SimpleColorsUtilities.colors,notify:!0}}}static get tag(){return"simple-colors"}connectedCallback(){super.connectedCallback()}ready(){super.ready()}maxContrastShade(shade){return window.SimpleColorsUtilities.maxContrastShade(shade)}invertShade(shade){return window.SimpleColorsUtilities.invertShade(shade)}getColorInfo(colorName){let temp1=colorName.replace(/(.+simple-colors-)?(-text)?(-border)?/g,"").split("-theme-"),theme=0<temp1.length?temp1[0]:"default",temp2=0<temp1.length?temp1[1].split("-"):temp1[0].split("-"),color=1<temp2.length?temp2.slice(1,temp2.length-1).join("-"):"grey",shade=1<temp2.length?temp2[temp2.length-1]:"1";return{theme:theme,color:color,shade:shade}}makeVariable(color="grey",shade=1,theme="default"){return window.SimpleColorsUtilities.makeVariable(color="grey",shade=1,theme="default")}makeClass(color="grey",shade=1,theme="default",suffix=""){return window.SimpleColorsUtilities.makeClass(color="grey",shade=1,theme="default",suffix="")}getContrastingColors(colorName,colorShade,isLarge){return window.SimpleColorsUtilities.getContrastingColors(colorName,colorShade,isLarge)}getContrastingShades(isLarge,colorName,colorShade,contrastName){return window.SimpleColorsUtilities.getContrastingShades(isLarge,colorName,colorShade,contrastName)}isContrastCompliant(isLarge,colorName,colorShade,contrastName,contrastShade){return window.SimpleColorsUtilities.isContrastCompliant(isLarge,colorName,colorShade,contrastName,contrastShade)}}customElements.define(SimpleColors.tag,SimpleColors);export{SimpleColors};