@stories-js/core
Version:
Stories web components to build stories
20 lines (16 loc) • 1.2 kB
JavaScript
/*!
* (C) StoriesJS https://storiesjs.org - GPL-2.0 License
*/
import { r as registerInstance, h } from './index-49238f69.js';
const toolBarCss = ".bar{color:var(--stories-bar-text-color, black);width:100%;height:40px;-ms-flex-negative:0;flex-shrink:0;overflow:auto;overflow-y:hidden}.inner{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;position:relative;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-negative:0;flex-shrink:0;height:40px;background-color:transparent}.side{display:-ms-flexbox;display:flex;white-space:nowrap;-ms-flex-preferred-size:auto;flex-basis:auto;-ms-flex-negative:0;flex-shrink:0;margin-left:3px;margin-right:3px}.side.left>*{margin-left:4px}.side.right{margin-left:30px}.side.right>*{margin-right:4px}";
const ToolBar = class {
constructor(hostRef) {
registerInstance(this, hostRef);
}
render() {
return (h("div", { class: "bar" }, h("div", { class: "inner" }, h("div", { class: "side left" }, h("slot", { name: "left" })), h("div", { class: "side right" }, h("slot", { name: "right" })))));
}
};
ToolBar.style = toolBarCss;
export { ToolBar as stories_tool_bar };
//# sourceMappingURL=stories-tool-bar.entry.js.map