@nukleus-sports/page-shells 0.5.1 → 0.6.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/dist/team.cjs ADDED
@@ -0,0 +1,136 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/team/index.ts
21
+ var team_exports = {};
22
+ __export(team_exports, {
23
+ TeamDashboardShell: () => TeamDashboardShell,
24
+ TeamScheduleShell: () => TeamScheduleShell,
25
+ TeamStatsShell: () => TeamStatsShell
26
+ });
27
+ module.exports = __toCommonJS(team_exports);
28
+
29
+ // src/team/team-stats-shell.tsx
30
+ var import_team = require("@nukleus-sports/ui-patterns/team");
31
+ var import_ui_web = require("@nukleus-sports/ui-web");
32
+ var import_jsx_runtime = require("react/jsx-runtime");
33
+ function TeamStatsShell({ adapter, className }) {
34
+ const { table, summaryStats, summaryLoading = false, isSummaryError } = adapter;
35
+ const hasNoUsableSeasons = table.sportId !== null && !table.seasonsLoading && (!table.seasons || table.seasons.years.length === 0);
36
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: (0, import_ui_web.cn)("flex flex-col gap-3", className), children: [
37
+ !table.isTeamError && !hasNoUsableSeasons && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
38
+ import_team.TeamSeasonStatsSummaryPanel,
39
+ {
40
+ sportId: table.sportId ?? 0,
41
+ selectedYear: table.seasons?.selectedYear ?? null,
42
+ selectedType: table.seasons?.selectedType ?? null,
43
+ stats: summaryStats,
44
+ loading: summaryLoading || table.sportId === null || Boolean(table.seasonsLoading),
45
+ isError: isSummaryError
46
+ }
47
+ ),
48
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_team.TeamStatsTable, { ...table })
49
+ ] });
50
+ }
51
+
52
+ // src/team/team-schedule-shell.tsx
53
+ var import_team2 = require("@nukleus-sports/ui-patterns/team");
54
+ var import_ui_web2 = require("@nukleus-sports/ui-web");
55
+ var import_jsx_runtime2 = require("react/jsx-runtime");
56
+ function TeamScheduleShell({ adapter, className }) {
57
+ const { table, summary, summaryLoading = false, isSummaryError } = adapter;
58
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: (0, import_ui_web2.cn)("flex flex-col gap-3", className), children: [
59
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
60
+ import_team2.TeamSeasonScheduleSummaryPanel,
61
+ {
62
+ selectedYear: table.seasons?.selectedYear ?? null,
63
+ selectedType: table.seasons?.selectedType ?? null,
64
+ summary,
65
+ loading: summaryLoading,
66
+ isError: isSummaryError
67
+ }
68
+ ),
69
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_team2.TeamScheduleTable, { ...table })
70
+ ] });
71
+ }
72
+
73
+ // src/team/team-dashboard-shell.tsx
74
+ var import_team3 = require("@nukleus-sports/ui-patterns/team");
75
+ var import_ui_web3 = require("@nukleus-sports/ui-web");
76
+ var import_jsx_runtime3 = require("react/jsx-runtime");
77
+ function TeamDashboardShell({ adapter, className }) {
78
+ const { team, resolveImageUrl, recentGames, seasonStats, teamFacts, leaderboard } = adapter;
79
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
80
+ "div",
81
+ {
82
+ className: (0, import_ui_web3.cn)("flex flex-wrap items-start gap-3 xl:flex-nowrap xl:items-stretch", className),
83
+ children: [
84
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "flex w-full flex-col gap-3 xl:w-auto xl:min-w-0 xl:max-w-[852px] xl:flex-1", children: [
85
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "grid grid-cols-1 min-[800px]:grid-cols-2 gap-4 min-[800px]:gap-3 xl:[&>*]:!w-auto", children: [
86
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_team3.TeamInfoCard, { team, resolveImageUrl }),
87
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
88
+ import_team3.RecentGamesWidget,
89
+ {
90
+ status: recentGames.status,
91
+ rows: recentGames.rows,
92
+ resolveImageUrl: recentGames.resolveImageUrl,
93
+ defaultLogoUrl: recentGames.defaultLogoUrl,
94
+ onExpand: recentGames.onExpand
95
+ }
96
+ )
97
+ ] }),
98
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
99
+ import_team3.TeamSeasonStatsWidget,
100
+ {
101
+ sportId: seasonStats.sportId,
102
+ leagueId: seasonStats.leagueId,
103
+ seasons: seasonStats.seasons,
104
+ seasonsLoading: seasonStats.seasonsLoading,
105
+ summary: seasonStats.summary,
106
+ rankings: seasonStats.rankings,
107
+ statsLoading: seasonStats.statsLoading,
108
+ isSummaryError: seasonStats.isSummaryError,
109
+ isRankingsError: seasonStats.isRankingsError,
110
+ onRankClick: seasonStats.onRankClick,
111
+ className: "w-full"
112
+ }
113
+ )
114
+ ] }),
115
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
116
+ import_team3.TeamFactsWidget,
117
+ {
118
+ state: teamFacts.state,
119
+ resolveImageUrl,
120
+ resolveVenuePhotoUrl: teamFacts.resolveVenuePhotoUrl,
121
+ getRivalHref: teamFacts.getRivalHref,
122
+ className: "xl:w-[420px] xl:shrink-0"
123
+ }
124
+ ),
125
+ leaderboard && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_team3.StatRankingLeaderboardDialog, { ...leaderboard })
126
+ ]
127
+ }
128
+ );
129
+ }
130
+ // Annotate the CommonJS export names for ESM import in node:
131
+ 0 && (module.exports = {
132
+ TeamDashboardShell,
133
+ TeamScheduleShell,
134
+ TeamStatsShell
135
+ });
136
+ //# sourceMappingURL=team.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/team/index.ts","../src/team/team-stats-shell.tsx","../src/team/team-schedule-shell.tsx","../src/team/team-dashboard-shell.tsx"],"sourcesContent":["export {\n TeamStatsShell,\n type TeamStatsShellAdapter,\n type TeamStatsShellProps,\n} from \"./team-stats-shell\";\nexport {\n TeamScheduleShell,\n type TeamScheduleShellAdapter,\n type TeamScheduleShellProps,\n} from \"./team-schedule-shell\";\nexport {\n TeamDashboardShell,\n type TeamDashboardAdapter,\n type TeamDashboardShellProps,\n} from \"./team-dashboard-shell\";\n","import type { TeamSeasonStatsResult } from \"@nukleus-sports/core\";\nimport {\n TeamStatsTable,\n TeamSeasonStatsSummaryPanel,\n type TeamStatsTableProps,\n} from \"@nukleus-sports/ui-patterns/team\";\nimport { cn } from \"@nukleus-sports/ui-web\";\n\n// Reconciled from both apps -- see RECONCILIATION.md#team-stats-shelltsx\n\nexport interface TeamStatsShellAdapter {\n table: Omit<TeamStatsTableProps, \"className\">;\n summaryStats: TeamSeasonStatsResult | null;\n summaryLoading?: boolean;\n isSummaryError?: boolean;\n}\n\nexport interface TeamStatsShellProps {\n adapter: TeamStatsShellAdapter;\n className?: string;\n}\n\n/** The Team page's Stats tab: the season stats summary panel above the per-game stats table. */\nexport function TeamStatsShell({ adapter, className }: TeamStatsShellProps) {\n const { table, summaryStats, summaryLoading = false, isSummaryError } = adapter;\n // Same terminal condition `TeamStatsTable` itself checks before showing its own seasons\n // error/empty state -- cached seasons with real years are still usable even if `isSeasonsError`\n // is also true (a background refetch failed), so only a genuinely empty/unloaded list suppresses\n // the panel. Doesn't apply while the sport itself is still unresolved or seasons are in flight --\n // that's the panel's own loading state (above), not a settled empty/error one.\n const hasNoUsableSeasons =\n table.sportId !== null &&\n !table.seasonsLoading &&\n (!table.seasons || table.seasons.years.length === 0);\n\n return (\n <div className={cn(\"flex flex-col gap-3\", className)}>\n {!table.isTeamError && !hasNoUsableSeasons && (\n <TeamSeasonStatsSummaryPanel\n sportId={table.sportId ?? 0}\n selectedYear={table.seasons?.selectedYear ?? null}\n selectedType={table.seasons?.selectedType ?? null}\n stats={summaryStats}\n loading={summaryLoading || table.sportId === null || Boolean(table.seasonsLoading)}\n isError={isSummaryError}\n />\n )}\n <TeamStatsTable {...table} />\n </div>\n );\n}\n","import type { SeasonSummary } from \"@nukleus-sports/core\";\nimport {\n TeamScheduleTable,\n TeamSeasonScheduleSummaryPanel,\n type TeamScheduleTableProps,\n} from \"@nukleus-sports/ui-patterns/team\";\nimport { cn } from \"@nukleus-sports/ui-web\";\n\n// Reconciled from both apps -- see RECONCILIATION.md#team-schedule-shelltsx\n\nexport interface TeamScheduleShellAdapter {\n table: Omit<TeamScheduleTableProps, \"className\">;\n summary: SeasonSummary | null;\n summaryLoading?: boolean;\n isSummaryError?: boolean;\n}\n\nexport interface TeamScheduleShellProps {\n adapter: TeamScheduleShellAdapter;\n className?: string;\n}\n\n/** The Team page's Schedule tab: the season summary panel above the full game list. */\nexport function TeamScheduleShell({ adapter, className }: TeamScheduleShellProps) {\n const { table, summary, summaryLoading = false, isSummaryError } = adapter;\n\n return (\n <div className={cn(\"flex flex-col gap-3\", className)}>\n <TeamSeasonScheduleSummaryPanel\n selectedYear={table.seasons?.selectedYear ?? null}\n selectedType={table.seasons?.selectedType ?? null}\n summary={summary}\n loading={summaryLoading}\n isError={isSummaryError}\n />\n <TeamScheduleTable {...table} />\n </div>\n );\n}\n","import {\n RecentGamesWidget,\n StatRankingLeaderboardDialog,\n TeamFactsWidget,\n TeamInfoCard,\n TeamSeasonStatsWidget,\n type RecentGamesStatus,\n type StatRankingLeaderboardDialogProps,\n type TeamFactsContentProps,\n type TeamInfoCardTeam,\n type TeamSeasonStatsRanking,\n type SeasonSelectorProps,\n} from \"@nukleus-sports/ui-patterns/team\";\nimport { type EntityImageResolver } from \"@nukleus-sports/ui-patterns\";\nimport { cn } from \"@nukleus-sports/ui-web\";\nimport type {\n RecentGameRow,\n TeamFactsWidgetState,\n TeamSeasonSummaryRecord,\n} from \"@nukleus-sports/core\";\n\n// Reconciled from both apps -- see RECONCILIATION.md#team-dashboard-shell\n\nexport interface TeamDashboardAdapter {\n team: TeamInfoCardTeam;\n /** Shared by `TeamInfoCard` and `TeamFactsWidget` -- both apps resolve these with one function. */\n resolveImageUrl?: EntityImageResolver;\n\n recentGames: {\n status: RecentGamesStatus;\n rows: RecentGameRow[];\n /** Can't return null (unlike `resolveImageUrl` above) -- falls back to `defaultLogoUrl` itself. */\n resolveImageUrl: (path: string) => string;\n defaultLogoUrl: string;\n /** Opens the full schedule. Omit to hide the header button. */\n onExpand?: () => void;\n };\n\n seasonStats: {\n sportId: number | null | undefined;\n leagueId: number | null | undefined;\n seasons?: Omit<SeasonSelectorProps, \"className\" | \"hideTypeOnMobile\">;\n seasonsLoading?: boolean;\n summary: TeamSeasonSummaryRecord | null | undefined;\n rankings: TeamSeasonStatsRanking[] | undefined;\n statsLoading?: boolean;\n isSummaryError?: boolean;\n isRankingsError?: boolean;\n /** Called with a ranking config id when its rank is clicked; drives `leaderboard` below. */\n onRankClick?: (configId: number) => void;\n };\n\n teamFacts: {\n state: TeamFactsWidgetState;\n resolveVenuePhotoUrl?: TeamFactsContentProps[\"resolveVenuePhotoUrl\"];\n /** Omit to render the rival's name as plain text instead of a link. */\n getRivalHref?: (rivalId: number) => string;\n };\n\n /**\n * Omit while no season is selected yet -- both real pages only mount the dialog once one is\n * (its own `open` prop still separately controls visibility once mounted).\n */\n leaderboard?: StatRankingLeaderboardDialogProps;\n}\n\nexport interface TeamDashboardShellProps {\n adapter: TeamDashboardAdapter;\n className?: string;\n}\n\n/**\n * The Team page's Dashboard tab: `TeamInfoCard` + `RecentGamesWidget` + `TeamSeasonStatsWidget` in\n * a flexed column, `TeamFactsWidget` beside it (stacked full width below `xl`).\n */\nexport function TeamDashboardShell({ adapter, className }: TeamDashboardShellProps) {\n const { team, resolveImageUrl, recentGames, seasonStats, teamFacts, leaderboard } = adapter;\n\n return (\n <div\n className={cn(\"flex flex-wrap items-start gap-3 xl:flex-nowrap xl:items-stretch\", className)}\n >\n <div className=\"flex w-full flex-col gap-3 xl:w-auto xl:min-w-0 xl:max-w-[852px] xl:flex-1\">\n <div className=\"grid grid-cols-1 min-[800px]:grid-cols-2 gap-4 min-[800px]:gap-3 xl:[&>*]:!w-auto\">\n <TeamInfoCard team={team} resolveImageUrl={resolveImageUrl} />\n <RecentGamesWidget\n status={recentGames.status}\n rows={recentGames.rows}\n resolveImageUrl={recentGames.resolveImageUrl}\n defaultLogoUrl={recentGames.defaultLogoUrl}\n onExpand={recentGames.onExpand}\n />\n </div>\n <TeamSeasonStatsWidget\n sportId={seasonStats.sportId}\n leagueId={seasonStats.leagueId}\n seasons={seasonStats.seasons}\n seasonsLoading={seasonStats.seasonsLoading}\n summary={seasonStats.summary}\n rankings={seasonStats.rankings}\n statsLoading={seasonStats.statsLoading}\n isSummaryError={seasonStats.isSummaryError}\n isRankingsError={seasonStats.isRankingsError}\n onRankClick={seasonStats.onRankClick}\n className=\"w-full\"\n />\n </div>\n <TeamFactsWidget\n state={teamFacts.state}\n resolveImageUrl={resolveImageUrl}\n resolveVenuePhotoUrl={teamFacts.resolveVenuePhotoUrl}\n getRivalHref={teamFacts.getRivalHref}\n className=\"xl:w-[420px] xl:shrink-0\"\n />\n {leaderboard && <StatRankingLeaderboardDialog {...leaderboard} />}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCA,kBAIO;AACP,oBAAmB;AA8Bf;AAbG,SAAS,eAAe,EAAE,SAAS,UAAU,GAAwB;AAC1E,QAAM,EAAE,OAAO,cAAc,iBAAiB,OAAO,eAAe,IAAI;AAMxE,QAAM,qBACJ,MAAM,YAAY,QAClB,CAAC,MAAM,mBACN,CAAC,MAAM,WAAW,MAAM,QAAQ,MAAM,WAAW;AAEpD,SACE,6CAAC,SAAI,eAAW,kBAAG,uBAAuB,SAAS,GAChD;AAAA,KAAC,MAAM,eAAe,CAAC,sBACtB;AAAA,MAAC;AAAA;AAAA,QACC,SAAS,MAAM,WAAW;AAAA,QAC1B,cAAc,MAAM,SAAS,gBAAgB;AAAA,QAC7C,cAAc,MAAM,SAAS,gBAAgB;AAAA,QAC7C,OAAO;AAAA,QACP,SAAS,kBAAkB,MAAM,YAAY,QAAQ,QAAQ,MAAM,cAAc;AAAA,QACjF,SAAS;AAAA;AAAA,IACX;AAAA,IAEF,4CAAC,8BAAgB,GAAG,OAAO;AAAA,KAC7B;AAEJ;;;ACjDA,IAAAA,eAIO;AACP,IAAAC,iBAAmB;AAqBf,IAAAC,sBAAA;AAJG,SAAS,kBAAkB,EAAE,SAAS,UAAU,GAA2B;AAChF,QAAM,EAAE,OAAO,SAAS,iBAAiB,OAAO,eAAe,IAAI;AAEnE,SACE,8CAAC,SAAI,eAAW,mBAAG,uBAAuB,SAAS,GACjD;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,cAAc,MAAM,SAAS,gBAAgB;AAAA,QAC7C,cAAc,MAAM,SAAS,gBAAgB;AAAA,QAC7C;AAAA,QACA,SAAS;AAAA,QACT,SAAS;AAAA;AAAA,IACX;AAAA,IACA,6CAAC,kCAAmB,GAAG,OAAO;AAAA,KAChC;AAEJ;;;ACtCA,IAAAC,eAYO;AAEP,IAAAC,iBAAmB;AAqEX,IAAAC,sBAAA;AARD,SAAS,mBAAmB,EAAE,SAAS,UAAU,GAA4B;AAClF,QAAM,EAAE,MAAM,iBAAiB,aAAa,aAAa,WAAW,YAAY,IAAI;AAEpF,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAW,mBAAG,oEAAoE,SAAS;AAAA,MAE3F;AAAA,sDAAC,SAAI,WAAU,8EACb;AAAA,wDAAC,SAAI,WAAU,qFACb;AAAA,yDAAC,6BAAa,MAAY,iBAAkC;AAAA,YAC5D;AAAA,cAAC;AAAA;AAAA,gBACC,QAAQ,YAAY;AAAA,gBACpB,MAAM,YAAY;AAAA,gBAClB,iBAAiB,YAAY;AAAA,gBAC7B,gBAAgB,YAAY;AAAA,gBAC5B,UAAU,YAAY;AAAA;AAAA,YACxB;AAAA,aACF;AAAA,UACA;AAAA,YAAC;AAAA;AAAA,cACC,SAAS,YAAY;AAAA,cACrB,UAAU,YAAY;AAAA,cACtB,SAAS,YAAY;AAAA,cACrB,gBAAgB,YAAY;AAAA,cAC5B,SAAS,YAAY;AAAA,cACrB,UAAU,YAAY;AAAA,cACtB,cAAc,YAAY;AAAA,cAC1B,gBAAgB,YAAY;AAAA,cAC5B,iBAAiB,YAAY;AAAA,cAC7B,aAAa,YAAY;AAAA,cACzB,WAAU;AAAA;AAAA,UACZ;AAAA,WACF;AAAA,QACA;AAAA,UAAC;AAAA;AAAA,YACC,OAAO,UAAU;AAAA,YACjB;AAAA,YACA,sBAAsB,UAAU;AAAA,YAChC,cAAc,UAAU;AAAA,YACxB,WAAU;AAAA;AAAA,QACZ;AAAA,QACC,eAAe,6CAAC,6CAA8B,GAAG,aAAa;AAAA;AAAA;AAAA,EACjE;AAEJ;","names":["import_team","import_ui_web","import_jsx_runtime","import_team","import_ui_web","import_jsx_runtime"]}
@@ -0,0 +1,80 @@
1
+ import * as react from 'react';
2
+ import { TeamSeasonStatsResult, SeasonSummary, RecentGameRow, TeamSeasonSummaryRecord, TeamFactsWidgetState } from '@nukleus-sports/core';
3
+ import { TeamStatsTableProps, TeamScheduleTableProps, TeamInfoCardTeam, RecentGamesStatus, SeasonSelectorProps, TeamSeasonStatsRanking, TeamFactsContentProps, StatRankingLeaderboardDialogProps } from '@nukleus-sports/ui-patterns/team';
4
+ import { EntityImageResolver } from '@nukleus-sports/ui-patterns';
5
+
6
+ interface TeamStatsShellAdapter {
7
+ table: Omit<TeamStatsTableProps, "className">;
8
+ summaryStats: TeamSeasonStatsResult | null;
9
+ summaryLoading?: boolean;
10
+ isSummaryError?: boolean;
11
+ }
12
+ interface TeamStatsShellProps {
13
+ adapter: TeamStatsShellAdapter;
14
+ className?: string;
15
+ }
16
+ /** The Team page's Stats tab: the season stats summary panel above the per-game stats table. */
17
+ declare function TeamStatsShell({ adapter, className }: TeamStatsShellProps): react.JSX.Element;
18
+
19
+ interface TeamScheduleShellAdapter {
20
+ table: Omit<TeamScheduleTableProps, "className">;
21
+ summary: SeasonSummary | null;
22
+ summaryLoading?: boolean;
23
+ isSummaryError?: boolean;
24
+ }
25
+ interface TeamScheduleShellProps {
26
+ adapter: TeamScheduleShellAdapter;
27
+ className?: string;
28
+ }
29
+ /** The Team page's Schedule tab: the season summary panel above the full game list. */
30
+ declare function TeamScheduleShell({ adapter, className }: TeamScheduleShellProps): react.JSX.Element;
31
+
32
+ interface TeamDashboardAdapter {
33
+ team: TeamInfoCardTeam;
34
+ /** Shared by `TeamInfoCard` and `TeamFactsWidget` -- both apps resolve these with one function. */
35
+ resolveImageUrl?: EntityImageResolver;
36
+ recentGames: {
37
+ status: RecentGamesStatus;
38
+ rows: RecentGameRow[];
39
+ /** Can't return null (unlike `resolveImageUrl` above) -- falls back to `defaultLogoUrl` itself. */
40
+ resolveImageUrl: (path: string) => string;
41
+ defaultLogoUrl: string;
42
+ /** Opens the full schedule. Omit to hide the header button. */
43
+ onExpand?: () => void;
44
+ };
45
+ seasonStats: {
46
+ sportId: number | null | undefined;
47
+ leagueId: number | null | undefined;
48
+ seasons?: Omit<SeasonSelectorProps, "className" | "hideTypeOnMobile">;
49
+ seasonsLoading?: boolean;
50
+ summary: TeamSeasonSummaryRecord | null | undefined;
51
+ rankings: TeamSeasonStatsRanking[] | undefined;
52
+ statsLoading?: boolean;
53
+ isSummaryError?: boolean;
54
+ isRankingsError?: boolean;
55
+ /** Called with a ranking config id when its rank is clicked; drives `leaderboard` below. */
56
+ onRankClick?: (configId: number) => void;
57
+ };
58
+ teamFacts: {
59
+ state: TeamFactsWidgetState;
60
+ resolveVenuePhotoUrl?: TeamFactsContentProps["resolveVenuePhotoUrl"];
61
+ /** Omit to render the rival's name as plain text instead of a link. */
62
+ getRivalHref?: (rivalId: number) => string;
63
+ };
64
+ /**
65
+ * Omit while no season is selected yet -- both real pages only mount the dialog once one is
66
+ * (its own `open` prop still separately controls visibility once mounted).
67
+ */
68
+ leaderboard?: StatRankingLeaderboardDialogProps;
69
+ }
70
+ interface TeamDashboardShellProps {
71
+ adapter: TeamDashboardAdapter;
72
+ className?: string;
73
+ }
74
+ /**
75
+ * The Team page's Dashboard tab: `TeamInfoCard` + `RecentGamesWidget` + `TeamSeasonStatsWidget` in
76
+ * a flexed column, `TeamFactsWidget` beside it (stacked full width below `xl`).
77
+ */
78
+ declare function TeamDashboardShell({ adapter, className }: TeamDashboardShellProps): react.JSX.Element;
79
+
80
+ export { type TeamDashboardAdapter, TeamDashboardShell, type TeamDashboardShellProps, TeamScheduleShell, type TeamScheduleShellAdapter, type TeamScheduleShellProps, TeamStatsShell, type TeamStatsShellAdapter, type TeamStatsShellProps };
package/dist/team.d.ts ADDED
@@ -0,0 +1,80 @@
1
+ import * as react from 'react';
2
+ import { TeamSeasonStatsResult, SeasonSummary, RecentGameRow, TeamSeasonSummaryRecord, TeamFactsWidgetState } from '@nukleus-sports/core';
3
+ import { TeamStatsTableProps, TeamScheduleTableProps, TeamInfoCardTeam, RecentGamesStatus, SeasonSelectorProps, TeamSeasonStatsRanking, TeamFactsContentProps, StatRankingLeaderboardDialogProps } from '@nukleus-sports/ui-patterns/team';
4
+ import { EntityImageResolver } from '@nukleus-sports/ui-patterns';
5
+
6
+ interface TeamStatsShellAdapter {
7
+ table: Omit<TeamStatsTableProps, "className">;
8
+ summaryStats: TeamSeasonStatsResult | null;
9
+ summaryLoading?: boolean;
10
+ isSummaryError?: boolean;
11
+ }
12
+ interface TeamStatsShellProps {
13
+ adapter: TeamStatsShellAdapter;
14
+ className?: string;
15
+ }
16
+ /** The Team page's Stats tab: the season stats summary panel above the per-game stats table. */
17
+ declare function TeamStatsShell({ adapter, className }: TeamStatsShellProps): react.JSX.Element;
18
+
19
+ interface TeamScheduleShellAdapter {
20
+ table: Omit<TeamScheduleTableProps, "className">;
21
+ summary: SeasonSummary | null;
22
+ summaryLoading?: boolean;
23
+ isSummaryError?: boolean;
24
+ }
25
+ interface TeamScheduleShellProps {
26
+ adapter: TeamScheduleShellAdapter;
27
+ className?: string;
28
+ }
29
+ /** The Team page's Schedule tab: the season summary panel above the full game list. */
30
+ declare function TeamScheduleShell({ adapter, className }: TeamScheduleShellProps): react.JSX.Element;
31
+
32
+ interface TeamDashboardAdapter {
33
+ team: TeamInfoCardTeam;
34
+ /** Shared by `TeamInfoCard` and `TeamFactsWidget` -- both apps resolve these with one function. */
35
+ resolveImageUrl?: EntityImageResolver;
36
+ recentGames: {
37
+ status: RecentGamesStatus;
38
+ rows: RecentGameRow[];
39
+ /** Can't return null (unlike `resolveImageUrl` above) -- falls back to `defaultLogoUrl` itself. */
40
+ resolveImageUrl: (path: string) => string;
41
+ defaultLogoUrl: string;
42
+ /** Opens the full schedule. Omit to hide the header button. */
43
+ onExpand?: () => void;
44
+ };
45
+ seasonStats: {
46
+ sportId: number | null | undefined;
47
+ leagueId: number | null | undefined;
48
+ seasons?: Omit<SeasonSelectorProps, "className" | "hideTypeOnMobile">;
49
+ seasonsLoading?: boolean;
50
+ summary: TeamSeasonSummaryRecord | null | undefined;
51
+ rankings: TeamSeasonStatsRanking[] | undefined;
52
+ statsLoading?: boolean;
53
+ isSummaryError?: boolean;
54
+ isRankingsError?: boolean;
55
+ /** Called with a ranking config id when its rank is clicked; drives `leaderboard` below. */
56
+ onRankClick?: (configId: number) => void;
57
+ };
58
+ teamFacts: {
59
+ state: TeamFactsWidgetState;
60
+ resolveVenuePhotoUrl?: TeamFactsContentProps["resolveVenuePhotoUrl"];
61
+ /** Omit to render the rival's name as plain text instead of a link. */
62
+ getRivalHref?: (rivalId: number) => string;
63
+ };
64
+ /**
65
+ * Omit while no season is selected yet -- both real pages only mount the dialog once one is
66
+ * (its own `open` prop still separately controls visibility once mounted).
67
+ */
68
+ leaderboard?: StatRankingLeaderboardDialogProps;
69
+ }
70
+ interface TeamDashboardShellProps {
71
+ adapter: TeamDashboardAdapter;
72
+ className?: string;
73
+ }
74
+ /**
75
+ * The Team page's Dashboard tab: `TeamInfoCard` + `RecentGamesWidget` + `TeamSeasonStatsWidget` in
76
+ * a flexed column, `TeamFactsWidget` beside it (stacked full width below `xl`).
77
+ */
78
+ declare function TeamDashboardShell({ adapter, className }: TeamDashboardShellProps): react.JSX.Element;
79
+
80
+ export { type TeamDashboardAdapter, TeamDashboardShell, type TeamDashboardShellProps, TeamScheduleShell, type TeamScheduleShellAdapter, type TeamScheduleShellProps, TeamStatsShell, type TeamStatsShellAdapter, type TeamStatsShellProps };
package/dist/team.js ADDED
@@ -0,0 +1,119 @@
1
+ // src/team/team-stats-shell.tsx
2
+ import {
3
+ TeamStatsTable,
4
+ TeamSeasonStatsSummaryPanel
5
+ } from "@nukleus-sports/ui-patterns/team";
6
+ import { cn } from "@nukleus-sports/ui-web";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
+ function TeamStatsShell({ adapter, className }) {
9
+ const { table, summaryStats, summaryLoading = false, isSummaryError } = adapter;
10
+ const hasNoUsableSeasons = table.sportId !== null && !table.seasonsLoading && (!table.seasons || table.seasons.years.length === 0);
11
+ return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-3", className), children: [
12
+ !table.isTeamError && !hasNoUsableSeasons && /* @__PURE__ */ jsx(
13
+ TeamSeasonStatsSummaryPanel,
14
+ {
15
+ sportId: table.sportId ?? 0,
16
+ selectedYear: table.seasons?.selectedYear ?? null,
17
+ selectedType: table.seasons?.selectedType ?? null,
18
+ stats: summaryStats,
19
+ loading: summaryLoading || table.sportId === null || Boolean(table.seasonsLoading),
20
+ isError: isSummaryError
21
+ }
22
+ ),
23
+ /* @__PURE__ */ jsx(TeamStatsTable, { ...table })
24
+ ] });
25
+ }
26
+
27
+ // src/team/team-schedule-shell.tsx
28
+ import {
29
+ TeamScheduleTable,
30
+ TeamSeasonScheduleSummaryPanel
31
+ } from "@nukleus-sports/ui-patterns/team";
32
+ import { cn as cn2 } from "@nukleus-sports/ui-web";
33
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
34
+ function TeamScheduleShell({ adapter, className }) {
35
+ const { table, summary, summaryLoading = false, isSummaryError } = adapter;
36
+ return /* @__PURE__ */ jsxs2("div", { className: cn2("flex flex-col gap-3", className), children: [
37
+ /* @__PURE__ */ jsx2(
38
+ TeamSeasonScheduleSummaryPanel,
39
+ {
40
+ selectedYear: table.seasons?.selectedYear ?? null,
41
+ selectedType: table.seasons?.selectedType ?? null,
42
+ summary,
43
+ loading: summaryLoading,
44
+ isError: isSummaryError
45
+ }
46
+ ),
47
+ /* @__PURE__ */ jsx2(TeamScheduleTable, { ...table })
48
+ ] });
49
+ }
50
+
51
+ // src/team/team-dashboard-shell.tsx
52
+ import {
53
+ RecentGamesWidget,
54
+ StatRankingLeaderboardDialog,
55
+ TeamFactsWidget,
56
+ TeamInfoCard,
57
+ TeamSeasonStatsWidget
58
+ } from "@nukleus-sports/ui-patterns/team";
59
+ import { cn as cn3 } from "@nukleus-sports/ui-web";
60
+ import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
61
+ function TeamDashboardShell({ adapter, className }) {
62
+ const { team, resolveImageUrl, recentGames, seasonStats, teamFacts, leaderboard } = adapter;
63
+ return /* @__PURE__ */ jsxs3(
64
+ "div",
65
+ {
66
+ className: cn3("flex flex-wrap items-start gap-3 xl:flex-nowrap xl:items-stretch", className),
67
+ children: [
68
+ /* @__PURE__ */ jsxs3("div", { className: "flex w-full flex-col gap-3 xl:w-auto xl:min-w-0 xl:max-w-[852px] xl:flex-1", children: [
69
+ /* @__PURE__ */ jsxs3("div", { className: "grid grid-cols-1 min-[800px]:grid-cols-2 gap-4 min-[800px]:gap-3 xl:[&>*]:!w-auto", children: [
70
+ /* @__PURE__ */ jsx3(TeamInfoCard, { team, resolveImageUrl }),
71
+ /* @__PURE__ */ jsx3(
72
+ RecentGamesWidget,
73
+ {
74
+ status: recentGames.status,
75
+ rows: recentGames.rows,
76
+ resolveImageUrl: recentGames.resolveImageUrl,
77
+ defaultLogoUrl: recentGames.defaultLogoUrl,
78
+ onExpand: recentGames.onExpand
79
+ }
80
+ )
81
+ ] }),
82
+ /* @__PURE__ */ jsx3(
83
+ TeamSeasonStatsWidget,
84
+ {
85
+ sportId: seasonStats.sportId,
86
+ leagueId: seasonStats.leagueId,
87
+ seasons: seasonStats.seasons,
88
+ seasonsLoading: seasonStats.seasonsLoading,
89
+ summary: seasonStats.summary,
90
+ rankings: seasonStats.rankings,
91
+ statsLoading: seasonStats.statsLoading,
92
+ isSummaryError: seasonStats.isSummaryError,
93
+ isRankingsError: seasonStats.isRankingsError,
94
+ onRankClick: seasonStats.onRankClick,
95
+ className: "w-full"
96
+ }
97
+ )
98
+ ] }),
99
+ /* @__PURE__ */ jsx3(
100
+ TeamFactsWidget,
101
+ {
102
+ state: teamFacts.state,
103
+ resolveImageUrl,
104
+ resolveVenuePhotoUrl: teamFacts.resolveVenuePhotoUrl,
105
+ getRivalHref: teamFacts.getRivalHref,
106
+ className: "xl:w-[420px] xl:shrink-0"
107
+ }
108
+ ),
109
+ leaderboard && /* @__PURE__ */ jsx3(StatRankingLeaderboardDialog, { ...leaderboard })
110
+ ]
111
+ }
112
+ );
113
+ }
114
+ export {
115
+ TeamDashboardShell,
116
+ TeamScheduleShell,
117
+ TeamStatsShell
118
+ };
119
+ //# sourceMappingURL=team.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/team/team-stats-shell.tsx","../src/team/team-schedule-shell.tsx","../src/team/team-dashboard-shell.tsx"],"sourcesContent":["import type { TeamSeasonStatsResult } from \"@nukleus-sports/core\";\nimport {\n TeamStatsTable,\n TeamSeasonStatsSummaryPanel,\n type TeamStatsTableProps,\n} from \"@nukleus-sports/ui-patterns/team\";\nimport { cn } from \"@nukleus-sports/ui-web\";\n\n// Reconciled from both apps -- see RECONCILIATION.md#team-stats-shelltsx\n\nexport interface TeamStatsShellAdapter {\n table: Omit<TeamStatsTableProps, \"className\">;\n summaryStats: TeamSeasonStatsResult | null;\n summaryLoading?: boolean;\n isSummaryError?: boolean;\n}\n\nexport interface TeamStatsShellProps {\n adapter: TeamStatsShellAdapter;\n className?: string;\n}\n\n/** The Team page's Stats tab: the season stats summary panel above the per-game stats table. */\nexport function TeamStatsShell({ adapter, className }: TeamStatsShellProps) {\n const { table, summaryStats, summaryLoading = false, isSummaryError } = adapter;\n // Same terminal condition `TeamStatsTable` itself checks before showing its own seasons\n // error/empty state -- cached seasons with real years are still usable even if `isSeasonsError`\n // is also true (a background refetch failed), so only a genuinely empty/unloaded list suppresses\n // the panel. Doesn't apply while the sport itself is still unresolved or seasons are in flight --\n // that's the panel's own loading state (above), not a settled empty/error one.\n const hasNoUsableSeasons =\n table.sportId !== null &&\n !table.seasonsLoading &&\n (!table.seasons || table.seasons.years.length === 0);\n\n return (\n <div className={cn(\"flex flex-col gap-3\", className)}>\n {!table.isTeamError && !hasNoUsableSeasons && (\n <TeamSeasonStatsSummaryPanel\n sportId={table.sportId ?? 0}\n selectedYear={table.seasons?.selectedYear ?? null}\n selectedType={table.seasons?.selectedType ?? null}\n stats={summaryStats}\n loading={summaryLoading || table.sportId === null || Boolean(table.seasonsLoading)}\n isError={isSummaryError}\n />\n )}\n <TeamStatsTable {...table} />\n </div>\n );\n}\n","import type { SeasonSummary } from \"@nukleus-sports/core\";\nimport {\n TeamScheduleTable,\n TeamSeasonScheduleSummaryPanel,\n type TeamScheduleTableProps,\n} from \"@nukleus-sports/ui-patterns/team\";\nimport { cn } from \"@nukleus-sports/ui-web\";\n\n// Reconciled from both apps -- see RECONCILIATION.md#team-schedule-shelltsx\n\nexport interface TeamScheduleShellAdapter {\n table: Omit<TeamScheduleTableProps, \"className\">;\n summary: SeasonSummary | null;\n summaryLoading?: boolean;\n isSummaryError?: boolean;\n}\n\nexport interface TeamScheduleShellProps {\n adapter: TeamScheduleShellAdapter;\n className?: string;\n}\n\n/** The Team page's Schedule tab: the season summary panel above the full game list. */\nexport function TeamScheduleShell({ adapter, className }: TeamScheduleShellProps) {\n const { table, summary, summaryLoading = false, isSummaryError } = adapter;\n\n return (\n <div className={cn(\"flex flex-col gap-3\", className)}>\n <TeamSeasonScheduleSummaryPanel\n selectedYear={table.seasons?.selectedYear ?? null}\n selectedType={table.seasons?.selectedType ?? null}\n summary={summary}\n loading={summaryLoading}\n isError={isSummaryError}\n />\n <TeamScheduleTable {...table} />\n </div>\n );\n}\n","import {\n RecentGamesWidget,\n StatRankingLeaderboardDialog,\n TeamFactsWidget,\n TeamInfoCard,\n TeamSeasonStatsWidget,\n type RecentGamesStatus,\n type StatRankingLeaderboardDialogProps,\n type TeamFactsContentProps,\n type TeamInfoCardTeam,\n type TeamSeasonStatsRanking,\n type SeasonSelectorProps,\n} from \"@nukleus-sports/ui-patterns/team\";\nimport { type EntityImageResolver } from \"@nukleus-sports/ui-patterns\";\nimport { cn } from \"@nukleus-sports/ui-web\";\nimport type {\n RecentGameRow,\n TeamFactsWidgetState,\n TeamSeasonSummaryRecord,\n} from \"@nukleus-sports/core\";\n\n// Reconciled from both apps -- see RECONCILIATION.md#team-dashboard-shell\n\nexport interface TeamDashboardAdapter {\n team: TeamInfoCardTeam;\n /** Shared by `TeamInfoCard` and `TeamFactsWidget` -- both apps resolve these with one function. */\n resolveImageUrl?: EntityImageResolver;\n\n recentGames: {\n status: RecentGamesStatus;\n rows: RecentGameRow[];\n /** Can't return null (unlike `resolveImageUrl` above) -- falls back to `defaultLogoUrl` itself. */\n resolveImageUrl: (path: string) => string;\n defaultLogoUrl: string;\n /** Opens the full schedule. Omit to hide the header button. */\n onExpand?: () => void;\n };\n\n seasonStats: {\n sportId: number | null | undefined;\n leagueId: number | null | undefined;\n seasons?: Omit<SeasonSelectorProps, \"className\" | \"hideTypeOnMobile\">;\n seasonsLoading?: boolean;\n summary: TeamSeasonSummaryRecord | null | undefined;\n rankings: TeamSeasonStatsRanking[] | undefined;\n statsLoading?: boolean;\n isSummaryError?: boolean;\n isRankingsError?: boolean;\n /** Called with a ranking config id when its rank is clicked; drives `leaderboard` below. */\n onRankClick?: (configId: number) => void;\n };\n\n teamFacts: {\n state: TeamFactsWidgetState;\n resolveVenuePhotoUrl?: TeamFactsContentProps[\"resolveVenuePhotoUrl\"];\n /** Omit to render the rival's name as plain text instead of a link. */\n getRivalHref?: (rivalId: number) => string;\n };\n\n /**\n * Omit while no season is selected yet -- both real pages only mount the dialog once one is\n * (its own `open` prop still separately controls visibility once mounted).\n */\n leaderboard?: StatRankingLeaderboardDialogProps;\n}\n\nexport interface TeamDashboardShellProps {\n adapter: TeamDashboardAdapter;\n className?: string;\n}\n\n/**\n * The Team page's Dashboard tab: `TeamInfoCard` + `RecentGamesWidget` + `TeamSeasonStatsWidget` in\n * a flexed column, `TeamFactsWidget` beside it (stacked full width below `xl`).\n */\nexport function TeamDashboardShell({ adapter, className }: TeamDashboardShellProps) {\n const { team, resolveImageUrl, recentGames, seasonStats, teamFacts, leaderboard } = adapter;\n\n return (\n <div\n className={cn(\"flex flex-wrap items-start gap-3 xl:flex-nowrap xl:items-stretch\", className)}\n >\n <div className=\"flex w-full flex-col gap-3 xl:w-auto xl:min-w-0 xl:max-w-[852px] xl:flex-1\">\n <div className=\"grid grid-cols-1 min-[800px]:grid-cols-2 gap-4 min-[800px]:gap-3 xl:[&>*]:!w-auto\">\n <TeamInfoCard team={team} resolveImageUrl={resolveImageUrl} />\n <RecentGamesWidget\n status={recentGames.status}\n rows={recentGames.rows}\n resolveImageUrl={recentGames.resolveImageUrl}\n defaultLogoUrl={recentGames.defaultLogoUrl}\n onExpand={recentGames.onExpand}\n />\n </div>\n <TeamSeasonStatsWidget\n sportId={seasonStats.sportId}\n leagueId={seasonStats.leagueId}\n seasons={seasonStats.seasons}\n seasonsLoading={seasonStats.seasonsLoading}\n summary={seasonStats.summary}\n rankings={seasonStats.rankings}\n statsLoading={seasonStats.statsLoading}\n isSummaryError={seasonStats.isSummaryError}\n isRankingsError={seasonStats.isRankingsError}\n onRankClick={seasonStats.onRankClick}\n className=\"w-full\"\n />\n </div>\n <TeamFactsWidget\n state={teamFacts.state}\n resolveImageUrl={resolveImageUrl}\n resolveVenuePhotoUrl={teamFacts.resolveVenuePhotoUrl}\n getRivalHref={teamFacts.getRivalHref}\n className=\"xl:w-[420px] xl:shrink-0\"\n />\n {leaderboard && <StatRankingLeaderboardDialog {...leaderboard} />}\n </div>\n );\n}\n"],"mappings":"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","names":["cn","jsx","jsxs","cn","jsx","jsxs"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nukleus-sports/page-shells",
3
- "version": "0.5.1",
3
+ "version": "0.6.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -16,6 +16,11 @@
16
16
  "import": "./dist/marketing.js",
17
17
  "require": "./dist/marketing.cjs"
18
18
  },
19
+ "./team": {
20
+ "types": "./dist/team.d.ts",
21
+ "import": "./dist/team.js",
22
+ "require": "./dist/team.cjs"
23
+ },
19
24
  "./package.json": "./package.json"
20
25
  },
21
26
  "files": [
@@ -40,7 +45,8 @@
40
45
  "react-dom": "^18 || ^19"
41
46
  },
42
47
  "dependencies": {
43
- "@nukleus-sports/ui-patterns": "^0.5.0",
48
+ "@nukleus-sports/core": "^0.5.0",
49
+ "@nukleus-sports/ui-patterns": "^0.6.2",
44
50
  "@nukleus-sports/ui-web": "^0.2.0"
45
51
  },
46
52
  "devDependencies": {