@m4l/layouts 9.3.9 → 9.3.10

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.
@@ -20,120 +20,120 @@ export declare function useModuleDetailTabs<T extends Record<string, any> = Reco
20
20
  size?: Extract<import('@m4l/styles').Sizes, "small" | "medium"> | undefined;
21
21
  children?: null | undefined;
22
22
  ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
23
- title?: string | undefined;
23
+ title?: string | undefined | undefined;
24
24
  component?: React.ElementType | undefined;
25
- id?: string | undefined;
25
+ id?: string | undefined | undefined;
26
26
  disabled?: boolean | undefined;
27
27
  action?: React.Ref<import('@mui/material').ButtonBaseActions> | undefined;
28
- hidden?: boolean | undefined;
28
+ hidden?: boolean | undefined | undefined;
29
29
  color?: Extract<import('@m4l/styles').ComponentPalletColor, "default"> | undefined;
30
- content?: string | undefined;
30
+ content?: string | undefined | undefined;
31
31
  style?: React.CSSProperties | undefined;
32
- translate?: "yes" | "no" | undefined;
32
+ translate?: "yes" | "no" | undefined | undefined;
33
33
  urlIcon?: string | undefined;
34
- lang?: string | undefined;
35
- slot?: string | undefined;
36
- dir?: string | undefined;
34
+ lang?: string | undefined | undefined;
35
+ slot?: string | undefined | undefined;
36
+ dir?: string | undefined | undefined;
37
37
  className?: string | undefined;
38
38
  classes?: (Partial<import('@mui/material').TabClasses> & Partial<import('@mui/material').ClassNameMap<never>>) | undefined;
39
39
  sx?: import('@mui/system').SxProps<import('@mui/material').Theme> | undefined;
40
40
  key?: import('react').Key | null | undefined;
41
- defaultChecked?: boolean | undefined;
41
+ defaultChecked?: boolean | undefined | undefined;
42
42
  defaultValue?: string | number | readonly string[] | undefined;
43
- suppressContentEditableWarning?: boolean | undefined;
44
- suppressHydrationWarning?: boolean | undefined;
45
- accessKey?: string | undefined;
46
- autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
47
- autoFocus?: boolean | undefined;
48
- contentEditable?: (boolean | "false" | "true") | "inherit" | "plaintext-only" | undefined;
49
- contextMenu?: string | undefined;
43
+ suppressContentEditableWarning?: boolean | undefined | undefined;
44
+ suppressHydrationWarning?: boolean | undefined | undefined;
45
+ accessKey?: string | undefined | undefined;
46
+ autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
47
+ autoFocus?: boolean | undefined | undefined;
48
+ contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
49
+ contextMenu?: string | undefined | undefined;
50
50
  draggable?: (boolean | "false" | "true") | undefined;
51
- enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
52
- nonce?: string | undefined;
51
+ enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
52
+ nonce?: string | undefined | undefined;
53
53
  spellCheck?: (boolean | "false" | "true") | undefined;
54
54
  tabIndex?: NonNullable<React.HTMLAttributes<any>["tabIndex"]> | undefined;
55
- radioGroup?: string | undefined;
55
+ radioGroup?: string | undefined | undefined;
56
56
  role?: import('react').AriaRole | undefined;
57
- about?: string | undefined;
58
- datatype?: string | undefined;
57
+ about?: string | undefined | undefined;
58
+ datatype?: string | undefined | undefined;
59
59
  inlist?: any;
