Skip to content

Commit 3af080f

Browse files
committed
added none in intent options for the spinner
1 parent ba3bbb2 commit 3af080f

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/components/Spinner/Spinner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { CLASSPREFIX as eccgui } from "../../configuration/constants";
1111
type SpinnerPosition = "local" | "inline" | "global";
1212
type SpinnerSize = "tiny" | "small" | "medium" | "large" | "xlarge" | "inherit";
1313
type SpinnerStroke = "thin" | "medium" | "bold";
14-
type Intent = "inherit" | "primary" | "success" | "warning" | "danger";
14+
type Intent = "inherit" | "primary" | "success" | "warning" | "danger" | "none";
1515

1616
/** A spinner that is either displayed globally or locally. */
1717
export interface SpinnerProps extends Omit<BlueprintSpinnerProps, "size" | "intent"> {

src/components/Spinner/Stories/spinner.stories.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ export default {
88
component: Spinner,
99
argTypes: {
1010
color: { control: "color" },
11-
intent: { ...helpersArgTypes.exampleIntent, options: ["UNDEFINED", "primary", "success", "warning", "danger"] },
11+
intent: {
12+
...helpersArgTypes.exampleIntent,
13+
options: ["UNDEFINED", "primary", "success", "warning", "danger", "none"],
14+
},
1215
position: { control: "radio", options: ["local", "inline", "global"] },
1316
size: { control: "radio", options: ["tiny", "small", "medium", "large", "xlarge", "inherit"] },
1417
stroke: { control: "radio", options: ["thin", "medium", "bold"] },

0 commit comments

Comments
 (0)