@logora/debate 0.3.85 → 0.3.87
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/list/paginated_list/action_bar/ActionBar.module-DvwCbS9k.css +1 -0
- package/dist/components/list/paginated_list/PaginatedList.js +2 -2
- package/dist/components/list/paginated_list/action_bar/ActionBar.js +24 -26
- package/dist/components/list/paginated_list/action_bar/ActionBar.module.scss.js +12 -12
- package/package.json +1 -1
- package/dist/assets/components/list/paginated_list/action_bar/ActionBar.module-VuCq918p.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._listHeader_un1z2_3{display:flex;justify-content:space-between;align-items:center;position:relative;flex-wrap:wrap;gap:var(--space-unit, 1em)}@container (max-width: 575.98px){._listHeader_un1z2_3{flex-direction:column;align-items:flex-start}._listHeader_un1z2_3._listHeaderOneItem_un1z2_16{flex-direction:row;align-items:center;flex-wrap:nowrap!important}}._listTitle_un1z2_23{font-size:var(--font-size-extra-large, 22px);line-height:var(--line-height-tight, 1.08em);font-weight:var(--font-weight-bold, 700);font-family:var(--title-font-family, var(--font-family, "Montserrat"))}._listSubtitle_un1z2_30{color:var(--text-secondary, #5F5F5F);font-weight:var(--font-weight-normal, 400);font-size:var(--font-size-normal, 16px);margin-top:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))}._rightBar_un1z2_37{display:flex;gap:var(--space-unit, 1em);flex-wrap:wrap}@container (max-width: 575.98px){._rightBar_un1z2_37{width:100%;justify-content:space-between}._rightBar_un1z2_37._rightBarOneItem_un1z2_47{justify-content:flex-end}}._rightBar_un1z2_37{flex:1 1 auto;justify-content:flex-end;align-items:center;flex-direction:row}._search_un1z2_58{flex:1;max-width:35%}@container (max-width: 575.98px){._search_un1z2_58{max-width:80%}}._tagList_un1z2_68{display:flex;flex-direction:row;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;gap:var(--spacer-md, calc(var(--space-unit, 1em) * .75));padding-bottom:var(--spacer-md, calc(var(--space-unit, 1em) * .75))}@container (max-width: 575.98px){._tagList_un1z2_68{gap:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))}}._tagItem_un1z2_83{display:flex!important;color:var(--text-secondary, #5F5F5F);cursor:pointer;white-space:nowrap}._select_un1z2_90{max-width:300px}@container (max-width: 575.98px){._select_un1z2_90{max-width:300px}}
|
|
@@ -40,7 +40,7 @@ const ft = ({
|
|
|
40
40
|
searchBar: ce = !1,
|
|
41
41
|
title: ue,
|
|
42
42
|
subtitle: Ee,
|
|
43
|
-
|
|
43
|
+
showDebateConsultationSubtitle: ge = !1,
|
|
44
44
|
emptyListComponent: z,
|
|
45
45
|
emptyText: G,
|
|
46
46
|
display: V,
|
|
@@ -190,7 +190,7 @@ const ft = ({
|
|
|
190
190
|
{
|
|
191
191
|
title: ue,
|
|
192
192
|
subtitle: Ee,
|
|
193
|
-
|
|
193
|
+
showDebateConsultationSubtitle: ge,
|
|
194
194
|
sortOptions: i,
|
|
195
195
|
defaultSelectOption: ke,
|
|
196
196
|
searchBar: ce,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as i, Fragment as h, jsxs as
|
|
1
|
+
import { jsx as i, Fragment as h, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import u from "classnames";
|
|
3
3
|
import { useState as j } from "react";
|
|
4
4
|
import { useIntl as H } from "react-intl";
|
|
@@ -10,15 +10,15 @@ import { Select as z } from "../../../input/select/Select.js";
|
|
|
10
10
|
import { Tag as D } from "../../../tag/tag/Tag.js";
|
|
11
11
|
import { Icon as F } from "../../../icons/icon/Icon.js";
|
|
12
12
|
const Z = ({
|
|
13
|
-
title:
|
|
13
|
+
title: n,
|
|
14
14
|
subtitle: f,
|
|
15
|
-
|
|
15
|
+
showDebateConsultationSubtitle: p = !1,
|
|
16
16
|
sortOptions: a,
|
|
17
17
|
defaultSelectOption: v,
|
|
18
|
-
searchBar:
|
|
19
|
-
tagList:
|
|
20
|
-
activeTagId:
|
|
21
|
-
withUrlParams:
|
|
18
|
+
searchBar: o = !1,
|
|
19
|
+
tagList: c,
|
|
20
|
+
activeTagId: r,
|
|
21
|
+
withUrlParams: d = !1,
|
|
22
22
|
onSearch: S,
|
|
23
23
|
onSortChange: g,
|
|
24
24
|
onTagChange: I
|
|
@@ -26,10 +26,10 @@ const Z = ({
|
|
|
26
26
|
const N = H(), x = R(), { isMobile: L } = T(), [y, A] = j(!1), s = new URLSearchParams(
|
|
27
27
|
typeof window < "u" ? window.location.search : x.search
|
|
28
28
|
), b = (e) => {
|
|
29
|
-
if (
|
|
30
|
-
for (const
|
|
29
|
+
if (d) {
|
|
30
|
+
for (const t of s.keys())
|
|
31
31
|
a.map((M) => {
|
|
32
|
-
M.name ===
|
|
32
|
+
M.name === t && s.delete(t);
|
|
33
33
|
});
|
|
34
34
|
s.delete("sort"), s.set(
|
|
35
35
|
e.type === "filter" ? e.name : "sort",
|
|
@@ -38,11 +38,11 @@ const Z = ({
|
|
|
38
38
|
}
|
|
39
39
|
g(e);
|
|
40
40
|
}, w = (e) => {
|
|
41
|
-
|
|
41
|
+
d && (e.id === r ? s.delete("tagId") : s.set("tagId", e.id)), I(e.id === r ? null : e.id);
|
|
42
42
|
}, k = (e) => {
|
|
43
|
-
|
|
43
|
+
d && (e ? s.set("search", e) : s.delete("search")), S(e), A(e !== "");
|
|
44
44
|
}, C = (e) => {
|
|
45
|
-
const
|
|
45
|
+
const t = r === e.id;
|
|
46
46
|
return /* @__PURE__ */ i(
|
|
47
47
|
"div",
|
|
48
48
|
{
|
|
@@ -52,34 +52,31 @@ const Z = ({
|
|
|
52
52
|
D,
|
|
53
53
|
{
|
|
54
54
|
text: e.display_name,
|
|
55
|
-
active:
|
|
56
|
-
rightIcon:
|
|
55
|
+
active: t,
|
|
56
|
+
rightIcon: t && /* @__PURE__ */ i(F, { name: "close", height: 10, width: 10 })
|
|
57
57
|
}
|
|
58
58
|
)
|
|
59
59
|
},
|
|
60
60
|
e.id
|
|
61
61
|
);
|
|
62
62
|
};
|
|
63
|
-
return /* @__PURE__ */ i(h, { children: (
|
|
64
|
-
/* @__PURE__ */
|
|
63
|
+
return /* @__PURE__ */ i(h, { children: (n || a || o) && /* @__PURE__ */ m(h, { children: [
|
|
64
|
+
/* @__PURE__ */ m(
|
|
65
65
|
"div",
|
|
66
66
|
{
|
|
67
67
|
className: u(l.listHeader, {
|
|
68
|
-
[l.listHeaderOneItem]: !
|
|
68
|
+
[l.listHeaderOneItem]: !o || !a
|
|
69
69
|
}),
|
|
70
70
|
children: [
|
|
71
|
-
/* @__PURE__ */
|
|
72
|
-
|
|
73
|
-
p && f && /* @__PURE__ */ i("div", { className: l.listSubtitle, children: f })
|
|
74
|
-
] }),
|
|
75
|
-
(a || n) && /* @__PURE__ */ t(
|
|
71
|
+
n && /* @__PURE__ */ i("div", { className: l.listTitle, children: n }),
|
|
72
|
+
(a || o) && /* @__PURE__ */ m(
|
|
76
73
|
"div",
|
|
77
74
|
{
|
|
78
75
|
className: u(l.rightBar, {
|
|
79
|
-
[l.rightBarOneItem]: !
|
|
76
|
+
[l.rightBarOneItem]: !o || !a
|
|
80
77
|
}),
|
|
81
78
|
children: [
|
|
82
|
-
|
|
79
|
+
o ? /* @__PURE__ */ i("div", { className: l.search, children: /* @__PURE__ */ i(
|
|
83
80
|
_,
|
|
84
81
|
{
|
|
85
82
|
onSearchSubmit: k,
|
|
@@ -107,7 +104,8 @@ const Z = ({
|
|
|
107
104
|
]
|
|
108
105
|
}
|
|
109
106
|
),
|
|
110
|
-
|
|
107
|
+
p && f && /* @__PURE__ */ i("div", { className: l.listSubtitle, children: f }),
|
|
108
|
+
c && c.length > 0 && /* @__PURE__ */ i("div", { className: l.tagList, children: c.map(C) })
|
|
111
109
|
] }) });
|
|
112
110
|
};
|
|
113
111
|
export {
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import '../../../../assets/components/list/paginated_list/action_bar/ActionBar.module-
|
|
1
|
+
import '../../../../assets/components/list/paginated_list/action_bar/ActionBar.module-DvwCbS9k.css';const t = "_listHeader_un1z2_3", e = "_listHeaderOneItem_un1z2_16", s = "_listTitle_un1z2_23", _ = "_listSubtitle_un1z2_30", i = "_rightBar_un1z2_37", n = "_rightBarOneItem_un1z2_47", a = "_search_un1z2_58", l = "_tagList_un1z2_68", r = "_tagItem_un1z2_83", c = "_select_un1z2_90", u = {
|
|
2
2
|
listHeader: t,
|
|
3
3
|
listHeaderOneItem: e,
|
|
4
4
|
listTitle: s,
|
|
5
5
|
listSubtitle: _,
|
|
6
6
|
rightBar: i,
|
|
7
|
-
rightBarOneItem:
|
|
8
|
-
search:
|
|
9
|
-
tagList:
|
|
10
|
-
tagItem:
|
|
11
|
-
select:
|
|
7
|
+
rightBarOneItem: n,
|
|
8
|
+
search: a,
|
|
9
|
+
tagList: l,
|
|
10
|
+
tagItem: r,
|
|
11
|
+
select: c
|
|
12
12
|
};
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
u as default,
|
|
15
15
|
t as listHeader,
|
|
16
16
|
e as listHeaderOneItem,
|
|
17
17
|
_ as listSubtitle,
|
|
18
18
|
s as listTitle,
|
|
19
19
|
i as rightBar,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
n as rightBarOneItem,
|
|
21
|
+
a as search,
|
|
22
|
+
c as select,
|
|
23
|
+
r as tagItem,
|
|
24
|
+
l as tagList
|
|
25
25
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._listHeader_7x11f_3{display:flex;justify-content:space-between;align-items:center;position:relative;flex-wrap:wrap;gap:var(--space-unit, 1em)}@container (max-width: 575.98px){._listHeader_7x11f_3{flex-direction:column;align-items:flex-start}._listHeader_7x11f_3._listHeaderOneItem_7x11f_16{flex-direction:row;align-items:center;flex-wrap:nowrap!important}}._listTitle_7x11f_23{font-size:var(--font-size-extra-large, 22px);line-height:var(--line-height-tight, 1.08em);font-weight:var(--font-weight-bold, 700);font-family:var(--title-font-family, var(--font-family, "Montserrat"))}._listSubtitle_7x11f_30{color:var(--text-secondary, #5F5F5F);font-weight:var(--font-weight-normal, 400);font-size:var(--font-size-normal, 16px)}._rightBar_7x11f_36{display:flex;gap:var(--space-unit, 1em);flex-wrap:wrap}@container (max-width: 575.98px){._rightBar_7x11f_36{width:100%;justify-content:space-between}._rightBar_7x11f_36._rightBarOneItem_7x11f_46{justify-content:flex-end}}._rightBar_7x11f_36{flex:1 1 auto;justify-content:flex-end;align-items:center;flex-direction:row}._search_7x11f_57{flex:1;max-width:35%}@container (max-width: 575.98px){._search_7x11f_57{max-width:80%}}._tagList_7x11f_67{display:flex;flex-direction:row;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;gap:var(--spacer-md, calc(var(--space-unit, 1em) * .75));padding-bottom:var(--spacer-md, calc(var(--space-unit, 1em) * .75))}@container (max-width: 575.98px){._tagList_7x11f_67{gap:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))}}._tagItem_7x11f_82{display:flex!important;color:var(--text-secondary, #5F5F5F);cursor:pointer;white-space:nowrap}._select_7x11f_89{max-width:300px}@container (max-width: 575.98px){._select_7x11f_89{max-width:300px}}
|