@scrippsproduct/networks-ui-library 1.1.0-alpha.0 → 1.1.0-alpha.10
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/dist/Carousel.module-CNJzZW2-.mjs +14 -0
- package/dist/{ChoicesItem-CGIr6Qga.mjs → ChoicesItem-CT9fXB0I.mjs} +22 -23
- package/dist/PageHero.module-BM0IV1P5.mjs +8 -0
- package/dist/ResultsTable.module-1zxhXaem.mjs +14 -0
- package/dist/{SocialShareButton-BXGVUD-z.mjs → SocialShareButton-BMhRS9Qr.mjs} +12 -7
- package/dist/assets/ActionButton.css +1 -1
- package/dist/assets/AdBlock.css +1 -1
- package/dist/assets/AirDateFormatter.css +1 -1
- package/dist/assets/AnchorTag.css +1 -1
- package/dist/assets/BasicGridModule.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Carousel.css +1 -1
- package/dist/assets/CarouselSlide.css +1 -1
- package/dist/assets/ChannelSearch.css +1 -1
- package/dist/assets/ChoicesItem.css +1 -1
- package/dist/assets/ContentHero.css +1 -1
- package/dist/assets/CtaBlock.css +1 -1
- package/dist/assets/CustomDataList.css +1 -1
- package/dist/assets/DateNavigation.css +1 -1
- package/dist/assets/DeviceAndPlatformLists.css +1 -1
- package/dist/assets/Figure.css +1 -1
- package/dist/assets/Figure2.css +1 -1
- package/dist/assets/FindUs.css +1 -1
- package/dist/assets/GradientButton.css +1 -1
- package/dist/assets/ImageCard.css +1 -1
- package/dist/assets/InlineNavigation.css +1 -1
- package/dist/assets/LogoListItem.css +1 -1
- package/dist/assets/ModalContainer.css +1 -1
- package/dist/assets/PageHero.css +1 -1
- package/dist/assets/ProgramAirdate.css +1 -1
- package/dist/assets/PromotionBlock.css +1 -1
- package/dist/assets/ResultsTable.css +1 -1
- package/dist/assets/ScheduleLayout.css +1 -0
- package/dist/assets/ScheduleList.css +1 -1
- package/dist/assets/ShowAboutLayout.css +1 -1
- package/dist/assets/ShowSlide.css +1 -1
- package/dist/assets/SocialLinks.css +1 -1
- package/dist/assets/TextSlide.css +1 -1
- package/dist/assets/TwoColumnSlide.css +1 -1
- package/dist/assets/UpcomingList.css +1 -1
- package/dist/components/ActionButton/ActionButton.d.ts +20 -1
- package/dist/components/ActionButton/ActionButton.js +36 -36
- package/dist/components/ActionButton/index.d.ts +2 -1
- package/dist/components/AdBlock/AdBlock.d.ts +20 -1
- package/dist/components/AdBlock/AdBlock.js +118 -83
- package/dist/components/AdBlock/index.d.ts +2 -1
- package/dist/components/AdjustableTwoColumnGrid/AdjustableTwoColumnGrid.d.ts +7 -1
- package/dist/components/AdjustableTwoColumnGrid/AdjustableTwoColumnGrid.js +17 -12
- package/dist/components/AdjustableTwoColumnGrid/index.d.ts +2 -1
- package/dist/components/AirDateFormatter/AirDateFormatter.d.ts +5 -4
- package/dist/components/AirDateFormatter/AirDateFormatter.js +21 -22
- package/dist/components/AirDateFormatter/index.d.ts +2 -1
- package/dist/components/AnchorTag/AnchorTag.d.ts +10 -1
- package/dist/components/AnchorTag/AnchorTag.js +22 -23
- package/dist/components/AnchorTag/index.d.ts +2 -1
- package/dist/components/BCVideoPlayer/BCVideoPlayer.d.ts +19 -12
- package/dist/components/BCVideoPlayer/BCVideoPlayer.js +39 -37
- package/dist/components/BCVideoPlayer/index.d.ts +2 -1
- package/dist/components/BasicGridModule/BasicGridModule.d.ts +19 -17
- package/dist/components/BasicGridModule/BasicGridModule.js +57 -51
- package/dist/components/BasicGridModule/index.d.ts +2 -1
- package/dist/components/Button/Button.d.ts +18 -17
- package/dist/components/Button/Button.js +31 -32
- package/dist/components/Button/index.d.ts +2 -1
- package/dist/components/ButtonAnchor/ButtonAnchor.d.ts +5 -5
- package/dist/components/ButtonAnchor/ButtonAnchor.js +7 -5
- package/dist/components/ButtonAnchor/index.d.ts +2 -1
- package/dist/components/Carousel/Carousel.d.ts +7 -24
- package/dist/components/Carousel/Carousel.js +113 -113
- package/dist/components/Carousel/CarouselUtils.class.d.ts +16 -28
- package/dist/components/Carousel/CarouselUtils.class.js +85 -55
- package/dist/components/Carousel/index.d.ts +2 -1
- package/dist/components/Carousel/navigations/Pagination.js +12 -10
- package/dist/components/CarouselSlide/CarouselSlide.d.ts +8 -6
- package/dist/components/CarouselSlide/CarouselSlide.js +25 -23
- package/dist/components/CarouselSlide/index.d.ts +2 -1
- package/dist/components/CarouselSlide/slide-layouts/Empty/Empty.d.ts +1 -1
- package/dist/components/CarouselSlide/slide-layouts/Empty/Empty.js +3 -4
- package/dist/components/CarouselSlide/slide-layouts/Empty/index.d.ts +2 -1
- package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.d.ts +2 -2
- package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.js +10 -11
- package/dist/components/CarouselSlide/slide-layouts/Figure/index.d.ts +2 -1
- package/dist/components/CarouselSlide/slide-layouts/ImageCard/ImageCard.d.ts +1 -1
- package/dist/components/CarouselSlide/slide-layouts/ImageCard/ImageCard.js +3 -4
- package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.d.ts +18 -16
- package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.js +49 -34
- package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.d.ts +2 -2
- package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.js +11 -12
- package/dist/components/CarouselSlide/slide-layouts/Text/index.d.ts +2 -1
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.d.ts +5 -4
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.js +10 -11
- package/dist/components/CarouselSlide/slide-layouts/Video/VideoSlide.d.ts +8 -1
- package/dist/components/CarouselSlide/slide-layouts/Video/VideoSlide.js +19 -15
- package/dist/components/CastInfoLayout/CastInfoLayout.d.ts +16 -1
- package/dist/components/CastInfoLayout/CastInfoLayout.js +31 -21
- package/dist/components/ChannelSearch/ChannelSearch.d.ts +18 -16
- package/dist/components/ChannelSearch/ChannelSearch.js +80 -63
- package/dist/components/ChannelSearch/index.d.ts +2 -1
- package/dist/components/ChoicesItem/ChoicesItem.d.ts +7 -4
- package/dist/components/ChoicesItem/ChoicesItem.js +3 -4
- package/dist/components/ChoicesItem/index.d.ts +2 -1
- package/dist/components/ChoicesItem/index.js +1 -1
- package/dist/components/ChoicesList/ChoicesList.d.ts +4 -3
- package/dist/components/ChoicesList/ChoicesList.js +3 -4
- package/dist/components/ChoicesList/index.d.ts +2 -1
- package/dist/components/Concat/Concat.d.ts +4 -3
- package/dist/components/Concat/Concat.js +5 -5
- package/dist/components/Concat/index.d.ts +2 -1
- package/dist/components/CreateChoiceList/CreateChoiceList.d.ts +7 -5
- package/dist/components/CreateChoiceList/CreateChoiceList.js +38 -9
- package/dist/components/CreateChoiceList/index.d.ts +2 -1
- package/dist/components/CtaBlock/CtaBlock.d.ts +13 -15
- package/dist/components/CtaBlock/CtaBlock.js +23 -22
- package/dist/components/CtaBlock/index.d.ts +2 -1
- package/dist/components/CustomDataList/CustomDataList.d.ts +12 -10
- package/dist/components/CustomDataList/CustomDataList.js +200 -174
- package/dist/components/CustomDataList/index.d.ts +2 -1
- package/dist/components/CustomSelect/CustomSelect.d.ts +16 -13
- package/dist/components/CustomSelect/CustomSelect.js +224 -154
- package/dist/components/CustomSelect/index.d.ts +2 -1
- package/dist/components/DateNavigation/DateNavigation.d.ts +1 -4
- package/dist/components/DateNavigation/DateNavigation.js +125 -82
- package/dist/components/DateNavigation/index.d.ts +2 -1
- package/dist/components/DatePicker/index.d.ts +2 -1
- package/dist/components/DeviceAndPlatformLists/DeviceAndPlatformLists.d.ts +14 -4
- package/dist/components/DeviceAndPlatformLists/DeviceAndPlatformLists.js +40 -33
- package/dist/components/DeviceAndPlatformLists/index.d.ts +2 -1
- package/dist/components/DrawerNavigation/DrawerNavigation.d.ts +21 -1
- package/dist/components/DrawerNavigation/DrawerNavigation.js +75 -56
- package/dist/components/DrawerNavigation/index.d.ts +2 -1
- package/dist/components/EqualSizeFlexRow/EqualSizeFlexRow.d.ts +6 -5
- package/dist/components/EqualSizeFlexRow/EqualSizeFlexRow.js +18 -14
- package/dist/components/EqualSizeFlexRow/index.d.ts +2 -1
- package/dist/components/EqualSizeGrid/EqualSizeGrid.d.ts +7 -6
- package/dist/components/EqualSizeGrid/EqualSizeGrid.js +17 -12
- package/dist/components/EqualSizeGrid/index.d.ts +2 -1
- package/dist/components/ErrorHandler/ErrorHandler.d.ts +5 -4
- package/dist/components/ErrorHandler/ErrorHandler.js +3 -4
- package/dist/components/ErrorHandler/index.d.ts +2 -1
- package/dist/components/FeaturedList/FeaturedList.d.ts +8 -6
- package/dist/components/FeaturedList/FeaturedList.js +44 -36
- package/dist/components/FeaturedList/index.d.ts +2 -1
- package/dist/components/Figure/Figure.d.ts +5 -4
- package/dist/components/Figure/Figure.js +8 -9
- package/dist/components/Figure/index.d.ts +2 -1
- package/dist/components/FindUs/FindUs.d.ts +24 -1
- package/dist/components/FindUs/FindUs.js +70 -63
- package/dist/components/FindUs/index.d.ts +2 -1
- package/dist/components/FooterNavigation/FooterNavigation.d.ts +9 -3
- package/dist/components/FooterNavigation/FooterNavigation.js +10 -11
- package/dist/components/FooterNavigation/index.d.ts +2 -1
- package/dist/components/GenericList/GenericList.d.ts +6 -5
- package/dist/components/GenericList/GenericList.js +13 -14
- package/dist/components/GenericList/index.d.ts +2 -1
- package/dist/components/GetAirdateWrapper/GetAirdateWrapper.d.ts +9 -8
- package/dist/components/GetAirdateWrapper/GetAirdateWrapper.js +46 -30
- package/dist/components/GetAirdateWrapper/index.d.ts +2 -1
- package/dist/components/GradientButton/GradientButton.d.ts +15 -14
- package/dist/components/GradientButton/GradientButton.js +37 -40
- package/dist/components/GradientButton/index.d.ts +2 -1
- package/dist/components/GridList/GridList.d.ts +6 -5
- package/dist/components/GridList/GridList.js +14 -10
- package/dist/components/GridList/index.d.ts +2 -1
- package/dist/components/ImageCard/ImageCard.d.ts +27 -1
- package/dist/components/ImageCard/ImageCard.js +59 -58
- package/dist/components/ImageCard/ImageCardCore.d.ts +6 -2
- package/dist/components/ImageCard/ImageCardCore.js +115 -89
- package/dist/components/ImageReplacementAnchor/ImageReplacementAnchor.d.ts +11 -14
- package/dist/components/ImageReplacementAnchor/ImageReplacementAnchor.js +25 -18
- package/dist/components/InfoPanel/InfoPanel.d.ts +10 -8
- package/dist/components/InfoPanel/InfoPanel.js +2 -2
- package/dist/components/InfoPanel/index.d.ts +2 -1
- package/dist/components/InlineNavigation/InlineNavigation.d.ts +7 -5
- package/dist/components/InlineNavigation/InlineNavigation.js +13 -10
- package/dist/components/Input/Input.d.ts +10 -9
- package/dist/components/Input/Input.js +47 -40
- package/dist/components/Input/index.d.ts +2 -1
- package/dist/components/InstructionsList/InstructionsList.d.ts +5 -4
- package/dist/components/InstructionsList/InstructionsList.js +20 -10
- package/dist/components/InstructionsList/index.d.ts +2 -1
- package/dist/components/Loading/Loading.d.ts +8 -7
- package/dist/components/Loading/Loading.js +25 -20
- package/dist/components/Loading/index.d.ts +2 -1
- package/dist/components/LoadingV2/LoadingV2.d.ts +7 -6
- package/dist/components/LoadingV2/LoadingV2.js +31 -21
- package/dist/components/LoadingV2/index.d.ts +2 -1
- package/dist/components/LogoListItem/LogoListItem.d.ts +7 -6
- package/dist/components/LogoListItem/LogoListItem.js +34 -17
- package/dist/components/LogoListItem/index.d.ts +2 -1
- package/dist/components/LogoNavigation/LogoNavigation.d.ts +13 -4
- package/dist/components/LogoNavigation/LogoNavigation.js +23 -18
- package/dist/components/LogoNavigation/index.d.ts +2 -1
- package/dist/components/ModalContainer/ModalContainer.d.ts +8 -8
- package/dist/components/ModalContainer/ModalContainer.js +84 -72
- package/dist/components/ModalContainer/index.d.ts +2 -1
- package/dist/components/MultiLayeredFigure/MultiLayeredFigure.d.ts +6 -5
- package/dist/components/MultiLayeredFigure/MultiLayeredFigure.js +13 -10
- package/dist/components/MultiLayeredFigure/index.d.ts +2 -1
- package/dist/components/NavList/NavList.d.ts +9 -7
- package/dist/components/NavList/NavList.js +56 -20
- package/dist/components/NavList/index.d.ts +2 -1
- package/dist/components/Overlay/Overlay.d.ts +5 -5
- package/dist/components/Overlay/Overlay.js +8 -5
- package/dist/components/PageHero/PageHero.d.ts +6 -5
- package/dist/components/PageHero/PageHero.js +29 -16
- package/dist/components/PageHero/index.d.ts +2 -1
- package/dist/components/PageHero/page-hero-layouts/ContentHero/ContentHero.d.ts +2 -13
- package/dist/components/PageHero/page-hero-layouts/ContentHero/ContentHero.js +17 -10
- package/dist/components/PageHero/page-hero-layouts/ContentHero/index.d.ts +2 -1
- package/dist/components/PageHero/page-hero-layouts/IONShow/IONShowHero.d.ts +7 -5
- package/dist/components/PageHero/page-hero-layouts/IONShow/IONShowHero.js +108 -42
- package/dist/components/PageHero/page-hero-layouts/IONShow/index.d.ts +2 -1
- package/dist/components/PageHero/page-hero-layouts/ImageOnly/ImageOnlyHero.d.ts +2 -12
- package/dist/components/PageHero/page-hero-layouts/ImageOnly/ImageOnlyHero.js +13 -7
- package/dist/components/PageHero/page-hero-layouts/ImageOnly/index.d.ts +2 -1
- package/dist/components/PageHero/page-hero-layouts/page-hero.d.js +1 -0
- package/dist/components/ProgramAirdate/ProgramAirdate.d.ts +14 -10
- package/dist/components/ProgramAirdate/ProgramAirdate.js +72 -67
- package/dist/components/ProgramAirdate/index.d.ts +2 -1
- package/dist/components/PromotionBlock/PromotionBlock.d.ts +11 -4
- package/dist/components/PromotionBlock/PromotionBlock.js +36 -26
- package/dist/components/PromotionBlock/index.d.ts +2 -1
- package/dist/components/PromotionsRowBlock/PromotionsRowBlock.d.ts +5 -4
- package/dist/components/PromotionsRowBlock/PromotionsRowBlock.js +8 -6
- package/dist/components/PromotionsRowBlock/index.d.ts +2 -1
- package/dist/components/PromotionsRowModule/PromotionsRowModule.d.ts +25 -5
- package/dist/components/PromotionsRowModule/PromotionsRowModule.js +48 -48
- package/dist/components/PromotionsRowModule/index.d.ts +2 -1
- package/dist/components/RescanInstructions/RescanInstructions.d.ts +3 -3
- package/dist/components/RescanInstructions/RescanInstructions.js +29 -18
- package/dist/components/RescanInstructions/index.d.ts +2 -1
- package/dist/components/ResponsiveImage/ResponsiveImage.d.ts +13 -12
- package/dist/components/ResponsiveImage/ResponsiveImage.js +16 -20
- package/dist/components/ResponsiveImage/index.d.ts +2 -1
- package/dist/components/ResultsTable/ResultsTable.d.ts +10 -6
- package/dist/components/ResultsTable/ResultsTable.js +21 -16
- package/dist/components/ResultsTable/index.d.ts +2 -1
- package/dist/components/ResultsTableBody/ResultsTableBody.d.ts +9 -5
- package/dist/components/ResultsTableBody/ResultsTableBody.js +21 -16
- package/dist/components/ResultsTableBody/index.d.ts +2 -1
- package/dist/components/ResultsTableHeader/ResultsTableHeader.d.ts +7 -3
- package/dist/components/ResultsTableHeader/ResultsTableHeader.js +4 -5
- package/dist/components/ResultsTableHeader/index.d.ts +2 -1
- package/dist/components/ScheduleLayout/ScheduleContext.d.ts +27 -0
- package/dist/components/ScheduleLayout/ScheduleContext.js +1931 -0
- package/dist/components/ScheduleLayout/ScheduleLayout.d.ts +16 -5
- package/dist/components/ScheduleLayout/ScheduleLayout.js +98 -24
- package/dist/components/ScheduleLayout/index.d.ts +2 -1
- package/dist/components/ScheduleLayout/useScheduleContext.d.ts +15 -0
- package/dist/components/ScheduleLayout/useScheduleContext.js +12 -0
- package/dist/components/ScheduleList/ScheduleList.d.ts +5 -5
- package/dist/components/ScheduleList/ScheduleList.js +162 -60
- package/dist/components/ScheduleList/index.d.ts +2 -1
- package/dist/components/ScheduleList/schedule-list-items/AirDateSegment.d.ts +6 -4
- package/dist/components/ScheduleList/schedule-list-items/AirDateSegment.js +28 -17
- package/dist/components/ScheduleList/schedule-list-items/MovieItem.d.ts +9 -7
- package/dist/components/ScheduleList/schedule-list-items/MovieItem.js +46 -34
- package/dist/components/ScheduleList/schedule-list-items/SeriesItem.d.ts +9 -7
- package/dist/components/ScheduleList/schedule-list-items/SeriesItem.js +48 -32
- package/dist/components/ScheduleList/schedule-list-items/SportsItem.d.ts +9 -7
- package/dist/components/ScheduleList/schedule-list-items/SportsItem.js +46 -34
- package/dist/components/SectionedContent/SectionedContent.d.ts +11 -3
- package/dist/components/SectionedContent/SectionedContent.js +14 -15
- package/dist/components/SectionedContent/index.d.ts +2 -1
- package/dist/components/Select/Select.d.ts +15 -11
- package/dist/components/Select/Select.js +21 -21
- package/dist/components/Select/index.d.ts +2 -1
- package/dist/components/ShowAboutContent/ShowAboutContent.d.ts +10 -8
- package/dist/components/ShowAboutContent/ShowAboutContent.js +27 -28
- package/dist/components/ShowAboutContent/index.d.ts +2 -1
- package/dist/components/ShowAboutLayout/ShowAboutLayout.d.ts +10 -8
- package/dist/components/ShowAboutLayout/ShowAboutLayout.js +91 -42
- package/dist/components/ShowAboutLayout/index.d.ts +2 -1
- package/dist/components/SocialLinks/SocialLinks.d.ts +15 -9
- package/dist/components/SocialLinks/SocialLinks.js +192 -138
- package/dist/components/SocialShareBlock/SocialShareBlock.d.ts +9 -8
- package/dist/components/SocialShareBlock/SocialShareBlock.js +20 -22
- package/dist/components/SocialShareBlock/index.d.ts +2 -1
- package/dist/components/SocialShareButton/SocialShareButton.d.ts +8 -7
- package/dist/components/SocialShareButton/SocialShareButton.js +3 -4
- package/dist/components/SocialShareButton/index.d.ts +2 -1
- package/dist/components/SocialShareButton/index.js +1 -1
- package/dist/components/StringList/StringList.d.ts +6 -5
- package/dist/components/StringList/StringList.js +16 -12
- package/dist/components/StringList/index.d.ts +2 -1
- package/dist/components/TabContent/TabContent.d.ts +5 -4
- package/dist/components/TabContent/TabContent.js +9 -7
- package/dist/components/TabContent/index.d.ts +2 -1
- package/dist/components/TabNavigation/TabNavigation.d.ts +7 -5
- package/dist/components/TabNavigation/TabNavigation.js +58 -53
- package/dist/components/TabNavigation/index.d.ts +2 -1
- package/dist/components/TabbedContent/TabbedContent.d.ts +20 -4
- package/dist/components/TabbedContent/TabbedContent.js +24 -8
- package/dist/components/TabbedContent/index.d.ts +2 -1
- package/dist/components/TextArea/TextArea.d.ts +9 -1
- package/dist/components/TextArea/TextArea.js +13 -13
- package/dist/components/TextArea/index.d.ts +2 -1
- package/dist/components/UpcomingList/UpcomingList.d.ts +5 -4
- package/dist/components/UpcomingList/UpcomingList.js +55 -41
- package/dist/containers/GetFeatruedListContainer.d.ts +22 -15
- package/dist/containers/GetFeatruedListContainer.js +16 -16
- package/dist/containers/NowPlayingContainer.d.ts +17 -15
- package/dist/containers/NowPlayingContainer.js +18 -16
- package/dist/custom-elements.d.js +1 -0
- package/dist/data-resources/FakeDataResource.d.ts +77 -68
- package/dist/data-resources/FakeDataResource.js +244 -142
- package/dist/error-boundries/BlankErrorBoundry.d.ts +14 -9
- package/dist/error-boundries/BlankErrorBoundry.js +5 -5
- package/dist/error-boundries/GeneralErrorBoundry.d.ts +15 -10
- package/dist/error-boundries/GeneralErrorBoundry.js +10 -10
- package/dist/hooks/{useGetSchedule.d.ts → getSchedule.d.ts} +12 -4
- package/dist/hooks/getSchedule.js +62 -0
- package/dist/hooks/useGetUpcoming.d.ts +8 -6
- package/dist/hooks/useGetUpcoming.js +22 -25
- package/dist/icons/Facebook.js +6 -6
- package/dist/icons/Tiktok.js +15 -7
- package/dist/icons/Twitter.js +7 -7
- package/dist/index.d.ts +1 -0
- package/dist/index.js +35 -33
- package/dist/logger-C0N7U0YY.mjs +67 -0
- package/dist/settings.d.ts +4 -3
- package/dist/settings.js +6 -5
- package/dist/types.d.js +27 -0
- package/dist/utils/Redirect.d.ts +2 -2
- package/dist/utils/analytics.js +1 -1
- package/dist/utils/date-helpers.d.ts +3 -2
- package/dist/utils/date-helpers.js +26 -26
- package/dist/utils/events.js +8 -6
- package/dist/utils/getFeaturedList.d.ts +28 -8
- package/dist/utils/getFeaturedList.js +58 -45
- package/dist/utils/getFeaturedListImages.d.ts +15 -5
- package/dist/utils/getFeaturedListImages.js +27 -16
- package/dist/utils/getOnNowProgram.d.ts +17 -3
- package/dist/utils/getOnNowProgram.js +106 -68
- package/dist/utils/getSchedule.d.ts +8 -6
- package/dist/utils/getSchedule.js +6 -1
- package/dist/utils/getUpcomingPrograms.d.ts +10 -7
- package/dist/utils/getUpcomingPrograms.js +5 -4
- package/dist/utils/getViewingPlatforms.d.ts +6 -16
- package/dist/utils/getViewingPlatforms.js +14 -11
- package/dist/utils/gtm.js +1 -1
- package/dist/utils/helpers.d.ts +9 -9
- package/dist/utils/helpers.js +69 -65
- package/dist/utils/program-helpers.d.ts +14 -20
- package/dist/utils/program-helpers.js +9 -8
- package/dist/utils/series-helpers.d.ts +14 -20
- package/dist/utils/series-helpers.js +9 -8
- package/package.json +23 -13
- package/dist/Carousel.module-DOrBKQEQ.mjs +0 -14
- package/dist/PageHero.module-BdV8z_Xv.mjs +0 -8
- package/dist/ResultsTable.module-B7M9y7hd.mjs +0 -14
- package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.stories.d.ts +0 -34
- package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.stories.js +0 -105
- package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/NetworkCalloutSlide.stories.d.ts +0 -28
- package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/NetworkCalloutSlide.stories.js +0 -42
- package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.stories.d.ts +0 -170
- package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.stories.js +0 -193
- package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.stories.d.ts +0 -19
- package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.stories.js +0 -35
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.stories.d.ts +0 -17
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.stories.js +0 -49
- package/dist/facebook-HCcA1M1m.mjs +0 -54
- package/dist/hooks/useGetSchedule.js +0 -58
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
list: p = [],
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { p as c } from "../../index-VjANCDXC.mjs";
|
|
3
|
+
import { classes as t } from "../../utils/helpers.js";
|
|
4
|
+
function f({
|
|
5
|
+
list: s = [],
|
|
7
6
|
type: l = "unordered",
|
|
8
|
-
// 'unordered' | 'ordered'
|
|
9
7
|
classname: r = ""
|
|
10
8
|
}) {
|
|
11
|
-
|
|
9
|
+
const n = () => s.map((e, o) => /* @__PURE__ */ i(
|
|
12
10
|
"li",
|
|
13
11
|
{
|
|
14
|
-
className:
|
|
15
|
-
children: typeof e == "string" && e !== "" ?
|
|
12
|
+
className: t(["generic-list__item", `${r}__item`]),
|
|
13
|
+
children: typeof e == "string" && e !== "" ? c(e) : e
|
|
16
14
|
},
|
|
17
|
-
r === "" ? `generic-list-${
|
|
18
|
-
))
|
|
15
|
+
r === "" ? `generic-list-${o}` : `${r}-${o}`
|
|
16
|
+
));
|
|
17
|
+
return l === "unordered" ? /* @__PURE__ */ i("ul", { className: t(["generic-list", `${r}`]), children: n() }) : /* @__PURE__ */ i("ol", { className: t(["generic-list", "generic-list--ordered", `${r}`]), children: n() });
|
|
19
18
|
}
|
|
20
19
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
f as GenericList,
|
|
21
|
+
f as default
|
|
23
22
|
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { GenericList
|
|
1
|
+
export { GenericList } from './GenericList';
|
|
2
|
+
export { GenericList as default } from './GenericList';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
programId:
|
|
3
|
-
programType?:
|
|
4
|
-
separatorType?:
|
|
5
|
-
includeEpisode?: boolean
|
|
6
|
-
SCHEDULE_ENDPOINT:
|
|
7
|
-
NETWORK:
|
|
8
|
-
}
|
|
1
|
+
type GetAirdateWrapperProps = {
|
|
2
|
+
programId: string | number;
|
|
3
|
+
programType?: 'series' | 'film' | 'unknown';
|
|
4
|
+
separatorType?: 'pipe' | 'line-break' | 'single-line-break' | 'none' | undefined;
|
|
5
|
+
includeEpisode?: boolean;
|
|
6
|
+
SCHEDULE_ENDPOINT: string;
|
|
7
|
+
NETWORK: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function GetAirdateWrapper({ programId, programType, separatorType, includeEpisode, SCHEDULE_ENDPOINT, NETWORK, }: GetAirdateWrapperProps): JSX.Element;
|
|
9
10
|
export default GetAirdateWrapper;
|
|
@@ -1,40 +1,56 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { convert12to24 as
|
|
4
|
-
import
|
|
5
|
-
import { AirDateFormatter as
|
|
6
|
-
import { StringList as
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { jsx as s, Fragment as m } from "react/jsx-runtime";
|
|
2
|
+
import { useState as p } from "react";
|
|
3
|
+
import { convert12to24 as b } from "../../utils/helpers.js";
|
|
4
|
+
import h from "../../hooks/useGetUpcoming.js";
|
|
5
|
+
import { AirDateFormatter as d } from "../AirDateFormatter/AirDateFormatter.js";
|
|
6
|
+
import { StringList as N } from "../StringList/StringList.js";
|
|
7
|
+
const D = (t) => {
|
|
8
|
+
var n;
|
|
9
|
+
let r;
|
|
10
|
+
for (let i = 0; i < ((n = t == null ? void 0 : t.title_code) == null ? void 0 : n.length); i++)
|
|
11
|
+
if (!isNaN(Number.parseInt(t.title_code.charAt(i), 10))) {
|
|
12
|
+
r = i;
|
|
12
13
|
break;
|
|
13
14
|
}
|
|
14
|
-
return
|
|
15
|
+
return t.title_code.slice(r);
|
|
15
16
|
};
|
|
16
|
-
function
|
|
17
|
-
programId:
|
|
18
|
-
programType:
|
|
19
|
-
separatorType:
|
|
20
|
-
includeEpisode:
|
|
21
|
-
SCHEDULE_ENDPOINT:
|
|
22
|
-
NETWORK:
|
|
17
|
+
function w({
|
|
18
|
+
programId: t,
|
|
19
|
+
programType: r = "series",
|
|
20
|
+
separatorType: n = "pipe",
|
|
21
|
+
includeEpisode: i = !1,
|
|
22
|
+
SCHEDULE_ENDPOINT: c,
|
|
23
|
+
NETWORK: _
|
|
23
24
|
}) {
|
|
24
|
-
const [
|
|
25
|
-
return
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
const [l, S] = p(null), [$, x] = p(null);
|
|
26
|
+
return h({
|
|
27
|
+
programId: String(t),
|
|
28
|
+
programType: r === "unknown" ? void 0 : r,
|
|
29
|
+
SCHEDULE_ENDPOINT: c,
|
|
30
|
+
NETWORK: _
|
|
31
|
+
}).then((A) => {
|
|
32
|
+
var u, f;
|
|
33
|
+
const e = A;
|
|
34
|
+
let a = null, o = null;
|
|
35
|
+
e.length && (a = `${e[0].start_date_parse} ${b(e[0].start_time)}`, i && ((u = e[0]) != null && u.episode_number ? o = `${(f = e[0]) == null ? void 0 : f.episode_number}: ${e[0].title_name}` : o = `${D(e[0])}: ${e[0].title_name}`)), S(a), x(o);
|
|
36
|
+
}), l === null ? /* @__PURE__ */ s(m, {}) : t === "" ? /* @__PURE__ */ s(m, {}) : i ? /* @__PURE__ */ s(
|
|
37
|
+
N,
|
|
31
38
|
{
|
|
32
|
-
list: [
|
|
39
|
+
list: [
|
|
40
|
+
/* @__PURE__ */ s(
|
|
41
|
+
d,
|
|
42
|
+
{
|
|
43
|
+
airdateStr: l,
|
|
44
|
+
separatorType: n
|
|
45
|
+
}
|
|
46
|
+
),
|
|
47
|
+
$
|
|
48
|
+
],
|
|
33
49
|
separatorType: "pipe"
|
|
34
50
|
}
|
|
35
|
-
) : /* @__PURE__ */
|
|
51
|
+
) : /* @__PURE__ */ s(d, { airdateStr: l, separatorType: n });
|
|
36
52
|
}
|
|
37
53
|
export {
|
|
38
|
-
|
|
39
|
-
|
|
54
|
+
w as GetAirdateWrapper,
|
|
55
|
+
w as default
|
|
40
56
|
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { GetAirdateWrapper
|
|
1
|
+
export { GetAirdateWrapper } from './GetAirdateWrapper';
|
|
2
|
+
export { GetAirdateWrapper as default } from './GetAirdateWrapper';
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
1
|
+
type GradientButtonProps = {
|
|
2
|
+
type?: 'button' | 'submit' | 'reset';
|
|
3
|
+
label?: string;
|
|
4
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
5
|
+
varient?: 'primary' | 'secondary' | 'tertiary' | '';
|
|
6
|
+
size?: 'small' | 'regular' | 'large' | '';
|
|
7
|
+
classname?: string;
|
|
8
|
+
href?: string;
|
|
9
|
+
gradientStartColor?: string;
|
|
10
|
+
gradientEndColor?: string;
|
|
11
|
+
hoverGradientStartColor?: string;
|
|
12
|
+
hoverGradientEndColor?: string;
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
};
|
|
15
|
+
export declare function GradientButton({ type, label, onClick, varient, size, classname, href, gradientStartColor, gradientEndColor, ...attributes }: GradientButtonProps): JSX.Element;
|
|
15
16
|
export default GradientButton;
|
|
@@ -1,69 +1,66 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import "
|
|
3
|
-
import { classes as c } from "../../utils/helpers.js";
|
|
1
|
+
import { jsx as g, Fragment as w } from "react/jsx-runtime";
|
|
2
|
+
import { classes as m } from "../../utils/helpers.js";
|
|
4
3
|
import '../../assets/GradientButton.css';const a = {
|
|
5
|
-
"gradient-btn": "_gradient-
|
|
6
|
-
"gradient-btn--small": "_gradient-btn--
|
|
7
|
-
"gradient-btn--large": "_gradient-btn--
|
|
8
|
-
"gradient-btn--primary": "_gradient-btn--
|
|
9
|
-
"gradient-btn--action": "_gradient-btn--
|
|
10
|
-
"gradient-btn--info": "_gradient-btn--
|
|
11
|
-
"gradient-btn--danger": "_gradient-btn--
|
|
4
|
+
"gradient-btn": "_gradient-btn_1nwnc_1",
|
|
5
|
+
"gradient-btn--small": "_gradient-btn--small_1nwnc_23",
|
|
6
|
+
"gradient-btn--large": "_gradient-btn--large_1nwnc_30",
|
|
7
|
+
"gradient-btn--primary": "_gradient-btn--primary_1nwnc_37",
|
|
8
|
+
"gradient-btn--action": "_gradient-btn--action_1nwnc_41",
|
|
9
|
+
"gradient-btn--info": "_gradient-btn--info_1nwnc_45",
|
|
10
|
+
"gradient-btn--danger": "_gradient-btn--danger_1nwnc_49"
|
|
12
11
|
};
|
|
13
|
-
function
|
|
14
|
-
type:
|
|
15
|
-
label:
|
|
16
|
-
onClick:
|
|
12
|
+
function y({
|
|
13
|
+
type: $ = "button",
|
|
14
|
+
label: r = "",
|
|
15
|
+
onClick: l = () => {
|
|
17
16
|
},
|
|
18
17
|
varient: e = "primary",
|
|
19
|
-
size:
|
|
20
|
-
classname:
|
|
21
|
-
href:
|
|
18
|
+
size: i = "regular",
|
|
19
|
+
classname: _ = "",
|
|
20
|
+
href: b = "",
|
|
22
21
|
gradientStartColor: n = "",
|
|
23
22
|
gradientEndColor: t = "",
|
|
24
|
-
|
|
25
|
-
hoverGradientEndColor: u = "",
|
|
26
|
-
...b
|
|
23
|
+
...c
|
|
27
24
|
}) {
|
|
28
|
-
const
|
|
29
|
-
return /* @__PURE__ */
|
|
25
|
+
const d = e === "" ? "" : `gradient-btn--${e}`, s = i === "" ? "" : `gradient-btn--${i}`;
|
|
26
|
+
return /* @__PURE__ */ g(w, { children: b === "" ? /* @__PURE__ */ g(
|
|
30
27
|
"button",
|
|
31
28
|
{
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
className: c([
|
|
35
|
-
d,
|
|
29
|
+
className: m([
|
|
30
|
+
_,
|
|
36
31
|
a["gradient-btn"],
|
|
37
32
|
"gradient-btn",
|
|
38
|
-
e === "" ? "" : a[
|
|
39
|
-
|
|
33
|
+
e === "" ? "" : a[d],
|
|
34
|
+
i === "" ? "" : a[s]
|
|
40
35
|
]),
|
|
41
36
|
style: n !== "" && t !== "" ? {
|
|
42
37
|
"--gradient": `linear-gradient(180deg, ${t}, ${n}, ${n},${t})`
|
|
43
38
|
} : {},
|
|
44
|
-
|
|
45
|
-
|
|
39
|
+
type: $,
|
|
40
|
+
onClick: l,
|
|
41
|
+
...c,
|
|
42
|
+
children: r
|
|
46
43
|
}
|
|
47
|
-
) : /* @__PURE__ */
|
|
44
|
+
) : /* @__PURE__ */ g(
|
|
48
45
|
"a",
|
|
49
46
|
{
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
d,
|
|
47
|
+
className: m([
|
|
48
|
+
_,
|
|
53
49
|
a["gradient-btn"],
|
|
54
50
|
"gradient-btn",
|
|
55
|
-
e === "" ? "" : a[
|
|
56
|
-
|
|
51
|
+
e === "" ? "" : a[d],
|
|
52
|
+
i === "" ? "" : a[s]
|
|
57
53
|
]),
|
|
54
|
+
href: b,
|
|
58
55
|
style: n !== "" && t !== "" ? {
|
|
59
56
|
"--gradient": `linear-gradient(180deg, ${t}, ${n}, ${n},${t})`
|
|
60
57
|
} : {},
|
|
61
|
-
...
|
|
62
|
-
children:
|
|
58
|
+
...c,
|
|
59
|
+
children: r
|
|
63
60
|
}
|
|
64
61
|
) });
|
|
65
62
|
}
|
|
66
63
|
export {
|
|
67
|
-
|
|
68
|
-
|
|
64
|
+
y as GradientButton,
|
|
65
|
+
y as default
|
|
69
66
|
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { GradientButton
|
|
1
|
+
export { GradientButton } from './GradientButton';
|
|
2
|
+
export { GradientButton as default } from './GradientButton';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
children:
|
|
3
|
-
numberOfColumns?: number
|
|
4
|
-
headerText?: string
|
|
5
|
-
}
|
|
1
|
+
type GridListProps = {
|
|
2
|
+
children: React.ReactNode;
|
|
3
|
+
numberOfColumns?: number;
|
|
4
|
+
headerText?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function GridList({ children, numberOfColumns, headerText, }: GridListProps): JSX.Element;
|
|
6
7
|
export default GridList;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import "
|
|
3
|
-
import '../../assets/GridList.css';const
|
|
1
|
+
import { jsxs as c, Fragment as g, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { classes as t } from "../../utils/helpers.js";
|
|
3
|
+
import '../../assets/GridList.css';const s = {
|
|
4
4
|
"grid-list": "_grid-list_17klz_1",
|
|
5
5
|
"grid-list-header": "_grid-list-header_17klz_9",
|
|
6
6
|
"grid-list--1-columns": "_grid-list--1-columns_17klz_13",
|
|
@@ -14,15 +14,19 @@ import '../../assets/GridList.css';const i = {
|
|
|
14
14
|
"grid-list--9-columns": "_grid-list--9-columns_17klz_45",
|
|
15
15
|
"grid-list--10-columns": "_grid-list--10-columns_17klz_49"
|
|
16
16
|
};
|
|
17
|
-
function
|
|
17
|
+
function m({
|
|
18
|
+
children: _,
|
|
19
|
+
numberOfColumns: l = 2,
|
|
20
|
+
headerText: i = ""
|
|
21
|
+
}) {
|
|
18
22
|
l > 10 && (l = 10);
|
|
19
|
-
const
|
|
20
|
-
return /* @__PURE__ */
|
|
21
|
-
|
|
22
|
-
/* @__PURE__ */ r("ul", { className: [
|
|
23
|
+
const d = `grid-list--${l}-columns`;
|
|
24
|
+
return /* @__PURE__ */ c(g, { children: [
|
|
25
|
+
i !== "" && /* @__PURE__ */ r("h3", { className: t([s["grid-list-header"], "grid-list-header"]), children: i }),
|
|
26
|
+
/* @__PURE__ */ r("ul", { className: t([s["grid-list"], s[d]]), children: _ })
|
|
23
27
|
] });
|
|
24
28
|
}
|
|
25
29
|
export {
|
|
26
|
-
|
|
27
|
-
|
|
30
|
+
m as GridList,
|
|
31
|
+
m as default
|
|
28
32
|
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { GridList
|
|
1
|
+
export { GridList } from './GridList';
|
|
2
|
+
export { GridList as default } from './GridList';
|
|
@@ -1,3 +1,29 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
2
|
+
import { HandleClicksDetails, CTA, Image } from '../../types';
|
|
3
|
+
export type ImageCardProps = {
|
|
4
|
+
id?: string | number;
|
|
5
|
+
image?: Image;
|
|
6
|
+
mobileImage?: Image;
|
|
7
|
+
fullSizeImagePosition?: [number, number];
|
|
8
|
+
mobileImagePosition?: [number, number];
|
|
9
|
+
clampContentLines?: boolean;
|
|
10
|
+
numberOfLinesToClamp?: number;
|
|
11
|
+
overlayContent?: string | JSX.Element;
|
|
12
|
+
overlayPosition?: 'left' | 'right' | 'center';
|
|
13
|
+
overlayTextColor?: string;
|
|
14
|
+
relatedResourceId?: string;
|
|
15
|
+
cta?: CTA;
|
|
16
|
+
handleClicks?: (details: HandleClicksDetails) => void | boolean;
|
|
17
|
+
fullCardClickable?: boolean;
|
|
18
|
+
displayInline?: boolean;
|
|
19
|
+
classname?: string;
|
|
20
|
+
lazyLoad?: boolean;
|
|
21
|
+
fetchPriority?: 'high' | 'low' | 'auto' | undefined;
|
|
22
|
+
decoding?: 'async' | 'sync' | 'auto';
|
|
23
|
+
displayCTA?: boolean;
|
|
24
|
+
title?: string;
|
|
25
|
+
content?: string | JSX.Element;
|
|
26
|
+
customStyles?: React.CSSProperties;
|
|
27
|
+
};
|
|
28
|
+
export declare const ImageCard: React.ForwardRefExoticComponent<ImageCardProps & React.RefAttributes<unknown>>;
|
|
3
29
|
export default ImageCard;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { classes as
|
|
4
|
-
import
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as b } from "react";
|
|
3
|
+
import { classes as x } from "../../utils/helpers.js";
|
|
4
|
+
import j from "./ImageCardCore.js";
|
|
5
5
|
import '../../assets/ImageCard.css';const l = {
|
|
6
|
-
"image-card--clickable": "_image-card--
|
|
7
|
-
"image-card__img-wrapper": "_image-card__img-
|
|
8
|
-
"image-card--inline": "_image-card--
|
|
9
|
-
"image-card__image": "_image-
|
|
10
|
-
"image-card__mobile-image": "_image-card__mobile-
|
|
11
|
-
"image-card__play-icon": "_image-card__play-
|
|
12
|
-
"play-icon__triangle": "_play-
|
|
13
|
-
"image-card__content": "_image-
|
|
14
|
-
"image-card__cta-wrapper": "_image-card__cta-
|
|
15
|
-
"image-card__cta": "_image-
|
|
16
|
-
"image-card__overlay-content": "_image-card__overlay-
|
|
17
|
-
},
|
|
6
|
+
"image-card--clickable": "_image-card--clickable_1qjtn_13",
|
|
7
|
+
"image-card__img-wrapper": "_image-card__img-wrapper_1qjtn_17",
|
|
8
|
+
"image-card--inline": "_image-card--inline_1qjtn_34",
|
|
9
|
+
"image-card__image": "_image-card__image_1qjtn_38",
|
|
10
|
+
"image-card__mobile-image": "_image-card__mobile-image_1qjtn_44",
|
|
11
|
+
"image-card__play-icon": "_image-card__play-icon_1qjtn_76",
|
|
12
|
+
"play-icon__triangle": "_play-icon__triangle_1qjtn_88",
|
|
13
|
+
"image-card__content": "_image-card__content_1qjtn_110",
|
|
14
|
+
"image-card__cta-wrapper": "_image-card__cta-wrapper_1qjtn_131",
|
|
15
|
+
"image-card__cta": "_image-card__cta_1qjtn_131",
|
|
16
|
+
"image-card__overlay-content": "_image-card__overlay-content_1qjtn_145"
|
|
17
|
+
}, w = b(function(_, d) {
|
|
18
18
|
const {
|
|
19
19
|
image: t = { url: "", altText: "", aspectRatio: 1, sources: [] },
|
|
20
|
-
mobileImage:
|
|
20
|
+
mobileImage: p = { url: "", altText: "", aspectRatio: 1 },
|
|
21
21
|
fullSizeImagePosition: a = [50, 50],
|
|
22
22
|
mobileImagePosition: r = [50, 50],
|
|
23
|
-
clampContentLines:
|
|
24
|
-
numberOfLinesToClamp:
|
|
25
|
-
overlayPosition:
|
|
26
|
-
overlayTextColor:
|
|
27
|
-
relatedResourceId:
|
|
23
|
+
clampContentLines: s = !0,
|
|
24
|
+
numberOfLinesToClamp: g = 3,
|
|
25
|
+
overlayPosition: m = "left",
|
|
26
|
+
overlayTextColor: y = "#fff",
|
|
27
|
+
relatedResourceId: C = "",
|
|
28
28
|
cta: e = {
|
|
29
29
|
label: "",
|
|
30
30
|
href: "",
|
|
@@ -33,81 +33,82 @@ import '../../assets/ImageCard.css';const l = {
|
|
|
33
33
|
relatedResourceType: "",
|
|
34
34
|
position: "end"
|
|
35
35
|
},
|
|
36
|
-
|
|
36
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
37
|
+
handleClicks: v = (o) => {
|
|
37
38
|
},
|
|
38
|
-
fullCardClickable:
|
|
39
|
+
fullCardClickable: n = !1,
|
|
39
40
|
displayInline: i = !1,
|
|
40
|
-
classname:
|
|
41
|
-
} = _,
|
|
41
|
+
classname: u = ""
|
|
42
|
+
} = _, f = /* @__PURE__ */ new Map([
|
|
42
43
|
["left", "flex-start"],
|
|
43
44
|
["right", "flex-end"],
|
|
44
45
|
["center", "center"]
|
|
45
|
-
]),
|
|
46
|
-
|
|
46
|
+
]), k = (o) => {
|
|
47
|
+
v({
|
|
47
48
|
type: "card-clicked",
|
|
48
49
|
ctaType: e == null ? void 0 : e.type,
|
|
49
|
-
resourceId:
|
|
50
|
+
resourceId: C,
|
|
50
51
|
resourceType: e.relatedResourceType,
|
|
51
|
-
target:
|
|
52
|
-
currentTarget:
|
|
52
|
+
target: o.target,
|
|
53
|
+
currentTarget: o.currentTarget
|
|
53
54
|
});
|
|
54
55
|
};
|
|
55
|
-
return
|
|
56
|
+
return n && (e == null ? void 0 : e.href) !== "" && ((e == null ? void 0 : e.type) === "internal-link" || (e == null ? void 0 : e.type) === "external-link") ? /* @__PURE__ */ c(
|
|
56
57
|
"image-card",
|
|
57
58
|
{
|
|
58
|
-
class:
|
|
59
|
-
|
|
59
|
+
class: x([
|
|
60
|
+
n ? l["image-card--clickable"] : null,
|
|
60
61
|
i ? l["image-card--inline"] : null,
|
|
61
|
-
|
|
62
|
+
u
|
|
62
63
|
]),
|
|
64
|
+
"data-cursor": "pointer",
|
|
63
65
|
style: {
|
|
64
|
-
"--justify-overlay-content":
|
|
66
|
+
"--justify-overlay-content": f.get(m),
|
|
65
67
|
"--align-overlay-content": i ? "center" : "flex-end",
|
|
66
|
-
"--overlay-content-text-color":
|
|
67
|
-
"--content-line-clamp":
|
|
68
|
+
"--overlay-content-text-color": y,
|
|
69
|
+
"--content-line-clamp": s ? g : "unset",
|
|
68
70
|
"--image-aspect-ratio": t.aspectRatio,
|
|
69
|
-
"--mobile-image-aspect-ratio":
|
|
71
|
+
"--mobile-image-aspect-ratio": p.aspectRatio,
|
|
70
72
|
"--background-image-position": `${(a == null ? void 0 : a[0]) ?? "50"}% ${(a == null ? void 0 : a[1]) ?? "50"}%`,
|
|
71
73
|
"--mobile-background-image-position": `${(r == null ? void 0 : r[0]) ?? "50"}% ${(r == null ? void 0 : r[1]) ?? "50"}%`
|
|
72
74
|
},
|
|
73
|
-
onClick:
|
|
74
|
-
|
|
75
|
-
children: /* @__PURE__ */ n(
|
|
75
|
+
onClick: n ? k : () => !0,
|
|
76
|
+
children: /* @__PURE__ */ c(
|
|
76
77
|
"a",
|
|
77
78
|
{
|
|
79
|
+
className: "image-card__full-card-link",
|
|
78
80
|
href: e.href,
|
|
79
|
-
|
|
81
|
+
rel: e.type === "external-link" ? "noreferrer" : void 0,
|
|
80
82
|
target: e.type === "external-link" ? "_blank" : "_self",
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
children: /* @__PURE__ */ n(x, { ..._, styles: l, ref: o })
|
|
83
|
+
title: t == null ? void 0 : t.altText,
|
|
84
|
+
children: /* @__PURE__ */ c(j, { ..._, ref: d, styles: l })
|
|
84
85
|
}
|
|
85
86
|
)
|
|
86
87
|
}
|
|
87
|
-
) : /* @__PURE__ */
|
|
88
|
+
) : /* @__PURE__ */ c(
|
|
88
89
|
"image-card",
|
|
89
90
|
{
|
|
90
|
-
class:
|
|
91
|
+
class: x([
|
|
91
92
|
i ? l["image-card--inline"] : null,
|
|
92
|
-
|
|
93
|
+
u
|
|
93
94
|
]),
|
|
95
|
+
"data-cursor": n ? "pointer" : "default",
|
|
94
96
|
style: {
|
|
95
|
-
"--justify-overlay-content":
|
|
97
|
+
"--justify-overlay-content": f.get(m),
|
|
96
98
|
"--align-overlay-content": i ? "center" : "flex-end",
|
|
97
|
-
"--overlay-content-text-color":
|
|
98
|
-
"--content-line-clamp":
|
|
99
|
+
"--overlay-content-text-color": y,
|
|
100
|
+
"--content-line-clamp": s ? g : "unset",
|
|
99
101
|
"--image-aspect-ratio": t.aspectRatio,
|
|
100
|
-
"--mobile-image-aspect-ratio":
|
|
102
|
+
"--mobile-image-aspect-ratio": p.aspectRatio,
|
|
101
103
|
"--background-image-position": `${(a == null ? void 0 : a[0]) ?? "50"}% ${(a == null ? void 0 : a[1]) ?? "50"}%`,
|
|
102
104
|
"--mobile-background-image-position": `${(r == null ? void 0 : r[0]) ?? "50"}% ${(r == null ? void 0 : r[1]) ?? "50"}%`
|
|
103
105
|
},
|
|
104
|
-
onClick:
|
|
105
|
-
|
|
106
|
-
children: /* @__PURE__ */ n(x, { ..._, styles: l, ref: o })
|
|
106
|
+
onClick: n ? k : () => !0,
|
|
107
|
+
children: /* @__PURE__ */ c(j, { ..._, ref: d, styles: l })
|
|
107
108
|
}
|
|
108
109
|
);
|
|
109
110
|
});
|
|
110
111
|
export {
|
|
111
|
-
|
|
112
|
-
|
|
112
|
+
w as ImageCard,
|
|
113
|
+
w as default
|
|
113
114
|
};
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ImageCardProps } from './ImageCard';
|
|
2
|
+
declare const ImageCardCore: import('react').ForwardRefExoticComponent<ImageCardProps & {
|
|
3
|
+
styles: {
|
|
4
|
+
readonly [key: string]: string;
|
|
5
|
+
};
|
|
6
|
+
} & import('react').RefAttributes<unknown>>;
|
|
2
7
|
export default ImageCardCore;
|
|
3
|
-
declare const ImageCardCore: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|