@trackunit/react-components 1.9.39 → 1.9.40
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/index.cjs.js +3 -3
- package/index.esm.js +3 -3
- package/package.json +1 -1
- package/src/components/Icon/Icon.d.ts +6 -7
package/index.cjs.js
CHANGED
|
@@ -127,9 +127,9 @@ const isSafari = () => {
|
|
|
127
127
|
return ua.includes("safari") && !ua.includes("chrome");
|
|
128
128
|
};
|
|
129
129
|
/**
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
130
|
+
* Icons help in making the interface more intuitive by providing visual cues for various actions or elements. They're used to enhance usability, and depending on the context, they can be used alone or paired with text to increase comprehension.
|
|
131
|
+
*
|
|
132
|
+
* All the [HeroIcons](https://heroicons.com/) as well as custom Trackunit icons are available.
|
|
133
133
|
*
|
|
134
134
|
* @param {IconProps} props - The props for the Icon component
|
|
135
135
|
* @returns {ReactElement} Icon component
|
package/index.esm.js
CHANGED
|
@@ -125,9 +125,9 @@ const isSafari = () => {
|
|
|
125
125
|
return ua.includes("safari") && !ua.includes("chrome");
|
|
126
126
|
};
|
|
127
127
|
/**
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
128
|
+
* Icons help in making the interface more intuitive by providing visual cues for various actions or elements. They're used to enhance usability, and depending on the context, they can be used alone or paired with text to increase comprehension.
|
|
129
|
+
*
|
|
130
|
+
* All the [HeroIcons](https://heroicons.com/) as well as custom Trackunit icons are available.
|
|
131
131
|
*
|
|
132
132
|
* @param {IconProps} props - The props for the Icon component
|
|
133
133
|
* @returns {ReactElement} Icon component
|
package/package.json
CHANGED
|
@@ -267,15 +267,14 @@ export type IconProps = DiscriminatedIconProps & CommonProps & AriaProps & {
|
|
|
267
267
|
color?: IconColors;
|
|
268
268
|
/**
|
|
269
269
|
* The size of the icon.
|
|
270
|
-
* Small = 16x16px,
|
|
271
|
-
* Default value is
|
|
270
|
+
* Small = 16x16px, Medium = 20x20px, Large = 24x24px.
|
|
271
|
+
* Default value is Medium.
|
|
272
272
|
* If a custom size is needed, set it in the className.
|
|
273
273
|
*/
|
|
274
274
|
size?: Size;
|
|
275
275
|
/**
|
|
276
276
|
* Select if the icon should be rendered as solid or outline.
|
|
277
|
-
*
|
|
278
|
-
* Trackunit icons might not support both outline and Solid.
|
|
277
|
+
* The type value depends on the size prop, the small and medium size are always solid, the large size is either solid or outline.
|
|
279
278
|
*/
|
|
280
279
|
type?: "solid" | "outline" | "mini";
|
|
281
280
|
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
@@ -299,9 +298,9 @@ export type IconProps = DiscriminatedIconProps & CommonProps & AriaProps & {
|
|
|
299
298
|
fontSize?: boolean;
|
|
300
299
|
};
|
|
301
300
|
/**
|
|
302
|
-
*
|
|
303
|
-
*
|
|
304
|
-
*
|
|
301
|
+
* Icons help in making the interface more intuitive by providing visual cues for various actions or elements. They're used to enhance usability, and depending on the context, they can be used alone or paired with text to increase comprehension.
|
|
302
|
+
*
|
|
303
|
+
* All the [HeroIcons](https://heroicons.com/) as well as custom Trackunit icons are available.
|
|
305
304
|
*
|
|
306
305
|
* @param {IconProps} props - The props for the Icon component
|
|
307
306
|
* @returns {ReactElement} Icon component
|