@ironsource/shared-ui 2.2.0-rc.1 → 2.2.0-test.1

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.
Files changed (108) hide show
  1. package/Alert.vue_vue_type_style_index_0_scoped_f18c2785_lang.css +1 -0
  2. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_c3062e84_lang.css +1 -0
  3. package/AppHeader.vue_vue_type_style_index_0_scoped_9202b5db_lang.css +1 -0
  4. package/ChartPlane.vue_vue_type_style_index_0_scoped_3c887f7e_lang.css +1 -0
  5. package/ChartTooltip.vue_vue_type_style_index_0_scoped_dc7e6298_lang.css +1 -0
  6. package/CheckboxV4.vue_vue_type_style_index_0_scoped_bbfd249c_lang.css +1 -0
  7. package/ChipV4.vue_vue_type_style_index_0_scoped_a221c649_lang.css +1 -0
  8. package/ColumnPicker.vue_vue_type_style_index_0_scoped_01c4e08f_lang.css +1 -0
  9. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_a6900fa6_lang.css +1 -0
  10. package/DialogV4.vue_vue_type_style_index_0_scoped_a6710278_lang.css +1 -0
  11. package/DropdownV4.vue_vue_type_style_index_0_scoped_526bf0a1_lang.css +1 -0
  12. package/GroupOption.vue_vue_type_style_index_0_scoped_1e5170b3_lang.css +1 -0
  13. package/HelpText.vue_vue_type_style_index_0_scoped_641c2356_lang.css +1 -0
  14. package/Link.vue_vue_type_style_index_0_scoped_fe0e7f6f_lang.css +1 -0
  15. package/MultiBar.vue_vue_type_style_index_0_scoped_c4395fb6_lang.css +1 -0
  16. package/RadioButtonV4.vue_vue_type_style_index_0_scoped_b3d96cf5_lang.css +1 -0
  17. package/TextAreaV4.vue_vue_type_style_index_0_scoped_0feea75e_lang.css +1 -0
  18. package/TextField.vue_vue_type_style_index_0_scoped_28fab783_lang.css +1 -0
  19. package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
  20. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_0fc9ddf5_lang.css +1 -0
  21. package/TooltipHeader.vue_vue_type_style_index_0_scoped_2177211f_lang.css +1 -0
  22. package/components/alert/Alert.vue.d.ts +3 -13
  23. package/components/alert/Alert.vue.js +5 -5
  24. package/components/alert/Alert.vue2.js +48 -47
  25. package/components/alert/index.d.ts +8 -46
  26. package/components/appHeader/AppHeader.vue.js +3 -3
  27. package/components/appHeader/AppHeader.vue2.js +7 -7
  28. package/components/button/v4/ToggleButtonGroupAB.vue.js +2 -2
  29. package/components/button/v4/ToggleButtonGroupAB.vue2.js +1 -1
  30. package/components/chart/ChartPlane.vue.js +3 -3
  31. package/components/chart/ChartPlane.vue2.js +4 -4
  32. package/components/chart/ChartTooltip.vue.js +2 -2
  33. package/components/chart/ChartTooltip.vue2.js +19 -16
  34. package/components/chart/TooltipHeader.vue.js +3 -3
  35. package/components/chart/TooltipHeader.vue2.js +33 -22
  36. package/components/chart/utils/utils.d.ts +5 -1
  37. package/components/chart/utils/utils.js +32 -22
  38. package/components/checkbox/v4/CheckboxV4.vue.js +2 -2
  39. package/components/checkbox/v4/CheckboxV4.vue2.js +59 -79
  40. package/components/checkbox/v4/icons/CheckedState.vue.js +11 -11
  41. package/components/checkbox/v4/icons/IndeterminateState.vue.js +7 -7
  42. package/components/checkbox/v4/icons/UncheckedState.vue.js +12 -13
  43. package/components/chip/v4/ChipV4.vue.js +3 -3
  44. package/components/chip/v4/ChipV4.vue2.js +1 -1
  45. package/components/columnPicker/ColumnPicker.vue.js +2 -2
  46. package/components/columnPicker/ColumnPicker.vue2.js +1 -1
  47. package/components/dialog/v4/DialogV4.vue.js +4 -4
  48. package/components/dialog/v4/DialogV4.vue2.js +1 -1
  49. package/components/dropdown/v4/AppDropdownTrigger.vue.js +2 -2
  50. package/components/dropdown/v4/AppDropdownTrigger.vue2.js +1 -1
  51. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +3 -3
  52. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +1 -1
  53. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  54. package/components/dropdown/v4/DropdownV4.vue2.js +2 -2
  55. package/components/dropdown/v4/GroupOption.vue.js +3 -3
  56. package/components/dropdown/v4/GroupOption.vue2.js +1 -1
  57. package/components/helpText/HelpText.vue.d.ts +68 -0
  58. package/components/helpText/HelpText.vue.js +7 -0
  59. package/components/helpText/HelpText.vue2.js +45 -0
  60. package/components/helpText/index.d.ts +190 -0
  61. package/components/helpText/index.js +6 -0
  62. package/components/input/v4/TextField.vue.js +2 -2
  63. package/components/input/v4/TextField.vue2.js +1 -1
  64. package/components/link/Link.vue.d.ts +3 -3
  65. package/components/link/Link.vue.js +5 -5
  66. package/components/link/Link.vue2.js +1 -1
  67. package/components/link/index.d.ts +7 -7
  68. package/components/multibar/MultiBar.vue.js +3 -3
  69. package/components/multibar/MultiBar.vue2.js +1 -1
  70. package/components/radioButton/v4/RadioButtonV4.vue.js +3 -3
  71. package/components/radioButton/v4/RadioButtonV4.vue2.js +1 -1
  72. package/components/textArea/v4/TextAreaV4.vue.js +3 -3
  73. package/components/textArea/v4/TextAreaV4.vue2.js +1 -1
  74. package/design-foundation.stories/colors/ColorsData.d.ts +51 -47
  75. package/index.d.ts +1 -0
  76. package/index.js +95 -91
  77. package/package.json +7 -2
  78. package/style/v4/colors.scss +88 -83
  79. package/style/v4/grid.css +1 -1
  80. package/style/v4/grid.css.map +1 -1
  81. package/testids/index.d.ts +4 -0
  82. package/testids/index.js +38 -37
  83. package/Alert.vue_vue_type_style_index_0_scoped_06e0871a_lang.css +0 -1
  84. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_858cefbf_lang.css +0 -1
  85. package/AppHeader.vue_vue_type_style_index_0_scoped_538ccdc6_lang.css +0 -1
  86. package/ChartPlane.vue_vue_type_style_index_0_scoped_a685cf5e_lang.css +0 -1
  87. package/ChartTooltip.vue_vue_type_style_index_0_scoped_9623dbbd_lang.css +0 -1
  88. package/CheckboxV4.vue_vue_type_style_index_0_scoped_af4ae3c3_lang.css +0 -1
  89. package/ChipV4.vue_vue_type_style_index_0_scoped_a4d3a12e_lang.css +0 -1
  90. package/ColumnPicker.vue_vue_type_style_index_0_scoped_ea8c7024_lang.css +0 -1
  91. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_3bc0f416_lang.css +0 -1
  92. package/DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css +0 -1
  93. package/DropdownV4.vue_vue_type_style_index_0_scoped_445ebb01_lang.css +0 -1
  94. package/GroupOption.vue_vue_type_style_index_0_scoped_5f372a81_lang.css +0 -1
  95. package/Link.vue_vue_type_style_index_0_scoped_1a766750_lang.css +0 -1
  96. package/MultiBar.vue_vue_type_style_index_0_scoped_71617643_lang.css +0 -1
  97. package/RadioButtonV4.vue_vue_type_style_index_0_scoped_05c7bca2_lang.css +0 -1
  98. package/TextAreaV4.vue_vue_type_style_index_0_scoped_4114ef89_lang.css +0 -1
  99. package/TextField.vue_vue_type_style_index_0_scoped_3b7a3661_lang.css +0 -1
  100. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_2076b5ab_lang.css +0 -1
  101. package/TooltipHeader.vue_vue_type_style_index_0_scoped_da3532aa_lang.css +0 -1
  102. package/components/checkbox/v4/icons/CheckedDisabledState.vue.d.ts +0 -29
  103. package/components/checkbox/v4/icons/CheckedDisabledState.vue.js +0 -45
  104. package/components/checkbox/v4/icons/CheckedDisabledState.vue2.js +0 -4
  105. package/components/checkbox/v4/icons/IndeterminateDisabledState.vue.d.ts +0 -2
  106. package/components/checkbox/v4/icons/IndeterminateDisabledState.vue.js +0 -40
  107. package/components/checkbox/v4/icons/UncheckedDisabledState.vue.d.ts +0 -2
  108. package/components/checkbox/v4/icons/UncheckedDisabledState.vue.js +0 -30
