@apolitical/component-library 3.3.0 → 3.3.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/helpers/intl.d.ts +2 -0
- package/index.js +3 -3
- package/index.mjs +25 -21
- package/package.json +1 -1
- package/style.css +1 -1
- package/user/contributors/contributors.d.ts +3 -1
package/index.mjs
CHANGED
|
@@ -966,6 +966,8 @@ const Ue = {
|
|
|
966
966
|
card_ended: "Ended",
|
|
967
967
|
card_registered: "Registered",
|
|
968
968
|
card_partner: "{partner} and {number} more",
|
|
969
|
+
card_contributors_event: "Multiple speakers",
|
|
970
|
+
card_contributors_solutionArticle: "Multiple authors",
|
|
969
971
|
card_answers: "{number, plural, =0 {0 answers} one {# answer} other {# answers}}",
|
|
970
972
|
card_time_ago: "{time} ago",
|
|
971
973
|
card_time_read: "{time} min read",
|
|
@@ -2883,45 +2885,46 @@ const Cr = {
|
|
|
2883
2885
|
showPlaceholders: !1
|
|
2884
2886
|
},
|
|
2885
2887
|
cutoff: c = 2,
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
+
multipleText: f,
|
|
2889
|
+
className: l = "",
|
|
2890
|
+
...u
|
|
2888
2891
|
}) => {
|
|
2889
|
-
const
|
|
2892
|
+
const d = K();
|
|
2890
2893
|
return !n || n.length === 0 ? null : Y.createElement(t, {
|
|
2891
|
-
...
|
|
2892
|
-
className: S("contributors",
|
|
2894
|
+
...u,
|
|
2895
|
+
className: S("contributors", l, i, { "has-gap": s }),
|
|
2893
2896
|
children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2894
|
-
/* @__PURE__ */ a.jsx("ul", { children: n.map((
|
|
2895
|
-
let
|
|
2896
|
-
if (
|
|
2897
|
-
const { name:
|
|
2897
|
+
/* @__PURE__ */ a.jsx("ul", { children: n.map((m, p) => {
|
|
2898
|
+
let g, _ = "";
|
|
2899
|
+
if (p < c) {
|
|
2900
|
+
const { name: b = "", image: v = "" } = xa(m);
|
|
2898
2901
|
if (o)
|
|
2899
|
-
return /* @__PURE__ */ a.jsx(Ee, { element: "li", className: "contributor" },
|
|
2900
|
-
|
|
2902
|
+
return /* @__PURE__ */ a.jsx(Ee, { element: "li", className: "contributor" }, p);
|
|
2903
|
+
g = /* @__PURE__ */ a.jsx(
|
|
2901
2904
|
He,
|
|
2902
2905
|
{
|
|
2903
|
-
name:
|
|
2904
|
-
src:
|
|
2906
|
+
name: b,
|
|
2907
|
+
src: v,
|
|
2905
2908
|
width: Cr[i || "medium"],
|
|
2906
2909
|
height: Cr[i || "medium"]
|
|
2907
2910
|
}
|
|
2908
2911
|
);
|
|
2909
|
-
} else if (
|
|
2910
|
-
const
|
|
2911
|
-
|
|
2912
|
+
} else if (p === c) {
|
|
2913
|
+
const b = (e || n.length) - c;
|
|
2914
|
+
g = /* @__PURE__ */ a.jsxs(
|
|
2912
2915
|
"small",
|
|
2913
2916
|
{
|
|
2914
|
-
className: S({ "large-number":
|
|
2917
|
+
className: S({ "large-number": b > 99 }),
|
|
2915
2918
|
children: [
|
|
2916
2919
|
"+",
|
|
2917
|
-
Qi(
|
|
2920
|
+
Qi(b, 0)
|
|
2918
2921
|
]
|
|
2919
2922
|
}
|
|
2920
|
-
),
|
|
2923
|
+
), _ = "number-left";
|
|
2921
2924
|
}
|
|
2922
|
-
return
|
|
2925
|
+
return g ? /* @__PURE__ */ a.jsx("li", { className: S("contributor", _), children: g }, p) : null;
|
|
2923
2926
|
}) }),
|
|
2924
|
-
r && /* @__PURE__ */ a.jsx("span", { className: "label", children: typeof r == "string" ? r : n.length === 1 ? typeof n[0] == "string" ?
|
|
2927
|
+
r && /* @__PURE__ */ a.jsx("span", { className: "label", children: typeof r == "string" ? r : n.length === 1 ? typeof n[0] == "string" ? d.formatMessage({ id: `member_${n[0]}` }) : Je(n[0].name || "", 20) : f || null })
|
|
2925
2928
|
] })
|
|
2926
2929
|
});
|
|
2927
2930
|
};
|
|
@@ -6804,6 +6807,7 @@ const Qo = {
|
|
|
6804
6807
|
showGap: b !== "question",
|
|
6805
6808
|
showText: !0
|
|
6806
6809
|
},
|
|
6810
|
+
multipleText: ["event", "solutionArticle"].includes(g) ? o.formatMessage({ id: `card_contributors_${g}` }) : void 0,
|
|
6807
6811
|
"data-testid": "contributors"
|
|
6808
6812
|
}
|
|
6809
6813
|
),
|