@gridsuite/commons-ui 0.104.0 → 0.104.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.
@@ -19,11 +19,9 @@ export interface TextInputProps {
19
19
  clearable?: boolean;
20
20
  formProps?: Omit<TextFieldWithAdornmentProps | TextFieldProps, 'value' | 'onChange' | 'inputRef' | 'inputProps' | 'InputProps'>;
21
21
  disabledTooltip?: boolean;
22
- disabled?: boolean;
23
22
  }
24
23
  export declare function TextInput({ name, label, labelValues, // this prop is used to add a value to label. this value is displayed without being translated
25
24
  id, adornment, customAdornment, outputTransform, // transform materialUi input value before sending it to react hook form, mostly used to deal with number fields
26
25
  inputTransform, // transform react hook form value before sending it to materialUi input, mostly used to deal with number fields
27
26
  acceptValue, // used to check user entry before committing the input change, used mostly to prevent user from typing a character in number field
28
- previousValue, clearable, formProps, disabledTooltip, // In case we don't want to show tooltip on the value and warning/info icons
29
- disabled, }: TextInputProps): import("react/jsx-runtime").JSX.Element;
27
+ previousValue, clearable, formProps, disabledTooltip, }: TextInputProps): import("react/jsx-runtime").JSX.Element;
@@ -24,9 +24,8 @@ function TextInput({
24
24
  previousValue,
25
25
  clearable,
26
26
  formProps,
27
- disabledTooltip,
27
+ disabledTooltip
28
28
  // In case we don't want to show tooltip on the value and warning/info icons
29
- disabled
30
29
  }) {
31
30
  const { validationSchema, getValues, removeOptional, isNodeBuilt, isUpdate } = useCustomFormContext();
32
31
  const {
@@ -82,8 +81,7 @@ function TextInput({
82
81
  ),
83
82
  ...genHelperError(error == null ? void 0 : error.message),
84
83
  ...formProps,
85
- ...adornment && { ...finalAdornment },
86
- disabled
84
+ ...adornment && { ...finalAdornment }
87
85
  },
88
86
  id ?? label
89
87
  );
@@ -34,7 +34,8 @@ const styles = {
34
34
  height: "100%",
35
35
  display: "flex",
36
36
  position: "relative",
37
- flexDirection: "column"
37
+ flexDirection: "column",
38
+ maxHeight: "calc(100% - 5vh)"
38
39
  },
39
40
  loadflowParameters: {
40
41
  flexGrow: 1,
@@ -47,7 +48,6 @@ const styles = {
47
48
  content: (theme) => ({
48
49
  overflowY: "auto",
49
50
  overflowX: "hidden",
50
- maxHeight: "calc(100% - 15vh)",
51
51
  paddingRight: theme.spacing(2),
52
52
  paddingTop: theme.spacing(2),
53
53
  paddingBottom: theme.spacing(1),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.104.0",
3
+ "version": "0.104.2",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "author": "gridsuite team",
6
6
  "homepage": "https://github.com/gridsuite",