@eturnity/eturnity_reusable_components 1.2.52 → 1.2.53

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.52",
3
+ "version": "1.2.53",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -33,6 +33,7 @@
33
33
  :type="inputTypeData"
34
34
  :fontColor="fontColor"
35
35
  :backgroundColor="backgroundColor"
36
+ :disabledBackgroundColor="disabledBackgroundColor"
36
37
  />
37
38
  <icon-wrapper
38
39
  v-if="inputType === 'password' && !isError"
@@ -104,6 +105,7 @@ const inputProps = {
104
105
  backgroundColor:String,
105
106
  borderColor:String,
106
107
  inputHeight:String,
108
+ disabledBackgroundColor:String
107
109
  }
108
110
  const InputContainer = styled('input', inputProps)`
109
111
  border: ${(props) =>
@@ -141,8 +143,10 @@ const InputContainer = styled('input', inputProps)`
141
143
  font-weight: 400;
142
144
  cursor: ${(props) => (props.isDisabled ? 'not-allowed' : 'auto')};
143
145
  background-color: ${(props) =>
146
+ props.isDisabled ?
147
+ (props.disabledBackgroundColor ? props.disabledBackgroundColor+' !important'
148
+ : props.theme.colors.grey5) :
144
149
  props.backgroundColor ? props.backgroundColor+' !important' :
145
- props.isDisabled ? props.theme.colors.grey5 :
146
150
  props.theme.colors.white};
147
151
  &::placeholder {
148
152
  color: ${(props) => props.theme.colors.grey2};
@@ -280,6 +284,10 @@ export default {
280
284
  required:false,
281
285
  default:'white'
282
286
  },
287
+ disabledBackgroundColor:{
288
+ required:false,
289
+ default:null
290
+ },
283
291
  fontColor:{
284
292
  required:false,
285
293
  default:'black'