@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.
Files changed (36) hide show
  1. package/lib/index.js +33 -32
  2. package/lib/ui/app/Features/Gamification/QuestionsList.js +9 -6
  3. package/lib/ui/app/Features/Gamification/Tabs.js +18 -15
  4. package/lib/ui/app/Features/Gamification/index.js +6 -3
  5. package/lib/ui/app/Features/Highlights/Insights.js +4 -5
  6. package/lib/ui/app/Features/Highlights/index.js +6 -7
  7. package/lib/ui/app/Features/index.js +6 -3
  8. package/lib/ui/app/masters.js +5 -4
  9. package/lib/ui/app/styles.d.ts +1 -0
  10. package/lib/ui/app/styles.js +9 -5
  11. package/lib/ui/button/index.d.ts +8 -0
  12. package/lib/ui/button/index.js +7 -0
  13. package/lib/ui/button/styles.d.ts +3 -0
  14. package/lib/ui/button/styles.js +44 -0
  15. package/lib/ui/demo/Gamification.js +18 -16
  16. package/lib/ui/demo/Highlights.js +5 -3
  17. package/lib/ui/demo/components/Insights.js +4 -5
  18. package/lib/ui/demo/components/QuestionsList.js +9 -6
  19. package/lib/ui/demo/components/index.js +18 -16
  20. package/lib/ui/demo/index.js +5 -3
  21. package/lib/ui/gamification/insight/index.js +17 -18
  22. package/lib/ui/gamification/insight-list/index.js +3 -4
  23. package/lib/ui/gamification/question/index.js +40 -31
  24. package/lib/ui/gamification/question/styles.d.ts +7 -5
  25. package/lib/ui/gamification/question/styles.js +58 -42
  26. package/lib/ui/gamification/question-list/index.js +10 -10
  27. package/lib/ui/gamification/question-list/styles.d.ts +1 -3
  28. package/lib/ui/gamification/question-list/styles.js +3 -19
  29. package/lib/ui/gamification/tabs/styles.js +6 -4
  30. package/lib/ui/icons/index.d.ts +3 -1
  31. package/lib/ui/icons/index.js +37 -35
  32. package/lib/ui/navigation/index.js +5 -4
  33. package/lib/ui/theme/masters.d.ts +1 -0
  34. package/lib/ui/theme/theme.js +17 -11
  35. package/package.json +3 -3
  36. package/lib/icon-chevron-138a557c.js +0 -4
@@ -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 "../../icon-chevron-138a557c.js";
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
- }, ui = ({ sdk: r }) => {
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
- ui as Demo
142
+ fi as Demo
141
143
  };
