@trinityui/design-system 2.11.0 → 2.13.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 (518) hide show
  1. package/CHANGELOG.md +2209 -0
  2. package/CONTRIBUTING.md +180 -69
  3. package/LICENSE +21 -0
  4. package/MIGRATION.md +523 -21
  5. package/README.md +281 -120
  6. package/dist/IllustratedMessage.js +546 -1341
  7. package/dist/accessibility.d.ts +596 -18
  8. package/dist/accessibility.d.ts.map +1 -1
  9. package/dist/accessibility.js +458 -0
  10. package/dist/app-shell.js +17230 -9097
  11. package/dist/assets/index.d.ts +1 -1
  12. package/dist/charts.js +8507 -6059
  13. package/dist/color-contrast.d.ts +35 -0
  14. package/dist/color-contrast.d.ts.map +1 -0
  15. package/dist/commonjs-helpers.js +8 -0
  16. package/dist/component-color-references.d.ts +175 -0
  17. package/dist/component-color-references.d.ts.map +1 -0
  18. package/dist/components/AI/AIActions.d.ts +72 -12
  19. package/dist/components/AI/AIActions.d.ts.map +1 -1
  20. package/dist/components/AI/AIAvatar.d.ts +31 -3
  21. package/dist/components/AI/AIAvatar.d.ts.map +1 -1
  22. package/dist/components/AI/AIChainOfThought.d.ts +192 -72
  23. package/dist/components/AI/AIChainOfThought.d.ts.map +1 -1
  24. package/dist/components/AI/AIChainOfThought.types.d.ts +296 -34
  25. package/dist/components/AI/AIChainOfThought.types.d.ts.map +1 -1
  26. package/dist/components/AI/AIChainOfThought.utils.d.ts +25 -7
  27. package/dist/components/AI/AIChainOfThought.utils.d.ts.map +1 -1
  28. package/dist/components/AI/AIChat.d.ts +12 -0
  29. package/dist/components/AI/AIChat.d.ts.map +1 -1
  30. package/dist/components/AI/AIChatWelcome.d.ts +254 -0
  31. package/dist/components/AI/AIChatWelcome.d.ts.map +1 -0
  32. package/dist/components/AI/AIClarificationPrompt.d.ts +134 -0
  33. package/dist/components/AI/AIClarificationPrompt.d.ts.map +1 -0
  34. package/dist/components/AI/AIConfidenceBadge.d.ts +117 -0
  35. package/dist/components/AI/AIConfidenceBadge.d.ts.map +1 -0
  36. package/dist/components/AI/AIConfigContext.d.ts +100 -0
  37. package/dist/components/AI/AIConfigContext.d.ts.map +1 -0
  38. package/dist/components/AI/AIConfigProvider.d.ts +66 -0
  39. package/dist/components/AI/AIConfigProvider.d.ts.map +1 -0
  40. package/dist/components/AI/AIContainer.d.ts +80 -11
  41. package/dist/components/AI/AIContainer.d.ts.map +1 -1
  42. package/dist/components/AI/AIExplainability.d.ts +39 -5
  43. package/dist/components/AI/AIExplainability.d.ts.map +1 -1
  44. package/dist/components/AI/AIFeedbackControl.d.ts +113 -0
  45. package/dist/components/AI/AIFeedbackControl.d.ts.map +1 -0
  46. package/dist/components/AI/AIFeedbackForm.d.ts +117 -0
  47. package/dist/components/AI/AIFeedbackForm.d.ts.map +1 -0
  48. package/dist/components/AI/AIFeedbackHostContext.d.ts +16 -0
  49. package/dist/components/AI/AIFeedbackHostContext.d.ts.map +1 -0
  50. package/dist/components/AI/AILabel.d.ts +39 -6
  51. package/dist/components/AI/AILabel.d.ts.map +1 -1
  52. package/dist/components/AI/AIMessage.d.ts +337 -42
  53. package/dist/components/AI/AIMessage.d.ts.map +1 -1
  54. package/dist/components/AI/AIPlanReview.d.ts +194 -0
  55. package/dist/components/AI/AIPlanReview.d.ts.map +1 -0
  56. package/dist/components/AI/AIQueryDisclosure.d.ts +119 -0
  57. package/dist/components/AI/AIQueryDisclosure.d.ts.map +1 -0
  58. package/dist/components/AI/AIRelatedQuestions.d.ts +50 -11
  59. package/dist/components/AI/AIRelatedQuestions.d.ts.map +1 -1
  60. package/dist/components/AI/AIResponseRenderer.d.ts +133 -21
  61. package/dist/components/AI/AIResponseRenderer.d.ts.map +1 -1
  62. package/dist/components/AI/AIResponseSourcesContext.d.ts +83 -0
  63. package/dist/components/AI/AIResponseSourcesContext.d.ts.map +1 -0
  64. package/dist/components/AI/AIReviewItem.d.ts +142 -0
  65. package/dist/components/AI/AIReviewItem.d.ts.map +1 -0
  66. package/dist/components/AI/AISourceChip.d.ts +135 -0
  67. package/dist/components/AI/AISourceChip.d.ts.map +1 -0
  68. package/dist/components/AI/AISources.d.ts +91 -13
  69. package/dist/components/AI/AISources.d.ts.map +1 -1
  70. package/dist/components/AI/AISourcesPanel.d.ts +43 -7
  71. package/dist/components/AI/AISourcesPanel.d.ts.map +1 -1
  72. package/dist/components/AI/AITextBlock.d.ts +107 -17
  73. package/dist/components/AI/AITextBlock.d.ts.map +1 -1
  74. package/dist/components/AI/AITextBlock.parser.d.ts +153 -0
  75. package/dist/components/AI/AITextBlock.parser.d.ts.map +1 -0
  76. package/dist/components/AI/AIVerificationBadge.d.ts +94 -0
  77. package/dist/components/AI/AIVerificationBadge.d.ts.map +1 -0
  78. package/dist/components/AI/AIVisuals.d.ts +92 -23
  79. package/dist/components/AI/AIVisuals.d.ts.map +1 -1
  80. package/dist/components/AI/AIVoiceInput.d.ts +42 -11
  81. package/dist/components/AI/AIVoiceInput.d.ts.map +1 -1
  82. package/dist/components/AI/AIVoiceMode.d.ts +16 -2
  83. package/dist/components/AI/AIVoiceMode.d.ts.map +1 -1
  84. package/dist/components/AI/BlockErrorBoundary.d.ts +77 -0
  85. package/dist/components/AI/BlockErrorBoundary.d.ts.map +1 -0
  86. package/dist/components/AI/ChatHeader.d.ts +41 -4
  87. package/dist/components/AI/ChatHeader.d.ts.map +1 -1
  88. package/dist/components/AI/ChatHistoryList.d.ts +25 -12
  89. package/dist/components/AI/ChatHistoryList.d.ts.map +1 -1
  90. package/dist/components/AI/ChatThread.d.ts +263 -13
  91. package/dist/components/AI/ChatThread.d.ts.map +1 -1
  92. package/dist/components/AI/InThreadContext.d.ts +14 -0
  93. package/dist/components/AI/InThreadContext.d.ts.map +1 -0
  94. package/dist/components/AI/InsightEngine.d.ts +270 -46
  95. package/dist/components/AI/InsightEngine.d.ts.map +1 -1
  96. package/dist/components/AI/InsightEngineInput.d.ts +52 -5
  97. package/dist/components/AI/InsightEngineInput.d.ts.map +1 -1
  98. package/dist/components/AI/MessageActionButton.d.ts +72 -0
  99. package/dist/components/AI/MessageActionButton.d.ts.map +1 -0
  100. package/dist/components/AI/QueryInput.d.ts.map +1 -1
  101. package/dist/components/AI/UserAvatar.d.ts +50 -4
  102. package/dist/components/AI/UserAvatar.d.ts.map +1 -1
  103. package/dist/components/AI/UserMessage.d.ts +32 -3
  104. package/dist/components/AI/UserMessage.d.ts.map +1 -1
  105. package/dist/components/AI/blockRendererContext.d.ts +64 -0
  106. package/dist/components/AI/blockRendererContext.d.ts.map +1 -0
  107. package/dist/components/AI/hitlBlockRenderers.d.ts +48 -0
  108. package/dist/components/AI/hitlBlockRenderers.d.ts.map +1 -0
  109. package/dist/components/AI/index.d.ts +23 -6
  110. package/dist/components/AI/index.d.ts.map +1 -1
  111. package/dist/components/AI/moleculeBlockRenderers.d.ts +15 -0
  112. package/dist/components/AI/moleculeBlockRenderers.d.ts.map +1 -0
  113. package/dist/components/AI/planReviewBlockRenderer.d.ts +8 -0
  114. package/dist/components/AI/planReviewBlockRenderer.d.ts.map +1 -0
  115. package/dist/components/AI/strings/defaults.d.ts +31 -0
  116. package/dist/components/AI/strings/defaults.d.ts.map +1 -0
  117. package/dist/components/AI/tokens.d.ts +185 -20
  118. package/dist/components/AI/tokens.d.ts.map +1 -1
  119. package/dist/components/AI/types/hitl.d.ts +2294 -0
  120. package/dist/components/AI/types/hitl.d.ts.map +1 -0
  121. package/dist/components/AI/types/index.d.ts +2 -1
  122. package/dist/components/AI/types/index.d.ts.map +1 -1
  123. package/dist/components/AI/types/response.d.ts +428 -40
  124. package/dist/components/AI/types/response.d.ts.map +1 -1
  125. package/dist/components/AI/useBlockSources.d.ts +67 -0
  126. package/dist/components/AI/useBlockSources.d.ts.map +1 -0
  127. package/dist/components/AI/useBrowserVoiceMode.d.ts +31 -2
  128. package/dist/components/AI/useBrowserVoiceMode.d.ts.map +1 -1
  129. package/dist/components/AI/useWelcomeComposerHandoff.d.ts +30 -0
  130. package/dist/components/AI/useWelcomeComposerHandoff.d.ts.map +1 -0
  131. package/dist/components/AI/utils/alphaIndex.d.ts +19 -0
  132. package/dist/components/AI/utils/alphaIndex.d.ts.map +1 -0
  133. package/dist/components/AI/utils/blockReady.d.ts +54 -0
  134. package/dist/components/AI/utils/blockReady.d.ts.map +1 -0
  135. package/dist/components/AI/utils/blocks.d.ts +28 -0
  136. package/dist/components/AI/utils/blocks.d.ts.map +1 -0
  137. package/dist/components/AI/utils/confidence.d.ts +182 -0
  138. package/dist/components/AI/utils/confidence.d.ts.map +1 -0
  139. package/dist/components/AI/utils/filters.d.ts +31 -0
  140. package/dist/components/AI/utils/filters.d.ts.map +1 -0
  141. package/dist/components/AI/utils/responseText.d.ts +8 -0
  142. package/dist/components/AI/utils/responseText.d.ts.map +1 -0
  143. package/dist/components/AI/utils/sources.d.ts +110 -0
  144. package/dist/components/AI/utils/sources.d.ts.map +1 -0
  145. package/dist/components/AIDigestCard/AIDigestCard.d.ts.map +1 -1
  146. package/dist/components/AIDigestCard/types.d.ts +42 -5
  147. package/dist/components/AIDigestCard/types.d.ts.map +1 -1
  148. package/dist/components/AppLayout/AIFab.d.ts +33 -6
  149. package/dist/components/AppLayout/AIFab.d.ts.map +1 -1
  150. package/dist/components/AppLayout/AIFabLayout.deprecated.d.ts.map +1 -1
  151. package/dist/components/AppLayout/AppLayout.d.ts +135 -7
  152. package/dist/components/AppLayout/AppLayout.d.ts.map +1 -1
  153. package/dist/components/AppLayout/InsightEnginePanel.d.ts +315 -21
  154. package/dist/components/AppLayout/InsightEnginePanel.d.ts.map +1 -1
  155. package/dist/components/AppLayout/ResizablePanel.d.ts +145 -8
  156. package/dist/components/AppLayout/ResizablePanel.d.ts.map +1 -1
  157. package/dist/components/AppLayout/ThreadHistorySidebar.d.ts +6 -0
  158. package/dist/components/AppLayout/ThreadHistorySidebar.d.ts.map +1 -1
  159. package/dist/components/AppLayout/index.d.ts +3 -3
  160. package/dist/components/AppLayout/index.d.ts.map +1 -1
  161. package/dist/components/AppLayout/insightEnginePanel.demo.d.ts +32 -0
  162. package/dist/components/AppLayout/insightEnginePanel.demo.d.ts.map +1 -0
  163. package/dist/components/AppLayout/panelPropsPath.d.ts +26 -0
  164. package/dist/components/AppLayout/panelPropsPath.d.ts.map +1 -0
  165. package/dist/components/AppLayout/panelResizeTransition.d.ts +49 -0
  166. package/dist/components/AppLayout/panelResizeTransition.d.ts.map +1 -0
  167. package/dist/components/AppLayout/toChatThreadMessage.d.ts +40 -0
  168. package/dist/components/AppLayout/toChatThreadMessage.d.ts.map +1 -0
  169. package/dist/components/AssessmentDrawer/AssessmentDrawer.d.ts +5 -1
  170. package/dist/components/AssessmentDrawer/AssessmentDrawer.d.ts.map +1 -1
  171. package/dist/components/AuditDrawer/AuditDrawer.d.ts +4 -3
  172. package/dist/components/AuditDrawer/AuditDrawer.d.ts.map +1 -1
  173. package/dist/components/AuditDrawer/index.d.ts +1 -1
  174. package/dist/components/AuditDrawer/index.d.ts.map +1 -1
  175. package/dist/components/AuditDrawer/types.d.ts +39 -5
  176. package/dist/components/AuditDrawer/types.d.ts.map +1 -1
  177. package/dist/components/Autocomplete/Autocomplete.d.ts +6 -1
  178. package/dist/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  179. package/dist/components/BulkActionDock/BulkActionDock.d.ts.map +1 -1
  180. package/dist/components/Carousel/Carousel.d.ts +10 -2
  181. package/dist/components/Carousel/Carousel.d.ts.map +1 -1
  182. package/dist/components/Charts/AreaChart.d.ts.map +1 -1
  183. package/dist/components/Charts/BarChart.d.ts.map +1 -1
  184. package/dist/components/Charts/ChartWrapper.d.ts.map +1 -1
  185. package/dist/components/Charts/ComposedChart.d.ts.map +1 -1
  186. package/dist/components/Charts/CustomLegend.d.ts +11 -2
  187. package/dist/components/Charts/CustomLegend.d.ts.map +1 -1
  188. package/dist/components/Charts/LineChart.d.ts.map +1 -1
  189. package/dist/components/Charts/PieChart.d.ts.map +1 -1
  190. package/dist/components/Charts/RadialChart.d.ts.map +1 -1
  191. package/dist/components/Charts/ScatterChart.d.ts.map +1 -1
  192. package/dist/components/Charts/Sparkline.d.ts.map +1 -1
  193. package/dist/components/Charts/gaugeGeometry.d.ts +35 -0
  194. package/dist/components/Charts/gaugeGeometry.d.ts.map +1 -0
  195. package/dist/components/Charts/highcharts.d.ts +23 -0
  196. package/dist/components/Charts/highcharts.d.ts.map +1 -0
  197. package/dist/components/Charts/highchartsUtils.d.ts +101 -6
  198. package/dist/components/Charts/highchartsUtils.d.ts.map +1 -1
  199. package/dist/components/Charts/index.d.ts +1 -1
  200. package/dist/components/Charts/index.d.ts.map +1 -1
  201. package/dist/components/Charts/tokens.d.ts +21 -0
  202. package/dist/components/Charts/tokens.d.ts.map +1 -1
  203. package/dist/components/Charts/types.d.ts +7 -7
  204. package/dist/components/Charts/types.d.ts.map +1 -1
  205. package/dist/components/ChipsInput/ChipsInput.d.ts.map +1 -1
  206. package/dist/components/ChoiceChips/ChoiceChips.d.ts +106 -0
  207. package/dist/components/ChoiceChips/ChoiceChips.d.ts.map +1 -0
  208. package/dist/components/ClearableTextField/ClearableTextField.d.ts +23 -2
  209. package/dist/components/ClearableTextField/ClearableTextField.d.ts.map +1 -1
  210. package/dist/components/CodeBlock/CodeBlock.d.ts +80 -0
  211. package/dist/components/CodeBlock/CodeBlock.d.ts.map +1 -0
  212. package/dist/components/Combobox/Combobox.d.ts +3 -2
  213. package/dist/components/Combobox/Combobox.d.ts.map +1 -1
  214. package/dist/components/CommandPalette/CommandPalette.d.ts +54 -3
  215. package/dist/components/CommandPalette/CommandPalette.d.ts.map +1 -1
  216. package/dist/components/CommandPalette/index.d.ts +1 -1
  217. package/dist/components/CommandPalette/index.d.ts.map +1 -1
  218. package/dist/components/CopyButton/CopyButton.d.ts +80 -0
  219. package/dist/components/CopyButton/CopyButton.d.ts.map +1 -0
  220. package/dist/components/DataCard/DataCard.d.ts +11 -1
  221. package/dist/components/DataCard/DataCard.d.ts.map +1 -1
  222. package/dist/components/DataTable/CellRenderers.d.ts +8 -11
  223. package/dist/components/DataTable/CellRenderers.d.ts.map +1 -1
  224. package/dist/components/DataTable/DataTable.d.ts +1 -1
  225. package/dist/components/DataTable/DataTable.d.ts.map +1 -1
  226. package/dist/components/DataTable/InlineAddRow.d.ts.map +1 -1
  227. package/dist/components/DataTable/columnContext.d.ts +8 -0
  228. package/dist/components/DataTable/columnContext.d.ts.map +1 -0
  229. package/dist/components/DataTable/index.d.ts +2 -2
  230. package/dist/components/DataTable/index.d.ts.map +1 -1
  231. package/dist/components/DataTable/labels.d.ts +13 -0
  232. package/dist/components/DataTable/labels.d.ts.map +1 -0
  233. package/dist/components/DataTable/types.d.ts +34 -0
  234. package/dist/components/DataTable/types.d.ts.map +1 -1
  235. package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
  236. package/dist/components/DetailsPopover/DetailsPopover.d.ts +185 -0
  237. package/dist/components/DetailsPopover/DetailsPopover.d.ts.map +1 -0
  238. package/dist/components/DiffViewer/DiffViewer.d.ts +3 -2
  239. package/dist/components/DiffViewer/DiffViewer.d.ts.map +1 -1
  240. package/dist/components/Disclosure/Disclosure.d.ts +83 -0
  241. package/dist/components/Disclosure/Disclosure.d.ts.map +1 -0
  242. package/dist/components/DockLayout/DockLayout.d.ts +58 -0
  243. package/dist/components/DockLayout/DockLayout.d.ts.map +1 -1
  244. package/dist/components/DockLayout/index.d.ts +1 -1
  245. package/dist/components/DockLayout/index.d.ts.map +1 -1
  246. package/dist/components/DocumentCard/DocumentCard.d.ts +5 -1
  247. package/dist/components/DocumentCard/DocumentCard.d.ts.map +1 -1
  248. package/dist/components/EntityDetailPanel/EntityDetailPanel.d.ts +6 -2
  249. package/dist/components/EntityDetailPanel/EntityDetailPanel.d.ts.map +1 -1
  250. package/dist/components/FileUpload/FileUpload.d.ts +141 -6
  251. package/dist/components/FileUpload/FileUpload.d.ts.map +1 -1
  252. package/dist/components/FileUpload/index.d.ts +1 -1
  253. package/dist/components/FileUpload/index.d.ts.map +1 -1
  254. package/dist/components/FilterBar/FilterBar.d.ts +27 -1
  255. package/dist/components/FilterBar/FilterBar.d.ts.map +1 -1
  256. package/dist/components/FilterBar/index.d.ts +1 -1
  257. package/dist/components/FilterBar/index.d.ts.map +1 -1
  258. package/dist/components/FlowAutoLayout/useFlowAutoLayout.d.ts.map +1 -1
  259. package/dist/components/GanttView/GanttView.d.ts +24 -0
  260. package/dist/components/GanttView/GanttView.d.ts.map +1 -1
  261. package/dist/components/GanttView/types.d.ts +33 -7
  262. package/dist/components/GanttView/types.d.ts.map +1 -1
  263. package/dist/components/GaugeCard/GaugeCard.d.ts +4 -3
  264. package/dist/components/GaugeCard/GaugeCard.d.ts.map +1 -1
  265. package/dist/components/GaugeCard/geometry.d.ts +59 -0
  266. package/dist/components/GaugeCard/geometry.d.ts.map +1 -0
  267. package/dist/components/GeoStatusMap/GeoStatusMap.d.ts.map +1 -1
  268. package/dist/components/GeoStatusMap/types.d.ts +8 -5
  269. package/dist/components/GeoStatusMap/types.d.ts.map +1 -1
  270. package/dist/components/GoToTop/GoToTop.d.ts +1 -1
  271. package/dist/components/GoToTop/GoToTop.d.ts.map +1 -1
  272. package/dist/components/HierarchicalDrillDown/HierarchicalDrillDown.d.ts.map +1 -1
  273. package/dist/components/HistoricalDataIndicator/HistoricalDataIndicator.d.ts.map +1 -1
  274. package/dist/components/HtmlToMui/HtmlToMui.d.ts +32 -2
  275. package/dist/components/HtmlToMui/HtmlToMui.d.ts.map +1 -1
  276. package/dist/components/Icon.d.ts +567 -10
  277. package/dist/components/Icon.d.ts.map +1 -1
  278. package/dist/components/IllustratedMessage.d.ts +52 -3
  279. package/dist/components/IllustratedMessage.d.ts.map +1 -1
  280. package/dist/components/InlineEditableText/InlineEditableText.d.ts +117 -0
  281. package/dist/components/InlineEditableText/InlineEditableText.d.ts.map +1 -0
  282. package/dist/components/InsightCard/InsightCard.d.ts.map +1 -1
  283. package/dist/components/InsightCard/types.d.ts +10 -3
  284. package/dist/components/InsightCard/types.d.ts.map +1 -1
  285. package/dist/components/KeyValueList/KeyValueList.d.ts +94 -0
  286. package/dist/components/KeyValueList/KeyValueList.d.ts.map +1 -0
  287. package/dist/components/LandingPage/FeatureCard.d.ts +4 -0
  288. package/dist/components/LandingPage/FeatureCard.d.ts.map +1 -1
  289. package/dist/components/LandingPage/LandingPage.d.ts +43 -4
  290. package/dist/components/LandingPage/LandingPage.d.ts.map +1 -1
  291. package/dist/components/LandingPage/heroTone.d.ts +54 -0
  292. package/dist/components/LandingPage/heroTone.d.ts.map +1 -0
  293. package/dist/components/MentionsInput/MentionsInput.d.ts.map +1 -1
  294. package/dist/components/MetaChip/MetaChip.d.ts +113 -0
  295. package/dist/components/MetaChip/MetaChip.d.ts.map +1 -0
  296. package/dist/components/Modal/Modal.d.ts +222 -20
  297. package/dist/components/Modal/Modal.d.ts.map +1 -1
  298. package/dist/components/Modal/index.d.ts +1 -1
  299. package/dist/components/Modal/index.d.ts.map +1 -1
  300. package/dist/components/NotificationCenter/NotificationCenter.d.ts.map +1 -1
  301. package/dist/components/OrgChart/OrgChart.d.ts +5 -0
  302. package/dist/components/OrgChart/OrgChart.d.ts.map +1 -1
  303. package/dist/components/OrgChart/types.d.ts +31 -7
  304. package/dist/components/OrgChart/types.d.ts.map +1 -1
  305. package/dist/components/OverflowTooltip/OverflowTooltip.d.ts +1 -1
  306. package/dist/components/OverflowTooltip/OverflowTooltip.d.ts.map +1 -1
  307. package/dist/components/PageHeader/PageHeader.d.ts.map +1 -1
  308. package/dist/components/PageTOC/PageTOC.d.ts +2 -1
  309. package/dist/components/PageTOC/PageTOC.d.ts.map +1 -1
  310. package/dist/components/Popper/Popper.d.ts +80 -9
  311. package/dist/components/Popper/Popper.d.ts.map +1 -1
  312. package/dist/components/Popper/index.d.ts +1 -1
  313. package/dist/components/Popper/index.d.ts.map +1 -1
  314. package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts +5 -1
  315. package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts.map +1 -1
  316. package/dist/components/SandboxedIframeRenderer/SandboxedIframeRenderer.d.ts +48 -4
  317. package/dist/components/SandboxedIframeRenderer/SandboxedIframeRenderer.d.ts.map +1 -1
  318. package/dist/components/SearchInput/SearchInput.d.ts +49 -0
  319. package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
  320. package/dist/components/SearchInput/index.d.ts +1 -1
  321. package/dist/components/SearchInput/index.d.ts.map +1 -1
  322. package/dist/components/SimpleTable/SimpleTable.d.ts +11 -2
  323. package/dist/components/SimpleTable/SimpleTable.d.ts.map +1 -1
  324. package/dist/components/SplitPane/SplitPane.d.ts +2 -1
  325. package/dist/components/SplitPane/SplitPane.d.ts.map +1 -1
  326. package/dist/components/StatusHero/StatusHero.d.ts.map +1 -1
  327. package/dist/components/StatusIndicator/Badge.d.ts +6 -1
  328. package/dist/components/StatusIndicator/Badge.d.ts.map +1 -1
  329. package/dist/components/StatusIndicator/Chip.d.ts +3 -1
  330. package/dist/components/StatusIndicator/Chip.d.ts.map +1 -1
  331. package/dist/components/StatusIndicator/Indicators.d.ts +5 -1
  332. package/dist/components/StatusIndicator/Indicators.d.ts.map +1 -1
  333. package/dist/components/StatusIndicator/Legend.d.ts.map +1 -1
  334. package/dist/components/StatusIndicator/StatusIndicator.d.ts +98 -4
  335. package/dist/components/StatusIndicator/StatusIndicator.d.ts.map +1 -1
  336. package/dist/components/StatusIndicator/index.d.ts +2 -2
  337. package/dist/components/StatusIndicator/index.d.ts.map +1 -1
  338. package/dist/components/StatusIndicator/types.d.ts +48 -1
  339. package/dist/components/StatusIndicator/types.d.ts.map +1 -1
  340. package/dist/components/StepList/StepList.d.ts +80 -0
  341. package/dist/components/StepList/StepList.d.ts.map +1 -0
  342. package/dist/components/StepList/StepStatusMarker.d.ts +39 -0
  343. package/dist/components/StepList/StepStatusMarker.d.ts.map +1 -0
  344. package/dist/components/StepList/stepStatus.d.ts +30 -0
  345. package/dist/components/StepList/stepStatus.d.ts.map +1 -0
  346. package/dist/components/SystemBanner/SystemBanner.d.ts.map +1 -1
  347. package/dist/components/Timeline/Timeline.d.ts +57 -3
  348. package/dist/components/Timeline/Timeline.d.ts.map +1 -1
  349. package/dist/components/Timeline/index.d.ts +1 -1
  350. package/dist/components/Timeline/index.d.ts.map +1 -1
  351. package/dist/components/Timeline/timelineLabels.d.ts +70 -0
  352. package/dist/components/Timeline/timelineLabels.d.ts.map +1 -0
  353. package/dist/components/Toast/Toast.d.ts.map +1 -1
  354. package/dist/components/TopNavHeader.d.ts +6 -0
  355. package/dist/components/TopNavHeader.d.ts.map +1 -1
  356. package/dist/components/TopNavWithSidebar.d.ts +49 -1
  357. package/dist/components/TopNavWithSidebar.d.ts.map +1 -1
  358. package/dist/components/Tour/Tour.d.ts +18 -1
  359. package/dist/components/Tour/Tour.d.ts.map +1 -1
  360. package/dist/components/TransferList/TransferList.d.ts +123 -4
  361. package/dist/components/TransferList/TransferList.d.ts.map +1 -1
  362. package/dist/components/TransferList/index.d.ts +1 -1
  363. package/dist/components/TransferList/index.d.ts.map +1 -1
  364. package/dist/components/TreeView/TreeView.d.ts +97 -8
  365. package/dist/components/TreeView/TreeView.d.ts.map +1 -1
  366. package/dist/components/TreeView/index.d.ts +1 -1
  367. package/dist/components/TreeView/index.d.ts.map +1 -1
  368. package/dist/components/TrinityLoader.d.ts.map +1 -1
  369. package/dist/components/icons/featherExtensions.d.ts +55 -0
  370. package/dist/components/icons/featherExtensions.d.ts.map +1 -0
  371. package/dist/components/icons/materialExtensions.d.ts +20 -0
  372. package/dist/components/icons/materialExtensions.d.ts.map +1 -0
  373. package/dist/components/internal/index.d.ts +87 -0
  374. package/dist/components/internal/index.d.ts.map +1 -1
  375. package/dist/components/navigation/MenuListWithHeading.d.ts +33 -0
  376. package/dist/components/navigation/MenuListWithHeading.d.ts.map +1 -0
  377. package/dist/components/navigation/clientSelectorLabels.d.ts +13 -0
  378. package/dist/components/navigation/clientSelectorLabels.d.ts.map +1 -0
  379. package/dist/components/navigation/components.d.ts +6 -0
  380. package/dist/components/navigation/components.d.ts.map +1 -1
  381. package/dist/components/shared/AsyncOutcomeAlert.d.ts +91 -0
  382. package/dist/components/shared/AsyncOutcomeAlert.d.ts.map +1 -0
  383. package/dist/components/shared/TrinityIconSvg.d.ts.map +1 -1
  384. package/dist/components/shared/TrinityLogoSvg.d.ts.map +1 -1
  385. package/dist/components/shared/bidi.d.ts +44 -0
  386. package/dist/components/shared/bidi.d.ts.map +1 -0
  387. package/dist/components/shared/bidiText.d.ts +25 -0
  388. package/dist/components/shared/bidiText.d.ts.map +1 -0
  389. package/dist/components/shared/containerQueries.d.ts +73 -0
  390. package/dist/components/shared/containerQueries.d.ts.map +1 -0
  391. package/dist/components/shared/createStringsContext.d.ts +69 -0
  392. package/dist/components/shared/createStringsContext.d.ts.map +1 -0
  393. package/dist/components/shared/direction.d.ts +46 -0
  394. package/dist/components/shared/direction.d.ts.map +1 -0
  395. package/dist/components/shared/focusTrap.d.ts +36 -0
  396. package/dist/components/shared/focusTrap.d.ts.map +1 -0
  397. package/dist/components/shared/getInitials.d.ts +29 -0
  398. package/dist/components/shared/getInitials.d.ts.map +1 -0
  399. package/dist/components/shared/headingLevel.d.ts +69 -0
  400. package/dist/components/shared/headingLevel.d.ts.map +1 -0
  401. package/dist/components/shared/mergeSlotProps.d.ts +50 -0
  402. package/dist/components/shared/mergeSlotProps.d.ts.map +1 -0
  403. package/dist/components/shared/mergeSx.d.ts +26 -0
  404. package/dist/components/shared/mergeSx.d.ts.map +1 -0
  405. package/dist/components/shared/motion.d.ts +110 -0
  406. package/dist/components/shared/motion.d.ts.map +1 -0
  407. package/dist/components/shared/occurrenceKeys.d.ts +23 -0
  408. package/dist/components/shared/occurrenceKeys.d.ts.map +1 -0
  409. package/dist/components/shared/primaryAction.d.ts +89 -0
  410. package/dist/components/shared/primaryAction.d.ts.map +1 -0
  411. package/dist/components/shared/resizeKeyboard.d.ts +68 -0
  412. package/dist/components/shared/resizeKeyboard.d.ts.map +1 -0
  413. package/dist/components/shared/rootProps.d.ts +117 -0
  414. package/dist/components/shared/rootProps.d.ts.map +1 -0
  415. package/dist/components/shared/safeContent.d.ts +136 -0
  416. package/dist/components/shared/safeContent.d.ts.map +1 -0
  417. package/dist/components/shared/targetSize.d.ts +64 -0
  418. package/dist/components/shared/targetSize.d.ts.map +1 -0
  419. package/dist/components/shared/useContainerInlineSize.d.ts +43 -0
  420. package/dist/components/shared/useContainerInlineSize.d.ts.map +1 -0
  421. package/dist/components/shared/useCopyAction.d.ts +35 -0
  422. package/dist/components/shared/useCopyAction.d.ts.map +1 -0
  423. package/dist/components/shared/useOverflow.d.ts +44 -0
  424. package/dist/components/shared/useOverflow.d.ts.map +1 -0
  425. package/dist/components/shared/useResizable.d.ts +106 -7
  426. package/dist/components/shared/useResizable.d.ts.map +1 -1
  427. package/dist/components/shared/warnDeprecated.d.ts +89 -15
  428. package/dist/components/shared/warnDeprecated.d.ts.map +1 -1
  429. package/dist/components/shared/zIndexRoles.d.ts +62 -0
  430. package/dist/components/shared/zIndexRoles.d.ts.map +1 -0
  431. package/dist/components/templates/AIReviewQueue/AIReviewQueueTemplate.d.ts +213 -0
  432. package/dist/components/templates/AIReviewQueue/AIReviewQueueTemplate.d.ts.map +1 -0
  433. package/dist/components/templates/AIReviewQueue/index.d.ts +2 -0
  434. package/dist/components/templates/AIReviewQueue/index.d.ts.map +1 -0
  435. package/dist/components/templates/Auth/AuthTemplate.d.ts.map +1 -1
  436. package/dist/components/templates/Auth/types.d.ts +4 -1
  437. package/dist/components/templates/Auth/types.d.ts.map +1 -1
  438. package/dist/components/templates/Catalog/CatalogTemplate.d.ts.map +1 -1
  439. package/dist/components/templates/ConnectorWizard/ConnectorWizardTemplate.d.ts.map +1 -1
  440. package/dist/components/templates/InsightsCenter/InsightsCenterTemplate.d.ts.map +1 -1
  441. package/dist/components/templates/IntegrationDetail/IntegrationDetailTemplate.d.ts.map +1 -1
  442. package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts +168 -10
  443. package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts.map +1 -1
  444. package/dist/components/templates/ListDetail/index.d.ts +1 -1
  445. package/dist/components/templates/ListDetail/index.d.ts.map +1 -1
  446. package/dist/components/templates/ListDetail/listDetailLabels.d.ts +106 -0
  447. package/dist/components/templates/ListDetail/listDetailLabels.d.ts.map +1 -0
  448. package/dist/components/templates/Onboarding/OnboardingTemplate.d.ts.map +1 -1
  449. package/dist/components/templates/Settings/SettingsTemplate.d.ts +0 -3
  450. package/dist/components/templates/Settings/SettingsTemplate.d.ts.map +1 -1
  451. package/dist/components/templates/Wizard/WizardTemplate.d.ts +4 -1
  452. package/dist/components/templates/Wizard/WizardTemplate.d.ts.map +1 -1
  453. package/dist/components/templates/index.d.ts +2 -1
  454. package/dist/components/templates/index.d.ts.map +1 -1
  455. package/dist/data-table.d.ts +1 -1
  456. package/dist/data-table.d.ts.map +1 -1
  457. package/dist/data-table.js +1 -0
  458. package/dist/data-table2.js +13522 -13465
  459. package/dist/data.js +213 -194
  460. package/dist/elk.bundled.js +47371 -0
  461. package/dist/essentials.d.ts +3 -3
  462. package/dist/essentials.d.ts.map +1 -1
  463. package/dist/essentials.js +179 -147
  464. package/dist/focus-on-replace.js +49 -0
  465. package/dist/form.d.ts +26 -4
  466. package/dist/form.d.ts.map +1 -1
  467. package/dist/forms.js +575 -483
  468. package/dist/foundation.js +3704 -0
  469. package/dist/hooks/storageStore.d.ts +51 -0
  470. package/dist/hooks/storageStore.d.ts.map +1 -0
  471. package/dist/hooks/useAsyncAction.d.ts +65 -0
  472. package/dist/hooks/useAsyncAction.d.ts.map +1 -0
  473. package/dist/hooks/useDisclosure.d.ts +190 -0
  474. package/dist/hooks/useDisclosure.d.ts.map +1 -0
  475. package/dist/hooks/useFocusOnReplace.d.ts +95 -0
  476. package/dist/hooks/useFocusOnReplace.d.ts.map +1 -0
  477. package/dist/hooks/useTrinityPalette.d.ts +38 -40
  478. package/dist/hooks/useTrinityPalette.d.ts.map +1 -1
  479. package/dist/hooks.d.ts +44 -6
  480. package/dist/hooks.d.ts.map +1 -1
  481. package/dist/hooks.js +301 -0
  482. package/dist/index.d.ts +71 -26
  483. package/dist/index.d.ts.map +1 -1
  484. package/dist/index.js +13923 -60619
  485. package/dist/patterns/AICopilotPattern/AICopilotPattern.d.ts +203 -0
  486. package/dist/patterns/AICopilotPattern/AICopilotPattern.d.ts.map +1 -0
  487. package/dist/patterns/AICopilotPattern/index.d.ts +3 -0
  488. package/dist/patterns/AICopilotPattern/index.d.ts.map +1 -0
  489. package/dist/patterns/index.d.ts +15 -0
  490. package/dist/patterns/index.d.ts.map +1 -0
  491. package/dist/presets/analytics.d.ts +8 -1
  492. package/dist/presets/analytics.d.ts.map +1 -1
  493. package/dist/presets/crm.d.ts +8 -1
  494. package/dist/presets/crm.d.ts.map +1 -1
  495. package/dist/presets/index.d.ts +1 -1
  496. package/dist/presets/portal.d.ts +8 -1
  497. package/dist/presets/portal.d.ts.map +1 -1
  498. package/dist/safe-content.js +792 -0
  499. package/dist/theme-augmentation.d.ts +388 -0
  500. package/dist/theme-augmentation.d.ts.map +1 -0
  501. package/dist/theme.d.ts +116 -30
  502. package/dist/theme.d.ts.map +1 -1
  503. package/dist/theme.js +891 -436
  504. package/dist/token-color.d.ts +14 -0
  505. package/dist/token-color.d.ts.map +1 -0
  506. package/dist/token-merge.d.ts +56 -0
  507. package/dist/token-merge.d.ts.map +1 -0
  508. package/dist/token-serialization.d.ts +65 -0
  509. package/dist/token-serialization.d.ts.map +1 -0
  510. package/dist/tokens.d.ts +882 -13
  511. package/dist/tokens.d.ts.map +1 -1
  512. package/dist/tokens.js +21 -19
  513. package/dist/trinity.css +1077 -414
  514. package/package.json +111 -90
  515. package/dist/components/index.d.ts +0 -145
  516. package/dist/components/index.d.ts.map +0 -1
  517. package/dist/components/shared.d.ts +0 -92
  518. package/dist/components/shared.d.ts.map +0 -1
