@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.
Files changed (361) 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/ActionButton.css +1 -1
  7. package/dist/assets/AdBlock.css +1 -1
  8. package/dist/assets/AirDateFormatter.css +1 -1
  9. package/dist/assets/AnchorTag.css +1 -1
  10. package/dist/assets/BasicGridModule.css +1 -1
  11. package/dist/assets/Button.css +1 -1
  12. package/dist/assets/Carousel.css +1 -1
  13. package/dist/assets/CarouselSlide.css +1 -1
  14. package/dist/assets/ChannelSearch.css +1 -1
  15. package/dist/assets/ChoicesItem.css +1 -1
  16. package/dist/assets/ContentHero.css +1 -1
  17. package/dist/assets/CtaBlock.css +1 -1
  18. package/dist/assets/CustomDataList.css +1 -1
  19. package/dist/assets/DateNavigation.css +1 -1
  20. package/dist/assets/DeviceAndPlatformLists.css +1 -1
  21. package/dist/assets/Figure.css +1 -1
  22. package/dist/assets/Figure2.css +1 -1
  23. package/dist/assets/FindUs.css +1 -1
  24. package/dist/assets/GradientButton.css +1 -1
  25. package/dist/assets/ImageCard.css +1 -1
  26. package/dist/assets/InlineNavigation.css +1 -1
  27. package/dist/assets/LogoListItem.css +1 -1
  28. package/dist/assets/ModalContainer.css +1 -1
  29. package/dist/assets/PageHero.css +1 -1
  30. package/dist/assets/ProgramAirdate.css +1 -1
  31. package/dist/assets/PromotionBlock.css +1 -1
  32. package/dist/assets/ResultsTable.css +1 -1
  33. package/dist/assets/ScheduleLayout.css +1 -0
  34. package/dist/assets/ScheduleList.css +1 -1
  35. package/dist/assets/ShowAboutLayout.css +1 -1
  36. package/dist/assets/ShowSlide.css +1 -1
  37. package/dist/assets/SocialLinks.css +1 -1
  38. package/dist/assets/TextSlide.css +1 -1
  39. package/dist/assets/TwoColumnSlide.css +1 -1
  40. package/dist/assets/UpcomingList.css +1 -1
  41. package/dist/components/ActionButton/ActionButton.d.ts +20 -1
  42. package/dist/components/ActionButton/ActionButton.js +36 -36
  43. package/dist/components/ActionButton/index.d.ts +2 -1
  44. package/dist/components/AdBlock/AdBlock.d.ts +20 -1
  45. package/dist/components/AdBlock/AdBlock.js +118 -83
  46. package/dist/components/AdBlock/index.d.ts +2 -1
  47. package/dist/components/AdjustableTwoColumnGrid/AdjustableTwoColumnGrid.d.ts +7 -1
  48. package/dist/components/AdjustableTwoColumnGrid/AdjustableTwoColumnGrid.js +17 -12
  49. package/dist/components/AdjustableTwoColumnGrid/index.d.ts +2 -1
  50. package/dist/components/AirDateFormatter/AirDateFormatter.d.ts +5 -4
  51. package/dist/components/AirDateFormatter/AirDateFormatter.js +21 -22
  52. package/dist/components/AirDateFormatter/index.d.ts +2 -1
  53. package/dist/components/AnchorTag/AnchorTag.d.ts +10 -1
  54. package/dist/components/AnchorTag/AnchorTag.js +22 -23
  55. package/dist/components/AnchorTag/index.d.ts +2 -1
  56. package/dist/components/BCVideoPlayer/BCVideoPlayer.d.ts +19 -12
  57. package/dist/components/BCVideoPlayer/BCVideoPlayer.js +39 -37
  58. package/dist/components/BCVideoPlayer/index.d.ts +2 -1
  59. package/dist/components/BasicGridModule/BasicGridModule.d.ts +19 -17
  60. package/dist/components/BasicGridModule/BasicGridModule.js +57 -51
  61. package/dist/components/BasicGridModule/index.d.ts +2 -1
  62. package/dist/components/Button/Button.d.ts +18 -17
  63. package/dist/components/Button/Button.js +31 -32
  64. package/dist/components/Button/index.d.ts +2 -1
  65. package/dist/components/ButtonAnchor/ButtonAnchor.d.ts +5 -5
  66. package/dist/components/ButtonAnchor/ButtonAnchor.js +7 -5
  67. package/dist/components/ButtonAnchor/index.d.ts +2 -1
  68. package/dist/components/Carousel/Carousel.d.ts +7 -24
  69. package/dist/components/Carousel/Carousel.js +113 -113
  70. package/dist/components/Carousel/CarouselUtils.class.d.ts +16 -28
  71. package/dist/components/Carousel/CarouselUtils.class.js +85 -55
  72. package/dist/components/Carousel/index.d.ts +2 -1
  73. package/dist/components/Carousel/navigations/Pagination.js +12 -10
  74. package/dist/components/CarouselSlide/CarouselSlide.d.ts +8 -6
  75. package/dist/components/CarouselSlide/CarouselSlide.js +25 -23
  76. package/dist/components/CarouselSlide/index.d.ts +2 -1
  77. package/dist/components/CarouselSlide/slide-layouts/Empty/Empty.d.ts +1 -1
  78. package/dist/components/CarouselSlide/slide-layouts/Empty/Empty.js +3 -4
  79. package/dist/components/CarouselSlide/slide-layouts/Empty/index.d.ts +2 -1
  80. package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.d.ts +2 -2
  81. package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.js +10 -11
  82. package/dist/components/CarouselSlide/slide-layouts/Figure/index.d.ts +2 -1
  83. package/dist/components/CarouselSlide/slide-layouts/ImageCard/ImageCard.d.ts +1 -1
  84. package/dist/components/CarouselSlide/slide-layouts/ImageCard/ImageCard.js +3 -4
  85. package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.d.ts +18 -16
  86. package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.js +49 -34
  87. package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.d.ts +2 -2
  88. package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.js +11 -12
  89. package/dist/components/CarouselSlide/slide-layouts/Text/index.d.ts +2 -1
  90. package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.d.ts +5 -4
  91. package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.js +10 -11
  92. package/dist/components/CarouselSlide/slide-layouts/Video/VideoSlide.d.ts +8 -1
  93. package/dist/components/CarouselSlide/slide-layouts/Video/VideoSlide.js +19 -15
  94. package/dist/components/CastInfoLayout/CastInfoLayout.d.ts +16 -1
  95. package/dist/components/CastInfoLayout/CastInfoLayout.js +31 -21
  96. package/dist/components/ChannelSearch/ChannelSearch.d.ts +18 -16
  97. package/dist/components/ChannelSearch/ChannelSearch.js +80 -63
  98. package/dist/components/ChannelSearch/index.d.ts +2 -1
  99. package/dist/components/ChoicesItem/ChoicesItem.d.ts +7 -4
  100. package/dist/components/ChoicesItem/ChoicesItem.js +3 -4
  101. package/dist/components/ChoicesItem/index.d.ts +2 -1
  102. package/dist/components/ChoicesItem/index.js +1 -1
  103. package/dist/components/ChoicesList/ChoicesList.d.ts +4 -3
  104. package/dist/components/ChoicesList/ChoicesList.js +3 -4
  105. package/dist/components/ChoicesList/index.d.ts +2 -1
  106. package/dist/components/Concat/Concat.d.ts +4 -3
  107. package/dist/components/Concat/Concat.js +5 -5
  108. package/dist/components/Concat/index.d.ts +2 -1
  109. package/dist/components/CreateChoiceList/CreateChoiceList.d.ts +7 -5
  110. package/dist/components/CreateChoiceList/CreateChoiceList.js +38 -9
  111. package/dist/components/CreateChoiceList/index.d.ts +2 -1
  112. package/dist/components/CtaBlock/CtaBlock.d.ts +13 -15
  113. package/dist/components/CtaBlock/CtaBlock.js +23 -22
  114. package/dist/components/CtaBlock/index.d.ts +2 -1
  115. package/dist/components/CustomDataList/CustomDataList.d.ts +12 -10
  116. package/dist/components/CustomDataList/CustomDataList.js +200 -174
  117. package/dist/components/CustomDataList/index.d.ts +2 -1
  118. package/dist/components/CustomSelect/CustomSelect.d.ts +16 -13
  119. package/dist/components/CustomSelect/CustomSelect.js +224 -154
  120. package/dist/components/CustomSelect/index.d.ts +2 -1
  121. package/dist/components/DateNavigation/DateNavigation.d.ts +1 -4
  122. package/dist/components/DateNavigation/DateNavigation.js +125 -82
  123. package/dist/components/DateNavigation/index.d.ts +2 -1
  124. package/dist/components/DatePicker/index.d.ts +2 -1
  125. package/dist/components/DeviceAndPlatformLists/DeviceAndPlatformLists.d.ts +14 -4
  126. package/dist/components/DeviceAndPlatformLists/DeviceAndPlatformLists.js +40 -33
  127. package/dist/components/DeviceAndPlatformLists/index.d.ts +2 -1
  128. package/dist/components/DrawerNavigation/DrawerNavigation.d.ts +21 -1
  129. package/dist/components/DrawerNavigation/DrawerNavigation.js +75 -56
  130. package/dist/components/DrawerNavigation/index.d.ts +2 -1
  131. package/dist/components/EqualSizeFlexRow/EqualSizeFlexRow.d.ts +6 -5
  132. package/dist/components/EqualSizeFlexRow/EqualSizeFlexRow.js +18 -14
  133. package/dist/components/EqualSizeFlexRow/index.d.ts +2 -1
  134. package/dist/components/EqualSizeGrid/EqualSizeGrid.d.ts +7 -6
  135. package/dist/components/EqualSizeGrid/EqualSizeGrid.js +17 -12
  136. package/dist/components/EqualSizeGrid/index.d.ts +2 -1
  137. package/dist/components/ErrorHandler/ErrorHandler.d.ts +5 -4
  138. package/dist/components/ErrorHandler/ErrorHandler.js +3 -4
  139. package/dist/components/ErrorHandler/index.d.ts +2 -1
  140. package/dist/components/FeaturedList/FeaturedList.d.ts +8 -6
  141. package/dist/components/FeaturedList/FeaturedList.js +44 -36
  142. package/dist/components/FeaturedList/index.d.ts +2 -1
  143. package/dist/components/Figure/Figure.d.ts +5 -4
  144. package/dist/components/Figure/Figure.js +8 -9
  145. package/dist/components/Figure/index.d.ts +2 -1
  146. package/dist/components/FindUs/FindUs.d.ts +24 -1
  147. package/dist/components/FindUs/FindUs.js +70 -63
  148. package/dist/components/FindUs/index.d.ts +2 -1
  149. package/dist/components/FooterNavigation/FooterNavigation.d.ts +9 -3
  150. package/dist/components/FooterNavigation/FooterNavigation.js +10 -11
  151. package/dist/components/FooterNavigation/index.d.ts +2 -1
  152. package/dist/components/GenericList/GenericList.d.ts +6 -5
  153. package/dist/components/GenericList/GenericList.js +13 -14
  154. package/dist/components/GenericList/index.d.ts +2 -1
  155. package/dist/components/GetAirdateWrapper/GetAirdateWrapper.d.ts +9 -8
  156. package/dist/components/GetAirdateWrapper/GetAirdateWrapper.js +46 -30
  157. package/dist/components/GetAirdateWrapper/index.d.ts +2 -1
  158. package/dist/components/GradientButton/GradientButton.d.ts +15 -14
  159. package/dist/components/GradientButton/GradientButton.js +37 -40
  160. package/dist/components/GradientButton/index.d.ts +2 -1
  161. package/dist/components/GridList/GridList.d.ts +6 -5
  162. package/dist/components/GridList/GridList.js +14 -10
  163. package/dist/components/GridList/index.d.ts +2 -1
  164. package/dist/components/ImageCard/ImageCard.d.ts +27 -1
  165. package/dist/components/ImageCard/ImageCard.js +59 -58
  166. package/dist/components/ImageCard/ImageCardCore.d.ts +6 -2
  167. package/dist/components/ImageCard/ImageCardCore.js +114 -89
  168. package/dist/components/ImageReplacementAnchor/ImageReplacementAnchor.d.ts +11 -14
  169. package/dist/components/ImageReplacementAnchor/ImageReplacementAnchor.js +25 -18
  170. package/dist/components/InfoPanel/InfoPanel.d.ts +10 -8
  171. package/dist/components/InfoPanel/InfoPanel.js +2 -2
  172. package/dist/components/InfoPanel/index.d.ts +2 -1
  173. package/dist/components/InlineNavigation/InlineNavigation.d.ts +7 -5
  174. package/dist/components/InlineNavigation/InlineNavigation.js +13 -10
  175. package/dist/components/Input/Input.d.ts +10 -9
  176. package/dist/components/Input/Input.js +47 -40
  177. package/dist/components/Input/index.d.ts +2 -1
  178. package/dist/components/InstructionsList/InstructionsList.d.ts +5 -4
  179. package/dist/components/InstructionsList/InstructionsList.js +20 -10
  180. package/dist/components/InstructionsList/index.d.ts +2 -1
  181. package/dist/components/Loading/Loading.d.ts +8 -7
  182. package/dist/components/Loading/Loading.js +25 -20
  183. package/dist/components/Loading/index.d.ts +2 -1
  184. package/dist/components/LoadingV2/LoadingV2.d.ts +7 -6
  185. package/dist/components/LoadingV2/LoadingV2.js +31 -21
  186. package/dist/components/LoadingV2/index.d.ts +2 -1
  187. package/dist/components/LogoListItem/LogoListItem.d.ts +7 -6
  188. package/dist/components/LogoListItem/LogoListItem.js +34 -17
  189. package/dist/components/LogoListItem/index.d.ts +2 -1
  190. package/dist/components/LogoNavigation/LogoNavigation.d.ts +13 -4
  191. package/dist/components/LogoNavigation/LogoNavigation.js +23 -18
  192. package/dist/components/LogoNavigation/index.d.ts +2 -1
  193. package/dist/components/ModalContainer/ModalContainer.d.ts +8 -8
  194. package/dist/components/ModalContainer/ModalContainer.js +84 -72
  195. package/dist/components/ModalContainer/index.d.ts +2 -1
  196. package/dist/components/MultiLayeredFigure/MultiLayeredFigure.d.ts +6 -5
  197. package/dist/components/MultiLayeredFigure/MultiLayeredFigure.js +13 -10
  198. package/dist/components/MultiLayeredFigure/index.d.ts +2 -1
  199. package/dist/components/NavList/NavList.d.ts +9 -7
  200. package/dist/components/NavList/NavList.js +56 -20
  201. package/dist/components/NavList/index.d.ts +2 -1
  202. package/dist/components/Overlay/Overlay.d.ts +5 -5
  203. package/dist/components/Overlay/Overlay.js +8 -5
  204. package/dist/components/PageHero/PageHero.d.ts +6 -5
  205. package/dist/components/PageHero/PageHero.js +29 -16
  206. package/dist/components/PageHero/index.d.ts +2 -1
  207. package/dist/components/PageHero/page-hero-layouts/ContentHero/ContentHero.d.ts +2 -13
  208. package/dist/components/PageHero/page-hero-layouts/ContentHero/ContentHero.js +17 -10
  209. package/dist/components/PageHero/page-hero-layouts/ContentHero/index.d.ts +2 -1
  210. package/dist/components/PageHero/page-hero-layouts/IONShow/IONShowHero.d.ts +7 -5
  211. package/dist/components/PageHero/page-hero-layouts/IONShow/IONShowHero.js +108 -42
  212. package/dist/components/PageHero/page-hero-layouts/IONShow/index.d.ts +2 -1
  213. package/dist/components/PageHero/page-hero-layouts/ImageOnly/ImageOnlyHero.d.ts +2 -12
  214. package/dist/components/PageHero/page-hero-layouts/ImageOnly/ImageOnlyHero.js +13 -7
  215. package/dist/components/PageHero/page-hero-layouts/ImageOnly/index.d.ts +2 -1
  216. package/dist/components/PageHero/page-hero-layouts/page-hero.d.js +1 -0
  217. package/dist/components/ProgramAirdate/ProgramAirdate.d.ts +14 -10
  218. package/dist/components/ProgramAirdate/ProgramAirdate.js +72 -67
  219. package/dist/components/ProgramAirdate/index.d.ts +2 -1
  220. package/dist/components/PromotionBlock/PromotionBlock.d.ts +11 -4
  221. package/dist/components/PromotionBlock/PromotionBlock.js +36 -26
  222. package/dist/components/PromotionBlock/index.d.ts +2 -1
  223. package/dist/components/PromotionsRowBlock/PromotionsRowBlock.d.ts +5 -4
  224. package/dist/components/PromotionsRowBlock/PromotionsRowBlock.js +8 -6
  225. package/dist/components/PromotionsRowBlock/index.d.ts +2 -1
  226. package/dist/components/PromotionsRowModule/PromotionsRowModule.d.ts +25 -5
  227. package/dist/components/PromotionsRowModule/PromotionsRowModule.js +48 -48
  228. package/dist/components/PromotionsRowModule/index.d.ts +2 -1
  229. package/dist/components/RescanInstructions/RescanInstructions.d.ts +3 -3
  230. package/dist/components/RescanInstructions/RescanInstructions.js +29 -18
  231. package/dist/components/RescanInstructions/index.d.ts +2 -1
  232. package/dist/components/ResponsiveImage/ResponsiveImage.d.ts +13 -12
  233. package/dist/components/ResponsiveImage/ResponsiveImage.js +16 -20
  234. package/dist/components/ResponsiveImage/index.d.ts +2 -1
  235. package/dist/components/ResultsTable/ResultsTable.d.ts +10 -6
  236. package/dist/components/ResultsTable/ResultsTable.js +21 -16
  237. package/dist/components/ResultsTable/index.d.ts +2 -1
  238. package/dist/components/ResultsTableBody/ResultsTableBody.d.ts +9 -5
  239. package/dist/components/ResultsTableBody/ResultsTableBody.js +21 -16
  240. package/dist/components/ResultsTableBody/index.d.ts +2 -1
  241. package/dist/components/ResultsTableHeader/ResultsTableHeader.d.ts +7 -3
  242. package/dist/components/ResultsTableHeader/ResultsTableHeader.js +4 -5
  243. package/dist/components/ResultsTableHeader/index.d.ts +2 -1
  244. package/dist/components/ScheduleLayout/ScheduleContext.d.ts +25 -0
  245. package/dist/components/ScheduleLayout/ScheduleContext.js +33 -0
  246. package/dist/components/ScheduleLayout/ScheduleLayout.d.ts +15 -5
  247. package/dist/components/ScheduleLayout/ScheduleLayout.js +76 -24
  248. package/dist/components/ScheduleLayout/index.d.ts +2 -1
  249. package/dist/components/ScheduleLayout/useScheduleContext.d.ts +14 -0
  250. package/dist/components/ScheduleLayout/useScheduleContext.js +12 -0
  251. package/dist/components/ScheduleList/ScheduleList.d.ts +5 -5
  252. package/dist/components/ScheduleList/ScheduleList.js +153 -60
  253. package/dist/components/ScheduleList/index.d.ts +2 -1
  254. package/dist/components/ScheduleList/schedule-list-items/AirDateSegment.d.ts +6 -4
  255. package/dist/components/ScheduleList/schedule-list-items/AirDateSegment.js +27 -16
  256. package/dist/components/ScheduleList/schedule-list-items/MovieItem.d.ts +9 -7
  257. package/dist/components/ScheduleList/schedule-list-items/MovieItem.js +46 -34
  258. package/dist/components/ScheduleList/schedule-list-items/SeriesItem.d.ts +9 -7
  259. package/dist/components/ScheduleList/schedule-list-items/SeriesItem.js +53 -37
  260. package/dist/components/ScheduleList/schedule-list-items/SportsItem.d.ts +9 -7
  261. package/dist/components/ScheduleList/schedule-list-items/SportsItem.js +46 -34
  262. package/dist/components/SectionedContent/SectionedContent.d.ts +11 -3
  263. package/dist/components/SectionedContent/SectionedContent.js +14 -15
  264. package/dist/components/SectionedContent/index.d.ts +2 -1
  265. package/dist/components/Select/Select.d.ts +15 -11
  266. package/dist/components/Select/Select.js +21 -21
  267. package/dist/components/Select/index.d.ts +2 -1
  268. package/dist/components/ShowAboutContent/ShowAboutContent.d.ts +10 -8
  269. package/dist/components/ShowAboutContent/ShowAboutContent.js +27 -28
  270. package/dist/components/ShowAboutContent/index.d.ts +2 -1
  271. package/dist/components/ShowAboutLayout/ShowAboutLayout.d.ts +10 -8
  272. package/dist/components/ShowAboutLayout/ShowAboutLayout.js +91 -42
  273. package/dist/components/ShowAboutLayout/index.d.ts +2 -1
  274. package/dist/components/SocialLinks/SocialLinks.d.ts +15 -9
  275. package/dist/components/SocialLinks/SocialLinks.js +192 -138
  276. package/dist/components/SocialShareBlock/SocialShareBlock.d.ts +9 -8
  277. package/dist/components/SocialShareBlock/SocialShareBlock.js +20 -22
  278. package/dist/components/SocialShareBlock/index.d.ts +2 -1
  279. package/dist/components/SocialShareButton/SocialShareButton.d.ts +8 -7
  280. package/dist/components/SocialShareButton/SocialShareButton.js +3 -4
  281. package/dist/components/SocialShareButton/index.d.ts +2 -1
  282. package/dist/components/SocialShareButton/index.js +1 -1
  283. package/dist/components/StringList/StringList.d.ts +6 -5
  284. package/dist/components/StringList/StringList.js +16 -12
  285. package/dist/components/StringList/index.d.ts +2 -1
  286. package/dist/components/TabContent/TabContent.d.ts +5 -4
  287. package/dist/components/TabContent/TabContent.js +9 -7
  288. package/dist/components/TabContent/index.d.ts +2 -1
  289. package/dist/components/TabNavigation/TabNavigation.d.ts +7 -5
  290. package/dist/components/TabNavigation/TabNavigation.js +58 -53
  291. package/dist/components/TabNavigation/index.d.ts +2 -1
  292. package/dist/components/TabbedContent/TabbedContent.d.ts +20 -4
  293. package/dist/components/TabbedContent/TabbedContent.js +24 -8
  294. package/dist/components/TabbedContent/index.d.ts +2 -1
  295. package/dist/components/TextArea/TextArea.d.ts +9 -1
  296. package/dist/components/TextArea/TextArea.js +13 -13
  297. package/dist/components/TextArea/index.d.ts +2 -1
  298. package/dist/components/UpcomingList/UpcomingList.d.ts +5 -4
  299. package/dist/components/UpcomingList/UpcomingList.js +55 -41
  300. package/dist/containers/GetFeatruedListContainer.d.ts +22 -15
  301. package/dist/containers/GetFeatruedListContainer.js +16 -16
  302. package/dist/containers/NowPlayingContainer.d.ts +17 -15
  303. package/dist/containers/NowPlayingContainer.js +18 -16
  304. package/dist/custom-elements.d.js +1 -0
  305. package/dist/data-resources/FakeDataResource.d.ts +77 -68
  306. package/dist/data-resources/FakeDataResource.js +244 -142
  307. package/dist/error-boundries/BlankErrorBoundry.d.ts +14 -9
  308. package/dist/error-boundries/BlankErrorBoundry.js +5 -5
  309. package/dist/error-boundries/GeneralErrorBoundry.d.ts +15 -10
  310. package/dist/error-boundries/GeneralErrorBoundry.js +10 -10
  311. package/dist/hooks/useGetSchedule.d.ts +12 -4
  312. package/dist/hooks/useGetSchedule.js +31 -27
  313. package/dist/hooks/useGetUpcoming.d.ts +8 -6
  314. package/dist/hooks/useGetUpcoming.js +22 -25
  315. package/dist/icons/Facebook.js +6 -6
  316. package/dist/icons/Tiktok.js +15 -7
  317. package/dist/icons/Twitter.js +7 -7
  318. package/dist/index.js +1 -1
  319. package/dist/logger-C0N7U0YY.mjs +67 -0
  320. package/dist/settings.d.ts +4 -3
  321. package/dist/settings.js +6 -5
  322. package/dist/types.d.js +27 -0
  323. package/dist/utils/Redirect.d.ts +2 -2
  324. package/dist/utils/analytics.js +1 -1
  325. package/dist/utils/date-helpers.d.ts +3 -2
  326. package/dist/utils/date-helpers.js +26 -26
  327. package/dist/utils/events.js +8 -6
  328. package/dist/utils/getFeaturedList.d.ts +28 -8
  329. package/dist/utils/getFeaturedList.js +58 -45
  330. package/dist/utils/getFeaturedListImages.d.ts +15 -5
  331. package/dist/utils/getFeaturedListImages.js +27 -16
  332. package/dist/utils/getOnNowProgram.d.ts +17 -3
  333. package/dist/utils/getOnNowProgram.js +106 -68
  334. package/dist/utils/getSchedule.d.ts +8 -6
  335. package/dist/utils/getSchedule.js +6 -1
  336. package/dist/utils/getUpcomingPrograms.d.ts +10 -7
  337. package/dist/utils/getUpcomingPrograms.js +5 -4
  338. package/dist/utils/getViewingPlatforms.d.ts +6 -16
  339. package/dist/utils/getViewingPlatforms.js +14 -11
  340. package/dist/utils/gtm.js +1 -1
  341. package/dist/utils/helpers.d.ts +9 -9
  342. package/dist/utils/helpers.js +69 -65
  343. package/dist/utils/program-helpers.d.ts +14 -20
  344. package/dist/utils/program-helpers.js +9 -8
  345. package/dist/utils/series-helpers.d.ts +14 -20
  346. package/dist/utils/series-helpers.js +9 -8
  347. package/package.json +16 -8
  348. package/dist/Carousel.module-DOrBKQEQ.mjs +0 -14
  349. package/dist/PageHero.module-BdV8z_Xv.mjs +0 -8
  350. package/dist/ResultsTable.module-B7M9y7hd.mjs +0 -14
  351. package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.stories.d.ts +0 -34
  352. package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.stories.js +0 -105
  353. package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/NetworkCalloutSlide.stories.d.ts +0 -28
  354. package/dist/components/CarouselSlide/slide-layouts/NetworkCallout/NetworkCalloutSlide.stories.js +0 -42
  355. package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.stories.d.ts +0 -170
  356. package/dist/components/CarouselSlide/slide-layouts/Show/ShowSlide.stories.js +0 -193
  357. package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.stories.d.ts +0 -19
  358. package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.stories.js +0 -35
  359. package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.stories.d.ts +0 -17
  360. package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.stories.js +0 -49
  361. package/dist/facebook-HCcA1M1m.mjs +0 -54
