pcm-shared-components 0.0.196 → 0.0.198

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.
@@ -40,6 +40,7 @@ export const CurrencyTextInput = props => {
40
40
  error,
41
41
  helperText,
42
42
  disabled,
43
+ textColor,
43
44
  theme
44
45
  } = props;
45
46
  const compTheme = theme ? theme : useTheme();
@@ -173,6 +174,11 @@ export const CurrencyTextInput = props => {
173
174
  onChange: event => {
174
175
  handleOnChange(event);
175
176
  },
177
+ sx: {
178
+ input: {
179
+ color: textColor
180
+ }
181
+ },
176
182
  inputProps: {
177
183
  autoComplete: "new-password",
178
184
  style: {
@@ -210,12 +216,16 @@ CurrencyTextInput.defaultProps = {
210
216
  error: false,
211
217
  disabled: false,
212
218
  helperText: '',
219
+ textColor: 'inherit',
213
220
  theme: undefined
214
221
  };
215
222
  CurrencyTextInput.propTypes = {
216
223
  /** Unique id of the component */
217
224
  id: PropTypes.string,
218
225
 
226
+ /** The text color*/
227
+ textColor: PropTypes.string,
228
+
219
229
  /** Name of the target often used to update state*/
220
230
  name: PropTypes.string,
221
231
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pcm-shared-components",
3
- "version": "0.0.196",
3
+ "version": "0.0.198",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "babel": {