@zealicsolutions/web-ui 1.0.30 → 1.0.31-beta.1
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/dist/cjs/containers/types/moleculeTypes.d.ts +44 -23
- package/dist/cjs/index.js +491 -491
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/molecules/BasicTextField/BasicTextField.d.ts +3 -0
- package/dist/cjs/molecules/BasicTextField/BasicTextField.stories.d.ts +6 -1
- package/dist/cjs/molecules/CurrencyInputtField/CurrencyInputField.d.ts +3 -10
- package/dist/cjs/molecules/CurrencyInputtField/CurrencyInputField.stories.d.ts +6 -1
- package/dist/cjs/molecules/DatePicker/DatePicker.d.ts +16 -5
- package/dist/cjs/molecules/DatePicker/DatePicker.stories.d.ts +2 -0
- package/dist/cjs/molecules/EmailInputField/EmailInputField.d.ts +22 -8
- package/dist/cjs/molecules/EmailInputField/EmailInputField.stories.d.ts +6 -1
- package/dist/cjs/molecules/NumericInputField/NumericInputField.d.ts +23 -13
- package/dist/cjs/molecules/NumericInputField/NumericInputField.stories.d.ts +7 -1
- package/dist/cjs/molecules/PhoneNumberInputField/PhoneNumberInputField.d.ts +30 -9
- package/dist/cjs/molecules/PhoneNumberInputField/PhoneNumberInputField.stories.d.ts +7 -1
- package/dist/cjs/molecules/Rating/Rating.d.ts +25 -7
- package/dist/cjs/molecules/Rating/Rating.stories.d.ts +8 -2
- package/dist/cjs/molecules/Select/Select.d.ts +21 -6
- package/dist/cjs/molecules/Select/Select.stories.d.ts +3 -2
- package/dist/cjs/molecules/Slider/Slider.d.ts +17 -8
- package/dist/cjs/molecules/Slider/Slider.stories.d.ts +8 -2
- package/dist/cjs/molecules/Switch/Switch.d.ts +15 -18
- package/dist/cjs/molecules/Switch/Switch.stories.d.ts +7 -1
- package/dist/esm/_virtual/index6.js +1 -1
- package/dist/esm/_virtual/index7.js +1 -1
- package/dist/esm/containers/types/moleculeTypes.d.ts +44 -23
- package/dist/esm/molecules/BaseMolecule.js +1 -1
- package/dist/esm/molecules/BaseMolecule.js.map +1 -1
- package/dist/esm/molecules/BasicTextField/BasicTextField.d.ts +3 -0
- package/dist/esm/molecules/BasicTextField/BasicTextField.js +1 -1
- package/dist/esm/molecules/BasicTextField/BasicTextField.js.map +1 -1
- package/dist/esm/molecules/BasicTextField/BasicTextField.stories.d.ts +6 -1
- package/dist/esm/molecules/CurrencyInputtField/CurrencyInputField.d.ts +3 -10
- package/dist/esm/molecules/CurrencyInputtField/CurrencyInputField.js +1 -1
- package/dist/esm/molecules/CurrencyInputtField/CurrencyInputField.js.map +1 -1
- package/dist/esm/molecules/CurrencyInputtField/CurrencyInputField.stories.d.ts +6 -1
- package/dist/esm/molecules/DatePicker/DatePicker.d.ts +16 -5
- package/dist/esm/molecules/DatePicker/DatePicker.js +1 -1
- package/dist/esm/molecules/DatePicker/DatePicker.js.map +1 -1
- package/dist/esm/molecules/DatePicker/DatePicker.stories.d.ts +2 -0
- package/dist/esm/molecules/EmailInputField/EmailInputField.d.ts +22 -8
- package/dist/esm/molecules/EmailInputField/EmailInputField.js +1 -1
- package/dist/esm/molecules/EmailInputField/EmailInputField.js.map +1 -1
- package/dist/esm/molecules/EmailInputField/EmailInputField.stories.d.ts +6 -1
- package/dist/esm/molecules/NumericInputField/NumericInputField.d.ts +23 -13
- package/dist/esm/molecules/NumericInputField/NumericInputField.js +1 -1
- package/dist/esm/molecules/NumericInputField/NumericInputField.js.map +1 -1
- package/dist/esm/molecules/NumericInputField/NumericInputField.stories.d.ts +7 -1
- package/dist/esm/molecules/PasswordSetup/PasswordSetup.js +1 -1
- package/dist/esm/molecules/PasswordSetup/PasswordSetup.js.map +1 -1
- package/dist/esm/molecules/PhoneNumberInputField/PhoneNumberInputField.d.ts +30 -9
- package/dist/esm/molecules/PhoneNumberInputField/PhoneNumberInputField.js +1 -1
- package/dist/esm/molecules/PhoneNumberInputField/PhoneNumberInputField.js.map +1 -1
- package/dist/esm/molecules/PhoneNumberInputField/PhoneNumberInputField.stories.d.ts +7 -1
- package/dist/esm/molecules/Rating/Rating.d.ts +25 -7
- package/dist/esm/molecules/Rating/Rating.js +1 -1
- package/dist/esm/molecules/Rating/Rating.js.map +1 -1
- package/dist/esm/molecules/Rating/Rating.stories.d.ts +8 -2
- package/dist/esm/molecules/Select/Select.d.ts +21 -6
- package/dist/esm/molecules/Select/Select.js +1 -1
- package/dist/esm/molecules/Select/Select.js.map +1 -1
- package/dist/esm/molecules/Select/Select.stories.d.ts +3 -2
- package/dist/esm/molecules/Slider/Slider.d.ts +17 -8
- package/dist/esm/molecules/Slider/Slider.js +1 -1
- package/dist/esm/molecules/Slider/Slider.js.map +1 -1
- package/dist/esm/molecules/Slider/Slider.stories.d.ts +8 -2
- package/dist/esm/molecules/Switch/Switch.d.ts +15 -18
- package/dist/esm/molecules/Switch/Switch.js +1 -1
- package/dist/esm/molecules/Switch/Switch.js.map +1 -1
- package/dist/esm/molecules/Switch/Switch.stories.d.ts +7 -1
- package/dist/esm/node_modules/@mui/material/Accordion/Accordion.js +1 -1
- package/dist/esm/node_modules/@mui/material/AccordionDetails/AccordionDetails.js +1 -1
- package/dist/esm/node_modules/@mui/material/AccordionSummary/AccordionSummary.js +1 -1
- package/dist/esm/node_modules/@mui/material/Alert/Alert.js +1 -1
- package/dist/esm/node_modules/@mui/material/AlertTitle/AlertTitle.js +1 -1
- package/dist/esm/node_modules/@mui/material/Backdrop/Backdrop.js +1 -1
- package/dist/esm/node_modules/@mui/material/Badge/Badge.js +1 -1
- package/dist/esm/node_modules/@mui/material/Box/Box.js +1 -1
- package/dist/esm/node_modules/@mui/material/Button/Button.js +1 -1
- package/dist/esm/node_modules/@mui/material/ButtonBase/ButtonBase.js +1 -1
- package/dist/esm/node_modules/@mui/material/ButtonBase/Ripple.js +1 -1
- package/dist/esm/node_modules/@mui/material/ButtonBase/TouchRipple.js +1 -1
- package/dist/esm/node_modules/@mui/material/Card/Card.js +1 -1
- package/dist/esm/node_modules/@mui/material/CardMedia/CardMedia.js +1 -1
- package/dist/esm/node_modules/@mui/material/Checkbox/Checkbox.js +1 -1
- package/dist/esm/node_modules/@mui/material/Chip/Chip.js +1 -1
- package/dist/esm/node_modules/@mui/material/CircularProgress/CircularProgress.js +1 -1
- package/dist/esm/node_modules/@mui/material/Collapse/Collapse.js +1 -1
- package/dist/esm/node_modules/@mui/material/CssBaseline/CssBaseline.js +1 -1
- package/dist/esm/node_modules/@mui/material/DefaultPropsProvider/DefaultPropsProvider.js +1 -1
- package/dist/esm/node_modules/@mui/material/Dialog/Dialog.js +1 -1
- package/dist/esm/node_modules/@mui/material/DialogActions/DialogActions.js +1 -1
- package/dist/esm/node_modules/@mui/material/DialogContent/DialogContent.js +1 -1
- package/dist/esm/node_modules/@mui/material/Divider/Divider.js +1 -1
- package/dist/esm/node_modules/@mui/material/Divider/dividerClasses.js +1 -1
- package/dist/esm/node_modules/@mui/material/Divider/dividerClasses.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/Drawer/Drawer.js +1 -1
- package/dist/esm/node_modules/@mui/material/Fade/Fade.js +1 -1
- package/dist/esm/node_modules/@mui/material/FilledInput/FilledInput.js +1 -1
- package/dist/esm/node_modules/@mui/material/FormControl/FormControl.js +1 -1
- package/dist/esm/node_modules/@mui/material/FormControlLabel/FormControlLabel.js +1 -1
- package/dist/esm/node_modules/@mui/material/FormGroup/FormGroup.js +1 -1
- package/dist/esm/node_modules/@mui/material/FormHelperText/FormHelperText.js +1 -1
- package/dist/esm/node_modules/@mui/material/FormLabel/FormLabel.js +1 -1
- package/dist/esm/node_modules/@mui/material/GlobalStyles/GlobalStyles.js +1 -1
- package/dist/esm/node_modules/@mui/material/Grow/Grow.js +1 -1
- package/dist/esm/node_modules/@mui/material/IconButton/IconButton.js +1 -1
- package/dist/esm/node_modules/@mui/material/Input/Input.js +1 -1
- package/dist/esm/node_modules/@mui/material/InputAdornment/InputAdornment.js +1 -1
- package/dist/esm/node_modules/@mui/material/InputBase/InputBase.js +1 -1
- package/dist/esm/node_modules/@mui/material/InputLabel/InputLabel.js +1 -1
- package/dist/esm/node_modules/@mui/material/Link/Link.js +1 -1
- package/dist/esm/node_modules/@mui/material/List/List.js +1 -1
- package/dist/esm/node_modules/@mui/material/ListItem/ListItem.js +1 -1
- package/dist/esm/node_modules/@mui/material/ListItemButton/ListItemButton.js +1 -1
- package/dist/esm/node_modules/@mui/material/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/dist/esm/node_modules/@mui/material/ListItemText/ListItemText.js +1 -1
- package/dist/esm/node_modules/@mui/material/Menu/Menu.js +1 -1
- package/dist/esm/node_modules/@mui/material/MenuItem/MenuItem.js +1 -1
- package/dist/esm/node_modules/@mui/material/MenuList/MenuList.js +1 -1
- package/dist/esm/node_modules/@mui/material/Modal/Modal.js +1 -1
- package/dist/esm/node_modules/@mui/material/NativeSelect/NativeSelectInput.js +1 -1
- package/dist/esm/node_modules/@mui/material/OutlinedInput/NotchedOutline.js +1 -1
- package/dist/esm/node_modules/@mui/material/OutlinedInput/OutlinedInput.js +1 -1
- package/dist/esm/node_modules/@mui/material/Paper/Paper.js +1 -1
- package/dist/esm/node_modules/@mui/material/Popover/Popover.js +1 -1
- package/dist/esm/node_modules/@mui/material/Popper/BasePopper.js +1 -1
- package/dist/esm/node_modules/@mui/material/Popper/Popper.js +1 -1
- package/dist/esm/node_modules/@mui/material/Portal/Portal.js +1 -1
- package/dist/esm/node_modules/@mui/material/Radio/Radio.js +1 -1
- package/dist/esm/node_modules/@mui/material/Radio/RadioButtonIcon.js +1 -1
- package/dist/esm/node_modules/@mui/material/RadioGroup/RadioGroup.js +1 -1
- package/dist/esm/node_modules/@mui/material/Rating/Rating.js +1 -1
- package/dist/esm/node_modules/@mui/material/Select/Select.js +1 -1
- package/dist/esm/node_modules/@mui/material/Select/SelectInput.js +1 -1
- package/dist/esm/node_modules/@mui/material/Slide/Slide.js +1 -1
- package/dist/esm/node_modules/@mui/material/Slider/Slider.js +1 -1
- package/dist/esm/node_modules/@mui/material/Slider/SliderValueLabel.js +1 -1
- package/dist/esm/node_modules/@mui/material/Stack/Stack.js +1 -1
- package/dist/esm/node_modules/@mui/material/Step/Step.js +1 -1
- package/dist/esm/node_modules/@mui/material/StepConnector/StepConnector.js +1 -1
- package/dist/esm/node_modules/@mui/material/StepContent/StepContent.js +1 -1
- package/dist/esm/node_modules/@mui/material/StepIcon/StepIcon.js +1 -1
- package/dist/esm/node_modules/@mui/material/StepLabel/StepLabel.js +1 -1
- package/dist/esm/node_modules/@mui/material/Stepper/Stepper.js +1 -1
- package/dist/esm/node_modules/@mui/material/SvgIcon/SvgIcon.js +1 -1
- package/dist/esm/node_modules/@mui/material/Switch/Switch.js +1 -1
- package/dist/esm/node_modules/@mui/material/Tab/Tab.js +1 -1
- package/dist/esm/node_modules/@mui/material/TabScrollButton/TabScrollButton.js +1 -1
- package/dist/esm/node_modules/@mui/material/Tabs/ScrollbarSize.js +1 -1
- package/dist/esm/node_modules/@mui/material/Tabs/Tabs.js +1 -1
- package/dist/esm/node_modules/@mui/material/TextField/TextField.js +1 -1
- package/dist/esm/node_modules/@mui/material/TextareaAutosize/TextareaAutosize.js +1 -1
- package/dist/esm/node_modules/@mui/material/Typography/Typography.js +1 -1
- package/dist/esm/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap.js +1 -1
- package/dist/esm/node_modules/@mui/material/internal/SwitchBase.js +1 -1
- package/dist/esm/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/esm/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.js +1 -1
- package/dist/esm/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/Box/Box.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/Container/Container.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/Container/createContainer.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/Grid/Grid.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/Grid/createGrid.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/RtlProvider/index.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/Stack/Stack.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/Stack/createStack.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js +1 -1
- package/dist/esm/node_modules/@mui/system/esm/responsivePropType/responsivePropType.js +1 -1
- package/dist/esm/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +1 -1
- package/dist/esm/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js +1 -1
- package/dist/esm/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js +1 -1
- package/dist/esm/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js +1 -1
- package/dist/esm/node_modules/@mui/utils/esm/refType/refType.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/DateCalendar.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DateField/DateField.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DatePicker/DatePicker.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DatePicker/DatePickerToolbar.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/DesktopDatePicker/DesktopDatePicker.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/LocalizationProvider/LocalizationProvider.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/MobileDatePicker/MobileDatePicker.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/MonthCalendar/MonthCalendar.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersActionBar/PickersActionBar.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersCalendarHeader/PickersCalendarHeader.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersDay/PickersDay.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersLayout/PickersLayout.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersSectionList/PickersSectionList.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersShortcuts/PickersShortcuts.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersFilledInput/PickersFilledInput.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersInput/PickersInput.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersInputBase/PickersInputBase.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersTextField.js +1 -1
- package/dist/esm/node_modules/@mui/x-date-pickers/YearCalendar/YearCalendar.js +1 -1
- package/dist/esm/node_modules/prop-types/index.js +1 -1
- package/dist/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/dist/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +1 -1
- package/dist/esm/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/esm/node_modules/rc-util/es/ref.js +1 -1
- package/dist/esm/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/dist/esm/node_modules/react-is/cjs/react-is.production.min.js +1 -1
- package/dist/esm/node_modules/react-is/index.js +1 -1
- package/dist/esm/node_modules/react-transition-group/esm/CSSTransition.js +1 -1
- package/dist/esm/node_modules/react-transition-group/esm/ReplaceTransition.js +1 -1
- package/dist/esm/node_modules/react-transition-group/esm/SwitchTransition.js +1 -1
- package/dist/esm/node_modules/react-transition-group/esm/Transition.js +1 -1
- package/dist/esm/node_modules/react-transition-group/esm/TransitionGroup.js +1 -1
- package/dist/esm/node_modules/react-transition-group/esm/utils/PropTypes.js +1 -1
- package/dist/index.d.ts +190 -124
- package/package.json +1 -1
- package/dist/cjs/molecules/DisplayDataFieldMolecule/DisplayDataFieldMolecule.d.ts +0 -30
- package/dist/cjs/molecules/DisplayDataFieldMolecule/DisplayDataFieldMolecule.stories.d.ts +0 -7
- package/dist/esm/molecules/DisplayDataFieldMolecule/DisplayDataFieldMolecule.d.ts +0 -30
- package/dist/esm/molecules/DisplayDataFieldMolecule/DisplayDataFieldMolecule.js +0 -2
- package/dist/esm/molecules/DisplayDataFieldMolecule/DisplayDataFieldMolecule.js.map +0 -1
- package/dist/esm/molecules/DisplayDataFieldMolecule/DisplayDataFieldMolecule.stories.d.ts +0 -7
package/dist/index.d.ts
CHANGED
@@ -15,7 +15,7 @@ import { BaseButtonProps, PasswordRuleValidation as PasswordRuleValidation$1, Ba
|
|
15
15
|
import { TooltipProps as TooltipProps$1 } from 'rc-tooltip/lib/Tooltip';
|
16
16
|
import { Descendant } from 'slate';
|
17
17
|
import * as _mui_material from '@mui/material';
|
18
|
-
import { DrawerProps as DrawerProps$1, ModalProps, SxProps, TypographyProps, ButtonProps as ButtonProps$1, SwitchProps, BadgeProps, TextFieldProps, SliderProps as SliderProps$1 } from '@mui/material';
|
18
|
+
import { DrawerProps as DrawerProps$1, ModalProps, SxProps, TypographyProps, ButtonProps as ButtonProps$1, SwitchProps, BadgeProps, TextFieldProps, RatingProps, SliderProps as SliderProps$1 } from '@mui/material';
|
19
19
|
import { IconNames as IconNames$1, TouchableOpacityProps as TouchableOpacityProps$1 } from 'components';
|
20
20
|
import { OrganismDTO } from 'organisms/types';
|
21
21
|
import { AnnotationsList as AnnotationsList$1 } from 'contexts/MlrRichTextViewerContext/types';
|
@@ -1041,25 +1041,21 @@ declare type StepperProps = {
|
|
1041
1041
|
};
|
1042
1042
|
declare const Stepper: FC<StepperProps>;
|
1043
1043
|
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
*/
|
1048
|
-
interface SwitchMoleculeProps extends SwitchProps {
|
1044
|
+
interface SwitchMoleculeProps extends Omit<SwitchProps, 'onChange'> {
|
1045
|
+
/** If true, switch is shown but disabled, with a text next to it that indicates ON/OFF. */
|
1046
|
+
isDisplayOnly?: boolean;
|
1047
|
+
/** If true, we rely on MUI FormControl to show the required asterisk. */
|
1049
1048
|
required?: boolean;
|
1050
|
-
|
1051
|
-
|
1049
|
+
requiredErrorText?: string;
|
1050
|
+
validationErrorText?: string;
|
1052
1051
|
text?: string;
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
placement
|
1058
|
-
|
1059
|
-
|
1060
|
-
colorDisabled?: string;
|
1061
|
-
textColor?: string;
|
1062
|
-
size?: 'small' | 'medium';
|
1052
|
+
thumbColor?: string;
|
1053
|
+
thumbCheckedColor?: string;
|
1054
|
+
trackColor?: string;
|
1055
|
+
disabledThumbColor?: string;
|
1056
|
+
/** MUI FormControl label placement with a real label. We'll show the label above by default. */
|
1057
|
+
labelPlacement?: 'top' | 'bottom';
|
1058
|
+
/** Additional MUI styling props if needed */
|
1063
1059
|
marginLeft?: string;
|
1064
1060
|
marginTop?: string;
|
1065
1061
|
marginRight?: string;
|
@@ -1068,9 +1064,10 @@ interface SwitchMoleculeProps extends SwitchProps {
|
|
1068
1064
|
paddingTop?: string;
|
1069
1065
|
paddingRight?: string;
|
1070
1066
|
paddingBottom?: string;
|
1071
|
-
|
1067
|
+
/** For hooking up with react-hook-form */
|
1072
1068
|
name: string;
|
1073
1069
|
sourceDataModelField?: string;
|
1070
|
+
configurationItemInfo?: ConfigurationItemInfo$1;
|
1074
1071
|
}
|
1075
1072
|
declare const SwitchMolecule: react__default.FC<SwitchMoleculeProps>;
|
1076
1073
|
|
@@ -1152,6 +1149,8 @@ declare const AlertMolecule: react__default.FC<AlertMoleculeProps>;
|
|
1152
1149
|
|
1153
1150
|
interface BasicTextFieldProps extends TextFieldProps {
|
1154
1151
|
required?: boolean;
|
1152
|
+
requiredErrorText?: string;
|
1153
|
+
validationErrorText?: string;
|
1155
1154
|
backgroundColor?: string;
|
1156
1155
|
textAlign?: 'inherit' | 'left' | 'center' | 'right' | 'justify';
|
1157
1156
|
color?: string;
|
@@ -1176,24 +1175,35 @@ interface BasicTextFieldProps extends TextFieldProps {
|
|
1176
1175
|
name: string;
|
1177
1176
|
rules?: Omit<RegisterOptions<FieldValues, string>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled'>;
|
1178
1177
|
sourceDataModelField?: string;
|
1178
|
+
isDisplayOnly?: boolean;
|
1179
1179
|
}
|
1180
1180
|
declare const BasicTextField: react__default.FC<BasicTextFieldProps>;
|
1181
1181
|
|
1182
|
-
interface RatingMoleculeProps {
|
1182
|
+
interface RatingMoleculeProps extends Omit<RatingProps, 'onChange'> {
|
1183
|
+
/** Label text displayed above or beside the rating */
|
1183
1184
|
text: string;
|
1185
|
+
/** Name used for react-hook-form registration */
|
1184
1186
|
name: string;
|
1187
|
+
/** If true, the user can’t change the rating (renders read-only) */
|
1188
|
+
isDisplayOnly?: boolean;
|
1189
|
+
/** If true, we show an asterisk and require a non-null rating */
|
1190
|
+
required?: boolean;
|
1191
|
+
/** Custom error text if `required` is not satisfied */
|
1192
|
+
requiredErrorText?: string;
|
1193
|
+
/** If some other validation fails, show this text */
|
1194
|
+
validationErrorText?: string;
|
1195
|
+
/** If true, rating icons will show real-time integer value on hover or selection */
|
1196
|
+
hoverFeedback?: boolean;
|
1197
|
+
/** For hooking up with state config if you store an initial rating there */
|
1198
|
+
sourceDataModelField?: string;
|
1199
|
+
/** Some style props for customizing layout/appearance */
|
1185
1200
|
textAlign?: 'inherit' | 'left' | 'center' | 'right' | 'justify';
|
1186
1201
|
color?: string;
|
1187
1202
|
textColor?: string;
|
1188
|
-
selectSize?: string;
|
1189
1203
|
selectColor?: string;
|
1190
1204
|
fontSize?: number | string;
|
1191
1205
|
fontFamily?: string;
|
1192
|
-
fontWeight?: 'normal' | 'bold';
|
1193
|
-
placement?: 'right' | 'left';
|
1194
|
-
ratingPrecision?: number;
|
1195
|
-
maxValue?: number;
|
1196
|
-
hoverFeedback?: boolean;
|
1206
|
+
fontWeight?: 'normal' | 'bold' | number;
|
1197
1207
|
marginLeft?: string;
|
1198
1208
|
marginTop?: string;
|
1199
1209
|
marginRight?: string;
|
@@ -1202,14 +1212,26 @@ interface RatingMoleculeProps {
|
|
1202
1212
|
paddingTop?: string;
|
1203
1213
|
paddingRight?: string;
|
1204
1214
|
paddingBottom?: string;
|
1215
|
+
/** For left or right placement of the hover feedback text */
|
1216
|
+
placement?: 'right' | 'left';
|
1217
|
+
/** The config item for design-time or telemetry */
|
1205
1218
|
configurationItemInfo?: Record<string, unknown>;
|
1219
|
+
/** Disables rating input in editable mode (MUI prop) */
|
1206
1220
|
disabled?: boolean;
|
1221
|
+
/** If using react-hook-form, we can track field errors. */
|
1222
|
+
maxValue?: number;
|
1223
|
+
ratingPrecision?: number;
|
1207
1224
|
}
|
1208
1225
|
declare const RatingMolecule: react__default.FC<RatingMoleculeProps>;
|
1209
1226
|
|
1210
|
-
|
1227
|
+
interface SliderMoleculeProps extends Omit<SliderProps$1, 'onChange'> {
|
1228
|
+
/** If true, the slider is displayed disabled + text showing the value. */
|
1229
|
+
isDisplayOnly?: boolean;
|
1230
|
+
/** If true, rely on FormControl to show a required asterisk. */
|
1211
1231
|
required?: boolean;
|
1212
|
-
|
1232
|
+
requiredErrorText?: string;
|
1233
|
+
validationErrorText?: string;
|
1234
|
+
text?: string;
|
1213
1235
|
startIcon?: string;
|
1214
1236
|
endIcon?: string;
|
1215
1237
|
borderColor?: string;
|
@@ -1219,17 +1241,17 @@ declare type SliderMoleculeProps = SliderProps$1 & {
|
|
1219
1241
|
textColor?: string;
|
1220
1242
|
fontSize?: number | string;
|
1221
1243
|
fontFamily?: string;
|
1222
|
-
fontWeight?: 'normal' | 'bold';
|
1223
|
-
|
1224
|
-
|
1244
|
+
fontWeight?: 'normal' | 'bold' | number;
|
1245
|
+
valueFormat?: string;
|
1246
|
+
valueDisplay?: 'on' | 'off' | 'auto';
|
1225
1247
|
iconSize?: string;
|
1226
1248
|
selectColor?: string;
|
1227
1249
|
iconColor?: string;
|
1228
1250
|
minValue?: number;
|
1229
1251
|
maxValue?: number;
|
1230
|
-
valueFormat?: string;
|
1231
|
-
valueDisplay?: 'on' | 'off' | 'auto';
|
1232
1252
|
step?: number;
|
1253
|
+
/** label's placement relative to the slider+icons */
|
1254
|
+
labelPlacement?: 'top' | 'bottom';
|
1233
1255
|
marginLeft?: string;
|
1234
1256
|
marginTop?: string;
|
1235
1257
|
marginRight?: string;
|
@@ -1239,21 +1261,26 @@ declare type SliderMoleculeProps = SliderProps$1 & {
|
|
1239
1261
|
paddingRight?: string;
|
1240
1262
|
paddingBottom?: string;
|
1241
1263
|
configurationItemInfo?: ConfigurationItemInfo$1;
|
1264
|
+
/** For hooking up with react-hook-form */
|
1242
1265
|
name?: string;
|
1243
1266
|
sourceDataModelField?: string;
|
1244
|
-
}
|
1267
|
+
}
|
1268
|
+
/**
|
1269
|
+
* SliderMolecule
|
1270
|
+
*/
|
1245
1271
|
declare const SliderMolecule: react__default.FC<SliderMoleculeProps>;
|
1246
1272
|
|
1247
1273
|
interface DatePickerMoleculeProps extends DatePickerProps {
|
1248
1274
|
required?: boolean;
|
1275
|
+
placeholderText?: string;
|
1249
1276
|
moleculeId?: string;
|
1250
1277
|
configurationItemInfo?: any;
|
1251
1278
|
text: string;
|
1252
1279
|
borderColor?: string;
|
1253
|
-
fontSize?:
|
1254
|
-
fontFamily?:
|
1255
|
-
fontWeight?:
|
1256
|
-
textColor?:
|
1280
|
+
fontSize?: string | number;
|
1281
|
+
fontFamily?: string;
|
1282
|
+
fontWeight?: string | number;
|
1283
|
+
textColor?: string;
|
1257
1284
|
iconColor?: IconRendererProps$1['color'];
|
1258
1285
|
minDate?: string;
|
1259
1286
|
maxDate?: string;
|
@@ -1268,20 +1295,43 @@ interface DatePickerMoleculeProps extends DatePickerProps {
|
|
1268
1295
|
paddingBottom?: string;
|
1269
1296
|
name: string;
|
1270
1297
|
sourceDataModelField?: string;
|
1298
|
+
/**
|
1299
|
+
* If true, disables the actual picker input and just displays
|
1300
|
+
* the date in read-only text form.
|
1301
|
+
*/
|
1302
|
+
isDisplayOnly?: boolean;
|
1303
|
+
/**
|
1304
|
+
* Format to use when displaying date in "display only" mode
|
1305
|
+
* or controlling the displayed text in the editable field.
|
1306
|
+
* e.g. 'MM/dd/yyyy' or 'yyyy-MM-dd'
|
1307
|
+
*/
|
1308
|
+
displayFormat?: string;
|
1271
1309
|
}
|
1272
1310
|
declare const DatePickerMolecule: react__default.FC<DatePickerMoleculeProps>;
|
1273
1311
|
|
1312
|
+
interface SelectMoleculeOption {
|
1313
|
+
id: string;
|
1314
|
+
value: string;
|
1315
|
+
}
|
1274
1316
|
interface SelectMoleculeProps {
|
1317
|
+
/** Label text (visible above or inside the select) */
|
1275
1318
|
text: string;
|
1276
|
-
options
|
1277
|
-
|
1278
|
-
|
1279
|
-
}[];
|
1319
|
+
/** Dropdown options. Each has { id, value } or you can supply string[] */
|
1320
|
+
options: SelectMoleculeOption[] | string[];
|
1321
|
+
/** For a placeholder, you might use the first item or do a custom approach */
|
1280
1322
|
placeholderText?: string;
|
1281
|
-
|
1323
|
+
/** If true, the field is required in form validation */
|
1282
1324
|
required?: boolean;
|
1325
|
+
/** Use this text if required == true and no value selected */
|
1326
|
+
requiredErrorText?: string;
|
1327
|
+
/** Use this text if user fails some extra validation pattern */
|
1328
|
+
validationErrorText?: string;
|
1329
|
+
/** If true, show a text label instead of an interactive dropdown */
|
1330
|
+
isDisplayOnly?: boolean;
|
1331
|
+
/** CSS style props */
|
1332
|
+
fontSize?: number | string;
|
1283
1333
|
fontFamily?: TypographyProps['fontFamily'];
|
1284
|
-
fontWeight?: 'normal' | 'bold';
|
1334
|
+
fontWeight?: 'normal' | 'bold' | number;
|
1285
1335
|
textColor?: string;
|
1286
1336
|
textAlign?: TypographyProps['textAlign'];
|
1287
1337
|
borderColor?: string;
|
@@ -1295,8 +1345,11 @@ interface SelectMoleculeProps {
|
|
1295
1345
|
paddingTop?: string;
|
1296
1346
|
paddingRight?: string;
|
1297
1347
|
paddingBottom?: string;
|
1348
|
+
/** Additional config from system (e.g. for selection in config mode) */
|
1298
1349
|
configurationItemInfo?: ConfigurationItemInfo$1;
|
1350
|
+
/** The name of the field in react-hook-form */
|
1299
1351
|
name: string;
|
1352
|
+
/** The data field in global stateConfig to populate/initialize value */
|
1300
1353
|
sourceDataModelField?: string;
|
1301
1354
|
}
|
1302
1355
|
declare const SelectMolecule: react__default.FC<SelectMoleculeProps>;
|
@@ -1631,16 +1684,27 @@ declare type TabsItemDTO = BaseItem & {
|
|
1631
1684
|
};
|
1632
1685
|
|
1633
1686
|
interface EmailInputFieldProps {
|
1687
|
+
/** If true, show the email as text only (no editing). */
|
1688
|
+
isDisplayOnly?: boolean;
|
1689
|
+
/** If true, do required validation in RHF + show MUI asterisk. */
|
1634
1690
|
required?: boolean;
|
1691
|
+
requiredErrorText?: string;
|
1692
|
+
validationErrorText?: string;
|
1693
|
+
/** Basic label & placeholder */
|
1694
|
+
text?: string;
|
1695
|
+
placeholderText?: string;
|
1696
|
+
/** If true, apply an email text mask in the editable field. */
|
1697
|
+
masked?: boolean;
|
1698
|
+
multiLine?: boolean;
|
1699
|
+
/** Basic styling props */
|
1635
1700
|
backgroundColor?: string;
|
1636
|
-
|
1701
|
+
borderColor?: string;
|
1637
1702
|
color?: string;
|
1638
1703
|
fontSize?: number | string;
|
1639
1704
|
fontFamily?: string;
|
1640
|
-
fontWeight?: 'normal' | 'bold';
|
1641
|
-
|
1642
|
-
|
1643
|
-
borderColor?: string;
|
1705
|
+
fontWeight?: 'normal' | 'bold' | number;
|
1706
|
+
textAlign?: 'inherit' | 'left' | 'center' | 'right' | 'justify';
|
1707
|
+
/** Spacing */
|
1644
1708
|
marginLeft?: string;
|
1645
1709
|
marginTop?: string;
|
1646
1710
|
marginRight?: string;
|
@@ -1649,24 +1713,29 @@ interface EmailInputFieldProps {
|
|
1649
1713
|
paddingTop?: string;
|
1650
1714
|
paddingRight?: string;
|
1651
1715
|
paddingBottom?: string;
|
1652
|
-
text?: string;
|
1653
|
-
placeholderText?: string;
|
1654
|
-
configurationItemInfo?: ConfigurationItemInfo$1;
|
1655
1716
|
name: string;
|
1656
1717
|
sourceDataModelField?: string;
|
1718
|
+
configurationItemInfo?: ConfigurationItemInfo$1;
|
1657
1719
|
}
|
1658
1720
|
|
1659
1721
|
interface PhoneNumberInputFieldProps {
|
1722
|
+
/** If true, we skip rendering the textfield and just show a text display. */
|
1723
|
+
isDisplayOnly?: boolean;
|
1724
|
+
/** If true, we do required validation in react-hook-form + show asterisk in MUI FormControl. */
|
1660
1725
|
required?: boolean;
|
1726
|
+
requiredErrorText?: string;
|
1727
|
+
validationErrorText?: string;
|
1728
|
+
text?: string;
|
1729
|
+
placeholderText?: string;
|
1730
|
+
masked?: boolean;
|
1731
|
+
/** Basic style props */
|
1661
1732
|
backgroundColor?: string;
|
1662
|
-
|
1663
|
-
|
1733
|
+
borderColor?: string;
|
1734
|
+
textColor?: string;
|
1664
1735
|
fontSize?: number | string;
|
1665
1736
|
fontFamily?: string;
|
1666
|
-
fontWeight?: 'normal' | 'bold';
|
1667
|
-
|
1668
|
-
multiLine?: boolean;
|
1669
|
-
borderColor?: string;
|
1737
|
+
fontWeight?: 'normal' | 'bold' | number;
|
1738
|
+
/** Spacing */
|
1670
1739
|
marginLeft?: string;
|
1671
1740
|
marginTop?: string;
|
1672
1741
|
marginRight?: string;
|
@@ -1675,22 +1744,34 @@ interface PhoneNumberInputFieldProps {
|
|
1675
1744
|
paddingTop?: string;
|
1676
1745
|
paddingRight?: string;
|
1677
1746
|
paddingBottom?: string;
|
1678
|
-
text?: string;
|
1679
|
-
placeholderText?: string;
|
1680
|
-
configurationItemInfo?: ConfigurationItemInfo$1;
|
1681
1747
|
name: string;
|
1682
1748
|
sourceDataModelField?: string;
|
1749
|
+
configurationItemInfo?: ConfigurationItemInfo$1;
|
1683
1750
|
}
|
1684
1751
|
|
1685
1752
|
interface NumericInputFieldProps {
|
1753
|
+
/** If true, the field shows as text-only (no editing). */
|
1754
|
+
isDisplayOnly?: boolean;
|
1755
|
+
/** If true, we do required validation in form + show MUI asterisk. */
|
1686
1756
|
required?: boolean;
|
1757
|
+
requiredErrorText?: string;
|
1758
|
+
validationErrorText?: string;
|
1759
|
+
/** Label text for the field */
|
1760
|
+
text?: string;
|
1761
|
+
placeholderText?: string;
|
1687
1762
|
backgroundColor?: string;
|
1688
|
-
|
1763
|
+
borderColor?: string;
|
1689
1764
|
textColor?: string;
|
1690
1765
|
fontSize?: number | string;
|
1691
1766
|
fontFamily?: string;
|
1692
|
-
fontWeight?: 'normal' | 'bold';
|
1693
|
-
|
1767
|
+
fontWeight?: 'normal' | 'bold' | number;
|
1768
|
+
/** If false => we disallow negative input. */
|
1769
|
+
allowNegative?: boolean;
|
1770
|
+
/** e.g. "0.01" => step=0.01, 2 decimals */
|
1771
|
+
numericPrecision?: string;
|
1772
|
+
name: string;
|
1773
|
+
sourceDataModelField?: string;
|
1774
|
+
/** Basic spacing/styling */
|
1694
1775
|
marginLeft?: string;
|
1695
1776
|
marginTop?: string;
|
1696
1777
|
marginRight?: string;
|
@@ -1699,44 +1780,7 @@ interface NumericInputFieldProps {
|
|
1699
1780
|
paddingTop?: string;
|
1700
1781
|
paddingRight?: string;
|
1701
1782
|
paddingBottom?: string;
|
1702
|
-
text?: string;
|
1703
|
-
placeholderText?: string;
|
1704
1783
|
configurationItemInfo?: ConfigurationItemInfo$1;
|
1705
|
-
name: string;
|
1706
|
-
allowNegative: boolean;
|
1707
|
-
/**
|
1708
|
-
* A string representing the precision step for the numeric input
|
1709
|
-
* e.g. '1.0' or '0.05' or '0.001'
|
1710
|
-
*/
|
1711
|
-
numericPrecision?: string;
|
1712
|
-
sourceDataModelField?: string;
|
1713
|
-
}
|
1714
|
-
|
1715
|
-
/**
|
1716
|
-
* Props similar to SimpleText, plus sourceDataModelField for retrieving text from stateConfig
|
1717
|
-
*/
|
1718
|
-
interface DisplayDataFieldMoleculeProps extends TypographyProps {
|
1719
|
-
sourceDataModelField?: string;
|
1720
|
-
/** If you want custom background color around the text */
|
1721
|
-
backgroundColor?: string;
|
1722
|
-
/** Text color */
|
1723
|
-
textColor?: string;
|
1724
|
-
/** Whether text should wrap. If falsy => MUI uses "noWrap" */
|
1725
|
-
wrap?: boolean;
|
1726
|
-
/** Additional margin/padding props */
|
1727
|
-
marginTop?: string;
|
1728
|
-
marginRight?: string;
|
1729
|
-
marginBottom?: string;
|
1730
|
-
marginLeft?: string;
|
1731
|
-
paddingTop?: string;
|
1732
|
-
paddingRight?: string;
|
1733
|
-
paddingBottom?: string;
|
1734
|
-
paddingLeft?: string;
|
1735
|
-
/**
|
1736
|
-
* If you want a custom ID or attach config style
|
1737
|
-
*/
|
1738
|
-
htmlElementId?: string;
|
1739
|
-
configurationsItemInfo?: ConfigurationItemInfo$1;
|
1740
1784
|
}
|
1741
1785
|
|
1742
1786
|
declare type ActionTypes = 'link' | 'popup' | 'drawer' | 'download' | 'submit' | 'reset' | 'destroy';
|
@@ -1846,7 +1890,7 @@ declare type ObjectStateProperties = {
|
|
1846
1890
|
pmiObjectId: string | null;
|
1847
1891
|
};
|
1848
1892
|
declare type MoleculeItemTypes = 'stepper_item' | 'checklist_item' | 'accordion_item' | 'menu_item' | 'tabs_item';
|
1849
|
-
declare type MoleculeTypes = 'simple_text' | 'text' | 'header_tab_group' | 'consent' | 'signup_password_fields' | 'account_button' | 'stepper' | 'checklist' | 'accordion' | 'menu' | 'tabs' | 'divider' | 'link' | 'video' | 'image' | 'button' | 'alert' | 'badge' | 'chip' | 'basic_text_field' | 'rating' | 'switch' | 'slider' | 'select' | 'date_picker' | 'email_input_field' | 'phone_number_input_field' | 'numeric_input_field' | 'currency_input_field' | '
|
1893
|
+
declare type MoleculeTypes = 'simple_text' | 'text' | 'header_tab_group' | 'consent' | 'signup_password_fields' | 'account_button' | 'stepper' | 'checklist' | 'accordion' | 'menu' | 'tabs' | 'divider' | 'link' | 'video' | 'image' | 'button' | 'alert' | 'badge' | 'chip' | 'basic_text_field' | 'rating' | 'switch' | 'slider' | 'select' | 'date_picker' | 'email_input_field' | 'phone_number_input_field' | 'numeric_input_field' | 'currency_input_field' | 'email_display_field' | 'phone_number_display_field' | 'numeric_display_field' | 'currency_display_field' | 'basic_text_display_field' | 'select_display_field' | 'rating_display_field' | 'switch_display_field' | 'slider_display_field' | 'date_display_field';
|
1850
1894
|
/**
|
1851
1895
|
* [ NEW MOLECULE: 3 ] Second Step is to add the new molecule name to this list, in snake case format
|
1852
1896
|
*
|
@@ -2026,7 +2070,7 @@ interface AlertMoleculeType extends BaseMoleculeType {
|
|
2026
2070
|
};
|
2027
2071
|
}
|
2028
2072
|
interface BasicTextFieldMoleculeType extends BaseMoleculeType {
|
2029
|
-
type: 'basic_text_field';
|
2073
|
+
type: 'basic_text_field' | 'basic_text_display_field';
|
2030
2074
|
config: {
|
2031
2075
|
props: BasicTextFieldProps$1 & {
|
2032
2076
|
dataCaptureName?: string;
|
@@ -2034,21 +2078,28 @@ interface BasicTextFieldMoleculeType extends BaseMoleculeType {
|
|
2034
2078
|
};
|
2035
2079
|
properties: {
|
2036
2080
|
text: TextProperties;
|
2037
|
-
dataCapture: DataCaptureProperties;
|
2038
2081
|
placeholderText: TextProperties;
|
2082
|
+
requiredErrorText: TextProperties;
|
2083
|
+
validationErrorText: TextProperties;
|
2084
|
+
required: BooleanProperties;
|
2085
|
+
dataCapture: DataCaptureProperties;
|
2039
2086
|
};
|
2040
2087
|
}
|
2041
2088
|
interface RatingMoleculeType extends BaseMoleculeType {
|
2042
|
-
type: 'rating';
|
2089
|
+
type: 'rating' | 'rating_display_field';
|
2043
2090
|
config: {
|
2044
2091
|
props: RatingMoleculeProps$1;
|
2045
2092
|
};
|
2046
2093
|
properties: {
|
2047
2094
|
text: TextProperties;
|
2095
|
+
requiredErrorText: TextProperties;
|
2096
|
+
validationErrorText: TextProperties;
|
2097
|
+
required: BooleanProperties;
|
2098
|
+
dataCapture: DataCaptureProperties;
|
2048
2099
|
};
|
2049
2100
|
}
|
2050
2101
|
interface SwitchMoleculeType extends BaseMoleculeType {
|
2051
|
-
type: 'switch';
|
2102
|
+
type: 'switch' | 'switch_display_field';
|
2052
2103
|
config: {
|
2053
2104
|
props: AlertMoleculeProps$1 & {
|
2054
2105
|
dataCaptureName?: string;
|
@@ -2057,21 +2108,27 @@ interface SwitchMoleculeType extends BaseMoleculeType {
|
|
2057
2108
|
properties: {
|
2058
2109
|
text: TextProperties;
|
2059
2110
|
subText: TextProperties;
|
2111
|
+
requiredErrorText: TextProperties;
|
2112
|
+
validationErrorText: TextProperties;
|
2113
|
+
required: BooleanProperties;
|
2060
2114
|
dataCapture: DataCaptureProperties;
|
2061
2115
|
};
|
2062
2116
|
}
|
2063
2117
|
interface SliderMoleculeType extends BaseMoleculeType {
|
2064
|
-
type: 'slider';
|
2118
|
+
type: 'slider' | 'slider_display_field';
|
2065
2119
|
config: {
|
2066
2120
|
props: SliderMoleculeProps$1;
|
2067
2121
|
};
|
2068
2122
|
properties: {
|
2069
2123
|
text: TextProperties;
|
2124
|
+
requiredErrorText: TextProperties;
|
2125
|
+
validationErrorText: TextProperties;
|
2126
|
+
required: BooleanProperties;
|
2070
2127
|
dataCapture: DataCaptureProperties;
|
2071
2128
|
};
|
2072
2129
|
}
|
2073
2130
|
interface SelectMoleculeType extends BaseMoleculeType {
|
2074
|
-
type: 'select';
|
2131
|
+
type: 'select' | 'select_display_field';
|
2075
2132
|
config: {
|
2076
2133
|
props: SelectMoleculeProps$1 & {
|
2077
2134
|
dataCaptureName?: string;
|
@@ -2079,11 +2136,14 @@ interface SelectMoleculeType extends BaseMoleculeType {
|
|
2079
2136
|
};
|
2080
2137
|
properties: {
|
2081
2138
|
text: TextProperties;
|
2139
|
+
requiredErrorText: TextProperties;
|
2140
|
+
validationErrorText: TextProperties;
|
2141
|
+
required: BooleanProperties;
|
2082
2142
|
dataCapture: DataCaptureProperties;
|
2083
2143
|
};
|
2084
2144
|
}
|
2085
2145
|
interface DatePickerMoleculeType extends BaseMoleculeType {
|
2086
|
-
type: 'date_picker';
|
2146
|
+
type: 'date_picker' | 'date_display_field';
|
2087
2147
|
config: {
|
2088
2148
|
props: DatePickerMoleculeProps$1 & {
|
2089
2149
|
dataCaptureName?: string;
|
@@ -2091,11 +2151,14 @@ interface DatePickerMoleculeType extends BaseMoleculeType {
|
|
2091
2151
|
};
|
2092
2152
|
properties: {
|
2093
2153
|
text: TextProperties;
|
2154
|
+
requiredErrorText: TextProperties;
|
2155
|
+
validationErrorText: TextProperties;
|
2156
|
+
required: BooleanProperties;
|
2094
2157
|
dataCapture: DataCaptureProperties;
|
2095
2158
|
};
|
2096
2159
|
}
|
2097
2160
|
interface EmailInputFieldMoleculeType extends BaseMoleculeType {
|
2098
|
-
type: 'email_input_field';
|
2161
|
+
type: 'email_input_field' | 'email_display_field';
|
2099
2162
|
config: {
|
2100
2163
|
props: EmailInputFieldProps & {
|
2101
2164
|
dataCaptureName?: string;
|
@@ -2104,11 +2167,14 @@ interface EmailInputFieldMoleculeType extends BaseMoleculeType {
|
|
2104
2167
|
properties: {
|
2105
2168
|
text: TextProperties;
|
2106
2169
|
placeholderText: TextProperties;
|
2170
|
+
requiredErrorText: TextProperties;
|
2171
|
+
validationErrorText: TextProperties;
|
2172
|
+
required: BooleanProperties;
|
2107
2173
|
dataCapture: DataCaptureProperties;
|
2108
2174
|
};
|
2109
2175
|
}
|
2110
2176
|
interface PhoneNumberInputFieldMoleculeType extends BaseMoleculeType {
|
2111
|
-
type: 'phone_number_input_field';
|
2177
|
+
type: 'phone_number_input_field' | 'phone_number_display_field';
|
2112
2178
|
config: {
|
2113
2179
|
props: PhoneNumberInputFieldProps & {
|
2114
2180
|
dataCaptureName?: string;
|
@@ -2117,11 +2183,14 @@ interface PhoneNumberInputFieldMoleculeType extends BaseMoleculeType {
|
|
2117
2183
|
properties: {
|
2118
2184
|
text: TextProperties;
|
2119
2185
|
placeholderText: TextProperties;
|
2186
|
+
requiredErrorText: TextProperties;
|
2187
|
+
validationErrorText: TextProperties;
|
2188
|
+
required: BooleanProperties;
|
2120
2189
|
dataCapture: DataCaptureProperties;
|
2121
2190
|
};
|
2122
2191
|
}
|
2123
2192
|
interface NumericInputFieldMoleculeType extends BaseMoleculeType {
|
2124
|
-
type: 'numeric_input_field';
|
2193
|
+
type: 'numeric_input_field' | 'numeric_display_field';
|
2125
2194
|
config: {
|
2126
2195
|
props: NumericInputFieldProps & {
|
2127
2196
|
dataCaptureName?: string;
|
@@ -2130,11 +2199,14 @@ interface NumericInputFieldMoleculeType extends BaseMoleculeType {
|
|
2130
2199
|
properties: {
|
2131
2200
|
text: TextProperties;
|
2132
2201
|
placeholderText: TextProperties;
|
2202
|
+
requiredErrorText: TextProperties;
|
2203
|
+
validationErrorText: TextProperties;
|
2204
|
+
required: BooleanProperties;
|
2133
2205
|
dataCapture: DataCaptureProperties;
|
2134
2206
|
};
|
2135
2207
|
}
|
2136
2208
|
interface CurrencyInputFieldMoleculeType extends BaseMoleculeType {
|
2137
|
-
type: 'currency_input_field';
|
2209
|
+
type: 'currency_input_field' | 'currency_display_field';
|
2138
2210
|
config: {
|
2139
2211
|
props: NumericInputFieldProps & {
|
2140
2212
|
dataCaptureName?: string;
|
@@ -2143,19 +2215,13 @@ interface CurrencyInputFieldMoleculeType extends BaseMoleculeType {
|
|
2143
2215
|
properties: {
|
2144
2216
|
text: TextProperties;
|
2145
2217
|
placeholderText: TextProperties;
|
2218
|
+
requiredErrorText: TextProperties;
|
2219
|
+
validationErrorText: TextProperties;
|
2220
|
+
required: BooleanProperties;
|
2146
2221
|
dataCapture: DataCaptureProperties;
|
2147
2222
|
};
|
2148
2223
|
}
|
2149
|
-
|
2150
|
-
type: 'display_data_field';
|
2151
|
-
config: {
|
2152
|
-
props: Omit<DisplayDataFieldMoleculeProps, 'sourceDataModelField' | 'configurationItemInfo'>;
|
2153
|
-
};
|
2154
|
-
properties: {
|
2155
|
-
dataCapture: DataCaptureProperties;
|
2156
|
-
};
|
2157
|
-
}
|
2158
|
-
declare type Molecule = StrictUnion<SimpleTextMoleculeType | TextMoleculeType | ConsentFieldMoleculeType | PasswordSetupMoleculeType | StepperMoleculeType | ChecklistsMoleculeType | AccordionMoleculeType | MenuMoleculeType | TabsMoleculeType | DividerMoleculeType | LinkMoleculeType | VideoMoleculeType | ImageMoleculeType | ButtonMoleculeType | ChipMoleculeType | BadgeMoleculeType | AlertMoleculeType | BasicTextFieldMoleculeType | RatingMoleculeType | SwitchMoleculeType | SliderMoleculeType | SelectMoleculeType | DatePickerMoleculeType | EmailInputFieldMoleculeType | PhoneNumberInputFieldMoleculeType | NumericInputFieldMoleculeType | CurrencyInputFieldMoleculeType | DisplayDataFieldMoleculeType> & Partial<{
|
2224
|
+
declare type Molecule = StrictUnion<SimpleTextMoleculeType | TextMoleculeType | ConsentFieldMoleculeType | PasswordSetupMoleculeType | StepperMoleculeType | ChecklistsMoleculeType | AccordionMoleculeType | MenuMoleculeType | TabsMoleculeType | DividerMoleculeType | LinkMoleculeType | VideoMoleculeType | ImageMoleculeType | ButtonMoleculeType | ChipMoleculeType | BadgeMoleculeType | AlertMoleculeType | BasicTextFieldMoleculeType | RatingMoleculeType | SwitchMoleculeType | SliderMoleculeType | SelectMoleculeType | DatePickerMoleculeType | EmailInputFieldMoleculeType | PhoneNumberInputFieldMoleculeType | NumericInputFieldMoleculeType | CurrencyInputFieldMoleculeType> & Partial<{
|
2159
2225
|
form: UseFormReturn<any>;
|
2160
2226
|
formData: AnyObject$1;
|
2161
2227
|
setFormData: Dispatch<SetStateAction<AnyObject$1>>;
|
@@ -2355,4 +2421,4 @@ declare type FormOrganismItemProps = {
|
|
2355
2421
|
};
|
2356
2422
|
declare const FormOrganismItem: ({ formData, setFormData, isMobile, ...props }: FormOrganismItemProps) => _emotion_react_jsx_runtime.JSX.Element | null;
|
2357
2423
|
|
2358
|
-
export { AccordionMoleculeType, AccountButtonContext, AccountButtonContextType, AccountButtonProvider, AccountButtonProviderProps, ActionEventType, ActionProperties, ActionType, ActionTypes, AdditionalContainerProps, AlertMolecule, AlertMoleculeProps, AlertMoleculeType, AnnotationsList, Avatar, AvatarProps, BackgroundImage, BadgeMolecule, BadgeMoleculeProps, BadgeMoleculeType, BaseMolecule, BaseMoleculeType, BaseStateValue, BaseTextButton, BasicTextField, BasicTextFieldMoleculeType, BasicTextFieldProps, BooleanProperties, BreakpointSizesTypes, Button, ButtonActionsContext, ButtonActionsContextType, ButtonActionsProvider, ButtonActionsProviderProps, ButtonMoleculeType, ButtonProps, COMMUNICATION_LINK_DATA_TEXT, COMMUNICATION_LINK_DATA_URL, COMMUNICATION_LINK_ELEMENT_ID, Checkbox, CheckboxProps, Checklist, ChecklistItem, ChecklistProperties, ChecklistProps, ChecklistsMoleculeType, ChipMolecule, ChipMoleculeProps, ChipMoleculeType, Circle, CircleBoxProps, CirclesWrapper, CircularIndicator, CircularIndicatorProps, CircularIndicatorStyledComponent, ColorProperties, ConditionConfig, ConditionConfigProperties, ConditionCriteria, ConfigurationItem, ConfigurationItemInfo, Consent, ConsentCaptureMethod, ConsentFieldMoleculeType, ConsentProps, ConsentStatus, ConsentType, Container, ContainerAlignItemsType, ContainerComponentProps, ContainerConfig, ContainerPositionType, ContainerProperties, ContainerProps, ContainerPropsType, ContainerScrollBehaviourType, ContainerTemplateType, ContainerType, ContainerWrapper, CountValidationTypes, CriteriaType, CurrencyInputFieldMoleculeType, CustomStep, CustomValidation, CustomValidationProps, CustomValidationRule, DataCaptureProperties, DataConnectionValues, DataModelFieldFormat, DataModelFieldFormatCodeTypes, DataModelFieldFormatValueTypes, DatePickerMolecule, DatePickerMoleculeProps, DatePickerMoleculeType, DefaultSelectionType,
|
2424
|
+
export { AccordionMoleculeType, AccountButtonContext, AccountButtonContextType, AccountButtonProvider, AccountButtonProviderProps, ActionEventType, ActionProperties, ActionType, ActionTypes, AdditionalContainerProps, AlertMolecule, AlertMoleculeProps, AlertMoleculeType, AnnotationsList, Avatar, AvatarProps, BackgroundImage, BadgeMolecule, BadgeMoleculeProps, BadgeMoleculeType, BaseMolecule, BaseMoleculeType, BaseStateValue, BaseTextButton, BasicTextField, BasicTextFieldMoleculeType, BasicTextFieldProps, BooleanProperties, BreakpointSizesTypes, Button, ButtonActionsContext, ButtonActionsContextType, ButtonActionsProvider, ButtonActionsProviderProps, ButtonMoleculeType, ButtonProps, COMMUNICATION_LINK_DATA_TEXT, COMMUNICATION_LINK_DATA_URL, COMMUNICATION_LINK_ELEMENT_ID, Checkbox, CheckboxProps, Checklist, ChecklistItem, ChecklistProperties, ChecklistProps, ChecklistsMoleculeType, ChipMolecule, ChipMoleculeProps, ChipMoleculeType, Circle, CircleBoxProps, CirclesWrapper, CircularIndicator, CircularIndicatorProps, CircularIndicatorStyledComponent, ColorProperties, ConditionConfig, ConditionConfigProperties, ConditionCriteria, ConfigurationItem, ConfigurationItemInfo, Consent, ConsentCaptureMethod, ConsentFieldMoleculeType, ConsentProps, ConsentStatus, ConsentType, Container, ContainerAlignItemsType, ContainerComponentProps, ContainerConfig, ContainerPositionType, ContainerProperties, ContainerProps, ContainerPropsType, ContainerScrollBehaviourType, ContainerTemplateType, ContainerType, ContainerWrapper, CountValidationTypes, CriteriaType, CurrencyInputFieldMoleculeType, CustomStep, CustomValidation, CustomValidationProps, CustomValidationRule, DataCaptureProperties, DataConnectionValues, DataModelFieldFormat, DataModelFieldFormatCodeTypes, DataModelFieldFormatValueTypes, DatePickerMolecule, DatePickerMoleculeProps, DatePickerMoleculeType, DefaultSelectionType, Divider, DividerMoleculeType, DividerProps, DownloadFile, Drawer, EmailInputFieldMoleculeType, ErrorText, FontSizesTypes, FontWeight, FormContainerProps, FormDataStateConfig, FormOrganismItem, FormStateType, FormStepContainerProps, HorizontalButtons, HorizontalButtonsProps, HorizontalPadding, Icon, IconButton, IconButtonProps, IconNames, IconProps, IconRenderer, IconRendererProps, IconWrapper, Image, ImageMoleculeType, ImageProperties, ImageProps, Input, InputFieldInternalConfigProps, InputIconProps, InputProps, Link, LinkMoleculeType, LinkProperties, LinkProps, LinkTypes, LinkVariant, MATRIX_MESSAGE_DATA_ID, MATRIX_MESSAGE_ELEMENT_ID, MaxRuleValidation, MenuMoleculeType, MetadataStateConfig, MetadataType, MinRuleValidation, MlrRichTextViewerContext, MlrRichTextViewerContextType, MlrRichTextViewerProvider, MlrRichTextViewerProviderProps, ModalWrapper, Molecule, MoleculeItemTypes, MoleculeTypes, NumericInputFieldMoleculeType, ObjectStateProperties, Organism, OrganismContext, OrganismContextProvider, OrganismContextProviderProps, OrganismContextType, OrganismItem, Padding, PaddingProps, PaddingVariants, PasswordFields, PasswordRuleValidation, PasswordSetup, PasswordSetupMoleculeType, PasswordSetupProps, PdfDocument, PdfDocumentProps, PhoneNumberInputFieldMoleculeType, PopupPropsType, RadioButtonInternalConfigProps, RadioButtons, RadioButtonsProps, RadioGroupWrapper, RatingMolecule, RatingMoleculeProps, RatingMoleculeType, RegularImage, RegularImageProps, RichTextEditorProps, RichTextViewer, SegmentationType, Select, SelectInternalConfigurationOptions, SelectMolecule, SelectMoleculeOption, SelectMoleculeProps, SelectMoleculeType, SelectOption, SelectProps, SeoTags, SetPasswordRuleValidation, SimpleTextMoleculeType, SizesTypes, SliderMolecule, SliderMoleculeProps, SliderMoleculeType, SliderProps, Spacer, SpacerProps, Spinner, StateActionType, StateConfigType, StateContext, StateContextProvider, StateContextProviderProps, StateContextType, StateEventType, StateListenerConfigType, StateModifierConfigType, StateProperties, Stepper, StepperMoleculeType, StepperOrientation, StepperProps, StyleWrapper, SwitchMolecule, SwitchMoleculeProps, SwitchMoleculeType, TabsMoleculeType, TextAlign, TextButton, TextButtonProps, TextElementProps, TextMolecule, TextMoleculeType, TextProperties, TextProps, TextTypes, TextWrapper, TextWrapperProps, ThemeColors, ThemeColorsType, ThemeDevicesType, ThemeSizesType, ThemeTextType, Tooltip, TooltipProps, TouchableOpacity, TouchableOpacityProps, ValidationTag, ValidationTagProps, ValidationTagStatus, VerticalPadding, Video, VideoMoleculeType, VideoProperties, VideoProps, WrappedContainerType, ZealTheme, ZealThemeProvider, ZealUIModal, ZealUIModalProps, defaultTheme, defaultValue, passwordValidationMapper, toast, toastStyles, useButtonActionsContext, useMediaQuery, useMlrRichTextViewerContext };
|
package/package.json
CHANGED
@@ -1,30 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { TypographyProps as MuiTypographyProps } from '@mui/material';
|
3
|
-
import { ConfigurationItemInfo } from 'containers';
|
4
|
-
/**
|
5
|
-
* Props similar to SimpleText, plus sourceDataModelField for retrieving text from stateConfig
|
6
|
-
*/
|
7
|
-
export interface DisplayDataFieldMoleculeProps extends MuiTypographyProps {
|
8
|
-
sourceDataModelField?: string;
|
9
|
-
/** If you want custom background color around the text */
|
10
|
-
backgroundColor?: string;
|
11
|
-
/** Text color */
|
12
|
-
textColor?: string;
|
13
|
-
/** Whether text should wrap. If falsy => MUI uses "noWrap" */
|
14
|
-
wrap?: boolean;
|
15
|
-
/** Additional margin/padding props */
|
16
|
-
marginTop?: string;
|
17
|
-
marginRight?: string;
|
18
|
-
marginBottom?: string;
|
19
|
-
marginLeft?: string;
|
20
|
-
paddingTop?: string;
|
21
|
-
paddingRight?: string;
|
22
|
-
paddingBottom?: string;
|
23
|
-
paddingLeft?: string;
|
24
|
-
/**
|
25
|
-
* If you want a custom ID or attach config style
|
26
|
-
*/
|
27
|
-
htmlElementId?: string;
|
28
|
-
configurationsItemInfo?: ConfigurationItemInfo;
|
29
|
-
}
|
30
|
-
export declare const DisplayDataFieldMolecule: React.FC<DisplayDataFieldMoleculeProps>;
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { DisplayDataFieldMoleculeProps } from './DisplayDataFieldMolecule';
|
2
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
3
|
-
export default _default;
|
4
|
-
declare type StoryProps = DisplayDataFieldMoleculeProps & {
|
5
|
-
sourceDataModelFieldValue?: string;
|
6
|
-
};
|
7
|
-
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryProps>;
|