asma-ui-core 3.125.0 → 3.126.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 (23) hide show
  1. package/dist/asma-ui-core.css +1 -1
  2. package/dist/components/data-display/interactive-chip/StyledInteractiveChip.js +6 -5
  3. package/dist/components/data-display/read-only-text/StyledReadOnlyText.js +56 -0
  4. package/dist/components/inputs/checkbox/base-ui/StyledCheckbox.module.js +12 -12
  5. package/dist/components/inputs/field-styles.js +1 -1
  6. package/dist/components/inputs/input-field/StyledInputField.js +226 -205
  7. package/dist/components/miscellaneous/StyledFormControlLabel.js +14 -14
  8. package/dist/datetime/components/date-picker/components/BaseDatePickerInput.js +81 -73
  9. package/dist/datetime/components/date-picker/components/DatePickerInputRangeCompact.js +28 -26
  10. package/dist/datetime/components/date-picker/components/DatePickerInputSingle.js +23 -21
  11. package/dist/datetime/components/time-picker/StyledTimePicker.js +25 -25
  12. package/dist/datetime/components/time-picker/TimePickerInput.js +41 -40
  13. package/dist/index.js +223 -221
  14. package/dist/src/components/data-display/read-only-text/StyledReadOnlyText.d.ts +38 -0
  15. package/dist/src/components/data-display/read-only-text/index.d.ts +1 -0
  16. package/dist/src/components/inputs/field-styles.d.ts +3 -1
  17. package/dist/src/components/inputs/input-field/StyledInputField.d.ts +14 -1
  18. package/dist/src/datetime/components/date-picker/components/BaseDatePickerInput.d.ts +2 -0
  19. package/dist/src/datetime/components/date-picker/types.d.ts +7 -0
  20. package/dist/src/datetime/components/time-picker/types.d.ts +2 -0
  21. package/dist/src/index.d.ts +1 -0
  22. package/dist/table/shared-components/StyledCheckbox.module.js +11 -11
  23. package/package.json +1 -1
@@ -1,89 +1,90 @@
1
- import { ClockOutlineIcon as y } from "../../../components/icons/clock-outline-icon/ClockOutlineIcon.js";
2
- import { fieldLabelAboveClass as A } from "../../../components/inputs/field-styles.js";
1
+ import { ClockOutlineIcon as A } from "../../../components/icons/clock-outline-icon/ClockOutlineIcon.js";
2
+ import { fieldLabelAboveClass as B } from "../../../components/inputs/field-styles.js";
3
3
  import { StyledInputField as M } from "../../../components/inputs/input-field/StyledInputField.js";
4
- import { getTitleLabelling as R } from "../../helpers/getTitleLabelling.js";
4
+ import { getTitleLabelling as O } from "../../helpers/getTitleLabelling.js";
5
5
  import { useInputMask as w } from "../../../helpers/inputMask.js";
6
6
  import { HelperText as H, defaultTimePickerHelperMessages as V } from "./components/HelperText.js";
7
7
  import { timePickerWidthProps as W } from "./helpers/timePickerWidth.js";
8
8
  import { useEffect as j, useId as q, useRef as z } from "react";
