@mvf/external-components 3.12.0 → 3.13.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 (97) hide show
  1. package/Assets/BrandLogos/ExpertMarketLogo.d.ts +1 -1
  2. package/Assets/BrandLogos/ExpertReviewsLogo.d.ts +1 -1
  3. package/Assets/BrandLogos/GoWizardLogo.d.ts +1 -1
  4. package/Assets/BrandLogos/HearClearLogo.d.ts +1 -1
  5. package/Assets/BrandLogos/LasikEyesLogo.d.ts +1 -1
  6. package/Assets/BrandLogos/StartupsLogo.d.ts +1 -1
  7. package/Assets/BrandLogos/TechcoLogo.d.ts +1 -1
  8. package/Assets/BrandLogos/TheEcoExpertsLogo.d.ts +1 -1
  9. package/Assets/BrandLogos/WebsiteBuilderExpertLogo.d.ts +1 -1
  10. package/Assets/BrandLogos/brandLogos.d.ts +1 -1
  11. package/Assets/CustomIcons/CheckboxIcon.d.ts +1 -1
  12. package/Assets/CustomIcons/RadioIcon.d.ts +1 -1
  13. package/Assets/svgs/svgs.d.ts +1 -1
  14. package/Components/Atoms/AnimationWrapper/AnimationWrapperStory.d.ts +1 -1
  15. package/Components/Atoms/Button/Button.d.ts +1 -1
  16. package/Components/Atoms/Button/ButtonStory.d.ts +1 -1
  17. package/Components/Atoms/CardButton/CardButton.d.ts +1 -1
  18. package/Components/Atoms/CardButton/CardButtonStory.d.ts +1 -1
  19. package/Components/Atoms/ErrorMessage/ErrorMessage.d.ts +1 -1
  20. package/Components/Atoms/ErrorMessage/ErrorMessageStory.d.ts +1 -1
  21. package/Components/Atoms/ErrorMessageProvider/ErrorMessageProvider.d.ts +3 -3
  22. package/Components/Atoms/FormControl/FormControl.d.ts +1 -1
  23. package/Components/Atoms/FormControl/FormControlStory.d.ts +1 -1
  24. package/Components/Atoms/IconButton/IconButton.d.ts +1 -1
  25. package/Components/Atoms/IconButton/IconButtonStory.d.ts +1 -1
  26. package/Components/Atoms/InfoPanel/InfoPanel.d.ts +1 -1
  27. package/Components/Atoms/InfoPanel/InfoPanelStory.d.ts +1 -1
  28. package/Components/Atoms/Input/Input.d.ts +1 -1
  29. package/Components/Atoms/Input/InputStory.d.ts +1 -1
  30. package/Components/Atoms/InputLabel/InputLabel.d.ts +1 -1
  31. package/Components/Atoms/InputLabel/InputLabelStory.d.ts +1 -1
  32. package/Components/Atoms/InsetCheckbox/InsetCheckbox.d.ts +2 -2
  33. package/Components/Atoms/InsetCheckbox/InsetCheckboxStory.d.ts +1 -1
  34. package/Components/Atoms/Link/Link.d.ts +1 -1
  35. package/Components/Atoms/Link/LinkStory.d.ts +1 -1
  36. package/Components/Atoms/LoadingIndicator/LoadingIndicator.d.ts +1 -1
  37. package/Components/Atoms/Modal/Modal.d.ts +1 -1
  38. package/Components/Atoms/Modal/ModalStory.d.ts +1 -1
  39. package/Components/Atoms/ProgressBar/ProgressBar.d.ts +1 -1
  40. package/Components/Atoms/ProgressBar/ProgressBarStory.d.ts +1 -1
  41. package/Components/Atoms/Text/Text.d.ts +1 -1
  42. package/Components/Atoms/Text/TextStory.d.ts +1 -1
  43. package/Components/Molecules/CheckBox/CheckBox.d.ts +1 -1
  44. package/Components/Molecules/CheckBox/CheckBox.test.js +1 -1
  45. package/Components/Molecules/CheckBox/CheckBoxStory.d.ts +1 -1
  46. package/Components/Molecules/DatePicker/DatePicker.d.ts +1 -1
  47. package/Components/Molecules/DatePicker/DatePickerStory.d.ts +1 -1
  48. package/Components/Molecules/DatePicker/DatePickerTextFieldType.d.ts +1 -1
  49. package/Components/Molecules/DatePicker/__tests__/DatePicker.test.js +1 -1
  50. package/Components/Molecules/DropDownSelect/DropDownSelect.d.ts +1 -1
  51. package/Components/Molecules/DropDownSelect/DropDownSelectStory.d.ts +1 -1
  52. package/Components/Molecules/IconTileCheckBox/IconTileCheckBox.d.ts +1 -1
  53. package/Components/Molecules/IconTileCheckBox/IconTileCheckBoxStory.d.ts +1 -1
  54. package/Components/Molecules/IconTileRadioButton/IconTileRadioButton.d.ts +1 -1
  55. package/Components/Molecules/IconTileRadioButton/IconTileRadioButton.test.js +1 -1
  56. package/Components/Molecules/IconTileRadioButton/IconTileRadioButtonStory.d.ts +1 -1
  57. package/Components/Molecules/NavBar/IComponentProps.d.ts +1 -0
  58. package/Components/Molecules/NavBar/NavBar.d.ts +1 -1
  59. package/Components/Molecules/NavBar/NavBar.js +2 -2
  60. package/Components/Molecules/NavBar/NavBar.js.map +1 -1
  61. package/Components/Molecules/NavBar/NavBar.test.js +15 -0
  62. package/Components/Molecules/NavBar/NavBar.test.js.map +1 -1
  63. package/Components/Molecules/NavBar/NavBarStory.d.ts +2 -1
  64. package/Components/Molecules/NavBar/NavBarStory.js +2 -2
  65. package/Components/Molecules/NavBar/NavBarStory.js.map +1 -1
  66. package/Components/Molecules/NavBar/defaultProps.d.ts +1 -0
  67. package/Components/Molecules/NavBar/defaultProps.js +1 -0
  68. package/Components/Molecules/NavBar/defaultProps.js.map +1 -1
  69. package/Components/Molecules/PhoneNumberTextField/PhoneNumberTextField.d.ts +1 -1
  70. package/Components/Molecules/PhoneNumberTextField/PhoneNumberTextFieldStory.d.ts +1 -1
  71. package/Components/Molecules/RadioButton/RadioButton.d.ts +1 -1
  72. package/Components/Molecules/RadioButton/RadioButtonStory.d.ts +1 -1
  73. package/Components/Molecules/ScrollContainer/ScrollContainer.test.js +1 -1
  74. package/Components/Molecules/ScrollContainer/ScrollContainerStory.d.ts +1 -1
  75. package/Components/Molecules/ScrollContainer/ScrollContainerTypes.d.ts +2 -2
  76. package/Components/Molecules/SupplierCard/SupplierCard.d.ts +1 -1
  77. package/Components/Molecules/SupplierCard/SupplierCardStory.d.ts +1 -1
  78. package/Components/Molecules/TextField/TextField.d.ts +1 -1
  79. package/Components/Molecules/TextField/TextFieldStory.d.ts +1 -1
  80. package/Components/Molecules/ThankYouBanner/ThankYouBanner.d.ts +1 -1
  81. package/Components/Molecules/ThankYouBanner/ThankYouBannerStory.d.ts +1 -1
  82. package/Components/Organisms/ListLayout/ListLayout.d.ts +1 -1
  83. package/Components/Organisms/ListLayout/ListLayoutStory.d.ts +1 -1
  84. package/Components/Organisms/RadioGroup/RadioGroup.d.ts +1 -1
  85. package/Components/Organisms/RadioGroup/RadioGroup.test.js +1 -1
  86. package/Components/Organisms/RadioGroup/RadioGroupContext.d.ts +1 -1
  87. package/Components/Organisms/RadioGroup/RadioGroupStory.d.ts +1 -1
  88. package/Components/Organisms/TileLayout/IconTileCheckBoxStory.d.ts +1 -1
  89. package/Components/Organisms/TileLayout/IconTileRadioButtonStory.d.ts +1 -1
  90. package/Components/Organisms/TileLayout/TileLayout.d.ts +1 -1
  91. package/Helpers/React/FunctionComponentWithDefaultProps.d.ts +1 -1
  92. package/Helpers/React/css.d.ts +1 -1
  93. package/Helpers/icons.d.ts +1 -1
  94. package/Helpers/useThrottle.d.ts +1 -1
  95. package/Themes/StoryThemeWrapper.d.ts +1 -1
  96. package/Themes/themes.d.ts +2 -2
  97. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
