@ironsource/shared-ui 2.2.0-rc.0 → 2.2.0-rc.10

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 (170) hide show
  1. package/Alert.vue_vue_type_style_index_0_scoped_5e66710b_lang.css +1 -0
  2. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_f86477a9_lang.css +1 -0
  3. package/AppHeader.vue_vue_type_style_index_0_scoped_18bc6c0d_lang.css +1 -0
  4. package/ButtonV4.vue_vue_type_style_index_0_scoped_a59af1ad_lang.css +1 -0
  5. package/Chart.vue_vue_type_style_index_0_scoped_22477735_lang.css +1 -0
  6. package/ChartHeader.vue_vue_type_style_index_0_scoped_9a603520_lang.css +1 -0
  7. package/ChartPlane.vue_vue_type_style_index_0_scoped_6de5cddb_lang.css +1 -0
  8. package/ChartTooltip.vue_vue_type_style_index_0_scoped_dc7e6298_lang.css +1 -0
  9. package/CheckboxV4.vue_vue_type_style_index_0_scoped_88525d86_lang.css +1 -0
  10. package/ChipV4.vue_vue_type_style_index_0_scoped_a221c649_lang.css +1 -0
  11. package/ColumnPicker.vue_vue_type_style_index_0_scoped_01c4e08f_lang.css +1 -0
  12. package/DataGrid.vue_vue_type_style_index_0_scoped_46851fcb_lang.css +1 -0
  13. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_a6900fa6_lang.css +1 -0
  14. package/DialogV4.vue_vue_type_style_index_0_scoped_a6710278_lang.css +1 -0
  15. package/DropdownV4.vue_vue_type_style_index_0_scoped_526bf0a1_lang.css +1 -0
  16. package/GroupOption.vue_vue_type_style_index_0_scoped_1e5170b3_lang.css +1 -0
  17. package/HelpText.vue_vue_type_style_index_0_scoped_641c2356_lang.css +1 -0
  18. package/IconV4.vue_vue_type_style_index_0_scoped_6683c5b5_lang.css +1 -0
  19. package/InlineCopy.vue_vue_type_style_index_0_scoped_9fa1921a_lang.css +1 -0
  20. package/Link.vue_vue_type_style_index_0_scoped_fe0e7f6f_lang.css +1 -0
  21. package/MultiBar.vue_vue_type_style_index_0_scoped_c4395fb6_lang.css +1 -0
  22. package/RadioButtonV4.vue_vue_type_style_index_0_scoped_4f3c7037_lang.css +1 -0
  23. package/SnackbarV4.vue_vue_type_style_index_0_scoped_35c79635_lang.css +1 -0
  24. package/SwitchV4.vue_vue_type_style_index_0_scoped_f9f89da2_lang.css +1 -0
  25. package/TextAreaV4.vue_vue_type_style_index_0_scoped_0feea75e_lang.css +1 -0
  26. package/TextField.vue_vue_type_style_index_0_scoped_28fab783_lang.css +1 -0
  27. package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
  28. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_0fc9ddf5_lang.css +1 -0
  29. package/TooltipHeader.vue_vue_type_style_index_0_scoped_2177211f_lang.css +1 -0
  30. package/components/alert/Alert.vue.d.ts +3 -8
  31. package/components/alert/Alert.vue.js +2 -2
  32. package/components/alert/Alert.vue2.js +48 -46
  33. package/components/alert/index.d.ts +8 -27
  34. package/components/appHeader/AppHeader.vue.js +2 -2
  35. package/components/appHeader/AppHeader.vue2.js +44 -45
  36. package/components/button/v3/Button.vue.d.ts +6 -6
  37. package/components/button/v3/index.d.ts +14 -14
  38. package/components/button/v4/ButtonV4.vue.js +4 -4
  39. package/components/button/v4/ButtonV4.vue2.js +1 -1
  40. package/components/button/v4/ToggleButtonGroupAB.vue.js +2 -2
  41. package/components/button/v4/ToggleButtonGroupAB.vue2.js +1 -1
  42. package/components/chart/Chart.vue.d.ts +5 -0
  43. package/components/chart/Chart.vue.js +3 -3
  44. package/components/chart/Chart.vue2.js +10 -8
  45. package/components/chart/ChartHeader.vue.d.ts +5 -0
  46. package/components/chart/ChartHeader.vue.js +3 -3
  47. package/components/chart/ChartHeader.vue2.js +73 -49
  48. package/components/chart/ChartPlane.vue.d.ts +5 -0
  49. package/components/chart/ChartPlane.vue.js +2 -2
  50. package/components/chart/ChartPlane.vue2.js +34 -32
  51. package/components/chart/ChartStoryArgs.d.ts +6 -0
  52. package/components/chart/ChartTooltip.vue.js +2 -2
  53. package/components/chart/ChartTooltip.vue2.js +19 -16
  54. package/components/chart/TooltipHeader.vue.js +3 -3
  55. package/components/chart/TooltipHeader.vue2.js +33 -22
  56. package/components/chart/index.d.ts +20 -1
  57. package/components/chart/utils/utils.d.ts +5 -1
  58. package/components/chart/utils/utils.js +32 -22
  59. package/components/checkbox/v4/CheckboxV4.vue.js +3 -3
  60. package/components/checkbox/v4/CheckboxV4.vue2.js +60 -79
  61. package/components/checkbox/v4/icons/CheckedState.vue.js +11 -11
  62. package/components/checkbox/v4/icons/IndeterminateState.vue.js +7 -7
  63. package/components/checkbox/v4/icons/UncheckedState.vue.d.ts +28 -1
  64. package/components/checkbox/v4/icons/UncheckedState.vue.js +23 -21
  65. package/components/checkbox/v4/icons/UncheckedState.vue2.js +4 -0
  66. package/components/chip/v4/ChipV4.vue.js +3 -3
  67. package/components/chip/v4/ChipV4.vue2.js +1 -1
  68. package/components/columnPicker/ColumnPicker.vue.js +2 -2
  69. package/components/columnPicker/ColumnPicker.vue2.js +1 -1
  70. package/components/dialog/v4/DialogV4.vue.js +4 -4
  71. package/components/dialog/v4/DialogV4.vue2.js +1 -1
  72. package/components/dropdown/v4/AppDropdownTrigger.vue.js +3 -3
  73. package/components/dropdown/v4/AppDropdownTrigger.vue2.js +1 -1
  74. package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +15 -0
  75. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +3 -3
  76. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +81 -60
  77. package/components/dropdown/v4/DropdownV4.vue.d.ts +18 -0
  78. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  79. package/components/dropdown/v4/DropdownV4.vue2.js +144 -135
  80. package/components/dropdown/v4/GroupOption.vue.js +3 -3
  81. package/components/dropdown/v4/GroupOption.vue2.js +1 -1
  82. package/components/dropdown/v4/dropdownStoryArgs.d.ts +11 -0
  83. package/components/dropdown/v4/index.d.ts +119 -2
  84. package/components/emptyState/v3/EmptyState.vue.d.ts +3 -3
  85. package/components/emptyState/v3/index.d.ts +7 -7
  86. package/components/helpText/HelpText.vue.d.ts +68 -0
  87. package/components/helpText/HelpText.vue.js +7 -0
  88. package/components/helpText/HelpText.vue2.js +45 -0
  89. package/components/helpText/index.d.ts +190 -0
  90. package/components/helpText/index.js +6 -0
  91. package/components/icon/v4/IconV4.vue.d.ts +5 -0
  92. package/components/icon/v4/IconV4.vue.js +2 -2
  93. package/components/icon/v4/IconV4.vue2.js +27 -26
  94. package/components/icon/v4/index.d.ts +20 -1
  95. package/components/includeExclude/index.d.ts +16 -16
  96. package/components/inlineCopy/InlineCopy.vue.d.ts +15 -0
  97. package/components/inlineCopy/InlineCopy.vue.js +2 -2
  98. package/components/inlineCopy/InlineCopy.vue2.js +80 -51
  99. package/components/inlineCopy/index.d.ts +27 -0
  100. package/components/input/v4/TextField.vue.js +2 -2
  101. package/components/input/v4/TextField.vue2.js +1 -1
  102. package/components/link/Link.vue.d.ts +3 -3
  103. package/components/link/Link.vue.js +5 -5
  104. package/components/link/Link.vue2.js +1 -1
  105. package/components/link/index.d.ts +7 -7
  106. package/components/multibar/MultiBar.vue.js +3 -3
  107. package/components/multibar/MultiBar.vue2.js +1 -1
  108. package/components/radioButton/v4/RadioButtonV4.vue.js +3 -3
  109. package/components/radioButton/v4/RadioButtonV4.vue2.js +1 -1
  110. package/components/snackbar/common/notify.js +25 -25
  111. package/components/snackbar/common/snackbar.common.js +19 -19
  112. package/components/snackbar/common/snackbar.types.d.ts +2 -1
  113. package/components/snackbar/v4/SnackbarV4.vue.d.ts +8 -1
  114. package/components/snackbar/v4/SnackbarV4.vue.js +2 -2
  115. package/components/snackbar/v4/SnackbarV4.vue2.js +85 -64
  116. package/components/switch/v4/SwitchV4.vue.d.ts +5 -0
  117. package/components/switch/v4/SwitchV4.vue.js +3 -3
  118. package/components/switch/v4/SwitchV4.vue2.js +14 -13
  119. package/components/switch/v4/index.d.ts +9 -0
  120. package/components/table/v4/DataGrid.vue.js +4 -4
  121. package/components/table/v4/DataGrid.vue2.js +78 -77
  122. package/components/table-cells/v3/Editable.vue.d.ts +1 -1
  123. package/components/table-cells/v3/index.d.ts +20 -20
  124. package/components/table-cells/v4/EditableV4.vue.d.ts +1 -1
  125. package/components/table-cells/v4/index.d.ts +20 -20
  126. package/components/textArea/v4/TextAreaV4.vue.js +3 -3
  127. package/components/textArea/v4/TextAreaV4.vue2.js +1 -1
  128. package/design-foundation.stories/colors/ColorsData.d.ts +52 -47
  129. package/index.d.ts +391 -46
  130. package/index.js +95 -91
  131. package/package.json +7 -2
  132. package/style/v4/colors.scss +89 -84
  133. package/style/v4/grid.css +1 -1
  134. package/style/v4/grid.css.map +1 -1
  135. package/testids/index.d.ts +6 -1
  136. package/testids/index.js +38 -37
  137. package/Alert.vue_vue_type_style_index_0_scoped_06e0871a_lang.css +0 -1
  138. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_858cefbf_lang.css +0 -1
  139. package/AppHeader.vue_vue_type_style_index_0_scoped_538ccdc6_lang.css +0 -1
  140. package/ButtonV4.vue_vue_type_style_index_0_scoped_852be7ec_lang.css +0 -1
  141. package/Chart.vue_vue_type_style_index_0_scoped_060d02be_lang.css +0 -1
  142. package/ChartHeader.vue_vue_type_style_index_0_scoped_d90c583e_lang.css +0 -1
  143. package/ChartPlane.vue_vue_type_style_index_0_scoped_a685cf5e_lang.css +0 -1
  144. package/ChartTooltip.vue_vue_type_style_index_0_scoped_9623dbbd_lang.css +0 -1
  145. package/CheckboxV4.vue_vue_type_style_index_0_scoped_af4ae3c3_lang.css +0 -1
  146. package/ChipV4.vue_vue_type_style_index_0_scoped_a4d3a12e_lang.css +0 -1
  147. package/ColumnPicker.vue_vue_type_style_index_0_scoped_ea8c7024_lang.css +0 -1
  148. package/DataGrid.vue_vue_type_style_index_0_scoped_cd41c5ca_lang.css +0 -1
  149. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_64ae80dd_lang.css +0 -1
  150. package/DialogV4.vue_vue_type_style_index_0_scoped_cc99f1e3_lang.css +0 -1
  151. package/DropdownV4.vue_vue_type_style_index_0_scoped_d3802d59_lang.css +0 -1
  152. package/GroupOption.vue_vue_type_style_index_0_scoped_5f372a81_lang.css +0 -1
  153. package/IconV4.vue_vue_type_style_index_0_scoped_dc433d48_lang.css +0 -1
  154. package/InlineCopy.vue_vue_type_style_index_0_scoped_ad48b61e_lang.css +0 -1
  155. package/Link.vue_vue_type_style_index_0_scoped_1a766750_lang.css +0 -1
  156. package/MultiBar.vue_vue_type_style_index_0_scoped_71617643_lang.css +0 -1
  157. package/RadioButtonV4.vue_vue_type_style_index_0_scoped_05c7bca2_lang.css +0 -1
  158. package/SnackbarV4.vue_vue_type_style_index_0_scoped_1b650c39_lang.css +0 -1
  159. package/SwitchV4.vue_vue_type_style_index_0_scoped_cd6621a7_lang.css +0 -1
  160. package/TextAreaV4.vue_vue_type_style_index_0_scoped_4114ef89_lang.css +0 -1
  161. package/TextField.vue_vue_type_style_index_0_scoped_3b7a3661_lang.css +0 -1
  162. package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_2076b5ab_lang.css +0 -1
  163. package/TooltipHeader.vue_vue_type_style_index_0_scoped_da3532aa_lang.css +0 -1
  164. package/components/checkbox/v4/icons/CheckedDisabledState.vue.d.ts +0 -29
  165. package/components/checkbox/v4/icons/CheckedDisabledState.vue.js +0 -45
  166. package/components/checkbox/v4/icons/CheckedDisabledState.vue2.js +0 -4
  167. package/components/checkbox/v4/icons/IndeterminateDisabledState.vue.d.ts +0 -2
  168. package/components/checkbox/v4/icons/IndeterminateDisabledState.vue.js +0 -40
  169. package/components/checkbox/v4/icons/UncheckedDisabledState.vue.d.ts +0 -2
  170. package/components/checkbox/v4/icons/UncheckedDisabledState.vue.js +0 -30
