@mychoice/mychoice-sdk-modules 1.0.2 → 2.0.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.
Files changed (132) hide show
  1. package/dist/cjs/index.js +3216 -2070
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/init/AppModal/interfaces.d.ts +1 -1
  4. package/dist/cjs/init/AppTitle/AppTitle.d.ts +6 -0
  5. package/dist/cjs/init/AppTitle/MetaFields.d.ts +5 -0
  6. package/dist/cjs/init/AppTitle/index.d.ts +1 -0
  7. package/dist/cjs/init/helper.d.ts +1 -1
  8. package/dist/cjs/init/index.d.ts +0 -1
  9. package/dist/cjs/insurances/car/pages/discount/helpers.d.ts +14 -0
  10. package/dist/cjs/insurances/car/pages/driver/helpers.d.ts +5 -0
  11. package/dist/cjs/insurances/car/pages/index.d.ts +0 -1
  12. package/dist/cjs/insurances/car/pages/interfaces.d.ts +1 -1
  13. package/dist/cjs/insurances/car/pages/quote/PageQuote.d.ts +1 -1
  14. package/dist/cjs/insurances/car/pages/quote/index.d.ts +1 -1
  15. package/dist/cjs/insurances/helpers.d.ts +2 -2
  16. package/dist/cjs/insurances/home/pages/index.d.ts +1 -0
  17. package/dist/cjs/insurances/home/pages/quote/PageQuote.d.ts +2 -0
  18. package/dist/cjs/insurances/home/pages/quote/index.d.ts +1 -0
  19. package/dist/cjs/insurances/home/pages/quote/sections/SectionQuoteEdit.d.ts +2 -0
  20. package/dist/cjs/insurances/home/pages/quote/sections/SectionQuoteRecalc.d.ts +2 -0
  21. package/dist/cjs/insurances/home/pages/quote/sections/SplashScreen.d.ts +2 -0
  22. package/dist/cjs/insurances/home/pages/quote/sections/blocks/BlockEndorsements.d.ts +3 -0
  23. package/dist/cjs/insurances/home/pages/quote/sections/index.d.ts +2 -0
  24. package/dist/cjs/insurances/index.d.ts +1 -0
  25. package/dist/cjs/insurances/life/index.d.ts +1 -0
  26. package/dist/cjs/insurances/life/pages/applicant/PageApplicant.d.ts +2 -0
  27. package/dist/cjs/insurances/life/pages/applicant/index.d.ts +1 -0
  28. package/dist/cjs/insurances/life/pages/applicant/sections/SectionApplicant.d.ts +2 -0
  29. package/dist/cjs/insurances/life/pages/applicant/sections/blocks/BlockNextPageInfo.d.ts +2 -0
  30. package/dist/cjs/insurances/life/pages/applicant/sections/blocks/BlockSubmit.d.ts +3 -0
  31. package/dist/cjs/insurances/life/pages/applicant/sections/blocks/index.d.ts +2 -0
  32. package/dist/cjs/insurances/life/pages/applicant/sections/blocks/interfaces.d.ts +7 -0
  33. package/dist/cjs/insurances/life/pages/applicant/sections/index.d.ts +1 -0
  34. package/dist/cjs/insurances/life/pages/coverage/PageCoverage.d.ts +2 -0
  35. package/dist/cjs/insurances/life/pages/coverage/index.d.ts +1 -0
  36. package/dist/cjs/insurances/life/pages/coverage/sections/SectionCoverage.d.ts +2 -0
  37. package/dist/cjs/insurances/life/pages/coverage/sections/index.d.ts +1 -0
  38. package/dist/cjs/insurances/life/pages/helpers.d.ts +4 -0
  39. package/dist/cjs/insurances/life/pages/index.d.ts +3 -0
  40. package/dist/cjs/insurances/life/pages/quote/PageQuote.d.ts +2 -0
  41. package/dist/cjs/insurances/life/pages/quote/index.d.ts +1 -0
  42. package/dist/cjs/insurances/life/pages/quote/sections/SectionQuoteEdit.d.ts +2 -0
  43. package/dist/cjs/insurances/life/pages/quote/sections/SectionQuoteRecalc.d.ts +2 -0
  44. package/dist/cjs/insurances/life/pages/quote/sections/SplashScreen.d.ts +2 -0
  45. package/dist/cjs/insurances/life/pages/quote/sections/blocks/BlockEndorsements.d.ts +3 -0
  46. package/dist/cjs/insurances/life/pages/quote/sections/index.d.ts +1 -0
  47. package/dist/cjs/shared/boxes/Container/interface.d.ts +1 -1
  48. package/dist/cjs/shared/boxes/DateSelectFormBox/interface.d.ts +2 -2
  49. package/dist/cjs/shared/boxes/InputFormBox/interface.d.ts +3 -2
  50. package/dist/cjs/shared/boxes/LabelFormBox/interface.d.ts +3 -2
  51. package/dist/cjs/shared/boxes/SelectFormBox/interface.d.ts +1 -1
  52. package/dist/cjs/shared/boxes/SwitchButtonBox/interface.d.ts +1 -1
  53. package/dist/cjs/shared/headers/interfaces.d.ts +3 -3
  54. package/dist/cjs/shared/modals/ModalAddress/ModalAddress.d.ts +2 -0
  55. package/dist/cjs/shared/modals/ModalAddress/index.d.ts +1 -0
  56. package/dist/cjs/shared/modals/ModalPostal/ModalPostal.d.ts +1 -2
  57. package/dist/cjs/shared/modals/index.d.ts +1 -0
  58. package/dist/cjs/shared/modals/interfaces.d.ts +5 -5
  59. package/dist/cjs/shared/navigations/NavigationTab/interface.d.ts +1 -1
  60. package/dist/cjs/shared/navigations/NavigationTop/components/interface.d.ts +1 -0
  61. package/dist/cjs/shared/navigations/constants/insuranceSteps.d.ts +65 -5
  62. package/dist/cjs/shared/navigations/interfaces.d.ts +11 -5
  63. package/dist/cjs/shared/sections/quotes/interfaces.d.ts +2 -1
  64. package/dist/esm/index.js +3207 -2061
  65. package/dist/esm/index.js.map +1 -1
  66. package/dist/esm/init/AppModal/interfaces.d.ts +1 -1
  67. package/dist/esm/init/AppTitle/AppTitle.d.ts +6 -0
  68. package/dist/esm/init/AppTitle/MetaFields.d.ts +5 -0
  69. package/dist/esm/init/AppTitle/index.d.ts +1 -0
  70. package/dist/esm/init/helper.d.ts +1 -1
  71. package/dist/esm/init/index.d.ts +0 -1
  72. package/dist/esm/insurances/car/pages/discount/helpers.d.ts +14 -0
  73. package/dist/esm/insurances/car/pages/driver/helpers.d.ts +5 -0
  74. package/dist/esm/insurances/car/pages/index.d.ts +0 -1
  75. package/dist/esm/insurances/car/pages/interfaces.d.ts +1 -1
  76. package/dist/esm/insurances/car/pages/quote/PageQuote.d.ts +1 -1
  77. package/dist/esm/insurances/car/pages/quote/index.d.ts +1 -1
  78. package/dist/esm/insurances/helpers.d.ts +2 -2
  79. package/dist/esm/insurances/home/pages/index.d.ts +1 -0
  80. package/dist/esm/insurances/home/pages/quote/PageQuote.d.ts +2 -0
  81. package/dist/esm/insurances/home/pages/quote/index.d.ts +1 -0
  82. package/dist/esm/insurances/home/pages/quote/sections/SectionQuoteEdit.d.ts +2 -0
  83. package/dist/esm/insurances/home/pages/quote/sections/SectionQuoteRecalc.d.ts +2 -0
  84. package/dist/esm/insurances/home/pages/quote/sections/SplashScreen.d.ts +2 -0
  85. package/dist/esm/insurances/home/pages/quote/sections/blocks/BlockEndorsements.d.ts +3 -0
  86. package/dist/esm/insurances/home/pages/quote/sections/index.d.ts +2 -0
  87. package/dist/esm/insurances/index.d.ts +1 -0
  88. package/dist/esm/insurances/life/index.d.ts +1 -0
  89. package/dist/esm/insurances/life/pages/applicant/PageApplicant.d.ts +2 -0
  90. package/dist/esm/insurances/life/pages/applicant/index.d.ts +1 -0
  91. package/dist/esm/insurances/life/pages/applicant/sections/SectionApplicant.d.ts +2 -0
  92. package/dist/esm/insurances/life/pages/applicant/sections/blocks/BlockNextPageInfo.d.ts +2 -0
  93. package/dist/esm/insurances/life/pages/applicant/sections/blocks/BlockSubmit.d.ts +3 -0
  94. package/dist/esm/insurances/life/pages/applicant/sections/blocks/index.d.ts +2 -0
  95. package/dist/esm/insurances/life/pages/applicant/sections/blocks/interfaces.d.ts +7 -0
  96. package/dist/esm/insurances/life/pages/applicant/sections/index.d.ts +1 -0
  97. package/dist/esm/insurances/life/pages/coverage/PageCoverage.d.ts +2 -0
  98. package/dist/esm/insurances/life/pages/coverage/index.d.ts +1 -0
  99. package/dist/esm/insurances/life/pages/coverage/sections/SectionCoverage.d.ts +2 -0
  100. package/dist/esm/insurances/life/pages/coverage/sections/index.d.ts +1 -0
  101. package/dist/esm/insurances/life/pages/helpers.d.ts +4 -0
  102. package/dist/esm/insurances/life/pages/index.d.ts +3 -0
  103. package/dist/esm/insurances/life/pages/quote/PageQuote.d.ts +2 -0
  104. package/dist/esm/insurances/life/pages/quote/index.d.ts +1 -0
  105. package/dist/esm/insurances/life/pages/quote/sections/SectionQuoteEdit.d.ts +2 -0
  106. package/dist/esm/insurances/life/pages/quote/sections/SectionQuoteRecalc.d.ts +2 -0
  107. package/dist/esm/insurances/life/pages/quote/sections/SplashScreen.d.ts +2 -0
  108. package/dist/esm/insurances/life/pages/quote/sections/blocks/BlockEndorsements.d.ts +3 -0
  109. package/dist/esm/insurances/life/pages/quote/sections/index.d.ts +1 -0
  110. package/dist/esm/shared/boxes/Container/interface.d.ts +1 -1
  111. package/dist/esm/shared/boxes/DateSelectFormBox/interface.d.ts +2 -2
  112. package/dist/esm/shared/boxes/InputFormBox/interface.d.ts +3 -2
  113. package/dist/esm/shared/boxes/LabelFormBox/interface.d.ts +3 -2
  114. package/dist/esm/shared/boxes/SelectFormBox/interface.d.ts +1 -1
  115. package/dist/esm/shared/boxes/SwitchButtonBox/interface.d.ts +1 -1
  116. package/dist/esm/shared/headers/interfaces.d.ts +3 -3
  117. package/dist/esm/shared/modals/ModalAddress/ModalAddress.d.ts +2 -0
  118. package/dist/esm/shared/modals/ModalAddress/index.d.ts +1 -0
  119. package/dist/esm/shared/modals/ModalPostal/ModalPostal.d.ts +1 -2
  120. package/dist/esm/shared/modals/index.d.ts +1 -0
  121. package/dist/esm/shared/modals/interfaces.d.ts +5 -5
  122. package/dist/esm/shared/navigations/NavigationTab/interface.d.ts +1 -1
  123. package/dist/esm/shared/navigations/NavigationTop/components/interface.d.ts +1 -0
  124. package/dist/esm/shared/navigations/constants/insuranceSteps.d.ts +65 -5
  125. package/dist/esm/shared/navigations/interfaces.d.ts +11 -5
  126. package/dist/esm/shared/sections/quotes/interfaces.d.ts +2 -1
  127. package/dist/index.d.ts +113 -51
  128. package/package.json +8 -5
  129. package/dist/images/logotype-mychoice-primary.png +0 -0
  130. package/dist/images/logotype-thebig-primary.png +0 -0
  131. package/dist/images/pigLoader.mp4 +0 -0
  132. package/dist/images/powered-by-mychoice.png +0 -0
