-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix correct amount FormStatus / GlobalStatus messages to show up
- Loading branch information
1 parent
88f003f
commit 63d04ee
Showing
2 changed files
with
72 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
packages/dnb-eufemia/src/components/input-masked/InputMaskedProps____.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
import PropTypes from 'prop-types' | ||
import Input, { inputPropTypes } from '../input/Input' | ||
|
||
export const maskedPropTypes = { | ||
mask: PropTypes.oneOfType([ | ||
PropTypes.object, | ||
PropTypes.array, | ||
PropTypes.func, | ||
]), | ||
number_mask: PropTypes.oneOfType([ | ||
PropTypes.string, | ||
PropTypes.bool, | ||
PropTypes.object, | ||
]), | ||
currency_mask: PropTypes.oneOfType([ | ||
PropTypes.string, | ||
PropTypes.bool, | ||
PropTypes.object, | ||
]), | ||
mask_options: PropTypes.oneOfType([PropTypes.string, PropTypes.object]), | ||
number_format: PropTypes.oneOfType([PropTypes.string, PropTypes.object]), | ||
locale: PropTypes.string, | ||
as_currency: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]), | ||
as_number: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]), | ||
as_percent: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]), | ||
show_mask: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]), | ||
show_guide: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]), | ||
pipe: PropTypes.func, | ||
keep_char_positions: PropTypes.oneOfType([ | ||
PropTypes.string, | ||
PropTypes.bool, | ||
]), | ||
placeholder_char: PropTypes.string, | ||
inner_ref: PropTypes.object, | ||
|
||
on_change: PropTypes.func, | ||
on_submit: PropTypes.func, | ||
on_focus: PropTypes.func, | ||
on_blur: PropTypes.func, | ||
on_submit_focus: PropTypes.func, | ||
on_submit_blur: PropTypes.func, | ||
|
||
...inputPropTypes, | ||
} | ||
|
||
export const maskedDefaultProps = { | ||
...Input.defaultProps, | ||
|
||
mask: [], | ||
number_mask: null, | ||
currency_mask: null, | ||
mask_options: null, | ||
number_format: null, | ||
as_currency: null, | ||
as_number: null, | ||
as_percent: null, | ||
locale: null, | ||
show_mask: false, | ||
show_guide: true, | ||
pipe: null, | ||
keep_char_positions: false, | ||
placeholder_char: '_', | ||
inner_ref: null, | ||
|
||
on_change: null, | ||
on_submit: null, | ||
on_focus: null, | ||
on_blur: null, | ||
on_submit_focus: null, | ||
on_submit_blur: null, | ||
} |