@@ -15,12 +15,14 @@
15
15
  */
16
16
  import React from 'react';
17
17
  import { SxProps, Theme } from '@mui/material';
18
+ import { type HeadingLevel } from './shared/headingLevel';
19
+ import { type TrinityRootProps, type TrinitySlotProps } from './shared/rootProps';
18
20
  export type IllustrationType = 'empty-table' | 'empty-drafts' | 'getting-started' | 'empty-documents' | 'empty-insights' | 'no-results' | 'error-generic' | 'error-404' | 'error-500' | 'error-permission' | 'upload' | 'success' | 'no-notifications' | 'no-data' | 'offline';
19
21
  export type IllustratedMessageSize = 'small' | 'medium' | 'large';
20
22
  /**
21
- * Props for IllustratedMessage component.
23
+ * IllustratedMessage's own props.
22
24
  */
23
- export interface IllustratedMessageProps {
25
+ export interface IllustratedMessageOwnProps {
24
26
  /** Type of illustration to display */
25
27
  illustration: IllustrationType;
26
28
  /** Title text */
@@ -39,17 +41,64 @@ export interface IllustratedMessageProps {
39
41
  onClick?: () => void;
40
42
  href?: string;
41
43
  };
44
+ /**
45
+ * Your own actions, rendered in the actions row instead of the built-in buttons, for
46
+ * example a retry button that shows a pending state. Pass either `actions` or
47
+ * `primaryAction`/`secondaryAction`; with both, `actions` wins and a development warning
48
+ * names the conflict.
49
+ * @since 2.13.0
50
+ */
51
+ actions?: React.ReactNode;
42
52
  /** Size of the component */
43
53
  size?: IllustratedMessageSize;
54
+ /**
55
+ * Element of the title: 2 to 6. Default: `h6` for `small` and `medium`, `h5` for `large`,
56
+ * the elements the sizes rendered before the prop existed. The visual style follows `size`.
57
+ * @since 2.13.0
58
+ */
59
+ headingLevel?: HeadingLevel;
60
+ /**
61
+ * Ref to the title element. When it is passed the title gets `tabIndex={-1}`, so a page
62
+ * can move focus to it (for example after a failed load replaces the content); without it
63
+ * the title is not focusable.
64
+ * @since 2.13.0
65
+ */
66
+ titleRef?: React.Ref<HTMLHeadingElement>;
44
67
  /** Custom illustration component (overrides illustration prop) */
45
68
  customIllustration?: React.ReactNode;
46
- /** Additional styles */
69
+ /**
70
+ * Props for the Trinity-owned slots: `title` (the heading), `description` (the paragraph)
71
+ * and `actions` (the actions row). Each takes `className`, `sx`, `id`, `data-*` and HTML
72
+ * attributes.
73
+ * @since 2.13.0
74
+ */
75
+ slotProps?: {
76
+ title?: TrinitySlotProps<HTMLHeadingElement>;
77
+ description?: TrinitySlotProps<HTMLParagraphElement>;
78
+ actions?: TrinitySlotProps<HTMLDivElement>;
79
+ };
80
+ /**
81
+ * Added to the root's own class names.
82
+ * @since 2.13.0
83
+ */
84
+ className?: string;
85
+ /** Additional styles, applied after the component's own (object, array or function). */
47
86
  sx?: SxProps<Theme>;
48
87
  }
88
+ /**
89
+ * Props for IllustratedMessage: its own props, plus the HTML attributes of its root `div`
90
+ * (`id`, `data-*`, `aria-*`), which reach the root (ADR-04).
91
+ */
92
+ export interface IllustratedMessageProps extends IllustratedMessageOwnProps, TrinityRootProps<HTMLDivElement, IllustratedMessageOwnProps> {
93
+ }
49
94
  interface IllustrationProps {
95
+ /** Width and height in pixels. Default 180. */
50
96
  size?: number;
97
+ /** Main strokes and shapes. Default: the theme's `palette.primary.main`. */
51
98
  primaryColor?: string;
99
+ /** Neutral shapes and outlines. Default: the theme's subtle border role (`palette.trinity.border.subtle`). */
52
100
  secondaryColor?: string;
101
+ /** Accent shapes. Default: the theme's `palette.secondary.main`. */
53
102
  accentColor?: string;
54
103
  }
55
104
  declare const EmptyTableIllustration: React.FC<IllustrationProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"IllustratedMessage.d.ts","sourceRoot":"","sources":["../../src/components/IllustratedMessage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAwC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AA4CrF,MAAM,MAAM,gBAAgB,GACxB,aAAa,GACb,cAAc,GACd,iBAAiB,GACjB,iBAAiB,GACjB,gBAAgB,GAChB,YAAY,GACZ,eAAe,GACf,WAAW,GACX,WAAW,GACX,kBAAkB,GAClB,QAAQ,GACR,SAAS,GACT,kBAAkB,GAClB,SAAS,GACT,SAAS,CAAC;AA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B;IAC3B,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,CAAC;IACnC,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,wBAAwB;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,mBAAmB;IACnB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,oBAAoB;IACpB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAED,eAAO,MAAM,cAAc,4FAqF1B,CAAC;AAGF,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,0BAA0B,EAC1B,0BAA0B,EAC1B,yBAAyB,EACzB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,2BAA2B,EAC3B,kBAAkB,EAClB,mBAAmB,EACnB,2BAA2B,EAC3B,kBAAkB,EAClB,mBAAmB,GACpB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"IllustratedMessage.d.ts","sourceRoot":"","sources":["../../src/components/IllustratedMessage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAwC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAGrF,OAAO,EAAoB,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAG5E,OAAO,EAAgB,KAAK,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AA4ChG,MAAM,MAAM,gBAAgB,GACxB,aAAa,GACb,cAAc,GACd,iBAAiB,GACjB,iBAAiB,GACjB,gBAAgB,GAChB,YAAY,GACZ,eAAe,GACf,WAAW,GACX,WAAW,GACX,kBAAkB,GAClB,QAAQ,GACR,SAAS,GACT,kBAAkB,GAClB,SAAS,GACT,SAAS,CAAC;AAEd,MAAM,MAAM,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ACpB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,117 @@
1
+ /**
2
+ * @fileoverview InlineEditableText: text that turns into a field and back, with an async commit
3
+ * (master-plan D-11).
4
+ * @module components/InlineEditableText
5
+ *
6
+ * @internal — not part of the public API; see ADR-02
7
+ *
8
+ * For ThreadHistorySidebar's rename (D-40, M7) and AIPlanReview's step edit (G-18). Its keyboard
9
+ * model is keyboard-models.md (3): BUILD a two-state machine, view (a button) and edit (a field).
10
+ *
11
+ * - **View.** `renderView(value)`, or the value as text plus an edit IconButton ('edit' icon)
12
+ * named "<labels.edit> <label>" through `aria-labelledby` (no string concatenation). With
13
+ * `editTrigger="external"` the view is the text alone and the consumer's own control starts the
14
+ * edit (a menu item, for example).
15
+ * - **Edit.** An MUI TextField named `label`, focused when editing starts (never `autoFocus`),
16
+ * with optional Save and Cancel IconButtons ('check', 'close').
17
+ * - **Keys.** Enter commits, unless an IME is composing (`isComposing`, keyCode 229), and never
18
+ * submits an enclosing form; Shift+Enter adds a line when `multiline`. Escape cancels and stops
19
+ * propagation, so an enclosing Modal, ConfirmDialog or Popover stays open. Tab leaves the field
20
+ * without committing (keyboard model (3)); `commitOnBlur` opts in to a commit on blur, which
21
+ * never fires when focus moves to the component's own Save or Cancel.
22
+ * - **Validation.** `validate(draft)`, then `required`: the message shows as the field's helper
23
+ * text and is announced assertively; edit mode and focus stay.
24
+ * - **Commit.** `onChange(draft)` runs through `useAsyncAction`. Pending: the input is readOnly
25
+ * with `aria-busy`, Save is `aria-disabled`, a second Enter does not commit again. Success:
26
+ * edit mode ends, focus returns to the edit button (or `returnFocusRef`, else the root, never
27
+ * `<body>`) through `useFocusOnReplace`, and `labels.saved` is announced politely. Failure
28
+ * (OD-D6 (a)): edit mode, the draft and focus stay, `labels.saveError` shows as helper text and
29
+ * is announced assertively.
30
+ * - **State.** `value` and `editing` are controlled or uncontrolled (`useControlled`);
31
+ * `onEditingChange(editing, 'trigger' | 'commit' | 'cancel', event)` (D-45).
32
+ * - **Strings** are one `labels` object (H-47): the drafted flat `editLabel`, `saveLabel`,
33
+ * `cancelLabel`, `savedMessage`, `saveErrorMessage` and `requiredMessage` become `labels.edit`,
34
+ * `save`, `cancel`, `saved`, `saveError` and `required`. `label`, the field's name, stays flat.
35
+ */
36
+ import * as React from 'react';
37
+ import { type SxProps, type Theme } from '@mui/material/styles';
38
+ import { type TrinitySlotProps } from '../shared/rootProps';
39
+ /** InlineEditableText's strings. @internal */
40
+ export interface InlineEditableTextLabels {
41
+ /** Before the field's label in the edit button's name: "Edit <label>". @default 'Edit' */
42
+ edit: string;
43
+ /** @default 'Save' */
44
+ save: string;
45
+ /** @default 'Cancel' */
46
+ cancel: string;
47
+ /** Announced politely after a commit. @default 'Saved' */
48
+ saved: string;
49
+ /** Helper text and assertive announcement after a failed commit. @default "Couldn't save your changes. Try again." */
50
+ saveError: string;
51
+ /** Shown when `required` and the draft is empty. @default 'Enter a value.' */
52
+ required: string;
53
+ }
54
+ /** Why editing changed: the trigger started it, a commit or a cancel ended it. @internal */
55
+ export type InlineEditableTextEditingReason = 'trigger' | 'commit' | 'cancel';
56
+ /** Props both trigger modes share. @internal */
57
+ export interface InlineEditableTextBaseProps {
58
+ /** The field's accessible name. */
59
+ label: string;
60
+ value?: string;
61
+ defaultValue?: string;
62
+ /** Commits the draft. A rejection keeps the field open with the error. */
63
+ onChange?: (value: string) => void | Promise<void>;
64
+ onDraftChange?: (draft: string) => void;
65
+ editing?: boolean;
66
+ defaultEditing?: boolean;
67
+ onEditingChange?: (editing: boolean, reason: InlineEditableTextEditingReason, event?: React.SyntheticEvent) => void;
68
+ /** Returns an error message, or null when the draft is valid. Runs before the required check. */
69
+ validate?: (draft: string) => string | null;
70
+ required?: boolean;
71
+ maxLength?: number;
72
+ placeholder?: string;
73
+ multiline?: boolean;
74
+ /**
75
+ * Commit when focus leaves the field for something other than Save or Cancel. Off by default:
76
+ * keyboard model (3) has Tab leave without committing.
77
+ * @default false
78
+ */
79
+ commitOnBlur?: boolean;
80
+ /** @default true */
81
+ showActions?: boolean;
82
+ labels?: Partial<InlineEditableTextLabels>;
83
+ disabled?: boolean;
84
+ /** View only: no edit control. */
85
+ readOnly?: boolean;
86
+ /** @default 'small' */
87
+ size?: 'small' | 'medium';
88
+ /** Replaces the view text: `null` renders nothing, `undefined` the default. */
89
+ renderView?: (value: string) => React.ReactNode | null | undefined;
90
+ sx?: SxProps<Theme>;
91
+ className?: string;
92
+ slotProps?: {
93
+ view?: TrinitySlotProps<HTMLSpanElement>;
94
+ editButton?: TrinitySlotProps<HTMLButtonElement>;
95
+ input?: TrinitySlotProps<HTMLInputElement>;
96
+ actions?: TrinitySlotProps<HTMLDivElement>;
97
+ };
98
+ }
99
+ /** The built-in edit button starts editing. @internal */
100
+ export interface InlineEditableTextButtonProps extends InlineEditableTextBaseProps {
101
+ /** @default 'button' */
102
+ editTrigger?: 'button';
103
+ returnFocusRef?: never;
104
+ }
105
+ /** A control of the consumer starts editing (controlled `editing`); focus returns to `returnFocusRef`. @internal */
106
+ export interface InlineEditableTextExternalProps extends InlineEditableTextBaseProps {
107
+ editTrigger: 'external';
108
+ returnFocusRef: React.RefObject<HTMLElement | null>;
109
+ }
110
+ /** @internal */
111
+ export type InlineEditableTextProps = (InlineEditableTextButtonProps | InlineEditableTextExternalProps) & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue' | keyof InlineEditableTextBaseProps | 'returnFocusRef' | 'editTrigger'>;
112
+ /**
113
+ * Text that turns into a field and back. See the module notes.
114
+ * @internal
115
+ */
116
+ export declare const InlineEditableText: React.ForwardRefExoticComponent<InlineEditableTextProps & React.RefAttributes<HTMLDivElement>>;
117
+ //# sourceMappingURL=InlineEditableText.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InlineEditableText.d.ts","sourceRoot":"","sources":["../../../src/components/InlineEditableText/InlineEditableText.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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CAAC,CAAC;CACrD;AAED,gBAAgB;AAChB,MAAM,MAAM,uBAAuB,GAAG,CAAC,6BAA6B,GAAG,+BAA+B,CAAC,GACrG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,cAAc,GAAG,MAAM,2BAA2B,GAAG,gBAAgB,GAAG,aAAa,CAAC,CAAC;AAYjJ;;;GAGG;AACH,eAAO,MAAM,kBAAkB,gGA4P7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"InsightCard.d.ts","sourceRoot":"","sources":["../../../src/components/InsightCard/InsightCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAkB/B,OAAO,KAAK,EAAE,gBAAgB,EAAmB,MAAM,SAAS,CAAC;AA+BjE,eAAO,MAAM,WAAW,yFAuKvB,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"InsightCard.d.ts","sourceRoot":"","sources":["../../../src/components/InsightCard/InsightCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA0B/B,OAAO,KAAK,EAAE,gBAAgB,EAAmB,MAAM,SAAS,CAAC;AAkCjE,eAAO,MAAM,WAAW,yFA+KvB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -48,15 +48,22 @@ export interface InsightCardProps {
48
48
  actions?: ReactNode;
49
49
  /** Visual variant. Default `tinted`. */
50
50
  variant?: InsightVariant;
51
- /** When true, swaps card to a clickable surface with hover/focus affordance. */
51
+ /**
52
+ * When true, the card has a primary action: a button that covers the card, named by
53
+ * `ariaLabel` or `title`, reachable with Tab and run by Enter and Space. The dismiss button
54
+ * and the `actions` keep their own clicks (B-24).
55
+ */
52
56
  interactive?: boolean;
53
- /** Called when the card itself is clicked (requires `interactive`). */
57
+ /** Called when the card's primary action runs (requires `interactive`). */
54
58
  onClick?: () => void;
55
59
  /** Called when the dismiss control is clicked. If omitted, no dismiss button is shown. */
56
60
  onDismiss?: () => void;
57
61
  /** sx overrides for the root Card. */
58
62
  sx?: SxProps<Theme>;
59
- /** Accessible label override for the card root. */
63
+ /**
64
+ * Accessible name of the card's primary action when `interactive` (default: `title`); on a
65
+ * card that is not interactive it labels the card root, as before.
66
+ */
60
67
  ariaLabel?: string;
61
68
  }
62
69
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/InsightCard/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEpD;;;;;;;;;GASG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,CAAC;AAE9E;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,UAAU,CAAC;AAEnD;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B,6DAA6D;IAC7D,QAAQ,EAAE,eAAe,CAAC;IAC1B,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0FAA0F;IAC1F,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,oDAAoD;IACpD,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,wCAAwC;IACxC,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,gFAAgF;IAChF,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,uEAAuE;IACv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sCAAsC;IACtC,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,94 @@
1
+ /**
2
+ * @fileoverview KeyValueList: name-value pairs as a description list (master-plan D-05).
3
+ * @module components/KeyValueList
4
+ *
5
+ * @internal — not part of the public API; see ADR-02
6
+ *
7
+ * The one name-value structure for EntityDetailPanel, AuditDrawer's field changes, Timeline's
8
+ * metadata, DocumentCard, AIExplainability and AISourcesPanel (D-17..D-20, D-26, D-33, D-50).
9
+ *
10
+ * - **Structure.** The root is a `<dl>`; each pair is a `<div>` group holding a `<dt>` and a
11
+ * `<dd>`, as HTML allows, so assistive technology reads term and definition.
12
+ * - **Layouts.** `'horizontal'` (the default) wraps intrinsically: the term takes `termWidth`
13
+ * and the definition grows from 12rem, so a pair stacks when its row is narrower than both,
14
+ * with no viewport breakpoint and no container query (OD-D10 (a)). `'justified'` puts the value
15
+ * at the inline end, `'stacked'` puts it under the term, and `'inline'` lays the pairs out as
16
+ * tiles. `fullWidth` stacks one pair.
17
+ * - **Colours.** Terms use `text.secondary` and values `text.primary` (MUI's text roles; never
18
+ * `text.disabled`). `variant="outlined"` adds the resolver's `border.default`; `divided` puts
19
+ * `border.subtle` between pairs (a decorative divider).
20
+ * - **Values** are model, user or data text: bidi-isolated (E-48+) and wrapped anywhere, so an
21
+ * unbroken URL never overflows. Terms are UI text and are not isolated.
22
+ * - **Help.** `helperText` adds a focusable 24 by 24 button with the info icon after the term,
23
+ * named "More information <term>" through `aria-labelledby` (its own hidden label and the term), so
24
+ * every row's button has its own name with no string concatenation, and described by a
25
+ * Tooltip (`describeChild`, ADR-15).
26
+ * - **Loading** renders Skeleton values and sets `aria-busy` (owned); with no items it renders
27
+ * `loadingRows` placeholder pairs. With no items and no loading it renders nothing, or
28
+ * `emptyText` in a `<div>` in place of the list.
29
+ */
30
+ import * as React from 'react';
31
+ import { type SxProps, type Theme } from '@mui/material/styles';
32
+ import { type TrinitySlotProps } from '../shared/rootProps';
33
+ /** One name-value pair. @internal */
34
+ export interface KeyValueListItem {
35
+ /** Stable key, also the base of the term's id. */
36
+ id: string;
37
+ /** The term, in the UI language. */
38
+ label: React.ReactNode;
39
+ /** The value: model, user or data text. Bidi-isolated. */
40
+ value: React.ReactNode;
41
+ /** Help for the term, shown by an info button's tooltip. */
42
+ helperText?: string;
43
+ /** Stack this pair (the value under the term) whatever the layout. */
44
+ fullWidth?: boolean;
45
+ }
46
+ /** @internal */
47
+ export type KeyValueListLayout = 'horizontal' | 'justified' | 'stacked' | 'inline';
48
+ /** The list's own props. @internal */
49
+ export interface KeyValueListOwnProps {
50
+ items: readonly KeyValueListItem[];
51
+ /** @default 'horizontal' */
52
+ layout?: KeyValueListLayout;
53
+ /**
54
+ * The term's width in `'horizontal'` layout, in px, or `'auto'` for its own width.
55
+ * @default 160
56
+ */
57
+ termWidth?: number | 'auto';
58
+ /** @default 'plain' */
59
+ variant?: 'plain' | 'outlined';
60
+ /** A subtle divider between pairs. */
61
+ divided?: boolean;
62
+ /** @default 'medium' */
63
+ size?: 'small' | 'medium';
64
+ /** Skeleton values and `aria-busy`. */
65
+ loading?: boolean;
66
+ /**
67
+ * Placeholder pairs while loading with no items.
68
+ * @default 3
69
+ */
70
+ loadingRows?: number;
71
+ /** Shown in place of the list when there are no items. */
72
+ emptyText?: React.ReactNode;
73
+ /**
74
+ * The help button's label, before the term: "More information <term>".
75
+ * @default 'More information'
76
+ */
77
+ helpButtonLabel?: string;
78
+ sx?: SxProps<Theme>;
79
+ className?: string;
80
+ slotProps?: {
81
+ group?: TrinitySlotProps<HTMLDivElement>;
82
+ term?: TrinitySlotProps<HTMLElement>;
83
+ definition?: TrinitySlotProps<HTMLElement>;
84
+ helpButton?: TrinitySlotProps<HTMLButtonElement>;
85
+ };
86
+ }
87
+ /** @internal */
88
+ export type KeyValueListProps = KeyValueListOwnProps & Omit<React.HTMLAttributes<HTMLDListElement>, keyof KeyValueListOwnProps | 'color'>;
89
+ /**
90
+ * A description list of name-value pairs. See the module notes.
91
+ * @internal
92
+ */
93
+ export declare const KeyValueList: React.ForwardRefExoticComponent<KeyValueListOwnProps & Omit<React.HTMLAttributes<HTMLDListElement>, "color" | keyof KeyValueListOwnProps> & React.RefAttributes<HTMLDListElement>>;
94
+ //# sourceMappingURL=KeyValueList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KeyValueList.d.ts","sourceRoot":"","sources":["../../../src/components/KeyValueList/KeyValueList.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAY,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAM1E,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG1E,qCAAqC;AACrC,MAAM,WAAW,gBAAgB;IAC/B,kDAAkD;IAClD,EAAE,EAAE,MAAM,CAAC;IACX,oCAAoC;IACpC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,0DAA0D;IAC1D,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,4DAA4D;IAC5D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sEAAsE;IACtE,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,gBAAgB;AAChB,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEnF,sCAAsC;AACtC,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACnC,4BAA4B;IAC5B,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,uBAAuB;IACvB,OAAO,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IAC/B,sCAAsC;IACtC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,wBAAwB;IACxB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC1B,uCAAuC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0DAA0D;IAC1D,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE;QACV,KAAK,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;QACzC,IAAI,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAC;QACrC,UAAU,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAC,CAAC;QAC3C,UAAU,CAAC,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;KAClD,CAAC;CACH;AAED,gBAAgB;AAChB,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,GAClD,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,EAAE,MAAM,oBAAoB,GAAG,OAAO,CAAC,CAAC;AAmGrF;;;GAGG;AACH,eAAO,MAAM,YAAY,oLA0FvB,CAAC"}
@@ -19,6 +19,8 @@ import * as React from 'react';
19
19
  import { SxProps, Theme } from '@mui/material';
20
20
  /**
21
21
  * Props for FeatureCard component.
22
+ *
23
+ * @since 2.13.0
22
24
  */
23
25
  export interface FeatureCardProps {
24
26
  /**
@@ -83,6 +85,8 @@ export interface FeatureCardProps {
83
85
  * - Uses semantic heading structure (h3 for title)
84
86
  * - CardActionArea provides keyboard navigation
85
87
  * - Sufficient color contrast (WCAG AA compliant)
88
+ *
89
+ * @since 2.13.0 (exported from the package root; before that it was not reachable from any entry)
86
90
  */
87
91
  export declare const FeatureCard: React.FC<FeatureCardProps>;
88
92
  export default FeatureCard;
@@ -1 +1 @@
1
- {"version":3,"file":"FeatureCard.d.ts","sourceRoot":"","sources":["../../../src/components/LandingPage/FeatureCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAyC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAItF;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAE3B;;;OAGG;IACH,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAE/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAsJlD,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"FeatureCard.d.ts","sourceRoot":"","sources":["../../../src/components/LandingPage/FeatureCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAyC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAKtF;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAE3B;;;OAGG;IACH,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAE/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAqJlD,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -17,6 +17,12 @@
17
17
  import * as React from 'react';
18
18
  import { SxProps, Theme } from '@mui/material';
19
19
  import { FeatureCardProps } from './FeatureCard';
20
+ /**
21
+ * One feature card of {@link LandingPage}: the {@link FeatureCardProps} without
22
+ * `sx`, plus a unique `id`.
23
+ *
24
+ * @since 2.13.0
25
+ */
20
26
  export interface LandingPageFeature extends Omit<FeatureCardProps, 'sx'> {
21
27
  /**
22
28
  * Unique identifier for the feature
@@ -25,6 +31,8 @@ export interface LandingPageFeature extends Omit<FeatureCardProps, 'sx'> {
25
31
  }
26
32
  /**
27
33
  * Props for LandingPage component.
34
+ *
35
+ * @since 2.13.0
28
36
  */
29
37
  export interface LandingPageProps {
30
38
  /**
@@ -42,15 +50,43 @@ export interface LandingPageProps {
42
50
  */
43
51
  heroIcon?: React.ReactNode | 'sparkle';
44
52
  /**
45
- * Background image URL for the hero section
46
- * Use brandGradients or backgroundImages from assets
53
+ * Background image URL for the hero section. The Trinity brand gradients and background
54
+ * images are not in the package: copy them from Storybook (Assets) into your app. A light
55
+ * brand gradient switches the hero text to the `'onLight'` tone (see `heroTone`).
47
56
  */
48
57
  backgroundImage?: string;
49
58
  /**
50
- * Background gradient CSS (alternative to backgroundImage)
59
+ * Background gradient CSS (alternative to backgroundImage). The hero text stays in the
60
+ * `'onDark'` tone unless `heroTone` says otherwise.
51
61
  * @example 'linear-gradient(135deg, #050742 0%, #3816A0 100%)'
52
62
  */
53
63
  backgroundGradient?: string;
64
+ /**
65
+ * Which kind of background the hero text sits on: `'onDark'` (white text) or `'onLight'`
66
+ * (dark text from the theme). Not set: `'onLight'` for the light brand gradients, `'onDark'`
67
+ * for every other background.
68
+ *
69
+ * The title, subtitle and icon then contrast with the background:
70
+ * - `'onDark'`: white title and subtitle and the coral AI sparkle, for dark backgrounds (the
71
+ * built-in navy gradient, the dark brand gradients, the dark Smooth Abstract images).
72
+ * - `'onLight'`: dark text from the theme (the navy primary for the title and the secondary
73
+ * text for the subtitle under the Trinity light theme) and the AI purple sparkle, for light
74
+ * backgrounds such as the light brand gradients.
75
+ *
76
+ * When it is not set, the tone is `'onLight'` for the package's light brand gradients
77
+ * (recognised by file name: `light_brand_gradient<n>`, `light-brand-gradient-<n>` or
78
+ * `gradients/light-<n>`) and `'onDark'` for everything else. The component cannot see an
79
+ * image's colours: set it explicitly for your own images and for `backgroundGradient`.
80
+ * Photographs and busy images (the Technology & Human set) reach AA in neither tone; put a
81
+ * scrim under the text or choose a brand gradient.
82
+ *
83
+ * The hero background looks the same in light and dark mode, so the tone, not the colour
84
+ * mode, picks the hero text colours. A custom `heroIcon` that uses `currentColor` follows the
85
+ * title colour.
86
+ *
87
+ * @since 2.13.0
88
+ */
89
+ heroTone?: 'onDark' | 'onLight';
54
90
  /**
55
91
  * Array of feature cards to display
56
92
  */
@@ -109,7 +145,8 @@ export interface LandingPageProps {
109
145
  * LandingPage - A complete landing page template with hero and feature cards.
110
146
  *
111
147
  * Features:
112
- * - Customizable hero section with background image/gradient
148
+ * - Customizable hero section with background image/gradient, and a hero tone (`heroTone`)
149
+ * that keeps the hero text readable on dark and light backgrounds
113
150
  * - Responsive feature card grid
114
151
  * - Supports both navy and white card variants
115
152
  * - Works with Trinity navigation components
@@ -120,6 +157,8 @@ export interface LandingPageProps {
120
157
  * - Hero title uses h1, feature cards use h3
121
158
  * - Background images are decorative (aria-hidden)
122
159
  * - All interactive elements are keyboard accessible
160
+ *
161
+ * @since 2.13.0 (exported from the package root; before that it was not reachable from any entry)
123
162
  */
124
163
  export declare const LandingPage: React.ForwardRefExoticComponent<LandingPageProps & React.RefAttributes<HTMLDivElement>>;
125
164
  export default LandingPage;
@@ -1 +1 @@
1
- {"version":3,"file":"LandingPage.d.ts","sourceRoot":"","sources":["../../../src/components/LandingPage/LandingPage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAoC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAGjF,OAAO,EAAe,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAE9D,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC;IACtE;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;IAEvC;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,kBAAkB,C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AC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IAExB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,WAAW,yFAyNtB,CAAC;AAEH,eAAe,WAAW,CAAC"}
@@ -0,0 +1,54 @@
1
+ /**
2
+ * LandingPage's hero tone: which kind of background the hero text sits on, and the colours that
3
+ * contrast with it. Internal to the LandingPage module; the public surface is the `heroTone`
4
+ * prop.
5
+ *
6
+ * The hero background (an image or a gradient) looks the same in light and dark mode, so the
7
+ * tone, not `palette.mode`, decides the text colours. The colours still come from the theme:
8
+ * `palette.common` and the text and primary roles, and the resolver's AI roles.
9
+ *
10
+ * @internal
11
+ * @module components/LandingPage/heroTone
12
+ */
13
+ import { type Theme } from '@mui/material/styles';
14
+ /** The two hero tones: text for a dark background, or text for a light one. @internal */
15
+ export type HeroTone = 'onDark' | 'onLight';
16
+ /** The colours of the hero's title, subtitle and icon in one tone. @internal */
17
+ export interface HeroToneColors {
18
+ title: string;
19
+ subtitle: string;
20
+ icon: string;
21
+ }
22
+ /**
23
+ * Whether `url` names one of the package's light brand gradients (by file name). A data URI or
24
+ * a URL with another file name is not recognised.
25
+ *
26
+ * @internal
27
+ */
28
+ export declare function isLightBrandGradient(url: string | undefined): boolean;
29
+ /**
30
+ * The tone LandingPage uses when `heroTone` is not set: `'onLight'` for a light brand gradient,
31
+ * `'onDark'` for everything else (the built-in navy gradient, `backgroundGradient`, the dark
32
+ * brand gradients and any other image).
33
+ *
34
+ * @internal
35
+ */
36
+ export declare function defaultHeroTone(backgroundImage: string | undefined): HeroTone;
37
+ /**
38
+ * The hero colours for `tone` under `theme`.
39
+ *
40
+ * - `'onDark'`: `palette.common.white` for the title, 90% of it for the subtitle, and the AI
41
+ * accent (`ai.accent`, coral) for the sparkle icon. This is the look LandingPage always had.
42
+ * - `'onLight'`: the first theme role that reaches 4.5:1 on the light gradients for the title
43
+ * (`palette.primary.main`, then `palette.text.primary`, then `palette.common.black`) and the
44
+ * subtitle (`palette.text.secondary`, then `palette.text.primary`, then
45
+ * `palette.common.black`), and the first AI purple that reaches 3:1 for the icon
46
+ * (`ai.primary`, then `ai.primaryFill`, then the title colour). Under the Trinity light theme
47
+ * that is the navy primary, the secondary text and the AI purple. Under the dark theme, whose
48
+ * text roles are light and whose primary is coral, the black fallback keeps the text readable
49
+ * on the light image.
50
+ *
51
+ * @internal
52
+ */
53
+ export declare function heroToneColors(theme: Theme, tone: HeroTone): HeroToneColors;
54
+ //# sourceMappingURL=heroTone.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heroTone.d.ts","sourceRoot":"","sources":["../../../src/components/LandingPage/heroTone.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAiB,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAKjE,yFAAyF;AACzF,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE5C,gFAAgF;AAChF,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd;AAYD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CASrE;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,eAAe,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,CAE7E;AAoBD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,GAAG,cAAc,CAuB3E"}
@@ -1 +1 @@
1
- {"version":3,"file":"MentionsInput.d.ts","sourceRoot":"","sources":["../../../src/components/MentionsInput/MentionsInput.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,KAAK,MA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ACjE,kBAAkB;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wBAAwB;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,kBAAkB;IAClB,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,uCAAuC;IACvC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oCAAoC;IACpC,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB;IACxB,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;IACpC,8DAA8D;IAC9D,kBAAkB,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;IACjD,8CAA8C;IAC9C,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;CAClE;AAqFD,eAAO,MAAM,aAAa,2FAgOzB,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"MentionsInput.d.ts","sourceRoot":"","sources":["../../../src/components/MentionsInput/MentionsInput.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAYL,KAAK,cAAc,EAEpB,MAAM,eAAe,CAAC;AAGvB,MAAM,WAAW,aAAa;IAC5B,+CAA+C;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,oDAAoD;IACpD,OAAO,EAAE,MAAM,CAAC;IAChB,2BAA2B;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