@skodaflow/web-library 7.13.1 → 7.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/components/alert/AlertButton.d.ts +1 -1
- package/cjs/components/alert/AlertButton.js +1 -1
- package/cjs/components/alert/AlertButton.js.map +1 -1
- package/cjs/components/alert/AlertNotificationButton.d.ts +8 -0
- package/cjs/components/alert/AlertNotificationButton.js +2 -0
- package/cjs/components/alert/AlertNotificationButton.js.map +1 -0
- package/cjs/components/alert/index.d.ts +1 -0
- package/cjs/components/backdrop/backdrop.d.ts +1 -2
- package/cjs/components/backdrop/backdrop.js.map +1 -1
- package/cjs/components/banner/BannerButton.d.ts +8 -0
- package/cjs/components/banner/BannerButton.js +2 -0
- package/cjs/components/banner/BannerButton.js.map +1 -0
- package/cjs/components/banner/BannerDismissButton.d.ts +8 -0
- package/cjs/components/banner/BannerDismissButton.js +2 -0
- package/cjs/components/banner/BannerDismissButton.js.map +1 -0
- package/cjs/components/banner/banner.d.ts +1 -1
- package/cjs/components/banner/banner.js +1 -1
- package/cjs/components/banner/banner.js.map +1 -1
- package/cjs/components/banner/index.d.ts +2 -0
- package/cjs/components/cardMenu/cardMenu.d.ts +1 -2
- package/cjs/components/cardMenu/cardMenu.js.map +1 -1
- package/cjs/components/cardMenu/styled/drawerStyled.d.ts +1 -1
- package/cjs/components/cardMenu/styled/drawerStyled.js +1 -1
- package/cjs/components/cardMenu/styled/drawerStyled.js.map +1 -1
- package/cjs/components/cardMenu/styled/popperStyled.d.ts +1 -1
- package/cjs/components/cardMenu/styled/popperStyled.js +1 -1
- package/cjs/components/cardMenu/styled/popperStyled.js.map +1 -1
- package/cjs/components/carousel/navigation.js +1 -1
- package/cjs/components/carousel/navigation.js.map +1 -1
- package/cjs/components/carousel/pagination.d.ts +5 -1
- package/cjs/components/carousel/pagination.js +1 -1
- package/cjs/components/carousel/pagination.js.map +1 -1
- package/cjs/components/chip/chipFocusVisibleStyled.d.ts +1 -1
- package/cjs/components/chip/chipFocusVisibleStyled.js +1 -1
- package/cjs/components/chip/chipFocusVisibleStyled.js.map +1 -1
- package/cjs/components/common/menuContainer.js +1 -1
- package/cjs/components/common/menuContainer.js.map +1 -1
- package/cjs/components/common/styled/buttonFocusVisibleStyled.d.ts +1 -1
- package/cjs/components/common/styled/buttonFocusVisibleStyled.js +1 -1
- package/cjs/components/common/styled/buttonFocusVisibleStyled.js.map +1 -1
- package/cjs/components/common/styled/formControlLabelStyled.d.ts +1 -1
- package/cjs/components/common/styled/formControlLabelStyled.js +1 -1
- package/cjs/components/common/styled/formControlLabelStyled.js.map +1 -1
- package/cjs/components/common/styled/helperTextContainerStyled.d.ts +1 -1
- package/cjs/components/common/styled/sliderValuesStyled.d.ts +1 -1
- package/cjs/components/common/styled/sliderValuesStyled.js +1 -1
- package/cjs/components/common/styled/sliderValuesStyled.js.map +1 -1
- package/cjs/components/customPickersActionBar/index.js +1 -1
- package/cjs/components/customPickersActionBar/index.js.map +1 -1
- package/cjs/components/errorContent/ErrorContent.d.ts +48 -0
- package/cjs/components/errorContent/ErrorContent.js +2 -0
- package/cjs/components/errorContent/ErrorContent.js.map +1 -0
- package/cjs/components/footer/Footer.d.ts +32 -0
- package/cjs/components/footer/Footer.js +2 -0
- package/cjs/components/footer/Footer.js.map +1 -0
- package/cjs/components/footer/FooterAccordion.d.ts +29 -0
- package/cjs/components/footer/FooterAccordion.js +2 -0
- package/cjs/components/footer/FooterAccordion.js.map +1 -0
- package/cjs/components/footer/FooterIconButton.d.ts +24 -0
- package/cjs/components/footer/FooterIconButton.js +2 -0
- package/cjs/components/footer/FooterIconButton.js.map +1 -0
- package/cjs/components/footer/FooterLink.d.ts +22 -0
- package/cjs/components/footer/FooterLink.js +2 -0
- package/cjs/components/footer/FooterLink.js.map +1 -0
- package/cjs/components/footer/FooterMenu.d.ts +30 -0
- package/cjs/components/footer/FooterMenu.js +2 -0
- package/cjs/components/footer/FooterMenu.js.map +1 -0
- package/cjs/components/footer/FooterSectionContact.d.ts +24 -0
- package/cjs/components/footer/FooterSectionContact.js +2 -0
- package/cjs/components/footer/FooterSectionContact.js.map +1 -0
- package/cjs/components/footer/FooterSectionLinks.d.ts +34 -0
- package/cjs/components/footer/FooterSectionLinks.js +2 -0
- package/cjs/components/footer/FooterSectionLinks.js.map +1 -0
- package/cjs/components/footer/FooterSectionMenu.d.ts +8 -0
- package/cjs/components/footer/FooterSectionMenu.js +2 -0
- package/cjs/components/footer/FooterSectionMenu.js.map +1 -0
- package/{layout/Footer → cjs/components/footer}/index.d.ts +4 -5
- package/cjs/components/grid/grid.d.ts +3 -100
- package/cjs/components/grid/grid.js.map +1 -1
- package/cjs/components/header/Header.d.ts +79 -0
- package/cjs/components/header/Header.js +2 -0
- package/cjs/components/header/Header.js.map +1 -0
- package/cjs/components/header/HeaderButton.d.ts +54 -0
- package/cjs/components/header/HeaderButton.js +2 -0
- package/cjs/components/header/HeaderButton.js.map +1 -0
- package/cjs/components/header/HeaderLanguageSelect.d.ts +45 -0
- package/cjs/components/header/HeaderLanguageSelect.js +2 -0
- package/cjs/components/header/HeaderLanguageSelect.js.map +1 -0
- package/cjs/components/header/HeaderLogo.d.ts +25 -0
- package/cjs/components/header/HeaderLogo.js +2 -0
- package/cjs/components/header/HeaderLogo.js.map +1 -0
- package/cjs/components/header/HeaderNavigationHero.d.ts +51 -0
- package/cjs/components/header/HeaderNavigationHero.js +2 -0
- package/cjs/components/header/HeaderNavigationHero.js.map +1 -0
- package/cjs/components/header/HeaderNavigationLink.d.ts +48 -0
- package/cjs/components/header/HeaderNavigationLink.js +2 -0
- package/cjs/components/header/HeaderNavigationLink.js.map +1 -0
- package/cjs/components/header/HeaderNavigationMenu.d.ts +25 -0
- package/cjs/components/header/HeaderNavigationMenu.js +2 -0
- package/cjs/components/header/HeaderNavigationMenu.js.map +1 -0
- package/{layout/Header → cjs/components/header}/index.d.ts +2 -6
- package/cjs/components/icon/filled/BatteryDischargeFilledIcon.d.ts +6 -0
- package/cjs/components/icon/filled/BatteryDischargeFilledIcon.js +2 -0
- package/cjs/components/icon/filled/BatteryDischargeFilledIcon.js.map +1 -0
- package/cjs/components/icon/filled/BicycleFilledIcon.d.ts +6 -0
- package/cjs/components/icon/filled/BicycleFilledIcon.js +2 -0
- package/cjs/components/icon/filled/BicycleFilledIcon.js.map +1 -0
- package/cjs/components/icon/filled/BoltDischargeFilledIcon.d.ts +6 -0
- package/cjs/components/icon/filled/BoltDischargeFilledIcon.js +2 -0
- package/cjs/components/icon/filled/BoltDischargeFilledIcon.js.map +1 -0
- package/cjs/components/icon/filled/BoltOffFilledIcon.d.ts +6 -0
- package/cjs/components/icon/filled/BoltOffFilledIcon.js +2 -0
- package/cjs/components/icon/filled/BoltOffFilledIcon.js.map +1 -0
- package/cjs/components/icon/filled/index.d.ts +4 -0
- package/cjs/components/icon/icon.definitions.js +1 -1
- package/cjs/components/icon/icon.definitions.js.map +1 -1
- package/cjs/components/icon/stroke/BatteryDischargeIcon.d.ts +6 -0
- package/cjs/components/icon/stroke/BatteryDischargeIcon.js +2 -0
- package/cjs/components/icon/stroke/BatteryDischargeIcon.js.map +1 -0
- package/cjs/components/icon/stroke/BicycleIcon.d.ts +6 -0
- package/cjs/components/icon/stroke/BicycleIcon.js +2 -0
- package/cjs/components/icon/stroke/BicycleIcon.js.map +1 -0
- package/cjs/components/icon/stroke/BoltDischargeIcon.d.ts +6 -0
- package/cjs/components/icon/stroke/BoltDischargeIcon.js +2 -0
- package/cjs/components/icon/stroke/BoltDischargeIcon.js.map +1 -0
- package/cjs/components/icon/stroke/BoltOffIcon.d.ts +6 -0
- package/cjs/components/icon/stroke/BoltOffIcon.js +2 -0
- package/cjs/components/icon/stroke/BoltOffIcon.js.map +1 -0
- package/cjs/components/icon/stroke/index.d.ts +4 -0
- package/cjs/components/index.d.ts +6 -0
- package/cjs/components/label/label.d.ts +1 -1
- package/cjs/components/label/label.js +1 -1
- package/cjs/components/label/label.js.map +1 -1
- package/cjs/components/logo/Logo.d.ts +51 -15
- package/cjs/components/logo/Logo.js +1 -1
- package/cjs/components/logo/Logo.js.map +1 -1
- package/cjs/components/mobileStepper/mobileStepperButton.js +1 -1
- package/cjs/components/mobileStepper/mobileStepperButton.js.map +1 -1
- package/cjs/components/notification/Notification.d.ts +81 -0
- package/cjs/components/notification/Notification.js +2 -0
- package/cjs/components/notification/Notification.js.map +1 -0
- package/cjs/components/notification/NotificationButton.d.ts +8 -0
- package/cjs/components/notification/NotificationButton.js +2 -0
- package/cjs/components/notification/NotificationButton.js.map +1 -0
- package/cjs/components/notification/NotificationCenter.d.ts +53 -0
- package/cjs/components/notification/NotificationCenter.js +2 -0
- package/cjs/components/notification/NotificationCenter.js.map +1 -0
- package/cjs/components/notification/NotificationCenterCategory.d.ts +24 -0
- package/cjs/components/notification/NotificationCenterCategory.js +2 -0
- package/cjs/components/notification/NotificationCenterCategory.js.map +1 -0
- package/cjs/components/notification/NotificationCenterHeaderButton.d.ts +51 -0
- package/cjs/components/notification/NotificationCenterHeaderButton.js +2 -0
- package/cjs/components/notification/NotificationCenterHeaderButton.js.map +1 -0
- package/cjs/{organisms → components}/notification/index.d.ts +1 -0
- package/cjs/{layout/PageLayout → components/pageLayout}/PageLayout.d.ts +25 -11
- package/cjs/components/pageLayout/PageLayout.js +2 -0
- package/cjs/components/pageLayout/PageLayout.js.map +1 -0
- package/cjs/components/pagination/pagination.d.ts +14 -61
- package/cjs/components/pagination/pagination.js +1 -1
- package/cjs/components/pagination/pagination.js.map +1 -1
- package/cjs/components/search/search.js +1 -1
- package/cjs/components/search/search.js.map +1 -1
- package/cjs/components/secondaryNavigation/SecondaryNavigation.d.ts +51 -0
- package/cjs/components/secondaryNavigation/SecondaryNavigation.js +2 -0
- package/cjs/components/secondaryNavigation/SecondaryNavigation.js.map +1 -0
- package/cjs/components/secondaryNavigation/SecondaryNavigationCta.d.ts +8 -0
- package/cjs/components/secondaryNavigation/SecondaryNavigationCta.js +2 -0
- package/cjs/components/secondaryNavigation/SecondaryNavigationCta.js.map +1 -0
- package/cjs/components/secondaryNavigation/SecondaryNavigationItem.d.ts +21 -0
- package/cjs/components/secondaryNavigation/SecondaryNavigationItem.js +2 -0
- package/cjs/components/secondaryNavigation/SecondaryNavigationItem.js.map +1 -0
- package/cjs/components/segmentedControls/{segmentedControls.js → SegmentedControls.js} +1 -1
- package/cjs/components/segmentedControls/{segmentedControls.js.map → SegmentedControls.js.map} +1 -1
- package/cjs/components/segmentedControls/index.d.ts +1 -1
- package/cjs/components/stepper/model.d.ts +1 -3
- package/cjs/components/stepper/model.js.map +1 -1
- package/cjs/components/textAndCta/textAndCta.js +1 -1
- package/cjs/components/textAndCta/textAndCta.js.map +1 -1
- package/cjs/components/upload/UploadPreviewList.js +1 -1
- package/cjs/components/upload/UploadPreviewList.js.map +1 -1
- package/cjs/index.js +1 -1
- package/cjs/layout/index.d.ts +0 -5
- package/cjs/materialui/accordion/AccordionSummaryExpandIcon.js +1 -1
- package/cjs/materialui/accordion/AccordionSummaryExpandIcon.js.map +1 -1
- package/cjs/materialui/accordion/accordion.theme.js +1 -1
- package/cjs/materialui/accordion/accordion.theme.js.map +1 -1
- package/cjs/materialui/accordion/accordionSummary.theme.js +1 -1
- package/cjs/materialui/accordion/accordionSummary.theme.js.map +1 -1
- package/cjs/materialui/alert/alert.theme.js +1 -1
- package/cjs/materialui/alert/alert.theme.js.map +1 -1
- package/cjs/materialui/appbar/appbar.theme.js +1 -1
- package/cjs/materialui/appbar/appbar.theme.js.map +1 -1
- package/cjs/materialui/appbar/toolbar.theme.d.ts +3 -0
- package/cjs/materialui/appbar/toolbar.theme.js +2 -0
- package/cjs/materialui/appbar/toolbar.theme.js.map +1 -0
- package/cjs/materialui/button/button.theme.js +1 -1
- package/cjs/materialui/button/button.theme.js.map +1 -1
- package/cjs/materialui/button/interactive.d.ts +2 -1
- package/cjs/materialui/button/interactive.js +1 -1
- package/cjs/materialui/button/interactive.js.map +1 -1
- package/cjs/materialui/card/Card.js +1 -1
- package/cjs/materialui/card/Card.js.map +1 -1
- package/cjs/materialui/card/FlippingCardContent.d.ts +2 -2
- package/cjs/materialui/card/FlippingCardContent.js +1 -1
- package/cjs/materialui/card/FlippingCardContent.js.map +1 -1
- package/cjs/materialui/card/card.theme.js +1 -1
- package/cjs/materialui/card/card.theme.js.map +1 -1
- package/cjs/materialui/chip/chip.theme.js +1 -1
- package/cjs/materialui/chip/chip.theme.js.map +1 -1
- package/cjs/materialui/container/container.theme.d.ts +5 -1
- package/cjs/materialui/container/container.theme.js +1 -1
- package/cjs/materialui/container/container.theme.js.map +1 -1
- package/cjs/materialui/fab/fab.theme.js +1 -1
- package/cjs/materialui/fab/fab.theme.js.map +1 -1
- package/cjs/materialui/iconButton/iconButton.theme.js +1 -1
- package/cjs/materialui/iconButton/iconButton.theme.js.map +1 -1
- package/cjs/materialui/pagination/pagination.theme.d.ts +0 -1
- package/cjs/materialui/pagination/pagination.theme.js +1 -1
- package/cjs/materialui/pagination/pagination.theme.js.map +1 -1
- package/cjs/materialui/pagination/paginationItem.theme.d.ts +3 -0
- package/cjs/materialui/pagination/paginationItem.theme.js +2 -0
- package/cjs/materialui/pagination/paginationItem.theme.js.map +1 -0
- package/cjs/materialui/rating/index.d.ts +2 -0
- package/cjs/materialui/rating/rating.theme.d.ts +3 -0
- package/cjs/materialui/rating/rating.theme.js +2 -0
- package/cjs/materialui/rating/rating.theme.js.map +1 -0
- package/cjs/materialui/skeleton/skeleton.theme.js +1 -1
- package/cjs/materialui/skeleton/skeleton.theme.js.map +1 -1
- package/cjs/materialui/slider/sliderValues.js +1 -1
- package/cjs/materialui/slider/sliderValues.js.map +1 -1
- package/cjs/materialui/stepper/StepLabelIcon.js +1 -1
- package/cjs/materialui/stepper/StepLabelIcon.js.map +1 -1
- package/cjs/materialui/stepper/stepper.theme.js +1 -1
- package/cjs/materialui/stepper/stepper.theme.js.map +1 -1
- package/cjs/materialui/table/tablePagination.theme.js +1 -1
- package/cjs/materialui/table/tablePagination.theme.js.map +1 -1
- package/{materialui/tabs/scrollButtonComponent.d.ts → cjs/materialui/tabs/ScrollButton.d.ts} +2 -1
- package/cjs/materialui/tabs/ScrollButton.js +2 -0
- package/cjs/materialui/tabs/ScrollButton.js.map +1 -0
- package/{materialui/tabs/tabComponent.d.ts → cjs/materialui/tabs/Tab.d.ts} +1 -1
- package/cjs/materialui/tabs/Tab.js +2 -0
- package/cjs/materialui/tabs/Tab.js.map +1 -0
- package/cjs/materialui/tabs/{tabPanel.d.ts → TabPanel.d.ts} +0 -4
- package/cjs/materialui/tabs/{tabPanel.js → TabPanel.js} +2 -2
- package/cjs/materialui/tabs/TabPanel.js.map +1 -0
- package/cjs/materialui/tabs/index.d.ts +3 -3
- package/cjs/materialui/tabs/tab.theme.js +1 -1
- package/cjs/materialui/tabs/tab.theme.js.map +1 -1
- package/cjs/materialui/tabs/tabs.theme.js +1 -1
- package/cjs/materialui/tabs/tabs.theme.js.map +1 -1
- package/cjs/materialui/textfield/textField.theme.js +1 -1
- package/cjs/materialui/textfield/textField.theme.js.map +1 -1
- package/cjs/materialui/theme/mixins.d.ts +2 -0
- package/cjs/materialui/theme/mixins.js +2 -0
- package/cjs/materialui/theme/mixins.js.map +1 -0
- package/cjs/materialui/theme/theme.extensions.d.ts +7 -4
- package/cjs/materialui/theme/theme.js +1 -1
- package/cjs/materialui/theme/theme.js.map +1 -1
- package/cjs/node_modules/swiper/modules/keyboard.js +1 -1
- package/cjs/node_modules/swiper/modules/keyboard.js.map +1 -1
- package/cjs/node_modules/swiper/shared/ssr-window.esm.js.map +1 -1
- package/cjs/node_modules/swiper/shared/swiper-core.js +1 -1
- package/cjs/node_modules/swiper/shared/swiper-core.js.map +1 -1
- package/cjs/node_modules/swiper/swiper-react.js.map +1 -1
- package/cjs/organisms/cardPhotoFixed/cardPhotoFixed.js +1 -1
- package/cjs/organisms/cardPhotoFixed/cardPhotoFixed.js.map +1 -1
- package/cjs/organisms/carousel/styledComponents/styledCarouselHorizontal.d.ts +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.d.ts +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/galleryCarousel/galleryCarousel.js +1 -1
- package/cjs/organisms/carousel2/galleryCarousel/galleryCarousel.js.map +1 -1
- package/cjs/organisms/carousel2/galleryCarousel/galleryCarouselItem.js +1 -1
- package/cjs/organisms/carousel2/galleryCarousel/galleryCarouselItem.js.map +1 -1
- package/cjs/organisms/carousel2/styledComponents/styledCarouselHorizontal.d.ts +1 -1
- package/cjs/organisms/common/menuCardComponent/menuCardComponent.d.ts +1 -2
- package/cjs/organisms/common/menuCardComponent/menuCardComponent.js +1 -1
- package/cjs/organisms/common/menuCardComponent/menuCardComponent.js.map +1 -1
- package/cjs/organisms/index.d.ts +0 -1
- package/cjs/organisms/textCta/textCta.js +1 -1
- package/cjs/organisms/textCta/textCta.js.map +1 -1
- package/cjs/organisms/tile/tile.js +1 -1
- package/cjs/organisms/tile/tile.js.map +1 -1
- package/cjs/production/Button/Button.js +1 -1
- package/cjs/production/Button/Button.js.map +1 -1
- package/components/alert/AlertButton.d.ts +1 -1
- package/components/alert/AlertButton.js +1 -1
- package/components/alert/AlertButton.js.map +1 -1
- package/components/alert/AlertNotificationButton.d.ts +8 -0
- package/components/alert/AlertNotificationButton.js +2 -0
- package/components/alert/AlertNotificationButton.js.map +1 -0
- package/components/alert/index.d.ts +1 -0
- package/components/backdrop/backdrop.d.ts +1 -2
- package/components/backdrop/backdrop.js.map +1 -1
- package/components/banner/BannerButton.d.ts +8 -0
- package/components/banner/BannerButton.js +2 -0
- package/components/banner/BannerButton.js.map +1 -0
- package/components/banner/BannerDismissButton.d.ts +8 -0
- package/components/banner/BannerDismissButton.js +2 -0
- package/components/banner/BannerDismissButton.js.map +1 -0
- package/components/banner/banner.d.ts +1 -1
- package/components/banner/banner.js +1 -1
- package/components/banner/banner.js.map +1 -1
- package/components/banner/index.d.ts +2 -0
- package/components/cardMenu/cardMenu.d.ts +1 -2
- package/components/cardMenu/cardMenu.js.map +1 -1
- package/components/cardMenu/styled/drawerStyled.d.ts +1 -1
- package/components/cardMenu/styled/drawerStyled.js +1 -1
- package/components/cardMenu/styled/drawerStyled.js.map +1 -1
- package/components/cardMenu/styled/popperStyled.d.ts +1 -1
- package/components/cardMenu/styled/popperStyled.js +1 -1
- package/components/cardMenu/styled/popperStyled.js.map +1 -1
- package/components/carousel/navigation.js +1 -1
- package/components/carousel/navigation.js.map +1 -1
- package/components/carousel/pagination.d.ts +5 -1
- package/components/carousel/pagination.js +1 -1
- package/components/carousel/pagination.js.map +1 -1
- package/components/chip/chipFocusVisibleStyled.d.ts +1 -1
- package/components/chip/chipFocusVisibleStyled.js +1 -1
- package/components/chip/chipFocusVisibleStyled.js.map +1 -1
- package/components/common/menuContainer.js +1 -1
- package/components/common/menuContainer.js.map +1 -1
- package/components/common/styled/buttonFocusVisibleStyled.d.ts +1 -1
- package/components/common/styled/buttonFocusVisibleStyled.js +1 -1
- package/components/common/styled/buttonFocusVisibleStyled.js.map +1 -1
- package/components/common/styled/formControlLabelStyled.d.ts +1 -1
- package/components/common/styled/formControlLabelStyled.js +1 -1
- package/components/common/styled/formControlLabelStyled.js.map +1 -1
- package/components/common/styled/helperTextContainerStyled.d.ts +1 -1
- package/components/common/styled/sliderValuesStyled.d.ts +1 -1
- package/components/common/styled/sliderValuesStyled.js +1 -1
- package/components/common/styled/sliderValuesStyled.js.map +1 -1
- package/components/customPickersActionBar/index.js +1 -1
- package/components/customPickersActionBar/index.js.map +1 -1
- package/components/errorContent/ErrorContent.d.ts +48 -0
- package/components/errorContent/ErrorContent.js +2 -0
- package/components/errorContent/ErrorContent.js.map +1 -0
- package/components/footer/Footer.d.ts +32 -0
- package/components/footer/Footer.js +2 -0
- package/components/footer/Footer.js.map +1 -0
- package/components/footer/FooterAccordion.d.ts +29 -0
- package/components/footer/FooterAccordion.js +2 -0
- package/components/footer/FooterAccordion.js.map +1 -0
- package/components/footer/FooterIconButton.d.ts +24 -0
- package/components/footer/FooterIconButton.js +2 -0
- package/components/footer/FooterIconButton.js.map +1 -0
- package/components/footer/FooterLink.d.ts +22 -0
- package/components/footer/FooterLink.js +2 -0
- package/components/footer/FooterLink.js.map +1 -0
- package/components/footer/FooterMenu.d.ts +30 -0
- package/components/footer/FooterMenu.js +2 -0
- package/components/footer/FooterMenu.js.map +1 -0
- package/components/footer/FooterSectionContact.d.ts +24 -0
- package/components/footer/FooterSectionContact.js +2 -0
- package/components/footer/FooterSectionContact.js.map +1 -0
- package/components/footer/FooterSectionLinks.d.ts +34 -0
- package/components/footer/FooterSectionLinks.js +2 -0
- package/components/footer/FooterSectionLinks.js.map +1 -0
- package/components/footer/FooterSectionMenu.d.ts +8 -0
- package/components/footer/FooterSectionMenu.js +2 -0
- package/components/footer/FooterSectionMenu.js.map +1 -0
- package/{cjs/layout/Footer → components/footer}/index.d.ts +4 -5
- package/components/grid/grid.d.ts +3 -100
- package/components/grid/grid.js.map +1 -1
- package/components/header/Header.d.ts +79 -0
- package/components/header/Header.js +2 -0
- package/components/header/Header.js.map +1 -0
- package/components/header/HeaderButton.d.ts +54 -0
- package/components/header/HeaderButton.js +2 -0
- package/components/header/HeaderButton.js.map +1 -0
- package/components/header/HeaderLanguageSelect.d.ts +45 -0
- package/components/header/HeaderLanguageSelect.js +2 -0
- package/components/header/HeaderLanguageSelect.js.map +1 -0
- package/components/header/HeaderLogo.d.ts +25 -0
- package/components/header/HeaderLogo.js +2 -0
- package/components/header/HeaderLogo.js.map +1 -0
- package/components/header/HeaderNavigationHero.d.ts +51 -0
- package/components/header/HeaderNavigationHero.js +2 -0
- package/components/header/HeaderNavigationHero.js.map +1 -0
- package/components/header/HeaderNavigationLink.d.ts +48 -0
- package/components/header/HeaderNavigationLink.js +2 -0
- package/components/header/HeaderNavigationLink.js.map +1 -0
- package/components/header/HeaderNavigationMenu.d.ts +25 -0
- package/components/header/HeaderNavigationMenu.js +2 -0
- package/components/header/HeaderNavigationMenu.js.map +1 -0
- package/{cjs/layout/Header → components/header}/index.d.ts +2 -6
- package/components/icon/filled/BatteryDischargeFilledIcon.d.ts +6 -0
- package/components/icon/filled/BatteryDischargeFilledIcon.js +2 -0
- package/components/icon/filled/BatteryDischargeFilledIcon.js.map +1 -0
- package/components/icon/filled/BicycleFilledIcon.d.ts +6 -0
- package/components/icon/filled/BicycleFilledIcon.js +2 -0
- package/components/icon/filled/BicycleFilledIcon.js.map +1 -0
- package/components/icon/filled/BoltDischargeFilledIcon.d.ts +6 -0
- package/components/icon/filled/BoltDischargeFilledIcon.js +2 -0
- package/components/icon/filled/BoltDischargeFilledIcon.js.map +1 -0
- package/components/icon/filled/BoltOffFilledIcon.d.ts +6 -0
- package/components/icon/filled/BoltOffFilledIcon.js +2 -0
- package/components/icon/filled/BoltOffFilledIcon.js.map +1 -0
- package/components/icon/filled/index.d.ts +4 -0
- package/components/icon/icon.definitions.js +1 -1
- package/components/icon/icon.definitions.js.map +1 -1
- package/components/icon/stroke/BatteryDischargeIcon.d.ts +6 -0
- package/components/icon/stroke/BatteryDischargeIcon.js +2 -0
- package/components/icon/stroke/BatteryDischargeIcon.js.map +1 -0
- package/components/icon/stroke/BicycleIcon.d.ts +6 -0
- package/components/icon/stroke/BicycleIcon.js +2 -0
- package/components/icon/stroke/BicycleIcon.js.map +1 -0
- package/components/icon/stroke/BoltDischargeIcon.d.ts +6 -0
- package/components/icon/stroke/BoltDischargeIcon.js +2 -0
- package/components/icon/stroke/BoltDischargeIcon.js.map +1 -0
- package/components/icon/stroke/BoltOffIcon.d.ts +6 -0
- package/components/icon/stroke/BoltOffIcon.js +2 -0
- package/components/icon/stroke/BoltOffIcon.js.map +1 -0
- package/components/icon/stroke/index.d.ts +4 -0
- package/components/index.d.ts +6 -0
- package/components/label/label.d.ts +1 -1
- package/components/label/label.js +1 -1
- package/components/label/label.js.map +1 -1
- package/components/logo/Logo.d.ts +51 -15
- package/components/logo/Logo.js +1 -1
- package/components/logo/Logo.js.map +1 -1
- package/components/mobileStepper/mobileStepperButton.js +1 -1
- package/components/mobileStepper/mobileStepperButton.js.map +1 -1
- package/components/notification/Notification.d.ts +81 -0
- package/components/notification/Notification.js +2 -0
- package/components/notification/Notification.js.map +1 -0
- package/components/notification/NotificationButton.d.ts +8 -0
- package/components/notification/NotificationButton.js +2 -0
- package/components/notification/NotificationButton.js.map +1 -0
- package/components/notification/NotificationCenter.d.ts +53 -0
- package/components/notification/NotificationCenter.js +2 -0
- package/components/notification/NotificationCenter.js.map +1 -0
- package/components/notification/NotificationCenterCategory.d.ts +24 -0
- package/components/notification/NotificationCenterCategory.js +2 -0
- package/components/notification/NotificationCenterCategory.js.map +1 -0
- package/components/notification/NotificationCenterHeaderButton.d.ts +51 -0
- package/components/notification/NotificationCenterHeaderButton.js +2 -0
- package/components/notification/NotificationCenterHeaderButton.js.map +1 -0
- package/{organisms → components}/notification/index.d.ts +1 -0
- package/{layout/PageLayout → components/pageLayout}/PageLayout.d.ts +25 -11
- package/components/pageLayout/PageLayout.js +2 -0
- package/components/pageLayout/PageLayout.js.map +1 -0
- package/components/pagination/pagination.d.ts +14 -61
- package/components/pagination/pagination.js +1 -1
- package/components/pagination/pagination.js.map +1 -1
- package/components/search/search.js +1 -1
- package/components/search/search.js.map +1 -1
- package/components/secondaryNavigation/SecondaryNavigation.d.ts +51 -0
- package/components/secondaryNavigation/SecondaryNavigation.js +2 -0
- package/components/secondaryNavigation/SecondaryNavigation.js.map +1 -0
- package/components/secondaryNavigation/SecondaryNavigationCta.d.ts +8 -0
- package/components/secondaryNavigation/SecondaryNavigationCta.js +2 -0
- package/components/secondaryNavigation/SecondaryNavigationCta.js.map +1 -0
- package/components/secondaryNavigation/SecondaryNavigationItem.d.ts +21 -0
- package/components/secondaryNavigation/SecondaryNavigationItem.js +2 -0
- package/components/secondaryNavigation/SecondaryNavigationItem.js.map +1 -0
- package/components/segmentedControls/{segmentedControls.js → SegmentedControls.js} +1 -1
- package/components/segmentedControls/{segmentedControls.js.map → SegmentedControls.js.map} +1 -1
- package/components/segmentedControls/index.d.ts +1 -1
- package/components/stepper/model.d.ts +1 -3
- package/components/stepper/model.js.map +1 -1
- package/components/textAndCta/textAndCta.js +1 -1
- package/components/textAndCta/textAndCta.js.map +1 -1
- package/components/upload/UploadPreviewList.js +1 -1
- package/components/upload/UploadPreviewList.js.map +1 -1
- package/index.js +1 -1
- package/layout/index.d.ts +0 -5
- package/materialui/accordion/AccordionSummaryExpandIcon.js +1 -1
- package/materialui/accordion/AccordionSummaryExpandIcon.js.map +1 -1
- package/materialui/accordion/accordion.theme.js +1 -1
- package/materialui/accordion/accordion.theme.js.map +1 -1
- package/materialui/accordion/accordionSummary.theme.js +1 -1
- package/materialui/accordion/accordionSummary.theme.js.map +1 -1
- package/materialui/alert/alert.theme.js +1 -1
- package/materialui/alert/alert.theme.js.map +1 -1
- package/materialui/appbar/appbar.theme.js +1 -1
- package/materialui/appbar/appbar.theme.js.map +1 -1
- package/materialui/appbar/toolbar.theme.d.ts +3 -0
- package/materialui/appbar/toolbar.theme.js +2 -0
- package/materialui/appbar/toolbar.theme.js.map +1 -0
- package/materialui/button/button.theme.js +1 -1
- package/materialui/button/button.theme.js.map +1 -1
- package/materialui/button/interactive.d.ts +2 -1
- package/materialui/button/interactive.js +1 -1
- package/materialui/button/interactive.js.map +1 -1
- package/materialui/card/Card.js +1 -1
- package/materialui/card/Card.js.map +1 -1
- package/materialui/card/FlippingCardContent.d.ts +2 -2
- package/materialui/card/FlippingCardContent.js +1 -1
- package/materialui/card/FlippingCardContent.js.map +1 -1
- package/materialui/card/card.theme.js +1 -1
- package/materialui/card/card.theme.js.map +1 -1
- package/materialui/chip/chip.theme.js +1 -1
- package/materialui/chip/chip.theme.js.map +1 -1
- package/materialui/container/container.theme.d.ts +5 -1
- package/materialui/container/container.theme.js +1 -1
- package/materialui/container/container.theme.js.map +1 -1
- package/materialui/fab/fab.theme.js +1 -1
- package/materialui/fab/fab.theme.js.map +1 -1
- package/materialui/iconButton/iconButton.theme.js +1 -1
- package/materialui/iconButton/iconButton.theme.js.map +1 -1
- package/materialui/pagination/pagination.theme.d.ts +0 -1
- package/materialui/pagination/pagination.theme.js +1 -1
- package/materialui/pagination/pagination.theme.js.map +1 -1
- package/materialui/pagination/paginationItem.theme.d.ts +3 -0
- package/materialui/pagination/paginationItem.theme.js +2 -0
- package/materialui/pagination/paginationItem.theme.js.map +1 -0
- package/materialui/rating/index.d.ts +2 -0
- package/materialui/rating/rating.theme.d.ts +3 -0
- package/materialui/rating/rating.theme.js +2 -0
- package/materialui/rating/rating.theme.js.map +1 -0
- package/materialui/skeleton/skeleton.theme.js +1 -1
- package/materialui/skeleton/skeleton.theme.js.map +1 -1
- package/materialui/slider/sliderValues.js +1 -1
- package/materialui/slider/sliderValues.js.map +1 -1
- package/materialui/stepper/StepLabelIcon.js +1 -1
- package/materialui/stepper/StepLabelIcon.js.map +1 -1
- package/materialui/stepper/stepper.theme.js +1 -1
- package/materialui/stepper/stepper.theme.js.map +1 -1
- package/materialui/table/tablePagination.theme.js +1 -1
- package/materialui/table/tablePagination.theme.js.map +1 -1
- package/{cjs/materialui/tabs/scrollButtonComponent.d.ts → materialui/tabs/ScrollButton.d.ts} +2 -1
- package/materialui/tabs/ScrollButton.js +2 -0
- package/materialui/tabs/ScrollButton.js.map +1 -0
- package/{cjs/materialui/tabs/tabComponent.d.ts → materialui/tabs/Tab.d.ts} +1 -1
- package/materialui/tabs/Tab.js +2 -0
- package/materialui/tabs/Tab.js.map +1 -0
- package/materialui/tabs/{tabPanel.d.ts → TabPanel.d.ts} +0 -4
- package/materialui/tabs/TabPanel.js +2 -0
- package/materialui/tabs/TabPanel.js.map +1 -0
- package/materialui/tabs/index.d.ts +3 -3
- package/materialui/tabs/tab.theme.js +1 -1
- package/materialui/tabs/tab.theme.js.map +1 -1
- package/materialui/tabs/tabs.theme.js +1 -1
- package/materialui/tabs/tabs.theme.js.map +1 -1
- package/materialui/textfield/textField.theme.js +1 -1
- package/materialui/textfield/textField.theme.js.map +1 -1
- package/materialui/theme/mixins.d.ts +2 -0
- package/materialui/theme/mixins.js +2 -0
- package/materialui/theme/mixins.js.map +1 -0
- package/materialui/theme/theme.extensions.d.ts +7 -4
- package/materialui/theme/theme.js +1 -1
- package/materialui/theme/theme.js.map +1 -1
- package/organisms/cardPhotoFixed/cardPhotoFixed.js +1 -1
- package/organisms/cardPhotoFixed/cardPhotoFixed.js.map +1 -1
- package/organisms/carousel/styledComponents/styledCarouselHorizontal.d.ts +1 -1
- package/organisms/carousel/styledComponents/styledCarouselHorizontal.js +1 -1
- package/organisms/carousel/styledComponents/styledCarouselHorizontal.js.map +1 -1
- package/organisms/carousel/styledComponents/styledCarouselVertical.d.ts +1 -1
- package/organisms/carousel/styledComponents/styledCarouselVertical.js +1 -1
- package/organisms/carousel/styledComponents/styledCarouselVertical.js.map +1 -1
- package/organisms/carousel2/galleryCarousel/galleryCarousel.js +1 -1
- package/organisms/carousel2/galleryCarousel/galleryCarousel.js.map +1 -1
- package/organisms/carousel2/galleryCarousel/galleryCarouselItem.js +1 -1
- package/organisms/carousel2/galleryCarousel/galleryCarouselItem.js.map +1 -1
- package/organisms/carousel2/styledComponents/styledCarouselHorizontal.d.ts +1 -1
- package/organisms/common/menuCardComponent/menuCardComponent.d.ts +1 -2
- package/organisms/common/menuCardComponent/menuCardComponent.js +1 -1
- package/organisms/common/menuCardComponent/menuCardComponent.js.map +1 -1
- package/organisms/index.d.ts +0 -1
- package/organisms/textCta/textCta.js +1 -1
- package/organisms/textCta/textCta.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/production/Button/Button.js +1 -1
- package/production/Button/Button.js.map +1 -1
- package/cjs/layout/Error/ErrorContent.d.ts +0 -33
- package/cjs/layout/Error/ErrorContent.js +0 -2
- package/cjs/layout/Error/ErrorContent.js.map +0 -1
- package/cjs/layout/Footer/Footer.d.ts +0 -5
- package/cjs/layout/Footer/Footer.js +0 -2
- package/cjs/layout/Footer/Footer.js.map +0 -1
- package/cjs/layout/Footer/FooterAccordion.d.ts +0 -18
- package/cjs/layout/Footer/FooterAccordion.js +0 -2
- package/cjs/layout/Footer/FooterAccordion.js.map +0 -1
- package/cjs/layout/Footer/FooterIconButton.d.ts +0 -20
- package/cjs/layout/Footer/FooterIconButton.js +0 -2
- package/cjs/layout/Footer/FooterIconButton.js.map +0 -1
- package/cjs/layout/Footer/FooterLink.d.ts +0 -15
- package/cjs/layout/Footer/FooterLink.js +0 -2
- package/cjs/layout/Footer/FooterLink.js.map +0 -1
- package/cjs/layout/Footer/FooterMenu.d.ts +0 -25
- package/cjs/layout/Footer/FooterMenu.js +0 -2
- package/cjs/layout/Footer/FooterMenu.js.map +0 -1
- package/cjs/layout/Footer/FooterSectionContact.d.ts +0 -18
- package/cjs/layout/Footer/FooterSectionContact.js +0 -2
- package/cjs/layout/Footer/FooterSectionContact.js.map +0 -1
- package/cjs/layout/Footer/FooterSectionLinks.d.ts +0 -25
- package/cjs/layout/Footer/FooterSectionLinks.js +0 -2
- package/cjs/layout/Footer/FooterSectionLinks.js.map +0 -1
- package/cjs/layout/Footer/FooterSectionMenu.d.ts +0 -9
- package/cjs/layout/Footer/FooterSectionMenu.js +0 -2
- package/cjs/layout/Footer/FooterSectionMenu.js.map +0 -1
- package/cjs/layout/Footer/PredefinedFooterIconButtons.d.ts +0 -8
- package/cjs/layout/Footer/PredefinedFooterIconButtons.js +0 -2
- package/cjs/layout/Footer/PredefinedFooterIconButtons.js.map +0 -1
- package/cjs/layout/Footer/assets/FacebookIcon.d.ts +0 -1
- package/cjs/layout/Footer/assets/FacebookIcon.js +0 -2
- package/cjs/layout/Footer/assets/FacebookIcon.js.map +0 -1
- package/cjs/layout/Footer/assets/InstagramIcon.d.ts +0 -1
- package/cjs/layout/Footer/assets/InstagramIcon.js +0 -2
- package/cjs/layout/Footer/assets/InstagramIcon.js.map +0 -1
- package/cjs/layout/Footer/assets/LinkedinIcon.d.ts +0 -1
- package/cjs/layout/Footer/assets/LinkedinIcon.js +0 -2
- package/cjs/layout/Footer/assets/LinkedinIcon.js.map +0 -1
- package/cjs/layout/Footer/assets/TwitterIcon.d.ts +0 -1
- package/cjs/layout/Footer/assets/TwitterIcon.js +0 -2
- package/cjs/layout/Footer/assets/TwitterIcon.js.map +0 -1
- package/cjs/layout/Footer/assets/YoutubeIcon.d.ts +0 -1
- package/cjs/layout/Footer/assets/YoutubeIcon.js +0 -2
- package/cjs/layout/Footer/assets/YoutubeIcon.js.map +0 -1
- package/cjs/layout/Footer/assets/index.d.ts +0 -5
- package/cjs/layout/Header/Header.d.ts +0 -35
- package/cjs/layout/Header/Header.js +0 -2
- package/cjs/layout/Header/Header.js.map +0 -1
- package/cjs/layout/Header/HeaderButton.d.ts +0 -23
- package/cjs/layout/Header/HeaderButton.js +0 -2
- package/cjs/layout/Header/HeaderButton.js.map +0 -1
- package/cjs/layout/Header/HeaderContext.d.ts +0 -14
- package/cjs/layout/Header/HeaderContext.js +0 -2
- package/cjs/layout/Header/HeaderContext.js.map +0 -1
- package/cjs/layout/Header/HeaderLanguageSelect.d.ts +0 -12
- package/cjs/layout/Header/HeaderLanguageSelect.js +0 -2
- package/cjs/layout/Header/HeaderLanguageSelect.js.map +0 -1
- package/cjs/layout/Header/HeaderLogo.d.ts +0 -9
- package/cjs/layout/Header/HeaderLogo.js +0 -2
- package/cjs/layout/Header/HeaderLogo.js.map +0 -1
- package/cjs/layout/Header/HeaderNavigationHero.d.ts +0 -6
- package/cjs/layout/Header/HeaderNavigationHero.js +0 -2
- package/cjs/layout/Header/HeaderNavigationHero.js.map +0 -1
- package/cjs/layout/Header/HeaderNavigationLink.d.ts +0 -34
- package/cjs/layout/Header/HeaderNavigationLink.js +0 -2
- package/cjs/layout/Header/HeaderNavigationLink.js.map +0 -1
- package/cjs/layout/Header/HeaderNavigationLinkLabel.d.ts +0 -13
- package/cjs/layout/Header/HeaderNavigationLinkLabel.js +0 -2
- package/cjs/layout/Header/HeaderNavigationLinkLabel.js.map +0 -1
- package/cjs/layout/Header/HeaderNavigationMenu.d.ts +0 -42
- package/cjs/layout/Header/HeaderNavigationMenu.js +0 -2
- package/cjs/layout/Header/HeaderNavigationMenu.js.map +0 -1
- package/cjs/layout/Header/HeaderOverheadItem.d.ts +0 -13
- package/cjs/layout/Header/HeaderOverheadItem.js +0 -2
- package/cjs/layout/Header/HeaderOverheadItem.js.map +0 -1
- package/cjs/layout/Header/HeaderSkodaLogo.d.ts +0 -8
- package/cjs/layout/Header/HeaderSkodaLogo.js +0 -2
- package/cjs/layout/Header/HeaderSkodaLogo.js.map +0 -1
- package/cjs/layout/Header/PredefinedHeaderButtons.d.ts +0 -18
- package/cjs/layout/Header/PredefinedHeaderButtons.js +0 -2
- package/cjs/layout/Header/PredefinedHeaderButtons.js.map +0 -1
- package/cjs/layout/PageLayout/PageLayout.js +0 -2
- package/cjs/layout/PageLayout/PageLayout.js.map +0 -1
- package/cjs/layout/SecondaryNavigation/SecondaryNavigation.d.ts +0 -10
- package/cjs/layout/SecondaryNavigation/SecondaryNavigation.js +0 -2
- package/cjs/layout/SecondaryNavigation/SecondaryNavigation.js.map +0 -1
- package/cjs/layout/SecondaryNavigation/SecondaryNavigationCta.d.ts +0 -3
- package/cjs/layout/SecondaryNavigation/SecondaryNavigationCta.js +0 -2
- package/cjs/layout/SecondaryNavigation/SecondaryNavigationCta.js.map +0 -1
- package/cjs/layout/SecondaryNavigation/SecondaryNavigationItem.d.ts +0 -13
- package/cjs/layout/SecondaryNavigation/SecondaryNavigationItem.js +0 -2
- package/cjs/layout/SecondaryNavigation/SecondaryNavigationItem.js.map +0 -1
- package/cjs/materialui/tabs/scrollButtonComponent.js +0 -2
- package/cjs/materialui/tabs/scrollButtonComponent.js.map +0 -1
- package/cjs/materialui/tabs/tabComponent.js +0 -2
- package/cjs/materialui/tabs/tabComponent.js.map +0 -1
- package/cjs/materialui/tabs/tabPanel.js.map +0 -1
- package/cjs/organisms/notification/Notification.d.ts +0 -11
- package/cjs/organisms/notification/Notification.js +0 -2
- package/cjs/organisms/notification/Notification.js.map +0 -1
- package/cjs/organisms/notification/NotificationCenter.d.ts +0 -8
- package/cjs/organisms/notification/NotificationCenter.js +0 -2
- package/cjs/organisms/notification/NotificationCenter.js.map +0 -1
- package/cjs/organisms/notification/NotificationCenterCategory.d.ts +0 -5
- package/cjs/organisms/notification/NotificationCenterCategory.js +0 -2
- package/cjs/organisms/notification/NotificationCenterCategory.js.map +0 -1
- package/cjs/organisms/notification/NotificationCenterHeaderButton.d.ts +0 -6
- package/cjs/organisms/notification/NotificationCenterHeaderButton.js +0 -2
- package/cjs/organisms/notification/NotificationCenterHeaderButton.js.map +0 -1
- package/layout/Error/ErrorContent.d.ts +0 -33
- package/layout/Error/ErrorContent.js +0 -2
- package/layout/Error/ErrorContent.js.map +0 -1
- package/layout/Footer/Footer.d.ts +0 -5
- package/layout/Footer/Footer.js +0 -2
- package/layout/Footer/Footer.js.map +0 -1
- package/layout/Footer/FooterAccordion.d.ts +0 -18
- package/layout/Footer/FooterAccordion.js +0 -2
- package/layout/Footer/FooterAccordion.js.map +0 -1
- package/layout/Footer/FooterIconButton.d.ts +0 -20
- package/layout/Footer/FooterIconButton.js +0 -2
- package/layout/Footer/FooterIconButton.js.map +0 -1
- package/layout/Footer/FooterLink.d.ts +0 -15
- package/layout/Footer/FooterLink.js +0 -2
- package/layout/Footer/FooterLink.js.map +0 -1
- package/layout/Footer/FooterMenu.d.ts +0 -25
- package/layout/Footer/FooterMenu.js +0 -2
- package/layout/Footer/FooterMenu.js.map +0 -1
- package/layout/Footer/FooterSectionContact.d.ts +0 -18
- package/layout/Footer/FooterSectionContact.js +0 -2
- package/layout/Footer/FooterSectionContact.js.map +0 -1
- package/layout/Footer/FooterSectionLinks.d.ts +0 -25
- package/layout/Footer/FooterSectionLinks.js +0 -2
- package/layout/Footer/FooterSectionLinks.js.map +0 -1
- package/layout/Footer/FooterSectionMenu.d.ts +0 -9
- package/layout/Footer/FooterSectionMenu.js +0 -2
- package/layout/Footer/FooterSectionMenu.js.map +0 -1
- package/layout/Footer/PredefinedFooterIconButtons.d.ts +0 -8
- package/layout/Footer/PredefinedFooterIconButtons.js +0 -2
- package/layout/Footer/PredefinedFooterIconButtons.js.map +0 -1
- package/layout/Footer/assets/FacebookIcon.d.ts +0 -1
- package/layout/Footer/assets/FacebookIcon.js +0 -2
- package/layout/Footer/assets/FacebookIcon.js.map +0 -1
- package/layout/Footer/assets/InstagramIcon.d.ts +0 -1
- package/layout/Footer/assets/InstagramIcon.js +0 -2
- package/layout/Footer/assets/InstagramIcon.js.map +0 -1
- package/layout/Footer/assets/LinkedinIcon.d.ts +0 -1
- package/layout/Footer/assets/LinkedinIcon.js +0 -2
- package/layout/Footer/assets/LinkedinIcon.js.map +0 -1
- package/layout/Footer/assets/TwitterIcon.d.ts +0 -1
- package/layout/Footer/assets/TwitterIcon.js +0 -2
- package/layout/Footer/assets/TwitterIcon.js.map +0 -1
- package/layout/Footer/assets/YoutubeIcon.d.ts +0 -1
- package/layout/Footer/assets/YoutubeIcon.js +0 -2
- package/layout/Footer/assets/YoutubeIcon.js.map +0 -1
- package/layout/Footer/assets/index.d.ts +0 -5
- package/layout/Header/Header.d.ts +0 -35
- package/layout/Header/Header.js +0 -2
- package/layout/Header/Header.js.map +0 -1
- package/layout/Header/HeaderButton.d.ts +0 -23
- package/layout/Header/HeaderButton.js +0 -2
- package/layout/Header/HeaderButton.js.map +0 -1
- package/layout/Header/HeaderContext.d.ts +0 -14
- package/layout/Header/HeaderContext.js +0 -2
- package/layout/Header/HeaderContext.js.map +0 -1
- package/layout/Header/HeaderLanguageSelect.d.ts +0 -12
- package/layout/Header/HeaderLanguageSelect.js +0 -2
- package/layout/Header/HeaderLanguageSelect.js.map +0 -1
- package/layout/Header/HeaderLogo.d.ts +0 -9
- package/layout/Header/HeaderLogo.js +0 -2
- package/layout/Header/HeaderLogo.js.map +0 -1
- package/layout/Header/HeaderNavigationHero.d.ts +0 -6
- package/layout/Header/HeaderNavigationHero.js +0 -2
- package/layout/Header/HeaderNavigationHero.js.map +0 -1
- package/layout/Header/HeaderNavigationLink.d.ts +0 -34
- package/layout/Header/HeaderNavigationLink.js +0 -2
- package/layout/Header/HeaderNavigationLink.js.map +0 -1
- package/layout/Header/HeaderNavigationLinkLabel.d.ts +0 -13
- package/layout/Header/HeaderNavigationLinkLabel.js +0 -2
- package/layout/Header/HeaderNavigationLinkLabel.js.map +0 -1
- package/layout/Header/HeaderNavigationMenu.d.ts +0 -42
- package/layout/Header/HeaderNavigationMenu.js +0 -2
- package/layout/Header/HeaderNavigationMenu.js.map +0 -1
- package/layout/Header/HeaderOverheadItem.d.ts +0 -13
- package/layout/Header/HeaderOverheadItem.js +0 -2
- package/layout/Header/HeaderOverheadItem.js.map +0 -1
- package/layout/Header/HeaderSkodaLogo.d.ts +0 -8
- package/layout/Header/HeaderSkodaLogo.js +0 -2
- package/layout/Header/HeaderSkodaLogo.js.map +0 -1
- package/layout/Header/PredefinedHeaderButtons.d.ts +0 -18
- package/layout/Header/PredefinedHeaderButtons.js +0 -2
- package/layout/Header/PredefinedHeaderButtons.js.map +0 -1
- package/layout/PageLayout/PageLayout.js +0 -2
- package/layout/PageLayout/PageLayout.js.map +0 -1
- package/layout/SecondaryNavigation/SecondaryNavigation.d.ts +0 -10
- package/layout/SecondaryNavigation/SecondaryNavigation.js +0 -2
- package/layout/SecondaryNavigation/SecondaryNavigation.js.map +0 -1
- package/layout/SecondaryNavigation/SecondaryNavigationCta.d.ts +0 -3
- package/layout/SecondaryNavigation/SecondaryNavigationCta.js +0 -2
- package/layout/SecondaryNavigation/SecondaryNavigationCta.js.map +0 -1
- package/layout/SecondaryNavigation/SecondaryNavigationItem.d.ts +0 -13
- package/layout/SecondaryNavigation/SecondaryNavigationItem.js +0 -2
- package/layout/SecondaryNavigation/SecondaryNavigationItem.js.map +0 -1
- package/materialui/tabs/scrollButtonComponent.js +0 -2
- package/materialui/tabs/scrollButtonComponent.js.map +0 -1
- package/materialui/tabs/tabComponent.js +0 -2
- package/materialui/tabs/tabComponent.js.map +0 -1
- package/materialui/tabs/tabPanel.js +0 -2
- package/materialui/tabs/tabPanel.js.map +0 -1
- package/organisms/notification/Notification.d.ts +0 -11
- package/organisms/notification/Notification.js +0 -2
- package/organisms/notification/Notification.js.map +0 -1
- package/organisms/notification/NotificationCenter.d.ts +0 -8
- package/organisms/notification/NotificationCenter.js +0 -2
- package/organisms/notification/NotificationCenter.js.map +0 -1
- package/organisms/notification/NotificationCenterCategory.d.ts +0 -5
- package/organisms/notification/NotificationCenterCategory.js +0 -2
- package/organisms/notification/NotificationCenterCategory.js.map +0 -1
- package/organisms/notification/NotificationCenterHeaderButton.d.ts +0 -6
- package/organisms/notification/NotificationCenterHeaderButton.js +0 -2
- package/organisms/notification/NotificationCenterHeaderButton.js.map +0 -1
- package/cjs/{layout/Error → components/errorContent}/index.d.ts +0 -0
- package/cjs/{layout/PageLayout → components/pageLayout}/index.d.ts +0 -0
- package/cjs/{layout/SecondaryNavigation → components/secondaryNavigation}/index.d.ts +1 -1
- package/cjs/components/segmentedControls/{segmentedControls.d.ts → SegmentedControls.d.ts} +0 -0
- package/{layout/Error → components/errorContent}/index.d.ts +0 -0
- package/{layout/PageLayout → components/pageLayout}/index.d.ts +0 -0
- package/{layout/SecondaryNavigation → components/secondaryNavigation}/index.d.ts +1 -1
- /package/components/segmentedControls/{segmentedControls.d.ts → SegmentedControls.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FooterLink.js","sources":["../../../../../src/components/footer/FooterLink.tsx"],"sourcesContent":["import React, { useMemo, ElementType, FC, forwardRef, ForwardedRef, ReactNode } from 'react';\nimport { Link, LinkProps } from '@mui/material';\nimport { PhoneIcon } from '@/src/components/icon/stroke/PhoneIcon';\nimport { MessageIcon } from '@/src/components/icon/stroke/MessageIcon';\nimport { EditIcon } from '@/src/components/icon/stroke/EditIcon';\n\nexport interface FooterLinkProps extends LinkProps<ElementType> {\n /**\n * Displayed navigation text, can be provided as children as well\n */\n label?: ReactNode;\n /**\n * @deprecated provide icon directly as children next to text (e.g. <PhoneIcon />)\n */\n icon?: 'call' | 'mail' | 'edit' | string;\n}\n\n/**\n * Component to render styled link in the footer\n */\nexport const FooterLink: FC<FooterLinkProps> = forwardRef(({ sx, icon, children, label, ...rest }, ref) => {\n // mapper to previous api\n const Icon = useMemo(() => {\n switch (icon) {\n case 'call':\n return PhoneIcon;\n case 'mail':\n return MessageIcon;\n case 'edit':\n return EditIcon;\n default:\n return undefined;\n }\n }, [icon]);\n\n return (\n <Link\n sx={{\n // icon and text next to each other\n display: 'inline-flex',\n gap: 1.5,\n alignItems: 'center',\n justifyContent: 'flex-start',\n padding: '4px 8px',\n // styling\n '&, &:hover': {\n textDecoration: 'underline',\n color: 'common.white',\n },\n // size of icon\n '& .MuiSvgIcon-root': {\n fontSize: '20px',\n },\n ...sx,\n }}\n variant=\"list\"\n ref={ref as ForwardedRef<HTMLAnchorElement>}\n {...rest}\n >\n {Icon && <Icon />}\n {children || label}\n </Link>\n );\n});\n\nexport interface FooterNavItemProps extends FooterLinkProps {}\n/**\n * @deprecated remove this component, use FooterLink instead\n */\nexport const FooterNavItem: FC<FooterNavItemProps> = forwardRef((props, ref) => {\n return <FooterLink ref={ref} {...props} />;\n});\n"],"names":["FooterLink","forwardRef","_a","ref","sx","icon","children","label","rest","__rest","Icon","useMemo","PhoneIcon","MessageIcon","EditIcon","_jsxs","Link","Object","assign","display","gap","alignItems","justifyContent","padding","textDecoration","color","fontSize","variant","_jsx","jsx","FooterNavItem","props"],"mappings":"6OAoBa,MAAAA,EAAkCC,EAAUA,YAAC,CAACC,EAAwCC,KAAxC,IAAAC,GAAEA,EAAEC,KAAEA,EAAIC,SAAEA,EAAQC,MAAEA,GAAKL,EAAKM,EAAhCC,EAAAA,OAAAP,EAAA,CAAA,KAAA,OAAA,WAAA,UAEzD,MAAMQ,EAAOC,EAAAA,SAAQ,KACnB,OAAQN,GACN,IAAK,OACH,OAAOO,EAASA,UAClB,IAAK,OACH,OAAOC,EAAWA,YACpB,IAAK,OACH,OAAOC,EAAQA,SACjB,QACE,UAEH,CAACT,IAEJ,OACEU,EAAAA,KAACC,EAAAA,KAAIC,OAAAC,OAAA,CACHd,GAAEa,OAAAC,OAAA,CAEAC,QAAS,cACTC,IAAK,IACLC,WAAY,SACZC,eAAgB,aAChBC,QAAS,UAET,aAAc,CACZC,eAAgB,YAChBC,MAAO,gBAGT,qBAAsB,CACpBC,SAAU,SAETtB,GAELuB,QAAQ,OACRxB,IAAKA,GACDK,aAEHE,GAAQkB,EAACC,IAAAnB,EAAO,CAAA,GAChBJ,GAAYC,KACR,IAQEuB,EAAwC7B,EAAUA,YAAC,CAAC8B,EAAO5B,IAC/DyB,EAAAC,IAAC7B,EAAWiB,OAAAC,OAAA,CAAAf,IAAKA,GAAS4B"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React, { FC, ReactNode } from 'react';
|
|
2
|
+
import { FooterAccordionProps } from './FooterAccordion';
|
|
3
|
+
export interface FooterMenuProps extends Omit<FooterAccordionProps, 'variant' | 'children'> {
|
|
4
|
+
/**
|
|
5
|
+
* Main item of Menu
|
|
6
|
+
* @deprecated rename to label
|
|
7
|
+
*/
|
|
8
|
+
mainItem?: React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Items in the menu
|
|
11
|
+
* @depreaceted place links directly as children
|
|
12
|
+
*/
|
|
13
|
+
subItems?: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Items in the menu
|
|
16
|
+
*/
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Variant of the menu
|
|
20
|
+
* - auto: renders on large resolution as list and on mobile as accordion
|
|
21
|
+
* - list: renders as list with title
|
|
22
|
+
* - accordion: renders as collapsible accordion
|
|
23
|
+
* @default auto
|
|
24
|
+
*/
|
|
25
|
+
variant?: 'auto' | 'list' | 'accordion';
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Section for the secondary links, copyright and optional button
|
|
29
|
+
*/
|
|
30
|
+
export declare const FooterMenu: FC<FooterMenuProps>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=require("tslib"),o=require("react/jsx-runtime"),t=require("react"),r=require("@mui/material"),n=require("./FooterAccordion.js");const s=t.forwardRef(((s,a)=>{var{sx:i,children:c,label:u,mainItem:l,accordionSummaryProps:d,subItems:p,contentProps:b,variant:m="auto"}=s,x=e.__rest(s,["sx","children","label","mainItem","accordionSummaryProps","subItems","contentProps","variant"]);const g=null!=b?b:{},{sx:j}=g,f=e.__rest(g,["sx"]),y=null!=d?d:{},{sx:O}=y,h=e.__rest(y,["sx"]),v=r.useTheme(),M=r.useMediaQuery(v.breakpoints.down("lg")),S="auto"===m?M:"accordion"===m,[F,I]=t.useState(!1);return o.jsxs(n.FooterAccordion,Object.assign({ref:a,"data-testid":"FooterMenu",expanded:!S||F,onChange:(e,o)=>I(o),variant:"standard",sx:Object.assign(Object.assign({flexBasis:{lg:"20%"},borderColor:"onSurface.os700"},!S&&{border:"none"}),i),accordionSummaryProps:Object.assign({"data-testid":"FooterMenu.label",sx:Object.assign(Object.assign({padding:"18px 0 8px","& .MuiLink-root":Object.assign(Object.assign({},v.typography.subheadline),{p:0,"&, &:hover":{textDecoration:"none",color:"common.white"}})},!S&&{overflow:"visible","&&:not(.Mui-disabled)":{cursor:"unset"},"& .MuiAccordionSummary-expandIconWrapper":{display:"none"}}),O)},h),label:u||l,contentProps:Object.assign({component:"div","data-testid":"FooterMenu.content",sx:Object.assign({display:"flex",alignItems:"flex-start",justifyContent:"flex-start",flexDirection:"column",gap:1.5,"& .MuiLink-root":Object.assign(Object.assign({},v.typography.caption2),{p:0,"&, &:hover":{textDecoration:"none",color:"onSurface.os200"}})},j)},f)},x,{children:[c,p]}),`${S}`)}));exports.FooterMenu=s;
|
|
2
|
+
//# sourceMappingURL=FooterMenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FooterMenu.js","sources":["../../../../../src/components/footer/FooterMenu.tsx"],"sourcesContent":["import React, { FC, forwardRef, ReactNode, useState } from 'react';\nimport { Theme, useMediaQuery, useTheme } from '@mui/material';\nimport { FooterAccordion, FooterAccordionProps } from './FooterAccordion';\n\nexport interface FooterMenuProps extends Omit<FooterAccordionProps, 'variant' | 'children'> {\n /**\n * Main item of Menu\n * @deprecated rename to label\n */\n mainItem?: React.ReactNode;\n /**\n * Items in the menu\n * @depreaceted place links directly as children\n */\n subItems?: ReactNode;\n /**\n * Items in the menu\n */\n children?: React.ReactNode;\n /**\n * Variant of the menu\n * - auto: renders on large resolution as list and on mobile as accordion\n * - list: renders as list with title\n * - accordion: renders as collapsible accordion\n * @default auto\n */\n variant?: 'auto' | 'list' | 'accordion';\n}\n\n/**\n * Section for the secondary links, copyright and optional button\n */\nexport const FooterMenu: FC<FooterMenuProps> = forwardRef(\n (\n { sx, children, label, mainItem, accordionSummaryProps, subItems, contentProps, variant = 'auto', ...rest },\n ref,\n ) => {\n const { sx: contentSx, ...restContent } = contentProps ?? {};\n const { sx: accSummarySx, ...restAccSummary } = accordionSummaryProps ?? {};\n const theme = useTheme();\n const downLg = useMediaQuery<Theme>(theme.breakpoints.down('lg'));\n const isAccordion = variant === 'auto' ? downLg : variant === 'accordion';\n const [expanded, setExpanded] = useState(false);\n\n return (\n <FooterAccordion\n key={`${isAccordion}`}\n ref={ref}\n data-testid=\"FooterMenu\"\n expanded={isAccordion ? expanded : true}\n onChange={(_, v) => setExpanded(v)}\n variant=\"standard\"\n sx={{\n // spacing in the FooterSectionMenu, take max 1/5 of space\n flexBasis: { lg: '20%' },\n borderColor: 'onSurface.os700',\n ...(!isAccordion && {\n border: 'none',\n }),\n ...sx,\n }}\n accordionSummaryProps={{\n ['data-testid']: 'FooterMenu.label',\n sx: {\n // adjust proportions to be closer to menu\n padding: '18px 0 8px',\n // manipulates style of links inside\n '& .MuiLink-root': {\n ...theme.typography.subheadline,\n p: 0,\n '&, &:hover': {\n textDecoration: 'none',\n color: 'common.white',\n },\n },\n ...(!isAccordion && {\n // allow overflow of focus ring\n overflow: 'visible',\n // no longer clickable\n '&&:not(.Mui-disabled)': {\n cursor: 'unset',\n },\n // hide icon\n '& .MuiAccordionSummary-expandIconWrapper': {\n display: 'none',\n },\n }),\n ...accSummarySx,\n },\n ...restAccSummary,\n }}\n label={label || mainItem}\n contentProps={{\n component: 'div',\n ['data-testid']: 'FooterMenu.content',\n sx: {\n display: 'flex',\n alignItems: 'flex-start',\n justifyContent: 'flex-start',\n flexDirection: 'column',\n gap: 1.5,\n // manipulates style of links inside\n '& .MuiLink-root': {\n ...theme.typography.caption2,\n p: 0,\n '&, &:hover': {\n textDecoration: 'none',\n color: 'onSurface.os200',\n },\n },\n ...contentSx,\n },\n ...restContent,\n }}\n {...rest}\n >\n {children}\n {subItems}\n </FooterAccordion>\n );\n },\n);\n"],"names":["FooterMenu","forwardRef","_a","ref","sx","children","label","mainItem","accordionSummaryProps","subItems","contentProps","variant","rest","__rest","_b","contentSx","restContent","_c","accSummarySx","restAccSummary","theme","useTheme","downLg","useMediaQuery","breakpoints","down","isAccordion","expanded","setExpanded","useState","_jsxs","FooterAccordion","onChange","_","v","Object","assign","flexBasis","lg","borderColor","border","padding","typography","subheadline","p","textDecoration","color","overflow","cursor","display","component","alignItems","justifyContent","flexDirection","gap","caption2"],"mappings":"mJAgCa,MAAAA,EAAkCC,EAAUA,YACvD,CACEC,EACAC,SADAC,GAAEA,EAAEC,SAAEA,EAAQC,MAAEA,EAAKC,SAAEA,EAAQC,sBAAEA,EAAqBC,SAAEA,EAAQC,aAAEA,EAAYC,QAAEA,EAAU,UAAWC,EAArGC,E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CACZC,eAAgB,OAChBC,MAAO,sBAGR/B,IAEFC,IAEDJ,EAEH,CAAAP,SAAA,CAAAA,EACAI,KAvEI,GAAGiB,IAwEQ"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ElementType, FC, ReactNode } from 'react';
|
|
2
|
+
import { BoxProps } from '@mui/material';
|
|
3
|
+
export interface FooterSectionContactProps extends BoxProps<ElementType> {
|
|
4
|
+
/**
|
|
5
|
+
* Items that should be rendered in left side
|
|
6
|
+
*/
|
|
7
|
+
contactSlot?: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Properties applied to the contact wrapper
|
|
10
|
+
*/
|
|
11
|
+
contactSlotProps?: BoxProps<ElementType>;
|
|
12
|
+
/**
|
|
13
|
+
* Items that should be rendered in right side
|
|
14
|
+
*/
|
|
15
|
+
socialSlot?: ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* Properties applied to the social wrapper
|
|
18
|
+
*/
|
|
19
|
+
socialSlotProps?: BoxProps<ElementType>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Section for the main contact links and social media
|
|
23
|
+
*/
|
|
24
|
+
export declare const FooterSectionContact: FC<FooterSectionContactProps>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var t=require("tslib"),e=require("react/jsx-runtime"),s=require("react"),o=require("@mui/material");const a=s.forwardRef(((s,a)=>{var{sx:l,children:r,className:c,contactSlot:n,contactSlotProps:i,socialSlot:x,socialSlotProps:f}=s,g=t.__rest(s,["sx","children","className","contactSlot","contactSlotProps","socialSlot","socialSlotProps"]);const p=null!=i?i:{},{sx:d}=p,u=t.__rest(p,["sx"]),j=null!=f?f:{},{sx:S}=j,m=t.__rest(j,["sx"]);return e.jsxs(o.Box,Object.assign({sx:Object.assign({display:"flex",alignItems:{xs:"flex-start",lg:"center"},justifyContent:"space-between",flexWrap:"wrap",gap:{xs:4,lg:2},flexDirection:{xs:"column",lg:"row"}},l),ref:a,"data-testid":"FooterSectionContact",className:["FlowSectionContact-root",c].filter(Boolean).join(", ")},g,{children:[e.jsxs(o.Box,Object.assign({sx:Object.assign({display:"flex",alignItems:{xs:"flex-start",lg:"center"},justifyContent:"flex-start",flexWrap:"wrap",gap:2,flexDirection:{xs:"column",lg:"row"}},d),"data-testid":"FooterSectionContact.contact"},u,{children:[r,n]})),e.jsx(o.Box,Object.assign({sx:Object.assign({display:"flex",alignItems:"center",justifyContent:{xs:"flex-start",lg:"flex-end"},flexWrap:"wrap",gap:.5},S),"data-testid":"FooterSectionContact.social"},m,{children:x}))]}))}));exports.FooterSectionContact=a;
|
|
2
|
+
//# sourceMappingURL=FooterSectionContact.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FooterSectionContact.js","sources":["../../../../../src/components/footer/FooterSectionContact.tsx"],"sourcesContent":["import React, { ElementType, FC, forwardRef, ReactNode } from 'react';\nimport { Box, BoxProps } from '@mui/material';\n\nexport interface FooterSectionContactProps extends BoxProps<ElementType> {\n /**\n * Items that should be rendered in left side\n */\n contactSlot?: ReactNode;\n /**\n * Properties applied to the contact wrapper\n */\n contactSlotProps?: BoxProps<ElementType>;\n /**\n * Items that should be rendered in right side\n */\n socialSlot?: ReactNode;\n /**\n * Properties applied to the social wrapper\n */\n socialSlotProps?: BoxProps<ElementType>;\n}\n\n/**\n * Section for the main contact links and social media\n */\nexport const FooterSectionContact: FC<FooterSectionContactProps> = forwardRef(\n ({ sx, children, className, contactSlot, contactSlotProps, socialSlot, socialSlotProps, ...rest }, ref) => {\n const { sx: contactSlotSx, ...restContactSlot } = contactSlotProps ?? {};\n const { sx: socialSlotSx, ...restSocialSlot } = socialSlotProps ?? {};\n\n return (\n <Box\n sx={{\n display: 'flex',\n alignItems: { xs: 'flex-start', lg: 'center' },\n justifyContent: 'space-between',\n flexWrap: 'wrap',\n gap: { xs: 4, lg: 2 },\n flexDirection: { xs: 'column', lg: 'row' },\n ...sx,\n }}\n ref={ref}\n data-testid=\"FooterSectionContact\"\n className={['FlowSectionContact-root', className].filter(Boolean).join(', ')}\n {...rest}\n >\n <Box\n sx={{\n display: 'flex',\n alignItems: { xs: 'flex-start', lg: 'center' },\n justifyContent: 'flex-start',\n flexWrap: 'wrap',\n gap: 2,\n flexDirection: {\n xs: 'column',\n lg: 'row',\n },\n ...contactSlotSx,\n }}\n data-testid=\"FooterSectionContact.contact\"\n {...restContactSlot}\n >\n {children}\n {contactSlot}\n </Box>\n <Box\n sx={{\n display: 'flex',\n alignItems: 'center',\n justifyContent: { xs: 'flex-start', lg: 'flex-end' },\n flexWrap: 'wrap',\n gap: 0.5,\n ...socialSlotSx,\n }}\n data-testid=\"FooterSectionContact.social\"\n {...restSocialSlot}\n >\n {socialSlot}\n </Box>\n </Box>\n );\n },\n);\n"],"names":["FooterSectionContact","forwardRef","_a","ref","sx","children","className","contactSlot","contactSlotProps","socialSlot","socialSlotProps","rest","__rest","_b","contactSlotSx","restContactSlot","_c","socialSlotSx","restSocialSlot","_jsxs","Box","Object","assign","display","alignItems","xs","lg","justifyContent","flexWrap","gap","flexDirection","filter","Boolean","join","_jsx","jsx"],"mappings":"iHAyBa,MAAAA,EAAsDC,EAAUA,YAC3E,CAACC,EAAkGC,KAAlG,IAAAC,GAAEA,EAAEC,SAAEA,EAAQC,UAAEA,EAASC,YAAEA,EAAWC,iBAAEA,EAAgBC,WAAEA,EAAUC,gBAAEA,GAAeR,EAAKS,EAAIC,EAAAA,OAAAV,EAA9F,+FACC,MAAMW,EAA4CL,QAAAA,EAAoB,IAA9DJ,GAAIU,GAA4DD,EAA1CE,EAAxBH,EAAAA,OAAAC,EAAA,CAAA,OACAG,EAA0CN,QAAAA,EAAmB,IAA3DN,GAAIa,GAAyDD,EAAxCE,EAAvBN,EAAAA,OAAAI,EAAA,CAAA,OAEN,OACEG,EAAAA,KAACC,EAAAA,IACCC,OAAAC,OAAA,CAAAlB,GACEiB,OAAAC,OAAA,CAAAC,QAAS,OACTC,WAAY,CAAEC,GAAI,aAAcC,GAAI,UACpCC,eAAgB,gBAChBC,SAAU,OACVC,IAAK,CAAEJ,GAAI,EAAGC,GAAI,GAClBI,cAAe,CAAEL,GAAI,SAAUC,GAAI,QAChCtB,GAELD,IAAKA,EACO,cAAA,uBACZG,UAAW,CAAC,0BAA2BA,GAAWyB,OAAOC,SAASC,KAAK,OACnEtB,EAAI,CAAAN,SAAA,CAERc,EAAAA,KAACC,EAAGA,IACFC,OAAAC,OAAA,CAAAlB,GACEiB,OAAAC,OAAA,CAAAC,QAAS,OACTC,WAAY,CAAEC,GAAI,aAAcC,GAAI,UACpCC,eAAgB,aAChBC,SAAU,OACVC,IAAK,EACLC,cAAe,CACbL,GAAI,SACJC,GAAI,QAEHZ,GAEO,cAAA,gCACRC,aAEHV,EACAE,MAEH2B,EAAAC,IAACf,MACCC,OAAAC,OAAA,CAAAlB,GACEiB,OAAAC,OAAA,CAAAC,QAAS,OACTC,WAAY,SACZG,eAAgB,CAAEF,GAAI,aAAcC,GAAI,YACxCE,SAAU,OACVC,IAAK,IACFZ,GAAY,cAEL,+BACRC,EAAc,CAAAb,SAEjBI,QAEC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React, { ElementType, FC } from 'react';
|
|
2
|
+
import { BoxProps, ButtonProps, TypographyProps } from '@mui/material';
|
|
3
|
+
export interface FooterSectionLinksProps extends BoxProps<ElementType> {
|
|
4
|
+
/**
|
|
5
|
+
* Text wrapped by styled Typography component
|
|
6
|
+
*/
|
|
7
|
+
textSlot?: React.ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Properties applied to text typography
|
|
10
|
+
*/
|
|
11
|
+
textTypographyProps?: TypographyProps<ElementType>;
|
|
12
|
+
/**
|
|
13
|
+
* Alternative to providing button props
|
|
14
|
+
*/
|
|
15
|
+
buttonSlot?: React.ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* Properties applied to button wrapper
|
|
18
|
+
*/
|
|
19
|
+
buttonSlotProps?: BoxProps<ElementType>;
|
|
20
|
+
/**
|
|
21
|
+
* Props for button
|
|
22
|
+
*/
|
|
23
|
+
buttonProps?: ButtonProps & {
|
|
24
|
+
label?: React.ReactNode;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Properties applied to link container
|
|
28
|
+
*/
|
|
29
|
+
linksWrapperProps?: BoxProps<ElementType>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Section for the secondary links, copyright and optional button
|
|
33
|
+
*/
|
|
34
|
+
export declare const FooterSectionLinks: FC<FooterSectionLinksProps>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var t=require("tslib"),e=require("react/jsx-runtime"),s=require("react"),r=require("@mui/material");const o=s.forwardRef(((s,o)=>{var{sx:n,children:i,className:l,textSlot:a,buttonSlot:c,buttonSlotProps:x,textTypographyProps:p,buttonProps:g,linksWrapperProps:u}=s,d=t.__rest(s,["sx","children","className","textSlot","buttonSlot","buttonSlotProps","textTypographyProps","buttonProps","linksWrapperProps"]);const b=null!=p?p:{},{sx:f}=b,j=t.__rest(b,["sx"]),h=null!=u?u:{},{sx:m}=h,y=t.__rest(h,["sx"]),S=null!=x?x:{},{sx:O}=S,k=t.__rest(S,["sx"]),_=null!=g?g:{},{label:w}=_,P=t.__rest(_,["label"]),L=r.useTheme();return e.jsxs(r.Box,Object.assign({sx:Object.assign({display:"flex",alignItems:{xs:"flex-start",lg:"center"},justifyContent:"space-between",flexWrap:"wrap",gap:2,flexDirection:{xs:"column",lg:"row"}},n),ref:o,"data-testid":"FooterSectionLinks",className:["FooterSectionLinks-root",l].filter(Boolean).join(", ")},d,{children:[a&&e.jsx(r.Typography,Object.assign({variant:"disclaimer1",sx:Object.assign(Object.assign({my:{xs:2,lg:0},color:"onSurface.os200"},i&&{display:"inline-flex",alignItems:"center",justifyContent:"flex-start",mr:{lg:2},"&:after":{content:{xs:"none",lg:"''"},display:"block",height:"14px",width:"1px",backgroundColor:"onSurface.os700",ml:4},order:{xs:1,lg:0}}),f),"data-testid":"FooterSectionLinks.text"},j,{children:a})),i&&e.jsx(r.Box,Object.assign({sx:Object.assign({display:"flex",alignItems:{xs:"flex-start",lg:"center"},flexDirection:{xs:"column",lg:"row"},flexWrap:"wrap",flexGrow:"1",gap:{xs:2,lg:3},"& .MuiButton-root":{alignSelf:{xs:"stretch",lg:"auto"}},"& .MuiLink-root":Object.assign(Object.assign({},L.typography.disclaimer1),{p:0,"&, &:hover":{textDecoration:"underline",color:"common.white"}})},m),"data-testid":"FooterSectionLinks.content"},y,{children:i})),(c||w)&&e.jsx(r.Box,Object.assign({"data-testid":"FooterSectionLinks.button",sx:Object.assign({order:2},O)},k,{children:c||e.jsx(r.Button,Object.assign({variant:"shortcut",color:"inherit"},P,{children:w}))}))]}))}));exports.FooterSectionLinks=o;
|
|
2
|
+
//# sourceMappingURL=FooterSectionLinks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FooterSectionLinks.js","sources":["../../../../../src/components/footer/FooterSectionLinks.tsx"],"sourcesContent":["import React, { ElementType, FC, forwardRef } from 'react';\nimport { Box, BoxProps, Button, ButtonProps, Typography, TypographyProps, useTheme } from '@mui/material';\n\nexport interface FooterSectionLinksProps extends BoxProps<ElementType> {\n /**\n * Text wrapped by styled Typography component\n */\n textSlot?: React.ReactNode;\n /**\n * Properties applied to text typography\n */\n textTypographyProps?: TypographyProps<ElementType>;\n /**\n * Alternative to providing button props\n */\n buttonSlot?: React.ReactNode;\n /**\n * Properties applied to button wrapper\n */\n buttonSlotProps?: BoxProps<ElementType>;\n /**\n * Props for button\n */\n buttonProps?: ButtonProps & { label?: React.ReactNode };\n /**\n * Properties applied to link container\n */\n linksWrapperProps?: BoxProps<ElementType>;\n}\n\n/**\n * Section for the secondary links, copyright and optional button\n */\nexport const FooterSectionLinks: FC<FooterSectionLinksProps> = forwardRef(\n (\n {\n sx,\n children,\n className,\n textSlot,\n buttonSlot,\n buttonSlotProps,\n textTypographyProps,\n buttonProps,\n linksWrapperProps,\n ...rest\n },\n ref,\n ) => {\n const { sx: testSx, ...restText } = textTypographyProps ?? {};\n const { sx: linksWrapperSx, ...restLinksWrapper } = linksWrapperProps ?? {};\n const { sx: buttonSlotSx, ...restButtonSlot } = buttonSlotProps ?? {};\n const { label, ...restButton } = buttonProps ?? {};\n const theme = useTheme();\n\n return (\n <Box\n sx={{\n display: 'flex',\n alignItems: { xs: 'flex-start', lg: 'center' },\n justifyContent: 'space-between',\n flexWrap: 'wrap',\n gap: 2,\n flexDirection: { xs: 'column', lg: 'row' },\n ...sx,\n }}\n ref={ref}\n data-testid=\"FooterSectionLinks\"\n className={['FooterSectionLinks-root', className].filter(Boolean).join(', ')}\n {...rest}\n >\n {textSlot && (\n <Typography\n variant=\"disclaimer1\"\n sx={{\n my: { xs: 2, lg: 0 },\n color: 'onSurface.os200',\n ...(children && {\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'flex-start',\n // separator between text and links\n mr: { lg: 2 },\n '&:after': {\n content: { xs: 'none', lg: \"''\" },\n display: 'block',\n height: '14px',\n width: '1px',\n backgroundColor: 'onSurface.os700',\n ml: 4,\n },\n // move after the links on mobile\n order: { xs: 1, lg: 0 },\n }),\n ...testSx,\n }}\n data-testid=\"FooterSectionLinks.text\"\n {...restText}\n >\n {textSlot}\n </Typography>\n )}\n {children && (\n <Box\n sx={{\n display: 'flex',\n alignItems: { xs: 'flex-start', lg: 'center' },\n flexDirection: { xs: 'column', lg: 'row' },\n flexWrap: 'wrap',\n flexGrow: '1',\n gap: { xs: 2, lg: 3 },\n // manipulate style of buttons inside\n '& .MuiButton-root': {\n alignSelf: { xs: 'stretch', lg: 'auto' },\n },\n // manipulates style of links inside\n '& .MuiLink-root': {\n ...theme.typography.disclaimer1,\n p: 0,\n '&, &:hover': {\n textDecoration: 'underline',\n color: 'common.white',\n },\n },\n ...linksWrapperSx,\n }}\n data-testid=\"FooterSectionLinks.content\"\n {...restLinksWrapper}\n >\n {children}\n </Box>\n )}\n {(buttonSlot || label) && (\n <Box data-testid=\"FooterSectionLinks.button\" sx={{ order: 2, ...buttonSlotSx }} {...restButtonSlot}>\n {buttonSlot || (\n <Button variant=\"shortcut\" color=\"inherit\" {...restButton}>\n {label}\n </Button>\n )}\n </Box>\n )}\n </Box>\n );\n },\n);\n"],"names":["FooterSectionLinks","forwardRef","_a","ref","sx","children","className","textSlot","buttonSlot","buttonSlotProps","textTypographyProps","buttonProps","linksWrapperProps","rest","__rest","_b","testSx","restText","_c","linksWrapperSx","restLinksWrapper","_d","buttonSlotSx","restButtonSlot","_e","label","restButton","theme","useTheme","_jsxs","Box","Object","assign","display","alignItems","xs","lg","justifyContent","flexWrap","gap","flexDirection","filter","Boolean","join","_jsx","Typography","variant","my","color","mr","content","height","width","backgroundColor","ml","order","jsx","flexGrow","alignSelf","typography","disclaimer1","p","textDecoration","Button"],"mappings":"iHAiCa,MAAAA,EAAkDC,EAAUA,YACvE,CACEC,EAYAC,SAZAC,GACEA,EAAEC,SACFA,EAAQC,UACRA,EAASC,SACTA,EAAQC,WACRA,EAAUC,gBACVA,EAAeC,oBACfA,EAAmBC,YACnBA,EAAWC,kBACXA,KACGC,EAVLC,EAAAA,OAAAZ,EAAA,CAAA,KAAA,WAAA,YAAA,WAAA,aAAA,kBAAA,sBAAA,cAAA,sBAcA,MAAMa,EAA8BL,QAAAA,EAAuB,IAAnDN,GAAIY,GAAiDD,EAAtCE,EAAjBH,EAAAA,OAAAC,EAAA,CAAA,OACAG,EAA8CN,QAAAA,EAAqB,IAAjER,GAAIe,GAA+DD,EAA5CE,EAAzBN,EAAAA,OAAAI,EAAA,CAAA,OACAG,EAA0CZ,QAAAA,EAAmB,IAA3DL,GAAIkB,GAAyDD,EAAxCE,EAAvBT,EAAAA,OAAAO,EAAA,CAAA,OACAG,EAA2Bb,QAAAA,EAAe,CAAE,GAA5Cc,MAAEA,GAA0CD,EAAhCE,EAAZZ,EAAAA,OAAAU,EAAA,CAAA,UACAG,EAAQC,EAAAA,WAEd,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AAAC,OAAA,CAAA,cAAA,4BAA4B5B,GAAM2B,OAAAC,OAAA,CAAAuB,MAAO,GAAMjC,IAAoBC,EAAc,CAAAlB,SAC/FG,GACCoC,EAAAA,IAACmB,EAAMA,OAAAhC,OAAAC,OAAA,CAACc,QAAQ,WAAWE,MAAM,WAActB,EAC5C,CAAArB,SAAAoB,WAKL"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ElementType, FC } from 'react';
|
|
2
|
+
import { BoxProps } from '@mui/material';
|
|
3
|
+
export interface FooterSectionMenuProps extends BoxProps<ElementType> {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Section for the multiple FooterMenu
|
|
7
|
+
*/
|
|
8
|
+
export declare const FooterSectionMenu: FC<FooterSectionMenuProps>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var t=require("tslib"),e=require("react/jsx-runtime"),o=require("react"),s=require("@mui/material");const r=o.forwardRef(((o,r)=>{var{sx:l,children:c,className:a,contactSlot:i,contactSlotProps:n,socialSlot:x,socialSlotProps:u}=o,S=t.__rest(o,["sx","children","className","contactSlot","contactSlotProps","socialSlot","socialSlotProps"]);return e.jsx(s.Box,Object.assign({sx:Object.assign({display:"flex",alignItems:{xs:"stretch",lg:"flex-start"},justifyContent:"stretch",flexDirection:{xs:"column",lg:"row"},gap:{xs:0,lg:2},mb:{xs:4,lg:8}},l),ref:r,"data-testid":"FooterSectionMenu",className:["FooterSectionMenu-root",a].filter(Boolean).join(", ")},S,{children:c}))}));exports.FooterSectionMenu=r;
|
|
2
|
+
//# sourceMappingURL=FooterSectionMenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FooterSectionMenu.js","sources":["../../../../../src/components/footer/FooterSectionMenu.tsx"],"sourcesContent":["import React, { ElementType, FC, forwardRef } from 'react';\nimport { Box, BoxProps } from '@mui/material';\n\nexport interface FooterSectionMenuProps extends BoxProps<ElementType> {}\n\n/**\n * Section for the multiple FooterMenu\n */\nexport const FooterSectionMenu: FC<FooterSectionMenuProps> = forwardRef(\n ({ sx, children, className, contactSlot, contactSlotProps, socialSlot, socialSlotProps, ...rest }, ref) => {\n return (\n <Box\n sx={{\n display: 'flex',\n alignItems: { xs: 'stretch', lg: 'flex-start' },\n justifyContent: 'stretch',\n flexDirection: { xs: 'column', lg: 'row' },\n gap: { xs: 0, lg: 2 },\n mb: { xs: 4, lg: 8 },\n ...sx,\n }}\n ref={ref}\n data-testid=\"FooterSectionMenu\"\n className={['FooterSectionMenu-root', className].filter(Boolean).join(', ')}\n {...rest}\n >\n {children}\n </Box>\n );\n },\n);\n"],"names":["FooterSectionMenu","forwardRef","_a","ref","sx","children","className","contactSlot","contactSlotProps","socialSlot","socialSlotProps","rest","__rest","_jsx","Box","Object","assign","display","alignItems","xs","lg","justifyContent","flexDirection","gap","mb","filter","Boolean","join"],"mappings":"iHAQa,MAAAA,EAAgDC,EAAUA,YACrE,CAACC,EAAkGC,KAAlG,IAAAC,GAAEA,EAAEC,SAAEA,EAAQC,UAAEA,EAASC,YAAEA,EAAWC,iBAAEA,EAAgBC,WAAEA,EAAUC,gBAAEA,GAAeR,EAAKS,EAAIC,EAAAA,OAAAV,EAA9F,+FACC,OACEW,MAACC,EAAGA,IAAAC,OAAAC,OAAA,CACFZ,GACEW,OAAAC,OAAA,CAAAC,QAAS,OACTC,WAAY,CAAEC,GAAI,UAAWC,GAAI,cACjCC,eAAgB,UAChBC,cAAe,CAAEH,GAAI,SAAUC,GAAI,OACnCG,IAAK,CAAEJ,GAAI,EAAGC,GAAI,GAClBI,GAAI,CAAEL,GAAI,EAAGC,GAAI,IACdhB,GAELD,IAAKA,gBACO,oBACZG,UAAW,CAAC,yBAA0BA,GAAWmB,OAAOC,SAASC,KAAK,OAClEhB,EAEH,CAAAN,SAAAA,IACG"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
export * from './Footer';
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './FooterAccordion';
|
|
2
|
+
export * from './FooterLink';
|
|
4
3
|
export * from './FooterIconButton';
|
|
5
|
-
export * from './
|
|
4
|
+
export * from './FooterAccordion';
|
|
5
|
+
export * from './FooterMenu';
|
|
6
6
|
export * from './FooterSectionContact';
|
|
7
|
-
export * from './FooterSectionMenu';
|
|
8
|
-
export * from './FooterLink';
|
|
9
7
|
export * from './FooterSectionLinks';
|
|
8
|
+
export * from './FooterSectionMenu';
|
|
@@ -1,112 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { ResponsiveStyleValue, SxProps } from '@mui/system';
|
|
4
|
-
import React, { HTMLAttributes, ReactNode } from 'react';
|
|
1
|
+
import { GridProps as MuiGridProps } from '@mui/material';
|
|
2
|
+
import React from 'react';
|
|
5
3
|
/**
|
|
6
4
|
* @interface GridProps
|
|
7
5
|
* @description Base definition of SkodaFlow Grid independent on core implementation.
|
|
8
6
|
* Properties are inherited from HTML Button element
|
|
9
7
|
*/
|
|
10
|
-
export interface GridProps extends
|
|
11
|
-
/**
|
|
12
|
-
* The content of the component.
|
|
13
|
-
*/
|
|
14
|
-
children?: ReactNode;
|
|
15
|
-
/**
|
|
16
|
-
* Override or extend the styles applied to the component.
|
|
17
|
-
* See CSS API below for more details.
|
|
18
|
-
*/
|
|
19
|
-
classes?: object;
|
|
20
|
-
/**
|
|
21
|
-
* The number of columns.
|
|
22
|
-
*/
|
|
23
|
-
columns?: ResponsiveStyleValue<number>;
|
|
24
|
-
/**
|
|
25
|
-
* The component used for the root node.
|
|
26
|
-
* Either a string to use a HTML element or a component.
|
|
27
|
-
*/
|
|
28
|
-
component?: string | ReactNode;
|
|
29
|
-
/**
|
|
30
|
-
* If true, the component will have the flex container behavior.
|
|
31
|
-
* You should be wrapping items with a container.
|
|
32
|
-
*/
|
|
33
|
-
container?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Defines the flex-direction style property.
|
|
36
|
-
* It is applied for all screen sizes.
|
|
37
|
-
* @default 'auto'
|
|
38
|
-
*/
|
|
39
|
-
direction?: ResponsiveStyleValue<GridDirection>;
|
|
40
|
-
/**
|
|
41
|
-
* If true, the component will have the flex item behavior.
|
|
42
|
-
* You should be wrapping items with a container.
|
|
43
|
-
*/
|
|
44
|
-
item?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Defines the number of grids the component is going to use.
|
|
47
|
-
* It's applied for the lg breakpoint and wider screens if not overridden.
|
|
48
|
-
*/
|
|
49
|
-
lg?: boolean | GridSize;
|
|
50
|
-
/**
|
|
51
|
-
* Defines the number of grids the component is going to use.
|
|
52
|
-
* It's applied for the md breakpoint and wider screens if not overridden.
|
|
53
|
-
*/
|
|
54
|
-
md?: boolean | GridSize;
|
|
55
|
-
/**
|
|
56
|
-
* Defines the number of grids the component is going to use.
|
|
57
|
-
* It's applied for the sm breakpoint and wider screens if not overridden.
|
|
58
|
-
*/
|
|
59
|
-
sm?: boolean | GridSize;
|
|
60
|
-
/**
|
|
61
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
62
|
-
* See the `sx` page for more details.
|
|
63
|
-
*/
|
|
64
|
-
sx?: SxProps<Theme>;
|
|
65
|
-
/**
|
|
66
|
-
* Defines the number of grids the component is going to use.
|
|
67
|
-
* It's applied for the xl breakpoint and wider screens.
|
|
68
|
-
*/
|
|
69
|
-
xl?: boolean | GridSize;
|
|
70
|
-
/**
|
|
71
|
-
* Defines the number of grids the component is going to use.
|
|
72
|
-
* It's applied for all the screen sizes with the lowest priority.
|
|
73
|
-
*/
|
|
74
|
-
xs?: boolean | GridSize;
|
|
75
|
-
/**
|
|
76
|
-
* Defines the space between the type item components.
|
|
77
|
-
* It can only be used on a type container component.
|
|
78
|
-
*/
|
|
79
|
-
spacing?: ResponsiveStyleValue<GridSpacing>;
|
|
80
|
-
/**
|
|
81
|
-
* Defines the horizontal space between the type item components.
|
|
82
|
-
* It overrides the value of the spacing prop.
|
|
83
|
-
*/
|
|
84
|
-
columnSpacing?: ResponsiveStyleValue<GridSpacing>;
|
|
85
|
-
/**
|
|
86
|
-
* Defines the vertical space between the type item components.
|
|
87
|
-
* It overrides the value of the spacing prop.
|
|
88
|
-
* If the value provided is a string it will be used as exact amount for pixels spacing.
|
|
89
|
-
* If the value is a number it will be used as (value)*8px.
|
|
90
|
-
*/
|
|
91
|
-
rowSpacing?: ResponsiveStyleValue<GridSpacing>;
|
|
92
|
-
/**
|
|
93
|
-
* Defines the flex-wrap style property.
|
|
94
|
-
* It's applied for all screen sizes.
|
|
95
|
-
*/
|
|
96
|
-
wrap?: 'nowrap' | 'wrap-reverse' | 'wrap';
|
|
97
|
-
/**
|
|
98
|
-
* If true, it sets min-width: 0 on the item.
|
|
99
|
-
* Refer to the limitations section of the documentation to better understand the use case.
|
|
100
|
-
*/
|
|
101
|
-
zeroMinWidth?: boolean;
|
|
8
|
+
export interface GridProps extends MuiGridProps {
|
|
102
9
|
/**
|
|
103
10
|
* Determine if grid is narrow.
|
|
104
11
|
*/
|
|
105
12
|
narrow?: boolean;
|
|
106
|
-
/**
|
|
107
|
-
* Determine the max-width of the container. The container width grows with the size of the screen. Set to false to disable maxWidth.
|
|
108
|
-
*/
|
|
109
|
-
fixed?: boolean;
|
|
110
13
|
}
|
|
111
14
|
/**
|
|
112
15
|
* @description SkodaFlow Grid component.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid.js","sources":["../../../../../src/components/grid/grid.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"grid.js","sources":["../../../../../src/components/grid/grid.tsx"],"sourcesContent":["import { Grid as MuiGrid, GridProps as MuiGridProps } from '@mui/material';\nimport React from 'react';\n\n/**\n * @interface GridProps\n * @description Base definition of SkodaFlow Grid independent on core implementation.\n * Properties are inherited from HTML Button element\n */\nexport interface GridProps extends MuiGridProps {\n /**\n * Determine if grid is narrow.\n */\n narrow?: boolean;\n}\n\n/**\n * @description SkodaFlow Grid component.\n * @param props GridProps\n * @returns React Functional Component\n * @deprecated This component is deprecated. Use Grid and Container components from @mui/material\n */\nexport const Grid: React.FC<GridProps> = ({ narrow, ...props }) => {\n return (\n <MuiGrid {...props} spacing={narrow ? '12px' : undefined}>\n {props.children}\n </MuiGrid>\n );\n};\n"],"names":["_a","narrow","props","__rest","_jsx","MuiGrid","Object","assign","spacing","undefined","children"],"mappings":"2GAqB0CA,IAAA,IAAAC,OAAEA,GAAkBD,EAAPE,EAAKC,EAAAA,OAAAH,EAAlB,YACxC,OACEI,EAAAA,IAACC,EAAAA,KAAOC,OAAAC,OAAA,CAAA,EAAKL,EAAO,CAAAM,QAASP,EAAS,YAASQ,EAASC,SACrDR,EAAMQ,WACC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { FC, ReactNode, ElementType } from 'react';
|
|
2
|
+
import { AppBarProps, BoxProps, Breakpoint, DrawerProps, ToolbarProps } from '@mui/material';
|
|
3
|
+
import { HeaderButtonProps } from './HeaderButton';
|
|
4
|
+
export interface HeaderProps extends Omit<AppBarProps, 'color'> {
|
|
5
|
+
/**
|
|
6
|
+
* Logo component
|
|
7
|
+
*/
|
|
8
|
+
logo?: ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Items in the menu
|
|
11
|
+
* @deprecated place links directly as children
|
|
12
|
+
*/
|
|
13
|
+
navigationItems?: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated no longer has any effect
|
|
16
|
+
*/
|
|
17
|
+
overheadItems?: ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated no longer has any effect
|
|
20
|
+
*/
|
|
21
|
+
color?: 'light' | 'dark';
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated no longer has any effect
|
|
24
|
+
*/
|
|
25
|
+
breakpoint?: Breakpoint;
|
|
26
|
+
/**
|
|
27
|
+
* Wrap the navigation into container
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
inContainer?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* ActionButtons on the right side
|
|
33
|
+
*/
|
|
34
|
+
buttons?: ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* ActionButtons on the right side that stays visible even on mobile
|
|
37
|
+
*/
|
|
38
|
+
visibleButtons?: ReactNode | true;
|
|
39
|
+
/**
|
|
40
|
+
* Properties applied to toolbar container
|
|
41
|
+
*/
|
|
42
|
+
toolbarProps?: ToolbarProps<ElementType>;
|
|
43
|
+
/**
|
|
44
|
+
* Properties applied to logo wrapper
|
|
45
|
+
*/
|
|
46
|
+
logoProps?: BoxProps<ElementType>;
|
|
47
|
+
/**
|
|
48
|
+
* Properties applied to content wrapper
|
|
49
|
+
*/
|
|
50
|
+
contentProps?: BoxProps<ElementType>;
|
|
51
|
+
/**
|
|
52
|
+
* Properties applied to content wrapper in drawer
|
|
53
|
+
*/
|
|
54
|
+
mobileContentProps?: BoxProps<ElementType>;
|
|
55
|
+
/**
|
|
56
|
+
* Properties applied to button wrapper
|
|
57
|
+
*/
|
|
58
|
+
buttonsProps?: BoxProps<ElementType>;
|
|
59
|
+
/**
|
|
60
|
+
* Properties applied to hamburger menu
|
|
61
|
+
*/
|
|
62
|
+
menuButtonProps?: HeaderButtonProps;
|
|
63
|
+
/**
|
|
64
|
+
* Icon of the hamburger menu
|
|
65
|
+
*/
|
|
66
|
+
menuIcon?: ReactNode;
|
|
67
|
+
/**
|
|
68
|
+
* Icon of the close hamburger menu
|
|
69
|
+
*/
|
|
70
|
+
closeMenuIcon?: ReactNode;
|
|
71
|
+
/**
|
|
72
|
+
* Props applied to mobile drawer
|
|
73
|
+
*/
|
|
74
|
+
drawerProps?: DrawerProps;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Component to render Header with navigation and action buttons at the top of the page
|
|
78
|
+
*/
|
|
79
|
+
export declare const Header: FC<HeaderProps>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=require("tslib"),s=require("react/jsx-runtime"),t=require("react"),o=require("@mui/material"),n=require("../icon/stroke/MenuIcon.js"),r=require("../icon/stroke/CloseIcon.js"),i=require("../focusring/focusring.js"),a=require("./HeaderButton.js"),l=require("./HeaderLanguageSelect.js");const c=t.forwardRef(((c,d)=>{var u,p,{children:x,logo:b,navigationItems:g,buttons:j,visibleButtons:m,overheadItems:h,color:f,breakpoint:v,inContainer:O=!1,toolbarProps:y,logoProps:I,contentProps:P,mobileContentProps:_,buttonsProps:k,menuButtonProps:B,menuIcon:C,closeMenuIcon:H,drawerProps:q}=c,w=e.__rest(c,["children","logo","navigationItems","buttons","visibleButtons","overheadItems","color","breakpoint","inContainer","toolbarProps","logoProps","contentProps","mobileContentProps","buttonsProps","menuButtonProps","menuIcon","closeMenuIcon","drawerProps"]);const M=o.useTheme(),S=o.useMediaQuery(M.breakpoints.down("lg")),F=null!=I?I:{},{sx:T}=F,E=e.__rest(F,["sx"]),L=null!=P?P:{},{sx:R}=L,z=e.__rest(L,["sx"]),A=null!=_?_:{},{sx:D}=A,G=e.__rest(A,["sx"]),V=null!=k?k:{},{sx:Q}=V,W=e.__rest(V,["sx"]),$=null!=q?q:{},{sx:J,slotProps:K}=$,N=e.__rest($,["sx","slotProps"]),U=null!=K?K:{},{paper:X,backdrop:Y}=U,Z=e.__rest(U,["paper","backdrop"]),ee=null!==(u=X)&&void 0!==u?u:{},{sx:se}=ee,te=e.__rest(ee,["sx"]),oe=null!==(p=Y)&&void 0!==p?p:{},{sx:ne}=oe,re=e.__rest(oe,["sx"]),[ie,ae]=t.useState(!1),[le,ce]=t.useMemo((()=>{function e(s,o){const n=[];return t.Children.forEach(s,((s,r)=>{(null==s?void 0:s.type)===t.Fragment?n.push(...e(s.props.children,o)):t.isValidElement(s)&&[a.HeaderButton,l.HeaderLanguageSelect].includes(null==s?void 0:s.type)&&o?n.push(t.cloneElement(s,{extend:!0,key:r})):n.push(s)})),(null==n?void 0:n.length)?n:void 0}if(m){const s=!0===m?void 0:e(m,!1),t=e(j,S);return S?[s,t]:[[...s||[],...t||[]],void 0]}return[e(j,!1),void 0]}),[m,j,S]);return s.jsxs(s.Fragment,{children:[s.jsx(o.AppBar,Object.assign({ref:d,"data-testid":"Header"},w,{children:s.jsxs(o.Toolbar,Object.assign({disableGutters:!O},y,{children:[b&&s.jsx(o.Box,Object.assign({"data-testid":"Header.logo",sx:Object.assign({color:"dark"===M.palette.mode?"brand.secondary":"brand.tertiary","& .MuiLink-root":Object.assign(Object.assign({display:"block",position:"relative",py:1},i.getFocusRingStyle(M)),{"&.Mui-focusVisible":{boxShadow:"none"}}),"& .MuiSvgIcon-root":{display:"block"}},T)},E,{children:b})),s.jsx(o.Box,Object.assign({sx:Object.assign(Object.assign(Object.assign({minWidth:"0",flexGrow:"1",alignSelf:"stretch",display:"flex",alignItems:"stretch",justifyContent:"flex-start",gap:{lg:2,xl:4}},!S&&b&&{pl:4}),{mb:"-1px"}),R),"data-testid":"Header.nav"},z,{children:!S&&(x||g)})),(le||S&&(x||g||ce))&&s.jsxs(o.Box,Object.assign({sx:Object.assign({display:"flex",alignItems:"center",justifyContent:"flex-end",gap:.25,mr:{xs:-1,lg:0}},Q),"data-testid":"Header.btns"},W,{children:[le,S&&(x||g||ce)&&s.jsx(a.HeaderButton,Object.assign({"aria-label":"Toggle menu",extend:!1,onClick:()=>ae((e=>!e))},B,{children:ie?H||s.jsx(r.CloseIcon,{}):C||s.jsx(n.MenuIcon,{})}),"menu")]}))]}))})),S&&(x||g||ce)&&s.jsxs(o.Drawer,Object.assign({disablePortal:!0,disableEnforceFocus:!0,disableAutoFocus:!0,anchor:"top",open:ie,onClose:()=>ae(!1),sx:Object.assign({zIndex:M.zIndex.appBar-10,top:M.mixins.toolbar.minHeight,bottom:"auto",height:`calc(100vh - ${M.mixins.toolbar.minHeight})`,position:"absolute"},J),slotProps:Object.assign({backdrop:Object.assign({sx:Object.assign({position:"absolute"},ne)},re),paper:Object.assign({sx:Object.assign({position:"absolute",height:"100%",display:"grid",gridTemplateRows:"auto max-content"},se)},te)},Z)},N,{children:[s.jsx(o.Box,Object.assign({sx:Object.assign({p:2,overflow:"auto"},D),"data-testid":"Header.mobilenav"},G,{children:x||g})),ce&&s.jsx(o.Box,{sx:{p:2,pt:0},children:s.jsx(o.Box,{sx:{pt:.75,display:"flex",flexDirection:"column-reverse",alignItems:"stretch",justifyContent:"flex-start",borderTop:1,borderColor:"dark"===M.palette.mode?"onSurface.os700":"surface.secondary"},children:ce})})]}))]})}));exports.Header=c;
|
|
2
|
+
//# sourceMappingURL=Header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Header.js","sources":["../../../../../src/components/header/Header.tsx"],"sourcesContent":["import React, {\n FC,\n useState,\n forwardRef,\n ReactNode,\n ElementType,\n Children,\n cloneElement,\n useMemo,\n Fragment,\n isValidElement,\n} from 'react';\nimport {\n AppBar,\n AppBarProps,\n BackdropProps,\n Box,\n BoxProps,\n Breakpoint,\n Drawer,\n DrawerProps,\n PaperProps,\n Theme,\n Toolbar,\n ToolbarProps,\n useMediaQuery,\n useTheme,\n} from '@mui/material';\nimport { MenuIcon } from '@/src/components/icon/stroke/MenuIcon';\nimport { CloseIcon } from '@/src/components/icon/stroke/CloseIcon';\nimport { getFocusRingStyle } from '@/src/components/focusring/focusring';\nimport { HeaderButton, HeaderButtonProps } from './HeaderButton';\nimport { HeaderLanguageSelect } from './HeaderLanguageSelect';\n\nexport interface HeaderProps extends Omit<AppBarProps, 'color'> {\n /**\n * Logo component\n */\n logo?: ReactNode;\n /**\n * Items in the menu\n * @deprecated place links directly as children\n */\n navigationItems?: ReactNode;\n /**\n * @deprecated no longer has any effect\n */\n overheadItems?: ReactNode;\n /**\n * @deprecated no longer has any effect\n */\n color?: 'light' | 'dark';\n /**\n * @deprecated no longer has any effect\n */\n breakpoint?: Breakpoint;\n /**\n * Wrap the navigation into container\n * @default false\n */\n inContainer?: boolean;\n /**\n * ActionButtons on the right side\n */\n buttons?: ReactNode;\n /**\n * ActionButtons on the right side that stays visible even on mobile\n */\n visibleButtons?: ReactNode | true;\n /**\n * Properties applied to toolbar container\n */\n toolbarProps?: ToolbarProps<ElementType>;\n /**\n * Properties applied to logo wrapper\n */\n logoProps?: BoxProps<ElementType>;\n /**\n * Properties applied to content wrapper\n */\n contentProps?: BoxProps<ElementType>;\n /**\n * Properties applied to content wrapper in drawer\n */\n mobileContentProps?: BoxProps<ElementType>;\n /**\n * Properties applied to button wrapper\n */\n buttonsProps?: BoxProps<ElementType>;\n /**\n * Properties applied to hamburger menu\n */\n menuButtonProps?: HeaderButtonProps;\n /**\n * Icon of the hamburger menu\n */\n menuIcon?: ReactNode;\n /**\n * Icon of the close hamburger menu\n */\n closeMenuIcon?: ReactNode;\n /**\n * Props applied to mobile drawer\n */\n drawerProps?: DrawerProps;\n}\n\n/**\n * Component to render Header with navigation and action buttons at the top of the page\n */\nexport const Header: FC<HeaderProps> = forwardRef(\n (\n {\n children,\n logo,\n navigationItems,\n buttons,\n visibleButtons,\n overheadItems: _,\n color: __,\n breakpoint: ___,\n inContainer = false,\n toolbarProps,\n logoProps,\n contentProps,\n mobileContentProps,\n buttonsProps,\n menuButtonProps,\n menuIcon,\n closeMenuIcon,\n drawerProps,\n ...rest\n },\n ref,\n ) => {\n const theme = useTheme();\n const downLg = useMediaQuery<Theme>(theme.breakpoints.down('lg'));\n const { sx: logoSx, ...restLogo } = logoProps ?? {};\n const { sx: contentSx, ...restContent } = contentProps ?? {};\n const { sx: mobileContentSx, ...restMobileContent } = mobileContentProps ?? {};\n const { sx: buttonsSx, ...restButtons } = buttonsProps ?? {};\n const { sx: drawerSx, slotProps: drawerSlotProps, ...restDrawer } = drawerProps ?? {};\n const { paper: drawerPaperProps, backdrop: drawerBackdropProps, ...restDrawerSlotProps } = drawerSlotProps ?? {};\n const { sx: drawerPaperSx, ...restDrawerPaper } = (drawerPaperProps as PaperProps) ?? {};\n const { sx: drawerBackdropSx, ...restDrawerBackdrop } = (drawerBackdropProps as BackdropProps) ?? {};\n const [open, setOpen] = useState(false);\n\n /**\n * Process visible buttons\n */\n const [processedButtons, drawerButtons] = useMemo(() => {\n function flatten(nodes, extend) {\n const result = [];\n Children.forEach(nodes, (child, idx) => {\n if (child?.type === Fragment) {\n result.push(...flatten(child.props.children, extend));\n } else if (\n isValidElement(child) &&\n [HeaderButton, HeaderLanguageSelect].includes(child?.type as FC) &&\n extend\n ) {\n result.push(cloneElement(child, { extend: true, key: idx } as HeaderButtonProps));\n } else {\n result.push(child);\n }\n });\n return result?.length ? result : undefined;\n }\n\n // check if we have visibleButtons property\n if (visibleButtons) {\n const flattenedVisibleButtons = visibleButtons === true ? undefined : flatten(visibleButtons, false);\n const flattenedRestButtons = flatten(buttons, downLg);\n // mobile\n if (downLg) {\n // split visible buttons and put buttons in drawer\n return [flattenedVisibleButtons, flattenedRestButtons];\n } else {\n // on PC, all buttons are visible\n return [[...(flattenedVisibleButtons || []), ...(flattenedRestButtons || [])], undefined];\n }\n } else {\n // in case visibleButtons property is not provided, do not put buttons into drawer at all\n return [flatten(buttons, false), undefined];\n }\n }, [visibleButtons, buttons, downLg]);\n\n return (\n <>\n <AppBar ref={ref} data-testid=\"Header\" {...rest}>\n <Toolbar disableGutters={!inContainer} {...toolbarProps}>\n {logo && (\n <Box\n data-testid=\"Header.logo\"\n sx={{\n color: theme.palette.mode === 'dark' ? 'brand.secondary' : 'brand.tertiary',\n // restyle wrapper link, same style is applied in HeaderLogo\n '& .MuiLink-root': {\n display: 'block',\n position: 'relative',\n py: 1,\n // add proper focus ring\n ...getFocusRingStyle(theme),\n // remove default link box shadow\n '&.Mui-focusVisible': {\n boxShadow: 'none',\n },\n },\n '& .MuiSvgIcon-root': {\n display: 'block',\n },\n ...logoSx,\n }}\n {...restLogo}\n >\n {logo}\n </Box>\n )}\n <Box\n sx={{\n minWidth: '0',\n flexGrow: '1',\n alignSelf: 'stretch',\n display: 'flex',\n alignItems: 'stretch',\n justifyContent: 'flex-start',\n gap: { lg: 2, xl: 4 },\n ...(!downLg &&\n logo && {\n // increase size between logo and nav\n pl: 4,\n }),\n // move directly into border\n mb: '-1px',\n ...contentSx,\n }}\n data-testid=\"Header.nav\"\n {...restContent}\n >\n {!downLg && (children || navigationItems)}\n </Box>\n {(processedButtons || (downLg && (children || navigationItems || drawerButtons))) && (\n <Box\n sx={{\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'flex-end',\n gap: 0.25,\n mr: { xs: -1, lg: 0 },\n ...buttonsSx,\n }}\n data-testid=\"Header.btns\"\n {...restButtons}\n >\n {processedButtons}\n {downLg && (children || navigationItems || drawerButtons) && (\n <HeaderButton\n key=\"menu\"\n aria-label=\"Toggle menu\"\n extend={false}\n onClick={() => setOpen((prev) => !prev)}\n {...menuButtonProps}\n >\n {open ? closeMenuIcon || <CloseIcon /> : menuIcon || <MenuIcon />}\n </HeaderButton>\n )}\n </Box>\n )}\n </Toolbar>\n </AppBar>\n {downLg && (children || navigationItems || drawerButtons) && (\n <Drawer\n disablePortal\n disableEnforceFocus\n disableAutoFocus\n anchor=\"top\"\n open={open}\n onClose={() => setOpen(false)}\n sx={{\n // bellow Header, above SecondaryNavigation\n zIndex: theme.zIndex.appBar - 10,\n // header offset\n top: theme.mixins.toolbar.minHeight,\n bottom: 'auto',\n height: `calc(100vh - ${theme.mixins.toolbar.minHeight})`,\n // adjust position\n position: 'absolute',\n ...drawerSx,\n }}\n slotProps={{\n backdrop: {\n sx: {\n position: 'absolute',\n ...drawerBackdropSx,\n },\n ...restDrawerBackdrop,\n },\n paper: {\n sx: {\n position: 'absolute',\n height: '100%',\n display: 'grid',\n gridTemplateRows: 'auto max-content',\n ...drawerPaperSx,\n },\n ...restDrawerPaper,\n },\n ...restDrawerSlotProps,\n }}\n {...restDrawer}\n >\n <Box\n sx={{\n p: 2,\n overflow: 'auto',\n ...mobileContentSx,\n }}\n data-testid=\"Header.mobilenav\"\n {...restMobileContent}\n >\n {children || navigationItems}\n </Box>\n {drawerButtons && (\n <Box sx={{ p: 2, pt: 0 }}>\n <Box\n sx={{\n pt: 0.75,\n display: 'flex',\n flexDirection: 'column-reverse',\n alignItems: 'stretch',\n justifyContent: 'flex-start',\n // border from appbar.theme.ts\n borderTop: 1,\n borderColor: theme.palette.mode === 'dark' ? 'onSurface.os700' : 'surface.secondary',\n }}\n >\n {drawerButtons}\n </Box>\n </Box>\n )}\n </Drawer>\n )}\n </>\n );\n },\n);\n"],"names":["Header","forwardRef","_a","ref","children","logo","navigationItems","buttons","visibleButtons","overheadItems","_","color","__","breakpoint","___","inContainer","toolbarProps","logoProps","contentProps","mobileContentProps","buttonsProps","menuButtonProps","menuIcon","closeMenuIcon","drawerProps","rest","__rest","theme","useTheme","downLg","useMediaQuery","breakpoints","down","_d","sx","logoSx","restLogo","_e","contentSx","restContent","_f","mobileContentSx","restMobileContent","_g","buttonsSx","restButtons","_h","drawerSx","slotProps","drawerSlotProps","restDrawer","_j","paper","drawerPaperProps","backdrop","drawerBackdropProps","restDrawerSlotProps","_k","_b","drawerPaperSx","restDrawerPaper","_l","_c","drawerBackdropSx","restDrawerBackdrop","open","setOpen","useState","processedButtons","drawerButtons","useMemo","flatten","nodes","extend","result","Children","forEach","child","idx","type","Fragment","push","props","isValidElement","HeaderButton","HeaderLanguageSelect","includes","cloneElement","key","length","undefined","flattenedVisibleButtons","flattenedRestButtons","_jsxs","_jsx","jsx","AppBar","jsxs","Toolbar","Object","assign","disableGutters","Box","palette","mode","display","position","py","getFocusRingStyle","boxShadow","minWidth","flexGrow","alignSelf","alignItems","justifyContent","gap","lg","xl","pl","mb","mr","xs","onClick","prev","CloseIcon","MenuIcon","Drawer","disablePortal","disableEnforceFocus","disableAutoFocus","anchor","onClose","zIndex","appBar","top","mixins","toolbar","minHeight","bottom","height","gridTemplateRows","p","overflow","pt","flexDirection","borderTop","borderColor"],"mappings":"+SA8Ga,MAAAA,EAA0BC,EAAUA,YAC/C,CACEC,EAqBAC,cArBAC,SACEA,EAAQC,KACRA,EAAIC,gBACJA,EAAeC,QACfA,EAAOC,eACPA,EACAC,cAAeC,EACfC,MAAOC,EACPC,WAAYC,EAAGC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,OAAAC,OAAA,CACP9C,SACE6C,OAAAC,OAAA,CAAAlE,kBACEwE,SAAU,YACP3C,KAEFC,IAELZ,MACE+C,OAAAC,OAAA,CAAAlE,kBACEwE,SAAU,WACViC,OAAQ,OACRlC,QAAS,OACTmC,iBAAkB,oBACfjF,KAEFC,KAEFJ,IAEDN,aAEJ4C,EAAAA,IAACQ,EAAAA,mBACCpE,GAAEiE,OAAAC,OAAA,CACAyC,EAAG,EACHC,SAAU,QACPrG,iBAEO,oBACRC,EAEH,CAAAtC,SAAAA,GAAYE,KAEd+D,IACCyB,MAACQ,EAAAA,KAAIpE,GAAI,CAAE2G,EAAG,EAAGE,GAAI,YACnBjD,EAACC,IAAAO,MACC,CAAApE,GAAI,CACF6G,GAAI,IACJtC,QAAS,OACTuC,cAAe,iBACf/B,WAAY,UACZC,eAAgB,aAEhB+B,UAAW,EACXC,YAAoC,SAAvBvH,EAAM4E,QAAQC,KAAkB,kBAAoB,qBAGlEpG,SAAAiE,aAMV"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ElementType, FC } from 'react';
|
|
2
|
+
import { IconButtonProps, TooltipProps, BadgeProps } from '@mui/material';
|
|
3
|
+
export interface HeaderButtonProps extends IconButtonProps<ElementType> {
|
|
4
|
+
/**
|
|
5
|
+
* Label for the tooltip or the text button
|
|
6
|
+
*/
|
|
7
|
+
label?: TooltipProps['title'];
|
|
8
|
+
/**
|
|
9
|
+
* Change icon button with tooltip into button
|
|
10
|
+
*/
|
|
11
|
+
extend?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Properties applied to tooltip
|
|
14
|
+
*/
|
|
15
|
+
tooltipProps?: Partial<TooltipProps>;
|
|
16
|
+
/**
|
|
17
|
+
* Properties applied to badge
|
|
18
|
+
*/
|
|
19
|
+
badgeProps?: BadgeProps;
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated use badgeProps instead
|
|
22
|
+
*/
|
|
23
|
+
indicator?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated provide icon directly as children (e.g. <BellIcon />)
|
|
26
|
+
*/
|
|
27
|
+
icon?: 'car' | 'bell' | 'search' | 'profile' | 'user' | 'heart' | 'shopping-bag' | 'globe' | 'login' | 'logout' | 'close' | 'circle-question' | 'hamburger';
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* IconButton for the action links
|
|
31
|
+
*/
|
|
32
|
+
export declare const HeaderButton: FC<HeaderButtonProps>;
|
|
33
|
+
/** @deprecated use <HeaderButton> with icon of your choosing instead */
|
|
34
|
+
export declare const HeaderBellButton: FC<HeaderButtonProps>;
|
|
35
|
+
/** @deprecated use <HeaderButton> with icon of your choosing instead */
|
|
36
|
+
export declare const HeaderSearchButton: FC<HeaderButtonProps>;
|
|
37
|
+
/** @deprecated use <HeaderButton> with icon of your choosing instead */
|
|
38
|
+
export declare const HeaderProfileButton: FC<HeaderButtonProps>;
|
|
39
|
+
/** @deprecated use <HeaderButton> with icon of your choosing instead */
|
|
40
|
+
export declare const HeaderHeartButton: FC<HeaderButtonProps>;
|
|
41
|
+
/** @deprecated use <HeaderButton> with icon of your choosing instead */
|
|
42
|
+
export declare const HeaderCartButton: FC<HeaderButtonProps>;
|
|
43
|
+
/** @deprecated use <HeaderButton> with icon of your choosing instead */
|
|
44
|
+
export declare const HeaderLanguageButton: FC<HeaderButtonProps>;
|
|
45
|
+
/** @deprecated use <HeaderButton> with icon of your choosing instead */
|
|
46
|
+
export declare const HeaderLoginButton: FC<HeaderButtonProps>;
|
|
47
|
+
/** @deprecated use <HeaderButton> with icon of your choosing instead */
|
|
48
|
+
export declare const HeaderLogoutButton: FC<HeaderButtonProps>;
|
|
49
|
+
/** @deprecated use <HeaderButton> with icon of your choosing instead */
|
|
50
|
+
export declare const HeaderCloseButton: FC<HeaderButtonProps>;
|
|
51
|
+
/** @deprecated use <HeaderButton> with icon of your choosing instead */
|
|
52
|
+
export declare const HeaderFaqButton: FC<HeaderButtonProps>;
|
|
53
|
+
/** @deprecated use <HeaderButton> with icon of your choosing instead */
|
|
54
|
+
export declare const HeaderMenuButton: FC<HeaderButtonProps>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=require("tslib"),r=require("react/jsx-runtime"),s=require("react"),t=require("@mui/material"),o=require("../focusring/focusring.js"),n=require("../../materialui/button/interactive.js"),i=require("../icon/stroke/CarIcon.js"),c=require("../icon/stroke/BellIcon.js"),a=require("../icon/stroke/SearchIcon.js"),u=require("../icon/stroke/UserIcon.js"),l=require("../icon/stroke/HeartIcon.js"),d=require("../icon/stroke/ShoppingBagIcon.js"),j=require("../icon/stroke/GlobeIcon.js"),g=require("../icon/stroke/LoginIcon.js"),x=require("../icon/stroke/LogoutIcon.js"),f=require("../icon/stroke/CloseIcon.js"),b=require("../icon/stroke/CircleQuestionIcon.js"),I=require("../icon/stroke/MenuIcon.js");const p=s.forwardRef(((p,h)=>{var{children:B,sx:O,icon:q,label:H,indicator:R,extend:w,tooltipProps:k,badgeProps:C}=p,S=e.__rest(p,["children","sx","icon","label","indicator","extend","tooltipProps","badgeProps"]);const m=t.useTheme(),v=null!=k?k:{},{title:L}=v,y=e.__rest(v,["title"]),M=s.useMemo((()=>{switch(q){case"car":return i.CarIcon;case"bell":return c.BellIcon;case"search":return a.SearchIcon;case"profile":case"user":return u.UserIcon;case"heart":return l.HeartIcon;case"shopping-bag":return d.ShoppingBagIcon;case"globe":return j.GlobeIcon;case"login":return g.LoginIcon;case"logout":return x.LogoutIcon;case"close":return f.CloseIcon;case"circle-question":return b.CircleQuestionIcon;case"hamburger":return I.MenuIcon;default:return}}),[q]);return w?r.jsxs(t.ButtonBase,Object.assign({sx:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},m.typography.list),{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:1.25,py:1.5,px:1.25,"& .MuiSvgIcon-root":{fontSize:"17px"},"&.Mui-disabled":{color:"disabled.tertiary"}}),n.getInteractiveStyle({fontWeight:"300"},{fontWeight:"700"})),o.getFocusRingStyle(m)),{"&&:before":{borderRadius:"4px"}}),O),ref:h,"data-testid":"HeaderButton"},S,{children:[r.jsx(t.Badge,Object.assign({},R&&{variant:"dot",invisible:!1},C,{children:B||r.jsx(M,{})})),H||L]})):r.jsx(t.Tooltip,Object.assign({title:H||L},y,{children:r.jsx(t.IconButton,Object.assign({sx:O,size:"medium",ref:h,"data-testid":"HeaderButton"},S,{children:r.jsx(t.Badge,Object.assign({},R&&{variant:"dot",invisible:!1},C,{children:B||r.jsx(M,{})}))}))}))})),h=s.forwardRef(((e,s)=>r.jsx(p,Object.assign({ref:s},e,{children:r.jsx(c.BellIcon,{})})))),B=s.forwardRef(((e,s)=>r.jsx(p,Object.assign({ref:s},e,{children:r.jsx(a.SearchIcon,{})})))),O=s.forwardRef(((e,s)=>r.jsx(p,Object.assign({ref:s},e,{children:r.jsx(u.UserIcon,{})})))),q=s.forwardRef(((e,s)=>r.jsx(p,Object.assign({ref:s},e,{children:r.jsx(l.HeartIcon,{})})))),H=s.forwardRef(((e,s)=>r.jsx(p,Object.assign({ref:s},e,{children:r.jsx(d.ShoppingBagIcon,{})})))),R=s.forwardRef(((e,s)=>r.jsx(p,Object.assign({ref:s},e,{children:r.jsx(j.GlobeIcon,{})})))),w=s.forwardRef(((e,s)=>r.jsx(p,Object.assign({ref:s},e,{children:r.jsx(g.LoginIcon,{})})))),k=s.forwardRef(((e,s)=>r.jsx(p,Object.assign({ref:s},e,{children:r.jsx(x.LogoutIcon,{})})))),C=s.forwardRef(((e,s)=>r.jsx(p,Object.assign({ref:s},e,{children:r.jsx(f.CloseIcon,{})})))),S=s.forwardRef(((e,s)=>r.jsx(p,Object.assign({ref:s},e,{children:r.jsx(b.CircleQuestionIcon,{})})))),m=s.forwardRef(((e,s)=>r.jsx(p,Object.assign({ref:s},e,{children:r.jsx(I.MenuIcon,{})}))));exports.HeaderBellButton=h,exports.HeaderButton=p,exports.HeaderCartButton=H,exports.HeaderCloseButton=C,exports.HeaderFaqButton=S,exports.HeaderHeartButton=q,exports.HeaderLanguageButton=R,exports.HeaderLoginButton=w,exports.HeaderLogoutButton=k,exports.HeaderMenuButton=m,exports.HeaderProfileButton=O,exports.HeaderSearchButton=B;
|
|
2
|
+
//# sourceMappingURL=HeaderButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderButton.js","sources":["../../../../../src/components/header/HeaderButton.tsx"],"sourcesContent":["import React, { ElementType, FC, ForwardedRef, forwardRef, useMemo } from 'react';\nimport {\n IconButton,\n IconButtonProps,\n ButtonBase,\n Tooltip,\n TooltipProps,\n Badge,\n BadgeProps,\n useTheme,\n} from '@mui/material';\nimport { getFocusRingStyle } from '@/src/components/focusring/focusring';\nimport { getInteractiveStyle } from '@/src/materialui/button/interactive';\nimport { CarIcon } from '@/src/components/icon/stroke/CarIcon';\nimport { BellIcon } from '@/src/components/icon/stroke/BellIcon';\nimport { SearchIcon } from '@/src/components/icon/stroke/SearchIcon';\nimport { UserIcon } from '@/src/components/icon/stroke/UserIcon';\nimport { HeartIcon } from '@/src/components/icon/stroke/HeartIcon';\nimport { ShoppingBagIcon } from '@/src/components/icon/stroke/ShoppingBagIcon';\nimport { GlobeIcon } from '@/src/components/icon/stroke/GlobeIcon';\nimport { LoginIcon } from '@/src/components/icon/stroke/LoginIcon';\nimport { LogoutIcon } from '@/src/components/icon/stroke/LogoutIcon';\nimport { CloseIcon } from '@/src/components/icon/stroke/CloseIcon';\nimport { CircleQuestionIcon } from '@/src/components/icon/stroke/CircleQuestionIcon';\nimport { MenuIcon } from '@/src/components/icon/stroke/MenuIcon';\n\nexport interface HeaderButtonProps extends IconButtonProps<ElementType> {\n /**\n * Label for the tooltip or the text button\n */\n label?: TooltipProps['title'];\n /**\n * Change icon button with tooltip into button\n */\n extend?: boolean;\n /**\n * Properties applied to tooltip\n */\n tooltipProps?: Partial<TooltipProps>;\n /**\n * Properties applied to badge\n */\n badgeProps?: BadgeProps;\n /**\n * @deprecated use badgeProps instead\n */\n indicator?: string;\n /**\n * @deprecated provide icon directly as children (e.g. <BellIcon />)\n */\n icon?:\n | 'car'\n | 'bell'\n | 'search'\n | 'profile'\n | 'user'\n | 'heart'\n | 'shopping-bag'\n | 'globe'\n | 'login'\n | 'logout'\n | 'close'\n | 'circle-question'\n | 'hamburger';\n}\n\n/**\n * IconButton for the action links\n */\nexport const HeaderButton: FC<HeaderButtonProps> = forwardRef(\n ({ children, sx, icon, label, indicator, extend, tooltipProps, badgeProps, ...rest }, ref) => {\n const theme = useTheme();\n const { title, ...restTooltip } = tooltipProps ?? {};\n\n // mapper to previous api\n const Icon = useMemo(() => {\n switch (icon) {\n case 'car':\n return CarIcon;\n case 'bell':\n return BellIcon;\n case 'search':\n return SearchIcon;\n case 'profile':\n case 'user':\n return UserIcon;\n case 'heart':\n return HeartIcon;\n case 'shopping-bag':\n return ShoppingBagIcon;\n case 'globe':\n return GlobeIcon;\n case 'login':\n return LoginIcon;\n case 'logout':\n return LogoutIcon;\n case 'close':\n return CloseIcon;\n case 'circle-question':\n return CircleQuestionIcon;\n case 'hamburger':\n return MenuIcon;\n default:\n return undefined;\n }\n }, [icon]);\n\n if (extend) {\n return (\n <ButtonBase\n sx={{\n ...theme.typography.list,\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'flex-start',\n gap: 1.25,\n py: 1.5,\n px: 1.25,\n // icon inside\n '& .MuiSvgIcon-root': {\n fontSize: '17px',\n },\n // disabled style\n '&.Mui-disabled': {\n color: 'disabled.tertiary',\n },\n // interactive style\n ...getInteractiveStyle(\n {\n fontWeight: '300',\n },\n {\n fontWeight: '700',\n },\n ),\n // focus ring\n ...getFocusRingStyle(theme),\n '&&:before': {\n borderRadius: '4px',\n },\n ...sx,\n }}\n ref={ref as ForwardedRef<HTMLButtonElement>}\n data-testid=\"HeaderButton\"\n {...rest}\n >\n <Badge {...(indicator && { variant: 'dot', invisible: false })} {...badgeProps}>\n {children || <Icon />}\n </Badge>\n {label || title}\n </ButtonBase>\n );\n }\n\n return (\n <Tooltip title={label || title} {...restTooltip}>\n <IconButton\n sx={sx}\n size=\"medium\"\n ref={ref as ForwardedRef<HTMLButtonElement>}\n data-testid=\"HeaderButton\"\n {...rest}\n >\n <Badge {...(indicator && { variant: 'dot', invisible: false })} {...badgeProps}>\n {children || <Icon />}\n </Badge>\n </IconButton>\n </Tooltip>\n );\n },\n);\n\n/** @deprecated use <HeaderButton> with icon of your choosing instead */\nexport const HeaderBellButton: FC<HeaderButtonProps> = forwardRef((props, ref) => (\n <HeaderButton ref={ref} {...props}>\n <BellIcon />\n </HeaderButton>\n));\n/** @deprecated use <HeaderButton> with icon of your choosing instead */\nexport const HeaderSearchButton: FC<HeaderButtonProps> = forwardRef((props, ref) => (\n <HeaderButton ref={ref} {...props}>\n <SearchIcon />\n </HeaderButton>\n));\n/** @deprecated use <HeaderButton> with icon of your choosing instead */\nexport const HeaderProfileButton: FC<HeaderButtonProps> = forwardRef((props, ref) => (\n <HeaderButton ref={ref} {...props}>\n <UserIcon />\n </HeaderButton>\n));\n/** @deprecated use <HeaderButton> with icon of your choosing instead */\nexport const HeaderHeartButton: FC<HeaderButtonProps> = forwardRef((props, ref) => (\n <HeaderButton ref={ref} {...props}>\n <HeartIcon />\n </HeaderButton>\n));\n/** @deprecated use <HeaderButton> with icon of your choosing instead */\nexport const HeaderCartButton: FC<HeaderButtonProps> = forwardRef((props, ref) => (\n <HeaderButton ref={ref} {...props}>\n <ShoppingBagIcon />\n </HeaderButton>\n));\n/** @deprecated use <HeaderButton> with icon of your choosing instead */\nexport const HeaderLanguageButton: FC<HeaderButtonProps> = forwardRef((props, ref) => (\n <HeaderButton ref={ref} {...props}>\n <GlobeIcon />\n </HeaderButton>\n));\n/** @deprecated use <HeaderButton> with icon of your choosing instead */\nexport const HeaderLoginButton: FC<HeaderButtonProps> = forwardRef((props, ref) => (\n <HeaderButton ref={ref} {...props}>\n <LoginIcon />\n </HeaderButton>\n));\n/** @deprecated use <HeaderButton> with icon of your choosing instead */\nexport const HeaderLogoutButton: FC<HeaderButtonProps> = forwardRef((props, ref) => (\n <HeaderButton ref={ref} {...props}>\n <LogoutIcon />\n </HeaderButton>\n));\n/** @deprecated use <HeaderButton> with icon of your choosing instead */\nexport const HeaderCloseButton: FC<HeaderButtonProps> = forwardRef((props, ref) => (\n <HeaderButton ref={ref} {...props}>\n <CloseIcon />\n </HeaderButton>\n));\n/** @deprecated use <HeaderButton> with icon of your choosing instead */\nexport const HeaderFaqButton: FC<HeaderButtonProps> = forwardRef((props, ref) => (\n <HeaderButton ref={ref} {...props}>\n <CircleQuestionIcon />\n </HeaderButton>\n));\n/** @deprecated use <HeaderButton> with icon of your choosing instead */\nexport const HeaderMenuButton: FC<HeaderButtonProps> = forwardRef((props, ref) => (\n <HeaderButton ref={ref} {...props}>\n <MenuIcon />\n </HeaderButton>\n));\n"],"names":["HeaderButton","forwardRef","_a","ref","children","sx","icon","label","indicator","extend","tooltipProps","badgeProps","rest","__rest","theme","useTheme","_b","title","restTooltip","Icon","useMemo","CarIcon","BellIcon","SearchIcon","UserIcon","HeartIcon","ShoppingBagIcon","GlobeIcon","LoginIcon","LogoutIcon","CloseIcon","CircleQuestionIcon","MenuIcon","_jsxs","ButtonBase","Object","assign","typography","list","display","alignItems","justifyContent","gap","py","px","fontSize","color","getInteractiveStyle","fontWeight","getFocusRingStyle","borderRadius","_jsx","Badge","variant","invisible","Tooltip","IconButton","size","HeaderBellButton","props","jsx","HeaderSearchButton","HeaderProfileButton","HeaderHeartButton","HeaderCartButton","HeaderLanguageButton","HeaderLoginButton","HeaderLogoutButton","HeaderCloseButton","HeaderFaqButton","HeaderMenuButton"],"mappings":"osBAqEa,MAAAA,EAAsCC,EAAUA,YAC3D,CAACC,EAAqFC,SAArFC,SAAEA,EAAQC,GAAEA,EAAEC,KAAEA,EAAIC,MAAEA,EAAKC,UAAEA,EAASC,OAAEA,EAAMC,aAAEA,EAAYC,WAAEA,GAAUT,EAAKU,EAAIC,EAAAA,OAAAX,EAA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