@ironsource/shared-ui 2.1.11-test.5 → 2.1.11-test.50
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.
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css +1 -0
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_1aa6df01_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_b8213498_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_a1c626cd_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css +1 -0
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_af4ae3c3_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_27802170_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_26488faf_lang.css +1 -0
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_ddfaf207_lang.css +1 -0
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_309e5351_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_75002075_lang.css +1 -0
- package/EditableV4.vue_vue_type_style_index_0_scoped_1bbe222a_lang.css +1 -0
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +1 -0
- package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_383011d3_lang.css +1 -0
- package/FormCard.vue_vue_type_style_index_0_scoped_86feae7b_lang.css +1 -0
- package/IconFlag.vue_vue_type_style_index_0_scoped_be9dc7bb_lang.css +1 -0
- package/InlineCopy.vue_vue_type_style_index_0_scoped_ad48b61e_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_2c2947b3_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_0_scoped_66694b4e_lang.css +1 -0
- package/README.md +4 -15
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_89fe8aa1_lang.css +1 -0
- package/SortableItem.vue_vue_type_style_index_0_scoped_2ca7b24c_lang.css +1 -0
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +1 -0
- package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +1 -0
- package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
- package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_c81a7d3e_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +1 -0
- package/Typography.vue_vue_type_style_index_0_scoped_5714d43e_lang.css +1 -0
- package/components/autocomplete/Autocomplete.vue2.js +3 -2
- package/components/button/v4/ToggleButtonGroupAB.vue.d.ts +3 -1
- package/components/button/v4/ToggleButtonGroupAB.vue.js +2 -2
- package/components/button/v4/ToggleButtonGroupAB.vue2.js +44 -39
- package/components/button/v4/index.d.ts +9 -3
- package/components/chart/Chart.vue.d.ts +16 -3
- package/components/chart/Chart.vue.js +5 -5
- package/components/chart/Chart.vue2.js +127 -110
- package/components/chart/ChartHeader.vue.d.ts +13 -6
- package/components/chart/ChartHeader.vue.js +2 -2
- package/components/chart/ChartHeader.vue2.js +32 -29
- package/components/chart/ChartLegend.vue.d.ts +5 -0
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +99 -49
- package/components/chart/ChartTooltip.vue.d.ts +4 -5
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +64 -43
- package/components/chart/SettingsHeader.vue2.js +3 -2
- package/components/chart/index.d.ts +55 -16
- package/components/chart/mockData.d.ts +15 -2
- package/components/chart/types.d.ts +15 -1
- package/components/chart/utils/utils.js +5 -5
- package/components/checkbox/v4/CheckboxV4.vue.js +3 -3
- package/components/checkbox/v4/CheckboxV4.vue2.js +2 -2
- package/components/datePicker/v4/DatePickerV4.vue2.js +8 -7
- package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
- package/components/dateRange/v4/DateRangeV4.vue2.js +9 -9
- package/components/dialog/v4/DialogV4.vue.d.ts +15 -0
- package/components/dialog/v4/DialogV4.vue.js +3 -3
- package/components/dialog/v4/DialogV4.vue2.js +80 -73
- package/components/dialog/v4/index.d.ts +58 -1
- package/components/dropdown/common/Dropdown.common.js +200 -189
- package/components/dropdown/v3/Dropdown.vue.d.ts +2 -2
- package/components/dropdown/v3/index.d.ts +39 -39
- package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +1 -1
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +15 -0
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +42 -20
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +7 -7
- package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +10 -0
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +88 -47
- package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +110 -0
- package/components/dropdown/v4/ConditionalDropdown.vue.js +7 -0
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +224 -0
- package/components/dropdown/v4/DropdownV4.vue.d.ts +32 -11
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +153 -138
- package/components/dropdown/v4/OptionV4.vue.d.ts +10 -0
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +135 -98
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +6 -1
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +165 -120
- package/components/dropdown/v4/index.d.ts +443 -110
- package/components/dropdown/v4/index.js +6 -3
- package/components/emptyState/v4/EmptyStateV4.vue.js +3 -3
- package/components/emptyState/v4/EmptyStateV4.vue2.js +1 -1
- package/components/filtersPanel/v4/FiltersPanelV4.vue.js +2 -2
- package/components/filtersPanel/v4/FiltersPanelV4.vue2.js +8 -9
- package/components/forms/FormCard.vue.js +3 -3
- package/components/forms/FormCard.vue2.js +1 -1
- package/components/icon/v4/IconFlag.vue.js +3 -3
- package/components/icon/v4/IconFlag.vue2.js +1 -1
- package/components/icon/v4/consts.d.ts +1 -1
- package/components/icon/v4/consts.js +1 -1
- package/components/inlineCopy/InlineCopy.vue.d.ts +5 -0
- package/components/inlineCopy/InlineCopy.vue.js +2 -2
- package/components/inlineCopy/InlineCopy.vue2.js +24 -22
- package/components/inlineCopy/index.d.ts +9 -0
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +185 -165
- package/components/multibar/MultiBarMenu.vue2.js +3 -2
- package/components/popover/v4/PopoverV4.vue.d.ts +14 -2
- package/components/popover/v4/PopoverV4.vue.js +4 -3
- package/components/popover/v4/PopoverV4.vue2.js +40 -24
- package/components/popover/v4/index.d.ts +55 -11
- package/components/snackbar/v4/SnackbarV4.vue.d.ts +7 -116
- package/components/snackbar/v4/SnackbarV4.vue.js +5 -5
- package/components/snackbar/v4/SnackbarV4.vue2.js +62 -60
- package/components/sortableList/SortableItem.vue.d.ts +5 -0
- package/components/sortableList/SortableItem.vue.js +2 -2
- package/components/sortableList/SortableItem.vue2.js +86 -70
- package/components/sortableList/SortableItemLabel.vue.js +3 -3
- package/components/sortableList/SortableItemLabel.vue2.js +20 -23
- package/components/sortableList/SortableList.vue.d.ts +17 -1
- package/components/sortableList/SortableList.vue.js +4 -4
- package/components/sortableList/SortableList.vue2.js +113 -94
- package/components/sortableList/index.d.ts +63 -5
- package/components/table/common/Table.common.d.ts +1 -1
- package/components/table/common/Table.common.js +83 -77
- package/components/table/common/Table.types.d.ts +1 -1
- package/components/table/common/consts.d.ts +4 -0
- package/components/table/common/consts.js +7 -0
- package/components/table/v3/Table.vue.d.ts +1 -1
- package/components/table/v3/index.d.ts +5 -5
- package/components/table/v4/DataGrid.vue.d.ts +12 -2
- package/components/table/v4/DataGrid.vue.js +2 -2
- package/components/table/v4/DataGrid.vue2.js +164 -155
- package/components/table/v4/DataGridMenu.vue.js +5 -5
- package/components/table/v4/DataGridMenu.vue2.js +4 -3
- package/components/table/v4/MultipleDataGrid.vue.d.ts +1 -1
- package/components/table/v4/index.d.ts +84 -46
- package/components/table-cells/common/Editable.common.js +29 -23
- package/components/table-cells/common/EditableContext.d.ts +1 -0
- package/components/table-cells/v4/EditableV4.vue.d.ts +5 -0
- package/components/table-cells/v4/EditableV4.vue.js +3 -3
- package/components/table-cells/v4/EditableV4.vue2.js +11 -10
- package/components/table-cells/v4/index.d.ts +20 -1
- package/components/tooltip/v4/TooltipV4.vue.d.ts +10 -0
- package/components/tooltip/v4/TooltipV4.vue.js +3 -3
- package/components/tooltip/v4/TooltipV4.vue2.js +24 -21
- package/components/tooltip/v4/index.d.ts +39 -1
- package/components/typography/v4/Typography.vue.js +3 -3
- package/components/typography/v4/Typography.vue2.js +24 -18
- package/design-foundation.stories/icons/iconsData.d.ts +1 -1
- package/index.d.ts +1626 -366
- package/index.js +1 -1
- package/mocks/options.d.ts +48 -6
- package/mocks/words.d.ts +1 -1
- package/package.json +2 -1
- package/style/v4/grid.css +1 -1
- package/style/v4/grid.css.map +1 -1
- package/style/v4/spacings.scss +1 -0
- package/testids/index.d.ts +2 -0
- package/testids/index.js +13 -13
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_76c74f58_lang.css +0 -1
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_7f750550_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_ea1e5c3e_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_4c37736e_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_c0f71a49_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_ec636f18_lang.css +0 -1
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_8e5b619a_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_49bd7193_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_0cd8af73_lang.css +0 -1
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_a6e4672f_lang.css +0 -1
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_f81413ec_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_e899ec7a_lang.css +0 -1
- package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +0 -1
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_24001caa_lang.css +0 -1
- package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_39061862_lang.css +0 -1
- package/FormCard.vue_vue_type_style_index_0_scoped_c7965a69_lang.css +0 -1
- package/IconFlag.vue_vue_type_style_index_0_scoped_7b09cc85_lang.css +0 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_893a203c_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_4070942a_lang.css +0 -1
- package/PopoverV4.vue_vue_type_style_index_0_scoped_74bbce13_lang.css +0 -1
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_49c5ccea_lang.css +0 -1
- package/SortableItem.vue_vue_type_style_index_0_scoped_9dd4d372_lang.css +0 -1
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_1386ae20_lang.css +0 -1
- package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +0 -1
- package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_9d9e51c0_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_6ac5f602_lang.css +0 -1
- package/Typography.vue_vue_type_style_index_0_scoped_992962bc_lang.css +0 -1
|
@@ -11,6 +11,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
11
11
|
testId?: string;
|
|
12
12
|
distance?: string | number;
|
|
13
13
|
container?: string;
|
|
14
|
+
shown?: boolean;
|
|
15
|
+
autoHide?: boolean;
|
|
14
16
|
}>, {
|
|
15
17
|
text: any;
|
|
16
18
|
header: any;
|
|
@@ -23,6 +25,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
23
25
|
testId: string;
|
|
24
26
|
distance: string;
|
|
25
27
|
container: string;
|
|
28
|
+
shown: any;
|
|
29
|
+
autoHide: boolean;
|
|
26
30
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
31
|
show: () => void;
|
|
28
32
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -37,6 +41,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
37
41
|
testId?: string;
|
|
38
42
|
distance?: string | number;
|
|
39
43
|
container?: string;
|
|
44
|
+
shown?: boolean;
|
|
45
|
+
autoHide?: boolean;
|
|
40
46
|
}>, {
|
|
41
47
|
text: any;
|
|
42
48
|
header: any;
|
|
@@ -49,6 +55,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
49
55
|
testId: string;
|
|
50
56
|
distance: string;
|
|
51
57
|
container: string;
|
|
58
|
+
shown: any;
|
|
59
|
+
autoHide: boolean;
|
|
52
60
|
}>>> & {
|
|
53
61
|
onShow?: () => any;
|
|
54
62
|
}, {
|
|
@@ -63,6 +71,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
63
71
|
disabled: boolean;
|
|
64
72
|
distance: string | number;
|
|
65
73
|
container: string;
|
|
74
|
+
shown: boolean;
|
|
75
|
+
autoHide: boolean;
|
|
66
76
|
}>, {
|
|
67
77
|
default?(_: {}): any;
|
|
68
78
|
tooltip?(_: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "./TooltipV4.vue2.js";
|
|
2
|
-
/* empty css *//* empty css */import
|
|
3
|
-
// import "../../../TooltipV4.
|
|
2
|
+
/* empty css *//* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css"; //*');
|
|
4
4
|
// import "../../../TooltipV4.vue_vue_type_style_index_1_lang.css"; //');
|
|
5
|
-
const l = /* @__PURE__ */
|
|
5
|
+
const l = /* @__PURE__ */ e(o, [["__scopeId", "data-v-66eab856"]]);
|
|
6
6
|
export {
|
|
7
7
|
l as default
|
|
8
8
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "../../../TooltipV4.
|
|
1
|
+
import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css"; import "../../../TooltipV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as c, openBlock as l, createBlock as d, unref as t, mergeProps as f, withCtx as n, renderSlot as m, createTextVNode as p, toDisplayString as y, createElementVNode as T } from "vue";
|
|
2
2
|
import g from "./TextWithTitleContent.vue.js";
|
|
3
|
-
import { Tooltip as
|
|
3
|
+
import { Tooltip as w } from "floating-vue";
|
|
4
4
|
import { TooltipTestIdModifiers as i } from "../../../testids/index.js";
|
|
5
|
-
import
|
|
6
|
-
import { tooltipCommon as
|
|
7
|
-
import { useTestIdAttrs as
|
|
8
|
-
const
|
|
5
|
+
import x from "../../typography/v4/Typography.vue.js";
|
|
6
|
+
import { tooltipCommon as v } from "../common/Tooltip.common.js";
|
|
7
|
+
import { useTestIdAttrs as b } from "../../../utils/testIds.js";
|
|
8
|
+
const B = {
|
|
9
9
|
ref: "container",
|
|
10
10
|
class: "container"
|
|
11
|
-
}, D = /* @__PURE__ */
|
|
11
|
+
}, D = /* @__PURE__ */ c({
|
|
12
12
|
__name: "TooltipV4",
|
|
13
13
|
props: {
|
|
14
14
|
text: { default: null },
|
|
@@ -21,12 +21,14 @@ const I = {
|
|
|
21
21
|
disabled: { type: Boolean, default: !1 },
|
|
22
22
|
testId: { default: "" },
|
|
23
23
|
distance: { default: "10" },
|
|
24
|
-
container: { default: "body" }
|
|
24
|
+
container: { default: "body" },
|
|
25
|
+
shown: { type: Boolean, default: null },
|
|
26
|
+
autoHide: { type: Boolean, default: !0 }
|
|
25
27
|
},
|
|
26
28
|
emits: ["show"],
|
|
27
|
-
setup(e, { emit:
|
|
28
|
-
const
|
|
29
|
-
return (a,
|
|
29
|
+
setup(e, { emit: h }) {
|
|
30
|
+
const r = e, { textForDisplay: o } = v(r), s = b(r.testId, i);
|
|
31
|
+
return (a, u) => (l(), d(t(w), f({ ...a.$props, ...t(s)[t(i).TRIGGER] }, {
|
|
30
32
|
theme: e.theme,
|
|
31
33
|
"no-auto-focus": "",
|
|
32
34
|
triggers: e.triggers,
|
|
@@ -36,33 +38,34 @@ const I = {
|
|
|
36
38
|
"popper-class": [e.theme, e.placement, "v4-tooltip"],
|
|
37
39
|
class: ["v4-tooltip"],
|
|
38
40
|
distance: e.distance,
|
|
39
|
-
"auto-hide":
|
|
40
|
-
|
|
41
|
+
"auto-hide": e.autoHide,
|
|
42
|
+
shown: e.shown,
|
|
43
|
+
onApplyShow: u[0] || (u[0] = (I) => h("show"))
|
|
41
44
|
}), {
|
|
42
|
-
popper:
|
|
43
|
-
|
|
45
|
+
popper: n(() => [
|
|
46
|
+
m(a.$slots, "tooltip", { text: t(o) }, () => [
|
|
44
47
|
e.header ? (l(), d(g, {
|
|
45
48
|
key: 1,
|
|
46
49
|
text: e.text,
|
|
47
50
|
header: e.header
|
|
48
|
-
}, null, 8, ["text", "header"])) : (l(), d(t(
|
|
51
|
+
}, null, 8, ["text", "header"])) : (l(), d(t(x), f({
|
|
49
52
|
key: 0,
|
|
50
53
|
variant: "body2"
|
|
51
54
|
}, t(s)[t(i).TEXT]), {
|
|
52
|
-
default:
|
|
55
|
+
default: n(() => [
|
|
53
56
|
p(y(t(o)), 1)
|
|
54
57
|
]),
|
|
55
58
|
_: 1
|
|
56
59
|
}, 16))
|
|
57
60
|
], !0)
|
|
58
61
|
]),
|
|
59
|
-
default:
|
|
60
|
-
T("div",
|
|
61
|
-
|
|
62
|
+
default: n(() => [
|
|
63
|
+
T("div", B, [
|
|
64
|
+
m(a.$slots, "default", {}, void 0, !0)
|
|
62
65
|
], 512)
|
|
63
66
|
]),
|
|
64
67
|
_: 3
|
|
65
|
-
}, 16, ["theme", "triggers", "delay", "placement", "disabled", "popper-class", "distance"]));
|
|
68
|
+
}, 16, ["theme", "triggers", "delay", "placement", "disabled", "popper-class", "distance", "auto-hide", "shown"]));
|
|
66
69
|
}
|
|
67
70
|
});
|
|
68
71
|
export {
|
|
@@ -15,6 +15,8 @@ declare const TooltipTypes: () => ({
|
|
|
15
15
|
disabled: boolean;
|
|
16
16
|
distance: string | number;
|
|
17
17
|
container: string;
|
|
18
|
+
shown: boolean;
|
|
19
|
+
autoHide: boolean;
|
|
18
20
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
19
21
|
header: {
|
|
20
22
|
type: import("vue").PropType<string>;
|
|
@@ -60,9 +62,17 @@ declare const TooltipTypes: () => ({
|
|
|
60
62
|
type: import("vue").PropType<string>;
|
|
61
63
|
default: string;
|
|
62
64
|
};
|
|
65
|
+
shown: {
|
|
66
|
+
type: import("vue").PropType<boolean>;
|
|
67
|
+
default: any;
|
|
68
|
+
};
|
|
69
|
+
autoHide: {
|
|
70
|
+
type: import("vue").PropType<boolean>;
|
|
71
|
+
default: boolean;
|
|
72
|
+
};
|
|
63
73
|
}>> & {
|
|
64
74
|
onShow?: () => any;
|
|
65
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "header" | "text" | "theme" | "testId" | "delay" | "triggers" | "forceShowWithTruncate" | "placement" | "disabled" | "distance" | "container">;
|
|
75
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "header" | "text" | "theme" | "testId" | "delay" | "triggers" | "forceShowWithTruncate" | "placement" | "disabled" | "distance" | "container" | "shown" | "autoHide">;
|
|
66
76
|
$attrs: {
|
|
67
77
|
[x: string]: unknown;
|
|
68
78
|
};
|
|
@@ -121,6 +131,14 @@ declare const TooltipTypes: () => ({
|
|
|
121
131
|
type: import("vue").PropType<string>;
|
|
122
132
|
default: string;
|
|
123
133
|
};
|
|
134
|
+
shown: {
|
|
135
|
+
type: import("vue").PropType<boolean>;
|
|
136
|
+
default: any;
|
|
137
|
+
};
|
|
138
|
+
autoHide: {
|
|
139
|
+
type: import("vue").PropType<boolean>;
|
|
140
|
+
default: boolean;
|
|
141
|
+
};
|
|
124
142
|
}>> & {
|
|
125
143
|
onShow?: () => any;
|
|
126
144
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -137,6 +155,8 @@ declare const TooltipTypes: () => ({
|
|
|
137
155
|
disabled: boolean;
|
|
138
156
|
distance: string | number;
|
|
139
157
|
container: string;
|
|
158
|
+
shown: boolean;
|
|
159
|
+
autoHide: boolean;
|
|
140
160
|
}, {}, string> & {
|
|
141
161
|
beforeCreate?: (() => void) | (() => void)[];
|
|
142
162
|
created?: (() => void) | (() => void)[];
|
|
@@ -202,6 +222,14 @@ declare const TooltipTypes: () => ({
|
|
|
202
222
|
type: import("vue").PropType<string>;
|
|
203
223
|
default: string;
|
|
204
224
|
};
|
|
225
|
+
shown: {
|
|
226
|
+
type: import("vue").PropType<boolean>;
|
|
227
|
+
default: any;
|
|
228
|
+
};
|
|
229
|
+
autoHide: {
|
|
230
|
+
type: import("vue").PropType<boolean>;
|
|
231
|
+
default: boolean;
|
|
232
|
+
};
|
|
205
233
|
}>> & {
|
|
206
234
|
onShow?: () => any;
|
|
207
235
|
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
@@ -253,6 +281,14 @@ declare const TooltipTypes: () => ({
|
|
|
253
281
|
type: import("vue").PropType<string>;
|
|
254
282
|
default: string;
|
|
255
283
|
};
|
|
284
|
+
shown: {
|
|
285
|
+
type: import("vue").PropType<boolean>;
|
|
286
|
+
default: any;
|
|
287
|
+
};
|
|
288
|
+
autoHide: {
|
|
289
|
+
type: import("vue").PropType<boolean>;
|
|
290
|
+
default: boolean;
|
|
291
|
+
};
|
|
256
292
|
}>> & {
|
|
257
293
|
onShow?: () => any;
|
|
258
294
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -269,6 +305,8 @@ declare const TooltipTypes: () => ({
|
|
|
269
305
|
disabled: boolean;
|
|
270
306
|
distance: string | number;
|
|
271
307
|
container: string;
|
|
308
|
+
shown: boolean;
|
|
309
|
+
autoHide: boolean;
|
|
272
310
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
273
311
|
$slots: {
|
|
274
312
|
default?(_: {}): any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Typography.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../../Typography.
|
|
4
|
-
const t = /* @__PURE__ */
|
|
2
|
+
/* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../../Typography.vue_vue_type_style_index_0_scoped_5714d43e_lang.css"; //*');
|
|
4
|
+
const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-5714d43e"]]);
|
|
5
5
|
export {
|
|
6
6
|
t as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import "../../../Typography.
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import "../../../Typography.vue_vue_type_style_index_0_scoped_5714d43e_lang.css"; import { defineComponent as v, ref as f, computed as d, openBlock as o, createBlock as i, unref as a, withCtx as s, resolveDynamicComponent as h, normalizeClass as b, renderSlot as p } from "vue";
|
|
2
|
+
import y from "../../tooltip/v4/TooltipV4.vue.js";
|
|
3
|
+
import { useResizeObserver as T } from "@vueuse/core";
|
|
4
|
+
const L = /* @__PURE__ */ v({
|
|
4
5
|
__name: "Typography",
|
|
5
6
|
props: {
|
|
6
7
|
isTruncated: { type: Boolean },
|
|
@@ -11,7 +12,7 @@ const C = /* @__PURE__ */ m({
|
|
|
11
12
|
variant: { default: "body1" }
|
|
12
13
|
},
|
|
13
14
|
setup(t) {
|
|
14
|
-
const
|
|
15
|
+
const l = t, e = f(null), n = f(!1), m = {
|
|
15
16
|
title: "font-title",
|
|
16
17
|
h1: "font-heading-1",
|
|
17
18
|
h2: "font-heading-2",
|
|
@@ -33,8 +34,8 @@ const C = /* @__PURE__ */ m({
|
|
|
33
34
|
chart1: "font-chart-1",
|
|
34
35
|
chart2: "font-chart-2",
|
|
35
36
|
overline: "font-overline"
|
|
36
|
-
}, r =
|
|
37
|
-
switch (
|
|
37
|
+
}, r = d(() => {
|
|
38
|
+
switch (l.variant) {
|
|
38
39
|
case "title":
|
|
39
40
|
return "h1";
|
|
40
41
|
case "h1":
|
|
@@ -43,43 +44,48 @@ const C = /* @__PURE__ */ m({
|
|
|
43
44
|
case "h4":
|
|
44
45
|
case "h5":
|
|
45
46
|
case "h6":
|
|
46
|
-
return
|
|
47
|
+
return l.variant;
|
|
47
48
|
default:
|
|
48
49
|
return "span";
|
|
49
50
|
}
|
|
50
|
-
}),
|
|
51
|
-
return (
|
|
51
|
+
}), u = d(() => m[l.variant]);
|
|
52
|
+
return T(e, () => {
|
|
53
|
+
if (!e.value)
|
|
54
|
+
return n.value = !1;
|
|
55
|
+
n.value = // Note: These values are rounded which can make edge cases sometimes
|
|
56
|
+
e.value.scrollWidth > e.value.clientWidth;
|
|
57
|
+
}), (c, g) => t.withTooltip && t.isTruncated ? (o(), i(a(y), {
|
|
52
58
|
key: 0,
|
|
53
59
|
placement: t.tooltipPlacement,
|
|
54
|
-
disabled: !
|
|
60
|
+
disabled: !n.value,
|
|
55
61
|
text: t.tooltipText,
|
|
56
62
|
class: "typography-tooltip",
|
|
57
63
|
"test-id": t.tooltipTestId
|
|
58
64
|
}, {
|
|
59
65
|
default: s(() => [
|
|
60
|
-
(o(), i(
|
|
66
|
+
(o(), i(h(a(r)), {
|
|
61
67
|
ref_key: "textElement",
|
|
62
|
-
ref:
|
|
63
|
-
class:
|
|
68
|
+
ref: e,
|
|
69
|
+
class: b(["antialiased", { [a(u)]: !0, truncate: t.isTruncated }])
|
|
64
70
|
}, {
|
|
65
71
|
default: s(() => [
|
|
66
|
-
|
|
72
|
+
p(c.$slots, "default", {}, void 0, !0)
|
|
67
73
|
]),
|
|
68
74
|
_: 3
|
|
69
75
|
}, 8, ["class"]))
|
|
70
76
|
]),
|
|
71
77
|
_: 3
|
|
72
|
-
}, 8, ["placement", "disabled", "text", "test-id"])) : (o(), i(
|
|
78
|
+
}, 8, ["placement", "disabled", "text", "test-id"])) : (o(), i(h(a(r)), {
|
|
73
79
|
key: 1,
|
|
74
|
-
class:
|
|
80
|
+
class: b(["antialiased", { [a(u)]: !0, truncate: t.isTruncated }])
|
|
75
81
|
}, {
|
|
76
82
|
default: s(() => [
|
|
77
|
-
|
|
83
|
+
p(c.$slots, "default", {}, void 0, !0)
|
|
78
84
|
]),
|
|
79
85
|
_: 3
|
|
80
86
|
}, 8, ["class"]));
|
|
81
87
|
}
|
|
82
88
|
});
|
|
83
89
|
export {
|
|
84
|
-
|
|
90
|
+
L as default
|
|
85
91
|
};
|