UNPKG

1.15 kBJavaScriptView Raw
1'use strict';
2
3Object.defineProperty(exports, '__esModule', { value: true });
4
5const core = require('./core-dd01c714.js');
6
7const Tags = class {
8 constructor(hostRef) {
9 core.registerInstance(this, hostRef);
10 /**
11 * Has addons
12 */
13 this.hasAddons = false;
14 }
15 render() {
16 return (core.h("div", { class: {
17 tags: true,
18 'has-addons': this.hasAddons,
19 [this.size]: Boolean(this.size),
20 [this.class]: Boolean(this.class),
21 } }, core.h("slot", null)));
22 }
23 static get style() { return "bm-tags bm-tag:not(:last-child) .tag{margin-right:.5rem}bm-tags:last-child{margin-bottom:-.5rem}bm-tags:not(:last-child){margin-bottom:1rem}bm-tags .tags.is-right bm-tag:not(:first-child) .tag{margin-left:.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}"; }
24};
25
26exports.bm_tags = Tags;