strata-react 1.3.25 → 1.3.27

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.
Files changed (256) hide show
  1. package/README.md +1 -0
  2. package/UPGRADING.md +4 -0
  3. package/dist/{api-types/cli.d.ts → api-types-cli.d.ts} +1 -0
  4. package/dist/api-types-cli.js +4 -3
  5. package/dist/api-types-cli.js.map +1 -1
  6. package/dist/{api-types/generate.d.ts → api-types.d.ts} +3 -3
  7. package/dist/api-types.js +3 -1
  8. package/dist/{button-KGJI6jQr.js → button-CYXjU-fs.js} +8 -5
  9. package/dist/button-CYXjU-fs.js.map +1 -0
  10. package/dist/{cursor-DDGBPiTJ.js → cursor-Cwyvgwsw.js} +9 -7
  11. package/dist/cursor-Cwyvgwsw.js.map +1 -0
  12. package/dist/{errors-BUvY1Z4d.js → errors-CmuwcWlb.js} +6 -6
  13. package/dist/{errors-BUvY1Z4d.js.map → errors-CmuwcWlb.js.map} +1 -1
  14. package/dist/{field-BjeE_FeB.js → field-DBCsFIng.js} +27 -23
  15. package/dist/field-DBCsFIng.js.map +1 -0
  16. package/dist/{follow-BTPs49FP.js → follow-CXQsL86O.js} +2 -2
  17. package/dist/follow-CXQsL86O.js.map +1 -0
  18. package/dist/{generate-CjTHKJ39.js → generate-BkWhh4k4.js} +8 -6
  19. package/dist/generate-BkWhh4k4.js.map +1 -0
  20. package/dist/{lib/geo.d.ts → geo-DfKa9JtK.d.ts} +35 -33
  21. package/dist/{hls/index.d.ts → hls.d.ts} +13 -12
  22. package/dist/hls.js +5 -4
  23. package/dist/hls.js.map +1 -1
  24. package/dist/index.d.ts +5401 -142
  25. package/dist/index.js +1072 -227
  26. package/dist/index.js.map +1 -1
  27. package/dist/map.d.ts +184 -0
  28. package/dist/map.js +21 -17
  29. package/dist/map.js.map +1 -1
  30. package/dist/media-player-BETa3P7K.d.ts +758 -0
  31. package/dist/{microphone-Bo3WaXgD.js → microphone-76skMt6i.js} +41 -30
  32. package/dist/microphone-76skMt6i.js.map +1 -0
  33. package/dist/microphone-DDOnQHxf.d.ts +237 -0
  34. package/dist/{migrate/cli.d.ts → migrate-cli.d.ts} +1 -0
  35. package/dist/migrate-cli.js +8 -6
  36. package/dist/migrate-cli.js.map +1 -1
  37. package/dist/panorama.d.ts +102 -0
  38. package/dist/panorama.js +18 -15
  39. package/dist/panorama.js.map +1 -1
  40. package/dist/{run-BT2WKzMz.js → run-D_Ic1jE7.js} +23 -16
  41. package/dist/run-D_Ic1jE7.js.map +1 -0
  42. package/dist/scene.d.ts +147 -0
  43. package/dist/scene.js +15 -13
  44. package/dist/scene.js.map +1 -1
  45. package/dist/testing.d.ts +468 -0
  46. package/dist/testing.js +11 -3
  47. package/dist/testing.js.map +1 -1
  48. package/dist/{theme-CxYZkUNk.js → theme-1oOSMj_D.js} +19 -17
  49. package/dist/theme-1oOSMj_D.js.map +1 -0
  50. package/dist/{tooltip-DhqrDtyu.js → tooltip-BosfsWYh.js} +9 -6
  51. package/dist/tooltip-BosfsWYh.js.map +1 -0
  52. package/dist/types-B3TsF0Ey.d.ts +241 -0
  53. package/dist/{value-controls-Dm_EYfZW.js → value-controls-5u7sD_wG.js} +22 -17
  54. package/dist/value-controls-5u7sD_wG.js.map +1 -0
  55. package/dist/{viewer-input-CHU0Hx4A.js → viewer-input-3Qa-o35k.js} +3 -2
  56. package/dist/{viewer-input-CHU0Hx4A.js.map → viewer-input-3Qa-o35k.js.map} +1 -1
  57. package/dist/{visual/cli.d.ts → visual-cli.d.ts} +2 -1
  58. package/dist/visual-cli.js +5 -4
  59. package/dist/visual-cli.js.map +1 -1
  60. package/dist/visual.d.ts +105 -0
  61. package/dist/visual.js +4 -3
  62. package/dist/visual.js.map +1 -1
  63. package/package.json +24 -19
  64. package/dist/api-types/index.d.ts +0 -1
  65. package/dist/button-KGJI6jQr.js.map +0 -1
  66. package/dist/components/active-list.d.ts +0 -46
  67. package/dist/components/alert.d.ts +0 -17
  68. package/dist/components/app-shell.d.ts +0 -32
  69. package/dist/components/async-button.d.ts +0 -48
  70. package/dist/components/auto-recorder.d.ts +0 -67
  71. package/dist/components/book-viewer.d.ts +0 -50
  72. package/dist/components/box-overlay.d.ts +0 -44
  73. package/dist/components/boxed-picture.d.ts +0 -34
  74. package/dist/components/button.d.ts +0 -45
  75. package/dist/components/byte-view.d.ts +0 -32
  76. package/dist/components/checkbox.d.ts +0 -39
  77. package/dist/components/choice-grid.d.ts +0 -42
  78. package/dist/components/commands.d.ts +0 -104
  79. package/dist/components/compare-audio.d.ts +0 -30
  80. package/dist/components/compare-grid.d.ts +0 -24
  81. package/dist/components/compare-parts.d.ts +0 -90
  82. package/dist/components/compare-regions.d.ts +0 -37
  83. package/dist/components/compare-text.d.ts +0 -32
  84. package/dist/components/compare-video-grid.d.ts +0 -52
  85. package/dist/components/compare-video.d.ts +0 -61
  86. package/dist/components/compare.d.ts +0 -90
  87. package/dist/components/composition.d.ts +0 -44
  88. package/dist/components/console.d.ts +0 -34
  89. package/dist/components/conversation.d.ts +0 -83
  90. package/dist/components/cursor.d.ts +0 -44
  91. package/dist/components/data-table.d.ts +0 -89
  92. package/dist/components/data-view.d.ts +0 -66
  93. package/dist/components/density.d.ts +0 -16
  94. package/dist/components/dialog.d.ts +0 -45
  95. package/dist/components/difference.d.ts +0 -19
  96. package/dist/components/disclosure.d.ts +0 -49
  97. package/dist/components/done.d.ts +0 -14
  98. package/dist/components/drag-source.d.ts +0 -29
  99. package/dist/components/field.d.ts +0 -79
  100. package/dist/components/file-intake.d.ts +0 -60
  101. package/dist/components/film-strip.d.ts +0 -35
  102. package/dist/components/folder-picker.d.ts +0 -59
  103. package/dist/components/fullscreen-frame.d.ts +0 -18
  104. package/dist/components/history.d.ts +0 -61
  105. package/dist/components/hotkeys.d.ts +0 -44
  106. package/dist/components/infinite-list.d.ts +0 -77
  107. package/dist/components/inspector.d.ts +0 -66
  108. package/dist/components/job-action.d.ts +0 -30
  109. package/dist/components/job-status.d.ts +0 -55
  110. package/dist/components/jobs-table.d.ts +0 -35
  111. package/dist/components/key-glyphs.d.ts +0 -5
  112. package/dist/components/key-owner.d.ts +0 -11
  113. package/dist/components/lightbox.d.ts +0 -61
  114. package/dist/components/line-chart.d.ts +0 -169
  115. package/dist/components/link-card.d.ts +0 -32
  116. package/dist/components/link.d.ts +0 -54
  117. package/dist/components/markable-text.d.ts +0 -60
  118. package/dist/components/media-contents.d.ts +0 -28
  119. package/dist/components/media-group.d.ts +0 -32
  120. package/dist/components/media-player.d.ts +0 -251
  121. package/dist/components/media-progress.d.ts +0 -17
  122. package/dist/components/media-skip.d.ts +0 -31
  123. package/dist/components/media-spans.d.ts +0 -93
  124. package/dist/components/media.d.ts +0 -133
  125. package/dist/components/meter.d.ts +0 -32
  126. package/dist/components/metric.d.ts +0 -17
  127. package/dist/components/outbox-status.d.ts +0 -10
  128. package/dist/components/page-header.d.ts +0 -14
  129. package/dist/components/pair-vote.d.ts +0 -70
  130. package/dist/components/pause-button.d.ts +0 -7
  131. package/dist/components/pixel-image.d.ts +0 -29
  132. package/dist/components/place-board.d.ts +0 -39
  133. package/dist/components/player-warning.d.ts +0 -24
  134. package/dist/components/popover.d.ts +0 -20
  135. package/dist/components/recorder.d.ts +0 -73
  136. package/dist/components/region-editor.d.ts +0 -67
  137. package/dist/components/save.d.ts +0 -46
  138. package/dist/components/say-again.d.ts +0 -13
  139. package/dist/components/schedule-table.d.ts +0 -24
  140. package/dist/components/secret-field.d.ts +0 -34
  141. package/dist/components/selectable-grid.d.ts +0 -57
  142. package/dist/components/selection.d.ts +0 -104
  143. package/dist/components/sequence-timeline.d.ts +0 -50
  144. package/dist/components/shortcut-editor.d.ts +0 -44
  145. package/dist/components/sortable-list.d.ts +0 -39
  146. package/dist/components/status.d.ts +0 -9
  147. package/dist/components/switch.d.ts +0 -15
  148. package/dist/components/system-panel.d.ts +0 -58
  149. package/dist/components/tabs.d.ts +0 -16
  150. package/dist/components/theme.d.ts +0 -106
  151. package/dist/components/thumbnail.d.ts +0 -50
  152. package/dist/components/tile-grid.d.ts +0 -67
  153. package/dist/components/timeline-player.d.ts +0 -18
  154. package/dist/components/timeline.d.ts +0 -115
  155. package/dist/components/toast.d.ts +0 -36
  156. package/dist/components/toggle.d.ts +0 -51
  157. package/dist/components/toolbar.d.ts +0 -15
  158. package/dist/components/tooltip.d.ts +0 -19
  159. package/dist/components/transcript-view.d.ts +0 -63
  160. package/dist/components/tree.d.ts +0 -74
  161. package/dist/components/undo.d.ts +0 -63
  162. package/dist/components/use-timeline.d.ts +0 -44
  163. package/dist/components/value-controls.d.ts +0 -91
  164. package/dist/components/video-clock.d.ts +0 -68
  165. package/dist/components/view-options.d.ts +0 -105
  166. package/dist/components/viewport.d.ts +0 -85
  167. package/dist/components/virtual-list.d.ts +0 -19
  168. package/dist/components/waveform.d.ts +0 -71
  169. package/dist/components/workflow-steps.d.ts +0 -71
  170. package/dist/components/workspace.d.ts +0 -83
  171. package/dist/cursor-DDGBPiTJ.js.map +0 -1
  172. package/dist/field-BjeE_FeB.js.map +0 -1
  173. package/dist/follow-BTPs49FP.js.map +0 -1
  174. package/dist/generate-CjTHKJ39.js.map +0 -1
  175. package/dist/lib/base.d.ts +0 -10
  176. package/dist/lib/book.d.ts +0 -25
  177. package/dist/lib/boxes.d.ts +0 -55
  178. package/dist/lib/breakpoint.d.ts +0 -4
  179. package/dist/lib/choice.d.ts +0 -29
  180. package/dist/lib/chords.d.ts +0 -20
  181. package/dist/lib/client-work.d.ts +0 -24
  182. package/dist/lib/control.d.ts +0 -4
  183. package/dist/lib/dev.d.ts +0 -2
  184. package/dist/lib/errors.d.ts +0 -43
  185. package/dist/lib/file-intake.d.ts +0 -60
  186. package/dist/lib/follow.d.ts +0 -18
  187. package/dist/lib/format.d.ts +0 -243
  188. package/dist/lib/grouped-grid-layout.d.ts +0 -44
  189. package/dist/lib/icon.d.ts +0 -6
  190. package/dist/lib/image-diff.d.ts +0 -30
  191. package/dist/lib/in-view.d.ts +0 -21
  192. package/dist/lib/loudness.d.ts +0 -18
  193. package/dist/lib/marks.d.ts +0 -6
  194. package/dist/lib/microphone.d.ts +0 -24
  195. package/dist/lib/number-input.d.ts +0 -4
  196. package/dist/lib/object-url.d.ts +0 -2
  197. package/dist/lib/overlay.d.ts +0 -1
  198. package/dist/lib/recording.d.ts +0 -16
  199. package/dist/lib/region.d.ts +0 -64
  200. package/dist/lib/rich-text.d.ts +0 -44
  201. package/dist/lib/search-param.d.ts +0 -16
  202. package/dist/lib/segmenter.d.ts +0 -40
  203. package/dist/lib/sequence.d.ts +0 -34
  204. package/dist/lib/speech.d.ts +0 -53
  205. package/dist/lib/text-diff.d.ts +0 -16
  206. package/dist/lib/timeline.d.ts +0 -14
  207. package/dist/lib/transcript.d.ts +0 -53
  208. package/dist/lib/utils.d.ts +0 -4
  209. package/dist/lib/viewer-input.d.ts +0 -29
  210. package/dist/lib/viewport.d.ts +0 -55
  211. package/dist/lib/waveform.d.ts +0 -46
  212. package/dist/map/fan.d.ts +0 -15
  213. package/dist/map/index.d.ts +0 -3
  214. package/dist/map/map-styles.d.ts +0 -2
  215. package/dist/map/markers.d.ts +0 -60
  216. package/dist/map/route-map.d.ts +0 -146
  217. package/dist/microphone-Bo3WaXgD.js.map +0 -1
  218. package/dist/migrate/stock-classes.d.ts +0 -11
  219. package/dist/panorama/gl.d.ts +0 -16
  220. package/dist/panorama/index.d.ts +0 -2
  221. package/dist/panorama/panorama-viewer.d.ts +0 -56
  222. package/dist/panorama/projection.d.ts +0 -45
  223. package/dist/query/api.d.ts +0 -23
  224. package/dist/query/clips.d.ts +0 -48
  225. package/dist/query/index.d.ts +0 -55
  226. package/dist/query/infinite.d.ts +0 -60
  227. package/dist/query/job.d.ts +0 -26
  228. package/dist/query/outbox.d.ts +0 -85
  229. package/dist/query/poll.d.ts +0 -24
  230. package/dist/query/reserve.d.ts +0 -33
  231. package/dist/query/typed-api.d.ts +0 -84
  232. package/dist/query/workflow.d.ts +0 -17
  233. package/dist/run-BT2WKzMz.js.map +0 -1
  234. package/dist/scene/camera.d.ts +0 -99
  235. package/dist/scene/index.d.ts +0 -2
  236. package/dist/scene/scene-viewport.d.ts +0 -48
  237. package/dist/testing/buttons.d.ts +0 -7
  238. package/dist/testing/index.d.ts +0 -161
  239. package/dist/testing/intersection-observer.d.ts +0 -34
  240. package/dist/testing/layout.d.ts +0 -13
  241. package/dist/testing/microphone.d.ts +0 -35
  242. package/dist/testing/setup.d.ts +0 -14
  243. package/dist/testing/speech.d.ts +0 -38
  244. package/dist/testing/storage.d.ts +0 -7
  245. package/dist/theme-CxYZkUNk.js.map +0 -1
  246. package/dist/tooltip-DhqrDtyu.js.map +0 -1
  247. package/dist/value-controls-Dm_EYfZW.js.map +0 -1
  248. package/dist/visual/capture.d.ts +0 -37
  249. package/dist/visual/compare.d.ts +0 -46
  250. package/dist/visual/drop.d.ts +0 -19
  251. package/dist/visual/fonts.d.ts +0 -18
  252. package/dist/visual/index.d.ts +0 -19
  253. package/dist/visual/run.d.ts +0 -22
  254. package/dist/visual/serve.d.ts +0 -13
  255. package/dist/visual/targets.d.ts +0 -17
  256. package/dist/visual/types.d.ts +0 -188
