@scrippsproduct/networks-ui-library 1.1.0-alpha.0 → 1.1.0-alpha.2
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 +114 -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 +25 -0
- package/dist/components/ScheduleLayout/ScheduleContext.js +33 -0
- package/dist/components/ScheduleLayout/ScheduleLayout.d.ts +15 -5
- package/dist/components/ScheduleLayout/ScheduleLayout.js +76 -24
- package/dist/components/ScheduleLayout/index.d.ts +2 -1
- package/dist/components/ScheduleLayout/useScheduleContext.d.ts +14 -0
- package/dist/components/ScheduleLayout/useScheduleContext.js +12 -0
- package/dist/components/ScheduleList/ScheduleList.d.ts +5 -5
- package/dist/components/ScheduleList/ScheduleList.js +153 -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 +27 -16
- 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 +53 -37
- 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 +12 -4
- package/dist/hooks/useGetSchedule.js +31 -27
- 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.js +1 -1
- 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 +16 -8
- 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
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type ActionButtonProps = {
|
|
3
|
+
label: string;
|
|
4
|
+
type?: 'button' | 'submit' | 'reset';
|
|
5
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
6
|
+
varient?: string;
|
|
7
|
+
size?: string;
|
|
8
|
+
customColors?: {
|
|
9
|
+
bgColor: string;
|
|
10
|
+
bgHoverColor: string;
|
|
11
|
+
color: string;
|
|
12
|
+
hoverColor: string;
|
|
13
|
+
borderColor: string;
|
|
14
|
+
borderHoverColor: string;
|
|
15
|
+
};
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
classname?: string;
|
|
18
|
+
[key: string]: unknown;
|
|
19
|
+
};
|
|
1
20
|
/**
|
|
2
21
|
* ActionButton component for rendering a button that will display a loading state.
|
|
3
22
|
* @param {*} param0 - Component props.
|
|
@@ -18,5 +37,5 @@
|
|
|
18
37
|
* @param {object} param0.attributes - Additional attributes to be applied to the button.
|
|
19
38
|
* @returns {JSX.Element} The rendered action button.
|
|
20
39
|
*/
|
|
21
|
-
export function ActionButton({ label, type, onClick, varient, size, customColors, disabled, classname, ...attributes }:
|
|
40
|
+
export declare function ActionButton({ label, type, onClick, varient, size, customColors, disabled, classname, ...attributes }: ActionButtonProps): JSX.Element;
|
|
22
41
|
export default ActionButton;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { subscribe as w, unsubscribe as y, publish as
|
|
4
|
-
import { classes as
|
|
5
|
-
import '../../assets/ActionButton.css';const
|
|
6
|
-
"action-btn": "_action-
|
|
7
|
-
"action-btn--small": "_action-btn--
|
|
8
|
-
"action-btn--large": "_action-btn--
|
|
9
|
-
"action-btn--primary": "_action-btn--
|
|
10
|
-
"action-btn--action": "_action-btn--
|
|
11
|
-
"action-btn--info": "_action-btn--
|
|
12
|
-
"action-btn--danger": "_action-btn--
|
|
13
|
-
"dots-pulse": "_dots-
|
|
14
|
-
scale:
|
|
1
|
+
import { jsxs as b, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as z, useEffect as H } from "react";
|
|
3
|
+
import { subscribe as w, unsubscribe as y, publish as k } from "../../utils/events.js";
|
|
4
|
+
import { classes as x } from "../../utils/helpers.js";
|
|
5
|
+
import '../../assets/ActionButton.css';const N = "_scale_zgv2f_1", n = {
|
|
6
|
+
"action-btn": "_action-btn_zgv2f_1",
|
|
7
|
+
"action-btn--small": "_action-btn--small_zgv2f_31",
|
|
8
|
+
"action-btn--large": "_action-btn--large_zgv2f_38",
|
|
9
|
+
"action-btn--primary": "_action-btn--primary_zgv2f_45",
|
|
10
|
+
"action-btn--action": "_action-btn--action_zgv2f_54",
|
|
11
|
+
"action-btn--info": "_action-btn--info_zgv2f_63",
|
|
12
|
+
"action-btn--danger": "_action-btn--danger_zgv2f_72",
|
|
13
|
+
"dots-pulse": "_dots-pulse_zgv2f_97",
|
|
14
|
+
scale: N
|
|
15
15
|
};
|
|
16
|
-
function
|
|
16
|
+
function $({
|
|
17
17
|
label: l,
|
|
18
18
|
type: c = "button",
|
|
19
|
-
onClick:
|
|
19
|
+
onClick: d = () => {
|
|
20
20
|
},
|
|
21
21
|
varient: r = "",
|
|
22
22
|
size: e = "",
|
|
@@ -28,42 +28,42 @@ function A({
|
|
|
28
28
|
borderColor: "",
|
|
29
29
|
borderHoverColor: ""
|
|
30
30
|
},
|
|
31
|
-
disabled:
|
|
31
|
+
disabled: s,
|
|
32
32
|
classname: _ = "",
|
|
33
|
-
...
|
|
33
|
+
...g
|
|
34
34
|
}) {
|
|
35
|
-
const [a,
|
|
35
|
+
const [a, i] = z("idle"), p = r === "" ? "" : `action-btn--${r}`, v = e === "" ? "" : `action-btn--${e}`, f = o.bgColor !== "" ? {
|
|
36
36
|
"--button-bg-color": o.bgColor,
|
|
37
37
|
"--button-hover-bg-color": o.bgHoverColor === "" ? o.bgColor : o.bgHoverColor,
|
|
38
38
|
"--button-color": o.color,
|
|
39
39
|
"--button-hover-color": o.hoverColor === "" ? o.color : o.hoverColor,
|
|
40
40
|
"--button-border-color": o.borderColor === "" ? o.bgColor : o.borderColor,
|
|
41
41
|
"--button-hover-border-color": o.borderHoverColor === "" && o.borderColor === "" ? o.bgColor : o.borderHoverColor
|
|
42
|
-
} : null,
|
|
43
|
-
|
|
44
|
-
},
|
|
45
|
-
|
|
42
|
+
} : null, h = () => {
|
|
43
|
+
i("idle");
|
|
44
|
+
}, u = (C) => {
|
|
45
|
+
d(C), i("waiting"), k("scripps:actionbtn:clicked");
|
|
46
46
|
};
|
|
47
|
-
return H(() => (w("scripps:action:completed",
|
|
47
|
+
return H(() => (w("scripps:action:completed", h), () => {
|
|
48
48
|
y("scripps:action:completed");
|
|
49
|
-
}), []), /* @__PURE__ */
|
|
49
|
+
}), []), /* @__PURE__ */ b(
|
|
50
50
|
"button",
|
|
51
51
|
{
|
|
52
|
-
|
|
53
|
-
className: N([
|
|
52
|
+
className: x([
|
|
54
53
|
n["action-btn"],
|
|
55
54
|
"action-btn",
|
|
56
55
|
_,
|
|
57
|
-
r === "" ? "" : n[
|
|
58
|
-
e === "" ? "" : n[
|
|
56
|
+
r === "" ? "" : n[p],
|
|
57
|
+
e === "" ? "" : n[v]
|
|
59
58
|
]),
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
59
|
+
disabled: a === "waiting" || s,
|
|
60
|
+
style: f || void 0,
|
|
61
|
+
type: c,
|
|
62
|
+
onClick: u,
|
|
63
|
+
...g,
|
|
64
64
|
children: [
|
|
65
65
|
a !== "waiting" && /* @__PURE__ */ t("span", { className: n["action-btn__label"], children: l }),
|
|
66
|
-
a === "waiting" && /* @__PURE__ */
|
|
66
|
+
a === "waiting" && /* @__PURE__ */ b("div", { className: n["dots-pulse"], children: [
|
|
67
67
|
/* @__PURE__ */ t("span", {}),
|
|
68
68
|
/* @__PURE__ */ t("span", {}),
|
|
69
69
|
/* @__PURE__ */ t("span", {})
|
|
@@ -73,6 +73,6 @@ function A({
|
|
|
73
73
|
);
|
|
74
74
|
}
|
|
75
75
|
export {
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
$ as ActionButton,
|
|
77
|
+
$ as default
|
|
78
78
|
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { ActionButton
|
|
1
|
+
export { ActionButton } from './ActionButton';
|
|
2
|
+
export { ActionButton as default } from './ActionButton';
|
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
type AdBlockProps = {
|
|
2
|
+
image: {
|
|
3
|
+
url: string;
|
|
4
|
+
altText: string;
|
|
5
|
+
mobile?: string;
|
|
6
|
+
text: string;
|
|
7
|
+
};
|
|
8
|
+
ad: {
|
|
9
|
+
campaign?: string;
|
|
10
|
+
source?: string;
|
|
11
|
+
medium?: string;
|
|
12
|
+
content?: string;
|
|
13
|
+
header: string;
|
|
14
|
+
description: string;
|
|
15
|
+
linkText: string;
|
|
16
|
+
href: string;
|
|
17
|
+
};
|
|
18
|
+
theme?: 'default' | 'round2' | 'tablotv' | 'imageonly';
|
|
19
|
+
};
|
|
1
20
|
/**
|
|
2
21
|
* AdBlock component for rendering an advertisement block with various themes.
|
|
3
22
|
* @param {*} param0 - Component props.
|
|
@@ -6,5 +25,5 @@
|
|
|
6
25
|
* @param {string} [param0.theme='default'] - The theme to apply to the ad block (default is 'default').
|
|
7
26
|
* @returns {JSX.Element} The rendered ad block.
|
|
8
27
|
*/
|
|
9
|
-
export function AdBlock({ image, ad, theme }:
|
|
28
|
+
export declare function AdBlock({ image, ad, theme }: AdBlockProps): JSX.Element;
|
|
10
29
|
export default AdBlock;
|
|
@@ -1,110 +1,145 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import '../../assets/AdBlock.css';const
|
|
4
|
-
"ad-
|
|
5
|
-
"ad-copy__link": "_ad-
|
|
6
|
-
"ad-
|
|
7
|
-
"ad-
|
|
8
|
-
"ad-
|
|
9
|
-
"ad-
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"ad-
|
|
15
|
-
}, w = {
|
|
16
|
-
"ad-anchor": "_ad-anchor_iji3s_17",
|
|
17
|
-
"ad-copy__link": "_ad-copy__link_iji3s_28",
|
|
18
|
-
"ad-image": "_ad-image_iji3s_42",
|
|
19
|
-
"ad-image__text": "_ad-image__text_iji3s_59",
|
|
20
|
-
"ad-copy": "_ad-copy_iji3s_28",
|
|
21
|
-
"ad-image--animate": "_ad-image--animate_iji3s_78",
|
|
22
|
-
"promo-slide-in-left": "_promo-slide-in-left_iji3s_1",
|
|
23
|
-
"ad-copy--animate": "_ad-copy--animate_iji3s_85",
|
|
24
|
-
"promo-slide-in-right": "_promo-slide-in-right_iji3s_1",
|
|
25
|
-
"ad-copy__header": "_ad-copy__header_iji3s_93",
|
|
26
|
-
"ad-copy__description": "_ad-copy__description_iji3s_105",
|
|
27
|
-
"ad-copy__link-text": "_ad-copy__link-text_iji3s_106"
|
|
28
|
-
}, j = {
|
|
29
|
-
"ad-anchor": "_ad-anchor_1k4cf_26",
|
|
30
|
-
"ad-copy__link": "_ad-copy__link_1k4cf_37",
|
|
31
|
-
"background-container": "_background-container_1k4cf_41",
|
|
32
|
-
"ad-copy": "_ad-copy_1k4cf_37",
|
|
33
|
-
"ad-copy__header": "_ad-copy__header_1k4cf_57",
|
|
34
|
-
"ad-copy__description": "_ad-copy__description_1k4cf_67",
|
|
35
|
-
"cta-container": "_cta-container_1k4cf_78",
|
|
36
|
-
"cta-container__link": "_cta-container__link_1k4cf_89",
|
|
37
|
-
"ad-image": "_ad-image_1k4cf_108",
|
|
38
|
-
"ad-image__text": "_ad-image__text_1k4cf_127",
|
|
39
|
-
"ad-image-mobile": "_ad-image-mobile_1k4cf_137",
|
|
40
|
-
"ad-image--animate": "_ad-image--animate_1k4cf_240",
|
|
41
|
-
"promo-slide-in-right": "_promo-slide-in-right_1k4cf_1",
|
|
42
|
-
"ad-copy--animate": "_ad-copy--animate_1k4cf_247",
|
|
43
|
-
"promo-slide-in-left": "_promo-slide-in-left_1k4cf_1",
|
|
44
|
-
"ad-cta--animate": "_ad-cta--animate_1k4cf_254",
|
|
45
|
-
"ad-mobile-disclaimer--animate": "_ad-mobile-disclaimer--animate_1k4cf_268"
|
|
1
|
+
import { jsx as e, jsxs as l, Fragment as b } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as o, useCallback as q, useEffect as N } from "react";
|
|
3
|
+
import '../../assets/AdBlock.css';const u = {
|
|
4
|
+
"ad-copy__description": "_ad-copy__description_1qax1_8",
|
|
5
|
+
"ad-copy__link": "_ad-copy__link_1qax1_9",
|
|
6
|
+
"ad-anchor": "_ad-anchor_1qax1_31",
|
|
7
|
+
"ad-image": "_ad-image_1qax1_46",
|
|
8
|
+
"ad-image__text": "_ad-image__text_1qax1_73",
|
|
9
|
+
"ad-copy": "_ad-copy_1qax1_8",
|
|
10
|
+
"ad-image--animate": "_ad-image--animate_1qax1_84",
|
|
11
|
+
"promo-slide-in-left": "_promo-slide-in-left_1qax1_1",
|
|
12
|
+
"ad-copy--animate": "_ad-copy--animate_1qax1_91",
|
|
13
|
+
"promo-slide-in-right": "_promo-slide-in-right_1qax1_1",
|
|
14
|
+
"ad-copy__header": "_ad-copy__header_1qax1_99"
|
|
46
15
|
}, v = {
|
|
47
|
-
"ad-
|
|
48
|
-
"
|
|
16
|
+
"ad-copy__link": "_ad-copy__link_1xlqr_17",
|
|
17
|
+
"ad-anchor": "_ad-anchor_1xlqr_36",
|
|
18
|
+
"ad-image": "_ad-image_1xlqr_61",
|
|
19
|
+
"ad-image__text": "_ad-image__text_1xlqr_78",
|
|
20
|
+
"ad-copy": "_ad-copy_1xlqr_17",
|
|
21
|
+
"ad-image--animate": "_ad-image--animate_1xlqr_97",
|
|
22
|
+
"promo-slide-in-left": "_promo-slide-in-left_1xlqr_1",
|
|
23
|
+
"ad-copy--animate": "_ad-copy--animate_1xlqr_104",
|
|
24
|
+
"promo-slide-in-right": "_promo-slide-in-right_1xlqr_1",
|
|
25
|
+
"ad-copy__header": "_ad-copy__header_1xlqr_112",
|
|
26
|
+
"ad-copy__description": "_ad-copy__description_1xlqr_124",
|
|
27
|
+
"ad-copy__link-text": "_ad-copy__link-text_1xlqr_125"
|
|
28
|
+
}, $ = {
|
|
29
|
+
"ad-anchor": "_ad-anchor_31sf7_26",
|
|
30
|
+
"ad-copy__link": "_ad-copy__link_31sf7_37",
|
|
31
|
+
"background-container": "_background-container_31sf7_41",
|
|
32
|
+
"ad-copy": "_ad-copy_31sf7_37",
|
|
33
|
+
"ad-copy__header": "_ad-copy__header_31sf7_57",
|
|
34
|
+
"ad-copy__description": "_ad-copy__description_31sf7_67",
|
|
35
|
+
"cta-container": "_cta-container_31sf7_78",
|
|
36
|
+
"cta-container__link": "_cta-container__link_31sf7_89",
|
|
37
|
+
"ad-image": "_ad-image_31sf7_108",
|
|
38
|
+
"ad-image__text": "_ad-image__text_31sf7_127",
|
|
39
|
+
"ad-image-mobile": "_ad-image-mobile_31sf7_137",
|
|
40
|
+
"ad-image--animate": "_ad-image--animate_31sf7_238",
|
|
41
|
+
"promo-slide-in-right": "_promo-slide-in-right_31sf7_1",
|
|
42
|
+
"ad-copy--animate": "_ad-copy--animate_31sf7_245",
|
|
43
|
+
"promo-slide-in-left": "_promo-slide-in-left_31sf7_1",
|
|
44
|
+
"ad-cta--animate": "_ad-cta--animate_31sf7_252",
|
|
45
|
+
"ad-mobile-disclaimer--animate": "_ad-mobile-disclaimer--animate_31sf7_266"
|
|
46
|
+
}, T = {
|
|
47
|
+
"ad-anchor": "_ad-anchor_1kpgs_1",
|
|
48
|
+
"cta-container__link": "_cta-container__link_1kpgs_11"
|
|
49
49
|
};
|
|
50
|
-
function
|
|
50
|
+
function M({ image: _, ad: r, theme: i = "default" }) {
|
|
51
51
|
const a = (/* @__PURE__ */ new Map([
|
|
52
|
-
["default",
|
|
53
|
-
["round2",
|
|
54
|
-
["tablotv",
|
|
55
|
-
["imageonly",
|
|
56
|
-
])).get(
|
|
57
|
-
|
|
58
|
-
|
|
52
|
+
["default", u],
|
|
53
|
+
["round2", v],
|
|
54
|
+
["tablotv", $],
|
|
55
|
+
["imageonly", T]
|
|
56
|
+
])).get(i) ?? u, x = r.campaign === "" ? "" : `?utm_campaign=${r.campaign}&utm_source=${r.source}&utm_medium=${r.medium}&utm_content=${r.content}`, s = o(null), t = o(null), c = o(null), m = o(null), f = o(null), p = o(null), d = `${r.href}${x}`, h = q((n, y) => {
|
|
57
|
+
n.forEach((k) => {
|
|
58
|
+
var g;
|
|
59
|
+
if (k.isIntersecting) {
|
|
60
|
+
if (i === "tablotv" && (c.current !== null && ((g = c.current) == null || g.classList.add(`${a["ad-cta--animate"]}`)), p.current !== null && p.current.classList.add(`${a["ad-mobile-disclaimer--animate"]}`)), s.current === null || t.current === null) return;
|
|
61
|
+
s.current.classList.add(`${a["ad-copy--animate"]}`), t.current.classList.add(`${a["ad-image--animate"]}`), y.unobserve(t.current);
|
|
62
|
+
}
|
|
59
63
|
});
|
|
60
|
-
}, [a]);
|
|
61
|
-
return
|
|
62
|
-
if (
|
|
63
|
-
const
|
|
64
|
+
}, [a, i]);
|
|
65
|
+
return N(() => {
|
|
66
|
+
if (i !== "imageonly") {
|
|
67
|
+
const n = new IntersectionObserver(h, {
|
|
64
68
|
root: null,
|
|
65
69
|
rootMargin: "0px",
|
|
66
70
|
threshold: 0.1
|
|
67
71
|
});
|
|
68
|
-
return
|
|
69
|
-
|
|
72
|
+
return n.observe(t.current), () => {
|
|
73
|
+
n.disconnect();
|
|
70
74
|
};
|
|
71
75
|
}
|
|
72
|
-
}, [
|
|
76
|
+
}, [i, h]), // onClick - ensure tab isn't opened twice if clicking directly on the cta
|
|
77
|
+
/* @__PURE__ */ e(
|
|
73
78
|
"ad-block",
|
|
74
79
|
{
|
|
75
80
|
class: `${a["ad-anchor"]}`,
|
|
76
|
-
onClick: (
|
|
77
|
-
(
|
|
81
|
+
onClick: (n) => {
|
|
82
|
+
(n.target === c.current || n.target === m.current || n.target === f.current) && n.preventDefault(), window.open(c.current, "_blank");
|
|
78
83
|
},
|
|
79
|
-
children:
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
+
children: i === "imageonly" ? /* @__PURE__ */ e(
|
|
85
|
+
"a",
|
|
86
|
+
{
|
|
87
|
+
className: a["cta-container__link"],
|
|
88
|
+
href: d,
|
|
89
|
+
ref: c,
|
|
90
|
+
rel: "noreferrer",
|
|
91
|
+
target: "_blank",
|
|
92
|
+
children: /* @__PURE__ */ e("span", { className: "sr-only", children: _.text })
|
|
93
|
+
}
|
|
94
|
+
) : i === "tablotv" ? /* @__PURE__ */ l("div", { className: a["background-container"], children: [
|
|
95
|
+
/* @__PURE__ */ l("div", { className: a["ad-copy"], ref: s, children: [
|
|
96
|
+
/* @__PURE__ */ e("h4", { className: a["ad-copy__header"], children: r.header }),
|
|
97
|
+
/* @__PURE__ */ e("div", { className: a["ad-image-mobile"], ref: t, children: /* @__PURE__ */ e("ad-image", { children: /* @__PURE__ */ e("a", { href: d, rel: "noreferrer", target: "_blank", children: /* @__PURE__ */ e("img", { alt: _.altText, ref: f, src: _.mobile }) }) }) }),
|
|
98
|
+
/* @__PURE__ */ e("p", { className: a["ad-copy__description"], children: r.description })
|
|
84
99
|
] }),
|
|
85
|
-
/* @__PURE__ */
|
|
86
|
-
/* @__PURE__ */ e(
|
|
87
|
-
|
|
100
|
+
/* @__PURE__ */ l("div", { className: a["cta-container"], children: [
|
|
101
|
+
/* @__PURE__ */ e(
|
|
102
|
+
"a",
|
|
103
|
+
{
|
|
104
|
+
className: a["cta-container__link"],
|
|
105
|
+
href: d,
|
|
106
|
+
ref: c,
|
|
107
|
+
rel: "noreferrer",
|
|
108
|
+
target: "_blank",
|
|
109
|
+
children: r.linkText
|
|
110
|
+
}
|
|
111
|
+
),
|
|
112
|
+
/* @__PURE__ */ e("span", { className: a["ad-image__text"], ref: p, children: _.text })
|
|
88
113
|
] }),
|
|
89
|
-
/* @__PURE__ */
|
|
90
|
-
/* @__PURE__ */ e("ad-image", { children: /* @__PURE__ */ e("a", { href:
|
|
114
|
+
/* @__PURE__ */ l("div", { className: a["ad-image"], ref: t, children: [
|
|
115
|
+
/* @__PURE__ */ e("ad-image", { children: /* @__PURE__ */ e("a", { href: d, rel: "noreferrer", target: "_blank", children: /* @__PURE__ */ e("img", { alt: _.altText, ref: m, src: _.url }) }) }),
|
|
91
116
|
/* @__PURE__ */ e("span", { className: a["ad-image__text"], children: _.text })
|
|
92
117
|
] })
|
|
93
|
-
] }) : /* @__PURE__ */
|
|
94
|
-
/* @__PURE__ */
|
|
118
|
+
] }) : /* @__PURE__ */ l(b, { children: [
|
|
119
|
+
/* @__PURE__ */ l("div", { className: a["ad-image"], ref: t, children: [
|
|
95
120
|
/* @__PURE__ */ e("span", { className: a["ad-image__text"], children: _.text }),
|
|
96
|
-
/* @__PURE__ */ e("ad-image", { children: /* @__PURE__ */ e("a", { href:
|
|
121
|
+
/* @__PURE__ */ e("ad-image", { children: /* @__PURE__ */ e("a", { href: d, rel: "noreferrer", target: "_blank", children: /* @__PURE__ */ e("img", { alt: _.altText, ref: m, src: _.url }) }) })
|
|
97
122
|
] }),
|
|
98
|
-
/* @__PURE__ */
|
|
99
|
-
/* @__PURE__ */ e("h4", { className: a["ad-copy__header"], children:
|
|
100
|
-
/* @__PURE__ */ e("p", { className: a["ad-copy__description"], children:
|
|
101
|
-
/* @__PURE__ */ e(
|
|
123
|
+
/* @__PURE__ */ l("div", { className: a["ad-copy"], ref: s, children: [
|
|
124
|
+
/* @__PURE__ */ e("h4", { className: a["ad-copy__header"], children: r.header }),
|
|
125
|
+
/* @__PURE__ */ e("p", { className: a["ad-copy__description"], children: r.description }),
|
|
126
|
+
/* @__PURE__ */ e(
|
|
127
|
+
"a",
|
|
128
|
+
{
|
|
129
|
+
className: a["ad-copy__link"],
|
|
130
|
+
href: d,
|
|
131
|
+
ref: c,
|
|
132
|
+
rel: "noreferrer",
|
|
133
|
+
target: "_blank",
|
|
134
|
+
children: r.linkText
|
|
135
|
+
}
|
|
136
|
+
)
|
|
102
137
|
] })
|
|
103
138
|
] })
|
|
104
139
|
}
|
|
105
140
|
);
|
|
106
141
|
}
|
|
107
142
|
export {
|
|
108
|
-
|
|
109
|
-
|
|
143
|
+
M as AdBlock,
|
|
144
|
+
M as default
|
|
110
145
|
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { AdBlock
|
|
1
|
+
export { AdBlock } from './AdBlock';
|
|
2
|
+
export { AdBlock as default } from './AdBlock';
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
type AdjustableTwoColumnGridProps = {
|
|
2
|
+
children: React.ReactNode;
|
|
3
|
+
gap?: string;
|
|
4
|
+
firstColumnWidth?: number | string;
|
|
5
|
+
classname?: string;
|
|
6
|
+
};
|
|
1
7
|
/**
|
|
2
8
|
* AdjustableTwoColumnGrid component for rendering a two-column layout with adjustable widths.
|
|
3
9
|
* @param {*} param0 - Component props.
|
|
@@ -7,5 +13,5 @@
|
|
|
7
13
|
* @param {string} [param0.classname=''] - Additional CSS classes for the layout.
|
|
8
14
|
* @returns {JSX.Element} The rendered two-column layout.
|
|
9
15
|
*/
|
|
10
|
-
export function AdjustableTwoColumnGrid({ children, gap, firstColumnWidth, classname }:
|
|
16
|
+
export declare function AdjustableTwoColumnGrid({ children, gap, firstColumnWidth, classname, }: AdjustableTwoColumnGridProps): JSX.Element;
|
|
11
17
|
export default AdjustableTwoColumnGrid;
|
|
@@ -1,24 +1,29 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Children as
|
|
1
|
+
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Children as r } from "react";
|
|
3
3
|
import '../../assets/AdjustableTwoColumnGrid.css';const s = {};
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
function m({
|
|
5
|
+
children: c,
|
|
6
|
+
gap: e = "1.5rem",
|
|
7
|
+
firstColumnWidth: o = 33,
|
|
8
|
+
classname: a = ""
|
|
9
|
+
}) {
|
|
10
|
+
const l = r.toArray(c);
|
|
11
|
+
return /* @__PURE__ */ n(
|
|
7
12
|
"adjustable-two-column-layout",
|
|
8
13
|
{
|
|
14
|
+
class: a,
|
|
9
15
|
style: {
|
|
10
|
-
"--atcl-gap-size":
|
|
11
|
-
"--atcl-first-column-width": typeof
|
|
16
|
+
"--atcl-gap-size": e,
|
|
17
|
+
"--atcl-first-column-width": typeof o == "string" ? o : `${o}%`
|
|
12
18
|
},
|
|
13
|
-
class: r,
|
|
14
19
|
children: [
|
|
15
|
-
/* @__PURE__ */ t("div", { className: s["two-column-layout__column-one"], children:
|
|
16
|
-
/* @__PURE__ */ t("div", { className: s["two-column-layout__column-two"], children:
|
|
20
|
+
/* @__PURE__ */ t("div", { className: s["two-column-layout__column-one"], children: l[0] }),
|
|
21
|
+
/* @__PURE__ */ t("div", { className: s["two-column-layout__column-two"], children: l[1] })
|
|
17
22
|
]
|
|
18
23
|
}
|
|
19
24
|
);
|
|
20
25
|
}
|
|
21
26
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
m as AdjustableTwoColumnGrid,
|
|
28
|
+
m as default
|
|
24
29
|
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { AdjustableTwoColumnGrid
|
|
1
|
+
export { AdjustableTwoColumnGrid } from './AdjustableTwoColumnGrid';
|
|
2
|
+
export { AdjustableTwoColumnGrid as default } from './AdjustableTwoColumnGrid';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
airdateStr?:
|
|
3
|
-
separatorType?:
|
|
4
|
-
}
|
|
1
|
+
type AirDateFormatterProps = {
|
|
2
|
+
airdateStr?: string | null;
|
|
3
|
+
separatorType?: 'pipe' | 'line-break' | 'single-line-break' | 'comma' | 'none';
|
|
4
|
+
};
|
|
5
|
+
export declare function AirDateFormatter({ airdateStr, separatorType }: AirDateFormatterProps): JSX.Element;
|
|
5
6
|
export default AirDateFormatter;
|
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
import { jsx as a, jsxs as t } from "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
2
|
import { classes as i } from "../../utils/helpers.js";
|
|
4
3
|
import { s as $ } from "../../sub-CoUmnfhv.mjs";
|
|
5
4
|
import { f as m } from "../../format-YhWt2D8M.mjs";
|
|
6
5
|
import { a as u } from "../../add-UWUc_nrO.mjs";
|
|
7
6
|
import '../../assets/AirDateFormatter.css';const d = {
|
|
8
|
-
"airdate-formatter__pipe": "_airdate-
|
|
9
|
-
"airdate-formatter__date": "_airdate-
|
|
10
|
-
"airdate-formatter__time-wrap": "_airdate-formatter__time-
|
|
7
|
+
"airdate-formatter__pipe": "_airdate-formatter__pipe_s327l_1",
|
|
8
|
+
"airdate-formatter__date": "_airdate-formatter__date_s327l_8",
|
|
9
|
+
"airdate-formatter__time-wrap": "_airdate-formatter__time-wrap_s327l_13"
|
|
11
10
|
};
|
|
12
|
-
function
|
|
13
|
-
if (f === null) return /* @__PURE__ */ a("airdate-formatter", {
|
|
14
|
-
const e = new Date(f.replace(" ", "T")), h = $(e, { hours: 1 }),
|
|
15
|
-
let r = `${m(e, "ccc")}`,
|
|
11
|
+
function T({ airdateStr: f = null, separatorType: p = "none" }) {
|
|
12
|
+
if (f === null) return /* @__PURE__ */ a("airdate-formatter", { className: "no-airdate", children: " " });
|
|
13
|
+
const e = new Date(f.replace(" ", "T")), h = $(e, { hours: 1 }), n = e.getMinutes() === 0 ? "" : m(e, ":mm"), o = `${m(e, "h")}${n}${Number.parseInt(m(e, "H"), 10) < 12 ? "a" : ""}`, l = `${m(h, "h")}${n}`;
|
|
14
|
+
let r = `${m(e, "ccc")}`, s = "";
|
|
16
15
|
const c = new Date((/* @__PURE__ */ new Date()).toLocaleString("en-US", { timeZone: "America/New_York" })), _ = u(c, { days: 1 });
|
|
17
|
-
switch (`${c.getFullYear()}${c.getMonth()}${c.getDate()}` == `${e.getFullYear()}${e.getMonth()}${e.getDate()}` ? r = "Today" : `${_.getFullYear()}${_.getMonth()}${_.getDate()}` == `${e.getFullYear()}${e.getMonth()}${e.getDate()}` ? r = "Tomorrow" :
|
|
16
|
+
switch (`${c.getFullYear()}${c.getMonth()}${c.getDate()}` == `${e.getFullYear()}${e.getMonth()}${e.getDate()}` ? r = "Today" : `${_.getFullYear()}${_.getMonth()}${_.getDate()}` == `${e.getFullYear()}${e.getMonth()}${e.getDate()}` ? r = "Tomorrow" : s = `${m(e, "LLL d")}`, p) {
|
|
18
17
|
case "pipe":
|
|
19
18
|
return /* @__PURE__ */ t("airdate-formatter", { children: [
|
|
20
|
-
/* @__PURE__ */ a("span", { className: i([d["airdate-formatter__date"], "airdate-formatter__date"]), children: r === "Today" || r === "Tomorrow" ? r : `${r}, ${
|
|
19
|
+
/* @__PURE__ */ a("span", { className: i([d["airdate-formatter__date"], "airdate-formatter__date"]), children: r === "Today" || r === "Tomorrow" ? r : `${r}, ${s}` }),
|
|
21
20
|
/* @__PURE__ */ a("span", { className: i([d["airdate-formatter__pipe"], "airdate-formatter__pipe"]), children: " | " }),
|
|
22
21
|
/* @__PURE__ */ t("span", { className: "airdate-formatter__time-wrap", children: [
|
|
23
|
-
/* @__PURE__ */ a("span", { className: "airdate-formatter__time", children:
|
|
22
|
+
/* @__PURE__ */ a("span", { className: "airdate-formatter__time", children: o }),
|
|
24
23
|
"/",
|
|
25
|
-
|
|
24
|
+
n !== "" ? /* @__PURE__ */ a("br", {}) : null,
|
|
26
25
|
/* @__PURE__ */ t("span", { className: "airdate-formatter__central-time", children: [
|
|
27
26
|
l,
|
|
28
27
|
/* @__PURE__ */ a("span", { children: "c" })
|
|
@@ -32,11 +31,11 @@ function b({ airdateStr: f = null, separatorType: p = "none" }) {
|
|
|
32
31
|
case "line-break":
|
|
33
32
|
return /* @__PURE__ */ t("airdate-formatter", { children: [
|
|
34
33
|
/* @__PURE__ */ a("div", { className: i([d["airdate-formatter__day"], "airdate-formatter__day"]), children: r }),
|
|
35
|
-
/* @__PURE__ */ a("div", { className: i([d["airdate-formatter__date"], "airdate-formatter__date"]), children:
|
|
34
|
+
/* @__PURE__ */ a("div", { className: i([d["airdate-formatter__date"], "airdate-formatter__date"]), children: s }),
|
|
36
35
|
/* @__PURE__ */ t("div", { className: i([d["airdate-formatter__time-wrap"], "airdate-formatter__time-wrap"]), children: [
|
|
37
|
-
/* @__PURE__ */ a("span", { className: "airdate-formatter__time", children:
|
|
36
|
+
/* @__PURE__ */ a("span", { className: "airdate-formatter__time", children: o }),
|
|
38
37
|
"/",
|
|
39
|
-
|
|
38
|
+
n !== "" ? /* @__PURE__ */ a("br", {}) : null,
|
|
40
39
|
/* @__PURE__ */ t("span", { className: "airdate-formatter__central-time", children: [
|
|
41
40
|
l,
|
|
42
41
|
/* @__PURE__ */ a("span", { children: "c" })
|
|
@@ -48,12 +47,12 @@ function b({ airdateStr: f = null, separatorType: p = "none" }) {
|
|
|
48
47
|
/* @__PURE__ */ t("div", { className: i([d["airdate-formatter__day"], "airdate-formatter__day"]), children: [
|
|
49
48
|
r,
|
|
50
49
|
" ",
|
|
51
|
-
/* @__PURE__ */ a("span", { className: i([d["airdate-formatter__date"], "airdate-formatter__date"]), children:
|
|
50
|
+
/* @__PURE__ */ a("span", { className: i([d["airdate-formatter__date"], "airdate-formatter__date"]), children: s })
|
|
52
51
|
] }),
|
|
53
52
|
/* @__PURE__ */ t("div", { className: i([d["airdate-formatter__time-wrap"], "airdate-formatter__time-wrap"]), children: [
|
|
54
|
-
/* @__PURE__ */ a("span", { className: "airdate-formatter__time", children:
|
|
53
|
+
/* @__PURE__ */ a("span", { className: "airdate-formatter__time", children: o }),
|
|
55
54
|
"/",
|
|
56
|
-
|
|
55
|
+
n !== "" ? /* @__PURE__ */ a("br", {}) : null,
|
|
57
56
|
/* @__PURE__ */ t("span", { className: "airdate-formatter__central-time", children: [
|
|
58
57
|
l,
|
|
59
58
|
/* @__PURE__ */ a("span", { children: "c" })
|
|
@@ -63,10 +62,10 @@ function b({ airdateStr: f = null, separatorType: p = "none" }) {
|
|
|
63
62
|
case "none":
|
|
64
63
|
default:
|
|
65
64
|
return /* @__PURE__ */ t("airdate-formatter", { children: [
|
|
66
|
-
/* @__PURE__ */ a("span", { className: i([d["airdate-formatter__date"], "airdate-formatter__date"]), children: r === "Today" || r === "Tomorrow" ? r : `${r}, ${
|
|
65
|
+
/* @__PURE__ */ a("span", { className: i([d["airdate-formatter__date"], "airdate-formatter__date"]), children: r === "Today" || r === "Tomorrow" ? r : `${r}, ${s}` }),
|
|
67
66
|
" ",
|
|
68
67
|
/* @__PURE__ */ t("span", { className: i([d["airdate-formatter__time-wrap"], "airdate-formatter__time-wrap"]), children: [
|
|
69
|
-
/* @__PURE__ */ a("span", { className: "airdate-formatter__time", children:
|
|
68
|
+
/* @__PURE__ */ a("span", { className: "airdate-formatter__time", children: o }),
|
|
70
69
|
"/",
|
|
71
70
|
/* @__PURE__ */ t("span", { className: "airdate-formatter__central-time", children: [
|
|
72
71
|
l,
|
|
@@ -77,6 +76,6 @@ function b({ airdateStr: f = null, separatorType: p = "none" }) {
|
|
|
77
76
|
}
|
|
78
77
|
}
|
|
79
78
|
export {
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
T as AirDateFormatter,
|
|
80
|
+
T as default
|
|
82
81
|
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { AirDateFormatter
|
|
1
|
+
export { AirDateFormatter } from './AirDateFormatter';
|
|
2
|
+
export { AirDateFormatter as default } from './AirDateFormatter';
|
|
@@ -1,7 +1,16 @@
|
|
|
1
|
+
import { Image } from '../../types.d.ts';
|
|
2
|
+
type AnchorTagProps = {
|
|
3
|
+
href?: string;
|
|
4
|
+
classname?: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
type?: 'internal-link' | 'external-link';
|
|
7
|
+
image?: Image | null;
|
|
8
|
+
clickHandler?: ((e: React.MouseEvent) => void) | null;
|
|
9
|
+
};
|
|
1
10
|
/**
|
|
2
11
|
* AnchorTag component for rendering anchor links with optional image support.
|
|
3
12
|
* @param {*} param0 - Component props.
|
|
4
13
|
* @returns {JSX.Element} The rendered anchor tag.
|
|
5
14
|
*/
|
|
6
|
-
export function AnchorTag({ href, classname, label, type, image, clickHandler }:
|
|
15
|
+
export declare function AnchorTag({ href, classname, label, type, image, clickHandler, }: AnchorTagProps): JSX.Element;
|
|
7
16
|
export default AnchorTag;
|