@mvf/external-components 3.8.0 → 3.8.1-dev.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) 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/Link/Link.d.ts +1 -1
  33. package/Components/Atoms/Link/LinkStory.d.ts +1 -1
  34. package/Components/Atoms/LoadingIndicator/LoadingIndicator.d.ts +1 -1
  35. package/Components/Atoms/Modal/Modal.d.ts +1 -1
  36. package/Components/Atoms/Modal/ModalStory.d.ts +1 -1
  37. package/Components/Atoms/ProgressBar/ProgressBar.d.ts +1 -1
  38. package/Components/Atoms/ProgressBar/ProgressBarStory.d.ts +1 -1
  39. package/Components/Atoms/Text/Text.d.ts +1 -1
  40. package/Components/Atoms/Text/TextStory.d.ts +1 -1
  41. package/Components/Molecules/CheckBox/CheckBox.d.ts +1 -1
  42. package/Components/Molecules/CheckBox/CheckBox.test.js +1 -1
  43. package/Components/Molecules/CheckBox/CheckBoxStory.d.ts +1 -1
  44. package/Components/Molecules/DatePicker/DatePicker.d.ts +1 -1
  45. package/Components/Molecules/DatePicker/DatePicker.js +26 -3
  46. package/Components/Molecules/DatePicker/DatePicker.js.map +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/IDatePickerProps.d.ts +3 -0
  50. package/Components/Molecules/DatePicker/__tests__/DatePicker.test.js +1 -1
  51. package/Components/Molecules/DatePicker/defaultProps.d.ts +2 -0
  52. package/Components/Molecules/DatePicker/defaultProps.js +2 -0
  53. package/Components/Molecules/DatePicker/defaultProps.js.map +1 -1
  54. package/Components/Molecules/DropDownSelect/DropDownSelect.d.ts +1 -1
  55. package/Components/Molecules/DropDownSelect/DropDownSelectStory.d.ts +1 -1
  56. package/Components/Molecules/IconTileCheckBox/IconTileCheckBox.d.ts +1 -1
  57. package/Components/Molecules/IconTileCheckBox/IconTileCheckBoxStory.d.ts +1 -1
  58. package/Components/Molecules/IconTileRadioButton/IconTileRadioButton.d.ts +1 -1
  59. package/Components/Molecules/IconTileRadioButton/IconTileRadioButton.test.js +1 -1
  60. package/Components/Molecules/IconTileRadioButton/IconTileRadioButtonStory.d.ts +1 -1
  61. package/Components/Molecules/NavBar/NavBar.d.ts +1 -1
  62. package/Components/Molecules/NavBar/NavBarStory.d.ts +1 -1
  63. package/Components/Molecules/PhoneNumberTextField/PhoneNumberTextField.d.ts +1 -1
  64. package/Components/Molecules/PhoneNumberTextField/PhoneNumberTextFieldStory.d.ts +1 -1
  65. package/Components/Molecules/RadioButton/RadioButton.d.ts +1 -1
  66. package/Components/Molecules/RadioButton/RadioButtonStory.d.ts +1 -1
  67. package/Components/Molecules/ScrollContainer/ScrollContainer.test.js +1 -1
  68. package/Components/Molecules/ScrollContainer/ScrollContainerStory.d.ts +1 -1
  69. package/Components/Molecules/ScrollContainer/ScrollContainerTypes.d.ts +2 -2
  70. package/Components/Molecules/TextField/TextField.d.ts +1 -1
  71. package/Components/Molecules/TextField/TextFieldStory.d.ts +1 -1
  72. package/Components/Molecules/ThankYouBanner/ThankYouBanner.d.ts +1 -1
  73. package/Components/Molecules/ThankYouBanner/ThankYouBannerStory.d.ts +1 -1
  74. package/Components/Organisms/ListLayout/ListLayout.d.ts +1 -1
  75. package/Components/Organisms/ListLayout/ListLayoutStory.d.ts +1 -1
  76. package/Components/Organisms/RadioGroup/RadioGroup.d.ts +1 -1
  77. package/Components/Organisms/RadioGroup/RadioGroup.test.js +1 -1
  78. package/Components/Organisms/RadioGroup/RadioGroupContext.d.ts +1 -1
  79. package/Components/Organisms/RadioGroup/RadioGroupStory.d.ts +1 -1
  80. package/Components/Organisms/TileLayout/IconTileCheckBoxStory.d.ts +1 -1
  81. package/Components/Organisms/TileLayout/IconTileRadioButtonStory.d.ts +1 -1
  82. package/Components/Organisms/TileLayout/TileLayout.d.ts +1 -1
  83. package/Helpers/React/FunctionComponentWithDefaultProps.d.ts +1 -1
  84. package/Helpers/React/css.d.ts +1 -1
  85. package/Helpers/icons.d.ts +1 -1
  86. package/Helpers/useThrottle.d.ts +1 -1
  87. package/Themes/StoryThemeWrapper.d.ts +1 -1
  88. package/Themes/themes.d.ts +2 -2
  89. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
