@hybr1d-tech/charizard 0.7.167 → 0.7.169
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 +41 -41
- package/dist/hybr1d-ui.umd.cjs +11 -11
- package/dist/index.d.ts +26 -7
- package/dist/style.css +1 -1
- package/package.json +10 -10
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 [
|
|
2993
|
+
const [u, m] = i0(s3.machine({ id: q.useId(), open: e })), d = s3.connect(u, m, u0);
|
|
2993
2994
|
return q.useEffect(() => {
|
|
2994
|
-
|
|
2995
|
+
d.setOpen(!!e);
|
|
2995
2996
|
}, [e]), q.useEffect(() => {
|
|
2996
|
-
|
|
2997
|
-
}, [
|
|
2998
|
-
n && /* @__PURE__ */ t.jsx("button", { ...
|
|
2999
|
-
|
|
3000
|
-
r && /* @__PURE__ */ t.jsx("div", { ...
|
|
3001
|
-
/* @__PURE__ */ t.jsx("div", { ...
|
|
3002
|
-
/* @__PURE__ */ t.jsxs("div", { ...
|
|
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", { ...
|
|
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", { ...
|
|
3010
|
-
!!s.length && /* @__PURE__ */ t.jsx("div", { className: Z2.footer, children: s == null ? void 0 : s.map(({ btnText:
|
|
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
|
] });
|
|
@@ -8154,7 +8155,7 @@ function v1({ src: e, alt: l, className: c, ...n }) {
|
|
|
8154
8155
|
};
|
|
8155
8156
|
}, [e]), /* @__PURE__ */ t.jsx(t.Fragment, { children: a ? /* @__PURE__ */ t.jsx("img", { src: e, alt: l, className: c, loading: "lazy", ...n }) : /* @__PURE__ */ t.jsx(U2, { className: c }) });
|
|
8156
8157
|
}
|
|
8157
|
-
const hu = "
|
|
8158
|
+
const hu = "_box_12t5m_1", pu = "_icon_12t5m_9", vu = "_dot_12t5m_15", e4 = {
|
|
8158
8159
|
box: hu,
|
|
8159
8160
|
icon: pu,
|
|
8160
8161
|
dot: vu
|
|
@@ -9260,37 +9261,36 @@ function Cx({
|
|
|
9260
9261
|
isError: d,
|
|
9261
9262
|
showOutsideDays: p = !0,
|
|
9262
9263
|
trigger: h,
|
|
9263
|
-
|
|
9264
|
-
...x
|
|
9264
|
+
..._
|
|
9265
9265
|
}) {
|
|
9266
|
-
const { monthYear:
|
|
9266
|
+
const { monthYear: x, setMonthYear: g } = G4();
|
|
9267
9267
|
q.useEffect(() => {
|
|
9268
|
-
e && !isNaN(new Date(e).getTime()) &&
|
|
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
|
|
9273
|
+
const C = q.useMemo(() => {
|
|
9274
9274
|
if (e) {
|
|
9275
|
-
const
|
|
9276
|
-
return console.log("Parsed date:",
|
|
9277
|
-
}
|
|
9278
|
-
}, [e]),
|
|
9279
|
-
if (!
|
|
9280
|
-
const
|
|
9281
|
-
return console.log("Formatted display date:",
|
|
9282
|
-
}, [
|
|
9283
|
-
var
|
|
9284
|
-
if (!
|
|
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
|
|
9289
|
-
l(
|
|
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:
|
|
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:
|
|
9307
|
-
/* @__PURE__ */ t.jsx("span", { style: { color:
|
|
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:
|
|
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:
|
|
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:
|
|
9373
|
-
selected:
|
|
9374
|
-
onSelect:
|
|
9372
|
+
defaultMonth: C,
|
|
9373
|
+
selected: C,
|
|
9374
|
+
onSelect: z,
|
|
9375
9375
|
numberOfMonths: 1,
|
|
9376
9376
|
disabled: r ? !0 : i,
|
|
9377
|
-
month: new Date(
|
|
9378
|
-
...
|
|
9377
|
+
month: new Date(x.year, x.month),
|
|
9378
|
+
..._
|
|
9379
9379
|
}
|
|
9380
9380
|
)
|
|
9381
9381
|
}
|