import React from 'react'; import { Calendar } from 'components/shared/Calendar'; import { DatePicker } from 'components/shared/DatePicker'; import { Radio } from 'components/shared/Radio'; import { SegmentedControls } from 'components/shared/SegmentedControls'; import { Switch } from 'components/shared/Switch'; import { useState } from 'react'; import { Value } from 'react-calendar/dist/cjs/shared/types'; import { avatars, avatarsFallback } from './renders/avatar'; import { renderBadges } from './renders/badge'; import { renderButtonIcons, renderButtons, renderDisabledButtons, renderLinks, } from './renders/button'; import { renderCheckbox, renderCheckboxWithDescription, } from './renders/checkbox'; import { DropdownExample } from './renders/dropdown'; import { renderInlineNotificationWithDescriptions, renderInlineNotifications, } from './renders/inlineNotifications'; import { renderInputs } from './renders/input'; import { RADIO_OPTIONS } from './renders/radio'; import { SEGMENTED_CONTROLS_OPTIONS } from './renders/segmentedControls'; import { renderTabWithBadges, renderTabs, renderVerticalTabs, } from './renders/tabs'; import { renderDefaultTag, renderMinimalTag } from './renders/tag'; import { renderToast, renderToastsWithCta } from './renders/toast'; import { renderTooltips } from './renders/tooltip'; const Page: React.FC = () => { const [singleDate, setSingleDate] = useState(); const [dateRange, setDateRange] = useState(); const [selectedSegmentedControl, setSelectedSegmentedControl] = useState('Test 1'); const [switchValue, setSwitchValue] = useState(false); const [selectedRadio, setSelectedRadio] = useState(''); return (

Manual Storybook

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

{/* Tag */}

Tag

{renderDefaultTag()} {renderMinimalTag()}
{/* Toast */}

Toasts

{renderToastsWithCta()} {renderToast()}
{/* Tooltip */}

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() : ''}

Date Picker

{/* Avatar */}

Avatar

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

Tabs

{renderTabs()} {renderTabWithBadges()}

Vertical Tabs

{renderVerticalTabs()}
{/* Segmented Controls */}

Segmented Controls

{/* Switch */}

Switch

{/* Radio */}

Radio

{/* Dropdown */}

Dropdown / Select

{/* Inline notification */}

Inline Notification

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