@logora/debate 0.3.82 → 0.3.84

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.
@@ -0,0 +1 @@
1
+ ._voteBox_iwgj8_3{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;width:100%}._voteResultsBox_iwgj8_11{display:flex!important;flex-direction:column!important;padding:0!important;width:100%}._voteResults_iwgj8_11{padding:0!important}._voteProgressHeader_iwgj8_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_iwgj8_35{margin-top:var(--spacer-md, calc(var(--space-unit, 1em) * .75))!important}._voteResultsNumberVoters_iwgj8_39{display:flex!important;align-items:center!important;padding:0!important;font-size:var(--font-size-normal, 16px);color:var(--text-secondary, #5F5F5F)}._voteBoxFooter_iwgj8_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_iwgj8_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_iwgj8_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_iwgj8_74{grid-template-columns:1fr}._voteAction_iwgj8_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_iwgj8_78._buttonAlignLeft_iwgj8_88{justify-content:flex-start!important}button._voteButton_iwgj8_92,a._voteButton_iwgj8_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_iwgj8_103{justify-content:flex-start!important}._voteBoxShowResultContainer_iwgj8_107{display:flex!important;flex-direction:row!important;justify-content:center;flex-wrap:wrap!important;margin-top:.3em}._voteBoxShowResult_iwgj8_107{cursor:pointer}._voteBoxShowResult_iwgj8_107 a{color:inherit;text-decoration:none;background:none!important}._voteBoxShowResult_iwgj8_107 a:hover{text-decoration:none;background:none!important}._voteBoxShowResult_iwgj8_107 a:focus:not(:focus-visible){outline:none;box-shadow:none}._voteBoxShowResult_iwgj8_107 ._boldShowResult_iwgj8_131{font-weight:var(--font-weight-bold, 700);color:var(--text-primary, #222222)}._outlined_iwgj8_136{padding:7px 15px;border-radius:var(--box-border-radius, 6px);border:1px solid var(--text-primary, #222222)!important;white-space:nowrap}._voteButtonThesis_iwgj8_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_iwgj8_155{text-align:center!important}}._voteBoxActionsBody_iwgj8_66 ._voteAction_iwgj8_78:first-child ._voteButton_iwgj8_92,._voteBoxActionsBody_iwgj8_66 ._voteAction_iwgj8_78:first-child ._voteButton_iwgj8_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_iwgj8_66 ._voteAction_iwgj8_78:nth-child(2) ._voteButton_iwgj8_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_iwgj8_66 ._voteAction_iwgj8_78:nth-child(2) ._voteButton_iwgj8_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_iwgj8_66 ._voteAction_iwgj8_78:nth-child(3) ._voteButton_iwgj8_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_iwgj8_66 ._voteAction_iwgj8_78:nth-child(3) ._voteButton_iwgj8_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_iwgj8_194 ._voteAction_iwgj8_78:first-child ._voteButton_iwgj8_92,._voteBoxActionsBodyOutlined_iwgj8_194 ._voteAction_iwgj8_78:first-child ._voteButton_iwgj8_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_iwgj8_194 ._voteAction_iwgj8_78:nth-child(2) ._voteButton_iwgj8_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_iwgj8_194 ._voteAction_iwgj8_78:nth-child(2) ._voteButton_iwgj8_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_iwgj8_194 ._voteAction_iwgj8_78:nth-child(3) ._voteButton_iwgj8_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_iwgj8_194 ._voteAction_iwgj8_78:nth-child(3) ._voteButton_iwgj8_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_iwgj8_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_iwgj8_233:focus:not(:focus-visible){outline:none;box-shadow:none}._sideIcon_iwgj8_248 svg{margin-left:5px;fill:var(--text-primary, #222222)}._progress_iwgj8_253{border-radius:10px;height:25px;color:var(--text-secondary, #5F5F5F)}._progressBar_iwgj8_259{border-radius:10px;height:25px}._voteResults_iwgj8_11>div:first-child ._progress_iwgj8_253 ._progressBar_iwgj8_259{background-color:var(--for-primary-color, #cc6a6d)!important}._voteResults_iwgj8_11>div:nth-child(2) ._progress_iwgj8_253 ._progressBar_iwgj8_259{background-color:var(--against-primary-color, #7980bb)!important}._voteResults_iwgj8_11 div:nth-child(3) ._progress_iwgj8_253 ._progressBar_iwgj8_259{background-color:var(--third-position-color-primary, #9b9b9b)!important}._voteCommentCounts_iwgj8_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_iwgj8_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_iwgj8_293{white-space:nowrap}._showResultButton_iwgj8_297{background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer}._showResultButton_iwgj8_297:focus:not(:focus-visible){outline:none;box-shadow:none}._voteResultInfoText_iwgj8_310{font-size:var(--font-size-small, 16px);color:var(--text-secondary, #5F5F5F);text-align:left;width:100%;align-self:flex-start}
@@ -1,5 +1,5 @@
1
1
  import { jsx as s, Fragment as pe, jsxs as l } from "react/jsx-runtime";
2
- import Z from "@rooks/use-sessionstorage-state";
2
+ import P from "@rooks/use-sessionstorage-state";
3
3
  import d from "classnames";
4
4
  import { useState as b, useEffect as L } from "react";
5
5
  import { useIntl as _e, FormattedMessage as m } from "react-intl";
@@ -9,8 +9,8 @@ import { useTranslatedContent as k } from "../../translation/translated_content/
9
9
  import { useToast as Ne } from "../../dialog/toast_provider/useToast.js";
10
10
  import { useAuthRequired as Se } from "../../hooks/use_auth_required/useAuthRequired.js";
11
11
  import { useDataProvider as we } from "../../data/data_provider/useDataProvider.js";
12
- import { useConfig as Ce } from "../../data/config_provider/useConfig.js";
13
- import { useAuth as Be } from "../../auth/use_auth/useAuth.js";
12
+ import { useConfig as Be } from "../../data/config_provider/useConfig.js";
13
+ import { useAuth as Ce } from "../../auth/use_auth/useAuth.js";
14
14
  import { Icon as T } from "../../icons/icon/Icon.js";
15
15
  import { ProgressBar as xe } from "../../progress/progress_bar/ProgressBar.js";
16
16
  import { Link as Ve } from "../../action/link/Link.js";
@@ -22,19 +22,19 @@ const We = ({
22
22
  voteableId: h,
23
23
  redirectUrl: S,
24
24
  displayColumn: j,
25
- textAlignLeft: P,
26
- showTotal: ee = !0,
27
- voteBoxClassName: F,
28
- buttonContainerClassName: O,
25
+ textAlignLeft: ee,
26
+ showTotal: te = !0,
27
+ voteBoxClassName: O,
28
+ buttonContainerClassName: F,
29
29
  buttonClassName: E,
30
30
  showResultClassName: I,
31
31
  onVote: w,
32
32
  disabled: M = !1,
33
- showVotesCommentsNumber: te = !1,
34
- commentsCount: oe,
33
+ showVotesCommentsNumber: oe = !1,
34
+ commentsCount: se,
35
35
  hideShowResultButton: U = !1
36
36
  }) => {
37
- const [H, g] = b(!0), [c, A] = b(void 0), [p, f] = b(!1), [u, se] = b(
37
+ const [H, g] = b(!0), [c, A] = b(void 0), [p, f] = b(!1), [u, ae] = b(
38
38
  Number.parseFloat(N.total) || Object.values(N).reduce(
39
39
  (e, t) => e + Number.parseFloat(t),
40
40
  0
@@ -54,10 +54,10 @@ const We = ({
54
54
  r[2]?.language,
55
55
  "name",
56
56
  r[2]?.translation_entries
57
- ), [_, ae, D] = Z(
57
+ ), [_, ne, D] = P(
58
58
  "storedUserVote",
59
59
  {}
60
- ), [Ae, ne, re] = Z("userSide", {}), { toast: G } = Ne() || {}, ie = () => {
60
+ ), [Ae, re, ie] = P("userSide", {}), { toast: G } = Ne() || {}, ce = () => {
61
61
  const e = {};
62
62
  return r?.forEach(
63
63
  (t) => e[t.id] = {
@@ -67,13 +67,13 @@ const We = ({
67
67
  )
68
68
  }
69
69
  ), e;
70
- }, [i, W] = b(ie()), z = Se(), ce = be(), R = we(), le = Ce(), C = _e(), { isLoggedIn: B, isLoggingIn: J } = Be();
70
+ }, [i, W] = b(ce()), z = Se(), le = be(), y = we(), J = Be(), B = _e(), { isLoggedIn: C, isLoggingIn: K } = Ce();
71
71
  L(() => {
72
- J === !1 && (B ? ue(h) : g(!1));
73
- }, [J, B]), L(() => {
72
+ K === !1 && (C ? ue(h) : g(!1));
73
+ }, [K, C]), L(() => {
74
74
  if (H === !1 && !S) {
75
75
  const [e, t] = de();
76
- e && (t ? Q(t) : f(!0));
76
+ e && (t ? X(t) : f(!0));
77
77
  }
78
78
  }, [H]), L(() => {
79
79
  w && w(c);
@@ -82,11 +82,11 @@ const We = ({
82
82
  if (_ && Object.keys(_).length !== 0)
83
83
  return _.groupId === h && _.voteableType === v ? [!0, _.positionId] : (D(), [!1, !1]);
84
84
  const e = new URLSearchParams(
85
- typeof window < "u" ? window.location.search : ce.search
85
+ typeof window < "u" ? window.location.search : le.search
86
86
  ), t = !!e.get("initVote"), a = Number.parseInt(e.get("positionId")) || !1;
87
87
  return [t, a];
88
88
  }, ue = (e) => {
89
- g(!0), w && w(c), R.getOneWithToken("votes", `${v.toLowerCase()}/${e}`, {}).then((t) => {
89
+ g(!0), w && w(c), y.getOneWithToken("votes", `${v.toLowerCase()}/${e}`, {}).then((t) => {
90
90
  t.data.data.resource ? (A(t.data.data.resource), f(!0), g(!1)) : (g(!1), f(!1));
91
91
  }).catch((t) => {
92
92
  g(!1);
@@ -97,21 +97,21 @@ const We = ({
97
97
  voteable_type: v || "Group",
98
98
  position_id: e
99
99
  };
100
- ne({
100
+ re({
101
101
  groupId: h,
102
102
  voteableType: v,
103
103
  positionId: e
104
- }), c ? (ve(e, c.position_id), p === !1 && y(), e !== c.position_id && R.update("votes", c.id, t).then((n) => {
104
+ }), c ? (ve(e, c.position_id), p === !1 && R(), e !== c.position_id && y.update("votes", c.id, t).then((n) => {
105
105
  n.data.success && (A(n.data.data.resource), G(
106
- C.formatMessage({
106
+ B.formatMessage({
107
107
  id: "header.vote_confirm_modal",
108
108
  defaultMessage: "Your vote has been saved !"
109
109
  }),
110
110
  { type: "success" }
111
111
  ));
112
- })) : (fe(e), y(), R.create("votes", t).then((n) => {
112
+ })) : (fe(e), R(), y.create("votes", t).then((n) => {
113
113
  n.data.success && (A(n.data.data.resource), G(
114
- C.formatMessage({
114
+ B.formatMessage({
115
115
  id: "header.vote_confirm_modal",
116
116
  defaultMessage: "Your vote has been saved !"
117
117
  }),
@@ -127,13 +127,13 @@ const We = ({
127
127
  percentage: x(t, a)
128
128
  };
129
129
  else {
130
- const X = i[V.id].count;
130
+ const Z = i[V.id].count;
131
131
  n[V.id] = {
132
- count: X,
133
- percentage: x(X, a)
132
+ count: Z,
133
+ percentage: x(Z, a)
134
134
  };
135
135
  }
136
- }), W(n), se(a);
136
+ }), W(n), ae(a);
137
137
  }, ve = (e, t) => {
138
138
  if (t !== e) {
139
139
  const a = {
@@ -155,20 +155,20 @@ const We = ({
155
155
  };
156
156
  W(a);
157
157
  }
158
- }, K = (e) => {
158
+ }, Q = (e) => {
159
159
  const t = new URLSearchParams({
160
160
  initVote: "true",
161
161
  ...e && { positionId: e }
162
162
  });
163
163
  return S + `?${t.toString()}`;
164
- }, Q = (e) => {
165
- B ? Object.keys(i).includes(e.toString()) && (me(e), D()) : (Object.keys(i).includes(e.toString()) && ae({
164
+ }, X = (e) => {
165
+ C ? Object.keys(i).includes(e.toString()) && (me(e), D()) : (Object.keys(i).includes(e.toString()) && ne({
166
166
  groupId: h,
167
167
  voteableType: v,
168
168
  positionId: e
169
169
  }), z({ loginAction: "vote" }));
170
- }, y = () => {
171
- p && re(), f(!p);
170
+ }, R = () => {
171
+ p && ie(), f(!p);
172
172
  }, he = (e, t) => {
173
173
  let a;
174
174
  t === 0 ? a = $.translatedContent : t === 1 ? a = q.translatedContent : t === 2 && (a = Y.translatedContent);
@@ -186,13 +186,13 @@ const We = ({
186
186
  type: "button",
187
187
  title: a,
188
188
  className: d(o.voteButton, {
189
- [o.textAlignLeft]: P,
189
+ [o.textAlignLeft]: ee,
190
190
  [E]: E
191
191
  }),
192
- onClick: n ? () => Q(e.id) : null,
192
+ onClick: n ? () => X(e.id) : null,
193
193
  disabled: M,
194
194
  "data-testid": "voteButton",
195
- to: n ? null : K(e.id),
195
+ to: n ? null : Q(e.id),
196
196
  target: n ? null : "_top",
197
197
  rel: n ? null : "nofollow",
198
198
  external: n ? null : !0,
@@ -212,12 +212,12 @@ const We = ({
212
212
  t
213
213
  );
214
214
  }, ge = () => {
215
- B || le.actions?.unloggedVoteResults === !0 ? f(!0) : z({ loginAction: "vote" });
215
+ C || J.actions?.unloggedVoteResults === !0 ? f(!0) : z({ loginAction: "vote" });
216
216
  };
217
217
  return /* @__PURE__ */ s(
218
218
  "div",
219
219
  {
220
- className: d(o.voteBox, { [F]: F }),
220
+ className: d(o.voteBox, { [O]: O }),
221
221
  children: /* @__PURE__ */ s(pe, { children: p || M ? /* @__PURE__ */ l("div", { className: o.voteResultsBox, "data-testid": "voteResultsBox", children: [
222
222
  /* @__PURE__ */ s("div", { className: o.voteResults, children: r.map((e, t) => {
223
223
  let a;
@@ -235,7 +235,7 @@ const We = ({
235
235
  c && c.position_id === e.id ? /* @__PURE__ */ s(
236
236
  "span",
237
237
  {
238
- title: C.formatMessage({
238
+ title: B.formatMessage({
239
239
  id: "vote.vote_box.vote_side"
240
240
  }) + a,
241
241
  className: o.sideIcon,
@@ -262,7 +262,7 @@ const We = ({
262
262
  ] }, t);
263
263
  }) }),
264
264
  /* @__PURE__ */ l("div", { className: o.voteBoxFooter, children: [
265
- ee && /* @__PURE__ */ s("div", { className: o.voteResultsNumberVoters, children: /* @__PURE__ */ s(
265
+ te && /* @__PURE__ */ s("div", { className: o.voteResultsNumberVoters, children: /* @__PURE__ */ s(
266
266
  m,
267
267
  {
268
268
  id: "vote.vote_box.votes",
@@ -276,7 +276,7 @@ const We = ({
276
276
  "data-tid": "action_edit_vote",
277
277
  className: o.voteActionButton,
278
278
  type: "button",
279
- onClick: y,
279
+ onClick: R,
280
280
  children: /* @__PURE__ */ s(
281
281
  m,
282
282
  {
@@ -307,14 +307,15 @@ const We = ({
307
307
  {
308
308
  className: d(o.voteBoxActionsBody, {
309
309
  [o.voteBoxActionsBodyColumn]: j,
310
- [O]: O
310
+ [o.voteBoxActionsBodyOutlined]: J.layout?.outlinedVoteButtons,
311
+ [F]: F
311
312
  }),
312
313
  children: r.map(
313
314
  (e, t) => he(e, t)
314
315
  )
315
316
  }
316
317
  ),
317
- te && /* @__PURE__ */ l("div", { className: o.voteCommentCounts, children: [
318
+ oe && /* @__PURE__ */ l("div", { className: o.voteCommentCounts, children: [
318
319
  /* @__PURE__ */ l("div", { className: o.debateNumberItem, children: [
319
320
  /* @__PURE__ */ s(T, { name: "votebox", width: 20, height: 20 }),
320
321
  /* @__PURE__ */ s("div", { className: o.debateNumberLabel, children: /* @__PURE__ */ s(
@@ -332,7 +333,7 @@ const We = ({
332
333
  m,
333
334
  {
334
335
  id: "vote.vote_box.comments",
335
- values: { count: oe ?? 0 },
336
+ values: { count: se ?? 0 },
336
337
  defaultMessage: "{count} comments"
337
338
  }
338
339
  ) })
@@ -346,7 +347,7 @@ const We = ({
346
347
  o.voteBoxShowResultContainer,
347
348
  { [I]: I }
348
349
  ),
349
- children: /* @__PURE__ */ s("div", { className: o.voteBoxShowResult, children: U ? !p && /* @__PURE__ */ s("div", { className: o.voteResultInfoText, children: C.formatMessage({
350
+ children: /* @__PURE__ */ s("div", { className: o.voteBoxShowResult, children: U ? !p && /* @__PURE__ */ s("div", { className: o.voteResultInfoText, children: B.formatMessage({
350
351
  id: "vote.vote_box.result_after_vote",
351
352
  defaultMessage: "Le résultat s'affichera après le vote."
352
353
  }) }) : typeof window < "u" && !S ? /* @__PURE__ */ s(
@@ -368,7 +369,7 @@ const We = ({
368
369
  ) : /* @__PURE__ */ s(
369
370
  Ve,
370
371
  {
371
- to: K(null),
372
+ to: Q(null),
372
373
  rel: "nofollow",
373
374
  "data-tid": "show_vote_result",
374
375
  target: "_top",
@@ -1,63 +1,65 @@
1
- import '../../../assets/components/vote/vote_box/VoteBox.module-C9Q6gBw3.css';const t = "_voteBox_e0cdc_3", o = "_voteResultsBox_e0cdc_11", e = "_voteResults_e0cdc_11", s = "_voteProgressHeader_e0cdc_22", c = "_voteProgressHeaderAgainst_e0cdc_35", n = "_voteResultsNumberVoters_e0cdc_39", _ = "_voteBoxFooter_e0cdc_47", u = "_voteBoxActions_e0cdc_56", d = "_voteBoxActionsBody_e0cdc_66", v = "_voteBoxActionsBodyColumn_e0cdc_74", r = "_voteAction_e0cdc_78", B = "_buttonAlignLeft_e0cdc_88", l = "_voteButton_e0cdc_92", i = "_textAlignLeft_e0cdc_103", x = "_voteBoxShowResultContainer_e0cdc_107", b = "_voteBoxShowResult_e0cdc_107", a = "_boldShowResult_e0cdc_131", A = "_outlined_e0cdc_136", R = "_voteButtonThesis_e0cdc_143", g = "_voteButtonThesisSynthesisMobile_e0cdc_155", h = "_voteActionButton_e0cdc_194", m = "_sideIcon_e0cdc_209", w = "_progress_e0cdc_214", C = "_progressBar_e0cdc_220", S = "_voteCommentCounts_e0cdc_237", f = "_debateNumberItem_e0cdc_245", y = "_debateNumberLabel_e0cdc_254", I = "_showResultButton_e0cdc_258", L = "_voteResultInfoText_e0cdc_271", N = {
2
- voteBox: t,
3
- voteResultsBox: o,
1
+ import '../../../assets/components/vote/vote_box/VoteBox.module-D5sSSHpi.css';const o = "_voteBox_iwgj8_3", t = "_voteResultsBox_iwgj8_11", e = "_voteResults_iwgj8_11", s = "_voteProgressHeader_iwgj8_22", n = "_voteProgressHeaderAgainst_iwgj8_35", _ = "_voteResultsNumberVoters_iwgj8_39", i = "_voteBoxFooter_iwgj8_47", u = "_voteBoxActions_iwgj8_56", v = "_voteBoxActionsBody_iwgj8_66", B = "_voteBoxActionsBodyColumn_iwgj8_74", c = "_voteAction_iwgj8_78", r = "_buttonAlignLeft_iwgj8_88", g = "_voteButton_iwgj8_92", l = "_textAlignLeft_iwgj8_103", w = "_voteBoxShowResultContainer_iwgj8_107", d = "_voteBoxShowResult_iwgj8_107", x = "_boldShowResult_iwgj8_131", j = "_outlined_iwgj8_136", b = "_voteButtonThesis_iwgj8_143", A = "_voteButtonThesisSynthesisMobile_iwgj8_155", a = "_voteBoxActionsBodyOutlined_iwgj8_194", R = "_voteActionButton_iwgj8_233", h = "_sideIcon_iwgj8_248", m = "_progress_iwgj8_253", y = "_progressBar_iwgj8_259", C = "_voteCommentCounts_iwgj8_276", S = "_debateNumberItem_iwgj8_284", f = "_debateNumberLabel_iwgj8_293", I = "_showResultButton_iwgj8_297", L = "_voteResultInfoText_iwgj8_310", N = {
2
+ voteBox: o,
3
+ voteResultsBox: t,
4
4
  voteResults: e,
5
5
  voteProgressHeader: s,
6
- voteProgressHeaderAgainst: c,
7
- voteResultsNumberVoters: n,
8
- voteBoxFooter: _,
6
+ voteProgressHeaderAgainst: n,
7
+ voteResultsNumberVoters: _,
8
+ voteBoxFooter: i,
9
9
  voteBoxActions: u,
10
- voteBoxActionsBody: d,
11
- voteBoxActionsBodyColumn: v,
12
- voteAction: r,
13
- buttonAlignLeft: B,
14
- voteButton: l,
15
- textAlignLeft: i,
16
- voteBoxShowResultContainer: x,
17
- voteBoxShowResult: b,
18
- boldShowResult: a,
19
- outlined: A,
20
- voteButtonThesis: R,
21
- voteButtonThesisSynthesisMobile: g,
22
- voteActionButton: h,
23
- sideIcon: m,
24
- progress: w,
25
- progressBar: C,
26
- voteCommentCounts: S,
27
- debateNumberItem: f,
28
- debateNumberLabel: y,
10
+ voteBoxActionsBody: v,
11
+ voteBoxActionsBodyColumn: B,
12
+ voteAction: c,
13
+ buttonAlignLeft: r,
14
+ voteButton: g,
15
+ textAlignLeft: l,
16
+ voteBoxShowResultContainer: w,
17
+ voteBoxShowResult: d,
18
+ boldShowResult: x,
19
+ outlined: j,
20
+ voteButtonThesis: b,
21
+ voteButtonThesisSynthesisMobile: A,
22
+ voteBoxActionsBodyOutlined: a,
23
+ voteActionButton: R,
24
+ sideIcon: h,
25
+ progress: m,
26
+ progressBar: y,
27
+ voteCommentCounts: C,
28
+ debateNumberItem: S,
29
+ debateNumberLabel: f,
29
30
  showResultButton: I,
30
31
  voteResultInfoText: L
31
32
  };
32
33
  export {
33
- a as boldShowResult,
34
- B as buttonAlignLeft,
35
- f as debateNumberItem,
36
- y as debateNumberLabel,
34
+ x as boldShowResult,
35
+ r as buttonAlignLeft,
36
+ S as debateNumberItem,
37
+ f as debateNumberLabel,
37
38
  N as default,
38
- A as outlined,
39
- w as progress,
40
- C as progressBar,
39
+ j as outlined,
40
+ m as progress,
41
+ y as progressBar,
41
42
  I as showResultButton,
42
- m as sideIcon,
43
- i as textAlignLeft,
44
- r as voteAction,
45
- h as voteActionButton,
46
- t as voteBox,
43
+ h as sideIcon,
44
+ l as textAlignLeft,
45
+ c as voteAction,
46
+ R as voteActionButton,
47
+ o as voteBox,
47
48
  u as voteBoxActions,
48
- d as voteBoxActionsBody,
49
- v as voteBoxActionsBodyColumn,
50
- _ as voteBoxFooter,
51
- b as voteBoxShowResult,
52
- x as voteBoxShowResultContainer,
53
- l as voteButton,
54
- R as voteButtonThesis,
55
- g as voteButtonThesisSynthesisMobile,
56
- S as voteCommentCounts,
49
+ v as voteBoxActionsBody,
50
+ B as voteBoxActionsBodyColumn,
51
+ a as voteBoxActionsBodyOutlined,
52
+ i as voteBoxFooter,
53
+ d as voteBoxShowResult,
54
+ w as voteBoxShowResultContainer,
55
+ g as voteButton,
56
+ b as voteButtonThesis,
57
+ A as voteButtonThesisSynthesisMobile,
58
+ C as voteCommentCounts,
57
59
  s as voteProgressHeader,
58
- c as voteProgressHeaderAgainst,
60
+ n as voteProgressHeaderAgainst,
59
61
  L as voteResultInfoText,
60
62
  e as voteResults,
61
- o as voteResultsBox,
62
- n as voteResultsNumberVoters
63
+ t as voteResultsBox,
64
+ _ as voteResultsNumberVoters
63
65
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logora/debate",
3
- "version": "0.3.82",
3
+ "version": "0.3.84",
4
4
  "type": "module",
5
5
  "license": "AGPL-3.0",
6
6
  "description": "Design system of @Logora made with React",
@@ -1 +0,0 @@
1
- ._voteBox_e0cdc_3{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;width:100%}._voteResultsBox_e0cdc_11{display:flex!important;flex-direction:column!important;padding:0!important;width:100%}._voteResults_e0cdc_11{padding:0!important}._voteProgressHeader_e0cdc_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_e0cdc_35{margin-top:var(--spacer-md, calc(var(--space-unit, 1em) * .75))!important}._voteResultsNumberVoters_e0cdc_39{display:flex!important;align-items:center!important;padding:0!important;font-size:var(--font-size-normal, 16px);color:var(--text-secondary, #5F5F5F)}._voteBoxFooter_e0cdc_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_e0cdc_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_e0cdc_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_e0cdc_74{grid-template-columns:1fr}._voteAction_e0cdc_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_e0cdc_78._buttonAlignLeft_e0cdc_88{justify-content:flex-start!important}button._voteButton_e0cdc_92,a._voteButton_e0cdc_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_e0cdc_103{justify-content:flex-start!important}._voteBoxShowResultContainer_e0cdc_107{display:flex!important;flex-direction:row!important;justify-content:center;flex-wrap:wrap!important;margin-top:.3em}._voteBoxShowResult_e0cdc_107{cursor:pointer}._voteBoxShowResult_e0cdc_107 a{color:inherit;text-decoration:none;background:none!important}._voteBoxShowResult_e0cdc_107 a:hover{text-decoration:none;background:none!important}._voteBoxShowResult_e0cdc_107 a:focus:not(:focus-visible){outline:none;box-shadow:none}._voteBoxShowResult_e0cdc_107 ._boldShowResult_e0cdc_131{font-weight:var(--font-weight-bold, 700);color:var(--text-primary, #222222)}._outlined_e0cdc_136{padding:7px 15px;border-radius:var(--box-border-radius, 6px);border:1px solid var(--text-primary, #222222)!important;white-space:nowrap}._voteButtonThesis_e0cdc_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_e0cdc_155{text-align:center!important}}._voteBoxActionsBody_e0cdc_66 ._voteAction_e0cdc_78:first-child ._voteButton_e0cdc_92,._voteBoxActionsBody_e0cdc_66 ._voteAction_e0cdc_78:first-child ._voteButton_e0cdc_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_e0cdc_66 ._voteAction_e0cdc_78:nth-child(2) ._voteButton_e0cdc_92{background-color:var(--against-primary-color, #7980bb)!important;border-color:var(--against-primary-color, #7980bb)!important;border:1px var(--against-primary-color, #7980bb)!important}._voteBoxActionsBody_e0cdc_66 ._voteAction_e0cdc_78:nth-child(2) ._voteButton_e0cdc_92:hover{background-color:var(--against-primary-color, #7980bb)!important;border-color:var(--against-primary-color, #7980bb)!important;border:1px var(--against-primary-color, #7980bb)!important}._voteBoxActionsBody_e0cdc_66 ._voteAction_e0cdc_78:nth-child(3) ._voteButton_e0cdc_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_e0cdc_66 ._voteAction_e0cdc_78:nth-child(3) ._voteButton_e0cdc_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_e0cdc_194{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_e0cdc_194:focus:not(:focus-visible){outline:none;box-shadow:none}._sideIcon_e0cdc_209 svg{margin-left:5px;fill:var(--text-primary, #222222)}._progress_e0cdc_214{border-radius:10px;height:25px;color:var(--text-secondary, #5F5F5F)}._progressBar_e0cdc_220{border-radius:10px;height:25px}._voteResults_e0cdc_11>div:first-child ._progress_e0cdc_214 ._progressBar_e0cdc_220{background-color:var(--for-primary-color, #cc6a6d)!important}._voteResults_e0cdc_11>div:nth-child(2) ._progress_e0cdc_214 ._progressBar_e0cdc_220{background-color:var(--against-primary-color, #7980bb)!important}._voteResults_e0cdc_11 div:nth-child(3) ._progress_e0cdc_214 ._progressBar_e0cdc_220{background-color:var(--third-position-color-primary, #9b9b9b)!important}._voteCommentCounts_e0cdc_237{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_e0cdc_245{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_e0cdc_254{white-space:nowrap}._showResultButton_e0cdc_258{background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer}._showResultButton_e0cdc_258:focus:not(:focus-visible){outline:none;box-shadow:none}._voteResultInfoText_e0cdc_271{font-size:var(--font-size-small, 16px);color:var(--text-secondary, #5F5F5F);text-align:left;width:100%;align-self:flex-start}