@nukleus-sports/ui-patterns 0.6.2 → 0.6.3

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
@@ -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,