@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.js CHANGED
@@ -3522,13 +3522,40 @@ function OrganizationPicker({
3522
3522
  }
3523
3523
  ) : listed.length === 0 ? (
3524
3524
  /* THE ARCHIVED-ITEMS LAW, honesty half: "nothing" may only be said
3525
- when both halves are empty. Here the other half is one line down. */
3525
+ when both halves are empty. Here the other half is one line down.
3526
+ AND IT SAYS WHAT IS TRUE, NOT WHAT IS EMPTY. The earlier sentence
3527
+ read "Nothing matches “X” outside the test organizations below" —
3528
+ which opens by negating the very rows sitting one click away, and
3529
+ `fixtures` IS query-filtered, so those rows ARE matches for X. A
3530
+ person reading "nothing matches" retypes their search instead of
3531
+ clicking. So: count the matches, say where they are, and carry
3532
+ the click that reveals them — the same shape as the honest
3533
+ empty-filter twin one line down. (TAILS-3) */
3526
3534
  /* @__PURE__ */ jsx38(
3527
3535
  "p",
3528
3536
  {
3529
3537
  className: "px-2 py-2 text-xs text-muted-foreground",
3530
3538
  "data-slot": "organization-picker-only-fixtures",
3531
- 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.`
3539
+ children: query.trim() ? /* @__PURE__ */ jsxs21(Fragment2, { children: [
3540
+ 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`,
3541
+ showFixtures ? ", listed below." : /* @__PURE__ */ jsxs21(Fragment2, { children: [
3542
+ " \u2014 ",
3543
+ /* @__PURE__ */ jsx38(
3544
+ "button",
3545
+ {
3546
+ type: "button",
3547
+ className: "underline underline-offset-2 hover:text-foreground",
3548
+ "data-slot": "organization-picker-show-fixtures",
3549
+ onClick: (event) => {
3550
+ event.stopPropagation();
3551
+ setShowFixtures(true);
3552
+ },
3553
+ children: "show them"
3554
+ }
3555
+ ),
3556
+ "."
3557
+ ] })
3558
+ ] }) : `Every organization you belong to is a test organization \u2014 all ${fixtures.length} are below.`
3532
3559
  }
3533
3560
  )
3534
3561
  ) : /* @__PURE__ */ jsx38("ul", { className: "max-h-72 overflow-y-auto", role: "listbox", "aria-label": "Organizations", children: listed.map(renderRow) }),