@skodaflow/web-library 2.1.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 +107 -0
- package/build/README.md +107 -0
- package/build/components/accordion/accordion.d.ts +71 -0
- package/build/components/accordion/index.d.ts +1 -0
- package/build/components/backdrop/backdrop.d.ts +42 -0
- package/build/components/backdrop/index.d.ts +1 -0
- package/build/components/banner/banner.d.ts +57 -0
- package/build/components/banner/index.d.ts +1 -0
- package/build/components/button/button.d.ts +51 -0
- package/build/components/button/index.d.ts +1 -0
- package/build/components/cardContainer/cardContainer.d.ts +21 -0
- package/build/components/cardContainer/index.d.ts +1 -0
- package/build/components/cardMenu/cardMenu.d.ts +85 -0
- package/build/components/cardMenu/hooks/useCardMenu.d.ts +7 -0
- package/build/components/cardMenu/index.d.ts +1 -0
- package/build/components/cardMenu/styled/drawerStyled.d.ts +6 -0
- package/build/components/cardMenu/styled/menuListStyled.d.ts +23 -0
- package/build/components/cardMenu/styled/popperStyled.d.ts +7 -0
- package/build/components/checkbox/checkbox.d.ts +54 -0
- package/build/components/checkbox/index.d.ts +1 -0
- package/build/components/chip/chipDropdownChildren/chipDropdownChildren.d.ts +31 -0
- package/build/components/chip/chipFocusVisibleStyled.d.ts +9 -0
- package/build/components/chip/chipImage/chipImage.d.ts +43 -0
- package/build/components/chip/chipMultiselect/multiSelectChip.d.ts +36 -0
- package/build/components/chip/index.d.ts +4 -0
- package/build/components/chip/regular/chip.d.ts +39 -0
- package/build/components/common/helperText.d.ts +29 -0
- package/build/components/common/hook/backdrop.d.ts +9 -0
- package/build/components/common/hook/useWindowSize.d.ts +5 -0
- package/build/components/common/imageComponent.d.ts +17 -0
- package/build/components/common/interface/textInputInterface.d.ts +96 -0
- package/build/components/common/menuContainer.d.ts +20 -0
- package/build/components/common/menuEmpty.d.ts +16 -0
- package/build/components/common/resizableSliderInput.d.ts +17 -0
- package/build/components/common/styled/buttonFocusVisibleStyled.d.ts +10 -0
- package/build/components/common/styled/formControlLabelStyled.d.ts +8 -0
- package/build/components/common/styled/helperTextContainerStyled.d.ts +11 -0
- package/build/components/common/styled/sliderValuesStyled.d.ts +9 -0
- package/build/components/common/styled/textFieldStyled.d.ts +29 -0
- package/build/components/common/textInputHelperText.d.ts +30 -0
- package/build/components/common/type/ButtonVariant.d.ts +1 -0
- package/build/components/container/container.d.ts +44 -0
- package/build/components/container/index.d.ts +1 -0
- package/build/components/controls/controls.d.ts +37 -0
- package/build/components/controls/index.d.ts +1 -0
- package/build/components/divider/divider.d.ts +27 -0
- package/build/components/divider/index.d.ts +1 -0
- package/build/components/drawer/drawer.d.ts +66 -0
- package/build/components/drawer/index.d.ts +1 -0
- package/build/components/flag/availableFLags.d.ts +1 -0
- package/build/components/flag/flag.d.ts +28 -0
- package/build/components/flag/index.d.ts +1 -0
- package/build/components/grid/grid.d.ts +116 -0
- package/build/components/grid/index.d.ts +1 -0
- package/build/components/icon/availableIcons.d.ts +1 -0
- package/build/components/icon/icon.d.ts +28 -0
- package/build/components/icon/index.d.ts +1 -0
- package/build/components/indicator/index.d.ts +1 -0
- package/build/components/indicator/indicator.d.ts +22 -0
- package/build/components/label/index.d.ts +1 -0
- package/build/components/label/label.d.ts +18 -0
- package/build/components/labelCO2/index.d.ts +1 -0
- package/build/components/labelCO2/labelCO2.d.ts +6 -0
- package/build/components/labelFeature/index.d.ts +1 -0
- package/build/components/labelFeature/labelFeature.d.ts +19 -0
- package/build/components/labelPromotional/index.d.ts +1 -0
- package/build/components/labelPromotional/labelPromotional.d.ts +26 -0
- package/build/components/labelStatus/index.d.ts +1 -0
- package/build/components/labelStatus/labelStatus.d.ts +19 -0
- package/build/components/menu/index.d.ts +1 -0
- package/build/components/menu/menu.d.ts +61 -0
- package/build/components/menuItem/index.d.ts +1 -0
- package/build/components/menuItem/menuItem.d.ts +29 -0
- package/build/components/modal/contentDiv.d.ts +14 -0
- package/build/components/modal/index.d.ts +1 -0
- package/build/components/modal/modal.d.ts +67 -0
- package/build/components/numbering/index.d.ts +1 -0
- package/build/components/numbering/numbering.d.ts +16 -0
- package/build/components/pagination/index.d.ts +1 -0
- package/build/components/pagination/pagination.d.ts +76 -0
- package/build/components/progressBar/components/loader.d.ts +28 -0
- package/build/components/progressBar/components/spinner.d.ts +28 -0
- package/build/components/progressBar/components/styledProgressBarMessage.d.ts +5 -0
- package/build/components/progressBar/index.d.ts +1 -0
- package/build/components/progressBar/progressBar.d.ts +10 -0
- package/build/components/radioButton/index.d.ts +1 -0
- package/build/components/radioButton/radioButton.d.ts +47 -0
- package/build/components/selectInput/formControlSelectStyled.d.ts +27 -0
- package/build/components/selectInput/hook/useSelectInput.d.ts +5 -0
- package/build/components/selectInput/index.d.ts +1 -0
- package/build/components/selectInput/inputLabelSelect.d.ts +8 -0
- package/build/components/selectInput/selectInput.d.ts +83 -0
- package/build/components/slider/containerStyled.d.ts +13 -0
- package/build/components/slider/index.d.ts +1 -0
- package/build/components/slider/slider.d.ts +139 -0
- package/build/components/snackbar/index.d.ts +1 -0
- package/build/components/snackbar/snackbar.d.ts +82 -0
- package/build/components/snackbar/snackbarMessage.d.ts +29 -0
- package/build/components/tab/hook/useTabs.d.ts +9 -0
- package/build/components/tab/index.d.ts +3 -0
- package/build/components/tab/menuTab.d.ts +36 -0
- package/build/components/tab/secondaryNavigation/secondaryNavigationTabs.d.ts +29 -0
- package/build/components/tab/secondaryNavigation/secondaryTabStyled.d.ts +13 -0
- package/build/components/tab/tab.d.ts +48 -0
- package/build/components/tab/tabPanel.d.ts +20 -0
- package/build/components/tab/tabStyled.d.ts +43 -0
- package/build/components/tab/tabs.d.ts +52 -0
- package/build/components/textArea/hook/useTextAreaEffect.d.ts +1 -0
- package/build/components/textArea/index.d.ts +1 -0
- package/build/components/textArea/textArea.d.ts +3 -0
- package/build/components/textInput/hook/useTextInput.d.ts +7 -0
- package/build/components/textInput/hook/useTextInputEffect.d.ts +1 -0
- package/build/components/textInput/index.d.ts +1 -0
- package/build/components/textInput/textInput.d.ts +9 -0
- package/build/components/toggleSwitch/index.d.ts +1 -0
- package/build/components/toggleSwitch/toggleSwitch.d.ts +46 -0
- package/build/components/tooltip/index.d.ts +1 -0
- package/build/components/tooltip/tooltip.d.ts +32 -0
- package/build/design/skoda/components/theme.accordion.d.ts +2 -0
- package/build/design/skoda/components/theme.backdrop.d.ts +2 -0
- package/build/design/skoda/components/theme.breakpoints.d.ts +9 -0
- package/build/design/skoda/components/theme.button.d.ts +40 -0
- package/build/design/skoda/components/theme.checkbox.d.ts +2 -0
- package/build/design/skoda/components/theme.chip.d.ts +11 -0
- package/build/design/skoda/components/theme.container.d.ts +3 -0
- package/build/design/skoda/components/theme.divider.d.ts +2 -0
- package/build/design/skoda/components/theme.drawer.d.ts +2 -0
- package/build/design/skoda/components/theme.formControlLabel.d.ts +2 -0
- package/build/design/skoda/components/theme.grid.d.ts +3 -0
- package/build/design/skoda/components/theme.icon.d.ts +10 -0
- package/build/design/skoda/components/theme.menu.d.ts +2 -0
- package/build/design/skoda/components/theme.menuItem.d.ts +2 -0
- package/build/design/skoda/components/theme.modal.d.ts +2 -0
- package/build/design/skoda/components/theme.pagination.d.ts +2 -0
- package/build/design/skoda/components/theme.radio.d.ts +2 -0
- package/build/design/skoda/components/theme.select.d.ts +2 -0
- package/build/design/skoda/components/theme.slider.d.ts +2 -0
- package/build/design/skoda/components/theme.snackbar.d.ts +2 -0
- package/build/design/skoda/components/theme.switch.d.ts +7 -0
- package/build/design/skoda/components/theme.tab.d.ts +2 -0
- package/build/design/skoda/components/theme.textField.d.ts +2 -0
- package/build/design/skoda/components/theme.tooltip.d.ts +2 -0
- package/build/design/skoda/index.d.ts +8 -0
- package/build/design/skoda/organisms/theme.card.d.ts +3 -0
- package/build/design/skoda/theme.baseline.d.ts +5 -0
- package/build/design/skoda/theme.breakpoints.d.ts +5 -0
- package/build/design/skoda/theme.constants.d.ts +7 -0
- package/build/design/skoda/theme.palette.d.ts +14 -0
- package/build/design/skoda/theme.typography.d.ts +22 -0
- package/build/index.d.ts +45 -0
- package/build/index.es.js +30 -0
- package/build/index.es.js.map +1 -0
- package/build/index.js +16 -0
- package/build/index.js.map +1 -0
- package/build/organisms/cardOwnedVehicle/cardOwnedVehicle.d.ts +118 -0
- package/build/organisms/cardOwnedVehicle/cardOwnedVehicleComponent.d.ts +4 -0
- package/build/organisms/cardOwnedVehicle/index.d.ts +1 -0
- package/build/organisms/cardPhotoAdjustable/cardPhotoAdjustable.d.ts +89 -0
- package/build/organisms/cardPhotoAdjustable/cardPhotoAdjustableComponent.d.ts +4 -0
- package/build/organisms/cardPhotoAdjustable/index.d.ts +1 -0
- package/build/organisms/cardPhotoFixed/cardPhotoFixed.d.ts +124 -0
- package/build/organisms/cardPhotoFixed/cardPhotoFixedComponent.d.ts +4 -0
- package/build/organisms/cardPhotoFixed/index.d.ts +1 -0
- package/build/organisms/cardPromoVehicle/cardPromoVehicle.d.ts +132 -0
- package/build/organisms/cardPromoVehicle/cardPromoVehicleComponent.d.ts +4 -0
- package/build/organisms/cardPromoVehicle/index.d.ts +1 -0
- package/build/organisms/cardTypeOnly/cardTypeOnly.d.ts +59 -0
- package/build/organisms/cardTypeOnly/cardTypeOnlyComponent.d.ts +4 -0
- package/build/organisms/cardTypeOnly/index.d.ts +1 -0
- package/build/organisms/carousel/carousel.d.ts +134 -0
- package/build/organisms/carousel/carouselButton.d.ts +11 -0
- package/build/organisms/carousel/carouselTemplate.d.ts +8 -0
- package/build/organisms/carousel/index.d.ts +1 -0
- package/build/organisms/carousel/styledComponents/styledCarouselHorizontal.d.ts +12 -0
- package/build/organisms/carousel/styledComponents/styledCarouselVertical.d.ts +8 -0
- package/build/organisms/common/buttonCardComponent/buttonCardComponent.d.ts +19 -0
- package/build/organisms/common/cardOpacitylayer/cardOpacityTyping.d.ts +2 -0
- package/build/organisms/common/infoTextCardComponent/infoTextCardComponent.d.ts +21 -0
- package/build/organisms/common/menuCardComponent/menuCardComponent.d.ts +47 -0
- package/build/organisms/common/styled/cardStandardWrapperStyled.d.ts +11 -0
- package/build/organisms/heroImageCard/heroImageCard.d.ts +100 -0
- package/build/organisms/heroImageCard/heroImageCardComponent.d.ts +4 -0
- package/build/organisms/heroImageCard/index.d.ts +1 -0
- package/build/organisms/heroImageCard/videoCardController.d.ts +12 -0
- package/build/organisms/maps/hook/useMap.d.ts +7 -0
- package/build/organisms/maps/index.d.ts +1 -0
- package/build/organisms/maps/mapComponents/infoWindowConfig.d.ts +5 -0
- package/build/organisms/maps/mapComponents/mapComponent.d.ts +16 -0
- package/build/organisms/maps/mapComponents/mapStyled.d.ts +9 -0
- package/build/organisms/maps/mapComponents/markerComponent.d.ts +22 -0
- package/build/organisms/maps/maps.d.ts +84 -0
- package/build/organisms/maps/utils/mapConfig.d.ts +29 -0
- package/build/organisms/maps/utils/mapIcons.d.ts +9 -0
- package/build/organisms/maps/utils/style.d.ts +19 -0
- package/build/organisms/shortcutLink/index.d.ts +1 -0
- package/build/organisms/shortcutLink/shortcutLink.d.ts +11 -0
- package/build/organisms/textCta/index.d.ts +1 -0
- package/build/organisms/textCta/textCta.d.ts +82 -0
- package/build/organisms/tile/index.d.ts +1 -0
- package/build/organisms/tile/tile.d.ts +85 -0
- package/build/utils/enum.d.ts +25 -0
- package/build/utils/icons.d.ts +1 -0
- package/build/utils/types.d.ts +5 -0
- package/build/utils/utilities.d.ts +11 -0
- package/package.json +114 -0
- package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Black.ttf +0 -0
- package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Black.woff +0 -0
- package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Black.woff2 +0 -0
- package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Bold.ttf +0 -0
- package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Bold.woff +0 -0
- package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Bold.woff2 +0 -0
- package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Light.ttf +0 -0
- package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Light.woff +0 -0
- package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Light.woff2 +0 -0
- package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Regular.ttf +0 -0
- package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Regular.woff +0 -0
- package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Regular.woff2 +0 -0
- package/theme/skoda/fonts/SKODANextIcons-Filled.eot +0 -0
- package/theme/skoda/fonts/SKODANextIcons-Filled.woff +0 -0
- package/theme/skoda/fonts/SKODANextIcons-Regular.eot +0 -0
- package/theme/skoda/fonts/SKODANextIcons-Regular.woff +0 -0
- package/theme/skoda/fonts.css +1 -0
- package/theme/skoda/globals.css +1 -0
- package/theme/skoda/icons.css +1 -0
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { EmblaCarouselType, EmblaOptionsType } from 'embla-carousel-react';
|
|
3
|
+
import { ControllerSize, ControlVariant, DarkLightOptions, IconsStyle } from '../../utils/types';
|
|
4
|
+
export declare type CarouselPropType = {
|
|
5
|
+
/**
|
|
6
|
+
* Align the slides relative to the carousel viewport. Use one of the predefined alignments start, center or end. Alternatively, provide a number between 0 - 1 to align the slides, where 0.5 equals 50%.
|
|
7
|
+
*/
|
|
8
|
+
align?: 'start' | 'center' | 'end' | number;
|
|
9
|
+
/**
|
|
10
|
+
* Autoplay, if true the autoplay functionality will be added to the carousel. Default is false.
|
|
11
|
+
*/
|
|
12
|
+
autoPlay?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Choose scroll axis between x and y.
|
|
15
|
+
*/
|
|
16
|
+
axis?: 'x' | 'y';
|
|
17
|
+
/**
|
|
18
|
+
* if true, the scrollbar is replaced with bullet scroll. visible only with SlideToShow 1.Default is false.
|
|
19
|
+
*/
|
|
20
|
+
bulletScroll?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* defines the bullet-scroller style. can be 'dash' or 'dot'.
|
|
23
|
+
*/
|
|
24
|
+
bulletStyle?: 'dash' | 'dot';
|
|
25
|
+
/**
|
|
26
|
+
* defines the bullet-scroller color theme. can be 'light' or 'dark'.
|
|
27
|
+
*/
|
|
28
|
+
bulletTheme?: 'light' | 'dark';
|
|
29
|
+
/**
|
|
30
|
+
* Definition of height or clickable area for buttons next and prev. value should be in "px" or "%".
|
|
31
|
+
*/
|
|
32
|
+
buttonAreaControlsHeight?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Buttons controls, if true the buttons will be visible. Default is true.
|
|
35
|
+
*/
|
|
36
|
+
buttonControls?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Definition of position or clickable area for buttons next and prev. value should be in "px" and default position is top: 0.
|
|
39
|
+
*/
|
|
40
|
+
buttonControlsPosition?: string;
|
|
41
|
+
/**
|
|
42
|
+
* control color, can be "dark" or "light".
|
|
43
|
+
*/
|
|
44
|
+
controlColor?: DarkLightOptions;
|
|
45
|
+
/**
|
|
46
|
+
* icon font size, can be "small" or "medium".
|
|
47
|
+
*/
|
|
48
|
+
controlIconFontSize?: ControllerSize;
|
|
49
|
+
/**
|
|
50
|
+
* icon style, can be "regular" or "filled".
|
|
51
|
+
*/
|
|
52
|
+
controlIconStyle?: IconsStyle;
|
|
53
|
+
/**
|
|
54
|
+
* control variant, can be "standard" or "outline".
|
|
55
|
+
*/
|
|
56
|
+
controlVariant?: ControlVariant;
|
|
57
|
+
/**
|
|
58
|
+
* Class applied to the main container carousel. Default value ''.
|
|
59
|
+
* this class can be used also to provide a prefix name for ID applied to each slide inside the carousel.
|
|
60
|
+
* eg. class applied to container carousel : my-carousel
|
|
61
|
+
* ID applied for each slide : my-carousel__slide-0 (number is the index of slide).
|
|
62
|
+
*/
|
|
63
|
+
cssClass?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Direction carousel ltr or rtl. Default ltr.
|
|
66
|
+
*/
|
|
67
|
+
direction?: any;
|
|
68
|
+
/**
|
|
69
|
+
* set height for slide carousel.
|
|
70
|
+
*/
|
|
71
|
+
heightSlide?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Slide with different width. if true the slide width is base on his content. Default false.
|
|
74
|
+
*/
|
|
75
|
+
isSlideDifferentWidth?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Loop, if true the loop functionality will be added to the carousel. Default is false.
|
|
78
|
+
*/
|
|
79
|
+
loop?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* next control icon.
|
|
82
|
+
*/
|
|
83
|
+
nextControlIcon?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Label of numbering length sliders.
|
|
86
|
+
*/
|
|
87
|
+
numberingSeparator?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Numbering Slides, if true the numbering slides will be visible. Default is true.
|
|
90
|
+
*/
|
|
91
|
+
numberingSlides?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Options setting carousel.
|
|
94
|
+
*/
|
|
95
|
+
options?: EmblaOptionsType;
|
|
96
|
+
/**
|
|
97
|
+
* previous control icon.
|
|
98
|
+
*/
|
|
99
|
+
prevControlIcon?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Progress bar status, if true the progress bar will be visible. Default is false.
|
|
102
|
+
*/
|
|
103
|
+
progressbar?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Add Class to selected slide.
|
|
106
|
+
*/
|
|
107
|
+
slideSelectedClass?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Slides reactNode carousel.
|
|
110
|
+
*/
|
|
111
|
+
slidesItems: ReactNode[];
|
|
112
|
+
/**
|
|
113
|
+
* Number of visible slides. Default value 1.
|
|
114
|
+
*/
|
|
115
|
+
slideToShow?: number;
|
|
116
|
+
/**
|
|
117
|
+
* Number of slides to scroll.
|
|
118
|
+
*/
|
|
119
|
+
slideToScroll: number;
|
|
120
|
+
/**
|
|
121
|
+
* speed transition slide, Higher numbers enables faster scrolling. Default is 10.
|
|
122
|
+
*/
|
|
123
|
+
speed?: number;
|
|
124
|
+
/**
|
|
125
|
+
* StartIndex slide. Default is 0.
|
|
126
|
+
*/
|
|
127
|
+
startIndex?: number;
|
|
128
|
+
};
|
|
129
|
+
export declare const handleScrollPrev: (emblaApi: EmblaCarouselType, direction: 'rtl' | 'ltr') => void;
|
|
130
|
+
export declare const handleScrollNext: (emblaApi: EmblaCarouselType, direction: 'rtl' | 'ltr') => void;
|
|
131
|
+
export declare const handleScrollTo: (emblaApi: EmblaCarouselType, index: number) => void;
|
|
132
|
+
export declare const getHoveredClass: (direction: 'next' | 'prev', hovered: boolean, isBtnEnabled: boolean) => string;
|
|
133
|
+
export declare const emblaWidthSize: (apiParam: any, slideToShowParam: any) => void;
|
|
134
|
+
export declare const Carousel: (props: CarouselPropType) => JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const PrevButton: ({ enabled, onClick, height }: {
|
|
3
|
+
enabled: any;
|
|
4
|
+
onClick: any;
|
|
5
|
+
height: any;
|
|
6
|
+
}) => JSX.Element;
|
|
7
|
+
export declare const NextButton: ({ enabled, onClick, height }: {
|
|
8
|
+
enabled: any;
|
|
9
|
+
onClick: any;
|
|
10
|
+
height: any;
|
|
11
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { EmblaCarouselType } from 'embla-carousel-react';
|
|
3
|
+
export declare const DotButton: ({ selected, onClick, bulletStyle }: {
|
|
4
|
+
selected: any;
|
|
5
|
+
onClick: any;
|
|
6
|
+
bulletStyle: any;
|
|
7
|
+
}) => JSX.Element;
|
|
8
|
+
export declare const template: (cssClass: string, hovered: boolean, prevBtnEnabled: boolean, emblaApi: EmblaCarouselType, direction: any, emblaRef: any, slidesItems: React.ReactNode[], heightSlide: string, buttonControls: boolean, buttonAreaControlsHeight: string, buttonControlsPosition: string, nextBtnEnabled: boolean, numberingSlides: boolean, selectedIndex: number, numberingSeparator: string, progressbar: boolean, scrollProgress: number, toggleHover: (element: string) => void, slideToShow: number, classEmbla: string, bulletScroll: boolean, bulletStyle: string, handleScrollTo: (emblaApi: any, index: any) => void, handleScrollPrev: (emblaApi: any, index: any) => void, handleScrollNext: (emblaApi: any, index: any) => void, prevControlIcon: string, nextControlIcon: string, controlIconStyle: any, controlIconFontSize: any, controlVariant: any, controlColor: any) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './carousel';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CarouselPropType } from '../carousel';
|
|
3
|
+
export declare enum controlButtonsHover {
|
|
4
|
+
NEXT = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuOCIvPgo8cGF0aCBkPSJNOC4xNDYgMTYuNDk2VjE5LjJIMjMuNzcyTDE2Ljg4MiAyNi4wMTJMMTguNTQ2IDI3LjY3NkwyOC4zNzQgMTcuODQ4TDE4LjU0NiA4LjAyTDE2Ljg4MiA5LjY4NEwyMy43NzIgMTYuNDk2SDguMTQ2WiIgZmlsbD0iIzE2MTcxOCIvPgo8L3N2Zz4K",
|
|
5
|
+
PREV = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuOCIvPgo8cGF0aCBkPSJNMTkuMTE4IDI2LjAxMkwxMi4yMjggMTkuMkgyNy44NTRWMTYuNDk2SDEyLjIyOEwxOS4xMTggOS42ODRMMTcuNDU0IDguMDJMNy42MjYgMTcuODQ4TDE3LjQ1NCAyNy42NzZMMTkuMTE4IDI2LjAxMloiIGZpbGw9IiMxNjE3MTgiLz4KPC9zdmc+Cg=="
|
|
6
|
+
}
|
|
7
|
+
export declare const CarouselStyledHorizontal: import("@emotion/styled").StyledComponent<{
|
|
8
|
+
theme?: import("@emotion/react").Theme;
|
|
9
|
+
as?: import("react").ElementType<any>;
|
|
10
|
+
} & CarouselPropType & {
|
|
11
|
+
theme?: any;
|
|
12
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CarouselPropType } from '../carousel';
|
|
3
|
+
export declare const CarouselStyledVertical: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
theme?: import("@emotion/react").Theme;
|
|
5
|
+
as?: import("react").ElementType<any>;
|
|
6
|
+
} & CarouselPropType & {
|
|
7
|
+
theme?: any;
|
|
8
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ButtonVariants } from '../../../components/button';
|
|
3
|
+
/**
|
|
4
|
+
* @interface ButtonCardProps
|
|
5
|
+
*/
|
|
6
|
+
interface ButtonCardProps {
|
|
7
|
+
buttonObject?: {
|
|
8
|
+
label?: string;
|
|
9
|
+
variant?: ButtonVariants;
|
|
10
|
+
url?: string;
|
|
11
|
+
target?: string;
|
|
12
|
+
callback?: () => void;
|
|
13
|
+
callbackAnalytics?: () => void;
|
|
14
|
+
};
|
|
15
|
+
compact?: boolean;
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
declare const ButtonCardComponent: React.FC<ButtonCardProps>;
|
|
19
|
+
export default ButtonCardComponent;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @interface ButtonCardProps
|
|
4
|
+
*/
|
|
5
|
+
interface InfoTextCardProps {
|
|
6
|
+
/**
|
|
7
|
+
* Info text
|
|
8
|
+
*/
|
|
9
|
+
infoText?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Info text second position text
|
|
12
|
+
*/
|
|
13
|
+
infoTextSecond?: string;
|
|
14
|
+
/**
|
|
15
|
+
* info text third position text
|
|
16
|
+
*/
|
|
17
|
+
infoTextThird?: string;
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
declare const InfoTextCardComponent: React.FC<InfoTextCardProps>;
|
|
21
|
+
export default InfoTextCardComponent;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CardMenuItemsArray } from '../../../components/cardMenu/cardMenu';
|
|
3
|
+
import { SxProps } from '@mui/system';
|
|
4
|
+
import { Theme } from '@mui/material/styles';
|
|
5
|
+
import { Placement } from '../../../utils/enum';
|
|
6
|
+
export interface MenuCardComponentProps {
|
|
7
|
+
/**
|
|
8
|
+
* The content of the component.
|
|
9
|
+
*/
|
|
10
|
+
items: CardMenuItemsArray;
|
|
11
|
+
/**
|
|
12
|
+
* React useState hook set function used to update the passed items to the component.
|
|
13
|
+
*/
|
|
14
|
+
setItems?: React.Dispatch<React.SetStateAction<CardMenuItemsArray>>;
|
|
15
|
+
/**
|
|
16
|
+
* If header is provided, a text will be displayed on top of the elements.
|
|
17
|
+
*/
|
|
18
|
+
header?: string;
|
|
19
|
+
/**
|
|
20
|
+
* If true, multiple item select will be enabled. Property 'setItems' must be provided in order allowMultiselect to work.
|
|
21
|
+
* Items: CardMenuItemsArray provided to the component must have isChecked propery provided in order allowMultiselect to work..
|
|
22
|
+
*/
|
|
23
|
+
allowMultiselect?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Callback fired when item is clicked.
|
|
26
|
+
*/
|
|
27
|
+
onItemClick?: (itemText: string) => void;
|
|
28
|
+
/**
|
|
29
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
30
|
+
*/
|
|
31
|
+
sx?: SxProps<Theme>;
|
|
32
|
+
/**
|
|
33
|
+
* Override or extend the styles applied to the component.
|
|
34
|
+
*/
|
|
35
|
+
classes?: object;
|
|
36
|
+
/**
|
|
37
|
+
* Popper placement. Default is 'bottom'.
|
|
38
|
+
*/
|
|
39
|
+
placement?: Placement;
|
|
40
|
+
/**
|
|
41
|
+
* If true, a switch button is added to the items allowing to select or deselect all of the items.
|
|
42
|
+
* Property allowMultiselect should be true in order hasToggleSelection to work. Only available for the desktop version of the MenuCard.
|
|
43
|
+
*/
|
|
44
|
+
hasToggleSelection?: boolean;
|
|
45
|
+
}
|
|
46
|
+
declare const MenuCardComponent: React.FC<MenuCardComponentProps>;
|
|
47
|
+
export default MenuCardComponent;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const CardStandardWrapperStyled: import("@emotion/styled").StyledComponent<Pick<import("@mui/material/OverridableComponent").OverrideProps<import("@mui/material").PaperTypeMap<{}, "div">, "div">, "className" | "style" | "children" | "elevation" | "square" | "sx" | "variant" | "ref" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & {
|
|
3
|
+
classes?: Partial<import("@mui/material/Card").CardClasses>;
|
|
4
|
+
raised?: boolean;
|
|
5
|
+
sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme>;
|
|
6
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Pick<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "className" | "style" | "children" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & {
|
|
7
|
+
ref?: ((instance: HTMLDivElement) => void) | import("react").RefObject<HTMLDivElement>;
|
|
8
|
+
}, never> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
9
|
+
size?: any;
|
|
10
|
+
isBorderRadius?: any;
|
|
11
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DarkOpacity, LightOpacity } from '../common/cardOpacitylayer/cardOpacityTyping';
|
|
3
|
+
import { ButtonVariants } from '../..';
|
|
4
|
+
/**
|
|
5
|
+
* @interface CardProps
|
|
6
|
+
* @description Base definition of SkodaFlow HeroCardImage independent on core implementation.
|
|
7
|
+
* Properties are inherited from HTML div element
|
|
8
|
+
*/
|
|
9
|
+
export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
10
|
+
/**
|
|
11
|
+
* if true borderRadius was added to entire card
|
|
12
|
+
*/
|
|
13
|
+
isBorderRadius?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* this image is showing small device resolution ( Smartphone )
|
|
16
|
+
*/
|
|
17
|
+
mobileImage?: string;
|
|
18
|
+
/**
|
|
19
|
+
* this image is showing in a medium device resolution ( Tablet )
|
|
20
|
+
*/
|
|
21
|
+
tabletImage?: string;
|
|
22
|
+
/**
|
|
23
|
+
* this image is showing in a small desktop ( laptop )
|
|
24
|
+
*/
|
|
25
|
+
laptopImage?: string;
|
|
26
|
+
/**
|
|
27
|
+
* this image is showing in a large desktop ( desktop )
|
|
28
|
+
*/
|
|
29
|
+
desktopImage?: string;
|
|
30
|
+
/**
|
|
31
|
+
* alt HTML tag apply to the image
|
|
32
|
+
*/
|
|
33
|
+
altImageDescription?: string;
|
|
34
|
+
/**
|
|
35
|
+
* If present the card showing video
|
|
36
|
+
*/
|
|
37
|
+
videoUrl?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Label text
|
|
40
|
+
*/
|
|
41
|
+
label: any;
|
|
42
|
+
/**
|
|
43
|
+
* Title text that should be maximum 50 characters long
|
|
44
|
+
*/
|
|
45
|
+
title: string;
|
|
46
|
+
/**
|
|
47
|
+
* Mandatory button object. The button is displayed if the label text is present
|
|
48
|
+
*/
|
|
49
|
+
firstButtonObject?: {
|
|
50
|
+
label?: string;
|
|
51
|
+
variant?: ButtonVariants;
|
|
52
|
+
url?: string;
|
|
53
|
+
target?: string;
|
|
54
|
+
callback?: (payload?: any) => void;
|
|
55
|
+
callbackAnalytics?: (payload?: any) => void;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Second button object. The button is displayed if the label text is present
|
|
59
|
+
*/
|
|
60
|
+
secondButtonObject?: {
|
|
61
|
+
label?: string;
|
|
62
|
+
variant?: ButtonVariants;
|
|
63
|
+
url?: string;
|
|
64
|
+
target?: string;
|
|
65
|
+
callback?: (payload?: any) => void;
|
|
66
|
+
callbackAnalytics?: (payload?: any) => void;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Third button object. The button is displayed if the label text is present
|
|
70
|
+
*/
|
|
71
|
+
thirdButtonObject?: {
|
|
72
|
+
label?: string;
|
|
73
|
+
variant?: ButtonVariants;
|
|
74
|
+
url?: string;
|
|
75
|
+
target?: string;
|
|
76
|
+
callback?: (payload?: any) => void;
|
|
77
|
+
callbackAnalytics?: (payload?: any) => void;
|
|
78
|
+
};
|
|
79
|
+
compact?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* A dark gradient layer was added
|
|
82
|
+
*/
|
|
83
|
+
darkOpacity?: DarkOpacity;
|
|
84
|
+
/**
|
|
85
|
+
* A light gradient layer was added
|
|
86
|
+
*/
|
|
87
|
+
lightOpacity?: LightOpacity;
|
|
88
|
+
/**
|
|
89
|
+
* this props set the height of the card
|
|
90
|
+
*/
|
|
91
|
+
cardVersion?: 'normal' | 'small';
|
|
92
|
+
playPauseCallback?: (action?: string, payload?: any) => void;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* @description SkodaFlow Chip component.
|
|
96
|
+
* Properties are inherited from HTML Div element.
|
|
97
|
+
* @param props ChipProps
|
|
98
|
+
* @returns React Functional Component
|
|
99
|
+
*/
|
|
100
|
+
export declare const HeroImageCard: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './heroImageCard';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @interface VideoControllerProps
|
|
4
|
+
* @description Base definition of SkodaFlow Chip independent on core implementation.
|
|
5
|
+
* Properties are inherited from HTML div element
|
|
6
|
+
*/
|
|
7
|
+
interface VideoControllerProps {
|
|
8
|
+
videoRef: any;
|
|
9
|
+
playPauseCallback?: (action?: string, payload?: any) => void;
|
|
10
|
+
}
|
|
11
|
+
declare const VideoCardController: React.FC<VideoControllerProps>;
|
|
12
|
+
export default VideoCardController;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MarkerClusterer } from '@googlemaps/markerclusterer';
|
|
2
|
+
declare const useMap: () => {
|
|
3
|
+
onMarkerClick: (markerId: any, registeredMarkers: any) => void;
|
|
4
|
+
handleClusterRender: (registeredMarkers: any, currentMap: any, setClickedCluster: any) => MarkerClusterer;
|
|
5
|
+
handleIconType: (marker: any, isSelected: any) => any;
|
|
6
|
+
};
|
|
7
|
+
export default useMap;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './maps';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="google.maps" />
|
|
2
|
+
declare const contentString: (params: any) => string;
|
|
3
|
+
declare const infoWindow: (windowConfig: any) => google.maps.InfoWindow;
|
|
4
|
+
declare const handleRenderInfoWindow: (marker: any, setInfoWindow: any, infoWindowState: any, currentMap: any) => void;
|
|
5
|
+
export { infoWindow, handleRenderInfoWindow, contentString };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="google.maps" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface MapProps extends google.maps.MapOptions {
|
|
4
|
+
style?: {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
};
|
|
7
|
+
onClick?: (e: google.maps.MapMouseEvent) => void;
|
|
8
|
+
onDragEnd?: (map: google.maps.Map) => void;
|
|
9
|
+
handleCurrentMap?: (map: google.maps.Map) => void;
|
|
10
|
+
enableMoveSearch?: boolean;
|
|
11
|
+
setInfoWindow: any;
|
|
12
|
+
currentInfoWindow: any;
|
|
13
|
+
registeredMarkers?: any;
|
|
14
|
+
}
|
|
15
|
+
declare const Map: React.FC<MapProps>;
|
|
16
|
+
export default Map;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* @description Maps styling definition based on props
|
|
4
|
+
*/
|
|
5
|
+
declare const MapStyled: import("@emotion/styled").StyledComponent<{
|
|
6
|
+
theme?: import("@emotion/react").Theme;
|
|
7
|
+
as?: import("react").ElementType<any>;
|
|
8
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
|
+
export default MapStyled;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="google.maps" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare const Marker: React.FC<google.maps.MarkerOptions & {
|
|
4
|
+
handleRegisteredMarkers: any;
|
|
5
|
+
handleMarkerClicked: any;
|
|
6
|
+
id: number | string;
|
|
7
|
+
isSelected: boolean;
|
|
8
|
+
resultIcon: any;
|
|
9
|
+
selectedIcon: any;
|
|
10
|
+
infoWindow: any;
|
|
11
|
+
canOpenInfoWindow?: boolean;
|
|
12
|
+
infoWindowConfig?: {
|
|
13
|
+
title?: string;
|
|
14
|
+
street?: string;
|
|
15
|
+
city?: string;
|
|
16
|
+
phone?: string;
|
|
17
|
+
isOpen?: boolean;
|
|
18
|
+
distance?: string;
|
|
19
|
+
};
|
|
20
|
+
onInfoWindowCtaClick?: () => void;
|
|
21
|
+
}>;
|
|
22
|
+
export default Marker;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/// <reference types="google.maps" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* @interface MapsProps
|
|
5
|
+
*/
|
|
6
|
+
export interface MapsProps {
|
|
7
|
+
/**
|
|
8
|
+
* API KEY google map
|
|
9
|
+
*/
|
|
10
|
+
apiKey: string;
|
|
11
|
+
/**
|
|
12
|
+
* list of markers
|
|
13
|
+
*/
|
|
14
|
+
markers: {
|
|
15
|
+
lat: number;
|
|
16
|
+
lng: number;
|
|
17
|
+
id: number | string;
|
|
18
|
+
isSelected: boolean;
|
|
19
|
+
resultIcon?: any;
|
|
20
|
+
selectedIcon?: any;
|
|
21
|
+
infoWindowConfig?: {
|
|
22
|
+
title?: string;
|
|
23
|
+
street?: string;
|
|
24
|
+
city?: string;
|
|
25
|
+
phone?: string;
|
|
26
|
+
isOpen?: boolean;
|
|
27
|
+
distance?: string;
|
|
28
|
+
ctaLabel?: string;
|
|
29
|
+
};
|
|
30
|
+
}[];
|
|
31
|
+
/**
|
|
32
|
+
* default zoom of the map
|
|
33
|
+
*/
|
|
34
|
+
zoom: number;
|
|
35
|
+
/**
|
|
36
|
+
* Default center of the map
|
|
37
|
+
*/
|
|
38
|
+
center: {
|
|
39
|
+
lat: number;
|
|
40
|
+
lng: number;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* If true, enable the "search on move" event on the map
|
|
44
|
+
*/
|
|
45
|
+
enableMoveSearch?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* If true,the info window can be opened on marker click
|
|
48
|
+
*/
|
|
49
|
+
canOpenInfoWindow?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* marker selected from outside
|
|
52
|
+
*/
|
|
53
|
+
markerSelectedId?: string | number;
|
|
54
|
+
/**
|
|
55
|
+
* enable/disable fitbound event on map
|
|
56
|
+
*/
|
|
57
|
+
enableFitBound?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* show/hide map controls
|
|
60
|
+
*/
|
|
61
|
+
hideControlsOnMobile?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Callback fired when a marker is clicked
|
|
64
|
+
*/
|
|
65
|
+
callbackMarkerClicked?: (marker: any) => void;
|
|
66
|
+
/**
|
|
67
|
+
* Callback fired when the map triggers the onDragEnd event (after map moved)
|
|
68
|
+
*/
|
|
69
|
+
onDragEndCallback?: (m: google.maps.Map, center: {
|
|
70
|
+
lat: number;
|
|
71
|
+
lng: number;
|
|
72
|
+
}) => void;
|
|
73
|
+
/**
|
|
74
|
+
* Callback fired when the map triggers the onDragEnd event (after map moved)
|
|
75
|
+
*/
|
|
76
|
+
onInfoWindowCtaClick?: () => void;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* @description SkodaFlow Map component.
|
|
80
|
+
* Properties are inherited from HTML Map element.
|
|
81
|
+
* @param props MapProps
|
|
82
|
+
* @returns React Functional Component
|
|
83
|
+
*/
|
|
84
|
+
export declare const Maps: React.ForwardRefExoticComponent<MapsProps & React.RefAttributes<HTMLMapElement>>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const handleControls: (map: any, geoMarker: any) => void;
|
|
2
|
+
declare const mapConfig: (options: any) => {
|
|
3
|
+
mapTypeControl: boolean;
|
|
4
|
+
streetViewControl: boolean;
|
|
5
|
+
fullscreenControl: boolean;
|
|
6
|
+
disableDefaultUI: boolean;
|
|
7
|
+
center: any;
|
|
8
|
+
zoom: any;
|
|
9
|
+
styles: ({
|
|
10
|
+
elementType: string;
|
|
11
|
+
stylers: {
|
|
12
|
+
color: string;
|
|
13
|
+
}[];
|
|
14
|
+
featureType?: undefined;
|
|
15
|
+
} | {
|
|
16
|
+
elementType: string;
|
|
17
|
+
stylers: {
|
|
18
|
+
visibility: string;
|
|
19
|
+
}[];
|
|
20
|
+
featureType?: undefined;
|
|
21
|
+
} | {
|
|
22
|
+
featureType: string;
|
|
23
|
+
elementType: string;
|
|
24
|
+
stylers: {
|
|
25
|
+
color: string;
|
|
26
|
+
}[];
|
|
27
|
+
})[];
|
|
28
|
+
};
|
|
29
|
+
export { mapConfig, handleControls };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare enum MapIconVariant {
|
|
2
|
+
PLUS = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYuMTMzIDEzLjIzOEg3Ljg2N1Y3Ljg4M0gxMy4yMjJWNi4xNDlINy44NjdWMC43OTM5OTlINi4xMzNWNi4xNDl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