@hybr1d-tech/charizard 2.3.17 → 2.3.19

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
@@ -11405,12 +11405,11 @@ function gq({ status: e = "info", children: l }) {
11405
11405
  l
11406
11406
  ] });
11407
11407
  }
11408
- const Tv = "_headerClass_z1shj_1", Ov = {
11408
+ const Tv = "_headerClass_tsl8b_1", Ov = {
11409
11409
  headerClass: Tv
11410
11410
  }, B2 = $2((e) => ({
11411
11411
  service: null,
11412
11412
  api: null,
11413
- // Add this line to include the api property
11414
11413
  activeEventKey: [],
11415
11414
  setActiveEventKey: (l) => e({ activeEventKey: l })
11416
11415
  })), c4 = ({
@@ -11425,7 +11424,6 @@ const Tv = "_headerClass_z1shj_1", Ov = {
11425
11424
  const r = p0(d3.machine, {
11426
11425
  id: l,
11427
11426
  collapsible: !0,
11428
- // Use defaultValue instead of directly setting value in machine creation
11429
11427
  defaultValue: s ? o.map(String) : l ? [l] : [],
11430
11428
  multiple: t || s
11431
11429
  }), i = d3.connect(r, m0);
@@ -11459,9 +11457,41 @@ c4.Header = ({ eventKey: e, children: l, customClasses: c, customStyle: n }) =>
11459
11457
  ) });
11460
11458
  };
11461
11459
  c4.Collapse = ({ eventKey: e, children: l, customClasses: c, customStyle: n }) => {
11462
- var o;
11463
- const t = B2((r) => r.api), s = ((o = t == null ? void 0 : t.value) == null ? void 0 : o.includes(e)) || !1;
11464
- return /* @__PURE__ */ a.jsx("div", { style: n, className: c, hidden: !s, children: l });
11460
+ var u;
11461
+ const t = B2((d) => d.api), s = ((u = t == null ? void 0 : t.value) == null ? void 0 : u.includes(e)) || !1, o = q.useRef(null), [r, i] = q.useState(0);
11462
+ return q.useEffect(() => {
11463
+ if (o.current)
11464
+ if (s) {
11465
+ const d = o.current.scrollHeight;
11466
+ i(d);
11467
+ const m = setTimeout(() => {
11468
+ i("auto");
11469
+ }, 200);
11470
+ return () => clearTimeout(m);
11471
+ } else if (r === "auto") {
11472
+ const d = o.current.scrollHeight;
11473
+ i(d), requestAnimationFrame(() => {
11474
+ requestAnimationFrame(() => {
11475
+ i(0);
11476
+ });
11477
+ });
11478
+ } else
11479
+ i(0);
11480
+ }, [s, r]), /* @__PURE__ */ a.jsx(
11481
+ "div",
11482
+ {
11483
+ ref: o,
11484
+ style: {
11485
+ ...n,
11486
+ height: r,
11487
+ overflow: "hidden",
11488
+ transition: "height 200ms ease-in-out"
11489
+ },
11490
+ className: c,
11491
+ "aria-hidden": !s,
11492
+ children: /* @__PURE__ */ a.jsx("div", { children: l })
11493
+ }
11494
+ );
11465
11495
  };
11466
11496
  const Zv = "_container_adbn2_1", Xv = "_labelContainer_adbn2_7", Wv = "_sliderContainer_adbn2_18", Yv = "_slider_adbn2_18", Jv = "_label_adbn2_7", $v = "_error_adbn2_87", Uv = "_infoIconContainer_adbn2_93", Qv = "_infoIcon_adbn2_93", f2 = {
11467
11497
  container: Zv,