@nukleus-sports/ui-patterns 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/{chunk-4N2GUEA7.js → chunk-2KJMI6DZ.js} +5 -2
- package/dist/chunk-2KJMI6DZ.js.map +1 -0
- package/dist/client.cjs +4 -1
- package/dist/client.cjs.map +1 -1
- package/dist/client.js +1 -1
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +1 -1
- package/dist/marketing.cjs +4 -1
- package/dist/marketing.cjs.map +1 -1
- package/dist/marketing.js +1 -1
- package/dist/team.cjs +566 -327
- package/dist/team.cjs.map +1 -1
- package/dist/team.d.cts +36 -2
- package/dist/team.d.ts +36 -2
- package/dist/team.js +544 -297
- package/dist/team.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-4N2GUEA7.js.map +0 -1
package/dist/team.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { EntityImageResolver } from './index.cjs';
|
|
4
|
-
import { StaffMember, StaffSort, TeamSeasonStatsResult, SeasonSummary, SeasonSelectorOption, TeamFactKey, TeamFactsSectionLayout, TeamFactsWidgetData, TeamVenue, TeamFactsWidgetState, StatRanking, TeamSeasonSummaryRecord, RecentGameRow } from '@nukleus-sports/core';
|
|
4
|
+
import { StaffMember, StaffSort, RosterPlayerLike, RosterSort, TeamSeasonStatsResult, SeasonSummary, SeasonSelectorOption, TeamFactKey, TeamFactsSectionLayout, TeamFactsWidgetData, TeamVenue, TeamFactsWidgetState, StatRanking, TeamSeasonSummaryRecord, RecentGameRow } from '@nukleus-sports/core';
|
|
5
5
|
|
|
6
6
|
interface TeamInfoCardSocialLink {
|
|
7
7
|
platform: string;
|
|
@@ -68,6 +68,40 @@ interface TeamStaffTableProps {
|
|
|
68
68
|
}
|
|
69
69
|
declare function TeamStaffTable({ staff, loading, isError, interactive, onStaffClick, sortable, sorting, onSortingChange, virtualized, isSplitLayout, isCompact, resolveImageUrl, className, }: TeamStaffTableProps): react.JSX.Element;
|
|
70
70
|
|
|
71
|
+
interface TeamRosterPlayer extends RosterPlayerLike {
|
|
72
|
+
id: number;
|
|
73
|
+
player_image_url: string | null;
|
|
74
|
+
}
|
|
75
|
+
interface TeamRosterTableProps {
|
|
76
|
+
players: TeamRosterPlayer[];
|
|
77
|
+
/** Selects the per-league column set; null renders no columns (league still loading). */
|
|
78
|
+
leagueId: number | null;
|
|
79
|
+
loading: boolean;
|
|
80
|
+
isError?: boolean;
|
|
81
|
+
/** Opt-in -- nukleus-app navigates to a player on any row click; nukleus-clientapp doesn't. */
|
|
82
|
+
rowClickable?: boolean;
|
|
83
|
+
onPlayerClick?: (id: number) => void;
|
|
84
|
+
/** Opt-in -- nukleus-clientapp's table has no sorting today; nukleus-app's does. */
|
|
85
|
+
sortable?: boolean;
|
|
86
|
+
sorting?: RosterSort[];
|
|
87
|
+
onSortingChange?: (sorting: RosterSort[]) => void;
|
|
88
|
+
/** Opt-in client-side infinite scroll, backed by `@nukleus-sports/ui-web`'s `useInfiniteList`. */
|
|
89
|
+
virtualized?: boolean;
|
|
90
|
+
/** True below the layout's split-table breakpoint. */
|
|
91
|
+
isSplitLayout?: boolean;
|
|
92
|
+
/** True on a narrow/mobile viewport -- shrinks the Name column and its avatar. */
|
|
93
|
+
isCompact?: boolean;
|
|
94
|
+
resolveImageUrl?: EntityImageResolver;
|
|
95
|
+
className?: string;
|
|
96
|
+
}
|
|
97
|
+
declare function TeamRosterTable({ players, leagueId, loading, isError, rowClickable, onPlayerClick, sortable, sorting, onSortingChange, virtualized, isSplitLayout, isCompact, resolveImageUrl, className, }: TeamRosterTableProps): react.JSX.Element;
|
|
98
|
+
|
|
99
|
+
interface TeamPlacesCardProps {
|
|
100
|
+
team: TeamInfoCardTeam;
|
|
101
|
+
className?: string;
|
|
102
|
+
}
|
|
103
|
+
declare function TeamPlacesCard({ team, className }: TeamPlacesCardProps): react.JSX.Element;
|
|
104
|
+
|
|
71
105
|
interface StatColumnProps {
|
|
72
106
|
label: string;
|
|
73
107
|
value: string;
|
|
@@ -433,4 +467,4 @@ interface TeamScheduleTableProps {
|
|
|
433
467
|
*/
|
|
434
468
|
declare function TeamScheduleTable({ games, gamesLoading, isGamesError, leagueId, leagueAbbreviation, isTeamError, teamEspnId, resolveLogoUrl, defaultLogoUrl, seasons, seasonsLoading, isSeasonsError, isSm, isSmallLaptop, className, }: TeamScheduleTableProps): react.JSX.Element;
|
|
435
469
|
|
|
436
|
-
export { EmptyValue, FactField, type FactFieldProps, FactPills, type FactPillsProps, FieldLabel, type RecentGamesStatus, RecentGamesWidget, type RecentGamesWidgetProps, type ScheduleEspnTeam, type ScheduleGame, type ScheduleGameCompetitor, SeasonSelector, type SeasonSelectorProps, StatColumn, type StatColumnProps, type StatLeaderboardRow, StatRankingLeaderboardDialog, type StatRankingLeaderboardDialogProps, TeamFactsContent, type TeamFactsContentProps, TeamFactsWidget, type TeamFactsWidgetProps, TeamHeaderCard, type TeamHeaderCardProps, TeamInfoCard, type TeamInfoCardProps, type TeamInfoCardSocialLink, type TeamInfoCardTeam, TeamScheduleTable, type TeamScheduleTableProps, TeamSeasonScheduleSummaryPanel, type TeamSeasonScheduleSummaryPanelProps, type TeamSeasonStatsRanking, TeamSeasonStatsSummaryPanel, type TeamSeasonStatsSummaryPanelProps, TeamSeasonStatsWidget, type TeamSeasonStatsWidgetProps, type TeamStaffMember, TeamStaffTable, type TeamStaffTableProps, type TeamStatDetails, type TeamStatGameDetails, type TeamStatRow, type TeamStatTypeDef, type TeamStatValue, TeamStatsTable, type TeamStatsTableProps, VenuePhoto, type VenuePhotoProps };
|
|
470
|
+
export { EmptyValue, FactField, type FactFieldProps, FactPills, type FactPillsProps, FieldLabel, type RecentGamesStatus, RecentGamesWidget, type RecentGamesWidgetProps, type ScheduleEspnTeam, type ScheduleGame, type ScheduleGameCompetitor, SeasonSelector, type SeasonSelectorProps, StatColumn, type StatColumnProps, type StatLeaderboardRow, StatRankingLeaderboardDialog, type StatRankingLeaderboardDialogProps, TeamFactsContent, type TeamFactsContentProps, TeamFactsWidget, type TeamFactsWidgetProps, TeamHeaderCard, type TeamHeaderCardProps, TeamInfoCard, type TeamInfoCardProps, type TeamInfoCardSocialLink, type TeamInfoCardTeam, TeamPlacesCard, type TeamPlacesCardProps, type TeamRosterPlayer, TeamRosterTable, type TeamRosterTableProps, TeamScheduleTable, type TeamScheduleTableProps, TeamSeasonScheduleSummaryPanel, type TeamSeasonScheduleSummaryPanelProps, type TeamSeasonStatsRanking, TeamSeasonStatsSummaryPanel, type TeamSeasonStatsSummaryPanelProps, TeamSeasonStatsWidget, type TeamSeasonStatsWidgetProps, type TeamStaffMember, TeamStaffTable, type TeamStaffTableProps, type TeamStatDetails, type TeamStatGameDetails, type TeamStatRow, type TeamStatTypeDef, type TeamStatValue, TeamStatsTable, type TeamStatsTableProps, VenuePhoto, type VenuePhotoProps };
|
package/dist/team.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { EntityImageResolver } from './index.js';
|
|
4
|
-
import { StaffMember, StaffSort, TeamSeasonStatsResult, SeasonSummary, SeasonSelectorOption, TeamFactKey, TeamFactsSectionLayout, TeamFactsWidgetData, TeamVenue, TeamFactsWidgetState, StatRanking, TeamSeasonSummaryRecord, RecentGameRow } from '@nukleus-sports/core';
|
|
4
|
+
import { StaffMember, StaffSort, RosterPlayerLike, RosterSort, TeamSeasonStatsResult, SeasonSummary, SeasonSelectorOption, TeamFactKey, TeamFactsSectionLayout, TeamFactsWidgetData, TeamVenue, TeamFactsWidgetState, StatRanking, TeamSeasonSummaryRecord, RecentGameRow } from '@nukleus-sports/core';
|
|
5
5
|
|
|
6
6
|
interface TeamInfoCardSocialLink {
|
|
7
7
|
platform: string;
|
|
@@ -68,6 +68,40 @@ interface TeamStaffTableProps {
|
|
|
68
68
|
}
|
|
69
69
|
declare function TeamStaffTable({ staff, loading, isError, interactive, onStaffClick, sortable, sorting, onSortingChange, virtualized, isSplitLayout, isCompact, resolveImageUrl, className, }: TeamStaffTableProps): react.JSX.Element;
|
|
70
70
|
|
|
71
|
+
interface TeamRosterPlayer extends RosterPlayerLike {
|
|
72
|
+
id: number;
|
|
73
|
+
player_image_url: string | null;
|
|
74
|
+
}
|
|
75
|
+
interface TeamRosterTableProps {
|
|
76
|
+
players: TeamRosterPlayer[];
|
|
77
|
+
/** Selects the per-league column set; null renders no columns (league still loading). */
|
|
78
|
+
leagueId: number | null;
|
|
79
|
+
loading: boolean;
|
|
80
|
+
isError?: boolean;
|
|
81
|
+
/** Opt-in -- nukleus-app navigates to a player on any row click; nukleus-clientapp doesn't. */
|
|
82
|
+
rowClickable?: boolean;
|
|
83
|
+
onPlayerClick?: (id: number) => void;
|
|
84
|
+
/** Opt-in -- nukleus-clientapp's table has no sorting today; nukleus-app's does. */
|
|
85
|
+
sortable?: boolean;
|
|
86
|
+
sorting?: RosterSort[];
|
|
87
|
+
onSortingChange?: (sorting: RosterSort[]) => void;
|
|
88
|
+
/** Opt-in client-side infinite scroll, backed by `@nukleus-sports/ui-web`'s `useInfiniteList`. */
|
|
89
|
+
virtualized?: boolean;
|
|
90
|
+
/** True below the layout's split-table breakpoint. */
|
|
91
|
+
isSplitLayout?: boolean;
|
|
92
|
+
/** True on a narrow/mobile viewport -- shrinks the Name column and its avatar. */
|
|
93
|
+
isCompact?: boolean;
|
|
94
|
+
resolveImageUrl?: EntityImageResolver;
|
|
95
|
+
className?: string;
|
|
96
|
+
}
|
|
97
|
+
declare function TeamRosterTable({ players, leagueId, loading, isError, rowClickable, onPlayerClick, sortable, sorting, onSortingChange, virtualized, isSplitLayout, isCompact, resolveImageUrl, className, }: TeamRosterTableProps): react.JSX.Element;
|
|
98
|
+
|
|
99
|
+
interface TeamPlacesCardProps {
|
|
100
|
+
team: TeamInfoCardTeam;
|
|
101
|
+
className?: string;
|
|
102
|
+
}
|
|
103
|
+
declare function TeamPlacesCard({ team, className }: TeamPlacesCardProps): react.JSX.Element;
|
|
104
|
+
|
|
71
105
|
interface StatColumnProps {
|
|
72
106
|
label: string;
|
|
73
107
|
value: string;
|
|
@@ -433,4 +467,4 @@ interface TeamScheduleTableProps {
|
|
|
433
467
|
*/
|
|
434
468
|
declare function TeamScheduleTable({ games, gamesLoading, isGamesError, leagueId, leagueAbbreviation, isTeamError, teamEspnId, resolveLogoUrl, defaultLogoUrl, seasons, seasonsLoading, isSeasonsError, isSm, isSmallLaptop, className, }: TeamScheduleTableProps): react.JSX.Element;
|
|
435
469
|
|
|
436
|
-
export { EmptyValue, FactField, type FactFieldProps, FactPills, type FactPillsProps, FieldLabel, type RecentGamesStatus, RecentGamesWidget, type RecentGamesWidgetProps, type ScheduleEspnTeam, type ScheduleGame, type ScheduleGameCompetitor, SeasonSelector, type SeasonSelectorProps, StatColumn, type StatColumnProps, type StatLeaderboardRow, StatRankingLeaderboardDialog, type StatRankingLeaderboardDialogProps, TeamFactsContent, type TeamFactsContentProps, TeamFactsWidget, type TeamFactsWidgetProps, TeamHeaderCard, type TeamHeaderCardProps, TeamInfoCard, type TeamInfoCardProps, type TeamInfoCardSocialLink, type TeamInfoCardTeam, TeamScheduleTable, type TeamScheduleTableProps, TeamSeasonScheduleSummaryPanel, type TeamSeasonScheduleSummaryPanelProps, type TeamSeasonStatsRanking, TeamSeasonStatsSummaryPanel, type TeamSeasonStatsSummaryPanelProps, TeamSeasonStatsWidget, type TeamSeasonStatsWidgetProps, type TeamStaffMember, TeamStaffTable, type TeamStaffTableProps, type TeamStatDetails, type TeamStatGameDetails, type TeamStatRow, type TeamStatTypeDef, type TeamStatValue, TeamStatsTable, type TeamStatsTableProps, VenuePhoto, type VenuePhotoProps };
|
|
470
|
+
export { EmptyValue, FactField, type FactFieldProps, FactPills, type FactPillsProps, FieldLabel, type RecentGamesStatus, RecentGamesWidget, type RecentGamesWidgetProps, type ScheduleEspnTeam, type ScheduleGame, type ScheduleGameCompetitor, SeasonSelector, type SeasonSelectorProps, StatColumn, type StatColumnProps, type StatLeaderboardRow, StatRankingLeaderboardDialog, type StatRankingLeaderboardDialogProps, TeamFactsContent, type TeamFactsContentProps, TeamFactsWidget, type TeamFactsWidgetProps, TeamHeaderCard, type TeamHeaderCardProps, TeamInfoCard, type TeamInfoCardProps, type TeamInfoCardSocialLink, type TeamInfoCardTeam, TeamPlacesCard, type TeamPlacesCardProps, type TeamRosterPlayer, TeamRosterTable, type TeamRosterTableProps, TeamScheduleTable, type TeamScheduleTableProps, TeamSeasonScheduleSummaryPanel, type TeamSeasonScheduleSummaryPanelProps, type TeamSeasonStatsRanking, TeamSeasonStatsSummaryPanel, type TeamSeasonStatsSummaryPanelProps, TeamSeasonStatsWidget, type TeamSeasonStatsWidgetProps, type TeamStaffMember, TeamStaffTable, type TeamStaffTableProps, type TeamStatDetails, type TeamStatGameDetails, type TeamStatRow, type TeamStatTypeDef, type TeamStatValue, TeamStatsTable, type TeamStatsTableProps, VenuePhoto, type VenuePhotoProps };
|