@ironsource/shared-ui 2.1.8-rc.1 → 2.1.8-rc.4

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 (125) hide show
  1. package/DataGrid.vue_vue_type_style_index_0_scoped_46d53424_lang.css +1 -0
  2. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +1 -0
  3. package/Typography.vue_vue_type_style_index_0_scoped_b00956b7_lang.css +1 -0
  4. package/components/alert/Alert.vue.d.ts +1 -1
  5. package/components/alert/index.d.ts +20 -20
  6. package/components/appHeader/AppHeader.vue.d.ts +1 -1
  7. package/components/appHeader/index.d.ts +9 -9
  8. package/components/appTrigger/AppTrigger.vue.d.ts +1 -1
  9. package/components/appTrigger/index.d.ts +20 -20
  10. package/components/autocomplete/Autocomplete.vue.d.ts +4 -4
  11. package/components/autocomplete/index.d.ts +27 -27
  12. package/components/button/v3/Button.vue.d.ts +1 -1
  13. package/components/button/v3/ScrollButton.vue.d.ts +1 -1
  14. package/components/button/v3/index.d.ts +28 -28
  15. package/components/button/v4/ButtonV4.vue.d.ts +1 -1
  16. package/components/button/v4/IconButtonV4.vue.d.ts +1 -1
  17. package/components/button/v4/index.d.ts +40 -40
  18. package/components/checkbox/v3/Checkbox.vue.d.ts +1 -1
  19. package/components/checkbox/v3/index.d.ts +20 -20
  20. package/components/checkbox/v4/CheckboxV4.vue.d.ts +1 -1
  21. package/components/checkbox/v4/index.d.ts +20 -20
  22. package/components/chip/v3/Chip.vue.d.ts +1 -1
  23. package/components/chip/v3/index.d.ts +20 -20
  24. package/components/chip/v4/ChipV4.vue.d.ts +1 -1
  25. package/components/chip/v4/index.d.ts +9 -9
  26. package/components/dateRange/common/DateRange.common.d.ts +1 -1
  27. package/components/dateRange/v3/DateRange.vue.d.ts +1 -1
  28. package/components/dateRange/v3/DateRangePicker.vue.d.ts +1 -1
  29. package/components/dateRange/v3/index.d.ts +20 -20
  30. package/components/dateRange/v4/DateRangePickerV4.vue.d.ts +1 -1
  31. package/components/dateRange/v4/DateRangeV4.vue.d.ts +1 -1
  32. package/components/dateRange/v4/index.d.ts +20 -20
  33. package/components/dialog/v3/Dialog.vue.d.ts +1 -1
  34. package/components/dialog/v3/index.d.ts +20 -20
  35. package/components/dialog/v4/DialogV4.vue.d.ts +1 -1
  36. package/components/dialog/v4/index.d.ts +20 -20
  37. package/components/dropdown/v3/Dropdown.vue.d.ts +5 -5
  38. package/components/dropdown/v3/index.d.ts +96 -96
  39. package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +1 -1
  40. package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +1 -1
  41. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.d.ts +1 -1
  42. package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +1 -1
  43. package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +4 -4
  44. package/components/dropdown/v4/DropdownV4.vue.d.ts +5 -5
  45. package/components/dropdown/v4/OptionV4.vue.d.ts +3 -3
  46. package/components/dropdown/v4/TreeDropdown.vue.d.ts +1 -1
  47. package/components/dropdown/v4/index.d.ts +188 -188
  48. package/components/filterDropdown/FilterDropdown.vue.d.ts +1 -1
  49. package/components/filterDropdown/index.d.ts +9 -9
  50. package/components/forms/CardPanel.vue.d.ts +3 -3
  51. package/components/forms/FormRow.vue.d.ts +4 -4
  52. package/components/forms/index.d.ts +34 -34
  53. package/components/includeExclude/IncludeExclude.vue.d.ts +2 -2
  54. package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +2 -2
  55. package/components/includeExclude/index.d.ts +78 -78
  56. package/components/inlineCopy/InlineCopy.vue.d.ts +3 -3
  57. package/components/inlineCopy/index.d.ts +25 -25
  58. package/components/input/v3/Input.vue.d.ts +1 -1
  59. package/components/input/v3/index.d.ts +44 -44
  60. package/components/input/v4/TextField.vue.d.ts +1 -1
  61. package/components/input/v4/index.d.ts +34 -34
  62. package/components/layout/FoldableSection.vue.d.ts +1 -1
  63. package/components/layout/index.d.ts +20 -20
  64. package/components/menu/Menu.vue.d.ts +1 -1
  65. package/components/menu/index.d.ts +20 -20
  66. package/components/multibar/MultiBar.vue.d.ts +1 -1
  67. package/components/multibar/index.d.ts +12 -12
  68. package/components/popover/v3/Popover.vue.d.ts +4 -4
  69. package/components/popover/v3/index.d.ts +43 -43
  70. package/components/popover/v4/PopoverV4.vue.d.ts +4 -4
  71. package/components/popover/v4/index.d.ts +27 -27
  72. package/components/radioButton/v3/RadioGroup.vue.d.ts +1 -1
  73. package/components/radioButton/v3/index.d.ts +20 -20
  74. package/components/radioButton/v4/RadioGroupV4.vue.d.ts +1 -1
  75. package/components/radioButton/v4/index.d.ts +20 -20
  76. package/components/search/v3/Search.vue.d.ts +1 -1
  77. package/components/search/v3/index.d.ts +9 -9
  78. package/components/search/v4/SearchV4.vue.d.ts +1 -1
  79. package/components/search/v4/index.d.ts +9 -9
  80. package/components/shared/FieldHelpText.vue.d.ts +1 -1
  81. package/components/shared/FieldLabel.vue.d.ts +1 -1
  82. package/components/snackbar/common/snackbar.common.d.ts +1 -1
  83. package/components/snackbar/v4/SnackbarV4.vue.d.ts +13 -13
  84. package/components/switch/v3/Switch.vue.d.ts +1 -1
  85. package/components/switch/v3/index.d.ts +20 -20
  86. package/components/table/common/Table.common.js +71 -68
  87. package/components/table/v3/index.d.ts +16 -16
  88. package/components/table/v4/DataGrid.vue.d.ts +10 -4
  89. package/components/table/v4/DataGrid.vue.js +3 -3
  90. package/components/table/v4/DataGrid.vue2.js +130 -136
  91. package/components/table/v4/DataGridRowsCounter.vue.js +2 -2
  92. package/components/table/v4/DataGridRowsCounter.vue2.js +14 -13
  93. package/components/table/v4/MultipleDataGrid.vue.d.ts +2 -2
  94. package/components/table/v4/index.d.ts +57 -23
  95. package/components/table/v4/storyUtils.d.ts +8 -0
  96. package/components/tabs/v3/Tabs.vue.d.ts +1 -1
  97. package/components/tabs/v3/index.d.ts +20 -20
  98. package/components/tabs/v4/TabsV4.vue.d.ts +1 -1
  99. package/components/tabs/v4/index.d.ts +20 -20
  100. package/components/textArea/v3/TextArea.vue.d.ts +1 -1
  101. package/components/textArea/v3/index.d.ts +9 -9
  102. package/components/textArea/v4/TextAreaV4.vue.d.ts +1 -1
  103. package/components/textArea/v4/index.d.ts +12 -12
  104. package/components/toggle/v3/Toggle.vue.d.ts +1 -1
  105. package/components/toggle/v3/index.d.ts +5 -5
  106. package/components/toggle/v4/ToggleV4.vue.d.ts +4 -4
  107. package/components/toggle/v4/index.d.ts +27 -27
  108. package/components/tooltip/v3/Tooltip.vue.d.ts +4 -4
  109. package/components/tooltip/v3/index.d.ts +34 -34
  110. package/components/tooltip/v4/TooltipV4.vue.d.ts +5 -5
  111. package/components/tooltip/v4/index.d.ts +53 -53
  112. package/components/typography/Text.vue.d.ts +1 -1
  113. package/components/typography/index.d.ts +32 -32
  114. package/components/typography/v4/Typography.vue.d.ts +20 -0
  115. package/components/typography/v4/Typography.vue.js +3 -3
  116. package/components/typography/v4/Typography.vue2.js +40 -13
  117. package/components/typography/v4/index.d.ts +89 -13
  118. package/index.d.ts +1343 -1275
  119. package/package.json +3 -2
  120. package/utils/formatNumbers.d.ts +4 -0
  121. package/utils/formatNumbers.js +11 -0
  122. package/utils/index.d.ts +1 -0
  123. package/DataGrid.vue_vue_type_style_index_0_scoped_706b324e_lang.css +0 -1
  124. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_0ce71f73_lang.css +0 -1
  125. package/Typography.vue_vue_type_style_index_0_scoped_4c2254ef_lang.css +0 -1
