strata-react 2.1.5 → 2.1.7

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/README.md CHANGED
@@ -217,7 +217,7 @@ thousands of lines. Such an app imports the same stylesheet **without the reset*
217
217
  | Selection | `useSelection`, `useChoices`, `BulkBar`, `SelectableGrid`, `DataTable`'s `selection` (`RowSelection<T>`) | Opt-in checkbox column with "Select all shown" that respects `isSelectable`; Shift-click or Shift+Space chooses or clears the run from the last row clicked, in the order shown; `initial` (keys or a test on the row) chooses a row the first time it appears, so it applies to data that loads later; the selection drops rows that are gone; `BulkBar` announces the count politely, and while it is up its one filled action is the view's only one (the screen's primary goes to `outline`); `SelectableGrid` is the same selection as a grid of pictures (`renderImage`), each tile one labelled target, virtualised from 100 tiles; as a photo grid it takes a pixel `tileSize` zoomed by Ctrl/Cmd+wheel, `+` and `-` and two-finger pinch (`onTileSizeChange`), `aspect="natural"` (rows of equal height, each picture at its `naturalAspect`), a marquee from between tiles, `selectionMode` and `selectionBehavior` (`replace` is the Finder's rules; `onAction` opens), `groupBy` (sticky headings with a group box and a fold), a corner `badge`, `unselectableReason`, and counts what a filter hides ("3 chosen are hidden by the filter"); `ViewOptions` with `useViewOptions` is the one toolbar for how it is looked at: sort (natural order, direction named for the key), group, size slider, aspect, grid or list and a filter with its count, kept in `localStorage` and optionally `?sort=…&group=…&size=…`, a "View" popover on a phone. A choice can imply others: `implies(key)` (on `useSelection`, and `useChoices` for a lazy tree) keeps what the person chose apart from what that brings in, follows it through, locks the implied keys (they only clear with what implied them), and gives `implied`, `because(key)`, `counts`, a `note` for the live region and `summary(noun, then)`, the line a destructive confirm can carry ("12 results will be forgotten: 8 chosen, 4 that depend on them") |
218
218
  | Expansion | `Disclosure`, `useExpanded`, `DataTable`'s `expansion` (`RowExpansion<T>`) | Show more of one row in place. The toggle is a button with `aria-expanded`; the body is mounted only while open, so a request inside it runs on first open (unlike `<details>`, which mounts every closed body); `useExpanded({ param })` shares the open keys across a list or table and keeps them in the URL; a table's detail row spans the data columns and is measured when virtualised |
219
219
  | Data loading | `StrataQueryProvider`, `createQueryClient`, `useLoad`, `usePoll`, `useInfiniteLoad`, `useJob`, `useWorkflowRun`, `isWorkflowRunning`, `toLoad`, `staleOf`, `fetchJson`, `createApi`, `appBase`, `withBase`, `HttpError`, `readErrorBody`, `fieldErrorsOf` | TanStack Query in, `Load<T>` out; a refetch that fails after a good read stays `ready` with `stale` set, never an error panel; `useLoad({ poll })` with `usePoll({ every })` reads again on an interval until the person pauses it (`PauseButton`), and once at once on resume; `useInfiniteLoad` works out the cursor itself (after the last item held), merges pages by key and can `dismiss` an item at once; `useJob` polls a job's status only while it runs and invalidates the queries it changes once, when it ends; `fetchJson(url, { json })` sends a JSON body (content type and `POST` set for you); `createTypedApi<paths>()` is the same typed by `strata-api-types`' `paths` (path, `{params}`, `query`, `json` and the answer are checked); `createApi({ base })` is `get`/`post`/`put`/`patch`/`delete` over it with the app's base put before root-relative paths (`appBase()` reads the page's `<base href>`, so the app works behind a reverse proxy; use `withBase` for an `<img src>` or a download link); `fetchJson` reads an error response's body onto the `HttpError` (`body`, `reason`, `fieldErrors`, read by `readErrorBody` or the API's own `readError`); the strata apps' shared server shapes (`strata_python.contracts`): `apiPage<T>()` gives `useInfiniteLoad` the `Page<T>` items and its own `next` cursor (nothing held or dismissed changes it), `isTaskRunning(task, FINISHED)` is `useJob`'s `isRunning` for a `Task`, and an error body's `payload` (what is already running, on a 409) is on `HttpError.payload`, read typed with `errorPayload<T>(error)`; `useWorkflowRun({ finished })` is `useJob` for a `WorkflowRun`, polling while the run's job (`WorkflowRun.job`) is in a state not in `finished` |
