asma-ui-core 3.109.0 → 3.111.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 (59) hide show
  1. package/dist/asma-ui-core.css +1 -1
  2. package/dist/components/feedback/minimizable-dialog/MinimizableDialog.js +41 -39
  3. package/dist/components/feedback/minimizable-dialog/v2/MinimizableDialogV2.js +62 -60
  4. package/dist/components/inputs/dynamic-select/components/DynamicInteractiveChipGroup.js +61 -58
  5. package/dist/components/inputs/dynamic-select/components/DynamicSelectAutocomplete.js +74 -71
  6. package/dist/components/inputs/dynamic-select/components/DynamicSelectReadOnlyValue.js +13 -10
  7. package/dist/components/inputs/field-styles.js +16 -6
  8. package/dist/components/inputs/form-layout/StyledFieldPair.js +22 -0
  9. package/dist/components/inputs/form-layout/StyledFieldPair.module.js +8 -0
  10. package/dist/components/inputs/form-layout/StyledFormColumn.js +13 -0
  11. package/dist/components/inputs/input-field/StyledInputField.js +235 -198
  12. package/dist/components/inputs/phone-field/StyledPhoneField.js +41 -39
  13. package/dist/components/inputs/search-field/StyledSearchField.js +22 -20
  14. package/dist/components/inputs/select/StyledSelect.js +110 -108
  15. package/dist/components/inputs/select-autocomplete/StyledSelectAutocomplete.js +111 -108
  16. package/dist/components/inputs/slider/StyledSlider.js +2 -2
  17. package/dist/components/inputs/textarea/StyledTextarea.js +50 -52
  18. package/dist/components/inputs/textarea/StyledTextarea.module.js +3 -3
  19. package/dist/components/miscellaneous/StyledFormControl.js +29 -25
  20. package/dist/components/miscellaneous/StyledInputLabel.js +28 -18
  21. package/dist/datetime/components/date-picker/components/BaseDatePickerInput.js +137 -122
  22. package/dist/datetime/components/date-picker/components/DatePickerInputRangeCompact.js +17 -15
  23. package/dist/datetime/components/date-picker/components/DatePickerInputRangeCompact.module.js +2 -2
  24. package/dist/datetime/components/date-picker/components/DatePickerInputSingle.js +9 -8
  25. package/dist/datetime/components/date-picker/components/StyledCalendarPickerSelectMonth.js +17 -14
  26. package/dist/datetime/components/date-picker/components/StyledCalendarPickerSelectYear.js +14 -9
  27. package/dist/datetime/components/time-picker/StyledTimePicker.js +78 -74
  28. package/dist/datetime/components/time-picker/TimePickerInput.js +43 -41
  29. package/dist/datetime/components/time-picker/helpers/timePickerWidth.js +12 -0
  30. package/dist/helpers/CharacterCounter.js +21 -0
  31. package/dist/hooks/useBackCloses.hook.js +67 -38
  32. package/dist/hooks/useTopLayer.hook.js +30 -26
  33. package/dist/index.js +284 -273
  34. package/dist/src/components/inputs/dynamic-select/components/DynamicSelectReadOnlyValue.d.ts +2 -2
  35. package/dist/src/components/inputs/dynamic-select/types.d.ts +3 -0
  36. package/dist/src/components/inputs/field-styles.d.ts +22 -0
  37. package/dist/src/components/inputs/form-layout/StyledFieldPair.d.ts +18 -0
  38. package/dist/src/components/inputs/form-layout/StyledFormColumn.d.ts +12 -0
  39. package/dist/src/components/inputs/form-layout/index.d.ts +4 -0
  40. package/dist/src/components/inputs/input-field/StyledInputField.d.ts +19 -4
  41. package/dist/src/components/inputs/select/StyledSelect.d.ts +7 -2
  42. package/dist/src/components/inputs/select-autocomplete/StyledSelectAutocomplete.d.ts +5 -1
  43. package/dist/src/components/inputs/textarea/StyledTextarea.d.ts +6 -0
  44. package/dist/src/components/miscellaneous/StyledFormControl.d.ts +5 -2
  45. package/dist/src/components/miscellaneous/StyledInputLabel.d.ts +7 -5
  46. package/dist/src/datetime/components/date-picker/components/BaseDatePickerInput.d.ts +2 -0
  47. package/dist/src/datetime/components/date-picker/types.d.ts +3 -0
  48. package/dist/src/datetime/components/time-picker/helpers/timePickerWidth.d.ts +7 -0
  49. package/dist/src/datetime/components/time-picker/types.d.ts +3 -1
  50. package/dist/src/helpers/CharacterCounter.d.ts +16 -0
  51. package/dist/src/helpers/CharacterCounter.test.d.ts +1 -0
  52. package/dist/src/hooks/useBackCloses.hook.d.ts +47 -2
  53. package/dist/src/hooks/useTopLayer.hook.d.ts +6 -0
  54. package/dist/src/index.d.ts +2 -0
  55. package/dist/tailwind.config.d.ts +14 -0
  56. package/package.json +1 -1
  57. package/src/styles/fieldWidthTokens.css +8 -0
  58. package/src/styles/index.css +1 -0
  59. package/tw-configs/twConfigs.json +14 -0