@@ -1,26 +1,25 @@
1
- import { jsxs as o, jsx as t } from "react/jsx-runtime";
2
- import { QuestionImages as i } from "@streamlayer/sdk-web-types";
3
- import { i as l } from "../../../icon-chevron-138a557c.js";
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 C = (r, n) => {
7
- switch (r) {
8
- case i.ROUNDED:
9
- return /* @__PURE__ */ t(g, { alt: "insight-icon", src: n });
10
- case i.TRANSPARENT:
11
- return /* @__PURE__ */ t(f, { alt: "insight-icon", src: n });
12
- case i.CENTERED:
13
- return /* @__PURE__ */ t(p, { alt: "insight-icon", src: n });
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
- }, R = ({ title: r, image: n, questionId: c, imageMode: s, openInsight: e }) => /* @__PURE__ */ o(h, { onClick: () => e(c), children: [
18
- /* @__PURE__ */ t(I, { children: n && C(s, n) }),
19
- /* @__PURE__ */ o(a, { children: [
20
- /* @__PURE__ */ t(u, { children: r || "" }),
21
- /* @__PURE__ */ t(m, { alt: "next-icon", src: l })
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
- R as Insight
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 i, ItemsContainer as n } from "./styles.js";
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 u = ({ insights: r, openInsight: m }) => /* @__PURE__ */ o(i, { children: /* @__PURE__ */ o(n, { children: r == null ? void 0 : r.map((t) => /* @__PURE__ */ o(e, { openInsight: m, ...t }, t.questionId)) }) });
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
- u as InsightList
9
+ l as InsightList
11
10
  };
@@ -1,39 +1,48 @@
1
- import { jsxs as z, jsx as M } from "react/jsx-runtime";
2
- import { QuestionType as N, PickHistoryStatus as D, QuestionStatus as O } from "@streamlayer/sdk-web-types";
3
- import { i as T } from "../../../icon-chevron-138a557c.js";
4
- import { Panel as E, QuestionTypeIconWrap as c, QuestionTypeIcon as x, QuestionContent as Q, QuestionTypeLabel as Y, QuestionTypeTitle as C, ExpiredQuestion as S, QuestionSubject as U, QuestionActionTitle as w, QuestionActionIcon as a, QuestionStatusIcon as k } from "./styles.js";
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
- const l = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTciIHZpZXdCb3g9IjAgMCAxNiAxNyIgZmlsbD0ibm9uZSIg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zIzIDguNzQwMyA4LjY5ODc3IDguNjA4MTMgOC43NTk5NSA4LjQ4ODA0QzguODQ2NDkgOC4zMTYxMyA5LjA2MjgzIDguMTEyNjUgOS4zMTQyOCA3Ljg3ODc1QzkuOTE0MiA3LjMxODU4IDEwLjczNCA2LjU1MTQzIDEwLjU4MiA1LjQxNTg5QzEwLjQ4NzIgNC43MDYwMyAxMC4xNTUxIDQuMTU3NTcgOS41OTYxMSAzLjc4ODAyTDkuNTk2MTMgMy43ODhaTTguMTE2MDUgMTAuMjhDOC4wNjkyNyAxMC4yOCA4LjAyMTMyIDEwLjI4MzYgNy45NzQ1NCAxMC4yODk0QzcuMzgzOTYgMTAuMzY4OSA2Ljk2NzY1IDEwLjkxMjcgNy4wNDU5OSAxMS41MDMzQzcuMTE3MzMgMTIuMDM3NyA3LjU3ODA4IDEyLjQ0MTIgOC4xMTcyIDEyLjQ0MTJDOC4xNjM5NyAxMi40NDEyIDguMjExOTIgMTIuNDM3NyA4LjI1OTg3IDEyLjQzMThDOC44NTA0NSAxMi4zNTIzIDkuMjY1NiAxMS44MDg1IDkuMTg4NDIgMTEuMjE3OUM5LjExNTkxIDEwLjY4MjMgOC42NTUxNyAxMC4yOCA4LjExNjA1IDEwLjI4WiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC41Ii8+CjwvZz4KPC9zdmc+Cg==", b = {
7
- [N.POLL]: { label: "Poll", icon: Z },
8
- [N.TRIVIA]: { label: "Trivia", icon: d },
9
- [N.PREDICTION]: { label: "Prediction", icon: o }
10
- }, s = {
11
- [D.LOST]: n,
12
- [D.WON]: l,
13
- [D.UNSET]: T,
14
- [D.DNP]: T
15
- }, P = ({
16
- questionId: A,
17
- questionType: g,
18
- questionStatus: i,
19
- subject: y,
20
- openForVoting: L,
21
- openQuestion: I,
22
- status: u
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 j = b[g];
25
- return j === void 0 ? null : /* @__PURE__ */ z(E, { onClick: () => I == null ? void 0 : I(A), children: [
26
- /* @__PURE__ */ M(c, { children: /* @__PURE__ */ M(x, { alt: "question-type-icon", src: j.icon }) }),
27
- /* @__PURE__ */ z(Q, { children: [
28
- /* @__PURE__ */ z(Y, { children: [
29
- /* @__PURE__ */ M(C, { children: j.label }),
30
- g === N.TRIVIA && i === O.RESOLVED && /* @__PURE__ */ M(S, { children: "Expired" })
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__ */ M(U, { children: y || "" })
41
+ /* @__PURE__ */ n(A, { children: u || "" })
33
42
  ] }),
34
- L ? /* @__PURE__ */ M(w, { children: "play" }) : /* @__PURE__ */ M(a, { children: /* @__PURE__ */ M(k, { alt: "question-status-icon", src: s[u] }) })
43
+ /* @__PURE__ */ n(g, { children: d || (h ? /* @__PURE__ */ n(O, { children: "Play" }) : null) })
35
44
  ] });
36
45
  };
37
46
  export {
38
- P as Question
47
+ k as Question
39
48
  };
@@ -1,12 +1,14 @@
1
1
  /// <reference types="react" />
2
- export declare const Panel: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
- export declare const QuestionTypeIconWrap: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
- export declare const QuestionTypeIcon: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
5
- export declare const QuestionContent: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
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
- const t = o.div`
3
- border-radius: 8px;
4
- padding: 12px;
5
- background-color: var(--color-transparent-item);
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
- cursor: pointer;
11
+ justify-content: space-between;
12
+ gap: 12px;
13
+ border: 1px solid var(--color-neutrals-white);
9
14
 
10
15
  &:hover {
11
- background: #000;
16
+ border-color: var(--color-neutrals-gray4);
12
17
  }
13
- `, n = o.div`
14
- padding-right: 12px;
18
+ `, a = o.div`
15
19
  display: flex;
16
20
  align-items: center;
17
- justify-content: center;
18
- `, r = o.img`
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
- `, i = o.div`
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
- `, p = o.div`
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
- `, a = o.button`
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
- `, c = o.button`
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
- `, l = o.span`
76
+ `, h = o.span`
63
77
  text-transform: uppercase;
64
- `, x = o.span`
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
- x as ExpiredQuestion,
72
- t as Panel,
85
+ m as ExpiredQuestion,
86
+ l as QuestionAction,
73
87
  c as QuestionActionIcon,
74
- a as QuestionActionTitle,
75
- i as QuestionContent,
76
- d as QuestionStatusIcon,
77
- s as QuestionSubject,
78
- r as QuestionTypeIcon,
79
- n as QuestionTypeIconWrap,
80
- p as QuestionTypeLabel,
81
- l as QuestionTypeTitle
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 { jsxs as o, jsx as t } from "react/jsx-runtime";
2
- import { Question as e } from "../question/index.js";
3
- import { Container as n, Title as p, ItemsContainer as c } from "./styles.js";
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 "../../../icon-chevron-138a557c.js";
6
- import "../question/styles.js";
5
+ import "../../button/index.js";
6
+ import "../../button/styles.js";
7
7
  import "@linaria/react";
8
- const C = ({ questions: r, openQuestion: m }) => /* @__PURE__ */ o(n, { children: [
9
- /* @__PURE__ */ t(p, { children: "PICK HISTORY" }),
10
- /* @__PURE__ */ t(c, { children: r == null ? void 0 : r.map((i) => /* @__PURE__ */ t(e, { openQuestion: m, ...i }, i.questionId)) })
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
- C as QuestionList
13
+ l as QuestionList
14
14
  };
@@ -1,4 +1,2 @@
1
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 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 e = o.div`
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
- e as Container,
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
- `, e = o.button`
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
- `, a = o.span`
63
+ `, e = o.span`
62
64
  position: relative;
63
65
  z-index: 2;
64
66
  `;
65
67
  export {
66
- e as Button,
68
+ a as Button,
67
69
  t as Container,
68
70
  n as STabs,
69
- a as Title
71
+ e as Title
70
72
  };
@@ -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<{