asma-ui-core 3.125.0 → 3.126.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/asma-ui-core.css +1 -1
- package/dist/components/data-display/interactive-chip/StyledInteractiveChip.js +6 -5
- package/dist/components/data-display/read-only-text/StyledReadOnlyText.js +56 -0
- package/dist/components/inputs/checkbox/base-ui/StyledCheckbox.module.js +12 -12
- package/dist/components/inputs/field-styles.js +1 -1
- package/dist/components/inputs/input-field/StyledInputField.js +226 -205
- package/dist/components/miscellaneous/StyledFormControlLabel.js +14 -14
- package/dist/datetime/components/date-picker/components/BaseDatePickerInput.js +81 -73
- package/dist/datetime/components/date-picker/components/DatePickerInputRangeCompact.js +28 -26
- package/dist/datetime/components/date-picker/components/DatePickerInputSingle.js +23 -21
- package/dist/datetime/components/time-picker/StyledTimePicker.js +25 -25
- package/dist/datetime/components/time-picker/TimePickerInput.js +41 -40
- package/dist/index.js +223 -221
- package/dist/src/components/data-display/read-only-text/StyledReadOnlyText.d.ts +38 -0
- package/dist/src/components/data-display/read-only-text/index.d.ts +1 -0
- package/dist/src/components/inputs/field-styles.d.ts +3 -1
- package/dist/src/components/inputs/input-field/StyledInputField.d.ts +14 -1
- package/dist/src/datetime/components/date-picker/components/BaseDatePickerInput.d.ts +2 -0
- package/dist/src/datetime/components/date-picker/types.d.ts +7 -0
- package/dist/src/datetime/components/time-picker/types.d.ts +2 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/table/components/table-header/SortIndicator.d.ts +3 -2
- package/dist/table/components/StyledTable.module.js +53 -53
- package/dist/table/shared-components/StyledCheckbox.module.js +11 -11
- package/package.json +1 -1
|
@@ -1,89 +1,90 @@
|
|
|
1
|
-
import { ClockOutlineIcon as
|
|
2
|
-
import { fieldLabelAboveClass as
|
|
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
|
|
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
|
|
10
|
-
var
|
|
11
|
-
const { placeholder:
|
|
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
|
-
}),
|
|
15
|
+
}), h = !u || !c || !!f || !!p, n = z(null), x = q();
|
|
16
16
|
return j(() => {
|
|
17
|
-
|
|
18
|
-
}, []), /* @__PURE__ */
|
|
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__ */
|
|
22
|
-
id:
|
|
23
|
-
className:
|
|
21
|
+
children: [l && /* @__PURE__ */ o("div", {
|
|
22
|
+
id: x,
|
|
23
|
+
className: B({ disabled: e }),
|
|
24
24
|
children: l
|
|
25
|
-
}), /* @__PURE__ */
|
|
26
|
-
inputRef:
|
|
25
|
+
}), /* @__PURE__ */ o(M, {
|
|
26
|
+
inputRef: R,
|
|
27
27
|
autoComplete: "off",
|
|
28
28
|
type: "text",
|
|
29
|
-
dataTest:
|
|
30
|
-
"data-testid":
|
|
31
|
-
placeholder:
|
|
29
|
+
dataTest: m,
|
|
30
|
+
"data-testid": m,
|
|
31
|
+
placeholder: k,
|
|
32
32
|
size: "small",
|
|
33
|
-
error:
|
|
34
|
-
helperText: /* @__PURE__ */
|
|
35
|
-
isValidTime:
|
|
36
|
-
isValidEndTime:
|
|
37
|
-
isMissingTime:
|
|
38
|
-
error: !!
|
|
39
|
-
localization:
|
|
40
|
-
helperText:
|
|
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:
|
|
43
|
+
onChange: P,
|
|
44
44
|
onBlur: b,
|
|
45
45
|
slotProps: {
|
|
46
46
|
htmlInput: {
|
|
47
|
-
"aria-required":
|
|
48
|
-
...
|
|
47
|
+
"aria-required": y ? !0 : void 0,
|
|
48
|
+
...O({
|
|
49
49
|
title: l,
|
|
50
|
-
titleId:
|
|
51
|
-
label:
|
|
52
|
-
inputAriaProps:
|
|
50
|
+
titleId: x,
|
|
51
|
+
label: d,
|
|
52
|
+
inputAriaProps: N
|
|
53
53
|
})
|
|
54
54
|
},
|
|
55
55
|
input: {
|
|
56
|
-
ref:
|
|
56
|
+
ref: n,
|
|
57
57
|
onClick: (r) => {
|
|
58
|
-
!e && !
|
|
58
|
+
!e && !s && i.open(r);
|
|
59
59
|
},
|
|
60
|
-
endAdornment: /* @__PURE__ */
|
|
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 && !
|
|
65
|
+
r.stopPropagation(), !e && !s && i.open(r);
|
|
66
66
|
}
|
|
67
67
|
})
|
|
68
68
|
},
|
|
69
69
|
formHelperText: {
|
|
70
|
-
className:
|
|
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:
|
|
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:
|
|
81
|
+
readOnly: s,
|
|
82
|
+
lockedReason: a,
|
|
82
83
|
className: T,
|
|
83
|
-
label:
|
|
84
|
+
label: d
|
|
84
85
|
})]
|
|
85
86
|
});
|
|
86
87
|
};
|
|
87
88
|
export {
|
|
88
|
-
|
|
89
|
+
Y as TimePickerInput
|
|
89
90
|
};
|