@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,81 @@
|
|
|
1
|
+
import React, { ElementType, FC } from 'react';
|
|
2
|
+
import { BoxProps, TypographyProps, StackProps, IconButtonProps, IconProps } from '@mui/material';
|
|
3
|
+
export interface NotificationProps extends BoxProps<ElementType> {
|
|
4
|
+
/**
|
|
5
|
+
* headline of the notification
|
|
6
|
+
*/
|
|
7
|
+
headline?: React.ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Custom props for the headline
|
|
10
|
+
*/
|
|
11
|
+
headlineProps?: TypographyProps<ElementType>;
|
|
12
|
+
/**
|
|
13
|
+
* Custom props for the title
|
|
14
|
+
*/
|
|
15
|
+
titleProps?: TypographyProps<ElementType>;
|
|
16
|
+
/**
|
|
17
|
+
* Longer description of the notification
|
|
18
|
+
* @deprecated use prop children instead
|
|
19
|
+
*/
|
|
20
|
+
description?: React.ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Custom props for the description container
|
|
23
|
+
*/
|
|
24
|
+
descriptionProps?: TypographyProps<ElementType>;
|
|
25
|
+
/**
|
|
26
|
+
* Custom props for the wrapper container
|
|
27
|
+
*/
|
|
28
|
+
wrapperProps?: BoxProps<ElementType>;
|
|
29
|
+
/**
|
|
30
|
+
* Different color options for the notification
|
|
31
|
+
*/
|
|
32
|
+
color?: 'white' | 'grey';
|
|
33
|
+
/**
|
|
34
|
+
* Indicates if the notification is new
|
|
35
|
+
*/
|
|
36
|
+
isNew?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Custom props for the header container
|
|
39
|
+
*/
|
|
40
|
+
headerProps?: BoxProps<ElementType>;
|
|
41
|
+
/**
|
|
42
|
+
* Icon to display in the notification
|
|
43
|
+
*/
|
|
44
|
+
icon?: React.ReactNode;
|
|
45
|
+
/**
|
|
46
|
+
* Custom props for the icon container
|
|
47
|
+
*/
|
|
48
|
+
iconProps?: BoxProps<ElementType>;
|
|
49
|
+
/**
|
|
50
|
+
* Footer text for the notification
|
|
51
|
+
*/
|
|
52
|
+
footer?: React.ReactNode;
|
|
53
|
+
/**
|
|
54
|
+
* Control Buttons to display in the notification
|
|
55
|
+
*/
|
|
56
|
+
buttons?: React.ReactNode;
|
|
57
|
+
/**
|
|
58
|
+
* Custom props for the buttons container
|
|
59
|
+
*/
|
|
60
|
+
buttonsProps?: StackProps<ElementType>;
|
|
61
|
+
/**
|
|
62
|
+
* Custom props for the footer container
|
|
63
|
+
*/
|
|
64
|
+
footerProps?: TypographyProps<ElementType>;
|
|
65
|
+
/**
|
|
66
|
+
* Callback function when the notification is dismissed
|
|
67
|
+
*/
|
|
68
|
+
onDismiss?: () => void;
|
|
69
|
+
/**
|
|
70
|
+
* Custom props for the close icon container
|
|
71
|
+
*/
|
|
72
|
+
closeIconButtonProps?: IconButtonProps;
|
|
73
|
+
/**
|
|
74
|
+
* Custom props for the close icon
|
|
75
|
+
*/
|
|
76
|
+
closeIconProps?: IconProps<ElementType>;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Component that renders an notification
|
|
80
|
+
*/
|
|
81
|
+
export declare const Notification: FC<NotificationProps>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var s=require("tslib"),i=require("react/jsx-runtime"),e=require("react"),t=require("@mui/material"),o=require("../label/label.js"),r=require("../icon/stroke/CloseIcon.js");const n=e.forwardRef(((e,n)=>{var{sx:a,headline:c,titleProps:l,titleWrapperProps:p,description:d,descriptionProps:x,wrapperProps:f,color:b,isNew:g,headerProps:h,icon:u,iconProps:j,footer:m,buttons:y,buttonsProps:w,footerProps:O,onDismiss:P,closeIconButtonProps:v,closeIconProps:_,children:N}=e,k=s.__rest(e,["sx","headline","titleProps","titleWrapperProps","description","descriptionProps","wrapperProps","color","isNew","headerProps","icon","iconProps","footer","buttons","buttonsProps","footerProps","onDismiss","closeIconButtonProps","closeIconProps","children"]);const I=null!=f?f:{},{sx:B}=I,C=s.__rest(I,["sx"]),q=null!=h?h:{},{sx:S}=q,W=s.__rest(q,["sx"]),D=null!=w?w:{},{sx:T}=D,z=s.__rest(D,["sx"]),L=null!=x?x:{},{sx:M}=L,R=s.__rest(L,["sx"]),F=null!=l?l:{},{sx:G}=F,V=s.__rest(F,["sx"]),A=null!=v?v:{},{sx:E}=A,H=s.__rest(A,["sx"]),J=null!=j?j:{},{sx:K}=J,Q=s.__rest(J,["sx"]);return i.jsxs(t.Box,Object.assign({ref:n,sx:Object.assign({backgroundColor:"grey"===b?"surface.primary":"background.primary",padding:"16px 16px 24px",display:"flex",flexDirection:"row",gap:2,position:"relative"},a),"data-testid":"Notification"},k,{children:[u&&i.jsx(t.Box,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"}}},K),"data-testid":"Notification.icon"},Q,{children:u})),i.jsxs(t.Box,Object.assign({sx:Object.assign({width:"100%",maxWidth:"100%",overflow:"hidden",display:"flex",gap:"4px",flexDirection:"column",padding:"4px","&:hover .notification-dismiss":{opacity:"1"}},B)},C,{children:[i.jsxs(t.Box,Object.assign({sx:Object.assign({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:1},S)},W,{children:[g&&i.jsx(o.Label,{type:"indicator",variant:"neutral"}),i.jsx(t.Typography,Object.assign({variant:"subheadline",sx:Object.assign({whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flexGrow:"1",minWidth:"0"},G),"data-testid":"Notification.headline"},V,{children:c})),P&&i.jsx(t.IconButton,Object.assign({"aria-label":"Dismiss notification",onClick:P,size:"small",className:"notification-dismiss",sx:Object.assign({padding:"2px",opacity:{xs:"1",md:"0"},"&.Mui-focusVisible":{opacity:"1"}},E),"data-testid":"Notification.dismiss"},H,{children:i.jsx(r.CloseIcon,Object.assign({fontSize:"small",className:"ballotx",name:"close"},_))}))]})),i.jsx(t.Box,{"data-testid":"Notification.description",children:"string"==typeof N||"string"==typeof d?i.jsx(t.Typography,Object.assign({sx:Object.assign({overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:"2",WebkitBoxOrient:"vertical"},M),variant:"disclaimer1"},R,{children:N||d})):N||d}),m&&i.jsx(t.Typography,Object.assign({variant:"disclaimer1",color:"onSurface.os600","data-testid":"Notification.footer"},O,{children:m})),y&&i.jsx(t.Stack,Object.assign({direction:"row",sx:Object.assign({mt:1.5},T),spacing:1,"data-testid":"Notification.buttons"},z,{children:y}))]}))]}))}));exports.Notification=n;
|
|
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","jsx","Typography","whiteSpace","textOverflow","flexGrow","minWidth","IconButton","onClick","size","className","CloseIcon","fontSize","name","WebkitLineClamp","WebkitBoxOrient","Stack","direction","mt","spacing"],"mappings":"yLA8Fa,MAAAA,EAAsCC,EAAUA,YAC3D,CACEC,EAuBAC,SAvBAC,GACEA,EAAEC,SACFA,EAAQC,WACRA,EAAUC,kBACVA,EAAiBC,YACjBA,EAAWC,iBACXA,EAAgBC,aAChBA,EAAYC,MACZA,EAAKC,MACLA,EAAKC,YACLA,EAAWC,KACXA,EAAIC,UACJA,EAASC,OACTA,EAAMC,QACNA,EAAOC,aACPA,EAAYC,YACZA,EAAWC,UACXA,EAASC,qBACTA,EAAoBC,eACpBA,EAAcC,SACdA,GAAQrB,EACLsB,EAAIC,EAAAA,OAAAvB,EArBT,oQAyBA,MAAMwB,EAAoChB,QAAAA,EAAgB,IAAlDN,GAAIuB,GAAgDD,EAAlCE,EAApBH,EAAAA,OAAAC,EAAA,CAAA,OACAG,EAAkChB,QAAAA,EAAe,IAA/CT,GAAI0B,GAA6CD,EAAhCE,EAAnBN,EAAAA,OAAAI,EAAA,CAAA,OACAG,EAAoCd,QAAAA,EAAgB,IAAlDd,GAAI6B,GAAgDD,EAAlCE,EAApBT,EAAAA,OAAAO,EAAA,CAAA,OACAG,EAA4C1B,QAAAA,EAAoB,IAA9DL,GAAIgC,GAA4DD,EAA1CE,EAAxBZ,EAAAA,OAAAU,EAAA,CAAA,OACAG,EAAgChC,QAAAA,EAAc,IAA5CF,GAAImC,GAA0CD,EAA9BE,EAAlBf,EAAAA,OAAAa,EAAA,CAAA,OACAG,EAAoDpB,QAAAA,EAAwB,IAA1EjB,GAAIsC,GAAwED,EAAlDE,EAA5BlB,EAAAA,OAAAgB,EAAA,CAAA,OAEAG,EAA8B7B,QAAAA,EAAa,IAAzCX,GAAIyC,GAAuCD,EAA5BE,EAAjBrB,EAAAA,OAAAmB,EAAA,CAAA,OACN,OACEG,EAAAA,KAACC,EAAAA,IAAGC,OAAAC,OAAA,CACF/C,IAAKA,EACLC,GAAE6C,OAAAC,OAAA,CACAC,gBAA2B,SAAVxC,EAAmB,kBAAoB,qBACxDyC,QAAS,iBACTC,QAAS,OACTC,cAAe,MACfC,IAAK,EACLC,SAAU,YACPpD,GAAE,cAEK,gBACRoB,EAAI,CAAAD,SAAA,CAEPT,GACC2C,MAACT,EAAAA,IAAGC,OAAAC,OAAA,CACF9C,GAAE6C,OAAAC,OAAA,CACAG,QAAS,OACTK,eAAgB,SAChBC,WAAY,SACZC,aAAc,MACdC,MAAO,CAAEC,GAAI,OAAQC,GAAI,QACzBC,OAAQ,CAAEF,GAAI,OAAQC,GAAI,QAC1BZ,gBAAiB,uBACjBc,WAAY,IACZC,SAAU,SACV,QAAS,CAAEL,MAAO,OAAQG,OAAQ,OAAQG,UAAW,SACrD,qBAAsB,CACpBN,MAAO,CAAEC,GAAI,OAAQC,GAAI,QACzBC,OAAQ,CAAEF,GAAI,OAAQC,GAAI,UAEzBlB,GAEO,cAAA,qBACRC,YAEHhC,KAGLiC,OAACC,EAAGA,IAAAC,OAAAC,OAAA,CACF9C,GAAE6C,OAAAC,OAAA,CACAW,MAAO,OACPO,SAAU,OACVF,SAAU,SACVb,QAAS,OACTE,IAAK,MACLD,cAAe,SAEfF,QAAS,MAET,gCAAiC,CAC/BiB,QAAS,MAER1C,IAEDC,EAAW,CAAAL,SAAA,CAEfwB,EAAAA,KAACC,EAAGA,IAAAC,OAAAC,OAAA,CACF9C,GAAE6C,OAAAC,OAAA,CAAIG,QAAS,OAAQM,WAAY,SAAUD,eAAgB,aAAcH,IAAK,GAAMzB,IAClFC,aAEHnB,GAAS6C,EAAAA,IAACa,EAAKA,MAAA,CAACC,KAAK,YAAYC,QAAQ,YAE1Cf,EAACgB,IAAAC,4BACCF,QAAQ,cACRpE,GAAE6C,OAAAC,OAAA,CACAyB,WAAY,SACZT,SAAU,SACVU,aAAc,WACdC,SAAU,IACVC,SAAU,KACPvC,GAEO,cAAA,yBACRC,EAEH,CAAAjB,SAAAlB,KAGFe,GACCqC,MAACsB,EAAAA,uCACY,uBACXC,QAAS5D,EACT6D,KAAK,QACLC,UAAU,uBACV9E,GAAE6C,OAAAC,OAAA,CACAE,QAAS,MAETiB,QAAS,CAAEP,GAAI,IAAKC,GAAI,KAExB,qBAAsB,CACpBM,QAAS,MAER3B,GAAiB,cAEV,wBACRC,EAEJ,CAAApB,SAAAkC,EAAAgB,IAACU,EAASA,UAAAlC,OAAAC,OAAA,CAACkC,SAAS,QAAQF,UAAU,UAAUG,KAAK,SAAY/D,WAIvEmC,MAACT,EAAGA,IAAA,CAAA,cAAa,2BAA0BzB,SACpB,iBAAbA,GAAgD,iBAAhBf,EACtCiD,EAAAgB,IAACC,EAAUA,WACTzB,OAAAC,OAAA,CAAA9C,GACE6C,OAAAC,OAAA,CAAAgB,SAAU,SACVU,aAAc,WACdvB,QAAS,cACTiC,gBAAiB,IACjBC,gBAAiB,YACdnD,GAELoC,QAAQ,eACJnC,EAEH,CAAAd,SAAAA,GAAYf,KAGfe,GAAYf,IAGfQ,GACCyC,EAACgB,IAAAC,EAAUA,0BACTF,QAAQ,cACR7D,MAAO,kBACK,cAAA,uBACRQ,EAAW,CAAAI,SAEdP,KAGJC,GACCwC,EAAAA,IAAC+B,EAAAA,MACCvC,OAAAC,OAAA,CAAAuC,UAAU,MACVrF,GAAE6C,OAAAC,OAAA,CAAIwC,GAAI,KAAQzD,GAClB0D,QAAS,gBACG,wBACRzD,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
|
+
"use strict";var r=require("react/jsx-runtime"),e=require("react"),t=require("@mui/material");const i=e.forwardRef(((e,i)=>r.jsx(t.Button,Object.assign({ref:i,variant:"outlined",size:"small",color:"secondary"},e))));exports.NotificationButton=i;
|
|
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":"8FAQa,MAAAA,EAAwDC,EAAUA,YAAC,CAACC,EAAOC,IAC/EC,EAAAA,IAACC,EAAAA,OAAOC,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
|
+
"use strict";var s=require("tslib"),t=require("react/jsx-runtime"),i=require("react"),e=require("@mui/material"),o=require("../icon/stroke/CloseIcon.js");const n=i.forwardRef(((i,n)=>{var{children:r,sx:a,title:l="Notifications",headerProps:x,titleProps:c,dismissAllText:d="Dismiss All",onDismissAll:p,onClose:u,iconButtonProps:m,iconProps:b,containerProps:f,dismissBoxProps:g,dismissButtonProps:j,height:h=556}=i,C=s.__rest(i,["children","sx","title","headerProps","titleProps","dismissAllText","onDismissAll","onClose","iconButtonProps","iconProps","containerProps","dismissBoxProps","dismissButtonProps","height"]);const P=null!=x?x:{},{sx:B}=P,O=s.__rest(P,["sx"]),y=null!=f?f:{},{sx:N}=y,_=s.__rest(y,["sx"]),v=null!=g?g:{},{sx:w}=v,k=s.__rest(v,["sx"]),q=null!=m?m:{},{sx:A}=q,D=s.__rest(q,["sx"]);return t.jsxs(e.Box,Object.assign({ref:n,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:(z=h,"string"==typeof z&&z.includes("px")?z:`${z}px`)},a),"data-testid":"NotificationCenter"},C,{children:[t.jsxs(e.Box,Object.assign({sx:Object.assign({padding:"16px 8px 16px 16px",display:"flex",justifyContent:"space-between"},B)},O,{children:[t.jsx(e.Typography,Object.assign({variant:"h4",component:"span","data-testid":"NotificationCenter.title"},c,{children:l})),u&&t.jsx(e.IconButton,Object.assign({"aria-label":"onClose notificationCenter",onClick:u,size:"medium",className:"notificationCenter-onClose",sx:Object.assign({padding:"4px"},A),"data-testid":"NotificationCenter.onClose"},D,{children:t.jsx(o.CloseIcon,Object.assign({fontSize:"medium",className:"ballotx"},b))}))]})),p&&t.jsx(e.Box,Object.assign({sx:Object.assign({padding:"0 8px 4px 16px",display:"flex",justifyContent:"flex-end"},w)},k,{children:t.jsx(e.Button,Object.assign({onClick:p,size:"small",color:"secondary",variant:"text","data-testid":"NotificationCenter.dismiss"},j,{children:d}))})),t.jsx(e.Box,Object.assign({sx:Object.assign({overflowY:"auto",'& [data-testid="Notification"]:not(:last-child)':{borderBottom:1,borderColor:"surface.secondary"}},N),"data-testid":"NotificationCenter.content"},_,{children:r}))]}));var z}));exports.NotificationCenter=n;
|
|
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","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","jsx","Button","overflowY","borderBottom","borderColor"],"mappings":"0JAiEa,MAAAA,EAAkDC,EAAUA,YACvE,CACEC,EAiBAC,KAjBA,IAAAC,SACEA,EAAQC,GACRA,EAAEC,MACFA,EAAQ,gBAAeC,YACvBA,EAAWC,WACXA,EAAUC,eACVA,EAAiB,cAAaC,aAC9BA,EAAYC,QACZA,EAAOC,gBACPA,EAAeC,UACfA,EAASC,eACTA,EAAcC,gBACdA,EAAeC,mBACfA,EAAkBC,OAClBA,EAAS,KAAGf,EACTgB,EAAIC,EAAAA,OAAAjB,EAfT,+LAmBA,MAAMkB,EAAkCb,QAAAA,EAAe,IAA/CF,GAAIgB,GAA6CD,EAAhCE,EAAnBH,EAAAA,OAAAC,EAAA,CAAA,OACAG,EAAwCT,QAAAA,EAAkB,IAAxDT,GAAImB,GAAsDD,EAAtCE,EAAtBN,EAAAA,OAAAI,EAAA,CAAA,OACAG,EAA0CX,QAAAA,EAAmB,IAA3DV,GAAIsB,GAAyDD,EAAxCE,EAAvBT,EAAAA,OAAAO,EAAA,CAAA,OACAG,EAA0CjB,QAAAA,EAAmB,IAA3DP,GAAIyB,GAAyDD,EAAxCE,EAAvBZ,EAAAA,OAAAU,EAAA,CAAA,OAUN,OACEG,EAACC,KAAAC,MACCC,OAAAC,OAAA,CAAAjC,IAAKA,EACLE,GAAE8B,OAAAC,OAAA,CACAC,QAAS,OACTC,cAAe,SACfC,MAAO,CAAEC,GAAI,OAAQC,GAAI,QAASC,GAAI,SACtCC,aAAc,CAAEH,GAAI,MAAOC,GAAI,OAC/BG,gBAAiB,qBACjBC,MAAO,eACPC,UAAW,2EACXC,SAAU,SACVC,WApBgBC,EAoBQhC,EAnBD,iBAAhBgC,GAA4BA,EAAYC,SAAS,MACnDD,EAGF,GAAGA,QAgBH5C,GAAE,cAEK,sBACRa,EAAI,CAAAd,SAAA,CAER4B,OAACE,EAAGA,IAAAC,OAAAC,OAAA,CACF/B,GAAE8B,OAAAC,OAAA,CACAe,QAAS,qBACTd,QAAS,OACTe,eAAgB,iBACb/B,IAEDC,EAAU,CAAAlB,SAAA,CAEdiD,EAAAA,IAACC,EAAUA,WAAAnB,OAAAC,OAAA,CAACmB,QAAQ,KAAKC,UAAU,OAAM,cAAa,4BAA+BhD,EAAU,CAAAJ,SAC5FE,KAEFK,GACC0C,EAAAA,IAACI,EAAUA,WACEtB,OAAAC,OAAA,CAAA,aAAA,6BACXsB,QAAS/C,EACTgD,KAAK,SACLC,UAAU,6BACVvD,GACE8B,OAAAC,OAAA,CAAAe,QAAS,OACNrB,GAAY,cAEL,8BACRC,EAAc,CAAA3B,SAElBiD,EAAAA,IAACQ,EAAAA,UAAS1B,OAAAC,OAAA,CAAC0B,SAAS,SAASF,UAAU,WAAc/C,WAK1DH,GACC2C,EAAAU,IAAC7B,EAAGA,IACFC,OAAAC,OAAA,CAAA/B,GACE8B,OAAAC,OAAA,CAAAe,QAAS,iBACTd,QAAS,OACTe,eAAgB,YACbzB,IAEDC,EAEJ,CAAAxB,SAAAiD,EAAAU,IAACC,SACC7B,OAAAC,OAAA,CAAAsB,QAAShD,EACTiD,KAAK,QACLd,MAAM,YACNU,QAAQ,OACI,cAAA,8BACRvC,YAEHP,QAIP4C,EAAAU,IAAC7B,MAAGC,OAAAC,OAAA,CACF/B,GAAE8B,OAAAC,OAAA,CACA6B,UAAW,OAEX,kDAAmD,CACjDC,aAAc,EACdC,YAAa,sBAEZ3C,GAEO,cAAA,8BACRC,YAEHrB,SA3Fc,IAAC6C,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
|
+
"use strict";var t=require("tslib"),e=require("react/jsx-runtime"),r=require("react"),i=require("@mui/material");const o=r.forwardRef(((r,o)=>{var{title:a,headerProps:s,titleProps:n,containerProps:c,children:d}=r,l=t.__rest(r,["title","headerProps","titleProps","containerProps","children"]);const p=null!=n?n:{},{sx:u}=p,x=t.__rest(p,["sx"]);return e.jsxs(i.Box,Object.assign({"data-testid":"NotificationCenterCategory"},l,{ref:o,children:[e.jsx(i.Typography,Object.assign({variant:"caption2",sx:Object.assign({pl:1,pt:2,pb:1,display:"block",borderBottom:1,borderColor:"surface.secondary"},u),"data-testid":"NotificationCenterCategory.title"},x,{children:a})),e.jsx(i.Box,Object.assign({"data-testid":"NotificationCenterCategory.content"},c,{children:d}))]}))}));exports.NotificationCenterCategory=o;
|
|
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","jsxs","Box","Object","assign","_jsx","Typography","variant","pl","pt","pb","display","borderBottom","borderColor"],"mappings":"iHAyBa,MAAAA,EAAkEC,EAAUA,YACvF,CAACC,EAAuEC,KAAvE,IAAAC,MAAEA,EAAKC,YAAEA,EAAWC,WAAEA,EAAUC,eAAEA,EAAcC,SAAEA,GAAmBN,EAANO,EAAIC,EAAAA,OAAAR,EAAnE,kEACC,MAAMS,EAAgCL,QAAAA,EAAc,IAA5CM,GAAIC,GAA0CF,EAA9BG,EAAlBJ,EAAAA,OAAAC,EAAA,CAAA,OAEN,OACEI,EAAAC,KAACC,EAAGA,IAAAC,OAAAC,OAAA,CAAA,cAAa,8BAAiCV,EAAI,CAAEN,IAAKA,EAAGK,SAAA,CAC9DY,MAACC,aAAUH,OAAAC,OAAA,CACTG,QAAQ,WACRV,GAAEM,OAAAC,OAAA,CACAI,GAAI,EACJC,GAAI,EACJC,GAAI,EACJC,QAAS,QACTC,aAAc,EACdC,YAAa,qBACVf,iBAEO,oCACRC,EAAS,CAAAN,SAEZJ,KAEHgB,EAAAA,IAACH,EAAAA,IAAgBC,OAAAC,OAAA,CAAA,cAAA,sCAAyCZ,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
|
+
"use strict";var e=require("tslib"),r=require("react/jsx-runtime"),t=require("react"),i=require("../header/HeaderButton.js"),n=require("../icon/stroke/BellIcon.js"),o=require("@mui/material"),s=require("./NotificationCenter.js");const a=t.forwardRef(((a,c)=>{var{popperProps:l,clickAwayListenerProps:p,fadeProps:d,label:u="Notifications",extend:j,tooltipProps:x,badgeProps:b,indicator:f,headerButtonProps:P,icon:g,onClick:h}=a,B=e.__rest(a,["popperProps","clickAwayListenerProps","fadeProps","label","extend","tooltipProps","badgeProps","indicator","headerButtonProps","icon","onClick"]);const[C,k]=t.useState(null),m=null!=l?l:{},{sx:O}=m,q=e.__rest(m,["sx"]);return r.jsxs(r.Fragment,{children:[r.jsx(i.HeaderButton,Object.assign({label:u,extend:null!=j&&j,tooltipProps:Object.assign(Object.assign({},C&&{open:!1}),x),badgeProps:b,indicator:f,onClick:e=>{null==h||h(e),k(e.currentTarget)},ref:c,"data-testid":"NotificationCenterHeaderButton"},P,{children:g||r.jsx(n.BellIcon,{})})),r.jsx(o.Popper,Object.assign({open:!!C,anchorEl:C,placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[0,18]}}],transition:!0,sx:Object.assign({zIndex:e=>e.zIndex.appBar+10},O)},q,{children:({TransitionProps:e})=>r.jsx(o.ClickAwayListener,Object.assign({onClickAway:()=>k(null)},p,{children:r.jsx(o.Fade,Object.assign({},e,d,{children:r.jsx(s.NotificationCenter,Object.assign({},B,{ref:void 0}))}))}))}))]})}));exports.NotificationCenterHeaderButton=a;
|
|
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","jsx","Fade","NotificationCenter","undefined"],"mappings":"qOAqDa,MAAAA,EAA0EC,EAAUA,YAC/F,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,EAAAA,OAAAd,EAAA,CAAA,cAAA,yBAAA,YAAA,QAAA,SAAA,eAAA,aAAA,YAAA,oBAAA,OAAA,YAgBA,MAAOe,EAAQC,GAAaC,EAAAA,SAAS,MAC/BC,EAAkChB,QAAAA,EAAe,IAA/CiB,GAAIC,GAA6CF,EAAhCG,EAAnBP,EAAAA,OAAAI,EAAA,CAAA,OAEN,OACEI,EAAAA,2BACEC,MAACC,EAAAA,4BACCnB,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,EAAAA,IAACQ,EAAQA,SAAA,CAAA,MAEpBR,EAAAA,IAACS,EAAAA,OAAMP,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,MAACqB,EAAAA,kBAAiBnB,OAAAC,OAAA,CAACmB,YAAa,IAAM7B,EAAU,OAAWb,EACzD,CAAA2B,SAAAP,EAAAuB,IAACC,EAAIA,KAAAtB,OAAAC,OAAA,CAAA,EAAKiB,EAAqBvC,EAC7B,CAAA0B,SAAAP,EAAAuB,IAACE,EAAkBA,mBAAAvB,OAAAC,OAAA,CAAA,EAAKb,EAAI,CAAEZ,SAAKgD,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
|
+
"use strict";var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),a=require("@mui/material");const s=r.forwardRef(((s,i)=>{var{children:o,sx:n,header:d,footer:c,headerPosition:l="static",headerSlideThreshold:h=250,wrapContent:p=!1,headerProps:x,headerContainerProps:g,headerWrapperProps:u,contentProps:j,footerProps:m}=s,b=e.__rest(s,["children","sx","header","footer","headerPosition","headerSlideThreshold","wrapContent","headerProps","headerContainerProps","headerWrapperProps","contentProps","footerProps"]);const f=a.useTheme(),P=null!=u?u:{},{sx:O}=P,B=e.__rest(P,["sx"]),w=null!=g?g:{},{sx:C,className:y}=w,v=e.__rest(w,["sx","className"]),[S,_]=r.useState(parseFloat(String(f.mixins.toolbar.minHeight))),L=r.useCallback((e=>{"static"!==l&&e&&new ResizeObserver((()=>{_(e.offsetHeight)})).observe(e)}),["static"!==l]),T=a.useScrollTrigger({target:window,threshold:h});return t.jsxs(a.Box,Object.assign({sx:Object.assign({position:"relative",minHeight:"100vh",backgroundColor:"surface.primary",display:"grid",gridTemplateRows:[d&&"max-content","auto",c&&"max-content"].filter(Boolean).join(" ")},n),"data-testid":"PageLayout",ref:i},b,{children:[d&&t.jsx(a.Box,Object.assign({sx:Object.assign(Object.assign({},"static"!==l&&S&&{height:S}),O),"data-testid":"PageLayout.headerWrapper"},B,{children:t.jsx(a.Box,Object.assign({},"slide"===l&&{component:a.Slide,appear:!1,direction:"down",in:!T},{sx:Object.assign(Object.assign({},"static"!==l&&{position:"fixed",top:"0",left:"0",right:"0",zIndex:f.zIndex.appBar}),C),className:["static"!==l?"mui-fixed":"",y].filter(Boolean).join(", ")},v,{children:t.jsx(a.Box,Object.assign({ref:L,"data-testid":"PageLayout.header"},x,{children:d}))}))})),t.jsx(a.Box,Object.assign({},p&&{component:a.Container,maxWidth:"xl"},{"data-testid":"Container"},j,{children:o})),c&&t.jsx(a.Box,Object.assign({"data-testid":"PageLayout.footer"},m,{children:c}))]}))}));exports.PageLayout=s;
|
|
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","jsx","Container","maxWidth"],"mappings":"iHAoDa,MAAAA,EAAwCC,EAAUA,YAC7D,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,EAAAA,OAAAf,EAbT,kLAiBA,MAAMgB,EAAQC,EAAAA,WACRC,EAAgDP,QAAAA,EAAsB,IAApER,GAAIgB,GAAkED,EAA9CE,EAA1BL,EAAAA,OAAAG,EAAA,CAAA,OACAG,EAIFX,QAAAA,EAAwB,IAH1BP,GAAImB,EACJC,UAAWC,GAAwBH,EAChCI,EAAmBV,EAAAA,OAAAM,EAHlB,CAIL,KAAA,eAEMK,EAAcC,GAAmBC,EAAQA,SAASC,WAAWC,OAAOd,EAAMe,OAAOC,QAAQC,aAC1FC,EAAqBC,eACxBC,IACwB,WAAnB9B,GAAgC8B,GAGpC,IAAIC,gBAAe,KACjBV,EAAgBS,EAAQE,aAAa,IACpCC,QAAQH,EAAQ,GAErB,CAAoB,WAAnB9B,IAGGkC,EAAeC,EAAAA,iBAAiB,CACpCC,OAAQC,OACRC,UAAWrC,IAGb,OACEsC,EAAAA,KAACC,EAAAA,mBACC3C,GAAE4C,OAAAC,OAAA,CACAC,SAAU,WACVhB,UAAW,QACXiB,gBAAiB,kBACjBC,QAAS,OACTC,iBAAkB,CAAChD,GAAU,cAAe,OAAQC,GAAU,eAAegD,OAAOC,SAASC,KAAK,MAC/FpD,GAAE,cAEK,aACZF,IAAKA,GACDa,EAEH,CAAAZ,SAAA,CAAAE,GACCoD,EAAAA,IAACV,EAAAA,IACCC,OAAAC,OAAA,CAAA7C,kCACyB,WAAnBG,GAA+BoB,GAAgB,CAAE+B,OAAQ/B,IAC1DP,GAEO,cAAA,4BACRC,EAAiB,CAAAlB,SAErBsD,EAAAA,IAACV,EAAAA,IAAGC,OAAAC,OAAA,CAAA,EACsB,UAAnB1C,GAA8B,CACjCoD,UAAWC,EAAKA,MAChBC,QAAQ,EACRC,UAAW,OACXC,IAAKtB,IAEPrC,GAAE4C,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EACuB,WAAnB1C,GAA+B,CACjC2C,SAAU,QACVc,IAAK,IACLC,KAAM,IACNC,MAAO,IACPC,OAAQlD,EAAMkD,OAAOC,SAEpB7C,GAELC,UAAW,CAAoB,WAAnBjB,EAA8B,YAAc,GAAIkB,GACzD6B,OAAOC,SACPC,KAAK,OACJ9B,EAAmB,CAAAvB,SAEvBsD,EAAAA,IAACV,EAAGA,IAACC,OAAAC,OAAA,CAAA/C,IAAKiC,EAAgC,cAAA,qBAAwBzB,EAC/D,CAAAP,SAAAE,WAKToD,EAAAY,IAACtB,EAAGA,IAAAC,OAAAC,OAAA,CAAA,EAAMxC,GAAe,CAAEkD,UAAWW,EAASA,UAAEC,SAAU,MAAqB,CAAA,cAAA,aAAgB1D,EAC7F,CAAAV,SAAAA,KAEFG,GACCmD,EAAAY,IAACtB,EAAGA,IAAAC,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
|
-
"use strict";var
|
|
1
|
+
"use strict";var t=require("tslib"),e=require("react/jsx-runtime"),a=require("@mui/material");const n=require("react").forwardRef(((n,s)=>{var{isDisabled:i,page:o,hideFirstButton:r,hideLastButton:u,showFirstButton:l,showLastButton:h,hideLabels:d,onValueChange:B,disabled:b,onChange:g,prevButtonLabel:L,nextButtonLabel:w}=n,p=t.__rest(n,["isDisabled","page","hideFirstButton","hideLastButton","showFirstButton","showLastButton","hideLabels","onValueChange","disabled","onChange","prevButtonLabel","nextButtonLabel"]);return e.jsx(a.Pagination,Object.assign({},p,{ref:s,disabled:b||i,page:o&&g?o:void 0,onChange:(t,e)=>{null==g||g(t,e),null==B||B(e)},showFirstButton:l||!r,showLastButton:h||!u}))}));exports.Pagination=n;
|
|
2
2
|
//# sourceMappingURL=pagination.js.map
|