release 2.1.0 (#451)

* feat: optimize fonts rendering on windows (#385)

* feat(styles): set Inter to highest font

* docs(fonts): add guide for fonts rendering on windows

* test: udpate snapshots

* chore: release v2.1.0-canary.0

* feat(table): add update row action to Table (#378)

* feat: add update to Table's actions. add test and doc

fix(table): fix comments

* feat(table): improve type for table actions

chore: update docs

chore: remove unused types

chore(table): improve docs

Co-authored-by: William Castandet <williamcastandet@williams-air.home>
Co-authored-by: unix <unix.bio@gmail.com>

* refactor(use-theme): move use-theme to the top directory (#397)

* refactor(use-theme): move use-theme to the top directory

* chore(jest): ignore use-theme of forwarding

* chore: release v2.1.0-canary.1

* feat(select): add clearable option to select multiple with test and english doc (#396)

* docs: add clearable option to select multiple with test and english doc

* fix: fix types for onClear

* fix: fix import path for use-theme

add more test for coverage

* docs(select): add chinese document

Co-authored-by: unix <unix.bio@gmail.com>

* chore: release v2.1.0-canary.2

* fix(tabs): scrollable (#404)

docs(tabs): scroll behavior

* feat(textarea): resize prop (#416)

* feat: add resize prop to textarea

* docs: add resize prop for textarea

* docs(textarea): improve docs and attributes for cn

* test(textarea): update snapshots

Co-authored-by: unix <unix.bio@gmail.com>

* fix(types): replace path aliases in type files (#432)

* fix(types): replace path aliases in type files

* chore(lint): upgrade eslint and optimize code style

* chore: fix type error for context handler

* test: update snapshots

* fix: use ttsc to identify aliases in type paths

* feat(hooks): add a tool hooks for react context (#439)

* feat(hooks): add a tool hooks for react context

* chore: move use-context-state to internal tools

style: fix lint warning

* chore: simplify the structure of the catalog

* refactor(themes): refactor theme module to keep multiple themes (#440)

* refactor(themes): refactor theme module to keep multiple themes

* chore: migrate APIs to be compatible with new theme system

* test: update snapshots

* chore: migrate the path of the theme module

* feat(themes): append static methods of themes

* chore: hide custom theme when no custom content in the context

* chore: manually add flush to preload styles in html

* docs(themes): update to fit the new theme system

* chore: release v2.1.0-canary.3 (#450)

* docs: add link to GH discussions

* chore: upgrade deps

* chore: update code style for prettier

* chore: release v2.1.0-canary.3

* chore(deps): upgrade babel

* chore: replace enzyme adapter with community repo to fit react.17

* test: updatee snapshots for auto typesetting

* test(config): ignore unexported parts of the tools

Co-authored-by: William <wcastand@gmail.com>
Co-authored-by: William Castandet <williamcastandet@williams-air.home>
Co-authored-by: Vaibhav Acharya <vaibhavacharya111@gmail.com>
Co-authored-by: Paul van Dyk <39598117+PaulPCIO@users.noreply.github.com>
This commit is contained in:
witt
2021-02-14 15:58:52 +08:00
committed by GitHub
parent 08f1be1b9f
commit 6da0509316
265 changed files with 11534 additions and 10645 deletions

View File

@@ -6,20 +6,20 @@ exports[`Display should support react-node 1`] = `ReactWrapper {}`;
exports[`Display should work with shadow and width 1`] = `
initialize {
"0": Object {
"0": Node {
"attribs": Object {},
"children": Array [
Object {
Node {
"attribs": Object {
"class": "display ",
},
"children": Array [
Object {
Node {
"attribs": Object {
"class": "content",
},
"children": Array [
Object {
Node {
"data": "display",
"next": null,
"parent": [Circular],
@@ -29,15 +29,15 @@ initialize {
],
"name": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"next": Object {
"next": Node {
"attribs": Object {
"class": "caption",
},
"children": Array [
Object {
Node {
"attribs": Object {},
"children": Array [
Object {
Node {
"data": "h1",
"next": null,
"parent": [Circular],
@@ -57,10 +57,10 @@ initialize {
],
"name": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"next": Object {
"next": Node {
"attribs": Object {},
"children": Array [
Object {
Node {
"data": "
.display {
display: block;
@@ -131,15 +131,15 @@ initialize {
"class": undefined,
},
},
Object {
Node {
"attribs": Object {
"class": "caption",
},
"children": Array [
Object {
Node {
"attribs": Object {},
"children": Array [
Object {
Node {
"data": "h1",
"next": null,
"parent": [Circular],
@@ -159,10 +159,10 @@ initialize {
],
"name": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"next": Object {
"next": Node {
"attribs": Object {},
"children": Array [
Object {
Node {
"data": "
.display {
display: block;
@@ -214,12 +214,12 @@ initialize {
"x-attribsPrefix": Object {},
},
"parent": [Circular],
"prev": Object {
"prev": Node {
"attribs": Object {
"class": "content",
},
"children": Array [
Object {
Node {
"data": "display",
"next": null,
"parent": [Circular],
@@ -248,10 +248,10 @@ initialize {
"class": undefined,
},
},
Object {
Node {
"attribs": Object {},
"children": Array [
Object {
Node {
"data": "
.display {
display: block;
@@ -297,15 +297,15 @@ initialize {
"namespace": "http://www.w3.org/1999/xhtml",
"next": null,
"parent": [Circular],
"prev": Object {
"prev": Node {
"attribs": Object {
"class": "caption",
},
"children": Array [
Object {
Node {
"attribs": Object {},
"children": Array [
Object {
Node {
"data": "h1",
"next": null,
"parent": [Circular],
@@ -327,12 +327,12 @@ initialize {
"namespace": "http://www.w3.org/1999/xhtml",
"next": [Circular],
"parent": [Circular],
"prev": Object {
"prev": Node {
"attribs": Object {
"class": "content",
},
"children": Array [
Object {
Node {
"data": "display",
"next": null,
"parent": [Circular],
@@ -368,17 +368,17 @@ initialize {
],
"name": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"next": Object {
"next": Node {
"attribs": Object {
"class": "display ",
},
"children": Array [
Object {
Node {
"attribs": Object {
"class": "content",
},
"children": Array [
Object {
Node {
"data": "display",
"next": null,
"parent": [Circular],
@@ -388,15 +388,15 @@ initialize {
],
"name": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"next": Object {
"next": Node {
"attribs": Object {
"class": "caption",
},
"children": Array [
Object {
Node {
"attribs": Object {},
"children": Array [
Object {
Node {
"data": "h1",
"next": null,
"parent": [Circular],
@@ -416,10 +416,10 @@ initialize {
],
"name": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"next": Object {
"next": Node {
"attribs": Object {},
"children": Array [
Object {
Node {
"data": "
.display {
display: block;
@@ -490,15 +490,15 @@ initialize {
"class": undefined,
},
},
Object {
Node {
"attribs": Object {
"class": "caption",
},
"children": Array [
Object {
Node {
"attribs": Object {},
"children": Array [
Object {
Node {
"data": "h1",
"next": null,
"parent": [Circular],
@@ -518,10 +518,10 @@ initialize {
],
"name": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"next": Object {
"next": Node {
"attribs": Object {},
"children": Array [
Object {
Node {
"data": "
.display {
display: block;
@@ -573,12 +573,12 @@ initialize {
"x-attribsPrefix": Object {},
},
"parent": [Circular],
"prev": Object {
"prev": Node {
"attribs": Object {
"class": "content",
},
"children": Array [
Object {
Node {
"data": "display",
"next": null,
"parent": [Circular],
@@ -607,10 +607,10 @@ initialize {
"class": undefined,
},
},
Object {
Node {
"attribs": Object {},
"children": Array [
Object {
Node {
"data": "
.display {
display: block;
@@ -656,15 +656,15 @@ initialize {
"namespace": "http://www.w3.org/1999/xhtml",
"next": null,
"parent": [Circular],
"prev": Object {
"prev": Node {
"attribs": Object {
"class": "caption",
},
"children": Array [
Object {
Node {
"attribs": Object {},
"children": Array [
Object {
Node {
"data": "h1",
"next": null,
"parent": [Circular],
@@ -686,12 +686,12 @@ initialize {
"namespace": "http://www.w3.org/1999/xhtml",
"next": [Circular],
"parent": [Circular],
"prev": Object {
"prev": Node {
"attribs": Object {
"class": "content",
},
"children": Array [
Object {
Node {
"data": "display",
"next": null,
"parent": [Circular],
@@ -748,17 +748,17 @@ initialize {
"class": undefined,
},
},
Object {
Node {
"attribs": Object {
"class": "display ",
},
"children": Array [
Object {
Node {
"attribs": Object {
"class": "content",
},
"children": Array [
Object {
Node {
"data": "display",
"next": null,
"parent": [Circular],
@@ -768,15 +768,15 @@ initialize {
],
"name": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"next": Object {
"next": Node {
"attribs": Object {
"class": "caption",
},
"children": Array [
Object {
Node {
"attribs": Object {},
"children": Array [
Object {
Node {
"data": "h1",
"next": null,
"parent": [Circular],
@@ -796,10 +796,10 @@ initialize {
],
"name": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"next": Object {
"next": Node {
"attribs": Object {},
"children": Array [
Object {
Node {
"data": "
.display {
display: block;
@@ -870,15 +870,15 @@ initialize {
"class": undefined,
},
},
Object {
Node {
"attribs": Object {
"class": "caption",
},
"children": Array [
Object {
Node {
"attribs": Object {},
"children": Array [
Object {
Node {
"data": "h1",
"next": null,
"parent": [Circular],
@@ -898,10 +898,10 @@ initialize {
],
"name": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"next": Object {
"next": Node {
"attribs": Object {},
"children": Array [
Object {
Node {
"data": "
.display {
display: block;
@@ -953,12 +953,12 @@ initialize {
"x-attribsPrefix": Object {},
},
"parent": [Circular],
"prev": Object {
"prev": Node {
"attribs": Object {
"class": "content",
},
"children": Array [
Object {
Node {
"data": "display",
"next": null,
"parent": [Circular],
@@ -987,10 +987,10 @@ initialize {
"class": undefined,
},
},
Object {
Node {
"attribs": Object {},
"children": Array [
Object {
Node {
"data": "
.display {
display: block;
@@ -1036,15 +1036,15 @@ initialize {
"namespace": "http://www.w3.org/1999/xhtml",
"next": null,
"parent": [Circular],
"prev": Object {
"prev": Node {
"attribs": Object {
"class": "caption",
},
"children": Array [
Object {
Node {
"attribs": Object {},
"children": Array [
Object {
Node {
"data": "h1",
"next": null,
"parent": [Circular],
@@ -1066,12 +1066,12 @@ initialize {
"namespace": "http://www.w3.org/1999/xhtml",
"next": [Circular],
"parent": [Circular],
"prev": Object {
"prev": Node {
"attribs": Object {
"class": "content",
},
"children": Array [
Object {
Node {
"data": "display",
"next": null,
"parent": [Circular],
@@ -1109,17 +1109,17 @@ initialize {
"namespace": "http://www.w3.org/1999/xhtml",
"next": null,
"parent": [Circular],
"prev": Object {
"prev": Node {
"attribs": Object {
"class": "display ",
},
"children": Array [
Object {
Node {
"attribs": Object {
"class": "content",
},
"children": Array [
Object {
Node {
"data": "display",
"next": null,
"parent": [Circular],
@@ -1129,15 +1129,15 @@ initialize {
],
"name": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"next": Object {
"next": Node {
"attribs": Object {
"class": "caption",
},
"children": Array [
Object {
Node {
"attribs": Object {},
"children": Array [
Object {
Node {
"data": "h1",
"next": null,
"parent": [Circular],
@@ -1157,10 +1157,10 @@ initialize {
],
"name": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"next": Object {
"next": Node {
"attribs": Object {},
"children": Array [
Object {
Node {
"data": "
.display {
display: block;
@@ -1231,15 +1231,15 @@ initialize {
"class": undefined,
},
},
Object {
Node {
"attribs": Object {
"class": "caption",
},
"children": Array [
Object {
Node {
"attribs": Object {},
"children": Array [
Object {
Node {
"data": "h1",
"next": null,
"parent": [Circular],
@@ -1259,10 +1259,10 @@ initialize {
],
"name": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"next": Object {
"next": Node {
"attribs": Object {},
"children": Array [
Object {
Node {
"data": "
.display {
display: block;
@@ -1314,12 +1314,12 @@ initialize {
"x-attribsPrefix": Object {},
},
"parent": [Circular],
"prev": Object {
"prev": Node {
"attribs": Object {
"class": "content",
},
"children": Array [
Object {
Node {
"data": "display",
"next": null,
"parent": [Circular],
@@ -1348,10 +1348,10 @@ initialize {
"class": undefined,
},
},
Object {
Node {
"attribs": Object {},
"children": Array [
Object {
Node {
"data": "
.display {
display: block;
@@ -1397,15 +1397,15 @@ initialize {
"namespace": "http://www.w3.org/1999/xhtml",
"next": null,
"parent": [Circular],
"prev": Object {
"prev": Node {
"attribs": Object {
"class": "caption",
},
"children": Array [
Object {
Node {
"attribs": Object {},
"children": Array [
Object {
Node {
"data": "h1",
"next": null,
"parent": [Circular],
@@ -1427,12 +1427,12 @@ initialize {
"namespace": "http://www.w3.org/1999/xhtml",
"next": [Circular],
"parent": [Circular],
"prev": Object {
"prev": Node {
"attribs": Object {
"class": "content",
},
"children": Array [
Object {
Node {
"data": "display",
"next": null,
"parent": [Circular],
@@ -1491,22 +1491,17 @@ initialize {
"name": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"next": null,
"parent": null,
"prev": null,
"root": Object {
"attribs": Object {},
"parent": Node {
"children": Array [
[Circular],
],
"name": "root",
"namespace": "http://www.w3.org/1999/xhtml",
"next": null,
"parent": null,
"prev": null,
"type": "root",
"x-attribsNamespace": Object {},
"x-attribsPrefix": Object {},
},
"prev": null,
"type": "tag",
"x-attribsNamespace": Object {},
"x-attribsPrefix": Object {},
@@ -1515,8 +1510,6 @@ initialize {
"length": 1,
"options": Object {
"decodeEntities": true,
"normalizeWhitespace": false,
"withDomLvl1": true,
"xml": false,
},
}