@trackunit/react-components 0.0.116 → 0.0.118

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.
@@ -41,7 +41,9 @@ export interface IconProps extends CommonProps {
41
41
  style?: Record<string, string>;
42
42
  }
43
43
  /**
44
- * The Icon component is ued to display an Icon.
44
+ * - The Icon component is used to display an Icon.
45
+ * - Icons are semantic vector graphics that adds character and improves the visual appeal of elements when combined with.
46
+ * - All the [HeroIcons](https://heroicons.dev/) as well as custom TrackUnit icons are available.
45
47
  *
46
48
  * @param {IconProps} props - The props for the Icon component
47
49
  * @returns {JSX.Element} Icon component
package/index.js CHANGED
@@ -341,7 +341,9 @@ const IconSizeClassMap = {
341
341
 
342
342
  };
343
343
  /**
344
- * The Icon component is ued to display an Icon.
344
+ * - The Icon component is used to display an Icon.
345
+ * - Icons are semantic vector graphics that adds character and improves the visual appeal of elements when combined with.
346
+ * - All the [HeroIcons](https://heroicons.dev/) as well as custom TrackUnit icons are available.
345
347
  *
346
348
  * @param {IconProps} props - The props for the Icon component
347
349
  * @returns {JSX.Element} Icon component
@@ -681,7 +683,7 @@ const Alert = ({
681
683
  });
682
684
  React.useEffect(() => {
683
685
  if (autoScroll) {
684
- ref && ref.current && ref.current.scrollIntoView();
686
+ ref && ref.current && ref.current.scrollIntoView && ref.current.scrollIntoView();
685
687
  }
686
688
  }, [ref, autoScroll]);
687
689
  return jsxs(Container$7, Object.assign({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-components",
3
- "version": "0.0.116",
3
+ "version": "0.0.118",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "dependencies": {