/** *******************************************************************************************************************
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License").
You may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. *
******************************************************************************************************************** */
import { withRouter } from 'storybook-addon-react-router-v6';
import { ComponentStory, ComponentMeta } from '@storybook/react';
import Badge from '@cloudscape-design/components/badge';
import SpaceBetween from '@cloudscape-design/components/space-between';
import Box from '@cloudscape-design/components/box';
import Button from '@cloudscape-design/components/button';
import Container from '@cloudscape-design/components/container';
import TopNavigation from '@cloudscape-design/components/top-navigation';
import ContentLayout from '@cloudscape-design/components/content-layout';
import Link from '@cloudscape-design/components/link';
import Alert from '@cloudscape-design/components/alert';
import Header from '@cloudscape-design/components/header';
import { SideNavigationProps } from '@cloudscape-design/components/side-navigation';
import AppLayout, { useAppLayoutContext } from '.';
import { KEY_VALUE_PAIR_ITEMS } from '../KeyValuePairs/index.stories';
import KeyValuePairs from '../KeyValuePairs';
import Table from '../Table';
import columnDefinition from '../Table/data/columnDefinitions';
import shortData from '../Table/data/short';
import FormRenderer, { Schema } from '../FormRenderer';
import { Default as FormRendererDefault, TEST_DATA } from '../FormRenderer/index.stories';
import { action } from '@storybook/addon-actions';
import { Route, RouteProps, Routes } from 'react-router-dom';
export const TEST_NAV_ITEMS: SideNavigationProps.Item[] = [
{ type: 'link', text: 'home', href: '/' },
{ type: 'link', text: 'Page 1', href: '/page1' },
{ type: 'link', text: 'Page 2', href: '/page2' },
{ type: 'link', text: 'Page 3', href: '/page3' },
{ type: 'link', text: 'Page 4', href: '/page4' },
{ type: 'divider' },
{
type: 'link',
text: 'Notifications',
href: '/notifications',
info: 23,
},
{
type: 'link',
text: 'Documentation',
href: 'https://docs.aws.amazon.com',
external: true,
},
];
const KeyValuePairsComponent = () => {
return (
);
};
const DefaultTableComponent = () => {
return