@hybr1d-tech/charizard 0.7.167 → 0.7.168

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
@@ -2987,27 +2987,28 @@ function ax({
2987
2987
  children: a,
2988
2988
  footerButtons: s,
2989
2989
  showBackdrop: r = !1,
2990
- onClose: i
2990
+ onClose: i,
2991
+ customModalClasses: o
2991
2992
  }) {
2992
- const [o, u] = i0(s3.machine({ id: q.useId(), open: e })), m = s3.connect(o, u, u0);
2993
+ const [u, m] = i0(s3.machine({ id: q.useId(), open: e })), d = s3.connect(u, m, u0);
2993
2994
  return q.useEffect(() => {
2994
- m.setOpen(!!e);
2995
+ d.setOpen(!!e);
2995
2996
  }, [e]), q.useEffect(() => {
2996
- m.open || i == null || i();
2997
- }, [m.open]), /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2998
- n && /* @__PURE__ */ t.jsx("button", { ...m.getTriggerProps(), className: "zap-reset-btn", children: n }),
2999
- m.open && /* @__PURE__ */ t.jsxs(A2, { children: [
3000
- r && /* @__PURE__ */ t.jsx("div", { ...m.getBackdropProps(), className: Z2.backdrop }),
3001
- /* @__PURE__ */ t.jsx("div", { ...m.getPositionerProps(), className: Z2.positioner, children: /* @__PURE__ */ t.jsxs("div", { ...m.getContentProps(), className: Z2.modal, children: [
3002
- /* @__PURE__ */ t.jsxs("div", { ...m.getTitleProps(), className: Z2.header, children: [
2997
+ d.open || i == null || i();
2998
+ }, [d.open]), /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2999
+ n && /* @__PURE__ */ t.jsx("button", { ...d.getTriggerProps(), className: "zap-reset-btn", children: n }),
3000
+ d.open && /* @__PURE__ */ t.jsxs(A2, { children: [
3001
+ r && /* @__PURE__ */ t.jsx("div", { ...d.getBackdropProps(), className: Z2.backdrop }),
3002
+ /* @__PURE__ */ t.jsx("div", { ...d.getPositionerProps(), className: Z2.positioner, children: /* @__PURE__ */ t.jsxs("div", { ...d.getContentProps(), className: b(Z2.modal, o), children: [
3003
+ /* @__PURE__ */ t.jsxs("div", { ...d.getTitleProps(), className: Z2.header, children: [
3003
3004
  /* @__PURE__ */ t.jsxs("div", { children: [
3004
3005
  /* @__PURE__ */ t.jsx("h2", { className: "zap-heading-semibold", children: l }),
3005
3006
  c && /* @__PURE__ */ t.jsx("p", { className: "zap-subcontent-regular", children: c })
3006
3007
  ] }),
3007
- /* @__PURE__ */ t.jsx("button", { ...m.getCloseTriggerProps(), className: "zap-reset-btn", children: /* @__PURE__ */ t.jsx(M, { path: m2, svgClassName: Z2.icon }) })
3008
+ /* @__PURE__ */ t.jsx("button", { ...d.getCloseTriggerProps(), className: "zap-reset-btn", children: /* @__PURE__ */ t.jsx(M, { path: m2, svgClassName: Z2.icon }) })
3008
3009
  ] }),
3009
- /* @__PURE__ */ t.jsx("div", { ...m.getDescriptionProps(), className: Z2.content, children: a }),
3010
- !!s.length && /* @__PURE__ */ t.jsx("div", { className: Z2.footer, children: s == null ? void 0 : s.map(({ btnText: d, isLoading: p, loadingText: h, ..._ }, x) => /* @__PURE__ */ t.jsx(A0, { ..._, children: p ? h : d }, x)) })
3010
+ /* @__PURE__ */ t.jsx("div", { ...d.getDescriptionProps(), className: Z2.content, children: a }),
3011
+ !!s.length && /* @__PURE__ */ t.jsx("div", { className: Z2.footer, children: s == null ? void 0 : s.map(({ btnText: p, isLoading: h, loadingText: _, ...x }, g) => /* @__PURE__ */ t.jsx(A0, { ...x, children: h ? _ : p }, g)) })
3011
3012
  ] }) })
3012
3013
  ] })
3013
3014
  ] });
@@ -9260,37 +9261,36 @@ function Cx({
9260
9261
  isError: d,
9261
9262
  showOutsideDays: p = !0,
9262
9263
  trigger: h,
9263
- id: _,
9264
- ...x
9264
+ ..._
9265
9265
  }) {
9266
- const { monthYear: g, setMonthYear: C } = G4();
9266
+ const { monthYear: x, setMonthYear: g } = G4();
9267
9267
  q.useEffect(() => {
9268
- e && !isNaN(new Date(e).getTime()) && C({
9268
+ e && !isNaN(new Date(e).getTime()) && g({
9269
9269
  month: new Date(e).getMonth(),
9270
9270
  year: new Date(e).getFullYear()
9271
9271
  });
9272
9272
  }, [e]);
9273
- const v = q.useMemo(() => {
9273
+ const C = q.useMemo(() => {
9274
9274
  if (e) {
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) {
9275
+ const N = xe(e) ? e : u6(e);
9276
+ return console.log("Parsed date:", N), N;
9277
+ }
9278
+ }, [e]), v = q.useMemo(() => {
9279
+ if (!C) return "Pick a date";
9280
+ const N = c3(C, a);
9281
+ return console.log("Formatted display date:", N), N;
9282
+ }, [C, a]), I = q.useRef(null), z = (N) => {
9283
+ var w;
9284
+ if (!N) {
9285
9285
  l("");
9286
9286
  return;
9287
9287
  }
9288
- const w = c3(y, "yyyy-MM-dd");
9289
- l(w), (A = z == null ? void 0 : z.current) == null || A.click();
9288
+ const y = c3(N, "yyyy-MM-dd");
9289
+ l(y), (w = I == null ? void 0 : I.current) == null || w.click();
9290
9290
  };
9291
9291
  return /* @__PURE__ */ t.jsx("div", { className: b(o0.datePicker), style: u, children: /* @__PURE__ */ t.jsxs(A3, { placement: "bottom", children: [
9292
9292
  /* @__PURE__ */ t.jsxs(w3, { openOnHover: !1, children: [
9293
- h ? /* @__PURE__ */ t.jsx("div", { ref: z, id: _, children: h }) : n === "form" ? /* @__PURE__ */ t.jsx(
9293
+ h ? /* @__PURE__ */ t.jsx("div", { ref: I, children: h }) : n === "form" ? /* @__PURE__ */ t.jsx(
9294
9294
  X0,
9295
9295
  {
9296
9296
  size: "adapt",
@@ -9303,8 +9303,8 @@ function Cx({
9303
9303
  borderColor: d || s ? "var(--status-danger)" : void 0,
9304
9304
  height: "32px"
9305
9305
  },
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 }),
9306
+ children: /* @__PURE__ */ t.jsxs("div", { className: o0.formButton, ref: I, children: [
9307
+ /* @__PURE__ */ t.jsx("span", { style: { color: C ? void 0 : "var(--text-secondary)" }, children: v }),
9308
9308
  /* @__PURE__ */ t.jsx(M, { path: f4, width: 20, height: 20 })
9309
9309
  ] })
9310
9310
  }
@@ -9315,7 +9315,7 @@ function Cx({
9315
9315
  size: "adapt",
9316
9316
  disabled: r,
9317
9317
  customStyles: { cursor: r ? "not-allowed" : "pointer", height: "32px" },
9318
- children: /* @__PURE__ */ t.jsxs("div", { className: o0.buttonContent, ref: z, id: _, children: [
9318
+ children: /* @__PURE__ */ t.jsxs("div", { className: o0.buttonContent, ref: I, children: [
9319
9319
  /* @__PURE__ */ t.jsx(
9320
9320
  M,
9321
9321
  {
@@ -9325,7 +9325,7 @@ function Cx({
9325
9325
  spanClassName: o0.calendarIconSpan
9326
9326
  }
9327
9327
  ),
9328
- /* @__PURE__ */ t.jsx("span", { style: { color: v ? void 0 : "var(--text-secondary)" }, children: I })
9328
+ /* @__PURE__ */ t.jsx("span", { style: { color: C ? void 0 : "var(--text-secondary)" }, children: v })
9329
9329
  ] })
9330
9330
  }
9331
9331
  ),
@@ -9369,13 +9369,13 @@ function Cx({
9369
9369
  Nav: oh
9370
9370
  },
9371
9371
  mode: c,
9372
- defaultMonth: v,
9373
- selected: v,
9374
- onSelect: N,
9372
+ defaultMonth: C,
9373
+ selected: C,
9374
+ onSelect: z,
9375
9375
  numberOfMonths: 1,
9376
9376
  disabled: r ? !0 : i,
9377
- month: new Date(g.year, g.month),
9378
- ...x
9377
+ month: new Date(x.year, x.month),
9378
+ ..._
9379
9379
  }
9380
9380
  )
9381
9381
  }