componenteshospitais 3.9.8 → 3.9.9
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/cjs/index.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/types/stories/Button.stories.d.ts +1 -0
- package/dist/types/stories/Header.stories.d.ts +1 -0
- package/dist/types/stories/Page.stories.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/TableStandardButtons.tsx +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -16768,7 +16768,7 @@ var TableStandardButtons = function (_a) {
|
|
|
16768
16768
|
var newState = __assign(__assign({}, prevState), (_a = {}, _a[newId] = !prevState[newId], _a));
|
|
16769
16769
|
// Chama a função passada por parâmetro (se existir)
|
|
16770
16770
|
if (onCheckboxChange) {
|
|
16771
|
-
onCheckboxChange(
|
|
16771
|
+
onCheckboxChange(index, newState[newId]);
|
|
16772
16772
|
}
|
|
16773
16773
|
return newState; // Retorna o novo estado
|
|
16774
16774
|
});
|
package/dist/esm/index.js
CHANGED
|
@@ -16766,7 +16766,7 @@ var TableStandardButtons = function (_a) {
|
|
|
16766
16766
|
var newState = __assign(__assign({}, prevState), (_a = {}, _a[newId] = !prevState[newId], _a));
|
|
16767
16767
|
// Chama a função passada por parâmetro (se existir)
|
|
16768
16768
|
if (onCheckboxChange) {
|
|
16769
|
-
onCheckboxChange(
|
|
16769
|
+
onCheckboxChange(index, newState[newId]);
|
|
16770
16770
|
}
|
|
16771
16771
|
return newState; // Retorna o novo estado
|
|
16772
16772
|
});
|
package/package.json
CHANGED
|
@@ -176,7 +176,7 @@ const TableStandardButtons: React.FC<TableStandardButtonsProps> = ({
|
|
|
176
176
|
|
|
177
177
|
// Chama a função passada por parâmetro (se existir)
|
|
178
178
|
if (onCheckboxChange) {
|
|
179
|
-
onCheckboxChange(
|
|
179
|
+
onCheckboxChange(index, newState[newId]);
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
return newState; // Retorna o novo estado
|