@zealicsolutions/web-ui 1.0.30 → 1.0.31-beta.0
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 +15 -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 +15 -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 +189 -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,9 +1261,13 @@ 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 {
|
@@ -1250,10 +1276,10 @@ interface DatePickerMoleculeProps extends DatePickerProps {
|
|
1250
1276
|
configurationItemInfo?: any;
|
1251
1277
|
text: string;
|
1252
1278
|
borderColor?: string;
|
1253
|
-
fontSize?:
|
1254
|
-
fontFamily?:
|
1255
|
-
fontWeight?:
|
1256
|
-
textColor?:
|
1279
|
+
fontSize?: string | number;
|
1280
|
+
fontFamily?: string;
|
1281
|
+
fontWeight?: string | number;
|
1282
|
+
textColor?: string;
|
1257
1283
|
iconColor?: IconRendererProps$1['color'];
|
1258
1284
|
minDate?: string;
|
1259
1285
|
maxDate?: string;
|
@@ -1268,20 +1294,43 @@ interface DatePickerMoleculeProps extends DatePickerProps {
|
|
1268
1294
|
paddingBottom?: string;
|
1269
1295
|
name: string;
|
1270
1296
|
sourceDataModelField?: string;
|
1297
|
+
/**
|
1298
|
+
* If true, disables the actual picker input and just displays
|
1299
|
+
* the date in read-only text form.
|
1300
|
+
*/
|
1301
|
+
isDisplayOnly?: boolean;
|
1302
|
+
/**
|
1303
|
+
* Format to use when displaying date in "display only" mode
|
1304
|
+
* or controlling the displayed text in the editable field.
|
1305
|
+
* e.g. 'MM/dd/yyyy' or 'yyyy-MM-dd'
|
1306
|
+
*/
|
1307
|
+
displayFormat?: string;
|
1271
1308
|
}
|
1272
1309
|
declare const DatePickerMolecule: react__default.FC<DatePickerMoleculeProps>;
|
1273
1310
|
|
1311
|
+
interface SelectMoleculeOption {
|
1312
|
+
id: string;
|
1313
|
+
value: string;
|
1314
|
+
}
|
1274
1315
|
interface SelectMoleculeProps {
|
1316
|
+
/** Label text (visible above or inside the select) */
|
1275
1317
|
text: string;
|
1276
|
-
options
|
1277
|
-
|
1278
|
-
|
1279
|
-
}[];
|
1318
|
+
/** Dropdown options. Each has { id, value } or you can supply string[] */
|
1319
|
+
options: SelectMoleculeOption[] | string[];
|
1320
|
+
/** For a placeholder, you might use the first item or do a custom approach */
|
1280
1321
|
placeholderText?: string;
|
1281
|
-
|
1322
|
+
/** If true, the field is required in form validation */
|
1282
1323
|
required?: boolean;
|
1324
|
+
/** Use this text if required == true and no value selected */
|
1325
|
+
requiredErrorText?: string;
|
1326
|
+
/** Use this text if user fails some extra validation pattern */
|
1327
|
+
validationErrorText?: string;
|
1328
|
+
/** If true, show a text label instead of an interactive dropdown */
|
1329
|
+
isDisplayOnly?: boolean;
|
1330
|
+
/** CSS style props */
|
1331
|
+
fontSize?: number | string;
|
1283
1332
|
fontFamily?: TypographyProps['fontFamily'];
|
1284
|
-
fontWeight?: 'normal' | 'bold';
|
1333
|
+
fontWeight?: 'normal' | 'bold' | number;
|
1285
1334
|
textColor?: string;
|
1286
1335
|
textAlign?: TypographyProps['textAlign'];
|
1287
1336
|
borderColor?: string;
|
@@ -1295,8 +1344,11 @@ interface SelectMoleculeProps {
|
|
1295
1344
|
paddingTop?: string;
|
1296
1345
|
paddingRight?: string;
|
1297
1346
|
paddingBottom?: string;
|
1347
|
+
/** Additional config from system (e.g. for selection in config mode) */
|
1298
1348
|
configurationItemInfo?: ConfigurationItemInfo$1;
|
1349
|
+
/** The name of the field in react-hook-form */
|
1299
1350
|
name: string;
|
1351
|
+
/** The data field in global stateConfig to populate/initialize value */
|
1300
1352
|
sourceDataModelField?: string;
|
1301
1353
|
}
|
1302
1354
|
declare const SelectMolecule: react__default.FC<SelectMoleculeProps>;
|
@@ -1631,16 +1683,27 @@ declare type TabsItemDTO = BaseItem & {
|
|
1631
1683
|
};
|
1632
1684
|
|
1633
1685
|
interface EmailInputFieldProps {
|
1686
|
+
/** If true, show the email as text only (no editing). */
|
1687
|
+
isDisplayOnly?: boolean;
|
1688
|
+
/** If true, do required validation in RHF + show MUI asterisk. */
|
1634
1689
|
required?: boolean;
|
1690
|
+
requiredErrorText?: string;
|
1691
|
+
validationErrorText?: string;
|
1692
|
+
/** Basic label & placeholder */
|
1693
|
+
text?: string;
|
1694
|
+
placeholderText?: string;
|
1695
|
+
/** If true, apply an email text mask in the editable field. */
|
1696
|
+
masked?: boolean;
|
1697
|
+
multiLine?: boolean;
|
1698
|
+
/** Basic styling props */
|
1635
1699
|
backgroundColor?: string;
|
1636
|
-
|
1700
|
+
borderColor?: string;
|
1637
1701
|
color?: string;
|
1638
1702
|
fontSize?: number | string;
|
1639
1703
|
fontFamily?: string;
|
1640
|
-
fontWeight?: 'normal' | 'bold';
|
1641
|
-
|
1642
|
-
|
1643
|
-
borderColor?: string;
|
1704
|
+
fontWeight?: 'normal' | 'bold' | number;
|
1705
|
+
textAlign?: 'inherit' | 'left' | 'center' | 'right' | 'justify';
|
1706
|
+
/** Spacing */
|
1644
1707
|
marginLeft?: string;
|
1645
1708
|
marginTop?: string;
|
1646
1709
|
marginRight?: string;
|
@@ -1649,24 +1712,29 @@ interface EmailInputFieldProps {
|
|
1649
1712
|
paddingTop?: string;
|
1650
1713
|
paddingRight?: string;
|
1651
1714
|
paddingBottom?: string;
|
1652
|
-
text?: string;
|
1653
|
-
placeholderText?: string;
|
1654
|
-
configurationItemInfo?: ConfigurationItemInfo$1;
|
1655
1715
|
name: string;
|
1656
1716
|
sourceDataModelField?: string;
|
1717
|
+
configurationItemInfo?: ConfigurationItemInfo$1;
|
1657
1718
|
}
|
1658
1719
|
|
1659
1720
|
interface PhoneNumberInputFieldProps {
|
1721
|
+
/** If true, we skip rendering the textfield and just show a text display. */
|
1722
|
+
isDisplayOnly?: boolean;
|
1723
|
+
/** If true, we do required validation in react-hook-form + show asterisk in MUI FormControl. */
|
1660
1724
|
required?: boolean;
|
1725
|
+
requiredErrorText?: string;
|
1726
|
+
validationErrorText?: string;
|
1727
|
+
text?: string;
|
1728
|
+
placeholderText?: string;
|
1729
|
+
masked?: boolean;
|
1730
|
+
/** Basic style props */
|
1661
1731
|
backgroundColor?: string;
|
1662
|
-
|
1663
|
-
|
1732
|
+
borderColor?: string;
|
1733
|
+
textColor?: string;
|
1664
1734
|
fontSize?: number | string;
|
1665
1735
|
fontFamily?: string;
|
1666
|
-
fontWeight?: 'normal' | 'bold';
|
1667
|
-
|
1668
|
-
multiLine?: boolean;
|
1669
|
-
borderColor?: string;
|
1736
|
+
fontWeight?: 'normal' | 'bold' | number;
|
1737
|
+
/** Spacing */
|
1670
1738
|
marginLeft?: string;
|
1671
1739
|
marginTop?: string;
|
1672
1740
|
marginRight?: string;
|
@@ -1675,22 +1743,34 @@ interface PhoneNumberInputFieldProps {
|
|
1675
1743
|
paddingTop?: string;
|
1676
1744
|
paddingRight?: string;
|
1677
1745
|
paddingBottom?: string;
|
1678
|
-
text?: string;
|
1679
|
-
placeholderText?: string;
|
1680
|
-
configurationItemInfo?: ConfigurationItemInfo$1;
|
1681
1746
|
name: string;
|
1682
1747
|
sourceDataModelField?: string;
|
1748
|
+
configurationItemInfo?: ConfigurationItemInfo$1;
|
1683
1749
|
}
|
1684
1750
|
|
1685
1751
|
interface NumericInputFieldProps {
|
1752
|
+
/** If true, the field shows as text-only (no editing). */
|
1753
|
+
isDisplayOnly?: boolean;
|
1754
|
+
/** If true, we do required validation in form + show MUI asterisk. */
|
1686
1755
|
required?: boolean;
|
1756
|
+
requiredErrorText?: string;
|
1757
|
+
validationErrorText?: string;
|
1758
|
+
/** Label text for the field */
|
1759
|
+
text?: string;
|
1760
|
+
placeholderText?: string;
|
1687
1761
|
backgroundColor?: string;
|
1688
|
-
|
1762
|
+
borderColor?: string;
|
1689
1763
|
textColor?: string;
|
1690
1764
|
fontSize?: number | string;
|
1691
1765
|
fontFamily?: string;
|
1692
|
-
fontWeight?: 'normal' | 'bold';
|
1693
|
-
|
1766
|
+
fontWeight?: 'normal' | 'bold' | number;
|
1767
|
+
/** If false => we disallow negative input. */
|
1768
|
+
allowNegative?: boolean;
|
1769
|
+
/** e.g. "0.01" => step=0.01, 2 decimals */
|
1770
|
+
numericPrecision?: string;
|
1771
|
+
name: string;
|
1772
|
+
sourceDataModelField?: string;
|
1773
|
+
/** Basic spacing/styling */
|
1694
1774
|
marginLeft?: string;
|
1695
1775
|
marginTop?: string;
|
1696
1776
|
marginRight?: string;
|
@@ -1699,44 +1779,7 @@ interface NumericInputFieldProps {
|
|
1699
1779
|
paddingTop?: string;
|
1700
1780
|
paddingRight?: string;
|
1701
1781
|
paddingBottom?: string;
|
1702
|
-
text?: string;
|
1703
|
-
placeholderText?: string;
|
1704
1782
|
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
1783
|
}
|
1741
1784
|
|
1742
1785
|
declare type ActionTypes = 'link' | 'popup' | 'drawer' | 'download' | 'submit' | 'reset' | 'destroy';
|
@@ -1846,7 +1889,7 @@ declare type ObjectStateProperties = {
|
|
1846
1889
|
pmiObjectId: string | null;
|
1847
1890
|
};
|
1848
1891
|
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' | '
|
1892
|
+
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
1893
|
/**
|
1851
1894
|
* [ NEW MOLECULE: 3 ] Second Step is to add the new molecule name to this list, in snake case format
|
1852
1895
|
*
|
@@ -2026,7 +2069,7 @@ interface AlertMoleculeType extends BaseMoleculeType {
|
|
2026
2069
|
};
|
2027
2070
|
}
|
2028
2071
|
interface BasicTextFieldMoleculeType extends BaseMoleculeType {
|
2029
|
-
type: 'basic_text_field';
|
2072
|
+
type: 'basic_text_field' | 'basic_text_display_field';
|
2030
2073
|
config: {
|
2031
2074
|
props: BasicTextFieldProps$1 & {
|
2032
2075
|
dataCaptureName?: string;
|
@@ -2034,21 +2077,28 @@ interface BasicTextFieldMoleculeType extends BaseMoleculeType {
|
|
2034
2077
|
};
|
2035
2078
|
properties: {
|
2036
2079
|
text: TextProperties;
|
2037
|
-
dataCapture: DataCaptureProperties;
|
2038
2080
|
placeholderText: TextProperties;
|
2081
|
+
requiredErrorText: TextProperties;
|
2082
|
+
validationErrorText: TextProperties;
|
2083
|
+
required: BooleanProperties;
|
2084
|
+
dataCapture: DataCaptureProperties;
|
2039
2085
|
};
|
2040
2086
|
}
|
2041
2087
|
interface RatingMoleculeType extends BaseMoleculeType {
|
2042
|
-
type: 'rating';
|
2088
|
+
type: 'rating' | 'rating_display_field';
|
2043
2089
|
config: {
|
2044
2090
|
props: RatingMoleculeProps$1;
|
2045
2091
|
};
|
2046
2092
|
properties: {
|
2047
2093
|
text: TextProperties;
|
2094
|
+
requiredErrorText: TextProperties;
|
2095
|
+
validationErrorText: TextProperties;
|
2096
|
+
required: BooleanProperties;
|
2097
|
+
dataCapture: DataCaptureProperties;
|
2048
2098
|
};
|
2049
2099
|
}
|
2050
2100
|
interface SwitchMoleculeType extends BaseMoleculeType {
|
2051
|
-
type: 'switch';
|
2101
|
+
type: 'switch' | 'switch_display_field';
|
2052
2102
|
config: {
|
2053
2103
|
props: AlertMoleculeProps$1 & {
|
2054
2104
|
dataCaptureName?: string;
|
@@ -2057,21 +2107,27 @@ interface SwitchMoleculeType extends BaseMoleculeType {
|
|
2057
2107
|
properties: {
|
2058
2108
|
text: TextProperties;
|
2059
2109
|
subText: TextProperties;
|
2110
|
+
requiredErrorText: TextProperties;
|
2111
|
+
validationErrorText: TextProperties;
|
2112
|
+
required: BooleanProperties;
|
2060
2113
|
dataCapture: DataCaptureProperties;
|
2061
2114
|
};
|
2062
2115
|
}
|
2063
2116
|
interface SliderMoleculeType extends BaseMoleculeType {
|
2064
|
-
type: 'slider';
|
2117
|
+
type: 'slider' | 'slider_display_field';
|
2065
2118
|
config: {
|
2066
2119
|
props: SliderMoleculeProps$1;
|
2067
2120
|
};
|
2068
2121
|
properties: {
|
2069
2122
|
text: TextProperties;
|
2123
|
+
requiredErrorText: TextProperties;
|
2124
|
+
validationErrorText: TextProperties;
|
2125
|
+
required: BooleanProperties;
|
2070
2126
|
dataCapture: DataCaptureProperties;
|
2071
2127
|
};
|
2072
2128
|
}
|
2073
2129
|
interface SelectMoleculeType extends BaseMoleculeType {
|
2074
|
-
type: 'select';
|
2130
|
+
type: 'select' | 'select_display_field';
|
2075
2131
|
config: {
|
2076
2132
|
props: SelectMoleculeProps$1 & {
|
2077
2133
|
dataCaptureName?: string;
|
@@ -2079,11 +2135,14 @@ interface SelectMoleculeType extends BaseMoleculeType {
|
|
2079
2135
|
};
|
2080
2136
|
properties: {
|
2081
2137
|
text: TextProperties;
|
2138
|
+
requiredErrorText: TextProperties;
|
2139
|
+
validationErrorText: TextProperties;
|
2140
|
+
required: BooleanProperties;
|
2082
2141
|
dataCapture: DataCaptureProperties;
|
2083
2142
|
};
|
2084
2143
|
}
|
2085
2144
|
interface DatePickerMoleculeType extends BaseMoleculeType {
|
2086
|
-
type: 'date_picker';
|
2145
|
+
type: 'date_picker' | 'date_display_field';
|
2087
2146
|
config: {
|
2088
2147
|
props: DatePickerMoleculeProps$1 & {
|
2089
2148
|
dataCaptureName?: string;
|
@@ -2091,11 +2150,14 @@ interface DatePickerMoleculeType extends BaseMoleculeType {
|
|
2091
2150
|
};
|
2092
2151
|
properties: {
|
2093
2152
|
text: TextProperties;
|
2153
|
+
requiredErrorText: TextProperties;
|
2154
|
+
validationErrorText: TextProperties;
|
2155
|
+
required: BooleanProperties;
|
2094
2156
|
dataCapture: DataCaptureProperties;
|
2095
2157
|
};
|
2096
2158
|
}
|
2097
2159
|
interface EmailInputFieldMoleculeType extends BaseMoleculeType {
|
2098
|
-
type: 'email_input_field';
|
2160
|
+
type: 'email_input_field' | 'email_display_field';
|
2099
2161
|
config: {
|
2100
2162
|
props: EmailInputFieldProps & {
|
2101
2163
|
dataCaptureName?: string;
|
@@ -2104,11 +2166,14 @@ interface EmailInputFieldMoleculeType extends BaseMoleculeType {
|
|
2104
2166
|
properties: {
|
2105
2167
|
text: TextProperties;
|
2106
2168
|
placeholderText: TextProperties;
|
2169
|
+
requiredErrorText: TextProperties;
|
2170
|
+
validationErrorText: TextProperties;
|
2171
|
+
required: BooleanProperties;
|
2107
2172
|
dataCapture: DataCaptureProperties;
|
2108
2173
|
};
|
2109
2174
|
}
|
2110
2175
|
interface PhoneNumberInputFieldMoleculeType extends BaseMoleculeType {
|
2111
|
-
type: 'phone_number_input_field';
|
2176
|
+
type: 'phone_number_input_field' | 'phone_number_display_field';
|
2112
2177
|
config: {
|
2113
2178
|
props: PhoneNumberInputFieldProps & {
|
2114
2179
|
dataCaptureName?: string;
|
@@ -2117,11 +2182,14 @@ interface PhoneNumberInputFieldMoleculeType extends BaseMoleculeType {
|
|
2117
2182
|
properties: {
|
2118
2183
|
text: TextProperties;
|
2119
2184
|
placeholderText: TextProperties;
|
2185
|
+
requiredErrorText: TextProperties;
|
2186
|
+
validationErrorText: TextProperties;
|
2187
|
+
required: BooleanProperties;
|
2120
2188
|
dataCapture: DataCaptureProperties;
|
2121
2189
|
};
|
2122
2190
|
}
|
2123
2191
|
interface NumericInputFieldMoleculeType extends BaseMoleculeType {
|
2124
|
-
type: 'numeric_input_field';
|
2192
|
+
type: 'numeric_input_field' | 'numeric_display_field';
|
2125
2193
|
config: {
|
2126
2194
|
props: NumericInputFieldProps & {
|
2127
2195
|
dataCaptureName?: string;
|
@@ -2130,11 +2198,14 @@ interface NumericInputFieldMoleculeType extends BaseMoleculeType {
|
|
2130
2198
|
properties: {
|
2131
2199
|
text: TextProperties;
|
2132
2200
|
placeholderText: TextProperties;
|
2201
|
+
requiredErrorText: TextProperties;
|
2202
|
+
validationErrorText: TextProperties;
|
2203
|
+
required: BooleanProperties;
|
2133
2204
|
dataCapture: DataCaptureProperties;
|
2134
2205
|
};
|
2135
2206
|
}
|
2136
2207
|
interface CurrencyInputFieldMoleculeType extends BaseMoleculeType {
|
2137
|
-
type: 'currency_input_field';
|
2208
|
+
type: 'currency_input_field' | 'currency_display_field';
|
2138
2209
|
config: {
|
2139
2210
|
props: NumericInputFieldProps & {
|
2140
2211
|
dataCaptureName?: string;
|
@@ -2143,19 +2214,13 @@ interface CurrencyInputFieldMoleculeType extends BaseMoleculeType {
|
|
2143
2214
|
properties: {
|
2144
2215
|
text: TextProperties;
|
2145
2216
|
placeholderText: TextProperties;
|
2217
|
+
requiredErrorText: TextProperties;
|
2218
|
+
validationErrorText: TextProperties;
|
2219
|
+
required: BooleanProperties;
|
2146
2220
|
dataCapture: DataCaptureProperties;
|
2147
2221
|
};
|
2148
2222
|
}
|
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<{
|
2223
|
+
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
2224
|
form: UseFormReturn<any>;
|
2160
2225
|
formData: AnyObject$1;
|
2161
2226
|
setFormData: Dispatch<SetStateAction<AnyObject$1>>;
|
@@ -2355,4 +2420,4 @@ declare type FormOrganismItemProps = {
|
|
2355
2420
|
};
|
2356
2421
|
declare const FormOrganismItem: ({ formData, setFormData, isMobile, ...props }: FormOrganismItemProps) => _emotion_react_jsx_runtime.JSX.Element | null;
|
2357
2422
|
|
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,
|
2423
|
+
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>;
|