From c1e9eaf9b4635537ed0328564c65b0bc76e6b07d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Zi=C3=B3=C5=82kowski?= Date: Thu, 16 Jan 2025 15:08:41 +0100 Subject: [PATCH 01/10] IT-6082 tooltip is hidden on mobile prop and text group supporting text has tooltip --- lib/js/components/TextGroup/TextGroup.vue | 34 ++++++++++++++++++++++- lib/js/components/Tooltip/Tooltip.vue | 14 ++++++++++ 2 files changed, 47 insertions(+), 1 deletion(-) diff --git a/lib/js/components/TextGroup/TextGroup.vue b/lib/js/components/TextGroup/TextGroup.vue index a99ab83c1..60529967b 100644 --- a/lib/js/components/TextGroup/TextGroup.vue +++ b/lib/js/components/TextGroup/TextGroup.vue @@ -54,7 +54,20 @@   - + @@ -251,11 +264,13 @@ import { TextGroupSize, TextGroupState, } from './TextGroup.consts'; +import DsTooltip, { TOOLTIP_PLACEMENTS } from '../Tooltip'; export default defineComponent({ name: 'TextGroup', components: { DsSkeleton, + DsTooltip, }, props: { size: { @@ -310,11 +325,28 @@ export default defineComponent({ type: String as PropType, default: TEXT_GROUP_STATES.DEFAULT, }, + isSupportingTextTooltipEnabled: { + type: Boolean, + default: true, + }, + isSupportingTextTooltipEnabledOnMobile: { + type: Boolean, + default: false, + }, + isSupportingTextTooltipAutoFilledWithContent: { + type: Boolean, + default: true, + }, + supportingTextTooltipContent: { + type: [String, null], + default: null, + }, }, data() { return { TEXT_GROUP_SIZES: Object.freeze(TEXT_GROUP_SIZES), TEXT_GROUP_STATES: Object.freeze(TEXT_GROUP_STATES), + TOOLTIP_PLACEMENTS: Object.freeze(TOOLTIP_PLACEMENTS), }; }, computed: { diff --git a/lib/js/components/Tooltip/Tooltip.vue b/lib/js/components/Tooltip/Tooltip.vue index 37ac0f245..01981203f 100644 --- a/lib/js/components/Tooltip/Tooltip.vue +++ b/lib/js/components/Tooltip/Tooltip.vue @@ -9,6 +9,7 @@