@ironsource/shared-ui 2.1.2-rc.0 → 2.1.2

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
+ .app-header[data-v-aa538d40]{display:flex}.app-header .image-container[data-v-aa538d40]{height:48px;width:48px;border-radius:4px}.app-header .image-container img[data-v-aa538d40]{min-width:100%;object-fit:cover;border-radius:4px}.app-header .icon-container[data-v-aa538d40]{color:var(--action-active);display:flex;align-items:center;padding:0 8px}.app-header .name-container .title[data-v-aa538d40]{color:var(--text-primary)}.app-header .name-container .inline-copy[data-v-aa538d40]{color:var(--text-secondary)}.app-header.size-small[data-v-aa538d40]{align-items:center}.app-header.size-small .image-container[data-v-aa538d40]{height:28px;width:28px;border-radius:6px}.app-header.size-small .image-container img[data-v-aa538d40]{border-radius:6px}.app-header.size-small .name-container[data-v-aa538d40]{display:flex}
@@ -0,0 +1 @@
1
+ .inline-copy[data-v-117ac157]{display:inline-flex;cursor:pointer;color:var(--action-active)}.inline-copy .icon-copy[data-v-117ac157]{padding:0 4px;cursor:pointer;color:var(--action-active)}.inline-copy .icon-copy[data-v-117ac157]:hover{color:var(--action-primary)}
@@ -4,26 +4,31 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
4
4
  platform: 'android' | 'ios';
5
5
  appKey: string;
6
6
  testId: string;
