@eturnity/eturnity_reusable_components 8.7.4-EPDM-12729.9 → 8.7.4-EPDM-12729.10
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -7,19 +7,22 @@
|
|
7
7
|
@mouseenter="!isMobile && openTrigger === 'onHover' && showInfo()"
|
8
8
|
@mouseleave="!isMobile && openTrigger === 'onHover' && hideInfo()"
|
9
9
|
>
|
10
|
-
<
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
10
|
+
<IconWrapper>
|
11
|
+
<Dot
|
12
|
+
v-if="type === 'dot'"
|
13
|
+
:color="dotColor"
|
14
|
+
data-test-id="infoText_dot"
|
15
|
+
/>
|
16
|
+
<IconComponent
|
17
|
+
v-else
|
18
|
+
:color="iconColor || computedIconColor"
|
19
|
+
:cursor="isDisabled ? 'not-allowed' : 'pointer'"
|
20
|
+
:disabled="isDisabled"
|
21
|
+
:name="iconName"
|
22
|
+
:size="size"
|
23
|
+
/>
|
24
|
+
<div v-if="labelText">{{ labelText }}</div>
|
25
|
+
</IconWrapper>
|
23
26
|
</div>
|
24
27
|
<Teleport v-if="isVisible" to="body">
|
25
28
|
<TextWrapper :style="wrapperStyle">
|
@@ -121,6 +124,14 @@
|
|
121
124
|
border-radius: 50%;
|
122
125
|
`
|
123
126
|
|
127
|
+
const IconWrapper = styled.div`
|
128
|
+
display: flex;
|
129
|
+
align-items: center;
|
130
|
+
justify-content: center;
|
131
|
+
gap: 6px;
|
132
|
+
white-space: nowrap;
|
133
|
+
`
|
134
|
+
|
124
135
|
export default {
|
125
136
|
name: 'InfoText',
|
126
137
|
components: {
|
@@ -131,6 +142,7 @@
|
|
131
142
|
PageContainer,
|
132
143
|
TextWrapper,
|
133
144
|
OverlayImage,
|
145
|
+
IconWrapper,
|
134
146
|
},
|
135
147
|
props: {
|
136
148
|
text: {
|
@@ -138,6 +150,11 @@
|
|
138
150
|
default: '',
|
139
151
|
type: String,
|
140
152
|
},
|
153
|
+
labelText: {
|
154
|
+
required: false,
|
155
|
+
default: '',
|
156
|
+
type: String,
|
157
|
+
},
|
141
158
|
size: {
|
142
159
|
type: String,
|
143
160
|
default: '14px',
|