@ai-matrx/design-system 0.86.351 → 0.86.352

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 CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.86.352
4
+
5
+ UNVERIFIED: this release has no Unreleased entry and the source comparison could not be made (the caller supplied no source comparison). Whether source changed is unknown; consumer action is unknown.
6
+ Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/design-system/src`.
7
+
3
8
  ## 0.86.351
4
9
 
5
10
  - New `Checklist`, `ChecklistItem`, `ChecklistMark` and `ChecklistMeter` controls: a status-marked list of conditions with a segmented progress meter and one action slot per row. Additive; no consumer action required.
package/dist/desktop.cjs CHANGED
@@ -2393,7 +2393,7 @@ var DialogContent2 = React14.forwardRef(function DialogContent3({ className, sho
2393
2393
  function DialogHeader2({ className, ...props }) {
2394
2394
  return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DialogHeader, { className: cn("gap-1 space-y-0 pr-0 text-left sm:text-left", className), ...props });
2395
2395
  }
2396
- function DialogBody({ className, children, ...props }) {
2396
+ function DialogBody({ className, children, minHeight, ...props }) {
2397
2397
  const ref = React14.useRef(null);
2398
2398
  const [overflowing, setOverflowing] = React14.useState(false);
2399
2399
  React14.useLayoutEffect(() => {
@@ -2407,7 +2407,7 @@ function DialogBody({ className, children, ...props }) {
2407
2407
  for (const child of Array.from(el.children)) observer.observe(child);
2408
2408
  return () => observer.disconnect();
2409
2409
  }, [children]);
2410
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { ref, "data-slot": "sheet-body", "data-overflowing": overflowing ? "" : void 0, className: cn("flex min-h-0 flex-col gap-4", className), ...props, children });
2410
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { ref, "data-slot": "sheet-body", "data-min-height": minHeight, "data-overflowing": overflowing ? "" : void 0, className: cn("flex min-h-0 flex-col gap-4", className), ...props, children });
2411
2411
  }
2412
2412
  function DialogFooter2({ className, ...props }) {
2413
2413
  return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DialogFooter, { className: cn("flex-row justify-end gap-2 space-x-0 bg-content pt-1 sm:gap-2 sm:space-x-0", className), ...props });
@@ -2995,6 +2995,7 @@ function holdsElements(children) {
2995
2995
  }
2996
2996
  function Notices({ children, className, onHeight, ...props }) {
2997
2997
  const stack = React16.useRef(null);
2998
+ const parent = React16.useContext(NoticeStackContext);
2998
2999
  const [registry3] = React16.useState(createNoticeRegistry);
2999
3000
  const layout = useNoticeStackLayout(registry3);
3000
3001
  const drawn = layout.total > 0;
@@ -3012,6 +3013,7 @@ function Notices({ children, className, onHeight, ...props }) {
3012
3013
  onHeight(0);
3013
3014
  };
3014
3015
  }, [onHeight, drawn]);
3016
+ if (parent) return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_jsx_runtime20.Fragment, { children });
3015
3017
  if (!holdsElements(children)) return null;
3016
3018
  return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
3017
3019
  "div",
@@ -5730,13 +5732,13 @@ function TableFilterTokens({ columns, state, onChange }) {
5730
5732
  return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(RemovableTag, { "data-table-filter-token": column.key, className: "shrink-0", removeLabel: `Remove the ${name} filter`, onRemove: () => onChange(setValues(state, column.key, [])), children: `${name}: ${labels.join(", ")}` }, column.key);
5731
5733
  }) });
5732
5734
  }
5733
- function TableFilterBar({ columns, rows, state, onChange, shown, label }) {
5735
+ function TableFilterBar({ columns, rows, state, onChange, shown, label, noun }) {
5734
5736
  const searchable = columns.some((c) => c.search);
5735
5737
  const active = filterActive(state);
5736
5738
  return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { "data-slot": "data-table-filter-bar", className: "flex h-table-filter-bar shrink-0 items-center gap-2 border-b border-separator px-3", children: [
5737
5739
  /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-1.5 overflow-hidden", children: [
5738
5740
  /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(TableFilterTokens, { columns, state, onChange }),
5739
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Text, { tone: "secondary", className: "shrink-0 tabular-nums", "data-table-filter-count": shown, children: active ? `${shown} of ${rows.length}` : `${rows.length}` })
5741
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Text, { tone: "secondary", className: "shrink-0 tabular-nums", "data-table-filter-count": shown, children: `${active ? `${shown} of ${rows.length}` : `${rows.length}`}${noun ? ` ${rows.length === 1 ? noun[0] : noun[1]}` : ""}` })
5740
5742
  ] }),
5741
5743
  searchable ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
5742
5744
  SearchField,
@@ -5849,6 +5851,7 @@ function DataTable({
5849
5851
  onFilterStateChange,
5850
5852
  defaultFilter,
5851
5853
  filterBar = true,
5854
+ noun,
5852
5855
  className,
5853
5856
  "aria-label": ariaLabel,
5854
5857
  columns: allColumns,
@@ -6039,7 +6042,7 @@ function DataTable({
6039
6042
  }
6040
6043
  };
6041
6044
  const contextItems = menuRow !== null && rowContextMenu ? rowContextMenu(menuRow) ?? null : null;
6042
- const bar = filterable && filterBar && givenRows.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(TableFilterBar, { columns: allColumns, rows: givenRows, state: filter, onChange: setFilter, shown: rows.length, label: ariaLabel.toLowerCase() }) : null;
6045
+ const bar = filterable && filterBar && givenRows.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(TableFilterBar, { columns: allColumns, rows: givenRows, state: filter, onChange: setFilter, shown: rows.length, label: ariaLabel.toLowerCase(), noun }) : null;
6043
6046
  const framed = (body) => bar ? /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
6044
6047
  "div",
6045
6048
  {