@wayke-se/components-react 5.1.0-beta.2 → 5.2.0-beta.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 +476 -626
- package/dist/index.d.ts +2 -4317
- package/dist/index.js +786 -792
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +783 -789
- package/dist/index.mjs.map +4 -4
- package/dist/types/src/@types/action.d.ts +3 -0
- package/dist/types/src/@types/codegen/types.d.ts +433 -0
- package/dist/types/src/@types/conversion.d.ts +45 -0
- package/dist/types/src/@types/filter.d.ts +5 -0
- package/dist/types/src/@types/market.d.ts +1 -0
- package/dist/types/src/@types/queryFilter.d.ts +5 -0
- package/dist/types/src/@types/search.d.ts +114 -0
- package/dist/types/src/@types/vehicle-properties.d.ts +29 -0
- package/dist/types/src/State/CentralStorage/CentralStorageContext.d.ts +5 -0
- package/dist/types/src/State/CentralStorage/CentralStorageProvider.d.ts +6 -0
- package/dist/types/src/State/CentralStorage/useCentralStorage.d.ts +6 -0
- package/dist/types/src/State/Path/PathContext.d.ts +8 -0
- package/dist/types/src/State/Path/PathProvider.d.ts +6 -0
- package/dist/types/src/State/Path/reducer.d.ts +14 -0
- package/dist/types/src/State/Path/usePath.d.ts +3 -0
- package/dist/types/src/State/RelatedSearch/RelatedSearchContext.d.ts +9 -0
- package/dist/types/src/State/RelatedSearch/RelatedSearchProvider.d.ts +9 -0
- package/dist/types/src/State/RelatedSearch/useRelatedSearch.d.ts +2 -0
- package/dist/types/src/State/Search/SearchContext.d.ts +14 -0
- package/dist/types/src/State/Search/SearchProvider.d.ts +10 -0
- package/dist/types/src/State/Search/useSearch.d.ts +2 -0
- package/dist/types/src/State/Settings/SettingsContext.d.ts +12 -0
- package/dist/types/src/State/Settings/SettingsProvider.d.ts +11 -0
- package/dist/types/src/State/Settings/useSettings.d.ts +2 -0
- package/dist/types/src/components/AccessoryCard/index.d.ts +16 -0
- package/dist/types/src/components/AccessoryCard/wrapper.d.ts +54 -0
- package/dist/types/src/components/Accordion/index.d.ts +13 -0
- package/dist/types/src/components/Accordion/wrapper.d.ts +42 -0
- package/dist/types/src/components/ActionList/index.d.ts +17 -0
- package/dist/types/src/components/ActionList/toggle-item.d.ts +13 -0
- package/dist/types/src/components/Avatar/index.d.ts +7 -0
- package/dist/types/src/components/Avatar/wrapper.d.ts +9 -0
- package/dist/types/src/components/Badge/index.d.ts +7 -0
- package/dist/types/src/components/Badge/wrapper.d.ts +9 -0
- package/dist/types/src/components/Blockquote/index.d.ts +9 -0
- package/dist/types/src/components/Blockquote/wrapper.d.ts +23 -0
- package/dist/types/src/components/Button/index.d.ts +207 -0
- package/dist/types/src/components/CheckMarkList/index.d.ts +7 -0
- package/dist/types/src/components/CheckMarkList/wrapper.d.ts +14 -0
- package/dist/types/src/components/Checklist/index.d.ts +13 -0
- package/dist/types/src/components/Checklist/wrapper.d.ts +28 -0
- package/dist/types/src/components/ColorSelect/index.d.ts +14 -0
- package/dist/types/src/components/ColorSelect/wrapper.d.ts +29 -0
- package/dist/types/src/components/ColumnRow/index.d.ts +6 -0
- package/dist/types/src/components/Columns/index.d.ts +20 -0
- package/dist/types/src/components/Container/index.d.ts +6 -0
- package/dist/types/src/components/Container/wrapper.d.ts +3 -0
- package/dist/types/src/components/Content/index.d.ts +6 -0
- package/dist/types/src/components/Content/wrapper.d.ts +7 -0
- package/dist/types/src/components/ContentLogo/index.d.ts +9 -0
- package/dist/types/src/components/CreditorDisclaimer/index.d.ts +2 -0
- package/dist/types/src/components/CreditorDisclaimer/wrapper.d.ts +14 -0
- package/dist/types/src/components/DataList/index.d.ts +10 -0
- package/dist/types/src/components/DataList/wrapper.d.ts +14 -0
- package/dist/types/src/components/DetailBox/index.d.ts +8 -0
- package/dist/types/src/components/DetailBox/wrapper.d.ts +98 -0
- package/dist/types/src/components/DocumentList/index.d.ts +11 -0
- package/dist/types/src/components/DocumentList/wrapper.d.ts +25 -0
- package/dist/types/src/components/ExtendContent/index.d.ts +8 -0
- package/dist/types/src/components/ExtendContent/wrapper.d.ts +13 -0
- package/dist/types/src/components/ExtendInfo/index.d.ts +7 -0
- package/dist/types/src/components/ExtendInfo/wrapper.d.ts +38 -0
- package/dist/types/src/components/Filter/index.d.ts +9 -0
- package/dist/types/src/components/Filter/wrapper.d.ts +27 -0
- package/dist/types/src/components/FilterPanel/checkListFacet.d.ts +7 -0
- package/dist/types/src/components/FilterPanel/colorFacet.d.ts +7 -0
- package/dist/types/src/components/FilterPanel/faceSelector.d.ts +7 -0
- package/dist/types/src/components/FilterPanel/index.d.ts +20 -0
- package/dist/types/src/components/FilterPanel/rangeFacet.d.ts +9 -0
- package/dist/types/src/components/FinancialOptions/LoanModal.d.ts +12 -0
- package/dist/types/src/components/FinancialOptions/index.d.ts +11 -0
- package/dist/types/src/components/FinancialOptions/leasing.d.ts +7 -0
- package/dist/types/src/components/FinancialOptions/loan.d.ts +11 -0
- package/dist/types/src/components/Gallery/MediaButton.d.ts +7 -0
- package/dist/types/src/components/Gallery/index.d.ts +10 -0
- package/dist/types/src/components/Gallery/wrapper.d.ts +74 -0
- package/dist/types/src/components/Grid/index.d.ts +13 -0
- package/dist/types/src/components/Grid/wrapper.d.ts +9 -0
- package/dist/types/src/components/Heading/index.d.ts +145 -0
- package/dist/types/src/components/Icon/index.d.ts +17 -0
- package/dist/types/src/components/Image/index.d.ts +3 -0
- package/dist/types/src/components/InputCheckbox/index.d.ts +7 -0
- package/dist/types/src/components/InputCheckbox/wrapper.d.ts +31 -0
- package/dist/types/src/components/InputError/index.d.ts +7 -0
- package/dist/types/src/components/InputError/wrapper.d.ts +3 -0
- package/dist/types/src/components/InputGroup/index.d.ts +6 -0
- package/dist/types/src/components/InputLabel/index.d.ts +7 -0
- package/dist/types/src/components/InputLabel/wrapper.d.ts +5 -0
- package/dist/types/src/components/InputSearch/index.d.ts +11 -0
- package/dist/types/src/components/InputSearch/wrapper.d.ts +42 -0
- package/dist/types/src/components/InputSelect/index.d.ts +14 -0
- package/dist/types/src/components/InputSelect/wrapper.d.ts +14 -0
- package/dist/types/src/components/InputText/index.d.ts +7 -0
- package/dist/types/src/components/InputText/wrapper.d.ts +9 -0
- package/dist/types/src/components/InputTextarea/index.d.ts +7 -0
- package/dist/types/src/components/InputTextarea/wrapper.d.ts +8 -0
- package/dist/types/src/components/InsuranceOptions/Insurance.d.ts +9 -0
- package/dist/types/src/components/InsuranceOptions/InsuranceFree.d.ts +9 -0
- package/dist/types/src/components/InsuranceOptions/InsuranceFreeModal.d.ts +8 -0
- package/dist/types/src/components/InsuranceOptions/InsuranceModal.d.ts +10 -0
- package/dist/types/src/components/InsuranceOptions/index.d.ts +9 -0
- package/dist/types/src/components/LeadForm/index.d.ts +15 -0
- package/dist/types/src/components/LeadForm/wrapper.d.ts +3 -0
- package/dist/types/src/components/Lightbox/index.d.ts +9 -0
- package/dist/types/src/components/Lightbox/wrapper.d.ts +26 -0
- package/dist/types/src/components/Link/index.d.ts +9 -0
- package/dist/types/src/components/Loader/index.d.ts +7 -0
- package/dist/types/src/components/Loader/wrapper.d.ts +13 -0
- package/dist/types/src/components/LogoBox/index.d.ts +9 -0
- package/dist/types/src/components/LogoBox/wrapper.d.ts +7 -0
- package/dist/types/src/components/Map/index.d.ts +7 -0
- package/dist/types/src/components/Map/wrapper.d.ts +12 -0
- package/dist/types/src/components/Modal/index.d.ts +9 -0
- package/dist/types/src/components/Modal/wrapper.d.ts +51 -0
- package/dist/types/src/components/NavButton/index.d.ts +12 -0
- package/dist/types/src/components/OpeningHours/index.d.ts +7 -0
- package/dist/types/src/components/OptionBox/index.d.ts +9 -0
- package/dist/types/src/components/OptionBox/wrapper.d.ts +20 -0
- package/dist/types/src/components/OverflowBox/index.d.ts +6 -0
- package/dist/types/src/components/OverflowBox/wrapper.d.ts +3 -0
- package/dist/types/src/components/OverflowGrid/index.d.ts +12 -0
- package/dist/types/src/components/OverflowGrid/wrapper.d.ts +44 -0
- package/dist/types/src/components/Page/index.d.ts +12 -0
- package/dist/types/src/components/Panel/index.d.ts +10 -0
- package/dist/types/src/components/Panel/wrapper.d.ts +50 -0
- package/dist/types/src/components/PhoneNumber/index.d.ts +6 -0
- package/dist/types/src/components/Portal/index.d.ts +4 -0
- package/dist/types/src/components/Portal/portal-element.d.ts +6 -0
- package/dist/types/src/components/Portal/portal-namespace.d.ts +1 -0
- package/dist/types/src/components/Portal/portal.d.ts +7 -0
- package/dist/types/src/components/Price/index.d.ts +8 -0
- package/dist/types/src/components/PriceBox/index.d.ts +11 -0
- package/dist/types/src/components/PriceBox/wrapper.d.ts +18 -0
- package/dist/types/src/components/PriceTable/index.d.ts +7 -0
- package/dist/types/src/components/PriceTable/wrapper.d.ts +12 -0
- package/dist/types/src/components/ProductCard/index.d.ts +27 -0
- package/dist/types/src/components/ProductCard/wrapper.d.ts +62 -0
- package/dist/types/src/components/ProductPage/index.d.ts +22 -0
- package/dist/types/src/components/ProgressBar/index.d.ts +7 -0
- package/dist/types/src/components/ProgressBar/wrapper.d.ts +14 -0
- package/dist/types/src/components/RangeSlider/RangeSliderSimple.d.ts +13 -0
- package/dist/types/src/components/RangeSlider/SliderWithLabel.d.ts +13 -0
- package/dist/types/src/components/RangeSlider/handle.d.ts +9 -0
- package/dist/types/src/components/RangeSlider/index.d.ts +13 -0
- package/dist/types/src/components/RangeSlider/track.d.ts +9 -0
- package/dist/types/src/components/RangeSlider/wrapper.d.ts +22 -0
- package/dist/types/src/components/RangeSliderLabel/index.d.ts +8 -0
- package/dist/types/src/components/RangeSliderLabel/wrapper.d.ts +17 -0
- package/dist/types/src/components/Repeat/index.d.ts +9 -0
- package/dist/types/src/components/Result/index.d.ts +6 -0
- package/dist/types/src/components/Result/wrapper.d.ts +27 -0
- package/dist/types/src/components/Root/index.d.ts +6 -0
- package/dist/types/src/components/SearchBar/index.d.ts +8 -0
- package/dist/types/src/components/SearchFilter/index.d.ts +3 -0
- package/dist/types/src/components/SearchTerm/index.d.ts +8 -0
- package/dist/types/src/components/SearchTerm/wrapper.d.ts +20 -0
- package/dist/types/src/components/SectionHeader/index.d.ts +8 -0
- package/dist/types/src/components/SectionHeader/wrapper.d.ts +9 -0
- package/dist/types/src/components/Snackbar/index.d.ts +9 -0
- package/dist/types/src/components/Snackbar/wrapper.d.ts +21 -0
- package/dist/types/src/components/SortSelect/index.d.ts +14 -0
- package/dist/types/src/components/SortSelect/wrapper.d.ts +14 -0
- package/dist/types/src/components/Sphere/Sphere.d.ts +6 -0
- package/dist/types/src/components/Sphere/SphereLightbox.d.ts +6 -0
- package/dist/types/src/components/Sphere/SphereViewer.d.ts +9 -0
- package/dist/types/src/components/Sphere/wrapper.d.ts +5 -0
- package/dist/types/src/components/SrOnly/index.d.ts +3 -0
- package/dist/types/src/components/StateIndicator/index.d.ts +7 -0
- package/dist/types/src/components/SwitchBar/index.d.ts +10 -0
- package/dist/types/src/components/SwitchBar/wrapper.d.ts +46 -0
- package/dist/types/src/components/TableColumn/index.d.ts +9 -0
- package/dist/types/src/components/TableList/index.d.ts +18 -0
- package/dist/types/src/components/Tabs/index.d.ts +12 -0
- package/dist/types/src/components/Tabs/wrapper.d.ts +37 -0
- package/dist/types/src/components/ThreeSixty/Rotation.d.ts +6 -0
- package/dist/types/src/components/ThreeSixty/ThreeSixtLightbox.d.ts +6 -0
- package/dist/types/src/components/ThreeSixty/ThreeSixty.d.ts +9 -0
- package/dist/types/src/components/UspList/index.d.ts +11 -0
- package/dist/types/src/components/UspList/wrapper.d.ts +37 -0
- package/dist/types/src/components/Utility/index.d.ts +16 -0
- package/dist/types/src/components/Video/CustomPlayer.d.ts +10 -0
- package/dist/types/src/components/Video/EmbeddedVideoLightbox.d.ts +8 -0
- package/dist/types/src/components/Video/EmbededVideo.d.ts +8 -0
- package/dist/types/src/components/Video/QuickNavEmbeded.d.ts +7 -0
- package/dist/types/src/components/Video/QuickNavVideo.d.ts +7 -0
- package/dist/types/src/components/Video/Video.d.ts +8 -0
- package/dist/types/src/components/Video/VimeoPlayer.d.ts +7 -0
- package/dist/types/src/components/Video/YoutubePlayer.d.ts +7 -0
- package/dist/types/src/components/Video/useThumbnail.d.ts +2 -0
- package/dist/types/src/components/Video/utils.d.ts +9 -0
- package/dist/types/src/components/Video/wrapper.d.ts +13 -0
- package/dist/types/src/hooks/apolloTypes.d.ts +6 -0
- package/dist/types/src/hooks/useFetch.d.ts +7 -0
- package/dist/types/src/hooks/useHasBeenVisible.d.ts +2 -0
- package/dist/types/src/hooks/useHashGuid.d.ts +2 -0
- package/dist/types/src/hooks/useInitializeTranslation.d.ts +3 -0
- package/dist/types/src/hooks/useInsurance.d.ts +4 -0
- package/dist/types/src/hooks/useIsInViewport.d.ts +5 -0
- package/dist/types/src/hooks/useLoan.d.ts +4 -0
- package/dist/types/src/hooks/useOnScreen.d.ts +2 -0
- package/dist/types/src/hooks/useOutsideClick.d.ts +2 -0
- package/dist/types/src/hooks/usePrevious.d.ts +2 -0
- package/dist/types/src/hooks/useSearchItem.d.ts +4 -0
- package/dist/types/src/hooks/useSearchItemBranch.d.ts +4 -0
- package/dist/types/src/hooks/useSessionStorage.d.ts +7 -0
- package/dist/types/src/hooks/useSubmitLead.d.ts +29 -0
- package/dist/types/src/hooks/useVimeoThumbnail.d.ts +2 -0
- package/dist/types/src/index.d.ts +13 -0
- package/dist/types/src/layout/helpers.d.ts +1 -0
- package/dist/types/src/layout/keyframes.d.ts +3 -0
- package/dist/types/src/layout/theme.d.ts +49 -0
- package/dist/types/src/layouts/WaykeComposite.d.ts +12 -0
- package/dist/types/src/layouts/WaykeCompositeWithProvider.d.ts +9 -0
- package/dist/types/src/layouts/search/index.d.ts +19 -0
- package/dist/types/src/layouts/searchItem/Accessories/AccessoryModal.d.ts +8 -0
- package/dist/types/src/layouts/searchItem/Accessories/index.d.ts +7 -0
- package/dist/types/src/layouts/searchItem/Branch.d.ts +9 -0
- package/dist/types/src/layouts/searchItem/BranchModal.d.ts +9 -0
- package/dist/types/src/layouts/searchItem/CheckList.d.ts +21 -0
- package/dist/types/src/layouts/searchItem/DemoCarModal.d.ts +6 -0
- package/dist/types/src/layouts/searchItem/Documents.d.ts +7 -0
- package/dist/types/src/layouts/searchItem/ManufacturerPackagesOption.d.ts +7 -0
- package/dist/types/src/layouts/searchItem/MetadataItem.d.ts +10 -0
- package/dist/types/src/layouts/searchItem/PackageOptionModal.d.ts +17 -0
- package/dist/types/src/layouts/searchItem/PackageOptions.d.ts +7 -0
- package/dist/types/src/layouts/searchItem/Page404.d.ts +3 -0
- package/dist/types/src/layouts/searchItem/PageLoading.d.ts +3 -0
- package/dist/types/src/layouts/searchItem/Property.d.ts +8 -0
- package/dist/types/src/layouts/searchItem/Related.d.ts +11 -0
- package/dist/types/src/layouts/searchItem/index.d.ts +17 -0
- package/dist/types/src/layouts/searchItem/useEcom.d.ts +8 -0
- package/dist/types/src/providers/WaykeItemProvidet.d.ts +24 -0
- package/dist/types/src/providers/WaykeProvider.d.ts +26 -0
- package/dist/types/src/providers/graphqlProvider.d.ts +6 -0
- package/dist/types/src/providers/themeProvider.d.ts +6 -0
- package/dist/types/src/queries/INSURANCE_CALCULATION.d.ts +2 -0
- package/dist/types/src/queries/LOAN_CALCULATION.d.ts +2 -0
- package/dist/types/src/queries/SEARCH_ITEM_BRANCH_QUERY.d.ts +2 -0
- package/dist/types/src/queries/SEARCH_ITEM_QUERY.d.ts +2 -0
- package/dist/types/src/utils/I18n.d.ts +4 -0
- package/dist/types/src/utils/constants.d.ts +67 -0
- package/dist/types/src/utils/converters.d.ts +1 -0
- package/dist/types/src/utils/deep-copy.d.ts +5 -0
- package/dist/types/src/utils/formats.d.ts +8 -0
- package/dist/types/src/utils/phonenumbers.d.ts +1 -0
- package/dist/types/src/utils/pubsub/Actions.d.ts +16 -0
- package/dist/types/src/utils/pubsub/Events.d.ts +147 -0
- package/dist/types/src/utils/pubsub/pubsub.d.ts +44 -0
- package/dist/types/src/utils/regex.d.ts +3 -0
- package/dist/types/src/utils/sortOptions.d.ts +13 -0
- package/dist/types/src/utils/specification.d.ts +28 -0
- package/dist/types/src/utils/ssn.d.ts +1 -0
- package/dist/types/src/utils/url.d.ts +1 -0
- package/dist/types/src/utils/vehicle-properties/compare-basic-properties.d.ts +3 -0
- package/dist/types/src/utils/vehicle-properties/compare-categories.d.ts +3 -0
- package/dist/types/src/utils/vehicle-properties/compare-properties.d.ts +3 -0
- package/dist/types/src/utils/vehicle-properties/custom-property-adder.d.ts +13 -0
- package/dist/types/src/utils/vehicle-properties/property-remover.d.ts +7 -0
- package/dist/types/src/utils/vehicle-properties/property-tree-creator.d.ts +31 -0
- package/dist/types/src/utils/vehicle-properties/property-tree-sorter.d.ts +3 -0
- package/package.json +29 -26
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
declare const theme: {
|
|
2
|
+
color: {
|
|
3
|
+
bg: string;
|
|
4
|
+
link: string;
|
|
5
|
+
accent: string;
|
|
6
|
+
accentTransparent: string;
|
|
7
|
+
accentDark: string;
|
|
8
|
+
border: string;
|
|
9
|
+
textDark: string;
|
|
10
|
+
textDarkLighten: string;
|
|
11
|
+
textLight: string;
|
|
12
|
+
hoverOverlay: string;
|
|
13
|
+
disabledBg: string;
|
|
14
|
+
disabledText: string;
|
|
15
|
+
placeholder: string;
|
|
16
|
+
ui: {
|
|
17
|
+
positiveLight: string;
|
|
18
|
+
positive: string;
|
|
19
|
+
neutralLight: string;
|
|
20
|
+
neutral: string;
|
|
21
|
+
negativeLight: string;
|
|
22
|
+
negative: string;
|
|
23
|
+
infoLight: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
breakpoint: {
|
|
27
|
+
Sm: string;
|
|
28
|
+
LtSm: string;
|
|
29
|
+
Md: string;
|
|
30
|
+
LtMd: string;
|
|
31
|
+
Lg: string;
|
|
32
|
+
LtLg: string;
|
|
33
|
+
};
|
|
34
|
+
mask: {
|
|
35
|
+
gradient: {
|
|
36
|
+
toTop: string;
|
|
37
|
+
toBottom: string;
|
|
38
|
+
toLeft: string;
|
|
39
|
+
toRight: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
distances: {
|
|
43
|
+
baseUnit: string;
|
|
44
|
+
inputHeight: string;
|
|
45
|
+
containerMaxWidth: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export type Theme = typeof theme;
|
|
49
|
+
export default theme;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WaykeSearchProps } from './search';
|
|
3
|
+
import { WaykeSearchItemProps } from './searchItem';
|
|
4
|
+
type WaykeCompositeBaseProps = Omit<WaykeSearchProps & WaykeSearchItemProps, 'id'>;
|
|
5
|
+
export type WaykeCompositeProps = Omit<WaykeCompositeBaseProps, 'hashRoute' | 'onClickSearchItem'> & {
|
|
6
|
+
/** @deprecated Has no effect. Hash routing is used unless `pathRoute` is set. */
|
|
7
|
+
hashRoute?: WaykeCompositeBaseProps['hashRoute'];
|
|
8
|
+
/** @deprecated Has no effect. Subscribe to the `ItemClicked` event with `WaykePubSub` instead. */
|
|
9
|
+
onClickSearchItem?: WaykeCompositeBaseProps['onClickSearchItem'];
|
|
10
|
+
};
|
|
11
|
+
declare const WaykeComposite: ({ marketCode, filterList, initialQueryParams, removeSearchBar, removeFilterOptions, disableResetScrollOnInit, placeholderImage, pathRoute, modifyDocumentTitleItem, modifyDocumentTitleSearch, displayBranchName, conversionOptions, }: WaykeCompositeProps) => React.JSX.Element | null;
|
|
12
|
+
export default WaykeComposite;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WaykeProviderProps } from '../providers/WaykeProvider';
|
|
3
|
+
import { WaykeCompositeProps } from './WaykeComposite';
|
|
4
|
+
export interface WaykeCompositeWithProviderProps {
|
|
5
|
+
provider: WaykeProviderProps;
|
|
6
|
+
composite?: WaykeCompositeProps;
|
|
7
|
+
}
|
|
8
|
+
declare const WaykeCompositeWithProvider: ({ provider, composite }: WaykeCompositeWithProviderProps) => React.JSX.Element;
|
|
9
|
+
export default WaykeCompositeWithProvider;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SearchFilterTypes } from '../../@types/filter';
|
|
3
|
+
import { MarketCode } from '../../@types/market';
|
|
4
|
+
import { OnItemClick } from '../../components/ProductCard';
|
|
5
|
+
export interface WaykeSearchProps {
|
|
6
|
+
marketCode?: MarketCode;
|
|
7
|
+
filterList?: SearchFilterTypes[];
|
|
8
|
+
initialQueryParams?: URLSearchParams | string;
|
|
9
|
+
removeSearchBar?: boolean;
|
|
10
|
+
removeFilterOptions?: boolean;
|
|
11
|
+
placeholderImage?: string;
|
|
12
|
+
hashRoute?: boolean;
|
|
13
|
+
pathRoute?: string;
|
|
14
|
+
modifyDocumentTitleSearch?: string;
|
|
15
|
+
displayBranchName?: boolean;
|
|
16
|
+
onClickSearchItem?: (data: OnItemClick) => void;
|
|
17
|
+
}
|
|
18
|
+
declare const WaykeSearch: ({ marketCode, filterList: _filterList, initialQueryParams, hashRoute, pathRoute, removeSearchBar, placeholderImage, removeFilterOptions, modifyDocumentTitleSearch, displayBranchName, onClickSearchItem, }: WaykeSearchProps) => React.JSX.Element | null;
|
|
19
|
+
export default WaykeSearch;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Accessory } from '../../../@types/codegen/types';
|
|
3
|
+
interface AccesoryModalProps {
|
|
4
|
+
accessory: Accessory;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
}
|
|
7
|
+
declare const AccesoryModal: ({ accessory, onClose }: AccesoryModalProps) => React.JSX.Element;
|
|
8
|
+
export default AccesoryModal;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Accessory } from '../../../@types/codegen/types';
|
|
3
|
+
interface AccessoriesSectionProps {
|
|
4
|
+
accessories?: Accessory[];
|
|
5
|
+
}
|
|
6
|
+
declare const AccessoriesSection: ({ accessories }: AccessoriesSectionProps) => React.JSX.Element | null;
|
|
7
|
+
export default AccessoriesSection;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Branch, Maybe } from '../../@types/codegen/types';
|
|
3
|
+
interface BranchProps {
|
|
4
|
+
branch?: Maybe<Branch>;
|
|
5
|
+
loading: boolean;
|
|
6
|
+
displayBranchName?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const Branch: ({ branch, loading, displayBranchName }: BranchProps) => React.JSX.Element | null;
|
|
9
|
+
export default Branch;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BranchConnection } from '../../@types/codegen/types';
|
|
3
|
+
interface BranchModalProps {
|
|
4
|
+
loading: boolean;
|
|
5
|
+
connections?: BranchConnection[];
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
}
|
|
8
|
+
declare const BranchModal: ({ loading, connections, onClose }: BranchModalProps) => React.JSX.Element | null;
|
|
9
|
+
export default BranchModal;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Branch, ContactOptions, Ecommerce, Manufacturer, PackageOption, VehicleData } from '../../@types/codegen/types';
|
|
3
|
+
import { ConversionOption } from '../../@types/conversion';
|
|
4
|
+
import { MarketCode } from '../../@types/market';
|
|
5
|
+
interface CheckList {
|
|
6
|
+
id: string;
|
|
7
|
+
title?: string | null;
|
|
8
|
+
vehicleData?: VehicleData | null;
|
|
9
|
+
conversionOptions?: ConversionOption[];
|
|
10
|
+
marketCode?: MarketCode;
|
|
11
|
+
manufacturer?: Manufacturer | null;
|
|
12
|
+
packageOptions: PackageOption[];
|
|
13
|
+
ecommerce?: Ecommerce | null;
|
|
14
|
+
branch?: Branch | null;
|
|
15
|
+
contact?: ContactOptions | null;
|
|
16
|
+
loadingCentralStorageVehicle: boolean;
|
|
17
|
+
availableFrom?: Date | null;
|
|
18
|
+
toggleEcomModal?: () => void;
|
|
19
|
+
}
|
|
20
|
+
declare const CheckList: ({ id, title, vehicleData, conversionOptions, marketCode, manufacturer, packageOptions, ecommerce, branch, contact, availableFrom, toggleEcomModal, loadingCentralStorageVehicle, }: CheckList) => React.JSX.Element;
|
|
21
|
+
export default CheckList;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Scalars } from '../../@types/codegen/types';
|
|
3
|
+
interface DocumentsProps {
|
|
4
|
+
documents: Scalars['FileDocument']['input'][];
|
|
5
|
+
}
|
|
6
|
+
declare const Documents: ({ documents }: DocumentsProps) => React.JSX.Element | null;
|
|
7
|
+
export default Documents;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Maybe, PackageOption } from '../../@types/codegen/types';
|
|
3
|
+
interface ManufacturerPackageOption {
|
|
4
|
+
packageOption?: Maybe<PackageOption>;
|
|
5
|
+
}
|
|
6
|
+
declare const ManufacturerPackageOption: ({ packageOption }: ManufacturerPackageOption) => React.JSX.Element | null;
|
|
7
|
+
export default ManufacturerPackageOption;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Property } from '../../@types/vehicle-properties';
|
|
3
|
+
interface MetadataItemProps {
|
|
4
|
+
name: string;
|
|
5
|
+
hint?: string | null | undefined;
|
|
6
|
+
value: Property['value'];
|
|
7
|
+
unit: Property['unit'];
|
|
8
|
+
}
|
|
9
|
+
declare const MetadataItem: ({ name, hint, value, unit }: MetadataItemProps) => React.JSX.Element;
|
|
10
|
+
export default MetadataItem;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ModelLink {
|
|
3
|
+
url?: string | null;
|
|
4
|
+
title?: string | null;
|
|
5
|
+
}
|
|
6
|
+
export interface PackageOptionModalData {
|
|
7
|
+
title?: string | null;
|
|
8
|
+
image?: string | null;
|
|
9
|
+
description?: string | null;
|
|
10
|
+
link?: ModelLink | null;
|
|
11
|
+
}
|
|
12
|
+
interface PackageOptionsModalProps {
|
|
13
|
+
packageOption: PackageOptionModalData;
|
|
14
|
+
onClose: () => void;
|
|
15
|
+
}
|
|
16
|
+
declare const PackageOptionModal: ({ packageOption, onClose }: PackageOptionsModalProps) => React.JSX.Element;
|
|
17
|
+
export default PackageOptionModal;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PackageOption } from '../../@types/codegen/types';
|
|
3
|
+
interface PackageOptionsProps {
|
|
4
|
+
packageOptions?: PackageOption[] | null;
|
|
5
|
+
}
|
|
6
|
+
declare const PackageOptions: ({ packageOptions }: PackageOptionsProps) => React.JSX.Element | null;
|
|
7
|
+
export default PackageOptions;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { VehicleData } from '../../@types/codegen/types';
|
|
3
|
+
interface PropertySetProps {
|
|
4
|
+
propertySet: any;
|
|
5
|
+
vehicleData: VehicleData;
|
|
6
|
+
}
|
|
7
|
+
declare const PropertySet: ({ propertySet, vehicleData }: PropertySetProps) => React.JSX.Element;
|
|
8
|
+
export default PropertySet;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface RelatedProps {
|
|
3
|
+
id: string;
|
|
4
|
+
hashRoute?: boolean;
|
|
5
|
+
pathRoute?: string;
|
|
6
|
+
authorizedReseller?: boolean;
|
|
7
|
+
displayBranchName?: boolean;
|
|
8
|
+
onClickSearchItem?: (id: string) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const Related: ({ id, hashRoute, pathRoute, authorizedReseller, displayBranchName, onClickSearchItem, }: RelatedProps) => React.JSX.Element | null;
|
|
11
|
+
export default Related;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ConversionOption } from '../../@types/conversion';
|
|
3
|
+
import { MarketCode } from '../../@types/market';
|
|
4
|
+
export interface WaykeSearchItemProps {
|
|
5
|
+
marketCode?: MarketCode;
|
|
6
|
+
id: string;
|
|
7
|
+
hashRoute?: boolean;
|
|
8
|
+
pathRoute?: string;
|
|
9
|
+
disableResetScrollOnInit?: boolean;
|
|
10
|
+
placeholderImage?: string;
|
|
11
|
+
modifyDocumentTitleItem?: boolean;
|
|
12
|
+
displayBranchName?: boolean;
|
|
13
|
+
conversionOptions?: ConversionOption[];
|
|
14
|
+
onClickSearchItem?: (id: string) => void;
|
|
15
|
+
}
|
|
16
|
+
declare const WaykeSearchItem: ({ marketCode, id, hashRoute, pathRoute, disableResetScrollOnInit, placeholderImage, modifyDocumentTitleItem, displayBranchName, conversionOptions, onClickSearchItem, }: WaykeSearchItemProps) => React.JSX.Element | null;
|
|
17
|
+
export default WaykeSearchItem;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Branch, Maybe } from '../../@types/codegen/types';
|
|
2
|
+
import { SettingsContextProps } from '../../State/Settings/SettingsContext';
|
|
3
|
+
interface EcomWeb {
|
|
4
|
+
start: () => void;
|
|
5
|
+
destroy: () => void;
|
|
6
|
+
}
|
|
7
|
+
declare function useEcom(id: string, ecomSettings: SettingsContextProps['ecomSettings'], branch?: Maybe<Branch>): import("react").RefObject<EcomWeb | undefined>;
|
|
8
|
+
export default useEcom;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface EcomSettings {
|
|
3
|
+
url: string;
|
|
4
|
+
/** @deprecated Not used since 3.0.0. Will be removed in the next major version. */
|
|
5
|
+
useBankId?: boolean;
|
|
6
|
+
/** @deprecated Not used since 3.0.0. Will be removed in the next major version. */
|
|
7
|
+
displayBankIdAlert?: boolean;
|
|
8
|
+
serviceLogotypeUrl?: string;
|
|
9
|
+
bankIdThumbprint?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface WaykeItemProviderSettings {
|
|
12
|
+
url: string;
|
|
13
|
+
urlMlt?: string;
|
|
14
|
+
graphQlUrl: string;
|
|
15
|
+
apiKey?: string;
|
|
16
|
+
ecomSettings?: EcomSettings;
|
|
17
|
+
googleMapsApiKey?: string;
|
|
18
|
+
googleMapsMarker?: string;
|
|
19
|
+
}
|
|
20
|
+
export type WaykeItemProviderProps = WaykeItemProviderSettings & {
|
|
21
|
+
children?: React.ReactNode;
|
|
22
|
+
};
|
|
23
|
+
declare const WaykeItemProvider: ({ url, urlMlt, apiKey, ecomSettings, graphQlUrl, googleMapsApiKey, googleMapsMarker, children, }: WaykeItemProviderProps) => React.JSX.Element;
|
|
24
|
+
export default WaykeItemProvider;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface EcomSettings {
|
|
3
|
+
url: string;
|
|
4
|
+
/** @deprecated Not used since 3.0.0. Will be removed in the next major version. */
|
|
5
|
+
useBankId?: boolean;
|
|
6
|
+
/** @deprecated Not used since 3.0.0. Will be removed in the next major version. */
|
|
7
|
+
displayBankIdAlert?: boolean;
|
|
8
|
+
serviceLogotypeUrl?: string;
|
|
9
|
+
bankIdThumbprint?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface WaykeProviderSettings {
|
|
12
|
+
url: string;
|
|
13
|
+
urlMlt?: string;
|
|
14
|
+
apiKey?: string;
|
|
15
|
+
graphQlUrl: string;
|
|
16
|
+
ecomSettings?: EcomSettings;
|
|
17
|
+
googleMapsApiKey?: string;
|
|
18
|
+
googleMapsMarker?: string;
|
|
19
|
+
useQueryParamsFromUrl?: boolean;
|
|
20
|
+
pathRoute?: string;
|
|
21
|
+
}
|
|
22
|
+
export type WaykeProviderProps = WaykeProviderSettings & {
|
|
23
|
+
children?: React.ReactNode;
|
|
24
|
+
};
|
|
25
|
+
declare const WaykeProvider: ({ url, urlMlt, apiKey, ecomSettings, graphQlUrl, googleMapsApiKey, googleMapsMarker, useQueryParamsFromUrl, pathRoute, children, }: WaykeProviderProps) => React.JSX.Element;
|
|
26
|
+
export default WaykeProvider;
|