pcm-shared-components 0.0.179 → 0.0.180

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.
@@ -37,6 +37,9 @@ export const CurrencyTextInput = props => {
37
37
  useThousandSeparator,
38
38
  fontSize,
39
39
  textPadding,
40
+ error,
41
+ helperText,
42
+ disabled,
40
43
  theme
41
44
  } = props;
42
45
  const compTheme = theme ? theme : useTheme();
@@ -160,6 +163,9 @@ export const CurrencyTextInput = props => {
160
163
  }, /*#__PURE__*/React.createElement(TextField, {
161
164
  id: id,
162
165
  name: name,
166
+ error: error,
167
+ helperText: helperText,
168
+ disabled: disabled,
163
169
  className: ` ${className}`,
164
170
  fullWidth: fullWidth,
165
171
  label: label,
@@ -201,6 +207,9 @@ CurrencyTextInput.defaultProps = {
201
207
  textAlign: 'right',
202
208
  fontSize: 16,
203
209
  textPadding: 4,
210
+ error: false,
211
+ disabled: false,
212
+ helperText: '',
204
213
  theme: undefined
205
214
  };
206
215
  CurrencyTextInput.propTypes = {
@@ -219,6 +228,15 @@ CurrencyTextInput.propTypes = {
219
228
  /** Controls the look of the text field*/
220
229
  variant: PropTypes.oneOf(['filled', 'outlined', 'standard']),
221
230
 
231
+ /** Determines if the text field will be in an error state*/
232
+ error: PropTypes.bool,
233
+
234
+ /** Determines if the text field is disabled of not*/
235
+ disabled: PropTypes.bool,
236
+
237
+ /** Helper text to display below the field*/
238
+ helperText: PropTypes.string,
239
+
222
240
  /** Determines if the text field will be full width or fit content*/
223
241
  fullWidth: PropTypes.bool,
224
242
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pcm-shared-components",
3
- "version": "0.0.179",
3
+ "version": "0.0.180",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "babel": {