@altertable/data-app 0.69.0 → 0.71.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 (289) hide show
  1. package/AGENTS.md +11 -1
  2. package/CONTRIBUTING.md +59 -26
  3. package/README.md +22 -26
  4. package/REFERENCE.md +1900 -0
  5. package/dist/chunks/index-5a27erdg.js +54 -0
  6. package/dist/chunks/index-5a27erdg.js.map +10 -0
  7. package/dist/chunks/{index-2sbp9h2b.js → index-9yxr7nmm.js} +330 -21
  8. package/dist/chunks/index-9yxr7nmm.js.map +17 -0
  9. package/dist/chunks/{index-r7b1ftwy.js → index-j5q5n3ra.js} +8 -6
  10. package/dist/chunks/index-j5q5n3ra.js.map +10 -0
  11. package/dist/chunks/{index-22d576sn.js → index-q75zm3a7.js} +3 -3
  12. package/dist/chunks/{index-22d576sn.js.map → index-q75zm3a7.js.map} +3 -3
  13. package/dist/chunks/{index-kwnqycjt.js → index-vhaec7m5.js} +8 -6
  14. package/dist/chunks/index-vhaec7m5.js.map +10 -0
  15. package/dist/chunks/index-zp78caex.js +1047 -0
  16. package/dist/chunks/index-zp78caex.js.map +19 -0
  17. package/dist/client/index.js +284 -16
  18. package/dist/client/index.js.map +7 -3
  19. package/dist/core/appearance.js +181 -11
  20. package/dist/core/appearance.js.map +4 -3
  21. package/dist/core/config.js +3 -3
  22. package/dist/core/contract.js +13 -15
  23. package/dist/core/contract.js.map +1 -1
  24. package/dist/core/format.js +1 -1
  25. package/dist/index.js +4 -4
  26. package/dist/index.js.map +1 -1
  27. package/dist/internal.js +418 -0
  28. package/dist/internal.js.map +15 -0
  29. package/dist/server/index.js +102 -0
  30. package/dist/server/index.js.map +10 -0
  31. package/dist/types/client/annotations.d.ts +1 -1
  32. package/dist/types/client/data-client.d.ts +21 -10
  33. package/dist/types/client/iframe.d.ts +6 -6
  34. package/dist/types/client/index.d.ts +3 -4
  35. package/dist/types/client/location.d.ts +2 -2
  36. package/dist/types/client/logger.d.ts +1 -1
  37. package/dist/types/client/navigation.d.ts +1 -1
  38. package/dist/types/client/transport.d.ts +1 -1
  39. package/dist/types/core/bridge.d.ts +1 -1
  40. package/dist/types/core/config.d.ts +20 -17
  41. package/dist/types/core/contract.d.ts +23 -13
  42. package/dist/types/core/dimension-source.d.ts +64 -0
  43. package/dist/types/core/dimension.d.ts +31 -23
  44. package/dist/types/core/facets.d.ts +13 -0
  45. package/dist/types/core/filters.d.ts +1 -1
  46. package/dist/types/core/format.d.ts +1 -2
  47. package/dist/types/core/keys.d.ts +2 -0
  48. package/dist/types/core/messages.d.ts +3 -3
  49. package/dist/types/core/operation-types.d.ts +7 -6
  50. package/dist/types/core/presentation.d.ts +1 -1
  51. package/dist/types/core/queries.d.ts +75 -7
  52. package/dist/types/core/reading.d.ts +1 -1
  53. package/dist/types/core/variables.d.ts +38 -12
  54. package/dist/types/index.d.ts +1 -1
  55. package/dist/types/internal.d.ts +22 -0
  56. package/dist/types/server/index.d.ts +1 -2
  57. package/docs/app-authoring.md +12 -4
  58. package/docs/client.md +5 -6
  59. package/docs/composition.md +84 -0
  60. package/docs/contract.md +41 -21
  61. package/docs/data-context.md +5 -3
  62. package/docs/embed.md +4 -4
  63. package/docs/formatting-and-appearance.md +1 -1
  64. package/docs/hosted-apps.md +4 -0
  65. package/docs/react-embed.md +7 -6
  66. package/docs/react.md +5 -5
  67. package/docs/server-bun.md +5 -5
  68. package/docs/server.md +1 -1
  69. package/docs/stories-and-export.md +3 -3
  70. package/docs/styling.md +6 -2
  71. package/docs/ui.md +18 -7
  72. package/docs/variables.md +83 -11
  73. package/docs/views.md +57 -3
  74. package/docs/widgets.md +97 -4
  75. package/docs/worker.md +4 -4
  76. package/examples/starter-data-app/index.tsx +11 -23
  77. package/examples/starter-local-data-app/AGENTS.md +1 -1
  78. package/examples/starter-local-data-app/README.md +12 -10
  79. package/examples/starter-local-data-app/app.ts +7 -1
  80. package/examples/starter-local-data-app/package.json +3 -1
  81. package/examples/starter-local-data-app/src/App.tsx +1 -1
  82. package/examples/starter-local-data-app/src/data-context.ts +1 -1
  83. package/examples/starter-local-data-app/src/main.tsx +1 -1
  84. package/examples/starter-local-data-app/src/server.ts +1 -1
  85. package/examples/starter-local-data-app/tsconfig.json +7 -1
  86. package/package.json +16 -92
  87. package/THIRD_PARTY_NOTICES +0 -18
  88. package/dist/chunks/index-2sbp9h2b.js.map +0 -13
  89. package/dist/chunks/index-ap60vggk.js +0 -80
  90. package/dist/chunks/index-ap60vggk.js.map +0 -10
  91. package/dist/chunks/index-cv36cyna.js +0 -180
  92. package/dist/chunks/index-cv36cyna.js.map +0 -10
  93. package/dist/chunks/index-k766wwwr.js +0 -643
  94. package/dist/chunks/index-k766wwwr.js.map +0 -13
  95. package/dist/chunks/index-kwnqycjt.js.map +0 -10
  96. package/dist/chunks/index-m0gbxtgp.js +0 -355
  97. package/dist/chunks/index-m0gbxtgp.js.map +0 -13
  98. package/dist/chunks/index-qhzdzca2.js +0 -15869
  99. package/dist/chunks/index-qhzdzca2.js.map +0 -118
  100. package/dist/chunks/index-r7b1ftwy.js.map +0 -10
  101. package/dist/chunks/index-sx488hvs.js +0 -221
  102. package/dist/chunks/index-sx488hvs.js.map +0 -12
  103. package/dist/chunks/index-wss3gd3h.js +0 -319
  104. package/dist/chunks/index-wss3gd3h.js.map +0 -13
  105. package/dist/chunks/index-zcqxfwdq.js +0 -197
  106. package/dist/chunks/index-zcqxfwdq.js.map +0 -13
  107. package/dist/embed/index.js +0 -138
  108. package/dist/embed/index.js.map +0 -12
  109. package/dist/local.js +0 -432
  110. package/dist/local.js.map +0 -14
  111. package/dist/preview.js +0 -1456
  112. package/dist/preview.js.map +0 -17
  113. package/dist/react/embed/index.js +0 -117
  114. package/dist/react/embed/index.js.map +0 -10
  115. package/dist/react/index.js +0 -2948
  116. package/dist/react/index.js.map +0 -26
  117. package/dist/react/ui/index.js +0 -3142
  118. package/dist/react/ui/index.js.map +0 -35
  119. package/dist/server.js +0 -301
  120. package/dist/server.js.map +0 -13
  121. package/dist/types/core/time-interval.d.ts +0 -96
  122. package/dist/types/embed/bootstrap.d.ts +0 -5
  123. package/dist/types/embed/bridge.d.ts +0 -12
  124. package/dist/types/embed/host.d.ts +0 -36
  125. package/dist/types/embed/index.d.ts +0 -14
  126. package/dist/types/embed/navigation.d.ts +0 -6
  127. package/dist/types/embed/runtime-html.d.ts +0 -2
  128. package/dist/types/embed/source.d.ts +0 -16
  129. package/dist/types/embed/sql.d.ts +0 -4
  130. package/dist/types/react/annotations/AnnotationBar.d.ts +0 -30
  131. package/dist/types/react/annotations/AnnotationControls.d.ts +0 -10
  132. package/dist/types/react/annotations/AnnotationEditor.d.ts +0 -16
  133. package/dist/types/react/annotations/AnnotationMarkers.d.ts +0 -19
  134. package/dist/types/react/annotations/AnnotationSelectionLayer.d.ts +0 -12
  135. package/dist/types/react/annotations/AnnotationTarget.d.ts +0 -9
  136. package/dist/types/react/annotations/AnnotationTooltip.d.ts +0 -9
  137. package/dist/types/react/annotations/AnnotationTrigger.d.ts +0 -10
  138. package/dist/types/react/annotations/annotation-editor-state.d.ts +0 -58
  139. package/dist/types/react/annotations/annotation-screenshot.d.ts +0 -4
  140. package/dist/types/react/annotations/annotation-targets.d.ts +0 -34
  141. package/dist/types/react/annotations/getAnnotationProps.d.ts +0 -17
  142. package/dist/types/react/annotations/styles.d.ts +0 -3
  143. package/dist/types/react/annotations/useAnnotationGeometry.d.ts +0 -22
  144. package/dist/types/react/annotations/useDataAppAnnotations.d.ts +0 -22
  145. package/dist/types/react/app-context.d.ts +0 -3
  146. package/dist/types/react/bindings.d.ts +0 -133
  147. package/dist/types/react/content.d.ts +0 -36
  148. package/dist/types/react/date-formatting.d.ts +0 -12
  149. package/dist/types/react/embed/bridge.d.ts +0 -21
  150. package/dist/types/react/embed/index.d.ts +0 -7
  151. package/dist/types/react/hooks.d.ts +0 -75
  152. package/dist/types/react/index.d.ts +0 -75
  153. package/dist/types/react/injectStyles.d.ts +0 -7
  154. package/dist/types/react/mount.d.ts +0 -13
  155. package/dist/types/react/search-suggestions.d.ts +0 -8
  156. package/dist/types/react/source-owner.d.ts +0 -2
  157. package/dist/types/react/style-contract.d.ts +0 -88
  158. package/dist/types/react/style-validation.d.ts +0 -2
  159. package/dist/types/react/styles.d.ts +0 -8
  160. package/dist/types/react/ui/AboutData.d.ts +0 -68
  161. package/dist/types/react/ui/AltertableLogo.d.ts +0 -3
  162. package/dist/types/react/ui/AppFooter.d.ts +0 -6
  163. package/dist/types/react/ui/AppHeader.d.ts +0 -10
  164. package/dist/types/react/ui/AppLayout.d.ts +0 -10
  165. package/dist/types/react/ui/AppScope.d.ts +0 -7
  166. package/dist/types/react/ui/AppToolbar.d.ts +0 -30
  167. package/dist/types/react/ui/AreaChart.d.ts +0 -7
  168. package/dist/types/react/ui/BarChart.d.ts +0 -6
  169. package/dist/types/react/ui/Breakdown.d.ts +0 -13
  170. package/dist/types/react/ui/Button.d.ts +0 -11
  171. package/dist/types/react/ui/ChartLegend.d.ts +0 -32
  172. package/dist/types/react/ui/Checkbox.d.ts +0 -21
  173. package/dist/types/react/ui/CheckboxGroup.d.ts +0 -7
  174. package/dist/types/react/ui/ChoicePicker.d.ts +0 -39
  175. package/dist/types/react/ui/Comparison.d.ts +0 -14
  176. package/dist/types/react/ui/ComposedChart.d.ts +0 -41
  177. package/dist/types/react/ui/ComposedChartLegend.d.ts +0 -8
  178. package/dist/types/react/ui/ContentSkeleton.d.ts +0 -7
  179. package/dist/types/react/ui/DataApp.d.ts +0 -21
  180. package/dist/types/react/ui/DataAppFrame.d.ts +0 -52
  181. package/dist/types/react/ui/DataBoundary.d.ts +0 -14
  182. package/dist/types/react/ui/DataSection.d.ts +0 -14
  183. package/dist/types/react/ui/DataSectionBoundary.d.ts +0 -30
  184. package/dist/types/react/ui/DataTable.d.ts +0 -29
  185. package/dist/types/react/ui/DataValue.d.ts +0 -9
  186. package/dist/types/react/ui/DataViewToast.d.ts +0 -11
  187. package/dist/types/react/ui/DataWidget.d.ts +0 -34
  188. package/dist/types/react/ui/DateDisplay.d.ts +0 -9
  189. package/dist/types/react/ui/DateRangePicker.d.ts +0 -30
  190. package/dist/types/react/ui/DateTimeTooltip.d.ts +0 -10
  191. package/dist/types/react/ui/DimensionPicker.d.ts +0 -13
  192. package/dist/types/react/ui/EmptyState.d.ts +0 -6
  193. package/dist/types/react/ui/ExportControl.d.ts +0 -4
  194. package/dist/types/react/ui/FilterActions.d.ts +0 -10
  195. package/dist/types/react/ui/FilterBar.d.ts +0 -3
  196. package/dist/types/react/ui/FunnelChart.d.ts +0 -20
  197. package/dist/types/react/ui/GettingStarted.d.ts +0 -6
  198. package/dist/types/react/ui/GlossaryDefinition.d.ts +0 -7
  199. package/dist/types/react/ui/GlossaryExplanation.d.ts +0 -16
  200. package/dist/types/react/ui/GradientScroll.d.ts +0 -23
  201. package/dist/types/react/ui/Grid.d.ts +0 -12
  202. package/dist/types/react/ui/GridItem.d.ts +0 -7
  203. package/dist/types/react/ui/HelpPopover.d.ts +0 -21
  204. package/dist/types/react/ui/IconButton.d.ts +0 -19
  205. package/dist/types/react/ui/InspectionContext.d.ts +0 -12
  206. package/dist/types/react/ui/InspectionProvider.d.ts +0 -29
  207. package/dist/types/react/ui/JourneyChart.d.ts +0 -10
  208. package/dist/types/react/ui/Kbd.d.ts +0 -7
  209. package/dist/types/react/ui/LineChart.d.ts +0 -7
  210. package/dist/types/react/ui/LiveControl.d.ts +0 -10
  211. package/dist/types/react/ui/Menu.d.ts +0 -12
  212. package/dist/types/react/ui/MetricWidget.d.ts +0 -49
  213. package/dist/types/react/ui/NumberField.d.ts +0 -27
  214. package/dist/types/react/ui/NumberFilterPicker.d.ts +0 -11
  215. package/dist/types/react/ui/PeriodSummary.d.ts +0 -17
  216. package/dist/types/react/ui/PickerField.d.ts +0 -15
  217. package/dist/types/react/ui/PieChart.d.ts +0 -11
  218. package/dist/types/react/ui/PopoverSurface.d.ts +0 -5
  219. package/dist/types/react/ui/PresentStory.d.ts +0 -30
  220. package/dist/types/react/ui/QueryList.d.ts +0 -14
  221. package/dist/types/react/ui/RadioGroup.d.ts +0 -18
  222. package/dist/types/react/ui/Ranking.d.ts +0 -13
  223. package/dist/types/react/ui/RefreshControl.d.ts +0 -9
  224. package/dist/types/react/ui/RequestHint.d.ts +0 -20
  225. package/dist/types/react/ui/RetentionChart.d.ts +0 -27
  226. package/dist/types/react/ui/ScatterChart.d.ts +0 -17
  227. package/dist/types/react/ui/SearchField.d.ts +0 -23
  228. package/dist/types/react/ui/SearchInput.d.ts +0 -10
  229. package/dist/types/react/ui/SearchMatch.d.ts +0 -6
  230. package/dist/types/react/ui/SearchTypeahead.d.ts +0 -15
  231. package/dist/types/react/ui/SectionHeading.d.ts +0 -8
  232. package/dist/types/react/ui/Select.d.ts +0 -18
  233. package/dist/types/react/ui/SelectionMark.d.ts +0 -5
  234. package/dist/types/react/ui/Sheet.d.ts +0 -21
  235. package/dist/types/react/ui/Skeleton.d.ts +0 -8
  236. package/dist/types/react/ui/Stack.d.ts +0 -7
  237. package/dist/types/react/ui/StaticDataApp.d.ts +0 -4
  238. package/dist/types/react/ui/StatusPanel.d.ts +0 -10
  239. package/dist/types/react/ui/TableWidget.d.ts +0 -67
  240. package/dist/types/react/ui/Tabs.d.ts +0 -10
  241. package/dist/types/react/ui/TextContent.d.ts +0 -4
  242. package/dist/types/react/ui/TextWidget.d.ts +0 -20
  243. package/dist/types/react/ui/ThemeSelector.d.ts +0 -12
  244. package/dist/types/react/ui/Toast.d.ts +0 -8
  245. package/dist/types/react/ui/Tooltip.d.ts +0 -23
  246. package/dist/types/react/ui/TooltipSurface.d.ts +0 -3
  247. package/dist/types/react/ui/TrendChart.d.ts +0 -5
  248. package/dist/types/react/ui/UpdatedAt.d.ts +0 -9
  249. package/dist/types/react/ui/VariableBar.d.ts +0 -6
  250. package/dist/types/react/ui/VisualizationWidget.d.ts +0 -43
  251. package/dist/types/react/ui/WidgetDisclosure.d.ts +0 -6
  252. package/dist/types/react/ui/WidgetEvidence.d.ts +0 -12
  253. package/dist/types/react/ui/WidgetViewTabs.d.ts +0 -16
  254. package/dist/types/react/ui/chart-data.d.ts +0 -34
  255. package/dist/types/react/ui/chart-date-axis.d.ts +0 -15
  256. package/dist/types/react/ui/chart-interaction.d.ts +0 -21
  257. package/dist/types/react/ui/chart-primitives.d.ts +0 -22
  258. package/dist/types/react/ui/chart-time.d.ts +0 -16
  259. package/dist/types/react/ui/chartColor.d.ts +0 -2
  260. package/dist/types/react/ui/classNames.d.ts +0 -1
  261. package/dist/types/react/ui/csv-export.d.ts +0 -19
  262. package/dist/types/react/ui/data-context.d.ts +0 -76
  263. package/dist/types/react/ui/data-identifiers.d.ts +0 -32
  264. package/dist/types/react/ui/icons.d.ts +0 -47
  265. package/dist/types/react/ui/index.d.ts +0 -109
  266. package/dist/types/react/ui/journey-flow.d.ts +0 -49
  267. package/dist/types/react/ui/keyboard.d.ts +0 -6
  268. package/dist/types/react/ui/metric-comparison.d.ts +0 -30
  269. package/dist/types/react/ui/metric.d.ts +0 -11
  270. package/dist/types/react/ui/presentation.d.ts +0 -25
  271. package/dist/types/react/ui/search.d.ts +0 -6
  272. package/dist/types/react/ui/searchItems.d.ts +0 -36
  273. package/dist/types/react/ui/shortcuts.d.ts +0 -45
  274. package/dist/types/react/ui/story.d.ts +0 -20
  275. package/dist/types/react/ui/useAppAppearance.d.ts +0 -3
  276. package/dist/types/react/ui/useDataAppPresentation.d.ts +0 -3
  277. package/dist/types/react/ui/useSvgId.d.ts +0 -2
  278. package/dist/types/react/ui/variables.d.ts +0 -38
  279. package/dist/types/react/ui/widget-views.d.ts +0 -3
  280. package/dist/types/react/view-control-bar.d.ts +0 -16
  281. package/dist/types/react/view-controls.d.ts +0 -20
  282. package/dist/types/react/view-runtime.d.ts +0 -31
  283. package/dist/types/react/view.d.ts +0 -78
  284. package/dist/types/react/widgets.d.ts +0 -79
  285. package/dist/types/server/local.d.ts +0 -19
  286. package/dist/types/server/preview/host.d.ts +0 -1
  287. package/dist/types/server/preview/index.d.ts +0 -16
  288. package/dist/types/server/reload-channel.d.ts +0 -6
  289. package/dist/worker.js +0 -106
