-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from Proskynete/add-typescript
Add typescript
- Loading branch information
Showing
96 changed files
with
9,815 additions
and
9,149 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { FC } from 'react'; | ||
declare const BodyContent: FC; | ||
export default BodyContent; |
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 @@ | ||
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var react_1 = __importDefault(require("react")); | ||
var BodyContent = function (_a) { | ||
var children = _a.children; | ||
return react_1.default.createElement(react_1.default.Fragment, null, children); | ||
}; | ||
exports.default = BodyContent; |
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,3 @@ | ||
import { FC } from 'react'; | ||
declare const Container: FC; | ||
export default 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,14 @@ | ||
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var react_1 = __importDefault(require("react")); | ||
var main_1 = require("../../styles/main"); | ||
var Container = function (_a) { | ||
var children = _a.children; | ||
return children ? (react_1.default.createElement(main_1.ContainerWrapper, null, | ||
children[0], | ||
react_1.default.createElement(main_1.BodyContent, null, children[1]))) : (react_1.default.createElement(react_1.default.Fragment, null)); | ||
}; | ||
exports.default = 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,6 @@ | ||
interface DescriptionProps { | ||
text: string; | ||
variant?: 'description' | 'subtitle' | 'descriptionSubtitle'; | ||
} | ||
declare const Description: ({ text, variant }: DescriptionProps) => JSX.Element; | ||
export default Description; |
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,19 @@ | ||
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var react_1 = __importDefault(require("react")); | ||
var main_1 = require("../../styles/main"); | ||
var Description = function (_a) { | ||
var text = _a.text, _b = _a.variant, variant = _b === void 0 ? 'description' : _b; | ||
switch (variant) { | ||
case 'subtitle': | ||
return react_1.default.createElement(main_1.Subtitle, null, text); | ||
case 'descriptionSubtitle': | ||
return react_1.default.createElement(main_1.DescriptionSubtitle, null, text); | ||
default: | ||
return react_1.default.createElement(main_1.DescriptionText, null, text); | ||
} | ||
}; | ||
exports.default = Description; |
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,6 @@ | ||
import { PropsWithChildren } from 'react'; | ||
interface SectionProps { | ||
title: string; | ||
} | ||
declare const Section: ({ title, children }: PropsWithChildren<SectionProps>) => JSX.Element; | ||
export default Section; |
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,14 @@ | ||
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var react_1 = __importDefault(require("react")); | ||
var main_1 = require("../../styles/main"); | ||
var Section = function (_a) { | ||
var title = _a.title, children = _a.children; | ||
return (react_1.default.createElement(main_1.BodyWrapper, null, | ||
react_1.default.createElement(main_1.Title, null, title), | ||
react_1.default.createElement(main_1.BodyInner, null, children))); | ||
}; | ||
exports.default = Section; |
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 { PropsWithChildren } from 'react'; | ||
import { DateFormat, Theme } from '../../interfaces'; | ||
interface TimelineProps { | ||
theme?: Theme; | ||
lang?: string; | ||
dateFormat?: DateFormat; | ||
} | ||
declare const Timeline: ({ theme, lang, children, dateFormat, }: PropsWithChildren<TimelineProps>) => JSX.Element; | ||
export default Timeline; |
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,18 @@ | ||
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var react_1 = __importDefault(require("react")); | ||
var styled_components_1 = require("styled-components"); | ||
var config_1 = require("../../config"); | ||
var config_context_1 = require("../../context/config.context"); | ||
var main_1 = require("../../styles/main"); | ||
var Timeline = function (_a) { | ||
var _b = _a.theme, theme = _b === void 0 ? config_1.defaultValues.theme : _b, _c = _a.lang, lang = _c === void 0 ? config_1.defaultValues.lang : _c, children = _a.children, _d = _a.dateFormat, dateFormat = _d === void 0 ? config_1.defaultValues.dateFormat : _d; | ||
return (react_1.default.createElement(main_1.TimelineWrapper, null, | ||
react_1.default.createElement(main_1.TimelineWrapperInner, null, | ||
react_1.default.createElement(config_context_1.ConfigContext.Provider, { value: { lang: lang, dateFormat: dateFormat } }, | ||
react_1.default.createElement(styled_components_1.ThemeProvider, { theme: theme }, children))))); | ||
}; | ||
exports.default = Timeline; |
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,8 @@ | ||
import { PropsWithChildren } from 'react'; | ||
interface YearContentProps { | ||
startDate: string; | ||
endDate?: string; | ||
currentYear?: boolean; | ||
} | ||
declare const YearContent: ({ startDate, endDate, currentYear, }: PropsWithChildren<YearContentProps>) => JSX.Element; | ||
export default YearContent; |
Oops, something went wrong.