@luscii-healthtech/web-ui 28.3.2 → 28.3.3

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.
@@ -2154,32 +2154,26 @@ const ModalBase = (props) => {
2154
2154
  var _a;
2155
2155
  const { size = "medium", withContentPaddingY = true, isOpen = false } = props;
2156
2156
  return React__namespace.default.createElement(
2157
- "div",
2158
- { "data-test-id": "clicking-propagation-preventer", onClick: (event) => {
2159
- event.stopPropagation();
2160
- } },
2157
+ ReactModal__default.default,
2158
+ { isOpen, data: { "test-id": (_a = props.dataTestId) !== null && _a !== void 0 ? _a : "react-modal" }, contentLabel: props.title, overlayClassName: classNames__default.default("ui-px-2 ui-py-15", "ui-z-20", "ui-fixed ui-top-0 ui-bottom-0 ui-left-0 ui-right-0", "ui-overflow-x-hidden ui-overflow-y-auto", "ui-bg-overlay"), onRequestClose: props.onCloseClick, shouldFocusAfterRender: false, shouldCloseOnOverlayClick: false, className: classNames__default.default("ui-mx-auto ui-my-0", "ui-relative", "ui-rounded-lg ui-bg-white ui-shadow-lg ui-outline-none", {
2159
+ "ui-overflow-y-hidden": props.scrollableContent,
2160
+ "ui-mt-17": props.withExtraMarginTop,
2161
+ "md:ui-w-80": size === "small",
2162
+ "md:ui-w-132": size === "medium",
2163
+ "md:ui-w-216": size === "wide"
2164
+ }) },
2165
+ props.title && React__namespace.default.createElement(ModalHeader, { title: props.title, onCloseClick: props.onCloseClick }),
2161
2166
  React__namespace.default.createElement(
2162
- ReactModal__default.default,
2163
- { isOpen, data: { "test-id": (_a = props.dataTestId) !== null && _a !== void 0 ? _a : "react-modal" }, contentLabel: props.title, overlayClassName: classNames__default.default("ui-px-2 ui-py-15", "ui-z-20", "ui-fixed ui-top-0 ui-bottom-0 ui-left-0 ui-right-0", "ui-overflow-x-hidden ui-overflow-y-auto", "ui-bg-overlay"), onRequestClose: props.onCloseClick, shouldFocusAfterRender: false, shouldCloseOnOverlayClick: false, className: classNames__default.default("ui-mx-auto ui-my-0", "ui-relative", "ui-rounded-lg ui-bg-white ui-shadow-lg ui-outline-none", {
2164
- "ui-overflow-y-hidden": props.scrollableContent,
2165
- "ui-mt-17": props.withExtraMarginTop,
2166
- "md:ui-w-80": size === "small",
2167
- "md:ui-w-132": size === "medium",
2168
- "md:ui-w-216": size === "wide"
2167
+ "div",
2168
+ { className: classNames__default.default({
2169
+ "ui-rounded-t-lg": !props.title,
2170
+ "ui-max-h-135 ui-overflow-y-auto": props.scrollableContent
2169
2171
  }) },
2170
- props.title && React__namespace.default.createElement(ModalHeader, { title: props.title, onCloseClick: props.onCloseClick }),
2171
- React__namespace.default.createElement(
2172
- "div",
2173
- { className: classNames__default.default({
2174
- "ui-rounded-t-lg": !props.title,
2175
- "ui-max-h-135 ui-overflow-y-auto": props.scrollableContent
2176
- }) },
2177
- React__namespace.default.createElement("div", { className: classNames__default.default("ui-px-6", {
2178
- "ui-py-6": withContentPaddingY
2179
- }) }, props.children)
2180
- ),
2181
- React__namespace.default.createElement(ModalFooter, { footerLeadingComponent: props.footerLeadingComponent, footerTrailingComponents: props.footerTrailingComponents })
2182
- )
2172
+ React__namespace.default.createElement("div", { className: classNames__default.default("ui-px-6", {
2173
+ "ui-py-6": withContentPaddingY
2174
+ }) }, props.children)
2175
+ ),
2176
+ React__namespace.default.createElement(ModalFooter, { footerLeadingComponent: props.footerLeadingComponent, footerTrailingComponents: props.footerTrailingComponents })
2183
2177
  );
2184
2178
  };
2185
2179