-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
263 additions
and
312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,22 @@ | ||
version: 2 | ||
updates: | ||
# github-actions | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: weekly | ||
target-branch: "1.x" | ||
- package-ecosystem: npm | ||
directory: / | ||
schedule: | ||
interval: weekly | ||
target-branch: "1.x" | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: weekly | ||
target-branch: "master" | ||
- package-ecosystem: npm | ||
directory: / | ||
schedule: | ||
interval: weekly | ||
target-branch: "master" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import { Autocomplete, Button, Fab, Paper, Popper, Stack, styled, TextField, Typography } from "@mui/material" | ||
import { useRef, useState } from "react" | ||
import { ArrowDropDown } from "@mui/icons-material" | ||
|
||
const InnerPaper = styled(Paper)({ | ||
maxWidth: "600px", | ||
boxShadow: | ||
"0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 9px 46px 8px rgba(0, 0, 0, 0.12), 0px 24px 38px 3px rgba(0, 0, 0, 0.14);", | ||
}) | ||
|
||
export const ButtonExample = () => { | ||
return ( | ||
<Paper variant="padded"> | ||
<Typography variant="h2">Eksempel på knapper</Typography> | ||
|
||
<Typography variant="h3">Primary</Typography> | ||
|
||
<InnerPaper variant="padded"> | ||
<Button variant="contained">Enabled</Button> | ||
| ||
<Button variant="contained" disabled> | ||
Disabled | ||
</Button> | ||
</InnerPaper> | ||
|
||
<Typography variant="h3">Secondary</Typography> | ||
|
||
<InnerPaper variant="padded"> | ||
<Button variant="contained" color="secondary"> | ||
Enabled | ||
</Button> | ||
| ||
<Button variant="contained" color="secondary" disabled> | ||
Disabled | ||
</Button> | ||
</InnerPaper> | ||
|
||
<Typography variant="h3">Secondary Result</Typography> | ||
|
||
<InnerPaper variant="padded"> | ||
<Button variant="contained" color="secondaryResult"> | ||
Enabled | ||
</Button> | ||
| ||
<Button variant="contained" color="secondaryResult" disabled> | ||
Disabled | ||
</Button> | ||
</InnerPaper> | ||
</Paper> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
import { Container, Stack, Typography } from "@mui/material" | ||
import { Container, Stack, Switch, Typography } from "@mui/material" | ||
import { Colors } from "./Colors" | ||
import { SpacingExample } from "./SpacingExample" | ||
import { ButtonExample } from "./ButtonExample" | ||
import { SwitchExample } from "./SwitchExample" | ||
import { RadioExample } from "./RadioExample" | ||
|
||
export const Gallery = () => ( | ||
<Container maxWidth="xl"> | ||
<Typography variant="h1">Arkivverket MUI theme</Typography> | ||
<Typography variant="h1">Digitalarkivet MUI theme</Typography> | ||
<Stack> | ||
<Colors /> | ||
<SpacingExample /> | ||
<ButtonExample /> | ||
<SwitchExample /> | ||
<RadioExample /> | ||
</Stack> | ||
</Container> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import { | ||
Autocomplete, | ||
Button, | ||
Fab, | ||
FormControl, | ||
FormControlLabel, | ||
FormLabel, | ||
Paper, | ||
Popper, | ||
Radio, | ||
RadioGroup, | ||
Stack, | ||
styled, | ||
Switch, | ||
TextField, | ||
Typography, | ||
} from "@mui/material" | ||
import { useRef, useState } from "react" | ||
import { ArrowDropDown } from "@mui/icons-material" | ||
|
||
const InnerPaper = styled(Paper)({ | ||
maxWidth: "600px", | ||
boxShadow: | ||
"0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 9px 46px 8px rgba(0, 0, 0, 0.12), 0px 24px 38px 3px rgba(0, 0, 0, 0.14);", | ||
}) | ||
|
||
export const RadioExample = () => { | ||
return ( | ||
<Paper variant="padded"> | ||
<Typography variant="h2">Eksempel på Radiobuttons</Typography> | ||
|
||
<InnerPaper variant="padded"> | ||
<FormControl> | ||
<RadioGroup | ||
aria-labelledby="demo-radio-buttons-group-label" | ||
defaultValue="superawesome" | ||
name="radio-buttons-group" | ||
> | ||
<FormControlLabel value="superawesome" control={<Radio />} label="Superawesome" /> | ||
<FormControlLabel value="awesome" control={<Radio />} label="Awesome" /> | ||
<FormControlLabel value="other" control={<Radio />} label="Other" disabled /> | ||
</RadioGroup> | ||
</FormControl> | ||
</InnerPaper> | ||
</Paper> | ||
) | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { Autocomplete, Button, Fab, Paper, Popper, Stack, styled, Switch, TextField, Typography } from "@mui/material" | ||
import { useRef, useState } from "react" | ||
import { ArrowDropDown } from "@mui/icons-material" | ||
|
||
const InnerPaper = styled(Paper)({ | ||
maxWidth: "600px", | ||
boxShadow: | ||
"0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 9px 46px 8px rgba(0, 0, 0, 0.12), 0px 24px 38px 3px rgba(0, 0, 0, 0.14);", | ||
}) | ||
|
||
export const SwitchExample = () => { | ||
return ( | ||
<Paper variant="padded"> | ||
<Typography variant="h2">Eksempel på Switches</Typography> | ||
|
||
<InnerPaper variant="padded"> | ||
<Switch /> | ||
| ||
<Switch disabled /> | ||
</InnerPaper> | ||
</Paper> | ||
) | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.