@nukleus-sports/page-shells 0.6.4 → 0.7.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/dist/team.cjs CHANGED
@@ -31,21 +31,25 @@ var import_team = require("@nukleus-sports/ui-patterns/team");
31
31
  var import_ui_web = require("@nukleus-sports/ui-web");
32
32
  var import_jsx_runtime = require("react/jsx-runtime");
33
33
  function TeamStatsShell({ adapter, className }) {
34
- const { table, summaryStats, summaryLoading = false, isSummaryError } = adapter;
34
+ const { header, table, summaryStats, summaryLoading = false, isSummaryError } = adapter;
35
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 })
36
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: (0, import_ui_web.cn)("flex flex-col gap-3 xl:flex-1 xl:min-h-0 xl:overflow-hidden", className), children: [
37
+ header.team && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-col gap-3 min-[800px]:flex-row xl:shrink-0", children: [
38
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_team.TeamHeaderCard, { team: header.team, logoUrl: header.logoUrl, className: "flex-[6]" }),
39
+ !table.isTeamError && !hasNoUsableSeasons && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
40
+ import_team.TeamSeasonStatsSummaryPanel,
41
+ {
42
+ sportId: table.sportId ?? 0,
43
+ selectedYear: table.seasons?.selectedYear ?? null,
44
+ selectedType: table.seasons?.selectedType ?? null,
45
+ stats: summaryStats,
46
+ loading: summaryLoading || table.sportId === null || Boolean(table.seasonsLoading),
47
+ isError: isSummaryError,
48
+ className: "flex-[4]"
49
+ }
50
+ )
51
+ ] }),
52
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_team.TeamStatsTable, { ...table, className: "xl:flex-1 xl:min-h-0 xl:overflow-hidden" })
49
53
  ] });
50
54
  }
51
55
 
@@ -54,19 +58,23 @@ var import_team2 = require("@nukleus-sports/ui-patterns/team");
54
58
  var import_ui_web2 = require("@nukleus-sports/ui-web");
55
59
  var import_jsx_runtime2 = require("react/jsx-runtime");
56
60
  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 })
61
+ const { header, table, summary, summaryLoading = false, isSummaryError } = adapter;
62
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: (0, import_ui_web2.cn)("flex flex-col gap-3 xl:flex-1 xl:min-h-0 xl:overflow-hidden", className), children: [
63
+ header.team && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "flex flex-col gap-3 min-[800px]:flex-row xl:shrink-0", children: [
64
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_team2.TeamHeaderCard, { team: header.team, logoUrl: header.logoUrl, className: "flex-[6]" }),
65
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
66
+ import_team2.TeamSeasonScheduleSummaryPanel,
67
+ {
68
+ selectedYear: table.seasons?.selectedYear ?? null,
69
+ selectedType: table.seasons?.selectedType ?? null,
70
+ summary,
71
+ loading: summaryLoading,
72
+ isError: isSummaryError,
73
+ className: "flex-[4]"
74
+ }
75
+ )
76
+ ] }),
77
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_team2.TeamScheduleTable, { ...table, className: "xl:flex-1 xl:min-h-0 xl:overflow-hidden" })
70
78
  ] });
71
79
  }
72
80
 
