@eturnity/eturnity_reusable_components 7.24.0 → 7.24.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
@@ -0,0 +1,3 @@
|
|
1
|
+
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<path d="M10.8889 0H1.55556C0.692222 0 0 0.7 0 1.55556V12.4444C0 13.3 0.692222 14 1.55556 14H12.4444C13.3 14 14 13.3 14 12.4444V3.11111L10.8889 0ZM7 12.4444C5.70889 12.4444 4.66667 11.4022 4.66667 10.1111C4.66667 8.82 5.70889 7.77778 7 7.77778C8.29111 7.77778 9.33333 8.82 9.33333 10.1111C9.33333 11.4022 8.29111 12.4444 7 12.4444ZM9.33333 4.66667H1.55556V1.55556H9.33333V4.66667Z" fill="#263238"/>
|
3
|
+
</svg>
|
@@ -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
|
}
|