UNPKG

1.13 kBJavaScriptView Raw
1import { r as registerInstance, h, H as Host } from './index-d9cbe763.js';
2
3const buttonsCss = "bm-buttons bm-button:not(:last-child):not(.is-fullwidth){margin-right:0.5rem}bm-buttons .buttons:last-child{margin-bottom:initial}bm-buttons:last-child{margin-bottom:-0.5rem}bm-buttons:not(:last-child){margin-bottom:1rem}bm-buttons .buttons.has-addons bm-button:not(:first-child) .button{border-bottom-left-radius:0;border-top-left-radius:0}bm-buttons .buttons.has-addons bm-button:not(:last-child) .button{border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}bm-buttons .buttons.has-addons bm-button:last-child .button{margin-right:0}";
4
5const Buttons = class {
6 constructor(hostRef) {
7 registerInstance(this, hostRef);
8 /**
9 * CSS classes
10 */
11 this.class = '';
12 }
13 render() {
14 return (h(Host, null, h("div", { class: {
15 buttons: true,
16 [this.size]: Boolean(this.size),
17 [this.class]: Boolean(this.class),
18 } }, h("slot", null))));
19 }
20};
21Buttons.style = buttonsCss;
22
23export { Buttons as bm_buttons };