hazo_auth 10.18.2 → 10.18.3

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.
@@ -15,7 +15,7 @@ function DeltaBadge({ pct }) {
15
15
  return (_jsxs("span", { className: `text-xs font-medium ${cls}`, title: "vs. previous equal period", children: [arrow, " ", up ? "+" : "", pct, "%"] }));
16
16
  }
17
17
  function StatCard({ w }) {
18
- return (_jsxs("div", { className: "cls_user_signup_stat_card rounded-lg border bg-card p-3", children: [_jsx("div", { className: "text-xs text-muted-foreground", children: w.label }), _jsxs("div", { className: "mt-1 flex items-baseline justify-between gap-2", children: [_jsx("span", { className: "text-2xl font-bold tabular-nums", children: w.count.toLocaleString() }), w.key !== "all" && _jsx(DeltaBadge, { pct: w.pctChange })] }), w.key !== "all" && w.prevCount !== null && (_jsxs("div", { className: "mt-0.5 text-[11px] text-muted-foreground", children: ["prev ", w.prevCount.toLocaleString()] })), w.key === "all" && (_jsx("div", { className: "mt-0.5 text-[11px] text-muted-foreground", children: "total users" }))] }));
18
+ return (_jsxs("div", { className: "cls_user_signup_stat_card min-w-0 rounded-lg border bg-card p-2", children: [_jsx("div", { className: "truncate text-[11px] text-muted-foreground", children: w.label }), _jsxs("div", { className: "mt-1 flex items-baseline justify-between gap-1", children: [_jsx("span", { className: "text-lg font-bold tabular-nums", children: w.count.toLocaleString() }), w.key !== "all" && _jsx(DeltaBadge, { pct: w.pctChange })] }), w.key !== "all" && w.prevCount !== null && (_jsxs("div", { className: "mt-0.5 truncate text-[10px] text-muted-foreground", children: ["prev ", w.prevCount.toLocaleString()] })), w.key === "all" && (_jsx("div", { className: "mt-0.5 truncate text-[10px] text-muted-foreground", children: "total users" }))] }));
19
19
  }
20
20
  function YtdMiniChart({ data }) {
21
21
  var _a, _b, _c, _d;
@@ -27,7 +27,7 @@ function YtdMiniChart({ data }) {
27
27
  const gap = 3;
28
28
  const n = Math.max(1, data.length);
29
29
  const bw = (W - gap * (n - 1)) / n;
30
- return (_jsxs("div", { className: "cls_user_signup_ytd_chart rounded-lg border bg-card p-3 sm:col-span-2", children: [_jsxs("div", { className: "flex items-baseline justify-between", children: [_jsx("div", { className: "text-xs text-muted-foreground", children: "Signups by month (YTD)" }), _jsx("div", { className: "text-sm font-semibold tabular-nums", children: total.toLocaleString() })] }), _jsx("svg", { role: "img", "aria-label": `Year-to-date signups by month: ${data
30
+ return (_jsxs("div", { className: "cls_user_signup_ytd_chart col-span-2 min-w-0 rounded-lg border bg-card p-2", children: [_jsxs("div", { className: "flex items-baseline justify-between", children: [_jsx("div", { className: "truncate text-[11px] text-muted-foreground", children: "Signups by month (YTD)" }), _jsx("div", { className: "text-sm font-semibold tabular-nums", children: total.toLocaleString() })] }), _jsx("svg", { role: "img", "aria-label": `Year-to-date signups by month: ${data
31
31
  .map((d) => `${d.label} ${d.count}`)
32
32
  .join(", ")}`, viewBox: `0 0 ${W} ${H}`, className: "mt-2 w-full", preserveAspectRatio: "none", children: data.map((d, i) => {
33
33
  const h = Math.round((d.count / max) * (H - 2));
@@ -43,5 +43,5 @@ function YtdMiniChart({ data }) {
43
43
  */
44
44
  export function UserSignupStatsCards({ users, now, className }) {
45
45
  const stats = useMemo(() => computeUserSignupStats(users, now), [users, now]);
46
- return (_jsxs("div", { className: `cls_user_signup_stats_cards mb-4 grid grid-cols-2 gap-3 sm:grid-cols-4 lg:grid-cols-8 ${className !== null && className !== void 0 ? className : ""}`, children: [stats.windows.map((w) => (_jsx(StatCard, { w: w }, w.key))), _jsx(YtdMiniChart, { data: stats.ytdMonthly })] }));
46
+ return (_jsxs("div", { className: `cls_user_signup_stats_cards mb-4 grid grid-cols-8 gap-2 ${className !== null && className !== void 0 ? className : ""}`, children: [stats.windows.map((w) => (_jsx(StatCard, { w: w }, w.key))), _jsx(YtdMiniChart, { data: stats.ytdMonthly })] }));
47
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hazo_auth",
3
- "version": "10.18.2",
3
+ "version": "10.18.3",
4
4
  "description": "Zero-config authentication UI components for Next.js with RBAC, OAuth, scope-based multi-tenancy, and invitations",
5
5
  "keywords": [
6
6
  "authentication",