@m4l/layouts 9.3.11 → 9.3.12-BE080925-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.
@@ -73,6 +73,7 @@ export declare const colorsLight: {
73
73
  readonly candy: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
74
74
  readonly persianGreen: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
75
75
  readonly aqua: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
76
+ readonly sheetGreen: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
76
77
  readonly disabled: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
77
78
  readonly primary: {
78
79
  readonly outlined: {
@@ -277,6 +278,7 @@ export declare const colorsLight: {
277
278
  readonly candy: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
278
279
  readonly persianGreen: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
279
280
  readonly aqua: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
281
+ readonly sheetGreen: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
280
282
  readonly disabled: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
281
283
  readonly primary: {
282
284
  readonly outlined: {
@@ -482,6 +484,7 @@ export declare const colorsDark: {
482
484
  readonly candy: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
483
485
  readonly persianGreen: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
484
486
  readonly aqua: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
487
+ readonly sheetGreen: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
485
488
  readonly disabled: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
486
489
  readonly primary: {
487
490
  readonly outlined: {
@@ -686,6 +689,7 @@ export declare const colorsDark: {
686
689
  readonly candy: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
687
690
  readonly persianGreen: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
688
691
  readonly aqua: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
692
+ readonly sheetGreen: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
689
693
  readonly disabled: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
690
694
  readonly primary: {
691
695
  readonly outlined: {
@@ -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
  );
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@m4l/layouts",
3
- "version": "9.3.11",
3
+ "version": "9.3.12-BE080925-beta.1",
4
4
  "license": "UNLICENSED",
5
5
  "author": "M4L Team",
6
6
  "lint-staged": {
7
7
  "*.{js,ts,tsx}": "eslint --fix --max-warnings 0"
8
8
  },
9
9
  "peerDependencies": {
10
- "@m4l/components": "^9.0.0",
10
+ "@m4l/components": "9.3.12-BE080925-beta.1",
11
11
  "@m4l/core": "^2.0.0",
12
12
  "@m4l/graphics": "^7.0.0",
13
13
  "@m4l/styles": "^7.0.0"