220
- | Page and navigation | `AppShell`, `SideNav`, `Breadcrumb`, `Tabs`, `PageHeader`, `LinkCard`, `LinkCardList` | React Router; tab and sort state in the URL; a `LinkCard` is one link named by its title, described by its text and `Status` marks, with the whole card as the target (`to` a route, `href` elsewhere, marked with an arrow only when it is on another origin or `external`) |
220
+ | Page and navigation | `AppShell`, `SideNav`, `Breadcrumb`, `Tabs`, `PageHeader`, `LinkCard`, `LinkCardList` | React Router; tab and sort state in the URL; a `LinkCard` is one link named by its title, described by its text and `Status` marks, with the whole card as the target (`to` a route, `href` elsewhere, marked with an arrow only when it is on another origin or `external`); a `PageHeader` finding marked `hidden` holds its room until it shows, so what is under it does not jump |
221
221
  | Keyboard | `useHotkeys`, `KeysLegend`, `Shortcut`, `useActiveItem`, `ActiveList`, `isTypingTarget`, `useRebindableShortcuts`, `ShortcutEditor`, `keyName` | For queues worked from the keyboard; one shortcut list drives the handler and the legend; keys never fire while typing; answering moves focus to the next item. To let a person rebind the keys, give the same `Shortcut[]` to `useRebindableShortcuts` (remembered under `storageKey`, or handed to `onChange`) and pass its `shortcuts` to `useHotkeys` and `KeysLegend` and its result to `ShortcutEditor`: each action with its keys and a Change that records the next key, a chord refused with the reason (Ctrl, Cmd and Alt belong to the browser), a conflict named with a swap, Reset and Reset all, all said in a polite status `useHotkeys` takes `within` (keys count only with focus inside a region; a shortcut marked `anywhere` stays page-wide) and returns `live`, the keys that answer right now, for `KeysLegend`. |
222
222
  | Theme | `ThemeProvider` (`defaultPalette`), `PaletteChoice`, `usePalette`, `paletteScript`, `palettes`, `useColorScheme`, `useSystemColorScheme`, `ColorSchemeChoice`, `colorSchemeScript` | System, light or dark; sets `.dark`, persists in localStorage when it can; `ColorSchemeChoice` is a radio list for a settings page, or `compact` icon segments named "Appearance" for an app with no settings page |
223
223
  | Density | `Density`, `DensityName`, `ThemeProvider`'s `density`, `ControlSize` (`size="sm"` on `Input`, `NativeSelect`, `NumberField`, `IconButton`) | Control height is two variables, `--control-h` and `--control-h-sm`. `<ThemeProvider density="compact">` or `<Density page value="compact">` sets them app-wide, including dialogs and menus, which portal out of the app's root; `<Density value="compact">` is one region (a toolbar, a dense panel) and does not reach its overlays. A coarse pointer (touch) always gets 44px targets, whatever the density A second look for a region is roles alone: set `--control-h`, `--control-h-sm`, `--control-px`, `--control-px-sm`, `--control-icon` and each type step's `--type-<step>-size`, `-leading` and `-weight` (`caption`, `label`, `body-sm`, `body`, `heading`, `title`, `figure`) on a class; the defaults are today's values. |
@@ -247,7 +247,7 @@ thousands of lines. Such an app imports the same stylesheet **without the reset*
247
247
  | Maps | `strata-react/map`: `RouteMap`; `geo`, `LatLng` (main entry) | Routes and a position that moves along them, on Leaflet (no react-leaflet), behind its own entry. Tiles are the app's (`tiles.light`, `tiles.dark`, each with its attribution); the dark scheme uses the dark set or a filter over the light one. Route colours are roles resolved at draw time; `values` with `colourScale` colour a route by value in runs of one step, with a key that names the steps; a single route gets direction chevrons and start/finish marks (a loop is one mark). The position is one marker moved with `setLatLng`: no route is redrawn for it (keep `routes` stable). As picture content (a route inset over footage): `zoom` sets any zoom (animate it per frame), `follow="centre"` holds the view exactly on a position with no animation (a frame is deterministic), and `positions` draws several, each tied to a route, in its colour and named in the text alternative; routes are not redrawn for any of it. Leaflet's keyboard pan and zoom stay; the map is named by `label` and described by a generated text alternative (routes, lengths, position along). Overlay slots `topEnd` and `bottomStart` avoid Leaflet's own controls and attribution. Leaflet's stylesheet is injected once, so an app imports nothing. `geo` (distance, bearing, bounds, `pointAlong`, `arrows`, `ends`) and `format.distance` need no map library |
