@trackunit/utilization-indicator 2.6.33 → 2.6.34

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/utilization-indicator",
3
- "version": "2.6.33",
3
+ "version": "2.6.34",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "@trackunit/react-components": "2.10.28",
11
- "@trackunit/utilization-tokens": "2.5.28",
11
+ "@trackunit/utilization-tokens": "3.0.0",
12
12
  "@trackunit/i18n-library-translation": "2.4.33",
13
13
  "@trackunit/ui-design-tokens": "1.15.13"
14
14
  },
@@ -1,8 +1,8 @@
1
1
  import { CommonProps, IndicatorProps, type Styleable } from "@trackunit/react-components";
2
- import { UtilizationState } from "@trackunit/utilization-tokens";
2
+ import type { UtilizationStateValue } from "@trackunit/utilization-tokens";
3
3
  import type { ReactElement } from "react";
4
4
  export interface UtilizationIndicatorProps extends Pick<IndicatorProps, "withBackground" | "withLabel" | "ping">, CommonProps, Styleable {
5
- state: UtilizationState;
5
+ state: UtilizationStateValue;
6
6
  }
7
7
  /**
8
8
  * Utilization indicator.
@@ -1,5 +1,5 @@
1
1
  import { UtilizationColors } from "@trackunit/ui-design-tokens";
2
- import { UtilizationState } from "@trackunit/utilization-tokens";
2
+ import { type UtilizationStateValue } from "@trackunit/utilization-tokens";
3
3
  declare const utilizationIndicatorIconNames: readonly ["ExclamationTriangle", "CheckCircle", "ShieldExclamation", "QuestionMarkCircle"];
4
4
  type UtilizationIndicatorIconName = (typeof utilizationIndicatorIconNames)[number];
5
5
  type UtilizationIndicatorMetadata = Readonly<{
@@ -7,7 +7,7 @@ type UtilizationIndicatorMetadata = Readonly<{
7
7
  label: string;
8
8
  color: UtilizationColors;
9
9
  }>;
10
- type UseUtilization = (state?: UtilizationState) => {
10
+ type UseUtilization = (state?: UtilizationStateValue) => {
11
11
  utilizationIndicator?: UtilizationIndicatorMetadata;
12
12
  };
13
13
  /**