@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.cjs CHANGED
@@ -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 = {