@mychoice/mychoice-sdk-components 2.1.67 → 2.1.69

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.
@@ -0,0 +1,3 @@
1
+ import { SdkFC } from '../../../interfaces';
2
+ import { OfferDetailProps } from '../interfaces';
3
+ export declare const OfferCoverage: SdkFC<OfferDetailProps>;
@@ -0,0 +1 @@
1
+ export { OfferCoverage } from './OfferCoverage';
@@ -0,0 +1,3 @@
1
+ import { SdkFC } from '../../../interfaces';
2
+ import { VehicleOfferCoverageProps } from '../interfaces';
3
+ export declare const VehicleOfferCoverage: SdkFC<VehicleOfferCoverageProps>;
@@ -0,0 +1 @@
1
+ export { VehicleOfferCoverage } from './VehicleOfferCoverage';
@@ -33,7 +33,7 @@ export type OperationHoursInfoProps = {
33
33
  };
34
34
  export type QuoteEditProps = {
35
35
  className?: string;
36
- editClick?: ((index: number) => () => void);
36
+ editClick?: (index: number) => () => void;
37
37
  title?: string;
38
38
  items?: string[][];
39
39
  link?: string;
@@ -31,6 +31,18 @@ export declare const liabilityOptions: {
31
31
  name: string;
32
32
  value: number;
33
33
  }[];
34
+ export declare const lossOfUseOptions: {
35
+ name: string;
36
+ value: number;
37
+ }[];
38
+ export declare const liabilityForDamageOptions: {
39
+ name: string;
40
+ value: number;
41
+ }[];
42
+ export declare const limitedWaiverOfDepreciationOptions: {
43
+ name: string;
44
+ value: number;
45
+ }[];
34
46
  export declare const trafficTicketsGroupOptions: {
35
47
  label: string;
36
48
  options: {
@@ -49,5 +49,8 @@ export declare enum VehiclePrimaryUseTypes {
49
49
  export declare enum CoverageTypes {
50
50
  Comprehensive = "comprehensive",
51
51
  Collision = "collision",
52
- Liability = "liability"
52
+ Liability = "liability",
53
+ LossOfUse = "lossofuse",
54
+ LiabilityForDamage = "liabilityfordamage",
55
+ LimitedWaiverOfDepreciation = "limitedwaiverofdepreciation"
53
56
  }
@@ -1,4 +1,5 @@
1
1
  export declare enum SizeTypes {
2
+ VerySmall = "very-small",
2
3
  Small = "small",
3
4
  Medium = "medium",
4
5
  Large = "large"
package/dist/cjs/index.js CHANGED
@@ -37,18 +37,25 @@ IconDropdownArrow.defaultProps = {
37
37
  };
38
38
 
39
39
  const numberWithCommas$1 = (value) => value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
40
- const dailyKilometresRange = [
41
- 1, 2, 5, 7, 10, 15, 20, 30, 40, 50, 60, 70, 80, 90, 100, 150, 200,
42
- ];
40
+ const dailyKilometresRange = [1, 2, 5, 7, 10, 15, 20, 30, 40, 50, 60, 70, 80, 90, 100, 150, 200];
43
41
  const dailyKilometresRangeForBusiness = [
44
42
  1, 2, 5, 7, 10, 15, 20, 30, 40, 50, 60, 70, 80, 90, 100, 150, 200, 250, 300, 350, 400,
45
43
  ];
46
44
  const yearlyKilometresRange = [
47
45
  500, 1000, 2000, 3000, 5000, 8000, 10000, 15000, 20000, 30000, 50000, 60000, 80000, 100000,
48
46
  ];
49
- const carCondition = [{ value: 'N', name: 'New' }, { value: 'U', name: 'Used' }];
50
- const carStatus = [{ value: true, name: 'Leased' }, { value: false, name: 'Owned' }];
51
- const carWinterTiresCheck = [{ value: true, name: 'Yes' }, { value: false, name: 'No' }];
47
+ const carCondition = [
48
+ { value: 'N', name: 'New' },
49
+ { value: 'U', name: 'Used' },
50
+ ];
51
+ const carStatus = [
52
+ { value: true, name: 'Leased' },
53
+ { value: false, name: 'Owned' },
54
+ ];
55
+ const carWinterTiresCheck = [
56
+ { value: true, name: 'Yes' },
57
+ { value: false, name: 'No' },
58
+ ];
52
59
  const carKeepPlace = [
53
60
  { name: 'Private Garage', value: 'garage' },
54
61
  { name: 'Private Driveway', value: 'driveway' },
@@ -67,7 +74,10 @@ const collisionCoverage = [
67
74
  { value: true, name: 'Yes' },
68
75
  { value: false, name: 'No' },
69
76
  ];
70
- const carUsagePurpose = [{ value: 'personal', name: 'Personal' }, { value: 'business', name: 'Business' }];
77
+ const carUsagePurpose = [
78
+ { value: 'personal', name: 'Personal' },
79
+ { value: 'business', name: 'Business' },
80
+ ];
71
81
  const firstDriveDistanceList = dailyKilometresRange.map((item) => {
72
82
  if (item === 1) {
73
83
  return { value: `${item}`, name: `${item}KM or Less` };
@@ -80,7 +90,10 @@ const dailyDriveBusinessDistanceList = dailyKilometresRangeForBusiness.map((item
80
90
  }
81
91
  return { value: `${item}`, name: `${item}KM` };
82
92
  });
83
- const yearlyDriveDistanceList = yearlyKilometresRange.map((item) => ({ value: `${item}`, name: `${numberWithCommas$1(item)}KM` }));
93
+ const yearlyDriveDistanceList = yearlyKilometresRange.map((item) => ({
94
+ value: `${item}`,
95
+ name: `${numberWithCommas$1(item)}KM`,
96
+ }));
84
97
  exports.VehicleConditionTypes = void 0;
85
98
  (function (VehicleConditionTypes) {
86
99
  VehicleConditionTypes["New"] = "N";
@@ -96,6 +109,9 @@ exports.CoverageTypes = void 0;
96
109
  CoverageTypes["Comprehensive"] = "comprehensive";
97
110
  CoverageTypes["Collision"] = "collision";
98
111
  CoverageTypes["Liability"] = "liability";
112
+ CoverageTypes["LossOfUse"] = "lossofuse";
113
+ CoverageTypes["LiabilityForDamage"] = "liabilityfordamage";
114
+ CoverageTypes["LimitedWaiverOfDepreciation"] = "limitedwaiverofdepreciation";
99
115
  })(exports.CoverageTypes || (exports.CoverageTypes = {}));
100
116
 
101
117
  exports.DriverLicenceTypes = void 0;
@@ -122,8 +138,14 @@ exports.DriverPriorityTypes = void 0;
122
138
  DriverPriorityTypes["Occ"] = "Occ";
123
139
  })(exports.DriverPriorityTypes || (exports.DriverPriorityTypes = {}));
124
140
 
125
- const maritalStatusOptions = [{ name: 'Single', value: 'S' }, { name: 'Married/Common Law', value: 'M' }];
126
- const occupationOptions = [{ name: 'Employed', value: 998 }, { name: 'Unemployed', value: 800 }];
141
+ const maritalStatusOptions = [
142
+ { name: 'Single', value: 'S' },
143
+ { name: 'Married/Common Law', value: 'M' },
144
+ ];
145
+ const occupationOptions = [
146
+ { name: 'Employed', value: 998 },
147
+ { name: 'Unemployed', value: 800 },
148
+ ];
127
149
  const genderOptions = [
128
150
  { value: exports.GenderTypes.Male, name: 'Male' },
129
151
  { value: exports.GenderTypes.Female, name: 'Female' },
@@ -167,6 +189,21 @@ const liabilityOptions = [
167
189
  { name: '$1,000,000', value: 1000000 },
168
190
  { name: '$2,000,000', value: 2000000 },
169
191
  ];
192
+ const lossOfUseOptions = [
193
+ { name: 'No Coverage', value: 0 },
194
+ { name: '$1,500', value: 1500 },
195
+ { name: '$2,000', value: 2000 },
196
+ { name: '$2,500', value: 2500 },
197
+ ];
198
+ const liabilityForDamageOptions = [
199
+ { name: 'No Coverage', value: 0 },
200
+ { name: '$50,000', value: 50000 },
201
+ { name: '$100,000', value: 100000 },
202
+ ];
203
+ const limitedWaiverOfDepreciationOptions = [
204
+ { name: 'No Coverage', value: 0 },
205
+ { name: 'Full Coverage', value: 1 },
206
+ ];
170
207
  const trafficTicketsGroupOptions = [
171
208
  {
172
209
  label: 'Common',
@@ -614,6 +651,7 @@ exports.ValidationStatusTypes = void 0;
614
651
 
615
652
  exports.SizeTypes = void 0;
616
653
  (function (SizeTypes) {
654
+ SizeTypes["VerySmall"] = "very-small";
617
655
  SizeTypes["Small"] = "small";
618
656
  SizeTypes["Medium"] = "medium";
619
657
  SizeTypes["Large"] = "large";
@@ -1822,6 +1860,7 @@ exports.insuranceCancellationReasonOptions = insuranceCancellationReasonOptions;
1822
1860
  exports.insuredYearsOptions = insuredYearsOptions;
1823
1861
  exports.isDateValid = isDateValid;
1824
1862
  exports.isValueInOptions = isValueInOptions;
1863
+ exports.liabilityForDamageOptions = liabilityForDamageOptions;
1825
1864
  exports.liabilityOptions = liabilityOptions;
1826
1865
  exports.licenceSuspensionsReasonOptions = licenceSuspensionsReasonOptions;
1827
1866
  exports.lifeCoverageOptions = lifeCoverageOptions;
@@ -1829,6 +1868,8 @@ exports.lifeInsuranceOntarioTypeOptions = lifeInsuranceOntarioTypeOptions;
1829
1868
  exports.lifeInsuranceTypeOptions = lifeInsuranceTypeOptions;
1830
1869
  exports.lifeProvinceOptions = lifeProvinceOptions;
1831
1870
  exports.lifeProvinceOptionsMC = lifeProvinceOptionsMC;
1871
+ exports.limitedWaiverOfDepreciationOptions = limitedWaiverOfDepreciationOptions;
1872
+ exports.lossOfUseOptions = lossOfUseOptions;
1832
1873
  exports.maritalStatusOptions = maritalStatusOptions;
1833
1874
  exports.numberWithCommas = numberWithCommas;
1834
1875
  exports.occupationOptions = occupationOptions;