@nukleus-sports/ui-patterns 0.6.2 → 0.6.4

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.js CHANGED
@@ -1614,7 +1614,7 @@ function StatsBody2({
1614
1614
  emptyMessage
1615
1615
  }) {
1616
1616
  return /* @__PURE__ */ jsxs15(Fragment4, { children: [
1617
- /* @__PURE__ */ jsxs15("div", { className: "flex items-center gap-2 min-[360px]:gap-3", children: [
1617
+ /* @__PURE__ */ jsxs15("div", { className: "flex items-center gap-2 min-[360px]:gap-3 xl:shrink-0", children: [
1618
1618
  /* @__PURE__ */ jsx15(SeasonSelector, { ...seasons, className: "gap-2 min-[360px]:gap-3" }),
1619
1619
  showsCategoryPicker && /* @__PURE__ */ jsxs15(
1620
1620
  Select2,
@@ -1636,7 +1636,7 @@ function StatsBody2({
1636
1636
  }
1637
1637
  )
1638
1638
  ] }),
1639
- /* @__PURE__ */ jsxs15("div", { className: "space-y-4 xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: [
1639
+ /* @__PURE__ */ jsxs15("div", { className: "flex flex-col space-y-4 xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: [
1640
1640
  isStatTypesError && !hasVisibleStatTypes && /* @__PURE__ */ jsx15("p", { className: "text-text-secondary text-13.5", children: "Couldn't load stat categories -- showing limited columns." }),
1641
1641
  /* @__PURE__ */ jsx15(
1642
1642
  BaseTable3,
@@ -1650,7 +1650,7 @@ function StatsBody2({
1650
1650
  splitLayoutGridCols: isSm ? "sm:!grid-cols-[minmax(232px,auto)_1fr]" : "!grid-cols-[minmax(117px,auto)_1fr]",
1651
1651
  loading: statsLoading,
1652
1652
  containerClassName: "border-0 rounded-none h-full",
1653
- className: "border-none xl:h-full xl:min-h-0",
1653
+ className: "h-full min-h-0 border-none xl:flex-1 xl:overflow-hidden",
1654
1654
  numberOfColumns: 2,
1655
1655
  emptyMessage: isStatsError && stats.length === 0 ? "Couldn't load stats. Please try again." : emptyMessage
1656
1656
  }
@@ -1722,7 +1722,7 @@ function TeamStatsTable({
1722
1722
  ),
1723
1723
  children: [
1724
1724
  /* @__PURE__ */ jsx15(CardHeader6, { className: "p-0", children: /* @__PURE__ */ jsx15(CardTitle6, { children: "Stats" }) }),
1725
- /* @__PURE__ */ jsx15(CardContent7, { className: "space-y-0 p-0 flex flex-col gap-3 xl:flex-1 xl:min-h-0", children: /* @__PURE__ */ jsx15(
1725
+ /* @__PURE__ */ jsx15(CardContent7, { className: "space-y-0 p-0 flex flex-col gap-3 xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: /* @__PURE__ */ jsx15(
1726
1726
  StatsBody2,
1727
1727
  {
1728
1728
  seasons,
@@ -2055,9 +2055,9 @@ function ScheduleBody({
2055
2055
  if (!seasons || seasons.years.length === 0) {
2056
2056
  return /* @__PURE__ */ jsx16("div", { className: "text-center py-8", children: /* @__PURE__ */ jsx16("p", { className: "text-text-primary", children: isSeasonsError ? "Couldn't load seasons. Please try again." : "No seasons found" }) });
2057
2057
  }
2058
- return /* @__PURE__ */ jsxs16("div", { className: "flex flex-col gap-3", children: [
2059
- /* @__PURE__ */ jsx16(SeasonSelector, { ...seasons, className: "gap-2 min-[360px]:gap-3" }),
2060
- /* @__PURE__ */ jsx16("div", { children: /* @__PURE__ */ jsx16(
2058
+ return /* @__PURE__ */ jsxs16("div", { className: "flex flex-col gap-3 xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: [
2059
+ /* @__PURE__ */ jsx16(SeasonSelector, { ...seasons, className: "gap-2 min-[360px]:gap-3 xl:shrink-0" }),
2060
+ /* @__PURE__ */ jsx16("div", { className: "xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: /* @__PURE__ */ jsx16(
2061
2061
  BaseTable4,
2062
2062
  {
2063
2063
  columns,
@@ -2067,7 +2067,7 @@ function ScheduleBody({
2067
2067
  splitLayoutGridCols: isSm ? "sm:!grid-cols-[minmax(232px,auto)_1fr]" : "!grid-cols-[minmax(117px,auto)_1fr]",
2068
2068
  loading: gamesLoading,
2069
2069
  containerClassName: "border-0 rounded-none h-full",
2070
- className: "h-full border-none",
2070
+ className: "h-full min-h-0 border-none xl:flex-1 xl:overflow-hidden",
2071
2071
  numberOfColumns: 2,
2072
2072
  emptyMessage: isGamesError ? "Couldn't load games. Please try again." : "No games found for this season"
2073
2073
  }
@@ -2109,23 +2109,32 @@ function TeamScheduleTable({
2109
2109
  /* @__PURE__ */ jsx16("p", { className: "text-text-secondary", children: "Loading team information..." })
2110
2110
  ] }) });
2111
2111
  }
2112
- return /* @__PURE__ */ jsxs16(Card8, { className: cn14("border-none p-4 flex flex-col gap-3", className), children: [
2113
- /* @__PURE__ */ jsx16(CardHeader7, { className: "p-0 flex flex-row items-center justify-between space-y-0", children: /* @__PURE__ */ jsx16(CardTitle7, { children: "Schedule" }) }),
2114
- /* @__PURE__ */ jsx16(CardContent8, { className: "space-y-0 p-0 flex flex-col gap-3", children: /* @__PURE__ */ jsx16(
2115
- ScheduleBody,
2116
- {
2117
- seasonsLoading,
2118
- seasons,
2119
- isSeasonsError,
2120
- columns,
2121
- games,
2122
- gamesLoading,
2123
- isGamesError,
2124
- isSm,
2125
- isSmallLaptop
2126
- }
2127
- ) })
2128
- ] });
2112
+ return /* @__PURE__ */ jsxs16(
2113
+ Card8,
2114
+ {
2115
+ className: cn14(
2116
+ "border-none p-4 flex flex-col gap-3 xl:h-full xl:min-h-0 xl:flex-1 xl:overflow-hidden",
2117
+ className
2118
+ ),
2119
+ children: [
2120
+ /* @__PURE__ */ jsx16(CardHeader7, { className: "p-0 flex flex-row items-center justify-between space-y-0", children: /* @__PURE__ */ jsx16(CardTitle7, { children: "Schedule" }) }),
2121
+ /* @__PURE__ */ jsx16(CardContent8, { className: "space-y-0 p-0 flex flex-col gap-3 xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: /* @__PURE__ */ jsx16(
2122
+ ScheduleBody,
2123
+ {
2124
+ seasonsLoading,
2125
+ seasons,
2126
+ isSeasonsError,
2127
+ columns,
2128
+ games,
2129
+ gamesLoading,
2130
+ isGamesError,
2131
+ isSm,
2132
+ isSmallLaptop
2133
+ }
2134
+ ) })
2135
+ ]
2136
+ }
2137
+ );
2129
2138
  }
2130
2139
  export {
2131
2140
  EmptyValue,