1 | import { r as registerInstance, h } from './core-98b1cff0.js';
|
2 | var Tags = (function () {
|
3 | function Tags(hostRef) {
|
4 | registerInstance(this, hostRef);
|
5 | |
6 |
|
7 |
|
8 | this.hasAddons = false;
|
9 | }
|
10 | Tags.prototype.render = function () {
|
11 | var _a;
|
12 | return (h("div", { class: (_a = {
|
13 | tags: true,
|
14 | 'has-addons': this.hasAddons
|
15 | },
|
16 | _a[this.size] = Boolean(this.size),
|
17 | _a[this.class] = Boolean(this.class),
|
18 | _a) }, h("slot", null)));
|
19 | };
|
20 | Object.defineProperty(Tags, "style", {
|
21 | get: function () { 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}"; },
|
22 | enumerable: true,
|
23 | configurable: true
|
24 | });
|
25 | return Tags;
|
26 | }());
|
27 | export { Tags as bm_tags };
|