@ironsource/shared-ui 2.1.3-rc.21 → 2.1.3-rc.22
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-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)}
|
|
@@ -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.
|
|
4
|
-
const
|
|
3
|
+
// import "../../Alert.vue_vue_type_style_index_0_scoped_d6680a72_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-d6680a72"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "../../Alert.
|
|
2
|
-
import
|
|
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";
|
|
2
|
+
import y from "../typography/v4/Typography.vue.js";
|
|
3
3
|
import C from "../icon/v4/IconV4.vue.js";
|
|
4
4
|
import E from "../button/v4/ButtonV4.vue.js";
|
|
5
|
-
import
|
|
6
|
-
import { useTestIdAttrs as
|
|
5
|
+
import p from "../button/v4/IconButtonV4.vue.js";
|
|
6
|
+
import { useTestIdAttrs as h } from "../../utils/testIds.js";
|
|
7
7
|
import { AlertTestIdModifiers as o } from "../../testids/index.js";
|
|
8
|
-
const
|
|
8
|
+
const S = { class: "alert-content" }, b = { key: 0 }, R = /* @__PURE__ */ B({
|
|
9
9
|
__name: "Alert",
|
|
10
10
|
props: {
|
|
11
11
|
title: { default: "" },
|
|
@@ -18,70 +18,70 @@ const h = { class: "alert-content" }, L = /* @__PURE__ */ g({
|
|
|
18
18
|
testId: { default: "" }
|
|
19
19
|
},
|
|
20
20
|
emits: ["close"],
|
|
21
|
-
setup(t, { emit:
|
|
22
|
-
const
|
|
23
|
-
const
|
|
21
|
+
setup(t, { emit: g }) {
|
|
22
|
+
const c = t, k = I(() => {
|
|
23
|
+
const r = {
|
|
24
24
|
success: "check-circle",
|
|
25
25
|
warning: "warning",
|
|
26
26
|
danger: "warning-octagon",
|
|
27
27
|
info: "info"
|
|
28
28
|
};
|
|
29
|
-
return
|
|
30
|
-
}), n =
|
|
31
|
-
return (
|
|
29
|
+
return r[c.color] || r.success;
|
|
30
|
+
}), n = h(c.testId, o);
|
|
31
|
+
return (r, d) => (l(), u("div", a({
|
|
32
32
|
class: ["alert", {
|
|
33
33
|
[`alert--${t.color}`]: !0,
|
|
34
34
|
[`alert--${t.variant}`]: !0,
|
|
35
35
|
"alert--rounded": t.rounded
|
|
36
36
|
}]
|
|
37
37
|
}, e(n)[e(o).WRAPPER]), [
|
|
38
|
-
|
|
38
|
+
m(e(C), {
|
|
39
39
|
name: e(k),
|
|
40
|
-
class:
|
|
40
|
+
class: v(["alert-icon", { "alert-icon--align-top": t.title && t.description }]),
|
|
41
41
|
type: "fill",
|
|
42
42
|
size: "20px"
|
|
43
43
|
}, null, 8, ["name", "class"]),
|
|
44
|
-
|
|
45
|
-
t.title ? (l(),
|
|
44
|
+
x("div", S, [
|
|
45
|
+
t.title ? (l(), s(e(y), a({
|
|
46
46
|
key: 0,
|
|
47
47
|
class: "alert-title",
|
|
48
48
|
variant: "h4"
|
|
49
49
|
}, e(n)[e(o).TITLE]), {
|
|
50
|
-
default:
|
|
51
|
-
|
|
50
|
+
default: f(() => [
|
|
51
|
+
N(T(t.title), 1)
|
|
52
52
|
]),
|
|
53
53
|
_: 1
|
|
54
|
-
}, 16)) :
|
|
55
|
-
|
|
56
|
-
key: 1,
|
|
54
|
+
}, 16)) : i("", !0),
|
|
55
|
+
m(e(y), a({
|
|
57
56
|
class: "alert-description",
|
|
58
57
|
variant: "body1"
|
|
59
58
|
}, e(n)[e(o).MESSAGE]), {
|
|
60
|
-
default:
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
default: f(() => [
|
|
60
|
+
A(r.$slots, "default", {}, () => [
|
|
61
|
+
t.description ? (l(), u("span", b, T(t.description), 1)) : i("", !0)
|
|
62
|
+
], !0)
|
|
63
63
|
]),
|
|
64
64
|
_: 3
|
|
65
|
-
}, 16)
|
|
65
|
+
}, 16)
|
|
66
66
|
]),
|
|
67
|
-
t.actionText ? (l(),
|
|
67
|
+
t.actionText ? (l(), s(e(E), a({
|
|
68
68
|
key: 0,
|
|
69
69
|
variant: "outlined",
|
|
70
70
|
content: t.actionText,
|
|
71
71
|
color: t.color,
|
|
72
72
|
size: "small"
|
|
73
|
-
}, e(n)[e(o).ACTION_BUTTON]), null, 16, ["content", "color"])) :
|
|
74
|
-
t.dismissible ? (l(),
|
|
73
|
+
}, e(n)[e(o).ACTION_BUTTON]), null, 16, ["content", "color"])) : i("", !0),
|
|
74
|
+
t.dismissible ? (l(), s(e(p), a({
|
|
75
75
|
key: 1,
|
|
76
76
|
class: "close-button",
|
|
77
77
|
"icon-name": "x",
|
|
78
78
|
size: "small"
|
|
79
79
|
}, e(n)[e(o).CLOSE_BUTTON], {
|
|
80
|
-
onClick: d[0] || (d[0] = (
|
|
81
|
-
}), null, 16)) :
|
|
80
|
+
onClick: d[0] || (d[0] = (w) => g("close"))
|
|
81
|
+
}), null, 16)) : i("", !0)
|
|
82
82
|
], 16));
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
export {
|
|
86
|
-
|
|
86
|
+
R as default
|
|
87
87
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.alert[data-v-72bcdcd0]{padding:var(--spacing-150) var(--spacing-200);display:flex;align-items:center}.alert--rounded[data-v-72bcdcd0]{border-radius:var(--border-radius-lg)}.alert--success[data-v-72bcdcd0]{outline-color:var(--success-main);background-color:var(--success-lighter)}.alert--success .alert-icon[data-v-72bcdcd0]{color:var(--success-main)}.alert--warning[data-v-72bcdcd0]{outline-color:var(--warning-main);background-color:var(--warning-lighter)}.alert--warning .alert-icon[data-v-72bcdcd0]{color:var(--warning-main)}.alert--danger[data-v-72bcdcd0]{outline-color:var(--error-main);background-color:var(--error-lighter)}.alert--danger .alert-icon[data-v-72bcdcd0]{color:var(--error-main)}.alert--info[data-v-72bcdcd0]{outline-color:var(--info-main);background-color:var(--info-lighter)}.alert--info .alert-icon[data-v-72bcdcd0]{color:var(--info-main)}.alert--standard[data-v-72bcdcd0]{outline:none}.alert--outlined[data-v-72bcdcd0]{background-color:var(--common-white);outline-width:1px;outline-offset:-1px;outline-style:solid}.alert-icon--align-top[data-v-72bcdcd0]{align-self:flex-start}.alert-content[data-v-72bcdcd0]{flex:1;margin:0 var(--spacing-150)}.alert-title[data-v-72bcdcd0]{color:var(--text-primary);line-height:20px}.alert-description[data-v-72bcdcd0]{color:var(--text-secondary)}.close-button[data-v-72bcdcd0]{margin-left:var(--spacing-100)}
|