// // Copyright 2022 DXOS.org // import '@dxos-theme'; import { FileTs, FileJs, ArrowClockwise, Bug, TextUnderline, TextB, TextItalic } from '@phosphor-icons/react'; import React, { useState } from 'react'; import { Input, Select, Toggle, Toolbar } from '../components'; import { withTheme, withSurfaceVariantsLayout } from '../testing'; const DefaultStory = () => { const [checked, setChecked] = useState(false); const [select, setSelect] = useState(); return (
{/* TODO(burdon): Should be fixed width (regardless of selection). */} A B C {/* TODO(burdon): Highlight is cyan. */} {/* TODO(burdon): Show vertical divider by default. */} {/* TODO(burdon): Icon sizes should adapt to density. */} {/* TODO(burdon): Highlight isn't shown. */} {/* TODO(burdon): Should not be 'is-full' by default. */} {/* TODO(burdon): Checkbox collapsed. */} setChecked(!!value)} /> Checkbox Test
); }; export default { title: 'ui/react-ui-core/Playground/Controls', render: DefaultStory, decorators: [withSurfaceVariantsLayout(), withTheme], parameters: { chromatic: { disableSnapshot: false } }, }; export const Default = {};