@llmnative/react 1.39.1 → 1.40.0
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.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +33 -25
- package/dist/index.mjs.map +1 -1
- package/dist/types/src/components/ui/fields/Input.d.ts +5 -2
- package/llms-full.txt +1 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -8457,56 +8457,64 @@ var Ec = "mb-1 block text-sm font-medium leading-5 text-foreground", Dc = "mt-1
|
|
|
8457
8457
|
value: typeof s == "string" ? s : s == null ? "" : JSON.stringify(s),
|
|
8458
8458
|
readOnly: !0
|
|
8459
8459
|
});
|
|
8460
|
-
}, tl = ({ name: e, onChange: t = void 0, defaultValue: n = void 0, label: r = void 0, title: i = void 0, ariaLabel: a = void 0, required: o = !1, valueChecked: s = "on",
|
|
8461
|
-
let { id:
|
|
8460
|
+
}, tl = ({ name: e, onChange: t = void 0, defaultValue: n = void 0, label: r = void 0, title: i = void 0, ariaLabel: a = void 0, required: o = !1, valueChecked: s = "on", disabled: c = !1, before: l = void 0, after: u = void 0, inheritWrapperClassName: f = !0, wrapperClassName: p = void 0, className: m = void 0 }) => {
|
|
8461
|
+
let { id: h, checked: g, formWrapClass: _, handleCheckboxChange: v } = Bc({
|
|
8462
8462
|
name: e,
|
|
8463
8463
|
onChange: t,
|
|
8464
|
-
wrapperClassName:
|
|
8464
|
+
wrapperClassName: p,
|
|
8465
8465
|
defaultValue: n,
|
|
8466
8466
|
valueChecked: s,
|
|
8467
|
-
inheritWrapperClassName:
|
|
8468
|
-
}),
|
|
8467
|
+
inheritWrapperClassName: f
|
|
8468
|
+
}), y = fp(e, {
|
|
8469
8469
|
required: o,
|
|
8470
8470
|
label: r
|
|
8471
8471
|
});
|
|
8472
|
-
return /* @__PURE__ */ d.createElement(Z, { className:
|
|
8472
|
+
return /* @__PURE__ */ d.createElement(Z, { className: _ }, /* @__PURE__ */ d.createElement("div", {
|
|
8473
|
+
className: "flex items-center gap-2",
|
|
8474
|
+
title: c ? i : void 0
|
|
8475
|
+
}, l, /* @__PURE__ */ d.createElement("input", {
|
|
8473
8476
|
type: "checkbox",
|
|
8474
|
-
id:
|
|
8477
|
+
id: h,
|
|
8475
8478
|
name: e,
|
|
8476
8479
|
title: i,
|
|
8477
8480
|
"aria-label": a,
|
|
8478
|
-
className: X("h-4 w-4 shrink-0 rounded-sm border border-input bg-background text-primary shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
|
|
8479
|
-
checked:
|
|
8480
|
-
|
|
8481
|
+
className: X("h-4 w-4 shrink-0 rounded-sm border border-input bg-background text-primary shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50", m),
|
|
8482
|
+
checked: g,
|
|
8483
|
+
disabled: c,
|
|
8484
|
+
onChange: v
|
|
8481
8485
|
}), r && /* @__PURE__ */ d.createElement("label", {
|
|
8482
|
-
className: "text-sm font-medium leading-none text-foreground",
|
|
8483
|
-
htmlFor:
|
|
8484
|
-
}, r, o && /* @__PURE__ */ d.createElement("span", { className: "text-destructive" }, "\xA0*")),
|
|
8485
|
-
}, nl = ({ name: e, onChange: t = void 0, defaultValue: n = void 0, label: r = void 0, title: i = void 0, ariaLabel: a = void 0, required: o = !1, valueChecked: s = "on",
|
|
8486
|
-
let { id:
|
|
8486
|
+
className: X("text-sm font-medium leading-none text-foreground", c && "cursor-not-allowed opacity-50"),
|
|
8487
|
+
htmlFor: h
|
|
8488
|
+
}, r, o && /* @__PURE__ */ d.createElement("span", { className: "text-destructive" }, "\xA0*")), u), y && /* @__PURE__ */ d.createElement(zc, { message: y }));
|
|
8489
|
+
}, nl = ({ name: e, onChange: t = void 0, defaultValue: n = void 0, label: r = void 0, title: i = void 0, ariaLabel: a = void 0, required: o = !1, valueChecked: s = "on", disabled: c = !1, before: l = void 0, after: u = void 0, inheritWrapperClassName: f = !0, wrapperClassName: p = void 0, className: m = void 0 }) => {
|
|
8490
|
+
let { id: h, checked: g, formWrapClass: _, handleCheckboxChange: v } = Bc({
|
|
8487
8491
|
name: e,
|
|
8488
8492
|
onChange: t,
|
|
8489
|
-
wrapperClassName:
|
|
8493
|
+
wrapperClassName: p,
|
|
8490
8494
|
defaultValue: n,
|
|
8491
8495
|
valueChecked: s,
|
|
8492
|
-
inheritWrapperClassName:
|
|
8493
|
-
}),
|
|
8496
|
+
inheritWrapperClassName: f
|
|
8497
|
+
}), y = fp(e, {
|
|
8494
8498
|
required: o,
|
|
8495
8499
|
label: r
|
|
8496
8500
|
});
|
|
8497
|
-
return /* @__PURE__ */ d.createElement(Z, { className:
|
|
8498
|
-
|
|
8501
|
+
return /* @__PURE__ */ d.createElement(Z, { className: _ }, /* @__PURE__ */ d.createElement("div", { className: "flex items-center gap-2" }, l, /* @__PURE__ */ d.createElement("label", {
|
|
8502
|
+
className: X("inline-flex items-center gap-2 select-none", c ? "cursor-not-allowed opacity-50" : "cursor-pointer"),
|
|
8503
|
+
title: c ? i : void 0
|
|
8504
|
+
}, /* @__PURE__ */ d.createElement("span", { className: "relative inline-flex h-5 w-9 shrink-0 items-center" }, /* @__PURE__ */ d.createElement("input", {
|
|
8505
|
+
id: h,
|
|
8499
8506
|
name: e,
|
|
8500
8507
|
type: "checkbox",
|
|
8501
8508
|
title: i,
|
|
8502
8509
|
"aria-label": a,
|
|
8503
|
-
checked:
|
|
8504
|
-
|
|
8505
|
-
|
|
8510
|
+
checked: g,
|
|
8511
|
+
disabled: c,
|
|
8512
|
+
onChange: v,
|
|
8513
|
+
className: X("peer absolute inset-0 m-0 h-full w-full opacity-0", c ? "cursor-not-allowed" : "cursor-pointer")
|
|
8506
8514
|
}), /* @__PURE__ */ d.createElement("span", {
|
|
8507
8515
|
"aria-hidden": "true",
|
|
8508
|
-
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",
|
|
8509
|
-
}, /* @__PURE__ */ d.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",
|
|
8516
|
+
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", g ? "bg-primary" : "bg-muted-foreground/35", m)
|
|
8517
|
+
}, /* @__PURE__ */ d.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", g && "translate-x-4") }))), r && /* @__PURE__ */ d.createElement("span", { className: "text-sm font-medium leading-none text-foreground" }, r, o && /* @__PURE__ */ d.createElement("span", { className: "text-destructive" }, "\xA0*"))), u), y && /* @__PURE__ */ d.createElement(zc, { message: y }));
|
|
8510
8518
|
}, rl = ({ label: e, required: t = !1, htmlFor: n = void 0, className: r = void 0 }) => /* @__PURE__ */ d.createElement("label", {
|
|
8511
8519
|
htmlFor: n,
|
|
8512
8520
|
className: X(Ec, r)
|