@trackunit/react-components 1.1.42 → 1.1.44

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
@@ -139,7 +139,7 @@ const isSafari = () => {
139
139
  * - The Icon component is used to display an Icon.
140
140
  * - Icons are semantic vector graphics that adds character and improves the visual appeal of elements when combined with.
141
141
  * - All the [HeroIcons](https://heroicons.dev/) as well as custom Trackunit icons are available.
142
-
142
+ *
143
143
  * @param {IconProps} props - The props for the Icon component
144
144
  * @returns {JSX.Element} Icon component
145
145
  */
@@ -169,7 +169,7 @@ const Icon = ({ name, size = "large", className, dataTestId, color, onClick, typ
169
169
  return "0 0 24 24";
170
170
  }
171
171
  return "0 0 24 24";
172
- }, [type, size]);
172
+ }, [size, type]);
173
173
  const iconName = uiIcons.iconNames[name];
174
174
  const href = react.useMemo(() => ({
175
175
  solid: `${IconSpriteSolid}#${iconName}`,
package/index.esm.js CHANGED
@@ -137,7 +137,7 @@ const isSafari = () => {
137
137
  * - The Icon component is used to display an Icon.
138
138
  * - Icons are semantic vector graphics that adds character and improves the visual appeal of elements when combined with.
139
139
  * - All the [HeroIcons](https://heroicons.dev/) as well as custom Trackunit icons are available.
140
-
140
+ *
141
141
  * @param {IconProps} props - The props for the Icon component
142
142
  * @returns {JSX.Element} Icon component
143
143
  */
@@ -167,7 +167,7 @@ const Icon = ({ name, size = "large", className, dataTestId, color, onClick, typ
167
167
  return "0 0 24 24";
168
168
  }
169
169
  return "0 0 24 24";
170
- }, [type, size]);
170
+ }, [size, type]);
171
171
  const iconName = iconNames[name];
172
172
  const href = useMemo(() => ({
173
173
  solid: `${IconSpriteSolid}#${iconName}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-components",
3
- "version": "1.1.42",
3
+ "version": "1.1.44",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -19,11 +19,11 @@
19
19
  "@tanstack/react-router": "1.47.1",
20
20
  "string-ts": "^2.0.0",
21
21
  "tailwind-merge": "^2.0.0",
22
- "@trackunit/ui-design-tokens": "1.0.37",
23
- "@trackunit/css-class-variance-utilities": "1.0.36",
24
- "@trackunit/shared-utils": "1.2.33",
25
- "@trackunit/ui-icons": "1.0.39",
26
- "@trackunit/react-table-pagination": "1.0.37"
22
+ "@trackunit/ui-design-tokens": "1.0.38",
23
+ "@trackunit/css-class-variance-utilities": "1.0.37",
24
+ "@trackunit/shared-utils": "1.2.34",
25
+ "@trackunit/ui-icons": "1.0.41",
26
+ "@trackunit/react-table-pagination": "1.0.38"
27
27
  },
28
28
  "module": "./index.esm.js",
29
29
  "main": "./index.cjs.js",
@@ -314,7 +314,7 @@ export type IconProps = DiscriminatedIconProps & CommonProps & AriaProps & {
314
314
  * - The Icon component is used to display an Icon.
315
315
  * - Icons are semantic vector graphics that adds character and improves the visual appeal of elements when combined with.
316
316
  * - All the [HeroIcons](https://heroicons.dev/) as well as custom Trackunit icons are available.
317
-
317
+ *
318
318
  * @param {IconProps} props - The props for the Icon component
319
319
  * @returns {JSX.Element} Icon component
320
320
  */