@eturnity/eturnity_reusable_components 1.2.82 → 1.2.84
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
@@ -149,9 +149,9 @@ const InputContainer = styled('input', inputProps)`
|
|
149
149
|
? '1px solid ' + props.theme.colors[props.borderColor]
|
150
150
|
: '1px solid ' + props.borderColor
|
151
151
|
: '1px solid ' + props.theme.colors.grey4};
|
152
|
-
|
153
|
-
|
154
|
-
padding
|
152
|
+
height: ${(props) => props.inputHeight};
|
153
|
+
max-height: ${(props) => props.inputHeight};
|
154
|
+
padding: 0 10px;
|
155
155
|
padding-right: ${({ slotSize, isError, showLinearUnitName }) =>
|
156
156
|
slotSize
|
157
157
|
? isError && !showLinearUnitName
|
@@ -160,7 +160,10 @@ const InputContainer = styled('input', inputProps)`
|
|
160
160
|
: isError && !showLinearUnitName
|
161
161
|
? '24px'
|
162
162
|
: '5px'};
|
163
|
-
border-radius: ${props=>
|
163
|
+
border-radius: ${(props) =>
|
164
|
+
props.isInteractive && props.alignItems != 'vertical'
|
165
|
+
? '0 4px 4px 0'
|
166
|
+
: '4px'};
|
164
167
|
text-align: ${(props) => props.textAlign};
|
165
168
|
cursor: ${(props) => (props.isDisabled ? 'not-allowed' : 'auto')};
|
166
169
|
font-size: ${(props) => (props.fontSize ? props.fontSize : '13px')};
|
@@ -182,7 +185,7 @@ const InputContainer = styled('input', inputProps)`
|
|
182
185
|
background-color: ${(props) =>
|
183
186
|
props.isDisabled ? props.theme.colors.grey5 : '#fff'};
|
184
187
|
box-sizing: border-box;
|
185
|
-
|
188
|
+
|
186
189
|
&::placeholder {
|
187
190
|
color: ${(props) => props.theme.colors.grey2};
|
188
191
|
}
|
@@ -253,8 +256,8 @@ const LabelSlotWrapper = styled('div', inputProps)`
|
|
253
256
|
align-items: center;
|
254
257
|
cursor: ${(props) => (props.isInteractive ? 'ew-resize' : 'auto')};
|
255
258
|
border: ${(props) =>
|
256
|
-
props.alignItems==
|
257
|
-
?
|
259
|
+
props.alignItems == 'vertical'
|
260
|
+
? 'none'
|
258
261
|
: props.isError
|
259
262
|
? '1px solid ' + props.theme.colors.red
|
260
263
|
: props.noBorder
|
@@ -265,7 +268,7 @@ const LabelSlotWrapper = styled('div', inputProps)`
|
|
265
268
|
: '1px solid ' + props.borderColor
|
266
269
|
: '1px solid ' + props.theme.colors.grey4};
|
267
270
|
border-radius: 4px 0 0 4px;
|
268
|
-
border-right:none;
|
271
|
+
border-right: none;
|
269
272
|
`
|
270
273
|
|
271
274
|
const LabelText = styled('div', inputProps)`
|
@@ -329,8 +332,7 @@ export default {
|
|
329
332
|
default: null
|
330
333
|
},
|
331
334
|
inputHeight: {
|
332
|
-
required: false
|
333
|
-
default: null
|
335
|
+
required: false
|
334
336
|
},
|
335
337
|
value: {
|
336
338
|
required: true,
|
@@ -176,7 +176,7 @@ const SelectButtonWrapperAttrs = {
|
|
176
176
|
disabled: Boolean
|
177
177
|
}
|
178
178
|
const SelectButtonWrapper = styled('div', SelectButtonWrapperAttrs)`
|
179
|
-
${(props) => (props.disabled ? 'cursor: not-allowed' : '')};
|
179
|
+
${(props) => (props.disabled ? 'cursor: not-allowed' : 'cursor: pointer')};
|
180
180
|
`
|
181
181
|
|
182
182
|
const selectButtonAttrs = {
|
@@ -192,7 +192,8 @@ const selectButton = styled('div', selectButtonAttrs)`
|
|
192
192
|
position: relative;
|
193
193
|
box-sizing: border-box;
|
194
194
|
border-radius: 4px;
|
195
|
-
padding: ${(props) =>
|
195
|
+
padding: ${(props) =>
|
196
|
+
props.isSearchBarVisible ? '0 10px 0 0' : '0px 10px 0 15px'};
|
196
197
|
text-align: left;
|
197
198
|
border-radius: 4px;
|
198
199
|
min-height: 36px;
|
@@ -5,7 +5,7 @@
|
|
5
5
|
v-if="label && labelAlign === 'left'"
|
6
6
|
:hasInfoMessage="!!infoTextMessage"
|
7
7
|
>
|
8
|
-
<label-text :size="size">{{ label }}</label-text>
|
8
|
+
<label-text :size="size" :fontColor="fontColor">{{ label }}</label-text>
|
9
9
|
<info-text
|
10
10
|
v-if="infoTextMessage"
|
11
11
|
:text="infoTextMessage"
|