@ai-matrx/records-ui 0.113.7 → 0.113.9
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/CHANGELOG.md +12 -0
- package/dist/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -12670,6 +12670,9 @@ function OpenCell({
|
|
|
12670
12670
|
const picker = opensAsAList(field2, hostTakesFiles(useRecordsUi()));
|
|
12671
12671
|
const [ahead, setAhead] = useState33(initialSearch ?? "");
|
|
12672
12672
|
const blurCommits = !picker && closesOnBlur(field2);
|
|
12673
|
+
const typedWords = isTypedDraft(draft) ? draft.text : typeof draft === "string" ? draft : null;
|
|
12674
|
+
const widens = !picker && !multiline && typedWords !== null;
|
|
12675
|
+
const wideTo = widens ? `max(100%, calc(${Math.max(typedWords.length, 8) + 3}ch + ${dateHelperKind(field2) ? "2.75rem" : "1rem"}))` : void 0;
|
|
12673
12676
|
const done = useRef22(false);
|
|
12674
12677
|
const once = (run) => {
|
|
12675
12678
|
if (done.current) return;
|
|
@@ -12718,7 +12721,8 @@ function OpenCell({
|
|
|
12718
12721
|
{
|
|
12719
12722
|
ref: host,
|
|
12720
12723
|
"data-matrx-cell-control": "",
|
|
12721
|
-
"data-matrx-cell-fill": "",
|
|
12724
|
+
...widens ? { "data-matrx-cell-widens": "" } : { "data-matrx-cell-fill": "" },
|
|
12725
|
+
style: wideTo ? { width: wideTo, minWidth: wideTo, maxWidth: "28rem", right: "auto" } : void 0,
|
|
12722
12726
|
"data-matrx-cell-editor": "",
|
|
12723
12727
|
tabIndex: -1,
|
|
12724
12728
|
className: cn25(
|