@ironsource/shared-ui 2.1.6-rc.40 → 2.1.6-rc.42

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-06e0871a]{padding:var(--spacing-150) var(--spacing-200);display:flex;align-items:center}.alert--rounded[data-v-06e0871a]{border-radius:var(--border-radius-lg)}.alert--success[data-v-06e0871a]{outline-color:var(--success-main);background-color:var(--success-lighter)}.alert--success .alert-icon[data-v-06e0871a]{color:var(--success-main)}.alert--warning[data-v-06e0871a]{outline-color:var(--warning-main);background-color:var(--warning-lighter)}.alert--warning .alert-icon[data-v-06e0871a]{color:var(--warning-main)}.alert--danger[data-v-06e0871a]{outline-color:var(--error-main);background-color:var(--error-lighter)}.alert--danger .alert-icon[data-v-06e0871a]{color:var(--error-main)}.alert--info[data-v-06e0871a]{outline-color:var(--info-main);background-color:var(--info-lighter)}.alert--info .alert-icon[data-v-06e0871a]{color:var(--info-main)}.alert--standard[data-v-06e0871a]{outline:none}.alert--outlined[data-v-06e0871a]{background-color:var(--common-white);outline-width:1px;outline-offset:-1px;outline-style:solid}.alert-icon--align-top[data-v-06e0871a]{align-self:flex-start}.alert-content[data-v-06e0871a]{flex:1;margin:0 var(--spacing-150)}.alert-content--no-icon[data-v-06e0871a]{margin-left:var(--spacing-100)}.title-container[data-v-06e0871a]{display:flex;align-items:center}.alert-title[data-v-06e0871a]{color:var(--text-primary);line-height:20px}.alert-description[data-v-06e0871a]{color:var(--text-secondary)}.close-button[data-v-06e0871a]{margin-left:var(--spacing-100)}
@@ -5,8 +5,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
5
5
  variant?: "outlined" | "standard";
6
6
  dismissible?: boolean;
7
7
  actionText?: string;
8
+ actionVariant?: "contained" | "outlined";
8
9
  actionIconName?: string;
10
+ actionLoading?: boolean;
11
+ actionSize?: "small" | "medium";
9
12
  rounded?: boolean;
13
+ hideIcon?: boolean;
10
14
  testId?: string;
11
15
  }>, {
12
16
  title: string;
@@ -16,7 +20,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
16
20
  dismissible: boolean;
17
21
  actionText: string;
18
22
  actionIconName: any;
23
+ actionVariant: string;
24
+ actionLoading: boolean;
25
+ actionSize: string;
19
26
  rounded: boolean;
27
+ hideIcon: boolean;
20
28
  testId: string;
21
29
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
22
30
  close: () => void;
@@ -28,8 +36,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
28
36
  variant?: "outlined" | "standard";
29
37
  dismissible?: boolean;
30
38
  actionText?: string;
39
+ actionVariant?: "contained" | "outlined";
31
40
  actionIconName?: string;
41
+ actionLoading?: boolean;
42
+ actionSize?: "small" | "medium";
32
43
  rounded?: boolean;
44
+ hideIcon?: boolean;
33
45
  testId?: string;
34
46
  }>, {
35
47
  title: string;
@@ -39,7 +51,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
39
51
  dismissible: boolean;
40
52
  actionText: string;
41
53
  actionIconName: any;
54
+ actionVariant: string;
55
+ actionLoading: boolean;
56
+ actionSize: string;
42
57
  rounded: boolean;
58
+ hideIcon: boolean;
43
59
  testId: string;
44
60
  }>>> & {
45
61
  onClose?: () => any;
@@ -52,9 +68,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
52
68
  description: string;
53
69
  dismissible: boolean;
54
70
  actionText: string;
71
+ actionVariant: "contained" | "outlined";
55
72
  actionIconName: string;
73
+ actionLoading: boolean;
74
+ actionSize: "small" | "medium";
56
75
  rounded: boolean;
76
+ hideIcon: boolean;
57
77
  }>, {
78
+ "after-title"?(_: {}): any;
58
79
  default?(_: {}): any;
59
80
  }>;
60
81
  export default _default;
