@scrippsproduct/networks-ui-library 1.1.0-alpha.13 → 1.1.0-alpha.15

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.
@@ -1 +1 @@
1
- ._date-navigation__list_1gjz5_1{display:flex;justify-content:flex-start;position:relative;--pointer-position: 0;margin:0 auto;padding:.5rem 1rem 1.5rem;list-style:none;background:transparent}date-navigation{position:relative;padding-block-start:1rem;display:block}date-navigation[data-state=retracting] ._date-navigation__list_1gjz5_1{animation-name:_slidein_1gjz5_1;animation-duration:.325s;animation-timing-function:cubic-bezier(.18,.1,.09,1.04);animation-fill-mode:forwards;animation-direction:normal}date-navigation[data-state=advancing] ._date-navigation__list_1gjz5_1{animation-name:_slideout_1gjz5_1;animation-duration:.325s;animation-timing-function:cubic-bezier(.18,.1,.09,1.04);animation-fill-mode:forwards;animation-direction:normal}@media screen and (max-width:60rem){date-navigation{padding-block-start:0}}date-navigation-list{overflow:hidden;display:block}@keyframes _slidein_1gjz5_1{0%{transform:translate3d(-20rem,0,0);opacity:.1}50%{opacity:.2}to{transform:translateZ(0);opacity:1}}@keyframes _slideout_1gjz5_1{0%{transform:translate3d(20rem,0,0);opacity:1}50%{opacity:.5}to{transform:translateZ(0);opacity:1}}date-navigation-controls{display:contents}._date-navigation__control_1gjz5_72{cursor:pointer;background:transparent;scale:1.5;translate:0 1rem;color:var(--mono-color-100);position:absolute;z-index:1;top:50%;transform:translateY(-50%);overflow:hidden;display:flex;align-items:center;justify-content:center;aspect-ratio:1;inline-size:4rem;padding:0;border:1px solid transparent;border-radius:50%;color:#000;text-indent:10ch;background:#fff;transition:opacity .5s ease-in-out}._date-navigation__control_1gjz5_72>i>svg{display:block;max-inline-size:100%;block-size:auto;stroke:currentcolor}._date-navigation__control--previous_1gjz5_103{inset-inline-start:-2rem;padding-inline-end:5px}._date-navigation__control--next_1gjz5_108{inset-inline-end:-2rem;padding-inline-start:5px}._date-navigation__control_1gjz5_72[disabled]{cursor:not-allowed;opacity:.4}._date-navigation__item_1gjz5_119{--flex-basis: 14.285714%;border-right:1px solid rgba(255,255,255,.4);flex-basis:var(--flex-basis);text-align:center}._date-navigation__item_1gjz5_119:last-child{border-width:0}@media screen and (max-width:37.5rem){._date-navigation__item_1gjz5_119{--flex-basis: 25%}}._date-navigation__day_1gjz5_134{cursor:pointer;border:none;background:transparent}._date-navigation__month-day-break_1gjz5_140{display:none}@media screen and (max-width:80rem){._date-navigation__control--previous_1gjz5_103{inset-inline-start:-1.4rem}._date-navigation__control--next_1gjz5_108{inset-inline-end:-1.2rem}}@media screen and (max-width:71.5rem){._date-navigation__weekday_1gjz5_153{font-size:1.4rem}._date-navigation__date_1gjz5_156{font-size:1rem}}@media screen and (max-width:60rem){._date-navigation__control_1gjz5_72{translate:0 .6rem}._date-navigation__item_1gjz5_119{padding-inline:.35rem}}@media screen and (max-width:46.875rem){._date-navigation__control_1gjz5_72{scale:.7;translate:0 -1rem}._date-navigation__control--previous_1gjz5_103{inset-inline-start:-1.6rem}._date-navigation__control--next_1gjz5_108{inset-inline-end:-1.5rem}}@media screen and (max-width:31.25rem){._date-navigation__weekday_1gjz5_153{font-size:1rem}._date-navigation__date_1gjz5_156{font-size:.8rem;white-space:nowrap}}@media screen and (max-width:25rem){._date-navigation__month-day-break_1gjz5_140{display:inline}}
1
+ ._date-navigation__list_bbcpg_1{display:flex;justify-content:flex-start;position:relative;--pointer-position: 0;margin:0 auto;padding:.5rem 1rem 1.5rem;list-style:none;background:transparent}date-navigation{position:relative;padding-block-start:1rem;display:block}date-navigation[data-state=retracting] ._date-navigation__list_bbcpg_1{animation-name:_slidein_bbcpg_1;animation-duration:.325s;animation-timing-function:cubic-bezier(.18,.1,.09,1.04);animation-fill-mode:forwards;animation-direction:normal}date-navigation[data-state=advancing] ._date-navigation__list_bbcpg_1{animation-name:_slideout_bbcpg_1;animation-duration:.325s;animation-timing-function:cubic-bezier(.18,.1,.09,1.04);animation-fill-mode:forwards;animation-direction:normal}@media screen and (max-width:60rem){date-navigation{padding-block-start:0}}date-navigation-list{overflow:hidden;display:block}@keyframes _slidein_bbcpg_1{0%{transform:translate3d(-20rem,0,0);opacity:.1}50%{opacity:.2}to{transform:translateZ(0);opacity:1}}@keyframes _slideout_bbcpg_1{0%{transform:translate3d(20rem,0,0);opacity:1}50%{opacity:.5}to{transform:translateZ(0);opacity:1}}date-navigation-controls{display:contents}._date-navigation__control_bbcpg_72{cursor:pointer;background:transparent;scale:1.5;translate:0 1rem;color:var(--mono-color-100);position:absolute;z-index:1;top:50%;transform:translateY(-50%);overflow:hidden;display:flex;align-items:center;justify-content:center;aspect-ratio:1;inline-size:4rem;padding:0;border:1px solid transparent;border-radius:50%;color:#000;text-indent:10ch;background:#fff;transition:opacity .5s ease-in-out}._date-navigation__control_bbcpg_72>i>svg{display:block;max-inline-size:100%;block-size:auto;stroke:currentcolor}._date-navigation__control--previous_bbcpg_103{inset-inline-start:-2rem;padding-inline-end:5px}._date-navigation__control--next_bbcpg_108{inset-inline-end:-2rem;padding-inline-start:5px}._date-navigation__control_bbcpg_72[disabled]{cursor:not-allowed;opacity:.4}._date-navigation__item_bbcpg_119{--flex-basis: 14.285714%;border-right:1px solid rgba(255,255,255,.4);flex-basis:var(--flex-basis);text-align:center}._date-navigation__item_bbcpg_119:last-child{border-width:0}@media screen and (max-width:37.5rem){._date-navigation__item_bbcpg_119{--flex-basis: 25%}}._date-navigation__day_bbcpg_134{cursor:pointer;border:none;background:transparent}._date-navigation__month-day-break_bbcpg_140{display:none}._date-navigation__weekday_bbcpg_144,._date-navigation__date_bbcpg_145{color:var(--mono-color-100);font-size:1.2rem;text-transform:uppercase;transition:transform .225s ease-out}._date-navigation__weekday_bbcpg_144{font-size:2rem}@media screen and (max-width:80rem){._date-navigation__control--previous_bbcpg_103{inset-inline-start:-1.4rem}._date-navigation__control--next_bbcpg_108{inset-inline-end:-1.2rem}}@media screen and (max-width:71.5rem){._date-navigation__weekday_bbcpg_144{font-size:1.4rem}._date-navigation__date_bbcpg_145{font-size:1rem}}@media screen and (max-width:60rem){._date-navigation__control_bbcpg_72{translate:0 .6rem}._date-navigation__item_bbcpg_119{padding-inline:.35rem}}@media screen and (max-width:46.875rem){._date-navigation__control_bbcpg_72{scale:.7;translate:0 -1rem}._date-navigation__control--previous_bbcpg_103{inset-inline-start:-1.6rem}._date-navigation__control--next_bbcpg_108{inset-inline-end:-1.5rem}}@media screen and (max-width:31.25rem){._date-navigation__weekday_bbcpg_144{font-size:1rem}._date-navigation__date_bbcpg_145{font-size:.8rem;white-space:nowrap}}@media screen and (max-width:25rem){._date-navigation__month-day-break_bbcpg_140{display:inline}}
@@ -1 +1 @@
1
- .schedule-content-constrainer{min-height:100vh;min-height:100dvh}sticky-content-wrapper{position:sticky;z-index:10;top:-1px;display:block}@media screen and (max-width:60rem){sticky-content-wrapper{top:6.3rem}}sticky-content-wrapper[data-pinned-state=pinned]{background-image:radial-gradient(ellipse at top left,var(--theme-color-200) 0,var(--theme-color-200) 50%,var(--theme-color-100) 90%)}.date-navigation__list:before{content:"";width:0;height:0;border-style:solid;border-width:0 14px 14px;border-color:transparent transparent var(--mono-color-100) transparent;position:absolute;bottom:-1px;transform:translate(calc(var(--pointer-position) - 100%));transition:transform .325s ease-in-out}@media screen and (max-width:80rem){.schedule-content-constrainer{padding-top:.01rem}}@media screen and (max-width:60rem){.schedule-date-nav-constrainer{width:calc(100% - 1.8rem);padding-block-start:.5rem}.schedule-page .header-divider{display:none}sticky-content-wrapper{top:5rem}}
1
+ .schedule-content-constrainer{min-height:100vh;min-height:100dvh}sticky-content-wrapper{display:block;position:sticky;z-index:10;top:-1px}sticky-content-wrapper[data-pinned-state=pinned]{background-image:radial-gradient(ellipse at top left,var(--theme-color-200) 0,var(--theme-color-200) 50%,var(--theme-color-100) 90%)}.date-navigation__list:before{content:"";width:0;height:0;border-style:solid;border-width:0 14px 14px;border-color:transparent transparent var(--mono-color-100) transparent;position:absolute;bottom:-1px;transform:translate(calc(var(--pointer-position) - 100%));transition:transform .325s ease-in-out}@media screen and (max-width:80rem){.schedule-content-constrainer{padding-top:.01rem}}@media screen and (max-width:60rem){.schedule-date-nav-constrainer{width:calc(100% - 1.8rem);padding-block-start:.5rem}.schedule-page .header-divider{display:none}sticky-content-wrapper{top:5rem}}
@@ -1 +1 @@
1
- ._schedule-list__item_wmqq1_1{display:grid;grid-template-columns:10% 1fr;column-gap:2.5rem;padding:1rem 0;padding:2rem 0 2.4rem;border-bottom:1px solid}._schedule-list__item_wmqq1_1:last-child{border:none}._schedule-list__airdate_wmqq1_14{align-self:center;font-size:2.25rem;font-weight:500;color:var(--mono-color-400);text-wrap:balance;overflow-wrap:break-word}._schedule-list__airdate_wmqq1_14 ._airdate-formatter__date_wmqq1_22,._schedule-list__airdate_wmqq1_14 ._airdate-formatter__day_wmqq1_23{display:none}._schedule-list__airdate_wmqq1_14 ._airdate-formatter__time-wrap_wmqq1_26 br{display:inline}._schedule-list_wmqq1_1{padding:0;opacity:1}._schedule-list_wmqq1_1[data-state=idle]{opacity:1}._schedule-list_wmqq1_1[data-state=exiting]{animation-name:_fade-out_wmqq1_1;animation-duration:.4s;animation-timing-function:ease-in-out;animation-fill-mode:forwards}._schedule-list_wmqq1_1[data-state=entering]{animation-name:_fade-in_wmqq1_1;animation-duration:.4s;animation-timing-function:ease-in-out;animation-fill-mode:forwards}._schedule-list__no-schedule_wmqq1_50{padding:2rem;text-align:center;opacity:1}._schedule-list__no-schedule_wmqq1_50[data-state=idle]{opacity:1}._schedule-list__no-schedule_wmqq1_50[data-state=exiting]{animation-name:_fade-out_wmqq1_1;animation-duration:.4s;animation-timing-function:ease-in-out;animation-fill-mode:forwards}._schedule-list__no-schedule_wmqq1_50[data-state=entering]{animation-name:_fade-in_wmqq1_1;animation-duration:.4s;animation-timing-function:ease-in-out;animation-fill-mode:forwards}._schedule-list__no-schedule_wmqq1_50 h2{margin-bottom:1rem}._schedule-list__no-schedule_wmqq1_50 p{margin:0}._schedule-list__no-schedule_wmqq1_50 a{color:inherit;text-decoration:underline}@media screen and (max-width:93.75rem){._schedule-list__airdate_wmqq1_14{font-size:2rem}}@media screen and (max-width:80rem){._schedule-list__item_wmqq1_1{display:block}._schedule-list__airdate_wmqq1_14{margin-block-end:.5rem}._schedule-list__airdate_wmqq1_14 ._airdate-formatter__time-wrap_wmqq1_26 br{display:none}._schedule-content-constrainer_wmqq1_102{padding-top:.01rem}}@media screen and (max-width:71.5rem){._schedule-list__item_wmqq1_1{grid-template-columns:15% 1fr}._date-navigation__weekday_wmqq1_110{font-size:1.4rem}._date-navigation__date_wmqq1_113{font-size:1rem}}@media screen and (max-width:50rem){._schedule-list__item_wmqq1_1 image-card{flex-direction:column;gap:1.5rem}._schedule-list__item_wmqq1_1 ._image-card__content_wmqq1_122{align-self:flex-start}}@keyframes _fade-in_wmqq1_1{0%{opacity:0}to{opacity:1}}@keyframes _fade-out_wmqq1_1{0%{opacity:1}to{opacity:0}}.schedule-list__airdate .airdate-formatter__date,.schedule-list__airdate .airdate-formatter__day{display:none}.schedule-list__item .h4{margin-bottom:.5rem;font-size:clamp(1.8rem,1.5vw + 1rem,2.625rem);line-height:1.2;color:var(--mono-color-400);text-transform:uppercase}.schedule-list__item .image-card__content{font-size:1.125rem}.schedule-list__item .image-card__content:first-of-type,.schedule-list__item .image-card__content~div{max-inline-size:80ch;margin-top:1.5rem;line-height:1.5;color:#444}@media screen and (max-width:50rem){.schedule-list__item .image-card__content:first-of-type{margin-block-start:0}}.schedule-list__item .image-card__content>div{margin:.5rem 0 1rem}.schedule-list__item .image-card__content>div:first-of-type:not(:last-of-type){font-size:1.372rem;font-weight:400;color:#444}.schedule-list__item .image-card__content>.string-list{color:var(--mono-color-400)}.schedule-list__item .string-list__pipe{margin:0 .4em;margin-inline:.4em;font-size:1.1em;vertical-align:baseline}.schedule-list__item .image-card__cta{font-weight:500;color:#861d42}.schedule-list__item .image-card__img-wrapper{flex:0 0 clamp(330px,47%,580px);align-self:flex-start;padding-top:.75rem}.schedule-list__on-now{width:max-content;margin-bottom:.75rem;margin-block-end:.75rem;padding:.5rem 1.75rem;font-size:1.125rem;color:var(--mono-color-100);text-transform:uppercase;text-wrap:nowrap;overflow-wrap:normal;white-space:nowrap;background-image:var(--on-now-gradient)}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-out{0%{opacity:1}to{opacity:0}}
1
+ ._schedule-list__item_686v7_1{display:grid;grid-template-columns:10% 1fr;column-gap:2.5rem;padding:1rem 0;padding:2rem 0 2.4rem;border-bottom:1px solid}._schedule-list__item_686v7_1:last-child{border:none}._schedule-list__airdate_686v7_14{align-self:center;font-size:2.25rem;font-weight:500;color:var(--mono-color-400);text-wrap:balance;overflow-wrap:break-word}._schedule-list__airdate_686v7_14 ._airdate-formatter__date_686v7_22,._schedule-list__airdate_686v7_14 ._airdate-formatter__day_686v7_23{display:none}._schedule-list__airdate_686v7_14 ._airdate-formatter__time-wrap_686v7_26 br{display:inline}._schedule-list_686v7_1{padding:0;opacity:1}._schedule-list_686v7_1[data-state=idle]{opacity:1}._schedule-list_686v7_1[data-state=exiting]{animation-name:_fade-out_686v7_1;animation-duration:.4s;animation-timing-function:ease-in-out;animation-fill-mode:forwards}._schedule-list_686v7_1[data-state=entering]{animation-name:_fade-in_686v7_1;animation-duration:.4s;animation-timing-function:ease-in-out;animation-fill-mode:forwards}._schedule-list__no-schedule_686v7_50{padding:2rem;text-align:center;opacity:1}._schedule-list__no-schedule_686v7_50[data-state=idle]{opacity:1}._schedule-list__no-schedule_686v7_50[data-state=exiting]{animation-name:_fade-out_686v7_1;animation-duration:.4s;animation-timing-function:ease-in-out;animation-fill-mode:forwards}._schedule-list__no-schedule_686v7_50[data-state=entering]{animation-name:_fade-in_686v7_1;animation-duration:.4s;animation-timing-function:ease-in-out;animation-fill-mode:forwards}._schedule-list__no-schedule_686v7_50 h2{margin-bottom:1rem}._schedule-list__no-schedule_686v7_50 p{margin:0}._schedule-list__no-schedule_686v7_50 a{color:inherit;text-decoration:underline}@media screen and (max-width:93.75rem){._schedule-list__airdate_686v7_14{font-size:2rem}}@media screen and (max-width:80rem){._schedule-list__item_686v7_1{display:block}._schedule-list__airdate_686v7_14{margin-block-end:.5rem}._schedule-list__airdate_686v7_14 ._airdate-formatter__time-wrap_686v7_26 br{display:none}._schedule-content-constrainer_686v7_102{padding-top:.01rem}}@media screen and (max-width:71.5rem){._schedule-list__item_686v7_1{grid-template-columns:15% 1fr}}@media screen and (max-width:50rem){._schedule-list__item_686v7_1 image-card{flex-direction:column;gap:1.5rem}._schedule-list__item_686v7_1 ._image-card__content_686v7_116{align-self:flex-start}}@keyframes _fade-in_686v7_1{0%{opacity:0}to{opacity:1}}@keyframes _fade-out_686v7_1{0%{opacity:1}to{opacity:0}}.schedule-list__airdate .airdate-formatter__date,.schedule-list__airdate .airdate-formatter__day{display:none}.schedule-list__item .h4{margin-bottom:.5rem;font-size:clamp(1.8rem,1.5vw + 1rem,2.625rem);line-height:1.2;color:var(--mono-color-400);text-transform:uppercase}.schedule-list__item .image-card__content{font-size:1.125rem}.schedule-list__item .image-card__content:first-of-type,.schedule-list__item .image-card__content~div{max-inline-size:80ch;margin-top:1.5rem;line-height:1.5;color:#444}@media screen and (max-width:50rem){.schedule-list__item .image-card__content:first-of-type{margin-block-start:0}}.schedule-list__item .image-card__content>div{margin:.5rem 0 1rem}.schedule-list__item .image-card__content>div:first-of-type:not(:last-of-type){font-size:1.372rem;font-weight:400;color:#444}.schedule-list__item .image-card__content>.string-list{color:var(--mono-color-400)}.schedule-list__item .string-list__pipe{margin:0 .4em;margin-inline:.4em;font-size:1.1em;vertical-align:baseline}.schedule-list__item .image-card__cta{font-weight:500;color:#861d42}.schedule-list__item .image-card__img-wrapper{flex:0 0 clamp(330px,47%,580px);align-self:flex-start;padding-top:.75rem}.schedule-list__on-now{width:max-content;margin-bottom:.75rem;margin-block-end:.75rem;padding:.5rem 1.75rem;font-size:1.125rem;color:var(--mono-color-100);text-transform:uppercase;text-wrap:nowrap;overflow-wrap:normal;white-space:nowrap;background-image:var(--on-now-gradient)}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-out{0%{opacity:1}to{opacity:0}}
@@ -1,22 +1,22 @@
1
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";
2
+ import { useState as g, useReducer as M, useRef as m, useCallback as S, useEffect as f } from "react";
3
+ import { f as c } from "../../format-YhWt2D8M.mjs";
4
4
  import { classes as o } from "../../utils/helpers.js";
5
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";
6
+ import { C as w } from "../../chevron-left-DRvpaLmK.mjs";
7
+ import { C as A } from "../../chevron-right-C8yCnmfx.mjs";
8
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"
9
+ "date-navigation__list": "_date-navigation__list_bbcpg_1",
10
+ "date-navigation__control": "_date-navigation__control_bbcpg_72",
11
+ "date-navigation__control--previous": "_date-navigation__control--previous_bbcpg_103",
12
+ "date-navigation__control--next": "_date-navigation__control--next_bbcpg_108",
13
+ "date-navigation__item": "_date-navigation__item_bbcpg_119",
14
+ "date-navigation__day": "_date-navigation__day_bbcpg_134",
15
+ "date-navigation__month-day-break": "_date-navigation__month-day-break_bbcpg_140",
16
+ "date-navigation__weekday": "_date-navigation__weekday_bbcpg_144",
17
+ "date-navigation__date": "_date-navigation__date_bbcpg_145"
18
18
  };
19
- function z(a, i) {
19
+ function L(a, i) {
20
20
  switch (i.type) {
21
21
  case "NAVIGATE_TO_WEEK":
22
22
  return i.targetWeekIndex > i.currentWeekIndex ? "advancing" : i.targetWeekIndex < i.currentWeekIndex ? "retracting" : a;
@@ -26,30 +26,30 @@ function z(a, i) {
26
26
  return a;
27
27
  }
28
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);
29
+ function V() {
30
+ const { weeks: a, setCurrentDate: i } = W(), [r, k] = g(0), [x, C] = g(a[0]), [l, y] = g(a[0][0]), [N, h] = M(L, "idle"), d = m(null), D = m(0), b = m(c(new Date(l.fullDateStr), "yyyy-MM-dd")), p = (t) => {
31
+ h({ type: "NAVIGATE_TO_WEEK", currentWeekIndex: r, targetWeekIndex: t }), k(t);
32
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(() => {
33
+ c(t.date, "yyyy-MM-dd") !== b.current && (b.current = c(t.date, "yyyy-MM-dd"), y(t), i(t.date));
34
+ }, s = S(() => {
35
35
  if (d.current === null) return;
36
36
  const t = d.current;
37
37
  t.addEventListener("animationstart", () => {
38
- t.addEventListener("animationend", c, { once: !0 });
38
+ t.addEventListener("animationend", s, { once: !0 });
39
39
  }), h({ type: "ANIMATION_COMPLETE" });
40
40
  }, []);
41
- return p(() => {
42
- d.current !== null && (d.current.removeEventListener("animationend", c), d.current.addEventListener("animationend", c, { once: !0 }));
43
- }, [c]), p(() => {
41
+ return f(() => {
42
+ d.current !== null && (d.current.removeEventListener("animationend", s), d.current.addEventListener("animationend", s, { once: !0 }));
43
+ }, [s]), f(() => {
44
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
45
+ const t = r ? 0 : 1, I = c(l.date, "yyyy-MM-dd"), u = a[t].findIndex(
46
+ (v) => c(v.date, "yyyy-MM-dd") === I
47
47
  );
48
48
  if (u !== -1 && a[r][u]) {
49
49
  const v = a[r][u];
50
50
  D.current = u, y(v), i(v.date);
51
51
  }
52
- }, [r, a, i, s]), /* @__PURE__ */ _("date-navigation", { "data-state": N, children: [
52
+ }, [r, a, i, l]), /* @__PURE__ */ _("date-navigation", { "data-state": N, children: [
53
53
  /* @__PURE__ */ _("date-navigation-controls", { children: [
54
54
  /* @__PURE__ */ _(
55
55
  "button",
@@ -63,10 +63,10 @@ function P() {
63
63
  disabled: r === 0 ? !0 : void 0,
64
64
  type: "button",
65
65
  onClick: () => {
66
- k(0);
66
+ p(0);
67
67
  },
68
68
  children: [
69
- /* @__PURE__ */ e("i", { "aria-hidden": "true", children: /* @__PURE__ */ e(j, { height: 48, width: 48 }) }),
69
+ /* @__PURE__ */ e("i", { "aria-hidden": "true", children: /* @__PURE__ */ e(w, { height: 48, width: 48 }) }),
70
70
  /* @__PURE__ */ e("span", { className: "sr-only", children: "Current Week" })
71
71
  ]
72
72
  }
@@ -83,10 +83,10 @@ function P() {
83
83
  disabled: r === 1 ? !0 : void 0,
84
84
  type: "button",
85
85
  onClick: () => {
86
- k(1);
86
+ p(1);
87
87
  },
88
88
  children: [
89
- /* @__PURE__ */ e("i", { "aria-hidden": "true", children: /* @__PURE__ */ e(w, { height: 48, width: 48 }) }),
89
+ /* @__PURE__ */ e("i", { "aria-hidden": "true", children: /* @__PURE__ */ e(A, { height: 48, width: 48 }) }),
90
90
  /* @__PURE__ */ e("span", { className: "sr-only", children: "Next Week" })
91
91
  ]
92
92
  }
@@ -99,7 +99,7 @@ function P() {
99
99
  className: o([n["date-navigation__list"], "date-navigation__list"]),
100
100
  ref: d,
101
101
  role: "tablist",
102
- children: b.map((t) => /* @__PURE__ */ e(
102
+ children: x.map((t) => /* @__PURE__ */ e(
103
103
  "li",
104
104
  {
105
105
  className: [n["date-navigation__item"], "date-navigation__item"].join(" "),
@@ -108,7 +108,7 @@ function P() {
108
108
  "button",
109
109
  {
110
110
  "aria-controls": `${t.fullDateStr}`,
111
- "aria-selected": s.fullDateStr === t.fullDateStr,
111
+ "aria-selected": l.fullDateStr === t.fullDateStr,
112
112
  className: o([n["date-navigation__day"], "date-navigation__day"]),
113
113
  role: "tab",
114
114
  type: "button",
@@ -153,6 +153,6 @@ function P() {
153
153
  ] });
154
154
  }
155
155
  export {
156
- P as DateNavigation,
157
- P as default
156
+ V as DateNavigation,
157
+ V as default
158
158
  };
@@ -1,31 +1,29 @@
1
- import { jsx as a, jsxs as g } from "react/jsx-runtime";
2
- import { useReducer as R, useState as L, useRef as w, useCallback as A, useEffect as y } from "react";
3
- import { classes as T, getMinutesFromStr as u } from "../../utils/helpers.js";
4
- import { useScheduleContext as x } from "../ScheduleLayout/useScheduleContext.js";
5
- import { Loading as b } from "../Loading/Loading.js";
6
- import { SportsItem as D } from "./schedule-list-items/SportsItem.js";
7
- import { SeriesItem as M } from "./schedule-list-items/SeriesItem.js";
8
- import { MovieItem as C } from "./schedule-list-items/MovieItem.js";
1
+ import { jsx as t, jsxs as g } from "react/jsx-runtime";
2
+ import { useReducer as A, useState as u, useRef as S, useCallback as x, useEffect as y } from "react";
3
+ import { classes as R, getMinutesFromStr as b } from "../../utils/helpers.js";
4
+ import { useScheduleContext as w } from "../ScheduleLayout/useScheduleContext.js";
5
+ import { Loading as D } from "../Loading/Loading.js";
6
+ import { SportsItem as M } from "./schedule-list-items/SportsItem.js";
7
+ import { SeriesItem as C } from "./schedule-list-items/SeriesItem.js";
8
+ import { MovieItem as O } from "./schedule-list-items/MovieItem.js";
9
9
  import '../../assets/ScheduleList.css';const l = {
10
- "schedule-list__item": "_schedule-list__item_wmqq1_1",
11
- "schedule-list__airdate": "_schedule-list__airdate_wmqq1_14",
12
- "airdate-formatter__date": "_airdate-formatter__date_wmqq1_22",
13
- "airdate-formatter__day": "_airdate-formatter__day_wmqq1_23",
14
- "airdate-formatter__time-wrap": "_airdate-formatter__time-wrap_wmqq1_26",
15
- "schedule-list": "_schedule-list_wmqq1_1",
16
- "fade-out": "_fade-out_wmqq1_1",
17
- "fade-in": "_fade-in_wmqq1_1",
18
- "schedule-list__no-schedule": "_schedule-list__no-schedule_wmqq1_50",
19
- "schedule-content-constrainer": "_schedule-content-constrainer_wmqq1_102",
20
- "date-navigation__weekday": "_date-navigation__weekday_wmqq1_110",
21
- "date-navigation__date": "_date-navigation__date_wmqq1_113",
22
- "image-card__content": "_image-card__content_wmqq1_122"
10
+ "schedule-list__item": "_schedule-list__item_686v7_1",
11
+ "schedule-list__airdate": "_schedule-list__airdate_686v7_14",
12
+ "airdate-formatter__date": "_airdate-formatter__date_686v7_22",
13
+ "airdate-formatter__day": "_airdate-formatter__day_686v7_23",
14
+ "airdate-formatter__time-wrap": "_airdate-formatter__time-wrap_686v7_26",
15
+ "schedule-list": "_schedule-list_686v7_1",
16
+ "fade-out": "_fade-out_686v7_1",
17
+ "fade-in": "_fade-in_686v7_1",
18
+ "schedule-list__no-schedule": "_schedule-list__no-schedule_686v7_50",
19
+ "schedule-content-constrainer": "_schedule-content-constrainer_686v7_102",
20
+ "image-card__content": "_image-card__content_686v7_116"
23
21
  };
24
- function S(r) {
22
+ function L(r) {
25
23
  return typeof r == "object" && !Array.isArray(r) && (r == null ? void 0 : r.queryStatus) && r.queryStatus === "no-results";
26
24
  }
27
- function O(r, t) {
28
- switch (t.type) {
25
+ function P(r, a) {
26
+ switch (a.type) {
29
27
  case "START_EXIT":
30
28
  return "exiting";
31
29
  case "EXIT_COMPLETE":
@@ -38,9 +36,9 @@ function O(r, t) {
38
36
  return r;
39
37
  }
40
38
  }
41
- const v = (r) => {
42
- var t, o, d, n, _, s, E, f, e, p, i;
43
- return (t = r.video) != null && t.brightcove_id ? {
39
+ const d = (r) => {
40
+ var a, o, v, n, s, _, E, f, p, e, i;
41
+ return (a = r.video) != null && a.brightcove_id ? {
44
42
  label: "Watch Preview",
45
43
  type: "play-video",
46
44
  href: "",
@@ -71,10 +69,10 @@ const v = (r) => {
71
69
  //'film',
72
70
  position: void 0
73
71
  //'inline',
74
- } : (((o = r == null ? void 0 : r.content) == null ? void 0 : o.external_link) !== void 0 && ((d = r == null ? void 0 : r.content) == null ? void 0 : d.external_link) !== "" || ((n = r == null ? void 0 : r.content) == null ? void 0 : n.slug) !== void 0 && ((_ = r == null ? void 0 : r.content) == null ? void 0 : _.slug) !== "") && !((s = r == null ? void 0 : r.content) != null && s.prevent_detail_page) ? {
72
+ } : (((o = r == null ? void 0 : r.content) == null ? void 0 : o.external_link) !== void 0 && ((v = r == null ? void 0 : r.content) == null ? void 0 : v.external_link) !== "" || ((n = r == null ? void 0 : r.content) == null ? void 0 : n.slug) !== void 0 && ((s = r == null ? void 0 : r.content) == null ? void 0 : s.slug) !== "") && !((_ = r == null ? void 0 : r.content) != null && _.prevent_detail_page) ? {
75
73
  label: (r == null ? void 0 : r.program_class) === "Episode" ? "View Series Details" : (r == null ? void 0 : r.program_class) === "Film" ? "View Movie Details" : "Learn More",
76
74
  type: (E = r == null ? void 0 : r.content) != null && E.external_link ? "external-link" : "internal-link",
77
- href: (f = r == null ? void 0 : r.content) != null && f.external_link ? (e = r == null ? void 0 : r.content) == null ? void 0 : e.external_link : r.program_class === "Episode" ? `/show/${(p = r == null ? void 0 : r.content) == null ? void 0 : p.slug}` : `/movie/${(i = r == null ? void 0 : r.content) == null ? void 0 : i.slug}`,
75
+ href: (f = r == null ? void 0 : r.content) != null && f.external_link ? (p = r == null ? void 0 : r.content) == null ? void 0 : p.external_link : r.program_class === "Episode" ? `/show/${(e = r == null ? void 0 : r.content) == null ? void 0 : e.slug}` : `/movie/${(i = r == null ? void 0 : r.content) == null ? void 0 : i.slug}`,
78
76
  position: "inline"
79
77
  } : {
80
78
  label: "",
@@ -83,28 +81,28 @@ const v = (r) => {
83
81
  position: void 0
84
82
  };
85
83
  };
86
- function H({
84
+ function q({
87
85
  handleClicks: r = () => !0
88
86
  }) {
89
- const { schedule: t, isLoading: o, isError: d } = x(), [n, _] = R(O, "idle"), [s, E] = L(t), f = w(null), e = w(null), p = A(() => {
90
- e.current && (clearTimeout(e.current), e.current = null), n === "exiting" ? _({ type: "EXIT_COMPLETE" }) : n === "entering" && _({ type: "ENTER_COMPLETE" });
87
+ const { schedule: a, isLoading: o, isError: v } = w(), [n, s] = A(P, "idle"), [_, E] = u(a), f = S(null), p = S(null), e = x(() => {
88
+ p.current && (clearTimeout(p.current), p.current = null), n === "exiting" ? s({ type: "EXIT_COMPLETE" }) : n === "entering" && s({ type: "ENTER_COMPLETE" });
91
89
  }, [n]);
92
90
  return y(() => {
93
91
  const i = f.current;
94
92
  if (i)
95
- return i.addEventListener("animationend", p), () => {
96
- i.removeEventListener("animationend", p);
93
+ return i.addEventListener("animationend", e), () => {
94
+ i.removeEventListener("animationend", e);
97
95
  };
98
- }, [p]), y(() => {
99
- o && n === "idle" && _({ type: "START_EXIT" });
96
+ }, [e]), y(() => {
97
+ o && n === "idle" && s({ type: "START_EXIT" });
100
98
  }, [o, n]), y(() => {
101
- !o && n === "exiting" && _({ type: "EXIT_COMPLETE" });
99
+ !o && n === "exiting" && s({ type: "EXIT_COMPLETE" });
102
100
  }, [o, n]), y(() => {
103
- const i = S(t) || Array.isArray(t) && t.length >= 0;
104
- !o && n === "loading" && i && (E(t), _({ type: "SCHEDULE_LOADED" }));
105
- }, [o, n, t]), y(() => () => {
106
- e.current && clearTimeout(e.current);
107
- }, []), n === "loading" ? /* @__PURE__ */ a(
101
+ const i = L(a) || Array.isArray(a) && a.length >= 0;
102
+ !o && n === "loading" && i && (E(a), s({ type: "SCHEDULE_LOADED" }));
103
+ }, [o, n, a]), y(() => () => {
104
+ p.current && clearTimeout(p.current);
105
+ }, []), n === "loading" ? /* @__PURE__ */ t(
108
106
  "div",
109
107
  {
110
108
  style: {
@@ -113,81 +111,81 @@ function H({
113
111
  minHeight: "100dvh",
114
112
  paddingTop: "6rem"
115
113
  },
116
- children: /* @__PURE__ */ a(b, {})
114
+ children: /* @__PURE__ */ t(D, {})
117
115
  }
118
- ) : d ? /* @__PURE__ */ g("div", { className: "schedule-list__no-schedule", children: [
119
- /* @__PURE__ */ a("h2", { children: "There was an error loading the schedule for this day." }),
116
+ ) : v ? /* @__PURE__ */ g("div", { className: "schedule-list__no-schedule", children: [
117
+ /* @__PURE__ */ t("h2", { children: "There was an error loading the schedule for this day." }),
120
118
  /* @__PURE__ */ g("p", { children: [
121
119
  "Please try again later. If this problem persists report it at ",
122
- /* @__PURE__ */ a("a", { href: "https://support.iontelevision.com/support/home", children: "our support page" }),
120
+ /* @__PURE__ */ t("a", { href: "https://support.iontelevision.com/support/home", children: "our support page" }),
123
121
  "."
124
122
  ] })
125
- ] }) : S(s) ? /* @__PURE__ */ g(
123
+ ] }) : L(_) ? /* @__PURE__ */ g(
126
124
  "div",
127
125
  {
128
- className: T([
126
+ className: R([
129
127
  l["schedule-list__no-schedule"],
130
128
  "schedule-list__no-schedule"
131
129
  ]),
132
130
  "data-state": n,
133
131
  style: { animationDelay: "500ms" },
134
132
  children: [
135
- /* @__PURE__ */ a("h2", { children: "There are no shows scheduled for this day." }),
133
+ /* @__PURE__ */ t("h2", { children: "There are no shows scheduled for this day." }),
136
134
  /* @__PURE__ */ g("p", { children: [
137
135
  "Please try again later. If this problem persists report it at ",
138
- /* @__PURE__ */ a("a", { href: "https://support.iontelevision.com/support/home", children: "our support page" }),
136
+ /* @__PURE__ */ t("a", { href: "https://support.iontelevision.com/support/home", children: "our support page" }),
139
137
  "."
140
138
  ] })
141
139
  ]
142
140
  }
143
- ) : Array.isArray(s) && s.length === 0 ? /* @__PURE__ */ g(
141
+ ) : Array.isArray(_) && _.length === 0 ? /* @__PURE__ */ g(
144
142
  "div",
145
143
  {
146
- className: T([
144
+ className: R([
147
145
  l["schedule-list__no-schedule"],
148
146
  "schedule-list__no-schedule"
149
147
  ]),
150
148
  "data-state": n,
151
149
  children: [
152
- /* @__PURE__ */ a("h2", { children: "Our programming schedule for today has completed." }),
153
- /* @__PURE__ */ a("p", { children: "Our programming will restart at 6am." })
150
+ /* @__PURE__ */ t("h2", { children: "Our programming schedule for today has completed." }),
151
+ /* @__PURE__ */ t("p", { children: "Our programming will restart at 6am." })
154
152
  ]
155
153
  }
156
- ) : /* @__PURE__ */ a(
154
+ ) : /* @__PURE__ */ t(
157
155
  "ul",
158
156
  {
159
157
  className: `${l["schedule-list"]} schedule-list`,
160
158
  "data-state": n,
161
159
  ref: f,
162
- children: Array.isArray(s) && s.map((i) => {
163
- const c = u(i.element_length), q = v(i).type === "" ? [c, i.rating] : [c, i.rating, "&nbsp;"];
164
- return i.program_class === "Episode" ? /* @__PURE__ */ a(
165
- M,
160
+ children: Array.isArray(_) && _.map((i) => {
161
+ const T = b(i.element_length), c = d(i).type === "" ? [T, i.rating] : [T, i.rating, "&nbsp;"];
162
+ return i.program_class === "Episode" ? /* @__PURE__ */ t(
163
+ C,
166
164
  {
167
- determineCTA: v,
165
+ determineCTA: d,
168
166
  handleClicks: r,
169
167
  scheduleItem: i,
170
- strListArr: q,
168
+ strListArr: c,
171
169
  styles: l
172
170
  },
173
171
  `schedule-list-${i.id}`
174
- ) : i.program_class === "Film" || i.program_class === "Movie" || i.program_class === "Special" ? /* @__PURE__ */ a(
175
- C,
172
+ ) : i.program_class === "Film" || i.program_class === "Movie" || i.program_class === "Special" ? /* @__PURE__ */ t(
173
+ O,
176
174
  {
177
- determineCTA: v,
175
+ determineCTA: d,
178
176
  handleClicks: r,
179
177
  scheduleItem: i,
180
- strListArr: q,
178
+ strListArr: c,
181
179
  styles: l
182
180
  },
183
181
  `schedule-list-${i.id}`
184
- ) : i.program_class === "Sports" ? /* @__PURE__ */ a(
185
- D,
182
+ ) : i.program_class === "Sports" ? /* @__PURE__ */ t(
183
+ M,
186
184
  {
187
- determineCTA: v,
185
+ determineCTA: d,
188
186
  handleClicks: r,
189
187
  scheduleItem: i,
190
- strListArr: q,
188
+ strListArr: c,
191
189
  styles: l
192
190
  },
193
191
  `schedule-list-${i.id}`
@@ -197,6 +195,6 @@ function H({
197
195
  );
198
196
  }
199
197
  export {
200
- H as ScheduleList,
201
- H as default
198
+ q as ScheduleList,
199
+ q as default
202
200
  };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.0-alpha.13",
2
+ "version": "1.1.0-alpha.15",
3
3
  "name": "@scrippsproduct/networks-ui-library",
4
4
  "description": "React Component Library for use in Scripps Networks external applications",
5
5
  "author": {