@ironsource/shared-ui 2.1.6-rc.25 → 2.1.6-rc.28

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
+ .alert[data-v-a9f0dfcc]{padding:var(--spacing-150) var(--spacing-200);display:flex;align-items:center}.alert--rounded[data-v-a9f0dfcc]{border-radius:var(--border-radius-lg)}.alert--success[data-v-a9f0dfcc]{outline-color:var(--success-main);background-color:var(--success-lighter)}.alert--success .alert-icon[data-v-a9f0dfcc]{color:var(--success-main)}.alert--warning[data-v-a9f0dfcc]{outline-color:var(--warning-main);background-color:var(--warning-lighter)}.alert--warning .alert-icon[data-v-a9f0dfcc]{color:var(--warning-main)}.alert--danger[data-v-a9f0dfcc]{outline-color:var(--error-main);background-color:var(--error-lighter)}.alert--danger .alert-icon[data-v-a9f0dfcc]{color:var(--error-main)}.alert--info[data-v-a9f0dfcc]{outline-color:var(--info-main);background-color:var(--info-lighter)}.alert--info .alert-icon[data-v-a9f0dfcc]{color:var(--info-main)}.alert--standard[data-v-a9f0dfcc]{outline:none}.alert--outlined[data-v-a9f0dfcc]{background-color:var(--common-white);outline-width:1px;outline-offset:-1px;outline-style:solid}.alert-icon--align-top[data-v-a9f0dfcc]{align-self:flex-start}.alert-content[data-v-a9f0dfcc]{flex:1;margin:0 var(--spacing-150)}.alert-title[data-v-a9f0dfcc]{color:var(--text-primary);line-height:20px}.alert-description[data-v-a9f0dfcc]{color:var(--text-secondary)}.close-button[data-v-a9f0dfcc]{margin-left:var(--spacing-100)}
@@ -5,6 +5,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
5
5
  variant?: "outlined" | "standard";
6
6
  dismissible?: boolean;
7
7
  actionText?: string;
8
+ actionIconName?: string;
8
9
  rounded?: boolean;
9
10
  testId?: string;
