@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.
Files changed (219) hide show
  1. package/dist/cjs/containers/types/moleculeTypes.d.ts +44 -23
  2. package/dist/cjs/index.js +491 -491
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/cjs/molecules/BasicTextField/BasicTextField.d.ts +3 -0
  5. package/dist/cjs/molecules/BasicTextField/BasicTextField.stories.d.ts +6 -1
  6. package/dist/cjs/molecules/CurrencyInputtField/CurrencyInputField.d.ts +3 -10
  7. package/dist/cjs/molecules/CurrencyInputtField/CurrencyInputField.stories.d.ts +6 -1
  8. package/dist/cjs/molecules/DatePicker/DatePicker.d.ts +15 -5
  9. package/dist/cjs/molecules/DatePicker/DatePicker.stories.d.ts +2 -0
  10. package/dist/cjs/molecules/EmailInputField/EmailInputField.d.ts +22 -8
  11. package/dist/cjs/molecules/EmailInputField/EmailInputField.stories.d.ts +6 -1
  12. package/dist/cjs/molecules/NumericInputField/NumericInputField.d.ts +23 -13
  13. package/dist/cjs/molecules/NumericInputField/NumericInputField.stories.d.ts +7 -1
  14. package/dist/cjs/molecules/PhoneNumberInputField/PhoneNumberInputField.d.ts +30 -9
  15. package/dist/cjs/molecules/PhoneNumberInputField/PhoneNumberInputField.stories.d.ts +7 -1
  16. package/dist/cjs/molecules/Rating/Rating.d.ts +25 -7
  17. package/dist/cjs/molecules/Rating/Rating.stories.d.ts +8 -2
  18. package/dist/cjs/molecules/Select/Select.d.ts +21 -6
  19. package/dist/cjs/molecules/Select/Select.stories.d.ts +3 -2
  20. package/dist/cjs/molecules/Slider/Slider.d.ts +17 -8
  21. package/dist/cjs/molecules/Slider/Slider.stories.d.ts +8 -2
  22. package/dist/cjs/molecules/Switch/Switch.d.ts +15 -18
  23. package/dist/cjs/molecules/Switch/Switch.stories.d.ts +7 -1
  24. package/dist/esm/_virtual/index6.js +1 -1
  25. package/dist/esm/_virtual/index7.js +1 -1
  26. package/dist/esm/containers/types/moleculeTypes.d.ts +44 -23
  27. package/dist/esm/molecules/BaseMolecule.js +1 -1
  28. package/dist/esm/molecules/BaseMolecule.js.map +1 -1
  29. package/dist/esm/molecules/BasicTextField/BasicTextField.d.ts +3 -0
  30. package/dist/esm/molecules/BasicTextField/BasicTextField.js +1 -1
  31. package/dist/esm/molecules/BasicTextField/BasicTextField.js.map +1 -1
  32. package/dist/esm/molecules/BasicTextField/BasicTextField.stories.d.ts +6 -1
  33. package/dist/esm/molecules/CurrencyInputtField/CurrencyInputField.d.ts +3 -10
  34. package/dist/esm/molecules/CurrencyInputtField/CurrencyInputField.js +1 -1
  35. package/dist/esm/molecules/CurrencyInputtField/CurrencyInputField.js.map +1 -1
  36. package/dist/esm/molecules/CurrencyInputtField/CurrencyInputField.stories.d.ts +6 -1
  37. package/dist/esm/molecules/DatePicker/DatePicker.d.ts +15 -5
  38. package/dist/esm/molecules/DatePicker/DatePicker.js +1 -1
  39. package/dist/esm/molecules/DatePicker/DatePicker.js.map +1 -1
  40. package/dist/esm/molecules/DatePicker/DatePicker.stories.d.ts +2 -0
  41. package/dist/esm/molecules/EmailInputField/EmailInputField.d.ts +22 -8
  42. package/dist/esm/molecules/EmailInputField/EmailInputField.js +1 -1
  43. package/dist/esm/molecules/EmailInputField/EmailInputField.js.map +1 -1
  44. package/dist/esm/molecules/EmailInputField/EmailInputField.stories.d.ts +6 -1
  45. package/dist/esm/molecules/NumericInputField/NumericInputField.d.ts +23 -13
  46. package/dist/esm/molecules/NumericInputField/NumericInputField.js +1 -1
  47. package/dist/esm/molecules/NumericInputField/NumericInputField.js.map +1 -1
  48. package/dist/esm/molecules/NumericInputField/NumericInputField.stories.d.ts +7 -1
  49. package/dist/esm/molecules/PasswordSetup/PasswordSetup.js +1 -1
  50. package/dist/esm/molecules/PasswordSetup/PasswordSetup.js.map +1 -1
  51. package/dist/esm/molecules/PhoneNumberInputField/PhoneNumberInputField.d.ts +30 -9
  52. package/dist/esm/molecules/PhoneNumberInputField/PhoneNumberInputField.js +1 -1
  53. package/dist/esm/molecules/PhoneNumberInputField/PhoneNumberInputField.js.map +1 -1
  54. package/dist/esm/molecules/PhoneNumberInputField/PhoneNumberInputField.stories.d.ts +7 -1
  55. package/dist/esm/molecules/Rating/Rating.d.ts +25 -7
  56. package/dist/esm/molecules/Rating/Rating.js +1 -1
  57. package/dist/esm/molecules/Rating/Rating.js.map +1 -1
  58. package/dist/esm/molecules/Rating/Rating.stories.d.ts +8 -2
  59. package/dist/esm/molecules/Select/Select.d.ts +21 -6
  60. package/dist/esm/molecules/Select/Select.js +1 -1
  61. package/dist/esm/molecules/Select/Select.js.map +1 -1
  62. package/dist/esm/molecules/Select/Select.stories.d.ts +3 -2
  63. package/dist/esm/molecules/Slider/Slider.d.ts +17 -8
  64. package/dist/esm/molecules/Slider/Slider.js +1 -1
  65. package/dist/esm/molecules/Slider/Slider.js.map +1 -1
  66. package/dist/esm/molecules/Slider/Slider.stories.d.ts +8 -2
  67. package/dist/esm/molecules/Switch/Switch.d.ts +15 -18
  68. package/dist/esm/molecules/Switch/Switch.js +1 -1
  69. package/dist/esm/molecules/Switch/Switch.js.map +1 -1
  70. package/dist/esm/molecules/Switch/Switch.stories.d.ts +7 -1
  71. package/dist/esm/node_modules/@mui/material/Accordion/Accordion.js +1 -1
  72. package/dist/esm/node_modules/@mui/material/AccordionDetails/AccordionDetails.js +1 -1
  73. package/dist/esm/node_modules/@mui/material/AccordionSummary/AccordionSummary.js +1 -1
  74. package/dist/esm/node_modules/@mui/material/Alert/Alert.js +1 -1
  75. package/dist/esm/node_modules/@mui/material/AlertTitle/AlertTitle.js +1 -1
  76. package/dist/esm/node_modules/@mui/material/Backdrop/Backdrop.js +1 -1
  77. package/dist/esm/node_modules/@mui/material/Badge/Badge.js +1 -1
  78. package/dist/esm/node_modules/@mui/material/Box/Box.js +1 -1
  79. package/dist/esm/node_modules/@mui/material/Button/Button.js +1 -1
  80. package/dist/esm/node_modules/@mui/material/ButtonBase/ButtonBase.js +1 -1
  81. package/dist/esm/node_modules/@mui/material/ButtonBase/Ripple.js +1 -1
  82. package/dist/esm/node_modules/@mui/material/ButtonBase/TouchRipple.js +1 -1
  83. package/dist/esm/node_modules/@mui/material/Card/Card.js +1 -1
  84. package/dist/esm/node_modules/@mui/material/CardMedia/CardMedia.js +1 -1
  85. package/dist/esm/node_modules/@mui/material/Checkbox/Checkbox.js +1 -1
  86. package/dist/esm/node_modules/@mui/material/Chip/Chip.js +1 -1
  87. package/dist/esm/node_modules/@mui/material/CircularProgress/CircularProgress.js +1 -1
  88. package/dist/esm/node_modules/@mui/material/Collapse/Collapse.js +1 -1
  89. package/dist/esm/node_modules/@mui/material/CssBaseline/CssBaseline.js +1 -1
  90. package/dist/esm/node_modules/@mui/material/DefaultPropsProvider/DefaultPropsProvider.js +1 -1
  91. package/dist/esm/node_modules/@mui/material/Dialog/Dialog.js +1 -1
  92. package/dist/esm/node_modules/@mui/material/DialogActions/DialogActions.js +1 -1
  93. package/dist/esm/node_modules/@mui/material/DialogContent/DialogContent.js +1 -1
  94. package/dist/esm/node_modules/@mui/material/Divider/Divider.js +1 -1
  95. package/dist/esm/node_modules/@mui/material/Divider/dividerClasses.js +1 -1
  96. package/dist/esm/node_modules/@mui/material/Divider/dividerClasses.js.map +1 -1
  97. package/dist/esm/node_modules/@mui/material/Drawer/Drawer.js +1 -1
  98. package/dist/esm/node_modules/@mui/material/Fade/Fade.js +1 -1
  99. package/dist/esm/node_modules/@mui/material/FilledInput/FilledInput.js +1 -1
  100. package/dist/esm/node_modules/@mui/material/FormControl/FormControl.js +1 -1
  101. package/dist/esm/node_modules/@mui/material/FormControlLabel/FormControlLabel.js +1 -1
  102. package/dist/esm/node_modules/@mui/material/FormGroup/FormGroup.js +1 -1
  103. package/dist/esm/node_modules/@mui/material/FormHelperText/FormHelperText.js +1 -1
  104. package/dist/esm/node_modules/@mui/material/FormLabel/FormLabel.js +1 -1
  105. package/dist/esm/node_modules/@mui/material/GlobalStyles/GlobalStyles.js +1 -1
  106. package/dist/esm/node_modules/@mui/material/Grow/Grow.js +1 -1
  107. package/dist/esm/node_modules/@mui/material/IconButton/IconButton.js +1 -1
  108. package/dist/esm/node_modules/@mui/material/Input/Input.js +1 -1
  109. package/dist/esm/node_modules/@mui/material/InputAdornment/InputAdornment.js +1 -1
  110. package/dist/esm/node_modules/@mui/material/InputBase/InputBase.js +1 -1
  111. package/dist/esm/node_modules/@mui/material/InputLabel/InputLabel.js +1 -1
  112. package/dist/esm/node_modules/@mui/material/Link/Link.js +1 -1
  113. package/dist/esm/node_modules/@mui/material/List/List.js +1 -1
  114. package/dist/esm/node_modules/@mui/material/ListItem/ListItem.js +1 -1
  115. package/dist/esm/node_modules/@mui/material/ListItemButton/ListItemButton.js +1 -1
  116. package/dist/esm/node_modules/@mui/material/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  117. package/dist/esm/node_modules/@mui/material/ListItemText/ListItemText.js +1 -1
  118. package/dist/esm/node_modules/@mui/material/Menu/Menu.js +1 -1
  119. package/dist/esm/node_modules/@mui/material/MenuItem/MenuItem.js +1 -1
  120. package/dist/esm/node_modules/@mui/material/MenuList/MenuList.js +1 -1
  121. package/dist/esm/node_modules/@mui/material/Modal/Modal.js +1 -1
  122. package/dist/esm/node_modules/@mui/material/NativeSelect/NativeSelectInput.js +1 -1
  123. package/dist/esm/node_modules/@mui/material/OutlinedInput/NotchedOutline.js +1 -1
  124. package/dist/esm/node_modules/@mui/material/OutlinedInput/OutlinedInput.js +1 -1
  125. package/dist/esm/node_modules/@mui/material/Paper/Paper.js +1 -1
  126. package/dist/esm/node_modules/@mui/material/Popover/Popover.js +1 -1
  127. package/dist/esm/node_modules/@mui/material/Popper/BasePopper.js +1 -1
  128. package/dist/esm/node_modules/@mui/material/Popper/Popper.js +1 -1
  129. package/dist/esm/node_modules/@mui/material/Portal/Portal.js +1 -1
  130. package/dist/esm/node_modules/@mui/material/Radio/Radio.js +1 -1
  131. package/dist/esm/node_modules/@mui/material/Radio/RadioButtonIcon.js +1 -1
  132. package/dist/esm/node_modules/@mui/material/RadioGroup/RadioGroup.js +1 -1
  133. package/dist/esm/node_modules/@mui/material/Rating/Rating.js +1 -1
  134. package/dist/esm/node_modules/@mui/material/Select/Select.js +1 -1
  135. package/dist/esm/node_modules/@mui/material/Select/SelectInput.js +1 -1
  136. package/dist/esm/node_modules/@mui/material/Slide/Slide.js +1 -1
  137. package/dist/esm/node_modules/@mui/material/Slider/Slider.js +1 -1
  138. package/dist/esm/node_modules/@mui/material/Slider/SliderValueLabel.js +1 -1
  139. package/dist/esm/node_modules/@mui/material/Stack/Stack.js +1 -1
  140. package/dist/esm/node_modules/@mui/material/Step/Step.js +1 -1
  141. package/dist/esm/node_modules/@mui/material/StepConnector/StepConnector.js +1 -1
  142. package/dist/esm/node_modules/@mui/material/StepContent/StepContent.js +1 -1
  143. package/dist/esm/node_modules/@mui/material/StepIcon/StepIcon.js +1 -1
  144. package/dist/esm/node_modules/@mui/material/StepLabel/StepLabel.js +1 -1
  145. package/dist/esm/node_modules/@mui/material/Stepper/Stepper.js +1 -1
  146. package/dist/esm/node_modules/@mui/material/SvgIcon/SvgIcon.js +1 -1
  147. package/dist/esm/node_modules/@mui/material/Switch/Switch.js +1 -1
  148. package/dist/esm/node_modules/@mui/material/Tab/Tab.js +1 -1
  149. package/dist/esm/node_modules/@mui/material/TabScrollButton/TabScrollButton.js +1 -1
  150. package/dist/esm/node_modules/@mui/material/Tabs/ScrollbarSize.js +1 -1
  151. package/dist/esm/node_modules/@mui/material/Tabs/Tabs.js +1 -1
  152. package/dist/esm/node_modules/@mui/material/TextField/TextField.js +1 -1
  153. package/dist/esm/node_modules/@mui/material/TextareaAutosize/TextareaAutosize.js +1 -1
  154. package/dist/esm/node_modules/@mui/material/Typography/Typography.js +1 -1
  155. package/dist/esm/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap.js +1 -1
  156. package/dist/esm/node_modules/@mui/material/internal/SwitchBase.js +1 -1
  157. package/dist/esm/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.js +1 -1
  158. package/dist/esm/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.js +1 -1
  159. package/dist/esm/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js +1 -1
  160. package/dist/esm/node_modules/@mui/system/esm/Box/Box.js +1 -1
  161. package/dist/esm/node_modules/@mui/system/esm/Container/Container.js +1 -1
  162. package/dist/esm/node_modules/@mui/system/esm/Container/createContainer.js +1 -1
  163. package/dist/esm/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js +1 -1
  164. package/dist/esm/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js +1 -1
  165. package/dist/esm/node_modules/@mui/system/esm/Grid/Grid.js +1 -1
  166. package/dist/esm/node_modules/@mui/system/esm/Grid/createGrid.js +1 -1
  167. package/dist/esm/node_modules/@mui/system/esm/RtlProvider/index.js +1 -1
  168. package/dist/esm/node_modules/@mui/system/esm/Stack/Stack.js +1 -1
  169. package/dist/esm/node_modules/@mui/system/esm/Stack/createStack.js +1 -1
  170. package/dist/esm/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js +1 -1
  171. package/dist/esm/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js +1 -1
  172. package/dist/esm/node_modules/@mui/system/esm/responsivePropType/responsivePropType.js +1 -1
  173. package/dist/esm/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +1 -1
  174. package/dist/esm/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js +1 -1
  175. package/dist/esm/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js +1 -1
  176. package/dist/esm/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js +1 -1
  177. package/dist/esm/node_modules/@mui/utils/esm/refType/refType.js +1 -1
  178. package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/DateCalendar.js +1 -1
  179. package/dist/esm/node_modules/@mui/x-date-pickers/DateField/DateField.js +1 -1
  180. package/dist/esm/node_modules/@mui/x-date-pickers/DatePicker/DatePicker.js +1 -1
  181. package/dist/esm/node_modules/@mui/x-date-pickers/DatePicker/DatePickerToolbar.js +1 -1
  182. package/dist/esm/node_modules/@mui/x-date-pickers/DesktopDatePicker/DesktopDatePicker.js +1 -1
  183. package/dist/esm/node_modules/@mui/x-date-pickers/LocalizationProvider/LocalizationProvider.js +1 -1
  184. package/dist/esm/node_modules/@mui/x-date-pickers/MobileDatePicker/MobileDatePicker.js +1 -1
  185. package/dist/esm/node_modules/@mui/x-date-pickers/MonthCalendar/MonthCalendar.js +1 -1
  186. package/dist/esm/node_modules/@mui/x-date-pickers/PickersActionBar/PickersActionBar.js +1 -1
  187. package/dist/esm/node_modules/@mui/x-date-pickers/PickersCalendarHeader/PickersCalendarHeader.js +1 -1
  188. package/dist/esm/node_modules/@mui/x-date-pickers/PickersDay/PickersDay.js +1 -1
  189. package/dist/esm/node_modules/@mui/x-date-pickers/PickersLayout/PickersLayout.js +1 -1
  190. package/dist/esm/node_modules/@mui/x-date-pickers/PickersSectionList/PickersSectionList.js +1 -1
  191. package/dist/esm/node_modules/@mui/x-date-pickers/PickersShortcuts/PickersShortcuts.js +1 -1
  192. package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersFilledInput/PickersFilledInput.js +1 -1
  193. package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersInput/PickersInput.js +1 -1
  194. package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersInputBase/PickersInputBase.js +1 -1
  195. package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +1 -1
  196. package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersTextField.js +1 -1
  197. package/dist/esm/node_modules/@mui/x-date-pickers/YearCalendar/YearCalendar.js +1 -1
  198. package/dist/esm/node_modules/prop-types/index.js +1 -1
  199. package/dist/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +1 -1
  200. package/dist/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +1 -1
  201. package/dist/esm/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  202. package/dist/esm/node_modules/rc-util/es/ref.js +1 -1
  203. package/dist/esm/node_modules/react-is/cjs/react-is.development.js +1 -1
  204. package/dist/esm/node_modules/react-is/cjs/react-is.production.min.js +1 -1
  205. package/dist/esm/node_modules/react-is/index.js +1 -1
  206. package/dist/esm/node_modules/react-transition-group/esm/CSSTransition.js +1 -1
  207. package/dist/esm/node_modules/react-transition-group/esm/ReplaceTransition.js +1 -1
  208. package/dist/esm/node_modules/react-transition-group/esm/SwitchTransition.js +1 -1
  209. package/dist/esm/node_modules/react-transition-group/esm/Transition.js +1 -1
  210. package/dist/esm/node_modules/react-transition-group/esm/TransitionGroup.js +1 -1
  211. package/dist/esm/node_modules/react-transition-group/esm/utils/PropTypes.js +1 -1
  212. package/dist/index.d.ts +189 -124
  213. package/package.json +1 -1
  214. package/dist/cjs/molecules/DisplayDataFieldMolecule/DisplayDataFieldMolecule.d.ts +0 -30
  215. package/dist/cjs/molecules/DisplayDataFieldMolecule/DisplayDataFieldMolecule.stories.d.ts +0 -7
  216. package/dist/esm/molecules/DisplayDataFieldMolecule/DisplayDataFieldMolecule.d.ts +0 -30
  217. package/dist/esm/molecules/DisplayDataFieldMolecule/DisplayDataFieldMolecule.js +0 -2
  218. package/dist/esm/molecules/DisplayDataFieldMolecule/DisplayDataFieldMolecule.js.map +0 -1
  219. package/dist/esm/molecules/DisplayDataFieldMolecule/DisplayDataFieldMolecule.stories.d.ts +0 -7
