We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92d45b1 commit f991f2eCopy full SHA for f991f2e
1 file changed
src/common/Intent/index.ts
@@ -1,16 +1,16 @@
1
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
2
+import { Intent as BlueprintIntent } from "@blueprintjs/core";
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";
8
9
export const Definitions: { [key: string]: IntentTypes } = {
- PRIMARY: "primary",
10
+ ...DefinitionsBlueprint,
11
ACCENT: "accent",
12
NEUTRAL: "neutral",
- NONE: "none",
- SUCCESS: "success",
13
INFO: "info",
- WARNING: "warning",
- DANGER: "danger",
14
};
15
16
export const intentClassName = (intent: IntentTypes) => {
0 commit comments