@ironsource/shared-ui 2.1.7-rc.14 → 2.1.7-rc.16
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/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_98819e5a_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_00ccab6b_lang.css +1 -0
- package/IconV4.vue_vue_type_style_index_0_scoped_dc433d48_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_77509f61_lang.css +1 -0
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_78ce1bbd_lang.css +1 -0
- package/components/appHeader/AppHeader.vue.d.ts +1 -1
- package/components/appHeader/index.d.ts +9 -9
- package/components/dropdown/common/Dropdown.common.js +89 -89
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +1 -0
- package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +32 -29
- package/components/dropdown/v4/DropdownV4.vue.d.ts +29 -0
- package/components/dropdown/v4/DropdownV4.vue.js +4 -4
- package/components/dropdown/v4/DropdownV4.vue2.js +186 -158
- package/components/dropdown/v4/OptionV4.vue.d.ts +26 -2
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +94 -71
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +21 -16
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +162 -74
- package/components/dropdown/v4/index.d.ts +451 -82
- package/components/icon/v4/IconV4.vue.d.ts +5 -0
- package/components/icon/v4/IconV4.vue.js +4 -4
- package/components/icon/v4/IconV4.vue2.js +29 -26
- package/components/icon/v4/index.d.ts +20 -1
- package/design-foundation.stories/icons/iconsData.d.ts +6 -2
- package/index.d.ts +1246 -470
- package/mocks/options.d.ts +12 -0
- package/package.json +1 -1
- package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_0345d6b1_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_938772ee_lang.css +0 -1
- package/IconV4.vue_vue_type_style_index_0_scoped_1eea7671_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_b6a06f00_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_142eab98_lang.css +0 -1
|
@@ -5,6 +5,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
5
5
|
size?: string;
|
|
6
6
|
height?: string;
|
|
7
7
|
width?: string;
|
|
8
|
+
platform?: string;
|
|
8
9
|
}>, {
|
|
9
10
|
name: any;
|
|
10
11
|
size: any;
|
|
@@ -12,6 +13,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
12
13
|
type: string;
|
|
13
14
|
height: any;
|
|
14
15
|
width: any;
|
|
16
|
+
platform: any;
|
|
15
17
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
16
18
|
type?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
17
19
|
name?: string;
|
|
@@ -19,6 +21,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
19
21
|
size?: string;
|
|
20
22
|
height?: string;
|
|
21
23
|
width?: string;
|
|
24
|
+
platform?: string;
|
|
22
25
|
}>, {
|
|
23
26
|
name: any;
|
|
24
27
|
size: any;
|
|
@@ -26,6 +29,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
26
29
|
type: string;
|
|
27
30
|
height: any;
|
|
28
31
|
width: any;
|
|
32
|
+
platform: any;
|
|
29
33
|
}>>>, {
|
|
30
34
|
name: string;
|
|
31
35
|
type: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
@@ -33,6 +37,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
33
37
|
size: string;
|
|
34
38
|
height: string;
|
|
35
39
|
width: string;
|
|
40
|
+
platform: string;
|
|
36
41
|
}>, {
|
|
37
42
|
default?(_: {}): any;
|
|
38
43
|
}>;
|
|
@@ -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 _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../IconV4.vue_vue_type_style_index_0_scoped_dc433d48_lang.css"; //*');
|
|
4
|
+
const t = /* @__PURE__ */ _(o, [["__scopeId", "data-v-dc433d48"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
t as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../../../IconV4.
|
|
2
|
-
import { useStorage as
|
|
1
|
+
import "../../../IconV4.vue_vue_type_style_index_0_scoped_dc433d48_lang.css"; import { defineComponent as S, useCssVars as w, unref as s, useSlots as C, computed as o, watch as _, openBlock as u, createElementBlock as f, normalizeClass as b, createCommentVNode as z, renderSlot as I } from "vue";
|
|
2
|
+
import { useStorage as T } from "../../../composables/useStorage.js";
|
|
3
3
|
import { ASSETS_BASE_URL as U } from "./consts.js";
|
|
4
|
-
const V = ["innerHTML"], B = /* @__PURE__ */
|
|
4
|
+
const V = ["innerHTML"], B = /* @__PURE__ */ S({
|
|
5
5
|
__name: "IconV4",
|
|
6
6
|
props: {
|
|
7
7
|
type: { default: "regular" },
|
|
@@ -9,34 +9,37 @@ const V = ["innerHTML"], B = /* @__PURE__ */ $({
|
|
|
9
9
|
color: { default: null },
|
|
10
10
|
size: { default: null },
|
|
11
11
|
height: { default: null },
|
|
12
|
-
width: { default: null }
|
|
12
|
+
width: { default: null },
|
|
13
|
+
platform: { default: null }
|
|
13
14
|
},
|
|
14
|
-
setup(
|
|
15
|
-
const e =
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
|
|
15
|
+
setup(r) {
|
|
16
|
+
const e = r;
|
|
17
|
+
w((t) => ({
|
|
18
|
+
"3d423be4": s(d),
|
|
19
|
+
"513646c9": s(m),
|
|
20
|
+
ad86ac0c: r.color
|
|
20
21
|
}));
|
|
21
|
-
const
|
|
22
|
+
const a = window.sharedUIRequestCache = window.sharedUIRequestCache || {}, p = C(), d = o(() => e.size || e.width), m = o(() => e.size || e.height), h = o(
|
|
23
|
+
() => e.platform ? `${e.type}/${e.platform}` : e.type
|
|
24
|
+
), y = o(() => {
|
|
22
25
|
if (!e.name)
|
|
23
26
|
return "";
|
|
24
27
|
const t = e.name.split("/");
|
|
25
28
|
return [e.name ? `icon-name--${t.at(-1)}` : ""];
|
|
26
|
-
}),
|
|
29
|
+
}), c = o(() => {
|
|
27
30
|
if (p.default)
|
|
28
31
|
return "";
|
|
29
32
|
if (!e.name)
|
|
30
33
|
return console.error("Please provided icon name"), "";
|
|
31
34
|
const t = e.type === "regular" || e.type === "bold" || e.type === "fill" ? "ph/" : "v4/", n = e.type === "bold" || e.type === "fill" ? `-${e.type}` : "";
|
|
32
|
-
return `${U}/icons/${t}${
|
|
33
|
-
}),
|
|
35
|
+
return `${U}/icons/${t}${h.value}/${e.name}${n}.svg`;
|
|
36
|
+
}), l = T(`icon-${e.type}--${e.name}`);
|
|
34
37
|
function g(t) {
|
|
35
|
-
return
|
|
36
|
-
delete
|
|
38
|
+
return a[t] || (a[t] = fetch(t).then((n) => n.text()).finally(() => {
|
|
39
|
+
delete a[t];
|
|
37
40
|
}).catch((n) => {
|
|
38
41
|
console.error(n);
|
|
39
|
-
})),
|
|
42
|
+
})), a[t];
|
|
40
43
|
}
|
|
41
44
|
function v(t) {
|
|
42
45
|
return t.replace(
|
|
@@ -45,21 +48,21 @@ const V = ["innerHTML"], B = /* @__PURE__ */ $({
|
|
|
45
48
|
);
|
|
46
49
|
}
|
|
47
50
|
function i() {
|
|
48
|
-
g(
|
|
49
|
-
typeof t == "string" && t.startsWith("<svg") && (
|
|
51
|
+
g(c.value).then((t) => {
|
|
52
|
+
typeof t == "string" && t.startsWith("<svg") && (l.value = t);
|
|
50
53
|
});
|
|
51
54
|
}
|
|
52
|
-
!
|
|
53
|
-
const
|
|
54
|
-
return
|
|
55
|
-
class:
|
|
55
|
+
!l.value && c.value && i();
|
|
56
|
+
const $ = o(() => v(l.value ?? ""));
|
|
57
|
+
return _(() => e.name, i), (t, n) => (u(), f("span", {
|
|
58
|
+
class: b(["icon", s(y)])
|
|
56
59
|
}, [
|
|
57
|
-
t.$slots.default ?
|
|
60
|
+
t.$slots.default ? z("", !0) : (u(), f("span", {
|
|
58
61
|
key: 0,
|
|
59
62
|
class: "icon-wrapper",
|
|
60
|
-
innerHTML:
|
|
63
|
+
innerHTML: s($)
|
|
61
64
|
}, null, 8, V)),
|
|
62
|
-
|
|
65
|
+
I(t.$slots, "default", {}, void 0, !0)
|
|
63
66
|
], 2));
|
|
64
67
|
}
|
|
65
68
|
});
|
|
@@ -10,6 +10,7 @@ declare const IconTypes: () => ({
|
|
|
10
10
|
size: string;
|
|
11
11
|
height: string;
|
|
12
12
|
width: string;
|
|
13
|
+
platform: string;
|
|
13
14
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
14
15
|
name: {
|
|
15
16
|
type: import("vue").PropType<string>;
|
|
@@ -35,7 +36,11 @@ declare const IconTypes: () => ({
|
|
|
35
36
|
type: import("vue").PropType<string>;
|
|
36
37
|
default: any;
|
|
37
38
|
};
|
|
38
|
-
|
|
39
|
+
platform: {
|
|
40
|
+
type: import("vue").PropType<string>;
|
|
41
|
+
default: any;
|
|
42
|
+
};
|
|
43
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "name" | "type" | "color" | "size" | "height" | "width" | "platform">;
|
|
39
44
|
$attrs: {
|
|
40
45
|
[x: string]: unknown;
|
|
41
46
|
};
|
|
@@ -74,6 +79,10 @@ declare const IconTypes: () => ({
|
|
|
74
79
|
type: import("vue").PropType<string>;
|
|
75
80
|
default: any;
|
|
76
81
|
};
|
|
82
|
+
platform: {
|
|
83
|
+
type: import("vue").PropType<string>;
|
|
84
|
+
default: any;
|
|
85
|
+
};
|
|
77
86
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
78
87
|
name: string;
|
|
79
88
|
type: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
@@ -81,6 +90,7 @@ declare const IconTypes: () => ({
|
|
|
81
90
|
size: string;
|
|
82
91
|
height: string;
|
|
83
92
|
width: string;
|
|
93
|
+
platform: string;
|
|
84
94
|
}, {}, string> & {
|
|
85
95
|
beforeCreate?: (() => void) | (() => void)[];
|
|
86
96
|
created?: (() => void) | (() => void)[];
|
|
@@ -126,6 +136,10 @@ declare const IconTypes: () => ({
|
|
|
126
136
|
type: import("vue").PropType<string>;
|
|
127
137
|
default: any;
|
|
128
138
|
};
|
|
139
|
+
platform: {
|
|
140
|
+
type: import("vue").PropType<string>;
|
|
141
|
+
default: any;
|
|
142
|
+
};
|
|
129
143
|
}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
130
144
|
__isFragment?: never;
|
|
131
145
|
__isTeleport?: never;
|
|
@@ -155,6 +169,10 @@ declare const IconTypes: () => ({
|
|
|
155
169
|
type: import("vue").PropType<string>;
|
|
156
170
|
default: any;
|
|
157
171
|
};
|
|
172
|
+
platform: {
|
|
173
|
+
type: import("vue").PropType<string>;
|
|
174
|
+
default: any;
|
|
175
|
+
};
|
|
158
176
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
159
177
|
name: string;
|
|
160
178
|
type: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
|
|
@@ -162,6 +180,7 @@ declare const IconTypes: () => ({
|
|
|
162
180
|
size: string;
|
|
163
181
|
height: string;
|
|
164
182
|
width: string;
|
|
183
|
+
platform: string;
|
|
165
184
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
166
185
|
$slots: {
|
|
167
186
|
default?(_: {}): any;
|
|
@@ -15,8 +15,12 @@ declare const iconsAdNetworks: {
|
|
|
15
15
|
name: string;
|
|
16
16
|
path: string;
|
|
17
17
|
}[];
|
|
18
|
-
declare const
|
|
18
|
+
declare const iconsIosContentRateData: {
|
|
19
19
|
name: string;
|
|
20
20
|
path: string;
|
|
21
21
|
}[];
|
|
22
|
-
|
|
22
|
+
declare const iconsAndroidContentRateData: {
|
|
23
|
+
name: string;
|
|
24
|
+
path: string;
|
|
25
|
+
}[];
|
|
26
|
+
export { assetsPath, iconsBrandedData, iconsADUnitData, iconsABTestData, iconsAdNetworks, iconsIosContentRateData, iconsAndroidContentRateData, };
|