@etsoo/materialui 1.1.16 → 1.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/OptionGroup.js +7 -3
- package/lib/pages/UserMenu.d.ts +6 -0
- package/package.json +1 -1
- package/src/OptionGroup.tsx +7 -3
- package/src/pages/UserMenu.tsx +7 -0
package/lib/OptionGroup.js
CHANGED
|
@@ -94,11 +94,15 @@ export function OptionGroup(props) {
|
|
|
94
94
|
return (React.createElement(React.Fragment, null,
|
|
95
95
|
React.createElement(FormControl, { component: "fieldset", fullWidth: fullWidth, ...rest },
|
|
96
96
|
label && (React.createElement(InputLabel, { required: required, variant: variant, shrink: true }, label)),
|
|
97
|
-
variant === "outlined" && (React.createElement(NotchedOutline, { label: label && required ? label + " *" : label, notched: true,
|
|
97
|
+
variant === "outlined" && (React.createElement(NotchedOutline, { label: label && required ? label + " *" : label, notched: true, sx: {
|
|
98
|
+
cursor: "default",
|
|
98
99
|
position: "absolute",
|
|
99
100
|
borderRadius: theme.shape.borderRadius,
|
|
100
|
-
width: fullWidth ? "100%" : "auto"
|
|
101
|
+
width: fullWidth ? "100%" : "auto",
|
|
102
|
+
"& input": {
|
|
103
|
+
visibility: "hidden"
|
|
104
|
+
}
|
|
101
105
|
} })),
|
|
102
|
-
React.createElement(Box, { paddingLeft: 2, paddingY: "7px" }, group)),
|
|
106
|
+
React.createElement(Box, { paddingLeft: 2, paddingY: "7px", position: "absolute" }, group)),
|
|
103
107
|
helperText && React.createElement(FormHelperText, null, helperText)));
|
|
104
108
|
}
|
package/lib/pages/UserMenu.d.ts
CHANGED
|
@@ -21,6 +21,12 @@ export interface UserMenuProps {
|
|
|
21
21
|
*/
|
|
22
22
|
children(handleMenuClose: () => void): React.ReactNode;
|
|
23
23
|
}
|
|
24
|
+
export interface UserMenuLocalProps extends Omit<UserMenuProps, "children"> {
|
|
25
|
+
/**
|
|
26
|
+
* Current screen size is down sm
|
|
27
|
+
*/
|
|
28
|
+
smDown: boolean;
|
|
29
|
+
}
|
|
24
30
|
/**
|
|
25
31
|
* User menu
|
|
26
32
|
* @param props Props
|
package/package.json
CHANGED
package/src/OptionGroup.tsx
CHANGED
|
@@ -286,14 +286,18 @@ export function OptionGroup<
|
|
|
286
286
|
<NotchedOutline
|
|
287
287
|
label={label && required ? label + " *" : label}
|
|
288
288
|
notched
|
|
289
|
-
|
|
289
|
+
sx={{
|
|
290
|
+
cursor: "default",
|
|
290
291
|
position: "absolute",
|
|
291
292
|
borderRadius: theme.shape.borderRadius,
|
|
292
|
-
width: fullWidth ? "100%" : "auto"
|
|
293
|
+
width: fullWidth ? "100%" : "auto",
|
|
294
|
+
"& input": {
|
|
295
|
+
visibility: "hidden"
|
|
296
|
+
}
|
|
293
297
|
}}
|
|
294
298
|
/>
|
|
295
299
|
)}
|
|
296
|
-
<Box paddingLeft={2} paddingY="7px">
|
|
300
|
+
<Box paddingLeft={2} paddingY="7px" position="absolute">
|
|
297
301
|
{group}
|
|
298
302
|
</Box>
|
|
299
303
|
</FormControl>
|
package/src/pages/UserMenu.tsx
CHANGED
|
@@ -28,6 +28,13 @@ export interface UserMenuProps {
|
|
|
28
28
|
children(handleMenuClose: () => void): React.ReactNode;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
export interface UserMenuLocalProps extends Omit<UserMenuProps, "children"> {
|
|
32
|
+
/**
|
|
33
|
+
* Current screen size is down sm
|
|
34
|
+
*/
|
|
35
|
+
smDown: boolean;
|
|
36
|
+
}
|
|
37
|
+
|
|
31
38
|
/**
|
|
32
39
|
* User menu
|
|
33
40
|
* @param props Props
|