@@ -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
  };
@@ -27,6 +27,7 @@ declare const ChartTypes: () => ({
27
27
  trendTooltip: any;
28
28
  subheader: string;
29
29
  subheaderTooltip: any;
30
+ headerTooltip: string;
30
31
  trendValue: string | number;
31
32
  trendDirection: TrendDirection;
32
33
  noteText: string;
@@ -146,6 +147,10 @@ declare const ChartTypes: () => ({
146
147
  }>;
147
148
  default: any;
148
149
  };
150
+ headerTooltip: {
151
+ type: import("vue").PropType<string>;
152
+ default: any;
153
+ };
149
154
  trendValue: {
150
155
  type: import("vue").PropType<string | number>;
151
156
  default: any;
@@ -239,7 +244,7 @@ declare const ChartTypes: () => ({
239
244
  "onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
240
245
  "onUpdate:sortSelected"?: (sortOption: unknown) => any;
241
246
  "onUpdate:chartType"?: (chartType: ChartType) => any;
242
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "header" | "testId" | "loading" | "visibleIds" | "minVisible" | "maxVisible" | "maxLimitTooltipText" | "sortSelected" | "sortOptions" | "sortOptionNameKey" | "chartType" | "hideLegend" | "xAxisFormat" | "xAxisDateInterval" | "totalsChart" | "parsing" | "yAxisFormat" | "valueSuffix" | "valuePrefix" | "trendTooltip" | "subheader" | "subheaderTooltip" | "trendValue" | "trendDirection" | "noteText" | "dataSets" | "tickCount" | "truncateTickLabels" | "keepSubheaderVisible" | "empty" | "noDataIcon" | "noDataTitle" | "noDataSubtitle" | "withAnimation" | "tooltipTotalType" | "tooltipTotalCalcFn" | "tooltipOrder" | "indicateIncompleteData" | "tooltipExcludeTotalItem" | "fullHeight" | "fullHeightBottomSpacing" | "withSettingsHeader" | "extraCharts" | "colorVariant">;
247
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "header" | "testId" | "loading" | "visibleIds" | "minVisible" | "maxVisible" | "maxLimitTooltipText" | "sortSelected" | "sortOptions" | "sortOptionNameKey" | "chartType" | "hideLegend" | "xAxisFormat" | "xAxisDateInterval" | "totalsChart" | "parsing" | "yAxisFormat" | "valueSuffix" | "valuePrefix" | "trendTooltip" | "subheader" | "subheaderTooltip" | "headerTooltip" | "trendValue" | "trendDirection" | "noteText" | "dataSets" | "tickCount" | "truncateTickLabels" | "keepSubheaderVisible" | "empty" | "noDataIcon" | "noDataTitle" | "noDataSubtitle" | "withAnimation" | "tooltipTotalType" | "tooltipTotalCalcFn" | "tooltipOrder" | "indicateIncompleteData" | "tooltipExcludeTotalItem" | "fullHeight" | "fullHeightBottomSpacing" | "withSettingsHeader" | "extraCharts" | "colorVariant">;
243
248
  $attrs: {
244
249
  [x: string]: unknown;
245
250
  };
@@ -350,6 +355,10 @@ declare const ChartTypes: () => ({
350
355
  }>;
351
356
  default: any;
352
357
  };
358
+ headerTooltip: {
359
+ type: import("vue").PropType<string>;
360
+ default: any;
361
+ };
353
362
  trendValue: {
354
363
  type: import("vue").PropType<string | number>;
355
364
  default: any;
@@ -470,6 +479,7 @@ declare const ChartTypes: () => ({
470
479
  trendTooltip: any;
471
480
  subheader: string;
472
481
  subheaderTooltip: any;
482
+ headerTooltip: string;
473
483
  trendValue: string | number;
474
484
  trendDirection: TrendDirection;
475
485
  noteText: string;
@@ -609,6 +619,10 @@ declare const ChartTypes: () => ({
609
619
  }>;
610
620
  default: any;
611
621
  };
622
+ headerTooltip: {
623
+ type: import("vue").PropType<string>;
624
+ default: any;
625
+ };
612
626
  trendValue: {
613
627
  type: import("vue").PropType<string | number>;
614
628
  default: any;
@@ -803,6 +817,10 @@ declare const ChartTypes: () => ({
803
817
  }>;
804
818
  default: any;
805
819
  };
820
+ headerTooltip: {
821
+ type: import("vue").PropType<string>;
822
+ default: any;
823
+ };
806
824
  trendValue: {
807
825
  type: import("vue").PropType<string | number>;
808
826
  default: any;
@@ -923,6 +941,7 @@ declare const ChartTypes: () => ({
923
941
  trendTooltip: any;
924
942
  subheader: string;
925
943
  subheaderTooltip: any;
944
+ headerTooltip: string;
926
945
  trendValue: string | number;
927
946
  trendDirection: TrendDirection;
928
947
  noteText: string;
@@ -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_88525d86_lang.css"; //*');
4
+ const c = /* @__PURE__ */ e(o, [["__scopeId", "data-v-88525d86"]]);
5
5
  export {
6
- t as default
6
+ c 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_88525d86_lang.css"; import { defineComponent as V, openBlock as l, createElementBlock as $, mergeProps as i, unref as e, createElementVNode as r, createBlock as a, createCommentVNode as n, normalizeClass as I, withCtx as S, 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-88525d86"), t = t(), v(), t), H = ["for"], K = { class: "checkboxes" }, M = ["id", "disabled", "checked", ".indeterminate"], W = /* @__PURE__ */ z(() => /* @__PURE__ */ r("span", { class: "checkbox__inner" }, null, -1)), j = { class: "states" }, Z = /* @__PURE__ */ V({
13
10
  __name: "CheckboxV4",
14
11
  props: {
15
12
  isChecked: { type: Boolean },
@@ -21,91 +18,75 @@ 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(), $("label", i({
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", i({ ...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
+ W,
57
+ r("span", j, [
58
+ e(y) ? (l(), a(N, i({
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(), a(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(), a(L, {
69
+ key: 2,
70
+ class: I(["icon unchecked", { disabled: t.disabled }]),
71
+ disabled: t.disabled
72
+ }, null, 8, ["class", "disabled"])) : n("", !0)
92
73
  ])
93
74
  ]),
94
- t.label || k.$slots.default ? (o(), n(e(v), a({
75
+ t.label || m.$slots.default ? (l(), a(e(D), i({
95
76
  key: 0,
96
77
  variant: "body2",
97
78
  class: "checkbox-label"
98
- }, e(r)[e(i).LABEL]), {
99
- default: V(() => [
100
- $(k.$slots, "default", {}, () => [
101
- F(g(t.label), 1)
79
+ }, e(c)[e(d).LABEL]), {
80
+ default: S(() => [
81
+ A(m.$slots, "default", {}, () => [
82
+ F(T(t.label), 1)
102
83
  ], !0)
103
84
  ]),
104
85
  _: 3
105
- }, 16)) : c("", !0)
106
- ], 16, W));
86
+ }, 16)) : n("", !0)
87
+ ], 16, H));
107
88
  }
108
89
  });
109
90
  export {
110
- le as default
91
+ Z as default
111
92
  };
@@ -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
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as o, openBlock as r, createElementBlock as l, createElementVNode as t, unref as n } from "vue";
1
+ import { defineComponent as o, openBlock as r, createElementBlock as n, createElementVNode as t, unref as l } from "vue";
2
2
  import { darkerColor as i } from "../../../../utils/color.js";
3
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("line", {
7
+ }, s = ["fill"], a = ["stroke"], d = /* @__PURE__ */ t("line", {
8
8
  x1: "4.75",
9
9
  y1: "8.25",
10
10
  x2: "11.25",
@@ -18,14 +18,14 @@ const c = {
18
18
  color: { default: null }
19
19
  },
20
20
  setup(e) {
21
- return (a, m) => (r(), l("svg", c, [
21
+ return (h, m) => (r(), n("svg", c, [
22
22
  t("rect", {
23
23
  x: "0.5",
24
24
  y: "0.5",
25
25
  width: "15",
26
26
  height: "15",
27
27
  rx: "3.5",
28
- fill: e.color || "#0091FF"
28
+ fill: e.color || "var(--primary-main)"
29
29
  }, null, 8, s),
30
30
  t("rect", {
31
31
  x: "0.5",
@@ -33,9 +33,9 @@ const c = {
33
33
  width: "15",
34
34
  height: "15",
35
35
  rx: "3.5",
36
- stroke: e.color ? n(i)(e.color) : "#0880EA"
37
- }, null, 8, d),
38
- h
36
+ stroke: e.color ? l(i)(e.color) : "var(--primary-dark)"
37
+ }, null, 8, a),
38
+ d
39
39
  ]));
40
40
  }
41
41
  });
@@ -1,2 +1,29 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ disabled?: boolean;
3
+ }>, {
4
+ disabled: boolean;
5
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
6
+ disabled?: boolean;
7
+ }>, {
8
+ disabled: boolean;
9
+ }>>>, {
10
+ disabled: boolean;
11
+ }>;
2
12
  export default _default;
13
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
+ type __VLS_TypePropsToRuntimeProps<T> = {
15
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
16
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
17
+ } : {
18
+ type: import('vue').PropType<T[K]>;
19
+ required: true;
20
+ };
21
+ };
22
+ type __VLS_WithDefaults<P, D> = {
23
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
24
+ default: D[K];
25
+ }> : P[K];
26
+ };
27
+ type __VLS_Prettify<T> = {
28
+ [K in keyof T]: T[K];
29
+ } & {};
@@ -1,32 +1,34 @@
1
- import { openBlock as e, createElementBlock as o, createElementVNode as t } from "vue";
2
- import c from "../../../../_virtual/_plugin-vue_export-helper.js";
3
- const r = {}, n = {
1
+ import { defineComponent as o, openBlock as n, createElementBlock as l, createElementVNode as e } from "vue";
2
+ const r = {
4
3
  viewBox: "0 0 16 16",
5
4
  fill: "none",
6
5
  xmlns: "http://www.w3.org/2000/svg"
7
- }, l = /* @__PURE__ */ t("rect", {
8
- x: "0.5",
9
- y: "0.5",
10
- width: "15",
11
- height: "15",
12
- rx: "3.5",
13
- fill: "black",
14
- "fill-opacity": "0.05"
15
- }, null, -1), s = /* @__PURE__ */ t("rect", {
6
+ }, c = ["fill"], s = /* @__PURE__ */ e("rect", {
16
7
  x: "0.5",
17
8
  y: "0.5",
18
9
  width: "15",
19
10
  height: "15",
20
11
  rx: "3.5",
21
12
  stroke: "currentColor"
22
- }, null, -1), i = [
23
- l,
24
- s
25
- ];
26
- function _(h, d) {
27
- return e(), o("svg", n, i);
28
- }
29
- const x = /* @__PURE__ */ c(r, [["render", _]]);
13
+ }, null, -1), h = /* @__PURE__ */ o({
14
+ __name: "UncheckedState",
15
+ props: {
16
+ disabled: { type: Boolean, default: !1 }
17
+ },
18
+ setup(t) {
19
+ return (a, i) => (n(), l("svg", r, [
20
+ e("rect", {
21
+ x: "0.5",
22
+ y: "0.5",
23
+ width: "15",
24
+ height: "15",
25
+ rx: "3.5",
26
+ fill: t.disabled ? "var(--action-disabled-background)" : "var(--background-inset)"
27
+ }, null, 8, c),
28
+ s
29
+ ]));
30
+ }
31
+ });
30
32
  export {
31
- x as default
33
+ h as default
32
34
  };
@@ -0,0 +1,4 @@
1
+ import f from "./UncheckedState.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,7 +1,7 @@
1
1
  import o from "./ChipV4.vue2.js";
2
- /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../ChipV4.vue_vue_type_style_index_0_scoped_a4d3a12e_lang.css"; //*');
4
- const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-a4d3a12e"]]);
2
+ /* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../ChipV4.vue_vue_type_style_index_0_scoped_a221c649_lang.css"; //*');
4
+ const t = /* @__PURE__ */ _(o, [["__scopeId", "data-v-a221c649"]]);
5
5
  export {
6
6
  t as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import "../../../ChipV4.vue_vue_type_style_index_0_scoped_a4d3a12e_lang.css"; import { defineComponent as i, openBlock as o, createElementBlock as d, mergeProps as s, unref as t, renderSlot as c, createVNode as f, withCtx as n, createTextVNode as p, toDisplayString as u } from "vue";
1
+ import "../../../ChipV4.vue_vue_type_style_index_0_scoped_a221c649_lang.css"; import { defineComponent as i, openBlock as o, createElementBlock as d, mergeProps as s, unref as t, renderSlot as c, createVNode as f, withCtx as n, createTextVNode as p, toDisplayString as u } from "vue";
2
2
  import { ChipTestIdModifiers as a } from "../../../testids/index.js";
3
3
  import { useTestIdAttrs as m } from "../../../utils/testIds.js";
4
4
  import h from "../../typography/v4/Typography.vue.js";