@mvf/external-components 3.8.0 → 3.8.1-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Assets/BrandLogos/ExpertMarketLogo.d.ts +1 -1
- package/Assets/BrandLogos/ExpertReviewsLogo.d.ts +1 -1
- package/Assets/BrandLogos/GoWizardLogo.d.ts +1 -1
- package/Assets/BrandLogos/HearClearLogo.d.ts +1 -1
- package/Assets/BrandLogos/LasikEyesLogo.d.ts +1 -1
- package/Assets/BrandLogos/StartupsLogo.d.ts +1 -1
- package/Assets/BrandLogos/TechcoLogo.d.ts +1 -1
- package/Assets/BrandLogos/TheEcoExpertsLogo.d.ts +1 -1
- package/Assets/BrandLogos/WebsiteBuilderExpertLogo.d.ts +1 -1
- package/Assets/BrandLogos/brandLogos.d.ts +1 -1
- package/Assets/CustomIcons/CheckboxIcon.d.ts +1 -1
- package/Assets/CustomIcons/RadioIcon.d.ts +1 -1
- package/Assets/svgs/svgs.d.ts +1 -1
- package/Components/Atoms/AnimationWrapper/AnimationWrapperStory.d.ts +1 -1
- package/Components/Atoms/Button/Button.d.ts +1 -1
- package/Components/Atoms/Button/ButtonStory.d.ts +1 -1
- package/Components/Atoms/CardButton/CardButton.d.ts +1 -1
- package/Components/Atoms/CardButton/CardButtonStory.d.ts +1 -1
- package/Components/Atoms/ErrorMessage/ErrorMessage.d.ts +1 -1
- package/Components/Atoms/ErrorMessage/ErrorMessageStory.d.ts +1 -1
- package/Components/Atoms/ErrorMessageProvider/ErrorMessageProvider.d.ts +3 -3
- package/Components/Atoms/FormControl/FormControl.d.ts +1 -1
- package/Components/Atoms/FormControl/FormControlStory.d.ts +1 -1
- package/Components/Atoms/IconButton/IconButton.d.ts +1 -1
- package/Components/Atoms/IconButton/IconButtonStory.d.ts +1 -1
- package/Components/Atoms/InfoPanel/InfoPanel.d.ts +1 -1
- package/Components/Atoms/InfoPanel/InfoPanelStory.d.ts +1 -1
- package/Components/Atoms/Input/Input.d.ts +1 -1
- package/Components/Atoms/Input/InputStory.d.ts +1 -1
- package/Components/Atoms/InputLabel/InputLabel.d.ts +1 -1
- package/Components/Atoms/InputLabel/InputLabelStory.d.ts +1 -1
- package/Components/Atoms/Link/Link.d.ts +1 -1
- package/Components/Atoms/Link/LinkStory.d.ts +1 -1
- package/Components/Atoms/LoadingIndicator/LoadingIndicator.d.ts +1 -1
- package/Components/Atoms/Modal/Modal.d.ts +1 -1
- package/Components/Atoms/Modal/ModalStory.d.ts +1 -1
- package/Components/Atoms/ProgressBar/ProgressBar.d.ts +1 -1
- package/Components/Atoms/ProgressBar/ProgressBarStory.d.ts +1 -1
- package/Components/Atoms/Text/Text.d.ts +1 -1
- package/Components/Atoms/Text/TextStory.d.ts +1 -1
- package/Components/Molecules/CheckBox/CheckBox.d.ts +1 -1
- package/Components/Molecules/CheckBox/CheckBox.test.js +1 -1
- package/Components/Molecules/CheckBox/CheckBoxStory.d.ts +1 -1
- package/Components/Molecules/DatePicker/DatePicker.d.ts +1 -1
- package/Components/Molecules/DatePicker/DatePicker.js +11 -3
- package/Components/Molecules/DatePicker/DatePicker.js.map +1 -1
- package/Components/Molecules/DatePicker/DatePickerStory.d.ts +1 -1
- package/Components/Molecules/DatePicker/DatePickerTextFieldType.d.ts +1 -1
- package/Components/Molecules/DatePicker/IDatePickerProps.d.ts +2 -0
- package/Components/Molecules/DatePicker/__tests__/DatePicker.test.js +1 -1
- package/Components/Molecules/DatePicker/defaultProps.d.ts +2 -0
- package/Components/Molecules/DatePicker/defaultProps.js +2 -0
- package/Components/Molecules/DatePicker/defaultProps.js.map +1 -1
- package/Components/Molecules/DropDownSelect/DropDownSelect.d.ts +1 -1
- package/Components/Molecules/DropDownSelect/DropDownSelectStory.d.ts +1 -1
- package/Components/Molecules/IconTileCheckBox/IconTileCheckBox.d.ts +1 -1
- package/Components/Molecules/IconTileCheckBox/IconTileCheckBoxStory.d.ts +1 -1
- package/Components/Molecules/IconTileRadioButton/IconTileRadioButton.d.ts +1 -1
- package/Components/Molecules/IconTileRadioButton/IconTileRadioButton.test.js +1 -1
- package/Components/Molecules/IconTileRadioButton/IconTileRadioButtonStory.d.ts +1 -1
- package/Components/Molecules/NavBar/NavBar.d.ts +1 -1
- package/Components/Molecules/NavBar/NavBarStory.d.ts +1 -1
- package/Components/Molecules/PhoneNumberTextField/PhoneNumberTextField.d.ts +1 -1
- package/Components/Molecules/PhoneNumberTextField/PhoneNumberTextFieldStory.d.ts +1 -1
- package/Components/Molecules/RadioButton/RadioButton.d.ts +1 -1
- package/Components/Molecules/RadioButton/RadioButtonStory.d.ts +1 -1
- package/Components/Molecules/ScrollContainer/ScrollContainer.test.js +1 -1
- package/Components/Molecules/ScrollContainer/ScrollContainerStory.d.ts +1 -1
- package/Components/Molecules/ScrollContainer/ScrollContainerTypes.d.ts +2 -2
- package/Components/Molecules/TextField/TextField.d.ts +1 -1
- package/Components/Molecules/TextField/TextFieldStory.d.ts +1 -1
- package/Components/Molecules/ThankYouBanner/ThankYouBanner.d.ts +1 -1
- package/Components/Molecules/ThankYouBanner/ThankYouBannerStory.d.ts +1 -1
- package/Components/Organisms/ListLayout/ListLayout.d.ts +1 -1
- package/Components/Organisms/ListLayout/ListLayoutStory.d.ts +1 -1
- package/Components/Organisms/RadioGroup/RadioGroup.d.ts +1 -1
- package/Components/Organisms/RadioGroup/RadioGroup.test.js +1 -1
- package/Components/Organisms/RadioGroup/RadioGroupContext.d.ts +1 -1
- package/Components/Organisms/RadioGroup/RadioGroupStory.d.ts +1 -1
- package/Components/Organisms/TileLayout/IconTileCheckBoxStory.d.ts +1 -1
- package/Components/Organisms/TileLayout/IconTileRadioButtonStory.d.ts +1 -1
- package/Components/Organisms/TileLayout/TileLayout.d.ts +1 -1
- package/Helpers/React/FunctionComponentWithDefaultProps.d.ts +1 -1
- package/Helpers/React/css.d.ts +1 -1
- package/Helpers/icons.d.ts +1 -1
- package/Helpers/useThrottle.d.ts +1 -1
- package/Themes/StoryThemeWrapper.d.ts +1 -1
- package/Themes/themes.d.ts +2 -2
- package/package.json +1 -1
|
@@ -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;
|
package/Assets/svgs/svgs.d.ts
CHANGED
|
@@ -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,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,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,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 { 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,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,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,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,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,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 (
|
|
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,7 +35,7 @@ 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, 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", "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
41
|
var styles = (0, makeDatePickerStyling_1.default)({
|
|
@@ -45,19 +45,27 @@ var DatePicker = function (_a) {
|
|
|
45
45
|
var handleChange = function (d) {
|
|
46
46
|
onChange(d ? d : undefined);
|
|
47
47
|
};
|
|
48
|
+
var handleOpen = function () {
|
|
49
|
+
setIsPickerOpen(true);
|
|
50
|
+
onOpen();
|
|
51
|
+
};
|
|
52
|
+
var handleClose = function () {
|
|
53
|
+
setIsPickerOpen(false);
|
|
54
|
+
onClose();
|
|
55
|
+
};
|
|
48
56
|
var endAdornment;
|
|
49
57
|
if (isValid || errorMessage) {
|
|
50
58
|
var validationIconType = isValid ? 'valid' : 'invalid';
|
|
51
59
|
var ValidationIconComponent = icons_1.default[validationIconType];
|
|
52
60
|
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
61
|
}
|
|
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:
|
|
62
|
+
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
63
|
inputAdornment: {
|
|
56
64
|
position: 'start',
|
|
57
65
|
},
|
|
58
66
|
textField: {
|
|
59
67
|
readOnly: true,
|
|
60
|
-
onClick:
|
|
68
|
+
onClick: handleOpen,
|
|
61
69
|
placeholder: placeholder,
|
|
62
70
|
InputProps: {
|
|
63
71
|
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;AA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
|
|
@@ -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;
|
|
@@ -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 (
|
|
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 +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;
|
|
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,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 (
|
|
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,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 { 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 (
|
|
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,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 (
|
|
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,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,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
|
};
|
package/Helpers/React/css.d.ts
CHANGED
package/Helpers/icons.d.ts
CHANGED
package/Helpers/useThrottle.d.ts
CHANGED
|
@@ -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;
|
package/Themes/themes.d.ts
CHANGED
|
@@ -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: {
|