@@ -1,30 +0,0 @@
1
- import { type ComponentPropsWithRef, type ReactNode } from 'react';
2
- import type { ThemeController } from '../../core/appearance.js';
3
- import { type AboutEmpty } from './AboutData.js';
4
- import type { DataContext } from './data-context.js';
5
- import { type StoryFinding } from './story.js';
6
- export type StoryStep = {
7
- id: string;
8
- empty?: AboutEmpty;
9
- headline: string;
10
- context?: string;
11
- glossaryIds?: string[];
12
- queryNames?: string[];
13
- visual: ReactNode;
14
- visualKind?: 'metric' | 'chart';
15
- };
16
- export type PresentStoryProps = {
17
- title: string;
18
- findings: readonly StoryFinding[];
19
- empty?: AboutEmpty;
20
- scope?: ReactNode;
21
- dataContext: DataContext;
22
- theme?: ThemeController;
23
- headerActions?: ReactNode;
24
- footer?: ReactNode;
25
- } & Omit<ComponentPropsWithRef<'button'>, 'title'>;
26
- /**
27
- * Uses an already loaded snapshot. Navigation is stored in `?present=1&step=`, and step
28
- * inspection uses `?about=`. The presentation owns its modal structure.
29
- */
30
- export declare function PresentStory({ title, findings, empty, scope, dataContext, theme, headerActions, footer, children, className, onClick, disabled, ref, ...props }: PresentStoryProps): import("react").JSX.Element;
@@ -1,14 +0,0 @@
1
- import { type ComponentPropsWithRef, type ReactNode } from 'react';
2
- import type { DisclosedQuery } from '../../core/contract.js';
3
- export type QueryListProps = {
4
- queries?: DisclosedQuery[];
5
- names?: string[];
6
- summary?: ReactNode;
7
- expanded?: boolean;
8
- } & Omit<ComponentPropsWithRef<'details'>, 'children'>;
9
- export declare function formatSql(statement: string): string;
10
- /**
11
- * `names` selects supporting queries. Missing query evidence is shown explicitly; `expanded`
12
- * skips the disclosure in a dedicated Queries view.
13
- */
14
- export declare function QueryList({ queries, names, summary, expanded, className, ...props }: QueryListProps): import("react").JSX.Element | null;
@@ -1,18 +0,0 @@
1
- import type { ComponentPropsWithRef, ReactNode } from 'react';
2
- import { RadioGroup as AriaRadioGroup, Radio as AriaRadio } from 'react-aria-components';
3
- import { type ChoiceOption } from '../../core/variables.js';
4
- export type RadioGroupProps = Omit<ComponentPropsWithRef<typeof AriaRadioGroup>, 'className' | 'children'> & {
5
- children: ReactNode;
6
- label: string;
7
- className?: string;
8
- };
9
- export declare function RadioGroup({ label, className, children, ...props }: RadioGroupProps): import("react").JSX.Element;
10
- export type RadioProps = Omit<ComponentPropsWithRef<typeof AriaRadio>, 'className'> & {
11
- className?: string;
12
- };
13
- export declare function Radio({ className, children, ...props }: RadioProps): import("react").JSX.Element;
14
- export type SegmentedControlProps = Omit<RadioGroupProps, 'children'> & {
15
- options: readonly ChoiceOption[];
16
- };
17
- /** A compact radio group; arrow keys follow standard radio selection behavior. */
18
- export declare function SegmentedControl({ options, className, ...props }: SegmentedControlProps): import("react").JSX.Element;
@@ -1,13 +0,0 @@
1
- import type { ComponentPropsWithRef, ReactNode } from 'react';
2
- export type RankingItem = {
3
- id: string;
4
- label: ReactNode;
5
- value: number;
6
- detail?: ReactNode;
7
- };
8
- export type RankingProps = {
9
- items: readonly RankingItem[];
10
- formatValue?: (value: number) => ReactNode;
11
- } & Omit<ComponentPropsWithRef<'ol'>, 'children'>;
12
- /** Ordered values scaled to the largest visible item, not shares of a whole. */
13
- export declare function Ranking({ items, formatValue, className, ...props }: RankingProps): import("react").JSX.Element;
@@ -1,9 +0,0 @@
1
- import { type ComponentPropsWithRef, type ReactNode } from 'react';
2
- export type RefreshControlProps = {
3
- refreshing: boolean;
4
- children: ReactNode;
5
- label?: string;
6
- status?: ReactNode;
7
- } & Omit<ComponentPropsWithRef<'div'>, 'children'>;
8
- /** Show refresh progress just before its action after a short delay. */
9
- export declare function RefreshControl({ refreshing, children, label, status, className, ...props }: RefreshControlProps): import("react").JSX.Element;
@@ -1,20 +0,0 @@
1
- /** Idle keeps the same reserved space as refresh and failure. Initial loading belongs to skeletons. */
2
- export type WidgetStatus = {
3
- kind: 'idle';
4
- } | {
5
- kind: 'updating';
6
- message?: string;
7
- } | {
8
- kind: 'error';
9
- message?: string;
10
- onRetry?: () => void;
11
- };
12
- /** Fixed-height feedback keeps data in place; the retry belongs beside its failure message. */
13
- export declare function RequestHint({ status, retryLabel, }: {
14
- status?: WidgetStatus;
15
- retryLabel?: string;
16
- }): import("react").JSX.Element;
17
- /** Supplied status reserves a fixed footprint across request states; omission leaves space for the title. */
18
- export declare function WidgetStatusControl({ status }: {
19
- status?: WidgetStatus;
20
- }): import("react").JSX.Element | null;
@@ -1,27 +0,0 @@
1
- import type { CountChartProps } from './chart-data.js';
2
- export type RetentionChartPoint = {
3
- /** Nonnegative integer, unique per series; uneven offsets retain their distance. */
4
- offset: number;
5
- /** Must agree across series for the same offset. */
6
- label: string;
7
- /** Observed retention fraction in [0, 1], or null for an unobserved period. */
8
- rate: number | null;
9
- /** Finite count in [0, cohortSize]; null exactly when rate is null. */
10
- retainedCount: number | null;
11
- /** Observed but still accumulating; drawn as a dotted tail. */
12
- incomplete?: boolean;
13
- };
14
- export type RetentionChartSeries = {
15
- /** Unique, nonblank cohort or segment ID. */
16
- id: string;
17
- label: string;
18
- /** Finite, nonnegative starting population. */
19
- cohortSize: number;
20
- points: readonly RetentionChartPoint[];
21
- };
22
- export type RetentionChartProps = CountChartProps & {
23
- series: readonly RetentionChartSeries[];
24
- };
25
- /** Query-defined retention curves with count inspection and dotted incomplete periods.
26
- * Rates are not recomputed from counts. Compose inside VisualizationWidget. */
27
- export declare function RetentionChart({ series, unit, ariaLabel, className, formatValue, }: RetentionChartProps): import("react").JSX.Element;
@@ -1,17 +0,0 @@
1
- import type { ScatterChartItem } from './chart-data.js';
2
- export type { ScatterChartItem } from './chart-data.js';
3
- export type ScatterChartProps = {
4
- items: readonly ScatterChartItem[];
5
- xLabel: string;
6
- yLabel: string;
7
- xUnit: string;
8
- yUnit: string;
9
- ariaLabel: string;
10
- formatX?: (value: number) => string;
11
- formatY?: (value: number) => string;
12
- };
13
- /** Independent finite X/Y observations on linear axes that include zero.
14
- * Negative and constant coordinates are supported. Axis labels and units describe
15
- * tooltips as well as the plot; formatX/formatY format ticks and tooltip values.
16
- * Compose inside VisualizationWidget; hover/touch tooltips need no caller state. */
17
- export declare function ScatterChart({ items, xLabel, yLabel, xUnit, yUnit, ariaLabel, formatX, formatY, }: ScatterChartProps): import("react").JSX.Element;
@@ -1,23 +0,0 @@
1
- import { type ComponentPropsWithRef, type ReactNode } from 'react';
2
- export type SearchFieldProps = {
3
- label: string;
4
- value: string;
5
- onChange: (value: string) => void;
6
- onSubmit?: (value: string) => void;
7
- placeholder?: string;
8
- showLabel?: boolean;
9
- /** Enable page search shortcuts on one primary search field per app. */
10
- focusShortcut?: boolean;
11
- size?: 'default' | 'compact';
12
- description?: ReactNode;
13
- status?: ReactNode;
14
- busy?: boolean;
15
- resetValue?: string;
16
- inputProps?: Omit<ComponentPropsWithRef<'input'>, 'type' | 'value' | 'children'>;
17
- children?: ReactNode;
18
- } & Omit<ComponentPropsWithRef<'form'>, 'onChange' | 'onSubmit' | 'children'>;
19
- /**
20
- * The caller owns filtering, URL state, and whether search runs while typing or on submit.
21
- * Escape and Clear reset the query.
22
- */
23
- export declare function SearchField({ label, value, onChange, onSubmit, placeholder, showLabel, focusShortcut, size, description, status, busy, resetValue, inputProps, children, className, ...props }: SearchFieldProps): import("react").JSX.Element;
@@ -1,10 +0,0 @@
1
- import type { ComponentPropsWithRef, ReactNode } from 'react';
2
- /** One search control surface for picker search and table/page search. */
3
- export declare function SearchInput({ focusRing, size, endAction, loading, className, ...props }: Omit<ComponentPropsWithRef<'input'>, 'size' | 'children'> & {
4
- size?: 'default' | 'compact';
5
- /** Picker search delegates focus indication to the active option. */
6
- focusRing?: boolean;
7
- endAction?: ReactNode;
8
- /** Replaces the search glyph in its existing space; input and results remain usable. */
9
- loading?: boolean;
10
- }): import("react").JSX.Element;
@@ -1,6 +0,0 @@
1
- import type { ComponentPropsWithRef } from 'react';
2
- import type { SearchMatchValue } from './searchItems.js';
3
- export type SearchMatchProps = {
4
- match: SearchMatchValue;
5
- } & Omit<ComponentPropsWithRef<'span'>, 'children'>;
6
- export declare function SearchMatch({ match, className, ...props }: SearchMatchProps): import("react").JSX.Element;
@@ -1,15 +0,0 @@
1
- import { type SearchFieldProps } from './SearchField.js';
2
- export type SearchSuggestion = {
3
- id: string;
4
- title: string;
5
- description?: string;
6
- /** Override completing the query with this title, for example to open record details. */
7
- onSelect?: () => void;
8
- };
9
- export type SearchTypeaheadProps = SearchFieldProps & {
10
- /** Suggestions from the displayed result, in its order. No additional filtering or request. */
11
- items: readonly SearchSuggestion[];
12
- };
13
- /** An editable combobox with manual selection: typing searches, selecting completes the query unless overridden.
14
- * Input retains focus during navigation; Escape dismisses suggestions before clearing search. */
15
- export declare function SearchTypeahead({ items, busy, inputProps, ...props }: SearchTypeaheadProps): import("react").JSX.Element;
@@ -1,8 +0,0 @@
1
- import type { ComponentPropsWithRef, ReactNode } from 'react';
2
- export type SectionHeadingProps = {
3
- children: ReactNode;
4
- /** Document outline level. Defaults to the section level below the page title. */
5
- level?: 2 | 3 | 4 | 5 | 6;
6
- } & Omit<ComponentPropsWithRef<'h2'>, 'children'>;
7
- /** A section title with the shared section-heading appearance. */
8
- export declare function SectionHeading({ children, level, className, ...props }: SectionHeadingProps): import("react").JSX.Element;
@@ -1,18 +0,0 @@
1
- import { type ControlLabelPlacement } from './PickerField.js';
2
- import { type ChoiceOption } from '../../core/variables.js';
3
- export type SelectProps = {
4
- label: string;
5
- labelPlacement?: ControlLabelPlacement;
6
- options: readonly ChoiceOption[];
7
- value: string;
8
- onChange: (value: string) => void;
9
- disabled?: boolean;
10
- required?: boolean;
11
- name?: string;
12
- id?: string;
13
- className?: string;
14
- /** Align the popup with the selection button. Defaults to start. */
15
- align?: 'start' | 'end';
16
- };
17
- /** Labeled single selection with keyboard navigation and a styled listbox. */
18
- export declare function Select({ label, options, value, onChange, disabled, required, className, align, labelPlacement, ...props }: SelectProps): import("react").JSX.Element;
@@ -1,5 +0,0 @@
1
- /** Decorative selection indicator; the containing control owns its accessible semantics. */
2
- export declare function SelectionMark({ selected, multiple, }: {
3
- selected: boolean;
4
- multiple?: boolean;
5
- }): import("react").JSX.Element;
@@ -1,21 +0,0 @@
1
- import { type ComponentPropsWithRef, type ReactNode, type RefObject } from 'react';
2
- export type SheetDialogProps = Omit<ComponentPropsWithRef<'dialog'>, 'children' | 'open' | 'title' | 'aria-labelledby'>;
3
- export type SheetProps = {
4
- open: boolean;
5
- onOpenChange: (open: boolean) => void;
6
- title: ReactNode;
7
- description?: ReactNode;
8
- children: ReactNode;
9
- headerActions?: ReactNode;
10
- footer?: ReactNode;
11
- wide?: boolean;
12
- placement?: 'side' | 'center';
13
- /** Edge for side placement. Defaults to right; small screens use a bottom sheet. */
14
- side?: 'left' | 'right';
15
- returnFocus?: RefObject<HTMLElement | null>;
16
- } & SheetDialogProps;
17
- /**
18
- * Uses the native dialog top layer and focus trap. Closing keeps the modal mounted until its
19
- * exit transition completes.
20
- */
21
- export declare function Sheet({ open, onOpenChange, title, description, children, headerActions, footer, wide, placement, side, returnFocus, className, onCancel, onClose, onClick, onTransitionEnd, ref, ...props }: SheetProps): import("react").JSX.Element;
@@ -1,8 +0,0 @@
1
- import type { ComponentPropsWithRef } from 'react';
2
- export type SkeletonProps = Omit<ComponentPropsWithRef<'span'>, 'children' | 'aria-hidden'> & {
3
- /** Align a text-sized placeholder with surrounding prose. */
4
- inline?: boolean;
5
- };
6
- /** Decorative loading placeholder that fades in only when loading takes a moment.
7
- * Put the accessible status on its container. */
8
- export declare function Skeleton({ inline, className, ...props }: SkeletonProps): import("react").JSX.Element;
@@ -1,7 +0,0 @@
1
- import type { ComponentPropsWithRef, ReactNode } from 'react';
2
- export type StackProps = {
3
- children: ReactNode;
4
- gap?: 'sm' | 'md' | 'lg';
5
- } & Omit<ComponentPropsWithRef<'div'>, 'children'>;
6
- /** Vertical layout for peer sections or request boundaries, with the page's section gap. */
7
- export declare function Stack({ children, gap, className, ...props }: StackProps): import("react").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { type StaticDataAppProps } from './DataAppFrame.js';
2
- export type DataAppProps = StaticDataAppProps;
3
- /** Setup and static screens; fetched data uses the declared-view DataApp. */
4
- export declare function DataApp(props: DataAppProps): import("react").JSX.Element;
@@ -1,10 +0,0 @@
1
- import type { ComponentPropsWithRef, ReactNode } from 'react';
2
- export type StatusPanelProps = {
3
- status: 'loading' | 'empty' | 'error';
4
- title: ReactNode;
5
- description?: ReactNode;
6
- details?: ReactNode;
7
- action?: ReactNode;
8
- children?: ReactNode;
9
- } & Omit<ComponentPropsWithRef<'div'>, 'children' | 'title'>;
10
- export declare function StatusPanel({ status, title, description, details, action, children, className, role, ...props }: StatusPanelProps): import("react").JSX.Element;
@@ -1,67 +0,0 @@
1
- import { type ComponentPropsWithRef, type ReactNode } from 'react';
2
- import type { WidgetEvidence } from './WidgetEvidence.js';
3
- import type { WidgetStatus } from './RequestHint.js';
4
- import { type DataTableSearch } from './DataTable.js';
5
- import type { EmptyContent } from './presentation.js';
6
- import { type SearchHit, type SearchItemsOptions } from './searchItems.js';
7
- import type { DataReading } from '../../core/reading.js';
8
- export type TableWidgetColumn<Row> = {
9
- /** Stable, nonempty identity; unique within this table. */
10
- id: string;
11
- header: ReactNode;
12
- type?: 'number' | 'datetime';
13
- /** Render this column's value for one row. The table owns its cell element and semantics. */
14
- cell: (row: Row, hit?: SearchHit<Row>) => ReactNode;
15
- };
16
- export type TableWidgetSearch<Row> = Omit<DataTableSearch, 'itemCount'> & Pick<SearchItemsOptions<Row>, 'attributes' | 'mode' | 'fuzzyThreshold'>;
17
- export type TableDisplayMode = {
18
- /** Positive integer preview cap after search; disables pagination. */
19
- limit: number;
20
- pagination?: never;
21
- } | {
22
- /** Local pagination after search: 10 rows by default, false shows all supplied rows.
23
- * pageSize must be a positive integer. Counts refer only to supplied rows.
24
- * The widget owns bottom-footer controls and shares the current page with inspection. */
25
- pagination?: {
26
- pageSize: number;
27
- } | false;
28
- limit?: never;
29
- };
30
- type TableWidgetBaseProps<Row> = {
31
- title: ReactNode;
32
- headingLevel?: 2 | 3 | 4 | 5 | 6;
33
- annotationId?: string;
34
- /** Show the matching supplied-row count before pagination or limits. Defaults to true. */
35
- showCount?: boolean;
36
- /** Override the derived count, for example with a server total. Hidden when showCount is false or loading. */
37
- count?: number;
38
- /** Clear only filters affecting this dataset. Supply only while those filters are active; enables empty-result recovery. */
39
- onClearFilters?: () => void;
40
- description?: ReactNode;
41
- columns: readonly [TableWidgetColumn<Row>, ...TableWidgetColumn<Row>[]];
42
- /** Unique, nonempty row identity. Numeric keys must be finite; 1 and "1" collide. */
43
- rowKey: (row: Row) => string | number;
44
- status?: WidgetStatus;
45
- action?: ReactNode;
46
- evidence?: WidgetEvidence;
47
- search?: TableWidgetSearch<Row>;
48
- /** Valid result with no rows; the header remains visible. */
49
- emptyFallback: EmptyContent;
50
- /** No local search matches or explicitly filtered results. Defaults to “No matching results” with recovery guidance. */
51
- noMatchesFallback?: EmptyContent;
52
- } & TableDisplayMode & Omit<ComponentPropsWithRef<'section'>, 'about' | 'title' | 'children'>;
53
- /** Composes VisualizationWidget with DataTable, search, and local pagination.
54
- * Columns own header and body semantics; the first column is the row header.
55
- * Use DataTable inside VisualizationWidget directly for custom table markup. */
56
- export type TableWidgetProps<Row> = TableWidgetBaseProps<Row> & ({
57
- rows: readonly Row[];
58
- reading?: never;
59
- skeletonRows?: never;
60
- } | {
61
- reading: DataReading<readonly Row[]>;
62
- rows?: never;
63
- skeletonRows?: number;
64
- evidence: WidgetEvidence;
65
- });
66
- export declare function TableWidget<Row>(props: TableWidgetProps<Row>): import("react").JSX.Element;
67
- export {};
@@ -1,10 +0,0 @@
1
- import { type ComponentPropsWithRef, type RefAttributes } from 'react';
2
- import { Tabs as AriaTabs, type TabListProps, Tab as AriaTab, TabPanels, TabPanel as AriaTabPanel } from 'react-aria-components/Tabs';
3
- /** React Aria tabs with keyboard and ARIA behavior; pair each Tab and TabPanel by stable id. */
4
- export { TabPanels };
5
- export declare function TabList<T>({ className, ref, ...props }: TabListProps<T> & RefAttributes<HTMLDivElement>): import("react").JSX.Element;
6
- export declare function Tab(props: ComponentPropsWithRef<typeof AriaTab>): import("react").JSX.Element;
7
- export declare function TabPanel(props: ComponentPropsWithRef<typeof AriaTabPanel>): import("react").JSX.Element;
8
- export declare function Tabs({ className, ...props }: ComponentPropsWithRef<typeof AriaTabs>): import("react").JSX.Element;
9
- /** Keep a page-level tab in `?view=`; reserve `?tab=` for the inspect sheet. */
10
- export declare function useViewTab<View extends string>(views: readonly View[], fallback: View): [View, (key: string | number) => void];
@@ -1,4 +0,0 @@
1
- import type { ComponentPropsWithRef } from 'react';
2
- export type TextContentProps = ComponentPropsWithRef<'div'>;
3
- /** Prose typography for page introductions, widget bodies, and inspection content. */
4
- export declare function TextContent({ className, ...props }: TextContentProps): import("react").JSX.Element;
@@ -1,20 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import type { DataReading } from '../../core/reading.js';
3
- import { type DataWidgetProps } from './DataWidget.js';
4
- import type { WidgetEvidence } from './WidgetEvidence.js';
5
- type TextWidgetBaseProps = Omit<Extract<DataWidgetProps, {
6
- reading?: never;
7
- }>, 'reading' | 'children' | 'isEmpty' | 'empty' | 'skeleton' | 'bodyPadding'>;
8
- /** Narrative sibling of VisualizationWidget, composing DataWidget with TextContent.
9
- * Use TextContent directly for borderless prose. Bind claims and scope to the same displayed reading.
10
- * The renderer handles every ready value, including zero and empty collections. */
11
- export type TextWidgetProps<Data = unknown> = TextWidgetBaseProps & ({
12
- reading: DataReading<Data>;
13
- evidence: WidgetEvidence;
14
- children: (data: Data) => ReactNode;
15
- } | {
16
- reading?: never;
17
- children: ReactNode;
18
- });
19
- export declare function TextWidget<Data>(props: TextWidgetProps<Data>): import("react").JSX.Element;
20
- export {};
@@ -1,12 +0,0 @@
1
- import { type ComponentPropsWithRef, type ReactNode, type RefObject } from 'react';
2
- import type { ThemeController } from '../../core/appearance.js';
3
- export type ThemeSelectorProps = {
4
- theme: ThemeController;
5
- children?: ReactNode;
6
- } & Omit<ComponentPropsWithRef<'fieldset'>, 'children'>;
7
- /** Viewer color preference. Brand tokens remain app-owned. */
8
- export declare function ThemeSelector({ theme, children, className, ...props }: ThemeSelectorProps): import("react").JSX.Element;
9
- export declare function ThemeToggle({ theme, portalRoot, }: {
10
- theme: ThemeController;
11
- portalRoot?: RefObject<HTMLElement | null>;
12
- }): import("react").JSX.Element;
@@ -1,8 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- /** Shared page-level feedback for requests and toolbar actions. */
3
- export declare function Toast({ state, children, onRetry, position, }: {
4
- state: 'updating' | 'error' | 'notice';
5
- children: ReactNode;
6
- onRetry?: () => void;
7
- position?: 'top' | 'bottom';
8
- }): import("react").JSX.Element;
@@ -1,23 +0,0 @@
1
- import { type ComponentPropsWithRef, type ReactNode, type RefObject } from 'react';
2
- export type TooltipProviderProps = {
3
- children: ReactNode;
4
- delay?: number;
5
- skipDelayDuration?: number;
6
- };
7
- /** Delay the first hover, then open nearby tooltips without waiting during the skip window.
8
- * Keyboard focus always opens immediately. AppLayout provides this by default. */
9
- export declare function TooltipProvider({ children, delay, skipDelayDuration, }: TooltipProviderProps): import("react").JSX.Element;
10
- export type TooltipProps = {
11
- content: ReactNode;
12
- children: ReactNode;
13
- variant?: 'hint' | 'chart';
14
- onOpenChange?: (open: boolean) => void;
15
- align?: 'start' | 'center' | 'end';
16
- placement?: 'top' | 'bottom';
17
- portalRoot?: RefObject<HTMLElement | null>;
18
- } & Omit<ComponentPropsWithRef<'span'>, 'children' | 'content'>;
19
- /** Short visual hint for an already labeled control. variant="chart" follows the cursor
20
- * on hover and toggles on tap so a bar or point can show the period and value. Chart
21
- * tooltips dismiss on scroll and do not open on keyboard focus. Hint
22
- * tooltips hide once the control is pressed. Escape closes either. */
23
- export declare function Tooltip({ content, children, onOpenChange, variant, align, placement, portalRoot, className, ref, onPointerEnter, onPointerMove, onPointerLeave, onPointerDown, onFocusCapture, onBlurCapture, ...props }: TooltipProps): import("react").JSX.Element;
@@ -1,3 +0,0 @@
1
- import type { ComponentPropsWithRef } from 'react';
2
- /** Shared surface for floating hints and chart value inspection. */
3
- export declare function TooltipSurface({ className, ...props }: ComponentPropsWithRef<'span'>): import("react").JSX.Element;
@@ -1,5 +0,0 @@
1
- import type { ValueChartProps } from './chart-data.js';
2
- /** Ordered, equally spaced samples; negative values share an explicit zero baseline. */
3
- export declare function TrendChart({ items, unit, ariaLabel, formatValue, area, }: ValueChartProps & {
4
- area?: boolean;
5
- }): import("react").JSX.Element;
@@ -1,9 +0,0 @@
1
- import { type ReactNode } from 'react';
2
- import { type DateTimeTooltipProps } from './DateTimeTooltip.js';
3
- export type UpdatedAtProps = {
4
- timestamp: number;
5
- locale?: string;
6
- label?: string;
7
- children?: ReactNode;
8
- } & Omit<DateTimeTooltipProps, 'date' | 'children'>;
9
- export declare function UpdatedAt({ timestamp, locale, label, children, triggerProps, ...props }: UpdatedAtProps): import("react").JSX.Element;
@@ -1,6 +0,0 @@
1
- import type { ComponentPropsWithRef, ReactNode } from 'react';
2
- export type VariableBarProps = {
3
- children: ReactNode;
4
- } & Omit<ComponentPropsWithRef<'div'>, 'children'>;
5
- /** User-controlled inputs below the page header. */
6
- export declare function VariableBar({ children, className, role, 'aria-label': ariaLabel, ...props }: VariableBarProps): import("react").JSX.Element;
@@ -1,43 +0,0 @@
1
- import { type ComponentPropsWithRef, type ReactNode } from 'react';
2
- import { type DataWidgetProps } from './DataWidget.js';
3
- import type { BoundWidgetReading } from './presentation.js';
4
- type VisualizationWidgetBaseProps = Pick<DataWidgetProps, 'title' | 'headingLevel' | 'annotationId' | 'description' | 'count' | 'action' | 'evidence' | 'status' | 'emptyFallback'> & {
5
- /** Footer controls, such as table pagination. */
6
- footer?: ReactNode;
7
- } & Omit<ComponentPropsWithRef<'section'>, 'about' | 'title' | 'children'>;
8
- type UnboundVisualizationWidgetProps = VisualizationWidgetBaseProps & ({
9
- loading: true;
10
- loadingContent?: ReactNode;
11
- visual?: never;
12
- } | {
13
- loading?: false;
14
- visual: ReactNode;
15
- loadingContent?: never;
16
- });
17
- export type VisualizationWidgetView<Data> = {
18
- /** Stable, nonempty identity; unique within this widget. */
19
- id: string;
20
- label: ReactNode;
21
- render: (data: Data) => ReactNode;
22
- };
23
- type BoundVisualizationWidgetBase<Data> = VisualizationWidgetBaseProps & BoundWidgetReading<Data> & {
24
- visual?: never;
25
- loading?: never;
26
- };
27
- /** DataWidget frame for charts, DataTable, metrics, or a custom data display.
28
- * Owns alternate-view selection and shares it with inspection. Built-in charts own
29
- * transient tooltips; lift persistent custom interactions above both mounts.
30
- * For narrative prose use the sibling TextWidget, which composes DataWidget directly. */
31
- export type VisualizationWidgetProps<Data = unknown> = UnboundVisualizationWidgetProps | (BoundVisualizationWidgetBase<Data> & {
32
- children: (data: Data) => ReactNode;
33
- views?: never;
34
- }) | (BoundVisualizationWidgetBase<Data> & {
35
- views: readonly VisualizationWidgetView<Data>[];
36
- viewLabel: string;
37
- /** An existing view ID; defaults to the first view. Validated while loading too. */
38
- initialView?: string;
39
- children?: never;
40
- });
41
- /** Compose an unframed visual with the shared heading and inspection. */
42
- export declare function VisualizationWidget<Data>(props: VisualizationWidgetProps<Data>): import("react").JSX.Element;
43
- export {};
@@ -1,6 +0,0 @@
1
- import type { ComponentPropsWithRef, ReactNode } from 'react';
2
- export type WidgetDisclosureProps = {
3
- label: ReactNode;
4
- children: ReactNode;
5
- } & Omit<ComponentPropsWithRef<'details'>, 'children'>;
6
- export declare function WidgetDisclosure({ label, children, className, ...props }: WidgetDisclosureProps): import("react").JSX.Element;
@@ -1,12 +0,0 @@
1
- import type { AboutSubject } from './AboutData.js';
2
- type EvidenceDetails = Omit<AboutSubject, 'id' | 'title' | 'description' | 'visual' | 'visualKind' | 'references'> & {
3
- id: string;
4
- };
5
- export type WidgetEvidence = EvidenceDetails & ({
6
- glossaryIds: [string, ...string[]];
7
- queryNames?: string[];
8
- } | {
9
- queryNames: [string, ...string[]];
10
- glossaryIds?: string[];
11
- });
12
- export {};
@@ -1,16 +0,0 @@
1
- import type { ComponentPropsWithRef, ReactNode } from 'react';
2
- import type { EmptyContent } from './presentation.js';
3
- export type WidgetView = {
4
- id: string;
5
- label: ReactNode;
6
- content: ReactNode;
7
- emptyFallback: EmptyContent;
8
- isEmpty: boolean;
9
- };
10
- export type WidgetViewTabsProps<Views extends readonly WidgetView[] = readonly WidgetView[]> = {
11
- label: string;
12
- views: Views;
13
- selectedKey: NoInfer<Views[number]['id']>;
14
- onSelectionChange: (key: Views[number]['id']) => void;
15
- } & Omit<ComponentPropsWithRef<'div'>, 'children'>;
16
- export declare function WidgetViewTabs<const Views extends readonly WidgetView[]>({ label, views, selectedKey, onSelectionChange, className, ...props }: WidgetViewTabsProps<Views>): import("react").JSX.Element;
@@ -1,34 +0,0 @@
1
- /** Ordered category or time-series sample. IDs are unique and nonblank; values are finite. */
2
- export type ChartItem = {
3
- id: string;
4
- label: string;
5
- value: number;
6
- };
7
- export type ValueChartProps = {
8
- /** Ordered samples; the chart validates IDs and values when rendering. */
9
- items: readonly ChartItem[];
10
- unit: string;
11
- ariaLabel: string;
12
- formatValue?: (value: number) => string;
13
- };
14
- export type CountChartProps = {
15
- /** Accessible measure and scope description. */
16
- ariaLabel: string;
17
- /** Population unit, such as users or sessions. */
18
- unit: string;
19
- /** Formats counts; rates use percentage formatting. */
20
- formatValue?: (value: number) => string;
21
- className?: string;
22
- };
23
- /** Independent observation on two finite numeric axes. */
24
- export type ScatterChartItem = {
25
- id: string;
26
- label: string;
27
- x: number;
28
- y: number;
29
- };
30
- type ChartKind = 'bar' | 'line' | 'area' | 'pie' | 'scatter';
31
- type ItemFor<Kind extends ChartKind> = Kind extends 'scatter' ? ScatterChartItem : ChartItem;
32
- /** Validate standalone item-based chart inputs. */
33
- export declare function validateChartItems<Kind extends ChartKind>(kind: Kind, items: readonly ItemFor<Kind>[]): void;
34
- export {};