@mastra/playground-ui 22.1.2-alpha.3 → 22.1.2-alpha.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/index.es.js CHANGED
@@ -11428,6 +11428,36 @@ function EntityListNoMatch({ message = "Nothing matches your search", className
11428
11428
  return /* @__PURE__ */ jsx("div", { className: cn("col-span-full flex flex-col items-center justify-center gap-2 py-12 text-neutral3", className), children: /* @__PURE__ */ jsx("p", { className: "text-ui-md", children: message }) });
11429
11429
  }
11430
11430
 
11431
+ function EntityListPagination({ currentPage, hasMore, onNextPage, onPrevPage }) {
11432
+ const showNavigation = typeof currentPage === "number" && currentPage > 0 || hasMore;
11433
+ return /* @__PURE__ */ jsxs("div", { className: cn("col-span-full flex items-center justify-center gap-8 pt-6 pb-4 text-ui-md text-neutral3"), children: [
11434
+ /* @__PURE__ */ jsxs("span", { children: [
11435
+ "Page ",
11436
+ /* @__PURE__ */ jsx("b", { children: currentPage ? currentPage + 1 : "1" })
11437
+ ] }),
11438
+ showNavigation && /* @__PURE__ */ jsxs(
11439
+ "div",
11440
+ {
11441
+ className: cn(
11442
+ "flex gap-4",
11443
+ "[&>button]:flex [&>button]:items-center [&>button]:gap-2 [&>button]:text-neutral4 [&>button:hover]:text-neutral5 [&>button]:transition-colors [&>button]:border [&>button]:border-border1 [&>button]:p-1 [&>button]:px-2 [&>button]:rounded-md",
11444
+ "[&_svg]:w-[1em] [&_svg]:h-[1em] [&_svg]:text-neutral3"
11445
+ ),
11446
+ children: [
11447
+ typeof currentPage === "number" && currentPage > 0 && /* @__PURE__ */ jsxs("button", { type: "button", onClick: onPrevPage, children: [
11448
+ /* @__PURE__ */ jsx(ArrowLeftIcon, {}),
11449
+ "Previous"
11450
+ ] }),
11451
+ hasMore && /* @__PURE__ */ jsxs("button", { type: "button", onClick: onNextPage, children: [
11452
+ "Next",
11453
+ /* @__PURE__ */ jsx(ArrowRightIcon, {})
11454
+ ] })
11455
+ ]
11456
+ }
11457
+ )
11458
+ ] });
11459
+ }
11460
+
11431
11461
  function EntityListRoot({ children, columns, className }) {
11432
11462
  return /* @__PURE__ */ jsx(
11433
11463
  "div",
@@ -11567,7 +11597,8 @@ const EntityList = Object.assign(EntityListRoot, {
11567
11597
  TextCell: EntityListTextCell,
11568
11598
  NameCell: EntityListNameCell,
11569
11599
  DescriptionCell: EntityListDescriptionCell,
11570
- NoMatch: EntityListNoMatch
11600
+ NoMatch: EntityListNoMatch,
11601
+ Pagination: EntityListPagination
11571
11602
  });
11572
11603
 
11573
11604
  const widths = ["75%", "50%", "65%", "90%", "60%", "80%"];