@ironsource/shared-ui 2.2.0-rc.14 → 2.2.0-rc.15

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.
@@ -1 +1,86 @@
1
- import "../../../EmptyStateV4.vue_vue_type_style_index_0_scoped_76757f22_lang.css";
1
+ import "../../../EmptyStateV4.vue_vue_type_style_index_0_scoped_76757f22_lang.css"; import I from "../../../_virtual/dynamic-import-helper.js";
2
+ import { defineComponent as T, computed as N, defineAsyncComponent as b, openBlock as o, createElementBlock as k, mergeProps as s, unref as e, createBlock as n, createCommentVNode as a, createElementVNode as C, renderSlot as p, withCtx as m, createTextVNode as l, toDisplayString as u } from "vue";
3
+ import E from "../../button/v4/ButtonV4.vue.js";
4
+ import "../../button/v4/IconButtonV4.vue.js";
5
+ import "../../button/v4/ButtonGroup.vue.js";
6
+ import "../../button/v4/ToggleButtonGroupAB.vue.js";
7
+ import y from "../../typography/v4/Typography.vue.js";
8
+ import { capitalizeFirstLetter as S, snakeCaseToCamelCase as g } from "../../../utils/string.js";
9
+ import x from "../../icon/v4/IconV4.vue.js";
10
+ import "../../icon/v4/IconFlag.vue.js";
11
+ import { useTestIdAttrs as z } from "../../../utils/testIds.js";
12
+ import { EmptyStateTestIdModifiers as r } from "../../../testids/index.js";
13
+ const A = { class: "title-wrapper" }, P = /* @__PURE__ */ T({
14
+ __name: "EmptyStateV4",
15
+ props: {
16
+ title: { default: "No data to display" },
17
+ subtitle: { default: void 0 },
18
+ variant: { default: "no-data" },
19
+ buttonText: { default: void 0 },
20
+ iconName: { default: null },
21
+ iconType: { default: "regular" },
22
+ iconSize: { default: "48px" },
23
+ testId: { default: "" }
24
+ },
25
+ emits: ["click"],
26
+ setup(t) {
27
+ const d = t, v = N(() => {
28
+ const i = S(g(d.variant));
29
+ return b(() => I(/* @__PURE__ */ Object.assign({ "./icons/IconError.vue": () => import("./icons/IconError.vue.js"), "./icons/IconFiles.vue": () => import("./icons/IconFiles.vue.js"), "./icons/IconNoAccess.vue": () => import("./icons/IconNoAccess.vue.js"), "./icons/IconNoData.vue": () => import("./icons/IconNoData.vue.js"), "./icons/IconNoResults.vue": () => import("./icons/IconNoResults.vue.js"), "./icons/IconSettings.vue": () => import("./icons/IconSettings.vue.js") }), `./icons/Icon${i}.vue`));
30
+ }), c = z(d.testId, r);
31
+ return (i, f) => (o(), k("div", s({ class: "empty-state" }, e(c)[e(r).CONTAINER]), [
32
+ t.variant && !t.iconName ? (o(), n(e(v), {
33
+ key: 0,
34
+ class: "empty-variant-icon"
35
+ })) : a("", !0),
36
+ t.iconName ? (o(), n(e(x), {
37
+ key: 1,
38
+ class: "custom-empty-icon",
39
+ name: t.iconName,
40
+ size: t.iconSize,
41
+ type: t.iconType
42
+ }, null, 8, ["name", "size", "type"])) : a("", !0),
43
+ C("div", A, [
44
+ p(i.$slots, "content", {}, () => [
45
+ t.title ? (o(), n(e(y), s({
46
+ key: 0,
47
+ variant: "h4",
48
+ class: "title"
49
+ }, e(c)[e(r).TITLE]), {
50
+ default: m(() => [
51
+ l(u(t.title), 1)
52
+ ]),
53
+ _: 1
54
+ }, 16)) : a("", !0),
55
+ t.subtitle ? (o(), n(e(y), s({
56
+ key: 1,
57
+ variant: "body1",
58
+ class: "subtitle"
59
+ }, e(c)[e(r).SUBTITLE]), {
60
+ default: m(() => [
61
+ l(u(t.subtitle), 1)
62
+ ]),
63
+ _: 1
64
+ }, 16)) : a("", !0)
65
+ ], !0)
66
+ ]),
67
+ p(i.$slots, "button", {}, () => [
68
+ t.buttonText ? (o(), n(e(E), {
69
+ key: 0,
70
+ variant: "outlined",
71
+ color: "default",
72
+ class: "button",
73
+ onClick: f[0] || (f[0] = (B) => i.$emit("click"))
74
+ }, {
75
+ default: m(() => [
76
+ l(u(t.buttonText), 1)
77
+ ]),
78
+ _: 1
79
+ })) : a("", !0)
80
+ ], !0)
81
+ ], 16));
82
+ }
83
+ });
84
+ export {
85
+ P as default
86
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ironsource/shared-ui",
3
- "version": "2.2.0-rc.14",
3
+ "version": "2.2.0-rc.15",
4
4
  "engines": {
5
5
  "npm": ">=7.0.0",
6
6
  "node": ">=16.0.0"