@@ -7,14 +7,14 @@ declare const TooltipTypes: () => ({
7
7
  header: string;
8
8
  text: string;
9
9
  theme: string;
10
- disabled: boolean;
11
10
  testId: string;
12
- container: string;
13
11
  delay: number;
14
- triggers: ("touch" | "click" | "focus" | "hover")[];
12
+ triggers: ("hover" | "click" | "focus" | "touch")[];
15
13
  forceShowWithTruncate: boolean;
16
- placement: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
14
+ placement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
15
+ disabled: boolean;
17
16
  distance: string | number;
17
+ container: string;
18
18
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
19
19
  header: {
20
20
  type: import("vue").PropType<string>;
@@ -28,24 +28,16 @@ declare const TooltipTypes: () => ({
28
28
  type: import("vue").PropType<string>;
29
29
  default: string;
30
30
  };
31
- disabled: {
32
- type: import("vue").PropType<boolean>;
33
- default: boolean;
34
- };
35
31
  testId: {
36
32
  type: import("vue").PropType<string>;
37
33
  default: string;
38
34
  };
39
- container: {
40
- type: import("vue").PropType<string>;
41
- default: string;
42
- };
43
35
  delay: {
44
36
  type: import("vue").PropType<number>;
45
37
  default: number;
46
38
  };
47
39
  triggers: {
48
- type: import("vue").PropType<("touch" | "click" | "focus" | "hover")[]>;
40
+ type: import("vue").PropType<("hover" | "click" | "focus" | "touch")[]>;
49
41
  default: () => string[];
50
42
  };
51
43
  forceShowWithTruncate: {
@@ -53,16 +45,24 @@ declare const TooltipTypes: () => ({
53
45
  default: boolean;
54
46
  };
55
47
  placement: {
56
- type: import("vue").PropType<"auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end">;
48
+ type: import("vue").PropType<"top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
57
49
  default: string;
58
50
  };
51
+ disabled: {
52
+ type: import("vue").PropType<boolean>;
53
+ default: boolean;
54
+ };
59
55
  distance: {
60
56
  type: import("vue").PropType<string | number>;
61
57
  default: string;
62
58
  };
59
+ container: {
60
+ type: import("vue").PropType<string>;
61
+ default: string;
62
+ };
63
63
  }>> & {
64
64
  onShow?: () => any;
65
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "header" | "text" | "theme" | "disabled" | "testId" | "container" | "delay" | "triggers" | "forceShowWithTruncate" | "placement" | "distance">;
65
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "header" | "text" | "theme" | "testId" | "delay" | "triggers" | "forceShowWithTruncate" | "placement" | "disabled" | "distance" | "container">;
66
66
  $attrs: {
67
67
  [x: string]: unknown;
68
68
  };
@@ -89,24 +89,16 @@ declare const TooltipTypes: () => ({
89
89
  type: import("vue").PropType<string>;
90
90
  default: string;
91
91
  };
92
- disabled: {
93
- type: import("vue").PropType<boolean>;
94
- default: boolean;
95
- };
96
92
  testId: {
97
93
  type: import("vue").PropType<string>;
98
94
  default: string;
99
95
  };
100
- container: {
101
- type: import("vue").PropType<string>;
102
- default: string;
103
- };
104
96
  delay: {
105
97
  type: import("vue").PropType<number>;
106
98
  default: number;
107
99
  };
108
100
  triggers: {
109
- type: import("vue").PropType<("touch" | "click" | "focus" | "hover")[]>;
101
+ type: import("vue").PropType<("hover" | "click" | "focus" | "touch")[]>;
110
102
  default: () => string[];
111
103
  };
112
104
  forceShowWithTruncate: {
@@ -114,13 +106,21 @@ declare const TooltipTypes: () => ({
114
106
  default: boolean;
115
107
  };
116
108
  placement: {
117
- type: import("vue").PropType<"auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end">;
109
+ type: import("vue").PropType<"top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
118
110
  default: string;
119
111
  };
112
+ disabled: {
113
+ type: import("vue").PropType<boolean>;
114
+ default: boolean;
115
+ };
120
116
  distance: {
121
117
  type: import("vue").PropType<string | number>;
122
118
  default: string;
123
119
  };
120
+ container: {
121
+ type: import("vue").PropType<string>;
122
+ default: string;
123
+ };
124
124
  }>> & {
125
125
  onShow?: () => any;
126
126
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -129,14 +129,14 @@ declare const TooltipTypes: () => ({
129
129
  header: string;
130
130
  text: string;
131
131
  theme: string;
132
- disabled: boolean;
133
132
  testId: string;
134
- container: string;
135
133
  delay: number;
136
- triggers: ("touch" | "click" | "focus" | "hover")[];
134
+ triggers: ("hover" | "click" | "focus" | "touch")[];
137
135
  forceShowWithTruncate: boolean;
138
- placement: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
136
+ placement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
137
+ disabled: boolean;
139
138
  distance: string | number;
139
+ container: string;
140
140
  }, {}, string> & {
141
141
  beforeCreate?: (() => void) | (() => void)[];
142
142
  created?: (() => void) | (() => void)[];
@@ -170,24 +170,16 @@ declare const TooltipTypes: () => ({
170
170
  type: import("vue").PropType<string>;
171
171
  default: string;
172
172
  };
173
- disabled: {
174
- type: import("vue").PropType<boolean>;
175
- default: boolean;
176
- };
177
173
  testId: {
178
174
  type: import("vue").PropType<string>;
179
175
  default: string;
180
176
  };
181
- container: {
182
- type: import("vue").PropType<string>;
183
- default: string;
184
- };
185
177
  delay: {
186
178
  type: import("vue").PropType<number>;
187
179
  default: number;
188
180
  };
189
181
  triggers: {
190
- type: import("vue").PropType<("touch" | "click" | "focus" | "hover")[]>;
182
+ type: import("vue").PropType<("hover" | "click" | "focus" | "touch")[]>;
191
183
  default: () => string[];
192
184
  };
193
185
  forceShowWithTruncate: {
@@ -195,13 +187,21 @@ declare const TooltipTypes: () => ({
195
187
  default: boolean;
196
188
  };
197
189
  placement: {
198
- type: import("vue").PropType<"auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end">;
190
+ type: import("vue").PropType<"top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
199
191
  default: string;
200
192
  };
193
+ disabled: {
194
+ type: import("vue").PropType<boolean>;
195
+ default: boolean;
196
+ };
201
197
  distance: {
202
198
  type: import("vue").PropType<string | number>;
203
199
  default: string;
204
200
  };
201
+ container: {
202
+ type: import("vue").PropType<string>;
203
+ default: string;
204
+ };
205
205
  }>> & {
206
206
  onShow?: () => any;
207
207
  } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
@@ -221,24 +221,16 @@ declare const TooltipTypes: () => ({
221
221
  type: import("vue").PropType<string>;
222
222
  default: string;
223
223
  };
224
- disabled: {
225
- type: import("vue").PropType<boolean>;
226
- default: boolean;
227
- };
228
224
  testId: {
229
225
  type: import("vue").PropType<string>;
230
226
  default: string;
231
227
  };
232
- container: {
233
- type: import("vue").PropType<string>;
234
- default: string;
235
- };
236
228
  delay: {
237
229
  type: import("vue").PropType<number>;
238
230
  default: number;
239
231
  };
240
232
  triggers: {
241
- type: import("vue").PropType<("touch" | "click" | "focus" | "hover")[]>;
233
+ type: import("vue").PropType<("hover" | "click" | "focus" | "touch")[]>;
242
234
  default: () => string[];
243
235
  };
244
236
  forceShowWithTruncate: {
@@ -246,13 +238,21 @@ declare const TooltipTypes: () => ({
246
238
  default: boolean;
247
239
  };
248
240
  placement: {
249
- type: import("vue").PropType<"auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end">;
241
+ type: import("vue").PropType<"top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
250
242
  default: string;
251
243
  };
244
+ disabled: {
245
+ type: import("vue").PropType<boolean>;
246
+ default: boolean;
247
+ };
252
248
  distance: {
253
249
  type: import("vue").PropType<string | number>;
254
250
  default: string;
255
251
  };
252
+ container: {
253
+ type: import("vue").PropType<string>;
254
+ default: string;
255
+ };
256
256
  }>> & {
257
257
  onShow?: () => any;
258
258
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -261,14 +261,14 @@ declare const TooltipTypes: () => ({
261
261
  header: string;
262
262
  text: string;
263
263
  theme: string;
264
- disabled: boolean;
265
264
  testId: string;
266
- container: string;
267
265
  delay: number;
268
- triggers: ("touch" | "click" | "focus" | "hover")[];
266
+ triggers: ("hover" | "click" | "focus" | "touch")[];
269
267
  forceShowWithTruncate: boolean;
270
- placement: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
268
+ placement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
269
+ disabled: boolean;
271
270
  distance: string | number;
271
+ container: string;
272
272
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
273
273
  $slots: {
274
274
  default?(_: {}): any;
@@ -15,8 +15,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
15
15
  size: string;
16
16
  testId: string;
17
17
  }>>>, {
18
- size: "caption" | "sm" | "md" | "lg" | "xs";
19
18
  testId: string;
19
+ size: "caption" | "sm" | "md" | "lg" | "xs";
20
20
  }>, {
21
21
  default?(_: {}): any;
22
22
  }>;
@@ -6,13 +6,13 @@ declare const TypographyTypes: () => (({
6
6
  testId: string;
7
7
  level: "label" | "1" | "2" | "3" | "4" | "5" | "6";
8
8
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
9
- isTruncated: {
10
- type: import("vue").PropType<boolean>;
11
- };
12
9
  testId: {
13
10
  type: import("vue").PropType<string>;
14
11
  default: string;
15
12
  };
13
+ isTruncated: {
14
+ type: import("vue").PropType<boolean>;
15
+ };
16
16
  level: {
17
17
  type: import("vue").PropType<"label" | "1" | "2" | "3" | "4" | "5" | "6">;
18
18
  default: string;
@@ -32,13 +32,13 @@ declare const TypographyTypes: () => (({
32
32
  $emit: (event: string, ...args: any[]) => void;
33
33
  $el: any;
34
34
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
35
- isTruncated: {
36
- type: import("vue").PropType<boolean>;
37
- };
38
35
  testId: {
39
36
  type: import("vue").PropType<string>;
40
37
  default: string;
41
38
  };
39
+ isTruncated: {
40
+ type: import("vue").PropType<boolean>;
41
+ };
42
42
  level: {
43
43
  type: import("vue").PropType<"label" | "1" | "2" | "3" | "4" | "5" | "6">;
44
44
  default: string;
@@ -67,13 +67,13 @@ declare const TypographyTypes: () => (({
67
67
  $nextTick: typeof import("vue").nextTick;
68
68
  $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;
69
69
  } & Readonly<import("vue").ExtractPropTypes<{
70
- isTruncated: {
71
- type: import("vue").PropType<boolean>;
72
- };
73
70
  testId: {
74
71
  type: import("vue").PropType<string>;
75
72
  default: string;
76
73
  };
74
+ isTruncated: {
75
+ type: import("vue").PropType<boolean>;
76
+ };
77
77
  level: {
78
78
  type: import("vue").PropType<"label" | "1" | "2" | "3" | "4" | "5" | "6">;
79
79
  default: string;
@@ -83,13 +83,13 @@ declare const TypographyTypes: () => (({
83
83
  __isTeleport?: never;
84
84
  __isSuspense?: never;
85
85
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
86
- isTruncated: {
87
- type: import("vue").PropType<boolean>;
88
- };
89
86
  testId: {
90
87
  type: import("vue").PropType<string>;
91
88
  default: string;
92
89
  };
90
+ isTruncated: {
91
+ type: import("vue").PropType<boolean>;
92
+ };
93
93
  level: {
94
94
  type: import("vue").PropType<"label" | "1" | "2" | "3" | "4" | "5" | "6">;
95
95
  default: string;
@@ -106,12 +106,16 @@ declare const TypographyTypes: () => (({
106
106
  $: import("vue").ComponentInternalInstance;
107
107
  $data: {};
108
108
  $props: Partial<{
109
- size: "caption" | "sm" | "md" | "lg" | "xs";
110
109
  testId: string;
110
+ size: "caption" | "sm" | "md" | "lg" | "xs";
111
111
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
112
112
  strong: {
113
113
  type: import("vue").PropType<boolean>;
114
114
  };
115
+ testId: {
116
+ type: import("vue").PropType<string>;
117
+ default: string;
118
+ };
115
119
  isTruncated: {
116
120
  type: import("vue").PropType<boolean>;
117
121
  };
@@ -119,11 +123,7 @@ declare const TypographyTypes: () => (({
119
123
  type: import("vue").PropType<"caption" | "sm" | "md" | "lg" | "xs">;
120
124
  default: string;
121
125
  };
122
- testId: {
123
- type: import("vue").PropType<string>;
124
- default: string;
125
- };
126
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size" | "testId">;
126
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "size">;
127
127
  $attrs: {
128
128
  [x: string]: unknown;
129
129
  };
@@ -141,6 +141,10 @@ declare const TypographyTypes: () => (({
141
141
  strong: {
142
142
  type: import("vue").PropType<boolean>;
143
143
  };
144
+ testId: {
145
+ type: import("vue").PropType<string>;
146
+ default: string;
147
+ };
144
148
  isTruncated: {
145
149
  type: import("vue").PropType<boolean>;
146
150
  };
@@ -148,13 +152,9 @@ declare const TypographyTypes: () => (({
148
152
  type: import("vue").PropType<"caption" | "sm" | "md" | "lg" | "xs">;
149
153
  default: string;
150
154
  };
151
- testId: {
152
- type: import("vue").PropType<string>;
153
- default: string;
154
- };
155
155
  }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
156
- size: "caption" | "sm" | "md" | "lg" | "xs";
157
156
  testId: string;
157
+ size: "caption" | "sm" | "md" | "lg" | "xs";
158
158
  }, {}, string> & {
159
159
  beforeCreate?: (() => void) | (() => void)[];
160
160
  created?: (() => void) | (() => void)[];
@@ -179,6 +179,10 @@ declare const TypographyTypes: () => (({
179
179
  strong: {
180
180
  type: import("vue").PropType<boolean>;
181
181
  };
182
+ testId: {
183
+ type: import("vue").PropType<string>;
184
+ default: string;
185
+ };
182
186
  isTruncated: {
183
187
  type: import("vue").PropType<boolean>;
184
188
  };
@@ -186,10 +190,6 @@ declare const TypographyTypes: () => (({
186
190
  type: import("vue").PropType<"caption" | "sm" | "md" | "lg" | "xs">;
187
191
  default: string;
188
192
  };
189
- testId: {
190
- type: import("vue").PropType<string>;
191
- default: string;
192
- };
193
193
  }>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
194
194
  __isFragment?: never;
195
195
  __isTeleport?: never;
@@ -198,6 +198,10 @@ declare const TypographyTypes: () => (({
198
198
  strong: {
199
199
  type: import("vue").PropType<boolean>;
200
200
  };
201
+ testId: {
202
+ type: import("vue").PropType<string>;
203
+ default: string;
204
+ };
201
205
  isTruncated: {
202
206
  type: import("vue").PropType<boolean>;
203
207
  };
@@ -205,13 +209,9 @@ declare const TypographyTypes: () => (({
205
209
  type: import("vue").PropType<"caption" | "sm" | "md" | "lg" | "xs">;
206
210
  default: string;
207
211
  };
208
- testId: {
209
- type: import("vue").PropType<string>;
210
- default: string;
211
- };
212
212
  }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
213
- size: "caption" | "sm" | "md" | "lg" | "xs";
214
213
  testId: string;
214
+ size: "caption" | "sm" | "md" | "lg" | "xs";
215
215
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
216
216
  $slots: {
217
217
  default?(_: {}): any;
@@ -1,21 +1,41 @@
1
1
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
2
  isTruncated?: boolean;
3
+ withTooltip?: boolean;
4
+ tooltipText?: string;
5
+ tooltipPlacement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
6
+ tooltipTestId?: string;
3
7
  /**
4
8
  * Typography variant to use
5
9
  */
6
10
  variant?: "button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "title" | "body1" | "body2" | "subtitle1" | "subtitle2" | "tableLabel" | "inputLabel" | "tabLabel1" | "tabLabel2" | "chipLabel" | "chart1" | "chart2" | "overline";
7
11
  }>, {
8
12
  variant: string;
13
+ withTooltip: boolean;
14
+ tooltipText: string;
15
+ tooltipPlacement: string;
16
+ tooltipTestId: string;
9
17
  }>, {}, 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<{
10
18
  isTruncated?: boolean;
19
+ withTooltip?: boolean;
20
+ tooltipText?: string;
21
+ tooltipPlacement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
22
+ tooltipTestId?: string;
11
23
  /**
12
24
  * Typography variant to use
13
25
  */
14
26
  variant?: "button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "title" | "body1" | "body2" | "subtitle1" | "subtitle2" | "tableLabel" | "inputLabel" | "tabLabel1" | "tabLabel2" | "chipLabel" | "chart1" | "chart2" | "overline";
15
27
  }>, {
16
28
  variant: string;
29
+ withTooltip: boolean;
30
+ tooltipText: string;
31
+ tooltipPlacement: string;
32
+ tooltipTestId: string;
17
33
  }>>>, {
18
34
  variant: "button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "title" | "body1" | "body2" | "subtitle1" | "subtitle2" | "tableLabel" | "inputLabel" | "tabLabel1" | "tabLabel2" | "chipLabel" | "chart1" | "chart2" | "overline";
35
+ withTooltip: boolean;
36
+ tooltipText: string;
37
+ tooltipPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
38
+ tooltipTestId: string;
19
39
  }>, {
20
40
  default?(_: {}): any;
21
41
  }>;
@@ -1,7 +1,7 @@
1
1
  import o from "./Typography.vue2.js";
2
- /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../Typography.vue_vue_type_style_index_0_scoped_4c2254ef_lang.css"; //*');
4
- const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-4c2254ef"]]);
2
+ /* empty css */import p from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../Typography.vue_vue_type_style_index_0_scoped_b00956b7_lang.css"; //*');
4
+ const t = /* @__PURE__ */ p(o, [["__scopeId", "data-v-b00956b7"]]);
5
5
  export {
6
6
  t as default
7
7
  };
@@ -1,12 +1,17 @@
1
- import "../../../Typography.vue_vue_type_style_index_0_scoped_4c2254ef_lang.css"; import { defineComponent as s, computed as e, openBlock as c, createBlock as f, resolveDynamicComponent as h, unref as n, normalizeClass as b, withCtx as u, renderSlot as d } from "vue";
2
- const v = /* @__PURE__ */ s({
1
+ import "../../../Typography.vue_vue_type_style_index_0_scoped_b00956b7_lang.css"; import { defineComponent as m, ref as y, computed as l, openBlock as o, createBlock as i, unref as e, withCtx as s, resolveDynamicComponent as d, normalizeClass as f, renderSlot as h } from "vue";
2
+ import T from "../../tooltip/v4/TooltipV4.vue.js";
3
+ const C = /* @__PURE__ */ m({
3
4
  __name: "Typography",
4
5
  props: {
5
6
  isTruncated: { type: Boolean },
7
+ withTooltip: { type: Boolean, default: !1 },
8
+ tooltipText: { default: "" },
9
+ tooltipPlacement: { default: "top" },
10
+ tooltipTestId: { default: "" },
6
11
  variant: { default: "body1" }
7
12
  },
8
- setup(a) {
9
- const t = a, o = {
13
+ setup(t) {
14
+ const n = t, a = y(null), b = {
10
15
  title: "font-title",
11
16
  h1: "font-heading-1",
12
17
  h2: "font-heading-2",
@@ -28,8 +33,8 @@ const v = /* @__PURE__ */ s({
28
33
  chart1: "font-chart-1",
29
34
  chart2: "font-chart-2",
30
35
  overline: "font-overline"
31
- }, l = e(() => {
32
- switch (t.variant) {
36
+ }, r = l(() => {
37
+ switch (n.variant) {
33
38
  case "title":
34
39
  return "h1";
35
40
  case "h1":
@@ -38,21 +43,43 @@ const v = /* @__PURE__ */ s({
38
43
  case "h4":
39
44
  case "h5":
40
45
  case "h6":
41
- return t.variant;
46
+ return n.variant;
42
47
  default:
43
48
  return "span";
44
49
  }
45
- }), r = e(() => o[t.variant]);
46
- return (i, p) => (c(), f(h(n(l)), {
47
- class: b(["antialiased", { [n(r)]: !0, truncate: a.isTruncated }])
50
+ }), c = l(() => b[n.variant]), p = l(() => a.value ? a.value.scrollWidth > a.value.clientWidth : !1);
51
+ return (u, v) => t.withTooltip && t.isTruncated ? (o(), i(e(T), {
52
+ key: 0,
53
+ placement: t.tooltipPlacement,
54
+ disabled: !e(p),
55
+ text: t.tooltipText,
56
+ class: "typography-tooltip",
57
+ "test-id": t.tooltipTestId
48
58
  }, {
49
- default: u(() => [
50
- d(i.$slots, "default", {}, void 0, !0)
59
+ default: s(() => [
60
+ (o(), i(d(e(r)), {
61
+ ref_key: "textElement",
62
+ ref: a,
63
+ class: f(["antialiased", { [e(c)]: !0, truncate: t.isTruncated }])
64
+ }, {
65
+ default: s(() => [
66
+ h(u.$slots, "default", {}, void 0, !0)
67
+ ]),
68
+ _: 3
69
+ }, 8, ["class"]))
70
+ ]),
71
+ _: 3
72
+ }, 8, ["placement", "disabled", "text", "test-id"])) : (o(), i(d(e(r)), {
73
+ key: 1,
74
+ class: f(["antialiased", { [e(c)]: !0, truncate: t.isTruncated }])
75
+ }, {
76
+ default: s(() => [
77
+ h(u.$slots, "default", {}, void 0, !0)
51
78
  ]),
52
79
  _: 3
53
80
  }, 8, ["class"]));
54
81
  }
55
82
  });
56
83
  export {
57
- v as default
84
+ C as default
58
85
  };