@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
@@ -10,8 +10,22 @@
10
10
  * rightItems={[]}
11
11
  * />
12
12
  * ```
13
+ *
14
+ * Accessibility (B-23, WAI-ARIA APG checkbox pattern):
15
+ * - Each item row is a `role="checkbox"` with `aria-checked`, named by its
16
+ * content. Space or Enter toggles it; disabled rows are skipped by Tab and
17
+ * expose `aria-disabled`. The check mark inside the row is decorative.
18
+ * - Each list is named by its panel title. The header select-all checkbox is
19
+ * named "Select all {title}" and reports `aria-checked="mixed"` while only
20
+ * some enabled items are checked.
21
+ * - The four icon-only move buttons are named by `labels`, and show the same
22
+ * text as a tooltip.
23
+ * - After a move, focus goes to the first moved item in the destination list
24
+ * (the activated button disables itself), and a polite live region announces
25
+ * the move, for example "Moved 2 items to Selected".
13
26
  */
14
27
  import * as React from 'react';
28
+ import { type SxProps, type Theme } from '@mui/material';
15
29
  export interface TransferListItem {
16
30
  /** Unique identifier */
17
31
  id: string;
@@ -24,6 +38,92 @@ export interface TransferListItem {
24
38
  /** Custom data */
25
39
  data?: Record<string, unknown>;
26
40
  }
41
+ /**
42
+ * Overridable user-facing strings of {@link TransferList} (H-47 label
43
+ * overrides). Pass any subset through the `labels` prop; keys you leave out
44
+ * keep their English defaults. Strings that depend on a panel take its title
45
+ * (`leftTitle` or `rightTitle`) as an argument, so the two panels get distinct
46
+ * names.
47
+ *
48
+ * @since 2.13.0
49
+ */
50
+ export interface TransferListLabels {
51
+ /**
52
+ * Accessible name and tooltip of the icon-only button that moves every
53
+ * enabled item from the left list to the right list.
54
+ * @default 'Move all right'
55
+ */
56
+ moveAllRight: string;
57
+ /**
58
+ * Accessible name and tooltip of the icon-only button that moves the checked
59
+ * items from the left list to the right list.
60
+ * @default 'Move selected right'
61
+ */
62
+ moveSelectedRight: string;
63
+ /**
64
+ * Accessible name and tooltip of the icon-only button that moves the checked
65
+ * items from the right list to the left list.
66
+ * @default 'Move selected left'
67
+ */
68
+ moveSelectedLeft: string;
69
+ /**
70
+ * Accessible name and tooltip of the icon-only button that moves every
71
+ * enabled item from the right list to the left list.
72
+ * @default 'Move all left'
73
+ */
74
+ moveAllLeft: string;
75
+ /**
76
+ * Accessible name of a panel's header select-all checkbox.
77
+ * @default ({ title }) => `Select all ${title}`
78
+ */
79
+ selectAll: (args: {
80
+ title: string;
81
+ }) => string;
82
+ /**
83
+ * Accessible name of a panel's search field (shown when `searchable` is set).
84
+ * The visible placeholder stays `searchPlaceholder`.
85
+ * @default ({ title }) => `Search ${title}`
86
+ */
87
+ search: (args: {
88
+ title: string;
89
+ }) => string;
90
+ /**
91
+ * Accessible name and tooltip of the clear button inside a panel's search
92
+ * field. The button is shown while the field has text.
93
+ * @default ({ title }) => `Clear search ${title}`
94
+ */
95
+ clearSearch: (args: {
96
+ title: string;
97
+ }) => string;
98
+ /**
99
+ * Visible caption under a panel title: how many of the panel's items are
100
+ * checked.
101
+ * @default ({ count, total }) => `${count}/${total} selected`
102
+ */
103
+ selectedCount: (args: {
104
+ count: number;
105
+ total: number;
106
+ }) => string;
107
+ /**
108
+ * Visible message in a panel that has no items.
109
+ * @default 'No items'
110
+ */
111
+ empty: string;
112
+ /**
113
+ * Visible message in a panel whose search matches no items.
114
+ * @default 'No matches found'
115
+ */
116
+ noMatches: string;
117
+ /**
118
+ * Polite live-region announcement made after items move. `title` is the
119
+ * destination panel's title.
120
+ * @default ({ count, title }) => (count === 1 ? `Moved 1 item to ${title}` : `Moved ${count} items to ${title}`)
121
+ */
122
+ moved: (args: {
123
+ count: number;
124
+ title: string;
125
+ }) => string;
126
+ }
27
127
  /**
28
128
  * Props for TransferList component.
29
129
  */
@@ -32,9 +132,15 @@ export interface TransferListProps {
32
132
  leftItems: TransferListItem[];
33
133
  /** Items in the right (selected) list */
34
134
  rightItems: TransferListItem[];
35
- /** Title for left list */
135
+ /**
136
+ * Title for left list. It also names the left list, and is passed to the
137
+ * `selectAll`, `search`, `clearSearch` and `moved` labels.
138
+ */
36
139
  leftTitle?: string;
37
- /** Title for right list */
140
+ /**
141
+ * Title for right list. It also names the right list, and is passed to the
142
+ * `selectAll`, `search`, `clearSearch` and `moved` labels.
143
+ */
38
144
  rightTitle?: string;
39
145
  /** Enable search filtering */
40
146
  searchable?: boolean;
@@ -44,7 +150,11 @@ export interface TransferListProps {
44
150
  height?: number | string;
45
151
  /** Callback when items are transferred */
46
152
  onChange?: (leftItems: TransferListItem[], rightItems: TransferListItem[]) => void;
47
- /** Custom render function for items */
153
+ /**
154
+ * Custom render function for the row content. The row itself is the
155
+ * `role="checkbox"` control, so the rendered content becomes its accessible
156
+ * name: render text, not interactive elements (links, buttons, inputs).
157
+ */
48
158
  renderItem?: (item: TransferListItem, selected: boolean) => React.ReactNode;
49
159
  /** Show "move all" buttons */
50
160
  showMoveAll?: boolean;
@@ -52,10 +162,19 @@ export interface TransferListProps {
52
162
  disabled?: boolean;
53
163
  /** Dense mode */
54
164
  dense?: boolean;
165
+ /**
166
+ * Overrides for the component's user-facing strings: the move buttons' names
167
+ * and tooltips, the select-all, search and clear-search names, the selected
168
+ * count, the empty and no-match messages, and the move announcement. Partial:
169
+ * keys you leave out keep their English defaults (see
170
+ * {@link TransferListLabels}).
171
+ * @since 2.13.0
172
+ */
173
+ labels?: Partial<TransferListLabels>;
55
174
  /** Custom class name */
56
175
  className?: string;
57
176
  /** Custom styles */
58
- sx?: Record<string, unknown>;
177
+ sx?: SxProps<Theme>;
59
178
  }
60
179
  export declare const TransferList: React.ForwardRefExoticComponent<TransferListProps & React.RefAttributes<HTMLDivElement>>;
61
180
  export default TransferList;
@@ -1 +1 @@
1
- {"version":3,"file":"TransferList.d.ts","sourceRoot":"","sources":["../../../src/components/TransferList/TransferList.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgC/B,MAAM,WAAW,gBAAgB;IAC/B,wBAAwB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,yCAAyC;IACzC,SAAS,EAAE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;IACzC,SAAS,EAAE,gBAAgB,EAAE,CAAC;IAC9B,yCAAyC;IACzC,UAAU,EAAE,gBAAgB,EAAE,CAAC;IAC/B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8BAA8B;IAC9B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,8BAA8B;IAC9B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,0BAA0B;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,gBAAgB,EAAE,EAAE,UAAU,EAAE,gBAAgB,EAAE,KAAK,IAAI,CAAC;IACnF;;;;OAIG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,EAAE,QAAQ,EAAE,OAAO,KAAK,KAAK,CAAC,SAAS,CAAC;IAC5E,8BAA8B;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACrC,wBAAwB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB;IACpB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AA4QD,eAAO,MAAM,YAAY,0FA4NxB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,3 +1,3 @@
1
- export { TransferList, type TransferListProps, type TransferListItem } from './TransferList';
1
+ export { TransferList, type TransferListProps, type TransferListItem, type TransferListLabels, } from './TransferList';
2
2
  export { default } from './TransferList';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TransferList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC7F,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TransferList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,GACxB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,5 +1,24 @@
1
1
  /**
2
2
  * @fileoverview Tree view component with expand/collapse, selection, filtering, and optional drag-and-drop.
3
+ *
4
+ * Keyboard model (WAI-ARIA APG Tree View), through the toolkit's `useRovingTabIndex` (registry form):
5
+ * - The tree is one Tab stop. Tab lands on the first visible selected node, otherwise on the first
6
+ * enabled node. After the user moves focus inside the tree, the Tab stop stays on the node they
7
+ * last focused.
8
+ * - ArrowDown / ArrowUp move between visible nodes, and Home / End jump to the first / last one.
9
+ * Disabled nodes are skipped, and focus never leaves this tree.
10
+ * - ArrowRight expands a closed branch, or moves to the first child of an open one.
11
+ * - ArrowLeft collapses an open branch, or moves to the parent node.
12
+ * - Enter or Space selects the focused node.
13
+ * - Typeahead (typing a character to jump to a node) is not implemented.
14
+ * - With `draggable` and `onDrop`, Shift+F10 or the ContextMenu key opens the node's move menu
15
+ * (B-59): Move up, Move down, Move into previous item and Move out to parent, each calling
16
+ * `onDrop` as a drag would. Each row also has a "Node actions" button for pointer users, outside
17
+ * the Tab order. Escape closes the menu and focus returns to the node.
18
+ *
19
+ * The expand/collapse chevrons ("Expand {label}" / "Collapse {label}", with a tooltip) and the
20
+ * checkboxes are pointer affordances outside the Tab order. Clicking either one moves focus to its
21
+ * node, so keyboard navigation continues from there.
3
22
  * @module components/TreeView
4
23
  * @example
5
24
  * ```tsx
