@polastack/design-system 0.1.30 → 0.1.33
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 +13 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2495,7 +2495,7 @@ var TableRow = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
2495
2495
|
{
|
|
2496
2496
|
ref,
|
|
2497
2497
|
className: cn(
|
|
2498
|
-
"border-b border-[var(--color-border)] transition-colors hover:bg-[var(--color-surface-
|
|
2498
|
+
"border-b border-[var(--color-border)] transition-colors hover:bg-[var(--color-surface-muted)] data-[state=selected]:bg-[var(--color-surface-accent)]",
|
|
2499
2499
|
className
|
|
2500
2500
|
),
|
|
2501
2501
|
...props
|
|
@@ -2569,14 +2569,15 @@ function DataTablePagination({
|
|
|
2569
2569
|
children: [
|
|
2570
2570
|
/* @__PURE__ */ jsxs12("div", { className: "flex items-center gap-2", children: [
|
|
2571
2571
|
/* @__PURE__ */ jsx31("span", { className: "hidden sm:inline", children: "Rows per page" }),
|
|
2572
|
-
/* @__PURE__ */
|
|
2573
|
-
|
|
2572
|
+
/* @__PURE__ */ jsxs12(
|
|
2573
|
+
Select,
|
|
2574
2574
|
{
|
|
2575
|
-
value: pageSize,
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2575
|
+
value: String(pageSize),
|
|
2576
|
+
onValueChange: (value) => table.setPageSize(Number(value)),
|
|
2577
|
+
children: [
|
|
2578
|
+
/* @__PURE__ */ jsx31(SelectTrigger, { className: "h-8 w-[4.5rem]", "aria-label": "Rows per page", children: /* @__PURE__ */ jsx31(SelectValue, {}) }),
|
|
2579
|
+
/* @__PURE__ */ jsx31(SelectContent, { children: pageSizeOptions.map((size) => /* @__PURE__ */ jsx31(SelectItem, { value: String(size), children: size }, size)) })
|
|
2580
|
+
]
|
|
2580
2581
|
}
|
|
2581
2582
|
)
|
|
2582
2583
|
] }),
|
|
@@ -2795,6 +2796,10 @@ function DataTable({
|
|
|
2795
2796
|
TableRow,
|
|
2796
2797
|
{
|
|
2797
2798
|
"data-state": row.getIsSelected() ? "selected" : void 0,
|
|
2799
|
+
...enableRowSelection && {
|
|
2800
|
+
onClick: () => row.toggleSelected(),
|
|
2801
|
+
className: "cursor-pointer"
|
|
2802
|
+
},
|
|
2798
2803
|
children: row.getVisibleCells().map((cell) => /* @__PURE__ */ jsx33(TableCell, { children: flexRender(cell.column.columnDef.cell, cell.getContext()) }, cell.id))
|
|
2799
2804
|
},
|
|
2800
2805
|
row.id
|