Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build-tools/utils/pluralize.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
const pluralizationMap = {
ActionCard: 'ActionCards',
Alert: 'Alerts',
AnchorNavigation: 'AnchorNavigations',
Annotation: 'Annotations',
Expand Down
100 changes: 21 additions & 79 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 50 additions & 0 deletions pages/action-card/simple.page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import * as React from 'react';

import { ActionCard, SpaceBetween } from '~components';

import { SimplePage } from '../app/templates';

export default function ActionCardSimplePage() {
const [clickedCard, setClickedCard] = React.useState<string | null>(null);

return (
<SimplePage title="Action Card simple page" screenshotArea={{}}>
<SpaceBetween size="l">
<div>Last clicked: {clickedCard ?? 'None'}</div>

<div style={{ maxInlineSize: '400px' }}>
<SpaceBetween size="m">
<ActionCard
header={<b>EC2 access to S3</b>}
description="A description of the template/icebreaker"
iconName="angle-right"
iconPosition="right"
iconVerticalAlignment="top"
onClick={() => setClickedCard('Basic')}
></ActionCard>
<ActionCard
header={<b>EC2 access to S3</b>}
description="A description of the template/icebreaker"
iconName="arrow-right"
iconPosition="right"
iconVerticalAlignment="top"
onClick={() => setClickedCard('Basic')}
></ActionCard>
<ActionCard
header={<b>Account alias (111112222233333)</b>}
description="Dev/john.doe@amazon.com"
iconName="angle-right"
iconPosition="right"
iconVerticalAlignment="top"
onClick={() => setClickedCard('Basic')}
>
Logged in 1 minute ago
</ActionCard>
</SpaceBetween>
</div>
</SpaceBetween>
</SimplePage>
);
}
Loading
Loading