@oliasoft-open-source/react-ui-library 3.3.18 → 3.3.20

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/global.css CHANGED
@@ -1772,10 +1772,10 @@ html[data-theme='dark'] {
1772
1772
  /*
1773
1773
  Z-INDEX
1774
1774
  */
1775
- ._checkbox_11y8l_333 {
1775
+ ._checkbox_1a5ed_333 {
1776
1776
  margin: 10px 0 11px 0;
1777
1777
  position: relative;
1778
- display: inline-flex;
1778
+ display: flex;
1779
1779
  align-items: center;
1780
1780
  gap: 8px;
1781
1781
  backface-visibility: hidden;
@@ -1787,14 +1787,14 @@ html[data-theme='dark'] {
1787
1787
  min-width: 17px;
1788
1788
  outline: 0px;
1789
1789
  }
1790
- ._checkbox_11y8l_333._noLabel_11y8l_348 {
1790
+ ._checkbox_1a5ed_333._noLabel_1a5ed_348 {
1791
1791
  width: 17px;
1792
1792
  }
1793
- ._checkbox_11y8l_333._small_11y8l_351 {
1793
+ ._checkbox_1a5ed_333._small_1a5ed_351 {
1794
1794
  margin: 3px 0;
1795
1795
  font-size: 12px;
1796
1796
  }
1797
- ._checkbox_11y8l_333 input {
1797
+ ._checkbox_1a5ed_333 input {
1798
1798
  cursor: pointer;
1799
1799
  position: absolute;
1800
1800
  top: 0px;
@@ -1805,18 +1805,17 @@ html[data-theme='dark'] {
1805
1805
  outline: 0px;
1806
1806
  z-index: -1;
1807
1807
  }
1808
- ._checkbox_11y8l_333 label {
1808
+ ._checkbox_1a5ed_333 label {
1809
1809
  cursor: pointer;
1810
1810
  user-select: none;
1811
1811
  color: var(--color-text);
1812
1812
  transition: color 0.1s ease 0s;
1813
- position: relative;
1814
1813
  display: block;
1815
1814
  padding-left: 1.85714em;
1816
1815
  font-size: 1em;
1817
1816
  outline: 0px;
1818
1817
  }
1819
- ._checkbox_11y8l_333 label ._checkmark_11y8l_377 {
1818
+ ._checkbox_1a5ed_333 label ._checkmark_1a5ed_376 {
1820
1819
  position: absolute;
1821
1820
  top: 0px;
1822
1821
  left: 0px;
@@ -1829,35 +1828,33 @@ html[data-theme='dark'] {
1829
1828
  border: 1px solid var(--color-border-checkbox);
1830
1829
  color: transparent;
1831
1830
  }
1832
- ._checkbox_11y8l_333 label ._checkmark_11y8l_377:hover {
1831
+ ._checkbox_1a5ed_333 label ._checkmark_1a5ed_376:hover {
1833
1832
  border-color: var(--color-border-hover);
1834
1833
  }
1835
- ._checkbox_11y8l_333 input:checked ~ label ._checkmark_11y8l_377 {
1834
+ ._checkbox_1a5ed_333 input:checked ~ label ._checkmark_1a5ed_376 {
1836
1835
  background: var(--color-background-primary);
1837
1836
  border-color: transparent;
1838
1837
  color: white;
1839
1838
  }
1840
- ._checkbox_11y8l_333._disabled_11y8l_398 {
1839
+ ._checkbox_1a5ed_333._disabled_1a5ed_397 {
1841
1840
  cursor: default;
1842
1841
  pointer-events: none;
1843
1842
  }
1844
- ._checkbox_11y8l_333._disabled_11y8l_398 label {
1843
+ ._checkbox_1a5ed_333._disabled_1a5ed_397 label {
1845
1844
  color: var(--color-text-muted);
1846
1845
  }
1847
- ._checkbox_11y8l_333._disabled_11y8l_398 ._checkmark_11y8l_377 {
1846
+ ._checkbox_1a5ed_333._disabled_1a5ed_397 ._checkmark_1a5ed_376 {
1848
1847
  background: var(--color-background-disabled) !important;
1849
1848
  border-color: var(--color-border-checkbox) !important;
1850
1849
  }
1851
- ._checkbox_11y8l_333._disabled_11y8l_398 input:checked ~ label ._checkmark_11y8l_377 {
1850
+ ._checkbox_1a5ed_333._disabled_1a5ed_397 input:checked ~ label ._checkmark_1a5ed_376 {
1852
1851
  color: var(--color-text-faint);
1853
1852
  }
1854
- ._noMargin_11y8l_412 {
1853
+ ._noMargin_1a5ed_411 {
1855
1854
  margin: 0;
1856
1855
  }
1857
- ._isInTable_11y8l_415 {
1856
+ ._isInTable_1a5ed_414 {
1858
1857
  margin: 0;
1859
- position: relative;
1860
- top: 1px;
1861
1858
  }
1862
1859
  /*
1863
1860
  This file has shared variables that are re-used in other LESS files/modules
package/dist/index.js CHANGED
@@ -433,13 +433,13 @@ Accordion.propTypes = {
433
433
  squareBottom: PropTypes__default.bool,
434
434
  testId: PropTypes__default.string
435
435
  };
436
- const checkbox = "_checkbox_11y8l_333";
437
- const noLabel = "_noLabel_11y8l_348";
438
- const small$e = "_small_11y8l_351";
439
- const checkmark = "_checkmark_11y8l_377";
440
- const disabled$a = "_disabled_11y8l_398";
441
- const noMargin$2 = "_noMargin_11y8l_412";
442
- const isInTable$4 = "_isInTable_11y8l_415";
436
+ const checkbox = "_checkbox_1a5ed_333";
437
+ const noLabel = "_noLabel_1a5ed_348";
438
+ const small$e = "_small_1a5ed_351";
439
+ const checkmark = "_checkmark_1a5ed_376";
440
+ const disabled$a = "_disabled_1a5ed_397";
441
+ const noMargin$2 = "_noMargin_1a5ed_411";
442
+ const isInTable$4 = "_isInTable_1a5ed_414";
443
443
  const styles$P = {
444
444
  checkbox,
445
445
  noLabel,
@@ -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
- }), onClickHelp && /* @__PURE__ */ jsx(HelpIcon, {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "3.3.18",
3
+ "version": "3.3.20",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {