@scania/tegel
Version:
Tegel Design System
1 lines • 1.5 kB
JavaScript
import{t as d,p as i,H as r,h as e,a as t}from"./index.js";const o=i(class extends r{constructor(d){super(),!1!==d&&this.__registerHost(),this.__attachShadow(),this.orientation="horizontal",this.variant="subtle"}render(){return e(t,{key:"86cef3b6aacde74bbaa414992cd805058e3b5290",role:"separator","aria-orientation":"vertical"===this.orientation?"vertical":void 0},e("div",{key:"cd59487dd9214b2635a11ab1a012309a727bd389",class:{divider:!0,vertical:"vertical"===this.orientation,horizontal:"horizontal"===this.orientation,discrete:"discrete"===this.variant,subtle:"subtle"===this.variant,soft:"soft"===this.variant,defined:"defined"===this.variant,"dark-blue":"dark-blue"===this.variant}}))}static get style(){return".divider{box-sizing:border-box;background-color:var(--tds-divider-background)}.divider *{box-sizing:border-box}.divider.discrete{background-color:var(--tds-divider-background-discrete)}.divider.subtle{background-color:var(--tds-divider-background-subtle)}.divider.soft{background-color:var(--tds-divider-background-soft)}.divider.defined{background-color:var(--tds-divider-background-defined)}.divider.dark-blue{background-color:var(--tds-divider-background-dark-blue)}.divider.horizontal{width:100%;height:1px}.divider.vertical{height:100%;width:1px}"}},[1,"tds-divider",{orientation:[1],variant:[1]}]);function s(){"undefined"!=typeof customElements&&["tds-divider"].forEach((i=>{"tds-divider"===i&&(customElements.get(d(i))||customElements.define(d(i),o))}))}s();export{o as D,s as d}