1
  import { FunctionComponent } from 'react';
2
- declare type ExpertMarketLogoType = FunctionComponent;
2
+ type ExpertMarketLogoType = FunctionComponent;
3
3
  declare const ExpertMarketLogo: ExpertMarketLogoType;
4
4
  export default ExpertMarketLogo;
@@ -1,4 +1,4 @@
1
1
  import { FunctionComponent } from 'react';
2
- declare type ExpertReviewsLogoType = FunctionComponent;
2
+ type ExpertReviewsLogoType = FunctionComponent;
3
3
  declare const ExpertReviewsLogo: ExpertReviewsLogoType;
4
4
  export default ExpertReviewsLogo;
@@ -1,4 +1,4 @@
1
1
  import { FunctionComponent } from 'react';
2
- declare type GoWizardLogoType = FunctionComponent;
2
+ type GoWizardLogoType = FunctionComponent;
3
3
  declare const GoWizardLogo: GoWizardLogoType;
4
4
  export default GoWizardLogo;
@@ -1,4 +1,4 @@
1
1
  import { FunctionComponent } from 'react';
2
- declare type HearClearLogoType = FunctionComponent;
2
+ type HearClearLogoType = FunctionComponent;
3
3
  declare const HearClearLogo: HearClearLogoType;
4
4
  export default HearClearLogo;
@@ -1,4 +1,4 @@
1
1
  import { FunctionComponent } from 'react';
2
- declare type LasikEyesLogoType = FunctionComponent;
2
+ type LasikEyesLogoType = FunctionComponent;
3
3
  declare const LasikEyesLogo: LasikEyesLogoType;
4
4
  export default LasikEyesLogo;
@@ -1,4 +1,4 @@
1
1
  import { FunctionComponent } from 'react';
2
- declare type StartUpsLogoType = FunctionComponent;
2
+ type StartUpsLogoType = FunctionComponent;
3
3
  declare const StartUpsLogo: StartUpsLogoType;
4
4
  export default StartUpsLogo;
@@ -1,4 +1,4 @@
1
1
  import { FunctionComponent } from 'react';
2
- declare type TechCoLogoType = FunctionComponent;
2
+ type TechCoLogoType = FunctionComponent;
3
3
  declare const TechCoLogo: TechCoLogoType;
4
4
  export default TechCoLogo;
@@ -1,4 +1,4 @@
1
1
  import { FunctionComponent } from 'react';
2
- declare type TheEcoExpertsLogoType = FunctionComponent;
2
+ type TheEcoExpertsLogoType = FunctionComponent;
3
3
  declare const TheEcoExpertsLogo: TheEcoExpertsLogoType;
4
4
  export default TheEcoExpertsLogo;
@@ -1,4 +1,4 @@
1
1
  import { FunctionComponent } from 'react';
2
- declare type WebsiteBuilderExpertLogoType = FunctionComponent;
2
+ type WebsiteBuilderExpertLogoType = FunctionComponent;
3
3
  declare const WebsiteBuilderExpertLogo: WebsiteBuilderExpertLogoType;
4
4
  export default WebsiteBuilderExpertLogo;
@@ -11,5 +11,5 @@ declare const brandLogos: {
11
11
  lasikEyes: import("react").FunctionComponent<{}>;
12
12
  none: null;
13
13
  };
