@mailstep/design-system 0.6.69 → 0.6.70-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mailstep/design-system",
3
- "version": "0.6.69",
3
+ "version": "0.6.70-beta.0",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "main": "./ui/index.js",
@@ -16,7 +16,7 @@ export var ToggleCell = function (_a) {
16
16
  var onSwitchChange = useCallback(function () {
17
17
  if (!onRowAction)
18
18
  return;
19
- var ret = onRowAction(rowData.id, actionName, !isChecked);
19
+ var ret = onRowAction(rowData.id, actionName, !isChecked, rowData);
20
20
  if (ret) {
21
21
  // promise returned = we wait for result
22
22
  ret.then(function () { return setIsChecked(!isChecked); });
@@ -157,7 +157,7 @@ export type ActionColumnHeadProps = {
157
157
  };
158
158
  export type DataCellProps<T> = {
159
159
  rowData: T;
160
- onRowAction?: (id: string, field: string, value: any) => void | Promise<any>;
160
+ onRowAction?: (id: string, field: string, value: any, rowData?: T) => void | Promise<any>;
161
161
  column: ColumnDefinition;
162
162
  children?: React.ReactNode;
163
163
  };