@apolitical/component-library 4.1.6-SW.0 → 4.1.6-SW.2
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 +1 -0
- package/index.js +2 -2
- package/index.mjs +6 -5
- package/package.json +1 -1
- package/style.css +1 -1
- package/text/pill/pill.d.ts +1 -1
package/index.mjs
CHANGED
|
@@ -1009,7 +1009,7 @@ const gn = {
|
|
|
1009
1009
|
return !1;
|
|
1010
1010
|
}, lh = (e, t) => {
|
|
1011
1011
|
const n = new Date(e);
|
|
1012
|
-
return Math.abs((/* @__PURE__ */ new Date()).getTime() - n.getTime()) / (1e3 * 60 * 60 * 24)
|
|
1012
|
+
return Math.abs((/* @__PURE__ */ new Date()).getTime() - n.getTime()) / (1e3 * 60 * 60 * 24) < t;
|
|
1013
1013
|
}, ch = (e) => new Promise((t) => setTimeout(t, e)), dh = () => {
|
|
1014
1014
|
let e = !1;
|
|
1015
1015
|
return typeof window < "u" && (e = !!(window && window.location && window.location.href && window.location.href.includes("localhost"))), e;
|
|
@@ -1032,6 +1032,7 @@ const gn = {
|
|
|
1032
1032
|
card_label_solutionArticle: "Article",
|
|
1033
1033
|
card_bootcamp: "Email boot camp",
|
|
1034
1034
|
card_ended: "Ended",
|
|
1035
|
+
card_new: "New",
|
|
1035
1036
|
card_registered: "Registered",
|
|
1036
1037
|
card_partner: "{partner} and {number} more",
|
|
1037
1038
|
card_contributors_event: "Multiple speakers",
|
|
@@ -20814,7 +20815,7 @@ const $C = {
|
|
|
20814
20815
|
customLabel: m.customLabel
|
|
20815
20816
|
}
|
|
20816
20817
|
),
|
|
20817
|
-
h === "communityPage" && (m == null ? void 0 : m.createdAt) && lh(m == null ? void 0 : m.createdAt, 60) && /* @__PURE__ */ d.jsx(In, { size: "small", variant: "information", "data-testid": "new-community", children: "
|
|
20818
|
+
h === "communityPage" && (m == null ? void 0 : m.createdAt) && lh(m == null ? void 0 : m.createdAt, 60) && /* @__PURE__ */ d.jsx(In, { size: "small", variant: "information", "data-testid": "new-community", children: o.formatMessage({ id: "card_new" }) }),
|
|
20818
20819
|
m.startDate && !m.isOngoingEvent && /* @__PURE__ */ d.jsx(
|
|
20819
20820
|
In,
|
|
20820
20821
|
{
|
|
@@ -21166,9 +21167,9 @@ const qi = "communityDetails_", $E = ({
|
|
|
21166
21167
|
members: { number: a = 0, data: i = [] } = { number: 0, data: [] },
|
|
21167
21168
|
functions: { invite: s, ...o }
|
|
21168
21169
|
}) => {
|
|
21169
|
-
const l = de(), u = 5, c = a || i.length, f = i.length ? i : Array(u).fill({}), m = `/communities/${r}/members` === window.location.pathname, p = !n && !t;
|
|
21170
|
+
const l = de(), u = 5, c = a || i.length, f = i.length ? i : Array(u).fill({}), m = `/communities/${r}/members` === window.location.pathname, p = t || n, g = !n && !t;
|
|
21170
21171
|
return /* @__PURE__ */ d.jsxs("div", { className: K("community-details", e), children: [
|
|
21171
|
-
/* @__PURE__ */ d.jsxs("div", { className: "member-details", children: [
|
|
21172
|
+
p && /* @__PURE__ */ d.jsxs("div", { className: "member-details", children: [
|
|
21172
21173
|
/* @__PURE__ */ d.jsxs("div", { className: "top", children: [
|
|
21173
21174
|
/* @__PURE__ */ d.jsxs("h4", { children: [
|
|
21174
21175
|
l.formatMessage({ id: `${qi}members` }),
|
|
@@ -21197,7 +21198,7 @@ const qi = "communityDetails_", $E = ({
|
|
|
21197
21198
|
{
|
|
21198
21199
|
isMember: t,
|
|
21199
21200
|
isOpen: n,
|
|
21200
|
-
disabled:
|
|
21201
|
+
disabled: g,
|
|
21201
21202
|
functions: { ...o }
|
|
21202
21203
|
}
|
|
21203
21204
|
),
|