package/dist/team.cjs.map CHANGED
@@ -1 +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=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A,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"]}
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 TeamHeaderCard,\n TeamStatsTable,\n TeamSeasonStatsSummaryPanel,\n type TeamInfoCardTeam,\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 /** `header` itself is required, but `header.team` may be `null` while the caller's team lookup\n * is still pending/failed -- the header row is then omitted entirely rather than fabricating a\n * team, so `table`'s own `isTeamError`/seasons-empty states can still carry the tab. */\n header: {\n team: TeamInfoCardTeam | null;\n logoUrl: string | null;\n };\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/**\n * The Team page's full Stats tab: the team header card and season stats summary panel side by\n * side (stacked below the `min-[800px]` breakpoint, matching both real apps), then the per-game\n * stats table.\n */\nexport function TeamStatsShell({ adapter, className }: TeamStatsShellProps) {\n const { header, 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 xl:flex-1 xl:min-h-0 xl:overflow-hidden\", className)}>\n {header.team && (\n <div className=\"flex flex-col gap-3 min-[800px]:flex-row xl:shrink-0\">\n <TeamHeaderCard team={header.team} logoUrl={header.logoUrl} className=\"flex-[6]\" />\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 className=\"flex-[4]\"\n />\n )}\n </div>\n )}\n <TeamStatsTable {...table} className=\"xl:flex-1 xl:min-h-0 xl:overflow-hidden\" />\n </div>\n );\n}\n","import type { SeasonSummary } from \"@nukleus-sports/core\";\nimport {\n TeamHeaderCard,\n TeamScheduleTable,\n TeamSeasonScheduleSummaryPanel,\n type TeamInfoCardTeam,\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 /** `header` itself is required, but `header.team` may be `null` while the caller's team lookup\n * is still pending/failed -- the header row is then omitted entirely rather than fabricating a\n * team, so `table`'s own `isTeamError`/`leagueId === null` states can still carry the tab. */\n header: {\n team: TeamInfoCardTeam | null;\n logoUrl: string | null;\n };\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/**\n * The Team page's full Schedule tab: the team header card and season summary panel side by side\n * (stacked below the `min-[800px]` breakpoint, matching both real apps), then the full game list.\n */\nexport function TeamScheduleShell({ adapter, className }: TeamScheduleShellProps) {\n const { header, table, summary, summaryLoading = false, isSummaryError } = adapter;\n\n return (\n <div className={cn(\"flex flex-col gap-3 xl:flex-1 xl:min-h-0 xl:overflow-hidden\", className)}>\n {header.team && (\n <div className=\"flex flex-col gap-3 min-[800px]:flex-row xl:shrink-0\">\n <TeamHeaderCard team={header.team} logoUrl={header.logoUrl} className=\"flex-[6]\" />\n <TeamSeasonScheduleSummaryPanel\n selectedYear={table.seasons?.selectedYear ?? null}\n selectedType={table.seasons?.selectedType ?? null}\n summary={summary}\n loading={summaryLoading}\n isError={isSummaryError}\n className=\"flex-[4]\"\n />\n </div>\n )}\n <TeamScheduleTable {...table} className=\"xl:flex-1 xl:min-h-0 xl:overflow-hidden\" />\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,kBAMO;AACP,oBAAmB;AA2CX;AAfD,SAAS,eAAe,EAAE,SAAS,UAAU,GAAwB;AAC1E,QAAM,EAAE,QAAQ,OAAO,cAAc,iBAAiB,OAAO,eAAe,IAAI;AAMhF,QAAM,qBACJ,MAAM,YAAY,QAClB,CAAC,MAAM,mBACN,CAAC,MAAM,WAAW,MAAM,QAAQ,MAAM,WAAW;AAEpD,SACE,6CAAC,SAAI,eAAW,kBAAG,+DAA+D,SAAS,GACxF;AAAA,WAAO,QACN,6CAAC,SAAI,WAAU,wDACb;AAAA,kDAAC,8BAAe,MAAM,OAAO,MAAM,SAAS,OAAO,SAAS,WAAU,YAAW;AAAA,MAChF,CAAC,MAAM,eAAe,CAAC,sBACtB;AAAA,QAAC;AAAA;AAAA,UACC,SAAS,MAAM,WAAW;AAAA,UAC1B,cAAc,MAAM,SAAS,gBAAgB;AAAA,UAC7C,cAAc,MAAM,SAAS,gBAAgB;AAAA,UAC7C,OAAO;AAAA,UACP,SAAS,kBAAkB,MAAM,YAAY,QAAQ,QAAQ,MAAM,cAAc;AAAA,U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,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"]}
package/dist/team.d.cts CHANGED
@@ -1,9 +1,16 @@
1
1
  import * as react from 'react';