248
248
  | Timeline | `Timeline`, `useTimelineZoom`, `TimelineZoomControls`, `noOverlap` | Items with a start and a length in lanes on a zoomable time axis, for media edits, bookings, rotas and plans. The timeline draws and the app decides: every move, trim, lane change, selection and current-time change is reported (`onItemChange`, `onSelect`, `onPositionChange`) and the app applies it; `validate` refuses a change with a reason shown in words while it is made. One tab stop for the items; arrows move between them, Ctrl+arrows nudge and change lane, Alt+arrows trim, the current time is its own slider, `+` `-` `0` zoom, and each change is announced ("run-02.mp4 moved to 0:13"). The ruler picks steps people write on a scale so labels never collide. Lanes take drops from outside (`dropTypes`, `onDrop` with the lane and snapped time, `validateDrop`, and React Aria's keyboard drag landing at the current time), `laneRows` makes them taller, `kindColours` fixes each kind's stripe, and the header column fits its content. Only items near the view are rendered |
249
249
  | Answering by tap | `ChoiceGrid`, `ChoiceGridSkeleton`, `ChoiceState`; the `type-picture` step | One question, large picture tiles, one right answer, for someone who may not read yet (a child's learning game). Each tile is `open`, `wrong` (greyed, never red), `right` or `answer` (shown after the tries ran out), always with its word; a choice with no answer key ("Which one next?", a rating) uses `picked` (primary border, neutral word, `marks={{ picked }}`), which closes the grid so a slow request cannot be tapped twice; the app owns the answer key. Answered tiles cannot be pressed again and the grid closes once the answer shows. React Aria's `GridList`: arrows across and down, Enter answers. Tiles at least 120px (`md`) or 160px (`lg`); `stretch` shares the row out so a few tiles fill a wide screen; `beckon` pulses the open tiles one at a time in a random order until the grid closes |
250
- | Answering by placing | `PlaceBoard`, `PlaceState` | An answer that is an arrangement (give a number, put in order, match pairs, sort), for someone who may not read yet. Two taps: pick a piece up (`aria-pressed`, "Picked up", a blue info ring), put it in a place ("Put apple in the basket"; every place that takes it gets the same ring); tap it again to put it down, or tap its gap in the pile ("Put … back"). Or drag it there by pointer (from the press, no long press). With one place a tap moves at once, in or out (a big X on hover). `limit` caps a place: a piece put in a full one sends the one there back ("in place of 4"). The pile keeps a slot per piece and each place room for all it can hold (a lone place takes the row), so nothing moves during a round. Same presses by touch, mouse, keyboard and screen reader; places are disabled until a piece is held, so Tab walks the pieces, then the places; focus follows a moved piece. The app owns `placement`, applies `onMove` and checks (`check` draws its big Check, `Button size="lg"` with a tick either side); `placeState` marks a place `right` or `wrong` (neutral, never red) with its word, `locked` ends the round. Pieces 96px or more in the pile, 72px once placed; `beckon` pulses the pile's pieces one at a time while none is held; `stretch` shares the pile's and places' rows out; a picture never outgrows its tile |
250
+ | Answering by placing | `PlaceBoard`, `PlaceState` | An answer that is an arrangement (give a number, put in order, match pairs, sort), for someone who may not read yet. Two taps: pick a piece up (`aria-pressed`, "Picked up", a blue info ring), put it in a place ("Put apple in the basket"; every place that takes it gets the same ring); tap it again to put it down, or tap its gap in the pile ("Put … back"). Or drag it there by pointer (from the press, no long press). With one place a tap moves at once, in or out (a big X on hover). `limit` caps a place: a piece put in a full one sends the one there back ("in place of 4"). The pile keeps a slot per piece and each place room for all it can hold (a lone place takes the row), so nothing moves during a round (the held word sits over its piece's foot; the Check keeps its room once locked). Same presses by touch, mouse, keyboard and screen reader; places are disabled until a piece is held, so Tab walks the pieces, then the places; focus follows a moved piece. The app owns `placement`, applies `onMove` and checks (`check` draws its big Check, `Button size="lg"` with a tick either side; `check.untilPlaced` greys it out until the pile is empty, for a round with a set number of answers); `placeState` marks a place `right` or `wrong` (neutral, never red) with its word, `locked` ends the round. Pieces 96px or more in the pile, 72px once placed; `beckon` pulses the pile's pieces one at a time while none is held; `stretch` shares the pile's and places' rows out; a picture never outgrows its tile |
251
251
  | Seeing for a moment | `Glimpse`, `useCountdown` | Something shown briefly and then hidden ("How many did you see?"). A 3-2-1 (`count`) before every look, then the content for `ms` with a bar under it that empties as the time goes (`drain`), then hidden with its room kept, so nothing under it moves. Changing `again` shows it again, count and timer included (after a wrong answer); `peeks` offers that many looks again on a "Look again" button in the empty box, gone once used. `onLook` reports each look and why (`first`, `again`, `peek`). `useCountdown(running, seconds, onDone)` is the whole-second count on its own (an auto Next) |
252
252
  | Sortable list | `SortableList` | Reorder a list and move items between lists, by pointer and by keyboard. React Aria's `GridList` with `useDragAndDrop` (no `@dnd-kit`): a grip per row is the drag handle, so clicking a row selects it and its own actions still work; Enter on the grip picks up, arrows and Tab choose a position or list, Enter drops, Escape cancels, with React Aria's screen-reader announcements. Items carry a kind (`getKind`); a list takes the kinds in `accepts` and says why it refuses another (`refuses`, shown with an icon while that kind is dragged over it). The list never changes the data: `onReorder` and `onInsert` report the move and the app applies it, undoably |
253
253
  | Drag source | `DragSource` | A row that is dragged onto a drop target elsewhere (a `Timeline` lane), by pointer or from the keyboard. React Aria's `useDrag` with a drag button: a grip named "Drag <label>" picks it up with Enter, Tab moves between targets that take its types, Enter drops, Escape cancels, with React Aria's announcements; the pointer can pick up the whole row and the row's own buttons still work. `items` returns the drag's data (`DragData`, a type to a value), read by the target |
package/UPGRADING.md CHANGED
@@ -11,6 +11,11 @@ time. While the version is 0.x, any release may break.
11
11
 
12
12
  Every PR that changes what an app sees adds a line here (see `CLAUDE.md`, "Changelog").
13
13
 
14
+ ## 2026-11-28 (PlaceBoard and PageHeader: the board stays still)
15
+
16
+ - A locked `PlaceBoard` with `check` keeps the Check in the DOM, invisible, `inert` and `aria-hidden` (so `queryByRole("button", { name: "Check" })` is still null, but a `hidden: true` query finds it). A shot of a locked board grows by the Check's room.
17
+ - The held piece's "Picked up" word is drawn over its foot, so a held piece no longer grows; `data-placeboard--holding*` baselines move.
18
+
14
19
  ## 2026-11-28 (PlaceBoard: gaps, one tap, drag)
15
20
 
16
21
  - `PlaceBoard`'s pile keeps every piece's slot: a placed piece leaves an `aria-hidden` gap there (`[data-gap]`), and the "Put … back" button is now that gap, in the pile, while the placed piece is held. A test that found it outside the pile group or counted the pile's children sees the change.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as AsyncActionOptions, B as RowAction, C as useColorScheme, D as DensityName, E as Density, F as useAsyncAction, H as buttonVariants, I as Button, L as ButtonProps, M as AsyncLabels, N as FieldErrors, O as DensityProps, P as Phase, R as IconButton, S as palettes, T as useSystemColorScheme, U as ControlSize, V as RowActionProps, W as IconComponent, _ as PaletteOption, a as browserMicrophone, b as colorSchemeScript, c as COLOR_SCHEME_STORAGE_KEY, d as ColorSchemeLabels, f as ColorSchemePreference, g as PaletteChoice, h as PALETTE_STORAGE_KEY, i as MicrophoneStream, j as AsyncButton, k as AsyncAction, l as ColorScheme, m as DEFAULT_PALETTE, n as MicrophoneContext, o as explainMicrophoneError, p as ColorSchemeState, r as MicrophoneError, s as useMicrophone, t as Microphone, u as ColorSchemeChoice, v as PaletteState, w as usePalette, x as paletteScript, y as ThemeProvider, z as IconButtonProps } from "./microphone-DWh4OaMH.js";
1
+ import { A as AsyncActionOptions, B as RowAction, C as useColorScheme, D as DensityName, E as Density, F as useAsyncAction, H as buttonVariants, I as Button, L as ButtonProps, M as AsyncLabels, N as FieldErrors, O as DensityProps, P as Phase, R as IconButton, S as palettes, T as useSystemColorScheme, U as ControlSize, V as RowActionProps, W as IconComponent, _ as PaletteOption, a as browserMicrophone, b as colorSchemeScript, c as COLOR_SCHEME_STORAGE_KEY, d as ColorSchemeLabels, f as ColorSchemePreference, g as PaletteChoice, h as PALETTE_STORAGE_KEY, i as MicrophoneStream, j as AsyncButton, k as AsyncAction, l as ColorScheme, m as DEFAULT_PALETTE, n as MicrophoneContext, o as explainMicrophoneError, p as ColorSchemeState, r as MicrophoneError, s as useMicrophone, t as Microphone, u as ColorSchemeChoice, v as PaletteState, w as usePalette, x as paletteScript, y as ThemeProvider, z as IconButtonProps } from "./microphone-xGKxcK6p.js";
2
2
  import { n as geo, t as LatLng } from "./geo-DfKa9JtK.js";
3
3
  import { $ as ChartMark, A as SpanOutcome, B as StageGuides, C as MediaSpanData, Ct as PlayerWarning, D as SpanActionsNotice, E as SpanActions, F as RateChoice, G as VolumeControlProps, H as Transport, I as SeekBar, J as KeysLegend, K as transportShortcuts, L as SeekBarProps, M as useMediaSpans, N as MediaStage, O as SpanBehaviour, P as Precision, Q as useHotkeys, R as SeekBarSpan, S as MediaProgress, St as skipAction, T as PlayerNotice, Tt as usePlayerWarnings, U as TransportProps, V as TimeReadout, W as VolumeControl, X as isTypingTarget, Y as Shortcut, Z as keyName, _ as MediaStat, _t as MediaMark, a as MediaPlayerProps, at as LineChartProps, b as mediaStatRows, bt as SkipSteps, c as MediaSource, ct as YScale, d as SPEECH_RATES, dt as CursorMapping, et as ChartSpan, f as SourceAttacher, ft as CursorOwner, g as useMediaElement, gt as useSharedCursor, h as useAttachedSource, ht as SharedCursor, i as MediaPlayer, it as LineChartGroupProps, j as SpanWords, k as SpanKind, l as MediaWindow, lt as logScale, m as StreamContext, mt as CursorScopeProps, n as MediaElementState, nt as LineChart, o as MediaProblem, ot as Point, p as StreamAttachment, pt as CursorScope, q as HotkeysOptions, r as MediaHeading, rt as LineChartGroup, s as MediaSession, st as SpanTone, t as MediaElementOptions, tt as GroupedChart, u as ResumeWords, ut as valueAt, v as MediaStats, vt as SkipAction, w as MediaSpansState, wt as PlayerWarningEvent, x as useMediaStats, xt as marksFor, y as StreamStats, yt as SkipLevel, z as SpanStrip } from "./media-player-C6j069Aa.js";
4
4
  import { ClassValue } from "clsx";
@@ -3169,11 +3169,15 @@ type PlaceBoardProps<P, S> = {
3169
3169
  beckonMs?: number;
3170
3170
  /** How many pieces a place holds at most (an order's slot: 1). A piece put in a full place sends the one there back to the pile, so a learner can put a piece on top of another instead of moving that one out first. Default: no limit. */
3171
3171
  limit?: (place: S) => number;
3172
- /** The app's check, drawn as the board's big button under the places while it is not locked ("Check", with a tick either side). */
3172
+ /**
3173
+ * The app's check, drawn as the board's big button under the places while it is not locked ("Check", with a tick either side); once locked it holds its room, invisible and inert.
3174
+ * `untilPlaced`: greyed out and inert until no piece is left in the pile, for a round with a set number of answers (match each to its pair, put all in order), where checking half an answer only teaches that the button does nothing. Leave it off where how many to place is the challenge (give a number, pick out the ones that belong), so the Check is ready from the start.
3175
+ */
3173
3176
  check?: {
3174
3177
  label: string;
3175
3178
  onCheck: () => void;
3176
3179
  disabled?: boolean;
3180
+ untilPlaced?: boolean;
3177
3181
  };
3178
3182
  className?: string;
3179
3183
  };
@@ -3508,9 +3512,11 @@ export declare function PageHeader({ title, scope, actions, finding, as: Heading
3508
3512
  /** What the screen covers: a date, a range, a filter. */
3509
3513
  scope?: React.ReactNode;
3510
3514
  actions?: React.ReactNode;
3515
+ /** The finding and its action. `hidden`: not shown yet, but its room is held (invisible, inert, hidden from readers). */
3511
3516
  finding?: {
3512
3517
  text: React.ReactNode;
3513
3518
  action?: React.ReactNode;
3519
+ hidden?: boolean;
3514
3520
  };
3515
3521
  }): React.JSX.Element;
3516
3522
  /** A removal waiting out its undo window: what to say, what to do when the window closes, and what to say if that fails. */
package/dist/index.js CHANGED
@@ -13107,7 +13107,7 @@ function PlaceBoard({ label, pieces, pieceKey, pieceLabel, renderPiece, places,
13107
13107
  className: pieceClass(key),
13108
13108
  children: [picture(p, placed), isHeld && /* @__PURE__ */ jsx(Status, {
13109
13109
  tone: "info",
13110
- className: "max-w-full truncate",
13110
+ className: "absolute inset-x-1 bottom-1 justify-center truncate",
13111
13111
  children: marks.held
13112
13112
  })]
13113
13113
  });
@@ -13190,23 +13190,27 @@ function PlaceBoard({ label, pieces, pieceKey, pieceLabel, renderPiece, places,
13190
13190
  }, key);
13191
13191
  })
13192
13192
  }),
