@eturnity/eturnity_reusable_components 6.33.1-EPDM-7762.0 → 6.33.1-EPDM-7762.1
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
@@ -14,9 +14,11 @@
|
|
14
14
|
labelFontColor || colorMode == 'dark' ? 'white' : 'eturnityGrey'
|
15
15
|
"
|
16
16
|
:fontSize="fontSize"
|
17
|
-
>{{ label }}
|
18
|
-
|
19
|
-
|
17
|
+
>{{ label }}
|
18
|
+
<optionalLabel v-if="labelOptional">
|
19
|
+
({{ $gettext('Optional') }})</optionalLabel
|
20
|
+
>
|
21
|
+
</input-label>
|
20
22
|
<info-text
|
21
23
|
v-if="infoTextMessage"
|
22
24
|
:text="infoTextMessage"
|
@@ -151,7 +153,7 @@ const Selector = styled.div`
|
|
151
153
|
width: 100%;
|
152
154
|
`
|
153
155
|
|
154
|
-
const labelAttrs = { fontSize: String }
|
156
|
+
const labelAttrs = { fontSize: String, fontColor: String }
|
155
157
|
const InputLabel = styled('div', labelAttrs)`
|
156
158
|
color: ${(props) =>
|
157
159
|
props.theme.colors[props.fontColor]
|
@@ -162,7 +164,6 @@ const InputLabel = styled('div', labelAttrs)`
|
|
162
164
|
`
|
163
165
|
const optionalLabel = styled.span`
|
164
166
|
font-weight: 300;
|
165
|
-
|
166
167
|
`
|
167
168
|
const inputProps = { selectWidth: String, optionWidth: String }
|
168
169
|
const Container = styled('div', inputProps)`
|
@@ -198,8 +199,7 @@ const selectButton = styled('div', selectButtonAttrs)`
|
|
198
199
|
position: relative;
|
199
200
|
box-sizing: border-box;
|
200
201
|
border-radius: 4px;
|
201
|
-
padding: ${(props) =>
|
202
|
-
props.isSearchBarVisible ? '0' : '0px 0px 0 15px'};
|
202
|
+
padding: ${(props) => (props.isSearchBarVisible ? '0' : '0px 0px 0 15px')};
|
203
203
|
text-align: left;
|
204
204
|
border-radius: 4px;
|
205
205
|
min-height: 36px;
|