next-data-kit 8.0.1 → 8.2.0

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.js CHANGED
@@ -932,7 +932,7 @@ function Switch({
932
932
  {
933
933
  "data-slot": "switch",
934
934
  className: cn(
935
- "peer data-[state=checked]:bg-gray-900 data-[state=unchecked]:bg-gray-200 dark:data-[state=checked]:bg-gray-100 dark:data-[state=unchecked]:bg-gray-800 focus-visible:ring-black/20 dark:focus-visible:ring-white/20 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
935
+ "peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
936
936
  className
937
937
  ),
938
938
  ...props,
@@ -941,7 +941,7 @@ function Switch({
941
941
  {
942
942
  "data-slot": "switch-thumb",
943
943
  className: cn(
944
- "pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 bg-white dark:data-[state=unchecked]:bg-gray-100 dark:data-[state=checked]:bg-gray-900"
944
+ "bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"
945
945
  )
946
946
  }
947
947
  )
@@ -1499,18 +1499,20 @@ var DataKitRoot = (props) => {
1499
1499
  ] }, rowId);
1500
1500
  }) })
1501
1501
  ] }) }),
1502
- /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
1503
- /* @__PURE__ */ jsxs("p", { className: "text-sm text-muted-foreground", children: [
1504
- "Page ",
1505
- dataKit.page,
1506
- " of ",
1507
- pagination.totalPages,
1508
- selectable?.enabled && selectedCount > 0 && /* @__PURE__ */ jsxs("span", { className: "ml-2 text-foreground", children: [
1509
- "(",
1502
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-4", children: [
1503
+ /* @__PURE__ */ jsxs("div", { className: "min-w-[140px]", children: [
1504
+ /* @__PURE__ */ jsxs("p", { className: "text-sm text-muted-foreground", children: [
1505
+ "Page ",
1506
+ dataKit.page,
1507
+ " of ",
1508
+ pagination.totalPages
1509
+ ] }),
1510
+ selectable?.enabled && selectedCount > 0 && /* @__PURE__ */ jsxs("p", { className: "text-sm text-foreground", children: [
1510
1511
  selectedCount,
1511
- " selected)"
1512
+ " selected"
1512
1513
  ] })
1513
1514
  ] }),
1515
+ /* @__PURE__ */ jsx("div", { className: "flex-1" }),
1514
1516
  paginationType === "SIMPLE" ? /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
1515
1517
  /* @__PURE__ */ jsx(
1516
1518
  Button,