@hybr1d-tech/charizard 1.1.105 → 1.1.106

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
@@ -9550,33 +9550,43 @@ S1.Item = Sm;
9550
9550
  S1.DragHandle = Rm;
9551
9551
  function Gm({ checkedState: e, setCheckedState: l, search: n }) {
9552
9552
  const c = g.useMemo(() => {
9553
- const s = {};
9554
- return e.forEach((r) => {
9555
- const i = r.group || "Ungrouped";
9556
- s[i] || (s[i] = []), s[i].push(r);
9557
- }), s;
9553
+ const i = {};
9554
+ let o = 0;
9555
+ return e.forEach((u) => {
9556
+ const m = u.group || "Ungrouped";
9557
+ m in i || (i[m] = o++);
9558
+ }), i;
9558
9559
  }, [e]), t = g.useMemo(() => {
9559
- const s = {};
9560
- return Object.entries(c).forEach(([r, i]) => {
9561
- const o = i.filter(
9562
- (u) => u.label.toLowerCase().includes(n.toLowerCase())
9560
+ const i = {};
9561
+ return e.forEach((o) => {
9562
+ const u = o.group || "Ungrouped";
9563
+ i[u] || (i[u] = []), i[u].push(o);
9564
+ }), i;
9565
+ }, [e]), s = g.useMemo(() => {
9566
+ const i = {};
9567
+ return Object.entries(t).forEach(([o, u]) => {
9568
+ const m = u.filter(
9569
+ (d) => d.label.toLowerCase().includes(n.toLowerCase())
9563
9570
  );
9564
- o.length > 0 && (s[r] = o);
9565
- }), s;
9566
- }, [c, n]);
9567
- return /* @__PURE__ */ a.jsx(a.Fragment, { children: Object.entries(t).map(([s, r]) => /* @__PURE__ */ a.jsxs("div", { children: [
9568
- /* @__PURE__ */ a.jsx("h3", { className: l2.groupTitle, children: s }),
9569
- r.map((i) => /* @__PURE__ */ a.jsx("div", { className: l2.option, children: /* @__PURE__ */ a.jsx(
9571
+ m.length > 0 && (i[o] = m);
9572
+ }), i;
9573
+ }, [t, n]), r = g.useMemo(() => Object.entries(s).sort(([i], [o]) => {
9574
+ const u = c[i] ?? Number.MAX_VALUE, m = c[o] ?? Number.MAX_VALUE;
9575
+ return u - m;
9576
+ }), [s, c]);
9577
+ return /* @__PURE__ */ a.jsx(a.Fragment, { children: r.map(([i, o]) => /* @__PURE__ */ a.jsxs("div", { children: [
9578
+ /* @__PURE__ */ a.jsx("h3", { className: l2.groupTitle, children: i }),
9579
+ o.map((u) => /* @__PURE__ */ a.jsx("div", { className: l2.option, children: /* @__PURE__ */ a.jsx(
9570
9580
  E1,
9571
9581
  {
9572
- label: i.label,
9573
- id: i.id,
9574
- checked: i.checked,
9582
+ label: u.label,
9583
+ id: u.id,
9584
+ checked: u.checked,
9575
9585
  setCheckedState: l,
9576
- disabled: i.id === "name"
9586
+ disabled: u.id === "name"
9577
9587
  }
9578
- ) }, i.id))
9579
- ] }, s)) });
9588
+ ) }, u.id))
9589
+ ] }, i)) });
9580
9590
  }
9581
9591
  function Fm({
9582
9592
  customColumnConfig: e,