@scania/tegel
Version:
Tegel Design System
32 lines (26 loc) • 1.72 kB
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
const index = require('./index-ca8040ad.js');
const dividerCss = ".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}";
const TdsDividerStyle0 = dividerCss;
const Divider = class {
constructor(hostRef) {
index.registerInstance(this, hostRef);
this.orientation = 'horizontal';
this.variant = 'subtle';
}
render() {
return (index.h(index.Host, { key: 'fb332ff6d8b15e2451266bb9051113819ac770ab', role: "separator", "aria-orientation": this.orientation === 'vertical' ? 'vertical' : undefined }, index.h("div", { key: 'a0a6e9037f259f3d4ecff62744a8b31875241901', class: {
'divider': true,
'vertical': this.orientation === 'vertical',
'horizontal': this.orientation === 'horizontal',
'discrete': this.variant === 'discrete',
'subtle': this.variant === 'subtle',
'soft': this.variant === 'soft',
'defined': this.variant === 'defined',
'dark-blue': this.variant === 'dark-blue',
} })));
}
};
Divider.style = TdsDividerStyle0;
exports.tds_divider = Divider;