@trinityui/design-system 2.11.0 → 2.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (518) hide show
  1. package/CHANGELOG.md +2209 -0
  2. package/CONTRIBUTING.md +180 -69
  3. package/LICENSE +21 -0
  4. package/MIGRATION.md +523 -21
  5. package/README.md +281 -120
  6. package/dist/IllustratedMessage.js +546 -1341
  7. package/dist/accessibility.d.ts +596 -18
  8. package/dist/accessibility.d.ts.map +1 -1
  9. package/dist/accessibility.js +458 -0
  10. package/dist/app-shell.js +17230 -9097
  11. package/dist/assets/index.d.ts +1 -1
  12. package/dist/charts.js +8507 -6059
  13. package/dist/color-contrast.d.ts +35 -0
  14. package/dist/color-contrast.d.ts.map +1 -0
  15. package/dist/commonjs-helpers.js +8 -0
  16. package/dist/component-color-references.d.ts +175 -0
  17. package/dist/component-color-references.d.ts.map +1 -0
  18. package/dist/components/AI/AIActions.d.ts +72 -12
  19. package/dist/components/AI/AIActions.d.ts.map +1 -1
  20. package/dist/components/AI/AIAvatar.d.ts +31 -3
  21. package/dist/components/AI/AIAvatar.d.ts.map +1 -1
  22. package/dist/components/AI/AIChainOfThought.d.ts +192 -72
  23. package/dist/components/AI/AIChainOfThought.d.ts.map +1 -1
  24. package/dist/components/AI/AIChainOfThought.types.d.ts +296 -34
  25. package/dist/components/AI/AIChainOfThought.types.d.ts.map +1 -1
  26. package/dist/components/AI/AIChainOfThought.utils.d.ts +25 -7
  27. package/dist/components/AI/AIChainOfThought.utils.d.ts.map +1 -1
  28. package/dist/components/AI/AIChat.d.ts +12 -0
  29. package/dist/components/AI/AIChat.d.ts.map +1 -1
  30. package/dist/components/AI/AIChatWelcome.d.ts +254 -0
  31. package/dist/components/AI/AIChatWelcome.d.ts.map +1 -0
  32. package/dist/components/AI/AIClarificationPrompt.d.ts +134 -0
  33. package/dist/components/AI/AIClarificationPrompt.d.ts.map +1 -0
  34. package/dist/components/AI/AIConfidenceBadge.d.ts +117 -0
  35. package/dist/components/AI/AIConfidenceBadge.d.ts.map +1 -0
  36. package/dist/components/AI/AIConfigContext.d.ts +100 -0
  37. package/dist/components/AI/AIConfigContext.d.ts.map +1 -0
  38. package/dist/components/AI/AIConfigProvider.d.ts +66 -0
  39. package/dist/components/AI/AIConfigProvider.d.ts.map +1 -0
  40. package/dist/components/AI/AIContainer.d.ts +80 -11
  41. package/dist/components/AI/AIContainer.d.ts.map +1 -1
  42. package/dist/components/AI/AIExplainability.d.ts +39 -5
  43. package/dist/components/AI/AIExplainability.d.ts.map +1 -1
  44. package/dist/components/AI/AIFeedbackControl.d.ts +113 -0
  45. package/dist/components/AI/AIFeedbackControl.d.ts.map +1 -0
  46. package/dist/components/AI/AIFeedbackForm.d.ts +117 -0
  47. package/dist/components/AI/AIFeedbackForm.d.ts.map +1 -0
  48. package/dist/components/AI/AIFeedbackHostContext.d.ts +16 -0
  49. package/dist/components/AI/AIFeedbackHostContext.d.ts.map +1 -0
  50. package/dist/components/AI/AILabel.d.ts +39 -6
  51. package/dist/components/AI/AILabel.d.ts.map +1 -1
  52. package/dist/components/AI/AIMessage.d.ts +337 -42
  53. package/dist/components/AI/AIMessage.d.ts.map +1 -1
  54. package/dist/components/AI/AIPlanReview.d.ts +194 -0
  55. package/dist/components/AI/AIPlanReview.d.ts.map +1 -0
  56. package/dist/components/AI/AIQueryDisclosure.d.ts +119 -0
  57. package/dist/components/AI/AIQueryDisclosure.d.ts.map +1 -0
  58. package/dist/components/AI/AIRelatedQuestions.d.ts +50 -11
  59. package/dist/components/AI/AIRelatedQuestions.d.ts.map +1 -1
  60. package/dist/components/AI/AIResponseRenderer.d.ts +133 -21
  61. package/dist/components/AI/AIResponseRenderer.d.ts.map +1 -1
  62. package/dist/components/AI/AIResponseSourcesContext.d.ts +83 -0
  63. package/dist/components/AI/AIResponseSourcesContext.d.ts.map +1 -0
  64. package/dist/components/AI/AIReviewItem.d.ts +142 -0
  65. package/dist/components/AI/AIReviewItem.d.ts.map +1 -0
  66. package/dist/components/AI/AISourceChip.d.ts +135 -0
  67. package/dist/components/AI/AISourceChip.d.ts.map +1 -0
  68. package/dist/components/AI/AISources.d.ts +91 -13
  69. package/dist/components/AI/AISources.d.ts.map +1 -1
  70. package/dist/components/AI/AISourcesPanel.d.ts +43 -7
  71. package/dist/components/AI/AISourcesPanel.d.ts.map +1 -1
  72. package/dist/components/AI/AITextBlock.d.ts +107 -17
  73. package/dist/components/AI/AITextBlock.d.ts.map +1 -1
  74. package/dist/components/AI/AITextBlock.parser.d.ts +153 -0
  75. package/dist/components/AI/AITextBlock.parser.d.ts.map +1 -0
  76. package/dist/components/AI/AIVerificationBadge.d.ts +94 -0
  77. package/dist/components/AI/AIVerificationBadge.d.ts.map +1 -0
  78. package/dist/components/AI/AIVisuals.d.ts +92 -23
  79. package/dist/components/AI/AIVisuals.d.ts.map +1 -1
  80. package/dist/components/AI/AIVoiceInput.d.ts +42 -11
  81. package/dist/components/AI/AIVoiceInput.d.ts.map +1 -1
  82. package/dist/components/AI/AIVoiceMode.d.ts +16 -2
  83. package/dist/components/AI/AIVoiceMode.d.ts.map +1 -1
  84. package/dist/components/AI/BlockErrorBoundary.d.ts +77 -0
  85. package/dist/components/AI/BlockErrorBoundary.d.ts.map +1 -0
  86. package/dist/components/AI/ChatHeader.d.ts +41 -4
  87. package/dist/components/AI/ChatHeader.d.ts.map +1 -1
  88. package/dist/components/AI/ChatHistoryList.d.ts +25 -12
  89. package/dist/components/AI/ChatHistoryList.d.ts.map +1 -1
  90. package/dist/components/AI/ChatThread.d.ts +263 -13
  91. package/dist/components/AI/ChatThread.d.ts.map +1 -1
  92. package/dist/components/AI/InThreadContext.d.ts +14 -0
  93. package/dist/components/AI/InThreadContext.d.ts.map +1 -0
  94. package/dist/components/AI/InsightEngine.d.ts +270 -46
  95. package/dist/components/AI/InsightEngine.d.ts.map +1 -1
  96. package/dist/components/AI/InsightEngineInput.d.ts +52 -5
  97. package/dist/components/AI/InsightEngineInput.d.ts.map +1 -1
  98. package/dist/components/AI/MessageActionButton.d.ts +72 -0
  99. package/dist/components/AI/MessageActionButton.d.ts.map +1 -0
  100. package/dist/components/AI/QueryInput.d.ts.map +1 -1
  101. package/dist/components/AI/UserAvatar.d.ts +50 -4
  102. package/dist/components/AI/UserAvatar.d.ts.map +1 -1
  103. package/dist/components/AI/UserMessage.d.ts +32 -3
  104. package/dist/components/AI/UserMessage.d.ts.map +1 -1
  105. package/dist/components/AI/blockRendererContext.d.ts +64 -0
  106. package/dist/components/AI/blockRendererContext.d.ts.map +1 -0
  107. package/dist/components/AI/hitlBlockRenderers.d.ts +48 -0
  108. package/dist/components/AI/hitlBlockRenderers.d.ts.map +1 -0
  109. package/dist/components/AI/index.d.ts +23 -6
  110. package/dist/components/AI/index.d.ts.map +1 -1
  111. package/dist/components/AI/moleculeBlockRenderers.d.ts +15 -0
  112. package/dist/components/AI/moleculeBlockRenderers.d.ts.map +1 -0
  113. package/dist/components/AI/planReviewBlockRenderer.d.ts +8 -0
  114. package/dist/components/AI/planReviewBlockRenderer.d.ts.map +1 -0
  115. package/dist/components/AI/strings/defaults.d.ts +31 -0
  116. package/dist/components/AI/strings/defaults.d.ts.map +1 -0
  117. package/dist/components/AI/tokens.d.ts +185 -20
  118. package/dist/components/AI/tokens.d.ts.map +1 -1
  119. package/dist/components/AI/types/hitl.d.ts +2294 -0
  120. package/dist/components/AI/types/hitl.d.ts.map +1 -0
  121. package/dist/components/AI/types/index.d.ts +2 -1
  122. package/dist/components/AI/types/index.d.ts.map +1 -1
  123. package/dist/components/AI/types/response.d.ts +428 -40
  124. package/dist/components/AI/types/response.d.ts.map +1 -1
  125. package/dist/components/AI/useBlockSources.d.ts +67 -0
  126. package/dist/components/AI/useBlockSources.d.ts.map +1 -0
  127. package/dist/components/AI/useBrowserVoiceMode.d.ts +31 -2
  128. package/dist/components/AI/useBrowserVoiceMode.d.ts.map +1 -1
  129. package/dist/components/AI/useWelcomeComposerHandoff.d.ts +30 -0
  130. package/dist/components/AI/useWelcomeComposerHandoff.d.ts.map +1 -0
  131. package/dist/components/AI/utils/alphaIndex.d.ts +19 -0
  132. package/dist/components/AI/utils/alphaIndex.d.ts.map +1 -0
  133. package/dist/components/AI/utils/blockReady.d.ts +54 -0
  134. package/dist/components/AI/utils/blockReady.d.ts.map +1 -0
  135. package/dist/components/AI/utils/blocks.d.ts +28 -0
  136. package/dist/components/AI/utils/blocks.d.ts.map +1 -0
  137. package/dist/components/AI/utils/confidence.d.ts +182 -0
  138. package/dist/components/AI/utils/confidence.d.ts.map +1 -0
  139. package/dist/components/AI/utils/filters.d.ts +31 -0
  140. package/dist/components/AI/utils/filters.d.ts.map +1 -0
  141. package/dist/components/AI/utils/responseText.d.ts +8 -0
  142. package/dist/components/AI/utils/responseText.d.ts.map +1 -0
  143. package/dist/components/AI/utils/sources.d.ts +110 -0
  144. package/dist/components/AI/utils/sources.d.ts.map +1 -0
  145. package/dist/components/AIDigestCard/AIDigestCard.d.ts.map +1 -1
  146. package/dist/components/AIDigestCard/types.d.ts +42 -5
  147. package/dist/components/AIDigestCard/types.d.ts.map +1 -1
  148. package/dist/components/AppLayout/AIFab.d.ts +33 -6
  149. package/dist/components/AppLayout/AIFab.d.ts.map +1 -1
  150. package/dist/components/AppLayout/AIFabLayout.deprecated.d.ts.map +1 -1
  151. package/dist/components/AppLayout/AppLayout.d.ts +135 -7
  152. package/dist/components/AppLayout/AppLayout.d.ts.map +1 -1
  153. package/dist/components/AppLayout/InsightEnginePanel.d.ts +315 -21
  154. package/dist/components/AppLayout/InsightEnginePanel.d.ts.map +1 -1
  155. package/dist/components/AppLayout/ResizablePanel.d.ts +145 -8
  156. package/dist/components/AppLayout/ResizablePanel.d.ts.map +1 -1
  157. package/dist/components/AppLayout/ThreadHistorySidebar.d.ts +6 -0
  158. package/dist/components/AppLayout/ThreadHistorySidebar.d.ts.map +1 -1
  159. package/dist/components/AppLayout/index.d.ts +3 -3
  160. package/dist/components/AppLayout/index.d.ts.map +1 -1
  161. package/dist/components/AppLayout/insightEnginePanel.demo.d.ts +32 -0
  162. package/dist/components/AppLayout/insightEnginePanel.demo.d.ts.map +1 -0
  163. package/dist/components/AppLayout/panelPropsPath.d.ts +26 -0
  164. package/dist/components/AppLayout/panelPropsPath.d.ts.map +1 -0
  165. package/dist/components/AppLayout/panelResizeTransition.d.ts +49 -0
  166. package/dist/components/AppLayout/panelResizeTransition.d.ts.map +1 -0
  167. package/dist/components/AppLayout/toChatThreadMessage.d.ts +40 -0
  168. package/dist/components/AppLayout/toChatThreadMessage.d.ts.map +1 -0
  169. package/dist/components/AssessmentDrawer/AssessmentDrawer.d.ts +5 -1
  170. package/dist/components/AssessmentDrawer/AssessmentDrawer.d.ts.map +1 -1
  171. package/dist/components/AuditDrawer/AuditDrawer.d.ts +4 -3
  172. package/dist/components/AuditDrawer/AuditDrawer.d.ts.map +1 -1
  173. package/dist/components/AuditDrawer/index.d.ts +1 -1
  174. package/dist/components/AuditDrawer/index.d.ts.map +1 -1
  175. package/dist/components/AuditDrawer/types.d.ts +39 -5
  176. package/dist/components/AuditDrawer/types.d.ts.map +1 -1
  177. package/dist/components/Autocomplete/Autocomplete.d.ts +6 -1
  178. package/dist/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  179. package/dist/components/BulkActionDock/BulkActionDock.d.ts.map +1 -1
  180. package/dist/components/Carousel/Carousel.d.ts +10 -2
  181. package/dist/components/Carousel/Carousel.d.ts.map +1 -1
  182. package/dist/components/Charts/AreaChart.d.ts.map +1 -1
  183. package/dist/components/Charts/BarChart.d.ts.map +1 -1
  184. package/dist/components/Charts/ChartWrapper.d.ts.map +1 -1
  185. package/dist/components/Charts/ComposedChart.d.ts.map +1 -1
  186. package/dist/components/Charts/CustomLegend.d.ts +11 -2
  187. package/dist/components/Charts/CustomLegend.d.ts.map +1 -1
  188. package/dist/components/Charts/LineChart.d.ts.map +1 -1
  189. package/dist/components/Charts/PieChart.d.ts.map +1 -1
  190. package/dist/components/Charts/RadialChart.d.ts.map +1 -1
  191. package/dist/components/Charts/ScatterChart.d.ts.map +1 -1
  192. package/dist/components/Charts/Sparkline.d.ts.map +1 -1
  193. package/dist/components/Charts/gaugeGeometry.d.ts +35 -0
  194. package/dist/components/Charts/gaugeGeometry.d.ts.map +1 -0
  195. package/dist/components/Charts/highcharts.d.ts +23 -0
  196. package/dist/components/Charts/highcharts.d.ts.map +1 -0
  197. package/dist/components/Charts/highchartsUtils.d.ts +101 -6
  198. package/dist/components/Charts/highchartsUtils.d.ts.map +1 -1
  199. package/dist/components/Charts/index.d.ts +1 -1
  200. package/dist/components/Charts/index.d.ts.map +1 -1
  201. package/dist/components/Charts/tokens.d.ts +21 -0
  202. package/dist/components/Charts/tokens.d.ts.map +1 -1
  203. package/dist/components/Charts/types.d.ts +7 -7
  204. package/dist/components/Charts/types.d.ts.map +1 -1
  205. package/dist/components/ChipsInput/ChipsInput.d.ts.map +1 -1
  206. package/dist/components/ChoiceChips/ChoiceChips.d.ts +106 -0
  207. package/dist/components/ChoiceChips/ChoiceChips.d.ts.map +1 -0
  208. package/dist/components/ClearableTextField/ClearableTextField.d.ts +23 -2
  209. package/dist/components/ClearableTextField/ClearableTextField.d.ts.map +1 -1
  210. package/dist/components/CodeBlock/CodeBlock.d.ts +80 -0
  211. package/dist/components/CodeBlock/CodeBlock.d.ts.map +1 -0
  212. package/dist/components/Combobox/Combobox.d.ts +3 -2
  213. package/dist/components/Combobox/Combobox.d.ts.map +1 -1
  214. package/dist/components/CommandPalette/CommandPalette.d.ts +54 -3
  215. package/dist/components/CommandPalette/CommandPalette.d.ts.map +1 -1
  216. package/dist/components/CommandPalette/index.d.ts +1 -1
  217. package/dist/components/CommandPalette/index.d.ts.map +1 -1
  218. package/dist/components/CopyButton/CopyButton.d.ts +80 -0
  219. package/dist/components/CopyButton/CopyButton.d.ts.map +1 -0
  220. package/dist/components/DataCard/DataCard.d.ts +11 -1
  221. package/dist/components/DataCard/DataCard.d.ts.map +1 -1
  222. package/dist/components/DataTable/CellRenderers.d.ts +8 -11
  223. package/dist/components/DataTable/CellRenderers.d.ts.map +1 -1
  224. package/dist/components/DataTable/DataTable.d.ts +1 -1
  225. package/dist/components/DataTable/DataTable.d.ts.map +1 -1
  226. package/dist/components/DataTable/InlineAddRow.d.ts.map +1 -1
  227. package/dist/components/DataTable/columnContext.d.ts +8 -0
  228. package/dist/components/DataTable/columnContext.d.ts.map +1 -0
  229. package/dist/components/DataTable/index.d.ts +2 -2
  230. package/dist/components/DataTable/index.d.ts.map +1 -1
  231. package/dist/components/DataTable/labels.d.ts +13 -0
  232. package/dist/components/DataTable/labels.d.ts.map +1 -0
  233. package/dist/components/DataTable/types.d.ts +34 -0
  234. package/dist/components/DataTable/types.d.ts.map +1 -1
  235. package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
  236. package/dist/components/DetailsPopover/DetailsPopover.d.ts +185 -0
  237. package/dist/components/DetailsPopover/DetailsPopover.d.ts.map +1 -0
  238. package/dist/components/DiffViewer/DiffViewer.d.ts +3 -2
  239. package/dist/components/DiffViewer/DiffViewer.d.ts.map +1 -1
  240. package/dist/components/Disclosure/Disclosure.d.ts +83 -0
  241. package/dist/components/Disclosure/Disclosure.d.ts.map +1 -0
  242. package/dist/components/DockLayout/DockLayout.d.ts +58 -0
  243. package/dist/components/DockLayout/DockLayout.d.ts.map +1 -1
  244. package/dist/components/DockLayout/index.d.ts +1 -1
  245. package/dist/components/DockLayout/index.d.ts.map +1 -1
  246. package/dist/components/DocumentCard/DocumentCard.d.ts +5 -1
  247. package/dist/components/DocumentCard/DocumentCard.d.ts.map +1 -1
  248. package/dist/components/EntityDetailPanel/EntityDetailPanel.d.ts +6 -2
  249. package/dist/components/EntityDetailPanel/EntityDetailPanel.d.ts.map +1 -1
  250. package/dist/components/FileUpload/FileUpload.d.ts +141 -6
  251. package/dist/components/FileUpload/FileUpload.d.ts.map +1 -1
  252. package/dist/components/FileUpload/index.d.ts +1 -1
  253. package/dist/components/FileUpload/index.d.ts.map +1 -1
  254. package/dist/components/FilterBar/FilterBar.d.ts +27 -1
  255. package/dist/components/FilterBar/FilterBar.d.ts.map +1 -1
  256. package/dist/components/FilterBar/index.d.ts +1 -1
  257. package/dist/components/FilterBar/index.d.ts.map +1 -1
  258. package/dist/components/FlowAutoLayout/useFlowAutoLayout.d.ts.map +1 -1
  259. package/dist/components/GanttView/GanttView.d.ts +24 -0
  260. package/dist/components/GanttView/GanttView.d.ts.map +1 -1
  261. package/dist/components/GanttView/types.d.ts +33 -7
  262. package/dist/components/GanttView/types.d.ts.map +1 -1
  263. package/dist/components/GaugeCard/GaugeCard.d.ts +4 -3
  264. package/dist/components/GaugeCard/GaugeCard.d.ts.map +1 -1
  265. package/dist/components/GaugeCard/geometry.d.ts +59 -0
  266. package/dist/components/GaugeCard/geometry.d.ts.map +1 -0
  267. package/dist/components/GeoStatusMap/GeoStatusMap.d.ts.map +1 -1
  268. package/dist/components/GeoStatusMap/types.d.ts +8 -5
  269. package/dist/components/GeoStatusMap/types.d.ts.map +1 -1
  270. package/dist/components/GoToTop/GoToTop.d.ts +1 -1
  271. package/dist/components/GoToTop/GoToTop.d.ts.map +1 -1
  272. package/dist/components/HierarchicalDrillDown/HierarchicalDrillDown.d.ts.map +1 -1
  273. package/dist/components/HistoricalDataIndicator/HistoricalDataIndicator.d.ts.map +1 -1
  274. package/dist/components/HtmlToMui/HtmlToMui.d.ts +32 -2
  275. package/dist/components/HtmlToMui/HtmlToMui.d.ts.map +1 -1
  276. package/dist/components/Icon.d.ts +567 -10
  277. package/dist/components/Icon.d.ts.map +1 -1
  278. package/dist/components/IllustratedMessage.d.ts +52 -3
  279. package/dist/components/IllustratedMessage.d.ts.map +1 -1
  280. package/dist/components/InlineEditableText/InlineEditableText.d.ts +117 -0
  281. package/dist/components/InlineEditableText/InlineEditableText.d.ts.map +1 -0
  282. package/dist/components/InsightCard/InsightCard.d.ts.map +1 -1
  283. package/dist/components/InsightCard/types.d.ts +10 -3
  284. package/dist/components/InsightCard/types.d.ts.map +1 -1
  285. package/dist/components/KeyValueList/KeyValueList.d.ts +94 -0
  286. package/dist/components/KeyValueList/KeyValueList.d.ts.map +1 -0
  287. package/dist/components/LandingPage/FeatureCard.d.ts +4 -0
  288. package/dist/components/LandingPage/FeatureCard.d.ts.map +1 -1
  289. package/dist/components/LandingPage/LandingPage.d.ts +43 -4
  290. package/dist/components/LandingPage/LandingPage.d.ts.map +1 -1
  291. package/dist/components/LandingPage/heroTone.d.ts +54 -0
  292. package/dist/components/LandingPage/heroTone.d.ts.map +1 -0
  293. package/dist/components/MentionsInput/MentionsInput.d.ts.map +1 -1
  294. package/dist/components/MetaChip/MetaChip.d.ts +113 -0
  295. package/dist/components/MetaChip/MetaChip.d.ts.map +1 -0
  296. package/dist/components/Modal/Modal.d.ts +222 -20
  297. package/dist/components/Modal/Modal.d.ts.map +1 -1
  298. package/dist/components/Modal/index.d.ts +1 -1
  299. package/dist/components/Modal/index.d.ts.map +1 -1
  300. package/dist/components/NotificationCenter/NotificationCenter.d.ts.map +1 -1
  301. package/dist/components/OrgChart/OrgChart.d.ts +5 -0
  302. package/dist/components/OrgChart/OrgChart.d.ts.map +1 -1
  303. package/dist/components/OrgChart/types.d.ts +31 -7
  304. package/dist/components/OrgChart/types.d.ts.map +1 -1
  305. package/dist/components/OverflowTooltip/OverflowTooltip.d.ts +1 -1
  306. package/dist/components/OverflowTooltip/OverflowTooltip.d.ts.map +1 -1
  307. package/dist/components/PageHeader/PageHeader.d.ts.map +1 -1
  308. package/dist/components/PageTOC/PageTOC.d.ts +2 -1
  309. package/dist/components/PageTOC/PageTOC.d.ts.map +1 -1
  310. package/dist/components/Popper/Popper.d.ts +80 -9
  311. package/dist/components/Popper/Popper.d.ts.map +1 -1
  312. package/dist/components/Popper/index.d.ts +1 -1
  313. package/dist/components/Popper/index.d.ts.map +1 -1
  314. package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts +5 -1
  315. package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts.map +1 -1
  316. package/dist/components/SandboxedIframeRenderer/SandboxedIframeRenderer.d.ts +48 -4
  317. package/dist/components/SandboxedIframeRenderer/SandboxedIframeRenderer.d.ts.map +1 -1
  318. package/dist/components/SearchInput/SearchInput.d.ts +49 -0
  319. package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
  320. package/dist/components/SearchInput/index.d.ts +1 -1
  321. package/dist/components/SearchInput/index.d.ts.map +1 -1
  322. package/dist/components/SimpleTable/SimpleTable.d.ts +11 -2
  323. package/dist/components/SimpleTable/SimpleTable.d.ts.map +1 -1
  324. package/dist/components/SplitPane/SplitPane.d.ts +2 -1
  325. package/dist/components/SplitPane/SplitPane.d.ts.map +1 -1
  326. package/dist/components/StatusHero/StatusHero.d.ts.map +1 -1
  327. package/dist/components/StatusIndicator/Badge.d.ts +6 -1
  328. package/dist/components/StatusIndicator/Badge.d.ts.map +1 -1
  329. package/dist/components/StatusIndicator/Chip.d.ts +3 -1
  330. package/dist/components/StatusIndicator/Chip.d.ts.map +1 -1
  331. package/dist/components/StatusIndicator/Indicators.d.ts +5 -1
  332. package/dist/components/StatusIndicator/Indicators.d.ts.map +1 -1
  333. package/dist/components/StatusIndicator/Legend.d.ts.map +1 -1
  334. package/dist/components/StatusIndicator/StatusIndicator.d.ts +98 -4
  335. package/dist/components/StatusIndicator/StatusIndicator.d.ts.map +1 -1
  336. package/dist/components/StatusIndicator/index.d.ts +2 -2
  337. package/dist/components/StatusIndicator/index.d.ts.map +1 -1
  338. package/dist/components/StatusIndicator/types.d.ts +48 -1
  339. package/dist/components/StatusIndicator/types.d.ts.map +1 -1
  340. package/dist/components/StepList/StepList.d.ts +80 -0
  341. package/dist/components/StepList/StepList.d.ts.map +1 -0
  342. package/dist/components/StepList/StepStatusMarker.d.ts +39 -0
  343. package/dist/components/StepList/StepStatusMarker.d.ts.map +1 -0
  344. package/dist/components/StepList/stepStatus.d.ts +30 -0
  345. package/dist/components/StepList/stepStatus.d.ts.map +1 -0
  346. package/dist/components/SystemBanner/SystemBanner.d.ts.map +1 -1
  347. package/dist/components/Timeline/Timeline.d.ts +57 -3
  348. package/dist/components/Timeline/Timeline.d.ts.map +1 -1
  349. package/dist/components/Timeline/index.d.ts +1 -1
  350. package/dist/components/Timeline/index.d.ts.map +1 -1
  351. package/dist/components/Timeline/timelineLabels.d.ts +70 -0
  352. package/dist/components/Timeline/timelineLabels.d.ts.map +1 -0
  353. package/dist/components/Toast/Toast.d.ts.map +1 -1
  354. package/dist/components/TopNavHeader.d.ts +6 -0
  355. package/dist/components/TopNavHeader.d.ts.map +1 -1
  356. package/dist/components/TopNavWithSidebar.d.ts +49 -1
  357. package/dist/components/TopNavWithSidebar.d.ts.map +1 -1
  358. package/dist/components/Tour/Tour.d.ts +18 -1
  359. package/dist/components/Tour/Tour.d.ts.map +1 -1
  360. package/dist/components/TransferList/TransferList.d.ts +123 -4
  361. package/dist/components/TransferList/TransferList.d.ts.map +1 -1
  362. package/dist/components/TransferList/index.d.ts +1 -1
  363. package/dist/components/TransferList/index.d.ts.map +1 -1
  364. package/dist/components/TreeView/TreeView.d.ts +97 -8
  365. package/dist/components/TreeView/TreeView.d.ts.map +1 -1
  366. package/dist/components/TreeView/index.d.ts +1 -1
  367. package/dist/components/TreeView/index.d.ts.map +1 -1
  368. package/dist/components/TrinityLoader.d.ts.map +1 -1
  369. package/dist/components/icons/featherExtensions.d.ts +55 -0
  370. package/dist/components/icons/featherExtensions.d.ts.map +1 -0
  371. package/dist/components/icons/materialExtensions.d.ts +20 -0
  372. package/dist/components/icons/materialExtensions.d.ts.map +1 -0
  373. package/dist/components/internal/index.d.ts +87 -0
  374. package/dist/components/internal/index.d.ts.map +1 -1
  375. package/dist/components/navigation/MenuListWithHeading.d.ts +33 -0
  376. package/dist/components/navigation/MenuListWithHeading.d.ts.map +1 -0
  377. package/dist/components/navigation/clientSelectorLabels.d.ts +13 -0
  378. package/dist/components/navigation/clientSelectorLabels.d.ts.map +1 -0
  379. package/dist/components/navigation/components.d.ts +6 -0
  380. package/dist/components/navigation/components.d.ts.map +1 -1
  381. package/dist/components/shared/AsyncOutcomeAlert.d.ts +91 -0
  382. package/dist/components/shared/AsyncOutcomeAlert.d.ts.map +1 -0
  383. package/dist/components/shared/TrinityIconSvg.d.ts.map +1 -1
  384. package/dist/components/shared/TrinityLogoSvg.d.ts.map +1 -1
  385. package/dist/components/shared/bidi.d.ts +44 -0
  386. package/dist/components/shared/bidi.d.ts.map +1 -0
  387. package/dist/components/shared/bidiText.d.ts +25 -0
  388. package/dist/components/shared/bidiText.d.ts.map +1 -0
  389. package/dist/components/shared/containerQueries.d.ts +73 -0
  390. package/dist/components/shared/containerQueries.d.ts.map +1 -0
  391. package/dist/components/shared/createStringsContext.d.ts +69 -0
  392. package/dist/components/shared/createStringsContext.d.ts.map +1 -0
  393. package/dist/components/shared/direction.d.ts +46 -0
  394. package/dist/components/shared/direction.d.ts.map +1 -0
  395. package/dist/components/shared/focusTrap.d.ts +36 -0
  396. package/dist/components/shared/focusTrap.d.ts.map +1 -0
  397. package/dist/components/shared/getInitials.d.ts +29 -0
  398. package/dist/components/shared/getInitials.d.ts.map +1 -0
  399. package/dist/components/shared/headingLevel.d.ts +69 -0
  400. package/dist/components/shared/headingLevel.d.ts.map +1 -0
  401. package/dist/components/shared/mergeSlotProps.d.ts +50 -0
  402. package/dist/components/shared/mergeSlotProps.d.ts.map +1 -0
  403. package/dist/components/shared/mergeSx.d.ts +26 -0
  404. package/dist/components/shared/mergeSx.d.ts.map +1 -0
  405. package/dist/components/shared/motion.d.ts +110 -0
  406. package/dist/components/shared/motion.d.ts.map +1 -0
  407. package/dist/components/shared/occurrenceKeys.d.ts +23 -0
  408. package/dist/components/shared/occurrenceKeys.d.ts.map +1 -0
  409. package/dist/components/shared/primaryAction.d.ts +89 -0
  410. package/dist/components/shared/primaryAction.d.ts.map +1 -0
  411. package/dist/components/shared/resizeKeyboard.d.ts +68 -0
  412. package/dist/components/shared/resizeKeyboard.d.ts.map +1 -0
  413. package/dist/components/shared/rootProps.d.ts +117 -0
  414. package/dist/components/shared/rootProps.d.ts.map +1 -0
  415. package/dist/components/shared/safeContent.d.ts +136 -0
  416. package/dist/components/shared/safeContent.d.ts.map +1 -0
  417. package/dist/components/shared/targetSize.d.ts +64 -0
  418. package/dist/components/shared/targetSize.d.ts.map +1 -0
  419. package/dist/components/shared/useContainerInlineSize.d.ts +43 -0
  420. package/dist/components/shared/useContainerInlineSize.d.ts.map +1 -0
  421. package/dist/components/shared/useCopyAction.d.ts +35 -0
  422. package/dist/components/shared/useCopyAction.d.ts.map +1 -0
  423. package/dist/components/shared/useOverflow.d.ts +44 -0
  424. package/dist/components/shared/useOverflow.d.ts.map +1 -0
  425. package/dist/components/shared/useResizable.d.ts +106 -7
  426. package/dist/components/shared/useResizable.d.ts.map +1 -1
  427. package/dist/components/shared/warnDeprecated.d.ts +89 -15
  428. package/dist/components/shared/warnDeprecated.d.ts.map +1 -1
  429. package/dist/components/shared/zIndexRoles.d.ts +62 -0
  430. package/dist/components/shared/zIndexRoles.d.ts.map +1 -0
  431. package/dist/components/templates/AIReviewQueue/AIReviewQueueTemplate.d.ts +213 -0
  432. package/dist/components/templates/AIReviewQueue/AIReviewQueueTemplate.d.ts.map +1 -0
  433. package/dist/components/templates/AIReviewQueue/index.d.ts +2 -0
  434. package/dist/components/templates/AIReviewQueue/index.d.ts.map +1 -0
  435. package/dist/components/templates/Auth/AuthTemplate.d.ts.map +1 -1
  436. package/dist/components/templates/Auth/types.d.ts +4 -1
  437. package/dist/components/templates/Auth/types.d.ts.map +1 -1
  438. package/dist/components/templates/Catalog/CatalogTemplate.d.ts.map +1 -1
  439. package/dist/components/templates/ConnectorWizard/ConnectorWizardTemplate.d.ts.map +1 -1
  440. package/dist/components/templates/InsightsCenter/InsightsCenterTemplate.d.ts.map +1 -1
  441. package/dist/components/templates/IntegrationDetail/IntegrationDetailTemplate.d.ts.map +1 -1
  442. package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts +168 -10
  443. package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts.map +1 -1
  444. package/dist/components/templates/ListDetail/index.d.ts +1 -1
  445. package/dist/components/templates/ListDetail/index.d.ts.map +1 -1
  446. package/dist/components/templates/ListDetail/listDetailLabels.d.ts +106 -0
  447. package/dist/components/templates/ListDetail/listDetailLabels.d.ts.map +1 -0
  448. package/dist/components/templates/Onboarding/OnboardingTemplate.d.ts.map +1 -1
  449. package/dist/components/templates/Settings/SettingsTemplate.d.ts +0 -3
  450. package/dist/components/templates/Settings/SettingsTemplate.d.ts.map +1 -1
  451. package/dist/components/templates/Wizard/WizardTemplate.d.ts +4 -1
  452. package/dist/components/templates/Wizard/WizardTemplate.d.ts.map +1 -1
  453. package/dist/components/templates/index.d.ts +2 -1
  454. package/dist/components/templates/index.d.ts.map +1 -1
  455. package/dist/data-table.d.ts +1 -1
  456. package/dist/data-table.d.ts.map +1 -1
  457. package/dist/data-table.js +1 -0
  458. package/dist/data-table2.js +13522 -13465
  459. package/dist/data.js +213 -194
  460. package/dist/elk.bundled.js +47371 -0
  461. package/dist/essentials.d.ts +3 -3
  462. package/dist/essentials.d.ts.map +1 -1
  463. package/dist/essentials.js +179 -147
  464. package/dist/focus-on-replace.js +49 -0
  465. package/dist/form.d.ts +26 -4
  466. package/dist/form.d.ts.map +1 -1
  467. package/dist/forms.js +575 -483
  468. package/dist/foundation.js +3704 -0
  469. package/dist/hooks/storageStore.d.ts +51 -0
  470. package/dist/hooks/storageStore.d.ts.map +1 -0
  471. package/dist/hooks/useAsyncAction.d.ts +65 -0
  472. package/dist/hooks/useAsyncAction.d.ts.map +1 -0
  473. package/dist/hooks/useDisclosure.d.ts +190 -0
  474. package/dist/hooks/useDisclosure.d.ts.map +1 -0
  475. package/dist/hooks/useFocusOnReplace.d.ts +95 -0
  476. package/dist/hooks/useFocusOnReplace.d.ts.map +1 -0
  477. package/dist/hooks/useTrinityPalette.d.ts +38 -40
  478. package/dist/hooks/useTrinityPalette.d.ts.map +1 -1
  479. package/dist/hooks.d.ts +44 -6
  480. package/dist/hooks.d.ts.map +1 -1
  481. package/dist/hooks.js +301 -0
  482. package/dist/index.d.ts +71 -26
  483. package/dist/index.d.ts.map +1 -1
  484. package/dist/index.js +13923 -60619
  485. package/dist/patterns/AICopilotPattern/AICopilotPattern.d.ts +203 -0
  486. package/dist/patterns/AICopilotPattern/AICopilotPattern.d.ts.map +1 -0
  487. package/dist/patterns/AICopilotPattern/index.d.ts +3 -0
  488. package/dist/patterns/AICopilotPattern/index.d.ts.map +1 -0
  489. package/dist/patterns/index.d.ts +15 -0
  490. package/dist/patterns/index.d.ts.map +1 -0
  491. package/dist/presets/analytics.d.ts +8 -1
  492. package/dist/presets/analytics.d.ts.map +1 -1
  493. package/dist/presets/crm.d.ts +8 -1
  494. package/dist/presets/crm.d.ts.map +1 -1
  495. package/dist/presets/index.d.ts +1 -1
  496. package/dist/presets/portal.d.ts +8 -1
  497. package/dist/presets/portal.d.ts.map +1 -1
  498. package/dist/safe-content.js +792 -0
  499. package/dist/theme-augmentation.d.ts +388 -0
  500. package/dist/theme-augmentation.d.ts.map +1 -0
  501. package/dist/theme.d.ts +116 -30
  502. package/dist/theme.d.ts.map +1 -1
  503. package/dist/theme.js +891 -436
  504. package/dist/token-color.d.ts +14 -0
  505. package/dist/token-color.d.ts.map +1 -0
  506. package/dist/token-merge.d.ts +56 -0
  507. package/dist/token-merge.d.ts.map +1 -0
  508. package/dist/token-serialization.d.ts +65 -0
  509. package/dist/token-serialization.d.ts.map +1 -0
  510. package/dist/tokens.d.ts +882 -13
  511. package/dist/tokens.d.ts.map +1 -1
  512. package/dist/tokens.js +21 -19
  513. package/dist/trinity.css +1077 -414
  514. package/package.json +111 -90
  515. package/dist/components/index.d.ts +0 -145
  516. package/dist/components/index.d.ts.map +0 -1
  517. package/dist/components/shared.d.ts +0 -92
  518. package/dist/components/shared.d.ts.map +0 -1
