@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
@@ -0,0 +1,66 @@
1
+ import type { ReactElement, ReactNode } from 'react';
2
+ import type { DeepPartial } from '../shared/createStringsContext';
3
+ import type { AIConfidenceThresholds, AIInteractionEvent, AIStrings } from './types/hitl';
4
+ /**
5
+ * Props of {@link AIConfigProvider}.
6
+ *
7
+ * @since 2.13.0
8
+ */
9
+ export interface AIConfigProviderProps {
10
+ /**
11
+ * Strings to replace, as a deep partial of `AIStrings`: pass only the keys you change. Nested
12
+ * providers merge over their parent. Hoist the object or wrap it in `useMemo`; a new object
13
+ * with the same content on every render re-renders every strings consumer (a development
14
+ * warning says so).
15
+ */
16
+ strings?: DeepPartial<AIStrings>;
17
+ /**
18
+ * Confidence thresholds on the 0-1 scale. Missing keys come from the parent provider, then
19
+ * `DEFAULT_AI_CONFIDENCE_THRESHOLDS`. Invalid thresholds (not `0 <= medium <= high <= 1`)
20
+ * are ignored with a development warning.
21
+ */
22
+ thresholds?: Partial<AIConfidenceThresholds>;
23
+ /**
24
+ * BCP 47 locale for numbers and counts, for example 'de-DE'. Inherited from the parent
25
+ * provider when omitted. Without any, `useAILocale()` returns `undefined` and formatters
26
+ * use 'en-US'. An invalid tag is ignored with a development warning.
27
+ */
28
+ locale?: string;
29
+ /**
30
+ * IANA time zone for dates, for example 'Europe/Berlin'. Inherited from the parent provider
31
+ * when omitted. Without any, `useAITimeZone()` returns the runtime's zone on the client and
32
+ * 'UTC' during server rendering. An invalid zone is ignored with a development warning.
33
+ */
34
+ timeZone?: string;
35
+ /**
36
+ * Receives every interaction the AI components report. Content-free unless `includeContent`
37
+ * is set. It may change identity on every render: components keep a stable reference. If it
38
+ * throws, the error is contained and logged once in development; components behave the same.
39
+ * The nearest provider with a handler receives the event; a provider without one passes
40
+ * events to its parent's.
41
+ */
42
+ onInteraction?: (event: AIInteractionEvent) => void;
43
+ /**
44
+ * Whether events sent to this provider's `onInteraction` keep fields with user or model text
45
+ * (feedback comments, typed clarification answers). Default `false`: those fields are removed.
46
+ */
47
+ includeContent?: boolean;
48
+ children?: ReactNode;
49
+ }
50
+ /**
51
+ * Configures the AI components below it: strings, confidence thresholds, locale, time zone and
52
+ * interaction telemetry. Optional and nestable; renders no element.
53
+ *
54
+ * @example
55
+ * ```tsx
56
+ * const strings = { common: { copied: 'Kopiert' } };
57
+ *
58
+ * <AIConfigProvider strings={strings} locale="de-DE" onInteraction={(event) => analytics.track(event.type, event)}>
59
+ * <InsightEngine />
60
+ * </AIConfigProvider>
61
+ * ```
62
+ *
63
+ * @since 2.13.0
64
+ */
65
+ export declare function AIConfigProvider({ strings, thresholds, locale, timeZone, onInteraction, includeContent, children, }: AIConfigProviderProps): ReactElement;
66
+ //# sourceMappingURL=AIConfigProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AIConfigProvider.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AIConfigProvider.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,KAAK,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAY1F;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAC7C;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACpD;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAgDD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,UAAU,EACV,MAAM,EACN,QAAQ,EACR,aAAa,EACb,cAAc,EACd,QAAQ,GACT,EAAE,qBAAqB,GAAG,YAAY,CAoEtC"}
@@ -19,12 +19,26 @@
19
19
  */
20
20
  import React from 'react';
21
21
  import { SxProps, Theme } from '@mui/material';
22
+ import { type HeadingLevel } from '../shared/headingLevel';
23
+ import { type TrinityRootProps } from '../shared/rootProps';
22
24
  /**
23
- * Props for AIContainer component.
25
+ * AIContainer's own props.
24
26
  */
