@scrippsproduct/networks-ui-library 1.1.0-alpha.1 → 1.1.0-alpha.12
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/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/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/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/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.js +1 -1
- package/dist/components/Carousel/index.d.ts +2 -1
- package/dist/components/Carousel/navigations/Pagination.js +12 -10
- package/dist/components/CarouselSlide/CarouselSlide.js +25 -87
- 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.js +5 -5
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.d.ts +5 -4
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.js +10 -11
- package/dist/components/CarouselSlide/slide-layouts/Video/VideoSlide.d.ts +8 -1
- package/dist/components/CarouselSlide/slide-layouts/Video/VideoSlide.js +19 -15
- package/dist/components/CastInfoLayout/CastInfoLayout.d.ts +16 -1
- package/dist/components/CastInfoLayout/CastInfoLayout.js +31 -21
- package/dist/components/ChannelSearch/ChannelSearch.d.ts +18 -16
- package/dist/components/ChannelSearch/ChannelSearch.js +80 -63
- package/dist/components/ChannelSearch/index.d.ts +2 -1
- package/dist/components/ChoicesItem/ChoicesItem.d.ts +7 -4
- package/dist/components/ChoicesItem/ChoicesItem.js +3 -4
- package/dist/components/ChoicesItem/index.d.ts +2 -1
- package/dist/components/ChoicesItem/index.js +1 -1
- package/dist/components/ChoicesList/ChoicesList.d.ts +4 -3
- package/dist/components/ChoicesList/ChoicesList.js +3 -4
- package/dist/components/ChoicesList/index.d.ts +2 -1
- package/dist/components/Concat/Concat.d.ts +4 -3
- package/dist/components/Concat/Concat.js +5 -5
- package/dist/components/Concat/index.d.ts +2 -1
- package/dist/components/CreateChoiceList/CreateChoiceList.d.ts +7 -5
- package/dist/components/CreateChoiceList/CreateChoiceList.js +38 -9
- package/dist/components/CreateChoiceList/index.d.ts +2 -1
- package/dist/components/CtaBlock/CtaBlock.d.ts +13 -15
- package/dist/components/CtaBlock/CtaBlock.js +23 -22
- package/dist/components/CtaBlock/index.d.ts +2 -1
- package/dist/components/CustomDataList/CustomDataList.d.ts +12 -10
- package/dist/components/CustomDataList/CustomDataList.js +200 -174
- package/dist/components/CustomDataList/index.d.ts +2 -1
- package/dist/components/CustomSelect/CustomSelect.d.ts +16 -13
- package/dist/components/CustomSelect/CustomSelect.js +224 -154
- package/dist/components/CustomSelect/index.d.ts +2 -1
- package/dist/components/DateNavigation/DateNavigation.d.ts +1 -4
- package/dist/components/DateNavigation/DateNavigation.js +125 -82
- package/dist/components/DateNavigation/index.d.ts +2 -1
- package/dist/components/DatePicker/index.d.ts +2 -1
- package/dist/components/DeviceAndPlatformLists/DeviceAndPlatformLists.d.ts +14 -4
- package/dist/components/DeviceAndPlatformLists/DeviceAndPlatformLists.js +40 -33
- package/dist/components/DeviceAndPlatformLists/index.d.ts +2 -1
- package/dist/components/DrawerNavigation/DrawerNavigation.d.ts +21 -1
- package/dist/components/DrawerNavigation/DrawerNavigation.js +75 -56
- package/dist/components/DrawerNavigation/index.d.ts +2 -1
- package/dist/components/EqualSizeFlexRow/EqualSizeFlexRow.d.ts +6 -5
- package/dist/components/EqualSizeFlexRow/EqualSizeFlexRow.js +18 -14
- package/dist/components/EqualSizeFlexRow/index.d.ts +2 -1
- package/dist/components/EqualSizeGrid/EqualSizeGrid.d.ts +7 -6
- package/dist/components/EqualSizeGrid/EqualSizeGrid.js +17 -12
- package/dist/components/EqualSizeGrid/index.d.ts +2 -1
- package/dist/components/ErrorHandler/ErrorHandler.d.ts +5 -4
- package/dist/components/ErrorHandler/ErrorHandler.js +3 -4
- package/dist/components/ErrorHandler/index.d.ts +2 -1
- package/dist/components/FeaturedList/FeaturedList.d.ts +8 -6
- package/dist/components/FeaturedList/FeaturedList.js +44 -36
- package/dist/components/FeaturedList/index.d.ts +2 -1
- package/dist/components/Figure/Figure.d.ts +5 -4
- package/dist/components/Figure/Figure.js +8 -9
- package/dist/components/Figure/index.d.ts +2 -1
- package/dist/components/FindUs/FindUs.d.ts +24 -1
- package/dist/components/FindUs/FindUs.js +70 -63
- package/dist/components/FindUs/index.d.ts +2 -1
- package/dist/components/FooterNavigation/FooterNavigation.d.ts +9 -3
- package/dist/components/FooterNavigation/FooterNavigation.js +10 -11
- package/dist/components/FooterNavigation/index.d.ts +2 -1
- package/dist/components/GenericList/GenericList.d.ts +6 -5
- package/dist/components/GenericList/GenericList.js +13 -14
- package/dist/components/GenericList/index.d.ts +2 -1
- package/dist/components/GetAirdateWrapper/GetAirdateWrapper.d.ts +9 -8
- package/dist/components/GetAirdateWrapper/GetAirdateWrapper.js +46 -30
- package/dist/components/GetAirdateWrapper/index.d.ts +2 -1
- package/dist/components/GradientButton/GradientButton.d.ts +15 -14
- package/dist/components/GradientButton/GradientButton.js +37 -40
- package/dist/components/GradientButton/index.d.ts +2 -1
- package/dist/components/GridList/GridList.d.ts +6 -5
- package/dist/components/GridList/GridList.js +14 -10
- package/dist/components/GridList/index.d.ts +2 -1
- package/dist/components/ImageCard/ImageCard.d.ts +27 -1
- package/dist/components/ImageCard/ImageCard.js +59 -58
- package/dist/components/ImageCard/ImageCardCore.d.ts +6 -2
- package/dist/components/ImageCard/ImageCardCore.js +115 -89
- package/dist/components/ImageReplacementAnchor/ImageReplacementAnchor.d.ts +11 -14
- package/dist/components/ImageReplacementAnchor/ImageReplacementAnchor.js +25 -18
- package/dist/components/InfoPanel/InfoPanel.d.ts +10 -8
- package/dist/components/InfoPanel/InfoPanel.js +2 -2
- package/dist/components/InfoPanel/index.d.ts +2 -1
- package/dist/components/InlineNavigation/InlineNavigation.d.ts +7 -5
- package/dist/components/InlineNavigation/InlineNavigation.js +13 -10
- package/dist/components/Input/Input.d.ts +10 -9
- package/dist/components/Input/Input.js +47 -40
- package/dist/components/Input/index.d.ts +2 -1
- package/dist/components/InstructionsList/InstructionsList.d.ts +5 -4
- package/dist/components/InstructionsList/InstructionsList.js +20 -10
- package/dist/components/InstructionsList/index.d.ts +2 -1
- package/dist/components/Loading/Loading.d.ts +8 -7
- package/dist/components/Loading/Loading.js +25 -20
- package/dist/components/Loading/index.d.ts +2 -1
- package/dist/components/LoadingV2/LoadingV2.d.ts +7 -6
- package/dist/components/LoadingV2/LoadingV2.js +31 -21
- package/dist/components/LoadingV2/index.d.ts +2 -1
- package/dist/components/LogoListItem/LogoListItem.d.ts +7 -6
- package/dist/components/LogoListItem/LogoListItem.js +34 -17
- package/dist/components/LogoListItem/index.d.ts +2 -1
- package/dist/components/LogoNavigation/LogoNavigation.d.ts +13 -4
- package/dist/components/LogoNavigation/LogoNavigation.js +23 -18
- package/dist/components/LogoNavigation/index.d.ts +2 -1
- package/dist/components/ModalContainer/ModalContainer.d.ts +8 -8
- package/dist/components/ModalContainer/ModalContainer.js +84 -72
- package/dist/components/ModalContainer/index.d.ts +2 -1
- package/dist/components/MultiLayeredFigure/MultiLayeredFigure.d.ts +6 -5
- package/dist/components/MultiLayeredFigure/MultiLayeredFigure.js +13 -10
- package/dist/components/MultiLayeredFigure/index.d.ts +2 -1
- package/dist/components/NavList/NavList.d.ts +9 -7
- package/dist/components/NavList/NavList.js +56 -20
- package/dist/components/NavList/index.d.ts +2 -1
- package/dist/components/Overlay/Overlay.d.ts +5 -5
- package/dist/components/Overlay/Overlay.js +8 -5
- package/dist/components/PageHero/PageHero.d.ts +6 -5
- package/dist/components/PageHero/PageHero.js +29 -16
- package/dist/components/PageHero/index.d.ts +2 -1
- package/dist/components/PageHero/page-hero-layouts/ContentHero/ContentHero.d.ts +2 -13
- package/dist/components/PageHero/page-hero-layouts/ContentHero/ContentHero.js +17 -10
- package/dist/components/PageHero/page-hero-layouts/ContentHero/index.d.ts +2 -1
- package/dist/components/PageHero/page-hero-layouts/IONShow/IONShowHero.d.ts +7 -5
- package/dist/components/PageHero/page-hero-layouts/IONShow/IONShowHero.js +108 -42
- package/dist/components/PageHero/page-hero-layouts/IONShow/index.d.ts +2 -1
- package/dist/components/PageHero/page-hero-layouts/ImageOnly/ImageOnlyHero.d.ts +2 -12
- package/dist/components/PageHero/page-hero-layouts/ImageOnly/ImageOnlyHero.js +13 -7
- package/dist/components/PageHero/page-hero-layouts/ImageOnly/index.d.ts +2 -1
- package/dist/components/PageHero/page-hero-layouts/page-hero.d.js +1 -0
- package/dist/components/ProgramAirdate/ProgramAirdate.d.ts +14 -10
- package/dist/components/ProgramAirdate/ProgramAirdate.js +72 -67
- package/dist/components/ProgramAirdate/index.d.ts +2 -1
- package/dist/components/PromotionBlock/PromotionBlock.d.ts +11 -4
- package/dist/components/PromotionBlock/PromotionBlock.js +36 -26
- package/dist/components/PromotionBlock/index.d.ts +2 -1
- package/dist/components/PromotionsRowBlock/PromotionsRowBlock.d.ts +5 -4
- package/dist/components/PromotionsRowBlock/PromotionsRowBlock.js +8 -6
- package/dist/components/PromotionsRowBlock/index.d.ts +2 -1
- package/dist/components/PromotionsRowModule/PromotionsRowModule.d.ts +25 -5
- package/dist/components/PromotionsRowModule/PromotionsRowModule.js +48 -48
- package/dist/components/PromotionsRowModule/index.d.ts +2 -1
- package/dist/components/RescanInstructions/RescanInstructions.d.ts +3 -3
- package/dist/components/RescanInstructions/RescanInstructions.js +29 -18
- package/dist/components/RescanInstructions/index.d.ts +2 -1
- package/dist/components/ResponsiveImage/ResponsiveImage.d.ts +13 -12
- package/dist/components/ResponsiveImage/ResponsiveImage.js +16 -20
- package/dist/components/ResponsiveImage/index.d.ts +2 -1
- package/dist/components/ResultsTable/ResultsTable.d.ts +10 -6
- package/dist/components/ResultsTable/ResultsTable.js +21 -16
- package/dist/components/ResultsTable/index.d.ts +2 -1
- package/dist/components/ResultsTableBody/ResultsTableBody.d.ts +9 -5
- package/dist/components/ResultsTableBody/ResultsTableBody.js +21 -16
- package/dist/components/ResultsTableBody/index.d.ts +2 -1
- package/dist/components/ResultsTableHeader/ResultsTableHeader.d.ts +7 -3
- package/dist/components/ResultsTableHeader/ResultsTableHeader.js +4 -5
- package/dist/components/ResultsTableHeader/index.d.ts +2 -1
- package/dist/components/ScheduleLayout/ScheduleContext.d.ts +27 -0
- package/dist/components/ScheduleLayout/ScheduleContext.js +1931 -0
- package/dist/components/ScheduleLayout/ScheduleLayout.d.ts +16 -5
- package/dist/components/ScheduleLayout/ScheduleLayout.js +98 -24
- package/dist/components/ScheduleLayout/index.d.ts +2 -1
- package/dist/components/ScheduleLayout/useScheduleContext.d.ts +15 -0
- package/dist/components/ScheduleLayout/useScheduleContext.js +12 -0
- package/dist/components/ScheduleList/ScheduleList.d.ts +5 -5
- package/dist/components/ScheduleList/ScheduleList.js +162 -60
- package/dist/components/ScheduleList/index.d.ts +2 -1
- package/dist/components/ScheduleList/schedule-list-items/AirDateSegment.d.ts +6 -4
- package/dist/components/ScheduleList/schedule-list-items/AirDateSegment.js +28 -17
- package/dist/components/ScheduleList/schedule-list-items/MovieItem.d.ts +9 -7
- package/dist/components/ScheduleList/schedule-list-items/MovieItem.js +46 -34
- package/dist/components/ScheduleList/schedule-list-items/SeriesItem.d.ts +9 -7
- package/dist/components/ScheduleList/schedule-list-items/SeriesItem.js +48 -32
- package/dist/components/ScheduleList/schedule-list-items/SportsItem.d.ts +9 -7
- package/dist/components/ScheduleList/schedule-list-items/SportsItem.js +46 -34
- package/dist/components/SectionedContent/SectionedContent.d.ts +11 -3
- package/dist/components/SectionedContent/SectionedContent.js +14 -15
- package/dist/components/SectionedContent/index.d.ts +2 -1
- package/dist/components/Select/Select.d.ts +15 -11
- package/dist/components/Select/Select.js +21 -21
- package/dist/components/Select/index.d.ts +2 -1
- package/dist/components/ShowAboutContent/ShowAboutContent.d.ts +10 -8
- package/dist/components/ShowAboutContent/ShowAboutContent.js +27 -28
- package/dist/components/ShowAboutContent/index.d.ts +2 -1
- package/dist/components/ShowAboutLayout/ShowAboutLayout.d.ts +10 -8
- package/dist/components/ShowAboutLayout/ShowAboutLayout.js +91 -42
- package/dist/components/ShowAboutLayout/index.d.ts +2 -1
- package/dist/components/SocialLinks/SocialLinks.d.ts +15 -9
- package/dist/components/SocialLinks/SocialLinks.js +192 -138
- package/dist/components/SocialShareBlock/SocialShareBlock.d.ts +9 -8
- package/dist/components/SocialShareBlock/SocialShareBlock.js +20 -22
- package/dist/components/SocialShareBlock/index.d.ts +2 -1
- package/dist/components/SocialShareButton/SocialShareButton.d.ts +8 -7
- package/dist/components/SocialShareButton/SocialShareButton.js +3 -4
- package/dist/components/SocialShareButton/index.d.ts +2 -1
- package/dist/components/SocialShareButton/index.js +1 -1
- package/dist/components/StringList/StringList.d.ts +6 -5
- package/dist/components/StringList/StringList.js +16 -12
- package/dist/components/StringList/index.d.ts +2 -1
- package/dist/components/TabContent/TabContent.d.ts +5 -4
- package/dist/components/TabContent/TabContent.js +9 -7
- package/dist/components/TabContent/index.d.ts +2 -1
- package/dist/components/TabNavigation/TabNavigation.d.ts +7 -5
- package/dist/components/TabNavigation/TabNavigation.js +58 -53
- package/dist/components/TabNavigation/index.d.ts +2 -1
- package/dist/components/TabbedContent/TabbedContent.d.ts +20 -4
- package/dist/components/TabbedContent/TabbedContent.js +24 -8
- package/dist/components/TabbedContent/index.d.ts +2 -1
- package/dist/components/TextArea/TextArea.d.ts +9 -1
- package/dist/components/TextArea/TextArea.js +13 -13
- package/dist/components/TextArea/index.d.ts +2 -1
- package/dist/components/UpcomingList/UpcomingList.d.ts +5 -4
- package/dist/components/UpcomingList/UpcomingList.js +55 -41
- package/dist/containers/GetFeatruedListContainer.d.ts +22 -15
- package/dist/containers/GetFeatruedListContainer.js +16 -16
- package/dist/containers/NowPlayingContainer.d.ts +17 -15
- package/dist/containers/NowPlayingContainer.js +18 -16
- package/dist/custom-elements.d.js +1 -0
- package/dist/data-resources/FakeDataResource.d.ts +77 -68
- package/dist/data-resources/FakeDataResource.js +244 -142
- package/dist/error-boundries/BlankErrorBoundry.d.ts +14 -9
- package/dist/error-boundries/BlankErrorBoundry.js +5 -5
- package/dist/error-boundries/GeneralErrorBoundry.d.ts +15 -10
- package/dist/error-boundries/GeneralErrorBoundry.js +10 -10
- package/dist/hooks/{useGetSchedule.d.ts → getSchedule.d.ts} +12 -4
- package/dist/hooks/getSchedule.js +62 -0
- package/dist/hooks/useGetUpcoming.d.ts +8 -6
- package/dist/hooks/useGetUpcoming.js +22 -25
- package/dist/icons/Facebook.js +6 -6
- package/dist/icons/Tiktok.js +15 -7
- package/dist/icons/Twitter.js +7 -7
- package/dist/index.d.ts +1 -0
- package/dist/index.js +35 -33
- package/dist/logger-C0N7U0YY.mjs +67 -0
- package/dist/settings.js +6 -5
- 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 +19 -14
- 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/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/TwoColumn/TwoColumnSlide.stories.d.ts +0 -17
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.stories.js +0 -49
- package/dist/facebook-HCcA1M1m.mjs +0 -54
- package/dist/hooks/useGetSchedule.js +0 -58
|
@@ -1,129 +1,155 @@
|
|
|
1
|
-
import { jsxs as i, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { p as
|
|
4
|
-
import { AnchorTag as x } from "../AnchorTag/AnchorTag.js";
|
|
5
|
-
import { ButtonAnchor as c } from "../ButtonAnchor/ButtonAnchor.js";
|
|
6
|
-
import { ResponsiveImage as k } from "../ResponsiveImage/ResponsiveImage.js";
|
|
1
|
+
import { jsxs as i, Fragment as N, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as C } from "react";
|
|
3
|
+
import { p as R } from "../../index-VjANCDXC.mjs";
|
|
7
4
|
import { classes as a } from "../../utils/helpers.js";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
numberOfLinesToClamp: B = 3,
|
|
5
|
+
import { AnchorTag as _ } from "../AnchorTag/AnchorTag.js";
|
|
6
|
+
import { ButtonAnchor as y } from "../ButtonAnchor/ButtonAnchor.js";
|
|
7
|
+
import { ResponsiveImage as I } from "../ResponsiveImage/ResponsiveImage.js";
|
|
8
|
+
const L = C(function({
|
|
9
|
+
image: s = { url: "", altText: "", aspectRatio: 1, sources: [] },
|
|
10
|
+
mobileImage: m = { url: "", altText: "", aspectRatio: 1 },
|
|
11
|
+
lazyLoad: h = !0,
|
|
12
|
+
fetchPriority: f = void 0,
|
|
13
|
+
decoding: v = "async",
|
|
14
|
+
title: T = "",
|
|
15
|
+
content: l = "",
|
|
20
16
|
overlayContent: p = "",
|
|
21
|
-
overlayPosition: z = "left",
|
|
22
|
-
overlayTextColor: L = "#fff",
|
|
23
|
-
relatedResourceId: S = "",
|
|
24
17
|
cta: e = {
|
|
25
18
|
label: "",
|
|
26
19
|
href: "",
|
|
27
20
|
type: "",
|
|
28
21
|
relatedResourceId: "",
|
|
29
22
|
position: "end"
|
|
23
|
+
// inline - in the content | end | start
|
|
30
24
|
},
|
|
31
|
-
displayCTA:
|
|
32
|
-
handleClicks:
|
|
25
|
+
displayCTA: t = !0,
|
|
26
|
+
handleClicks: A = (g) => {
|
|
33
27
|
},
|
|
34
|
-
fullCardClickable:
|
|
35
|
-
displayInline: V = !1,
|
|
36
|
-
classname: j = "",
|
|
28
|
+
fullCardClickable: w = !1,
|
|
37
29
|
styles: o = {}
|
|
38
|
-
},
|
|
39
|
-
var
|
|
40
|
-
const
|
|
30
|
+
}, V) {
|
|
31
|
+
var x;
|
|
32
|
+
const g = /* @__PURE__ */ new Map([
|
|
41
33
|
["play-video", {
|
|
42
34
|
label: "View Promo",
|
|
43
|
-
component:
|
|
35
|
+
component: y
|
|
44
36
|
}],
|
|
45
37
|
["internal-link", {
|
|
46
38
|
label: "View More",
|
|
47
|
-
component:
|
|
39
|
+
component: _
|
|
48
40
|
}],
|
|
49
41
|
["external-link", {
|
|
50
42
|
label: "Learn More",
|
|
51
|
-
component:
|
|
43
|
+
component: _
|
|
52
44
|
}],
|
|
53
45
|
["info-panel", {
|
|
54
46
|
label: "View More",
|
|
55
|
-
component:
|
|
47
|
+
component: y
|
|
56
48
|
}],
|
|
57
49
|
["show-modal", {
|
|
58
50
|
label: "See More",
|
|
59
|
-
component:
|
|
51
|
+
component: y
|
|
60
52
|
}]
|
|
61
|
-
]),
|
|
62
|
-
|
|
63
|
-
{
|
|
64
|
-
classname: a([o["image-card__cta"], "image-card__cta"]),
|
|
65
|
-
href: r.href,
|
|
66
|
-
label: r.label ? r.label : T.get(r.type).label,
|
|
67
|
-
onClick: r.type !== "internal-link" && r.type !== "external-link" ? s : () => !0,
|
|
68
|
-
"data-resource-id": r.relatedResourceId,
|
|
69
|
-
type: r.type
|
|
70
|
-
}
|
|
71
|
-
), s = (r) => {
|
|
72
|
-
r.stopPropagation(), N({
|
|
53
|
+
]), u = (x = g.get(e.type)) == null ? void 0 : x.component, d = (r) => {
|
|
54
|
+
r.stopPropagation(), A({
|
|
73
55
|
type: e.type,
|
|
74
56
|
resourceId: e.relatedResourceId,
|
|
75
57
|
resourceType: e.relatedResourceType,
|
|
76
58
|
target: r.target,
|
|
77
59
|
currentTarget: r.currentTarget
|
|
78
60
|
});
|
|
61
|
+
}, c = (r) => {
|
|
62
|
+
var k;
|
|
63
|
+
if (!u) return null;
|
|
64
|
+
const b = u === _, M = r.type === "internal-link" || r.type === "external-link";
|
|
65
|
+
return /* @__PURE__ */ n(
|
|
66
|
+
u,
|
|
67
|
+
{
|
|
68
|
+
classname: a([o["image-card__cta"], "image-card__cta"]),
|
|
69
|
+
"data-resource-id": r.relatedResourceId,
|
|
70
|
+
...b && { href: r.href },
|
|
71
|
+
label: r.label ? r.label : ((k = g.get(r.type)) == null ? void 0 : k.label) ?? "",
|
|
72
|
+
...b && M && r.type && { type: r.type },
|
|
73
|
+
onClick: r.type !== "internal-link" && r.type !== "external-link" ? d : void 0
|
|
74
|
+
}
|
|
75
|
+
);
|
|
79
76
|
};
|
|
80
|
-
return /* @__PURE__ */ i(
|
|
81
|
-
/* @__PURE__ */ i(
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
77
|
+
return /* @__PURE__ */ i(N, { children: [
|
|
78
|
+
/* @__PURE__ */ i(
|
|
79
|
+
"div",
|
|
80
|
+
{
|
|
81
|
+
className: a([
|
|
82
|
+
o["image-card__img-wrapper"],
|
|
83
|
+
"image-card__img-wrapper"
|
|
84
|
+
]),
|
|
85
|
+
children: [
|
|
86
|
+
m.url !== "" && /* @__PURE__ */ n(
|
|
87
|
+
"img",
|
|
88
|
+
{
|
|
89
|
+
alt: m.altText,
|
|
90
|
+
className: o["image-card__mobile-image"],
|
|
91
|
+
decoding: v,
|
|
92
|
+
fetchPriority: f,
|
|
93
|
+
loading: h ? "lazy" : void 0,
|
|
94
|
+
src: m.url,
|
|
95
|
+
onClick: (e.type === "play-video" || e.type === "show-modal") && !w ? d : void 0
|
|
96
|
+
}
|
|
97
|
+
),
|
|
98
|
+
/* @__PURE__ */ n(
|
|
99
|
+
I,
|
|
100
|
+
{
|
|
101
|
+
altText: s.altText,
|
|
102
|
+
classname: o["image-card__image"],
|
|
103
|
+
decoding: v,
|
|
104
|
+
fetchPriority: f,
|
|
105
|
+
fullSizeUrl: s.url,
|
|
106
|
+
handleClick: (e.type === "play-video" || e.type === "show-modal") && !w ? (r) => (d(r), !1) : () => !0,
|
|
107
|
+
loading: h ? "lazy" : void 0,
|
|
108
|
+
sources: s.sources
|
|
109
|
+
}
|
|
110
|
+
),
|
|
111
|
+
p !== "" && /* @__PURE__ */ n(
|
|
112
|
+
"div",
|
|
113
|
+
{
|
|
114
|
+
className: a([
|
|
115
|
+
o["image-card__overlay-content"],
|
|
116
|
+
"image-card__overlay-content"
|
|
117
|
+
]),
|
|
118
|
+
children: typeof p == "string" ? R(p) : p
|
|
119
|
+
}
|
|
120
|
+
),
|
|
121
|
+
(e == null ? void 0 : e.type) === "play-video" && /* @__PURE__ */ i(
|
|
122
|
+
"button",
|
|
123
|
+
{
|
|
124
|
+
className: a([
|
|
125
|
+
o["image-card__play-icon"],
|
|
126
|
+
"image-card__play-icon"
|
|
127
|
+
]),
|
|
128
|
+
type: "button",
|
|
129
|
+
onClick: d,
|
|
130
|
+
children: [
|
|
131
|
+
/* @__PURE__ */ n("span", { className: "sr-only", children: "PLAY BUTTON" }),
|
|
132
|
+
/* @__PURE__ */ n("div", { className: `${o["play-icon__triangle"]}` })
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
)
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
),
|
|
139
|
+
l !== "" && /* @__PURE__ */ i("div", { className: a([o["image-card__content"], "image-card__content"]), children: [
|
|
140
|
+
T !== "" && /* @__PURE__ */ n("h2", { className: "h4", children: T }),
|
|
141
|
+
typeof l == "string" && /* @__PURE__ */ i("div", { children: [
|
|
142
|
+
R(l),
|
|
143
|
+
t && (e == null ? void 0 : e.type) && e.position === "inline" && c(e)
|
|
118
144
|
] }),
|
|
119
|
-
typeof
|
|
120
|
-
|
|
121
|
-
|
|
145
|
+
typeof l != "string" && /* @__PURE__ */ i(N, { children: [
|
|
146
|
+
l,
|
|
147
|
+
t && (e == null ? void 0 : e.type) && e.position === "inline" && c(e)
|
|
122
148
|
] })
|
|
123
149
|
] }),
|
|
124
|
-
|
|
150
|
+
t && (e == null ? void 0 : e.type) && (e == null ? void 0 : e.position) === "end" && /* @__PURE__ */ n("div", { className: o["image-card__cta-wrapper"], children: c(e) })
|
|
125
151
|
] });
|
|
126
152
|
});
|
|
127
153
|
export {
|
|
128
|
-
|
|
154
|
+
L as default
|
|
129
155
|
};
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
baselineAdjustment?: number | undefined;
|
|
13
|
-
classname?: string | undefined;
|
|
14
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { Image } from '../../types';
|
|
2
|
+
type ImageReplacementAnchorProps = {
|
|
3
|
+
href?: string;
|
|
4
|
+
target?: '_self' | '_blank' | '_parent' | '_top';
|
|
5
|
+
image?: Image;
|
|
6
|
+
text?: string;
|
|
7
|
+
height?: number;
|
|
8
|
+
baselineAdjustment?: number;
|
|
9
|
+
classname?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare function ImageReplacementAnchor({ href, target, image, text, height, baselineAdjustment, classname, }: ImageReplacementAnchorProps): JSX.Element;
|
|
15
12
|
export default ImageReplacementAnchor;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import "
|
|
3
|
-
import { classes as o } from "../../utils/helpers.js";
|
|
1
|
+
import { jsxs as h, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { classes as n } from "../../utils/helpers.js";
|
|
4
3
|
import '../../assets/ImageReplacementAnchor.css';const a = {
|
|
5
4
|
"image-replacement-anchor": "_image-replacement-anchor_hx29b_1",
|
|
6
5
|
"image-replacement-anchor__text": "_image-replacement-anchor__text_hx29b_14"
|
|
@@ -8,40 +7,48 @@ import '../../assets/ImageReplacementAnchor.css';const a = {
|
|
|
8
7
|
function x({
|
|
9
8
|
href: l = "",
|
|
10
9
|
target: t = "_self",
|
|
11
|
-
image: e = {
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
image: e = {
|
|
11
|
+
url: "",
|
|
12
|
+
altText: "",
|
|
13
|
+
aspectRatio: 1
|
|
14
|
+
},
|
|
15
|
+
text: c = "",
|
|
16
|
+
height: i = 4,
|
|
14
17
|
baselineAdjustment: m = 0,
|
|
15
|
-
classname:
|
|
18
|
+
classname: o = ""
|
|
16
19
|
}) {
|
|
17
|
-
|
|
20
|
+
const s = e.width && e.height ? e.width / e.height : 1;
|
|
21
|
+
return /* @__PURE__ */ h(
|
|
18
22
|
"a",
|
|
19
23
|
{
|
|
20
|
-
className:
|
|
24
|
+
className: n([
|
|
21
25
|
a["image-replacement-anchor"],
|
|
22
26
|
"image-replacement-anchor",
|
|
23
|
-
|
|
27
|
+
o
|
|
24
28
|
]),
|
|
25
29
|
href: l,
|
|
26
|
-
|
|
27
|
-
rel: t === "_blank" ? "noreferrer" : null,
|
|
30
|
+
rel: t === "_blank" ? "noreferrer" : void 0,
|
|
28
31
|
style: {
|
|
29
|
-
"--ira-aspect-ratio":
|
|
30
|
-
"--ira-height": `${
|
|
32
|
+
"--ira-aspect-ratio": s,
|
|
33
|
+
"--ira-height": `${i}rem`,
|
|
31
34
|
"--ira-baseline-adjustment": `${m}rem`
|
|
32
35
|
},
|
|
36
|
+
target: t,
|
|
33
37
|
children: [
|
|
34
38
|
/* @__PURE__ */ r(
|
|
35
39
|
"img",
|
|
36
40
|
{
|
|
37
|
-
src: e.url,
|
|
38
|
-
className: a["image-replacement-anchor__image"],
|
|
39
41
|
alt: e.altText,
|
|
42
|
+
className: n([
|
|
43
|
+
a["image-replacement-anchor__image"],
|
|
44
|
+
"image-replacement-anchor__image"
|
|
45
|
+
]),
|
|
46
|
+
loading: "lazy",
|
|
40
47
|
role: "presentation",
|
|
41
|
-
|
|
48
|
+
src: e.url
|
|
42
49
|
}
|
|
43
50
|
),
|
|
44
|
-
e.altText === "" || e.altText === void 0 ? /* @__PURE__ */ r("span", { className: a["image-replacement-anchor__text"], children:
|
|
51
|
+
e.altText === "" || e.altText === void 0 ? /* @__PURE__ */ r("span", { className: a["image-replacement-anchor__text"], children: c }) : null
|
|
45
52
|
]
|
|
46
53
|
}
|
|
47
54
|
);
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
layoutComponent
|
|
1
|
+
type InfoPanelProps = {
|
|
2
|
+
layoutComponent: {
|
|
3
3
|
layout: string;
|
|
4
|
-
props:
|
|
5
|
-
}
|
|
6
|
-
onBackClicked
|
|
7
|
-
backButtonLabel?: string
|
|
8
|
-
classname?: string
|
|
9
|
-
|
|
4
|
+
props: Record<string, unknown>;
|
|
5
|
+
};
|
|
6
|
+
onBackClicked: (e: React.MouseEvent<Element, MouseEvent> | null) => void;
|
|
7
|
+
backButtonLabel?: string;
|
|
8
|
+
classname?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare function InfoPanel({ layoutComponent, onBackClicked, backButtonLabel, classname, }: InfoPanelProps): JSX.Element;
|
|
10
12
|
export default InfoPanel;
|
|
@@ -15,10 +15,10 @@ function N({
|
|
|
15
15
|
classname: y = ""
|
|
16
16
|
}) {
|
|
17
17
|
const [f, L] = b(null), [t, u] = b("entering"), n = d(null), p = d(null), _ = (o) => {
|
|
18
|
-
p.current = o, u("exiting"), n.current.scrollTo({
|
|
18
|
+
p.current = o, u("exiting"), n.current !== null && n.current.scrollTo({
|
|
19
19
|
top: n.current.offsetTop,
|
|
20
20
|
left: 0,
|
|
21
|
-
|
|
21
|
+
behavior: "instant"
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
return m(() => {
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { InfoPanel
|
|
1
|
+
export { InfoPanel } from './InfoPanel';
|
|
2
|
+
export { InfoPanel as default } from './InfoPanel';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { AnchorLink } from '../../types';
|
|
2
|
+
type InlineNavigationProps = {
|
|
3
|
+
links?: AnchorLink[];
|
|
4
|
+
classname?: string;
|
|
5
|
+
position?: 'left' | 'right' | 'center';
|
|
6
|
+
};
|
|
7
|
+
export declare function InlineNavigation({ links, classname, position, }: InlineNavigationProps): JSX.Element;
|
|
6
8
|
export default InlineNavigation;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import "
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
"inline-navigation": "_inline-navigation_3u114_1"
|
|
2
|
+
import { NavList as l } from "../NavList/NavList.js";
|
|
3
|
+
import '../../assets/InlineNavigation.css';const o = {
|
|
4
|
+
"inline-navigation": "_inline-navigation_138l2_1"
|
|
6
5
|
};
|
|
7
|
-
function
|
|
6
|
+
function f({
|
|
7
|
+
links: t = [],
|
|
8
|
+
classname: e = "",
|
|
9
|
+
position: i = "left"
|
|
10
|
+
}) {
|
|
8
11
|
const a = /* @__PURE__ */ new Map([
|
|
9
12
|
["left", "flex-start"],
|
|
10
13
|
["right", "flex-end"],
|
|
@@ -13,15 +16,15 @@ function c({ links: t = [], classname: i = "", position: e = "left" }) {
|
|
|
13
16
|
return /* @__PURE__ */ n(
|
|
14
17
|
"nav",
|
|
15
18
|
{
|
|
16
|
-
className:
|
|
19
|
+
className: o["inline-navigation"],
|
|
17
20
|
style: {
|
|
18
|
-
"--inline-nav-justify-content": a.get(
|
|
21
|
+
"--inline-nav-justify-content": a.get(i)
|
|
19
22
|
},
|
|
20
|
-
children: /* @__PURE__ */ n(
|
|
23
|
+
children: /* @__PURE__ */ n(l, { classname: e, links: t })
|
|
21
24
|
}
|
|
22
25
|
);
|
|
23
26
|
}
|
|
24
27
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
28
|
+
f as InlineNavigation,
|
|
29
|
+
f as default
|
|
27
30
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
name:
|
|
4
|
-
label?: string
|
|
5
|
-
helpText?: string
|
|
6
|
-
type?: string
|
|
7
|
-
width?: number
|
|
8
|
-
showValidation?: boolean
|
|
9
|
-
}
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type InputProps = React.InputHTMLAttributes<HTMLInputElement> & {
|
|
3
|
+
name: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
helpText?: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
width?: number;
|
|
8
|
+
showValidation?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare function Input({ name, label, helpText, type, width, showValidation, ...attributes }: InputProps): JSX.Element;
|
|
10
11
|
export default Input;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as i, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { useState as s, useRef as b } from "react";
|
|
3
3
|
import { classes as m, areaCodePhoneNumberMask as M } from "../../utils/helpers.js";
|
|
4
4
|
import { s as t, C as V, A as $ } from "../../Form.module-Cd8qH2rj.mjs";
|
|
5
5
|
function B({
|
|
6
|
-
name:
|
|
6
|
+
name: a,
|
|
7
7
|
label: h = "",
|
|
8
8
|
helpText: p = "",
|
|
9
9
|
type: x = "text",
|
|
@@ -11,45 +11,52 @@ function B({
|
|
|
11
11
|
showValidation: n = !0,
|
|
12
12
|
...v
|
|
13
13
|
}) {
|
|
14
|
-
var
|
|
15
|
-
const [y, C] = s(`${t["form-field__input"]}`), e = b(), [c,
|
|
16
|
-
N("touched"), C(`${t["form-field__input"]} ${t["input--touched"]}`), e.current.type === "tel" && (e.current.value = M(e.current.value)), e.current.checkValidity() ?
|
|
14
|
+
var o, d, f;
|
|
15
|
+
const [y, C] = s(`${t["form-field__input"]}`), e = b(null), [c, r] = s(""), [u, N] = s("clean"), g = `input-width--${_}`, k = () => {
|
|
16
|
+
N("touched"), C(`${t["form-field__input"]} ${t["input--touched"]}`), e.current !== null && (e.current.type === "tel" && (e.current.value = M(e.current.value)), e.current.checkValidity() ? r("") : e.current.type === "email" ? r("Please enter a vaild email.") : e.current.type === "tel" ? r("Please match the requested format: (xxx) xxx-xxxx") : r(e.current.validationMessage));
|
|
17
17
|
};
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
18
|
+
return /* @__PURE__ */ i(
|
|
19
|
+
"label",
|
|
20
|
+
{
|
|
21
|
+
className: m([t["form-field"], t[g]]),
|
|
22
|
+
htmlFor: a,
|
|
23
|
+
children: [
|
|
24
|
+
n && /* @__PURE__ */ i(
|
|
25
|
+
"i",
|
|
26
|
+
{
|
|
27
|
+
className: m([
|
|
28
|
+
t["form-field__icon"],
|
|
29
|
+
(o = e.current) != null && o.validity.valid ? "" : t["form-field__icon--invalid"]
|
|
30
|
+
]),
|
|
31
|
+
children: [
|
|
32
|
+
((d = e.current) == null ? void 0 : d.checkValidity()) && u === "touched" && /* @__PURE__ */ l(V, {}),
|
|
33
|
+
!((f = e.current) != null && f.checkValidity()) && u === "touched" && /* @__PURE__ */ l($, {})
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
),
|
|
37
|
+
/* @__PURE__ */ i("span", { className: t["form-field__label"], children: [
|
|
38
|
+
h,
|
|
39
|
+
" ",
|
|
40
|
+
/* @__PURE__ */ l("span", { className: t["form-field__label-help"], children: p })
|
|
41
|
+
] }),
|
|
42
|
+
/* @__PURE__ */ l(
|
|
43
|
+
"input",
|
|
44
|
+
{
|
|
45
|
+
className: y,
|
|
46
|
+
id: a,
|
|
47
|
+
name: a,
|
|
48
|
+
ref: e,
|
|
49
|
+
type: x,
|
|
50
|
+
onBlur: () => {
|
|
51
|
+
k();
|
|
52
|
+
},
|
|
53
|
+
...v
|
|
54
|
+
}
|
|
55
|
+
),
|
|
56
|
+
c !== "" && n && /* @__PURE__ */ l("div", { className: t["form-field__error-message"], children: c })
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
);
|
|
53
60
|
}
|
|
54
61
|
export {
|
|
55
62
|
B as Input,
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { Input
|
|
1
|
+
export { Input } from './Input';
|
|
2
|
+
export { Input as default } from './Input';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
headerHtml?: string
|
|
3
|
-
instructions?:
|
|
4
|
-
}
|
|
1
|
+
type InstructionsListProps = {
|
|
2
|
+
headerHtml?: string;
|
|
3
|
+
instructions?: string[];
|
|
4
|
+
};
|
|
5
|
+
export declare function InstructionsList({ headerHtml, instructions, }: InstructionsListProps): JSX.Element;
|
|
5
6
|
export default InstructionsList;
|
|
@@ -1,17 +1,27 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import '../../assets/InstructionsList.css';const
|
|
1
|
+
import { jsxs as c, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { p as r } from "../../index-VjANCDXC.mjs";
|
|
3
|
+
import { classes as s } from "../../utils/helpers.js";
|
|
4
|
+
import '../../assets/InstructionsList.css';const t = {
|
|
5
5
|
"instructions-list__list": "_instructions-list__list_suf45_1",
|
|
6
6
|
"instructions-list__item": "_instructions-list__item_suf45_5"
|
|
7
7
|
};
|
|
8
|
-
function
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
function a({
|
|
9
|
+
headerHtml: n = "",
|
|
10
|
+
instructions: l = []
|
|
11
|
+
}) {
|
|
12
|
+
return /* @__PURE__ */ c("div", { className: s([t["instructions-list"], "instructions-list"]), children: [
|
|
13
|
+
n !== "" && /* @__PURE__ */ i("h3", { className: s([t["instructions-list__header"], "instructions-list__header"]), children: r(n) }),
|
|
14
|
+
/* @__PURE__ */ i("ol", { className: s([t["instructions-list__list"], "instructions-list__list"]), children: l.map((_) => /* @__PURE__ */ i(
|
|
15
|
+
"li",
|
|
16
|
+
{
|
|
17
|
+
className: s([t["instructions-list__item"], "instructions-list__item"]),
|
|
18
|
+
children: r(_)
|
|
19
|
+
},
|
|
20
|
+
`${Math.random() * 1e6}`
|
|
21
|
+
)) })
|
|
12
22
|
] });
|
|
13
23
|
}
|
|
14
24
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
25
|
+
a as InstructionsList,
|
|
26
|
+
a as default
|
|
17
27
|
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { InstructionsList
|
|
1
|
+
export { InstructionsList } from './InstructionsList';
|
|
2
|
+
export { InstructionsList as default } from './InstructionsList';
|