blob: dd82953448280f68d3eee03083cb9666ff4cbcf5 [file] [log] [blame]
simon26e79f72022-10-05 22:16:08 -04001/*
2 * Copyright (C) 2022 Savoir-faire Linux Inc.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Affero General Public License as
6 * published by the Free Software Foundation; either version 3 of the
7 * License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Affero General Public License for more details.
13 *
14 * You should have received a copy of the GNU Affero General Public
15 * License along with this program. If not, see
16 * <https://www.gnu.org/licenses/>.
17 */
simond47ef9e2022-09-28 22:24:28 -040018import { Button, Stack, Switch, ThemeProvider, Typography } from '@mui/material';
simon07b4eb02022-09-29 17:50:26 -040019
simond47ef9e2022-09-28 22:24:28 -040020import {
simond47ef9e2022-09-28 22:24:28 -040021 BackButton,
simon07b4eb02022-09-29 17:50:26 -040022 CancelPictureButton,
simond47ef9e2022-09-28 22:24:28 -040023 CloseButton,
simon07b4eb02022-09-29 17:50:26 -040024 EditPictureButton,
25 InfoButton,
26 TakePictureButton,
27 TipButton,
28 UploadPictureButton,
simon35378692022-10-02 23:25:57 -040029} from '../components/Button';
30import { NickNameInput, PasswordInput, RegularInput, UsernameInput } from '../components/Input';
31import defaultTheme from './Default';
idillon24fe8d82022-08-29 16:55:20 -040032
33export const ThemeDemonstrator = () => {
simond47ef9e2022-09-28 22:24:28 -040034 return (
35 <ThemeProvider theme={defaultTheme}>
36 <Stack spacing="5px">
37 <Stack>
38 <Typography variant="h1">Exemple de titre H1</Typography>
39 <Typography variant="h2">Exemple de titre H2</Typography>
40 <Typography variant="h3">Exemple de titre H3</Typography>
41 <Typography variant="h4">Exemple de titre H4</Typography>
42 <Typography variant="h5">Exemple de titre H5</Typography>
43 <Typography variant="body1">Texte courant principal</Typography>
44 <Typography variant="body2">Texte courant secondaire</Typography>
45 <Typography variant="caption">Légendes et annotations</Typography>
46 </Stack>
47 <Stack spacing="5px" padding="5px" width="300px">
48 <Button variant="contained">Bouton primaire</Button>
49 <Button variant="outlined">Bouton secondaire</Button>
50 <Button variant="text">Bouton tertiaire</Button>
51 <Button variant="contained" size="small">
52 Bouton liste préférences
53 </Button>
54 </Stack>
55 <Stack direction="row" spacing="5px">
56 <CancelPictureButton />
57 <EditPictureButton />
58 <UploadPictureButton />
59 <TakePictureButton />
60 </Stack>
61 <Stack direction="row" spacing="5px">
Michelle Sepkap Simef5ebc2e2022-10-27 18:30:53 -040062 <InfoButton tooltipTitle={''} />
simond47ef9e2022-09-28 22:24:28 -040063 <TipButton />
64 </Stack>
65 <Stack direction="row" spacing="5px">
66 <BackButton />
67 <CloseButton />
68 </Stack>
69 <Stack>
70 <Switch />
71 </Stack>
72 <Stack padding="5px" width="300px">
Michelle Sepkap Simef5ebc2e2022-10-27 18:30:53 -040073 <UsernameInput onChange={() => {}} tooltipTitle={'Test'} />
74 <UsernameInput onChange={() => {}} tooltipTitle={'Test'} error defaultValue="Cyrille" />
75 <PasswordInput onChange={() => {}} tooltipTitle={'Test'} />
76 <PasswordInput onChange={() => {}} tooltipTitle={'Test'} error defaultValue="SavoirFaireLinux" />
simond47ef9e2022-09-28 22:24:28 -040077 <NickNameInput />
78 <RegularInput />
79 </Stack>
80 </Stack>
81 </ThemeProvider>
82 );
83};