@streamlayer/react-ui 0.38.0 → 0.39.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.js +33 -32
- package/lib/ui/app/Features/Gamification/QuestionsList.js +9 -6
- package/lib/ui/app/Features/Gamification/Tabs.js +18 -15
- package/lib/ui/app/Features/Gamification/index.js +6 -3
- package/lib/ui/app/Features/Highlights/Insights.js +4 -5
- package/lib/ui/app/Features/Highlights/index.js +6 -7
- package/lib/ui/app/Features/index.js +6 -3
- package/lib/ui/app/masters.js +5 -4
- package/lib/ui/app/styles.d.ts +1 -0
- package/lib/ui/app/styles.js +9 -5
- package/lib/ui/button/index.d.ts +8 -0
- package/lib/ui/button/index.js +7 -0
- package/lib/ui/button/styles.d.ts +3 -0
- package/lib/ui/button/styles.js +44 -0
- package/lib/ui/demo/Gamification.js +18 -16
- package/lib/ui/demo/Highlights.js +5 -3
- package/lib/ui/demo/components/Insights.js +4 -5
- package/lib/ui/demo/components/QuestionsList.js +9 -6
- package/lib/ui/demo/components/index.js +18 -16
- package/lib/ui/demo/index.js +5 -3
- package/lib/ui/gamification/insight/index.js +17 -18
- package/lib/ui/gamification/insight-list/index.js +3 -4
- package/lib/ui/gamification/question/index.js +40 -31
- package/lib/ui/gamification/question/styles.d.ts +7 -5
- package/lib/ui/gamification/question/styles.js +58 -42
- package/lib/ui/gamification/question-list/index.js +10 -10
- package/lib/ui/gamification/question-list/styles.d.ts +1 -3
- package/lib/ui/gamification/question-list/styles.js +3 -19
- package/lib/ui/gamification/tabs/styles.js +6 -4
- package/lib/ui/icons/index.d.ts +3 -1
- package/lib/ui/icons/index.js +37 -35
- package/lib/ui/navigation/index.js +5 -4
- package/lib/ui/theme/masters.d.ts +1 -0
- package/lib/ui/theme/theme.js +17 -11
- package/package.json +3 -3
- package/lib/icon-chevron-138a557c.js +0 -4
package/lib/ui/demo/index.js
CHANGED
|
@@ -34,8 +34,10 @@ import "../gamification/user-statistics/styles.js";
|
|
|
34
34
|
import "./components/QuestionsList.js";
|
|
35
35
|
import "../gamification/question-list/index.js";
|
|
36
36
|
import "../gamification/question/index.js";
|
|
37
|
-
import "
|
|
37
|
+
import "../button/index.js";
|
|
38
|
+
import "../button/styles.js";
|
|
38
39
|
import "../gamification/question/styles.js";
|
|
40
|
+
import "../icons/index.js";
|
|
39
41
|
import "../gamification/question-list/styles.js";
|
|
40
42
|
import "./components/Question.js";
|
|
41
43
|
import "../gamification/vote/index.js";
|
|
@@ -129,7 +131,7 @@ const A = ({ activeFeature: r, sdk: o }) => {
|
|
|
129
131
|
] }),
|
|
130
132
|
d
|
|
131
133
|
] });
|
|
132
|
-
},
|
|
134
|
+
}, fi = ({ sdk: r }) => {
|
|
133
135
|
const o = c(r.organizationStore()), e = c(r.getUserStore()), n = c(r.getActiveFeature());
|
|
134
136
|
return o.loading ? /* @__PURE__ */ i("div", { children: "authentication..." }) : o.data ? e.loading ? /* @__PURE__ */ i("div", { children: "authentication..." }) : e.data ? /* @__PURE__ */ f(v, { children: [
|
|
135
137
|
/* @__PURE__ */ i(F, { notificationsStore: r.getNotificationsStore() }),
|
|
@@ -137,5 +139,5 @@ const A = ({ activeFeature: r, sdk: o }) => {
|
|
|
137
139
|
] }) : /* @__PURE__ */ i(H, { sdk: r }) : /* @__PURE__ */ i("div", { children: "wrong sdk key..." });
|
|
138
140
|
};
|
|
139
141
|
export {
|
|
140
|
-
|
|
142
|
+
fi as Demo
|
|
141
143
|
};
|
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { QuestionImages as
|
|
3
|
-
import {
|
|
4
|
-
import { Container as h, Graphic as I, Content as a, Title as u, NextIcon as m, InsightIconDefault as p, InsightIconAbsolute as f, InsightIconCircle as g } from "./styles.js";
|
|
1
|
+
import { jsxs as g, jsx as D } from "react/jsx-runtime";
|
|
2
|
+
import { QuestionImages as N } from "@streamlayer/sdk-web-types";
|
|
3
|
+
import { Container as n, Graphic as z, Content as T, Title as E, NextIcon as u, InsightIconDefault as A, InsightIconAbsolute as x, InsightIconCircle as t } from "./styles.js";
|
|
5
4
|
import "@linaria/react";
|
|
6
|
-
const
|
|
7
|
-
switch (
|
|
8
|
-
case
|
|
9
|
-
return /* @__PURE__ */ t
|
|
10
|
-
case
|
|
11
|
-
return /* @__PURE__ */
|
|
12
|
-
case
|
|
13
|
-
return /* @__PURE__ */
|
|
5
|
+
const y = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTciIHZpZXdCb3g9IjAgMCAxNiAxNyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNoZXZyb24iPgo8cGF0aCBpZD0iQ2hldnJvbl8yIiBkPSJNMTIgOC4xNzIyMkMxMiA4LjI4NzgzIDExLjk3ODEgOC4zOTU1MyAxMS45MzQyIDguNDk1MzNDMTEuODkwMyA4LjU5NTEzIDExLjgyMiA4LjY4OTkyIDExLjcyOTIgOC43Nzk3TDYuMzY5NDkgMTMuOTQzOUM2LjIxNDYyIDE0LjA5NjUgNi4wMjc0MiAxNC4xNzI5IDUuODA3ODcgMTQuMTcyOUM1LjY1NzUyIDE0LjE3MjkgNS41MjE5MSAxNC4xMzc5IDUuNDAxMDQgMTQuMDY3OUM1LjI4MDE2IDEzLjk5OCA1LjE4MzEgMTMuOTAzOSA1LjEwOTg2IDEzLjc4NTZDNS4wMzY2MiAxMy42NjczIDUgMTMuNTM0NSA1IDEzLjM4NzNDNSAxMy4xNzIxIDUuMDgyODggMTIuOTgxOCA1LjI0ODYzIDEyLjgxNjRMMTAuMDgwNyA4LjE3MDk1TDUuMjQ4NjMgMy41Mjc5OUM1LjA4Mjg4IDMuMzY0MjUgNSAzLjE3NDM5IDUgMi45NTg0MUM1IDIuODExMTggNS4wMzY2MiAyLjY3ODQyIDUuMTA5ODYgMi41NjAxM0M1LjE4MzEgMi40NDE4MyA1LjI4MDE2IDIuMzQ3NzEgNS40MDEwNCAyLjI3Nzc3QzUuNTIxOTEgMi4yMDc4MiA1LjY1NzUyIDIuMTcyODUgNS44MDc4NyAyLjE3Mjg1QzYuMDI3NDIgMi4xNzI4NSA2LjIxNDYyIDIuMjQ3MzEgNi4zNjk0OSAyLjM5NjI0TDExLjcyOTIgNy41NjQ3M0MxMS44MjExIDcuNjU0NTEgMTEuODg5IDcuNzQ5MDkgMTEuOTMyOSA3Ljg0ODQ2QzExLjk3NjggNy45NDc4NCAxMS45OTkxIDguMDU1NzYgMTIgOC4xNzIyMloiIGZpbGw9IiNGRkZGRkYiLz4KPC9nPgo8L3N2Zz4K", O = (I, M) => {
|
|
6
|
+
switch (I) {
|
|
7
|
+
case N.ROUNDED:
|
|
8
|
+
return /* @__PURE__ */ D(t, { alt: "insight-icon", src: M });
|
|
9
|
+
case N.TRANSPARENT:
|
|
10
|
+
return /* @__PURE__ */ D(x, { alt: "insight-icon", src: M });
|
|
11
|
+
case N.CENTERED:
|
|
12
|
+
return /* @__PURE__ */ D(A, { alt: "insight-icon", src: M });
|
|
14
13
|
default:
|
|
15
14
|
return null;
|
|
16
15
|
}
|
|
17
|
-
},
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
/* @__PURE__ */
|
|
16
|
+
}, e = ({ title: I, image: M, questionId: j, imageMode: i, openInsight: c }) => /* @__PURE__ */ g(n, { onClick: () => c(j), children: [
|
|
17
|
+
/* @__PURE__ */ D(z, { children: M && O(i, M) }),
|
|
18
|
+
/* @__PURE__ */ g(T, { children: [
|
|
19
|
+
/* @__PURE__ */ D(E, { children: I || "" }),
|
|
20
|
+
/* @__PURE__ */ D(u, { alt: "next-icon", src: y })
|
|
22
21
|
] })
|
|
23
22
|
] });
|
|
24
23
|
export {
|
|
25
|
-
|
|
24
|
+
e as Insight
|
|
26
25
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { Insight as e } from "../insight/index.js";
|
|
3
|
-
import { Container as
|
|
3
|
+
import { Container as n, ItemsContainer as i } from "./styles.js";
|
|
4
4
|
import "@streamlayer/sdk-web-types";
|
|
5
|
-
import "../../../icon-chevron-138a557c.js";
|
|
6
5
|
import "../insight/styles.js";
|
|
7
6
|
import "@linaria/react";
|
|
8
|
-
const
|
|
7
|
+
const l = ({ insights: r, openInsight: m }) => /* @__PURE__ */ o(n, { children: /* @__PURE__ */ o(i, { children: r == null ? void 0 : r.map((t) => /* @__PURE__ */ o(e, { openInsight: m, ...t }, t.questionId)) }) });
|
|
9
8
|
export {
|
|
10
|
-
|
|
9
|
+
l as InsightList
|
|
11
10
|
};
|
|
@@ -1,39 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { QuestionType as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { jsx as n, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import { QuestionType as i, PickHistoryStatus as c, QuestionStatus as p } from "@streamlayer/sdk-web-types";
|
|
3
|
+
import { Button as O } from "../../button/index.js";
|
|
4
|
+
import { QuestionTypeIcon as o, QuestionActionIcon as r, QuestionItem as Q, QuestionContent as b, QuestionCaption as E, QuestionTypeLabel as P, QuestionBody as A, QuestionAction as g } from "./styles.js";
|
|
5
|
+
import "../../button/styles.js";
|
|
5
6
|
import "@linaria/react";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[
|
|
10
|
-
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
7
|
+
import "../../icons/index.js";
|
|
8
|
+
import "react";
|
|
9
|
+
const y = {
|
|
10
|
+
[i.TWEET]: { label: "Insight", Icon: () => /* @__PURE__ */ n(o, { name: "icon-insight" }) },
|
|
11
|
+
[i.PROMOTION]: { label: "Insight", Icon: () => /* @__PURE__ */ n(o, { name: "icon-insight" }) },
|
|
12
|
+
[i.UNSET]: void 0,
|
|
13
|
+
[i.FACTOID]: { label: "Insight", Icon: () => /* @__PURE__ */ n(o, { name: "icon-insight" }) },
|
|
14
|
+
[i.POLL]: { label: "Poll", Icon: () => /* @__PURE__ */ n(o, { name: "icon-poll" }) },
|
|
15
|
+
[i.TRIVIA]: { label: "Trivia", Icon: () => /* @__PURE__ */ n(o, { name: "icon-trivia" }) },
|
|
16
|
+
[i.PREDICTION]: { label: "Prediction", Icon: () => /* @__PURE__ */ n(o, { name: "icon-prediction" }) }
|
|
17
|
+
}, N = {
|
|
18
|
+
[c.LOST]: /* @__PURE__ */ n(r, { name: "icon-cross" }),
|
|
19
|
+
[c.WON]: /* @__PURE__ */ n(r, { name: "icon-check" }),
|
|
20
|
+
[c.UNSET]: void 0,
|
|
21
|
+
[c.DNP]: /* @__PURE__ */ n(r, { name: "icon-arrow" })
|
|
22
|
+
}, k = ({
|
|
23
|
+
questionId: I,
|
|
24
|
+
questionType: l,
|
|
25
|
+
questionStatus: m,
|
|
26
|
+
subject: u,
|
|
27
|
+
openForVoting: h,
|
|
28
|
+
openQuestion: e,
|
|
29
|
+
status: T
|
|
23
30
|
}) => {
|
|
24
|
-
const
|
|
25
|
-
return
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
|
|
31
|
+
const { Icon: s, label: a } = y[l] || {}, d = N[T];
|
|
32
|
+
return !a || !s ? null : /* @__PURE__ */ t(Q, { onClick: () => e == null ? void 0 : e(I), children: [
|
|
33
|
+
/* @__PURE__ */ t(b, { children: [
|
|
34
|
+
/* @__PURE__ */ t(E, { children: [
|
|
35
|
+
/* @__PURE__ */ n(s, {}),
|
|
36
|
+
/* @__PURE__ */ t(P, { children: [
|
|
37
|
+
a,
|
|
38
|
+
l === i.TRIVIA && m === p.RESOLVED && " • Expired"
|
|
39
|
+
] })
|
|
31
40
|
] }),
|
|
32
|
-
/* @__PURE__ */
|
|
41
|
+
/* @__PURE__ */ n(A, { children: u || "" })
|
|
33
42
|
] }),
|
|
34
|
-
|
|
43
|
+
/* @__PURE__ */ n(g, { children: d || (h ? /* @__PURE__ */ n(O, { children: "Play" }) : null) })
|
|
35
44
|
] });
|
|
36
45
|
};
|
|
37
46
|
export {
|
|
38
|
-
|
|
47
|
+
k as Question
|
|
39
48
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
2
|
+
export declare const QuestionItem: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
|
+
export declare const QuestionCaption: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
|
+
export declare const QuestionBody: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
5
|
+
export declare const QuestionAction: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
6
|
+
export declare const QuestionActionIcon: any;
|
|
7
|
+
export declare const QuestionTypeIcon: any;
|
|
6
8
|
export declare const QuestionTypeLabel: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
9
|
+
export declare const QuestionContent: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
7
10
|
export declare const QuestionSubject: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
8
11
|
export declare const QuestionActionTitle: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
|
|
9
|
-
export declare const QuestionActionIcon: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
|
|
10
12
|
export declare const QuestionStatusIcon: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
|
|
11
13
|
export declare const QuestionTypeTitle: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
|
12
14
|
export declare const ExpiredQuestion: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
|
@@ -1,44 +1,66 @@
|
|
|
1
1
|
import { styled as o } from "@linaria/react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { SvgIcon as t } from "../../icons/index.js";
|
|
3
|
+
import "react/jsx-runtime";
|
|
4
|
+
import "react";
|
|
5
|
+
const s = o.div`
|
|
6
|
+
border-radius: var(--border-radius);
|
|
7
|
+
padding: var(--container-padding);
|
|
8
|
+
background-color: var(--color-neutrals-white);
|
|
6
9
|
display: flex;
|
|
7
10
|
align-items: center;
|
|
8
|
-
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
gap: 12px;
|
|
13
|
+
border: 1px solid var(--color-neutrals-white);
|
|
9
14
|
|
|
10
15
|
&:hover {
|
|
11
|
-
|
|
16
|
+
border-color: var(--color-neutrals-gray4);
|
|
12
17
|
}
|
|
13
|
-
`,
|
|
14
|
-
padding-right: 12px;
|
|
18
|
+
`, a = o.div`
|
|
15
19
|
display: flex;
|
|
16
20
|
align-items: center;
|
|
17
|
-
justify-content:
|
|
18
|
-
|
|
21
|
+
justify-content: flex-start;
|
|
22
|
+
|
|
23
|
+
font-size: 12px;
|
|
24
|
+
font-weight: 500;
|
|
25
|
+
margin-bottom: 8px;
|
|
26
|
+
`, p = o.div`
|
|
27
|
+
font-family: var(--font-serif);
|
|
28
|
+
color: var(--color-primary-green2);
|
|
29
|
+
font-size: 14px;
|
|
30
|
+
font-weight: 400;
|
|
31
|
+
`, l = o.div``, c = o(t)`
|
|
32
|
+
width: 24px;
|
|
33
|
+
height: 24px;
|
|
34
|
+
`, d = o(t)`
|
|
19
35
|
width: 16px;
|
|
20
36
|
height: 16px;
|
|
21
|
-
|
|
37
|
+
|
|
38
|
+
path {
|
|
39
|
+
fill: var(--color-primary-green1);
|
|
40
|
+
fill-opacity: 1;
|
|
41
|
+
}
|
|
42
|
+
`, f = o.div`
|
|
43
|
+
color: var(--color-neutrals-gray7);
|
|
44
|
+
font-size: 12px;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
text-overflow: ellipsis;
|
|
47
|
+
white-space: nowrap;
|
|
48
|
+
font-weight: 500;
|
|
49
|
+
|
|
50
|
+
margin-left: 6px;
|
|
51
|
+
`, u = o.div`
|
|
22
52
|
font-weight: 700;
|
|
23
53
|
flex: 1;
|
|
24
54
|
display: flex;
|
|
25
55
|
flex-direction: column;
|
|
26
56
|
overflow: hidden;
|
|
27
|
-
`,
|
|
28
|
-
color: var(--color-grey-primary);
|
|
29
|
-
font-size: 10px;
|
|
30
|
-
overflow: hidden;
|
|
31
|
-
text-overflow: ellipsis;
|
|
32
|
-
white-space: nowrap;
|
|
33
|
-
padding-bottom: 5px;
|
|
34
|
-
text-transform: uppercase;
|
|
35
|
-
`, s = o.div`
|
|
57
|
+
`, x = o.div`
|
|
36
58
|
color: var(--color-white);
|
|
37
59
|
font-size: 12px;
|
|
38
60
|
overflow: hidden;
|
|
39
61
|
text-overflow: ellipsis;
|
|
40
62
|
white-space: nowrap;
|
|
41
|
-
`,
|
|
63
|
+
`, g = o.button`
|
|
42
64
|
background-color: var(--color-blue-question-action-btn);
|
|
43
65
|
border: none;
|
|
44
66
|
border-radius: 2px;
|
|
@@ -48,35 +70,29 @@ const t = o.div`
|
|
|
48
70
|
text-transform: uppercase;
|
|
49
71
|
color: #fff;
|
|
50
72
|
cursor: pointer;
|
|
51
|
-
`,
|
|
52
|
-
border: none;
|
|
53
|
-
font-size: 8px;
|
|
54
|
-
padding: 6px;
|
|
55
|
-
display: flex;
|
|
56
|
-
align-items: center;
|
|
57
|
-
background-color: transparent;
|
|
58
|
-
cursor: pointer;
|
|
59
|
-
`, d = o.img`
|
|
73
|
+
`, v = o.img`
|
|
60
74
|
width: 16px;
|
|
61
75
|
height: 16px;
|
|
62
|
-
`,
|
|
76
|
+
`, h = o.span`
|
|
63
77
|
text-transform: uppercase;
|
|
64
|
-
`,
|
|
78
|
+
`, m = o.span`
|
|
65
79
|
text-transform: uppercase;
|
|
66
80
|
border-left: 1px solid var(--color-grey-primary);
|
|
67
81
|
padding-left: 5px;
|
|
68
82
|
margin-left: 5px;
|
|
69
83
|
`;
|
|
70
84
|
export {
|
|
71
|
-
|
|
72
|
-
|
|
85
|
+
m as ExpiredQuestion,
|
|
86
|
+
l as QuestionAction,
|
|
73
87
|
c as QuestionActionIcon,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
88
|
+
g as QuestionActionTitle,
|
|
89
|
+
p as QuestionBody,
|
|
90
|
+
a as QuestionCaption,
|
|
91
|
+
u as QuestionContent,
|
|
92
|
+
s as QuestionItem,
|
|
93
|
+
v as QuestionStatusIcon,
|
|
94
|
+
x as QuestionSubject,
|
|
95
|
+
d as QuestionTypeIcon,
|
|
96
|
+
f as QuestionTypeLabel,
|
|
97
|
+
h as QuestionTypeTitle
|
|
82
98
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Question as
|
|
3
|
-
import {
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Question as i } from "../question/index.js";
|
|
3
|
+
import { QuestionsContainer as p } from "./styles.js";
|
|
4
4
|
import "@streamlayer/sdk-web-types";
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
5
|
+
import "../../button/index.js";
|
|
6
|
+
import "../../button/styles.js";
|
|
7
7
|
import "@linaria/react";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
import "../question/styles.js";
|
|
9
|
+
import "../../icons/index.js";
|
|
10
|
+
import "react";
|
|
11
|
+
const l = ({ questions: r, openQuestion: m }) => /* @__PURE__ */ t(p, { children: r == null ? void 0 : r.map((o) => /* @__PURE__ */ t(i, { openQuestion: m, ...o }, o.questionId)) });
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
l as QuestionList
|
|
14
14
|
};
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const Title: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
|
-
export declare const ItemsContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
2
|
+
export declare const QuestionsContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
@@ -1,27 +1,11 @@
|
|
|
1
1
|
import { styled as o } from "@linaria/react";
|
|
2
|
-
const
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
border-radius: 13px;
|
|
6
|
-
height: 100%;
|
|
7
|
-
`, i = o.div`
|
|
8
|
-
color: var(--color-grey-primary);
|
|
9
|
-
text-transform: uppercase;
|
|
10
|
-
font-size: 12px;
|
|
11
|
-
font-weight: 500;
|
|
12
|
-
margin-bottom: 8px;
|
|
13
|
-
`, r = o.div`
|
|
2
|
+
const t = o.div`
|
|
14
3
|
display: flex;
|
|
15
4
|
flex-direction: column;
|
|
16
5
|
overflow-y: auto;
|
|
17
6
|
max-height: 100%;
|
|
18
|
-
|
|
19
|
-
& > div {
|
|
20
|
-
margin-bottom: 8px;
|
|
21
|
-
}
|
|
7
|
+
gap: 8px;
|
|
22
8
|
`;
|
|
23
9
|
export {
|
|
24
|
-
|
|
25
|
-
r as ItemsContainer,
|
|
26
|
-
i as Title
|
|
10
|
+
t as QuestionsContainer
|
|
27
11
|
};
|
|
@@ -2,6 +2,8 @@ import { styled as o } from "@linaria/react";
|
|
|
2
2
|
const t = o.div`
|
|
3
3
|
padding-left: var(--container-padding);
|
|
4
4
|
padding-right: var(--container-padding);
|
|
5
|
+
padding-bottom: var(--container-padding);
|
|
6
|
+
background-color: var(--color-neutrals-white);
|
|
5
7
|
`, n = o.div`
|
|
6
8
|
position: relative;
|
|
7
9
|
box-sizing: border-box;
|
|
@@ -34,7 +36,7 @@ const t = o.div`
|
|
|
34
36
|
transform: translateX(100%);
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
|
-
`,
|
|
39
|
+
`, a = o.button`
|
|
38
40
|
border: none;
|
|
39
41
|
outline: none;
|
|
40
42
|
background-color: transparent;
|
|
@@ -58,13 +60,13 @@ const t = o.div`
|
|
|
58
60
|
color: var(--color-primary-green1);
|
|
59
61
|
cursor: default;
|
|
60
62
|
}
|
|
61
|
-
`,
|
|
63
|
+
`, e = o.span`
|
|
62
64
|
position: relative;
|
|
63
65
|
z-index: 2;
|
|
64
66
|
`;
|
|
65
67
|
export {
|
|
66
|
-
|
|
68
|
+
a as Button,
|
|
67
69
|
t as Container,
|
|
68
70
|
n as STabs,
|
|
69
|
-
|
|
71
|
+
e as Title
|
|
70
72
|
};
|
package/lib/ui/icons/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export declare const icons: {
|
|
|
7
7
|
'icon-thumb-down': any;
|
|
8
8
|
'icon-star': any;
|
|
9
9
|
'icon-prediction': any;
|
|
10
|
+
'icon-insight': any;
|
|
10
11
|
'icon-poll': any;
|
|
11
12
|
'icon-masters-logo': any;
|
|
12
13
|
'icon-logout': any;
|
|
@@ -23,12 +24,13 @@ export declare const icons: {
|
|
|
23
24
|
'icon-chevron': any;
|
|
24
25
|
'icon-chevron-white-left': any;
|
|
25
26
|
'icon-chevron-left': any;
|
|
26
|
-
'icon-check': any;
|
|
27
27
|
'icon-check-white': any;
|
|
28
28
|
'icon-check-green': any;
|
|
29
29
|
'icon-btn-channels': any;
|
|
30
30
|
'icon-btn-feature-groups': any;
|
|
31
31
|
'icon-btn-leaderboard': any;
|
|
32
|
+
'icon-check': any;
|
|
33
|
+
'icon-arrow': any;
|
|
32
34
|
fedex: any;
|
|
33
35
|
};
|
|
34
36
|
export declare const Icon: React.FC<{
|