1 | 'use strict';
|
2 |
|
3 | Object.defineProperty(exports, '__esModule', { value: true });
|
4 |
|
5 | const core = require('./core-dd01c714.js');
|
6 |
|
7 | const Buttons = class {
|
8 | constructor(hostRef) {
|
9 | core.registerInstance(this, hostRef);
|
10 | |
11 |
|
12 |
|
13 | this.class = '';
|
14 | }
|
15 | render() {
|
16 | return (core.h(core.Host, null, core.h("div", { class: {
|
17 | buttons: true,
|
18 | [this.size]: Boolean(this.size),
|
19 | [this.class]: Boolean(this.class),
|
20 | } }, core.h("slot", null))));
|
21 | }
|
22 | static get style() { return "bm-buttons bm-button:not(:last-child):not(.is-fullwidth){margin-right:.5rem}bm-buttons .buttons:last-child{margin-bottom:0}bm-buttons:last-child{margin-bottom:-.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}"; }
|
23 | };
|
24 |
|
25 | exports.bm_buttons = Buttons;
|