UNPKG

1.74 kBJavaScriptView Raw
1System.register(['./index-1a441b18.system.js'], function (exports) {
2 'use strict';
3 var registerInstance, h;
4 return {
5 setters: [function (module) {
6 registerInstance = module.r;
7 h = module.h;
8 }],
9 execute: function () {
10 var 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}";
11 var Tags = /** @class */ (function () {
12 function Tags(hostRef) {
13 registerInstance(this, hostRef);
14 /**
15 * Has addons
16 */
17 this.hasAddons = false;
18 }
19 Tags.prototype.render = function () {
20 var _a;
21 return (h("div", { class: (_a = {
22 tags: true,
23 'has-addons': this.hasAddons
24 },
25 _a[this.size] = Boolean(this.size),
26 _a[this.class] = Boolean(this.class),
27 _a) }, h("slot", null)));
28 };
29 return Tags;
30 }());
31 exports('bm_tags', Tags);
32 Tags.style = tagsCss;
33 }
34 };
35});