@obolnetwork/obol-ui 1.0.50 → 1.0.52
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.
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as Stitches from "@stitches/react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Text } from "../../atoms";
|
|
4
|
+
export declare type MetricIconStatus = "active" | "exited" | "inactive" | "inprogress" | "new";
|
|
5
|
+
declare type TextComponentVariants = Stitches.VariantProps<typeof Text>;
|
|
6
|
+
interface ValidatorStatusProps {
|
|
7
|
+
status: MetricIconStatus;
|
|
8
|
+
varianText?: TextComponentVariants["variant"];
|
|
9
|
+
}
|
|
10
|
+
export declare const MetricValidatorStatus: React.FC<ValidatorStatusProps>;
|
|
11
|
+
export {};
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CSS } from "../../../stitches.config";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import { MetricIconStatus } from "../MetricValidatorStatus/MetricValidatorStatus";
|
|
4
|
+
declare type BaseMetricWidgetProps = {
|
|
5
5
|
heading: string;
|
|
6
6
|
tooltipContent?: string;
|
|
7
|
-
status?: IconStatus;
|
|
8
|
-
content: string | number;
|
|
9
7
|
css?: CSS;
|
|
10
8
|
};
|
|
9
|
+
export declare type MetricWidgetProps = (BaseMetricWidgetProps & {
|
|
10
|
+
status: MetricIconStatus;
|
|
11
|
+
content?: never;
|
|
12
|
+
}) | (BaseMetricWidgetProps & {
|
|
13
|
+
status?: never;
|
|
14
|
+
content: string | number;
|
|
15
|
+
});
|
|
11
16
|
export declare const MetricWidget: React.FC<MetricWidgetProps>;
|
|
12
17
|
export {};
|