@mvf/external-components 3.12.0 → 3.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/InsetCheckbox/InsetCheckbox.d.ts +2 -2
- package/Components/Atoms/InsetCheckbox/InsetCheckboxStory.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/DatePickerStory.d.ts +1 -1
- package/Components/Molecules/DatePicker/DatePickerTextFieldType.d.ts +1 -1
- package/Components/Molecules/DatePicker/__tests__/DatePicker.test.js +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/IComponentProps.d.ts +1 -0
- package/Components/Molecules/NavBar/NavBar.d.ts +1 -1
- package/Components/Molecules/NavBar/NavBar.js +2 -2
- package/Components/Molecules/NavBar/NavBar.js.map +1 -1
- package/Components/Molecules/NavBar/NavBar.test.js +15 -0
- package/Components/Molecules/NavBar/NavBar.test.js.map +1 -1
- package/Components/Molecules/NavBar/NavBarStory.d.ts +2 -1
- package/Components/Molecules/NavBar/NavBarStory.js +2 -2
- package/Components/Molecules/NavBar/NavBarStory.js.map +1 -1
- package/Components/Molecules/NavBar/defaultProps.d.ts +1 -0
- package/Components/Molecules/NavBar/defaultProps.js +1 -0
- package/Components/Molecules/NavBar/defaultProps.js.map +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/SupplierCard/SupplierCard.d.ts +1 -1
- package/Components/Molecules/SupplierCard/SupplierCardStory.d.ts +1 -1
- 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
|
-
|
2
|
+
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
|
-
|
2
|
+
type AnimationWrapperStoryType = React.FunctionComponent<{
|
3
3
|
effect: 'fadeIn' | 'fadeInUp' | 'fadeInDown' | 'fadeInLeft' | 'fadeInRight';
|
4
4
|
delay: number;
|
5
5
|
animationTime: number;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { FunctionComponentWithDefaultProps } from '../../../Helpers/React';
|
2
2
|
import defaultProps from './defaultProps';
|
3
3
|
import IButtonProps from './IButtonProps';
|
4
|
-
|
4
|
+
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
|
-
|
4
|
+
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
|
-
|
2
|
+
type ErrorMessageProviderProps = {
|
3
3
|
errorMessage: string | undefined;
|
4
4
|
};
|
5
|
-
|
5
|
+
type ErrorMessageProviderType = React.FunctionComponent<{
|
6
6
|
children: React.ReactNode;
|
7
7
|
errorMessage?: string;
|
8
8
|
}>;
|
9
9
|
declare const ErrorMessageProvider: ErrorMessageProviderType;
|
10
|
-
|
10
|
+
type UseErrorMessageProps = {
|
11
11
|
isErrorMessageProviderRequired: boolean;
|
12
12
|
};
|
13
13
|
declare const useErrorMessage: (props?: UseErrorMessageProps) => ErrorMessageProviderProps;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { FunctionComponentWithDefaultProps } from '../../../Helpers/React';
|
2
2
|
import defaultProps from './defaultProps';
|
3
3
|
import IFormControlProps from './IFormControlProps';
|
4
|
-
|
4
|
+
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
|
4
|
+
export type IconButtonType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
|
5
5
|
declare const IconButton: IconButtonType;
|
6
6
|
export default IconButton;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { IIcons } from '../../../Helpers/icons';
|
3
|
-
|
3
|
+
type ButtonStartIconStoryType = React.FunctionComponent<{
|
4
4
|
disabled: boolean;
|
5
5
|
iconType: keyof IIcons;
|
6
6
|
children: React.ReactNode;
|
@@ -2,6 +2,6 @@
|
|
2
2
|
import { FunctionComponentWithDefaultProps } from '../../../Helpers/React/FunctionComponentWithDefaultProps';
|
3
3
|
import defaultProps from './defaultProps';
|
4
4
|
import IInfoPanelProps from './IInfoPanelProps';
|
5
|
-
|
5
|
+
type InfoPanelType = FunctionComponentWithDefaultProps<IInfoPanelProps, typeof defaultProps>;
|
6
6
|
declare const InfoPanel: InfoPanelType;
|
7
7
|
export default InfoPanel;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { FunctionComponentWithDefaultProps } from '../../../Helpers/React';
|
2
2
|
import defaultProps from './defaultProps';
|
3
3
|
import IInputProps from './IInputProps';
|
4
|
-
|
4
|
+
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
|
-
|
4
|
+
type InputLabelType = FunctionComponentWithDefaultProps<IInputLabelProps, typeof defaultProps>;
|
5
5
|
declare const InputLabel: InputLabelType;
|
6
6
|
export default InputLabel;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { SerializedStyles } from '@emotion/react';
|
3
|
-
|
3
|
+
type InsetCheckboxProps = {
|
4
4
|
checked: boolean;
|
5
5
|
dataTestId?: string;
|
6
6
|
customCss?: SerializedStyles;
|
7
7
|
};
|
8
|
-
|
8
|
+
type InsetCheckboxType = React.FunctionComponent<InsetCheckboxProps>;
|
9
9
|
declare const InsetCheckbox: InsetCheckboxType;
|
10
10
|
export default InsetCheckbox;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { FunctionComponentWithDefaultProps } from '../../../Helpers/React';
|
2
2
|
import defaultProps from './defaultProps';
|
3
3
|
import ILinkProps from './ILinkProps';
|
4
|
-
|
4
|
+
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
|
-
|
4
|
+
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
|
-
|
4
|
+
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
|
-
|
4
|
+
type TextType = FunctionComponentWithDefaultProps<ITextProps, typeof defaultProps>;
|
5
5
|
declare const Text: TextType;
|
6
6
|
export default Text;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
|
2
|
+
type TextStoryType = React.FunctionComponent<{
|
3
3
|
text: string;
|
4
4
|
variant: 'header' | 'note' | 'summary' | 'question' | 'text' | 'footer' | 'listItem' | 'tileItem' | 'contentWithList';
|
5
5
|
align: 'center' | 'inherit' | 'justify' | 'left' | 'right';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { FunctionComponentWithDefaultProps } from '../../../Helpers/React/FunctionComponentWithDefaultProps';
|
2
2
|
import ICheckboxProps from './ICheckboxProps';
|
3
3
|
import defaultProps from './defaultProps';
|
4
|
-
|
4
|
+
type CheckBoxType = FunctionComponentWithDefaultProps<ICheckboxProps, typeof defaultProps>;
|
5
5
|
declare const CheckBox: CheckBoxType;
|
6
6
|
export default CheckBox;
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
15
15
|
function step(op) {
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
17
|
-
while (_) try {
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
20
20
|
switch (op[0]) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { ISvgs } from '../../../Assets/svgs/svgs';
|
3
|
-
|
3
|
+
type CheckBoxStoryType = React.FunctionComponent<{
|
4
4
|
error: boolean;
|
5
5
|
showText: boolean;
|
6
6
|
iconType: keyof ISvgs | 'none';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { FunctionComponentWithDefaultProps } from '../../../Helpers/React';
|
2
2
|
import IDatePickerProps from './IDatePickerProps';
|
3
3
|
import defaultProps from './defaultProps';
|
4
|
-
|
4
|
+
type DatePickerType = FunctionComponentWithDefaultProps<IDatePickerProps, typeof defaultProps>;
|
5
5
|
declare const DatePicker: DatePickerType;
|
6
6
|
export default DatePicker;
|
@@ -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
|
-
|
8
|
+
type DatePickerTextFieldType = SlotComponentProps<typeof TextField, {}, Record<string, any>>;
|
9
9
|
export default DatePickerTextFieldType;
|
@@ -25,7 +25,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
25
25
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
26
26
|
function step(op) {
|
27
27
|
if (f) throw new TypeError("Generator is already executing.");
|
28
|
-
while (_) try {
|
28
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
29
29
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
30
30
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
31
31
|
switch (op[0]) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { FunctionComponentWithDefaultProps } from '../../../Helpers/React';
|
2
2
|
import IComponentProps from './IComponentProps';
|
3
3
|
import defaultProps from './defaultProps';
|
4
|
-
|
4
|
+
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
|
-
|
4
|
+
type IconTileCheckBoxType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
|
5
5
|
declare const IconTileCheckBox: IconTileCheckBoxType;
|
6
6
|
export default IconTileCheckBox;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { ISvgs } from '../../../Assets/svgs/svgs';
|
3
|
-
|
3
|
+
type IconTileCheckBoxStoryType = React.FunctionComponent<{
|
4
4
|
error: boolean;
|
5
5
|
iconType: keyof ISvgs;
|
6
6
|
isOtherOption: boolean;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { FunctionComponentWithDefaultProps } from '../../../Helpers/React/FunctionComponentWithDefaultProps';
|
2
2
|
import IComponentProps from './IComponentProps';
|
3
3
|
import defaultProps from './defaultProps';
|
4
|
-
|
4
|
+
type IconTileRadioButtonType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
|
5
5
|
declare const IconTileRadioButton: IconTileRadioButtonType;
|
6
6
|
export default IconTileRadioButton;
|
@@ -48,7 +48,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
48
48
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
49
49
|
function step(op) {
|
50
50
|
if (f) throw new TypeError("Generator is already executing.");
|
51
|
-
while (_) try {
|
51
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
52
52
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
53
53
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
54
54
|
switch (op[0]) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { ISvgs } from '../../../Assets/svgs/svgs';
|
3
|
-
|
3
|
+
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
|
-
|
4
|
+
type NavBarType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
|
5
5
|
declare const NavBar: NavBarType;
|
6
6
|
export default NavBar;
|
@@ -23,9 +23,9 @@ var IconButton_1 = __importDefault(require("../../Atoms/IconButton/IconButton"))
|
|
23
23
|
var defaultProps_1 = __importDefault(require("./defaultProps"));
|
24
24
|
var makeNavBarStyles_1 = __importDefault(require("./makeNavBarStyles"));
|
25
25
|
var NavBar = function (_a) {
|
26
|
-
var buttonDisabled = _a.buttonDisabled, buttonLabel = _a.buttonLabel, disabled = _a.disabled, loading = _a.loading, onClickBack = _a.onClickBack, onClickContinue = _a.onClickContinue, _b = _a.textOverflowHandling, textOverflowHandling = _b === void 0 ? 'none' : _b;
|
26
|
+
var buttonDisabled = _a.buttonDisabled, buttonLabel = _a.buttonLabel, disabled = _a.disabled, loading = _a.loading, onClickBack = _a.onClickBack, onClickContinue = _a.onClickContinue, _b = _a.textOverflowHandling, textOverflowHandling = _b === void 0 ? 'none' : _b, continueButtonHidden = _a.continueButtonHidden;
|
27
27
|
var styles = (0, makeNavBarStyles_1.default)();
|
28
|
-
return ((0, jsx_runtime_1.jsxs)(Box_1.default, __assign({ css: styles.container }, { children: [(0, jsx_runtime_1.jsx)(Box_1.default, __assign({ css: styles.backButton }, { children: (0, jsx_runtime_1.jsx)(IconButton_1.default, { disabled: disabled, icon: (0, jsx_runtime_1.jsx)(KeyboardArrowLeft_1.default, {}), onClick: onClickBack, dataTestId: "backcta" }) })), (0, jsx_runtime_1.jsx)(Box_1.default, __assign({ css: styles.space }, { children: "\u00A0" })), (0, jsx_runtime_1.jsx)(Box_1.default, __assign({ css: styles.continueButton }, { children: (0, jsx_runtime_1.jsx)(Button_1.default, { disabled: buttonDisabled, onClick: onClickContinue, label: buttonLabel, loading: loading, dataTestId: "continuecta", textOverflowHandling: textOverflowHandling }) }))] })));
|
28
|
+
return ((0, jsx_runtime_1.jsxs)(Box_1.default, __assign({ css: styles.container }, { children: [(0, jsx_runtime_1.jsx)(Box_1.default, __assign({ css: styles.backButton }, { children: (0, jsx_runtime_1.jsx)(IconButton_1.default, { disabled: disabled, icon: (0, jsx_runtime_1.jsx)(KeyboardArrowLeft_1.default, {}), onClick: onClickBack, dataTestId: "backcta" }) })), (0, jsx_runtime_1.jsx)(Box_1.default, __assign({ css: styles.space }, { children: "\u00A0" })), (0, jsx_runtime_1.jsx)(Box_1.default, __assign({ css: styles.continueButton, sx: { display: continueButtonHidden ? 'none' : 'block' } }, { children: (0, jsx_runtime_1.jsx)(Button_1.default, { disabled: buttonDisabled, onClick: onClickContinue, label: buttonLabel, loading: loading, dataTestId: "continuecta", textOverflowHandling: textOverflowHandling }) }))] })));
|
29
29
|
};
|
30
30
|
NavBar.defaultProps = defaultProps_1.default;
|
31
31
|
exports.default = NavBar;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NavBar.js","sourceRoot":"","sources":["../../../../src/Components/Molecules/NavBar/NavBar.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,sCAAsC;AACtC,0DAAsC;AACtC,4FAAsE;AAEtE,qEAA+C;AAC/C,iFAA2D;AAC3D,gEAA0C;AAE1C,wEAAkD;AAOlD,IAAM,MAAM,GAAe,UAAC,
|
1
|
+
{"version":3,"file":"NavBar.js","sourceRoot":"","sources":["../../../../src/Components/Molecules/NavBar/NavBar.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,sCAAsC;AACtC,0DAAsC;AACtC,4FAAsE;AAEtE,qEAA+C;AAC/C,iFAA2D;AAC3D,gEAA0C;AAE1C,wEAAkD;AAOlD,IAAM,MAAM,GAAe,UAAC,EAS3B;QARC,cAAc,oBAAA,EACd,WAAW,iBAAA,EACX,QAAQ,cAAA,EACR,OAAO,aAAA,EACP,WAAW,iBAAA,EACX,eAAe,qBAAA,EACf,4BAA6B,EAA7B,oBAAoB,mBAAG,MAAM,KAAA,EAC7B,oBAAoB,0BAAA;IAEpB,IAAM,MAAM,GAAG,IAAA,0BAAgB,GAAE,CAAC;IAClC,OAAO,CACL,wBAAC,aAAK,aAAC,GAAG,EAAE,MAAM,CAAC,SAAS,iBAC1B,uBAAC,aAAK,aAAC,GAAG,EAAE,MAAM,CAAC,UAAU,gBAC3B,uBAAC,oBAAU,IACT,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,uBAAC,2BAAiB,KAAG,EAC3B,OAAO,EAAE,WAAW,EACpB,UAAU,EAAC,SAAS,GACpB,IACI,EACR,uBAAC,aAAK,aAAC,GAAG,EAAE,MAAM,CAAC,KAAK,4BAAgB,EACxC,uBAAC,aAAK,aACJ,GAAG,EAAE,MAAM,CAAC,cAAc,EAC1B,EAAE,EAAE,EAAE,OAAO,EAAE,oBAAoB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,gBAExD,uBAAC,gBAAM,IACL,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,eAAe,EACxB,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE,OAAO,EAChB,UAAU,EAAC,aAAa,EACxB,oBAAoB,EAAE,oBAAoB,GAC1C,IACI,KACF,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,YAAY,GAAG,sBAAY,CAAC;AAEnC,kBAAe,MAAM,CAAC"}
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
7
7
|
var renderWithProviders_1 = __importDefault(require("../../../Helpers/React/renderWithProviders"));
|
8
8
|
var NavBar_1 = __importDefault(require("./NavBar"));
|
9
|
+
var react_1 = require("@testing-library/react");
|
9
10
|
describe('<NavBar />', function () {
|
10
11
|
it('should display button component', function () {
|
11
12
|
var getByText = (0, renderWithProviders_1.default)((0, jsx_runtime_1.jsx)(NavBar_1.default, { buttonLabel: 'Continue' })).getByText;
|
@@ -18,4 +19,18 @@ describe('<NavBar />', function () {
|
|
18
19
|
expect(getByText('Continue')).toBeTruthy();
|
19
20
|
});
|
20
21
|
});
|
22
|
+
describe('NavBar', function () {
|
23
|
+
describe('continueButtonHidden prop', function () {
|
24
|
+
it('should hide continue button when continueButtonHidden is true', function () {
|
25
|
+
(0, renderWithProviders_1.default)((0, jsx_runtime_1.jsx)(NavBar_1.default, { buttonLabel: "Continue", onClickBack: function () { }, onClickContinue: function () { }, continueButtonHidden: true }));
|
26
|
+
var continueButton = react_1.screen.getByTestId('continuecta').parentElement;
|
27
|
+
expect(continueButton).toHaveStyle({ display: 'none' });
|
28
|
+
});
|
29
|
+
it('should show continue button when continueButtonHidden is false', function () {
|
30
|
+
(0, renderWithProviders_1.default)((0, jsx_runtime_1.jsx)(NavBar_1.default, { buttonLabel: "Continue", onClickBack: function () { }, onClickContinue: function () { }, continueButtonHidden: false }));
|
31
|
+
var continueButton = react_1.screen.getByTestId('continuecta').parentElement;
|
32
|
+
expect(continueButton).toHaveStyle({ display: 'block' });
|
33
|
+
});
|
34
|
+
});
|
35
|
+
});
|
21
36
|
//# sourceMappingURL=NavBar.test.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NavBar.test.js","sourceRoot":"","sources":["../../../../src/Components/Molecules/NavBar/NavBar.test.tsx"],"names":[],"mappings":";;;;;;AAAA,mGAA6E;AAC7E,oDAA8B;
|
1
|
+
{"version":3,"file":"NavBar.test.js","sourceRoot":"","sources":["../../../../src/Components/Molecules/NavBar/NavBar.test.tsx"],"names":[],"mappings":";;;;;;AAAA,mGAA6E;AAC7E,oDAA8B;AAC9B,gDAAgD;AAEhD,QAAQ,CAAC,YAAY,EAAE;IACrB,EAAE,CAAC,iCAAiC,EAAE;QAC5B,IAAA,SAAS,GAAK,IAAA,6BAAmB,EACvC,uBAAC,gBAAM,IAAC,WAAW,EAAE,UAAU,GAAI,CACpC,UAFgB,CAEf;QACF,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;IAC7C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,YAAY,EAAE;IACrB,EAAE,CAAC,uEAAuE,EAAE;QAClE,IAAA,SAAS,GAAK,IAAA,6BAAmB,EACvC,uBAAC,gBAAM,IACL,WAAW,EAAE,UAAU,EACvB,oBAAoB,EAAE,iBAAiB,GACvC,CACH,UALgB,CAKf;QACF,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;IAC7C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,QAAQ,EAAE;IACjB,QAAQ,CAAC,2BAA2B,EAAE;QACpC,EAAE,CAAC,+DAA+D,EAAE;YAClE,IAAA,6BAAmB,EACjB,uBAAC,gBAAM,IACL,WAAW,EAAC,UAAU,EACtB,WAAW,EAAE,cAAO,CAAC,EACrB,eAAe,EAAE,cAAO,CAAC,EACzB,oBAAoB,EAAE,IAAI,GAC1B,CACH,CAAC;YAEF,IAAM,cAAc,GAAG,cAAM,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,aAAa,CAAC;YACvE,MAAM,CAAC,cAAc,CAAC,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC;QAC1D,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,gEAAgE,EAAE;YACnE,IAAA,6BAAmB,EACjB,uBAAC,gBAAM,IACL,WAAW,EAAC,UAAU,EACtB,WAAW,EAAE,cAAO,CAAC,EACrB,eAAe,EAAE,cAAO,CAAC,EACzB,oBAAoB,EAAE,KAAK,GAC3B,CACH,CAAC;YAEF,IAAM,cAAc,GAAG,cAAM,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,aAAa,CAAC;YACvE,MAAM,CAAC,cAAc,CAAC,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;QAC3D,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
@@ -1,11 +1,12 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
|
2
|
+
type NavBarStoryType = React.FunctionComponent<{
|
3
3
|
disabled: boolean;
|
4
4
|
buttonDisabled: boolean;
|
5
5
|
buttonLabel: string;
|
6
6
|
buttonVariant: 'outlined' | 'contained';
|
7
7
|
loading: boolean;
|
8
8
|
textOverflowHandling: 'none' | 'dynamicFontSize' | 'newline';
|
9
|
+
continueButtonHidden: boolean;
|
9
10
|
}>;
|
10
11
|
declare const NavBarStory: NavBarStoryType;
|
11
12
|
export default NavBarStory;
|
@@ -18,8 +18,8 @@ var jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
18
18
|
var addon_actions_1 = require("@storybook/addon-actions");
|
19
19
|
var NavBar_1 = __importDefault(require("./NavBar"));
|
20
20
|
var NavBarStory = function (_a) {
|
21
|
-
var disabled = _a.disabled, buttonDisabled = _a.buttonDisabled, buttonLabel = _a.buttonLabel, buttonVariant = _a.buttonVariant, loading = _a.loading, textOverflowHandling = _a.textOverflowHandling;
|
22
|
-
return ((0, jsx_runtime_1.jsx)("div", __assign({ style: { maxWidth: '460px' } }, { children: (0, jsx_runtime_1.jsx)(NavBar_1.default, { disabled: disabled, onClickBack: (0, addon_actions_1.action)('Icon Button Clicked'), buttonDisabled: buttonDisabled, buttonLabel: buttonLabel, onClickContinue: (0, addon_actions_1.action)('Button Clicked'), buttonVariant: buttonVariant, loading: loading, textOverflowHandling: textOverflowHandling }) })));
|
21
|
+
var disabled = _a.disabled, buttonDisabled = _a.buttonDisabled, buttonLabel = _a.buttonLabel, buttonVariant = _a.buttonVariant, loading = _a.loading, textOverflowHandling = _a.textOverflowHandling, continueButtonHidden = _a.continueButtonHidden;
|
22
|
+
return ((0, jsx_runtime_1.jsx)("div", __assign({ style: { maxWidth: '460px' } }, { children: (0, jsx_runtime_1.jsx)(NavBar_1.default, { disabled: disabled, onClickBack: (0, addon_actions_1.action)('Icon Button Clicked'), buttonDisabled: buttonDisabled, buttonLabel: buttonLabel, onClickContinue: (0, addon_actions_1.action)('Button Clicked'), buttonVariant: buttonVariant, loading: loading, textOverflowHandling: textOverflowHandling, continueButtonHidden: continueButtonHidden }) })));
|
23
23
|
};
|
24
24
|
exports.default = NavBarStory;
|
25
25
|
//# sourceMappingURL=NavBarStory.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NavBarStory.js","sourceRoot":"","sources":["../../../../src/Components/Molecules/NavBar/NavBarStory.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,0DAAkD;AAClD,oDAA8B;
|
1
|
+
{"version":3,"file":"NavBarStory.js","sourceRoot":"","sources":["../../../../src/Components/Molecules/NavBar/NavBarStory.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,0DAAkD;AAClD,oDAA8B;AAY9B,IAAM,WAAW,GAAoB,UAAC,EAQrC;QAPC,QAAQ,cAAA,EACR,cAAc,oBAAA,EACd,WAAW,iBAAA,EACX,aAAa,mBAAA,EACb,OAAO,aAAA,EACP,oBAAoB,0BAAA,EACpB,oBAAoB,0BAAA;IAChB,OAAA,CACJ,yCAAK,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,gBAC/B,uBAAC,gBAAM,IACL,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,IAAA,sBAAM,EAAC,qBAAqB,CAAC,EAC1C,cAAc,EAAE,cAAc,EAC9B,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,IAAA,sBAAM,EAAC,gBAAgB,CAAC,EACzC,aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,OAAO,EAChB,oBAAoB,EAAE,oBAAoB,EAC1C,oBAAoB,EAAE,oBAAoB,GAC1C,IACE,CACP;AAdK,CAcL,CAAC;AAEF,kBAAe,WAAW,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"defaultProps.js","sourceRoot":"","sources":["../../../../src/Components/Molecules/NavBar/defaultProps.ts"],"names":[],"mappings":";;AAAA,IAAM,YAAY,GAAG;IACnB,cAAc,EAAE,KAAgB;IAChC,aAAa,EAAE,WAAuC;IACtD,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,KAAK;IACd,WAAW,EAAE;QACX,aAAa;IACf,CAAC;IACD,eAAe,EAAE;QACf,aAAa;IACf,CAAC;IACD,oBAAoB,EAAE,MAAgD;
|
1
|
+
{"version":3,"file":"defaultProps.js","sourceRoot":"","sources":["../../../../src/Components/Molecules/NavBar/defaultProps.ts"],"names":[],"mappings":";;AAAA,IAAM,YAAY,GAAG;IACnB,cAAc,EAAE,KAAgB;IAChC,aAAa,EAAE,WAAuC;IACtD,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,KAAK;IACd,WAAW,EAAE;QACX,aAAa;IACf,CAAC;IACD,eAAe,EAAE;QACf,aAAa;IACf,CAAC;IACD,oBAAoB,EAAE,MAAgD;IACtE,oBAAoB,EAAE,KAAK;CAC5B,CAAC;AAEF,kBAAe,YAAY,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { FunctionComponentWithDefaultProps } from '../../../Helpers/React';
|
2
2
|
import IPhoneNumberTextFieldProps from './IPhoneNumberTextFieldProps';
|
3
3
|
import defaultProps from './defaultProps';
|
4
|
-
|
4
|
+
type PhoneNumberTextFieldType = FunctionComponentWithDefaultProps<IPhoneNumberTextFieldProps, typeof defaultProps>;
|
5
5
|
declare const PhoneNumberTextField: PhoneNumberTextFieldType;
|
6
6
|
export default PhoneNumberTextField;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { FunctionComponentWithDefaultProps } from '../../../Helpers/React/FunctionComponentWithDefaultProps';
|
2
2
|
import IComponentProps from './IRadioButtonProps';
|
3
3
|
import defaultProps from './defaultProps';
|
4
|
-
|
4
|
+
type RadioButtonType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
|
5
5
|
declare const RadioButton: RadioButtonType;
|
6
6
|
export default RadioButton;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ISvgs } from '../../../Assets/svgs/svgs';
|
3
|
-
|
3
|
+
type RadioButtonStoryType = React.FunctionComponent<{
|
4
4
|
error: boolean;
|
5
5
|
iconType: keyof ISvgs | 'none';
|
6
6
|
otherInputError: boolean;
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
15
15
|
function step(op) {
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
17
|
-
while (_) try {
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
20
20
|
switch (op[0]) {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import IScrollContainerProps from './IScrollContainerProps';
|
3
|
-
export
|
4
|
-
export
|
3
|
+
export type ScrollContainerType = React.FunctionComponent<IScrollContainerProps>;
|
4
|
+
export type ScrollDetails = {
|
5
5
|
scrollHeight: number;
|
6
6
|
clientHeight: number;
|
7
7
|
offsetTop: number;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { FunctionComponentWithDefaultProps } from '../../../Helpers/React/FunctionComponentWithDefaultProps';
|
2
2
|
import ISupplierCardProps from './ISupplierCardProps';
|
3
3
|
import defaultProps from './defaultProps';
|
4
|
-
|
4
|
+
type SupplierCardType = FunctionComponentWithDefaultProps<ISupplierCardProps, typeof defaultProps>;
|
5
5
|
declare const SupplierCard: SupplierCardType;
|
6
6
|
export default SupplierCard;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import supplierLogos from '../../../Assets/SupplierLogos/supplierLogos';
|
3
|
-
|
3
|
+
type SupplierCardStoryType = React.FunctionComponent<{
|
4
4
|
ctaText: string;
|
5
5
|
badgeText?: string;
|
6
6
|
includeCheckbox: boolean;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { FunctionComponentWithDefaultProps } from '../../../Helpers/React';
|
2
2
|
import ITextFieldProps from './ITextFieldProps';
|
3
3
|
import defaultProps from './defaultProps';
|
4
|
-
|
4
|
+
type TextFieldType = FunctionComponentWithDefaultProps<ITextFieldProps, typeof defaultProps>;
|
5
5
|
declare const TextField: TextFieldType;
|
6
6
|
export default TextField;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
|
2
|
+
type StoryType = React.FunctionComponent<{
|
3
3
|
disabled: boolean;
|
4
4
|
errorMessage: string;
|
5
5
|
iconType: 'none' | 'person' | 'zipcode' | 'phone' | 'email' | 'company' | 'state' | 'locationService';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
/** @jsxImportSource @emotion/react */
|
3
3
|
import IThankYouBannerProps from './IThankYouBannerProps';
|
4
|
-
|
4
|
+
type ThankYouBannerType = React.FunctionComponent<IThankYouBannerProps>;
|
5
5
|
declare const ThankYouBanner: ThankYouBannerType;
|
6
6
|
export default ThankYouBanner;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { IBrandLogos } from '../../../Assets/BrandLogos/brandLogos';
|
3
|
-
|
3
|
+
type ThankYouBannerStoryType = React.FunctionComponent<{
|
4
4
|
brandType: keyof IBrandLogos;
|
5
5
|
submissionId: string;
|
6
6
|
}>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/** @jsxImportSource @emotion/react */
|
2
2
|
import { FunctionComponent } from 'react';
|
3
3
|
import IComponentProps from './IComponentProps';
|
4
|
-
|
4
|
+
type ListLayoutType = FunctionComponent<IComponentProps>;
|
5
5
|
declare const ListLayout: ListLayoutType;
|
6
6
|
export default ListLayout;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { ISvgs } from '../../../Assets/svgs/svgs';
|
3
|
-
|
3
|
+
type ListLayoutStoryType = React.FunctionComponent<{
|
4
4
|
iconType: keyof ISvgs | 'none';
|
5
5
|
optionsCount: number;
|
6
6
|
text: string;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { FunctionComponentWithDefaultProps } from '../../../Helpers/React/FunctionComponentWithDefaultProps';
|
2
2
|
import IComponentProps from './IComponentProps';
|
3
3
|
import defaultProps from './defaultProps';
|
4
|
-
|
4
|
+
type RadioGroupType = FunctionComponentWithDefaultProps<IComponentProps, typeof defaultProps>;
|
5
5
|
declare const RadioGroup: RadioGroupType;
|
6
6
|
export default RadioGroup;
|
@@ -25,7 +25,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
25
25
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
26
26
|
function step(op) {
|
27
27
|
if (f) throw new TypeError("Generator is already executing.");
|
28
|
-
while (_) try {
|
28
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
29
29
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
30
30
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
31
31
|
switch (op[0]) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { ISvgs } from '../../../Assets/svgs/svgs';
|
3
|
-
|
3
|
+
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
|
-
|
3
|
+
type TileLayoutType = FunctionComponent<IComponentProps>;
|
4
4
|
declare const TileLayout: TileLayoutType;
|
5
5
|
export default TileLayout;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
export
|
2
|
+
export type FunctionComponentWithDefaultProps<T, D extends Partial<React.ComponentProps<React.FC<T>>>> = Pick<React.FC<T>, Exclude<keyof React.FC<T>, 'defaultProps'>> & (React.FC<T> extends (...a: infer A) => infer R ? (...a: A) => R : never) & {
|
3
3
|
defaultProps: D;
|
4
4
|
};
|
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
|
-
|
2
|
+
type ThrottledFunction = (value: unknown) => void;
|
3
3
|
declare const useThrottle: (func: ThrottledFunction, wait: number) => DebouncedFunc<ThrottledFunction>;
|
4
4
|
export default useThrottle;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { IThemes } from './themes';
|
3
|
-
|
3
|
+
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
|
869
|
-
export
|
868
|
+
export type ITheme = typeof customTheme;
|
869
|
+
export type IThemes = typeof themes;
|
870
870
|
export declare const getThemeWithFontMultiplier: (theme: keyof IThemes, fontSizeMultiplier?: number) => import("@mui/material").Theme & {
|
871
871
|
mvf: {
|
872
872
|
border: {
|