@@ -0,0 +1,113 @@
1
+ /**
2
+ * @fileoverview MetaChip: a `Label: value` metadata chip over MUI Chip (master-plan D-04).
3
+ * @module components/MetaChip
4
+ *
5
+ * @internal — not part of the public API; see ADR-02
6
+ *
7
+ * One chip for metadata: FilterBar's filter chips, AuditDrawer's category, AIPersonaCard's
8
+ * capabilities, AISourcesPanel's items and the chain-of-thought sources migrate onto it
9
+ * (D-13, D-16, D-28, D-32, D-38).
10
+ *
11
+ * - **Content.** `label`, `labelSeparator` and `value`, so a screen reader reads
12
+ * "Status: Open". The value is model, user or data text and is bidi-isolated (E-48+); the
13
+ * label is UI text and is not. `renderLabel({ label, value })` replaces the composition:
14
+ * `null` renders nothing, `undefined` the default (ADR-04 (7)).
15
+ * - **Tones.** `'neutral'` (the default) sets no colour, so the chip is MUI Chip's own default
16
+ * for its variant. The status tones read `getTrinityPalette(theme).status`, the pairs
17
+ * INSTRUCTIONS_CSS's `.chip--*` recipe uses. An object tone passes resolver colours through.
18
+ * - **Interaction (OD-D3 (a), the MUI Chip model).** With `onClick` or `onDelete` the root is
19
+ * a native `<button type="button">`, valid inside `<p>` and headings. Delete and Backspace
20
+ * call `onDelete`; the visually hidden `deleteHint` is linked through `aria-describedby`;
21
+ * the delete icon's box is at least 24 by 24 (WCAG 2.5.8). Without either, the root is the
22
+ * `component` element (`'div'` or `'span'`).
23
+ * - **Selection.** `aria-pressed` only when `selected` is defined, the chip has `onClick`, and
24
+ * the consumer passes no `aria-expanded` or `aria-haspopup` (popup and disclosure triggers
25
+ * are never toggles). Selected adds a 2px `interactive.default` border and weight 600, not
26
+ * colour alone (ADR-33); forced colours draw it as a 2px Highlight border.
27
+ * - **Truncation.** `truncate` (interactive chips only) keeps one line with an ellipsis; the
28
+ * full text stays in the DOM and, while it overflows (`useOverflow`, measured after mount),
29
+ * a Tooltip with `describeChild` shows it. Other chips wrap.
30
+ * - **Disabled** applies to interactive chips only: the root is a natively disabled button
31
+ * (out of the tab order, and exempt from the contrast rules as an inactive control), with
32
+ * `onDelete` alone too. A static chip has no disabled state to expose, so `disabled` there is
33
+ * ignored rather than greying the text below 4.5:1.
34
+ * - **Warnings** (development, once): `truncate` without interaction; `selected` without
35
+ * `onClick`; `disabled` without interaction.
36
+ */
37
+ import * as React from 'react';
38
+ import { type SxProps, type Theme } from '@mui/material/styles';
39
+ import { type TrinitySlotProps } from '../shared/rootProps';
40
+ /** A status tone, or `'neutral'` (MUI Chip's own default colours). @internal */
41
+ export type MetaChipTone = 'neutral' | 'info' | 'success' | 'warning' | 'error';
42
+ /** Resolver-derived colours for a custom tone. @internal */
43
+ export interface MetaChipColors {
44
+ text: string;
45
+ background: string;
46
+ border: string;
47
+ }
48
+ /** The chip's own props. @internal */
49
+ export interface MetaChipOwnProps {
50
+ /** The value: model, user or data text. Bidi-isolated. */
51
+ value: React.ReactNode;
52
+ /** The label before the separator, in the UI language. */
53
+ label?: React.ReactNode;
54
+ /**
55
+ * Between the label and the value.
56
+ * @default ':'
57
+ */
58
+ labelSeparator?: string;
59
+ /** Replaces the label and value composition: `null` renders nothing, `undefined` the default. */
60
+ renderLabel?: (parts: {
61
+ label: React.ReactNode;
62
+ value: React.ReactNode;
63
+ }) => React.ReactNode | null | undefined;
64
+ /** A leading icon (decorative). */
65
+ icon?: React.ReactNode;
66
+ /**
67
+ * `'neutral'` sets no colour; a status tone reads the resolver's status pair.
68
+ * @default 'neutral'
69
+ */
70
+ tone?: MetaChipTone | MetaChipColors;
71
+ /**
72
+ * MUI Chip's variants.
73
+ * @default 'filled'
74
+ */
75
+ variant?: 'filled' | 'outlined';
76
+ /** @default 'small' */
77
+ size?: 'small' | 'medium';
78
+ /**
79
+ * The root element when the chip is not interactive. An interactive chip is a `<button>`.
80
+ * @default 'div'
81
+ */
82
+ component?: 'div' | 'span';
83
+ /** The pressed state of a toggle chip (needs `onClick`). */
84
+ selected?: boolean;
85
+ /** A natively disabled button. Interactive chips only; ignored on a static chip. */
86
+ disabled?: boolean;
87
+ /** One line with an ellipsis and a tooltip while it overflows. Interactive chips only. */
88
+ truncate?: boolean;
89
+ maxWidth?: number | string;
90
+ onClick?: (event: React.MouseEvent<HTMLElement>) => void;
91
+ /** Called by the delete icon and by Delete or Backspace on the focused chip. */
92
+ onDelete?: (event: React.SyntheticEvent) => void;
93
+ /**
94
+ * The visually hidden hint linked to a removable chip through `aria-describedby`.
95
+ * @default 'Press Delete to remove'
96
+ */
97
+ deleteHint?: string;
98
+ sx?: SxProps<Theme>;
99
+ className?: string;
100
+ slotProps?: {
101
+ label?: TrinitySlotProps<HTMLSpanElement>;
102
+ value?: TrinitySlotProps<HTMLSpanElement>;
103
+ icon?: TrinitySlotProps<HTMLSpanElement>;
104
+ };
105
+ }
106
+ /** @internal */
107
+ export type MetaChipProps = MetaChipOwnProps & Omit<React.HTMLAttributes<HTMLElement>, keyof MetaChipOwnProps | 'color'>;
108
+ /**
109
+ * A `Label: value` metadata chip. See the module notes.
110
+ * @internal
111
+ */
112
+ export declare const MetaChip: React.ForwardRefExoticComponent<MetaChipOwnProps & Omit<React.HTMLAttributes<HTMLElement>, "color" | keyof MetaChipOwnProps> & React.RefAttributes<HTMLElement>>;
113
+ //# sourceMappingURL=MetaChip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MetaChip.d.ts","sourceRoot":"","sources":["../../../src/components/MetaChip/MetaChip.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAY,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAQ1E,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAK1E,gFAAgF;AAChF,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAEhF,4DAA4D;AAC5D,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,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K,CAAC,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE;QACV,KAAK,CAAC,EAAE,gBAAgB,CAAC,eAAe,CAAC,CAAC;QAC1C,KAAK,CAAC,EAAE,gBAAgB,CAAC,eAAe,CAAC,CAAC;QAC1C,IAAI,CAAC,EAAE,gBAAgB,CAAC,eAAe,CAAC,CAAC;KAC1C,CAAC;CACH;AAED,gBAAgB;AAChB,MAAM,MAAM,aAAa,GAAG,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,MAAM,gBAAgB,GAAG,OAAO,CAAC,CAAC;AAazH;;;GAGG;AACH,eAAO,MAAM,QAAQ,kKAyMnB,CAAC"}
@@ -12,30 +12,111 @@
12
12
  * ```
13
13
  */
14
14
  import React from 'react';
15
+ import { type TrinityRootProps, type TrinitySlotProps } from '../shared/rootProps';
16
+ /**
17
+ * Modal's overridable strings (NAMING, "Label overrides"). Pass only the keys you change through
18
+ * `labels`.
19
+ *
20
+ * @since 2.13.0
21
+ */
22
+ export interface ModalLabels {
23
+ /**
24
+ * The close button's accessible name and tooltip.
25
+ * @default 'Close dialog'
26
+ */
27
+ close: string;
28
+ /**
29
+ * The button in the inline error (shown when the primary action fails) that runs the action
30
+ * again.
31
+ * @default 'Try again'
32
+ * @since 2.13.0
33
+ */
34
+ retry: string;
35
+ }
15
36
  export type ModalVariant = 'default' | 'info' | 'success' | 'warning' | 'danger' | 'confirm';
16
37
  /**
17
- * Props for Modal component.
38
+ * Modal's own props. ModalProps adds the root's HTML attributes (ADR-04).
18
39
  */
19
- export interface ModalProps {
40
+ interface ModalOwnProps {
20
41
  /** Whether the modal is open */
21
42
  open: boolean;
22
- /** Callback when the modal should close */
23
- onClose: () => void;
24
- /** Modal title */
43
+ /**
44
+ * Called when the modal asks to close, with why: `'closeButton'`, `'secondaryAction'`,
45
+ * `'backdropClick'` or `'escapeKeyDown'` (the reason since 2.13.0). While the primary action is
46
+ * pending, no close path calls it unless `pendingClosePolicy="allow"`.
47
+ */
48
+ onClose: (reason?: 'closeButton' | 'secondaryAction' | 'backdropClick' | 'escapeKeyDown') => void;
49
+ /**
50
+ * Modal title: the dialog's heading (`h2`) and its accessible name. Without a title, name the
51
+ * dialog with `aria-label` or `aria-labelledby` (they reach the dialog surface); with neither,
52
+ * a development warning fires.
53
+ */
25
54
  title?: string;
26
55
  /** Modal content */
27
56
  children?: React.ReactNode;
57
+ /**
58
+ * A message shown first in the content, as MUI's DialogContentText: a paragraph for a
59
+ * string, a `div` for any other node (so lists and blocks are valid HTML). It has its own id,
60
+ * which `describedBy="message"` points the dialog's description at.
61
+ * @since 2.13.0
62
+ */
63
+ message?: React.ReactNode;
64
+ /**
65
+ * What describes the dialog (`aria-describedby` on the surface): `'content'` (the whole
66
+ * content area, the default and the behavior before 2.13.0), `'message'` (only `message`),
67
+ * or `'none'`. A consumer's own `aria-describedby` is added after it.
68
+ * @default 'content'
69
+ * @since 2.13.0
70
+ */
71
+ describedBy?: 'content' | 'message' | 'none';
72
+ /**
73
+ * Overrides for Modal's strings; see {@link ModalLabels}.
74
+ * @since 2.13.0
75
+ */
76
+ labels?: Partial<ModalLabels>;
28
77
  /** Visual variant */
29
78
  variant?: ModalVariant;
30
79
  /** Primary action button label */
31
80
  primaryAction?: string;
32
- /** Primary action click handler */
33
- onPrimaryAction?: () => void | Promise<void>;
81
+ /**
82
+ * Primary action click handler. It may return nothing, a promise or any thenable (a thenable
83
+ * since 2.13.0). While what it returns is pending, the primary button shows a spinner and is
84
+ * `aria-busy`, and the actions are `aria-disabled` (they keep focus; clicks do nothing). A sync
85
+ * throw or a rejection shows an inline error with a retry button and goes to `onActionError`.
86
+ */
87
+ onPrimaryAction?: () => void | PromiseLike<void>;
88
+ /**
89
+ * Called with the error when the primary action throws or rejects. Without it the error is
90
+ * reported through `globalThis.reportError`, so window error monitoring still sees it; it never
91
+ * escapes as an unhandled rejection. The inline error shows either way.
92
+ * @since 2.13.0
93
+ */
94
+ onActionError?: (error: unknown) => void;
95
+ /**
96
+ * Whether the dialog can close while the primary action (or `loading`) is pending: `'block'`
97
+ * (the default) ignores the close button, the secondary action, backdrop clicks and Escape, and
98
+ * marks the close and secondary buttons `aria-disabled`; `'allow'` keeps every close path
99
+ * working.
100
+ * @default 'block'
101
+ * @since 2.13.0
102
+ */
103
+ pendingClosePolicy?: 'block' | 'allow';
104
+ /**
105
+ * The inline error shown at the end of the content when the primary action fails: what
106
+ * happened and what to do next. A node, or a function of the error that returns one (for
107
+ * example to show a server message you trust). The retry button's text is `labels.retry`.
108
+ * @default 'The action could not be completed. Try again.'
109
+ * @since 2.13.0
110
+ */
111
+ errorMessage?: React.ReactNode | ((error: unknown) => React.ReactNode);
34
112
  /** Secondary action button label */
35
113
  secondaryAction?: string;
36
114
  /** Secondary action click handler */
37
115
  onSecondaryAction?: () => void;
38
- /** Whether primary action is loading */
116
+ /**
117
+ * Shows the pending state as if the primary action were running: a spinner on the primary
118
+ * button, and `aria-disabled` actions (before 2.13.0 they were `disabled`, which dropped focus).
119
+ */
39
120
  loading?: boolean;
40
121
  /** Whether primary action is disabled */
41
122
  primaryDisabled?: boolean;
@@ -49,14 +130,44 @@ export interface ModalProps {
49
130
  maxWidth?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | false;
50
131
  /** Full width */
51
132
  fullWidth?: boolean;
52
- /** Full screen on mobile */
133
+ /**
134
+ * Full screen below the theme's `sm` breakpoint: the dialog fills the viewport with no
135
+ * radius. Above `sm` it keeps its `maxWidth`. The first render (server and hydration) is not
136
+ * full screen; the viewport is read after mount.
137
+ */
53
138
  fullScreenMobile?: boolean;
54
139
  /** Custom footer content */
55
140
  footer?: React.ReactNode;
56
141
  /** Hide default footer actions */
57
142
  hideFooter?: boolean;
58
- /** Custom styles */
143
+ /**
144
+ * Styles for the dialog surface (the paper, `role="dialog"`), applied after Modal's own. The
145
+ * object, array and function forms all work (array and function since 2.13.0).
146
+ */
59
147
  sx?: object;
148
+ /**
149
+ * Class name for the Dialog root, added to its own classes.
150
+ * @since 2.13.0
151
+ */
152
+ className?: string;
153
+ /**
154
+ * Props for Modal's parts (ADR-04 (6)): `root` (the Dialog root, a fixed container around
155
+ * the backdrop and the surface), `backdrop`, and `paper` (the dialog surface, `role="dialog"`).
156
+ * Each takes `className`, `sx`, `id` and HTML attributes; `role`, `aria-modal` and the other
157
+ * owned attributes stay Modal's. `slotProps.paper.sx` applies after `sx`.
158
+ * @since 2.13.0
159
+ */
160
+ slotProps?: {
161
+ root?: TrinitySlotProps<HTMLDivElement>;
162
+ backdrop?: TrinitySlotProps<HTMLDivElement>;
163
+ paper?: TrinitySlotProps<HTMLDivElement>;
164
+ };
165
+ }
166
+ /**
167
+ * Props for Modal component: Modal's own props, plus HTML attributes for the Dialog root (rest
168
+ * props, since 2.13.0). The ref is the Dialog root.
169
+ */
170
+ export interface ModalProps extends ModalOwnProps, TrinityRootProps<HTMLDivElement, ModalOwnProps> {
60
171
  }
61
172
  /**
62
173
  * Modal component provides a consistent dialog pattern for Trinity applications.
@@ -89,20 +200,68 @@ export interface ModalProps {
89
200
  * ```
