@ironsource/shared-ui 2.1.12-rc.40 → 2.1.12-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
+ .tooltip-title-wrapper[data-v-da3532aa]{display:flex;flex-direction:column;color:var(--text-primary);margin-bottom:var(--spacing-100)}.tooltip-title-wrapper .main-title[data-v-da3532aa]{display:flex;align-items:center;gap:.25rem}.tooltip-title-wrapper .title-text[data-v-da3532aa]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tooltip-title-wrapper .title-image[data-v-da3532aa]{width:20px;height:20px;border-radius:4px}.tooltip-title-wrapper .tooltip-sub-title[data-v-da3532aa]{color:var(--text-secondary)}.tooltip-title-wrapper .platform-icon[data-v-da3532aa]{color:var(--action-active)}
@@ -1,7 +1,7 @@
1
1
  import o from "./TooltipHeader.vue2.js";
2
2
  /* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../TooltipHeader.vue_vue_type_style_index_0_scoped_5160f12d_lang.css"; //*');
4
- const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-5160f12d"]]);
3
+ // import "../../TooltipHeader.vue_vue_type_style_index_0_scoped_da3532aa_lang.css"; //*');
4
+ const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-da3532aa"]]);
5
5
  export {
6
- s as default
6
+ p as default
7
7
  };
@@ -1,13 +1,12 @@
1
- import "../../TooltipHeader.vue_vue_type_style_index_0_scoped_5160f12d_lang.css"; import { defineComponent as v, computed as u, openBlock as i, createElementBlock as f, createElementVNode as A, unref as t, createCommentVNode as s, createBlock as m, createVNode as D, withCtx as d, createTextVNode as x, toDisplayString as p } from "vue";
2
- import { getUTCDate as T } from "../../utils/date.js";
3
- import { formatValue as r } from "./utils/utils.js";
1
+ import "../../TooltipHeader.vue_vue_type_style_index_0_scoped_da3532aa_lang.css"; import { defineComponent as v, computed as m, openBlock as n, createElementBlock as f, createElementVNode as A, unref as t, createCommentVNode as s, createBlock as u, createVNode as T, withCtx as d, createTextVNode as x, toDisplayString as p } from "vue";
2
+ import { formatValue as o } from "./utils/utils.js";
4
3
  import y from "../typography/v4/Typography.vue.js";
5
4
  import { DateInterval as c } from "./types.js";
6
5
  import k from "../icon/v4/IconV4.vue.js";
7
- import C from "../icon/v4/IconFlag.vue.js";
8
- import { startOfWeek as F, endOfWeek as I, startOfMonth as O, endOfMonth as E } from "date-fns";
9
- import { LONG_DATE_FORMAT as n } from "./consts.js";
10
- const N = { class: "tooltip-title-wrapper" }, L = { class: "main-title" }, M = ["src"], S = /* @__PURE__ */ v({
6
+ import O from "../icon/v4/IconFlag.vue.js";
7
+ import { startOfWeek as C, startOfDay as h, endOfWeek as F, startOfMonth as I, endOfMonth as E } from "date-fns";
8
+ import { LONG_DATE_FORMAT as i } from "./consts.js";
9
+ const N = { class: "tooltip-title-wrapper" }, L = { class: "main-title" }, M = ["src"], K = /* @__PURE__ */ v({
11
10
  __name: "TooltipHeader",
12
11
  props: {
13
12
  title: { default: "" },
@@ -17,48 +16,48 @@ const N = { class: "tooltip-title-wrapper" }, L = { class: "main-title" }, M = [
17
16
  totalsChart: { type: Boolean, default: !1 }
18
17
  },
19
18
  setup(a) {
20
- const e = a, o = u(() => e.dataPoints.length ? e.dataPoints[0].dataset : null), h = u(() => e.totalsChart ? o.value?.label || e.title : e.xAxisFormat === "date" ? g(T(e.title)) : r(e.title, e.xAxisFormat)), g = (l) => e.xAxisDateInterval === c.WEEKLY ? `
21
- ${r(F(l), n)} -
22
- ${r(I(l), n)}
19
+ const e = a, r = m(() => e.dataPoints.length ? e.dataPoints[0].dataset : null), D = m(() => e.totalsChart ? r.value?.label || e.title : e.xAxisFormat === "date" ? g(new Date(e.title)) : o(e.title, e.xAxisFormat)), g = (l) => e.xAxisDateInterval === c.WEEKLY ? `
20
+ ${o(C(l), i)} -
21
+ ${o(h(F(l)), i)}
23
22
  ` : e.xAxisDateInterval === c.MONTHLY ? `
24
- ${r(O(l), n)} -
25
- ${r(E(l), n)}
26
- ` : r(l, n);
27
- return (l, V) => (i(), f("div", N, [
23
+ ${o(I(l), i)} -
24
+ ${o(h(E(l)), i)}
25
+ ` : o(l, i);
26
+ return (l, V) => (n(), f("div", N, [
28
27
  A("div", L, [
29
- a.totalsChart && t(o)?.image ? (i(), f("img", {
28
+ a.totalsChart && t(r)?.image ? (n(), f("img", {
30
29
  key: 0,
31
30
  class: "title-image",
32
- src: t(o)?.image
31
+ src: t(r)?.image
33
32
  }, null, 8, M)) : s("", !0),
34
- a.totalsChart && t(o)?.countryFlag ? (i(), m(t(C), {
33
+ a.totalsChart && t(r)?.countryFlag ? (n(), u(t(O), {
35
34
  key: 1,
36
- "country-code": t(o).countryFlag
35
+ "country-code": t(r).countryFlag
37
36
  }, null, 8, ["country-code"])) : s("", !0),
38
- a.totalsChart && t(o)?.icon ? (i(), m(t(k), {
37
+ a.totalsChart && t(r)?.icon ? (n(), u(t(k), {
39
38
  key: 2,
40
39
  class: "platform-icon",
41
- type: t(o)?.iconType,
42
- name: t(o)?.icon,
40
+ type: t(r)?.iconType,
41
+ name: t(r)?.icon,
43
42
  size: "16px"
44
43
  }, null, 8, ["type", "name"])) : s("", !0),
45
- D(t(y), {
44
+ T(t(y), {
46
45
  class: "title-text",
47
46
  variant: "subtitle2"
48
47
  }, {
49
48
  default: d(() => [
50
- x(p(t(h)), 1)
49
+ x(p(t(D)), 1)
51
50
  ]),
52
51
  _: 1
53
52
  })
54
53
  ]),
55
- a.xAxisFormat === "date" && a.xAxisDateInterval !== t(c).WEEKLY && a.xAxisDateInterval !== t(c).MONTHLY ? (i(), m(t(y), {
54
+ a.xAxisFormat === "date" && a.xAxisDateInterval !== t(c).WEEKLY && a.xAxisDateInterval !== t(c).MONTHLY ? (n(), u(t(y), {
56
55
  key: 0,
57
56
  class: "tooltip-sub-title",
58
57
  variant: "caption"
59
58
  }, {
60
59
  default: d(() => [
61
- x(p(t(r)(a.title, "day")), 1)
60
+ x(p(t(o)(a.title, "day")), 1)
62
61
  ]),
63
62
  _: 1
64
63
  })) : s("", !0)
@@ -66,5 +65,5 @@ const N = { class: "tooltip-title-wrapper" }, L = { class: "main-title" }, M = [
66
65
  }
67
66
  });
68
67
  export {
69
- S as default
68
+ K as default
70
69
  };
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import './AutocompleteDropdown.vue_vue_type_style_index_0_scoped_214ddaf4_lang.css';
1
+ import './AppTrigger.vue_vue_type_style_index_0_scoped_121aac8b_lang.css';
2
2
  import { AppTriggerTypes as eo } from "./components/appTrigger/index.js";
3
3
  import { AutocompleteDropdownTypes as mo } from "./components/autocompleteDropdown/index.js";
4
4
  import { MenuItemTypes as ao } from "./components/menuItem/index.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ironsource/shared-ui",
3
- "version": "2.1.12-rc.40",
3
+ "version": "2.1.12-rc.41",
4
4
  "engines": {
5
5
  "npm": ">=7.0.0",
6
6
  "node": ">=16.0.0"
@@ -1 +0,0 @@
1
- .tooltip-title-wrapper[data-v-5160f12d]{display:flex;flex-direction:column;color:var(--text-primary);margin-bottom:var(--spacing-100)}.tooltip-title-wrapper .main-title[data-v-5160f12d]{display:flex;align-items:center;gap:.25rem}.tooltip-title-wrapper .title-text[data-v-5160f12d]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tooltip-title-wrapper .title-image[data-v-5160f12d]{width:20px;height:20px;border-radius:4px}.tooltip-title-wrapper .tooltip-sub-title[data-v-5160f12d]{color:var(--text-secondary)}.tooltip-title-wrapper .platform-icon[data-v-5160f12d]{color:var(--action-active)}