This repository has been archived by the owner on Mar 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
10 changed files
with
245 additions
and
26 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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// @flow | ||
import React, { type Node } from 'react'; | ||
import { AlertTitle as _AlertTitle } from './styled'; | ||
|
||
type Props = { | ||
children: Node | ||
}; | ||
|
||
const AlertTitle = ({ children, ...props }: Props) => <_AlertTitle {...props}>{children}</_AlertTitle>; | ||
|
||
export default AlertTitle; |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import React from 'react'; | ||
import render from '../../_utils/tests/render'; | ||
import AlertTitle from '../AlertTitle'; | ||
import 'jest-styled-components'; | ||
|
||
it('renders correctly', () => { | ||
const { container } = render(<AlertTitle>AlertTitle</AlertTitle>); | ||
expect(container.firstChild).toMatchSnapshot(); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,75 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`renders correctly 1`] = ` | ||
.c1 { | ||
margin: unset; | ||
padding: unset; | ||
border: unset; | ||
background: unset; | ||
font: unset; | ||
font-family: inherit; | ||
font-size: 100%; | ||
box-sizing: border-box; | ||
background-color: unset; | ||
color: inherit; | ||
} | ||
.c4 { | ||
margin: unset; | ||
padding: unset; | ||
border: unset; | ||
background: unset; | ||
font: unset; | ||
font-family: inherit; | ||
font-size: 100%; | ||
box-sizing: border-box; | ||
background-color: unset; | ||
color: inherit; | ||
margin-bottom: 0.25rem !important; | ||
} | ||
.c0 { | ||
box-sizing: border-box; | ||
font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans', 'Droid Sans','Helvetica Neue',sans-serif; | ||
font-size: 16px; | ||
font-weight: 400; | ||
line-height: 1.5; | ||
margin: 0; | ||
padding: 0; | ||
overflow-x: hidden; | ||
-webkit-font-smoothing: antialiased; | ||
text-rendering: optimizeLegibility; | ||
color: #435a6f; | ||
} | ||
.c0 *, | ||
.c0 *::before, | ||
.c0 *::after { | ||
box-sizing: inherit; | ||
} | ||
.c0 *:focus { | ||
outline: 2px solid #586ccf; | ||
outline-offset: 2px; | ||
} | ||
.c3 { | ||
display: inline-block; | ||
} | ||
.c2 { | ||
display: block; | ||
} | ||
<div | ||
class="c0 c1" | ||
> | ||
<label | ||
class="c2 c3 c4" | ||
font-weight="600" | ||
style="font-weight: 600;" | ||
> | ||
AlertTitle | ||
</label> | ||
</div> | ||
`; |
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
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