@mvf/external-components 3.7.1-dev.2 → 3.8.0
Sign up to get free protection for your applications and to get access to all the features.
- 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/AnimationWrapper.d.ts +4 -0
- package/Components/Atoms/AnimationWrapper/AnimationWrapper.js +30 -0
- package/Components/Atoms/AnimationWrapper/AnimationWrapper.js.map +1 -0
- package/Components/Atoms/AnimationWrapper/AnimationWrapper.test.d.ts +1 -0
- package/Components/Atoms/AnimationWrapper/AnimationWrapper.test.js +59 -0
- package/Components/Atoms/AnimationWrapper/AnimationWrapper.test.js.map +1 -0
- package/Components/Atoms/AnimationWrapper/AnimationWrapperStory.d.ts +8 -0
- package/Components/Atoms/AnimationWrapper/AnimationWrapperStory.js +25 -0
- package/Components/Atoms/AnimationWrapper/AnimationWrapperStory.js.map +1 -0
- package/Components/Atoms/AnimationWrapper/IAnimationWrapperProps.d.ts +8 -0
- package/Components/Atoms/AnimationWrapper/IAnimationWrapperProps.js +3 -0
- package/Components/Atoms/AnimationWrapper/IAnimationWrapperProps.js.map +1 -0
- package/Components/Atoms/AnimationWrapper/index.d.ts +1 -0
- package/Components/Atoms/AnimationWrapper/index.js +9 -0
- package/Components/Atoms/AnimationWrapper/index.js.map +1 -0
- package/Components/Atoms/AnimationWrapper/makeAnimationWrapperStyling.d.ts +6 -0
- package/Components/Atoms/AnimationWrapper/makeAnimationWrapperStyling.js +116 -0
- package/Components/Atoms/AnimationWrapper/makeAnimationWrapperStyling.js.map +1 -0
- 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/Atoms/index.d.ts +1 -0
- package/Components/Atoms/index.js +3 -1
- package/Components/Atoms/index.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/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/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 -3
- package/Themes/StoryThemeWrapper.js +2 -2
- package/Themes/StoryThemeWrapper.js.map +1 -1
- package/Themes/themeCreator.d.ts +1 -2
- package/Themes/themeCreator.js +1 -3
- package/Themes/themeCreator.js.map +1 -1
- package/Themes/themes.d.ts +3 -4
- package/Themes/themes.js +8 -9
- package/Themes/themes.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +2 -1
- package/index.js.map +1 -1
- package/package.json +2 -5
@@ -1,6 +1,6 @@
|
|
1
1
|
import { FunctionComponentWithDefaultProps } from '../../../Helpers/React';
|
2
2
|
import defaultProps from './defaultProps';
|
3
3
|
import IComponentProps from './IComponentProps';
|
4
|
-
|
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';
|
5
5
|
align: 'center' | 'inherit' | 'justify' | 'left' | 'right';
|
@@ -13,3 +13,4 @@ export { default as Input } from './Input';
|
|
13
13
|
export { default as FormControl } from './FormControl';
|
14
14
|
export { default as InputLabel } from './InputLabel';
|
15
15
|
export { default as InfoPanel } from './InfoPanel';
|
16
|
+
export { default as AnimationWrapper } from './AnimationWrapper';
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.InfoPanel = exports.InputLabel = exports.FormControl = exports.Input = exports.Text = exports.ProgressBar = exports.Modal = exports.LoadingIndicator = exports.Link = exports.IconButton = exports.useErrorMessage = exports.ErrorMessageProvider = exports.ErrorMessage = exports.CircularProgress = exports.CardButton = exports.Button = void 0;
|
6
|
+
exports.AnimationWrapper = exports.InfoPanel = exports.InputLabel = exports.FormControl = exports.Input = exports.Text = exports.ProgressBar = exports.Modal = exports.LoadingIndicator = exports.Link = exports.IconButton = exports.useErrorMessage = exports.ErrorMessageProvider = exports.ErrorMessage = exports.CircularProgress = exports.CardButton = exports.Button = void 0;
|
7
7
|
var Button_1 = require("./Button");
|
8
8
|
Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return __importDefault(Button_1).default; } });
|
9
9
|
var CardButton_1 = require("./CardButton");
|
@@ -35,4 +35,6 @@ var InputLabel_1 = require("./InputLabel");
|
|
35
35
|
Object.defineProperty(exports, "InputLabel", { enumerable: true, get: function () { return __importDefault(InputLabel_1).default; } });
|
36
36
|
var InfoPanel_1 = require("./InfoPanel");
|
37
37
|
Object.defineProperty(exports, "InfoPanel", { enumerable: true, get: function () { return __importDefault(InfoPanel_1).default; } });
|
38
|
+
var AnimationWrapper_1 = require("./AnimationWrapper");
|
39
|
+
Object.defineProperty(exports, "AnimationWrapper", { enumerable: true, get: function () { return __importDefault(AnimationWrapper_1).default; } });
|
38
40
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Components/Atoms/index.ts"],"names":[],"mappings":";;;;;;AAAA,mCAA6C;AAApC,iHAAA,OAAO,OAAU;AAC1B,2CAAqD;AAA5C,yHAAA,OAAO,OAAc;AAC9B,uDAAiE;AAAxD,qIAAA,OAAO,OAAoB;AACpC,+CAAyD;AAAhD,6HAAA,OAAO,OAAgB;AAChC,+DAA+E;AAAtE,4HAAA,oBAAoB,OAAA;AAAE,uHAAA,eAAe,OAAA;AAC9C,2CAAqD;AAA5C,yHAAA,OAAO,OAAc;AAC9B,+BAAyC;AAAhC,6GAAA,OAAO,OAAQ;AACxB,uDAAiE;AAAxD,qIAAA,OAAO,OAAoB;AACpC,iCAA2C;AAAlC,+GAAA,OAAO,OAAS;AACzB,6CAAuD;AAA9C,2HAAA,OAAO,OAAe;AAC/B,+BAAyC;AAAhC,6GAAA,OAAO,OAAQ;AACxB,iCAA2C;AAAlC,+GAAA,OAAO,OAAS;AACzB,6CAAuD;AAA9C,2HAAA,OAAO,OAAe;AAC/B,2CAAqD;AAA5C,yHAAA,OAAO,OAAc;AAC9B,yCAAmD;AAA1C,uHAAA,OAAO,OAAa"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Components/Atoms/index.ts"],"names":[],"mappings":";;;;;;AAAA,mCAA6C;AAApC,iHAAA,OAAO,OAAU;AAC1B,2CAAqD;AAA5C,yHAAA,OAAO,OAAc;AAC9B,uDAAiE;AAAxD,qIAAA,OAAO,OAAoB;AACpC,+CAAyD;AAAhD,6HAAA,OAAO,OAAgB;AAChC,+DAA+E;AAAtE,4HAAA,oBAAoB,OAAA;AAAE,uHAAA,eAAe,OAAA;AAC9C,2CAAqD;AAA5C,yHAAA,OAAO,OAAc;AAC9B,+BAAyC;AAAhC,6GAAA,OAAO,OAAQ;AACxB,uDAAiE;AAAxD,qIAAA,OAAO,OAAoB;AACpC,iCAA2C;AAAlC,+GAAA,OAAO,OAAS;AACzB,6CAAuD;AAA9C,2HAAA,OAAO,OAAe;AAC/B,+BAAyC;AAAhC,6GAAA,OAAO,OAAQ;AACxB,iCAA2C;AAAlC,+GAAA,OAAO,OAAS;AACzB,6CAAuD;AAA9C,2HAAA,OAAO,OAAe;AAC/B,2CAAqD;AAA5C,yHAAA,OAAO,OAAc;AAC9B,yCAAmD;AAA1C,uHAAA,OAAO,OAAa;AAC7B,uDAAiE;AAAxD,qIAAA,OAAO,OAAoB"}
|
@@ -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;
|
@@ -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';
|
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,10 +1,8 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { IThemes } from './themes';
|
3
|
-
|
4
|
-
declare type StoryThemeWrapperType = React.FunctionComponent<{
|
3
|
+
type StoryThemeWrapperType = React.FunctionComponent<{
|
5
4
|
children: React.ReactNode;
|
6
5
|
themeType: keyof IThemes;
|
7
|
-
direction: Direction;
|
8
6
|
fontSizeMultiplier?: number;
|
9
7
|
}>;
|
10
8
|
declare const StoryThemeWrapper: StoryThemeWrapperType;
|
@@ -15,8 +15,8 @@ var jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
15
15
|
var react_1 = require("@emotion/react");
|
16
16
|
var themes_1 = require("./themes");
|
17
17
|
var StoryThemeWrapper = function (_a) {
|
18
|
-
var children = _a.children, themeType = _a.themeType,
|
19
|
-
var theme = (0, themes_1.getThemeWithFontMultiplier)(themeType, fontSizeMultiplier
|
18
|
+
var children = _a.children, themeType = _a.themeType, _b = _a.fontSizeMultiplier, fontSizeMultiplier = _b === void 0 ? 1 : _b;
|
19
|
+
var theme = (0, themes_1.getThemeWithFontMultiplier)(themeType, fontSizeMultiplier);
|
20
20
|
return (0, jsx_runtime_1.jsx)(react_1.ThemeProvider, __assign({ theme: theme }, { children: children }));
|
21
21
|
};
|
22
22
|
exports.default = StoryThemeWrapper;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"StoryThemeWrapper.js","sourceRoot":"","sources":["../../src/Themes/StoryThemeWrapper.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,wCAA+C;AAC/C,mCAA+D;
|
1
|
+
{"version":3,"file":"StoryThemeWrapper.js","sourceRoot":"","sources":["../../src/Themes/StoryThemeWrapper.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,wCAA+C;AAC/C,mCAA+D;AAQ/D,IAAM,iBAAiB,GAA0B,UAAC,EAIjD;QAHC,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,0BAAsB,EAAtB,kBAAkB,mBAAG,CAAC,KAAA;IAEtB,IAAM,KAAK,GAAG,IAAA,mCAA0B,EAAC,SAAS,EAAE,kBAAkB,CAAC,CAAC;IAExE,OAAO,uBAAC,qBAAa,aAAC,KAAK,EAAE,KAAK,gBAAG,QAAQ,IAAiB,CAAC;AACjE,CAAC,CAAC;AAEF,kBAAe,iBAAiB,CAAC"}
|
package/Themes/themeCreator.d.ts
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
import { Direction } from '@mui/material';
|
2
1
|
declare module '@mui/material/styles' {
|
3
2
|
interface BreakpointOverrides {
|
4
3
|
desktopLarge: true;
|
@@ -64,7 +63,7 @@ declare const themeCreator: (palette?: {
|
|
64
63
|
disabled: string;
|
65
64
|
error: string;
|
66
65
|
};
|
67
|
-
}, fontFamily?: string, fontSizeMultiplier?: number
|
66
|
+
}, fontFamily?: string, fontSizeMultiplier?: number) => import("@mui/material").Theme & {
|
68
67
|
mvf: {
|
69
68
|
border: {
|
70
69
|
width: {
|
package/Themes/themeCreator.js
CHANGED
@@ -100,11 +100,10 @@ var getFontSizesWithOriginalAndMultipliedValues = function (multiplier) {
|
|
100
100
|
});
|
101
101
|
return fontSizesWithOriginal;
|
102
102
|
};
|
103
|
-
var themeCreator = function (palette, fontFamily, fontSizeMultiplier
|
103
|
+
var themeCreator = function (palette, fontFamily, fontSizeMultiplier) {
|
104
104
|
if (palette === void 0) { palette = exports.customPalette; }
|
105
105
|
if (fontFamily === void 0) { fontFamily = "'Arial', sans-serif"; }
|
106
106
|
if (fontSizeMultiplier === void 0) { fontSizeMultiplier = 1; }
|
107
|
-
if (direction === void 0) { direction = 'rtl'; }
|
108
107
|
var processedFontSizes = getFontSizesWithOriginalAndMultipliedValues(fontSizeMultiplier);
|
109
108
|
var boxShadow = {
|
110
109
|
light: 'rgb(0 0 0 / 20%) 0px 2px 1px -1px, rgb(0 0 0 / 14%) 0px 1px 1px 0px, rgb(0 0 0 / 12%) 0px 1px 3px 0px',
|
@@ -120,7 +119,6 @@ var themeCreator = function (palette, fontFamily, fontSizeMultiplier, direction)
|
|
120
119
|
},
|
121
120
|
};
|
122
121
|
var customTheme = (0, material_1.createTheme)({
|
123
|
-
direction: direction,
|
124
122
|
palette: {
|
125
123
|
primary: {
|
126
124
|
main: palette.component.answerSelectedColor,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"themeCreator.js","sourceRoot":"","sources":["../../src/Themes/themeCreator.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"themeCreator.js","sourceRoot":"","sources":["../../src/Themes/themeCreator.ts"],"names":[],"mappings":";;;AAAA,0CAAqD;AACrD,iCAA+B;AAelB,QAAA,aAAa,GAAG;IAC3B,SAAS,EAAE;QACT,mBAAmB,EAAE,oBAAoB;QACzC,qBAAqB,EAAE,oBAAoB;QAC3C,mBAAmB,EAAE,oBAAoB;QACzC,wBAAwB,EAAE,oBAAoB;QAC9C,eAAe,EAAE,kBAAkB;QACnC,oBAAoB,EAAE,kBAAkB;QACxC,sBAAsB,EAAE,oBAAoB;QAC5C,wBAAwB,EAAE,mBAAmB;QAC7C,oBAAoB,EAAE,oBAAoB;KAC3C;IACD,UAAU,EAAE;QACV,qBAAqB,EAAE,oBAAoB;QAC3C,wBAAwB,EAAE,oBAAoB;QAC9C,qBAAqB,EAAE,kBAAkB;KAC1C;IACD,IAAI,EAAE;QACJ,gBAAgB,EAAE,cAAc;QAChC,uBAAuB,EAAE,oBAAoB;QAC7C,kBAAkB,EAAE,cAAc;KACnC;IACD,MAAM,EAAE;QACN,QAAQ,EAAE,oBAAoB;QAC9B,KAAK,EAAE,kBAAkB;KAC1B;CACF,CAAC;AAEF,IAAM,OAAO,GAAG;IACd,MAAM,EAAE;QACN,MAAM,EAAE,GAAG;QACX,MAAM,EAAE,GAAG;QACX,KAAK,EAAE,GAAG;KACX;IACD,OAAO,EAAE;QACP,MAAM,EAAE,GAAG;QACX,MAAM,EAAE,GAAG;QACX,MAAM,EAAE,GA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ACF,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,MAAM;iBACb;gBACD,EAAE,EAAE;oBACF,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,QAAQ;iBACf;gBACD,EAAE,EAAE;oBACF,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,MAAM;iBACb;gBACD,EAAE,EAAE;oBACF,IAAI,EAAE,SAAS;oBACf,IAAI,EAAE,QAAQ;iBACf;gBACD,EAAE,EAAE;oBACF,IAAI,EAAE,SAAS;oBACf,IAAI,EAAE,QAAQ;iBACf;gBACD,EAAE,EAAE;oBACF,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,MAAM;iBACb;gBACD,SAAS,EAAE;oBACT,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,QAAQ;oBACd,UAAU,YAAA;iBACX;gBACD,MAAM,EAAE;oBACN,KAAK,EAAE,QAAQ;iBAChB;gBACD,MAAM,EAAE;oBACN,IAAI,EAAE,GAAG;oBACT,MAAM,EAAE,GAAG;oBACX,KAAK,EAAE,GAAG;iBACX;gBACD,UAAU,YAAA;aACX;SACF;KACF,CAAC;IAEF,OAAO,IAAA,cAAK,EAAC,WAAW,EAAE,KAAK,CAAC,CAAC;AACnC,CAAC,CAAC;AAEW,QAAA,WAAW,GAAG,YAAY,EAAE,CAAC;AAE1C,kBAAe,YAAY,CAAC"}
|
package/Themes/themes.d.ts
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
import { Direction } from '@mui/material';
|
2
1
|
import { customTheme } from './themeCreator';
|
3
2
|
declare const themes: {
|
4
3
|
atlantic: import("@mui/material").Theme & {
|
@@ -866,9 +865,9 @@ declare const themes: {
|
|
866
865
|
};
|
867
866
|
};
|
868
867
|
};
|
869
|
-
export
|
870
|
-
export
|
871
|
-
export declare const getThemeWithFontMultiplier: (theme: keyof IThemes, fontSizeMultiplier?: number
|
868
|
+
export type ITheme = typeof customTheme;
|
869
|
+
export type IThemes = typeof themes;
|
870
|
+
export declare const getThemeWithFontMultiplier: (theme: keyof IThemes, fontSizeMultiplier?: number) => import("@mui/material").Theme & {
|
872
871
|
mvf: {
|
873
872
|
border: {
|
874
873
|
width: {
|
package/Themes/themes.js
CHANGED
@@ -38,28 +38,27 @@ var themes = {
|
|
38
38
|
rhubarb: rhubarbTheme_1.default,
|
39
39
|
custom: themeCreator_1.customTheme,
|
40
40
|
};
|
41
|
-
var getThemeWithFontMultiplier = function (theme, fontSizeMultiplier
|
41
|
+
var getThemeWithFontMultiplier = function (theme, fontSizeMultiplier) {
|
42
42
|
if (fontSizeMultiplier === void 0) { fontSizeMultiplier = 1; }
|
43
|
-
if (direction === void 0) { direction = 'rtl'; }
|
44
43
|
if (theme === 'atlantic') {
|
45
|
-
return (0, themeCreator_1.default)(atlanticTheme_1.atlanticPalette, atlanticTheme_1.default.typography.fontFamily, fontSizeMultiplier
|
44
|
+
return (0, themeCreator_1.default)(atlanticTheme_1.atlanticPalette, atlanticTheme_1.default.typography.fontFamily, fontSizeMultiplier);
|
46
45
|
}
|
47
46
|
if (theme === 'chameleon') {
|
48
|
-
return (0, themeCreator_1.default)(chameleonTheme_1.chameleonPalette, chameleonTheme_1.default.typography.fontFamily, fontSizeMultiplier
|
47
|
+
return (0, themeCreator_1.default)(chameleonTheme_1.chameleonPalette, chameleonTheme_1.default.typography.fontFamily, fontSizeMultiplier);
|
49
48
|
}
|
50
49
|
if (theme === 'gowizard') {
|
51
|
-
return (0, themeCreator_1.default)(gowizardTheme_1.gowizardPalette, gowizardTheme_1.default.typography.fontFamily, fontSizeMultiplier
|
50
|
+
return (0, themeCreator_1.default)(gowizardTheme_1.gowizardPalette, gowizardTheme_1.default.typography.fontFamily, fontSizeMultiplier);
|
52
51
|
}
|
53
52
|
if (theme === 'indigo') {
|
54
|
-
return (0, themeCreator_1.default)(indigoTheme_1.indigoPalette, indigoTheme_1.default.typography.fontFamily, fontSizeMultiplier
|
53
|
+
return (0, themeCreator_1.default)(indigoTheme_1.indigoPalette, indigoTheme_1.default.typography.fontFamily, fontSizeMultiplier);
|
55
54
|
}
|
56
55
|
if (theme === 'rhubarb') {
|
57
|
-
return (0, themeCreator_1.default)(rhubarbTheme_1.rhubarbPalette, rhubarbTheme_1.default.typography.fontFamily, fontSizeMultiplier
|
56
|
+
return (0, themeCreator_1.default)(rhubarbTheme_1.rhubarbPalette, rhubarbTheme_1.default.typography.fontFamily, fontSizeMultiplier);
|
58
57
|
}
|
59
58
|
if (theme === 'custom') {
|
60
|
-
return (0, themeCreator_1.default)(themeCreator_1.customPalette, themeCreator_1.customTheme.typography.fontFamily, fontSizeMultiplier
|
59
|
+
return (0, themeCreator_1.default)(themeCreator_1.customPalette, themeCreator_1.customTheme.typography.fontFamily, fontSizeMultiplier);
|
61
60
|
}
|
62
|
-
return (0, themeCreator_1.default)(chameleonTheme_1.chameleonPalette, chameleonTheme_1.default.typography.fontFamily, fontSizeMultiplier
|
61
|
+
return (0, themeCreator_1.default)(chameleonTheme_1.chameleonPalette, chameleonTheme_1.default.typography.fontFamily, fontSizeMultiplier);
|
63
62
|
};
|
64
63
|
exports.getThemeWithFontMultiplier = getThemeWithFontMultiplier;
|
65
64
|
exports.default = themes;
|
package/Themes/themes.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"themes.js","sourceRoot":"","sources":["../../src/Themes/themes.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"themes.js","sourceRoot":"","sources":["../../src/Themes/themes.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAAiE;AACjE,iEAAoE;AACpE,+DAAiE;AACjE,2DAA2D;AAC3D,6DAA8D;AAC9D,6DAA0E;AAE1E,IAAM,MAAM,GAAG;IACb,QAAQ,EAAE,uBAAa;IACvB,SAAS,EAAE,wBAAc;IACzB,QAAQ,EAAE,uBAAa;IACvB,MAAM,EAAE,qBAAW;IACnB,OAAO,EAAE,sBAAY;IACrB,MAAM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