@natoora-libs/core 0.2.12-dev-doug-2 → 0.2.12-dev-doug-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.
@@ -7254,7 +7254,8 @@ var SearchHeader = (0, import_react33.memo)(
7254
7254
  );
7255
7255
 
7256
7256
  // src/components/SectionName/SectionName.tsx
7257
- var import_icons_material10 = require("@mui/icons-material");
7257
+ var import_History = __toESM(require("@mui/icons-material/History"), 1);
7258
+ var import_Info = __toESM(require("@mui/icons-material/Info"), 1);
7258
7259
  var import_material61 = require("@mui/material");
7259
7260
  var import_mui48 = require("tss-react/mui");
7260
7261
  var import_jsx_runtime114 = require("react/jsx-runtime");
@@ -7300,20 +7301,32 @@ var SectionName = ({
7300
7301
  openHistoryLog
7301
7302
  }) => {
7302
7303
  const { classes } = useStyles43();
7304
+ const handleScroll = (e) => {
7305
+ e.preventDefault();
7306
+ if (sectionId) {
7307
+ const targetId = sectionId.startsWith("#") ? sectionId.slice(1) : sectionId;
7308
+ const element = document.getElementById(targetId);
7309
+ if (element) {
7310
+ element.scrollIntoView({
7311
+ behavior: "smooth",
7312
+ block: "start"
7313
+ });
7314
+ }
7315
+ }
7316
+ };
7303
7317
  return /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(import_material61.Box, { className: classes.container, children: [
7304
7318
  /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(import_material61.Box, { className: classes.titleContainer, children: [
7305
7319
  /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
7306
7320
  import_material61.Typography,
7307
7321
  {
7308
7322
  variant: "h5",
7309
- component: "a",
7310
- href: sectionId,
7323
+ onClick: handleScroll,
7311
7324
  className: classes.typography,
7312
7325
  children: name
7313
7326
  }
7314
7327
  ),
7315
7328
  tooltipDescription ? /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material61.Tooltip, { title: tooltipDescription, placement: "right", children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
7316
- import_icons_material10.Info,
7329
+ import_Info.default,
7317
7330
  {
7318
7331
  fontSize: "small",
7319
7332
  "data-testid": "InfoIcon",
@@ -7336,7 +7349,7 @@ var SectionName = ({
7336
7349
  }
7337
7350
  ) : null,
7338
7351
  openHistoryLog && buttonText && /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material61.Divider, { orientation: "vertical", sx: { height: "24px" } }),
7339
- openHistoryLog && /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material61.IconButton, { size: "small", onClick: () => openHistoryLog(), children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_icons_material10.History, {}) })
7352
+ openHistoryLog && /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material61.IconButton, { size: "small", onClick: () => openHistoryLog(), children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_History.default, {}) })
7340
7353
  ] })
7341
7354
  ] });
7342
7355
  };
@@ -9441,7 +9454,7 @@ var TableDesktopToolbar = ({
9441
9454
 
9442
9455
  // src/components/TableHeader/TableHeader.tsx
9443
9456
  var import_react48 = require("react");
9444
- var import_icons_material11 = require("@mui/icons-material");
9457
+ var import_icons_material10 = require("@mui/icons-material");
9445
9458
  var import_material80 = require("@mui/material");
9446
9459
  var import_mui53 = require("tss-react/mui");
9447
9460
  var import_jsx_runtime137 = require("react/jsx-runtime");
@@ -9494,7 +9507,7 @@ var TableHeader = ({ cells, onSort = null }) => {
9494
9507
  {
9495
9508
  className: classes.sortLabel,
9496
9509
  direction: cell?.direction || "asc",
9497
- IconComponent: import_icons_material11.ImportExport,
9510
+ IconComponent: import_icons_material10.ImportExport,
9498
9511
  onClick: () => handleSortClick(cell),
9499
9512
  children: cell.label
9500
9513
  }