@eturnity/eturnity_reusable_components 1.1.31 → 1.1.34

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.1.31",
3
+ "version": "1.1.34",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -42,6 +42,7 @@ Default.args = {
42
42
  disabled: false,
43
43
  value: "",
44
44
  inputWidth: "200px",
45
+ minWidth: "150px",
45
46
  unitName: "pc",
46
47
  isError: false,
47
48
  numberPrecision: 0,
@@ -18,6 +18,7 @@
18
18
  :placeholder="placeholder"
19
19
  :isError="isError"
20
20
  :inputWidth="inputWidth"
21
+ :minWidth="minWidth"
21
22
  :value="formatWithCurrency(value)"
22
23
  :hasLength="!!value && !!value.length"
23
24
  @blur="onInputBlur($event)"
@@ -48,6 +49,7 @@
48
49
  // placeholder="Enter distance"
49
50
  // :isError="false" //default is false
50
51
  // inputWidth="150px" //by default, this is 100%
52
+ // minWidth="100px"
51
53
  // :numberPrecision="3"
52
54
  // unitName="pc"
53
55
  // :value="inputValue" //required -- String
@@ -79,6 +81,7 @@ const inputProps = {
79
81
  isError: Boolean,
80
82
  hasUnit: Boolean,
81
83
  inputWidth: String,
84
+ minWidth: String,
82
85
  hasLength: Boolean,
83
86
  isDisabled: Boolean,
84
87
  noBorder: Boolean,
@@ -103,6 +106,7 @@ const InputContainer = styled("input", inputProps)`
103
106
  color: ${(props) =>
104
107
  props.isError ? props.theme.colors.red : props.theme.colors.black};
105
108
  width: ${(props) => (props.inputWidth ? props.inputWidth : "100%")};
109
+ min-width: ${(props) => (props.minWidth ? props.minWidth : "unset")};
106
110
  background-color: ${(props) =>
107
111
  props.isDisabled ? props.theme.colors.grey5 : "#fff"};
108
112
  box-sizing: border-box;
@@ -189,6 +193,10 @@ export default {
189
193
  required: false,
190
194
  default: null,
191
195
  },
196
+ minWidth: {
197
+ required: false,
198
+ default: null,
199
+ },
192
200
  value: {
193
201
  required: true,
194
202
  default: null,
@@ -26,6 +26,7 @@ const Template = (args, { argTypes }) => ({
26
26
  // label="Question 5"
27
27
  // alignItems="horizontal" // horizontal, vertical
28
28
  // inputWidth="250px"
29
+ // minWidth="100px"
29
30
  // />
30
31
  })
31
32
 
@@ -35,6 +36,7 @@ Default.args = {
35
36
  disabled: false,
36
37
  value: "",
37
38
  inputWidth: "200px",
39
+ minWidth: "10ch",
38
40
  unitName: "pc",
39
41
  isError: false,
40
42
  textAlign: "left",
@@ -18,6 +18,7 @@
18
18
  :placeholder="placeholder"
19
19
  :isError="isError"
20
20
  :inputWidth="inputWidth"
21
+ :minWidth="minWidth"
21
22
  :value="value"
22
23
  @input="onChangeHandler"
23
24
  :noBorder="noBorder"
@@ -53,6 +54,7 @@ const LabelWrapper = styled.div`
53
54
  const inputProps = {
54
55
  isError: Boolean,
55
56
  inputWidth: String,
57
+ minWidth: String,
56
58
  noBorder: Boolean,
57
59
  isDisabled: Boolean,
58
60
  }
@@ -72,6 +74,7 @@ const InputContainer = styled("input", inputProps)`
72
74
  color: ${(props) =>
73
75
  props.isError ? props.theme.colors.red : props.theme.colors.black};
74
76
  width: ${(props) => (props.inputWidth ? props.inputWidth : "100%")};
77
+ min-width: ${(props) => (props.minWidth ? props.minWidth : "unset")};
75
78
  box-sizing: border-box; // to allow width of 100% with padding
76
79
  font-weight: 500;
77
80
  cursor: ${(props) => (props.isDisabled ? "not-allowed" : "auto")};
@@ -119,6 +122,7 @@ export default {
119
122
  // label="Question 5"
120
123
  // alignItems="horizontal" // horizontal, vertical
121
124
  // inputWidth="250px"
125
+ // minWidth="100px"
122
126
  // />
123
127
  name: "input-text",
124
128
  components: {
@@ -147,6 +151,10 @@ export default {
147
151
  required: false,
148
152
  default: null,
149
153
  },
154
+ minWidth: {
155
+ required: false,
156
+ default: null,
157
+ },
150
158
  value: {
151
159
  required: true,
152
160
  default: null,
@@ -82,7 +82,7 @@ const TableContainer = styled.table`
82
82
  background-color: ${(props) => props.theme.colors.white};
83
83
  cursor: pointer;
84
84
 
85
- .table-dropdown {
85
+ .table-dropdown-item {
86
86
  background-color: ${(props) => props.theme.colors.grey5};
87
87
  }
88
88
 
@@ -319,8 +319,6 @@ const TableContainer = styled.table`
319
319
  font-size: 13px;
320
320
  padding: 5px 10px;
321
321
  background: #fff;
322
- min-width: max-content;
323
- min-width: 150px; // Safari/Firefox backup
324
322
 
325
323
  &:focus {
326
324
  background: ${(props) => props.theme.colors.grey5};