import React, { useState } from 'react'; import { Calendar } from 'components/shared/Calendar'; import { Value } from 'react-calendar/dist/cjs/shared/types'; import { renderCheckbox, renderCheckboxWithDescription, } from './renders/checkbox'; import { avatars, avatarsFallback } from './renders/avatar'; import { renderBadges } from './renders/badge'; import { renderButtonIcons, renderButtons, renderDisabledButtons, renderLinks, } from './renders/button'; import { renderTabWithBadges, renderTabs, renderVerticalTabs, } from './renders/tabs'; import { RADIO_OPTIONS } from './renders/radio'; import { Radio } from 'components/shared/Radio'; import { renderInlineNotificationWithDescriptions, renderInlineNotifications, } from './renders/inlineNotifications'; import { renderInputs } from './renders/input'; import { renderTooltips } from './renders/tooltip'; const Page = () => { const [singleDate, setSingleDate] = useState(); const [dateRange, setDateRange] = useState(); const [selectedRadio, setSelectedRadio] = useState(''); return (

Manual Storybook

Get started by editing{' '} packages/frontend/src/pages/components/index.tsx

Tooltip

{renderTooltips()}
{/* Input */}

Input

{renderInputs()}
{/* Button */}

Button

{renderButtons()} {renderButtonIcons()}
{/* Link */}

Link

{renderLinks()}
{/* Disabled button, icon only, and link */}

Disabled

Button – icon only – link

{renderDisabledButtons()}
{/* Badge */}

Badge

{renderBadges()}
{/* Checkbox */}

Checkbox

{renderCheckbox()}
{renderCheckboxWithDescription()}
{/* Calendar */}

Calendar

Selected date: {singleDate?.toString()}

Start date:{' '} {dateRange instanceof Array ? dateRange[0]?.toString() : ''}{' '}
End date:{' '} {dateRange instanceof Array ? dateRange[1]?.toString() : ''}

{/* Avatar */}

Avatar

{avatars} {avatarsFallback}
{/* Tabs */}

Tabs

{renderTabs()} {renderTabWithBadges()}

Vertical Tabs

{renderVerticalTabs()}
{/* Radio */}

Radio

{/* Inline notification */}

Inline Notification

{renderInlineNotifications()}
{renderInlineNotificationWithDescriptions()}
); }; export default Page;