@@ -11,16 +30,50 @@
11
30
  * ```
12
31
  */
13
32
  import * as React from 'react';
33
+ import { type SxProps, type Theme } from '@mui/material';
34
+ /**
35
+ * TreeView's overridable strings for the move menu (NAMING.md, "Label overrides (non-AI)"). Pass
36
+ * any subset through the `labels` prop; keys you leave out keep their defaults (B-59).
37
+ *
38
+ * @since 2.13.0
39
+ */
40
+ export interface TreeViewLabels {
41
+ /**
42
+ * Names a row's actions button and is its tooltip.
43
+ * @default ({ label }) => `Actions for ${label}`
44
+ */
45
+ nodeActions: (args: {
46
+ label: string;
47
+ }) => string;
48
+ /** @default 'Move up' */
49
+ moveUp: string;
50
+ /** @default 'Move down' */
51
+ moveDown: string;
52
+ /** @default 'Move into previous item' */
53
+ moveInto: string;
54
+ /** @default 'Move out to parent' */
55
+ moveOut: string;
56
+ /** Announced after a move from the menu. @default ({ label }) => `Moved ${label}` */
57
+ moved: (args: {
58
+ label: string;
59
+ }) => string;
60
+ }
14
61
  export interface TreeNode {
15
62
  /** Unique identifier for the node */
16
63
  id: string;
17
- /** Display label */
64
+ /**
65
+ * Display label. It also names the node's expand/collapse button
66
+ * ("Expand {label}" / "Collapse {label}") and its checkbox.
67
+ */
18
68
  label: string;
19
69
  /** Optional icon element */
20
70
  icon?: React.ReactNode;
21
71
  /** Child nodes */
22
72
  children?: TreeNode[];
23
- /** Whether node is disabled */
73
+ /**
74
+ * Whether node is disabled. A disabled node cannot be selected or expanded, and it is never
75
+ * focused: the arrow keys skip it and it is never the Tab stop.
76
+ */
24
77
  disabled?: boolean;
25
78
  /** Custom data attached to node */
26
79
  data?: Record<string, unknown>;
@@ -31,15 +84,24 @@ export interface TreeNode {
31
84
  export interface TreeViewProps {
32
85
  /** Tree data structure */
33
86
  data: TreeNode[];
34
- /** Currently selected node IDs */
87
+ /**
88
+ * Currently selected node IDs. Before the user moves focus inside the tree, the first visible
89
+ * selected node is the tree's Tab stop; without a visible selected node, the first enabled node is.
90
+ */
35
91
  selected?: string[];
36
92
  /** Currently expanded node IDs */
37
93
  expanded?: string[];
38
94
  /** Enable multi-select mode */
39
95
  multiSelect?: boolean;
40
- /** Show checkboxes for selection */
96
+ /**
97
+ * Show checkboxes for selection. The checkboxes mirror `aria-selected` for pointer users. They
98
+ * are outside the Tab order and are named by the node label.
99
+ */
41
100
  showCheckboxes?: boolean;
42
- /** Enable search/filter */
101
+ /**
102
+ * Enable search/filter. The search field is a `ClearableTextField`. Its clear button is named
103
+ * "Clear search", and clearing it with the keyboard returns focus to the field.
104
+ */
43
105
  searchable?: boolean;
44
106
  /** Search placeholder text */
45
107
  searchPlaceholder?: string;
@@ -63,16 +125,43 @@ export interface TreeViewProps {
63
125
  onNodeClick?: (node: TreeNode) => void;
64
126
  /** Callback when node is double clicked */
65
127
  onNodeDoubleClick?: (node: TreeNode) => void;
66
- /** Custom node render function */
128
+ /**
129
+ * Custom node render function. Its output replaces the default label and is rendered inside a
130
+ * flex wrapper (`display: flex`, `flex: 1`, `minWidth: 0`). The wrapper's text is the treeitem's
131
+ * accessible name, so render the node's label as text there.
132
+ */
67
133
  renderNode?: (node: TreeNode, props: TreeNodeRenderProps) => React.ReactNode;
68
134
  /** Enable drag and drop */
69
135
  draggable?: boolean;
70
- /** Callback when node is dropped */
136
+ /**
137
+ * Callback when node is dropped. With `draggable`, it also enables the move menu (B-59), the
138
+ * keyboard and single-pointer alternative to dragging: Move up calls it with the previous
139
+ * sibling and 'before', Move down with the next sibling and 'after', Move into previous item
140
+ * with the previous sibling and 'inside', and Move out to parent with the parent and 'after'.
141
+ */
71
142
  onDrop?: (draggedId: string, targetId: string, position: 'before' | 'after' | 'inside') => void;
143
+ /**
144
+ * Overrides for the move menu's strings (any subset).
145
+ * @since 2.13.0
146
+ */
147
+ labels?: Partial<TreeViewLabels>;
72
148
  /** Custom class name */
73
149
  className?: string;
74
150
  /** Custom styles */
75
- sx?: Record<string, unknown>;
151
+ sx?: SxProps<Theme>;
152
+ /**
153
+ * Accessible name of the tree (the `role="tree"` element). Describe what the tree contains, for
154
+ * example "Project files". Prefer `aria-labelledby` when a visible heading names the tree.
155
+ * @default 'Tree view' (applied only when `aria-labelledby` is not set)
156
+ * @since 2.13.0
157
+ */
158
+ 'aria-label'?: string;
159
+ /**
160
+ * Id of the element, usually a visible heading, that names the tree. It takes precedence over
161
+ * `aria-label`, and the default name is then not applied.
162
+ * @since 2.13.0
163
+ */
164
+ 'aria-labelledby'?: string;
76
165
  }
77
166
  /**
78
167
  * Props for TreeNodeRender component.
@@ -1 +1 @@
1
- {"version":3,"file":"TreeView.d.ts","sourceRoot":"","sources":["../../../src/components/TreeView/TreeView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA0B/B,MAAM,WAAW,QAAQ;IACvB,qCAAqC;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,4BAA4B;IAC5B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,kBAAkB;IAClB,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC;IACtB,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,0BAA0B;IAC1B,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,kCAAkC;IAClC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,kCAAkC;IAClC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,+BAA+B;IAC/B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,oCAAoC;IACpC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,2BAA2B;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IAC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EAAE,KAAK,EAAE,mBAAmB,KAAK,KAAK,CAAC,SAAS,CAAC;IAC7E,2BAA2B;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,KAAK,IAAI,CAAC;IAChG;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;IACjC,wBAAwB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB;IACpB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,OAAO,CAAC;CACtB;AA2cD,eAAO,MAAM,QAAQ,sFAkXnB,CAAC;AAEH,eAAe,QAAQ,CAAC"}
@@ -1,3 +1,3 @@
1
- export { TreeView, type TreeViewProps, type TreeNode, type TreeNodeRenderProps } from './TreeView';
1
+ export { TreeView, type TreeViewProps, type TreeViewLabels, type TreeNode, type TreeNodeRenderProps } from './TreeView';
2
2
  export { default } from './TreeView';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TreeView/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,KAAK,QAAQ,EAAE,KAAK,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACnG,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TreeView/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,KAAK,cAAc,EAAE,KAAK,QAAQ,EAAE,KAAK,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACxH,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TrinityLoader.d.ts","sourceRoot":"","sources":["../../src/components/TrinityLoader.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAmB,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AAE1E,MAAM,MAAM,iBAAiB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACjE,MAAM,MAAM,oBAAoB,GAC5B,OAAO,GACP,MAAM,GACN,OAAO,GACP,OAAO,GACP,QAAQ,CAAC;AAEb,MAAM,WAAW,kBAAkB;IACjC,sEAAsE;IACtE,IAAI,CAAC,EAAE,iBAAiB,GAAG,MAAM,CAAC;IAClC,wCAAwC;IACxC,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,gDAAgD;IAChD,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,uEAAuE;IACvE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2CAA2C;IAC3C,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAqBD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA2NtD,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"TrinityLoader.d.ts","sourceRoot":"","sources":["../../src/components/TrinityLoader.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAmB,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AAG1E,MAAM,MAAM,iBAAiB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACjE,MAAM,MAAM,oBAAoB,GAC5B,OAAO,GACP,MAAM,GACN,OAAO,GACP,OAAO,GACP,QAAQ,CAAC;AAEb,MAAM,WAAW,kBAAkB;IACjC,sEAAsE;IACtE,IAAI,CAAC,EAAE,iBAAiB,GAAG,MAAM,CAAC;IAClC,wCAAwC;IACxC,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,gDAAgD;IAChD,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,uEAAuE;IACvE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2CAA2C;IAC3C,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAqBD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA2NtD,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,55 @@
1
+ /**
2
+ * @fileoverview Feather-style glyphs that react-feather 2.0.10 does not ship (C-17, C-OD-7).
3
+ * @module components/icons/featherExtensions
4
+ *
5
+ * @internal — not part of the public API; see ADR-02. Icon's Feather map uses them.
6
+ *
7
+ * Every glyph is drawn on Feather's 24px grid with a 2px round stroke, so it
8
+ * sits beside the react-feather glyphs, and takes the same props: `size`,
9
+ * `color` (the stroke, `currentColor` by default) and svg attributes, with the
10
+ * ref on the svg. The I-06 manifest (docs/remediation/I-06-icon-manifest.md)
11
+ * lists each one with its Material pair; their design sign-off is open there.
12
+ *
13
+ * Sources and licenses:
14
+ * - BadgeCheck, History, Pin, PinOff, Sparkles, Rows and (C-28) SignalHigh,
15
+ * SignalMedium and SignalLow: path data after Lucide (https://lucide.dev),
16
+ * ISC License. Copyright (c) for portions of
17
+ * Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT); all
18
+ * other copyright (c) for Lucide are held by Lucide Contributors 2022.
19
+ * Permission to use, copy, modify, and/or distribute this software for any
20
+ * purpose with or without fee is hereby granted, provided that the above
21
+ * copyright notice and this permission notice appear in all copies.
22
+ * - DatabaseSearch: Feather's Database and Search shapes (MIT, Copyright (c)
23
+ * 2013-2017 Cole Bemis), scaled and combined for Trinity.
24
+ * - ThumbsUpFilled and ThumbsDownFilled: react-feather's ThumbsUp and
25
+ * ThumbsDown (MIT) with `fill="currentColor"`.
26
+ */
27
+ import * as React from 'react';
28
+ import { type IconProps } from 'react-feather';
29
+ /** A Feather-style icon component: react-feather's props, the ref on the svg. */
30
+ export type FeatherExtensionIcon = React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>;
31
+ /** 'verified': a badge with a check (Material Verified). */
32
+ export declare const FeatherBadgeCheck: FeatherExtensionIcon;
33
+ /** 'history': a clock with a counter-clockwise arrow (Material History). */
34
+ export declare const FeatherHistory: FeatherExtensionIcon;
35
+ /** 'database-search': a database with a magnifier (Material ManageSearch). */
36
+ export declare const FeatherDatabaseSearch: FeatherExtensionIcon;
37
+ /** 'pin': a push pin (Material PushPin). */
38
+ export declare const FeatherPin: FeatherExtensionIcon;
39
+ /** 'unpin': the push pin struck through, a different shape from 'pin' (ADR-33: not fill alone). */
40
+ export declare const FeatherPinOff: FeatherExtensionIcon;
41
+ /** 'sparkles': the AI sparkle (Material AutoAwesome); replaces the Star stand-in. */
42
+ export declare const FeatherSparkles: FeatherExtensionIcon;
43
+ /** 'view-stream': stacked rows in a frame (Material ViewStream). */
44
+ export declare const FeatherRows: FeatherExtensionIcon;
45
+ /** 'confidence-high': three bars and the base dot (Material SignalCellularAlt). */
46
+ export declare const FeatherSignalHigh: FeatherExtensionIcon;
47
+ /** 'confidence-medium': two bars and the base dot (Material SignalCellularAlt2Bar). */
48
+ export declare const FeatherSignalMedium: FeatherExtensionIcon;
49
+ /** 'confidence-low': one bar and the base dot (Material SignalCellularAlt1Bar). */
50
+ export declare const FeatherSignalLow: FeatherExtensionIcon;
51
+ /** 'thumbs-up-filled': react-feather's ThumbsUp, filled (Material ThumbUp). */
52
+ export declare const FeatherThumbsUpFilled: FeatherExtensionIcon;
53
+ /** 'thumbs-down-filled': react-feather's ThumbsDown, filled (Material ThumbDown). */
54
+ export declare const FeatherThumbsDownFilled: FeatherExtensionIcon;
55
+ //# sourceMappingURL=featherExtensions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"featherExtensions.d.ts","sourceRoot":"","sources":["../../../src/components/icons/featherExtensions.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAwB,KAAK,SAAS,EAAE,MAAM,eAAe,CAAC;AAErE,iFAAiF;AACjF,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,yBAAyB,CAAC,SAAS,GAAG,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC;AA0BnH,4DAA4D;AAC5D,eAAO,MAAM,iBAAiB,EAAE,oBAS/B,CAAC;AAEF,4EAA4E;AAC5E,eAAO,MAAM,cAAc,EAAE,oBAU5B,CAAC;AAEF,8EAA8E;AAC9E,eAAO,MAAM,qBAAqB,EAAE,oBAanC,CAAC;AAEF,4CAA4C;AAC5C,eAAO,MAAM,UAAU,EAAE,oBASxB,CAAC;AAEF,mGAAmG;AACnG,eAAO,MAAM,aAAa,EAAE,oBAW3B,CAAC;AAEF,qFAAqF;AACrF,eAAO,MAAM,eAAe,EAAE,oBAY7B,CAAC;AAEF,oEAAoE;AACpE,eAAO,MAAM,WAAW,EAAE,oBAUzB,CAAC;AASF,mFAAmF;AACnF,eAAO,MAAM,iBAAiB,EAAE,oBAQ/B,CAAC;AAEF,uFAAuF;AACvF,eAAO,MAAM,mBAAmB,EAAE,oBAQjC,CAAC;AAEF,mFAAmF;AACnF,eAAO,MAAM,gBAAgB,EAAE,oBAQ9B,CAAC;AAMF,+EAA+E;AAC/E,eAAO,MAAM,qBAAqB,EAAE,oBAIjC,CAAC;AAEF,qFAAqF;AACrF,eAAO,MAAM,uBAAuB,EAAE,oBAIrC,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @fileoverview Material-style glyphs that @mui/icons-material 9.4.0 does not ship (C-17).
3
+ * @module components/icons/materialExtensions
4
+ *
5
+ * @internal — not part of the public API; see ADR-02. Icon's Material map uses them.
6
+ *
7
+ * Built with MUI's createSvgIcon, so they render and behave like the
8
+ * @mui/icons-material glyphs (SvgIcon, decorative by default, the ref on the
9
+ * svg). The I-06 manifest (docs/remediation/I-06-icon-manifest.md) lists each
10
+ * one; their design sign-off is open there.
11
+ *
12
+ * Sources and licenses: PushPinOff is Material's PushPin path (Apache License
13
+ * 2.0, Google; distributed in @mui/icons-material, MIT) with a diagonal bar
14
+ * added for Trinity.
15
+ */
16
+ /** 'unpin': the push pin struck through, a different shape from 'pin' (ADR-33: not fill alone). */
17
+ export declare const PushPinOff: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
18
+ muiName: string;
19
+ };
20
+ //# sourceMappingURL=materialExtensions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"materialExtensions.d.ts","sourceRoot":"","sources":["../../../src/components/icons/materialExtensions.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,mGAAmG;AACnG,eAAO,MAAM,UAAU;;CAStB,CAAC"}
@@ -14,6 +14,14 @@
14
14
  * <StatusIndicator variant="dot" status="error" />
15
15
  * ```
