@stories-js/core
Version:
Stories web components to build stories
34 lines (28 loc) • 1.16 kB
JavaScript
/*!
* (C) StoriesJS https://storiesjs.org - GPL-2.0 License
*/
;
Object.defineProperty(exports, '__esModule', { value: true });
const index = require('./index-c25eada5.js');
const buttonsCss = ":host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:99}::slotted(*) stories-button{--padding-top:0;--padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}";
const Buttons = class {
constructor(hostRef) {
index.registerInstance(this, hostRef);
/**
* If true, buttons will disappear when its
* parent toolbar has fully collapsed if the toolbar
* is not the first toolbar. If the toolbar is the
* first toolbar, the buttons will be hidden and will
* only be shown once all toolbars have fully collapsed.
*/
this.collapse = false;
}
render() {
return (index.h(index.Host, { class: {
'buttons-collapse': this.collapse
} }, index.h("slot", null)));
}
};
Buttons.style = buttonsCss;
exports.stories_buttons = Buttons;
//# sourceMappingURL=stories-buttons.cjs.entry.js.map