@stories-js/core
Version:
Stories web components to build stories
30 lines (26 loc) • 1.09 kB
JavaScript
/*!
* (C) StoriesJS https://storiesjs.org - GPL-2.0 License
*/
import { r as registerInstance, h, c as Host } from './index-49238f69.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) {
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 (h(Host, { class: {
'buttons-collapse': this.collapse
} }, h("slot", null)));
}
};
Buttons.style = buttonsCss;
export { Buttons as stories_buttons };
//# sourceMappingURL=stories-buttons.entry.js.map