1
  import { FunctionComponent } from 'react';
2
- type ExpertMarketLogoType = FunctionComponent;
2
+ declare 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
- type ExpertReviewsLogoType = FunctionComponent;
2
+ declare 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
- type GoWizardLogoType = FunctionComponent;
2
+ declare 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
- type HearClearLogoType = FunctionComponent;
2
+ declare 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
- type LasikEyesLogoType = FunctionComponent;
2
+ declare 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
- type StartUpsLogoType = FunctionComponent;
2
+ declare 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
- type TechCoLogoType = FunctionComponent;
2
+ declare 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
- type TheEcoExpertsLogoType = FunctionComponent;
2
+ declare 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
- type WebsiteBuilderExpertLogoType = FunctionComponent;
2
+ declare 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 type IBrandLogos = typeof brandLogos;
14
+ export declare type IBrandLogos = typeof brandLogos;
15
15
  export default brandLogos;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- type CheckboxType = React.FunctionComponent<{
2
+ declare 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
- type RadioType = React.FunctionComponent<{
2
+ declare 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 type ISvgs = typeof svgs;
10
+ export declare type ISvgs = typeof svgs;
11
11
  export default svgs;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type AnimationWrapperStoryType = React.FunctionComponent<{
2
+ declare 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
- type ButtonType = FunctionComponentWithDefaultProps<IButtonProps, typeof defaultProps>;
4
+ declare 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
- type ButtonStoryType = React.FunctionComponent<{
2
+ declare 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
- type CardButtonType = FunctionComponentWithDefaultProps<ICardButtonProps, typeof defaultProps>;
4
+ declare 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
- type CardButtonStoryType = React.FunctionComponent<{
2
+ declare 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
- type ErrorMessageType = FunctionComponent;
3
+ declare 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
- type ErrorMessageStoryType = React.FunctionComponent<{
2
+ declare 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
- type ErrorMessageProviderProps = {
2
+ declare type ErrorMessageProviderProps = {
3
3
  errorMessage: string | undefined;
4
4
  };
5
- type ErrorMessageProviderType = React.FunctionComponent<{
5
+ declare type ErrorMessageProviderType = React.FunctionComponent<{
6
6
  children: React.ReactNode;
7
7
  errorMessage?: string;
8
8
  }>;
9
9
  declare const ErrorMessageProvider: ErrorMessageProviderType;
10
- type UseErrorMessageProps = {
10
+ declare 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
- type FormControlType = FunctionComponentWithDefaultProps<IFormControlProps, typeof defaultProps>;
4
+ declare 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
- type StoryType = React.FunctionComponent<{
2
+ declare 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 type IconButtonType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
4
+ export declare 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
- type ButtonStartIconStoryType = React.FunctionComponent<{
3
+ declare 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
- type InfoPanelType = FunctionComponentWithDefaultProps<IInfoPanelProps, typeof defaultProps>;
5
+ declare 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
- type InfoPanelType = React.FunctionComponent<{
3
+ declare 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
- type InputType = FunctionComponentWithDefaultProps<IInputProps, typeof defaultProps>;
4
+ declare 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
- type StoryType = React.FunctionComponent<{
2
+ declare 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
- type InputLabelType = FunctionComponentWithDefaultProps<IInputLabelProps, typeof defaultProps>;
4
+ declare 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
- type StoryType = React.FunctionComponent;
2
+ declare type StoryType = React.FunctionComponent;
3
3
  declare const FormControlStory: StoryType;
4
4
  export default FormControlStory;
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponentWithDefaultProps } from '../../../Helpers/React';
2
2
  import defaultProps from './defaultProps';
3
3
  import ILinkProps from './ILinkProps';
4
- type LinkType = FunctionComponentWithDefaultProps<ILinkProps, typeof defaultProps>;
4
+ declare 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
- type LinkType = React.FunctionComponent<{
2
+ declare 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
- type LoadingIndicatorType = FunctionComponent<IComponentProps>;
4
+ declare 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
- type ModalType = React.FunctionComponent<IModalProps>;
3
+ declare 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
- type ModalStoryType = React.FunctionComponent<{
2
+ declare 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
- type ProgressBarType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
4
+ declare 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
- type ProgressBarStoryType = React.FunctionComponent<{
2
+ declare 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
- type TextType = FunctionComponentWithDefaultProps<ITextProps, typeof defaultProps>;
4
+ declare 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
- type TextStoryType = React.FunctionComponent<{
2
+ declare type TextStoryType = React.FunctionComponent<{
3
3
  text: string;
4
4
  variant: 'header' | 'note' | 'summary' | 'question' | 'text' | 'footer' | 'listItem' | 'tileItem';
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
- type CheckBoxType = FunctionComponentWithDefaultProps<ICheckboxProps, typeof defaultProps>;
4
+ declare 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 (g && (g = 0, op[0] && (_ = 0)), _) try {
17
+ while (_) 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
- type CheckBoxStoryType = React.FunctionComponent<{
3
+ declare 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
- type DatePickerType = FunctionComponentWithDefaultProps<IDatePickerProps, typeof defaultProps>;
4
+ declare type DatePickerType = FunctionComponentWithDefaultProps<IDatePickerProps, typeof defaultProps>;
5
5
  declare const DatePicker: DatePickerType;
6
6
  export default DatePicker;
@@ -35,9 +35,11 @@ var makeDatePickerStyling_1 = __importDefault(require("./makeDatePickerStyling")
35
35
  var react_2 = require("@emotion/react");
36
36
  var DesktopDatePicker_1 = require("@mui/x-date-pickers/DesktopDatePicker");
37
37
  var DatePicker = function (_a) {
38
- var id = _a.id, onChange = _a.onChange, format = _a.format, value = _a.value, errorMessage = _a.errorMessage, placeholder = _a.placeholder, props = __rest(_a, ["id", "onChange", "format", "value", "errorMessage", "placeholder"]);
38
+ var id = _a.id, openDelay = _a.openDelay, onChange = _a.onChange, onOpen = _a.onOpen, onClose = _a.onClose, format = _a.format, value = _a.value, errorMessage = _a.errorMessage, placeholder = _a.placeholder, props = __rest(_a, ["id", "openDelay", "onChange", "onOpen", "onClose", "format", "value", "errorMessage", "placeholder"]);
39
39
  var isValid = !errorMessage && !!value;
40
40
  var _b = react_1.default.useState(false), isPickerOpen = _b[0], setIsPickerOpen = _b[1];
41
+ var _c = react_1.default.useState(), openPickerTimeoutId = _c[0], setOpenPickerTimeoutId = _c[1];
42
+ console.log(openPickerTimeoutId);
41
43
  var styles = (0, makeDatePickerStyling_1.default)({
42
44
  isError: !!errorMessage,
43
45
  isValid: isValid,
@@ -45,19 +47,40 @@ var DatePicker = function (_a) {
45
47
  var handleChange = function (d) {
46
48
  onChange(d ? d : undefined);
47
49
  };
50
+ var handleOpen = function () {
51
+ var timeoutId;
52
+ onOpen();
53
+ if (openDelay) {
54
+ timeoutId = setTimeout(function () {
55
+ setIsPickerOpen(true);
56
+ }, openDelay);
57
+ }
58
+ else {
59
+ setIsPickerOpen(true);
60
+ }
61
+ setOpenPickerTimeoutId(timeoutId);
62
+ };
63
+ var handleClose = function () {
64
+ onClose();
65
+ if (openPickerTimeoutId) {
66
+ clearTimeout(openPickerTimeoutId);
67
+ setOpenPickerTimeoutId(undefined);
68
+ }
69
+ setIsPickerOpen(false);
70
+ };
48
71
  var endAdornment;
49
72
  if (isValid || errorMessage) {
50
73
  var validationIconType = isValid ? 'valid' : 'invalid';
51
74
  var ValidationIconComponent = icons_1.default[validationIconType];
52
75
  endAdornment = ((0, jsx_runtime_1.jsx)(InputAdornment_1.default, __assign({ position: "end", "data-testid": "endAdornment-".concat(validationIconType), css: styles.inputAdornmentEnd }, { children: (0, jsx_runtime_1.jsx)(ValidationIconComponent, { fill: "red", viewBox: "2 2 20 20" }) })));
53
76
  }
54
- return ((0, jsx_runtime_1.jsxs)("div", __assign({ css: styles.datePickerContainer }, { children: [(0, jsx_runtime_1.jsx)(react_2.Global, { styles: styles.globalStyles }), (0, jsx_runtime_1.jsx)(DesktopDatePicker_1.DesktopDatePicker, __assign({ closeOnSelect: true, open: isPickerOpen, onOpen: function () { return setIsPickerOpen(true); }, onClose: function () { return setIsPickerOpen(false); }, format: format, slotProps: {
77
+ return ((0, jsx_runtime_1.jsxs)("div", __assign({ css: styles.datePickerContainer }, { children: [(0, jsx_runtime_1.jsx)(react_2.Global, { styles: styles.globalStyles }), (0, jsx_runtime_1.jsx)(DesktopDatePicker_1.DesktopDatePicker, __assign({ closeOnSelect: true, open: isPickerOpen, onOpen: handleOpen, onClose: handleClose, format: format, slotProps: {
55
78
  inputAdornment: {
56
79
  position: 'start',
57
80
  },
58
81
  textField: {
59
82
  readOnly: true,
60
- onClick: function () { return setIsPickerOpen(true); },
83
+ onClick: handleOpen,
61
84
  placeholder: placeholder,
62
85
  InputProps: {
63
86
  endAdornment: endAdornment,
@@ -1 +1 @@
1
- {"version":3,"file":"DatePicker.js","sourceRoot":"","sources":["../../../../src/Components/Molecules/DatePicker/DatePicker.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sCAAsC;AACtC,gFAA0D;AAC1D,gDAA0B;AAE1B,oEAA8C;AAE9C,gEAA0C;AAC1C,kFAA4D;AAC5D,wCAAwC;AAExC,2EAA0E;AAO1E,IAAM,UAAU,GAAmB,UAAC,EAQjB;IAPjB,IAAA,EAAE,QAAA,EACF,QAAQ,cAAA,EACR,MAAM,YAAA,EACN,KAAK,WAAA,EACL,YAAY,kBAAA,EACZ,WAAW,iBAAA,EACR,KAAK,cAP0B,oEAQnC,CADS;IAER,IAAM,OAAO,GAAG,CAAC,YAAY,IAAI,CAAC,CAAC,KAAK,CAAC;IACnC,IAAA,KAAkC,eAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAtD,YAAY,QAAA,EAAE,eAAe,QAAyB,CAAC;IAE9D,IAAM,MAAM,GAAG,IAAA,+BAAqB,EAAC;QACnC,OAAO,EAAE,CAAC,CAAC,YAAY;QACvB,OAAO,SAAA;KACR,CAAC,CAAC;IAEH,IAAM,YAAY,GAAG,UAAC,CAAc;QAClC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAC9B,CAAC,CAAC;IAEF,IAAI,YAAY,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EAAE;wBACd,QAAQ,EAAE,OAAO;qBAClB;oBACD,SAAS,EAAE;wBACT,QAAQ,EAAE,IAAI;wBACd,OAAO,EAAE,UAAU;wBACnB,WAAW,aAAA;wBACX,UAAU,EAAE;4BACV,YAAY,cAAA;4BACZ,EAAE,IAAA;4BACF,IAAI,EAAE,YAAY;yBACnB;qBACyB;oBAC5B,MAAM,EAAE;wBACN,SAAS,EAAE,QAAQ;wBACnB,SAAS,EAAE;4BACT;gCACE,IAAI,EAAE,QAAQ;gCACd,OAAO,EAAE;oCACP,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;iCACjB;6BACF;yBACF;qBACF;iBACF,EACD,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,YAAY,IAClB,KAAK,EACT,KACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,UAAU,CAAC,YAAY,GAAG,sBAAY,CAAC;AAEvC,kBAAe,UAAU,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type DatePickerStoryType = React.FunctionComponent<{
2
+ declare 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
- type DatePickerTextFieldType = SlotComponentProps<typeof TextField, {}, Record<string, any>>;
8
+ declare type DatePickerTextFieldType = SlotComponentProps<typeof TextField, {}, Record<string, any>>;
9
9
  export default DatePickerTextFieldType;
@@ -1,6 +1,9 @@
1
1
  interface IDatePickerProps {
2
2
  id: string;
3
3
  onChange: (date: Date | undefined) => void;
4
+ onOpen: () => void;
5
+ onClose: () => void;
6
+ openDelay?: number;
4
7
  disableFuture?: boolean;
5
8
  disablePast?: boolean;
6
9
  errorMessage?: string;
@@ -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 (g && (g = 0, op[0] && (_ = 0)), _) try {
28
+ while (_) 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]) {
@@ -4,5 +4,7 @@ declare const defaultProps: {
4
4
  format: string;
5
5
  placeholder: string;
6
6
  value: undefined;
7
+ onOpen: () => void;
8
+ onClose: () => void;
7
9
  };
8
10
  export default defaultProps;
@@ -6,6 +6,8 @@ var defaultProps = {
6
6
  format: 'dd/MM/yyyy',
7
7
  placeholder: 'DD/MM/YYYY',
8
8
  value: undefined,
9
+ onOpen: function () { },
10
+ onClose: function () { },
9
11
  };
10
12
  exports.default = defaultProps;
11
13
  //# sourceMappingURL=defaultProps.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"defaultProps.js","sourceRoot":"","sources":["../../../../src/Components/Molecules/DatePicker/defaultProps.ts"],"names":[],"mappings":";;AAAA,IAAM,YAAY,GAAG;IACnB,aAAa,EAAE,KAAK;IACpB,WAAW,EAAE,KAAK;IAClB,MAAM,EAAE,YAAY;IACpB,WAAW,EAAE,YAAY;IACzB,KAAK,EAAE,SAAS;CACjB,CAAC;AAEF,kBAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"defaultProps.js","sourceRoot":"","sources":["../../../../src/Components/Molecules/DatePicker/defaultProps.ts"],"names":[],"mappings":";;AAAA,IAAM,YAAY,GAAG;IACnB,aAAa,EAAE,KAAK;IACpB,WAAW,EAAE,KAAK;IAClB,MAAM,EAAE,YAAY;IACpB,WAAW,EAAE,YAAY;IACzB,KAAK,EAAE,SAAS;IAChB,MAAM,EAAE,cAAO,CAAC;IAChB,OAAO,EAAE,cAAO,CAAC;CAClB,CAAC;AAEF,kBAAe,YAAY,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponentWithDefaultProps } from '../../../Helpers/React';
2
2
  import IComponentProps from './IComponentProps';
3
3
  import defaultProps from './defaultProps';
4
- type DropDownSelectType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
4
+ declare 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
- type StoryType = React.FunctionComponent<{
2
+ declare 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
- type IconTileCheckBoxType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
4
+ declare 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
- type IconTileCheckBoxStoryType = React.FunctionComponent<{
3
+ declare 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
- type IconTileRadioButtonType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
4
+ declare 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 (g && (g = 0, op[0] && (_ = 0)), _) try {
51
+ while (_) 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
- type IconTileRadioButtonStoryType = React.FunctionComponent<{
3
+ declare type IconTileRadioButtonStoryType = 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 defaultProps from './defaultProps';
3
3
  import IComponentProps from './IComponentProps';
4
- type NavBarType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
4
+ declare type NavBarType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
5
5
  declare const NavBar: NavBarType;
6
6
  export default NavBar;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- type NavBarStoryType = React.FunctionComponent<{
2
+ declare type NavBarStoryType = React.FunctionComponent<{
3
3
  disabled: boolean;
4
4
  buttonDisabled: boolean;
5
5
  buttonLabel: string;
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponentWithDefaultProps } from '../../../Helpers/React';
2
2
  import IPhoneNumberTextFieldProps from './IPhoneNumberTextFieldProps';
3
3
  import defaultProps from './defaultProps';
4
- type PhoneNumberTextFieldType = FunctionComponentWithDefaultProps<IPhoneNumberTextFieldProps, typeof defaultProps>;
4
+ declare 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
- type StoryType = React.FunctionComponent<{
3
+ declare 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
- type RadioButtonType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
4
+ declare 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
- type RadioButtonStoryType = React.FunctionComponent<{
3
+ declare 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 (g && (g = 0, op[0] && (_ = 0)), _) try {
17
+ while (_) 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
- type ScrollContainerType = FunctionComponent<{
2
+ declare 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 type ScrollContainerType = React.FunctionComponent<IScrollContainerProps>;
4
- export type ScrollDetails = {
3
+ export declare type ScrollContainerType = React.FunctionComponent<IScrollContainerProps>;
4
+ export declare 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';
2
2
  import ITextFieldProps from './ITextFieldProps';
3
3
  import defaultProps from './defaultProps';
4
- type TextFieldType = FunctionComponentWithDefaultProps<ITextFieldProps, typeof defaultProps>;
4
+ declare 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
- type StoryType = React.FunctionComponent<{
2
+ declare 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
- type ThankYouBannerType = React.FunctionComponent<IThankYouBannerProps>;
4
+ declare 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
- type ThankYouBannerStoryType = React.FunctionComponent<{
3
+ declare 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
- type ListLayoutType = FunctionComponent<IComponentProps>;
4
+ declare 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
- type ListLayoutStoryType = React.FunctionComponent<{
3
+ declare 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
- type RadioGroupType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
4
+ declare 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 (g && (g = 0, op[0] && (_ = 0)), _) try {
28
+ while (_) 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
- type RadioGroupContextType = {
2
+ declare 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
- type RadioGroupStoryType = React.FunctionComponent<{
3
+ declare 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
- type TileLayoutStoryType = React.FunctionComponent<{
3
+ declare 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
- type TileLayoutStoryType = React.FunctionComponent<{
3
+ declare 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
- type TileLayoutType = FunctionComponent<IComponentProps>;
3
+ declare 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 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 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) & {
3
3
  defaultProps: D;
4
4
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- type CssProps = React.CSSProperties | {
2
+ declare 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 type IIcons = typeof icons;
12
+ export declare type IIcons = typeof icons;
13
13
  export default icons;
@@ -1,4 +1,4 @@
1
1
  import { DebouncedFunc } from 'lodash';
2
- type ThrottledFunction = (value: unknown) => void;
2
+ declare 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
- type StoryThemeWrapperType = React.FunctionComponent<{
3
+ declare 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 type ITheme = typeof customTheme;
869
- export type IThemes = typeof themes;
868
+ export declare type ITheme = typeof customTheme;
869
+ export declare 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.8.0",
3
+ "version": "3.8.1-dev.10",
4
4
  "license": "UNLICENSED",
5
5
  "scripts": {
6
6
  "dev": "scripts/up.sh",