13193
- check && !locked && /* @__PURE__ */ jsxs(Button, {
13194
- variant: "default",
13195
- size: "lg",
13196
- onClick: check.onCheck,
13197
- disabled: check.disabled,
13198
- className: "justify-self-center",
13199
- children: [
13200
- /* @__PURE__ */ jsx(Check, {
13201
- "aria-hidden": true,
13202
- strokeWidth: 3
13203
- }),
13204
- check.label,
13205
- /* @__PURE__ */ jsx(Check, {
13206
- "aria-hidden": true,
13207
- strokeWidth: 3
13208
- })
13209
- ]
13193
+ check && /* @__PURE__ */ jsx("div", {
13194
+ "aria-hidden": locked || void 0,
13195
+ inert: locked || void 0,
13196
+ className: cn("grid justify-items-center", locked && "invisible"),
13197
+ children: /* @__PURE__ */ jsxs(Button, {
13198
+ variant: "default",
13199
+ size: "lg",
13200
+ onClick: check.onCheck,
13201
+ disabled: check.disabled || check.untilPlaced && pieces.some((p) => where(p) === null),
13202
+ children: [
13203
+ /* @__PURE__ */ jsx(Check, {
13204
+ "aria-hidden": true,
13205
+ strokeWidth: 3
13206
+ }),
13207
+ check.label,
13208
+ /* @__PURE__ */ jsx(Check, {
13209
+ "aria-hidden": true,
13210
+ strokeWidth: 3
13211
+ })
13212
+ ]
13213
+ })
13210
13214
  }),
13211
13215
  drag !== null && createPortal((() => {
13212
13216
  const p = pieces.find((q) => pieceKey(q) === drag.key);
@@ -14461,7 +14465,10 @@ function PageHeader({ title, scope, actions, finding, as: Heading = "h1" }) {
14461
14465
  children: actions
14462
14466
  })]
14463
14467
  }), finding && /* @__PURE__ */ jsxs("div", {
14464
- className: "flex flex-wrap items-center justify-between gap-x-6 gap-y-3 border-y border-border py-3",
14468
+ "aria-hidden": finding.hidden || void 0,
14469
+ inert: finding.hidden || void 0,
14470
+ "data-hidden": finding.hidden || void 0,
14471
+ className: cn("flex flex-wrap items-center justify-between gap-x-6 gap-y-3 border-y border-border py-3", finding.hidden && "invisible"),
14465
14472
  children: [/* @__PURE__ */ jsx("p", {
14466
14473
  className: "max-w-prose min-w-0 type-body text-pretty",
14467
14474
  children: finding.text