Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(date-picker): fix DatePicker cannot be used as controlled #1844

Merged
merged 1 commit into from Aug 18, 2021

Conversation

simonguo
Copy link
Member

fix #1842

@vercel
Copy link

vercel bot commented Aug 16, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

rsuite – ./docs

🔍 Inspect: https://vercel.com/rsuite/rsuite/4HCrxohTXkGwTKvRYypqHGUd73ju
✅ Preview: Canceled

rsuite-next – ./

🔍 Inspect: https://vercel.com/rsuite/rsuite-next/DgMt262sMkBjmSRsWFYN1wt9DvQq
✅ Preview: https://rsuite-next-git-fix-datepicker-rsuite.vercel.app

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 2fb9d38:

Sandbox Source
rsuite-tp-ci Configuration

@codecov
Copy link

codecov bot commented Aug 16, 2021

Codecov Report

Merging #1844 (2fb9d38) into next (ac26517) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             next    #1844   +/-   ##
=======================================
  Coverage   78.93%   78.93%           
=======================================
  Files         247      247           
  Lines        7704     7704           
  Branches     1708     1708           
=======================================
  Hits         6081     6081           
  Misses       1093     1093           
  Partials      530      530           
Flag Coverage Δ
ChromeCi 78.92% <100.00%> (ø)
Firefox 78.93% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/Calendar/useCalendarDate.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ac26517...2fb9d38. Read the comment docs.

@simonguo simonguo merged commit 3d6c035 into next Aug 18, 2021
@simonguo simonguo deleted the fix/DatePicker branch August 18, 2021 13:13
simonguo added a commit that referenced this pull request Sep 24, 2021
* Update 1.bug_report.md

* chore(issue_template): update issue temeplate

* Update 1.bug_report.yml

* Update 1.bug_report.yml

* chore(issue template): update issue templates

