@scrippsproduct/networks-ui-library 1.0.21 → 1.0.22

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 (50) hide show
  1. package/dist/{ResultsTable.module-B7M9y7hd.mjs → ResultsTable.module-nTlGw9Lh.mjs} +5 -1
  2. package/dist/{add-DH4DZT_w.mjs → add-FrnMPwwO.mjs} +2 -2
  3. package/dist/{addMonths-Ca2KMx6g.mjs → addMonths-BDf46gmB.mjs} +1 -1
  4. package/dist/assets/DatePicker.css +1 -1
  5. package/dist/assets/SectionedContent.css +1 -0
  6. package/dist/components/AirDateFormatter/AirDateFormatter.js +3 -3
  7. package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.js +1 -1
  8. package/dist/components/Concat/Concat.js +1 -1
  9. package/dist/components/CtaBlock/CtaBlock.js +1 -1
  10. package/dist/components/CustomDataList/CustomDataList.js +45 -42
  11. package/dist/components/DateNavigation/DateNavigation.js +6 -5
  12. package/dist/components/DatePicker/DatePicker.js +1322 -1341
  13. package/dist/components/DrawerNavigation/DrawerNavigation.js +29 -27
  14. package/dist/components/ErrorHandler/ErrorHandler.js +1 -1
  15. package/dist/components/Figure/Figure.js +1 -1
  16. package/dist/components/GenericList/GenericList.js +1 -1
  17. package/dist/components/ImageCard/ImageCardCore.js +1 -1
  18. package/dist/components/InfoPanel/InfoPanel.js +15 -14
  19. package/dist/components/InlineNavigation/InlineNavigation.js +7 -6
  20. package/dist/components/InstructionsList/InstructionsList.js +1 -1
  21. package/dist/components/Loading/Loading.js +8 -5
  22. package/dist/components/ModalContainer/ModalContainer.js +44 -41
  23. package/dist/components/Overlay/Overlay.js +20 -17
  24. package/dist/components/PageHero/page-hero-layouts/IONShow/IONShowHero.js +1 -1
  25. package/dist/components/ProgramAirdate/ProgramAirdate.js +3 -3
  26. package/dist/components/PromotionBlock/PromotionBlock.js +17 -15
  27. package/dist/components/ResultsTable/ResultsTable.js +1 -1
  28. package/dist/components/ResultsTableBody/ResultsTableBody.js +1 -1
  29. package/dist/components/ResultsTableHeader/ResultsTableHeader.js +1 -1
  30. package/dist/components/ScheduleLayout/ScheduleLayout.js +2 -2
  31. package/dist/components/SectionedContent/SectionedContent.js +22 -13
  32. package/dist/components/ShowAboutContent/ShowAboutContent.js +1 -1
  33. package/dist/components/ShowAboutLayout/ShowAboutLayout.js +13 -12
  34. package/dist/components/StringList/StringList.js +1 -1
  35. package/dist/components/TabContent/TabContent.js +1 -1
  36. package/dist/{format-DF9p-6BI.mjs → format-plq8pBNY.mjs} +12 -10
  37. package/dist/hooks/useGetSchedule.js +3 -3
  38. package/dist/hooks/useGetUpcoming.js +2 -2
  39. package/dist/{index-DB0QlRo7.mjs → index-B0ARwqly.mjs} +301 -310
  40. package/dist/{index-0wieGV50.mjs → index-C8O1hjfH.mjs} +1 -0
  41. package/dist/{index-YbL9dKxh.mjs → index-DC7FmJPK.mjs} +6743 -6742
  42. package/dist/{sub-DTz41m8W.mjs → sub-CkNH5u-l.mjs} +2 -2
  43. package/dist/{subMonths-YdVF7zsL.mjs → subMonths-nbU1oDhB.mjs} +1 -1
  44. package/dist/utils/analytics.js +1 -1
  45. package/dist/utils/date-helpers.js +4 -4
  46. package/dist/utils/getFeaturedList.js +3 -3
  47. package/dist/utils/getOnNowProgram.js +3 -3
  48. package/dist/utils/getUpcomingPrograms.js +2 -2
  49. package/package.json +1 -1
  50. package/dist/components/Carousel/types.d.js +0 -1
