@ironsource/shared-ui 2.2.0-rc.43 → 2.2.0-rc.48

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 (156) hide show
  1. package/Alert.vue_vue_type_style_index_0_scoped_5e66710b_lang.css +1 -0
  2. package/ButtonV4.vue_vue_type_style_index_0_scoped_a59af1ad_lang.css +1 -0
  3. package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_6eae923a_lang.css +1 -0
  4. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_5a645cc9_lang.css +1 -0
  5. package/DataGridMenu.vue_vue_type_style_index_0_scoped_b7e65177_lang.css +1 -0
  6. package/DatePickerV4.vue_vue_type_style_index_0_scoped_39e6c10c_lang.css +1 -0
  7. package/DateRangeV4.vue_vue_type_style_index_0_scoped_bb44cdf8_lang.css +1 -0
  8. package/DropdownV4.vue_vue_type_style_index_0_scoped_f44f2402_lang.css +1 -0
  9. package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -1
  10. package/FieldLabel.vue_vue_type_style_index_0_scoped_960ea8b1_lang.css +1 -0
  11. package/HelpText.vue_vue_type_style_index_0_scoped_b5caf7cd_lang.css +1 -0
  12. package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_2a5345ef_lang.css +1 -0
  13. package/IncludeExclude.vue_vue_type_style_index_0_scoped_cc2adbf5_lang.css +1 -1
  14. package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_bd6145ce_lang.css +1 -1
  15. package/InlineCopy.vue_vue_type_style_index_0_scoped_8cb01c9d_lang.css +1 -0
  16. package/Link.vue_vue_type_style_index_0_scoped_c4345b08_lang.css +1 -0
  17. package/Loader.vue_vue_type_style_index_0_scoped_50d9be64_lang.css +1 -0
  18. package/Menu.vue_vue_type_style_index_0_scoped_eb057818_lang.css +1 -0
  19. package/Menu.vue_vue_type_style_index_1_lang.css +1 -1
  20. package/MultiBar.vue_vue_type_style_index_0_scoped_c4395fb6_lang.css +1 -0
  21. package/OptionV4.vue_vue_type_style_index_0_scoped_d48a9318_lang.css +1 -0
  22. package/PopoverV4.vue_vue_type_style_index_0_scoped_9ae00876_lang.css +1 -0
  23. package/PopoverV4.vue_vue_type_style_index_1_lang.css +1 -1
  24. package/SearchV4.vue_vue_type_style_index_0_scoped_e1a33934_lang.css +1 -0
  25. package/SnackbarV4.vue_vue_type_style_index_0_scoped_35c79635_lang.css +1 -0
  26. package/TabsV4.vue_vue_type_style_index_0_scoped_9747c9da_lang.css +1 -0
  27. package/TextField.vue_vue_type_style_index_0_scoped_f4275491_lang.css +1 -0
  28. package/ThemeWrapper.vue_vue_type_style_index_0_scoped_66bd448a_lang.css +1 -0
  29. package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
  30. package/ToggleV4.vue_vue_type_style_index_0_scoped_fbbae882_lang.css +1 -0
  31. package/TooltipV4.vue_vue_type_style_index_0_scoped_22e25f74_lang.css +1 -0
  32. package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
  33. package/components/ThemeWrapper/ThemeStrore.d.ts +1 -2
  34. package/components/ThemeWrapper/ThemeStrore.js +11 -14
  35. package/components/ThemeWrapper/ThemeWrapper.vue.js +2 -2
  36. package/components/ThemeWrapper/ThemeWrapper.vue2.js +11 -8
  37. package/components/ThemeWrapper/index.d.ts +1 -2
  38. package/components/ThemeWrapper/index.js +2 -4
  39. package/components/alert/Alert.vue.js +4 -4
  40. package/components/alert/Alert.vue2.js +1 -1
  41. package/components/autocomplete/index.d.ts +16 -16
  42. package/components/button/v3/ButtonBase.vue.d.ts +1 -1
  43. package/components/button/v4/ButtonV4.vue.js +3 -3
  44. package/components/button/v4/ButtonV4.vue2.js +1 -1
  45. package/components/columnPicker/ColumnPicker.vue.d.ts +1 -1
  46. package/components/columnPicker/index.d.ts +20 -20
  47. package/components/datePicker/v4/DatePickerV4.vue.js +2 -2
  48. package/components/datePicker/v4/DatePickerV4.vue2.js +1 -1
  49. package/components/dateRange/v4/CalendarMonthV4.vue.js +4 -4
  50. package/components/dateRange/v4/CalendarMonthV4.vue2.js +1 -1
  51. package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
  52. package/components/dateRange/v4/DateRangeV4.vue2.js +28 -27
  53. package/components/dropdown/common/Dropdown.common.js +351 -274
  54. package/components/dropdown/v3/Dropdown.vue.d.ts +6 -6
  55. package/components/dropdown/v3/index.d.ts +88 -88
  56. package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
  57. package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +38 -32
  58. package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +1 -1
  59. package/components/dropdown/v4/DropdownV4.vue.d.ts +50 -41
  60. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  61. package/components/dropdown/v4/DropdownV4.vue2.js +239 -224
  62. package/components/dropdown/v4/IconButtonDropdownTrigger.vue.d.ts +5 -0
  63. package/components/dropdown/v4/IconButtonDropdownTrigger.vue.js +3 -3
  64. package/components/dropdown/v4/IconButtonDropdownTrigger.vue2.js +12 -9
  65. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  66. package/components/dropdown/v4/OptionV4.vue2.js +12 -12
  67. package/components/dropdown/v4/TreeDropdown.vue.d.ts +1 -1
  68. package/components/dropdown/v4/index.d.ts +2377 -2349
  69. package/components/helpText/HelpText.vue.js +3 -3
  70. package/components/helpText/HelpText.vue2.js +11 -10
  71. package/components/includeExclude/IncludeExclude.vue.d.ts +2 -2
  72. package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +2 -2
  73. package/components/includeExclude/index.d.ts +54 -54
  74. package/components/inlineCopy/InlineCopy.vue.d.ts +5 -0
  75. package/components/inlineCopy/InlineCopy.vue.js +3 -3
  76. package/components/inlineCopy/InlineCopy.vue2.js +54 -53
  77. package/components/inlineCopy/index.d.ts +9 -0
  78. package/components/input/v4/TextField.vue.d.ts +5 -0
  79. package/components/input/v4/TextField.vue.js +2 -2
  80. package/components/input/v4/TextField.vue2.js +22 -19
  81. package/components/input/v4/index.d.ts +20 -1
  82. package/components/link/Link.vue.js +5 -5
  83. package/components/link/Link.vue2.js +30 -21
  84. package/components/loader/v4/Loader.vue.js +3 -3
  85. package/components/loader/v4/Loader.vue2.js +1 -1
  86. package/components/menu/Menu.vue.js +3 -3
  87. package/components/menu/Menu.vue2.js +30 -33
  88. package/components/multibar/MultiBar.vue.js +3 -3
  89. package/components/multibar/MultiBar.vue2.js +50 -51
  90. package/components/popover/v4/PopoverV4.vue.js +2 -2
  91. package/components/popover/v4/PopoverV4.vue2.js +21 -22
  92. package/components/search/v4/SearchV4.vue.d.ts +5 -0
  93. package/components/search/v4/SearchV4.vue.js +5 -5
  94. package/components/search/v4/SearchV4.vue2.js +23 -18
  95. package/components/search/v4/index.d.ts +9 -0
  96. package/components/shared/FieldLabel.vue.js +3 -3
  97. package/components/shared/FieldLabel.vue2.js +9 -8
  98. package/components/snackbar/v4/SnackbarV4.vue.js +3 -3
  99. package/components/snackbar/v4/SnackbarV4.vue2.js +1 -1
  100. package/components/table/v4/DataGridMenu.vue.d.ts +5 -0
  101. package/components/table/v4/DataGridMenu.vue.js +5 -5
  102. package/components/table/v4/DataGridMenu.vue2.js +28 -22
  103. package/components/table/v4/index.d.ts +9 -0
  104. package/components/tabs/v4/TabsV4.vue.d.ts +5 -0
  105. package/components/tabs/v4/TabsV4.vue.js +3 -3
  106. package/components/tabs/v4/TabsV4.vue2.js +74 -43
  107. package/components/tabs/v4/index.d.ts +20 -1
  108. package/components/toggle/v4/ToggleV4.vue.d.ts +5 -0
  109. package/components/toggle/v4/ToggleV4.vue.js +3 -3
  110. package/components/toggle/v4/ToggleV4.vue2.js +50 -41
  111. package/components/toggle/v4/index.d.ts +20 -1
  112. package/components/tooltip/v3/Tooltip.vue.d.ts +1 -1
  113. package/components/tooltip/v3/index.d.ts +20 -20
  114. package/components/tooltip/v4/TooltipV4.vue.d.ts +15 -2
  115. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  116. package/components/tooltip/v4/TooltipV4.vue2.js +85 -63
  117. package/components/tooltip/v4/index.d.ts +70 -23
  118. package/design-foundation.stories/colors/ColorsData.d.ts +0 -114
  119. package/design-foundation.stories/colors/ColorsStoryWrapper.vue.d.ts +1 -28
  120. package/index.d.ts +3013 -2696
  121. package/index.js +1 -1
  122. package/package.json +5 -1
  123. package/style/v4/border-radius.scss +2 -2
  124. package/style/v4/colors.scss +0 -105
  125. package/style/v4/elevations.scss +0 -11
  126. package/style/v4/grid.css +1 -17
  127. package/style/v4/grid.css.map +1 -1
  128. package/style/v4/grid.scss +1 -1
  129. package/style/v4/spacings.scss +1 -1
  130. package/style/v4/styleguideV4.scss +0 -1
  131. package/styleguide.scss +2 -2
  132. package/Alert.vue_vue_type_style_index_0_scoped_1036ab1d_lang.css +0 -1
  133. package/ButtonV4.vue_vue_type_style_index_0_scoped_6f05dc63_lang.css +0 -1
  134. package/CalendarMonthV4.vue_vue_type_style_index_0_scoped_73af6757_lang.css +0 -1
  135. package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_38354f10_lang.css +0 -1
  136. package/DataGridMenu.vue_vue_type_style_index_0_scoped_ddfaf207_lang.css +0 -1
  137. package/DatePickerV4.vue_vue_type_style_index_0_scoped_bb0041c1_lang.css +0 -1
  138. package/DateRangeV4.vue_vue_type_style_index_0_scoped_5545bc01_lang.css +0 -1
  139. package/DropdownV4.vue_vue_type_style_index_0_scoped_b2d0a4d2_lang.css +0 -1
  140. package/FieldLabel.vue_vue_type_style_index_0_scoped_921d4087_lang.css +0 -1
  141. package/HelpText.vue_vue_type_style_index_0_scoped_641c2356_lang.css +0 -1
  142. package/IconButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_99e51ecc_lang.css +0 -1
  143. package/InlineCopy.vue_vue_type_style_index_0_scoped_9fa1921a_lang.css +0 -1
  144. package/Link.vue_vue_type_style_index_0_scoped_fe0e7f6f_lang.css +0 -1
  145. package/Loader.vue_vue_type_style_index_0_scoped_94c3c850_lang.css +0 -1
  146. package/Menu.vue_vue_type_style_index_0_scoped_545aa70b_lang.css +0 -1
  147. package/MultiBar.vue_vue_type_style_index_0_scoped_7c2477ad_lang.css +0 -1
  148. package/OptionV4.vue_vue_type_style_index_0_scoped_7e70c643_lang.css +0 -1
  149. package/PopoverV4.vue_vue_type_style_index_0_scoped_ea1a3e8c_lang.css +0 -1
  150. package/SearchV4.vue_vue_type_style_index_0_scoped_d6c42f4b_lang.css +0 -1
  151. package/SnackbarV4.vue_vue_type_style_index_0_scoped_f19e742c_lang.css +0 -1
  152. package/TabsV4.vue_vue_type_style_index_0_scoped_f9433b11_lang.css +0 -1
  153. package/TextField.vue_vue_type_style_index_0_scoped_28fab783_lang.css +0 -1
  154. package/ThemeWrapper.vue_vue_type_style_index_0_scoped_8eef6574_lang.css +0 -1
  155. package/ToggleV4.vue_vue_type_style_index_0_scoped_a4aa32fb_lang.css +0 -1
  156. package/TooltipV4.vue_vue_type_style_index_0_scoped_f88fbece_lang.css +0 -1
