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

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-5cdc75dd]{padding:var(--spacing-150) var(--spacing-200);display:flex;align-items:center}.alert--rounded[data-v-5cdc75dd]{border-radius:var(--border-radius-lg)}.alert--success[data-v-5cdc75dd]{outline-color:var(--success-main);background-color:var(--success-lighter)}.alert--success .alert-icon[data-v-5cdc75dd]{color:var(--success-main)}.alert--warning[data-v-5cdc75dd]{outline-color:var(--warning-main);background-color:var(--warning-lighter)}.alert--warning .alert-icon[data-v-5cdc75dd]{color:var(--warning-main)}.alert--danger[data-v-5cdc75dd]{outline-color:var(--error-main);background-color:var(--error-lighter)}.alert--danger .alert-icon[data-v-5cdc75dd]{color:var(--error-main)}.alert--info[data-v-5cdc75dd]{outline-color:var(--info-main);background-color:var(--info-lighter)}.alert--info .alert-icon[data-v-5cdc75dd]{color:var(--info-main)}.alert--standard[data-v-5cdc75dd]{outline:none}.alert--outlined[data-v-5cdc75dd]{background-color:var(--common-white);outline-width:1px;outline-offset:-1px;outline-style:solid}.alert-icon--align-top[data-v-5cdc75dd]{align-self:flex-start}.alert-content[data-v-5cdc75dd]{flex:1;margin:0 var(--spacing-150)}.alert-content--no-icon[data-v-5cdc75dd]{margin-left:var(--spacing-100)}.title-container[data-v-5cdc75dd]{display:flex;align-items:center}.alert-title[data-v-5cdc75dd]{color:var(--text-primary);line-height:20px}.alert-description[data-v-5cdc75dd]{color:var(--text-secondary)}.close-button[data-v-5cdc75dd]{margin-left:var(--spacing-100)}
@@ -5,8 +5,11 @@ 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;
9
11
  rounded?: boolean;
12
+ hideIcon?: boolean;
10
13
  testId?: string;
11
14
  }>, {
12
15
  title: string;
@@ -16,7 +19,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
16
19
  dismissible: boolean;
17
20
  actionText: string;
18
21
  actionIconName: any;
22
+ actionVariant: string;
23
+ actionLoading: boolean;
19
24
  rounded: boolean;
25
+ hideIcon: boolean;
20
26
  testId: string;
21
27
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
22
28
  close: () => void;
@@ -28,8 +34,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
28
34
  variant?: "outlined" | "standard";
29
35
  dismissible?: boolean;
30
36
  actionText?: string;
37
+ actionVariant?: "contained" | "outlined";
31
38
  actionIconName?: string;
39
+ actionLoading?: boolean;
32
40
  rounded?: boolean;
41
+ hideIcon?: boolean;
33
42
  testId?: string;
34
43
  }>, {
35
44
  title: string;
@@ -39,7 +48,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
39
48
  dismissible: boolean;
40
49
  actionText: string;
41
50
  actionIconName: any;
51
+ actionVariant: string;
52
+ actionLoading: boolean;
42
53
  rounded: boolean;
54
+ hideIcon: boolean;
43
55
  testId: string;
44
56
  }>>> & {
45
57
  onClose?: () => any;
@@ -52,9 +64,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
52
64
  description: string;
53
65
  dismissible: boolean;
54
66
  actionText: string;
67
+ actionVariant: "contained" | "outlined";
55
68
  actionIconName: string;
69
+ actionLoading: boolean;
56
70
  rounded: boolean;
71
+ hideIcon: boolean;
57
72
  }>, {
73
+ "after-title"?(_: {}): any;
58
74
  default?(_: {}): any;
59
75
  }>;
60
76
  export default _default;
