@trinityui/design-system 2.11.1 → 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 (515) hide show
  1. package/CHANGELOG.md +2155 -0
  2. package/CONTRIBUTING.md +180 -69
  3. package/LICENSE +21 -0
  4. package/MIGRATION.md +505 -28
  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 +18458 -10385
  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 +159 -77
  23. package/dist/components/AI/AIChainOfThought.d.ts.map +1 -1
  24. package/dist/components/AI/AIChainOfThought.types.d.ts +292 -40
  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 +81 -11
  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 +104 -16
  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 +47 -4
  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.map +1 -1
  275. package/dist/components/Icon.d.ts +567 -10
  276. package/dist/components/Icon.d.ts.map +1 -1
  277. package/dist/components/IllustratedMessage.d.ts +52 -3
  278. package/dist/components/IllustratedMessage.d.ts.map +1 -1
  279. package/dist/components/InlineEditableText/InlineEditableText.d.ts +117 -0
  280. package/dist/components/InlineEditableText/InlineEditableText.d.ts.map +1 -0
  281. package/dist/components/InsightCard/InsightCard.d.ts.map +1 -1
  282. package/dist/components/InsightCard/types.d.ts +10 -3
  283. package/dist/components/InsightCard/types.d.ts.map +1 -1
  284. package/dist/components/KeyValueList/KeyValueList.d.ts +94 -0
  285. package/dist/components/KeyValueList/KeyValueList.d.ts.map +1 -0
  286. package/dist/components/LandingPage/FeatureCard.d.ts +4 -0
  287. package/dist/components/LandingPage/FeatureCard.d.ts.map +1 -1
  288. package/dist/components/LandingPage/LandingPage.d.ts +43 -4
  289. package/dist/components/LandingPage/LandingPage.d.ts.map +1 -1
  290. package/dist/components/LandingPage/heroTone.d.ts +54 -0
  291. package/dist/components/LandingPage/heroTone.d.ts.map +1 -0
  292. package/dist/components/MentionsInput/MentionsInput.d.ts.map +1 -1
  293. package/dist/components/MetaChip/MetaChip.d.ts +113 -0
  294. package/dist/components/MetaChip/MetaChip.d.ts.map +1 -0
  295. package/dist/components/Modal/Modal.d.ts +222 -20
  296. package/dist/components/Modal/Modal.d.ts.map +1 -1
  297. package/dist/components/Modal/index.d.ts +1 -1
  298. package/dist/components/Modal/index.d.ts.map +1 -1
  299. package/dist/components/NotificationCenter/NotificationCenter.d.ts.map +1 -1
  300. package/dist/components/OrgChart/OrgChart.d.ts +5 -0
  301. package/dist/components/OrgChart/OrgChart.d.ts.map +1 -1
  302. package/dist/components/OrgChart/types.d.ts +31 -7
  303. package/dist/components/OrgChart/types.d.ts.map +1 -1
  304. package/dist/components/OverflowTooltip/OverflowTooltip.d.ts +1 -1
  305. package/dist/components/OverflowTooltip/OverflowTooltip.d.ts.map +1 -1
  306. package/dist/components/PageHeader/PageHeader.d.ts.map +1 -1
  307. package/dist/components/PageTOC/PageTOC.d.ts +2 -1
  308. package/dist/components/PageTOC/PageTOC.d.ts.map +1 -1
  309. package/dist/components/Popper/Popper.d.ts +80 -9
  310. package/dist/components/Popper/Popper.d.ts.map +1 -1
  311. package/dist/components/Popper/index.d.ts +1 -1
  312. package/dist/components/Popper/index.d.ts.map +1 -1
  313. package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts +5 -1
  314. package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts.map +1 -1
  315. package/dist/components/SearchInput/SearchInput.d.ts +49 -0
  316. package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
  317. package/dist/components/SearchInput/index.d.ts +1 -1
  318. package/dist/components/SearchInput/index.d.ts.map +1 -1
  319. package/dist/components/SimpleTable/SimpleTable.d.ts +11 -2
  320. package/dist/components/SimpleTable/SimpleTable.d.ts.map +1 -1
  321. package/dist/components/SplitPane/SplitPane.d.ts +2 -1
  322. package/dist/components/SplitPane/SplitPane.d.ts.map +1 -1
  323. package/dist/components/StatusHero/StatusHero.d.ts.map +1 -1
  324. package/dist/components/StatusIndicator/Badge.d.ts +6 -1
  325. package/dist/components/StatusIndicator/Badge.d.ts.map +1 -1
  326. package/dist/components/StatusIndicator/Chip.d.ts +3 -1
  327. package/dist/components/StatusIndicator/Chip.d.ts.map +1 -1
  328. package/dist/components/StatusIndicator/Indicators.d.ts +5 -1
  329. package/dist/components/StatusIndicator/Indicators.d.ts.map +1 -1
  330. package/dist/components/StatusIndicator/Legend.d.ts.map +1 -1
  331. package/dist/components/StatusIndicator/StatusIndicator.d.ts +98 -4
  332. package/dist/components/StatusIndicator/StatusIndicator.d.ts.map +1 -1
  333. package/dist/components/StatusIndicator/index.d.ts +2 -2
  334. package/dist/components/StatusIndicator/index.d.ts.map +1 -1
  335. package/dist/components/StatusIndicator/types.d.ts +48 -1
  336. package/dist/components/StatusIndicator/types.d.ts.map +1 -1
  337. package/dist/components/StepList/StepList.d.ts +80 -0
  338. package/dist/components/StepList/StepList.d.ts.map +1 -0
  339. package/dist/components/StepList/StepStatusMarker.d.ts +39 -0
  340. package/dist/components/StepList/StepStatusMarker.d.ts.map +1 -0
  341. package/dist/components/StepList/stepStatus.d.ts +30 -0
  342. package/dist/components/StepList/stepStatus.d.ts.map +1 -0
  343. package/dist/components/SystemBanner/SystemBanner.d.ts.map +1 -1
  344. package/dist/components/Timeline/Timeline.d.ts +57 -3
  345. package/dist/components/Timeline/Timeline.d.ts.map +1 -1
  346. package/dist/components/Timeline/index.d.ts +1 -1
  347. package/dist/components/Timeline/index.d.ts.map +1 -1
  348. package/dist/components/Timeline/timelineLabels.d.ts +70 -0
  349. package/dist/components/Timeline/timelineLabels.d.ts.map +1 -0
  350. package/dist/components/Toast/Toast.d.ts.map +1 -1
  351. package/dist/components/TopNavHeader.d.ts +6 -0
  352. package/dist/components/TopNavHeader.d.ts.map +1 -1
  353. package/dist/components/TopNavWithSidebar.d.ts +49 -1
  354. package/dist/components/TopNavWithSidebar.d.ts.map +1 -1
  355. package/dist/components/Tour/Tour.d.ts +18 -1
  356. package/dist/components/Tour/Tour.d.ts.map +1 -1
  357. package/dist/components/TransferList/TransferList.d.ts +123 -4
  358. package/dist/components/TransferList/TransferList.d.ts.map +1 -1
  359. package/dist/components/TransferList/index.d.ts +1 -1
  360. package/dist/components/TransferList/index.d.ts.map +1 -1
  361. package/dist/components/TreeView/TreeView.d.ts +97 -8
  362. package/dist/components/TreeView/TreeView.d.ts.map +1 -1
  363. package/dist/components/TreeView/index.d.ts +1 -1
  364. package/dist/components/TreeView/index.d.ts.map +1 -1
  365. package/dist/components/TrinityLoader.d.ts.map +1 -1
  366. package/dist/components/icons/featherExtensions.d.ts +55 -0
  367. package/dist/components/icons/featherExtensions.d.ts.map +1 -0
  368. package/dist/components/icons/materialExtensions.d.ts +20 -0
  369. package/dist/components/icons/materialExtensions.d.ts.map +1 -0
  370. package/dist/components/internal/index.d.ts +87 -0
  371. package/dist/components/internal/index.d.ts.map +1 -1
  372. package/dist/components/navigation/MenuListWithHeading.d.ts +33 -0
  373. package/dist/components/navigation/MenuListWithHeading.d.ts.map +1 -0
  374. package/dist/components/navigation/clientSelectorLabels.d.ts +13 -0
  375. package/dist/components/navigation/clientSelectorLabels.d.ts.map +1 -0
  376. package/dist/components/navigation/components.d.ts +6 -0
  377. package/dist/components/navigation/components.d.ts.map +1 -1
  378. package/dist/components/shared/AsyncOutcomeAlert.d.ts +91 -0
  379. package/dist/components/shared/AsyncOutcomeAlert.d.ts.map +1 -0
  380. package/dist/components/shared/TrinityIconSvg.d.ts.map +1 -1
  381. package/dist/components/shared/TrinityLogoSvg.d.ts.map +1 -1
  382. package/dist/components/shared/bidi.d.ts +44 -0
  383. package/dist/components/shared/bidi.d.ts.map +1 -0
  384. package/dist/components/shared/bidiText.d.ts +25 -0
  385. package/dist/components/shared/bidiText.d.ts.map +1 -0
  386. package/dist/components/shared/containerQueries.d.ts +73 -0
  387. package/dist/components/shared/containerQueries.d.ts.map +1 -0
  388. package/dist/components/shared/createStringsContext.d.ts +69 -0
  389. package/dist/components/shared/createStringsContext.d.ts.map +1 -0
  390. package/dist/components/shared/direction.d.ts +46 -0
  391. package/dist/components/shared/direction.d.ts.map +1 -0
  392. package/dist/components/shared/focusTrap.d.ts +36 -0
  393. package/dist/components/shared/focusTrap.d.ts.map +1 -0
  394. package/dist/components/shared/getInitials.d.ts +29 -0
  395. package/dist/components/shared/getInitials.d.ts.map +1 -0
  396. package/dist/components/shared/headingLevel.d.ts +69 -0
  397. package/dist/components/shared/headingLevel.d.ts.map +1 -0
  398. package/dist/components/shared/mergeSlotProps.d.ts +50 -0
  399. package/dist/components/shared/mergeSlotProps.d.ts.map +1 -0
  400. package/dist/components/shared/mergeSx.d.ts +26 -0
  401. package/dist/components/shared/mergeSx.d.ts.map +1 -0
  402. package/dist/components/shared/motion.d.ts +110 -0
  403. package/dist/components/shared/motion.d.ts.map +1 -0
  404. package/dist/components/shared/occurrenceKeys.d.ts +23 -0
  405. package/dist/components/shared/occurrenceKeys.d.ts.map +1 -0
  406. package/dist/components/shared/primaryAction.d.ts +89 -0
  407. package/dist/components/shared/primaryAction.d.ts.map +1 -0
  408. package/dist/components/shared/resizeKeyboard.d.ts +68 -0
  409. package/dist/components/shared/resizeKeyboard.d.ts.map +1 -0
  410. package/dist/components/shared/rootProps.d.ts +117 -0
  411. package/dist/components/shared/rootProps.d.ts.map +1 -0
  412. package/dist/components/shared/safeContent.d.ts +9 -2
  413. package/dist/components/shared/safeContent.d.ts.map +1 -1
  414. package/dist/components/shared/targetSize.d.ts +64 -0
  415. package/dist/components/shared/targetSize.d.ts.map +1 -0
  416. package/dist/components/shared/useContainerInlineSize.d.ts +43 -0
  417. package/dist/components/shared/useContainerInlineSize.d.ts.map +1 -0
  418. package/dist/components/shared/useCopyAction.d.ts +35 -0
  419. package/dist/components/shared/useCopyAction.d.ts.map +1 -0
  420. package/dist/components/shared/useOverflow.d.ts +44 -0
  421. package/dist/components/shared/useOverflow.d.ts.map +1 -0
  422. package/dist/components/shared/useResizable.d.ts +106 -7
  423. package/dist/components/shared/useResizable.d.ts.map +1 -1
  424. package/dist/components/shared/warnDeprecated.d.ts +89 -15
  425. package/dist/components/shared/warnDeprecated.d.ts.map +1 -1
  426. package/dist/components/shared/zIndexRoles.d.ts +62 -0
  427. package/dist/components/shared/zIndexRoles.d.ts.map +1 -0
  428. package/dist/components/templates/AIReviewQueue/AIReviewQueueTemplate.d.ts +213 -0
  429. package/dist/components/templates/AIReviewQueue/AIReviewQueueTemplate.d.ts.map +1 -0
  430. package/dist/components/templates/AIReviewQueue/index.d.ts +2 -0
  431. package/dist/components/templates/AIReviewQueue/index.d.ts.map +1 -0
  432. package/dist/components/templates/Auth/AuthTemplate.d.ts.map +1 -1
  433. package/dist/components/templates/Auth/types.d.ts +4 -1
  434. package/dist/components/templates/Auth/types.d.ts.map +1 -1
  435. package/dist/components/templates/Catalog/CatalogTemplate.d.ts.map +1 -1
  436. package/dist/components/templates/ConnectorWizard/ConnectorWizardTemplate.d.ts.map +1 -1
  437. package/dist/components/templates/InsightsCenter/InsightsCenterTemplate.d.ts.map +1 -1
  438. package/dist/components/templates/IntegrationDetail/IntegrationDetailTemplate.d.ts.map +1 -1
  439. package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts +168 -10
  440. package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts.map +1 -1
  441. package/dist/components/templates/ListDetail/index.d.ts +1 -1
  442. package/dist/components/templates/ListDetail/index.d.ts.map +1 -1
  443. package/dist/components/templates/ListDetail/listDetailLabels.d.ts +106 -0
  444. package/dist/components/templates/ListDetail/listDetailLabels.d.ts.map +1 -0
  445. package/dist/components/templates/Onboarding/OnboardingTemplate.d.ts.map +1 -1
  446. package/dist/components/templates/Settings/SettingsTemplate.d.ts +0 -3
  447. package/dist/components/templates/Settings/SettingsTemplate.d.ts.map +1 -1
  448. package/dist/components/templates/Wizard/WizardTemplate.d.ts +4 -1
  449. package/dist/components/templates/Wizard/WizardTemplate.d.ts.map +1 -1
  450. package/dist/components/templates/index.d.ts +2 -1
  451. package/dist/components/templates/index.d.ts.map +1 -1
  452. package/dist/data-table.d.ts +1 -1
  453. package/dist/data-table.d.ts.map +1 -1
  454. package/dist/data-table.js +1 -0
  455. package/dist/data-table2.js +13522 -13465
  456. package/dist/data.js +213 -194
  457. package/dist/elk.bundled.js +47371 -0
  458. package/dist/essentials.d.ts +3 -3
  459. package/dist/essentials.d.ts.map +1 -1
  460. package/dist/essentials.js +179 -147
  461. package/dist/focus-on-replace.js +49 -0
  462. package/dist/form.d.ts +26 -4
  463. package/dist/form.d.ts.map +1 -1
  464. package/dist/forms.js +575 -483
  465. package/dist/foundation.js +3704 -0
  466. package/dist/hooks/storageStore.d.ts +51 -0
  467. package/dist/hooks/storageStore.d.ts.map +1 -0
  468. package/dist/hooks/useAsyncAction.d.ts +65 -0
  469. package/dist/hooks/useAsyncAction.d.ts.map +1 -0
  470. package/dist/hooks/useDisclosure.d.ts +190 -0
  471. package/dist/hooks/useDisclosure.d.ts.map +1 -0
  472. package/dist/hooks/useFocusOnReplace.d.ts +95 -0
  473. package/dist/hooks/useFocusOnReplace.d.ts.map +1 -0
  474. package/dist/hooks/useTrinityPalette.d.ts +38 -40
  475. package/dist/hooks/useTrinityPalette.d.ts.map +1 -1
  476. package/dist/hooks.d.ts +44 -6
  477. package/dist/hooks.d.ts.map +1 -1
  478. package/dist/hooks.js +301 -0
  479. package/dist/index.d.ts +71 -26
  480. package/dist/index.d.ts.map +1 -1
  481. package/dist/index.js +13923 -60619
  482. package/dist/patterns/AICopilotPattern/AICopilotPattern.d.ts +203 -0
  483. package/dist/patterns/AICopilotPattern/AICopilotPattern.d.ts.map +1 -0
  484. package/dist/patterns/AICopilotPattern/index.d.ts +3 -0
  485. package/dist/patterns/AICopilotPattern/index.d.ts.map +1 -0
  486. package/dist/patterns/index.d.ts +15 -0
  487. package/dist/patterns/index.d.ts.map +1 -0
  488. package/dist/presets/analytics.d.ts +8 -1
  489. package/dist/presets/analytics.d.ts.map +1 -1
  490. package/dist/presets/crm.d.ts +8 -1
  491. package/dist/presets/crm.d.ts.map +1 -1
  492. package/dist/presets/index.d.ts +1 -1
  493. package/dist/presets/portal.d.ts +8 -1
  494. package/dist/presets/portal.d.ts.map +1 -1
  495. package/dist/safe-content.js +69 -69
  496. package/dist/theme-augmentation.d.ts +388 -0
  497. package/dist/theme-augmentation.d.ts.map +1 -0
  498. package/dist/theme.d.ts +116 -30
  499. package/dist/theme.d.ts.map +1 -1
  500. package/dist/theme.js +891 -436
  501. package/dist/token-color.d.ts +14 -0
  502. package/dist/token-color.d.ts.map +1 -0
  503. package/dist/token-merge.d.ts +56 -0
  504. package/dist/token-merge.d.ts.map +1 -0
  505. package/dist/token-serialization.d.ts +65 -0
  506. package/dist/token-serialization.d.ts.map +1 -0
  507. package/dist/tokens.d.ts +882 -13
  508. package/dist/tokens.d.ts.map +1 -1
  509. package/dist/tokens.js +21 -19
  510. package/dist/trinity.css +1077 -414
  511. package/package.json +111 -90
  512. package/dist/components/index.d.ts +0 -145
  513. package/dist/components/index.d.ts.map +0 -1
  514. package/dist/components/shared.d.ts +0 -92
  515. package/dist/components/shared.d.ts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clientSelectorLabels.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/clientSelectorLabels.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;GAGG;AACH,eAAO,MAAM,0BAA0B,GAAI,QAAQ,MAAM,KAAG,MAA6C,CAAC;AAE1G,+DAA+D;AAC/D,eAAO,MAAM,mBAAmB,kBAAkB,CAAC"}
