@trackunit/react-components 0.0.116 → 0.0.119
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
|
|
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
|
|
@@ -13,7 +13,6 @@ export interface IconButtonProps extends ButtonCommonProps {
|
|
|
13
13
|
/**
|
|
14
14
|
* The element type the button will be rendered as.
|
|
15
15
|
*
|
|
16
|
-
* @type {(keyof JSX.IntrinsicElements | React.ComponentType<any>)}
|
|
17
16
|
* @memberof IconButtonProps
|
|
18
17
|
*/
|
|
19
18
|
renderAs?: keyof JSX.IntrinsicElements | React.ComponentType<any>;
|
package/index.js
CHANGED
|
@@ -341,7 +341,9 @@ const IconSizeClassMap = {
|
|
|
341
341
|
|
|
342
342
|
};
|
|
343
343
|
/**
|
|
344
|
-
* The Icon component is
|
|
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({
|