@theroutingcompany/components 0.0.95 → 0.0.97-alpha.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.
|
@@ -24521,7 +24521,7 @@ function nV({
|
|
|
24521
24521
|
inputId: n = "time-input",
|
|
24522
24522
|
hideLabel: r,
|
|
24523
24523
|
boldLabel: o,
|
|
24524
|
-
interval: a =
|
|
24524
|
+
interval: a = 5,
|
|
24525
24525
|
hourCycle: i = "",
|
|
24526
24526
|
defaultValue: l,
|
|
24527
24527
|
onChange: s,
|
|
@@ -24531,11 +24531,11 @@ function nV({
|
|
|
24531
24531
|
}) {
|
|
24532
24532
|
const { locale: p } = dt(), g = i === "" ? UI(p) : i, [h, b] = J(u.hideIcon), m = g === "24" ? qI(a) : YI(a), y = eh(l, u.value), v = g === "24" ? Bs(y) : Vs(y), [_, S] = J(v), E = ii(), R = ii(), C = Ml({}), $ = bm(u.value);
|
|
24533
24533
|
Y(() => {
|
|
24534
|
-
if (u.value !== $) {
|
|
24534
|
+
if (u.value !== $ && !C.isOpen) {
|
|
24535
24535
|
const D = eh(null, u.value), P = g === "24" ? Bs(D) : Vs(D);
|
|
24536
24536
|
S(P);
|
|
24537
24537
|
}
|
|
24538
|
-
}, [u.value, $, g]);
|
|
24538
|
+
}, [u.value, $, g, C.isOpen]);
|
|
24539
24539
|
const I = te(
|
|
24540
24540
|
(D) => {
|
|
24541
24541
|
var A;
|
|
@@ -24737,7 +24737,7 @@ function rV({
|
|
|
24737
24737
|
isDisabled: s,
|
|
24738
24738
|
...c
|
|
24739
24739
|
}) {
|
|
24740
|
-
const [d, u] = J(c.hideIcon), p = ii(), g = ii(), h = Ml({}), b = c.defaultValue ? Ya(
|
|
24740
|
+
const [d, u] = J(!!c.hideIcon), p = ii(), g = ii(), h = Ml({}), b = c.defaultValue ? Ya(
|
|
24741
24741
|
new Date(
|
|
24742
24742
|
c.defaultValue.year,
|
|
24743
24743
|
c.defaultValue.month - 1,
|
|
@@ -24786,10 +24786,10 @@ function rV({
|
|
|
24786
24786
|
}, []);
|
|
24787
24787
|
Y(() => {
|
|
24788
24788
|
const F = () => {
|
|
24789
|
-
p.current && p.current.offsetWidth
|
|
24789
|
+
!c.hideIcon && p.current && p.current.offsetWidth <= 155 ? d || u(!0) : c.hideIcon || d && u(!1);
|
|
24790
24790
|
};
|
|
24791
24791
|
return window.addEventListener("resize", F), F(), () => window.removeEventListener("resize", F);
|
|
24792
|
-
}, [p, d]);
|
|
24792
|
+
}, [p, d, c.hideIcon]);
|
|
24793
24793
|
const x = te(
|
|
24794
24794
|
(F) => {
|
|
24795
24795
|
v(F.target.value), h.isOpen || h.open();
|