asma-ui-core 3.108.4 → 3.110.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.
Files changed (58) hide show
  1. package/dist/asma-ui-core.css +1 -1
  2. package/dist/components/data-display/interactive-chip/StyledInteractiveChip.js +18 -18
  3. package/dist/components/feedback/minimizable-dialog/MinimizableDialog.js +17 -15
  4. package/dist/components/feedback/minimizable-dialog/v2/MinimizableDialogV2.js +26 -24
  5. package/dist/components/inputs/dynamic-select/components/DynamicInteractiveChipGroup.js +59 -55
  6. package/dist/components/inputs/dynamic-select/components/DynamicSelectAutocomplete.js +88 -84
  7. package/dist/components/inputs/dynamic-select/components/DynamicSelectReadOnlyValue.js +15 -11
  8. package/dist/components/inputs/dynamic-select/components/DynamicSelectTitle.js +9 -0
  9. package/dist/components/inputs/field-styles.js +16 -6
  10. package/dist/components/inputs/form-layout/StyledFieldPair.js +22 -0
  11. package/dist/components/inputs/form-layout/StyledFieldPair.module.js +8 -0
  12. package/dist/components/inputs/form-layout/StyledFormColumn.js +13 -0
  13. package/dist/components/inputs/input-field/StyledInputField.js +235 -198
  14. package/dist/components/inputs/phone-field/StyledPhoneField.js +41 -39
  15. package/dist/components/inputs/search-field/StyledSearchField.js +22 -20
  16. package/dist/components/inputs/select/StyledSelect.js +110 -108
  17. package/dist/components/inputs/select-autocomplete/StyledSelectAutocomplete.js +111 -108
  18. package/dist/components/inputs/slider/StyledSlider.js +2 -2
  19. package/dist/components/inputs/textarea/StyledTextarea.js +50 -52
  20. package/dist/components/inputs/textarea/StyledTextarea.module.js +3 -3
  21. package/dist/components/miscellaneous/StyledFormControl.js +29 -25
  22. package/dist/components/miscellaneous/StyledInputLabel.js +28 -18
  23. package/dist/datetime/components/date-picker/components/BaseDatePickerInput.js +137 -122
  24. package/dist/datetime/components/date-picker/components/DatePickerInputRangeCompact.js +17 -15
  25. package/dist/datetime/components/date-picker/components/DatePickerInputRangeCompact.module.js +2 -2
  26. package/dist/datetime/components/date-picker/components/DatePickerInputSingle.js +9 -8
  27. package/dist/datetime/components/date-picker/components/StyledCalendarPickerSelectMonth.js +17 -14
  28. package/dist/datetime/components/date-picker/components/StyledCalendarPickerSelectYear.js +14 -9
  29. package/dist/datetime/components/time-picker/StyledTimePicker.js +78 -74
  30. package/dist/datetime/components/time-picker/TimePickerInput.js +43 -41
  31. package/dist/datetime/components/time-picker/helpers/timePickerWidth.js +12 -0
  32. package/dist/helpers/CharacterCounter.js +21 -0
  33. package/dist/index.js +219 -211
  34. package/dist/src/components/inputs/dynamic-select/components/DynamicSelectReadOnlyValue.d.ts +2 -2
  35. package/dist/src/components/inputs/dynamic-select/components/DynamicSelectTitle.d.ts +14 -0
  36. package/dist/src/components/inputs/dynamic-select/types.d.ts +11 -2
  37. package/dist/src/components/inputs/field-styles.d.ts +22 -0
  38. package/dist/src/components/inputs/form-layout/StyledFieldPair.d.ts +18 -0
  39. package/dist/src/components/inputs/form-layout/StyledFormColumn.d.ts +12 -0
  40. package/dist/src/components/inputs/form-layout/index.d.ts +4 -0
  41. package/dist/src/components/inputs/input-field/StyledInputField.d.ts +19 -4
  42. package/dist/src/components/inputs/select/StyledSelect.d.ts +7 -2
  43. package/dist/src/components/inputs/select-autocomplete/StyledSelectAutocomplete.d.ts +5 -1
  44. package/dist/src/components/inputs/textarea/StyledTextarea.d.ts +6 -0
  45. package/dist/src/components/miscellaneous/StyledFormControl.d.ts +5 -2
  46. package/dist/src/components/miscellaneous/StyledInputLabel.d.ts +7 -5
  47. package/dist/src/datetime/components/date-picker/components/BaseDatePickerInput.d.ts +2 -0
  48. package/dist/src/datetime/components/date-picker/types.d.ts +3 -0
  49. package/dist/src/datetime/components/time-picker/helpers/timePickerWidth.d.ts +7 -0
  50. package/dist/src/datetime/components/time-picker/types.d.ts +3 -1
  51. package/dist/src/helpers/CharacterCounter.d.ts +16 -0
  52. package/dist/src/helpers/CharacterCounter.test.d.ts +1 -0
  53. package/dist/src/index.d.ts +1 -0
  54. package/dist/tailwind.config.d.ts +14 -0
  55. package/package.json +1 -1
  56. package/src/styles/fieldWidthTokens.css +8 -0
  57. package/src/styles/index.css +1 -0
  58. package/tw-configs/twConfigs.json +14 -0
