@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.
- package/dist/{chunk-MPLFICE6.mjs → chunk-HG3JQEAN.mjs} +6 -5
- package/dist/chunk-HG3JQEAN.mjs.map +1 -0
- package/dist/components.js +4 -3
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/modal.js +4 -3
- package/dist/modal.js.map +1 -1
- package/dist/modal.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-MPLFICE6.mjs.map +0 -1
package/dist/components.mjs
CHANGED
|
@@ -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-
|
|
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
|
|
2093
|
-
const
|
|
2094
|
-
const
|
|
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 {
|