10
11
  }>, {
@@ -14,10 +15,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
14
15
  color: string;
15
16
  dismissible: boolean;
16
17
  actionText: string;
18
+ actionIconName: any;
17
19
  rounded: boolean;
18
20
  testId: string;
19
21
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
22
  close: () => void;
23
+ actionButtonClick: () => void;
21
24
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
22
25
  title?: string;
23
26
  description?: string;
@@ -25,6 +28,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
25
28
  variant?: "outlined" | "standard";
26
29
  dismissible?: boolean;
27
30
  actionText?: string;
31
+ actionIconName?: string;
28
32
  rounded?: boolean;
29
33
  testId?: string;
30
34
  }>, {
@@ -34,10 +38,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
34
38
  color: string;
35
39
  dismissible: boolean;
36
40
  actionText: string;
41
+ actionIconName: any;
37
42
  rounded: boolean;
38
43
  testId: string;
39
44
  }>>> & {
40
45
  onClose?: () => any;
46
+ onActionButtonClick?: () => any;
41
47
  }, {
42
48
  title: string;
43
49
  variant: "outlined" | "standard";
@@ -46,6 +52,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
46
52
  description: string;
47
53
  dismissible: boolean;
48
54
  actionText: string;
55
+ actionIconName: string;
49
56
  rounded: boolean;
50
57
  }>, {
51
58
  default?(_: {}): any;
@@ -1,7 +1,7 @@
1
1
  import o from "./Alert.vue2.js";
2
2
  /* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../Alert.vue_vue_type_style_index_0_scoped_d6680a72_lang.css"; //*');
4
- const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-d6680a72"]]);
3
+ // import "../../Alert.vue_vue_type_style_index_0_scoped_a9f0dfcc_lang.css"; //*');
4
+ const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-a9f0dfcc"]]);
5
5
  export {
6
- p as default
6
+ s as default
7
7
  };
@@ -1,11 +1,11 @@
1
- import "../../Alert.vue_vue_type_style_index_0_scoped_d6680a72_lang.css"; import { defineComponent as B, computed as I, openBlock as l, createElementBlock as u, mergeProps as a, unref as e, createVNode as m, normalizeClass as v, createElementVNode as x, createBlock as s, withCtx as f, createTextVNode as N, toDisplayString as T, createCommentVNode as i, renderSlot as A } from "vue";
1
+ import "../../Alert.vue_vue_type_style_index_0_scoped_a9f0dfcc_lang.css"; import { defineComponent as C, computed as N, openBlock as l, createElementBlock as m, mergeProps as a, unref as t, createVNode as f, normalizeClass as g, createElementVNode as v, createBlock as s, withCtx as T, createTextVNode as x, toDisplayString as k, createCommentVNode as c, renderSlot as A } from "vue";
2
2
  import y from "../typography/v4/Typography.vue.js";
3
- import C from "../icon/v4/IconV4.vue.js";
4
- import E from "../button/v4/ButtonV4.vue.js";
5
- import p from "../button/v4/IconButtonV4.vue.js";
6
- import { useTestIdAttrs as h } from "../../utils/testIds.js";
7
- import { AlertTestIdModifiers as o } from "../../testids/index.js";
8
- const S = { class: "alert-content" }, b = { key: 0 }, R = /* @__PURE__ */ B({
3
+ import E from "../icon/v4/IconV4.vue.js";
4
+ import S from "../button/v4/ButtonV4.vue.js";
5
+ import $ from "../button/v4/IconButtonV4.vue.js";
6
+ import { useTestIdAttrs as b } from "../../utils/testIds.js";
7
+ import { AlertTestIdModifiers as n } from "../../testids/index.js";
8
+ const p = { class: "alert-content" }, w = { key: 0 }, R = /* @__PURE__ */ C({
9
9
  __name: "Alert",
10
10
  props: {
11
11
  title: { default: "" },
@@ -14,71 +14,75 @@ const S = { class: "alert-content" }, b = { key: 0 }, R = /* @__PURE__ */ B({
14
14
  variant: { default: "standard" },
15
15
  dismissible: { type: Boolean, default: !1 },
16
16
  actionText: { default: "" },
17
+ actionIconName: { default: null },
17
18
  rounded: { type: Boolean, default: !0 },
18
19
  testId: { default: "" }
19
20
  },
20
- emits: ["close"],
21
- setup(t, { emit: g }) {
22
- const c = t, k = I(() => {
23
- const r = {
21
+ emits: ["close", "actionButtonClick"],
22
+ setup(e, { emit: d }) {
23
+ const u = e, B = N(() => {
24
+ const i = {
24
25
  success: "check-circle",
25
26
  warning: "warning",
26
27
  danger: "warning-octagon",
27
28
  info: "info"
28
29
  };
29
- return r[c.color] || r.success;
30
- }), n = h(c.testId, o);
31
- return (r, d) => (l(), u("div", a({
30
+ return i[u.color] || i.success;
31
+ }), o = b(u.testId, n);
32
+ return (i, r) => (l(), m("div", a({
32
33
  class: ["alert", {
33
- [`alert--${t.color}`]: !0,
34
- [`alert--${t.variant}`]: !0,
35
- "alert--rounded": t.rounded
34
+ [`alert--${e.color}`]: !0,
35
+ [`alert--${e.variant}`]: !0,
36
+ "alert--rounded": e.rounded
36
37
  }]
37
- }, e(n)[e(o).WRAPPER]), [
38
- m(e(C), {
39
- name: e(k),
40
- class: v(["alert-icon", { "alert-icon--align-top": t.title && t.description }]),
38
+ }, t(o)[t(n).WRAPPER]), [
39
+ f(t(E), {
40
+ name: t(B),
41
+ class: g(["alert-icon", { "alert-icon--align-top": e.title && e.description }]),
41
42
  type: "fill",
42
43
  size: "20px"
43
44
  }, null, 8, ["name", "class"]),
44
- x("div", S, [
45
- t.title ? (l(), s(e(y), a({
45
+ v("div", p, [
46
+ e.title ? (l(), s(t(y), a({
46
47
  key: 0,
47
48
  class: "alert-title",
48
49
  variant: "h4"
49
- }, e(n)[e(o).TITLE]), {
50
- default: f(() => [
51
- N(T(t.title), 1)
50
+ }, t(o)[t(n).TITLE]), {
51
+ default: T(() => [
52
+ x(k(e.title), 1)
52
53
  ]),
53
54
  _: 1
54
- }, 16)) : i("", !0),
55
- m(e(y), a({
55
+ }, 16)) : c("", !0),
56
+ f(t(y), a({
56
57
  class: "alert-description",
57
58
  variant: "body1"
58
- }, e(n)[e(o).MESSAGE]), {
59
- default: f(() => [
60
- A(r.$slots, "default", {}, () => [
61
- t.description ? (l(), u("span", b, T(t.description), 1)) : i("", !0)
59
+ }, t(o)[t(n).MESSAGE]), {
60
+ default: T(() => [
61
+ A(i.$slots, "default", {}, () => [
62
+ e.description ? (l(), m("span", w, k(e.description), 1)) : c("", !0)
62
63
  ], !0)
63
64
  ]),
64
65
  _: 3
65
66
  }, 16)
66
67
  ]),
67
- t.actionText ? (l(), s(e(E), a({
68
+ e.actionText ? (l(), s(t(S), a({
68
69
  key: 0,
69
70
  variant: "outlined",
70
- content: t.actionText,
71
- color: t.color,
71
+ content: e.actionText,
72
+ "end-icon-name": e.actionIconName,
73
+ color: e.color,
72
74
  size: "small"
73
- }, e(n)[e(o).ACTION_BUTTON]), null, 16, ["content", "color"])) : i("", !0),
74
- t.dismissible ? (l(), s(e(p), a({
75
+ }, t(o)[t(n).ACTION_BUTTON], {
76
+ onClick: r[0] || (r[0] = (I) => d("actionButtonClick"))
77
+ }), null, 16, ["content", "end-icon-name", "color"])) : c("", !0),
78
+ e.dismissible ? (l(), s(t($), a({
75
79
  key: 1,
76
80
  class: "close-button",
77
81
  "icon-name": "x",
78
82
  size: "small"
79
- }, e(n)[e(o).CLOSE_BUTTON], {
80
- onClick: d[0] || (d[0] = (w) => g("close"))
81
- }), null, 16)) : i("", !0)
83
+ }, t(o)[t(n).CLOSE_BUTTON], {
84
+ onClick: r[1] || (r[1] = (I) => d("close"))
85
+ }), null, 16)) : c("", !0)
82
86
  ], 16));
83
87
  }
84
88
  });
@@ -11,6 +11,7 @@ declare const AlertTypes: () => ({
11
11
  description: string;
12
12
  dismissible: boolean;
13
13
  actionText: string;
14
+ actionIconName: string;
14
15
  rounded: boolean;
15
16
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
16
17
  title: {
@@ -41,13 +42,18 @@ declare const AlertTypes: () => ({
41
42
  type: import("vue").PropType<string>;
42
43
  default: string;
43
44
  };
45
+ actionIconName: {
46
+ type: import("vue").PropType<string>;
47
+ default: any;
48
+ };
44
49
  rounded: {
45
50
  type: import("vue").PropType<boolean>;
46
51
  default: boolean;
47
52
  };
48
53
  }>> & {
49
54
  onClose?: () => any;
50
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "variant" | "color" | "testId" | "description" | "dismissible" | "actionText" | "rounded">;
55
+ onActionButtonClick?: () => any;
56
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "variant" | "color" | "testId" | "description" | "dismissible" | "actionText" | "actionIconName" | "rounded">;
51
57
  $attrs: {
52
58
  [x: string]: unknown;
53
59
  };
@@ -59,7 +65,7 @@ declare const AlertTypes: () => ({
59
65
  }>;
60
66
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
61
67
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
62
- $emit: (event: "close") => void;
68
+ $emit: ((event: "close") => void) & ((event: "actionButtonClick") => void);
63
69
  $el: any;
64
70
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
65
71
  title: {
@@ -90,14 +96,20 @@ declare const AlertTypes: () => ({
90
96
  type: import("vue").PropType<string>;
91
97
  default: string;
92
98
  };
99
+ actionIconName: {
100
+ type: import("vue").PropType<string>;
101
+ default: any;
102
+ };
93
103
  rounded: {
94
104
  type: import("vue").PropType<boolean>;
95
105
  default: boolean;
96
106
  };
97
107
  }>> & {
98
108
  onClose?: () => any;
109
+ onActionButtonClick?: () => any;
99
110
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
100
111
  close: () => void;
112
+ actionButtonClick: () => void;
101
113
  }, string, {
102
114
  title: string;
103
115
  variant: "outlined" | "standard";
@@ -106,6 +118,7 @@ declare const AlertTypes: () => ({
106
118
  description: string;
107
119
  dismissible: boolean;
108
120
  actionText: string;
121
+ actionIconName: string;
109
122
  rounded: boolean;
110
123
  }, {}, string> & {
111
124
  beforeCreate?: (() => void) | (() => void)[];
@@ -156,12 +169,17 @@ declare const AlertTypes: () => ({
156
169
  type: import("vue").PropType<string>;
157
170
  default: string;
158
171
  };
172
+ actionIconName: {
173
+ type: import("vue").PropType<string>;
174
+ default: any;
175
+ };
159
176
  rounded: {
160
177
  type: import("vue").PropType<boolean>;
161
178
  default: boolean;
162
179
  };
163
180
  }>> & {
164
181
  onClose?: () => any;
182
+ onActionButtonClick?: () => any;
165
183
  } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
166
184
  __isFragment?: never;
167
185
  __isTeleport?: never;
@@ -195,14 +213,20 @@ declare const AlertTypes: () => ({
195
213
  type: import("vue").PropType<string>;
196
214
  default: string;
197
215
  };
216
+ actionIconName: {
217
+ type: import("vue").PropType<string>;
218
+ default: any;
219
+ };
198
220
  rounded: {
199
221
  type: import("vue").PropType<boolean>;
200
222
  default: boolean;
201
223
  };
202
224
  }>> & {
203
225
  onClose?: () => any;
226
+ onActionButtonClick?: () => any;
204
227
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
205
228
  close: () => void;
229
+ actionButtonClick: () => void;
206
230
  }, string, {
207
231
  title: string;
208
232
  variant: "outlined" | "standard";
@@ -211,6 +235,7 @@ declare const AlertTypes: () => ({
211
235
  description: string;
212
236
  dismissible: boolean;
213
237
  actionText: string;
238
+ actionIconName: string;
214
239
  rounded: boolean;
215
240
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
216
241
  $slots: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ironsource/shared-ui",
3
- "version": "2.1.6-rc.25",
3
+ "version": "2.1.6-rc.28",
4
4
  "engines": {
5
5
  "npm": ">=7.0.0",
6
6
  "node": ">=16.0.0"
@@ -1 +0,0 @@
1
- .alert[data-v-d6680a72]{padding:var(--spacing-150) var(--spacing-200);display:flex;align-items:center}.alert--rounded[data-v-d6680a72]{border-radius:var(--border-radius-lg)}.alert--success[data-v-d6680a72]{outline-color:var(--success-main);background-color:var(--success-lighter)}.alert--success .alert-icon[data-v-d6680a72]{color:var(--success-main)}.alert--warning[data-v-d6680a72]{outline-color:var(--warning-main);background-color:var(--warning-lighter)}.alert--warning .alert-icon[data-v-d6680a72]{color:var(--warning-main)}.alert--danger[data-v-d6680a72]{outline-color:var(--error-main);background-color:var(--error-lighter)}.alert--danger .alert-icon[data-v-d6680a72]{color:var(--error-main)}.alert--info[data-v-d6680a72]{outline-color:var(--info-main);background-color:var(--info-lighter)}.alert--info .alert-icon[data-v-d6680a72]{color:var(--info-main)}.alert--standard[data-v-d6680a72]{outline:none}.alert--outlined[data-v-d6680a72]{background-color:var(--common-white);outline-width:1px;outline-offset:-1px;outline-style:solid}.alert-icon--align-top[data-v-d6680a72]{align-self:flex-start}.alert-content[data-v-d6680a72]{flex:1;margin:0 var(--spacing-150)}.alert-title[data-v-d6680a72]{color:var(--text-primary);line-height:20px}.alert-description[data-v-d6680a72]{color:var(--text-secondary)}.close-button[data-v-d6680a72]{margin-left:var(--spacing-100)}