@@ -1,44 +1,48 @@
1
- import { cn as y } from "../../helpers/cn.js";
2
- import { resolveSx as g } from "../../helpers/sx.js";
3
- import { FormControlContext as h } from "./FormControlContext.js";
4
- import { useId as j, useMemo as w, useState as n } from "react";
5
- import { jsx as a } from "react/jsx-runtime";
6
- var A = ({ children: c, error: e = !1, disabled: o = !1, required: l = !1, size: t = "medium", fullWidth: i, className: d, style: u, sx: x, id: r, onFocus: p, onBlur: v, onClick: F }) => {
7
- const s = j(), [m, C] = n(!1), [f, I] = n(!1), S = w(() => ({
1
+ import { cn as C } from "../../helpers/cn.js";
2
+ import { resolveSx as I } from "../../helpers/sx.js";
3
+ import { fieldWidthStyle as W } from "../inputs/field-styles.js";
4
+ import { FormControlContext as g } from "./FormControlContext.js";
5
+ import { useId as j, useMemo as M, useState as a } from "react";
6
+ import { jsx as i } from "react/jsx-runtime";
7
+ var B = ({ children: n, error: e = !1, disabled: l = !1, required: t = !1, size: o = "medium", width: r = "full", fullWidth: N, className: c, style: u, sx: p, id: f, onFocus: x, onBlur: v, onClick: h }) => {
8
+ const s = j(), [m, y] = a(!1), [d, F] = a(!1), S = M(() => ({
8
9
  focused: m,
9
- filled: f,
10
+ filled: d,
10
11
  error: e,
11
- disabled: o,
12
- required: l,
13
- size: t,
14
- labelId: r ?? s,
15
- setFocused: C,
16
- setFilled: I
12
+ disabled: l,
13
+ required: t,
14
+ size: o,
15
+ labelId: f ?? s,
16
+ setFocused: y,
17
+ setFilled: F
17
18
  }), [
18
19
  m,
19
- f,
20
+ d,
20
21
  e,
21
- o,
22
22
  l,
23
23
  t,
24
- r,
24
+ o,
25
+ f,
25
26
  s
26
27
  ]);
27
- return /* @__PURE__ */ a(h.Provider, {
28
+ return /* @__PURE__ */ i(g.Provider, {
28
29
  value: S,
29
- children: /* @__PURE__ */ a("div", {
30
- className: y("relative inline-flex flex-col", i && "w-full", d),
30
+ children: /* @__PURE__ */ i("div", {
31
+ className: C("relative flex-col", c),
32
+ "data-field-width": r,
31
33
  style: {
32
- ...g(x),
34
+ display: "flex",
35
+ ...W(r),
36
+ ...I(p),
33
37
  ...u
34
38
  },
35
- onFocus: p,
39
+ onFocus: x,
36
40
  onBlur: v,
37
- onClick: F,
38
- children: c
41
+ onClick: h,
42
+ children: n
39
43
  })
40
44
  });
41
45
  };
42
46
  export {
43
- A as StyledFormControl
47
+ B as StyledFormControl
44
48
  };
@@ -1,23 +1,33 @@
1
- import { cn as m } from "../../helpers/cn.js";
2
- import { floatingLabelClass as u, floatingLabelLayoutStyle as b } from "../inputs/field-styles.js";
3
- import { useFormControlContext as p } from "./FormControlContext.js";
4
- import { jsxs as x } from "react/jsx-runtime";
5
- var S = ({ children: o, htmlFor: s, id: l, required: t, disabled: i, error: a, size: d, shrink: n, className: f }) => {
6
- const e = p(), r = n ?? (e ? e.focused || e.filled : !1), c = t ?? e?.required ?? !1;
7
- return /* @__PURE__ */ x("label", {
8
- htmlFor: s,
9
- id: l ?? e?.labelId,
10
- className: m(u({
11
- shrink: r,
1
+ import { cn as t } from "../../helpers/cn.js";
2
+ import { fieldLabelAboveClass as x, floatingLabelClass as h, floatingLabelLayoutStyle as v } from "../inputs/field-styles.js";
3
+ import { useFormControlContext as L } from "./FormControlContext.js";
4
+ import { jsx as n, jsxs as b } from "react/jsx-runtime";
5
+ var g = ({ children: l, htmlFor: r, id: s, required: f, disabled: a, error: c, size: u, shrink: m, labelPlacement: p = "above", className: i }) => {
6
+ const e = L(), o = m ?? (e ? e.focused || e.filled : !1), d = f ?? e?.required ?? !1;
7
+ return p === "above" ? /* @__PURE__ */ n("div", {
8
+ className: t(x({ disabled: a ?? e?.disabled }), i),
9
+ children: /* @__PURE__ */ b("label", {
10
+ htmlFor: r,
11
+ id: s ?? e?.labelId,
12
+ children: [l, d && /* @__PURE__ */ n("span", {
13
+ "aria-hidden": "true",
14
+ children: " *"
15
+ })]
16
+ })
17
+ }) : /* @__PURE__ */ b("label", {
18
+ htmlFor: r,
19
+ id: s ?? e?.labelId,
20
+ className: t(h({
21
+ shrink: o,
12
22
  focused: e?.focused,
13
- error: a ?? e?.error,
14
- disabled: i ?? e?.disabled,
15
- size: d ?? e?.size
16
- }), f),
17
- style: b(r),
18
- children: [o, c && " *"]
23
+ error: c ?? e?.error,
24
+ disabled: a ?? e?.disabled,
25
+ size: u ?? e?.size
26
+ }), i),
27
+ style: v(o),
28
+ children: [l, d && " *"]
19
29
  });
20
30
  };
21
31
  export {
22
- S as StyledInputLabel
32
+ g as StyledInputLabel
23
33
  };
@@ -1,150 +1,165 @@
1
- import { StyledInputField as K } from "../../../../components/inputs/input-field/StyledInputField.js";
2
- import { getValue as h } from "../helpers.js";
3
- import { DatePickerButton as Q } from "./DatePickerButton.js";
4
- import { getTitleLabelling as X } from "../../../helpers/getTitleLabelling.js";
5
- import { DATE_INPUT_FONT_FAMILY as Z } from "../../../../helpers/inputMask.js";
6
- import { useDatePickerMask as $ } from "../hooks/useDatePickerMask.js";
7
- import { defaultDatePickerValidationMessages as ee, useDatePickerValidation as te } from "../hooks/useDatePickerValidation.js";
8
- import { useEffect as I, useId as ae, useState as N } from "react";
9
- import { jsx as p, jsxs as V } from "react/jsx-runtime";
10
- import { isValid as re, parse as oe } from "date-fns";
11
- var he = (F) => {
12
- const { onClick: w, inputClassName: H, dateFormat: r, selected: e, error: Y, helperText: A, errorText: B, onInputChange: v, hideCalendar: E, locale: o, disabledDays: l, label: g, title: u, inputAriaProps: O, readOnly: t, disallowPast: i, disallowFuture: s, validateOnCalendarClose: D, onValidatedOnce: x, hideDefaultHelperText: L, required: d, minDate: n, ...f } = F, { validationError: R, handleValidation: c, errHelperText: S, clearValidation: y } = te(ee), { maskRef: _ } = $(), T = ae(), [a, C] = N(e ? h(e, r) : ""), [P, j] = N({
1
+ import { fieldLabelAboveClass as w, fieldWidthStyle as Z } from "../../../../components/inputs/field-styles.js";
2
+ import { StyledInputField as $ } from "../../../../components/inputs/input-field/StyledInputField.js";
3
+ import { getValue as v } from "../helpers.js";
4
+ import { DatePickerButton as ee } from "./DatePickerButton.js";
5
+ import { getTitleLabelling as te } from "../../../helpers/getTitleLabelling.js";
6
+ import { DATE_INPUT_FONT_FAMILY as ae } from "../../../../helpers/inputMask.js";
7
+ import { useDatePickerMask as re } from "../hooks/useDatePickerMask.js";
8
+ import { defaultDatePickerValidationMessages as le, useDatePickerValidation as ie } from "../hooks/useDatePickerValidation.js";
9
+ import { useEffect as F, useId as V, useState as A } from "react";
10
+ import { jsx as d, jsxs as D } from "react/jsx-runtime";
11
+ import { isValid as de, parse as oe } from "date-fns";
12
+ var xe = (H) => {
13
+ const { onClick: Y, inputClassName: B, dateFormat: a, selected: e, error: E, helperText: L, errorText: O, onInputChange: g, hideCalendar: S, locale: r, disabledDays: o, label: f, title: h, inputAriaProps: R, readOnly: l, disallowPast: s, disallowFuture: n, validateOnCalendarClose: x, onValidatedOnce: b, hideDefaultHelperText: _, required: i, minDate: c, width: y = "s", ...m } = H, { validationError: j, handleValidation: p, errHelperText: q, clearValidation: C } = ie(le), { maskRef: W } = re(), T = V(), P = V(), [t, M] = A(e ? v(e, a) : ""), [N, z] = A({
13
14
  selected: e,
14
- dateFormat: r
15
+ dateFormat: a
15
16
  });
16
- (e !== P.selected || r !== P.dateFormat) && (j({
17
+ (e !== N.selected || a !== N.dateFormat) && (z({
17
18
  selected: e,
18
- dateFormat: r
19
- }), C(e ? h(e, r) : ""));
20
- const q = o?.code?.startsWith("nb") ? "DD/MM/ÅÅÅÅ" : "DD/MM/YYYY", z = L ? void 0 : q, M = !!(R || Y), U = M ? B ?? S : A ?? z;
21
- I(() => {
19
+ dateFormat: a
20
+ }), M(e ? v(e, a) : ""));
21
+ const U = r?.code?.startsWith("nb") ? "DD/MM/ÅÅÅÅ" : "DD/MM/YYYY", G = _ ? void 0 : U, I = !!(j || E), J = I ? O ?? q : L ?? G;
22
+ F(() => {
22
23
  if (!e) {
23
- y();
24
+ C();
24
25
  return;
25
26
  }
26
- c({
27
- value: h(e, r),
28
- disabledDays: l,
29
- localeCode: o?.code,
30
- disallowPast: i,
31
- disallowFuture: s,
32
- required: d,
33
- minDate: n
27
+ p({
28
+ value: v(e, a),
29
+ disabledDays: o,
30
+ localeCode: r?.code,
31
+ disallowPast: s,
32
+ disallowFuture: n,
33
+ required: i,
34
+ minDate: c
34
35
  });
35
36
  }, [
36
37
  e,
37
- r,
38
- l,
39
- o?.code,
40
- i,
38
+ a,
39
+ o,
40
+ r?.code,
41
41
  s,
42
- d,
43
42
  n,
43
+ i,
44
44
  c,
45
- y
45
+ p,
46
+ C
46
47
  ]);
47
- const W = /\d/.test(a), G = (m) => {
48
- const k = m.target.value;
49
- C(k.replace(/\D/g, "").length ? k : "");
48
+ const K = /\d/.test(t), Q = (u) => {
49
+ const k = u.target.value;
50
+ M(k.replace(/\D/g, "").length ? k : "");
50
51
  };
51
- I(() => {
52
- D && (c({
53
- value: a,
54
- disabledDays: l,
55
- localeCode: o?.code,
56
- disallowPast: i,
57
- disallowFuture: s,
58
- required: d,
59
- minDate: n
60
- }), x?.());
52
+ F(() => {
53
+ x && (p({
54
+ value: t,
55
+ disabledDays: o,
56
+ localeCode: r?.code,
57
+ disallowPast: s,
58
+ disallowFuture: n,
59
+ required: i,
60
+ minDate: c
61
+ }), b?.());
61
62
  }, [
62
- D,
63
- a,
64
- l,
65
- o?.code,
66
- i,
63
+ x,
64
+ t,
65
+ o,
66
+ r?.code,
67
67
  s,
68
- d,
69
68
  n,
70
- x,
71
- c
69
+ i,
70
+ c,
71
+ b,
72
+ p
72
73
  ]);
73
- const J = () => {
74
- if (c({
75
- value: a,
76
- disabledDays: l,
77
- localeCode: o?.code,
78
- disallowPast: i,
79
- disallowFuture: s,
80
- required: d,
81
- minDate: n
74
+ const X = () => {
75
+ if (p({
76
+ value: t,
77
+ disabledDays: o,
78
+ localeCode: r?.code,
79
+ disallowPast: s,
80
+ disallowFuture: n,
81
+ required: i,
82
+ minDate: c
82
83
  })) return;
83
- if (!a.replace(/\D/g, "").length) {
84
- v?.(void 0);
84
+ if (!t.replace(/\D/g, "").length) {
85
+ g?.(void 0);
85
86
  return;
86
87
  }
87
- const m = oe(a, "dd/MM/yyyy", /* @__PURE__ */ new Date());
88
- v?.(re(m) ? m : void 0);
89
- }, b = t ? 120 : 156;
90
- return /* @__PURE__ */ V("div", {
88
+ const u = oe(t, "dd/MM/yyyy", /* @__PURE__ */ new Date());
89
+ g?.(de(u) ? u : void 0);
90
+ };
91
+ return /* @__PURE__ */ D("div", {
91
92
  className: "cursor-default",
92
- children: [u && /* @__PURE__ */ p("div", {
93
- id: T,
94
- className: "pb-1 font-roboto font-semibold text-delta-800",
95
- children: u
96
- }), /* @__PURE__ */ V("div", {
97
- className: "flex gap-1",
98
- style: { height: t ? 40 : 75 },
99
- children: [/* @__PURE__ */ p("div", {
100
- style: { width: b },
101
- children: /* @__PURE__ */ p("div", {
102
- className: "relative",
103
- children: /* @__PURE__ */ p(K, {
104
- ...f,
105
- label: g,
106
- readOnly: t,
107
- "data-testid": f.dataTest,
108
- autoComplete: "off",
109
- inputRef: t ? void 0 : _,
110
- placeholder: !t && !W ? " / / " : void 0,
111
- size: "small",
112
- value: t ? a.replaceAll("/", ".") : a,
113
- className: H,
114
- style: { width: b },
115
- error: M,
116
- onBlur: t ? void 0 : J,
117
- helperText: U,
118
- slotProps: {
119
- formHelperText: { sx: {
120
- marginTop: "4px",
121
- marginLeft: 0,
122
- marginRight: 0
123
- } },
124
- htmlInput: {
125
- ...X({
126
- title: u,
127
- titleId: T,
128
- label: g,
129
- inputAriaProps: O
130
- }),
131
- ...t ? {} : {
132
- inputMode: "numeric",
133
- style: { fontFamily: Z }
93
+ "data-field-width": y,
94
+ style: Z(y),
95
+ children: [
96
+ h && /* @__PURE__ */ d("div", {
97
+ id: T,
98
+ className: w({ disabled: m.disabled }),
99
+ children: h
100
+ }),
101
+ f && /* @__PURE__ */ d("div", {
102
+ className: w({ disabled: m.disabled }),
103
+ children: /* @__PURE__ */ D("label", {
104
+ htmlFor: P,
105
+ children: [f, i && /* @__PURE__ */ d("span", {
106
+ "aria-hidden": "true",
107
+ children: " *"
108
+ })]
109
+ })
110
+ }),
111
+ /* @__PURE__ */ D("div", {
112
+ className: "flex items-start gap-1",
113
+ children: [/* @__PURE__ */ d("div", {
114
+ className: "min-w-0 flex-1",
115
+ children: /* @__PURE__ */ d("div", {
116
+ className: "relative",
117
+ children: /* @__PURE__ */ d($, {
118
+ ...m,
119
+ id: P,
120
+ readOnly: l,
121
+ "data-testid": m.dataTest,
122
+ autoComplete: "off",
123
+ inputRef: l ? void 0 : W,
124
+ placeholder: !l && !K ? " / / " : void 0,
125
+ size: "small",
126
+ value: l ? t.replaceAll("/", ".") : t,
127
+ className: B,
128
+ error: I,
129
+ onBlur: l ? void 0 : X,
130
+ helperText: J,
131
+ slotProps: {
132
+ formHelperText: { sx: {
133
+ marginTop: "4px",
134
+ marginLeft: 0,
135
+ marginRight: 0
136
+ } },
137
+ htmlInput: {
138
+ "aria-required": i ? !0 : void 0,
139
+ ...te({
140
+ title: h,
141
+ titleId: T,
142
+ label: f,
143
+ inputAriaProps: R
144
+ }),
145
+ ...l ? {} : {
146
+ inputMode: "numeric",
147
+ style: { fontFamily: ae }
148
+ }
134
149
  }
135
- }
136
- },
137
- onChange: G
150
+ },
151
+ onChange: Q
152
+ })
138
153
  })
139
- })
140
- }), !E && !t && /* @__PURE__ */ p(Q, {
141
- onClick: w,
142
- disabled: !!f.disabled,
143
- localeCode: o?.code
144
- })]
145
- })]
154
+ }), !S && !l && /* @__PURE__ */ d(ee, {
155
+ onClick: Y,
156
+ disabled: !!m.disabled,
157
+ localeCode: r?.code
158
+ })]
159
+ })
160
+ ]
146
161
  });
147
162
  };
148
163
  export {
149
- he as BaseDatePickerInput
164
+ xe as BaseDatePickerInput
150
165
  };
@@ -1,14 +1,14 @@
1
- import f from "./DatePickerInputRangeCompact.module.js";
2
- import { BaseDatePickerInput as u } from "./BaseDatePickerInput.js";
3
- import C from "clsx";
4
- import { jsx as x, jsxs as F } from "react/jsx-runtime";
5
- import { addDays as g } from "date-fns";
6
- var v = ({ datePickerProps: h, onClick: l }) => {
7
- const { dataTest: b, className: D, inputClassName: i, disabled: a, readOnly: m, dateFormat: d, onInputChange: o, hideCalendar: s, locale: p, selected: t, disabledDays: n, validateOnCalendarClose: T, onValidatedOnce: c, ...e } = h;
8
- return /* @__PURE__ */ F("div", {
9
- "data-testid": b,
10
- className: C(D, f["styled-date-picker-input-range-compact"], a && f["range-compact-disabled"]),
11
- children: [/* @__PURE__ */ x(u, {
1
+ import u from "./DatePickerInputRangeCompact.module.js";
2
+ import { BaseDatePickerInput as x } from "./BaseDatePickerInput.js";
3
+ import F from "clsx";
4
+ import { jsx as g, jsxs as y } from "react/jsx-runtime";
5
+ import { addDays as h } from "date-fns";
6
+ var N = ({ datePickerProps: b, onClick: l }) => {
7
+ const { dataTest: D, className: C, inputClassName: i, disabled: a, readOnly: m, dateFormat: d, onInputChange: o, hideCalendar: s, locale: p, selected: t, disabledDays: n, validateOnCalendarClose: T, onValidatedOnce: c, width: f, ...e } = b;
8
+ return /* @__PURE__ */ y("div", {
9
+ "data-testid": D,
10
+ className: F(C, u["styled-date-picker-input-range-compact"], a && u["range-compact-disabled"]),
11
+ children: [/* @__PURE__ */ g(x, {
12
12
  dataTest: "styled-date-picker-input-range-from",
13
13
  dateFormat: d,
14
14
  selected: t?.from,
@@ -19,7 +19,7 @@ var v = ({ datePickerProps: h, onClick: l }) => {
19
19
  onInputChange: (r) => {
20
20
  r && t?.to && r.getTime() > t?.to.getTime() ? o?.({
21
21
  from: r,
22
- to: g(r, 1)
22
+ to: h(r, 1)
23
23
  }) : o?.({
24
24
  from: r,
25
25
  to: t?.to
@@ -30,13 +30,14 @@ var v = ({ datePickerProps: h, onClick: l }) => {
30
30
  disabledDays: n,
31
31
  validateOnCalendarClose: T,
32
32
  onValidatedOnce: c,
33
+ width: f,
33
34
  label: e.labelFrom,
34
35
  error: e.errorFrom,
35
36
  helperText: e.helperTextFrom,
36
37
  errorText: e.errorTextFrom,
37
38
  title: e.titleFrom,
38
39
  hideDefaultHelperText: e.hideDefaultHelperTextFrom
39
- }), /* @__PURE__ */ x(u, {
40
+ }), /* @__PURE__ */ g(x, {
40
41
  dataTest: "styled-date-picker-input-range-to",
41
42
  dateFormat: d,
42
43
  selected: t?.to,
@@ -46,7 +47,7 @@ var v = ({ datePickerProps: h, onClick: l }) => {
46
47
  onClick: l,
47
48
  onInputChange: (r) => {
48
49
  r && t?.from && r.getTime() < t?.from.getTime() ? o?.({
49
- from: g(r, -1),
50
+ from: h(r, -1),
50
51
  to: r
51
52
  }) : o?.({
52
53
  from: t?.from,
@@ -58,6 +59,7 @@ var v = ({ datePickerProps: h, onClick: l }) => {
58
59
  disabledDays: n,
59
60
  validateOnCalendarClose: T,
60
61
  onValidatedOnce: c,
62
+ width: f,
61
63
  label: e.labelTo,
62
64
  error: e.errorTo,
63
65
  helperText: e.helperTextTo,
@@ -68,5 +70,5 @@ var v = ({ datePickerProps: h, onClick: l }) => {
68
70
  });
69
71
  };
70
72
  export {
71
- v as DatePickerInputRangeCompact
73
+ N as DatePickerInputRangeCompact
72
74
  };
@@ -1,6 +1,6 @@
1
1
  var a = {
2
- "styled-date-picker-input-range-compact": "_styled-date-picker-input-range-compact_wj0t8_1",
3
- "range-compact-disabled": "_range-compact-disabled_wj0t8_4"
2
+ "styled-date-picker-input-range-compact": "_styled-date-picker-input-range-compact_1asiz_1",
3
+ "range-compact-disabled": "_range-compact-disabled_1asiz_4"
4
4
  };
5
5
  export {
6
6
  a as default
@@ -1,8 +1,8 @@
1
1
  import { BaseDatePickerInput as v } from "./BaseDatePickerInput.js";
2
- import { jsx as w } from "react/jsx-runtime";
3
- var j = ({ datePickerProps: e, onClick: a }) => {
4
- const { inputClassName: r, disabled: t, helperText: l, label: d, error: i, locale: n, hideCalendar: o, dateFormat: s, disabledDays: p, dataTest: u, readOnly: m, errorText: c, disallowFuture: C, disallowPast: h, required: x, minDate: D, validateOnCalendarClose: b, onValidatedOnce: I, onInputChange: P, selected: T, title: f, hideDefaultHelperText: g, inputAriaProps: O } = e;
5
- return /* @__PURE__ */ w(v, {
2
+ import { jsx as y } from "react/jsx-runtime";
3
+ var q = ({ datePickerProps: e, onClick: a }) => {
4
+ const { inputClassName: r, disabled: t, helperText: l, label: d, error: i, locale: n, hideCalendar: o, dateFormat: s, disabledDays: p, dataTest: u, readOnly: m, errorText: c, disallowFuture: h, disallowPast: C, required: x, minDate: D, validateOnCalendarClose: b, onValidatedOnce: I, onInputChange: P, selected: T, title: f, hideDefaultHelperText: g, inputAriaProps: w, width: O } = e;
5
+ return /* @__PURE__ */ y(v, {
6
6
  dataTest: u,
7
7
  inputClassName: r,
8
8
  readOnly: m,
@@ -18,17 +18,18 @@ var j = ({ datePickerProps: e, onClick: a }) => {
18
18
  disabledDays: p,
19
19
  label: d,
20
20
  errorText: c,
21
- disallowFuture: C,
22
- disallowPast: h,
21
+ disallowFuture: h,
22
+ disallowPast: C,
23
23
  required: x,
24
24
  minDate: D,
25
25
  validateOnCalendarClose: b,
26
26
  onValidatedOnce: I,
27
27
  title: f,
28
28
  hideDefaultHelperText: g,
29
- inputAriaProps: O
29
+ inputAriaProps: w,
30
+ width: O
30
31
  });
31
32
  };
32
33
  export {
33
- j as DatePickerInputSingle
34
+ q as DatePickerInputSingle
34
35
  };
@@ -1,35 +1,38 @@
1
- import { StyledSelect as s } from "../../../../components/inputs/select/StyledSelect.js";
1
+ import { StyledSelect as c } from "../../../../components/inputs/select/StyledSelect.js";
2
2
  import { StyledSelectItem as p } from "../../../../components/inputs/select/StyledSelectItem.js";
3
- import { StyledFormControl as S } from "../../../../components/miscellaneous/StyledFormControl.js";
3
+ import { StyledFormControl as h } from "../../../../components/miscellaneous/StyledFormControl.js";
4
4
  import u from "./StyledCalendarPickerSelectPeriod.module.js";
5
5
  import { jsx as l } from "react/jsx-runtime";
6
- var h = (a) => a.charAt(0).toUpperCase() + a.slice(1).toLowerCase();
7
- function g(a) {
8
- const { options: r = [], onChange: t, value: d, disabled: i, className: n, style: o, name: c } = a, m = a["aria-label"];
9
- return /* @__PURE__ */ l(S, {
6
+ var S = (a) => a.charAt(0).toUpperCase() + a.slice(1).toLowerCase();
7
+ function x(a) {
8
+ const { options: t = [], onChange: r, value: i, disabled: d, className: n, style: o, name: m } = a, s = a["aria-label"];
9
+ return /* @__PURE__ */ l(h, {
10
10
  style: {
11
+ display: "inline-flex",
12
+ width: "auto",
13
+ maxWidth: "none",
11
14
  marginLeft: "-2px",
12
15
  marginRight: "4px"
13
16
  },
14
- children: /* @__PURE__ */ l(s, {
17
+ children: /* @__PURE__ */ l(c, {
15
18
  dataTest: "StyledCalendarPickerSelectMonth",
16
19
  size: "small",
17
20
  variant: "standard",
18
- name: m ?? c,
19
- disabled: i,
21
+ name: s ?? m,
22
+ disabled: d,
20
23
  className: n,
21
24
  style: o,
22
- value: d ?? "",
23
- onChange: (e) => t?.(e),
25
+ value: i ?? "",
26
+ onChange: (e) => r?.(e),
24
27
  MenuProps: { className: u["styled-calendar-picker-select-period-menu"] },
25
- children: r.map((e) => /* @__PURE__ */ l(p, {
28
+ children: t.map((e) => /* @__PURE__ */ l(p, {
26
29
  value: e.value,
27
30
  disabled: e.disabled,
28
- children: h(e.label)
31
+ children: S(e.label)
29
32
  }, e.value))
30
33
  })
31
34
  });
32
35
  }
33
36
  export {
34
- g as StyledCalendarPickerSelectMonth
37
+ x as StyledCalendarPickerSelectMonth
35
38
  };
@@ -1,19 +1,24 @@
1
- import { StyledSelect as o } from "../../../../components/inputs/select/StyledSelect.js";
1
+ import { StyledSelect as c } from "../../../../components/inputs/select/StyledSelect.js";
2
2
  import { StyledSelectItem as u } from "../../../../components/inputs/select/StyledSelectItem.js";
3
3
  import { StyledFormControl as S } from "../../../../components/miscellaneous/StyledFormControl.js";
4
4
  import y from "./StyledCalendarPickerSelectPeriod.module.js";
5
5
  import { jsx as a } from "react/jsx-runtime";
6
- function h(l) {
7
- const { options: r = [], onChange: t, value: d, disabled: n, className: i, style: m, name: c } = l, s = l["aria-label"];
6
+ function C(l) {
7
+ const { options: r = [], onChange: t, value: d, disabled: i, className: n, style: m, name: o } = l, s = l["aria-label"];
8
8
  return /* @__PURE__ */ a(S, {
9
- style: { marginLeft: "4px" },
10
- children: /* @__PURE__ */ a(o, {
9
+ style: {
10
+ display: "inline-flex",
11
+ width: "auto",
12
+ maxWidth: "none",
13
+ marginLeft: "4px"
14
+ },
15
+ children: /* @__PURE__ */ a(c, {
11
16
  dataTest: "StyledCalendarPickerSelectYear",
12
17
  size: "small",
13
18
  variant: "standard",
14
- name: s ?? c,
15
- disabled: n,
16
- className: i,
19
+ name: s ?? o,
20
+ disabled: i,
21
+ className: n,
17
22
  style: m,
18
23
  value: d ?? "",
19
24
  onChange: (e) => t?.(e),
@@ -27,5 +32,5 @@ function h(l) {
27
32
  });
28
33
  }
29
34
  export {
30
- h as StyledCalendarPickerSelectYear
35
+ C as StyledCalendarPickerSelectYear
31
36
  };