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