@ironsource/shared-ui 2.1.6-rc.34 → 2.1.6-rc.35
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.icon[data-v-9d3c9cda]{user-select:none;display:flex;align-items:center;justify-content:center;width:fit-content;height:fit-content}.icon .icon-wrapper[data-v-9d3c9cda]{width:var(--2c0b56f5);height:var(--3b908dd8);color:var(--1ca7f58b)}.icon .icon-wrapper[data-v-9d3c9cda] svg{width:100%;height:100%}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./IconV4.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../IconV4.
|
|
4
|
-
const
|
|
2
|
+
/* empty css */import c from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../IconV4.vue_vue_type_style_index_0_scoped_9d3c9cda_lang.css"; //*');
|
|
4
|
+
const t = /* @__PURE__ */ c(o, [["__scopeId", "data-v-9d3c9cda"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
t as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../IconV4.
|
|
1
|
+
import "../../../IconV4.vue_vue_type_style_index_0_scoped_9d3c9cda_lang.css"; import { defineComponent as w, useCssVars as C, unref as a, useSlots as b, computed as s, watch as S, openBlock as u, createElementBlock as f, normalizeClass as _, createCommentVNode as z, renderSlot as I } from "vue";
|
|
2
2
|
import { useStorage as U } from "../../../composables/useStorage.js";
|
|
3
3
|
const V = ["innerHTML"], x = /* @__PURE__ */ w({
|
|
4
4
|
__name: "IconV4",
|
|
@@ -10,12 +10,12 @@ const V = ["innerHTML"], x = /* @__PURE__ */ w({
|
|
|
10
10
|
height: { default: null },
|
|
11
11
|
width: { default: null }
|
|
12
12
|
},
|
|
13
|
-
setup(
|
|
14
|
-
const e =
|
|
13
|
+
setup(c) {
|
|
14
|
+
const e = c;
|
|
15
15
|
C((t) => ({
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
16
|
+
"2c0b56f5": a(h),
|
|
17
|
+
"3b908dd8": a(m),
|
|
18
|
+
"1ca7f58b": c.color
|
|
19
19
|
}));
|
|
20
20
|
const o = window.sharedUIRequestCache = window.sharedUIRequestCache || {}, p = "https://fusion.ironsrc.net/assets", d = b(), h = s(() => e.size || e.width), m = s(() => e.size || e.height), g = s(() => {
|
|
21
21
|
if (!e.name)
|
|
@@ -29,7 +29,7 @@ const V = ["innerHTML"], x = /* @__PURE__ */ w({
|
|
|
29
29
|
return console.error("Please provided icon name"), "";
|
|
30
30
|
const t = e.type === "regular" || e.type === "bold" || e.type === "fill" ? "ph/" : "v4/", n = e.type === "bold" || e.type === "fill" ? `-${e.type}` : "";
|
|
31
31
|
return `${p}/icons/${t}${e.type}/${e.name}${n}.svg`;
|
|
32
|
-
}),
|
|
32
|
+
}), r = U(`icon-${e.type}--${e.name}`);
|
|
33
33
|
function v(t) {
|
|
34
34
|
return o[t] || (o[t] = fetch(t).then((n) => n.text()).finally(() => {
|
|
35
35
|
delete o[t];
|
|
@@ -45,11 +45,11 @@ const V = ["innerHTML"], x = /* @__PURE__ */ w({
|
|
|
45
45
|
}
|
|
46
46
|
function i() {
|
|
47
47
|
v(l.value).then((t) => {
|
|
48
|
-
typeof t == "string" && t.startsWith("<svg") && (
|
|
48
|
+
typeof t == "string" && t.startsWith("<svg") && (r.value = t);
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
!
|
|
52
|
-
const $ = s(() => y(
|
|
51
|
+
!r.value && l.value && i();
|
|
52
|
+
const $ = s(() => y(r.value ?? ""));
|
|
53
53
|
return S(() => e.name, i), (t, n) => (u(), f("span", {
|
|
54
54
|
class: _(["icon", a(g)])
|
|
55
55
|
}, [
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.icon[data-v-a9f31e34]{user-select:none;display:flex;align-items:center;justify-content:center;width:fit-content;height:fit-content}.icon .icon-wrapper[data-v-a9f31e34]{width:var(--ca5bc5c6);height:var(--b4bae6a0);color:var(--9a4fe09a)}.icon .icon-wrapper svg[data-v-a9f31e34]{width:100%;height:100%}
|