@streamlayer/react-ui 1.7.1 → 1.8.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.
- package/lib/app/app/Advertisement/index.d.ts +0 -1
- package/lib/app/app/Advertisement/index.js +59 -71
- package/lib/app/app/Insight/index.d.ts +0 -1
- package/lib/app/app/Insight/index.js +37 -53
- package/lib/app/app/story/insight/index.js +31 -34
- package/lib/app/app/story/insight/video.d.ts +0 -1
- package/lib/app/app/story/insight/video.js +14 -14
- package/lib/app/app/story/promotion/content.d.ts +1 -3
- package/lib/app/app/story/promotion/content.js +10 -13
- package/lib/app/app/story/promotion/index.js +2 -3
- package/lib/app/tgl/index.d.ts +11 -0
- package/lib/app/tgl/index.js +54 -0
- package/lib/app/tgl/styles.d.ts +7 -0
- package/lib/app/tgl/styles.js +36 -0
- package/lib/app/tgl/video.d.ts +10 -0
- package/lib/app/tgl/video.js +105 -0
- package/lib/assets/style.css +1 -1
- package/lib/reset.css +9 -0
- package/lib/ui/advertisement/banner/index.js +6 -7
- package/lib/ui/advertisement/banner/styles.d.ts +0 -1
- package/lib/ui/advertisement/banner/styles.js +2 -7
- package/lib/ui/advertisement/index.d.ts +2 -3
- package/lib/ui/advertisement/index.js +25 -27
- package/lib/ui/advertisement/overlay/index.js +38 -38
- package/lib/ui/theme/constants.d.ts +10 -0
- package/lib/ui/theme/constants.js +31 -21
- package/lib/ui/theme/theme.js +46 -24
- package/package.json +15 -15
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
export declare const BannerContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
2
2
|
export declare const BannerLink: any;
|
|
3
|
-
export declare const BannerImg: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLImageElement> & import('react').ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { styled as n } from "@linaria/react";
|
|
2
2
|
import { Link as s } from "../../link/index.js";
|
|
3
|
-
const
|
|
3
|
+
const a = /* @__PURE__ */ n("div")({
|
|
4
4
|
name: "BannerContainer",
|
|
5
5
|
class: "b7yfc72",
|
|
6
6
|
propsAsIs: !1
|
|
@@ -8,13 +8,8 @@ const o = /* @__PURE__ */ n("div")({
|
|
|
8
8
|
name: "BannerLink",
|
|
9
9
|
class: "bejjq94",
|
|
10
10
|
propsAsIs: !0
|
|
11
|
-
}), m = /* @__PURE__ */ n("img")({
|
|
12
|
-
name: "BannerImg",
|
|
13
|
-
class: "b1j94hdr",
|
|
14
|
-
propsAsIs: !1
|
|
15
11
|
});
|
|
16
12
|
export {
|
|
17
|
-
|
|
18
|
-
m as BannerImg,
|
|
13
|
+
a as BannerContainer,
|
|
19
14
|
t as BannerLink
|
|
20
15
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { Advertisement } from '@streamlayer/feature-gamification';
|
|
2
2
|
export declare const AdvertisementUI: React.FC<{
|
|
3
|
-
advertisement: Advertisement
|
|
4
|
-
data: Exclude<Advertisement['data'], undefined>;
|
|
5
|
-
};
|
|
3
|
+
advertisement: Exclude<Advertisement['data'], undefined>;
|
|
6
4
|
layoutMode?: 'cover' | 'side-by-side';
|
|
7
5
|
sidebar?: 'left' | 'right';
|
|
8
6
|
banner?: 'top' | 'bottom';
|
|
7
|
+
close?: () => void;
|
|
9
8
|
isNotification?: boolean;
|
|
10
9
|
skipTypeCheck?: boolean;
|
|
11
10
|
}>;
|
|
@@ -1,29 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
] });
|
|
26
|
-
};
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { PromotionType as r } from "@streamlayer/sdk-web-types";
|
|
3
|
+
import { Banner as c } from "./banner/index.js";
|
|
4
|
+
import { Notification as y } from "./notification/index.js";
|
|
5
|
+
import { Overlay as u } from "./overlay/index.js";
|
|
6
|
+
import { Sidebar as A } from "./sidebar/index.js";
|
|
7
|
+
import { OverlayContainer as a } from "./overlay/styles.js";
|
|
8
|
+
const d = (i) => (i == null ? void 0 : i.type) === r.INGAME_IAB11_LBAR || (i == null ? void 0 : i.type) === r.INGAME_IAB21_LBAR, B = (i) => (i == null ? void 0 : i.type) === r.INGAME_IAB11 || (i == null ? void 0 : i.type) === r.INGAME_IAB21, C = ({
|
|
9
|
+
advertisement: i,
|
|
10
|
+
close: t,
|
|
11
|
+
skipTypeCheck: l,
|
|
12
|
+
layoutMode: N = "side-by-side",
|
|
13
|
+
sidebar: n,
|
|
14
|
+
isNotification: I,
|
|
15
|
+
banner: f
|
|
16
|
+
}) => i.promotion ? I && i.notification ? /* @__PURE__ */ o(y, { notification: i.notification, promotionId: i.question.id }) : !n && !f && (l || B(i.promotion)) ? /* @__PURE__ */ o(a, { className: "PromoOverlayContainer", children: /* @__PURE__ */ o(u, { promotionId: i.question.id, promotion: i.promotion, onClose: t }) }) : n && (l || d(i.promotion)) ? /* @__PURE__ */ o(A, { className: "PromoSidebarContainer", direction: n, hiding: !1, children: /* @__PURE__ */ o(u, { promotionId: i.question.id, promotion: i.promotion, onClose: t }) }) : f ? /* @__PURE__ */ o(
|
|
17
|
+
c,
|
|
18
|
+
{
|
|
19
|
+
promotionId: i.question.id,
|
|
20
|
+
hiding: !1,
|
|
21
|
+
promotion: i.promotion,
|
|
22
|
+
direction: f
|
|
23
|
+
}
|
|
24
|
+
) : null : null;
|
|
27
25
|
export {
|
|
28
|
-
|
|
26
|
+
C as AdvertisementUI
|
|
29
27
|
};
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { cx as D } from "@linaria/core";
|
|
3
|
-
import { eventBus as
|
|
4
|
-
import { PromotionType as R, PromotionLogoMode as
|
|
5
|
-
import { VideoPlayer as
|
|
6
|
-
import { PromoOverlay as
|
|
7
|
-
import { OverlayContainer as
|
|
8
|
-
const
|
|
9
|
-
var t, c, d, i,
|
|
10
|
-
const
|
|
11
|
-
return /* @__PURE__ */ a(
|
|
12
|
-
/* @__PURE__ */ a(
|
|
13
|
-
/* @__PURE__ */ a(
|
|
14
|
-
((c = e.sponsor) == null ? void 0 : c.logo) && e.logoMode ===
|
|
3
|
+
import { eventBus as k } from "@streamlayer/sdk-web-interfaces";
|
|
4
|
+
import { PromotionType as R, PromotionLogoMode as n, PromotionButtonType as j } from "@streamlayer/sdk-web-types";
|
|
5
|
+
import { VideoPlayer as G } from "../../video-player/index.js";
|
|
6
|
+
import { PromoOverlay as H, Header as W, HeaderContent as V, headerContentShift as q, SponsorLogo as _, Sponsor as w, SponsorName as z, SponsorText as J, ADLogo as K, SponsoredText as Q, CloseIconWrap as X, CloseIcon as Y, Media as Z, shiftMedia as $, Content as F, PromoImg as ee, Title as re, hideOnMobile as ae, Description as ne, ActionBtnWrap as le, ActionButton as oe } from "./styles.js";
|
|
7
|
+
import { OverlayContainer as pe } from "./styles.js";
|
|
8
|
+
const be = ({ promotion: e, promotionId: s, onClose: U }) => {
|
|
9
|
+
var t, c, d, i, y, b, h, g, p, u, m, T, f, v, N, C, x, A, B, P, M, I, O, S, E, L;
|
|
10
|
+
const l = e.type === R.INGAME_IAB11_LBAR || e.type === R.INGAME_IAB11, o = ((t = e.sponsor) == null ? void 0 : t.logo) && e.logoMode === n.CENTER;
|
|
11
|
+
return /* @__PURE__ */ a(H, { className: "PromoOverlay", children: [
|
|
12
|
+
/* @__PURE__ */ a(W, { children: [
|
|
13
|
+
/* @__PURE__ */ a(V, { className: D(!o && q), children: [
|
|
14
|
+
((c = e.sponsor) == null ? void 0 : c.logo) && e.logoMode === n.LEFT && /* @__PURE__ */ r(_, { src: (d = e.sponsor) == null ? void 0 : d.logo, alt: "promo" }),
|
|
15
15
|
/* @__PURE__ */ a(
|
|
16
|
-
|
|
16
|
+
w,
|
|
17
17
|
{
|
|
18
18
|
style: {
|
|
19
|
-
paddingLeft: (i = e.sponsor) != null && i.logo && e.logoMode ===
|
|
19
|
+
paddingLeft: (i = e.sponsor) != null && i.logo && e.logoMode === n.LEFT ? "0px" : "8px"
|
|
20
20
|
},
|
|
21
21
|
children: [
|
|
22
|
-
((
|
|
23
|
-
/* @__PURE__ */ a(
|
|
24
|
-
/* @__PURE__ */ r(
|
|
25
|
-
/* @__PURE__ */ r(
|
|
22
|
+
((y = e.sponsor) == null ? void 0 : y.logo) && e.logoMode === n.LEFT && /* @__PURE__ */ r(z, { children: (b = e.sponsor) == null ? void 0 : b.name }),
|
|
23
|
+
/* @__PURE__ */ a(J, { className: "SponsorText", children: [
|
|
24
|
+
/* @__PURE__ */ r(K, { children: "AD" }),
|
|
25
|
+
/* @__PURE__ */ r(Q, { children: "SPONSORED" })
|
|
26
26
|
] })
|
|
27
27
|
]
|
|
28
28
|
}
|
|
29
29
|
)
|
|
30
30
|
] }),
|
|
31
|
-
/* @__PURE__ */ r(
|
|
31
|
+
/* @__PURE__ */ r(X, { className: "ClosePromoIcon", onClick: U, children: /* @__PURE__ */ r(Y, { name: "icon-cross" }) })
|
|
32
32
|
] }),
|
|
33
|
-
/* @__PURE__ */ a(
|
|
34
|
-
o && /* @__PURE__ */ r(
|
|
35
|
-
/* @__PURE__ */ r(
|
|
36
|
-
|
|
33
|
+
/* @__PURE__ */ a(Z, { children: [
|
|
34
|
+
o && /* @__PURE__ */ r(_, { className: $, src: (h = e.sponsor) == null ? void 0 : h.logo, alt: "promo" }),
|
|
35
|
+
/* @__PURE__ */ r(F, { children: (p = (g = e.banner) == null ? void 0 : g.video) != null && p.url ? /* @__PURE__ */ r(
|
|
36
|
+
G,
|
|
37
37
|
{
|
|
38
|
-
source: (
|
|
39
|
-
poster: (
|
|
40
|
-
aspectRatio:
|
|
38
|
+
source: (m = (u = e.banner) == null ? void 0 : u.video) == null ? void 0 : m.url,
|
|
39
|
+
poster: (f = (T = e.banner) == null ? void 0 : T.video) == null ? void 0 : f.thumbnailUrl,
|
|
40
|
+
aspectRatio: l ? "1/1" : "16/9",
|
|
41
41
|
onPlay: () => {
|
|
42
|
-
|
|
42
|
+
k.emit("advertisement", {
|
|
43
43
|
action: "videoPlay",
|
|
44
44
|
payload: {
|
|
45
45
|
advertisementId: s,
|
|
@@ -48,30 +48,30 @@ const he = ({ promotion: e, promotionId: s, onClose: k }) => {
|
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
) : (
|
|
52
|
-
!
|
|
53
|
-
((
|
|
54
|
-
((
|
|
51
|
+
) : (v = e.banner) != null && v.imageUrl ? /* @__PURE__ */ r(ee, { style: l ? { aspectRatio: "1/1" } : {}, src: (N = e.banner) == null ? void 0 : N.imageUrl, alt: "promo" }) : null }),
|
|
52
|
+
!l && /* @__PURE__ */ a(F, { children: [
|
|
53
|
+
((C = e.banner) == null ? void 0 : C.title) && /* @__PURE__ */ r(re, { className: D("AdvTitle", o && ae), children: (x = e.banner) == null ? void 0 : x.title }),
|
|
54
|
+
((A = e.banner) == null ? void 0 : A.body) && /* @__PURE__ */ r(ne, { className: "AdvDescription", children: (B = e.banner) == null ? void 0 : B.body })
|
|
55
55
|
] })
|
|
56
56
|
] }),
|
|
57
|
-
/* @__PURE__ */ r(le, { children: /* @__PURE__ */ r(
|
|
58
|
-
|
|
57
|
+
e.buttonType !== j.NO_BUTTON && /* @__PURE__ */ r(le, { children: /* @__PURE__ */ r(
|
|
58
|
+
oe,
|
|
59
59
|
{
|
|
60
60
|
href: (P = e.banner) == null ? void 0 : P.url,
|
|
61
61
|
style: {
|
|
62
|
-
backgroundColor: ((I = (
|
|
63
|
-
color: ((
|
|
62
|
+
backgroundColor: ((I = (M = e.banner) == null ? void 0 : M.ctaButton) == null ? void 0 : I.color) || "#009dc4",
|
|
63
|
+
color: ((S = (O = e.banner) == null ? void 0 : O.ctaButton) == null ? void 0 : S.textColor) || "#fff"
|
|
64
64
|
},
|
|
65
65
|
"data-analytics": "button",
|
|
66
66
|
"data-promo-id": s,
|
|
67
67
|
"data-promo-type": e.type,
|
|
68
68
|
target: "_blank",
|
|
69
|
-
children: (
|
|
69
|
+
children: (L = (E = e.banner) == null ? void 0 : E.ctaButton) == null ? void 0 : L.label
|
|
70
70
|
}
|
|
71
71
|
) })
|
|
72
72
|
] });
|
|
73
73
|
};
|
|
74
74
|
export {
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
be as Overlay,
|
|
76
|
+
pe as OverlayContainer
|
|
77
77
|
};
|
|
@@ -12,6 +12,7 @@ export declare const COLORS: {
|
|
|
12
12
|
UNSUCCESS: string;
|
|
13
13
|
SECONDARY_RED1: string;
|
|
14
14
|
NEUTRALS_WHITE: string;
|
|
15
|
+
NEUTRALS_WHITE1: string;
|
|
15
16
|
NEUTRALS_GRAY1: string;
|
|
16
17
|
NEUTRALS_GRAY2: string;
|
|
17
18
|
NEUTRALS_GRAY3: string;
|
|
@@ -27,6 +28,7 @@ export declare const COLORS_ADVERTISEMENT: {
|
|
|
27
28
|
BG_SECONDARY1: string;
|
|
28
29
|
BORDER_PRIMARY: string;
|
|
29
30
|
TEXT_PRIMARY: string;
|
|
31
|
+
TEXT_PRIMARY1: string;
|
|
30
32
|
TEXT_SECONDARY: string;
|
|
31
33
|
TEXT_SECONDARY1: string;
|
|
32
34
|
WHITE: string;
|
|
@@ -41,6 +43,14 @@ export declare const FONT: {
|
|
|
41
43
|
SERIF: string;
|
|
42
44
|
COLOR: string;
|
|
43
45
|
WEIGHT_DEFAULT: string;
|
|
46
|
+
WEIGHT_DEFAULT1: string;
|
|
47
|
+
WEIGHT_DEFAULT2: string;
|
|
48
|
+
WEIGHT_DEFAULT3: string;
|
|
49
|
+
SIZE_DEFAULT: string;
|
|
50
|
+
SIZE_DEFAULT1: string;
|
|
51
|
+
SIZE_DEFAULT2: string;
|
|
52
|
+
LINE_HEIGHT: string;
|
|
53
|
+
MARGIN_TITLE_DEFAULT: string;
|
|
44
54
|
};
|
|
45
55
|
export declare const BREAKPOINTS: {
|
|
46
56
|
xs: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const T = {
|
|
2
2
|
BG_TRANSPARENT: "rgba(0,0,0, .8)",
|
|
3
3
|
BLUE_QUESTION_ACTION_BTN: "#1589ee",
|
|
4
4
|
WHITE: "#FFFFFF",
|
|
@@ -12,6 +12,7 @@ const e = {
|
|
|
12
12
|
UNSUCCESS: "#DF2F3B",
|
|
13
13
|
SECONDARY_RED1: "#DF2F3B",
|
|
14
14
|
NEUTRALS_WHITE: "#FFFFFF",
|
|
15
|
+
NEUTRALS_WHITE1: "#FFFFFF",
|
|
15
16
|
NEUTRALS_GRAY1: "#F7F7F7",
|
|
16
17
|
NEUTRALS_GRAY2: "#F2F2F1",
|
|
17
18
|
NEUTRALS_GRAY3: "#E8E8E8",
|
|
@@ -20,47 +21,56 @@ const e = {
|
|
|
20
21
|
NEUTRALS_GRAY6: "#888B8D",
|
|
21
22
|
NEUTRALS_GRAY7: "#6B6F73",
|
|
22
23
|
NEUTRALS_GRAY9: "#25282A"
|
|
23
|
-
},
|
|
24
|
+
}, F = {
|
|
24
25
|
BG_PRIMARY: "#13212b",
|
|
25
26
|
BG_SECONDARY: "#152430",
|
|
26
27
|
BG_SECONDARY1: "#435059",
|
|
27
28
|
BORDER_PRIMARY: "rgba(255, 255, 255, 0.1)",
|
|
28
29
|
TEXT_PRIMARY: "#f9f9f9",
|
|
30
|
+
TEXT_PRIMARY1: "#f9f9f9",
|
|
29
31
|
TEXT_SECONDARY: "rgba(255, 255, 255, 0.8)",
|
|
30
32
|
TEXT_SECONDARY1: "#878787",
|
|
31
33
|
WHITE: "#fff"
|
|
32
|
-
}, _ = ["#107D57", "#DF2F3B", "#DF2F3B", "#E8E8E8"],
|
|
34
|
+
}, _ = ["#107D57", "#DF2F3B", "#DF2F3B", "#E8E8E8"], e = "#cee5de", I = "#f9d6d8", S = "#E8E8E8", N = {
|
|
33
35
|
REGULAR: "'SF Pro Text', Arial, Helvetica, sans-serif",
|
|
34
36
|
SERIF: "'SF Pro Display', Arial, Helvetica, sans-serif",
|
|
35
37
|
COLOR: "#fff",
|
|
36
|
-
WEIGHT_DEFAULT: "500"
|
|
37
|
-
|
|
38
|
+
WEIGHT_DEFAULT: "500",
|
|
39
|
+
WEIGHT_DEFAULT1: "500",
|
|
40
|
+
WEIGHT_DEFAULT2: "400",
|
|
41
|
+
WEIGHT_DEFAULT3: "500",
|
|
42
|
+
SIZE_DEFAULT: "16px",
|
|
43
|
+
SIZE_DEFAULT1: "14px",
|
|
44
|
+
SIZE_DEFAULT2: "12px",
|
|
45
|
+
LINE_HEIGHT: "24px",
|
|
46
|
+
MARGIN_TITLE_DEFAULT: "24px 0px"
|
|
47
|
+
}, r = {
|
|
38
48
|
xs: 324,
|
|
39
49
|
sm: 576,
|
|
40
50
|
md: 768,
|
|
41
51
|
lg: 992,
|
|
42
52
|
xl: 1200,
|
|
43
53
|
xxl: 1440
|
|
44
|
-
},
|
|
54
|
+
}, D = {
|
|
45
55
|
landscape: "landscape",
|
|
46
56
|
portrait: "portrait"
|
|
47
|
-
},
|
|
48
|
-
${
|
|
49
|
-
--color-${
|
|
50
|
-
`, ""),
|
|
51
|
-
${
|
|
52
|
-
--color-adv-${
|
|
57
|
+
}, s = Object.entries(T).reduce((E, [R, A]) => `
|
|
58
|
+
${E}
|
|
59
|
+
--color-${R.toLowerCase().replaceAll("_", "-")}: ${A};
|
|
60
|
+
`, ""), t = Object.entries(F).reduce((E, [R, A]) => `
|
|
61
|
+
${E}
|
|
62
|
+
--color-adv-${R.toLowerCase().replaceAll("_", "-")}: ${A};
|
|
53
63
|
`, "");
|
|
54
64
|
export {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
65
|
+
r as BREAKPOINTS,
|
|
66
|
+
T as COLORS,
|
|
67
|
+
F as COLORS_ADVERTISEMENT,
|
|
68
|
+
N as FONT,
|
|
69
|
+
D as ORIENTATION,
|
|
60
70
|
_ as TIMER_COLORS,
|
|
61
71
|
S as TIMER_GRAY,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
72
|
+
e as TIMER_GREEN,
|
|
73
|
+
I as TIMER_RED,
|
|
74
|
+
s as colors,
|
|
75
|
+
t as colorsAdvertisement
|
|
66
76
|
};
|
package/lib/ui/theme/theme.js
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as t, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import { breakpoints as d } from "./breakpoints.js";
|
|
3
|
-
import { colors as p, colorsAdvertisement as s, FONT as
|
|
4
|
-
const
|
|
3
|
+
import { colors as p, colorsAdvertisement as s, FONT as e } from "./constants.js";
|
|
4
|
+
const l = `
|
|
5
5
|
${p}
|
|
6
6
|
${s}
|
|
7
|
-
--font-family: ${
|
|
8
|
-
--font-regular: ${
|
|
9
|
-
--font-color: ${
|
|
10
|
-
--font-serif: ${
|
|
11
|
-
--font-weight-default: ${
|
|
7
|
+
--font-family: ${e.REGULAR};
|
|
8
|
+
--font-regular: ${e.REGULAR};
|
|
9
|
+
--font-color: ${e.COLOR};
|
|
10
|
+
--font-serif: ${e.SERIF};
|
|
11
|
+
--font-weight-default: ${e.WEIGHT_DEFAULT};
|
|
12
|
+
--font-weight-default1: ${e.WEIGHT_DEFAULT1};
|
|
13
|
+
--font-weight-default2: ${e.WEIGHT_DEFAULT2};
|
|
14
|
+
--font-weight-default3: ${e.WEIGHT_DEFAULT3};
|
|
15
|
+
--font-size-default: ${e.SIZE_DEFAULT};
|
|
16
|
+
--font-size-default1: ${e.SIZE_DEFAULT1};
|
|
17
|
+
--font-size-default2: ${e.SIZE_DEFAULT2};
|
|
18
|
+
--line-height-default: ${e.LINE_HEIGHT};
|
|
19
|
+
--margin-title-default: ${e.MARGIN_TITLE_DEFAULT};
|
|
12
20
|
|
|
13
21
|
--header-offset: 0px;
|
|
14
22
|
--header-height: 68px;
|
|
@@ -22,6 +30,20 @@ const h = `
|
|
|
22
30
|
--pill-offset: 0px;
|
|
23
31
|
--max-width: 600px;
|
|
24
32
|
--max-notifications-width: 400px;
|
|
33
|
+
--promo-header-line-height: 18.5px;
|
|
34
|
+
--row-gap-default: 12px;
|
|
35
|
+
--row-gap-default1: 12px;
|
|
36
|
+
--row-gap-default2: 16px;
|
|
37
|
+
--header-padding: 12px 12px 12px 16px;
|
|
38
|
+
--margin-web-link-btn: 0px;
|
|
39
|
+
--padding-web-link-btn: 11px 16px;
|
|
40
|
+
--insight-content-padding: 0px;
|
|
41
|
+
--close-icon-size: 12px;
|
|
42
|
+
--close-icon-stroke-width: 1.5;
|
|
43
|
+
--padding-title-default: 0px;
|
|
44
|
+
--insight-image-display: inline;
|
|
45
|
+
--web-link-align-items: center;
|
|
46
|
+
--web-link-column-gap: 10px;
|
|
25
47
|
|
|
26
48
|
${d.down("xl")`
|
|
27
49
|
--header-offset: 0px;
|
|
@@ -64,23 +86,23 @@ const h = `
|
|
|
64
86
|
--adv-sponsor-logo-size: 28px;
|
|
65
87
|
--adv-sponsor-font-size: 12px;
|
|
66
88
|
}
|
|
67
|
-
`,
|
|
68
|
-
children: /* @__PURE__ */
|
|
69
|
-
children: [/* @__PURE__ */
|
|
70
|
-
children: /* @__PURE__ */
|
|
71
|
-
children: [/* @__PURE__ */
|
|
89
|
+
`, m = "StreamLayerCSSReset", g = "ttkj0ah", c = () => /* @__PURE__ */ t("table", {
|
|
90
|
+
children: /* @__PURE__ */ i("table", {
|
|
91
|
+
children: [/* @__PURE__ */ t("thead", {
|
|
92
|
+
children: /* @__PURE__ */ i("tr", {
|
|
93
|
+
children: [/* @__PURE__ */ t("th", {
|
|
72
94
|
children: "name"
|
|
73
|
-
}), /* @__PURE__ */
|
|
95
|
+
}), /* @__PURE__ */ t("th", {
|
|
74
96
|
children: "value"
|
|
75
97
|
})]
|
|
76
98
|
})
|
|
77
|
-
}), /* @__PURE__ */
|
|
78
|
-
children:
|
|
79
|
-
const a =
|
|
80
|
-
return /* @__PURE__ */
|
|
81
|
-
children: [/* @__PURE__ */
|
|
82
|
-
children:
|
|
83
|
-
}), /* @__PURE__ */
|
|
99
|
+
}), /* @__PURE__ */ t("tbody", {
|
|
100
|
+
children: l.split(";").map((n) => {
|
|
101
|
+
const a = n.trim(), [o, r] = a.split(":");
|
|
102
|
+
return /* @__PURE__ */ i("tr", {
|
|
103
|
+
children: [/* @__PURE__ */ t("td", {
|
|
104
|
+
children: o
|
|
105
|
+
}), /* @__PURE__ */ t("td", {
|
|
84
106
|
children: r
|
|
85
107
|
})]
|
|
86
108
|
}, a);
|
|
@@ -90,7 +112,7 @@ const h = `
|
|
|
90
112
|
});
|
|
91
113
|
export {
|
|
92
114
|
c as ThemeVariables,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
115
|
+
m as resetCss,
|
|
116
|
+
g as theme,
|
|
117
|
+
l as themeStr
|
|
96
118
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamlayer/react-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"typings": "./lib/index.d.ts",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
],
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"@lottiefiles/react-lottie-player": "^3.5.4",
|
|
54
|
-
"@streamlayer/sl-eslib": "^5.
|
|
54
|
+
"@streamlayer/sl-eslib": "^5.123.1",
|
|
55
55
|
"@types/lodash.throttle": "^4.1.9",
|
|
56
56
|
"lodash.throttle": "^4.1.1",
|
|
57
57
|
"nanoid": "3.3.7",
|
|
@@ -59,18 +59,18 @@
|
|
|
59
59
|
"react-virtualized-auto-sizer": "^1.0.24",
|
|
60
60
|
"react-window": "^1.8.10",
|
|
61
61
|
"react-window-infinite-loader": "^1.0.9",
|
|
62
|
-
"@streamlayer/feature-gamification": "^1.
|
|
63
|
-
"@streamlayer/sdk-web": "^1.
|
|
64
|
-
"@streamlayer/sdk-web-analytics": "^1.
|
|
65
|
-
"@streamlayer/sdk-web-anonymous-auth": "^1.0.
|
|
66
|
-
"@streamlayer/sdk-web-api": "^1.
|
|
67
|
-
"@streamlayer/sdk-web-core": "^1.
|
|
68
|
-
"@streamlayer/sdk-web-features": "^1.0.
|
|
69
|
-
"@streamlayer/sdk-web-interfaces": "^1.1.
|
|
70
|
-
"@streamlayer/sdk-web-logger": "^1.0.
|
|
71
|
-
"@streamlayer/sdk-web-notifications": "^1.1.
|
|
72
|
-
"@streamlayer/sdk-web-storage": "^1.0.
|
|
73
|
-
"@streamlayer/sdk-web-types": "^1.
|
|
62
|
+
"@streamlayer/feature-gamification": "^1.6.1",
|
|
63
|
+
"@streamlayer/sdk-web": "^1.3.1",
|
|
64
|
+
"@streamlayer/sdk-web-analytics": "^1.3.1",
|
|
65
|
+
"@streamlayer/sdk-web-anonymous-auth": "^1.0.18",
|
|
66
|
+
"@streamlayer/sdk-web-api": "^1.5.1",
|
|
67
|
+
"@streamlayer/sdk-web-core": "^1.4.1",
|
|
68
|
+
"@streamlayer/sdk-web-features": "^1.0.18",
|
|
69
|
+
"@streamlayer/sdk-web-interfaces": "^1.1.13",
|
|
70
|
+
"@streamlayer/sdk-web-logger": "^1.0.18",
|
|
71
|
+
"@streamlayer/sdk-web-notifications": "^1.1.13",
|
|
72
|
+
"@streamlayer/sdk-web-storage": "^1.0.18",
|
|
73
|
+
"@streamlayer/sdk-web-types": "^1.6.1"
|
|
74
74
|
},
|
|
75
75
|
"nx": {
|
|
76
76
|
"implicitDependencies": [
|
|
@@ -111,6 +111,6 @@
|
|
|
111
111
|
"vite-plugin-svgr": "^4.2.0",
|
|
112
112
|
"vite-svg-loader": "^5.1.0",
|
|
113
113
|
"vite-tsconfig-paths": "^5.0.1",
|
|
114
|
-
"@streamlayer/react": "^1.
|
|
114
|
+
"@streamlayer/react": "^1.5.1"
|
|
115
115
|
}
|
|
116
116
|
}
|