@trackunit/react-components 1.9.39 → 1.9.41

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 CHANGED
@@ -127,9 +127,9 @@ const isSafari = () => {
127
127
  return ua.includes("safari") && !ua.includes("chrome");
128
128
  };
129
129
  /**
130
- * - The Icon component is used to display an Icon.
131
- * - Icons are semantic vector graphics that adds character and improves the visual appeal of elements when combined with.
132
- * - All the [HeroIcons](https://heroicons.dev/) as well as custom Trackunit icons are available.
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
- * - The Icon component is used to display an Icon.
129
- * - Icons are semantic vector graphics that adds character and improves the visual appeal of elements when combined with.
130
- * - All the [HeroIcons](https://heroicons.dev/) as well as custom Trackunit icons are available.
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-components",
3
- "version": "1.9.39",
3
+ "version": "1.9.41",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -16,11 +16,11 @@
16
16
  "@floating-ui/react": "^0.26.25",
17
17
  "string-ts": "^2.0.0",
18
18
  "tailwind-merge": "^2.0.0",
19
- "@trackunit/ui-design-tokens": "1.7.27",
20
- "@trackunit/css-class-variance-utilities": "1.7.26",
21
- "@trackunit/shared-utils": "1.9.26",
22
- "@trackunit/ui-icons": "1.7.28",
23
- "@trackunit/react-test-setup": "1.4.26",
19
+ "@trackunit/ui-design-tokens": "1.7.28",
20
+ "@trackunit/css-class-variance-utilities": "1.7.27",
21
+ "@trackunit/shared-utils": "1.9.27",
22
+ "@trackunit/ui-icons": "1.7.29",
23
+ "@trackunit/react-test-setup": "1.4.27",
24
24
  "@tanstack/react-router": "1.114.29",
25
25
  "es-toolkit": "^1.39.10",
26
26
  "@tanstack/react-virtual": "3.13.12"
@@ -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, medium = 20x20px, Large = 24x24px.
271
- * Default value is Large.
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
- * Default value depends on the Size prop, mini == solid, medium == solid, large == outline.
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
- * - The Icon component is used to display an Icon.
303
- * - Icons are semantic vector graphics that adds character and improves the visual appeal of elements when combined with.
304
- * - All the [HeroIcons](https://heroicons.dev/) as well as custom Trackunit icons are available.
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