@mvf/external-components 1.26.0 → 1.26.1
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/Applications/Chameleon/CheckBoxQuestionSection/CheckBoxQuestionSectionStory.d.ts +1 -1
- package/Applications/Chameleon/IconTileRadioButtonQuestionSection/IconTileRadioButtonQuestionSectionStory.d.ts +1 -1
- package/Applications/Chameleon/RadioQuestionSection/RadioQuestionSectionStory.d.ts +1 -1
- package/Applications/Chameleon/TextFieldQuestionSection/TextFieldQuestionSectionStory.d.ts +1 -1
- package/Applications/Chameleon/ThankYouSection/ThankYouSectionStory.d.ts +1 -1
- package/Assets/BrandLogos/ExpertMarketLogo.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/svgs/svgs.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/IFrameWrapper/IFrameWrapper.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/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/Atoms/TextField/ITextFieldProps.d.ts +1 -1
- package/Components/Atoms/TextField/TextField.d.ts +1 -1
- package/Components/Atoms/TextField/TextField.js +9 -2
- package/Components/Atoms/TextField/TextField.js.map +1 -1
- package/Components/Atoms/TextField/TextField.test.js +4 -0
- package/Components/Atoms/TextField/TextField.test.js.map +1 -1
- package/Components/Atoms/TextField/TextFieldStory.d.ts +1 -1
- package/Components/Atoms/TextField/icons.d.ts +1 -0
- package/Components/Atoms/TextField/icons.js +1 -0
- package/Components/Atoms/TextField/icons.js.map +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/DatePickerStory.d.ts +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/IconTileCheckBox.test.js +1 -1
- package/Components/Molecules/IconTileCheckBox/IconTileCheckBoxStory.d.ts +1 -1
- package/Components/Molecules/IconTileRadioButton/IconTileRadioButton.d.ts +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/ScrollArea/ScrollArea.d.ts +1 -1
- package/Components/Molecules/ScrollArea/ScrollAreaStory.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/TileLayout.d.ts +1 -1
- package/Components/Organisms/TileLayout/TileLayoutStory.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,5 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
2
|
import ICheckBoxQuestionSectionStoryProps from './ICheckBoxQuestionSectionStoryProps';
|
|
3
|
-
type CheckBoxQuestionSectionStoryType = FunctionComponent<ICheckBoxQuestionSectionStoryProps>;
|
|
3
|
+
declare type CheckBoxQuestionSectionStoryType = FunctionComponent<ICheckBoxQuestionSectionStoryProps>;
|
|
4
4
|
declare const CheckBoxQuestionSectionStory: CheckBoxQuestionSectionStoryType;
|
|
5
5
|
export default CheckBoxQuestionSectionStory;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
2
|
import IIconTileRadioButtonQuestionSectionStoryProps from './IIconTileRadioButtonQuestionSectionStoryProps';
|
|
3
|
-
type IconTileRadioButtonQuestionSectionStoryType = FunctionComponent<IIconTileRadioButtonQuestionSectionStoryProps>;
|
|
3
|
+
declare type IconTileRadioButtonQuestionSectionStoryType = FunctionComponent<IIconTileRadioButtonQuestionSectionStoryProps>;
|
|
4
4
|
declare const IconTileRadioButtonQuestionSectionStory: IconTileRadioButtonQuestionSectionStoryType;
|
|
5
5
|
export default IconTileRadioButtonQuestionSectionStory;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
2
|
import IRadioIconQuestionSectionStoryProps from './IRadioQuestionSectionStoryProps';
|
|
3
|
-
type RadioIconQuestionSectionStoryType = FunctionComponent<IRadioIconQuestionSectionStoryProps>;
|
|
3
|
+
declare type RadioIconQuestionSectionStoryType = FunctionComponent<IRadioIconQuestionSectionStoryProps>;
|
|
4
4
|
declare const RadioIconQuestionSectionStory: RadioIconQuestionSectionStoryType;
|
|
5
5
|
export default RadioIconQuestionSectionStory;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
2
|
import ITextFieldQuestionSectionStoryProps from './ITextFieldQuestionSectionStoryProps';
|
|
3
|
-
type TextFieldQuestionSectionStoryType = FunctionComponent<ITextFieldQuestionSectionStoryProps>;
|
|
3
|
+
declare type TextFieldQuestionSectionStoryType = FunctionComponent<ITextFieldQuestionSectionStoryProps>;
|
|
4
4
|
declare const TextFieldQuestionSectionStory: TextFieldQuestionSectionStoryType;
|
|
5
5
|
export default TextFieldQuestionSectionStory;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
2
|
import IThankYouSectionStoryProps from './IThankYouSectionStoryProps';
|
|
3
|
-
type ThankYouSectionStoryType = FunctionComponent<IThankYouSectionStoryProps>;
|
|
3
|
+
declare type ThankYouSectionStoryType = FunctionComponent<IThankYouSectionStoryProps>;
|
|
4
4
|
declare const ThankYouSectionStory: ThankYouSectionStoryType;
|
|
5
5
|
export default ThankYouSectionStory;
|
|
@@ -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;
|
|
@@ -9,5 +9,5 @@ declare const brandLogos: {
|
|
|
9
9
|
hearClear: import("react").FunctionComponent<{}>;
|
|
10
10
|
lasikEyes: import("react").FunctionComponent<{}>;
|
|
11
11
|
};
|
|
12
|
-
export type IBrandLogos = typeof brandLogos;
|
|
12
|
+
export declare type IBrandLogos = typeof brandLogos;
|
|
13
13
|
export default brandLogos;
|
package/Assets/svgs/svgs.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FunctionComponentWithDefaultProps } from 'Helpers/React';
|
|
2
2
|
import IButtonProps from './IButtonProps';
|
|
3
3
|
import defaultProps from './defaultProps';
|
|
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 defaultProps from './defaultProps';
|
|
2
2
|
import ICardButtonProps from './ICardButtonProps';
|
|
3
3
|
import { FunctionComponentWithDefaultProps } from '../../../Helpers/React/FunctionComponentWithDefaultProps';
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
2
|
import IIFrameWrapperProps from './IIFrameWrapperProps';
|
|
3
|
-
type IFrameWrapperType = FunctionComponent<IIFrameWrapperProps>;
|
|
3
|
+
declare type IFrameWrapperType = FunctionComponent<IIFrameWrapperProps>;
|
|
4
4
|
declare const IFrameWrapper: IFrameWrapperType;
|
|
5
5
|
export default IFrameWrapper;
|
|
@@ -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
|
-
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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FunctionComponentWithDefaultProps } from 'Helpers/React';
|
|
2
2
|
import ILinkProps from './ILinkProps';
|
|
3
3
|
import defaultProps from './defaultProps';
|
|
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 { FunctionComponent } from 'react';
|
|
2
2
|
import IComponentProps from './IComponentProps';
|
|
3
|
-
type LoadingIndicatorType = FunctionComponent<IComponentProps>;
|
|
3
|
+
declare type LoadingIndicatorType = FunctionComponent<IComponentProps>;
|
|
4
4
|
declare const LoadingIndicator: LoadingIndicatorType;
|
|
5
5
|
export default LoadingIndicator;
|
|
@@ -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 ProgressBarType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
|
|
4
|
+
declare type ProgressBarType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
|
|
5
5
|
declare const ProgressBar: ProgressBarType;
|
|
6
6
|
export default ProgressBar;
|
|
@@ -8,7 +8,7 @@ interface ITextFieldProps {
|
|
|
8
8
|
disabled: boolean;
|
|
9
9
|
errorMessage?: string;
|
|
10
10
|
type: string;
|
|
11
|
-
iconType?: 'person' | 'zipcode' | 'phone' | 'email' | 'company' | 'state';
|
|
11
|
+
iconType?: 'person' | 'zipcode' | 'phone' | 'email' | 'company' | 'state' | 'locationService';
|
|
12
12
|
id: string;
|
|
13
13
|
inputRef?: React.Ref<HTMLInputElement>;
|
|
14
14
|
isAnswered: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FunctionComponentWithDefaultProps } from '../../../Helpers/React';
|
|
2
2
|
import defaultProps from './defaultProps';
|
|
3
3
|
import ITextFieldProps from './ITextFieldProps';
|
|
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;
|
|
@@ -44,8 +44,15 @@ var TextField = function (_a) {
|
|
|
44
44
|
}, className: classes.muiInput, disableUnderline: true }, InputProps);
|
|
45
45
|
if (iconType) {
|
|
46
46
|
var IconComponent = icons_1.default[iconType];
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
var postion = iconType !== 'locationService' ? 'start' : 'end';
|
|
48
|
+
if (postion === 'start') {
|
|
49
|
+
inputPropClasses = __assign({ startAdornment: (react_1.default.createElement(core_1.InputAdornment, { position: "start", "data-testid": "startAdornment" },
|
|
50
|
+
react_1.default.createElement(IconComponent, null))) }, inputPropClasses);
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
inputPropClasses = __assign({ endAdornment: (react_1.default.createElement(core_1.InputAdornment, { position: "end", "data-testid": "endAdornment" },
|
|
54
|
+
react_1.default.createElement(IconComponent, null))) }, inputPropClasses);
|
|
55
|
+
}
|
|
49
56
|
}
|
|
50
57
|
if (isValid || errorMessage) {
|
|
51
58
|
var validationIconType = isValid ? 'valid' : 'invalid';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextField.js","sourceRoot":"","sources":["../../../../src/Components/Atoms/TextField/TextField.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0CAI2B;AAC3B,gDAA0B;AAE1B,gEAA0C;AAC1C,kDAA4B;AAE5B,4EAAsD;AAOtD,IAAM,SAAS,GAAkB,UAAC,EAUjC;IATC,IAAA,YAAY,kBAAA,EACZ,QAAQ,cAAA,EACR,EAAE,QAAA,EACF,UAAU,gBAAA,EACV,QAAQ,cAAA,EACR,KAAK,WAAA,EACL,UAAU,gBAAA,EACV,oBAAoB,0BAAA,EACjB,KAAK,cATwB,2GAUjC,CADS;IAER,IAAM,OAAO,GAAG,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC;IAC1D,IAAA,KAAkC,eAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAtD,YAAY,QAAA,EAAE,eAAe,QAAyB,CAAC;IAE9D,IAAM,OAAO,GAAG,IAAA,4BAAkB,EAAC;QACjC,OAAO,EAAE,CAAC,CAAC,YAAY;QACvB,OAAO,SAAA;QACP,oBAAoB,sBAAA;KACrB,CAAC,CAAC;IAEH,IAAI,gBAAgB,GAAG,WACrB,OAAO,EAAE;YACP,OAAO,EAAE,OAAO,CAAC,OAAO;SACzB,EACD,SAAS,EAAE,OAAO,CAAC,QAAQ,EAC3B,gBAAgB,EAAE,IAAI,IACnB,UAAU,CACiB,CAAC;IAEjC,IAAI,QAAQ,EAAE;QACZ,IAAM,aAAa,GAAG,eAAK,CAAC,QAAQ,CAAC,CAAC;QACtC,gBAAgB,cACd,cAAc,EAAE,CACd,8BAAC,qBAAc,IAAC,QAAQ,EAAC,OAAO,iBAAa,gBAAgB;
|
|
1
|
+
{"version":3,"file":"TextField.js","sourceRoot":"","sources":["../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
|
|
@@ -25,6 +25,10 @@ describe('TextField', function () {
|
|
|
25
25
|
var queryByTestId = (0, withTheme_1.default)(react_1.default.createElement(TextField_1.default, { label: "Your name?", id: "3" })).queryByTestId;
|
|
26
26
|
expect(queryByTestId('startAdornment')).not.toBeTruthy();
|
|
27
27
|
});
|
|
28
|
+
it('should display icon on the right if iconType is locationService', function () {
|
|
29
|
+
var getByTestId = (0, withTheme_1.default)(react_1.default.createElement(TextField_1.default, { label: "Address", id: "3", iconType: "locationService" })).getByTestId;
|
|
30
|
+
expect(getByTestId('endAdornment')).toBeTruthy();
|
|
31
|
+
});
|
|
28
32
|
it('should have an input type of text by default', function () {
|
|
29
33
|
var _a;
|
|
30
34
|
var container = (0, withTheme_1.default)(react_1.default.createElement(TextField_1.default, { label: "Your name?", id: "3", iconType: "person" })).container;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextField.test.js","sourceRoot":"","sources":["../../../../src/Components/Atoms/TextField/TextField.test.tsx"],"names":[],"mappings":";;;;;AAAA,gDAA0B;AAC1B,2EAAoD;AACpD,+EAAyD;AACzD,0DAAoC;AAEpC,QAAQ,CAAC,WAAW,EAAE;IACpB,EAAE,CAAC,oCAAoC,EAAE;QAC/B,IAAA,SAAS,GAAK,IAAA,mBAAS,EAAC,8BAAC,mBAAS,IAAC,KAAK,EAAC,UAAU,EAAC,EAAE,EAAC,GAAG,GAAG,CAAC,UAArD,CAAsD;QACvE,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;IAC7C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,gCAAgC,EAAE;QAC3B,IAAA,SAAS,GAAK,IAAA,mBAAS,EAAC,8BAAC,mBAAS,IAAC,KAAK,EAAC,SAAS,EAAC,EAAE,EAAC,GAAG,GAAG,CAAC,UAApD,CAAqD;QAEtE,oBAAS,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,CAA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EACX,YAAY,EAAC,oBAAoB,GACjC,CACH,YAPkB,CAOjB;QACF,MAAM,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;IAC3D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,oDAAoD,EAAE;QAC/C,IAAA,WAAW,GAAK,IAAA,mBAAS,EAC/B,8BAAC,mBAAS,IAAC,KAAK,EAAC,YAAY,EAAC,EAAE,EAAC,GAAG,EAAC,IAAI,EAAC,MAAM,EAAC,UAAU,EAAE,IAAI,GAAI,CACtE,YAFkB,CAEjB;QACF,MAAM,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;IACzD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mEAAmE,EAAE;QAChE,IAAA,KAAiC,IAAA,mBAAS,EAC9C,8BAAC,mBAAS,IACR,KAAK,EAAC,YAAY,EAClB,EAAE,EAAC,GAAG,EACN,IAAI,EAAC,MAAM,EACX,UAAU,EAAE,IAAI,EAChB,YAAY,EAAC,oBAAoB,GACjC,CACH,EARO,WAAW,iBAAA,EAAE,aAAa,mBAQjC,CAAC;QACF,MAAM,CAAC,WAAW,CAAC,sBAAsB,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;QACzD,MAAM,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAAC,CAAC,GAAG,CAAC,UAAU,EAAE,CAAC;IAC/D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -7,5 +7,6 @@ declare const icons: {
|
|
|
7
7
|
state: import("@material-ui/core/OverridableComponent").OverridableComponent<import("@material-ui/core").SvgIconTypeMap<{}, "svg">>;
|
|
8
8
|
valid: import("@material-ui/core/OverridableComponent").OverridableComponent<import("@material-ui/core").SvgIconTypeMap<{}, "svg">>;
|
|
9
9
|
zipcode: import("@material-ui/core/OverridableComponent").OverridableComponent<import("@material-ui/core").SvgIconTypeMap<{}, "svg">>;
|
|
10
|
+
locationService: import("@material-ui/core/OverridableComponent").OverridableComponent<import("@material-ui/core").SvgIconTypeMap<{}, "svg">>;
|
|
10
11
|
};
|
|
11
12
|
export default icons;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.js","sourceRoot":"","sources":["../../../../src/Components/Atoms/TextField/icons.ts"],"names":[],"mappings":";;;;;AAAA,yFAAuE;AACvE,mFAAiE;AACjE,mFAAiE;AACjE,mFAAiE;AACjE,6FAA2E;AAC3E,6FAA2E;AAC3E,mFAAiE;AACjE,mFAAiE;AAEjE,IAAM,KAAK,GAAG;IACZ,OAAO,EAAE,0BAAoB;IAC7B,KAAK,EAAE,uBAAiB;IACxB,OAAO,EAAE,uBAAiB;IAC1B,KAAK,EAAE,uBAAiB;IACxB,MAAM,EAAE,uBAAiB;IACzB,KAAK,EAAE,4BAAsB;IAC7B,KAAK,EAAE,uBAAiB;IACxB,OAAO,EAAE,4BAAsB;
|
|
1
|
+
{"version":3,"file":"icons.js","sourceRoot":"","sources":["../../../../src/Components/Atoms/TextField/icons.ts"],"names":[],"mappings":";;;;;AAAA,yFAAuE;AACvE,mFAAiE;AACjE,mFAAiE;AACjE,mFAAiE;AACjE,6FAA2E;AAC3E,6FAA2E;AAC3E,mFAAiE;AACjE,mFAAiE;AAEjE,IAAM,KAAK,GAAG;IACZ,OAAO,EAAE,0BAAoB;IAC7B,KAAK,EAAE,uBAAiB;IACxB,OAAO,EAAE,uBAAiB;IAC1B,KAAK,EAAE,uBAAiB;IACxB,MAAM,EAAE,uBAAiB;IACzB,KAAK,EAAE,4BAAsB;IAC7B,KAAK,EAAE,uBAAiB;IACxB,OAAO,EAAE,4BAAsB;IAC/B,eAAe,EAAE,4BAAsB;CACxC,CAAC;AAEF,kBAAe,KAAK,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import defaultProps from './defaultProps';
|
|
2
2
|
import ICheckboxProps from './ICheckboxProps';
|
|
3
3
|
import { FunctionComponentWithDefaultProps } from '../../../Helpers/React/FunctionComponentWithDefaultProps';
|
|
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;
|
|
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
38
38
|
function step(op) {
|
|
39
39
|
if (f) throw new TypeError("Generator is already executing.");
|
|
40
|
-
while (
|
|
40
|
+
while (_) try {
|
|
41
41
|
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;
|
|
42
42
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
43
43
|
switch (op[0]) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FunctionComponentWithDefaultProps } from '../../../Helpers/React';
|
|
2
2
|
import defaultProps from './defaultProps';
|
|
3
3
|
import IDatePickerProps from './IDatePickerProps';
|
|
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;
|
|
@@ -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 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 defaultProps from './defaultProps';
|
|
2
2
|
import IComponentProps from './IComponentProps';
|
|
3
3
|
import { FunctionComponentWithDefaultProps } from '../../../Helpers/React/FunctionComponentWithDefaultProps';
|
|
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;
|
|
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
38
38
|
function step(op) {
|
|
39
39
|
if (f) throw new TypeError("Generator is already executing.");
|
|
40
|
-
while (
|
|
40
|
+
while (_) try {
|
|
41
41
|
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;
|
|
42
42
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
43
43
|
switch (op[0]) {
|
|
@@ -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 defaultProps from './defaultProps';
|
|
2
2
|
import IComponentProps from './IComponentProps';
|
|
3
3
|
import { FunctionComponentWithDefaultProps } from '../../../Helpers/React/FunctionComponentWithDefaultProps';
|
|
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;
|
|
@@ -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 defaultProps from './defaultProps';
|
|
3
3
|
import IPhoneNumberTextFieldProps from './IPhoneNumberTextFieldProps';
|
|
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 defaultProps from './defaultProps';
|
|
2
2
|
import IComponentProps from './IRadioButtonProps';
|
|
3
3
|
import { FunctionComponentWithDefaultProps } from '../../../Helpers/React/FunctionComponentWithDefaultProps';
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import IComponentProps from './IComponentProps';
|
|
3
|
-
type ScrollAreaType = React.FunctionComponent<IComponentProps>;
|
|
3
|
+
declare type ScrollAreaType = React.FunctionComponent<IComponentProps>;
|
|
4
4
|
declare const ScrollArea: ScrollAreaType;
|
|
5
5
|
export default ScrollArea;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import IThankYouBannerProps from './IThankYouBannerProps';
|
|
3
|
-
type ThankYouBannerType = React.FunctionComponent<IThankYouBannerProps>;
|
|
3
|
+
declare type ThankYouBannerType = React.FunctionComponent<IThankYouBannerProps>;
|
|
4
4
|
declare const ThankYouBanner: ThankYouBannerType;
|
|
5
5
|
export default ThankYouBanner;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from '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,5 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
2
|
import IComponentProps from './IComponentProps';
|
|
3
|
-
type ListLayoutType = FunctionComponent<IComponentProps>;
|
|
3
|
+
declare type ListLayoutType = FunctionComponent<IComponentProps>;
|
|
4
4
|
declare const ListLayout: ListLayoutType;
|
|
5
5
|
export default ListLayout;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import IComponentProps from './IComponentProps';
|
|
2
2
|
import defaultProps from './defaultProps';
|
|
3
3
|
import { FunctionComponentWithDefaultProps } from '../../../Helpers/React/FunctionComponentWithDefaultProps';
|
|
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;
|
|
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
38
38
|
function step(op) {
|
|
39
39
|
if (f) throw new TypeError("Generator is already executing.");
|
|
40
|
-
while (
|
|
40
|
+
while (_) try {
|
|
41
41
|
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;
|
|
42
42
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
43
43
|
switch (op[0]) {
|
|
@@ -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
|
@@ -3,5 +3,5 @@ declare const icons: {
|
|
|
3
3
|
keyboardArrowLeft: import("@material-ui/core/OverridableComponent").OverridableComponent<import("@material-ui/core").SvgIconTypeMap<{}, "svg">>;
|
|
4
4
|
keyboardArrowRight: import("@material-ui/core/OverridableComponent").OverridableComponent<import("@material-ui/core").SvgIconTypeMap<{}, "svg">>;
|
|
5
5
|
};
|
|
6
|
-
export type IIcons = typeof icons;
|
|
6
|
+
export declare type IIcons = typeof icons;
|
|
7
7
|
export default icons;
|
package/Helpers/useThrottle.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DebouncedFunc } from 'lodash';
|
|
2
|
-
type throttledFunction = (value: any) => void;
|
|
2
|
+
declare type throttledFunction = (value: any) => void;
|
|
3
3
|
declare const useThrottle: (func: throttledFunction, wait: number) => DebouncedFunc<throttledFunction>;
|
|
4
4
|
export default useThrottle;
|
package/Themes/themes.d.ts
CHANGED
|
@@ -756,6 +756,6 @@ declare const themes: {
|
|
|
756
756
|
};
|
|
757
757
|
};
|
|
758
758
|
};
|
|
759
|
-
export type ITheme = typeof customTheme;
|
|
760
|
-
export type IThemes = typeof themes;
|
|
759
|
+
export declare type ITheme = typeof customTheme;
|
|
760
|
+
export declare type IThemes = typeof themes;
|
|
761
761
|
export default themes;
|