@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,35 @@
1
+ /** An sRGB color: channels 0-255, alpha 0-1. */
2
+ export interface RgbaColor {
3
+ r: number;
4
+ g: number;
5
+ b: number;
6
+ a: number;
7
+ }
8
+ /** Parse a CSS color, or return null when it is not one of the supported formats. */
9
+ export declare function parseColor(input: string): RgbaColor | null;
10
+ /** Composite a translucent color over an opaque one (source-over). */
11
+ export declare function composite(foreground: RgbaColor, background: RgbaColor): RgbaColor;
12
+ /** WCAG 2.x relative luminance of an opaque sRGB color. */
13
+ export declare function relativeLuminance({ r, g, b }: Pick<RgbaColor, 'r' | 'g' | 'b'>): number;
14
+ /** Contrast ratio of two opaque colors. */
15
+ export declare function contrastOfOpaque(first: Pick<RgbaColor, 'r' | 'g' | 'b'>, second: Pick<RgbaColor, 'r' | 'g' | 'b'>): number;
16
+ export interface ContrastOptions {
17
+ /**
18
+ * The opaque surface under a translucent background. Defaults to white, the light paper.
19
+ * Pass the dark surface when you check a dark-mode wash.
20
+ */
21
+ over?: string;
22
+ }
23
+ /**
24
+ * Test-only: forget which colors have warned.
25
+ *
26
+ * @internal
27
+ */
28
+ export declare function __resetContrastWarnings(): void;
29
+ /**
30
+ * Contrast ratio of `foreground` on `background`. A translucent background is composited over
31
+ * `options.over` (default white); a translucent foreground is then composited over that result.
32
+ * Returns NaN, with a one-time development warning, when a color cannot be read.
33
+ */
34
+ export declare function contrast(foreground: string, background: string, options?: ContrastOptions): number;
35
+ //# sourceMappingURL=color-contrast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color-contrast.d.ts","sourceRoot":"","sources":["../src/color-contrast.ts"],"names":[],"mappings":"AAYA,gDAAgD;AAChD,MAAM,WAAW,SAAS;IACxB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AASD,qFAAqF;AACrF,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAiB1D;AAED,sEAAsE;AACtE,wBAAgB,SAAS,CAAC,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,GAAG,SAAS,CASjF;AAOD,2DAA2D;AAC3D,wBAAgB,iBAAiB,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,IAAI,CAAC,SAAS,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,MAAM,CAEvF;AAED,2CAA2C;AAC3C,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,IAAI,CAAC,SAAS,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC,EACvC,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC,GACvC,MAAM,CAIR;AAED,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAgBD;;;;GAIG;AACH,wBAAgB,uBAAuB,IAAI,IAAI,CAE9C;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,GAAE,eAAoB,GAAG,MAAM,CAiBtG"}
@@ -0,0 +1,8 @@
1
+ var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
+ function l(e) {
3
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
+ }
5
+ export {
6
+ o as c,
7
+ l as g
8
+ };
@@ -0,0 +1,175 @@
1
+ import type { TrinityIndicatorRoles } from './theme-augmentation.js';
2
+ import type { TrinityIndicatorStatus } from './tokens';
3
+ /**
4
+ * Component color roles that inherit from the semantic color tier.
5
+ *
6
+ * Both CSS generators consume this contract. A reference is only applied when
7
+ * the component and semantic literals still match, so tiering cannot silently
8
+ * alter light-mode output.
9
+ */
10
+ export declare const componentSemanticColorReferences: readonly [readonly ["card.background", "surface.elevated"], readonly ["card.border", "border.subtle"], readonly ["input.background.default", "surface.elevated"], readonly ["input.background.disabled", "background.tertiary"], readonly ["input.borderColor.default", "border.default"], readonly ["input.borderColor.hover", "border.strong"], readonly ["input.borderColor.focus", "border.focus"], readonly ["input.borderColor.error", "border.error"], readonly ["tooltip.background", "background.inverse"], readonly ["tooltip.text", "text.inverse"], readonly ["modal.background", "surface.elevated"]];
11
+ export declare function componentColorCssVariable(path: string, channel: 'static' | 'runtime'): string;
12
+ export declare function semanticColorCssVariable(path: string, channel: 'static' | 'runtime'): string;
13
+ /**
14
+ * The reference rule both CSS generators share. `values` maps custom-property names to their
15
+ * emitted values; each reference is `[target, source]` by name.
16
+ *
17
+ * - Target equals source: the target becomes `var(source)`, so a dark or brand override of the
18
+ * source reaches the target.
19
+ * - Target differs from source: `onMismatch: 'throw'` fails (the static generator's invariant
20
+ * for the shipped CSS); `onMismatch: 'literal'` keeps the target's own value (the runtime
21
+ * generator, where a consumer token set may override a member on purpose).
22
+ * - A missing endpoint throws or is skipped, per `onMissing`.
23
+ */
24
+ export declare function applyCssColorReferences(values: Map<string, string>, references: ReadonlyArray<readonly [target: string, source: string]>, options: {
25
+ onMismatch: 'throw' | 'literal';
26
+ onMissing: 'throw' | 'skip';
27
+ context: string;
28
+ }): void;
29
+ /** The component references as custom-property names for one CSS channel. */
30
+ export declare function componentReferenceNames(channel: 'static' | 'runtime'): Array<readonly [target: string, source: string]>;
31
+ /**
32
+ * Semantic roles defined as references to other semantic roles: [target, source], both paths
33
+ * under `semantic.colors`. A source may be a group (`status.success`), which maps each of its
34
+ * keys, or a single color.
35
+ *
36
+ * The confidence and verification groups exist only here: no token object holds their values
37
+ * (ADR-03), the CSS variables are `var()` aliases of the status variables, and the palette
38
+ * builder resolves them per mode. The mapping is the Step 5 record's D2 decision (ADR-03-R1).
39
+ *
40
+ * @internal
41
+ */
42
+ export declare const semanticRoleReferences: readonly [readonly ["confidence.high", "status.success"], readonly ["confidence.medium", "status.info"], readonly ["confidence.low", "status.warning"], readonly ["verification.verified", "status.success"], readonly ["verification.golden", "status.success"], readonly ["verification.pending", "status.info"], readonly ["verification.flagged", "status.warning"], readonly ["verification.rejected", "status.error"], readonly ["ai.primary", "brand.secondary"], readonly ["ai.primaryFill", "brand.secondary"], readonly ["ai.typingIndicator", "brand.secondary"], readonly ["ai.accent", "brand.accent"], readonly ["ai.presence.purple", "brand.secondary"], readonly ["ai.presence.coral", "brand.accent"], readonly ["ai.avatarFill.start", "brand.accent"], readonly ["ai.avatarFill.end", "brand.secondary"], readonly ["favorite", "status.warning.text"]];
43
+ /**
44
+ * Dark roles defined as references to other dark roles: [target, source], both paths under
45
+ * `darkMode.colors`. `resolveTrinityTokens` keeps a target equal to its resolved source unless
46
+ * the target itself is overridden, and both CSS generators emit an equal target as
47
+ * `var(source)` in the dark blocks.
48
+ *
49
+ * @internal
50
+ */
51
+ export declare const darkSemanticRoleReferences: readonly [readonly ["favorite", "status.warning.text"]];
52
+ /** The dark role references as custom-property names for one CSS channel. */
53
+ export declare function darkRoleReferenceNames(channel: 'static' | 'runtime'): Array<readonly [target: string, source: string]>;
54
+ /**
55
+ * Semantic roles derived from another role with an alpha (E-03): [target, source, alpha], paths
56
+ * under `semantic.colors`. `resolveTrinityTokens` recomputes a target from its resolved source
57
+ * unless the target itself is overridden.
58
+ *
59
+ * @internal
60
+ */
61
+ export declare const semanticDerivedRoles: readonly [readonly ["ai.surface", "brand.secondary", 0.05], readonly ["ai.border", "brand.secondary", 0.2], readonly ["ai.badgeBackground", "brand.secondary", 0.15]];
62
+ /** Role groups that exist only as references: no token object holds their values. */
63
+ export declare const referenceOnlyRoleGroups: readonly ["confidence", "verification"];
64
+ /**
65
+ * The role references expanded to single colors against a colors object (for example
66
+ * `semanticTokens.colors`): a group source maps each of its string keys.
67
+ */
68
+ export declare function expandSemanticRoleReferences(colors: unknown, references?: ReadonlyArray<readonly [string, string]>): Array<readonly [target: string, source: string]>;
69
+ /** The first reference cycle in a [target, source] table, as a path, or null. */
70
+ export declare function findReferenceCycle(references: ReadonlyArray<readonly [string, string]>): string[] | null;
71
+ /**
72
+ * Resolve the reference-only role groups against a colors object: `{ confidence: { high:
73
+ * { text, background, border }, ... }, verification: { ... } }`. The palette builder passes the
74
+ * light semantic colors, or `{ status: <dark status set> }` in dark mode.
75
+ */
76
+ export declare function resolveReferenceRoleGroups<T = Record<string, Record<string, Record<string, string>>>>(colors: unknown): T;
77
+ /**
78
+ * The role references as custom-property names for one CSS channel, expanded against
79
+ * `colors` (static: `--trinity-confidence-high-text` -> `--trinity-status-success-text`;
80
+ * runtime: `--trinity-semantic-confidence-high-text` -> `--trinity-semantic-status-success-text`).
81
+ */
82
+ export declare function semanticRoleReferenceNames(colors: unknown, channel: 'static' | 'runtime'): Array<readonly [target: string, source: string]>;
83
+ /**
84
+ * Apply the role references to a name -> value map. A target already emitted by a token walk
85
+ * (for example `ai.primary`) follows {@link applyCssColorReferences}: equal values become
86
+ * `var(source)`. A target with no token (confidence, verification) is added as one new
87
+ * `var(source)` entry. Adding a name twice throws.
88
+ *
89
+ * Returns the names this call added, in table order.
90
+ */
91
+ export declare function applySemanticRoleReferences(values: Map<string, string>, references: ReadonlyArray<readonly [target: string, source: string]>, options: {
92
+ onMismatch: 'throw' | 'literal';
93
+ context: string;
94
+ }): string[];
95
+ /**
96
+ * The StatusIndicator catalog's families. A family decides which existing role a status takes as
97
+ * its dark on-surface colour (ADR-03-R6, Step 5 record section 5).
98
+ *
99
+ * @internal
100
+ */
101
+ export declare const indicatorFamilies: {
102
+ readonly error: readonly ["error", "critical", "failed", "rejected"];
103
+ readonly warning: readonly ["warning", "caution", "pending"];
104
+ readonly success: readonly ["success", "complete", "approved", "active", "enabled"];
105
+ readonly info: readonly ["info", "new", "updated"];
106
+ readonly neutral: readonly ["neutral", "draft", "inactive", "disabled", "cancelled", "unknown"];
107
+ readonly progress: readonly ["inProgress", "running"];
108
+ readonly beta: readonly ["beta", "experimental"];
109
+ };
110
+ /** @internal */
111
+ export type IndicatorFamily = keyof typeof indicatorFamilies;
112
+ type IndicatorEntry = {
113
+ fg: string;
114
+ bg: string;
115
+ outline?: string;
116
+ };
117
+ /**
118
+ * Build `palette.trinity.indicator` from a catalog (the merged light entries), the mode's fill
119
+ * overrides (`darkMode.colors.indicator`) and one on-surface colour per family. With no family
120
+ * colours (light), a status's on-surface colour is the catalog's own `outline ?? fill`, so the
121
+ * light group is a bit-identical reference to the catalog.
122
+ *
123
+ * @internal
124
+ */
125
+ export declare function buildIndicatorRoles(catalog: Record<TrinityIndicatorStatus, IndicatorEntry>, overrides?: Partial<Record<TrinityIndicatorStatus, Partial<IndicatorEntry>>>, onSurfaceByFamily?: Record<IndicatorFamily, string>): TrinityIndicatorRoles;
126
+ /** The var() names a declaration value reads. */
127
+ export declare function referencedNames(value: string): string[];
128
+ /**
129
+ * The aliases (values that read another variable) whose resolved value depends on a
130
+ * theme-overridden name, directly or through other aliases, in declaration order (E-37).
131
+ * Both generators re-declare exactly these in each theme block: a custom property's var() is
132
+ * substituted on the element that declares it, so an alias declared only in :root would keep
133
+ * the page's theme inside a themed subtree.
134
+ */
135
+ export declare function themeDependentAliases(names: string[], values: ReadonlyMap<string, string>, overridden: ReadonlySet<string>): string[];
136
+ /** The AI roles a gradient reads: colors in React, `var()` references in CSS. */
137
+ export interface AIGradientInputs {
138
+ accent: string;
139
+ primaryFill: string;
140
+ surface: string;
141
+ avatarFill: {
142
+ start: string;
143
+ end: string;
144
+ };
145
+ canvasFill: {
146
+ start: string;
147
+ end: string;
148
+ };
149
+ }
150
+ /**
151
+ * The AI gradients, built from the resolved accent, primaryFill, surface and avatarFill. The
152
+ * resolver passes colors and both CSS generators pass `var(--trinity-ai-*)` references, so
153
+ * React and CSS give the same gradient in both modes and a brand override reaches both.
154
+ * `avatar` is AIAvatar's fill (owner decision 2026-10-08), from its own stops: the dark accent
155
+ * and primaryFill are too light under a white icon. `brandDiagonal` is the same pair at 135deg,
156
+ * AIFab's and AICircularAction (gradient)'s fill (owner decision 2026-10-09). `canvas` is
157
+ * AIChatWelcome's canvas wash, from `canvasFill`; its transparent start lets the paper show.
158
+ *
159
+ * @internal
160
+ */
161
+ export declare function aiGradients({ accent, primaryFill, surface, avatarFill, canvasFill }: AIGradientInputs): {
162
+ primary: string;
163
+ horizontal: string;
164
+ diagonal: string;
165
+ subtle: string;
166
+ text: string;
167
+ border: string;
168
+ avatar: string;
169
+ brandDiagonal: string;
170
+ canvas: string;
171
+ };
172
+ /** The AI gradient custom properties for one CSS channel, as [name, value]. */
173
+ export declare function aiGradientDeclarations(channel: 'static' | 'runtime'): Array<readonly [string, string]>;
174
+ export {};
175
+ //# sourceMappingURL=component-color-references.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component-color-references.d.ts","sourceRoot":"","sources":["../src/component-color-references.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAEvD;;;;;;GAMG;AACH,eAAO,MAAM,gCAAgC,olBAYnC,CAAC;AAUX,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,QAAQ,GAAG,SAAS,GAC5B,MAAM,CAGR;AAED,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,QAAQ,GAAG,SAAS,GAC5B,MAAM,CASR;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC3B,UAAU,EAAE,aAAa,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,EACpE,OAAO,EAAE;IAAE,UAAU,EAAE,OAAO,GAAG,SAAS,CAAC;IAAC,SAAS,EAAE,OAAO,GAAG,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACzF,IAAI,CAoBN;AAED,6EAA6E;AAC7E,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,QAAQ,GAAG,SAAS,GAC5B,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAKlD;AAMD;;;;;;;;;;GAUG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,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3C,UAAU,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;CAC5C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,EAAE,gBAAgB;;;;;;;;;;EAYrG;AAED,+EAA+E;AAC/E,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,QAAQ,GAAG,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAUtG"}
@@ -21,10 +21,11 @@
21
21
  */
