@hybr1d-tech/charizard 0.7.165 → 0.7.167
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/hybr1d-ui.js +27 -26
- package/dist/hybr1d-ui.umd.cjs +11 -11
- package/dist/index.d.ts +2 -1
- package/package.json +13 -13
package/dist/hybr1d-ui.js
CHANGED
|
@@ -9260,36 +9260,37 @@ function Cx({
|
|
|
9260
9260
|
isError: d,
|
|
9261
9261
|
showOutsideDays: p = !0,
|
|
9262
9262
|
trigger: h,
|
|
9263
|
-
|
|
9263
|
+
id: _,
|
|
9264
|
+
...x
|
|
9264
9265
|
}) {
|
|
9265
|
-
const { monthYear:
|
|
9266
|
+
const { monthYear: g, setMonthYear: C } = G4();
|
|
9266
9267
|
q.useEffect(() => {
|
|
9267
|
-
e && !isNaN(new Date(e).getTime()) &&
|
|
9268
|
+
e && !isNaN(new Date(e).getTime()) && C({
|
|
9268
9269
|
month: new Date(e).getMonth(),
|
|
9269
9270
|
year: new Date(e).getFullYear()
|
|
9270
9271
|
});
|
|
9271
9272
|
}, [e]);
|
|
9272
|
-
const
|
|
9273
|
+
const v = q.useMemo(() => {
|
|
9273
9274
|
if (e) {
|
|
9274
|
-
const
|
|
9275
|
-
return console.log("Parsed date:",
|
|
9276
|
-
}
|
|
9277
|
-
}, [e]),
|
|
9278
|
-
if (!
|
|
9279
|
-
const
|
|
9280
|
-
return console.log("Formatted display date:",
|
|
9281
|
-
}, [
|
|
9282
|
-
var
|
|
9283
|
-
if (!
|
|
9275
|
+
const y = xe(e) ? e : u6(e);
|
|
9276
|
+
return console.log("Parsed date:", y), y;
|
|
9277
|
+
}
|
|
9278
|
+
}, [e]), I = q.useMemo(() => {
|
|
9279
|
+
if (!v) return "Pick a date";
|
|
9280
|
+
const y = c3(v, a);
|
|
9281
|
+
return console.log("Formatted display date:", y), y;
|
|
9282
|
+
}, [v, a]), z = q.useRef(null), N = (y) => {
|
|
9283
|
+
var A;
|
|
9284
|
+
if (!y) {
|
|
9284
9285
|
l("");
|
|
9285
9286
|
return;
|
|
9286
9287
|
}
|
|
9287
|
-
const
|
|
9288
|
-
l(
|
|
9288
|
+
const w = c3(y, "yyyy-MM-dd");
|
|
9289
|
+
l(w), (A = z == null ? void 0 : z.current) == null || A.click();
|
|
9289
9290
|
};
|
|
9290
9291
|
return /* @__PURE__ */ t.jsx("div", { className: b(o0.datePicker), style: u, children: /* @__PURE__ */ t.jsxs(A3, { placement: "bottom", children: [
|
|
9291
9292
|
/* @__PURE__ */ t.jsxs(w3, { openOnHover: !1, children: [
|
|
9292
|
-
h ? /* @__PURE__ */ t.jsx("div", { ref:
|
|
9293
|
+
h ? /* @__PURE__ */ t.jsx("div", { ref: z, id: _, children: h }) : n === "form" ? /* @__PURE__ */ t.jsx(
|
|
9293
9294
|
X0,
|
|
9294
9295
|
{
|
|
9295
9296
|
size: "adapt",
|
|
@@ -9302,8 +9303,8 @@ function Cx({
|
|
|
9302
9303
|
borderColor: d || s ? "var(--status-danger)" : void 0,
|
|
9303
9304
|
height: "32px"
|
|
9304
9305
|
},
|
|
9305
|
-
children: /* @__PURE__ */ t.jsxs("div", { className: o0.formButton, ref:
|
|
9306
|
-
/* @__PURE__ */ t.jsx("span", { style: { color:
|
|
9306
|
+
children: /* @__PURE__ */ t.jsxs("div", { className: o0.formButton, ref: z, id: _, children: [
|
|
9307
|
+
/* @__PURE__ */ t.jsx("span", { style: { color: v ? void 0 : "var(--text-secondary)" }, children: I }),
|
|
9307
9308
|
/* @__PURE__ */ t.jsx(M, { path: f4, width: 20, height: 20 })
|
|
9308
9309
|
] })
|
|
9309
9310
|
}
|
|
@@ -9314,7 +9315,7 @@ function Cx({
|
|
|
9314
9315
|
size: "adapt",
|
|
9315
9316
|
disabled: r,
|
|
9316
9317
|
customStyles: { cursor: r ? "not-allowed" : "pointer", height: "32px" },
|
|
9317
|
-
children: /* @__PURE__ */ t.jsxs("div", { className: o0.buttonContent, ref:
|
|
9318
|
+
children: /* @__PURE__ */ t.jsxs("div", { className: o0.buttonContent, ref: z, id: _, children: [
|
|
9318
9319
|
/* @__PURE__ */ t.jsx(
|
|
9319
9320
|
M,
|
|
9320
9321
|
{
|
|
@@ -9324,7 +9325,7 @@ function Cx({
|
|
|
9324
9325
|
spanClassName: o0.calendarIconSpan
|
|
9325
9326
|
}
|
|
9326
9327
|
),
|
|
9327
|
-
/* @__PURE__ */ t.jsx("span", { style: { color:
|
|
9328
|
+
/* @__PURE__ */ t.jsx("span", { style: { color: v ? void 0 : "var(--text-secondary)" }, children: I })
|
|
9328
9329
|
] })
|
|
9329
9330
|
}
|
|
9330
9331
|
),
|
|
@@ -9368,13 +9369,13 @@ function Cx({
|
|
|
9368
9369
|
Nav: oh
|
|
9369
9370
|
},
|
|
9370
9371
|
mode: c,
|
|
9371
|
-
defaultMonth:
|
|
9372
|
-
selected:
|
|
9373
|
-
onSelect:
|
|
9372
|
+
defaultMonth: v,
|
|
9373
|
+
selected: v,
|
|
9374
|
+
onSelect: N,
|
|
9374
9375
|
numberOfMonths: 1,
|
|
9375
9376
|
disabled: r ? !0 : i,
|
|
9376
|
-
month: new Date(
|
|
9377
|
-
...
|
|
9377
|
+
month: new Date(g.year, g.month),
|
|
9378
|
+
...x
|
|
9378
9379
|
}
|
|
9379
9380
|
)
|
|
9380
9381
|
}
|