60
- prefix?: string | undefined;
61
- property?: string | undefined;
62
- rel?: string | undefined;
63
- resource?: string | undefined;
64
- rev?: string | undefined;
65
- typeof?: string | undefined;
66
- vocab?: string | undefined;
67
- autoCorrect?: string | undefined;
68
- autoSave?: string | undefined;
69
- itemProp?: string | undefined;
70
- itemScope?: boolean | undefined;
71
- itemType?: string | undefined;
72
- itemID?: string | undefined;
73
- itemRef?: string | undefined;
74
- results?: number | undefined;
75
- security?: string | undefined;
76
- unselectable?: "on" | "off" | undefined;
77
- inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
78
- is?: string | undefined;
79
- exportparts?: string | undefined;
80
- part?: string | undefined;
81
- "aria-activedescendant"?: string | undefined;
60
+ prefix?: string | undefined | undefined;
61
+ property?: string | undefined | undefined;
62
+ rel?: string | undefined | undefined;
63
+ resource?: string | undefined | undefined;
64
+ rev?: string | undefined | undefined;
65
+ typeof?: string | undefined | undefined;
66
+ vocab?: string | undefined | undefined;
67
+ autoCorrect?: string | undefined | undefined;
68
+ autoSave?: string | undefined | undefined;
69
+ itemProp?: string | undefined | undefined;
70
+ itemScope?: boolean | undefined | undefined;
71
+ itemType?: string | undefined | undefined;
72
+ itemID?: string | undefined | undefined;
73
+ itemRef?: string | undefined | undefined;
74
+ results?: number | undefined | undefined;
75
+ security?: string | undefined | undefined;
76
+ unselectable?: "on" | "off" | undefined | undefined;
77
+ inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
78
+ is?: string | undefined | undefined;
79
+ exportparts?: string | undefined | undefined;
80
+ part?: string | undefined | undefined;
81
+ "aria-activedescendant"?: string | undefined | undefined;
82
82
  "aria-atomic"?: (boolean | "false" | "true") | undefined;
83
- "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
84
- "aria-braillelabel"?: string | undefined;
85
- "aria-brailleroledescription"?: string | undefined;
83
+ "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
84
+ "aria-braillelabel"?: string | undefined | undefined;
85
+ "aria-brailleroledescription"?: string | undefined | undefined;
86
86
  "aria-busy"?: (boolean | "false" | "true") | undefined;
87
- "aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
88
- "aria-colcount"?: number | undefined;
89
- "aria-colindex"?: number | undefined;
90
- "aria-colindextext"?: string | undefined;
91
- "aria-colspan"?: number | undefined;
92
- "aria-controls"?: string | undefined;
93
- "aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
94
- "aria-describedby"?: string | undefined;
95
- "aria-description"?: string | undefined;
96
- "aria-details"?: string | undefined;
87
+ "aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
88
+ "aria-colcount"?: number | undefined | undefined;
89
+ "aria-colindex"?: number | undefined | undefined;
90
+ "aria-colindextext"?: string | undefined | undefined;
91
+ "aria-colspan"?: number | undefined | undefined;
92
+ "aria-controls"?: string | undefined | undefined;
93
+ "aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
94
+ "aria-describedby"?: string | undefined | undefined;
95
+ "aria-description"?: string | undefined | undefined;
96
+ "aria-details"?: string | undefined | undefined;
97
97
  "aria-disabled"?: (boolean | "false" | "true") | undefined;
98
- "aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
99
- "aria-errormessage"?: string | undefined;
98
+ "aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
99
+ "aria-errormessage"?: string | undefined | undefined;
100
100
  "aria-expanded"?: (boolean | "false" | "true") | undefined;
101
- "aria-flowto"?: string | undefined;
101
+ "aria-flowto"?: string | undefined | undefined;
102
102
  "aria-grabbed"?: (boolean | "false" | "true") | undefined;
103
- "aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
103
+ "aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
104
104
  "aria-hidden"?: (boolean | "false" | "true") | undefined;
105
- "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
106
- "aria-keyshortcuts"?: string | undefined;
107
- "aria-label"?: string | undefined;
108
- "aria-labelledby"?: string | undefined;
109
- "aria-level"?: number | undefined;
110
- "aria-live"?: "off" | "assertive" | "polite" | undefined;
105
+ "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
106
+ "aria-keyshortcuts"?: string | undefined | undefined;
107
+ "aria-label"?: string | undefined | undefined;
108
+ "aria-labelledby"?: string | undefined | undefined;
109
+ "aria-level"?: number | undefined | undefined;
110
+ "aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
111
111
  "aria-modal"?: (boolean | "false" | "true") | undefined;
112
112
  "aria-multiline"?: (boolean | "false" | "true") | undefined;
113
113
  "aria-multiselectable"?: (boolean | "false" | "true") | undefined;
114
- "aria-orientation"?: "horizontal" | "vertical" | undefined;
115
- "aria-owns"?: string | undefined;
116
- "aria-placeholder"?: string | undefined;
117
- "aria-posinset"?: number | undefined;
118
- "aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
114
+ "aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
115
+ "aria-owns"?: string | undefined | undefined;
116
+ "aria-placeholder"?: string | undefined | undefined;
117
+ "aria-posinset"?: number | undefined | undefined;
118
+ "aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
119
119
  "aria-readonly"?: (boolean | "false" | "true") | undefined;