25
- export interface AIContainerProps {
27
+ export interface AIContainerOwnProps {
26
28
  /** Container title */
27
29
  title?: string;
30
+ /**
31
+ * Heading level of the title: 2 to 6 for h2 to h6. Set it to fit the page outline.
32
+ * @default 6 (the h6 the title rendered before the prop existed)
33
+ * @since 2.13.0
34
+ */
35
+ headingLevel?: HeadingLevel;
36
+ /**
37
+ * Id of the title element, for `aria-labelledby` on a surrounding region or dialog. Without
38
+ * it, the component generates one.
39
+ * @since 2.13.0
40
+ */
41
+ titleId?: string;
28
42
  /** Container subtitle */
29
43
  subtitle?: string;
30
44
  /** Header actions */
@@ -39,17 +53,28 @@ export interface AIContainerProps {
39
53
  filled?: boolean;
40
54
  /** Whether container has padding */
41
55
  padded?: boolean;
42
- /** Custom sx props */
56
+ /**
57
+ * Added to the root's own class names.
58
+ * @since 2.13.0
59
+ */
60
+ className?: string;
61
+ /** Custom sx props, applied after the container's own styles (object, array or function). */
43
62
  sx?: SxProps<Theme>;
44
63
  }
64
+ /**
65
+ * Props for AIContainer: its own props, plus the HTML attributes of its root `div` (`id`,
66
+ * `data-*`, `aria-*`), which reach the root (ADR-04, WI-40).
67
+ */
68
+ export interface AIContainerProps extends AIContainerOwnProps, TrinityRootProps<HTMLDivElement, AIContainerOwnProps> {
69
+ }
45
70
  /**
46
71
  * AI Container - Wrapper for AI content with optional header.
47
72
  */
48
73
  export declare const AIContainer: React.ForwardRefExoticComponent<AIContainerProps & React.RefAttributes<HTMLDivElement>>;
49
74
  /**
50
- * Props for AIExpandableSection component.
75
+ * AIExpandableSection's own props.
51
76
  */
52
- export interface AIExpandableSectionProps {
77
+ export interface AIExpandableSectionOwnProps {
53
78
  /** Section title */
54
79
  title: string;
55
80
  /** Section subtitle */
@@ -64,17 +89,38 @@ export interface AIExpandableSectionProps {
64
89
  expanded?: boolean;
65
90
  /** Change handler */
66
91
  onChange?: (expanded: boolean) => void;
67
- /** Custom sx props */
92
+ /**
93
+ * Added to the root's own class names.
94
+ * @since 2.13.0
95
+ */
96
+ className?: string;
97
+ /** Custom sx props, applied after the section's own styles (object, array or function). */
68
98
  sx?: SxProps<Theme>;
69
99
  }
100
+ /**
101
+ * Props for AIExpandableSection: its own props, plus the HTML attributes of its root `div`
102
+ * (`data-*`, `aria-*`), which reach the root (ADR-04, WI-40; Disclosure's root contract). As in
103
+ * Disclosure, `id` is the header button's id, and the panel's is `${id}-panel`.
104
+ */
105
+ export interface AIExpandableSectionProps extends AIExpandableSectionOwnProps, TrinityRootProps<HTMLDivElement, AIExpandableSectionOwnProps> {
106
+ }
70
107
  /**
71
108
  * AI Expandable Section - Collapsible content section.
109
+ *
110
+ * Renders through the internal Disclosure (D-27, D-08): the header is one `<button
111
+ * type="button">` named by the title (and subtitle), with `aria-expanded` and `aria-controls`
112
+ * pointing at the panel; Tab reaches it and Enter or Space toggles it. `expanded` and
113
+ * `defaultExpanded` follow the controlled and uncontrolled canon (useControlled); every toggle
114
+ * calls `onChange` with the requested state. The chevron (OD-D2) turns when open and the header
115
+ * shows the theme's focus ring. Colours come from the resolver's AI roles in both modes: the
116
+ * header on `ai.surfaceEmphasis` (`ai.surfaceEmphasisHover` under the pointer), the panel on
117
+ * `ai.surface` with an `ai.border` outline, the leading icon in `ai.primary`.
72
118
  */
73
119
  export declare const AIExpandableSection: React.ForwardRefExoticComponent<AIExpandableSectionProps & React.RefAttributes<HTMLDivElement>>;
74
120
  /**
75
- * Props for AIPersonaCard component.
121
+ * AIPersonaCard's own props.
76
122
  */
77
- export interface AIPersonaCardProps {
123
+ export interface AIPersonaCardOwnProps {
78
124
  /** Persona name */
79
125
  name: string;
80
126
  /** Persona description */
@@ -83,15 +129,38 @@ export interface AIPersonaCardProps {
83
129
  avatar?: React.ReactNode;
84
130
  /** Persona capabilities */
85
131
  capabilities?: string[];
86
- /** Whether persona is selected */
132
+ /**
133
+ * Whether the persona is selected. With `onClick`, the card is a toggle button and this is its
134
+ * `aria-pressed` state; the AI-primary border and the check icon show it visually.
135
+ */
87
136
  selected?: boolean;
88
- /** Click handler */
137
+ /**
138
+ * Called when the card is pressed (click, Enter or Space). With it, the card is a toggle button
139
+ * named by `name`; without it, the card is static content.
140
+ */
89
141
  onClick?: () => void;
90
- /** Custom sx props */
142
+ /**
143
+ * Added to the root's own class names.
144
+ * @since 2.13.0
145
+ */
146
+ className?: string;
147
+ /** Custom sx props, applied after the card's own styles (object, array or function). */
91
148
  sx?: SxProps<Theme>;
92
149
  }
150
+ /**
151
+ * Props for AIPersonaCard: its own props, plus the HTML attributes of its root `div` (`id`,
152
+ * `data-*`, `aria-*`), which reach the root (ADR-04, WI-40).
153
+ */
154
+ export interface AIPersonaCardProps extends AIPersonaCardOwnProps, TrinityRootProps<HTMLDivElement, AIPersonaCardOwnProps> {
155
+ }
93
156
  /**
94
157
  * AI Persona Card - Card for selecting AI personas/agents.
158
+ *
159
+ * With `onClick`, the whole card is pressable through the primary-action pattern (WI-17, B-13):
160
+ * an empty button covers the card, named by the persona name and described by the description,
161
+ * with `aria-pressed={selected}`. The avatar, text, divider and chips stay static content above
162
+ * it, so the button holds no block content. Tab reaches it; Enter and Space toggle it. The ref
163
+ * and `sx` stay on the Paper root.
95
164
  */
96
165
  export declare const AIPersonaCard: React.ForwardRefExoticComponent<AIPersonaCardProps & React.RefAttributes<HTMLDivElement>>;
97
166
  //# sourceMappingURL=AIContainer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AIContainer.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AIContainer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;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B;IACpC,mBAAmB;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,0BAA0B;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qBAAqB;IACrB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,2BAA2B;IAC3B,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wFAAwF;IACxF,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAmB,SAAQ,qBAAqB,EAAE,gBAAgB,CAAC,cAAc,EAAE,qBAAqB,CAAC;CAAG;AAE7H;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,2FAkIzB,CAAC"}
@@ -12,18 +12,41 @@
12
12
  */
13
13
  import React from 'react';
14
14
  import { SxProps, Theme } from '@mui/material';
15
+ import { type HeadingLevel } from '../shared/headingLevel';
16
+ import { type TrinityRootProps } from '../shared/rootProps';
15
17
  /**
16
- * Props for AIExplainability component.
18
+ * AIExplainability's own props.
17
19
  */
18
- export interface AIExplainabilityProps {
19
- /** Title/overview of the AI */
20
+ export interface AIExplainabilityOwnProps {
21
+ /** Title/overview of the AI. Default: the `ai.explainability.title` string ('AI-generated content'). */
20
22
  title?: string;
23
+ /**
24
+ * Heading level of the title: 2 to 6 for h2 to h6. Set it to fit the page outline.
25
+ * @default 6 (the h6 the title rendered before the prop existed)
26
+ * @since 2.13.0
27
+ */
28
+ headingLevel?: HeadingLevel;
21
29
  /** Description of what the AI does */
22
30
  description?: string;
23
31
  /** Model name or version */
24
32
  modelName?: string;
25
- /** Confidence score (0-100) */
33
+ /**
34
+ * Confidence score on the 0-100 scale (92 means 92%), unlike AIConfidenceBadge and the
35
+ * confidence utilities, which take 0-1. It is shown as a percent in the locale of the nearest
36
+ * `AIConfigProvider` ('en-US' without one): 92 reads '92%' in en-US and '92 %' in de-DE. Up to
37
+ * two decimals are kept (92.5 reads '92.5%').
38
+ */
26
39
  confidence?: number;
40
+ /**
41
+ * Shows the confidence level next to the percent: a level icon (the `confidence-high`,
42
+ * `-medium` and `-low` signal bars, a different shape per level) and the level word
43
+ * (`ai.explainability.confidenceHigh`, `confidenceMedium` and `confidenceLow`). The level
44
+ * follows the nearest `AIConfigProvider`'s thresholds and is rated on the shown, rounded
45
+ * value. Off by default: the percent alone, as before (WI-25).
46
+ * @default false
47
+ * @since 2.13.0
48
+ */
49
+ showConfidenceLevel?: boolean;
27
50
  /** Last updated date */
28
51
  lastUpdated?: string;
29
52
  /** Additional details */
@@ -36,9 +59,20 @@ export interface AIExplainabilityProps {
36
59
  label: string;
37
60
  onClick: () => void;
38
61
  }>;
39
- /** Custom sx props */
62
+ /**
63
+ * Added to the root's own class names.
64
+ * @since 2.13.0
65
+ */
66
+ className?: string;
67
+ /** Custom sx props, applied after the root's own styles (object, array or function). */
40
68
  sx?: SxProps<Theme>;
41
69
  }
70
+ /**
71
+ * Props for AIExplainability: its own props, plus the HTML attributes of its root `div` (`id`,
72
+ * `data-*`, `aria-*`), which reach the root (ADR-04, WI-40).
73
+ */
74
+ export interface AIExplainabilityProps extends AIExplainabilityOwnProps, TrinityRootProps<HTMLDivElement, AIExplainabilityOwnProps> {
75
+ }
42
76
  /**
43
77
  * AI Explainability Content - Provides details about AI-generated content.
44
78
  */
@@ -1 +1 @@
1
- {"version":3,"file":"AIExplainability.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AIExplainability.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAA2C,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAQxF;;GAEG;AACH,MAAM,WAAW,qBAAqB;I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AKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;;;;OAQG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,wBAAwB;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yBAAyB;IACzB,OAAO,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAClD,qBAAqB;IACrB,OAAO,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC,CAAC;IACxD;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wFAAwF;IACxF,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,qBAAsB,SAAQ,wBAAwB,EAAE,gBAAgB,CAAC,cAAc,EAAE,wBAAwB,CAAC;CAAG;AAMtI;;GAEG;AACH,eAAO,MAAM,gBAAgB,8FAgH5B,CAAC"}
@@ -0,0 +1,113 @@
1
+ /**
2
+ * @fileoverview AIFeedbackControl: thumbs up and down on an AI answer, and a separate "Tell us what
3
+ * went wrong" flow (master-plan F-17, ADR-15-R3, ADR-15-R4).
4
+ * @module components/AI/AIFeedbackControl
5
+ *
6
+ * - **Group.** The root is `role="group"` (owned), named 'Rate this response'.
7
+ * - **Thumbs.** Two MUI IconButtons, pure toggles: `aria-pressed`, and a constant name that is
8
+ * also the tooltip (one key each: 'Good response', 'Poor response'). The tooltip does not
9
+ * describe the button, since it repeats the name (OD-F13 A). Pressed has three cues:
10
+ * `aria-pressed`, the filled glyph and the theme's C-27 pressed recipe (selected overlay and an
11
+ * inset ring, Highlight in forced colours). The glyph is `status.success.text` or
12
+ * `status.error.text` when pressed and `text.secondary` at rest (WCAG 1.4.11); its colour change
13
+ * uses `semanticTokens.motion` and is instant under reduced motion. Each is at least 24px
14
+ * (WCAG 2.5.8). Pressing a pressed thumb clears the rating; the rating is the one-click flag.
15
+ * - **Detailed mode (OD-F18, ADR-15-R4).** While the rating is negative and nothing was sent yet,
16
+ * a text button 'Tell us what went wrong' follows the thumbs in the group. It is the only popup
17
+ * trigger (`aria-haspopup="dialog"`, `aria-expanded`, `aria-controls`); thumbs-down never moves
18
+ * focus or opens anything. It opens AIFeedbackForm in DetailsPopover, or in C's Modal below the
19
+ * theme's `sm` breakpoint (OD-F4, ADR-15-R3; the first render, server and hydration, is the
20
+ * popover). The surface's heading is its only heading: the form is hosted (no title, no
21
+ * telemetry). The Modal has no description (`describedBy="none"`) and no footer.
22
+ * - **Sending.** The control runs `onSubmit` through `useAsyncAction` and passes `loading` and
23
+ * `error` to the form. While pending, no close path works (DetailsPopover `preventClose`, Modal
24
+ * `pendingClosePolicy="block"` with `loading`). Cancel closes, keeps the rating and MUI returns
25
+ * focus to the details trigger. A failure keeps the surface open with the form's error.
26
+ * - **Sent.** The surface closes. After its exit transition (focus restored, the page no longer
27
+ * hidden), focus moves to thumbs-down and 'Feedback sent' is announced once through the
28
+ * control's own announcer, outside the closed overlay. The details trigger is replaced by the
29
+ * visible, non-live text 'Feedback sent'.
30
+ * - **Disabled** sets `aria-disabled` on every button, described by `disabledReason`; clicks do
31
+ * nothing.
32
+ * - **Telemetry.** `AIFeedbackInteraction` for rate, clear, detail-open, detail-submit and
33
+ * detail-cancel, from the control only.
34
+ *
35
+ * @example
36
+ * ```tsx
37
+ * import { AIFeedbackControl } from '@trinityui/design-system';
38
+ *
39
+ * <AIFeedbackControl responseId="r-1" mode="detailed" onChange={saveRating} onSubmit={sendFeedback} />
40
+ * ```
41
+ */
42
+ import * as React from 'react';
43
+ import { type SxProps, type Theme } from '@mui/material/styles';
44
+ import { type TrinitySlotProps } from '../shared/rootProps';
45
+ import type { AIFeedbackCategory, AIFeedbackCategoryOption, AIFeedbackEvent, AIFeedbackRating } from './types/hitl';
46
+ /**
47
+ * AIFeedbackControl's own props.
48
+ *
49
+ * @since 2.13.0
50
+ */
51
+ export interface AIFeedbackControlOwnProps {
52
+ /** Controlled rating; `null` is no rating. */
53
+ value?: AIFeedbackRating | null;
54
+ /** Initial rating when uncontrolled. @default null */
55
+ defaultValue?: AIFeedbackRating | null;
56
+ /** Called with the next rating (`null` when a pressed thumb is pressed again) and the click. */
57
+ onChange?: (rating: AIFeedbackRating | null, event: React.MouseEvent<HTMLButtonElement>) => void;
58
+ /**
59
+ * `'simple'`: the thumbs only. `'detailed'`: after a thumbs-down, 'Tell us what went wrong'
60
+ * opens AIFeedbackForm.
61
+ * @default 'simple'
62
+ */
63
+ mode?: 'simple' | 'detailed';
64
+ /** The form's categories (detailed mode). @default every built-in category */
65
+ categories?: ReadonlyArray<AIFeedbackCategory | AIFeedbackCategoryOption>;
66
+ /** The form's rerun option (detailed mode). @default false */
67
+ allowRerun?: boolean;
68
+ /** At least one category must be chosen (detailed mode). @default false */
69
+ requireCategory?: boolean;
70
+ /** Sends the detailed feedback. May return a promise; the surface stays open until it settles. */
71
+ onSubmit?: (event: AIFeedbackEvent) => void | Promise<void>;
72
+ /** Detailed feedback was already sent: shows 'Feedback sent' instead of the details trigger. */
73
+ submitted?: boolean;
74
+ /** Id of the rated response, sent with the feedback and the interactions. */
75
+ responseId?: string;
76
+ /** Every button is `aria-disabled` (for example while the response streams). */
77
+ disabled?: boolean;
78
+ /** Why it is disabled, linked to each button. @default 'You can rate the response once it is complete.' */
79
+ disabledReason?: string;
80
+ /** @default 'small' */
81
+ size?: 'small' | 'medium';
82
+ className?: string;
83
+ sx?: SxProps<Theme>;
84
+ /**
85
+ * Props for the parts (ADR-04 (6)): `positiveButton`, `negativeButton`, `detailsTrigger`,
86
+ * `popover` (the details dialog), `dialog` (the narrow-viewport Modal's surface), `form` and
87
+ * `status` (the 'Feedback sent' text).
88
+ */
89
+ slotProps?: {
90
+ positiveButton?: TrinitySlotProps<HTMLButtonElement>;
91
+ negativeButton?: TrinitySlotProps<HTMLButtonElement>;
92
+ detailsTrigger?: TrinitySlotProps<HTMLButtonElement>;
93
+ popover?: TrinitySlotProps<HTMLDivElement>;
94
+ dialog?: TrinitySlotProps<HTMLDivElement>;
95
+ form?: TrinitySlotProps<HTMLFormElement>;
96
+ status?: TrinitySlotProps<HTMLSpanElement>;
97
+ };
98
+ }
99
+ /**
100
+ * Props of {@link AIFeedbackControl}: its own props plus the root `<div>`'s HTML attributes
101
+ * (ADR-04).
102
+ *
103
+ * @since 2.13.0
104
+ */
105
+ export type AIFeedbackControlProps = AIFeedbackControlOwnProps & Omit<React.HTMLAttributes<HTMLDivElement>, 'color' | 'onChange' | 'onSubmit' | 'defaultValue' | keyof AIFeedbackControlOwnProps>;
106
+ /**
107
+ * Thumbs up and down on an AI answer, with an optional "Tell us what went wrong" flow. See the
108
+ * module notes.
109
+ *
110
+ * @since 2.13.0
111
+ */
112
+ export declare const AIFeedbackControl: React.ForwardRefExoticComponent<AIFeedbackControlOwnProps & Omit<React.HTMLAttributes<HTMLDivElement>, "color" | keyof AIFeedbackControlOwnProps> & React.RefAttributes<HTMLDivElement>>;
113
+ //# sourceMappingURL=AIFeedbackControl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AIFeedbackControl.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AIFeedbackControl.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAY,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAa1E,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAK1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAIpH;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC,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AO,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;QAC3C,MAAM,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;QAC1C,IAAI,CAAC,EAAE,gBAAgB,CAAC,eAAe,CAAC,CAAC;QACzC,MAAM,CAAC,EAAE,gBAAgB,CAAC,eAAe,CAAC,CAAC;KAC5C,CAAC;CACH;AAED;;;;;GAKG;AACH,MAAM,MAAM,sBAAsB,GAAG,yBAAyB,GAC5D,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,UAAU,GAAG,cAAc,GAAG,MAAM,yBAAyB,CAAC,CAAC;AAYnI;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,0LAoR5B,CAAC"}
@@ -0,0 +1,117 @@
1
+ /**
2
+ * @fileoverview AIFeedbackForm: what went wrong with an AI answer, in a few choices and a comment
3
+ * (master-plan F-16).
4
+ * @module components/AI/AIFeedbackForm
5
+ *
6
+ * - **Root.** A native `<form noValidate>`, unnamed by default, so it is not a form landmark
7
+ * (ADR-19 keeps the landmark list clean). Pass `aria-labelledby` to make it one. The title is
8
+ * text, not a heading, unless `headingLevel` is set (ADR-19). Do not nest it inside another
9
+ * DOM `<form>`.
10
+ * - **Fields.** D's ChoiceChips in multiple mode in a fieldset with the legend 'Problem type'
11
+ * (the built-in categories from `ai.feedbackForm.category.*`, or yours); a multiline TextField
12
+ * 'Details (optional)'; with `allowRerun`, a Checkbox 'Rerun with this correction'; then
13
+ * 'Send feedback' and 'Cancel'.
14
+ * - **Validation (OD-F14 A).** Nothing is required by default. `requireCategory` opts into the
15
+ * ADR-07 pattern: Submit stays enabled; an empty submit marks the checkboxes `aria-invalid`,
16
+ * links the error text to the group and focuses the first checkbox.
17
+ * - **Submit.** The handler calls `preventDefault` and `stopPropagation`, so a React ancestor
18
+ * form reached through a portal never receives the event. `onSubmit` runs through
19
+ * `useAsyncAction` (one run at a time; a throw or rejection is reported). `loading`, `error`
20
+ * and `errorMessage` override the hook, so a host can own the pending state (ADR-07).
21
+ * - **Pending.** Submit and Cancel are `aria-disabled` (Submit also `aria-busy`) and keep focus;
22
+ * clicks do nothing.
23
+ * - **Error.** AsyncOutcomeAlert inside the form (no implicit live role, OD-F9): announced once,
24
+ * assertively, with 'Try again'. The input is kept and focus stays on Submit.
25
+ * - **Success.** The summary 'Thanks — sent for review' replaces the fields and takes focus
26
+ * (useFocusOnReplace), unless `submitted` says otherwise or the form is hosted.
27
+ * - **Hosted** (inside AIFeedbackControl, through the internal HostedFeedbackContext): no title,
28
+ * no telemetry, no summary and no focus move; the host owns all three.
29
+ * - **Telemetry.** Standalone, one `AIFeedbackInteraction { action: 'detail-submit' }` per submit,
30
+ * content-free (the comment only with the provider's `includeContent`).
31
+ * - **Layout.** An inner container query stacks the actions full width below the 'compact'
32
+ * container width (E-19).
33
+ *
34
+ * @example
35
+ * ```tsx
36
+ * import { AIFeedbackForm } from '@trinityui/design-system';
37
+ *
38
+ * <AIFeedbackForm responseId="r-1" allowRerun onSubmit={(feedback) => api.sendFeedback(feedback)} />
39
+ * ```
40
+ */
41
+ import * as React from 'react';
42
+ import type { SxProps, Theme } from '@mui/material/styles';
43
+ import { type HeadingLevel } from '../shared/headingLevel';
44
+ import { type TrinitySlotProps } from '../shared/rootProps';
45
+ import type { AIFeedbackCategory, AIFeedbackCategoryOption, AIFeedbackDraft, AIFeedbackEvent, AIFeedbackRating } from './types/hitl';
46
+ /**
47
+ * AIFeedbackForm's own props.
48
+ *
49
+ * @since 2.13.0
50
+ */
51
+ export interface AIFeedbackFormOwnProps {
52
+ /** The rating the feedback is about. @default 'negative' */
53
+ rating?: AIFeedbackRating;
54
+ /**
55
+ * The categories offered: built-in ids (their text comes from the strings) or options with
56
+ * your own `label` and `description`. An empty list hides the field.
57
+ * @default every built-in category
58
+ */
59
+ categories?: ReadonlyArray<AIFeedbackCategory | AIFeedbackCategoryOption>;
60
+ /** Controlled draft. */
61
+ value?: AIFeedbackDraft;
62
+ /** Initial draft when uncontrolled. @default { categories: [], comment: '', rerun: false } */
63
+ defaultValue?: AIFeedbackDraft;
64
+ /** Called with the next draft and the event that changed it. */
65
+ onChange?: (draft: AIFeedbackDraft, event?: React.SyntheticEvent) => void;
66
+ /** Shows 'Rerun with this correction'. @default false */
67
+ allowRerun?: boolean;
68
+ /** At least one category must be chosen (OD-F14 A: opt-in). @default false */
69
+ requireCategory?: boolean;
70
+ /** Id of the rated response, sent with the feedback. */
71
+ responseId?: string;
72
+ /** Sends the feedback. May return a promise: the form shows the pending, error and success states. */
73
+ onSubmit?: (event: AIFeedbackEvent) => void | Promise<void>;
74
+ /** Shows 'Cancel' and is called when it is pressed (not while pending). */
75
+ onCancel?: () => void;
76
+ /** Pending, from the host (overrides the form's own async state). */
77
+ loading?: boolean;
78
+ /** Failed, from the host (overrides the form's own async state). */
79
+ error?: boolean;
80
+ /** The error text. @default "Couldn't send feedback." */
81
+ errorMessage?: string;
82
+ /** Sent, from the host: shows the success summary (overrides the form's own async state). */
83
+ submitted?: boolean;
84
+ /** The title. Not shown when hosted. @default 'Tell us what went wrong' */
85
+ title?: string;
86
+ /** Renders the title as a heading of this level. No heading by default (ADR-19). */
87
+ headingLevel?: HeadingLevel;
88
+ className?: string;
89
+ sx?: SxProps<Theme>;
90
+ /**
91
+ * Props for the parts (ADR-04 (6)): `title`, `categories` (the fieldset), `comment` (the text
92
+ * field root), `rerun` (its label), `actions`, `alert` and `summary`.
93
+ */
94
+ slotProps?: {
95
+ title?: TrinitySlotProps<HTMLElement>;
96
+ categories?: TrinitySlotProps<HTMLFieldSetElement>;
97
+ comment?: TrinitySlotProps<HTMLDivElement>;
98
+ rerun?: TrinitySlotProps<HTMLLabelElement>;
99
+ actions?: TrinitySlotProps<HTMLDivElement>;
100
+ alert?: TrinitySlotProps<HTMLDivElement>;
101
+ summary?: TrinitySlotProps<HTMLDivElement>;
102
+ };
103
+ }
104
+ /**
105
+ * Props of {@link AIFeedbackForm}: its own props plus the `<form>`'s HTML attributes (ADR-04).
106
+ *
107
+ * @since 2.13.0
108
+ */
109
+ export type AIFeedbackFormProps = AIFeedbackFormOwnProps & Omit<React.FormHTMLAttributes<HTMLFormElement>, 'color' | 'onChange' | 'onSubmit' | 'defaultValue' | 'title' | keyof AIFeedbackFormOwnProps>;
110
+ /**
111
+ * Detailed feedback on an AI answer: problem types, a comment and an optional rerun. See the
112
+ * module notes.
113
+ *
114
+ * @since 2.13.0
115
+ */
116
+ export declare const AIFeedbackForm: React.ForwardRefExoticComponent<AIFeedbackFormOwnProps & Omit<React.FormHTMLAttributes<HTMLFormElement>, "color" | keyof AIFeedbackFormOwnProps> & React.RefAttributes<HTMLFormElement>>;
117
+ //# sourceMappingURL=AIFeedbackForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AIFeedbackForm.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AIFeedbackForm.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAQ3D,OAAO,EAAoB,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAG7E,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,eAAe,EAAE,eAAe,EAAE,gBAAgB,EAAa,MAAM,cAAc,CAAC;AA8BhJ;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,4DAA4D;IAC5D,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B;;;;OAIG;IACH,UAAU,CAAC,EAAE,aAAa,CAAC,kBAAkB,GAAG,wBAAwB,CAAC,CAAC;IAC1E,wBAAwB;IACxB,KAAK,CAAC,EAAE,eAAe,CAAC;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,KAAK,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;QACzC,OAAO,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;KAC5C,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,sBAAsB,GACtD,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,eAAe,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,UAAU,GAAG,cAAc,GAAG,OAAO,GAAG,MAAM,sBAAsB,CAAC,CAAC;AAkB/I;;;;;GAKG;AACH,eAAO,MAAM,cAAc,0LAqOzB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { Context } from 'react';
2
+ /**
3
+ * Whether the nearest AIFeedbackForm is hosted. `true` only under a host's provider.
4
+ *
5
+ * @internal
6
+ * @since 2.13.0
7
+ */
8
+ export declare const HostedFeedbackContext: Context<boolean>;
9
+ /**
10
+ * Whether the calling form is hosted (see the module notes); `false` without a provider.
11
+ *
12
+ * @internal
13
+ * @since 2.13.0
14
+ */
15
+ export declare function useHostedFeedback(): boolean;
16
+ //# sourceMappingURL=AIFeedbackHostContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AIFeedbackHostContext.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AIFeedbackHostContext.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAErC;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,EAAE,OAAO,CAAC,OAAO,CAAiD,CAAC;AAErG;;;;;GAKG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAE3C"}
@@ -12,32 +12,65 @@
12
12
  */
13
13
  import React from 'react';
14
14
  import { SxProps, Theme } from '@mui/material';
15
+ import { type TrinityRootProps } from '../shared/rootProps';
15
16
  export type AILabelSize = 'mini' | '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
16
17
  export type AILabelVariant = 'default' | 'inline';
17
18
  /**
18
- * Props for AILabel component.
19
+ * AILabel's own props.
19
20
  */
20
- export interface AILabelProps {
21
+ export interface AILabelOwnProps {
21
22
  /** Size of the AI label */
22
23
  size?: AILabelSize;
23
24
  /** Variant of the AI label */
24
25
  variant?: AILabelVariant;
25
- /** Custom text (default: "AI") */
26
+ /** Custom text. Default: the `ai.label.text` string ('AI'). */
26
27
  text?: string;
27
28
  /** Whether to show explainability popover on click */
28
29
  showPopover?: boolean;
29
30
  /** Content for the explainability popover */
30
31
  popoverContent?: React.ReactNode;
31
- /** Whether the label is clickable */
32
+ /**
33
+ * Accessible name of the explainability popover, which is a dialog. Ignored
34
+ * when `popoverLabelledBy` is set.
35
+ * Default: the `ai.label.popoverLabel` string ('About this AI content').
36
+ * @since 2.13.0
37
+ */
38
+ popoverLabel?: string;
39
+ /**
40
+ * Id of an element inside `popoverContent` that names the popover, such as
41
+ * its title. Takes precedence over `popoverLabel`.
42
+ * @since 2.13.0
43
+ */
44
+ popoverLabelledBy?: string;
45
+ /**
46
+ * Whether the label is clickable. The label renders as a button only when
47
+ * clicking it does something: `onClick` is set, or `showPopover` is on and
48
+ * `popoverContent` is given. Otherwise it renders as static text (a `span`)
49
+ * with the same look and no tab stop.
50
+ */
32
51
  clickable?: boolean;
33
52
  /** Click handler */
34
53
  onClick?: () => void;
35
- /** Custom sx props */
54
+ /**
55
+ * Added to the root's own class names (the button, or the static span).
56
+ * @since 2.13.0
57
+ */
58
+ className?: string;
59
+ /** Custom sx props, applied after the label's own styles (object, array or function). */
36
60
  sx?: SxProps<Theme>;
37
61
  }
62
+ /**
63
+ * Props for AILabel: its own props, plus the HTML attributes of its root (`id`, `data-*`,
64
+ * `aria-*`), which reach the root in both forms: the button, or the static span (ADR-04, WI-40).
65
+ */
66
+ export interface AILabelProps extends AILabelOwnProps, TrinityRootProps<HTMLElement, AILabelOwnProps> {
67
+ }
38
68
  /**
39
69
  * AI Label - Indicates AI-generated content and provides pathway to explainability.
40
70
  * Use to mark any instance of AI in the interface.
71
+ *
72
+ * The ref points at the root element: a `button` when the label is
73
+ * interactive, a `span` otherwise.
41
74
  */
42
- export declare const AILabel: React.ForwardRefExoticComponent<AILabelProps & React.RefAttributes<HTMLButtonElement>>;
75
+ export declare const AILabel: React.ForwardRefExoticComponent<AILabelProps & React.RefAttributes<HTMLElement>>;
43
76
  //# sourceMappingURL=AILabel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AILabel.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AILabel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAwB,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAQrE,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC5E,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,QAAQ,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,2BAA2B;IAC3B,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,8BAA8B;IAC9B,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,kCAAkC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,6CAA6C;IAC7C,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,qCAAqC;IACrC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,oBAAoB;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,sBAAsB;IACtB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AA8BD;;;GAGG;AACH,eAAO,MAAM,OAAO,wFAoHlB,CAAC"}
1
+ {"version":3,"file":"AILabel.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AILab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