Skip to content

Commit 6d8c00d

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

File tree

7 files changed

+45
-2
lines changed

7 files changed

+45
-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/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: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,24 @@ type props = {
110110
borderRadius?: Value.t,
111111
borderRight?: Value.t,
112112
borderTop?: Value.t,
113+
borderTopLeftRadius?: Value.t,
114+
borderTopWidth?: Value.t,
115+
borderTopStyle?: Value.t,
116+
borderTopColor?: Value.t,
117+
borderTopRightRadius?: Value.t,
118+
borderRightWidth?: Value.t,
119+
borderRightStyle?: Value.t,
120+
borderRightColor?: Value.t,
121+
borderBottomRightRadius?: Value.t,
122+
borderBottomWidth?: Value.t,
123+
borderBottomStyle?: Value.t,
124+
borderBottomColor?: Value.t,
125+
borderBottomLeftRadius?: Value.t,
126+
borderLeftWidth?: Value.t,
127+
borderLeftStyle?: Value.t,
128+
borderLeftColor?: Value.t,
129+
borderStyle?: Value.t,
130+
borderWidth?: Value.t,
113131
boxShadow?: Value.t,
114132
displayPrint?: Value.t,
115133
display?: Value.t,
@@ -198,5 +216,19 @@ type props = {
198216
letterSpacing?: Value.t,
199217
lineHeight?: Value.t,
200218
textAlign?: Value.t,
219+
textDecoration?: Value.t,
220+
textOverflow?: Value.t,
221+
textTransform?: Value.t,
201222
overflow?: Value.t,
223+
overflowX?: Value.t,
224+
overflowY?: Value.t,
225+
opacity?: Value.t,
226+
transform?: Value.t,
227+
whiteSpace?: Value.t,
228+
cursor?: Value.t,
229+
outline?: Value.t,
230+
userSelect?: Value.t,
231+
visibility?: Value.t,
232+
pointerEvents?: Value.t,
233+
wordBreak?: Value.t,
202234
}

0 commit comments

Comments
 (0)