@@ -15,6 +15,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
15
15
  autoHide?: boolean;
16
16
  dontWrapDisabled?: boolean;
17
17
  maxWidth?: string;
18
+ focusable?: boolean;
19
+ revealOnFocus?: boolean;
18
20
  }>, {
19
21
  text: any;
20
22
  header: any;
@@ -31,7 +33,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
31
33
  autoHide: boolean;
32
34
  dontWrapDisabled: boolean;
33
35
  maxWidth: string;
34
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
36
+ focusable: boolean;
37
+ revealOnFocus: boolean;
38
+ }>, {
39
+ isShown: import("vue").ComputedRef<boolean>;
40
+ libTriggers: import("vue").ComputedRef<TooltipTriggers[]>;
41
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
35
42
  show: () => void;
36
43
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
37
44
  text?: string;
@@ -49,6 +56,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
49
56
  autoHide?: boolean;
50
57
  dontWrapDisabled?: boolean;
51
58
  maxWidth?: string;
59
+ focusable?: boolean;
60
+ revealOnFocus?: boolean;
52
61
  }>, {
53
62
  text: any;
54
63
  header: any;
@@ -65,12 +74,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
65
74
  autoHide: boolean;
66
75
  dontWrapDisabled: boolean;
67
76
  maxWidth: string;
77
+ focusable: boolean;
78
+ revealOnFocus: boolean;
68
79
  }>>> & {
69
80
  onShow?: () => any;
70
81
  }, {
71
- theme: string;
72
82
  header: string;
73
83
  text: string;
84
+ theme: string;
74
85
  testId: string;
75
86
  delay: number;
76
87
  triggers: TooltipTriggers[];
@@ -83,6 +94,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
83
94
  autoHide: boolean;
84
95
  dontWrapDisabled: boolean;
85
96
  maxWidth: string;
97
+ focusable: boolean;
98
+ revealOnFocus: boolean;
86
99
  }>, {
87
100
  default?(_: {}): any;
88
101
  tooltip?(_: {
@@ -1,8 +1,8 @@
1
1
  import o from "./TooltipV4.vue2.js";
2
2
  /* empty css *//* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_f88fbece_lang.css"; //*');
3
+ // import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_22e25f74_lang.css"; //*');
4
4
  // import "../../../TooltipV4.vue_vue_type_style_index_1_lang.css"; //');
5
- const l = /* @__PURE__ */ e(o, [["__scopeId", "data-v-f88fbece"]]);
5
+ const l = /* @__PURE__ */ e(o, [["__scopeId", "data-v-22e25f74"]]);
6
6
  export {
7
7
  l as default
8
8
  };
@@ -1,14 +1,11 @@
1
- import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_f88fbece_lang.css"; import "../../../TooltipV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as T, computed as C, onMounted as N, watch as B, onUnmounted as E, renderSlot as i, openBlock as c, createBlock as u, unref as n, mergeProps as g, withCtx as f, createTextVNode as b, toDisplayString as $, createElementVNode as I } from "vue";
2
- import V from "./TextWithTitleContent.vue.js";
3
- import { Tooltip as W } from "floating-vue";
4
- import { TooltipTestIdModifiers as p } from "../../../testids/index.js";
5
- import k from "../../typography/v4/Typography.vue.js";
6
- import { tooltipCommon as S } from "../common/Tooltip.common.js";
7
- import { useTestIdAttrs as A } from "../../../utils/testIds.js";
8
- const z = {
9
- ref: "container",
10
- class: "container"
11
- }, F = /* @__PURE__ */ T({
1
+ import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_22e25f74_lang.css"; import "../../../TooltipV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as W, ref as B, computed as u, onMounted as F, watch as z, onUnmounted as A, renderSlot as f, openBlock as h, createBlock as p, unref as n, mergeProps as C, withCtx as y, createTextVNode as D, toDisplayString as P, createElementVNode as R, normalizeClass as O } from "vue";
2
+ import G from "./TextWithTitleContent.vue.js";
3
+ import { Tooltip as H } from "floating-vue";
4
+ import { TooltipTestIdModifiers as v } from "../../../testids/index.js";
5
+ import Z from "../../typography/v4/Typography.vue.js";
6
+ import { tooltipCommon as j } from "../common/Tooltip.common.js";
7
+ import { useTestIdAttrs as K } from "../../../utils/testIds.js";
8
+ const U = ["tabindex"], _ = /* @__PURE__ */ W({
12
9
  __name: "TooltipV4",
13
10
  props: {
14
11
  text: { default: null },
@@ -25,90 +22,115 @@ const z = {
25
22
  shown: { type: Boolean, default: null },
26
23
  autoHide: { type: Boolean, default: !0 },
27
24
  dontWrapDisabled: { type: Boolean, default: !1 },
28
- maxWidth: { default: "21.875rem" }
25
+ maxWidth: { default: "21.875rem" },
26
+ focusable: { type: Boolean, default: !1 },
27
+ revealOnFocus: { type: Boolean, default: !0 }
29
28
  },
30
29
  emits: ["show"],
31
- setup(t, { emit: v }) {
32
- const a = t, { textForDisplay: m } = S(a), h = A(a.testId, p), d = (e) => `--tooltip-max-width-${e.replace(/[^a-zA-Z0-9]/g, "-")}`, r = (e) => `max-width-class-${e.replace(/[^a-zA-Z0-9]/g, "-")}`, x = (e) => {
33
- const o = r(e), l = d(e);
30
+ setup(o, { expose: E, emit: N }) {
31
+ const t = o, { textForDisplay: c } = j(t), g = K(t.testId, v), w = B(null), x = u(
32
+ () => (t.triggers || []).filter((e) => e !== "focus")
33
+ ), m = u(
34
+ () => t.revealOnFocus && !(t.triggers || []).includes("click")
35
+ ), s = B(!1), b = u(() => t.shown !== null && t.shown !== void 0 ? t.shown : m.value && s.value ? !0 : null), k = () => {
36
+ m.value && (s.value = !0);
37
+ }, I = (e) => {
38
+ if (!m.value)
39
+ return;
40
+ const a = e.relatedTarget;
41
+ a && w.value?.contains(a) || (s.value = !1);
42
+ }, S = (e) => {
43
+ e.key === "Escape" && s.value && (s.value = !1);
44
+ };
45
+ E({ isShown: b, libTriggers: x });
46
+ const d = (e) => `--tooltip-max-width-${e.replace(/[^a-zA-Z0-9]/g, "-")}`, i = (e) => `max-width-class-${e.replace(/[^a-zA-Z0-9]/g, "-")}`, $ = (e) => {
47
+ const a = i(e), l = d(e);
34
48
  return `
35
- .v-popper--theme-light-theme-v4.v4-tooltip.${o} .v-popper__wrapper {
49
+ .v-popper--theme-light-theme-v4.v4-tooltip.${a} .v-popper__wrapper {
36
50
  max-width: var(${l}, 21.875rem)
37
51
  }
38
52
  `;
39
- }, w = C(
53
+ }, V = u(
40
54
  () => [
41
- a.theme,
42
- a.placement,
55
+ t.theme,
56
+ t.placement,
43
57
  "v4-tooltip",
44
- a.maxWidth ? r(a.maxWidth) : ""
58
+ t.maxWidth ? i(t.maxWidth) : ""
45
59
  // This is the class name that will be used as a selector for the tooltip
46
60
  ].filter(Boolean)
47
- ), y = (e) => {
48
- const o = d(e), l = r(e);
49
- if (document.documentElement.style.setProperty(o, e), !document.getElementById(l)) {
50
- const s = document.createElement("style");
51
- s.id = l, s.textContent = x(e), document.head.appendChild(s);
61
+ ), T = (e) => {
62
+ const a = d(e), l = i(e);
63
+ if (document.documentElement.style.setProperty(a, e), !document.getElementById(l)) {
64
+ const r = document.createElement("style");
65
+ r.id = l, r.textContent = $(e), document.head.appendChild(r);
52
66
  }
53
67
  };
54
- return N(() => {
55
- a.maxWidth && y(a.maxWidth);
56
- }), B(
57
- () => a.maxWidth,
58
- (e, o) => {
59
- if (o) {
60
- const l = d(o);
68
+ return F(() => {
69
+ t.maxWidth && T(t.maxWidth);
70
+ }), z(
71
+ () => t.maxWidth,
72
+ (e, a) => {
73
+ if (a) {
74
+ const l = d(a);
61
75
  document.documentElement.style.removeProperty(l);
62
76
  }
63
- e && y(e);
77
+ e && T(e);
64
78
  }
65
- ), E(() => {
66
- if (a.maxWidth) {
67
- const e = d(a.maxWidth);
79
+ ), A(() => {
80
+ if (t.maxWidth) {
81
+ const e = d(t.maxWidth);
68
82
  document.documentElement.style.removeProperty(e);
69
- const o = r(a.maxWidth), l = document.getElementById(o), s = document.getElementsByClassName(o);
70
- l && s.length === 0 && l.remove();
83
+ const a = i(t.maxWidth), l = document.getElementById(a), r = document.getElementsByClassName(a);
84
+ l && r.length === 0 && l.remove();
71
85
  }
72
- }), (e, o) => (t.disabled || !t.text) && t.dontWrapDisabled ? i(e.$slots, "default", { key: 0 }, void 0, !0) : (c(), u(n(W), g({ key: 1 }, { ...e.$props, ...n(h)[n(p).TRIGGER] }, {
73
- theme: t.theme,
86
+ }), (e, a) => (o.disabled || !o.text) && o.dontWrapDisabled ? f(e.$slots, "default", { key: 0 }, void 0, !0) : (h(), p(n(H), C({ key: 1 }, { ...e.$props, ...n(g)[n(v).TRIGGER] }, {
87
+ theme: o.theme,
74
88
  "no-auto-focus": "",
75
- triggers: t.triggers,
76
- delay: { show: t.delay, hide: 0 },
77
- placement: t.placement,
78
- disabled: t.disabled || t.text && !n(m),
79
- "popper-class": n(w),
89
+ triggers: n(x),
90
+ delay: { show: o.delay, hide: 0 },
91
+ placement: o.placement,
92
+ disabled: o.disabled || o.text && !n(c),
93
+ "popper-class": n(V),
80
94
  class: ["v4-tooltip"],
81
- distance: t.distance,
82
- "auto-hide": t.autoHide,
83
- shown: t.shown,
84
- onApplyShow: o[0] || (o[0] = (l) => v("show"))
95
+ distance: o.distance,
96
+ "auto-hide": o.autoHide,
97
+ shown: n(b),
98
+ onApplyShow: a[0] || (a[0] = (l) => N("show"))
85
99
  }), {
86
- popper: f(() => [
87
- i(e.$slots, "tooltip", { text: n(m) }, () => [
88
- t.header ? (c(), u(V, {
100
+ popper: y(() => [
101
+ f(e.$slots, "tooltip", { text: n(c) }, () => [
102
+ o.header ? (h(), p(G, {
89
103
  key: 1,
90
- text: t.text,
91
- header: t.header
92
- }, null, 8, ["text", "header"])) : (c(), u(n(k), g({
104
+ text: o.text,
105
+ header: o.header
106
+ }, null, 8, ["text", "header"])) : (h(), p(n(Z), C({
93
107
  key: 0,
94
108
  variant: "body2"
95
- }, n(h)[n(p).TEXT]), {
96
- default: f(() => [
97
- b($(n(m)), 1)
109
+ }, n(g)[n(v).TEXT]), {
110
+ default: y(() => [
111
+ D(P(n(c)), 1)
98
112
  ]),
99
113
  _: 1
100
114
  }, 16))
101
115
  ], !0)
102
116
  ]),
103
- default: f(() => [
104
- I("div", z, [
105
- i(e.$slots, "default", {}, void 0, !0)
106
- ], 512)
117
+ default: y(() => [
118
+ R("div", {
119
+ ref_key: "container",
120
+ ref: w,
121
+ class: O(["container", { "container--focusable": o.focusable }]),
122
+ tabindex: o.focusable ? 0 : void 0,
123
+ onFocusin: k,
124
+ onFocusout: I,
125
+ onKeydown: S
126
+ }, [
127
+ f(e.$slots, "default", {}, void 0, !0)
128
+ ], 42, U)
107
129
  ]),
108
130
  _: 3
109
131
  }, 16, ["theme", "triggers", "delay", "placement", "disabled", "popper-class", "distance", "auto-hide", "shown"]));
110
132
  }
111
133
  });
112
134
  export {
113
- F as default
135
+ _ as default
114
136
  };
@@ -4,9 +4,9 @@ declare const TooltipTypes: () => ({
4
4
  $: import("vue").ComponentInternalInstance;
5
5
  $data: {};
6
6
  $props: Partial<{
7
- theme: string;
8
7
  header: string;
9
8
  text: string;
9
+ theme: string;
10
10
  testId: string;
11
11
  delay: number;
12
12
  triggers: import("../common/Tooltip.types").TooltipTriggers[];
@@ -19,11 +19,9 @@ declare const TooltipTypes: () => ({
19
19
  autoHide: boolean;
20
20
  dontWrapDisabled: boolean;
21
21
  maxWidth: string;
22
+ focusable: boolean;
23
+ revealOnFocus: boolean;
22
24
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
23
- theme: {
24
- type: import("vue").PropType<string>;
25
- default: string;
26
- };
27
25
  header: {
28
26
  type: import("vue").PropType<string>;
29
27
  default: any;
@@ -32,6 +30,10 @@ declare const TooltipTypes: () => ({
32
30
  type: import("vue").PropType<string>;
33
31
  default: any;
34
32
  };
33
+ theme: {
34
+ type: import("vue").PropType<string>;
35
+ default: string;
36
+ };
35
37
  testId: {
36
38
  type: import("vue").PropType<string>;
37
39
  default: string;
@@ -80,9 +82,17 @@ declare const TooltipTypes: () => ({
80
82
  type: import("vue").PropType<string>;
81
83
  default: string;
82
84
  };
85
+ focusable: {
86
+ type: import("vue").PropType<boolean>;
87
+ default: boolean;
88
+ };
89
+ revealOnFocus: {
90
+ type: import("vue").PropType<boolean>;
91
+ default: boolean;
92
+ };
83
93
  }>> & {
84
94
  onShow?: () => any;
85
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "header" | "text" | "testId" | "delay" | "triggers" | "forceShowWithTruncate" | "placement" | "disabled" | "distance" | "container" | "shown" | "autoHide" | "dontWrapDisabled" | "maxWidth">;
95
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "header" | "text" | "theme" | "testId" | "delay" | "triggers" | "forceShowWithTruncate" | "placement" | "disabled" | "distance" | "container" | "shown" | "autoHide" | "dontWrapDisabled" | "maxWidth" | "focusable" | "revealOnFocus">;
86
96
  $attrs: {
87
97
  [x: string]: unknown;
88
98
  };
@@ -97,10 +107,6 @@ declare const TooltipTypes: () => ({
97
107
  $emit: (event: "show") => void;
98
108
  $el: any;
99
109
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
100
- theme: {
101
- type: import("vue").PropType<string>;
102
- default: string;
103
- };
104
110
  header: {
105
111
  type: import("vue").PropType<string>;
106
112
  default: any;
@@ -109,6 +115,10 @@ declare const TooltipTypes: () => ({
109
115
  type: import("vue").PropType<string>;
110
116
  default: any;
111
117
  };
118
+ theme: {
119
+ type: import("vue").PropType<string>;
120
+ default: string;
121
+ };
112
122
  testId: {
113
123
  type: import("vue").PropType<string>;
114
124
  default: string;
@@ -157,14 +167,25 @@ declare const TooltipTypes: () => ({
157
167
  type: import("vue").PropType<string>;
158
168
  default: string;
159
169
  };
170
+ focusable: {
171
+ type: import("vue").PropType<boolean>;
172
+ default: boolean;
173
+ };
174
+ revealOnFocus: {
175
+ type: import("vue").PropType<boolean>;
176
+ default: boolean;
177
+ };
160
178
  }>> & {
161
179
  onShow?: () => any;
162
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
180
+ }, {
181
+ isShown: import("vue").ComputedRef<boolean>;
182
+ libTriggers: import("vue").ComputedRef<import("../common/Tooltip.types").TooltipTriggers[]>;
183
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
163
184
  show: () => void;
164
185
  }, string, {
165
- theme: string;
166
186
  header: string;
167
187
  text: string;
188
+ theme: string;
168
189
  testId: string;
169
190
  delay: number;
170
191
  triggers: import("../common/Tooltip.types").TooltipTriggers[];
@@ -177,6 +198,8 @@ declare const TooltipTypes: () => ({
177
198
  autoHide: boolean;
178
199
  dontWrapDisabled: boolean;
179
200
  maxWidth: string;
201
+ focusable: boolean;
202
+ revealOnFocus: boolean;
180
203
  }, {}, string> & {
181
204
  beforeCreate?: (() => void) | (() => void)[];
182
205
  created?: (() => void) | (() => void)[];
@@ -198,10 +221,6 @@ declare const TooltipTypes: () => ({
198
221
  $nextTick: typeof import("vue").nextTick;
199
222
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
200
223
  } & Readonly<import("vue").ExtractPropTypes<{
201
- theme: {
202
- type: import("vue").PropType<string>;
203
- default: string;
204
- };
205
224
  header: {
206
225
  type: import("vue").PropType<string>;
207
226
  default: any;
@@ -210,6 +229,10 @@ declare const TooltipTypes: () => ({
210
229
  type: import("vue").PropType<string>;
211
230
  default: any;
212
231
  };
232
+ theme: {
233
+ type: import("vue").PropType<string>;
234
+ default: string;
235
+ };
213
236
  testId: {
214
237
  type: import("vue").PropType<string>;
215
238
  default: string;
@@ -258,17 +281,24 @@ declare const TooltipTypes: () => ({
258
281
  type: import("vue").PropType<string>;
259
282
  default: string;
260
283
  };
284
+ focusable: {
285
+ type: import("vue").PropType<boolean>;
286
+ default: boolean;
287
+ };
288
+ revealOnFocus: {
289
+ type: import("vue").PropType<boolean>;
290
+ default: boolean;
291
+ };
261
292
  }>> & {
262
293
  onShow?: () => any;
263
- } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
294
+ } & import("vue").ShallowUnwrapRef<{
295
+ isShown: import("vue").ComputedRef<boolean>;
296
+ libTriggers: import("vue").ComputedRef<import("../common/Tooltip.types").TooltipTriggers[]>;
297
+ }> & {} & import("vue").ComponentCustomProperties & {};
264
298
  __isFragment?: never;
265
299
  __isTeleport?: never;
266
300
  __isSuspense?: never;
267
301
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
268
- theme: {
269
- type: import("vue").PropType<string>;
270
- default: string;
271
- };
272
302
  header: {
273
303
  type: import("vue").PropType<string>;
274
304
  default: any;
@@ -277,6 +307,10 @@ declare const TooltipTypes: () => ({
277
307
  type: import("vue").PropType<string>;
278
308
  default: any;
279
309
  };
310
+ theme: {
311
+ type: import("vue").PropType<string>;
312
+ default: string;
313
+ };
280
314
  testId: {
281
315
  type: import("vue").PropType<string>;
282
316
  default: string;
@@ -325,14 +359,25 @@ declare const TooltipTypes: () => ({
325
359
  type: import("vue").PropType<string>;
326
360
  default: string;
327
361
  };
362
+ focusable: {
363
+ type: import("vue").PropType<boolean>;
364
+ default: boolean;
365
+ };
366
+ revealOnFocus: {
367
+ type: import("vue").PropType<boolean>;
368
+ default: boolean;
369
+ };
328
370
  }>> & {
329
371
  onShow?: () => any;
330
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
372
+ }, {
373
+ isShown: import("vue").ComputedRef<boolean>;
374
+ libTriggers: import("vue").ComputedRef<import("../common/Tooltip.types").TooltipTriggers[]>;
375
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
331
376
  show: () => void;
332
377
  }, string, {
333
- theme: string;
334
378
  header: string;
335
379
  text: string;
380
+ theme: string;
336
381
  testId: string;
337
382
  delay: number;
338
383
  triggers: import("../common/Tooltip.types").TooltipTriggers[];
@@ -345,6 +390,8 @@ declare const TooltipTypes: () => ({
345
390
  autoHide: boolean;
346
391
  dontWrapDisabled: boolean;
347
392
  maxWidth: string;
393
+ focusable: boolean;
394
+ revealOnFocus: boolean;
348
395
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
349
396
  $slots: {
350
397
  default?(_: {}): any;
@@ -116,117 +116,3 @@ export declare const colorPaletteLight: {
116
116
  b: string;
117
117
  };
118
118
  };
119
- export declare const colorPaletteDark: {
120
- background: {
121
- default: string;
122
- paper: string;
123
- 'modal-elevation': string;
124
- backdrop: string;
125
- 'paper-elevation-0': string;
126
- inset: string;
127
- 'paper-elevation-1': string;
128
- 'paper-elevation-2': string;
129
- 'paper-elevation-3': string;
130
- 'paper-elevation-4': string;
131
- 'paper-elevation-5': string;
132
- 'paper-elevation-6': string;
133
- 'paper-elevation-7': string;
134
- 'paper-elevation-8': string;
135
- 'paper-elevation-9': string;
136
- };
137
- action: {
138
- primary: string;
139
- active: string;
140
- hover: string;
141
- selected: string;
142
- disabled: string;
143
- 'disabled-background': string;
144
- focus: string;
145
- 'outlined-border': string;
146
- };
147
- default: {
148
- main: string;
149
- light: string;
150
- dark: string;
151
- 'outlined-border': string;
152
- 'contrast-text': string;
153
- 'button-contrast-text': string;
154
- };
155
- common: {
156
- white: string;
157
- black: string;
158
- 'inverse-white': string;
159
- 'inverse-black': string;
160
- divider: string;
161
- 'divider-elevation-0': string;
162
- };
163
- text: {
164
- primary: string;
165
- secondary: string;
166
- disabled: string;
167
- };
168
- primary: {
169
- lighter: string;
170
- light: string;
171
- main: string;
172
- 'main-8-p': string;
173
- 'main-50-p': string;
174
- dark: string;
175
- darker: string;
176
- 'outlined-border': string;
177
- 'contrast-text': string;
178
- 'button-contrast-text': string;
179
- };
180
- info: {
181
- lighter: string;
182
- light: string;
183
- main: string;
184
- 'main-8-p': string;
185
- 'main-50-p': string;
186
- dark: string;
187
- darker: string;
188
- 'outlined-border': string;
189
- 'contrast-text': string;
190
- 'button-contrast-text': string;
191
- };
192
- success: {
193
- lighter: string;
194
- light: string;
195
- main: string;
196
- 'main-8-p': string;
197
- 'main-50-p': string;
198
- dark: string;
199
- darker: string;
200
- 'outlined-border': string;
201
- 'contrast-text': string;
202
- 'button-contrast-text': string;
203
- };
204
- warning: {
205
- lighter: string;
206
- light: string;
207
- main: string;
208
- 'main-8-p': string;
209
- 'main-50-p': string;
210
- dark: string;
211
- darker: string;
212
- 'outlined-border': string;
213
- 'contrast-text': string;
214
- 'button-contrast-text': string;
215
- };
216
- error: {
217
- lighter: string;
218
- light: string;
219
- main: string;
220
- 'main-8-p': string;
221
- 'main-50-p': string;
222
- dark: string;
223
- darker: string;
224
- 'outlined-border': string;
225
- 'contrast-text': string;
226
- 'button-contrast-text': string;
227
- };
228
- ab: {
229
- a: string;
230
- b: string;
231
- };
232
- };
@@ -1,30 +1,3 @@
1
1
  import '../../style/v4/colors.scss';
2
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
- theme?: 'light' | 'dark';
4
- }>, {
5
- theme: string;
6
- }>, {}, 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<{
7
- theme?: 'light' | 'dark';
8
- }>, {
9
- theme: string;
10
- }>>>, {
11
- theme: 'light' | 'dark';
12
- }>;
2
+ 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<{}>>, {}>;
13
3
  export default _default;
14
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
- type __VLS_TypePropsToRuntimeProps<T> = {
16
- [K in keyof T]-?: {} extends Pick<T, K> ? {
17
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
- } : {
19
- type: import('vue').PropType<T[K]>;
20
- required: true;
21
- };
22
- };
23
- type __VLS_WithDefaults<P, D> = {
24
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
25
- default: D[K];
26
- }> : P[K];
27
- };
28
- type __VLS_Prettify<T> = {
29
- [K in keyof T]: T[K];
30
- } & {};