@streamlayer/react-ui 1.21.0 → 1.22.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/lib/app/masters/BetPack/BetPackContent/EmergencyScreen/index.js +7 -7
- package/lib/app/masters/BetPack/BetPackContent/EndScreen/index.d.ts +0 -1
- package/lib/app/masters/BetPack/BetPackContent/EndScreen/index.js +18 -22
- package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/index.d.ts +0 -1
- package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/index.js +7 -7
- package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/useDynamicParentFont.d.ts +1 -2
- package/lib/app/masters/BetPack/BetPackContent/ScreenContainer/useDynamicParentFont.js +16 -19
- package/lib/app/masters/BetPack/BetPackContent/StartScreen/index.d.ts +0 -1
- package/lib/app/masters/BetPack/BetPackContent/StartScreen/index.js +25 -24
- package/lib/app/masters/BetPack/BetPackContent/StartScreen/styles.d.ts +1 -0
- package/lib/app/masters/BetPack/BetPackContent/StartScreen/styles.js +14 -9
- package/lib/app/masters/BetPack/BetPackContent/index.js +64 -66
- package/lib/app/masters/BetPack/index.js +27 -27
- package/lib/app/masters/BetPack/utils.d.ts +1 -1
- package/lib/app/masters/BetPack/utils.js +8 -7
- package/lib/app/masters/Features/Gamification/index.d.ts +2 -0
- package/lib/app/masters/Features/Gamification/index.js +34 -29
- package/lib/app/masters/Features/index.d.ts +2 -0
- package/lib/app/masters/Features/index.js +12 -4
- package/lib/app/masters/Header/index.js +19 -23
- package/lib/app/masters/masters.js +68 -54
- package/lib/app/masters/useSdkResponsive.js +2 -2
- package/lib/app/masters/useSdkScroll.js +12 -12
- package/lib/app/useSdkResponsive.js +1 -1
- package/lib/app/useSdkScroll.js +1 -1
- package/lib/assets/style.css +1 -1
- package/lib/index-DSi8Qgfs.js +14 -0
- package/lib/index-DXvAPWiE.js +3743 -0
- package/lib/index-tnt2CtQe.js +55 -0
- package/lib/ui/advertisement/overlay/externalAd/index.d.ts +1 -1
- package/lib/ui/advertisement/overlay/externalAd/index.js +59 -40287
- package/lib/ui/advertisement/overlay/externalAd/styles.d.ts +2 -0
- package/lib/ui/advertisement/overlay/externalAd/styles.js +34 -24
- package/lib/ui/advertisement/overlay/externalAd/vast-player/module.d.js +1 -0
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMPlayer.d.ts +19 -0
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useGAMPlayer.js +33199 -0
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useVastAds.d.ts +24 -0
- package/lib/ui/advertisement/overlay/externalAd/vast-player/useVastAds.js +8 -0
- package/lib/ui/gamification/vote/feedback/index.d.ts +1 -0
- package/lib/ui/gamification/vote/feedback/index.js +83 -73
- package/lib/ui/gamification/vote/feedback/styles.d.ts +1 -0
- package/lib/ui/gamification/vote/feedback/styles.js +40 -39
- package/lib/ui/gamification/vote/index.js +94 -91
- package/lib/ui/icons/index.d.ts +1 -0
- package/lib/ui/icons/index.js +88 -79
- package/lib/ui/modal/index.js +31 -34
- package/lib/ui/theme/breakpoints.d.ts +1 -0
- package/lib/ui/theme/breakpoints.js +17 -9
- package/lib/ui/theme/masters-theme.js +1 -0
- package/lib/useVastAds-Dt_tRbpd.js +1284 -0
- package/package.json +18 -15
- package/lib/index-CLJzLXks.js +0 -64
package/lib/ui/modal/index.js
CHANGED
|
@@ -1,63 +1,60 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { styled as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { r as
|
|
5
|
-
import { BREAKPOINTS as
|
|
6
|
-
const
|
|
1
|
+
import { jsxs as p, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { styled as w } from "@linaria/react";
|
|
3
|
+
import { useState as c, useEffect as d } from "react";
|
|
4
|
+
import { r as a } from "../../index-DALxy-8N.js";
|
|
5
|
+
import { BREAKPOINTS as u } from "../theme/constants.js";
|
|
6
|
+
const h = /* @__PURE__ */ w("div")({
|
|
7
7
|
name: "StaticContainer",
|
|
8
8
|
class: "svm502q",
|
|
9
9
|
propsAsIs: !1
|
|
10
|
-
}),
|
|
10
|
+
}), y = `
|
|
11
11
|
.sl-hide-on-modal {
|
|
12
12
|
height: 0 !important;
|
|
13
13
|
opacity: 0 !important;
|
|
14
14
|
overflow: hidden !important;
|
|
15
15
|
}
|
|
16
|
-
`,
|
|
16
|
+
`, O = `
|
|
17
17
|
.sl-pill-button {
|
|
18
18
|
display: none !important;
|
|
19
19
|
}
|
|
20
|
-
`,
|
|
20
|
+
`, f = () => window.innerWidth >= u.md && window.innerWidth < u.lg ? 76 : 53, m = (e) => {
|
|
21
21
|
var n;
|
|
22
|
-
const t =
|
|
22
|
+
const t = f();
|
|
23
23
|
return Math.round((((n = e.current) == null ? void 0 : n.getBoundingClientRect().y) || 0) - t) <= 0;
|
|
24
|
-
},
|
|
24
|
+
}, g = ({
|
|
25
25
|
children: e,
|
|
26
26
|
container: t,
|
|
27
27
|
useContainer: n
|
|
28
28
|
}) => {
|
|
29
|
-
const [
|
|
30
|
-
return
|
|
31
|
-
if (!t.current || !
|
|
32
|
-
return
|
|
29
|
+
const [l] = c(() => m(t)), [o, s] = c(!1);
|
|
30
|
+
return d(() => {
|
|
31
|
+
if (!t.current || !l)
|
|
32
|
+
return s(!0), () => {
|
|
33
33
|
};
|
|
34
|
-
const
|
|
35
|
-
return
|
|
36
|
-
|
|
37
|
-
top:
|
|
34
|
+
const r = window.scrollY;
|
|
35
|
+
return s(!0), () => {
|
|
36
|
+
m(t) && window.scrollTo({
|
|
37
|
+
top: r,
|
|
38
38
|
behavior: "instant"
|
|
39
39
|
});
|
|
40
40
|
};
|
|
41
|
-
}, []),
|
|
42
|
-
if (
|
|
43
|
-
const
|
|
41
|
+
}, []), d(() => {
|
|
42
|
+
if (o && t.current && l) {
|
|
43
|
+
const r = f();
|
|
44
44
|
window.scrollTo({
|
|
45
|
-
top: t.current.offsetTop -
|
|
45
|
+
top: t.current.offsetTop - r,
|
|
46
46
|
behavior: "instant"
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
-
}, [
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
}, [o]), !t.current || !o ? null : n ? a.createPortal(/* @__PURE__ */ p(h, {
|
|
50
|
+
className: "StaticContainer",
|
|
51
|
+
children: [e, /* @__PURE__ */ i("style", {
|
|
52
|
+
children: y
|
|
53
|
+
}), /* @__PURE__ */ i("style", {
|
|
54
|
+
children: O
|
|
54
55
|
})]
|
|
55
|
-
}), t.current, "modal-node") :
|
|
56
|
-
children: [/* @__PURE__ */ l("style", {
|
|
57
|
-
children: f
|
|
58
|
-
}), e]
|
|
59
|
-
}), t.current, "modal-node");
|
|
56
|
+
}), t.current, "modal-node") : a.createPortal(e, t.current, "modal-node");
|
|
60
57
|
};
|
|
61
58
|
export {
|
|
62
|
-
|
|
59
|
+
g as ModalPortal
|
|
63
60
|
};
|
|
@@ -5,5 +5,6 @@ export declare const breakpoints: {
|
|
|
5
5
|
up: (key: Breakpoints) => (styles: TemplateStringsArray) => string;
|
|
6
6
|
down: (key: Breakpoints) => (styles: TemplateStringsArray) => string;
|
|
7
7
|
intermediate: (down: Breakpoints, up: Breakpoints) => (styles: TemplateStringsArray) => string;
|
|
8
|
+
composite: (down: Breakpoints, key: Orientation) => (styles: TemplateStringsArray) => string;
|
|
8
9
|
orientation: (key: Orientation) => (styles: TemplateStringsArray) => string;
|
|
9
10
|
};
|
|
@@ -1,24 +1,32 @@
|
|
|
1
|
-
import { BREAKPOINTS as
|
|
1
|
+
import { BREAKPOINTS as i, ORIENTATION as a } from "./constants.js";
|
|
2
2
|
const r = (n) => (t) => `
|
|
3
3
|
@media only screen and (${n}) {
|
|
4
4
|
${t}
|
|
5
5
|
}
|
|
6
|
-
`, d = (n, t) => (
|
|
6
|
+
`, d = (n, t) => (e) => `
|
|
7
7
|
@media only screen and (${n}) and (${t}) {
|
|
8
|
-
${
|
|
8
|
+
${e}
|
|
9
9
|
}
|
|
10
|
-
`,
|
|
10
|
+
`, m = (n, t) => (e) => `
|
|
11
|
+
@media only screen and (${n}) and (${t}) {
|
|
12
|
+
${e}
|
|
13
|
+
}
|
|
14
|
+
`, c = {
|
|
11
15
|
up: (n) => {
|
|
12
|
-
const t =
|
|
16
|
+
const t = i[n];
|
|
13
17
|
return r(`min-width: ${t}px`);
|
|
14
18
|
},
|
|
15
19
|
down: (n) => {
|
|
16
|
-
const t =
|
|
20
|
+
const t = i[n] - 1;
|
|
17
21
|
return r(`max-width: ${t}px`);
|
|
18
22
|
},
|
|
19
23
|
intermediate: (n, t) => {
|
|
20
|
-
const
|
|
21
|
-
return d(`max-width: ${
|
|
24
|
+
const e = i[n] - 1, o = i[t];
|
|
25
|
+
return d(`max-width: ${e}px`, `min-width: ${o}px`);
|
|
26
|
+
},
|
|
27
|
+
composite: (n, t) => {
|
|
28
|
+
const e = i[n] - 1, o = a[t];
|
|
29
|
+
return m(`max-width: ${e}px`, `orientation: ${o}`);
|
|
22
30
|
},
|
|
23
31
|
orientation: (n) => {
|
|
24
32
|
const t = a[n];
|
|
@@ -26,5 +34,5 @@ const r = (n) => (t) => `
|
|
|
26
34
|
}
|
|
27
35
|
};
|
|
28
36
|
export {
|
|
29
|
-
|
|
37
|
+
c as breakpoints
|
|
30
38
|
};
|