Skip to content

Commit 0924c87

Browse files
Adds a few missing props for v5
Fixes #238
1 parent c62908d commit 0924c87

File tree

8 files changed

+25
-2
lines changed

8 files changed

+25
-2
lines changed

packages/rescript-mui-material/src/components/Box.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
type props = {
22
...System.props,
3+
...CommonProps.clickablePropsWithOnClick,
34
children?: React.element,
45
/**
56
* The component used for the root node.

packages/rescript-mui-material/src/components/FilledInput.res

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ type props<'value, 'inputRef> = {
6161
* The system prop that allows defining system overrides as well as additional CSS styles.
6262
*/
6363
sx?: Sx.props,
64+
/**
65+
* If `true`, the input will not have an underline.
66+
*/
67+
disableUnderline?: bool,
6468
}
6569

6670
@module("@mui/material/FilledInput")

packages/rescript-mui-material/src/components/Link.res

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ type rel =
3434
| @as("tag") Tag
3535

3636
type props = {
37+
...CommonProps.clickablePropsWithOnClick,
3738
...Typography.publicProps,
3839
/**
3940
* The content of the component.
@@ -57,11 +58,14 @@ type props = {
5758
* @default 'always'
5859
*/
5960
underline?: underline,
61+
/**
62+
* Indicates that the link should be downloaded rather than navigated.
63+
*/
64+
download?: string,
6065
// HTML anchor attributes
6166
href?: string,
6267
target?: string,
6368
rel?: rel,
64-
onClick?: ReactEvent.Mouse.t => unit,
6569
}
6670

6771
@module("@mui/material/Link")

packages/rescript-mui-material/src/components/ListSubheader.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ type color =
2020
| @as("primary") Primary
2121

2222
type props = {
23+
...CommonProps.t,
2324
/**
2425
* The content of the component.
2526
*/

packages/rescript-mui-material/src/components/Tab.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type iconPosition =
2828
| @as("end") End
2929

3030
type props<'value> = {
31-
...CommonProps.t,
31+
...ButtonBase.publicProps,
3232
/**
3333
* Override or extend the styles applied to the component.
3434
*/

packages/rescript-mui-material/src/components/TextField.res

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ type props<'value, 'inputRef> = {
5555
* @default false
5656
*/
5757
error?: bool,
58+
/**
59+
* If `true`, the underline is disabled for Filled.
60+
*/
61+
disableUnderline?: bool,
5862
/**
5963
* Props applied to the [`FormHelperText`](/material-ui/api/form-helper-text/) element.
6064
*/

packages/rescript-mui-material/src/components/Typography.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ type publicProps = {
143143

144144
type props = {
145145
...publicProps,
146+
...CommonProps.clickablePropsWithOnClick,
146147
/**
147148
* The content of the component.
148149
*/

packages/rescript-mui-material/src/types/System.res

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,4 +199,12 @@ type props = {
199199
lineHeight?: Value.t,
200200
textAlign?: Value.t,
201201
overflow?: Value.t,
202+
overflowX?: Value.t,
203+
overflowY?: Value.t,
204+
opacity?: Value.t,
205+
textDecoration?: Value.t,
206+
transform?: Value.t,
207+
whiteSpace?: Value.t,
208+
cursor?: Value.t,
209+
outline?: Value.t,
202210
}

0 commit comments

Comments
 (0)