strata-react 2.1.15 → 2.1.17

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
@@ -244,6 +244,7 @@ thousands of lines. Such an app imports the same stylesheet **without the reset*
244
244
  | Pictures from a set | `Lightbox` (`useLightboxUrl`), `BookViewer` (`useBookUrl`), `Concealed` (`useRevealed`), `TileGrid`, `BoxOverlay`/`BoxList`/`useBoxes`, `BoxedPicture`, `RegionEditor`; `regionStyle`, `moveRect`, `resizeRect`, `lerpRect`, `turnedSize`, `turnRect`, `readingOrder`, `zoomToBox`, `findPage` | A picture opened from a grid in a full-size `Dialog` (previous/next, arrow keys, "3 of 40" or a position like "Page 22 (12) of 44", zoom and 1:1, details beside it, an overlay and actions for the item, a thumbnail strip, `?view=` in the URL, neighbours preloaded, a `missing` sentence, Compare ticked hand-off); a scanned book read inline as spreads or single pages with printed and scan names, go-to, `?page=` and a strip with badges; a picture covered until a person chooses to see it (`Concealed`: the reason in words and a Show / Hide button named for the item, around a picture the *server* blurs until asked, never a CSS blur alone; `useRevealed` keeps which are shown and a show-all switch for this visit); a grid of picture tiles that link (`TileGrid`, with `TileGridSkeleton`); read-only boxes on a picture linked to a list beside it, and the picture opened zoomed to one of them (a face in its photo, `BoxedPicture`); one box of a picture shown on its own in a `Thumbnail` (`region`); `RegionEditor` also turns the picture by an angle (the windows turn with it) and edits a spread's gutter; named windows drawn and moved on a picture by pointer, keys and numbers, with aspect and bounds held, and a from/to move with a Watch preview |
245
245
  | Sequences | `SequenceTimeline`; `snapToGrid`, `stepOnGrid`, `settleCut` | A gapless strip of windows whose cuts are sliders: dragged or stepped along a beat grid inside the room the app gives, the refusal said in words, both windows' new lengths announced; Shift+click chooses a run |
246
246
  | Browsing | `Tree`, `FolderPicker` | A hierarchy that loads as it opens (`current` + `onCurrentChange` is the row in view beside the ticked ones, `count` and `badge` per row, `sortChildren`, `reveal` of a deep link (its ancestors are written into `useExpanded({ param })`'s URL), `branchPress="toggle"` so pressing a folder's name opens it and only files are chosen, `resolveBranch` so ticking a year says "2019 and its 91 folders" without opening them; a hook per open node; skeleton, Try again and empty rows; always virtualised); `choices` (from `useChoices`) chooses several: a checkbox per row, Shift ranges, a parent drawn mixed from what has loaded under it (ticking a branch never opened reads and opens it and chooses everything under it), "Select all shown", and rows the choice implies marked "Included because of …" in words and a server folder chooser on it: breadcrumb that is also editable text, Up, recents, New folder with the server's refusal on the field, Choose this folder; a `Folder` may carry a `badge` and `tone` ("project", as words), `canChoose` gives the reason the button is disabled beside it, `chooseLabel` names it, `onOpen` can answer `"choose"` to take a folder at once instead of entering it, and the listing may return a `footer` under the tree |
247
+ | JSON | `JsonView` | Any JSON value as a tree, the fallback when an app cannot show a value in its own words: objects and arrays open and close (chevron, Right/Left, type-ahead, Expand all / Collapse all), `openDepth` levels open at first, values coloured by type with theme roles, long strings wrapped, the open set optionally `useExpanded` keyed by JSON Pointer (`jsonBranchPaths`) |
247
248
  | Marking text | `MarkableText`, `Mark`, `MarkSummary`; `rangeBetween` | Select words by drag, Shift+click and Shift+arrows (ids in document order, so it holds across virtualised rows), apply the app's marks from a bar or single-key chords, marks drawn by role, pattern and text, summarised and announced |
248
249
  | 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 |
249
250
  | 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 |
@@ -251,6 +252,10 @@ thousands of lines. Such an app imports the same stylesheet **without the reset*
251
252
  | 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. `renderCaption`, `onHover`, `onHoverPlace` and `reading` as on `ChoiceGrid` |
252
253
  | Telling the time | `Clock`, `ClockFace`, `DigitalClock`, `SetClock`, `clockWords`, `digitalTime` | One time on a clock people know. `Clock` picks the face: analogue (`teaching`, the default classroom clock with its hands told apart by length, width and colour; `railway`, the Swiss station clock with its red disc; `classic`, Roman numerals and Breguet hands; `bauhaus`; `aviator`; `modern`; `minimal`) or digital (`segments`, `flip`, `plain`; 12- or 24-hour, am and pm). Each analogue part can be set on its own (`numerals`, `numbers`, `marks`, `hands`, `minuteNumbers`), so a step can take one away. The hour hand moves between the numbers as the minutes pass. Each is an `img` named with the time in words or as written; pass `label` when the time is the answer. `SetClock` is the control: press or drag anywhere and the nearer hand goes there, snapping to `step` minutes; the hands are geared as a real clock's are; each hand is a slider for the arrow keys and Page Up and Down. |
253
254
  | Fractions | `FractionShape`, `fractionParts`, `fractionWords` | A circle, square, rectangle or triangle cut into 1 to 8 parts with some shaded: halves and quarters drawn the usual ways (`cut`: strips, rows, a grid, corner to corner), and `unequal` parts for a shape cut in two that is not cut in halves. An `img` named in words ("A circle cut into 4 equal parts, 1 shaded"); pass `label` when the fraction is the answer. `fractionWords(3, 4)` is "three quarters". |
255
+ | Money | `Money`, `moneyWords`, `coinOutline`, `COINS`, `NOTES` | A UK coin (1p to £2) or note (£5 to £20) drawn with its outline (round, the seven curved sides of 20p and 50p, the twelve of £1), its metal and its value; `toScale` sizes a coin beside the £2. The metals are the `coin-copper`, `coin-silver`, `coin-gold` and `coin-ink` roles. |
256
+ | 3-D shapes | `Solid`, `solidWords`, `SOLID_SHAPES` | A cube, cuboid, sphere, cylinder, cone, square-based pyramid or triangular prism, its faces shaded and hidden edges dashed. |
257
+ | Measures | `FillLevel`, `fillWords`, `Balance`, `LengthBar` | A glass filled to a level ("half full"); a balance with a picture in each pan, tipped to the heavier or level; a ribbon, pencil or cubes drawn to a length on a frame every bar shares, along or upright. |
258
+ | Turns | `TurnArrow`, `turned`, `turnWords`, `FACINGS` | An arrow pointing up, right, down or left with a quarter, half, three-quarter or whole turn drawn round it; `turned("up", { quarters: 1, clockwise: true })` is `"right"`. |
254
259
  | 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, run, { hold })` is the whole-second count on its own (an auto Next); `hold: useSpeaking()` makes the end wait, on 1, until the words have been said too (given up after `holdAtMost`, 10 s) |
255
260
  | 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 |
256
261
  | 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 |
@@ -308,9 +313,14 @@ page's requests in Node, so the app needs no test mode and no service worker.
308
313
 
309
314
  ```bash
