@ironsource/shared-ui 2.1.3-rc.0 → 2.1.3-rc.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.
@@ -0,0 +1 @@
1
+ .app-header[data-v-209ecc03]{display:flex}.app-header .image-container[data-v-209ecc03]{height:48px;width:48px;border-radius:4px}.app-header .image-container img[data-v-209ecc03]{min-width:100%;max-width:100%;max-height:100%;object-fit:cover;border-radius:4px}.app-header .icon-container[data-v-209ecc03]{color:var(--action-active);display:flex;align-items:center;padding:0 8px}.app-header .name-container .title[data-v-209ecc03]{color:var(--text-primary)}.app-header .name-container .inline-copy[data-v-209ecc03]{color:var(--text-secondary)}.app-header.size-small[data-v-209ecc03]{align-items:center}.app-header.size-small .image-container[data-v-209ecc03]{height:28px;width:28px;border-radius:6px}.app-header.size-small .image-container img[data-v-209ecc03]{border-radius:6px}.app-header.size-small .name-container[data-v-209ecc03]{display:flex}
@@ -0,0 +1 @@
1
+ .inline-copy[data-v-2f0a0202]{display:inline-flex;cursor:pointer;color:var(--action-active)}.inline-copy .icon-copy[data-v-2f0a0202]{padding:0 4px;cursor:pointer;color:var(--action-active)}.inline-copy .icon-copy[data-v-2f0a0202]:hover{color:var(--action-primary)}
@@ -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_aa538d40_lang.css"; //*');
4
- const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-aa538d40"]]);
3
+ // import "../../AppHeader.vue_vue_type_style_index_0_scoped_209ecc03_lang.css"; //*');
4
+ const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-209ecc03"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -1,10 +1,10 @@
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";
1
+ import "../../AppHeader.vue_vue_type_style_index_0_scoped_209ecc03_lang.css"; import { defineComponent as m, computed as r, openBlock as d, createElementBlock as c, normalizeClass as p, createElementVNode as a, createVNode as i, unref as t, mergeProps as u, withCtx as f, createTextVNode as y, toDisplayString as h } from "vue";
2
2
  import x from "../icon/v4/IconV4.vue.js";
3
3
  import v from "../typography/v4/Typography.vue.js";
4
4
  import I from "../inlineCopy/InlineCopy.vue.js";
