@m4l/components 9.86.0-beta-pkg-799-preparar-app-cd-ci.0 → 9.86.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Label.styles.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/Label/Label.styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAU3D,eAAO,MAAM,WAAW,EAAE,WAoJzB,CAAC"}
1
+ {"version":3,"file":"Label.styles.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/Label/Label.styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAU3D,eAAO,MAAM,WAAW,EAAE,WA2KzB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { getIconPaintStyles as o } from "@m4l/base";
2
- import { getHeightSizeStyles as i } from "../../utils/getSizeStyles/getSizeStyles.js";
3
- function a(e) {
4
- return o(e);
2
+ import { getHeightSizeStyles as s } from "../../utils/getSizeStyles/getSizeStyles.js";
3
+ function a(i) {
4
+ return o(i);
5
5
  }
6
6
  const n = {
7
7
  /**
@@ -10,20 +10,18 @@ const n = {
10
10
  * @param {object} ownerState - El estado del componente.
11
11
  * @returns {object} - Los estilos aplicados al root del Label.
12
12
  */
13
- root: ({ theme: e, ownerState: s }) => ({
14
- // `fit-content` instead of `100%`: the root must contribute a real intrinsic width so the
15
- // layers above it can size a field from its content. Stretching to the parent made the label
16
- // width unmeasurable, which forced consumers to guess it.
17
- // `fit-content` en vez de `100%`: el root debe aportar un ancho intrínseco real para que las
18
- // capas superiores puedan dimensionar un campo a partir de su contenido. Estirarse al padre
19
- // hacía que el ancho del label no fuera medible y obligaba a los consumidores a estimarlo.
20
- width: "fit-content",
13
+ root: ({ theme: i, ownerState: e }) => ({
14
+ // Intrinsic form layouts measure the rendered label width. A wrapping label uses the
15
+ // width assigned by its container so each line can use the available space.
16
+ // Los layouts intrínsecos miden el ancho real. Un label multilínea usa el ancho de su
17
+ // contenedor para aprovechar el espacio disponible en cada renglón.
18
+ width: e?.labelOverflow === "wrap" ? "100%" : "fit-content",
21
19
  display: "flex",
22
20
  flexDirection: "row",
23
21
  alignItems: "center",
24
- ...i(
25
- e.generalSettings.isMobile,
26
- s?.size || "small",
22
+ ...s(
23
+ i.generalSettings.isMobile,
24
+ e?.size || "small",
27
25
  "base",
28
26
  (l) => ({
29
27
  minHeight: l,
@@ -31,10 +29,15 @@ const n = {
31
29
  maxHeight: "none"
32
30
  })
33
31
  ),
34
- gap: e.size.baseSpacings.sp1,
32
+ gap: i.size.baseSpacings.sp1,
33
+ ...e?.labelOverflow === "wrap" && {
34
+ alignItems: "baseline",
35
+ maxInlineSize: "100%",
36
+ minInlineSize: 0
37
+ },
35
38
  /** Estilos para el estado disabled del Label 😶‍🌫️ */
36
- ...s?.disabled && {
37
- color: e.vars.palette.text.disabled,
39
+ ...e?.disabled && {
40
+ color: i.vars.palette.text.disabled,
38
41
  '& > [class*="M4LIcon-icon"]': {
39
42
  PointerEvents: "none"
40
43
  }
@@ -43,17 +46,23 @@ const n = {
43
46
  /**
44
47
  * Estilos para el slot Typography del Label.
45
48
  */
46
- typographyStyled: ({ theme: e, ownerState: s }) => ({
49
+ typographyStyled: ({ theme: i, ownerState: e }) => ({
47
50
  "&.MuiTypography-root": {
48
51
  width: "fit-content",
49
- minWidth: e.vars.size.baseSpacings.sp2,
50
- overflow: s?.labelOverflow === "visible" ? "visible" : "hidden",
51
- textOverflow: s?.labelOverflow === "visible" ? "clip" : "ellipsis",
52
+ minWidth: i.vars.size.baseSpacings.sp2,
53
+ overflow: e?.labelOverflow === "visible" ? "visible" : "hidden",
54
+ textOverflow: e?.labelOverflow === "visible" ? "clip" : "ellipsis",
52
55
  whiteSpace: "nowrap",
56
+ ...e?.labelOverflow === "wrap" && {
57
+ minInlineSize: 0,
58
+ overflow: "visible",
59
+ overflowWrap: "anywhere",
60
+ whiteSpace: "normal"
61
+ },
53
62
  "&.M4lclassCssSpecificity": {
54
- color: e.vars.palette.text.secondary,
55
- ...s?.disabled === !0 && {
56
- color: e.vars.palette.text.disabled
63
+ color: i.vars.palette.text.secondary,
64
+ ...e?.disabled === !0 && {
65
+ color: i.vars.palette.text.disabled
57
66
  }
58
67
  }
59
68
  }
@@ -61,17 +70,28 @@ const n = {
61
70
  /**
62
71
  * Estilos para el slot Typography del mensaje obligatorio del Label.
63
72
  */
64
- typographyMandatoryMessageStyled: ({ theme: e, ownerState: s }) => ({
73
+ typographyMandatoryMessageStyled: ({ theme: i, ownerState: e }) => ({
65
74
  "&.MuiTypography-root": {
66
75
  width: "fit-content",
67
- overflow: s?.labelOverflow === "visible" ? "visible" : "hidden",
68
- textOverflow: s?.labelOverflow === "visible" ? "clip" : "ellipsis",
76
+ overflow: e?.labelOverflow === "visible" ? "visible" : "hidden",
77
+ textOverflow: e?.labelOverflow === "visible" ? "clip" : "ellipsis",
69
78
  whiteSpace: "nowrap",
70
- minWidth: e.vars.size.baseSpacings.sp2,
79
+ minWidth: i.vars.size.baseSpacings.sp2,
80
+ ...e?.labelOverflow === "wrap" && {
81
+ overflow: "visible",
82
+ overflowWrap: "anywhere",
83
+ whiteSpace: "normal"
84
+ },
71
85
  "&.M4lclassCssSpecificity": {
72
- color: e.vars.palette.text.primary,
73
- ...s?.disabled && {
74
- color: e.vars.palette.text.disabled
86
+ color: i.vars.palette.text.primary,
87
+ ...e?.disabled && {
88
+ color: i.vars.palette.text.disabled
89
+ }
90
+ },
91
+ ...!e?.disabled && {
92
+ "&.mandatoryAsterisk.M4lclassCssSpecificity": {
93
+ // The primary action color is too dark for small text on dark form surfaces.
94
+ color: i.palette.mode === "dark" ? i.vars.palette.primary.semanticText : i.vars.palette.primary.enabled
75
95
  }
76
96
  }
77
97
  }
@@ -79,16 +99,17 @@ const n = {
79
99
  /**
80
100
  * Estilos para el slot Icon del Label.
81
101
  */
82
- iconHelperMessageStyled: ({ theme: e, ownerState: s }) => {
83
- const l = s?.disabled ? e.vars.palette.text.disabled : e.vars.palette.info.enabled, r = s?.disabled ? e.vars.palette.text.disabled : e.vars.palette.info.hover;
102
+ iconHelperMessageStyled: ({ theme: i, ownerState: e }) => {
103
+ const l = e?.disabled ? i.vars.palette.text.disabled : i.vars.palette.info.enabled, r = e?.disabled ? i.vars.palette.text.disabled : i.vars.palette.info.hover;
84
104
  return {
85
- borderRadius: e.vars.size.borderRadius.r1,
86
- cursor: s?.disabled ? "default" : "pointer",
105
+ borderRadius: i.vars.size.borderRadius.r1,
106
+ cursor: e?.disabled ? "default" : "pointer",
107
+ ...e?.labelOverflow === "wrap" && { flexShrink: 0 },
87
108
  ...a(l),
88
109
  "&:hover": a(r),
89
- ...i(
90
- e.generalSettings.isMobile,
91
- s?.size || "small",
110
+ ...s(
111
+ i.generalSettings.isMobile,
112
+ e?.size || "small",
92
113
  "base"
93
114
  )
94
115
  };
@@ -96,41 +117,41 @@ const n = {
96
117
  /**
97
118
  * Estilos para el slot Skeleton del Label.
98
119
  */
99
- skeletonStyled: ({ ownerState: e, theme: s }) => ({
120
+ skeletonStyled: ({ ownerState: i, theme: e }) => ({
100
121
  width: "100%",
101
- borderRadius: s.vars.size.borderRadius.r1,
122
+ borderRadius: e.vars.size.borderRadius.r1,
102
123
  display: "flex",
103
124
  alignItems: "center",
104
- backgroundColor: s.vars.palette.skeleton.default,
105
- ...i(
106
- s.generalSettings.isMobile,
107
- e?.size || "medium",
125
+ backgroundColor: e.vars.palette.skeleton.default,
126
+ ...s(
127
+ e.generalSettings.isMobile,
128
+ i?.size || "medium",
108
129
  "base"
109
130
  ),
110
131
  "&.MandatoryLabel": {
111
- width: s.vars.size.baseSpacings["sp0-5"],
112
- paddingLeft: s.vars.size.baseSpacings.sp1,
113
- paddingRight: s.vars.size.baseSpacings.sp1
132
+ width: e.vars.size.baseSpacings["sp0-5"],
133
+ paddingLeft: e.vars.size.baseSpacings.sp1,
134
+ paddingRight: e.vars.size.baseSpacings.sp1
114
135
  },
115
136
  "&.SkeletonWidthLabel": {
116
- width: s.vars.size.baseSpacings.sp14,
117
- borderRadius: s.vars.size.borderRadius.r1,
118
- ...i(
119
- s.generalSettings.isMobile,
120
- e?.size || "medium",
137
+ width: e.vars.size.baseSpacings.sp14,
138
+ borderRadius: e.vars.size.borderRadius.r1,
139
+ ...s(
140
+ e.generalSettings.isMobile,
141
+ i?.size || "medium",
121
142
  "base"
122
143
  ),
123
- ...i(
124
- s.generalSettings.isMobile,
125
- e?.size || "small",
144
+ ...s(
145
+ e.generalSettings.isMobile,
146
+ i?.size || "small",
126
147
  "base"
127
148
  )
128
149
  },
129
150
  "&.HelperIconLabel": {
130
- borderRadius: s.vars.size.borderRadius.r4,
131
- ...i(
132
- s.generalSettings.isMobile,
133
- e?.size || "small",
151
+ borderRadius: e.vars.size.borderRadius.r4,
152
+ ...s(
153
+ e.generalSettings.isMobile,
154
+ i?.size || "small",
134
155
  "base",
135
156
  (l) => ({
136
157
  width: l
@@ -22,8 +22,8 @@ export interface LabelProps {
22
22
  helperMessage?: boolean | string;
23
23
  /** Main label text for the component. */
24
24
  label?: string;
25
- /** Controls whether label text is clipped or allowed to occupy its measured single-line width. */
26
- labelOverflow?: 'ellipsis' | 'visible';
25
+ /** Clip, expose the intrinsic line, or wrap the label within its available width. */
26
+ labelOverflow?: 'ellipsis' | 'visible' | 'wrap';
27
27
  /**
28
28
  * Optional symbol rendered wrapped in parentheses right after the label text,
29
29
  * e.g. `symbol="°C"` renders `Temperatura (°C)`. Omitted or empty keeps the
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/Label/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC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,EAAE,MAAM,CAAC,CAAC;AAClD,MAAM,WAAW,eAAgB,SAAQ,UAAU,EAAE,UAAU;IAC7D,yCAAyC;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sBAAsB;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;CAC3C;AACD,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,UAAU,CAAC;AACrD,MAAM,MAAM,WAAW,GAAG,mBAAmB,CAAC,UAAU,EAAE,OAAO,mBAAmB,EAAE,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/Label/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC;AAEvC;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,UAAU,GAAG,MAAM,GAAG,WAAW,GAAG,OAAO,CAAC,CAAC;AAExG,MAAM,WAAW,UAAU;IACzB,0GAA0G;IAC1G,aAAa,CAAC,EAAE,eAAe,CAAC,eAAe,CAAC,CAAC;IACjD;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IACjC,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qFAAqF;IACrF,aAAa,CAAC,EAAE,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC;IAChD;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,2EAA2E;IAC3E,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kEAAkE;IAClE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,4FAA4F;IAC5F,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,qDAAqD;IACrD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,wCAAwC;IACxC,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;IAC1C,oDAAoD;IACpD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gEAAgE;IAChE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,yCAAyC;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AACD,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;AAClD,MAAM,WAAW,eAAgB,SAAQ,UAAU,EAAE,UAAU;IAC7D,yCAAyC;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sBAAsB;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;CAC3C;AACD,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,UAAU,CAAC;AACrD,MAAM,MAAM,WAAW,GAAG,mBAAmB,CAAC,UAAU,EAAE,OAAO,mBAAmB,EAAE,KAAK,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NumberInput.styles.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/NumberInput/NumberInput.styles.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAY5C;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,iBAuT/B,CAAC"}
1
+ {"version":3,"file":"NumberInput.styles.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/NumberInput/NumberInput.styles.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAY5C;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,iBA+T/B,CAAC"}
@@ -1,12 +1,12 @@
1
- import { getTypographyStyles as s, getSingleLineInputLineHeight as l } from "../../utils/getTypographyStyles.js";
2
- import { getSizeStyles as n } from "../../utils/getSizeStyles/getSizeStyles.js";
1
+ import { getTypographyStyles as n, getSingleLineInputLineHeight as l } from "../../utils/getTypographyStyles.js";
2
+ import { getSizeStyles as a } from "../../utils/getSizeStyles/getSizeStyles.js";
3
3
  import { getSharedInputStateColors as p } from "../../utils/getSharedInputStateColors.js";
4
- const t = 'Jura, "Segoe UI", Roboto, "Helvetica Neue", "Open Sans", sans-serif', d = (e, i) => i ? e.vars.palette.text.disabled : e.vars.palette.text.primary, b = {
4
+ const o = 'Jura, "Segoe UI", Roboto, "Helvetica Neue", "Open Sans", sans-serif', d = (i, e) => e ? i.vars.palette.text.disabled : i.vars.palette.text.primary, b = {
5
5
  /**
6
6
  * Styles applied to the main root container.
7
7
  */
8
- root: ({ theme: e, ownerState: i }) => {
9
- const r = p(e, !!i?.error), o = i?.disabled === !1 && i?.readOnly !== !0;
8
+ root: ({ theme: i, ownerState: e }) => {
9
+ const r = p(i, !!e?.error), t = e?.disabled === !1 && e?.readOnly !== !0;
10
10
  return {
11
11
  // General styles
12
12
  display: "flex",
@@ -14,40 +14,40 @@ const t = 'Jura, "Segoe UI", Roboto, "Helvetica Neue", "Open Sans", sans-serif',
14
14
  position: "relative",
15
15
  height: "auto",
16
16
  width: "100%",
17
- gap: e.vars.size.baseSpacings.sp1,
18
- paddingLeft: e.vars.size.baseSpacings.sp1,
19
- paddingRight: i?.noButtons && e.vars.size.baseSpacings.sp1,
17
+ gap: i.vars.size.baseSpacings.sp1,
18
+ paddingLeft: i.vars.size.baseSpacings.sp1,
19
+ paddingRight: e?.noButtons && i.vars.size.baseSpacings.sp1,
20
20
  boxSizing: "border-box",
21
21
  overflow: "hidden",
22
- ...i?.readOnly && {
22
+ ...e?.readOnly && {
23
23
  cursor: "default",
24
24
  pointerEvents: "none"
25
25
  },
26
- ...n(
27
- e,
28
- i?.size || "medium",
26
+ ...a(
27
+ i,
28
+ e?.size || "medium",
29
29
  "action",
30
- (a) => ({
30
+ (s) => ({
31
31
  // Keep the button column on an explicit height while matching the visible outer height
32
32
  // used by other bordered input surfaces.
33
- height: a,
34
- minHeight: a,
35
- maxHeight: a
33
+ height: `var(--m4l-form-control-block-size, ${s})`,
34
+ minHeight: s,
35
+ maxHeight: `var(--m4l-form-control-max-block-size, ${s})`
36
36
  })
37
37
  ),
38
38
  // Variants (Outlined and Text)
39
- ...i?.variant === "outlined" && {
40
- border: e.vars.size.borderStroke.actionInput,
39
+ ...e?.variant === "outlined" && {
40
+ border: i.vars.size.borderStroke.actionInput,
41
41
  borderColor: r.borderColor,
42
- borderRadius: e.vars.size.borderRadius["r1-5"]
42
+ borderRadius: i.vars.size.borderRadius["r1-5"]
43
43
  },
44
- ...i?.variant === "text" && {
45
- borderBottom: e.vars.size.borderStroke.actionInput,
44
+ ...e?.variant === "text" && {
45
+ borderBottom: i.vars.size.borderStroke.actionInput,
46
46
  borderColor: r.borderColor,
47
- borderRadius: e.vars.size.borderRadius["r1-5"]
47
+ borderRadius: i.vars.size.borderRadius["r1-5"]
48
48
  },
49
49
  // States (Pseudo-classes)
50
- ...o && {
50
+ ...t && {
51
51
  "&:hover": {
52
52
  background: r.hoverBackgroundColor,
53
53
  borderColor: r.hoverBorderColor,
@@ -60,32 +60,32 @@ const t = 'Jura, "Segoe UI", Roboto, "Helvetica Neue", "Open Sans", sans-serif',
60
60
  },
61
61
  "&:focus-within": {
62
62
  borderColor: r.focusBorderColor,
63
- ...i?.variant === "text" ? {
63
+ ...e?.variant === "text" ? {
64
64
  boxShadow: `0px 1.5px 0px 0px ${r.focusRingColor}`
65
65
  } : {
66
66
  boxShadow: `0px 0px 0px 1.5px ${r.focusRingColor}`
67
67
  }
68
68
  },
69
69
  "&:active": {
70
- background: e.vars.palette.background.default,
70
+ background: i.vars.palette.background.default,
71
71
  borderColor: r.focusBorderColor
72
72
  }
73
73
  },
74
- ...i?.readOnly && {
74
+ ...e?.readOnly && {
75
75
  background: "transparent",
76
76
  border: 0,
77
77
  borderBottom: 0,
78
78
  borderColor: "transparent",
79
79
  borderRadius: 0,
80
80
  boxShadow: "none",
81
- fontFamily: t,
82
- gap: e.vars.size.baseSpacings.sp1,
83
- height: e.vars.size.baseSpacings.sp6,
84
- maxHeight: e.vars.size.baseSpacings.sp6,
85
- minHeight: e.vars.size.baseSpacings.sp6,
81
+ fontFamily: o,
82
+ gap: i.vars.size.baseSpacings.sp1,
83
+ height: i.vars.size.baseSpacings.sp6,
84
+ maxHeight: i.vars.size.baseSpacings.sp6,
85
+ minHeight: i.vars.size.baseSpacings.sp6,
86
86
  minWidth: 0,
87
- paddingLeft: e.vars.size.baseSpacings.sp1,
88
- paddingRight: e.vars.size.baseSpacings.sp0,
87
+ paddingLeft: i.vars.size.baseSpacings.sp1,
88
+ paddingRight: i.vars.size.baseSpacings.sp0,
89
89
  width: "fit-content"
90
90
  }
91
91
  };
@@ -93,33 +93,34 @@ const t = 'Jura, "Segoe UI", Roboto, "Helvetica Neue", "Open Sans", sans-serif',
93
93
  /**
94
94
  * Styles applied to the input field.
95
95
  */
96
- input: ({ theme: e, ownerState: i }) => ({
96
+ input: ({ theme: i, ownerState: e }) => ({
97
97
  // General styles
98
98
  background: "transparent",
99
99
  border: 0,
100
100
  outline: 0,
101
- color: i?.disabled ? e.vars.palette.text.disabled : e.vars.palette.text.primary,
101
+ color: e?.disabled ? i.vars.palette.text.disabled : i.vars.palette.text.primary,
102
102
  height: "max-content ",
103
+ minWidth: 0,
103
104
  width: "100%",
104
- ...i?.focusError && {
105
- color: e.vars.palette.error.enabled
105
+ ...e?.focusError && {
106
+ color: i.vars.palette.error.enabled
106
107
  },
107
- ...s(
108
- e.generalSettings.isMobile,
109
- i?.size || "small",
108
+ ...n(
109
+ i.generalSettings.isMobile,
110
+ e?.size || "small",
110
111
  "bodyStandard"
111
112
  ),
112
113
  ...l(),
113
- fontFamily: e.typography.fontFamily
114
+ fontFamily: i.typography.fontFamily
114
115
  }),
115
116
  /**
116
117
  * Styles applied to the static read-only value wrapper.
117
118
  */
118
- readOnlyValue: ({ theme: e }) => ({
119
+ readOnlyValue: ({ theme: i }) => ({
119
120
  alignItems: "center",
120
121
  display: "flex",
121
- fontFamily: t,
122
- gap: e.vars.size.baseSpacings.sp1,
122
+ fontFamily: o,
123
+ gap: i.vars.size.baseSpacings.sp1,
123
124
  height: "100%",
124
125
  minWidth: 0,
125
126
  pointerEvents: "none",
@@ -128,24 +129,24 @@ const t = 'Jura, "Segoe UI", Roboto, "Helvetica Neue", "Open Sans", sans-serif',
128
129
  /**
129
130
  * Styles applied to the static read-only numeric value.
130
131
  */
131
- readOnlyInputValue: ({ theme: e, ownerState: i }) => ({
132
- color: d(e, i?.disabled),
132
+ readOnlyInputValue: ({ theme: i, ownerState: e }) => ({
133
+ color: d(i, e?.disabled),
133
134
  flex: "0 0 auto",
134
- fontFamily: t,
135
+ fontFamily: o,
135
136
  minWidth: 0,
136
- ...s(
137
- e.generalSettings.isMobile,
138
- i?.size || "medium",
137
+ ...n(
138
+ i.generalSettings.isMobile,
139
+ e?.size || "medium",
139
140
  "captionDens"
140
141
  )
141
142
  }),
142
143
  /**
143
144
  * Styles applied to the static read-only suffix/adornment.
144
145
  */
145
- readOnlyAdornment: ({ theme: e, ownerState: i }) => {
146
- const r = d(e, i?.disabled), o = s(
147
- e.generalSettings.isMobile,
148
- i?.size || "medium",
146
+ readOnlyAdornment: ({ theme: i, ownerState: e }) => {
147
+ const r = d(i, e?.disabled), t = n(
148
+ i.generalSettings.isMobile,
149
+ e?.size || "medium",
149
150
  "microDens"
150
151
  );
151
152
  return {
@@ -153,25 +154,28 @@ const t = 'Jura, "Segoe UI", Roboto, "Helvetica Neue", "Open Sans", sans-serif',
153
154
  color: r,
154
155
  display: "inline-flex",
155
156
  flex: "0 0 auto",
156
- fontFamily: t,
157
- ...o,
157
+ fontFamily: o,
158
+ ...t,
158
159
  "& .M4LTypography-root.M4lclassCssSpecificity": {
159
160
  color: r,
160
- fontFamily: t,
161
- ...o
161
+ fontFamily: o,
162
+ ...t
162
163
  }
163
164
  };
164
165
  },
165
166
  /**
166
167
  * Styles for the buttons and endAdornment wrapper.
167
168
  */
168
- ContainButtonsAdornment: ({ theme: e }) => ({
169
+ ContainButtonsAdornment: ({ theme: i }) => ({
169
170
  display: "flex",
170
171
  flexDirection: "row",
171
172
  justifyContent: "center",
172
- alignContent: "center",
173
+ alignItems: "center",
173
174
  height: "100%",
174
- gap: e.vars.size.baseSpacings.sp2,
175
+ // Reserve space for the unit and steppers when the input is in a narrow column.
176
+ flexShrink: 0,
177
+ whiteSpace: "nowrap",
178
+ gap: i.vars.size.baseSpacings.sp2,
175
179
  span: {
176
180
  alignSelf: "center"
177
181
  }
@@ -179,16 +183,20 @@ const t = 'Jura, "Segoe UI", Roboto, "Helvetica Neue", "Open Sans", sans-serif',
179
183
  /**
180
184
  * Styles applied to the increment and decrement buttons container.
181
185
  */
182
- containerButtons: ({ theme: e, ownerState: i }) => ({
186
+ containerButtons: ({ theme: i, ownerState: e }) => ({
183
187
  display: "flex",
184
188
  flexDirection: "column",
185
189
  height: "100%",
186
190
  minHeight: 0,
187
191
  flexShrink: 0,
188
192
  alignSelf: "stretch",
189
- ...n(
190
- e,
191
- i?.size || "medium",
193
+ // Keep a usable stepper height when the surrounding form lets the input grow.
194
+ ...a(i, e?.size || "medium", "action", (r) => ({
195
+ minHeight: `calc(${r} * var(--m4l-form-stepper-min-height-ratio, 0))`
196
+ })),
197
+ ...a(
198
+ i,
199
+ e?.size || "medium",
192
200
  "action",
193
201
  (r) => ({
194
202
  width: r,
@@ -201,8 +209,8 @@ const t = 'Jura, "Segoe UI", Roboto, "Helvetica Neue", "Open Sans", sans-serif',
201
209
  /**
202
210
  * Styles for the increment button.
203
211
  */
204
- increment: ({ theme: e, ownerState: i }) => {
205
- const r = i?.disabled === !1 && i?.readOnly !== !0;
212
+ increment: ({ theme: i, ownerState: e }) => {
213
+ const r = e?.disabled === !1 && e?.readOnly !== !0;
206
214
  return {
207
215
  "&&&": {
208
216
  // General styles
@@ -213,20 +221,20 @@ const t = 'Jura, "Segoe UI", Roboto, "Helvetica Neue", "Open Sans", sans-serif',
213
221
  width: "100%",
214
222
  minWidth: "100%",
215
223
  maxWidth: "100%",
216
- background: e.vars.palette.default.enabled,
224
+ background: i.vars.palette.default.enabled,
217
225
  borderBottomLeftRadius: 0,
218
226
  borderBottomRightRadius: 0,
219
227
  borderTopLeftRadius: 0,
220
- borderTopRightRadius: `calc(${e.vars.size.borderRadius["r1-5"]} - 1px)`,
228
+ borderTopRightRadius: `calc(${i.vars.size.borderRadius["r1-5"]} - 1px)`,
221
229
  outlineOffset: 0,
222
230
  // States (Pseudo-classes)
223
231
  ...r && {
224
232
  "&:focus-visible": {
225
233
  zIndex: 1,
226
- outline: `1px solid ${e.vars.palette?.primary.enabled}`
234
+ outline: `1px solid ${i.vars.palette?.primary.enabled}`
227
235
  },
228
236
  "&:active": {
229
- background: `${e.vars.palette?.default.active} !important`
237
+ background: `${i.vars.palette?.default.active} !important`
230
238
  }
231
239
  },
232
240
  "& div": {
@@ -245,8 +253,8 @@ const t = 'Jura, "Segoe UI", Roboto, "Helvetica Neue", "Open Sans", sans-serif',
245
253
  /**
246
254
  * Styles for the decrement button.
247
255
  */
248
- decrement: ({ theme: e, ownerState: i }) => {
249
- const r = i?.disabled === !1 && i?.readOnly !== !0;
256
+ decrement: ({ theme: i, ownerState: e }) => {
257
+ const r = e?.disabled === !1 && e?.readOnly !== !0;
250
258
  return {
251
259
  "&&&": {
252
260
  // General styles
@@ -257,20 +265,20 @@ const t = 'Jura, "Segoe UI", Roboto, "Helvetica Neue", "Open Sans", sans-serif',
257
265
  width: "100%",
258
266
  minWidth: "100%",
259
267
  maxWidth: "100%",
260
- background: e.vars.palette.default.enabled,
268
+ background: i.vars.palette.default.enabled,
261
269
  borderTopLeftRadius: 0,
262
270
  borderTopRightRadius: 0,
263
271
  borderBottomLeftRadius: 0,
264
- borderBottomRightRadius: `calc(${e.vars.size.borderRadius["r1-5"]} - 1px)`,
272
+ borderBottomRightRadius: `calc(${i.vars.size.borderRadius["r1-5"]} - 1px)`,
265
273
  outlineOffset: 0,
266
274
  // States (Pseudo-classes)
267
275
  ...r && {
268
276
  "&:focus-visible": {
269
277
  zIndex: 1,
270
- outline: `1px solid ${e.vars.palette?.primary.enabled}`
278
+ outline: `1px solid ${i.vars.palette?.primary.enabled}`
271
279
  },
272
280
  "&:active": {
273
- background: `${e.vars.palette?.default.active} !important`
281
+ background: `${i.vars.palette?.default.active} !important`
274
282
  }
275
283
  },
276
284
  "& div": {
@@ -289,12 +297,12 @@ const t = 'Jura, "Segoe UI", Roboto, "Helvetica Neue", "Open Sans", sans-serif',
289
297
  /**
290
298
  * Styles applied to the skeleton.
291
299
  */
292
- skeleton: ({ theme: e, ownerState: i }) => ({
300
+ skeleton: ({ theme: i, ownerState: e }) => ({
293
301
  "&.M4lclassCssSpecificity": {
294
302
  width: "100%",
295
- ...n(
296
- e,
297
- i?.size || "medium",
303
+ ...a(
304
+ i,
305
+ e?.size || "medium",
298
306
  "action",
299
307
  (r) => ({
300
308
  height: r,
@@ -1 +1 @@
1
- {"version":3,"file":"PropertyValue.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/PropertyValue/PropertyValue.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAA2B,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAyB3E;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,oDA2JtD"}
1
+ {"version":3,"file":"PropertyValue.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/PropertyValue/PropertyValue.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAA2B,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAyB3E;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,oDA+JtD"}
@@ -1,115 +1,117 @@
1
- import { jsxs as y, jsx as t } from "@emotion/react/jsx-runtime";
2
- import f, { useId as D } from "react";
3
- import W from "clsx";
4
- import { TEST_PROP_ID as x } from "../../test/constants_no_mock.js";
5
- import { PROPERTY_VALUE_CLASSNAMES as M, TEST_PROPS_DATA as F, PROPERTY_VALUE_KEY_COMPONENT as s, COMPONENT_PREFIX as L } from "./constants.js";
6
- import { getNameDataTestId as w, getPropDataTestId as Y } from "../../test/getNameDataTestId.js";
7
- import { Icon as $ } from "@m4l/base";
8
- import { PropertyValueRootStyled as j, ContainerStartAdornmentStyled as q, ContainerPropertyAndValueStyled as U, NameStyled as G, ValueStyled as H, TypographyValueStyled as J } from "./slots/PropertyValueSlots.js";
9
- import { getComponentSlotRoot as S } from "../../utils/getComponentSlotRoot.js";
10
- import { getNullGuard as K } from "../../utils/getNullGuard.js";
11
- import { Label as X } from "../Label/Label.js";
12
- import { useComponentSize as k } from "@m4l/graphics";
13
- function me(h) {
1
+ import { jsxs as S, jsx as o } from "@emotion/react/jsx-runtime";
2
+ import v, { useId as W } from "react";
3
+ import x from "clsx";
4
+ import { TEST_PROP_ID as M } from "../../test/constants_no_mock.js";
5
+ import { PROPERTY_VALUE_CLASSNAMES as F, TEST_PROPS_DATA as q, PROPERTY_VALUE_KEY_COMPONENT as d, COMPONENT_PREFIX as Y } from "./constants.js";
6
+ import { getNameDataTestId as $, getPropDataTestId as j } from "../../test/getNameDataTestId.js";
7
+ import { Icon as U } from "@m4l/base";
8
+ import { PropertyValueRootStyled as G, ContainerStartAdornmentStyled as H, ContainerPropertyAndValueStyled as J, NameStyled as K, ValueStyled as X, TypographyValueStyled as k } from "./slots/PropertyValueSlots.js";
9
+ import { getComponentSlotRoot as h } from "../../utils/getComponentSlotRoot.js";
10
+ import { getNullGuard as B } from "../../utils/getNullGuard.js";
11
+ import { Label as Q } from "../Label/Label.js";
12
+ import { useComponentSize as Z } from "@m4l/graphics";
13
+ function ce(E) {
14
14
  const {
15
- property: l,
16
- startAdornment: o,
15
+ property: i,
16
+ startAdornment: t,
17
17
  value: e,
18
- className: E,
18
+ className: P,
19
19
  isForm: n,
20
- labelOverflow: m,
21
- labelWidth: P,
20
+ formLayout: m,
21
+ labelOverflow: N,
22
+ labelWidth: O,
22
23
  dataTestId: p = "",
23
24
  disabled: u = !1,
24
- controlWidth: N,
25
- mandatory: v,
26
- mandatoryMessage: T,
27
- helperMessage: g,
28
- symbol: I,
25
+ controlWidth: T,
26
+ mandatory: b,
27
+ mandatoryMessage: g,
28
+ helperMessage: I,
29
+ symbol: V,
29
30
  semanticWidth: a = "fullWidth",
30
- propertyWidth: O = 200,
31
- size: V = "medium",
31
+ propertyWidth: _ = 200,
32
+ size: R = "medium",
32
33
  direction: c,
33
- valueHeight: _,
34
- iconVariant: b = "outlined",
35
- iconColor: R = "primary",
36
- borderStyle: A = "none"
37
- } = h, d = `property-value-${D()}`, { currentSize: i } = k(V), r = {
38
- propertyWidth: O,
39
- controlWidth: N,
34
+ valueHeight: A,
35
+ iconVariant: C = "outlined",
36
+ iconColor: z = "primary",
37
+ borderStyle: L = "none"
38
+ } = E, s = `property-value-${W()}`, f = n && m === "responsive", y = f ? "wrap" : N, { currentSize: l } = Z(R), r = {
39
+ propertyWidth: _,
40
+ controlWidth: T,
41
+ formLayout: f ? m : void 0,
40
42
  disabled: n && u ? u : !1,
41
43
  isForm: !!n,
42
- labelOverflow: m,
43
- labelWidth: P,
44
+ labelOverflow: y,
45
+ labelWidth: O,
44
46
  semanticWidth: a,
45
- valueHeight: _,
46
- size: i,
47
+ valueHeight: A,
48
+ size: l,
47
49
  direction: n && c === void 0 ? "column" : c ?? "row",
48
- iconVariant: b,
49
- iconColor: R,
50
- borderStyle: A
51
- }, C = () => o ? typeof o == "string" ? /* @__PURE__ */ t(
52
- $,
50
+ iconVariant: C,
51
+ iconColor: z,
52
+ borderStyle: L
53
+ }, w = () => t ? typeof t == "string" ? /* @__PURE__ */ o(
54
+ U,
53
55
  {
54
- src: o,
56
+ src: t,
55
57
  color: "text.secondary"
56
58
  }
57
- ) : o : null, z = () => typeof e == "string" || typeof e == "number" || e === null || e === void 0 ? /* @__PURE__ */ t(
58
- J,
59
+ ) : t : null, D = () => typeof e == "string" || typeof e == "number" || e === null || e === void 0 ? /* @__PURE__ */ o(
60
+ k,
59
61
  {
60
- id: d,
61
- size: i,
62
+ id: s,
63
+ size: l,
62
64
  variant: "bodyDens",
63
65
  ownerState: r,
64
- children: K(e)
66
+ children: B(e)
65
67
  }
66
- ) : f.isValidElement(e) ? f.cloneElement(
68
+ ) : v.isValidElement(e) ? v.cloneElement(
67
69
  e,
68
- { size: i, id: d }
70
+ { size: l, id: s }
69
71
  ) : e;
70
- return /* @__PURE__ */ y(
71
- j,
72
+ return /* @__PURE__ */ S(
73
+ G,
72
74
  {
73
75
  role: n ? "property-value-form-role" : "property-value-role",
74
- className: W(
75
- S(s),
76
- a && `${S(s)}-semanticWidth-${a}`,
77
- E
76
+ className: x(
77
+ h(d),
78
+ a && `${h(d)}-semanticWidth-${a}`,
79
+ P
78
80
  ),
79
- ...Y(s, "root", p),
81
+ ...j(d, "root", p),
80
82
  ownerState: r,
81
83
  ...process.env.NODE_ENV !== "production" ? {
82
- [F]: JSON.stringify([
83
- { property: !!l, value: !!e }
84
+ [q]: JSON.stringify([
85
+ { property: !!i, value: !!e }
84
86
  ]),
85
- [x]: w(
86
- L,
87
+ [M]: $(
88
+ Y,
87
89
  "root",
88
90
  p
89
91
  )
90
92
  } : {},
91
93
  children: [
92
- o && /* @__PURE__ */ t(q, { ownerState: r, children: C() }),
93
- /* @__PURE__ */ y(U, { ownerState: r, children: [
94
- /* @__PURE__ */ t(G, { ownerState: r, className: M.name, children: l && /* @__PURE__ */ t(
95
- X,
94
+ t && /* @__PURE__ */ o(H, { ownerState: r, children: w() }),
95
+ /* @__PURE__ */ S(J, { ownerState: r, children: [
96
+ /* @__PURE__ */ o(K, { ownerState: r, className: F.name, children: i && /* @__PURE__ */ o(
97
+ Q,
96
98
  {
97
- size: i,
98
- label: l,
99
- labelOverflow: m,
100
- mandatory: v,
101
- mandatoryMessage: T,
102
- helperMessage: g,
103
- symbol: I,
104
- htmlFor: d
99
+ size: l,
100
+ label: i,
101
+ labelOverflow: y,
102
+ mandatory: b,
103
+ mandatoryMessage: g,
104
+ helperMessage: I,
105
+ symbol: V,
106
+ htmlFor: s
105
107
  }
106
108
  ) }),
107
- /* @__PURE__ */ t(H, { role: "property-value-value-role", ownerState: r, children: z() })
109
+ /* @__PURE__ */ o(X, { role: "property-value-value-role", ownerState: r, children: D() })
108
110
  ] })
109
111
  ]
110
112
  }
111
113
  );
112
114
  }
113
115
  export {
114
- me as PropertyValue
116
+ ce as PropertyValue
115
117
  };
@@ -1 +1 @@
1
- {"version":3,"file":"PropertyValue.styles.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/PropertyValue/PropertyValue.styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAU9C,eAAO,MAAM,mBAAmB,EAAE,mBA0QjC,CAAC"}
1
+ {"version":3,"file":"PropertyValue.styles.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/PropertyValue/PropertyValue.styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAW9C,eAAO,MAAM,mBAAmB,EAAE,mBAgSjC,CAAC"}
@@ -1,27 +1,28 @@
1
- import { getPropertyByString as n } from "@m4l/core";
1
+ import { getPropertyByString as t } from "@m4l/core";
2
2
  import { ICON_SVG_SHAPE_SELECTOR as s } from "@m4l/base";
3
- import { getSizeStyles as d } from "../../utils/getSizeStyles/getSizeStyles.js";
4
- import { resolveSemanticWidthPx as p, isFullRowSemanticWidth as b } from "./semanticWidth.js";
5
- const l = "container", h = {
3
+ import { getSizeStyles as p } from "../../utils/getSizeStyles/getSizeStyles.js";
4
+ import { classHelperErrorRoot as b } from "../HelperError/constant.js";
5
+ import { resolveSemanticWidthPx as l, isFullRowSemanticWidth as m } from "./semanticWidth.js";
6
+ const c = "container", h = {
6
7
  /**
7
8
  * Property Value Root Styles
8
9
  */
9
10
  Root: ({ theme: o, ownerState: i }) => {
10
- const r = (a) => ({
11
- maxWidth: `${a}px`,
12
- minWidth: `${a}px`,
13
- [`@container ${l} (max-width: ${a - 1}px)`]: {
11
+ const e = (n) => ({
12
+ maxWidth: `${n}px`,
13
+ minWidth: `${n}px`,
14
+ [`@container ${c} (max-width: ${n - 1}px)`]: {
14
15
  minWidth: "100px",
15
16
  maxWidth: "100%",
16
17
  width: "100%"
17
18
  }
18
- }), e = p(i?.semanticWidth), t = i?.semanticWidth && typeof e == "number" ? r(e) : {}, c = i?.semanticWidth && b(i.semanticWidth) ? {
19
+ }), r = l(i?.semanticWidth), a = i?.semanticWidth && typeof r == "number" ? e(r) : {}, d = i?.semanticWidth && m(i.semanticWidth) ? {
19
20
  maxWidth: "100%",
20
21
  width: "100%",
21
22
  minWidth: i.semanticWidth === "bigDescription" ? "100px" : "0"
22
23
  } : {};
23
24
  return {
24
- containerName: l,
25
+ containerName: c,
25
26
  containerType: "inline-size",
26
27
  display: "flex",
27
28
  flexDirection: "row",
@@ -78,36 +79,34 @@ const l = "container", h = {
78
79
  border: "unset"
79
80
  },
80
81
  minHeight: o.vars.size.baseSpacings.sp5,
81
- ...t,
82
- ...c
82
+ ...i?.formLayout === "responsive" ? { inlineSize: "100%", minInlineSize: 0 } : { ...a, ...d }
83
83
  };
84
84
  },
85
85
  /**
86
86
  * Property Styles
87
87
  */
88
88
  name: ({ theme: o, ownerState: i }) => {
89
- const r = typeof i?.labelWidth == "number" ? `${i.labelWidth}px` : i?.labelWidth;
89
+ const e = typeof i?.labelWidth == "number" ? `${i.labelWidth}px` : i?.labelWidth;
90
90
  return {
91
91
  display: "flex",
92
92
  alignItems: "center",
93
93
  fontSize: o.typography.body2.fontSize,
94
94
  color: o.vars.palette.text.primary,
95
95
  gap: o.vars.size.baseSpacings.sp1,
96
- overflow: i?.labelOverflow === "visible" ? "visible" : "hidden",
97
- // The name slot hugs its content instead of stretching, so the rendered label width is the
98
- // real one rather than whatever the consumer estimated. `labelWidth` survives as the
99
- // ceiling: it still clamps the slot, it just no longer dictates its width.
100
- maxWidth: r ?? "100%",
101
- width: "fit-content"
96
+ overflow: i?.labelOverflow === "ellipsis" || !i?.labelOverflow ? "hidden" : "visible",
97
+ // Keep the intrinsic width used by DynamicForm measurements. Responsive paper forms
98
+ // have an assigned cell and can give that width to the label.
99
+ maxWidth: e ?? "100%",
100
+ width: i?.formLayout === "responsive" ? "100%" : "fit-content"
102
101
  };
103
102
  },
104
103
  /**
105
104
  * Value Styles (Form and No Form Combined)
106
105
  */
107
106
  value: ({ theme: o, ownerState: i }) => {
108
- const r = typeof i?.controlWidth == "number" ? `${i.controlWidth}px` : void 0;
107
+ const e = i?.formLayout === "responsive", r = e ? l(i.semanticWidth) : i?.controlWidth, a = typeof r == "number" ? `${r}px` : void 0;
109
108
  return {
110
- width: r ?? (i?.direction === "column" ? "100%" : "fit-content"),
109
+ width: a ?? (i?.direction === "column" ? "100%" : "fit-content"),
111
110
  display: "flex",
112
111
  justifyContent: "flex-start",
113
112
  alignItems: "flex-start",
@@ -117,7 +116,23 @@ const l = "container", h = {
117
116
  gap: o.vars.size.baseSpacings["sp0-5"],
118
117
  flexDirection: "column"
119
118
  },
120
- ...r && {
119
+ ...e && {
120
+ "--m4l-form-control-block-size": "auto",
121
+ "--m4l-form-control-max-block-size": "none",
122
+ "--m4l-form-stepper-min-height-ratio": "1",
123
+ maxInlineSize: "100%",
124
+ minInlineSize: 0,
125
+ whiteSpace: "normal",
126
+ overflowWrap: "anywhere",
127
+ // Inline errors can use the field cell's width even when the control is compact.
128
+ [`& .${b}`]: {
129
+ inlineSize: "max-content",
130
+ maxInlineSize: "100cqi",
131
+ whiteSpace: "normal",
132
+ overflowWrap: "anywhere"
133
+ }
134
+ },
135
+ ...a && {
121
136
  maxWidth: "100%",
122
137
  "& > *": {
123
138
  width: "100%",
@@ -131,7 +146,7 @@ const l = "container", h = {
131
146
  * Container Start Adornment Styles
132
147
  */
133
148
  containerStartAdornment: ({ theme: o, ownerState: i }) => {
134
- const r = i?.iconColor === "text.primary" || i?.iconColor === "text.secondary" || i?.iconColor === "text.disabled", e = r ? n(o.vars.palette, String(i?.iconColor), o.vars.palette.text.primary) : n(o.vars.palette.chips, String(i?.iconColor), o.vars.palette.chips.primary)?.contained;
149
+ const e = i?.iconColor === "text.primary" || i?.iconColor === "text.secondary" || i?.iconColor === "text.disabled", r = e ? t(o.vars.palette, String(i?.iconColor), o.vars.palette.text.primary) : t(o.vars.palette.chips, String(i?.iconColor), o.vars.palette.chips.primary)?.contained;
135
150
  return {
136
151
  "&&&": {
137
152
  display: "flex",
@@ -139,34 +154,34 @@ const l = "container", h = {
139
154
  justifyContent: "center",
140
155
  overflow: "hidden",
141
156
  borderRadius: o.vars.size.borderRadius["r1-5"],
142
- ...d(
157
+ ...p(
143
158
  o,
144
159
  i?.size || "medium",
145
160
  "base",
146
- (t) => ({
147
- height: `calc(${t} + ${o.vars.size.baseSpacings.sp2})`,
148
- width: `calc(${t} + ${o.vars.size.baseSpacings.sp2})`,
149
- minHeight: `calc(${t} + ${o.vars.size.baseSpacings.sp2})`,
150
- minWidth: `calc(${t} + ${o.vars.size.baseSpacings.sp2})`
161
+ (a) => ({
162
+ height: `calc(${a} + ${o.vars.size.baseSpacings.sp2})`,
163
+ width: `calc(${a} + ${o.vars.size.baseSpacings.sp2})`,
164
+ minHeight: `calc(${a} + ${o.vars.size.baseSpacings.sp2})`,
165
+ minWidth: `calc(${a} + ${o.vars.size.baseSpacings.sp2})`
151
166
  })
152
167
  ),
153
168
  // variente de icono en modalidad outlined o containedOpacity
154
169
  ...(i?.iconVariant === "containedOpacity" || i?.iconVariant === "outlined") && {
155
170
  ...i?.iconVariant === "outlined" && {
156
171
  border: o.vars.size.borderStroke.container,
157
- borderColor: r ? o.vars.palette.border.disabled : e?.backgroundColor,
172
+ borderColor: e ? o.vars.palette.border.disabled : r?.backgroundColor,
158
173
  backgroundColor: "transparent"
159
174
  },
160
175
  ...i?.iconVariant === "containedOpacity" && {
161
- backgroundColor: r ? o.vars.palette.border.disabled : e?.backgroundColor
176
+ backgroundColor: e ? o.vars.palette.border.disabled : r?.backgroundColor
162
177
  },
163
178
  // icon mask strategy
164
179
  "& .M4LIcon-icon": {
165
- backgroundColor: r ? e : e?.color
180
+ backgroundColor: e ? r : r?.color
166
181
  },
167
182
  // 🧪 Experimental m4l/icons strategy
168
183
  [s]: {
169
- fill: r ? e : e?.color,
184
+ fill: e ? r : r?.color,
170
185
  stroke: "none"
171
186
  }
172
187
  },
@@ -174,11 +189,11 @@ const l = "container", h = {
174
189
  backgroundColor: "transparent",
175
190
  // icon mask strategy
176
191
  "& .M4LIcon-icon": {
177
- backgroundColor: r ? e : e?.color
192
+ backgroundColor: e ? r : r?.color
178
193
  },
179
194
  // 🧪 Experimental m4l/icons strategy
180
195
  [s]: {
181
- fill: r ? e : e?.color,
196
+ fill: e ? r : r?.color,
182
197
  stroke: "none"
183
198
  }
184
199
  }
@@ -191,7 +206,8 @@ const l = "container", h = {
191
206
  containerPropertyAndValue: ({ theme: o, ownerState: i }) => ({
192
207
  display: "flex",
193
208
  justifyContent: "space-between",
194
- overflow: i?.labelOverflow === "visible" ? "visible" : "hidden",
209
+ overflow: i?.labelOverflow === "ellipsis" || !i?.labelOverflow ? "hidden" : "visible",
210
+ ...i?.formLayout === "responsive" && { flex: "1 1 0", minInlineSize: 0 },
195
211
  flexDirection: i?.direction || "row",
196
212
  borderColor: o.vars.palette.border.secondary,
197
213
  width: "100%",
@@ -212,7 +228,11 @@ const l = "container", h = {
212
228
  */
213
229
  typographyValue: ({ ownerState: o }) => ({
214
230
  wordBreak: "break-word",
215
- whiteSpace: o?.direction === "column" ? "normal" : "nowrap"
231
+ whiteSpace: o?.direction === "column" ? "normal" : "nowrap",
232
+ ...o?.formLayout === "responsive" && {
233
+ maxInlineSize: "100%",
234
+ overflowWrap: "anywhere"
235
+ }
216
236
  })
217
237
  };
218
238
  export {
@@ -80,6 +80,8 @@ interface PropertyValueBaseProps extends PropertyProps, ValueProps, Omit<LabelPr
80
80
  * Define el ancho semántico del componente según el contenido.
81
81
  */
82
82
  semanticWidth?: SemanticWidthOptions;
83
+ /** Use the assigned form cell for text and apply the semantic width to the control. */
84
+ formLayout?: 'responsive';
83
85
  /** Optional width used by adaptive form labels without changing the control width. */
84
86
  labelWidth?: number | string;
85
87
  /** Optional width used to keep form controls fixed to their backend semantic width. */
@@ -193,7 +195,7 @@ export type PropertyValueProps = PropertyValueWithStartAdornment | PropertyValue
193
195
  /**
194
196
  * Estado del propietario para el componente `PropertyValue`, utilizado para personalizar estilos y comportamientos.
195
197
  */
196
- export interface PropertyVaLueOwnerState extends Pick<PropertyValueBaseProps, 'controlWidth' | 'disabled' | 'labelOverflow' | 'labelWidth' | 'propertyWidth' | 'semanticWidth' | 'valueHeight'> {
198
+ export interface PropertyVaLueOwnerState extends Pick<PropertyValueBaseProps, 'controlWidth' | 'disabled' | 'formLayout' | 'labelOverflow' | 'labelWidth' | 'propertyWidth' | 'semanticWidth' | 'valueHeight'> {
197
199
  /**
198
200
  * Indica si el componente está en modo formulario.
199
201
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/PropertyValue/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,4B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AAC,EAAE,KAAK,CAAC;IAEvB;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,kBAAkB,GAAG,+BAA+B,GAAG,kCAAkC,CAAC;AACtG;;GAEG;AACH,MAAM,WAAW,uBACf,SAAQ,IAAI,CACV,sBAAsB,EACpB,cAAc,GACd,UAAU,GACV,eAAe,GACf,YAAY,GACZ,eAAe,GACf,eAAe,GACf,aAAa,CAChB;IACD;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAClC;;OAEG;IACH,SAAS,CAAC,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAC5C;;OAEG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAC;IAChD;;OAEG;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AACD;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAC7B,sBAAsB,CAAC,sBAAsB,EAAE,OAAO,4BAA4B,EAAE,KAAK,CAAC,CACzF"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/PropertyValue/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,sBAAsB,E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AM,kBAAkB,GAAG,+BAA+B,GAAG,kCAAkC,CAAC;AACtG;;GAEG;AACH,MAAM,WAAW,uBACf,SAAQ,IAAI,CACV,sBAAsB,EACpB,cAAc,GACd,UAAU,GACV,YAAY,GACZ,eAAe,GACf,YAAY,GACZ,eAAe,GACf,eAAe,GACf,aAAa,CAChB;IACD;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAClC;;OAEG;IACH,SAAS,CAAC,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAC5C;;OAEG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAC;IAChD;;OAEG;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AACD;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAC7B,sBAAsB,CAAC,sBAAsB,EAAE,OAAO,4BAA4B,EAAE,KAAK,CAAC,CACzF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "9.86.0-beta-pkg-799-preparar-app-cd-ci.0",
3
+ "version": "9.86.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,7 +37,7 @@
37
37
  "@m4l/icons": "^1.24.1",
38
38
  "@emotion/react": "11.14.0",
39
39
  "react-toastify": "10.0.5",
40
- "react": "19.2.3",
40
+ "react": "19.1.0",
41
41
  "clsx": "2.1.1",
42
42
  "framer-motion": "6.5.1",
43
43
  "@mui/material": "5.16.7",
@@ -55,21 +55,21 @@
55
55
  "react-transition-group": "4.4.5",
56
56
  "@dnd-kit/dom": "0.5.3",
57
57
  "@dnd-kit/react": "0.5.3",
58
- "react-draggable": "4.5.0",
58
+ "react-color": "2.19.3",
59
59
  "react-rnd": "10.5.2",
60
- "@mui/x-date-pickers": "6.20.2",
61
60
  "@tanstack/react-virtual": "3.13.23",
62
- "react-dropzone": "14.4.1",
63
- "react-color": "2.19.3",
61
+ "@mui/x-date-pickers": "6.20.2",
64
62
  "react-spinners": "0.13.8",
65
- "suncalc": "2.1.1",
66
- "date-fns-tz": "2.0.0",
63
+ "react-dropzone": "14.4.1",
64
+ "react-draggable": "4.5.0",
65
+ "simplebar-react": "3.2.6",
67
66
  "chart.js": "4.5.1",
68
67
  "chartjs-chart-error-bars": "4.4.5",
69
68
  "qrcode.react": "3.2.0",
70
- "simplebar-react": "3.2.6",
71
- "re-resizable": "6.11.2",
69
+ "suncalc": "2.1.1",
70
+ "date-fns-tz": "2.0.0",
72
71
  "react-resizable-panels": "2.1.9",
72
+ "re-resizable": "6.11.2",
73
73
  "react-simple-code-editor": "0.14.1",
74
74
  "react-data-grid": "7.0.0-beta.47",
75
75
  "react-dnd": "16.0.1",