16
16
  *
17
+ * This file is also the registry of internal names (ADR-02, D-01). Every name it
18
+ * exports, value or type, must stay off every package entry:
19
+ * src/__tests__/internal-api-boundary.test.ts checks the runtime exports and
20
+ * scripts/lib/declaration-boundary.mjs checks the built declarations. Nothing
21
+ * imports this barrel: consumers and sibling blocks import a block by its direct
22
+ * module path, which avoids ESM cycles. Use `export { … } from` lines only (no
23
+ * `export *`), so the checks can read the names.
24
+ *
17
25
  * @internal
18
26
  * @module internal
19
27
  */
@@ -24,4 +32,83 @@ export type { StatusChipProps, InlineStatusProps } from '../StatusIndicator/Chip
24
32
  export { IconIndicator, ShapeIndicator, StatusDot } from '../StatusIndicator/Indicators';
25
33
  export type { IconIndicatorProps, ShapeIndicatorProps, StatusDotProps } from '../StatusIndicator/Indicators';
26
34
  export { CircleShape, SquareShape, DiamondShape, TriangleShape, HexagonShape, ShapeComponents, type ShapeProps, } from '../StatusIndicator/Shapes';
35
+ export { useRootProps, joinIds, isOwnedAttribute, warnOwnedAttributes, OWNED_ATTRIBUTES, __resetOwnedAttributeWarnings, } from '../shared/rootProps';
36
+ export type { TrinityRootProps, UseRootPropsOptions, RootPropsResult, IdList } from '../shared/rootProps';
37
+ export { mergeSx } from '../shared/mergeSx';
38
+ export type { SxPart } from '../shared/mergeSx';
39
+ export { mergeSlotProps } from '../shared/mergeSlotProps';
40
+ export type { SlotOwnProps, MergeSlotPropsOptions } from '../shared/mergeSlotProps';
41
+ export { containerWrapperSx, containerQueryWidth, containerUp, containerDown, type ContainerQuerySize, } from '../shared/containerQueries';
42
+ export { useOverflow } from '../shared/useOverflow';
43
+ export type { OverflowAxis, UseOverflowOptions, UseOverflowResult } from '../shared/useOverflow';
44
+ export { useContainerInlineSize } from '../shared/useContainerInlineSize';
45
+ export type { UseContainerInlineSizeOptions } from '../shared/useContainerInlineSize';
46
+ export { headingComponent, offsetHeadingComponent, type HeadingOffset, type HeadingElement, } from '../shared/headingLevel';
47
+ export { BidiIsolate } from '../shared/bidi';
48
+ export type { BidiIsolateProps } from '../shared/bidi';
49
+ export { isolateText, BIDI_ISOLATE_CONTROLS } from '../shared/bidiText';
50
+ export type { BidiDirection } from '../shared/bidiText';
51
+ export { occurrenceKeys } from '../shared/occurrenceKeys';
52
+ export { getInitials } from '../shared/getInitials';
53
+ export { getResizeKeyTarget, RESIZE_KEY_STEP, RESIZE_KEY_LARGE_STEP } from '../shared/resizeKeyboard';
54
+ export type { ResizeOrientation, ResizeGrowDirection, ResizeKeyOptions } from '../shared/resizeKeyboard';
55
+ export { toMs, useMotionTimeout, reducedMotion, keyframes } from '../shared/motion';
56
+ export { themeTransitions, reducedMotionBackstop, ESSENTIAL_MOTION_CLASS, REDUCED_MOTION_DURATION, } from '../shared/motion';
57
+ export { decodeEntities, isSafeHref, isSafeSrc, isRemoteSrc, warnUnsafeUrl, __resetUnsafeUrlWarnings, sanitizeInlineStyle, tokenizeHtml, renderSafeHtml, DROP_WITH_CONTENT_TAGS, DEFAULT_ALLOWED_TAGS, } from '../shared/safeContent';
58
+ export type { SafeStyleMap, SafeHtmlTag, RenderSafeHtmlOptions } from '../shared/safeContent';
59
+ export { isRtl, inlineSign, rotateInline, translateInlineStart } from '../shared/direction';
60
+ export type { DirectionSource } from '../shared/direction';
61
+ export { useCopyAction } from '../shared/useCopyAction';
62
+ export type { UseCopyActionOptions, UseCopyActionResult, CopyActionStatus } from '../shared/useCopyAction';
63
+ export { FocusTrap, TABBABLE_SELECTOR, firstTabbable } from '../shared/focusTrap';
64
+ export type { FocusTrapProps } from '../shared/focusTrap';
65
+ export { MetaChip } from '../MetaChip/MetaChip';
66
+ export type { MetaChipProps, MetaChipOwnProps, MetaChipTone, MetaChipColors } from '../MetaChip/MetaChip';
67
+ export { KeyValueList } from '../KeyValueList/KeyValueList';
68
+ export type { KeyValueListProps, KeyValueListOwnProps, KeyValueListItem, KeyValueListLayout } from '../KeyValueList/KeyValueList';
69
+ export { CopyButton } from '../CopyButton/CopyButton';
70
+ export type { CopyButtonProps, CopyButtonOwnProps, CopyButtonSource, CopyButtonLabels } from '../CopyButton/CopyButton';
71
+ export { CodeBlock } from '../CodeBlock/CodeBlock';
72
+ export type { CodeBlockProps, CodeBlockOwnProps, CodeBlockContent, CodeBlockLabels } from '../CodeBlock/CodeBlock';
73
+ export { Disclosure } from '../Disclosure/Disclosure';
74
+ export type { DisclosureProps, DisclosureOwnProps } from '../Disclosure/Disclosure';
75
+ export { ChoiceChips } from '../ChoiceChips/ChoiceChips';
76
+ export type { ChoiceChipsProps, ChoiceChipsBaseProps, ChoiceChipsSingleProps, ChoiceChipsMultipleProps, ChoiceChipsOption, ChoiceChipsActions } from '../ChoiceChips/ChoiceChips';
77
+ export { InlineEditableText } from '../InlineEditableText/InlineEditableText';
78
+ export type { InlineEditableTextProps, InlineEditableTextBaseProps, InlineEditableTextButtonProps, InlineEditableTextExternalProps, InlineEditableTextLabels, InlineEditableTextEditingReason } from '../InlineEditableText/InlineEditableText';
79
+ export { StepList } from '../StepList/StepList';
80
+ export type { StepListItem, StepListOwnProps, StepListProps, StepListSlot } from '../StepList/StepList';
81
+ export { StepStatusMarker } from '../StepList/StepStatusMarker';
82
+ export type { StepStatusMarkerProps } from '../StepList/StepStatusMarker';
83
+ export { STEP_STATUS_CATALOG, DEFAULT_STEP_STATUS_LABELS } from '../StepList/stepStatus';
84
+ export type { StepListStatus } from '../StepList/stepStatus';
85
+ export { DetailsPopover, useDetailsPopover } from '../DetailsPopover/DetailsPopover';
86
+ export type { DetailsPopoverProps, DetailsPopoverOwnProps, DetailsPopoverName, DetailsPopoverChangeReason, UseDetailsPopoverOptions, UseDetailsPopoverResult, } from '../DetailsPopover/DetailsPopover';
87
+ export { DeprecationSuppressionContext, useDeprecationWarning, warnOnce, warnDeprecated, __resetDevWarnings, } from '../shared/warnDeprecated';
88
+ export { useFocusOnReplace } from '../../hooks/useFocusOnReplace';
89
+ export type { FocusOnReplaceTarget, UseFocusOnReplaceOptions, UseFocusOnReplaceResult } from '../../hooks/useFocusOnReplace';
90
+ export { createStorageStore } from '../../hooks/storageStore';
91
+ export type { StorageArea, StorageStore } from '../../hooks/storageStore';
92
+ export { primaryActionContainerSx, primaryActionOverlaySx, primaryActionContentSx, PRIMARY_ACTION_INTERACTIVE_SELECTOR, } from '../shared/primaryAction';
93
+ export { AsyncOutcomeAlert } from '../shared/AsyncOutcomeAlert';
94
+ export type { AsyncOutcomeAlertProps } from '../shared/AsyncOutcomeAlert';
95
+ export { targetSizeHitAreaSx, TARGET_SIZE_FLOOR_PX } from '../shared/targetSize';
96
+ export { InThreadContext } from '../AI/InThreadContext';
97
+ export { MessageActionButton } from '../AI/MessageActionButton';
98
+ export type { BuiltInActionSpec } from '../AI/MessageActionButton';
99
+ export { getResponsePlainText } from '../AI/utils/responseText';
100
+ export { AI_AVATAR_SIZE_PX } from '../AI/AIAvatar';
101
+ export { getMessageContentInset } from '../AI/AIMessage';
102
+ export { AIBlockRendererProvider, useBlockRenderer, useBlockRendererMap, type AIBlockRendererMap, type AIBlockRendererProviderProps, } from '../AI/blockRendererContext';
103
+ export { BlockErrorBoundary, BlockUnavailable, type BlockErrorBoundaryProps, type BlockErrorContext, type BlockUnavailableProps, } from '../AI/BlockErrorBoundary';
104
+ export { queryBlockRenderer, clarificationBlockRenderer } from '../AI/moleculeBlockRenderers';
105
+ export { useBlockReadyAnnouncement, BlockReadyAnnouncementSuppressed, type UseBlockReadyAnnouncementOptions, } from '../AI/utils/blockReady';
106
+ export { getPendingRequiredClarification, useRequiredClarificationGate, type BlockGateMessage, type MessageBlockEventHandler, type RequiredClarificationGate, } from '../AI/utils/blocks';
107
+ export { planReviewBlockRenderer } from '../AI/planReviewBlockRenderer';
108
+ export { createStringsContext, mergeStrings, contentHash, useIdentityChurnWarning, type DeepPartial, type StringsProviderProps, type StringsContextKit, type StringsContextOptions, } from '../shared/createStringsContext';
109
+ export { DEFAULT_AI_STRINGS } from '../AI/strings/defaults';
110
+ export { AIStringsKit, AIThresholdsContext, AILocaleContext, AITimeZoneContext, AIInteractionContext, stripInteractionContent, type AIInteractionContextValue, } from '../AI/AIConfigContext';
111
+ export { parseMarkdown, parseInlineMarkdown, type MarkdownElementType, type ParsedElement, type InlinePart, LEGACY_INLINE_SYNTAX, type InlineSyntax, type InlineScanOptions, DEFAULT_INLINE_SYNTAX, CITATION_INLINE_SYNTAX, TRAILING_PARTIAL_CITATION, splitCitations, citationsToPlainText, type CitationRun, type SplitCitationsOptions, type CitationPlainTextOptions, } from '../AI/AITextBlock.parser';
112
+ export { AIResponseSourcesContext, AIResponseSourcesProvider, useResponseSources, useIsQueryRegistered, indexResponseSources, createQueryRegistry, cellKey, pointKey, type AIResponseSourcesProviderProps, type ResponseSourcesContextValue, type ResponseSourcesIndex, type QueryRegistry, type QueryRegistration, } from '../AI/AIResponseSourcesContext';
113
+ export { HostedFeedbackContext, useHostedFeedback } from '../AI/AIFeedbackHostContext';
27
114
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/internal/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAQH,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjF,YAAY,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAGhG,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACnE,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAGlF,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AACzF,YAAY,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAG7G,OAAO,EACL,WAAW,EACX,WAAW,EACX,YA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,EACZ,WAAW,EACX,uBAAuB,EACvB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,GAC3B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,oBAAoB,EACpB,uBAAuB,EACvB,KAAK,yBAAyB,GAC/B,MAAM,uBAAuB,CAAC;AAU/B,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,UAAU,EAEf,oBAAoB,EACpB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EAEtB,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,cAAc,EACd,oBAAoB,EACpB,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,GAC9B,MAAM,0BAA0B,CAAC;AAIlC,OAAO,EACL,wBAAwB,EACxB,yBAAyB,EACzB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,OAAO,EACP,QAAQ,EACR,KAAK,8BAA8B,EACnC,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,iBAAiB,GACvB,MAAM,gCAAgC,CAAC;AAIxC,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * @fileoverview A Menu `list` slot that renders a heading above the list instead of inside it.
3
+ * @module components/navigation/MenuListWithHeading
4
+ *
5
+ * A heading placed as a child of a MUI Menu ends up inside the `role="menu"` or
6
+ * `role="listbox"` element, where only items may live (axe `aria-required-children`, B-37).
7
+ * Passing this component as `slots.list` keeps MUI Menu (its focus management, keyboard model
8
+ * and `MuiMenu-paper` classes) and renders the heading before the list, naming the list through
9
+ * `aria-labelledby` with an id from `useId`:
10
+ *
11
+ * ```tsx
12
+ * <Menu
13
+ * slots={{ list: MenuListWithHeading }}
14
+ * slotProps={{ list: { heading: 'Switch client', role: 'listbox' } as MenuListWithHeadingSlotProps }}
15
+ * >
16
+ * ```
17
+ */
18
+ import * as React from 'react';
19
+ import { type MenuListProps, type SxProps, type Theme } from '@mui/material';
20
+ /** The slot props MenuListWithHeading reads on top of MenuList's. */
21
+ export interface MenuListWithHeadingSlotProps extends Partial<MenuListProps> {
22
+ /** Shown above the list, outside it; it names the list. */
23
+ heading: React.ReactNode;
24
+ /** Styles of the heading's box. @default { px: 2, pt: 2.5, pb: 1.5 } */
25
+ headingSx?: SxProps<Theme>;
26
+ }
27
+ interface MenuListWithHeadingProps extends MenuListProps, Omit<MenuListWithHeadingSlotProps, keyof MenuListProps> {
28
+ /** Passed by MUI's slot machinery; not a DOM attribute. */
29
+ ownerState?: unknown;
30
+ }
31
+ export declare const MenuListWithHeading: React.ForwardRefExoticComponent<Omit<MenuListWithHeadingProps, "ref"> & React.RefAttributes<HTMLUListElement>>;
32
+ export {};
33
+ //# sourceMappingURL=MenuListWithHeading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuListWithHeading.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/MenuListWithHeading.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAiB,KAAK,aAAa,EAAE,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AAE5F,qEAAqE;AACrE,MAAM,WAAW,4BAA6B,SAAQ,OAAO,CAAC,aAAa,CAAC;IAC1E,2DAA2D;IAC3D,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,wEAAwE;IACxE,SAAS,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CAC5B;AAED,UAAU,wBAAyB,SAAQ,aAAa,EAAE,IAAI,CAAC,4BAA4B,EAAE,MAAM,aAAa,CAAC;IAC/G,2DAA2D;IAC3D,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAQD,eAAO,MAAM,mBAAmB,gHAiB/B,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @fileoverview The client picker's built-in strings, shared by ClientMenu, TopNavHeader and
3
+ * TopNavWithSidebar (B-37).
4
+ * @module components/navigation/clientSelectorLabels
5
+ */
6
+ /**
7
+ * The default name of a client picker's trigger: the action first, then the current client, in
8
+ * sentence case (MICROCOPY: no "click").
9
+ */
10
+ export declare const defaultClientSelectorLabel: (client: string) => string;
11
+ /** The client list's heading, which also names the listbox. */
12
+ export declare const CLIENT_LIST_HEADING = "Switch client";
13
+ //# sourceMappingURL=clientSelectorLabels.d.ts.map