@logora/debate 0.3.88 → 0.3.90
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/argument/argument/Argument.module-gLfNRLks.css +1 -0
- package/dist/assets/components/consultation/consultation_box/ConsultationBox.module-BnTr5IaF.css +1 -0
- package/dist/assets/components/follow/follow_button/FollowButton.module-Da-cPgwT.css +1 -0
- package/dist/assets/components/input/text_editor/{TextEditor.module-CxuSL3l3.css → TextEditor.module-DePSfOvG.css} +1 -1
- package/dist/assets/components/list/paginated_list/action_bar/ActionBar.module-pxwFC_Y2.css +1 -0
- package/dist/assets/components/proposal/proposal_box/ProposalBox.module-T4ms_LQ7.css +1 -0
- package/dist/assets/components/section/section_box/SectionBox.module-DUeUtdWr.css +1 -0
- package/dist/assets/components/source/context_source_list/ContextSourceList.module-D6X_0dB7.css +1 -0
- package/dist/assets/components/source/source_list_item/SourceListItem.module-mTxHhXPV.css +1 -0
- package/dist/assets/components/summary/summary/Summary.module-DjfmUlkW.css +1 -0
- package/dist/assets/components/summary/summary_box/SummaryBox.module-DQVkA8l7.css +1 -0
- package/dist/assets/components/vote/vote_box/VoteBox.module-CDrqb2SZ.css +1 -0
- package/dist/components/argument/argument/Argument.js +106 -111
- package/dist/components/argument/argument/Argument.module.scss.js +31 -31
- package/dist/components/consultation/consultation_box/ConsultationBox.js +111 -80
- package/dist/components/consultation/consultation_box/ConsultationBox.module.scss.js +29 -31
- package/dist/components/dialog/dropdown/Dropdown.js +28 -35
- package/dist/components/follow/follow_button/FollowButton.js +16 -17
- package/dist/components/follow/follow_button/FollowButton.module.scss.js +4 -6
- package/dist/components/icons/bild_icons/index.js +56 -58
- package/dist/components/icons/hero_icons/index.js +18 -20
- package/dist/components/icons/krone_icons/index.js +46 -48
- package/dist/components/icons/regular_icons/index.js +18 -20
- package/dist/components/icons/spiegel_icons/index.js +52 -54
- package/dist/components/icons/stern_icons/index.js +70 -102
- package/dist/components/input/argument_input/ArgumentInput.js +197 -201
- package/dist/components/input/select/Select.js +19 -19
- package/dist/components/input/text_editor/TextEditor.js +129 -143
- package/dist/components/input/text_editor/TextEditor.module.scss.js +5 -5
- package/dist/components/input/text_editor/plugins/FocusPlugin.js +8 -12
- package/dist/components/input/text_editor/plugins/SetContentPlugin.js +13 -13
- package/dist/components/input/text_editor/plugins/SetRichContentPlugin.js +10 -10
- package/dist/components/input/text_editor/plugins/ToolbarPlugin.js +72 -70
- package/dist/components/list/paginated_list/PaginatedList.js +125 -131
- package/dist/components/list/paginated_list/action_bar/ActionBar.js +50 -53
- package/dist/components/list/paginated_list/action_bar/ActionBar.module.scss.js +16 -18
- package/dist/components/notification/notification_menu/NotificationMenu.js +22 -23
- package/dist/components/proposal/proposal_box/ProposalBox.js +59 -70
- package/dist/components/proposal/proposal_box/ProposalBox.module.scss.js +10 -14
- package/dist/components/section/section_box/SectionBox.js +10 -10
- package/dist/components/section/section_box/SectionBox.module.scss.js +9 -9
- package/dist/components/source/context_source_box/ContextSourceBox.js +7 -7
- package/dist/components/source/context_source_list/ContextSourceList.js +13 -10
- package/dist/components/source/context_source_list/ContextSourceList.module.scss.js +12 -14
- package/dist/components/source/source_list_item/SourceListItem.js +28 -42
- package/dist/components/source/source_list_item/SourceListItem.module.scss.js +6 -8
- package/dist/components/source/source_modal/SourceModal.js +15 -15
- package/dist/components/summary/summary/Summary.js +63 -41
- package/dist/components/summary/summary/Summary.module.scss.js +6 -10
- package/dist/components/summary/summary_box/SummaryBox.module.scss.js +9 -9
- package/dist/components/vote/vote_box/VoteBox.js +143 -122
- package/dist/components/vote/vote_box/VoteBox.module.scss.js +48 -50
- package/package.json +1 -1
- package/dist/assets/components/argument/argument/Argument.module-QZdPjj_i.css +0 -1
- package/dist/assets/components/consultation/consultation_box/ConsultationBox.module-DjNiVt-p.css +0 -1
- package/dist/assets/components/follow/follow_button/FollowButton.module-C9YXM8AM.css +0 -1
- package/dist/assets/components/list/paginated_list/action_bar/ActionBar.module-DvwCbS9k.css +0 -1
- package/dist/assets/components/proposal/proposal_box/ProposalBox.module-Dm8XDnr1.css +0 -1
- package/dist/assets/components/section/section_box/SectionBox.module-qQs4B6bf.css +0 -1
- package/dist/assets/components/source/context_source_list/ContextSourceList.module-DUPbI-wb.css +0 -1
- package/dist/assets/components/source/source_list_item/SourceListItem.module-fm_uHuY4.css +0 -1
- package/dist/assets/components/summary/summary/Summary.module-2bnx3egy.css +0 -1
- package/dist/assets/components/summary/summary_box/SummaryBox.module-Dr9PevSJ.css +0 -1
- package/dist/assets/components/vote/vote_box/VoteBox.module-D5sSSHpi.css +0 -1
- package/dist/components/icons/regular_icons/Follow.js +0 -6
- package/dist/components/icons/spiegel_icons/Downvote.js +0 -6
- package/dist/components/icons/spiegel_icons/Upvote.js +0 -6
|
@@ -1,55 +1,75 @@
|
|
|
1
|
-
import { jsx as t, Fragment as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as t, Fragment as d, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import l from "classnames";
|
|
3
3
|
import { useMemo as p } from "react";
|
|
4
|
-
import { useIntl as f, FormattedMessage as
|
|
4
|
+
import { useIntl as f, FormattedMessage as a } from "react-intl";
|
|
5
5
|
import o from "./ConsultationBox.module.scss.js";
|
|
6
|
+
import { useRelativeTime as _ } from "../../hooks/use_relative_time/useRelativeTime.js";
|
|
6
7
|
import { useRoutes as v } from "../../data/config_provider/useRoutes.js";
|
|
7
8
|
import { useResponsive as N } from "../../hooks/use_responsive/useResponsive.js";
|
|
8
|
-
import { Link as
|
|
9
|
-
import { TranslatedContent as
|
|
10
|
-
import {
|
|
11
|
-
import { Icon as d } from "../../icons/icon/Icon.js";
|
|
9
|
+
import { Link as c } from "../../action/link/Link.js";
|
|
10
|
+
import { TranslatedContent as w } from "../../translation/translated_content/TranslatedContent.js";
|
|
11
|
+
import { Icon as m } from "../../icons/icon/Icon.js";
|
|
12
12
|
import { ProgressBar as x } from "../../progress/progress_bar/ProgressBar.js";
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
const D = ({ consultation: e }) => {
|
|
14
|
+
const u = f(), i = p(() => /* @__PURE__ */ new Date()), s = new Date(e.ends_at), g = _(s.getTime()), r = v(), { isMobile: C } = N(), h = () => s < i ? /* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(
|
|
15
|
+
a,
|
|
16
|
+
{
|
|
17
|
+
id: "consultation.consultation_box.consultation_ended",
|
|
18
|
+
defaultMessage: "Consultation ended"
|
|
19
|
+
}
|
|
20
|
+
) }) : /* @__PURE__ */ n(d, { children: [
|
|
21
|
+
/* @__PURE__ */ n("span", { children: [
|
|
17
22
|
/* @__PURE__ */ t(
|
|
18
|
-
|
|
23
|
+
a,
|
|
19
24
|
{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}),
|
|
23
|
-
children: /* @__PURE__ */ t(
|
|
24
|
-
"img",
|
|
25
|
-
{
|
|
26
|
-
loading: "lazy",
|
|
27
|
-
className: o.consultationImage,
|
|
28
|
-
src: e.image_url,
|
|
29
|
-
alt: a.formatMessage({
|
|
30
|
-
id: "consultation.consultation_box.alt",
|
|
31
|
-
defaultMessage: "Presentation image for the consultation"
|
|
32
|
-
})
|
|
33
|
-
}
|
|
34
|
-
)
|
|
25
|
+
id: "consultation.consultation_box.in_progress",
|
|
26
|
+
defaultMessage: "Consultation in progress"
|
|
35
27
|
}
|
|
36
28
|
),
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
id: "consultation.consultation_box.consultation_ended",
|
|
41
|
-
defaultMessage: "Consultation ended"
|
|
42
|
-
}
|
|
43
|
-
) }) })
|
|
29
|
+
" ",
|
|
30
|
+
"-",
|
|
31
|
+
" "
|
|
44
32
|
] }),
|
|
33
|
+
/* @__PURE__ */ t("span", { children: g })
|
|
34
|
+
] });
|
|
35
|
+
return /* @__PURE__ */ t(d, { children: /* @__PURE__ */ n("div", { className: o.container, children: [
|
|
45
36
|
/* @__PURE__ */ t(
|
|
46
|
-
|
|
37
|
+
c,
|
|
47
38
|
{
|
|
48
|
-
to:
|
|
39
|
+
to: r.consultationShowLocation.toUrl({
|
|
40
|
+
consultationSlug: e.slug
|
|
41
|
+
}),
|
|
42
|
+
children: /* @__PURE__ */ t(
|
|
43
|
+
"img",
|
|
44
|
+
{
|
|
45
|
+
loading: "lazy",
|
|
46
|
+
className: o.consultationImage,
|
|
47
|
+
src: e.image_url,
|
|
48
|
+
alt: u.formatMessage({
|
|
49
|
+
id: "consultation.consultation_box.alt",
|
|
50
|
+
defaultMessage: "Presentation image for the consultation"
|
|
51
|
+
})
|
|
52
|
+
}
|
|
53
|
+
)
|
|
54
|
+
}
|
|
55
|
+
),
|
|
56
|
+
e.ends_at && /* @__PURE__ */ t(
|
|
57
|
+
"div",
|
|
58
|
+
{
|
|
59
|
+
className: l(o.consultationTime, {
|
|
60
|
+
[o.ended]: s < i
|
|
61
|
+
}),
|
|
62
|
+
children: h()
|
|
63
|
+
}
|
|
64
|
+
),
|
|
65
|
+
/* @__PURE__ */ t(
|
|
66
|
+
c,
|
|
67
|
+
{
|
|
68
|
+
to: r.consultationShowLocation.toUrl({
|
|
49
69
|
consultationSlug: e.slug
|
|
50
70
|
}),
|
|
51
71
|
children: /* @__PURE__ */ t("div", { className: o.consultationTitle, children: /* @__PURE__ */ t(
|
|
52
|
-
|
|
72
|
+
w,
|
|
53
73
|
{
|
|
54
74
|
originalContent: e.title,
|
|
55
75
|
originalLanguage: e.language,
|
|
@@ -60,61 +80,72 @@ const P = ({ consultation: e, showVoteProgress: u = !0 }) => {
|
|
|
60
80
|
}
|
|
61
81
|
),
|
|
62
82
|
/* @__PURE__ */ t(
|
|
63
|
-
|
|
83
|
+
c,
|
|
64
84
|
{
|
|
65
|
-
to:
|
|
85
|
+
to: r.consultationShowLocation.toUrl({
|
|
66
86
|
consultationSlug: e.slug
|
|
67
|
-
})
|
|
87
|
+
}),
|
|
88
|
+
children: /* @__PURE__ */ n("div", { className: o.consultationButtonContainer, children: [
|
|
89
|
+
e.ends_at && s < i ? /* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(
|
|
90
|
+
a,
|
|
91
|
+
{
|
|
92
|
+
id: "consultation.consultation_box.action_show_result",
|
|
93
|
+
defaultMessage: "Show result"
|
|
94
|
+
}
|
|
95
|
+
) }) : /* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(
|
|
96
|
+
a,
|
|
97
|
+
{
|
|
98
|
+
id: "consultation.consultation_box.action_consultation_participate",
|
|
99
|
+
defaultMessage: "Participate"
|
|
100
|
+
}
|
|
101
|
+
) }),
|
|
102
|
+
/* @__PURE__ */ t(
|
|
103
|
+
m,
|
|
104
|
+
{
|
|
105
|
+
name: "arrow",
|
|
106
|
+
width: 18,
|
|
107
|
+
height: 18,
|
|
108
|
+
className: o.arrowIcon
|
|
109
|
+
}
|
|
110
|
+
)
|
|
111
|
+
] })
|
|
68
112
|
}
|
|
69
113
|
),
|
|
70
|
-
/* @__PURE__ */
|
|
71
|
-
/* @__PURE__ */
|
|
72
|
-
/* @__PURE__ */
|
|
73
|
-
|
|
74
|
-
{
|
|
75
|
-
text: a.formatMessage({
|
|
76
|
-
id: "info.votes_count",
|
|
77
|
-
defaultMessage: "Number of votes"
|
|
78
|
-
}),
|
|
79
|
-
position: "top",
|
|
80
|
-
children: /* @__PURE__ */ s(
|
|
81
|
-
"div",
|
|
82
|
-
{
|
|
83
|
-
className: i(
|
|
84
|
-
o.consultationGroupInformation,
|
|
85
|
-
o.consultationGroupRight
|
|
86
|
-
),
|
|
87
|
-
children: [
|
|
88
|
-
/* @__PURE__ */ t("span", { className: o.consultationTextInformation, children: e.total_votes }),
|
|
89
|
-
/* @__PURE__ */ t(d, { name: "votebox", width: 15, height: 20, className: o.iconVote })
|
|
90
|
-
]
|
|
91
|
-
}
|
|
92
|
-
)
|
|
93
|
-
}
|
|
94
|
-
),
|
|
95
|
-
/* @__PURE__ */ t(
|
|
96
|
-
m,
|
|
114
|
+
/* @__PURE__ */ n("div", { className: o.consultationInformations, children: [
|
|
115
|
+
/* @__PURE__ */ n("div", { className: o.consultationLeft, children: [
|
|
116
|
+
/* @__PURE__ */ n(
|
|
117
|
+
"div",
|
|
97
118
|
{
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
children: /* @__PURE__ */ s("div", { className: o.consultationGroupInformation, children: [
|
|
119
|
+
className: l(
|
|
120
|
+
o.consultationGroupInformation,
|
|
121
|
+
o.consultationGroupRight
|
|
122
|
+
),
|
|
123
|
+
children: [
|
|
104
124
|
/* @__PURE__ */ t("span", { className: o.consultationTextInformation, children: e.proposals_count }),
|
|
105
|
-
/* @__PURE__ */ t(
|
|
106
|
-
]
|
|
125
|
+
/* @__PURE__ */ t(m, { name: "chat", width: 15, height: 20 })
|
|
126
|
+
]
|
|
107
127
|
}
|
|
108
|
-
)
|
|
128
|
+
),
|
|
129
|
+
/* @__PURE__ */ n("div", { className: o.consultationGroupInformation, children: [
|
|
130
|
+
/* @__PURE__ */ t("span", { className: o.consultationTextInformation, children: e.total_participants }),
|
|
131
|
+
/* @__PURE__ */ t(m, { name: "user", width: 15, height: 20 })
|
|
132
|
+
] })
|
|
109
133
|
] }),
|
|
110
|
-
|
|
134
|
+
e.vote_goal > 0 && /* @__PURE__ */ t(
|
|
111
135
|
"div",
|
|
112
136
|
{
|
|
113
|
-
className:
|
|
137
|
+
className: l(
|
|
114
138
|
o.consultationGroupInformation,
|
|
115
139
|
o.progressBarContainer
|
|
116
140
|
),
|
|
117
|
-
children: /* @__PURE__ */ t(
|
|
141
|
+
children: s < i ? /* @__PURE__ */ t(
|
|
142
|
+
a,
|
|
143
|
+
{
|
|
144
|
+
id: "consultation.consultation_box.stats_votes",
|
|
145
|
+
values: { votesCount: e.total_votes },
|
|
146
|
+
defaultMessage: "{votesCount} votes"
|
|
147
|
+
}
|
|
148
|
+
) : /* @__PURE__ */ t(
|
|
118
149
|
x,
|
|
119
150
|
{
|
|
120
151
|
className: o.progress,
|
|
@@ -131,5 +162,5 @@ const P = ({ consultation: e, showVoteProgress: u = !0 }) => {
|
|
|
131
162
|
] }) });
|
|
132
163
|
};
|
|
133
164
|
export {
|
|
134
|
-
|
|
165
|
+
D as ConsultationBox
|
|
135
166
|
};
|
|
@@ -1,37 +1,35 @@
|
|
|
1
|
-
import '../../../assets/components/consultation/consultation_box/ConsultationBox.module-
|
|
2
|
-
container:
|
|
3
|
-
consultationImageBox: o,
|
|
1
|
+
import '../../../assets/components/consultation/consultation_box/ConsultationBox.module-BnTr5IaF.css';const o = "_container_1k9w3_3", n = "_consultationImage_1k9w3_18", t = "_consultationTime_1k9w3_26", s = "_ended_1k9w3_36", a = "_consultationTitle_1k9w3_40", i = "_consultationButtonContainer_1k9w3_49", c = "_arrowIcon_1k9w3_61", r = "_consultationInformations_1k9w3_67", _ = "_consultationLeft_1k9w3_78", e = "_consultationGroupInformation_1k9w3_81", u = "_consultationGroupRight_1k9w3_85", l = "_progressBarContainer_1k9w3_88", w = "_progress_1k9w3_88", k = "_bar_1k9w3_102", m = "_consultationTextInformation_1k9w3_111", I = {
|
|
2
|
+
container: o,
|
|
4
3
|
consultationImage: n,
|
|
5
|
-
consultationTime:
|
|
6
|
-
ended:
|
|
7
|
-
consultationTitle:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
consultationInformations:
|
|
11
|
-
consultationLeft:
|
|
12
|
-
consultationGroupInformation:
|
|
13
|
-
consultationGroupRight:
|
|
14
|
-
progressBarContainer:
|
|
15
|
-
progress:
|
|
16
|
-
bar:
|
|
17
|
-
consultationTextInformation:
|
|
4
|
+
consultationTime: t,
|
|
5
|
+
ended: s,
|
|
6
|
+
consultationTitle: a,
|
|
7
|
+
consultationButtonContainer: i,
|
|
8
|
+
arrowIcon: c,
|
|
9
|
+
consultationInformations: r,
|
|
10
|
+
consultationLeft: _,
|
|
11
|
+
consultationGroupInformation: e,
|
|
12
|
+
consultationGroupRight: u,
|
|
13
|
+
progressBarContainer: l,
|
|
14
|
+
progress: w,
|
|
15
|
+
bar: k,
|
|
16
|
+
consultationTextInformation: m
|
|
18
17
|
};
|
|
19
18
|
export {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
c as arrowIcon,
|
|
20
|
+
k as bar,
|
|
21
|
+
i as consultationButtonContainer,
|
|
22
|
+
e as consultationGroupInformation,
|
|
23
|
+
u as consultationGroupRight,
|
|
23
24
|
n as consultationImage,
|
|
24
|
-
|
|
25
|
-
_ as
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
t as container,
|
|
25
|
+
r as consultationInformations,
|
|
26
|
+
_ as consultationLeft,
|
|
27
|
+
m as consultationTextInformation,
|
|
28
|
+
t as consultationTime,
|
|
29
|
+
a as consultationTitle,
|
|
30
|
+
o as container,
|
|
31
31
|
I as default,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
k as progress,
|
|
36
|
-
m as progressBarContainer
|
|
32
|
+
s as ended,
|
|
33
|
+
w as progress,
|
|
34
|
+
l as progressBarContainer
|
|
37
35
|
};
|
|
@@ -1,50 +1,43 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { useState as
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
className:
|
|
11
|
-
dropdownClassName:
|
|
12
|
-
children:
|
|
1
|
+
import { jsxs as m, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import l from "classnames";
|
|
3
|
+
import { useState as u, useRef as x } from "react";
|
|
4
|
+
import v from "use-onclickoutside";
|
|
5
|
+
import e from "./Dropdown.module.scss.js";
|
|
6
|
+
const y = ({
|
|
7
|
+
onClick: t,
|
|
8
|
+
horizontalPosition: s = "left",
|
|
9
|
+
disabled: p = !1,
|
|
10
|
+
className: i,
|
|
11
|
+
dropdownClassName: n,
|
|
12
|
+
children: d
|
|
13
13
|
}) => {
|
|
14
|
-
const [
|
|
15
|
-
|
|
14
|
+
const [o, r] = u(!1), f = x(null), a = () => {
|
|
15
|
+
p || (t && t(), r(!o));
|
|
16
16
|
};
|
|
17
|
-
return
|
|
18
|
-
const e = (v) => {
|
|
19
|
-
n.current && !n.current.contains(v.target) && o(!1);
|
|
20
|
-
};
|
|
21
|
-
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
22
|
-
}, []), /* @__PURE__ */ w(
|
|
17
|
+
return v(f, () => r(!1)), /* @__PURE__ */ m(
|
|
23
18
|
"div",
|
|
24
19
|
{
|
|
25
|
-
ref:
|
|
26
|
-
className:
|
|
20
|
+
ref: f,
|
|
21
|
+
className: l(e.dropdownWrapper, { [i]: i }),
|
|
27
22
|
children: [
|
|
28
|
-
/* @__PURE__ */
|
|
23
|
+
/* @__PURE__ */ c(
|
|
29
24
|
"button",
|
|
30
25
|
{
|
|
31
26
|
type: "button",
|
|
32
|
-
"aria-expanded":
|
|
33
|
-
className:
|
|
34
|
-
onClick:
|
|
35
|
-
children:
|
|
27
|
+
"aria-expanded": o,
|
|
28
|
+
className: e.dropdownHeader,
|
|
29
|
+
onClick: a,
|
|
30
|
+
children: d[0]
|
|
36
31
|
}
|
|
37
32
|
),
|
|
38
|
-
|
|
33
|
+
o && /* @__PURE__ */ c(
|
|
39
34
|
"div",
|
|
40
35
|
{
|
|
41
|
-
className:
|
|
42
|
-
[
|
|
36
|
+
className: n || l(e.dropdownList, {
|
|
37
|
+
[e[s]]: s
|
|
43
38
|
}),
|
|
44
|
-
onClick: (
|
|
45
|
-
|
|
46
|
-
},
|
|
47
|
-
children: f[1]
|
|
39
|
+
onClick: () => r(!1),
|
|
40
|
+
children: d[1]
|
|
48
41
|
}
|
|
49
42
|
)
|
|
50
43
|
]
|
|
@@ -52,5 +45,5 @@ const k = ({
|
|
|
52
45
|
);
|
|
53
46
|
};
|
|
54
47
|
export {
|
|
55
|
-
|
|
48
|
+
y as Dropdown
|
|
56
49
|
};
|
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as o, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import m from "classnames";
|
|
3
3
|
import "react";
|
|
4
4
|
import { useIntl as c } from "react-intl";
|
|
5
5
|
import e from "./FollowButton.module.scss.js";
|
|
6
|
-
import { useFollow as
|
|
7
|
-
import { Tooltip as
|
|
6
|
+
import { useFollow as w } from "../use_follow/useFollow.js";
|
|
7
|
+
import { Tooltip as p } from "../../dialog/tooltip/Tooltip.js";
|
|
8
8
|
import { Button as u } from "../../action/button/Button.js";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
followableType: i,
|
|
9
|
+
const j = ({
|
|
10
|
+
followableType: a,
|
|
12
11
|
followableId: r,
|
|
13
|
-
tooltipText:
|
|
14
|
-
dataTid:
|
|
12
|
+
tooltipText: i,
|
|
13
|
+
dataTid: f,
|
|
15
14
|
noBorder: l
|
|
16
15
|
}) => {
|
|
17
|
-
const s = c(), { followActive: t, handleFollow: d } =
|
|
18
|
-
|
|
16
|
+
const s = c(), { followActive: t, handleFollow: d } = w(
|
|
17
|
+
a,
|
|
19
18
|
r
|
|
20
19
|
);
|
|
21
|
-
return /* @__PURE__ */ o(
|
|
20
|
+
return /* @__PURE__ */ o(p, { text: i, children: /* @__PURE__ */ n(
|
|
22
21
|
u,
|
|
23
22
|
{
|
|
24
|
-
"data-tid":
|
|
25
|
-
className:
|
|
23
|
+
"data-tid": f,
|
|
24
|
+
className: m(e.followUserButton, {
|
|
26
25
|
[e.followUserButtonNoBorder]: l
|
|
27
26
|
}),
|
|
28
27
|
active: l || t,
|
|
@@ -30,7 +29,7 @@ const B = ({
|
|
|
30
29
|
"data-testid": "button",
|
|
31
30
|
border: !1,
|
|
32
31
|
children: [
|
|
33
|
-
!t && l && /* @__PURE__ */ o("span", { className: e.followIcon, children:
|
|
32
|
+
!t && l && /* @__PURE__ */ o("span", { className: e.followIcon, children: "+" }),
|
|
34
33
|
t ? /* @__PURE__ */ o("span", { "data-testid": "followed", children: s.formatMessage({
|
|
35
34
|
id: "follow.followed",
|
|
36
35
|
defaultMessage: "Followed"
|
|
@@ -38,11 +37,11 @@ const B = ({
|
|
|
38
37
|
id: "follow.follow",
|
|
39
38
|
defaultMessage: "Follow"
|
|
40
39
|
}) }),
|
|
41
|
-
!t && !l && /* @__PURE__ */ o("span", { className: e.followIcon, children:
|
|
40
|
+
!t && !l && /* @__PURE__ */ o("span", { className: e.followIcon, children: "+" })
|
|
42
41
|
]
|
|
43
42
|
}
|
|
44
43
|
) });
|
|
45
44
|
};
|
|
46
45
|
export {
|
|
47
|
-
|
|
46
|
+
j as FollowButton
|
|
48
47
|
};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import '../../../assets/components/follow/follow_button/FollowButton.module-
|
|
1
|
+
import '../../../assets/components/follow/follow_button/FollowButton.module-Da-cPgwT.css';const o = "_followUserButton_6sp8j_3", t = "_followUserButtonNoBorder_6sp8j_12", l = {
|
|
2
2
|
followUserButton: o,
|
|
3
|
-
followUserButtonNoBorder:
|
|
4
|
-
followIcon: t
|
|
3
|
+
followUserButtonNoBorder: t
|
|
5
4
|
};
|
|
6
5
|
export {
|
|
7
|
-
|
|
8
|
-
t as followIcon,
|
|
6
|
+
l as default,
|
|
9
7
|
o as followUserButton,
|
|
10
|
-
|
|
8
|
+
t as followUserButtonNoBorder
|
|
11
9
|
};
|
|
@@ -11,9 +11,9 @@ import { PauseCircle as w } from "./PauseCircle.js";
|
|
|
11
11
|
import { Alarm as b } from "../regular_icons/Alarm.js";
|
|
12
12
|
import { Announcement as L } from "../regular_icons/Announcement.js";
|
|
13
13
|
import { Arrow as B } from "../regular_icons/Arrow.js";
|
|
14
|
-
import { Blockquote as
|
|
15
|
-
import { Bold as
|
|
16
|
-
import { Camera as
|
|
14
|
+
import { Blockquote as v } from "../regular_icons/Blockquote.js";
|
|
15
|
+
import { Bold as D } from "../regular_icons/Bold.js";
|
|
16
|
+
import { Camera as F } from "../regular_icons/Camera.js";
|
|
17
17
|
import { CheckCircle as P } from "../regular_icons/CheckCircle.js";
|
|
18
18
|
import { Checkbox as q } from "../regular_icons/Checkbox.js";
|
|
19
19
|
import { Clock as I } from "../regular_icons/Clock.js";
|
|
@@ -24,39 +24,38 @@ import { Document as J } from "../regular_icons/Document.js";
|
|
|
24
24
|
import { Downvote as W } from "../regular_icons/Downvote.js";
|
|
25
25
|
import { Facebook as Y } from "../regular_icons/Facebook.js";
|
|
26
26
|
import { Flag as _ } from "../regular_icons/Flag.js";
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import { Votebox as Zo } from "../regular_icons/Votebox.js";
|
|
27
|
+
import { Home as oo } from "../regular_icons/Home.js";
|
|
28
|
+
import { Italic as eo } from "../regular_icons/Italic.js";
|
|
29
|
+
import { Link as mo } from "../regular_icons/Link.js";
|
|
30
|
+
import { Logora as xo } from "../regular_icons/Logora.js";
|
|
31
|
+
import { Mail as lo } from "../regular_icons/Mail.js";
|
|
32
|
+
import { MinusCircle as no } from "../regular_icons/MinusCircle.js";
|
|
33
|
+
import { MobileMenu as Co } from "../regular_icons/MobileMenu.js";
|
|
34
|
+
import { Next as so } from "../regular_icons/Next.js";
|
|
35
|
+
import { OpenBlank as ho } from "../regular_icons/OpenBlank.js";
|
|
36
|
+
import { OrderedList as go } from "../regular_icons/OrderedList.js";
|
|
37
|
+
import { Point as So } from "../regular_icons/Point.js";
|
|
38
|
+
import { Question as Ao } from "../regular_icons/Question.js";
|
|
39
|
+
import { Refresh as Mo } from "../regular_icons/Refresh.js";
|
|
40
|
+
import { Reply as Uo } from "../regular_icons/Reply.js";
|
|
41
|
+
import { Search as yo } from "../regular_icons/Search.js";
|
|
42
|
+
import { Send as Eo } from "../regular_icons/Send.js";
|
|
43
|
+
import { Share as Oo } from "../regular_icons/Share.js";
|
|
44
|
+
import { SmallArrow as Ro } from "../regular_icons/SmallArrow.js";
|
|
45
|
+
import { Source as Ho } from "../regular_icons/Source.js";
|
|
46
|
+
import { Suggestion as No } from "../regular_icons/Suggestion.js";
|
|
47
|
+
import { Twitter as To } from "../regular_icons/Twitter.js";
|
|
48
|
+
import { Underline as jo } from "../regular_icons/Underline.js";
|
|
49
|
+
import { Upvote as Go } from "../regular_icons/Upvote.js";
|
|
50
|
+
import { User as Ko } from "../regular_icons/User.js";
|
|
51
|
+
import { Votebox as Xo } from "../regular_icons/Votebox.js";
|
|
53
52
|
export {
|
|
54
53
|
b as Alarm,
|
|
55
54
|
L as Announcement,
|
|
56
55
|
B as Arrow,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
v as Blockquote,
|
|
57
|
+
D as Bold,
|
|
58
|
+
F as Camera,
|
|
60
59
|
e as Chat,
|
|
61
60
|
m as Check,
|
|
62
61
|
P as CheckCircle,
|
|
@@ -73,34 +72,33 @@ export {
|
|
|
73
72
|
C as ExpertBadge,
|
|
74
73
|
Y as Facebook,
|
|
75
74
|
_ as Flag,
|
|
76
|
-
oo as
|
|
77
|
-
eo as
|
|
78
|
-
mo as Italic,
|
|
75
|
+
oo as Home,
|
|
76
|
+
eo as Italic,
|
|
79
77
|
s as LightArrow,
|
|
80
|
-
|
|
78
|
+
mo as Link,
|
|
81
79
|
h as Login,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
xo as Logora,
|
|
81
|
+
lo as Mail,
|
|
82
|
+
no as MinusCircle,
|
|
85
83
|
d as MobileClose,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
84
|
+
Co as MobileMenu,
|
|
85
|
+
so as Next,
|
|
86
|
+
ho as OpenBlank,
|
|
87
|
+
go as OrderedList,
|
|
90
88
|
w as PauseCircle,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
89
|
+
So as Point,
|
|
90
|
+
Ao as Question,
|
|
91
|
+
Mo as Refresh,
|
|
92
|
+
Uo as Reply,
|
|
93
|
+
yo as Search,
|
|
94
|
+
Eo as Send,
|
|
95
|
+
Oo as Share,
|
|
96
|
+
Ro as SmallArrow,
|
|
97
|
+
Ho as Source,
|
|
98
|
+
No as Suggestion,
|
|
99
|
+
To as Twitter,
|
|
100
|
+
jo as Underline,
|
|
101
|
+
Go as Upvote,
|
|
102
|
+
Ko as User,
|
|
103
|
+
Xo as Votebox
|
|
106
104
|
};
|