@@ -1,4 +1,4 @@
1
1
  import { InsuranceTypes } from '@mychoice/mychoice-sdk-components';
2
- export declare type InsuranceModalType = {
2
+ export type InsuranceModalType = {
3
3
  insuranceType?: InsuranceTypes;
4
4
  };
@@ -0,0 +1,6 @@
1
+ import { AppTypes, SdkFC, InsuranceTypes } from '@mychoice/mychoice-sdk-components';
2
+ export interface AppTitlePropsInterface {
3
+ appType: AppTypes;
4
+ insuranceType: InsuranceTypes;
5
+ }
6
+ export declare const AppTitle: SdkFC<AppTitlePropsInterface>;
@@ -0,0 +1,5 @@
1
+ declare const MetaFields: ({ title, desc }: {
2
+ title: string;
3
+ desc: string;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ export default MetaFields;
@@ -0,0 +1 @@
1
+ export { AppTitle } from './AppTitle';
@@ -1,2 +1,2 @@
1
1
  import { InsuranceTypes } from '@mychoice/mychoice-sdk-components';
2
- export declare const getInsuranceType: () => InsuranceTypes.Car | InsuranceTypes.Home;
2
+ export declare const getInsuranceType: () => InsuranceTypes;
@@ -1,3 +1,2 @@
1
1
  export { AppWrapper } from './AppWrapper';
2
2
  export { StoryAppWrapper } from './StoryAppWrapper';
3
- export * from './helper';
@@ -1,2 +1,16 @@
1
1
  import { SelectOptionInterface } from '@mychoice/mychoice-sdk-components';
2
+ import { ProvinceHookInterface } from '@mychoice/mychoice-sdk-store';
2
3
  export declare const getVehicleYearRange: () => SelectOptionInterface[];
4
+ export declare const getDynamicLicenceBoxProps: ({ isAlbertaProvince, isOntarioProvince, isNewfoundlandProvince, isNovaScotiaProvince, isNewBrunswickProvince, }: ProvinceHookInterface) => {
5
+ placeholder: string;
6
+ maxLength: number;
7
+ manipulateInput: (value: string) => string;
8
+ } | {
9
+ placeholder: string;
10
+ maxLength: number;
11
+ manipulateInput?: undefined;
12
+ } | {
13
+ placeholder?: undefined;
14
+ maxLength?: undefined;
15
+ manipulateInput?: undefined;
16
+ };
@@ -0,0 +1,5 @@
1
+ import { SelectOptionGroupInterface } from '@mychoice/mychoice-sdk-components';
2
+ /**
3
+ * Filter out G1/G2 options from "Serious" section for trafficTicketsGroupOptions
4
+ */
5
+ export declare const getTrafficTicketsGroupOptionsWithoutG1G2: () => SelectOptionGroupInterface[];
@@ -2,5 +2,4 @@ export * from './vehicle';
2
2
  export * from './driver';
3
3
  export * from './discount';
4
4
  export * from './quote';
5
- export * from './helpers';
6
5
  export * from './interfaces';
@@ -1,4 +1,4 @@
1
- export declare type FormTabProps = {
1
+ export type FormTabProps = {
2
2
  createItem?: () => void;
3
3
  readOnly?: boolean;
4
4
  };
@@ -1,2 +1,2 @@
1
1
  import { SdkFC } from '@mychoice/mychoice-sdk-components';
2
- export declare const PageQuote: SdkFC;
2
+ export declare const PageCarQuote: SdkFC;
@@ -1 +1 @@
1
- export { PageQuote } from './PageQuote';
1
+ export { PageCarQuote } from './PageQuote';
@@ -1,6 +1,6 @@
1
1
  import { SelectOptionInterface } from '@mychoice/mychoice-sdk-components';
2
- export declare const getSelectedOption: (options: SelectOptionInterface[], value: string | number | boolean | undefined | null) => import("@mychoice/mychoice-sdk-components").InputValueType;
3
- export declare const getErrorMessage: (value: number | string, inValidation?: boolean, message?: string) => string;
2
+ export declare const getSelectedOption: (options: SelectOptionInterface[], val: string | number | boolean | undefined | null) => import("@mychoice/mychoice-sdk-components").InputValueType;
3
+ export declare const getErrorMessage: (value: number | string | boolean | null | undefined, inValidation?: boolean, message?: string) => string;
4
4
  export declare const getDateErrorMessage: (values: string[], inValidation?: boolean) => "" | "This field is required." | "These fields are required.";
5
5
  export declare const formatPhoneObject: (phone: string) => {
6
6
  number: string;
@@ -2,3 +2,4 @@ export * from './address';
2
2
  export * from './applicant';
3
3
  export * from './dwelling';
4
4
  export * from './discount';
5
+ export * from './quote';
@@ -0,0 +1,2 @@
1
+ import { SdkFC } from '@mychoice/mychoice-sdk-components';
2
+ export declare const PageHomeQuote: SdkFC;
@@ -0,0 +1 @@
1
+ export { PageHomeQuote } from './PageQuote';
@@ -0,0 +1,2 @@
1
+ import { SdkFC } from '@mychoice/mychoice-sdk-components';
2
+ export declare const SectionQuoteEdit: SdkFC;
@@ -0,0 +1,2 @@
1
+ import { SdkFC } from '@mychoice/mychoice-sdk-components';
2
+ export declare const SectionQuoteRecalc: SdkFC;
@@ -0,0 +1,2 @@
1
+ import { SdkFC } from '@mychoice/mychoice-sdk-components';
2
+ export declare const SplashScreen: SdkFC;
@@ -0,0 +1,3 @@
1
+ import { SdkFC } from '@mychoice/mychoice-sdk-components';
2
+ export declare const BlockEndorsements: SdkFC;
3
+ export default BlockEndorsements;
@@ -0,0 +1,2 @@
1
+ export { SectionQuoteEdit } from './SectionQuoteEdit';
2
+ export { SectionQuoteRecalc } from './SectionQuoteRecalc';
@@ -1,3 +1,4 @@
1
1
  export * from './car';
2
2
  export * from './home';
3
+ export * from './life';
3
4
  export * from './helpers';
@@ -0,0 +1 @@
1
+ export * from './pages';
@@ -0,0 +1,2 @@
1
+ import { SdkFC } from '@mychoice/mychoice-sdk-components';
2
+ export declare const PageLifeApplicant: SdkFC;
@@ -0,0 +1 @@
1
+ export { PageLifeApplicant } from './PageApplicant';
@@ -0,0 +1,2 @@
1
+ import { SdkFC } from '@mychoice/mychoice-sdk-components';
2
+ export declare const SectionApplicant: SdkFC;
@@ -0,0 +1,2 @@
1
+ import { SdkFC } from '@mychoice/mychoice-sdk-components';
2
+ export declare const BlockNextPageInfo: SdkFC;
@@ -0,0 +1,3 @@
1
+ import { SdkFC } from '@mychoice/mychoice-sdk-components';
2
+ import { SubmitBlockInterface } from './interfaces';
3
+ export declare const BlockSubmit: SdkFC<SubmitBlockInterface>;
@@ -0,0 +1,2 @@
1
+ export { BlockNextPageInfo } from './BlockNextPageInfo';
2
+ export { BlockSubmit } from './BlockSubmit';
@@ -0,0 +1,7 @@
1
+ import { SizeTypes } from '@mychoice/mychoice-sdk-components';
2
+ export interface SubmitBlockInterface {
3
+ className?: string;
4
+ label?: string;
5
+ buttonSize?: SizeTypes;
6
+ isRecalc?: boolean;
7
+ }
@@ -0,0 +1 @@
1
+ export { SectionApplicant } from './SectionApplicant';
@@ -0,0 +1,2 @@
1
+ import { SdkFC } from '@mychoice/mychoice-sdk-components';
2
+ export declare const PageCoverage: SdkFC;
@@ -0,0 +1 @@
1
+ export { PageCoverage } from './PageCoverage';
@@ -0,0 +1,2 @@
1
+ import { SdkFC } from '@mychoice/mychoice-sdk-components';
2
+ export declare const SectionCoverage: SdkFC;
@@ -0,0 +1 @@
1
+ export { SectionCoverage } from './SectionCoverage';
@@ -0,0 +1,4 @@
1
+ export declare const getInsuranceYearsOptions: (maxValue: string) => {
2
+ value: string;
3
+ name: string;
4
+ }[];
@@ -0,0 +1,3 @@
1
+ export * from './coverage';
2
+ export * from './applicant';
3
+ export * from './quote';
@@ -0,0 +1,2 @@
1
+ import { SdkFC } from '@mychoice/mychoice-sdk-components';
2
+ export declare const PageLifeQuote: SdkFC;
@@ -0,0 +1 @@
1
+ export { PageLifeQuote } from './PageQuote';
@@ -0,0 +1,2 @@
1
+ import { SdkFC } from '@mychoice/mychoice-sdk-components';
2
+ export declare const SectionQuoteEdit: SdkFC;
@@ -0,0 +1,2 @@
1
+ import { SdkFC } from '@mychoice/mychoice-sdk-components';
2
+ export declare const SectionQuoteRecalc: SdkFC;
@@ -0,0 +1,2 @@
1
+ import { SdkFC } from '@mychoice/mychoice-sdk-components';
2
+ export declare const SplashScreen: SdkFC;
@@ -0,0 +1,3 @@
1
+ import { SdkFC } from '@mychoice/mychoice-sdk-components';
2
+ export declare const BlockEndorsements: SdkFC;
3
+ export default BlockEndorsements;
@@ -0,0 +1 @@
1
+ export { SectionQuoteEdit } from './SectionQuoteEdit';
@@ -1,6 +1,6 @@
1
1
  import { SdkElement } from '@mychoice/mychoice-sdk-components';
2
2
  import { LabelFormBoxProps } from '../LabelFormBox/interface';
3
- export declare type ContainerProps = LabelFormBoxProps & {
3
+ export type ContainerProps = LabelFormBoxProps & {
4
4
  errorMessage?: string;
5
5
  hintMessage?: string;
6
6
  children?: SdkElement;
@@ -1,6 +1,6 @@
1
1
  import { DateTypes, DefaultInputProps, OnChangeEventInterface, SelectOptionGroupInterface, SelectOptionInterface } from '@mychoice/mychoice-sdk-components';
2
2
  import { LabelFormBoxProps } from '../LabelFormBox/interface';
3
- export declare type SelectFormBoxProps = DefaultInputProps & LabelFormBoxProps & {
3
+ export type SelectFormBoxProps = DefaultInputProps & LabelFormBoxProps & {
4
4
  name: string;
5
5
  title: string;
6
6
  options?: SelectOptionInterface[];
@@ -10,7 +10,7 @@ export declare type SelectFormBoxProps = DefaultInputProps & LabelFormBoxProps &
10
10
  hintMessage?: string;
11
11
  autoSelectIfValueIsOutOfOptions?: boolean;
12
12
  };
13
- export declare type DateSelectFormBoxProps = SelectFormBoxProps & {
13
+ export type DateSelectFormBoxProps = SelectFormBoxProps & {
14
14
  onDateChange: (dateType: DateTypes) => (option: OnChangeEventInterface) => void;
15
15
  isDay?: boolean;
16
16
  isMonth?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { DefaultInputProps, InputTypes, OnChangeEventInterface, ValidationStatusTypes } from '@mychoice/mychoice-sdk-components';
2
- export declare type InputFormBoxProps = DefaultInputProps & {
2
+ export type InputFormBoxProps = DefaultInputProps & {
3
3
  name: string;
4
4
  title: string;
5
5
  subTitle?: string;
@@ -8,7 +8,8 @@ export declare type InputFormBoxProps = DefaultInputProps & {
8
8
  errorMessage?: string;
9
9
  hintMessage?: string;
10
10
  type?: InputTypes;
11
+ manipulateInput?: (value: string) => string;
11
12
  };
12
- export declare type InputFormEmailBoxProps = InputFormBoxProps & {
13
+ export type InputFormEmailBoxProps = InputFormBoxProps & {
13
14
  validationStatus?: ValidationStatusTypes;
14
15
  };
@@ -1,8 +1,9 @@
1
- export declare type LabelFormBoxProps = {
1
+ import { SdkElement } from '@mychoice/mychoice-sdk-components';
2
+ export type LabelFormBoxProps = {
2
3
  className?: string;
3
4
  title?: string;
4
5
  subTitle?: string;
5
- description?: string;
6
+ description?: string | SdkElement;
6
7
  name?: string;
7
8
  isRemovable?: boolean;
8
9
  onIconClick?: () => void;
@@ -1,6 +1,6 @@
1
1
  import { DefaultInputProps, OnChangeEventInterface, SelectOptionGroupInterface, SelectOptionInterface } from '@mychoice/mychoice-sdk-components';
2
2
  import { LabelFormBoxProps } from '../LabelFormBox/interface';
3
- export declare type SelectFormBoxProps = DefaultInputProps & LabelFormBoxProps & {
3
+ export type SelectFormBoxProps = DefaultInputProps & LabelFormBoxProps & {
4
4
  name: string;
5
5
  title: string;
6
6
  options?: SelectOptionInterface[];
@@ -1,6 +1,6 @@
1
1
  import { SelectOptionInterface, OnChangeEventInterface } from '@mychoice/mychoice-sdk-components';
2
2
  import { LabelFormBoxProps } from '../LabelFormBox/interface';
3
- export declare type SwitchButtonBoxProps = LabelFormBoxProps & {
3
+ export type SwitchButtonBoxProps = LabelFormBoxProps & {
4
4
  name: string;
5
5
  defaultValue: string;
6
6
  items: SelectOptionInterface[];
@@ -1,8 +1,8 @@
1
1
  import { AppTypes } from '@mychoice/mychoice-sdk-components';
2
- export declare type HeaderLogoProps = {
2
+ export type HeaderLogoProps = {
3
3
  className?: string;
4
4
  };
5
- export declare type HeaderTheBigProps = HeaderLogoProps & {
5
+ export type HeaderTheBigProps = HeaderLogoProps & {
6
6
  textBack?: string;
7
7
  };
8
- export declare type AppNameTypes = AppTypes.MyChoice | AppTypes.Partner | AppTypes.TheBig;
8
+ export type AppNameTypes = AppTypes.MyChoice | AppTypes.Partner | AppTypes.TheBig;
@@ -0,0 +1,2 @@
1
+ import { SdkFC } from '@mychoice/mychoice-sdk-components';
2
+ export declare const ModalAddress: SdkFC;
@@ -0,0 +1 @@
1
+ export { ModalAddress } from './ModalAddress';
@@ -1,3 +1,2 @@
1
1
  import { SdkFC } from '@mychoice/mychoice-sdk-components';
2
- import { InputPostalProps } from '../interfaces';
3
- export declare const ModalPostal: SdkFC<InputPostalProps>;
2
+ export declare const ModalPostal: SdkFC;
@@ -1,5 +1,6 @@
1
1
  export { ModalConfirm } from './ModalConfirm';
2
2
  export { ModalMessage } from './ModalMessage';
3
3
  export { ModalPostal } from './ModalPostal';
4
+ export { ModalAddress } from './ModalAddress';
4
5
  export { ModalFinale } from './ModalFinale';
5
6
  export { ModalQuoteRequest } from './ModalQuoteRequest';
@@ -1,21 +1,21 @@
1
1
  import { OnChangeEventInterface } from '@mychoice/mychoice-sdk-components';
2
2
  import { FormEvent } from 'react';
3
- export declare type BaseModalProps = {
3
+ export type BaseModalProps = {
4
4
  title?: string;
5
5
  description?: string;
6
6
  };
7
- export declare type ConfirmModalTypes = BaseModalProps & {
7
+ export type ConfirmModalTypes = BaseModalProps & {
8
8
  cancelButtonLabel?: string;
9
9
  approveButtonLabel?: string;
10
10
  };
11
- export declare type MessageModalProps = BaseModalProps;
12
- export declare type InputPostalProps = BaseModalProps & {
11
+ export type MessageModalProps = BaseModalProps;
12
+ export type InputPostalProps = BaseModalProps & {
13
13
  defaultValue?: string;
14
14
  error?: string;
15
15
  onChange?: (option: OnChangeEventInterface) => void;
16
16
  onSubmit?: (event: FormEvent) => void;
17
17
  loading?: boolean;
18
18
  };
19
- export declare type QuoteRequestModalProps = BaseModalProps & {
19
+ export type QuoteRequestModalProps = BaseModalProps & {
20
20
  phoneNumber?: string;
21
21
  };
@@ -2,7 +2,7 @@ export interface NavigationTabInterface {
2
2
  name: string;
3
3
  index: number;
4
4
  }
5
- export declare type NavigationTabProps = {
5
+ export type NavigationTabProps = {
6
6
  className?: string;
7
7
  name: string;
8
8
  addButtonLabel: string;
@@ -1,5 +1,6 @@
1
1
  export interface ValidationStatInterface {
2
2
  isValid: boolean;
3
3
  validate: (isRedirect?: boolean) => boolean;
4
+ requestFn?: () => Promise<void>;
4
5
  index: number;
5
6
  }
@@ -1,17 +1,77 @@
1
- /// <reference types="react" />
2
1
  export declare const formSteps: {
3
- car: {
2
+ car: ({
4
3
  key: number;
5
4
  path: string;
6
5
  name: string;
7
6
  title: string;
7
+ mychoiceTitle: string;
8
8
  icon: import("react").ReactElement<any, any> | null;
9
- }[];
10
- home: {
9
+ } | {
11
10
  key: number;
12
11
  path: string;
13
12
  name: string;
14
13
  title: string;
15
14
  icon: import("react").ReactElement<any, any> | null;
16
- }[];
15
+ mychoiceTitle?: undefined;
16
+ })[];
17
+ home: ({
18
+ key: number;
19
+ path: string;
20
+ name: string;
21
+ title: string;
22
+ mychoiceTitle: string;
23
+ icon: import("react").ReactElement<any, any> | null;
24
+ } | {
25
+ key: number;
26
+ path: string;
27
+ name: string;
28
+ title: string;
29
+ icon: import("react").ReactElement<any, any> | null;
30
+ mychoiceTitle?: undefined;
31
+ })[];
32
+ condo: ({
33
+ key: number;
34
+ path: string;
35
+ name: string;
36
+ title: string;
37
+ mychoiceTitle: string;
38
+ icon: import("react").ReactElement<any, any> | null;
39
+ } | {
40
+ key: number;
41
+ path: string;
42
+ name: string;
43
+ title: string;
44
+ icon: import("react").ReactElement<any, any> | null;
45
+ mychoiceTitle?: undefined;
46
+ })[];
47
+ tenant: ({
48
+ key: number;
49
+ path: string;
50
+ name: string;
51
+ title: string;
52
+ mychoiceTitle: string;
53
+ icon: import("react").ReactElement<any, any> | null;
54
+ } | {
55
+ key: number;
56
+ path: string;
57
+ name: string;
58
+ title: string;
59
+ icon: import("react").ReactElement<any, any> | null;
60
+ mychoiceTitle?: undefined;
61
+ })[];
62
+ life: ({
63
+ key: number;
64
+ path: string;
65
+ name: string;
66
+ title: string;
67
+ mychoiceTitle: string;
68
+ icon: import("react").ReactElement<any, any> | null;
69
+ } | {
70
+ key: number;
71
+ path: string;
72
+ name: string;
73
+ title: string;
74
+ icon: import("react").ReactElement<any, any> | null;
75
+ mychoiceTitle?: undefined;
76
+ })[];
17
77
  };
@@ -1,18 +1,20 @@
1
1
  import { NavigationItemInterface, ValidationHookInterface } from '@mychoice/mychoice-sdk-components';
2
- export declare type StepsProps = {
2
+ export type StepsProps = {
3
3
  partnerId?: string;
4
4
  className?: string;
5
5
  isMobile?: boolean;
6
6
  activeIndex?: number;
7
7
  formSteps: NavigationItemInterface[];
8
8
  validationHooks: ValidationHookInterface[];
9
+ estimatedTime?: number;
10
+ propertyIsCompleted?: boolean;
9
11
  };
10
- export declare type PostalCodeDataProps = {
12
+ export type PostalCodeDataProps = {
11
13
  className?: string;
12
14
  title?: string;
13
15
  postalCode?: string;
14
16
  };
15
- export declare type ButtonBoxProps = {
17
+ export type ButtonBoxProps = {
16
18
  isMobile?: boolean;
17
19
  activeIndex?: number;
18
20
  onBackClick?: () => void;
@@ -20,9 +22,12 @@ export declare type ButtonBoxProps = {
20
22
  clearForm?: () => void;
21
23
  formSteps: NavigationItemInterface[];
22
24
  validationHooks: ValidationHookInterface[];
25
+ propertyIsCompleted?: boolean;
23
26
  };
24
- export declare type NavigationTopProps = PostalCodeDataProps & ButtonBoxProps;
25
- export declare type NavigationBottomProps = {
27
+ export type NavigationTopProps = PostalCodeDataProps & ButtonBoxProps & {
28
+ estimatedTime?: number;
29
+ };
30
+ export type NavigationBottomProps = {
26
31
  className?: string;
27
32
  activeIndex?: number;
28
33
  createItem?: () => void;
@@ -31,4 +36,5 @@ export declare type NavigationBottomProps = {
31
36
  formSteps: NavigationItemInterface[];
32
37
  maxItemCount?: number;
33
38
  itemCount?: number;
39
+ specialCallback?: () => void;
34
40
  };
@@ -1,6 +1,6 @@
1
1
  import { OfferDetailInfoProps, OfferDetailTitleProps, OperationHoursInfoProps, PriceInterface } from '@mychoice/mychoice-sdk-components';
2
2
  import { PhoneObjectInterface } from '../../../insurances';
3
- export declare type OfferSectionProps = {
3
+ export type OfferSectionProps = {
4
4
  phoneNumber?: PhoneObjectInterface;
5
5
  offerCompany?: OfferDetailTitleProps & OfferDetailInfoProps;
6
6
  brokerCompany?: OfferDetailTitleProps & OfferDetailInfoProps;
@@ -8,4 +8,5 @@ export declare type OfferSectionProps = {
8
8
  isBestOffer?: boolean;
9
9
  operationHours?: OperationHoursInfoProps;
10
10
  redirectUrl?: string;
11
+ fulfillmentUrl?: string;
11
12
  };