@cbpds/web-components
Version:
Web components for the CBP Design System.
5 lines • 1.14 kB
JavaScript
/*!
* CPB Design System web components - built with Stencil
*/
import{p as e,H as t,h as s,c}from"./p-9caf8482.js";import{s as i}from"./p-9c1b2f31.js";const o="cbp-carousel-item{display:inline-block;height:var(--cbp-carousel-item-height);width:var(--cbp-carousel-item-width);flex-shrink:0}cbp-carousel-item>*{height:inherit;width:inherit}";const r=o;const a=e(class e extends t{constructor(){super();this.__registerHost();this.height="100%";this.width="100%"}componentWillLoad(){i(this.host,{"--cbp-carousel-item-height":`${this.height}`,"--cbp-carousel-item-width":`${this.width}`})}render(){return s(c,{key:"6af09c755dcbe68942e8efaee4a375d636122fa1"},s("slot",{key:"1a40dcfbdab2434f0c2ff65542d7bde6bd7a6e67"}))}get host(){return this}static get style(){return r}},[4,"cbp-carousel-item",{height:[1],width:[1]}]);function h(){if(typeof customElements==="undefined"){return}const e=["cbp-carousel-item"];e.forEach((e=>{switch(e){case"cbp-carousel-item":if(!customElements.get(e)){customElements.define(e,a)}break}}))}const n=a;const l=h;export{n as CbpCarouselItem,l as defineCustomElement};
//# sourceMappingURL=cbp-carousel-item.js.map