@eturnity/eturnity_reusable_components 1.2.39-EPDM-5626.1 → 1.2.39-EPDM-5626.3
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
@@ -74,7 +74,7 @@ const InputLabel = styled('div', labelAttrs)`
|
|
74
74
|
};
|
75
75
|
|
76
76
|
font-size: ${(props) => (props.fontSize ? props.fontSize : '13px')};
|
77
|
-
font-family: 'Lato-Bold',Arial;
|
77
|
+
font-family: 'Lato-Bold', Arial;
|
78
78
|
`
|
79
79
|
|
80
80
|
const LabelWrapper = styled.div`
|
@@ -133,7 +133,7 @@ const InputContainer = styled('input', inputProps)`
|
|
133
133
|
: props.fontColor
|
134
134
|
? props.fontColor + ' !important'
|
135
135
|
: props.theme.colors.black};
|
136
|
-
|
136
|
+
|
137
137
|
width: ${(props) => (props.inputWidth ? props.inputWidth : '100%')};
|
138
138
|
min-width: ${(props) => (props.minWidth ? props.minWidth : 'unset')};
|
139
139
|
max-height: ${(props) => props.inputHeight};
|
@@ -141,7 +141,7 @@ const InputContainer = styled('input', inputProps)`
|
|
141
141
|
font-weight: 400;
|
142
142
|
cursor: ${(props) => (props.isDisabled ? 'not-allowed' : 'auto')};
|
143
143
|
background-color: ${(props) =>
|
144
|
-
props.isDisabled ? props.theme.colors.grey5 :
|
144
|
+
props.isDisabled ? props.theme.colors.grey5 :
|
145
145
|
props.backgroundColor ? props.backgroundColor+' !important' :
|
146
146
|
props.theme.colors.white};
|
147
147
|
&::placeholder {
|
@@ -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.primary};
|
142
|
+
background: ${(props) => props.checkmarkColor ? props.checkmarkColor : props.theme.colors.primary};
|
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() {
|