@overmap-ai/forms 1.0.36-add-utils.14 → 1.0.36-add-utils.16

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/forms.js CHANGED
@@ -2170,8 +2170,8 @@ const pc = X(
2170
2170
  "bg-transparent": !t
2171
2171
  }),
2172
2172
  children: [
2173
- i ? /* @__PURE__ */ p(D, { icon: Ol }) : t && /* @__PURE__ */ p(D, { icon: to }),
2174
- /* @__PURE__ */ p(Pe, { className: "truncate", size: "sm", children: i ?? (t == null ? void 0 : t.name) }),
2173
+ i ? /* @__PURE__ */ p(D, { color: "var(--base-11)", icon: Ol }) : t && /* @__PURE__ */ p(D, { color: "var(--base-11)", icon: to }),
2174
+ /* @__PURE__ */ p(Pe, { className: "truncate", size: "sm", accentColor: "base", children: i ?? (t == null ? void 0 : t.name) }),
2175
2175
  a
2176
2176
  ]
2177
2177
  }
@@ -25525,7 +25525,6 @@ const Y1 = (r, e) => {
25525
25525
  return r.map((n) => J1(t, n, e));
25526
25526
  }, ss = (r, e) => {
25527
25527
  const t = {}, n = r.filter((i) => i instanceof ot);
25528
- console.debug("validateFields", r, e);
25529
25528
  for (const i of r)
25530
25529
  if (i instanceof ot) {
25531
25530
  const a = n.filter((s) => i.identifier in s.conditions);
@@ -25535,12 +25534,12 @@ const Y1 = (r, e) => {
25535
25534
  }))
25536
25535
  continue;
25537
25536
  const o = i.getErrors(e);
25538
- console.debug("section errors", o), Object.assign(t, o);
25537
+ Object.assign(t, o);
25539
25538
  } else {
25540
25539
  if (!(i instanceof Je))
25541
25540
  throw new Error("Invalid field type");
25542
25541
  const a = i.identifier, o = i.getError(ui(e, a));
25543
- console.debug("field errors", o), o && Xs(t, a, o);
25542
+ o && Xs(t, a, o);
25544
25543
  }
25545
25544
  if (Object.keys(t).length > 0) return t;
25546
25545
  }, T0 = async (r) => {