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

[Joy] Apply useSlot to components and add slots/slotProps props to the typing #2

Open
wants to merge 322 commits into
base: joy/autocomplete
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
322 commits
Select commit Hold shift + click to select a range
30e42b8
[docs] Fix undo/redo in live editor (#35163)
oliviertassinari Nov 15, 2022
edf0933
[docs] Add Joy UI theme typography page (#34811)
siriwatknp Nov 17, 2022
4cf3c84
[docs] Hotfix missing styles in dark mode (#35179)
siriwatknp Nov 17, 2022
1563ccc
[typescript] Add `background.defaultChannel` to `CssVarsPalette` (#35…
alexfauquette Nov 17, 2022
dd9acb7
[docs] Explain how the `error` prop works in the Unstyled Input (#35171)
michaldudak Nov 17, 2022
2f27c2e
[core] Ensure that prettier CI step fails when code is badly formatte…
michaldudak Nov 17, 2022
764faaf
[core] Upgrade eslint-config-airbnb-typescript (#34642)
Janpot Nov 17, 2022
ee3091f
use getBy for better DX
siriwatknp Nov 18, 2022
08db62a
[docs] Inform that pickers are in X repository (#35189)
alexfauquette Nov 18, 2022
ae5629c
move Material UI components test
siriwatknp Nov 18, 2022
52df009
fix Alert
siriwatknp Nov 18, 2022
397c96d
update conformance
siriwatknp Nov 18, 2022
842cf9b
Revert "use getBy for better DX"
siriwatknp Nov 18, 2022
fc8a694
update Autocomplete
siriwatknp Nov 18, 2022
d59f395
[Select][base] Add attributes to conform with ARIA 1.2 (#35182)
michaldudak Nov 18, 2022
3fa5754
fix AvatarGroup
siriwatknp Nov 18, 2022
3a6b30a
rename to components
siriwatknp Nov 18, 2022
9474ae0
[docs] Iterating on recent Joy UI Component page updates (#35162)
samuelsycamore Nov 18, 2022
8bd75c8
[website] Disable SEO for performance pages (#35173)
oliviertassinari Nov 19, 2022
ec16c07
[docs] Fix typo in legacy date picker migration guide
oliviertassinari Nov 20, 2022
0200647
Bump github/codeql-action digest to d00e8c0 (#35203)
renovate[bot] Nov 20, 2022
838d1b5
Bump github/codeql-action action to v1.1.33 (#35209)
renovate[bot] Nov 20, 2022
59e1bc1
[core] Group renovate GitHub Action dependency updates
oliviertassinari Nov 20, 2022
8817230
the pages have no <link rel=canonical so we need to tell Google to no…
oliviertassinari Nov 20, 2022
4495d42
[docs] Fix typos in section titles (#35025)
iamxukai Nov 20, 2022
556d3b0
[website] Exclude experiment pages in production (#35180)
siriwatknp Nov 21, 2022
d37b9ba
[website] Fix theme mode toggle state (#35216)
siriwatknp Nov 21, 2022
aa7db76
Bump Font awesome SVG icons to ^6.2.1 (#35207)
renovate[bot] Nov 21, 2022
151c789
Bump @types/react-dom to ^18.0.9 (#35206)
renovate[bot] Nov 21, 2022
f44a5b5
Bump @types/lodash to ^4.14.189 (#35205)
renovate[bot] Nov 21, 2022
4d07a0f
Bump @chakra-ui/system to ^2.3.3 (#35204)
renovate[bot] Nov 21, 2022
6e8d848
Bump webpack to ^5.75.0 (#35128)
renovate[bot] Nov 21, 2022
82e5b65
Bump typescript-eslint to ^5.43.0 (#35127)
renovate[bot] Nov 21, 2022
fe56cf4
Bump marked to ^4.2.3 (#35126)
renovate[bot] Nov 21, 2022
a0a3638
Bump danger to ^11.2.0 (#35124)
renovate[bot] Nov 21, 2022
7c5c498
Bump cimg/node Docker tag to v14.21 (#35123)
renovate[bot] Nov 21, 2022
0c602db
Bump aws-sdk to ^2.1258.0 (#35121)
renovate[bot] Nov 21, 2022
05d6780
Bump postcss to ^8.4.19 (#35119)
renovate[bot] Nov 21, 2022
c256a98
Bump loader-utils from 2.0.3 to 2.0.4 (#35186)
dependabot[bot] Nov 21, 2022
ce4c9df
[website] Add Security questionnaire in pricing (#35172)
oliviertassinari Nov 21, 2022
78b91a7
Bump babel-loader to ^8.3.0 (#35122)
renovate[bot] Nov 21, 2022
ae73a3d
Bump theme-ui to ^0.15.4 (#35120)
renovate[bot] Nov 21, 2022
39bc718
[docs] Fix confusion in TOCs when reaching scroll bottom (#35214)
oliviertassinari Nov 21, 2022
709317c
[Joy] Uplift introduction demos & make consistent with Base (#34316)
danilo-leal Nov 21, 2022
a0771dd
Merge branch 'master' of https://github.com/mui/material-ui into joy/…
siriwatknp Nov 21, 2022
e14e4fb
add comment
siriwatknp Nov 21, 2022
96d1525
[icons] Update the Material Design icons (#35194)
michaldudak Nov 21, 2022
bd95b34
fix misused variables
siriwatknp Nov 21, 2022
1005da0
remove outdated tests
siriwatknp Nov 21, 2022
97713b2
add comment
siriwatknp Nov 21, 2022
5585d42
fix pagination tests
siriwatknp Nov 21, 2022
ecbdb3d
mark components and slots as optional
siriwatknp Nov 21, 2022
f551fbf
[l10n] Add Urdu (ur-PK) locale (#35154)
MBilalShafi Nov 21, 2022
fe3dc18
[Material You] Add theme structure & Button component (#34650)
mnajdova Nov 21, 2022
70681d7
[docs] Change MUI -> Material UI in icons-material's readme (#35220)
michaldudak Nov 21, 2022
03f2111
Convert icons scripts to ESM (#35101)
Janpot Nov 21, 2022
ab9ef05
[Autocomplete] Fix keyboard navigation when using custom popover (#35…
sai6855 Nov 21, 2022
b8b1e0d
[docs] Fix a couple documentation errors (#35217)
danilo-leal Nov 22, 2022
14a6e1c
5.10.15 (#35221)
siriwatknp Nov 22, 2022
c175f60
[core] Skip CI for docs and examples paths (#35225)
siriwatknp Nov 22, 2022
bf8b632
[core] Migrate `describeConformance` to TypeScript (#35193)
flaviendelangle Nov 22, 2022
77b40eb
[docs] Support demos with side effect imports (#35177)
m4theushw Nov 22, 2022
b56ab74
[CircularProgress] Apply useSlot()
hbjORbj Oct 31, 2022
063d2e7
Apply useSlot to LinearProgress
hbjORbj Nov 1, 2022
a68cac3
Apply useSlot to Chip
hbjORbj Nov 1, 2022
74e63a3
Apply useSlot to ChipDelete
hbjORbj Nov 1, 2022
4ae13c3
[Chip] Add optional component prop to each slot in ComponentsProps
hbjORbj Nov 1, 2022
bc5b30b
[Tooltip] Improve the typing of components and componentsProps
hbjORbj Nov 1, 2022
c8bd681
Apply useSlot to Tooltip
hbjORbj Nov 1, 2022
ddec72d
[Chip, CircularProgress] Add components prop to API docs
hbjORbj Nov 1, 2022
69da1d6
[ChipDelete, LinearProgress] Keep API doc for component
hbjORbj Nov 1, 2022
3b30500
[Chip, ChipDelete, LinearProgress, CircularProgress] Ensure API doc o…
hbjORbj Nov 1, 2022
109fa4a
Apply useSlot to Avatar and pass className prop to the root
hbjORbj Nov 1, 2022
ea89935
[SvgIcon] Remove classes prop and apply useSlot
hbjORbj Nov 1, 2022
9aa71e8
[Slider] Add input class and apply useSlot
hbjORbj Nov 1, 2022
6b457e2
[SvgIcon] Remove classes prop from API doc
hbjORbj Nov 1, 2022
2e2266f
[Slider] Add components prop
hbjORbj Nov 1, 2022
ae7c289
Rename componentsProps to slotProps and components to slots
hbjORbj Nov 2, 2022
4387e71
Apply useSlot to more components & Rename components to slots, compon…
hbjORbj Nov 2, 2022
0005956
Fix Joy useSlot() test
hbjORbj Nov 2, 2022
9343bce
Apple useSlot to more components
hbjORbj Nov 3, 2022
dbe766d
Apply useSlot, add slots prop, rename componentsProps to slotProps fo…
hbjORbj Nov 5, 2022
0fd81f0
Replace componentsProps with slotProps in all Joy demos
hbjORbj Nov 7, 2022
415e9c0
Replace components with slots in all Joy demos
hbjORbj Nov 7, 2022
39f01a6
Add startDecorator and endDecorator classes to Alert
hbjORbj Nov 7, 2022
5ffc2f3
Test slots of Alert
hbjORbj Nov 7, 2022
bfa5ccd
Test slots of AspectRatio
hbjORbj Nov 7, 2022
3358f31
Test slots of Avatar, AvatarGroup and Badge
hbjORbj Nov 7, 2022
1ee303f
Test slots of Breadcrumbs, Button,Card
hbjORbj Nov 9, 2022
0ed9bee
Test slots of CardContent, CardCover, CardOverflow, Checkbox
hbjORbj Nov 9, 2022
780f905
Test slots of Chip, ChipDelete, CircularProgress, Divider
hbjORbj Nov 9, 2022
d171e41
Test slots of FormControl, FormHelperText, FormLabel, Grid, IconButto…
hbjORbj Nov 9, 2022
e9432ff
Remove unneeded classes from LinearProgress
hbjORbj Nov 9, 2022
9396b0d
Test slots of LinearProgress
hbjORbj Nov 9, 2022
f679a18
Prettier
hbjORbj Nov 9, 2022
88e5960
Test slots of more components
hbjORbj Nov 9, 2022
dd2ffc8
Add backdrop class to Modal
hbjORbj Nov 9, 2022
d5db0f3
Test slots of Menu, MenuItem, MenuList, Modal
hbjORbj Nov 9, 2022
56c9830
Test slots of more components
hbjORbj Nov 9, 2022
08b82b7
Add slot tests to the rest of Joy components
hbjORbj Nov 10, 2022
9390a14
Format docs
hbjORbj Nov 10, 2022
d83191e
Improve test of Alert
hbjORbj Nov 10, 2022
8c88f4e
Apply correct classname for endDecorator slot in Alert
hbjORbj Nov 10, 2022
391ade6
Skip some tests for joy components in conformance test
hbjORbj Nov 10, 2022
255e230
muiName could be undefined
hbjORbj Nov 10, 2022
0e6d0f7
Improve Breadcrumbs test
hbjORbj Nov 15, 2022
a6d205a
Skip more tests for Joy components in conformance test suite
hbjORbj Nov 15, 2022
6fa6667
Typo in aria prop in SvgIcon
hbjORbj Nov 15, 2022
a43fea9
Fix errors in Chip
hbjORbj Nov 15, 2022
5b4c575
Fix errors in Link and its tests
hbjORbj Nov 15, 2022
4a0e042
Fix LinearProgress test
hbjORbj Nov 15, 2022
b6d4471
[MenuList] Fix test
hbjORbj Nov 15, 2022
c8f81db
[ListDivider] Fix errors
hbjORbj Nov 15, 2022
1c99eba
[Checkbox] Pass inheritComponent to conformance test suite
hbjORbj Nov 15, 2022
cf3dfea
[Select] Fix implementation
hbjORbj Nov 15, 2022
797c6b2
Ensure Select test passes
hbjORbj Nov 15, 2022
a22bc04
[ListDivider] Run proptypes
hbjORbj Nov 15, 2022
a7cce30
[Typography] Fix endDecorator slot
hbjORbj Nov 15, 2022
324dfdf
[Switch, Textarea, Input] Fix endDecorator slot
hbjORbj Nov 15, 2022
69d0d42
[Tooltip] Refactor
hbjORbj Nov 15, 2022
f1dc124
[TextField] Improve test
hbjORbj Nov 15, 2022
61cf5f6
[TextField] Fix slot errors
hbjORbj Nov 15, 2022
c659455
[Menu] Fix test
hbjORbj Nov 15, 2022
1fb6285
[Chip] Fix test
hbjORbj Nov 15, 2022
f9fcb8e
[Breadcrumbs] Fix test
hbjORbj Nov 15, 2022
3283459
[Grid] Do not pass slots to conformance test suite
hbjORbj Nov 15, 2022
7409ad7
Format docs
hbjORbj Nov 15, 2022
5d3599b
Fix tests
hbjORbj Nov 17, 2022
128fc4c
[Tooltip] Improve test
hbjORbj Nov 17, 2022
3e788b3
final elementType should pass to appendOwnerState
siriwatknp Nov 18, 2022
d79f007
add data-testid="custom"
siriwatknp Nov 18, 2022
7a86534
ref should be null
siriwatknp Nov 18, 2022
37028bd
simplify Tooltip tests
siriwatknp Nov 18, 2022
9bef057
only pass the className
siriwatknp Nov 18, 2022
379d211
exclude slot tests from TextField
siriwatknp Nov 18, 2022
9911b40
skip test?
siriwatknp Nov 18, 2022
281e318
skip element tests
siriwatknp Nov 18, 2022
8c1883a
only pass ownerState for non host element
siriwatknp Nov 18, 2022
8eb3aec
fix Select
siriwatknp Nov 18, 2022
f76f3ad
Fix format / lint errors
hbjORbj Nov 22, 2022
c1f1694
Fix errors
hbjORbj Nov 22, 2022
ed93aa2
[core] Fix Base version in changelog (#35224)
siriwatknp Nov 23, 2022
f0a43d9
Merge branch 'master' of https://github.com/mui/material-ui into test…
siriwatknp Nov 23, 2022
200986d
fix lint
siriwatknp Nov 23, 2022
36ec85a
Merge branch 'test/use-components' into joy/apply-useSlot
siriwatknp Nov 23, 2022
7c93fa3
test slotProps as a function
siriwatknp Nov 23, 2022
755640c
fix Menu forwarded component
siriwatknp Nov 23, 2022
be42289
update component
siriwatknp Nov 23, 2022
b91e8e3
restore components with only root slot
siriwatknp Nov 23, 2022
8772417
fix MenuList name
siriwatknp Nov 23, 2022
798b83d
[Chip] Remove unnecessary handleKeyDown event handler (#35231)
ZeeshanTamboli Nov 23, 2022
686f1fe
[docs] Fix layout jump on first mistake (#35215)
oliviertassinari Nov 23, 2022
c8e23ae
[Menu] Fix ref instsance test
hbjORbj Nov 23, 2022
f397fa9
[Base] Allow useSlotProps to receive undefined elementType (#35192)
leventdeniz Nov 23, 2022
23276db
[docs] Improve the useSelect demo styling (#33883)
michaldudak Nov 23, 2022
9df9797
fix Avatar tests
siriwatknp Nov 23, 2022
71e9ad9
[core] Remove unused pattern (#35165)
iamxukai Nov 23, 2022
199e05e
remove testStateOverrides
siriwatknp Nov 24, 2022
2cc5281
Merge branch 'joy/apply-useSlot' of github.com:hbjORbj/material-ui in…
siriwatknp Nov 24, 2022
bb63e5e
run proptypes
siriwatknp Nov 24, 2022
ba310d1
fix regression
siriwatknp Nov 24, 2022
1b86330
[SwipeableDrawer] Make paper ref accessible (#35082)
sai6855 Nov 24, 2022
aadb058
[docs] Fix migration feedback (#35232)
alexfauquette Nov 24, 2022
b144a55
Bump engine.io from 6.2.0 to 6.2.1 (#35223)
dependabot[bot] Nov 24, 2022
db24f41
[examples] Updated Remix examples with the lates changes using React …
58bits Nov 24, 2022
4979502
[system] Remove unnecessary parsed theme (#35239)
siriwatknp Nov 24, 2022
7fa0a8b
[examples] Fix Next.js errors (#35246)
oliviertassinari Nov 24, 2022
114977a
[theme] Fix TypeScript type for custom variants in responsive font si…
ZeeshanTamboli Nov 25, 2022
2861715
[Chip] Add `skipFocusWhenDisabled` prop to not allow focussing deleta…
sai6855 Nov 25, 2022
6148c4d
Create SlotComponentProps type for Joy UI and use it for typing of Jo…
hbjORbj Nov 25, 2022
10fc03d
Improve API docs for slots prop
hbjORbj Nov 25, 2022
1cb391c
[FormControl] Add missing types in `useFormControl` (#35168)
ZeeshanTamboli Nov 25, 2022
91ad7e8
[docs] Add Black Friday notification
oliviertassinari Nov 25, 2022
20f7257
Run prettier
hbjORbj Nov 26, 2022
73889d0
[IconButton] Add missing color classes (#33820)
Zetta56 Nov 28, 2022
6811020
Bump @types/chai-dom to ^1.11.0 (#35272)
renovate[bot] Nov 28, 2022
d65a027
Bump typescript-eslint to ^5.44.0 (#35271)
renovate[bot] Nov 28, 2022
102f84c
Bump typescript to ^4.9.3 (#35270)
renovate[bot] Nov 28, 2022
3229c8d
Bump prettier to ^2.8.0 (#35269)
renovate[bot] Nov 28, 2022
7aa2976
Bump eslint to ^8.28.0 (#35268)
renovate[bot] Nov 28, 2022
1ae2be2
Bump aws-sdk to ^2.1262.0 (#35266)
renovate[bot] Nov 28, 2022
1c81838
Bump react-intersection-observer to ^9.4.1 (#35263)
renovate[bot] Nov 28, 2022
fef7a06
Bump jsdom to ^20.0.3 (#35262)
renovate[bot] Nov 28, 2022
f6b4f6a
Bump GitHub Actions (#35261)
renovate[bot] Nov 28, 2022
7b24ebc
Bump @types/lodash to ^4.14.190 (#35259)
renovate[bot] Nov 28, 2022
d91d0c9
Bump Playwright (#35265)
renovate[bot] Nov 28, 2022
5fe8592
[docs] Improve feedback precision (#34641)
alexfauquette Nov 28, 2022
86a3404
[Autocomplete] Fix inferred value type when `multiple` prop is `true`…
fenghan34 Nov 28, 2022
bd80ab3
Bump @types/react to v18.0.25 (#35273)
renovate[bot] Nov 28, 2022
b8aa397
[release] v5.10.16 (#35280)
mnajdova Nov 28, 2022
35c57de
[docs] Update MUI Base docs with latest style conventions (#35034)
samuelsycamore Nov 28, 2022
1ac8b21
[docs] Revise and expand the Joy UI "Badge" page (#35199)
samuelsycamore Nov 28, 2022
0c7a5cb
[test] Scope the tests to just Material UI components (#35219)
siriwatknp Nov 29, 2022
42de4f3
Merge branch 'master' of https://github.com/mui/material-ui into joy/…
siriwatknp Nov 29, 2022
5a30f27
add tests
siriwatknp Nov 29, 2022
98c630f
Fix types for Alert
siriwatknp Nov 29, 2022
a69a676
[Autocomplete] Fix types
hbjORbj Nov 29, 2022
1ff5c9b
Update prop types for Alert
hbjORbj Nov 29, 2022
157b3fd
[AspectRatio] Fix types and add spec test
hbjORbj Nov 29, 2022
3cdd8a9
[docs] Fix ad margin on API pages (#35201)
oliviertassinari Nov 29, 2022
3de1087
Remove RootSlotProps and Rename OtherSlotProps to SlotProps
hbjORbj Nov 29, 2022
cff7d46
[Autocomplete] Improve types and spec test
hbjORbj Nov 29, 2022
ba1d106
[Avatar] Fix types and add spec test
hbjORbj Nov 29, 2022
3238336
[Alert] Improve types
hbjORbj Nov 29, 2022
4c7d643
[AspectRatio] Improve types
hbjORbj Nov 29, 2022
f619d3d
[Badge] improve types
hbjORbj Nov 29, 2022
890bf19
[Breadcrumbs] Fix types and add spec test
hbjORbj Nov 29, 2022
61287ff
[Badge] Update prop types and add spec test
hbjORbj Nov 29, 2022
eae5f42
[Button] Fix types and add spec test
hbjORbj Nov 29, 2022
ea52b18
Fix types for all Joy UI components and add spec tests
hbjORbj Nov 29, 2022
e70bd45
Fix prop typs
hbjORbj Nov 29, 2022
6d34417
Fix useSlot test
hbjORbj Nov 29, 2022
9949df0
[docs] Improve the autogenerated "Unstyled" and "API" text (#35185)
samuelsycamore Nov 29, 2022
b8e30a4
[website] Remove BlackFriday notification
oliviertassinari Nov 29, 2022
778d508
Merge branch 'master' of https://github.com/mui/material-ui into joy/…
siriwatknp Nov 30, 2022
2c01680
revert Material UI changes
siriwatknp Nov 30, 2022
4a3b0e1
fix Tooltip
siriwatknp Nov 30, 2022
740485d
fix test
siriwatknp Nov 30, 2022
96e7f71
update Avatar
siriwatknp Nov 30, 2022
999f9fa
update Badge
siriwatknp Nov 30, 2022
e590744
update breadcrumbs
siriwatknp Nov 30, 2022
e4f5722
update components
siriwatknp Nov 30, 2022
8ebc521
fix slider props
siriwatknp Nov 30, 2022
3751f20
[docs] Fix experimental API page duplication (#35213)
oliviertassinari Nov 30, 2022
7a830f3
Craete codemod for Joy renaming components and componentsProps to slo…
hbjORbj Dec 1, 2022
1735232
[docs] Add Material You Button playground (#35222)
mnajdova Dec 1, 2022
d528976
[docs] Fix typo (#35312)
flaviendelangle Dec 1, 2022
60ea322
prettier
hbjORbj Dec 1, 2022
2abad79
[docs] Disable translations (#34820)
mnajdova Dec 1, 2022
89315f1
[docs] Fix wrong import in the unstyled tabs page (#35310)
guotie Dec 1, 2022
07d6b46
[Fab] Increase disabled styles precedence (#35304)
Uzwername Dec 1, 2022
2f7afc2
[Joy][Textarea] Expose decorator classes (#35247)
zignis Dec 1, 2022
1ea442d
[docs] Revise and expand Joy UI "Breadcrumbs" page (#35292)
samuelsycamore Dec 1, 2022
258ab9f
[core] Clean up the API docs generation scripts (#35244)
michaldudak Dec 2, 2022
ca15855
[core] Move the internal packages from docs/packages (#35305)
michaldudak Dec 2, 2022
63abbaa
[docs] Fix incorrect link in minimizing-bundle-size (#35297)
Juneezee Dec 2, 2022
19a0cf3
[website] Update MUI stats: GitHub stars, Twitter followers, etc. (#3…
nomandhoni-cs Dec 2, 2022
d87f019
[core] Fix warning leak in production (#35313)
oliviertassinari Dec 3, 2022
aa833ef
[I10n] Improve Chinese (Taiwan) zh-TW locale (#35328)
happyincent Dec 3, 2022
441b220
[core] Use componentStyles.name over componentName (#35303)
oliviertassinari Dec 3, 2022
90d6a3b
[docs] Move the demo higher in the API TOC (#35202)
oliviertassinari Dec 3, 2022
25e2e76
Fix codemod
hbjORbj Dec 4, 2022
c3b09f7
Improve codemod test
hbjORbj Dec 4, 2022
ef9722c
Run proptypes
hbjORbj Dec 4, 2022
e00a4d8
[Material UI] Add channel colors if possible (#35178)
siriwatknp Dec 5, 2022
f53ee69
Merge branch 'master' of https://github.com/mui/material-ui into joy/…
siriwatknp Dec 5, 2022
04728f7
fix duplicate
siriwatknp Dec 5, 2022
999ce39
[Joy] Miscellaneous fixes (#35345)
siriwatknp Dec 5, 2022
05203d7
Merge branch 'master' of https://github.com/mui/material-ui into joy/…
siriwatknp Dec 5, 2022
715d72d
add joy-rename-components-to-slots to readme
siriwatknp Dec 5, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
38 changes: 19 additions & 19 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ defaults: &defaults
AWS_REGION_ARTIFACTS: eu-central-1
working_directory: /tmp/material-ui
docker:
- image: cimg/node:14.20
- image: cimg/node:14.21

# CircleCI has disabled the cache across forks for security reasons.
# Following their official statement, it was a quick solution, they
Expand Down Expand Up @@ -72,7 +72,7 @@ commands:
- run:
name: Resolve react version
command: |
node scripts/use-react-version
node scripts/useReactVersion.mjs
# log a patch for maintainers who want to check out this change
git --no-pager diff HEAD
- restore_cache:
Expand Down Expand Up @@ -216,7 +216,7 @@ jobs:
- install_js
- run:
name: '`yarn prettier` changes committed?'
command: yarn prettier check-changed
command: yarn prettier --check
- run:
name: Generate PropTypes
command: yarn proptypes
Expand Down Expand Up @@ -286,7 +286,7 @@ jobs:

- run:
name: Any defect declaration files?
command: node scripts/testBuiltTypes.js
command: node scripts/testBuiltTypes.mjs
- save_cache:
name: Save generated declaration files
key: typescript-declaration-files-{{ .Branch }}-{{ .Revision }}
Expand All @@ -305,7 +305,7 @@ jobs:
environment:
TYPESCRIPT_DIST_TAG: next
command: |
node scripts/use-typescript-dist-tag
node scripts/useTypescriptDistTag.mjs
# log a patch for maintainers who want to check out this change
git --no-pager diff HEAD
- install_js
Expand Down Expand Up @@ -342,13 +342,13 @@ jobs:
# Fixing these takes some effort that isn't viable to merge in a single PR.
# We'll simply monitor them for now.
set +e
node scripts/testBuiltTypes.js
node scripts/testBuiltTypes.mjs
exit 0
test_browser:
<<: *defaults
resource_class: 'medium+'
docker:
- image: mcr.microsoft.com/playwright:v1.27.1-focal
- image: mcr.microsoft.com/playwright:v1.28.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
Expand Down Expand Up @@ -378,7 +378,7 @@ jobs:
test_e2e:
<<: *defaults
docker:
- image: mcr.microsoft.com/playwright:v1.27.1-focal
- image: mcr.microsoft.com/playwright:v1.28.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
Expand All @@ -397,7 +397,7 @@ jobs:
test_e2e_website:
<<: *defaults
docker:
- image: mcr.microsoft.com/playwright:v1.27.1-focal
- image: mcr.microsoft.com/playwright:v1.28.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
Expand All @@ -412,7 +412,7 @@ jobs:
test_profile:
<<: *defaults
docker:
- image: mcr.microsoft.com/playwright:v1.27.1-focal
- image: mcr.microsoft.com/playwright:v1.28.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
Expand All @@ -439,7 +439,7 @@ jobs:
test_regressions:
<<: *defaults
docker:
- image: mcr.microsoft.com/playwright:v1.27.1-focal
- image: mcr.microsoft.com/playwright:v1.28.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
Expand Down Expand Up @@ -493,7 +493,7 @@ jobs:
<<: *defaults
working_directory: /tmp/material-ui/test/bundling/fixtures/next-webpack4/
docker:
- image: mcr.microsoft.com/playwright:v1.27.1-focal
- image: mcr.microsoft.com/playwright:v1.28.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
Expand All @@ -517,7 +517,7 @@ jobs:
<<: *defaults
working_directory: /tmp/material-ui/test/bundling/fixtures/next-webpack5/
docker:
- image: mcr.microsoft.com/playwright:v1.27.1-focal
- image: mcr.microsoft.com/playwright:v1.28.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
Expand All @@ -541,7 +541,7 @@ jobs:
<<: *defaults
working_directory: /tmp/material-ui/test/bundling/fixtures/create-react-app/
docker:
- image: mcr.microsoft.com/playwright:v1.27.1-focal
- image: mcr.microsoft.com/playwright:v1.28.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
Expand All @@ -565,7 +565,7 @@ jobs:
<<: *defaults
working_directory: /tmp/material-ui/test/bundling/fixtures/snowpack/
docker:
- image: mcr.microsoft.com/playwright:v1.27.1-focal
- image: mcr.microsoft.com/playwright:v1.28.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
Expand All @@ -589,7 +589,7 @@ jobs:
<<: *defaults
working_directory: /tmp/material-ui/test/bundling/fixtures/vite/
docker:
- image: mcr.microsoft.com/playwright:v1.27.1-focal
- image: mcr.microsoft.com/playwright:v1.28.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
Expand All @@ -613,7 +613,7 @@ jobs:
<<: *defaults
working_directory: /tmp/material-ui/test/bundling/fixtures/esbuild/
docker:
- image: mcr.microsoft.com/playwright:v1.27.1-focal
- image: mcr.microsoft.com/playwright:v1.28.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
Expand Down Expand Up @@ -641,7 +641,7 @@ jobs:
<<: *defaults
working_directory: /tmp/material-ui/test/bundling/fixtures/gatsby/
docker:
- image: mcr.microsoft.com/playwright:v1.27.1-focal
- image: mcr.microsoft.com/playwright:v1.28.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
Expand Down Expand Up @@ -743,7 +743,7 @@ jobs:
test_benchmark:
<<: *defaults
docker:
- image: mcr.microsoft.com/playwright:v1.27.1-focal
- image: mcr.microsoft.com/playwright:v1.28.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
Expand Down
7 changes: 7 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,10 @@
.next
build
node_modules
.nyc_output

# These come from crowdin.
# If we would commit changes crowdin would immediately try to revert.
# If we want to format these files we'd need to do it in crowdin
docs/**/*-pt.md
docs/**/*-zh.md
22 changes: 20 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ module.exports = {
extends: [
'plugin:eslint-plugin-import/recommended',
'plugin:eslint-plugin-import/typescript',
'eslint-config-airbnb',
'eslint-config-airbnb-typescript',
'eslint-config-prettier',
],
Expand Down Expand Up @@ -160,8 +161,7 @@ module.exports = {
'react/state-in-constructor': 'off',
// stylistic opinion. For conditional assignment we want it outside, otherwise as static
'react/static-property-placement': 'off',
// Currently not in recommended ruleset but catches real bugs.
'react/no-unstable-nested-components': 'error',

'no-restricted-syntax': [
// See https://github.com/eslint/eslint/issues/9192 for why it's needed
...baseStyleRules['no-restricted-syntax'],
Expand All @@ -171,12 +171,23 @@ module.exports = {
selector: 'ImportDeclaration[source.value="react"] ImportDefaultSpecifier',
},
],

// We re-export default in many places, remove when https://github.com/airbnb/javascript/issues/2500 gets resolved
'no-restricted-exports': 'off',
// Some of these occurences are deliberate and fixing them will break things in repos that use @monorepo dependency
'import/no-relative-packages': 'off',
// Avoid accidental auto-"fixes" https://github.com/jsx-eslint/eslint-plugin-react/issues/3458
'react/no-invalid-html-attribute': 'off',

'react/jsx-no-useless-fragment': ['error', { allowExpressions: true }],
},
overrides: [
{
files: [
// matching the pattern of the test runner
'*.test.mjs',
'*.test.js',
'*.test.mjs',
'*.test.ts',
'*.test.tsx',
],
Expand Down Expand Up @@ -354,6 +365,7 @@ module.exports = {
'react/require-default-props': 'off',
'react/state-in-constructor': 'off',
'react/static-property-placement': 'off',
'react/function-component-definition': 'off',
},
},
{
Expand Down Expand Up @@ -407,5 +419,11 @@ module.exports = {
'import/extensions': ['error', 'ignorePackages'],
},
},
{
files: ['scripts/**/*.mjs'],
rules: {
'import/extensions': ['error', 'ignorePackages'],
},
},
],
};
52 changes: 52 additions & 0 deletions .github/ISSUE_TEMPLATE/4.docs-feedback.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Docs feedback
description: Improve documentation about MUI Core.
labels: ['status: needs triage', 'support: docs-feedback']
title: '[docs] '
body:
- type: markdown
attributes:
value: |
Please provide a searchable summary of the issue in the title above ⬆️.

Thanks for contributing by creating an issue! ❤️
- type: checkboxes
attributes:
label: Duplicates
description: Please [search the history](https://github.com/mui/material-ui/issues) to see if an issue already exists for the same problem.
options:
- label: I have searched the existing issues
required: true

- type: input
id: page-url
attributes:
label: Related page
description: Which page of the documentation is this about?
placeholder: https://mui.com/material-ui/react-badge/
validations:
required: true

- type: dropdown
attributes:
label: Kind of issue
description: What kind of problem are you facing?
options:
- Unclear explanations
- Missing information
- Broken demonstration
- Other
validations:
required: true

- type: textarea
attributes:
label: Issue description
description: |
Let us know what went wrong when you were using this documentation and what we could do to improve it.
value: |
I was looking for ... and it appears that ...

- type: textarea
attributes:
label: Context 🔦
description: What are you trying to accomplish? What brought you to this page? Your context can help us to come up with solutions that benefit the community as a whole.
2 changes: 1 addition & 1 deletion .github/codeql/codeql-config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CodeQL configuration

paths-ignore:
- 'packages/mui-icons-material/lib/esm/**'
- 'packages/mui-icons-material/lib/**'
2 changes: 1 addition & 1 deletion .github/workflows/check-if-pr-has-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
permissions:
contents: read
steps:
- uses: mnajdova/github-action-required-labels@ca0df9249827e43aa4b4a0d25d9fe3e9b19b0705 # tag=v2.1
- uses: mnajdova/github-action-required-labels@ca0df9249827e43aa4b4a0d25d9fe3e9b19b0705 # v2.1.0
with:
mode: minimum
count: 1
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/ci-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# This workflow is a workaround for ci.yml to bypass the github checks
#
# Ref: https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks
name: CI

on:
push:
branches-ignore:
- 'renovate/**'
pull_request:
paths:
- 'docs/**'
- 'examples/**'

permissions: {}

jobs:
test-dev:
if: ${{ github.actor != 'l10nbot' }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- run: 'echo "No build required"'
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
# We don't need to run CI twice (push+pull_request)
- 'renovate/**'
pull_request:
paths-ignore:
# should sync with ci-check.yml as a workaround to bypass github checks
- 'docs/**'
- 'examples/**'

permissions: {}

Expand All @@ -21,12 +25,12 @@ jobs:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- run: echo "${{ github.actor }}"
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
with:
# fetch all tags which are required for `yarn release:changelog`
fetch-depth: 0
- name: Use Node.js 14.x
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
with:
node-version: 14
cache: 'yarn' # https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-dependencies
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@ec3cf9c605b848da5f1e41e8452719eb1ccfb9a6 # tag=v2
uses: github/codeql-action/init@312e093a1892bd801f026f1090904ee8e460b9b6 # v2.1.34
with:
languages: typescript
config-file: ./.github/codeql/codeql-config.yml
Expand All @@ -30,4 +30,4 @@ jobs:
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@ec3cf9c605b848da5f1e41e8452719eb1ccfb9a6 # tag=v2
uses: github/codeql-action/analyze@312e093a1892bd801f026f1090904ee8e460b9b6 # v2.1.34
Loading