blip-ds 1.157.0 → 1.157.1
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/dist/blip-ds/bds-icon.entry.js +5 -1
- package/dist/blip-ds/bds-icon.system.entry.js +1 -1
- package/dist/blip-ds/blip-ds.esm.js +1 -1
- package/dist/blip-ds/blip-ds.system.js +1 -1
- package/dist/blip-ds/p-3d9e5634.system.js +1 -1
- package/dist/blip-ds/{p-50708852.entry.js → p-73bcf885.entry.js} +1 -1
- package/dist/blip-ds/{p-8a0dd107.system.entry.js → p-b79c79f4.system.entry.js} +1 -1
- package/dist/cjs/bds-icon.cjs.entry.js +5 -1
- package/dist/cjs/bds-icon_2.cjs.entry.js +5 -1
- package/dist/cjs/blip-ds.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/icon/icon.js +23 -1
- package/dist/esm/bds-icon.entry.js +5 -1
- package/dist/esm/bds-icon_2.entry.js +5 -1
- package/dist/esm/blip-ds.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm-es5/bds-icon_2.entry.js +1 -1
- package/dist/esm-es5/blip-ds.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/types/components/icon/icon.d.ts +4 -0
- package/dist/types/components.d.ts +8 -0
- package/package.json +1 -1
|
@@ -615,6 +615,10 @@ const Icon = class {
|
|
|
615
615
|
* Specifies the type of icon. If type is set to emoji, it will be able to set only emoji names on the name property.
|
|
616
616
|
*/
|
|
617
617
|
this.type = 'icon';
|
|
618
|
+
/**
|
|
619
|
+
* Data test is the prop to specifically test the component action object.
|
|
620
|
+
*/
|
|
621
|
+
this.dataTest = null;
|
|
618
622
|
this.setSvgContent = () => {
|
|
619
623
|
let svg;
|
|
620
624
|
try {
|
|
@@ -693,7 +697,7 @@ const Icon = class {
|
|
|
693
697
|
'icon-inner': this.type === 'icon',
|
|
694
698
|
'emoji-inner': this.type === 'emoji',
|
|
695
699
|
'logo-inner': this.type === 'logo',
|
|
696
|
-
}, innerHTML: this.svgContent })) : (h("div", { class: "icon-inner" }))));
|
|
700
|
+
}, innerHTML: this.svgContent, "data-test": this.dataTest })) : (h("div", { class: "icon-inner", "data-test": this.dataTest }))));
|
|
697
701
|
}
|
|
698
702
|
static get assetsDirs() { return ["svg"]; }
|
|
699
703
|
get el() { return getElement(this); }
|