@ai-matrx/records-ui 0.116.96 → 0.116.97
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 +21 -1
- package/dist/{SaveToTable-RV553LQL.js → SaveToTable-GYVIFMJC.js} +3 -3
- package/dist/{chunk-YQW2T27M.js → chunk-IEVLSGJZ.js} +33 -20
- package/dist/chunk-IEVLSGJZ.js.map +1 -0
- package/dist/{chunk-A5XXEX6A.js → chunk-PO7UMIDY.js} +2 -2
- package/dist/{chunk-HEPOU6ZX.js → chunk-TABDUUEC.js} +12 -10
- package/dist/chunk-TABDUUEC.js.map +1 -0
- package/dist/entity-ref.cjs +16 -15
- package/dist/entity-ref.cjs.map +1 -1
- package/dist/entity-ref.js +12 -11
- package/dist/entity-ref.js.map +1 -1
- package/dist/index.cjs +206 -169
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +173 -154
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs +42 -29
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +2 -2
- package/package.json +4 -4
- package/dist/chunk-HEPOU6ZX.js.map +0 -1
- package/dist/chunk-YQW2T27M.js.map +0 -1
- /package/dist/{SaveToTable-RV553LQL.js.map → SaveToTable-GYVIFMJC.js.map} +0 -0
- /package/dist/{chunk-A5XXEX6A.js.map → chunk-PO7UMIDY.js.map} +0 -0
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
useRecordsUi,
|
|
28
28
|
useTableRights,
|
|
29
29
|
writeOnTheWinningVersion_exports
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-TABDUUEC.js";
|
|
31
31
|
import {
|
|
32
32
|
guessColumn,
|
|
33
33
|
readTableShapes,
|
|
@@ -5205,4 +5205,4 @@ export {
|
|
|
5205
5205
|
shapesOfSource,
|
|
5206
5206
|
SaveToTable
|
|
5207
5207
|
};
|
|
5208
|
-
//# sourceMappingURL=chunk-
|
|
5208
|
+
//# sourceMappingURL=chunk-PO7UMIDY.js.map
|
|
@@ -381,6 +381,7 @@ function withoutInternalCodes(text) {
|
|
|
381
381
|
// src/Refusal.tsx
|
|
382
382
|
import { archivedOrganizationId } from "@ai-matrx/records/core";
|
|
383
383
|
import { Alert as Alert2, AlertDescription as AlertDescription2, AlertTitle as AlertTitle2, ErrorBox, TIMED_OUT_SENTENCE as TIMED_OUT_SENTENCE2, cn as cn2 } from "@ai-matrx/design-system";
|
|
384
|
+
import { Button as ControlButton } from "@ai-matrx/design-system/controls";
|
|
384
385
|
|
|
385
386
|
// src/ArchivedOrganizationNotice.tsx
|
|
386
387
|
import { useEffect, useState } from "react";
|
|
@@ -492,31 +493,31 @@ function RefusalNotice({
|
|
|
492
493
|
const plain = refusalTimedOut(error) ? { ...said, sentence: TIMED_OUT_SENTENCE2, storeSaid: true } : said;
|
|
493
494
|
const doors = onKeepEditing || onDiscard || onRetry ? /* @__PURE__ */ jsxs2("div", { className: "flex flex-wrap items-center gap-1 pt-0.5", "data-refusal-doors": "", children: [
|
|
494
495
|
onRetry ? /* @__PURE__ */ jsx3(
|
|
495
|
-
|
|
496
|
+
ControlButton,
|
|
496
497
|
{
|
|
497
498
|
type: "button",
|
|
499
|
+
variant: "outline",
|
|
498
500
|
"data-refusal-retry": "",
|
|
499
|
-
className: "rounded border px-2 py-0.5 text-xs hover:bg-muted",
|
|
500
501
|
onClick: onRetry,
|
|
501
502
|
children: "Try again"
|
|
502
503
|
}
|
|
503
504
|
) : null,
|
|
504
505
|
onKeepEditing ? /* @__PURE__ */ jsx3(
|
|
505
|
-
|
|
506
|
+
ControlButton,
|
|
506
507
|
{
|
|
507
508
|
type: "button",
|
|
509
|
+
variant: "outline",
|
|
508
510
|
"data-refusal-keep-editing": "",
|
|
509
|
-
className: "rounded border px-2 py-0.5 text-xs hover:bg-muted",
|
|
510
511
|
onClick: onKeepEditing,
|
|
511
512
|
children: "Keep editing"
|
|
512
513
|
}
|
|
513
514
|
) : null,
|
|
514
515
|
onDiscard ? /* @__PURE__ */ jsx3(
|
|
515
|
-
|
|
516
|
+
ControlButton,
|
|
516
517
|
{
|
|
517
518
|
type: "button",
|
|
519
|
+
variant: "outline",
|
|
518
520
|
"data-refusal-discard": "",
|
|
519
|
-
className: "rounded border px-2 py-0.5 text-xs hover:bg-muted",
|
|
520
521
|
onClick: onDiscard,
|
|
521
522
|
children: "Discard"
|
|
522
523
|
}
|
|
@@ -564,7 +565,7 @@ function RefusalLine({
|
|
|
564
565
|
...plain.forEngineers ? { "data-for-engineers": plain.forEngineers } : {}
|
|
565
566
|
}
|
|
566
567
|
),
|
|
567
|
-
timedOut && onRetry ? /* @__PURE__ */ jsx3(
|
|
568
|
+
timedOut && onRetry ? /* @__PURE__ */ jsx3(ControlButton, { type: "button", variant: "outline", "data-refusal-retry": "", onClick: onRetry, children: "Try again" }) : null
|
|
568
569
|
] });
|
|
569
570
|
}
|
|
570
571
|
|
|
@@ -574,6 +575,7 @@ import { useEffect as useEffect2, useRef, useState as useState2 } from "react";
|
|
|
574
575
|
// src/personChip.tsx
|
|
575
576
|
import { cn as cn3 } from "@ai-matrx/design-system";
|
|
576
577
|
import { getInitials } from "@ai-matrx/kit/format";
|
|
578
|
+
import { Button as ControlButton2 } from "@ai-matrx/design-system/controls";
|
|
577
579
|
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
578
580
|
var PERSON_INITIALS = { splitHandles: true, dropHonorifics: true };
|
|
579
581
|
function PersonAvatar({ name, size = "sm" }) {
|
|
@@ -599,8 +601,8 @@ function PersonChip({ name, onRemove, onOpen, className }) {
|
|
|
599
601
|
className: cn3("inline-flex min-w-0 max-w-full items-center gap-1 rounded-full bg-muted px-1.5 py-0.5 text-[11px] text-foreground", className),
|
|
600
602
|
children: [
|
|
601
603
|
/* @__PURE__ */ jsx4(PersonAvatar, { name }),
|
|
602
|
-
onOpen ? /* @__PURE__ */ jsx4(
|
|
603
|
-
onRemove ? /* @__PURE__ */ jsx4(
|
|
604
|
+
onOpen ? /* @__PURE__ */ jsx4(ControlButton2, { type: "button", variant: "link", onClick: onOpen, "data-records-person-open": "", className: "min-w-0 truncate", children: name }) : /* @__PURE__ */ jsx4("span", { className: "min-w-0 truncate", children: name }),
|
|
605
|
+
onRemove ? /* @__PURE__ */ jsx4(ControlButton2, { type: "button", variant: "quiet", removes: true, onClick: onRemove, "aria-label": `Remove ${name}`, className: "shrink-0 opacity-60 hover:opacity-100", children: "\xD7" }) : null
|
|
604
606
|
]
|
|
605
607
|
}
|
|
606
608
|
);
|
|
@@ -1784,4 +1786,4 @@ export {
|
|
|
1784
1786
|
choiceNudgeOf,
|
|
1785
1787
|
useChoiceNudge
|
|
1786
1788
|
};
|
|
1787
|
-
//# sourceMappingURL=chunk-
|
|
1789
|
+
//# sourceMappingURL=chunk-TABDUUEC.js.map
|