@trackunit/utilization-indicator 1.3.22 → 1.3.28

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
@@ -114,7 +114,7 @@ const useActivity = (state, size = "medium") => {
114
114
  * Activity indicator.
115
115
  *
116
116
  * @param props - Activity indicator props.
117
- * @returns {JSX.Element | null } - Activity indicator.
117
+ * @returns {ReactElement | null } - Activity indicator.
118
118
  */
119
119
  const ActivityIndicator = (props) => {
120
120
  const { activityIndicator } = useActivity(props.state, props.size);
@@ -172,7 +172,7 @@ const useUtilization = state => {
172
172
  * Utilization indicator.
173
173
  *
174
174
  * @param props - Utilization indicator props.
175
- * @returns {JSX.Element | null} Utilization indicator.
175
+ * @returns {ReactElement | null} Utilization indicator.
176
176
  */
177
177
  const UtilizationIndicator = (props) => {
178
178
  const { utilizationIndicator } = useUtilization(props.state);
package/index.esm.js CHANGED
@@ -112,7 +112,7 @@ const useActivity = (state, size = "medium") => {
112
112
  * Activity indicator.
113
113
  *
114
114
  * @param props - Activity indicator props.
115
- * @returns {JSX.Element | null } - Activity indicator.
115
+ * @returns {ReactElement | null } - Activity indicator.
116
116
  */
117
117
  const ActivityIndicator = (props) => {
118
118
  const { activityIndicator } = useActivity(props.state, props.size);
@@ -170,7 +170,7 @@ const useUtilization = state => {
170
170
  * Utilization indicator.
171
171
  *
172
172
  * @param props - Utilization indicator props.
173
- * @returns {JSX.Element | null} Utilization indicator.
173
+ * @returns {ReactElement | null} Utilization indicator.
174
174
  */
175
175
  const UtilizationIndicator = (props) => {
176
176
  const { utilizationIndicator } = useUtilization(props.state);
package/package.json CHANGED
@@ -1,17 +1,18 @@
1
1
  {
2
2
  "name": "@trackunit/utilization-indicator",
3
- "version": "1.3.22",
3
+ "version": "1.3.28",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
7
7
  "node": ">=20.x"
8
8
  },
9
9
  "dependencies": {
10
+ "react": "19.0.0",
10
11
  "jest-fetch-mock": "^3.0.3",
11
- "@trackunit/react-components": "1.4.21",
12
- "@trackunit/utilization-tokens": "1.3.22",
13
- "@trackunit/i18n-library-translation": "1.3.22",
14
- "@trackunit/ui-design-tokens": "1.3.21"
12
+ "@trackunit/react-components": "1.4.27",
13
+ "@trackunit/utilization-tokens": "1.3.28",
14
+ "@trackunit/i18n-library-translation": "1.3.28",
15
+ "@trackunit/ui-design-tokens": "1.3.27"
15
16
  },
16
17
  "module": "./index.esm.js",
17
18
  "main": "./index.cjs.js",
@@ -1,5 +1,6 @@
1
1
  import { CommonProps, IndicatorProps } from "@trackunit/react-components";
2
2
  import { AssetActivityState } from "@trackunit/utilization-tokens";
3
+ import { ReactElement } from "react";
3
4
  export interface ActivityIndicatorProps extends Pick<IndicatorProps, "withBackground" | "withLabel" | "ping" | "size">, CommonProps {
4
5
  state: AssetActivityState;
5
6
  }
@@ -7,6 +8,6 @@ export interface ActivityIndicatorProps extends Pick<IndicatorProps, "withBackgr
7
8
  * Activity indicator.
8
9
  *
9
10
  * @param props - Activity indicator props.
10
- * @returns {JSX.Element | null } - Activity indicator.
11
+ * @returns {ReactElement | null } - Activity indicator.
11
12
  */
12
- export declare const ActivityIndicator: (props: ActivityIndicatorProps) => JSX.Element | null;
13
+ export declare const ActivityIndicator: (props: ActivityIndicatorProps) => ReactElement | null;
@@ -1,5 +1,6 @@
1
1
  import { CommonProps, IndicatorProps } from "@trackunit/react-components";
2
2
  import { UtilizationState } from "@trackunit/utilization-tokens";
3
+ import { ReactElement } from "react";
3
4
  export interface UtilizationIndicatorProps extends Pick<IndicatorProps, "withBackground" | "withLabel" | "ping">, CommonProps {
4
5
  state: UtilizationState;
5
6
  }
@@ -7,6 +8,6 @@ export interface UtilizationIndicatorProps extends Pick<IndicatorProps, "withBac
7
8
  * Utilization indicator.
8
9
  *
9
10
  * @param props - Utilization indicator props.
10
- * @returns {JSX.Element | null} Utilization indicator.
11
+ * @returns {ReactElement | null} Utilization indicator.
11
12
  */
12
- export declare const UtilizationIndicator: (props: UtilizationIndicatorProps) => JSX.Element | null;
13
+ export declare const UtilizationIndicator: (props: UtilizationIndicatorProps) => ReactElement | null;
@@ -1,8 +1,9 @@
1
1
  import { ActivityColors } from "@trackunit/ui-design-tokens";
2
2
  import { AssetActivityState } from "@trackunit/utilization-tokens";
3
+ import { ReactElement } from "react";
3
4
  type UseActivity = (state?: AssetActivityState, size?: "small" | "medium" | "large") => {
4
5
  activityIndicator?: {
5
- icon: JSX.Element;
6
+ icon: ReactElement;
6
7
  label: string;
7
8
  color: ActivityColors;
8
9
  };
@@ -1,8 +1,9 @@
1
1
  import { UtilizationColors } from "@trackunit/ui-design-tokens";
2
2
  import { UtilizationState } from "@trackunit/utilization-tokens";
3
+ import { ReactElement } from "react";
3
4
  type UseUtilization = (state?: UtilizationState) => {
4
5
  utilizationIndicator?: {
5
- icon: JSX.Element;
6
+ icon: ReactElement;
6
7
  label: string;
7
8
  color: UtilizationColors;
8
9
  };