@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 +1 -1
- package/ui/Blocks/CommonGrid/components/gridCells/ToggleCell.js +1 -1
- package/ui/Blocks/CommonGrid/types.d.ts +1 -1
- package/ui/index.es.js +15361 -15865
- package/ui/index.umd.js +623 -623
package/package.json
CHANGED
|
@@ -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
|
};
|