@hybr1d-tech/charizard 0.7.166 → 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
@@ -1,7 +1,7 @@
1
1
  import './style.css';
2
2
  import * as q from "react";
3
- import y2, { useState as T0, useEffect as d1, useLayoutEffect as ve, useRef as g2, useMemo as F2, useCallback as L0, createContext as ge, useContext as qe, Fragment as s4, Component as fe, forwardRef as i6, createElement as o4 } from "react";
4
- import { differenceInCalendarDays as be, parseISO as u6, addMonths as l3, format as c3, isDate as xe, isSameDay as Q4, addYears as _e, addDays as Ce, isBefore as K4 } from "date-fns";
3
+ import y2, { useState as T0, useEffect as d1, useLayoutEffect as ve, useContext as ge, useRef as g2, createContext as qe, useMemo as F2, useCallback as L0, Component as fe, Fragment as s4, forwardRef as i6, createElement as o4 } from "react";
4
+ import { differenceInCalendarDays as be, parseISO as u6, addMonths as l3, format as c3, isDate as xe, isSameDay as Q4, isBefore as K4, addYears as _e, addDays as Ce } from "date-fns";
5
5
  import b, { clsx as V2 } from "clsx";
6
6
  import { toast as x3 } from "react-toastify";
7
7
  import Ie from "react-inlinesvg";
@@ -18,7 +18,7 @@ import { useReactTable as d6, getCoreRowModel as m6, flexRender as E1 } from "@t
18
18
  import * as s3 from "@zag-js/dialog";
19
19
  import * as o3 from "@zag-js/popover";
20
20
  import h6, { components as r2 } from "react-select";
21
- import { jsx as Z, css as p6, keyframes as Ae } from "@emotion/react";
21
+ import { keyframes as Ae, jsx as Z, css as p6 } from "@emotion/react";
22
22
  import { createPortal as v6 } from "react-dom";
23
23
  import * as p1 from "@zag-js/radio-group";
24
24
  import { Tooltip as Ne } from "react-tooltip";
@@ -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
  ] });
@@ -4009,8 +4010,8 @@ var l7 = function(l) {
4009
4010
  marginBottom: i.menuGutter,
4010
4011
  marginTop: i.menuGutter
4011
4012
  });
4012
- }, t7 = /* @__PURE__ */ ge(null), $c = function(l) {
4013
- var c = l.children, n = l.minMenuHeight, a = l.maxMenuHeight, s = l.menuPlacement, r = l.menuPosition, i = l.menuShouldScrollIntoView, o = l.theme, u = qe(t7) || {}, m = u.setPortalPlacement, d = g2(null), p = T0(a), h = k0(p, 2), _ = h[0], x = h[1], g = T0(null), C = k0(g, 2), v = C[0], I = C[1], z = o.spacing.controlHeight;
4013
+ }, t7 = /* @__PURE__ */ qe(null), $c = function(l) {
4014
+ var c = l.children, n = l.minMenuHeight, a = l.maxMenuHeight, s = l.menuPlacement, r = l.menuPosition, i = l.menuShouldScrollIntoView, o = l.theme, u = ge(t7) || {}, m = u.setPortalPlacement, d = g2(null), p = T0(a), h = k0(p, 2), _ = h[0], x = h[1], g = T0(null), C = k0(g, 2), v = C[0], I = C[1], z = o.spacing.controlHeight;
4014
4015
  return h4(function() {
4015
4016
  var N = d.current;
4016
4017
  if (N) {
@@ -5103,7 +5104,9 @@ function _s(e) {
5103
5104
  m(g, C);
5104
5105
  }, [m]), _ = L0(function(g) {
5105
5106
  if (g) {
5106
- var C = Gc ? {} : !1;
5107
+ var C = Gc ? {
5108
+ passive: !1
5109
+ } : !1;
5107
5110
  g.addEventListener("wheel", d, C), g.addEventListener("touchstart", p, C), g.addEventListener("touchmove", h, C);
5108
5111
  }
5109
5112
  }, [h, p, d]), x = L0(function(g) {