Skip to content

Commit 53d6809

Browse files
Merge pull request #193 from cca-io/version-5
Align version numbers with current MUI package versions
2 parents b2d45a7 + d8cfd1d commit 53d6809

File tree

5 files changed

+248
-10
lines changed

5 files changed

+248
-10
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ title: Changelog
1414
(_Tags are copied from
1515
[babel](https://github.com/babel/babel/blob/master/CHANGELOG.md)_)
1616

17-
## master
17+
## 5.0.0-alpha.1
1818

1919
- :boom: Complete rewrite to adapt to MUI v5 (in progress).
2020
- :boom: Release rescript-mui packages under a new npm organization (`@rescript-mui`).

packages/rescript-mui-lab/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rescript-mui/lab",
3-
"version": "4.0.0",
3+
"version": "5.0.0-alpha.1",
44
"description": "This library provides ReScript bindings for material-ui-lab.",
55
"keywords": [
66
"rescript",
@@ -27,10 +27,10 @@
2727
"/bsconfig.json"
2828
],
2929
"peerDependencies": {
30-
"@mui/lab": "^5.0.0-alpha.128",
31-
"@mui/material": "5.12.2",
30+
"@mui/lab": "^5.0.0-alpha.134",
31+
"@mui/material": "^5.13.5",
3232
"@rescript/react": "^0.12.0-alpha.2",
3333
"rescript": "^11.0.0-beta.1",
34-
"@rescript-mui/material": "4.0.0"
34+
"@rescript-mui/material": "^5.0.0"
3535
}
3636
}
+238
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,238 @@
1+
# ReScript Bindings for MUI (WIP!)
2+
3+
## Installation
4+
5+
1. Install all necessary packages according to the official MUI-Material installation guide: https://mui.com/material-ui/getting-started/installation/.
6+
2. Install `@rescript-mui/material`
7+
8+
```sh
9+
npm install @rescript-mui/material
10+
```
11+
12+
This library provides [ReScript](https://rescript-lang.org/) bindings for [MUI](https://mui.com/).
13+
14+
These bindings will only work with ReScript 11 (uncurried mode) and JSX version 4, as it enables us to utilize [untagged variants](https://rescript-lang.org/blog/improving-interop#untagged-variants), optional record fields, and record props spread. The latter is especially important, as we are finally able to inherit props from one component to another more easily.
15+
16+
## What happened to the bindings for Material-UI 4?
17+
18+
They are still available, check out the old website: https://rescript-material-ui.cca.io/.
19+
20+
## Why no new website?
21+
22+
1. One of the goals of this rewrite is to make the usage of MUI in ReScript more accessible. In the best case you never need to leave your editor, since now we have doc comments for (almost) every property.
23+
2. It just takes too much time to maintain.
24+
3. In our opinion, it is much more useful (albeit not as pretty) to just have a look at the [examples folder](./examples/).
25+
26+
## What's inside?
27+
28+
| MUI package | ReScript bindings package | Namespace | Progress |
29+
| ------------------- | ---------------------------- | ---------------- | -------: |
30+
| @mui/material | @rescript-mui/material | Mui | 80 % |
31+
| @mui/lab | @rescript-mui/lab | MuiLab | 0 % |
32+
| @mui/x-date-pickers | @rescript-mui/x-date-pickers | MuiXDatePickers | 0 % |
33+
| @mui/base | Not implemented! | MuiBase (?) | - |
34+
| @mui/joy | Not implemented! | Joy (?) | - |
35+
| @mui/system | Not implemented! | MuiSystem (?) | - |
36+
| @mui/x-data-grid | Not implemented! | MuiXDataGrid (?) | - |
37+
38+
NOTE: "@mui/styles" will never be implemented, as it is the legacy styling solution which is not compatible with `React.StrictMode` or React 18.
39+
40+
## Progress
41+
42+
### MUI-Material
43+
44+
#### Components
45+
46+
- [x] Accordion
47+
- [x] AccordionActions
48+
- [x] AccordionDetails
49+
- [x] AccordionSummary
50+
- [ ] Alert
51+
- [ ] AlertTitle
52+
- [ ] AppBar
53+
- [x] Autocomplete
54+
- [ ] Avatar
55+
- [ ] AvatarGroup
56+
- [x] Backdrop
57+
- [x] Badge
58+
- [ ] BottomNavigation
59+
- [ ] BottomNavigationAction
60+
- [x] Box
61+
- [ ] Breadcrumbs
62+
- [x] Button
63+
- [x] ButtonBase
64+
- [x] ButtonGroup
65+
- [ ] Card
66+
- [ ] CardActionArea
67+
- [ ] CardActions
68+
- [ ] CardContent
69+
- [ ] CardHeader
70+
- [ ] CardMedia
71+
- [x] Checkbox
72+
- [x] Chip
73+
- [x] CircularProgress
74+
- [ ] Collapse
75+
- [ ] Container
76+
- [x] CssBaseline
77+
- [x] Dialog
78+
- [x] DialogActions
79+
- [x] DialogContent
80+
- [x] DialogContentText
81+
- [x] DialogTitle
82+
- [x] Divider
83+
- [x] Drawer
84+
- [x] Fab
85+
- [x] Fade
86+
- [x] FilledInput
87+
- [x] FormControl
88+
- [x] FormControlLabel
89+
- [x] FormGroup
90+
- [x] FormHelperText
91+
- [x] FormLabel
92+
- [x] GlobalStyles
93+
- [x] Grid
94+
- [ ] Grow
95+
- [ ] Hidden
96+
- [x] Icon
97+
- [x] IconButton
98+
- [ ] ImageList
99+
- [ ] ImageListItem
100+
- [ ] ImageListItemBar
101+
- [x] Input
102+
- [x] InputAdornment
103+
- [x] InputBase
104+
- [x] InputLabel
105+
- [x] LinearProgress
106+
- [x] Link
107+
- [x] List
108+
- [x] ListItem
109+
- [x] ListItemAvatar
110+
- [x] ListItemButton
111+
- [x] ListItemIcon
112+
- [x] ListItemSecondaryAction
113+
- [x] ListItemText
114+
- [x] ListSubheader
115+
- [x] Menu
116+
- [x] MenuItem
117+
- [x] MenuList
118+
- [ ] MobileStepper
119+
- [x] Modal
120+
- [ ] NativeSelect
121+
- [x] OutlinedInput
122+
- [x] Pagination
123+
- [ ] PaginationItem
124+
- [x] Paper
125+
- [x] Popover
126+
- [x] Popper
127+
- [x] Radio
128+
- [x] RadioGroup
129+
- [x] Rating
130+
- [x] ScopedCssBaseline
131+
- [x] Select
132+
- [x] Skeleton
133+
- [x] Slide
134+
- [x] Slider
135+
- [ ] Snackbar
136+
- [ ] SnackbarContent
137+
- [ ] SpeedDial
138+
- [x] SpeedDialAction
139+
- [x] SpeedDialIcon
140+
- [x] Stack
141+
- [x] Step
142+
- [x] StepButton
143+
- [x] StepConnector
144+
- [x] StepContent
145+
- [x] StepIcon
146+
- [x] StepLabel
147+
- [x] Stepper
148+
- [x] StyledEngineProvider
149+
- [x] SvgIcon
150+
- [x] Switch
151+
- [x] Tab
152+
- [x] Table
153+
- [x] TableBody
154+
- [x] TableCell
155+
- [x] TableContainer
156+
- [x] TableFooter
157+
- [x] TableHead
158+
- [x] TablePagination
159+
- [x] TableRow
160+
- [x] TableSortLabel
161+
- [x] Tabs
162+
- [x] TabScrollButton
163+
- [x] TextField
164+
- [x] ToggleButton
165+
- [x] ToggleButtonGroup
166+
- [x] Toolbar
167+
- [x] Tooltip
168+
- [x] Typography
169+
- [x] Zoom
170+
171+
#### Theming
172+
173+
- [x] Theme
174+
- [x] ThemeHelpers
175+
- [x] ThemeOptions
176+
- [x] ThemeProvider
177+
178+
### MUI-LAB
179+
180+
- [ ] LoadingButton
181+
- [ ] Masonry
182+
- [ ] TabContext
183+
- [ ] TabList
184+
- [ ] TabPanel
185+
- [ ] Timeline
186+
- [ ] TimelineConnector
187+
- [ ] TimelineContent
188+
- [ ] TimelineDot
189+
- [ ] TimelineItem
190+
- [ ] TimelineOppositeContent
191+
- [ ] TimelineSeparator
192+
- [ ] TreeItem
193+
- [ ] TreeView
194+
195+
### MUI-X Date Pickers
196+
197+
- [ ] AdapterDateFns
198+
- [ ] AdapterDateFnsJalali
199+
- [ ] AdapterDayjs
200+
- [ ] AdapterLuxon
201+
- [ ] AdapterMoment
202+
- [ ] AdapterMomentHijri
203+
- [ ] AdapterMomentJalaali
204+
- [ ] DateCalendar
205+
- [ ] DateField
206+
- [ ] DatePicker
207+
- [ ] DateTimeField
208+
- [ ] DateTimePicker
209+
- [ ] DayCalendarSkeleton
210+
- [ ] DesktopDatePicker
211+
- [ ] DesktopDateTimePicker
212+
- [ ] DesktopTimePicker
213+
- [ ] DigitalClock
214+
- [ ] LocalizationProvider
215+
- [ ] MobileDatePicker
216+
- [ ] MobileDateTimePicker
217+
- [ ] MobileTimePicker
218+
- [ ] MonthCalendar
219+
- [ ] MultiSectionDigitalClock
220+
- [ ] PickersActionBar
221+
- [ ] PickersDay
222+
- [ ] PickersLayout
223+
- [ ] PickersShortcuts
224+
- [ ] StaticDatePicker
225+
- [ ] StaticDateTimePicker
226+
- [ ] StaticTimePicker
227+
- [ ] TimeClock
228+
- [ ] TimeField
229+
- [ ] TimePicker
230+
- [ ] YearCalendar
231+
232+
## Changelog
233+
234+
See [CHANGELOG](./CHANGELOG.md).
235+
236+
## Contributing
237+
238+
See [CONTRIBUTING](./CONTRIBUTING.md).

packages/rescript-mui-material/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rescript-mui/material",
3-
"version": "4.0.0",
3+
"version": "5.0.0-alpha.1",
44
"description": "This library provides ReScript bindings for material-ui (MUI).",
55
"keywords": [
66
"rescript",
@@ -22,7 +22,7 @@
2222
"/bsconfig.json"
2323
],
2424
"peerDependencies": {
25-
"@mui/material": "5.12.2",
25+
"@mui/material": "^5.13.5",
2626
"@rescript/react": "^0.12.0-alpha.2",
2727
"react": "^18.0.0",
2828
"react-dom": "^18.0.0",

packages/rescript-mui-x-date-pickers/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rescript-mui/x-date-pickers",
3-
"version": "1.0.0",
3+
"version": "6.0.0.alpha-1",
44
"description": "This library provides ReScript bindings for the MUI-X date and time pickers.",
55
"keywords": [
66
"rescript",
@@ -23,8 +23,8 @@
2323
"/bsconfig.json"
2424
],
2525
"peerDependencies": {
26-
"@mui/material": "5.12.2",
27-
"@mui/x-date-pickers" : "6.6.0",
26+
"@mui/material": "^5.13.5",
27+
"@mui/x-date-pickers" : "^6.6.0",
2828
"@rescript/react": "^0.12.0-alpha.2",
2929
"react": "^18.0.0",
3030
"react-dom": "^18.0.0",

0 commit comments

Comments
 (0)