@eturnity/eturnity_reusable_components 8.7.4-EPDM-12729.13 → 8.7.4-EPDM-12729.15
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
<svg fill="none" height="
|
1
|
+
<svg fill="none" height="16" viewbox="12 12 16 16" width="16" xmlns="http://www.w3.org/2000/svg">
|
2
2
|
<circle cx="20" cy="20" fill="white" r="7"></circle>
|
3
3
|
<path d="M20 13C18.6155 13 17.2622 13.4105 16.111 14.1797C14.9599 14.9489 14.0627 16.0421 13.5328 17.3212C13.003 18.6003 12.8644 20.0078 13.1345 21.3656C13.4046 22.7235 14.0713 23.9708 15.0503 24.9497C16.0292 25.9287 17.2765 26.5954 18.6344 26.8655C19.9922 27.1356 21.3997 26.997 22.6788 26.4672C23.9579 25.9373 25.0511 25.0401 25.8203 23.889C26.5895 22.7378 27 21.3845 27 20C27 18.1435 26.2625 16.363 24.9497 15.0503C23.637 13.7375 21.8565 13 20 13V13ZM21.3125 24.5558H18.6875V19.3058H21.3125V24.5558ZM20 18.0692C19.7404 18.0692 19.4867 17.9922 19.2708 17.848C19.055 17.7038 18.8868 17.4988 18.7874 17.2589C18.6881 17.0191 18.6621 16.7552 18.7127 16.5006C18.7634 16.246 18.8884 16.0121 19.0719 15.8286C19.2555 15.645 19.4893 15.52 19.7439 15.4694C19.9985 15.4187 20.2624 15.4447 20.5023 15.5441C20.7421 15.6434 20.9471 15.8116 21.0913 16.0275C21.2355 16.2433 21.3125 16.4971 21.3125 16.7567C21.312 17.1046 21.1736 17.4382 20.9276 17.6842C20.6815 17.9303 20.348 18.0687 20 18.0692V18.0692Z" fill="#B2B9C5"></path>
|
4
4
|
</svg>
|
@@ -45,7 +45,7 @@
|
|
45
45
|
</slot>
|
46
46
|
</span>
|
47
47
|
</TextOverlay>
|
48
|
-
<Arrow :image="image" :style="arrowStyle" />
|
48
|
+
<!-- <Arrow :image="image" :style="arrowStyle" /> -->
|
49
49
|
</TextWrapper>
|
50
50
|
</Teleport>
|
51
51
|
</PageContainer>
|
@@ -66,7 +66,12 @@
|
|
66
66
|
import styled from 'vue3-styled-components'
|
67
67
|
import theme from '../../assets/theme.js'
|
68
68
|
|
69
|
-
const
|
69
|
+
const TextOverlayAttrs = {
|
70
|
+
appTheme: String,
|
71
|
+
image: Boolean,
|
72
|
+
width: Number,
|
73
|
+
}
|
74
|
+
const TextOverlay = styled('div', TextOverlayAttrs)`
|
70
75
|
background-color: ${(props) =>
|
71
76
|
props.image ? props.theme.colors.white : props.theme.colors.black};
|
72
77
|
color: ${(props) =>
|
@@ -91,16 +96,16 @@
|
|
91
96
|
}
|
92
97
|
`
|
93
98
|
|
94
|
-
const Arrow = styled('div')`
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
`
|
99
|
+
// const Arrow = styled('div')`
|
100
|
+
// position: absolute;
|
101
|
+
// width: 0;
|
102
|
+
// height: 0;
|
103
|
+
// border: 8px solid transparent;
|
104
|
+
// border-top-color: ${(props) =>
|
105
|
+
// props.image ? props.theme.colors.white : props.theme.colors.black};
|
106
|
+
// filter: ${(props) =>
|
107
|
+
// props.image ? 'drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1))' : 'none'};
|
108
|
+
// `
|
104
109
|
|
105
110
|
const PageContainer = styled('div')`
|
106
111
|
display: ${(props) => (props.type === 'dot' ? 'unset' : 'inline-block')};
|
@@ -137,7 +142,7 @@
|
|
137
142
|
components: {
|
138
143
|
IconComponent,
|
139
144
|
TextOverlay,
|
140
|
-
Arrow,
|
145
|
+
// Arrow,
|
141
146
|
Dot,
|
142
147
|
PageContainer,
|
143
148
|
TextWrapper,
|
@@ -206,6 +211,11 @@
|
|
206
211
|
required: false,
|
207
212
|
default: 'info', // info, dot
|
208
213
|
},
|
214
|
+
appTheme: {
|
215
|
+
type: String,
|
216
|
+
default: 'light', // light or dark
|
217
|
+
required: false,
|
218
|
+
},
|
209
219
|
},
|
210
220
|
setup(props) {
|
211
221
|
const isVisible = ref(false)
|
@@ -223,7 +233,11 @@
|
|
223
233
|
|
224
234
|
const textStyle = computed(() => ({
|
225
235
|
fontSize: props.image ? '12px' : '13px',
|
226
|
-
color: props.image
|
236
|
+
color: props.image
|
237
|
+
? theme.colors.grey1
|
238
|
+
: props.appTheme === 'dark'
|
239
|
+
? theme.colors.black
|
240
|
+
: theme.colors.white,
|
227
241
|
textAlign: props.image ? 'right' : 'left',
|
228
242
|
}))
|
229
243
|
|
@@ -353,7 +367,9 @@
|
|
353
367
|
overflowY: 'auto',
|
354
368
|
backgroundColor: props.image
|
355
369
|
? theme.colors.white
|
356
|
-
:
|
370
|
+
: props.appTheme === 'light'
|
371
|
+
? theme.colors.black
|
372
|
+
: theme.colors.grey5,
|
357
373
|
}
|
358
374
|
}
|
359
375
|
|