@eturnity/eturnity_reusable_components 7.22.4-qa-25.0 → 7.22.4-qa-25.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_reusable_components",
3
- "version": "7.22.4-qa-25.0",
3
+ "version": "7.22.4-qa-25.1",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -4,6 +4,7 @@
4
4
  :color="color"
5
5
  :background-color="backgroundColor"
6
6
  :hovered-color="hoveredColor"
7
+ :animation="animation"
7
8
  >
8
9
  <i v-html="icon.html" />
9
10
  </icon-image>
@@ -56,6 +57,10 @@ const props = defineProps({
56
57
  backgroundColor: {
57
58
  required: false,
58
59
  default: null
60
+ },
61
+ animation: {
62
+ required: false,
63
+ default: 'none'
59
64
  }
60
65
  })
61
66
 
@@ -94,8 +99,10 @@ const StrikedLine = styled('div', { color: String })`
94
99
  const IconImage = styled('div', {
95
100
  color: String,
96
101
  backgroundColor: String,
97
- hoveredColor: String
102
+ hoveredColor: String,
103
+ animation: String
98
104
  })`
105
+ animation: ${(props) => props.animation};
99
106
  width: 100%;
100
107
  svg {
101
108
  width: 100%;
@@ -113,6 +120,11 @@ const IconImage = styled('div', {
113
120
  &:hover + div {
114
121
  background-color: ${(props) => props.hoveredColor};
115
122
  }
123
+ @keyframes fade {
124
+ 50% {
125
+ opacity: 0.3;
126
+ }
127
+ }
116
128
  `
117
129
 
118
130
  const icon = reactive({ html: '' })
@@ -17,6 +17,7 @@
17
17
  :color="iconColor"
18
18
  :hoveredColor="hoveredIconColor"
19
19
  :isStriked="isStriked"
20
+ :animation="isLoading ? 'fade 3s infinite' : 'none'"
20
21
  />
21
22
 
22
23
  <caret v-if="hasCaret">
@@ -44,6 +45,7 @@
44
45
 
45
46
  import styled from 'vue3-styled-components'
46
47
  import icon from '../icon'
48
+
47
49
  const wrapperAttrs = {
48
50
  color: String,
49
51
  isHovered: Boolean,
@@ -147,6 +149,10 @@ export default {
147
149
  isStriked: {
148
150
  required: false,
149
151
  default: false
152
+ },
153
+ isLoading: {
154
+ required: false,
155
+ default: false
150
156
  }
151
157
  }
152
158
  }