* feat(locales): add translations for German (#1495)

* feat(locales): add translations for German

* Add missing locale description

* fix(typos): fix typos in the docs (#1502)

* fix(rtl): fixed the docs not work when using `rtl` (#1501)

* fix(rtl): fixed the docs not work when using `rtl`

* docs: update package-lock.json

* docs: fix the type problem of ts check

* chore: bump webpack to 5.11.0 (#1484)

* chore: bump webpack to 5.11.0

* chore: update environment variables

* chore(karma): bump karma-webpack to 5.0.0

* chore: update npm scripts

* chore: bump postcss to v8

* fix: fix the problem of ts compilation error

* chore: fix webpack compatibility issues

* docs: update component documentation (#1515)

* fix(babel): fix the problem that commonjs import `default` is undefined (#1514)

* fix(daterangepicker): delete duplicate type definitions (#1513)

* docs(cascader): removed onGroupTitleClick on Cascader and MultiCascader (#1510)

* feat(uploader): support file async check on Uploader (#1509)

* fix(table): fixed unhandled scroll bar width when Cell is fixed on right (#1486)

* docs(nav): add example for responsive-nav (#1516)

* docs: fix invalid links (#1517)

* docs: fix invalid links

* docs: fix invalid links

* build: bump 5.0.0-alpha.4

* fix(rangeslider): fix RangeSlider style problem

* fix(inputpicker): fix the input does not work when focused by keyboard

* fix(inputpicker): inputPicker should clear search keywords when closed

* fix(pickers): picker should not be interactive during animation exit

* feat(whisper): support `onClose` on the `speaker` prop of Whisper

* fix(overlaytrigger): rename `child` to `root` in OverlayTrigger instance

* fix(daterangepicker): modify the `character`prop to be optional (#1518)

Modify the `character`prop to be optional on DateRangePicker

* docs(code-view): bump react-code-view to 1.3.0 (#1534)

* docs(search-drawer): fix the problem that search panel cannot be opened (#1537)

* docs(table): add example for table appearance (#1538)

* feat(pagination): added for support `layout` on Pagination (#1533)

* refactor(pagination): replace `a` with button

* feat(pagination): added for support `layout` on Pagination

* fix(panel): fix: Property 'Pagination' does not exist on type 'Table'

* feat(pagination): support router for PaginationButton

* docs(pagination): update docs for pagination

* docs(table): update example for table pagination

* docs(dropdown): update examples related to `dropdown` (#1539)

* docs(modal): add example for alert dialog (#1540)

* docs(modal): add example for alert dialog

* docs(modal): update example for alert dialog

* fix(uploader): fixed the status icon not showing during upload (#1547)

* fix(uploader): fixed the status icon not showing during upload

* style: format UploadFileItemSpec.js

* build(deps): bump elliptic from 6.5.3 to 6.5.4 in /examples/with-nextjs (#1551)

Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.3 to 6.5.4.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.3...v6.5.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump elliptic in /examples/custom-multiple-themes (#1552)

Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.3 to 6.5.4.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.3...v6.5.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump elliptic in /examples/create-react-app (#1553)

Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.3 to 6.5.4.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.3...v6.5.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump elliptic in /examples/with-electron (#1559)

Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.3 to 6.5.4.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.3...v6.5.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump elliptic from 6.5.3 to 6.5.4 in /examples/custom-i18n (#1554)

Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.3 to 6.5.4.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.3...v6.5.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump elliptic in /examples/with-nextjs-css-modules (#1555)

Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.3 to 6.5.4.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.3...v6.5.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump elliptic from 6.5.3 to 6.5.4 in /examples/with-flow (#1556)

Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.3 to 6.5.4.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.3...v6.5.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* docs(table): update example for table appearance (#1557)

* chore(examples): clean up the npm lock file (#1562)

* fix(tree): fix `spin` icon does not display when Tree is loaded async (#1535)

* fix(tree): fix `spin` icon does not display when Tree is loaded async

* fix(tree): fix `spin` icon does not display when Tree is loaded async

* style: replace hard-coded with css variables

Co-authored-by: superman <supermanchc@gmail.com>

* chore(examples): clean up the npm lock file (#1564)

* feat(form): support for data verification of complex object structure (#1558)

* feat(form): bump schema-typed to 2.0.0

* test(form): update test for form check

* docs(form): update docs for dynamic form

* fix(schema-typed): bump schema-typed to 2.0.0-alpha.2

* Update index.md (#1569)

Typo in yarn command.

* ci: add default example sandbox for CodeSandbox CI (#1573)

* ci(codesandbox): update CodeSandbox CI Config (#1575)

* ci(codesandbox): update CodeSandbox CI Config

* ci(codesandbox): update codesandbox CI config

* chore: update template for `bug-report` (#1580)

* chore: update template for `bug-report`

* chore: ignore .scannerwork

* docs(overview): removed the legacy Table.Pagination (#1574)

* refactor(Avatar): fix prop types (#1576)

change prop `sizes` and prop `srcSet` to optional.

* fix(modal): fix input is not allowed to input text in Modal (#1579)

fix #1570

* fix(Table): change `Table` locale prop to optional (#1581)

* build(table): bump rsuite-table to 5.0.0-alpha.2 (#1582)

* build: bump 5.0.0-alpha.5

* fix(pickers): Fixed the inability to pass the type check when the `labelKey` and `valueKey` of the pickers are changed. (#1589)

* fix(types): 自定义 `labelKey` or `valueKey` 时类型不兼容

* fix: 🐛 types of tree

* fix(cascader): fixed the option not re-rendering after data update (#1608)

fix #1599

* feat(hooks): add the useWillUnmount hook and apply it to Modal (#1607)

* chore(funding): update FUNDING.yml (#1617)

* build(deps): bump y18n from 4.0.0 to 4.0.1 in /docs (#1600)

Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump y18n from 3.2.1 to 3.2.2 (#1598)

Bumps [y18n](https://github.com/yargs/y18n) from 3.2.1 to 3.2.2.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* docs(icon): add an example for react-icons (#1616)

close #1606

* chore: update dev script (#1631)

* Fully automate dev setup with Gitpod (#1609)

This commit implements a fully-automated development setup using Gitpod.io, an
online IDE for GitLab, GitHub, and Bitbucket that enables Dev-Environments-As-Code.
This makes it easy for anyone to get a ready-to-code workspace for any branch,
issue or pull request almost instantly with a single click.

* fix(customprovider): integrate the locale of date-fns in CustomProvider (#1637)

fix #1636

* fix(typescript): fix incorrect definition of Typescript (#1640)

fix #1633

* build: bump 5.0.0-alpha.6

* build(deps): bump schema-typed to 2.0.0 (#1649)

* build(deps): bump ua-parser-js from 0.7.22 to 0.7.28 in /docs (#1643)

Bumps [ua-parser-js](https://github.com/faisalman/ua-parser-js) from 0.7.22 to 0.7.28.
- [Release notes](https://github.com/faisalman/ua-parser-js/releases)
- [Commits](https://github.com/faisalman/ua-parser-js/compare/0.7.22...0.7.28)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump handlebars from 4.7.6 to 4.7.7 (#1644)

Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.7.6 to 4.7.7.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.7.6...v4.7.7)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat(inputpicker): support onCreate on InputPicker and TagPicker (#1645)

* added onCreate prop

* added onCreate prop

* onCreate prop test

* feat(inputpicker): support `onCreate` on `InputPicker` and `TagPicker`

Co-authored-by: BossBele <adambeleko@gmail.com>

* feat(multi-cascader): support onCheck on MultiCascader (#1648)

* fix(lgtm): fix vulnerabilities in static code scanning using lgtm (#1651)

* fix(lgtm): fix vulnerabilities in static code scanning using lgtm

* fix(date-range-picker): the initial value of after is unused

* fix(picker-toggle): variable 'plaintext' always evaluates to false

* fix(input-number): regular expression vulnerabilities

This part of the regular expression may cause exponential backtracking on strings containing many
repetitions of '9'.

* fix(examples): fix unused import in examples

* build(deps): bump url-parse from 1.4.7 to 1.5.1 in /docs (#1652)

Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.4.7 to 1.5.1.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.4.7...1.5.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(typescript): fix incorrect definition of Typescript (#1656)

* build(deps): bump lodash from 4.17.19 to 4.17.21 (#1653)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.19 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.19...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(overlay): update the overlay to the correct position (#1654)

Update the overlay position after the overlay size changes or the window size changes

* build(deps): bump hosted-git-info from 2.8.8 to 2.8.9 (#1655)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build: bump 5.0.0-alpha.7

* fix: treePicker & CheckTreePicker

remove locale from defaultProps

* ci: add workflow for code quality analysis (#1673)

* build(deps): bump hosted-git-info from 2.8.8 to 2.8.9 in /docs (#1659)

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps-dev): bump lodash from 4.17.20 to 4.17.21 in /docs (#1660)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps-dev): bump postcss from 8.2.6 to 8.2.10 in /docs (#1663)

Bumps [postcss](https://github.com/postcss/postcss) from 8.2.6 to 8.2.10.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.2.6...8.2.10)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(cascader): fix `childrenKey` property not work when searching(#1568) (#1666)

* fix(cascader): fixing childrenKey property not work(#1568)

fix #1568

* style(cascaderspec.js): format code

* fix(cascader): fix flattenData no update by childrenKey

Co-authored-by: liwangping <liwangping@mail.hypers.com>

* feat(Whisper): added support for trigger prop value `contextMenu` on `Whisper`

* docs(tools-palette): fix the error in the prompt message (#1672)

* docs(tag-picker): fix TagPicker custom  example error in docs (#1675)

* docs(tooltip): fix disabled elements example error for tooltip in docs (#1676)

* docs(menu): adjust the order of components in the menu list (#1677)

* feat(nav-item): support `tooltip` on NavItem (#1680)

* feat(cascader): add `layer` parameter in `renderMenu` callback (#1681)

* Create SECURITY.md

* fix(drawer): remove height on Drawer body (#1683)

* fix(input-picker): fix InputPicker can select values in readOnly mode (#1674)

* build: bump 5.0.0-alpha.8

* Rewrite style system (#1476)

* feat(styles): custom properties alternatives for less colors

* refactor(button): reorg button state styles

* refactor(button): move transition style into .btn mixin

* style(styles): fix linting problem

* refactor(button): remove .btn-loading-reset mixin

* refactor(button): remove redundant .btn-transition mixin

* refactor(button): re-org button variant mixins

* fix(button): fix icon button bg transition

* refactor(styles): drop @ns less variable

* refactor(styles): re-org button group styles

* refactor(styles): use custom properties for colorful buttons

* fix(styles): fix button mixins that breaks pagination and picker styles

* refactor(styles): use css properties for colorful badges

* build(postcss): add postcss-custom-properties plugin

* refactor(styles): use custom properties for link colors

* refactor(styles): rename color levels 0-9 to 50-900

* fix(styles): rename custom properties in dark mode

* refactor(styles): re-org Divider styles

* refactor(styles): re-org Loader styles

* refactor(styles): re-org Message styles

* refactor(styles): re-org Notification styles

* refactor(styles): re-org Tooltip styles

* refactor(styles): re-org Popover styles

* refactor(tooltip): simplify Tooltip dom structure

* refactor(styles): re-org Progress styles

* refactor(styles): re-org Placeholder styles

* refactor(styles): re-org Breadcrumb styles

* refactor(styles): re-org Dropdown styles

* refactor(styles): re-org Steps styles

* refactor(styles): re-org Navs styles

* style: fix styling

* refactor(styles): re-org Container styles

* refactor(styles): re-org FlexboxGrid styles

* refactor(styles): re-org Grid styles

* refactor(styles): re-org Input styles

* refactor(styles): fix Dropdown styles inside Nav

* refactor(styles): re-org Navbar styles

BREAKING CHANGE: deprecate Navbar.Header and Navbar.Body

* refactor(styles): re-org Sidenav styles

* refactor(styles): re-org Pagination styles

* refactor(styles): re-org Button styles

* refactor(styles): re-org InputGroup styles

* refactor(styles): re-org InputNumber styles

* refactor(styles): re-org AutoComplete styles

* refactor(styles): re-org SelectPicker styles

* refactor(styles): re-org CheckPicker styles

* refactor(styles): re-org Checkbox styles

* refactor(styles): re-org Radio styles

* refactor(styles): re-org Toggle styles

* refactor(styles): re-org Rate styles

* refactor(styles): re-org Slider styles

* refactor(styles): re-org Uploader styles

* refactor(styles): re-org Cascader styles

* refactor(styles): remove iconfont related styles

* refactor(styles): re-org Avatar styles

* refactor(styles): re-org Badge styles

* refactor(styles): re-org Tag styles

* refactor(styles): re-org Carousel styles

* refactor(styles): re-org ButtonToolbar styles

* refactor(styles): re-org ButtonGroup styles

* refactor(styles): re-org Animation styles

* refactor(styles): re-org Panel styles

* refactor(styles): re-org List styles

* refactor(styles): re-org Timeline styles

* refactor(styles): re-org Table styles

* refactor(styles): re-org CloseButton styles

* refactor(styles): re-org Modal and Drawer styles

* refactor(styles): re-org IconButton styles

* refactor(styles): re-org Form styles

* refactor(styles): re-org toaster styles

* refactor(styles): re-org Message styles

* docs(theme): add rs-theme- classes on container element

* refactor(theme): use rs-theme- classes to determine color theme

* refactor(styles): remove unused files in Ripple

* refactor(styles): re-org CheckTree and CheckTreePicker styles

* refactor(styles): re-org Picker styles

* refactor(styles): re-org Tree and TreePicker styles

* refactor(styles): re-org InputPicker styles

* refactor(styles): re-org Calendar styles

* refactor(styles): re-org DatePicker and DateRangePicker styles

* refactor(styles): unify theme styles

* refactor(button): alter default button background color

* refactor(styles): remove unused less variables

* docs: use unified themes

* refactor(styles): split themes mixins

* refactor(styles): split non-common keyframes

* refactor(styles): re-order imports

* refactor(styles): remove unused global utility classes

* refactor(styles): remove unused common mixins

* refactor(styles): remove keyframe.less

* refactor(styles): rename core.less to common

* refactor(styles): transform palette hack mixin into less plugin

* refactor(styles): fix palette plugin output type

* test(styles): fix button style tests

* test(styles): fix missing imports that prevent tests running

* fix(styles): fix primary border color in default theme

* chore(deps): re-generate package-lock.json

* style: prettier format

* chore(deps): downgrade eslint-plugin-react to 7.20.3 to avoid issues

* style: upgrade stylelint and resolve violations

* refactor(styles): simplify ripple related styles

* refactor(styles): re-org button styles in different states

* refactor(styles): re-org icon-button in different states

* refactor(styles): remove .rs-btn-default class

* refactor(styles): re-org Button sizing mixins

* refactor(styles): re-org Ripple styles and mixins

* docs: fix docs.css missing from docs app

* chore(stylelint): add stylelint-config-prettier

* docs: add docs for less plugins

* refactor(styles): re-org primary and secondary palettes

* refactor(styles): remove unused color variables in dark theme

* refactor(styles): split theme palette and functional colors

* refactor(styles): remove direct use of gray/highlight levels

* refactor(styles): fix icon button in primary appearance

* refactor(styles): remove redundant color variables from dark theme

* build: omit javascriptEnabled option for less

* chore: eslint ignore less plugins

* refactor(styles): prefix css variables with rs instead of rs-color

* refactor(styles): re-org color themes inclusion

* refactor(styles): re-org variable declarations

* docs(button): fix custom combination example

* refactor(nav): remove margins between nav items

* refactor(styles): replace stateful color variables with semantic colors

* refactor(styles): separate color variables for light/dark modes

* feat(styles): add variable for toggling dark mode inclusion

* fix(styles): fix styling test failures

* test(autocomplete): fix test failures

* test(cascader): fix test failures due to dom change

* test(inputpicker): fix test failures due to dom change

* test(picker): fix test failures due to dom change

* test(selectpicker): fix test failures due to dom change

* chore: skip checking style existence

* build: fix build scripts for stylesheets

* fix(styles): fix incorrect casing in importing paths

* docs: fix button heights in toolbar

* docs: fix button style in codeview toolbar

* fix(styles): remove dark mode styles when enable-dark-mode is false

* docs: add docs for dark mode

* docs(customize): replace deprecated variables with new ones

* fix(message): re-org Message styles

fix #1671

* refactor(custom-properties): rename rs-highlight colors to rs-primary

* fix(styles): fix calcFontColor plugin

* refactor(styles): change Message header color in dark mode

* test(less): add tests for calcFontColor less plugin

* chore(deps): downgrade less for compatibility with gulp

* test(less): add test for palette less plugin

* refactor(less): replace calcFontColor plugin with less contrast function

* fix(iconbutton): disable hover style in disabled state

* refactor(styles): adds back pointer cursor for role button

* fix(checktreepicker): fix item node hover background

* fix(styles): fix table scrollbar color in dark mode

* fix(tagpicker): fix close button alignment in xs size

* fix(tagpicker): fix input collapse when searchable set false

fix #1679

* feat(tag): add `size` prop to Tag

* docs(rtl): fix broken rtl styles

* build(docs): move css minimization to optimization phase

* style: fix linting problems

* fix(styles): fix InputPicker toggle paddings

* fix(docs): fix stylesheet public path in production

* docs(drawer): fix misalignment in sizes radiogroup

* feat(drawer): improve Drawer content layout

BREAKING CHANGE: deprecate Drawer.Footer in favor of new Drawer.Actions

feat(drawer): improve close button placement and appearance

feat(drawer): deprecate Drawer.Footer replaced with Drawer.Actions

fix(drawer): fix drawer body overflow height

style(drawer): remove redundant comments

* fix(drawer): remove classes incorrectly assigned to close button

* fix(radiogroup): fix radio group picker width

* fix(keyboardevent): replace the deprecated keyCode with key (#1691)

* fix: MultiCascader  data cann't be controlled (#1696)

* fix: multiCascader data cann't be controlled

update columns when data prop change

* remove console.log

* fix(list): wrong position when auto scrolling (#1687)

Co-authored-by: Sleaf <huangshu@xd.com>

* fix(input-picker): fix InputPicker value not rendering when plaintext (#1690)

* feat(pickers): improve picker keyboard interaction experience (#1700)

The search box gets focus when typing characters and numbers

* docs: improve sidebar menu text visibility (#1701)

* chore(docs): update dev script

* docs: improve sidebar menu text visibility

* feat(nav): improve NavItem visibility (#1702)

* chore(docs): update dev script

* feat(nav): add focus ring on nav-item

* refactor(nav): update hover and focus styles for nav-items

improve visibility for focused nav-items

* fix(radio): fix checked radio style in disabled state (#1708)

* fix(modal): remove extra margins in full-size modal (#1699)

* chore(docs): update dev script

* fix(modal): remove extra margins in full-size modal

* fix(docs): fix missing version number in stylesheet urls

* fix(radio): fix disabled radio hover style (#1709)

* build(deps): bump element-resize-event from 3.0.3 to 3.0.6 (#1712)

* fix(position): fix the exception that occurs when overlay is unmount (#1714)

* fix(cascader): fix search result row height (#1717)

* fix(input-picker): fix extra height in disabled state (#1718)

* fix(navbar): fix navbar dropdown hover text color (#1719)

* Fix plaintext style for Checkbox and TagPicker (#1722)

* fix(checkbox): remove margin-left of first checkbox in plaintext mode

* fix(tag-picker): fix margin between tags in plaintext mode

* chore(dx): improve editor hint (#1725)

* chore: install types for unit testing tools

* chore(tsconfig): enable skipLibCheck to prevent error from node_modules

* chore: install @types/karma-sinon-chai

* chore: re-generate lockfile

* chore: split webpack config from karma config

* chore: add JSDoc type hints for test util functions

* fix(datepicker): fix gap between date cells (#1726)

* build(deps): bump dns-packet from 1.3.1 to 1.3.4 in /docs (#1704)

Bumps [dns-packet](https://github.com/mafintosh/dns-packet) from 1.3.1 to 1.3.4.
- [Release notes](https://github.com/mafintosh/dns-packet/releases)
- [Changelog](https://github.com/mafintosh/dns-packet/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mafintosh/dns-packet/compare/v1.3.1...v1.3.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(timeline): fix incorrect spacing around axis in alternate alignment (#1731)

* build(deps): bump ws from 6.2.1 to 6.2.2 in /docs (#1724)

Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(date-picker): correct the style of non-current month dates (#1732)

* fix(date-picker): correct the style of non-current month dates

* fix(date-picker): format code

* build: bump 5.0.0-alpha.9

* Improve listbox (pickers) option hover style (#1721)

* refactor(select-picker): improve option hover/focus style
* refactor(autocomplete): improve option hover/focus style
* chore(listbox): unify hover/focus modifier on listbox option as active
* refactor(tag-picker): improve option active style
* refactor(tree-picker): improve option active style
* refactor(dropdown): improve menuitem active style
* test(autocomplete): fix test case for active option background
* refactor(date-picker): improve date hover style in calendar panel
* refactor(date-picker): improve month and time option hover style

* Revert "fix: MultiCascader  data cann't be controlled (#1696)" (#1746)

This reverts commit 7f9b03b47f0e86ce328a4acc799651e76d390feb.

* fix(check-tree-picker): onChange does't return the correct value (#1743)

* fix(check-tree-picker): onChange does't return the correct value

* test(check-tree-picker): update test case

* fix(use-controlled): value doest't change when controlledValue changed (#1742)

* fix(use-controlled): value doest't change when controlledValue changed

* test(use-controlled): add test case

* build(deps): bump normalize-url from 4.5.0 to 4.5.1 in /docs (#1735)

Bumps [normalize-url](https://github.com/sindresorhus/normalize-url) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/sindresorhus/normalize-url/releases)
- [Commits](https://github.com/sindresorhus/normalize-url/commits)

---
updated-dependencies:
- dependency-name: normalize-url
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* ci: codecov integration (#1749)

* ci: add codecov integration

* docs(readme): replace coverage badge with codecov badge

* docs(readme): use npm version badge for next dist-tag

* Improve Dropdown accessibility (#1723)

* refactor(dropdown): add aria-controls to dropdown toggle button

* refactor(dropdown): use ul and li for dropdown menu and menuitem

* fix(dropdown): add aria attributes for submenus

* refactor(dropdown): separate menu and menuitem render logic

* feat(dropdown): add keyboard control for opening/closing menu

* chore: fix eslint problem

* feat(dropdown): implement keyboard interaction

fix(test-utils): prevent getDOMNode from rendering multiple times

feat(dropdown): wip: implement keyboard interaction

* feat(dropdown): enable keyboard navigation after opening menu with mouse

* style: fix prettier format

* feat(dropdown): support navigating submenus using left/right arrows

* chore: fix eslint problems

* test: fix broken test utils

* docs: update Dropdown.Item props

* fix(dropdown): skip disabled items in keyboard navigation

* fix(dropdown): skip separator items in keyboard navigation

* fix(dropdown): enlarge menuitem with submenu hot zone

* fix(dropdown): swap left/right key behavior in rtl mode

* chore: fix eslint warning on useEffect deps

* fix(sidenav): fix submenu padding

* chore(deps): add lockfile to with-electron example

* test: improve dropdown coverage (#1751)

* test(dropdown): add Home and End cases for menu keyboard interaction

* test(dropdown): add rtl cases for left/right key interaction

upgrade sinon to latest to take advantage of its sandbox feature

* chore(coverage): remove test scripts from coverage calculation (#1752)

* chore(coverage): remove test scripts from coverage calculation

* chore(coverage): remove test scripts from coverage calculation

* chore(coverage): remove test scripts from coverage calculation

* Improve Sidenav accessibility (#1744)

* refactor(dropdown): add aria-controls to dropdown toggle button

* refactor(dropdown): use ul and li for dropdown menu and menuitem

* fix(dropdown): add aria attributes for submenus

* refactor(dropdown): separate menu and menuitem render logic

* feat(dropdown): add keyboard control for opening/closing menu

* chore: fix eslint problem

* feat(dropdown): implement keyboard interaction

fix(test-utils): prevent getDOMNode from rendering multiple times

feat(dropdown): wip: implement keyboard interaction

* feat(dropdown): enable keyboard navigation after opening menu with mouse

* style: fix prettier format

* feat(dropdown): support navigating submenus using left/right arrows

* chore: fix eslint problems

* test: fix broken test utils

* docs: update Dropdown.Item props

* fix(dropdown): skip disabled items in keyboard navigation

* fix(dropdown): skip separator items in keyboard navigation

* fix(dropdown): enlarge menuitem with submenu hot zone

* fix(dropdown): swap left/right key behavior in rtl mode

* chore: fix eslint warning on useEffect deps

* fix(sidenav): fix submenu padding

* refactor(sidenav): use aria tree role for Nav inside Sidenav

* chore: fix eslint problem

* refactor(dropdown): remove openKeys prop on Dropdown.Menu

* refactor(dropdown): remove openKeys prop from menu widgets

* refactor(treeview): remove MenuContext from tree widgets

* test(dropdown): remove unused Sidenav from DropdownMenuSpec

* feat(sidenav): keyboard interactions

* chore(sidenav): fix eslint problems

* fix(sidenav): fix broken tests

* test(sidenav): add test case for keyboard interaction

* fix(sidenav): fix dropdown focus style in collapsed sidenav

* fix(sidenav): remove unrecognized attributes passed to dom

* fix(nav): remove unreachable statements

* fix(menu): remove unreachable branches

* fix(dropdown): fix DropdownMenu props types

* test(nav): add case for usage with Dropdown

* fix(treeview): remove unused collapsible prop from TreeviewItemGroup

* test(menu): improve coverage in Menu

* fix(dropdown): remove unused `collapsible` prop passed to DropdownMenu

* test(dropdown): add cases for toggling dropdown with hover trigger

* test(dropdown): closes menu when pressing Enter/Space on button

* test(dropdown): toggles menu with contextMenu trigger

* fix(menu): reserve aria attrs for menu button inside collapsed Sidenav

* chore(sidenav): remove unnecessary hook dependencies

* chore: fix eslint warning on hook dependencies

* refactor(menu): avoid unnecessary re-render in useMenuControl

* refactor(treeview): fix eslint warning on hook deps

* docs(dropdown): remove deprecated `pullLeft` prop from examples

* fix(menuitem): avoid preventing default click events

* fix(menu): fix incorrect initial focus

* fix(treeview): don't use focus management when children receive focus

* refactor(treeview): add aria-selected attr on selected treeitems

* fix(treeview): select Sidenav item with Enter key

* style: fix prettier problem

* chore(treeview): fix eslint warning

* docs(examples): with-vite (#1753)

* docs(examples): with-vite

* docs(with-vite): document-supplement

* docs(examples): name-update

* docs(examples): doc-fix

Co-authored-by: jixianjing <xianjing.ji@mail.hypers.com>

* docs: correct copy errors (#1758)

* docs(examples): with-snowpack (#1754)

* docs(examples): with-snowpack

* docs(with-snowpack): document-supplement

* docs(with-snowpack): update

* docs(examples): name edit

* docs(examples): doc-fix

Co-authored-by: jixianjing <xianjing.ji@mail.hypers.com>
Co-authored-by: Simon Guo <simonguo.2009@gmail.com>

* docs(v5-features): update v5 upgrade guide (#1734)

* docs(v5-features): update v5 upgrade guide

* docs(accessibility): update keyboard accessibility instructions (#1713)

* docs(accessibility): update keyboard accessibility instructions
* docs: update keyboard accessibility instructions

* docs(accessibility): update keyboard accessibility instructions

* fix(cascader): fix data not controlled on MultiCascader (#1747)

* fix(multicascader): fix data not controlled on MultiCascader
* fix(picker): check if there is a search input

* fix: add less plugins to output lib dir, fix #1767 (#1770)

* docs(examples): with-nextjs-typescript (#1757)

* docs(examples): with-nextjs-typescript

* docs(examples): doc-fix

Co-authored-by: jixianjing <xianjing.ji@mail.hypers.com>
Co-authored-by: Simon Guo <simonguo.2009@gmail.com>

* fix(cascader): adjust the rendering status of async loaded child nodes (#1764)

* docs(design): update v5 design document (#1762)

* build(deps): bump next from 10.0.7 to 11.0.1 in /docs (#1772)

* build(deps): bump next from 10.0.7 to 11.0.1 in /docs

* build(deps): bump mini-css-extract-plugin from 1.5.0 to 2.1.0 in /docs

* fix(css): fix css file error

Error: Conflict: Multiple chunks emit assets to the same filename static/css/docs.css (chunks 3401
and 1092)

* fix(themehelpers): rename docs.css to _app.css

* fix: update env  variables

* build(deps): bump rsuite-table to 5.0.0-alpha.5 (#1771)

* build(deps): bump rsuite-table to 5.0.0-alpha.3

* fix(table): update ts type definition

* build(deps): bump rsuite-table to 5.0.0-alpha.4

* build(table): bump rsuite-table to 5.0.0-alpha.5

* chore: add feature request label for issue template

* test(calendar): fix unstable tests (#1773)

* fix(styles): enable dark mode by default (#1776)

* fix(picker): update the position after the overlay size is changed (#1780)

* docs(tag-picker): removed the default value of creatable (#1777)

fix #1774

* fix(picker): picker should not focus when it is disabled (#1782)

* fix(calendar): fix the date on the calendar as controlled and remove timezone (#1781)

* fix(calendar): fix the date on the calendar as controlled

* refactor(calendar): remove timezone

* docs(date-range-picker): remove timezone

* fix(usecontrolled): remove foramt of timezone

* test(date-range-picker): add test for input date

* fix(date-range-picker): fix the problem of `hoverRange` not work

* fix(date-range-picker): fix calendar not updated

* fix(daterangepicker): update tests

* docs(use-next-app): support next.js 11 and update the guide (#1788)

* refactor(dropdown): improve Navbar/Sidenav accessbility with ARIA Disclosure pattern (#1761)

* refactor(nav): assign menubar and menuitem roles to Nav inside Navbar

* test(navbar): test aria roles for Nav inside Navbar

* test(navbar): replace render function with getDOMNode util

* refactor(nav): move NavItem render logic out of Nav

* refactor(navbar): move Dropdown render logic out of Nav

* feat(navbar): navigate nav items using left/right keys

* style: fix eslint problem

* chore(stylelint): allow usage of :focus-visible selector

* feat(navbar): navigate nav items using home/end keys

* feat(navbar): toggling submenu with Enter key

feat(navbar): toggle Dropdown with Enter key

* feat(navbar): activate menuitem with Enter key

* feat(navbar): toggle submenu and activate menuitem with Space key

* feat(navbar): open submenu with ArrowDown key

* test(navbar): add test case for losing focus

* refactor(navbar): transparent background in `subtle` appearance

* refactor(navbar): separate <Menubar.Item> from <Nav.Item>

* style(navbar): fix stylelint problem

* refactor(dropdown): improve menu state control with reducer

* fix(navbar): fix item with submenu not navigable in Navbar

* style: fix eslint problems

* fix(navbar): remove unreachable lines

* fix(navbar): remove unreachable conditions

* feat(menu): move focus on mouseenter/mouseleave menuitem

* refactor(dropdown): merge VerticalMenubar into headless Menubar

* refactor(dropdown): make MenuItem headless

* refactor(dropdown): make Menu headless

* refactor(navbar): merge MenubarItem into MenuItem

* refactor(menu): separate headless Menu component family

* refactor(nav): renders vertical menubar in collapsed Sidenav

* chore: remove unnecessary console.log

* fix(dropdown): prevent default contextmenu behavior

* fix(dropdown): closes root menu when submenu item is clicked

* fix(dropdown): dropdown inside collapsed sidenav has a header in menu

* fix(dropdown): remove improper attributes passed to dom

* refactor(navbar): migrate to disclosure pattern for Navbar

* test(disclosure): add test case for Disclosure

* fix(navbar): fix dropdown item focus bg inside Navbar

* chore: remove deprecated test scripts

* refactor(sidenav): migrate to Disclosure pattern

* fix(menu): closes popup menu on blur

* fix(menu): return focus to button when item gets activated

* test: add .visible assertion

* fix(focus): fix test failure

* fix(dropdown): dont grab focus on click focusable element outside

* fix(nav): move focus between Nav.Item with Tab key

* test: replace renderIntoDocument with ReactDOM.render

* fix(dropdown.menu): render submenu when used in another dropdown.menu

* test(dropdown): 修复测试用例

* test(toggle): fix test case

* test(picker): fix broken test case in FireFox

* test(picker): fix broken test in Chrome

* fix(dropdown-item): close <Dropdown> inside <Navbar> on click its item (#1791)

* ci(codecov): mark reports with browser name as flags (#1790)

* fix(navigation): improve accessibility of nav components (#1792)

* fix(navigation): improve accessibility of nav components

* fix(safeanchor): remove keyboard events

* build: bump 5.0.0-beta.1

* docs(guide): update the guide for rsuite v5 (#1796)

* docs(guide): update the guide for rsuite v5

* docs(guide): add example for replacing IntlProvider with CustomProvider

* docs(guide): add the relationship between `size` and `fontSize`

* chore(with-electron): remove package-lock.json in examples/with-electron (#1799)

* feat(CustomProvider): support `theme` on `<CustomProvider>` (#1798)

* feat(customprovider): support `theme` on <CustomProvider>`

* test(custom-provider): update test

* refactor(less-plugin): embed tinycolor2 into palette plugin (#1794)

* docs(migration): add explanation for adding tinycolor2

* Revert "docs(migration): add explanation for adding tinycolor2"

This reverts commit 84ff428102eb38f13d76059bf96b03b510dec959.

* refactor(less-plugin): embed tinycolor2 into palette plugin

* style: prettier format

* docs(resources): adjust the directory structure of resources (#1800)

* docs(resources): adjust the directory structure of resources

* chore: update .gitignore

* fix: remove extensions

* docs(extensions): update docs in extensions

* docs(resources): support responsive in resources/design

* docs: improve guidance in docs

* chore: remove .codecov.yml

* fix(message): improve close icon style (#1807)

* fix(typescript): export props of all components (#1803)

* docs(toaster): add description of `duration` in toaster (#1806)

* docs(v5-features): describe Notification changes (#1805)

* docs(v5-features): describe Notification changes

* docs(v5-features): update example in docs/v5-features

* docs(i18n): update docs for i18n (#1804)

* docs: fix typos in v4 (#1811)

* Fix `create-react-app` command with yarn (#1628)

* Fixed Typo (#1809)

Fixed type. Changes 'response' to 'responsive'

Co-authored-by: Pawan Choudhari <71498736+sys-root@users.noreply.github.com>
Co-authored-by: Adil Khalil <adilkhalil@outlook.com>

* fix: CheckTreePicker and TreePicker search problems (#1808)

* fix(tree): exclude searchBar backspace event from onPickerKeyDown

* fix(tree): can't disaply search result in virtualized mode(#1577)

* test: update CheckTreePicker and TreePicker test case

* fix(nav): trigger `onSelect` on `<Nav>` when clicking `<Nav.Item>` (#1797)

* fix(nav): trigger `onSelect` on `<Nav>` when clicking `<Nav.Item>`

* fix(nav): trigger `onSelect` on `<Nav>` when clicking `<Dropdown.Item>`

* fix(nav): highlight <Dropdown.Item> matching `activeKey`

* test(chai): fix attribute assertion

* fix(navbar): highlight Dropdown.Item matching `activeKey` on Nav

* test(chai): add karma-chai-dom assertions

* fix(sidenav): mark <Dropdown.Item> matching <Nav> `activeKey` as current

* fix(navbar): trigger Nav onSelect on clicking Dropdown.Item

* fix(sidenav): trigger Nav onSelect on clicking Dropdown.Item

* chore(dx): add chai-dom type definition

* refactor(sidenav): deprecate activeKey and onSelect of <Sidenav>

* docs(sidenav): remove activeKey and onSelect props

* docs(migration): explain deprecated sidenav props

* docs(locale): localized components (#1810)

* docs(locale): localized components

* docs(locale): localized components

* fix(check-picker): fix unable to clear value when pressing `Backspace` (#1812)

* build: bump 5.0.0-beta.2

* fix(sidenav): trigger <Nav onSelect> on click <Nav.Item> (#1815)

* fix(pagination): export type definition of `PaginationProps` (#1817)

* build(deps): bump electron from 8.5.2 to 9.4.0 in /examples (#1819)

* docs(nav): improve accessibility of nav in docs (#1818)

* build: bump 5.0.0-beta.3

* docs(v5-features): fix typo (#1821)

* docs(cra): troubleshoot using less in cra projects (#1832)

* fix(dropdown-menu): remove unrecognizable activeKey from dom (#1827)

* fix(date-picker): fix AM/PM display incorrect issue when switching hours (#1823)

* docs(search): improved search of documents (#1824)

* docs(search): improved search of documents

* docs: update indices of search

* build(deps): bump path-parse from 1.0.6 to 1.0.7 (#1829)

Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump path-parse from 1.0.6 to 1.0.7 in /docs (#1838)

Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps-dev): bump next from 11.0.1 to 11.1.0 in /docs (#1839)

Bumps [next](https://github.com/vercel/next.js) from 11.0.1 to 11.1.0.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v11.0.1...v11.1.0)

---
updated-dependencies:
- dependency-name: next
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump @rsuite/icons 1.0.0 (#1837)

* fix(locales): fix the undefined problem of Locale (#1834)

* refactor(styles): change body background in light theme (#1840)

* build(deps): bump rsuite-table from 5.0.0-alpha.5 to 5.0.0-alpha.8 (#1836)

* build(deps): bump rsuite-table from 5.0.0-alpha.5 to 5.0.0-alpha.6

* build(table): bump 5.0.0-alpha.8

* chore: use proxyDirectories to build esm/cjs (#1830)

* chore: use proxyDirectories to build esm/cjs

* chore: remove proxy()

* ci(workflow): update release workflow

* docs: update for guide in /docs

* docs: updated the upgrade guide

* docs: update css uri

* chore: adjust style path

* docs: update README.md

* docs: update v5 features

* chore: add prepublishOnly in npm scripts

* fix(gulpfile): fix the compiled path

* fix(codesandbox): fix ENOENT: no such file or directory

* test: add verification for the built files

* build: bump 5.0.0-beta.4

* docs: update v5 features docs (#1845)

* docs(rtl): update rtl style links (#1841)

* fix(date-picker): fix DatePicker cannot be used as controlled (#1844)

fix #1842

* feat(dropdown): support `renderToggle` on `<Dropdown>` (#1843)

* build: bump 5.0.0-beta.5

* feat(tag-picker): support `trigger` on `<TagPicker>` (#1847)

* feat(tag-picker): support `trigger` on `<TagPicker>`

* fix(input-picker): fix: Cannot read property 'multi' of null

* docs: Fixed useRef typos (#1849)

* Update index.md

* Update index.md

* Fixed grammar mistakes in Contributing docs (#1854)

Hey everyone,
this is one of my first PRs so I wanted to help with something simple. 

Please let me know if there are simple React or CSS problems that I can work on. Thanks!

* build(deps): bump @typescript-eslint from 4.11.1 to 4.29.2 (#1850)

* fix(sidenav): fix incorrect indent before dropdown toggle (#1856)

* feat(tag-input): add support for TagInput (#1848)

* feat(tag-input): add support for TagInput

#1265

* docs: update v5-features

* style(tag-input): update tests

* Update src/InputPicker/InputPicker.tsx

Co-authored-by: Doma <leishenghao@126.com>

Co-authored-by: Doma <leishenghao@126.com>

* feat(uploader): support `disableMultipart` on `<Uploader>` (#1862)

* feat(uploader): support `disableMultipart` on `<Uploader>`

* test(uploader): add tests for ajaxUpload

* fix(date-range-picker): update tests for DateRangePicker

* test(uploader): add tests for uploader

* test(uploader): add test for ajaxUpload

* build(deps): bump schema-typed from 2.0.0 to 2.0.1 (#1857)

* fix(list-item): fix unable to set HTML event on List.Item (#1863)

fix #1859

* test(utils): add tests for utils (#1871)

* test(progress-circle): add tests for `gapPosition` in ProgressCircle (#1873)

* fix(drawer): fix incorrect styles in drawer title and drawer actions (#1874)

* test(overlay): add tests for position utils in Overlay (#1876)

* chore: update husky and install lint-staged (#1875)

* test(multi-cascader): update tests for MultiCascader (#1877)

* test(slider): add missing tests for Slider (#1879)

* test(range-slider): add missing tests for RangeSlider (#1881)

* test(tree): add tests for Tree and CheckTree (#1883)

* test(tree): add tests for Tree and CheckTree

* test(check-tree): remove unused Simulate

* build: bump 5.0.0-beta.6

* fix(tag-input): adjust default value of the trigger to `Enter` (#1886)

* feat(carousel): support `onSelect`, `onSlideEnd`, `onSlideStart` on `<Carousel>` (#1889)

* feat(carousel): support `onSelect`, `onSlideEnd`, `onSlideStart` on `<Carousel>`

* docs(carousel): update Props

* test(drawer): add tests for Drawer (#1890)

* feat(date-picker): remove `inline` on `<DatePicker>` (#1892)

* test(input-number): add tests for InputNumber (#1894)

* test(input-number): add tests for InputNumber

* test(input-number): update tests for onwheel in InputNumber

* docs(tree-picker): remove `inline` on `<TreePicker>` (#1895)

* refactor(animation): add a prefix to animation-related className (#1897)

* style(animation): add a prefix to animation-related className

* test: update tests for Animation

* Update src/Panel/test/PanelSpec.js

Co-authored-by: Doma <leishenghao@126.com>

* style(animation): add rs-anim prefix to animation-related className

* style(fade): remove redundant className

Co-authored-by: Doma <leishenghao@126.com>

* High contrast theme (#1828)

* docs(theme): add high-contrast theme switch

* feat(button): high-contrast styles

* feat(modal): high-contrast styles

* feat(tooltip): high-contrast styles

* feat(popover): high-contrast styles

* feat(notification): high-contrast styles

* feat(message): high-contrast styles

* fix(high-contrast): change drawer background color

* fix(high-contrast): update focus ring style

* feat(dropdown): high-contrast styles

* feat(nav): high-contrast styles

* feat(navbar): high-contrast styles

* feat(sidenav): high-contrast styles

* feat(pagination): high-contrast styles

* feat(form): high-contrast styles

* feat(autocomplete): high-contrast styles

* feat(picker): high-contrast styles

* test(daterange-picker): fix flaky test scripts

* test: remove unused imports

* perf(radio,checkbox): improve high-contrast styles

* test(navbar-item): add unit tests

* feat(rate): high-contrast styles

* feat(toggle): high-contrast styles

* feat(uploader): high-contrast styles

* feat(date-picker): high-contrast styles

* style(picker): fix stylelint violations

* feat(badge): high-contrast styles

* feat(list): high-contrast styles

* perf(button,high-contrast): improve contrast for colorful buttons

* fix(picker,high-contrast): inverse text color on selected items count

* docs: add icon for high-contrast theme

* docs(high-contrast): add guide for high-contrast mode

* build: bump 5.0.0-beta.7

* docs(theme): update docs of theme config (#1901)

* docs(theme): update docs of theme config

* docs(theme): update docs for official-themes

* docs: fix contrast issues in docs (#1904)

And discard invalid documents

* fix(date-picker): fix calendar header wrapping (#1907)

* fix(navbar,dropdown): unexpected focus submenu (#1908)

* feat(table): support `rowSpan` on `<Table.Column>` (#1909)

* feat(table): support `rowSpan` on `<Table.Column>`

* docs(table): update docs for rowspan

* docs(v5-features): update v5 upgrade guide (#1910)

* docs(v5-features): update v5 upgrade guide

* docs(v5-features): add link for title

* docs: remove unused icons

* build(deps): bump rsuite-table to 5.0.0-beta.3 from 5.0.0-beta.2 (#1911)

* docs: fix page stuck on system color scheme change (#1912)

* build: bump 5.0.0-beta.8

* chore(dx): add exec permission on .husky files (#1915)

* fix(sidenav): accent dropdown icon w/ active item (#1913)

* fix(sidenav): accent dropdown icon w/ active item

* fix(dropdown): fix ts warning

* test(dropdown): improve coverage

* fix(sidenav): fix dropdown toggle bg

* fix(sidenav): selected item bg

* fix(sidenav): remove incorrect import

* docs(v5): updated the upgrade guide (#1916)

* docs(v5): updated the upgrade guide

* docs(v5): update v5 related guide

* fix: fix typos

* docs(v5): fix typo and add missing Form.ErrorMessage in title (#1921)

* fix(sidenav): fix nav item not activated in collapsed sidenav (#1918)

* fix(sidenav): fix nav item not activated in collapsed sidenav

* fix(sidenav): accent selected dropdown item

* test: cross browser testing on browserstack (#1917)

* ci: cross-browser test on browserstack

* test: use textContent instead of innerText

Avoid unexpected trailing newline in Safari

* fix(date-utils): replace new Date with parseISO

* test(check-picker): fix flaky cases with innerText

* fix(date-picker): replace new Date with parseISO

* test(daterange): replace new Date w/ parseISO

* test(formatteddate): replace new Date w/ parseISO

* test(chai): assert floating points equality

* test: remove ie11 tests temporarily

* ci(codecov): add browser flags

* chore: cleanup file diff

* test(date-utils): improve coverage

* chore(browserslist): remove ie 10

* Revert "test: cross browser testing on browserstack (#1917)" (#1922)

This reverts commit b9669eb456870de1b2787d08a7dea28e28600889.

* docs: adjust the statement in the upgrade guide (#1923)

* docs: adjust the statement in the upgrade guide

* docs: fix typos

* docs(guide): update the menu of guide (#1925)

* docs(custom): update guide for custom themes (#1914)

* docs(custom): update guide for secondary palette

* docs(custom): guide for customizing dark mode

* build(deps): bump rsuite-table to 5.0.0 (#1924)

* fix(DateRangePicker): support time selection (#1882)

* feat: add support time of DateRangePicker
* chore: clean code

* test(daterangepickerspec.js): test: add date-range-picker test spec

* refactor(docs): format docs

* test: 💍 add time selection test spec

* refactor: 💡 clean code

* docs: ✏️ add format for date range picker `format`

* refactor: 💡 rename isSameValueType to isSameDateRange

* test: 💍 adjust test case for DateRangePicker

* fix: 🐛 select time will crash while date range is not selected

* feat: 🎸 add time range select support & add related test spec

* chore: 🤖 clean code

* chore: 🤖 clean code

* refactor: 💡 adjust test spec and add empty ranges for time case

* Revert "refactor(docs): format docs"

This reverts commit f2ed70c1929b39bc3b26a2b906227855f67e5ec7.

* Revert "chore: 🤖 clean code"

This reverts commit 9bbd54e5e56172b1beb7675d1efd7d988f85002d.

* refactor: 💡 revert DatePicker

* test: 💍 adjust date range picker format test spec

* test: 💍 adjust date range picker spec for format time

* test: 💍 adjust date range picker test spec

* docs: ✏️ adjust api doc of date range picker

* fix: 🐛 adjust isSameRange logic, fix ref link while time update

* refactor: 💡 adjust export from date-fns

* docs: ✏️ update date range picker format prop

* test: 💍 fix function import

* test: 💍 adjust test spec for date range picker

Co-authored-by: Simon Guo <simonguo.2009@gmail.com>

* fix(picker): [TS] fix the missing definition of `size` in Pickers (#1926)

* build: bump 5.0.0

Co-authored-by: Alexander Böhm <mheob@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: superman <supermanchc@gmail.com>
Co-authored-by: Nils Melchert <36985893+nilsmelchert@users.noreply.github.com>
Co-authored-by: 雷玮杰 <leihanchenzhou@outlook.com>
Co-authored-by: Godfery <hiyangguo@qq.com>
Co-authored-by: BossBele <adambeleko@gmail.com>
Co-authored-by: dekuofa1995 <dekuofa1995@gmail.com>
Co-authored-by: Doma <leishenghao@126.com>
Co-authored-by: liwangping <40118061+liwangping@users.noreply.github.com>
Co-authored-by: liwangping <liwangping@mail.hypers.com>
Co-authored-by: Sleaf <sleaf1996@qq.com>
Co-authored-by: Sleaf <huangshu@xd.com>
Co-authored-by: 15729520405 <33154783+15729520405@users.noreply.github.com>
Co-authored-by: jixianjing <xianjing.ji@mail.hypers.com>
Co-authored-by: binyellow <571704908@qq.com>
Co-authored-by: Pawan Choudhari <71498736+sys-root@users.noreply.github.com>
Co-authored-by: Adil Khalil <adilkhalil@outlook.com>
Co-authored-by: Levent Arman Özak <arman@armanozak.com>
Co-authored-by: Levi Lieberman <ShrieverDev@gmail.com>
Co-authored-by: Maxence Poutord <maxence.poutord@gmail.com>
Co-authored-by: 雷玮杰 <vingeray@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DatePicker cannot be used as controlled (i.e. in Form.Control)
1 participant