@stokelp/ui 2.96.0 → 2.96.1

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/ui.js CHANGED
@@ -460,9 +460,9 @@ const { withProvider: Ka, withContext: b2 } = i1(bd), Ja = Ka(s(q.Root), "root",
460
460
  const F = y.index ?? 0, Q = F + y[0].length;
461
461
  F > V && w.push(/* @__PURE__ */ C("span", { children: o.slice(V, F) }, `text-${V}`));
462
462
  const I = u.find((T) => T.regex.test(y[0]));
463
- u.forEach((T) => T.regex.lastIndex = 0), I && w.push(
463
+ u.forEach((T) => T.regex.lastIndex = 0), I ? w.push(
464
464
  /* @__PURE__ */ C(uc, { style: { color: I.color ?? "secondary.500" }, children: y[0] }, `highlight-${F}`)
465
- ), V = Q;
465
+ ) : w.push(/* @__PURE__ */ C("span", { children: y[0] }, `text-${F}`)), V = Q;
466
466
  }
467
467
  return V < o.length && w.push(/* @__PURE__ */ C("span", { children: o.slice(V) }, `text-${V}`)), w;
468
468
  })() })