@eturnity/eturnity_reusable_components 1.2.34-3d-master.2 → 1.2.34-3d-master.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.34-3d-master.2",
3
+ "version": "1.2.34-3d-master.5",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" shape-rendering="geometricPrecision" text-rendering="geometricPrecision"><path d="M3.32 2.668c-.472.22-.937.707-1.09 1.142-.17.478-.163 40.686.006 41.27.08.277.228.512.485.768.852.852 2.09.819 2.901-.079.584-.646.542 1.105.519-21.492L6.12 3.96l-.233-.42c-.527-.951-1.609-1.319-2.567-.872m5.5 9.512.02 9.38H36.2l.02-9.38.021-9.38H8.799l.021 9.38m23.74.02v5.48h-20V6.72h20v5.48M13.016 29.362c-2.807 1.987-5.093 3.643-5.08 3.678.026.073 10.119 8.16 10.182 8.16.022 0 .049-1.125.061-2.5l.021-2.5 14.02-.02 14.02-.02v-5.52H18.162l-.021-2.446-.021-2.445-5.104 3.613" fill-rule="evenodd"/></svg>
@@ -333,7 +333,6 @@ export default {
333
333
  },
334
334
  borderColor:{
335
335
  required:false,
336
- default: false
337
336
  },
338
337
  textAlign: {
339
338
  required: false,
@@ -21,6 +21,7 @@
21
21
  :isError="isError"
22
22
  :inputWidth="inputWidth"
23
23
  :minWidth="minWidth"
24
+ :inputHeight="inputHeight"
24
25
  :value="value"
25
26
  @input="onChangeHandler"
26
27
  @blur="onInputBlur"
@@ -71,7 +72,7 @@ const InputLabel = styled('div', labelAttrs)`
71
72
  props.labelFontColor:
72
73
  props.theme.colors.eturnityGrey
73
74
  };
74
-
75
+
75
76
  font-size: ${(props) => (props.fontSize ? props.fontSize : '13px')};
76
77
  font-weight: 700;
77
78
  `
@@ -102,6 +103,7 @@ const inputProps = {
102
103
  fontColor: String,
103
104
  backgroundColor:String,
104
105
  borderColor:String,
106
+ inputHeight:String,
105
107
  }
106
108
  const InputContainer = styled('input', inputProps)`
107
109
  border: ${(props) =>
@@ -134,6 +136,7 @@ const InputContainer = styled('input', inputProps)`
134
136
 
135
137
  width: ${(props) => (props.inputWidth ? props.inputWidth : '100%')};
136
138
  min-width: ${(props) => (props.minWidth ? props.minWidth : 'unset')};
139
+ max-height: ${(props) => props.inputHeight};
137
140
  box-sizing: border-box; // to allow width of 100% with padding
138
141
  font-weight: 500;
139
142
  cursor: ${(props) => (props.isDisabled ? 'not-allowed' : 'auto')};
@@ -228,6 +231,10 @@ export default {
228
231
  required: false,
229
232
  default: null
230
233
  },
234
+ inputHeight: {
235
+ required: false,
236
+ default: null
237
+ },
231
238
  minWidth: {
232
239
  required: false,
233
240
  default: null
@@ -25,6 +25,7 @@
25
25
  <selectButton
26
26
  @click="toggleDropdown"
27
27
  :isActive="isActive"
28
+ :selectHeight="selectHeight"
28
29
  :bgColor="buttonBgColor || colorMode=='dark'?'transparentBlack1':'white'"
29
30
  :fontColor="buttonFontColor || colorMode=='dark'?'white':'black'"
30
31
 
@@ -105,7 +106,7 @@ const LabelWrapper = styled.div`
105
106
  align-items: center;
106
107
  justify-content: start;
107
108
  `
108
- const selectButtonAttrs={bgColor:String,fontColor:String,isActive:Boolean}
109
+ const selectButtonAttrs={bgColor:String,fontColor:String,isActive:Boolean,selectHeight:String}
109
110
  const selectButton = styled('div',selectButtonAttrs)`
110
111
  position:relative;
111
112
  box-sizing: border-box;
@@ -117,6 +118,7 @@ const selectButton = styled('div',selectButtonAttrs)`
117
118
  min-height:36px;
118
119
  display: flex;
119
120
  align-items: center;
121
+ max-height:${props=>props.selectHeight};
120
122
  border:1px solid ${(props)=>props.theme.colors.grey4}
121
123
  background-color:${(props) => props.theme.colors[props.bgColor]?props.theme.colors[props.bgColor]:props.bgColor};
122
124
  color:${(props) => props.theme.colors[props.fontColor]?props.theme.colors[props.fontColor]:props.fontColor};
@@ -139,7 +141,7 @@ const selectDropdown = styled('div',selectDropdownAttrs)`
139
141
  background-color:${(props) => props.theme.colors[props.bgColor]?props.theme.colors[props.bgColor]:props.bgColor};
140
142
  color:${(props) => props.theme.colors[props.fontColor]?props.theme.colors[props.fontColor]:props.fontColor};
141
143
  max-height:300px;
142
- overflow-y:scroll;
144
+ overflow-y:auto;
143
145
  `
144
146
  const DropdownWrapper=styled('div')`
145
147
  position:relative;
@@ -178,6 +180,10 @@ const InputWrapper = styled('div', inputAttrs)`
178
180
  required: false,
179
181
  default: null
180
182
  },
183
+ selectHeight: {
184
+ required: false,
185
+ default: null
186
+ },
181
187
  optionWidth: {
182
188
  required: false,
183
189
  default: null