@@ -1,4 +1,4 @@
1
- import "../../AppHeader.vue_vue_type_style_index_0_scoped_538ccdc6_lang.css"; import { defineComponent as h, computed as o, openBlock as m, createElementBlock as p, normalizeClass as C, createElementVNode as n, mergeProps as r, unref as e, createVNode as i, withCtx as b, createTextVNode as v, toDisplayString as z, createCommentVNode as A } from "vue";
1
+ import "../../AppHeader.vue_vue_type_style_index_0_scoped_9202b5db_lang.css"; import { defineComponent as h, computed as o, openBlock as m, createElementBlock as p, normalizeClass as C, createElementVNode as n, mergeProps as r, unref as e, createVNode as i, withCtx as b, createTextVNode as v, toDisplayString as z, createCommentVNode as A } from "vue";
2
2
  import c from "../icon/v4/IconV4.vue.js";
3
3
  import "../icon/v4/IconFlag.vue.js";
4
4
  import T from "../typography/v4/Typography.vue.js";
@@ -17,11 +17,11 @@ const w = { class: "image-container" }, k = ["src", "alt"], B = ["data-platform"
17
17
  showAbIcon: { type: Boolean, default: !1 }
18
18
  },
19
19
  emits: ["copyToClipboard"],
20
- setup(t, { emit: f }) {
21
- const a = t, y = o(
20
+ setup(t, { emit: y }) {
21
+ const a = t, f = o(
22
22
  () => a.platform ? a.platform.toLowerCase() : ""
23
23
  ), u = o(
24
- () => a.type === "normal" ? "24px" : "20px"
24
+ () => a.type === "normal" ? "24px" : "16px"
25
25
  ), x = o(
26
26
  () => a.type === "small" ? "18px" : null
27
27
  ), I = o(
@@ -37,12 +37,12 @@ const w = { class: "image-container" }, k = ["src", "alt"], B = ["data-platform"
37
37
  }, null, 8, k)
38
38
  ]),
39
39
  n("div", r({
40
- class: "icon-container",
40
+ class: ["icon-container", `icon-container--${t.type}`],
41
41
  "data-platform": t.platform
42
42
  }, e(s)[e(l).APP_PLATFORM]), [
43
43
  i(e(c), {
44
44
  type: "branded",
45
- name: e(y),
45
+ name: e(f),
46
46
  size: e(u)
47
47
  }, null, 8, ["name", "size"])
48
48
  ], 16, B),
@@ -65,7 +65,7 @@ const w = { class: "image-container" }, k = ["src", "alt"], B = ["data-platform"
65
65
  "icon-size": e(x),
66
66
  "tooltip-header": "Copy app key",
67
67
  "tooltip-text": t.appKey,
68
- onCopy: d[0] || (d[0] = (V) => f("copyToClipboard"))
68
+ onCopy: d[0] || (d[0] = (V) => y("copyToClipboard"))
69
69
  }, null, 8, ["text", "hide-text-value", "test-id", "icon-size", "tooltip-text"])
