@eturnity/eturnity_reusable_components 1.2.48-EPDM-5846.4 → 1.2.48-EPDM-5846.5

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": "1.2.48-EPDM-5846.4",
3
+ "version": "1.2.48-EPDM-5846.5",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -42,9 +42,9 @@
42
42
  :value="textSearch"
43
43
  @keydown.stop="onKeyDown"
44
44
  @input-change="searchChange" />
45
- <div v-else>
45
+ <selector v-else>
46
46
  <slot name="selector" :selectedValue="selectedValue"></slot>
47
- </div>
47
+ </selector>
48
48
  <Caret @click.stop="toggleCaretDropdown" >
49
49
  <icon v-if="isDropdownOpen" name="arrow_up" size="12px" :color="caretColor || colorMode=='dark'?'white':'transparentBlack1'"/>
50
50
  <icon v-else name="arrow_down" size="12px" :color="caretColor || colorMode=='dark'?'white':'transparentBlack1'"/>
@@ -95,14 +95,21 @@
95
95
  import icon from '../../icon'
96
96
  import inputText from '../inputText'
97
97
 
98
- const Caret=styled.div`
99
- position:absolute;
100
- display:flex;
101
- align-items:center;
102
- height:100%;
103
- right:15px;
98
+ const Caret = styled.div`
99
+ display: flex;
100
+ align-items: center;
101
+ justify-content: center;
102
+ width: 30px;
103
+ min-width: 30px;
104
+ height: 100%;
104
105
  padding-top: 5px;
105
- `
106
+ cursor: pointer;
107
+ margin-left: auto;
108
+ `
109
+
110
+ const Selector = styled.div`
111
+ width: 100%;
112
+ `
106
113
 
107
114
  const labelAttrs = { fontSize: String }
108
115
  const InputLabel = styled('div', labelAttrs)`
@@ -138,8 +145,7 @@ const selectButton = styled('div',selectButtonAttrs)`
138
145
  text-align:left;
139
146
  border-radius:4px;
140
147
  min-height:36px;
141
- display: grid;
142
- grid-template-columns:auto 40px;
148
+ display: flex;
143
149
  align-items: center;
144
150
  max-height:${props=>props.selectHeight};
145
151
  border:1px solid ${(props) => props.hasError ? props.theme.colors.red : props.theme.colors.grey4}
@@ -272,6 +278,7 @@ const InputWrapper = styled('div', inputAttrs)`
272
278
  DropdownWrapper,
273
279
  icon,
274
280
  Caret,
281
+ Selector,
275
282
  inputText
276
283
  },
277
284