@vertigis/react-ui 11.3.0 → 11.3.2
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/FormControl/FormControl.js +2 -2
- package/package.json +1 -1
- package/styles/createTheme.js +16 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import MUIFormControl, { formControlClasses as muiFormControlClasses, } from "@mui/material/FormControl";
|
|
3
|
-
import InlineHelp from "@vertigis/react-ui/InlineHelp/index.js";
|
|
4
|
-
import { styled, mergeStyles } from "@vertigis/react-ui/styles";
|
|
5
3
|
import { forwardRef } from "react";
|
|
4
|
+
import InlineHelp from "../InlineHelp/index.js";
|
|
5
|
+
import { styled, mergeStyles } from "../styles/index.js";
|
|
6
6
|
// MUST be the first export, since some of the exports are overridden below.
|
|
7
7
|
export * from "@mui/material/FormControl";
|
|
8
8
|
const PREFIX = "GcxFormControl";
|
package/package.json
CHANGED
package/styles/createTheme.js
CHANGED
|
@@ -144,6 +144,19 @@ function getOverrides(theme) {
|
|
|
144
144
|
const { palette, shape, spacing, transitions, typography } = theme;
|
|
145
145
|
return {
|
|
146
146
|
components: {
|
|
147
|
+
MuiAutocomplete: {
|
|
148
|
+
styleOverrides: {
|
|
149
|
+
root: {
|
|
150
|
+
[".MuiInput-root"]: {
|
|
151
|
+
[".MuiInput-input"]: {
|
|
152
|
+
// Let the height expand to fit content
|
|
153
|
+
height: "auto",
|
|
154
|
+
padding: "5px 8px",
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
},
|
|
147
160
|
MuiBackdrop: {
|
|
148
161
|
styleOverrides: {
|
|
149
162
|
root: {
|
|
@@ -817,6 +830,9 @@ function getOverrides(theme) {
|
|
|
817
830
|
},
|
|
818
831
|
},
|
|
819
832
|
},
|
|
833
|
+
MuiTextField: {
|
|
834
|
+
defaultProps: { variant: "standard" },
|
|
835
|
+
},
|
|
820
836
|
MuiTimePicker: {
|
|
821
837
|
defaultProps: {
|
|
822
838
|
OpenPickerButtonProps: { size: "small" },
|