Skip to content

Commit 7f6f4fe

Browse files
authored
version: 4.3.2 (#63)
* 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 * chore: change version * fix(github-actions): update snapshot
1 parent 8260cc9 commit 7f6f4fe

File tree

3 files changed

+65
-65
lines changed

3 files changed

+65
-65
lines changed

README.md

Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<p>A simple component to generate a responsive vertical timeline</p>
77
</div>
88

9-
![Vertical Timeline Component React](<https://dsc.cloud/83db8c/image.png> 'How to see vertical-timeline-component-react')
9+
![Vertical Timeline Component React](https://dsc.cloud/83db8c/image.png 'How to see vertical-timeline-component-react')
1010

1111
## Status
1212

@@ -124,38 +124,38 @@ The following snippet will show you how to use the library:
124124
import { Timeline, Events, Content } from 'vertical-timeline-component-react';
125125

126126
const customTheme = {
127-
borderDotColor: '#ffffff',
128-
descriptionColor: '#262626',
129-
dotColor: '#d0cdc4',
130-
eventColor: '#965500',
131-
lineColor: '#d0cdc4',
132-
subtitleColor: '#7c7c7c',
133-
titleColor: '#405b73',
134-
yearColor: '#405b73',
127+
borderDotColor: '#ffffff',
128+
descriptionColor: '#262626',
129+
dotColor: '#d0cdc4',
130+
eventColor: '#965500',
131+
lineColor: '#d0cdc4',
132+
subtitleColor: '#7c7c7c',
133+
titleColor: '#405b73',
134+
yearColor: '#405b73',
135135
};
136136

137137
class Main extends Component {
138-
render() {
139-
return (
140-
<Timeline lang="en" theme={customTheme} dateFormat="only-number" collapse withoutDay>
141-
<Events
142-
title="What is lorem Ipsum?"
143-
subtitle="It's a fake text"
144-
startDate="2020/12/02"
145-
defaultClosed
146-
active
147-
>
148-
<Event
149-
title="Lorem Ipsum"
150-
description={[
151-
"Is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard",
152-
'Is simply dummy text of the printing and typesetting industry.',
153-
]}
154-
/>
155-
</Events>
156-
</Timeline>
157-
);
158-
}
138+
render() {
139+
return (
140+
<Timeline lang="en" theme={customTheme} dateFormat="only-number" collapse withoutDay>
141+
<Events
142+
title="What is lorem Ipsum?"
143+
subtitle="It's a fake text"
144+
startDate="2020/12/02"
145+
defaultClosed
146+
active
147+
>
148+
<Event
149+
title="Lorem Ipsum"
150+
description={[
151+
"Is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard",
152+
'Is simply dummy text of the printing and typesetting industry.',
153+
]}
154+
/>
155+
</Events>
156+
</Timeline>
157+
);
158+
}
159159
}
160160
```
161161

@@ -165,36 +165,36 @@ class Main extends Component {
165165
import { Timeline, Events } from 'vertical-timeline-component-react';
166166

167167
const Main = () => {
168-
const customTheme = {
169-
borderDotColor: '#ffffff',
170-
descriptionColor: '#262626',
171-
dotColor: '#d0cdc4',
172-
eventColor: '#965500',
173-
lineColor: '#d0cdc4',
174-
subtitleColor: '#7c7c7c',
175-
titleColor: '#405b73',
176-
yearColor: '#405b73',
177-
};
178-
179-
return (
180-
<Timeline lang="en" theme={customTheme} dateFormat="only-number" collapse withoutDay>
181-
<Events
182-
title="What is lorem Ipsum?"
183-
subtitle="It's a fake text"
184-
startDate="2020/12/02"
185-
active
186-
defaultClosed
187-
>
188-
<Event
189-
title="Lorem Ipsum"
190-
description={[
191-
"Is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard",
192-
'Is simply dummy text of the printing and typesetting industry.',
193-
]}
194-
/>
195-
</Events>
196-
</Timeline>
197-
);
168+
const customTheme = {
169+
borderDotColor: '#ffffff',
170+
descriptionColor: '#262626',
171+
dotColor: '#d0cdc4',
172+
eventColor: '#965500',
173+
lineColor: '#d0cdc4',
174+
subtitleColor: '#7c7c7c',
175+
titleColor: '#405b73',
176+
yearColor: '#405b73',
177+
};
178+
179+
return (
180+
<Timeline lang="en" theme={customTheme} dateFormat="only-number" collapse withoutDay>
181+
<Events
182+
title="What is lorem Ipsum?"
183+
subtitle="It's a fake text"
184+
startDate="2020/12/02"
185+
active
186+
defaultClosed
187+
>
188+
<Event
189+
title="Lorem Ipsum"
190+
description={[
191+
"Is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard",
192+
'Is simply dummy text of the printing and typesetting industry.',
193+
]}
194+
/>
195+
</Events>
196+
</Timeline>
197+
);
198198
};
199199
```
200200

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vertical-timeline-component-react",
3-
"version": "4.3.1",
3+
"version": "4.3.2",
44
"description": "A simple component for create a vertical timeline with React",
55
"main": "./lib/cjs/index.js",
66
"module": "./lib/esm/index.js",

tests/components/timeline/__snapshots__/index.test.tsx.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ Object {
1515
class="sc-dkzDqf bqgjsq"
1616
>
1717
<div
18-
aria-label="From Tuesday, January 01, 2019 To Monday, December 26, 2022"
18+
aria-label="From Tuesday, January 01, 2019 To Tuesday, December 27, 2022"
1919
class="sc-hKMtZM VwYTb"
2020
format="only-number"
2121
lang="en"
2222
>
2323
<time
2424
aria-hidden="true"
25-
datetime="12/26/2022"
25+
datetime="12/27/2022"
2626
>
2727
2022
2828
</time>
@@ -87,14 +87,14 @@ Object {
8787
class="sc-dkzDqf bqgjsq"
8888
>
8989
<div
90-
aria-label="From Tuesday, January 01, 2019 To Monday, December 26, 2022"
90+
aria-label="From Tuesday, January 01, 2019 To Tuesday, December 27, 2022"
9191
class="sc-hKMtZM VwYTb"
9292
format="only-number"
9393
lang="en"
9494
>
9595
<time
9696
aria-hidden="true"
97-
datetime="12/26/2022"
97+
datetime="12/27/2022"
9898
>
9999
2022
100100
</time>

0 commit comments

Comments
 (0)