@@ -1,115 +1,158 @@
1
- import { jsxs as d, jsx as n } from "react/jsx-runtime";
2
- import D, { useState as _, useRef as h, useEffect as f } from "react";
3
- import { f as y } from "../../format-YhWt2D8M.mjs";
4
- import { classes as W } from "../../utils/helpers.js";
5
- import { C as L } from "../../chevron-left-DRvpaLmK.mjs";
6
- import { C as E } from "../../chevron-right-C8yCnmfx.mjs";
7
- import '../../assets/DateNavigation.css';const e = {
8
- "date-navigation__list": "_date-navigation__list_18gb9_5",
9
- "date-navigation__control": "_date-navigation__control_18gb9_42",
10
- "date-navigation__control--previous": "_date-navigation__control--previous_18gb9_69",
11
- "date-navigation__control--next": "_date-navigation__control--next_18gb9_74",
12
- "date-navigation__day": "_date-navigation__day_18gb9_94",
13
- "date-navigation__month-day-break": "_date-navigation__month-day-break_18gb9_100"
1
+ import { jsxs as _, jsx as e } from "react/jsx-runtime";
2
+ import { useState as g, useReducer as M, useRef as m, useCallback as S, useEffect as p } from "react";
3
+ import { f as l } from "../../format-YhWt2D8M.mjs";
4
+ import { classes as o } from "../../utils/helpers.js";
5
+ import { useScheduleContext as W } from "../ScheduleLayout/useScheduleContext.js";
6
+ import { C as j } from "../../chevron-left-DRvpaLmK.mjs";
7
+ import { C as w } from "../../chevron-right-C8yCnmfx.mjs";
8
+ import '../../assets/DateNavigation.css';const n = {
9
+ "date-navigation__list": "_date-navigation__list_1gjz5_1",
10
+ "date-navigation__control": "_date-navigation__control_1gjz5_72",
11
+ "date-navigation__control--previous": "_date-navigation__control--previous_1gjz5_103",
12
+ "date-navigation__control--next": "_date-navigation__control--next_1gjz5_108",
13
+ "date-navigation__item": "_date-navigation__item_1gjz5_119",
14
+ "date-navigation__day": "_date-navigation__day_1gjz5_134",
15
+ "date-navigation__month-day-break": "_date-navigation__month-day-break_1gjz5_140",
16
+ "date-navigation__weekday": "_date-navigation__weekday_1gjz5_153",
17
+ "date-navigation__date": "_date-navigation__date_1gjz5_156"
14
18
  };
15
- function $({ weeks: a = [[], []], handleDateChanged: s = () => !0 }) {
16
- const [i, b] = _(0), [p, k] = _(a[0]), [x, u] = _(a[0][0]), [N, v] = _("entering"), o = h(null), r = h(0), g = (t) => {
17
- b(t), v(() => t ? "exiting" : "entering");
18
- }, C = (t) => {
19
- u(t), s(t.date);
20
- }, S = (t) => {
21
- (t.key === "ArrowRight" || t.key === "ArrowDown") && r.current < 6 && ++r.current, (t.key === "ArrowLeft" || t.key === "ArrowUp") && r.current > 0 && --r.current, t.currentTarget.children[r.current].children[0].focus();
22
- }, l = D.useCallback(() => {
23
- o.current.addEventListener("animationstart", () => {
24
- o.current.addEventListener("animationend", l, { once: !0 });
25
- }), v("idle");
19
+ function z(a, i) {
20
+ switch (i.type) {
21
+ case "NAVIGATE_TO_WEEK":
22
+ return i.targetWeekIndex > i.currentWeekIndex ? "advancing" : i.targetWeekIndex < i.currentWeekIndex ? "retracting" : a;
23
+ case "ANIMATION_COMPLETE":
24
+ return "idle";
25
+ default:
26
+ return a;
27
+ }
28
+ }
29
+ function P() {
30
+ const { weeks: a, setCurrentDate: i } = W(), [r, x] = g(0), [b, C] = g(a[0]), [s, y] = g(a[0][0]), [N, h] = M(z, "idle"), d = m(null), D = m(0), f = m(l(new Date(s.fullDateStr), "yyyy-MM-dd")), k = (t) => {
31
+ h({ type: "NAVIGATE_TO_WEEK", currentWeekIndex: r, targetWeekIndex: t }), x(t);
32
+ }, E = (t) => {
33
+ l(t.date, "yyyy-MM-dd") !== f.current && (f.current = l(t.date, "yyyy-MM-dd"), y(t), i(t.date));
34
+ }, c = S(() => {
35
+ if (d.current === null) return;
36
+ const t = d.current;
37
+ t.addEventListener("animationstart", () => {
38
+ t.addEventListener("animationend", c, { once: !0 });
39
+ }), h({ type: "ANIMATION_COMPLETE" });
26
40
  }, []);
27
- return f(() => {
28
- o.current !== null && (o.current.removeEventListener("animationend", l, { once: !0 }), o.current.addEventListener("animationend", l, { once: !0 }));
29
- }, [l]), f(() => {
30
- k(a[i]), u((t) => {
31
- var m;
32
- const c = a[i ? 0 : 1].findIndex((j) => y(j.date, "yyyy-MM-dd") === y(t.date, "yyyy-MM-dd"));
33
- return c === -1 ? t : (s((m = a[i][c]) == null ? void 0 : m.date), r.current = c, a[i][c]);
34
- });
35
- }, [i, a, s]), /* @__PURE__ */ d("date-navigation", { "data-state": N, children: [
36
- /* @__PURE__ */ d("date-navigation-controls", { children: [
37
- /* @__PURE__ */ d(
41
+ return p(() => {
42
+ d.current !== null && (d.current.removeEventListener("animationend", c), d.current.addEventListener("animationend", c, { once: !0 }));
43
+ }, [c]), p(() => {
44
+ C(a[r]);
45
+ const t = r ? 0 : 1, I = l(s.date, "yyyy-MM-dd"), u = a[t].findIndex(
46
+ (v) => l(v.date, "yyyy-MM-dd") === I
47
+ );
48
+ if (u !== -1 && a[r][u]) {
49
+ const v = a[r][u];
50
+ D.current = u, y(v), i(v.date);
51
+ }
52
+ }, [r, a, i, s]), /* @__PURE__ */ _("date-navigation", { "data-state": N, children: [
53
+ /* @__PURE__ */ _("date-navigation-controls", { children: [
54
+ /* @__PURE__ */ _(
38
55
  "button",
39
56
  {
40
- type: "button",
41
- className: [
42
- e["date-navigation__control"],
43
- e["date-navigation__control--previous"],
57
+ className: o([
58
+ n["date-navigation__control"],
59
+ n["date-navigation__control--previous"],
44
60
  "date-navigation__control",
45
61
  "date-navigation__control--previous"
46
- ].join(" "),
62
+ ]),
63
+ disabled: r === 0 ? !0 : void 0,
64
+ type: "button",
47
65
  onClick: () => {
48
- g(0);
66
+ k(0);
49
67
  },
50
- disabled: i === 0 ? !0 : null,
51
68
  children: [
52
- /* @__PURE__ */ n("i", { "aria-hidden": "true", children: /* @__PURE__ */ n(L, { width: 48, height: 48 }) }),
53
- /* @__PURE__ */ n("span", { className: "sr-only", children: "Current Week" })
69
+ /* @__PURE__ */ e("i", { "aria-hidden": "true", children: /* @__PURE__ */ e(j, { height: 48, width: 48 }) }),
70
+ /* @__PURE__ */ e("span", { className: "sr-only", children: "Current Week" })
54
71
  ]
55
72
  }
56
73
  ),
57
- /* @__PURE__ */ d(
74
+ /* @__PURE__ */ _(
58
75
  "button",
59
76
  {
60
- type: "button",
61
- className: [
62
- e["date-navigation__control"],
63
- e["date-navigation__control--next"],
77
+ className: o([
78
+ n["date-navigation__control"],
79
+ n["date-navigation__control--next"],
64
80
  "date-navigation__control",
65
81
  "date-navigation__control--next"
66
- ].join(" "),
82
+ ]),
83
+ disabled: r === 1 ? !0 : void 0,
84
+ type: "button",
67
85
  onClick: () => {
68
- g(1);
86
+ k(1);
69
87
  },
70
- disabled: i === 1 ? !0 : null,
71
88
  children: [
72
- /* @__PURE__ */ n("i", { "aria-hidden": "true", children: /* @__PURE__ */ n(E, { width: 48, height: 48 }) }),
73
- /* @__PURE__ */ n("span", { className: "sr-only", children: "Next Week" })
89
+ /* @__PURE__ */ e("i", { "aria-hidden": "true", children: /* @__PURE__ */ e(w, { height: 48, width: 48 }) }),
90
+ /* @__PURE__ */ e("span", { className: "sr-only", children: "Next Week" })
74
91
  ]
75
92
  }
76
93
  )
77
94
  ] }),
78
- /* @__PURE__ */ n("date-navigation-list", { children: /* @__PURE__ */ n(
95
+ /* @__PURE__ */ e("date-navigation-list", { children: /* @__PURE__ */ e(
79
96
  "ul",
80
97
  {
81
- className: [e["date-navigation__list"], "date-navigation__list"].join(" "),
82
- ref: o,
83
- role: "tablist",
84
98
  "aria-label": "Date Tabs",
85
- onKeyDown: S,
86
- children: p.map((t) => /* @__PURE__ */ n("li", { className: [e["date-navigation__item"], "date-navigation__item"].join(" "), role: "presentation", children: /* @__PURE__ */ d(
87
- "button",
99
+ className: o([n["date-navigation__list"], "date-navigation__list"]),
100
+ ref: d,
101
+ role: "tablist",
102
+ children: b.map((t) => /* @__PURE__ */ e(
103
+ "li",
88
104
  {
89
- type: "button",
90
- className: [e["date-navigation__day"], "date-navigation__day"].join(" "),
91
- "aria-selected": x.fullDateStr === t.fullDateStr,
92
- onClick: () => {
93
- C(t);
94
- },
95
- role: "tab",
96
- "aria-controls": `${t.fullDateStr}`,
97
- children: [
98
- /* @__PURE__ */ n("div", { className: [e["date-navigation__weekday"], "date-navigation__weekday"].join(" "), children: t.dayStr }),
99
- /* @__PURE__ */ d("div", { className: [e["date-navigation__date"], "date-navigation__date"].join(" "), children: [
100
- t.monthStr,
101
- " ",
102
- /* @__PURE__ */ n("br", { className: W([e["date-navigation__month-day-break"], "date-navigation__month-day-break"]) }),
103
- t.dateStr
104
- ] })
105
- ]
106
- }
107
- ) }, `schedule-nav-${t.fullDateStr}`))
105
+ className: [n["date-navigation__item"], "date-navigation__item"].join(" "),
106
+ role: "presentation",
107
+ children: /* @__PURE__ */ _(
108
+ "button",
109
+ {
110
+ "aria-controls": `${t.fullDateStr}`,
111
+ "aria-selected": s.fullDateStr === t.fullDateStr,
112
+ className: o([n["date-navigation__day"], "date-navigation__day"]),
113
+ role: "tab",
114
+ type: "button",
115
+ onClick: () => {
116
+ E(t);
117
+ },
118
+ children: [
119
+ /* @__PURE__ */ e(
120
+ "div",
121
+ {
122
+ className: o([n["date-navigation__weekday"], "date-navigation__weekday"]),
123
+ children: t.dayStr
124
+ }
125
+ ),
126
+ /* @__PURE__ */ _(
127
+ "div",
128
+ {
129
+ className: o([n["date-navigation__date"], "date-navigation__date"]),
130
+ children: [
131
+ t.monthStr,
132
+ /* @__PURE__ */ e(
133
+ "br",
134
+ {
135
+ className: o([
136
+ n["date-navigation__month-day-break"],
137
+ "date-navigation__month-day-break"
138
+ ])
139
+ }
140
+ ),
141
+ t.dateStr
142
+ ]
143
+ }
144
+ )
145
+ ]
146
+ }
147
+ )
148
+ },
149
+ `schedule-nav-${t.fullDateStr}`
150
+ ))
108
151
  }
109
152
  ) })
110
153
  ] });
111
154
  }
112
155
  export {
113
- $ as DateNavigation,
114
- $ as default
156
+ P as DateNavigation,
157
+ P as default
115
158
  };
@@ -1 +1,2 @@
1
- export { DateNavigation, DateNavigation as default } from './DateNavigation';
1
+ export { DateNavigation } from './DateNavigation';
2
+ export { DateNavigation as default } from './DateNavigation';
@@ -1 +1,2 @@
1
- export { DatePicker, DatePicker as default } from './DatePicker';
1
+ export { DatePicker } from './DatePicker';
2
+ export { DatePicker as default } from './DatePicker';
@@ -1,5 +1,15 @@
1
- export function DeviceAndPlatformLists({ platformResources, numberOfColumns }: {
2
- platformResources: any;
3
- numberOfColumns: any;
4
- }): import("react/jsx-runtime").JSX.Element;
1
+ type DeviceAndPlatformListsProps = {
2
+ platformResources: Map<{
3
+ name: string;
4
+ slug: string;
5
+ }, {
6
+ id: number | string;
7
+ alt_text: string;
8
+ image_url: string;
9
+ link: string;
10
+ target?: '_blank' | '_self' | '_parent' | '_top' | undefined;
11
+ }[]>;
12
+ numberOfColumns?: number;
13
+ };
14
+ export declare function DeviceAndPlatformLists({ platformResources, numberOfColumns }: DeviceAndPlatformListsProps): JSX.Element;
5
15
  export default DeviceAndPlatformLists;
@@ -1,55 +1,62 @@
1
1
  import { jsxs as v, jsx as l } from "react/jsx-runtime";
2
- import "react";
3
- import { classes as a } from "../../utils/helpers.js";
4
- import { GridList as r } from "../GridList/GridList.js";
2
+ import { classes as t } from "../../utils/helpers.js";
3
+ import { GridList as d } from "../GridList/GridList.js";
5
4
  import { LogoListItem as _ } from "../LogoListItem/LogoListItem.js";
6
- import '../../assets/DeviceAndPlatformLists.css';const t = {
7
- "devices-platforms": "_devices-platforms_1jzzl_1",
8
- "devices-platforms__column": "_devices-platforms__column_1jzzl_5",
9
- "devices-platforms__column-item": "_devices-platforms__column-item_1jzzl_12"
5
+ import '../../assets/DeviceAndPlatformLists.css';const c = {
6
+ "devices-platforms": "_devices-platforms_t4rcx_1",
7
+ "devices-platforms__column": "_devices-platforms__column_t4rcx_5",
8
+ "devices-platforms__column-item": "_devices-platforms__column-item_t4rcx_12"
10
9
  };
11
- function x({ platformResources: s, numberOfColumns: c }) {
10
+ function x({ platformResources: s, numberOfColumns: a }) {
12
11
  let o = s.size < 4 ? s.size : Math.ceil(s.size / 2);
13
- const d = [...s.entries()];
12
+ const r = [...s.entries()];
14
13
  [...s.keys()][0].slug === "video-platforms" && (o = 1);
15
- const m = d.slice(0, o), n = d.slice(o, s.size);
16
- return /* @__PURE__ */ v("section", { className: a([t["devices-platforms"], "devices-platforms"]), children: [
14
+ const m = r.slice(0, o), n = r.slice(o, s.size);
15
+ return /* @__PURE__ */ v("section", { className: t([c["devices-platforms"], "devices-platforms"]), children: [
17
16
  /* @__PURE__ */ l(
18
17
  "div",
19
18
  {
20
- className: a([t["devices-platforms__column"], "devices-platforms__column"]),
19
+ className: t([c["devices-platforms__column"], "devices-platforms__column"]),
21
20
  style: {
22
21
  gridColumn: s.size >= 4 ? "1/2" : "1/3"
23
22
  },
24
- children: m.map((i) => /* @__PURE__ */ l("div", { className: a([t["devices-platforms__column-item"], "devices-platforms__column-item"]), children: /* @__PURE__ */ l(r, { headerText: i[0].name.toLowerCase(), ...c && { numberOfColumns: c }, children: i[1].map((e) => /* @__PURE__ */ l(
25
- _,
26
- {
27
- imageSource: e.image_url,
28
- altText: e.alt_text,
29
- href: e.link,
30
- target: (e == null ? void 0 : e.target) ?? "_blank"
31
- },
32
- `sd-${e.id}`
33
- )) }) }, `${i[0].slug}`))
23
+ children: m.map(
24
+ (i) => /* @__PURE__ */ l("div", { className: t([c["devices-platforms__column-item"], "devices-platforms__column-item"]), children: /* @__PURE__ */ l(d, { headerText: i[0].name.toLowerCase(), ...a && { numberOfColumns: a }, children: i[1].map(
25
+ (e) => /* @__PURE__ */ l(
26
+ _,
27
+ {
28
+ altText: e.alt_text,
29
+ href: e.link,
30
+ imageSource: e.image_url,
31
+ target: (e == null ? void 0 : e.target) ?? "_blank"
32
+ },
33
+ `sd-${e.id}`
34
+ )
35
+ ) }) }, `${i[0].slug}`)
36
+ )
34
37
  }
35
38
  ),
36
39
  s.size >= 4 && /* @__PURE__ */ l(
37
40
  "div",
38
41
  {
39
- className: a([t["devices-platforms__column"], "devices-platforms__column"]),
42
+ className: t([c["devices-platforms__column"], "devices-platforms__column"]),
40
43
  style: {
41
44
  gridColumn: "2/3"
42
45
  },
43
- children: n.map((i) => /* @__PURE__ */ l("div", { className: a([t["devices-platforms__column-item"], "devices-platforms__column-item"]), children: /* @__PURE__ */ l(r, { headerText: i[0].name.toLowerCase(), ...c && { numberOfColumns: c }, children: i[1].map((e) => /* @__PURE__ */ l(
44
- _,
45
- {
46
- imageSource: e.image_url,
47
- altText: e.alt_text,
48
- href: e.link,
49
- target: (e == null ? void 0 : e.target) ?? "_blank"
50
- },
51
- `sd-${e.id}`
52
- )) }) }, `${i[0].slug}`))
46
+ children: n.map(
47
+ (i) => /* @__PURE__ */ l("div", { className: t([c["devices-platforms__column-item"], "devices-platforms__column-item"]), children: /* @__PURE__ */ l(d, { headerText: i[0].name.toLowerCase(), ...a && { numberOfColumns: a }, children: i[1].map(
48
+ (e) => /* @__PURE__ */ l(
49
+ _,
50
+ {
51
+ altText: e.alt_text,
52
+ href: e.link,
53
+ imageSource: e.image_url,
54
+ target: (e == null ? void 0 : e.target) ?? "_blank"
55
+ },
56
+ `sd-${e.id}`
57
+ )
58
+ ) }) }, `${i[0].slug}`)
59
+ )
53
60
  }
54
61
  )
55
62
  ] });
@@ -1 +1,2 @@
1
- export { DeviceAndPlatformLists, DeviceAndPlatformLists as default } from './DeviceAndPlatformLists';
1
+ export { DeviceAndPlatformLists } from './DeviceAndPlatformLists';
2
+ export { DeviceAndPlatformLists as default } from './DeviceAndPlatformLists';
@@ -1,7 +1,27 @@
1
+ import { AnchorLink, Image } from '../../types';
2
+ type DrawerNavigationProps = {
3
+ links?: AnchorLink[];
4
+ items?: Array<{
5
+ href: string;
6
+ image: Image;
7
+ altText: string;
8
+ title?: string;
9
+ }>;
10
+ classname?: string;
11
+ logo?: {
12
+ image?: Image;
13
+ href?: string;
14
+ baselineAdjustment?: number;
15
+ height?: number;
16
+ };
17
+ clipPathStart?: string;
18
+ clipPathEnd?: string;
19
+ overlayAppendEl?: Element | undefined;
20
+ };
1
21
  /**
2
22
  * DrawerNavigation component for rendering a drawer-style navigation menu.
3
23
  * @param {*} param0 - Component props.
4
24
  * @returns {JSX.Element} The rendered drawer navigation.
5
25
  */
6
- export function DrawerNavigation({ links, items, classname, logo, clipPathStart, clipPathEnd, overlayAppendEl }: any): JSX.Element;
26
+ export declare function DrawerNavigation({ links, items, classname, logo, clipPathStart, clipPathEnd, overlayAppendEl, }: DrawerNavigationProps): JSX.Element;
7
27
  export default DrawerNavigation;
@@ -1,10 +1,10 @@
1
- import { jsxs as t, Fragment as h, jsx as e } from "react/jsx-runtime";
2
- import { useState as v } from "react";
3
- import { classes as o } from "../../utils/helpers.js";
4
- import { NavList as b } from "../NavList/NavList.js";
5
- import { LogoNavigation as N } from "../LogoNavigation/LogoNavigation.js";
6
- import { ImageReplacementAnchor as k } from "../ImageReplacementAnchor/ImageReplacementAnchor.js";
7
- import { Overlay as x } from "../Overlay/Overlay.js";
1
+ import { jsxs as o, Fragment as v, jsx as e } from "react/jsx-runtime";
2
+ import { useState as h, useCallback as k, useEffect as x } from "react";
3
+ import { classes as d } from "../../utils/helpers.js";
4
+ import { NavList as A } from "../NavList/NavList.js";
5
+ import { LogoNavigation as S } from "../LogoNavigation/LogoNavigation.js";
6
+ import { ImageReplacementAnchor as j } from "../ImageReplacementAnchor/ImageReplacementAnchor.js";
7
+ import { Overlay as E } from "../Overlay/Overlay.js";
8
8
  import '../../assets/DrawerNavigation.css';const n = {
9
9
  "drawer-navigation__nav-bar": "_drawer-navigation__nav-bar_5hknh_1",
10
10
  "with-logo": "_with-logo_5hknh_11",
@@ -14,67 +14,73 @@ import '../../assets/DrawerNavigation.css';const n = {
14
14
  "drawer-navigation__separator": "_drawer-navigation__separator_5hknh_102",
15
15
  "visually-hidden": "_visually-hidden_5hknh_113"
16
16
  };
17
- function I({
18
- links: s = [],
19
- items: g = [],
20
- classname: c = "",
21
- logo: i = {},
17
+ function Y({
18
+ links: g = [],
19
+ items: l = [],
20
+ classname: u = "",
21
+ logo: r = {},
22
22
  clipPathStart: p = "circle(0% at top right)",
23
- clipPathEnd: u = "circle(250% at top right)",
24
- overlayAppendEl: w = document.querySelector("#root")
23
+ clipPathEnd: w = "circle(250% at top right)",
24
+ overlayAppendEl: y = document.querySelector("#root")
25
25
  }) {
26
- const [a, y] = v(!1), [d, l] = v(null), m = document.querySelector("body"), _ = () => {
27
- if (y(!a), l("closing"), a) {
28
- const r = document.querySelector("#overlay");
29
- r == null || r.setAttribute("data-state", "exiting"), setTimeout(() => {
30
- r == null || r.remove(), m.style.overflowY = "auto";
31
- }, 400);
32
- } else
33
- m.style.overflowY = "hidden";
34
- }, f = () => {
35
- a || l(null);
26
+ const [a, f] = h(!1), [s, m] = h(null), _ = document.querySelector("body"), t = k(() => {
27
+ f((N) => {
28
+ const c = !N;
29
+ if (c) {
30
+ const i = document.querySelector("#overlay");
31
+ i == null || i.setAttribute("data-state", "exiting"), setTimeout(() => {
32
+ i == null || i.remove(), _.style.overflowY = "auto";
33
+ }, 400);
34
+ } else
35
+ _.style.overflowY = "hidden";
36
+ return c;
37
+ }), m("closing");
38
+ }, [_]), b = () => {
39
+ a || m(null);
36
40
  };
37
- return document.addEventListener("scripps:overlay:closed", _), // Ideally the parent for this component will be a <nav> for accessibility reasons
38
- /* @__PURE__ */ t(h, { children: [
39
- /* @__PURE__ */ t(
41
+ return x(() => (document.addEventListener("scripps:overlay:closed", t), () => {
42
+ document.removeEventListener("scripps:overlay:closed", t);
43
+ }), [a, t]), // Ideally the parent for this component will be a <nav> for accessibility reasons
44
+ /* @__PURE__ */ o(v, { children: [
45
+ /* @__PURE__ */ o(
40
46
  "div",
41
47
  {
42
- className: o([
48
+ className: d([
43
49
  n["drawer-navigation__nav-bar"],
44
50
  "drawer-navigation__nav-bar",
45
- i.image && n["with-logo"],
46
- `drawer-navigation__nav-bar--${a ? "expanded" : d ? "closing" : "closed"}`
51
+ r.image && n["with-logo"],
52
+ `drawer-navigation__nav-bar--${a ? "expanded" : s ? "closing" : "closed"}`
47
53
  ]),
48
54
  children: [
49
- i.image && /* @__PURE__ */ e(
50
- k,
55
+ r.image && /* @__PURE__ */ e(
56
+ j,
51
57
  {
52
- href: i.href,
53
- image: i.image,
54
- height: i.height,
55
- baselineAdjustment: i.baselineAdjustment
58
+ baselineAdjustment: r.baselineAdjustment,
59
+ height: r.height,
60
+ href: r.href,
61
+ image: r.image
56
62
  }
57
63
  ),
58
- /* @__PURE__ */ t(
64
+ /* @__PURE__ */ o(
59
65
  "button",
60
66
  {
61
- className: o([
67
+ "aria-controls": "drawer-navigation__primary-navigation",
68
+ "aria-expanded": a,
69
+ className: d([
62
70
  n["drawer-navigation__menu-toggle"],
63
71
  "drawer-navigation__menu-toggle"
64
72
  ]),
65
- "aria-controls": "drawer-navigation__primary-navigation",
66
- "aria-expanded": a,
67
- onClick: _,
73
+ onClick: t,
68
74
  children: [
69
75
  /* @__PURE__ */ e("span", { className: n["visually-hidden"], children: "Menu" }),
70
76
  /* @__PURE__ */ e(
71
77
  "div",
72
78
  {
73
- className: o([
79
+ "aria-hidden": "true",
80
+ className: d([
74
81
  n["drawer-navigation__hamburger"],
75
82
  "drawer-navigation__hamburger"
76
- ]),
77
- "aria-hidden": "true"
83
+ ])
78
84
  }
79
85
  )
80
86
  ]
@@ -83,41 +89,54 @@ function I({
83
89
  ]
84
90
  }
85
91
  ),
86
- /* @__PURE__ */ t(
92
+ /* @__PURE__ */ o(
87
93
  "div",
88
94
  {
89
- className: o([
95
+ className: d([
90
96
  n["drawer-navigation__primary-navigation"],
91
97
  "drawer-navigation__primary-navigation"
92
98
  ]),
99
+ "data-state": a ? "opened" : s || "closed",
93
100
  id: "drawer-navigation__primary-navigation",
94
- "data-state": a ? "opened" : d || "closed",
95
- onAnimationEnd: f,
96
101
  style: {
97
102
  "--clip-path-start": p,
98
- "--clip-path-end": u
103
+ "--clip-path-end": w
99
104
  },
105
+ onAnimationEnd: b,
100
106
  children: [
101
- s.length > 0 && /* @__PURE__ */ e(b, { links: s, classname: c, toggleHandler: _ }),
102
- g.length > 0 && /* @__PURE__ */ t(h, { children: [
107
+ g.length > 0 && /* @__PURE__ */ e(
108
+ A,
109
+ {
110
+ classname: u,
111
+ links: g,
112
+ toggleHandler: t
113
+ }
114
+ ),
115
+ l.length > 0 && /* @__PURE__ */ o(v, { children: [
103
116
  /* @__PURE__ */ e(
104
117
  "hr",
105
118
  {
106
- className: o([
119
+ className: d([
107
120
  n["drawer-navigation__separator"],
108
121
  "drawer-navigation__separator"
109
122
  ])
110
123
  }
111
124
  ),
112
- /* @__PURE__ */ e(N, { items: g })
125
+ /* @__PURE__ */ e(S, { items: l })
113
126
  ] })
114
127
  ]
115
128
  }
116
129
  ),
117
- a && /* @__PURE__ */ e(x, { appendToElement: w, state: d === null && !a ? "exiting" : "entering" })
130
+ a && /* @__PURE__ */ e(
131
+ E,
132
+ {
133
+ appendToElement: y,
134
+ state: s === null && !a ? "exiting" : "entering"
135
+ }
136
+ )
118
137
  ] });
119
138
  }
120
139
  export {
121
- I as DrawerNavigation,
122
- I as default
140
+ Y as DrawerNavigation,
141
+ Y as default
123
142
  };
@@ -1 +1,2 @@
1
- export { DrawerNavigation, DrawerNavigation as default } from './DrawerNavigation';
1
+ export { DrawerNavigation } from './DrawerNavigation';
2
+ export { DrawerNavigation as default } from './DrawerNavigation';
@@ -1,6 +1,7 @@
1
- export function EqualSizeFlexRow({ children, gap, maxItemsPerRow }: {
2
- children: any;
3
- gap?: string | undefined;
4
- maxItemsPerRow?: number | undefined;
5
- }): import("react/jsx-runtime").JSX.Element;
1
+ type EqualSizeFlexRowProps = {
2
+ children: React.ReactNode;
3
+ gap?: string;
4
+ maxItemsPerRow?: number;
5
+ };
6
+ export declare function EqualSizeFlexRow({ children, gap, maxItemsPerRow, }: EqualSizeFlexRowProps): JSX.Element;
6
7
  export default EqualSizeFlexRow;