-
-
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.
- Loading branch information
Showing
57 changed files
with
1,021 additions
and
230 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,2 +1,2 @@ | ||
github: Proskynete | ||
custom: https://donate.eduardoalvarez.dev | ||
custom: https://thanks.eduardoalvarez.dev/donate |
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
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 |
---|---|---|
@@ -1,9 +1,3 @@ | ||
import { PropsWithChildren } from 'react'; | ||
interface ContainerProps { | ||
title: string; | ||
startDate: string; | ||
endDate?: string; | ||
today?: boolean; | ||
} | ||
declare const Container: ({ title, startDate, endDate, today, children, }: PropsWithChildren<ContainerProps>) => JSX.Element; | ||
import { ContainerProps } from '../../interfaces'; | ||
declare const Container: ({ title, startDate, endDate, today, withoutDay, children }: ContainerProps) => JSX.Element; | ||
export { 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
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,7 +1,3 @@ | ||
interface ContentProps { | ||
title: string; | ||
description: string[]; | ||
collapse?: boolean; | ||
} | ||
import { ContentProps } from '../../interfaces'; | ||
declare const Content: ({ title, description, collapse }: ContentProps) => JSX.Element; | ||
export { Content }; |
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 ErrorMessageProps { | ||
type: 'atLeast' | 'onlySupports'; | ||
component: string; | ||
} | ||
declare const ErrorMessage: ({ type, component }: ErrorMessageProps) => JSX.Element; | ||
export { ErrorMessage }; |
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 }); | ||
exports.ErrorMessage = void 0; | ||
var react_1 = __importDefault(require("react")); | ||
var main_1 = require("../../styles/main"); | ||
var ErrorMessage = function (_a) { | ||
var type = _a.type, component = _a.component; | ||
return (react_1.default.createElement(react_1.default.Fragment, null, type === 'atLeast' ? (react_1.default.createElement(main_1.TextErrorMessage, null, | ||
"You need at least one ", | ||
react_1.default.createElement("code", null, "<".concat(component, " />")), | ||
" to correctly render this component")) : (react_1.default.createElement(main_1.TextErrorMessage, null, | ||
"This component only supports ", | ||
react_1.default.createElement("code", null, "<".concat(component, " />")), | ||
" components as children")))); | ||
}; | ||
exports.ErrorMessage = ErrorMessage; |
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,4 +1,3 @@ | ||
import { PropsWithChildren } from 'react'; | ||
import { TimelineProps } from '../../interfaces'; | ||
declare const Timeline: ({ theme, lang, dateFormat, collapse, customStyles, children, }: PropsWithChildren<TimelineProps>) => JSX.Element; | ||
declare const Timeline: ({ theme, lang, dateFormat, collapse, withoutDay, customStyles, children, }: TimelineProps) => JSX.Element; | ||
export { 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
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 { JSXElementConstructor, PropsWithChildren } from 'react'; | ||
interface ValidateProps { | ||
componentToValidate: JSXElementConstructor<any>; | ||
} | ||
declare const Validate: ({ children, componentToValidate }: PropsWithChildren<ValidateProps>) => JSX.Element; | ||
export { Validate }; |
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,41 @@ | ||
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Validate = void 0; | ||
var react_1 = __importStar(require("react")); | ||
var error_message_1 = require("../error-message"); | ||
var Validate = function (_a) { | ||
var children = _a.children, componentToValidate = _a.componentToValidate; | ||
var count = react_1.Children.count(children); | ||
if (count === 0) | ||
return react_1.default.createElement(error_message_1.ErrorMessage, { type: "atLeast", component: componentToValidate.name }); | ||
if (count === 1 && children.type !== componentToValidate) | ||
return react_1.default.createElement(error_message_1.ErrorMessage, { type: "onlySupports", component: componentToValidate.name }); | ||
var elements = react_1.Children.map(children, function (element) { | ||
return element.type === componentToValidate ? element : null; | ||
}); | ||
return react_1.default.createElement(react_1.default.Fragment, null, elements); | ||
}; | ||
exports.Validate = Validate; |
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,8 +1,3 @@ | ||
import { PropsWithChildren } from 'react'; | ||
interface YearContentProps { | ||
startDate: string; | ||
endDate?: string; | ||
today?: boolean; | ||
} | ||
declare const YearContent: ({ startDate, endDate, today, }: PropsWithChildren<YearContentProps>) => JSX.Element; | ||
import { YearContentProps } from '../../interfaces'; | ||
declare const YearContent: ({ startDate, endDate, today, withoutDay }: YearContentProps) => JSX.Element; | ||
export default YearContent; |
Oops, something went wrong.