@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,42 +1,42 @@
|
|
|
1
|
-
import { jsxs as p, jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as p, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import z, { forwardRef as ne, useState as y, useRef as T, useCallback as ue, useEffect as de } from "react";
|
|
3
3
|
import { classes as w } from "../../utils/helpers.js";
|
|
4
|
-
import { CreateChoiceList as
|
|
5
|
-
import { s as
|
|
6
|
-
import { X as
|
|
7
|
-
import { P as
|
|
8
|
-
import { T as
|
|
9
|
-
import '../../assets/CustomDataList.css';function
|
|
10
|
-
return
|
|
11
|
-
for (var
|
|
12
|
-
var d = arguments[
|
|
4
|
+
import { CreateChoiceList as _e } from "../CreateChoiceList/CreateChoiceList.js";
|
|
5
|
+
import { s as g, C as he, A as fe } from "../../Form.module-Cd8qH2rj.mjs";
|
|
6
|
+
import { X as me } from "../../x-C-QzJ-qD.mjs";
|
|
7
|
+
import { P as L } from "../../index-DC2JJV3a.mjs";
|
|
8
|
+
import { T as pe } from "../../triangle-PcCcGXjr.mjs";
|
|
9
|
+
import '../../assets/CustomDataList.css';function M() {
|
|
10
|
+
return M = Object.assign || function(i) {
|
|
11
|
+
for (var a = 1; a < arguments.length; a++) {
|
|
12
|
+
var d = arguments[a];
|
|
13
13
|
for (var o in d)
|
|
14
|
-
Object.prototype.hasOwnProperty.call(d, o) && (
|
|
14
|
+
Object.prototype.hasOwnProperty.call(d, o) && (i[o] = d[o]);
|
|
15
15
|
}
|
|
16
|
-
return
|
|
17
|
-
},
|
|
16
|
+
return i;
|
|
17
|
+
}, M.apply(this, arguments);
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
if (
|
|
21
|
-
var d =
|
|
19
|
+
function ge(i, a) {
|
|
20
|
+
if (i == null) return {};
|
|
21
|
+
var d = ve(i, a), o, h;
|
|
22
22
|
if (Object.getOwnPropertySymbols) {
|
|
23
|
-
var n = Object.getOwnPropertySymbols(
|
|
24
|
-
for (
|
|
25
|
-
o = n[
|
|
23
|
+
var n = Object.getOwnPropertySymbols(i);
|
|
24
|
+
for (h = 0; h < n.length; h++)
|
|
25
|
+
o = n[h], !(a.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(i, o) && (d[o] = i[o]);
|
|
26
26
|
}
|
|
27
27
|
return d;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
if (
|
|
31
|
-
var d = {}, o = Object.keys(
|
|
29
|
+
function ve(i, a) {
|
|
30
|
+
if (i == null) return {};
|
|
31
|
+
var d = {}, o = Object.keys(i), h, n;
|
|
32
32
|
for (n = 0; n < o.length; n++)
|
|
33
|
-
|
|
33
|
+
h = o[n], !(a.indexOf(h) >= 0) && (d[h] = i[h]);
|
|
34
34
|
return d;
|
|
35
35
|
}
|
|
36
|
-
var
|
|
37
|
-
var d =
|
|
38
|
-
return /* @__PURE__ */
|
|
39
|
-
ref:
|
|
36
|
+
var V = ne(function(i, a) {
|
|
37
|
+
var d = i.color, o = d === void 0 ? "currentColor" : d, h = i.size, n = h === void 0 ? 24 : h, j = ge(i, ["color", "size"]);
|
|
38
|
+
return /* @__PURE__ */ z.createElement("svg", M({
|
|
39
|
+
ref: a,
|
|
40
40
|
xmlns: "http://www.w3.org/2000/svg",
|
|
41
41
|
width: n,
|
|
42
42
|
height: n,
|
|
@@ -46,237 +46,263 @@ var z = le(function(c, l) {
|
|
|
46
46
|
strokeWidth: "2",
|
|
47
47
|
strokeLinecap: "round",
|
|
48
48
|
strokeLinejoin: "round"
|
|
49
|
-
},
|
|
49
|
+
}, j), /* @__PURE__ */ z.createElement("circle", {
|
|
50
50
|
cx: "11",
|
|
51
51
|
cy: "11",
|
|
52
52
|
r: "8"
|
|
53
|
-
}), /* @__PURE__ */
|
|
53
|
+
}), /* @__PURE__ */ z.createElement("line", {
|
|
54
54
|
x1: "21",
|
|
55
55
|
y1: "21",
|
|
56
56
|
x2: "16.65",
|
|
57
57
|
y2: "16.65"
|
|
58
58
|
}));
|
|
59
59
|
});
|
|
60
|
-
|
|
61
|
-
color:
|
|
62
|
-
size:
|
|
60
|
+
V.propTypes = {
|
|
61
|
+
color: L.string,
|
|
62
|
+
size: L.oneOfType([L.string, L.number])
|
|
63
63
|
};
|
|
64
|
-
|
|
64
|
+
V.displayName = "Search";
|
|
65
65
|
const u = {
|
|
66
|
-
"custom-data-list": "_custom-data-
|
|
67
|
-
"custom-data-list__select": "_custom-data-
|
|
68
|
-
"custom-data-list__selection": "_custom-data-
|
|
69
|
-
"custom-data-list__selections": "_custom-data-
|
|
70
|
-
"custom-data-list__selected": "_custom-data-
|
|
71
|
-
"custom-data-list__remove": "_custom-data-
|
|
72
|
-
"custom-data-list__choices-wrapper": "_custom-data-list__choices-
|
|
73
|
-
"custom-data-list__choices": "_custom-data-
|
|
74
|
-
"custom-data-list__choices-wrapper--hidden": "_custom-data-list__choices-wrapper--
|
|
75
|
-
"custom-data-list__icon": "_custom-data-
|
|
76
|
-
"custom-data-list__filter-wrap": "_custom-data-list__filter-
|
|
77
|
-
"custom-data-list__filter": "_custom-data-
|
|
78
|
-
"custom-data-list__filter-icon": "_custom-data-list__filter-
|
|
79
|
-
"custom-data-list__select--touched": "_custom-data-list__select--
|
|
66
|
+
"custom-data-list": "_custom-data-list_1ch50_1",
|
|
67
|
+
"custom-data-list__select": "_custom-data-list__select_1ch50_9",
|
|
68
|
+
"custom-data-list__selection": "_custom-data-list__selection_1ch50_17",
|
|
69
|
+
"custom-data-list__selections": "_custom-data-list__selections_1ch50_18",
|
|
70
|
+
"custom-data-list__selected": "_custom-data-list__selected_1ch50_38",
|
|
71
|
+
"custom-data-list__remove": "_custom-data-list__remove_1ch50_49",
|
|
72
|
+
"custom-data-list__choices-wrapper": "_custom-data-list__choices-wrapper_1ch50_67",
|
|
73
|
+
"custom-data-list__choices": "_custom-data-list__choices_1ch50_67",
|
|
74
|
+
"custom-data-list__choices-wrapper--hidden": "_custom-data-list__choices-wrapper--hidden_1ch50_114",
|
|
75
|
+
"custom-data-list__icon": "_custom-data-list__icon_1ch50_119",
|
|
76
|
+
"custom-data-list__filter-wrap": "_custom-data-list__filter-wrap_1ch50_133",
|
|
77
|
+
"custom-data-list__filter": "_custom-data-list__filter_1ch50_133",
|
|
78
|
+
"custom-data-list__filter-icon": "_custom-data-list__filter-icon_1ch50_150",
|
|
79
|
+
"custom-data-list__select--touched": "_custom-data-list__select--touched_1ch50_174"
|
|
80
80
|
};
|
|
81
|
-
function
|
|
82
|
-
name:
|
|
83
|
-
options:
|
|
81
|
+
function $e({
|
|
82
|
+
name: i,
|
|
83
|
+
options: a,
|
|
84
84
|
label: d = "",
|
|
85
85
|
placeholder: o = "",
|
|
86
|
-
width:
|
|
86
|
+
width: h = 100,
|
|
87
87
|
multiple: n = !1,
|
|
88
|
-
showValidation:
|
|
89
|
-
...
|
|
88
|
+
showValidation: j = !0,
|
|
89
|
+
...Y
|
|
90
90
|
}) {
|
|
91
91
|
var X, G, J;
|
|
92
|
-
const [
|
|
93
|
-
let
|
|
94
|
-
const
|
|
95
|
-
for (const r of
|
|
96
|
-
r.status !== "filtered" &&
|
|
92
|
+
const [Z, ee] = y(`${g["form-field__input"]}`), F = T(null), v = T(null), O = T(null), [W, q] = y(""), [A, te] = y("clean"), [$, K] = y([]), [C, k] = y([]), [x, H] = y([]), [D, se] = y(null), [N, U] = y("hidden"), f = T(-1), ce = `input-width--${h}`, ie = ["Enter", "Escape", "ArrowDown", "ArrowUp"], R = ue((e) => {
|
|
93
|
+
let c = [];
|
|
94
|
+
const s = (t) => {
|
|
95
|
+
for (const r of t)
|
|
96
|
+
r.status !== "filtered" && c.push(r), r.subcategories.length && s(r.subcategories);
|
|
97
97
|
};
|
|
98
|
-
return
|
|
99
|
-
},
|
|
100
|
-
if (!n &&
|
|
101
|
-
for (const
|
|
102
|
-
if (
|
|
103
|
-
|
|
98
|
+
return s(e), c;
|
|
99
|
+
}, []), E = (e, c, s = "selected") => {
|
|
100
|
+
if (!n && s === "selected" || s === "highlighted") {
|
|
101
|
+
for (const t of e)
|
|
102
|
+
if (t.status === s) {
|
|
103
|
+
t.status = "active";
|
|
104
104
|
break;
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
for (const
|
|
108
|
-
if (
|
|
109
|
-
|
|
107
|
+
for (const t of e) {
|
|
108
|
+
if (t.id === c && (n && t.status !== "selected" && s === "selected" && K([...$, t]), t.status !== "selected" && (t.status = s), s === "selected")) {
|
|
109
|
+
se(t);
|
|
110
110
|
break;
|
|
111
111
|
}
|
|
112
|
-
|
|
112
|
+
t.subcategories.length && E(t.subcategories, c, s);
|
|
113
113
|
}
|
|
114
114
|
return e;
|
|
115
115
|
}, B = (e) => {
|
|
116
|
-
let
|
|
117
|
-
const
|
|
118
|
-
return
|
|
119
|
-
},
|
|
116
|
+
let c = [];
|
|
117
|
+
const s = (t) => (t.parent_id ? (c.unshift(t.label), s(a.find((r) => r.id === t.parent_id))) : c.unshift(t.label), c);
|
|
118
|
+
return s(e).join(":");
|
|
119
|
+
}, oe = () => {
|
|
120
120
|
setTimeout(() => {
|
|
121
|
-
|
|
121
|
+
v.current && v.current.checkValidity() ? q("") : v.current && q(v.current.validationMessage);
|
|
122
122
|
}, 100);
|
|
123
123
|
}, S = (e) => {
|
|
124
|
-
e == null || e.stopPropagation(),
|
|
125
|
-
},
|
|
126
|
-
const
|
|
127
|
-
|
|
128
|
-
let
|
|
129
|
-
const r = (
|
|
130
|
-
for (const P of
|
|
131
|
-
if (P.id ===
|
|
124
|
+
e == null || e.stopPropagation(), te("touched"), ee(`${g["form-field__input"]} ${g["input--touched"]}`), N === "hidden" ? (U("visible"), F.current && F.current.focus()) : (U("hidden"), oe());
|
|
125
|
+
}, re = (e) => {
|
|
126
|
+
const s = $.filter((_) => _.id !== e);
|
|
127
|
+
K([...s]);
|
|
128
|
+
let t = C;
|
|
129
|
+
const r = (_, Q) => {
|
|
130
|
+
for (const P of _) {
|
|
131
|
+
if (P.id === Q) {
|
|
132
132
|
P.status = "active";
|
|
133
133
|
break;
|
|
134
134
|
}
|
|
135
|
-
P.subcategories.length && r(P.subcategories,
|
|
135
|
+
P.subcategories.length && r(P.subcategories, Q);
|
|
136
136
|
}
|
|
137
|
-
return
|
|
138
|
-
},
|
|
139
|
-
k([...
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
137
|
+
return _;
|
|
138
|
+
}, b = r(t, e);
|
|
139
|
+
k([...b]);
|
|
140
|
+
const m = document.querySelector(`select[name="${i}"] > option[value="${e}"]`);
|
|
141
|
+
m && (m.selected = !1);
|
|
142
|
+
}, le = (e) => {
|
|
143
|
+
if (e.stopPropagation(), "keyCode" in e && (e.keyCode === 40 || e.keyCode === 38))
|
|
144
|
+
I(e);
|
|
143
145
|
else {
|
|
144
146
|
f.current = -1;
|
|
145
|
-
const
|
|
146
|
-
for (const
|
|
147
|
-
!
|
|
147
|
+
const c = e.currentTarget.value, s = C, t = (m) => {
|
|
148
|
+
for (const _ of m)
|
|
149
|
+
!_.label.toLowerCase().includes(c.toLowerCase()) && _.status !== "selected" && (_.status = "filtered"), _.subcategories.length && t(_.subcategories);
|
|
148
150
|
return m;
|
|
149
151
|
}, r = (m) => {
|
|
150
|
-
for (const
|
|
151
|
-
|
|
152
|
+
for (const _ of m)
|
|
153
|
+
_.status === "filtered" && (_.status = "active"), _.subcategories.length && r(_.subcategories);
|
|
152
154
|
return m;
|
|
153
|
-
},
|
|
154
|
-
k([...
|
|
155
|
+
}, b = c === "" ? r(s) : t(s);
|
|
156
|
+
k([...b]), H([...R(b)]);
|
|
155
157
|
}
|
|
156
158
|
}, ae = (e) => {
|
|
157
|
-
const
|
|
158
|
-
k([...
|
|
159
|
-
|
|
159
|
+
const c = structuredClone(C), s = E(c, e);
|
|
160
|
+
k([...s]), S(null);
|
|
161
|
+
const t = document.querySelector(`select[name="${i}"] > option[value="${e}"]`);
|
|
162
|
+
t && (t.selected = !0);
|
|
163
|
+
}, I = (e) => {
|
|
160
164
|
e.stopPropagation(), e.preventDefault();
|
|
161
|
-
const
|
|
162
|
-
const
|
|
165
|
+
const c = e.key, s = C, t = (r) => {
|
|
166
|
+
const b = x[r].id, m = E(s, b, "highlighted");
|
|
163
167
|
k([...m]);
|
|
164
168
|
};
|
|
165
|
-
if (
|
|
166
|
-
f.current <
|
|
167
|
-
else if (
|
|
168
|
-
f.current > 0 ? (
|
|
169
|
-
else if (
|
|
170
|
-
if (N === "visible" && f !== -1) {
|
|
171
|
-
const r =
|
|
172
|
-
k([...
|
|
169
|
+
if (c === "ArrowDown" && N === "visible")
|
|
170
|
+
f.current < x.length - 1 ? (t(f.current + 1), f.current++) : (t(0), f.current = 0);
|
|
171
|
+
else if (c === "ArrowUp" && N === "visible")
|
|
172
|
+
f.current > 0 ? (t(f.current - 1), f.current--) : (t(x.length - 1), f.current = x.length - 1);
|
|
173
|
+
else if (c === "Enter")
|
|
174
|
+
if (N === "visible" && f.current !== -1) {
|
|
175
|
+
const r = x[f.current].id, b = E(s, r);
|
|
176
|
+
k([...b]), S(null);
|
|
177
|
+
const m = document.querySelector(`select[name="${i}"] > option[value="${r}"]`);
|
|
178
|
+
m && (m.selected = !0);
|
|
173
179
|
} else
|
|
174
|
-
S();
|
|
175
|
-
else if (
|
|
176
|
-
S(), f.current = -1;
|
|
180
|
+
S(e);
|
|
181
|
+
else if (c === "Escape" && N === "visible")
|
|
182
|
+
S(e), f.current = -1;
|
|
177
183
|
else
|
|
178
|
-
return
|
|
179
|
-
30 * f.current > 160 ?
|
|
184
|
+
return;
|
|
185
|
+
30 * f.current > 160 && O.current ? O.current.scrollTo(0, 30 * f.current) : O.current && O.current.scrollTo(0, 0);
|
|
180
186
|
};
|
|
181
|
-
return
|
|
182
|
-
let e =
|
|
183
|
-
...
|
|
187
|
+
return de(() => {
|
|
188
|
+
let e = a.map((s) => ({
|
|
189
|
+
...s,
|
|
184
190
|
subcategories: [],
|
|
185
191
|
status: "active"
|
|
186
192
|
}));
|
|
187
|
-
for (const
|
|
188
|
-
if (Number.parseInt(
|
|
189
|
-
let
|
|
190
|
-
|
|
193
|
+
for (const s of e)
|
|
194
|
+
if (Number.parseInt(s.parent_id, 10)) {
|
|
195
|
+
let t = e.find((r) => r.id === s.parent_id);
|
|
196
|
+
t && t.subcategories.push(s);
|
|
191
197
|
}
|
|
192
|
-
const
|
|
193
|
-
|
|
194
|
-
}, [
|
|
195
|
-
|
|
198
|
+
const c = e.filter((s) => s.parent_id === null);
|
|
199
|
+
H(R(c)), k(c);
|
|
200
|
+
}, [a, R]), /* @__PURE__ */ p("label", { className: w([g["form-field"], g[ce]]), htmlFor: i, children: [
|
|
201
|
+
j && /* @__PURE__ */ p(
|
|
196
202
|
"i",
|
|
197
203
|
{
|
|
198
204
|
className: w([
|
|
199
|
-
|
|
200
|
-
(X =
|
|
205
|
+
g["form-field__icon"],
|
|
206
|
+
(X = v.current) != null && X.validity.valid ? "" : g["form-field__icon--invalid"]
|
|
201
207
|
]),
|
|
202
208
|
style: d === "" ? { top: "0.4em" } : {},
|
|
203
209
|
children: [
|
|
204
|
-
((G =
|
|
205
|
-
!((J =
|
|
210
|
+
((G = v.current) == null ? void 0 : G.checkValidity()) && A === "touched" && /* @__PURE__ */ l(he, {}),
|
|
211
|
+
!((J = v.current) != null && J.checkValidity()) && A === "touched" && /* @__PURE__ */ l(fe, {})
|
|
206
212
|
]
|
|
207
213
|
}
|
|
208
214
|
),
|
|
209
|
-
/* @__PURE__ */
|
|
215
|
+
/* @__PURE__ */ l("span", { className: g["form-field__label"], children: d }),
|
|
210
216
|
/* @__PURE__ */ p(
|
|
211
217
|
"select",
|
|
212
218
|
{
|
|
213
|
-
name: c,
|
|
214
219
|
className: w([
|
|
215
220
|
u["custom-data-list__select"],
|
|
216
|
-
|
|
221
|
+
A === "touched" ? u["custom-data-list__select--touched"] : ""
|
|
217
222
|
]),
|
|
218
223
|
multiple: n,
|
|
219
|
-
|
|
220
|
-
|
|
224
|
+
name: i,
|
|
225
|
+
ref: v,
|
|
226
|
+
...Y,
|
|
221
227
|
children: [
|
|
222
|
-
/* @__PURE__ */
|
|
223
|
-
|
|
228
|
+
/* @__PURE__ */ l("option", { value: "" }),
|
|
229
|
+
a.length && a.map((e) => /* @__PURE__ */ l(
|
|
230
|
+
"option",
|
|
231
|
+
{
|
|
232
|
+
selected: e.selected,
|
|
233
|
+
value: e.id,
|
|
234
|
+
children: e.label
|
|
235
|
+
},
|
|
236
|
+
`option-${e.id}`
|
|
237
|
+
))
|
|
224
238
|
]
|
|
225
239
|
}
|
|
226
240
|
),
|
|
227
|
-
/* @__PURE__ */ p("div", { className: w([
|
|
241
|
+
/* @__PURE__ */ p("div", { className: w([Z, u["custom-data-list"], "custom-data-list"]), children: [
|
|
228
242
|
n && /* @__PURE__ */ p("ul", { className: `${u["custom-data-list__selections"]}`, onClick: S, children: [
|
|
229
|
-
|
|
243
|
+
$.length !== 0 && $.map((e) => /* @__PURE__ */ p("li", { className: u["custom-data-list__selected"], children: [
|
|
230
244
|
B(e),
|
|
231
|
-
/* @__PURE__ */
|
|
245
|
+
/* @__PURE__ */ l(
|
|
232
246
|
"button",
|
|
233
247
|
{
|
|
248
|
+
className: u["custom-data-list__remove"],
|
|
234
249
|
title: "remove",
|
|
235
250
|
type: "button",
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
i.stopPropagation(), oe(e.id);
|
|
251
|
+
onClick: (c) => {
|
|
252
|
+
c.stopPropagation(), re(e.id);
|
|
239
253
|
},
|
|
240
|
-
children: /* @__PURE__ */
|
|
254
|
+
children: /* @__PURE__ */ l(me, { height: 16, width: 16 })
|
|
241
255
|
}
|
|
242
256
|
)
|
|
243
257
|
] }, `selection-${e.id}`)),
|
|
244
|
-
|
|
258
|
+
$.length === 0 && o !== "" && /* @__PURE__ */ l(
|
|
259
|
+
"li",
|
|
260
|
+
{
|
|
261
|
+
className: w([u["custom-data-list__placeholder"], "custom-data-list__placeholder"]),
|
|
262
|
+
children: o
|
|
263
|
+
}
|
|
264
|
+
)
|
|
245
265
|
] }),
|
|
246
266
|
!n && /* @__PURE__ */ p("div", { className: u["custom-data-list__selection"], onClick: S, children: [
|
|
247
|
-
|
|
248
|
-
!
|
|
267
|
+
D && B(D),
|
|
268
|
+
!D && o !== "" && /* @__PURE__ */ l("span", { className: w([u["custom-data-list__placeholder"], "custom-data-list__placeholder"]), children: o })
|
|
249
269
|
] }),
|
|
250
|
-
/* @__PURE__ */ p(
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
270
|
+
/* @__PURE__ */ p(
|
|
271
|
+
"div",
|
|
272
|
+
{
|
|
273
|
+
className: w([
|
|
274
|
+
u["custom-data-list__choices-wrapper"],
|
|
275
|
+
N === "visible" ? "" : u["custom-data-list__choices-wrapper--hidden"]
|
|
276
|
+
]),
|
|
277
|
+
children: [
|
|
278
|
+
/* @__PURE__ */ p("div", { className: u["custom-data-list__filter-wrap"], children: [
|
|
279
|
+
/* @__PURE__ */ l(
|
|
280
|
+
"input",
|
|
281
|
+
{
|
|
282
|
+
className: u["custom-data-list__filter"],
|
|
283
|
+
ref: F,
|
|
284
|
+
type: "text",
|
|
285
|
+
onChange: le,
|
|
286
|
+
onKeyDown: (e) => {
|
|
287
|
+
if (ie.includes(e.key))
|
|
288
|
+
I(e);
|
|
289
|
+
else
|
|
290
|
+
return !0;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
),
|
|
294
|
+
/* @__PURE__ */ l("i", { className: u["custom-data-list__filter-icon"], children: /* @__PURE__ */ l(V, { height: 14, width: 14 }) })
|
|
295
|
+
] }),
|
|
296
|
+
/* @__PURE__ */ l("div", { className: u["custom-data-list__choices"], ref: O, onKeyDown: I, children: C.length !== 0 && /* @__PURE__ */ l(_e, { handleOnClick: ae, list: C }) })
|
|
297
|
+
]
|
|
298
|
+
}
|
|
299
|
+
),
|
|
300
|
+
/* @__PURE__ */ l("i", { className: u["custom-data-list__icon"], children: /* @__PURE__ */ l(pe, {}) })
|
|
275
301
|
] }),
|
|
276
|
-
|
|
302
|
+
W !== "" && j && /* @__PURE__ */ l("div", { className: g["form-field__error-message"], children: W })
|
|
277
303
|
] });
|
|
278
304
|
}
|
|
279
305
|
export {
|
|
280
|
-
|
|
281
|
-
|
|
306
|
+
$e as CustomDataList,
|
|
307
|
+
$e as default
|
|
282
308
|
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { CustomDataList
|
|
1
|
+
export { CustomDataList } from './CustomDataList';
|
|
2
|
+
export { CustomDataList as default } from './CustomDataList';
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
name:
|
|
4
|
-
options:
|
|
5
|
-
label?: string
|
|
6
|
-
width?: number
|
|
7
|
-
multiple?: boolean
|
|
8
|
-
placeholder?: string
|
|
9
|
-
ValidIcon?:
|
|
10
|
-
InvalidIcon?:
|
|
11
|
-
expandIconType?:
|
|
12
|
-
showValidation?: boolean
|
|
13
|
-
|
|
1
|
+
import { Choice } from '../../types';
|
|
2
|
+
type CustomSelectProps = {
|
|
3
|
+
name: string;
|
|
4
|
+
options: Choice[];
|
|
5
|
+
label?: string;
|
|
6
|
+
width?: number;
|
|
7
|
+
multiple?: boolean;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
ValidIcon?: React.ComponentType<any>;
|
|
10
|
+
InvalidIcon?: React.ComponentType<any>;
|
|
11
|
+
expandIconType?: 'default' | 'chevron';
|
|
12
|
+
showValidation?: boolean;
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
};
|
|
15
|
+
export declare function CustomSelect({ name, options, label, width, multiple, placeholder, ValidIcon, InvalidIcon, expandIconType, // default, chevron
|
|
16
|
+
showValidation, ...attributes }: CustomSelectProps): JSX.Element;
|
|
14
17
|
export default CustomSelect;
|