@@ -1,117 +1,121 @@
1
1
  import { cn as q } from "../../../../helpers/cn.js";
2
- import { StyledTooltip as z } from "../../../data-display/tooltip/StyledTooltip.js";
3
- import { LoadingIcon as te } from "../../../icons/loading-icon/LoadingIcon.js";
4
- import { CheckIcon as le } from "../../../icons/check-icon/CheckIcon.js";
5
- import { PlusIconCircle as ae } from "../../../icons/plus-icon-circle/PlusIconCircle.js";
6
- import { StyledChip as E } from "../../../data-display/chip/StyledChip.js";
7
- import { StyledCheckbox as re } from "../../checkbox/base-ui/StyledCheckbox.js";
8
- import { StyledInputField as oe } from "../../input-field/StyledInputField.js";
9
- import { StyledSelectAutocomplete as ie } from "../../select-autocomplete/StyledSelectAutocomplete.js";
10
- import { DynamicInteractiveChipGroup as ne } from "./DynamicInteractiveChipGroup.js";
11
- import { createElement as F, forwardRef as se, useCallback as h, useState as de } from "react";
12
- import { Fragment as K, jsx as l, jsxs as T } from "react/jsx-runtime";
13
- var Ce = se((O, H) => {
14
- const [_, S] = de(!1), { options: k, dataTest: f, value: g, readOnly: u, multiple: o, required: R, onChange: x, size: W, rowSize: y = "compact", title: v, noOptionsText: G, placeholder: J, disabled: I, helperText: M, disableHelperText: N, error: A, valueKey: P = "value", labelKey: Q = "label", renderLabel: s, getOptionTooltip: V, startAdornment: U, autocompleteProps: i, loading: m, maxTags: X, onFocus: Y, onBlur: Z } = O, d = (e) => typeof e == "object" ? e?.[Q]?.toString() ?? "" : e?.toString() ?? "", b = h((e) => typeof e == "object" ? e?.[P] : e, [P]), $ = h((e, t) => b(e) === b(t), [b]), w = (e) => {
15
- const t = b(e);
2
+ import { StyledTooltip as E } from "../../../data-display/tooltip/StyledTooltip.js";
3
+ import { LoadingIcon as re } from "../../../icons/loading-icon/LoadingIcon.js";
4
+ import { CheckIcon as ae } from "../../../icons/check-icon/CheckIcon.js";
5
+ import { PlusIconCircle as ie } from "../../../icons/plus-icon-circle/PlusIconCircle.js";
6
+ import { StyledChip as F } from "../../../data-display/chip/StyledChip.js";
7
+ import { StyledCheckbox as oe } from "../../checkbox/base-ui/StyledCheckbox.js";
8
+ import { fieldWidthStyle as ne } from "../../field-styles.js";
9
+ import { StyledInputField as se } from "../../input-field/StyledInputField.js";
10
+ import { StyledSelectAutocomplete as de } from "../../select-autocomplete/StyledSelectAutocomplete.js";
11
+ import { DynamicSelectTitle as ce } from "./DynamicSelectTitle.js";
12
+ import { DynamicInteractiveChipGroup as ue } from "./DynamicInteractiveChipGroup.js";
13
+ import { createElement as K, forwardRef as me, useCallback as h, useState as pe } from "react";
14
+ import { Fragment as H, jsx as l, jsxs as T } from "react/jsx-runtime";
15
+ var Ne = me((C, W) => {
16
+ const [_, O] = pe(!1), { options: S, dataTest: f, value: g, readOnly: u, multiple: i, required: R, onChange: x, size: G, rowSize: y = "compact", title: k, titleSize: J, width: I = "full", noOptionsText: M, placeholder: Q, disabled: N, helperText: U, disableHelperText: A, error: P, valueKey: V = "value", labelKey: X = "label", renderLabel: s, getOptionTooltip: $, startAdornment: Y, autocompleteProps: o, loading: m, maxTags: Z, onFocus: ee, onBlur: te } = C, d = (e) => typeof e == "object" ? e?.[X]?.toString() ?? "" : e?.toString() ?? "", p = h((e) => typeof e == "object" ? e?.[V] : e, [V]), B = h((e, t) => p(e) === p(t), [p]), v = (e) => {
17
+ const t = p(e);
16
18
  return t == null ? "" : typeof t == "string" || typeof t == "number" || typeof t == "boolean" ? String(t) : e == null ? "" : d(e);
17
- }, B = h((e) => {
18
- S(!0), i?.onOpen?.(e);
19
- }, [i]), ee = h((e, t) => {
20
- S(!1), i?.onClose?.(e, t);
21
- }, [i]);
22
- if (o && u) return /* @__PURE__ */ l(ne, { ...O });
23
- const C = v ? `${f}-title` : void 0;
19
+ }, D = h((e) => {
20
+ O(!0), o?.onOpen?.(e);
21
+ }, [o]), le = h((e, t) => {
22
+ O(!1), o?.onClose?.(e, t);
23
+ }, [o]);
24
+ if (i && u) return /* @__PURE__ */ l(ue, { ...C });
25
+ const w = k ? `${f}-title` : void 0;
24
26
  return /* @__PURE__ */ T("div", {
25
- className: "flex w-full flex-col gap-y-1",
26
- children: [v && /* @__PURE__ */ l("span", {
27
- id: C,
28
- className: "text-base font-semibold text-delta-800",
29
- children: v
30
- }), /* @__PURE__ */ l(ie, {
27
+ className: "flex flex-col gap-y-1",
28
+ "data-field-width": I,
29
+ style: ne(I),
30
+ children: [/* @__PURE__ */ l(ce, {
31
+ id: w,
32
+ title: k,
33
+ titleSize: J
34
+ }), /* @__PURE__ */ l(de, {
31
35
  open: _,
32
- onOpen: B,
33
- onClose: ee,
34
- disableCloseOnSelect: o,
36
+ onOpen: D,
37
+ onClose: le,
38
+ disableCloseOnSelect: i,
35
39
  dataTest: f,
36
- disabled: !!I || !!m,
37
- noOptionsText: G,
40
+ disabled: !!N || !!m,
41
+ noOptionsText: M,
38
42
  loading: m,
39
43
  readOnly: u,
40
44
  value: g,
41
- size: W,
45
+ size: G,
42
46
  rowSize: y,
43
47
  disableClearable: R,
44
- options: k,
48
+ options: S,
45
49
  fullWidth: !0,
46
50
  classes: { listbox: "max-h-[300px]" },
47
- getOptionLabel: i?.getOptionLabel ?? d,
51
+ getOptionLabel: o?.getOptionLabel ?? d,
48
52
  onChange: (e, t) => {
49
53
  x(t);
50
54
  },
51
55
  filterSelectedOptions: !1,
52
- isOptionEqualToValue: i?.isOptionEqualToValue ?? $,
56
+ isOptionEqualToValue: o?.isOptionEqualToValue ?? B,
53
57
  autoHeight: !0,
54
- multiple: o,
55
- renderValue: o ? (e) => {
58
+ multiple: i,
59
+ renderValue: i ? (e) => {
56
60
  if (!Array.isArray(e)) return null;
57
- const t = e, c = X ?? k.length, r = t.slice(0, c), n = t.length - c;
58
- return [...r.map((a) => /* @__PURE__ */ l(E, {
59
- dataTest: `${w(a)}-chip`,
61
+ const t = e, c = Z ?? S.length, a = t.slice(0, c), n = t.length - c;
62
+ return [...a.map((r) => /* @__PURE__ */ l(F, {
63
+ dataTest: `${v(r)}-chip`,
60
64
  readOnly: u,
61
65
  variant: "outlined",
62
- label: s ? s(a) : d(a),
66
+ label: s ? s(r) : d(r),
63
67
  classes: {
64
68
  root: "h-fit w-fit min-h-[32px]",
65
69
  label: "block whitespace-normal"
66
70
  },
67
- disabled: !!I || !!m,
71
+ disabled: !!N || !!m,
68
72
  deleteButtonTabIndex: -1,
69
73
  onDelete: () => {
70
- Array.isArray(g) && x(g.filter((p) => !$(p, a)));
74
+ Array.isArray(g) && x(g.filter((b) => !B(b, r)));
71
75
  }
72
- }, w(a))), n > 0 ? /* @__PURE__ */ l(E, {
76
+ }, v(r))), n > 0 ? /* @__PURE__ */ l(F, {
73
77
  dataTest: "remaining-count-tag-chip",
74
78
  label: `+${n}`,
75
79
  variant: "outlined",
76
80
  tabIndex: -1,
77
- onClick: B
81
+ onClick: D
78
82
  }, "remaining-count") : null];
79
83
  } : void 0,
80
- popupIcon: m ? /* @__PURE__ */ l(te, {
84
+ popupIcon: m ? /* @__PURE__ */ l(re, {
81
85
  height: 24,
82
86
  width: 24
83
- }) : o ? /* @__PURE__ */ l(ae, {
87
+ }) : i ? /* @__PURE__ */ l(ie, {
84
88
  height: 24,
85
89
  width: 24
86
90
  }) : void 0,
87
91
  renderOption: (e, t, c) => {
88
- const r = typeof t == "object" ? !!t?.disabled : !1, n = V ? V(t) : null, a = r && n ? `${e.id}-reason` : void 0, p = a && e["data-active"] !== void 0 ? !0 : void 0, j = a && /* @__PURE__ */ l("span", {
89
- id: a,
92
+ const a = typeof t == "object" ? !!t?.disabled : !1, n = $ ? $(t) : null, r = a && n ? `${e.id}-reason` : void 0, b = r && e["data-active"] !== void 0 ? !0 : void 0, j = r && /* @__PURE__ */ l("span", {
93
+ id: r,
90
94
  className: "sr-only",
91
95
  "aria-hidden": "true",
92
96
  children: n
93
97
  });
94
- if (o) {
98
+ if (i) {
95
99
  const L = c.selected;
96
- return /* @__PURE__ */ F("li", {
100
+ return /* @__PURE__ */ K("li", {
97
101
  ...e,
98
102
  role: "option",
99
103
  "aria-selected": L,
100
104
  key: e.id,
101
- onClick: r ? void 0 : e.onClick,
102
- className: q("relative box-border flex cursor-pointer items-center gap-x-1 bg-white px-2 py-2 text-base aria-selected:bg-gama-50 hover:bg-delta-50", y === "regular" ? "min-h-12" : "min-h-10", r && "cursor-not-allowed bg-delta-50 aria-selected:!bg-delta-50 hover:!bg-delta-50 [&_*]:cursor-not-allowed"),
103
- "aria-disabled": r,
104
- "aria-describedby": a
105
+ onClick: a ? void 0 : e.onClick,
106
+ className: q("relative box-border flex cursor-pointer items-center gap-x-1 bg-white px-2 py-2 text-base aria-selected:bg-gama-50 hover:bg-delta-50", y === "regular" ? "min-h-12" : "min-h-10", a && "cursor-not-allowed bg-delta-50 aria-selected:!bg-delta-50 hover:!bg-delta-50 [&_*]:cursor-not-allowed"),
107
+ "aria-disabled": a,
108
+ "aria-describedby": r
105
109
  }, j, e["data-active"] !== void 0 && /* @__PURE__ */ l("span", {
106
110
  "aria-hidden": "true",
107
111
  className: "border-l-solid pointer-events-none absolute inset-y-0 left-0 border-l-[3px] border-focus-ring"
108
- }), /* @__PURE__ */ l(z, {
112
+ }), /* @__PURE__ */ l(E, {
109
113
  arrow: !0,
110
114
  title: n,
111
- open: p,
112
- children: /* @__PURE__ */ T(K, { children: [/* @__PURE__ */ l(re, {
113
- disabled: r,
114
- dataTest: `${w(t)}-checkbox`,
115
+ open: b,
116
+ children: /* @__PURE__ */ T(H, { children: [/* @__PURE__ */ l(oe, {
117
+ disabled: a,
118
+ dataTest: `${v(t)}-checkbox`,
115
119
  size: "small",
116
120
  decorative: !0,
117
121
  hideWrapper: !0,
@@ -123,26 +127,26 @@ var Ce = se((O, H) => {
123
127
  })] })
124
128
  }));
125
129
  }
126
- const D = c.selected;
127
- return /* @__PURE__ */ F("li", {
130
+ const z = c.selected;
131
+ return /* @__PURE__ */ K("li", {
128
132
  ...e,
129
133
  role: "option",
130
- "aria-selected": D,
134
+ "aria-selected": z,
131
135
  key: e.id,
132
- className: q("relative box-border flex cursor-pointer items-center gap-x-1 px-2 py-2 text-base aria-selected:bg-gama-50 hover:bg-delta-50", y === "regular" ? "min-h-12" : "min-h-10", r && "cursor-not-allowed bg-delta-50 aria-selected:!bg-delta-50 hover:!bg-delta-50 [&_*]:cursor-not-allowed"),
133
- onClick: r ? void 0 : e.onClick,
134
- "aria-disabled": r,
135
- "aria-describedby": a
136
+ className: q("relative box-border flex cursor-pointer items-center gap-x-1 px-2 py-2 text-base aria-selected:bg-gama-50 hover:bg-delta-50", y === "regular" ? "min-h-12" : "min-h-10", a && "cursor-not-allowed bg-delta-50 aria-selected:!bg-delta-50 hover:!bg-delta-50 [&_*]:cursor-not-allowed"),
137
+ onClick: a ? void 0 : e.onClick,
138
+ "aria-disabled": a,
139
+ "aria-describedby": r
136
140
  }, j, e["data-active"] !== void 0 && /* @__PURE__ */ l("span", {
137
141
  "aria-hidden": "true",
138
142
  className: "border-l-solid pointer-events-none absolute inset-y-0 left-0 border-l-[3px] border-focus-ring"
139
- }), /* @__PURE__ */ l(z, {
143
+ }), /* @__PURE__ */ l(E, {
140
144
  arrow: !0,
141
145
  title: n,
142
- open: p,
143
- children: /* @__PURE__ */ T(K, { children: [/* @__PURE__ */ l("span", {
146
+ open: b,
147
+ children: /* @__PURE__ */ T(H, { children: [/* @__PURE__ */ l("span", {
144
148
  className: "w-5 min-w-5",
145
- children: D && /* @__PURE__ */ l(le, {
149
+ children: z && /* @__PURE__ */ l(ae, {
146
150
  className: "size-5 min-h-5 min-w-5 text-gama-500",
147
151
  height: 20,
148
152
  width: 20
@@ -153,37 +157,37 @@ var Ce = se((O, H) => {
153
157
  })] })
154
158
  }));
155
159
  },
156
- renderInput: (e) => /* @__PURE__ */ l(oe, {
160
+ renderInput: (e) => /* @__PURE__ */ l(se, {
157
161
  dataTest: `${f}-input-field`,
158
162
  ...e,
159
- inputRef: H,
160
- error: A,
161
- helperText: N ? void 0 : M,
162
- reserveHelperText: N ? !1 : A !== void 0,
163
+ inputRef: W,
164
+ error: P,
165
+ helperText: A ? void 0 : U,
166
+ reserveHelperText: A ? !1 : P !== void 0,
163
167
  variant: "outlined",
164
168
  label: "",
165
- placeholder: J,
169
+ placeholder: Q,
166
170
  readOnly: u,
167
- onFocus: Y,
168
- onBlur: Z,
171
+ onFocus: ee,
172
+ onBlur: te,
169
173
  onKeyDown: e.onKeyDown,
170
174
  autoComplete: "off",
171
175
  slotProps: {
172
176
  ...e.slotProps,
173
177
  input: {
174
178
  ...e.slotProps?.input ?? {},
175
- startAdornment: U ?? e.slotProps?.input?.startAdornment
179
+ startAdornment: Y ?? e.slotProps?.input?.startAdornment
176
180
  },
177
181
  htmlInput: {
178
182
  ...e.slotProps?.htmlInput ?? {},
179
- ...C ? { "aria-labelledby": C } : {}
183
+ ...w ? { "aria-labelledby": w } : {}
180
184
  }
181
185
  }
182
186
  }),
183
- ...i
187
+ ...o
184
188
  })]
185
189
  });
186
190
  });
187
191
  export {
188
- Ce as DynamicSelectAutocomplete
192
+ Ne as DynamicSelectAutocomplete
189
193
  };
@@ -1,19 +1,23 @@
1
- import { jsx as d, jsxs as u } from "react/jsx-runtime";
2
- var m = ({ dataTest: a, options: c, value: t, title: n, valueKey: i = "value", labelKey: o = "label", renderLabel: r }) => {
3
- const s = (e) => typeof e == "object" ? e?.[i] : e, f = (e) => typeof e == "object" ? e?.[o]?.toString() ?? "" : e?.toString() ?? "", l = t == null ? null : c.find((e) => s(e) === s(t)) ?? t;
4
- return /* @__PURE__ */ u("div", {
5
- "data-testid": `${a}-read-only`,
1
+ import { fieldWidthStyle as y } from "../../field-styles.js";
2
+ import { DynamicSelectTitle as x } from "./DynamicSelectTitle.js";
3
+ import { jsx as d, jsxs as g } from "react/jsx-runtime";
4
+ var j = ({ dataTest: r, options: c, value: t, title: o, titleSize: s, width: a = "full", valueKey: f = "value", labelKey: m = "label", renderLabel: i }) => {
5
+ const n = (e) => typeof e == "object" ? e?.[f] : e, u = (e) => typeof e == "object" ? e?.[m]?.toString() ?? "" : e?.toString() ?? "", l = t == null ? null : c.find((e) => n(e) === n(t)) ?? t;
6
+ return /* @__PURE__ */ g("div", {
7
+ "data-testid": `${r}-read-only`,
6
8
  className: "flex flex-col gap-y-1",
7
- children: [n && /* @__PURE__ */ d("span", {
8
- className: "text-base font-semibold text-delta-800",
9
- children: n
9
+ "data-field-width": a,
10
+ style: y(a),
11
+ children: [/* @__PURE__ */ d(x, {
12
+ title: o,
13
+ titleSize: s
10
14
  }), /* @__PURE__ */ d("div", {
11
- "data-testid": `${a}-read-only-value`,
15
+ "data-testid": `${r}-read-only-value`,
12
16
  className: "text-base/6 text-delta-700",
13
- children: l === null ? "-" : r ? r(l) : f(l)
17
+ children: l === null ? "-" : i ? i(l) : u(l)
14
18
  })]
15
19
  });
16
20
  };
17
21
  export {
18
- m as DynamicSelectReadOnlyValue
22
+ j as DynamicSelectReadOnlyValue
19
23
  };
@@ -0,0 +1,9 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ var r = ({ title: e, titleSize: l = "base", id: a }) => e == null || e === !1 || e === "" ? null : /* @__PURE__ */ t("span", {
3
+ id: a,
4
+ className: l === "lg" ? "text-lg/7 font-semibold text-delta-800" : "text-base font-semibold text-delta-800",
5
+ children: e
6
+ });
7
+ export {
8
+ r as DynamicSelectTitle
9
+ };
@@ -1,4 +1,4 @@
1
- import { cn as n } from "../../helpers/cn.js";
1
+ import { cn as i } from "../../helpers/cn.js";
2
2
  var d = () => ({
3
3
  boxSizing: "border-box",
4
4
  height: 40,
@@ -22,13 +22,23 @@ var d = () => ({
22
22
  } : {
23
23
  top: "50%",
24
24
  transform: "translateY(-50%)"
25
- }, x = ({ focused: e, error: r, disabled: t, readOnly: o, borderless: a }) => n("pointer-events-none absolute inset-0 rounded border border-solid transition-colors", a && !e ? "border-transparent" : t ? "border-delta-300" : o ? "border-delta-200" : r ? "border-error-500" : e ? "border-focus-ring shadow-[inset_0_0_0_2px_var(--colors-focus-ring)]" : "border-delta-500 group-hover:border-2 group-hover:border-gama-300"), b = ({ focused: e, error: r, disabled: t, readOnly: o, notched: a = !0 }) => n("pointer-events-none absolute z-0 m-0 box-border min-w-0 overflow-hidden rounded border border-solid transition-colors", a ? "inset-x-0 bottom-0 top-[-5px] px-2 py-0" : "inset-0", t ? "border-delta-300" : o ? "border-delta-200" : r ? "border-error-500" : e ? "border-focus-ring shadow-[inset_0_0_0_2px_var(--colors-focus-ring)]" : "border-delta-500 group-hover:border-2 group-hover:border-gama-300"), g = (e) => n("block h-[11px] overflow-hidden bg-white p-0 text-xs leading-[23px] text-transparent transition-[max-width] duration-150", e ? "max-w-full" : "max-w-[0.01px]"), p = ({ shrink: e, focused: r, error: t, disabled: o, readOnly: a }) => n("pointer-events-none absolute left-[14px] z-10 max-w-[calc(100%-1.75rem)] truncate transition-colors duration-150", o ? "text-delta-300" : a ? "text-delta-800" : t ? "text-error-500" : r ? "text-gama-500" : e ? "text-delta-800" : "text-delta-500", e ? "bg-white px-1 text-xs leading-[16px] tracking-[0.24px]" : "text-base leading-[23px] tracking-[0.00938em]");
25
+ }, b = (e) => ({
26
+ width: "100%",
27
+ maxWidth: `var(--field-width-${e})`
28
+ }), x = {
29
+ "--field-width-full": "100%",
30
+ "--form-column-width": "100%"
31
+ }, g = (e) => e <= 9 ? "xs" : e <= 15 ? "s" : e <= 27 ? "m" : "full", p = ({ disabled: e } = {}) => i("block pb-1 text-base font-semibold", e ? "text-delta-300" : "text-delta-800"), u = ({ focused: e, error: r, disabled: t, readOnly: o, borderless: a }) => i("pointer-events-none absolute inset-0 rounded border border-solid transition-colors", a && !e ? "border-transparent" : t ? "border-delta-300" : o ? "border-delta-200" : r ? "border-error-500" : e ? "border-focus-ring shadow-[inset_0_0_0_2px_var(--colors-focus-ring)]" : "border-delta-500 group-hover:border-2 group-hover:border-gama-300"), h = ({ focused: e, error: r, disabled: t, readOnly: o, notched: a = !0 }) => i("pointer-events-none absolute z-0 m-0 box-border min-w-0 overflow-hidden rounded border border-solid transition-colors", a ? "inset-x-0 bottom-0 top-[-5px] px-2 py-0" : "inset-0", t ? "border-delta-300" : o ? "border-delta-200" : r ? "border-error-500" : e ? "border-focus-ring shadow-[inset_0_0_0_2px_var(--colors-focus-ring)]" : "border-delta-500 group-hover:border-2 group-hover:border-gama-300"), f = (e) => i("block h-[11px] overflow-hidden bg-white p-0 text-xs leading-[23px] text-transparent transition-[max-width] duration-150", e ? "max-w-full" : "max-w-[0.01px]"), m = ({ shrink: e, focused: r, error: t, disabled: o, readOnly: a }) => i("pointer-events-none absolute left-[14px] z-10 max-w-[calc(100%-1.75rem)] truncate transition-colors duration-150", o ? "text-delta-300" : a ? "text-delta-800" : t ? "text-error-500" : r ? "text-gama-500" : e ? "text-delta-800" : "text-delta-500", e ? "bg-white px-1 text-xs leading-[16px] tracking-[0.24px]" : "text-base leading-[23px] tracking-[0.00938em]");
26
32
  export {
27
- p as floatingLabelClass,
33
+ p as fieldLabelAboveClass,
34
+ g as fieldWidthForMaxLength,
35
+ b as fieldWidthStyle,
36
+ m as floatingLabelClass,
28
37
  s as floatingLabelLayoutStyle,
29
- g as notchedLegendClass,
30
- b as notchedOutlineClass,
31
- x as outlineClass,
38
+ x as fullScreenFieldWidthVars,
39
+ f as notchedLegendClass,
40
+ h as notchedOutlineClass,
41
+ u as outlineClass,
32
42
  l as singleLineInputLayoutStyle,
33
43
  d as singleLineShellLayoutStyle
34
44
  };
@@ -0,0 +1,22 @@
1
+ import { cn as r } from "../../../helpers/cn.js";
2
+ import { fieldLabelAboveClass as s } from "../field-styles.js";
3
+ import e from "./StyledFieldPair.module.js";
4
+ import { jsx as l, jsxs as o } from "react/jsx-runtime";
5
+ var p = ({ children: i, legend: d, className: t, dataTest: a }) => d == null ? /* @__PURE__ */ l("div", {
6
+ "data-testid": a,
7
+ className: r(e.row, t),
8
+ children: i
9
+ }) : /* @__PURE__ */ o("fieldset", {
10
+ "data-testid": a,
11
+ className: r(e.fieldset, t),
12
+ children: [/* @__PURE__ */ l("legend", {
13
+ className: r(e.legend, s()),
14
+ children: d
15
+ }), /* @__PURE__ */ l("div", {
16
+ className: e.row,
17
+ children: i
18
+ })]
19
+ });
20
+ export {
21
+ p as StyledFieldPair
22
+ };
@@ -0,0 +1,8 @@
1
+ var e = "_fieldset_17n6s_1", _ = "_legend_17n6s_8", d = "_row_17n6s_12", l = {
2
+ fieldset: e,
3
+ legend: _,
4
+ row: d
5
+ };
6
+ export {
7
+ l as default
8
+ };
@@ -0,0 +1,13 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ var i = ({ children: t, className: d, dataTest: m }) => /* @__PURE__ */ o("div", {
3
+ "data-testid": m,
4
+ className: d,
5
+ style: {
6
+ width: "100%",
7
+ maxWidth: "var(--form-column-width)"
8
+ },
9
+ children: t
10
+ });
11
+ export {
12
+ i as StyledFormColumn
13
+ };