@eturnity/eturnity_reusable_components 1.2.39-EPDM-5626.2 → 1.2.39-EPDM-5626.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,7 +1,7 @@
|
|
1
1
|
<template>
|
2
2
|
<component-wrapper :layout="layout">
|
3
3
|
<radio-wrapper v-for="(item, index) in options" :key="item.value">
|
4
|
-
<label-container :size="size" :isDisabled="item.disabled" :isChecked="selectedOption === item.value">
|
4
|
+
<label-container :size="size" :isDisabled="item.disabled" :isChecked="selectedOption === item.value" :checkmarkColor="checkmarkColor">
|
5
5
|
<radio
|
6
6
|
type="radio"
|
7
7
|
:value="selectedOption"
|
@@ -83,7 +83,7 @@ const RadioWrapper = styled.div`
|
|
83
83
|
grid-gap: 10px;
|
84
84
|
`
|
85
85
|
|
86
|
-
const containerProps = { size: String, isDisabled: Boolean, isChecked: Boolean }
|
86
|
+
const containerProps = { size: String, isDisabled: Boolean, isChecked: Boolean, checkmarkColor: String }
|
87
87
|
const LabelContainer = styled("label", containerProps)`
|
88
88
|
display: grid;
|
89
89
|
grid-template-columns: auto 1fr auto;
|
@@ -139,7 +139,7 @@ const LabelContainer = styled("label", containerProps)`
|
|
139
139
|
? "8px"
|
140
140
|
: "6px"};
|
141
141
|
border-radius: 100%;
|
142
|
-
background: ${(props) => props.theme.colors.
|
142
|
+
background: ${(props) => props.checkmarkColor ? props.checkmarkColor : props.theme.colors.green};
|
143
143
|
}
|
144
144
|
}
|
145
145
|
`
|
@@ -220,6 +220,10 @@ export default {
|
|
220
220
|
name: {
|
221
221
|
required: false,
|
222
222
|
default: ''
|
223
|
+
},
|
224
|
+
checkmarkColor: {
|
225
|
+
required: false,
|
226
|
+
default: ''
|
223
227
|
}
|
224
228
|
},
|
225
229
|
data() {
|