@surfaces-ui/components 0.6.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/NOTICE +50 -0
  2. package/dist/appComponents.d.ts +9 -0
  3. package/dist/appComponents.js +105 -1
  4. package/dist/appComponents.js.map +1 -1
  5. package/dist/brand/MovingMark.d.ts +15 -0
  6. package/dist/brand/MovingMark.js +52 -0
  7. package/dist/brand/MovingMark.js.map +1 -0
  8. package/dist/brand/SurfacesMark.d.ts +9 -0
  9. package/dist/brand/SurfacesMark.js +12 -0
  10. package/dist/brand/SurfacesMark.js.map +1 -0
  11. package/dist/brand/index.d.ts +3 -0
  12. package/dist/brand/index.js +3 -0
  13. package/dist/brand/index.js.map +1 -0
  14. package/dist/brand/markMotion.d.ts +29 -0
  15. package/dist/brand/markMotion.js +89 -0
  16. package/dist/brand/markMotion.js.map +1 -0
  17. package/dist/chart/Chart.d.ts +8 -4
  18. package/dist/chart/Chart.js +19 -8
  19. package/dist/chart/Chart.js.map +1 -1
  20. package/dist/chart/advice.d.ts +4 -2
  21. package/dist/chart/advice.js +14 -1
  22. package/dist/chart/advice.js.map +1 -1
  23. package/dist/chart/option.d.ts +17 -2
  24. package/dist/chart/option.js +146 -3
  25. package/dist/chart/option.js.map +1 -1
  26. package/dist/controls/ConfirmDialog.d.ts +17 -2
  27. package/dist/controls/ConfirmDialog.js +37 -11
  28. package/dist/controls/ConfirmDialog.js.map +1 -1
  29. package/dist/controls/ItemControls.d.ts +6 -2
  30. package/dist/controls/ItemControls.js +8 -3
  31. package/dist/controls/ItemControls.js.map +1 -1
  32. package/dist/controls/OutlineIcon.d.ts +9 -0
  33. package/dist/controls/OutlineIcon.js +12 -0
  34. package/dist/controls/OutlineIcon.js.map +1 -0
  35. package/dist/data/DataSourceProvider.d.ts +2 -0
  36. package/dist/data/DataSourceProvider.js +5 -0
  37. package/dist/data/DataSourceProvider.js.map +1 -1
  38. package/dist/feedback/ErrorPage.d.ts +27 -0
  39. package/dist/feedback/ErrorPage.js +12 -0
  40. package/dist/feedback/ErrorPage.js.map +1 -0
  41. package/dist/index.d.ts +6 -0
  42. package/dist/index.js +6 -0
  43. package/dist/index.js.map +1 -1
  44. package/dist/loading/ChartArt.d.ts +8 -0
  45. package/dist/loading/ChartArt.js +29 -0
  46. package/dist/loading/ChartArt.js.map +1 -0
  47. package/dist/loading/DraftCard.d.ts +10 -0
  48. package/dist/loading/DraftCard.js +38 -0
  49. package/dist/loading/DraftCard.js.map +1 -0
  50. package/dist/loading/Loading.d.ts +49 -0
  51. package/dist/loading/Loading.js +38 -0
  52. package/dist/loading/Loading.js.map +1 -0
  53. package/dist/locale/locale.d.ts +42 -0
  54. package/dist/locale/locale.js +43 -0
  55. package/dist/locale/locale.js.map +1 -1
  56. package/dist/record/RecordForm.d.ts +85 -0
  57. package/dist/record/RecordForm.js +221 -0
  58. package/dist/record/RecordForm.js.map +1 -0
  59. package/dist/record/record.d.ts +82 -0
  60. package/dist/record/record.js +125 -0
  61. package/dist/record/record.js.map +1 -0
  62. package/dist/result/QueryResult.js +2 -1
  63. package/dist/result/QueryResult.js.map +1 -1
  64. package/dist/review/ActionReceipt.d.ts +2 -1
  65. package/dist/review/ActionReceipt.js +1 -0
  66. package/dist/review/ActionReceipt.js.map +1 -1
  67. package/dist/schema/SchemaExplorer.d.ts +4 -0
  68. package/dist/schema/SchemaExplorer.js +46 -28
  69. package/dist/schema/SchemaExplorer.js.map +1 -1
  70. package/dist/site/Site.d.ts +9 -4
  71. package/dist/site/Site.js +14 -8
  72. package/dist/site/Site.js.map +1 -1
  73. package/dist/styles.css +1097 -100
  74. package/dist/styles.layer.css +1097 -100
  75. package/dist/text/Markdown.js +21 -8
  76. package/dist/text/Markdown.js.map +1 -1
  77. package/dist/workspace/icons.js +2 -1
  78. package/dist/workspace/icons.js.map +1 -1
  79. package/package.json +12 -7
package/NOTICE CHANGED
@@ -2,3 +2,53 @@ Surfaces UI
2
2
  Copyright 2026 Josh Schoen
3
3
 
4
4
  This product is licensed under the Apache License, Version 2.0 (see LICENSE).
