Skip to content

Commit 771bba7

Browse files
bump version
1 parent 51c7e88 commit 771bba7

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,33 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [1.1.0] - 2021-02-05
6+
7+
### Major Changes
8+
9+
- Now List type are using `UnorderedList` and `OrderedList` components according to providing type.
10+
- Fixes `List`s `spacing` wrong property. Changes `24` to `2`.
11+
12+
If you want to use old List's, just extend defaults and change `List` key with this:
13+
14+
```
15+
list: props => {
16+
const { start, ordered, children, depth } = props;
17+
let styleType = 'disc';
18+
if (ordered) styleType = 'decimal';
19+
if (depth === 1) styleType = 'circle';
20+
return (
21+
<List
22+
spacing={24}
23+
as={ordered ? 'ol' : 'ul'}
24+
styleType={styleType}
25+
pl={4}
26+
>
27+
{children}
28+
</List>
29+
);
30+
```
31+
532
## [1.0.0] - 2020-12-16
633

734
### Added

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"main": "dist/index.cjs.js",
44
"module": "dist/index.esm.js",
55
"source": "src/index.js",
6-
"version": "1.0.0",
6+
"version": "1.1.0",
77
"private": false,
88
"license": "MIT",
99
"files": [

0 commit comments

Comments
 (0)