@bulmil/core
Version:

28 lines (22 loc) • 1.33 kB
JavaScript
/*!
* Bulmil - MIT License
*/
;
Object.defineProperty(exports, '__esModule', { value: true });
const index = require('./index-965e612c.js');
const 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}";
const BmButtonsStyle0 = buttonsCss;
const Buttons = class {
constructor(hostRef) {
index.registerInstance(this, hostRef);
this.size = undefined;
}
render() {
return (index.h(index.Host, { key: '0b46a22c53db37ad1042339560f832796b5015de' }, index.h("div", { key: 'a9e10ff1783a1560d7bdac0dfddd2f5094d77c9d', class: {
buttons: true,
[this.size]: Boolean(this.size),
} }, index.h("slot", { key: 'cd4290f5f4ff1a56b586e2a9a21c99695f5f0c36' }))));
}
};
Buttons.style = BmButtonsStyle0;
exports.bm_buttons = Buttons;