@streamlayer/react-ui 0.55.0 → 0.57.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 -115
- package/lib/ui/app/Features/Gamification/index.d.ts +0 -2
- package/lib/ui/app/Features/Gamification/index.js +4 -3
- 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/styles.js +5 -0
- 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/show-in/index.d.ts +1 -0
- package/lib/ui/show-in/index.js +35 -6
- package/package.json +15 -10
- 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 -117
- package/lib/ui/demo/Highlights.d.ts +0 -7
- package/lib/ui/demo/Highlights.js +0 -68
- 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 -24
- 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 -74
- package/lib/ui/demo/index.d.ts +0 -5
- package/lib/ui/demo/index.js +0 -184
- 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
|
@@ -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
|
-
};
|