@scrippsproduct/networks-ui-library 1.1.9 → 1.1.10-alpha.0
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/{Form.module-Cd8qH2rj.mjs → Form.module-CarfWK5T.mjs} +1 -1
- package/dist/ResultsTable.module-wcNUQEKe.mjs +14 -0
- package/dist/_commonjsHelpers-DaMA6jEr.mjs +8 -0
- package/dist/assets/ResultsTable.css +1 -1
- package/dist/{chevron-left-DRvpaLmK.mjs → chevron-left-D0UjbrKw.mjs} +1 -1
- package/dist/{chevron-right-C8yCnmfx.mjs → chevron-right-0ZF3LruR.mjs} +1 -1
- package/dist/components/ActionButton/ActionButton.test.js +209 -0
- package/dist/components/AdBlock/AdBlock.test.js +286 -0
- package/dist/components/AdjustableTwoColumnGrid/AdjustableTwoColumnGrid.test.js +295 -0
- package/dist/components/AirDateFormatter/AirDateFormatter.test.js +192 -0
- package/dist/components/AnchorTag/AnchorTag.test.js +463 -0
- package/dist/components/BCVideoPlayer/BCVideoPlayer.test.js +295 -0
- package/dist/components/BasicGridModule/BasicGridModule.js +41 -37
- package/dist/components/BasicGridModule/BasicGridModule.test.js +227 -0
- package/dist/components/Button/Button.test.js +434 -0
- package/dist/components/Carousel/Carousel.js +2 -2
- package/dist/components/Carousel/Carousel.test.js +705 -0
- package/dist/components/CarouselSlide/CarouselSlide.test.js +378 -0
- package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.js +1 -1
- package/dist/components/CastInfoLayout/CastInfoLayout.test.js +294 -0
- package/dist/components/ChannelSearch/ChannelSearch.test.js +565 -0
- package/dist/components/ChoicesItem/ChoicesItem.test.js +428 -0
- package/dist/components/Concat/Concat.js +1 -1
- package/dist/components/Concat/Concat.test.js +115 -0
- package/dist/components/CtaBlock/CtaBlock.js +1 -1
- package/dist/components/CtaBlock/CtaBlock.test.js +226 -0
- package/dist/components/CustomDataList/CustomDataList.js +4 -4
- package/dist/components/CustomSelect/CustomSelect.js +86 -86
- package/dist/components/CustomSelect/CustomSelect.test.js +313 -0
- package/dist/components/DateNavigation/DateNavigation.js +10 -10
- package/dist/components/DateNavigation/DateNavigation.test.js +370 -0
- package/dist/components/DatePicker/DatePicker.js +1 -1
- package/dist/components/DeviceAndPlatformLists/DeviceAndPlatformLists.test.js +288 -0
- package/dist/components/DrawerNavigation/DrawerNavigation.test.js +316 -0
- package/dist/components/EqualSizeFlexRow/EqualSizeFlexRow.test.js +337 -0
- package/dist/components/EqualSizeGrid/EqualSizeGrid.test.js +358 -0
- package/dist/components/ErrorHandler/ErrorHandler.js +2 -2
- package/dist/components/ErrorHandler/ErrorHandler.test.js +158 -0
- package/dist/components/FeaturedList/FeaturedList.test.js +353 -0
- package/dist/components/Figure/Figure.js +1 -1
- package/dist/components/Figure/Figure.test.js +198 -0
- package/dist/components/FindUs/FindUs.test.js +499 -0
- package/dist/components/FooterNavigation/FooterNavigation.test.js +310 -0
- package/dist/components/GenericList/GenericList.js +1 -1
- package/dist/components/GenericList/GenericList.test.js +288 -0
- package/dist/components/GetAirdateWrapper/GetAirdateWrapper.test.js +689 -0
- package/dist/components/GradientButton/GradientButton.d.ts +1 -1
- package/dist/components/GradientButton/GradientButton.js +33 -31
- package/dist/components/GradientButton/GradientButton.test.js +457 -0
- package/dist/components/GridList/GridList.test.js +371 -0
- package/dist/components/ImageCard/ImageCard.test.js +668 -0
- package/dist/components/ImageCard/ImageCardCore.js +28 -28
- package/dist/components/ImageCard/ImageCardCore.test.js +577 -0
- package/dist/components/ImageReplacementAnchor/ImageReplacementAnchor.test.js +379 -0
- package/dist/components/InfoPanel/InfoPanel.js +1 -1
- package/dist/components/InlineNavigation/InlineNavigation.test.js +149 -0
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/Input.test.js +263 -0
- package/dist/components/InstructionsList/InstructionsList.js +11 -11
- package/dist/components/InstructionsList/InstructionsList.test.js +181 -0
- package/dist/components/LogoListItem/LogoListItem.test.js +303 -0
- package/dist/components/LogoNavigation/LogoNavigation.test.js +352 -0
- package/dist/components/ModalContainer/ModalContainer.js +2 -2
- package/dist/components/NavList/NavList.test.js +332 -0
- package/dist/components/Overlay/Overlay.js +24 -23
- package/dist/components/Overlay/Overlay.test.js +198 -0
- package/dist/components/PageHero/PageHero.test.js +241 -0
- package/dist/components/PageHero/page-hero-layouts/IONShow/IONShowHero.js +1 -1
- package/dist/components/ProgramAirdate/ProgramAirdate.js +1 -1
- package/dist/components/ProgramAirdate/ProgramAirdate.test.js +414 -0
- package/dist/components/PromotionBlock/PromotionBlock.test.js +208 -0
- package/dist/components/PromotionsRowBlock/PromotionsRowBlock.test.js +221 -0
- package/dist/components/PromotionsRowModule/PromotionsRowModule.test.js +349 -0
- package/dist/components/RescanInstructions/RescanInstructions.test.js +218 -0
- package/dist/components/ResponsiveImage/ResponsiveImage.test.js +264 -0
- package/dist/components/ResultsTable/ResultsTable.js +9 -2
- package/dist/components/ResultsTable/ResultsTable.test.js +402 -0
- package/dist/components/ResultsTableBody/ResultsTableBody.js +1 -1
- package/dist/components/ResultsTableBody/ResultsTableBody.test.js +445 -0
- package/dist/components/ResultsTableHeader/ResultsTableHeader.js +37 -15
- package/dist/components/ResultsTableHeader/ResultsTableHeader.test.js +275 -0
- package/dist/components/ScheduleLayout/ScheduleContext.js +654 -626
- package/dist/components/ScheduleLayout/ScheduleLayout.js +1 -1
- package/dist/components/ScheduleLayout/useScheduleContext.js +5 -10
- package/dist/components/ScheduleList/ScheduleList.js +1 -1
- package/dist/components/SectionedContent/SectionedContent.js +1 -1
- package/dist/components/SectionedContent/SectionedContent.test.js +341 -0
- package/dist/components/Select/Select.js +24 -24
- package/dist/components/Select/Select.test.js +367 -0
- package/dist/components/ShowAboutContent/ShowAboutContent.js +1 -1
- package/dist/components/ShowAboutContent/ShowAboutContent.test.js +535 -0
- package/dist/components/ShowAboutLayout/ShowAboutLayout.test.js +570 -0
- package/dist/components/SocialLinks/SocialLinks.js +1 -1
- package/dist/components/StringList/StringList.js +1 -1
- package/dist/components/StringList/StringList.test.js +311 -0
- package/dist/components/TabContent/TabContent.js +1 -1
- package/dist/components/TabContent/TabContent.test.js +274 -0
- package/dist/components/TabNavigation/TabNavigation.js +21 -21
- package/dist/components/TabNavigation/TabNavigation.test.js +535 -0
- package/dist/components/TabbedContent/TabbedContent.test.js +654 -0
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/UpcomingList/UpcomingList.test.js +471 -0
- package/dist/{index-VjANCDXC.mjs → index-06PEPfBQ.mjs} +1 -1
- package/dist/index-BUN4jQ3m.mjs +3098 -0
- package/dist/index-BVxBrkZB.mjs +3 -0
- package/dist/{index-DC2JJV3a.mjs → index-D3kkcgee.mjs} +1 -1
- package/dist/{index-C-kn9Zhn.mjs → index-DzfYkULW.mjs} +2 -1
- package/dist/magic-string.es-uPKorP4O.mjs +663 -0
- package/dist/matchers-35e4d3bd-BBPNTlen.mjs +2404 -0
- package/dist/react.esm-DLSrfVwM.mjs +23410 -0
- package/dist/test/setupTests.d.ts +1 -0
- package/dist/test/setupTests.js +55 -0
- package/dist/{triangle-PcCcGXjr.mjs → triangle-C4z906Wf.mjs} +1 -1
- package/dist/useScheduleContext-D7FdzNxe.mjs +17 -0
- package/dist/utils/analytics.js +1 -1
- package/dist/utils/getOnNowProgram.js +10 -10
- package/dist/{x-C-QzJ-qD.mjs → x-Ck9Vk5Fo.mjs} +1 -1
- package/package.json +4 -1
- package/dist/ResultsTable.module-1zxhXaem.mjs +0 -14
- package/dist/_commonjsHelpers-C6fGbg64.mjs +0 -6
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsxs as i, Fragment as N, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as C } from "react";
|
|
3
|
-
import { p as R } from "../../index-
|
|
3
|
+
import { p as R } from "../../index-06PEPfBQ.mjs";
|
|
4
4
|
import { classes as a } from "../../utils/helpers.js";
|
|
5
|
-
import { AnchorTag as
|
|
6
|
-
import { ButtonAnchor as
|
|
5
|
+
import { AnchorTag as y } from "../AnchorTag/AnchorTag.js";
|
|
6
|
+
import { ButtonAnchor as h } from "../ButtonAnchor/ButtonAnchor.js";
|
|
7
7
|
import { ResponsiveImage as I } from "../ResponsiveImage/ResponsiveImage.js";
|
|
8
|
-
const
|
|
8
|
+
const O = C(function({
|
|
9
9
|
image: s = { url: "", altText: "", aspectRatio: 1, sources: [] },
|
|
10
10
|
mobileImage: m = { url: "", altText: "", aspectRatio: 1 },
|
|
11
|
-
lazyLoad:
|
|
12
|
-
fetchPriority:
|
|
11
|
+
lazyLoad: f = !0,
|
|
12
|
+
fetchPriority: t = void 0,
|
|
13
13
|
decoding: v = "async",
|
|
14
14
|
title: T = "",
|
|
15
15
|
content: l = "",
|
|
@@ -22,35 +22,35 @@ const L = C(function({
|
|
|
22
22
|
position: "end"
|
|
23
23
|
// inline - in the content | end | start
|
|
24
24
|
},
|
|
25
|
-
displayCTA:
|
|
26
|
-
handleClicks: A = (
|
|
25
|
+
displayCTA: g = !0,
|
|
26
|
+
handleClicks: A = (u) => {
|
|
27
27
|
},
|
|
28
28
|
fullCardClickable: w = !1,
|
|
29
29
|
styles: o = {}
|
|
30
30
|
}, V) {
|
|
31
31
|
var x;
|
|
32
|
-
const
|
|
32
|
+
const u = /* @__PURE__ */ new Map([
|
|
33
33
|
["play-video", {
|
|
34
34
|
label: "View Promo",
|
|
35
|
-
component:
|
|
35
|
+
component: h
|
|
36
36
|
}],
|
|
37
37
|
["internal-link", {
|
|
38
38
|
label: "View More",
|
|
39
|
-
component:
|
|
39
|
+
component: y
|
|
40
40
|
}],
|
|
41
41
|
["external-link", {
|
|
42
42
|
label: "Learn More",
|
|
43
|
-
component:
|
|
43
|
+
component: y
|
|
44
44
|
}],
|
|
45
45
|
["info-panel", {
|
|
46
46
|
label: "View More",
|
|
47
|
-
component:
|
|
47
|
+
component: h
|
|
48
48
|
}],
|
|
49
49
|
["show-modal", {
|
|
50
50
|
label: "See More",
|
|
51
|
-
component:
|
|
51
|
+
component: h
|
|
52
52
|
}]
|
|
53
|
-
]),
|
|
53
|
+
]), c = (x = u.get(e.type)) == null ? void 0 : x.component, d = (r) => {
|
|
54
54
|
r.stopPropagation(), A({
|
|
55
55
|
type: e.type,
|
|
56
56
|
resourceId: e.relatedResourceId,
|
|
@@ -58,17 +58,17 @@ const L = C(function({
|
|
|
58
58
|
target: r.target,
|
|
59
59
|
currentTarget: r.currentTarget
|
|
60
60
|
});
|
|
61
|
-
},
|
|
61
|
+
}, _ = (r) => {
|
|
62
62
|
var k;
|
|
63
|
-
if (!
|
|
64
|
-
const b =
|
|
63
|
+
if (!c) return null;
|
|
64
|
+
const b = c === y, M = r.type === "internal-link" || r.type === "external-link";
|
|
65
65
|
return /* @__PURE__ */ n(
|
|
66
|
-
|
|
66
|
+
c,
|
|
67
67
|
{
|
|
68
68
|
classname: a([o["image-card__cta"], "image-card__cta"]),
|
|
69
69
|
"data-resource-id": r.relatedResourceId,
|
|
70
70
|
...b && { href: r.href },
|
|
71
|
-
label: r.label ? r.label : ((k =
|
|
71
|
+
label: r.label ? r.label : ((k = u.get(r.type)) == null ? void 0 : k.label) ?? "",
|
|
72
72
|
...b && M && r.type && { type: r.type },
|
|
73
73
|
onClick: r.type !== "internal-link" && r.type !== "external-link" ? d : void 0
|
|
74
74
|
}
|
|
@@ -89,8 +89,8 @@ const L = C(function({
|
|
|
89
89
|
alt: m.altText,
|
|
90
90
|
className: o["image-card__mobile-image"],
|
|
91
91
|
decoding: v,
|
|
92
|
-
|
|
93
|
-
loading:
|
|
92
|
+
...t && { fetchpriority: t },
|
|
93
|
+
loading: f ? "lazy" : void 0,
|
|
94
94
|
src: m.url,
|
|
95
95
|
onClick: (e.type === "play-video" || e.type === "show-modal") && !w ? d : void 0
|
|
96
96
|
}
|
|
@@ -101,10 +101,10 @@ const L = C(function({
|
|
|
101
101
|
altText: s.altText,
|
|
102
102
|
classname: o["image-card__image"],
|
|
103
103
|
decoding: v,
|
|
104
|
-
fetchPriority:
|
|
104
|
+
fetchPriority: t,
|
|
105
105
|
fullSizeUrl: s.url,
|
|
106
106
|
handleClick: (e.type === "play-video" || e.type === "show-modal") && !w ? (r) => (d(r), !1) : () => !0,
|
|
107
|
-
loading:
|
|
107
|
+
loading: f ? "lazy" : void 0,
|
|
108
108
|
sources: s.sources
|
|
109
109
|
}
|
|
110
110
|
),
|
|
@@ -140,16 +140,16 @@ const L = C(function({
|
|
|
140
140
|
T !== "" && /* @__PURE__ */ n("h2", { className: "h4", children: T }),
|
|
141
141
|
typeof l == "string" && /* @__PURE__ */ i("div", { children: [
|
|
142
142
|
R(l),
|
|
143
|
-
|
|
143
|
+
g && (e == null ? void 0 : e.type) && e.position === "inline" && _(e)
|
|
144
144
|
] }),
|
|
145
145
|
typeof l != "string" && /* @__PURE__ */ i(N, { children: [
|
|
146
146
|
l,
|
|
147
|
-
|
|
147
|
+
g && (e == null ? void 0 : e.type) && e.position === "inline" && _(e)
|
|
148
148
|
] })
|
|
149
149
|
] }),
|
|
150
|
-
|
|
150
|
+
g && (e == null ? void 0 : e.type) && (e == null ? void 0 : e.position) === "end" && /* @__PURE__ */ n("div", { className: o["image-card__cta-wrapper"], children: _(e) })
|
|
151
151
|
] });
|
|
152
152
|
});
|
|
153
153
|
export {
|
|
154
|
-
|
|
154
|
+
O as default
|
|
155
155
|
};
|