@@ -3,8 +3,8 @@ import { useState as a, useEffect as f } from "react";
3
3
  import { DateNavigation as x } from "../DateNavigation/DateNavigation.js";
4
4
  import { ScheduleList as w } from "../ScheduleList/ScheduleList.js";
5
5
  import { chunkArray as L, create2WeeksList as S } from "../../utils/date-helpers.js";
6
- import { f as u } from "../../format-DF9p-6BI.mjs";
7
- import { s as b } from "../../sub-DTz41m8W.mjs";
6
+ import { f as u } from "../../format-plq8pBNY.mjs";
7
+ import { s as b } from "../../sub-CkNH5u-l.mjs";
8
8
  function F({ schedule: o = [], handleScheduleClicks: e = () => !0, handleDateChanged: c = () => !0 }) {
9
9
  const l = (/* @__PURE__ */ new Date()).toLocaleString("en-US", { timeZone: "America/New_York" }), t = new Date(l), [r, d] = a(Number.parseInt(u(t, "H"), 10) < 6 ? b(t, { days: 1 }) : t), g = L(S(), 7), [p, n] = a(!1), [D, i] = a(!1), h = (m) => {
10
10
  i(!0), setTimeout(() => {
@@ -1,23 +1,32 @@
1
- import { jsx as o, jsxs as c } from "react/jsx-runtime";
2
- import a from "react";
3
- import { p } from "../../index-DB0QlRo7.mjs";
4
- function d({ sections: t = [] }) {
5
- const r = /* @__PURE__ */ new Map([
1
+ import { jsx as t, jsxs as a } from "react/jsx-runtime";
2
+ import s from "react";
3
+ import { p as _ } from "../../index-B0ARwqly.mjs";
4
+ import { classes as n } from "../../utils/helpers.js";
5
+ import '../../assets/SectionedContent.css';const i = "_h2_16wib_6", l = "_h3_16wib_6", p = "_h4_16wib_6", d = "_h5_16wib_6", m = "_h6_16wib_6", o = {
6
+ "sectioned-content__content": "_sectioned-content__content_16wib_1",
7
+ h2: i,
8
+ h3: l,
9
+ h4: p,
10
+ h5: d,
11
+ h6: m
12
+ };
13
+ function g({ sections: c = [] }) {
14
+ const h = /* @__PURE__ */ new Map([
6
15
  ["primary", {
7
- open: '<h1 class="h2">',
16
+ open: `<h1 class="${n(["h2", o.h2])}">`,
8
17
  close: "</h1>"
9
18
  }],
10
19
  ["secondary", {
11
- open: '<h2 class="h3">',
20
+ open: `<h2 class="${n(["h3", o.h3])}">`,
12
21
  close: "</h2>"
13
22
  }]
14
23
  ]);
15
- return /* @__PURE__ */ o("sectioned-content", { children: t.length && t.map((e, n) => e.content !== "" ? /* @__PURE__ */ c(a.Fragment, { children: [
16
- p(r.get(e.header.type).open + e.header.title + r.get(e.header.type).close),
17
- typeof e.content == "string" ? p(e.content) : e.content
18
- ] }, `section-${e.title}-${n}`) : /* @__PURE__ */ o(a.Fragment, {}, `section--${n}`)) });
24
+ return /* @__PURE__ */ t("sectioned-content", { children: c.length && c.map((e, r) => e.content !== "" ? /* @__PURE__ */ a(s.Fragment, { children: [
25
+ _(h.get(e.header.type).open + e.header.title + h.get(e.header.type).close),
26
+ /* @__PURE__ */ t("div", { className: n([o["sectioned-content__content"], "sectioned-content__content"]), children: typeof e.content == "string" ? _(e.content) : e.content })
27
+ ] }, `section-${e.title}-${r}`) : /* @__PURE__ */ t(s.Fragment, {}, `section--${r}`)) });
19
28
  }
20
29
  export {
21
- d as SectionedContent,
22
- d as default
30
+ g as SectionedContent,
31
+ g as default
23
32
  };
@@ -2,7 +2,7 @@ import { jsxs as e, Fragment as h, jsx as t } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import { SectionedContent as d } from "../SectionedContent/SectionedContent.js";
4
4
  import { GenericList as p } from "../GenericList/GenericList.js";
5
- import { p as c } from "../../index-DB0QlRo7.mjs";
5
+ import { p as c } from "../../index-B0ARwqly.mjs";
6
6
  function y({
7
7
  series: n,
8
8
  castStr: a,
@@ -1,15 +1,16 @@
1
1
  import { jsx as a, Fragment as f, jsxs as b } from "react/jsx-runtime";
2
2
  import "react";
3
- import { ImageCard as k } from "../ImageCard/ImageCard.js";
4
- import { AdjustableTwoColumnGrid as y } from "../AdjustableTwoColumnGrid/AdjustableTwoColumnGrid.js";
3
+ import { ImageCard as _ } from "../ImageCard/ImageCard.js";
4
+ import { AdjustableTwoColumnGrid as k } from "../AdjustableTwoColumnGrid/AdjustableTwoColumnGrid.js";
5
5
  import { Concat as l } from "../Concat/Concat.js";
6
6
  import { StringList as o } from "../StringList/StringList.js";
7
- import { ShowAboutContent as T } from "../ShowAboutContent/ShowAboutContent.js";
8
- import { getHoursMinsStr as _, classes as S } from "../../utils/helpers.js";
7
+ import { ShowAboutContent as y } from "../ShowAboutContent/ShowAboutContent.js";
8
+ import { getHoursMinsStr as T, classes as S } from "../../utils/helpers.js";
9
9
  import '../../assets/ShowAboutLayout.css';const A = {
10
- "series-about-tab": "_series-about-tab_cekq9_1"
10
+ "series-about-tab": "_series-about-tab_cekq9_1",
11
+ "slide-up": "_slide-up_cekq9_1"
11
12
  };
12
- function F({
13
+ function q({
13
14
  series: t,
14
15
  type: r = "series",
15
16
  showUpcoming: p = !1,
@@ -17,13 +18,13 @@ function F({
17
18
  firstColumnWidth: c = "33%"
18
19
  }) {
19
20
  var n, e;
20
- const i = t.cast.map((d) => d.real_name).join(", "), g = t != null && t.run_time ? _(t.run_time) : "", m = r === "series" ? ["TV Series", t.rating] : [t != null && t.year_released ? t == null ? void 0 : t.year_released : "Film", t.rating, g];
21
- return /* @__PURE__ */ a(f, { children: /* @__PURE__ */ b(y, { classname: S([A["series-about-tab"], "series-about-tab"]), firstColumnWidth: c, children: [
21
+ const i = t.cast.map((d) => d.real_name).join(", "), g = t != null && t.run_time ? T(t.run_time) : "", m = r === "series" ? ["TV Series", t.rating] : [t != null && t.year_released ? t == null ? void 0 : t.year_released : "Film", t.rating, g];
22
+ return /* @__PURE__ */ a(f, { children: /* @__PURE__ */ b(k, { classname: S([A["series-about-tab"], "series-about-tab"]), firstColumnWidth: c, children: [
22
23
  t.detailImage === null ? /* @__PURE__ */ a(l, { list: [
23
24
  typeof t.genres == "string" ? t.genres : /* @__PURE__ */ a(o, { list: t.genres, separatorType: "comma", makeBlock: !0 }),
24
25
  /* @__PURE__ */ a(o, { list: m, separatorType: "pipe", makeBlock: !0 })
25
26
  ] }) : /* @__PURE__ */ a(
26
- k,
27
+ _,
27
28
  {
28
29
  image: {
29
30
  url: (n = t.detailImage) == null ? void 0 : n.url,
@@ -36,7 +37,7 @@ function F({
36
37
  }
37
38
  ),
38
39
  /* @__PURE__ */ a(
39
- T,
40
+ y,
40
41
  {
41
42
  series: t,
42
43
  showUpcoming: p,
@@ -48,6 +49,6 @@ function F({
48
49
  ] }) });
49
50
  }
50
51
  export {
51
- F as ShowAboutLayout,
52
- F as default
52
+ q as ShowAboutLayout,
53
+ q as default
53
54
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as t, Fragment as c, jsxs as p } from "react/jsx-runtime";
2
2
  import s from "react";
3
- import { p as n } from "../../index-DB0QlRo7.mjs";
3
+ import { p as n } from "../../index-B0ARwqly.mjs";
4
4
  import { classes as e } from "../../utils/helpers.js";
5
5
  import '../../assets/StringList.css';const l = {
6
6
  "string-list__pipe": "_string-list__pipe_6c2cm_1",
@@ -1,5 +1,5 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { p as a } from "../../index-DB0QlRo7.mjs";
2
+ import { p as a } from "../../index-B0ARwqly.mjs";
3
3
  import "react";
4
4
  function i({ content: r, classname: t }) {
5
5
  return /* @__PURE__ */ o("tab-content", { class: t, children: typeof r == "string" ? a(r) : r });
@@ -26,7 +26,7 @@ function L(t) {
26
26
  const s = W(i);
27
27
  return n.getTime() >= a.getTime() ? e + 1 : n.getTime() >= s.getTime() ? e : e - 1;
28
28
  }
29
- function p(t) {
29
+ function C(t) {
30
30
  const n = l(t);
31
31
  return n.setHours(0, 0, 0, 0), n;
32
32
  }
@@ -45,7 +45,7 @@ function q(t) {
45
45
  return e.setUTCFullYear(n.getFullYear()), +t - +e;
46
46
  }
47
47
  function A(t, n) {
48
- const e = p(t), r = p(n), a = +e - q(e), i = +r - q(r);
48
+ const e = C(t), r = C(n), a = +e - q(e), i = +r - q(r);
49
49
  return Math.round((a - i) / R);
50
50
  }
51
51
  function I(t) {
@@ -518,7 +518,7 @@ function Ft(t, n) {
518
518
  const e = D(), r = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((c = (u = n == null ? void 0 : n.locale) == null ? void 0 : u.options) == null ? void 0 : c.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((h = (d = e.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, a = _(t, n), i = b(t, 0);
519
519
  return i.setFullYear(a, 0, r), i.setHours(0, 0, 0, 0), v(i, n);
520
520
  }
521
- function Ct(t, n) {
521
+ function pt(t, n) {
522
522
  const e = l(t), r = +v(e, n) - +Ft(e, n);
523
523
  return Math.round(r / X) + 1;
524
524
  }
@@ -581,6 +581,8 @@ const w = {
581
581
  return o(a, n.length);
582
582
  }
583
583
  }, M = {
584
+ am: "am",
585
+ pm: "pm",
584
586
  midnight: "midnight",
585
587
  noon: "noon",
586
588
  morning: "morning",
@@ -745,7 +747,7 @@ const w = {
745
747
  },
746
748
  // Local week of year
747
749
  w: function(t, n, e, r) {
748
- const a = Ct(t, r);
750
+ const a = pt(t, r);
749
751
  return n === "wo" ? e.ordinalNumber(a, { unit: "week" }) : o(a, n.length);
750
752
  },
751
753
  // ISO week of year
@@ -1110,7 +1112,7 @@ const j = (t, n) => {
1110
1112
  default:
1111
1113
  return n.time({ width: "full" });
1112
1114
  }
1113
- }, pt = (t, n) => {
1115
+ }, Ct = (t, n) => {
1114
1116
  const e = t.match(/(P+)(p+)?/) || [], r = e[1], a = e[2];
1115
1117
  if (!a)
1116
1118
  return j(t, n);
@@ -1133,7 +1135,7 @@ const j = (t, n) => {
1133
1135
  return i.replace("{{date}}", j(r, n)).replace("{{time}}", G(a, n));
1134
1136
  }, qt = {
1135
1137
  p: G,
1136
- P: pt
1138
+ P: Ct
1137
1139
  }, Nt = /^D+$/, Ht = /^Y+$/, Qt = ["D", "DD", "YY", "YYYY"];
1138
1140
  function jt(t) {
1139
1141
  return Nt.test(t);
@@ -1151,8 +1153,8 @@ function _t(t, n, e) {
1151
1153
  }
1152
1154
  const Gt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Rt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Bt = /^'([^]*?)'?$/, At = /''/g, It = /[a-zA-Z]/;
1153
1155
  function zt(t, n, e) {
1154
- var h, g, P, O, T, E, F, C;
1155
- const r = D(), a = (e == null ? void 0 : e.locale) ?? r.locale ?? Yt, i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((g = (h = e == null ? void 0 : e.locale) == null ? void 0 : h.options) == null ? void 0 : g.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((O = (P = r.locale) == null ? void 0 : P.options) == null ? void 0 : O.firstWeekContainsDate) ?? 1, s = (e == null ? void 0 : e.weekStartsOn) ?? ((E = (T = e == null ? void 0 : e.locale) == null ? void 0 : T.options) == null ? void 0 : E.weekStartsOn) ?? r.weekStartsOn ?? ((C = (F = r.locale) == null ? void 0 : F.options) == null ? void 0 : C.weekStartsOn) ?? 0, u = l(t);
1156
+ var h, g, P, O, T, E, F, p;
1157
+ const r = D(), a = (e == null ? void 0 : e.locale) ?? r.locale ?? Yt, i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((g = (h = e == null ? void 0 : e.locale) == null ? void 0 : h.options) == null ? void 0 : g.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((O = (P = r.locale) == null ? void 0 : P.options) == null ? void 0 : O.firstWeekContainsDate) ?? 1, s = (e == null ? void 0 : e.weekStartsOn) ?? ((E = (T = e == null ? void 0 : e.locale) == null ? void 0 : T.options) == null ? void 0 : E.weekStartsOn) ?? r.weekStartsOn ?? ((p = (F = r.locale) == null ? void 0 : F.options) == null ? void 0 : p.weekStartsOn) ?? 0, u = l(t);
1156
1158
  if (!J(u))
1157
1159
  throw new RangeError("Invalid time value");
1158
1160
  let c = n.match(Rt).map((m) => {
@@ -1204,7 +1206,7 @@ export {
1204
1206
  D as g,
1205
1207
  v as h,
1206
1208
  W as i,
1207
- Ct as j,
1209
+ pt as j,
1208
1210
  Et as k,
1209
1211
  q as l,
1210
1212
  $t as m,
@@ -1213,7 +1215,7 @@ export {
1213
1215
  Xt as p,
1214
1216
  jt as q,
1215
1217
  V as r,
1216
- p as s,
1218
+ C as s,
1217
1219
  l as t,
1218
1220
  J as u,
1219
1221
  $ as v,
@@ -1,9 +1,9 @@
1
- import { a as D } from "../add-DH4DZT_w.mjs";
2
- import { f as d } from "../format-DF9p-6BI.mjs";
1
+ import { a as D } from "../add-FrnMPwwO.mjs";
2
+ import { f as d } from "../format-plq8pBNY.mjs";
3
3
  import { determineSeasonNumber as S, determineEpisodeNumber as m, determineSeasonNumberFromSeriesPrefix as g } from "../utils/series-helpers.js";
4
4
  import { convert12to24 as b } from "../utils/helpers.js";
5
5
  import { determineIfShowIsOnNow as O } from "../utils/date-helpers.js";
6
- import { g as v } from "../index-0wieGV50.mjs";
6
+ import { g as v } from "../index-C8O1hjfH.mjs";
7
7
  const I = async ({
8
8
  dateStr: n,
9
9
  schedEndpoint: h,
@@ -1,6 +1,6 @@
1
1
  import { useCallback as m, useMemo as u } from "react";
2
- import { a as w } from "../add-DH4DZT_w.mjs";
3
- import { f } from "../format-DF9p-6BI.mjs";
2
+ import { a as w } from "../add-FrnMPwwO.mjs";
3
+ import { f } from "../format-plq8pBNY.mjs";
4
4
  const a = /* @__PURE__ */ new Date(), g = async ({
5
5
  programId: r,
6
6
  programType: o = "series",