@@ -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_a9f0dfcc_lang.css"; //*');
4
- const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-a9f0dfcc"]]);
3
+ // import "../../Alert.vue_vue_type_style_index_0_scoped_5cdc75dd_lang.css"; //*');
4
+ const d = /* @__PURE__ */ e(o, [["__scopeId", "data-v-5cdc75dd"]]);
5
5
  export {
6
- s as default
6
+ d 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";
1
+ import "../../Alert.vue_vue_type_style_index_0_scoped_5cdc75dd_lang.css"; import { defineComponent as N, computed as x, openBlock as n, createElementBlock as y, mergeProps as l, unref as e, createBlock as s, normalizeClass as I, createCommentVNode as c, createElementVNode as T, withCtx as d, createTextVNode as g, toDisplayString as u, renderSlot as k, createVNode as A } from "vue";
2
+ import B from "../typography/v4/Typography.vue.js";
3
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({
4
+ import h from "../button/v4/ButtonV4.vue.js";
5
+ import V from "../button/v4/IconButtonV4.vue.js";
6
+ import { useTestIdAttrs as $ } from "../../utils/testIds.js";
7
+ import { AlertTestIdModifiers as o } from "../../testids/index.js";
8
+ const S = { class: "title-container" }, b = { key: 0 }, U = /* @__PURE__ */ N({
9
9
  __name: "Alert",
10
10
  props: {
11
11
  title: { default: "" },
@@ -14,78 +14,94 @@ 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 },
18
20
  rounded: { type: Boolean, default: !0 },
21
+ hideIcon: { type: Boolean, default: !1 },
19
22
  testId: { default: "" }
20
23
  },
21
24
  emits: ["close", "actionButtonClick"],
22
- setup(e, { emit: d }) {
23
- const u = e, B = N(() => {
25
+ setup(t, { emit: m }) {
26
+ const f = t, v = x(() => {
24
27
  const i = {
25
28
  success: "check-circle",
26
29
  warning: "warning",
27
30
  danger: "warning-octagon",
28
31
  info: "info"
29
32
  };
30
- return i[u.color] || i.success;
31
- }), o = b(u.testId, n);
32
- return (i, r) => (l(), m("div", a({
33
+ return i[f.color] || i.success;
34
+ }), a = $(f.testId, o);
35
+ return (i, r) => (n(), y("div", l({
33
36
  class: ["alert", {
34
- [`alert--${e.color}`]: !0,
35
- [`alert--${e.variant}`]: !0,
36
- "alert--rounded": e.rounded
37
+ [`alert--${t.color}`]: !0,
38
+ [`alert--${t.variant}`]: !0,
39
+ "alert--rounded": t.rounded
37
40
  }]
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
+ }, e(a)[e(o).WRAPPER]), [
42
+ t.hideIcon ? c("", !0) : (n(), s(e(E), {
43
+ key: 0,
44
+ name: e(v),
45
+ class: I(["alert-icon", { "alert-icon--align-top": t.title && t.description }]),
42
46
  type: "fill",
43
47
  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({
48
+ }, null, 8, ["name", "class"])),
49
+ T("div", {
50
+ class: I(["alert-content", {
51
+ "alert-content--no-icon": t.hideIcon
52
+ }])
53
+ }, [
54
+ T("div", S, [
55
+ t.title ? (n(), s(e(B), l({
56
+ key: 0,
57
+ class: "alert-title",
58
+ variant: "h4"
59
+ }, e(a)[e(o).TITLE]), {
60
+ default: d(() => [
61
+ g(u(t.title), 1)
62
+ ]),
63
+ _: 1
64
+ }, 16)) : c("", !0),
65
+ k(i.$slots, "after-title", {}, void 0, !0)
66
+ ]),
67
+ A(e(B), l({
57
68
  class: "alert-description",
58
69
  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)
70
+ }, e(a)[e(o).MESSAGE]), {
71
+ default: d(() => [
72
+ k(i.$slots, "default", {}, () => [
73
+ t.description ? (n(), y("span", b, u(t.description), 1)) : c("", !0)
63
74
  ], !0)
64
75
  ]),
65
76
  _: 3
66
77
  }, 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({
78
+ ], 2),
79
+ t.actionText ? (n(), s(e(h), l({
79
80
  key: 1,
81
+ variant: t.actionVariant,
82
+ "end-icon-name": t.actionIconName,
83
+ color: t.color,
84
+ size: "small",
85
+ loading: t.actionLoading
86
+ }, e(a)[e(o).ACTION_BUTTON], {
87
+ onClick: r[0] || (r[0] = (C) => m("actionButtonClick"))
88
+ }), {
89
+ default: d(() => [
90
+ g(u(t.actionText), 1)
91
+ ]),
92
+ _: 1
93
+ }, 16, ["variant", "end-icon-name", "color", "loading"])) : c("", !0),
94
+ t.dismissible ? (n(), s(e(V), l({
95
+ key: 2,
80
96
  class: "close-button",
81
97
  "icon-name": "x",
82
98
  size: "small"
83
- }, t(o)[t(n).CLOSE_BUTTON], {
84
- onClick: r[1] || (r[1] = (I) => d("close"))
99
+ }, e(a)[e(o).CLOSE_BUTTON], {
100
+ onClick: r[1] || (r[1] = (C) => m("close"))
85
101
  }), null, 16)) : c("", !0)
86
102
  ], 16));
87
103
  }
88
104
  });
89
105
  export {
90
- R as default
106
+ U as default
91
107
  };
@@ -11,8 +11,11 @@ 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;
15
17
  rounded: boolean;
18
+ hideIcon: boolean;
16
19
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
17
20
  title: {
18
21
  type: import("vue").PropType<string>;
@@ -42,18 +45,30 @@ declare const AlertTypes: () => ({
42
45
  type: import("vue").PropType<string>;
43
46
  default: string;
44
47
  };
48
+ actionVariant: {
49
+ type: import("vue").PropType<"contained" | "outlined">;
50
+ default: string;
51
+ };
45
52
  actionIconName: {
46
53
  type: import("vue").PropType<string>;
47
54
  default: any;
48
55
  };
56
+ actionLoading: {
57
+ type: import("vue").PropType<boolean>;
58
+ default: boolean;
59
+ };
49
60
  rounded: {
50
61
  type: import("vue").PropType<boolean>;
51
62
  default: boolean;
52
63
  };
64
+ hideIcon: {
65
+ type: import("vue").PropType<boolean>;
66
+ default: boolean;
67
+ };
53
68
  }>> & {
54
69
  onClose?: () => any;
55
70
  onActionButtonClick?: () => any;
56
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "variant" | "color" | "testId" | "description" | "dismissible" | "actionText" | "actionIconName" | "rounded">;
71
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "variant" | "color" | "testId" | "description" | "dismissible" | "actionText" | "actionVariant" | "actionIconName" | "actionLoading" | "rounded" | "hideIcon">;
57
72
  $attrs: {
58
73
  [x: string]: unknown;
59
74
  };
@@ -96,14 +111,26 @@ declare const AlertTypes: () => ({
96
111
  type: import("vue").PropType<string>;
97
112
  default: string;
98
113
  };
114
+ actionVariant: {
115
+ type: import("vue").PropType<"contained" | "outlined">;
116
+ default: string;
117
+ };
99
118
  actionIconName: {
100
119
  type: import("vue").PropType<string>;
101
120
  default: any;
102
121
  };
122
+ actionLoading: {
123
+ type: import("vue").PropType<boolean>;
124
+ default: boolean;
125
+ };
103
126
  rounded: {
104
127
  type: import("vue").PropType<boolean>;
105
128
  default: boolean;
106
129
  };
130
+ hideIcon: {
131
+ type: import("vue").PropType<boolean>;
132
+ default: boolean;
133
+ };
107
134
  }>> & {
108
135
  onClose?: () => any;
109
136
  onActionButtonClick?: () => any;
@@ -118,8 +145,11 @@ declare const AlertTypes: () => ({
118
145
  description: string;
119
146
  dismissible: boolean;
120
147
  actionText: string;
148
+ actionVariant: "contained" | "outlined";
121
149
  actionIconName: string;
150
+ actionLoading: boolean;
122
151
  rounded: boolean;
152
+ hideIcon: boolean;
123
153
  }, {}, string> & {
124
154
  beforeCreate?: (() => void) | (() => void)[];
125
155
  created?: (() => void) | (() => void)[];
@@ -169,14 +199,26 @@ declare const AlertTypes: () => ({
169
199
  type: import("vue").PropType<string>;
170
200
  default: string;
171
201
  };
202
+ actionVariant: {
203
+ type: import("vue").PropType<"contained" | "outlined">;
204
+ default: string;
205
+ };
172
206
  actionIconName: {
173
207
  type: import("vue").PropType<string>;
174
208
  default: any;
175
209
  };
210
+ actionLoading: {
211
+ type: import("vue").PropType<boolean>;
212
+ default: boolean;
213
+ };
176
214
  rounded: {
177
215
  type: import("vue").PropType<boolean>;
178
216
  default: boolean;
179
217
  };
218
+ hideIcon: {
219
+ type: import("vue").PropType<boolean>;
220
+ default: boolean;
221
+ };
180
222
  }>> & {
181
223
  onClose?: () => any;
182
224
  onActionButtonClick?: () => any;
@@ -213,14 +255,26 @@ declare const AlertTypes: () => ({
213
255
  type: import("vue").PropType<string>;
214
256
  default: string;
215
257
  };
258
+ actionVariant: {
259
+ type: import("vue").PropType<"contained" | "outlined">;
260
+ default: string;
261
+ };
216
262
  actionIconName: {
217
263
  type: import("vue").PropType<string>;
218
264
  default: any;
219
265
  };
266
+ actionLoading: {
267
+ type: import("vue").PropType<boolean>;
268
+ default: boolean;
269
+ };
220
270
  rounded: {
221
271
  type: import("vue").PropType<boolean>;
222
272
  default: boolean;
223
273
  };
274
+ hideIcon: {
275
+ type: import("vue").PropType<boolean>;
276
+ default: boolean;
277
+ };
224
278
  }>> & {
225
279
  onClose?: () => any;
226
280
  onActionButtonClick?: () => any;
@@ -235,10 +289,14 @@ declare const AlertTypes: () => ({
235
289
  description: string;
236
290
  dismissible: boolean;
237
291
  actionText: string;
292
+ actionVariant: "contained" | "outlined";
238
293
  actionIconName: string;
294
+ actionLoading: boolean;
239
295
  rounded: boolean;
296
+ hideIcon: boolean;
240
297
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
241
298
  $slots: {
299
+ "after-title"?(_: {}): any;
242
300
  default?(_: {}): any;
243
301
  };
244
302
  }))[];
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.41",
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)}