@scrippsproduct/networks-ui-library 1.1.0-alpha.1 → 1.1.0-alpha.3

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.
Files changed (336) hide show
  1. package/dist/Carousel.module-CNJzZW2-.mjs +14 -0
  2. package/dist/{ChoicesItem-CGIr6Qga.mjs → ChoicesItem-CT9fXB0I.mjs} +22 -23
  3. package/dist/PageHero.module-BM0IV1P5.mjs +8 -0
  4. package/dist/ResultsTable.module-1zxhXaem.mjs +14 -0
  5. package/dist/{SocialShareButton-BXGVUD-z.mjs → SocialShareButton-BMhRS9Qr.mjs} +12 -7
  6. package/dist/assets/AdBlock.css +1 -1
  7. package/dist/assets/AirDateFormatter.css +1 -1
  8. package/dist/assets/AnchorTag.css +1 -1
  9. package/dist/assets/BasicGridModule.css +1 -1
  10. package/dist/assets/Button.css +1 -1
  11. package/dist/assets/Carousel.css +1 -1
  12. package/dist/assets/ChannelSearch.css +1 -1
  13. package/dist/assets/ChoicesItem.css +1 -1
  14. package/dist/assets/ContentHero.css +1 -1
  15. package/dist/assets/CtaBlock.css +1 -1
  16. package/dist/assets/CustomDataList.css +1 -1
  17. package/dist/assets/DateNavigation.css +1 -1
  18. package/dist/assets/DeviceAndPlatformLists.css +1 -1
  19. package/dist/assets/Figure2.css +1 -1
  20. package/dist/assets/FindUs.css +1 -1
  21. package/dist/assets/GradientButton.css +1 -1
  22. package/dist/assets/ImageCard.css +1 -1
  23. package/dist/assets/InlineNavigation.css +1 -1
  24. package/dist/assets/LogoListItem.css +1 -1
  25. package/dist/assets/ModalContainer.css +1 -1
  26. package/dist/assets/PageHero.css +1 -1
  27. package/dist/assets/ProgramAirdate.css +1 -1
  28. package/dist/assets/PromotionBlock.css +1 -1
  29. package/dist/assets/ResultsTable.css +1 -1
  30. package/dist/assets/ScheduleLayout.css +1 -0
  31. package/dist/assets/ScheduleList.css +1 -1
  32. package/dist/assets/ShowAboutLayout.css +1 -1
  33. package/dist/assets/ShowSlide.css +1 -1
  34. package/dist/assets/SocialLinks.css +1 -1
  35. package/dist/assets/TextSlide.css +1 -1
  36. package/dist/assets/TwoColumnSlide.css +1 -1
  37. package/dist/assets/UpcomingList.css +1 -1
  38. package/dist/components/AdBlock/AdBlock.d.ts +20 -1
  39. package/dist/components/AdBlock/AdBlock.js +118 -83
  40. package/dist/components/AdBlock/index.d.ts +2 -1
  41. package/dist/components/AdjustableTwoColumnGrid/AdjustableTwoColumnGrid.d.ts +7 -1
  42. package/dist/components/AdjustableTwoColumnGrid/AdjustableTwoColumnGrid.js +17 -12
  43. package/dist/components/AdjustableTwoColumnGrid/index.d.ts +2 -1
  44. package/dist/components/AirDateFormatter/AirDateFormatter.d.ts +5 -4
  45. package/dist/components/AirDateFormatter/AirDateFormatter.js +21 -22
  46. package/dist/components/AirDateFormatter/index.d.ts +2 -1
  47. package/dist/components/AnchorTag/AnchorTag.d.ts +10 -1
  48. package/dist/components/AnchorTag/AnchorTag.js +22 -23
  49. package/dist/components/AnchorTag/index.d.ts +2 -1
  50. package/dist/components/BCVideoPlayer/BCVideoPlayer.d.ts +19 -12
  51. package/dist/components/BCVideoPlayer/BCVideoPlayer.js +39 -37
  52. package/dist/components/BCVideoPlayer/index.d.ts +2 -1
  53. package/dist/components/BasicGridModule/BasicGridModule.d.ts +19 -17
  54. package/dist/components/BasicGridModule/BasicGridModule.js +57 -51
  55. package/dist/components/BasicGridModule/index.d.ts +2 -1
  56. package/dist/components/Button/Button.d.ts +18 -17
  57. package/dist/components/Button/Button.js +31 -32
  58. package/dist/components/Button/index.d.ts +2 -1
  59. package/dist/components/ButtonAnchor/ButtonAnchor.d.ts +5 -5
  60. package/dist/components/ButtonAnchor/ButtonAnchor.js +7 -5
  61. package/dist/components/ButtonAnchor/index.d.ts +2 -1
  62. package/dist/components/Carousel/Carousel.js +1 -1
  63. package/dist/components/Carousel/index.d.ts +2 -1
  64. package/dist/components/Carousel/navigations/Pagination.js +12 -10
  65. package/dist/components/CarouselSlide/CarouselSlide.js +25 -87
  66. package/dist/components/CarouselSlide/slide-layouts/ImageCard/ImageCard.d.ts +1 -1
  67. package/dist/components/CarouselSlide/slide-layouts/ImageCard/ImageCard.js +3 -4
  68. package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.d.ts +18 -16
  69. package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.js +49 -34
  70. package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.js +5 -5
  71. package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.d.ts +5 -4
  72. package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.js +10 -11
  73. package/dist/components/CarouselSlide/slide-layouts/Video/VideoSlide.d.ts +8 -1
  74. package/dist/components/CarouselSlide/slide-layouts/Video/VideoSlide.js +19 -15
  75. package/dist/components/CastInfoLayout/CastInfoLayout.d.ts +16 -1
  76. package/dist/components/CastInfoLayout/CastInfoLayout.js +31 -21
  77. package/dist/components/ChannelSearch/ChannelSearch.d.ts +18 -16
  78. package/dist/components/ChannelSearch/ChannelSearch.js +80 -63
  79. package/dist/components/ChannelSearch/index.d.ts +2 -1
  80. package/dist/components/ChoicesItem/ChoicesItem.d.ts +7 -4
  81. package/dist/components/ChoicesItem/ChoicesItem.js +3 -4
  82. package/dist/components/ChoicesItem/index.d.ts +2 -1
  83. package/dist/components/ChoicesItem/index.js +1 -1
  84. package/dist/components/ChoicesList/ChoicesList.d.ts +4 -3
  85. package/dist/components/ChoicesList/ChoicesList.js +3 -4
  86. package/dist/components/ChoicesList/index.d.ts +2 -1
  87. package/dist/components/Concat/Concat.d.ts +4 -3
  88. package/dist/components/Concat/Concat.js +5 -5
  89. package/dist/components/Concat/index.d.ts +2 -1
  90. package/dist/components/CreateChoiceList/CreateChoiceList.d.ts +7 -5
  91. package/dist/components/CreateChoiceList/CreateChoiceList.js +38 -9
  92. package/dist/components/CreateChoiceList/index.d.ts +2 -1
  93. package/dist/components/CtaBlock/CtaBlock.d.ts +13 -15
  94. package/dist/components/CtaBlock/CtaBlock.js +23 -22
  95. package/dist/components/CtaBlock/index.d.ts +2 -1
  96. package/dist/components/CustomDataList/CustomDataList.d.ts +12 -10
  97. package/dist/components/CustomDataList/CustomDataList.js +200 -174
  98. package/dist/components/CustomDataList/index.d.ts +2 -1
  99. package/dist/components/CustomSelect/CustomSelect.d.ts +16 -13
  100. package/dist/components/CustomSelect/CustomSelect.js +224 -154
  101. package/dist/components/CustomSelect/index.d.ts +2 -1
  102. package/dist/components/DateNavigation/DateNavigation.d.ts +1 -4
  103. package/dist/components/DateNavigation/DateNavigation.js +125 -82
  104. package/dist/components/DateNavigation/index.d.ts +2 -1
  105. package/dist/components/DatePicker/index.d.ts +2 -1
  106. package/dist/components/DeviceAndPlatformLists/DeviceAndPlatformLists.d.ts +14 -4
  107. package/dist/components/DeviceAndPlatformLists/DeviceAndPlatformLists.js +40 -33
  108. package/dist/components/DeviceAndPlatformLists/index.d.ts +2 -1
  109. package/dist/components/DrawerNavigation/DrawerNavigation.d.ts +21 -1
  110. package/dist/components/DrawerNavigation/DrawerNavigation.js +75 -56
  111. package/dist/components/DrawerNavigation/index.d.ts +2 -1
  112. package/dist/components/EqualSizeFlexRow/EqualSizeFlexRow.d.ts +6 -5
  113. package/dist/components/EqualSizeFlexRow/EqualSizeFlexRow.js +18 -14
  114. package/dist/components/EqualSizeFlexRow/index.d.ts +2 -1
  115. package/dist/components/EqualSizeGrid/EqualSizeGrid.d.ts +7 -6
  116. package/dist/components/EqualSizeGrid/EqualSizeGrid.js +17 -12
  117. package/dist/components/EqualSizeGrid/index.d.ts +2 -1
  118. package/dist/components/ErrorHandler/ErrorHandler.d.ts +5 -4
  119. package/dist/components/ErrorHandler/ErrorHandler.js +3 -4
  120. package/dist/components/ErrorHandler/index.d.ts +2 -1
  121. package/dist/components/FeaturedList/FeaturedList.d.ts +8 -6
  122. package/dist/components/FeaturedList/FeaturedList.js +44 -36
  123. package/dist/components/FeaturedList/index.d.ts +2 -1
  124. package/dist/components/Figure/Figure.d.ts +5 -4
  125. package/dist/components/Figure/Figure.js +8 -9
  126. package/dist/components/Figure/index.d.ts +2 -1
  127. package/dist/components/FindUs/FindUs.d.ts +24 -1
  128. package/dist/components/FindUs/FindUs.js +70 -63
  129. package/dist/components/FindUs/index.d.ts +2 -1
  130. package/dist/components/FooterNavigation/FooterNavigation.d.ts +9 -3
  131. package/dist/components/FooterNavigation/FooterNavigation.js +10 -11
  132. package/dist/components/FooterNavigation/index.d.ts +2 -1
  133. package/dist/components/GenericList/GenericList.d.ts +6 -5
  134. package/dist/components/GenericList/GenericList.js +13 -14
  135. package/dist/components/GenericList/index.d.ts +2 -1
  136. package/dist/components/GetAirdateWrapper/GetAirdateWrapper.d.ts +9 -8
  137. package/dist/components/GetAirdateWrapper/GetAirdateWrapper.js +46 -30
  138. package/dist/components/GetAirdateWrapper/index.d.ts +2 -1
  139. package/dist/components/GradientButton/GradientButton.d.ts +15 -14
  140. package/dist/components/GradientButton/GradientButton.js +37 -40
  141. package/dist/components/GradientButton/index.d.ts +2 -1
  142. package/dist/components/GridList/GridList.d.ts +6 -5
  143. package/dist/components/GridList/GridList.js +14 -10
  144. package/dist/components/GridList/index.d.ts +2 -1
  145. package/dist/components/ImageCard/ImageCard.d.ts +27 -1
  146. package/dist/components/ImageCard/ImageCard.js +59 -58
  147. package/dist/components/ImageCard/ImageCardCore.d.ts +6 -2
  148. package/dist/components/ImageCard/ImageCardCore.js +115 -89
  149. package/dist/components/ImageReplacementAnchor/ImageReplacementAnchor.d.ts +11 -14
  150. package/dist/components/ImageReplacementAnchor/ImageReplacementAnchor.js +25 -18
  151. package/dist/components/InfoPanel/InfoPanel.d.ts +10 -8
  152. package/dist/components/InfoPanel/InfoPanel.js +2 -2
  153. package/dist/components/InfoPanel/index.d.ts +2 -1
  154. package/dist/components/InlineNavigation/InlineNavigation.d.ts +7 -5
  155. package/dist/components/InlineNavigation/InlineNavigation.js +13 -10
  156. package/dist/components/Input/Input.d.ts +10 -9
  157. package/dist/components/Input/Input.js +47 -40
  158. package/dist/components/Input/index.d.ts +2 -1
  159. package/dist/components/InstructionsList/InstructionsList.d.ts +5 -4
  160. package/dist/components/InstructionsList/InstructionsList.js +20 -10
  161. package/dist/components/InstructionsList/index.d.ts +2 -1
  162. package/dist/components/Loading/Loading.d.ts +8 -7
  163. package/dist/components/Loading/Loading.js +25 -20
  164. package/dist/components/Loading/index.d.ts +2 -1
  165. package/dist/components/LoadingV2/LoadingV2.d.ts +7 -6
  166. package/dist/components/LoadingV2/LoadingV2.js +31 -21
  167. package/dist/components/LoadingV2/index.d.ts +2 -1
  168. package/dist/components/LogoListItem/LogoListItem.d.ts +7 -6
  169. package/dist/components/LogoListItem/LogoListItem.js +34 -17
  170. package/dist/components/LogoListItem/index.d.ts +2 -1
  171. package/dist/components/LogoNavigation/LogoNavigation.d.ts +13 -4
  172. package/dist/components/LogoNavigation/LogoNavigation.js +23 -18
  173. package/dist/components/LogoNavigation/index.d.ts +2 -1
  174. package/dist/components/ModalContainer/ModalContainer.d.ts +8 -8
  175. package/dist/components/ModalContainer/ModalContainer.js +84 -72
  176. package/dist/components/ModalContainer/index.d.ts +2 -1
  177. package/dist/components/MultiLayeredFigure/MultiLayeredFigure.d.ts +6 -5
  178. package/dist/components/MultiLayeredFigure/MultiLayeredFigure.js +13 -10
  179. package/dist/components/MultiLayeredFigure/index.d.ts +2 -1
  180. package/dist/components/NavList/NavList.d.ts +9 -7
  181. package/dist/components/NavList/NavList.js +56 -20
  182. package/dist/components/NavList/index.d.ts +2 -1
  183. package/dist/components/Overlay/Overlay.d.ts +5 -5
  184. package/dist/components/Overlay/Overlay.js +8 -5
  185. package/dist/components/PageHero/PageHero.d.ts +6 -5
  186. package/dist/components/PageHero/PageHero.js +29 -16
  187. package/dist/components/PageHero/index.d.ts +2 -1
  188. package/dist/components/PageHero/page-hero-layouts/ContentHero/ContentHero.d.ts +2 -13
  189. package/dist/components/PageHero/page-hero-layouts/ContentHero/ContentHero.js +17 -10
  190. package/dist/components/PageHero/page-hero-layouts/ContentHero/index.d.ts +2 -1
  191. package/dist/components/PageHero/page-hero-layouts/IONShow/IONShowHero.d.ts +7 -5
  192. package/dist/components/PageHero/page-hero-layouts/IONShow/IONShowHero.js +108 -42
  193. package/dist/components/PageHero/page-hero-layouts/IONShow/index.d.ts +2 -1
  194. package/dist/components/PageHero/page-hero-layouts/ImageOnly/ImageOnlyHero.d.ts +2 -12
  195. package/dist/components/PageHero/page-hero-layouts/ImageOnly/ImageOnlyHero.js +13 -7
  196. package/dist/components/PageHero/page-hero-layouts/ImageOnly/index.d.ts +2 -1
  197. package/dist/components/PageHero/page-hero-layouts/page-hero.d.js +1 -0
  198. package/dist/components/ProgramAirdate/ProgramAirdate.d.ts +14 -10
  199. package/dist/components/ProgramAirdate/ProgramAirdate.js +72 -67
  200. package/dist/components/ProgramAirdate/index.d.ts +2 -1
  201. package/dist/components/PromotionBlock/PromotionBlock.d.ts +11 -4
  202. package/dist/components/PromotionBlock/PromotionBlock.js +36 -26
  203. package/dist/components/PromotionBlock/index.d.ts +2 -1
  204. package/dist/components/PromotionsRowBlock/PromotionsRowBlock.d.ts +5 -4
  205. package/dist/components/PromotionsRowBlock/PromotionsRowBlock.js +8 -6
  206. package/dist/components/PromotionsRowBlock/index.d.ts +2 -1
  207. package/dist/components/PromotionsRowModule/PromotionsRowModule.d.ts +25 -5
  208. package/dist/components/PromotionsRowModule/PromotionsRowModule.js +48 -48
  209. package/dist/components/PromotionsRowModule/index.d.ts +2 -1
  210. package/dist/components/RescanInstructions/RescanInstructions.d.ts +3 -3
  211. package/dist/components/RescanInstructions/RescanInstructions.js +29 -18
  212. package/dist/components/RescanInstructions/index.d.ts +2 -1
  213. package/dist/components/ResponsiveImage/ResponsiveImage.d.ts +13 -12
  214. package/dist/components/ResponsiveImage/ResponsiveImage.js +16 -20
  215. package/dist/components/ResponsiveImage/index.d.ts +2 -1
  216. package/dist/components/ResultsTable/ResultsTable.d.ts +10 -6
  217. package/dist/components/ResultsTable/ResultsTable.js +21 -16
  218. package/dist/components/ResultsTable/index.d.ts +2 -1
  219. package/dist/components/ResultsTableBody/ResultsTableBody.d.ts +9 -5
  220. package/dist/components/ResultsTableBody/ResultsTableBody.js +21 -16
  221. package/dist/components/ResultsTableBody/index.d.ts +2 -1
  222. package/dist/components/ResultsTableHeader/ResultsTableHeader.d.ts +7 -3
  223. package/dist/components/ResultsTableHeader/ResultsTableHeader.js +4 -5
  224. package/dist/components/ResultsTableHeader/index.d.ts +2 -1
  225. package/dist/components/ScheduleLayout/ScheduleContext.d.ts +25 -0
  226. package/dist/components/ScheduleLayout/ScheduleContext.js +33 -0
  227. package/dist/components/ScheduleLayout/ScheduleLayout.d.ts +15 -5
  228. package/dist/components/ScheduleLayout/ScheduleLayout.js +96 -24
  229. package/dist/components/ScheduleLayout/index.d.ts +2 -1
  230. package/dist/components/ScheduleLayout/useScheduleContext.d.ts +14 -0
  231. package/dist/components/ScheduleLayout/useScheduleContext.js +12 -0
  232. package/dist/components/ScheduleList/ScheduleList.d.ts +5 -5
  233. package/dist/components/ScheduleList/ScheduleList.js +153 -60
  234. package/dist/components/ScheduleList/index.d.ts +2 -1
  235. package/dist/components/ScheduleList/schedule-list-items/AirDateSegment.d.ts +6 -4
  236. package/dist/components/ScheduleList/schedule-list-items/AirDateSegment.js +28 -17
  237. package/dist/components/ScheduleList/schedule-list-items/MovieItem.d.ts +9 -7
  238. package/dist/components/ScheduleList/schedule-list-items/MovieItem.js +46 -34
  239. package/dist/components/ScheduleList/schedule-list-items/SeriesItem.d.ts +9 -7
  240. package/dist/components/ScheduleList/schedule-list-items/SeriesItem.js +53 -37
  241. package/dist/components/ScheduleList/schedule-list-items/SportsItem.d.ts +9 -7
  242. package/dist/components/ScheduleList/schedule-list-items/SportsItem.js +46 -34
  243. package/dist/components/SectionedContent/SectionedContent.d.ts +11 -3
  244. package/dist/components/SectionedContent/SectionedContent.js +14 -15
  245. package/dist/components/SectionedContent/index.d.ts +2 -1
  246. package/dist/components/Select/Select.d.ts +15 -11
  247. package/dist/components/Select/Select.js +21 -21
  248. package/dist/components/Select/index.d.ts +2 -1
  249. package/dist/components/ShowAboutContent/ShowAboutContent.d.ts +10 -8
  250. package/dist/components/ShowAboutContent/ShowAboutContent.js +27 -28
  251. package/dist/components/ShowAboutContent/index.d.ts +2 -1
  252. package/dist/components/ShowAboutLayout/ShowAboutLayout.d.ts +10 -8
  253. package/dist/components/ShowAboutLayout/ShowAboutLayout.js +91 -42
  254. package/dist/components/ShowAboutLayout/index.d.ts +2 -1
  255. package/dist/components/SocialLinks/SocialLinks.d.ts +15 -9
  256. package/dist/components/SocialLinks/SocialLinks.js +192 -138
  257. package/dist/components/SocialShareBlock/SocialShareBlock.d.ts +9 -8
  258. package/dist/components/SocialShareBlock/SocialShareBlock.js +20 -22
  259. package/dist/components/SocialShareBlock/index.d.ts +2 -1
  260. package/dist/components/SocialShareButton/SocialShareButton.d.ts +8 -7
  261. package/dist/components/SocialShareButton/SocialShareButton.js +3 -4
  262. package/dist/components/SocialShareButton/index.d.ts +2 -1
  263. package/dist/components/SocialShareButton/index.js +1 -1
  264. package/dist/components/StringList/StringList.d.ts +6 -5
  265. package/dist/components/StringList/StringList.js +16 -12
  266. package/dist/components/StringList/index.d.ts +2 -1
  267. package/dist/components/TabContent/TabContent.d.ts +5 -4
  268. package/dist/components/TabContent/TabContent.js +9 -7
  269. package/dist/components/TabContent/index.d.ts +2 -1
  270. package/dist/components/TabNavigation/TabNavigation.d.ts +7 -5
  271. package/dist/components/TabNavigation/TabNavigation.js +58 -53
  272. package/dist/components/TabNavigation/index.d.ts +2 -1
  273. package/dist/components/TabbedContent/TabbedContent.d.ts +20 -4
  274. package/dist/components/TabbedContent/TabbedContent.js +24 -8
  275. package/dist/components/TabbedContent/index.d.ts +2 -1
  276. package/dist/components/TextArea/TextArea.d.ts +9 -1
  277. package/dist/components/TextArea/TextArea.js +13 -13
  278. package/dist/components/TextArea/index.d.ts +2 -1
  279. package/dist/components/UpcomingList/UpcomingList.d.ts +5 -4
  280. package/dist/components/UpcomingList/UpcomingList.js +55 -41
  281. package/dist/containers/GetFeatruedListContainer.d.ts +22 -15
  282. package/dist/containers/GetFeatruedListContainer.js +16 -16
  283. package/dist/containers/NowPlayingContainer.d.ts +17 -15
  284. package/dist/containers/NowPlayingContainer.js +18 -16
  285. package/dist/custom-elements.d.js +1 -0
  286. package/dist/data-resources/FakeDataResource.d.ts +77 -68
  287. package/dist/data-resources/FakeDataResource.js +244 -142
  288. package/dist/error-boundries/BlankErrorBoundry.d.ts +14 -9
  289. package/dist/error-boundries/BlankErrorBoundry.js +5 -5
  290. package/dist/error-boundries/GeneralErrorBoundry.d.ts +15 -10
  291. package/dist/error-boundries/GeneralErrorBoundry.js +10 -10
  292. package/dist/hooks/useGetSchedule.d.ts +12 -4
  293. package/dist/hooks/useGetSchedule.js +31 -27
  294. package/dist/hooks/useGetUpcoming.d.ts +8 -6
  295. package/dist/hooks/useGetUpcoming.js +22 -25
  296. package/dist/icons/Facebook.js +6 -6
  297. package/dist/icons/Tiktok.js +15 -7
  298. package/dist/icons/Twitter.js +7 -7
  299. package/dist/index.js +1 -1
  300. package/dist/logger-C0N7U0YY.mjs +67 -0
  301. package/dist/settings.js +6 -5
  302. package/dist/utils/Redirect.d.ts +2 -2
  303. package/dist/utils/analytics.js +1 -1
  304. package/dist/utils/date-helpers.d.ts +3 -2
  305. package/dist/utils/date-helpers.js +26 -26
  306. package/dist/utils/events.js +8 -6
  307. package/dist/utils/getFeaturedList.d.ts +28 -8
  308. package/dist/utils/getFeaturedList.js +58 -45
  309. package/dist/utils/getFeaturedListImages.d.ts +15 -5
  310. package/dist/utils/getFeaturedListImages.js +27 -16
  311. package/dist/utils/getOnNowProgram.d.ts +17 -3
  312. package/dist/utils/getOnNowProgram.js +106 -68
  313. package/dist/utils/getSchedule.d.ts +8 -6
  314. package/dist/utils/getSchedule.js +6 -1
  315. package/dist/utils/getUpcomingPrograms.d.ts +10 -7
  316. package/dist/utils/getUpcomingPrograms.js +5 -4
  317. package/dist/utils/getViewingPlatforms.d.ts +6 -16
  318. package/dist/utils/getViewingPlatforms.js +14 -11
  319. package/dist/utils/gtm.js +1 -1
  320. package/dist/utils/helpers.d.ts +9 -9
  321. package/dist/utils/helpers.js +69 -65
  322. package/dist/utils/program-helpers.d.ts +14 -20
  323. package/dist/utils/program-helpers.js +9 -8
  324. package/dist/utils/series-helpers.d.ts +14 -20
  325. package/dist/utils/series-helpers.js +9 -8
  326. package/package.json +18 -14
  327. package/dist/Carousel.module-DOrBKQEQ.mjs +0 -14
  328. package/dist/PageHero.module-BdV8z_Xv.mjs +0 -8
  329. package/dist/ResultsTable.module-B7M9y7hd.mjs +0 -14
  330. package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/NetworkCalloutSlide.stories.d.ts +0 -28
  331. package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/NetworkCalloutSlide.stories.js +0 -42
  332. package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.stories.d.ts +0 -170
  333. package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.stories.js +0 -193
  334. package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.stories.d.ts +0 -17
  335. package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.stories.js +0 -49
  336. package/dist/facebook-HCcA1M1m.mjs +0 -54
