@eturnity/eturnity_reusable_components 1.1.4 → 1.1.7

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.4",
3
+ "version": "1.1.7",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -17,6 +17,7 @@
17
17
  :rows="rowHeight"
18
18
  :value="value"
19
19
  :disabled="isDisabled"
20
+ :fontSize="fontSize"
20
21
  @input="onChangeHandler"
21
22
  />
22
23
  </input-wrapper>
@@ -56,7 +57,7 @@ const LabelWrapper = styled.div`
56
57
  margin-bottom: 12px;
57
58
  `
58
59
 
59
- const inputProps = { isError: Boolean, disabled: Boolean }
60
+ const inputProps = { isError: Boolean, disabled: Boolean, fontSize: String }
60
61
  const InputContainer = styled("textarea", inputProps)`
61
62
  border: ${(props) =>
62
63
  props.isError
@@ -65,7 +66,7 @@ const InputContainer = styled("textarea", inputProps)`
65
66
  padding: ${(props) =>
66
67
  props.hasUnit ? "11px 40px 11px 10px" : "11px 5px 11px 10px"};
67
68
  border-radius: 4px;
68
- font-size: 16px;
69
+ font-size: ${(props) => (props.fontSize ? props.fontSize : "16px")};
69
70
  color: ${(props) => props.theme.colors.black};
70
71
  width: 100%;
71
72
  max-width: 100%;
@@ -99,6 +100,10 @@ const ErrorMessage = styled.div`
99
100
  bottom: -18px;
100
101
  `
101
102
 
103
+ const InputLabel = styled.div`
104
+ font-weight: bold;
105
+ `
106
+
102
107
  export default {
103
108
  name: "text-area-input",
104
109
  components: {
@@ -108,6 +113,7 @@ export default {
108
113
  ErrorMessage,
109
114
  InfoText,
110
115
  LabelWrapper,
116
+ InputLabel,
111
117
  },
112
118
  props: {
113
119
  placeholder: {
@@ -146,6 +152,10 @@ export default {
146
152
  label: {
147
153
  required: false,
148
154
  },
155
+ fontSize: {
156
+ required: false,
157
+ default: "16px",
158
+ },
149
159
  },
150
160
  methods: {
151
161
  onChangeHandler($event) {