blob: 7f4e0f31e908abb8043355d48552961b8621a45d [file] [log] [blame]
idillon24fe8d82022-08-29 16:55:20 -04001import { Button, Stack, Switch, ThemeProvider, Typography } from "@mui/material"
2import { CancelButton, EditButton, UploadButton, TakePictureButton, InfoButton, TipButton, BackButton, CloseButton } from "../components/buttons"
3import { NickNameInput, PasswordInput, RegularInput, UsernameInput } from "../components/inputs"
4import defaultTheme from './default'
5
6export const ThemeDemonstrator = () => {
7 return (
8 <ThemeProvider theme={defaultTheme}>
9 <Stack spacing="5px">
10 <Stack>
11 <Typography variant="h1">Exemple de titre H1</Typography>
12 <Typography variant="h2">Exemple de titre H2</Typography>
13 <Typography variant="h3">Exemple de titre H3</Typography>
14 <Typography variant="h4">Exemple de titre H4</Typography>
15 <Typography variant="h5">Exemple de titre H5</Typography>
16 <Typography variant="body1">Texte courant principal</Typography>
17 <Typography variant="body2">Texte courant secondaire</Typography>
18 <Typography variant="caption">Légendes et annotations</Typography>
19 </Stack>
20 <Stack spacing="5px" padding="5px" width="300px" >
21 <Button variant="contained">Bouton primaire</Button>
22 <Button variant="outlined">Bouton secondaire</Button>
23 <Button variant="text">Bouton tertiaire</Button>
24 <Button variant="contained" size="small">Bouton liste préférences</Button>
25 </Stack>
26 <Stack direction="row" spacing="5px">
27 <CancelButton/>
28 <EditButton/>
29 <UploadButton/>
30 <TakePictureButton/>
31 </Stack>
32 <Stack direction="row" spacing="5px">
33 <InfoButton/>
34 <TipButton/>
35 </Stack>
36 <Stack direction="row" spacing="5px">
37 <BackButton/>
38 <CloseButton/>
39 </Stack>
40 <Stack>
41 <Switch/>
42 </Stack>
43 <Stack padding="5px" width="300px" >
44 <UsernameInput/>
45 <UsernameInput
46 error
47 defaultValue="Cyrille"
48 />
49 <PasswordInput/>
50 <PasswordInput
51 error
52 defaultValue="SavoirFaireLinux"
53 />
54 <NickNameInput/>
55 <RegularInput/>
56 </Stack>
57 </Stack>
58 </ThemeProvider>
59 )
60}