Skip to content

Commit b1f91cc

Browse files
committed
Convert common to TypeScript
1 parent 4f75bbd commit b1f91cc

File tree

459 files changed

+12238
-870
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

459 files changed

+12238
-870
lines changed

packages/common/components/Preference/index.js

Lines changed: 0 additions & 83 deletions
This file was deleted.

packages/common/components/flex/Centered.js

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
declare const _default: import("styled-components").StyledComponent<any, any, {}, string | number | symbol>;
2+
export default _default;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
'use strict';
2+
Object.defineProperty(exports, '__esModule', { value: true });
3+
const styled_components_1 = require('styled-components');
4+
const react_input_autosize_1 = require('react-input-autosize');
5+
const Input_1 = require('../Input');
6+
exports.default = styled_components_1.default(react_input_autosize_1.default)`
7+
input {
8+
${Input_1.styles};
9+
}
10+
`;
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
declare const _default: import("styled-components").StyledComponent<any, any, {
2+
block?: boolean;
3+
error?: boolean;
4+
}, string | number | symbol>;
5+
export default _default;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
'use strict';
2+
Object.defineProperty(exports, '__esModule', { value: true });
3+
const react_textarea_autosize_1 = require('react-textarea-autosize');
4+
const Input_1 = require('../Input');
5+
exports.default = Input_1.default.withComponent(
6+
react_textarea_autosize_1.default
7+
);
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export declare const BorderRadius: import("styled-components").StyledComponent<"div", any, {
2+
hasUrl?: boolean;
3+
}, never>;
4+
export declare const Text: import("styled-components").StyledComponent<"span", any, {}, never>;
5+
export declare const Icon: import("styled-components").StyledComponent<"span", any, {}, never>;
6+
export declare const StyledA: import("styled-components").StyledComponent<"a", any, {}, never>;
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
'use strict';
2+
Object.defineProperty(exports, '__esModule', { value: true });
3+
const styled_components_1 = require('styled-components');
4+
exports.BorderRadius = styled_components_1.default.div`
5+
transition: 0.3s ease all;
6+
border-radius: 4px;
7+
border: 1px solid #4f5459;
8+
font-size: 0.75em;
9+
margin-right: 1rem;
10+
11+
display: flex;
12+
13+
${props =>
14+
props.hasUrl &&
15+
styled_components_1.css`
16+
&:hover {
17+
background-color: #4f5459;
18+
}
19+
`};
20+
`;
21+
exports.Text = styled_components_1.default.span`
22+
display: inline-block;
23+
24+
color: ${props =>
25+
props.theme.light ? '#636363' : 'rgba(255, 255, 255, 0.6)'};
26+
border-radius: 4px;
27+
padding: 3px 5px;
28+
29+
&:hover {
30+
color: rgba(255, 255, 255, 0.6);
31+
}
32+
`;
33+
exports.Icon = styled_components_1.default.span`
34+
display: inline-block;
35+
padding: 3px 5px;
36+
background-color: #4f5459;
37+
border-radius: 2px;
38+
color: ${props => props.theme.background};
39+
`;
40+
exports.StyledA = styled_components_1.default.a`
41+
text-decoration: none;
42+
`;
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/// <reference types="react" />
2+
declare function GithubBadge({ username, repo, url, branch, ...props }: {
3+
[x: string]: any;
4+
username: any;
5+
repo: any;
6+
url: any;
7+
branch: any;
8+
}): JSX.Element;
9+
export default GithubBadge;

0 commit comments

Comments
 (0)