@getflip/swirl-components 0.259.1 → 0.260.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components.json +1 -1
- package/dist/cjs/swirl-option-list_2.cjs.entry.js +4 -1
- package/dist/collection/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/collection/components/swirl-tag/swirl-tag.js +4 -1
- package/dist/components/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/components/swirl-tag2.js +4 -1
- package/dist/esm/swirl-option-list_2.entry.js +4 -1
- package/dist/swirl-components/{p-6835a307.entry.js → p-a6e6e516.entry.js} +1 -1
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/swirl-tag/swirl-tag.d.ts +1 -0
- package/package.json +1 -1
package/components.json
CHANGED
|
@@ -376,6 +376,9 @@ const SwirlTag = class {
|
|
|
376
376
|
componentWillLoad() {
|
|
377
377
|
this.forceVariant();
|
|
378
378
|
}
|
|
379
|
+
componentDidRender() {
|
|
380
|
+
this.forceIconProps();
|
|
381
|
+
}
|
|
379
382
|
forceIconProps() {
|
|
380
383
|
const icon = this.iconEl?.children[0];
|
|
381
384
|
icon?.setAttribute("size", "16");
|
|
@@ -388,7 +391,7 @@ const SwirlTag = class {
|
|
|
388
391
|
}
|
|
389
392
|
render() {
|
|
390
393
|
const className = index$1.classnames("tag", `tag--icon-position-${this.iconPosition}`, `tag--intent-${this.intent}`, `tag--size-${this.size}`, `tag--variant-${this.variant}`);
|
|
391
|
-
return (index.h(index.Host, { key: '
|
|
394
|
+
return (index.h(index.Host, { key: 'b1252aae3bea38598442cb55686853e117d13c7f' }, index.h("span", { key: '8913c5ba54383d25683173d728f3bfaecc3e5738', class: className, part: "tag" }, this.icon && (index.h("span", { key: 'aaf64fd259e1379305e46314103380ac80330c45', class: "tag__icon", innerHTML: this.icon, ref: (el) => (this.iconEl = el) })), index.h("span", { key: 'f1bb805f0264d23957e244682027417f41dc6507', class: "tag__label" }, this.label), this.removable && (index.h("button", { key: 'c0e1fc5f3c153fea47edf8dadf0870b9d3ecb405', "aria-label": this.removalButtonLabel, class: "tag__removal-button", onClick: this.onRemove, tabIndex: this.el.ariaHidden === "true" ? -1 : undefined, type: "button" }, index.h("swirl-icon-close", { key: '94acd6d0feb76393da944ae9bf41043735d297c6', size: 16 }))))));
|
|
392
395
|
}
|
|
393
396
|
get el() { return index.getElement(this); }
|
|
394
397
|
};
|