22
22
  import React from 'react';
23
23
  import { SxProps, Theme } from '@mui/material';
24
+ import { type TrinityRootProps, type TrinitySlotProps } from '../shared/rootProps';
24
25
  /**
25
- * Props for AISuggestedAction component.
26
+ * AISuggestedAction's own props.
26
27
  */
27
- export interface AISuggestedActionProps {
28
+ export interface AISuggestedActionOwnProps {
28
29
  /** Action label */
29
30
  label: string;
30
31
  /** Action description (for card variant only) */
@@ -37,9 +38,20 @@ export interface AISuggestedActionProps {
37
38
  disabled?: boolean;
38
39
  /** Variant - 'list' matches screenshot design with arrow icons */
39
40
  variant?: 'default' | 'primary' | 'outlined' | 'list';
40
- /** Custom sx props */
41
+ /**
42
+ * Added to the root's own class names.
43
+ * @since 2.13.0
44
+ */
45
+ className?: string;
46
+ /** Custom sx props, applied after the action's own styles (object, array or function). */
41
47
  sx?: SxProps<Theme>;
42
48
  }
49
+ /**
50
+ * Props for AISuggestedAction: its own props, plus the HTML attributes of its root `button`
51
+ * (`id`, `data-*`, `aria-*`), which reach the root (ADR-04, WI-40).
52
+ */
53
+ export interface AISuggestedActionProps extends AISuggestedActionOwnProps, TrinityRootProps<HTMLButtonElement, AISuggestedActionOwnProps> {
54
+ }
43
55
  /**
44
56
  * AI Suggested Action - Actionable suggestion button.
45
57
  *
@@ -51,10 +63,10 @@ export interface AISuggestedActionProps {
51
63
  */
52
64
  export declare const AISuggestedAction: React.ForwardRefExoticComponent<AISuggestedActionProps & React.RefAttributes<HTMLButtonElement>>;
53
65
  /**
54
- * Props for AICircularAction component.
66
+ * AICircularAction's own props.
55
67
  */
56
- export interface AICircularActionProps {
57
- /** Tooltip label */
68
+ export interface AICircularActionOwnProps {
69
+ /** The action's name: the tooltip text and the start of the button's accessible name. */
58
70
  label: string;
59
71
  /** Icon name - use approved icons: close, search, sparkles, etc. */
60
72
  icon: string;
@@ -68,10 +80,43 @@ export interface AICircularActionProps {
68
80
  variant?: 'default' | 'primary' | 'gradient';
69
81
  /** Whether to show badge */
70
82
  showBadge?: boolean;
71
- /** Badge content */
83
+ /** Badge content. Without content the badge is a dot. */
72
84
  badgeContent?: React.ReactNode;
73
- /** Custom sx props */
85
+ /**
86
+ * How the badge reads in the button's accessible name, after the label
87
+ * (`ai.circularAction.nameWithBadge`): `"Notifications, 3"` by default for text or number content. A
88
+ * function receives the badge content (`(n) => \`${n} unread\`` gives
89
+ * `"Notifications, 3 unread"`). Give one for a dot or non-text content,
90
+ * which add nothing to the name otherwise.
91
+ *
92
+ * @since 2.13.0
93
+ */
94
+ badgeLabel?: string | ((content: React.ReactNode) => string);
95
+ /**
96
+ * Added to the root's own class names: the wrapper that holds the button and its badge (the
97
+ * ref's element).
98
+ * @since 2.13.0
99
+ */
100
+ className?: string;
101
+ /**
102
+ * Custom sx props for the button (object, array or function), applied after its own styles.
103
+ * The wrapper takes `slotProps.root.sx`.
104
+ */
74
105
  sx?: SxProps<Theme>;
106
+ /**
107
+ * Props for the component's slots (ADR-04 (6)). `root`: the wrapper `div` around the button
108
+ * and its badge, the ref's element (its `sx`, `className` and attributes).
109
+ * @since 2.13.0
110
+ */
111
+ slotProps?: {
112
+ root?: TrinitySlotProps<HTMLDivElement>;
113
+ };
114
+ }
115
+ /**
116
+ * Props for AICircularAction: its own props, plus the HTML attributes of its root, the wrapper
117
+ * `div` (`id`, `data-*`, `aria-*`), which reach it (ADR-04, WI-40). `sx` keeps styling the button.
118
+ */
119
+ export interface AICircularActionProps extends AICircularActionOwnProps, TrinityRootProps<HTMLDivElement, AICircularActionOwnProps> {
75
120
  }
76
121
  /**
77
122
  * AI Circular Action - Circular action button with icon.
@@ -85,18 +130,33 @@ export interface AICircularActionProps {
85
130
  */
86
131
  export declare const AICircularAction: React.ForwardRefExoticComponent<AICircularActionProps & React.RefAttributes<HTMLDivElement>>;
87
132
  /**
88
- * Props for AIActionsGroup component.
133
+ * AIActionsGroup's own props.
89
134
  */
90
- export interface AIActionsGroupProps {
135
+ export interface AIActionsGroupOwnProps {
91
136
  /** List of actions */
92
137
  actions: AISuggestedActionProps[];
93
- /** Layout direction */
138
+ /**
139
+ * Layout direction. A `'row'` wraps: actions that do not fit the width move to the next line,
140
+ * and one action wider than the row shrinks and wraps its own text (WCAG 1.4.10, a docked AI
141
+ * panel at 320 to 360px).
142
+ */
94
143
  direction?: 'row' | 'column';
95
144
  /** Spacing between actions */
96
145
  spacing?: number;
97
- /** Custom sx props */
146
+ /**
147
+ * Added to the root's own class names.
148
+ * @since 2.13.0
149
+ */
150
+ className?: string;
151
+ /** Custom sx props, applied after the group's own styles (object, array or function). */
98
152
  sx?: SxProps<Theme>;
99
153
  }
154
+ /**
155
+ * Props for AIActionsGroup: its own props, plus the HTML attributes of its root `div` (`id`,
156
+ * `data-*`, `aria-*`), which reach the root (ADR-04, WI-40).
157
+ */
158
+ export interface AIActionsGroupProps extends AIActionsGroupOwnProps, TrinityRootProps<HTMLDivElement, AIActionsGroupOwnProps> {
159
+ }
100
160
  /**
101
161
  * AI Actions Group - Group of suggested actions.
102
162
  */
@@ -1 +1 @@
1
- {"version":3,"file":"AIActions.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AIActions.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAQL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MAAM,CAAC;IACjB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yFAAyF;IACzF,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAoB,SAAQ,sBAAsB,EAAE,gBAAgB,CAAC,cAAc,EAAE,sBAAsB,CAAC;CAAG;AAEhI;;GAEG;AACH,eAAO,MAAM,cAAc,4FA8B1B,CAAC"}
@@ -12,21 +12,49 @@
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
  /**
16
- * Props for AIAvatar component.
17
+ * AIAvatar's own props.
17
18
  */
18
- export interface AIAvatarProps {
19
+ export interface AIAvatarOwnProps {
19
20
  /** Size of the avatar */
20
21
  size?: 'xs' | 'small' | 'medium' | 'large';
21
22
  /** Whether to show animated pulse */
22
23
  animated?: boolean;
23
24
  /** Custom icon name */
24
25
  icon?: string;
25
- /** Custom sx props */
26
+ /**
27
+ * Added to the root's own class names.
28
+ * @since 2.13.0
29
+ */
30
+ className?: string;
31
+ /** Custom sx props, applied after the avatar's own styles (object, array or function). */
26
32
  sx?: SxProps<Theme>;
27
33
  }
34
+ /**
35
+ * Props for AIAvatar: its own props, plus the HTML attributes of its root `div` (`id`,
36
+ * `data-*`, `aria-*`), which reach the root (ADR-04). An `aria-label` or `aria-labelledby`
37
+ * makes the avatar a named `role="img"`; without one it is decorative (`aria-hidden`).
38
+ */
39
+ export interface AIAvatarProps extends AIAvatarOwnProps, TrinityRootProps<HTMLDivElement, AIAvatarOwnProps> {
40
+ }
41
+ /**
42
+ * @internal — not part of the public API; see ADR-02. The avatar diameters in px, the one source
43
+ * of truth for the message avatar column (`small`, 32px) that thread-level items align to (G-13,
44
+ * G-OD4; I-lead approval recorded as the owner's).
45
+ */
46
+ export declare const AI_AVATAR_SIZE_PX: {
47
+ xs: number;
48
+ small: number;
49
+ medium: number;
50
+ large: number;
51
+ };
28
52
  /**
29
53
  * AI Avatar - Visual representation of the AI assistant.
54
+ *
55
+ * Decorative by default: the root is `aria-hidden="true"`, because the message or region it
56
+ * marks names the author. Pass `aria-label` (or `aria-labelledby`) only where the avatar is
57
+ * the sole signal of AI authorship; it then becomes `role="img"` with that name.
30
58
  */
31
59
  export declare const AIAvatar: React.ForwardRefExoticComponent<AIAvatarProps & React.RefAttributes<HTMLDivElement>>;
32
60
  //# sourceMappingURL=AIAvatar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AIAvatar.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AIAvatar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAU,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAQvD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,yBAAyB;IACzB,IAAI,CAAC,EAAE,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC3C,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uBAAuB;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sBAAsB;IACtB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAiBD;;GAEG;AACH,eAAO,MAAM,QAAQ,sFAgCnB,CAAC"}
1
+ {"version":3,"file":"AIAvatar.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AIAvatar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAU,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAQvD,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAM1E;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,yBAAyB;IACzB,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