90
201
  */
91
202
  export declare const Modal: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<HTMLDivElement>>;
203
+ /**
204
+ * ConfirmDialog's built-in reason field (`reasonField`): a text field below the message whose
205
+ * value, trimmed, `onConfirm` receives. While `required` (the default), an empty or
206
+ * whitespace-only reason does not confirm: the field shows `requiredMessage`, is marked invalid
207
+ * and takes focus.
208
+ *
209
+ * @since 2.13.0
210
+ */
211
+ export interface ConfirmDialogReasonField {
212
+ /** The field's visible label, also its accessible name. */
213
+ label: string;
214
+ /** Whether a reason must be entered before confirming. @default true */
215
+ required?: boolean;
216
+ /** Help text under the field (replaced by `requiredMessage` while the empty reason is invalid). */
217
+ helperText?: React.ReactNode;
218
+ /**
219
+ * The message shown, and read with the field, when a required reason is empty.
220
+ * @default 'Enter a reason to continue.'
221
+ */
222
+ requiredMessage?: string;
223
+ /** A multi-line field (Enter adds a line). @default true */
224
+ multiline?: boolean;
225
+ /** The most characters the field accepts. */
226
+ maxLength?: number;
227
+ /** The reason the field starts with each time the dialog opens. @default '' */
228
+ defaultValue?: string;
229
+ }
92
230
  /**
93
231
  * Props for ConfirmDialog component.
94
232
  */
