@obolnetwork/obol-ui 1.0.55 → 1.0.56

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.
@@ -3,10 +3,10 @@ import React from "react";
3
3
  import { Text } from "../../atoms";
4
4
  export declare type ClusterStatus = "active" | "exited" | "inactive" | "in_progress" | "new";
5
5
  export declare type ValidatorStatus = "pending_initialized" | "pending_queued" | "active_ongoing" | "active_exiting" | "active_slashed" | "exited_unslashed" | "exited_slashed" | "withdrawal_possible" | "withdrawal_done";
6
+ export declare type ClusterAndValidatorStatus = ClusterStatus | ValidatorStatus;
6
7
  declare type TextComponentVariants = Stitches.VariantProps<typeof Text>;
7
- declare type Status = ClusterStatus | ValidatorStatus;
8
8
  interface ValidatorStatusProps {
9
- status: Status | undefined | null;
9
+ status: ClusterAndValidatorStatus | undefined | null;
10
10
  textVariant?: TextComponentVariants["variant"];
11
11
  }
12
12
  export declare const MetricValidatorStatus: React.FC<ValidatorStatusProps>;
@@ -1,13 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  import { CSS } from "../../../stitches.config";
3
- import { ClusterStatus } from "../MetricValidatorStatus/MetricValidatorStatus";
3
+ import { ClusterAndValidatorStatus } from "../MetricValidatorStatus/MetricValidatorStatus";
4
4
  declare type BaseMetricWidgetProps = {
5
5
  heading: string;
6
6
  tooltipContent?: string;
7
7
  css?: CSS;
8
8
  };
9
9
  export declare type MetricWidgetProps = (BaseMetricWidgetProps & {
10
- status: ClusterStatus;
10
+ status: ClusterAndValidatorStatus;
11
11
  content?: never;
12
12
  }) | (BaseMetricWidgetProps & {
13
13
  status?: never;