@helpwave/hightide 0.0.18 → 0.0.19

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/index.mjs CHANGED
@@ -3882,14 +3882,16 @@ var ModalHeader = ({
3882
3882
  descriptionText = ""
3883
3883
  }) => {
3884
3884
  const translation = useTranslation(defaultModalHeaderTranslation, overwriteTranslation);
3885
+ const hasTitleRow = !!title || !!titleText || !!onCloseClick;
3886
+ const titleRow = /* @__PURE__ */ jsxs31("div", { className: "row justify-between items-start gap-x-8", children: [
3887
+ title ?? /* @__PURE__ */ jsx44("span", { className: clsx32("textstyle-title-lg", {
3888
+ "mb-1": description || descriptionText
3889
+ }), children: titleText }),
3890
+ !!onCloseClick && /* @__PURE__ */ jsx44(Tooltip, { tooltip: translation.close, children: /* @__PURE__ */ jsx44("button", { className: "row bg-gray-200 hover:bg-gray-300 rounded-md p-1", onClick: onCloseClick, children: /* @__PURE__ */ jsx44(X, {}) }) })
3891
+ ] });
3885
3892
  return /* @__PURE__ */ jsxs31("div", { className: "col", children: [
3886
- /* @__PURE__ */ jsxs31("div", { className: "row justify-between items-start gap-x-8", children: [
3887
- title ?? /* @__PURE__ */ jsx44("span", { className: clsx32("textstyle-title-lg", {
3888
- "mb-1": description || descriptionText
3889
- }), children: titleText }),
3890
- !!onCloseClick && /* @__PURE__ */ jsx44(Tooltip, { tooltip: translation.close, children: /* @__PURE__ */ jsx44("button", { className: "row bg-gray-200 hover:bg-gray-300 rounded-md p-1", onClick: onCloseClick, children: /* @__PURE__ */ jsx44(X, {}) }) })
3891
- ] }),
3892
- description ?? /* @__PURE__ */ jsx44("span", { className: "textstyle-description", children: descriptionText })
3893
+ hasTitleRow && titleRow,
3894
+ description ?? (descriptionText && /* @__PURE__ */ jsx44("span", { className: "textstyle-description", children: descriptionText }))
3893
3895
  ] });
3894
3896
  };
3895
3897
  var modalRootName = "modal-root";