120
- "aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
120
+ "aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
121
121
  "aria-required"?: (boolean | "false" | "true") | undefined;
122
- "aria-roledescription"?: string | undefined;
123
- "aria-rowcount"?: number | undefined;
124
- "aria-rowindex"?: number | undefined;
125
- "aria-rowindextext"?: string | undefined;
126
- "aria-rowspan"?: number | undefined;
122
+ "aria-roledescription"?: string | undefined | undefined;
123
+ "aria-rowcount"?: number | undefined | undefined;
124
+ "aria-rowindex"?: number | undefined | undefined;
125
+ "aria-rowindextext"?: string | undefined | undefined;
126
+ "aria-rowspan"?: number | undefined | undefined;
127
127
  "aria-selected"?: (boolean | "false" | "true") | undefined;
128
- "aria-setsize"?: number | undefined;
129
- "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
130
- "aria-valuemax"?: number | undefined;
131
- "aria-valuemin"?: number | undefined;
132
- "aria-valuenow"?: number | undefined;
133
- "aria-valuetext"?: string | undefined;
128
+ "aria-setsize"?: number | undefined | undefined;
129
+ "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
130
+ "aria-valuemax"?: number | undefined | undefined;
131
+ "aria-valuemin"?: number | undefined | undefined;
132
+ "aria-valuenow"?: number | undefined | undefined;
133
+ "aria-valuetext"?: string | undefined | undefined;
134
134
  dangerouslySetInnerHTML?: {
135
135
  __html: string | TrustedHTML;
136
- } | undefined;
136
+ } | undefined | undefined;
137
137
  onCopy?: import('react').ClipboardEventHandler<HTMLDivElement> | undefined;
138
138
  onCopyCapture?: import('react').ClipboardEventHandler<HTMLDivElement> | undefined;
139
139
  onCut?: import('react').ClipboardEventHandler<HTMLDivElement> | undefined;
@@ -304,7 +304,7 @@ export declare function useModuleDetailTabs<T extends Record<string, any> = Reco
304
304
  touchRippleRef?: React.Ref<import('@mui/material/ButtonBase/TouchRipple').TouchRippleActions> | undefined;
305
305
  disableFocusRipple?: boolean | undefined;
306
306
  ariaLabel?: string | undefined;
307
- iconPosition?: ("top" | "bottom" | "start" | "end") | undefined;
307
+ iconPosition?: "top" | "bottom" | "start" | "end" | undefined;
308
308
  wrapped?: boolean | undefined;
309
309
  }[];
310
310
  handleChangeTab: (newValue: string) => void;
@@ -2,8 +2,9 @@ import { PropertyValueProps, RHFTextFieldProps } from '@m4l/components';
2
2
  interface PropertyValueFieldBase extends Pick<PropertyValueProps, 'semanticWidth'> {
3
3
  name: string;
4
4
  type: 'RHFTextField' | 'component';
5
- label: string;
5
+ label?: string;
6
6
  mandatory?: boolean;
7
+ helperMessage?: string;
7
8
  }
8
9
  interface PropertyValueRHFTextField extends PropertyValueFieldBase, Pick<RHFTextFieldProps, 'multiline' | 'rows'> {
9
10
  type: 'RHFTextField';
@@ -36,11 +36,12 @@ function useDynamicPaperForm(props) {
36
36
  return /* @__PURE__ */ jsx(
37
37
  PropertyValue,
38
38
  {
39
- property: getLabel(`${field.label}`),
39
+ property: field.label ? getLabel(`${field.label}`) : "",
40
40
  isForm: true,
41
41
  propertyWidth: 150,
42
42
  mandatory: field.mandatory,
43
43
  mandatoryMessage: "*",
44
+ helperMessage: field.helperMessage,
44
45
  value: component,
45
46
  dataTestId: field.name,
46
47
  semanticWidth: field?.semanticWidth || "fullWidth"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/layouts",
3
- "version": "9.3.9",
3
+ "version": "9.3.10",
4
4
  "license": "UNLICENSED",
5
5
  "author": "M4L Team",
6
6
  "lint-staged": {