@open-mercato/ui 0.7.1-develop.7152.1.a69e92f9c9 → 0.7.1-develop.7153.1.7145d295e6

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.
@@ -732,6 +732,7 @@ function DataTable({
732
732
  data,
733
733
  toolbar,
734
734
  title,
735
+ titleHeadingLevel,
735
736
  actions,
736
737
  refreshButton,
737
738
  sortable,
@@ -2407,7 +2408,8 @@ function DataTable({
2407
2408
  maxHeight: typeof virtualizedMaxHeight === "number" ? `${virtualizedMaxHeight}px` : virtualizedMaxHeight ?? "calc(100vh - 300px)",
2408
2409
  overflow: "auto"
2409
2410
  } : void 0;
2410
- const titleContent = hasTitle ? /* @__PURE__ */ jsx("div", { className: "text-base font-semibold leading-tight min-h-[2.25rem] flex items-center", children: typeof title === "string" ? /* @__PURE__ */ jsx("h2", { className: "text-base font-semibold", children: title }) : title }) : /* @__PURE__ */ jsx("div", { className: "min-h-[2.25rem]" });
2411
+ const TitleHeading = titleHeadingLevel === 1 ? "h1" : "h2";
2412
+ const titleContent = hasTitle ? /* @__PURE__ */ jsx("div", { className: "text-base font-semibold leading-tight min-h-[2.25rem] flex items-center", children: typeof title === "string" || titleHeadingLevel ? /* @__PURE__ */ jsx(TitleHeading, { className: "text-base font-semibold", children: title }) : title }) : /* @__PURE__ */ jsx("div", { className: "min-h-[2.25rem]" });
2411
2413
  return /* @__PURE__ */ jsx(TooltipProvider, { delayDuration: 300, children: /* @__PURE__ */ jsxs("div", { ref: containerRef, className: containerClassName, "data-component-handle": resolvedReplacementHandle, children: [
2412
2414
  shouldRenderHeader && /* @__PURE__ */ jsxs("div", { className: headerWrapperClassName, children: [
2413
2415
  (hasTitle || shouldRenderActionsWrapper || renderToolbarInline) && /* @__PURE__ */ jsxs("div", { className: headerContentClassName, children: [