@logora/debate 0.4.18 → 0.4.20
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/dist/assets/components/vote/vote_box/VoteBox.module-uT1IZ6Ag.css +1 -0
- package/dist/components/input/text_editor/plugins/ToolbarPlugin.js +67 -73
- package/dist/components/vote/vote_box/VoteBox.module.scss.js +52 -52
- package/package.json +1 -1
- package/dist/assets/components/vote/vote_box/VoteBox.module-DXymYDHj.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._voteBox_1k8f1_3{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;width:100%}._voteResultsBox_1k8f1_11{display:flex!important;flex-direction:column!important;padding:0!important;width:100%}._voteResults_1k8f1_11{padding:0!important}._voteProgressHeader_1k8f1_22{margin-bottom:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important;display:flex!important;align-items:center!important;font-size:var(--font-size-normal, 16px);display:-webkit-box;word-wrap:break-word;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}._voteProgressHeaderAgainst_1k8f1_35{margin-top:var(--spacer-md, calc(var(--space-unit, 1em) * .75))!important}._voteResultsNumberVoters_1k8f1_39{display:flex!important;align-items:center!important;padding:0!important;font-size:var(--font-size-normal, 16px);color:var(--text-secondary, #5F5F5F)}._voteBoxFooter_1k8f1_47{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;margin-top:var(--space-unit, 1em)!important;padding:0!important}._voteBoxActions_1k8f1_56{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center;gap:var(--space-unit, 1em);color:var(--text-secondary, #5F5F5F);width:100%}._voteBoxActionsBody_1k8f1_66{display:grid!important;grid-template-columns:repeat(2,1fr);gap:var(--spacer-md, calc(var(--space-unit, 1em) * .75));padding:0!important;width:100%}._voteBoxActionsBodyColumn_1k8f1_74{grid-template-columns:1fr}._voteAction_1k8f1_78{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;padding:0!important;max-width:100%!important;width:100%!important;text-align:center}._voteAction_1k8f1_78._buttonAlignLeft_1k8f1_88{justify-content:flex-start!important}button._voteButton_1k8f1_92,a._voteButton_1k8f1_92{-webkit-appearance:initial!important;width:100%;-webkit-hyphens:auto;-ms-hyphens:auto;-moz-hyphens:auto;hyphens:auto;padding:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important}._textAlignLeft_1k8f1_103{justify-content:flex-start!important}._voteBoxShowResultContainer_1k8f1_107{display:flex!important;flex-direction:row!important;justify-content:center;flex-wrap:wrap!important;margin-top:.3em}._voteBoxShowResult_1k8f1_107{cursor:pointer}._voteBoxShowResult_1k8f1_107 a{color:inherit;text-decoration:none;background:none!important}._voteBoxShowResult_1k8f1_107 a:hover{text-decoration:none;background:none!important}._voteBoxShowResult_1k8f1_107 a:focus:not(:focus-visible){outline:none;box-shadow:none}._voteBoxShowResult_1k8f1_107 ._boldShowResult_1k8f1_131{font-weight:var(--font-weight-bold, 700);color:var(--text-primary, #222222)}._outlined_1k8f1_136{padding:7px 15px;border-radius:var(--box-border-radius, 6px);border:1px solid var(--text-primary, #222222)!important;white-space:nowrap}._voteButtonThesis_1k8f1_143{display:block;text-align:left;display:-webkit-box;word-wrap:break-word;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}@container (max-width: 767.98px){._voteButtonThesisSynthesisMobile_1k8f1_155{text-align:center!important}}._voteBoxActionsBody_1k8f1_66 ._voteAction_1k8f1_78:first-child ._voteButton_1k8f1_92,._voteBoxActionsBody_1k8f1_66 ._voteAction_1k8f1_78:first-child ._voteButton_1k8f1_92:hover{background-color:var(--for-primary-color, #cc6a6d)!important;border-color:var(--for-primary-color, #cc6a6d)!important;border:1px solid var(--for-primary-color, #cc6a6d)!important}._voteBoxActionsBody_1k8f1_66 ._voteAction_1k8f1_78:nth-child(2) ._voteButton_1k8f1_92{background-color:var(--against-primary-color, #7980bb)!important;border-color:var(--against-primary-color, #7980bb)!important;border:1px solid var(--against-primary-color, #7980bb)!important}._voteBoxActionsBody_1k8f1_66 ._voteAction_1k8f1_78:nth-child(2) ._voteButton_1k8f1_92:hover{background-color:var(--against-primary-color, #7980bb)!important;border-color:var(--against-primary-color, #7980bb)!important;border:1px solid var(--against-primary-color, #7980bb)!important}._voteBoxActionsBody_1k8f1_66 ._voteAction_1k8f1_78:nth-child(3) ._voteButton_1k8f1_92{background-color:var(--text-light, white)!important;color:var(--third-position-color-primary, #9b9b9b)!important;border-color:var(--third-position-color-primary, #9b9b9b)!important;border:1px solid var(--third-position-color-primary, #9b9b9b)!important}._voteBoxActionsBody_1k8f1_66 ._voteAction_1k8f1_78:nth-child(3) ._voteButton_1k8f1_92:hover{background-color:var(--text-light, white)!important;color:var(--third-position-color-primary, #9b9b9b)!important;border-color:var(--third-position-color-primary, #9b9b9b)!important;border:1px solid var(--third-position-color-primary, #9b9b9b)!important}._voteBoxActionsBodyOutlined_1k8f1_194 ._voteAction_1k8f1_78:first-child ._voteButton_1k8f1_92,._voteBoxActionsBodyOutlined_1k8f1_194 ._voteAction_1k8f1_78:first-child ._voteButton_1k8f1_92:hover{background-color:var(--text-light, white)!important;color:var(--for-primary-color, #cc6a6d)!important;border-color:var(--for-primary-color, #cc6a6d)!important;border:1px solid var(--for-primary-color, #cc6a6d)!important}._voteBoxActionsBodyOutlined_1k8f1_194 ._voteAction_1k8f1_78:nth-child(2) ._voteButton_1k8f1_92{background-color:var(--text-light, white)!important;color:var(--against-primary-color, #7980bb)!important;border-color:var(--against-primary-color, #7980bb)!important;border:1px solid var(--against-primary-color, #7980bb)!important}._voteBoxActionsBodyOutlined_1k8f1_194 ._voteAction_1k8f1_78:nth-child(2) ._voteButton_1k8f1_92:hover{background-color:var(--text-light, white)!important;color:var(--against-primary-color, #7980bb)!important;border-color:var(--against-primary-color, #7980bb)!important;border:1px solid var(--against-primary-color, #7980bb)!important}._voteBoxActionsBodyOutlined_1k8f1_194 ._voteAction_1k8f1_78:nth-child(3) ._voteButton_1k8f1_92{background-color:var(--text-light, white)!important;color:var(--third-position-color-primary, #9b9b9b)!important;border-color:var(--third-position-color-primary, #9b9b9b)!important;border:1px solid var(--third-position-color-primary, #9b9b9b)!important}._voteBoxActionsBodyOutlined_1k8f1_194 ._voteAction_1k8f1_78:nth-child(3) ._voteButton_1k8f1_92:hover{background-color:var(--text-light, white)!important;color:var(--third-position-color-primary, #9b9b9b)!important;border-color:var(--third-position-color-primary, #9b9b9b)!important;border:1px solid var(--third-position-color-primary, #9b9b9b)!important}._voteActionButton_1k8f1_233{cursor:pointer;-webkit-appearance:initial!important;background:none;border:none;color:var(--text-secondary, #5F5F5F)!important;font-size:inherit;padding:0;font-weight:var(--font-weight-bold, 700)}._voteActionButton_1k8f1_233:focus:not(:focus-visible){outline:none;box-shadow:none}._sideIcon_1k8f1_248 svg{margin-left:5px;fill:var(--text-primary, #222222)}._progress_1k8f1_253{border-radius:var(--button-border-radius, var(--box-border-radius, 6px));color:var(--text-secondary, #5F5F5F);height:2.2em}._progressBar_1k8f1_259{border-radius:var(--button-border-radius, var(--box-border-radius, 6px));height:100%}._voteResults_1k8f1_11>div:first-child ._progress_1k8f1_253 ._progressBar_1k8f1_259{background-color:var(--for-primary-color, #cc6a6d)!important}._voteResults_1k8f1_11>div:nth-child(2) ._progress_1k8f1_253 ._progressBar_1k8f1_259{background-color:var(--against-primary-color, #7980bb)!important}._voteResults_1k8f1_11 div:nth-child(3) ._progress_1k8f1_253 ._progressBar_1k8f1_259{background-color:var(--third-position-color-primary, #9b9b9b)!important}._voteCommentCounts_1k8f1_276{display:flex;align-items:center;gap:var(--space-unit, 1em);width:100%;margin-top:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important}._debateNumberItem_1k8f1_284{display:flex;align-items:center;gap:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25));font-size:var(--font-size-normal, 16px);color:var(--text-primary, #222222);white-space:nowrap}._debateNumberLabel_1k8f1_293{white-space:nowrap}._showResultButton_1k8f1_297{background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer}._showResultButton_1k8f1_297:focus:not(:focus-visible){outline:none;box-shadow:none}._voteResultInfoText_1k8f1_310{font-size:var(--font-size-small, 16px);color:var(--text-secondary, #5F5F5F);text-align:left;width:100%;align-self:flex-start}
|
|
@@ -1,100 +1,99 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as x, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { $isListNode as $, ListNode as q, INSERT_ORDERED_LIST_COMMAND as K, REMOVE_LIST_COMMAND as F } from "@lexical/list";
|
|
3
3
|
import { useLexicalComposerContext as U } from "@lexical/react/LexicalComposerContext";
|
|
4
|
-
import { $isHeadingNode as P, $createQuoteNode as
|
|
5
|
-
import { $setBlocksType as
|
|
4
|
+
import { $isHeadingNode as P, $createQuoteNode as I } from "@lexical/rich-text";
|
|
5
|
+
import { $setBlocksType as E } from "@lexical/selection";
|
|
6
6
|
import { $getNearestNodeOfType as j, mergeRegister as H } from "@lexical/utils";
|
|
7
7
|
import a from "classnames";
|
|
8
8
|
import { $getSelection as p, $isRangeSelection as N, SELECTION_CHANGE_COMMAND as Q, FORMAT_TEXT_COMMAND as G, $createParagraphNode as V } from "lexical";
|
|
9
|
-
import { useRef as X, useState as
|
|
9
|
+
import { useRef as X, useState as u, useCallback as z, useEffect as J } from "react";
|
|
10
10
|
import { useIntl as W } from "react-intl";
|
|
11
11
|
import e from "./ToolbarPlugin.module.scss.js";
|
|
12
|
-
import { Icon as
|
|
12
|
+
import { Icon as c } from "../../../icons/icon/Icon.js";
|
|
13
13
|
import { Button as Y } from "../../../action/button/Button.js";
|
|
14
|
-
const
|
|
15
|
-
const
|
|
14
|
+
const ge = (i) => {
|
|
15
|
+
const r = W(), S = 1, [l] = U(), A = X(null), [b, M] = u("paragraph"), [Z, v] = u(null), [w, _] = u(!1), [D, T] = u(!1), [L, y] = u(!1), C = i.hideSubmit && i.hideSourceAction && i.disableRichText, g = z(() => {
|
|
16
16
|
const t = p();
|
|
17
17
|
if (N(t)) {
|
|
18
|
-
const
|
|
19
|
-
if (
|
|
20
|
-
if (v(
|
|
21
|
-
const
|
|
18
|
+
const n = t.anchor.getNode(), s = n.getKey() === "root" ? n : n.getTopLevelElementOrThrow(), m = s.getKey();
|
|
19
|
+
if (l.getElementByKey(m) !== null)
|
|
20
|
+
if (v(m), $(s)) {
|
|
21
|
+
const f = j(n, q), B = f ? f.getTag() : s.getTag();
|
|
22
22
|
M(B);
|
|
23
23
|
} else {
|
|
24
|
-
const
|
|
25
|
-
M(
|
|
24
|
+
const f = P(s) ? s.getTag() : s.getType();
|
|
25
|
+
M(f);
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
_(t.hasFormat("bold")), T(t.hasFormat("italic")), y(t.hasFormat("underline"));
|
|
28
28
|
}
|
|
29
|
-
}, [
|
|
29
|
+
}, [l]);
|
|
30
30
|
J(() => H(
|
|
31
|
-
|
|
31
|
+
l.registerUpdateListener(({ editorState: t }) => {
|
|
32
32
|
t.read(() => {
|
|
33
|
-
|
|
33
|
+
g();
|
|
34
34
|
});
|
|
35
35
|
}),
|
|
36
|
-
|
|
36
|
+
l.registerCommand(
|
|
37
37
|
Q,
|
|
38
|
-
() => (
|
|
39
|
-
|
|
38
|
+
() => (g(), !1),
|
|
39
|
+
S
|
|
40
40
|
)
|
|
41
|
-
), [
|
|
42
|
-
const
|
|
41
|
+
), [l, g]);
|
|
42
|
+
const d = (t) => {
|
|
43
43
|
t.preventDefault();
|
|
44
|
-
},
|
|
44
|
+
}, k = () => {
|
|
45
45
|
setTimeout(() => {
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
l.getEditorState().read(() => {
|
|
47
|
+
g();
|
|
48
48
|
});
|
|
49
49
|
}, 0);
|
|
50
|
-
},
|
|
51
|
-
|
|
50
|
+
}, h = (t) => {
|
|
51
|
+
l.dispatchCommand(G, t), t === "bold" && _((n) => !n), t === "italic" && T((n) => !n), t === "underline" && y((n) => !n);
|
|
52
52
|
}, O = () => {
|
|
53
|
-
b !== "ol" ?
|
|
53
|
+
b !== "ol" ? l.dispatchCommand(K) : l.dispatchCommand(F), k();
|
|
54
54
|
}, R = () => {
|
|
55
|
-
b !== "quote" ?
|
|
55
|
+
b !== "quote" ? l.update(() => {
|
|
56
56
|
const t = p();
|
|
57
57
|
if (N(t))
|
|
58
58
|
if (t.isCollapsed()) {
|
|
59
|
-
const
|
|
60
|
-
|
|
59
|
+
const s = t.anchor.getNode().getTopLevelElementOrThrow(), m = I();
|
|
60
|
+
s.insertAfter(m), m.selectEnd();
|
|
61
61
|
} else
|
|
62
|
-
|
|
63
|
-
}) :
|
|
62
|
+
E(t, () => I());
|
|
63
|
+
}) : l.update(() => {
|
|
64
64
|
const t = p();
|
|
65
|
-
N(t) &&
|
|
66
|
-
}),
|
|
65
|
+
N(t) && E(t, () => V());
|
|
66
|
+
}), k();
|
|
67
67
|
};
|
|
68
|
-
return
|
|
68
|
+
return C ? null : /* @__PURE__ */ x(
|
|
69
69
|
"div",
|
|
70
70
|
{
|
|
71
71
|
className: a(e.toolbar, {
|
|
72
|
-
[e.toolbarIsActive]:
|
|
72
|
+
[e.toolbarIsActive]: C ? !1 : i.isActive
|
|
73
73
|
}),
|
|
74
74
|
ref: A,
|
|
75
75
|
children: [
|
|
76
|
-
|
|
76
|
+
i.isActive ? !i.disableRichText && /* @__PURE__ */ x(
|
|
77
77
|
"div",
|
|
78
78
|
{
|
|
79
79
|
className: a(e.iconToolbar, {
|
|
80
|
-
[e.shortBar]:
|
|
80
|
+
[e.shortBar]: i.shortBar
|
|
81
81
|
}),
|
|
82
82
|
children: [
|
|
83
83
|
/* @__PURE__ */ o(
|
|
84
84
|
"button",
|
|
85
85
|
{
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
onClick: () => f("bold"),
|
|
86
|
+
onMouseDown: d,
|
|
87
|
+
onClick: () => h("bold"),
|
|
89
88
|
type: "button",
|
|
90
89
|
className: a(e.toolbarItem, { [e.active]: w }),
|
|
91
90
|
"data-testid": "format-bold",
|
|
92
|
-
"aria-label":
|
|
91
|
+
"aria-label": r.formatMessage({
|
|
93
92
|
id: "input.text_editor.plugins.toolbar_plugin.bold.aria_label",
|
|
94
93
|
defaultMessage: "Make text bold"
|
|
95
94
|
}),
|
|
96
95
|
children: /* @__PURE__ */ o(
|
|
97
|
-
|
|
96
|
+
c,
|
|
98
97
|
{
|
|
99
98
|
name: "bold",
|
|
100
99
|
width: 24,
|
|
@@ -107,19 +106,18 @@ const he = (l) => {
|
|
|
107
106
|
/* @__PURE__ */ o(
|
|
108
107
|
"button",
|
|
109
108
|
{
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
onClick: () => f("italic"),
|
|
109
|
+
onMouseDown: d,
|
|
110
|
+
onClick: () => h("italic"),
|
|
113
111
|
type: "button",
|
|
114
112
|
className: a(e.toolbarItem, {
|
|
115
113
|
[e.active]: D
|
|
116
114
|
}),
|
|
117
|
-
"aria-label":
|
|
115
|
+
"aria-label": r.formatMessage({
|
|
118
116
|
id: "input.text_editor.plugins.toolbar_plugin.italic.aria_label",
|
|
119
117
|
defaultMessage: "Make text italic"
|
|
120
118
|
}),
|
|
121
119
|
children: /* @__PURE__ */ o(
|
|
122
|
-
|
|
120
|
+
c,
|
|
123
121
|
{
|
|
124
122
|
name: "italic",
|
|
125
123
|
width: 24,
|
|
@@ -132,19 +130,18 @@ const he = (l) => {
|
|
|
132
130
|
/* @__PURE__ */ o(
|
|
133
131
|
"button",
|
|
134
132
|
{
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
onClick: () => f("underline"),
|
|
133
|
+
onMouseDown: d,
|
|
134
|
+
onClick: () => h("underline"),
|
|
138
135
|
type: "button",
|
|
139
136
|
className: a(e.toolbarItem, {
|
|
140
137
|
[e.active]: L
|
|
141
138
|
}),
|
|
142
|
-
"aria-label":
|
|
139
|
+
"aria-label": r.formatMessage({
|
|
143
140
|
id: "input.text_editor.plugins.toolbar_plugin.underline.aria_label",
|
|
144
141
|
defaultMessage: "Underline text"
|
|
145
142
|
}),
|
|
146
143
|
children: /* @__PURE__ */ o(
|
|
147
|
-
|
|
144
|
+
c,
|
|
148
145
|
{
|
|
149
146
|
name: "underline",
|
|
150
147
|
width: 24,
|
|
@@ -157,19 +154,18 @@ const he = (l) => {
|
|
|
157
154
|
/* @__PURE__ */ o(
|
|
158
155
|
"button",
|
|
159
156
|
{
|
|
160
|
-
|
|
161
|
-
onMouseDown: i,
|
|
157
|
+
onMouseDown: d,
|
|
162
158
|
onClick: () => R(),
|
|
163
159
|
type: "button",
|
|
164
160
|
className: a(e.toolbarItem, {
|
|
165
161
|
[e.active]: b === "quote"
|
|
166
162
|
}),
|
|
167
|
-
"aria-label":
|
|
163
|
+
"aria-label": r.formatMessage({
|
|
168
164
|
id: "input.text_editor.plugins.toolbar_plugin.blockquote.aria_label",
|
|
169
165
|
defaultMessage: "Add a blockquote"
|
|
170
166
|
}),
|
|
171
167
|
children: /* @__PURE__ */ o(
|
|
172
|
-
|
|
168
|
+
c,
|
|
173
169
|
{
|
|
174
170
|
name: "blockquote",
|
|
175
171
|
width: 24,
|
|
@@ -182,19 +178,18 @@ const he = (l) => {
|
|
|
182
178
|
/* @__PURE__ */ o(
|
|
183
179
|
"button",
|
|
184
180
|
{
|
|
185
|
-
|
|
186
|
-
onMouseDown: i,
|
|
181
|
+
onMouseDown: d,
|
|
187
182
|
onClick: () => O(),
|
|
188
183
|
type: "button",
|
|
189
184
|
className: a(e.toolbarItem, {
|
|
190
185
|
[e.active]: b === "ol"
|
|
191
186
|
}),
|
|
192
|
-
"aria-label":
|
|
187
|
+
"aria-label": r.formatMessage({
|
|
193
188
|
id: "input.text_editor.plugins.toolbar_plugin.numbered_list.aria_label",
|
|
194
189
|
defaultMessage: "Insert a numbered list"
|
|
195
190
|
}),
|
|
196
191
|
children: /* @__PURE__ */ o(
|
|
197
|
-
|
|
192
|
+
c,
|
|
198
193
|
{
|
|
199
194
|
name: "orderedList",
|
|
200
195
|
width: 24,
|
|
@@ -204,20 +199,19 @@ const he = (l) => {
|
|
|
204
199
|
)
|
|
205
200
|
}
|
|
206
201
|
),
|
|
207
|
-
!
|
|
202
|
+
!i.hideSourceAction && /* @__PURE__ */ o(
|
|
208
203
|
"button",
|
|
209
204
|
{
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
onClick: l.onAddSource,
|
|
205
|
+
onMouseDown: d,
|
|
206
|
+
onClick: i.onAddSource,
|
|
213
207
|
type: "button",
|
|
214
208
|
className: e.toolbarItem,
|
|
215
|
-
"aria-label":
|
|
209
|
+
"aria-label": r.formatMessage({
|
|
216
210
|
id: "input.text_editor.plugins.toolbar_plugin.add_link.aria_label",
|
|
217
211
|
defaultMessage: "Add hyperlink"
|
|
218
212
|
}),
|
|
219
213
|
children: /* @__PURE__ */ o(
|
|
220
|
-
|
|
214
|
+
c,
|
|
221
215
|
{
|
|
222
216
|
name: "link",
|
|
223
217
|
width: 20,
|
|
@@ -230,18 +224,18 @@ const he = (l) => {
|
|
|
230
224
|
]
|
|
231
225
|
}
|
|
232
226
|
) : null,
|
|
233
|
-
/* @__PURE__ */ o("div", { className: e.actionButton, children:
|
|
227
|
+
/* @__PURE__ */ o("div", { className: e.actionButton, children: i.hideSubmit ? null : /* @__PURE__ */ o(
|
|
234
228
|
Y,
|
|
235
229
|
{
|
|
236
230
|
type: "button",
|
|
237
231
|
"data-testid": "submit-button",
|
|
238
|
-
handleClick:
|
|
232
|
+
handleClick: i.onSubmit,
|
|
239
233
|
className: a(e.inputSubmitActionButton, e.submitAction),
|
|
240
|
-
"aria-label":
|
|
234
|
+
"aria-label": r.formatMessage({
|
|
241
235
|
id: "input.text_editor.plugins.toolbar_plugin.submit_button.aria_label",
|
|
242
236
|
defaultMessage: "Send message"
|
|
243
237
|
}),
|
|
244
|
-
children: /* @__PURE__ */ o(
|
|
238
|
+
children: /* @__PURE__ */ o(c, { name: "send", width: 20, height: 20 })
|
|
245
239
|
}
|
|
246
240
|
) })
|
|
247
241
|
]
|
|
@@ -249,5 +243,5 @@ const he = (l) => {
|
|
|
249
243
|
);
|
|
250
244
|
};
|
|
251
245
|
export {
|
|
252
|
-
|
|
246
|
+
ge as ToolbarPlugin
|
|
253
247
|
};
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import '../../../assets/components/vote/vote_box/VoteBox.module-
|
|
2
|
-
voteBox:
|
|
3
|
-
voteResultsBox:
|
|
1
|
+
import '../../../assets/components/vote/vote_box/VoteBox.module-uT1IZ6Ag.css';const o = "_voteBox_1k8f1_3", t = "_voteResultsBox_1k8f1_11", e = "_voteResults_1k8f1_11", s = "_voteProgressHeader_1k8f1_22", n = "_voteProgressHeaderAgainst_1k8f1_35", _ = "_voteResultsNumberVoters_1k8f1_39", u = "_voteBoxFooter_1k8f1_47", v = "_voteBoxActions_1k8f1_56", B = "_voteBoxActionsBody_1k8f1_66", c = "_voteBoxActionsBodyColumn_1k8f1_74", r = "_voteAction_1k8f1_78", i = "_buttonAlignLeft_1k8f1_88", l = "_voteButton_1k8f1_92", f = "_textAlignLeft_1k8f1_103", d = "_voteBoxShowResultContainer_1k8f1_107", x = "_voteBoxShowResult_1k8f1_107", k = "_boldShowResult_1k8f1_131", b = "_outlined_1k8f1_136", A = "_voteButtonThesis_1k8f1_143", a = "_voteButtonThesisSynthesisMobile_1k8f1_155", R = "_voteBoxActionsBodyOutlined_1k8f1_194", g = "_voteActionButton_1k8f1_233", h = "_sideIcon_1k8f1_248", m = "_progress_1k8f1_253", y = "_progressBar_1k8f1_259", w = "_voteCommentCounts_1k8f1_276", C = "_debateNumberItem_1k8f1_284", S = "_debateNumberLabel_1k8f1_293", I = "_showResultButton_1k8f1_297", L = "_voteResultInfoText_1k8f1_310", N = {
|
|
2
|
+
voteBox: o,
|
|
3
|
+
voteResultsBox: t,
|
|
4
4
|
voteResults: e,
|
|
5
5
|
voteProgressHeader: s,
|
|
6
6
|
voteProgressHeaderAgainst: n,
|
|
7
7
|
voteResultsNumberVoters: _,
|
|
8
8
|
voteBoxFooter: u,
|
|
9
|
-
voteBoxActions:
|
|
10
|
-
voteBoxActionsBody:
|
|
11
|
-
voteBoxActionsBodyColumn:
|
|
12
|
-
voteAction:
|
|
13
|
-
buttonAlignLeft:
|
|
14
|
-
voteButton:
|
|
15
|
-
textAlignLeft:
|
|
16
|
-
voteBoxShowResultContainer:
|
|
17
|
-
voteBoxShowResult:
|
|
18
|
-
boldShowResult:
|
|
19
|
-
outlined:
|
|
20
|
-
voteButtonThesis:
|
|
21
|
-
voteButtonThesisSynthesisMobile:
|
|
22
|
-
voteBoxActionsBodyOutlined:
|
|
23
|
-
voteActionButton:
|
|
24
|
-
sideIcon:
|
|
25
|
-
progress:
|
|
26
|
-
progressBar:
|
|
27
|
-
voteCommentCounts:
|
|
28
|
-
debateNumberItem:
|
|
29
|
-
debateNumberLabel:
|
|
30
|
-
showResultButton:
|
|
31
|
-
voteResultInfoText:
|
|
9
|
+
voteBoxActions: v,
|
|
10
|
+
voteBoxActionsBody: B,
|
|
11
|
+
voteBoxActionsBodyColumn: c,
|
|
12
|
+
voteAction: r,
|
|
13
|
+
buttonAlignLeft: i,
|
|
14
|
+
voteButton: l,
|
|
15
|
+
textAlignLeft: f,
|
|
16
|
+
voteBoxShowResultContainer: d,
|
|
17
|
+
voteBoxShowResult: x,
|
|
18
|
+
boldShowResult: k,
|
|
19
|
+
outlined: b,
|
|
20
|
+
voteButtonThesis: A,
|
|
21
|
+
voteButtonThesisSynthesisMobile: a,
|
|
22
|
+
voteBoxActionsBodyOutlined: R,
|
|
23
|
+
voteActionButton: g,
|
|
24
|
+
sideIcon: h,
|
|
25
|
+
progress: m,
|
|
26
|
+
progressBar: y,
|
|
27
|
+
voteCommentCounts: w,
|
|
28
|
+
debateNumberItem: C,
|
|
29
|
+
debateNumberLabel: S,
|
|
30
|
+
showResultButton: I,
|
|
31
|
+
voteResultInfoText: L
|
|
32
32
|
};
|
|
33
33
|
export {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
34
|
+
k as boldShowResult,
|
|
35
|
+
i as buttonAlignLeft,
|
|
36
|
+
C as debateNumberItem,
|
|
37
|
+
S as debateNumberLabel,
|
|
38
|
+
N as default,
|
|
39
|
+
b as outlined,
|
|
40
|
+
m as progress,
|
|
41
|
+
y as progressBar,
|
|
42
|
+
I as showResultButton,
|
|
43
|
+
h as sideIcon,
|
|
44
|
+
f as textAlignLeft,
|
|
45
|
+
r as voteAction,
|
|
46
|
+
g as voteActionButton,
|
|
47
|
+
o as voteBox,
|
|
48
|
+
v as voteBoxActions,
|
|
49
|
+
B as voteBoxActionsBody,
|
|
50
|
+
c as voteBoxActionsBodyColumn,
|
|
51
|
+
R as voteBoxActionsBodyOutlined,
|
|
52
52
|
u as voteBoxFooter,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
53
|
+
x as voteBoxShowResult,
|
|
54
|
+
d as voteBoxShowResultContainer,
|
|
55
|
+
l as voteButton,
|
|
56
|
+
A as voteButtonThesis,
|
|
57
|
+
a as voteButtonThesisSynthesisMobile,
|
|
58
|
+
w as voteCommentCounts,
|
|
59
59
|
s as voteProgressHeader,
|
|
60
60
|
n as voteProgressHeaderAgainst,
|
|
61
|
-
|
|
61
|
+
L as voteResultInfoText,
|
|
62
62
|
e as voteResults,
|
|
63
|
-
|
|
63
|
+
t as voteResultsBox,
|
|
64
64
|
_ as voteResultsNumberVoters
|
|
65
65
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._voteBox_1tf6x_3{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;width:100%}._voteResultsBox_1tf6x_11{display:flex!important;flex-direction:column!important;padding:0!important;width:100%}._voteResults_1tf6x_11{padding:0!important}._voteProgressHeader_1tf6x_22{margin-bottom:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important;display:flex!important;align-items:center!important;font-size:var(--font-size-normal, 16px);display:-webkit-box;word-wrap:break-word;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}._voteProgressHeaderAgainst_1tf6x_35{margin-top:var(--spacer-md, calc(var(--space-unit, 1em) * .75))!important}._voteResultsNumberVoters_1tf6x_39{display:flex!important;align-items:center!important;padding:0!important;font-size:var(--font-size-normal, 16px);color:var(--text-secondary, #5F5F5F)}._voteBoxFooter_1tf6x_47{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;margin-top:var(--space-unit, 1em)!important;padding:0!important}._voteBoxActions_1tf6x_56{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center;gap:var(--space-unit, 1em);color:var(--text-secondary, #5F5F5F);width:100%}._voteBoxActionsBody_1tf6x_66{display:grid!important;grid-template-columns:repeat(2,1fr);gap:var(--spacer-md, calc(var(--space-unit, 1em) * .75));padding:0!important;width:100%}._voteBoxActionsBodyColumn_1tf6x_74{grid-template-columns:1fr}._voteAction_1tf6x_78{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;padding:0!important;max-width:100%!important;width:100%!important;text-align:center}._voteAction_1tf6x_78._buttonAlignLeft_1tf6x_88{justify-content:flex-start!important}button._voteButton_1tf6x_92,a._voteButton_1tf6x_92{-webkit-appearance:initial!important;width:100%;-webkit-hyphens:auto;-ms-hyphens:auto;-moz-hyphens:auto;hyphens:auto;padding:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important}._textAlignLeft_1tf6x_103{justify-content:flex-start!important}._voteBoxShowResultContainer_1tf6x_107{display:flex!important;flex-direction:row!important;justify-content:center;flex-wrap:wrap!important;margin-top:.3em}._voteBoxShowResult_1tf6x_107{cursor:pointer}._voteBoxShowResult_1tf6x_107 a{color:inherit;text-decoration:none;background:none!important}._voteBoxShowResult_1tf6x_107 a:hover{text-decoration:none;background:none!important}._voteBoxShowResult_1tf6x_107 a:focus:not(:focus-visible){outline:none;box-shadow:none}._voteBoxShowResult_1tf6x_107 ._boldShowResult_1tf6x_131{font-weight:var(--font-weight-bold, 700);color:var(--text-primary, #222222)}._outlined_1tf6x_136{padding:7px 15px;border-radius:var(--box-border-radius, 6px);border:1px solid var(--text-primary, #222222)!important;white-space:nowrap}._voteButtonThesis_1tf6x_143{display:block;text-align:left;display:-webkit-box;word-wrap:break-word;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}@container (max-width: 767.98px){._voteButtonThesisSynthesisMobile_1tf6x_155{text-align:center!important}}._voteBoxActionsBody_1tf6x_66 ._voteAction_1tf6x_78:first-child ._voteButton_1tf6x_92,._voteBoxActionsBody_1tf6x_66 ._voteAction_1tf6x_78:first-child ._voteButton_1tf6x_92:hover{background-color:var(--for-primary-color, #cc6a6d)!important;border-color:var(--for-primary-color, #cc6a6d)!important;border:1px solid var(--for-primary-color, #cc6a6d)!important}._voteBoxActionsBody_1tf6x_66 ._voteAction_1tf6x_78:nth-child(2) ._voteButton_1tf6x_92{background-color:var(--against-primary-color, #7980bb)!important;border-color:var(--against-primary-color, #7980bb)!important;border:1px solid var(--against-primary-color, #7980bb)!important}._voteBoxActionsBody_1tf6x_66 ._voteAction_1tf6x_78:nth-child(2) ._voteButton_1tf6x_92:hover{background-color:var(--against-primary-color, #7980bb)!important;border-color:var(--against-primary-color, #7980bb)!important;border:1px solid var(--against-primary-color, #7980bb)!important}._voteBoxActionsBody_1tf6x_66 ._voteAction_1tf6x_78:nth-child(3) ._voteButton_1tf6x_92{background-color:var(--text-light, white)!important;color:var(--third-position-color-primary, #9b9b9b)!important;border-color:var(--third-position-color-primary, #9b9b9b)!important;border:1px solid var(--third-position-color-primary, #9b9b9b)!important}._voteBoxActionsBody_1tf6x_66 ._voteAction_1tf6x_78:nth-child(3) ._voteButton_1tf6x_92:hover{background-color:var(--text-light, white)!important;color:var(--third-position-color-primary, #9b9b9b)!important;border-color:var(--third-position-color-primary, #9b9b9b)!important;border:1px solid var(--third-position-color-primary, #9b9b9b)!important}._voteBoxActionsBodyOutlined_1tf6x_194 ._voteAction_1tf6x_78:first-child ._voteButton_1tf6x_92,._voteBoxActionsBodyOutlined_1tf6x_194 ._voteAction_1tf6x_78:first-child ._voteButton_1tf6x_92:hover{background-color:var(--text-light, white)!important;color:var(--for-primary-color, #cc6a6d)!important;border-color:var(--for-primary-color, #cc6a6d)!important;border:1px solid var(--for-primary-color, #cc6a6d)!important}._voteBoxActionsBodyOutlined_1tf6x_194 ._voteAction_1tf6x_78:nth-child(2) ._voteButton_1tf6x_92{background-color:var(--text-light, white)!important;color:var(--against-primary-color, #7980bb)!important;border-color:var(--against-primary-color, #7980bb)!important;border:1px solid var(--against-primary-color, #7980bb)!important}._voteBoxActionsBodyOutlined_1tf6x_194 ._voteAction_1tf6x_78:nth-child(2) ._voteButton_1tf6x_92:hover{background-color:var(--text-light, white)!important;color:var(--against-primary-color, #7980bb)!important;border-color:var(--against-primary-color, #7980bb)!important;border:1px solid var(--against-primary-color, #7980bb)!important}._voteBoxActionsBodyOutlined_1tf6x_194 ._voteAction_1tf6x_78:nth-child(3) ._voteButton_1tf6x_92{background-color:var(--text-light, white)!important;color:var(--third-position-color-primary, #9b9b9b)!important;border-color:var(--third-position-color-primary, #9b9b9b)!important;border:1px solid var(--third-position-color-primary, #9b9b9b)!important}._voteBoxActionsBodyOutlined_1tf6x_194 ._voteAction_1tf6x_78:nth-child(3) ._voteButton_1tf6x_92:hover{background-color:var(--text-light, white)!important;color:var(--third-position-color-primary, #9b9b9b)!important;border-color:var(--third-position-color-primary, #9b9b9b)!important;border:1px solid var(--third-position-color-primary, #9b9b9b)!important}._voteActionButton_1tf6x_233{cursor:pointer;-webkit-appearance:initial!important;background:none;border:none;color:var(--text-secondary, #5F5F5F)!important;font-size:inherit;padding:0;font-weight:var(--font-weight-bold, 700)}._voteActionButton_1tf6x_233:focus:not(:focus-visible){outline:none;box-shadow:none}._sideIcon_1tf6x_248 svg{margin-left:5px;fill:var(--text-primary, #222222)}._progress_1tf6x_253{border-radius:var(--button-border-radius, var(--box-border-radius, 6px));color:var(--text-secondary, #5F5F5F);height:25px}._progressBar_1tf6x_259{border-radius:var(--button-border-radius, var(--box-border-radius, 6px));height:25px}._voteResults_1tf6x_11>div:first-child ._progress_1tf6x_253 ._progressBar_1tf6x_259{background-color:var(--for-primary-color, #cc6a6d)!important}._voteResults_1tf6x_11>div:nth-child(2) ._progress_1tf6x_253 ._progressBar_1tf6x_259{background-color:var(--against-primary-color, #7980bb)!important}._voteResults_1tf6x_11 div:nth-child(3) ._progress_1tf6x_253 ._progressBar_1tf6x_259{background-color:var(--third-position-color-primary, #9b9b9b)!important}._voteCommentCounts_1tf6x_276{display:flex;align-items:center;gap:var(--space-unit, 1em);width:100%;margin-top:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25))!important}._debateNumberItem_1tf6x_284{display:flex;align-items:center;gap:var(--spacer-xxs, calc(var(--space-unit, 1em) * .25));font-size:var(--font-size-normal, 16px);color:var(--text-primary, #222222);white-space:nowrap}._debateNumberLabel_1tf6x_293{white-space:nowrap}._showResultButton_1tf6x_297{background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer}._showResultButton_1tf6x_297:focus:not(:focus-visible){outline:none;box-shadow:none}._voteResultInfoText_1tf6x_310{font-size:var(--font-size-small, 16px);color:var(--text-secondary, #5F5F5F);text-align:left;width:100%;align-self:flex-start}
|