@eturnity/eturnity_reusable_components 7.35.1-EPDM-10620.8 → 7.35.1-EPDM-10620.9
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
@@ -62,10 +62,17 @@
|
|
62
62
|
v-for="item in expandedOptions"
|
63
63
|
:key="item.type"
|
64
64
|
:disabled="item.disabled || false"
|
65
|
+
:hasComponent="!!item?.component"
|
65
66
|
:hover-color="item.hoverColor"
|
66
|
-
@click="
|
67
|
+
@click="
|
68
|
+
!item?.component && !item.disabled && $emit('on-' + item.type)
|
69
|
+
"
|
67
70
|
>
|
68
|
-
<ListItemWrapper
|
71
|
+
<ListItemWrapper
|
72
|
+
v-if="item?.component"
|
73
|
+
:hasComponent="!!item?.component"
|
74
|
+
@click="!item.disabled && toggleElement(item.type)"
|
75
|
+
>
|
69
76
|
<ListItemTitle>
|
70
77
|
{{ item.name }}
|
71
78
|
<InfoText
|
@@ -299,12 +306,16 @@
|
|
299
306
|
flex-direction: column;
|
300
307
|
`
|
301
308
|
|
302
|
-
const ExpandedListItem = styled('div',
|
309
|
+
const ExpandedListItem = styled('div', {
|
310
|
+
disabled: Boolean,
|
311
|
+
hoverColor: String,
|
312
|
+
hasComponent: Boolean,
|
313
|
+
})`
|
303
314
|
width: 100%;
|
304
315
|
display: flex;
|
305
316
|
justify-content: space-between;
|
306
317
|
align-items: center;
|
307
|
-
padding: 13px 15px;
|
318
|
+
padding: ${(props) => (props.hasComponent ? '0' : '13px 15px')};
|
308
319
|
cursor: ${(props) => (props.disabled ? 'not-allowed' : 'pointer')};
|
309
320
|
color: ${(props) => props.disabled && props.theme.colors.grey3};
|
310
321
|
|
@@ -315,11 +326,12 @@
|
|
315
326
|
}
|
316
327
|
`
|
317
328
|
|
318
|
-
const ListItemWrapper = styled
|
329
|
+
const ListItemWrapper = styled('div', { hasComponent: Boolean })`
|
319
330
|
width: 100%;
|
320
331
|
display: flex;
|
321
332
|
align-items: center;
|
322
333
|
justify-content: space-between;
|
334
|
+
padding: ${(props) => (props.hasComponent ? '13px 15px' : '0')};
|
323
335
|
`
|
324
336
|
|
325
337
|
const ListItemTitle = styled.div`
|