@@ -44,6 +44,12 @@ export interface ClientMenuProps {
44
44
  onButtonClick: (event: React.MouseEvent<HTMLElement>) => void;
45
45
  onClose: () => void;
46
46
  onSelect: (client: Client) => void;
47
+ /**
48
+ * Accessible name of the trigger, from the current client.
49
+ * @default (client) => `Switch client, current: ${client}`
50
+ * @since 2.13.0
51
+ */
52
+ clientSelectorLabel?: (client: string) => string;
47
53
  }
48
54
  export declare const ClientMenu: React.ForwardRefExoticComponent<ClientMenuProps & React.RefAttributes<HTMLButtonElement>>;
49
55
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/components.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AA6B1B,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,SAAS,CAAC;AAMtC;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,WAAW,yFAQvB,CAAC;AAMF;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC/D,UAAU,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,KAAK,IAAI,CAAC;IACjD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,uFA6BpB,CAAC;AAMH;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,EAAE,WAAW,GAAG,IAAI,CAAC;IAC7B,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAC9D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED,eAAO,MAAM,UAAU,2FA6DrB,CAAC;AAMH;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,QAAQ,EAAE,WAAW,GAAG,IAAI,CAAC;IAC7B,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAC9D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED,eAAO,MAAM,QAAQ,yFA4DnB,CAAC;AAMH;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,WAAW,GAAG,IAAI,CAAC;IAC7B,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAC9D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED,eAAO,MAAM,QAAQ,yFA+EnB,CAAC;AAMH;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAwBtD,CAAC"}
1
+ {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/components.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AA8B1B,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,SAAS,CAAC;AAUtC;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,WAAW,yFAQvB,CAAC;AAMF;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC/D,UAAU,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,KAAK,IAAI,CAAC;IACjD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,uFA+BpB,CAAC;AAMH;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,EAAE,WAAW,GAAG,IAAI,CAAC;IAC7B,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAC9D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;CAClD;AAED,eAAO,MAAM,UAAU,2FAuErB,CAAC;AAMH;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,QAAQ,EAAE,WAAW,GAAG,IAAI,CAAC;IAC7B,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAC9D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED,eAAO,MAAM,QAAQ,yFAwEnB,CAAC;AAMH;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,WAAW,GAAG,IAAI,CAAC;IAC7B,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAC9D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED,eAAO,MAAM,QAAQ,yFA+FnB,CAAC;AAMH;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA4BtD,CAAC"}
@@ -0,0 +1,91 @@
1
+ /**
2
+ * @fileoverview AsyncOutcomeAlert: the one inline error surface for a failed async action (ADR-36 (4)).
3
+ * @module components/shared/AsyncOutcomeAlert
4
+ *
5
+ * @internal — not part of the public API; see ADR-02
6
+ *
7
+ * A surface that runs an action through `useAsyncAction` (B-07) renders this
8
+ * below its controls when the action fails: an MUI Alert (severity error,
9
+ * theme colours only) with the message and, when the action can run again, a
10
+ * retry button. It holds no built-in strings: the surface passes the message
11
+ * (MICROCOPY's "what happened / what to do" form) and the button text.
12
+ *
13
+ * - Announcement: the message is announced once, assertively, through
14
+ * `useAnnounce` (B-04), so it reaches the nearest `LiveRegionProvider` (a
15
+ * Modal or Popover paper) or the document-level region. The Alert itself
16
+ * carries no `role="alert"` (G-OD9): inside a chat log or a live container
17
+ * an implicit live role would announce twice or nest live regions. A new
18
+ * message text is announced again; a re-render with the same text is not.
19
+ * - Focus (ADR-31, ADR-36 (1)): it never steals focus. When the Alert appears
20
+ * and nothing has focus (the control that failed was removed), focus moves to
21
+ * the Alert. After the retry button is pressed, if the button goes away (the
22
+ * surface removes the Alert, or renders it again without a retry), focus
23
+ * moves to `focusFallbackRef`, else to the Alert while it is still shown.
24
+ * - Root props: `className`, `sx`, `style`, `ref`, `data-*` and `aria-*` reach
25
+ * the Alert root. `role` and `tabIndex` are owned.
26
+ * - Narrow hosts (a 360px popover, a 320px panel): the retry button wraps below
27
+ * the message once the message would get less than 12rem, and long words
28
+ * wrap, so the message never becomes a narrow box that scrolls sideways
29
+ * (MUI's message is `overflow: auto`, which axe then reports as a
30
+ * scrollable region with nothing focusable in it). Wide hosts look the same:
31
+ * the button stays at the inline end.
32
+ *
33
+ * @example
34
+ * ```tsx
35
+ * const submitRef = React.useRef<HTMLButtonElement>(null);
36
+ * const save = useAsyncAction(onSave);
37
+ * {save.status === 'error' && (
38
+ * <AsyncOutcomeAlert
39
+ * message={strings.saveFailed} // "The changes were not saved. Check your connection and try again."
40
+ * retryLabel={strings.tryAgain} // "Try again"
41
+ * onRetry={() => save.run(values)}
42
+ * error={save.error}
43
+ * focusFallbackRef={submitRef}
44
+ * />
45
+ * )}
46
+ * ```
47
+ */
48
+ import * as React from 'react';
49
+ import { type SxProps, type Theme } from '@mui/material';
50
+ /** Props of `AsyncOutcomeAlert` that every variant shares. */
51
+ interface AsyncOutcomeAlertBaseProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children' | 'role' | 'tabIndex' | 'onError' | 'color'> {
52
+ /** What happened and what to do next. Announced assertively when it appears or changes. */
53
+ message: React.ReactNode;
54
+ /**
55
+ * The error the action reported. It is never rendered (it may hold
56
+ * internals); pass it so developer tools show the cause next to the message.
57
+ */
58
+ error?: unknown;
59
+ /**
60
+ * Where focus goes when the retry button disappears after it was pressed
61
+ * (the Alert is removed, or shown again without a retry). Usually the
62
+ * control that started the action. Without it, focus goes to the Alert
63
+ * while it is still shown.
64
+ */
65
+ focusFallbackRef?: React.RefObject<HTMLElement | null>;
66
+ /** Styles for the Alert root, merged after the defaults. */
67
+ sx?: SxProps<Theme>;
68
+ }
69
+ /**
70
+ * Props of `AsyncOutcomeAlert`. `retryLabel` is required when `onRetry` is set:
71
+ * the component has no built-in strings.
72
+ *
73
+ * @internal
74
+ */
75
+ export type AsyncOutcomeAlertProps = AsyncOutcomeAlertBaseProps & ({
76
+ /** Runs the failed action again. Shows the retry button. */
77
+ onRetry: () => void;
78
+ /** The retry button text, for example "Try again". */
79
+ retryLabel: string;
80
+ } | {
81
+ onRetry?: undefined;
82
+ retryLabel?: undefined;
83
+ });
84
+ /**
85
+ * The inline error surface for a failed async action (ADR-36 (4)).
86
+ *
87
+ * @internal
88
+ */
89
+ export declare const AsyncOutcomeAlert: React.ForwardRefExoticComponent<AsyncOutcomeAlertProps & React.RefAttributes<HTMLDivElement>>;
90
+ export {};
91
+ //# sourceMappingURL=AsyncOutcomeAlert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AsyncOutcomeAlert.d.ts","sourceRoot":"","sources":["../../../src/components/shared/AsyncOutcomeAlert.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAsB,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AAO7E,8DAA8D;AAC9D,UAAU,0BACR,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC;IAC1G,2FAA2F;IAC3F,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACvD,4DAA4D;IAC5D,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAED;;;;;GAKG;AACH,MAAM,MAAM,sBAAsB,GAAG,0BAA0B,GAC7D,CACI;IACE,4DAA4D;IAC5D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,sDAAsD;IACtD,UAAU,EAAE,MAAM,CAAC;CACpB,GACD;IAAE,OAAO,CAAC,EAAE,SAAS,CAAC;IAAC,UAAU,CAAC,EAAE,SAAS,CAAA;CAAE,CAClD,CAAC;AAcJ;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,+FAyF5B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TrinityIconSvg.d.ts","sourceRoot":"","sources":["../../../src/components/shared/TrinityIconSvg.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAuCxD,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"TrinityIconSvg.d.ts","sourceRoot":"","sources":["../../../src/components/shared/TrinityIconSvg.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAyCxD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TrinityLogoSvg.d.ts","sourceRoot":"","sources":["../../../src/components/shared/TrinityLogoSvg.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAiExD,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"TrinityLogoSvg.d.ts","sourceRoot":"","sources":["../../../src/components/shared/TrinityLogoSvg.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAsExD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,44 @@
1
+ /**
2
+ * @fileoverview Bidi isolation for text that is not written in the UI language (E-48+;
3
+ * docs/RTL.md, "Mixed-direction text").
4
+ * @module components/shared/bidi
5
+ *
6
+ * @internal — not part of the public API; see ADR-02
7
+ *
8
+ * A value that comes from a model, a user or a data source can be in any script. Placed next to
9
+ * a label in the UI's language, its neutral characters (punctuation, spaces, brackets, digits
10
+ * at the edges) take their direction from the label's paragraph and reorder: in an Arabic UI,
11
+ * `v2.1 (beta)!` shows its `!` before the `v`. Isolating the value lets its own first strong
12
+ * character decide its direction and keeps it from reordering the label around it.
13
+ *
14
+ * - {@link BidiIsolate}: the element form, `<span dir="auto">` with `unicode-bidi: isolate`.
15
+ * - `isolateText` (./bidiText.ts): the string form, for text that must stay a string
16
+ * (`aria-label`, `title`, live-region announcements): the value between Unicode isolate
17
+ * controls. It has its own module so this one exports only a component (react-refresh).
18
+ *
19
+ * Isolate values, never labels: a label is authored in the UI language and follows the page.
20
+ * It lives here, in src/components/shared/, so the shared blocks (MetaChip, KeyValueList) can
21
+ * import it (src/__tests__/shared-block-layering.test.ts).
22
+ */
23
+ import { type HTMLAttributes, type ReactNode } from 'react';
24
+ import type { BidiDirection } from './bidiText';
25
+ /** Props of {@link BidiIsolate}. @internal */
26
+ export interface BidiIsolateProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'dir'> {
27
+ /** The value to isolate: model, user or data text. */
28
+ children?: ReactNode;
29
+ /**
30
+ * 'auto' (the default): the value's first strong character decides, which is right for text
31
+ * in an unknown script. 'ltr' for content that is always left to right whatever its first
32
+ * character: code, URLs, e-mail addresses, file paths and identifiers. 'rtl' only for a value
33
+ * known to be right to left.
34
+ * @default 'auto'
35
+ */
36
+ dir?: BidiDirection;
37
+ }
38
+ /**
39
+ * An inline bidi isolate: `<span dir="auto">` with `unicode-bidi: isolate`. Wrap the value, not
40
+ * the label: `{label}: <BidiIsolate>{value}</BidiIsolate>`. It adds no box, colour or spacing.
41
+ * @internal
42
+ */
43
+ export declare const BidiIsolate: import("react").ForwardRefExoticComponent<BidiIsolateProps & import("react").RefAttributes<HTMLSpanElement>>;
44
+ //# sourceMappingURL=bidi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bidi.d.ts","sourceRoot":"","sources":["../../../src/components/shared/bidi.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EAAc,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAExE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,8CAA8C;AAC9C,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,KAAK,CAAC;IACpF,sDAAsD;IACtD,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,aAAa,CAAC;CACrB;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,8GAKtB,CAAC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @fileoverview The string form of bidi isolation (E-48+; docs/RTL.md, "Mixed-direction text"),
3
+ * for text that cannot hold markup. The element form is `BidiIsolate` in ./bidi.tsx.
4
+ * @module components/shared/bidiText
5
+ *
6
+ * @internal — not part of the public API; see ADR-02
7
+ */
8
+ /** The direction of an isolated value: 'auto' lets its first strong character decide. */
9
+ export type BidiDirection = 'auto' | 'ltr' | 'rtl';
10
+ /** First strong isolate, left-to-right isolate, right-to-left isolate, pop directional isolate. */
11
+ export declare const BIDI_ISOLATE_CONTROLS: Readonly<{
12
+ auto: "⁨";
13
+ ltr: "⁦";
14
+ rtl: "⁧";
15
+ pop: "⁩";
16
+ }>;
17
+ /**
18
+ * The string form of {@link BidiIsolate}: the value between Unicode isolate controls (U+2068
19
+ * FIRST STRONG ISOLATE, or U+2066 / U+2067 for a fixed direction, then U+2069 POP DIRECTIONAL
20
+ * ISOLATE). Use it where markup cannot go, such as `aria-label`, `title` and announcements:
21
+ * ``aria-label={`Remove ${isolateText(fileName, 'ltr')}`}``. An empty value stays empty.
22
+ * @internal
23
+ */
24
+ export declare function isolateText(value: string, dir?: BidiDirection): string;
25
+ //# sourceMappingURL=bidiText.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bidiText.d.ts","sourceRoot":"","sources":["../../../src/components/shared/bidiText.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,yFAAyF;AACzF,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;AAEnD,mGAAmG;AACnG,eAAO,MAAM,qBAAqB;;;;;EAKhC,CAAC;AAEH;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,GAAE,aAAsB,GAAG,MAAM,CAG9E"}
@@ -0,0 +1,73 @@
1
+ /**
2
+ * @fileoverview Container-query helpers for components hosted in narrow containers
3
+ * (master-plan E-19, ADR-11 §5).
4
+ * @module components/shared/containerQueries
5
+ *
6
+ * @internal — not part of the public API; see ADR-02
7
+ *
8
+ * Panel-hosted components (an AI panel 320-420px wide inside a desktop viewport) cannot use
9
+ * viewport breakpoints: the viewport says "desktop" while the panel is narrow. They respond
10
+ * to their container instead, with the widths in `semanticTokens.spacing.layout.containerQuery`
11
+ * (narrow 320, compact 360, regular 600), which are JavaScript-only: a CSS custom property
12
+ * cannot be an `@container` operand (H-08).
13
+ *
14
+ * The policy (docs/TOKEN_USAGE_RULES.md, "Narrow containers"):
15
+ *
16
+ * - Every panel-hosted component is usable at `narrow` (320px) with no horizontal scroll.
17
+ * - Below `compact`, footers and toolbars wrap or collapse.
18
+ * - Container queries for components, viewport breakpoints only for page layout.
19
+ * - **The inner-wrapper rule.** `container-type: inline-size` goes on an inner wrapper
20
+ * ({@link containerWrapperSx}), never on the component's public root. A size container
21
+ * cannot size itself from its content, so on the root it would change how the component
22
+ * sizes in its host, and it would turn a consumer's `sx` on the root into a container
23
+ * query target they did not ask for. Rules inside the wrapper query it with
24
+ * {@link containerUp} and {@link containerDown}.
25
+ *
26
+ * Container queries need an evergreen browser (ADR-11); MUI 9 builds the conditions.
27
+ *
28
+ * @example
29
+ * ```tsx
30
+ * <Box className="root">
31
+ * <Box sx={containerWrapperSx}>
32
+ * <Box sx={(theme) => ({
33
+ * display: 'flex',
34
+ * flexWrap: 'nowrap',
35
+ * [containerDown(theme, 'compact')]: { flexWrap: 'wrap' },
36
+ * })} />
37
+ * </Box>
38
+ * </Box>
39
+ * ```
40
+ */
41
+ import type { Theme } from '@mui/material/styles';
42
+ import { type TrinityContainerQuerySizes } from '../../tokens';
43
+ /** A container width role: `narrow` (320px), `compact` (360px) or `regular` (600px). */
44
+ export type ContainerQuerySize = keyof TrinityContainerQuerySizes;
45
+ /**
46
+ * The inner wrapper that becomes the size container. `width: 100%` keeps it as wide as the
47
+ * component, because an inline-size container does not size from its content.
48
+ *
49
+ * For the same reason its content gives the component no width in a host that sizes from content
50
+ * (a flex row whose child has no width, a grid `auto` column, a popover's paper): the component
51
+ * would be 0px wide there (F-22's hosting check). `containIntrinsicInlineSize` gives the
52
+ * container the narrow container width (320px, `semanticTokens.spacing.layout.containerQuery`)
53
+ * as its intrinsic inline size, the width every panel-hosted component is usable at; a host that
54
+ * sets a width still decides the width.
55
+ */
56
+ export declare const containerWrapperSx: {
57
+ readonly containerType: "inline-size";
58
+ readonly width: "100%";
59
+ readonly containIntrinsicInlineSize: `${number}px`;
60
+ };
61
+ /**
62
+ * The width in px for a container role: the theme's resolved tokens (token overrides reach
63
+ * it), else the defaults. Works under a plain MUI theme too.
64
+ */
65
+ export declare function containerQueryWidth(theme: Theme, size: ContainerQuerySize): number;
66
+ /**
67
+ * `@container (min-width:<px>)` for a role, or `@container <name> (min-width:<px>)` when the
68
+ * wrapper has a `containerName`. Use as an `sx` key.
69
+ */
70
+ export declare function containerUp(theme: Theme, size: ContainerQuerySize, name?: string): string;
71
+ /** `@container (max-width:<px - 0.05>)` for a role: below that width. Use as an `sx` key. */
72
+ export declare function containerDown(theme: Theme, size: ContainerQuerySize, name?: string): string;
73
+ //# sourceMappingURL=containerQueries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"containerQueries.d.ts","sourceRoot":"","sources":["../../../src/components/shared/containerQueries.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAkB,KAAK,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAE/E,wFAAwF;AACxF,MAAM,MAAM,kBAAkB,GAAG,MAAM,0BAA0B,CAAC;AAElE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB;;;;CAIrB,CAAC;AAEX;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,kBAAkB,GAAG,MAAM,CAGlF;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAGzF;AAED,6FAA6F;AAC7F,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAG3F"}
@@ -0,0 +1,69 @@
1
+ import type { Context, ReactElement, ReactNode } from 'react';
2
+ /**
3
+ * Every key optional, at every depth. Functions (count strings) are leaves: they are replaced
4
+ * whole, never merged.
5
+ *
6
+ * @internal
7
+ */
8
+ export type DeepPartial<T> = {
9
+ [K in keyof T]?: T[K] extends (...args: never[]) => unknown ? T[K] : T[K] extends object ? DeepPartial<T[K]> : T[K];
10
+ };
11
+ /** @internal */
12
+ export interface StringsProviderProps<T> {
13
+ /** Keys to replace; the rest come from the nearest parent provider, then the defaults. */
14
+ strings?: DeepPartial<T>;
15
+ children?: ReactNode;
16
+ }
17
+ /** @internal */
18
+ export interface StringsContextOptions {
19
+ /** The public component that renders the provider, named in warnings. Default `StringsProvider(<namespace>)`. */
20
+ providerName?: string;
21
+ }
22
+ /** @internal */
23
+ export interface StringsContextKit<T> {
24
+ /** The namespace, for example 'ai'. */
25
+ namespace: string;
26
+ /** The built-in strings, returned when no provider is mounted. */
27
+ defaults: T;
28
+ /** The context itself; its default value is `defaults`. */
29
+ Context: Context<T>;
30
+ /** Deep-merges `strings` over the nearest parent value. */
31
+ StringsProvider: (props: StringsProviderProps<T>) => ReactElement;
32
+ /** The merged strings of the nearest provider, or `defaults`. */
33
+ useStrings: () => T;
34
+ }
35
+ /**
36
+ * Deep-merges `overrides` over `base` without mutating either. Returns `base` itself when
37
+ * there is nothing to merge, so the value keeps its identity.
38
+ *
39
+ * @internal
40
+ */
41
+ export declare function mergeStrings<T>(base: T, overrides: DeepPartial<T> | undefined): T;
42
+ /**
43
+ * A stable text form of a value for the churn check: object keys sorted, functions by their
44
+ * source text (an inline arrow re-created on each render has the same text).
45
+ *
46
+ * @internal
47
+ */
48
+ export declare function contentHash(value: unknown): string;
49
+ /**
50
+ * Dev-only identity-churn check (ADR-06 (4)). Runs after every commit of the calling
51
+ * component and warns once when `value` got a new identity with equal content on more than 3
52
+ * consecutive commits. Checking in an effect means StrictMode's double render never counts,
53
+ * and its double effect sees the same identity twice, which is not a change.
54
+ *
55
+ * @internal
56
+ */
57
+ export declare function useIdentityChurnWarning(label: string, value: unknown): void;
58
+ /**
59
+ * Creates a namespaced strings context: provider, hook and defaults.
60
+ *
61
+ * @param namespace The key namespace, for example 'ai'. Used in key paths, warnings and the
62
+ * context's display name.
63
+ * @param defaults The built-in strings. Frozen by the caller or never mutated.
64
+ * @param options.providerName The public component that renders the provider, for warnings.
65
+ *
66
+ * @internal
67
+ */
68
+ export declare function createStringsContext<T extends object>(namespace: string, defaults: T, options?: StringsContextOptions): StringsContextKit<T>;
69
+ //# sourceMappingURL=createStringsContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createStringsContext.d.ts","sourceRoot":"","sources":["../../../src/components/shared/createStringsContext.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9D;;;;;GAKG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACpH,CAAC;AAEF,gBAAgB;AAChB,MAAM,WAAW,oBAAoB,CAAC,CAAC;IACrC,0FAA0F;IAC1F,OAAO,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;IACzB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,gBAAgB;AAChB,MAAM,WAAW,qBAAqB;IACpC,iHAAiH;IACjH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,gBAAgB;AAChB,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC,uCAAuC;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,kEAAkE;IAClE,QAAQ,EAAE,CAAC,CAAC;IACZ,2DAA2D;IAC3D,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IACpB,2DAA2D;IAC3D,eAAe,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC,CAAC,CAAC,KAAK,YAAY,CAAC;IAClE,iEAAiE;IACjE,UAAU,EAAE,MAAM,CAAC,CAAC;CACrB;AAKD;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,CAAC,CASjF;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAMlD;AAKD;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CA4B3E;AAED;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,MAAM,EACnD,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,CAAC,EACX,OAAO,GAAE,qBAA0B,GAClC,iBAAiB,CAAC,CAAC,CAAC,CAkBtB"}
@@ -0,0 +1,46 @@
1
+ /**
2
+ * @fileoverview Direction helpers for the CSS that logical properties cannot express (ADR-11,
3
+ * master-plan E-18; docs/QUICK_START.md, "Right-to-left").
4
+ * @module components/shared/direction
5
+ *
6
+ * @internal — not part of the public API; see ADR-02
7
+ *
8
+ * Layout uses logical properties, which follow `dir` with or without stylis-plugin-rtl:
9
+ * `marginInlineStart`, `paddingInlineEnd`, `insetInlineStart`, `borderInlineStart`,
10
+ * `textAlign: 'start'` and `borderStartStartRadius` (and its three siblings). Never build them
11
+ * from these helpers.
12
+ *
13
+ * Transforms have no logical form, and the RTL plugin does not flip them: a chevron rotated to
14
+ * point at the inline end, or an entrance that slides in from the inline start, must read the
15
+ * theme's direction. These helpers do that, so a component never branches on `theme.direction`
16
+ * itself. They read `theme.direction`, which `createTrinityTheme(mode, overrides, 'rtl')` and
17
+ * the presets' `direction` option set; the consumer also sets `dir` on the root
18
+ * (QUICK_START). A theme without a direction is left to right, as in MUI.
19
+ */
20
+ import type { Theme } from '@mui/material/styles';
21
+ /** The part of a theme the helpers read; any MUI theme fits. */
22
+ export type DirectionSource = Pick<Theme, 'direction'> | {
23
+ direction?: Theme['direction'];
24
+ };
25
+ /** Whether the theme lays out right to left. */
26
+ export declare function isRtl(theme: DirectionSource): boolean;
27
+ /**
28
+ * The sign of the inline-end direction on the physical x axis: `1` left to right, `-1` right to
29
+ * left. Multiply an x offset or an angle that points toward the inline end by it.
30
+ */
31
+ export declare function inlineSign(theme: DirectionSource): 1 | -1;
32
+ /**
33
+ * A `rotate()` for an angle written for left to right, mirrored right to left. A chevron that
34
+ * points down (`chevron-down`) and turns to point at the inline end when collapsed uses
35
+ * `rotateInline(theme, -90)`: `rotate(-90deg)` left to right, `rotate(90deg)` right to left.
36
+ * Zero stays `rotate(0deg)`.
37
+ */
38
+ export declare function rotateInline(theme: DirectionSource, degrees: number): string;
39
+ /**
40
+ * A `translateX()` that moves an element `px` pixels toward the inline start (negative values
41
+ * move it toward the inline end): `translateX(-8px)` left to right, `translateX(8px)` right to
42
+ * left for `translateInlineStart(theme, 8)`. Use it for an entrance that slides in from the
43
+ * start edge; zero is `translateX(0px)`.
44
+ */
45
+ export declare function translateInlineStart(theme: DirectionSource, px: number): string;
46
+ //# sourceMappingURL=direction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"direction.d.ts","sourceRoot":"","sources":["../../../src/components/shared/direction.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD,gEAAgE;AAChE,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC,GAAG;IAAE,SAAS,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,CAAA;CAAE,CAAC;AAE5F,gDAAgD;AAChD,wBAAgB,KAAK,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAErD;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,CAAC,GAAG,CAAC,CAAC,CAEzD;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAG5E;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,eAAe,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAG/E"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * @fileoverview The focus trap of Trinity's light-dismiss surfaces (C-07, ADR-15, ADR-34).
3
+ * @module components/shared/focusTrap
4
+ *
5
+ * @internal — not part of the public API; see ADR-02
6
+ *
7
+ * Trinity adopts MUI's focus trap instead of writing one (keyboard-models.md, "Popper click
8
+ * mode": ADOPT). MUI 9.4.0 ships it only as `Unstable_TrapFocus`; this module is the one place
9
+ * that imports it, so a rename in MUI touches one line. A hand-written Tab trap is a strict
10
+ * check:behavior finding (`focus-trap-manual`).
11
+ *
12
+ * What the trap does while `open`: it moves focus into its child (the child needs `tabIndex={-1}`
13
+ * and must hold a ref), keeps Tab and Shift+Tab inside it, and pulls focus back if it leaves.
14
+ * Options a surface sets:
15
+ * - `disableRestoreFocus`: the surface restores focus itself (Popper returns it to its trigger,
16
+ * which a browser that does not focus clicked buttons, Safari, would not have recorded);
17
+ * - `disableEnforceFocus`: for surfaces that must let focus leave (not used by Popper).
18
+ *
19
+ * @example
20
+ * ```tsx
21
+ * <FocusTrap open={open} disableRestoreFocus>
22
+ * <Paper ref={ref} tabIndex={-1} role="dialog" aria-modal="true" aria-label="Filters">…</Paper>
23
+ * </FocusTrap>
24
+ * ```
25
+ */
26
+ import TrapFocus from '@mui/material/Unstable_TrapFocus';
27
+ import type { TrapFocusProps } from '@mui/material/Unstable_TrapFocus';
28
+ /** MUI's focus trap, under Trinity's name. @internal */
29
+ export declare const FocusTrap: typeof TrapFocus;
30
+ /** Props of {@link FocusTrap}: MUI's `TrapFocusProps`. @internal */
31
+ export type FocusTrapProps = TrapFocusProps;
32
+ /** The elements a keyboard user can reach with Tab. @internal */
33
+ export declare const TABBABLE_SELECTOR: string;
34
+ /** The first element inside `root` that Tab reaches, or null. @internal */
35
+ export declare function firstTabbable(root: Element | null): HTMLElement | null;
36
+ //# sourceMappingURL=focusTrap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focusTrap.d.ts","sourceRoot":"","sources":["../../../src/components/shared/focusTrap.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,SAAS,MAAM,kCAAkC,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAEvE,wDAAwD;AACxD,eAAO,MAAM,SAAS,kBAAY,CAAC;AAEnC,oEAAoE;AACpE,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC;AAE5C,iEAAiE;AACjE,eAAO,MAAM,iBAAiB,QAYnB,CAAC;AAEZ,2EAA2E;AAC3E,wBAAgB,aAAa,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,GAAG,WAAW,GAAG,IAAI,CAMtE"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * @fileoverview getInitials: up to two initials from a name, safe for any Unicode letter
3
+ * (master-plan C-21).
4
+ * @module components/shared/getInitials
5
+ *
6
+ * @internal — not part of the public API; see ADR-02
7
+ */
8
+ /**
9
+ * The initials of a name: the first character of each of its first two words, upper-cased.
10
+ *
11
+ * - Characters are code points (`Array.from`), so a letter outside the Basic Multilingual
12
+ * Plane (`𝒜`, `𠀋`, an emoji) is kept whole instead of being cut into half a surrogate pair.
13
+ * - Words are split on any whitespace; leading, trailing and repeated whitespace is ignored.
14
+ * An empty or whitespace-only name gives `''`.
15
+ * - Without `locale`, `toUpperCase()` is locale-independent, so the server and the client
16
+ * render the same text. Pass a locale for language-specific casing (`'tr'`: `i` becomes `İ`).
17
+ *
18
+ * UserAvatar and OrgChart use it; AuditDrawer moves onto it in C-34.
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * getInitials('Ada Lovelace'); // 'AL'
23
+ * getInitials(' grace brewster hopper '); // 'GB'
24
+ * getInitials('ilkay', 'tr'); // 'İ'
25
+ * ```
26
+ * @internal
27
+ */
28
+ export declare function getInitials(name: string, locale?: string | string[]): string;
29
+ //# sourceMappingURL=getInitials.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getInitials.d.ts","sourceRoot":"","sources":["../../../src/components/shared/getInitials.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAW5E"}
@@ -0,0 +1,69 @@
1
+ /**
2
+ * Heading-level contract (master plan WI-45, ADR-19 (2); docs/NAMING.md, "Heading level").
3
+ *
4
+ * One public type and two internal helpers, used by every component that renders its own title
5
+ * as a heading (AIContainer, AISourcesSection, AIExplainability, ChatHeader, AIDigestCard,
6
+ * AIChainOfThought phases, ChatThread) and by components that shift authored headings
7
+ * (AITextBlock's `headingOffset`).
8
+ *
9
+ * - `headingLevel?: HeadingLevel` sets the element of the component's own title. Level 1 is
10
+ * reserved for the page.
11
+ * - The default preserves today's element, so adding the prop changes no DOM.
12
+ * - `headingOffset` (0-5) shifts authored headings inside content, clamped at h6.
13
+ * - A component whose title is not a heading takes `component`, never `headingLevel`.
14
+ *
15
+ * Invalid levels throw in development, so a wrong value is caught at once; in production they
16
+ * clamp into range, so a page never crashes over a heading.
17
+ *
18
+ * @module components/shared/headingLevel
19
+ *
20
+ * @internal — not part of the public API; see ADR-02
21
+ * (The `HeadingLevel` type is public: src/index.ts exports it. The helpers are internal.)
22
+ */
23
+ /**
24
+ * The level of the heading element a component renders for its own title: 2 to 6, for h2 to
25
+ * h6. Level 1 is reserved for the page title. Every `headingLevel` prop uses this type (NAMING,
26
+ * "Heading level"), and its default keeps the element the component rendered before the prop.
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * interface ReportCardProps {
31
+ * title: string;
32
+ * // Element of the title. Default 3: the card rendered an h3 before the prop existed.
33
+ * headingLevel?: HeadingLevel;
34
+ * }
35
+ * ```
36
+ *
37
+ * @since 2.13.0
38
+ */
39
+ export type HeadingLevel = 2 | 3 | 4 | 5 | 6;
40
+ /**
41
+ * How many levels authored headings shift down, for example in markdown content: 0 to 5.
42
+ * The result is clamped at h6.
43
+ *
44
+ * @internal
45
+ */
46
+ export type HeadingOffset = 0 | 1 | 2 | 3 | 4 | 5;
47
+ /** @internal */
48
+ export type HeadingElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
49
+ /**
50
+ * The element for a component's own title: `headingComponent(3)` is `'h3'`.
51
+ *
52
+ * @throws RangeError in development for anything but 2, 3, 4, 5 or 6. In production the level
53
+ * is rounded and clamped into 2-6 (a non-number gives 'h2').
54
+ *
55
+ * @internal
56
+ */
57
+ export declare function headingComponent(level: HeadingLevel): Exclude<HeadingElement, 'h1'>;
58
+ /**
59
+ * The element for an authored heading (level 1-6, as written in the content) shifted down by
60
+ * `offset`, clamped at h6: `offsetHeadingComponent(1, 2)` is `'h3'`, `offsetHeadingComponent(5, 3)`
61
+ * is `'h6'`. The default offset 0 keeps the authored level.
62
+ *
63
+ * @throws RangeError in development for a level outside 1-6 or an offset outside 0-5. In
64
+ * production both are rounded and clamped into range.
65
+ *
66
+ * @internal
67
+ */
68
+ export declare function offsetHeadingComponent(level: 1 | 2 | 3 | 4 | 5 | 6, offset?: HeadingOffset): HeadingElement;
69
+ //# sourceMappingURL=headingLevel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"headingLevel.d.ts","sourceRoot":"","sources":["../../../src/components/shared/headingLevel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE7C;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAElD,gBAAgB;AAChB,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAWrE;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC,CAMnF;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,MAAM,GAAE,aAAiB,GAAG,cAAc,CAQ9G"}
@@ -0,0 +1,50 @@
1
+ /**
2
+ * @fileoverview mergeSlotProps: a slot's own props merged with the consumer's slotProps
3
+ * (ADR-04 (6), master-plan E-15).
4
+ * @module components/shared/mergeSlotProps
5
+ *
6
+ * @internal — not part of the public API; see ADR-02
7
+ *
8
+ * Merge rules, tested once here so every component's slots behave the same:
9
+ *
10
+ * - `sx`: the slot's own sx, then the consumer's ({@link mergeSx}).
11
+ * - `className`: both, the slot's first.
12
+ * - `style`: shallow merge, the consumer's keys win.
13
+ * - Event handlers (`on*`): when both are functions, the slot's own runs first, then the
14
+ * consumer's, with the same arguments.
15
+ * - `aria-describedby` and `aria-labelledby`: both id lists, joined.
16
+ * - Owned attributes ({@link OwnedAttribute}): the slot's own values stay. A consumer value
17
+ * is dropped, with a development warning (once per component).
18
+ * - Any other prop: the consumer's value wins, unless it is `undefined`. Read references
19
+ * such as `id` from the merged result, so they follow a consumer's override.
20
+ *
21
+ * Slots are Trinity-owned: never pass the result straight into an MUI component's own
22
+ * slotProps without mapping it (ADR-04 (6)).
23
+ *
24
+ * @example
25
+ * ```tsx
26
+ * const titleProps = mergeSlotProps({ id: titleId, sx: titleSx }, slotProps?.title, { componentName: 'AIReviewItem', slotName: 'title' });
27
+ * <Typography {...titleProps} /> // and aria-labelledby={titleProps.id} on the region
28
+ * ```
29
+ */
30
+ import type * as React from 'react';
31
+ import { type OwnedAttribute, type TrinitySlotProps } from './rootProps';
32
+ /**
33
+ * The props a component gives its own slot: the consumer's slot props plus the owned
34
+ * attributes, which only the component may set.
35
+ * @internal
36
+ */
37
+ export type SlotOwnProps<El extends HTMLElement = HTMLElement> = TrinitySlotProps<El> & Partial<Pick<React.HTMLAttributes<El>, OwnedAttribute>>;
38
+ /** Options of {@link mergeSlotProps}. @internal */
39
+ export interface MergeSlotPropsOptions {
40
+ /** Names the component in the development warning. */
41
+ componentName?: string;
42
+ /** Names the slot in the development warning. */
43
+ slotName?: string;
44
+ }
45
+ /**
46
+ * Merges a slot's own props (`own`) with the consumer's `slotProps.<slot>` (`consumer`).
47
+ * @internal
48
+ */
49
+ export declare function mergeSlotProps<El extends HTMLElement = HTMLElement>(own: SlotOwnProps<El> | undefined, consumer: TrinitySlotProps<El> | undefined, options?: MergeSlotPropsOptions): SlotOwnProps<El>;
50
+ //# sourceMappingURL=mergeSlotProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mergeSlotProps.d.ts","sourceRoot":"","sources":["../../../src/components/shared/mergeSlotProps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,OAAO,EAA+D,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEtI;;;;GAIG;AACH,MAAM,MAAM,YAAY,CAAC,EAAE,SAAS,WAAW,GAAG,WAAW,IAAI,gBAAgB,CAAC,EAAE,CAAC,GACnF,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,EAAE,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC;AAE1D,mDAAmD;AACnD,MAAM,WAAW,qBAAqB;IACpC,sDAAsD;IACtD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAWD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,EAAE,SAAS,WAAW,GAAG,WAAW,EACjE,GAAG,EAAE,YAAY,CAAC,EAAE,CAAC,GAAG,SAAS,EACjC,QAAQ,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,SAAS,EAC1C,OAAO,GAAE,qBAA0B,GAClC,YAAY,CAAC,EAAE,CAAC,CAiClB"}