@nukleus-sports/page-shells 0.7.1 → 0.8.0
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 +39 -0
- package/dist/team.cjs.map +1 -1
- package/dist/team.d.cts +28 -2
- package/dist/team.d.ts +28 -2
- package/dist/team.js +53 -0
- package/dist/team.js.map +1 -1
- package/package.json +2 -2
package/dist/team.cjs
CHANGED
|
@@ -21,6 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
var team_exports = {};
|
|
22
22
|
__export(team_exports, {
|
|
23
23
|
TeamDashboardShell: () => TeamDashboardShell,
|
|
24
|
+
TeamRosterShell: () => TeamRosterShell,
|
|
24
25
|
TeamScheduleShell: () => TeamScheduleShell,
|
|
25
26
|
TeamStatsShell: () => TeamStatsShell
|
|
26
27
|
});
|
|
@@ -135,9 +136,47 @@ function TeamDashboardShell({ adapter, className }) {
|
|
|
135
136
|
}
|
|
136
137
|
);
|
|
137
138
|
}
|
|
139
|
+
|
|
140
|
+
// src/team/team-roster-shell.tsx
|
|
141
|
+
var import_team4 = require("@nukleus-sports/ui-patterns/team");
|
|
142
|
+
var import_ui_web4 = require("@nukleus-sports/ui-web");
|
|
143
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
144
|
+
var TRIGGER_CLASS = "flex-1 bg-card text-[13px] text-text-primary data-[state=active]:bg-card data-[state=active]:text-primary-color-nuk-text data-[state=active]:shadow-none border-b border-greys-grey-strokes-tables data-[state=active]:border-primary-color-nuk-ui-elem rounded-none px-0 pb-2 mb-[-1px] relative after:absolute after:left-0 after:-bottom-[1px] after:w-full after:h-[2px] after:content-[''] after:bg-transparent data-[state=active]:after:bg-primary-color-nuk-ui-elem";
|
|
145
|
+
var FILL = "xl:flex xl:flex-1 xl:min-h-0 xl:flex-col xl:overflow-hidden";
|
|
146
|
+
var PANEL_CLASS = (0, import_ui_web4.cn)("mt-3 data-[state=inactive]:hidden", FILL);
|
|
147
|
+
var TABLE_FILL = "xl:flex-1 xl:min-h-0 xl:overflow-hidden";
|
|
148
|
+
function TeamRosterShell({ adapter, className }) {
|
|
149
|
+
const { header, subTab, onSubTabChange, players, staff } = adapter;
|
|
150
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: (0, import_ui_web4.cn)("flex flex-col gap-3 xl:flex-1 xl:min-h-0 xl:overflow-hidden", className), children: [
|
|
151
|
+
header.team && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "flex flex-col gap-3 min-[800px]:flex-row xl:shrink-0", children: [
|
|
152
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_team4.TeamHeaderCard, { team: header.team, logoUrl: header.logoUrl, className: "flex-[6]" }),
|
|
153
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_team4.TeamPlacesCard, { team: header.team, className: "flex-[4]" })
|
|
154
|
+
] }),
|
|
155
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_ui_web4.Card, { className: "border-none p-4 flex flex-col gap-3 xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: [
|
|
156
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_ui_web4.CardHeader, { className: "p-0 shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_ui_web4.CardTitle, { children: "Team Roster" }) }),
|
|
157
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_ui_web4.CardContent, { className: "space-y-0 p-0 flex flex-col gap-3 xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
158
|
+
import_ui_web4.Tabs,
|
|
159
|
+
{
|
|
160
|
+
value: subTab,
|
|
161
|
+
onValueChange: (value) => onSubTabChange(value),
|
|
162
|
+
className: (0, import_ui_web4.cn)("w-full", FILL),
|
|
163
|
+
children: [
|
|
164
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_ui_web4.TabsList, { className: "grid w-full shrink-0 grid-cols-2 bg-transparent border-b rounded-none h-auto p-0 text-text-primary", children: [
|
|
165
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_ui_web4.TabsTrigger, { value: "players", className: TRIGGER_CLASS, children: "Players" }),
|
|
166
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_ui_web4.TabsTrigger, { value: "staff", className: TRIGGER_CLASS, children: "Staff" })
|
|
167
|
+
] }),
|
|
168
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_ui_web4.TabsContent, { value: "players", className: PANEL_CLASS, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: (0, import_ui_web4.cn)("w-full", FILL), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_team4.TeamRosterTable, { ...players, className: TABLE_FILL }) }) }),
|
|
169
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_ui_web4.TabsContent, { value: "staff", className: PANEL_CLASS, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: (0, import_ui_web4.cn)("w-full", FILL), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_team4.TeamStaffTable, { ...staff, className: TABLE_FILL }) }) })
|
|
170
|
+
]
|
|
171
|
+
}
|
|
172
|
+
) })
|
|
173
|
+
] })
|
|
174
|
+
] });
|
|
175
|
+
}
|
|
138
176
|
// Annotate the CommonJS export names for ESM import in node:
|
|
139
177
|
0 && (module.exports = {
|
|
140
178
|
TeamDashboardShell,
|
|
179
|
+
TeamRosterShell,
|
|
141
180
|
TeamScheduleShell,
|
|
142
181
|
TeamStatsShell
|
|
143
182
|
});
|
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 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,UACjF,SAAS;AAAA,UACT,WAAU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,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","../src/team/team-roster-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\";\nexport {\n TeamRosterShell,\n type TeamRosterShellAdapter,\n type TeamRosterShellProps,\n type TeamRosterSubTab,\n} from \"./team-roster-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","import {\n TeamHeaderCard,\n TeamPlacesCard,\n TeamRosterTable,\n TeamStaffTable,\n type TeamInfoCardTeam,\n type TeamRosterTableProps,\n type TeamStaffTableProps,\n} from \"@nukleus-sports/ui-patterns/team\";\nimport {\n Card,\n CardContent,\n CardHeader,\n CardTitle,\n Tabs,\n TabsContent,\n TabsList,\n TabsTrigger,\n cn,\n} from \"@nukleus-sports/ui-web\";\n\n// Reconciled from both apps -- see RECONCILIATION.md#team-roster-shelltsx\n\nexport type TeamRosterSubTab = \"players\" | \"staff\";\n\nexport interface TeamRosterShellAdapter {\n /** `header.team` may be `null` while the caller's team lookup is pending/failed -- the header\n * row is then omitted entirely rather than fabricating a team. */\n header: {\n team: TeamInfoCardTeam | null;\n logoUrl: string | null;\n };\n /** Controlled: the apps only fetch coaches once the Staff sub-tab is opened. */\n subTab: TeamRosterSubTab;\n onSubTabChange: (subTab: TeamRosterSubTab) => void;\n /** `isSplitLayout` is for viewports below `xl` only: the `xl:` containment chain below assumes\n * a bounded height, while split tables rely on page scrolling. */\n players: Omit<TeamRosterTableProps, \"className\">;\n staff: Omit<TeamStaffTableProps, \"className\">;\n}\n\nexport interface TeamRosterShellProps {\n adapter: TeamRosterShellAdapter;\n className?: string;\n}\n\nconst TRIGGER_CLASS =\n \"flex-1 bg-card text-[13px] text-text-primary data-[state=active]:bg-card data-[state=active]:text-primary-color-nuk-text data-[state=active]:shadow-none border-b border-greys-grey-strokes-tables data-[state=active]:border-primary-color-nuk-ui-elem rounded-none px-0 pb-2 mb-[-1px] relative after:absolute after:left-0 after:-bottom-[1px] after:w-full after:h-[2px] after:content-[''] after:bg-transparent data-[state=active]:after:bg-primary-color-nuk-ui-elem\";\n\nconst FILL = \"xl:flex xl:flex-1 xl:min-h-0 xl:flex-col xl:overflow-hidden\";\n// `xl:flex` outranks Radix's `hidden` attribute, so an inactive panel must be hidden explicitly.\nconst PANEL_CLASS = cn(\"mt-3 data-[state=inactive]:hidden\", FILL);\nconst TABLE_FILL = \"xl:flex-1 xl:min-h-0 xl:overflow-hidden\";\n\n/**\n * The Team page's Team (roster) tab: the team header card beside the venue/facility/website card\n * (stacked below `min-[800px]`), then the Players/Staff roster card.\n */\nexport function TeamRosterShell({ adapter, className }: TeamRosterShellProps) {\n const { header, subTab, onSubTabChange, players, staff } = 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 <TeamPlacesCard team={header.team} className=\"flex-[4]\" />\n </div>\n )}\n <Card className=\"border-none p-4 flex flex-col gap-3 xl:flex-1 xl:min-h-0 xl:overflow-hidden\">\n <CardHeader className=\"p-0 shrink-0\">\n <CardTitle>Team Roster</CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-0 p-0 flex flex-col gap-3 xl:flex-1 xl:min-h-0 xl:overflow-hidden\">\n <Tabs\n value={subTab}\n onValueChange={(value) => onSubTabChange(value as TeamRosterSubTab)}\n className={cn(\"w-full\", FILL)}\n >\n <TabsList className=\"grid w-full shrink-0 grid-cols-2 bg-transparent border-b rounded-none h-auto p-0 text-text-primary\">\n <TabsTrigger value=\"players\" className={TRIGGER_CLASS}>\n Players\n </TabsTrigger>\n <TabsTrigger value=\"staff\" className={TRIGGER_CLASS}>\n Staff\n </TabsTrigger>\n </TabsList>\n <TabsContent value=\"players\" className={PANEL_CLASS}>\n <div className={cn(\"w-full\", FILL)}>\n <TeamRosterTable {...players} className={TABLE_FILL} />\n </div>\n </TabsContent>\n <TabsContent value=\"staff\" className={PANEL_CLASS}>\n <div className={cn(\"w-full\", FILL)}>\n <TeamStaffTable {...staff} className={TABLE_FILL} />\n </div>\n </TabsContent>\n </Tabs>\n </CardContent>\n </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AAA,YACA,6CAAC,8BAAY,OAAM,SAAQ,WAAW,aACpC,uDAAC,SAAI,eAAW,mBAAG,UAAU,IAAI,GAC/B,uDAAC,+BAAgB,GAAG,OAAO,WAAW,YAAY,GACpD,GACF;AAAA;AAAA;AAAA,MACF,GACF;AAAA,OACF;AAAA,KACF;AAEJ;","names":["import_team","import_ui_web","import_jsx_runtime","import_team","import_ui_web","import_jsx_runtime","import_team","import_ui_web","import_jsx_runtime"]}
|
package/dist/team.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { TeamSeasonStatsResult, SeasonSummary, RecentGameRow, TeamSeasonSummaryRecord, TeamFactsWidgetState } from '@nukleus-sports/core';
|
|
3
|
-
import { TeamInfoCardTeam, TeamStatsTableProps, TeamScheduleTableProps, RecentGamesStatus, SeasonSelectorProps, TeamSeasonStatsRanking, TeamFactsContentProps, StatRankingLeaderboardDialogProps } from '@nukleus-sports/ui-patterns/team';
|
|
3
|
+
import { TeamInfoCardTeam, TeamStatsTableProps, TeamScheduleTableProps, RecentGamesStatus, SeasonSelectorProps, TeamSeasonStatsRanking, TeamFactsContentProps, StatRankingLeaderboardDialogProps, TeamRosterTableProps, TeamStaffTableProps } from '@nukleus-sports/ui-patterns/team';
|
|
4
4
|
import { EntityImageResolver } from '@nukleus-sports/ui-patterns';
|
|
5
5
|
|
|
6
6
|
interface TeamStatsShellAdapter {
|
|
@@ -98,4 +98,30 @@ interface TeamDashboardShellProps {
|
|
|
98
98
|
*/
|
|
99
99
|
declare function TeamDashboardShell({ adapter, className }: TeamDashboardShellProps): react.JSX.Element;
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
type TeamRosterSubTab = "players" | "staff";
|
|
102
|
+
interface TeamRosterShellAdapter {
|
|
103
|
+
/** `header.team` may be `null` while the caller's team lookup is pending/failed -- the header
|
|
104
|
+
* row is then omitted entirely rather than fabricating a team. */
|
|
105
|
+
header: {
|
|
106
|
+
team: TeamInfoCardTeam | null;
|
|
107
|
+
logoUrl: string | null;
|
|
108
|
+
};
|
|
109
|
+
/** Controlled: the apps only fetch coaches once the Staff sub-tab is opened. */
|
|
110
|
+
subTab: TeamRosterSubTab;
|
|
111
|
+
onSubTabChange: (subTab: TeamRosterSubTab) => void;
|
|
112
|
+
/** `isSplitLayout` is for viewports below `xl` only: the `xl:` containment chain below assumes
|
|
113
|
+
* a bounded height, while split tables rely on page scrolling. */
|
|
114
|
+
players: Omit<TeamRosterTableProps, "className">;
|
|
115
|
+
staff: Omit<TeamStaffTableProps, "className">;
|
|
116
|
+
}
|
|
117
|
+
interface TeamRosterShellProps {
|
|
118
|
+
adapter: TeamRosterShellAdapter;
|
|
119
|
+
className?: string;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* The Team page's Team (roster) tab: the team header card beside the venue/facility/website card
|
|
123
|
+
* (stacked below `min-[800px]`), then the Players/Staff roster card.
|
|
124
|
+
*/
|
|
125
|
+
declare function TeamRosterShell({ adapter, className }: TeamRosterShellProps): react.JSX.Element;
|
|
126
|
+
|
|
127
|
+
export { type TeamDashboardAdapter, TeamDashboardShell, type TeamDashboardShellProps, TeamRosterShell, type TeamRosterShellAdapter, type TeamRosterShellProps, type TeamRosterSubTab, TeamScheduleShell, type TeamScheduleShellAdapter, type TeamScheduleShellProps, TeamStatsShell, type TeamStatsShellAdapter, type TeamStatsShellProps };
|
package/dist/team.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { TeamSeasonStatsResult, SeasonSummary, RecentGameRow, TeamSeasonSummaryRecord, TeamFactsWidgetState } from '@nukleus-sports/core';
|
|
3
|
-
import { TeamInfoCardTeam, TeamStatsTableProps, TeamScheduleTableProps, RecentGamesStatus, SeasonSelectorProps, TeamSeasonStatsRanking, TeamFactsContentProps, StatRankingLeaderboardDialogProps } from '@nukleus-sports/ui-patterns/team';
|
|
3
|
+
import { TeamInfoCardTeam, TeamStatsTableProps, TeamScheduleTableProps, RecentGamesStatus, SeasonSelectorProps, TeamSeasonStatsRanking, TeamFactsContentProps, StatRankingLeaderboardDialogProps, TeamRosterTableProps, TeamStaffTableProps } from '@nukleus-sports/ui-patterns/team';
|
|
4
4
|
import { EntityImageResolver } from '@nukleus-sports/ui-patterns';
|
|
5
5
|
|
|
6
6
|
interface TeamStatsShellAdapter {
|
|
@@ -98,4 +98,30 @@ interface TeamDashboardShellProps {
|
|
|
98
98
|
*/
|
|
99
99
|
declare function TeamDashboardShell({ adapter, className }: TeamDashboardShellProps): react.JSX.Element;
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
type TeamRosterSubTab = "players" | "staff";
|
|
102
|
+
interface TeamRosterShellAdapter {
|
|
103
|
+
/** `header.team` may be `null` while the caller's team lookup is pending/failed -- the header
|
|
104
|
+
* row is then omitted entirely rather than fabricating a team. */
|
|
105
|
+
header: {
|
|
106
|
+
team: TeamInfoCardTeam | null;
|
|
107
|
+
logoUrl: string | null;
|
|
108
|
+
};
|
|
109
|
+
/** Controlled: the apps only fetch coaches once the Staff sub-tab is opened. */
|
|
110
|
+
subTab: TeamRosterSubTab;
|
|
111
|
+
onSubTabChange: (subTab: TeamRosterSubTab) => void;
|
|
112
|
+
/** `isSplitLayout` is for viewports below `xl` only: the `xl:` containment chain below assumes
|
|
113
|
+
* a bounded height, while split tables rely on page scrolling. */
|
|
114
|
+
players: Omit<TeamRosterTableProps, "className">;
|
|
115
|
+
staff: Omit<TeamStaffTableProps, "className">;
|
|
116
|
+
}
|
|
117
|
+
interface TeamRosterShellProps {
|
|
118
|
+
adapter: TeamRosterShellAdapter;
|
|
119
|
+
className?: string;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* The Team page's Team (roster) tab: the team header card beside the venue/facility/website card
|
|
123
|
+
* (stacked below `min-[800px]`), then the Players/Staff roster card.
|
|
124
|
+
*/
|
|
125
|
+
declare function TeamRosterShell({ adapter, className }: TeamRosterShellProps): react.JSX.Element;
|
|
126
|
+
|
|
127
|
+
export { type TeamDashboardAdapter, TeamDashboardShell, type TeamDashboardShellProps, TeamRosterShell, type TeamRosterShellAdapter, type TeamRosterShellProps, type TeamRosterSubTab, TeamScheduleShell, type TeamScheduleShellAdapter, type TeamScheduleShellProps, TeamStatsShell, type TeamStatsShellAdapter, type TeamStatsShellProps };
|
package/dist/team.js
CHANGED
|
@@ -121,8 +121,61 @@ function TeamDashboardShell({ adapter, className }) {
|
|
|
121
121
|
}
|
|
122
122
|
);
|
|
123
123
|
}
|
|
124
|
+
|
|
125
|
+
// src/team/team-roster-shell.tsx
|
|
126
|
+
import {
|
|
127
|
+
TeamHeaderCard as TeamHeaderCard3,
|
|
128
|
+
TeamPlacesCard,
|
|
129
|
+
TeamRosterTable,
|
|
130
|
+
TeamStaffTable
|
|
131
|
+
} from "@nukleus-sports/ui-patterns/team";
|
|
132
|
+
import {
|
|
133
|
+
Card,
|
|
134
|
+
CardContent,
|
|
135
|
+
CardHeader,
|
|
136
|
+
CardTitle,
|
|
137
|
+
Tabs,
|
|
138
|
+
TabsContent,
|
|
139
|
+
TabsList,
|
|
140
|
+
TabsTrigger,
|
|
141
|
+
cn as cn4
|
|
142
|
+
} from "@nukleus-sports/ui-web";
|
|
143
|
+
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
144
|
+
var TRIGGER_CLASS = "flex-1 bg-card text-[13px] text-text-primary data-[state=active]:bg-card data-[state=active]:text-primary-color-nuk-text data-[state=active]:shadow-none border-b border-greys-grey-strokes-tables data-[state=active]:border-primary-color-nuk-ui-elem rounded-none px-0 pb-2 mb-[-1px] relative after:absolute after:left-0 after:-bottom-[1px] after:w-full after:h-[2px] after:content-[''] after:bg-transparent data-[state=active]:after:bg-primary-color-nuk-ui-elem";
|
|
145
|
+
var FILL = "xl:flex xl:flex-1 xl:min-h-0 xl:flex-col xl:overflow-hidden";
|
|
146
|
+
var PANEL_CLASS = cn4("mt-3 data-[state=inactive]:hidden", FILL);
|
|
147
|
+
var TABLE_FILL = "xl:flex-1 xl:min-h-0 xl:overflow-hidden";
|
|
148
|
+
function TeamRosterShell({ adapter, className }) {
|
|
149
|
+
const { header, subTab, onSubTabChange, players, staff } = adapter;
|
|
150
|
+
return /* @__PURE__ */ jsxs4("div", { className: cn4("flex flex-col gap-3 xl:flex-1 xl:min-h-0 xl:overflow-hidden", className), children: [
|
|
151
|
+
header.team && /* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-3 min-[800px]:flex-row xl:shrink-0", children: [
|
|
152
|
+
/* @__PURE__ */ jsx4(TeamHeaderCard3, { team: header.team, logoUrl: header.logoUrl, className: "flex-[6]" }),
|
|
153
|
+
/* @__PURE__ */ jsx4(TeamPlacesCard, { team: header.team, className: "flex-[4]" })
|
|
154
|
+
] }),
|
|
155
|
+
/* @__PURE__ */ jsxs4(Card, { className: "border-none p-4 flex flex-col gap-3 xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: [
|
|
156
|
+
/* @__PURE__ */ jsx4(CardHeader, { className: "p-0 shrink-0", children: /* @__PURE__ */ jsx4(CardTitle, { children: "Team Roster" }) }),
|
|
157
|
+
/* @__PURE__ */ jsx4(CardContent, { className: "space-y-0 p-0 flex flex-col gap-3 xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: /* @__PURE__ */ jsxs4(
|
|
158
|
+
Tabs,
|
|
159
|
+
{
|
|
160
|
+
value: subTab,
|
|
161
|
+
onValueChange: (value) => onSubTabChange(value),
|
|
162
|
+
className: cn4("w-full", FILL),
|
|
163
|
+
children: [
|
|
164
|
+
/* @__PURE__ */ jsxs4(TabsList, { className: "grid w-full shrink-0 grid-cols-2 bg-transparent border-b rounded-none h-auto p-0 text-text-primary", children: [
|
|
165
|
+
/* @__PURE__ */ jsx4(TabsTrigger, { value: "players", className: TRIGGER_CLASS, children: "Players" }),
|
|
166
|
+
/* @__PURE__ */ jsx4(TabsTrigger, { value: "staff", className: TRIGGER_CLASS, children: "Staff" })
|
|
167
|
+
] }),
|
|
168
|
+
/* @__PURE__ */ jsx4(TabsContent, { value: "players", className: PANEL_CLASS, children: /* @__PURE__ */ jsx4("div", { className: cn4("w-full", FILL), children: /* @__PURE__ */ jsx4(TeamRosterTable, { ...players, className: TABLE_FILL }) }) }),
|
|
169
|
+
/* @__PURE__ */ jsx4(TabsContent, { value: "staff", className: PANEL_CLASS, children: /* @__PURE__ */ jsx4("div", { className: cn4("w-full", FILL), children: /* @__PURE__ */ jsx4(TeamStaffTable, { ...staff, className: TABLE_FILL }) }) })
|
|
170
|
+
]
|
|
171
|
+
}
|
|
172
|
+
) })
|
|
173
|
+
] })
|
|
174
|
+
] });
|
|
175
|
+
}
|
|
124
176
|
export {
|
|
125
177
|
TeamDashboardShell,
|
|
178
|
+
TeamRosterShell,
|
|
126
179
|
TeamScheduleShell,
|
|
127
180
|
TeamStatsShell
|
|
128
181
|
};
|
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 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,G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A,EACjE;AAEJ;","names":["TeamHeaderCard","cn","jsx","jsxs","cn","jsx","jsxs"]}
|
|
1
|
+
{"version":3,"sources":["../src/team/team-stats-shell.tsx","../src/team/team-schedule-shell.tsx","../src/team/team-dashboard-shell.tsx","../src/team/team-roster-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","import {\n TeamHeaderCard,\n TeamPlacesCard,\n TeamRosterTable,\n TeamStaffTable,\n type TeamInfoCardTeam,\n type TeamRosterTableProps,\n type TeamStaffTableProps,\n} from \"@nukleus-sports/ui-patterns/team\";\nimport {\n Card,\n CardContent,\n CardHeader,\n CardTitle,\n Tabs,\n TabsContent,\n TabsList,\n TabsTrigger,\n cn,\n} from \"@nukleus-sports/ui-web\";\n\n// Reconciled from both apps -- see RECONCILIATION.md#team-roster-shelltsx\n\nexport type TeamRosterSubTab = \"players\" | \"staff\";\n\nexport interface TeamRosterShellAdapter {\n /** `header.team` may be `null` while the caller's team lookup is pending/failed -- the header\n * row is then omitted entirely rather than fabricating a team. */\n header: {\n team: TeamInfoCardTeam | null;\n logoUrl: string | null;\n };\n /** Controlled: the apps only fetch coaches once the Staff sub-tab is opened. */\n subTab: TeamRosterSubTab;\n onSubTabChange: (subTab: TeamRosterSubTab) => void;\n /** `isSplitLayout` is for viewports below `xl` only: the `xl:` containment chain below assumes\n * a bounded height, while split tables rely on page scrolling. */\n players: Omit<TeamRosterTableProps, \"className\">;\n staff: Omit<TeamStaffTableProps, \"className\">;\n}\n\nexport interface TeamRosterShellProps {\n adapter: TeamRosterShellAdapter;\n className?: string;\n}\n\nconst TRIGGER_CLASS =\n \"flex-1 bg-card text-[13px] text-text-primary data-[state=active]:bg-card data-[state=active]:text-primary-color-nuk-text data-[state=active]:shadow-none border-b border-greys-grey-strokes-tables data-[state=active]:border-primary-color-nuk-ui-elem rounded-none px-0 pb-2 mb-[-1px] relative after:absolute after:left-0 after:-bottom-[1px] after:w-full after:h-[2px] after:content-[''] after:bg-transparent data-[state=active]:after:bg-primary-color-nuk-ui-elem\";\n\nconst FILL = \"xl:flex xl:flex-1 xl:min-h-0 xl:flex-col xl:overflow-hidden\";\n// `xl:flex` outranks Radix's `hidden` attribute, so an inactive panel must be hidden explicitly.\nconst PANEL_CLASS = cn(\"mt-3 data-[state=inactive]:hidden\", FILL);\nconst TABLE_FILL = \"xl:flex-1 xl:min-h-0 xl:overflow-hidden\";\n\n/**\n * The Team page's Team (roster) tab: the team header card beside the venue/facility/website card\n * (stacked below `min-[800px]`), then the Players/Staff roster card.\n */\nexport function TeamRosterShell({ adapter, className }: TeamRosterShellProps) {\n const { header, subTab, onSubTabChange, players, staff } = 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 <TeamPlacesCard team={header.team} className=\"flex-[4]\" />\n </div>\n )}\n <Card className=\"border-none p-4 flex flex-col gap-3 xl:flex-1 xl:min-h-0 xl:overflow-hidden\">\n <CardHeader className=\"p-0 shrink-0\">\n <CardTitle>Team Roster</CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-0 p-0 flex flex-col gap-3 xl:flex-1 xl:min-h-0 xl:overflow-hidden\">\n <Tabs\n value={subTab}\n onValueChange={(value) => onSubTabChange(value as TeamRosterSubTab)}\n className={cn(\"w-full\", FILL)}\n >\n <TabsList className=\"grid w-full shrink-0 grid-cols-2 bg-transparent border-b rounded-none h-auto p-0 text-text-primary\">\n <TabsTrigger value=\"players\" className={TRIGGER_CLASS}>\n Players\n </TabsTrigger>\n <TabsTrigger value=\"staff\" className={TRIGGER_CLASS}>\n Staff\n </TabsTrigger>\n </TabsList>\n <TabsContent value=\"players\" className={PANEL_CLASS}>\n <div className={cn(\"w-full\", FILL)}>\n <TeamRosterTable {...players} className={TABLE_FILL} />\n </div>\n </TabsContent>\n <TabsContent value=\"staff\" className={PANEL_CLASS}>\n <div className={cn(\"w-full\", FILL)}>\n <TeamStaffTable {...staff} className={TABLE_FILL} />\n </div>\n </TabsContent>\n </Tabs>\n </CardContent>\n </Card>\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,EAC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AAAA,sBAAAD,KAACF,iBAAA,EAAe,MAAM,OAAO,MAAM,SAAS,OAAO,SAAS,WAAU,YAAW;AAAA,MACjF,gBAAAE,KAAC,kBAAe,MAAM,OAAO,MAAM,WAAU,YAAW;AAAA,OAC1D;AAAA,IAEF,gBAAAC,MAAC,QAAK,WAAU,+EACd;AAAA,sBAAAD,KAAC,cAAW,WAAU,gBACpB,0BAAAA,KAAC,aAAU,yBAAW,GACxB;AAAA,MACA,gBAAAA,KAAC,eAAY,WAAU,6EACrB,0BAAAC;AAAA,QAAC;AAAA;AAAA,UACC,OAAO;AAAA,UACP,eAAe,CAAC,UAAU,eAAe,KAAyB;AAAA,UAClE,WAAWF,IAAG,UAAU,IAAI;AAAA,UAE5B;AAAA,4BAAAE,MAAC,YAAS,WAAU,sGAClB;AAAA,8BAAAD,KAAC,eAAY,OAAM,WAAU,WAAW,eAAe,qBAEvD;AAAA,cACA,gBAAAA,KAAC,eAAY,OAAM,SAAQ,WAAW,eAAe,mBAErD;AAAA,eACF;AAAA,YACA,gBAAAA,KAAC,eAAY,OAAM,WAAU,WAAW,aACtC,0BAAAA,KAAC,SAAI,WAAWD,IAAG,UAAU,IAAI,GAC/B,0BAAAC,KAAC,mBAAiB,GAAG,SAAS,WAAW,YAAY,GACvD,GACF;AAAA,YACA,gBAAAA,KAAC,eAAY,OAAM,SAAQ,WAAW,aACpC,0BAAAA,KAAC,SAAI,WAAWD,IAAG,UAAU,IAAI,GAC/B,0BAAAC,KAAC,kBAAgB,GAAG,OAAO,WAAW,YAAY,GACpD,GACF;AAAA;AAAA;AAAA,MACF,GACF;AAAA,OACF;AAAA,KACF;AAEJ;","names":["TeamHeaderCard","cn","jsx","jsxs","cn","jsx","jsxs","TeamHeaderCard","cn","jsx","jsxs"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nukleus-sports/page-shells",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@nukleus-sports/core": "^0.7.0",
|
|
49
|
-
"@nukleus-sports/ui-patterns": "^0.
|
|
49
|
+
"@nukleus-sports/ui-patterns": "^0.8.0",
|
|
50
50
|
"@nukleus-sports/ui-web": "^0.2.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|