2
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';
3
+ import { TeamInfoCardTeam, TeamStatsTableProps, TeamScheduleTableProps, RecentGamesStatus, SeasonSelectorProps, TeamSeasonStatsRanking, TeamFactsContentProps, StatRankingLeaderboardDialogProps } from '@nukleus-sports/ui-patterns/team';
4
4
  import { EntityImageResolver } from '@nukleus-sports/ui-patterns';
5
5
 
6
6
  interface TeamStatsShellAdapter {
7
+ /** `header` itself is required, but `header.team` may be `null` while the caller's team lookup
8
+ * is still pending/failed -- the header row is then omitted entirely rather than fabricating a
9
+ * team, so `table`'s own `isTeamError`/seasons-empty states can still carry the tab. */
10
+ header: {
11
+ team: TeamInfoCardTeam | null;
12
+ logoUrl: string | null;
13
+ };
7
14
  table: Omit<TeamStatsTableProps, "className">;
8
15
  summaryStats: TeamSeasonStatsResult | null;
9
16
  summaryLoading?: boolean;
@@ -13,10 +20,21 @@ interface TeamStatsShellProps {
13
20
  adapter: TeamStatsShellAdapter;
14
21
  className?: string;
15
22
  }
16
- /** The Team page's Stats tab: the season stats summary panel above the per-game stats table. */
23
+ /**
24
+ * The Team page's full Stats tab: the team header card and season stats summary panel side by
25
+ * side (stacked below the `min-[800px]` breakpoint, matching both real apps), then the per-game
26
+ * stats table.
27
+ */
17
28
  declare function TeamStatsShell({ adapter, className }: TeamStatsShellProps): react.JSX.Element;
18
29
 
19
30
  interface TeamScheduleShellAdapter {
31
+ /** `header` itself is required, but `header.team` may be `null` while the caller's team lookup
32
+ * is still pending/failed -- the header row is then omitted entirely rather than fabricating a
33
+ * team, so `table`'s own `isTeamError`/`leagueId === null` states can still carry the tab. */
34
+ header: {
35
+ team: TeamInfoCardTeam | null;
36
+ logoUrl: string | null;
37
+ };
20
38
  table: Omit<TeamScheduleTableProps, "className">;
21
39
  summary: SeasonSummary | null;
22
40
  summaryLoading?: boolean;
@@ -26,7 +44,10 @@ interface TeamScheduleShellProps {
26
44
  adapter: TeamScheduleShellAdapter;
27
45
  className?: string;
28
46
  }
29
- /** The Team page's Schedule tab: the season summary panel above the full game list. */
47
+ /**
48
+ * The Team page's full Schedule tab: the team header card and season summary panel side by side
49
+ * (stacked below the `min-[800px]` breakpoint, matching both real apps), then the full game list.
50
+ */
30
51
  declare function TeamScheduleShell({ adapter, className }: TeamScheduleShellProps): react.JSX.Element;
31
52
 
32
53
  interface TeamDashboardAdapter {
package/dist/team.d.ts CHANGED
@@ -1,9 +1,16 @@
1
1
  import * as react from 'react';
2
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';
3
+ import { TeamInfoCardTeam, TeamStatsTableProps, TeamScheduleTableProps, RecentGamesStatus, SeasonSelectorProps, TeamSeasonStatsRanking, TeamFactsContentProps, StatRankingLeaderboardDialogProps } from '@nukleus-sports/ui-patterns/team';
4
4
  import { EntityImageResolver } from '@nukleus-sports/ui-patterns';
5
5
 
6
6
  interface TeamStatsShellAdapter {
7
+ /** `header` itself is required, but `header.team` may be `null` while the caller's team lookup
8
+ * is still pending/failed -- the header row is then omitted entirely rather than fabricating a
9
+ * team, so `table`'s own `isTeamError`/seasons-empty states can still carry the tab. */
10
+ header: {
11
+ team: TeamInfoCardTeam | null;
12
+ logoUrl: string | null;
13
+ };
7
14
  table: Omit<TeamStatsTableProps, "className">;
8
15
  summaryStats: TeamSeasonStatsResult | null;
9
16
  summaryLoading?: boolean;
@@ -13,10 +20,21 @@ interface TeamStatsShellProps {
13
20
  adapter: TeamStatsShellAdapter;
14
21
  className?: string;
15
22
  }
16
- /** The Team page's Stats tab: the season stats summary panel above the per-game stats table. */
23
+ /**
24
+ * The Team page's full Stats tab: the team header card and season stats summary panel side by
25
+ * side (stacked below the `min-[800px]` breakpoint, matching both real apps), then the per-game
26
+ * stats table.
27
+ */
17
28
  declare function TeamStatsShell({ adapter, className }: TeamStatsShellProps): react.JSX.Element;
18
29
 
19
30
  interface TeamScheduleShellAdapter {
31
+ /** `header` itself is required, but `header.team` may be `null` while the caller's team lookup
32
+ * is still pending/failed -- the header row is then omitted entirely rather than fabricating a
33
+ * team, so `table`'s own `isTeamError`/`leagueId === null` states can still carry the tab. */
34
+ header: {
35
+ team: TeamInfoCardTeam | null;
36
+ logoUrl: string | null;
37
+ };
20
38
  table: Omit<TeamScheduleTableProps, "className">;
21
39
  summary: SeasonSummary | null;
22
40
  summaryLoading?: boolean;
@@ -26,7 +44,10 @@ interface TeamScheduleShellProps {
26
44
  adapter: TeamScheduleShellAdapter;
27
45
  className?: string;
28
46
  }
29
- /** The Team page's Schedule tab: the season summary panel above the full game list. */
47
+ /**
48
+ * The Team page's full Schedule tab: the team header card and season summary panel side by side
49
+ * (stacked below the `min-[800px]` breakpoint, matching both real apps), then the full game list.
50
+ */
30
51
  declare function TeamScheduleShell({ adapter, className }: TeamScheduleShellProps): react.JSX.Element;
31
52
 
32
53
  interface TeamDashboardAdapter {
package/dist/team.js CHANGED
@@ -1,50 +1,60 @@
1
1
  // src/team/team-stats-shell.tsx
2
2
  import {
3
+ TeamHeaderCard,
3
4
  TeamStatsTable,
4
5
  TeamSeasonStatsSummaryPanel
5
6
  } from "@nukleus-sports/ui-patterns/team";
6
7
  import { cn } from "@nukleus-sports/ui-web";
7
8
  import { jsx, jsxs } from "react/jsx-runtime";
8
9
  function TeamStatsShell({ adapter, className }) {
9
- const { table, summaryStats, summaryLoading = false, isSummaryError } = adapter;
10
+ const { header, table, summaryStats, summaryLoading = false, isSummaryError } = adapter;
10
11
  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 })
12
+ return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-3 xl:flex-1 xl:min-h-0 xl:overflow-hidden", className), children: [
13
+ header.team && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3 min-[800px]:flex-row xl:shrink-0", children: [
14
+ /* @__PURE__ */ jsx(TeamHeaderCard, { team: header.team, logoUrl: header.logoUrl, className: "flex-[6]" }),
15
+ !table.isTeamError && !hasNoUsableSeasons && /* @__PURE__ */ jsx(
16
+ TeamSeasonStatsSummaryPanel,
17
+ {
18
+ sportId: table.sportId ?? 0,
19
+ selectedYear: table.seasons?.selectedYear ?? null,
20
+ selectedType: table.seasons?.selectedType ?? null,
21
+ stats: summaryStats,
22
+ loading: summaryLoading || table.sportId === null || Boolean(table.seasonsLoading),
23
+ isError: isSummaryError,
24
+ className: "flex-[4]"
25
+ }
26
+ )
27
+ ] }),
28
+ /* @__PURE__ */ jsx(TeamStatsTable, { ...table, className: "xl:flex-1 xl:min-h-0 xl:overflow-hidden" })
24
29
  ] });
