@scrippsproduct/networks-ui-library 1.0.22 → 1.0.23-alpha.1
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,8 +1,14 @@
|
|
|
1
|
-
export function ShowAboutLayout({ series, type, showUpcoming, nextAirdates, firstColumnWidth }: {
|
|
1
|
+
export function ShowAboutLayout({ series, type, showUpcoming, nextAirdates, firstColumnWidth, socialShare }: {
|
|
2
2
|
series: any;
|
|
3
3
|
type?: string | undefined;
|
|
4
4
|
showUpcoming?: boolean | undefined;
|
|
5
5
|
nextAirdates?: never[] | undefined;
|
|
6
6
|
firstColumnWidth?: string | undefined;
|
|
7
|
+
socialShare?: {
|
|
8
|
+
enabled: boolean;
|
|
9
|
+
url: string;
|
|
10
|
+
text: string;
|
|
11
|
+
longtext: string;
|
|
12
|
+
} | undefined;
|
|
7
13
|
}): import("react/jsx-runtime").JSX.Element;
|
|
8
14
|
export default ShowAboutLayout;
|
|
@@ -1,54 +1,71 @@
|
|
|
1
|
-
import { jsx as a, Fragment as
|
|
1
|
+
import { jsx as a, Fragment as k, jsxs as c } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { ImageCard as
|
|
4
|
-
import { AdjustableTwoColumnGrid as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
3
|
+
import { ImageCard as x } from "../ImageCard/ImageCard.js";
|
|
4
|
+
import { AdjustableTwoColumnGrid as y } from "../AdjustableTwoColumnGrid/AdjustableTwoColumnGrid.js";
|
|
5
|
+
import { SocialShareBlock as T } from "../SocialShareBlock/SocialShareBlock.js";
|
|
6
|
+
import { Concat as p } from "../Concat/Concat.js";
|
|
7
|
+
import { StringList as e } from "../StringList/StringList.js";
|
|
8
|
+
import { ShowAboutContent as h } from "../ShowAboutContent/ShowAboutContent.js";
|
|
9
|
+
import { getHoursMinsStr as A, classes as n } from "../../utils/helpers.js";
|
|
10
|
+
import '../../assets/ShowAboutLayout.css';const r = {
|
|
10
11
|
"series-about-tab": "_series-about-tab_cekq9_1",
|
|
11
12
|
"slide-up": "_slide-up_cekq9_1"
|
|
12
13
|
};
|
|
13
|
-
function
|
|
14
|
+
function F({
|
|
14
15
|
series: t,
|
|
15
|
-
type:
|
|
16
|
-
showUpcoming:
|
|
17
|
-
nextAirdates:
|
|
18
|
-
firstColumnWidth:
|
|
16
|
+
type: l = "series",
|
|
17
|
+
showUpcoming: g = !1,
|
|
18
|
+
nextAirdates: b = [],
|
|
19
|
+
firstColumnWidth: d = "33%",
|
|
20
|
+
socialShare: o = {
|
|
21
|
+
enabled: !1,
|
|
22
|
+
url: "",
|
|
23
|
+
text: "",
|
|
24
|
+
longtext: ""
|
|
25
|
+
}
|
|
19
26
|
}) {
|
|
20
|
-
var
|
|
21
|
-
const
|
|
22
|
-
return /* @__PURE__ */ a(
|
|
23
|
-
t.detailImage === null ? /* @__PURE__ */ a(
|
|
24
|
-
typeof t.genres == "string" ? t.genres : /* @__PURE__ */ a(
|
|
25
|
-
/* @__PURE__ */ a(
|
|
27
|
+
var u, i;
|
|
28
|
+
const s = t.cast.map((f) => f.real_name).join(", "), _ = t != null && t.run_time ? A(t.run_time) : "", m = l === "series" ? ["TV Series", t.rating] : [t != null && t.year_released ? t == null ? void 0 : t.year_released : "Film", t.rating, _];
|
|
29
|
+
return console.log("social share in ShowAboutLayout: ", o), /* @__PURE__ */ a(k, { children: /* @__PURE__ */ c(y, { classname: n([r["series-about-tab"], "series-about-tab"]), firstColumnWidth: d, children: [
|
|
30
|
+
t.detailImage === null ? /* @__PURE__ */ a(p, { list: [
|
|
31
|
+
typeof t.genres == "string" ? t.genres : /* @__PURE__ */ a(e, { list: t.genres, separatorType: "comma", makeBlock: !0 }),
|
|
32
|
+
/* @__PURE__ */ a(e, { list: m, separatorType: "pipe", makeBlock: !0 })
|
|
26
33
|
] }) : /* @__PURE__ */ a(
|
|
27
|
-
|
|
34
|
+
x,
|
|
28
35
|
{
|
|
29
36
|
image: {
|
|
30
|
-
url: (
|
|
31
|
-
aspectRatio: (
|
|
37
|
+
url: (u = t.detailImage) == null ? void 0 : u.url,
|
|
38
|
+
aspectRatio: (i = t.detailImage) == null ? void 0 : i.aspectRatio
|
|
32
39
|
},
|
|
33
|
-
content: /* @__PURE__ */ a(
|
|
34
|
-
typeof t.genres == "string" ? t.genres : /* @__PURE__ */ a(
|
|
35
|
-
/* @__PURE__ */ a(
|
|
40
|
+
content: /* @__PURE__ */ a(p, { list: [
|
|
41
|
+
typeof t.genres == "string" ? t.genres : /* @__PURE__ */ a(e, { list: t.genres, separatorType: "comma", makeBlock: !0 }),
|
|
42
|
+
/* @__PURE__ */ a(e, { list: m, separatorType: "pipe", makeBlock: !0 })
|
|
36
43
|
] })
|
|
37
44
|
}
|
|
38
45
|
),
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
/* @__PURE__ */ c("div", { className: n([r["series-about-tab__content"], "series-about-tab__content"]), children: [
|
|
47
|
+
/* @__PURE__ */ a(
|
|
48
|
+
h,
|
|
49
|
+
{
|
|
50
|
+
series: t,
|
|
51
|
+
showUpcoming: g,
|
|
52
|
+
castStr: s,
|
|
53
|
+
type: l,
|
|
54
|
+
nextAirDates: b
|
|
55
|
+
}
|
|
56
|
+
),
|
|
57
|
+
o.enabled && /* @__PURE__ */ a("div", { className: n([r["series-about-tab__social-share"], "series-about-tab__social-share"]), children: /* @__PURE__ */ a(
|
|
58
|
+
T,
|
|
59
|
+
{
|
|
60
|
+
url: o.url,
|
|
61
|
+
text: o.text,
|
|
62
|
+
longtext: o.longtext
|
|
63
|
+
}
|
|
64
|
+
) })
|
|
65
|
+
] })
|
|
49
66
|
] }) });
|
|
50
67
|
}
|
|
51
68
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
69
|
+
F as ShowAboutLayout,
|
|
70
|
+
F as default
|
|
54
71
|
};
|
package/package.json
CHANGED