@@ -1,217 +1,287 @@
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 { publish as X } from "../../utils/events.js";
4
- import { classes as f } from "../../utils/helpers.js";
5
- import { s as a, C as oe } from "../../ChoicesItem-CGIr6Qga.mjs";
6
- import { s as v, C as ie, A as ne } from "../../Form.module-Cd8qH2rj.mjs";
7
- import { X as ae } from "../../x-C-QzJ-qD.mjs";
8
- import { T as ue } from "../../triangle-PcCcGXjr.mjs";
9
- import { P as j } from "../../index-DC2JJV3a.mjs";
10
- function I() {
11
- return I = Object.assign || function(t) {
1
+ import { jsxs as w, jsx as r } from "react/jsx-runtime";
2
+ import X, { forwardRef as ne, useState as C, useRef as I } from "react";
3
+ import { publish as G } from "../../utils/events.js";
4
+ import { classes as m } from "../../utils/helpers.js";
5
+ import { s as a, C as ie } from "../../ChoicesItem-CT9fXB0I.mjs";
6
+ import { s as v, C as oe, A as ae } from "../../Form.module-Cd8qH2rj.mjs";
7
+ import { X as ue } from "../../x-C-QzJ-qD.mjs";
8
+ import { T as de } from "../../triangle-PcCcGXjr.mjs";
9
+ import { P as x } from "../../index-DC2JJV3a.mjs";
10
+ function R() {
11
+ return R = Object.assign || function(t) {
12
12
  for (var u = 1; u < arguments.length; u++) {
13
13
  var l = arguments[u];
14
- for (var o in l)
15
- Object.prototype.hasOwnProperty.call(l, o) && (t[o] = l[o]);
14
+ for (var n in l)
15
+ Object.prototype.hasOwnProperty.call(l, n) && (t[n] = l[n]);
16
16
  }
17
17
  return t;
18
- }, I.apply(this, arguments);
18
+ }, R.apply(this, arguments);
19
19
  }
20
- function de(t, u) {
20
+ function fe(t, u) {
21
21
  if (t == null) return {};
22
- var l = he(t, u), o, c;
22
+ var l = he(t, u), n, c;
23
23
  if (Object.getOwnPropertySymbols) {
24
24
  var i = Object.getOwnPropertySymbols(t);
25
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]);
26
+ n = i[c], !(u.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(t, n) && (l[n] = t[n]);
27
27
  }
28
28
  return l;
29
29
  }
30
30
  function he(t, u) {
31
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]);
32
+ var l = {}, n = Object.keys(t), c, i;
33
+ for (i = 0; i < n.length; i++)
34
+ c = n[i], !(u.indexOf(c) >= 0) && (l[c] = t[c]);
35
35
  return l;
