@mychoice/mychoice-sdk-components 1.0.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/README.md +11 -0
- package/dist/cjs/components/buttons/BattonTab/BattonTab.d.ts +3 -0
- package/dist/cjs/components/buttons/BattonTab/BattonTabMobile.d.ts +3 -0
- package/dist/cjs/components/buttons/BattonTab/index.d.ts +2 -0
- package/dist/cjs/components/buttons/ButtonArrow/ButtonArrow.d.ts +3 -0
- package/dist/cjs/components/buttons/ButtonArrow/index.d.ts +1 -0
- package/dist/cjs/components/buttons/ButtonBase/ButtonBase.d.ts +3 -0
- package/dist/cjs/components/buttons/ButtonBase/index.d.ts +1 -0
- package/dist/cjs/components/buttons/ButtonForm/ButtonForm.d.ts +3 -0
- package/dist/cjs/components/buttons/ButtonForm/index.d.ts +1 -0
- package/dist/cjs/components/buttons/ButtonMenu/ButtonMenu.d.ts +3 -0
- package/dist/cjs/components/buttons/ButtonMenu/index.d.ts +1 -0
- package/dist/cjs/components/buttons/ButtonTabArrow/ButtonTabArrow.d.ts +3 -0
- package/dist/cjs/components/buttons/ButtonTabArrow/index.d.ts +1 -0
- package/dist/cjs/components/buttons/index.d.ts +7 -0
- package/dist/cjs/components/buttons/interfaces.d.ts +39 -0
- package/dist/cjs/components/headers/HeaderDropDown/HeaderDropDown.d.ts +3 -0
- package/dist/cjs/components/headers/HeaderDropDown/index.d.ts +1 -0
- package/dist/cjs/components/headers/HeaderNavGroup/HeaderNavGroup.d.ts +3 -0
- package/dist/cjs/components/headers/HeaderNavGroup/index.d.ts +1 -0
- package/dist/cjs/components/headers/index.d.ts +3 -0
- package/dist/cjs/components/headers/interfaces.d.ts +12 -0
- package/dist/cjs/components/icons/IconChecked.d.ts +2 -0
- package/dist/cjs/components/icons/IconDecline.d.ts +3 -0
- package/dist/cjs/components/icons/IconDelete.d.ts +3 -0
- package/dist/cjs/components/icons/IconSuccess.d.ts +3 -0
- package/dist/cjs/components/icons/IconTooltip.d.ts +3 -0
- package/dist/cjs/components/icons/arrows/IconArrow.d.ts +3 -0
- package/dist/cjs/components/icons/arrows/IconDropdownArrow.d.ts +3 -0
- package/dist/cjs/components/icons/arrows/IconTabArrow.d.ts +3 -0
- package/dist/cjs/components/icons/arrows/index.d.ts +3 -0
- package/dist/cjs/components/icons/index.d.ts +8 -0
- package/dist/cjs/components/icons/insurances/car/NavigationCar.d.ts +3 -0
- package/dist/cjs/components/icons/insurances/car/index.d.ts +1 -0
- package/dist/cjs/components/icons/insurances/home/NavigationAddress.d.ts +3 -0
- package/dist/cjs/components/icons/insurances/home/NavigationProperty.d.ts +3 -0
- package/dist/cjs/components/icons/insurances/home/index.d.ts +2 -0
- package/dist/cjs/components/icons/insurances/index.d.ts +3 -0
- package/dist/cjs/components/icons/insurances/shared/NavigationBase.d.ts +3 -0
- package/dist/cjs/components/icons/insurances/shared/NavigationDiscount.d.ts +3 -0
- package/dist/cjs/components/icons/insurances/shared/NavigationPerson.d.ts +3 -0
- package/dist/cjs/components/icons/insurances/shared/NavigationQuotes.d.ts +3 -0
- package/dist/cjs/components/icons/insurances/shared/index.d.ts +4 -0
- package/dist/cjs/components/icons/interfaces.d.ts +14 -0
- package/dist/cjs/components/icons/loaders/IconLoaderPrimary.d.ts +3 -0
- package/dist/cjs/components/icons/loaders/IconLoaderSecondary.d.ts +2 -0
- package/dist/cjs/components/icons/loaders/IconLoaderVideo.d.ts +5 -0
- package/dist/cjs/components/icons/loaders/index.d.ts +2 -0
- package/dist/cjs/components/index.d.ts +10 -0
- package/dist/cjs/components/inputs/CheckboxForm/CheckboxForm.d.ts +3 -0
- package/dist/cjs/components/inputs/CheckboxForm/index.d.ts +1 -0
- package/dist/cjs/components/inputs/InputForm/InputForm.d.ts +3 -0
- package/dist/cjs/components/inputs/InputForm/index.d.ts +1 -0
- package/dist/cjs/components/inputs/InputFormEmail/InputFormEmail.d.ts +3 -0
- package/dist/cjs/components/inputs/InputFormEmail/index.d.ts +1 -0
- package/dist/cjs/components/inputs/InputFormLicence/InputFormLicence.d.ts +3 -0
- package/dist/cjs/components/inputs/InputFormLicence/index.d.ts +1 -0
- package/dist/cjs/components/inputs/InputFormPhone/InputFormPhone.d.ts +3 -0
- package/dist/cjs/components/inputs/InputFormPhone/index.d.ts +1 -0
- package/dist/cjs/components/inputs/index.d.ts +6 -0
- package/dist/cjs/components/inputs/interfaces.d.ts +19 -0
- package/dist/cjs/components/messages/InfoMessage/InfoMessage.d.ts +3 -0
- package/dist/cjs/components/messages/InfoMessage/index.d.ts +1 -0
- package/dist/cjs/components/messages/index.d.ts +1 -0
- package/dist/cjs/components/messages/interfaces.d.ts +6 -0
- package/dist/cjs/components/navigations/HeaderNavLink/HeaderNavLink.d.ts +1 -0
- package/dist/cjs/components/navigations/HeaderNavLink/index.d.ts +1 -0
- package/dist/cjs/components/navigations/Step/Step.d.ts +3 -0
- package/dist/cjs/components/navigations/Step/index.d.ts +1 -0
- package/dist/cjs/components/navigations/index.d.ts +3 -0
- package/dist/cjs/components/navigations/interfaces.d.ts +25 -0
- package/dist/cjs/components/quotes/OfferDetail/OfferDetail.d.ts +3 -0
- package/dist/cjs/components/quotes/OfferDetail/OfferDetailTitle.d.ts +3 -0
- package/dist/cjs/components/quotes/OfferDetail/OperationHoursInfo.d.ts +3 -0
- package/dist/cjs/components/quotes/OfferDetail/index.d.ts +3 -0
- package/dist/cjs/components/quotes/OfferHeader/OfferHeader.d.ts +3 -0
- package/dist/cjs/components/quotes/OfferHeader/index.d.ts +1 -0
- package/dist/cjs/components/quotes/OfferPrice/OfferPrice.d.ts +3 -0
- package/dist/cjs/components/quotes/OfferPrice/index.d.ts +1 -0
- package/dist/cjs/components/quotes/QuoteEdit/QuoteEdit.d.ts +3 -0
- package/dist/cjs/components/quotes/QuoteEdit/index.d.ts +1 -0
- package/dist/cjs/components/quotes/index.d.ts +5 -0
- package/dist/cjs/components/quotes/interfaces.d.ts +40 -0
- package/dist/cjs/components/selects/SelectForm/SelectForm.d.ts +3 -0
- package/dist/cjs/components/selects/SelectForm/index.d.ts +2 -0
- package/dist/cjs/components/selects/index.d.ts +1 -0
- package/dist/cjs/components/selects/interfaces.d.ts +9 -0
- package/dist/cjs/components/titles/TitleForm/TitleForm.d.ts +3 -0
- package/dist/cjs/components/titles/TitleForm/index.d.ts +1 -0
- package/dist/cjs/components/titles/index.d.ts +2 -0
- package/dist/cjs/components/titles/interfaces.d.ts +6 -0
- package/dist/cjs/components/tooltips/SdkTooltip/SdkTooltip.d.ts +3 -0
- package/dist/cjs/components/tooltips/SdkTooltip/index.d.ts +1 -0
- package/dist/cjs/components/tooltips/TooltipForm/TooltipForm.d.ts +3 -0
- package/dist/cjs/components/tooltips/TooltipForm/index.d.ts +1 -0
- package/dist/cjs/components/tooltips/index.d.ts +3 -0
- package/dist/cjs/components/tooltips/interfaces.d.ts +4 -0
- package/dist/cjs/constants/api.d.ts +46 -0
- package/dist/cjs/constants/application.d.ts +12 -0
- package/dist/cjs/constants/device.d.ts +20 -0
- package/dist/cjs/constants/forms/index.d.ts +2 -0
- package/dist/cjs/constants/forms/licence.d.ts +5 -0
- package/dist/cjs/constants/forms/user.d.ts +13 -0
- package/dist/cjs/constants/index.d.ts +7 -0
- package/dist/cjs/constants/insurances/car/index.d.ts +1 -0
- package/dist/cjs/constants/insurances/car/pages/driver.d.ts +46 -0
- package/dist/cjs/constants/insurances/car/pages/index.d.ts +3 -0
- package/dist/cjs/constants/insurances/car/pages/quote.d.ts +1 -0
- package/dist/cjs/constants/insurances/car/pages/vehicle.d.ts +54 -0
- package/dist/cjs/constants/insurances/home/index.d.ts +1 -0
- package/dist/cjs/constants/insurances/home/pages/address.d.ts +13 -0
- package/dist/cjs/constants/insurances/home/pages/applicant.d.ts +16 -0
- package/dist/cjs/constants/insurances/home/pages/index.d.ts +3 -0
- package/dist/cjs/constants/insurances/home/pages/property.d.ts +34 -0
- package/dist/cjs/constants/insurances/index.d.ts +3 -0
- package/dist/cjs/constants/insurances/shared/index.d.ts +1 -0
- package/dist/cjs/constants/insurances/shared/options.d.ts +8 -0
- package/dist/cjs/constants/modals.d.ts +6 -0
- package/dist/cjs/constants/ui/buttons.d.ts +9 -0
- package/dist/cjs/constants/ui/colors.d.ts +15 -0
- package/dist/cjs/constants/ui/index.d.ts +6 -0
- package/dist/cjs/constants/ui/inputs.d.ts +12 -0
- package/dist/cjs/constants/ui/main.d.ts +5 -0
- package/dist/cjs/constants/ui/quotes.d.ts +4 -0
- package/dist/cjs/constants/ui/sizes.d.ts +22 -0
- package/dist/cjs/helpers/date-fns.d.ts +26 -0
- package/dist/cjs/helpers/index.d.ts +3 -0
- package/dist/cjs/helpers/lodash.d.ts +6 -0
- package/dist/cjs/helpers/main.d.ts +5 -0
- package/dist/cjs/hoox/index.d.ts +1 -0
- package/dist/cjs/hoox/useEffectOnce/index.d.ts +1 -0
- package/dist/cjs/hoox/useEffectOnce/useEffectOnce.d.ts +1 -0
- package/dist/cjs/index.d.ts +5 -0
- package/dist/cjs/index.js +1590 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/interfaces/general.d.ts +16 -0
- package/dist/cjs/interfaces/index.d.ts +2 -0
- package/dist/cjs/interfaces/inputs.d.ts +37 -0
- package/dist/cjs/utils/InputValueReducer/actions.d.ts +4 -0
- package/dist/cjs/utils/InputValueReducer/index.d.ts +3 -0
- package/dist/cjs/utils/InputValueReducer/inputValueReducer.d.ts +3 -0
- package/dist/cjs/utils/InputValueReducer/interfaces.d.ts +12 -0
- package/dist/esm/components/buttons/BattonTab/BattonTab.d.ts +3 -0
- package/dist/esm/components/buttons/BattonTab/BattonTabMobile.d.ts +3 -0
- package/dist/esm/components/buttons/BattonTab/index.d.ts +2 -0
- package/dist/esm/components/buttons/ButtonArrow/ButtonArrow.d.ts +3 -0
- package/dist/esm/components/buttons/ButtonArrow/index.d.ts +1 -0
- package/dist/esm/components/buttons/ButtonBase/ButtonBase.d.ts +3 -0
- package/dist/esm/components/buttons/ButtonBase/index.d.ts +1 -0
- package/dist/esm/components/buttons/ButtonForm/ButtonForm.d.ts +3 -0
- package/dist/esm/components/buttons/ButtonForm/index.d.ts +1 -0
- package/dist/esm/components/buttons/ButtonMenu/ButtonMenu.d.ts +3 -0
- package/dist/esm/components/buttons/ButtonMenu/index.d.ts +1 -0
- package/dist/esm/components/buttons/ButtonTabArrow/ButtonTabArrow.d.ts +3 -0
- package/dist/esm/components/buttons/ButtonTabArrow/index.d.ts +1 -0
- package/dist/esm/components/buttons/index.d.ts +7 -0
- package/dist/esm/components/buttons/interfaces.d.ts +39 -0
- package/dist/esm/components/headers/HeaderDropDown/HeaderDropDown.d.ts +3 -0
- package/dist/esm/components/headers/HeaderDropDown/index.d.ts +1 -0
- package/dist/esm/components/headers/HeaderNavGroup/HeaderNavGroup.d.ts +3 -0
- package/dist/esm/components/headers/HeaderNavGroup/index.d.ts +1 -0
- package/dist/esm/components/headers/index.d.ts +3 -0
- package/dist/esm/components/headers/interfaces.d.ts +12 -0
- package/dist/esm/components/icons/IconChecked.d.ts +2 -0
- package/dist/esm/components/icons/IconDecline.d.ts +3 -0
- package/dist/esm/components/icons/IconDelete.d.ts +3 -0
- package/dist/esm/components/icons/IconSuccess.d.ts +3 -0
- package/dist/esm/components/icons/IconTooltip.d.ts +3 -0
- package/dist/esm/components/icons/arrows/IconArrow.d.ts +3 -0
- package/dist/esm/components/icons/arrows/IconDropdownArrow.d.ts +3 -0
- package/dist/esm/components/icons/arrows/IconTabArrow.d.ts +3 -0
- package/dist/esm/components/icons/arrows/index.d.ts +3 -0
- package/dist/esm/components/icons/index.d.ts +8 -0
- package/dist/esm/components/icons/insurances/car/NavigationCar.d.ts +3 -0
- package/dist/esm/components/icons/insurances/car/index.d.ts +1 -0
- package/dist/esm/components/icons/insurances/home/NavigationAddress.d.ts +3 -0
- package/dist/esm/components/icons/insurances/home/NavigationProperty.d.ts +3 -0
- package/dist/esm/components/icons/insurances/home/index.d.ts +2 -0
- package/dist/esm/components/icons/insurances/index.d.ts +3 -0
- package/dist/esm/components/icons/insurances/shared/NavigationBase.d.ts +3 -0
- package/dist/esm/components/icons/insurances/shared/NavigationDiscount.d.ts +3 -0
- package/dist/esm/components/icons/insurances/shared/NavigationPerson.d.ts +3 -0
- package/dist/esm/components/icons/insurances/shared/NavigationQuotes.d.ts +3 -0
- package/dist/esm/components/icons/insurances/shared/index.d.ts +4 -0
- package/dist/esm/components/icons/interfaces.d.ts +14 -0
- package/dist/esm/components/icons/loaders/IconLoaderPrimary.d.ts +3 -0
- package/dist/esm/components/icons/loaders/IconLoaderSecondary.d.ts +2 -0
- package/dist/esm/components/icons/loaders/IconLoaderVideo.d.ts +5 -0
- package/dist/esm/components/icons/loaders/index.d.ts +2 -0
- package/dist/esm/components/index.d.ts +10 -0
- package/dist/esm/components/inputs/CheckboxForm/CheckboxForm.d.ts +3 -0
- package/dist/esm/components/inputs/CheckboxForm/index.d.ts +1 -0
- package/dist/esm/components/inputs/InputForm/InputForm.d.ts +3 -0
- package/dist/esm/components/inputs/InputForm/index.d.ts +1 -0
- package/dist/esm/components/inputs/InputFormEmail/InputFormEmail.d.ts +3 -0
- package/dist/esm/components/inputs/InputFormEmail/index.d.ts +1 -0
- package/dist/esm/components/inputs/InputFormLicence/InputFormLicence.d.ts +3 -0
- package/dist/esm/components/inputs/InputFormLicence/index.d.ts +1 -0
- package/dist/esm/components/inputs/InputFormPhone/InputFormPhone.d.ts +3 -0
- package/dist/esm/components/inputs/InputFormPhone/index.d.ts +1 -0
- package/dist/esm/components/inputs/index.d.ts +6 -0
- package/dist/esm/components/inputs/interfaces.d.ts +19 -0
- package/dist/esm/components/messages/InfoMessage/InfoMessage.d.ts +3 -0
- package/dist/esm/components/messages/InfoMessage/index.d.ts +1 -0
- package/dist/esm/components/messages/index.d.ts +1 -0
- package/dist/esm/components/messages/interfaces.d.ts +6 -0
- package/dist/esm/components/navigations/HeaderNavLink/HeaderNavLink.d.ts +1 -0
- package/dist/esm/components/navigations/HeaderNavLink/index.d.ts +1 -0
- package/dist/esm/components/navigations/Step/Step.d.ts +3 -0
- package/dist/esm/components/navigations/Step/index.d.ts +1 -0
- package/dist/esm/components/navigations/index.d.ts +3 -0
- package/dist/esm/components/navigations/interfaces.d.ts +25 -0
- package/dist/esm/components/quotes/OfferDetail/OfferDetail.d.ts +3 -0
- package/dist/esm/components/quotes/OfferDetail/OfferDetailTitle.d.ts +3 -0
- package/dist/esm/components/quotes/OfferDetail/OperationHoursInfo.d.ts +3 -0
- package/dist/esm/components/quotes/OfferDetail/index.d.ts +3 -0
- package/dist/esm/components/quotes/OfferHeader/OfferHeader.d.ts +3 -0
- package/dist/esm/components/quotes/OfferHeader/index.d.ts +1 -0
- package/dist/esm/components/quotes/OfferPrice/OfferPrice.d.ts +3 -0
- package/dist/esm/components/quotes/OfferPrice/index.d.ts +1 -0
- package/dist/esm/components/quotes/QuoteEdit/QuoteEdit.d.ts +3 -0
- package/dist/esm/components/quotes/QuoteEdit/index.d.ts +1 -0
- package/dist/esm/components/quotes/index.d.ts +5 -0
- package/dist/esm/components/quotes/interfaces.d.ts +40 -0
- package/dist/esm/components/selects/SelectForm/SelectForm.d.ts +3 -0
- package/dist/esm/components/selects/SelectForm/index.d.ts +2 -0
- package/dist/esm/components/selects/index.d.ts +1 -0
- package/dist/esm/components/selects/interfaces.d.ts +9 -0
- package/dist/esm/components/titles/TitleForm/TitleForm.d.ts +3 -0
- package/dist/esm/components/titles/TitleForm/index.d.ts +1 -0
- package/dist/esm/components/titles/index.d.ts +2 -0
- package/dist/esm/components/titles/interfaces.d.ts +6 -0
- package/dist/esm/components/tooltips/SdkTooltip/SdkTooltip.d.ts +3 -0
- package/dist/esm/components/tooltips/SdkTooltip/index.d.ts +1 -0
- package/dist/esm/components/tooltips/TooltipForm/TooltipForm.d.ts +3 -0
- package/dist/esm/components/tooltips/TooltipForm/index.d.ts +1 -0
- package/dist/esm/components/tooltips/index.d.ts +3 -0
- package/dist/esm/components/tooltips/interfaces.d.ts +4 -0
- package/dist/esm/constants/api.d.ts +46 -0
- package/dist/esm/constants/application.d.ts +12 -0
- package/dist/esm/constants/device.d.ts +20 -0
- package/dist/esm/constants/forms/index.d.ts +2 -0
- package/dist/esm/constants/forms/licence.d.ts +5 -0
- package/dist/esm/constants/forms/user.d.ts +13 -0
- package/dist/esm/constants/index.d.ts +7 -0
- package/dist/esm/constants/insurances/car/index.d.ts +1 -0
- package/dist/esm/constants/insurances/car/pages/driver.d.ts +46 -0
- package/dist/esm/constants/insurances/car/pages/index.d.ts +3 -0
- package/dist/esm/constants/insurances/car/pages/quote.d.ts +1 -0
- package/dist/esm/constants/insurances/car/pages/vehicle.d.ts +54 -0
- package/dist/esm/constants/insurances/home/index.d.ts +1 -0
- package/dist/esm/constants/insurances/home/pages/address.d.ts +13 -0
- package/dist/esm/constants/insurances/home/pages/applicant.d.ts +16 -0
- package/dist/esm/constants/insurances/home/pages/index.d.ts +3 -0
- package/dist/esm/constants/insurances/home/pages/property.d.ts +34 -0
- package/dist/esm/constants/insurances/index.d.ts +3 -0
- package/dist/esm/constants/insurances/shared/index.d.ts +1 -0
- package/dist/esm/constants/insurances/shared/options.d.ts +8 -0
- package/dist/esm/constants/modals.d.ts +6 -0
- package/dist/esm/constants/ui/buttons.d.ts +9 -0
- package/dist/esm/constants/ui/colors.d.ts +15 -0
- package/dist/esm/constants/ui/index.d.ts +6 -0
- package/dist/esm/constants/ui/inputs.d.ts +12 -0
- package/dist/esm/constants/ui/main.d.ts +5 -0
- package/dist/esm/constants/ui/quotes.d.ts +4 -0
- package/dist/esm/constants/ui/sizes.d.ts +22 -0
- package/dist/esm/helpers/date-fns.d.ts +26 -0
- package/dist/esm/helpers/index.d.ts +3 -0
- package/dist/esm/helpers/lodash.d.ts +6 -0
- package/dist/esm/helpers/main.d.ts +5 -0
- package/dist/esm/hoox/index.d.ts +1 -0
- package/dist/esm/hoox/useEffectOnce/index.d.ts +1 -0
- package/dist/esm/hoox/useEffectOnce/useEffectOnce.d.ts +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.js +1456 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/interfaces/general.d.ts +16 -0
- package/dist/esm/interfaces/index.d.ts +2 -0
- package/dist/esm/interfaces/inputs.d.ts +37 -0
- package/dist/esm/utils/InputValueReducer/actions.d.ts +4 -0
- package/dist/esm/utils/InputValueReducer/index.d.ts +3 -0
- package/dist/esm/utils/InputValueReducer/inputValueReducer.d.ts +3 -0
- package/dist/esm/utils/InputValueReducer/interfaces.d.ts +12 -0
- package/dist/index.d.ts +716 -0
- package/package.json +38 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,716 @@
|
|
|
1
|
+
import React, { ReactNode, ReactElement, MouseEventHandler } from 'react';
|
|
2
|
+
export { NavLink as HeaderNavLink } from 'react-router-dom';
|
|
3
|
+
|
|
4
|
+
interface SelectDateInterface {
|
|
5
|
+
day?: string;
|
|
6
|
+
month?: string;
|
|
7
|
+
year?: string;
|
|
8
|
+
}
|
|
9
|
+
interface StartEndDatesInterface {
|
|
10
|
+
start: Date;
|
|
11
|
+
end: Date;
|
|
12
|
+
}
|
|
13
|
+
interface SelectDateErrorInterface {
|
|
14
|
+
day?: boolean;
|
|
15
|
+
month?: boolean;
|
|
16
|
+
year?: boolean;
|
|
17
|
+
}
|
|
18
|
+
interface OnChangeEventInterface {
|
|
19
|
+
name: string;
|
|
20
|
+
value: InputValueType;
|
|
21
|
+
}
|
|
22
|
+
interface SelectOptionGroupInterface {
|
|
23
|
+
label: string;
|
|
24
|
+
options: SelectOptionInterface[];
|
|
25
|
+
}
|
|
26
|
+
declare type SelectOptionInterface = OnChangeEventInterface & {
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
};
|
|
29
|
+
declare type InputValueType = string | string[] | number | number[] | SelectOptionInterface[] | SelectDateInterface | boolean | undefined;
|
|
30
|
+
declare type DefaultInputProps = {
|
|
31
|
+
className?: string;
|
|
32
|
+
defaultValue?: InputValueType;
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
error?: boolean | SelectDateErrorInterface;
|
|
35
|
+
name: string;
|
|
36
|
+
placeholder?: string;
|
|
37
|
+
minValue?: number | string;
|
|
38
|
+
maxValue?: number | string;
|
|
39
|
+
maxLength?: number | string;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
declare type SdkNode = ReactNode | undefined;
|
|
43
|
+
declare type SdkElement = ReactElement | null;
|
|
44
|
+
declare type SdkChildren = {
|
|
45
|
+
children?: SdkNode | SdkElement;
|
|
46
|
+
};
|
|
47
|
+
declare type SdkFC<T = SdkChildren> = React.FC<SdkChildren & T>;
|
|
48
|
+
declare type UseReducerType<S, A> = (state: S, action: A) => S;
|
|
49
|
+
declare type VehicleMakeInterface = {
|
|
50
|
+
modelYear?: string;
|
|
51
|
+
make?: string;
|
|
52
|
+
};
|
|
53
|
+
declare type VehicleModelInterface = {
|
|
54
|
+
make?: string;
|
|
55
|
+
model?: string;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
declare const yearMessage: string;
|
|
59
|
+
declare const carCondition: {
|
|
60
|
+
value: string;
|
|
61
|
+
name: string;
|
|
62
|
+
}[];
|
|
63
|
+
declare const carStatus: {
|
|
64
|
+
value: boolean;
|
|
65
|
+
name: string;
|
|
66
|
+
}[];
|
|
67
|
+
declare const carWinterTiresCheck: {
|
|
68
|
+
value: boolean;
|
|
69
|
+
name: string;
|
|
70
|
+
}[];
|
|
71
|
+
declare const carKeepPlace: {
|
|
72
|
+
name: string;
|
|
73
|
+
value: string;
|
|
74
|
+
}[];
|
|
75
|
+
declare const comprehensiveCoverage: {
|
|
76
|
+
value: boolean;
|
|
77
|
+
name: string;
|
|
78
|
+
}[];
|
|
79
|
+
declare const collisionCoverage: {
|
|
80
|
+
value: boolean;
|
|
81
|
+
name: string;
|
|
82
|
+
}[];
|
|
83
|
+
declare const carUsagePurpose: {
|
|
84
|
+
value: string;
|
|
85
|
+
name: string;
|
|
86
|
+
}[];
|
|
87
|
+
declare const firstDriveDistanceList: {
|
|
88
|
+
value: string;
|
|
89
|
+
name: string;
|
|
90
|
+
}[];
|
|
91
|
+
declare const dailyDriveBusinessDistanceList: {
|
|
92
|
+
value: string;
|
|
93
|
+
name: string;
|
|
94
|
+
}[];
|
|
95
|
+
declare const yearlyDriveDistanceList: {
|
|
96
|
+
value: string;
|
|
97
|
+
name: string;
|
|
98
|
+
}[];
|
|
99
|
+
declare enum VehicleConditionTypes {
|
|
100
|
+
New = "N",
|
|
101
|
+
Used = "U"
|
|
102
|
+
}
|
|
103
|
+
declare enum VehiclePrimaryUseTypes {
|
|
104
|
+
Personal = "personal",
|
|
105
|
+
Business = "business"
|
|
106
|
+
}
|
|
107
|
+
declare enum CoverageTypes {
|
|
108
|
+
Comprehensive = "comprehensive",
|
|
109
|
+
Collision = "collision",
|
|
110
|
+
Liability = "liability"
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
declare enum DriverLicenceTypes {
|
|
114
|
+
G1 = "g1",
|
|
115
|
+
G2 = "g2",
|
|
116
|
+
G = "g"
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
declare enum GenderTypes {
|
|
120
|
+
Male = "M",
|
|
121
|
+
Female = "F",
|
|
122
|
+
Other = "Other"
|
|
123
|
+
}
|
|
124
|
+
declare enum OccupationTypes {
|
|
125
|
+
Employed = 800,
|
|
126
|
+
Unemployed = 998
|
|
127
|
+
}
|
|
128
|
+
declare enum DriverPriorityTypes {
|
|
129
|
+
Prn = "Prn",
|
|
130
|
+
Occ = "Occ"
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
declare const maritalStatusOptions: {
|
|
134
|
+
name: string;
|
|
135
|
+
value: string;
|
|
136
|
+
}[];
|
|
137
|
+
declare const occupationOptions: {
|
|
138
|
+
name: string;
|
|
139
|
+
value: number;
|
|
140
|
+
}[];
|
|
141
|
+
declare const genderOptions: {
|
|
142
|
+
value: GenderTypes;
|
|
143
|
+
name: string;
|
|
144
|
+
}[];
|
|
145
|
+
declare const applicantRelationshipOptions: {
|
|
146
|
+
name: string;
|
|
147
|
+
value: string;
|
|
148
|
+
}[];
|
|
149
|
+
declare const insuranceCancellationReasonOptions: {
|
|
150
|
+
name: string;
|
|
151
|
+
value: string;
|
|
152
|
+
}[];
|
|
153
|
+
declare const licenceSuspensionsReasonOptions: {
|
|
154
|
+
name: string;
|
|
155
|
+
value: string;
|
|
156
|
+
}[];
|
|
157
|
+
declare const coverageOptions: {
|
|
158
|
+
name: string;
|
|
159
|
+
value: number;
|
|
160
|
+
}[];
|
|
161
|
+
declare const liabilityOptions: {
|
|
162
|
+
name: string;
|
|
163
|
+
value: number;
|
|
164
|
+
}[];
|
|
165
|
+
declare const trafficTicketsGroupOptions: {
|
|
166
|
+
label: string;
|
|
167
|
+
options: {
|
|
168
|
+
value: string;
|
|
169
|
+
name: string;
|
|
170
|
+
}[];
|
|
171
|
+
}[];
|
|
172
|
+
declare enum DriverListTypes {
|
|
173
|
+
InsuranceCancellation = "insuranceCancellationList",
|
|
174
|
+
LicenceSuspension = "licenceSuspensionList",
|
|
175
|
+
Accident = "accidentList",
|
|
176
|
+
Ticket = "ticketList"
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
declare const defaultBrokerPhone = "1-855-843-1570";
|
|
180
|
+
|
|
181
|
+
declare enum HomeOwnerTypes {
|
|
182
|
+
Home = "home",
|
|
183
|
+
Condo = "condo",
|
|
184
|
+
Tenant = "tenant"
|
|
185
|
+
}
|
|
186
|
+
declare const homeOwnerTypeOptions: {
|
|
187
|
+
value: string;
|
|
188
|
+
name: string;
|
|
189
|
+
}[];
|
|
190
|
+
declare const comprehensiveCoverages: {
|
|
191
|
+
value: boolean;
|
|
192
|
+
name: string;
|
|
193
|
+
}[];
|
|
194
|
+
|
|
195
|
+
declare const residentsOptions: {
|
|
196
|
+
value: string;
|
|
197
|
+
name: string;
|
|
198
|
+
}[];
|
|
199
|
+
declare const insuredYearsOptions: {
|
|
200
|
+
value: string;
|
|
201
|
+
name: string;
|
|
202
|
+
}[];
|
|
203
|
+
declare const claimTypeOptions: {
|
|
204
|
+
value: string;
|
|
205
|
+
name: string;
|
|
206
|
+
}[];
|
|
207
|
+
declare enum ApplicantListTypes {
|
|
208
|
+
InsuranceCancellation = "insuranceCancellationList",
|
|
209
|
+
InsuranceClaim = "InsuranceClaimList"
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
declare enum DwellingInfoTypes {
|
|
213
|
+
BurglarAlarm = "burglarAlarm",
|
|
214
|
+
FireAlarm = "fireAlarm",
|
|
215
|
+
Sprinkler = "sprinkler",
|
|
216
|
+
Deadbolt = "deadbolt"
|
|
217
|
+
}
|
|
218
|
+
declare const constructionTypeOptions: {
|
|
219
|
+
value: string;
|
|
220
|
+
name: string;
|
|
221
|
+
}[];
|
|
222
|
+
declare const exteriorFinishOptions: {
|
|
223
|
+
value: string;
|
|
224
|
+
name: string;
|
|
225
|
+
}[];
|
|
226
|
+
declare const garageTypeOptions: {
|
|
227
|
+
value: string;
|
|
228
|
+
name: string;
|
|
229
|
+
}[];
|
|
230
|
+
declare const buildingStructureOptions: {
|
|
231
|
+
value: string;
|
|
232
|
+
name: string;
|
|
233
|
+
}[];
|
|
234
|
+
declare const fireHallDistanceOptions: {
|
|
235
|
+
value: string;
|
|
236
|
+
name: string;
|
|
237
|
+
}[];
|
|
238
|
+
declare const fireHydrantDistanceOptions: {
|
|
239
|
+
value: string;
|
|
240
|
+
name: string;
|
|
241
|
+
}[];
|
|
242
|
+
declare const heatingTypeOptions: {
|
|
243
|
+
value: string;
|
|
244
|
+
name: string;
|
|
245
|
+
}[];
|
|
246
|
+
|
|
247
|
+
declare const yesNoOptions: {
|
|
248
|
+
name: string;
|
|
249
|
+
value: boolean;
|
|
250
|
+
}[];
|
|
251
|
+
declare const yesNoOptionsTemporary: {
|
|
252
|
+
name: string;
|
|
253
|
+
value: boolean;
|
|
254
|
+
}[];
|
|
255
|
+
|
|
256
|
+
declare enum DateTypes {
|
|
257
|
+
Day = "Day",
|
|
258
|
+
Month = "Month",
|
|
259
|
+
Year = "Year"
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
declare enum ButtonVariantTypes {
|
|
263
|
+
Circle = "circle",
|
|
264
|
+
Rectangle = "rectangle"
|
|
265
|
+
}
|
|
266
|
+
declare enum ButtonTypes {
|
|
267
|
+
Submit = "submit",
|
|
268
|
+
Button = "button",
|
|
269
|
+
Reset = "reset"
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
declare enum ColorVariablesTypes {
|
|
273
|
+
Default = "var(--color-primary)",
|
|
274
|
+
Primary = "var(--color-primary)",
|
|
275
|
+
Secondary = "var(--color-primary)"
|
|
276
|
+
}
|
|
277
|
+
declare enum ColorTypes {
|
|
278
|
+
Default = "default",
|
|
279
|
+
Primary = "primary",
|
|
280
|
+
Secondary = "secondary"
|
|
281
|
+
}
|
|
282
|
+
declare enum CategoryTypes {
|
|
283
|
+
Outlined = "outlined",
|
|
284
|
+
Filled = "filled",
|
|
285
|
+
Default = "default"
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
declare enum InputTypes {
|
|
289
|
+
Text = "text",
|
|
290
|
+
Number = "number",
|
|
291
|
+
Password = "password",
|
|
292
|
+
Email = "email"
|
|
293
|
+
}
|
|
294
|
+
declare enum ValidationStatusTypes {
|
|
295
|
+
Initial = "initial",
|
|
296
|
+
Loading = "isLoading",
|
|
297
|
+
Declined = "declined",
|
|
298
|
+
Approved = "approved"
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
declare enum SizeTypes {
|
|
302
|
+
Small = "small",
|
|
303
|
+
Medium = "medium",
|
|
304
|
+
Large = "large"
|
|
305
|
+
}
|
|
306
|
+
declare enum AlignTypes {
|
|
307
|
+
TL = "tl",
|
|
308
|
+
TC = "tc",
|
|
309
|
+
TR = "tr",
|
|
310
|
+
CL = "cl",
|
|
311
|
+
CC = "cc",
|
|
312
|
+
CR = "cr",
|
|
313
|
+
BL = "bl",
|
|
314
|
+
BC = "bc",
|
|
315
|
+
BR = "br"
|
|
316
|
+
}
|
|
317
|
+
declare enum DirectionTypes {
|
|
318
|
+
Left = "left",
|
|
319
|
+
Up = "up",
|
|
320
|
+
Right = "right",
|
|
321
|
+
Down = "down"
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
declare enum CompanyRoleTypes {
|
|
325
|
+
Broker = "broker",
|
|
326
|
+
Offering = "offering"
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
declare enum DeviceTypes {
|
|
330
|
+
Desktop = "desktop",
|
|
331
|
+
Mobile = "mobile"
|
|
332
|
+
}
|
|
333
|
+
declare const DeviceTypeWidthList: {
|
|
334
|
+
type: DeviceTypes;
|
|
335
|
+
minWidth: number;
|
|
336
|
+
}[];
|
|
337
|
+
declare enum ScreenBPTypes {
|
|
338
|
+
XS = "xs",
|
|
339
|
+
SM = "sm",
|
|
340
|
+
MD = "md",
|
|
341
|
+
LG = "lg",
|
|
342
|
+
XL = "xl",
|
|
343
|
+
XXL = "xxl"
|
|
344
|
+
}
|
|
345
|
+
declare const ScreenBPList: {
|
|
346
|
+
BP: ScreenBPTypes;
|
|
347
|
+
minWidth: number;
|
|
348
|
+
}[];
|
|
349
|
+
|
|
350
|
+
declare enum AppTypes {
|
|
351
|
+
MyChoice = "MyChoice",
|
|
352
|
+
Partner = "Partner",
|
|
353
|
+
TheBig = "TheBig"
|
|
354
|
+
}
|
|
355
|
+
declare enum InsuranceTypes {
|
|
356
|
+
Car = "car",
|
|
357
|
+
Life = "life",
|
|
358
|
+
Home = "home"
|
|
359
|
+
}
|
|
360
|
+
declare const defaultLocalIndex = "insurance";
|
|
361
|
+
declare const MAX_LOCAL_STORAGE_HOURS = 168;
|
|
362
|
+
|
|
363
|
+
declare const API_ROOT: string;
|
|
364
|
+
declare const API_AUTH: {
|
|
365
|
+
POST_SIGN_IN: string;
|
|
366
|
+
GET_SIGN_OUT: string;
|
|
367
|
+
POST_SIGN_UP: string;
|
|
368
|
+
POST_FORGOT: string;
|
|
369
|
+
POST_RESET: string;
|
|
370
|
+
POST_EMAIL_VERIFICATION: string;
|
|
371
|
+
POST_TOKEN: string;
|
|
372
|
+
POST_EMAIL_VALIDATION: string;
|
|
373
|
+
};
|
|
374
|
+
declare const PROFILE_API: {
|
|
375
|
+
USER: string;
|
|
376
|
+
POST_PASSWORD_CHANGE: string;
|
|
377
|
+
};
|
|
378
|
+
declare const API_APP: {
|
|
379
|
+
GET_PARTNER: string;
|
|
380
|
+
};
|
|
381
|
+
declare const API_FORM_CAR: {
|
|
382
|
+
GET_POSTAL: string;
|
|
383
|
+
GET_VEHICLE: string;
|
|
384
|
+
POST_QUOTE_DATA: string;
|
|
385
|
+
GET_QUOTE_DATA: string;
|
|
386
|
+
POST_QUOTE_ONLIA_URL: string;
|
|
387
|
+
};
|
|
388
|
+
declare const API_FORM_HOME: {
|
|
389
|
+
GET_POSTAL: string;
|
|
390
|
+
POST_QUOTE_DATA: string;
|
|
391
|
+
};
|
|
392
|
+
declare enum HttpRequestHeaderTypes {
|
|
393
|
+
Json = "JSON",
|
|
394
|
+
MultiPart = "MultiPart"
|
|
395
|
+
}
|
|
396
|
+
declare enum RequestStatusTypes {
|
|
397
|
+
Waiting = "Waiting",
|
|
398
|
+
Loading = "Loading",
|
|
399
|
+
Success = "Success",
|
|
400
|
+
Error = "Error"
|
|
401
|
+
}
|
|
402
|
+
declare enum RequestTypes {
|
|
403
|
+
Get = "GET",
|
|
404
|
+
Post = "POST",
|
|
405
|
+
Put = "PUT",
|
|
406
|
+
Delete = "DELETE",
|
|
407
|
+
Patch = "PATCH"
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
declare enum ModalTypes {
|
|
411
|
+
MessageModal = "MessageModal",
|
|
412
|
+
ConfirmModal = "ConfirmModal",
|
|
413
|
+
PostalModal = "PostalModal",
|
|
414
|
+
FinaleModal = "FinaleModal"
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
interface IconPropsInterface {
|
|
418
|
+
width?: string | number;
|
|
419
|
+
height?: string | number;
|
|
420
|
+
color?: string;
|
|
421
|
+
colorType?: ColorVariablesTypes;
|
|
422
|
+
className?: string;
|
|
423
|
+
onClick?: MouseEventHandler<SVGSVGElement>;
|
|
424
|
+
viewBox?: string;
|
|
425
|
+
}
|
|
426
|
+
interface IconTooltipPropsInterface extends IconPropsInterface {
|
|
427
|
+
tooltipId?: string;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
declare const IconLoaderPrimary: SdkFC<IconPropsInterface>;
|
|
431
|
+
|
|
432
|
+
declare const IconLoaderSecondary: SdkFC;
|
|
433
|
+
|
|
434
|
+
declare const IconDropdownArrow: SdkFC<IconPropsInterface>;
|
|
435
|
+
|
|
436
|
+
declare const IconArrow: SdkFC<IconPropsInterface>;
|
|
437
|
+
|
|
438
|
+
declare const IconTabArrow: SdkFC<IconPropsInterface>;
|
|
439
|
+
|
|
440
|
+
declare const NavigationCar: SdkFC<IconPropsInterface>;
|
|
441
|
+
|
|
442
|
+
declare const NavigationAddress: SdkFC<IconPropsInterface>;
|
|
443
|
+
|
|
444
|
+
declare const NavigationProperty: SdkFC<IconPropsInterface>;
|
|
445
|
+
|
|
446
|
+
declare const NavigationBase: SdkFC<IconPropsInterface>;
|
|
447
|
+
|
|
448
|
+
declare const NavigationDiscount: SdkFC<IconPropsInterface>;
|
|
449
|
+
|
|
450
|
+
declare const NavigationPerson: SdkFC<IconPropsInterface>;
|
|
451
|
+
|
|
452
|
+
declare const NavigationQuotes: SdkFC<IconPropsInterface>;
|
|
453
|
+
|
|
454
|
+
declare const IconDelete: SdkFC<IconPropsInterface>;
|
|
455
|
+
|
|
456
|
+
declare const IconTooltip: SdkFC<IconTooltipPropsInterface>;
|
|
457
|
+
|
|
458
|
+
declare const IconSuccess: SdkFC<IconPropsInterface>;
|
|
459
|
+
|
|
460
|
+
declare const IconChecked: SdkFC;
|
|
461
|
+
|
|
462
|
+
declare const IconDecline: SdkFC<IconPropsInterface>;
|
|
463
|
+
|
|
464
|
+
declare type ButtonBaseProps = {
|
|
465
|
+
label?: string;
|
|
466
|
+
category?: CategoryTypes;
|
|
467
|
+
color?: ColorTypes;
|
|
468
|
+
variant?: ButtonVariantTypes;
|
|
469
|
+
size?: SizeTypes;
|
|
470
|
+
className?: string;
|
|
471
|
+
children?: ReactElement;
|
|
472
|
+
type?: ButtonTypes;
|
|
473
|
+
onClick?: () => void;
|
|
474
|
+
};
|
|
475
|
+
declare type ButtonArrowProps = ButtonBaseProps & {
|
|
476
|
+
direction?: DirectionTypes;
|
|
477
|
+
};
|
|
478
|
+
declare type ButtonTabArrowProps = {
|
|
479
|
+
className?: string;
|
|
480
|
+
onClick?: () => void;
|
|
481
|
+
direction?: DirectionTypes;
|
|
482
|
+
};
|
|
483
|
+
declare type ButtonMenuProps = {
|
|
484
|
+
className?: string;
|
|
485
|
+
onClick?: () => void;
|
|
486
|
+
};
|
|
487
|
+
declare type ButtonFormProps = {
|
|
488
|
+
className?: string;
|
|
489
|
+
selected?: boolean;
|
|
490
|
+
onClick?: () => void;
|
|
491
|
+
label?: string;
|
|
492
|
+
};
|
|
493
|
+
declare type NavigationTabProps = {
|
|
494
|
+
className?: string;
|
|
495
|
+
selfDelete?: boolean;
|
|
496
|
+
iconClick?: MouseEventHandler<SVGSVGElement | HTMLButtonElement>;
|
|
497
|
+
buttonClick?: MouseEventHandler<HTMLButtonElement>;
|
|
498
|
+
label?: string;
|
|
499
|
+
key?: string;
|
|
500
|
+
};
|
|
501
|
+
|
|
502
|
+
declare const ButtonBase: SdkFC<ButtonBaseProps>;
|
|
503
|
+
|
|
504
|
+
declare const ButtonForm: SdkFC<ButtonFormProps>;
|
|
505
|
+
|
|
506
|
+
declare const ButtonTab: SdkFC<NavigationTabProps>;
|
|
507
|
+
|
|
508
|
+
declare const ButtonTabMobile: SdkFC<NavigationTabProps>;
|
|
509
|
+
|
|
510
|
+
declare const ButtonMenu: SdkFC<ButtonMenuProps>;
|
|
511
|
+
|
|
512
|
+
declare const ButtonArrow: SdkFC<ButtonArrowProps>;
|
|
513
|
+
|
|
514
|
+
declare const ButtonTabArrow: SdkFC<ButtonTabArrowProps>;
|
|
515
|
+
|
|
516
|
+
declare type SelectProps = DefaultInputProps & {
|
|
517
|
+
size?: SizeTypes;
|
|
518
|
+
autoSelectIfValueIsOutOfOptions?: boolean;
|
|
519
|
+
onChange?: (option: OnChangeEventInterface) => void;
|
|
520
|
+
options: SelectOptionInterface[];
|
|
521
|
+
groupOptions?: SelectOptionGroupInterface[];
|
|
522
|
+
};
|
|
523
|
+
|
|
524
|
+
declare const SelectForm: SdkFC<SelectProps>;
|
|
525
|
+
|
|
526
|
+
declare type TitleProps = {
|
|
527
|
+
title: string;
|
|
528
|
+
subTitle?: string;
|
|
529
|
+
className?: string;
|
|
530
|
+
isActive?: boolean;
|
|
531
|
+
};
|
|
532
|
+
|
|
533
|
+
declare const TitleForm: SdkFC<TitleProps>;
|
|
534
|
+
|
|
535
|
+
declare type InputProps = DefaultInputProps & {
|
|
536
|
+
size?: SizeTypes;
|
|
537
|
+
type?: InputTypes;
|
|
538
|
+
onChange?: (option: OnChangeEventInterface) => void;
|
|
539
|
+
};
|
|
540
|
+
declare type CheckboxProps = {
|
|
541
|
+
className?: string;
|
|
542
|
+
name: string;
|
|
543
|
+
label?: string;
|
|
544
|
+
defaultValue?: boolean;
|
|
545
|
+
onChange?: (option: OnChangeEventInterface) => void;
|
|
546
|
+
disabled?: boolean;
|
|
547
|
+
};
|
|
548
|
+
declare type EmailInputProps = DefaultInputProps & {
|
|
549
|
+
validationStatus?: ValidationStatusTypes;
|
|
550
|
+
onChange?: (option: OnChangeEventInterface) => void;
|
|
551
|
+
};
|
|
552
|
+
|
|
553
|
+
declare const InputForm: SdkFC<InputProps>;
|
|
554
|
+
|
|
555
|
+
declare const InputFormPhone: SdkFC<InputProps>;
|
|
556
|
+
|
|
557
|
+
declare const InputFormLicence: SdkFC<InputProps>;
|
|
558
|
+
|
|
559
|
+
declare const InputFormEmail: SdkFC<EmailInputProps>;
|
|
560
|
+
|
|
561
|
+
declare const CheckboxForm: SdkFC<CheckboxProps>;
|
|
562
|
+
|
|
563
|
+
interface NavigationItemInterface {
|
|
564
|
+
path?: string;
|
|
565
|
+
name?: string;
|
|
566
|
+
icon?: SdkElement;
|
|
567
|
+
title?: string;
|
|
568
|
+
key?: number;
|
|
569
|
+
}
|
|
570
|
+
interface ValidationOptionsInterface {
|
|
571
|
+
validate: (isRedirect?: boolean) => boolean;
|
|
572
|
+
isValid: boolean;
|
|
573
|
+
}
|
|
574
|
+
interface ValidationHookInterface {
|
|
575
|
+
path?: string;
|
|
576
|
+
name?: string;
|
|
577
|
+
validateOptions: ValidationOptionsInterface;
|
|
578
|
+
key?: number;
|
|
579
|
+
}
|
|
580
|
+
declare type StepProps = {
|
|
581
|
+
item?: NavigationItemInterface;
|
|
582
|
+
itemsCount?: number;
|
|
583
|
+
index?: number;
|
|
584
|
+
className?: string;
|
|
585
|
+
isMobile?: boolean;
|
|
586
|
+
};
|
|
587
|
+
|
|
588
|
+
declare const Step: SdkFC<StepProps>;
|
|
589
|
+
|
|
590
|
+
declare type TooltipProps = {
|
|
591
|
+
id?: string;
|
|
592
|
+
description?: string;
|
|
593
|
+
};
|
|
594
|
+
|
|
595
|
+
declare const SdkTooltip: SdkFC<TooltipProps>;
|
|
596
|
+
|
|
597
|
+
declare const TooltipForm: SdkFC<TooltipProps>;
|
|
598
|
+
|
|
599
|
+
interface NavItemInterface {
|
|
600
|
+
name: string;
|
|
601
|
+
link: string;
|
|
602
|
+
}
|
|
603
|
+
declare type HeaderNavGroupProps = {
|
|
604
|
+
className?: string;
|
|
605
|
+
navItems: NavItemInterface[];
|
|
606
|
+
isExternal?: boolean;
|
|
607
|
+
};
|
|
608
|
+
declare type HeaderDropDownProps = HeaderNavGroupProps & {
|
|
609
|
+
name: string;
|
|
610
|
+
};
|
|
611
|
+
|
|
612
|
+
declare const HeaderNavGroup: SdkFC<HeaderNavGroupProps>;
|
|
613
|
+
|
|
614
|
+
declare const HeaderDropDown: SdkFC<HeaderDropDownProps>;
|
|
615
|
+
|
|
616
|
+
declare type OfferHeaderProps = {
|
|
617
|
+
className?: string;
|
|
618
|
+
companyName?: string;
|
|
619
|
+
isBestOffer?: boolean;
|
|
620
|
+
};
|
|
621
|
+
interface PriceInterface {
|
|
622
|
+
className?: string;
|
|
623
|
+
monthly?: number | string;
|
|
624
|
+
yearly?: number | string;
|
|
625
|
+
}
|
|
626
|
+
declare type OfferPriceProps = {
|
|
627
|
+
className?: string;
|
|
628
|
+
companyLogo?: string;
|
|
629
|
+
price?: PriceInterface;
|
|
630
|
+
};
|
|
631
|
+
declare type OfferDetailTitleProps = {
|
|
632
|
+
className?: string;
|
|
633
|
+
name?: string;
|
|
634
|
+
title?: string;
|
|
635
|
+
companyType?: string;
|
|
636
|
+
};
|
|
637
|
+
declare type OfferDetailInfoProps = {
|
|
638
|
+
className?: string;
|
|
639
|
+
logo?: string;
|
|
640
|
+
description?: string;
|
|
641
|
+
};
|
|
642
|
+
declare type OfferDetailProps = OfferDetailTitleProps & OfferDetailInfoProps;
|
|
643
|
+
declare type OperationHoursInfoProps = {
|
|
644
|
+
className?: string;
|
|
645
|
+
weekdayHours?: string;
|
|
646
|
+
saturdayHours?: string;
|
|
647
|
+
sundayHours?: string;
|
|
648
|
+
};
|
|
649
|
+
declare type QuoteEditProps = {
|
|
650
|
+
className?: string;
|
|
651
|
+
editClick?: ((index: number) => () => void);
|
|
652
|
+
title?: string;
|
|
653
|
+
items?: string[][];
|
|
654
|
+
link?: string;
|
|
655
|
+
};
|
|
656
|
+
|
|
657
|
+
declare const OfferPrice: SdkFC<OfferPriceProps>;
|
|
658
|
+
|
|
659
|
+
declare const OfferHeader: SdkFC<OfferHeaderProps>;
|
|
660
|
+
|
|
661
|
+
declare const OfferDetail: SdkFC<OfferDetailProps>;
|
|
662
|
+
|
|
663
|
+
declare const OperationHoursInfo: SdkFC<OperationHoursInfoProps>;
|
|
664
|
+
|
|
665
|
+
declare const OfferDetailTitle: SdkFC<OfferDetailTitleProps>;
|
|
666
|
+
|
|
667
|
+
declare const QuoteEdit: SdkFC<QuoteEditProps>;
|
|
668
|
+
|
|
669
|
+
declare type MessageProps = {
|
|
670
|
+
className?: string;
|
|
671
|
+
isRemovable?: boolean;
|
|
672
|
+
onIconClick?: () => void;
|
|
673
|
+
text: string;
|
|
674
|
+
};
|
|
675
|
+
|
|
676
|
+
declare const InfoMessage: SdkFC<MessageProps>;
|
|
677
|
+
|
|
678
|
+
declare const optionsIsEqual: (options1: SelectOptionInterface[], options2: SelectOptionInterface[]) => boolean;
|
|
679
|
+
declare const isValueInOptions: (value: string, options: SelectOptionInterface[]) => boolean;
|
|
680
|
+
declare const getValueIndexInOptions: (value: string, options: SelectOptionInterface[]) => number;
|
|
681
|
+
declare const getValuesFromNumbers: (start: string | number, end: string | number) => SelectOptionInterface[];
|
|
682
|
+
declare const deepClone: <T>(value: T) => T;
|
|
683
|
+
|
|
684
|
+
declare const getFormattedDate: (date: string, pattern: string) => string;
|
|
685
|
+
declare const isDateValid: (date: string) => boolean;
|
|
686
|
+
declare const getDaysOfMonth: (date: string) => number;
|
|
687
|
+
declare const addYearsToDate: (date: string, yearCount: number) => string;
|
|
688
|
+
declare const subYearsFromDate: (date: string, yearCount: number) => string;
|
|
689
|
+
declare const addMonthsToDate: (date: string, monthCount: number) => string;
|
|
690
|
+
declare const subMonthsFromDate: (date: string, monthCount: number) => string;
|
|
691
|
+
declare const addDaysToDate: (date: string, dayCount: number) => string;
|
|
692
|
+
declare const subDaysFromDate: (date: string, dayCount: number) => string;
|
|
693
|
+
declare const compareDates: (dateLeft: string, dateRight: string) => number;
|
|
694
|
+
declare const getStartOfMonth: (date: string) => Date;
|
|
695
|
+
declare const getEndOfMonth: (date: string) => Date;
|
|
696
|
+
declare const getStartOfYear: (date: string) => Date;
|
|
697
|
+
declare const getEndOfYear: (date: string) => Date;
|
|
698
|
+
declare const getMinDate: (date: string, yearCount: number) => string;
|
|
699
|
+
declare const getMinDateByYears: (date: string, yearCount: number) => string;
|
|
700
|
+
declare const getDayStartEndDates: (currentDate: SelectDateInterface, minDate?: string, maxDate?: string) => StartEndDatesInterface;
|
|
701
|
+
declare const getMonthStartEndDates: (currentDate: SelectDateInterface, minDate?: string, maxDate?: string) => StartEndDatesInterface;
|
|
702
|
+
declare const getYearStartEndDates: (currentDate: SelectDateInterface, minDate?: string, maxDate?: string) => StartEndDatesInterface;
|
|
703
|
+
declare const getDateOptions: (type: DateTypes, minDate?: string, maxDate?: string, defaultValue?: SelectDateInterface) => SelectOptionInterface[];
|
|
704
|
+
declare const getYearIntervalOptions: (yearsCount: number) => SelectOptionInterface[];
|
|
705
|
+
declare const getDifferenceInYears: (dateLeft: string, dateRight: string) => number;
|
|
706
|
+
declare const getDifferenceInMonths: (dateLeft: string, dateRight: string) => number;
|
|
707
|
+
declare const getDifferenceInHours: (dateLeft: string, dateRight: string) => number;
|
|
708
|
+
|
|
709
|
+
declare const getNumericOptions: (start: number, end: number, suffix?: string) => SelectOptionInterface[];
|
|
710
|
+
declare const formatPostalCode: (str?: string) => string;
|
|
711
|
+
declare const postalCodeFormat: (postalCode?: string) => string;
|
|
712
|
+
declare const numberWithCommas: (value: number) => string;
|
|
713
|
+
|
|
714
|
+
declare const useEffectOnce: (effect: () => void | (() => void)) => void;
|
|
715
|
+
|
|
716
|
+
export { API_APP, API_AUTH, API_FORM_CAR, API_FORM_HOME, API_ROOT, AlignTypes, AppTypes, ApplicantListTypes, ButtonArrow, ButtonArrowProps, ButtonBase, ButtonBaseProps, ButtonForm, ButtonFormProps, ButtonMenu, ButtonMenuProps, ButtonTab, ButtonTabArrow, ButtonTabArrowProps, ButtonTabMobile, ButtonTypes, ButtonVariantTypes, CategoryTypes, CheckboxForm, CheckboxProps, ColorTypes, ColorVariablesTypes, CompanyRoleTypes, CoverageTypes, DateTypes, DefaultInputProps, DeviceTypeWidthList, DeviceTypes, DirectionTypes, DriverLicenceTypes, DriverListTypes, DriverPriorityTypes, DwellingInfoTypes, EmailInputProps, GenderTypes, HeaderDropDown, HeaderDropDownProps, HeaderNavGroup, HeaderNavGroupProps, HomeOwnerTypes, HttpRequestHeaderTypes, IconArrow, IconChecked, IconDecline, IconDelete, IconDropdownArrow, IconLoaderPrimary, IconLoaderSecondary, IconSuccess, IconTabArrow, IconTooltip, InfoMessage, InputForm, InputFormEmail, InputFormLicence, InputFormPhone, InputProps, InputTypes, InputValueType, InsuranceTypes, MAX_LOCAL_STORAGE_HOURS, ModalTypes, NavItemInterface, NavigationAddress, NavigationBase, NavigationCar, NavigationDiscount, NavigationItemInterface, NavigationPerson, NavigationProperty, NavigationQuotes, NavigationTabProps, OccupationTypes, OfferDetail, OfferDetailInfoProps, OfferDetailProps, OfferDetailTitle, OfferDetailTitleProps, OfferHeader, OfferHeaderProps, OfferPrice, OfferPriceProps, OnChangeEventInterface, OperationHoursInfo, OperationHoursInfoProps, PROFILE_API, PriceInterface, QuoteEdit, QuoteEditProps, RequestStatusTypes, RequestTypes, ScreenBPList, ScreenBPTypes, SdkChildren, SdkElement, SdkFC, SdkNode, SdkTooltip, SelectDateErrorInterface, SelectDateInterface, SelectForm, SelectOptionGroupInterface, SelectOptionInterface, SelectProps, SizeTypes, StartEndDatesInterface, Step, StepProps, TitleForm, TitleProps, TooltipForm, TooltipProps, UseReducerType, ValidationHookInterface, ValidationOptionsInterface, ValidationStatusTypes, VehicleConditionTypes, VehicleMakeInterface, VehicleModelInterface, VehiclePrimaryUseTypes, addDaysToDate, addMonthsToDate, addYearsToDate, applicantRelationshipOptions, buildingStructureOptions, carCondition, carKeepPlace, carStatus, carUsagePurpose, carWinterTiresCheck, claimTypeOptions, collisionCoverage, compareDates, comprehensiveCoverage, comprehensiveCoverages, constructionTypeOptions, coverageOptions, dailyDriveBusinessDistanceList, deepClone, defaultBrokerPhone, defaultLocalIndex, exteriorFinishOptions, fireHallDistanceOptions, fireHydrantDistanceOptions, firstDriveDistanceList, formatPostalCode, garageTypeOptions, genderOptions, getDateOptions, getDayStartEndDates, getDaysOfMonth, getDifferenceInHours, getDifferenceInMonths, getDifferenceInYears, getEndOfMonth, getEndOfYear, getFormattedDate, getMinDate, getMinDateByYears, getMonthStartEndDates, getNumericOptions, getStartOfMonth, getStartOfYear, getValueIndexInOptions, getValuesFromNumbers, getYearIntervalOptions, getYearStartEndDates, heatingTypeOptions, homeOwnerTypeOptions, insuranceCancellationReasonOptions, insuredYearsOptions, isDateValid, isValueInOptions, liabilityOptions, licenceSuspensionsReasonOptions, maritalStatusOptions, numberWithCommas, occupationOptions, optionsIsEqual, postalCodeFormat, residentsOptions, subDaysFromDate, subMonthsFromDate, subYearsFromDate, trafficTicketsGroupOptions, useEffectOnce, yearMessage, yearlyDriveDistanceList, yesNoOptions, yesNoOptionsTemporary };
|