@eturnity/eturnity_reusable_components 8.46.1-EPDM-17425.0 → 8.46.1-EPDM-17425.1
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/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
:color="iconColor ? iconColor : presetStyles.iconColor"
|
|
15
15
|
data-test-id="info_card_icon"
|
|
16
16
|
:hovered-color="iconColor ? iconColor : presetStyles.iconColor"
|
|
17
|
-
:name="
|
|
17
|
+
:name="getIconName()"
|
|
18
18
|
size="18px"
|
|
19
19
|
/>
|
|
20
20
|
<TextContainer data-test-id="info_card_text_container">
|
|
@@ -123,6 +123,11 @@
|
|
|
123
123
|
type: String,
|
|
124
124
|
default: '',
|
|
125
125
|
},
|
|
126
|
+
iconName: {
|
|
127
|
+
required: false,
|
|
128
|
+
type: String,
|
|
129
|
+
default: '',
|
|
130
|
+
},
|
|
126
131
|
},
|
|
127
132
|
computed: {
|
|
128
133
|
isInfoSimple() {
|
|
@@ -138,7 +143,7 @@
|
|
|
138
143
|
isErrorMinor() {
|
|
139
144
|
return this.type === 'error_minor'
|
|
140
145
|
},
|
|
141
|
-
|
|
146
|
+
iconTypeName() {
|
|
142
147
|
return this.type === 'warning'
|
|
143
148
|
? 'warning_triangle'
|
|
144
149
|
: this.isErrorMinor
|
|
@@ -176,5 +181,10 @@
|
|
|
176
181
|
return stylesCollection
|
|
177
182
|
},
|
|
178
183
|
},
|
|
184
|
+
methods: {
|
|
185
|
+
getIconName() {
|
|
186
|
+
return this.iconName || this.iconTypeName
|
|
187
|
+
},
|
|
188
|
+
},
|
|
179
189
|
}
|
|
180
190
|
</script>
|