pcm-shared-components 0.0.177 → 0.0.178
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.
|
@@ -21,6 +21,8 @@ let debounce;
|
|
|
21
21
|
|
|
22
22
|
export const CurrencyTextInput = props => {
|
|
23
23
|
const {
|
|
24
|
+
id,
|
|
25
|
+
name,
|
|
24
26
|
value,
|
|
25
27
|
label,
|
|
26
28
|
variant,
|
|
@@ -164,7 +166,8 @@ export const CurrencyTextInput = props => {
|
|
|
164
166
|
return /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
165
167
|
theme: defaultTheme
|
|
166
168
|
}, /*#__PURE__*/React.createElement(TextField, {
|
|
167
|
-
id:
|
|
169
|
+
id: id,
|
|
170
|
+
name: name,
|
|
168
171
|
className: ` ${className}`,
|
|
169
172
|
fullWidth: fullWidth,
|
|
170
173
|
label: label,
|
|
@@ -190,6 +193,8 @@ export const CurrencyTextInput = props => {
|
|
|
190
193
|
};
|
|
191
194
|
export default CurrencyTextInput;
|
|
192
195
|
CurrencyTextInput.defaultProps = {
|
|
196
|
+
id: '',
|
|
197
|
+
name: '',
|
|
193
198
|
value: 0,
|
|
194
199
|
label: 'Some Label',
|
|
195
200
|
variant: 'outlined',
|
|
@@ -208,6 +213,12 @@ CurrencyTextInput.defaultProps = {
|
|
|
208
213
|
theme: undefined
|
|
209
214
|
};
|
|
210
215
|
CurrencyTextInput.propTypes = {
|
|
216
|
+
/** Unique id of the component */
|
|
217
|
+
id: PropTypes.string,
|
|
218
|
+
|
|
219
|
+
/** Name of the target often used to update state*/
|
|
220
|
+
name: PropTypes.string,
|
|
221
|
+
|
|
211
222
|
/** Value to be enter and display in input */
|
|
212
223
|
value: PropTypes.string,
|
|
213
224
|
|