@eturnity/eturnity_reusable_components 8.13.13-qa-16-03-26.2 → 8.13.13-qa-16-03-26.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_reusable_components",
3
- "version": "8.13.13-qa-16-03-26.2",
3
+ "version": "8.13.13-qa-16-03-26.4",
4
4
  "files": [
5
5
  "dist",
6
6
  "src"
@@ -327,7 +327,7 @@ const theme = (() => {
327
327
  borderColor: semanticColors.grey[300],
328
328
  },
329
329
  hover: {
330
- backgroundColor: semanticColors.blue[200],
330
+ backgroundColor: semanticColors.purple[100],
331
331
  textColor: semanticColors.purple[700],
332
332
  borderColor: semanticColors.grey[300],
333
333
  },
@@ -21,6 +21,7 @@
21
21
  iconColor ||
22
22
  theme.mainButton[appTheme][type][variant].default.textColor
23
23
  "
24
+ :disable-hover="disableIconHover"
24
25
  :hovered-color="
25
26
  iconColor ||
26
27
  theme.mainButton[appTheme][type][variant].default.textColor
@@ -231,6 +232,10 @@
231
232
  default: false,
232
233
  type: Boolean,
233
234
  },
235
+ disableIconHover: {
236
+ type: Boolean,
237
+ default: false,
238
+ },
234
239
  },
235
240
  data() {
236
241
  return {
@@ -10,6 +10,7 @@
10
10
  :background-color="backgroundColor"
11
11
  :color="color"
12
12
  data-test-id="icon_image"
13
+ :disable-hover="disableHover"
13
14
  :fill-type="fillType"
14
15
  :hovered-color="hoveredColor"
15
16
  >
@@ -97,6 +98,10 @@
97
98
  default: 'fill',
98
99
  type: String,
99
100
  },
101
+ disableHover: {
102
+ type: Boolean,
103
+ default: false,
104
+ },
100
105
  })
101
106
 
102
107
  const Wrapper = styled('div', {
@@ -152,6 +157,7 @@
152
157
  hoveredColor: String,
153
158
  animation: String,
154
159
  fillType: String,
160
+ disableHover: Boolean,
155
161
  }
156
162
  const IconImage = styled('div', IconImageAttrs)`
157
163
  animation: ${(props) => props.animation};
@@ -168,12 +174,17 @@
168
174
  ${({ theme, color, fillType }) =>
169
175
  color && `${fillType}: ${theme.colors[color] || color};`}
170
176
  }
171
- &:hover svg path:not(.fix) {
172
- ${(props) => `${props.fillType}: ${props.hoveredColor || props.color};`}
177
+ ${(props) =>
178
+ !props.disableHover &&
179
+ `
180
+ &:hover svg path:not(.fix) {
181
+ ${`${props.fillType}: ${props.hoveredColor || props.color};`}
173
182
  }
174
183
  &:hover + div {
175
- background-color: ${(props) => props.hoveredColor};
184
+ background-color: ${props.hoveredColor};
176
185
  }
186
+ `}
187
+
177
188
  @keyframes fade {
178
189
  50% {
179
190
  opacity: 0.3;