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

[DatePicker] Migrate to the lab #22692

Merged
merged 2,183 commits into from
Nov 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2183 commits
Select commit Hold shift + click to select a range
1cbb010
Fix more example and comments
dmtrKovalenko Feb 24, 2020
0f6cd87
Rename initialFocusedDate => defaultHighlight
dmtrKovalenko Feb 24, 2020
2c13f76
Add prop disableHighlightToday
dmtrKovalenko Feb 24, 2020
5524042
Fix reexporting DayProps interface
dmtrKovalenko Feb 24, 2020
a9c58ba
Fix missing type issues in examples
dmtrKovalenko Feb 24, 2020
9952ac8
Fix missing ts definition for toolbarTitle
dmtrKovalenko Feb 24, 2020
bc20e28
Fix not fading arryw switcher when moving from calendar to year
dmtrKovalenko Feb 24, 2020
0b9df54
Add new toolbarFormat prop, closes #1345
dmtrKovalenko Feb 24, 2020
bc9c623
Add tests for toolbarFormat
dmtrKovalenko Feb 24, 2020
ed08f14
Show Day as internal component
dmtrKovalenko Feb 24, 2020
810f82d
Ignore codefund Ads in visual regression programmatically
dmtrKovalenko Feb 24, 2020
ed7d491
Remove invalidLabel
dmtrKovalenko Feb 25, 2020
082dfca
Rename emptyLabel => emptyInputText
dmtrKovalenko Feb 25, 2020
971bac0
Ignore #codefund with .percy.yml
dmtrKovalenko Feb 25, 2020
9d09c0c
Merge pull request #1534 from mui-org/feature/api-changes
dmtrKovalenko Feb 25, 2020
12972dd
Update date-io installation instructions in README.md
dmtrKovalenko Feb 27, 2020
9c5f9ab
Bump babel-plugin-optimize-clsx from 2.5.0 to 2.6.0
dependabot-preview[bot] Mar 1, 2020
664fdca
Bump dayjs from 1.8.17 to 1.8.21 (#1550)
dependabot-preview[bot] Mar 1, 2020
69b84b2
Bump babel-plugin-optimize-clsx from 2.5.0 to 2.6.0 (#1549)
dmtrKovalenko Mar 1, 2020
5a6c028
Bump react from 16.12.0 to 16.13.0 (#1547)
dependabot-preview[bot] Mar 1, 2020
7d9ca57
Bump lint-staged from 10.0.7 to 10.0.8 (#1546)
dependabot-preview[bot] Mar 1, 2020
3cd58d6
LocalizationProvider (#1537)
dmtrKovalenko Mar 1, 2020
d92352a
Make set today button works properly with autoOk (#1555)
dmtrKovalenko Mar 3, 2020
9a60547
Remove @material-ui/styles reference
dmtrKovalenko Mar 3, 2020
d9c5244
Run prettier in overrides.ts
dmtrKovalenko Mar 3, 2020
39d6105
Merge pull request #1528 from mui-org/dependabot/npm_and_yarn/materia…
dmtrKovalenko Mar 3, 2020
09fee5b
Fix import statements for adapters. (#1559)
dmtrKovalenko Mar 5, 2020
773835f
Bump @material-ui/icons from 3.0.2 to 4.9.1 (#1563)
dependabot-preview[bot] Mar 11, 2020
b6e1a5a
Bump jest from 24.9.0 to 25.1.0 (#1564)
dependabot-preview[bot] Mar 11, 2020
ba80c7e
Bump dayjs from 1.8.21 to 1.8.22 (#1566)
dependabot-preview[bot] Mar 11, 2020
35e6b2d
Infrastructure preparation for DateRangePicker (#1573)
dmtrKovalenko Mar 12, 2020
c494653
[Security] Bump acorn from 5.7.3 to 5.7.4 (#1578)
dependabot-preview[bot] Mar 14, 2020
68197aa
Bump @types/react-transition-group from 2.9.2 to 4.2.4
dependabot-preview[bot] Mar 15, 2020
4fdcd64
Bump dotenv from 7.0.0 to 8.2.0
dependabot-preview[bot] Mar 15, 2020
78d74d2
Bump eslint-config-prettier from 4.3.0 to 6.10.0
dependabot-preview[bot] Mar 15, 2020
eac5818
Bump fs-extra from 7.0.1 to 8.1.0
dependabot-preview[bot] Mar 11, 2020
e66baba
(chore) Better material-ui core components import strategy (#1590)
oliviertassinari Mar 19, 2020
0d41c48
Bump react-dom from 16.12.0 to 16.13.0 (#1579)
dependabot-preview[bot] Mar 19, 2020
bfae853
[core] Allow a broader set of node.js versions (#1588)
oliviertassinari Mar 19, 2020
b407f5b
(bugfix) Implement forwardRef for all components (#1593)
dmtrKovalenko Mar 19, 2020
fff363d
Bump eslint-plugin-react from 7.16.0 to 7.19.0 (#1562)
dependabot-preview[bot] Mar 19, 2020
4d04b43
v4.0.0-alpha.4
dmtrKovalenko Mar 19, 2020
fde2a42
Bump @material-ui/core from 4.9.3 to 4.9.7 (#1596)
dependabot-preview[bot] Mar 22, 2020
1cc44e5
Bump moment-jalaali from 0.9.1 to 0.9.2 (#1597)
dependabot-preview[bot] Mar 22, 2020
f2fa768
Fixes #1360 (#1601)
vdh Mar 24, 2020
6a96f0f
Bump @types/jest from 24.9.1 to 25.1.4 (#1600)
dependabot-preview[bot] Mar 26, 2020
5560ade
Bump styled-jsx from 3.2.4 to 3.2.5
dependabot-preview[bot] Mar 22, 2020
87f7822
Bump @mapbox/rehype-prism from 0.3.1 to 0.4.0
dependabot-preview[bot] Mar 29, 2020
53d99c1
Bump next-images from 1.3.0 to 1.4.0 (#1610)
dependabot-preview[bot] Mar 30, 2020
eaf14f0
Bump full-icu from 1.3.0 to 1.3.1
dependabot-preview[bot] Mar 29, 2020
907f84b
Bump enzyme from 3.10.0 to 3.11.0
dependabot-preview[bot] Mar 29, 2020
8eb089f
Bump formik from 1.5.8 to 2.1.4
dependabot-preview[bot] Apr 5, 2020
b9ce979
Bump @types/react-dom from 16.9.5 to 16.9.6
dependabot-preview[bot] Apr 5, 2020
22bce24
Bump react-redux from 7.1.3 to 7.2.0 (#1623)
dependabot-preview[bot] Apr 6, 2020
2b84bd6
Bump formik from 1.5.8 to 2.1.4 (#1621)
dmtrKovalenko Apr 6, 2020
4eca4db
Merge pull request #1622 from mui-org/dependabot/npm_and_yarn/types/r…
dmtrKovalenko Apr 6, 2020
c38b5ed
Fix [email protected] support with createSvgIcon (#1629)
Vincz Apr 9, 2020
7bed283
[DateRangePicker] Introduce new component 🎉 (#1602)
dmtrKovalenko Apr 9, 2020
502118d
v4.0.0-alpha.5
dmtrKovalenko Apr 9, 2020
5fad132
Introduce dependabot config (#1632)
oliviertassinari Apr 10, 2020
845ad75
Fix importing error for reexported adapters (#1634)
dmtrKovalenko Apr 11, 2020
03231db
Bump @babel/plugin-proposal-optional-chaining from 7.8.3 to 7.9.0 (#1…
dependabot-preview[bot] Apr 12, 2020
71bd6e7
Bump typescript from 3.8.2 to 3.8.3 (#1646)
dependabot-preview[bot] Apr 12, 2020
77dbd01
Bump husky from 4.2.3 to 4.2.5 (#1644)
dependabot-preview[bot] Apr 12, 2020
3c06e41
Bump ts-jest from 24.1.0 to 25.3.1
dependabot-preview[bot] Apr 12, 2020
52bcfd4
Fix yaml format
oliviertassinari Apr 12, 2020
2323a4b
Update vscode eslint settings
dmtrKovalenko Apr 13, 2020
2536a59
[docs] Fix Shortcat -> Shortcut typo(#1663)
Philipp91 Apr 16, 2020
70bb56f
Reexport DateRangePickerProps, closes #1666 (#1668)
dmtrKovalenko Apr 16, 2020
b220449
[docs] Use 3001 over 3000 to avoid conflict
oliviertassinari Apr 18, 2020
14e076f
Align DateRangePicker inputs by baseline (#1689)
Philipp91 Apr 20, 2020
98a939b
[docs] Use 3001 over 3000 to avoid conflict
oliviertassinari Apr 20, 2020
c413b02
Bump eslint-plugin-pretty-imports from 1.0.2 to 1.1.3 (#1688)
dependabot-preview[bot] Apr 20, 2020
c53ca03
Bump @types/fs-extra from 5.1.0 to 8.1.0 (#1687)
dependabot-preview[bot] Apr 20, 2020
bea8e17
Bump react-docgen-typescript from 1.16.2 to 1.16.3 (#1686)
dependabot-preview[bot] Apr 20, 2020
341171f
Bump cypress-react-unit-test from 2.4.3 to 3.3.1 (#1685)
dependabot-preview[bot] Apr 20, 2020
5225b67
Fix repository name in CONTRIBUTING.md (#1695)
Philipp91 Apr 21, 2020
fa4be25
Bump @types/jest from 25.1.4 to 25.2.1 (#1684)
dependabot-preview[bot] Apr 21, 2020
bd53c63
Add a missing inputFormat prop to update the value when format is cha…
vdyachenko Apr 21, 2020
07e91bd
Rename keyboardIcon => openPickerIcon (#1696)
Philipp91 Apr 21, 2020
1c011a4
[core] Align internal icons with mono-repository (#1692)
oliviertassinari Apr 21, 2020
b223777
Improve input mask UX and a11y (#1661)
dmtrKovalenko Apr 21, 2020
512c17e
Better recognition of touch devices (#1653)
dmtrKovalenko Apr 21, 2020
3a1f342
Fix DateRangePickerInput alignment on mobile #1689 (#1697)
Philipp91 Apr 21, 2020
b504c41
[docs] Fix DateFnsAdapter import docs typo (#1699)
Domino987 Apr 22, 2020
bb11c10
renderInput API (#1671)
dmtrKovalenko Apr 24, 2020
95ff84a
Bump date-fns from 2.8.1 to 2.12.0 (#1710)
dependabot-preview[bot] Apr 26, 2020
605b995
Bump @material-ui/core from 4.9.9 to 4.9.11 (#1711)
dependabot-preview[bot] Apr 26, 2020
e585fa5
Bump remark-slug from 5.1.2 to 6.0.0 (#1712)
dependabot-preview[bot] Apr 26, 2020
1ef97e9
Bump redux from 4.0.4 to 4.0.5 (#1713)
dependabot-preview[bot] Apr 26, 2020
a2ffae9
Bump eslint-config-prettier from 6.10.1 to 6.11.0 (#1714)
dependabot-preview[bot] Apr 26, 2020
ae5f187
Fix repository URL
oliviertassinari Apr 28, 2020
360ad0a
[CalendarView] Fix a bunch of regressions (#1702)
dmtrKovalenko Apr 28, 2020
23ada5c
[DateRangePicker] renderInput for date range (#1719)
dmtrKovalenko May 1, 2020
fa0cd99
Bump cypress from 4.4.0 to 4.5.0 (#1732)
dependabot-preview[bot] May 3, 2020
27685c5
Bump prismjs from 1.19.0 to 1.20.0 (#1731)
dependabot-preview[bot] May 3, 2020
5575932
Bump luxon from 1.21.3 to 1.23.0 (#1735)
dependabot-preview[bot] May 4, 2020
f45cfcb
Bump sinon from 7.4.2 to 9.0.2 (#1734)
dependabot-preview[bot] May 4, 2020
3d16fc3
Bump babel-loader from 8.0.6 to 8.1.0 (#1733)
dependabot-preview[bot] May 4, 2020
bffad8f
Improve onError validation (#1730)
dmtrKovalenko May 6, 2020
684ea83
Properly handle disabled years (#1743)
dmtrKovalenko May 6, 2020
4f0bb9b
Fix incorrect DateRange input filling in timezone different from UTC
dmtrKovalenko May 6, 2020
25d3786
v4.0.0-alpha.6
dmtrKovalenko May 6, 2020
01dde08
Update .size-snapshot
dmtrKovalenko May 6, 2020
d98efe8
[docs] Fix minDate error message in Formik example (#1746)
jozsi May 6, 2020
6c5ee13
[chore] automate domain assigning (#1754)
dmtrKovalenko May 7, 2020
efd9556
[DateRangePicker] Fix when typed invalid value, then closed and reope…
dmtrKovalenko May 7, 2020
30c5bed
v4.0.0-alpha.7
dmtrKovalenko May 7, 2020
7d6525b
Improve `renderInput` spreading experience (#1760)
dmtrKovalenko May 9, 2020
1206f62
Bump react-transition-group from 4.3.0 to 4.4.1 (#1762)
dependabot-preview[bot] May 10, 2020
02a435e
Bump ts-jest from 25.3.1 to 25.5.1 (#1764)
dependabot-preview[bot] May 10, 2020
f9f9779
Bump notistack from 0.9.4 to 0.9.11 (#1765)
dependabot-preview[bot] May 10, 2020
441e3fa
Bump @material-ui/core from 4.9.11 to 4.9.13 (#1766)
dependabot-preview[bot] May 10, 2020
8b9c991
Bump babel-plugin-module-resolver from 3.2.0 to 4.0.0 (#1763)
dependabot-preview[bot] May 10, 2020
02e857e
[DX] Add missing prop types (#1761)
dmtrKovalenko May 11, 2020
4a1b6b0
Export the default Toolbar components (closes #1694) (#1707)
Philipp91 May 11, 2020
4fe0330
Bump @material-ui/core from 4.9.13 to 4.9.14 (#1781)
dependabot-preview[bot] May 17, 2020
466c8c5
Bump dayjs from 1.8.22 to 1.8.27 (#1780)
dependabot-preview[bot] May 17, 2020
3740018
Bump react-markdown from 4.2.2 to 4.3.1 (#1782)
dependabot-preview[bot] May 17, 2020
1e4f622
Bump fuzzy-search from 3.0.2 to 3.2.1 (#1783)
dependabot-preview[bot] May 17, 2020
a3c9a5d
Bump rollup from 1.27.0 to 2.10.2 (#1784)
dependabot-preview[bot] May 17, 2020
cc7b04c
Move <Ad /> to the top of forms guide page (#1785)
dmtrKovalenko May 17, 2020
b87e674
Support "empty" value in pickers' UX (#1770)
dmtrKovalenko May 17, 2020
0ce73c6
Update patrons list
dmtrKovalenko May 18, 2020
482b290
[DateTimePicker] Better UI (#1771)
dmtrKovalenko May 19, 2020
9c9ab32
Implement text props name convention (#1773)
dmtrKovalenko May 19, 2020
214439d
yarn docgen
oliviertassinari May 22, 2020
e831a38
[test] Make sure the components can render with a default theme (#1804)
oliviertassinari May 23, 2020
9bca9c6
[core] Small changes (#1802)
oliviertassinari May 23, 2020
046f22e
Bump styled-jsx from 3.2.5 to 3.3.0 (#1808)
dependabot-preview[bot] May 25, 2020
8f21bc1
Bump react-docgen-typescript from 1.16.3 to 1.16.5 (#1807)
dependabot-preview[bot] May 25, 2020
8b6d7d4
[docs] improve English, move moment.js last due to bundle size (#1816)
dandv May 25, 2020
0a5c8e2
Bump @types/react-dom from 16.9.6 to 16.9.8 (#1809)
dependabot-preview[bot] May 25, 2020
f2c5a26
Bump @types/sinon from 7.5.1 to 9.0.4 (#1810)
dependabot-preview[bot] May 25, 2020
90fe435
[docs] Add missing space to the date-io override example
dmtrKovalenko May 25, 2020
761d0ff
Fix ternary condition for default mask values (#1797)
Philipp91 May 25, 2020
6cde0ea
Global theme default props support (#1796)
dmtrKovalenko May 25, 2020
5feff31
Bump rollup-plugin-size-snapshot from 0.10.0 to 0.12.0 (#1828)
dependabot-preview[bot] May 25, 2020
01f0d76
Update parsing.mdx to use day.js document website (#1831)
ducthienbui97 May 27, 2020
9fa389f
[docs] Improve English and fix 404 link (#1815)
dandv May 27, 2020
c932737
[Calendar] Remove promise based loading in favor of `loading` prop (#…
dmtrKovalenko May 28, 2020
d9b58b4
removed outdated docs (#1838)
stunaz May 29, 2020
c33268f
Bump ts-loader from 6.2.2 to 7.0.5 (#1844)
dependabot-preview[bot] May 31, 2020
2620a7e
Bump @types/react from 16.9.32 to 16.9.35 (#1840)
dependabot-preview[bot] May 31, 2020
c0dfb2a
Bump fs-extra from 8.1.0 to 9.0.0 (#1841)
dependabot-preview[bot] May 31, 2020
cced4b6
Bump cross-env from 5.2.1 to 7.0.2 (#1843)
dependabot-preview[bot] May 31, 2020
23ff4f9
Bump lint-staged from 10.0.8 to 10.2.7 (#1842)
dependabot-preview[bot] May 31, 2020
3664d41
Fix not working minDateTime and maxDateTime props (#1834)
dmtrKovalenko May 31, 2020
94e2935
Reexport additional public props (#1846)
dmtrKovalenko May 31, 2020
309f4f5
[Day] Accept font-family from typography (#1847)
dmtrKovalenko Jun 1, 2020
fb9ca87
Disable year if it cannot be selected (#1848)
dmtrKovalenko Jun 2, 2020
155de8b
Fix TrapFocus import with @material-ui/core v4.10.1 (#1857)
dmtrKovalenko Jun 4, 2020
681d492
Include CalendarSkeleton in the final build
dmtrKovalenko Jun 4, 2020
0e16977
v4.0.0-alpha.8
dmtrKovalenko Jun 4, 2020
dcb5c52
Bump lint-staged from 10.2.7 to 10.2.9 (#1864)
dependabot-preview[bot] Jun 9, 2020
9698066
Bump cypress from 4.5.0 to 4.7.0 (#1868)
dependabot-preview[bot] Jun 9, 2020
a0b4ad2
yarn docgen
oliviertassinari Jun 9, 2020
c743077
Bump jest from 25.1.0 to 26.0.1 (#1866)
dependabot-preview[bot] Jun 9, 2020
297b161
Bump @types/yup from 0.28.0 to 0.29.2 (#1867)
dependabot-preview[bot] Jun 12, 2020
410f43d
Bump rollup-plugin-terser from 5.1.2 to 6.1.0 (#1865)
dependabot-preview[bot] Jun 12, 2020
2621bc2
Bump @percy/cypress from 2.3.0 to 2.3.1 (#1892)
dependabot-preview[bot] Jun 15, 2020
7ff6afd
Bump @testing-library/jest-dom from 5.9.0 to 5.10.1 (#1891)
dependabot-preview[bot] Jun 15, 2020
c834f5c
Bump react-docgen-typescript from 1.16.5 to 1.17.0 (#1890)
dependabot-preview[bot] Jun 15, 2020
32324b2
yarn prettier (#1897)
oliviertassinari Jun 18, 2020
797f802
[docs] Prepare Material-UI X (#1893)
oliviertassinari Jun 18, 2020
50ee6e9
[docs] Improve Responsiveness sections (#1884)
michael-land Jun 19, 2020
5498157
[core] Remove dead dependency (#1896)
oliviertassinari Jun 19, 2020
de5f80c
Bump jss from 10.2.0 to 10.3.0 (#1915)
dependabot-preview[bot] Jun 22, 2020
1b2d4d6
Bump rifm from 0.11.0 to 0.12.0 (#1916)
dependabot-preview[bot] Jun 22, 2020
2fb7734
Bump @rollup/plugin-babel from 5.0.2 to 5.0.3 (#1917)
dependabot-preview[bot] Jun 22, 2020
29dc371
Bump @types/prismjs from 1.16.0 to 1.16.1 (#1918)
dependabot-preview[bot] Jun 22, 2020
d1fbfbb
Bump moment from 2.22.2 to 2.27.0 (#1919)
dependabot-preview[bot] Jun 22, 2020
f4c87f0
Add missing props for DateRangePickerToolbar (#1914)
felixh10r Jun 22, 2020
21ef115
[docs] Fix crash on DatePicker 'Customization' example (#1904)
bertrandp Jun 22, 2020
e98eb44
[typescript] Fix typescript error with overrides augmentation for typ…
bopfer Jun 24, 2020
88cb622
Integrate cypress component tests (#1922)
dmtrKovalenko Jun 25, 2020
b470d65
[core] Sort props ASC (#1928)
oliviertassinari Jun 25, 2020
757384e
[core] Update .github to match main repo (#1929)
oliviertassinari Jun 26, 2020
d74c02b
yarn prettier
oliviertassinari Jun 28, 2020
b62ce2a
Migrate to Popper from Popover (#1850)
dmtrKovalenko Jun 28, 2020
8a75e67
[core] Use prettier at 100% (#1936)
oliviertassinari Jun 28, 2020
e59bbb9
fix eslint errors (#1937)
oliviertassinari Jul 1, 2020
d6134e0
Bump eslint-plugin-react-hooks from 1.7.0 to 4.0.4 (#1938)
dependabot-preview[bot] Jul 1, 2020
eb12cb4
Bump @testing-library/dom from 7.5.7 to 7.18.1 (#1940)
dependabot-preview[bot] Jul 1, 2020
6a09d98
Bump rollup from 2.10.2 to 2.18.1 (#1941)
dependabot-preview[bot] Jul 1, 2020
510c745
Bump jest from 26.0.1 to 26.1.0 (#1939)
dependabot-preview[bot] Jul 2, 2020
e4c2bdd
Replace theme.palette.text.hint with theme.palette.text.secondary (#1…
dmtrKovalenko Jul 6, 2020
853e5d2
Improve date parts selection flow (#1923)
dmtrKovalenko Jul 6, 2020
e6bfd12
[YearSelection] Do not call shouldDisableDate on year selection view …
dmtrKovalenko Jul 6, 2020
3784f87
Bump @rollup/plugin-commonjs from 12.0.0 to 13.0.0 (#1957)
dependabot-preview[bot] Jul 6, 2020
c5292a1
Bump notistack from 0.9.11 to 0.9.17 (#1958)
dependabot-preview[bot] Jul 6, 2020
1ccf3a5
Bump yup from 0.28.5 to 0.29.1 (#1956)
dependabot-preview[bot] Jul 6, 2020
8f895d5
Bump eslint-plugin-react-hooks from 4.0.4 to 4.0.5 (#1960)
dependabot-preview[bot] Jul 6, 2020
7d75a2c
Bump now from 19.0.1 to 19.1.1 (#1959)
dependabot-preview[bot] Jul 7, 2020
ad3ed4a
[DateRangePicker] Fix not working `renderDay` prop (#1953)
dmtrKovalenko Jul 10, 2020
26dcea5
[DateTimePicker] Always show arrow switcher in clock (#1949)
dmtrKovalenko Jul 10, 2020
c3c4231
[typescript] Generic date type (#1966)
dmtrKovalenko Jul 10, 2020
8a35612
v4.0.0-alpha.9 (#1971)
dmtrKovalenko Jul 10, 2020
2cebdba
Replace codefund with carbon (#1988)
dmtrKovalenko Jul 13, 2020
91c27b6
Bump typescript from 3.9.3 to 3.9.6 (#1984)
dependabot-preview[bot] Jul 13, 2020
8c63579
test: add dayjs (#1987)
PaulSavignano Jul 13, 2020
48fd332
Bump cypress from 4.8.0 to 4.10.0 (#1985)
dependabot-preview[bot] Jul 13, 2020
5cce569
[core] Update examples formatting to match main v2 (#1977)
oliviertassinari Jul 13, 2020
d701a81
[core] Add --report-unused-disable-directives to lint commands on CI …
oliviertassinari Jul 13, 2020
0818b5e
[core] Use the same start command as main (#1975)
oliviertassinari Jul 13, 2020
1243ad9
Bump @material-ui/core from 4.10.1 to 4.11.0 (#1982)
dependabot-preview[bot] Jul 13, 2020
f06d99c
Bump @testing-library/jest-dom from 5.10.1 to 5.11.0 (#1981)
dependabot-preview[bot] Jul 13, 2020
54faaad
Consolidate classes naming (#1950)
dmtrKovalenko Jul 14, 2020
6b0d30b
[DatePicker] Don't run onChange if same date selected (#1967)
todor-a Jul 15, 2020
97aa0a7
Avoid localized time formats (#1991)
dmtrKovalenko Jul 15, 2020
6ffb24b
Fix not rerendering days when inCurrentMonth changes (#1994)
dmtrKovalenko Jul 15, 2020
cbaec58
v4.0.0-alpha.10 (#2003)
dmtrKovalenko Jul 17, 2020
2a6a756
Bump lint-staged from 10.2.9 to 10.2.11 (#2007)
dependabot-preview[bot] Jul 19, 2020
e195a7d
Bump babel-plugin-optimize-clsx from 2.6.0 to 2.6.1 (#2008)
dependabot-preview[bot] Jul 19, 2020
6feb366
Bump @types/fs-extra from 8.1.0 to 9.0.1 (#2010)
dependabot-preview[bot] Jul 19, 2020
5580d0d
Bump wait-on from 4.0.0 to 5.1.0 (#2009)
dependabot-preview[bot] Jul 19, 2020
df04d04
Bump @testing-library/react from 10.0.4 to 10.4.7 (#2011)
dependabot-preview[bot] Jul 19, 2020
dfbbe65
[core] Upgrade prettier (#2005)
oliviertassinari Jul 19, 2020
4d762e7
[Security] Bump codecov from 3.6.5 to 3.7.1 (#2014)
dependabot-preview[bot] Jul 21, 2020
c9d6720
Bump codecov from 3.6.5 to 3.7.1 (#2017)
dependabot[bot] Jul 21, 2020
c235589
[docs] Remove mention of removed `autoOk` prop (#2020)
dandv Jul 22, 2020
32b7483
[DateTimePicker] Allow same date selection (#2016)
dmtrKovalenko Jul 22, 2020
d7d90f2
Properly check prettier on CI (#2025)
dmtrKovalenko Jul 22, 2020
f71706a
[docs] Migrate demos to TypeScript (#2030)
dmtrKovalenko Jul 25, 2020
949a4d6
Bump @types/luxon from 1.22.0 to 1.24.3 (#2037)
dependabot-preview[bot] Jul 26, 2020
b297a71
Bump @rollup/plugin-node-resolve from 8.0.0 to 8.4.0 (#2038)
dependabot-preview[bot] Jul 26, 2020
9cbcb42
Bump cypress from 4.10.0 to 4.11.0 (#2040)
dependabot-preview[bot] Jul 26, 2020
3c3bc40
Bump @now/node from 1.6.1 to 1.7.3 (#2041)
dependabot-preview[bot] Jul 26, 2020
8728ef3
Bump @testing-library/dom from 7.21.1 to 7.21.5 (#2039)
dependabot-preview[bot] Jul 26, 2020
b3f94f4
[core] Batch small changes (#2034)
oliviertassinari Jul 26, 2020
b101c47
[docs] Fix `inputRef` date picker customization demo (#2028)
Chee7ah Jul 27, 2020
e33282a
[test] Add yarn deduplicate step (#2036)
oliviertassinari Jul 27, 2020
537dc6e
[core] Continue eslint sync with main repo (#2004)
oliviertassinari Jul 28, 2020
df3010b
updated guides links to point to next (#2048)
aamirafridi Jul 29, 2020
719f860
[Security] Bump elliptic from 6.5.1 to 6.5.3 (#2049)
dependabot-preview[bot] Jul 30, 2020
ff33683
[DatePicker] Add test for textbox aria-invalid (#1955)
PaulSavignano Jul 31, 2020
f8bc7ba
Require Material-UI v5 alpha (#2053)
eps1lon Aug 1, 2020
a6ea9c2
v4.0.0-alpha.11
oliviertassinari Aug 1, 2020
1df9d58
Make optional peer dependencies of date libs (#2055)
eps1lon Aug 1, 2020
f854422
Bump next-images from 1.4.0 to 1.4.1 (#2058)
dependabot-preview[bot] Aug 2, 2020
5043b9b
Bump codecov from 3.7.1 to 3.7.2 (#2059)
dependabot-preview[bot] Aug 2, 2020
5424cdd
chore: Fix various peer dependency warnings (#2054)
eps1lon Aug 2, 2020
c9d83ef
Fix docs for v4.0.0-alpha.11 (#2065)
dmtrKovalenko Aug 3, 2020
bb7ea79
Bump @rollup/plugin-commonjs from 13.0.0 to 14.0.0 (#2060)
dependabot-preview[bot] Aug 4, 2020
6d9b428
[typescript] Make all components generic for date type (#2045)
dmtrKovalenko Aug 4, 2020
6470138
v4.0.0-alpha.12
dmtrKovalenko Aug 4, 2020
137019c
Bump version in lib/package.json
dmtrKovalenko Aug 4, 2020
91dcbaf
Bump prismjs from 1.20.0 to 1.21.0 (#2074)
dependabot[bot] Aug 8, 2020
e324bcc
Add 'packages/pickers/' from commit '91dcbaffba239f981613801c6d6294bd…
eps1lon Nov 9, 2020
0b069d9
[DatePicker] Squash compat commits
oliviertassinari Aug 9, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ module.exports = {
'!@material-ui/utils/macros',
'@material-ui/utils/macros/*',
'!@material-ui/utils/macros/*.macro',
// public API: https://next.material-ui-pickers.dev/getting-started/installation#peer-library
'!@material-ui/pickers/adapter/*',
'!@material-ui/lab/dateAdapter/*',
],
},
],
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
.idea
.vscode
*.log
*.tsbuildinfo
/.eslintcache
/.nyc_output
/benchmark/**/dist
Expand Down
6 changes: 2 additions & 4 deletions docs/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ module.exports = {

config.externals = [
(context, request, callback) => {
const hasDependencyOnRepoPackages = ['notistack', '@material-ui/pickers'].includes(
request,
);
const hasDependencyOnRepoPackages = ['notistack'].includes(request);

if (hasDependencyOnRepoPackages) {
return callback(null);
Expand Down Expand Up @@ -108,7 +106,7 @@ module.exports = {
// transpile 3rd party packages with dependencies in this repository
{
test: /\.(js|mjs|jsx)$/,
include: /node_modules(\/|\\)(notistack|@material-ui(\/|\\)pickers)/,
include: /node_modules(\/|\\)notistack/,
use: {
loader: 'babel-loader',
options: {
Expand Down
3 changes: 1 addition & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"@material-ui/docs": "^5.0.0-alpha.1",
"@material-ui/icons": "^5.0.0-alpha.1",
"@material-ui/lab": "^5.0.0-alpha.1",
"@material-ui/pickers": "^4.0.0-alpha.11",
"@material-ui/styled-engine": "^5.0.0-alpha.1",
"@material-ui/styled-engine-sc": "^5.0.0-alpha.1",
"@material-ui/styles": "^5.0.0-alpha.1",
Expand Down Expand Up @@ -69,7 +68,7 @@
"create-emotion-server": "^10.0.27",
"cross-env": "^7.0.0",
"css-mediaquery": "^0.1.2",
"date-fns": "^2.15.0",
"date-fns": "^2.0.0",
"docsearch.js": "^2.6.3",
"doctrine": "^3.0.0",
"emotion-theming": "^10.0.27",
Expand Down
24 changes: 24 additions & 0 deletions docs/pages/components/date-picker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'components/date-picker';
const requireDemo = require.context('docs/src/pages/components/date-picker', false, /\.(js|tsx)$/);
const requireRaw = require.context(
'!raw-loader!../../src/pages/components/date-picker',
false,
/\.(js|md|tsx)$/,
);

// Run styled-components ref logic
// https://github.com/styled-components/styled-components/pull/2998
requireDemo.keys().map(requireDemo);

export default function Page({ demos, docs }) {
return <MarkdownDocs demos={demos} docs={docs} requireDemo={requireDemo} />;
}

Page.getInitialProps = () => {
const { demos, docs } = prepareMarkdown({ pageFilename, requireRaw });
return { demos, docs };
};
28 changes: 28 additions & 0 deletions docs/pages/components/date-range-picker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'components/date-range-picker';
const requireDemo = require.context(
'docs/src/pages/components/date-range-picker',
false,
/\.(js|tsx)$/,
);
const requireRaw = require.context(
'!raw-loader!../../src/pages/components/date-range-picker',
false,
/\.(js|md|tsx)$/,
);

// Run styled-components ref logic
// https://github.com/styled-components/styled-components/pull/2998
requireDemo.keys().map(requireDemo);
oliviertassinari marked this conversation as resolved.
Show resolved Hide resolved

export default function Page({ demos, docs }) {
return <MarkdownDocs demos={demos} docs={docs} requireDemo={requireDemo} />;
}

Page.getInitialProps = () => {
const { demos, docs } = prepareMarkdown({ pageFilename, requireRaw });
return { demos, docs };
};
28 changes: 28 additions & 0 deletions docs/pages/components/date-time-picker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'components/date-time-picker';
const requireDemo = require.context(
'docs/src/pages/components/date-time-picker',
false,
/\.(js|tsx)$/,
);
const requireRaw = require.context(
'!raw-loader!../../src/pages/components/date-time-picker',
false,
/\.(js|md|tsx)$/,
);

// Run styled-components ref logic
// https://github.com/styled-components/styled-components/pull/2998
requireDemo.keys().map(requireDemo);

export default function Page({ demos, docs }) {
return <MarkdownDocs demos={demos} docs={docs} requireDemo={requireDemo} />;
}

Page.getInitialProps = () => {
const { demos, docs } = prepareMarkdown({ pageFilename, requireRaw });
return { demos, docs };
};
24 changes: 24 additions & 0 deletions docs/pages/components/time-picker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'components/time-picker';
const requireDemo = require.context('docs/src/pages/components/time-picker', false, /\.(js|tsx)$/);
const requireRaw = require.context(
'!raw-loader!../../src/pages/components/time-picker',
false,
/\.(js|md|tsx)$/,
);

// Run styled-components ref logic
// https://github.com/styled-components/styled-components/pull/2998
requireDemo.keys().map(requireDemo);

export default function Page({ demos, docs }) {
return <MarkdownDocs demos={demos} docs={docs} requireDemo={requireDemo} />;
}

Page.getInitialProps = () => {
const { demos, docs } = prepareMarkdown({ pageFilename, requireRaw });
return { demos, docs };
};
4 changes: 4 additions & 0 deletions docs/scripts/buildApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,10 @@ async function buildDocs(options: {
prettierConfigPath,
theme,
} = options;
if (componentObject.filename.indexOf('internal') !== -1) {
return;
}

const src = readFileSync(componentObject.filename, 'utf8');

if (src.match(/@ignore - internal component\./) || src.match(/@ignore - do not document\./)) {
Expand Down
18 changes: 9 additions & 9 deletions docs/src/modules/utils/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ function includePeerDependencies(deps, versions) {

if (
deps['@material-ui/lab'] ||
deps['@material-ui/pickers'] ||
deps['@material-ui/x'] ||
deps['@material-ui/x-grid'] ||
deps['@material-ui/x-pickers'] ||
Expand All @@ -98,10 +97,6 @@ function includePeerDependencies(deps, versions) {
deps['@material-ui/icons'] = versions['@material-ui/icons'];
deps['@material-ui/lab'] = versions['@material-ui/lab'];
}

if (deps['@material-ui/pickers']) {
deps['date-fns'] = 'latest';
}
}

/**
Expand Down Expand Up @@ -131,8 +126,10 @@ function getDependencies(raw, options = {}) {

const deps = {};
const versions = {
'react-dom': reactVersion,
react: reactVersion,
'react-dom': reactVersion,
'@emotion/core': 'latest',
'@emotion/styled': 'latest',
'@material-ui/core': getMuiPackageVersion('core', muiCommitRef),
'@material-ui/icons': getMuiPackageVersion('icons', muiCommitRef),
'@material-ui/lab': getMuiPackageVersion('lab', muiCommitRef),
Expand All @@ -142,9 +139,6 @@ function getDependencies(raw, options = {}) {
'@material-ui/system': getMuiPackageVersion('system', muiCommitRef),
'@material-ui/unstyled': getMuiPackageVersion('unstyled', muiCommitRef),
'@material-ui/utils': getMuiPackageVersion('utils', muiCommitRef),
'@material-ui/pickers': 'next',
'@emotion/core': 'latest',
'@emotion/styled': 'latest',
};

const re = /^import\s'([^']+)'|import\s[\s\S]*?\sfrom\s+'([^']+)/gm;
Expand All @@ -164,6 +158,12 @@ function getDependencies(raw, options = {}) {
if (!deps[name]) {
deps[name] = versions[name] ? versions[name] : 'latest';
}

// e.g date-fns
const dateAdapter = /^@material-ui\/lab\/dateAdapter\/(.*)/;
if (dateAdapter.test(m[2])) {
deps[dateAdapter.exec(m[2])[1]] = 'latest';
}
}

includePeerDependencies(deps, versions);
Expand Down
52 changes: 26 additions & 26 deletions docs/src/modules/utils/helpers.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ const styles = theme => ({

it('should handle @ dependencies', () => {
expect(getDependencies(s1)).to.deep.equal({
react: 'latest',
'react-dom': 'latest',
'@emotion/core': 'latest',
'@emotion/styled': 'latest',
'@foo-bar/bip': 'latest',
'@material-ui/core': 'next',
'prop-types': 'latest',
'react-dom': 'latest',
react: 'latest',
});
});

Expand All @@ -48,27 +48,27 @@ const suggestions = [
`;

expect(getDependencies(source)).to.deep.equal({
react: 'latest',
'react-dom': 'latest',
'@emotion/core': 'latest',
'@emotion/styled': 'latest',
'@material-ui/core': 'next',
'@unexisting/thing': 'latest',
'autosuggest-highlight': 'latest',
'prop-types': 'latest',
'react-draggable': 'latest',
'react-dom': 'latest',
react: 'latest',
});
});

it('should support next dependencies', () => {
expect(getDependencies(s1, { reactVersion: 'next' })).to.deep.equal({
react: 'next',
'react-dom': 'next',
'@emotion/core': 'latest',
'@emotion/styled': 'latest',
'@foo-bar/bip': 'latest',
'@material-ui/core': 'next',
'prop-types': 'latest',
'react-dom': 'next',
react: 'next',
});
});

Expand All @@ -78,31 +78,31 @@ import * as React from 'react';
import PropTypes from 'prop-types';
import Grid from '@material-ui/core/Grid';
import { withStyles } from '@material-ui/core/styles';
import DateFnsAdapter from "@material-ui/pickers/adapter/date-fns";
import { LocalizationProvider as MuiPickersLocalizationProvider, KeyboardTimePicker, KeyboardDatePicker } from '@material-ui/pickers';
import DateFnsAdapter from '@material-ui/lab/dateAdapter/date-fns';
import { LocalizationProvider as MuiPickersLocalizationProvider, KeyboardTimePicker, KeyboardDatePicker } from '@material-ui/lab';
`;

expect(getDependencies(source)).to.deep.equal({
'date-fns': 'latest',
react: 'latest',
'react-dom': 'latest',
'prop-types': 'latest',
'@emotion/core': 'latest',
'@emotion/styled': 'latest',
'@material-ui/pickers': 'next',
'@material-ui/core': 'next',
'prop-types': 'latest',
'react-dom': 'latest',
react: 'latest',
'@material-ui/lab': 'next',
'date-fns': 'latest',
});
});

it('can collect required @types packages', () => {
expect(getDependencies(s1, { codeLanguage: 'TS' })).to.deep.equal({
react: 'latest',
'react-dom': 'latest',
'prop-types': 'latest',
'@emotion/core': 'latest',
'@emotion/styled': 'latest',
'@foo-bar/bip': 'latest',
'@material-ui/core': 'next',
'prop-types': 'latest',
'react-dom': 'latest',
react: 'latest',
'@types/foo-bar__bip': 'latest',
'@types/prop-types': 'latest',
'@types/react-dom': 'latest',
Expand All @@ -114,22 +114,22 @@ import { LocalizationProvider as MuiPickersLocalizationProvider, KeyboardTimePic
it('should handle multilines', () => {
const source = `
import * as React from 'react';
import DateFnsAdapter from '@material-ui/pickers/adapter/date-fns';
import DateFnsAdapter from '@material-ui/lab/dateAdapter/date-fns';
import {
LocalizationProvider as MuiPickersLocalizationProvider,
KeyboardTimePicker,
KeyboardDatePicker,
} from '@material-ui/pickers';
} from '@material-ui/lab';
`;

expect(getDependencies(source)).to.deep.equal({
'date-fns': 'latest',
react: 'latest',
'react-dom': 'latest',
'@emotion/core': 'latest',
'@emotion/styled': 'latest',
'@material-ui/core': 'next',
'@material-ui/pickers': 'next',
react: 'latest',
'react-dom': 'latest',
'@material-ui/lab': 'next',
'date-fns': 'latest',
});
});

Expand All @@ -139,12 +139,12 @@ import lab from '@material-ui/lab';
`;

expect(getDependencies(source)).to.deep.equal({
react: 'latest',
'react-dom': 'latest',
'@emotion/core': 'latest',
'@emotion/styled': 'latest',
'@material-ui/core': 'next',
'@material-ui/lab': 'next',
react: 'latest',
'react-dom': 'latest',
});
});

Expand All @@ -156,6 +156,8 @@ import { useDemoData } from '@material-ui/x-grid-data-generator';
`;

expect(getDependencies(source, { codeLanguage: 'TS' })).to.deep.equal({
react: 'latest',
'react-dom': 'latest',
'@emotion/core': 'latest',
'@emotion/styled': 'latest',
'@material-ui/core': 'next',
Expand All @@ -165,8 +167,6 @@ import { useDemoData } from '@material-ui/x-grid-data-generator';
'@material-ui/x-grid-data-generator': 'latest',
'@types/react': 'latest',
'@types/react-dom': 'latest',
react: 'latest',
'react-dom': 'latest',
typescript: 'latest',
});
});
Expand Down
Loading