@oliasoft-open-source/react-ui-library 3.3.18 → 3.3.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.js +6 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11969,6 +11969,7 @@ const styles$B = {
|
|
|
11969
11969
|
};
|
|
11970
11970
|
const Heading$2 = ({
|
|
11971
11971
|
children,
|
|
11972
|
+
helpText,
|
|
11972
11973
|
onClickHelp,
|
|
11973
11974
|
onClick,
|
|
11974
11975
|
onIconClick,
|
|
@@ -11979,6 +11980,7 @@ const Heading$2 = ({
|
|
|
11979
11980
|
testId
|
|
11980
11981
|
}) => {
|
|
11981
11982
|
var _a;
|
|
11983
|
+
const isHelpIconDisplayed = !!helpText || !!onClickHelp;
|
|
11982
11984
|
return /* @__PURE__ */ jsxs("div", {
|
|
11983
11985
|
className: cx(styles$B.heading, top2 ? styles$B.top : ""),
|
|
11984
11986
|
style: {
|
|
@@ -11995,7 +11997,8 @@ const Heading$2 = ({
|
|
|
11995
11997
|
children: [icon2 && /* @__PURE__ */ jsx(HelpIcon, {
|
|
11996
11998
|
onClick: onIconClick,
|
|
11997
11999
|
icon: icon2
|
|
11998
|
-
}),
|
|
12000
|
+
}), isHelpIconDisplayed && /* @__PURE__ */ jsx(HelpIcon, {
|
|
12001
|
+
text: helpText,
|
|
11999
12002
|
onClick: onClickHelp
|
|
12000
12003
|
}), libraryIcon && /* @__PURE__ */ jsx(HelpIcon, {
|
|
12001
12004
|
text: (_a = libraryIcon == null ? void 0 : libraryIcon.tooltip) != null ? _a : "",
|
|
@@ -12006,6 +12009,7 @@ const Heading$2 = ({
|
|
|
12006
12009
|
});
|
|
12007
12010
|
};
|
|
12008
12011
|
Heading$2.defaultProps = {
|
|
12012
|
+
helpText: null,
|
|
12009
12013
|
onClick: null,
|
|
12010
12014
|
onClickHelp: null,
|
|
12011
12015
|
onIconClick: null,
|
|
@@ -12016,6 +12020,7 @@ Heading$2.defaultProps = {
|
|
|
12016
12020
|
testId: null
|
|
12017
12021
|
};
|
|
12018
12022
|
Heading$2.propTypes = {
|
|
12023
|
+
helpText: PropTypes__default.string,
|
|
12019
12024
|
onClick: PropTypes__default.func,
|
|
12020
12025
|
onClickHelp: PropTypes__default.func,
|
|
12021
12026
|
onIconClick: PropTypes__default.func,
|
package/package.json
CHANGED