@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.cjs CHANGED
@@ -1794,7 +1794,7 @@ function StatsBody2({
1794
1794
  emptyMessage
1795
1795
  }) {
1796
1796
  return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
1797
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "flex items-center gap-2 min-[360px]:gap-3", children: [
1797
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "flex items-center gap-2 min-[360px]:gap-3 xl:shrink-0", children: [
1798
1798
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(SeasonSelector, { ...seasons, className: "gap-2 min-[360px]:gap-3" }),
1799
1799
  showsCategoryPicker && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1800
1800
  import_ui_web14.Select,
@@ -1816,7 +1816,7 @@ function StatsBody2({
1816
1816
  }
1817
1817
  )
1818
1818
  ] }),
1819
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "space-y-4 xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: [
1819
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "flex flex-col space-y-4 xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: [
1820
1820
  isStatTypesError && !hasVisibleStatTypes && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "text-text-secondary text-13.5", children: "Couldn't load stat categories -- showing limited columns." }),
1821
1821
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1822
1822
  import_ui_web14.BaseTable,
@@ -1830,7 +1830,7 @@ function StatsBody2({
1830
1830
  splitLayoutGridCols: isSm ? "sm:!grid-cols-[minmax(232px,auto)_1fr]" : "!grid-cols-[minmax(117px,auto)_1fr]",
1831
1831
  loading: statsLoading,
1832
1832
  containerClassName: "border-0 rounded-none h-full",
1833
- className: "border-none xl:h-full xl:min-h-0",
1833
+ className: "h-full min-h-0 border-none xl:flex-1 xl:overflow-hidden",
1834
1834
  numberOfColumns: 2,
1835
1835
  emptyMessage: isStatsError && stats.length === 0 ? "Couldn't load stats. Please try again." : emptyMessage
1836
1836
  }
@@ -1902,7 +1902,7 @@ function TeamStatsTable({
1902
1902
  ),
1903
1903
  children: [
1904
1904
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_ui_web14.CardHeader, { className: "p-0", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_ui_web14.CardTitle, { children: "Stats" }) }),
1905
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_ui_web14.CardContent, { className: "space-y-0 p-0 flex flex-col gap-3 xl:flex-1 xl:min-h-0", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1905
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_ui_web14.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_runtime16.jsx)(
1906
1906
  StatsBody2,
1907
1907
  {
1908
1908
  seasons,
@@ -2227,9 +2227,9 @@ function ScheduleBody({
2227
2227
  if (!seasons || seasons.years.length === 0) {
2228
2228
  return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "text-center py-8", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { className: "text-text-primary", children: isSeasonsError ? "Couldn't load seasons. Please try again." : "No seasons found" }) });
2229
2229
  }
2230
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex flex-col gap-3", children: [
2231
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(SeasonSelector, { ...seasons, className: "gap-2 min-[360px]:gap-3" }),
2232
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2230
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex flex-col gap-3 xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: [
2231
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(SeasonSelector, { ...seasons, className: "gap-2 min-[360px]:gap-3 xl:shrink-0" }),
2232
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2233
2233
  import_ui_web15.BaseTable,
2234
2234
  {
2235
2235
  columns,
@@ -2239,7 +2239,7 @@ function ScheduleBody({
2239
2239
  splitLayoutGridCols: isSm ? "sm:!grid-cols-[minmax(232px,auto)_1fr]" : "!grid-cols-[minmax(117px,auto)_1fr]",
2240
2240
  loading: gamesLoading,
2241
2241
  containerClassName: "border-0 rounded-none h-full",
2242
- className: "h-full border-none",
2242
+ className: "h-full min-h-0 border-none xl:flex-1 xl:overflow-hidden",
2243
2243
  numberOfColumns: 2,
2244
2244
  emptyMessage: isGamesError ? "Couldn't load games. Please try again." : "No games found for this season"
2245
2245
  }
@@ -2281,23 +2281,32 @@ function TeamScheduleTable({
2281
2281
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { className: "text-text-secondary", children: "Loading team information..." })
2282
2282
  ] }) });
2283
2283
  }
2284
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_ui_web15.Card, { className: (0, import_ui_web15.cn)("border-none p-4 flex flex-col gap-3", className), children: [
2285
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui_web15.CardHeader, { className: "p-0 flex flex-row items-center justify-between space-y-0", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui_web15.CardTitle, { children: "Schedule" }) }),
2286
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui_web15.CardContent, { className: "space-y-0 p-0 flex flex-col gap-3", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2287
- ScheduleBody,
2288
- {
2289
- seasonsLoading,
2290
- seasons,
2291
- isSeasonsError,
2292
- columns,
2293
- games,
2294
- gamesLoading,
2295
- isGamesError,
2296
- isSm,
2297
- isSmallLaptop
2298
- }
2299
- ) })
2300
- ] });
2284
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
2285
+ import_ui_web15.Card,
2286
+ {
2287
+ className: (0, import_ui_web15.cn)(
2288
+ "border-none p-4 flex flex-col gap-3 xl:h-full xl:min-h-0 xl:flex-1 xl:overflow-hidden",
2289
+ className
2290
+ ),
2291
+ children: [
2292
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui_web15.CardHeader, { className: "p-0 flex flex-row items-center justify-between space-y-0", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui_web15.CardTitle, { children: "Schedule" }) }),
2293
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui_web15.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_runtime17.jsx)(
2294
+ ScheduleBody,
2295
+ {
2296
+ seasonsLoading,
2297
+ seasons,
2298
+ isSeasonsError,
2299
+ columns,
2300
+ games,
2301
+ gamesLoading,
2302
+ isGamesError,
2303
+ isSm,
2304
+ isSmallLaptop
2305
+ }
2306
+ ) })
2307
+ ]
2308
+ }
2309
+ );
2301
2310
  }
2302
2311
  // Annotate the CommonJS export names for ESM import in node:
2303
2312
  0 && (module.exports = {