@apolitical/component-library 4.1.6-SW.0 → 4.1.6-SW.1

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/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) > t;
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;
@@ -21166,9 +21166,9 @@ const qi = "communityDetails_", $E = ({
21166
21166
  members: { number: a = 0, data: i = [] } = { number: 0, data: [] },
21167
21167
  functions: { invite: s, ...o }
21168
21168
  }) => {
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;
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 = t || n, g = !n && !t;
21170
21170
  return /* @__PURE__ */ d.jsxs("div", { className: K("community-details", e), children: [
21171
- /* @__PURE__ */ d.jsxs("div", { className: "member-details", children: [
21171
+ p && /* @__PURE__ */ d.jsxs("div", { className: "member-details", children: [
21172
21172
  /* @__PURE__ */ d.jsxs("div", { className: "top", children: [
21173
21173
  /* @__PURE__ */ d.jsxs("h4", { children: [
21174
21174
  l.formatMessage({ id: `${qi}members` }),
@@ -21197,7 +21197,7 @@ const qi = "communityDetails_", $E = ({
21197
21197
  {
21198
21198
  isMember: t,
21199
21199
  isOpen: n,
21200
- disabled: p,
21200
+ disabled: g,
21201
21201
  functions: { ...o }
21202
21202
  }
21203
21203
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "4.1.6-SW.0",
3
+ "version": "4.1.6-SW.1",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {