@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,2 @@
|
|
|
1
|
+
import{__rest as i}from"tslib";import{jsxs as s,jsx as t}from"react/jsx-runtime";import{forwardRef as e}from"react";import{Box as o,Typography as r,IconButton as n,Stack as a}from"@mui/material";import{Label as c}from"../label/label.js";import{CloseIcon as l}from"../icon/stroke/CloseIcon.js";const p=e(((e,p)=>{var{sx:d,headline:x,titleProps:f,titleWrapperProps:m,description:b,descriptionProps:g,wrapperProps:h,color:u,isNew:j,headerProps:O,icon:w,iconProps:P,footer:v,buttons:y,buttonsProps:N,footerProps:k,onDismiss:I,closeIconButtonProps:C,closeIconProps:W,children:D}=e,S=i(e,["sx","headline","titleProps","titleWrapperProps","description","descriptionProps","wrapperProps","color","isNew","headerProps","icon","iconProps","footer","buttons","buttonsProps","footerProps","onDismiss","closeIconButtonProps","closeIconProps","children"]);const B=null!=h?h:{},{sx:z}=B,M=i(B,["sx"]),F=null!=O?O:{},{sx:G}=F,L=i(F,["sx"]),R=null!=N?N:{},{sx:V}=R,q=i(R,["sx"]),A=null!=g?g:{},{sx:E}=A,H=i(A,["sx"]),J=null!=f?f:{},{sx:K}=J,Q=i(J,["sx"]),T=null!=C?C:{},{sx:U}=T,X=i(T,["sx"]),Y=null!=P?P:{},{sx:Z}=Y,$=i(Y,["sx"]);return s(o,Object.assign({ref:p,sx:Object.assign({backgroundColor:"grey"===u?"surface.primary":"background.primary",padding:"16px 16px 24px",display:"flex",flexDirection:"row",gap:2,position:"relative"},d),"data-testid":"Notification"},S,{children:[w&&t(o,Object.assign({sx:Object.assign({display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",width:{xs:"32px",md:"56px"},height:{xs:"32px",md:"56px"},backgroundColor:"transparent.backdrop",flexShrink:"0",overflow:"hidden","& img":{width:"100%",height:"100%",objectFit:"cover"},"& .MuiSvgIcon-root":{width:{xs:"22px",md:"32px"},height:{xs:"22px",md:"32px"}}},Z),"data-testid":"Notification.icon"},$,{children:w})),s(o,Object.assign({sx:Object.assign({width:"100%",maxWidth:"100%",overflow:"hidden",display:"flex",gap:"4px",flexDirection:"column",padding:"4px","&:hover .notification-dismiss":{opacity:"1"}},z)},M,{children:[s(o,Object.assign({sx:Object.assign({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:1},G)},L,{children:[j&&t(c,{type:"indicator",variant:"neutral"}),t(r,Object.assign({variant:"subheadline",sx:Object.assign({whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flexGrow:"1",minWidth:"0"},K),"data-testid":"Notification.headline"},Q,{children:x})),I&&t(n,Object.assign({"aria-label":"Dismiss notification",onClick:I,size:"small",className:"notification-dismiss",sx:Object.assign({padding:"2px",opacity:{xs:"1",md:"0"},"&.Mui-focusVisible":{opacity:"1"}},U),"data-testid":"Notification.dismiss"},X,{children:t(l,Object.assign({fontSize:"small",className:"ballotx",name:"close"},W))}))]})),t(o,{"data-testid":"Notification.description",children:"string"==typeof D||"string"==typeof b?t(r,Object.assign({sx:Object.assign({overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:"2",WebkitBoxOrient:"vertical"},E),variant:"disclaimer1"},H,{children:D||b})):D||b}),v&&t(r,Object.assign({variant:"disclaimer1",color:"onSurface.os600","data-testid":"Notification.footer"},k,{children:v})),y&&t(a,Object.assign({direction:"row",sx:Object.assign({mt:1.5},V),spacing:1,"data-testid":"Notification.buttons"},q,{children:y}))]}))]}))}));export{p as Notification};
|
|
2
|
+
//# sourceMappingURL=Notification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Notification.js","sources":["../../../src/components/notification/Notification.tsx"],"sourcesContent":["import React, { ElementType, FC, forwardRef } from 'react';\nimport {\n Box,\n BoxProps,\n Typography,\n TypographyProps,\n Stack,\n IconButton,\n StackProps,\n IconButtonProps,\n IconProps,\n} from '@mui/material';\nimport { Label } from '@/src/components/label/label';\nimport { CloseIcon } from '@/src/components/icon/stroke/CloseIcon';\n\nexport interface NotificationProps extends BoxProps<ElementType> {\n /**\n * headline of the notification\n */\n headline?: React.ReactNode;\n /**\n * Custom props for the headline\n */\n headlineProps?: TypographyProps<ElementType>;\n /**\n * Custom props for the title\n */\n titleProps?: TypographyProps<ElementType>;\n /**\n * Longer description of the notification\n * @deprecated use prop children instead\n */\n description?: React.ReactNode;\n /**\n * Custom props for the description container\n */\n descriptionProps?: TypographyProps<ElementType>;\n /**\n * Custom props for the wrapper container\n */\n wrapperProps?: BoxProps<ElementType>;\n /**\n * Different color options for the notification\n */\n color?: 'white' | 'grey';\n /**\n * Indicates if the notification is new\n */\n isNew?: boolean;\n /**\n * Custom props for the header container\n */\n headerProps?: BoxProps<ElementType>;\n /**\n * Icon to display in the notification\n */\n icon?: React.ReactNode;\n /**\n * Custom props for the icon container\n */\n iconProps?: BoxProps<ElementType>;\n /**\n * Footer text for the notification\n */\n footer?: React.ReactNode;\n /**\n * Control Buttons to display in the notification\n */\n buttons?: React.ReactNode;\n /**\n * Custom props for the buttons container\n */\n buttonsProps?: StackProps<ElementType>;\n /**\n * Custom props for the footer container\n */\n footerProps?: TypographyProps<ElementType>;\n /**\n * Callback function when the notification is dismissed\n */\n onDismiss?: () => void;\n /**\n * Custom props for the close icon container\n */\n closeIconButtonProps?: IconButtonProps;\n /**\n * Custom props for the close icon\n */\n closeIconProps?: IconProps<ElementType>;\n}\n\n/**\n * Component that renders an notification\n */\nexport const Notification: FC<NotificationProps> = forwardRef(\n (\n {\n sx,\n headline,\n titleProps,\n titleWrapperProps,\n description,\n descriptionProps,\n wrapperProps,\n color,\n isNew,\n headerProps,\n icon,\n iconProps,\n footer,\n buttons,\n buttonsProps,\n footerProps,\n onDismiss,\n closeIconButtonProps,\n closeIconProps,\n children,\n ...rest\n },\n ref,\n ) => {\n const { sx: wrapperSx, ...restWrapper } = wrapperProps ?? {};\n const { sx: headerSx, ...restHeader } = headerProps ?? {};\n const { sx: buttonsSx, ...restButtons } = buttonsProps ?? {};\n const { sx: descriptionSx, ...restDescription } = descriptionProps ?? {};\n const { sx: titleSx, ...restTitle } = titleProps ?? {};\n const { sx: closeIconButtonSx, ...restCloseIconButton } = closeIconButtonProps ?? {};\n\n const { sx: iconSx, ...restIcon } = iconProps ?? {};\n return (\n <Box\n ref={ref}\n sx={{\n backgroundColor: color === 'grey' ? 'surface.primary' : 'background.primary',\n padding: '16px 16px 24px',\n display: 'flex',\n flexDirection: 'row',\n gap: 2,\n position: 'relative',\n ...sx,\n }}\n data-testid=\"Notification\"\n {...rest}\n >\n {icon && (\n <Box\n sx={{\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n borderRadius: '50%',\n width: { xs: '32px', md: '56px' },\n height: { xs: '32px', md: '56px' },\n backgroundColor: 'transparent.backdrop',\n flexShrink: '0',\n overflow: 'hidden',\n '& img': { width: '100%', height: '100%', objectFit: 'cover' },\n '& .MuiSvgIcon-root': {\n width: { xs: '22px', md: '32px' },\n height: { xs: '22px', md: '32px' },\n },\n ...iconSx,\n }}\n data-testid=\"Notification.icon\"\n {...restIcon}\n >\n {icon}\n </Box>\n )}\n <Box\n sx={{\n width: '100%',\n maxWidth: '100%',\n overflow: 'hidden',\n display: 'flex',\n gap: '4px',\n flexDirection: 'column',\n // Small padding to prevent focus ring trimming\n padding: '4px',\n // show dismiss button on hover Desktop + Tablet\n '&:hover .notification-dismiss': {\n opacity: '1',\n },\n ...wrapperSx,\n }}\n {...restWrapper}\n >\n <Box\n sx={{ display: 'flex', alignItems: 'center', justifyContent: 'flex-start', gap: 1, ...headerSx }}\n {...restHeader}\n >\n {isNew && <Label type=\"indicator\" variant=\"neutral\" />}\n\n <Typography\n variant=\"subheadline\"\n sx={{\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n flexGrow: '1',\n minWidth: '0',\n ...titleSx,\n }}\n data-testid=\"Notification.headline\"\n {...restTitle}\n >\n {headline}\n </Typography>\n\n {onDismiss && (\n <IconButton\n aria-label=\"Dismiss notification\"\n onClick={onDismiss}\n size=\"small\"\n className=\"notification-dismiss\"\n sx={{\n padding: '2px',\n // hide dismiss button Desktop + Tablet, keep on mobile\n opacity: { xs: '1', md: '0' },\n // show dismiss button on focus\n '&.Mui-focusVisible': {\n opacity: '1',\n },\n ...closeIconButtonSx,\n }}\n data-testid=\"Notification.dismiss\"\n {...restCloseIconButton}\n >\n <CloseIcon fontSize=\"small\" className=\"ballotx\" name=\"close\" {...closeIconProps} />\n </IconButton>\n )}\n </Box>\n <Box data-testid=\"Notification.description\">\n {typeof children === 'string' || typeof description === 'string' ? (\n <Typography\n sx={{\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n display: '-webkit-box',\n WebkitLineClamp: '2',\n WebkitBoxOrient: 'vertical',\n ...descriptionSx,\n }}\n variant=\"disclaimer1\"\n {...restDescription}\n >\n {children || description}\n </Typography>\n ) : (\n children || description\n )}\n </Box>\n {footer && (\n <Typography\n variant=\"disclaimer1\"\n color={'onSurface.os600'}\n data-testid=\"Notification.footer\"\n {...footerProps}\n >\n {footer}\n </Typography>\n )}\n {buttons && (\n <Stack\n direction=\"row\"\n sx={{ mt: 1.5, ...buttonsSx }}\n spacing={1}\n data-testid=\"Notification.buttons\"\n {...restButtons}\n >\n {buttons}\n </Stack>\n )}\n </Box>\n </Box>\n );\n },\n);\n"],"names":["Notification","forwardRef","_a","ref","sx","headline","titleProps","titleWrapperProps","description","descriptionProps","wrapperProps","color","isNew","headerProps","icon","iconProps","footer","buttons","buttonsProps","footerProps","onDismiss","closeIconButtonProps","closeIconProps","children","rest","__rest","_b","wrapperSx","restWrapper","_c","headerSx","restHeader","_d","buttonsSx","restButtons","_e","descriptionSx","restDescription","_f","titleSx","restTitle","_g","closeIconButtonSx","restCloseIconButton","_h","iconSx","restIcon","_jsxs","Box","Object","assign","backgroundColor","padding","display","flexDirection","gap","position","_jsx","justifyContent","alignItems","borderRadius","width","xs","md","height","flexShrink","overflow","objectFit","maxWidth","opacity","Label","type","variant","Typography","whiteSpace","textOverflow","flexGrow","minWidth","IconButton","onClick","size","className","CloseIcon","fontSize","name","WebkitLineClamp","WebkitBoxOrient","Stack","direction","mt","spacing"],"mappings":"qSA8Fa,MAAAA,EAAsCC,GACjD,CACEC,EAuBAC,SAvBAC,GACEA,EAAEC,SACFA,EAAQC,WACRA,EAAUC,kBACVA,EAA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a,2BAA0BzB,SACpB,iBAAbA,GAAgD,iBAAhBf,EACtCiD,EAACgB,EACCxB,OAAAC,OAAA,CAAA9C,GACE6C,OAAAC,OAAA,CAAAgB,SAAU,SACVS,aAAc,WACdtB,QAAS,cACTgC,gBAAiB,IACjBC,gBAAiB,YACdlD,GAELoC,QAAQ,eACJnC,EAEH,CAAAd,SAAAA,GAAYf,KAGfe,GAAYf,IAGfQ,GACCyC,EAACgB,iBACCD,QAAQ,cACR7D,MAAO,kBACK,cAAA,uBACRQ,EAAW,CAAAI,SAEdP,KAGJC,GACCwC,EAAC8B,EACCtC,OAAAC,OAAA,CAAAsC,UAAU,MACVpF,GAAE6C,OAAAC,OAAA,CAAIuC,GAAI,KAAQxD,GAClByD,QAAS,gBACG,wBACRxD,EAAW,CAAAX,SAEdN,YAIH"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ButtonProps } from '@mui/material';
|
|
3
|
+
export interface NotificationButtonProps extends ButtonProps {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* NotificationButton is a proxy component to <Button variant="outline" size="small" color="secondary" />
|
|
7
|
+
*/
|
|
8
|
+
export declare const NotificationButton: React.FC<NotificationButtonProps>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{forwardRef as o}from"react";import{Button as t}from"@mui/material";const e=o(((o,e)=>r(t,Object.assign({ref:e,variant:"outlined",size:"small",color:"secondary"},o))));export{e as NotificationButton};
|
|
2
|
+
//# sourceMappingURL=NotificationButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationButton.js","sources":["../../../src/components/notification/NotificationButton.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport { Button, ButtonProps } from '@mui/material';\n\nexport interface NotificationButtonProps extends ButtonProps {}\n\n/**\n * NotificationButton is a proxy component to <Button variant=\"outline\" size=\"small\" color=\"secondary\" />\n */\nexport const NotificationButton: React.FC<NotificationButtonProps> = forwardRef((props, ref) => {\n return <Button ref={ref} variant=\"outlined\" size=\"small\" color=\"secondary\" {...props} />;\n});\n"],"names":["NotificationButton","forwardRef","props","ref","_jsx","Button","Object","assign","variant","size","color"],"mappings":"kHAQa,MAAAA,EAAwDC,GAAW,CAACC,EAAOC,IAC/EC,EAACC,EAAOC,OAAAC,OAAA,CAAAJ,IAAKA,EAAKK,QAAQ,WAAWC,KAAK,QAAQC,MAAM,aAAgBR"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import React, { ElementType, FC } from 'react';
|
|
2
|
+
import { BoxProps, ButtonProps, IconButtonProps, IconProps, TypographyProps } from '@mui/material';
|
|
3
|
+
export interface NotificationCenterProps extends BoxProps<ElementType> {
|
|
4
|
+
/**
|
|
5
|
+
* Title of the notification center
|
|
6
|
+
*/
|
|
7
|
+
title?: React.ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Custom props for the header
|
|
10
|
+
*/
|
|
11
|
+
headerProps?: BoxProps<ElementType>;
|
|
12
|
+
/**
|
|
13
|
+
* Custom props for the title
|
|
14
|
+
*/
|
|
15
|
+
titleProps?: TypographyProps<ElementType>;
|
|
16
|
+
/**
|
|
17
|
+
* Text for the dismiss all button
|
|
18
|
+
*/
|
|
19
|
+
dismissAllText?: React.ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* Callback function when the dismiss all button is clicked
|
|
22
|
+
*/
|
|
23
|
+
onDismissAll?: () => void;
|
|
24
|
+
/**
|
|
25
|
+
* Callback function when the close button is clicked
|
|
26
|
+
*/
|
|
27
|
+
onClose?: () => void;
|
|
28
|
+
/**
|
|
29
|
+
* Max Height of the notification center
|
|
30
|
+
*/
|
|
31
|
+
height?: number | string;
|
|
32
|
+
/**
|
|
33
|
+
* Custom props for the icon button
|
|
34
|
+
*/
|
|
35
|
+
iconButtonProps?: IconButtonProps;
|
|
36
|
+
/**
|
|
37
|
+
* Custom props for the close icon
|
|
38
|
+
*/
|
|
39
|
+
iconProps?: IconProps<ElementType>;
|
|
40
|
+
/**
|
|
41
|
+
* Custom props for the container
|
|
42
|
+
*/
|
|
43
|
+
containerProps?: BoxProps<ElementType>;
|
|
44
|
+
/**
|
|
45
|
+
* Custom props for the dismiss box
|
|
46
|
+
*/
|
|
47
|
+
dismissBoxProps?: BoxProps<ElementType>;
|
|
48
|
+
/**
|
|
49
|
+
* Custom props for the dismiss button
|
|
50
|
+
*/
|
|
51
|
+
dismissButtonProps?: ButtonProps<ElementType>;
|
|
52
|
+
}
|
|
53
|
+
export declare const NotificationCenter: FC<NotificationCenterProps>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__rest as s}from"tslib";import{jsxs as i,jsx as t}from"react/jsx-runtime";import{forwardRef as o}from"react";import{Box as e,Typography as n,IconButton as r,Button as a}from"@mui/material";import{CloseIcon as l}from"../icon/stroke/CloseIcon.js";const c=o(((o,c)=>{var{children:d,sx:x,title:p="Notifications",headerProps:m,titleProps:f,dismissAllText:b="Dismiss All",onDismissAll:g,onClose:u,iconButtonProps:h,iconProps:C,containerProps:j,dismissBoxProps:P,dismissButtonProps:O,height:y=556}=o,N=s(o,["children","sx","title","headerProps","titleProps","dismissAllText","onDismissAll","onClose","iconButtonProps","iconProps","containerProps","dismissBoxProps","dismissButtonProps","height"]);const B=null!=m?m:{},{sx:v}=B,k=s(B,["sx"]),w=null!=j?j:{},{sx:A}=w,D=s(w,["sx"]),z=null!=P?P:{},{sx:S}=z,T=s(z,["sx"]),H=null!=h?h:{},{sx:I}=H,R=s(H,["sx"]);return i(e,Object.assign({ref:c,sx:Object.assign({display:"flex",flexDirection:"column",width:{xs:"100%",sm:"360px",md:"440px"},borderRadius:{xs:"0px",sm:"8px"},backgroundColor:"background.primary",color:"text.primary",boxShadow:"0px 5px 6px 1px rgba(0, 0, 0, 0.18), 0px -1px 4px 0px rgba(0, 0, 0, 0.1)",overflow:"hidden",maxHeight:(Y=y,"string"==typeof Y&&Y.includes("px")?Y:`${Y}px`)},x),"data-testid":"NotificationCenter"},N,{children:[i(e,Object.assign({sx:Object.assign({padding:"16px 8px 16px 16px",display:"flex",justifyContent:"space-between"},v)},k,{children:[t(n,Object.assign({variant:"h4",component:"span","data-testid":"NotificationCenter.title"},f,{children:p})),u&&t(r,Object.assign({"aria-label":"onClose notificationCenter",onClick:u,size:"medium",className:"notificationCenter-onClose",sx:Object.assign({padding:"4px"},I),"data-testid":"NotificationCenter.onClose"},R,{children:t(l,Object.assign({fontSize:"medium",className:"ballotx"},C))}))]})),g&&t(e,Object.assign({sx:Object.assign({padding:"0 8px 4px 16px",display:"flex",justifyContent:"flex-end"},S)},T,{children:t(a,Object.assign({onClick:g,size:"small",color:"secondary",variant:"text","data-testid":"NotificationCenter.dismiss"},O,{children:b}))})),t(e,Object.assign({sx:Object.assign({overflowY:"auto",'& [data-testid="Notification"]:not(:last-child)':{borderBottom:1,borderColor:"surface.secondary"}},A),"data-testid":"NotificationCenter.content"},D,{children:d}))]}));var Y}));export{c as NotificationCenter};
|
|
2
|
+
//# sourceMappingURL=NotificationCenter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationCenter.js","sources":["../../../src/components/notification/NotificationCenter.tsx"],"sourcesContent":["import React, { ElementType, forwardRef, FC } from 'react';\nimport {\n Box,\n Button,\n BoxProps,\n ButtonProps,\n IconButton,\n IconButtonProps,\n IconProps,\n Typography,\n TypographyProps,\n} from '@mui/material';\nimport { CloseIcon } from '@/src/components/icon/stroke/CloseIcon';\n\nexport interface NotificationCenterProps extends BoxProps<ElementType> {\n /**\n * Title of the notification center\n */\n title?: React.ReactNode;\n /**\n * Custom props for the header\n */\n headerProps?: BoxProps<ElementType>;\n /**\n * Custom props for the title\n */\n titleProps?: TypographyProps<ElementType>;\n /**\n * Text for the dismiss all button\n */\n dismissAllText?: React.ReactNode;\n /**\n * Callback function when the dismiss all button is clicked\n */\n onDismissAll?: () => void;\n /**\n * Callback function when the close button is clicked\n */\n onClose?: () => void;\n /**\n * Max Height of the notification center\n */\n height?: number | string;\n /**\n * Custom props for the icon button\n */\n iconButtonProps?: IconButtonProps;\n /**\n * Custom props for the close icon\n */\n iconProps?: IconProps<ElementType>;\n /**\n * Custom props for the container\n */\n containerProps?: BoxProps<ElementType>;\n /**\n * Custom props for the dismiss box\n */\n dismissBoxProps?: BoxProps<ElementType>;\n /**\n * Custom props for the dismiss button\n */\n dismissButtonProps?: ButtonProps<ElementType>;\n}\n\nexport const NotificationCenter: FC<NotificationCenterProps> = forwardRef(\n (\n {\n children,\n sx,\n title = 'Notifications',\n headerProps,\n titleProps,\n dismissAllText = 'Dismiss All',\n onDismissAll,\n onClose,\n iconButtonProps,\n iconProps,\n containerProps,\n dismissBoxProps,\n dismissButtonProps,\n height = 556,\n ...rest\n },\n ref,\n ) => {\n const { sx: headerSx, ...restHeader } = headerProps ?? {};\n const { sx: containerSx, ...restContainer } = containerProps ?? {};\n const { sx: dismissBoxSx, ...restDismissBox } = dismissBoxProps ?? {};\n const { sx: iconButtonSx, ...restIconButton } = iconButtonProps ?? {};\n\n const formatHeight = (heightValue: number | string) => {\n if (typeof heightValue === 'string' && heightValue.includes('px')) {\n return heightValue;\n }\n // if typeof heightValue === 'number', or string without 'px'\n return `${heightValue}px`;\n };\n\n return (\n <Box\n ref={ref}\n sx={{\n display: 'flex',\n flexDirection: 'column',\n width: { xs: '100%', sm: '360px', md: '440px' },\n borderRadius: { xs: '0px', sm: '8px' },\n backgroundColor: 'background.primary',\n color: 'text.primary',\n boxShadow: '0px 5px 6px 1px rgba(0, 0, 0, 0.18), 0px -1px 4px 0px rgba(0, 0, 0, 0.1)',\n overflow: 'hidden',\n maxHeight: formatHeight(height),\n ...sx,\n }}\n data-testid=\"NotificationCenter\"\n {...rest}\n >\n <Box\n sx={{\n padding: '16px 8px 16px 16px',\n display: 'flex',\n justifyContent: 'space-between',\n ...headerSx,\n }}\n {...restHeader}\n >\n <Typography variant=\"h4\" component=\"span\" data-testid=\"NotificationCenter.title\" {...titleProps}>\n {title}\n </Typography>\n {onClose && (\n <IconButton\n aria-label=\"onClose notificationCenter\"\n onClick={onClose}\n size=\"medium\"\n className=\"notificationCenter-onClose\"\n sx={{\n padding: '4px',\n ...iconButtonSx,\n }}\n data-testid=\"NotificationCenter.onClose\"\n {...restIconButton}\n >\n <CloseIcon fontSize=\"medium\" className=\"ballotx\" {...iconProps} />\n </IconButton>\n )}\n </Box>\n\n {onDismissAll && (\n <Box\n sx={{\n padding: '0 8px 4px 16px',\n display: 'flex',\n justifyContent: 'flex-end',\n ...dismissBoxSx,\n }}\n {...restDismissBox}\n >\n <Button\n onClick={onDismissAll}\n size=\"small\"\n color=\"secondary\"\n variant=\"text\"\n data-testid=\"NotificationCenter.dismiss\"\n {...dismissButtonProps}\n >\n {dismissAllText}\n </Button>\n </Box>\n )}\n <Box\n sx={{\n overflowY: 'auto',\n // add divider between notifications\n '& [data-testid=\"Notification\"]:not(:last-child)': {\n borderBottom: 1,\n borderColor: 'surface.secondary',\n },\n ...containerSx,\n }}\n data-testid=\"NotificationCenter.content\"\n {...restContainer}\n >\n {children}\n </Box>\n </Box>\n );\n },\n);\n"],"names":["NotificationCenter","forwardRef","_a","ref","children","sx","title","headerProps","titleProps","dismissAllText","onDismissAll","onClose","iconButtonProps","iconProps","containerProps","dismissBoxProps","dismissButtonProps","height","rest","__rest","_b","headerSx","restHeader","_c","containerSx","restContainer","_d","dismissBoxSx","restDismissBox","_e","iconButtonSx","restIconButton","_jsxs","Box","Object","assign","display","flexDirection","width","xs","sm","md","borderRadius","backgroundColor","color","boxShadow","overflow","maxHeight","heightValue","includes","padding","justifyContent","_jsx","Typography","variant","component","IconButton","onClick","size","className","CloseIcon","fontSize","Button","overflowY","borderBottom","borderColor"],"mappings":"4PAiEa,MAAAA,EAAkDC,GAC7D,CACEC,EAiBAC,KAjBA,IAAAC,SACEA,EAAQC,GACRA,EAAEC,MACFA,EAAQ,gBAAeC,YACvBA,EAAWC,WACXA,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6BACXsB,QAAS9C,EACT+C,KAAK,SACLC,UAAU,6BACVtD,GACE6B,OAAAC,OAAA,CAAAe,QAAS,OACNpB,GAAY,cAEL,8BACRC,EAAc,CAAA3B,SAElBgD,EAACQ,EAAS1B,OAAAC,OAAA,CAAC0B,SAAS,SAASF,UAAU,WAAc9C,WAK1DH,GACC0C,EAACnB,EACCC,OAAAC,OAAA,CAAA9B,GACE6B,OAAAC,OAAA,CAAAe,QAAS,iBACTd,QAAS,OACTe,eAAgB,YACbxB,IAEDC,EAEJ,CAAAxB,SAAAgD,EAACU,EACC5B,OAAAC,OAAA,CAAAsB,QAAS/C,EACTgD,KAAK,QACLd,MAAM,YACNU,QAAQ,OACI,cAAA,8BACRtC,YAEHP,QAIP2C,EAACnB,EAAGC,OAAAC,OAAA,CACF9B,GAAE6B,OAAAC,OAAA,CACA4B,UAAW,OAEX,kDAAmD,CACjDC,aAAc,EACdC,YAAa,sBAEZzC,GAEO,cAAA,8BACRC,YAEHrB,SA3Fc,IAAC4C,CA6Fd"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React, { ElementType, FC } from 'react';
|
|
2
|
+
import { BoxProps, TypographyProps } from '@mui/material';
|
|
3
|
+
export interface NotificationCenterCategoryProps extends BoxProps<ElementType> {
|
|
4
|
+
/**
|
|
5
|
+
* Title of the notification
|
|
6
|
+
*/
|
|
7
|
+
title: React.ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Custom props for the header
|
|
10
|
+
*/
|
|
11
|
+
headerProps?: BoxProps<ElementType>;
|
|
12
|
+
/**
|
|
13
|
+
* Custom props for the title
|
|
14
|
+
*/
|
|
15
|
+
titleProps?: TypographyProps<ElementType>;
|
|
16
|
+
/**
|
|
17
|
+
* Custom props for the container
|
|
18
|
+
*/
|
|
19
|
+
containerProps?: BoxProps<ElementType>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Component that renders a category in the Notification Center
|
|
23
|
+
*/
|
|
24
|
+
export declare const NotificationCenterCategory: FC<NotificationCenterCategoryProps>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__rest as t}from"tslib";import{jsxs as r,jsx as e}from"react/jsx-runtime";import{forwardRef as i}from"react";import{Box as o,Typography as a}from"@mui/material";const n=i(((i,n)=>{var{title:s,headerProps:c,titleProps:l,containerProps:d,children:p}=i,m=t(i,["title","headerProps","titleProps","containerProps","children"]);const b=null!=l?l:{},{sx:f}=b,g=t(b,["sx"]);return r(o,Object.assign({"data-testid":"NotificationCenterCategory"},m,{ref:n,children:[e(a,Object.assign({variant:"caption2",sx:Object.assign({pl:1,pt:2,pb:1,display:"block",borderBottom:1,borderColor:"surface.secondary"},f),"data-testid":"NotificationCenterCategory.title"},g,{children:s})),e(o,Object.assign({"data-testid":"NotificationCenterCategory.content"},d,{children:p}))]}))}));export{n as NotificationCenterCategory};
|
|
2
|
+
//# sourceMappingURL=NotificationCenterCategory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationCenterCategory.js","sources":["../../../src/components/notification/NotificationCenterCategory.tsx"],"sourcesContent":["import React, { ElementType, forwardRef, FC } from 'react';\nimport { Box, BoxProps, Typography, TypographyProps } from '@mui/material';\n\nexport interface NotificationCenterCategoryProps extends BoxProps<ElementType> {\n /**\n * Title of the notification\n */\n title: React.ReactNode;\n /**\n * Custom props for the header\n */\n headerProps?: BoxProps<ElementType>;\n /**\n * Custom props for the title\n */\n titleProps?: TypographyProps<ElementType>;\n /**\n * Custom props for the container\n */\n containerProps?: BoxProps<ElementType>;\n}\n\n/**\n * Component that renders a category in the Notification Center\n */\nexport const NotificationCenterCategory: FC<NotificationCenterCategoryProps> = forwardRef(\n ({ title, headerProps, titleProps, containerProps, children, ...rest }, ref) => {\n const { sx: titleSx, ...restTitle } = titleProps ?? {};\n\n return (\n <Box data-testid=\"NotificationCenterCategory\" {...rest} ref={ref}>\n <Typography\n variant=\"caption2\"\n sx={{\n pl: 1,\n pt: 2,\n pb: 1,\n display: 'block',\n borderBottom: 1,\n borderColor: 'surface.secondary',\n ...titleSx,\n }}\n data-testid=\"NotificationCenterCategory.title\"\n {...restTitle}\n >\n {title}\n </Typography>\n <Box data-testid=\"NotificationCenterCategory.content\" {...containerProps}>\n {children}\n </Box>\n </Box>\n );\n },\n);\n"],"names":["NotificationCenterCategory","forwardRef","_a","ref","title","headerProps","titleProps","containerProps","children","rest","__rest","_b","sx","titleSx","restTitle","_jsxs","Box","Object","assign","_jsx","Typography","variant","pl","pt","pb","display","borderBottom","borderColor"],"mappings":"wKAyBa,MAAAA,EAAkEC,GAC7E,CAACC,EAAuEC,KAAvE,IAAAC,MAAEA,EAAKC,YAAEA,EAAWC,WAAEA,EAAUC,eAAEA,EAAcC,SAAEA,GAAmBN,EAANO,EAAIC,EAAAR,EAAnE,kEACC,MAAMS,EAAgCL,QAAAA,EAAc,IAA5CM,GAAIC,GAA0CF,EAA9BG,EAAlBJ,EAAAC,EAAA,CAAA,OAEN,OACEI,EAACC,EAAGC,OAAAC,OAAA,CAAA,cAAa,8BAAiCT,EAAI,CAAEN,IAAKA,EAAGK,SAAA,CAC9DW,EAACC,EAAUH,OAAAC,OAAA,CACTG,QAAQ,WACRT,GAAEK,OAAAC,OAAA,CACAI,GAAI,EACJC,GAAI,EACJC,GAAI,EACJC,QAAS,QACTC,aAAc,EACdC,YAAa,qBACVd,iBAEO,oCACRC,EAAS,CAAAN,SAEZJ,KAEHe,EAACH,EAAgBC,OAAAC,OAAA,CAAA,cAAA,sCAAyCX,EACvD,CAAAC,SAAAA,QAEC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { HeaderButtonProps } from '@/src/components/header/HeaderButton';
|
|
3
|
+
import { ClickAwayListenerProps, PopperProps, FadeProps } from '@mui/material';
|
|
4
|
+
import { NotificationCenterProps } from './NotificationCenter';
|
|
5
|
+
export interface NotificationCenterHeaderButtonProps extends NotificationCenterProps {
|
|
6
|
+
/**
|
|
7
|
+
* Label for the tooltip or the text button
|
|
8
|
+
*/
|
|
9
|
+
label?: HeaderButtonProps['label'];
|
|
10
|
+
/**
|
|
11
|
+
* Change icon button with tooltip into button
|
|
12
|
+
*/
|
|
13
|
+
extend?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Properties applied to tooltip
|
|
16
|
+
*/
|
|
17
|
+
tooltipProps?: HeaderButtonProps['tooltipProps'];
|
|
18
|
+
/**
|
|
19
|
+
* Properties applied to badge
|
|
20
|
+
*/
|
|
21
|
+
badgeProps?: HeaderButtonProps['badgeProps'];
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated use badgeProps instead
|
|
24
|
+
*/
|
|
25
|
+
indicator?: HeaderButtonProps['indicator'];
|
|
26
|
+
/**
|
|
27
|
+
* Props applied to HeaderButton
|
|
28
|
+
*/
|
|
29
|
+
headerButtonProps?: HeaderButtonProps;
|
|
30
|
+
/**
|
|
31
|
+
* Icon for the HeaderButton
|
|
32
|
+
* @default BellIcon
|
|
33
|
+
*/
|
|
34
|
+
icon?: ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* Props for the Popper component
|
|
37
|
+
*/
|
|
38
|
+
popperProps?: PopperProps;
|
|
39
|
+
/**
|
|
40
|
+
* Props applied to ClickAwayListener
|
|
41
|
+
*/
|
|
42
|
+
clickAwayListenerProps?: ClickAwayListenerProps;
|
|
43
|
+
/**
|
|
44
|
+
* Props applied to Fade
|
|
45
|
+
*/
|
|
46
|
+
fadeProps?: FadeProps;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* HeaderButton that opens NotificationCenter
|
|
50
|
+
*/
|
|
51
|
+
export declare const NotificationCenterHeaderButton: FC<NotificationCenterHeaderButtonProps>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__rest as o}from"tslib";import{jsxs as e,Fragment as t,jsx as r}from"react/jsx-runtime";import{forwardRef as i,useState as n}from"react";import{HeaderButton as s}from"../header/HeaderButton.js";import{BellIcon as a}from"../icon/stroke/BellIcon.js";import{Popper as c,ClickAwayListener as p,Fade as l}from"@mui/material";import{NotificationCenter as d}from"./NotificationCenter.js";const m=i(((i,m)=>{var{popperProps:f,clickAwayListenerProps:b,fadeProps:P,label:u="Notifications",extend:g,tooltipProps:j,badgeProps:x,indicator:h,headerButtonProps:O,icon:k,onClick:B}=i,C=o(i,["popperProps","clickAwayListenerProps","fadeProps","label","extend","tooltipProps","badgeProps","indicator","headerButtonProps","icon","onClick"]);const[w,y]=n(null),A=null!=f?f:{},{sx:I}=A,N=o(A,["sx"]);return e(t,{children:[r(s,Object.assign({label:u,extend:null!=g&&g,tooltipProps:Object.assign(Object.assign({},w&&{open:!1}),j),badgeProps:x,indicator:h,onClick:o=>{null==B||B(o),y(o.currentTarget)},ref:m,"data-testid":"NotificationCenterHeaderButton"},O,{children:k||r(a,{})})),r(c,Object.assign({open:!!w,anchorEl:w,placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[0,18]}}],transition:!0,sx:Object.assign({zIndex:o=>o.zIndex.appBar+10},I)},N,{children:({TransitionProps:o})=>r(p,Object.assign({onClickAway:()=>y(null)},b,{children:r(l,Object.assign({},o,P,{children:r(d,Object.assign({},C,{ref:void 0}))}))}))}))]})}));export{m as NotificationCenterHeaderButton};
|
|
2
|
+
//# sourceMappingURL=NotificationCenterHeaderButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationCenterHeaderButton.js","sources":["../../../src/components/notification/NotificationCenterHeaderButton.tsx"],"sourcesContent":["import React, { FC, forwardRef, ReactNode, useState } from 'react';\nimport { HeaderButton, HeaderButtonProps } from '@/src/components/header/HeaderButton';\nimport { BellIcon } from '@/src/components/icon/stroke/BellIcon';\nimport { Fade, ClickAwayListener, ClickAwayListenerProps, Popper, PopperProps, FadeProps } from '@mui/material';\nimport { NotificationCenter, NotificationCenterProps } from './NotificationCenter';\n\nexport interface NotificationCenterHeaderButtonProps extends NotificationCenterProps {\n /**\n * Label for the tooltip or the text button\n */\n label?: HeaderButtonProps['label'];\n /**\n * Change icon button with tooltip into button\n */\n extend?: boolean;\n /**\n * Properties applied to tooltip\n */\n tooltipProps?: HeaderButtonProps['tooltipProps'];\n /**\n * Properties applied to badge\n */\n badgeProps?: HeaderButtonProps['badgeProps'];\n /**\n * @deprecated use badgeProps instead\n */\n indicator?: HeaderButtonProps['indicator'];\n /**\n * Props applied to HeaderButton\n */\n headerButtonProps?: HeaderButtonProps;\n /**\n * Icon for the HeaderButton\n * @default BellIcon\n */\n icon?: ReactNode;\n /**\n * Props for the Popper component\n */\n popperProps?: PopperProps;\n /**\n * Props applied to ClickAwayListener\n */\n clickAwayListenerProps?: ClickAwayListenerProps;\n /**\n * Props applied to Fade\n */\n fadeProps?: FadeProps;\n}\n\n/**\n * HeaderButton that opens NotificationCenter\n */\nexport const NotificationCenterHeaderButton: FC<NotificationCenterHeaderButtonProps> = forwardRef(\n (\n {\n popperProps,\n clickAwayListenerProps,\n fadeProps,\n label = 'Notifications',\n extend,\n tooltipProps,\n badgeProps,\n indicator,\n headerButtonProps,\n icon,\n onClick,\n ...rest\n },\n ref,\n ) => {\n const [anchor, setAnchor] = useState(null);\n const { sx: popperSx, ...restPopper } = popperProps ?? {};\n\n return (\n <>\n <HeaderButton\n label={label}\n extend={extend ?? false}\n tooltipProps={{\n ...(anchor && { open: false }),\n ...tooltipProps,\n }}\n badgeProps={badgeProps}\n indicator={indicator}\n onClick={(e) => {\n onClick?.(e);\n setAnchor(e.currentTarget);\n }}\n ref={ref}\n data-testid=\"NotificationCenterHeaderButton\"\n {...headerButtonProps}\n >\n {icon || <BellIcon />}\n </HeaderButton>\n <Popper\n open={!!anchor}\n anchorEl={anchor}\n placement=\"bottom-end\"\n modifiers={[\n {\n name: 'offset',\n options: {\n offset: [0, 18],\n },\n },\n ]}\n transition\n sx={{\n zIndex: (theme) => theme.zIndex.appBar + 10,\n ...popperSx,\n }}\n {...restPopper}\n >\n {({ TransitionProps }) => (\n <ClickAwayListener onClickAway={() => setAnchor(null)} {...clickAwayListenerProps}>\n <Fade {...TransitionProps} {...fadeProps}>\n <NotificationCenter {...rest} ref={undefined} />\n </Fade>\n </ClickAwayListener>\n )}\n </Popper>\n </>\n );\n },\n);\n"],"names":["NotificationCenterHeaderButton","forwardRef","_a","ref","popperProps","clickAwayListenerProps","fadeProps","label","extend","tooltipProps","badgeProps","indicator","headerButtonProps","icon","onClick","rest","__rest","anchor","setAnchor","useState","_b","sx","popperSx","restPopper","_jsxs","_jsx","HeaderButton","Object","assign","open","e","currentTarget","children","BellIcon","Popper","anchorEl","placement","modifiers","name","options","offset","transition","zIndex","theme","appBar","TransitionProps","ClickAwayListener","onClickAway","Fade","NotificationCenter","undefined"],"mappings":"oYAqDa,MAAAA,EAA0EC,GACrF,CACEC,EAcAC,KAdA,IAAAC,YACEA,EAAWC,uBACXA,EAAsBC,UACtBA,EAASC,MACTA,EAAQ,gBAAeC,OACvBA,EAAMC,aACNA,EAAYC,WACZA,EAAUC,UACVA,EAASC,kBACTA,EAAiBC,KACjBA,EAAIC,QACJA,GAAOZ,EACJa,EAZLC,EAAAd,EAAA,CAAA,cAAA,yBAAA,YAAA,QAAA,SAAA,eAAA,aAAA,YAAA,oBAAA,OAAA,YAgBA,MAAOe,EAAQC,GAAaC,EAAS,MAC/BC,EAAkChB,QAAAA,EAAe,IAA/CiB,GAAIC,GAA6CF,EAAhCG,EAAnBP,EAAAI,EAAA,CAAA,OAEN,OACEI,eACEC,EAACC,iBACCnB,MAAOA,EACPC,OAAQA,SAAAA,EACRC,aAAYkB,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EACNX,GAAU,CAAEY,MAAM,IACnBpB,GAELC,WAAYA,EACZC,UAAWA,EACXG,QAAUgB,IACRhB,SAAAA,EAAUgB,GACVZ,EAAUY,EAAEC,cAAc,EAE5B5B,IAAKA,gBACO,kCACRS,EAAiB,CAAAoB,SAEpBnB,GAAQY,EAACQ,EAAQ,CAAA,MAEpBR,EAACS,EAAMP,OAAAC,OAAA,CACLC,OAAQZ,EACRkB,SAAUlB,EACVmB,UAAU,aACVC,UAAW,CACT,CACEC,KAAM,SACNC,QAAS,CACPC,OAAQ,CAAC,EAAG,OAIlBC,YAAU,EACVpB,GAAEM,OAAAC,OAAA,CACAc,OAASC,GAAUA,EAAMD,OAAOE,OAAS,IACtCtB,IAEDC,YAEH,EAAGsB,qBACFpB,EAACqB,EAAiBnB,OAAAC,OAAA,CAACmB,YAAa,IAAM7B,EAAU,OAAWb,EACzD,CAAA2B,SAAAP,EAACuB,EAAIrB,OAAAC,OAAA,CAAA,EAAKiB,EAAqBvC,EAC7B,CAAA0B,SAAAP,EAACwB,EAAkBtB,OAAAC,OAAA,CAAA,EAAKb,EAAI,CAAEZ,SAAK+C,gBAK1C"}
|
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* Content of an page
|
|
5
|
-
* @requires
|
|
6
|
-
*/
|
|
7
|
-
children: React.ReactNode;
|
|
1
|
+
import React, { ElementType } from 'react';
|
|
2
|
+
import { BoxProps } from '@mui/material';
|
|
3
|
+
export interface PageLayoutProps extends BoxProps<ElementType> {
|
|
8
4
|
/**
|
|
9
5
|
* React node that renders layout header
|
|
10
|
-
* @default undefined
|
|
11
6
|
*/
|
|
12
7
|
header?: React.ReactNode;
|
|
13
8
|
/**
|
|
14
9
|
* React node that renders layout footer
|
|
15
|
-
* @default undefined
|
|
16
10
|
*/
|
|
17
11
|
footer?: React.ReactNode;
|
|
18
12
|
/**
|
|
@@ -24,7 +18,7 @@ export type PageLayoutProps = {
|
|
|
24
18
|
*/
|
|
25
19
|
headerPosition?: 'static' | 'fixed' | 'slide';
|
|
26
20
|
/**
|
|
27
|
-
* Specifies threshold that is used to hide header
|
|
21
|
+
* Specifies threshold that is used to hide header for the headerPosition="slide"
|
|
28
22
|
* @default 250
|
|
29
23
|
*/
|
|
30
24
|
headerSlideThreshold?: number;
|
|
@@ -33,5 +27,25 @@ export type PageLayoutProps = {
|
|
|
33
27
|
* @default false
|
|
34
28
|
*/
|
|
35
29
|
wrapContent?: boolean;
|
|
36
|
-
|
|
30
|
+
/**
|
|
31
|
+
* Properties applied to header wrapper
|
|
32
|
+
*/
|
|
33
|
+
headerProps?: BoxProps<ElementType>;
|
|
34
|
+
/**
|
|
35
|
+
* Properties applied to header wrapper
|
|
36
|
+
*/
|
|
37
|
+
headerContainerProps?: BoxProps<ElementType>;
|
|
38
|
+
/**
|
|
39
|
+
* Properties applied to root header wrapper
|
|
40
|
+
*/
|
|
41
|
+
headerWrapperProps?: BoxProps<ElementType>;
|
|
42
|
+
/**
|
|
43
|
+
* Properties applied to page content wrapper
|
|
44
|
+
*/
|
|
45
|
+
contentProps?: BoxProps<ElementType>;
|
|
46
|
+
/**
|
|
47
|
+
* Properties applied to footer wrapper
|
|
48
|
+
*/
|
|
49
|
+
footerProps?: BoxProps<ElementType>;
|
|
50
|
+
}
|
|
37
51
|
export declare const PageLayout: React.FC<PageLayoutProps>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__rest as e}from"tslib";import{jsxs as t,jsx as r}from"react/jsx-runtime";import{forwardRef as a,useState as i,useCallback as o}from"react";import{useTheme as s,useScrollTrigger as n,Box as d,Slide as c,Container as h}from"@mui/material";const p=a(((a,p)=>{var{children:l,sx:g,header:m,footer:x,headerPosition:f="static",headerSlideThreshold:b=250,wrapContent:P=!1,headerProps:j,headerContainerProps:u,headerWrapperProps:O,contentProps:w,footerProps:y}=a,C=e(a,["children","sx","header","footer","headerPosition","headerSlideThreshold","wrapContent","headerProps","headerContainerProps","headerWrapperProps","contentProps","footerProps"]);const v=s(),L=null!=O?O:{},{sx:W}=L,z=e(L,["sx"]),B=null!=u?u:{},{sx:H,className:N}=B,S=e(B,["sx","className"]),[T,I]=i(parseFloat(String(v.mixins.toolbar.minHeight))),R=o((e=>{"static"!==f&&e&&new ResizeObserver((()=>{I(e.offsetHeight)})).observe(e)}),["static"!==f]),k=n({target:window,threshold:b});return t(d,Object.assign({sx:Object.assign({position:"relative",minHeight:"100vh",backgroundColor:"surface.primary",display:"grid",gridTemplateRows:[m&&"max-content","auto",x&&"max-content"].filter(Boolean).join(" ")},g),"data-testid":"PageLayout",ref:p},C,{children:[m&&r(d,Object.assign({sx:Object.assign(Object.assign({},"static"!==f&&T&&{height:T}),W),"data-testid":"PageLayout.headerWrapper"},z,{children:r(d,Object.assign({},"slide"===f&&{component:c,appear:!1,direction:"down",in:!k},{sx:Object.assign(Object.assign({},"static"!==f&&{position:"fixed",top:"0",left:"0",right:"0",zIndex:v.zIndex.appBar}),H),className:["static"!==f?"mui-fixed":"",N].filter(Boolean).join(", ")},S,{children:r(d,Object.assign({ref:R,"data-testid":"PageLayout.header"},j,{children:m}))}))})),r(d,Object.assign({},P&&{component:h,maxWidth:"xl"},{"data-testid":"Container"},w,{children:l})),x&&r(d,Object.assign({"data-testid":"PageLayout.footer"},y,{children:x}))]}))}));export{p as PageLayout};
|
|
2
|
+
//# sourceMappingURL=PageLayout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageLayout.js","sources":["../../../src/components/pageLayout/PageLayout.tsx"],"sourcesContent":["import React, { useCallback, useState, ElementType, forwardRef } from 'react';\nimport { Box, BoxProps, useScrollTrigger, Slide, Container, useTheme } from '@mui/material';\n\nexport interface PageLayoutProps extends BoxProps<ElementType> {\n /**\n * React node that renders layout header\n */\n header?: React.ReactNode;\n /**\n * React node that renders layout footer\n */\n footer?: React.ReactNode;\n /**\n * Specifies position of header\n * - static: header is fixed on top of the content\n * - fixed: header is visible while user scrolls the content\n * - slide: header is visible until user scrolls down beyond `headerSlideThreshold`, header will reappear when user scrolls up\n * @default static\n */\n headerPosition?: 'static' | 'fixed' | 'slide';\n /**\n * Specifies threshold that is used to hide header for the headerPosition=\"slide\"\n * @default 250\n */\n headerSlideThreshold?: number;\n /**\n * Specifies if content should be automatically wrapped into container component\n * @default false\n */\n wrapContent?: boolean;\n /**\n * Properties applied to header wrapper\n */\n headerProps?: BoxProps<ElementType>;\n /**\n * Properties applied to header wrapper\n */\n headerContainerProps?: BoxProps<ElementType>;\n /**\n * Properties applied to root header wrapper\n */\n headerWrapperProps?: BoxProps<ElementType>;\n /**\n * Properties applied to page content wrapper\n */\n contentProps?: BoxProps<ElementType>;\n /**\n * Properties applied to footer wrapper\n */\n footerProps?: BoxProps<ElementType>;\n}\n\nexport const PageLayout: React.FC<PageLayoutProps> = forwardRef(\n (\n {\n children,\n sx,\n header,\n footer,\n headerPosition = 'static',\n headerSlideThreshold = 250,\n wrapContent = false,\n headerProps,\n headerContainerProps,\n headerWrapperProps,\n contentProps,\n footerProps,\n ...rest\n },\n ref,\n ) => {\n const theme = useTheme();\n const { sx: headerWrapperSx, ...restHeaderWrapper } = headerWrapperProps ?? {};\n const {\n sx: headerContainerSx,\n className: headerContainerClassName,\n ...restHeaderContainer\n } = headerContainerProps ?? {};\n // header height to take actual space in dom for the fixed/slide variants\n const [headerHeight, setHeaderHeight] = useState<number>(parseFloat(String(theme.mixins.toolbar.minHeight)));\n const headerContainerRef = useCallback(\n (element: HTMLElement) => {\n if (headerPosition === 'static' || !element) {\n return;\n }\n new ResizeObserver(() => {\n setHeaderHeight(element.offsetHeight);\n }).observe(element);\n },\n [headerPosition !== 'static'],\n );\n // trigger hide of the header during scroll\n const slideTrigger = useScrollTrigger({\n target: window,\n threshold: headerSlideThreshold,\n });\n\n return (\n <Box\n sx={{\n position: 'relative',\n minHeight: '100vh',\n backgroundColor: 'surface.primary',\n display: 'grid',\n gridTemplateRows: [header && 'max-content', 'auto', footer && 'max-content'].filter(Boolean).join(' '),\n ...sx,\n }}\n data-testid=\"PageLayout\"\n ref={ref}\n {...rest}\n >\n {header && (\n <Box\n sx={{\n ...(headerPosition !== 'static' && headerHeight && { height: headerHeight }),\n ...headerWrapperSx,\n }}\n data-testid=\"PageLayout.headerWrapper\"\n {...restHeaderWrapper}\n >\n <Box\n {...(headerPosition === 'slide' && {\n component: Slide,\n appear: false,\n direction: 'down',\n in: !slideTrigger,\n })}\n sx={{\n ...(headerPosition !== 'static' && {\n position: 'fixed',\n top: '0',\n left: '0',\n right: '0',\n zIndex: theme.zIndex.appBar,\n }),\n ...headerContainerSx,\n }}\n className={[headerPosition !== 'static' ? 'mui-fixed' : '', headerContainerClassName]\n .filter(Boolean)\n .join(', ')}\n {...restHeaderContainer}\n >\n <Box ref={headerContainerRef} data-testid=\"PageLayout.header\" {...headerProps}>\n {header}\n </Box>\n </Box>\n </Box>\n )}\n <Box {...(wrapContent && { component: Container, maxWidth: 'xl' })} data-testid=\"Container\" {...contentProps}>\n {children}\n </Box>\n {footer && (\n <Box data-testid=\"PageLayout.footer\" {...footerProps}>\n {footer}\n </Box>\n )}\n </Box>\n );\n },\n);\n"],"names":["PageLayout","forwardRef","_a","ref","children","sx","header","footer","headerPosition","headerSlideThreshold","wrapContent","headerProps","headerContainerProps","headerWrapperProps","contentProps","footerProps","rest","__rest","theme","useTheme","_b","headerWrapperSx","restHeaderWrapper","_c","headerContainerSx","className","headerContainerClassName","restHeaderContainer","headerHeight","setHeaderHeight","useState","parseFloat","String","mixins","toolbar","minHeight","headerContainerRef","useCallback","element","ResizeObserver","offsetHeight","observe","slideTrigger","useScrollTrigger","target","window","threshold","_jsxs","Box","Object","assign","position","backgroundColor","display","gridTemplateRows","filter","Boolean","join","_jsx","height","component","Slide","appear","direction","in","top","left","right","zIndex","appBar","Container","maxWidth"],"mappings":"qPAoDa,MAAAA,EAAwCC,GACnD,CACEC,EAeAC,KAfA,IAAAC,SACEA,EAAQC,GACRA,EAAEC,OACFA,EAAMC,OACNA,EAAMC,eACNA,EAAiB,SAAQC,qBACzBA,EAAuB,IAAGC,YAC1BA,GAAc,EAAKC,YACnBA,EAAWC,qBACXA,EAAoBC,mBACpBA,EAAkBC,aAClBA,EAAYC,YACZA,GAEDb,EADIc,EAAIC,EAAAf,EAbT,kLAiBA,MAAMgB,EAAQ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sD,EAACV,EAAIC,OAAAC,OAAA,CAAA/C,IAAKiC,EAAgC,cAAA,qBAAwBzB,EAC/D,CAAAP,SAAAE,WAKToD,EAACV,EAAGC,OAAAC,OAAA,CAAA,EAAMxC,GAAe,CAAEkD,UAAWU,EAAWC,SAAU,MAAqB,CAAA,cAAA,aAAgBzD,EAC7F,CAAAV,SAAAA,KAEFG,GACCmD,EAACV,EAAGC,OAAAC,OAAA,CAAA,cAAa,qBAAwBnC,EAAW,CAAAX,SACjDG,QAGD"}
|
|
@@ -1,90 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import React
|
|
3
|
-
export interface PaginationProps extends
|
|
4
|
-
/**
|
|
5
|
-
* The total number of pages.
|
|
6
|
-
*/
|
|
7
|
-
count?: number;
|
|
8
|
-
/**
|
|
9
|
-
The page selected by default
|
|
10
|
-
*/
|
|
11
|
-
defaultPage?: number;
|
|
1
|
+
import { PaginationProps as MuiPaginationProps } from '@mui/material';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface PaginationProps extends MuiPaginationProps {
|
|
12
4
|
/**
|
|
13
5
|
* If true, a pagination will be disabled.
|
|
6
|
+
* @deprecated It is recommended to use `disabled` prop instead of `isDisabled`
|
|
14
7
|
*/
|
|
15
8
|
isDisabled?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Set the current page number controlled from outside.
|
|
18
|
-
*/
|
|
19
|
-
page?: number;
|
|
20
9
|
/**
|
|
21
10
|
* The label for previous button.
|
|
22
|
-
* @deprecated
|
|
11
|
+
* @deprecated No longer used, property has no effect
|
|
23
12
|
*/
|
|
24
13
|
prevButtonLabel?: string;
|
|
25
14
|
/**
|
|
26
15
|
* The label for next button.
|
|
27
|
-
* @deprecated
|
|
16
|
+
* @deprecated No longer used, property has no effect
|
|
28
17
|
*/
|
|
29
18
|
nextButtonLabel?: string;
|
|
30
|
-
/**
|
|
31
|
-
* If true, hide the next-page button.
|
|
32
|
-
*/
|
|
33
|
-
hideNextButton?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* If true, hide the previous-page button.
|
|
36
|
-
*/
|
|
37
|
-
hidePrevButton?: boolean;
|
|
38
19
|
/**
|
|
39
20
|
* If true, hide the first-page button.
|
|
21
|
+
* @deprecated Use showFirstButton instead
|
|
40
22
|
*/
|
|
41
23
|
hideFirstButton?: boolean;
|
|
42
24
|
/**
|
|
43
25
|
* If true, hide the last-page button.
|
|
26
|
+
* @deprecated Use showLastButton instead
|
|
44
27
|
*/
|
|
45
28
|
hideLastButton?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Number of always visible pages at the beginning and end.
|
|
48
|
-
*/
|
|
49
|
-
boundaryCount?: number;
|
|
50
|
-
/**
|
|
51
|
-
* Override or extend the styles applied to the component.
|
|
52
|
-
*/
|
|
53
|
-
classes?: object;
|
|
54
|
-
/**
|
|
55
|
-
* Accepts a function which returns a string value that provides a user-friendly name for the current page.
|
|
56
|
-
*/
|
|
57
|
-
getItemAriaLabel?: (type: string, page: number, selected: boolean) => string;
|
|
58
|
-
/**
|
|
59
|
-
* If true, show the first-page button.
|
|
60
|
-
* @deprecated showFirstButton not working and is deprecated as first-button should be visible by default according to design. Use hideFirstButton property instead.
|
|
61
|
-
*/
|
|
62
|
-
showFirstButton?: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* If true, show the last-page button.
|
|
65
|
-
* @deprecated showLastButton not working and is deprecated as last-button should be visible by default according to design. Use hideLastButton property instead.
|
|
66
|
-
*/
|
|
67
|
-
showLastButton?: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Number of always visible pages before and after the current page.
|
|
70
|
-
*/
|
|
71
|
-
siblingCount?: number;
|
|
72
|
-
/**
|
|
73
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
74
|
-
*/
|
|
75
|
-
sx?: SxProps<Theme>;
|
|
76
|
-
/**
|
|
77
|
-
* On click callback.
|
|
78
|
-
*/
|
|
79
|
-
onClick?: (e: React.MouseEvent<HTMLElement>) => void;
|
|
80
29
|
/**
|
|
81
30
|
* enable or disable direction label. mobile only
|
|
82
|
-
* @deprecated
|
|
31
|
+
* @deprecated No longer used, property has no effect
|
|
83
32
|
*/
|
|
84
33
|
hideLabels?: boolean;
|
|
85
34
|
/**
|
|
86
35
|
* callback for value change handling. takes the new value as its only parameter
|
|
36
|
+
* @deprecated provide the callback in the onChange function
|
|
87
37
|
**/
|
|
88
38
|
onValueChange?: (payload: number) => void;
|
|
89
39
|
}
|
|
90
|
-
|
|
40
|
+
/**
|
|
41
|
+
* @mui Pagination that contain props parser for the previous implementation
|
|
42
|
+
*/
|
|
43
|
+
export declare const Pagination: React.ForwardRefExoticComponent<Omit<PaginationProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as t}from"tslib";import{jsx as e}from"react/jsx-runtime";import{Pagination as o}from"@mui/material";import{forwardRef as a}from"react";const n=a(((a,n)=>{var{isDisabled:s,page:i,hideFirstButton:r,hideLastButton:u,showFirstButton:l,showLastButton:h,hideLabels:d,onValueChange:B,disabled:b,onChange:m,prevButtonLabel:L,nextButtonLabel:g}=a,p=t(a,["isDisabled","page","hideFirstButton","hideLastButton","showFirstButton","showLastButton","hideLabels","onValueChange","disabled","onChange","prevButtonLabel","nextButtonLabel"]);return e(o,Object.assign({},p,{ref:n,disabled:b||s,page:i&&m?i:void 0,onChange:(t,e)=>{null==m||m(t,e),null==B||B(e)},showFirstButton:l||!r,showLastButton:h||!u}))}));export{n as Pagination};
|
|
2
2
|
//# sourceMappingURL=pagination.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.js","sources":["../../../src/components/pagination/pagination.tsx"],"sourcesContent":["import {\n SxProps,\n Theme,\n styled,\n Pagination as MuiPagination,\n PaginationItem as MuiPaginationItem,\n TextField,\n IconButton,\n} from '@mui/material';\nimport React, { HTMLAttributes, forwardRef, useCallback, useEffect, useState } from 'react';\nimport { ternaryCondition } from '../../utils/utilities';\nimport { Icon, IconNameProp } from '../icon';\n\nexport interface PaginationProps extends Omit<HTMLAttributes<HTMLButtonElement>, 'color' | 'size'> {\n /**\n * The total number of pages.\n */\n count?: number;\n\n /**\n\t The page selected by default\n\t */\n defaultPage?: number;\n\n /**\n * If true, a pagination will be disabled.\n */\n\n isDisabled?: boolean;\n\n /**\n * Set the current page number controlled from outside.\n */\n\n page?: number;\n /**\n * The label for previous button.\n * @deprecated Previous button label not used by design, will be deleted in future versions\n */\n prevButtonLabel?: string;\n\n /**\n * The label for next button.\n * @deprecated Previous button label not used by design, will be deleted in future versions\n */\n nextButtonLabel?: string;\n /**\n * If true, hide the next-page button.\n */\n hideNextButton?: boolean;\n\n /**\n * If true, hide the previous-page button.\n */\n hidePrevButton?: boolean;\n\n /**\n * If true, hide the first-page button.\n */\n hideFirstButton?: boolean;\n\n /**\n * If true, hide the last-page button.\n */\n hideLastButton?: boolean;\n\n /**\n * Number of always visible pages at the beginning and end.\n */\n boundaryCount?: number;\n /**\n * Override or extend the styles applied to the component.\n */\n classes?: object;\n /**\n *\tAccepts a function which returns a string value that provides a user-friendly name for the current page.\n */\n getItemAriaLabel?: (type: string, page: number, selected: boolean) => string;\n /**\n * If true, show the first-page button.\n * @deprecated showFirstButton not working and is deprecated as first-button should be visible by default according to design. Use hideFirstButton property instead.\n */\n showFirstButton?: boolean;\n /**\n * If true, show the last-page button.\n * @deprecated showLastButton not working and is deprecated as last-button should be visible by default according to design. Use hideLastButton property instead.\n */\n showLastButton?: boolean;\n /**\n * Number of always visible pages before and after the current page.\n */\n siblingCount?: number;\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx?: SxProps<Theme>;\n /**\n * On click callback.\n */\n onClick?: (e: React.MouseEvent<HTMLElement>) => void;\n /**\n * enable or disable direction label. mobile only\n * @deprecated hideLabels not used by design, will be deleted in future versions\n */\n hideLabels?: boolean;\n /**\n * callback for value change handling. takes the new value as its only parameter\n **/\n onValueChange?: (payload: number) => void;\n}\n\n/**\n * @description SkodaFlow Pagination component.\n * Properties are inherited from HTML div Attribetes element.\n * @param props PaginationProps\n * @returns React Functional Component\n */\n\nconst isPageNumberValid = (pageNumber: any, count: number) => {\n return (\n pageNumber === '' ||\n (typeof pageNumber === 'number' && pageNumber - 1 > 0 && pageNumber + 1 <= count) ||\n (typeof parseInt(pageNumber) === 'number' && parseInt(pageNumber) > 0 && parseInt(pageNumber) <= count)\n );\n};\n\nconst mobileIconButton = (\n muiIcon: IconNameProp,\n onClick: () => void,\n disabled?: boolean,\n direction?: 'forward' | 'back',\n hideLabel?: boolean,\n label?: string,\n) => (\n <IconButton aria-label=\"Navigate\" variant=\"standard\" onClick={onClick} disabled={disabled}>\n {direction === 'forward' && !hideLabel && label}\n <Icon name={muiIcon}></Icon>\n {direction === 'back' && !hideLabel && label}\n </IconButton>\n);\n\nexport const Pagination = forwardRef<HTMLDivElement, PaginationProps>(\n (\n {\n count,\n isDisabled,\n page,\n prevButtonLabel,\n nextButtonLabel,\n defaultPage,\n hideNextButton,\n hidePrevButton,\n hideFirstButton,\n hideLastButton,\n hideLabels,\n onValueChange,\n ...props\n },\n ref,\n ) => {\n const initialPage = defaultPage || 1;\n const [currentPageNumber, setCurrentPageNumber] = useState<any>(initialPage);\n const [isFirstMount, setIsFirstMount] = useState(true);\n const [prevStatePageNumber, setPrevStatePageNumber] = useState<any>();\n\n useEffect(() => {\n currentPageNumber && onValueChange && onValueChange(currentPageNumber);\n }, [currentPageNumber, onValueChange]);\n\n useEffect(() => {\n isFirstMount ? setIsFirstMount(false) : page && !isDisabled && setCurrentPageNumber(page);\n }, [isDisabled, isFirstMount, page]);\n\n const handleChange = useCallback((event: React.ChangeEvent<unknown>, pageNumber: number) => {\n setCurrentPageNumber(pageNumber);\n }, []);\n\n const handleValueChange = (payload: string) => {\n if (payload === '') {\n setPrevStatePageNumber(currentPageNumber);\n setCurrentPageNumber(payload);\n }\n const castToNum = parseInt(payload);\n if (typeof castToNum === 'number' && isPageNumberValid(castToNum, count)) {\n setPrevStatePageNumber(castToNum);\n setCurrentPageNumber(castToNum);\n }\n };\n\n const mobilePagination = () => (\n <div\n style={{ display: 'flex', flexDirection: 'column' }}\n className={`mobileView ${isDisabled ? 'paginationDisabled' : ''}`}\n >\n <div className=\"mobileContainer\">\n {mobileIconButton(\n 'chevron-previous',\n () => isPageNumberValid(currentPageNumber - 1, count) && setCurrentPageNumber(1),\n !isPageNumberValid(currentPageNumber - 1, count),\n )}\n {mobileIconButton(\n 'chevron-left',\n () => isPageNumberValid(currentPageNumber - 1, count) && setCurrentPageNumber(currentPageNumber - 1),\n !isPageNumberValid(currentPageNumber - 1, count),\n 'back',\n hideLabels,\n prevButtonLabel,\n )}\n <TextField\n className=\"textFieldContainer\"\n value={currentPageNumber}\n inputProps={{ inputMode: 'numeric', pattern: `[1-${count}]*` }}\n onChange={(val: any) => handleValueChange(val.target.value)}\n onBlur={() => currentPageNumber === '' && setCurrentPageNumber(prevStatePageNumber)}\n />\n {mobileIconButton(\n 'chevron-right',\n () => isPageNumberValid(currentPageNumber + 1, count) && setCurrentPageNumber(currentPageNumber + 1),\n !isPageNumberValid(currentPageNumber + 1, count),\n 'forward',\n hideLabels,\n nextButtonLabel,\n )}\n {mobileIconButton(\n 'chevron-next',\n () => isPageNumberValid(currentPageNumber + 1, count) && setCurrentPageNumber(count),\n !isPageNumberValid(currentPageNumber + 1, count),\n )}\n </div>\n </div>\n );\n\n const desktopPagination = () => (\n <MuiPagination\n className=\"desktopView\"\n {...props}\n shape=\"rounded\"\n count={count}\n disabled={isDisabled}\n page={currentPageNumber}\n hideNextButton={hideNextButton}\n hidePrevButton={hidePrevButton}\n showFirstButton={!hideFirstButton}\n showLastButton={!hideLastButton}\n ref={ref}\n onChange={handleChange}\n renderItem={(item) => (\n <MuiPaginationItem\n className={ternaryCondition(hidePrevButton, false, 'MuiPagination-prev', '')}\n components={{\n first: () => <Icon name=\"previous\" fontSize=\"small\" />,\n last: () => <Icon name=\"next\" fontSize=\"small\" />,\n previous: () => (\n <>\n <Icon name=\"chevron-left\" fontSize=\"small\" />\n <>{prevButtonLabel}</>\n </>\n ),\n next: () => (\n <>\n <>{nextButtonLabel}</>\n <Icon name=\"chevron-right\" fontSize=\"small\" />\n </>\n ),\n }}\n {...item}\n />\n )}\n />\n );\n\n return (\n <PaginationStyled data-testid=\"Pagination-wrapper\">\n {desktopPagination()} {mobilePagination()}\n </PaginationStyled>\n );\n },\n);\n\n/**\n * @description Pagination styling definition based on props\n */\nconst PaginationStyled = styled('div')<{ theme?: any }>(({ theme }) => {\n let style = {};\n const flexStyle = {\n alignItems: 'center',\n display: 'flex',\n justifyContent: 'center',\n width: '100%',\n };\n\n style = {\n [theme.breakpoints.up('md')]: {\n '& .mobileView': {\n display: 'none!important',\n },\n },\n [theme.breakpoints.down('md')]: {\n '& .desktopView': {\n display: 'none!important',\n },\n },\n '& .desktopView': {\n '& .MuiButton-startIcon': {\n marginRight: '8px',\n display: 'inline-flex',\n },\n '& .MuiButton-endIcon': {\n marginLeft: '8px',\n display: 'inline-flex',\n },\n },\n '& .mobileView': {\n ...flexStyle,\n flexDirection: 'column',\n flexWrap: 'nowrap',\n '& .mobileContainer': {\n ...flexStyle,\n flexWrap: 'nowrap',\n },\n '& .textFieldContainer': {\n height: '36px',\n margin: '0 34px',\n '& input, fieldset': {\n backgroundColor: theme.palette.transparent.primary,\n border: 0,\n borderRadius: '4px',\n fontSize: '16px',\n fontWeight: '400',\n height: '36px',\n lineHeight: '36px',\n minWidth: '44px',\n maxWidth: '50px',\n padding: '0 4px',\n textAlign: 'center',\n color: theme.palette.text.primary,\n },\n '& fieldset': {\n visibility: 'hidden',\n },\n '& div': {\n '&::before': {\n borderBottom: 0,\n },\n '&::after': {\n borderBottom: 0,\n },\n },\n },\n '& .controllerContainer': {\n '& .arrowLabel': {\n color: theme.palette.text.primary,\n fontSize: '16px',\n fontWeight: '400',\n lineHeight: '16px',\n },\n '& .MuiButton-startIcon': {\n marginRight: '8px',\n display: 'inline-flex',\n },\n '& .MuiButton-endIcon': {\n marginLeft: '8px',\n display: 'inline-flex',\n },\n '& .MuiIcon-root': {\n fontSize: '16px',\n width: '20px',\n height: '20px',\n },\n },\n '& .counter_label': {\n color: theme.palette.text.primary,\n fontSize: '12px',\n fontWeight: '400',\n lineHeight: '24px',\n marginTop: '4px',\n },\n '&.paginationDisabled': {\n pointerEvents: 'none',\n '& .counter_label, .MuiIcon-root,.arrowLabel, input, fieldset': {\n color: theme.palette.disabled.primary,\n },\n },\n },\n };\n\n return style;\n});\n"],"names":["isPageNumberValid","pageNumber","count","parseInt","mobileIconButton","muiIcon","onClick","disabled","direction","hideLabel","label","_jsxs","IconButton","variant","children","_jsx","Icon","name","Pagination","forwardRef","_a","ref","isDisabled","page","prevButtonLabel","nextButtonLabel","defaultPage","hideNextButton","hidePrevButton","hideFirstButton","hideLastButton","hideLabels","onValueChange","props","__rest","initialPage","currentPageNumber","setCurrentPageNumber","useState","isFirstMount","setIsFirstMount","prevStatePageNumber","setPrevStatePageNumber","useEffect","handleChange","useCallback","event","PaginationStyled","MuiPagination","Object","assign","className","shape","showFirstButton","showLastButton","onChange","renderItem","item","MuiPaginationItem","ternaryCondition","components","first","fontSize","last","previous","_Fragment","next","style","display","flexDirection","TextField","value","inputProps","inputMode","pattern","val","payload","castToNum","handleValueChange","target","onBlur","styled","theme","flexStyle","alignItems","justifyContent","width","breakpoints","up","down","marginRight","marginLeft","flexWrap","height","margin","backgroundColor","palette","transparent","primary","border","borderRadius","fontWeight","lineHeight","minWidth","maxWidth","padding","textAlign","color","text","visibility","borderBottom","marginTop","pointerEvents"],"mappings":"iaAsHA,MAAMA,EAAoB,CAACC,EAAiBC,IAEzB,KAAfD,GACuB,iBAAfA,GAA2BA,EAAa,EAAI,GAAKA,EAAa,GAAKC,GAC1C,iBAAzBC,SAASF,IAA4BE,SAASF,GAAc,GAAKE,SAASF,IAAeC,EAI/FE,EAAmB,CACvBC,EACAC,EACAC,EACA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AwB,CACtBuB,WAAY,MACZvB,QAAS,eAEX,kBAAmB,CACjBN,SAAU,OACVwB,MAAO,OACPO,OAAQ,SAGZ,mBAAoB,CAClBc,MAAOzB,EAAMc,QAAQY,KAAKV,QAC1BpC,SAAU,OACVuC,WAAY,MACZC,WAAY,OACZS,UAAW,OAEb,uBAAwB,CACtBC,cAAe,OACf,+DAAgE,CAC9DL,MAAOzB,EAAMc,QAAQzF,SAAS2F,aAM/B/B,CAAK"}
|
|
1
|
+
{"version":3,"file":"pagination.js","sources":["../../../src/components/pagination/pagination.tsx"],"sourcesContent":["import { Pagination as MuiPagination, PaginationProps as MuiPaginationProps } from '@mui/material';\nimport React, { forwardRef } from 'react';\n\nexport interface PaginationProps extends MuiPaginationProps {\n /**\n * If true, a pagination will be disabled.\n * @deprecated It is recommended to use `disabled` prop instead of `isDisabled`\n */\n isDisabled?: boolean;\n\n /**\n * The label for previous button.\n * @deprecated No longer used, property has no effect\n */\n prevButtonLabel?: string;\n\n /**\n * The label for next button.\n * @deprecated No longer used, property has no effect\n */\n nextButtonLabel?: string;\n\n /**\n * If true, hide the first-page button.\n * @deprecated Use showFirstButton instead\n */\n hideFirstButton?: boolean;\n\n /**\n * If true, hide the last-page button.\n * @deprecated Use showLastButton instead\n */\n hideLastButton?: boolean;\n\n /**\n * enable or disable direction label. mobile only\n * @deprecated No longer used, property has no effect\n */\n hideLabels?: boolean;\n\n /**\n * callback for value change handling. takes the new value as its only parameter\n * @deprecated provide the callback in the onChange function\n **/\n onValueChange?: (payload: number) => void;\n}\n\n/**\n * @mui Pagination that contain props parser for the previous implementation\n */\nexport const Pagination = forwardRef<HTMLDivElement, PaginationProps>(\n (\n {\n isDisabled,\n page,\n hideFirstButton,\n hideLastButton,\n showFirstButton,\n showLastButton,\n hideLabels: _,\n onValueChange,\n disabled,\n onChange,\n prevButtonLabel: __,\n nextButtonLabel: ___,\n ...rest\n },\n ref,\n ) => {\n return (\n <MuiPagination\n {...rest}\n ref={ref}\n disabled={disabled || isDisabled}\n page={page && onChange ? page : undefined}\n onChange={(e, newPage) => {\n onChange?.(e, newPage);\n onValueChange?.(newPage);\n }}\n showFirstButton={showFirstButton || !hideFirstButton}\n showLastButton={showLastButton || !hideLastButton}\n />\n );\n },\n);\n"],"names":["Pagination","forwardRef","_a","ref","isDisabled","page","hideFirstButton","hideLastButton","showFirstButton","showLastButton","hideLabels","_","onValueChange","disabled","onChange","prevButtonLabel","__","nextButtonLabel","___","rest","__rest","_jsx","MuiPagination","Object","assign","undefined","e","newPage"],"mappings":"qJAkDa,MAAAA,EAAaC,GACxB,CACEC,EAeAC,KAfA,IAAAC,WACEA,EAAUC,KACVA,EAAIC,gBACJA,EAAeC,eACfA,EAAcC,gBACdA,EAAeC,eACfA,EACAC,WAAYC,EAACC,cACbA,EAAaC,SACbA,EAAQC,SACRA,EACAC,gBAAiBC,EACjBC,gBAAiBC,GAElBhB,EADIiB,EAAIC,EAAAlB,EAbT,oLAiBA,OACEmB,EAACC,EACKC,OAAAC,OAAA,CAAA,EAAAL,GACJhB,IAAKA,EACLU,SAAUA,GAAYT,EACtBC,KAAMA,GAAQS,EAAWT,OAAOoB,EAChCX,SAAU,CAACY,EAAGC,KACZb,SAAAA,EAAWY,EAAGC,GACdf,SAAAA,EAAgBe,EAAQ,EAE1BnB,gBAAiBA,IAAoBF,EACrCG,eAAgBA,IAAmBF,IACnC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as e}from"tslib";import{jsx as n}from"react/jsx-runtime";import{CloseIcon as a}from"../icon/stroke/CloseIcon.js";import{SearchIcon as r}from"../icon/stroke/SearchIcon.js";import{TextField as s,InputAdornment as o,IconButton as t}from"@mui/material";import{forwardRef as i,useState as l,useMemo as c,useEffect as p,useCallback as d}from"react";import u from"../../utils/useDebounce/useDebounce.js";import{updateFocusRingStyle as b}from"../focusring/focusring.js";import{getInteractiveStyle as m}from"../../materialui/button/interactive.js";const g=i(((i,g)=>{var{debounce:x=200,defaultValue:h="",cancelIconProps:j={},CancelIconComponent:f,disableInput:C,onCancel:O,onSearch:v,onChange:I,searchIconProps:P={},SearchIconComponent:S,slotProps:k,sx:w,value:y="",variant:D}=i,z=e(i,["debounce","defaultValue","cancelIconProps","CancelIconComponent","disableInput","onCancel","onSearch","onChange","searchIconProps","SearchIconComponent","slotProps","sx","value","variant"]);const A=S||r,M=f||a,[V,N]=l(h||y),R=V,U=u(V,x,{instantClear:!0}),{sx:q}=P,B=e(P,["sx"]),E=k||{},{input:F={}}=E,G=e(E,["input"]),H=c((()=>{switch(D){case"transparent":return{bgcolor:"transparent.primary"};case"mapShadow":return{bgcolor:"onSurface.os0",boxShadow:e=>e.flowShadows.l};default:return{bgcolor:"surface.primary"}}}),[D]);p((()=>{null==I||I(x<=0?R:U)}),[x<=0?R:U]);const J=d((e=>{e.preventDefault(),e.stopPropagation(),null==v||v(V)}),[V]);return n(s,Object.assign({onChange:e=>N(e.target.value),ref:g,sx:Object.assign(Object.assign({position:"relative",borderRadius:"200px",border:1,borderColor:(null==z?void 0:z.disabled)?"disabled.primary":"onSurface.
|
|
1
|
+
import{__rest as e}from"tslib";import{jsx as n}from"react/jsx-runtime";import{CloseIcon as a}from"../icon/stroke/CloseIcon.js";import{SearchIcon as r}from"../icon/stroke/SearchIcon.js";import{TextField as s,InputAdornment as o,IconButton as t}from"@mui/material";import{forwardRef as i,useState as l,useMemo as c,useEffect as p,useCallback as d}from"react";import u from"../../utils/useDebounce/useDebounce.js";import{updateFocusRingStyle as b}from"../focusring/focusring.js";import{getInteractiveStyle as m}from"../../materialui/button/interactive.js";const g=i(((i,g)=>{var{debounce:x=200,defaultValue:h="",cancelIconProps:j={},CancelIconComponent:f,disableInput:C,onCancel:O,onSearch:v,onChange:I,searchIconProps:P={},SearchIconComponent:S,slotProps:k,sx:w,value:y="",variant:D}=i,z=e(i,["debounce","defaultValue","cancelIconProps","CancelIconComponent","disableInput","onCancel","onSearch","onChange","searchIconProps","SearchIconComponent","slotProps","sx","value","variant"]);const A=S||r,M=f||a,[V,N]=l(h||y),R=V,U=u(V,x,{instantClear:!0}),{sx:q}=P,B=e(P,["sx"]),E=k||{},{input:F={}}=E,G=e(E,["input"]),H=c((()=>{switch(D){case"transparent":return{bgcolor:"transparent.primary"};case"mapShadow":return{bgcolor:"onSurface.os0",boxShadow:e=>e.flowShadows.l};default:return{bgcolor:"surface.primary"}}}),[D]);p((()=>{null==I||I(x<=0?R:U)}),[x<=0?R:U]);const J=d((e=>{e.preventDefault(),e.stopPropagation(),null==v||v(V)}),[V]);return n(s,Object.assign({onChange:e=>N(e.target.value),ref:g,sx:Object.assign(Object.assign({position:"relative",borderRadius:"200px",border:1,borderColor:(null==z?void 0:z.disabled)?"disabled.primary":"onSurface.os500",py:"5px",pl:"15px",pr:"5px",mb:0,"&&":Object.assign({},b(1,!1,"&:has(.Mui-focused)"))},H),w)},z,{value:V,variant:"standard",slotProps:Object.assign(Object.assign(Object.assign({},F),{input:{className:""+(""!==V?"filled":""),disabled:C||(null==z?void 0:z.disabled),inputProps:Object.assign(Object.assign({},"inputProps"in F&&Object.assign({},F.inputProps)),{sx:Object.assign({p:0,ml:1,color:"text.primary","&::-webkit-input-placeholder":{color:"onSurface.os700"},"&.Mui-disabled":{"&, &::-webkit-input-placeholder":{color:"disabled.tertiary"}}},"inputProps"in F&&"sx"in F.inputProps&&Object.assign({},F.inputProps.sx))}),disableUnderline:!0,startAdornment:n(o,{position:"start",sx:{transition:"all .4s ease",mr:"5px"},children:n(t,{disabled:null==z?void 0:z.disabled,tabIndex:v?0:-1,onClick:J,size:"medium","aria-label":"Search",sx:Object.assign(Object.assign({width:"34px",height:"34px"},b("0px")),m({backgroundColor:"transparent.transparent"},{backgroundColor:"transparent.transparent"})),children:n(A,Object.assign({sx:Object.assign({transition:"all .5s ease"},q)},B))})}),endAdornment:n(o,{position:"end",sx:{opacity:""!==V?"1":"0",transition:"opacity .3s ease"},children:n(t,{disabled:""===V||(null==z?void 0:z.disabled),onClick:()=>{N(""),null==O||O()},size:"medium",tabIndex:C?-1:0,"aria-label":"Clear search",sx:Object.assign(Object.assign({cursor:""!==V?"pointer":"default",width:"34px",height:"34px"},b("0px")),m({backgroundColor:"transparent.transparent"},{backgroundColor:"transparent.transparent"})),children:n(M,Object.assign({},j))})})}}),G)}))}));export{g as Search};
|
|
2
2
|
//# sourceMappingURL=search.js.map
|