@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 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: x, setMonthYear: g } = G4();
9266
+ const { monthYear: g, setMonthYear: C } = G4();
9266
9267
  q.useEffect(() => {
9267
- e && !isNaN(new Date(e).getTime()) && g({
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 C = q.useMemo(() => {
9273
+ const v = q.useMemo(() => {
9273
9274
  if (e) {
9274
- const N = xe(e) ? e : u6(e);
9275
- return console.log("Parsed date:", N), N;
9276
- }
9277
- }, [e]), v = q.useMemo(() => {
9278
- if (!C) return "Pick a date";
9279
- const N = c3(C, a);
9280
- return console.log("Formatted display date:", N), N;
9281
- }, [C, a]), I = q.useRef(null), z = (N) => {
9282
- var w;
9283
- if (!N) {
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 y = c3(N, "yyyy-MM-dd");
9288
- l(y), (w = I == null ? void 0 : I.current) == null || w.click();
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: I, children: h }) : n === "form" ? /* @__PURE__ */ t.jsx(
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: I, children: [
9306
- /* @__PURE__ */ t.jsx("span", { style: { color: C ? void 0 : "var(--text-secondary)" }, children: v }),
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: I, children: [
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: C ? void 0 : "var(--text-secondary)" }, children: v })
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: C,
9372
- selected: C,
9373
- onSelect: z,
9372
+ defaultMonth: v,
9373
+ selected: v,
9374
+ onSelect: N,
9374
9375
  numberOfMonths: 1,
9375
9376
  disabled: r ? !0 : i,
9376
- month: new Date(x.year, x.month),
9377
- ..._
9377
+ month: new Date(g.year, g.month),
9378
+ ...x
9378
9379
  }
9379
9380
  )
9380
9381
  }