95
233
  export interface ConfirmDialogProps {
96
234
  /** Whether the dialog is open */
97
235
  open: boolean;
98
- /** Callback when dialog closes */
99
- onClose: () => void;
100
- /** Callback when user confirms */
101
- onConfirm: () => void | Promise<void>;
236
+ /**
237
+ * Callback when dialog closes, with Modal's reason (`'closeButton'`, `'secondaryAction'`,
238
+ * `'backdropClick'` or `'escapeKeyDown'`; the reason since 2.13.0).
239
+ */
240
+ onClose: (reason?: 'closeButton' | 'secondaryAction' | 'backdropClick' | 'escapeKeyDown') => void;
241
+ /**
242
+ * Callback when user confirms. With `reasonField` it receives the entered reason (since
243
+ * 2.13.0). It may return a promise or any thenable: the dialog shows the pending state and,
244
+ * when it rejects, an inline error with a retry. The dialog does not close itself: close it
245
+ * when the action succeeds.
246
+ */
247
+ onConfirm: (reason?: string) => void | PromiseLike<void>;
102
248
  /** Dialog title */
103
249
  title?: string;
104
- /** Dialog message */
105
- message?: string;
250
+ /**
251
+ * Dialog message: it describes the dialog (`aria-describedby`). A string is a paragraph; any
252
+ * other node (a node since 2.13.0) renders in a `div`.
253
+ */
254
+ message?: React.ReactNode;
255
+ /**
256
+ * More content below the message, for example details of what the action affects.
257
+ * @since 2.13.0
258
+ */
259
+ children?: React.ReactNode;
260
+ /**
261
+ * A built-in reason field below the message; see {@link ConfirmDialogReasonField}.
262
+ * @since 2.13.0
263
+ */
264
+ reasonField?: ConfirmDialogReasonField;
106
265
  /** Confirm button label */
107
266
  confirmLabel?: string;
108
267
  /** Cancel button label */
@@ -111,6 +270,35 @@ export interface ConfirmDialogProps {
111
270
  variant?: 'default' | 'danger' | 'warning';
112
271
  /** Whether confirmation is loading */
113
272
  loading?: boolean;
273
+ /**
274
+ * Whether the confirm button is disabled. A required `reasonField` does not need it: the
275
+ * button stays enabled and an empty reason is reported on the field.
276
+ * @since 2.13.0
277
+ */
278
+ primaryDisabled?: boolean;
279
+ /**
280
+ * Called with the error when `onConfirm` throws or rejects; see Modal's `onActionError`.
281
+ * @since 2.13.0
282
+ */
283
+ onActionError?: (error: unknown) => void;
284
+ /**
285
+ * Whether the dialog can close while `onConfirm` is pending; see Modal's `pendingClosePolicy`.
286
+ * @default 'block'
287
+ * @since 2.13.0
288
+ */
289
+ pendingClosePolicy?: 'block' | 'allow';
290
+ /**
291
+ * The inline error shown when `onConfirm` fails; see Modal's `errorMessage`.
292
+ * @default 'The action could not be completed. Try again.'
293
+ * @since 2.13.0
294
+ */
295
+ errorMessage?: React.ReactNode | ((error: unknown) => React.ReactNode);
296
+ /**
297
+ * Overrides for the strings ConfirmDialog takes from Modal (`close`, `retry`); see
298
+ * {@link ModalLabels}.
299
+ * @since 2.13.0
300
+ */
301
+ labels?: Partial<ModalLabels>;
114
302
  }
115
303
  /**
116
304
  * ConfirmDialog provides a simple "Are you sure?" pattern.
@@ -126,16 +314,30 @@ export interface ConfirmDialogProps {
126
314
  * variant="danger"
127
315
  * confirmLabel="Delete"
128
316
  * />
317
+ *
318
+ * // Reject with a required reason; the dialog validates it and passes it to onConfirm.
319
+ * <ConfirmDialog
320
+ * open={open}
321
+ * onClose={close}
322
+ * onConfirm={(reason) => rejectRequest(id, reason).then(close)}
323
+ * title="Reject request?"
324
+ * message="The requester sees your reason."
325
+ * variant="danger"
326
+ * confirmLabel="Reject"
327
+ * reasonField={{ label: 'Reason', required: true, multiline: true }}
328
+ * />
129
329
  * ```
130
330
  */
131
- export declare const ConfirmDialog: React.FC<ConfirmDialogProps>;
331
+ export declare const ConfirmDialog: React.ForwardRefExoticComponent<ConfirmDialogProps & React.RefAttributes<HTMLDivElement>>;
132
332
  interface ConfirmDialogState {
133
333
  isOpen: boolean;
134
334
  title: string;
135
- message: string;
335
+ message: React.ReactNode;
136
336
  variant: 'default' | 'danger' | 'warning';
137
337
  confirmLabel: string;
138
- onConfirm: () => void | Promise<void>;
338
+ onConfirm: (reason?: string) => void | PromiseLike<void>;
339
+ /** Pass to ConfirmDialog's `reasonField` (since 2.13.0). */
340
+ reasonField?: ConfirmDialogReasonField;
139
341
  }
140
342
  /**
141
343
  * Hook for programmatically showing confirmation dialogs.
@@ -172,7 +374,7 @@ interface ConfirmDialogState {
172
374
  */
173
375
  export declare const useConfirmDialog: () => {
174
376
  confirm: (options: Partial<ConfirmDialogState> & {
175
- onConfirm: () => void | Promise<void>;
377
+ onConfirm: (reason?: string) => void | PromiseLike<void>;
176
378
  }) => void;
177
379
  close: () => void;
178
380
  state: ConfirmDialogState;
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAgC,MAAM,OAAO,CAAC;AAwBrD,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE7F;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,gCAAgC;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,2CAA2C;IAC3C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,kBAAkB;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oBAAoB;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,kCAAkC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mCAAmC;IACnC,eAAe,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7C,oCAAoC;IACpC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,qCAAqC;IACrC,iBAAiB,CAAC,EAAE,MA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CAC/B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,aAAa,2FA6FxB,CAAC;AAMH,UAAU,kBAAkB;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,OAAO,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;IAC1C,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;IACzD,4DAA4D;IAC5D,WAAW,CAAC,EAAE,wBAAwB,CAAC;CACxC;AAiBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,gBAAgB;uBAIf,OAAO,CAAC,kBAAkB,CAAC,GAAG;QAAE,SAAS,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,CAAA;KAAE;;;CAevG,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -1,2 +1,2 @@
1
- export { Modal, ConfirmDialog, useConfirmDialog, type ModalProps, type ConfirmDialogProps, type ModalVariant, } from './Modal';
1
+ export { Modal, ConfirmDialog, useConfirmDialog, type ModalProps, type ConfirmDialogProps, type ConfirmDialogReasonField, type ModalVariant, type ModalLabels, } from './Modal';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,aAAa,EACb,gBAAgB,EAChB,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,YAAY,GAClB,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,aAAa,EACb,gBAAgB,EAChB,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EACjB,KAAK,WAAW,GACjB,MAAM,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationCenter.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationCenter/NotificationCenter.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA4B/B,OAAO,KAAK,EACV,uBAAuB,EAGxB,MAAM,SAAS,CAAC;AAkLjB,eAAO,MAAM,kBAAkB,mGA6L7B,CAAC;AAEH,eAAe,kBAAkB,CAAC;AAIlC,wBAAgB,yBAAyB,IAAI,KAAK,CAAC,YAAY,CAM9D"}
1
+ {"version":3,"file":"NotificationCenter.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationCenter/NotificationCenter.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA6B/B,OAAO,KAAK,EACV,uBAAuB,EAGxB,MAAM,SAAS,CAAC;AAyMjB,eAAO,MAAM,kBAAkB,mGA4L7B,CAAC;AAEH,eAAe,kBAAkB,CAAC;AAIlC,wBAAgB,yBAAyB,IAAI,KAAK,CAAC,YAAY,CAM9D"}
@@ -12,6 +12,11 @@
12
12
  * curved connectors are easier on the eye for genealogy trees but less
13
13
  * legible for org reporting structures.
14
14
  *
15
+ * Expander (B-21): when `onExpand` is set, a collapsed node that hides
16
+ * children gets an "Expand subtree" IconButton next to (never inside) its node
17
+ * button. After the consumer expands the node the expander unmounts, and focus
18
+ * moves to the node's own button (B-08 `useFocusOnReplace`).
19
+ *
15
20
  * @module components/OrgChart
16
21
  */
17
22
  import * as React from 'react';
@@ -1 +1 @@
1
- {"version":3,"file":"OrgChart.d.ts","sourceRoot":"","sources":["../../../src/components/OrgChart/OrgChart.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,OAAO,KAAK,EACV,aAAa,EAGd,MAAM,SAAS,CAAC;AAuQjB,eAAO,MAAM,QAAQ,EA2Lf,CAAC,KAAK,EACV,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAA;CAAE,KAC9D,KAAK,CAAC,YAAY,CAAC;AAExB,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"OrgChart.d.ts","sourceRoot":"","sources":["../../../src/components/OrgChart/OrgChart.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAiB/B,OAAO,KAAK,EACV,aAAa,EAGd,MAAM,SAAS,CAAC;AAgSjB,eAAO,MAAM,QAAQ,EAiMf,CAAC,KAAK,EACV,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAA;CAAE,KAC9D,KAAK,CAAC,YAAY,CAAC;AAExB,eAAe,QAAQ,CAAC"}
@@ -11,8 +11,9 @@ import type { SxProps, Theme } from '@mui/material';
11
11
  * render the box. Long-form data should be loaded separately when a node is
12
12
  * selected (typically into an `EntityDetailPanel`).
13
13
  *
14
- * For deeper trees, set `collapsed: true` on intermediate nodes to render
15
- * a "+N more" chevron rather than expanding the full subtree.
14
+ * For deeper trees, set `collapsed: true` on intermediate nodes to hide their
15
+ * subtree. When the chart has `onExpand`, each such node that has children
16
+ * gets an "Expand subtree" button next to it.
16
17
  */
17
18
  export interface OrgNode<TMeta = unknown> {
18
19
  /** Stable id for React keys + selection. */
@@ -29,7 +30,13 @@ export interface OrgNode<TMeta = unknown> {
29
30
  badge?: ReactNode;
30
31
  /** Optional sub-tree. */
31
32
  children?: ReadonlyArray<OrgNode<TMeta>>;
32
- /** When true, sub-tree is collapsed and rendered as a "+N more" expander. */
33
+ /**
34
+ * When true, the sub-tree is left out of the layout. The default node body
35
+ * then shows an "Expand subtree" button next to the node when the node has at
36
+ * least one child and the chart has `onExpand`; otherwise it shows a
37
+ * decorative ▸ marker. The chart never changes this flag itself: expand the
38
+ * node by passing a new `root` with `collapsed: false` from `onExpand`.
39
+ */
33
40
  collapsed?: boolean;
34
41
  /** Optional consumer-defined payload. */
35
42
  meta?: TMeta;
@@ -53,9 +60,22 @@ export interface OrgChartProps<TMeta = unknown> {
53
60
  root: OrgNode<TMeta>;
54
61
  /** Currently selected node id. */
55
62
  selectedId?: string;
56
- /** Called when a node is clicked. */
63
+ /**
64
+ * Called when a node button is activated (click, Enter or Space). Receives
65
+ * your own node object from `root` (the same reference, never a copy).
66
+ */
57
67
  onSelect?: (node: OrgNode<TMeta>) => void;
58
- /** Called when a collapsed expander is clicked. */
68
+ /**
69
+ * Called when the "Expand subtree" button of a collapsed node is activated
70
+ * (click, Enter or Space). Receives your own node object from `root` (the same
71
+ * reference, never a copy) and does not select the node.
72
+ *
73
+ * The button renders only while this prop is set, the node is `collapsed`
74
+ * and it has at least one child; without `onExpand`, collapsed nodes show a
75
+ * decorative ▸ marker instead. To expand, pass a new `root` with
76
+ * `collapsed: false` on that node: the button then disappears and focus moves
77
+ * to the node's own button. There is no built-in collapse control.
78
+ */
59
79
  onExpand?: (node: OrgNode<TMeta>) => void;
60
80
  /** Orientation. Default `vertical`. */
61
81
  orientation?: OrgChartOrientation;
@@ -67,9 +87,13 @@ export interface OrgChartProps<TMeta = unknown> {
67
87
  siblingGap?: number;
68
88
  /** Vertical gap between levels. Default 48. */
69
89
  levelGap?: number;
70
- /** Render a custom node body instead of the default avatar+title+subtitle. */
90
+ /**
91
+ * Render a custom node body instead of the default avatar+title+subtitle.
92
+ * The default node button and the built-in "Expand subtree" button are not
93
+ * rendered for custom bodies, so supply your own controls.
94
+ */
71
95
  renderNode?: (node: OrgNode<TMeta>, isSelected: boolean) => ReactNode;
72
- /** Optional background color for the canvas. Default semantic background.secondary. */
96
+ /** Optional background color for the canvas. Default: the theme's `background.default`. */
73
97
  canvasBackground?: string;
74
98
  /** Maximum visible height before vertical scroll engages. Default 600. */
75
99
  maxHeight?: number | string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/OrgChart/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEpD;;;;;;;;;GASG;AACH,MAAM,WAAW,OAAO,CAAC,KAAK,GAAG,OAAO;IACtC,4CAA4C;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,wCAAwC;IACxC,KAAK,EAAE,SAAS,CAAC;IACjB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,yDAAyD;IACzD,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;IAChE,6CAA6C;IAC7C,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;IACzC,6EAA6E;IAC7E,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,yCAAyC;IACzC,IAAI,CAAC,EAAE,KAAK,CAAC;CACd;AAED;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,YAAY,CAAC;AAE5D;;;;;;GAMG;AACH,MAAM,WAAW,aAAa,CAAC,KAAK,GA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,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,EAAE,UAAU,EAAE,OAAO,KAAK,SAAS,CAAC;IACtE,2FAA2F;IAC3F,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,iCAAiC;IACjC,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -24,7 +24,7 @@ export declare const OverflowTooltip: React.ForwardRefExoticComponent<Omit<Overf
24
24
  /**
25
25
  * @deprecated Removed in v3.0 (planned). Use `OverflowTooltip` (lowercase
26
26
  * "ltip"). This capitalized alias is a compatibility shim for the v1.x typo
27
- * era and emits a dev-mode console warning on first render.
27
+ * era and emits a dev-mode console warning once, after its first render.
28
28
  */
29
29
  export declare const OverflowToolTip: React.ForwardRefExoticComponent<Omit<OverflowTooltipProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
30
30
  export default OverflowTooltip;
@@ -1 +1 @@
1
- {"version":3,"file":"OverflowTooltip.d.ts","sourceRoot":"","sources":["../../../src/components/OverflowTooltip/OverflowTooltip.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,KAAK,YAAY,EACjB,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AAGvB,MAAM,WAAW,oBACf,SAAQ,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC;IACzC,+CAA+C;IAC/C,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,oCAAoC;IACpC,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,0CAA0C;IAC1C,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,6CAA6C;IAC7C,YAAY,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,OAAO,GAAG,UAAU,CAAC,CAAC;CACzD;AAMD,eAAO,MAAM,eAAe,2GAoF3B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,2GAK3B,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"OverflowTooltip.d.ts","sourceRoot":"","sources":["../../../src/components/OverflowTooltip/OverflowTooltip.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAGL,KAAK,YAAY,EACjB,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AAGvB,MAAM,WAAW,oBACf,SAAQ,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC;IACzC,+CAA+C;IAC/C,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,oCAAoC;IACpC,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,0CAA0C;IAC1C,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,6CAA6C;IAC7C,YAAY,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,OAAO,GAAG,UAAU,CAAC,CAAC;CACzD;AAED,eAAO,MAAM,eAAe,2GAqD3B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,2GAK3B,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../../src/components/PageHeader/PageHeader.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAaL,KAAK,OAAO,EACZ,KAAK,KAAK,EACX,MAAM,eAAe,CAAC;AAOvB,MAAM,WAAW,cAAc;IAC7B,uBAAuB;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,qEAA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zB,qCAAqC;IACrC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,yCAAyC;IACzC,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,oCAAoC;IACpC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,yBAAyB;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yBAAyB;IACzB,WAAW,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;IACnE,qBAAqB;IACrB,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC;IACzC,gCAAgC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;;;;;;OAQG;IACH,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,UAAU,wFAuTrB,CAAC;AAEH,eAAe,UAAU,CAAC"}
@@ -6,7 +6,8 @@
6
6
  * intersection (overridable via `activeId`).
7
7
  *
8
8
  * Active indicator: 2px brand-color left border + bolder text. Smooth scroll
9
- * to anchor on click, with `scroll-margin-top` honored via `scrollOffset`.
9
+ * to anchor on click (a jump when the user prefers reduced motion), with
10
+ * `scroll-margin-top` honored via `scrollOffset`.
10
11
  *
11
12
  * @module components/PageTOC
12
13
  * @example
@@ -1 +1 @@
1
- {"version":3,"file":"PageTOC.d.ts","sourceRoot":"","sources":["../../../src/components/PageTOC/PageTOC.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,OAAO,KAAK,EAAE,YAAY,EAAgB,MAAM,SAAS,CAAC;AA4I1D,eAAO,MAAM,OAAO,kFA6InB,CAAC;AAeF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"PageTOC.d.ts","sourceRoot":"","sources":["../../../src/components/PageTOC/PageTOC.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,OAAO,KAAK,EAAE,YAAY,EAAgB,MAAM,SAAS,CAAC;AA6I1D,eAAO,MAAM,OAAO,kFAkJnB,CAAC;AAeF,eAAe,OAAO,CAAC"}