@@ -4,6 +4,8 @@ import { ConfigurationItemInfo } from 'containers';
4
4
  import { FieldValues, RegisterOptions } from 'react-hook-form';
5
5
  export interface BasicTextFieldProps extends MuiTextFieldProps {
6
6
  required?: boolean;
7
+ requiredErrorText?: string;
8
+ validationErrorText?: string;
7
9
  backgroundColor?: string;
8
10
  textAlign?: 'inherit' | 'left' | 'center' | 'right' | 'justify';
9
11
  color?: string;
@@ -28,5 +30,6 @@ export interface BasicTextFieldProps extends MuiTextFieldProps {
28
30
  name: string;
29
31
  rules?: Omit<RegisterOptions<FieldValues, string>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled'>;
30
32
  sourceDataModelField?: string;
33
+ isDisplayOnly?: boolean;
31
34
  }
32
35
  export declare const BasicTextField: React.FC<BasicTextFieldProps>;
@@ -1,4 +1,9 @@
1
1
  import { BasicTextFieldProps } from './BasicTextField';
2
2
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
3
  export default _default;
4
- export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, BasicTextFieldProps>;
4
+ declare type StoryProps = BasicTextFieldProps & {
5
+ sourceDataModelFieldValue?: string;
6
+ };
7
+ export declare const EditableText: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryProps>;
8
+ export declare const PasswordMasked: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryProps>;
9
+ export declare const DisplayOnly: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryProps>;
@@ -2,6 +2,9 @@ import React from 'react';
2
2
  import { ConfigurationItemInfo } from 'containers';
3
3
  export interface CurrencyInputFieldProps {
4
4
  required?: boolean;
5
+ requiredErrorText?: string;
6
+ validationErrorText?: string;
7
+ isDisplayOnly?: boolean;
5
8
  backgroundColor?: string;
6
9
  textAlign?: 'inherit' | 'left' | 'center' | 'right' | 'justify';
7
10
  textColor?: string;
@@ -21,18 +24,8 @@ export interface CurrencyInputFieldProps {
21
24
  placeholderText?: string;
22
25
  configurationItemInfo?: ConfigurationItemInfo;
23
26
  name: string;
24
- /**
25
- * A string representing the precision step for the numeric input
26
- * e.g. '1.0' or '0.05' or '0.001'
27
- */
28
27
  numericPrecision?: string;
29
- /**
30
- * The currency symbol to display, e.g. '$', '£', '€'.
31
- */
32
28
  currency?: string;
33
- /**
34
- * Whether to place the currency symbol on the left or right.
35
- */
36
29
  placement?: 'left' | 'right';
37
30
  sourceDataModelField?: string;
38
31
  }
@@ -1,4 +1,9 @@
1
1
  import { CurrencyInputFieldProps } from './CurrencyInputField';
2
2
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
3
  export default _default;
4
- export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, CurrencyInputFieldProps>;
4
+ export declare const Editable: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, CurrencyInputFieldProps>;
5
+ export declare const DisplayOnly: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, CurrencyInputFieldProps & {
6
+ sourceDataModelFieldValue?: string | undefined;
7
+ }>;
8
+ export declare const WithValidationError: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, CurrencyInputFieldProps>;
9
+ export declare const Standalone: () => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { DatePickerProps as MuiDatePickerProps } from '@mui/x-date-pickers';
3
- import { TypographyProps } from '@mui/material';
4
3
  import { IconRendererProps } from 'molecules/Icon';
5
4
  export interface DatePickerMoleculeProps extends MuiDatePickerProps {
6
5
  required?: boolean;
@@ -8,10 +7,10 @@ export interface DatePickerMoleculeProps extends MuiDatePickerProps {
8
7
  configurationItemInfo?: any;
9
8
  text: string;
10
9
  borderColor?: string;
11
- fontSize?: TypographyProps['fontSize'];
12
- fontFamily?: TypographyProps['fontFamily'];
13
- fontWeight?: TypographyProps['fontWeight'];
14
- textColor?: TypographyProps['color'];
10
+ fontSize?: string | number;
11
+ fontFamily?: string;
12
+ fontWeight?: string | number;
13
+ textColor?: string;
15
14
  iconColor?: IconRendererProps['color'];
16
15
  minDate?: string;
17
16
  maxDate?: string;
@@ -26,5 +25,16 @@ export interface DatePickerMoleculeProps extends MuiDatePickerProps {
26
25
  paddingBottom?: string;
27
26
  name: string;
28
27
  sourceDataModelField?: string;
28
+ /**
29
+ * If true, disables the actual picker input and just displays
30
+ * the date in read-only text form.
31
+ */
32
+ isDisplayOnly?: boolean;
33
+ /**
34
+ * Format to use when displaying date in "display only" mode
35
+ * or controlling the displayed text in the editable field.
36
+ * e.g. 'MM/dd/yyyy' or 'yyyy-MM-dd'
37
+ */
38
+ displayFormat?: string;
29
39
  }
30
40
  export declare const DatePickerMolecule: React.FC<DatePickerMoleculeProps>;
@@ -2,3 +2,5 @@ import { DatePickerMoleculeProps } from './DatePicker';
2
2
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
3
  export default _default;
4
4
  export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, DatePickerMoleculeProps>;
5
+ export declare const DisplayOnly: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, DatePickerMoleculeProps>;
6
+ export declare const CustomFormat: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, DatePickerMoleculeProps>;
@@ -1,16 +1,27 @@
1
1
  import React from 'react';
2
2
  import { ConfigurationItemInfo } from 'containers';
3
3
  export interface EmailInputFieldProps {
4
+ /** If true, show the email as text only (no editing). */
5
+ isDisplayOnly?: boolean;
6
+ /** If true, do required validation in RHF + show MUI asterisk. */
4
7
  required?: boolean;
8
+ requiredErrorText?: string;
9
+ validationErrorText?: string;
10
+ /** Basic label & placeholder */
11
+ text?: string;
12
+ placeholderText?: string;
13
+ /** If true, apply an email text mask in the editable field. */
14
+ masked?: boolean;
15
+ multiLine?: boolean;
16
+ /** Basic styling props */
5
17
  backgroundColor?: string;
6
- textAlign?: 'inherit' | 'left' | 'center' | 'right' | 'justify';
18
+ borderColor?: string;
7
19
  color?: string;
8
20
  fontSize?: number | string;
9
21
  fontFamily?: string;
10
- fontWeight?: 'normal' | 'bold';
11
- masked?: boolean;
12
- multiLine?: boolean;
13
- borderColor?: string;
22
+ fontWeight?: 'normal' | 'bold' | number;
23
+ textAlign?: 'inherit' | 'left' | 'center' | 'right' | 'justify';
24
+ /** Spacing */
14
25
  marginLeft?: string;
15
26
  marginTop?: string;
16
27
  marginRight?: string;
@@ -19,10 +30,13 @@ export interface EmailInputFieldProps {
19
30
  paddingTop?: string;
20
31
  paddingRight?: string;
21
32
  paddingBottom?: string;
22
- text?: string;
23
- placeholderText?: string;
24
- configurationItemInfo?: ConfigurationItemInfo;
25
33
  name: string;
26
34
  sourceDataModelField?: string;
35
+ configurationItemInfo?: ConfigurationItemInfo;
27
36
  }
37
+ /**
38
+ * Main EmailInputField:
39
+ * - display-only => <Typography />
40
+ * - editable => <TextField> (optionally masked)
41
+ */
28
42
  export declare const EmailInputField: React.FC<EmailInputFieldProps>;
@@ -1,4 +1,9 @@
1
1
  import { EmailInputFieldProps } from './EmailInputField';
2
2
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
3
  export default _default;
4
- export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, EmailInputFieldProps>;
4
+ declare type StoryProps = EmailInputFieldProps & {
5
+ sourceDataModelFieldValue?: string;
6
+ };
7
+ export declare const Editable: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryProps>;
8
+ export declare const DisplayOnly: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryProps>;
9
+ export declare const Standalone: () => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,14 +1,28 @@
1
1
  import React from 'react';
2
2
  import { ConfigurationItemInfo } from 'containers';
3
3
  export interface NumericInputFieldProps {
4
+ /** If true, the field shows as text-only (no editing). */
5
+ isDisplayOnly?: boolean;
6
+ /** If true, we do required validation in form + show MUI asterisk. */
4
7
  required?: boolean;
8
+ requiredErrorText?: string;
9
+ validationErrorText?: string;
10
+ /** Label text for the field */
11
+ text?: string;
12
+ placeholderText?: string;
5
13
  backgroundColor?: string;
6
- textAlign?: 'inherit' | 'left' | 'center' | 'right' | 'justify';
14
+ borderColor?: string;
7
15
  textColor?: string;
8
16
  fontSize?: number | string;
9
17
  fontFamily?: string;
10
- fontWeight?: 'normal' | 'bold';
11
- borderColor?: string;
18
+ fontWeight?: 'normal' | 'bold' | number;
19
+ /** If false => we disallow negative input. */
20
+ allowNegative?: boolean;
21
+ /** e.g. "0.01" => step=0.01, 2 decimals */
22
+ numericPrecision?: string;
23
+ name: string;
24
+ sourceDataModelField?: string;
25
+ /** Basic spacing/styling */
12
26
  marginLeft?: string;
13
27
  marginTop?: string;
14
28
  marginRight?: string;
@@ -17,16 +31,12 @@ export interface NumericInputFieldProps {
17
31
  paddingTop?: string;
18
32
  paddingRight?: string;
19
33
  paddingBottom?: string;
20
- text?: string;
21
- placeholderText?: string;
22
34
  configurationItemInfo?: ConfigurationItemInfo;
23
- name: string;
24
- allowNegative: boolean;
25
- /**
26
- * A string representing the precision step for the numeric input
27
- * e.g. '1.0' or '0.05' or '0.001'
28
- */
29
- numericPrecision?: string;
30
- sourceDataModelField?: string;
31
35
  }
36
+ /**
37
+ * Main NumericInputField component
38
+ *
39
+ * - Display-only -> <Typography>
40
+ * - Editable -> <TextField> (react-hook-form or local state)
41
+ */
32
42
  export declare const NumericInputField: React.FC<NumericInputFieldProps>;
@@ -1,4 +1,10 @@
1
1
  import { NumericInputFieldProps } from './NumericInputField';
2
2
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
3
  export default _default;
4
- export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, NumericInputFieldProps>;
4
+ declare type StoryProps = NumericInputFieldProps & {
5
+ sourceDataModelFieldValue?: string;
6
+ };
7
+ export declare const EditableRequired: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryProps>;
8
+ export declare const DisplayOnly: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryProps>;
9
+ export declare const AllowNegative: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryProps>;
10
+ export declare const Standalone: () => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,16 +1,34 @@
1
1
  import React from 'react';
2
2
  import { ConfigurationItemInfo } from 'containers';
3
+ /**
4
+ * formatPhoneDisplay(value):
5
+ * Takes a raw string (possibly containing digits and non-digits)
6
+ * and returns a string shaped like + (XXX) XXX-XXXX,
7
+ * filling placeholders sequentially from `phoneNumberMask`.
8
+ *
9
+ * If there are fewer than 10 digits, it will show partial underscores
10
+ * for missing digits by default.
11
+ * You can tweak the code if you prefer to truncate or show partial input.
12
+ */
13
+ export declare function formatPhoneDisplay(value: string): string;
3
14
  export interface PhoneNumberInputFieldProps {
15
+ /** If true, we skip rendering the textfield and just show a text display. */
16
+ isDisplayOnly?: boolean;
17
+ /** If true, we do required validation in react-hook-form + show asterisk in MUI FormControl. */
4
18
  required?: boolean;
19
+ requiredErrorText?: string;
20
+ validationErrorText?: string;
21
+ text?: string;
22
+ placeholderText?: string;
23
+ masked?: boolean;
24
+ /** Basic style props */
5
25
  backgroundColor?: string;
6
- textAlign?: 'inherit' | 'left' | 'center' | 'right' | 'justify';
7
- color?: string;
26
+ borderColor?: string;
27
+ textColor?: string;
8
28
  fontSize?: number | string;
9
29
  fontFamily?: string;
10
- fontWeight?: 'normal' | 'bold';
11
- masked?: boolean;
12
- multiLine?: boolean;
13
- borderColor?: string;
30
+ fontWeight?: 'normal' | 'bold' | number;
31
+ /** Spacing */
14
32
  marginLeft?: string;
15
33
  marginTop?: string;
16
34
  marginRight?: string;
@@ -19,10 +37,13 @@ export interface PhoneNumberInputFieldProps {
19
37
  paddingTop?: string;
20
38
  paddingRight?: string;
21
39
  paddingBottom?: string;
22
- text?: string;
23
- placeholderText?: string;
24
- configurationItemInfo?: ConfigurationItemInfo;
25
40
  name: string;
26
41
  sourceDataModelField?: string;
42
+ configurationItemInfo?: ConfigurationItemInfo;
27
43
  }
44
+ /**
45
+ * Main PhoneNumberInputField:
46
+ * - display-only -> <Typography>
47
+ * - editable -> <TextField> with optional mask
48
+ */
28
49
  export declare const PhoneNumberInputField: React.FC<PhoneNumberInputFieldProps>;
@@ -1,4 +1,10 @@
1
1
  import { PhoneNumberInputFieldProps } from './PhoneNumberInputField';
2
2
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
3
  export default _default;
4
- export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, PhoneNumberInputFieldProps>;
4
+ declare type StoryProps = PhoneNumberInputFieldProps & {
5
+ sourceDataModelFieldValue?: string;
6
+ };
7
+ /** Editable scenario with required validation */
8
+ export declare const EditableRequired: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryProps>;
9
+ /** Display-only variant reading from stateConfig */
10
+ export declare const DisplayOnly: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryProps>;
@@ -1,19 +1,30 @@
1
1
  import React from 'react';
2
- export interface RatingMoleculeProps {
2
+ import { RatingProps } from '@mui/material';
3
+ export interface RatingMoleculeProps extends Omit<RatingProps, 'onChange'> {
4
+ /** Label text displayed above or beside the rating */
3
5
  text: string;
6
+ /** Name used for react-hook-form registration */
4
7
  name: string;
8
+ /** If true, the user can’t change the rating (renders read-only) */
9
+ isDisplayOnly?: boolean;
10
+ /** If true, we show an asterisk and require a non-null rating */
11
+ required?: boolean;
12
+ /** Custom error text if `required` is not satisfied */
13
+ requiredErrorText?: string;
14
+ /** If some other validation fails, show this text */
15
+ validationErrorText?: string;
16
+ /** If true, rating icons will show real-time integer value on hover or selection */
17
+ hoverFeedback?: boolean;
18
+ /** For hooking up with state config if you store an initial rating there */
19
+ sourceDataModelField?: string;
20
+ /** Some style props for customizing layout/appearance */
5
21
  textAlign?: 'inherit' | 'left' | 'center' | 'right' | 'justify';
6
22
  color?: string;
7
23
  textColor?: string;
8
- selectSize?: string;
9
24
  selectColor?: string;
10
25
  fontSize?: number | string;
11
26
  fontFamily?: string;
12
- fontWeight?: 'normal' | 'bold';
13
- placement?: 'right' | 'left';
14
- ratingPrecision?: number;
15
- maxValue?: number;
16
- hoverFeedback?: boolean;
27
+ fontWeight?: 'normal' | 'bold' | number;
17
28
  marginLeft?: string;
18
29
  marginTop?: string;
19
30
  marginRight?: string;
@@ -22,7 +33,14 @@ export interface RatingMoleculeProps {
22
33
  paddingTop?: string;
23
34
  paddingRight?: string;
24
35
  paddingBottom?: string;
36
+ /** For left or right placement of the hover feedback text */
37
+ placement?: 'right' | 'left';
38
+ /** The config item for design-time or telemetry */
25
39
  configurationItemInfo?: Record<string, unknown>;
40
+ /** Disables rating input in editable mode (MUI prop) */
26
41
  disabled?: boolean;
42
+ /** If using react-hook-form, we can track field errors. */
43
+ maxValue?: number;
44
+ ratingPrecision?: number;
27
45
  }
28
46
  export declare const RatingMolecule: React.FC<RatingMoleculeProps>;
@@ -1,4 +1,10 @@
1
1
  import { RatingMoleculeProps } from './Rating';
2
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, RatingMoleculeProps>;
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
3
  export default _default;
4
- export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, RatingMoleculeProps>;
4
+ /** 1) Editable rating with validation */
5
+ export declare const Editable: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, RatingMoleculeProps>;
6
+ /** 2) Display-only rating (read only) */
7
+ export declare const DisplayOnly: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, RatingMoleculeProps>;
8
+ /** 3) Disabled rating input */
9
+ export declare const Disabled: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, RatingMoleculeProps>;
10
+ export declare const Standalone: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, RatingMoleculeProps>;
@@ -1,17 +1,29 @@
1
1
  import React from 'react';
2
2
  import { TypographyProps } from '@mui/material';
3
3
  import { ConfigurationItemInfo } from 'containers';
4
+ export interface SelectMoleculeOption {
5
+ id: string;
6
+ value: string;
7
+ }
4
8
  export interface SelectMoleculeProps {
9
+ /** Label text (visible above or inside the select) */
5
10
  text: string;
6
- options: {
7
- id: string;
8
- value: string;
9
- }[];
11
+ /** Dropdown options. Each has { id, value } or you can supply string[] */
12
+ options: SelectMoleculeOption[] | string[];
13
+ /** For a placeholder, you might use the first item or do a custom approach */
10
14
  placeholderText?: string;
11
- fontSize?: number | string;
15
+ /** If true, the field is required in form validation */
12
16
  required?: boolean;
17
+ /** Use this text if required == true and no value selected */
18
+ requiredErrorText?: string;
19
+ /** Use this text if user fails some extra validation pattern */
20
+ validationErrorText?: string;
21
+ /** If true, show a text label instead of an interactive dropdown */
22
+ isDisplayOnly?: boolean;
23
+ /** CSS style props */
24
+ fontSize?: number | string;
13
25
  fontFamily?: TypographyProps['fontFamily'];
14
- fontWeight?: 'normal' | 'bold';
26
+ fontWeight?: 'normal' | 'bold' | number;
15
27
  textColor?: string;
16
28
  textAlign?: TypographyProps['textAlign'];
17
29
  borderColor?: string;
@@ -25,8 +37,11 @@ export interface SelectMoleculeProps {
25
37
  paddingTop?: string;
26
38
  paddingRight?: string;
27
39
  paddingBottom?: string;
40
+ /** Additional config from system (e.g. for selection in config mode) */
28
41
  configurationItemInfo?: ConfigurationItemInfo;
42
+ /** The name of the field in react-hook-form */
29
43
  name: string;
44
+ /** The data field in global stateConfig to populate/initialize value */
30
45
  sourceDataModelField?: string;
31
46
  }
32
47
  export declare const SelectMolecule: React.FC<SelectMoleculeProps>;
@@ -1,5 +1,6 @@
1
1
  import { SelectMoleculeProps } from './Select';
2
2
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
3
  export default _default;
4
- export declare const Controlled: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, SelectMoleculeProps>;
5
- export declare const Uncontrolled: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, SelectMoleculeProps>;
4
+ export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, SelectMoleculeProps>;
5
+ export declare const DisplayOnly: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, SelectMoleculeProps>;
6
+ export declare const WithCustomValidation: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, SelectMoleculeProps>;
@@ -1,9 +1,14 @@
1
1
  import React from 'react';
2
2
  import { SliderProps } from '@mui/material';
3
3
  import { ConfigurationItemInfo } from 'containers';
4
- export declare type SliderMoleculeProps = SliderProps & {
4
+ export interface SliderMoleculeProps extends Omit<SliderProps, 'onChange'> {
5
+ /** If true, the slider is displayed disabled + text showing the value. */
6
+ isDisplayOnly?: boolean;
7
+ /** If true, rely on FormControl to show a required asterisk. */
5
8
  required?: boolean;
6
- text: string;
9
+ requiredErrorText?: string;
10
+ validationErrorText?: string;
11
+ text?: string;
7
12
  startIcon?: string;
8
13
  endIcon?: string;
9
14
  borderColor?: string;
@@ -13,17 +18,17 @@ export declare type SliderMoleculeProps = SliderProps & {
13
18
  textColor?: string;
14
19
  fontSize?: number | string;
15
20
  fontFamily?: string;
16
- fontWeight?: 'normal' | 'bold';
17
- textAlign?: 'inherit' | 'left' | 'center' | 'right' | 'justify';
18
- placement?: 'left' | 'right' | 'top' | 'bottom';
21
+ fontWeight?: 'normal' | 'bold' | number;
22
+ valueFormat?: string;
23
+ valueDisplay?: 'on' | 'off' | 'auto';
19
24
  iconSize?: string;
20
25
  selectColor?: string;
21
26
  iconColor?: string;
22
27
  minValue?: number;
23
28
  maxValue?: number;
24
- valueFormat?: string;
25
- valueDisplay?: 'on' | 'off' | 'auto';
26
29
  step?: number;
30
+ /** label's placement relative to the slider+icons */
31
+ labelPlacement?: 'top' | 'bottom';
27
32
  marginLeft?: string;
28
33
  marginTop?: string;
29
34
  marginRight?: string;
@@ -33,7 +38,11 @@ export declare type SliderMoleculeProps = SliderProps & {
33
38
  paddingRight?: string;
34
39
  paddingBottom?: string;
35
40
  configurationItemInfo?: ConfigurationItemInfo;
41
+ /** For hooking up with react-hook-form */
36
42
  name?: string;
37
43
  sourceDataModelField?: string;
38
- };
44
+ }
45
+ /**
46
+ * SliderMolecule
47
+ */
39
48
  export declare const SliderMolecule: React.FC<SliderMoleculeProps>;
@@ -1,4 +1,10 @@
1
1
  import { SliderMoleculeProps } from './Slider';
2
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, SliderMoleculeProps>;
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
3
  export default _default;
4
- export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, SliderMoleculeProps>;
4
+ /** Editable with required validation */
5
+ export declare const EditableRequired: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, SliderMoleculeProps>;
6
+ /** Display-only mode (slider is disabled, text shows numeric value) */
7
+ export declare const DisplayOnly: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, SliderMoleculeProps>;
8
+ /** Vertical usage */
9
+ export declare const VerticalSlider: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, SliderMoleculeProps>;
10
+ export declare const Standalone: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, SliderMoleculeProps>;
@@ -1,25 +1,21 @@
1
1
  import React from 'react';
2
2
  import { SwitchProps } from '@mui/material';
3
3
  import { ConfigurationItemInfo } from 'containers';
4
- /**
5
- * SwitchMolecule Component:
6
- * A reusable switch component with customizable labels and styles.
7
- */
8
- export interface SwitchMoleculeProps extends SwitchProps {
4
+ export interface SwitchMoleculeProps extends Omit<SwitchProps, 'onChange'> {
5
+ /** If true, switch is shown but disabled, with a text next to it that indicates ON/OFF. */
6
+ isDisplayOnly?: boolean;
7
+ /** If true, we rely on MUI FormControl to show the required asterisk. */
9
8
  required?: boolean;
10
- moleculeId?: string;
11
- configurationItemInfo?: ConfigurationItemInfo;
9
+ requiredErrorText?: string;
10
+ validationErrorText?: string;
12
11
  text?: string;
13
- textAlign?: 'left' | 'center' | 'right' | 'justify';
14
- fontSize?: number | string;
15
- fontFamily?: string;
16
- fontWeight?: 'normal' | 'bold';
17
- placement?: 'left' | 'right' | 'top' | 'bottom';
18
- selectColor?: string;
19
- color?: string;
20
- colorDisabled?: string;
21
- textColor?: string;
22
- size?: 'small' | 'medium';
12
+ thumbColor?: string;
13
+ thumbCheckedColor?: string;
14
+ trackColor?: string;
15
+ disabledThumbColor?: string;
16
+ /** MUI FormControl label placement with a real label. We'll show the label above by default. */
17
+ labelPlacement?: 'top' | 'bottom';
18
+ /** Additional MUI styling props if needed */
23
19
  marginLeft?: string;
24
20
  marginTop?: string;
25
21
  marginRight?: string;
@@ -28,8 +24,9 @@ export interface SwitchMoleculeProps extends SwitchProps {
28
24
  paddingTop?: string;
29
25
  paddingRight?: string;
30
26
  paddingBottom?: string;
31
- borderColor?: string;
27
+ /** For hooking up with react-hook-form */
32
28
  name: string;
33
29
  sourceDataModelField?: string;
30
+ configurationItemInfo?: ConfigurationItemInfo;
34
31
  }
35
32
  export declare const SwitchMolecule: React.FC<SwitchMoleculeProps>;
@@ -1,4 +1,10 @@
1
1
  import { SwitchMoleculeProps } from './Switch';
2
2
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
3
  export default _default;
4
- export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, SwitchMoleculeProps>;
4
+ /** Editable with required */
5
+ export declare const EditableRequired: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, SwitchMoleculeProps>;
6
+ /** Display-only variant (shows a disabled switch + ON/OFF text) */
7
+ export declare const DisplayOnly: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, SwitchMoleculeProps>;
8
+ /** Disabled but still editable? (In effect, can't toggle) */
9
+ export declare const Disabled: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, SwitchMoleculeProps>;
10
+ export declare const Standalone: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, SwitchMoleculeProps>;
@@ -1,2 +1,2 @@
1
- var r={exports:{}};export{r};
1
+ var p={exports:{}};export{p};
2
2
  //# sourceMappingURL=index6.js.map
@@ -1,2 +1,2 @@
1
- var p={exports:{}};export{p};
1
+ var r={exports:{}};export{r};
2
2
  //# sourceMappingURL=index7.js.map