@algorithm-shift/design-system 1.3.104 → 1.3.105
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.css +0 -7
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -439,7 +439,7 @@ interface ExtendedTableProps extends TableProps {
|
|
|
439
439
|
sort_by?: string;
|
|
440
440
|
sort_order?: string;
|
|
441
441
|
onCellClick?: (props: CellClickProps) => void;
|
|
442
|
-
onDeleteRow?: (
|
|
442
|
+
onDeleteRow?: ({ id }: { id: string }) => void;
|
|
443
443
|
enableDelete?: boolean;
|
|
444
444
|
enableRowSelection?: boolean;
|
|
445
445
|
getRowSelection?: (rowSelection: any) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -439,7 +439,7 @@ interface ExtendedTableProps extends TableProps {
|
|
|
439
439
|
sort_by?: string;
|
|
440
440
|
sort_order?: string;
|
|
441
441
|
onCellClick?: (props: CellClickProps) => void;
|
|
442
|
-
onDeleteRow?: (
|
|
442
|
+
onDeleteRow?: ({ id }: { id: string }) => void;
|
|
443
443
|
enableDelete?: boolean;
|
|
444
444
|
enableRowSelection?: boolean;
|
|
445
445
|
getRowSelection?: (rowSelection: any) => void;
|
package/dist/index.js
CHANGED
|
@@ -4220,7 +4220,7 @@ function DataTable({
|
|
|
4220
4220
|
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
4221
4221
|
TableCell,
|
|
4222
4222
|
{
|
|
4223
|
-
className: `break-words whitespace-normal align-top ${meta?.cellClass ?? ""} ${isClickable ? "cursor-pointer hover:bg-gray-100 underline text-blue-500" : ""} relative py-2`,
|
|
4223
|
+
className: `break-words whitespace-normal align-top ${meta?.cellClass ?? ""} ${isClickable ? "cursor-pointer hover:bg-gray-100 underline text-blue-500" : ""} relative py-2 `,
|
|
4224
4224
|
style: {
|
|
4225
4225
|
width: cell.column.getSize(),
|
|
4226
4226
|
minWidth: cell.column.columnDef.minSize,
|
|
@@ -4234,7 +4234,7 @@ function DataTable({
|
|
|
4234
4234
|
},
|
|
4235
4235
|
children: [
|
|
4236
4236
|
(0, import_react_table2.flexRender)(cell.column.columnDef.cell, cell.getContext()),
|
|
4237
|
-
isLastCell && rowActions && rowActions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "absolute
|
|
4237
|
+
isLastCell && rowActions && rowActions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "absolute p-1 px-2 inset-y-0 right-0 flex items-center transition-opacity duration-200", children: rowActions.map((action) => {
|
|
4238
4238
|
const isDelete = action.id === "delete" || action.icon === "delete";
|
|
4239
4239
|
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
4240
4240
|
"button",
|
|
@@ -4369,7 +4369,7 @@ var Table2 = ({
|
|
|
4369
4369
|
onCellClick?.({ id: cell.id, column: cell, columnId });
|
|
4370
4370
|
},
|
|
4371
4371
|
onDeleteRow: (cell) => {
|
|
4372
|
-
onDeleteRow?.(cell.id);
|
|
4372
|
+
onDeleteRow?.({ id: cell.id });
|
|
4373
4373
|
}
|
|
4374
4374
|
}
|
|
4375
4375
|
) });
|