UNPKG

1.12 kBJavaScriptView Raw
1'use strict';
2
3Object.defineProperty(exports, '__esModule', { value: true });
4
5const index = require('./index-8e7d875f.js');
6
7const 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}";
8
9const Tags = class {
10 constructor(hostRef) {
11 index.registerInstance(this, hostRef);
12 /**
13 * Has addons
14 */
15 this.hasAddons = false;
16 }
17 render() {
18 return (index.h("div", { class: {
19 tags: true,
20 'has-addons': this.hasAddons,
21 [this.size]: Boolean(this.size),
22 } }, index.h("slot", null)));
23 }
24};
25Tags.style = tagsCss;
26
27exports.bm_tags = Tags;