7
+ type?: 'small' | 'normal';
7
8
  }>, {
8
9
  image: string;
9
10
  name: string;
10
11
  platform: string;
11
12
  appKey: string;
12
13
  testId: string;
14
+ type: string;
13
15
  }>, {}, 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<{
14
16
  image: string;
15
17
  name: string;
16
18
  platform: 'android' | 'ios';
17
19
  appKey: string;
18
20
  testId: string;
21
+ type?: 'small' | 'normal';
19
22
  }>, {
20
23
  image: string;
21
24
  name: string;
22
25
  platform: string;
23
26
  appKey: string;
24
27
  testId: string;
28
+ type: string;
25
29
  }>>>, {
26
30
  name: string;
31
+ type: 'small' | 'normal';
27
32
  image: string;
28
33
  testId: string;
29
34
  platform: 'android' | 'ios';
@@ -1,7 +1,7 @@
1
1
  import e from "./AppHeader.vue2.js";
2
2
  /* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../AppHeader.vue_vue_type_style_index_0_scoped_5afbd3dd_lang.css"; //*');
4
- const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-5afbd3dd"]]);
3
+ // import "../../AppHeader.vue_vue_type_style_index_0_scoped_aa538d40_lang.css"; //*');
4
+ const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-aa538d40"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -1,56 +1,60 @@
1
- import "../../AppHeader.vue_vue_type_style_index_0_scoped_5afbd3dd_lang.css"; import { defineComponent as d, computed as m, openBlock as l, createElementBlock as c, createElementVNode as a, createVNode as n, unref as t, mergeProps as p, withCtx as f, createTextVNode as u, toDisplayString as h } from "vue";
2
- import I from "../icon/v4/IconV4.vue.js";
3
- import y from "../typography/v4/Typography.vue.js";
4
- import g from "../inlineCopy/InlineCopy.vue.js";
5
- import { useTestIdAttrs as x } from "../../utils/testIds.js";
6
- import { AppHeaderTestIdModifiers as s } from "../../testids/index.js";
7
- const _ = { class: "app-header" }, v = { class: "image-container" }, T = ["src", "alt"], A = { class: "icon-container" }, C = { class: "name-container" }, K = /* @__PURE__ */ d({
1
+ import "../../AppHeader.vue_vue_type_style_index_0_scoped_aa538d40_lang.css"; import { defineComponent as r, computed as d, openBlock as m, createElementBlock as c, normalizeClass as p, createElementVNode as a, createVNode as o, unref as t, mergeProps as f, withCtx as u, createTextVNode as y, toDisplayString as h } from "vue";
2
+ import x from "../icon/v4/IconV4.vue.js";
3
+ import v from "../typography/v4/Typography.vue.js";
4
+ import I from "../inlineCopy/InlineCopy.vue.js";
5
+ import { useTestIdAttrs as g } from "../../utils/testIds.js";
6
+ import { AppHeaderTestIdModifiers as i } from "../../testids/index.js";
7
+ const T = { class: "image-container" }, z = ["src", "alt"], C = { class: "icon-container" }, A = { class: "name-container" }, K = /* @__PURE__ */ r({
8
8
  __name: "AppHeader",
9
9
  props: {
10
10
  image: { default: "" },
11
11
  name: { default: "" },
12
12
  platform: { default: "android" },
13
13
  appKey: { default: "" },
14
- testId: { default: "" }
14
+ testId: { default: "" },
15
+ type: { default: "normal" }
15
16
  },
16
17
  setup(e) {
17
- const o = e, i = m(
18
- () => o.platform ? o.platform.toLowerCase() : ""
19
- ), r = x(o.testId, s);
20
- return (N, E) => (l(), c("div", _, [
21
- a("div", v, [
18
+ const n = e, l = d(
19
+ () => n.platform ? n.platform.toLowerCase() : ""
20
+ ), s = g(n.testId, i);
21
+ return (N, E) => (m(), c("div", {
22
+ class: p(["app-header", `size-${e.type}`])
23
+ }, [
24
+ a("div", T, [
22
25
  a("img", {
23
26
  src: e.image,
24
27
  alt: e.name
25
- }, null, 8, T)
28
+ }, null, 8, z)
26
29
  ]),
27
- a("div", A, [
28
- n(t(I), {
30
+ a("div", C, [
31
+ o(t(x), {
29
32
  type: "branded",
30
- name: t(i),
31
- size: "24px"
32
- }, null, 8, ["name"])
33
+ name: t(l),
34
+ size: e.type === "normal" ? "24px" : "20px"
35
+ }, null, 8, ["name", "size"])
33
36
  ]),
34
- a("div", C, [
35
- n(t(y), p({
36
- variant: "h2",
37
+ a("div", A, [
38
+ o(t(v), f({
39
+ variant: e.type === "normal" ? "h2" : "button",
37
40
  class: "title"
38
- }, t(r)[t(s).TITLE]), {
39
- default: f(() => [
40
- u(h(e.name), 1)
41
+ }, t(s)[t(i).TITLE]), {
42
+ default: u(() => [
43
+ y(h(e.name), 1)
41
44
  ]),
42
45
  _: 1
43
- }, 16),
46
+ }, 16, ["variant"]),
44
47
  a("div", null, [
45
- n(t(g), {
48
+ o(t(I), {
46
49
  text: e.appKey,
47
50
  size: "medium",
48
51
  class: "inline-copy",
52
+ "hide-text-value": e.type === "small",
49
53
  "test-id": e.testId
50
- }, null, 8, ["text", "test-id"])
54
+ }, null, 8, ["text", "hide-text-value", "test-id"])
51
55
  ])
52
56
  ])
53
- ]));
57
+ ], 2));
54
58
  }
55
59
  });
56
60
  export {
@@ -5,6 +5,10 @@ declare const AppHeaderTypes: () => import("vue").DefineComponent<{
5
5
  required: true;
6
6
  default: string;
7
7
  };
8
+ type: {
9
+ type: import("vue").PropType<"small" | "normal">;
10
+ default: string;
11
+ };
8
12
  image: {
9
13
  type: import("vue").PropType<string>;
10
14
  required: true;
@@ -31,6 +35,10 @@ declare const AppHeaderTypes: () => import("vue").DefineComponent<{
31
35
  required: true;
32
36
  default: string;
33
37
  };
38
+ type: {
39
+ type: import("vue").PropType<"small" | "normal">;
40
+ default: string;
41
+ };
34
42
  image: {
35
43
  type: import("vue").PropType<string>;
36
44
  required: true;
@@ -53,6 +61,7 @@ declare const AppHeaderTypes: () => import("vue").DefineComponent<{
53
61
  };
54
62
  }>>, {
55
63
  name: string;
64
+ type: "small" | "normal";
56
65
  image: string;
57
66
  testId: string;
58
67
  platform: "android" | "ios";
@@ -2,22 +2,27 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
2
2
  text: string;
3
3
  size: 'small' | 'medium';
4
4
  testId: string;
5
+ hideTextValue: boolean;
5
6
  }>, {
6
7
  size: string;
7
8
  text: string;
8
9
  testId: string;
10
+ hideTextValue: boolean;
9
11
  }>, {}, 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<{
10
12
  text: string;
11
13
  size: 'small' | 'medium';
12
14
  testId: string;
15
+ hideTextValue: boolean;
13
16
  }>, {
14
17
  size: string;
15
18
  text: string;
16
19
  testId: string;
20
+ hideTextValue: boolean;
17
21
  }>>>, {
18
22
  text: string;
19
23
  size: 'small' | 'medium';
20
24
  testId: string;
25
+ hideTextValue: boolean;
21
26
  }>;
22
27
  export default _default;
23
28
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,7 +1,7 @@
1
1
  import o from "./InlineCopy.vue2.js";
2
2
  /* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../InlineCopy.vue_vue_type_style_index_0_scoped_39577dfc_lang.css"; //*');
4
- const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-39577dfc"]]);
3
+ // import "../../InlineCopy.vue_vue_type_style_index_0_scoped_117ac157_lang.css"; //*');
4
+ const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-117ac157"]]);
5
5
  export {
6
6
  t as default
7
7
  };
@@ -1,54 +1,56 @@
1
- import "../../InlineCopy.vue_vue_type_style_index_0_scoped_39577dfc_lang.css"; import { defineComponent as u, computed as d, openBlock as f, createElementBlock as y, createVNode as o, unref as t, mergeProps as c, withCtx as n, createTextVNode as x, toDisplayString as C } from "vue";
2
- import I from "../icon/v4/IconV4.vue.js";
3
- import T from "../typography/v4/Typography.vue.js";
4
- import { useClipboard as _ } from "@vueuse/core";
1
+ import "../../InlineCopy.vue_vue_type_style_index_0_scoped_117ac157_lang.css"; import { defineComponent as d, computed as f, openBlock as s, createElementBlock as y, createBlock as x, unref as e, mergeProps as i, withCtx as c, createTextVNode as C, toDisplayString as T, createCommentVNode as I, createVNode as l } from "vue";
2
+ import h from "../icon/v4/IconV4.vue.js";
3
+ import k from "../typography/v4/Typography.vue.js";
4
+ import { useClipboard as V } from "@vueuse/core";
5
5
  import { Snackbar as z } from "../snackbar/v4/index.js";
6
- import h from "../tooltip/v4/TooltipV4.vue.js";
7
- import { useTestIdAttrs as k } from "../../utils/testIds.js";
6
+ import B from "../tooltip/v4/TooltipV4.vue.js";
7
+ import { useTestIdAttrs as _ } from "../../utils/testIds.js";
8
8
  import { InlineCopyTestIdModifiers as r } from "../../testids/index.js";
9
- const P = /* @__PURE__ */ u({
9
+ const M = /* @__PURE__ */ d({
10
10
  __name: "InlineCopy",
11
11
  props: {
12
12
  text: { default: "" },
13
13
  size: { default: "small" },
14
- testId: { default: "" }
14
+ testId: { default: "" },
15
+ hideTextValue: { type: Boolean, default: !1 }
15
16
  },
16
- setup(s) {
17
- const e = s, { copy: a, copied: p } = _({}), l = d(() => {
18
- switch (e.size) {
17
+ setup(t) {
18
+ const o = t, { copy: n, copied: p } = V({}), m = f(() => {
19
+ switch (o.size) {
19
20
  case "medium":
20
21
  return "0.875rem";
21
22
  case "small":
22
23
  default:
23
24
  return "0.75rem";
24
25
  }
25
- }), m = async () => {
26
- await a(e.text), p.value && z({
26
+ }), u = async () => {
27
+ await n(o.text), p.value && z({
27
28
  title: "Copied successfully",
28
29
  type: "success",
29
30
  duration: 2e3
30
31
  });
31
- }, i = k(e.testId, r);
32
- return (S, b) => (f(), y("div", {
32
+ }, a = _(o.testId, r);
33
+ return (N, S) => (s(), y("div", {
33
34
  class: "inline-copy",
34
- onClick: m
35
+ onClick: u
35
36
  }, [
36
- o(t(T), c({
37
+ t.hideTextValue ? I("", !0) : (s(), x(e(k), i({
38
+ key: 0,
37
39
  variant: "caption",
38
- style: { fontSize: t(l) }
39
- }, t(i)[t(r).TEXT]), {
40
- default: n(() => [
41
- x(C(s.text), 1)
40
+ style: { fontSize: e(m) }
41
+ }, e(a)[e(r).TEXT]), {
42
+ default: c(() => [
43
+ C(T(t.text), 1)
42
44
  ]),
43
45
  _: 1
44
- }, 16, ["style"]),
45
- o(t(h), { text: "Copy to clipboar" }, {
46
- default: n(() => [
47
- o(t(I), c({
46
+ }, 16, ["style"])),
47
+ l(e(B), { text: "Copy to clipboar" }, {
48
+ default: c(() => [
49
+ l(e(h), i({
48
50
  class: "icon-copy",
49
51
  name: "copy",
50
52
  size: "16px"
51
- }, t(i)[t(r).COPY_BTN]), null, 16)
53
+ }, e(a)[e(r).COPY_BTN]), null, 16)
52
54
  ]),
53
55
  _: 1
54
56
  })
@@ -56,5 +58,5 @@ const P = /* @__PURE__ */ u({
56
58
  }
57
59
  });
58
60
  export {
59
- P as default
61
+ M as default
60
62
  };
@@ -15,6 +15,11 @@ declare const InlineCopyTypes: () => import("vue").DefineComponent<{
15
15
  required: true;
16
16
  default: string;
17
17
  };
18
+ hideTextValue: {
19
+ type: import("vue").PropType<boolean>;
20
+ required: true;
21
+ default: boolean;
22
+ };
18
23
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
24
  text: {
20
25
  type: import("vue").PropType<string>;
@@ -31,9 +36,15 @@ declare const InlineCopyTypes: () => import("vue").DefineComponent<{
31
36
  required: true;
32
37
  default: string;
33
38
  };
39
+ hideTextValue: {
40
+ type: import("vue").PropType<boolean>;
41
+ required: true;
42
+ default: boolean;
43
+ };
34
44
  }>>, {
35
45
  text: string;
36
46
  size: "small" | "medium";
37
47
  testId: string;
48
+ hideTextValue: boolean;
38
49
  }>[];
39
50
  export { InlineCopy, InlineCopyTypes };
package/index.d.ts CHANGED
@@ -67,6 +67,11 @@ declare const _default: {
67
67
  required: true;
68
68
  default: string;
69
69
  };
70
+ hideTextValue: {
71
+ type: import("vue").PropType<boolean>;
72
+ required: true;
73
+ default: boolean;
74
+ };
70
75
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
71
76
  text: {
72
77
  type: import("vue").PropType<string>;
@@ -83,10 +88,16 @@ declare const _default: {
83
88
  required: true;
84
89
  default: string;
85
90
  };
91
+ hideTextValue: {
92
+ type: import("vue").PropType<boolean>;
93
+ required: true;
94
+ default: boolean;
95
+ };
86
96
  }>>, {
87
97
  text: string;
88
98
  size: "small" | "medium";
89
99
  testId: string;
100
+ hideTextValue: boolean;
90
101
  }>;
91
102
  InlineCopyTypes: () => import("vue").DefineComponent<{
92
103
  text: {
@@ -104,6 +115,11 @@ declare const _default: {
104
115
  required: true;
105
116
  default: string;
106
117
  };
118
+ hideTextValue: {
119
+ type: import("vue").PropType<boolean>;
120
+ required: true;
121
+ default: boolean;
122
+ };
107
123
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
108
124
  text: {
109
125
  type: import("vue").PropType<string>;
@@ -120,10 +136,16 @@ declare const _default: {
120
136
  required: true;
121
137
  default: string;
122
138
  };
139
+ hideTextValue: {
140
+ type: import("vue").PropType<boolean>;
141
+ required: true;
142
+ default: boolean;
143
+ };
123
144
  }>>, {
124
145
  text: string;
125
146
  size: "small" | "medium";
126
147
  testId: string;
148
+ hideTextValue: boolean;
127
149
  }>[];
128
150
  AppHeader: import("vue").DefineComponent<{
129
151
  name: {
@@ -131,6 +153,10 @@ declare const _default: {
131
153
  required: true;
132
154
  default: string;
133
155
  };
156
+ type: {
157
+ type: import("vue").PropType<"small" | "normal">;
158
+ default: string;
159
+ };
134
160
  image: {
135
161
  type: import("vue").PropType<string>;
136
162
  required: true;
@@ -157,6 +183,10 @@ declare const _default: {
157
183
  required: true;
158
184
  default: string;
159
185
  };
186
+ type: {
187
+ type: import("vue").PropType<"small" | "normal">;
188
+ default: string;
189
+ };
160
190
  image: {
161
191
  type: import("vue").PropType<string>;
162
192
  required: true;
@@ -179,6 +209,7 @@ declare const _default: {
179
209
  };
180
210
  }>>, {
181
211
  name: string;
212
+ type: "small" | "normal";
182
213
  image: string;
183
214
  testId: string;
184
215
  platform: "android" | "ios";
@@ -190,6 +221,10 @@ declare const _default: {
190
221
  required: true;
191
222
  default: string;
192
223
  };
224
+ type: {
225
+ type: import("vue").PropType<"small" | "normal">;
226
+ default: string;
227
+ };
193
228
  image: {
194
229
  type: import("vue").PropType<string>;
195
230
  required: true;
@@ -216,6 +251,10 @@ declare const _default: {
216
251
  required: true;
217
252
  default: string;
218
253
  };
254
+ type: {
255
+ type: import("vue").PropType<"small" | "normal">;
256
+ default: string;
257
+ };
219
258
  image: {
220
259
  type: import("vue").PropType<string>;
221
260
  required: true;
@@ -238,6 +277,7 @@ declare const _default: {
238
277
  };
239
278
  }>>, {
240
279
  name: string;
280
+ type: "small" | "normal";
241
281
  image: string;
242
282
  testId: string;
243
283
  platform: "android" | "ios";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ironsource/shared-ui",
3
- "version": "2.1.2-rc.0",
3
+ "version": "2.1.2",
4
4
  "engines": {
5
5
  "npm": ">=7.0.0",
6
6
  "node": ">=16.0.0"
@@ -1 +0,0 @@
1
- .app-header[data-v-5afbd3dd]{display:flex}.app-header .image-container[data-v-5afbd3dd]{height:48px;width:48px;border-radius:4px}.app-header .image-container img[data-v-5afbd3dd]{min-width:100%;object-fit:cover;border-radius:4px}.app-header .icon-container[data-v-5afbd3dd]{color:var(--action-active);display:flex;align-items:center;padding:0 8px}.app-header .name-container .title[data-v-5afbd3dd]{color:var(--text-primary)}.app-header .name-container .inline-copy[data-v-5afbd3dd]{color:var(--text-secondary)}
@@ -1 +0,0 @@
1
- .inline-copy[data-v-39577dfc]{display:inline-flex;cursor:pointer;color:var(--action-active)}.inline-copy .icon-copy[data-v-39577dfc]{padding:0 4px;cursor:pointer;color:var(--action-active)}.inline-copy .icon-copy[data-v-39577dfc]:hover{color:var(--action-primary)}