14
- export declare type IBrandLogos = typeof brandLogos;
14
+ export type IBrandLogos = typeof brandLogos;
15
15
  export default brandLogos;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type CheckboxType = React.FunctionComponent<{
2
+ type CheckboxType = React.FunctionComponent<{
3
3
  isChecked: boolean;
4
4
  }>;
5
5
  declare const CheckboxIcon: CheckboxType;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type RadioType = React.FunctionComponent<{
2
+ type RadioType = React.FunctionComponent<{
3
3
  isChecked: boolean;
4
4
  }>;
5
5
  declare const RadioIcon: RadioType;
@@ -7,5 +7,5 @@ declare const svgs: {
7
7
  truck: string;
8
8
  ringcentral: string;
9
9
  };
10
- export declare type ISvgs = typeof svgs;
10
+ export type ISvgs = typeof svgs;
11
11
  export default svgs;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- declare type AnimationWrapperStoryType = React.FunctionComponent<{
2
+ type AnimationWrapperStoryType = React.FunctionComponent<{
3
3
  effect: 'fadeIn' | 'fadeInUp' | 'fadeInDown' | 'fadeInLeft' | 'fadeInRight';
4
4
  delay: number;
5
5
  animationTime: number;
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponentWithDefaultProps } from '../../../Helpers/React';
2
2
  import defaultProps from './defaultProps';
3
3
  import IButtonProps from './IButtonProps';
4
- declare type ButtonType = FunctionComponentWithDefaultProps<IButtonProps, typeof defaultProps>;
4
+ type ButtonType = FunctionComponentWithDefaultProps<IButtonProps, typeof defaultProps>;
5
5
  declare const Button: ButtonType;
6
6
  export default Button;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- declare type ButtonStoryType = React.FunctionComponent<{
2
+ type ButtonStoryType = React.FunctionComponent<{
3
3
  disabled: boolean;
4
4
  label: string;
5
5
  loading: boolean;
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponentWithDefaultProps } from '../../../Helpers/React/FunctionComponentWithDefaultProps';
2
2
  import ICardButtonProps from './ICardButtonProps';
3
3
  import defaultProps from './defaultProps';
4
- declare type CardButtonType = FunctionComponentWithDefaultProps<ICardButtonProps, typeof defaultProps>;
4
+ type CardButtonType = FunctionComponentWithDefaultProps<ICardButtonProps, typeof defaultProps>;
5
5
  declare const CardButton: CardButtonType;
6
6
  export default CardButton;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- declare type CardButtonStoryType = React.FunctionComponent<{
2
+ type CardButtonStoryType = React.FunctionComponent<{
3
3
  error: boolean;
4
4
  }>;
5
5
  declare const CardButtonStory: CardButtonStoryType;
@@ -1,5 +1,5 @@
1
1
  /** @jsxImportSource @emotion/react */
2
2
  import { FunctionComponent } from 'react';
3
- declare type ErrorMessageType = FunctionComponent;
3
+ type ErrorMessageType = FunctionComponent;
4
4
  declare const ErrorMessage: ErrorMessageType;
5
5
  export default ErrorMessage;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- declare type ErrorMessageStoryType = React.FunctionComponent<{
2
+ type ErrorMessageStoryType = React.FunctionComponent<{
3
3
  error: boolean;
4
4
  errorMessage: string;
5
5
  }>;
@@ -1,13 +1,13 @@
1
1
  import * as React from 'react';
2
- declare type ErrorMessageProviderProps = {
2
+ type ErrorMessageProviderProps = {
3
3
  errorMessage: string | undefined;
4
4
  };
5
- declare type ErrorMessageProviderType = React.FunctionComponent<{
5
+ type ErrorMessageProviderType = React.FunctionComponent<{
6
6
  children: React.ReactNode;
7
7
  errorMessage?: string;
8
8
  }>;
9
9
  declare const ErrorMessageProvider: ErrorMessageProviderType;
10
- declare type UseErrorMessageProps = {
10
+ type UseErrorMessageProps = {
11
11
  isErrorMessageProviderRequired: boolean;
12
12
  };
13
13
  declare const useErrorMessage: (props?: UseErrorMessageProps) => ErrorMessageProviderProps;
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponentWithDefaultProps } from '../../../Helpers/React';
2
2
  import defaultProps from './defaultProps';
3
3
  import IFormControlProps from './IFormControlProps';
4
- declare type FormControlType = FunctionComponentWithDefaultProps<IFormControlProps, typeof defaultProps>;
4
+ type FormControlType = FunctionComponentWithDefaultProps<IFormControlProps, typeof defaultProps>;
5
5
  declare const FormControl: FormControlType;
6
6
  export default FormControl;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- declare type StoryType = React.FunctionComponent<{
2
+ type StoryType = React.FunctionComponent<{
3
3
  error: boolean;
4
4
  parentContainerWidth: number;
5
5
  }>;
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponentWithDefaultProps } from '../../../Helpers/React/FunctionComponentWithDefaultProps';
2
2
  import IComponentProps from './IComponentProps';
3
3
  import defaultProps from './defaultProps';
4
- export declare type IconButtonType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
4
+ export type IconButtonType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
5
5
  declare const IconButton: IconButtonType;
6
6
  export default IconButton;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { IIcons } from '../../../Helpers/icons';
3
- declare type ButtonStartIconStoryType = React.FunctionComponent<{
3
+ type ButtonStartIconStoryType = React.FunctionComponent<{
4
4
  disabled: boolean;
5
5
  iconType: keyof IIcons;
6
6
  children: React.ReactNode;
@@ -2,6 +2,6 @@
2
2
  import { FunctionComponentWithDefaultProps } from '../../../Helpers/React/FunctionComponentWithDefaultProps';
3
3
  import defaultProps from './defaultProps';
4
4
  import IInfoPanelProps from './IInfoPanelProps';
5
- declare type InfoPanelType = FunctionComponentWithDefaultProps<IInfoPanelProps, typeof defaultProps>;
5
+ type InfoPanelType = FunctionComponentWithDefaultProps<IInfoPanelProps, typeof defaultProps>;
6
6
  declare const InfoPanel: InfoPanelType;
7
7
  export default InfoPanel;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ISvgs } from '../../../Assets/svgs/svgs';
3
- declare type InfoPanelType = React.FunctionComponent<{
3
+ type InfoPanelType = React.FunctionComponent<{
4
4
  title?: string;
5
5
  iconType?: keyof ISvgs;
6
6
  content: React.ReactNode;
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponentWithDefaultProps } from '../../../Helpers/React';
2
2
  import defaultProps from './defaultProps';
3
3
  import IInputProps from './IInputProps';
4
- declare type InputType = FunctionComponentWithDefaultProps<IInputProps, typeof defaultProps>;
4
+ type InputType = FunctionComponentWithDefaultProps<IInputProps, typeof defaultProps>;
5
5
  declare const Input: InputType;
6
6
  export default Input;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- declare type StoryType = React.FunctionComponent<{
2
+ type StoryType = React.FunctionComponent<{
3
3
  disabled: boolean;
4
4
  error: boolean;
5
5
  iconType: 'none' | 'person' | 'zipcode' | 'phone' | 'email' | 'company' | 'state';
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponentWithDefaultProps } from '../../../Helpers/React';
2
2
  import defaultProps from './defaultProps';
3
3
  import IInputLabelProps from './IInputLabelProps';
4
- declare type InputLabelType = FunctionComponentWithDefaultProps<IInputLabelProps, typeof defaultProps>;
4
+ type InputLabelType = FunctionComponentWithDefaultProps<IInputLabelProps, typeof defaultProps>;
5
5
  declare const InputLabel: InputLabelType;
6
6
  export default InputLabel;
@@ -1,4 +1,4 @@
1
1
  import * as React from 'react';
2
- declare type StoryType = React.FunctionComponent;
2
+ type StoryType = React.FunctionComponent;
3
3
  declare const FormControlStory: StoryType;
4
4
  export default FormControlStory;
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  import { SerializedStyles } from '@emotion/react';
3
- declare type InsetCheckboxProps = {
3
+ type InsetCheckboxProps = {
4
4
  checked: boolean;
5
5
  dataTestId?: string;
6
6
  customCss?: SerializedStyles;
7
7
  };
8
- declare type InsetCheckboxType = React.FunctionComponent<InsetCheckboxProps>;
8
+ type InsetCheckboxType = React.FunctionComponent<InsetCheckboxProps>;
9
9
  declare const InsetCheckbox: InsetCheckboxType;
10
10
  export default InsetCheckbox;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- declare type InsetCheckboxStoryType = React.FunctionComponent<{
2
+ type InsetCheckboxStoryType = React.FunctionComponent<{
3
3
  checked: boolean;
4
4
  }>;
5
5
  declare const InsetCheckboxStory: InsetCheckboxStoryType;
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponentWithDefaultProps } from '../../../Helpers/React';
2
2
  import defaultProps from './defaultProps';
3
3
  import ILinkProps from './ILinkProps';
4
- declare type LinkType = FunctionComponentWithDefaultProps<ILinkProps, typeof defaultProps>;
4
+ type LinkType = FunctionComponentWithDefaultProps<ILinkProps, typeof defaultProps>;
5
5
  declare const Link: LinkType;
6
6
  export default Link;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- declare type LinkType = React.FunctionComponent<{
2
+ type LinkType = React.FunctionComponent<{
3
3
  children: string;
4
4
  variant: 'button' | 'text';
5
5
  }>;
@@ -1,6 +1,6 @@
1
1
  /** @jsxImportSource @emotion/react */
2
2
  import { FunctionComponent } from 'react';
3
3
  import IComponentProps from './IComponentProps';
4
- declare type LoadingIndicatorType = FunctionComponent<IComponentProps>;
4
+ type LoadingIndicatorType = FunctionComponent<IComponentProps>;
5
5
  declare const LoadingIndicator: LoadingIndicatorType;
6
6
  export default LoadingIndicator;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import IModalProps from './IModalProps';
3
- declare type ModalType = React.FunctionComponent<IModalProps>;
3
+ type ModalType = React.FunctionComponent<IModalProps>;
4
4
  declare const Modal: ModalType;
5
5
  export default Modal;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type ModalStoryType = React.FunctionComponent<{
2
+ type ModalStoryType = React.FunctionComponent<{
3
3
  linkVariant: 'text' | 'button';
4
4
  children: React.ReactNode;
5
5
  }>;
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponentWithDefaultProps } from '../../../Helpers/React';
2
2
  import defaultProps from './defaultProps';
3
3
  import IComponentProps from './IComponentProps';
4
- declare type ProgressBarType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
4
+ type ProgressBarType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
5
5
  declare const ProgressBar: ProgressBarType;
6
6
  export default ProgressBar;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type ProgressBarStoryType = React.FunctionComponent<{
2
+ type ProgressBarStoryType = React.FunctionComponent<{
3
3
  progress: number;
4
4
  text: string;
5
5
  }>;
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponentWithDefaultProps } from '../../../Helpers/React/FunctionComponentWithDefaultProps';
2
2
  import ITextProps from './ITextProps';
3
3
  import defaultProps from './defaultProps';
4
- declare type TextType = FunctionComponentWithDefaultProps<ITextProps, typeof defaultProps>;
4
+ type TextType = FunctionComponentWithDefaultProps<ITextProps, typeof defaultProps>;
5
5
  declare const Text: TextType;
6
6
  export default Text;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- declare type TextStoryType = React.FunctionComponent<{
2
+ type TextStoryType = React.FunctionComponent<{
3
3
  text: string;
4
4
  variant: 'header' | 'note' | 'summary' | 'question' | 'text' | 'footer' | 'listItem' | 'tileItem' | 'contentWithList';
5
5
  align: 'center' | 'inherit' | 'justify' | 'left' | 'right';
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponentWithDefaultProps } from '../../../Helpers/React/FunctionComponentWithDefaultProps';
2
2
  import ICheckboxProps from './ICheckboxProps';
3
3
  import defaultProps from './defaultProps';
4
- declare type CheckBoxType = FunctionComponentWithDefaultProps<ICheckboxProps, typeof defaultProps>;
4
+ type CheckBoxType = FunctionComponentWithDefaultProps<ICheckboxProps, typeof defaultProps>;
5
5
  declare const CheckBox: CheckBoxType;
6
6
  export default CheckBox;
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ISvgs } from '../../../Assets/svgs/svgs';
3
- declare type CheckBoxStoryType = React.FunctionComponent<{
3
+ type CheckBoxStoryType = React.FunctionComponent<{
4
4
  error: boolean;
5
5
  showText: boolean;
6
6
  iconType: keyof ISvgs | 'none';
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponentWithDefaultProps } from '../../../Helpers/React';
2
2
  import IDatePickerProps from './IDatePickerProps';
3
3
  import defaultProps from './defaultProps';
4
- declare type DatePickerType = FunctionComponentWithDefaultProps<IDatePickerProps, typeof defaultProps>;
4
+ type DatePickerType = FunctionComponentWithDefaultProps<IDatePickerProps, typeof defaultProps>;
5
5
  declare const DatePicker: DatePickerType;
6
6
  export default DatePicker;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- declare type DatePickerStoryType = React.FunctionComponent<{
2
+ type DatePickerStoryType = React.FunctionComponent<{
3
3
  disableFuture: boolean;
4
4
  disablePast: boolean;
5
5
  errorMessage: string;
@@ -5,5 +5,5 @@ import { TextField } from '@mui/material';
5
5
  * I'm disabling eslint so the type definition can be exactly the same as the one in the material ui x-date-pickers package.
6
6
  * The type defined in MUI is wrong as readOnly is allowed, so I'm using "as" to override the type in DatePicker.tsx
7
7
  */
8
- declare type DatePickerTextFieldType = SlotComponentProps<typeof TextField, {}, Record<string, any>>;
8
+ type DatePickerTextFieldType = SlotComponentProps<typeof TextField, {}, Record<string, any>>;
9
9
  export default DatePickerTextFieldType;
@@ -25,7 +25,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
25
25
  function verb(n) { return function (v) { return step([n, v]); }; }
26
26
  function step(op) {
27
27
  if (f) throw new TypeError("Generator is already executing.");
28
- while (_) try {
28
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
29
29
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
30
30
  if (y = 0, t) op = [op[0] & 2, t.value];
31
31
  switch (op[0]) {
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponentWithDefaultProps } from '../../../Helpers/React';
2
2
  import IComponentProps from './IComponentProps';
3
3
  import defaultProps from './defaultProps';
4
- declare type DropDownSelectType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
4
+ type DropDownSelectType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
5
5
  declare const DropDownSelect: DropDownSelectType;
6
6
  export default DropDownSelect;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- declare type StoryType = React.FunctionComponent<{
2
+ type StoryType = React.FunctionComponent<{
3
3
  disabled: boolean;
4
4
  errorMessage: string;
5
5
  iconType?: 'none' | 'person' | 'zipcode' | 'phone' | 'email' | 'company' | 'state';
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponentWithDefaultProps } from '../../../Helpers/React/FunctionComponentWithDefaultProps';
2
2
  import IComponentProps from './IComponentProps';
3
3
  import defaultProps from './defaultProps';
4
- declare type IconTileCheckBoxType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
4
+ type IconTileCheckBoxType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
5
5
  declare const IconTileCheckBox: IconTileCheckBoxType;
6
6
  export default IconTileCheckBox;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ISvgs } from '../../../Assets/svgs/svgs';
3
- declare type IconTileCheckBoxStoryType = React.FunctionComponent<{
3
+ type IconTileCheckBoxStoryType = React.FunctionComponent<{
4
4
  error: boolean;
5
5
  iconType: keyof ISvgs;
6
6
  isOtherOption: boolean;
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponentWithDefaultProps } from '../../../Helpers/React/FunctionComponentWithDefaultProps';
2
2
  import IComponentProps from './IComponentProps';
3
3
  import defaultProps from './defaultProps';
4
- declare type IconTileRadioButtonType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
4
+ type IconTileRadioButtonType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
5
5
  declare const IconTileRadioButton: IconTileRadioButtonType;
6
6
  export default IconTileRadioButton;
@@ -48,7 +48,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
48
48
  function verb(n) { return function (v) { return step([n, v]); }; }
49
49
  function step(op) {
50
50
  if (f) throw new TypeError("Generator is already executing.");
51
- while (_) try {
51
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
52
52
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
53
53
  if (y = 0, t) op = [op[0] & 2, t.value];
54
54
  switch (op[0]) {
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ISvgs } from '../../../Assets/svgs/svgs';
3
- declare type IconTileRadioButtonStoryType = React.FunctionComponent<{
3
+ type IconTileRadioButtonStoryType = React.FunctionComponent<{
4
4
  error: boolean;
5
5
  iconType: keyof ISvgs;
6
6
  isOtherOption: boolean;
@@ -6,5 +6,6 @@ interface IComponentProps {
6
6
  onClickBack: () => void;
7
7
  onClickContinue: () => void;
8
8
  textOverflowHandling: 'none' | 'dynamicFontSize' | 'newline';
9
+ continueButtonHidden: boolean;
9
10
  }
10
11
  export default IComponentProps;
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponentWithDefaultProps } from '../../../Helpers/React/FunctionComponentWithDefaultProps';
2
2
  import defaultProps from './defaultProps';
3
3
  import IComponentProps from './IComponentProps';
4
- declare type NavBarType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
4
+ type NavBarType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
5
5
  declare const NavBar: NavBarType;
6
6
  export default NavBar;
@@ -23,9 +23,9 @@ var IconButton_1 = __importDefault(require("../../Atoms/IconButton/IconButton"))
23
23
  var defaultProps_1 = __importDefault(require("./defaultProps"));
24
24
  var makeNavBarStyles_1 = __importDefault(require("./makeNavBarStyles"));
25
25
  var NavBar = function (_a) {
26
- var buttonDisabled = _a.buttonDisabled, buttonLabel = _a.buttonLabel, disabled = _a.disabled, loading = _a.loading, onClickBack = _a.onClickBack, onClickContinue = _a.onClickContinue, _b = _a.textOverflowHandling, textOverflowHandling = _b === void 0 ? 'none' : _b;
26
+ var buttonDisabled = _a.buttonDisabled, buttonLabel = _a.buttonLabel, disabled = _a.disabled, loading = _a.loading, onClickBack = _a.onClickBack, onClickContinue = _a.onClickContinue, _b = _a.textOverflowHandling, textOverflowHandling = _b === void 0 ? 'none' : _b, continueButtonHidden = _a.continueButtonHidden;
27
27
  var styles = (0, makeNavBarStyles_1.default)();
28
- return ((0, jsx_runtime_1.jsxs)(Box_1.default, __assign({ css: styles.container }, { children: [(0, jsx_runtime_1.jsx)(Box_1.default, __assign({ css: styles.backButton }, { children: (0, jsx_runtime_1.jsx)(IconButton_1.default, { disabled: disabled, icon: (0, jsx_runtime_1.jsx)(KeyboardArrowLeft_1.default, {}), onClick: onClickBack, dataTestId: "backcta" }) })), (0, jsx_runtime_1.jsx)(Box_1.default, __assign({ css: styles.space }, { children: "\u00A0" })), (0, jsx_runtime_1.jsx)(Box_1.default, __assign({ css: styles.continueButton }, { children: (0, jsx_runtime_1.jsx)(Button_1.default, { disabled: buttonDisabled, onClick: onClickContinue, label: buttonLabel, loading: loading, dataTestId: "continuecta", textOverflowHandling: textOverflowHandling }) }))] })));
28
+ return ((0, jsx_runtime_1.jsxs)(Box_1.default, __assign({ css: styles.container }, { children: [(0, jsx_runtime_1.jsx)(Box_1.default, __assign({ css: styles.backButton }, { children: (0, jsx_runtime_1.jsx)(IconButton_1.default, { disabled: disabled, icon: (0, jsx_runtime_1.jsx)(KeyboardArrowLeft_1.default, {}), onClick: onClickBack, dataTestId: "backcta" }) })), (0, jsx_runtime_1.jsx)(Box_1.default, __assign({ css: styles.space }, { children: "\u00A0" })), (0, jsx_runtime_1.jsx)(Box_1.default, __assign({ css: styles.continueButton, sx: { display: continueButtonHidden ? 'none' : 'block' } }, { children: (0, jsx_runtime_1.jsx)(Button_1.default, { disabled: buttonDisabled, onClick: onClickContinue, label: buttonLabel, loading: loading, dataTestId: "continuecta", textOverflowHandling: textOverflowHandling }) }))] })));
29
29
  };
30
30
  NavBar.defaultProps = defaultProps_1.default;
31
31
  exports.default = NavBar;
@@ -1 +1 @@
1
- {"version":3,"file":"NavBar.js","sourceRoot":"","sources":["../../../../src/Components/Molecules/NavBar/NavBar.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,sCAAsC;AACtC,0DAAsC;AACtC,4FAAsE;AAEtE,qEAA+C;AAC/C,iFAA2D;AAC3D,gEAA0C;AAE1C,wEAAkD;AAOlD,IAAM,MAAM,GAAe,UAAC,EAQ3B;QAPC,cAAc,oBAAA,EACd,WAAW,iBAAA,EACX,QAAQ,cAAA,EACR,OAAO,aAAA,EACP,WAAW,iBAAA,EACX,eAAe,qBAAA,EACf,4BAA6B,EAA7B,oBAAoB,mBAAG,MAAM,KAAA;IAE7B,IAAM,MAAM,GAAG,IAAA,0BAAgB,GAAE,CAAC;IAClC,OAAO,CACL,wBAAC,aAAK,aAAC,GAAG,EAAE,MAAM,CAAC,SAAS,iBAC1B,uBAAC,aAAK,aAAC,GAAG,EAAE,MAAM,CAAC,UAAU,gBAC3B,uBAAC,oBAAU,IACT,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,uBAAC,2BAAiB,KAAG,EAC3B,OAAO,EAAE,WAAW,EACpB,UAAU,EAAC,SAAS,GACpB,IACI,EACR,uBAAC,aAAK,aAAC,GAAG,EAAE,MAAM,CAAC,KAAK,4BAAgB,EACxC,uBAAC,aAAK,aAAC,GAAG,EAAE,MAAM,CAAC,cAAc,gBAC/B,uBAAC,gBAAM,IACL,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,eAAe,EACxB,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE,OAAO,EAChB,UAAU,EAAC,aAAa,EACxB,oBAAoB,EAAE,oBAAoB,GAC1C,IACI,KACF,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,YAAY,GAAG,sBAAY,CAAC;AAEnC,kBAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"NavBar.js","sourceRoot":"","sources":["../../../../src/Components/Molecules/NavBar/NavBar.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,sCAAsC;AACtC,0DAAsC;AACtC,4FAAsE;AAEtE,qEAA+C;AAC/C,iFAA2D;AAC3D,gEAA0C;AAE1C,wEAAkD;AAOlD,IAAM,MAAM,GAAe,UAAC,EAS3B;QARC,cAAc,oBAAA,EACd,WAAW,iBAAA,EACX,QAAQ,cAAA,EACR,OAAO,aAAA,EACP,WAAW,iBAAA,EACX,eAAe,qBAAA,EACf,4BAA6B,EAA7B,oBAAoB,mBAAG,MAAM,KAAA,EAC7B,oBAAoB,0BAAA;IAEpB,IAAM,MAAM,GAAG,IAAA,0BAAgB,GAAE,CAAC;IAClC,OAAO,CACL,wBAAC,aAAK,aAAC,GAAG,EAAE,MAAM,CAAC,SAAS,iBAC1B,uBAAC,aAAK,aAAC,GAAG,EAAE,MAAM,CAAC,UAAU,gBAC3B,uBAAC,oBAAU,IACT,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,uBAAC,2BAAiB,KAAG,EAC3B,OAAO,EAAE,WAAW,EACpB,UAAU,EAAC,SAAS,GACpB,IACI,EACR,uBAAC,aAAK,aAAC,GAAG,EAAE,MAAM,CAAC,KAAK,4BAAgB,EACxC,uBAAC,aAAK,aACJ,GAAG,EAAE,MAAM,CAAC,cAAc,EAC1B,EAAE,EAAE,EAAE,OAAO,EAAE,oBAAoB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,gBAExD,uBAAC,gBAAM,IACL,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,eAAe,EACxB,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE,OAAO,EAChB,UAAU,EAAC,aAAa,EACxB,oBAAoB,EAAE,oBAAoB,GAC1C,IACI,KACF,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,YAAY,GAAG,sBAAY,CAAC;AAEnC,kBAAe,MAAM,CAAC"}
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  var jsx_runtime_1 = require("@emotion/react/jsx-runtime");
7
7
  var renderWithProviders_1 = __importDefault(require("../../../Helpers/React/renderWithProviders"));
8
8
  var NavBar_1 = __importDefault(require("./NavBar"));
9
+ var react_1 = require("@testing-library/react");
9
10
  describe('<NavBar />', function () {
10
11
  it('should display button component', function () {
11
12
  var getByText = (0, renderWithProviders_1.default)((0, jsx_runtime_1.jsx)(NavBar_1.default, { buttonLabel: 'Continue' })).getByText;
@@ -18,4 +19,18 @@ describe('<NavBar />', function () {
18
19
  expect(getByText('Continue')).toBeTruthy();
19
20
  });
20
21
  });
22
+ describe('NavBar', function () {
23
+ describe('continueButtonHidden prop', function () {
24
+ it('should hide continue button when continueButtonHidden is true', function () {
25
+ (0, renderWithProviders_1.default)((0, jsx_runtime_1.jsx)(NavBar_1.default, { buttonLabel: "Continue", onClickBack: function () { }, onClickContinue: function () { }, continueButtonHidden: true }));
26
+ var continueButton = react_1.screen.getByTestId('continuecta').parentElement;
27
+ expect(continueButton).toHaveStyle({ display: 'none' });
28
+ });
29
+ it('should show continue button when continueButtonHidden is false', function () {
30
+ (0, renderWithProviders_1.default)((0, jsx_runtime_1.jsx)(NavBar_1.default, { buttonLabel: "Continue", onClickBack: function () { }, onClickContinue: function () { }, continueButtonHidden: false }));
31
+ var continueButton = react_1.screen.getByTestId('continuecta').parentElement;
32
+ expect(continueButton).toHaveStyle({ display: 'block' });
33
+ });
34
+ });
35
+ });
21
36
  //# sourceMappingURL=NavBar.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavBar.test.js","sourceRoot":"","sources":["../../../../src/Components/Molecules/NavBar/NavBar.test.tsx"],"names":[],"mappings":";;;;;;AAAA,mGAA6E;AAC7E,oDAA8B;AAE9B,QAAQ,CAAC,YAAY,EAAE;IACrB,EAAE,CAAC,iCAAiC,EAAE;QAC5B,IAAA,SAAS,GAAK,IAAA,6BAAmB,EACvC,uBAAC,gBAAM,IAAC,WAAW,EAAE,UAAU,GAAI,CACpC,UAFgB,CAEf;QACF,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;IAC7C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,YAAY,EAAE;IACrB,EAAE,CAAC,uEAAuE,EAAE;QAClE,IAAA,SAAS,GAAK,IAAA,6BAAmB,EACvC,uBAAC,gBAAM,IACL,WAAW,EAAE,UAAU,EACvB,oBAAoB,EAAE,iBAAiB,GACvC,CACH,UALgB,CAKf;QACF,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;IAC7C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"NavBar.test.js","sourceRoot":"","sources":["../../../../src/Components/Molecules/NavBar/NavBar.test.tsx"],"names":[],"mappings":";;;;;;AAAA,mGAA6E;AAC7E,oDAA8B;AAC9B,gDAAgD;AAEhD,QAAQ,CAAC,YAAY,EAAE;IACrB,EAAE,CAAC,iCAAiC,EAAE;QAC5B,IAAA,SAAS,GAAK,IAAA,6BAAmB,EACvC,uBAAC,gBAAM,IAAC,WAAW,EAAE,UAAU,GAAI,CACpC,UAFgB,CAEf;QACF,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;IAC7C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,YAAY,EAAE;IACrB,EAAE,CAAC,uEAAuE,EAAE;QAClE,IAAA,SAAS,GAAK,IAAA,6BAAmB,EACvC,uBAAC,gBAAM,IACL,WAAW,EAAE,UAAU,EACvB,oBAAoB,EAAE,iBAAiB,GACvC,CACH,UALgB,CAKf;QACF,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;IAC7C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,QAAQ,EAAE;IACjB,QAAQ,CAAC,2BAA2B,EAAE;QACpC,EAAE,CAAC,+DAA+D,EAAE;YAClE,IAAA,6BAAmB,EACjB,uBAAC,gBAAM,IACL,WAAW,EAAC,UAAU,EACtB,WAAW,EAAE,cAAO,CAAC,EACrB,eAAe,EAAE,cAAO,CAAC,EACzB,oBAAoB,EAAE,IAAI,GAC1B,CACH,CAAC;YAEF,IAAM,cAAc,GAAG,cAAM,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,aAAa,CAAC;YACvE,MAAM,CAAC,cAAc,CAAC,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC;QAC1D,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,gEAAgE,EAAE;YACnE,IAAA,6BAAmB,EACjB,uBAAC,gBAAM,IACL,WAAW,EAAC,UAAU,EACtB,WAAW,EAAE,cAAO,CAAC,EACrB,eAAe,EAAE,cAAO,CAAC,EACzB,oBAAoB,EAAE,KAAK,GAC3B,CACH,CAAC;YAEF,IAAM,cAAc,GAAG,cAAM,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,aAAa,CAAC;YACvE,MAAM,CAAC,cAAc,CAAC,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;QAC3D,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,11 +1,12 @@
1
1
  import * as React from 'react';
2
- declare type NavBarStoryType = React.FunctionComponent<{
2
+ type NavBarStoryType = React.FunctionComponent<{
3
3
  disabled: boolean;
4
4
  buttonDisabled: boolean;
5
5
  buttonLabel: string;
6
6
  buttonVariant: 'outlined' | 'contained';
7
7
  loading: boolean;
8
8
  textOverflowHandling: 'none' | 'dynamicFontSize' | 'newline';
9
+ continueButtonHidden: boolean;
9
10
  }>;
10
11
  declare const NavBarStory: NavBarStoryType;
11
12
  export default NavBarStory;
@@ -18,8 +18,8 @@ var jsx_runtime_1 = require("@emotion/react/jsx-runtime");
18
18
  var addon_actions_1 = require("@storybook/addon-actions");
19
19
  var NavBar_1 = __importDefault(require("./NavBar"));
20
20
  var NavBarStory = function (_a) {
21
- var disabled = _a.disabled, buttonDisabled = _a.buttonDisabled, buttonLabel = _a.buttonLabel, buttonVariant = _a.buttonVariant, loading = _a.loading, textOverflowHandling = _a.textOverflowHandling;
22
- return ((0, jsx_runtime_1.jsx)("div", __assign({ style: { maxWidth: '460px' } }, { children: (0, jsx_runtime_1.jsx)(NavBar_1.default, { disabled: disabled, onClickBack: (0, addon_actions_1.action)('Icon Button Clicked'), buttonDisabled: buttonDisabled, buttonLabel: buttonLabel, onClickContinue: (0, addon_actions_1.action)('Button Clicked'), buttonVariant: buttonVariant, loading: loading, textOverflowHandling: textOverflowHandling }) })));
21
+ var disabled = _a.disabled, buttonDisabled = _a.buttonDisabled, buttonLabel = _a.buttonLabel, buttonVariant = _a.buttonVariant, loading = _a.loading, textOverflowHandling = _a.textOverflowHandling, continueButtonHidden = _a.continueButtonHidden;
22
+ return ((0, jsx_runtime_1.jsx)("div", __assign({ style: { maxWidth: '460px' } }, { children: (0, jsx_runtime_1.jsx)(NavBar_1.default, { disabled: disabled, onClickBack: (0, addon_actions_1.action)('Icon Button Clicked'), buttonDisabled: buttonDisabled, buttonLabel: buttonLabel, onClickContinue: (0, addon_actions_1.action)('Button Clicked'), buttonVariant: buttonVariant, loading: loading, textOverflowHandling: textOverflowHandling, continueButtonHidden: continueButtonHidden }) })));
23
23
  };
24
24
  exports.default = NavBarStory;
25
25
  //# sourceMappingURL=NavBarStory.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavBarStory.js","sourceRoot":"","sources":["../../../../src/Components/Molecules/NavBar/NavBarStory.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,0DAAkD;AAClD,oDAA8B;AAW9B,IAAM,WAAW,GAAoB,UAAC,EAOrC;QANC,QAAQ,cAAA,EACR,cAAc,oBAAA,EACd,WAAW,iBAAA,EACX,aAAa,mBAAA,EACb,OAAO,aAAA,EACP,oBAAoB,0BAAA;IAChB,OAAA,CACJ,yCAAK,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,gBAC/B,uBAAC,gBAAM,IACL,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,IAAA,sBAAM,EAAC,qBAAqB,CAAC,EAC1C,cAAc,EAAE,cAAc,EAC9B,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,IAAA,sBAAM,EAAC,gBAAgB,CAAC,EACzC,aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,OAAO,EAChB,oBAAoB,EAAE,oBAAoB,GAC1C,IACE,CACP;AAbK,CAaL,CAAC;AAEF,kBAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"NavBarStory.js","sourceRoot":"","sources":["../../../../src/Components/Molecules/NavBar/NavBarStory.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,0DAAkD;AAClD,oDAA8B;AAY9B,IAAM,WAAW,GAAoB,UAAC,EAQrC;QAPC,QAAQ,cAAA,EACR,cAAc,oBAAA,EACd,WAAW,iBAAA,EACX,aAAa,mBAAA,EACb,OAAO,aAAA,EACP,oBAAoB,0BAAA,EACpB,oBAAoB,0BAAA;IAChB,OAAA,CACJ,yCAAK,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,gBAC/B,uBAAC,gBAAM,IACL,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,IAAA,sBAAM,EAAC,qBAAqB,CAAC,EAC1C,cAAc,EAAE,cAAc,EAC9B,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,IAAA,sBAAM,EAAC,gBAAgB,CAAC,EACzC,aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,OAAO,EAChB,oBAAoB,EAAE,oBAAoB,EAC1C,oBAAoB,EAAE,oBAAoB,GAC1C,IACE,CACP;AAdK,CAcL,CAAC;AAEF,kBAAe,WAAW,CAAC"}
@@ -6,5 +6,6 @@ declare const defaultProps: {
6
6
  onClickBack: () => void;
7
7
  onClickContinue: () => void;
8
8
  textOverflowHandling: "none" | "dynamicFontSize" | "newline";
9
+ continueButtonHidden: boolean;
9
10
  };
10
11
  export default defaultProps;
@@ -12,6 +12,7 @@ var defaultProps = {
12
12
  // do nothing
13
13
  },
14
14
  textOverflowHandling: 'none',
15
+ continueButtonHidden: false,
15
16
  };
16
17
  exports.default = defaultProps;
17
18
  //# sourceMappingURL=defaultProps.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"defaultProps.js","sourceRoot":"","sources":["../../../../src/Components/Molecules/NavBar/defaultProps.ts"],"names":[],"mappings":";;AAAA,IAAM,YAAY,GAAG;IACnB,cAAc,EAAE,KAAgB;IAChC,aAAa,EAAE,WAAuC;IACtD,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,KAAK;IACd,WAAW,EAAE;QACX,aAAa;IACf,CAAC;IACD,eAAe,EAAE;QACf,aAAa;IACf,CAAC;IACD,oBAAoB,EAAE,MAAgD;CACvE,CAAC;AAEF,kBAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"defaultProps.js","sourceRoot":"","sources":["../../../../src/Components/Molecules/NavBar/defaultProps.ts"],"names":[],"mappings":";;AAAA,IAAM,YAAY,GAAG;IACnB,cAAc,EAAE,KAAgB;IAChC,aAAa,EAAE,WAAuC;IACtD,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,KAAK;IACd,WAAW,EAAE;QACX,aAAa;IACf,CAAC;IACD,eAAe,EAAE;QACf,aAAa;IACf,CAAC;IACD,oBAAoB,EAAE,MAAgD;IACtE,oBAAoB,EAAE,KAAK;CAC5B,CAAC;AAEF,kBAAe,YAAY,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponentWithDefaultProps } from '../../../Helpers/React';
2
2
  import IPhoneNumberTextFieldProps from './IPhoneNumberTextFieldProps';
3
3
  import defaultProps from './defaultProps';
4
- declare type PhoneNumberTextFieldType = FunctionComponentWithDefaultProps<IPhoneNumberTextFieldProps, typeof defaultProps>;
4
+ type PhoneNumberTextFieldType = FunctionComponentWithDefaultProps<IPhoneNumberTextFieldProps, typeof defaultProps>;
5
5
  declare const PhoneNumberTextField: PhoneNumberTextFieldType;
6
6
  export default PhoneNumberTextField;
@@ -1,6 +1,6 @@
1
1
  import 'intl-tel-input/build/css/intlTelInput.css';
2
2
  import * as React from 'react';
3
- declare type StoryType = React.FunctionComponent<{
3
+ type StoryType = React.FunctionComponent<{
4
4
  disabled: boolean;
5
5
  errorMessage: string;
6
6
  isAnswered: boolean;
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponentWithDefaultProps } from '../../../Helpers/React/FunctionComponentWithDefaultProps';
2
2
  import IComponentProps from './IRadioButtonProps';
3
3
  import defaultProps from './defaultProps';
4
- declare type RadioButtonType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
4
+ type RadioButtonType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
5
5
  declare const RadioButton: RadioButtonType;
6
6
  export default RadioButton;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ISvgs } from '../../../Assets/svgs/svgs';
3
- declare type RadioButtonStoryType = React.FunctionComponent<{
3
+ type RadioButtonStoryType = React.FunctionComponent<{
4
4
  error: boolean;
5
5
  iconType: keyof ISvgs | 'none';
6
6
  otherInputError: boolean;
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -1,5 +1,5 @@
1
1
  import { FunctionComponent } from 'react';
2
- declare type ScrollContainerType = FunctionComponent<{
2
+ type ScrollContainerType = FunctionComponent<{
3
3
  parentHeight: number;
4
4
  childHeight: number;
5
5
  }>;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import IScrollContainerProps from './IScrollContainerProps';
3
- export declare type ScrollContainerType = React.FunctionComponent<IScrollContainerProps>;
4
- export declare type ScrollDetails = {
3
+ export type ScrollContainerType = React.FunctionComponent<IScrollContainerProps>;
4
+ export type ScrollDetails = {
5
5
  scrollHeight: number;
6
6
  clientHeight: number;
7
7
  offsetTop: number;
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponentWithDefaultProps } from '../../../Helpers/React/FunctionComponentWithDefaultProps';
2
2
  import ISupplierCardProps from './ISupplierCardProps';
3
3
  import defaultProps from './defaultProps';
4
- declare type SupplierCardType = FunctionComponentWithDefaultProps<ISupplierCardProps, typeof defaultProps>;
4
+ type SupplierCardType = FunctionComponentWithDefaultProps<ISupplierCardProps, typeof defaultProps>;
5
5
  declare const SupplierCard: SupplierCardType;
6
6
  export default SupplierCard;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import supplierLogos from '../../../Assets/SupplierLogos/supplierLogos';
3
- declare type SupplierCardStoryType = React.FunctionComponent<{
3
+ type SupplierCardStoryType = React.FunctionComponent<{
4
4
  ctaText: string;
5
5
  badgeText?: string;
6
6
  includeCheckbox: boolean;
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponentWithDefaultProps } from '../../../Helpers/React';
2
2
  import ITextFieldProps from './ITextFieldProps';
3
3
  import defaultProps from './defaultProps';
4
- declare type TextFieldType = FunctionComponentWithDefaultProps<ITextFieldProps, typeof defaultProps>;
4
+ type TextFieldType = FunctionComponentWithDefaultProps<ITextFieldProps, typeof defaultProps>;
5
5
  declare const TextField: TextFieldType;
6
6
  export default TextField;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- declare type StoryType = React.FunctionComponent<{
2
+ type StoryType = React.FunctionComponent<{
3
3
  disabled: boolean;
4
4
  errorMessage: string;
5
5
  iconType: 'none' | 'person' | 'zipcode' | 'phone' | 'email' | 'company' | 'state' | 'locationService';
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  /** @jsxImportSource @emotion/react */
3
3
  import IThankYouBannerProps from './IThankYouBannerProps';
4
- declare type ThankYouBannerType = React.FunctionComponent<IThankYouBannerProps>;
4
+ type ThankYouBannerType = React.FunctionComponent<IThankYouBannerProps>;
5
5
  declare const ThankYouBanner: ThankYouBannerType;
6
6
  export default ThankYouBanner;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IBrandLogos } from '../../../Assets/BrandLogos/brandLogos';
3
- declare type ThankYouBannerStoryType = React.FunctionComponent<{
3
+ type ThankYouBannerStoryType = React.FunctionComponent<{
4
4
  brandType: keyof IBrandLogos;
5
5
  submissionId: string;
6
6
  }>;
@@ -1,6 +1,6 @@
1
1
  /** @jsxImportSource @emotion/react */
2
2
  import { FunctionComponent } from 'react';
3
3
  import IComponentProps from './IComponentProps';
4
- declare type ListLayoutType = FunctionComponent<IComponentProps>;
4
+ type ListLayoutType = FunctionComponent<IComponentProps>;
5
5
  declare const ListLayout: ListLayoutType;
6
6
  export default ListLayout;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ISvgs } from '../../../Assets/svgs/svgs';
3
- declare type ListLayoutStoryType = React.FunctionComponent<{
3
+ type ListLayoutStoryType = React.FunctionComponent<{
4
4
  iconType: keyof ISvgs | 'none';
5
5
  optionsCount: number;
6
6
  text: string;
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponentWithDefaultProps } from '../../../Helpers/React/FunctionComponentWithDefaultProps';
2
2
  import IComponentProps from './IComponentProps';
3
3
  import defaultProps from './defaultProps';
4
- declare type RadioGroupType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
4
+ type RadioGroupType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
5
5
  declare const RadioGroup: RadioGroupType;
6
6
  export default RadioGroup;
@@ -25,7 +25,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
25
25
  function verb(n) { return function (v) { return step([n, v]); }; }
26
26
  function step(op) {
27
27
  if (f) throw new TypeError("Generator is already executing.");
28
- while (_) try {
28
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
29
29
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
30
30
  if (y = 0, t) op = [op[0] & 2, t.value];
31
31
  switch (op[0]) {
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type RadioGroupContextType = {
2
+ type RadioGroupContextType = {
3
3
  selectedId?: string;
4
4
  setSelectedId: (id: string | undefined) => void;
5
5
  };
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ISvgs } from '../../../Assets/svgs/svgs';
3
- declare type RadioGroupStoryType = React.FunctionComponent<{
3
+ type RadioGroupStoryType = React.FunctionComponent<{
4
4
  iconType: keyof ISvgs | 'none';
5
5
  defaultSelectedId?: string;
6
6
  itemsCount: number;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ISvgs } from '../../../Assets/svgs/svgs';
3
- declare type TileLayoutStoryType = React.FunctionComponent<{
3
+ type TileLayoutStoryType = React.FunctionComponent<{
4
4
  itemsCount: number;
5
5
  iconType: keyof ISvgs;
6
6
  text: string;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ISvgs } from '../../../Assets/svgs/svgs';
3
- declare type TileLayoutStoryType = React.FunctionComponent<{
3
+ type TileLayoutStoryType = React.FunctionComponent<{
4
4
  itemsCount: number;
5
5
  iconType: keyof ISvgs;
6
6
  text: string;
@@ -1,5 +1,5 @@
1
1
  import { FunctionComponent } from 'react';
2
2
  import IComponentProps from './IComponentProps';
3
- declare type TileLayoutType = FunctionComponent<IComponentProps>;
3
+ type TileLayoutType = FunctionComponent<IComponentProps>;
4
4
  declare const TileLayout: TileLayoutType;
5
5
  export default TileLayout;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- export declare type FunctionComponentWithDefaultProps<T, D extends Partial<React.ComponentProps<React.FC<T>>>> = Pick<React.FC<T>, Exclude<keyof React.FC<T>, 'defaultProps'>> & (React.FC<T> extends (...a: infer A) => infer R ? (...a: A) => R : never) & {
2
+ export type FunctionComponentWithDefaultProps<T, D extends Partial<React.ComponentProps<React.FC<T>>>> = Pick<React.FC<T>, Exclude<keyof React.FC<T>, 'defaultProps'>> & (React.FC<T> extends (...a: infer A) => infer R ? (...a: A) => R : never) & {
3
3
  defaultProps: D;
4
4
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type CssProps = React.CSSProperties | {
2
+ type CssProps = React.CSSProperties | {
3
3
  [key: string]: CssProps;
4
4
  };
5
5
  declare const css: (props: CssProps) => React.CSSProperties;
@@ -9,5 +9,5 @@ declare const icons: {
9
9
  muiName: string;
10
10
  };
11
11
  };
12
- export declare type IIcons = typeof icons;
12
+ export type IIcons = typeof icons;
13
13
  export default icons;
@@ -1,4 +1,4 @@
1
1
  import { DebouncedFunc } from 'lodash';
2
- declare type ThrottledFunction = (value: unknown) => void;
2
+ type ThrottledFunction = (value: unknown) => void;
3
3
  declare const useThrottle: (func: ThrottledFunction, wait: number) => DebouncedFunc<ThrottledFunction>;
4
4
  export default useThrottle;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IThemes } from './themes';
3
- declare type StoryThemeWrapperType = React.FunctionComponent<{
3
+ type StoryThemeWrapperType = React.FunctionComponent<{
4
4
  children: React.ReactNode;
5
5
  themeType: keyof IThemes;
6
6
  fontSizeMultiplier?: number;
@@ -865,8 +865,8 @@ declare const themes: {
865
865
  };
866
866
  };
867
867
  };
868
- export declare type ITheme = typeof customTheme;
869
- export declare type IThemes = typeof themes;
868
+ export type ITheme = typeof customTheme;
869
+ export type IThemes = typeof themes;
870
870
  export declare const getThemeWithFontMultiplier: (theme: keyof IThemes, fontSizeMultiplier?: number) => import("@mui/material").Theme & {
871
871
  mvf: {
872
872
  border: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mvf/external-components",
3
- "version": "3.12.0",
3
+ "version": "3.13.0",
4
4
  "license": "UNLICENSED",
5
5
  "scripts": {
6
6
  "dev": "scripts/up.sh",