@eturnity/eturnity_reusable_components 9.25.3 → 9.25.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,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<FlexRadioContainer>
|
|
3
|
-
<ComponentWrapper
|
|
3
|
+
<ComponentWrapper
|
|
4
|
+
:color-mode="colorMode"
|
|
5
|
+
:grid-gap="gridGap"
|
|
6
|
+
:layout="layout"
|
|
7
|
+
>
|
|
4
8
|
<RadioWrapper
|
|
5
9
|
v-for="(item, index) in options"
|
|
6
10
|
:key="item.value"
|
|
@@ -120,13 +124,15 @@
|
|
|
120
124
|
const wrapperProps = {
|
|
121
125
|
layout: String,
|
|
122
126
|
colorMode: String,
|
|
127
|
+
gridGap: String,
|
|
123
128
|
}
|
|
124
129
|
const ComponentWrapper = styled('div', wrapperProps)`
|
|
125
130
|
display: flex;
|
|
126
131
|
flex-direction: ${(props) =>
|
|
127
132
|
props.layout === 'vertical' ? 'column' : 'row'};
|
|
128
133
|
grid-gap: ${(props) =>
|
|
129
|
-
props.
|
|
134
|
+
props.gridGap ||
|
|
135
|
+
(props.colorMode === 'transparent' ? '16px 5px' : '10px 5px')};
|
|
130
136
|
flex-wrap: wrap;
|
|
131
137
|
`
|
|
132
138
|
|
|
@@ -361,6 +367,11 @@
|
|
|
361
367
|
default: '',
|
|
362
368
|
type: String,
|
|
363
369
|
},
|
|
370
|
+
gridGap: {
|
|
371
|
+
required: false,
|
|
372
|
+
default: null,
|
|
373
|
+
type: [String, null],
|
|
374
|
+
},
|
|
364
375
|
},
|
|
365
376
|
emits: ['on-radio-change'],
|
|
366
377
|
data() {
|