@@ -1,7 +1,7 @@
1
- import o from "./Alert.vue2.js";
2
- /* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../Alert.vue_vue_type_style_index_0_scoped_a9f0dfcc_lang.css"; //*');
4
- const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-a9f0dfcc"]]);
1
+ import e from "./Alert.vue2.js";
2
+ /* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../Alert.vue_vue_type_style_index_0_scoped_06e0871a_lang.css"; //*');
4
+ const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-06e0871a"]]);
5
5
  export {
6
- s as default
6
+ p as default
7
7
  };
@@ -1,11 +1,11 @@
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
- import y from "../typography/v4/Typography.vue.js";
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({
1
+ import "../../Alert.vue_vue_type_style_index_0_scoped_06e0871a_lang.css"; import { defineComponent as N, computed as x, openBlock as n, createElementBlock as y, mergeProps as l, unref as e, createBlock as d, normalizeClass as I, createCommentVNode as c, createElementVNode as T, withCtx as s, createTextVNode as g, toDisplayString as u, renderSlot as k, createVNode as z } from "vue";
2
+ import B from "../typography/v4/Typography.vue.js";
3
+ import A from "../icon/v4/IconV4.vue.js";
4
+ import E from "../button/v4/ButtonV4.vue.js";
5
+ import S 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 V = { class: "title-container" }, $ = { key: 0 }, U = /* @__PURE__ */ N({
9
9
  __name: "Alert",
10
10
  props: {
11
11
  title: { default: "" },
@@ -14,78 +14,95 @@ const p = { class: "alert-content" }, w = { key: 0 }, R = /* @__PURE__ */ C({
14
14
  variant: { default: "standard" },
15
15
  dismissible: { type: Boolean, default: !1 },
16
16
  actionText: { default: "" },
17
+ actionVariant: { default: "outlined" },
17
18
  actionIconName: { default: null },
19
+ actionLoading: { type: Boolean, default: !1 },
20
+ actionSize: { default: "small" },
18
21
  rounded: { type: Boolean, default: !0 },
22
+ hideIcon: { type: Boolean, default: !1 },
19
23
  testId: { default: "" }
20
24
  },
21
25
  emits: ["close", "actionButtonClick"],
22
- setup(e, { emit: d }) {
23
- const u = e, B = N(() => {
26
+ setup(t, { emit: f }) {
27
+ const m = t, v = x(() => {
24
28
  const i = {
25
29
  success: "check-circle",
26
30
  warning: "warning",
27
31
  danger: "warning-octagon",
28
32
  info: "info"
29
33
  };
30
- return i[u.color] || i.success;
31
- }), o = b(u.testId, n);
32
- return (i, r) => (l(), m("div", a({
34
+ return i[m.color] || i.success;
35
+ }), a = h(m.testId, o);
36
+ return (i, r) => (n(), y("div", l({
33
37
  class: ["alert", {
34
- [`alert--${e.color}`]: !0,
35
- [`alert--${e.variant}`]: !0,
36
- "alert--rounded": e.rounded
38
+ [`alert--${t.color}`]: !0,
39
+ [`alert--${t.variant}`]: !0,
40
+ "alert--rounded": t.rounded
37
41
  }]
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 }]),
42
+ }, e(a)[e(o).WRAPPER]), [
43
+ t.hideIcon ? c("", !0) : (n(), d(e(A), {
44
+ key: 0,
45
+ name: e(v),
46
+ class: I(["alert-icon", { "alert-icon--align-top": t.title && t.description }]),
42
47
  type: "fill",
43
48
  size: "20px"
44
- }, null, 8, ["name", "class"]),
45
- v("div", p, [
46
- e.title ? (l(), s(t(y), a({
47
- key: 0,
48
- class: "alert-title",
49
- variant: "h4"
50
- }, t(o)[t(n).TITLE]), {
51
- default: T(() => [
52
- x(k(e.title), 1)
53
- ]),
54
- _: 1
55
- }, 16)) : c("", !0),
56
- f(t(y), a({
49
+ }, null, 8, ["name", "class"])),
50
+ T("div", {
51
+ class: I(["alert-content", {
52
+ "alert-content--no-icon": t.hideIcon
53
+ }])
54
+ }, [
55
+ T("div", V, [
56
+ t.title ? (n(), d(e(B), l({
57
+ key: 0,
58
+ class: "alert-title",
59
+ variant: "h4"
60
+ }, e(a)[e(o).TITLE]), {
61
+ default: s(() => [
62
+ g(u(t.title), 1)
63
+ ]),
64
+ _: 1
65
+ }, 16)) : c("", !0),
66
+ k(i.$slots, "after-title", {}, void 0, !0)
67
+ ]),
68
+ z(e(B), l({
57
69
  class: "alert-description",
58
70
  variant: "body1"
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)
71
+ }, e(a)[e(o).MESSAGE]), {
72
+ default: s(() => [
73
+ k(i.$slots, "default", {}, () => [
74
+ t.description ? (n(), y("span", $, u(t.description), 1)) : c("", !0)
63
75
  ], !0)
64
76
  ]),
65
77
  _: 3
66
78
  }, 16)
67
- ]),
68
- e.actionText ? (l(), s(t(S), a({
69
- key: 0,
70
- variant: "outlined",
71
- content: e.actionText,
72
- "end-icon-name": e.actionIconName,
73
- color: e.color,
74
- size: "small"
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({
79
+ ], 2),
80
+ t.actionText ? (n(), d(e(E), l({
79
81
  key: 1,
82
+ variant: t.actionVariant,
83
+ "end-icon-name": t.actionIconName,
84
+ color: t.color,
85
+ size: t.actionSize,
86
+ loading: t.actionLoading
87
+ }, e(a)[e(o).ACTION_BUTTON], {
88
+ onClick: r[0] || (r[0] = (C) => f("actionButtonClick"))
89
+ }), {
90
+ default: s(() => [
91
+ g(u(t.actionText), 1)
92
+ ]),
93
+ _: 1
94
+ }, 16, ["variant", "end-icon-name", "color", "size", "loading"])) : c("", !0),
95
+ t.dismissible ? (n(), d(e(S), l({
96
+ key: 2,
80
97
  class: "close-button",
81
98
  "icon-name": "x",
82
99
  size: "small"
83
- }, t(o)[t(n).CLOSE_BUTTON], {
84
- onClick: r[1] || (r[1] = (I) => d("close"))
100
+ }, e(a)[e(o).CLOSE_BUTTON], {
101
+ onClick: r[1] || (r[1] = (C) => f("close"))
85
102
  }), null, 16)) : c("", !0)
86
103
  ], 16));
87
104
  }
88
105
  });
89
106
  export {
90
- R as default
107
+ U as default
91
108
  };
@@ -11,8 +11,12 @@ declare const AlertTypes: () => ({
11
11
  description: string;
12
12
  dismissible: boolean;
13
13
  actionText: string;
14
+ actionVariant: "contained" | "outlined";
14
15
  actionIconName: string;
16
+ actionLoading: boolean;
17
+ actionSize: "small" | "medium";
15
18
  rounded: boolean;
19
+ hideIcon: boolean;
16
20
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
17
21
  title: {
18
22
  type: import("vue").PropType<string>;
@@ -42,18 +46,34 @@ declare const AlertTypes: () => ({
42
46
  type: import("vue").PropType<string>;
43
47
  default: string;
44
48
  };
49
+ actionVariant: {
50
+ type: import("vue").PropType<"contained" | "outlined">;
51
+ default: string;
52
+ };
45
53
  actionIconName: {
46
54
  type: import("vue").PropType<string>;
47
55
  default: any;
48
56
  };
57
+ actionLoading: {
58
+ type: import("vue").PropType<boolean>;
59
+ default: boolean;
60
+ };
61
+ actionSize: {
62
+ type: import("vue").PropType<"small" | "medium">;
63
+ default: string;
64
+ };
49
65
  rounded: {
50
66
  type: import("vue").PropType<boolean>;
51
67
  default: boolean;
52
68
  };
69
+ hideIcon: {
70
+ type: import("vue").PropType<boolean>;
71
+ default: boolean;
72
+ };
53
73
  }>> & {
54
74
  onClose?: () => any;
55
75
  onActionButtonClick?: () => any;
56
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "variant" | "color" | "testId" | "description" | "dismissible" | "actionText" | "actionIconName" | "rounded">;
76
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "variant" | "color" | "testId" | "description" | "dismissible" | "actionText" | "actionVariant" | "actionIconName" | "actionLoading" | "actionSize" | "rounded" | "hideIcon">;
57
77
  $attrs: {
58
78
  [x: string]: unknown;
59
79
  };
@@ -96,14 +116,30 @@ declare const AlertTypes: () => ({
96
116
  type: import("vue").PropType<string>;
97
117
  default: string;
98
118
  };
119
+ actionVariant: {
120
+ type: import("vue").PropType<"contained" | "outlined">;
121
+ default: string;
122
+ };
99
123
  actionIconName: {
100
124
  type: import("vue").PropType<string>;
101
125
  default: any;
102
126
  };
127
+ actionLoading: {
128
+ type: import("vue").PropType<boolean>;
129
+ default: boolean;
130
+ };
131
+ actionSize: {
132
+ type: import("vue").PropType<"small" | "medium">;
133
+ default: string;
134
+ };
103
135
  rounded: {
104
136
  type: import("vue").PropType<boolean>;
105
137
  default: boolean;
106
138
  };
139
+ hideIcon: {
140
+ type: import("vue").PropType<boolean>;
141
+ default: boolean;
142
+ };
107
143
  }>> & {
108
144
  onClose?: () => any;
109
145
  onActionButtonClick?: () => any;
@@ -118,8 +154,12 @@ declare const AlertTypes: () => ({
118
154
  description: string;
119
155
  dismissible: boolean;
120
156
  actionText: string;
157
+ actionVariant: "contained" | "outlined";
121
158
  actionIconName: string;
159
+ actionLoading: boolean;
160
+ actionSize: "small" | "medium";
122
161
  rounded: boolean;
162
+ hideIcon: boolean;
123
163
  }, {}, string> & {
124
164
  beforeCreate?: (() => void) | (() => void)[];
125
165
  created?: (() => void) | (() => void)[];
@@ -169,14 +209,30 @@ declare const AlertTypes: () => ({
169
209
  type: import("vue").PropType<string>;
170
210
  default: string;
171
211
  };
212
+ actionVariant: {
213
+ type: import("vue").PropType<"contained" | "outlined">;
214
+ default: string;
215
+ };
172
216
  actionIconName: {
173
217
  type: import("vue").PropType<string>;
174
218
  default: any;
175
219
  };
220
+ actionLoading: {
221
+ type: import("vue").PropType<boolean>;
222
+ default: boolean;
223
+ };
224
+ actionSize: {
225
+ type: import("vue").PropType<"small" | "medium">;
226
+ default: string;
227
+ };
176
228
  rounded: {
177
229
  type: import("vue").PropType<boolean>;
178
230
  default: boolean;
179
231
  };
232
+ hideIcon: {
233
+ type: import("vue").PropType<boolean>;
234
+ default: boolean;
235
+ };
180
236
  }>> & {
181
237
  onClose?: () => any;
182
238
  onActionButtonClick?: () => any;
@@ -213,14 +269,30 @@ declare const AlertTypes: () => ({
213
269
  type: import("vue").PropType<string>;
214
270
  default: string;
215
271
  };
272
+ actionVariant: {
273
+ type: import("vue").PropType<"contained" | "outlined">;
274
+ default: string;
275
+ };
216
276
  actionIconName: {
217
277
  type: import("vue").PropType<string>;
218
278
  default: any;
219
279
  };
280
+ actionLoading: {
281
+ type: import("vue").PropType<boolean>;
282
+ default: boolean;
283
+ };
284
+ actionSize: {
285
+ type: import("vue").PropType<"small" | "medium">;
286
+ default: string;
287
+ };
220
288
  rounded: {
221
289
  type: import("vue").PropType<boolean>;
222
290
  default: boolean;
223
291
  };
292
+ hideIcon: {
293
+ type: import("vue").PropType<boolean>;
294
+ default: boolean;
295
+ };
224
296
  }>> & {
225
297
  onClose?: () => any;
226
298
  onActionButtonClick?: () => any;
@@ -235,10 +307,15 @@ declare const AlertTypes: () => ({
235
307
  description: string;
236
308
  dismissible: boolean;
237
309
  actionText: string;
310
+ actionVariant: "contained" | "outlined";
238
311
  actionIconName: string;
312
+ actionLoading: boolean;
313
+ actionSize: "small" | "medium";
239
314
  rounded: boolean;
315
+ hideIcon: boolean;
240
316
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
241
317
  $slots: {
318
+ "after-title"?(_: {}): any;
242
319
  default?(_: {}): any;
243
320
  };
244
321
  }))[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ironsource/shared-ui",
3
- "version": "2.1.6-rc.40",
3
+ "version": "2.1.6-rc.42",
4
4
  "engines": {
5
5
  "npm": ">=7.0.0",
6
6
  "node": ">=16.0.0"
@@ -1 +0,0 @@
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)}