310
315
  npm install -D -E playwright # exact version: the baselines belong to its Chromium
311
- npx playwright install chromium
316
+ npx playwright install chromium # only where no Chromium is installed (CI)
312
317
  ```
313
318
 
319
+ When the pinned build is not downloaded, `strata-visual` uses a Chromium the machine already has
320
+ (`STRATA_VISUAL_CHROMIUM`, Playwright's other builds, then a system Chromium or Chrome) and says
321
+ which in a warning. Hinting and LCD text are off and the comparison blurs both images, so another
322
+ build gives the same baselines in practice (555 of 556 identical on 2026-11-30); CI keeps the pin.
323
+
314
324
  ```ts
315
325
  // strata-visual.config.ts
316
326
  import { defineVisualConfig } from "strata-react/visual";
package/UPGRADING.md CHANGED
@@ -11,6 +11,14 @@ 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-30 (coin roles)
15
+
16
+ - An app on `strata.bare.css` that draws `Money` sets `--coin-copper`, `--coin-silver`, `--coin-gold` and `--coin-ink` in its theme, as it sets the status roles; `strata.css` sets them.
17
+
18
+ ## 2026-11-30 (strata-visual: a local Chromium)
19
+
20
+ - `strata-visual` no longer fails when Playwright's pinned Chromium is not downloaded: it uses one already on the machine and adds a warning naming it. A test that expected the launch error now sees the warning. Set `STRATA_VISUAL_CHROMIUM` to choose the binary.
21
+
14
22
  ## 2026-11-29 (ChoiceGrid and PlaceBoard: a word fits its tile)
15
23
 
16
24
  - A `ChoiceGrid` or `PlaceBoard` picture that is a string of letters three or more long is drawn smaller, by its length, so it fits its tile. Baselines of tiles showing words move; emoji, numerals and nodes do not.
package/dist/index.d.ts CHANGED
@@ -5904,6 +5904,25 @@ type TreeCommon<N> = {
5904
5904
  };
5905
5905
  /** A hierarchy whose children load as each node opens (a `useChildren` hook per open node): a skeleton row, a Try again row and an "empty" row per node, type-ahead and arrow keys, single selection, open state optionally in the URL, always virtualised. */
5906
5906
  export declare function Tree<N>({ label, roots, useChildren, nodeKey, nodeLabel, isBranch, renderNode, selected, onSelect, choices, current, onCurrentChange, count, badge, sortChildren, reveal, resolveBranch, coverNoun, branchPress, expanded, beforeOpen, loadingRow, emptyRow, height, className }: TreeProps<N>): React.JSX.Element;