70
70
  ]),
71
71
  t.showAbIcon ? (m(), p("div", r({
@@ -1,7 +1,7 @@
1
1
  import o from "./ToggleButtonGroupAB.vue2.js";
2
2
  /* empty css */import t from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_2076b5ab_lang.css"; //*');
4
- const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2076b5ab"]]);
3
+ // import "../../../ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_0fc9ddf5_lang.css"; //*');
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0fc9ddf5"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import "../../../ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_2076b5ab_lang.css"; import { defineComponent as b, ref as u, computed as A, openBlock as f, createElementBlock as C, createVNode as n, mergeProps as s, unref as e, withCtx as t, createTextVNode as B, createBlock as y, createElementVNode as N, renderSlot as w, createCommentVNode as O } from "vue";
1
+ import "../../../ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_0fc9ddf5_lang.css"; import { defineComponent as b, ref as u, computed as A, openBlock as f, createElementBlock as C, createVNode as n, mergeProps as s, unref as e, withCtx as t, createTextVNode as B, createBlock as y, createElementVNode as N, renderSlot as w, createCommentVNode as O } from "vue";
2
2
  import c from "./ButtonV4.vue.js";
3
3
  import { useVModel as R } from "@vueuse/core";
4
4
  import x from "../../icon/v4/IconV4.vue.js";
@@ -1,7 +1,7 @@
1
1
  import e from "./ChartPlane.vue2.js";
2
2
  /* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../ChartPlane.vue_vue_type_style_index_0_scoped_a685cf5e_lang.css"; //*');
4
- const s = /* @__PURE__ */ o(e, [["__scopeId", "data-v-a685cf5e"]]);
3
+ // import "../../ChartPlane.vue_vue_type_style_index_0_scoped_3c887f7e_lang.css"; //*');
4
+ const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-3c887f7e"]]);
5
5
  export {
6
- s as default
6
+ a as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import "../../ChartPlane.vue_vue_type_style_index_0_scoped_a685cf5e_lang.css"; import { defineComponent as ne, useCssVars as se, unref as n, computed as i, ref as E, onMounted as de, watch as v, nextTick as ce, openBlock as p, createElementBlock as S, createVNode as ue, isRef as fe, createSlots as pe, withCtx as he, renderSlot as me, createCommentVNode as L, createElementVNode as R, normalizeStyle as Te, createBlock as I, mergeProps as ve } from "vue";
1
+ import "../../ChartPlane.vue_vue_type_style_index_0_scoped_3c887f7e_lang.css"; import { defineComponent as ne, useCssVars as se, unref as n, computed as i, ref as E, onMounted as de, watch as v, nextTick as ce, openBlock as p, createElementBlock as S, createVNode as ue, isRef as fe, createSlots as pe, withCtx as he, renderSlot as me, createCommentVNode as L, createElementVNode as R, normalizeStyle as Te, createBlock as I, mergeProps as ve } from "vue";
2
2
  import { Chart as V, ArcElement as ye, LineElement as Ce, BarElement as ge, PointElement as be, LineController as xe, BarController as Ae, PieController as ke, ScatterController as Ee, CategoryScale as Se, LinearScale as Le, Filler as Re, Tooltip as Ie } from "chart.js";
3
3
  import { HoverVerticalLine as De } from "./plugins/HoverVerticalLine.js";
4
4
  import { prepareTickLabel as Be, formatValue as Oe } from "./utils/utils.js";
@@ -69,8 +69,8 @@ const rt = { class: "chart-plane-container" }, it = {
69
69
  setup(o, { emit: z }) {
70
70
  const e = o;
71
71
  se((t) => ({
72
- "6a964917": n(oe),
73
- "322ee3fc": o.height
72
+ "4efc2842": n(oe),
73
+ "60310e6c": o.height
74
74
  }));
75
75
  const W = Xe(Be);
76
76
  V.register(
@@ -272,7 +272,7 @@ const rt = { class: "chart-plane-container" }, it = {
272
272
  count: e.tickCount + 1,
273
273
  padding: 8,
274
274
  min: 0,
275
- callback: (t) => e.valuePrefix + Oe(t, e.yAxisFormat, !0) + e.valueSuffix
275
+ callback: (t) => e.valuePrefix + Oe(t, e.yAxisFormat, { formatLowDigits: !0 }) + e.valueSuffix
276
276
  },
277
277
  // grid lines
278
278
  grid: {
@@ -1,7 +1,7 @@
1
1
  import o from "./ChartTooltip.vue2.js";
2
2
  /* empty css */import t from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../ChartTooltip.vue_vue_type_style_index_0_scoped_9623dbbd_lang.css"; //*');
4
- const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9623dbbd"]]);
3
+ // import "../../ChartTooltip.vue_vue_type_style_index_0_scoped_dc7e6298_lang.css"; //*');
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-dc7e6298"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -1,15 +1,15 @@
1
- import "../../ChartTooltip.vue_vue_type_style_index_0_scoped_9623dbbd_lang.css"; import { defineComponent as v, openBlock as l, createElementBlock as o, mergeProps as h, unref as e, createBlock as f, createCommentVNode as r, Fragment as b, renderList as C, createElementVNode as c, normalizeStyle as k, createVNode as i, withCtx as s, createTextVNode as u, toDisplayString as n } from "vue";
1
+ import "../../ChartTooltip.vue_vue_type_style_index_0_scoped_dc7e6298_lang.css"; import { defineComponent as v, openBlock as l, createElementBlock as o, mergeProps as h, unref as e, createBlock as f, createCommentVNode as r, Fragment as b, renderList as g, createElementVNode as c, normalizeStyle as C, createVNode as i, withCtx as s, createTextVNode as u, toDisplayString as n } from "vue";
2
2
  import d from "../typography/v4/Typography.vue.js";
3
- import A from "../icon/v4/IconV4.vue.js";
3
+ import k from "../icon/v4/IconV4.vue.js";
4
4
  import "../icon/v4/IconFlag.vue.js";
5
5
  import { formatValue as m } from "./utils/utils.js";
6
- import I from "./TooltipHeader.vue.js";
7
- import { useTestIdAttrs as T } from "../../utils/testIds.js";
6
+ import A from "./TooltipHeader.vue.js";
7
+ import { useTestIdAttrs as I } from "../../utils/testIds.js";
8
8
  import { ChartTooltipTestIdModifiers as x } from "../../testids/index.js";
9
- const g = {
9
+ const T = {
10
10
  key: 1,
11
11
  class: "list"
12
- }, p = { class: "popover-label-wrapper" }, V = {
12
+ }, p = { class: "popover-label-wrapper" }, S = {
13
13
  key: 2,
14
14
  class: "tooltip-footer"
15
15
  }, O = /* @__PURE__ */ v({
@@ -28,9 +28,9 @@ const g = {
28
28
  testId: { default: "" }
29
29
  },
30
30
  setup(t) {
31
- const y = T(t.testId, x);
32
- return (N, S) => (l(), o("div", h({ class: "chart-tooltip" }, e(y)[e(x).CONTAINER]), [
33
- t.title ? (l(), f(I, {
31
+ const y = I(t.testId, x);
32
+ return (w, F) => (l(), o("div", h({ class: "chart-tooltip" }, e(y)[e(x).CONTAINER]), [
33
+ t.title ? (l(), f(A, {
34
34
  key: 0,
35
35
  title: t.title,
36
36
  "data-points": t.dataPoints,
@@ -38,18 +38,18 @@ const g = {
38
38
  "x-axis-format": t.xAxisFormat,
39
39
  "x-axis-date-interval": t.xAxisDateInterval
40
40
  }, null, 8, ["title", "data-points", "totals-chart", "x-axis-format", "x-axis-date-interval"])) : r("", !0),
41
- t.totalsChart ? r("", !0) : (l(), o("ul", g, [
42
- (l(!0), o(b, null, C(t.dataPoints, (a) => (l(), o("li", {
41
+ t.totalsChart ? r("", !0) : (l(), o("ul", T, [
42
+ (l(!0), o(b, null, g(t.dataPoints, (a) => (l(), o("li", {
43
43
  key: a.datasetIndex,
44
44
  class: "list__item"
45
45
  }, [
46
46
  c("span", {
47
47
  class: "color-box",
48
- style: k({
48
+ style: C({
49
49
  backgroundColor: String(a.dataset.pointBackgroundColor)
50
50
  })
51
51
  }, null, 4),
52
- a.dataset.icon ? (l(), f(e(A), {
52
+ a.dataset.icon ? (l(), f(e(k), {
53
53
  key: 0,
54
54
  class: "platform-icon",
55
55
  type: a.dataset.iconType,
@@ -70,13 +70,16 @@ const g = {
70
70
  ]),
71
71
  i(e(d), { variant: "body2" }, {
72
72
  default: s(() => [
73
- u(n(t.valuePrefix + e(m)(a.parsed.y, t.yAxisFormat, !0, !1) + t.valueSuffix), 1)
73
+ u(n(t.valuePrefix + e(m)(a.parsed.y, t.yAxisFormat, {
74
+ formatLowDigits: !0,
75
+ withSuffixSpace: !1
76
+ }) + t.valueSuffix), 1)
74
77
  ]),
75
78
  _: 2
76
79
  }, 1024)
77
80
  ]))), 128))
78
81
  ])),
79
- t.totalValue !== null ? (l(), o("div", V, [
82
+ t.totalValue !== null ? (l(), o("div", S, [
80
83
  i(e(d), {
81
84
  variant: "body2",
82
85
  class: "flex-grow"
@@ -88,7 +91,7 @@ const g = {
88
91
  }),
89
92
  i(e(d), { variant: "body2" }, {
90
93
  default: s(() => [
91
- u(n(t.valuePrefix + e(m)(t.totalValue, t.yAxisFormat, !0) + t.valueSuffix), 1)
94
+ u(n(t.valuePrefix + e(m)(t.totalValue, t.yAxisFormat, { formatLowDigits: !0 }) + t.valueSuffix), 1)
92
95
  ]),
93
96
  _: 1
94
97
  })
@@ -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_da3532aa_lang.css"; //*');
4
- const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-da3532aa"]]);
3
+ // import "../../TooltipHeader.vue_vue_type_style_index_0_scoped_2177211f_lang.css"; //*');
4
+ const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-2177211f"]]);
5
5
  export {
6
- p as default
6
+ s as default
7
7
  };
@@ -1,12 +1,13 @@
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";
1
+ import "../../TooltipHeader.vue_vue_type_style_index_0_scoped_2177211f_lang.css"; import { defineComponent as g, computed as f, openBlock as i, createElementBlock as d, createElementVNode as v, unref as t, createCommentVNode as s, createBlock as u, createVNode as A, withCtx as x, createTextVNode as p, toDisplayString as h } from "vue";
2
2
  import { formatValue as o } from "./utils/utils.js";
3
3
  import y from "../typography/v4/Typography.vue.js";
4
4
  import { DateInterval as c } from "./types.js";
5
5
  import k from "../icon/v4/IconV4.vue.js";
6
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({
7
+ import { startOfWeek as F, startOfDay as T, endOfWeek as I, startOfMonth as w, endOfMonth as E } from "date-fns";
8
+ import { LONG_DATE_FORMAT as n } from "./consts.js";
9
+ import { getUTCDate as m } from "../../utils/date.js";
10
+ const N = { class: "tooltip-title-wrapper" }, L = { class: "main-title" }, M = ["src"], S = /* @__PURE__ */ g({
10
11
  __name: "TooltipHeader",
11
12
  props: {
12
13
  title: { default: "" },
@@ -16,48 +17,58 @@ const N = { class: "tooltip-title-wrapper" }, L = { class: "main-title" }, M = [
16
17
  totalsChart: { type: Boolean, default: !1 }
17
18
  },
18
19
  setup(a) {
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)}
20
+ const e = a, r = f(() => e.dataPoints.length ? e.dataPoints[0].dataset : null), C = f(() => e.totalsChart ? r.value?.label || e.title : e.xAxisFormat === "date" ? D(new Date(e.title)) : o(e.title, e.xAxisFormat)), D = (l) => e.xAxisDateInterval === c.WEEKLY ? `
21
+ ${o(F(m(l)), n, {
22
+ withUTC: !1
23
+ })} -
24
+ ${o(T(I(m(l))), n, {
25
+ withUTC: !1
26
+ })}
22
27
  ` : e.xAxisDateInterval === c.MONTHLY ? `
23
- ${o(I(l), i)} -
24
- ${o(h(E(l)), i)}
25
- ` : o(l, i);
26
- return (l, V) => (n(), f("div", N, [
27
- A("div", L, [
28
- a.totalsChart && t(r)?.image ? (n(), f("img", {
28
+ ${o(w(m(l)), n, {
29
+ withUTC: !1
30
+ })} -
31
+ ${o(
32
+ T(E(m(l))),
33
+ n,
34
+ { withUTC: !1 }
35
+ )}
36
+ ` : o(l, n);
37
+ return (l, U) => (i(), d("div", N, [
38
+ v("div", L, [
39
+ a.totalsChart && t(r)?.image ? (i(), d("img", {
29
40
  key: 0,
30
41
  class: "title-image",
31
42
  src: t(r)?.image
32
43
  }, null, 8, M)) : s("", !0),
33
- a.totalsChart && t(r)?.countryFlag ? (n(), u(t(O), {
44
+ a.totalsChart && t(r)?.countryFlag ? (i(), u(t(O), {
34
45
  key: 1,
35
46
  "country-code": t(r).countryFlag
36
47
  }, null, 8, ["country-code"])) : s("", !0),
37
- a.totalsChart && t(r)?.icon ? (n(), u(t(k), {
48
+ a.totalsChart && t(r)?.icon ? (i(), u(t(k), {
38
49
  key: 2,
39
50
  class: "platform-icon",
40
51
  type: t(r)?.iconType,
41
52
  name: t(r)?.icon,
42
53
  size: "16px"
43
54
  }, null, 8, ["type", "name"])) : s("", !0),
44
- T(t(y), {
55
+ A(t(y), {
45
56
  class: "title-text",
46
57
  variant: "subtitle2"
47
58
  }, {
48
- default: d(() => [
49
- x(p(t(D)), 1)
59
+ default: x(() => [
60
+ p(h(t(C)), 1)
50
61
  ]),
51
62
  _: 1
52
63
  })
53
64
  ]),
54
- a.xAxisFormat === "date" && a.xAxisDateInterval !== t(c).WEEKLY && a.xAxisDateInterval !== t(c).MONTHLY ? (n(), u(t(y), {
65
+ a.xAxisFormat === "date" && a.xAxisDateInterval !== t(c).WEEKLY && a.xAxisDateInterval !== t(c).MONTHLY ? (i(), u(t(y), {
55
66
  key: 0,
56
67
  class: "tooltip-sub-title",
57
68
  variant: "caption"
58
69
  }, {
59
- default: d(() => [
60
- x(p(t(o)(a.title, "day")), 1)
70
+ default: x(() => [
71
+ p(h(t(o)(a.title, "day")), 1)
61
72
  ]),
62
73
  _: 1
63
74
  })) : s("", !0)
@@ -65,5 +76,5 @@ const N = { class: "tooltip-title-wrapper" }, L = { class: "main-title" }, M = [
65
76
  }
66
77
  });
67
78
  export {
68
- K as default
79
+ S as default
69
80
  };
@@ -1,3 +1,7 @@
1
1
  import { PrepareTicksLabelArgs, ValueFormat } from '@/components/chart/types';
2
- export declare const formatValue: (value: number | string | Date, valueFormat: ValueFormat, formatLowDigits?: boolean, withSuffixSpace?: boolean) => string;
2
+ export declare const formatValue: (value: number | string | Date, valueFormat: ValueFormat, options?: {
3
+ formatLowDigits?: boolean;
4
+ withSuffixSpace?: boolean;
5
+ withUTC?: boolean;
6
+ }) => string;
3
7
  export declare const prepareTickLabel: ({ label, format, availableSpace, truncate, }: PrepareTicksLabelArgs) => string | string[];
@@ -1,27 +1,37 @@
1
- import { getUTCDate as e } from "../../../utils/date.js";
2
- import { format as f } from "date-fns";
3
- import { TICK_LABEL_FONT as d } from "../consts.js";
4
- import { nFormatter as L, DEFAULT_FALLBACK as T } from "../../../utils/formatNumbers.js";
5
- import { truncateTextToFit as c } from "../../../utils/text.js";
6
- import { REGEX_LINEBREAK as s } from "../../../consts/regex.js";
7
- const u = (r, t, o = !1, n = !0) => t === "day" ? f(e(r), "EEEE") : t === "number" ? L(
8
- r,
9
- o,
10
- T,
11
- n
12
- ) : t === "date" ? f(e(r), "MMM dd") : t === "dateLong" ? f(e(r), "MMM dd, yyyy") : String(r), B = ({
13
- label: r,
14
- format: t,
15
- availableSpace: o,
16
- truncate: n = !1
1
+ import { getUTCDate as f } from "../../../utils/date.js";
2
+ import { format as m } from "date-fns";
3
+ import { TICK_LABEL_FONT as c } from "../consts.js";
4
+ import { nFormatter as E, DEFAULT_FALLBACK as T } from "../../../utils/formatNumbers.js";
5
+ import { truncateTextToFit as a } from "../../../utils/text.js";
6
+ import { REGEX_LINEBREAK as p } from "../../../consts/regex.js";
7
+ const d = (t, r, e = {
8
+ formatLowDigits: !1,
9
+ withSuffixSpace: !0,
10
+ withUTC: !0
17
11
  }) => {
18
- const p = s.test(r), m = (E) => {
19
- const i = u(E, t);
20
- return n && o > 0 ? c(i, d, o) : i;
12
+ const { formatLowDigits: i, withSuffixSpace: n, withUTC: o } = e;
13
+ return r === "day" ? m(o ? f(t) : new Date(t), "EEEE") : r === "number" ? E(
14
+ t,
15
+ i,
16
+ T,
17
+ n
18
+ ) : r === "date" ? m(o ? f(t) : new Date(t), "MMM dd") : r === "dateLong" ? m(
19
+ o ? f(t) : new Date(t),
20
+ "MMM dd, yyyy"
21
+ ) : String(t);
22
+ }, h = ({
23
+ label: t,
24
+ format: r,
25
+ availableSpace: e,
26
+ truncate: i = !1
27
+ }) => {
28
+ const n = p.test(t), o = (L) => {
29
+ const s = d(L, r);
30
+ return i && e > 0 ? a(s, c, e) : s;
21
31
  };
22
- return p ? r.split(s).map(m) : m(r);
32
+ return n ? t.split(p).map(o) : o(t);
23
33
  };
24
34
  export {
25
- u as formatValue,
26
- B as prepareTickLabel
35
+ d as formatValue,
36
+ h as prepareTickLabel
27
37
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./CheckboxV4.vue2.js";
2
2
  /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../CheckboxV4.vue_vue_type_style_index_0_scoped_af4ae3c3_lang.css"; //*');
4
- const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-af4ae3c3"]]);
3
+ // import "../../../CheckboxV4.vue_vue_type_style_index_0_scoped_bbfd249c_lang.css"; //*');
4
+ const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-bbfd249c"]]);
5
5
  export {
6
6
  t as default
7
7
  };
@@ -1,15 +1,12 @@
1
- import "../../../CheckboxV4.vue_vue_type_style_index_0_scoped_af4ae3c3_lang.css"; import { defineComponent as D, openBlock as o, createElementBlock as f, mergeProps as a, unref as e, createElementVNode as u, Fragment as B, createBlock as n, createCommentVNode as c, withCtx as V, renderSlot as $, createTextVNode as F, toDisplayString as g, pushScopeId as A, popScopeId as T } from "vue";
2
- import v from "../../typography/v4/Typography.vue.js";
1
+ import "../../../CheckboxV4.vue_vue_type_style_index_0_scoped_bbfd249c_lang.css"; import { defineComponent as S, openBlock as l, createElementBlock as V, mergeProps as a, unref as e, createElementVNode as r, createBlock as i, createCommentVNode as n, normalizeClass as I, withCtx as $, renderSlot as A, createTextVNode as F, toDisplayString as T, pushScopeId as g, popScopeId as v } from "vue";
2
+ import D from "../../typography/v4/Typography.vue.js";
3
3
  import L from "./icons/UncheckedState.vue.js";
4
4
  import N from "./icons/CheckedState.vue.js";
5
5
  import P from "./icons/IndeterminateState.vue.js";
6
- import w from "./icons/UncheckedDisabledState.vue.js";
7
- import H from "./icons/CheckedDisabledState.vue.js";
8
- import K from "./icons/IndeterminateDisabledState.vue.js";
9
- import { CheckboxTestIdModifiers as i } from "../../../testids/index.js";
10
- import { checkboxCommon as R } from "../common/Checkbox.common.js";
11
- import { useTestIdAttrs as U } from "../../../utils/testIds.js";
12
- const M = (t) => (A("data-v-af4ae3c3"), t = t(), T(), t), W = ["for"], j = { class: "checkboxes" }, q = ["id", "disabled", "checked", ".indeterminate"], z = /* @__PURE__ */ M(() => /* @__PURE__ */ u("span", { class: "checkbox__inner" }, null, -1)), G = { class: "states" }, le = /* @__PURE__ */ D({
6
+ import { CheckboxTestIdModifiers as d } from "../../../testids/index.js";
7
+ import { checkboxCommon as w } from "../common/Checkbox.common.js";
8
+ import { useTestIdAttrs as R } from "../../../utils/testIds.js";
9
+ const z = (t) => (g("data-v-bbfd249c"), t = t(), v(), t), H = ["for"], K = { class: "checkboxes" }, M = ["id", "disabled", "checked", ".indeterminate"], U = /* @__PURE__ */ z(() => /* @__PURE__ */ r("span", { class: "checkbox__inner" }, null, -1)), W = { class: "states" }, Z = /* @__PURE__ */ S({
13
10
  __name: "CheckboxV4",
14
11
  props: {
15
12
  isChecked: { type: Boolean },
@@ -21,91 +18,74 @@ const M = (t) => (A("data-v-af4ae3c3"), t = t(), T(), t), W = ["for"], j = { cla
21
18
  },
22
19
  emits: ["update:isChecked", "click"],
23
20
  setup(t, { emit: b }) {
24
- const h = t, {
25
- id: p,
26
- checkbox: E,
27
- isFocusVisible: S,
28
- handleFocus: y,
29
- handleBlur: C,
30
- indeterminate: d,
31
- checked: m,
32
- unchecked: I,
33
- updateValue: x
34
- } = R(h, b), r = U(h.testId, i);
35
- return (k, l) => (o(), f("label", a({
36
- for: e(p),
21
+ const k = t, {
22
+ id: f,
23
+ checkbox: x,
24
+ isFocusVisible: B,
25
+ handleFocus: h,
26
+ handleBlur: p,
27
+ indeterminate: u,
28
+ checked: y,
29
+ unchecked: E,
30
+ updateValue: C
31
+ } = w(k, b), c = R(k.testId, d);
32
+ return (m, o) => (l(), V("label", a({
33
+ for: e(f),
37
34
  class: [{
38
- "focus-visible": e(S),
35
+ "focus-visible": e(B),
39
36
  disabled: t.disabled
40
37
  }, "checkbox"]
41
- }, e(r)[e(i).WRAPPER]), [
42
- u("span", j, [
43
- u("input", a({ ...k.$attrs, ...e(r)[e(i).FIELD] }, {
44
- id: e(p),
45
- ref: e(E),
38
+ }, e(c)[e(d).WRAPPER]), [
39
+ r("span", K, [
40
+ r("input", a({ ...m.$attrs, ...e(c)[e(d).FIELD] }, {
41
+ id: e(f),
42
+ ref: e(x),
46
43
  disabled: t.disabled,
47
- checked: e(m),
44
+ checked: e(y),
48
45
  class: "input",
49
- ".indeterminate": e(d),
46
+ ".indeterminate": e(u),
50
47
  type: "checkbox",
51
- onBlur: l[0] || (l[0] = //@ts-ignore
52
- (...s) => e(C) && e(C)(...s)),
53
- onFocus: l[1] || (l[1] = //@ts-ignore
54
- (...s) => e(y) && e(y)(...s)),
55
- onClick: l[2] || (l[2] = (s) => b("click", s)),
56
- onInput: l[3] || (l[3] = //@ts-ignore
57
- (...s) => e(x) && e(x)(...s))
58
- }), null, 16, q),
59
- z,
60
- u("span", G, [
61
- t.disabled ? c("", !0) : (o(), f(B, { key: 0 }, [
62
- e(m) ? (o(), n(N, a({
63
- key: 0,
64
- class: "icon checked",
65
- color: t.color
66
- }, e(r)[e(i).CHECKED]), null, 16, ["color"])) : c("", !0),
67
- e(d) ? (o(), n(P, {
68
- key: 1,
69
- color: t.color,
70
- class: "icon indeterminate"
71
- }, null, 8, ["color"])) : c("", !0),
72
- e(I) && !e(d) ? (o(), n(L, {
73
- key: 2,
74
- class: "icon unchecked"
75
- })) : c("", !0)
76
- ], 64)),
77
- t.disabled ? (o(), f(B, { key: 1 }, [
78
- e(m) ? (o(), n(H, a({
79
- key: 0,
80
- color: t.color,
81
- class: "icon checked"
82
- }, e(r)[e(i).CHECKED]), null, 16, ["color"])) : c("", !0),
83
- e(d) ? (o(), n(K, {
84
- key: 1,
85
- class: "icon indeterminate"
86
- })) : c("", !0),
87
- e(I) && !e(d) ? (o(), n(w, {
88
- key: 2,
89
- class: "icon unchecked"
90
- })) : c("", !0)
91
- ], 64)) : c("", !0)
48
+ onBlur: o[0] || (o[0] = //@ts-ignore
49
+ (...s) => e(p) && e(p)(...s)),
50
+ onFocus: o[1] || (o[1] = //@ts-ignore
51
+ (...s) => e(h) && e(h)(...s)),
52
+ onClick: o[2] || (o[2] = (s) => b("click", s)),
53
+ onInput: o[3] || (o[3] = //@ts-ignore
54
+ (...s) => e(C) && e(C)(...s))
55
+ }), null, 16, M),
56
+ U,
57
+ r("span", W, [
58
+ e(y) ? (l(), i(N, a({
59
+ key: 0,
60
+ class: ["icon checked", { disabled: t.disabled }],
61
+ color: t.color
62
+ }, e(c)[e(d).CHECKED]), null, 16, ["class", "color"])) : n("", !0),
63
+ e(u) ? (l(), i(P, {
64
+ key: 1,
65
+ color: t.color,
66
+ class: I(["icon indeterminate", { disabled: t.disabled }])
67
+ }, null, 8, ["color", "class"])) : n("", !0),
68
+ e(E) && !e(u) ? (l(), i(L, {
69
+ key: 2,
70
+ class: I(["icon unchecked", { disabled: t.disabled }])
71
+ }, null, 8, ["class"])) : n("", !0)
92
72
  ])
93
73
  ]),
94
- t.label || k.$slots.default ? (o(), n(e(v), a({
74
+ t.label || m.$slots.default ? (l(), i(e(D), a({
95
75
  key: 0,
96
76
  variant: "body2",
97
77
  class: "checkbox-label"
98
- }, e(r)[e(i).LABEL]), {
99
- default: V(() => [
100
- $(k.$slots, "default", {}, () => [
101
- F(g(t.label), 1)
78
+ }, e(c)[e(d).LABEL]), {
79
+ default: $(() => [
80
+ A(m.$slots, "default", {}, () => [
81
+ F(T(t.label), 1)
102
82
  ], !0)
103
83
  ]),
104
84
  _: 3
105
- }, 16)) : c("", !0)
106
- ], 16, W));
85
+ }, 16)) : n("", !0)
86
+ ], 16, H));
107
87
  }
108
88
  });
109
89
  export {
110
- le as default
90
+ Z as default
111
91
  };
@@ -1,29 +1,29 @@
1
- import { defineComponent as o, openBlock as r, createElementBlock as l, createElementVNode as t, unref as n } from "vue";
2
- import { darkerColor as c } from "../../../../utils/color.js";
3
- const i = {
1
+ import { defineComponent as o, openBlock as r, createElementBlock as n, createElementVNode as t, unref as l } from "vue";
2
+ import { darkerColor as i } from "../../../../utils/color.js";
3
+ const c = {
4
4
  xmlns: "http://www.w3.org/2000/svg",
5
5
  viewBox: "0 0 16 16",
6
6
  fill: "none"
7
- }, s = ["fill"], d = ["stroke"], h = /* @__PURE__ */ t("path", {
7
+ }, s = ["fill"], a = ["stroke"], d = /* @__PURE__ */ t("path", {
8
8
  d: "M12.125 5.375L6.875 10.625L4.25 8",
9
9
  stroke: "white",
10
10
  "stroke-width": "1.5",
11
11
  "stroke-linecap": "round",
12
12
  "stroke-linejoin": "round"
13
- }, null, -1), m = /* @__PURE__ */ o({
13
+ }, null, -1), f = /* @__PURE__ */ o({
14
14
  __name: "CheckedState",
15
15
  props: {
16
16
  color: { default: null }
17
17
  },
18
18
  setup(e) {
19
- return (a, u) => (r(), l("svg", i, [
19
+ return (h, m) => (r(), n("svg", c, [
20
20
  t("rect", {
21
21
  x: "0.5",
22
22
  y: "0.5",
23
23
  width: "15",
24
24
  height: "15",
25
25
  rx: "3.5",
26
- fill: e.color || "#0091FF"
26
+ fill: e.color || "var(--primary-main)"
27
27
  }, null, 8, s),
28
28
  t("rect", {
29
29
  x: "0.5",
@@ -31,12 +31,12 @@ const i = {
31
31
  width: "15",
32
32
  height: "15",
33
33
  rx: "3.5",
34
- stroke: e.color ? n(c)(e.color) : "#0880EA"
35
- }, null, 8, d),
36
- h
34
+ stroke: e.color ? l(i)(e.color) : "var(--primary-dark)"
35
+ }, null, 8, a),
36
+ d
37
37
  ]));
38
38
  }
39
39
  });
40
40
  export {
41
- m as default
41
+ f as default
42
42
  };