66 ButtonProps as BlueprintButtonProps ,
77 Intent as BlueprintIntent ,
88} from "@blueprintjs/core" ;
9- import { IntentTypes } from "common/Intent" ;
109
1110import { CLASSPREFIX as eccgui } from "../../configuration/constants" ;
1211import { ValidIconName } from "../Icon/canonicalIconNames" ;
@@ -16,10 +15,6 @@ import Badge, { BadgeProps } from "./../Badge/Badge";
1615import Tooltip , { TooltipProps } from "./../Tooltip/Tooltip" ;
1716
1817interface AdditionalButtonProps {
19- /**
20- * Intent state of the button.
21- */
22- intent ?: IntentTypes ;
2318 /**
2419 * Always use this when the button triggers an affirmative action, e.g. confirm a process.
2520 * The button is displayed with primary color scheme.
@@ -28,33 +23,31 @@ interface AdditionalButtonProps {
2823 /**
2924 * Always use this when the button triggers an disruptive action, e.g. delete or remove.
3025 * The button is displayed with primary color scheme.
31- * @deprecated use `intent` instead.
3226 */
3327 disruptive ?: boolean ;
3428 /**
3529 * Use this when a button is important enough to highlight it in a set of other buttons.
3630 * The button is displayed with primary color scheme.
37- * @deprecated use `intent` instead.
3831 */
3932 elevated ?: boolean ;
4033 /**
4134 * The button is displayed with primary color scheme.
42- * @deprecated use `intent` instead.
35+ * @deprecated (v25) use `intent="primary" ` instead.
4336 */
4437 hasStatePrimary ?: boolean ;
4538 /**
4639 * The button is displayed with success (some type of green) color scheme.
47- * @deprecated use `intent` instead.
40+ * @deprecated (v25) use `intent="success" ` instead.
4841 */
4942 hasStateSuccess ?: boolean ;
5043 /**
5144 * The button is displayed with warning (some type of orange) color scheme.
52- * @deprecated use `intent` instead.
45+ * @deprecated (v25) use `intent="warning" ` instead.
5346 */
5447 hasStateWarning ?: boolean ;
5548 /**
5649 * The button is displayed with danger (some type of red) color scheme.
57- * @deprecated use `intent` instead.
50+ * @deprecated (v25) use `intent="danger" ` instead.
5851 */
5952 hasStateDanger ?: boolean ;
6053 /**
@@ -84,12 +77,10 @@ interface AdditionalButtonProps {
8477 //target?: string;
8578}
8679
87- interface ExtendedButtonProps
88- extends AdditionalButtonProps ,
89- Omit < BlueprintButtonProps , "icon" | "rightIcon" | "intent" > { }
80+ interface ExtendedButtonProps extends AdditionalButtonProps , Omit < BlueprintButtonProps , "icon" | "rightIcon" > { }
9081interface ExtendedAnchorButtonProps
9182 extends AdditionalButtonProps ,
92- Omit < BlueprintAnchorButtonProps , "icon" | "rightIcon" | "intent" > { }
83+ Omit < BlueprintAnchorButtonProps , "icon" | "rightIcon" > { }
9384
9485export type ButtonProps = ExtendedButtonProps & ExtendedAnchorButtonProps ;
9586
0 commit comments