5
+
6
+ --------------------------------------------------------------------------------
7
+
8
+ @surfaces-ui/icons includes drawings from Lucide (https://lucide.dev), taken
9
+ from lucide-static 1.84.0. Other packages include some of them by depending on
10
+ it or by bundling it. They are used under this license:
11
+
12
+ ISC License
13
+
14
+ Copyright (c) 2026 Lucide Icons and Contributors
15
+
16
+ Permission to use, copy, modify, and/or distribute this software for any
17
+ purpose with or without fee is hereby granted, provided that the above
18
+ copyright notice and this permission notice appear in all copies.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
21
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
22
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
23
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
24
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
25
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
26
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
27
+
28
+ ---
29
+
30
+ The following Lucide icons are derived from the Feather project:
31
+
32
+ airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
33
+
34
+ The MIT License (MIT) (for the icons listed above)
35
+
36
+ Copyright (c) 2013-present Cole Bemis
37
+
38
+ Permission is hereby granted, free of charge, to any person obtaining a copy
39
+ of this software and associated documentation files (the "Software"), to deal
40
+ in the Software without restriction, including without limitation the rights
41
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
42
+ copies of the Software, and to permit persons to whom the Software is
43
+ furnished to do so, subject to the following conditions:
44
+
45
+ The above copyright notice and this permission notice shall be included in all
46
+ copies or substantial portions of the Software.
47
+
48
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
49
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
50
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
51
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
52
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
53
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
54
+ SOFTWARE.
@@ -24,6 +24,8 @@ export interface AppComponentDoc {
24
24
  name: string;
25
25
  /** The package it is imported from. */
26
26
  from: string;
27
+ /** The heading it is listed under. "App components" when it has none. */
28
+ group?: string;
27
29
  description: string;
28
30
  /** Its props that are plain data. */
29
31
  props: {
@@ -45,6 +47,7 @@ type Keys<P> = Extract<keyof P, string>;
45
47
  export declare function describeAppComponent<P>(): (doc: {
46
48
  name: string;
47
49
  from: string;
50
+ group?: string;
48
51
  description: string;
49
52
  props: {
50
53
  type: "object";
@@ -78,6 +81,12 @@ export declare const statusBadgeDoc: AppComponentDoc;
78
81
  export declare const comboboxDoc: AppComponentDoc;
79
82
  /** Every app component of `@surfaces-ui/components`. */
80
83
  export declare const popoverDoc: AppComponentDoc;
84
+ export declare const loadingDoc: AppComponentDoc;
85
+ export declare const chartLoaderDoc: AppComponentDoc;
86
+ export declare const draftCardDoc: AppComponentDoc;
87
+ export declare const workingLineDoc: AppComponentDoc;
88
+ export declare const errorPageDoc: AppComponentDoc;
89
+ export declare const movingMarkDoc: AppComponentDoc;
81
90
  export declare const componentsAppComponents: AppComponentDoc[];
82
91
  /** A component's reference page, as Markdown: what it is for, its props, the parts a host supplies and an example. */
83
92
  export declare function appComponentMarkdown(doc: AppComponentDoc): string;
@@ -510,7 +510,111 @@ export const popoverDoc = describeAppComponent()({
510
510
  callbacks: [{ prop: "onOpenChange", description: "Every change asked for: the button, Escape, a press or focus outside. Set `open` from it when the host holds it." }],
511
511
  example: { label: "View", summary: "Fit · 100% · Real data", align: "end" },
512
512
  });
513
- export const componentsAppComponents = [themePickerDoc, connectionBuilderDoc, modelLineageDoc, checksPanelDoc, objectInfoDoc, certificationBadgeDoc, itemControlsDoc, resizeHandleDoc, segmentedControlDoc, dataTableDoc, selectionBarDoc, paginationDoc, confirmDialogDoc, statusBadgeDoc, comboboxDoc, popoverDoc, navBarDoc];
513
+ const CHARTS = ["stacked", "scatter", "gantt", "line", "heatmap", "histogram", "funnel", "combo", "rows", "sankey", "area", "confusion", "bars", "table", "pareto"];
514
+ export const loadingDoc = describeAppComponent()({
515
+ name: "Loading",
516
+ from: COMPONENTS,
517
+ group: "Loading",
518
+ description: "Says what is being waited for, with something that moves while it is: a small chart beside the words, or above them a card that sketches a page. A live region, so the words are read out; a wait under a fifth of a second shows nothing. The motion is decoration and stands still where the system asks for less of it. Put `aria-busy` on what is being loaded.",
519
+ props: {
520
+ type: "object",
521
+ properties: {
522
+ label: { type: "string", description: 'What is being waited for: "Opening the report…".' },
523
+ size: { type: "string", enum: ["inline", "page"], description: "A small chart beside the words, or a card sketching itself above them. Defaults to inline." },
524
+ cards: { type: "integer", minimum: 1, maximum: 3, description: "With size page: how many cards, fanned out when there is more than one. Defaults to 1." },
525
+ chart: { type: "string", enum: CHARTS, description: "With size inline: the chart to draw. Picked when left out." },
526
+ },
527
+ required: ["label"],
528
+ },
529
+ parts: [{ prop: "picture", label: "Your own picture", description: "Drawn in place of the chart or the card, such as `MovingMark` or a product's own." }],
530
+ callbacks: [],
531
+ example: { label: "Opening the report…", size: "page" },
532
+ });
533
+ export const chartLoaderDoc = describeAppComponent()({
534
+ name: "ChartLoader",
535
+ from: COMPONENTS,
536
+ group: "Loading",
537
+ description: "A small chart that draws itself and keeps moving, the same one for as long as the wait lasts: one of fifteen. Decoration beside words that say what is waited for, so it is hidden from assistive technology; use `Loading` or `WorkingLine` for the two together.",
538
+ props: {
539
+ type: "object",
540
+ properties: {
541
+ chart: { type: "string", enum: CHARTS, description: "The chart to draw. Picked when left out." },
542
+ seed: { type: "string", description: "Picks the chart: the same words always pick the same one." },
543
+ size: { type: "number", description: "Its width, in px (or any CSS length). Defaults to 2.5rem." },
544
+ },
545
+ },
546
+ parts: [],
547
+ callbacks: [],
548
+ example: { chart: "sankey", size: 160 },
549
+ });
550
+ export const draftCardDoc = describeAppComponent()({
551
+ name: "DraftCard",
552
+ from: COMPONENTS,
553
+ group: "Loading",
554
+ description: "A page sketching itself on a card, part by part under a pen, then thrown aside for another layout: for while a page is made or opened. Up to three fan out, for several drafts made at once. Decoration: `Loading` with size page puts it with the words that say what is waited for.",
555
+ props: { type: "object", properties: { cards: { type: "integer", minimum: 1, maximum: 3, description: "How many cards. Defaults to 1." } } },
556
+ parts: [],
557
+ callbacks: [],
558
+ example: { cards: 3 },
559
+ });
560
+ export const workingLineDoc = describeAppComponent()({
561
+ name: "WorkingLine",
562
+ from: COMPONENTS,
563
+ group: "Loading",
564
+ description: "What an agent or a long job is doing now, in words, with a chart that keeps moving and how long it has been. Give it only what is known to be happening. A change of words is read out; the time is not. The chat shows one while a reply is on its way.",
565
+ props: {
566
+ type: "object",
567
+ properties: {
568
+ label: { type: "string", description: 'What is being done now: "Reading the orders table…".' },
569
+ since: { type: "number", description: "When it began, in ms since 1970 (`Date.now()`). Without it no time is shown." },
570
+ seed: { type: "string", description: "Picks the chart, so the same turn keeps the same one." },
571
+ announce: { type: "boolean", description: "Reads a change of words out. Defaults to true; false inside something that is itself read out." },
572
+ },
573
+ required: ["label"],
574
+ },
575
+ parts: [],
576
+ callbacks: [],
577
+ example: { label: "Reading the orders table…", seed: "turn 1" },
578
+ });
579
+ export const errorPageDoc = describeAppComponent()({
580
+ name: "ErrorPage",
581
+ from: COMPONENTS,
582
+ group: "Feedback",
583
+ description: "Shown in place of a page that could not be: not found, no longer shared, the server not answering, a failure to draw. Says what happened and the way on. Its words are an alert; it is no landmark, so it goes in the page's `main`. For not found, say the same whether or not the thing exists for someone else.",
584
+ props: {
585
+ type: "object",
586
+ properties: {
587
+ title: { type: "string", description: "What happened, short." },
588
+ message: { type: "string", description: "Why, as far as it may be said, and what can be done. Never a server's own text." },
589
+ code: { type: "string", description: 'A short code above the title, such as "404".' },
590
+ actions: { type: "array", description: "The ways on, the one to take first.", items: { type: "object", properties: { id: { type: "string" }, label: { type: "string" } }, required: ["id", "label"] } },
591
+ level: { type: "integer", enum: [1, 2, 3], description: "The title's heading level. Defaults to 1." },
592
+ },
593
+ required: ["title", "message"],
594
+ },
595
+ parts: [{ prop: "picture", label: "Picture", description: "Above the words: the host's own mark or drawing.", on: true }],
596
+ callbacks: [{ prop: "onAction", description: "Called with the id of the way on that was pressed." }],
597
+ example: { code: "404", title: "This page isn't here", message: "The address may have a typo in it, or what it led to was moved or deleted.", actions: [{ id: "home", label: "Go to Home" }], level: 2 },
598
+ });
599
+ export const movingMarkDoc = describeAppComponent()({
600
+ name: "MovingMark",
601
+ from: `${COMPONENTS}/brand`,
602
+ group: "Brand",
603
+ description: "The Surfaces UI mark in motion, for a product that shows it: hand it to `Loading` or `ErrorPage` as their picture. It is in an entry of its own (`@surfaces-ui/components/brand`), so an app that does not ask for it neither shows nor ships it.",
604
+ props: {
605
+ type: "object",
606
+ properties: {
607
+ motion: { type: "string", enum: ["spin", "stack", "fan", "wave"], description: "Spin: each layer spins on its point and lands on the last. Stack: one lands after another, without end. Fan: they slide apart and back. Wave: a ripple runs up them." },
608
+ size: { type: "number", description: "Its width in px. Defaults to 132." },
609
+ once: { type: "boolean", description: "Goes through once and comes to rest, for a page that stays up." },
610
+ },
611
+ required: ["motion"],
612
+ },
613
+ parts: [],
614
+ callbacks: [],
615
+ example: { motion: "spin", size: 160 },
616
+ });
617
+ export const componentsAppComponents = [themePickerDoc, connectionBuilderDoc, modelLineageDoc, checksPanelDoc, objectInfoDoc, certificationBadgeDoc, itemControlsDoc, resizeHandleDoc, segmentedControlDoc, dataTableDoc, selectionBarDoc, paginationDoc, confirmDialogDoc, statusBadgeDoc, comboboxDoc, popoverDoc, navBarDoc, loadingDoc, chartLoaderDoc, draftCardDoc, workingLineDoc, errorPageDoc, movingMarkDoc];
514
618
  /** A component's reference page, as Markdown: what it is for, its props, the parts a host supplies and an example. */
515
619
  export function appComponentMarkdown(doc) {
516
620
  const required = new Set(doc.props.required ?? []);
@@ -1 +1 @@
1
- {"version":3,"file":"appComponents.js","sourceRoot":"","sources":["../src/appComponents.ts"],"names":[],"mappings":"AAuEA,6GAA6G;AAC7G,MAAM,UAAU,oBAAoB;IAClC,OAAO,CAAC,GAQP,EAAmB,EAAE,CAAC,GAAsB,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,GAAG,yBAAyB,CAAC;AAC7C,MAAM,WAAW,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAU,CAAC;A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AAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;aAC9G,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QACjD,GAAG,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,GAAG,CAAC;QACrG,GAAG,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,GAAG,QAAQ,CAAC,IAAI,MAAM,CAAC;KAC3D,CAAC;IACF,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,IAAI,IAAI,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;IAC1D,OAAO,OAAO,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,IAAI,EAAE,EAAE,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACjH,CAAC","sourcesContent":["import type { CertificationBadge } from \"./discovery/shared.js\";\nimport type { ConnectionBuilderProps } from \"./source/ConnectionBuilder.js\";\nimport type { ItemControlsProps } from \"./controls/ItemControls.js\";\nimport type { ResizeHandleProps } from \"./controls/ResizeHandle.js\";\nimport type { SegmentedControlProps } from \"./controls/SegmentedControl.js\";\nimport type { ComboboxProps } from \"./controls/Combobox.js\";\nimport type { ConfirmDialogProps } from \"./controls/ConfirmDialog.js\";\nimport type { PopoverProps } from \"./controls/Popover.js\";\nimport type { StatusBadgeProps } from \"./controls/StatusBadge.js\";\nimport type { DataTableProps } from \"./table/DataTable.js\";\nimport type { PaginationProps } from \"./table/Pagination.js\";\nimport type { SelectionBarProps } from \"./table/SelectionBar.js\";\nimport type { ModelLineageProps } from \"./explore/ModelLineage.js\";\nimport type { ObjectInfoProps } from \"./schema/ObjectInfo.js\";\nimport type { ChecksPanelProps } from \"./pipeline/Pipeline.js\";\nimport type { ThemePickerProps } from \"./theme/ThemePicker.js\";\nimport type { NavBarProps } from \"./workspace/NavBar.js\";\n\n/*\n * Components an app places itself, as opposed to the catalog's, which an\n * agent draws. Each is described once here, as data: what it is for, its\n * props that are plain data (as JSON Schema), the props that take code (a\n * backend, a store, a callback the host must write) and an example. The\n * playground draws a page for each from this, and `pnpm docs:gen` writes\n * docs/components. `describeAppComponent<Props>()` checks every prop named\n * here against the component's own props type, so neither can name a prop\n * the component does not have.\n *\n * Nothing here imports React or a component, so a script can read it.\n */\n\n/** One prop that is plain data, as JSON Schema. */\nexport interface PropSchema {\n type?: \"string\" | \"number\" | \"integer\" | \"boolean\" | \"object\" | \"array\";\n description?: string;\n enum?: readonly unknown[];\n items?: PropSchema;\n properties?: Record<string, PropSchema>;\n required?: string[];\n minimum?: number;\n maximum?: number;\n default?: unknown;\n}\n\n/** A prop that takes code the host writes: switched on or off on the component's page, where the playground fills it with a working demo. */\nexport interface AppComponentPart {\n prop: string;\n label: string;\n description: string;\n /** Required by the component, so always on. */\n required?: boolean;\n /** On when the page opens. */\n on?: boolean;\n}\n\nexport interface AppComponentDoc {\n name: string;\n /** The package it is imported from. */\n from: string;\n description: string;\n /** Its props that are plain data. */\n props: { type: \"object\"; properties: Record<string, PropSchema>; required?: string[] };\n parts: AppComponentPart[];\n /** Callbacks a host passes to hear what happens. */\n callbacks: { prop: string; description: string }[];\n /** Plain-data props to start from. */\n example: Record<string, unknown>;\n}\n\ntype Keys<P> = Extract<keyof P, string>;\n\n/** Checks a description against the component's props type `P`: every prop it names must be one of `P`'s. */\nexport function describeAppComponent<P>() {\n return (doc: {\n name: string;\n from: string;\n description: string;\n props: { type: \"object\"; properties: Partial<Record<Keys<P>, PropSchema>>; required?: Keys<P>[] };\n parts: (AppComponentPart & { prop: Keys<P> })[];\n callbacks: { prop: Keys<P>; description: string }[];\n example: Partial<Record<Keys<P>, unknown>>;\n }): AppComponentDoc => doc as AppComponentDoc;\n}\n\nconst COMPONENTS = \"@surfaces-ui/components\";\nconst PRESET_HIDE = [\"mode\", \"presets\", \"accent\", \"charts\", \"radius\", \"font\", \"density\"] as const;\n\nexport const themePickerDoc = describeAppComponent<ThemePickerProps>()({\n name: \"ThemePicker\",\n from: COMPONENTS,\n description:\n \"Lets a person choose how everything looks: a preset, light or dark, the accent, chart colours, corner radius, font and density. It changes the theme held by the `ThemeProvider` above it, which keeps the choice. Hide the controls a product does not want to offer.\",\n props: {\n type: \"object\",\n properties: {\n hide: { type: \"array\", description: \"Controls to leave out.\", items: { type: \"string\", enum: PRESET_HIDE } },\n },\n },\n parts: [{ prop: \"presets\", label: \"Your own presets\", description: \"Themes offered as one-click choices in place of the built-in presets.\" }],\n callbacks: [],\n example: { hide: [] },\n});\n\nexport const connectionBuilderDoc = describeAppComponent<ConnectionBuilderProps>()({\n name: \"ConnectionBuilder\",\n from: COMPONENTS,\n description:\n \"Sets up Parquet, Delta or Iceberg data on S3, GCS, Azure, https or disk, and writes the configuration for the server with the names of the environment variables to set. It holds the name of a secret, never a credential.\",\n props: {\n type: \"object\",\n properties: {\n value: {\n type: \"object\",\n description: \"The connection being set up.\",\n properties: {\n sourceId: { type: \"string\", description: \"The source's id.\" },\n storage: { type: \"string\", enum: [\"s3\", \"gcs\", \"azure\", \"http\", \"local\"], description: \"Where the files are.\" },\n scope: { type: \"string\", description: \"The bucket or prefix the connection covers, e.g. s3://acme-lake/sales.\" },\n credentials: { type: \"string\", enum: [\"secret\", \"ambient\", \"public\"], description: \"A named secret, the machine's own role, or public data with none.\" },\n secret: { type: \"string\", description: \"The name of the server-side secret, e.g. LAKE.\" },\n region: { type: \"string\" },\n endpoint: { type: \"string\", description: \"For S3-compatible stores such as MinIO.\" },\n },\n },\n },\n required: [\"value\"],\n },\n parts: [],\n callbacks: [{ prop: \"onChange\", description: \"Every change to the connection, as the whole draft. Required: the host holds the draft.\" }],\n example: { value: { sourceId: \"lake\", storage: \"s3\", scope: \"s3://acme-lake/sales\", credentials: \"secret\", secret: \"LAKE\", region: \"eu-west-1\", endpoint: \"\", tables: [{ name: \"orders\", format: \"delta\", path: \"s3://acme-lake/sales/orders\" }], catalogUri: \"\", catalogWarehouse: \"\" } },\n});\n\nexport const modelLineageDoc = describeAppComponent<ModelLineageProps>()({\n name: \"ModelLineage\",\n from: COMPONENTS,\n description:\n \"Where a semantic model's rows come from when a pipeline builds them: the dataset, when it was last built, the latest run's checks, whether its key was checked and what it reads. One line over an explorer or a report, or a panel. Display only: it queries nothing.\",\n props: {\n type: \"object\",\n properties: {\n model: {\n type: \"object\",\n description: \"A model whose rows are a pipeline's dataset (`dataset`); anything else draws nothing.\",\n properties: {\n sourceId: { type: \"string\" },\n sql: { type: \"string\" },\n grain: { type: \"string\" },\n primaryKey: { type: \"array\", items: { type: \"string\" } },\n dataset: { type: \"object\", properties: { pipelineId: { type: \"string\" }, dataset: { type: \"string\" } } },\n },\n },\n compact: { type: \"boolean\", description: \"One line, for above an explorer or a report.\" },\n },\n required: [\"model\"],\n },\n parts: [{ prop: \"pipelines\", label: \"Pipelines backend\", description: \"Where the dataset's definition and runs come from. Without it (or a PipelinesProvider) only the dataset's name is shown.\", on: true }],\n callbacks: [\n { prop: \"onUseDataset\", description: \"Offered when the model's grain or key differs from the dataset's.\" },\n { prop: \"onOpenDataset\", description: \"Opens the dataset in the host's pipeline view.\" },\n ],\n example: { compact: false },\n});\n\nexport const checksPanelDoc = describeAppComponent<ChecksPanelProps>()({\n name: \"ChecksPanel\",\n from: COMPONENTS,\n description: \"A dataset's checks (unique, not null, relationships, accepted values, row count) with their latest results, failures first. Display only: the counts come from the engine.\",\n props: {\n type: \"object\",\n properties: {\n checks: {\n type: \"array\",\n description: \"Each check with its latest outcome.\",\n items: { type: \"object\", properties: { name: { type: \"string\" }, description: { type: \"string\", description: \"The check in words.\" }, severity: { type: \"string\", enum: [\"fail\", \"warn\"] }, failedRecords: { type: \"integer\", description: \"Rows that break it; absent when not run since it was added.\" }, summary: { type: \"string\" } }, required: [\"name\", \"description\", \"severity\"] },\n },\n },\n required: [\"checks\"],\n },\n parts: [],\n callbacks: [{ prop: \"onOpenFailing\", description: \"Look at what breaks a check. Nothing runs unless the host runs it.\" }],\n example: {\n checks: [\n { name: \"order_id_unique\", description: \"order_id never repeats\", severity: \"fail\", failedRecords: 0, fromKey: true },\n { name: \"status_values\", description: \"status is one of placed, shipped, returned\", severity: \"warn\", failedRecords: 12, summary: \"12 rows have another status.\" },\n ],\n },\n});\n\nexport const objectInfoDoc = describeAppComponent<ObjectInfoProps>()({\n name: \"ObjectInfo\",\n from: COMPONENTS,\n description: \"What the backend knows about a database, schema or table: its kind, format, size, columns and keys. Names only, never values.\",\n props: {\n type: \"object\",\n properties: {\n sourceId: { type: \"string\", description: \"The source to ask.\" },\n catalog: { type: \"string\", description: \"A catalog (database).\" },\n schema: { type: \"string\" },\n table: { type: \"string\", description: \"With a table, it describes the table; without, the schema or catalog.\" },\n },\n required: [\"sourceId\"],\n },\n parts: [{ prop: \"dataSource\", label: \"Its own data source\", description: \"Left out, the one from `DataSourceProvider`.\" }],\n callbacks: [{ prop: \"onClose\", description: \"Shows a close button.\" }],\n example: {},\n});\n\nexport const certificationBadgeDoc = describeAppComponent<Parameters<typeof CertificationBadge>[0]>()({\n name: \"CertificationBadge\",\n from: COMPONENTS,\n description: \"Marks certified or deprecated data wherever an object is shown, with a symbol and words as well as colour. Who certified it, when and why show on hover and focus.\",\n props: {\n type: \"object\",\n properties: {\n certification: {\n type: \"object\",\n description: \"The verdict a person recorded with `setCertification`; none draws nothing.\",\n properties: {\n status: { type: \"integer\", enum: [1, 2], description: \"1 certified, 2 deprecated.\" },\n setBy: { type: \"string\" },\n setAt: { type: \"string\" },\n note: { type: \"string\" },\n },\n },\n },\n },\n parts: [],\n callbacks: [],\n example: { certification: { status: 1, setBy: \"Ada Lovelace\", setAt: \"2026-11-01T10:00:00Z\", note: \"Reconciled with finance.\" } },\n});\n\nexport const itemControlsDoc = describeAppComponent<ItemControlsProps>()({\n name: \"ItemControls\",\n from: COMPONENTS,\n description:\n \"The controls of one item (a tile, a framed component) as a row of icons: quiet until the item is pointed at or focused, each named at once in a tooltip, one tab stop with arrows between them. Build the shared actions with `standardControls(name, actions)` so their order, wording and icons are the same everywhere.\",\n props: {\n type: \"object\",\n properties: {\n label: { type: \"string\", description: 'Names the group: \"Refund rate by category controls\".' },\n show: { type: \"string\", enum: [\"hover\", \"always\"], description: \"Shown on hover and focus (and always on touch), or always.\" },\n quietable: { type: \"boolean\", description: \"Whether an outer layer of controls can hide these.\" },\n },\n required: [\"label\"],\n },\n parts: [{ prop: \"controls\", label: \"Controls\", description: \"The actions, from `standardControls`. On the page: change, wider, narrower, earlier, later, duplicate and remove.\", required: true }],\n callbacks: [],\n example: { label: \"Revenue by month controls\", show: \"always\" },\n});\n\nexport const navBarDoc = describeAppComponent<NavBarProps>()({\n name: \"NavBar\",\n from: COMPONENTS,\n description:\n \"Navigation across the top of a site, after Apple's: the sections on a glass bar that stays at the top, and beneath it the current section's name and its pages. Content scrolls under both and an edge appears once it does. On a narrow screen the sections fold into a menu that covers the screen as a dialog. It takes the same groups as `SideNav`, so a site can move between the two.\",\n props: {\n type: \"object\",\n properties: {\n label: { type: \"string\", description: 'What the navigation is for, for assistive technology: \"Surfaces UI\".' },\n groups: {\n type: \"array\",\n description: \"The sections, each with its pages. A section goes to its first page.\",\n items: {\n type: \"object\",\n properties: {\n label: { type: \"string\", description: \"The section's name in the bar.\" },\n items: { type: \"array\", items: { type: \"object\", properties: { id: { type: \"string\" }, label: { type: \"string\" }, href: { type: \"string\" } }, required: [\"id\", \"label\"] } },\n },\n required: [\"items\"],\n },\n },\n current: { type: \"string\", description: \"The id of the page being shown.\" },\n },\n required: [\"label\", \"groups\"],\n },\n parts: [\n { prop: \"brand\", label: \"Brand\", description: \"A name or mark at the bar's start.\", on: true },\n { prop: \"actions\", label: \"Actions\", description: \"A status or a picker at the bar's end; it moves into the menu on a narrow screen.\" },\n ],\n callbacks: [{ prop: \"onSelect\", description: \"The id of the page a person chose.\" }],\n example: {\n label: \"Acme analytics\",\n current: \"revenue\",\n groups: [\n { label: \"Reports\", items: [{ id: \"revenue\", label: \"Revenue\" }, { id: \"refunds\", label: \"Refunds\" }, { id: \"stores\", label: \"Stores\" }] },\n { label: \"Data\", items: [{ id: \"tables\", label: \"Tables\" }, { id: \"models\", label: \"Models\" }] },\n { label: \"Settings\", items: [{ id: \"people\", label: \"People\" }] },\n ],\n },\n});\n\nexport const resizeHandleDoc = describeAppComponent<ResizeHandleProps>()({\n name: \"ResizeHandle\",\n from: COMPONENTS,\n description:\n \"A handle on the right or bottom edge of something, dragged to change its width or height: the same handle Arrange draws between a Grid's columns and under a component, for an app to place between two panes of its own. A focusable separator that says its value and bounds; dragged with pointer events, so a mouse, a pen and a finger all work; moved by the arrow keys (Shift for bigger steps), Home and End; put back by Enter or a double click. It holds no size of its own: the host keeps `value`, draws each change from `onChange` and keeps the size on `onChangeEnd`. Its parent must be positioned, since it sits on that parent's edge.\",\n props: {\n type: \"object\",\n properties: {\n edge: { type: \"string\", enum: [\"right\", \"bottom\"], description: '\"right\" sizes a width, dragged left and right; \"bottom\" a height, dragged up and down.' },\n value: { type: \"number\", description: \"The size it stands for, in any unit: pixels, a share, a percentage. Left out when no size is set yet.\" },\n min: { type: \"number\", description: \"The least it can be.\" },\n max: { type: \"number\", description: \"The most it can be.\" },\n snap: { type: \"number\", description: \"Values land on multiples of this (10 rounds to ten pixels).\" },\n step: { type: \"number\", description: \"How far an arrow key moves it; Shift moves five steps. A twentieth of the range by default.\" },\n unitPixels: { type: \"number\", description: \"How many pixels on screen one unit is: 1 for pixels, a pane's width for a share of it. A function of the handle is read when a drag starts.\" },\n label: { type: \"string\", description: 'What it resizes, for assistive technology: \"Resize the map and the list\".' },\n valueText: { type: \"string\", description: 'The value in words, when a number alone does not say it: \"40% and 60%\".' },\n always: { type: \"boolean\", description: \"Shown all the time, rather than when its parent is pointed at or it has focus (it always shows on touch).\" },\n },\n required: [\"edge\", \"label\"],\n },\n parts: [\n { prop: \"onReset\", label: \"Reset\", description: \"Enter or a double click puts the size back. On the page: back to half and half.\", on: true },\n { prop: \"startFrom\", label: \"Start from what is drawn\", description: \"Where a drag starts when no `value` is set, such as the height drawn now.\" },\n ],\n callbacks: [\n { prop: \"onChange\", description: \"Each new value while it is dragged, and after each key.\" },\n { prop: \"onChangeEnd\", description: \"When a drag ends (committed, or cancelled by Escape back where it started) and after each key: where to keep the size.\" },\n ],\n example: { edge: \"right\", value: 0.5, min: 0.25, max: 0.75, step: 0.05, label: \"Resize the map and the list\", valueText: \"50% and 50%\" },\n});\n\nexport const segmentedControlDoc = describeAppComponent<SegmentedControlProps>()({\n name: \"SegmentedControl\",\n from: COMPONENTS,\n description:\n \"A few equal choices of which exactly one holds, as one bar: build or view, chart or table, light or dark. It is the bar `ReportBuilder` switches modes with. A radio group, so it is one tab stop and the arrow keys move the choice; the chosen segment is one thumb that slides between the options. It holds no choice of its own: the host keeps `value` and sets it from `onChange`. Use it to switch what is shown in place, for two to eight short options; for actions use buttons, and for many or long options a select.\",\n props: {\n type: \"object\",\n properties: {\n label: { type: \"string\", description: 'What is being chosen, for assistive technology: \"Mode\", \"Preview mode\".' },\n options: {\n type: \"array\",\n description: \"The choices, in order. They share the width equally.\",\n items: {\n type: \"object\",\n properties: {\n value: { type: \"string\", description: \"What `onChange` reports.\" },\n label: { type: \"string\", description: \"The words on the segment.\" },\n disabled: { type: \"boolean\", description: \"Greyed and still reachable, for a choice that makes no sense right now.\" },\n },\n required: [\"value\", \"label\"],\n },\n },\n value: { type: \"string\", description: \"The chosen option's value.\" },\n fit: { type: \"string\", enum: [\"content\", \"fill\"], description: '\"content\" is as wide as its options need; \"fill\" takes its parent\\'s width.' },\n name: { type: \"string\", description: \"The radio group's name, when a form reads it. Made up otherwise.\" },\n },\n required: [\"label\", \"options\", \"value\"],\n },\n parts: [],\n callbacks: [{ prop: \"onChange\", description: \"The value of the option a person chose.\" }],\n example: {\n label: \"Preview mode\",\n value: \"page\",\n fit: \"content\",\n options: [\n { value: \"page\", label: \"As the page\" },\n { value: \"light\", label: \"Light\" },\n { value: \"dark\", label: \"Dark\" },\n ],\n },\n});\n\nconst PEOPLE_EXAMPLE = [\n { id: \"u1\", name: \"Ana Admin\", email: \"ana@example.com\", status: \"On\", owns: 4, signedIn: \"Today\" },\n { id: \"u2\", name: \"Ben Brook\", email: \"ben@example.com\", status: \"Turned off\", owns: 0, signedIn: \"3 May\" },\n { id: \"u3\", name: \"Cleo Chen\", email: \"cleo@example.com\", status: \"On\", owns: 12, signedIn: \"Yesterday\" },\n { id: \"u4\", name: \"Dev Diaz\", email: \"dev@example.com\", status: \"On\", owns: 1, signedIn: \"Never\" },\n];\n\nexport const dataTableDoc = describeAppComponent<DataTableProps<Record<string, unknown>>>()({\n name: \"DataTable\",\n from: COMPONENTS,\n description:\n \"The rows an app holds, as a table: people, invitations, jobs, keys. Headings ask the host to sort; check boxes say which rows are chosen (with `SelectionBar` for what to do with them); each row can carry its everyday actions as `ItemControls` and a menu on a right click. It sorts, filters and pages nothing itself: the host asks its own server and hands over one page, with `Pagination` beneath. Columns marked `medium` or `wide` give way as the table, not the window, narrows. For the rows of a query use `DataGrid`, which asks the engine.\",\n props: {\n type: \"object\",\n properties: {\n label: { type: \"string\", description: 'What the rows are, for assistive technology: \"People\".' },\n columns: {\n type: \"array\",\n description: \"The columns, in order. A column's `cell` function draws it; without one the row's value under `id` is shown as text.\",\n items: {\n type: \"object\",\n properties: {\n id: { type: \"string\", description: \"Tells columns apart, and names the sort the table reports.\" },\n label: { type: \"string\", description: \"The heading.\" },\n sortable: { type: \"boolean\", description: \"Whether a press on the heading asks the host to sort by it.\" },\n align: { type: \"string\", enum: [\"start\", \"end\"], description: '\"end\" for numbers.' },\n show: { type: \"string\", enum: [\"always\", \"medium\", \"wide\"], description: \"From what width of the table the column is shown: always, 36rem, or 52rem.\" },\n },\n required: [\"id\", \"label\"],\n },\n },\n rows: { type: \"array\", description: \"One page of rows, already sorted and filtered by the host, shown in the order given.\", items: { type: \"object\" } },\n rowHeader: { type: \"string\", description: \"The column that names each row, drawn as its header. Defaults to the first.\" },\n sort: {\n type: \"object\",\n description: \"How the host has sorted the rows.\",\n properties: { column: { type: \"string\" }, desc: { type: \"boolean\" } },\n required: [\"column\", \"desc\"],\n },\n allSelected: { type: \"boolean\", description: \"Every row that matches is chosen, past this page too (see `SelectionBar`).\" },\n controlsShow: { type: \"string\", enum: [\"always\", \"hover\"], description: \"Whether a row's controls are always shown (the default) or on hover and focus.\" },\n loading: { type: \"boolean\", description: \"The rows are being fetched.\" },\n },\n required: [\"label\", \"columns\", \"rows\"],\n },\n parts: [\n { prop: \"rowKey\", label: \"Row key\", description: \"A function giving each row a value that tells it apart: an id.\", required: true },\n { prop: \"rowName\", label: \"Row name\", description: 'A function giving the row\\'s name, for its check box and controls: \"Select Ana Admin\". Defaults to the first column\\'s text.' },\n { prop: \"selected\", label: \"Selection\", description: \"The keys of the rows ticked, with `onSelectedChange`: adds a check box to each row and the heading.\", on: true },\n { prop: \"selectable\", label: \"Who can be chosen\", description: \"A function saying whether a row can be ticked: one that cannot shows no box.\" },\n { prop: \"rowControls\", label: \"Row controls\", description: \"A function giving a row's everyday actions, drawn with `ItemControls`.\", on: true },\n { prop: \"rowMenu\", label: \"Row menu\", description: \"A function giving a row's menu, opened by a right click, a long press or the Menu key.\" },\n { prop: \"rowState\", label: \"Row state\", description: 'A function giving a word put on the row as `data-state` for the host\\'s own styling: \"off\".' },\n { prop: \"empty\", label: \"When empty\", description: \"What to show in place of rows when there are none.\" },\n ],\n callbacks: [\n { prop: \"onSortChange\", description: \"The column and direction a person asked to sort by. Fetch the rows in that order and pass them back.\" },\n { prop: \"onSelectedChange\", description: \"The keys now ticked.\" },\n ],\n example: {\n label: \"People\",\n rowHeader: \"name\",\n sort: { column: \"name\", desc: false },\n columns: [\n { id: \"name\", label: \"Name\", sortable: true },\n { id: \"email\", label: \"Email\", sortable: true, show: \"medium\" },\n { id: \"status\", label: \"Status\" },\n { id: \"signedIn\", label: \"Last signed in\", show: \"wide\" },\n { id: \"owns\", label: \"Owns\", sortable: true, align: \"end\", show: \"wide\" },\n ],\n rows: PEOPLE_EXAMPLE,\n },\n});\n\nexport const selectionBarDoc = describeAppComponent<SelectionBarProps>()({\n name: \"SelectionBar\",\n from: COMPONENTS,\n description:\n \"What to do with the rows a person chose in a `DataTable`: how many, the actions, and Clear. When the whole page is ticked and more rows match, it offers to take every row that matches, so an action can reach rows on pages never opened; the host then acts on its search and filters, not on a list of keys. An action that takes something away comes last, after a gap. It runs nothing itself: ask first for anything hard to undo with `useConfirm`, and report what happened, and whom it left alone, with `ActionReceipt`. Nothing is drawn with nothing chosen.\",\n props: {\n type: \"object\",\n properties: {\n count: { type: \"integer\", minimum: 0, description: \"How many rows are chosen: those ticked, or all that match when `allMatching`.\" },\n actions: {\n type: \"array\",\n description: \"What can be done to them, in order; one with `danger` is moved last.\",\n items: {\n type: \"object\",\n properties: {\n id: { type: \"string\" },\n label: { type: \"string\", description: 'The button\\'s words: \"Turn off\".' },\n danger: { type: \"boolean\", description: \"For an action that takes something away.\" },\n disabled: { type: \"boolean\" },\n expanded: { type: \"boolean\", description: \"For an action that opens a form below the bar: whether it is open.\" },\n },\n required: [\"id\", \"label\"],\n },\n },\n label: { type: \"string\", description: 'Names the bar for assistive technology. Defaults to \"With the selected rows\".' },\n pageSelected: { type: \"boolean\", description: \"Every row on this page is ticked.\" },\n total: { type: \"integer\", minimum: 0, description: \"How many rows match in all, across every page.\" },\n allMatching: { type: \"boolean\", description: \"Every row that matches is chosen, not only those ticked.\" },\n busy: { type: \"boolean\", description: \"An action is running: every button waits.\" },\n },\n required: [\"count\", \"actions\"],\n },\n parts: [{ prop: \"children\", label: \"Form below\", description: \"Drawn under the actions: a form an action opened, such as who to hand the rows to.\" }],\n callbacks: [\n { prop: \"onClear\", description: \"Untick everything.\" },\n { prop: \"onAllMatchingChange\", description: \"True when a person chooses every row that matches; false to go back to this page. Without it nothing is offered past the page.\" },\n ],\n example: {\n count: 50,\n total: 126,\n pageSelected: true,\n actions: [\n { id: \"turn-off\", label: \"Turn off\", danger: true },\n { id: \"turn-on\", label: \"Turn back on\" },\n { id: \"sign-out\", label: \"Sign out everywhere\" },\n ],\n },\n});\n\nexport const paginationDoc = describeAppComponent<PaginationProps>()({\n name: \"Pagination\",\n from: COMPONENTS,\n description:\n 'Which rows are shown, \"51–100 of 126\", with Previous and Next, under a `DataTable` a host pages on its server. It holds no page of its own: the host keeps `offset` and fetches the page `onChange` asks for. Nothing is drawn when every row fits on one page.',\n props: {\n type: \"object\",\n properties: {\n offset: { type: \"integer\", minimum: 0, description: \"Where this page starts, counting from 0.\" },\n pageSize: { type: \"integer\", minimum: 1, description: \"How many rows a page holds.\" },\n total: { type: \"integer\", minimum: 0, description: \"How many rows there are in all.\" },\n label: { type: \"string\", description: 'Names the navigation. Defaults to \"Pages\".' },\n busy: { type: \"boolean\", description: \"A page is being fetched.\" },\n },\n required: [\"offset\", \"pageSize\", \"total\"],\n },\n parts: [],\n callbacks: [{ prop: \"onChange\", description: \"The offset of the page a person moved to.\" }],\n example: { offset: 50, pageSize: 50, total: 126 },\n});\n\nexport const confirmDialogDoc = describeAppComponent<ConfirmDialogProps>()({\n name: \"ConfirmDialog\",\n from: COMPONENTS,\n description:\n 'Asks a person to confirm one action before it runs, as a modal dialog: the page behind cannot be used, focus starts inside (on Cancel for something that takes away) and returns where it was, and Escape or a press outside cancels. Name the button for the action (\"Turn off\"), never \"OK\", and say what cannot be undone. From an event handler, `useConfirm()` gives `confirm({ title, body, confirmLabel, danger })`, which resolves true or false. For something that can be undone, prefer doing it and offering Undo with `ActionReceipt`.',\n props: {\n type: \"object\",\n properties: {\n open: { type: \"boolean\", description: \"Whether the dialog is showing.\" },\n title: { type: \"string\", description: 'The question: \"Turn off 5 accounts?\"' },\n confirmLabel: { type: \"string\", description: 'The button that goes ahead, named for what it does. Defaults to \"Confirm\".' },\n cancelLabel: { type: \"string\", description: 'Defaults to \"Cancel\".' },\n danger: { type: \"boolean\", description: \"For something that takes away or cannot be undone.\" },\n },\n required: [\"open\", \"title\"],\n },\n parts: [{ prop: \"body\", label: \"What will happen\", description: \"A sentence or two on what the action does and what cannot be undone.\", on: true }],\n callbacks: [\n { prop: \"onConfirm\", description: \"The person went ahead.\" },\n { prop: \"onCancel\", description: \"Cancel, Escape, or a press outside the dialog.\" },\n ],\n example: { open: false, title: \"Turn off 5 accounts?\", confirmLabel: \"Turn off\", danger: true },\n});\n\nexport const statusBadgeDoc = describeAppComponent<StatusBadgeProps>()({\n name: \"StatusBadge\",\n from: COMPONENTS,\n description:\n \"A short status beside the thing it describes: an account on or turned off, a job running or failed, an invitation waiting. Its words carry the meaning; the tone backs them up with a colour and a shape (a ring, a dot, a diamond, a square), so it reads the same without colour. For data that is certified or deprecated use `CertificationBadge`.\",\n props: {\n type: \"object\",\n properties: {\n label: { type: \"string\", description: 'The status in a word or two: \"Turned off\".' },\n tone: { type: \"string\", enum: [\"neutral\", \"info\", \"success\", \"warning\", \"danger\"], description: \"How it should strike a person. Defaults to neutral.\" },\n description: { type: \"string\", description: 'A sentence more, shown on hover and read after the label: \"by Ana on 3 May\".' },\n },\n required: [\"label\"],\n },\n parts: [],\n callbacks: [],\n example: { label: \"Turned off\", tone: \"danger\", description: \"by Ana on 3 May\" },\n});\n\nexport const comboboxDoc = describeAppComponent<ComboboxProps>()({\n name: \"Combobox\",\n from: COMPONENTS,\n description:\n \"A text box that suggests as a person types: a person to hand work to, a table, a tag. Anything may be typed; a suggestion is a shortcut. The host searches (on its server, for a long list) and passes the matches back as `options`; the box filters nothing. The ARIA 1.2 combobox: Down and Up move through the suggestions with focus kept in the box, Enter chooses (and with none highlighted, leaves Enter to the form), Escape closes the list and then clears the box. How many suggestions there are is announced.\",\n props: {\n type: \"object\",\n properties: {\n label: { type: \"string\", description: \"The field's name, shown above it.\" },\n value: { type: \"string\", description: \"The text in the box.\" },\n options: {\n type: \"array\",\n description: \"The suggestions for the text as it is now, best first.\",\n items: {\n type: \"object\",\n properties: {\n value: { type: \"string\", description: \"What choosing it puts in the box: an email, an id.\" },\n label: { type: \"string\", description: \"The words shown for it: a name.\" },\n detail: { type: \"string\", description: \"A second line.\" },\n },\n required: [\"value\", \"label\"],\n },\n },\n loading: { type: \"boolean\", description: \"Suggestions are being fetched.\" },\n type: { type: \"string\", enum: [\"text\", \"email\", \"search\"], description: \"The input's type.\" },\n placeholder: { type: \"string\" },\n required: { type: \"boolean\" },\n disabled: { type: \"boolean\" },\n name: { type: \"string\", description: \"The input's name, when a form reads it.\" },\n help: { type: \"string\", description: \"A sentence under the field.\" },\n },\n required: [\"label\", \"value\", \"options\"],\n },\n parts: [],\n callbacks: [\n { prop: \"onChange\", description: \"Every change to the text, typed or chosen. Search with it.\" },\n { prop: \"onPick\", description: \"The suggestion a person chose.\" },\n ],\n example: {\n label: \"Hand their work to\",\n type: \"email\",\n value: \"\",\n placeholder: \"Their name or email\",\n options: [\n { value: \"ana@example.com\", label: \"Ana Admin\", detail: \"ana@example.com\" },\n { value: \"cleo@example.com\", label: \"Cleo Chen\", detail: \"cleo@example.com\" },\n ],\n },\n});\n\n/** Every app component of `@surfaces-ui/components`. */\nexport const popoverDoc = describeAppComponent<PopoverProps>()({\n name: \"Popover\",\n from: COMPONENTS,\n description:\n \"A button that opens a small panel of controls beneath it: a view's width, zoom and data state behind one View button on a crowded toolbar. The button carries its label and, optionally, a short summary of what is set now. The panel is a non-modal dialog opened by a disclosure button (`aria-expanded`, `aria-controls`): opening moves focus to its first control, Tab moves through it and on past it (which closes it), Escape closes it and puts focus back on the button, and a press or focus anywhere else closes it. It sits below the button, lined up with its start or end edge, moves along to stay inside the window and goes above the button only when there is no room below. It holds its own open state unless the host passes `open`. For a list of actions use `useContextMenu`; for a question that must be answered first, `ConfirmDialog`.\",\n props: {\n type: \"object\",\n properties: {\n label: { type: \"string\", description: 'What the button says, and the panel\\'s name for assistive technology: \"View\".' },\n summary: { type: \"string\", description: 'A few words after the label saying what is set now: \"Fit · 100% · Real data\". Part of the button\\'s name.' },\n align: { type: \"string\", enum: [\"start\", \"end\"], description: \"Line the panel up with the button's start edge (the default) or its end edge.\" },\n open: { type: \"boolean\", description: \"Open, when the host holds it. Leave out to let the popover hold it.\" },\n defaultOpen: { type: \"boolean\", description: \"Open at first, when the popover holds it. Being open when first drawn takes no focus from the page.\" },\n disabled: { type: \"boolean\" },\n },\n required: [\"label\"],\n },\n parts: [{ prop: \"children\", label: \"The panel's controls\", description: \"What the panel holds: selects, a `SegmentedControl`, check boxes. On the page: width, zoom and data state.\", required: true }],\n callbacks: [{ prop: \"onOpenChange\", description: \"Every change asked for: the button, Escape, a press or focus outside. Set `open` from it when the host holds it.\" }],\n example: { label: \"View\", summary: \"Fit · 100% · Real data\", align: \"end\" },\n});\n\nexport const componentsAppComponents: AppComponentDoc[] = [themePickerDoc, connectionBuilderDoc, modelLineageDoc, checksPanelDoc, objectInfoDoc, certificationBadgeDoc, itemControlsDoc, resizeHandleDoc, segmentedControlDoc, dataTableDoc, selectionBarDoc, paginationDoc, confirmDialogDoc, statusBadgeDoc, comboboxDoc, popoverDoc, navBarDoc];\n\n/** A component's reference page, as Markdown: what it is for, its props, the parts a host supplies and an example. */\nexport function appComponentMarkdown(doc: AppComponentDoc): string {\n const required = new Set(doc.props.required ?? []);\n const typeOf = (schema: PropSchema): string => (schema.enum ? schema.enum.map((v) => JSON.stringify(v)).join(\" | \") : schema.type === \"array\" ? `${schema.items ? typeOf(schema.items) : \"unknown\"}[]` : (schema.type ?? \"object\"));\n const cell = (text = \"\") => text.replace(/\\|/g, \"\\\\|\").replace(/\\n/g, \" \");\n const lines = [`# ${doc.name}`, \"\", `\\`import { ${doc.name} } from \"${doc.from}\";\\``, \"\", doc.description, \"\"];\n const props = Object.entries(doc.props.properties);\n if (props.length > 0) {\n lines.push(\"## Props\", \"\", \"| Prop | Type | Required | What it is |\", \"|---|---|---|---|\");\n for (const [name, schema] of props) lines.push(`| \\`${name}\\` | ${cell(typeOf(schema))} | ${required.has(name) ? \"yes\" : \"\"} | ${cell(schema.description)} |`);\n lines.push(\"\");\n }\n if (doc.parts.length > 0) {\n lines.push(\"## Parts the host supplies\", \"\", \"Props that take code. Each is optional unless marked; the component leaves out what it needs it for.\", \"\");\n for (const part of doc.parts) lines.push(`- \\`${part.prop}\\`${part.required ? \" (required)\" : \"\"}: **${part.label}.** ${part.description}`);\n lines.push(\"\");\n }\n if (doc.callbacks.length > 0) {\n lines.push(\"## Callbacks\", \"\");\n for (const callback of doc.callbacks) lines.push(`- \\`${callback.prop}\\`: ${callback.description}`);\n lines.push(\"\");\n }\n lines.push(\"## Example\", \"\", \"```tsx\", appComponentCode(doc, doc.example, doc.parts.filter((p) => p.required || p.on).map((p) => p.prop)), \"```\", \"\");\n return lines.join(\"\\n\");\n}\n\n/** The JSX for a component with these plain props and these parts switched on: what a page shows as its code. */\nexport function appComponentCode(doc: AppComponentDoc, props: Record<string, unknown>, parts: string[]): string {\n const attribute = (name: string, value: unknown) =>\n value === true ? name : typeof value === \"string\" ? `${name}=${JSON.stringify(value)}` : `${name}={${JSON.stringify(value)}}`;\n const attributes = [\n ...Object.entries(props)\n .filter(([, value]) => value !== undefined && value !== false && !(Array.isArray(value) && value.length === 0))\n .map(([name, value]) => attribute(name, value)),\n ...doc.parts.filter((part) => parts.includes(part.prop)).map((part) => `${part.prop}={${part.prop}}`),\n ...doc.callbacks.map((callback) => `${callback.prop}={…}`),\n ];\n const oneLine = `<${doc.name} ${attributes.join(\" \")} />`;\n return oneLine.length <= 100 ? oneLine : [`<${doc.name}`, ...attributes.map((a) => ` ${a}`), \"/>\"].join(\"\\n\");\n}\n"]}
1
+ {"version":3,"file":"appComponents.js","sourceRoot":"","sources":["../src/appComponents.ts"],"names":[],"mappings":"AA6EA,6GAA6G;AAC7G,MAAM,UAAU,oBAAoB;IAClC,OAAO,CAAC,GASP,EAAmB,EAAE,CAAC,GAAsB,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,GAAG,yBAAyB,CAAC;AAC7C,MAAM,WAAW,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAU,CAAC;AAElG,MAAM,CAAC,MAAM,cAAc,GAAG,oBAAoB,EAAoB,CAAC;IACrE,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,UAAU;IAChB,WAAW,EACT,wQAAwQ;IAC1Q,KAAK,EAAE;QACL,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,wBAAwB,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE;SAC7G;KACF;IACD,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,uEAAuE,EAAE,CAAC;IAC7I,SAAS,EAAE,EAAE;IACb,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;CACtB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,oBAAoB,EAA0B,CAAC;IACjF,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,UAAU;IAChB,WAAW,EACT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AAI,CAAC,IAAI,GAAG,CAAC;QACrG,GAAG,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,GAAG,QAAQ,CAAC,IAAI,MAAM,CAAC;KAC3D,CAAC;IACF,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,IAAI,IAAI,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;IAC1D,OAAO,OAAO,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,IAAI,EAAE,EAAE,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACjH,CAAC","sourcesContent":["import type { CertificationBadge } from \"./discovery/shared.js\";\nimport type { ConnectionBuilderProps } from \"./source/ConnectionBuilder.js\";\nimport type { ItemControlsProps } from \"./controls/ItemControls.js\";\nimport type { ResizeHandleProps } from \"./controls/ResizeHandle.js\";\nimport type { SegmentedControlProps } from \"./controls/SegmentedControl.js\";\nimport type { ComboboxProps } from \"./controls/Combobox.js\";\nimport type { ConfirmDialogProps } from \"./controls/ConfirmDialog.js\";\nimport type { PopoverProps } from \"./controls/Popover.js\";\nimport type { MovingMarkProps } from \"./brand/MovingMark.js\";\nimport type { ErrorPageProps } from \"./feedback/ErrorPage.js\";\nimport type { DraftCardProps } from \"./loading/DraftCard.js\";\nimport type { ChartLoaderProps, LoadingProps, WorkingLineProps } from \"./loading/Loading.js\";\nimport type { StatusBadgeProps } from \"./controls/StatusBadge.js\";\nimport type { DataTableProps } from \"./table/DataTable.js\";\nimport type { PaginationProps } from \"./table/Pagination.js\";\nimport type { SelectionBarProps } from \"./table/SelectionBar.js\";\nimport type { ModelLineageProps } from \"./explore/ModelLineage.js\";\nimport type { ObjectInfoProps } from \"./schema/ObjectInfo.js\";\nimport type { ChecksPanelProps } from \"./pipeline/Pipeline.js\";\nimport type { ThemePickerProps } from \"./theme/ThemePicker.js\";\nimport type { NavBarProps } from \"./workspace/NavBar.js\";\n\n/*\n * Components an app places itself, as opposed to the catalog's, which an\n * agent draws. Each is described once here, as data: what it is for, its\n * props that are plain data (as JSON Schema), the props that take code (a\n * backend, a store, a callback the host must write) and an example. The\n * playground draws a page for each from this, and `pnpm docs:gen` writes\n * docs/components. `describeAppComponent<Props>()` checks every prop named\n * here against the component's own props type, so neither can name a prop\n * the component does not have.\n *\n * Nothing here imports React or a component, so a script can read it.\n */\n\n/** One prop that is plain data, as JSON Schema. */\nexport interface PropSchema {\n type?: \"string\" | \"number\" | \"integer\" | \"boolean\" | \"object\" | \"array\";\n description?: string;\n enum?: readonly unknown[];\n items?: PropSchema;\n properties?: Record<string, PropSchema>;\n required?: string[];\n minimum?: number;\n maximum?: number;\n default?: unknown;\n}\n\n/** A prop that takes code the host writes: switched on or off on the component's page, where the playground fills it with a working demo. */\nexport interface AppComponentPart {\n prop: string;\n label: string;\n description: string;\n /** Required by the component, so always on. */\n required?: boolean;\n /** On when the page opens. */\n on?: boolean;\n}\n\nexport interface AppComponentDoc {\n name: string;\n /** The package it is imported from. */\n from: string;\n /** The heading it is listed under. \"App components\" when it has none. */\n group?: string;\n description: string;\n /** Its props that are plain data. */\n props: { type: \"object\"; properties: Record<string, PropSchema>; required?: string[] };\n parts: AppComponentPart[];\n /** Callbacks a host passes to hear what happens. */\n callbacks: { prop: string; description: string }[];\n /** Plain-data props to start from. */\n example: Record<string, unknown>;\n}\n\ntype Keys<P> = Extract<keyof P, string>;\n\n/** Checks a description against the component's props type `P`: every prop it names must be one of `P`'s. */\nexport function describeAppComponent<P>() {\n return (doc: {\n name: string;\n from: string;\n group?: string;\n description: string;\n props: { type: \"object\"; properties: Partial<Record<Keys<P>, PropSchema>>; required?: Keys<P>[] };\n parts: (AppComponentPart & { prop: Keys<P> })[];\n callbacks: { prop: Keys<P>; description: string }[];\n example: Partial<Record<Keys<P>, unknown>>;\n }): AppComponentDoc => doc as AppComponentDoc;\n}\n\nconst COMPONENTS = \"@surfaces-ui/components\";\nconst PRESET_HIDE = [\"mode\", \"presets\", \"accent\", \"charts\", \"radius\", \"font\", \"density\"] as const;\n\nexport const themePickerDoc = describeAppComponent<ThemePickerProps>()({\n name: \"ThemePicker\",\n from: COMPONENTS,\n description:\n \"Lets a person choose how everything looks: a preset, light or dark, the accent, chart colours, corner radius, font and density. It changes the theme held by the `ThemeProvider` above it, which keeps the choice. Hide the controls a product does not want to offer.\",\n props: {\n type: \"object\",\n properties: {\n hide: { type: \"array\", description: \"Controls to leave out.\", items: { type: \"string\", enum: PRESET_HIDE } },\n },\n },\n parts: [{ prop: \"presets\", label: \"Your own presets\", description: \"Themes offered as one-click choices in place of the built-in presets.\" }],\n callbacks: [],\n example: { hide: [] },\n});\n\nexport const connectionBuilderDoc = describeAppComponent<ConnectionBuilderProps>()({\n name: \"ConnectionBuilder\",\n from: COMPONENTS,\n description:\n \"Sets up Parquet, Delta or Iceberg data on S3, GCS, Azure, https or disk, and writes the configuration for the server with the names of the environment variables to set. It holds the name of a secret, never a credential.\",\n props: {\n type: \"object\",\n properties: {\n value: {\n type: \"object\",\n description: \"The connection being set up.\",\n properties: {\n sourceId: { type: \"string\", description: \"The source's id.\" },\n storage: { type: \"string\", enum: [\"s3\", \"gcs\", \"azure\", \"http\", \"local\"], description: \"Where the files are.\" },\n scope: { type: \"string\", description: \"The bucket or prefix the connection covers, e.g. s3://acme-lake/sales.\" },\n credentials: { type: \"string\", enum: [\"secret\", \"ambient\", \"public\"], description: \"A named secret, the machine's own role, or public data with none.\" },\n secret: { type: \"string\", description: \"The name of the server-side secret, e.g. LAKE.\" },\n region: { type: \"string\" },\n endpoint: { type: \"string\", description: \"For S3-compatible stores such as MinIO.\" },\n },\n },\n },\n required: [\"value\"],\n },\n parts: [],\n callbacks: [{ prop: \"onChange\", description: \"Every change to the connection, as the whole draft. Required: the host holds the draft.\" }],\n example: { value: { sourceId: \"lake\", storage: \"s3\", scope: \"s3://acme-lake/sales\", credentials: \"secret\", secret: \"LAKE\", region: \"eu-west-1\", endpoint: \"\", tables: [{ name: \"orders\", format: \"delta\", path: \"s3://acme-lake/sales/orders\" }], catalogUri: \"\", catalogWarehouse: \"\" } },\n});\n\nexport const modelLineageDoc = describeAppComponent<ModelLineageProps>()({\n name: \"ModelLineage\",\n from: COMPONENTS,\n description:\n \"Where a semantic model's rows come from when a pipeline builds them: the dataset, when it was last built, the latest run's checks, whether its key was checked and what it reads. One line over an explorer or a report, or a panel. Display only: it queries nothing.\",\n props: {\n type: \"object\",\n properties: {\n model: {\n type: \"object\",\n description: \"A model whose rows are a pipeline's dataset (`dataset`); anything else draws nothing.\",\n properties: {\n sourceId: { type: \"string\" },\n sql: { type: \"string\" },\n grain: { type: \"string\" },\n primaryKey: { type: \"array\", items: { type: \"string\" } },\n dataset: { type: \"object\", properties: { pipelineId: { type: \"string\" }, dataset: { type: \"string\" } } },\n },\n },\n compact: { type: \"boolean\", description: \"One line, for above an explorer or a report.\" },\n },\n required: [\"model\"],\n },\n parts: [{ prop: \"pipelines\", label: \"Pipelines backend\", description: \"Where the dataset's definition and runs come from. Without it (or a PipelinesProvider) only the dataset's name is shown.\", on: true }],\n callbacks: [\n { prop: \"onUseDataset\", description: \"Offered when the model's grain or key differs from the dataset's.\" },\n { prop: \"onOpenDataset\", description: \"Opens the dataset in the host's pipeline view.\" },\n ],\n example: { compact: false },\n});\n\nexport const checksPanelDoc = describeAppComponent<ChecksPanelProps>()({\n name: \"ChecksPanel\",\n from: COMPONENTS,\n description: \"A dataset's checks (unique, not null, relationships, accepted values, row count) with their latest results, failures first. Display only: the counts come from the engine.\",\n props: {\n type: \"object\",\n properties: {\n checks: {\n type: \"array\",\n description: \"Each check with its latest outcome.\",\n items: { type: \"object\", properties: { name: { type: \"string\" }, description: { type: \"string\", description: \"The check in words.\" }, severity: { type: \"string\", enum: [\"fail\", \"warn\"] }, failedRecords: { type: \"integer\", description: \"Rows that break it; absent when not run since it was added.\" }, summary: { type: \"string\" } }, required: [\"name\", \"description\", \"severity\"] },\n },\n },\n required: [\"checks\"],\n },\n parts: [],\n callbacks: [{ prop: \"onOpenFailing\", description: \"Look at what breaks a check. Nothing runs unless the host runs it.\" }],\n example: {\n checks: [\n { name: \"order_id_unique\", description: \"order_id never repeats\", severity: \"fail\", failedRecords: 0, fromKey: true },\n { name: \"status_values\", description: \"status is one of placed, shipped, returned\", severity: \"warn\", failedRecords: 12, summary: \"12 rows have another status.\" },\n ],\n },\n});\n\nexport const objectInfoDoc = describeAppComponent<ObjectInfoProps>()({\n name: \"ObjectInfo\",\n from: COMPONENTS,\n description: \"What the backend knows about a database, schema or table: its kind, format, size, columns and keys. Names only, never values.\",\n props: {\n type: \"object\",\n properties: {\n sourceId: { type: \"string\", description: \"The source to ask.\" },\n catalog: { type: \"string\", description: \"A catalog (database).\" },\n schema: { type: \"string\" },\n table: { type: \"string\", description: \"With a table, it describes the table; without, the schema or catalog.\" },\n },\n required: [\"sourceId\"],\n },\n parts: [{ prop: \"dataSource\", label: \"Its own data source\", description: \"Left out, the one from `DataSourceProvider`.\" }],\n callbacks: [{ prop: \"onClose\", description: \"Shows a close button.\" }],\n example: {},\n});\n\nexport const certificationBadgeDoc = describeAppComponent<Parameters<typeof CertificationBadge>[0]>()({\n name: \"CertificationBadge\",\n from: COMPONENTS,\n description: \"Marks certified or deprecated data wherever an object is shown, with a symbol and words as well as colour. Who certified it, when and why show on hover and focus.\",\n props: {\n type: \"object\",\n properties: {\n certification: {\n type: \"object\",\n description: \"The verdict a person recorded with `setCertification`; none draws nothing.\",\n properties: {\n status: { type: \"integer\", enum: [1, 2], description: \"1 certified, 2 deprecated.\" },\n setBy: { type: \"string\" },\n setAt: { type: \"string\" },\n note: { type: \"string\" },\n },\n },\n },\n },\n parts: [],\n callbacks: [],\n example: { certification: { status: 1, setBy: \"Ada Lovelace\", setAt: \"2026-11-01T10:00:00Z\", note: \"Reconciled with finance.\" } },\n});\n\nexport const itemControlsDoc = describeAppComponent<ItemControlsProps>()({\n name: \"ItemControls\",\n from: COMPONENTS,\n description:\n \"The controls of one item (a tile, a framed component) as a row of icons: quiet until the item is pointed at or focused, each named at once in a tooltip, one tab stop with arrows between them. Build the shared actions with `standardControls(name, actions)` so their order, wording and icons are the same everywhere.\",\n props: {\n type: \"object\",\n properties: {\n label: { type: \"string\", description: 'Names the group: \"Refund rate by category controls\".' },\n show: { type: \"string\", enum: [\"hover\", \"always\"], description: \"Shown on hover and focus (and always on touch), or always.\" },\n quietable: { type: \"boolean\", description: \"Whether an outer layer of controls can hide these.\" },\n },\n required: [\"label\"],\n },\n parts: [{ prop: \"controls\", label: \"Controls\", description: \"The actions, from `standardControls`. On the page: change, wider, narrower, earlier, later, duplicate and remove.\", required: true }],\n callbacks: [],\n example: { label: \"Revenue by month controls\", show: \"always\" },\n});\n\nexport const navBarDoc = describeAppComponent<NavBarProps>()({\n name: \"NavBar\",\n from: COMPONENTS,\n description:\n \"Navigation across the top of a site, after Apple's: the sections on a glass bar that stays at the top, and beneath it the current section's name and its pages. Content scrolls under both and an edge appears once it does. On a narrow screen the sections fold into a menu that covers the screen as a dialog. It takes the same groups as `SideNav`, so a site can move between the two.\",\n props: {\n type: \"object\",\n properties: {\n label: { type: \"string\", description: 'What the navigation is for, for assistive technology: \"Surfaces UI\".' },\n groups: {\n type: \"array\",\n description: \"The sections, each with its pages. A section goes to its first page.\",\n items: {\n type: \"object\",\n properties: {\n label: { type: \"string\", description: \"The section's name in the bar.\" },\n items: { type: \"array\", items: { type: \"object\", properties: { id: { type: \"string\" }, label: { type: \"string\" }, href: { type: \"string\" } }, required: [\"id\", \"label\"] } },\n },\n required: [\"items\"],\n },\n },\n current: { type: \"string\", description: \"The id of the page being shown.\" },\n },\n required: [\"label\", \"groups\"],\n },\n parts: [\n { prop: \"brand\", label: \"Brand\", description: \"A name or mark at the bar's start.\", on: true },\n { prop: \"actions\", label: \"Actions\", description: \"A status or a picker at the bar's end; it moves into the menu on a narrow screen.\" },\n ],\n callbacks: [{ prop: \"onSelect\", description: \"The id of the page a person chose.\" }],\n example: {\n label: \"Acme analytics\",\n current: \"revenue\",\n groups: [\n { label: \"Reports\", items: [{ id: \"revenue\", label: \"Revenue\" }, { id: \"refunds\", label: \"Refunds\" }, { id: \"stores\", label: \"Stores\" }] },\n { label: \"Data\", items: [{ id: \"tables\", label: \"Tables\" }, { id: \"models\", label: \"Models\" }] },\n { label: \"Settings\", items: [{ id: \"people\", label: \"People\" }] },\n ],\n },\n});\n\nexport const resizeHandleDoc = describeAppComponent<ResizeHandleProps>()({\n name: \"ResizeHandle\",\n from: COMPONENTS,\n description:\n \"A handle on the right or bottom edge of something, dragged to change its width or height: the same handle Arrange draws between a Grid's columns and under a component, for an app to place between two panes of its own. A focusable separator that says its value and bounds; dragged with pointer events, so a mouse, a pen and a finger all work; moved by the arrow keys (Shift for bigger steps), Home and End; put back by Enter or a double click. It holds no size of its own: the host keeps `value`, draws each change from `onChange` and keeps the size on `onChangeEnd`. Its parent must be positioned, since it sits on that parent's edge.\",\n props: {\n type: \"object\",\n properties: {\n edge: { type: \"string\", enum: [\"right\", \"bottom\"], description: '\"right\" sizes a width, dragged left and right; \"bottom\" a height, dragged up and down.' },\n value: { type: \"number\", description: \"The size it stands for, in any unit: pixels, a share, a percentage. Left out when no size is set yet.\" },\n min: { type: \"number\", description: \"The least it can be.\" },\n max: { type: \"number\", description: \"The most it can be.\" },\n snap: { type: \"number\", description: \"Values land on multiples of this (10 rounds to ten pixels).\" },\n step: { type: \"number\", description: \"How far an arrow key moves it; Shift moves five steps. A twentieth of the range by default.\" },\n unitPixels: { type: \"number\", description: \"How many pixels on screen one unit is: 1 for pixels, a pane's width for a share of it. A function of the handle is read when a drag starts.\" },\n label: { type: \"string\", description: 'What it resizes, for assistive technology: \"Resize the map and the list\".' },\n valueText: { type: \"string\", description: 'The value in words, when a number alone does not say it: \"40% and 60%\".' },\n always: { type: \"boolean\", description: \"Shown all the time, rather than when its parent is pointed at or it has focus (it always shows on touch).\" },\n },\n required: [\"edge\", \"label\"],\n },\n parts: [\n { prop: \"onReset\", label: \"Reset\", description: \"Enter or a double click puts the size back. On the page: back to half and half.\", on: true },\n { prop: \"startFrom\", label: \"Start from what is drawn\", description: \"Where a drag starts when no `value` is set, such as the height drawn now.\" },\n ],\n callbacks: [\n { prop: \"onChange\", description: \"Each new value while it is dragged, and after each key.\" },\n { prop: \"onChangeEnd\", description: \"When a drag ends (committed, or cancelled by Escape back where it started) and after each key: where to keep the size.\" },\n ],\n example: { edge: \"right\", value: 0.5, min: 0.25, max: 0.75, step: 0.05, label: \"Resize the map and the list\", valueText: \"50% and 50%\" },\n});\n\nexport const segmentedControlDoc = describeAppComponent<SegmentedControlProps>()({\n name: \"SegmentedControl\",\n from: COMPONENTS,\n description:\n \"A few equal choices of which exactly one holds, as one bar: build or view, chart or table, light or dark. It is the bar `ReportBuilder` switches modes with. A radio group, so it is one tab stop and the arrow keys move the choice; the chosen segment is one thumb that slides between the options. It holds no choice of its own: the host keeps `value` and sets it from `onChange`. Use it to switch what is shown in place, for two to eight short options; for actions use buttons, and for many or long options a select.\",\n props: {\n type: \"object\",\n properties: {\n label: { type: \"string\", description: 'What is being chosen, for assistive technology: \"Mode\", \"Preview mode\".' },\n options: {\n type: \"array\",\n description: \"The choices, in order. They share the width equally.\",\n items: {\n type: \"object\",\n properties: {\n value: { type: \"string\", description: \"What `onChange` reports.\" },\n label: { type: \"string\", description: \"The words on the segment.\" },\n disabled: { type: \"boolean\", description: \"Greyed and still reachable, for a choice that makes no sense right now.\" },\n },\n required: [\"value\", \"label\"],\n },\n },\n value: { type: \"string\", description: \"The chosen option's value.\" },\n fit: { type: \"string\", enum: [\"content\", \"fill\"], description: '\"content\" is as wide as its options need; \"fill\" takes its parent\\'s width.' },\n name: { type: \"string\", description: \"The radio group's name, when a form reads it. Made up otherwise.\" },\n },\n required: [\"label\", \"options\", \"value\"],\n },\n parts: [],\n callbacks: [{ prop: \"onChange\", description: \"The value of the option a person chose.\" }],\n example: {\n label: \"Preview mode\",\n value: \"page\",\n fit: \"content\",\n options: [\n { value: \"page\", label: \"As the page\" },\n { value: \"light\", label: \"Light\" },\n { value: \"dark\", label: \"Dark\" },\n ],\n },\n});\n\nconst PEOPLE_EXAMPLE = [\n { id: \"u1\", name: \"Ana Admin\", email: \"ana@example.com\", status: \"On\", owns: 4, signedIn: \"Today\" },\n { id: \"u2\", name: \"Ben Brook\", email: \"ben@example.com\", status: \"Turned off\", owns: 0, signedIn: \"3 May\" },\n { id: \"u3\", name: \"Cleo Chen\", email: \"cleo@example.com\", status: \"On\", owns: 12, signedIn: \"Yesterday\" },\n { id: \"u4\", name: \"Dev Diaz\", email: \"dev@example.com\", status: \"On\", owns: 1, signedIn: \"Never\" },\n];\n\nexport const dataTableDoc = describeAppComponent<DataTableProps<Record<string, unknown>>>()({\n name: \"DataTable\",\n from: COMPONENTS,\n description:\n \"The rows an app holds, as a table: people, invitations, jobs, keys. Headings ask the host to sort; check boxes say which rows are chosen (with `SelectionBar` for what to do with them); each row can carry its everyday actions as `ItemControls` and a menu on a right click. It sorts, filters and pages nothing itself: the host asks its own server and hands over one page, with `Pagination` beneath. Columns marked `medium` or `wide` give way as the table, not the window, narrows. For the rows of a query use `DataGrid`, which asks the engine.\",\n props: {\n type: \"object\",\n properties: {\n label: { type: \"string\", description: 'What the rows are, for assistive technology: \"People\".' },\n columns: {\n type: \"array\",\n description: \"The columns, in order. A column's `cell` function draws it; without one the row's value under `id` is shown as text.\",\n items: {\n type: \"object\",\n properties: {\n id: { type: \"string\", description: \"Tells columns apart, and names the sort the table reports.\" },\n label: { type: \"string\", description: \"The heading.\" },\n sortable: { type: \"boolean\", description: \"Whether a press on the heading asks the host to sort by it.\" },\n align: { type: \"string\", enum: [\"start\", \"end\"], description: '\"end\" for numbers.' },\n show: { type: \"string\", enum: [\"always\", \"medium\", \"wide\"], description: \"From what width of the table the column is shown: always, 36rem, or 52rem.\" },\n },\n required: [\"id\", \"label\"],\n },\n },\n rows: { type: \"array\", description: \"One page of rows, already sorted and filtered by the host, shown in the order given.\", items: { type: \"object\" } },\n rowHeader: { type: \"string\", description: \"The column that names each row, drawn as its header. Defaults to the first.\" },\n sort: {\n type: \"object\",\n description: \"How the host has sorted the rows.\",\n properties: { column: { type: \"string\" }, desc: { type: \"boolean\" } },\n required: [\"column\", \"desc\"],\n },\n allSelected: { type: \"boolean\", description: \"Every row that matches is chosen, past this page too (see `SelectionBar`).\" },\n controlsShow: { type: \"string\", enum: [\"always\", \"hover\"], description: \"Whether a row's controls are always shown (the default) or on hover and focus.\" },\n loading: { type: \"boolean\", description: \"The rows are being fetched.\" },\n },\n required: [\"label\", \"columns\", \"rows\"],\n },\n parts: [\n { prop: \"rowKey\", label: \"Row key\", description: \"A function giving each row a value that tells it apart: an id.\", required: true },\n { prop: \"rowName\", label: \"Row name\", description: 'A function giving the row\\'s name, for its check box and controls: \"Select Ana Admin\". Defaults to the first column\\'s text.' },\n { prop: \"selected\", label: \"Selection\", description: \"The keys of the rows ticked, with `onSelectedChange`: adds a check box to each row and the heading.\", on: true },\n { prop: \"selectable\", label: \"Who can be chosen\", description: \"A function saying whether a row can be ticked: one that cannot shows no box.\" },\n { prop: \"rowControls\", label: \"Row controls\", description: \"A function giving a row's everyday actions, drawn with `ItemControls`.\", on: true },\n { prop: \"rowMenu\", label: \"Row menu\", description: \"A function giving a row's menu, opened by a right click, a long press or the Menu key.\" },\n { prop: \"rowState\", label: \"Row state\", description: 'A function giving a word put on the row as `data-state` for the host\\'s own styling: \"off\".' },\n { prop: \"empty\", label: \"When empty\", description: \"What to show in place of rows when there are none.\" },\n ],\n callbacks: [\n { prop: \"onSortChange\", description: \"The column and direction a person asked to sort by. Fetch the rows in that order and pass them back.\" },\n { prop: \"onSelectedChange\", description: \"The keys now ticked.\" },\n ],\n example: {\n label: \"People\",\n rowHeader: \"name\",\n sort: { column: \"name\", desc: false },\n columns: [\n { id: \"name\", label: \"Name\", sortable: true },\n { id: \"email\", label: \"Email\", sortable: true, show: \"medium\" },\n { id: \"status\", label: \"Status\" },\n { id: \"signedIn\", label: \"Last signed in\", show: \"wide\" },\n { id: \"owns\", label: \"Owns\", sortable: true, align: \"end\", show: \"wide\" },\n ],\n rows: PEOPLE_EXAMPLE,\n },\n});\n\nexport const selectionBarDoc = describeAppComponent<SelectionBarProps>()({\n name: \"SelectionBar\",\n from: COMPONENTS,\n description:\n \"What to do with the rows a person chose in a `DataTable`: how many, the actions, and Clear. When the whole page is ticked and more rows match, it offers to take every row that matches, so an action can reach rows on pages never opened; the host then acts on its search and filters, not on a list of keys. An action that takes something away comes last, after a gap. It runs nothing itself: ask first for anything hard to undo with `useConfirm`, and report what happened, and whom it left alone, with `ActionReceipt`. Nothing is drawn with nothing chosen.\",\n props: {\n type: \"object\",\n properties: {\n count: { type: \"integer\", minimum: 0, description: \"How many rows are chosen: those ticked, or all that match when `allMatching`.\" },\n actions: {\n type: \"array\",\n description: \"What can be done to them, in order; one with `danger` is moved last.\",\n items: {\n type: \"object\",\n properties: {\n id: { type: \"string\" },\n label: { type: \"string\", description: 'The button\\'s words: \"Turn off\".' },\n danger: { type: \"boolean\", description: \"For an action that takes something away.\" },\n disabled: { type: \"boolean\" },\n expanded: { type: \"boolean\", description: \"For an action that opens a form below the bar: whether it is open.\" },\n },\n required: [\"id\", \"label\"],\n },\n },\n label: { type: \"string\", description: 'Names the bar for assistive technology. Defaults to \"With the selected rows\".' },\n pageSelected: { type: \"boolean\", description: \"Every row on this page is ticked.\" },\n total: { type: \"integer\", minimum: 0, description: \"How many rows match in all, across every page.\" },\n allMatching: { type: \"boolean\", description: \"Every row that matches is chosen, not only those ticked.\" },\n busy: { type: \"boolean\", description: \"An action is running: every button waits.\" },\n },\n required: [\"count\", \"actions\"],\n },\n parts: [{ prop: \"children\", label: \"Form below\", description: \"Drawn under the actions: a form an action opened, such as who to hand the rows to.\" }],\n callbacks: [\n { prop: \"onClear\", description: \"Untick everything.\" },\n { prop: \"onAllMatchingChange\", description: \"True when a person chooses every row that matches; false to go back to this page. Without it nothing is offered past the page.\" },\n ],\n example: {\n count: 50,\n total: 126,\n pageSelected: true,\n actions: [\n { id: \"turn-off\", label: \"Turn off\", danger: true },\n { id: \"turn-on\", label: \"Turn back on\" },\n { id: \"sign-out\", label: \"Sign out everywhere\" },\n ],\n },\n});\n\nexport const paginationDoc = describeAppComponent<PaginationProps>()({\n name: \"Pagination\",\n from: COMPONENTS,\n description:\n 'Which rows are shown, \"51–100 of 126\", with Previous and Next, under a `DataTable` a host pages on its server. It holds no page of its own: the host keeps `offset` and fetches the page `onChange` asks for. Nothing is drawn when every row fits on one page.',\n props: {\n type: \"object\",\n properties: {\n offset: { type: \"integer\", minimum: 0, description: \"Where this page starts, counting from 0.\" },\n pageSize: { type: \"integer\", minimum: 1, description: \"How many rows a page holds.\" },\n total: { type: \"integer\", minimum: 0, description: \"How many rows there are in all.\" },\n label: { type: \"string\", description: 'Names the navigation. Defaults to \"Pages\".' },\n busy: { type: \"boolean\", description: \"A page is being fetched.\" },\n },\n required: [\"offset\", \"pageSize\", \"total\"],\n },\n parts: [],\n callbacks: [{ prop: \"onChange\", description: \"The offset of the page a person moved to.\" }],\n example: { offset: 50, pageSize: 50, total: 126 },\n});\n\nexport const confirmDialogDoc = describeAppComponent<ConfirmDialogProps>()({\n name: \"ConfirmDialog\",\n from: COMPONENTS,\n description:\n 'Asks a person to confirm one action before it runs, as a modal dialog: the page behind cannot be used, focus starts inside (on Cancel for something that takes away) and returns where it was, and Escape or a press outside cancels. Name the button for the action (\"Turn off\"), never \"OK\", and say what cannot be undone. From an event handler, `useConfirm()` gives `confirm({ title, body, confirmLabel, danger })`, which resolves true or false. For something that can be undone, prefer doing it and offering Undo with `ActionReceipt`.',\n props: {\n type: \"object\",\n properties: {\n open: { type: \"boolean\", description: \"Whether the dialog is showing.\" },\n title: { type: \"string\", description: 'The question: \"Turn off 5 accounts?\"' },\n confirmLabel: { type: \"string\", description: 'The button that goes ahead, named for what it does. Defaults to \"Confirm\".' },\n cancelLabel: { type: \"string\", description: 'Defaults to \"Cancel\".' },\n danger: { type: \"boolean\", description: \"For something that takes away or cannot be undone.\" },\n },\n required: [\"open\", \"title\"],\n },\n parts: [{ prop: \"body\", label: \"What will happen\", description: \"A sentence or two on what the action does and what cannot be undone.\", on: true }],\n callbacks: [\n { prop: \"onConfirm\", description: \"The person went ahead.\" },\n { prop: \"onCancel\", description: \"Cancel, Escape, or a press outside the dialog.\" },\n ],\n example: { open: false, title: \"Turn off 5 accounts?\", confirmLabel: \"Turn off\", danger: true },\n});\n\nexport const statusBadgeDoc = describeAppComponent<StatusBadgeProps>()({\n name: \"StatusBadge\",\n from: COMPONENTS,\n description:\n \"A short status beside the thing it describes: an account on or turned off, a job running or failed, an invitation waiting. Its words carry the meaning; the tone backs them up with a colour and a shape (a ring, a dot, a diamond, a square), so it reads the same without colour. For data that is certified or deprecated use `CertificationBadge`.\",\n props: {\n type: \"object\",\n properties: {\n label: { type: \"string\", description: 'The status in a word or two: \"Turned off\".' },\n tone: { type: \"string\", enum: [\"neutral\", \"info\", \"success\", \"warning\", \"danger\"], description: \"How it should strike a person. Defaults to neutral.\" },\n description: { type: \"string\", description: 'A sentence more, shown on hover and read after the label: \"by Ana on 3 May\".' },\n },\n required: [\"label\"],\n },\n parts: [],\n callbacks: [],\n example: { label: \"Turned off\", tone: \"danger\", description: \"by Ana on 3 May\" },\n});\n\nexport const comboboxDoc = describeAppComponent<ComboboxProps>()({\n name: \"Combobox\",\n from: COMPONENTS,\n description:\n \"A text box that suggests as a person types: a person to hand work to, a table, a tag. Anything may be typed; a suggestion is a shortcut. The host searches (on its server, for a long list) and passes the matches back as `options`; the box filters nothing. The ARIA 1.2 combobox: Down and Up move through the suggestions with focus kept in the box, Enter chooses (and with none highlighted, leaves Enter to the form), Escape closes the list and then clears the box. How many suggestions there are is announced.\",\n props: {\n type: \"object\",\n properties: {\n label: { type: \"string\", description: \"The field's name, shown above it.\" },\n value: { type: \"string\", description: \"The text in the box.\" },\n options: {\n type: \"array\",\n description: \"The suggestions for the text as it is now, best first.\",\n items: {\n type: \"object\",\n properties: {\n value: { type: \"string\", description: \"What choosing it puts in the box: an email, an id.\" },\n label: { type: \"string\", description: \"The words shown for it: a name.\" },\n detail: { type: \"string\", description: \"A second line.\" },\n },\n required: [\"value\", \"label\"],\n },\n },\n loading: { type: \"boolean\", description: \"Suggestions are being fetched.\" },\n type: { type: \"string\", enum: [\"text\", \"email\", \"search\"], description: \"The input's type.\" },\n placeholder: { type: \"string\" },\n required: { type: \"boolean\" },\n disabled: { type: \"boolean\" },\n name: { type: \"string\", description: \"The input's name, when a form reads it.\" },\n help: { type: \"string\", description: \"A sentence under the field.\" },\n },\n required: [\"label\", \"value\", \"options\"],\n },\n parts: [],\n callbacks: [\n { prop: \"onChange\", description: \"Every change to the text, typed or chosen. Search with it.\" },\n { prop: \"onPick\", description: \"The suggestion a person chose.\" },\n ],\n example: {\n label: \"Hand their work to\",\n type: \"email\",\n value: \"\",\n placeholder: \"Their name or email\",\n options: [\n { value: \"ana@example.com\", label: \"Ana Admin\", detail: \"ana@example.com\" },\n { value: \"cleo@example.com\", label: \"Cleo Chen\", detail: \"cleo@example.com\" },\n ],\n },\n});\n\n/** Every app component of `@surfaces-ui/components`. */\nexport const popoverDoc = describeAppComponent<PopoverProps>()({\n name: \"Popover\",\n from: COMPONENTS,\n description:\n \"A button that opens a small panel of controls beneath it: a view's width, zoom and data state behind one View button on a crowded toolbar. The button carries its label and, optionally, a short summary of what is set now. The panel is a non-modal dialog opened by a disclosure button (`aria-expanded`, `aria-controls`): opening moves focus to its first control, Tab moves through it and on past it (which closes it), Escape closes it and puts focus back on the button, and a press or focus anywhere else closes it. It sits below the button, lined up with its start or end edge, moves along to stay inside the window and goes above the button only when there is no room below. It holds its own open state unless the host passes `open`. For a list of actions use `useContextMenu`; for a question that must be answered first, `ConfirmDialog`.\",\n props: {\n type: \"object\",\n properties: {\n label: { type: \"string\", description: 'What the button says, and the panel\\'s name for assistive technology: \"View\".' },\n summary: { type: \"string\", description: 'A few words after the label saying what is set now: \"Fit · 100% · Real data\". Part of the button\\'s name.' },\n align: { type: \"string\", enum: [\"start\", \"end\"], description: \"Line the panel up with the button's start edge (the default) or its end edge.\" },\n open: { type: \"boolean\", description: \"Open, when the host holds it. Leave out to let the popover hold it.\" },\n defaultOpen: { type: \"boolean\", description: \"Open at first, when the popover holds it. Being open when first drawn takes no focus from the page.\" },\n disabled: { type: \"boolean\" },\n },\n required: [\"label\"],\n },\n parts: [{ prop: \"children\", label: \"The panel's controls\", description: \"What the panel holds: selects, a `SegmentedControl`, check boxes. On the page: width, zoom and data state.\", required: true }],\n callbacks: [{ prop: \"onOpenChange\", description: \"Every change asked for: the button, Escape, a press or focus outside. Set `open` from it when the host holds it.\" }],\n example: { label: \"View\", summary: \"Fit · 100% · Real data\", align: \"end\" },\n});\n\nconst CHARTS = [\"stacked\", \"scatter\", \"gantt\", \"line\", \"heatmap\", \"histogram\", \"funnel\", \"combo\", \"rows\", \"sankey\", \"area\", \"confusion\", \"bars\", \"table\", \"pareto\"] as const;\n\nexport const loadingDoc = describeAppComponent<LoadingProps>()({\n name: \"Loading\",\n from: COMPONENTS,\n group: \"Loading\",\n description:\n \"Says what is being waited for, with something that moves while it is: a small chart beside the words, or above them a card that sketches a page. A live region, so the words are read out; a wait under a fifth of a second shows nothing. The motion is decoration and stands still where the system asks for less of it. Put `aria-busy` on what is being loaded.\",\n props: {\n type: \"object\",\n properties: {\n label: { type: \"string\", description: 'What is being waited for: \"Opening the report…\".' },\n size: { type: \"string\", enum: [\"inline\", \"page\"], description: \"A small chart beside the words, or a card sketching itself above them. Defaults to inline.\" },\n cards: { type: \"integer\", minimum: 1, maximum: 3, description: \"With size page: how many cards, fanned out when there is more than one. Defaults to 1.\" },\n chart: { type: \"string\", enum: CHARTS, description: \"With size inline: the chart to draw. Picked when left out.\" },\n },\n required: [\"label\"],\n },\n parts: [{ prop: \"picture\", label: \"Your own picture\", description: \"Drawn in place of the chart or the card, such as `MovingMark` or a product's own.\" }],\n callbacks: [],\n example: { label: \"Opening the report…\", size: \"page\" },\n});\n\nexport const chartLoaderDoc = describeAppComponent<ChartLoaderProps>()({\n name: \"ChartLoader\",\n from: COMPONENTS,\n group: \"Loading\",\n description:\n \"A small chart that draws itself and keeps moving, the same one for as long as the wait lasts: one of fifteen. Decoration beside words that say what is waited for, so it is hidden from assistive technology; use `Loading` or `WorkingLine` for the two together.\",\n props: {\n type: \"object\",\n properties: {\n chart: { type: \"string\", enum: CHARTS, description: \"The chart to draw. Picked when left out.\" },\n seed: { type: \"string\", description: \"Picks the chart: the same words always pick the same one.\" },\n size: { type: \"number\", description: \"Its width, in px (or any CSS length). Defaults to 2.5rem.\" },\n },\n },\n parts: [],\n callbacks: [],\n example: { chart: \"sankey\", size: 160 },\n});\n\nexport const draftCardDoc = describeAppComponent<DraftCardProps>()({\n name: \"DraftCard\",\n from: COMPONENTS,\n group: \"Loading\",\n description:\n \"A page sketching itself on a card, part by part under a pen, then thrown aside for another layout: for while a page is made or opened. Up to three fan out, for several drafts made at once. Decoration: `Loading` with size page puts it with the words that say what is waited for.\",\n props: { type: \"object\", properties: { cards: { type: \"integer\", minimum: 1, maximum: 3, description: \"How many cards. Defaults to 1.\" } } },\n parts: [],\n callbacks: [],\n example: { cards: 3 },\n});\n\nexport const workingLineDoc = describeAppComponent<WorkingLineProps>()({\n name: \"WorkingLine\",\n from: COMPONENTS,\n group: \"Loading\",\n description:\n \"What an agent or a long job is doing now, in words, with a chart that keeps moving and how long it has been. Give it only what is known to be happening. A change of words is read out; the time is not. The chat shows one while a reply is on its way.\",\n props: {\n type: \"object\",\n properties: {\n label: { type: \"string\", description: 'What is being done now: \"Reading the orders table…\".' },\n since: { type: \"number\", description: \"When it began, in ms since 1970 (`Date.now()`). Without it no time is shown.\" },\n seed: { type: \"string\", description: \"Picks the chart, so the same turn keeps the same one.\" },\n announce: { type: \"boolean\", description: \"Reads a change of words out. Defaults to true; false inside something that is itself read out.\" },\n },\n required: [\"label\"],\n },\n parts: [],\n callbacks: [],\n example: { label: \"Reading the orders table…\", seed: \"turn 1\" },\n});\n\nexport const errorPageDoc = describeAppComponent<ErrorPageProps>()({\n name: \"ErrorPage\",\n from: COMPONENTS,\n group: \"Feedback\",\n description:\n \"Shown in place of a page that could not be: not found, no longer shared, the server not answering, a failure to draw. Says what happened and the way on. Its words are an alert; it is no landmark, so it goes in the page's `main`. For not found, say the same whether or not the thing exists for someone else.\",\n props: {\n type: \"object\",\n properties: {\n title: { type: \"string\", description: \"What happened, short.\" },\n message: { type: \"string\", description: \"Why, as far as it may be said, and what can be done. Never a server's own text.\" },\n code: { type: \"string\", description: 'A short code above the title, such as \"404\".' },\n actions: { type: \"array\", description: \"The ways on, the one to take first.\", items: { type: \"object\", properties: { id: { type: \"string\" }, label: { type: \"string\" } }, required: [\"id\", \"label\"] } },\n level: { type: \"integer\", enum: [1, 2, 3], description: \"The title's heading level. Defaults to 1.\" },\n },\n required: [\"title\", \"message\"],\n },\n parts: [{ prop: \"picture\", label: \"Picture\", description: \"Above the words: the host's own mark or drawing.\", on: true }],\n callbacks: [{ prop: \"onAction\", description: \"Called with the id of the way on that was pressed.\" }],\n example: { code: \"404\", title: \"This page isn't here\", message: \"The address may have a typo in it, or what it led to was moved or deleted.\", actions: [{ id: \"home\", label: \"Go to Home\" }], level: 2 },\n});\n\nexport const movingMarkDoc = describeAppComponent<MovingMarkProps>()({\n name: \"MovingMark\",\n from: `${COMPONENTS}/brand`,\n group: \"Brand\",\n description:\n \"The Surfaces UI mark in motion, for a product that shows it: hand it to `Loading` or `ErrorPage` as their picture. It is in an entry of its own (`@surfaces-ui/components/brand`), so an app that does not ask for it neither shows nor ships it.\",\n props: {\n type: \"object\",\n properties: {\n motion: { type: \"string\", enum: [\"spin\", \"stack\", \"fan\", \"wave\"], description: \"Spin: each layer spins on its point and lands on the last. Stack: one lands after another, without end. Fan: they slide apart and back. Wave: a ripple runs up them.\" },\n size: { type: \"number\", description: \"Its width in px. Defaults to 132.\" },\n once: { type: \"boolean\", description: \"Goes through once and comes to rest, for a page that stays up.\" },\n },\n required: [\"motion\"],\n },\n parts: [],\n callbacks: [],\n example: { motion: \"spin\", size: 160 },\n});\n\nexport const componentsAppComponents: AppComponentDoc[] = [themePickerDoc, connectionBuilderDoc, modelLineageDoc, checksPanelDoc, objectInfoDoc, certificationBadgeDoc, itemControlsDoc, resizeHandleDoc, segmentedControlDoc, dataTableDoc, selectionBarDoc, paginationDoc, confirmDialogDoc, statusBadgeDoc, comboboxDoc, popoverDoc, navBarDoc, loadingDoc, chartLoaderDoc, draftCardDoc, workingLineDoc, errorPageDoc, movingMarkDoc];\n\n/** A component's reference page, as Markdown: what it is for, its props, the parts a host supplies and an example. */\nexport function appComponentMarkdown(doc: AppComponentDoc): string {\n const required = new Set(doc.props.required ?? []);\n const typeOf = (schema: PropSchema): string => (schema.enum ? schema.enum.map((v) => JSON.stringify(v)).join(\" | \") : schema.type === \"array\" ? `${schema.items ? typeOf(schema.items) : \"unknown\"}[]` : (schema.type ?? \"object\"));\n const cell = (text = \"\") => text.replace(/\\|/g, \"\\\\|\").replace(/\\n/g, \" \");\n const lines = [`# ${doc.name}`, \"\", `\\`import { ${doc.name} } from \"${doc.from}\";\\``, \"\", doc.description, \"\"];\n const props = Object.entries(doc.props.properties);\n if (props.length > 0) {\n lines.push(\"## Props\", \"\", \"| Prop | Type | Required | What it is |\", \"|---|---|---|---|\");\n for (const [name, schema] of props) lines.push(`| \\`${name}\\` | ${cell(typeOf(schema))} | ${required.has(name) ? \"yes\" : \"\"} | ${cell(schema.description)} |`);\n lines.push(\"\");\n }\n if (doc.parts.length > 0) {\n lines.push(\"## Parts the host supplies\", \"\", \"Props that take code. Each is optional unless marked; the component leaves out what it needs it for.\", \"\");\n for (const part of doc.parts) lines.push(`- \\`${part.prop}\\`${part.required ? \" (required)\" : \"\"}: **${part.label}.** ${part.description}`);\n lines.push(\"\");\n }\n if (doc.callbacks.length > 0) {\n lines.push(\"## Callbacks\", \"\");\n for (const callback of doc.callbacks) lines.push(`- \\`${callback.prop}\\`: ${callback.description}`);\n lines.push(\"\");\n }\n lines.push(\"## Example\", \"\", \"```tsx\", appComponentCode(doc, doc.example, doc.parts.filter((p) => p.required || p.on).map((p) => p.prop)), \"```\", \"\");\n return lines.join(\"\\n\");\n}\n\n/** The JSX for a component with these plain props and these parts switched on: what a page shows as its code. */\nexport function appComponentCode(doc: AppComponentDoc, props: Record<string, unknown>, parts: string[]): string {\n const attribute = (name: string, value: unknown) =>\n value === true ? name : typeof value === \"string\" ? `${name}=${JSON.stringify(value)}` : `${name}={${JSON.stringify(value)}}`;\n const attributes = [\n ...Object.entries(props)\n .filter(([, value]) => value !== undefined && value !== false && !(Array.isArray(value) && value.length === 0))\n .map(([name, value]) => attribute(name, value)),\n ...doc.parts.filter((part) => parts.includes(part.prop)).map((part) => `${part.prop}={${part.prop}}`),\n ...doc.callbacks.map((callback) => `${callback.prop}={…}`),\n ];\n const oneLine = `<${doc.name} ${attributes.join(\" \")} />`;\n return oneLine.length <= 100 ? oneLine : [`<${doc.name}`, ...attributes.map((a) => ` ${a}`), \"/>\"].join(\"\\n\");\n}\n"]}
@@ -0,0 +1,15 @@
1
+ import { type MarkMotion } from "./markMotion.js";
2
+ export interface MovingMarkProps {
3
+ /** "spin": each layer spins on its point and lands on the last. "stack": one lands after another, without end. "fan": they slide apart and back. "wave": a ripple runs up them. */
4
+ motion: MarkMotion;
5
+ /** Its width in px. Default 132. */
6
+ size?: number;
7
+ /** Goes through once and comes to rest, for a page that stays up. */
8
+ once?: boolean;
9
+ }
10
+ /**
11
+ * The Surfaces UI mark in motion, for a product that shows it: hand it to `Loading` or `ErrorPage` as their picture.
12
+ * Decoration beside words, hidden from assistive technology. With `once` it goes through once and comes to rest.
13
+ * Where motion is reduced it is the mark, standing still.
14
+ */
15
+ export declare function MovingMark({ motion, size, once }: MovingMarkProps): import("react").JSX.Element;