44 AnchorButtonProps as BlueprintAnchorButtonProps ,
55 Button as BlueprintButton ,
66 ButtonProps as BlueprintButtonProps ,
7- Intent as BlueprintIntent ,
87} from "@blueprintjs/core" ;
98
9+ import { IntentBlueprint } from "../../common/Intent" ;
1010import { CLASSPREFIX as eccgui } from "../../configuration/constants" ;
1111import { ValidIconName } from "../Icon/canonicalIconNames" ;
1212import Icon from "../Icon/Icon" ;
@@ -33,7 +33,7 @@ interface AdditionalButtonProps {
3333 /**
3434 * Intent state visualized by color.
3535 */
36- intent ?: BlueprintIntent | "accent" ;
36+ intent ?: IntentBlueprint | "accent" ;
3737 /**
3838 * Content displayed in a badge that is attached to the button.
3939 * By default it is displayed `{ size: "small", position: "top-right", maxLength: 2 }` and with the same intent state of the button.
@@ -94,7 +94,7 @@ export const Button = ({
9494 intentByFunction = "accent" ;
9595 break ;
9696 case disruptive :
97- intentByFunction = BlueprintIntent . DANGER ;
97+ intentByFunction = IntentBlueprint . DANGER ;
9898 break ;
9999 default :
100100 break ;
@@ -111,7 +111,7 @@ export const Button = ({
111111 < ButtonType
112112 { ...restProps }
113113 className = { `${ eccgui } -button ` + className }
114- intent = { ( intent || intentByFunction ) as BlueprintIntent }
114+ intent = { ( intent || intentByFunction ) as IntentBlueprint }
115115 icon = { typeof icon === "string" ? < Icon name = { icon } { ...iconSize } /> : icon }
116116 rightIcon = { typeof rightIcon === "string" ? < Icon name = { rightIcon } { ...iconSize } /> : rightIcon }
117117 >
0 commit comments