@streamlayer/react-ui 0.54.1 → 0.56.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/index.d.ts +5 -12
- package/lib/index.js +6 -111
- package/lib/ui/app/Features/Gamification/Question.js +9 -9
- package/lib/ui/app/Features/Gamification/QuestionsList.js +8 -6
- package/lib/ui/app/Features/Gamification/Tabs.js +7 -5
- package/lib/ui/app/Features/Gamification/index.d.ts +0 -2
- package/lib/ui/app/Features/Gamification/index.js +6 -5
- package/lib/ui/app/Notifications/index.js +21 -15
- package/lib/ui/app/Notifications/styles.d.ts +1 -0
- package/lib/ui/app/Notifications/styles.js +17 -0
- package/lib/ui/app/masters.js +43 -31
- package/lib/ui/gamification/question/insight/index.d.ts +5 -0
- package/lib/ui/gamification/question/insight/index.js +35 -0
- package/lib/ui/gamification/question/insight/styles.d.ts +7 -0
- package/lib/ui/gamification/question/insight/styles.js +66 -0
- package/lib/ui/gamification/question/list/index.js +13 -11
- package/lib/ui/gamification/question/notification/index.d.ts +3 -0
- package/lib/ui/gamification/question/notification/index.js +30 -0
- package/lib/ui/gamification/question/notification/insight/index.d.ts +6 -0
- package/lib/ui/gamification/question/notification/insight/index.js +23 -0
- package/lib/ui/gamification/question/notification/insight/styles.d.ts +6 -0
- package/lib/ui/gamification/question/notification/insight/styles.js +60 -0
- package/lib/ui/gamification/question/notification/prediction-result/index.d.ts +3 -0
- package/lib/ui/gamification/question/notification/prediction-result/index.js +7 -0
- package/lib/ui/gamification/question/notification/prediction-result/styles.d.ts +2 -0
- package/lib/ui/gamification/question/notification/prediction-result/styles.js +12 -0
- package/lib/ui/gamification/question/notification/styles.d.ts +9 -0
- package/lib/ui/gamification/question/notification/styles.js +87 -0
- package/lib/ui/gamification/vote/insight-details/index.d.ts +4 -2
- package/lib/ui/gamification/vote/insight-details/index.js +31 -15
- package/lib/ui/gamification/vote/insight-details/styles.d.ts +1 -0
- package/lib/ui/gamification/vote/insight-details/styles.js +8 -2
- package/lib/ui/show-in/index.d.ts +1 -0
- package/lib/ui/show-in/index.js +35 -6
- package/package.json +17 -12
- package/lib/ui/demo/DemoPoints.d.ts +0 -5
- package/lib/ui/demo/DemoPoints.js +0 -28
- package/lib/ui/demo/Gamification.d.ts +0 -7
- package/lib/ui/demo/Gamification.js +0 -114
- package/lib/ui/demo/Highlights.d.ts +0 -7
- package/lib/ui/demo/Highlights.js +0 -66
- package/lib/ui/demo/Login.d.ts +0 -5
- package/lib/ui/demo/Login.js +0 -26
- package/lib/ui/demo/components/EventProvider.d.ts +0 -2
- package/lib/ui/demo/components/EventProvider.js +0 -5
- package/lib/ui/demo/components/Insight.d.ts +0 -8
- package/lib/ui/demo/components/Insight.js +0 -32
- package/lib/ui/demo/components/Insights.d.ts +0 -7
- package/lib/ui/demo/components/Insights.js +0 -15
- package/lib/ui/demo/components/Leaderboard.d.ts +0 -5
- package/lib/ui/demo/components/Leaderboard.js +0 -35
- package/lib/ui/demo/components/Question.d.ts +0 -7
- package/lib/ui/demo/components/Question.js +0 -89
- package/lib/ui/demo/components/QuestionsList.d.ts +0 -6
- package/lib/ui/demo/components/QuestionsList.js +0 -22
- package/lib/ui/demo/components/UserSummary.d.ts +0 -5
- package/lib/ui/demo/components/UserSummary.js +0 -17
- package/lib/ui/demo/components/index.d.ts +0 -7
- package/lib/ui/demo/components/index.js +0 -70
- package/lib/ui/demo/index.d.ts +0 -5
- package/lib/ui/demo/index.js +0 -180
- package/lib/ui/demo/styles.d.ts +0 -6
- package/lib/ui/demo/styles.js +0 -58
- package/lib/ui/notifications/decorator.d.ts +0 -4
- package/lib/ui/notifications/decorator.js +0 -64
- package/lib/ui/notifications/index.d.ts +0 -5
- package/lib/ui/notifications/index.js +0 -28
- package/lib/ui/notifications/notification/index.d.ts +0 -6
- package/lib/ui/notifications/notification/index.js +0 -36
- package/lib/ui/notifications/notification/onboarding-inapp/index.d.ts +0 -3
- package/lib/ui/notifications/notification/onboarding-inapp/index.js +0 -25
- package/lib/ui/notifications/notification/onboarding-inapp/styles.d.ts +0 -12
- package/lib/ui/notifications/notification/onboarding-inapp/styles.js +0 -77
- package/lib/ui/notifications/notification/question-inapp/index.d.ts +0 -3
- package/lib/ui/notifications/notification/question-inapp/index.js +0 -23
- package/lib/ui/notifications/notification/question-inapp/styles.d.ts +0 -10
- package/lib/ui/notifications/notification/question-inapp/styles.js +0 -61
- package/lib/ui/notifications/notification/styles.d.ts +0 -2
- package/lib/ui/notifications/notification/styles.js +0 -32
- package/lib/ui/notifications/styles.d.ts +0 -2
- package/lib/ui/notifications/styles.js +0 -15
package/lib/ui/demo/styles.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const DemoContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
|
-
export declare const UserStatisticsContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
|
-
export declare const QuestionsContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
5
|
-
export declare const Buttons: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
6
|
-
export declare const Button: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
|
package/lib/ui/demo/styles.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { styled as o } from "@linaria/react";
|
|
2
|
-
const e = o.div`
|
|
3
|
-
position: relative;
|
|
4
|
-
height: 100%;
|
|
5
|
-
overflow: hidden;
|
|
6
|
-
`, i = o.div`
|
|
7
|
-
margin-bottom: 15px;
|
|
8
|
-
`, r = o.div`
|
|
9
|
-
position: relative;
|
|
10
|
-
height: calc(100% - 160px);
|
|
11
|
-
`, n = o.div`
|
|
12
|
-
display: flex;
|
|
13
|
-
margin-bottom: 10px;
|
|
14
|
-
`, a = o.button`
|
|
15
|
-
background: rgb(29, 123, 255);
|
|
16
|
-
border: none;
|
|
17
|
-
color: #fff;
|
|
18
|
-
padding: 5px 6px;
|
|
19
|
-
border-radius: 3px;
|
|
20
|
-
cursor: pointer;
|
|
21
|
-
margin-right: 5px;
|
|
22
|
-
transition: all 0.3s ease-in;
|
|
23
|
-
|
|
24
|
-
& > img {
|
|
25
|
-
max-width: 10px;
|
|
26
|
-
max-height: 10px;
|
|
27
|
-
margin-right: 5px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&:enabled:hover {
|
|
31
|
-
box-shadow: inset 0 0 0 2em rgb(2, 88, 208);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&[data-selected='true'] {
|
|
35
|
-
box-shadow: inset 0 0 0 2em rgb(0, 60, 145);
|
|
36
|
-
|
|
37
|
-
&:enabled:hover {
|
|
38
|
-
box-shadow: inset 0 0 0 2em rgb(0, 60, 145);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&:disabled {
|
|
43
|
-
opacity: 0.5;
|
|
44
|
-
background-color: gray;
|
|
45
|
-
cursor: default;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&[data-enable_sdk_button='false'] {
|
|
49
|
-
opacity: 0.7;
|
|
50
|
-
}
|
|
51
|
-
`;
|
|
52
|
-
export {
|
|
53
|
-
a as Button,
|
|
54
|
-
n as Buttons,
|
|
55
|
-
e as DemoContainer,
|
|
56
|
-
r as QuestionsContainer,
|
|
57
|
-
i as UserStatisticsContainer
|
|
58
|
-
};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { jsxs as p, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { styled as m } from "@linaria/react";
|
|
3
|
-
import { useMemo as b, useRef as a } from "react";
|
|
4
|
-
import { NotificationType as o, Notifications as f } from "@streamlayer/sdk-web-notifications";
|
|
5
|
-
import { Notifications as l } from "./index.js";
|
|
6
|
-
import "@nanostores/react";
|
|
7
|
-
import "./notification/index.js";
|
|
8
|
-
import "./notification/onboarding-inapp/index.js";
|
|
9
|
-
import "./notification/onboarding-inapp/styles.js";
|
|
10
|
-
import "./notification/question-inapp/index.js";
|
|
11
|
-
import "../../icon-exit-d3f9fc80.js";
|
|
12
|
-
import "./notification/question-inapp/styles.js";
|
|
13
|
-
import "./notification/styles.js";
|
|
14
|
-
import "./styles.js";
|
|
15
|
-
const c = m.button`
|
|
16
|
-
border: none;
|
|
17
|
-
outline: none;
|
|
18
|
-
background-color: var(--color-green-primary-btn);
|
|
19
|
-
color: var(--color-white);
|
|
20
|
-
cursor: pointer;
|
|
21
|
-
padding: 5px;
|
|
22
|
-
min-width: 50px;
|
|
23
|
-
display: flex;
|
|
24
|
-
justify-content: center;
|
|
25
|
-
align-items: center;
|
|
26
|
-
border-radius: 8px;
|
|
27
|
-
margin-top: 10px;
|
|
28
|
-
`, u = {
|
|
29
|
-
[o.QUESTION]: {
|
|
30
|
-
icon: "https://static-next.streamlayer.io/1a0525a58e123d342ed43ebdf5bacc9c/f2147312-357a-4cb6-a6fa-879472609344/e675f428-d234-40fd-95db-e09bc2143852.png"
|
|
31
|
-
},
|
|
32
|
-
[o.ONBOARDING]: {
|
|
33
|
-
header: "Header",
|
|
34
|
-
subtitle: "Free to Play Interactive game",
|
|
35
|
-
graphicBg: "https://storage.googleapis.com/cdn.streamlayer.io/organization/studioicons/oval.png",
|
|
36
|
-
icon: "https://static-next.streamlayer.io/1a0525a58e123d342ed43ebdf5bacc9c/6bde38a5-d5da-4f8d-b491-601370372695/6996bc2d-a8b0-4b93-82d6-015bc981e666.png",
|
|
37
|
-
sponsorLogo: "https://static-next.streamlayer.io/1a0525a58e123d342ed43ebdf5bacc9c/95da4770-fb56-4bb7-bba6-94f97e6f1fea/8c6a2184-453e-47d2-aa77-5478da0ebb51.png",
|
|
38
|
-
primaryColor: "#9c0061"
|
|
39
|
-
}
|
|
40
|
-
}, R = (g, { args: t }) => {
|
|
41
|
-
console.log("NotificationsList", t);
|
|
42
|
-
const e = b(
|
|
43
|
-
() => new f({ concurrency: t.concurrency || 1, animationDelay: 300 }),
|
|
44
|
-
[t.concurrency]
|
|
45
|
-
), d = a(0), s = a(0), r = (i) => {
|
|
46
|
-
e.add({
|
|
47
|
-
type: i,
|
|
48
|
-
autoHideDuration: 5e3,
|
|
49
|
-
id: Date.now().toString(),
|
|
50
|
-
data: {
|
|
51
|
-
...u[i],
|
|
52
|
-
title: i === o.ONBOARDING ? `Onboarding ${++s.current}` : `Question ${++d.current}`
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
};
|
|
56
|
-
return /* @__PURE__ */ p("div", { children: [
|
|
57
|
-
/* @__PURE__ */ n(l, { notificationsStore: e.getQueueStore() }),
|
|
58
|
-
/* @__PURE__ */ n(c, { onClick: () => r(o.QUESTION), children: "Add question" }),
|
|
59
|
-
/* @__PURE__ */ n(c, { onClick: () => r(o.ONBOARDING), children: "Add onboarding" })
|
|
60
|
-
] });
|
|
61
|
-
};
|
|
62
|
-
export {
|
|
63
|
-
R as NotificationsList
|
|
64
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { useStore as p } from "@nanostores/react";
|
|
3
|
-
import { NotificationComponent as n } from "./notification/index.js";
|
|
4
|
-
import { NotificationsContainer as e } from "./styles.js";
|
|
5
|
-
import "react";
|
|
6
|
-
import "@streamlayer/sdk-web-notifications";
|
|
7
|
-
import "./notification/onboarding-inapp/index.js";
|
|
8
|
-
import "./notification/onboarding-inapp/styles.js";
|
|
9
|
-
import "@linaria/react";
|
|
10
|
-
import "./notification/question-inapp/index.js";
|
|
11
|
-
import "../../icon-exit-d3f9fc80.js";
|
|
12
|
-
import "./notification/question-inapp/styles.js";
|
|
13
|
-
import "./notification/styles.js";
|
|
14
|
-
const S = ({ notificationsStore: i }) => {
|
|
15
|
-
const o = p(i);
|
|
16
|
-
return /* @__PURE__ */ r(e, { children: o == null ? void 0 : o.map((t, m) => /* @__PURE__ */ r(
|
|
17
|
-
n,
|
|
18
|
-
{
|
|
19
|
-
index: m,
|
|
20
|
-
total: o.length,
|
|
21
|
-
...t
|
|
22
|
-
},
|
|
23
|
-
t.id
|
|
24
|
-
)) });
|
|
25
|
-
};
|
|
26
|
-
export {
|
|
27
|
-
S as Notifications
|
|
28
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as f, useEffect as s } from "react";
|
|
3
|
-
import { NotificationType as i } from "@streamlayer/sdk-web-notifications";
|
|
4
|
-
import { OnBoardingInApp as N } from "./onboarding-inapp/index.js";
|
|
5
|
-
import { QuestionInApp as e } from "./question-inapp/index.js";
|
|
6
|
-
import { NotificationContainer as a } from "./styles.js";
|
|
7
|
-
import "./onboarding-inapp/styles.js";
|
|
8
|
-
import "@linaria/react";
|
|
9
|
-
import "../../../icon-exit-d3f9fc80.js";
|
|
10
|
-
import "./question-inapp/styles.js";
|
|
11
|
-
const l = {
|
|
12
|
-
[i.ONBOARDING]: N,
|
|
13
|
-
[i.QUESTION]: e
|
|
14
|
-
}, y = ({
|
|
15
|
-
index: t,
|
|
16
|
-
total: m,
|
|
17
|
-
...r
|
|
18
|
-
}) => {
|
|
19
|
-
const o = f(null), p = l[r.type] || e;
|
|
20
|
-
return s(() => {
|
|
21
|
-
o.current !== null && r.hiding && o.current.animate([{ right: "0" }, { right: "-100%" }], {
|
|
22
|
-
duration: 300,
|
|
23
|
-
fill: "forwards"
|
|
24
|
-
});
|
|
25
|
-
}, [r.hiding]), /* @__PURE__ */ n(
|
|
26
|
-
a,
|
|
27
|
-
{
|
|
28
|
-
ref: o,
|
|
29
|
-
style: { zIndex: t + 1, transform: `translateY(${100 * (m - t - 1)}%)` },
|
|
30
|
-
children: /* @__PURE__ */ n(p, { ...r })
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
};
|
|
34
|
-
export {
|
|
35
|
-
y as NotificationComponent
|
|
36
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { jsxs as n, jsx as i, Fragment as t } from "react/jsx-runtime";
|
|
2
|
-
import { Container as g, CloseBtn as s, IconClose as C, BackgroundBlock as M, Icon as p, ContentWrap as m, SponsorLogo as Z, SponsorText as b, ContentTitle as D, ContentSubtitle as S, ActionBtn as h } from "./styles.js";
|
|
3
|
-
import "@linaria/react";
|
|
4
|
-
const W = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxMCAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Ikdyb3VwIDQ2NSI+CjxyZWN0IGlkPSJSZWN0YW5nbGUgMzY4IiB4PSIxLjI1IiB3aWR0aD0iMTIuMzc0NCIgaGVpZ2h0PSIxLjc2Nzc3IiByeD0iMC44ODM4ODQiIHRyYW5zZm9ybT0icm90YXRlKDQ1IDEuMjUgMCkiIGZpbGw9IndoaXRlIi8+CjxyZWN0IGlkPSJSZWN0YW5nbGUgMzY5IiB5PSI4Ljc1IiB3aWR0aD0iMTIuMzc0NCIgaGVpZ2h0PSIxLjc2Nzc3IiByeD0iMC44ODM4ODQiIHRyYW5zZm9ybT0icm90YXRlKC00NSAwIDguNzUpIiBmaWxsPSJ3aGl0ZSIvPgo8L2c+Cjwvc3ZnPgo=", P = ({
|
|
5
|
-
close: I,
|
|
6
|
-
action: l,
|
|
7
|
-
data: { icon: c, header: a, title: e, subtitle: r, graphicBg: d, sponsorLogo: o }
|
|
8
|
-
}) => /* @__PURE__ */ n(g, { children: [
|
|
9
|
-
/* @__PURE__ */ i(s, { onClick: I, children: /* @__PURE__ */ i(C, { alt: "icon-close-onboarding-inapp", src: W }) }),
|
|
10
|
-
/* @__PURE__ */ i(M, { style: { backgroundImage: `url(${d || ""})` }, children: c && /* @__PURE__ */ i(p, { alt: "onboarding-inapp-icon", src: c }) }),
|
|
11
|
-
/* @__PURE__ */ n(m, { children: [
|
|
12
|
-
/* @__PURE__ */ n("div", { children: [
|
|
13
|
-
/* @__PURE__ */ i("div", { children: o ? /* @__PURE__ */ n(t, { children: [
|
|
14
|
-
/* @__PURE__ */ i(Z, { alt: "sponsor-logo", src: o }),
|
|
15
|
-
/* @__PURE__ */ i(b, { children: "Presents" })
|
|
16
|
-
] }) : a || "" }),
|
|
17
|
-
/* @__PURE__ */ i(D, { children: e || "" }),
|
|
18
|
-
/* @__PURE__ */ i(S, { children: r || "" })
|
|
19
|
-
] }),
|
|
20
|
-
/* @__PURE__ */ i(h, { onClick: l, children: "Play" })
|
|
21
|
-
] })
|
|
22
|
-
] });
|
|
23
|
-
export {
|
|
24
|
-
P as OnBoardingInApp
|
|
25
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const Container: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
|
-
export declare const BackgroundBlock: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
|
-
export declare const Icon: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
|
|
5
|
-
export declare const ContentWrap: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
6
|
-
export declare const SponsorLogo: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
|
|
7
|
-
export declare const SponsorText: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
|
8
|
-
export declare const ContentTitle: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
9
|
-
export declare const ContentSubtitle: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
10
|
-
export declare const ActionBtn: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
|
|
11
|
-
export declare const CloseBtn: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
|
|
12
|
-
export declare const IconClose: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { styled as o } from "@linaria/react";
|
|
2
|
-
const n = o.div`
|
|
3
|
-
background-color: var(--color-transparent-onboarding-inapp);
|
|
4
|
-
max-height: 120px;
|
|
5
|
-
`, r = o.div`
|
|
6
|
-
background-repeat: no-repeat;
|
|
7
|
-
background-size: contain;
|
|
8
|
-
border-top-left-radius: 8px;
|
|
9
|
-
border-bottom-left-radius: 8px;
|
|
10
|
-
width: 72px;
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
`, e = o.img`
|
|
14
|
-
width: 56px;
|
|
15
|
-
margin-left: 8px;
|
|
16
|
-
`, i = o.div`
|
|
17
|
-
padding: 16px 8px 16px 0px;
|
|
18
|
-
margin-right: 8px;
|
|
19
|
-
font-size: 12px;
|
|
20
|
-
font-weight: 600;
|
|
21
|
-
display: flex;
|
|
22
|
-
flex: 1;
|
|
23
|
-
justify-content: space-between;
|
|
24
|
-
align-items: center;
|
|
25
|
-
`, p = o.img`
|
|
26
|
-
width: 16px;
|
|
27
|
-
height: 16px;
|
|
28
|
-
margin-right: 4px;
|
|
29
|
-
`, a = o.span`
|
|
30
|
-
font-style: italic;
|
|
31
|
-
font-weight: 600;
|
|
32
|
-
font-size: 8px;
|
|
33
|
-
text-transform: uppercase;
|
|
34
|
-
`, s = o.div`
|
|
35
|
-
margin-top: 8px;
|
|
36
|
-
margin-bottom: 2px;
|
|
37
|
-
font-size: 14px;
|
|
38
|
-
`, c = o.div`
|
|
39
|
-
color: var(--color-grey-primary-onboarding-inapp);
|
|
40
|
-
`, d = o.button`
|
|
41
|
-
border: none;
|
|
42
|
-
outline: none;
|
|
43
|
-
background-color: var(--color-green-primary-btn);
|
|
44
|
-
padding: 8px 16px;
|
|
45
|
-
color: #fff;
|
|
46
|
-
font-size: 12px;
|
|
47
|
-
font-weight: 600;
|
|
48
|
-
cursor: pointer;
|
|
49
|
-
border-radius: 24px;
|
|
50
|
-
`, x = o.button`
|
|
51
|
-
position: absolute;
|
|
52
|
-
right: 8px;
|
|
53
|
-
top: 4px;
|
|
54
|
-
border: none;
|
|
55
|
-
outline: none;
|
|
56
|
-
background-color: transparent;
|
|
57
|
-
padding: 5px;
|
|
58
|
-
color: #fff;
|
|
59
|
-
cursor: pointer;
|
|
60
|
-
border-radius: 50%;
|
|
61
|
-
`, g = o.img`
|
|
62
|
-
width: 10px;
|
|
63
|
-
height: 10px;
|
|
64
|
-
`;
|
|
65
|
-
export {
|
|
66
|
-
d as ActionBtn,
|
|
67
|
-
r as BackgroundBlock,
|
|
68
|
-
x as CloseBtn,
|
|
69
|
-
n as Container,
|
|
70
|
-
c as ContentSubtitle,
|
|
71
|
-
s as ContentTitle,
|
|
72
|
-
i as ContentWrap,
|
|
73
|
-
e as Icon,
|
|
74
|
-
g as IconClose,
|
|
75
|
-
p as SponsorLogo,
|
|
76
|
-
a as SponsorText
|
|
77
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { jsxs as t, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { useCallback as a } from "react";
|
|
3
|
-
import { c as s } from "../../../../icon-exit-d3f9fc80.js";
|
|
4
|
-
import { Container as d, IconWrap as m, Icon as C, Content as h, TitleWrap as I, Title as f, CloseBtnWrap as k, CloseBtn as u, CloseIcon as x } from "./styles.js";
|
|
5
|
-
import "@linaria/react";
|
|
6
|
-
const B = ({ close: o, action: p, data: { color: r, icon: i, title: c } }) => {
|
|
7
|
-
const e = a(
|
|
8
|
-
(l) => {
|
|
9
|
-
l.stopPropagation(), o == null || o();
|
|
10
|
-
},
|
|
11
|
-
[o]
|
|
12
|
-
);
|
|
13
|
-
return /* @__PURE__ */ t(d, { onClick: p, children: [
|
|
14
|
-
/* @__PURE__ */ n(m, { style: r ? { backgroundColor: r } : {}, children: i && /* @__PURE__ */ n(C, { alt: "in-app-icon", src: i }) }),
|
|
15
|
-
/* @__PURE__ */ t(h, { children: [
|
|
16
|
-
/* @__PURE__ */ n(I, { children: /* @__PURE__ */ n(f, { id: "in-app-title", children: c || "" }) }),
|
|
17
|
-
/* @__PURE__ */ n(k, { children: /* @__PURE__ */ n(u, { onClick: e, children: /* @__PURE__ */ n(x, { alt: "close-in-app-icon", src: s }) }) })
|
|
18
|
-
] })
|
|
19
|
-
] });
|
|
20
|
-
};
|
|
21
|
-
export {
|
|
22
|
-
B as QuestionInApp
|
|
23
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const Container: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
|
-
export declare const IconWrap: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
|
-
export declare const Icon: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
|
|
5
|
-
export declare const Content: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
6
|
-
export declare const TitleWrap: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
7
|
-
export declare const Title: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
8
|
-
export declare const CloseBtnWrap: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
9
|
-
export declare const CloseBtn: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
|
|
10
|
-
export declare const CloseIcon: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { styled as e } from "@linaria/react";
|
|
2
|
-
const o = e.div`
|
|
3
|
-
border: 1px solid var(--color-blue-primary);
|
|
4
|
-
background-color: var(--color-bg-transparent);
|
|
5
|
-
cursor: pointer;
|
|
6
|
-
overflow: hidden;
|
|
7
|
-
`, n = e.div`
|
|
8
|
-
display: flex;
|
|
9
|
-
justify-content: center;
|
|
10
|
-
align-items: center;
|
|
11
|
-
padding: 14px;
|
|
12
|
-
background-color: var(--color-blue-primary);
|
|
13
|
-
`, i = e.img`
|
|
14
|
-
max-width: 40px;
|
|
15
|
-
max-height: 40px;
|
|
16
|
-
width: 100%;
|
|
17
|
-
height: 100%;
|
|
18
|
-
border-radius: 50%;
|
|
19
|
-
`, r = e.div`
|
|
20
|
-
display: flex;
|
|
21
|
-
justify-content: space-between;
|
|
22
|
-
width: 100%;
|
|
23
|
-
align-items: center;
|
|
24
|
-
`, d = e.div`
|
|
25
|
-
padding-left: 20px;
|
|
26
|
-
padding-right: 5px;
|
|
27
|
-
font-weight: 700;
|
|
28
|
-
font-size: 14px;
|
|
29
|
-
flex: 1;
|
|
30
|
-
`, l = e.div`
|
|
31
|
-
display: -webkit-box;
|
|
32
|
-
-webkit-box-orient: vertical;
|
|
33
|
-
-webkit-line-clamp: 2;
|
|
34
|
-
overflow: hidden;
|
|
35
|
-
word-break: break-word;
|
|
36
|
-
text-overflow: ellipsis;
|
|
37
|
-
`, a = e.div`
|
|
38
|
-
padding: 20px;
|
|
39
|
-
`, c = e.button`
|
|
40
|
-
border: none;
|
|
41
|
-
outline: none;
|
|
42
|
-
background-color: transparent;
|
|
43
|
-
cursor: pointer;
|
|
44
|
-
display: flex;
|
|
45
|
-
justify-content: center;
|
|
46
|
-
align-items: center;
|
|
47
|
-
`, s = e.img`
|
|
48
|
-
width: 24px;
|
|
49
|
-
height: 24px;
|
|
50
|
-
`;
|
|
51
|
-
export {
|
|
52
|
-
c as CloseBtn,
|
|
53
|
-
a as CloseBtnWrap,
|
|
54
|
-
s as CloseIcon,
|
|
55
|
-
o as Container,
|
|
56
|
-
r as Content,
|
|
57
|
-
i as Icon,
|
|
58
|
-
n as IconWrap,
|
|
59
|
-
l as Title,
|
|
60
|
-
d as TitleWrap
|
|
61
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { styled as i } from "@linaria/react";
|
|
2
|
-
const r = i.div`
|
|
3
|
-
position: absolute;
|
|
4
|
-
right: 0;
|
|
5
|
-
transition: transform 0.3s ease;
|
|
6
|
-
width: 100%;
|
|
7
|
-
|
|
8
|
-
> div {
|
|
9
|
-
border-radius: 8px;
|
|
10
|
-
width: 100%;
|
|
11
|
-
backdrop-filter: blur(10px);
|
|
12
|
-
display: flex;
|
|
13
|
-
color: var(--color-white);
|
|
14
|
-
animation: slide-in 0.3s ease-in;
|
|
15
|
-
position: relative;
|
|
16
|
-
box-sizing: border-box;
|
|
17
|
-
user-select: none;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@keyframes slide-in {
|
|
21
|
-
from {
|
|
22
|
-
right: -100%;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
to {
|
|
26
|
-
right: 0;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
`;
|
|
30
|
-
export {
|
|
31
|
-
r as NotificationContainer
|
|
32
|
-
};
|