All files / packages/sds-components/src/sds/container container.js

100% Statements 10/10
100% Branches 0/0
75% Functions 3/4
100% Lines 10/10

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32              24x 24x   24x 24x 24x     24x     1x           1x 1x       2x    
import { LightningElement, api } from 'lwc';
import { reflectAttribute, normalizeInput } from 'sds/utils';
import 'sds/privateThemeProvider';
 
export default class Container extends LightningElement {
  static shadowSupportMode = 'native';
 
  _role;
  _variant;
 
  @api headerDirection = 'row';
  @api bodyDirection = 'column';
  @api footerDirection = 'row';
 
  @api
  get role() {
    return this._role;
  }
  set role(value) {
    this._role = normalizeInput(value);
  }
 
  @api
  get variant() {
    return this._variant;
  }
  set variant(value) {
    this._variant = normalizeInput(value);
    reflectAttribute(this, 'variant', this._variant);
  }
}