36
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({
37
+ var L = ne(function(t, u) {
38
+ var l = t.color, n = l === void 0 ? "currentColor" : l, c = t.size, i = c === void 0 ? 24 : c, T = fe(t, ["color", "size"]);
39
+ return /* @__PURE__ */ X.createElement("svg", R({
40
40
  ref: u,
41
41
  xmlns: "http://www.w3.org/2000/svg",
42
42
  width: i,
43
43
  height: i,
44
44
  viewBox: "0 0 24 24",
45
45
  fill: "none",
46
- stroke: o,
46
+ stroke: n,
47
47
  strokeWidth: "2",
48
48
  strokeLinecap: "round",
49
49
  strokeLinejoin: "round"
50
- }, P), /* @__PURE__ */ F.createElement("polyline", {
50
+ }, T), /* @__PURE__ */ X.createElement("polyline", {
51
51
  points: "6 9 12 15 18 9"
52
52
  }));
53
53
  });
54
- R.propTypes = {
55
- color: j.string,
56
- size: j.oneOfType([j.string, j.number])
54
+ L.propTypes = {
55
+ color: x.string,
56
+ size: x.oneOfType([x.string, x.number])
57
57
  };
58
- R.displayName = "ChevronDown";
59
- function Ce({
58
+ L.displayName = "ChevronDown";
59
+ function ke({
60
60
  name: t,
61
61
  options: u,
62
62
  label: l = "",
63
- width: o = 100,
63
+ width: n = 100,
64
64
  multiple: c = !1,
65
65
  placeholder: i = "",
66
- ValidIcon: P = ie,
67
- InvalidIcon: G = ne,
68
- expandIconType: L = "default",
66
+ ValidIcon: T = oe,
67
+ InvalidIcon: J = ae,
68
+ expandIconType: V = "default",
69
69
  // default, chevron
70
- showValidation: x = !0,
71
- ...J
70
+ showValidation: E = !0,
71
+ ...Q
72
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) => ({
73
+ var U, B, F;
74
+ const [Y, Z] = C(`${v["form-field__input"]}`), p = I(null), $ = I(null), [q, K] = C(""), [D, ee] = C("clean"), [N, M] = C([]), [h, O] = C(u.map((e, d) => ({
75
75
  ...e,
76
76
  id: e != null && e.id ? e == null ? void 0 : e.id : `${t}-${d + 1}`,
77
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") {
78
+ }))), [A, te] = C(null), [g, W] = C("hidden"), o = I(-1), se = `input-width--${n}`, z = (e, d, f = "selected") => {
79
+ if (!c && f === "selected" || f === "highlighted") {
80
80
  for (const s of e)
81
- if (s.status === h) {
81
+ if (s.status === f) {
82
82
  s.status = "active";
83
83
  break;
84
84
  }
85
85
  }
86
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);
87
+ if (s.id === d && (c && s.status !== "selected" && f === "selected" && M([...N, s]), s.status !== "selected" && (s.status = f), f === "selected")) {
88
+ te(s);
89
89
  break;
90
90
  }
91
91
  return e;
92
- }, se = () => {
92
+ }, ce = () => {
93
93
  setTimeout(() => {
94
- w.current.checkValidity() ? q("") : q(w.current.validationMessage);
94
+ p.current && p.current.checkValidity() ? K("") : p.current && K(p.current.validationMessage);
95
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";
96
+ }, k = (e) => {
97
+ e == null || e.stopPropagation(), ee("touched"), Z(`${v["form-field__input"]} ${v["input--touched"]}`), g === "hidden" ? W("visible") : (W("hidden"), ce());
98
+ }, re = (e) => {
99
+ const f = N.filter((y) => y.id !== e);
100
+ M([...f]);
101
+ let s = h;
102
+ const _ = (y, j) => {
103
+ for (const P of y) {
104
+ if (P.id === j) {
105
+ P.status = "active";
106
106
  break;
107
107
  }
108
- O.subcategories.length && _(O.subcategories, N);
108
+ P.subcategories.length && _(P.subcategories, j);
109
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;
110
+ return y;
111
+ }, b = _(s, e);
112
+ O([...b]);
113
+ const S = document.querySelector(`select[name="${t}"] > option[value="${e}"]`);
114
+ S && (S.selected = !1);
115
+ }, le = (e) => {
116
+ const d = structuredClone(h), f = z(d, e);
117
+ O([...f]), k(null), o.current = -1;
118
+ const s = h.find((b) => b.id === e);
119
+ if (!s) return;
120
+ const _ = document.querySelector(`select[name="${t}"] > option[value="${s.value}"]`);
121
+ _ && (_.selected = !0), G("scripps:customselect:selected", { value: s.value });
122
+ }, H = (e) => {
123
+ if (e.key === "Tab" || (e.key === "ArrowDown" || e.key === "ArrowUp") && g !== "visible") return !0;
120
124
  e.stopPropagation(), e.preventDefault();
121
- const d = e.key, h = m, s = (_) => {
122
- const S = z(h, m[_].id, "highlighted");
123
- $([...S]);
125
+ const d = e.key, f = h, s = (_) => {
126
+ const b = z(f, h[_].id, "highlighted");
127
+ O([...b]);
124
128
  };
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
+ if (d === "ArrowDown" && g === "visible")
130
+ o.current < h.length - 1 ? (s(o.current + 1), o.current++) : (s(0), o.current = 0);
131
+ else if (d === "ArrowUp" && g === "visible")
132
+ o.current > 0 ? (s(o.current - 1), o.current--) : (s(h.length - 1), o.current = h.length - 1);
129
133
  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 });
134
+ if (g === "visible" && o.current !== -1) {
135
+ const _ = h[o.current].id, b = z(f, _);
136
+ O([...b]), k(null), o.current = -1;
137
+ const S = h.find((j) => j.id === _);
138
+ if (!S) return;
139
+ const y = document.querySelector(`select[name="${t}"] > option[value="${S.value}"]`);
140
+ y && (y.selected = !0), G("scripps:customselect:selected", { value: S.value });
135
141
  } else
136
- C();
137
- else if (d === "Escape" && p === "visible")
138
- C(), n.current = -1;
142
+ k(null);
143
+ else if (d === "Escape" && g === "visible")
144
+ k(null), o.current = -1;
139
145
  else
140
146
  return !1;
141
- 30 * n.current > 160 ? T.current.scrollTo(0, 30 * n.current) : T.current.scrollTo(0, 0);
147
+ 30 * o.current > 160 && $.current ? $.current.scrollTo(0, 30 * o.current) : $.current && $.current.scrollTo(0, 0);
142
148
  };
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
- ] });
149
+ return /* @__PURE__ */ w(
150
+ "label",
151
+ {
152
+ className: m([
153
+ v["form-field"],
154
+ v[se]
155
+ ]),
156
+ htmlFor: t,
157
+ children: [
158
+ E && /* @__PURE__ */ w(
159
+ "i",
160
+ {
161
+ className: [
162
+ v["form-field__icon"],
163
+ (U = p.current) != null && U.validity.valid ? "" : v["form-field__icon--invalid"]
164
+ ].join(" "),
165
+ style: l === "" ? { top: "0.4em" } : {},
166
+ children: [
167
+ ((B = p.current) == null ? void 0 : B.checkValidity()) && D === "touched" && /* @__PURE__ */ r(T, {}),
168
+ !((F = p.current) != null && F.checkValidity()) && D === "touched" && /* @__PURE__ */ r(J, {})
169
+ ]
170
+ }
171
+ ),
172
+ l !== "" && /* @__PURE__ */ r("span", { className: v["form-field__label"], children: l }),
173
+ /* @__PURE__ */ w(
174
+ "select",
175
+ {
176
+ className: m([
177
+ a["custom-select__select"],
178
+ D === "touched" && E ? a["custom-select__select--touched"] : ""
179
+ ]),
180
+ multiple: c,
181
+ name: t,
182
+ ref: p,
183
+ tabIndex: -1,
184
+ ...Q,
185
+ children: [
186
+ /* @__PURE__ */ r("option", { value: "" }),
187
+ u.length && u.map((e) => /* @__PURE__ */ r(
188
+ "option",
189
+ {
190
+ selected: e.selected,
191
+ value: e.value,
192
+ children: e.label
193
+ },
194
+ `option-${e.value}`
195
+ ))
196
+ ]
197
+ }
198
+ ),
199
+ /* @__PURE__ */ w(
200
+ "div",
201
+ {
202
+ className: m([Y, a["custom-select"], "custom-select"]),
203
+ tabIndex: 0,
204
+ onKeyDown: H,
205
+ children: [
206
+ c && /* @__PURE__ */ w(
207
+ "ul",
208
+ {
209
+ className: m([a["custom-select__selections"], "custom-select__selections"]),
210
+ onClick: k,
211
+ children: [
212
+ N.length !== 0 && N.map((e) => /* @__PURE__ */ w(
213
+ "li",
214
+ {
215
+ className: m([a["custom-select__selected"], "custom-select__selected"]),
216
+ children: [
217
+ e.label,
218
+ /* @__PURE__ */ r(
219
+ "button",
220
+ {
221
+ className: a["custom-select__remove"],
222
+ title: "remove",
223
+ type: "button",
224
+ onClick: (d) => {
225
+ d.stopPropagation(), re(e.id);
226
+ },
227
+ children: /* @__PURE__ */ r(ue, { height: 16, width: 16 })
228
+ }
229
+ )
230
+ ]
231
+ }
232
+ )),
233
+ N.length === 0 && i !== "" && /* @__PURE__ */ r("li", { className: m([a["custom-select__placeholder"], "custom-select__placeholder"]), children: i })
234
+ ]
235
+ }
236
+ ),
237
+ !c && /* @__PURE__ */ w(
238
+ "div",
239
+ {
240
+ className: `${a["custom-select__selection"]}`,
241
+ onClick: k,
242
+ children: [
243
+ A && A.label,
244
+ !A && i !== "" && /* @__PURE__ */ r("span", { className: m([a["custom-select__placeholder"], "custom-select__placeholder"]), children: i })
245
+ ]
246
+ }
247
+ ),
248
+ /* @__PURE__ */ r(
249
+ "div",
250
+ {
251
+ className: m([
252
+ a["custom-select__choices-wrapper"],
253
+ "custom-select__choices-wrapper",
254
+ g === "visible" ? "" : a["custom-select__choices-wrapper--hidden"]
255
+ ]),
256
+ children: /* @__PURE__ */ r(
257
+ "div",
258
+ {
259
+ className: m([a["custom-select__choices"], "custom-select__choices"]),
260
+ ref: $,
261
+ onKeyDown: H,
262
+ children: /* @__PURE__ */ r("ul", { children: h.length !== 0 && h.map((e) => /* @__PURE__ */ r(
263
+ ie,
264
+ {
265
+ handleOnClick: le,
266
+ item: e
267
+ },
268
+ `choice-${e.id}`
269
+ )) })
270
+ }
271
+ )
272
+ }
273
+ ),
274
+ V === "default" && /* @__PURE__ */ r("i", { className: a["custom-select__icon"], children: /* @__PURE__ */ r(de, {}) }),
275
+ V === "chevron" && /* @__PURE__ */ r("i", { className: m([a["custom-select__icon"], a["custom-select__icon--chevron"], "custom-select__icon--chevron"]), children: /* @__PURE__ */ r(L, {}) })
276
+ ]
277
+ }
278
+ ),
279
+ q !== "" && E && /* @__PURE__ */ r("div", { className: m([v["form-field__error-message"], "form-field__error-message"]), children: q })
280
+ ]
281
+ }
282
+ );
213
283
  }
214
284
  export {
215
- Ce as CustomSelect,
216
- Ce as default
285
+ ke as CustomSelect,
286
+ ke as default
217
287
  };
@@ -1 +1,2 @@
1
- export { CustomSelect, CustomSelect as default } from './CustomSelect';
1
+ export { CustomSelect } from './CustomSelect';
2
+ export { CustomSelect as default } from './CustomSelect';
@@ -1,5 +1,2 @@
1
- export function DateNavigation({ weeks, handleDateChanged }: {
2
- weeks?: never[][] | undefined;
3
- handleDateChanged?: (() => boolean) | undefined;
4
- }): import("react/jsx-runtime").JSX.Element;
1
+ export declare function DateNavigation(): JSX.Element;
5
2
  export default DateNavigation;