5
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({
6
+ import { AppHeaderTestIdModifiers as o } from "../../testids/index.js";
7
+ const z = { class: "image-container" }, T = ["src", "alt"], C = { class: "icon-container" }, A = { class: "name-container" }, K = /* @__PURE__ */ m({
8
8
  __name: "AppHeader",
9
9
  props: {
10
10
  image: { default: "" },
@@ -15,43 +15,44 @@ const T = { class: "image-container" }, z = ["src", "alt"], C = { class: "icon-c
15
15
  type: { default: "normal" }
16
16
  },
17
17
  setup(e) {
18
- const n = e, l = d(
18
+ const n = e, l = r(
19
19
  () => n.platform ? n.platform.toLowerCase() : ""
20
- ), s = g(n.testId, i);
21
- return (N, E) => (m(), c("div", {
20
+ ), s = g(n.testId, o);
21
+ return (N, E) => (d(), c("div", {
22
22
  class: p(["app-header", `size-${e.type}`])
23
23
  }, [
24
- a("div", T, [
24
+ a("div", z, [
25
25
  a("img", {
26
26
  src: e.image,
27
27
  alt: e.name
28
- }, null, 8, z)
28
+ }, null, 8, T)
29
29
  ]),
30
30
  a("div", C, [
31
- o(t(x), {
31
+ i(t(x), {
32
32
  type: "branded",
33
33
  name: t(l),
34
34
  size: e.type === "normal" ? "24px" : "20px"
35
35
  }, null, 8, ["name", "size"])
36
36
  ]),
37
37
  a("div", A, [
38
- o(t(v), f({
38
+ i(t(v), u({
39
39
  variant: e.type === "normal" ? "h2" : "button",
40
40
  class: "title"
41
- }, t(s)[t(i).TITLE]), {
42
- default: u(() => [
41
+ }, t(s)[t(o).TITLE]), {
42
+ default: f(() => [
43
43
  y(h(e.name), 1)
44
44
  ]),
45
45
  _: 1
46
46
  }, 16, ["variant"]),
47
47
  a("div", null, [
48
- o(t(I), {
48
+ i(t(I), {
49
49
  text: e.appKey,
50
50
  size: "medium",
51
51
  class: "inline-copy",
52
52
  "hide-text-value": e.type === "small",
53
- "test-id": e.testId
54
- }, null, 8, ["text", "hide-text-value", "test-id"])
53
+ "test-id": e.testId,
54
+ "icon-size": e.type === "small" ? "18px" : null
55
+ }, null, 8, ["text", "hide-text-value", "test-id", "icon-size"])
55
56
  ])
56
57
  ])
57
58
  ], 2));
@@ -3,26 +3,31 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
3
3
  size: 'small' | 'medium';
4
4
  testId: string;
5
5
  hideTextValue: boolean;
6
+ iconSize?: string;
6
7
  }>, {
7
8
  size: string;
8
9
  text: string;
9
10
  testId: string;
10
11
  hideTextValue: boolean;
12
+ iconSize: any;
11
13
  }>, {}, 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<{
12
14
  text: string;
13
15
  size: 'small' | 'medium';
14
16
  testId: string;
15
17
  hideTextValue: boolean;
18
+ iconSize?: string;
16
19
  }>, {
17
20
  size: string;
18
21
  text: string;
19
22
  testId: string;
20
23
  hideTextValue: boolean;
24
+ iconSize: any;
21
25
  }>>>, {
22
26
  text: string;
23
27
  size: 'small' | 'medium';
24
28
  testId: string;
25
29
  hideTextValue: boolean;
30
+ iconSize: string;
26
31
  }>;
27
32
  export default _default;
28
33
  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_117ac157_lang.css"; //*');
4
- const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-117ac157"]]);
3
+ // import "../../InlineCopy.vue_vue_type_style_index_0_scoped_2f0a0202_lang.css"; //*');
4
+ const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-2f0a0202"]]);
5
5
  export {
6
6
  t as default
7
7
  };
@@ -1,21 +1,22 @@
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
- import { Snackbar as z } from "../snackbar/v4/index.js";
6
- import B from "../tooltip/v4/TooltipV4.vue.js";
7
- import { useTestIdAttrs as _ } from "../../utils/testIds.js";
8
- import { InlineCopyTestIdModifiers as r } from "../../testids/index.js";
1
+ import "../../InlineCopy.vue_vue_type_style_index_0_scoped_2f0a0202_lang.css"; import { defineComponent as d, computed as f, openBlock as a, createElementBlock as y, createBlock as x, unref as e, mergeProps as c, withCtx as s, createTextVNode as C, toDisplayString as T, createCommentVNode as z, createVNode as l } from "vue";
2
+ import I from "../icon/v4/IconV4.vue.js";
3
+ import h from "../typography/v4/Typography.vue.js";
4
+ import { useClipboard as k } from "@vueuse/core";
5
+ import { Snackbar as S } from "../snackbar/v4/index.js";
6
+ import V from "../tooltip/v4/TooltipV4.vue.js";
7
+ import { useTestIdAttrs as B } from "../../utils/testIds.js";
8
+ import { InlineCopyTestIdModifiers as i } from "../../testids/index.js";
9
9
  const M = /* @__PURE__ */ d({
10
10
  __name: "InlineCopy",
11
11
  props: {
12
12
  text: { default: "" },
13
13
  size: { default: "small" },
14
14
  testId: { default: "" },
15
- hideTextValue: { type: Boolean, default: !1 }
15
+ hideTextValue: { type: Boolean, default: !1 },
16
+ iconSize: { default: null }
16
17
  },
17
18
  setup(t) {
18
- const o = t, { copy: n, copied: p } = V({}), m = f(() => {
19
+ const o = t, { copy: n, copied: p } = k({}), m = f(() => {
19
20
  switch (o.size) {
20
21
  case "medium":
21
22
  return "0.875rem";
@@ -24,33 +25,33 @@ const M = /* @__PURE__ */ d({
24
25
  return "0.75rem";
25
26
  }
26
27
  }), u = async () => {
27
- await n(o.text), p.value && z({
28
+ await n(o.text), p.value && S({
28
29
  title: "Copied successfully",
29
30
  type: "success",
30
31
  duration: 2e3
31
32
  });
32
- }, a = _(o.testId, r);
33
- return (N, S) => (s(), y("div", {
33
+ }, r = B(o.testId, i);
34
+ return (N, b) => (a(), y("div", {
34
35
  class: "inline-copy",
35
36
  onClick: u
36
37
  }, [
37
- t.hideTextValue ? I("", !0) : (s(), x(e(k), i({
38
+ t.hideTextValue ? z("", !0) : (a(), x(e(h), c({
38
39
  key: 0,
39
40
  variant: "caption",
40
41
  style: { fontSize: e(m) }
41
- }, e(a)[e(r).TEXT]), {
42
- default: c(() => [
42
+ }, e(r)[e(i).TEXT]), {
43
+ default: s(() => [
43
44
  C(T(t.text), 1)
44
45
  ]),
45
46
  _: 1
46
47
  }, 16, ["style"])),
47
- l(e(B), { text: "Copy to clipboar" }, {
48
- default: c(() => [
49
- l(e(h), i({
48
+ l(e(V), { text: "Copy to clipboar" }, {
49
+ default: s(() => [
50
+ l(e(I), c({
50
51
  class: "icon-copy",
51
52
  name: "copy",
52
- size: "16px"
53
- }, e(a)[e(r).COPY_BTN]), null, 16)
53
+ size: t.iconSize || "16px"
54
+ }, e(r)[e(i).COPY_BTN]), null, 16, ["size"])
54
55
  ]),
55
56
  _: 1
56
57
  })
@@ -20,6 +20,10 @@ declare const InlineCopyTypes: () => import("vue").DefineComponent<{
20
20
  required: true;
21
21
  default: boolean;
22
22
  };
23
+ iconSize: {
24
+ type: import("vue").PropType<string>;
25
+ default: any;
26
+ };
23
27
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
24
28
  text: {
25
29
  type: import("vue").PropType<string>;
@@ -41,10 +45,15 @@ declare const InlineCopyTypes: () => import("vue").DefineComponent<{
41
45
  required: true;
42
46
  default: boolean;
43
47
  };
48
+ iconSize: {
49
+ type: import("vue").PropType<string>;
50
+ default: any;
51
+ };
44
52
  }>>, {
45
53
  text: string;
46
54
  size: "small" | "medium";
47
55
  testId: string;
48
56
  hideTextValue: boolean;
57
+ iconSize: string;
49
58
  }>[];
50
59
  export { InlineCopy, InlineCopyTypes };
package/index.d.ts CHANGED
@@ -72,6 +72,10 @@ declare const _default: {
72
72
  required: true;
73
73
  default: boolean;
74
74
  };
75
+ iconSize: {
76
+ type: import("vue").PropType<string>;
77
+ default: any;
78
+ };
75
79
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
76
80
  text: {
77
81
  type: import("vue").PropType<string>;
@@ -93,11 +97,16 @@ declare const _default: {
93
97
  required: true;
94
98
  default: boolean;
95
99
  };
100
+ iconSize: {
101
+ type: import("vue").PropType<string>;
102
+ default: any;
103
+ };
96
104
  }>>, {
97
105
  text: string;
98
106
  size: "small" | "medium";
99
107
  testId: string;
100
108
  hideTextValue: boolean;
109
+ iconSize: string;
101
110
  }>;
102
111
  InlineCopyTypes: () => import("vue").DefineComponent<{
103
112
  text: {
@@ -120,6 +129,10 @@ declare const _default: {
120
129
  required: true;
121
130
  default: boolean;
122
131
  };
132
+ iconSize: {
133
+ type: import("vue").PropType<string>;
134
+ default: any;
135
+ };
123
136
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
124
137
  text: {
125
138
  type: import("vue").PropType<string>;
@@ -141,11 +154,16 @@ declare const _default: {
141
154
  required: true;
142
155
  default: boolean;
143
156
  };
157
+ iconSize: {
158
+ type: import("vue").PropType<string>;
159
+ default: any;
160
+ };
144
161
  }>>, {
145
162
  text: string;
146
163
  size: "small" | "medium";
147
164
  testId: string;
148
165
  hideTextValue: boolean;
166
+ iconSize: string;
149
167
  }>[];
150
168
  AppHeader: import("vue").DefineComponent<{
151
169
  name: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ironsource/shared-ui",
3
- "version": "2.1.3-rc.0",
3
+ "version": "2.1.3-rc.1",
4
4
  "engines": {
5
5
  "npm": ">=7.0.0",
6
6
  "node": ">=16.0.0"
@@ -1 +0,0 @@
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}
@@ -1 +0,0 @@
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)}