asma-ui-core 3.25.0 → 3.25.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.
@@ -2,23 +2,23 @@ import { StyledInputField as w } from "../../shared-components/StyledInputField.
2
2
  import { HelperText as y } from "./components/HelperText.js";
3
3
  import { ClockOutlineIcon as E } from "../../shared-components/ClockOutlineIcon.js";
4
4
  import { useEffect as R, useRef as v } from "react";
5
- import { jsx as r, jsxs as I } from "react/jsx-runtime";
5
+ import { jsx as o, jsxs as I } from "react/jsx-runtime";
6
6
  import { useMask as M } from "@react-input/mask";
7
7
  import "material-ui-popup-state/hooks";
8
8
  var S = (c) => {
9
- const { placeholder: f, disabled: i, inputClassName: h, dataTest: n, width: l, error: u, helperText: x, label: T, locale: k = "en", popupState: e, handleChange: C, isValidTime: s, isValidEndTime: p, localValue: b, title: m, readOnly: t } = c, g = M({
9
+ const { placeholder: f, disabled: r, inputClassName: h, dataTest: n, width: i, error: u, helperText: x, label: T, locale: k = "en", popupState: l, handleChange: C, isValidTime: s, isValidEndTime: p, localValue: b, title: m, readOnly: e } = c, g = M({
10
10
  mask: "xx:xx",
11
11
  replacement: { x: /\d/ },
12
12
  showMask: !1
13
13
  }), d = !s || !p || !!u, a = v(null);
14
14
  return R(() => {
15
- a.current && e.setAnchorEl(a.current);
16
- }, [e]), /* @__PURE__ */ I("div", {
17
- style: { height: t ? "40px" : "75px" },
18
- children: [m && /* @__PURE__ */ r("div", {
15
+ a.current && l.setAnchorEl(a.current);
16
+ }, []), /* @__PURE__ */ I("div", {
17
+ style: { height: e ? "40px" : "75px" },
18
+ children: [m && /* @__PURE__ */ o("div", {
19
19
  className: "pb-1 font-roboto font-semibold text-delta-800",
20
20
  children: m
21
- }), /* @__PURE__ */ r(w, {
21
+ }), /* @__PURE__ */ o(w, {
22
22
  inputRef: g,
23
23
  autoComplete: "off",
24
24
  type: "text",
@@ -27,7 +27,7 @@ var S = (c) => {
27
27
  placeholder: f,
28
28
  size: "small",
29
29
  error: d,
30
- helperText: /* @__PURE__ */ r(y, {
30
+ helperText: /* @__PURE__ */ o(y, {
31
31
  isValidTime: s,
32
32
  isValidEndTime: p,
33
33
  error: d,
@@ -37,25 +37,25 @@ var S = (c) => {
37
37
  onChange: C,
38
38
  slotProps: { input: {
39
39
  ref: a,
40
- onMouseDown: (o) => {
41
- !i && !t && e.open(o);
40
+ onMouseDown: (t) => {
41
+ !r && !e && l.open(t);
42
42
  },
43
- endAdornment: /* @__PURE__ */ r(E, {
43
+ endAdornment: /* @__PURE__ */ o(E, {
44
44
  width: 24,
45
45
  height: 24,
46
- onClick: (o) => {
47
- o.stopPropagation(), !i && !t && e.open(o);
46
+ onClick: (t) => {
47
+ t.stopPropagation(), !r && !e && l.open(t);
48
48
  }
49
49
  })
50
50
  } },
51
51
  value: b,
52
52
  sx: {
53
- maxWidth: l ?? 130,
54
- width: l,
55
- minWidth: l
53
+ maxWidth: i ?? 130,
54
+ width: i,
55
+ minWidth: i
56
56
  },
57
- disabled: i,
58
- readOnly: t,
57
+ disabled: r,
58
+ readOnly: e,
59
59
  className: h,
60
60
  label: T
61
61
  })]
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.25.0",
6
+ "version": "3.25.1",
7
7
  "type": "module",
8
8
  "sideEffects": [
9
9
  "**/*.css",