@risalabs_frontend_org/oasis-ui-kit 0.145.0 → 0.146.0
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,64 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./agent-steps-tracker.scss";
|
|
3
|
+
export type AgentStepStatus = "completed" | "action-required";
|
|
4
|
+
export interface AgentStepsTrackerColors {
|
|
5
|
+
background?: string;
|
|
6
|
+
borderColor?: string;
|
|
7
|
+
titleColor?: string;
|
|
8
|
+
lineColor?: string;
|
|
9
|
+
markerBackground?: string;
|
|
10
|
+
markerBorderColor?: string;
|
|
11
|
+
iconColor?: string;
|
|
12
|
+
labelColor?: string;
|
|
13
|
+
cardBackground?: string;
|
|
14
|
+
cardBorderColor?: string;
|
|
15
|
+
cardTitleColor?: string;
|
|
16
|
+
actionMarkerBackground?: string;
|
|
17
|
+
actionMarkerBorderColor?: string;
|
|
18
|
+
actionIconColor?: string;
|
|
19
|
+
tagColor?: string;
|
|
20
|
+
tagBackground?: string;
|
|
21
|
+
actionTitleColor?: string;
|
|
22
|
+
actionItemColor?: string;
|
|
23
|
+
linkColor?: string;
|
|
24
|
+
linkHoverColor?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface AgentStepsTrackerSizes {
|
|
27
|
+
fontFamily?: string;
|
|
28
|
+
borderRadius?: string;
|
|
29
|
+
padding?: string;
|
|
30
|
+
titleGap?: string;
|
|
31
|
+
stepGap?: string;
|
|
32
|
+
markerSize?: string;
|
|
33
|
+
markerGap?: string;
|
|
34
|
+
actionMarkerSize?: string;
|
|
35
|
+
lineWidth?: string;
|
|
36
|
+
actionLineTrim?: string;
|
|
37
|
+
cardRadius?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface AgentActionItem {
|
|
40
|
+
id: string;
|
|
41
|
+
text: string;
|
|
42
|
+
href?: string;
|
|
43
|
+
onLinkClick?: () => void;
|
|
44
|
+
linkAriaLabel?: string;
|
|
45
|
+
linkColor?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface AgentStep {
|
|
48
|
+
id: string;
|
|
49
|
+
label: string;
|
|
50
|
+
icon?: React.ReactNode;
|
|
51
|
+
status?: AgentStepStatus;
|
|
52
|
+
tagLabel?: string | null;
|
|
53
|
+
actionTitle?: string;
|
|
54
|
+
actionItems?: AgentActionItem[];
|
|
55
|
+
colors?: AgentStepsTrackerColors;
|
|
56
|
+
}
|
|
57
|
+
export interface AgentStepsTrackerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
58
|
+
title?: string;
|
|
59
|
+
steps: AgentStep[];
|
|
60
|
+
colors?: AgentStepsTrackerColors;
|
|
61
|
+
sizes?: AgentStepsTrackerSizes;
|
|
62
|
+
}
|
|
63
|
+
export declare function AgentStepsTracker({ title, steps, colors, sizes, className, style, ...rest }: AgentStepsTrackerProps): React.JSX.Element;
|
|
64
|
+
export default AgentStepsTracker;
|