@ai-matrx/design-system 0.32.0 → 0.34.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.cjs CHANGED
@@ -3781,13 +3781,40 @@ function OrganizationPicker({
3781
3781
  }
3782
3782
  ) : listed.length === 0 ? (
3783
3783
  /* THE ARCHIVED-ITEMS LAW, honesty half: "nothing" may only be said
3784
- when both halves are empty. Here the other half is one line down. */
3784
+ when both halves are empty. Here the other half is one line down.
3785
+ AND IT SAYS WHAT IS TRUE, NOT WHAT IS EMPTY. The earlier sentence
3786
+ read "Nothing matches “X” outside the test organizations below" —
3787
+ which opens by negating the very rows sitting one click away, and
3788
+ `fixtures` IS query-filtered, so those rows ARE matches for X. A
3789
+ person reading "nothing matches" retypes their search instead of
3790
+ clicking. So: count the matches, say where they are, and carry
3791
+ the click that reveals them — the same shape as the honest
3792
+ empty-filter twin one line down. (TAILS-3) */
3785
3793
  /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3786
3794
  "p",
3787
3795
  {
3788
3796
  className: "px-2 py-2 text-xs text-muted-foreground",
3789
3797
  "data-slot": "organization-picker-only-fixtures",
3790
- children: query.trim() ? `Nothing matches \u201C${query.trim()}\u201D outside the test organizations below.` : `Every organization you belong to is a test organization \u2014 all ${fixtures.length} are below.`
3798
+ children: query.trim() ? /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
3799
+ fixtures.length === 1 ? `1 match for \u201C${query.trim()}\u201D is in your test organizations` : `All ${fixtures.length} matches for \u201C${query.trim()}\u201D are in your test organizations`,
3800
+ showFixtures ? ", listed below." : /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
3801
+ " \u2014 ",
3802
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3803
+ "button",
3804
+ {
3805
+ type: "button",
3806
+ className: "underline underline-offset-2 hover:text-foreground",
3807
+ "data-slot": "organization-picker-show-fixtures",
3808
+ onClick: (event) => {
3809
+ event.stopPropagation();
3810
+ setShowFixtures(true);
3811
+ },
3812
+ children: "show them"
3813
+ }
3814
+ ),
3815
+ "."
3816
+ ] })
3817
+ ] }) : `Every organization you belong to is a test organization \u2014 all ${fixtures.length} are below.`
3791
3818
  }
3792
3819
  )
3793
3820
  ) : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("ul", { className: "max-h-72 overflow-y-auto", role: "listbox", "aria-label": "Organizations", children: listed.map(renderRow) }),