@votodigital-onpeui/react 0.1.43 → 0.1.45

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-SDB3VPGG.mjs';
2
2
  import './chunk-KWOWOGBU.mjs';
3
- export { Button, ModalConfirm, ModalLoading } from './chunk-7CXCLAZB.mjs';
3
+ export { Button, ModalConfirm, ModalLoading } from './chunk-OP5VLP34.mjs';
4
4
  import './chunk-M2KQXQLY.mjs';
5
5
  export { Modal, Portal } from './chunk-TH3PUGJ6.mjs';
6
6
  import './chunk-5FNWA3QC.mjs';
package/dist/index.js CHANGED
@@ -2089,7 +2089,6 @@ var ModalConfirm = ({
2089
2089
  const titleId = "modal-confirm-title";
2090
2090
  const messageId = "modal-confirm-message";
2091
2091
  const effectiveTitle = title ?? defaultTitleByType[type] ?? "";
2092
- const effectiveMessage = message ?? content;
2093
2092
  const effectiveColorClass = color ? colorOverrideMap[color] ?? "text-onpe-skyblue" : "text-onpe-skyblue";
2094
2093
  const effectiveButtonMode = buttonMode ?? (type === "question" ? "confirm" : "single");
2095
2094
  const isConfirmMode = effectiveButtonMode === "confirm";
@@ -2137,21 +2136,29 @@ var ModalConfirm = ({
2137
2136
  children: effectiveTitle
2138
2137
  }
2139
2138
  ),
2140
- effectiveMessage && (typeof effectiveMessage === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
2139
+ message && (typeof message === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
2141
2140
  "div",
2142
2141
  {
2143
2142
  id: messageId,
2144
2143
  className: `mt-7 text-sm md:text-lg max-w-full text-black ${alignJustify ? "text-justify" : "text-center"}`,
2145
- dangerouslySetInnerHTML: { __html: effectiveMessage }
2144
+ dangerouslySetInnerHTML: { __html: message }
2146
2145
  }
2147
2146
  ) : /* @__PURE__ */ jsxRuntime.jsx(
2148
2147
  "div",
2149
2148
  {
2150
2149
  id: messageId,
2151
2150
  className: `mt-7 text-sm md:text-lg max-w-full text-black ${alignJustify ? "text-justify" : "text-center"}`,
2152
- children: effectiveMessage
2151
+ children: message
2153
2152
  }
2154
2153
  )),
2154
+ content && /* @__PURE__ */ jsxRuntime.jsx(
2155
+ "div",
2156
+ {
2157
+ id: message ? void 0 : messageId,
2158
+ className: `mt-7 text-sm md:text-lg max-w-full text-black ${alignJustify ? "text-justify" : "text-center"}`,
2159
+ children: content
2160
+ }
2161
+ ),
2155
2162
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center justify-center w-full gap-5 mt-11 md:hidden", children: [
2156
2163
  /* @__PURE__ */ jsxRuntime.jsx(
2157
2164
  Button,