UNPKG

@stories-js/core

Version:

Stories web components to build stories

24 lines (18 loc) 1.3 kB
/*! * (C) StoriesJS https://storiesjs.org - GPL-2.0 License */ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); const index = require('./index-c25eada5.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) { index.registerInstance(this, hostRef); } render() { return (index.h("div", { class: "bar" }, index.h("div", { class: "inner" }, index.h("div", { class: "side left" }, index.h("slot", { name: "left" })), index.h("div", { class: "side right" }, index.h("slot", { name: "right" }))))); } }; ToolBar.style = toolBarCss; exports.stories_tool_bar = ToolBar; //# sourceMappingURL=stories-tool-bar.cjs.entry.js.map