Skip to content
Merged
2 changes: 1 addition & 1 deletion pages/status-indicator/permutations.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import ScreenshotArea from '../utils/screenshot-area';

const permutations = createPermutations<InternalStatusIndicatorProps>([
{
type: ['error', 'warning', 'success', 'info', 'stopped', 'pending', 'in-progress', 'loading'],
type: ['error', 'warning', 'success', 'info', 'stopped', 'pending', 'in-progress', 'loading', 'not-started'],
},
{
type: ['pending'],
Expand Down
1 change: 1 addition & 0 deletions pages/status-indicator/simple.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const statusToText: [StatusIndicatorProps.Type, string][] = [
['pending', 'Pending'],
['in-progress', 'In progress'],
['loading', 'Loading'],
['not-started', 'Not started'],
];

export default function StatusIndicatorScenario() {
Expand Down
6 changes: 6 additions & 0 deletions pages/steps/permutations-utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,12 @@ const allStatusesSteps: ReadonlyArray<StepsProps.Step> = [
header: 'loading step',
details: 'Test description',
},
{
status: 'not-started',
statusIconAriaLabel: 'not started',
header: 'not started step',
details: 'Test description',
},
];

const emptySteps: ReadonlyArray<StepsProps.Step> = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3066,6 +3066,7 @@ Instead, use \`onSelect\` in combination with the \`onChange\` handler only as a
"status-in-progress",
"status-info",
"status-negative",
"status-not-started",
"status-positive",
"status-stopped",
"status-warning",
Expand Down Expand Up @@ -5059,6 +5060,7 @@ This property is ignored if you use a predefined icon or if you set your custom
"status-in-progress",
"status-info",
"status-negative",
"status-not-started",
"status-positive",
"status-stopped",
"status-warning",
Expand Down Expand Up @@ -5844,6 +5846,7 @@ The main action also supports the following properties of the [button](/componen
"status-in-progress",
"status-info",
"status-negative",
"status-not-started",
"status-positive",
"status-stopped",
"status-warning",
Expand Down Expand Up @@ -13504,6 +13507,7 @@ use the \`id\` attribute, consider setting it on a parent element instead.",
"status-in-progress",
"status-info",
"status-negative",
"status-not-started",
"status-positive",
"status-stopped",
"status-warning",
Expand Down Expand Up @@ -14161,6 +14165,11 @@ The same applies to switching icons in the same configuration (for example, \`{'
"optional": true,
"type": "React.ReactNode",
},
{
"name": "status-not-started",
"optional": true,
"type": "React.ReactNode",
},
{
"name": "status-pending",
"optional": true,
Expand Down Expand Up @@ -18839,6 +18848,7 @@ This property is ignored if you use a predefined icon or if you set your custom
"status-in-progress",
"status-info",
"status-negative",
"status-not-started",
"status-positive",
"status-stopped",
"status-warning",
Expand Down Expand Up @@ -21691,6 +21701,7 @@ The event \`detail\` contains the current \`selectedOption\`.",
"status-in-progress",
"status-info",
"status-negative",
"status-not-started",
"status-positive",
"status-stopped",
"status-warning",
Expand Down Expand Up @@ -22282,6 +22293,7 @@ If you want to clear the selection, use \`null\`.",
"status-in-progress",
"status-info",
"status-negative",
"status-not-started",
"status-positive",
"status-stopped",
"status-warning",
Expand Down Expand Up @@ -23394,6 +23406,7 @@ We do not support using this attribute to apply custom styling.",
"success",
"warning",
"info",
"not-started",
],
},
"name": "type",
Expand Down Expand Up @@ -26924,6 +26937,7 @@ If an href is provided, it opens the link in a new tab.",
"status-in-progress",
"status-info",
"status-negative",
"status-not-started",
"status-positive",
"status-stopped",
"status-warning",
Expand Down Expand Up @@ -27127,6 +27141,7 @@ We do not support using this attribute to apply custom styling.",
"status-in-progress",
"status-info",
"status-negative",
"status-not-started",
"status-positive",
"status-stopped",
"status-warning",
Expand Down
1 change: 1 addition & 0 deletions src/icon-provider/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export namespace IconProviderProps {
'status-in-progress'?: ReactNode | null;
'status-info'?: ReactNode | null;
'status-negative'?: ReactNode | null;
'status-not-started'?: ReactNode | null;
'status-pending'?: ReactNode | null;
'status-positive'?: ReactNode | null;
'status-stopped'?: ReactNode | null;
Expand Down
3 changes: 3 additions & 0 deletions src/icon/icons/status-not-started.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/icon/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ export namespace IconProps {
| 'status-in-progress'
| 'status-info'
| 'status-negative'
| 'status-not-started'
| 'status-pending'
| 'status-positive'
| 'status-stopped'
Expand Down
11 changes: 10 additions & 1 deletion src/status-indicator/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ export interface StatusIndicatorProps extends BaseComponentProps {
export namespace StatusIndicatorProps {
// Why not enums? Explained there
// https://stackoverflow.com/questions/52393730/typescript-string-literal-union-type-from-enum
export type Type = 'error' | 'warning' | 'success' | 'info' | 'stopped' | 'pending' | 'in-progress' | 'loading';
export type Type =
| 'error'
| 'warning'
| 'success'
| 'info'
| 'stopped'
| 'pending'
| 'in-progress'
| 'loading'
| 'not-started';
export type Color = 'blue' | 'grey' | 'green' | 'red' | 'yellow';
}
1 change: 1 addition & 0 deletions src/status-indicator/internal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const typeToIcon: (size: IconProps.Size) => Record<StatusIndicatorProps.Type, JS
pending: <InternalIcon name="status-pending" size={size} />,
'in-progress': <InternalIcon name="status-in-progress" size={size} />,
loading: <InternalSpinner />,
'not-started': <InternalIcon name="status-not-started" size={size} />,
});

interface InternalStatusIconProps extends Pick<InternalStatusIndicatorProps, 'type' | 'iconAriaLabel'> {
Expand Down
1 change: 1 addition & 0 deletions src/status-indicator/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ $_status-colors: (
'pending': awsui.$color-text-status-inactive,
'in-progress': awsui.$color-text-status-inactive,
'loading': awsui.$color-text-status-inactive,
'not-started': awsui.$color-text-status-inactive,
);

$_color-overrides: (
Expand Down
1 change: 1 addition & 0 deletions src/steps/internal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const statusToColor: Record<StepsProps.Status, BoxProps.Color> = {
pending: 'text-status-inactive',
'in-progress': 'text-status-inactive',
loading: 'text-status-inactive',
'not-started': 'text-status-inactive',
};

const CustomStep = ({
Expand Down
Loading