UNPKG

1.04 kBJavaScriptView Raw
1import { r as registerInstance, h } from './index-d4feb066.js';
2
3const tagsCss = "bm-tags bm-tag:not(:last-child) .tag{margin-right:0.5rem}bm-tags:last-child{margin-bottom:-0.5rem}bm-tags:not(:last-child){margin-bottom:1rem}bm-tags .tags.is-right bm-tag:not(:first-child) .tag{margin-left:0.5rem}bm-tags .tags.is-right bm-tag:not(:last-child) .tag{margin-right:0}bm-tags .tags.has-addons bm-tag:not(:first-child) .tag{margin-left:0;border-bottom-left-radius:0;border-top-left-radius:0}bm-tags .tags.has-addons bm-tag:not(:last-child) .tag{border-bottom-right-radius:0;border-top-right-radius:0}";
4
5const Tags = class {
6 constructor(hostRef) {
7 registerInstance(this, hostRef);
8 /**
9 * Has addons
10 */
11 this.hasAddons = false;
12 }
13 render() {
14 return (h("div", { class: {
15 tags: true,
16 'has-addons': this.hasAddons,
17 [this.size]: Boolean(this.size),
18 } }, h("slot", null)));
19 }
20};
21Tags.style = tagsCss;
22
23export { Tags as bm_tags };