allaw-ui 3.1.6 → 3.1.7

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.
@@ -43,13 +43,13 @@ var Modal = function (_a) {
43
43
  };
44
44
  if (!show || !isVisible || !portalContainerRef.current)
45
45
  return null;
46
- var modalContent = (React.createElement("div", { className: "".concat(style.modalOverlay, " ").concat(isVisible ? style.visible : ""), onClick: handleOutsideClick, style: {
46
+ var modalContent = (React.createElement("div", { className: "".concat(style.modalOverlay, " ").concat(isVisible ? style.visible : "", " ").concat(show ? style.modal : ""), onClick: handleOutsideClick, style: {
47
47
  paddingTop: (verticalOffset === null || verticalOffset === void 0 ? void 0 : verticalOffset.top) ? "".concat(verticalOffset.top, "px") : undefined,
48
48
  paddingBottom: (verticalOffset === null || verticalOffset === void 0 ? void 0 : verticalOffset.bottom)
49
49
  ? "".concat(verticalOffset.bottom, "px")
50
50
  : undefined,
51
51
  } },
52
- React.createElement("div", { className: style.modalContent, ref: modalContentRef },
52
+ React.createElement("div", { className: "".concat(style.modalContent, " ").concat(show ? style.modal : ""), ref: modalContentRef },
53
53
  React.createElement("div", { className: style.modalHeadingWrapper },
54
54
  React.createElement(Heading, { text: title, variant: "h4", color: "noir", align: "left" })),
55
55
  React.createElement("div", { className: style.modalParagraphWrapper },
@@ -291,7 +291,7 @@ body.stepper-open {
291
291
  }
292
292
 
293
293
  /* Classe pour bloquer le scroll du body */
294
- :global(body.modal-open) {
294
+ :global(.modal-open) {
295
295
  overflow: hidden;
296
296
  position: fixed;
297
297
  width: 100%;
@@ -336,3 +336,8 @@ body.stepper-open {
336
336
  align-items: flex-end;
337
337
  }
338
338
  }
339
+
340
+ /* Ajoutez une classe locale pour le modal */
341
+ .modal {
342
+ /* Autres styles pour le modal */
343
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "3.1.6",
3
+ "version": "3.1.7",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",