@m4l/layouts 9.3.11 → 9.3.12-JT290825.beta.1
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.
|
@@ -152,7 +152,7 @@ export declare function useModuleDetailTabs<T extends Record<string, any> = Reco
|
|
|
152
152
|
onBlurCapture?: import('react').FocusEventHandler<HTMLDivElement> | undefined;
|
|
153
153
|
onChange?: import('react').FormEventHandler<HTMLDivElement> | undefined;
|
|
154
154
|
onChangeCapture?: import('react').FormEventHandler<HTMLDivElement> | undefined;
|
|
155
|
-
onBeforeInput?: import('react').
|
|
155
|
+
onBeforeInput?: import('react').FormEventHandler<HTMLDivElement> | undefined;
|
|
156
156
|
onBeforeInputCapture?: import('react').FormEventHandler<HTMLDivElement> | undefined;
|
|
157
157
|
onInput?: import('react').FormEventHandler<HTMLDivElement> | undefined;
|
|
158
158
|
onInputCapture?: import('react').FormEventHandler<HTMLDivElement> | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PropertyValueProps, RHFTextFieldProps } from '@m4l/components';
|
|
2
|
-
interface PropertyValueFieldBase extends Pick<PropertyValueProps, 'semanticWidth'> {
|
|
1
|
+
import { PropertyValueProps, RHFTextFieldProps, PaperFormProps } from '@m4l/components';
|
|
2
|
+
interface PropertyValueFieldBase extends Pick<PropertyValueProps, 'semanticWidth' | 'valueHeight'> {
|
|
3
3
|
name: string;
|
|
4
4
|
type: 'RHFTextField' | 'component';
|
|
5
5
|
label?: string;
|
|
@@ -23,5 +23,7 @@ export type UseDynamicPaperFormProps = {
|
|
|
23
23
|
title: string;
|
|
24
24
|
urlIcon: string;
|
|
25
25
|
isForm: boolean;
|
|
26
|
+
height?: PaperFormProps['height'];
|
|
27
|
+
variant?: PaperFormProps['variant'];
|
|
26
28
|
};
|
|
27
29
|
export {};
|
|
@@ -6,13 +6,15 @@ function createComponentField(params) {
|
|
|
6
6
|
}
|
|
7
7
|
function useDynamicPaperForm(props) {
|
|
8
8
|
const { getLabel } = useModuleDictionary();
|
|
9
|
-
const { fields, title, urlIcon, isForm } = props;
|
|
9
|
+
const { fields, title, urlIcon, isForm, height, variant } = props;
|
|
10
10
|
return /* @__PURE__ */ jsx(
|
|
11
11
|
PaperForm,
|
|
12
12
|
{
|
|
13
13
|
urlIcon,
|
|
14
14
|
title,
|
|
15
15
|
isForm,
|
|
16
|
+
height,
|
|
17
|
+
variant,
|
|
16
18
|
children: fields.map((field) => {
|
|
17
19
|
let component;
|
|
18
20
|
if (field.type === "RHFTextField") {
|
|
@@ -44,7 +46,8 @@ function useDynamicPaperForm(props) {
|
|
|
44
46
|
helperMessage: field.helperMessage,
|
|
45
47
|
value: component,
|
|
46
48
|
dataTestId: field.name,
|
|
47
|
-
semanticWidth: field?.semanticWidth || "fullWidth"
|
|
49
|
+
semanticWidth: field?.semanticWidth || "fullWidth",
|
|
50
|
+
valueHeight: field?.valueHeight || "auto"
|
|
48
51
|
},
|
|
49
52
|
field.name
|
|
50
53
|
);
|