@natoora-libs/core 0.2.12-dev-doug-2 → 0.2.12-dev-doug-4
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.
|
@@ -831,7 +831,7 @@ interface SearchWithFiltersForTableProps {
|
|
|
831
831
|
}
|
|
832
832
|
declare const _default$5: React.MemoExoticComponent<(props: SearchWithFiltersForTableProps) => react_jsx_runtime.JSX.Element>;
|
|
833
833
|
|
|
834
|
-
interface
|
|
834
|
+
interface SectionNameProps {
|
|
835
835
|
name: string;
|
|
836
836
|
tooltipDescription?: string;
|
|
837
837
|
sectionId?: string;
|
|
@@ -841,7 +841,7 @@ interface ISectionName {
|
|
|
841
841
|
buttonDisabled?: boolean;
|
|
842
842
|
openHistoryLog?: () => void;
|
|
843
843
|
}
|
|
844
|
-
declare const SectionName: ({ name, tooltipDescription, sectionId, handleButtonClick, buttonText, buttonType, buttonDisabled, openHistoryLog, }:
|
|
844
|
+
declare const SectionName: ({ name, tooltipDescription, sectionId, handleButtonClick, buttonText, buttonType, buttonDisabled, openHistoryLog, }: SectionNameProps) => react_jsx_runtime.JSX.Element;
|
|
845
845
|
|
|
846
846
|
type Option = {
|
|
847
847
|
value?: string | number;
|
|
@@ -831,7 +831,7 @@ interface SearchWithFiltersForTableProps {
|
|
|
831
831
|
}
|
|
832
832
|
declare const _default$5: React.MemoExoticComponent<(props: SearchWithFiltersForTableProps) => react_jsx_runtime.JSX.Element>;
|
|
833
833
|
|
|
834
|
-
interface
|
|
834
|
+
interface SectionNameProps {
|
|
835
835
|
name: string;
|
|
836
836
|
tooltipDescription?: string;
|
|
837
837
|
sectionId?: string;
|
|
@@ -841,7 +841,7 @@ interface ISectionName {
|
|
|
841
841
|
buttonDisabled?: boolean;
|
|
842
842
|
openHistoryLog?: () => void;
|
|
843
843
|
}
|
|
844
|
-
declare const SectionName: ({ name, tooltipDescription, sectionId, handleButtonClick, buttonText, buttonType, buttonDisabled, openHistoryLog, }:
|
|
844
|
+
declare const SectionName: ({ name, tooltipDescription, sectionId, handleButtonClick, buttonText, buttonType, buttonDisabled, openHistoryLog, }: SectionNameProps) => react_jsx_runtime.JSX.Element;
|
|
845
845
|
|
|
846
846
|
type Option = {
|
|
847
847
|
value?: string | number;
|
package/dist/components/index.js
CHANGED
|
@@ -6311,7 +6311,6 @@ var RenderContentList = ({
|
|
|
6311
6311
|
if (timeoutScrolling.current) {
|
|
6312
6312
|
clearTimeout(timeoutScrolling.current);
|
|
6313
6313
|
}
|
|
6314
|
-
;
|
|
6315
6314
|
timeoutScrolling.current = setTimeout(() => {
|
|
6316
6315
|
isScrolling.current = false;
|
|
6317
6316
|
}, 1e3);
|
|
@@ -7014,7 +7013,8 @@ var SearchHeader = memo18(
|
|
|
7014
7013
|
);
|
|
7015
7014
|
|
|
7016
7015
|
// src/components/SectionName/SectionName.tsx
|
|
7017
|
-
import
|
|
7016
|
+
import HistoryIcon from "@mui/icons-material/History";
|
|
7017
|
+
import InfoIcon from "@mui/icons-material/Info";
|
|
7018
7018
|
import { Box as Box34, Divider as Divider10, IconButton as IconButton4, Tooltip as Tooltip8, Typography as Typography27 } from "@mui/material";
|
|
7019
7019
|
import { makeStyles as makeStyles42 } from "tss-react/mui";
|
|
7020
7020
|
import { jsx as jsx113, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
@@ -7060,14 +7060,26 @@ var SectionName = ({
|
|
|
7060
7060
|
openHistoryLog
|
|
7061
7061
|
}) => {
|
|
7062
7062
|
const { classes } = useStyles42();
|
|
7063
|
+
const handleScroll = (e) => {
|
|
7064
|
+
e.preventDefault();
|
|
7065
|
+
if (sectionId) {
|
|
7066
|
+
const targetId = sectionId.startsWith("#") ? sectionId.slice(1) : sectionId;
|
|
7067
|
+
const element = document.getElementById(targetId);
|
|
7068
|
+
if (element) {
|
|
7069
|
+
element.scrollIntoView({
|
|
7070
|
+
behavior: "smooth",
|
|
7071
|
+
block: "start"
|
|
7072
|
+
});
|
|
7073
|
+
}
|
|
7074
|
+
}
|
|
7075
|
+
};
|
|
7063
7076
|
return /* @__PURE__ */ jsxs77(Box34, { className: classes.container, children: [
|
|
7064
7077
|
/* @__PURE__ */ jsxs77(Box34, { className: classes.titleContainer, children: [
|
|
7065
7078
|
/* @__PURE__ */ jsx113(
|
|
7066
7079
|
Typography27,
|
|
7067
7080
|
{
|
|
7068
7081
|
variant: "h5",
|
|
7069
|
-
|
|
7070
|
-
href: sectionId,
|
|
7082
|
+
onClick: handleScroll,
|
|
7071
7083
|
className: classes.typography,
|
|
7072
7084
|
children: name
|
|
7073
7085
|
}
|
|
@@ -7096,7 +7108,7 @@ var SectionName = ({
|
|
|
7096
7108
|
}
|
|
7097
7109
|
) : null,
|
|
7098
7110
|
openHistoryLog && buttonText && /* @__PURE__ */ jsx113(Divider10, { orientation: "vertical", sx: { height: "24px" } }),
|
|
7099
|
-
openHistoryLog && /* @__PURE__ */ jsx113(IconButton4, { size: "small", onClick: () => openHistoryLog(), children: /* @__PURE__ */ jsx113(
|
|
7111
|
+
openHistoryLog && /* @__PURE__ */ jsx113(IconButton4, { size: "small", onClick: () => openHistoryLog(), children: /* @__PURE__ */ jsx113(HistoryIcon, {}) })
|
|
7100
7112
|
] })
|
|
7101
7113
|
] });
|
|
7102
7114
|
};
|