25
30
  }
26
31
 
27
32
  // src/team/team-schedule-shell.tsx
28
33
  import {
34
+ TeamHeaderCard as TeamHeaderCard2,
29
35
  TeamScheduleTable,
30
36
  TeamSeasonScheduleSummaryPanel
31
37
  } from "@nukleus-sports/ui-patterns/team";
32
38
  import { cn as cn2 } from "@nukleus-sports/ui-web";
33
39
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
34
40
  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 })
41
+ const { header, table, summary, summaryLoading = false, isSummaryError } = adapter;
42
+ return /* @__PURE__ */ jsxs2("div", { className: cn2("flex flex-col gap-3 xl:flex-1 xl:min-h-0 xl:overflow-hidden", className), children: [
43
+ header.team && /* @__PURE__ */ jsxs2("div", { className: "flex flex-col gap-3 min-[800px]:flex-row xl:shrink-0", children: [
44
+ /* @__PURE__ */ jsx2(TeamHeaderCard2, { team: header.team, logoUrl: header.logoUrl, className: "flex-[6]" }),
45
+ /* @__PURE__ */ jsx2(
46
+ TeamSeasonScheduleSummaryPanel,
47
+ {
48
+ selectedYear: table.seasons?.selectedYear ?? null,
49
+ selectedType: table.seasons?.selectedType ?? null,
50
+ summary,
51
+ loading: summaryLoading,
52
+ isError: isSummaryError,
53
+ className: "flex-[4]"
54
+ }
55
+ )
56
+ ] }),
57
+ /* @__PURE__ */ jsx2(TeamScheduleTable, { ...table, className: "xl:flex-1 xl:min-h-0 xl:overflow-hidden" })
48
58
  ] });