5907
+ /** Every branch's path under `value` down to `depth` levels (all of them with `Infinity`): what `JsonView` opens at first, and what "Expand all" opens. */
5908
+ export declare function jsonBranchPaths(value: unknown, depth?: number, path?: string): string[];
5909
+ type JsonViewProps = {
5910
+ /** Any value: what `JSON.parse` gives, or a record from an API. Strings, numbers, booleans and null are coloured; objects and arrays open and close. */
5911
+ value: unknown;
5912
+ /** Names the tree for assistive technology: "Model output". Required. */
5913
+ label: string;
5914
+ /** How many levels are open at first. Default 2: the top and its children. Ignored when `expanded` is given. */
5915
+ openDepth?: number;
5916
+ /** The open set, keyed by JSON Pointer (`""` is the top, `/answer/0` below it), from `useExpanded`, to keep it in the URL. Default: the tree keeps its own. */
5917
+ expanded?: Expanded;
5918
+ /** The name shown on the top row. Default "value". */
5919
+ rootName?: string;
5920
+ /** The tallest the tree may be before it scrolls, as a CSS length. Default 32rem. */
5921
+ height?: string;
5922
+ className?: string;
5923
+ };
5924
+ /** Any JSON value as a tree: objects and arrays open and close (arrows, type-ahead, Expand all / Collapse all), values coloured by type with theme roles, long strings wrapped. The fallback for a value an app cannot show in its own words. */
5925
+ export declare function JsonView({ value, label, openDepth, expanded: given, rootName, height, className }: JsonViewProps): React.JSX.Element;
5907
5926
  /** One folder in a listing. */
