Skip to content

Commit f991f2e

Browse files
committed
separate better between blueprint intents and own additions
1 parent 92d45b1 commit f991f2e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/common/Intent/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
2+
import { Intent as BlueprintIntent } from "@blueprintjs/core";
23

3-
export type IntentTypes = "none" | "neutral" | "primary" | "accent" | "info" | "success" | "warning" | "danger";
4+
export type IntentBlueprint = BlueprintIntent;
5+
export const DefinitionsBlueprint = BlueprintIntent;
6+
7+
export type IntentTypes = IntentBlueprint | "neutral" | "accent" | "info";
48

59
export const Definitions: { [key: string]: IntentTypes } = {
6-
PRIMARY: "primary",
10+
...DefinitionsBlueprint,
711
ACCENT: "accent",
812
NEUTRAL: "neutral",
9-
NONE: "none",
10-
SUCCESS: "success",
1113
INFO: "info",
12-
WARNING: "warning",
13-
DANGER: "danger",
1414
};
1515

1616
export const intentClassName = (intent: IntentTypes) => {

0 commit comments

Comments
 (0)