@@ -1,70 +0,0 @@
1
- import { Candidate, CompareProps, ImageMedia } from './compare';
2
- import { Load } from './data-view';
3
- import { Shortcut } from './hotkeys';
4
- import * as React from "react";
5
- /** One answer to a pair: a side, "about the same", "can't tell", or a flag with its reason. */
6
- export type PairAnswer = {
7
- answer: "a" | "b" | "tie" | "skip";
8
- } | {
9
- answer: "flag";
10
- reason: string;
11
- };
12
- /** A pair to judge: pictures by default, or any media a `view` draws (`CompareAudio`, `CompareText`). */
13
- export type Pair<M = ImageMedia> = {
14
- label: string;
15
- a: Candidate<M>;
16
- b: Candidate<M>;
17
- };
18
- /** What `PairVote` hands a `view`: the answer keys for the view's legend, the vote bar for its footer, and `onPick` for a view whose sides can be clicked (`Compare`, `CompareVideo`; absent while an answer is pending). Pass the whole slot to the view. */
19
- export type PairVoteSlot = {
20
- extraShortcuts: Shortcut[];
21
- footer: React.ReactNode;
22
- onPick?: (side: "a" | "b") => void;
23
- };
24
- /** Words for the vote bar, all in the product's voice. */
25
- export type PairVoteWords = {
26
- /** Default "About the same". */
27
- tie?: string;
28
- /** Default "Can't tell". */
29
- skip?: string;
30
- /** What choosing a side says: `(label) => "Prefer " + label`. Default "Prefer …". */
31
- prefer?: (label: string) => string;
32
- /** Said while an answer is being saved. Default "Saving your answer…". */
33
- pending?: string;
34
- /** The flag menu's button. Default "Flag this pair". */
35
- flag?: string;
36
- };
37
- /** What every pair judgment takes, whatever it draws. */
38
- export type PairJudgeProps<M> = {
39
- /** The pair now being judged, as a read. */
40
- pair: Load<Pair<M> | null>;
41
- /** Mirrors the pictures and the bar while the pair loads. Required. */
42
- skeleton: React.ReactNode;
43
- /** What to show when there is nothing left to judge, and what to do next. Required. */
44
- empty: React.ReactNode;
45
- /** Receives the answer. The caller sends it and sets `pending` meanwhile. */
46
- onAnswer: (answer: PairAnswer) => void;
47
- /** An answer is being saved: buttons and keys are off. */
48
- pending: boolean;
49
- /** A line above the pictures: "12 pairs left". */
50
- progress?: React.ReactNode;
51
- /** Reasons the judge can give for setting a pair aside ("Picture missing", "Not the same scene"); no flag menu without them. */
52
- flagReasons?: readonly string[];
53
- /** Addresses of the next pairs' pictures or clips, fetched ahead so the next pair is ready the moment this one is answered. */
54
- preload?: readonly string[];
55
- /** The answer just given: what it was, how to take it back, and what to show of the pair after (`reveal`, never during the judgment). */
56
- last?: {
57
- text: string;
58
- onUndo: () => void;
59
- reveal?: React.ReactNode;
60
- };
61
- words?: PairVoteWords;
62
- /** Draws the pair: `(slot, pair) => <CompareAudio {...pair} {...slot} blind missing=… />`. Pass the whole `slot` through so the answer keys share the view's legend and the bar sits in its footer. */
63
- view: (slot: PairVoteSlot, pair: Pair<M>) => React.ReactNode;
64
- };
65
- /** Props for `PairVote`: the pair judgment, drawn with `Compare`. */
66
- export type PairVoteProps = Omit<PairJudgeProps<ImageMedia>, "view"> & Omit<CompareProps, "label" | "a" | "b" | "extraShortcuts" | "footer" | "onPick">;
67
- /** A blind pairwise judgment of two pictures: `Compare`, answer keys in its legend, and a vote bar that never leans on either side. */
68
- export declare function PairVote({ pair, skeleton, empty, onAnswer, pending, progress, flagReasons, preload, last, words, ...compare }: PairVoteProps): React.JSX.Element;
69
- /** A blind pairwise judgment of anything: the answer keys, vote bar, pending, flag menu, progress, preload and Undo around a `view` that draws the pair (`CompareAudio`, `CompareText`, your own). */
70
- export declare function PairJudge<M>({ pair, skeleton, empty, onAnswer, pending, progress, flagReasons, preload, last, words, view }: PairJudgeProps<M>): React.JSX.Element;
@@ -1,7 +0,0 @@
1
- import { Poll } from '../query/poll';
2
- /** The pause control of a polled screen: a "Pause updates" toggle and when the readings were last taken ("Updated 12:00"). Takes the `Poll` from `usePoll`. */
3
- export declare function PauseButton({ poll, hideUpdated, className }: {
4
- poll: Poll;
5
- hideUpdated?: boolean;
6
- className?: string;
7
- }): import('react').JSX.Element;
@@ -1,29 +0,0 @@
1
- import * as React from "react";
2
- type PixelSource = {
3
- width: number;
4
- height: number;
5
- rgba: Uint8Array | Uint8ClampedArray;
6
- image?: never;
7
- } | {
8
- image: ImageData;
9
- width?: never;
10
- height?: never;
11
- rgba?: never;
12
- };
13
- /** What `PixelImage` takes: a width, height and RGBA bytes, or an `ImageData`, and how to show it. */
14
- export type PixelImageProps = PixelSource & {
15
- /** What the picture is, in words: "e1u1/clip.wal". The size and zoom are added to the name. */
16
- label: string;
17
- /** A whole number of screen pixels per picture pixel, or `"fit"` for the largest that fits `maxSize`. Default `"fit"`. */
18
- zoom?: number | "fit";
19
- /** The most `zoom="fit"` may take, in CSS pixels, each way. Default 512. */
20
- maxSize?: number;
21
- className?: string;
22
- };
23
- /** The zoom a picture is drawn at: a whole number, at least 1. */
24
- export declare function pixelZoom(width: number, height: number, zoom?: number | "fit", maxSize?: number): number;
25
- /** A decoded RGBA picture on a canvas at a whole-number zoom with square pixels, a checkerboard behind clear pixels, named with its size. */
26
- export declare function PixelImage({ label, zoom, maxSize, className, ...source }: PixelImageProps): React.JSX.Element;
27
- /** The same pixels as a PNG `Blob`, for a download (`useObjectUrl` makes the link). Rejects where there is no canvas. */
28
- export declare function rgbaToBlob(width: number, height: number, rgba: Uint8Array | Uint8ClampedArray): Promise<Blob>;
29
- export {};
@@ -1,39 +0,0 @@
1
- import * as React from "react";
2
- /** A place after the app has checked the arrangement: not checked, or right or wrong. */
3
- export type PlaceState = "open" | "right" | "wrong";
4
- /** Props of `PlaceBoard`. */
5
- export type PlaceBoardProps<P, S> = {
6
- /** Names the board: the question ("Put the numbers in order"). */
7
- label: string;
8
- pieces: P[];
9
- pieceKey: (piece: P) => string;
10
- /** What a piece is, for its name ("apple", "5"). Never drawn: the picture is the piece. */
11
- pieceLabel: (piece: P) => string;
12
- /** The piece's picture: an emoji, a numeral or an `<img alt="">`. */
13
- renderPiece: (piece: P) => React.ReactNode;
14
- places: S[];
15
- placeKey: (place: S) => string;
16
- /** The place's name ("the basket", "first", "A"), used in "Put apple in the basket". */
17
- placeLabel: (place: S) => string;
18
- /** What the place shows as its target. Default: `placeLabel` as text. */
19
- renderPlace?: (place: S) => React.ReactNode;
20
- /** Where each piece is: piece key to place key. A piece with no entry is in the pile. */
21
- placement: Readonly<Record<string, string | undefined>>;
22
- /** The learner asked to move a piece to a place, or back to the pile (`null`). The app applies it, or not. */
23
- onMove: (pieceKey: string, placeKey: string | null) => void;
24
- /** Names the pile of pieces not yet placed ("Apples", "Numbers"). */
25
- pileLabel: string;
26
- /** Each place's state after the app checked the arrangement. Default: every place `open`. */
27
- placeState?: (place: S) => PlaceState;
28
- /** Words for the states: `{ held: "Picked up", right: "Right", wrong: "Not yet" }`. */
29
- marks: {
30
- held: string;
31
- right: string;
32
- wrong: string;
33
- };
34
- /** The round is over: no piece can be picked up. */
35
- locked?: boolean;
36
- className?: string;
37
- };
38
- /** Pictures put into places with two taps (pick up, put down) for an answer that is an arrangement: give a number, order, match, sort. The app owns where each piece is and checks it; the board only moves what the learner asks. */
39
- export declare function PlaceBoard<P, S>({ label, pieces, pieceKey, pieceLabel, renderPiece, places, placeKey, placeLabel, renderPlace, placement, onMove, pileLabel, placeState, marks, locked, className, }: PlaceBoardProps<P, S>): React.JSX.Element;
@@ -1,24 +0,0 @@
1
- import * as React from "react";
2
- /** A brief, non-blocking playback warning. Important playback failures use the player's error state. */
3
- export type PlayerWarning = {
4
- title: string;
5
- description?: string;
6
- /** Milliseconds on screen. Defaults to the shared toast reading time. */
7
- timeout?: number;
8
- action?: {
9
- label: string;
10
- onPress: () => void;
11
- };
12
- };
13
- /** The current warning event, including its identity so repeated warnings start a fresh timer. */
14
- export type PlayerWarningEvent = PlayerWarning & {
15
- key: number;
16
- };
17
- /** Creates a warning channel for one player. Pass `warning` to MediaPlayer and call `warn` when a warning occurs. */
18
- export declare function usePlayerWarnings(): {
19
- warning: PlayerWarningEvent | undefined;
20
- warn: (message: PlayerWarning) => void;
21
- };
22
- export declare function PlayerWarningToast({ warning }: {
23
- warning: PlayerWarning;
24
- }): React.JSX.Element | null;
@@ -1,20 +0,0 @@
1
- import * as React from "react";
2
- /** Props for `Popover`. */
3
- export type PopoverProps = {
4
- /** What the popover is, as a screen reader names it: "Line colour", "Filters". Required. */
5
- label: string;
6
- /** The control that opens it (a `Button`); it gets `aria-expanded` and focus back on close. */
7
- trigger: React.ReactElement;
8
- children: React.ReactNode;
9
- side?: "top" | "right" | "bottom" | "left";
10
- /** Where along the trigger it lines up. Default `start`. */
11
- align?: "start" | "center" | "end";
12
- /** Controlled open state. */
13
- open?: boolean;
14
- onOpenChange?: (open: boolean) => void;
15
- /** Width of the surface. Default `md` (18rem). */
16
- size?: "sm" | "md" | "lg";
17
- className?: string;
18
- };
19
- /** A floating panel anchored to its trigger, for a small form or choice. Requires a `label`; closes on Escape and outside press, and returns focus. */
20
- export declare function Popover({ label, trigger, children, side, align, open, onOpenChange, size, className }: PopoverProps): React.JSX.Element;
@@ -1,73 +0,0 @@
1
- import { Microphone } from '../lib/microphone';
2
- import { MeterThreshold } from './meter';
3
- import * as React from "react";
4
- /** A finished take: the samples, the same as a WAV, and what was measured. */
5
- export type Recording = {
6
- samples: Float32Array;
7
- sampleRate: number;
8
- /** 16-bit PCM mono WAV of `samples`, ready to upload. */
9
- wav: Blob;
10
- seconds: number;
11
- /** The highest sample in dBFS, never below `LEVEL_FLOOR_DB`. */
12
- peak: number;
13
- /** What the browser calls the microphone, or null. */
14
- device: string | null;
15
- };
16
- /** Where a recorder is: idle, waiting for the browser to open the device, recording, or refused. */
17
- export type RecorderState = {
18
- phase: "idle";
19
- } | {
20
- phase: "opening";
21
- } | {
22
- phase: "recording";
23
- seconds: number;
24
- level: number;
25
- } | {
26
- phase: "failed";
27
- reason: string;
28
- };
29
- /** `useRecorder`'s options. */
30
- export type UseRecorderOptions = {
31
- /** The longest take, in seconds: the recorder stops itself there. */
32
- maxSeconds: number;
33
- /** The microphone to record from; `useMicrophone()` (the nearest `MicrophoneContext`) when left out. */
34
- microphone?: Microphone;
35
- };
36
- /** What `useRecorder` returns. */
37
- export type Recorder = {
38
- state: RecorderState;
39
- /** Starts a take; resolves with it once it stops (`stop`, or `maxSeconds`), or null when the microphone would not open or a take is already running. */
40
- start: () => Promise<Recording | null>;
41
- /** Stops the take, which resolves `start`. Does nothing when nothing is recording. */
42
- stop: () => void;
43
- /** True while opening or recording: the moment Record becomes Stop. */
44
- recording: boolean;
45
- };
46
- /** Records one take at a time from the microphone, with its live level, as a lossless WAV. */
47
- export declare function useRecorder({ maxSeconds, microphone }: UseRecorderOptions): Recorder;
48
- /** `InputLevel`'s "Too loud" notch: -3 dBFS on the meter's `LEVEL_FLOOR_DB`..0 scale. */
49
- export declare const inputLevelThresholds: MeterThreshold[];
50
- /** `InputLevel`'s props. */
51
- export type InputLevelProps = {
52
- /** The live peak in dBFS (`state.level` while recording). */
53
- level: number;
54
- /** How long the take has run. */
55
- seconds: number;
56
- /** The longest take, said beside the running time. */
57
- maxSeconds: number;
58
- /** The meter's name. Default "Input level". */
59
- label?: string;
60
- className?: string;
61
- };
62
- /** The microphone's live level while a take records: a peak meter in dBFS with a "Too loud" notch, and the take's running time. */
63
- export declare function InputLevel({ level, seconds, maxSeconds, label, className }: InputLevelProps): React.JSX.Element;
64
- /** `TakeLevel`'s props. */
65
- export type TakeLevelProps = {
66
- /** The take's peak in dBFS (`Recording.peak`). */
67
- peak: number;
68
- /** What comes before the peak in the sentence, such as "Kept 0:04". */
69
- lead?: string;
70
- className?: string;
71
- };
72
- /** How a finished take's level reads for speech: a status word, the peak, and what to do about it. */
73
- export declare function TakeLevel({ peak, lead, className }: TakeLevelProps): React.JSX.Element;
@@ -1,67 +0,0 @@
1
- import { Easing, Rect } from '../lib/region';
2
- import * as React from "react";
3
- /** The tone a window is drawn in: a role colour, never a hue of its own. */
4
- export type RegionTone = "neutral" | "info" | "success" | "warning" | "danger";
5
- /** One window on the picture, in the picture's coordinates. */
6
- export type EditableRegion = Rect & {
7
- id: string;
8
- label: string;
9
- tone?: RegionTone;
10
- };
11
- export type RegionEditorProps = {
12
- /** Names the editor: "Crop for the cover photo". Required. */
13
- label: string;
14
- /** The picture, drawn to fill the frame (an `<img className="size-full object-cover">`). */
15
- children: React.ReactNode;
16
- /** The picture's width and height, which are the units of every window. */
17
- size: readonly [number, number];
18
- regions: readonly EditableRegion[];
19
- /** A window was changed and kept. Receives the whole list, edited. */
20
- onChange: (regions: readonly EditableRegion[]) => void;
21
- /** Which window is chosen (controlled); leave out to let the editor keep it. */
22
- selectedId?: string | null;
23
- onSelectedChange?: (id: string | null) => void;
24
- /** Width over height every window keeps. */
25
- aspect?: number;
26
- /** The smallest a window may be. Default a twentieth of the picture. */
27
- min?: {
28
- w: number;
29
- h: number;
30
- };
31
- /** Where windows may be. Default the whole picture. */
32
- bounds?: Rect;
33
- /** An arrow key's step, in the picture's units. Default a hundredth of its longer side. */
34
- step?: number;
35
- /** A drag on the empty picture draws a new window and calls this with it; the app adds it. Without it nothing can be drawn. */
36
- onDraw?: (rect: Rect) => void;
37
- /** "move": the first window is the start and the second the end; draws a line between them and a Watch button. */
38
- mode?: "single" | "move" | "spread";
39
- /** Called as Watch plays, with the rectangle at `t` (0 to 1) and `t`. Also drawn by the editor. */
40
- onPreview?: (rect: Rect, t: number) => void;
41
- /** How long Watch takes, in milliseconds. Default 1500. */
42
- duration?: number;
43
- easing?: Easing;
44
- /** Show a number field for each side of the chosen window under the picture. Default true. */
45
- fields?: boolean;
46
- /** The unit of the numbers: "px". */
47
- unit?: string;
48
- /** The windows as they began; with it a Reset appears while they differ. */
49
- defaults?: readonly EditableRegion[];
50
- /** The picture is turned by this many degrees (clockwise, -180 to 180): drawn turned on a canvas that holds it, and every window is in that canvas's units. Default 0. */
51
- angle?: number;
52
- /** Shows the turn control (a fine slider, quarter turns, Level) and receives the new angle; the windows are turned with the picture through `onChange` in the same step. Needs `angle`. */
53
- onAngleChange?: (angle: number) => void;
54
- /** Level lines across the picture, to line text up against while turning. */
55
- guide?: boolean;
56
- /** `mode="spread"`: the words for one window, and for each half. Default "Page", "Left page", "Right page". */
57
- spreadLabels?: {
58
- one: string;
59
- left: string;
60
- right: string;
61
- };
62
- className?: string;
63
- };
64
- /** A window said in words. */
65
- export declare const describeRegion: (r: EditableRegion) => string;
66
- /** Draw and move one or two named windows on a picture, with pointer, keyboard and numbers kept in step; aspect and bounds hold through all three; two windows make a from/to move with a Watch preview. */
67
- export declare function RegionEditor({ label, children, size, regions, onChange, selectedId, onSelectedChange, aspect, min, bounds, step, onDraw, mode, onPreview, duration, easing, fields, unit, defaults, angle, onAngleChange, guide, spreadLabels, className, }: RegionEditorProps): React.JSX.Element;
@@ -1,46 +0,0 @@
1
- import * as React from "react";
2
- /** The state of a document's saving. */
3
- export type SaveState = {
4
- status: "saved"; /** When it last saved here; null for a document just opened. */
5
- at: Date | null;
6
- } | {
7
- status: "dirty";
8
- } | {
9
- status: "saving";
10
- } | {
11
- status: "failed"; /** What happened, in the product's words. */
12
- reason?: string;
13
- };
14
- /** Options for `useAutoSave`. */
15
- export type AutoSaveOptions<V> = {
16
- /** The document's current value. Compared with what was last saved by `equals`. */
17
- value: V;
18
- /** Saves a value. Throw (or reject) to fail. */
19
- save: (value: V) => void | Promise<unknown>;
20
- /** Wait this long after the last change before saving. `null`: never on its own, only `saveNow()`. Default 1500. */
21
- delayMs?: number | null;
22
- /** Whether two values are the same document. Default `Object.is`. */
23
- equals?: (a: V, b: V) => boolean;
24
- /** Turns a thrown error into the sentence shown. Default `describeActionError`. */
25
- describeError?: (error: unknown) => string | undefined;
26
- };
27
- /** What `useAutoSave` returns. */
28
- export type AutoSave = {
29
- state: SaveState;
30
- /** Saves now (and is "Try again" after a failure). Resolves when the save has finished, failed or not. */
31
- saveNow: () => Promise<void>;
32
- };
33
- /** Saves `value` after changes settle, never two at once, and says where it stands. The document's first `value` counts as saved. */
34
- export declare function useAutoSave<V>({ value, save, delayMs, equals, describeError }: AutoSaveOptions<V>): AutoSave;
35
- /** Asks the browser to confirm before the page is closed or reloaded, while `active`. Off when there is nothing to lose. */
36
- export declare function useLeaveGuard(active: boolean): void;
37
- /**
38
- * The sign of whether the work is safe: "Saved 10:42", "Saving…", "Unsaved changes", or "Not saved"
39
- * with the reason and "Try again". Fixed width, so it never moves what is beside it. Announces a
40
- * failure, and the recovery from one, politely; a routine save is silent.
41
- */
42
- export declare function SaveStatus({ state, onRetry, className }: {
43
- state: SaveState;
44
- onRetry: () => void;
45
- className?: string;
46
- }): React.JSX.Element;
@@ -1,13 +0,0 @@
1
- import { SpeechPart, UseSpeechOptions } from '../lib/speech';
2
- /** Props of `SayAgain`. */
3
- export type SayAgainProps = UseSpeechOptions & {
4
- /** The one sentence it speaks. Also names the button: "Say: Which one is the cat?". */
5
- text: string;
6
- /** The recordings to play instead of the browser's voice, in order; their words together should be `text`. */
7
- parts?: readonly SpeechPart[];
8
- /** Replaces "Say" in the name, for an app that words it differently ("Hear"). */
9
- verb?: string;
10
- className?: string;
11
- };
12
- /** An icon button that says one sentence aloud, from its recordings when given, else with the browser's voice; hidden where neither can be heard or it is muted. */
13
- export declare function SayAgain({ text, parts, verb, className, ...options }: SayAgainProps): import('react').JSX.Element | null;
@@ -1,24 +0,0 @@
1
- /** A scheduled job as `ScheduleTable` draws it. */
2
- export type ScheduleRow = {
3
- /** What the job does, in the product's words: "Nightly backup". Also the row's key, so it is unique. */
4
- label: string;
5
- /** The last result: "ok" or "success", "failed" or "failure", or `null` for a job that has not run. Another word is shown as it is, neutrally. */
6
- result: string | null;
7
- /** The job is running now: the result then reads "Running". */
8
- running?: boolean;
9
- /** When it last ran (ISO string or Date), or `null`. */
10
- last?: string | Date | null;
11
- /** When it runs next, or `null` when nothing is scheduled. */
12
- next?: string | Date | null;
13
- };
14
- /** The schedule table's props. */
15
- export type ScheduleTableProps = {
16
- /** Names the table: "Scheduled jobs". */
17
- caption: string;
18
- rows: ScheduleRow[];
19
- /** "Now", for `format.ago` (tests and screenshots). */
20
- now?: Date;
21
- className?: string;
22
- };
23
- /** A table of a machine's scheduled jobs: each one's last result as a word, when it last ran and when it runs next. The last and next columns drop on a phone. */
24
- export declare function ScheduleTable({ caption, rows, now, className }: ScheduleTableProps): import('react').JSX.Element;
@@ -1,34 +0,0 @@
1
- import * as React from "react";
2
- /** What a `test` callback returns: the key works, or why it does not. */
3
- export type SecretTestResult = {
4
- ok: true;
5
- message?: string;
6
- } | {
7
- ok: false;
8
- message: string;
9
- };
10
- /** Props for `SecretField`. */
11
- export type SecretFieldProps = {
12
- /** What the secret is, singular, lower case or a name: "API key". Names the toggle, the buttons and the dialog. */
13
- noun: string;
14
- /** Whether the server holds one. Never the value. */
15
- isSet: boolean;
16
- /** When it was set, if the app knows: shown as "Set 12 Nov, 14:02". */
17
- setAt?: Date | string | number | null;
18
- /** The typed or pasted value, or `null` when nothing is being entered (cancelled, emptied). Not called while a set field is untouched. */
19
- onChange?: (value: string | null) => void;
20
- /** Send the typed value. A rejection's reason is the app's to put on the `Field` through `error`. Leave out when the form's own button saves it. */
21
- onSave?: (value: string) => Promise<unknown>;
22
- /** Take the stored one away, after the person confirms. Leave out to offer no Remove. */
23
- onRemove?: () => void | Promise<unknown>;
24
- /** What stops working once it is removed, in the product's words: "Map labels stop loading until a new key is set." Required with `onRemove`. */
25
- consequence?: string;
26
- /** Ask whether the key works. `null` means the stored one. */
27
- test?: (value: string | null) => Promise<SecretTestResult>;
28
- disabled?: boolean;
29
- id?: string;
30
- name?: string;
31
- className?: string;
32
- };
33
- /** A credential the server keeps and never shows again: "Not set", "Set" (no characters, not even its length), a masked entry with a named Show toggle, Replace, a confirmed Remove that says what stops working, and a Test with its result beside it. A set, untouched field reports nothing. */
34
- export declare function SecretField({ noun, isSet, setAt, onChange, onSave, onRemove, consequence, test, disabled, id: idProp, name, className }: SecretFieldProps): React.JSX.Element;
@@ -1,57 +0,0 @@
1
- import { RowSelection } from './data-table';
2
- import { TileAspect, TileSize } from './tile-grid';
3
- import * as React from "react";
4
- export type { TileAspect, TileSize };
5
- export type SelectableGridProps<T> = SelectableGridBase<T> & ({
6
- /** Default `square`. `portrait` is 3:4, `landscape` 4:3, or a width over height (`16 / 9`). */
7
- aspect?: TileAspect | number;
8
- naturalAspect?: never;
9
- } | {
10
- /** Each picture at its own shape, in rows of equal height that fill the width (Google Photos, Lightroom). `tileSize` is then the row height to aim for, and every row's pictures and heights are worked out from `naturalAspect` before anything loads, so nothing moves as pictures arrive. Virtualised always. */
11
- aspect: "natural";
12
- /** A picture's width over height, from the record (its pixel size), never from the loaded image. */
13
- naturalAspect: (row: T) => number;
14
- });
15
- type SelectableGridBase<T> = {
16
- /** Names the grid of tiles. */
17
- label: string;
18
- rows: T[];
19
- rowKey: (row: T) => string;
20
- /** The picture, drawn to fill a frame of `aspect`. An `<img className="size-full object-cover">` or a `Thumbnail`. */
21
- renderImage: (row: T) => React.ReactNode;
22
- /** A short line under the picture (a name, a date, a score). Truncated to one line. */
23
- detail?: (row: T) => React.ReactNode;
24
- /** The chosen keys and how to change them, as `DataTable` takes them; `rowLabel` names each tile's box. */
25
- selection: RowSelection<T>;
26
- /** Default `md`. Pixels for a continuous size: the minimum tile width, growing to fill the row. */
27
- tileSize?: TileSize | number;
28
- /** Asked to change the size by Ctrl/Cmd+wheel, `+` and `-`. Give a `useViewOptions` size back to `tileSize`; omit to leave the size fixed. */
29
- onTileSizeChange?: (px: number) => void;
30
- /** Tiles' smallest and largest width for those zooms, in px. Default 64 and 320. */
31
- zoomRange?: readonly [min: number, max: number];
32
- /** How many tiles can be chosen: `none` makes a grid to look at and open, `single` one tile. Default `multiple`. */
33
- selectionMode?: "none" | "single" | "multiple";
34
- /** `toggle` (default): a press toggles. `replace`: a press chooses that tile only, Ctrl/Cmd toggles, Shift extends. */
35
- selectionBehavior?: "toggle" | "replace";
36
- /** Opens a tile: Enter, or a double click with `selectionBehavior="replace"`. */
37
- onAction?: (row: T) => void;
38
- /** A corner badge on the picture (top right): a `Status`, "RAW+JPG". */
39
- badge?: (row: T) => React.ReactNode;
40
- /** A second corner (bottom right of the picture) for a count or a mark ("12", a flag), on a chip so it reads on any picture. */
41
- mark?: (row: T) => React.ReactNode;
42
- /** `cover` (default) crops the picture to fill its frame; `contain` fits the whole picture in it, letterboxed. */
43
- fit?: "cover" | "contain";
44
- /** Puts tiles under full-width headings, in the order the rows first show them. Virtualised like the ungrouped grid. */
45
- groupBy?: (row: T) => string;
46
- /** The words for a group's heading; default the group text. */
47
- groupHeading?: (group: string, rows: T[]) => string;
48
- /** Why a tile `selection.isSelectable` refuses cannot be chosen, in words ("Already in a project"). */
49
- unselectableReason?: (row: T) => string | undefined;
50
- /** Tile count from which only the visible rows of tiles render. Default 100. */
51
- virtualizeFrom?: number;
52
- /** Height of the scroll region once virtualised, in px. Default 480. */
53
- maxHeight?: number;
54
- className?: string;
55
- };
56
- /** A grid of pictures to choose from: each tile one labelled target, "Select all shown", Shift-click ranges, virtualised from `virtualizeFrom` tiles. Pair with `useSelection` and a `BulkBar`. */
57
- export declare function SelectableGrid<T>({ label, rows, rowKey, renderImage, detail, selection, aspect, naturalAspect, tileSize, onTileSizeChange, zoomRange, selectionMode, selectionBehavior, onAction, badge, mark, fit, groupBy, groupHeading, unselectableReason, virtualizeFrom, maxHeight, className, }: SelectableGridProps<T>): React.JSX.Element;
@@ -1,104 +0,0 @@
1
- import { Format } from '../lib/format';
2
- import { Implies } from '../lib/choice';
3
- import * as React from "react";
4
- /** Which rows start chosen: their keys, or a test on each row. Either applies to a row the first time it appears. */
5
- export type InitialSelection<T> = Iterable<string> | ((row: T) => boolean);
6
- /**
7
- * Chosen row keys, pruned to the rows that exist, and the calls that change them. Spread into
8
- * `DataTable`'s or `SelectableGrid`'s `selection` with a `rowLabel`. `initial` (keys, or a test on
9
- * the row) chooses each row the first time it appears, so a selection seeded from data that loads
10
- * later, or a next page, still starts right.
11
- */
12
- export declare function useSelection<T>(rows: readonly T[], rowKey: (row: T) => string, initial?: InitialSelection<T>, { implies, format: fmt }?: {
13
- implies?: Implies;
14
- format?: Format;
15
- }): {
16
- selected: ReadonlySet<string>;
17
- selectedRows: T[];
18
- count: number;
19
- onChange: (next: Set<string>) => void;
20
- clear: () => void;
21
- /** Keys that cannot be cleared on their own because something chosen implies them. */
22
- implied: ReadonlySet<string>;
23
- /** The chosen keys that bring `key` in (all of them), for the text that says why it is ticked. */
24
- because: (key: string) => readonly string[];
25
- counts: ChoiceCounts;
26
- /** "12 results will be forgotten: 8 chosen, 4 that depend on them": the confirm's own words. */
27
- summary: (noun: string | [one: string, many: string], then: string) => string;
28
- /** A polite sentence about the last change ("3 more chosen because they depend on it"), for a live region. */
29
- note: string;
30
- };
31
- /** The counts of a choice: what the person chose, what it brought in, and the whole. */
32
- export type ChoiceCounts = {
33
- chosen: number;
34
- dependents: number;
35
- total: number;
36
- };
37
- /** The part of a selection the surfaces drawing it (`DataTable`, `SelectableGrid`) need. */
38
- type SelectionLike<T> = {
39
- selected: ReadonlySet<string>;
40
- onChange: (next: Set<string>) => void;
41
- isSelectable?: (row: T) => boolean;
42
- };
43
- /**
44
- * Selecting rows of a surface in the order it shows them: one row, a range with Shift, and all
45
- * shown. Shared by `DataTable` and `SelectableGrid`, so a range and select-all behave the same on
46
- * both. `rows` are in display order (after sorting) and include rows a virtualised surface has not
47
- * rendered.
48
- *
49
- * A range runs from the last row clicked (the anchor) to this one, over the selectable rows
50
- * between, and sets them all to this row's new state, as Gmail and Finder do: Shift-clicking an
51
- * unchosen row chooses the run, Shift-clicking a chosen one clears it. Every click moves the
52
- * anchor. An anchor that has left the rows (filtered, removed) makes the next Shift-click a plain
53
- * one.
54
- * @internal
55
- */
56
- export declare function useSelectRows<T>(rows: readonly T[], rowKey: (row: T) => string, selection?: SelectionLike<T>): {
57
- toggle: (key: string, on: boolean, { shiftKey }: {
58
- shiftKey: boolean;
59
- }) => void;
60
- setAnchor: (key: string | null) => void;
61
- all: {
62
- checked: boolean | "mixed";
63
- toggle: () => void;
64
- disabled: boolean;
65
- };
66
- };
67
- /**
68
- * Choices that are not rows: the keys of a lazy tree, chosen before their rows have loaded. The same
69
- * rules as `useSelection`'s `implies` (explicit and implied kept apart, implied keys locked, a
70
- * summary and a note), with nothing to prune to. Spread into `Tree`'s `choices`. `initial` is what
71
- * the app chose for the person; it is read once.
72
- */
73
- export declare function useChoices({ initial, implies, format: fmt }?: {
74
- initial?: Iterable<string>;
75
- implies?: Implies;
76
- format?: Format;
77
- }): {
78
- /** Everything chosen: what the person chose and what that implies. */
79
- selected: ReadonlySet<string>;
80
- count: number;
81
- onChange: (next: ReadonlySet<string>) => void;
82
- add: (keys: Iterable<string>) => void;
83
- clear: () => void;
84
- implied: ReadonlySet<string>;
85
- because: (key: string) => readonly string[];
86
- counts: ChoiceCounts;
87
- summary: (noun: string | [one: string, many: string], then: string) => string;
88
- note: string;
89
- };
90
- /** What `useChoices` returns: give it to `Tree`'s `choices`. */
91
- export type Choices = ReturnType<typeof useChoices>;
92
- /** The bar for a selection: a polite live count ("2 bookings selected"), the bulk actions, and Clear selection. Renders only the live region while nothing is chosen. */
93
- export declare function BulkBar({ count, noun, onClear, children, format, className, }: {
94
- count: number;
95
- /** What is chosen, singular, or singular and plural: `"booking"`, `["person", "people"]`. */
96
- noun: string | [one: string, many: string];
97
- onClear: () => void;
98
- /** The actions. At most one filled button, named with its verb and count; while the bar is up it is the view's only filled button, so the screen's own primary goes to `outline`. */
99
- children: React.ReactNode;
100
- /** The product's formatters, for the count's figures and plural. Default en-GB. */
101
- format?: Format;
102
- className?: string;
103
- }): React.JSX.Element;
104
- export {};