-
-
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.
* fix: when the container component has only one content component * fix: modify unit tests * chore: change version * chore: some changes to PR request file * fix: publish github action * Create new release (#61) * breacking change(rename): components * chore: update tests * change: today text to active * add(events): optional subtitle prop * fix(test): optional subtitle prop * add(event): description symbol * improve(a11y): change div and p elements to ul and li * chore(tests): improve test and coverage * add(events-event): allow render closed some event componentes inside events componente * chore: order alphabetically asc all imports and attributes * chore(package): change version * fix(tests): improve coverage * add(template): config template * add(template): features requests * add(pull-request-template): add issue section * chore(documentation): change content * fix(test): update snapshots * chore(template): some changes in pull_request_template file
- Loading branch information
1 parent
e48d0ee
commit 078c033
Showing
65 changed files
with
633 additions
and
474 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,4 @@ | ||
contact_links: | ||
- name: Ask the community | ||
url: https://github.com/Proskynete/vertical-timeline-component-react/discussions/new | ||
about: Ask and discuss questions with other members of the community. |
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,29 @@ | ||
name: Feature request | ||
description: Suggest new or updated features to include the library. | ||
title: 'Suggest a new feature' | ||
labels: [feature] | ||
assignees: [] | ||
body: | ||
- type: checkboxes | ||
attributes: | ||
label: Prerequisites | ||
description: Please take a couple of minutes to help me work faster. | ||
options: | ||
- label: I have [searched](https://github.com/Proskynete/vertical-timeline-component-react/issues?q=is%3Aissue) for duplicate or closed feature requests | ||
required: true | ||
- label: I have read the [contributing guidelines](https://github.com/Proskynete/vertical-timeline-component-react/blob/master/CONTRIBUTING.md) | ||
required: true | ||
- type: textarea | ||
id: proposal | ||
attributes: | ||
label: Proposal | ||
description: Please provide detailed information on what we should add. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: motivation | ||
attributes: | ||
label: Motivation and context | ||
description: Tell us why this change is needed or helpful, and what problems it may help solve. | ||
validations: | ||
required: true |
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.
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,6 +1,6 @@ | ||
interface ErrorMessageProps { | ||
type: 'atLeast' | 'onlySupports'; | ||
component: string; | ||
type: 'atLeast' | 'onlySupports'; | ||
} | ||
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,3 @@ | ||
import { ContentProps } from '../../interfaces'; | ||
declare const Event: ({ collapse, defaultClosed, description, title }: ContentProps) => JSX.Element; | ||
export { Event }; |
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,4 @@ | ||
import { PropsWithChildren } from 'react'; | ||
import { EventsProps } from '../../interfaces'; | ||
declare const Events: ({ active, children, defaultClosed, endDate, startDate, subtitle, title, withoutDay, }: PropsWithChildren<EventsProps>) => JSX.Element; | ||
export { Events }; |
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,4 +1,4 @@ | ||
import { PropsWithChildren } from 'react'; | ||
import { TimelineProps } from '../../interfaces'; | ||
declare const Timeline: ({ theme, lang, dateFormat, collapse, withoutDay, customStyles, children, }: PropsWithChildren<TimelineProps>) => JSX.Element; | ||
declare const Timeline: ({ children, collapse, customStyles, dateFormat, descriptionSymbol, lang, theme, withoutDay, }: PropsWithChildren<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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
import { JSXElementConstructor, PropsWithChildren } from 'react'; | ||
interface ValidateProps { | ||
componentToValidate: JSXElementConstructor<any>; | ||
} | ||
declare const Validate: ({ children, componentToValidate }: PropsWithChildren<ValidateProps>) => JSX.Element; | ||
import React, { PropsWithChildren } from 'react'; | ||
declare type ValidateProps = { | ||
componentToValidate: React.JSXElementConstructor<any>; | ||
} & { | ||
[key: string]: any; | ||
}; | ||
declare const Validate: ({ children, componentToValidate, ...otherProps }: 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
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,3 +1,3 @@ | ||
import { YearContentProps } from '../../interfaces'; | ||
declare const YearContent: ({ startDate, endDate, today, withoutDay }: YearContentProps) => JSX.Element; | ||
declare const YearContent: ({ active, endDate, startDate, withoutDay }: YearContentProps) => JSX.Element; | ||
export default YearContent; |
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,6 +1,6 @@ | ||
import { Event } from './components/event'; | ||
import { Events } from './components/events'; | ||
import { DateFormat, Languages, Theme, TimelineProps } from './interfaces'; | ||
import { Timeline } from './components/timeline'; | ||
import { Container } from './components/container'; | ||
import { Content } from './components/content'; | ||
import { Theme, DateFormat, Languages, TimelineProps } from './interfaces'; | ||
export { Timeline, Container, Content }; | ||
export type { Theme, DateFormat, Languages, TimelineProps }; | ||
export { Timeline, Events, Event }; | ||
export type { DateFormat, Languages, Theme, TimelineProps }; |
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,9 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Content = exports.Container = exports.Timeline = void 0; | ||
exports.Event = exports.Events = exports.Timeline = void 0; | ||
var event_1 = require("./components/event"); | ||
Object.defineProperty(exports, "Event", { enumerable: true, get: function () { return event_1.Event; } }); | ||
var events_1 = require("./components/events"); | ||
Object.defineProperty(exports, "Events", { enumerable: true, get: function () { return events_1.Events; } }); | ||
var timeline_1 = require("./components/timeline"); | ||
Object.defineProperty(exports, "Timeline", { enumerable: true, get: function () { return timeline_1.Timeline; } }); | ||
var container_1 = require("./components/container"); | ||
Object.defineProperty(exports, "Container", { enumerable: true, get: function () { return container_1.Container; } }); | ||
var content_1 = require("./components/content"); | ||
Object.defineProperty(exports, "Content", { enumerable: true, get: function () { return content_1.Content; } }); |
Oops, something went wrong.