49
59
  }
50
60
 
package/dist/team.js.map CHANGED
@@ -1 +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":";AACA;AAAA,EACE;AAAA,EACA;AA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tsx","../src/team/team-schedule-shell.tsx","../src/team/team-dashboard-shell.tsx"],"sourcesContent":["import type { TeamSeasonStatsResult } from \"@nukleus-sports/core\";\nimport {\n TeamHeaderCard,\n TeamStatsTable,\n TeamSeasonStatsSummaryPanel,\n type TeamInfoCardTeam,\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 /** `header` itself is required, but `header.team` may be `null` while the caller's team lookup\n * is still pending/failed -- the header row is then omitted entirely rather than fabricating a\n * team, so `table`'s own `isTeamError`/seasons-empty states can still carry the tab. */\n header: {\n team: TeamInfoCardTeam | null;\n logoUrl: string | null;\n };\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/**\n * The Team page's full Stats tab: the team header card and season stats summary panel side by\n * side (stacked below the `min-[800px]` breakpoint, matching both real apps), then the per-game\n * stats table.\n */\nexport function TeamStatsShell({ adapter, className }: TeamStatsShellProps) {\n const { header, 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 xl:flex-1 xl:min-h-0 xl:overflow-hidden\", className)}>\n {header.team && (\n <div className=\"flex flex-col gap-3 min-[800px]:flex-row xl:shrink-0\">\n <TeamHeaderCard team={header.team} logoUrl={header.logoUrl} className=\"flex-[6]\" />\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 className=\"flex-[4]\"\n />\n )}\n </div>\n )}\n <TeamStatsTable {...table} className=\"xl:flex-1 xl:min-h-0 xl:overflow-hidden\" />\n </div>\n );\n}\n","import type { SeasonSummary } from \"@nukleus-sports/core\";\nimport {\n TeamHeaderCard,\n TeamScheduleTable,\n TeamSeasonScheduleSummaryPanel,\n type TeamInfoCardTeam,\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 /** `header` itself is required, but `header.team` may be `null` while the caller's team lookup\n * is still pending/failed -- the header row is then omitted entirely rather than fabricating a\n * team, so `table`'s own `isTeamError`/`leagueId === null` states can still carry the tab. */\n header: {\n team: TeamInfoCardTeam | null;\n logoUrl: string | null;\n };\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/**\n * The Team page's full Schedule tab: the team header card and season summary panel side by side\n * (stacked below the `min-[800px]` breakpoint, matching both real apps), then the full game list.\n */\nexport function TeamScheduleShell({ adapter, className }: TeamScheduleShellProps) {\n const { header, table, summary, summaryLoading = false, isSummaryError } = adapter;\n\n return (\n <div className={cn(\"flex flex-col gap-3 xl:flex-1 xl:min-h-0 xl:overflow-hidden\", className)}>\n {header.team && (\n <div className=\"flex flex-col gap-3 min-[800px]:flex-row xl:shrink-0\">\n <TeamHeaderCard team={header.team} logoUrl={header.logoUrl} className=\"flex-[6]\" />\n <TeamSeasonScheduleSummaryPanel\n selectedYear={table.seasons?.selectedYear ?? null}\n selectedType={table.seasons?.selectedType ?? null}\n summary={summary}\n loading={summaryLoading}\n isError={isSummaryError}\n className=\"flex-[4]\"\n />\n </div>\n )}\n <TeamScheduleTable {...table} className=\"xl:flex-1 xl:min-h-0 xl:overflow-hidden\" />\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":";AACA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAGK;AACP,SAAS,UAAU;AA2CX,SACE,KADF;AAfD,SAAS,eAAe,EAAE,SAAS,UAAU,GAAwB;AAC1E,QAAM,EAAE,QAAQ,OAAO,cAAc,iBAAiB,OAAO,eAAe,IAAI;AAMhF,QAAM,qBACJ,MAAM,YAAY,QAClB,CAAC,MAAM,mBACN,CAAC,MAAM,WAAW,MAAM,QAAQ,MAAM,WAAW;AAEpD,SACE,qBAAC,SAAI,WAAW,GAAG,+DAA+D,SAAS,GACxF;AAAA,WAAO,QACN,qBAAC,SAAI,WAAU,wDACb;AAAA,0BAAC,kBAAe,MAAM,OAAO,MAAM,SAAS,OAAO,SAAS,WAAU,YAAW;AAAA,MAChF,CAAC,MAAM,eAAe,CAAC,sBACtB;AAAA,QAAC;AAAA;AAAA,UACC,SAAS,MAAM,WAAW;AAAA,UAC1B,cAAc,MAAM,SAAS,gBAAgB;AAAA,UAC7C,cAAc,MAAM,SAAS,gBAAgB;AAAA,UAC7C,OAAO;AAAA,UACP,SAAS,kBAAkB,MAAM,YAAY,QAAQ,QAAQ,MAAM,cAAc;AAAA,UACjF,SAAS;AAAA,UACT,WAAU;AAAA;AAAA,MACZ;AAAA,OAEJ;AAAA,IAEF,oBAAC,kBAAgB,GAAG,OAAO,WAAU,2CAA0C;AAAA,KACjF;AAEJ;;;ACpEA;AAAA,EACE,kBAAAA;AAAA,EACA;AAAA,EACA;AAAA,OAGK;AACP,SAAS,MAAAC,WAAU;AAiCX,SACE,OAAAC,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U,YAAY;AAAA;AAAA,YACxB;AAAA,aACF;AAAA,UACA,gBAAAA;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,gBAAAA;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,gBAAAA,KAAC,gCAA8B,GAAG,aAAa;AAAA;AAAA;AAAA,EACjE;AAEJ;","names":["TeamHeaderCard","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.6.4",
3
+ "version": "0.7.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -45,9 +45,9 @@
45
45
  "react-dom": "^18 || ^19"
46
46
  },
47
47
  "dependencies": {
48
- "@nukleus-sports/core": "^0.5.0",
49
- "@nukleus-sports/ui-patterns": "^0.6.4",
50
- "@nukleus-sports/ui-web": "^0.2.0"
48
+ "@nukleus-sports/core": "^0.7.0",
49
+ "@nukleus-sports/ui-patterns": "^0.7.1",
50
+ "@nukleus-sports/ui-web": "^0.2.1"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@testing-library/jest-dom": "^6.9.1",