asma-ui-core 3.135.0 → 3.135.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.
@@ -4,13 +4,13 @@ import { clampToMinTime as j, isHourDisabled as x, isMinuteDisabled as D } from
4
4
  import { isHourRejected as N, isMinuteRejected as C } from "../helpers/disabledTime.js";
5
5
  import P from "clsx";
6
6
  import { jsx as n } from "react/jsx-runtime";
7
- import { getHours as w, getMinutes as R, set as T } from "date-fns";
7
+ import { getHours as k, getMinutes as R, set as T } from "date-fns";
8
8
  var G = ({ type: M, value: o, onSelect: h, minTime: c, isTimeDisabled: l, disabledTimeReason: d }) => {
9
- const r = /* @__PURE__ */ new Date(), t = M === "hours", m = w(o ?? r), u = o ?? r, b = t ? 24 : 12, g = t ? r.getHours() : r.getMinutes();
9
+ const r = /* @__PURE__ */ new Date(), t = M === "hours", m = k(o ?? r), u = o ?? r, b = t ? 24 : 12, g = t ? r.getHours() : r.getMinutes();
10
10
  return /* @__PURE__ */ n("div", {
11
11
  className: s["styled-time-picker-root_column"],
12
12
  children: new Array(b).fill(null).map((z, p) => {
13
- const e = t ? p : p * 5, a = o && e === (t ? w(o) : R(o)), f = g == e, H = t ? x(e, c) : D(m, e, c), _ = t ? N(e, u, l) : C(m, e, u, l), i = _ && !!d, y = /* @__PURE__ */ n("button", {
13
+ const e = t ? p : p * 5, a = o && e === (t ? k(o) : R(o)), f = g == e, H = t ? x(e, c) : D(m, e, c), _ = t ? N(e, u, l) : C(m, e, u, l), i = _ && !!d, w = /* @__PURE__ */ n("button", {
14
14
  type: "button",
15
15
  disabled: H || _ && !i,
16
16
  "aria-disabled": i || void 0,
@@ -18,15 +18,17 @@ var G = ({ type: M, value: o, onSelect: h, minTime: c, isTimeDisabled: l, disabl
18
18
  className: P("border-0", s["styled-time-picker-root_cell"], f && s["styled-time-picker-root_cell__cell-now"], a && s["styled-time-picker-root_cell__cell-selected"]),
19
19
  onClick: () => {
20
20
  if (i) return;
21
- const k = T(o ?? /* @__PURE__ */ new Date(), t ? { hours: e } : { minutes: e });
22
- h(t ? j(k, c) : k);
21
+ const y = T(o ?? /* @__PURE__ */ new Date(), t ? { hours: e } : { minutes: e });
22
+ h(t ? j(y, c) : y);
23
23
  },
24
24
  children: e.toString().padStart(2, "0")
25
25
  }, e);
26
26
  return i ? /* @__PURE__ */ n(S, {
27
27
  title: d,
28
- children: y
29
- }, e) : y;
28
+ persistentDescription: !0,
29
+ arrow: !0,
30
+ children: w
31
+ }, e) : w;
30
32
  })
31
33
  });
32
34
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.135.0",
6
+ "version": "3.135.1",
7
7
  "type": "module",
8
8
  "sideEffects": [
9
9
  "**/*.css",