@eturnity/eturnity_reusable_components 1.1.32 → 1.1.33

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.32",
3
+ "version": "1.1.33",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -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,