@hybr1d-tech/charizard 2.3.18 → 2.3.20

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
@@ -9423,43 +9423,48 @@ const zd = "_selectedActions_jduip_1", yd = "_btnIcon_jduip_13", R1 = {
9423
9423
  };
9424
9424
  function Ad({
9425
9425
  rowSelectionConfig: e,
9426
- rowSelection: l
9426
+ rowSelection: l,
9427
+ setRowSelection: c
9427
9428
  }) {
9428
9429
  if (!e || !e.isCheckbox || Object.keys(l).length === 0)
9429
9430
  return null;
9430
- const { isCheckbox: c, actions: n } = e, t = (n == null ? void 0 : n.length) && n.length > 2, s = n != null && n.length ? n[0] : null;
9431
- return /* @__PURE__ */ a.jsx(a.Fragment, { children: c && Object.keys(l).length > 0 && /* @__PURE__ */ a.jsx(a.Fragment, { children: t ? /* @__PURE__ */ a.jsxs(
9431
+ const { isCheckbox: n, actions: t } = e, s = (t == null ? void 0 : t.length) && t.length > 2, o = t != null && t.length ? t[0] : null;
9432
+ return /* @__PURE__ */ a.jsx(a.Fragment, { children: n && Object.keys(l).length > 0 && /* @__PURE__ */ a.jsx(a.Fragment, { children: s ? /* @__PURE__ */ a.jsxs(
9432
9433
  a0.GroupAction,
9433
9434
  {
9434
9435
  variant: Z.SECONDARY,
9435
9436
  size: l0.SMALL,
9436
- menuItems: n.slice(1),
9437
+ menuItems: t.slice(1),
9437
9438
  positionerProps: { placement: "bottom-end" },
9438
- onClick: s == null ? void 0 : s.onClick,
9439
+ onClick: async () => {
9440
+ await (o == null ? void 0 : o.onClick()), c({});
9441
+ },
9439
9442
  children: [
9440
9443
  /* @__PURE__ */ a.jsx(
9441
9444
  R,
9442
9445
  {
9443
9446
  svgClassName: R1.btnIcon,
9444
- path: (s == null ? void 0 : s.iconSrc) || "",
9447
+ path: (o == null ? void 0 : o.iconSrc) || "",
9445
9448
  spanClassName: R1.btnIconSpan
9446
9449
  }
9447
9450
  ),
9448
- s == null ? void 0 : s.label
9451
+ o == null ? void 0 : o.label
9449
9452
  ]
9450
9453
  }
9451
- ) : /* @__PURE__ */ a.jsx("div", { className: R1.selectedActions, children: n == null ? void 0 : n.map((o) => /* @__PURE__ */ a.jsxs(
9454
+ ) : /* @__PURE__ */ a.jsx("div", { className: R1.selectedActions, children: t == null ? void 0 : t.map((r) => /* @__PURE__ */ a.jsxs(
9452
9455
  a0,
9453
9456
  {
9454
- onClick: o.onClick,
9457
+ onClick: async () => {
9458
+ await r.onClick(), c({});
9459
+ },
9455
9460
  variant: Z.SECONDARY,
9456
9461
  size: l0.SMALL,
9457
9462
  children: [
9458
- /* @__PURE__ */ a.jsx(R, { path: o.iconSrc, svgClassName: R1.btnIcon }),
9459
- o.label
9463
+ /* @__PURE__ */ a.jsx(R, { path: r.iconSrc, svgClassName: R1.btnIcon }),
9464
+ r.label
9460
9465
  ]
9461
9466
  },
9462
- o.label
9467
+ r.label
9463
9468
  )) }) }) });
9464
9469
  }
9465
9470
  function Nd({
@@ -9519,7 +9524,8 @@ function wd({
9519
9524
  Ad,
9520
9525
  {
9521
9526
  rowSelectionConfig: e,
9522
- rowSelection: o
9527
+ rowSelection: o,
9528
+ setRowSelection: r
9523
9529
  }
9524
9530
  )
9525
9531
  ] }),
@@ -11405,12 +11411,11 @@ function gq({ status: e = "info", children: l }) {
11405
11411
  l
11406
11412
  ] });
11407
11413
  }
11408
- const Tv = "_headerClass_z1shj_1", Ov = {
11414
+ const Tv = "_headerClass_tsl8b_1", Ov = {
11409
11415
  headerClass: Tv
11410
11416
  }, B2 = $2((e) => ({
11411
11417
  service: null,
11412
11418
  api: null,
11413
- // Add this line to include the api property
11414
11419
  activeEventKey: [],
11415
11420
  setActiveEventKey: (l) => e({ activeEventKey: l })
11416
11421
  })), c4 = ({
@@ -11425,7 +11430,6 @@ const Tv = "_headerClass_z1shj_1", Ov = {
11425
11430
  const r = p0(d3.machine, {
11426
11431
  id: l,
11427
11432
  collapsible: !0,
11428
- // Use defaultValue instead of directly setting value in machine creation
11429
11433
  defaultValue: s ? o.map(String) : l ? [l] : [],
11430
11434
  multiple: t || s
11431
11435
  }), i = d3.connect(r, m0);
@@ -11459,9 +11463,41 @@ c4.Header = ({ eventKey: e, children: l, customClasses: c, customStyle: n }) =>
11459
11463
  ) });
11460
11464
  };
11461
11465
  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 });
11466
+ var u;
11467
+ 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);
11468
+ return q.useEffect(() => {
11469
+ if (o.current)
11470
+ if (s) {
11471
+ const d = o.current.scrollHeight;
11472
+ i(d);
11473
+ const m = setTimeout(() => {
11474
+ i("auto");
11475
+ }, 200);
11476
+ return () => clearTimeout(m);
11477
+ } else if (r === "auto") {
11478
+ const d = o.current.scrollHeight;
11479
+ i(d), requestAnimationFrame(() => {
11480
+ requestAnimationFrame(() => {
11481
+ i(0);
11482
+ });
11483
+ });
11484
+ } else
11485
+ i(0);
11486
+ }, [s, r]), /* @__PURE__ */ a.jsx(
11487
+ "div",
11488
+ {
11489
+ ref: o,
11490
+ style: {
11491
+ ...n,
11492
+ height: r,
11493
+ overflow: "hidden",
11494
+ transition: "height 200ms ease-in-out"
11495
+ },
11496
+ className: c,
11497
+ "aria-hidden": !s,
11498
+ children: /* @__PURE__ */ a.jsx("div", { children: l })
11499
+ }
11500
+ );
11465
11501
  };
11466
11502
  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
11503
  container: Zv,