9
- import { jsx as i, jsxs as B } from "react/jsx-runtime";
10
- var U = (x) => {
11
- const { placeholder: g, disabled: e, inputClassName: T, dataTest: n, width: t, error: m, helperText: k, label: p, locale: C = "en", popupState: o, handleChange: I, handleBlur: b, isValidTime: d, isValidEndTime: u, isMissingTime: c, localValue: P, title: l, required: v, readOnly: a, inputAriaProps: E } = x, N = w({
9
+ import { jsx as o, jsxs as L } from "react/jsx-runtime";
10
+ var Y = (g) => {
11
+ const { placeholder: k, disabled: e, inputClassName: T, dataTest: m, width: t, error: p, helperText: C, label: d, locale: I = "en", popupState: i, handleChange: P, handleBlur: b, isValidTime: u, isValidEndTime: c, isMissingTime: f, localValue: v, title: l, required: y, readOnly: E, lockedReason: a, inputAriaProps: N } = g, s = !!E || !!a, R = w({
12
12
  mask: "xx:xx",
13
13
  maskChar: "x",
14
14
  showMask: !1
15
- }), f = !d || !u || !!c || !!m, s = z(null), h = q();
15
+ }), h = !u || !c || !!f || !!p, n = z(null), x = q();
16
16
  return j(() => {
17
- s.current && o.setAnchorEl(s.current);
18
- }, []), /* @__PURE__ */ B("div", {
17
+ n.current && i.setAnchorEl(n.current);
18
+ }, []), /* @__PURE__ */ L("div", {
19
19
  ...W(t),
20
20
  "data-helper-room-box": "",
21
- children: [l && /* @__PURE__ */ i("div", {
22
- id: h,
23
- className: A({ disabled: e }),
21
+ children: [l && /* @__PURE__ */ o("div", {
22
+ id: x,
23
+ className: B({ disabled: e }),
24
24
  children: l
25
- }), /* @__PURE__ */ i(M, {
26
- inputRef: N,
25
+ }), /* @__PURE__ */ o(M, {
26
+ inputRef: R,
27
27
  autoComplete: "off",
28
28
  type: "text",
29
- dataTest: n,
30
- "data-testid": n,
31
- placeholder: g,
29
+ dataTest: m,
30
+ "data-testid": m,
31
+ placeholder: k,
32
32
  size: "small",
33
- error: f,
34
- helperText: /* @__PURE__ */ i(H, {
35
- isValidTime: d,
36
- isValidEndTime: u,
37
- isMissingTime: c,
38
- error: !!m,
39
- localization: C,
40
- helperText: k,
33
+ error: h,
34
+ helperText: /* @__PURE__ */ o(H, {
35
+ isValidTime: u,
36
+ isValidEndTime: c,
37
+ isMissingTime: f,
38
+ error: !!p,
39
+ localization: I,
40
+ helperText: C,
41
41
  messages: V
42
42
  }),
43
- onChange: I,
43
+ onChange: P,
44
44
  onBlur: b,
45
45
  slotProps: {
46
46
  htmlInput: {
47
- "aria-required": v ? !0 : void 0,
48
- ...R({
47
+ "aria-required": y ? !0 : void 0,
48
+ ...O({
49
49
  title: l,
50
- titleId: h,
51
- label: p,
52
- inputAriaProps: E
50
+ titleId: x,
51
+ label: d,
52
+ inputAriaProps: N
53
53
  })
54
54
  },
55
55
  input: {
56
- ref: s,
56
+ ref: n,
57
57
  onClick: (r) => {
58
- !e && !a && o.open(r);
58
+ !e && !s && i.open(r);
59
59
  },
60
- endAdornment: /* @__PURE__ */ i(y, {
60
+ endAdornment: !a && /* @__PURE__ */ o(A, {
61
61
  width: 24,
62
62
  height: 24,
63
63
  className: e ? "text-delta-300" : "text-delta-700",
64
64
  onClick: (r) => {
65
- r.stopPropagation(), !e && !a && o.open(r);
65
+ r.stopPropagation(), !e && !s && i.open(r);
66
66
  }
67
67
  })
68
68
  },
69
69
  formHelperText: {
70
- className: f ? "ml-0 mr-[14px] mt-1 leading-[23.24px]" : "mx-[14px] mt-1 leading-[23.24px]",
70
+ className: h ? "ml-0 mr-[14px] mt-1 leading-[23.24px]" : "mx-[14px] mt-1 leading-[23.24px]",
71
71
  hideErrorIcon: !0
72
72
  }
73
73
  },
74
- value: P,
74
+ value: v,
75
75
  sx: typeof t == "number" ? {
76
76
  maxWidth: t,
77
77
  width: t,
78
78
  minWidth: t
79
79
  } : void 0,
80
80
  disabled: e,
81
- readOnly: a,
81
+ readOnly: s,
82
+ lockedReason: a,
82
83
  className: T,
83
- label: p
84
+ label: d
84
85
  })]
85
86
  });
86
87
  };
87
88
  export {
88
- U as TimePickerInput
89
+ Y as TimePickerInput
89
90
  };