@scrippsproduct/networks-ui-library 1.0.15
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/README.md +71 -0
- package/dist/ChoicesItem-CGIr6Qga.mjs +38 -0
- package/dist/Form.module-DbpB9u1l.mjs +150 -0
- package/dist/PageHero.module-BdV8z_Xv.mjs +8 -0
- package/dist/ResultsTable.module-B7M9y7hd.mjs +14 -0
- package/dist/SocialShareButton-BXGVUD-z.mjs +30 -0
- package/dist/_commonjsHelpers-DaMA6jEr.mjs +8 -0
- package/dist/add-DH4DZT_w.mjs +17 -0
- package/dist/addMonths-Ca2KMx6g.mjs +23 -0
- package/dist/assets/ActionButton.css +1 -0
- package/dist/assets/AdBlock.css +1 -0
- package/dist/assets/AdjustableTwoColumnGrid.css +1 -0
- package/dist/assets/AirDateFormatter.css +1 -0
- package/dist/assets/AnchorTag.css +1 -0
- package/dist/assets/BCVideoPlayer.css +1 -0
- package/dist/assets/BasicGridModule.css +1 -0
- package/dist/assets/Button.css +1 -0
- package/dist/assets/CarouselSlide.css +1 -0
- package/dist/assets/ChannelSearch.css +1 -0
- package/dist/assets/ChoicesItem.css +1 -0
- package/dist/assets/ContentHero.css +1 -0
- package/dist/assets/CtaBlock.css +1 -0
- package/dist/assets/CustomDataList.css +1 -0
- package/dist/assets/DateNavigation.css +1 -0
- package/dist/assets/DatePicker.css +1 -0
- package/dist/assets/DeviceAndPlatformLists.css +1 -0
- package/dist/assets/DrawerNavigation.css +1 -0
- package/dist/assets/EqualSizeFlexRow.css +1 -0
- package/dist/assets/EqualSizeGrid.css +1 -0
- package/dist/assets/ErrorHandler.css +1 -0
- package/dist/assets/FeaturedList.css +1 -0
- package/dist/assets/Figure.css +1 -0
- package/dist/assets/Figure2.css +1 -0
- package/dist/assets/FindUs.css +1 -0
- package/dist/assets/FooterNavigation.css +1 -0
- package/dist/assets/Form.css +1 -0
- package/dist/assets/GradientButton.css +1 -0
- package/dist/assets/GridList.css +1 -0
- package/dist/assets/IONShowHero.css +1 -0
- package/dist/assets/ImageCard.css +1 -0
- package/dist/assets/ImageReplacementAnchor.css +1 -0
- package/dist/assets/InfoPanel.css +1 -0
- package/dist/assets/InlineNavigation.css +1 -0
- package/dist/assets/InstructionsList.css +1 -0
- package/dist/assets/Loading.css +1 -0
- package/dist/assets/LoadingV2.css +1 -0
- package/dist/assets/LogoListItem.css +1 -0
- package/dist/assets/LogoNavigation.css +1 -0
- package/dist/assets/ModalContainer.css +1 -0
- package/dist/assets/MultiLayeredFigure.css +1 -0
- package/dist/assets/NavList.css +1 -0
- package/dist/assets/Overlay.css +1 -0
- package/dist/assets/PageHero.css +1 -0
- package/dist/assets/Pagination.css +1 -0
- package/dist/assets/ProgramAirdate.css +1 -0
- package/dist/assets/PromotionBlock.css +1 -0
- package/dist/assets/PromotionsRowModule.css +1 -0
- package/dist/assets/RescanInstructions.css +1 -0
- package/dist/assets/ResultsTable.css +1 -0
- package/dist/assets/ScheduleList.css +1 -0
- package/dist/assets/ShowAboutLayout.css +1 -0
- package/dist/assets/ShowSlide.css +1 -0
- package/dist/assets/SocialLinks.css +1 -0
- package/dist/assets/SocialShareButton.css +1 -0
- package/dist/assets/StringList.css +1 -0
- package/dist/assets/TabNavigation.css +1 -0
- package/dist/assets/TextSlide.css +1 -0
- package/dist/assets/TwoColumnSlide.css +1 -0
- package/dist/assets/UpcomingList.css +1 -0
- package/dist/chevron-left-DmvQntvu.mjs +54 -0
- package/dist/chevron-right-CaAz6ISN.mjs +54 -0
- package/dist/components/ActionButton/ActionButton.d.ts +19 -0
- package/dist/components/ActionButton/ActionButton.js +78 -0
- package/dist/components/ActionButton/index.d.ts +1 -0
- package/dist/components/ActionButton/index.js +5 -0
- package/dist/components/AdBlock/AdBlock.d.ts +6 -0
- package/dist/components/AdBlock/AdBlock.js +110 -0
- package/dist/components/AdBlock/index.d.ts +1 -0
- package/dist/components/AdBlock/index.js +5 -0
- package/dist/components/AdjustableTwoColumnGrid/AdjustableTwoColumnGrid.d.ts +7 -0
- package/dist/components/AdjustableTwoColumnGrid/AdjustableTwoColumnGrid.js +24 -0
- package/dist/components/AdjustableTwoColumnGrid/index.d.ts +1 -0
- package/dist/components/AdjustableTwoColumnGrid/index.js +5 -0
- package/dist/components/AirDateFormatter/AirDateFormatter.d.ts +5 -0
- package/dist/components/AirDateFormatter/AirDateFormatter.js +82 -0
- package/dist/components/AirDateFormatter/index.d.ts +1 -0
- package/dist/components/AirDateFormatter/index.js +5 -0
- package/dist/components/AnchorTag/AnchorTag.d.ts +9 -0
- package/dist/components/AnchorTag/AnchorTag.js +45 -0
- package/dist/components/AnchorTag/index.d.ts +1 -0
- package/dist/components/AnchorTag/index.js +5 -0
- package/dist/components/BCVideoPlayer/BCVideoPlayer.d.ts +13 -0
- package/dist/components/BCVideoPlayer/BCVideoPlayer.js +57 -0
- package/dist/components/BCVideoPlayer/index.d.ts +1 -0
- package/dist/components/BCVideoPlayer/index.js +5 -0
- package/dist/components/BasicGridModule/BasicGridModule.d.ts +24 -0
- package/dist/components/BasicGridModule/BasicGridModule.js +88 -0
- package/dist/components/BasicGridModule/index.d.ts +1 -0
- package/dist/components/BasicGridModule/index.js +5 -0
- package/dist/components/Button/Button.d.ts +19 -0
- package/dist/components/Button/Button.js +76 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Button/index.js +5 -0
- package/dist/components/ButtonAnchor/ButtonAnchor.d.ts +6 -0
- package/dist/components/ButtonAnchor/ButtonAnchor.js +18 -0
- package/dist/components/ButtonAnchor/index.d.ts +1 -0
- package/dist/components/ButtonAnchor/index.js +5 -0
- package/dist/components/Carousel/Carousel.d.ts +25 -0
- package/dist/components/Carousel/Carousel.js +298 -0
- package/dist/components/Carousel/CarouselUtils.class.d.ts +68 -0
- package/dist/components/Carousel/CarouselUtils.class.js +187 -0
- package/dist/components/Carousel/index.d.ts +1 -0
- package/dist/components/Carousel/index.js +5 -0
- package/dist/components/Carousel/navigations/Pagination.d.ts +3 -0
- package/dist/components/Carousel/navigations/Pagination.js +18 -0
- package/dist/components/CarouselSlide/CarouselSlide.d.ts +7 -0
- package/dist/components/CarouselSlide/CarouselSlide.js +37 -0
- package/dist/components/CarouselSlide/index.d.ts +1 -0
- package/dist/components/CarouselSlide/index.js +5 -0
- package/dist/components/CarouselSlide/slide-layouts/Empty/Empty.d.ts +2 -0
- package/dist/components/CarouselSlide/slide-layouts/Empty/Empty.js +9 -0
- package/dist/components/CarouselSlide/slide-layouts/Empty/index.d.ts +1 -0
- package/dist/components/CarouselSlide/slide-layouts/Empty/index.js +5 -0
- package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.d.ts +9 -0
- package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.js +30 -0
- package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.stories.d.ts +34 -0
- package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.stories.js +105 -0
- package/dist/components/CarouselSlide/slide-layouts/Figure/index.d.ts +1 -0
- package/dist/components/CarouselSlide/slide-layouts/Figure/index.js +5 -0
- package/dist/components/CarouselSlide/slide-layouts/ImageCard/ImageCard.d.ts +2 -0
- package/dist/components/CarouselSlide/slide-layouts/ImageCard/ImageCard.js +10 -0
- package/dist/components/CarouselSlide/slide-layouts/ImageCard/index.d.ts +1 -0
- package/dist/components/CarouselSlide/slide-layouts/ImageCard/index.js +5 -0
- package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/NetworkCalloutSlide.d.ts +4 -0
- package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/NetworkCalloutSlide.js +27 -0
- package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/NetworkCalloutSlide.stories.d.ts +28 -0
- package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/NetworkCalloutSlide.stories.js +42 -0
- package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/index.d.ts +1 -0
- package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/index.js +5 -0
- package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.d.ts +17 -0
- package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.js +116 -0
- package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.stories.d.ts +170 -0
- package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.stories.js +193 -0
- package/dist/components/CarouselSlide/slide-layouts/Show/index.d.ts +1 -0
- package/dist/components/CarouselSlide/slide-layouts/Show/index.js +5 -0
- package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.d.ts +7 -0
- package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.js +30 -0
- package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.stories.d.ts +19 -0
- package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.stories.js +35 -0
- package/dist/components/CarouselSlide/slide-layouts/Text/index.d.ts +1 -0
- package/dist/components/CarouselSlide/slide-layouts/Text/index.js +5 -0
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.d.ts +5 -0
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.js +17 -0
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.stories.d.ts +17 -0
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.stories.js +49 -0
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/index.d.ts +1 -0
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/index.js +5 -0
- package/dist/components/CarouselSlide/slide-layouts/Video/VideoSlide.d.ts +2 -0
- package/dist/components/CarouselSlide/slide-layouts/Video/VideoSlide.js +20 -0
- package/dist/components/CarouselSlide/slide-layouts/Video/index.d.ts +1 -0
- package/dist/components/CarouselSlide/slide-layouts/Video/index.js +5 -0
- package/dist/components/CarouselSlide/slide-layouts/index.d.ts +8 -0
- package/dist/components/CarouselSlide/slide-layouts/index.js +18 -0
- package/dist/components/CastInfoLayout/CastInfoLayout.d.ts +2 -0
- package/dist/components/CastInfoLayout/CastInfoLayout.js +62 -0
- package/dist/components/CastInfoLayout/index.d.ts +1 -0
- package/dist/components/CastInfoLayout/index.js +5 -0
- package/dist/components/ChannelSearch/ChannelSearch.d.ts +18 -0
- package/dist/components/ChannelSearch/ChannelSearch.js +171 -0
- package/dist/components/ChannelSearch/index.d.ts +1 -0
- package/dist/components/ChannelSearch/index.js +5 -0
- package/dist/components/ChoicesItem/ChoicesItem.d.ts +5 -0
- package/dist/components/ChoicesItem/ChoicesItem.js +8 -0
- package/dist/components/ChoicesItem/index.d.ts +1 -0
- package/dist/components/ChoicesItem/index.js +5 -0
- package/dist/components/ChoicesList/ChoicesList.d.ts +4 -0
- package/dist/components/ChoicesList/ChoicesList.js +9 -0
- package/dist/components/ChoicesList/index.d.ts +1 -0
- package/dist/components/ChoicesList/index.js +5 -0
- package/dist/components/Concat/Concat.d.ts +4 -0
- package/dist/components/Concat/Concat.js +10 -0
- package/dist/components/Concat/index.d.ts +1 -0
- package/dist/components/Concat/index.js +5 -0
- package/dist/components/CreateChoiceList/CreateChoiceList.d.ts +6 -0
- package/dist/components/CreateChoiceList/CreateChoiceList.js +14 -0
- package/dist/components/CreateChoiceList/index.d.ts +1 -0
- package/dist/components/CreateChoiceList/index.js +5 -0
- package/dist/components/CtaBlock/CtaBlock.d.ts +23 -0
- package/dist/components/CtaBlock/CtaBlock.js +89 -0
- package/dist/components/CtaBlock/index.d.ts +1 -0
- package/dist/components/CtaBlock/index.js +5 -0
- package/dist/components/CustomDataList/CustomDataList.d.ts +11 -0
- package/dist/components/CustomDataList/CustomDataList.js +282 -0
- package/dist/components/CustomDataList/index.d.ts +1 -0
- package/dist/components/CustomDataList/index.js +5 -0
- package/dist/components/CustomSelect/CustomSelect.d.ts +14 -0
- package/dist/components/CustomSelect/CustomSelect.js +217 -0
- package/dist/components/CustomSelect/index.d.ts +1 -0
- package/dist/components/CustomSelect/index.js +5 -0
- package/dist/components/DateNavigation/DateNavigation.d.ts +5 -0
- package/dist/components/DateNavigation/DateNavigation.js +115 -0
- package/dist/components/DateNavigation/index.d.ts +1 -0
- package/dist/components/DateNavigation/index.js +5 -0
- package/dist/components/DatePicker/DatePicker.d.ts +10 -0
- package/dist/components/DatePicker/DatePicker.js +5895 -0
- package/dist/components/DatePicker/index.d.ts +1 -0
- package/dist/components/DatePicker/index.js +5 -0
- package/dist/components/DeviceAndPlatformLists/DeviceAndPlatformLists.d.ts +5 -0
- package/dist/components/DeviceAndPlatformLists/DeviceAndPlatformLists.js +60 -0
- package/dist/components/DeviceAndPlatformLists/index.d.ts +1 -0
- package/dist/components/DeviceAndPlatformLists/index.js +5 -0
- package/dist/components/DrawerNavigation/DrawerNavigation.d.ts +10 -0
- package/dist/components/DrawerNavigation/DrawerNavigation.js +123 -0
- package/dist/components/DrawerNavigation/index.d.ts +1 -0
- package/dist/components/DrawerNavigation/index.js +5 -0
- package/dist/components/EqualSizeFlexRow/EqualSizeFlexRow.d.ts +6 -0
- package/dist/components/EqualSizeFlexRow/EqualSizeFlexRow.js +31 -0
- package/dist/components/EqualSizeFlexRow/index.d.ts +1 -0
- package/dist/components/EqualSizeFlexRow/index.js +5 -0
- package/dist/components/EqualSizeGrid/EqualSizeGrid.d.ts +7 -0
- package/dist/components/EqualSizeGrid/EqualSizeGrid.js +29 -0
- package/dist/components/EqualSizeGrid/index.d.ts +1 -0
- package/dist/components/EqualSizeGrid/index.js +5 -0
- package/dist/components/ErrorHandler/ErrorHandler.d.ts +5 -0
- package/dist/components/ErrorHandler/ErrorHandler.js +17 -0
- package/dist/components/ErrorHandler/index.d.ts +1 -0
- package/dist/components/ErrorHandler/index.js +5 -0
- package/dist/components/FeaturedList/FeaturedList.d.ts +7 -0
- package/dist/components/FeaturedList/FeaturedList.js +48 -0
- package/dist/components/FeaturedList/index.d.ts +1 -0
- package/dist/components/FeaturedList/index.js +5 -0
- package/dist/components/Figure/Figure.d.ts +8 -0
- package/dist/components/Figure/Figure.js +23 -0
- package/dist/components/Figure/index.d.ts +1 -0
- package/dist/components/Figure/index.js +5 -0
- package/dist/components/FindUs/FindUs.d.ts +20 -0
- package/dist/components/FindUs/FindUs.js +120 -0
- package/dist/components/FindUs/index.d.ts +1 -0
- package/dist/components/FindUs/index.js +5 -0
- package/dist/components/FooterNavigation/FooterNavigation.d.ts +4 -0
- package/dist/components/FooterNavigation/FooterNavigation.js +24 -0
- package/dist/components/FooterNavigation/index.d.ts +1 -0
- package/dist/components/FooterNavigation/index.js +5 -0
- package/dist/components/GenericList/GenericList.d.ts +6 -0
- package/dist/components/GenericList/GenericList.js +23 -0
- package/dist/components/GenericList/index.d.ts +1 -0
- package/dist/components/GenericList/index.js +5 -0
- package/dist/components/GetAirdateWrapper/GetAirdateWrapper.d.ts +9 -0
- package/dist/components/GetAirdateWrapper/GetAirdateWrapper.js +40 -0
- package/dist/components/GetAirdateWrapper/index.d.ts +1 -0
- package/dist/components/GetAirdateWrapper/index.js +5 -0
- package/dist/components/GradientButton/GradientButton.d.ts +15 -0
- package/dist/components/GradientButton/GradientButton.js +69 -0
- package/dist/components/GradientButton/index.d.ts +1 -0
- package/dist/components/GradientButton/index.js +5 -0
- package/dist/components/GridList/GridList.d.ts +6 -0
- package/dist/components/GridList/GridList.js +28 -0
- package/dist/components/GridList/index.d.ts +1 -0
- package/dist/components/GridList/index.js +5 -0
- package/dist/components/ImageCard/ImageCard.d.ts +3 -0
- package/dist/components/ImageCard/ImageCard.js +113 -0
- package/dist/components/ImageCard/ImageCardCore.d.ts +3 -0
- package/dist/components/ImageCard/ImageCardCore.js +129 -0
- package/dist/components/ImageCard/index.d.ts +1 -0
- package/dist/components/ImageCard/index.js +5 -0
- package/dist/components/ImageReplacementAnchor/ImageReplacementAnchor.d.ts +15 -0
- package/dist/components/ImageReplacementAnchor/ImageReplacementAnchor.js +52 -0
- package/dist/components/ImageReplacementAnchor/index.d.ts +1 -0
- package/dist/components/ImageReplacementAnchor/index.js +5 -0
- package/dist/components/InfoPanel/InfoPanel.d.ts +10 -0
- package/dist/components/InfoPanel/InfoPanel.js +66 -0
- package/dist/components/InfoPanel/index.d.ts +1 -0
- package/dist/components/InfoPanel/index.js +5 -0
- package/dist/components/InlineNavigation/InlineNavigation.d.ts +6 -0
- package/dist/components/InlineNavigation/InlineNavigation.js +27 -0
- package/dist/components/InlineNavigation/index.d.ts +1 -0
- package/dist/components/InlineNavigation/index.js +4 -0
- package/dist/components/Input/Input.d.ts +10 -0
- package/dist/components/Input/Input.js +57 -0
- package/dist/components/Input/index.d.ts +1 -0
- package/dist/components/Input/index.js +5 -0
- package/dist/components/InstructionsList/InstructionsList.d.ts +5 -0
- package/dist/components/InstructionsList/InstructionsList.js +17 -0
- package/dist/components/InstructionsList/index.d.ts +1 -0
- package/dist/components/InstructionsList/index.js +5 -0
- package/dist/components/Loading/Loading.d.ts +8 -0
- package/dist/components/Loading/Loading.js +36 -0
- package/dist/components/Loading/index.d.ts +1 -0
- package/dist/components/Loading/index.js +5 -0
- package/dist/components/LoadingV2/LoadingV2.d.ts +7 -0
- package/dist/components/LoadingV2/LoadingV2.js +39 -0
- package/dist/components/LoadingV2/index.d.ts +1 -0
- package/dist/components/LoadingV2/index.js +5 -0
- package/dist/components/LogoListItem/LogoListItem.d.ts +7 -0
- package/dist/components/LogoListItem/LogoListItem.js +29 -0
- package/dist/components/LogoListItem/index.d.ts +1 -0
- package/dist/components/LogoListItem/index.js +5 -0
- package/dist/components/LogoNavigation/LogoNavigation.d.ts +5 -0
- package/dist/components/LogoNavigation/LogoNavigation.js +23 -0
- package/dist/components/LogoNavigation/index.d.ts +1 -0
- package/dist/components/LogoNavigation/index.js +5 -0
- package/dist/components/ModalContainer/ModalContainer.d.ts +9 -0
- package/dist/components/ModalContainer/ModalContainer.js +108 -0
- package/dist/components/ModalContainer/index.d.ts +1 -0
- package/dist/components/ModalContainer/index.js +5 -0
- package/dist/components/MultiLayeredFigure/MultiLayeredFigure.d.ts +6 -0
- package/dist/components/MultiLayeredFigure/MultiLayeredFigure.js +29 -0
- package/dist/components/MultiLayeredFigure/index.d.ts +1 -0
- package/dist/components/MultiLayeredFigure/index.js +5 -0
- package/dist/components/NavList/NavList.d.ts +8 -0
- package/dist/components/NavList/NavList.js +33 -0
- package/dist/components/NavList/index.d.ts +1 -0
- package/dist/components/NavList/index.js +5 -0
- package/dist/components/Overlay/Overlay.d.ts +6 -0
- package/dist/components/Overlay/Overlay.js +37 -0
- package/dist/components/Overlay/index.d.ts +1 -0
- package/dist/components/Overlay/index.js +5 -0
- package/dist/components/PageHero/PageHero.d.ts +6 -0
- package/dist/components/PageHero/PageHero.js +19 -0
- package/dist/components/PageHero/index.d.ts +1 -0
- package/dist/components/PageHero/index.js +5 -0
- package/dist/components/PageHero/page-hero-layouts/ContentHero/ContentHero.d.ts +14 -0
- package/dist/components/PageHero/page-hero-layouts/ContentHero/ContentHero.js +40 -0
- package/dist/components/PageHero/page-hero-layouts/ContentHero/index.d.ts +1 -0
- package/dist/components/PageHero/page-hero-layouts/ContentHero/index.js +5 -0
- package/dist/components/PageHero/page-hero-layouts/IONShow/IONShowHero.d.ts +6 -0
- package/dist/components/PageHero/page-hero-layouts/IONShow/IONShowHero.js +64 -0
- package/dist/components/PageHero/page-hero-layouts/IONShow/index.d.ts +1 -0
- package/dist/components/PageHero/page-hero-layouts/IONShow/index.js +5 -0
- package/dist/components/PageHero/page-hero-layouts/ImageOnly/ImageOnlyHero.d.ts +13 -0
- package/dist/components/PageHero/page-hero-layouts/ImageOnly/ImageOnlyHero.js +35 -0
- package/dist/components/PageHero/page-hero-layouts/ImageOnly/index.d.ts +1 -0
- package/dist/components/PageHero/page-hero-layouts/ImageOnly/index.js +5 -0
- package/dist/components/PageHero/page-hero-layouts/index.d.ts +3 -0
- package/dist/components/PageHero/page-hero-layouts/index.js +8 -0
- package/dist/components/ProgramAirdate/ProgramAirdate.d.ts +11 -0
- package/dist/components/ProgramAirdate/ProgramAirdate.js +151 -0
- package/dist/components/ProgramAirdate/index.d.ts +1 -0
- package/dist/components/ProgramAirdate/index.js +5 -0
- package/dist/components/PromotionBlock/PromotionBlock.d.ts +5 -0
- package/dist/components/PromotionBlock/PromotionBlock.js +43 -0
- package/dist/components/PromotionBlock/index.d.ts +1 -0
- package/dist/components/PromotionBlock/index.js +5 -0
- package/dist/components/PromotionsRowBlock/PromotionsRowBlock.d.ts +5 -0
- package/dist/components/PromotionsRowBlock/PromotionsRowBlock.js +10 -0
- package/dist/components/PromotionsRowBlock/index.d.ts +1 -0
- package/dist/components/PromotionsRowBlock/index.js +5 -0
- package/dist/components/PromotionsRowModule/PromotionsRowModule.d.ts +6 -0
- package/dist/components/PromotionsRowModule/PromotionsRowModule.js +113 -0
- package/dist/components/PromotionsRowModule/index.d.ts +1 -0
- package/dist/components/PromotionsRowModule/index.js +5 -0
- package/dist/components/RescanInstructions/RescanInstructions.d.ts +4 -0
- package/dist/components/RescanInstructions/RescanInstructions.js +30 -0
- package/dist/components/RescanInstructions/index.d.ts +1 -0
- package/dist/components/RescanInstructions/index.js +5 -0
- package/dist/components/ResponsiveImage/ResponsiveImage.d.ts +14 -0
- package/dist/components/ResponsiveImage/ResponsiveImage.js +34 -0
- package/dist/components/ResponsiveImage/index.d.ts +1 -0
- package/dist/components/ResponsiveImage/index.js +5 -0
- package/dist/components/ResultsTable/ResultsTable.d.ts +7 -0
- package/dist/components/ResultsTable/ResultsTable.js +26 -0
- package/dist/components/ResultsTable/index.d.ts +1 -0
- package/dist/components/ResultsTable/index.js +5 -0
- package/dist/components/ResultsTableBody/ResultsTableBody.d.ts +6 -0
- package/dist/components/ResultsTableBody/ResultsTableBody.js +51 -0
- package/dist/components/ResultsTableBody/index.d.ts +1 -0
- package/dist/components/ResultsTableBody/index.js +5 -0
- package/dist/components/ResultsTableHeader/ResultsTableHeader.d.ts +4 -0
- package/dist/components/ResultsTableHeader/ResultsTableHeader.js +21 -0
- package/dist/components/ResultsTableHeader/index.d.ts +1 -0
- package/dist/components/ResultsTableHeader/index.js +5 -0
- package/dist/components/ScheduleLayout/ScheduleLayout.d.ts +6 -0
- package/dist/components/ScheduleLayout/ScheduleLayout.js +28 -0
- package/dist/components/ScheduleLayout/index.d.ts +1 -0
- package/dist/components/ScheduleLayout/index.js +5 -0
- package/dist/components/ScheduleList/ScheduleList.d.ts +6 -0
- package/dist/components/ScheduleList/ScheduleList.js +100 -0
- package/dist/components/ScheduleList/index.d.ts +1 -0
- package/dist/components/ScheduleList/index.js +5 -0
- package/dist/components/ScheduleList/schedule-list-items/AirDateSegment.d.ts +5 -0
- package/dist/components/ScheduleList/schedule-list-items/AirDateSegment.js +21 -0
- package/dist/components/ScheduleList/schedule-list-items/MovieItem.d.ts +8 -0
- package/dist/components/ScheduleList/schedule-list-items/MovieItem.js +39 -0
- package/dist/components/ScheduleList/schedule-list-items/SeriesItem.d.ts +8 -0
- package/dist/components/ScheduleList/schedule-list-items/SeriesItem.js +41 -0
- package/dist/components/ScheduleList/schedule-list-items/SportsItem.d.ts +8 -0
- package/dist/components/ScheduleList/schedule-list-items/SportsItem.js +39 -0
- package/dist/components/SectionedContent/SectionedContent.d.ts +4 -0
- package/dist/components/SectionedContent/SectionedContent.js +23 -0
- package/dist/components/SectionedContent/index.d.ts +1 -0
- package/dist/components/SectionedContent/index.js +5 -0
- package/dist/components/Select/Select.d.ts +12 -0
- package/dist/components/Select/Select.js +64 -0
- package/dist/components/Select/index.d.ts +1 -0
- package/dist/components/Select/index.js +5 -0
- package/dist/components/ShowAboutContent/ShowAboutContent.d.ts +8 -0
- package/dist/components/ShowAboutContent/ShowAboutContent.js +69 -0
- package/dist/components/ShowAboutContent/index.d.ts +1 -0
- package/dist/components/ShowAboutContent/index.js +5 -0
- package/dist/components/ShowAboutLayout/ShowAboutLayout.d.ts +8 -0
- package/dist/components/ShowAboutLayout/ShowAboutLayout.js +53 -0
- package/dist/components/ShowAboutLayout/index.d.ts +1 -0
- package/dist/components/ShowAboutLayout/index.js +5 -0
- package/dist/components/SocialLinks/SocialLinks.d.ts +11 -0
- package/dist/components/SocialLinks/SocialLinks.js +260 -0
- package/dist/components/SocialLinks/index.d.ts +1 -0
- package/dist/components/SocialLinks/index.js +5 -0
- package/dist/components/SocialShareBlock/SocialShareBlock.d.ts +9 -0
- package/dist/components/SocialShareBlock/SocialShareBlock.js +44 -0
- package/dist/components/SocialShareBlock/index.d.ts +1 -0
- package/dist/components/SocialShareBlock/index.js +5 -0
- package/dist/components/SocialShareButton/SocialShareButton.d.ts +8 -0
- package/dist/components/SocialShareButton/SocialShareButton.js +9 -0
- package/dist/components/SocialShareButton/index.d.ts +1 -0
- package/dist/components/SocialShareButton/index.js +5 -0
- package/dist/components/StringList/StringList.d.ts +6 -0
- package/dist/components/StringList/StringList.js +30 -0
- package/dist/components/StringList/index.d.ts +1 -0
- package/dist/components/StringList/index.js +5 -0
- package/dist/components/TabContent/TabContent.d.ts +5 -0
- package/dist/components/TabContent/TabContent.js +10 -0
- package/dist/components/TabContent/index.d.ts +1 -0
- package/dist/components/TabContent/index.js +5 -0
- package/dist/components/TabNavigation/TabNavigation.d.ts +6 -0
- package/dist/components/TabNavigation/TabNavigation.js +69 -0
- package/dist/components/TabNavigation/index.d.ts +1 -0
- package/dist/components/TabNavigation/index.js +5 -0
- package/dist/components/TabbedContent/TabbedContent.d.ts +5 -0
- package/dist/components/TabbedContent/TabbedContent.js +15 -0
- package/dist/components/TabbedContent/index.d.ts +1 -0
- package/dist/components/TabbedContent/index.js +5 -0
- package/dist/components/TextArea/TextArea.d.ts +2 -0
- package/dist/components/TextArea/TextArea.js +49 -0
- package/dist/components/TextArea/index.d.ts +1 -0
- package/dist/components/TextArea/index.js +5 -0
- package/dist/components/UpcomingList/UpcomingList.d.ts +5 -0
- package/dist/components/UpcomingList/UpcomingList.js +61 -0
- package/dist/components/UpcomingList/index.d.ts +1 -0
- package/dist/components/UpcomingList/index.js +5 -0
- package/dist/containers/GetFeatruedListContainer.d.ts +17 -0
- package/dist/containers/GetFeatruedListContainer.js +50 -0
- package/dist/containers/NowPlayingContainer.d.ts +16 -0
- package/dist/containers/NowPlayingContainer.js +87 -0
- package/dist/data-resources/FakeDataResource.d.ts +95 -0
- package/dist/data-resources/FakeDataResource.js +692 -0
- package/dist/error-boundries/BlankErrorBoundry.d.ts +15 -0
- package/dist/error-boundries/BlankErrorBoundry.js +25 -0
- package/dist/error-boundries/GeneralErrorBoundry.d.ts +15 -0
- package/dist/error-boundries/GeneralErrorBoundry.js +27 -0
- package/dist/facebook-osmzgL7R.mjs +54 -0
- package/dist/format-DF9p-6BI.mjs +1221 -0
- package/dist/hooks/useAddScriptTags.d.ts +2 -0
- package/dist/hooks/useAddScriptTags.js +8 -0
- package/dist/hooks/useGetSchedule.d.ts +14 -0
- package/dist/hooks/useGetSchedule.js +58 -0
- package/dist/hooks/useGetUpcoming.d.ts +7 -0
- package/dist/hooks/useGetUpcoming.js +28 -0
- package/dist/hooks/useOptinMonsterReset.d.ts +4 -0
- package/dist/hooks/useOptinMonsterReset.js +41 -0
- package/dist/hooks/useSourcepointPrivacyTrigger.d.ts +4 -0
- package/dist/hooks/useSourcepointPrivacyTrigger.js +23 -0
- package/dist/icons/Facebook.d.ts +3 -0
- package/dist/icons/Facebook.js +33 -0
- package/dist/icons/Tiktok.d.ts +3 -0
- package/dist/icons/Tiktok.js +35 -0
- package/dist/icons/Twitter.d.ts +3 -0
- package/dist/icons/Twitter.js +35 -0
- package/dist/index-0wieGV50.mjs +133 -0
- package/dist/index-CZzwT3Oj.mjs +662 -0
- package/dist/index-DB0QlRo7.mjs +1827 -0
- package/dist/index-YbL9dKxh.mjs +19068 -0
- package/dist/index.d.ts +78 -0
- package/dist/index.js +158 -0
- package/dist/secl-ui.d.ts +2 -0
- package/dist/settings.d.ts +3 -0
- package/dist/settings.js +30 -0
- package/dist/sub-DTz41m8W.mjs +17 -0
- package/dist/subMonths-YdVF7zsL.mjs +11 -0
- package/dist/triangle-D0AHL9lB.mjs +54 -0
- package/dist/utils/Redirect.d.ts +4 -0
- package/dist/utils/Redirect.js +9 -0
- package/dist/utils/analytics.d.ts +1 -0
- package/dist/utils/analytics.js +458 -0
- package/dist/utils/createSocialShareLinks.d.ts +7 -0
- package/dist/utils/createSocialShareLinks.js +65 -0
- package/dist/utils/date-helpers.d.ts +31 -0
- package/dist/utils/date-helpers.js +49 -0
- package/dist/utils/events.d.ts +3 -0
- package/dist/utils/events.js +15 -0
- package/dist/utils/getCarouselOptions.d.ts +1 -0
- package/dist/utils/getCarouselOptions.js +64 -0
- package/dist/utils/getFeaturedList.d.ts +22 -0
- package/dist/utils/getFeaturedList.js +66 -0
- package/dist/utils/getFeaturedListImages.d.ts +5 -0
- package/dist/utils/getFeaturedListImages.js +36 -0
- package/dist/utils/getOnNowProgram.d.ts +12 -0
- package/dist/utils/getOnNowProgram.js +116 -0
- package/dist/utils/getSchedule.d.ts +7 -0
- package/dist/utils/getSchedule.js +31 -0
- package/dist/utils/getUpcomingPrograms.d.ts +18 -0
- package/dist/utils/getUpcomingPrograms.js +30 -0
- package/dist/utils/getViewingPlatforms.d.ts +16 -0
- package/dist/utils/getViewingPlatforms.js +34 -0
- package/dist/utils/gtm.d.ts +4 -0
- package/dist/utils/gtm.js +17 -0
- package/dist/utils/helpers.d.ts +116 -0
- package/dist/utils/helpers.js +117 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +4 -0
- package/dist/utils/optinMonsterReset.d.ts +4 -0
- package/dist/utils/optinMonsterReset.js +18 -0
- package/dist/utils/optinMonsterScript.d.ts +4 -0
- package/dist/utils/optinMonsterScript.js +20 -0
- package/dist/utils/program-helpers.d.ts +50 -0
- package/dist/utils/program-helpers.js +33 -0
- package/dist/utils/schedule-helpers.d.ts +1 -0
- package/dist/utils/schedule-helpers.js +7 -0
- package/dist/utils/series-helpers.d.ts +50 -0
- package/dist/utils/series-helpers.js +33 -0
- package/dist/utils/wpPlatformsTransformer.d.ts +1 -0
- package/dist/utils/wpPlatformsTransformer.js +28 -0
- package/dist/vite-env.d.js +1 -0
- package/dist/vite.svg +1 -0
- package/dist/x-D8_C2o-U.mjs +62 -0
- package/package.json +131 -0
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
import { jsxs as p, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import R, { forwardRef as le, useState as b, useRef as T, useEffect as ne } from "react";
|
|
3
|
+
import { CreateChoiceList as ue } from "../CreateChoiceList/CreateChoiceList.js";
|
|
4
|
+
import { classes as w } from "../../utils/helpers.js";
|
|
5
|
+
import { s as v, C as de, A as _e } from "../../Form.module-DbpB9u1l.mjs";
|
|
6
|
+
import { X as fe } from "../../x-D8_C2o-U.mjs";
|
|
7
|
+
import { P as E } from "../../index-CZzwT3Oj.mjs";
|
|
8
|
+
import { T as he } from "../../triangle-D0AHL9lB.mjs";
|
|
9
|
+
import '../../assets/CustomDataList.css';function I() {
|
|
10
|
+
return I = Object.assign || function(c) {
|
|
11
|
+
for (var l = 1; l < arguments.length; l++) {
|
|
12
|
+
var d = arguments[l];
|
|
13
|
+
for (var o in d)
|
|
14
|
+
Object.prototype.hasOwnProperty.call(d, o) && (c[o] = d[o]);
|
|
15
|
+
}
|
|
16
|
+
return c;
|
|
17
|
+
}, I.apply(this, arguments);
|
|
18
|
+
}
|
|
19
|
+
function me(c, l) {
|
|
20
|
+
if (c == null) return {};
|
|
21
|
+
var d = pe(c, l), o, _;
|
|
22
|
+
if (Object.getOwnPropertySymbols) {
|
|
23
|
+
var n = Object.getOwnPropertySymbols(c);
|
|
24
|
+
for (_ = 0; _ < n.length; _++)
|
|
25
|
+
o = n[_], !(l.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(c, o) && (d[o] = c[o]);
|
|
26
|
+
}
|
|
27
|
+
return d;
|
|
28
|
+
}
|
|
29
|
+
function pe(c, l) {
|
|
30
|
+
if (c == null) return {};
|
|
31
|
+
var d = {}, o = Object.keys(c), _, n;
|
|
32
|
+
for (n = 0; n < o.length; n++)
|
|
33
|
+
_ = o[n], !(l.indexOf(_) >= 0) && (d[_] = c[_]);
|
|
34
|
+
return d;
|
|
35
|
+
}
|
|
36
|
+
var z = le(function(c, l) {
|
|
37
|
+
var d = c.color, o = d === void 0 ? "currentColor" : d, _ = c.size, n = _ === void 0 ? 24 : _, x = me(c, ["color", "size"]);
|
|
38
|
+
return /* @__PURE__ */ R.createElement("svg", I({
|
|
39
|
+
ref: l,
|
|
40
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
41
|
+
width: n,
|
|
42
|
+
height: n,
|
|
43
|
+
viewBox: "0 0 24 24",
|
|
44
|
+
fill: "none",
|
|
45
|
+
stroke: o,
|
|
46
|
+
strokeWidth: "2",
|
|
47
|
+
strokeLinecap: "round",
|
|
48
|
+
strokeLinejoin: "round"
|
|
49
|
+
}, x), /* @__PURE__ */ R.createElement("circle", {
|
|
50
|
+
cx: "11",
|
|
51
|
+
cy: "11",
|
|
52
|
+
r: "8"
|
|
53
|
+
}), /* @__PURE__ */ R.createElement("line", {
|
|
54
|
+
x1: "21",
|
|
55
|
+
y1: "21",
|
|
56
|
+
x2: "16.65",
|
|
57
|
+
y2: "16.65"
|
|
58
|
+
}));
|
|
59
|
+
});
|
|
60
|
+
z.propTypes = {
|
|
61
|
+
color: E.string,
|
|
62
|
+
size: E.oneOfType([E.string, E.number])
|
|
63
|
+
};
|
|
64
|
+
z.displayName = "Search";
|
|
65
|
+
const u = {
|
|
66
|
+
"custom-data-list": "_custom-data-list_6b9v2_1",
|
|
67
|
+
"custom-data-list__select": "_custom-data-list__select_6b9v2_9",
|
|
68
|
+
"custom-data-list__selection": "_custom-data-list__selection_6b9v2_17",
|
|
69
|
+
"custom-data-list__selections": "_custom-data-list__selections_6b9v2_18",
|
|
70
|
+
"custom-data-list__selected": "_custom-data-list__selected_6b9v2_38",
|
|
71
|
+
"custom-data-list__remove": "_custom-data-list__remove_6b9v2_49",
|
|
72
|
+
"custom-data-list__choices-wrapper": "_custom-data-list__choices-wrapper_6b9v2_67",
|
|
73
|
+
"custom-data-list__choices": "_custom-data-list__choices_6b9v2_67",
|
|
74
|
+
"custom-data-list__choices-wrapper--hidden": "_custom-data-list__choices-wrapper--hidden_6b9v2_114",
|
|
75
|
+
"custom-data-list__icon": "_custom-data-list__icon_6b9v2_119",
|
|
76
|
+
"custom-data-list__filter-wrap": "_custom-data-list__filter-wrap_6b9v2_133",
|
|
77
|
+
"custom-data-list__filter": "_custom-data-list__filter_6b9v2_133",
|
|
78
|
+
"custom-data-list__filter-icon": "_custom-data-list__filter-icon_6b9v2_150",
|
|
79
|
+
"custom-data-list__select--touched": "_custom-data-list__select--touched_6b9v2_174"
|
|
80
|
+
};
|
|
81
|
+
function Se({
|
|
82
|
+
name: c,
|
|
83
|
+
options: l,
|
|
84
|
+
label: d = "",
|
|
85
|
+
placeholder: o = "",
|
|
86
|
+
width: _ = 100,
|
|
87
|
+
multiple: n = !1,
|
|
88
|
+
showValidation: x = !0,
|
|
89
|
+
...Q
|
|
90
|
+
}) {
|
|
91
|
+
var X, G, J;
|
|
92
|
+
const [Y, Z] = b(`${v["form-field__input"]}`), M = T(), y = T(), L = T(), [V, W] = b(""), [F, ee] = b("clean"), [O, q] = b([]), [C, k] = b([]), [$, K] = b([]), [A, te] = b(null), [N, H] = b("hidden"), f = T(-1), se = `input-width--${_}`, ie = ["Enter", "Escape", "ArrowDown", "ArrowUp"], U = (e) => {
|
|
93
|
+
let i = [];
|
|
94
|
+
const t = (s) => {
|
|
95
|
+
for (const r of s)
|
|
96
|
+
r.status !== "filtered" && i.push(r), r.subcategories.length && t(r.subcategories);
|
|
97
|
+
};
|
|
98
|
+
return t(e), i;
|
|
99
|
+
}, j = (e, i, t = "selected") => {
|
|
100
|
+
if (!n && t === "selected" || t === "highlighted") {
|
|
101
|
+
for (const s of e)
|
|
102
|
+
if (s.status === t) {
|
|
103
|
+
s.status = "active";
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
for (const s of e) {
|
|
108
|
+
if (s.id === i && (n && s.status !== "selected" && t === "selected" && q([...O, s]), s.status !== "selected" && (s.status = t), t === "selected")) {
|
|
109
|
+
te(s);
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
s.subcategories.length && j(s.subcategories, i, t);
|
|
113
|
+
}
|
|
114
|
+
return e;
|
|
115
|
+
}, B = (e) => {
|
|
116
|
+
let i = [];
|
|
117
|
+
const t = (s) => (s.parent_id ? (i.unshift(s.label), t(l.find((r) => r.id === s.parent_id))) : i.unshift(s.label), i);
|
|
118
|
+
return t(e).join(":");
|
|
119
|
+
}, ce = () => {
|
|
120
|
+
setTimeout(() => {
|
|
121
|
+
y.current.checkValidity() ? W("") : W(y.current.validationMessage);
|
|
122
|
+
}, 100);
|
|
123
|
+
}, S = (e) => {
|
|
124
|
+
e == null || e.stopPropagation(), ee("touched"), Z(`${v["form-field__input"]} ${v["input--touched"]}`), N === "hidden" ? (H("visible"), M.current.focus()) : (H("hidden"), ce());
|
|
125
|
+
}, oe = (e) => {
|
|
126
|
+
const t = O.filter((m) => m.id !== e);
|
|
127
|
+
q([...t]);
|
|
128
|
+
let s = C;
|
|
129
|
+
const r = (m, h) => {
|
|
130
|
+
for (const P of m) {
|
|
131
|
+
if (P.id === h) {
|
|
132
|
+
P.status = "active";
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
P.subcategories.length && r(P.subcategories, h);
|
|
136
|
+
}
|
|
137
|
+
return m;
|
|
138
|
+
}, g = r(s, e);
|
|
139
|
+
k([...g]), document.querySelector(`select[name="${c}"] > option[value="${e}"]`).selected = !1;
|
|
140
|
+
}, re = (e) => {
|
|
141
|
+
if (e.stopPropagation(), e.keyCode === 40 || e.keyCode === 38)
|
|
142
|
+
D(e);
|
|
143
|
+
else {
|
|
144
|
+
f.current = -1;
|
|
145
|
+
const i = e.currentTarget.value, t = C, s = (m) => {
|
|
146
|
+
for (const h of m)
|
|
147
|
+
!h.label.toLowerCase().includes(i.toLowerCase()) && h.status !== "selected" && (h.status = "filtered"), h.subcategories.length && s(h.subcategories);
|
|
148
|
+
return m;
|
|
149
|
+
}, r = (m) => {
|
|
150
|
+
for (const h of m)
|
|
151
|
+
h.status === "filtered" && (h.status = "active"), h.subcategories.length && r(h.subcategories);
|
|
152
|
+
return m;
|
|
153
|
+
}, g = i === "" ? r(t) : s(t);
|
|
154
|
+
k([...g]), K([...U(g)]);
|
|
155
|
+
}
|
|
156
|
+
}, ae = (e) => {
|
|
157
|
+
const i = structuredClone(C), t = j(i, e);
|
|
158
|
+
k([...t]), S(null), document.querySelector(`select[name="${c}"] > option[value="${e}"]`).selected = !0;
|
|
159
|
+
}, D = (e) => {
|
|
160
|
+
e.stopPropagation(), e.preventDefault();
|
|
161
|
+
const i = e.key, t = C, s = (r) => {
|
|
162
|
+
const g = $[r].id, m = j(t, g, "highlighted");
|
|
163
|
+
k([...m]);
|
|
164
|
+
};
|
|
165
|
+
if (i === "ArrowDown" && N === "visible")
|
|
166
|
+
f.current < $.length - 1 ? (s(f.current + 1), f.current++) : (s(0), f.current = 0);
|
|
167
|
+
else if (i === "ArrowUp" && N === "visible")
|
|
168
|
+
f.current > 0 ? (s(f.current - 1), f.current--) : (s($.length - 1), f.current = $.length - 1);
|
|
169
|
+
else if (i === "Enter")
|
|
170
|
+
if (N === "visible" && f !== -1) {
|
|
171
|
+
const r = $[f.current].id, g = j(t, r);
|
|
172
|
+
k([...g]), S(), document.querySelector(`select[name="${c}"] > option[value="${r}"]`).selected = !0;
|
|
173
|
+
} else
|
|
174
|
+
S();
|
|
175
|
+
else if (i === "Escape" && N === "visible")
|
|
176
|
+
S(), f.current = -1;
|
|
177
|
+
else
|
|
178
|
+
return !1;
|
|
179
|
+
30 * f.current > 160 ? L.current.scrollTo(0, 30 * f.current) : L.current.scrollTo(0, 0);
|
|
180
|
+
};
|
|
181
|
+
return ne(() => {
|
|
182
|
+
let e = l.map((t) => ({
|
|
183
|
+
...t,
|
|
184
|
+
subcategories: [],
|
|
185
|
+
status: "active"
|
|
186
|
+
}));
|
|
187
|
+
for (const t of e)
|
|
188
|
+
if (Number.parseInt(t.parent_id, 10)) {
|
|
189
|
+
let s = e.find((r) => r.id === t.parent_id);
|
|
190
|
+
s && s.subcategories.push(t);
|
|
191
|
+
}
|
|
192
|
+
const i = e.filter((t) => t.parent_id === null);
|
|
193
|
+
K(U(i)), k(i);
|
|
194
|
+
}, [l]), /* @__PURE__ */ p("label", { htmlFor: c, className: w([v["form-field"], v[se]]), children: [
|
|
195
|
+
x && /* @__PURE__ */ p(
|
|
196
|
+
"i",
|
|
197
|
+
{
|
|
198
|
+
className: w([
|
|
199
|
+
v["form-field__icon"],
|
|
200
|
+
(X = y.current) != null && X.validity.valid ? "" : v["form-field__icon--invalid"]
|
|
201
|
+
]),
|
|
202
|
+
style: d === "" ? { top: "0.4em" } : {},
|
|
203
|
+
children: [
|
|
204
|
+
((G = y.current) == null ? void 0 : G.checkValidity()) && F === "touched" && /* @__PURE__ */ a(de, {}),
|
|
205
|
+
!((J = y.current) != null && J.checkValidity()) && F === "touched" && /* @__PURE__ */ a(_e, {})
|
|
206
|
+
]
|
|
207
|
+
}
|
|
208
|
+
),
|
|
209
|
+
/* @__PURE__ */ a("span", { className: v["form-field__label"], children: d }),
|
|
210
|
+
/* @__PURE__ */ p(
|
|
211
|
+
"select",
|
|
212
|
+
{
|
|
213
|
+
name: c,
|
|
214
|
+
className: w([
|
|
215
|
+
u["custom-data-list__select"],
|
|
216
|
+
F === "touched" ? u["custom-data-list__select--touched"] : ""
|
|
217
|
+
]),
|
|
218
|
+
multiple: n,
|
|
219
|
+
ref: y,
|
|
220
|
+
...Q,
|
|
221
|
+
children: [
|
|
222
|
+
/* @__PURE__ */ a("option", { value: "" }),
|
|
223
|
+
l.length && l.map((e) => /* @__PURE__ */ a("option", { value: e.id, selected: e.selected, children: e.label }, `option-${e.id}`))
|
|
224
|
+
]
|
|
225
|
+
}
|
|
226
|
+
),
|
|
227
|
+
/* @__PURE__ */ p("div", { className: w([Y, u["custom-data-list"], "custom-data-list"]), children: [
|
|
228
|
+
n && /* @__PURE__ */ p("ul", { className: `${u["custom-data-list__selections"]}`, onClick: S, children: [
|
|
229
|
+
O.length !== 0 && O.map((e) => /* @__PURE__ */ p("li", { className: u["custom-data-list__selected"], children: [
|
|
230
|
+
B(e),
|
|
231
|
+
/* @__PURE__ */ a(
|
|
232
|
+
"button",
|
|
233
|
+
{
|
|
234
|
+
title: "remove",
|
|
235
|
+
type: "button",
|
|
236
|
+
className: u["custom-data-list__remove"],
|
|
237
|
+
onClick: (i) => {
|
|
238
|
+
i.stopPropagation(), oe(e.id);
|
|
239
|
+
},
|
|
240
|
+
children: /* @__PURE__ */ a(fe, { width: 16, height: 16 })
|
|
241
|
+
}
|
|
242
|
+
)
|
|
243
|
+
] }, `selection-${e.id}`)),
|
|
244
|
+
O.length === 0 && o !== "" && /* @__PURE__ */ a("span", { className: w([u["custom-data-list__placeholder"], "custom-data-list__placeholder"]), children: o })
|
|
245
|
+
] }),
|
|
246
|
+
!n && /* @__PURE__ */ p("div", { className: u["custom-data-list__selection"], onClick: S, children: [
|
|
247
|
+
A && B(A),
|
|
248
|
+
!A && o !== "" && /* @__PURE__ */ a("span", { className: w([u["custom-data-list__placeholder"], "custom-data-list__placeholder"]), children: o })
|
|
249
|
+
] }),
|
|
250
|
+
/* @__PURE__ */ p("div", { className: w([
|
|
251
|
+
u["custom-data-list__choices-wrapper"],
|
|
252
|
+
N === "visible" ? "" : u["custom-data-list__choices-wrapper--hidden"]
|
|
253
|
+
]), children: [
|
|
254
|
+
/* @__PURE__ */ p("div", { className: u["custom-data-list__filter-wrap"], children: [
|
|
255
|
+
/* @__PURE__ */ a(
|
|
256
|
+
"input",
|
|
257
|
+
{
|
|
258
|
+
type: "text",
|
|
259
|
+
ref: M,
|
|
260
|
+
onChange: re,
|
|
261
|
+
onKeyDown: (e) => {
|
|
262
|
+
if (ie.includes(e.key))
|
|
263
|
+
D(e);
|
|
264
|
+
else
|
|
265
|
+
return !0;
|
|
266
|
+
},
|
|
267
|
+
className: u["custom-data-list__filter"]
|
|
268
|
+
}
|
|
269
|
+
),
|
|
270
|
+
/* @__PURE__ */ a("i", { className: u["custom-data-list__filter-icon"], children: /* @__PURE__ */ a(z, { width: 14, height: 14 }) })
|
|
271
|
+
] }),
|
|
272
|
+
/* @__PURE__ */ a("div", { className: u["custom-data-list__choices"], ref: L, onKeyDown: D, children: C.length !== 0 && /* @__PURE__ */ a(ue, { list: C, handleOnClick: ae }) })
|
|
273
|
+
] }),
|
|
274
|
+
/* @__PURE__ */ a("i", { className: u["custom-data-list__icon"], children: /* @__PURE__ */ a(he, {}) })
|
|
275
|
+
] }),
|
|
276
|
+
V !== "" && x && /* @__PURE__ */ a("div", { className: v["form-field__error-message"], children: V })
|
|
277
|
+
] });
|
|
278
|
+
}
|
|
279
|
+
export {
|
|
280
|
+
Se as CustomDataList,
|
|
281
|
+
Se as default
|
|
282
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CustomDataList, CustomDataList as default } from './CustomDataList';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function CustomSelect({ name, options, label, width, multiple, placeholder, ValidIcon, InvalidIcon, expandIconType, showValidation, ...attributes }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
name: any;
|
|
4
|
+
options: any;
|
|
5
|
+
label?: string | undefined;
|
|
6
|
+
width?: number | undefined;
|
|
7
|
+
multiple?: boolean | undefined;
|
|
8
|
+
placeholder?: string | undefined;
|
|
9
|
+
ValidIcon?: import('react-feather').Icon | undefined;
|
|
10
|
+
InvalidIcon?: import('react-feather').Icon | undefined;
|
|
11
|
+
expandIconType?: string | undefined;
|
|
12
|
+
showValidation?: boolean | undefined;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default CustomSelect;
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { jsxs as b, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import F, { forwardRef as le, useState as y, useRef as E } from "react";
|
|
3
|
+
import { s as a, C as oe } from "../../ChoicesItem-CGIr6Qga.mjs";
|
|
4
|
+
import { publish as X } from "../../utils/events.js";
|
|
5
|
+
import { classes as f } from "../../utils/helpers.js";
|
|
6
|
+
import { s as v, C as ie, A as ne } from "../../Form.module-DbpB9u1l.mjs";
|
|
7
|
+
import { X as ae } from "../../x-D8_C2o-U.mjs";
|
|
8
|
+
import { T as ue } from "../../triangle-D0AHL9lB.mjs";
|
|
9
|
+
import { P as j } from "../../index-CZzwT3Oj.mjs";
|
|
10
|
+
function I() {
|
|
11
|
+
return I = Object.assign || function(t) {
|
|
12
|
+
for (var u = 1; u < arguments.length; u++) {
|
|
13
|
+
var l = arguments[u];
|
|
14
|
+
for (var o in l)
|
|
15
|
+
Object.prototype.hasOwnProperty.call(l, o) && (t[o] = l[o]);
|
|
16
|
+
}
|
|
17
|
+
return t;
|
|
18
|
+
}, I.apply(this, arguments);
|
|
19
|
+
}
|
|
20
|
+
function de(t, u) {
|
|
21
|
+
if (t == null) return {};
|
|
22
|
+
var l = he(t, u), o, c;
|
|
23
|
+
if (Object.getOwnPropertySymbols) {
|
|
24
|
+
var i = Object.getOwnPropertySymbols(t);
|
|
25
|
+
for (c = 0; c < i.length; c++)
|
|
26
|
+
o = i[c], !(u.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(t, o) && (l[o] = t[o]);
|
|
27
|
+
}
|
|
28
|
+
return l;
|
|
29
|
+
}
|
|
30
|
+
function he(t, u) {
|
|
31
|
+
if (t == null) return {};
|
|
32
|
+
var l = {}, o = Object.keys(t), c, i;
|
|
33
|
+
for (i = 0; i < o.length; i++)
|
|
34
|
+
c = o[i], !(u.indexOf(c) >= 0) && (l[c] = t[c]);
|
|
35
|
+
return l;
|
|
36
|
+
}
|
|
37
|
+
var R = le(function(t, u) {
|
|
38
|
+
var l = t.color, o = l === void 0 ? "currentColor" : l, c = t.size, i = c === void 0 ? 24 : c, P = de(t, ["color", "size"]);
|
|
39
|
+
return /* @__PURE__ */ F.createElement("svg", I({
|
|
40
|
+
ref: u,
|
|
41
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
42
|
+
width: i,
|
|
43
|
+
height: i,
|
|
44
|
+
viewBox: "0 0 24 24",
|
|
45
|
+
fill: "none",
|
|
46
|
+
stroke: o,
|
|
47
|
+
strokeWidth: "2",
|
|
48
|
+
strokeLinecap: "round",
|
|
49
|
+
strokeLinejoin: "round"
|
|
50
|
+
}, P), /* @__PURE__ */ F.createElement("polyline", {
|
|
51
|
+
points: "6 9 12 15 18 9"
|
|
52
|
+
}));
|
|
53
|
+
});
|
|
54
|
+
R.propTypes = {
|
|
55
|
+
color: j.string,
|
|
56
|
+
size: j.oneOfType([j.string, j.number])
|
|
57
|
+
};
|
|
58
|
+
R.displayName = "ChevronDown";
|
|
59
|
+
function Ce({
|
|
60
|
+
name: t,
|
|
61
|
+
options: u,
|
|
62
|
+
label: l = "",
|
|
63
|
+
width: o = 100,
|
|
64
|
+
multiple: c = !1,
|
|
65
|
+
placeholder: i = "",
|
|
66
|
+
ValidIcon: P = ie,
|
|
67
|
+
InvalidIcon: G = ne,
|
|
68
|
+
expandIconType: L = "default",
|
|
69
|
+
// default, chevron
|
|
70
|
+
showValidation: x = !0,
|
|
71
|
+
...J
|
|
72
|
+
}) {
|
|
73
|
+
var H, U, B;
|
|
74
|
+
const [Q, Y] = y(`${v["form-field__input"]}`), w = E(), T = E(), [V, q] = y(""), [D, Z] = y("clean"), [k, K] = y([]), [m, $] = y(u.map((e, d) => ({
|
|
75
|
+
...e,
|
|
76
|
+
id: e != null && e.id ? e == null ? void 0 : e.id : `${t}-${d + 1}`,
|
|
77
|
+
status: "active"
|
|
78
|
+
}))), [A, ee] = y(null), [p, M] = y("hidden"), n = E(-1), te = `input-width--${o}`, z = (e, d, h = "selected") => {
|
|
79
|
+
if (!c && h === "selected" || h === "highlighted") {
|
|
80
|
+
for (const s of e)
|
|
81
|
+
if (s.status === h) {
|
|
82
|
+
s.status = "active";
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
for (const s of e)
|
|
87
|
+
if (s.id === d && (c && s.status !== "selected" && h === "selected" && K([...k, s]), s.status !== "selected" && (s.status = h), h === "selected")) {
|
|
88
|
+
ee(s);
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
return e;
|
|
92
|
+
}, se = () => {
|
|
93
|
+
setTimeout(() => {
|
|
94
|
+
w.current.checkValidity() ? q("") : q(w.current.validationMessage);
|
|
95
|
+
}, 100);
|
|
96
|
+
}, C = (e) => {
|
|
97
|
+
e == null || e.stopPropagation(), Z("touched"), Y(`${v["form-field__input"]} ${v["input--touched"]}`), p === "hidden" ? M("visible") : (M("hidden"), se());
|
|
98
|
+
}, ce = (e) => {
|
|
99
|
+
const h = k.filter((g) => g.id !== e);
|
|
100
|
+
K([...h]);
|
|
101
|
+
let s = m;
|
|
102
|
+
const _ = (g, N) => {
|
|
103
|
+
for (const O of g) {
|
|
104
|
+
if (O.id === N) {
|
|
105
|
+
O.status = "active";
|
|
106
|
+
break;
|
|
107
|
+
}
|
|
108
|
+
O.subcategories.length && _(O.subcategories, N);
|
|
109
|
+
}
|
|
110
|
+
return g;
|
|
111
|
+
}, S = _(s, e);
|
|
112
|
+
$([...S]), document.querySelector(`select[name="${t}"] > option[value="${e}"]`).selected = !1;
|
|
113
|
+
}, re = (e) => {
|
|
114
|
+
const d = structuredClone(m), h = z(d, e);
|
|
115
|
+
$([...h]), C(), n.current = -1;
|
|
116
|
+
const s = m.find((_) => _.id === e);
|
|
117
|
+
document.querySelector(`select[name="${t}"] > option[value="${s.value}"]`).selected = !0, X("scripps:customselect:selected", { value: s.value });
|
|
118
|
+
}, W = (e) => {
|
|
119
|
+
if (e.key === "Tab" || (e.key === "ArrowDown" || e.key === "ArrowUp") && p !== "visible") return !0;
|
|
120
|
+
e.stopPropagation(), e.preventDefault();
|
|
121
|
+
const d = e.key, h = m, s = (_) => {
|
|
122
|
+
const S = z(h, m[_].id, "highlighted");
|
|
123
|
+
$([...S]);
|
|
124
|
+
};
|
|
125
|
+
if (d === "ArrowDown" && p === "visible")
|
|
126
|
+
n.current < m.length - 1 ? (s(n.current + 1), n.current++) : (s(0), n.current = 0);
|
|
127
|
+
else if (d === "ArrowUp" && p === "visible")
|
|
128
|
+
n.current > 0 ? (s(n.current - 1), n.current--) : (s(m.length - 1), n.current = m.length - 1);
|
|
129
|
+
else if (d === "Enter")
|
|
130
|
+
if (p === "visible" && n.current !== -1) {
|
|
131
|
+
const _ = m[n.current].id, S = z(h, _);
|
|
132
|
+
$([...S]), C(), n.current = -1;
|
|
133
|
+
const g = m.find((N) => N.id === _);
|
|
134
|
+
document.querySelector(`select[name="${t}"] > option[value="${g.value}"]`).selected = !0, X("scripps:customselect:selected", { value: g.value });
|
|
135
|
+
} else
|
|
136
|
+
C();
|
|
137
|
+
else if (d === "Escape" && p === "visible")
|
|
138
|
+
C(), n.current = -1;
|
|
139
|
+
else
|
|
140
|
+
return !1;
|
|
141
|
+
30 * n.current > 160 ? T.current.scrollTo(0, 30 * n.current) : T.current.scrollTo(0, 0);
|
|
142
|
+
};
|
|
143
|
+
return /* @__PURE__ */ b("label", { htmlFor: t, className: f([
|
|
144
|
+
v["form-field"],
|
|
145
|
+
v[te]
|
|
146
|
+
]), children: [
|
|
147
|
+
x && /* @__PURE__ */ b(
|
|
148
|
+
"i",
|
|
149
|
+
{
|
|
150
|
+
className: [
|
|
151
|
+
v["form-field__icon"],
|
|
152
|
+
(H = w.current) != null && H.validity.valid ? "" : v["form-field__icon--invalid"]
|
|
153
|
+
].join(" "),
|
|
154
|
+
style: l === "" ? { top: "0.4em" } : {},
|
|
155
|
+
children: [
|
|
156
|
+
((U = w.current) == null ? void 0 : U.checkValidity()) && D === "touched" && /* @__PURE__ */ r(P, {}),
|
|
157
|
+
!((B = w.current) != null && B.checkValidity()) && D === "touched" && /* @__PURE__ */ r(G, {})
|
|
158
|
+
]
|
|
159
|
+
}
|
|
160
|
+
),
|
|
161
|
+
l !== "" && /* @__PURE__ */ r("span", { className: v["form-field__label"], children: l }),
|
|
162
|
+
/* @__PURE__ */ b(
|
|
163
|
+
"select",
|
|
164
|
+
{
|
|
165
|
+
name: t,
|
|
166
|
+
className: f([
|
|
167
|
+
a["custom-select__select"],
|
|
168
|
+
D === "touched" && x ? a["custom-select__select--touched"] : ""
|
|
169
|
+
]),
|
|
170
|
+
multiple: c,
|
|
171
|
+
ref: w,
|
|
172
|
+
tabIndex: "-1",
|
|
173
|
+
...J,
|
|
174
|
+
children: [
|
|
175
|
+
/* @__PURE__ */ r("option", { value: "" }),
|
|
176
|
+
u.length && u.map((e) => /* @__PURE__ */ r("option", { value: e.value, selected: e.selected, children: e.label }, `option-${e.value}`))
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
),
|
|
180
|
+
/* @__PURE__ */ b("div", { className: f([Q, a["custom-select"], "custom-select"]), onKeyDown: W, tabIndex: "0", children: [
|
|
181
|
+
c && /* @__PURE__ */ b("ul", { className: f([a["custom-select__selections"], "custom-select__selections"]), onClick: C, children: [
|
|
182
|
+
k.length !== 0 && k.map((e) => /* @__PURE__ */ b("li", { className: f([a["custom-select__selected"], "custom-select__selected"]), children: [
|
|
183
|
+
e.label,
|
|
184
|
+
/* @__PURE__ */ r(
|
|
185
|
+
"button",
|
|
186
|
+
{
|
|
187
|
+
title: "remove",
|
|
188
|
+
type: "button",
|
|
189
|
+
className: a["custom-select__remove"],
|
|
190
|
+
onClick: (d) => {
|
|
191
|
+
d.stopPropagation(), ce(e.id);
|
|
192
|
+
},
|
|
193
|
+
children: /* @__PURE__ */ r(ae, { width: 16, height: 16 })
|
|
194
|
+
}
|
|
195
|
+
)
|
|
196
|
+
] })),
|
|
197
|
+
k.length === 0 && i !== "" && /* @__PURE__ */ r("span", { className: f([a["custom-select__placeholder"], "custom-select__placeholder"]), children: i })
|
|
198
|
+
] }),
|
|
199
|
+
!c && /* @__PURE__ */ b("div", { className: `${a["custom-select__selection"]}`, onClick: C, children: [
|
|
200
|
+
A && A.label,
|
|
201
|
+
!A && i !== "" && /* @__PURE__ */ r("span", { className: f([a["custom-select__placeholder"], "custom-select__placeholder"]), children: i })
|
|
202
|
+
] }),
|
|
203
|
+
/* @__PURE__ */ r("div", { className: f([
|
|
204
|
+
a["custom-select__choices-wrapper"],
|
|
205
|
+
"custom-select__choices-wrapper",
|
|
206
|
+
p === "visible" ? "" : a["custom-select__choices-wrapper--hidden"]
|
|
207
|
+
]), children: /* @__PURE__ */ r("div", { className: f([a["custom-select__choices"], "custom-select__choices"]), ref: T, onKeyDown: W, children: /* @__PURE__ */ r("ul", { children: m.length !== 0 && m.map((e) => /* @__PURE__ */ r(oe, { item: e, handleOnClick: re }, `choice-${e.id}`)) }) }) }),
|
|
208
|
+
L === "default" && /* @__PURE__ */ r("i", { className: a["custom-select__icon"], children: /* @__PURE__ */ r(ue, {}) }),
|
|
209
|
+
L === "chevron" && /* @__PURE__ */ r("i", { className: f([a["custom-select__icon"], a["custom-select__icon--chevron"], "custom-select__icon--chevron"]), children: /* @__PURE__ */ r(R, {}) })
|
|
210
|
+
] }),
|
|
211
|
+
V !== "" && x && /* @__PURE__ */ r("div", { className: f([v["form-field__error-message"], "form-field__error-message"]), children: V })
|
|
212
|
+
] });
|
|
213
|
+
}
|
|
214
|
+
export {
|
|
215
|
+
Ce as CustomSelect,
|
|
216
|
+
Ce as default
|
|
217
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CustomSelect, CustomSelect as default } from './CustomSelect';
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { jsxs as d, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import D, { useState as _, useRef as h, useEffect as f } from "react";
|
|
3
|
+
import { f as y } from "../../format-DF9p-6BI.mjs";
|
|
4
|
+
import { classes as W } from "../../utils/helpers.js";
|
|
5
|
+
import { C as L } from "../../chevron-left-DmvQntvu.mjs";
|
|
6
|
+
import { C as E } from "../../chevron-right-CaAz6ISN.mjs";
|
|
7
|
+
import '../../assets/DateNavigation.css';const e = {
|
|
8
|
+
"date-navigation__list": "_date-navigation__list_18gb9_5",
|
|
9
|
+
"date-navigation__control": "_date-navigation__control_18gb9_42",
|
|
10
|
+
"date-navigation__control--previous": "_date-navigation__control--previous_18gb9_69",
|
|
11
|
+
"date-navigation__control--next": "_date-navigation__control--next_18gb9_74",
|
|
12
|
+
"date-navigation__day": "_date-navigation__day_18gb9_94",
|
|
13
|
+
"date-navigation__month-day-break": "_date-navigation__month-day-break_18gb9_100"
|
|
14
|
+
};
|
|
15
|
+
function $({ weeks: a = [[], []], handleDateChanged: s = () => !0 }) {
|
|
16
|
+
const [i, b] = _(0), [p, k] = _(a[0]), [x, u] = _(a[0][0]), [N, v] = _("entering"), o = h(null), r = h(0), g = (t) => {
|
|
17
|
+
b(t), v(() => t ? "exiting" : "entering");
|
|
18
|
+
}, C = (t) => {
|
|
19
|
+
u(t), s(t.date);
|
|
20
|
+
}, S = (t) => {
|
|
21
|
+
(t.key === "ArrowRight" || t.key === "ArrowDown") && r.current < 6 && ++r.current, (t.key === "ArrowLeft" || t.key === "ArrowUp") && r.current > 0 && --r.current, t.currentTarget.children[r.current].children[0].focus();
|
|
22
|
+
}, l = D.useCallback(() => {
|
|
23
|
+
o.current.addEventListener("animationstart", () => {
|
|
24
|
+
o.current.addEventListener("animationend", l, { once: !0 });
|
|
25
|
+
}), v("idle");
|
|
26
|
+
}, []);
|
|
27
|
+
return f(() => {
|
|
28
|
+
o.current !== null && (o.current.removeEventListener("animationend", l, { once: !0 }), o.current.addEventListener("animationend", l, { once: !0 }));
|
|
29
|
+
}, [l]), f(() => {
|
|
30
|
+
k(a[i]), u((t) => {
|
|
31
|
+
var m;
|
|
32
|
+
const c = a[i ? 0 : 1].findIndex((j) => y(j.date, "yyyy-MM-dd") === y(t.date, "yyyy-MM-dd"));
|
|
33
|
+
return c === -1 ? t : (s((m = a[i][c]) == null ? void 0 : m.date), r.current = c, a[i][c]);
|
|
34
|
+
});
|
|
35
|
+
}, [i, a, s]), /* @__PURE__ */ d("date-navigation", { "data-state": N, children: [
|
|
36
|
+
/* @__PURE__ */ d("date-navigation-controls", { children: [
|
|
37
|
+
/* @__PURE__ */ d(
|
|
38
|
+
"button",
|
|
39
|
+
{
|
|
40
|
+
type: "button",
|
|
41
|
+
className: [
|
|
42
|
+
e["date-navigation__control"],
|
|
43
|
+
e["date-navigation__control--previous"],
|
|
44
|
+
"date-navigation__control",
|
|
45
|
+
"date-navigation__control--previous"
|
|
46
|
+
].join(" "),
|
|
47
|
+
onClick: () => {
|
|
48
|
+
g(0);
|
|
49
|
+
},
|
|
50
|
+
disabled: i === 0 ? !0 : null,
|
|
51
|
+
children: [
|
|
52
|
+
/* @__PURE__ */ n("i", { "aria-hidden": "true", children: /* @__PURE__ */ n(L, { width: 48, height: 48 }) }),
|
|
53
|
+
/* @__PURE__ */ n("span", { className: "sr-only", children: "Current Week" })
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
),
|
|
57
|
+
/* @__PURE__ */ d(
|
|
58
|
+
"button",
|
|
59
|
+
{
|
|
60
|
+
type: "button",
|
|
61
|
+
className: [
|
|
62
|
+
e["date-navigation__control"],
|
|
63
|
+
e["date-navigation__control--next"],
|
|
64
|
+
"date-navigation__control",
|
|
65
|
+
"date-navigation__control--next"
|
|
66
|
+
].join(" "),
|
|
67
|
+
onClick: () => {
|
|
68
|
+
g(1);
|
|
69
|
+
},
|
|
70
|
+
disabled: i === 1 ? !0 : null,
|
|
71
|
+
children: [
|
|
72
|
+
/* @__PURE__ */ n("i", { "aria-hidden": "true", children: /* @__PURE__ */ n(E, { width: 48, height: 48 }) }),
|
|
73
|
+
/* @__PURE__ */ n("span", { className: "sr-only", children: "Next Week" })
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
] }),
|
|
78
|
+
/* @__PURE__ */ n("date-navigation-list", { children: /* @__PURE__ */ n(
|
|
79
|
+
"ul",
|
|
80
|
+
{
|
|
81
|
+
className: [e["date-navigation__list"], "date-navigation__list"].join(" "),
|
|
82
|
+
ref: o,
|
|
83
|
+
role: "tablist",
|
|
84
|
+
"aria-label": "Date Tabs",
|
|
85
|
+
onKeyDown: S,
|
|
86
|
+
children: p.map((t) => /* @__PURE__ */ n("li", { className: [e["date-navigation__item"], "date-navigation__item"].join(" "), role: "presentation", children: /* @__PURE__ */ d(
|
|
87
|
+
"button",
|
|
88
|
+
{
|
|
89
|
+
type: "button",
|
|
90
|
+
className: [e["date-navigation__day"], "date-navigation__day"].join(" "),
|
|
91
|
+
"aria-selected": x.fullDateStr === t.fullDateStr,
|
|
92
|
+
onClick: () => {
|
|
93
|
+
C(t);
|
|
94
|
+
},
|
|
95
|
+
role: "tab",
|
|
96
|
+
"aria-controls": `${t.fullDateStr}`,
|
|
97
|
+
children: [
|
|
98
|
+
/* @__PURE__ */ n("div", { className: [e["date-navigation__weekday"], "date-navigation__weekday"].join(" "), children: t.dayStr }),
|
|
99
|
+
/* @__PURE__ */ d("div", { className: [e["date-navigation__date"], "date-navigation__date"].join(" "), children: [
|
|
100
|
+
t.monthStr,
|
|
101
|
+
" ",
|
|
102
|
+
/* @__PURE__ */ n("br", { className: W([e["date-navigation__month-day-break"], "date-navigation__month-day-break"]) }),
|
|
103
|
+
t.dateStr
|
|
104
|
+
] })
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
) }, `schedule-nav-${t.fullDateStr}`))
|
|
108
|
+
}
|
|
109
|
+
) })
|
|
110
|
+
] });
|
|
111
|
+
}
|
|
112
|
+
export {
|
|
113
|
+
$ as DateNavigation,
|
|
114
|
+
$ as default
|
|
115
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DateNavigation, DateNavigation as default } from './DateNavigation';
|