@eturnity/eturnity_reusable_components 7.8.2 → 7.8.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
@@ -43,7 +43,6 @@
|
|
43
43
|
v-for="(item, index) in options"
|
44
44
|
:key="item.value"
|
45
45
|
tabindex="0"
|
46
|
-
:textWrap="textWrap"
|
47
46
|
@click.stop="onSelect({ item: item, hasChildren: hasChildren(item) })"
|
48
47
|
@keyup.enter="
|
49
48
|
onSelect({ item: item, hasChildren: hasChildren(item) })
|
@@ -196,9 +195,10 @@ const OptionsContainer = styled('div', OptionsContainerAttrs)`
|
|
196
195
|
max-height: 220px;
|
197
196
|
overflow: auto;
|
198
197
|
height: max-content;
|
198
|
+
${(props) => props.textWrap ? 'white-space: normal' : 'white-space: nowrap'};
|
199
199
|
`
|
200
200
|
|
201
|
-
const optionAttrs = { isDisabled: Boolean
|
201
|
+
const optionAttrs = { isDisabled: Boolean }
|
202
202
|
const OptionItem = styled('div', optionAttrs)`
|
203
203
|
padding: 12px;
|
204
204
|
cursor: ${(props) => (props.isDisabled ? 'not-allowed' : 'pointer')};
|
@@ -206,7 +206,6 @@ const OptionItem = styled('div', optionAttrs)`
|
|
206
206
|
position: relative;
|
207
207
|
${(props) => (props.isDisabled ? `background-color: ${ props.theme.colors.grey5 }!important` : '')};
|
208
208
|
${(props) => (props.isDisabled ? `color: ${ props.theme.colors.grey2 }` : '')};
|
209
|
-
${(props) => props.textWrap ? '' : 'white-space: nowrap'};
|
210
209
|
|
211
210
|
&:hover {
|
212
211
|
background-color: #ebeef4;
|