5908
5927
  type Folder = {
5909
5928
  /** The full path, which is also its key. */
@@ -6159,5 +6178,124 @@ export declare function hourAt(angle: number, minutes: number): number;
6159
6178
  export declare function minutesAt(angle: number, step?: number): number;
6160
6179
  /** A clock whose hands are dragged, pressed or keyed to a time, geared as a real clock's are. */
6161
6180
  export declare function SetClock({ value, onChange, step, geared, face, label, handLabels, isDisabled, className, ...over }: SetClockProps): import("react").JSX.Element;
6162
- export { type ActiveItem, type AlertDialogProps, type AlertProps, type Api, type ApiOptions, type ApiPage, type AspectRatio, type AsyncAction, type AsyncActionOptions, AsyncButton, type AsyncLabels, type AudioMedia, type AutoRecorder, type AutoRecorderState, type AutoSave, type AutoSaveOptions, type AutoTake, type BinaryByteUnit, type BookPage, type BookUrl, type BookViewerProps, type BoxListProps, type BoxOverlayProps, type BoxSource, type BoxTone, type BoxedPictureProps, type BoxesState, type Brush, type BrushControl, type BrushKind, Button, type ButtonLinkProps, type ButtonProps, type ByteHighlight, type ByteRange, type ByteUnit, type ByteViewProps, type BytesOptions, COLOR_SCHEME_STORAGE_KEY, type Candidate, type CellValue, type ChartMark, type ChartSpan, type CheckboxGesture, type CheckboxProps, type Choice, type ChoiceCounts, type ChoiceGridProps, type ChoiceGroupProps, type ChoiceMarks, type ChoiceSize, type ChoiceState, type Choices, type ClientWork, type Clips, type ClipsContext, type ClipsProviderProps, type ClockFaceProps, type ClockFaceStyle, type ClockHands, type ClockMarks, type ClockNumbers, type ClockNumerals, type ClockParts, type ClockProps, type ClockStyle, type ClockTime, type ClockWordsOptions, type ColorFieldProps, type ColorScheme, ColorSchemeChoice, type ColorSchemeLabels, type ColorSchemePreference, type ColorSchemeState, type Column, type Command, type CommandMenuProps, type CommandsOptions, type CompareAudioProps, type CompareGridProps, type CompareMode, type CompareProps, type CompareTextProps, type CompareVideoGridProps, type CompareVideoProps, type ComposerProps, type CompositionBarProps, type CompositionPart, type ConcealedProps, type ConsoleLevel, type ConsoleLine, type ConsoleProps, type ContextMenuProps, type ControlSize, type ConversationImage, type ConversationProps, type ConversationTurn, type CountOptions, type CountdownOptions, type CurrencyOptions, type CursorMapping, type CursorOwner, CursorScope, type CursorScopeProps, type CutChange, type CutLimit, type CutRoom, DEFAULT_PALETTE, type DataTableProps, type DateFormatter, type DateInput, type DecodedAudio, type Delivery, Density, type DensityName, type DensityProps, type DescribeError, type DialogProps, type Difference, type DifferenceState, type DigitalClockProps, type DigitalClockStyle, type DigitalTimeOptions, type DisclosureOpenProps, type DisclosureProps, type DragData, type DragSourceProps, type DrawTool, type Drawing, type Box as DrawingBox, type DrawingLayerProps, type DrawingOp, type DrawingOptions, type DrawingState, type DrawingToolbarProps, type DropTarget, type Easing, type EditClip, type EditListOptions, type EditListPlayerProps, type EditListSlot, type EditListState, type EditTimes, type EditableRegion, type EntityMatch, type EntityMatcher, type ErrorBody, type EventLogEntry, type EventLogImage, type EventLogProps, type Expanded, type ExpandedOptions, type FailedRemoval, type FetchJsonInit, type FetchJsonOptions, type FieldErrors, type FieldProps, type FileIntake, type FileIntakeOptions, type FileOutcome, type FilmFrame, type FilmStripProps, type Folder, type FolderListing, type FolderPickerProps, type Format, type FormatOptions, type FractionCut, type FractionOutline, type FractionShapeProps, type FullscreenFrameProps, type GlimpseLook, type GlimpseProps, type GlimpseWhy, type Grid, type GroupMember, type GroupedChart, type Handle, type History, type HistoryOptions, type HistoryStateOptions, type HistoryStep, type HotkeysOptions, IconButton, type IconButtonProps, type IconComponent, type ImageMedia, type Implies, type InViewOptions, type InfiniteListProps, type InfiniteLoad, type InfiniteLoadOptions, type InitialSelection, type InkColours, type InkMatch, type InkMatchState, type InputLevelProps, type InspectorProps, type InspectorSectionProps, type Job, type JobAction, type JobActionOptions, type JobFailure, type JobOptions, type JobProgress, type JobRow, type JobStatusProps, type JobWords, type JobsTableProps, type KeyCheck, KeysLegend, type LatLng, type LightboxItem, type LightboxProps, type LightboxUrl, LineChart, LineChartGroup, type LineChartGroupProps, type LineChartProps, type LinkCardProps, type ListeningLevelProps, type Load, type LoadFailure, type LoadMoreProps, type Loudness, type MarkKind, type MarkPattern, type MarkTone, type MarkableTextProps, type MediaContentsItem, type MediaContentsProps, type MediaElementOptions, type MediaElementState, type MediaHeading, type MediaMark, MediaPlayer, type MediaPlayerProps, type MediaProblem, type MediaProgress, type MediaSession, type MediaSource, type MediaSpanData, type MediaSpansState, MediaStage, type MediaStat, type MediaStats, type MediaWindow, type MenuEntry, type MenuProps, type MeterProps, type MeterThreshold, type MetricProps, type Microphone, MicrophoneContext, MicrophoneError, type MicrophoneStream, type More, type NativeSelectProps, type NavItem, type Nib, type NumberFieldProps, type NumberFormatter, type Outbox, type OutboxItem, type OutboxOptions, type OutboxRefusal, type OutboxRequest, type OutboxSnapshot, type OutboxStatusProps, PALETTE_STORAGE_KEY, type PageNames, type Pair, type PairAnswer, type PairJudgeProps, type PairVoteProps, type PairVoteSlot, type PairVoteWords, PaletteChoice, type PaletteOption, type PaletteState, type PaneProps, type PeakPair, type PendingRemoval, type Phase, type PictureBox, type PictureRegion, type PixelImageProps, type Pixels, type PlaceBoardProps, type PlaceState, type Platform, type PlayWindowButtonProps, PlayerNotice, type PlayerWarning, type PlayerWarningEvent, type Point, type Poll, type PopoverProps, type Precision, type Property, type PropertyListProps, type PropertyRowProps, type RangeProps, type RangeSliderProps, RateChoice, type ReadAlongPart, type ReadAlongProps, type ReadAloud, type ReadAloudOptions, type ReadPixels, type Rebinding, type Recorder, type RecorderState, type Recording, type Rect, type RectLimits, type Region, type RegionEditorProps, type RegionTone, type Reserve, type ReserveOptions, type ResumeWords, type Revealed, type Block as RichBlock, type Inline as RichInline, type RichTextProps, RowAction, type RowActionProps, type RowExpansion, type RowSelection, SPEECH_RATES, type SaveState, type SayAgainProps, type SayOnShowOptions, type SayPictureProps, type Saying, type ScheduleRow, type ScheduleTableProps, type SearchParam, type SearchParamOptions, type SecretFieldProps, type SecretTestResult, SeekBar, type SeekBarProps, type SeekBarSpan, type Segment, type Segmenter, type SegmenterOptions, type SelectableGridProps, type SequenceItem, type SequenceTimelineProps, type SetClockProps, type SetOptions, type ShareBox, type SharedCursor, type Shortcut, type ShortcutOverrides, type SkipAction, type SkipLevel, type SkipSteps, type SliderProps, type Sort, type SortableListProps, type SourceAttacher, SpanActions, type SpanActionsNotice, type SpanBehaviour, type SpanKind, type SpanOutcome, SpanStrip, type SpanTone, type SpanWords, type SpeakOptions, type Speech, type SpeechLevel, type SpeechPart, StageGuides, type StageState, type StageWords, type Stale, type StrataToastRegionProps, type StreamAttachment, type StreamContext, type StreamStats, type Stroke, type StrokeChange, type StrokeNoteWords, type StrokePoint, type StrokeShape, type SwitchProps, type SystemFact, type SystemFolder, type SystemInfoLike, type SystemPanelProps, type SystemService, type TabItem, type TakeLevelProps, type TextDifference, type TextLinkProps, type TextMedia, type TextSegment, ThemeProvider, type ThumbnailProps, type TileAspect, type TileGridProps, type TileSize, TimeReadout, type TimelineChange, type TimelineClock, type TimelineClockOptions, type TimelineDrop, type TimelineItem, type TimelineLane, type TimelineMarker, type TimelinePlayerProps, type TimelineProps, type ToastContentProps, type ToggleGroupProps, type ToggleOption, type ToggleProps, type Tone, type ToolChoice, type ToolbarProps, type TooltipProps, type TranscriptGroup, type TranscriptPhrase, type TranscriptPhraseState, type TranscriptSeek, type TranscriptViewProps, type TranscriptWord, Transport, type TransportProps, type TreeNodeState, type TreeProps, type TypedApi, type Undoable, type UndoableOptions, type UseAutoRecorderOptions, type UseRecorderOptions, type UseSpeechOptions, type VideoLoop, type VideoMedia, type VideoMode, type ViewGroup, type ViewGroupRows, type ViewOptionsConfig, type ViewOptionsProps, type ViewOptionsState, type ViewPointerOptions, type ViewSort, type Viewport, type ViewportFrameProps, type ViewportState, VolumeControl, type VolumeControlProps, type WaveformMark, type WaveformMarkKind, type WaveformPeaks, type WaveformProps, type WaveformSpan, type WaveformTone, type WorkContext, type WorkPhase, type WorkflowRunLike, type WorkflowRunOptions, type WorkflowStage, type WorkflowStepsProps, type WorkflowSummaryData, type WorkflowSummaryProps, type WorkflowSummaryState, type WorkflowSummaryWords, type WorkspaceBarProps, type WorkspaceState, type YScale, browserMicrophone, buttonVariants, colorSchemeScript, explainMicrophoneError, format$1 as format, geo, isTypingTarget, keyName, logScale, marksFor, mediaStatRows, paletteScript, palettes, readPixels$1 as readPixels, skipAction, transportShortcuts, useAsyncAction, useAttachedSource, useColorScheme, useHotkeys, useMediaElement, useMediaSpans, useMediaStats, useMicrophone, usePalette, usePlayerWarnings, useSharedCursor, useSystemColorScheme, valueAt };
6181
+ /** A UK coin or note's value in pence: 1p to £2 coins, then £5, £10 and £20 notes. */
6182
+ type MoneyValue = 1 | 2 | 5 | 10 | 20 | 50 | 100 | 200 | 500 | 1000 | 2000;
6183
+ /** Every coin, smallest value first. */
6184
+ export declare const COINS: readonly MoneyValue[];
6185
+ /** Every note a Year 1 learner meets, smallest first. */
6186
+ export declare const NOTES: readonly MoneyValue[];
6187
+ /** Props of `Money`. */
6188
+ type MoneyProps = {
6189
+ /** The value in pence: a coin from 1 to 200, or a note of 500, 1000 or 2000. */
6190
+ pence: MoneyValue;
6191
+ /** Draw a coin at its size beside a £2 coin, rather than filling the box (notes always fill it). */
6192
+ toScale?: boolean;
6193
+ /** What a screen reader hears; by default "A 20p coin" or "A £5 note". */
6194
+ label?: string;
6195
+ /** Layout at the call site (its width; the drawing keeps its proportions). */
6196
+ className?: string;
6197
+ };
6198
+ type Outline = "round" | "seven" | "twelve";
6199
+ /** The outline of a coin of radius `r` about (100, 100) as an SVG path: a circle, a Reuleaux heptagon (20p and 50p,
6200
+ * seven arcs each centred on the opposite corner, so the coin is the same width every way) or a twelve-sided polygon. */
6201
+ export declare function coinOutline(outline: Outline, r: number): string;
6202
+ /** A value as it is written on a coin or a note: "20p", "£1", "£10". */
6203
+ export declare function moneyWords(pence: MoneyValue): string;
6204
+ /** A UK coin or note, drawn: its outline, its metal and its value. */
6205
+ export declare function Money({ pence, toScale, label, className }: MoneyProps): import("react").JSX.Element;
6206
+ /** The 3-D shapes `Solid` draws. */
6207
+ type SolidShape = "cube" | "cuboid" | "sphere" | "cylinder" | "cone" | "pyramid" | "prism";
6208
+ /** Every shape, in the order a gallery shows them. */
6209
+ export declare const SOLID_SHAPES: readonly SolidShape[];
6210
+ /** Props of `Solid`. */
6211
+ type SolidProps = {
6212
+ /** The shape: cube, cuboid, sphere, cylinder, cone, square-based pyramid or triangular prism. */
6213
+ shape: SolidShape;
6214
+ /** What a screen reader hears; by default the shape's name ("A cube"). */
6215
+ label?: string;
6216
+ /** Layout at the call site (its width; the drawing keeps its proportions). */
6217
+ className?: string;
6218
+ };
6219
+ /** A 3-D shape drawn with its faces shaded and its hidden edges dashed: cube, cuboid, sphere, cylinder, cone and more. */
6220
+ export declare function Solid({ shape, label, className }: SolidProps): import("react").JSX.Element;
6221
+ /** A 3-D shape's name as it is said: "a cube", "a triangular prism". */
6222
+ export declare function solidWords(shape: SolidShape): string;
6223
+ /** Props of `FillLevel`. */
6224
+ type FillLevelProps = {
6225
+ /** How full the glass is, from 0 (empty) to 1 (full). */
6226
+ level: number;
6227
+ /** What a screen reader hears; by default the glass and how full ("A glass, half full"). */
6228
+ label?: string;
6229
+ /** Layout at the call site (its width; the drawing keeps its proportions). */
6230
+ className?: string;
6231
+ };
6232
+ /** How full a glass is, in words: "empty", "a quarter full", "half full", "three quarters full", "full", or "nearly
6233
+ * full" and "nearly empty" between. */
6234
+ export declare function fillWords(level: number): string;
6235
+ /** A glass filled to a level, from empty to full: the picture of capacity (fuller, half full, empty). */
6236
+ export declare function FillLevel({ level, label, className }: FillLevelProps): import("react").JSX.Element;
6237
+ /** Which side of a `Balance` is down: the heavier, or `level` for the same. */
6238
+ type BalanceSide = "left" | "right" | "level";
6239
+ /** Props of `Balance`. */
6240
+ type BalanceProps = {
6241
+ /** The picture in the left pan (an emoji or a short word). */
6242
+ left: string;
6243
+ /** The picture in the right pan. */
6244
+ right: string;
6245
+ /** Which side is down: the heavier one, or `level`. */
6246
+ down: BalanceSide;
6247
+ /** What a screen reader hears; by default what is in each pan and which side is down. */
6248
+ label?: string;
6249
+ /** Layout at the call site (its width; the drawing keeps its proportions). */
6250
+ className?: string;
6251
+ };
6252
+ /** A balance with a picture in each pan, tipped toward the heavier side or level. */
6253
+ export declare function Balance({ left, right, down, label, className }: BalanceProps): import("react").JSX.Element;
6254
+ /** How a `LengthBar` is drawn: a ribbon, a pencil, or cubes in a row (or a tower when upright). */
6255
+ type LengthLook = "ribbon" | "pencil" | "cubes";
6256
+ /** Props of `LengthBar`. */
6257
+ type LengthBarProps = {
6258
+ /** How long it is, in units (cubes), from 1 to `max`. */
6259
+ length: number;
6260
+ /** The frame's length in units, the same on every bar that is compared; 10 by default. */
6261
+ max?: number;
6262
+ /** A ribbon, a pencil or cubes; a ribbon by default. */
6263
+ look?: LengthLook;
6264
+ /** Stand it up (taller and shorter) rather than lay it along. */
6265
+ upright?: boolean;
6266
+ /** What a screen reader hears; by default what it is and how long, in cubes. */
6267
+ label?: string;
6268
+ /** Layout at the call site (its width; the drawing keeps its proportions). */
6269
+ className?: string;
6270
+ };
6271
+ /** Something drawn to a length (a ribbon, a pencil or cubes) on a frame shared by every bar compared. */
6272
+ export declare function LengthBar({ length, max, look, upright, label, className }: LengthBarProps): import("react").JSX.Element;
6273
+ /** Which way a `TurnArrow` points: up, right, down or left. */
6274
+ type Facing = "up" | "right" | "down" | "left";
6275
+ /** A turn: how many quarters (1 to 4, 4 a whole turn) and which way. */
6276
+ type Turn = {
6277
+ quarters: 1 | 2 | 3 | 4;
6278
+ clockwise: boolean;
6279
+ };
6280
+ /** Props of `TurnArrow`. */
6281
+ type TurnArrowProps = {
6282
+ /** Which way the arrow points. */
6283
+ facing: Facing;
6284
+ /** A turn drawn round it, starting where the arrow points; none by default. */
6285
+ turn?: Turn;
6286
+ /** What a screen reader hears; by default where it points and the turn, in words. */
6287
+ label?: string;
6288
+ /** Layout at the call site (its width; the drawing keeps its proportions). */
6289
+ className?: string;
6290
+ };
6291
+ /** The four ways an arrow points, clockwise from up. */
6292
+ export declare const FACINGS: readonly Facing[];
6293
+ /** Where an arrow points after a turn: up, a quarter turn clockwise, is right. */
6294
+ export declare function turned(facing: Facing, turn: Turn): Facing;
6295
+ /** A turn as it is said: "a quarter turn clockwise", "a half turn", "a whole turn". A half or a whole turn ends in the
6296
+ * same place either way, so they are said without a direction. */
6297
+ export declare function turnWords(turn: Turn): string;
6298
+ /** An arrow pointing up, right, down or left, with a turn drawn round it: the picture of quarter and half turns. */
6299
+ export declare function TurnArrow({ facing, turn, label, className }: TurnArrowProps): import("react").JSX.Element;
6300
+ export { type ActiveItem, type AlertDialogProps, type AlertProps, type Api, type ApiOptions, type ApiPage, type AspectRatio, type AsyncAction, type AsyncActionOptions, AsyncButton, type AsyncLabels, type AudioMedia, type AutoRecorder, type AutoRecorderState, type AutoSave, type AutoSaveOptions, type AutoTake, type BalanceProps, type BalanceSide, type BinaryByteUnit, type BookPage, type BookUrl, type BookViewerProps, type BoxListProps, type BoxOverlayProps, type BoxSource, type BoxTone, type BoxedPictureProps, type BoxesState, type Brush, type BrushControl, type BrushKind, Button, type ButtonLinkProps, type ButtonProps, type ByteHighlight, type ByteRange, type ByteUnit, type ByteViewProps, type BytesOptions, COLOR_SCHEME_STORAGE_KEY, type Candidate, type CellValue, type ChartMark, type ChartSpan, type CheckboxGesture, type CheckboxProps, type Choice, type ChoiceCounts, type ChoiceGridProps, type ChoiceGroupProps, type ChoiceMarks, type ChoiceSize, type ChoiceState, type Choices, type ClientWork, type Clips, type ClipsContext, type ClipsProviderProps, type ClockFaceProps, type ClockFaceStyle, type ClockHands, type ClockMarks, type ClockNumbers, type ClockNumerals, type ClockParts, type ClockProps, type ClockStyle, type ClockTime, type ClockWordsOptions, type ColorFieldProps, type ColorScheme, ColorSchemeChoice, type ColorSchemeLabels, type ColorSchemePreference, type ColorSchemeState, type Column, type Command, type CommandMenuProps, type CommandsOptions, type CompareAudioProps, type CompareGridProps, type CompareMode, type CompareProps, type CompareTextProps, type CompareVideoGridProps, type CompareVideoProps, type ComposerProps, type CompositionBarProps, type CompositionPart, type ConcealedProps, type ConsoleLevel, type ConsoleLine, type ConsoleProps, type ContextMenuProps, type ControlSize, type ConversationImage, type ConversationProps, type ConversationTurn, type CountOptions, type CountdownOptions, type CurrencyOptions, type CursorMapping, type CursorOwner, CursorScope, type CursorScopeProps, type CutChange, type CutLimit, type CutRoom, DEFAULT_PALETTE, type DataTableProps, type DateFormatter, type DateInput, type DecodedAudio, type Delivery, Density, type DensityName, type DensityProps, type DescribeError, type DialogProps, type Difference, type DifferenceState, type DigitalClockProps, type DigitalClockStyle, type DigitalTimeOptions, type DisclosureOpenProps, type DisclosureProps, type DragData, type DragSourceProps, type DrawTool, type Drawing, type Box as DrawingBox, type DrawingLayerProps, type DrawingOp, type DrawingOptions, type DrawingState, type DrawingToolbarProps, type DropTarget, type Easing, type EditClip, type EditListOptions, type EditListPlayerProps, type EditListSlot, type EditListState, type EditTimes, type EditableRegion, type EntityMatch, type EntityMatcher, type ErrorBody, type EventLogEntry, type EventLogImage, type EventLogProps, type Expanded, type ExpandedOptions, type Facing, type FailedRemoval, type FetchJsonInit, type FetchJsonOptions, type FieldErrors, type FieldProps, type FileIntake, type FileIntakeOptions, type FileOutcome, type FillLevelProps, type FilmFrame, type FilmStripProps, type Folder, type FolderListing, type FolderPickerProps, type Format, type FormatOptions, type FractionCut, type FractionOutline, type FractionShapeProps, type FullscreenFrameProps, type GlimpseLook, type GlimpseProps, type GlimpseWhy, type Grid, type GroupMember, type GroupedChart, type Handle, type History, type HistoryOptions, type HistoryStateOptions, type HistoryStep, type HotkeysOptions, IconButton, type IconButtonProps, type IconComponent, type ImageMedia, type Implies, type InViewOptions, type InfiniteListProps, type InfiniteLoad, type InfiniteLoadOptions, type InitialSelection, type InkColours, type InkMatch, type InkMatchState, type InputLevelProps, type InspectorProps, type InspectorSectionProps, type Job, type JobAction, type JobActionOptions, type JobFailure, type JobOptions, type JobProgress, type JobRow, type JobStatusProps, type JobWords, type JobsTableProps, type JsonViewProps, type KeyCheck, KeysLegend, type LatLng, type LengthBarProps, type LengthLook, type LightboxItem, type LightboxProps, type LightboxUrl, LineChart, LineChartGroup, type LineChartGroupProps, type LineChartProps, type LinkCardProps, type ListeningLevelProps, type Load, type LoadFailure, type LoadMoreProps, type Loudness, type MarkKind, type MarkPattern, type MarkTone, type MarkableTextProps, type MediaContentsItem, type MediaContentsProps, type MediaElementOptions, type MediaElementState, type MediaHeading, type MediaMark, MediaPlayer, type MediaPlayerProps, type MediaProblem, type MediaProgress, type MediaSession, type MediaSource, type MediaSpanData, type MediaSpansState, MediaStage, type MediaStat, type MediaStats, type MediaWindow, type MenuEntry, type MenuProps, type MeterProps, type MeterThreshold, type MetricProps, type Microphone, MicrophoneContext, MicrophoneError, type MicrophoneStream, type MoneyProps, type MoneyValue, type More, type NativeSelectProps, type NavItem, type Nib, type NumberFieldProps, type NumberFormatter, type Outbox, type OutboxItem, type OutboxOptions, type OutboxRefusal, type OutboxRequest, type OutboxSnapshot, type OutboxStatusProps, PALETTE_STORAGE_KEY, type PageNames, type Pair, type PairAnswer, type PairJudgeProps, type PairVoteProps, type PairVoteSlot, type PairVoteWords, PaletteChoice, type PaletteOption, type PaletteState, type PaneProps, type PeakPair, type PendingRemoval, type Phase, type PictureBox, type PictureRegion, type PixelImageProps, type Pixels, type PlaceBoardProps, type PlaceState, type Platform, type PlayWindowButtonProps, PlayerNotice, type PlayerWarning, type PlayerWarningEvent, type Point, type Poll, type PopoverProps, type Precision, type Property, type PropertyListProps, type PropertyRowProps, type RangeProps, type RangeSliderProps, RateChoice, type ReadAlongPart, type ReadAlongProps, type ReadAloud, type ReadAloudOptions, type ReadPixels, type Rebinding, type Recorder, type RecorderState, type Recording, type Rect, type RectLimits, type Region, type RegionEditorProps, type RegionTone, type Reserve, type ReserveOptions, type ResumeWords, type Revealed, type Block as RichBlock, type Inline as RichInline, type RichTextProps, RowAction, type RowActionProps, type RowExpansion, type RowSelection, SPEECH_RATES, type SaveState, type SayAgainProps, type SayOnShowOptions, type SayPictureProps, type Saying, type ScheduleRow, type ScheduleTableProps, type SearchParam, type SearchParamOptions, type SecretFieldProps, type SecretTestResult, SeekBar, type SeekBarProps, type SeekBarSpan, type Segment, type Segmenter, type SegmenterOptions, type SelectableGridProps, type SequenceItem, type SequenceTimelineProps, type SetClockProps, type SetOptions, type ShareBox, type SharedCursor, type Shortcut, type ShortcutOverrides, type SkipAction, type SkipLevel, type SkipSteps, type SliderProps, type SolidProps, type SolidShape, type Sort, type SortableListProps, type SourceAttacher, SpanActions, type SpanActionsNotice, type SpanBehaviour, type SpanKind, type SpanOutcome, SpanStrip, type SpanTone, type SpanWords, type SpeakOptions, type Speech, type SpeechLevel, type SpeechPart, StageGuides, type StageState, type StageWords, type Stale, type StrataToastRegionProps, type StreamAttachment, type StreamContext, type StreamStats, type Stroke, type StrokeChange, type StrokeNoteWords, type StrokePoint, type StrokeShape, type SwitchProps, type SystemFact, type SystemFolder, type SystemInfoLike, type SystemPanelProps, type SystemService, type TabItem, type TakeLevelProps, type TextDifference, type TextLinkProps, type TextMedia, type TextSegment, ThemeProvider, type ThumbnailProps, type TileAspect, type TileGridProps, type TileSize, TimeReadout, type TimelineChange, type TimelineClock, type TimelineClockOptions, type TimelineDrop, type TimelineItem, type TimelineLane, type TimelineMarker, type TimelinePlayerProps, type TimelineProps, type ToastContentProps, type ToggleGroupProps, type ToggleOption, type ToggleProps, type Tone, type ToolChoice, type ToolbarProps, type TooltipProps, type TranscriptGroup, type TranscriptPhrase, type TranscriptPhraseState, type TranscriptSeek, type TranscriptViewProps, type TranscriptWord, Transport, type TransportProps, type TreeNodeState, type TreeProps, type Turn, type TurnArrowProps, type TypedApi, type Undoable, type UndoableOptions, type UseAutoRecorderOptions, type UseRecorderOptions, type UseSpeechOptions, type VideoLoop, type VideoMedia, type VideoMode, type ViewGroup, type ViewGroupRows, type ViewOptionsConfig, type ViewOptionsProps, type ViewOptionsState, type ViewPointerOptions, type ViewSort, type Viewport, type ViewportFrameProps, type ViewportState, VolumeControl, type VolumeControlProps, type WaveformMark, type WaveformMarkKind, type WaveformPeaks, type WaveformProps, type WaveformSpan, type WaveformTone, type WorkContext, type WorkPhase, type WorkflowRunLike, type WorkflowRunOptions, type WorkflowStage, type WorkflowStepsProps, type WorkflowSummaryData, type WorkflowSummaryProps, type WorkflowSummaryState, type WorkflowSummaryWords, type WorkspaceBarProps, type WorkspaceState, type YScale, browserMicrophone, buttonVariants, colorSchemeScript, explainMicrophoneError, format$1 as format, geo, isTypingTarget, keyName, logScale, marksFor, mediaStatRows, paletteScript, palettes, readPixels$1 as readPixels, skipAction, transportShortcuts, useAsyncAction, useAttachedSource, useColorScheme, useHotkeys, useMediaElement, useMediaSpans, useMediaStats, useMicrophone, usePalette, usePlayerWarnings, useSharedCursor, useSystemColorScheme, valueAt };
6163
6301
  //# sourceMappingURL=index.d.ts.map