@votodigital-onpeui/react 0.1.40 → 0.1.41

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.
@@ -1,6 +1,6 @@
1
1
  export { BrowserRecommended, Footer, ModalBrowserIncompatible, ModalDnieVersions, ModalNfc, ModalSystemIncompatible, NotRecommended, Overlay, Show } from './chunk-4VUH3WMT.mjs';
2
2
  import './chunk-KWOWOGBU.mjs';
3
- export { Button, ModalConfirm, ModalLoading } from './chunk-MPLFICE6.mjs';
3
+ export { Button, ModalConfirm, ModalLoading } from './chunk-HG3JQEAN.mjs';
4
4
  import './chunk-M2KQXQLY.mjs';
5
5
  export { Modal, Portal } from './chunk-FV3GKV22.mjs';
6
6
  import './chunk-5FNWA3QC.mjs';
package/dist/index.js CHANGED
@@ -2089,9 +2089,10 @@ var ModalConfirm = ({
2089
2089
  const effectiveTitle = title ?? defaultTitleByType[type] ?? "";
2090
2090
  const effectiveMessage = message ?? content;
2091
2091
  const effectiveColorClass = color ? colorOverrideMap[color] ?? "text-onpe-skyblue" : "text-onpe-skyblue";
2092
- const isConfirmMode = buttonMode === "confirm";
2093
- const showTwoButtons = buttonMode === "double" || isConfirmMode;
2094
- const confirmLabel = textButtonConfirm ?? (isConfirmMode ? "S\xED" : "Aceptar");
2092
+ const effectiveButtonMode = buttonMode ?? (type === "question" ? "confirm" : "single");
2093
+ const isConfirmMode = effectiveButtonMode === "confirm";
2094
+ const showTwoButtons = effectiveButtonMode === "double" || isConfirmMode;
2095
+ const confirmLabel = textButtonConfirm ?? (isConfirmMode ? "S\xED" : effectiveButtonMode === "double" ? "Confirmar" : "Aceptar");
2095
2096
  const cancelLabel = textButtonCancel ?? (isConfirmMode ? "No" : "Cancelar");
2096
2097
  const handleConfirm = async () => {
2097
2098
  try {