@skodaflow/web-library 6.0.0 → 7.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -48
- package/cjs/components/backdrop/backdrop.js +1 -1
- package/cjs/components/backdrop/backdrop.js.map +1 -1
- package/cjs/components/banner/banner.d.ts +3 -0
- package/cjs/components/banner/banner.js +1 -1
- package/cjs/components/banner/banner.js.map +1 -1
- package/cjs/components/button/button.js +1 -1
- package/cjs/components/button/button.js.map +1 -1
- package/cjs/components/cardContainer/cardContainer.js +1 -1
- package/cjs/components/cardContainer/cardContainer.js.map +1 -1
- package/cjs/components/cardMenu/cardMenu.d.ts +1 -0
- package/cjs/components/cardMenu/cardMenu.js.map +1 -1
- package/cjs/components/cardMenu/styled/menuListStyled.js +1 -1
- package/cjs/components/cardMenu/styled/menuListStyled.js.map +1 -1
- package/cjs/components/common/styled/textFieldStyled.js +1 -1
- package/cjs/components/common/styled/textFieldStyled.js.map +1 -1
- package/cjs/components/controls/controls.js +1 -1
- package/cjs/components/controls/controls.js.map +1 -1
- package/cjs/components/icon/icon.d.ts +8 -9
- package/cjs/components/icon/icon.definitions.d.ts +8 -846
- package/cjs/components/icon/icon.definitions.js +1 -1
- package/cjs/components/icon/icon.definitions.js.map +1 -1
- package/cjs/components/icon/icon.js +1 -1
- package/cjs/components/icon/icon.js.map +1 -1
- package/cjs/components/index.d.ts +0 -3
- package/cjs/components/indicator/indicator.js +1 -1
- package/cjs/components/indicator/indicator.js.map +1 -1
- package/cjs/components/label/label.js +3 -3
- package/cjs/components/label/label.js.map +1 -1
- package/cjs/components/labelFeature/labelFeature.js +4 -4
- package/cjs/components/labelFeature/labelFeature.js.map +1 -1
- package/cjs/components/labelPromotional/labelPromotional.js +1 -1
- package/cjs/components/labelPromotional/labelPromotional.js.map +1 -1
- package/cjs/components/labelStatus/labelStatus.js +4 -4
- package/cjs/components/labelStatus/labelStatus.js.map +1 -1
- package/cjs/components/numbering/numbering.js +1 -1
- package/cjs/components/numbering/numbering.js.map +1 -1
- package/cjs/components/pagination/pagination.js +1 -1
- package/cjs/components/pagination/pagination.js.map +1 -1
- package/cjs/components/selectInput/formControlSelectStyled.js +1 -1
- package/cjs/components/selectInput/formControlSelectStyled.js.map +1 -1
- package/cjs/components/selectInput/selectInput.js +1 -1
- package/cjs/components/selectInput/selectInput.js.map +1 -1
- package/cjs/components/stepper/stepper.js +1 -1
- package/cjs/components/stepper/stepper.js.map +1 -1
- package/cjs/components/textArea/textArea.js +1 -1
- package/cjs/components/textArea/textArea.js.map +1 -1
- package/cjs/components/textInput/textInput.js +1 -1
- package/cjs/components/textInput/textInput.js.map +1 -1
- package/cjs/design/skoda/SkodaThemeProvider.d.ts +8 -1
- package/cjs/design/skoda/SkodaThemeProvider.js +1 -1
- package/cjs/design/skoda/SkodaThemeProvider.js.map +1 -1
- package/cjs/design/skoda/SkodaThemeWidgetProvider.d.ts +5 -7
- package/cjs/design/skoda/SkodaThemeWidgetProvider.js +1 -1
- package/cjs/design/skoda/SkodaThemeWidgetProvider.js.map +1 -1
- package/cjs/design/skoda/components/accordion/accordion.theme.js +1 -1
- package/cjs/design/skoda/components/accordion/accordion.theme.js.map +1 -1
- package/cjs/design/skoda/components/accordion/accordionSummary.theme.js +1 -1
- package/cjs/design/skoda/components/accordion/accordionSummary.theme.js.map +1 -1
- package/cjs/design/skoda/components/autocomplete.theme.js +1 -1
- package/cjs/design/skoda/components/autocomplete.theme.js.map +1 -1
- package/cjs/design/skoda/components/backdrop.theme.js +1 -1
- package/cjs/design/skoda/components/backdrop.theme.js.map +1 -1
- package/cjs/design/skoda/components/baseline.theme.d.ts +3 -3
- package/cjs/design/skoda/components/baseline.theme.js +1 -1
- package/cjs/design/skoda/components/baseline.theme.js.map +1 -1
- package/cjs/design/skoda/components/breadcrumbs.theme.js +1 -1
- package/cjs/design/skoda/components/breadcrumbs.theme.js.map +1 -1
- package/cjs/design/skoda/components/checkbox.theme.js +1 -1
- package/cjs/design/skoda/components/checkbox.theme.js.map +1 -1
- package/cjs/design/skoda/components/datePickers/desktopDateTimePicker.theme.js +1 -1
- package/cjs/design/skoda/components/datePickers/desktopDateTimePicker.theme.js.map +1 -1
- package/cjs/design/skoda/components/divider.theme.js +1 -1
- package/cjs/design/skoda/components/divider.theme.js.map +1 -1
- package/cjs/design/skoda/components/drawer.theme.js +1 -1
- package/cjs/design/skoda/components/drawer.theme.js.map +1 -1
- package/cjs/design/skoda/components/form/radio.theme.js +1 -1
- package/cjs/design/skoda/components/form/radio.theme.js.map +1 -1
- package/cjs/design/skoda/components/form/select.theme.js +1 -1
- package/cjs/design/skoda/components/form/select.theme.js.map +1 -1
- package/cjs/design/skoda/components/form/slider.theme.js +1 -1
- package/cjs/design/skoda/components/form/slider.theme.js.map +1 -1
- package/cjs/design/skoda/components/icon.theme.js +1 -1
- package/cjs/design/skoda/components/icon.theme.js.map +1 -1
- package/cjs/design/skoda/components/mobileStepper.theme.js +1 -1
- package/cjs/design/skoda/components/mobileStepper.theme.js.map +1 -1
- package/cjs/design/skoda/components/modal.theme.js +1 -1
- package/cjs/design/skoda/components/modal.theme.js.map +1 -1
- package/cjs/design/skoda/components/pagination.theme.js +1 -1
- package/cjs/design/skoda/components/pagination.theme.js.map +1 -1
- package/cjs/design/skoda/components/snackbar.theme.js +1 -1
- package/cjs/design/skoda/components/snackbar.theme.js.map +1 -1
- package/cjs/design/skoda/components/stepper/stepIcon/qontoStepIcon.js +1 -1
- package/cjs/design/skoda/components/stepper/stepIcon/qontoStepIcon.js.map +1 -1
- package/cjs/design/skoda/components/stepper/stepper.theme.js +1 -1
- package/cjs/design/skoda/components/stepper/stepper.theme.js.map +1 -1
- package/cjs/design/skoda/components/tabs/tab.theme.js +1 -1
- package/cjs/design/skoda/components/tabs/tab.theme.js.map +1 -1
- package/cjs/design/skoda/components/tabs/tabs.theme.js +1 -1
- package/cjs/design/skoda/components/tabs/tabs.theme.js.map +1 -1
- package/cjs/design/skoda/components/tooltip.theme.js +1 -1
- package/cjs/design/skoda/components/tooltip.theme.js.map +1 -1
- package/cjs/design/skoda/index.d.ts +1 -0
- package/cjs/design/skoda/{palette.theme.d.ts → paletteDark.theme.d.ts} +1 -1
- package/cjs/design/skoda/paletteDark.theme.js +2 -0
- package/cjs/design/skoda/paletteDark.theme.js.map +1 -0
- package/cjs/design/skoda/paletteLight.theme.d.ts +2 -0
- package/cjs/design/skoda/paletteLight.theme.js +2 -0
- package/cjs/design/skoda/paletteLight.theme.js.map +1 -0
- package/cjs/design/skoda/theme.constants.js +1 -1
- package/cjs/design/skoda/theme.constants.js.map +1 -1
- package/cjs/design/skoda/theme.d.ts +8 -2
- package/cjs/design/skoda/theme.js +1 -1
- package/cjs/design/skoda/theme.js.map +1 -1
- package/cjs/design/skoda/theme.typography.d.ts +10 -7
- package/cjs/design/skoda/theme.typography.js +1 -1
- package/cjs/design/skoda/theme.typography.js.map +1 -1
- package/cjs/index.js +1 -1
- package/cjs/layout/Header/HeaderButton.js +1 -1
- package/cjs/layout/Header/HeaderButton.js.map +1 -1
- package/cjs/layout/Header/HeaderNavigationLink.d.ts +1 -1
- package/cjs/layout/Header/HeaderNavigationLink.js +1 -1
- package/cjs/layout/Header/HeaderNavigationLink.js.map +1 -1
- package/cjs/layout/Header/HeaderNavigationMenu.d.ts +1 -0
- package/cjs/layout/Header/HeaderNavigationMenu.js +1 -1
- package/cjs/layout/Header/HeaderNavigationMenu.js.map +1 -1
- package/cjs/layout/container/container.js.map +1 -0
- package/cjs/layout/index.d.ts +1 -0
- package/cjs/organisms/cardPromoVehicle/cardPromoVehicleComponent.js +1 -1
- package/cjs/organisms/cardPromoVehicle/cardPromoVehicleComponent.js.map +1 -1
- package/cjs/organisms/carousel/carousel.d.ts +3 -0
- package/cjs/organisms/carousel/carousel.js.map +1 -1
- package/cjs/organisms/carousel/styledComponents/styledCarouselHorizontal.js +1 -1
- package/cjs/organisms/carousel/styledComponents/styledCarouselHorizontal.js.map +1 -1
- package/cjs/organisms/carousel/styledComponents/styledCarouselVertical.js +1 -1
- package/cjs/organisms/carousel/styledComponents/styledCarouselVertical.js.map +1 -1
- package/cjs/organisms/carousel2/cardCarousel/cardCarousel.d.ts +3 -0
- package/cjs/organisms/carousel2/cardCarousel/cardCarousel.js.map +1 -1
- package/cjs/organisms/carousel2/components/NavButton.js +1 -1
- package/cjs/organisms/carousel2/components/NavButton.js.map +1 -1
- package/cjs/organisms/carousel2/galleryCarousel/galleryCarousel.d.ts +3 -0
- package/cjs/organisms/carousel2/galleryCarousel/galleryCarousel.js +1 -1
- package/cjs/organisms/carousel2/galleryCarousel/galleryCarousel.js.map +1 -1
- package/cjs/organisms/carousel2/galleryCarousel/galleryContext.js +1 -1
- package/cjs/organisms/carousel2/galleryCarousel/galleryContext.js.map +1 -1
- package/cjs/organisms/carousel2/heroCarousel/heroCarousel.d.ts +3 -0
- package/cjs/organisms/carousel2/heroCarousel/heroCarousel.js +1 -1
- package/cjs/organisms/carousel2/heroCarousel/heroCarousel.js.map +1 -1
- package/cjs/organisms/carousel2/heroCarousel/heroCarouselContext.js +1 -1
- package/cjs/organisms/carousel2/heroCarousel/heroCarouselContext.js.map +1 -1
- package/cjs/organisms/gallery/Gallery.js +1 -1
- package/cjs/organisms/gallery/Gallery.js.map +1 -1
- package/cjs/organisms/gallery/GalleryTrigger.js +1 -1
- package/cjs/organisms/gallery/GalleryTrigger.js.map +1 -1
- package/cjs/organisms/maps/mapComponents/mapComponent.d.ts +2 -2
- package/cjs/organisms/maps/mapComponents/mapComponent.js.map +1 -1
- package/cjs/organisms/maps/mapComponents/mapStyled.js +1 -1
- package/cjs/organisms/maps/mapComponents/mapStyled.js.map +1 -1
- package/cjs/organisms/notification/Notification.js +1 -1
- package/cjs/organisms/notification/Notification.js.map +1 -1
- package/cjs/organisms/tile/tile.js +1 -1
- package/cjs/organisms/tile/tile.js.map +1 -1
- package/cjs/utils/copyToClipboard/copyToClipboard.d.ts +6 -0
- package/cjs/utils/useClosure/useClosure.d.ts +1 -0
- package/cjs/utils/useClosure/useClosure.js.map +1 -1
- package/cjs/utils/useDebounce/useDebounce.d.ts +12 -0
- package/cjs/utils/useFeatureFlag/useFeatureFlag.d.ts +26 -0
- package/cjs/utils/useFeatureFlag/useFeatureFlag.js +2 -0
- package/cjs/utils/useFeatureFlag/useFeatureFlag.js.map +1 -0
- package/components/backdrop/backdrop.js +1 -1
- package/components/backdrop/backdrop.js.map +1 -1
- package/components/banner/banner.d.ts +3 -0
- package/components/banner/banner.js +1 -1
- package/components/banner/banner.js.map +1 -1
- package/components/button/button.js +1 -1
- package/components/button/button.js.map +1 -1
- package/components/cardContainer/cardContainer.js +1 -1
- package/components/cardContainer/cardContainer.js.map +1 -1
- package/components/cardMenu/cardMenu.d.ts +1 -0
- package/components/cardMenu/cardMenu.js.map +1 -1
- package/components/cardMenu/styled/menuListStyled.js +1 -1
- package/components/cardMenu/styled/menuListStyled.js.map +1 -1
- package/components/common/styled/textFieldStyled.js +1 -1
- package/components/common/styled/textFieldStyled.js.map +1 -1
- package/components/controls/controls.js +1 -1
- package/components/controls/controls.js.map +1 -1
- package/components/icon/icon.d.ts +8 -9
- package/components/icon/icon.definitions.d.ts +8 -846
- package/components/icon/icon.definitions.js +1 -1
- package/components/icon/icon.definitions.js.map +1 -1
- package/components/icon/icon.js +1 -1
- package/components/icon/icon.js.map +1 -1
- package/components/index.d.ts +0 -3
- package/components/indicator/indicator.js +1 -1
- package/components/indicator/indicator.js.map +1 -1
- package/components/label/label.js +2 -2
- package/components/label/label.js.map +1 -1
- package/components/labelFeature/labelFeature.js +1 -1
- package/components/labelFeature/labelFeature.js.map +1 -1
- package/components/labelPromotional/labelPromotional.js +1 -1
- package/components/labelPromotional/labelPromotional.js.map +1 -1
- package/components/labelStatus/labelStatus.js +1 -1
- package/components/labelStatus/labelStatus.js.map +1 -1
- package/components/numbering/numbering.js +1 -1
- package/components/numbering/numbering.js.map +1 -1
- package/components/pagination/pagination.js +1 -1
- package/components/pagination/pagination.js.map +1 -1
- package/components/selectInput/formControlSelectStyled.js +1 -1
- package/components/selectInput/formControlSelectStyled.js.map +1 -1
- package/components/selectInput/selectInput.js +1 -1
- package/components/selectInput/selectInput.js.map +1 -1
- package/components/stepper/stepper.js +1 -1
- package/components/stepper/stepper.js.map +1 -1
- package/components/textArea/textArea.js +1 -1
- package/components/textArea/textArea.js.map +1 -1
- package/components/textInput/textInput.js +1 -1
- package/components/textInput/textInput.js.map +1 -1
- package/design/skoda/SkodaThemeProvider.d.ts +8 -1
- package/design/skoda/SkodaThemeProvider.js +1 -1
- package/design/skoda/SkodaThemeProvider.js.map +1 -1
- package/design/skoda/SkodaThemeWidgetProvider.d.ts +5 -7
- package/design/skoda/SkodaThemeWidgetProvider.js +1 -1
- package/design/skoda/SkodaThemeWidgetProvider.js.map +1 -1
- package/design/skoda/components/accordion/accordion.theme.js +1 -1
- package/design/skoda/components/accordion/accordion.theme.js.map +1 -1
- package/design/skoda/components/accordion/accordionSummary.theme.js +1 -1
- package/design/skoda/components/accordion/accordionSummary.theme.js.map +1 -1
- package/design/skoda/components/autocomplete.theme.js +1 -1
- package/design/skoda/components/autocomplete.theme.js.map +1 -1
- package/design/skoda/components/backdrop.theme.js +1 -1
- package/design/skoda/components/backdrop.theme.js.map +1 -1
- package/design/skoda/components/baseline.theme.d.ts +3 -3
- package/design/skoda/components/baseline.theme.js +1 -1
- package/design/skoda/components/baseline.theme.js.map +1 -1
- package/design/skoda/components/breadcrumbs.theme.js +1 -1
- package/design/skoda/components/breadcrumbs.theme.js.map +1 -1
- package/design/skoda/components/checkbox.theme.js +1 -1
- package/design/skoda/components/checkbox.theme.js.map +1 -1
- package/design/skoda/components/datePickers/desktopDateTimePicker.theme.js +1 -1
- package/design/skoda/components/datePickers/desktopDateTimePicker.theme.js.map +1 -1
- package/design/skoda/components/divider.theme.js +1 -1
- package/design/skoda/components/divider.theme.js.map +1 -1
- package/design/skoda/components/drawer.theme.js +1 -1
- package/design/skoda/components/drawer.theme.js.map +1 -1
- package/design/skoda/components/form/radio.theme.js +1 -1
- package/design/skoda/components/form/radio.theme.js.map +1 -1
- package/design/skoda/components/form/select.theme.js +1 -1
- package/design/skoda/components/form/select.theme.js.map +1 -1
- package/design/skoda/components/form/slider.theme.js +1 -1
- package/design/skoda/components/form/slider.theme.js.map +1 -1
- package/design/skoda/components/icon.theme.js +1 -1
- package/design/skoda/components/icon.theme.js.map +1 -1
- package/design/skoda/components/mobileStepper.theme.js +1 -1
- package/design/skoda/components/mobileStepper.theme.js.map +1 -1
- package/design/skoda/components/modal.theme.js +1 -1
- package/design/skoda/components/modal.theme.js.map +1 -1
- package/design/skoda/components/pagination.theme.js +1 -1
- package/design/skoda/components/pagination.theme.js.map +1 -1
- package/design/skoda/components/snackbar.theme.js +1 -1
- package/design/skoda/components/snackbar.theme.js.map +1 -1
- package/design/skoda/components/stepper/stepIcon/qontoStepIcon.js +1 -1
- package/design/skoda/components/stepper/stepIcon/qontoStepIcon.js.map +1 -1
- package/design/skoda/components/stepper/stepper.theme.js +1 -1
- package/design/skoda/components/stepper/stepper.theme.js.map +1 -1
- package/design/skoda/components/tabs/tab.theme.js +1 -1
- package/design/skoda/components/tabs/tab.theme.js.map +1 -1
- package/design/skoda/components/tabs/tabs.theme.js +1 -1
- package/design/skoda/components/tabs/tabs.theme.js.map +1 -1
- package/design/skoda/components/tooltip.theme.js +1 -1
- package/design/skoda/components/tooltip.theme.js.map +1 -1
- package/design/skoda/index.d.ts +1 -0
- package/design/skoda/{palette.theme.d.ts → paletteDark.theme.d.ts} +1 -1
- package/design/skoda/paletteDark.theme.js +2 -0
- package/design/skoda/paletteDark.theme.js.map +1 -0
- package/design/skoda/paletteLight.theme.d.ts +2 -0
- package/design/skoda/paletteLight.theme.js +2 -0
- package/design/skoda/paletteLight.theme.js.map +1 -0
- package/design/skoda/theme.constants.js +1 -1
- package/design/skoda/theme.constants.js.map +1 -1
- package/design/skoda/theme.d.ts +8 -2
- package/design/skoda/theme.js +1 -1
- package/design/skoda/theme.js.map +1 -1
- package/design/skoda/theme.typography.d.ts +10 -7
- package/design/skoda/theme.typography.js +1 -1
- package/design/skoda/theme.typography.js.map +1 -1
- package/index.js +1 -1
- package/layout/Header/HeaderButton.js +1 -1
- package/layout/Header/HeaderButton.js.map +1 -1
- package/layout/Header/HeaderNavigationLink.d.ts +1 -1
- package/layout/Header/HeaderNavigationLink.js +1 -1
- package/layout/Header/HeaderNavigationLink.js.map +1 -1
- package/layout/Header/HeaderNavigationMenu.d.ts +1 -0
- package/layout/Header/HeaderNavigationMenu.js +1 -1
- package/layout/Header/HeaderNavigationMenu.js.map +1 -1
- package/layout/container/container.js.map +1 -0
- package/layout/index.d.ts +1 -0
- package/organisms/cardPromoVehicle/cardPromoVehicleComponent.js +1 -1
- package/organisms/cardPromoVehicle/cardPromoVehicleComponent.js.map +1 -1
- package/organisms/carousel/carousel.d.ts +3 -0
- package/organisms/carousel/carousel.js.map +1 -1
- package/organisms/carousel/styledComponents/styledCarouselHorizontal.js +1 -1
- package/organisms/carousel/styledComponents/styledCarouselHorizontal.js.map +1 -1
- package/organisms/carousel/styledComponents/styledCarouselVertical.js +1 -1
- package/organisms/carousel/styledComponents/styledCarouselVertical.js.map +1 -1
- package/organisms/carousel2/cardCarousel/cardCarousel.d.ts +3 -0
- package/organisms/carousel2/cardCarousel/cardCarousel.js.map +1 -1
- package/organisms/carousel2/components/NavButton.js +1 -1
- package/organisms/carousel2/components/NavButton.js.map +1 -1
- package/organisms/carousel2/galleryCarousel/galleryCarousel.d.ts +3 -0
- package/organisms/carousel2/galleryCarousel/galleryCarousel.js +1 -1
- package/organisms/carousel2/galleryCarousel/galleryCarousel.js.map +1 -1
- package/organisms/carousel2/galleryCarousel/galleryContext.js +1 -1
- package/organisms/carousel2/galleryCarousel/galleryContext.js.map +1 -1
- package/organisms/carousel2/heroCarousel/heroCarousel.d.ts +3 -0
- package/organisms/carousel2/heroCarousel/heroCarousel.js +1 -1
- package/organisms/carousel2/heroCarousel/heroCarousel.js.map +1 -1
- package/organisms/carousel2/heroCarousel/heroCarouselContext.js +1 -1
- package/organisms/carousel2/heroCarousel/heroCarouselContext.js.map +1 -1
- package/organisms/gallery/Gallery.js +1 -1
- package/organisms/gallery/Gallery.js.map +1 -1
- package/organisms/gallery/GalleryTrigger.js +1 -1
- package/organisms/gallery/GalleryTrigger.js.map +1 -1
- package/organisms/maps/mapComponents/mapComponent.d.ts +2 -2
- package/organisms/maps/mapComponents/mapComponent.js.map +1 -1
- package/organisms/maps/mapComponents/mapStyled.js +1 -1
- package/organisms/maps/mapComponents/mapStyled.js.map +1 -1
- package/organisms/notification/Notification.js +1 -1
- package/organisms/notification/Notification.js.map +1 -1
- package/organisms/tile/tile.js +1 -1
- package/organisms/tile/tile.js.map +1 -1
- package/package.json +1 -1
- package/utils/copyToClipboard/copyToClipboard.d.ts +6 -0
- package/utils/useClosure/useClosure.d.ts +1 -0
- package/utils/useClosure/useClosure.js.map +1 -1
- package/utils/useDebounce/useDebounce.d.ts +12 -0
- package/utils/useFeatureFlag/useFeatureFlag.d.ts +26 -0
- package/utils/useFeatureFlag/useFeatureFlag.js +2 -0
- package/utils/useFeatureFlag/useFeatureFlag.js.map +1 -0
- package/cjs/components/agGrid/CustomRenderer.d.ts +0 -1
- package/cjs/components/agGrid/ImageRenderer.d.ts +0 -1
- package/cjs/components/agGrid/agGrid.d.ts +0 -8
- package/cjs/components/agGrid/agGrid.js +0 -2
- package/cjs/components/agGrid/agGrid.js.map +0 -1
- package/cjs/components/agGrid/agGridStyled.d.ts +0 -7
- package/cjs/components/agGrid/agGridStyled.js +0 -2
- package/cjs/components/agGrid/agGridStyled.js.map +0 -1
- package/cjs/components/agGrid/index.d.ts +0 -1
- package/cjs/components/agGrid/mock.d.ts +0 -70
- package/cjs/components/container/container.js.map +0 -1
- package/cjs/components/tab/hook/useTabs.d.ts +0 -10
- package/cjs/components/tab/hook/useTabs.js +0 -2
- package/cjs/components/tab/hook/useTabs.js.map +0 -1
- package/cjs/components/tab/index.d.ts +0 -4
- package/cjs/components/tab/menuTab.d.ts +0 -37
- package/cjs/components/tab/menuTab.js +0 -2
- package/cjs/components/tab/menuTab.js.map +0 -1
- package/cjs/components/tab/secondaryNavigation/secondaryNavigationTabs.d.ts +0 -29
- package/cjs/components/tab/secondaryNavigation/secondaryNavigationTabs.js +0 -2
- package/cjs/components/tab/secondaryNavigation/secondaryNavigationTabs.js.map +0 -1
- package/cjs/components/tab/secondaryNavigation/secondaryTabStyled.d.ts +0 -14
- package/cjs/components/tab/secondaryNavigation/secondaryTabStyled.js +0 -2
- package/cjs/components/tab/secondaryNavigation/secondaryTabStyled.js.map +0 -1
- package/cjs/components/tab/tab.d.ts +0 -50
- package/cjs/components/tab/tab.js +0 -2
- package/cjs/components/tab/tab.js.map +0 -1
- package/cjs/components/tab/tabPanel.d.ts +0 -21
- package/cjs/components/tab/tabPanel.js +0 -2
- package/cjs/components/tab/tabPanel.js.map +0 -1
- package/cjs/components/tab/tabStyled.d.ts +0 -20
- package/cjs/components/tab/tabStyled.js +0 -2
- package/cjs/components/tab/tabStyled.js.map +0 -1
- package/cjs/components/tab/tabs.d.ts +0 -56
- package/cjs/components/tab/tabs.js +0 -2
- package/cjs/components/tab/tabs.js.map +0 -1
- package/cjs/design/skoda/palette.theme.js +0 -2
- package/cjs/design/skoda/palette.theme.js.map +0 -1
- package/cjs/utils/icons.js +0 -2
- package/cjs/utils/icons.js.map +0 -1
- package/components/agGrid/CustomRenderer.d.ts +0 -1
- package/components/agGrid/ImageRenderer.d.ts +0 -1
- package/components/agGrid/agGrid.d.ts +0 -8
- package/components/agGrid/agGrid.js +0 -2
- package/components/agGrid/agGrid.js.map +0 -1
- package/components/agGrid/agGridStyled.d.ts +0 -7
- package/components/agGrid/agGridStyled.js +0 -2
- package/components/agGrid/agGridStyled.js.map +0 -1
- package/components/agGrid/index.d.ts +0 -1
- package/components/agGrid/mock.d.ts +0 -70
- package/components/container/container.js.map +0 -1
- package/components/tab/hook/useTabs.d.ts +0 -10
- package/components/tab/hook/useTabs.js +0 -2
- package/components/tab/hook/useTabs.js.map +0 -1
- package/components/tab/index.d.ts +0 -4
- package/components/tab/menuTab.d.ts +0 -37
- package/components/tab/menuTab.js +0 -2
- package/components/tab/menuTab.js.map +0 -1
- package/components/tab/secondaryNavigation/secondaryNavigationTabs.d.ts +0 -29
- package/components/tab/secondaryNavigation/secondaryNavigationTabs.js +0 -2
- package/components/tab/secondaryNavigation/secondaryNavigationTabs.js.map +0 -1
- package/components/tab/secondaryNavigation/secondaryTabStyled.d.ts +0 -14
- package/components/tab/secondaryNavigation/secondaryTabStyled.js +0 -2
- package/components/tab/secondaryNavigation/secondaryTabStyled.js.map +0 -1
- package/components/tab/tab.d.ts +0 -50
- package/components/tab/tab.js +0 -2
- package/components/tab/tab.js.map +0 -1
- package/components/tab/tabPanel.d.ts +0 -21
- package/components/tab/tabPanel.js +0 -2
- package/components/tab/tabPanel.js.map +0 -1
- package/components/tab/tabStyled.d.ts +0 -20
- package/components/tab/tabStyled.js +0 -2
- package/components/tab/tabStyled.js.map +0 -1
- package/components/tab/tabs.d.ts +0 -56
- package/components/tab/tabs.js +0 -2
- package/components/tab/tabs.js.map +0 -1
- package/design/skoda/palette.theme.js +0 -2
- package/design/skoda/palette.theme.js.map +0 -1
- 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 +0 -1
- package/theme/skoda/globals.css +0 -1
- package/theme/skoda/icons.css +0 -1
- package/utils/icons.js +0 -2
- package/utils/icons.js.map +0 -1
- /package/cjs/{components → layout}/container/container.d.ts +0 -0
- /package/cjs/{components → layout}/container/container.js +0 -0
- /package/cjs/{components → layout}/container/index.d.ts +0 -0
- /package/{components → layout}/container/container.d.ts +0 -0
- /package/{components → layout}/container/container.js +0 -0
- /package/{components → layout}/container/index.d.ts +0 -0
package/cjs/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("./design/skoda/SkodaThemeProvider.js"),o=require("./design/skoda/SkodaThemeWidgetProvider.js"),r=require("./components/accordion/accordion.js"),t=require("./components/backdrop/backdrop.js"),a=require("./components/button/button.js"),n=require("./components/banner/banner.js"),i=require("./components/cardContainer/cardContainer.js"),s=require("./components/cardMenu/cardMenu.js"),u=require("./components/checkbox/checkbox.js"),l=require("./components/chip/chipImage/chipImage.js"),p=require("./components/chip/regular/chip.js"),d=require("./components/chip/chipMultiselect/multiSelectChip.js"),c=require("./components/chip/chipDropdownChildren/chipDropdownChildren.js"),x=require("./components/container/container.js"),m=require("./components/controls/controls.js"),g=require("./components/divider/divider.js"),j=require("./components/drawer/drawer.js"),C=require("./components/flag/flag.js"),q=require("./components/grid/grid.js"),y=require("./components/icon/icon.js"),b=require("./components/icon/icon.definitions.js"),S=require("./components/indicator/indicator.js"),h=require("./components/label/label.js"),B=require("./components/labelCO2/labelCO2.js"),H=require("./components/labelFeature/labelFeature.js"),I=require("./components/labelPromotional/labelPromotional.js"),P=require("./components/labelStatus/labelStatus.js"),F=require("./components/menu/menu.js"),v=require("./components/menuItem/menuItem.js"),T=require("./components/mobileStepper/mobileStepper.js"),M=require("./components/mobileStepper/mobileStepperButton.js"),k=require("./components/modal/modal.js"),N=require("./components/modal/modalTitle.js"),L=require("./components/numbering/numbering.js"),f=require("./components/pagination/pagination.js"),G=require("./components/progressBar/progressBar.js"),w=require("./components/radioButton/radioButton.js"),A=require("./components/selectInput/selectInput.js"),O=require("./components/slider/slider.js"),D=require("./components/snackbar/snackbar.js"),U=require("./components/stepper/stepper.js"),V=require("./components/tab/tab.js"),W=require("./components/tab/tabPanel.js"),z=require("./components/tab/tabs.js"),E=require("./components/tab/secondaryNavigation/secondaryNavigationTabs.js"),R=require("./components/textArea/textArea.js"),Y=require("./components/textInput/textInput.js"),J=require("./components/toggleSwitch/toggleSwitch.js"),K=require("./components/tooltip/tooltip.js"),Q=require("./components/agGrid/agGrid.js"),X=require("./components/common/imageComponent.js"),Z=require("./components/avatar/Avatar.js"),$=require("./components/closeDialogButton/index.js"),_=require("./components/iconButton/index.js"),ee=require("./components/helperTextContent/index.js"),oe=require("./components/alert/Alert.js"),re=require("./components/alert/AlertButton.js"),te=require("./components/logo/Logo.js"),ae=require("./organisms/gallery/Gallery.js"),ne=require("./organisms/gallery/GalleryItem.js"),ie=require("./organisms/gallery/GalleryTrigger.js"),se=require("./components/upload/UploadBox.js"),ue=require("./components/upload/UploadField.js"),le=require("./components/upload/UploadPreview.js"),pe=require("./components/upload/UploadProgress.js"),de=require("./components/upload/UploadPreviewList.js"),ce=require("./components/card/Card.js"),xe=require("@mui/material"),me=require("./organisms/cardOwnedVehicle/cardOwnedVehicle.js"),ge=require("./organisms/cardPhotoAdjustable/cardPhotoAdjustable.js"),je=require("./organisms/cardPhotoFixed/cardPhotoFixed.js"),Ce=require("./organisms/cardPromoVehicle/cardPromoVehicle.js"),qe=require("./organisms/cardTypeOnly/cardTypeOnly.js"),ye=require("./organisms/carousel/carousel.js"),be=require("./organisms/heroImageCard/heroImageCard.js"),Se=require("./organisms/maps/maps.js"),he=require("./organisms/shortcutLink/shortcutLink.js"),Be=require("./organisms/textCta/textCta.js"),He=require("./organisms/tile/tile.js"),Ie=require("./organisms/carousel2/galleryCarousel/galleryCarousel.js"),Pe=require("./organisms/carousel2/galleryCarousel/galleryCarouselItem.js"),Fe=require("./organisms/carousel2/galleryCarousel/galleryItemHeading.js"),ve=require("./organisms/carousel2/galleryCarousel/GalleryItemText.js"),Te=require("./organisms/carousel2/heroCarousel/heroCarousel.js"),Me=require("./organisms/carousel2/heroCarousel/HeroCarouselSlide.js"),ke=require("./organisms/carousel2/cardCarousel/cardCarousel.js"),Ne=require("./organisms/notification/Notification.js"),Le=require("./organisms/notification/NotificationCenter.js"),fe=require("./organisms/notification/NotificationCenterCategory.js"),Ge=require("./organisms/notification/NotificationCenterHeaderButton.js"),we=require("./utils/enum.js"),Ae=require("./utils/useClosure/useClosure.js"),Oe=require("./layout/Header/Header.js"),De=require("./layout/Header/HeaderButton.js"),Ue=require("./layout/Header/HeaderLogo.js"),Ve=require("./layout/Header/HeaderNavigationHero.js"),We=require("./layout/Header/HeaderNavigationLink.js"),ze=require("./layout/Header/HeaderNavigationMenu.js"),Ee=require("./layout/Header/HeaderSkodaLogo.js"),Re=require("./layout/Header/PredefinedHeaderButtons.js"),Ye=require("./layout/Header/HeaderOverheadItem.js"),Je=require("./layout/SideMenu/SideMenu.js"),Ke=require("./layout/SideMenu/SideMenuItem.js"),Qe=require("./layout/Footer/Footer.js"),Xe=require("./layout/Footer/FooterMenu.js"),Ze=require("./layout/Footer/FooterAccordion.js"),$e=require("./layout/Footer/FooterIconButton.js"),_e=require("./layout/Footer/PredefinedFooterIconButtons.js"),eo=require("./layout/Footer/FooterSectionContact.js"),oo=require("./layout/Footer/FooterSectionMenu.js"),ro=require("./layout/Footer/FooterLink.js"),to=require("./layout/Error/ErrorContent.js"),ao=require("./layout/PageLayout/PageLayout.js"),no=require("./layout/SecondaryNavigation/SecondaryNavigation.js"),io=require("./layout/SecondaryNavigation/SecondaryNavigationCta.js"),so=require("./layout/SecondaryNavigation/SecondaryNavigationItem.js"),uo=require("./layout/cookieModal/CookieModal.js"),lo=require("./layout/cookieModal/CookieModalItem.js"),po=require("./production/index.js");exports.SkodaThemeProvider=e.SkodaThemeProvider,exports.SkodaThemeWidgetProvider=o.SkodaThemeWidgetProvider,exports.Accordion=r.Accordion,exports.Backdrop=t.Backdrop,exports.Button=a.Button,Object.defineProperty(exports,"ButtonVariants",{enumerable:!0,get:function(){return a.ButtonVariants}}),exports.Banner=n.Banner,exports.CardContainer=i.CardContainer,exports.CardMenu=s.CardMenu,exports.Checkbox=u.Checkbox,exports.ChipImage=l.ChipImage,exports.Chip=p.Chip,exports.MultiSelectChip=d.MultiSelectChip,exports.ChipDropdownChildren=c.ChipDropdownChildren,exports.Container=x.Container,exports.Controller=m.Controller,exports.Divider=g.Divider,exports.Drawer=j.Drawer,exports.Flag=C.Flag,exports.Grid=q.Grid,exports.Icon=y.Icon,exports.availableIcons=b.availableIcons,exports.iconDefinitions=b.iconDefinitions,exports.Indicator=S.Indicator,exports.Label=h.Label,exports.LabelCO2=B.LabelCO2,exports.LabelFeature=H.LabelFeature,exports.LabelPromotional=I.LabelPromotional,exports.LabelPromotionalStyled=I.LabelPromotionalStyled,exports.LabelStatus=P.LabelStatus,exports.Menu=F.Menu,exports.MenuItem=v.MenuItem,exports.MobileStepper=T.MobileStepper,exports.MobileStepperButton=M.MobileStepperButton,exports.MobileStepperButtonBack=M.MobileStepperButtonBack,exports.MobileStepperButtonNext=M.MobileStepperButtonNext,exports.Modal=k.Modal,exports.ModalTitle=N.ModalTitle,exports.Numbering=L.Numbering,exports.Pagination=f.Pagination,exports.ProgressBar=G.ProgressBar,exports.RadioButton=w.RadioButton,exports.SelectInput=A.SelectInput,exports.Slider=O.Slider,exports.Snackbar=D.Snackbar,exports.checkForIcon=D.checkForIcon,exports.Stepper=U.Stepper,exports.Tab=V.Tab,exports.TabPanel=W.TabPanel,exports.Tabs=z.Tabs,exports.TabsContext=z.TabsContext,exports.SecondaryNavigationTabs=E.SecondaryNavigationTabs,exports.TextArea=R.TextArea,exports.TextInput=Y.TextInput,exports.ToggleSwitch=J.ToggleSwitch,exports.Tooltip=K.Tooltip,exports.AgGrid=Q.AgGrid,exports.ImageComponent=X.default,exports.Avatar=Z.Avatar,exports.CloseDialogButton=$.CloseDialogButton,exports.IconButton=_.IconButton,exports.HelperTextContent=ee.HelperTextContent,exports.Alert=oe.Alert,exports.AlertButton=re.AlertButton,exports.Logo=te.Logo,exports.Gallery=ae.Gallery,exports.GalleryItem=ne.GalleryItem,exports.GalleryHighlightSx=ie.GalleryHighlightSx,exports.GalleryTrigger=ie.GalleryTrigger,exports.UploadBox=se.UploadBox,exports.UploadField=ue.UploadField,exports.UploadPreview=le.UploadPreview,exports.UploadProgress=pe.UploadProgress,exports.UploadPreviewList=de.UploadPreviewList,exports.Card=ce.Card,Object.defineProperty(exports,"Typography",{enumerable:!0,get:function(){return xe.Typography}}),exports.CardOwnedVehicle=me.CardOwnedVehicle,exports.CardPhotoAdjustable=ge.CardPhotoAdjustable,exports.CardPhotoFixed=je.CardPhotoFixed,exports.CardPromoVehicle=Ce.CardPromoVehicle,exports.CardTypeOnly=qe.CardTypeOnly,exports.Carousel=ye.Carousel,exports.emblaWidthSize=ye.emblaWidthSize,exports.getHoveredClass=ye.getHoveredClass,exports.handleScrollNext=ye.handleScrollNext,exports.handleScrollPrev=ye.handleScrollPrev,exports.handleScrollTo=ye.handleScrollTo,exports.HeroImageCard=be.HeroImageCard,exports.Maps=Se.Maps,exports.ShortcutLink=he.ShortcutLink,exports.TextCta=Be.TextCta,exports.Tile=He.Tile,exports.GalleryCarousel=Ie.GalleryCarousel,exports.GalleryDefaultProps=Ie.GalleryDefaultProps,exports.GalleryCarouselItem=Pe.GalleryCarouselItem,exports.GalleryItemHeading=Fe.GalleryItemHeading,exports.GalleryItemText=ve.GalleryItemText,exports.HeroCarousel=Te.HeroCarousel,exports.HeroCarouselSlide=Me.HeroCarouselSlide,exports.CardCarousel=ke.CardCarousel,exports.Notification=Ne.Notification,exports.NotificationCenter=Le.NotificationCenter,exports.NotificationCenterCategory=fe.NotificationCenterCategory,exports.NotificationCenterHeaderButton=Ge.NotificationCenterHeaderButton,Object.defineProperty(exports,"ColourSheme",{enumerable:!0,get:function(){return we.ColourSheme}}),Object.defineProperty(exports,"NumberingColors",{enumerable:!0,get:function(){return we.NumberingColors}}),Object.defineProperty(exports,"NumberingSizes",{enumerable:!0,get:function(){return we.NumberingSizes}}),Object.defineProperty(exports,"Placement",{enumerable:!0,get:function(){return we.Placement}}),Object.defineProperty(exports,"VariantType",{enumerable:!0,get:function(){return we.VariantType}}),exports.useClosure=Ae.useClosure,exports.Header=Oe.Header,exports.HeaderButton=De.HeaderButton,exports.HeaderLogo=Ue.HeaderLogo,exports.HeaderNavigationHero=Ve.HeaderNavigationHero,exports.HeaderNavigationLink=We.HeaderNavigationLink,exports.HeaderNavigationMenu=ze.HeaderNavigationMenu,exports.HeaderSkodaLogo=Ee.HeaderSkodaLogo,exports.HeaderBellButton=Re.HeaderBellButton,exports.HeaderCartButton=Re.HeaderCartButton,exports.HeaderCloseButton=Re.HeaderCloseButton,exports.HeaderFaqButton=Re.HeaderFaqButton,exports.HeaderHeartButton=Re.HeaderHeartButton,exports.HeaderLanguageButton=Re.HeaderLanguageButton,exports.HeaderLoginButton=Re.HeaderLoginButton,exports.HeaderLogoutButton=Re.HeaderLogoutButton,exports.HeaderMenuButton=Re.HeaderMenuButton,exports.HeaderProfileButton=Re.HeaderProfileButton,exports.HeaderSearchButton=Re.HeaderSearchButton,exports.HeaderOverheadItem=Ye.HeaderOverheadItem,exports.SideMenu=Je.SideMenu,exports.SideMenuItem=Ke.SideMenuItem,exports.Footer=Qe.Footer,exports.FooterMenu=Xe.FooterMenu,exports.FooterAccordion=Ze.FooterAccordion,exports.FooterIconButton=$e.FooterIconButton,exports.FacebookFooterIconButton=_e.FacebookFooterIconButton,exports.InstagramFooterIconButton=_e.InstagramFooterIconButton,exports.TwitterFooterIconButton=_e.TwitterFooterIconButton,exports.YoutubeFooterIconButton=_e.YoutubeFooterIconButton,exports.FooterSectionContact=eo.FooterSectionContact,exports.FooterSectionMenu=oo.FooterSectionMenu,exports.FooterLink=ro.FooterLink,exports.ErrorContent=to.ErrorContent,exports.PageLayout=ao.PageLayout,exports.SecondaryNavigation=no.SecondaryNavigation,exports.SecondaryNavigationCta=io.SecondaryNavigationCta,exports.SecondaryNavigationItem=so.SecondaryNavigationItem,exports.CookieModal=uo.CookieModal,exports.CookieModalItem=lo.CookieModalItem,exports.Production=po;
|
|
1
|
+
"use strict";var e=require("./design/skoda/SkodaThemeProvider.js"),o=require("./design/skoda/SkodaThemeWidgetProvider.js"),r=require("./design/skoda/theme.js"),t=require("./components/accordion/accordion.js"),a=require("./components/backdrop/backdrop.js"),n=require("./components/button/button.js"),i=require("./components/banner/banner.js"),s=require("./components/cardContainer/cardContainer.js"),u=require("./components/cardMenu/cardMenu.js"),l=require("./components/checkbox/checkbox.js"),p=require("./components/chip/chipImage/chipImage.js"),d=require("./components/chip/regular/chip.js"),c=require("./components/chip/chipMultiselect/multiSelectChip.js"),m=require("./components/chip/chipDropdownChildren/chipDropdownChildren.js"),x=require("./components/controls/controls.js"),g=require("./components/divider/divider.js"),C=require("./components/drawer/drawer.js"),j=require("./components/flag/flag.js"),q=require("./components/grid/grid.js"),y=require("./components/icon/icon.js"),h=require("./components/icon/icon.definitions.js"),S=require("./components/indicator/indicator.js"),b=require("./components/label/label.js"),B=require("./components/labelCO2/labelCO2.js"),H=require("./components/labelFeature/labelFeature.js"),I=require("./components/labelPromotional/labelPromotional.js"),P=require("./components/labelStatus/labelStatus.js"),F=require("./components/menu/menu.js"),M=require("./components/menuItem/menuItem.js"),v=require("./components/mobileStepper/mobileStepper.js"),k=require("./components/mobileStepper/mobileStepperButton.js"),L=require("./components/modal/modal.js"),T=require("./components/modal/modalTitle.js"),N=require("./components/numbering/numbering.js"),f=require("./components/pagination/pagination.js"),w=require("./components/progressBar/progressBar.js"),G=require("./components/radioButton/radioButton.js"),A=require("./components/selectInput/selectInput.js"),O=require("./components/slider/slider.js"),D=require("./components/snackbar/snackbar.js"),U=require("./components/stepper/stepper.js"),V=require("./components/textArea/textArea.js"),W=require("./components/textInput/textInput.js"),z=require("./components/toggleSwitch/toggleSwitch.js"),E=require("./components/tooltip/tooltip.js"),R=require("./components/common/imageComponent.js"),Y=require("./components/avatar/Avatar.js"),J=require("./components/closeDialogButton/index.js"),K=require("./components/iconButton/index.js"),Q=require("./components/helperTextContent/index.js"),X=require("./components/alert/Alert.js"),Z=require("./components/alert/AlertButton.js"),$=require("./components/logo/Logo.js"),_=require("./organisms/gallery/Gallery.js"),ee=require("./organisms/gallery/GalleryItem.js"),oe=require("./organisms/gallery/GalleryTrigger.js"),re=require("./components/upload/UploadBox.js"),te=require("./components/upload/UploadField.js"),ae=require("./components/upload/UploadPreview.js"),ne=require("./components/upload/UploadProgress.js"),ie=require("./components/upload/UploadPreviewList.js"),se=require("./components/card/Card.js"),ue=require("@mui/material"),le=require("./organisms/cardOwnedVehicle/cardOwnedVehicle.js"),pe=require("./organisms/cardPhotoAdjustable/cardPhotoAdjustable.js"),de=require("./organisms/cardPhotoFixed/cardPhotoFixed.js"),ce=require("./organisms/cardPromoVehicle/cardPromoVehicle.js"),me=require("./organisms/cardTypeOnly/cardTypeOnly.js"),xe=require("./organisms/carousel/carousel.js"),ge=require("./organisms/heroImageCard/heroImageCard.js"),Ce=require("./organisms/maps/maps.js"),je=require("./organisms/shortcutLink/shortcutLink.js"),qe=require("./organisms/textCta/textCta.js"),ye=require("./organisms/tile/tile.js"),he=require("./organisms/carousel2/galleryCarousel/galleryCarousel.js"),Se=require("./organisms/carousel2/galleryCarousel/galleryCarouselItem.js"),be=require("./organisms/carousel2/galleryCarousel/galleryItemHeading.js"),Be=require("./organisms/carousel2/galleryCarousel/GalleryItemText.js"),He=require("./organisms/carousel2/heroCarousel/heroCarousel.js"),Ie=require("./organisms/carousel2/heroCarousel/HeroCarouselSlide.js"),Pe=require("./organisms/carousel2/cardCarousel/cardCarousel.js"),Fe=require("./organisms/notification/Notification.js"),Me=require("./organisms/notification/NotificationCenter.js"),ve=require("./organisms/notification/NotificationCenterCategory.js"),ke=require("./organisms/notification/NotificationCenterHeaderButton.js"),Le=require("./utils/enum.js"),Te=require("./utils/useClosure/useClosure.js"),Ne=require("./layout/Header/Header.js"),fe=require("./layout/Header/HeaderButton.js"),we=require("./layout/Header/HeaderLogo.js"),Ge=require("./layout/Header/HeaderNavigationHero.js"),Ae=require("./layout/Header/HeaderNavigationLink.js"),Oe=require("./layout/Header/HeaderNavigationMenu.js"),De=require("./layout/Header/HeaderSkodaLogo.js"),Ue=require("./layout/Header/PredefinedHeaderButtons.js"),Ve=require("./layout/Header/HeaderOverheadItem.js"),We=require("./layout/SideMenu/SideMenu.js"),ze=require("./layout/SideMenu/SideMenuItem.js"),Ee=require("./layout/Footer/Footer.js"),Re=require("./layout/Footer/FooterMenu.js"),Ye=require("./layout/Footer/FooterAccordion.js"),Je=require("./layout/Footer/FooterIconButton.js"),Ke=require("./layout/Footer/PredefinedFooterIconButtons.js"),Qe=require("./layout/Footer/FooterSectionContact.js"),Xe=require("./layout/Footer/FooterSectionMenu.js"),Ze=require("./layout/Footer/FooterLink.js"),$e=require("./layout/Error/ErrorContent.js"),_e=require("./layout/PageLayout/PageLayout.js"),eo=require("./layout/SecondaryNavigation/SecondaryNavigation.js"),oo=require("./layout/SecondaryNavigation/SecondaryNavigationCta.js"),ro=require("./layout/SecondaryNavigation/SecondaryNavigationItem.js"),to=require("./layout/cookieModal/CookieModal.js"),ao=require("./layout/cookieModal/CookieModalItem.js"),no=require("./layout/container/container.js"),io=require("./production/index.js");exports.SkodaThemeProvider=e.SkodaThemeProvider,exports.SkodaThemeWidgetProvider=o.SkodaThemeWidgetProvider,exports.darkTheme=r.darkTheme,exports.theme=r.theme,exports.Accordion=t.Accordion,exports.Backdrop=a.Backdrop,exports.Button=n.Button,Object.defineProperty(exports,"ButtonVariants",{enumerable:!0,get:function(){return n.ButtonVariants}}),exports.Banner=i.Banner,exports.CardContainer=s.CardContainer,exports.CardMenu=u.CardMenu,exports.Checkbox=l.Checkbox,exports.ChipImage=p.ChipImage,exports.Chip=d.Chip,exports.MultiSelectChip=c.MultiSelectChip,exports.ChipDropdownChildren=m.ChipDropdownChildren,exports.Controller=x.Controller,exports.Divider=g.Divider,exports.Drawer=C.Drawer,exports.Flag=j.Flag,exports.Grid=q.Grid,exports.Icon=y.Icon,exports.availableIcons=h.availableIcons,exports.iconDefinitions=h.iconDefinitions,exports.Indicator=S.Indicator,exports.Label=b.Label,exports.LabelCO2=B.LabelCO2,exports.LabelFeature=H.LabelFeature,exports.LabelPromotional=I.LabelPromotional,exports.LabelPromotionalStyled=I.LabelPromotionalStyled,exports.LabelStatus=P.LabelStatus,exports.Menu=F.Menu,exports.MenuItem=M.MenuItem,exports.MobileStepper=v.MobileStepper,exports.MobileStepperButton=k.MobileStepperButton,exports.MobileStepperButtonBack=k.MobileStepperButtonBack,exports.MobileStepperButtonNext=k.MobileStepperButtonNext,exports.Modal=L.Modal,exports.ModalTitle=T.ModalTitle,exports.Numbering=N.Numbering,exports.Pagination=f.Pagination,exports.ProgressBar=w.ProgressBar,exports.RadioButton=G.RadioButton,exports.SelectInput=A.SelectInput,exports.Slider=O.Slider,exports.Snackbar=D.Snackbar,exports.checkForIcon=D.checkForIcon,exports.Stepper=U.Stepper,exports.TextArea=V.TextArea,exports.TextInput=W.TextInput,exports.ToggleSwitch=z.ToggleSwitch,exports.Tooltip=E.Tooltip,exports.ImageComponent=R.default,exports.Avatar=Y.Avatar,exports.CloseDialogButton=J.CloseDialogButton,exports.IconButton=K.IconButton,exports.HelperTextContent=Q.HelperTextContent,exports.Alert=X.Alert,exports.AlertButton=Z.AlertButton,exports.Logo=$.Logo,exports.Gallery=_.Gallery,exports.GalleryItem=ee.GalleryItem,exports.GalleryHighlightSx=oe.GalleryHighlightSx,exports.GalleryTrigger=oe.GalleryTrigger,exports.UploadBox=re.UploadBox,exports.UploadField=te.UploadField,exports.UploadPreview=ae.UploadPreview,exports.UploadProgress=ne.UploadProgress,exports.UploadPreviewList=ie.UploadPreviewList,exports.Card=se.Card,Object.defineProperty(exports,"Typography",{enumerable:!0,get:function(){return ue.Typography}}),exports.CardOwnedVehicle=le.CardOwnedVehicle,exports.CardPhotoAdjustable=pe.CardPhotoAdjustable,exports.CardPhotoFixed=de.CardPhotoFixed,exports.CardPromoVehicle=ce.CardPromoVehicle,exports.CardTypeOnly=me.CardTypeOnly,exports.Carousel=xe.Carousel,exports.emblaWidthSize=xe.emblaWidthSize,exports.getHoveredClass=xe.getHoveredClass,exports.handleScrollNext=xe.handleScrollNext,exports.handleScrollPrev=xe.handleScrollPrev,exports.handleScrollTo=xe.handleScrollTo,exports.HeroImageCard=ge.HeroImageCard,exports.Maps=Ce.Maps,exports.ShortcutLink=je.ShortcutLink,exports.TextCta=qe.TextCta,exports.Tile=ye.Tile,exports.GalleryCarousel=he.GalleryCarousel,exports.GalleryDefaultProps=he.GalleryDefaultProps,exports.GalleryCarouselItem=Se.GalleryCarouselItem,exports.GalleryItemHeading=be.GalleryItemHeading,exports.GalleryItemText=Be.GalleryItemText,exports.HeroCarousel=He.HeroCarousel,exports.HeroCarouselSlide=Ie.HeroCarouselSlide,exports.CardCarousel=Pe.CardCarousel,exports.Notification=Fe.Notification,exports.NotificationCenter=Me.NotificationCenter,exports.NotificationCenterCategory=ve.NotificationCenterCategory,exports.NotificationCenterHeaderButton=ke.NotificationCenterHeaderButton,Object.defineProperty(exports,"ColourSheme",{enumerable:!0,get:function(){return Le.ColourSheme}}),Object.defineProperty(exports,"NumberingColors",{enumerable:!0,get:function(){return Le.NumberingColors}}),Object.defineProperty(exports,"NumberingSizes",{enumerable:!0,get:function(){return Le.NumberingSizes}}),Object.defineProperty(exports,"Placement",{enumerable:!0,get:function(){return Le.Placement}}),Object.defineProperty(exports,"VariantType",{enumerable:!0,get:function(){return Le.VariantType}}),exports.useClosure=Te.useClosure,exports.Header=Ne.Header,exports.HeaderButton=fe.HeaderButton,exports.HeaderLogo=we.HeaderLogo,exports.HeaderNavigationHero=Ge.HeaderNavigationHero,exports.HeaderNavigationLink=Ae.HeaderNavigationLink,exports.HeaderNavigationMenu=Oe.HeaderNavigationMenu,exports.HeaderSkodaLogo=De.HeaderSkodaLogo,exports.HeaderBellButton=Ue.HeaderBellButton,exports.HeaderCartButton=Ue.HeaderCartButton,exports.HeaderCloseButton=Ue.HeaderCloseButton,exports.HeaderFaqButton=Ue.HeaderFaqButton,exports.HeaderHeartButton=Ue.HeaderHeartButton,exports.HeaderLanguageButton=Ue.HeaderLanguageButton,exports.HeaderLoginButton=Ue.HeaderLoginButton,exports.HeaderLogoutButton=Ue.HeaderLogoutButton,exports.HeaderMenuButton=Ue.HeaderMenuButton,exports.HeaderProfileButton=Ue.HeaderProfileButton,exports.HeaderSearchButton=Ue.HeaderSearchButton,exports.HeaderOverheadItem=Ve.HeaderOverheadItem,exports.SideMenu=We.SideMenu,exports.SideMenuItem=ze.SideMenuItem,exports.Footer=Ee.Footer,exports.FooterMenu=Re.FooterMenu,exports.FooterAccordion=Ye.FooterAccordion,exports.FooterIconButton=Je.FooterIconButton,exports.FacebookFooterIconButton=Ke.FacebookFooterIconButton,exports.InstagramFooterIconButton=Ke.InstagramFooterIconButton,exports.TwitterFooterIconButton=Ke.TwitterFooterIconButton,exports.YoutubeFooterIconButton=Ke.YoutubeFooterIconButton,exports.FooterSectionContact=Qe.FooterSectionContact,exports.FooterSectionMenu=Xe.FooterSectionMenu,exports.FooterLink=Ze.FooterLink,exports.ErrorContent=$e.ErrorContent,exports.PageLayout=_e.PageLayout,exports.SecondaryNavigation=eo.SecondaryNavigation,exports.SecondaryNavigationCta=oo.SecondaryNavigationCta,exports.SecondaryNavigationItem=ro.SecondaryNavigationItem,exports.CookieModal=to.CookieModal,exports.CookieModalItem=ao.CookieModalItem,exports.Container=no.Container,exports.Production=io;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("tslib"),r=require("react/jsx-runtime"),o=require("@mui/material"),
|
|
1
|
+
"use strict";var e=require("tslib"),r=require("react/jsx-runtime"),o=require("@mui/material"),i=require("react"),s=require("../../components/icon/icon.js");require("../../components/accordion/accordion.js"),require("../../components/backdrop/backdrop.js"),require("../../components/button/button.js"),require("../../design/skoda/theme.js"),require("@mui/material/styles"),require("../../organisms/cardOwnedVehicle/cardOwnedVehicle.js"),require("../../organisms/cardPhotoAdjustable/cardPhotoAdjustable.js"),require("../../organisms/cardPhotoFixed/cardPhotoFixed.js"),require("../../organisms/cardPromoVehicle/cardPromoVehicleComponent.js"),require("../../organisms/common/styled/cardStandardWrapperStyled.js"),require("../../organisms/cardTypeOnly/cardTypeOnly.js"),require("embla-carousel-react"),require("embla-carousel-class-names"),require("embla-carousel-autoplay"),require("../../organisms/carousel/styledComponents/styledCarouselHorizontal.js"),require("../../organisms/carousel/styledComponents/styledCarouselVertical.js"),require("../../components/controls/controls.js"),require("../../components/numbering/numbering.js"),require("../../utils/enum.js"),require("../../organisms/heroImageCard/heroImageCard.js"),require("@googlemaps/react-wrapper"),require("@googlemaps/markerclusterer"),require("../../organisms/maps/utils/mapIcons.js"),require("../../organisms/maps/mapComponents/mapStyled.js"),require("../../organisms/shortcutLink/shortcutLink.js"),require("../../organisms/textCta/textCta.js"),require("../../organisms/tile/tile.js"),require("@mui/system"),require("../../organisms/carousel2/galleryCarousel/galleryContext.js"),require("../../organisms/carousel2/galleryCarousel/galleryItemContext.js"),require("../../organisms/carousel2/heroCarousel/heroCarouselContext.js"),require("../../organisms/notification/Notification.js"),require("../../organisms/notification/NotificationCenter.js"),require("./HeaderContext.js"),require("./HeaderNavigationHero.js"),require("./HeaderNavigationLink.js"),require("./HeaderNavigationMenu.js"),require("./PredefinedHeaderButtons.js"),require("./HeaderOverheadItem.js"),require("../../components/icon/icon.definitions.js"),require("../SideMenu/SideMenuItem.js"),require("@mui/material/Unstable_Grid2"),require("react-keyed-flatten-children"),require("react-use"),require("../SecondaryNavigation/SecondaryNavigationCta.js"),require("../SecondaryNavigation/SecondaryNavigationItem.js"),require("@mui/material/Container"),require("../../production/Button/Button.js"),require("../../components/cardContainer/cardContainer.js"),require("../../components/cardMenu/cardMenu.js"),require("../../components/checkbox/checkbox.js"),require("../../components/chip/chipImage/chipImage.js"),require("../../components/chip/regular/chip.js"),require("../../components/chip/chipMultiselect/multiSelectChip.js"),require("../../components/chip/chipDropdownChildren/chipDropdownChildren.js"),require("../../components/divider/divider.js"),require("../../components/drawer/drawer.js"),require("../../components/flag/flag.js"),require("@mui/material/Grid");var n=require("../../components/indicator/indicator.js");require("../../components/label/label.js"),require("../../components/labelCO2/labelCO2.js"),require("../../components/labelFeature/labelFeature.js"),require("../../components/labelPromotional/labelPromotional.js"),require("../../components/labelStatus/labelStatus.js"),require("../../components/menu/menu.js"),require("@mui/material/MenuItem"),require("@mui/material/MobileStepper"),require("../../components/mobileStepper/mobileStepperButton.js"),require("../../components/modal/modal.js"),require("../../components/modal/modalTitle.js"),require("../../components/pagination/pagination.js"),require("../../components/progressBar/progressBar.js"),require("../../components/radioButton/radioButton.js"),require("../../components/selectInput/selectInput.js"),require("../../components/slider/slider.js"),require("../../components/snackbar/snackbar.js"),require("../../components/stepper/stepper.js"),require("../../components/textArea/textArea.js"),require("../../components/common/styled/textFieldStyled.js"),require("../../components/helperTextContent/index.js"),require("../../components/toggleSwitch/toggleSwitch.js"),require("../../components/avatar/Avatar.js"),require("../../components/iconButton/index.js"),require("../../components/alert/AlertButton.js"),require("../../organisms/gallery/Gallery.js"),require("../../organisms/gallery/GalleryItem.js"),require("minimatch");const t=i.forwardRef((function(i,t){const{icon:a,label:u,color:c,indicator:l}=i,m=e.__rest(i,["icon","label","color","indicator"]),p=o.useTheme();return r.jsx(o.Tooltip,{title:u,enterDelay:1e3,enterNextDelay:1e3,leaveDelay:100,placement:"bottom",children:r.jsxs(o.IconButton,Object.assign({size:"large"},m,{ref:t,sx:{background:"grey"===c&&p.palette.surface.primary,".fwlIndicator":{position:"absolute",top:"15%",right:"20%"},".fwlIndicator::before":{margin:0}},children:[l&&r.jsx(n.Indicator,{color:l,variant:"status"}),r.jsx(s.Icon,{name:a})]}))})}));exports.HeaderButton=t;
|
|
2
2
|
//# sourceMappingURL=HeaderButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderButton.js","sources":["../../../../src/layout/Header/HeaderButton.tsx"],"sourcesContent":["import { __rest } from \"tslib\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { IconButton, Tooltip, useTheme } from '@mui/material';\nimport { forwardRef } from 'react';\nimport { Icon } from '../../components/icon/icon';\nimport { Indicator } from '@/src/components';\nfunction HeaderButtonBase(props, ref) {\n const { icon, label, color, indicator } = props, rest = __rest(props, [\"icon\", \"label\", \"color\", \"indicator\"]);\n const theme = useTheme();\n return (_jsx(Tooltip, { title: label, enterDelay: 1000, enterNextDelay: 1000, leaveDelay: 100, placement: \"bottom\", children: _jsxs(IconButton, Object.assign({ size: \"large\" }, rest, { ref: ref, sx: {\n background: color === 'grey' && theme.palette.surface.primary,\n '.fwlIndicator': {\n position: 'absolute',\n top: '15%',\n right: '20%',\n },\n '.fwlIndicator::before': {\n margin: 0,\n },\n }, children: [indicator && _jsx(Indicator, { color: indicator, variant: \"status\" }), _jsx(Icon, { name: icon })] })) }));\n}\nexport const HeaderButton = forwardRef(HeaderButtonBase);\n//# sourceMappingURL=HeaderButton.js.map"],"names":["HeaderButton","forwardRef","props","ref","icon","label","color","indicator","rest","__rest","theme","useTheme","_jsx","Tooltip","title","enterDelay","enterNextDelay","leaveDelay","placement","children","_jsxs","IconButton","Object","assign","size","sx","background","palette","surface","primary","position","top","right","margin","jsx","Indicator","variant","Icon","name"],"mappings":"
|
|
1
|
+
{"version":3,"file":"HeaderButton.js","sources":["../../../../src/layout/Header/HeaderButton.tsx"],"sourcesContent":["import { __rest } from \"tslib\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { IconButton, Tooltip, useTheme } from '@mui/material';\nimport { forwardRef } from 'react';\nimport { Icon } from '../../components/icon/icon';\nimport { Indicator } from '@/src/components';\nfunction HeaderButtonBase(props, ref) {\n const { icon, label, color, indicator } = props, rest = __rest(props, [\"icon\", \"label\", \"color\", \"indicator\"]);\n const theme = useTheme();\n return (_jsx(Tooltip, { title: label, enterDelay: 1000, enterNextDelay: 1000, leaveDelay: 100, placement: \"bottom\", children: _jsxs(IconButton, Object.assign({ size: \"large\" }, rest, { ref: ref, sx: {\n background: color === 'grey' && theme.palette.surface.primary,\n '.fwlIndicator': {\n position: 'absolute',\n top: '15%',\n right: '20%',\n },\n '.fwlIndicator::before': {\n margin: 0,\n },\n }, children: [indicator && _jsx(Indicator, { color: indicator, variant: \"status\" }), _jsx(Icon, { name: icon })] })) }));\n}\nexport const HeaderButton = forwardRef(HeaderButtonBase);\n//# sourceMappingURL=HeaderButton.js.map"],"names":["HeaderButton","forwardRef","props","ref","icon","label","color","indicator","rest","__rest","theme","useTheme","_jsx","Tooltip","title","enterDelay","enterNextDelay","leaveDelay","placement","children","_jsxs","IconButton","Object","assign","size","sx","background","palette","surface","primary","position","top","right","margin","jsx","Indicator","variant","Icon","name"],"mappings":"26IAqBY,MAACA,EAAeC,EAAUA,YAftC,SAA0BC,EAAOC,GAC7B,MAAMC,KAAEA,EAAIC,MAAEA,EAAKC,MAAEA,EAAKC,UAAEA,GAAcL,EAAOM,EAAOC,EAAAA,OAAOP,EAAO,CAAC,OAAQ,QAAS,QAAS,cAC3FQ,EAAQC,EAAAA,WACd,OAAQC,MAAKC,EAAAA,QAAS,CAAEC,MAAOT,EAAOU,WAAY,IAAMC,eAAgB,IAAMC,WAAY,IAAKC,UAAW,SAAUC,SAAUC,OAAMC,EAAAA,WAAYC,OAAOC,OAAO,CAAEC,KAAM,SAAWhB,EAAM,CAAEL,IAAKA,EAAKsB,GAAI,CAC3LC,WAAsB,SAAVpB,GAAoBI,EAAMiB,QAAQC,QAAQC,QACtD,gBAAiB,CACbC,SAAU,WACVC,IAAK,MACLC,MAAO,OAEX,wBAAyB,CACrBC,OAAQ,IAEbd,SAAU,CAACZ,GAAaK,EAAIsB,IAACC,EAASA,UAAE,CAAE7B,MAAOC,EAAW6B,QAAS,WAAaxB,EAAIsB,IAACG,EAAIA,KAAE,CAAEC,KAAMlC,SACpH"}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { OverrideProps } from '@mui/material/OverridableComponent';
|
|
3
3
|
export interface HeaderNavigationLinkTypeMap<P = unknown, C extends React.ElementType = 'a'> {
|
|
4
4
|
props: P & {
|
|
5
|
-
label
|
|
5
|
+
label?: string;
|
|
6
6
|
href?: string;
|
|
7
7
|
onClick?: () => void;
|
|
8
8
|
external?: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("tslib"),r=require("react/jsx-runtime"),i=require("@mui/material"),t=require("react"),n=require("../../components/icon/icon.js"),o=require("@mui/base");const a=i.styled(o.Button)((()=>({paddingLeft:6,paddingRight:6,"&:hover .FwlNavigationItem-label":{borderBottomColor:"currentColor"},appearance:"inherit",border:"inherit",background:"inherit",cursor:"pointer",display:"flex",alignItems:"center",color:"inherit"}))),l=i.styled(i.Box)((({theme:e})=>Object.assign(Object.assign({},e.typography.body),{color:"inherit",lineHeight:"24px",fontWeight:"400 !important",fontSize:16,paddingLeft:2,paddingRight:2,borderTop:"2px solid",borderBottom:"2px solid",borderColor:"transparent",transition:"border 300ms ease-out 150ms"}))),s=i.styled(n.Icon)((()=>({width:"15px",height:"15px",marginLeft:"5px",lineHeight:"5px","&::before":{fontSize:"16px"}})));exports.HeaderNavigationLink=function(n){const{
|
|
1
|
+
"use strict";var e=require("tslib"),r=require("react/jsx-runtime"),i=require("@mui/material"),t=require("react"),n=require("../../components/icon/icon.js"),o=require("@mui/base");const a=i.styled(o.Button)((()=>({paddingLeft:6,paddingRight:6,"&:hover .FwlNavigationItem-label":{borderBottomColor:"currentColor"},appearance:"inherit",border:"inherit",background:"inherit",cursor:"pointer",display:"flex",alignItems:"center",color:"inherit"}))),l=i.styled(i.Box)((({theme:e})=>Object.assign(Object.assign({},e.typography.body),{color:"inherit",lineHeight:"24px",fontWeight:"400 !important",fontSize:16,paddingLeft:2,paddingRight:2,borderTop:"2px solid",borderBottom:"2px solid",borderColor:"transparent",transition:"border 300ms ease-out 150ms"}))),s=i.styled(n.Icon)((()=>({width:"15px",height:"15px",marginLeft:"5px",lineHeight:"5px","&::before":{fontSize:"16px"}})));exports.HeaderNavigationLink=function(n){const{children:o,label:c,onClick:d,external:p}=n,g=e.__rest(n,["children","label","onClick","external"]),h=t.useRef(null);return r.jsx(i.Box,{ref:h,display:"flex",alignItems:"center",children:r.jsxs(a,Object.assign({onClick:d},g,{children:[r.jsx(l,{className:"FwlNavigationItem-label",children:c||o}),p&&r.jsx(s,{name:"arrow-right"})]}))})};
|
|
2
2
|
//# sourceMappingURL=HeaderNavigationLink.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderNavigationLink.js","sources":["../../../../src/layout/Header/HeaderNavigationLink.tsx"],"sourcesContent":["import { __rest } from \"tslib\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { Box, styled } from '@mui/material';\nimport { useRef } from 'react';\nimport { Icon } from '../../components/icon/icon';\nimport { Button } from '@mui/base';\nexport function HeaderNavigationLink(props) {\n const { label, onClick, external } = props, rest = __rest(props, [\"label\", \"onClick\", \"external\"]);\n const anchor = useRef(null);\n return (_jsx(Box, { ref: anchor, display: \"flex\", alignItems: \"center\", children: _jsxs(ItemButton, Object.assign({ onClick: onClick }, rest, { children: [_jsx(ItemLabel, { className: \"FwlNavigationItem-label\", children: label }), external && _jsx(ItemIcon, {
|
|
1
|
+
{"version":3,"file":"HeaderNavigationLink.js","sources":["../../../../src/layout/Header/HeaderNavigationLink.tsx"],"sourcesContent":["import { __rest } from \"tslib\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { Box, styled } from '@mui/material';\nimport { useRef } from 'react';\nimport { Icon } from '../../components/icon/icon';\nimport { Button } from '@mui/base';\nexport function HeaderNavigationLink(props) {\n const { children, label, onClick, external } = props, rest = __rest(props, [\"children\", \"label\", \"onClick\", \"external\"]);\n const anchor = useRef(null);\n return (_jsx(Box, { ref: anchor, display: \"flex\", alignItems: \"center\", children: _jsxs(ItemButton, Object.assign({ onClick: onClick }, rest, { children: [_jsx(ItemLabel, { className: \"FwlNavigationItem-label\", children: label || children }), external && _jsx(ItemIcon, { name: \"arrow-right\" })] })) }));\n}\nconst ItemButton = styled(Button)(() => ({\n paddingLeft: 6,\n paddingRight: 6,\n '&:hover .FwlNavigationItem-label': {\n borderBottomColor: 'currentColor',\n },\n appearance: 'inherit',\n border: 'inherit',\n background: 'inherit',\n cursor: 'pointer',\n display: 'flex',\n alignItems: 'center',\n color: 'inherit',\n}));\nconst ItemLabel = styled(Box)(({ theme }) => (Object.assign(Object.assign({}, theme.typography.body), { color: 'inherit', lineHeight: '24px', fontWeight: '400 !important', fontSize: 16, paddingLeft: 2, paddingRight: 2, borderTop: '2px solid', borderBottom: '2px solid', borderColor: 'transparent', transition: 'border 300ms ease-out 150ms' })));\nconst ItemIcon = styled(Icon)(() => ({\n width: '15px',\n height: '15px',\n marginLeft: '5px',\n lineHeight: '5px',\n '&::before': {\n fontSize: '16px',\n },\n}));\n//# sourceMappingURL=HeaderNavigationLink.js.map"],"names":["ItemButton","styled","Button","paddingLeft","paddingRight","borderBottomColor","appearance","border","background","cursor","display","alignItems","color","ItemLabel","Box","theme","Object","assign","typography","body","lineHeight","fontWeight","fontSize","borderTop","borderBottom","borderColor","transition","ItemIcon","Icon","width","height","marginLeft","props","children","label","onClick","external","rest","__rest","anchor","useRef","_jsx","ref","_jsxs","jsxs","jsx","className","name"],"mappings":"mLAWA,MAAMA,EAAaC,EAAAA,OAAOC,EAAMA,OAAbD,EAAe,KAAO,CACrCE,YAAa,EACbC,aAAc,EACd,mCAAoC,CAChCC,kBAAmB,gBAEvBC,WAAY,UACZC,OAAQ,UACRC,WAAY,UACZC,OAAQ,UACRC,QAAS,OACTC,WAAY,SACZC,MAAO,cAELC,EAAYZ,EAAMA,OAACa,MAAPb,EAAY,EAAGc,WAAaC,OAAOC,OAAOD,OAAOC,OAAO,CAAA,EAAIF,EAAMG,WAAWC,MAAO,CAAEP,MAAO,UAAWQ,WAAY,OAAQC,WAAY,iBAAkBC,SAAU,GAAInB,YAAa,EAAGC,aAAc,EAAGmB,UAAW,YAAaC,aAAc,YAAaC,YAAa,cAAeC,WAAY,kCAChTC,EAAW1B,EAAAA,OAAO2B,EAAIA,KAAX3B,EAAa,KAAO,CACjC4B,MAAO,OACPC,OAAQ,OACRC,WAAY,MACZX,WAAY,MACZ,YAAa,CACTE,SAAU,yCA1BX,SAA8BU,GACjC,MAAMC,SAAEA,EAAQC,MAAEA,EAAKC,QAAEA,EAAOC,SAAEA,GAAaJ,EAAOK,EAAOC,EAAAA,OAAON,EAAO,CAAC,WAAY,QAAS,UAAW,aACtGO,EAASC,SAAO,MACtB,OAAQC,EAAAA,IAAK3B,EAAAA,IAAK,CAAE4B,IAAKH,EAAQ7B,QAAS,OAAQC,WAAY,SAAUsB,SAAUU,EAAKC,KAAC5C,EAAYgB,OAAOC,OAAO,CAAEkB,QAASA,GAAWE,EAAM,CAAEJ,SAAU,CAACQ,EAAII,IAAChC,EAAW,CAAEiC,UAAW,0BAA2Bb,SAAUC,GAASD,IAAaG,GAAYK,MAAKd,EAAU,CAAEoB,KAAM,qBAC1R"}
|
|
@@ -2,5 +2,6 @@ import React from 'react';
|
|
|
2
2
|
export type HeaderNavigationMenuProps = {
|
|
3
3
|
menuItems: React.ReactNode;
|
|
4
4
|
label: string;
|
|
5
|
+
children?: React.ReactNode;
|
|
5
6
|
};
|
|
6
7
|
export declare function HeaderNavigationMenu(props: HeaderNavigationMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),r=require("@mui/material"),i=require("react"),o=require("../../components/icon/icon.js");require("../../utils/enum.js");var
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),r=require("@mui/material"),i=require("react"),o=require("../../components/icon/icon.js");require("../../utils/enum.js");var t=require("../../utils/useClosure/useClosure.js"),n=require("@mui/base");const s=r.styled(n.Button)((()=>({paddingLeft:6,paddingRight:6,"&:hover .FwlNavigationItem-label":{borderBottomColor:"currentColor"},appearance:"inherit",border:"inherit",background:"inherit",cursor:"pointer",display:"flex",alignItems:"center",color:"inherit"}))),a=r.styled(r.Box)((({theme:e})=>Object.assign(Object.assign({},e.typography.body),{color:"inherit",lineHeight:"24px",fontWeight:"400 !important",fontSize:16,paddingLeft:2,paddingRight:2,borderTop:"2px solid",borderBottom:"2px solid",borderColor:"transparent",transition:"border 300ms ease-out 150ms"}))),l=r.styled(o.Icon)((()=>({width:"15px",height:"15px",marginLeft:"5px",lineHeight:"5px","&::before":{fontSize:"16px"}})));exports.HeaderNavigationMenu=function(o){const{children:n,label:c,menuItems:p}=o,{isOpen:d,onOpen:u,onClose:h}=t.useClosure(),m=i.useRef(null);return e.jsxs(r.Box,{ref:m,display:"flex",alignItems:"center",children:[e.jsxs(s,{onClick:u,children:[e.jsx(a,{className:"FwlNavigationItem-label",children:c||n}),e.jsx(l,{name:d?"chevron-up":"chevron-down"})]}),e.jsx(r.Menu,{anchorEl:m.current,open:d,onClose:h,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},slotProps:{paper:{sx:{mt:1}}},componentsProps:{backdrop:{className:"MuiBackdrop-transparent"}},children:e.jsx("div",{children:p})})]})};
|
|
2
2
|
//# sourceMappingURL=HeaderNavigationMenu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderNavigationMenu.js","sources":["../../../../src/layout/Header/HeaderNavigationMenu.tsx"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { Box, Menu, styled } from '@mui/material';\nimport { useRef } from 'react';\nimport { Icon } from '../../components/icon/icon';\nimport { useClosure } from '../../utils';\nimport { Button } from '@mui/base';\nexport function HeaderNavigationMenu(props) {\n const { label, menuItems } = props;\n const { isOpen, onOpen, onClose } = useClosure();\n const anchor = useRef(null);\n return (_jsxs(Box, { ref: anchor, display: \"flex\", alignItems: \"center\", children: [_jsxs(ItemButton, { onClick: onOpen, children: [_jsx(ItemLabel, { className: \"FwlNavigationItem-label\", children: label }), _jsx(ItemIcon, {
|
|
1
|
+
{"version":3,"file":"HeaderNavigationMenu.js","sources":["../../../../src/layout/Header/HeaderNavigationMenu.tsx"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { Box, Menu, styled } from '@mui/material';\nimport { useRef } from 'react';\nimport { Icon } from '../../components/icon/icon';\nimport { useClosure } from '../../utils';\nimport { Button } from '@mui/base';\nexport function HeaderNavigationMenu(props) {\n const { children, label, menuItems } = props;\n const { isOpen, onOpen, onClose } = useClosure();\n const anchor = useRef(null);\n return (_jsxs(Box, { ref: anchor, display: \"flex\", alignItems: \"center\", children: [_jsxs(ItemButton, { onClick: onOpen, children: [_jsx(ItemLabel, { className: \"FwlNavigationItem-label\", children: label || children }), _jsx(ItemIcon, { name: isOpen ? 'chevron-up' : 'chevron-down' })] }), _jsx(Menu, { anchorEl: anchor.current, open: isOpen, onClose: onClose, anchorOrigin: {\n vertical: 'bottom',\n horizontal: 'right',\n }, transformOrigin: {\n vertical: 'top',\n horizontal: 'right',\n }, slotProps: {\n paper: {\n sx: { mt: 1 },\n },\n }, componentsProps: {\n backdrop: {\n className: 'MuiBackdrop-transparent',\n },\n }, children: _jsx(\"div\", { children: menuItems }) })] }));\n}\nconst ItemButton = styled(Button)(() => ({\n paddingLeft: 6,\n paddingRight: 6,\n '&:hover .FwlNavigationItem-label': {\n borderBottomColor: 'currentColor',\n },\n appearance: 'inherit',\n border: 'inherit',\n background: 'inherit',\n cursor: 'pointer',\n display: 'flex',\n alignItems: 'center',\n color: 'inherit',\n}));\nconst ItemLabel = styled(Box)(({ theme }) => (Object.assign(Object.assign({}, theme.typography.body), { color: 'inherit', lineHeight: '24px', fontWeight: '400 !important', fontSize: 16, paddingLeft: 2, paddingRight: 2, borderTop: '2px solid', borderBottom: '2px solid', borderColor: 'transparent', transition: 'border 300ms ease-out 150ms' })));\nconst ItemIcon = styled(Icon)(() => ({\n width: '15px',\n height: '15px',\n marginLeft: '5px',\n lineHeight: '5px',\n '&::before': {\n fontSize: '16px',\n },\n}));\n//# sourceMappingURL=HeaderNavigationMenu.js.map"],"names":["ItemButton","styled","Button","paddingLeft","paddingRight","borderBottomColor","appearance","border","background","cursor","display","alignItems","color","ItemLabel","Box","theme","Object","assign","typography","body","lineHeight","fontWeight","fontSize","borderTop","borderBottom","borderColor","transition","ItemIcon","Icon","width","height","marginLeft","props","children","label","menuItems","isOpen","onOpen","onClose","useClosure","anchor","useRef","_jsxs","jsxs","ref","onClick","_jsx","jsx","className","name","Menu","anchorEl","current","open","anchorOrigin","vertical","horizontal","transformOrigin","slotProps","paper","sx","mt","componentsProps","backdrop"],"mappings":"qPA0BA,MAAMA,EAAaC,EAAAA,OAAOC,EAAMA,OAAbD,EAAe,KAAO,CACrCE,YAAa,EACbC,aA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,QACrD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container.js","sources":["../../../../src/layout/container/container.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport MuiContainer from '@mui/material/Container';\n/**\n * @description SkodaFlow Container component.\n * Properties are inherited from HTML Container element.\n * @param props ContainerProps\n * @returns React Functional Component\n * @deprecated this Component is deprecated. Use Container from @mui/material instead\n */\nexport const Container = (props) => {\n return (_jsx(MuiContainer, Object.assign({}, props, { className: props.className + ' ' + (props.narrow && 'narrow'), \"data-testid\": \"Container\", children: props.children })));\n};\n//# sourceMappingURL=container.js.map"],"names":["props","_jsx","jsx","MuiContainer","Object","assign","className","narrow","children"],"mappings":"iKAS0BA,GACdC,EAAIC,IAACC,UAAcC,OAAOC,OAAO,CAAE,EAAEL,EAAO,CAAEM,UAAWN,EAAMM,UAAY,KAAON,EAAMO,QAAU,UAAW,cAAe,YAAaC,SAAUR,EAAMQ"}
|
package/cjs/layout/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),a=require("react/jsx-runtime"),i=require("@mui/material/Card"),t=require("../../components/label/label.js"),r=require("../common/menuCardComponent/menuCardComponent.js"),n=require("../common/infoTextCardComponent/infoTextCardComponent.js"),o=require("../../components/labelFeature/labelFeature.js"),l=require("@mui/material/styles"),s=require("../common/buttonCardComponent/buttonCardComponent.js"),p=require("../../utils/utilities.js"),d=require("../../components/common/imageComponent.js"),c=require("../../design/skoda/
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),a=require("react/jsx-runtime"),i=require("@mui/material/Card"),t=require("../../components/label/label.js"),r=require("../common/menuCardComponent/menuCardComponent.js"),n=require("../common/infoTextCardComponent/infoTextCardComponent.js"),o=require("../../components/labelFeature/labelFeature.js"),l=require("@mui/material/styles"),s=require("../common/buttonCardComponent/buttonCardComponent.js"),p=require("../../utils/utilities.js"),d=require("../../components/common/imageComponent.js"),c=require("../../design/skoda/paletteLight.theme.js");function m(e){return e&&e.__esModule?e:{default:e}}var x=m(i);const h=({label:e,labelVariant:i,vehicleName:l,equipment:c,image:m,altDescriptionImage:x,mandatoryButtonObject:h,optionalButtonObject:g,darkOpacityLayer:b,lightOpacityLayer:f,menuCardComponentProps:y,isMenuDropdown:v,infoText:C,infoTextSecond:j,infoTextThird:w,customInfo:T,description:I,labelInfoFirstVariant:k,labelInfoFirstText:O,labelInfoSecondVariant:L,labelInfoSecondText:S,isCompact:N,size:z,fallbackImage:q})=>a.jsxs(u,{size:z,darkOpacityLayer:b,lightOpacityLayer:f,children:[a.jsx("div",{className:"CardImageOverlayTheme"}),a.jsx("div",{className:"promoVehicleContainerPadding",children:a.jsxs("div",{className:"promoVehicleContainer",children:[a.jsxs("div",{className:"vehicleTitleContainer",children:[e&&("feature"===i?a.jsx(o.LabelFeature,{className:"CardImageLabelFeature",variant:"primary",children:p.handleMaxChars(e,30)}):a.jsx(t.Label,{className:"CardImageLabel",label:p.handleMaxChars(e,30)})),l&&a.jsx("h2",{style:{margin:0},className:"vehicleName",children:p.handleMaxChars(l,20)}),c&&a.jsx("h4",{style:{margin:0},className:"vehicleEquipment",children:p.handleMaxChars(c,20)}),I&&a.jsx("div",{className:"CardImageSubtitleContainer",children:a.jsx("span",{className:"CardImageSubtitle",children:p.handleMaxChars(I,50)})}),a.jsxs("div",{className:"LabelsOptional",children:[O&&a.jsx("div",{children:a.jsx(o.LabelFeature,{variant:k,label:p.handleMaxChars(O,30)})}),S&&a.jsx("div",{children:a.jsx(o.LabelFeature,{variant:L,label:p.handleMaxChars(S,30)})})]})]}),a.jsx("div",{className:"promoVehicleImage",children:a.jsx(d.default,{image:m,alt:x,fallbackImage:q})}),a.jsxs("div",{className:"promoVehicleInfo",children:[a.jsxs("div",{className:"promoVehicleButtons",children:[(null==h?void 0:h.label)&&a.jsx(s.default,{className:"button-component",buttonObject:h,compact:N}),(null==g?void 0:g.label)&&a.jsx(s.default,{className:"button-component",buttonObject:g,compact:N})]}),T?a.jsx("div",{className:"infoText",children:T}):a.jsx(n.default,{infoText:C,infoTextSecond:j,infoTextThird:w,className:"infoText"})]}),v&&a.jsx(r.default,Object.assign({},y))]})})]}),u=l.styled(x.default,{shouldForwardProp:e=>"darkOpacityLayer"!==e&&"lightOpacityLayer"!==e&&"size"!==e})((a=>{var{theme:i}=a,t=e.__rest(a,["theme"]);const r=((e,a)=>{let i="";switch(a){case"opacity25":i="linear-gradient(269.68deg, rgba(255, 255, 255, 0) 0.28%, rgba(255, 255, 255, 0.25) 99.72%)";break;case"opacity50":i="linear-gradient(269.68deg, rgba(255, 255, 255, 0) 0.28%, rgba(255, 255, 255, 0.5) 99.72%)";break;case"opacity75":i="linear-gradient(269.68deg, rgba(255, 255, 255, 0) 0.28%, rgba(255, 255, 255, 0.75) 99.72%)"}switch(e){case"opacity25":i="linear-gradient(269.68deg, rgba(0, 0, 0, 0) 0.28%, rgba(0, 0, 0, 0.25) 99.72%)";break;case"opacity50":i="linear-gradient(269.68deg, rgba(0, 0, 0, 0) 0.28%, rgba(0, 0, 0, 0.5) 99.72%)";break;case"opacity75":i="linear-gradient(269.68deg, rgba(0, 0, 0, 0) 0.28%, rgba(0, 0, 0, 0.75) 99.72%)"}return i})(t.darkOpacityLayer,t.lightOpacityLayer),n=((e,a,i)=>{let t="";return"opacity0"!==a&&"opacity0"===e&&(t=i.palette.text.primary),t="opacity0"!==e?i.palette.onSurface.os0:i.palette.text.primary,t})(t.darkOpacityLayer,t.lightOpacityLayer,i);let o={};return o={position:"relative",width:"100%",padding:"24px",backgroundColor:c.paletteLight.transparent.primary,color:n,"& .LabelsOptional":{display:"flex",flexWrap:"wrap",position:"relative",zIndex:2},"& .promoVehicleImage":{marginTop:"-45px",position:"relative",[i.breakpoints.up("md")]:{position:"fixed"===t.size?"absolute":"relative",marginTop:"fixed"===t.size?0:"-45px"},zIndex:0,width:"100%",height:"100%",display:"flex",justifyContent:"center"," & > img":{minHeight:"176px",maxWidth:"100%",maxHeight:"100%",position:"relative",objectFit:"contain"}},"& .promoVehicleContainerPadding":{position:"relative",height:"100%",width:"100%"},"& .promoVehicleContainer":{overflow:"hidden",height:"100%",width:"100%",flexDirection:"column",display:"flex",justifyContent:"fixed"===t.size?"space-between":"normal",boxSizing:"border-box"," & > .vehicleTitleContainer":{zIndex:2,width:"100%",position:"relative","& > .vehicleName":{fontSize:"23px",[i.breakpoints.up("md")]:{fontSize:"24px"},lineHeight:"28px"},"& > .vehicleEquipment":{fontSize:"16px",[i.breakpoints.up("md")]:{fontSize:"18px"},lineHeight:"24px"},"& > .CardImageLabelFeature":{marginLeft:"0px !important",marginBottom:"8px"},"& > .CardImageLabel":{lineHeight:"12px !important",marginBottom:"8px"},"& > .CardImageSubtitleContainer":{display:"inline-flex",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"100%","& > .CardImageSubtitle":{fontSize:"16px",lineHeight:"24px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",[i.breakpoints.up("lg")]:{fontSize:"18px",lineHeight:"28px"}}}},"& > .promoVehicleInfo":{marginTop:"-25px",position:"relative",[i.breakpoints.up("md")]:{marginTop:"fixed"===t.size?0:"-25px"},display:"flex",flexDirection:"column-reverse",flexWrap:"wrap-reverse",width:"100%",justifyContent:"space-between",zIndex:2,[i.breakpoints.up("md")]:{flexDirection:"row"},"& > .promoVehicleButtons":{display:"flex",flexDirection:"column",alignItems:"end",flexWrap:"wrap",gap:"12px 16px",marginTop:"8px","& > .button-component":{width:"100%",[i.breakpoints.up("md")]:{width:"auto",padding:"0 0 2px 2px"}," > div":{width:"100%"}},"& .MuiButton-root":{width:"100%"},[i.breakpoints.up("md")]:{flexDirection:"row","& > a":{"& + a":{marginTop:"0"}}}}," & > .infoText":{display:"block",maxWidth:"100%",fontSize:"14px",[i.breakpoints.up("md")]:{width:"auto",alignSelf:"end"}," & > div > p":{margin:0},".infoTextFirst":{fontWeight:"bold",span:{fontWeight:"300"}},".infoTextThirdContainer":{display:"inline-flex",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},".infoTextThird":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}}," & >.menuCardComponent":{top:"-7px",right:"-5px"}}," & >.CardImageOverlayTheme":{background:r}},o}));exports.CardPromoVehicleComponent=h,exports.default=h;
|
|
2
2
|
//# sourceMappingURL=cardPromoVehicleComponent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cardPromoVehicleComponent.js","sources":["../../../../src/organisms/cardPromoVehicle/cardPromoVehicleComponent.tsx"],"sourcesContent":["import { __rest } from \"tslib\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport MuiCard from '@mui/material/Card';\nimport { Label } from '../../components/label';\nimport MenuCardComponent from '../common/menuCardComponent/menuCardComponent';\nimport InfoTextCardComponent from '../common/infoTextCardComponent/infoTextCardComponent';\nimport { LabelFeature } from '../../components/labelFeature';\nimport { styled } from '@mui/material/styles';\nimport ButtonCardComponent from '../common/buttonCardComponent/buttonCardComponent';\nimport { handleMaxChars } from '../../utils/utilities';\nimport ImageComponent from '../../components/common/imageComponent';\nimport { flowColors } from '../../design/skoda/palette.theme';\nexport const CardPromoVehicleComponent = ({ label, labelVariant, vehicleName, equipment, image, altDescriptionImage, mandatoryButtonObject, optionalButtonObject, darkOpacityLayer, lightOpacityLayer, menuCardComponentProps, isMenuDropdown, infoText, infoTextSecond, infoTextThird, customInfo, description, labelInfoFirstVariant, labelInfoFirstText, labelInfoSecondVariant, labelInfoSecondText, isCompact, size, fallbackImage, }) => {\n return (_jsxs(CardPromoVehicleComponentStyled, { size: size, darkOpacityLayer: darkOpacityLayer, lightOpacityLayer: lightOpacityLayer, children: [_jsx(\"div\", { className: \"CardImageOverlayTheme\" }), _jsx(\"div\", { className: \"promoVehicleContainerPadding\", children: _jsxs(\"div\", { className: \"promoVehicleContainer\", children: [_jsxs(\"div\", { className: \"vehicleTitleContainer\", children: [label &&\n (labelVariant === 'feature' ? (_jsx(LabelFeature, { className: \"CardImageLabelFeature\", variant: \"primary\", children: handleMaxChars(label, 30) })) : (_jsx(Label, { className: \"CardImageLabel\", label: handleMaxChars(label, 30) }))), vehicleName && (_jsx(\"h2\", { style: { margin: 0 }, className: \"vehicleName\", children: handleMaxChars(vehicleName, 20) })), equipment && (_jsx(\"h4\", { style: { margin: 0 }, className: \"vehicleEquipment\", children: handleMaxChars(equipment, 20) })), description && (_jsx(\"div\", { className: \"CardImageSubtitleContainer\", children: _jsx(\"span\", { className: \"CardImageSubtitle\", children: handleMaxChars(description, 50) }) })), _jsxs(\"div\", { className: \"LabelsOptional\", children: [labelInfoFirstText && (_jsx(\"div\", { children: _jsx(LabelFeature, { variant: labelInfoFirstVariant, label: handleMaxChars(labelInfoFirstText, 30) }) })), labelInfoSecondText && (_jsx(\"div\", { children: _jsx(LabelFeature, { variant: labelInfoSecondVariant, label: handleMaxChars(labelInfoSecondText, 30) }) }))] })] }), _jsx(\"div\", { className: \"promoVehicleImage\", children: _jsx(ImageComponent, { image: image, alt: altDescriptionImage, fallbackImage: fallbackImage }) }), _jsxs(\"div\", { className: \"promoVehicleInfo\", children: [_jsxs(\"div\", { className: \"promoVehicleButtons\", children: [(mandatoryButtonObject === null || mandatoryButtonObject === void 0 ? void 0 : mandatoryButtonObject.label) && (_jsx(ButtonCardComponent, { className: \"button-component\", buttonObject: mandatoryButtonObject, compact: isCompact })), (optionalButtonObject === null || optionalButtonObject === void 0 ? void 0 : optionalButtonObject.label) && (_jsx(ButtonCardComponent, { className: \"button-component\", buttonObject: optionalButtonObject, compact: isCompact }))] }), customInfo ? (_jsx(\"div\", { className: \"infoText\", children: customInfo })) : (_jsx(InfoTextCardComponent, { infoText: infoText, infoTextSecond: infoTextSecond, infoTextThird: infoTextThird, className: \"infoText\" }))] }), isMenuDropdown && _jsx(MenuCardComponent, Object.assign({}, menuCardComponentProps))] }) })] }));\n};\nexport default CardPromoVehicleComponent;\nconst handleOpacity = (darkOpacityLayer, lightOpacityLayer) => {\n let opacity = '';\n switch (lightOpacityLayer) {\n case 'opacity25':\n opacity = 'linear-gradient(269.68deg, rgba(255, 255, 255, 0) 0.28%, rgba(255, 255, 255, 0.25) 99.72%)';\n break;\n case 'opacity50':\n opacity = 'linear-gradient(269.68deg, rgba(255, 255, 255, 0) 0.28%, rgba(255, 255, 255, 0.5) 99.72%)';\n break;\n case 'opacity75':\n opacity = 'linear-gradient(269.68deg, rgba(255, 255, 255, 0) 0.28%, rgba(255, 255, 255, 0.75) 99.72%)';\n break;\n }\n switch (darkOpacityLayer) {\n case 'opacity25':\n opacity = 'linear-gradient(269.68deg, rgba(0, 0, 0, 0) 0.28%, rgba(0, 0, 0, 0.25) 99.72%)';\n break;\n case 'opacity50':\n opacity = 'linear-gradient(269.68deg, rgba(0, 0, 0, 0) 0.28%, rgba(0, 0, 0, 0.5) 99.72%)';\n break;\n case 'opacity75':\n opacity = 'linear-gradient(269.68deg, rgba(0, 0, 0, 0) 0.28%, rgba(0, 0, 0, 0.75) 99.72%)';\n break;\n }\n return opacity;\n};\nconst handleTextColor = (darkOpacityLayer, lightOpacityLayer, theme) => {\n let color = '';\n if (lightOpacityLayer !== 'opacity0' && darkOpacityLayer === 'opacity0') {\n color = theme.palette.text.primary;\n }\n if (darkOpacityLayer !== 'opacity0') {\n color = theme.palette.onSurface.os0;\n }\n else\n color = theme.palette.text.primary;\n return color;\n};\n/**\n * @description cardPromoVehicleComponent styling definition based on props\n */\nconst CardPromoVehicleComponentStyled = styled(MuiCard, {\n shouldForwardProp: (prop) => prop !== 'darkOpacityLayer' && prop !== 'lightOpacityLayer' && prop !== 'size',\n})((_a) => {\n var { theme } = _a, props = __rest(_a, [\"theme\"]);\n const opacityLayer = handleOpacity(props.darkOpacityLayer, props.lightOpacityLayer);\n const textColor = handleTextColor(props.darkOpacityLayer, props.lightOpacityLayer, theme);\n let style = {};\n style = {\n position: 'relative',\n width: '100%',\n padding: '24px',\n backgroundColor: flowColors.transparent.primary,\n color: textColor,\n '& .LabelsOptional': {\n display: 'flex',\n flexWrap: 'wrap',\n position: 'relative',\n zIndex: 2,\n },\n '& .promoVehicleImage': {\n marginTop: '-45px',\n position: 'relative',\n [theme.breakpoints.up('md')]: {\n position: props.size === 'fixed' ? 'absolute' : 'relative',\n marginTop: props.size === 'fixed' ? 0 : '-45px',\n },\n zIndex: 0,\n width: '100%',\n height: '100%',\n display: 'flex',\n justifyContent: 'center',\n ' & > img': {\n minHeight: '176px',\n maxWidth: '100%',\n maxHeight: '100%',\n position: 'relative',\n objectFit: 'contain',\n },\n },\n '& .promoVehicleContainerPadding': {\n position: 'relative',\n height: '100%',\n width: '100%',\n },\n '& .promoVehicleContainer': {\n overflow: 'hidden',\n height: '100%',\n width: '100%',\n flexDirection: 'column',\n display: 'flex',\n justifyContent: props.size === 'fixed' ? 'space-between' : 'normal',\n boxSizing: 'border-box',\n ' & > .vehicleTitleContainer': {\n zIndex: 2,\n width: '100%',\n position: 'relative',\n '& > .vehicleName': {\n fontSize: '23px',\n [theme.breakpoints.up('md')]: {\n fontSize: '24px',\n },\n lineHeight: '28px',\n },\n '& > .vehicleEquipment': {\n fontSize: '16px',\n [theme.breakpoints.up('md')]: {\n fontSize: '18px',\n },\n lineHeight: '24px',\n },\n '& > .CardImageLabelFeature': {\n marginLeft: '0px !important',\n marginBottom: '8px',\n },\n '& > .CardImageLabel': {\n lineHeight: '12px !important',\n marginBottom: '8px',\n },\n '& > .CardImageSubtitleContainer': {\n display: 'inline-flex',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n width: '100%',\n '& > .CardImageSubtitle': {\n fontSize: '16px',\n lineHeight: '24px',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n [theme.breakpoints.up('lg')]: {\n fontSize: '18px',\n lineHeight: '28px',\n },\n },\n },\n },\n '& > .promoVehicleInfo': {\n marginTop: '-25px',\n position: 'relative',\n [theme.breakpoints.up('md')]: {\n marginTop: props.size === 'fixed' ? 0 : '-25px',\n },\n display: 'flex',\n flexDirection: 'column-reverse',\n flexWrap: 'wrap-reverse',\n width: '100%',\n justifyContent: 'space-between',\n zIndex: 2,\n [theme.breakpoints.up('md')]: {\n flexDirection: 'row',\n },\n '& > .promoVehicleButtons': {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'end',\n flexWrap: 'wrap',\n gap: '12px 16px',\n marginTop: '8px',\n '& > .button-component': {\n width: '100%',\n [theme.breakpoints.up('md')]: {\n width: 'auto',\n padding: '0 0 2px 2px',\n },\n ' > div': {\n width: '100%',\n },\n },\n '& .MuiButton-root': {\n width: '100%',\n },\n [theme.breakpoints.up('md')]: {\n flexDirection: 'row',\n '& > a': {\n '& + a': {\n marginTop: '0',\n },\n },\n },\n },\n ' & > .infoText': {\n display: 'block',\n maxWidth: '100%',\n fontSize: '14px',\n [theme.breakpoints.up('md')]: {\n width: 'auto',\n alignSelf: 'end',\n },\n ' & > div > p': {\n margin: 0,\n },\n '.infoTextFirst': {\n fontWeight: 'bold',\n span: { fontWeight: '300' },\n },\n '.infoTextThirdContainer': {\n display: 'inline-flex',\n maxWidth: '100%',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n },\n '.infoTextThird': {\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n },\n },\n },\n ' & >.menuCardComponent': {\n top: '-7px',\n right: '-5px',\n },\n },\n ' & >.CardImageOverlayTheme': {\n background: opacityLayer,\n },\n };\n return style;\n});\n//# sourceMappingURL=cardPromoVehicleComponent.js.map"],"names":["CardPromoVehicleComponent","label","labelVariant","vehicleName","equipment","image","altDescriptionImage","mandatoryButtonObject","optionalButtonObject","darkOpacityLayer","lightOpacityLayer","menuCardComponentProps","isMenuDropdown","infoText","infoTextSecond","infoTextThird","customInfo","description","labelInfoFirstVariant","labelInfoFirstText","labelInfoSecondVariant","labelInfoSecondText","isCompact","size","fallbackImage","_jsxs","CardPromoVehicleComponentStyled","children","_jsx","className","jsxs","LabelFeature","variant","handleMaxChars","Label","style","margin","jsx","ImageComponent","default","alt","ButtonCardComponent","buttonObject","compact","InfoTextCardComponent","MenuCardComponent","Object","assign","styled","MuiCard","shouldForwardProp","prop","_a","theme","props","__rest","opacityLayer","opacity","handleOpacity","textColor","color","palette","text","primary","onSurface","os0","handleTextColor","position","width","padding","backgroundColor","flowColors","transparent","display","flexWrap","zIndex","marginTop","breakpoints","up","height","justifyContent","minHeight","maxWidth","maxHeight","objectFit","overflow","flexDirection","boxSizing","fontSize","lineHeight","marginLeft","marginBottom","whiteSpace","textOverflow","alignItems","gap","alignSelf","fontWeight","span","top","right","background"],"mappings":"srBAYY,MAACA,EAA4B,EAAGC,MAAAA,EAAOC,eAAcC,cAAaC,YAAWC,QAAOC,sBAAqBC,wBAAuBC,uBAAsBC,mBAAkBC,oBAAmBC,yBAAwBC,iBAAgBC,WAAUC,iBAAgBC,gBAAeC,aAAYC,cAAaC,wBAAuBC,qBAAoBC,yBAAwBC,sBAAqBC,YAAWC,OAAMC,mBAC9YC,EAAAA,KAAMC,EAAiC,CAAEH,KAAMA,EAAMd,iBAAkBA,EAAkBC,kBAAmBA,EAAmBiB,SAAU,CAACC,MAAK,MAAO,CAAEC,UAAW,0BAA4BD,EAAAA,IAAK,MAAO,CAAEC,UAAW,+BAAgCF,SAAUF,EAAAA,KAAM,MAAO,CAAEI,UAAW,wBAAyBF,SAAU,CAACF,EAAKK,KAAC,MAAO,CAAED,UAAW,wBAAyBF,SAAU,CAAC1B,IACpV,YAAjBC,EAA8B0B,MAAKG,EAAAA,aAAc,CAAEF,UAAW,wBAAyBG,QAAS,UAAWL,SAAUM,EAAcA,eAAChC,EAAO,MAAW2B,MAAKM,EAAAA,MAAO,CAAEL,UAAW,iBAAkB5B,MAAOgC,EAAcA,eAAChC,EAAO,OAAUE,G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Ae,SACfQ,WAAY,MACZpB,SAAU,OACVqB,IAAK,YACLnB,UAAW,MACX,wBAAyB,CACrBR,MAAO,OACP,CAACf,EAAMwB,YAAYC,GAAG,OAAQ,CAC1BV,MAAO,OACPC,QAAS,eAEb,SAAU,CACND,MAAO,SAGf,oBAAqB,CACjBA,MAAO,QAEX,CAACf,EAAMwB,YAAYC,GAAG,OAAQ,CAC1BQ,cAAe,MACf,QAAS,CACL,QAAS,CACLV,UAAW,QAK3B,iBAAkB,CACdH,QAAS,QACTS,SAAU,OACVM,SAAU,OACV,CAACnC,EAAMwB,YAAYC,GAAG,OAAQ,CAC1BV,MAAO,OACP4B,UAAW,OAEf,eAAgB,CACZ5D,OAAQ,GAEZ,iBAAkB,CACd6D,WAAY,OACZC,KAAM,CAAED,WAAY,QAExB,0BAA2B,CACvBxB,QAAS,cACTS,SAAU,OACVU,WAAY,SACZP,SAAU,SACVQ,aAAc,YAElB,iBAAkB,CACdD,WAAY,SACZP,SAAU,SACVQ,aAAc,cAI1B,yBAA0B,CACtBM,IAAK,OACLC,MAAO,SAGf,6BAA8B,CAC1BC,WAAY7C,IAGbrB,CAAK"}
|
|
1
|
+
{"version":3,"file":"cardPromoVehicleComponent.js","sources":["../../../../src/organisms/cardPromoVehicle/cardPromoVehicleComponent.tsx"],"sourcesContent":["import { __rest } from \"tslib\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport MuiCard from '@mui/material/Card';\nimport { Label } from '../../components/label';\nimport MenuCardComponent from '../common/menuCardComponent/menuCardComponent';\nimport InfoTextCardComponent from '../common/infoTextCardComponent/infoTextCardComponent';\nimport { LabelFeature } from '../../components/labelFeature';\nimport { styled } from '@mui/material/styles';\nimport ButtonCardComponent from '../common/buttonCardComponent/buttonCardComponent';\nimport { handleMaxChars } from '../../utils/utilities';\nimport ImageComponent from '../../components/common/imageComponent';\nimport { paletteLight as flowColors } from '../../design/skoda/paletteLight.theme';\nexport const CardPromoVehicleComponent = ({ label, labelVariant, vehicleName, equipment, image, altDescriptionImage, mandatoryButtonObject, optionalButtonObject, darkOpacityLayer, lightOpacityLayer, menuCardComponentProps, isMenuDropdown, infoText, infoTextSecond, infoTextThird, customInfo, description, labelInfoFirstVariant, labelInfoFirstText, labelInfoSecondVariant, labelInfoSecondText, isCompact, size, fallbackImage, }) => {\n return (_jsxs(CardPromoVehicleComponentStyled, { size: size, darkOpacityLayer: darkOpacityLayer, lightOpacityLayer: lightOpacityLayer, children: [_jsx(\"div\", { className: \"CardImageOverlayTheme\" }), _jsx(\"div\", { className: \"promoVehicleContainerPadding\", children: _jsxs(\"div\", { className: \"promoVehicleContainer\", children: [_jsxs(\"div\", { className: \"vehicleTitleContainer\", children: [label &&\n (labelVariant === 'feature' ? (_jsx(LabelFeature, { className: \"CardImageLabelFeature\", variant: \"primary\", children: handleMaxChars(label, 30) })) : (_jsx(Label, { className: \"CardImageLabel\", label: handleMaxChars(label, 30) }))), vehicleName && (_jsx(\"h2\", { style: { margin: 0 }, className: \"vehicleName\", children: handleMaxChars(vehicleName, 20) })), equipment && (_jsx(\"h4\", { style: { margin: 0 }, className: \"vehicleEquipment\", children: handleMaxChars(equipment, 20) })), description && (_jsx(\"div\", { className: \"CardImageSubtitleContainer\", children: _jsx(\"span\", { className: \"CardImageSubtitle\", children: handleMaxChars(description, 50) }) })), _jsxs(\"div\", { className: \"LabelsOptional\", children: [labelInfoFirstText && (_jsx(\"div\", { children: _jsx(LabelFeature, { variant: labelInfoFirstVariant, label: handleMaxChars(labelInfoFirstText, 30) }) })), labelInfoSecondText && (_jsx(\"div\", { children: _jsx(LabelFeature, { variant: labelInfoSecondVariant, label: handleMaxChars(labelInfoSecondText, 30) }) }))] })] }), _jsx(\"div\", { className: \"promoVehicleImage\", children: _jsx(ImageComponent, { image: image, alt: altDescriptionImage, fallbackImage: fallbackImage }) }), _jsxs(\"div\", { className: \"promoVehicleInfo\", children: [_jsxs(\"div\", { className: \"promoVehicleButtons\", children: [(mandatoryButtonObject === null || mandatoryButtonObject === void 0 ? void 0 : mandatoryButtonObject.label) && (_jsx(ButtonCardComponent, { className: \"button-component\", buttonObject: mandatoryButtonObject, compact: isCompact })), (optionalButtonObject === null || optionalButtonObject === void 0 ? void 0 : optionalButtonObject.label) && (_jsx(ButtonCardComponent, { className: \"button-component\", buttonObject: optionalButtonObject, compact: isCompact }))] }), customInfo ? (_jsx(\"div\", { className: \"infoText\", children: customInfo })) : (_jsx(InfoTextCardComponent, { infoText: infoText, infoTextSecond: infoTextSecond, infoTextThird: infoTextThird, className: \"infoText\" }))] }), isMenuDropdown && _jsx(MenuCardComponent, Object.assign({}, menuCardComponentProps))] }) })] }));\n};\nexport default CardPromoVehicleComponent;\nconst handleOpacity = (darkOpacityLayer, lightOpacityLayer) => {\n let opacity = '';\n switch (lightOpacityLayer) {\n case 'opacity25':\n opacity = 'linear-gradient(269.68deg, rgba(255, 255, 255, 0) 0.28%, rgba(255, 255, 255, 0.25) 99.72%)';\n break;\n case 'opacity50':\n opacity = 'linear-gradient(269.68deg, rgba(255, 255, 255, 0) 0.28%, rgba(255, 255, 255, 0.5) 99.72%)';\n break;\n case 'opacity75':\n opacity = 'linear-gradient(269.68deg, rgba(255, 255, 255, 0) 0.28%, rgba(255, 255, 255, 0.75) 99.72%)';\n break;\n }\n switch (darkOpacityLayer) {\n case 'opacity25':\n opacity = 'linear-gradient(269.68deg, rgba(0, 0, 0, 0) 0.28%, rgba(0, 0, 0, 0.25) 99.72%)';\n break;\n case 'opacity50':\n opacity = 'linear-gradient(269.68deg, rgba(0, 0, 0, 0) 0.28%, rgba(0, 0, 0, 0.5) 99.72%)';\n break;\n case 'opacity75':\n opacity = 'linear-gradient(269.68deg, rgba(0, 0, 0, 0) 0.28%, rgba(0, 0, 0, 0.75) 99.72%)';\n break;\n }\n return opacity;\n};\nconst handleTextColor = (darkOpacityLayer, lightOpacityLayer, theme) => {\n let color = '';\n if (lightOpacityLayer !== 'opacity0' && darkOpacityLayer === 'opacity0') {\n color = theme.palette.text.primary;\n }\n if (darkOpacityLayer !== 'opacity0') {\n color = theme.palette.onSurface.os0;\n }\n else\n color = theme.palette.text.primary;\n return color;\n};\n/**\n * @description cardPromoVehicleComponent styling definition based on props\n */\nconst CardPromoVehicleComponentStyled = styled(MuiCard, {\n shouldForwardProp: (prop) => prop !== 'darkOpacityLayer' && prop !== 'lightOpacityLayer' && prop !== 'size',\n})((_a) => {\n var { theme } = _a, props = __rest(_a, [\"theme\"]);\n const opacityLayer = handleOpacity(props.darkOpacityLayer, props.lightOpacityLayer);\n const textColor = handleTextColor(props.darkOpacityLayer, props.lightOpacityLayer, theme);\n let style = {};\n style = {\n position: 'relative',\n width: '100%',\n padding: '24px',\n backgroundColor: flowColors.transparent.primary,\n color: textColor,\n '& .LabelsOptional': {\n display: 'flex',\n flexWrap: 'wrap',\n position: 'relative',\n zIndex: 2,\n },\n '& .promoVehicleImage': {\n marginTop: '-45px',\n position: 'relative',\n [theme.breakpoints.up('md')]: {\n position: props.size === 'fixed' ? 'absolute' : 'relative',\n marginTop: props.size === 'fixed' ? 0 : '-45px',\n },\n zIndex: 0,\n width: '100%',\n height: '100%',\n display: 'flex',\n justifyContent: 'center',\n ' & > img': {\n minHeight: '176px',\n maxWidth: '100%',\n maxHeight: '100%',\n position: 'relative',\n objectFit: 'contain',\n },\n },\n '& .promoVehicleContainerPadding': {\n position: 'relative',\n height: '100%',\n width: '100%',\n },\n '& .promoVehicleContainer': {\n overflow: 'hidden',\n height: '100%',\n width: '100%',\n flexDirection: 'column',\n display: 'flex',\n justifyContent: props.size === 'fixed' ? 'space-between' : 'normal',\n boxSizing: 'border-box',\n ' & > .vehicleTitleContainer': {\n zIndex: 2,\n width: '100%',\n position: 'relative',\n '& > .vehicleName': {\n fontSize: '23px',\n [theme.breakpoints.up('md')]: {\n fontSize: '24px',\n },\n lineHeight: '28px',\n },\n '& > .vehicleEquipment': {\n fontSize: '16px',\n [theme.breakpoints.up('md')]: {\n fontSize: '18px',\n },\n lineHeight: '24px',\n },\n '& > .CardImageLabelFeature': {\n marginLeft: '0px !important',\n marginBottom: '8px',\n },\n '& > .CardImageLabel': {\n lineHeight: '12px !important',\n marginBottom: '8px',\n },\n '& > .CardImageSubtitleContainer': {\n display: 'inline-flex',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n width: '100%',\n '& > .CardImageSubtitle': {\n fontSize: '16px',\n lineHeight: '24px',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n [theme.breakpoints.up('lg')]: {\n fontSize: '18px',\n lineHeight: '28px',\n },\n },\n },\n },\n '& > .promoVehicleInfo': {\n marginTop: '-25px',\n position: 'relative',\n [theme.breakpoints.up('md')]: {\n marginTop: props.size === 'fixed' ? 0 : '-25px',\n },\n display: 'flex',\n flexDirection: 'column-reverse',\n flexWrap: 'wrap-reverse',\n width: '100%',\n justifyContent: 'space-between',\n zIndex: 2,\n [theme.breakpoints.up('md')]: {\n flexDirection: 'row',\n },\n '& > .promoVehicleButtons': {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'end',\n flexWrap: 'wrap',\n gap: '12px 16px',\n marginTop: '8px',\n '& > .button-component': {\n width: '100%',\n [theme.breakpoints.up('md')]: {\n width: 'auto',\n padding: '0 0 2px 2px',\n },\n ' > div': {\n width: '100%',\n },\n },\n '& .MuiButton-root': {\n width: '100%',\n },\n [theme.breakpoints.up('md')]: {\n flexDirection: 'row',\n '& > a': {\n '& + a': {\n marginTop: '0',\n },\n },\n },\n },\n ' & > .infoText': {\n display: 'block',\n maxWidth: '100%',\n fontSize: '14px',\n [theme.breakpoints.up('md')]: {\n width: 'auto',\n alignSelf: 'end',\n },\n ' & > div > p': {\n margin: 0,\n },\n '.infoTextFirst': {\n fontWeight: 'bold',\n span: { fontWeight: '300' },\n },\n '.infoTextThirdContainer': {\n display: 'inline-flex',\n maxWidth: '100%',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n },\n '.infoTextThird': {\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n },\n },\n },\n ' & >.menuCardComponent': {\n top: '-7px',\n right: '-5px',\n },\n },\n ' & >.CardImageOverlayTheme': {\n background: opacityLayer,\n },\n };\n return style;\n});\n//# sourceMappingURL=cardPromoVehicleComponent.js.map"],"names":["CardPromoVehicleComponent","label","labelVariant","vehicleName","equipment","image","altDescriptionImage","mandatoryButtonObject","optionalButtonObject","darkOpacityLayer","lightOpacityLayer","menuCardComponentProps","isMenuDropdown","infoText","infoTextSecond","infoTextThird","customInfo","description","labelInfoFirstVariant","labelInfoFirstText","labelInfoSecondVariant","labelInfoSecondText","isCompact","size","fallbackImage","_jsxs","CardPromoVehicleComponentStyled","children","_jsx","className","jsxs","LabelFeature","variant","handleMaxChars","Label","style","margin","jsx","ImageComponent","default","alt","ButtonCardComponent","buttonObject","compact","InfoTextCardComponent","MenuCardComponent","Object","assign","styled","MuiCard","shouldForwardProp","prop","_a","theme","props","__rest","opacityLayer","opacity","handleOpacity","textColor","color","palette","text","primary","onSurface","os0","handleTextColor","position","width","padding","backgroundColor","flowColors","transparent","display","flexWrap","zIndex","marginTop","breakpoints","up","height","justifyContent","minHeight","maxWidth","maxHeight","objectFit","overflow","flexDirection","boxSizing","fontSize","lineHeight","marginLeft","marginBottom","whiteSpace","textOverflow","alignItems","gap","alignSelf","fontWeight","span","top","right","background"],"mappings":"2rBAYY,MAACA,EAA4B,EAAGC,MAAAA,EAAOC,eAAcC,cAAaC,YAAWC,QAAOC,sBAAqBC,wBAAuBC,uBAAsBC,mBAAkBC,oBAAmBC,yBAAwBC,iBAAgBC,WAAUC,iBAAgBC,gBAAeC,aAAYC,cAAaC,wBAAuBC,qBAAoBC,yBAAwBC,sBAAqBC,YAAWC,OAAMC,mBAC9YC,EAAAA,KAAMC,EAAiC,CAAEH,KAAMA,EAAMd,iBAAkBA,EAAkBC,kBAAmBA,EAAmBiB,SAAU,CAACC,MAAK,MA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,SACVQ,aAAc,WACd,CAACxC,EAAMwB,YAAYC,GAAG,OAAQ,CAC1BU,SAAU,OACVC,WAAY,WAK5B,wBAAyB,CACrBb,UAAW,QACXT,SAAU,WACV,CAACd,EAAMwB,YAAYC,GAAG,OAAQ,CAC1BF,UAA0B,UAAftB,EAAM/B,KAAmB,EAAI,SAE5CkD,QAAS,OACTa,cAAe,iBACfZ,SAAU,eACVN,MAAO,OACPY,eAAgB,gBAChBL,OAAQ,EACR,CAACtB,EAAMwB,YAAYC,GAAG,OAAQ,CAC1BQ,cAAe,OAEnB,2BAA4B,CACxBb,QAAS,OACTa,cAAe,SACfQ,WAAY,MACZpB,SAAU,OACVqB,IAAK,YACLnB,UAAW,MACX,wBAAyB,CACrBR,MAAO,OACP,CAACf,EAAMwB,YAAYC,GAAG,OAAQ,CAC1BV,MAAO,OACPC,QAAS,eAEb,SAAU,CACND,MAAO,SAGf,oBAAqB,CACjBA,MAAO,QAEX,CAACf,EAAMwB,YAAYC,GAAG,OAAQ,CAC1BQ,cAAe,MACf,QAAS,CACL,QAAS,CACLV,UAAW,QAK3B,iBAAkB,CACdH,QAAS,QACTS,SAAU,OACVM,SAAU,OACV,CAACnC,EAAMwB,YAAYC,GAAG,OAAQ,CAC1BV,MAAO,OACP4B,UAAW,OAEf,eAAgB,CACZ5D,OAAQ,GAEZ,iBAAkB,CACd6D,WAAY,OACZC,KAAM,CAAED,WAAY,QAExB,0BAA2B,CACvBxB,QAAS,cACTS,SAAU,OACVU,WAAY,SACZP,SAAU,SACVQ,aAAc,YAElB,iBAAkB,CACdD,WAAY,SACZP,SAAU,SACVQ,aAAc,cAI1B,yBAA0B,CACtBM,IAAK,OACLC,MAAO,SAGf,6BAA8B,CAC1BC,WAAY7C,IAGbrB,CAAK"}
|
|
@@ -132,4 +132,7 @@ export declare const handleScrollNext: (emblaApi: EmblaCarouselType, direction:
|
|
|
132
132
|
export declare const handleScrollTo: (emblaApi: EmblaCarouselType, index: number) => void;
|
|
133
133
|
export declare const getHoveredClass: (direction: 'next' | 'prev', hovered: boolean, isBtnEnabled: boolean) => string;
|
|
134
134
|
export declare const emblaWidthSize: (apiParam: any, slideToShowParam: any) => void;
|
|
135
|
+
/**
|
|
136
|
+
* @deprecated this component does not meet quality standards and will be removed in the future
|
|
137
|
+
*/
|
|
135
138
|
export declare const Carousel: (props: CarouselPropType) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel.js","sources":["../../../../src/organisms/carousel/carousel.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { useCallback, useEffect, useState } from 'react';\nimport useEmblaCarousel from 'embla-carousel-react';\nimport ClassNames from 'embla-carousel-class-names';\nimport Autoplay from 'embla-carousel-autoplay';\nimport { CarouselStyledHorizontal } from './styledComponents/styledCarouselHorizontal';\nimport { CarouselStyledVertical } from './styledComponents/styledCarouselVertical';\nimport { useTheme } from '@mui/material';\nimport { template } from './carouselTemplate';\n//the following function was moved outside of teh component to reduce its cognitive complexity\nexport const handleScrollPrev = (emblaApi, direction) => {\n if (emblaApi) {\n direction === 'ltr' ? emblaApi.scrollPrev() : emblaApi.scrollNext();\n }\n};\nexport const handleScrollNext = (emblaApi, direction) => {\n if (emblaApi) {\n direction === 'rtl' ? emblaApi.scrollPrev() : emblaApi.scrollNext();\n }\n};\n//the following function was moved outside of teh component to reduce its cognitive complexity\nexport const handleScrollTo = (emblaApi, index) => {\n if (emblaApi) {\n emblaApi.scrollTo(index);\n }\n};\n//the following function was moved outside of teh component to reduce its cognitive complexity\nexport const getHoveredClass = (direction, hovered, isBtnEnabled) => {\n return hovered && isBtnEnabled ? `${direction}--hovered` : '';\n};\nexport const emblaWidthSize = (apiParam, slideToShowParam) => {\n const slideNode = apiParam.slideNodes();\n if (slideToShowParam <= 1) {\n slideNode.forEach((item) => {\n if (item) {\n const img = item.querySelector('img');\n if (img)\n return (item.style.width = `${img.naturalWidth}px`);\n }\n });\n }\n};\nexport const Carousel = (props) => {\n const { align = 'start', autoPlay = false, axis = 'x', buttonAreaControlsHeight = '50%', buttonControls = true, buttonControlsPosition = '0', cssClass = '', direction = 'ltr', heightSlide, isSlideDifferentWidth = false, loop = false, numberingSeparator = '/', numberingSlides = true, progressbar = false, slidesItems, slideToScroll = 1, slideToShow = 1, slideSelectedClass = 'slide-selected', speed = 10, startIndex = 0, bulletScroll = false, bulletStyle = 'dot', bulletTheme = 'dark', prevControlIcon = 'arrow-left', nextControlIcon = 'arrow-right', controlIconStyle = 'regular', controlIconFontSize = 'medium', controlVariant = 'standard', controlColor = 'dark', } = props;\n const optionsAutoplay = {\n playOnInit: autoPlay ? true : false,\n };\n const autoplay = Autoplay(optionsAutoplay);\n const optionsClassNames = { selected: slideSelectedClass };\n const optionAlign = align !== 'center' ? 'trimSnaps' : '';\n const [selectedIndex, setSelectedIndex] = useState(startIndex);\n const [prevBtnEnabled, setPrevBtnEnabled] = useState(true);\n const [nextBtnEnabled, setNextBtnEnabled] = useState(true);\n const [scrollProgress, setScrollProgress] = useState(0);\n const [hovered, setHovered] = useState(false);\n const [isMobile, setIsMobile] = useState();\n const [classEmbla, setClassEmbla] = useState('');\n const emblaOptions = {\n align: align,\n axis: axis,\n containScroll: optionAlign,\n direction: direction,\n loop: loop,\n slidesToScroll: isMobile ? 1 : slideToScroll,\n skipSnaps: false,\n speed: speed,\n startIndex: startIndex,\n };\n const [emblaRef, emblaApi] = useEmblaCarousel(emblaOptions, [autoplay, ClassNames(optionsClassNames)]);\n const theme = useTheme();\n const controllerHover = (controller) => {\n switch (true) {\n case controller === 'prev' && prevBtnEnabled:\n return setClassEmbla('embla-container-prev');\n case controller === 'next' && nextBtnEnabled:\n return setClassEmbla('embla-container-next');\n default:\n return setClassEmbla('');\n }\n };\n const toggleHover = (element) => {\n setHovered(!hovered);\n controllerHover(element);\n };\n const onScroll = useCallback(() => {\n if (!emblaApi && !progressbar)\n return;\n const progress = Math.max(0, Math.min(1, emblaApi.scrollProgress()));\n setScrollProgress(progress * 100);\n }, [emblaApi, progressbar, setScrollProgress]);\n useEffect(() => {\n if (emblaApi) {\n emblaWidthSize(emblaApi, slideToShow);\n const onSelect = () => {\n const index = emblaApi.selectedScrollSnap();\n setSelectedIndex(index);\n setSelectedIndex(emblaApi.selectedScrollSnap());\n setPrevBtnEnabled(emblaApi.canScrollPrev());\n setNextBtnEnabled(emblaApi.canScrollNext());\n };\n emblaApi.on('select', onSelect);\n onSelect();\n emblaApi.on('scroll', onScroll);\n onScroll();\n }\n }, [emblaApi, progressbar, onScroll, slideToShow]);\n useEffect(() => {\n const mq = window.matchMedia(`(max-width: ${theme.breakpoints.values.md}px)`);\n setIsMobile(mq.matches);\n }, [theme.breakpoints.values.md]);\n return axis === 'y' ? (_jsx(CarouselStyledVertical, Object.assign({ align: align, slidesItems: slidesItems, slideToShow: slideToShow, bulletTheme: bulletTheme }, props, { children: template(cssClass, hovered, prevBtnEnabled, emblaApi, direction, emblaRef, slidesItems, heightSlide, buttonControls, buttonAreaControlsHeight, buttonControlsPosition, nextBtnEnabled, numberingSlides, selectedIndex, numberingSeparator, progressbar, scrollProgress, (element) => toggleHover(element), slideToShow, classEmbla, bulletScroll, bulletStyle, handleScrollTo, handleScrollPrev, handleScrollNext, prevControlIcon, nextControlIcon, controlIconStyle, controlIconFontSize, controlVariant, controlColor) }))) : (_jsx(CarouselStyledHorizontal, Object.assign({ isSlideDifferentWidth: isSlideDifferentWidth, align: align, slidesItems: slidesItems, slideToShow: slideToShow, bulletTheme: bulletTheme }, props, { children: template(cssClass, hovered, prevBtnEnabled, emblaApi, direction, emblaRef, slidesItems, heightSlide, buttonControls, buttonAreaControlsHeight, buttonControlsPosition, nextBtnEnabled, numberingSlides, selectedIndex, numberingSeparator, progressbar, scrollProgress, (element) => toggleHover(element), slideToShow, classEmbla, bulletScroll, bulletStyle, handleScrollTo, handleScrollPrev, handleScrollNext, prevControlIcon, nextControlIcon, controlIconStyle, controlIconFontSize, controlVariant, controlColor) })));\n};\n//# sourceMappingURL=carousel.js.map"],"names":["handleScrollPrev","emblaApi","direction","scrollPrev","scrollNext","handleScrollNext","handleScrollTo","index","scrollTo","emblaWidthSize","apiParam","slideToShowParam","slideNode","slideNodes","forEach","item","img","querySelector","style","width","naturalWidth","props","align","autoPlay","axis","buttonAreaControlsHeight","buttonControls","buttonControlsPosition","cssClass","heightSlide","isSlideDifferentWidth","loop","numberingSeparator","numberingSlides","progressbar","slidesItems","slideToScroll","slideToShow","slideSelectedClass","speed","startIndex","bulletScroll","bulletStyle","bulletTheme","prevControlIcon","nextControlIcon","controlIconStyle","controlIconFontSize","controlVariant","controlColor","optionsAutoplay","playOnInit","autoplay","Autoplay","optionsClassNames","selected","optionAlign","selectedIndex","setSelectedIndex","useState","prevBtnEnabled","setPrevBtnEnabled","nextBtnEnabled","setNextBtnEnabled","scrollProgress","setScrollProgress","hovered","setHovered","isMobile","setIsMobile","classEmbla","setClassEmbla","emblaOptions","containScroll","slidesToScroll","skipSnaps","emblaRef","useEmblaCarousel","ClassNames","default","theme","useTheme","toggleHover","element","controller","controllerHover","onScroll","useCallback","progress","Math","max","min","useEffect","onSelect","selectedScrollSnap","canScrollPrev","canScrollNext","on","mq","window","matchMedia","breakpoints","values","md","matches","_jsx","jsx","CarouselStyledVertical","Object","assign","children","template","CarouselStyledHorizontal","isBtnEnabled"],"mappings":"kbAUY,MAACA,EAAmB,CAACC,EAAUC,KACnCD,IACc,QAAdC,EAAsBD,EAASE,aAAeF,EAASG,aAC1D,EAEQC,EAAmB,CAACJ,EAAUC,KACnCD,IACc,QAAdC,EAAsBD,EAASE,aAAeF,EAASG,aAC1D,EAGQE,EAAiB,CAACL,EAAUM,KACjCN,GACAA,EAASO,SAASD,EACrB,EAMQE,EAAiB,CAACC,EAAUC,KACrC,MAAMC,EAAYF,EAASG,aACvBF,GAAoB,GACpBC,EAAUE,SAASC,IACf,GAAIA,EAAM,CACN,MAAMC,EAAMD,EAAKE,cAAc,OAC/B,GAAID,EACA,O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AAwBmC,EAAgB7B,EAAiBwB,EAAezB,EAAoBE,EAAa8B,GAAiBmB,GAAYD,GAAYC,IAAU9C,EAAaiC,GAAY7B,EAAcC,EAAapC,EAAgBN,EAAkBK,EAAkBuC,EAAiBC,EAAiBC,EAAkBC,EAAqBC,EAAgBC,MAAsBwD,EAAIC,IAACM,EAAwBA,yBAAEJ,OAAOC,OAAO,CAAE/E,sBAAuBA,EAAuBR,MAAOA,EAAOa,YAAaA,EAAaE,YAAaA,EAAaM,YAAaA,GAAetB,EAAO,CAAEyF,SAAUC,EAAQA,SAACnF,EAAUsC,GAASN,EAAgB3D,GAAUC,EAAW0E,GAAUzC,EAAaN,EAAaH,EAAgBD,EAA0BE,EAAwBmC,EAAgB7B,EAAiBwB,EAAezB,EAAoBE,EAAa8B,GAAiBmB,GAAYD,GAAYC,IAAU9C,EAAaiC,GAAY7B,EAAcC,EAAapC,EAAgBN,EAAkBK,EAAkBuC,EAAiBC,EAAiBC,EAAkBC,EAAqBC,EAAgBC,KAAkB,mDAnFx2C,CAAC/C,EAAWgE,EAAS+C,IACzC/C,GAAW+C,EAAe,GAAG/G,aAAuB"}
|
|
1
|
+
{"version":3,"file":"carousel.js","sources":["../../../../src/organisms/carousel/carousel.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { useCallback, useEffect, useState } from 'react';\nimport useEmblaCarousel from 'embla-carousel-react';\nimport ClassNames from 'embla-carousel-class-names';\nimport Autoplay from 'embla-carousel-autoplay';\nimport { CarouselStyledHorizontal } from './styledComponents/styledCarouselHorizontal';\nimport { CarouselStyledVertical } from './styledComponents/styledCarouselVertical';\nimport { useTheme } from '@mui/material';\nimport { template } from './carouselTemplate';\n//the following function was moved outside of teh component to reduce its cognitive complexity\nexport const handleScrollPrev = (emblaApi, direction) => {\n if (emblaApi) {\n direction === 'ltr' ? emblaApi.scrollPrev() : emblaApi.scrollNext();\n }\n};\nexport const handleScrollNext = (emblaApi, direction) => {\n if (emblaApi) {\n direction === 'rtl' ? emblaApi.scrollPrev() : emblaApi.scrollNext();\n }\n};\n//the following function was moved outside of teh component to reduce its cognitive complexity\nexport const handleScrollTo = (emblaApi, index) => {\n if (emblaApi) {\n emblaApi.scrollTo(index);\n }\n};\n//the following function was moved outside of teh component to reduce its cognitive complexity\nexport const getHoveredClass = (direction, hovered, isBtnEnabled) => {\n return hovered && isBtnEnabled ? `${direction}--hovered` : '';\n};\nexport const emblaWidthSize = (apiParam, slideToShowParam) => {\n const slideNode = apiParam.slideNodes();\n if (slideToShowParam <= 1) {\n slideNode.forEach((item) => {\n if (item) {\n const img = item.querySelector('img');\n if (img)\n return (item.style.width = `${img.naturalWidth}px`);\n }\n });\n }\n};\n/**\n * @deprecated this component does not meet quality standards and will be removed in the future\n */\nexport const Carousel = (props) => {\n const { align = 'start', autoPlay = false, axis = 'x', buttonAreaControlsHeight = '50%', buttonControls = true, buttonControlsPosition = '0', cssClass = '', direction = 'ltr', heightSlide, isSlideDifferentWidth = false, loop = false, numberingSeparator = '/', numberingSlides = true, progressbar = false, slidesItems, slideToScroll = 1, slideToShow = 1, slideSelectedClass = 'slide-selected', speed = 10, startIndex = 0, bulletScroll = false, bulletStyle = 'dot', bulletTheme = 'dark', prevControlIcon = 'arrow-left', nextControlIcon = 'arrow-right', controlIconStyle = 'regular', controlIconFontSize = 'medium', controlVariant = 'standard', controlColor = 'dark', } = props;\n const optionsAutoplay = {\n playOnInit: autoPlay ? true : false,\n };\n const autoplay = Autoplay(optionsAutoplay);\n const optionsClassNames = { selected: slideSelectedClass };\n const optionAlign = align !== 'center' ? 'trimSnaps' : '';\n const [selectedIndex, setSelectedIndex] = useState(startIndex);\n const [prevBtnEnabled, setPrevBtnEnabled] = useState(true);\n const [nextBtnEnabled, setNextBtnEnabled] = useState(true);\n const [scrollProgress, setScrollProgress] = useState(0);\n const [hovered, setHovered] = useState(false);\n const [isMobile, setIsMobile] = useState();\n const [classEmbla, setClassEmbla] = useState('');\n const emblaOptions = {\n align: align,\n axis: axis,\n containScroll: optionAlign,\n direction: direction,\n loop: loop,\n slidesToScroll: isMobile ? 1 : slideToScroll,\n skipSnaps: false,\n speed: speed,\n startIndex: startIndex,\n };\n const [emblaRef, emblaApi] = useEmblaCarousel(emblaOptions, [autoplay, ClassNames(optionsClassNames)]);\n const theme = useTheme();\n const controllerHover = (controller) => {\n switch (true) {\n case controller === 'prev' && prevBtnEnabled:\n return setClassEmbla('embla-container-prev');\n case controller === 'next' && nextBtnEnabled:\n return setClassEmbla('embla-container-next');\n default:\n return setClassEmbla('');\n }\n };\n const toggleHover = (element) => {\n setHovered(!hovered);\n controllerHover(element);\n };\n const onScroll = useCallback(() => {\n if (!emblaApi && !progressbar)\n return;\n const progress = Math.max(0, Math.min(1, emblaApi.scrollProgress()));\n setScrollProgress(progress * 100);\n }, [emblaApi, progressbar, setScrollProgress]);\n useEffect(() => {\n if (emblaApi) {\n emblaWidthSize(emblaApi, slideToShow);\n const onSelect = () => {\n const index = emblaApi.selectedScrollSnap();\n setSelectedIndex(index);\n setSelectedIndex(emblaApi.selectedScrollSnap());\n setPrevBtnEnabled(emblaApi.canScrollPrev());\n setNextBtnEnabled(emblaApi.canScrollNext());\n };\n emblaApi.on('select', onSelect);\n onSelect();\n emblaApi.on('scroll', onScroll);\n onScroll();\n }\n }, [emblaApi, progressbar, onScroll, slideToShow]);\n useEffect(() => {\n const mq = window.matchMedia(`(max-width: ${theme.breakpoints.values.md}px)`);\n setIsMobile(mq.matches);\n }, [theme.breakpoints.values.md]);\n return axis === 'y' ? (_jsx(CarouselStyledVertical, Object.assign({ align: align, slidesItems: slidesItems, slideToShow: slideToShow, bulletTheme: bulletTheme }, props, { children: template(cssClass, hovered, prevBtnEnabled, emblaApi, direction, emblaRef, slidesItems, heightSlide, buttonControls, buttonAreaControlsHeight, buttonControlsPosition, nextBtnEnabled, numberingSlides, selectedIndex, numberingSeparator, progressbar, scrollProgress, (element) => toggleHover(element), slideToShow, classEmbla, bulletScroll, bulletStyle, handleScrollTo, handleScrollPrev, handleScrollNext, prevControlIcon, nextControlIcon, controlIconStyle, controlIconFontSize, controlVariant, controlColor) }))) : (_jsx(CarouselStyledHorizontal, Object.assign({ isSlideDifferentWidth: isSlideDifferentWidth, align: align, slidesItems: slidesItems, slideToShow: slideToShow, bulletTheme: bulletTheme }, props, { children: template(cssClass, hovered, prevBtnEnabled, emblaApi, direction, emblaRef, slidesItems, heightSlide, buttonControls, buttonAreaControlsHeight, buttonControlsPosition, nextBtnEnabled, numberingSlides, selectedIndex, numberingSeparator, progressbar, scrollProgress, (element) => toggleHover(element), slideToShow, classEmbla, bulletScroll, bulletStyle, handleScrollTo, handleScrollPrev, handleScrollNext, prevControlIcon, nextControlIcon, controlIconStyle, controlIconFontSize, controlVariant, controlColor) })));\n};\n//# sourceMappingURL=carousel.js.map"],"names":["handleScrollPrev","emblaApi","direction","scrollPrev","scrollNext","handleScrollNext","handleScrollTo","index","scrollTo","emblaWidthSize","apiParam","slideToShowParam","slideNode","slideNodes","forEach","item","img","querySelector","style","width","naturalWidth","props","align","autoPlay","axis","buttonAreaControlsHeight","buttonControls","buttonControlsPosition","cssClass","heightSlide","isSlideDifferentWidth","loop","numberingSeparator","numberingSlides","progressbar","slidesItems","slideToScroll","slideToShow","slideSelectedClass","speed","startIndex","bulletScroll","bulletStyle","bulletTheme","prevControlIcon","nextControlIcon","controlIconStyle","controlIconFontSize","controlVariant","controlColor","optionsAutoplay","playOnInit","autoplay","Autoplay","optionsClassNames","selected","optionAlign","selectedIndex","setSelectedIndex","useState","prevBtnEnabled","setPrevBtnEnabled","nextBtnEnabled","setNextBtnEnabled","scrollProgress","setScrollProgress","hovered","setHovered","isMobile","setIsMobile","classEmbla","setClassEmbla","emblaOptions","containScroll","slidesToScroll","skipSnaps","emblaRef","useEmblaCarousel","ClassNames","default","theme","useTheme","toggleHover","element","controller","controllerHover","onScroll","useCallback","progress","Math","max","min","useEffect","onSelect","selectedScrollSnap","canScrollPrev","canScrollNext","on","mq","window","matchMedia","breakpoints","values","md","matches","_jsx","jsx","CarouselStyledVertical","Object","assign","children","template","CarouselStyledHorizontal","isBtnEnabled"],"mappings":"kbAUY,MAACA,EAAmB,CAACC,EAAUC,KACnCD,IACc,QAAdC,EAAsBD,EAASE,aAAeF,EAASG,aAC1D,EAEQC,EAAmB,CAACJ,EAAUC,KACnCD,IACc,QAAdC,EAAsBD,EAASE,aAAeF,EAASG,aAC1D,EAGQE,EAAiB,CAACL,EAAUM,KACjCN,GACAA,EAASO,SAASD,EACrB,EAMQE,EAAiB,CAACC,EAAUC,KACrC,MAAMC,EAAYF,EAASG,aACvBF,GAAoB,GACpBC,EAAUE,SAASC,IACf,GAAIA,EAAM,CACN,MAAMC,EAAMD,EAAKE,cAAc,OAC/B,GAAID,EACA,OAAQD,EAAKG,MAAMC,MAAQ,GAAGH,EAAII,gBACzC,IAER,mBAKoBC,IACrB,MAAMC,MAAEA,EAAQ,QAAOC,SAAEA,GAAW,EAAKC,KAAEA,EAAO,IAAGC,yBAAEA,EAA2B,MAAKC,eAAEA,GAAiB,EAAIC,uBAAEA,EAAyB,IAAGC,SAAEA,EAAW,GAAE1B,UAAEA,EAAY,MAAK2B,YAAEA,EAAWC,sBAAEA,GAAwB,EAAKC,KAAEA,GAAO,EAAKC,mBAAEA,EAAqB,IAAGC,gBAAEA,GAAkB,EAAIC,YAAEA,GAAc,EAAKC,YAAEA,EAAWC,cAAEA,EAAgB,EAACC,YAAEA,EAAc,EAACC,mBAAEA,EAAqB,iBAAgBC,MAAEA,EAAQ,GAAEC,WAAEA,EAAa,EAACC,aAAEA,GAAe,EAAKC,YAAEA,EAAc,MAAKC,YAAEA,EAAc,OAAMC,gBAAEA,EAAkB,aAAYC,gBAAEA,EAAkB,cAAaC,iBAAEA,EAAmB,UAASC,oBAAEA,EAAsB,SAAQC,eAAEA,EAAiB,WAAUC,aAAEA,EAAe,QAAY5B,EACvpB6B,EAAkB,CACpBC,aAAY5B,GAEV6B,EAAWC,UAASH,GACpBI,EAAo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=require("tslib"),t=require("@emotion/styled"),
|
|
1
|
+
"use strict";var e=require("tslib"),t=require("@emotion/styled"),i=require("../../../design/skoda/paletteLight.theme.js"),o=require("../../../utils/utilities.js");function r(e){return e&&e.__esModule?e:{default:e}}var n,a=r(t);exports.controlButtonsHover=void 0,(n=exports.controlButtonsHover||(exports.controlButtonsHover={})).NEXT="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuOCIvPgo8cGF0aCBkPSJNOC4xNDYgMTYuNDk2VjE5LjJIMjMuNzcyTDE2Ljg4MiAyNi4wMTJMMTguNTQ2IDI3LjY3NkwyOC4zNzQgMTcuODQ4TDE4LjU0NiA4LjAyTDE2Ljg4MiA5LjY4NEwyMy43NzIgMTYuNDk2SDguMTQ2WiIgZmlsbD0iIzE2MTcxOCIvPgo8L3N2Zz4K",n.PREV="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuOCIvPgo8cGF0aCBkPSJNMTkuMTE4IDI2LjAxMkwxMi4yMjggMTkuMkgyNy44NTRWMTYuNDk2SDEyLjIyOEwxOS4xMTggOS42ODRMMTcuNDU0IDguMDJMNy42MjYgMTcuODQ4TDE3LjQ1NCAyNy42NzZMMTkuMTE4IDI2LjAxMloiIGZpbGw9IiMxNjE3MTgiLz4KPC9zdmc+Cg==";const l=a.default("div",{shouldForwardProp:e=>"isSlideDifferentWidth"!==e&&"slidesItems"!==e&&"slideToShow"!==e&&"bulletTheme"!==e&&"numberingSeparator"!==e&&"numberingSlides"!==e&&"startIndex"!==e&&"cssClass"!==e&&"buttonControls"!==e&&"buttonAreaControlsHeight"!==e&&"slideToScroll"!==e&&"prevControlIcon"!==e&&"nextControlIcon"!==e&&"controlColor"!==e&&"controlIconStyle"!==e&&"controlVariant"!==e&&"controlIconFontSize"!==e&&"slideSelectedClass"!==e&&"heightSlide"!==e&&"bulletScroll"!==e&&"bulletStyle"!==e})((t=>{var{theme:r}=t;const n=e.__rest(t,["theme"]);let a={};switch(a=Object.assign(Object.assign({},a),{"& .embla":{position:"relative",padding:"0px",maxWidth:"100%",marginLeft:"auto",marginRight:"auto",boxSizing:"border-box","& *":{boxSizing:"border-box"},[r.breakpoints.up("md")]:{"&.embla-container-next":{"& .embla__container":{left:"center"===n.align?"-6%":"-3%"}},"&.embla-container-prev":{"& .embla__container":{left:"center"===n.align?"-2%":"3%"}}}},"& .embla__viewport":{overflow:"hidden",width:"100%"},"& .embla__viewport.is-draggable":{cursor:"move"},"& .embla__viewport.is-dragging":{cursor:"grabbing"},"& .embla__container":{display:"flex",userSelect:"none",webkitTouchCallout:"none",khtmlUserSelect:"none",webkitTapHighlightColor:"transparent",marginLeft:"-24px",transition:"left .4s",[r.breakpoints.up("md")]:{position:"relative",left:"center"===n.align?"-4%":"0"}},"& .embla__slide":{position:"relative",flex:"0 0 auto",paddingLeft:"24px",[r.breakpoints.down("md")]:{width:n.isSlideDifferentWidth?"":"100%"}},"& .embla__slide__inner":{position:"relative",overflow:"hidden",height:"100%",display:n.isSlideDifferentWidth?"flex":"","& img":{maxWidth:"100%",height:"100%",objectFit:"cover"}},"& .embla__button":{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",top:"0",height:"100%",zIndex:"2",border:"0",boxShadow:"none",backgroundColor:"transparent",cursor:"auto",borderRadius:0,"& .MuiIcon-fontSizeSmall":{width:"24px",height:"24px"},"& .MuiIcon-fontSizeMedium":{width:"32px",height:"32px"},"&:disabled":{"& .MuiIcon-root":{color:r.palette.disabled.primary},"&:hover":{[r.breakpoints.up("lg")]:{"& .MuiIcon-root":{backgroundColor:"transparent"}}}}},"& .embla__button--prev":{left:"0",width:"12%"},"& .embla__button--prev.prev--hovered":{[r.breakpoints.up("lg")]:{cursor:`url(${exports.controlButtonsHover.PREV}), auto`,"& button":{transform:"scale(0)"}}},"& .embla__button--next":{right:"0",width:"12%"},"& .embla__button--next.next--hovered":{[r.breakpoints.up("lg")]:{cursor:`url(${exports.controlButtonsHover.NEXT}), auto`,"& button":{transform:"scale(0)"}}},"& .embla__progress":{position:"relative",backgroundColor:"transparent",marginTop:!0===n.numberingSlides?"30px":"10px",maxWidth:"100%",width:"100%",height:"4px",overflow:"hidden",borderRadius:"4px",marginLeft:"auto",marginRight:"auto"},"& .embla__progress__bar":{position:"absolute",backgroundColor:r.palette.onSurface.os200,width:"100%",top:"0",bottom:"0",left:"-100%"},"& .carousel_numbering":{[r.breakpoints.up("md")]:{position:"absolute",right:"11%"},[r.breakpoints.down("md")]:{textAlign:"center"}},"& .embla__dots":{display:"flex",listStyle:"none",justifyContent:"center",paddingTop:"10px","& .embla__dot":{backgroundColor:"transparent",cursor:"pointer",position:"relative",padding:"0",outline:"0",border:"0",width:"30px",height:"30px",marginRight:"7.5px",marginLeft:"7.5px",display:"flex",alignItems:"center","&:after":{backgroundColor:i.paletteLight.disabled.secondary,width:"50px",height:"4px",borderRadius:"2px",content:'""'},"&.is-selected":{"&:after":{backgroundColor:i.paletteLight.onSurface.os900,opacity:"1"}}},"& .embla__dot_small":{backgroundColor:"transparent",cursor:"pointer",position:"relative",padding:"0",outline:"0",border:"0",width:"12px",height:"6px",marginRight:"6px",marginLeft:"6px",display:"flex",alignItems:"center","&:after":{backgroundColor:o.ternaryCondition(n.bulletTheme,"dark",i.paletteLight.onSurface.os900,i.paletteLight.surface.tertiary),width:"6px",height:"6px",borderRadius:"50%",content:'""'},"&.is-selected":{"&:after":{backgroundColor:"transparent",height:"12px",width:"12px",border:o.ternaryCondition(n.bulletTheme,"dark",i.paletteLight.onSurface.os900,i.paletteLight.surface.tertiary),borderRadius:"50%",opacity:"1"}}}}}),n.slideToShow){case 1:return Object.assign(Object.assign({},a),{"& .embla__slide":{position:"relative",flex:"0 0 100%",paddingLeft:"24px",[r.breakpoints.up("md")]:{flex:n.isSlideDifferentWidth?"0 0 auto":"0 0 100%",maxWidth:!0===n.isSlideDifferentWidth?" 100%":"80%"}}});case 2:return Object.assign(Object.assign({},a),{"& .embla__slide":{position:"relative",flex:"0 0 100%",[r.breakpoints.up("md")]:{flex:"0 0 50%"},paddingLeft:"24px"}});case 3:return Object.assign(Object.assign({},a),{"& .embla__slide":{position:"relative",flex:"0 0 100%",[r.breakpoints.up("md")]:{flex:"0 0 33.33%"},paddingLeft:"24px"}});case 4:return Object.assign(Object.assign({},a),{"& .embla__slide":{position:"relative",flex:"0 0 100%",[r.breakpoints.up("md")]:{flex:"0 0 25%"},paddingLeft:"24px"}})}return a}));exports.CarouselStyledHorizontal=l;
|
|
2
2
|
//# sourceMappingURL=styledCarouselHorizontal.js.map
|