@llmnative/react 1.7.0 → 1.7.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/index.mjs CHANGED
@@ -15146,14 +15146,21 @@ function Xp({ records: e, recordId: n, sourcePath: r, columns: i, actions: a, fo
15146
15146
  U,
15147
15147
  M,
15148
15148
  te
15149
- ]), K = M && M.length > 0 ? /* @__PURE__ */ t.createElement("div", { className: "flex flex-wrap items-center gap-3" }, M.map((e) => /* @__PURE__ */ t.createElement("label", {
15150
- key: e.key,
15151
- className: "flex shrink-0 items-center gap-1.5 text-sm text-muted-foreground"
15152
- }, /* @__PURE__ */ t.createElement("input", {
15153
- type: "checkbox",
15154
- checked: te[e.key] ?? e.defaultValue ?? !1,
15155
- onChange: () => ne(e.key)
15156
- }), e.label))) : null, ie = j === !0 ? {} : j || void 0, [ae, oe] = h(""), se = p(() => {
15149
+ ]), K = M && M.length > 0 ? /* @__PURE__ */ t.createElement("div", { className: "flex flex-wrap items-center gap-3" }, M.map((e) => {
15150
+ let n = te[e.key] ?? e.defaultValue ?? !1;
15151
+ return /* @__PURE__ */ t.createElement("label", {
15152
+ key: e.key,
15153
+ className: "inline-flex shrink-0 cursor-pointer items-center gap-1.5 select-none"
15154
+ }, /* @__PURE__ */ t.createElement("span", { className: "relative inline-flex h-5 w-9 shrink-0 items-center" }, /* @__PURE__ */ t.createElement("input", {
15155
+ type: "checkbox",
15156
+ checked: n,
15157
+ onChange: () => ne(e.key),
15158
+ className: "peer absolute inset-0 m-0 h-full w-full cursor-pointer opacity-0"
15159
+ }), /* @__PURE__ */ t.createElement("span", {
15160
+ "aria-hidden": "true",
15161
+ className: X("pointer-events-none absolute inset-0 rounded-full transition-colors duration-200 ease-out peer-focus-visible:ring-2 peer-focus-visible:ring-ring peer-focus-visible:ring-offset-2", n ? "bg-primary" : "bg-muted-foreground/35")
15162
+ }, /* @__PURE__ */ t.createElement("span", { className: X("pointer-events-none absolute top-0.5 left-0.5 h-4 w-4 rounded-full bg-background shadow-sm transition-transform duration-200 ease-out", n && "translate-x-4") }))), /* @__PURE__ */ t.createElement("span", { className: "text-sm text-muted-foreground" }, e.label));
15163
+ })) : null, ie = j === !0 ? {} : j || void 0, [ae, oe] = h(""), se = p(() => {
15157
15164
  if (!ie || !ae.trim()) return re;
15158
15165
  let e = ae.trim().toLowerCase(), t = ie.fields?.map(String);
15159
15166
  return re.filter((n) => (t ?? Object.keys(n)).some((t) => {