@politicalwatch/tipi-uikit 1.6.9 → 1.6.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@politicalwatch/tipi-uikit",
3
- "version": "1.6.9",
3
+ "version": "1.6.11",
4
4
  "main": "src/components/index.js",
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
2
+ <path fill="#2D4252" d="M8 0C3.584 0 0 3.584 0 8s3.584 8 8 8 8-3.584 8-8-3.584-8-8-8zm.8 12H7.2v-1.6h1.6V12zm0-3.2H7.2V4h1.6v4.8z"/>
3
+ </svg>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="c-party_logo_icon" :style="getBackground">
3
3
  <figure class="c-party_logo_icon__image" :alt="'Logo de ' + getName">
4
- <component :is="svg"></component>
4
+ <i v-html="svg" />
5
5
  </figure>
6
6
  </div>
7
7
  </template>
@@ -189,7 +189,7 @@ export default {
189
189
  // }
190
190
  return this.party in this.parties
191
191
  ? this.icons[`${this.parties[this.party].logo}.svg`]
192
- : defineAsyncComponent(() => import('../../assets/svg/icon-error.svg'));
192
+ : this.icons['party-error.svg'];
193
193
  },
194
194
  getBackground: function () {
195
195
  const bg = this.parties[this.party]?.color ? this.parties[this.party].color : '#f4f6f8';