@appcircle/mosaic 0.0.0-stage → 1.0.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 (357) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +90 -2
  3. package/dist/blocks/AISummary/AISummary.d.ts +92 -0
  4. package/dist/blocks/AISummary/AISummary.d.ts.map +1 -0
  5. package/dist/blocks/AISummary/index.d.ts +3 -0
  6. package/dist/blocks/AISummary/index.d.ts.map +1 -0
  7. package/dist/blocks/ActiveProcessPanel/ActiveProcessPanel.d.ts +95 -0
  8. package/dist/blocks/ActiveProcessPanel/ActiveProcessPanel.d.ts.map +1 -0
  9. package/dist/blocks/ActiveProcessPanel/index.d.ts +3 -0
  10. package/dist/blocks/ActiveProcessPanel/index.d.ts.map +1 -0
  11. package/dist/blocks/AppcircleLayout/AppcircleLayout.d.ts +52 -0
  12. package/dist/blocks/AppcircleLayout/AppcircleLayout.d.ts.map +1 -0
  13. package/dist/blocks/AppcircleLayout/index.d.ts +3 -0
  14. package/dist/blocks/AppcircleLayout/index.d.ts.map +1 -0
  15. package/dist/blocks/BuildBranchList/BuildBranchList.d.ts +169 -0
  16. package/dist/blocks/BuildBranchList/BuildBranchList.d.ts.map +1 -0
  17. package/dist/blocks/BuildBranchList/index.d.ts +3 -0
  18. package/dist/blocks/BuildBranchList/index.d.ts.map +1 -0
  19. package/dist/blocks/BuildProfileHeader/BuildProfileHeader.d.ts +175 -0
  20. package/dist/blocks/BuildProfileHeader/BuildProfileHeader.d.ts.map +1 -0
  21. package/dist/blocks/BuildProfileHeader/index.d.ts +3 -0
  22. package/dist/blocks/BuildProfileHeader/index.d.ts.map +1 -0
  23. package/dist/blocks/BuildTriggerCard/BuildTriggerCard.d.ts +64 -0
  24. package/dist/blocks/BuildTriggerCard/BuildTriggerCard.d.ts.map +1 -0
  25. package/dist/blocks/BuildTriggerCard/index.d.ts +3 -0
  26. package/dist/blocks/BuildTriggerCard/index.d.ts.map +1 -0
  27. package/dist/blocks/BuildVariableGroupsLayout/BuildVariableGroupsLayout.d.ts +81 -0
  28. package/dist/blocks/BuildVariableGroupsLayout/BuildVariableGroupsLayout.d.ts.map +1 -0
  29. package/dist/blocks/BuildVariableGroupsLayout/index.d.ts +3 -0
  30. package/dist/blocks/BuildVariableGroupsLayout/index.d.ts.map +1 -0
  31. package/dist/blocks/DashboardSummary/DashboardSummary.d.ts +82 -0
  32. package/dist/blocks/DashboardSummary/DashboardSummary.d.ts.map +1 -0
  33. package/dist/blocks/DashboardSummary/index.d.ts +3 -0
  34. package/dist/blocks/DashboardSummary/index.d.ts.map +1 -0
  35. package/dist/blocks/Directory/Directory.d.ts +53 -0
  36. package/dist/blocks/Directory/Directory.d.ts.map +1 -0
  37. package/dist/blocks/Directory/index.d.ts +3 -0
  38. package/dist/blocks/Directory/index.d.ts.map +1 -0
  39. package/dist/blocks/ManagedListPanel/ManagedListPanel.d.ts +283 -0
  40. package/dist/blocks/ManagedListPanel/ManagedListPanel.d.ts.map +1 -0
  41. package/dist/blocks/ManagedListPanel/index.d.ts +3 -0
  42. package/dist/blocks/ManagedListPanel/index.d.ts.map +1 -0
  43. package/dist/blocks/NotificationCenter/NotificationCenter.d.ts +98 -0
  44. package/dist/blocks/NotificationCenter/NotificationCenter.d.ts.map +1 -0
  45. package/dist/blocks/NotificationCenter/index.d.ts +3 -0
  46. package/dist/blocks/NotificationCenter/index.d.ts.map +1 -0
  47. package/dist/blocks/Onboarding/Onboarding.d.ts +82 -0
  48. package/dist/blocks/Onboarding/Onboarding.d.ts.map +1 -0
  49. package/dist/blocks/Onboarding/index.d.ts +3 -0
  50. package/dist/blocks/Onboarding/index.d.ts.map +1 -0
  51. package/dist/blocks/OrganizationSwitcher/OrganizationSwitcher.d.ts +83 -0
  52. package/dist/blocks/OrganizationSwitcher/OrganizationSwitcher.d.ts.map +1 -0
  53. package/dist/blocks/OrganizationSwitcher/index.d.ts +3 -0
  54. package/dist/blocks/OrganizationSwitcher/index.d.ts.map +1 -0
  55. package/dist/blocks/PlanCard/PlanCard.d.ts +69 -0
  56. package/dist/blocks/PlanCard/PlanCard.d.ts.map +1 -0
  57. package/dist/blocks/PlanCard/index.d.ts +3 -0
  58. package/dist/blocks/PlanCard/index.d.ts.map +1 -0
  59. package/dist/blocks/ProfileCard/ProfileCard.d.ts +211 -0
  60. package/dist/blocks/ProfileCard/ProfileCard.d.ts.map +1 -0
  61. package/dist/blocks/ProfileCard/ProfileMark.d.ts +36 -0
  62. package/dist/blocks/ProfileCard/ProfileMark.d.ts.map +1 -0
  63. package/dist/blocks/ProfileCard/index.d.ts +5 -0
  64. package/dist/blocks/ProfileCard/index.d.ts.map +1 -0
  65. package/dist/blocks/ReportFilterBar/ReportFilterBar.d.ts +255 -0
  66. package/dist/blocks/ReportFilterBar/ReportFilterBar.d.ts.map +1 -0
  67. package/dist/blocks/ReportFilterBar/index.d.ts +3 -0
  68. package/dist/blocks/ReportFilterBar/index.d.ts.map +1 -0
  69. package/dist/blocks/RestrictedArea/RestrictedArea.d.ts +57 -0
  70. package/dist/blocks/RestrictedArea/RestrictedArea.d.ts.map +1 -0
  71. package/dist/blocks/RestrictedArea/index.d.ts +3 -0
  72. package/dist/blocks/RestrictedArea/index.d.ts.map +1 -0
  73. package/dist/blocks/SearchLayout/SearchLayout.d.ts +118 -0
  74. package/dist/blocks/SearchLayout/SearchLayout.d.ts.map +1 -0
  75. package/dist/blocks/SearchLayout/index.d.ts +3 -0
  76. package/dist/blocks/SearchLayout/index.d.ts.map +1 -0
  77. package/dist/blocks/UpgradeDialog/UpgradeDialog.d.ts +46 -0
  78. package/dist/blocks/UpgradeDialog/UpgradeDialog.d.ts.map +1 -0
  79. package/dist/blocks/UpgradeDialog/index.d.ts +3 -0
  80. package/dist/blocks/UpgradeDialog/index.d.ts.map +1 -0
  81. package/dist/blocks/VersionIdentity/VersionIdentity.d.ts +29 -0
  82. package/dist/blocks/VersionIdentity/VersionIdentity.d.ts.map +1 -0
  83. package/dist/blocks/VersionIdentity/index.d.ts +3 -0
  84. package/dist/blocks/VersionIdentity/index.d.ts.map +1 -0
  85. package/dist/components/Alert/Alert.d.ts +87 -0
  86. package/dist/components/Alert/Alert.d.ts.map +1 -0
  87. package/dist/components/Alert/index.d.ts +3 -0
  88. package/dist/components/Alert/index.d.ts.map +1 -0
  89. package/dist/components/Avatar/Avatar.d.ts +37 -0
  90. package/dist/components/Avatar/Avatar.d.ts.map +1 -0
  91. package/dist/components/Avatar/index.d.ts +3 -0
  92. package/dist/components/Avatar/index.d.ts.map +1 -0
  93. package/dist/components/Badge/Badge.d.ts +55 -0
  94. package/dist/components/Badge/Badge.d.ts.map +1 -0
  95. package/dist/components/Badge/index.d.ts +3 -0
  96. package/dist/components/Badge/index.d.ts.map +1 -0
  97. package/dist/components/Button/Button.d.ts +191 -0
  98. package/dist/components/Button/Button.d.ts.map +1 -0
  99. package/dist/components/Button/CopyButton.d.ts +43 -0
  100. package/dist/components/Button/CopyButton.d.ts.map +1 -0
  101. package/dist/components/Button/IconButton.d.ts +70 -0
  102. package/dist/components/Button/IconButton.d.ts.map +1 -0
  103. package/dist/components/Button/index.d.ts +7 -0
  104. package/dist/components/Button/index.d.ts.map +1 -0
  105. package/dist/components/Calendar/Calendar.d.ts +99 -0
  106. package/dist/components/Calendar/Calendar.d.ts.map +1 -0
  107. package/dist/components/Calendar/index.d.ts +3 -0
  108. package/dist/components/Calendar/index.d.ts.map +1 -0
  109. package/dist/components/Card/Card.d.ts +85 -0
  110. package/dist/components/Card/Card.d.ts.map +1 -0
  111. package/dist/components/Card/index.d.ts +3 -0
  112. package/dist/components/Card/index.d.ts.map +1 -0
  113. package/dist/components/CardGrid/CardGrid.d.ts +28 -0
  114. package/dist/components/CardGrid/CardGrid.d.ts.map +1 -0
  115. package/dist/components/CardGrid/index.d.ts +3 -0
  116. package/dist/components/CardGrid/index.d.ts.map +1 -0
  117. package/dist/components/Checkbox/Checkbox.d.ts +64 -0
  118. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
  119. package/dist/components/Checkbox/index.d.ts +3 -0
  120. package/dist/components/Checkbox/index.d.ts.map +1 -0
  121. package/dist/components/Collapsible/Collapsible.d.ts +34 -0
  122. package/dist/components/Collapsible/Collapsible.d.ts.map +1 -0
  123. package/dist/components/Collapsible/index.d.ts +3 -0
  124. package/dist/components/Collapsible/index.d.ts.map +1 -0
  125. package/dist/components/Combobox/Combobox.d.ts +126 -0
  126. package/dist/components/Combobox/Combobox.d.ts.map +1 -0
  127. package/dist/components/Combobox/MultiSelect.d.ts +81 -0
  128. package/dist/components/Combobox/MultiSelect.d.ts.map +1 -0
  129. package/dist/components/Combobox/index.d.ts +5 -0
  130. package/dist/components/Combobox/index.d.ts.map +1 -0
  131. package/dist/components/Combobox/keyboard.d.ts +24 -0
  132. package/dist/components/Combobox/keyboard.d.ts.map +1 -0
  133. package/dist/components/Command/Command.d.ts +160 -0
  134. package/dist/components/Command/Command.d.ts.map +1 -0
  135. package/dist/components/Command/CommandDialog.d.ts +25 -0
  136. package/dist/components/Command/CommandDialog.d.ts.map +1 -0
  137. package/dist/components/Command/index.d.ts +5 -0
  138. package/dist/components/Command/index.d.ts.map +1 -0
  139. package/dist/components/CommandFilter/CommandFilter.d.ts +114 -0
  140. package/dist/components/CommandFilter/CommandFilter.d.ts.map +1 -0
  141. package/dist/components/CommandFilter/FilterChip.d.ts +66 -0
  142. package/dist/components/CommandFilter/FilterChip.d.ts.map +1 -0
  143. package/dist/components/CommandFilter/ValueChip.d.ts +31 -0
  144. package/dist/components/CommandFilter/ValueChip.d.ts.map +1 -0
  145. package/dist/components/CommandFilter/index.d.ts +7 -0
  146. package/dist/components/CommandFilter/index.d.ts.map +1 -0
  147. package/dist/components/CommandSort/CommandSort.d.ts +66 -0
  148. package/dist/components/CommandSort/CommandSort.d.ts.map +1 -0
  149. package/dist/components/CommandSort/index.d.ts +3 -0
  150. package/dist/components/CommandSort/index.d.ts.map +1 -0
  151. package/dist/components/DataTable/DataTable.d.ts +326 -0
  152. package/dist/components/DataTable/DataTable.d.ts.map +1 -0
  153. package/dist/components/DataTable/RowActions.d.ts +30 -0
  154. package/dist/components/DataTable/RowActions.d.ts.map +1 -0
  155. package/dist/components/DataTable/index.d.ts +5 -0
  156. package/dist/components/DataTable/index.d.ts.map +1 -0
  157. package/dist/components/Dialog/AlertDialog.d.ts +117 -0
  158. package/dist/components/Dialog/AlertDialog.d.ts.map +1 -0
  159. package/dist/components/Dialog/Dialog.d.ts +107 -0
  160. package/dist/components/Dialog/Dialog.d.ts.map +1 -0
  161. package/dist/components/Dialog/index.d.ts +5 -0
  162. package/dist/components/Dialog/index.d.ts.map +1 -0
  163. package/dist/components/DonutChart/DonutChart.d.ts +51 -0
  164. package/dist/components/DonutChart/DonutChart.d.ts.map +1 -0
  165. package/dist/components/DonutChart/index.d.ts +3 -0
  166. package/dist/components/DonutChart/index.d.ts.map +1 -0
  167. package/dist/components/Dot/Dot.d.ts +37 -0
  168. package/dist/components/Dot/Dot.d.ts.map +1 -0
  169. package/dist/components/Dot/index.d.ts +3 -0
  170. package/dist/components/Dot/index.d.ts.map +1 -0
  171. package/dist/components/DropdownMenu/DropdownMenu.d.ts +119 -0
  172. package/dist/components/DropdownMenu/DropdownMenu.d.ts.map +1 -0
  173. package/dist/components/DropdownMenu/index.d.ts +3 -0
  174. package/dist/components/DropdownMenu/index.d.ts.map +1 -0
  175. package/dist/components/Empty/Empty.d.ts +76 -0
  176. package/dist/components/Empty/Empty.d.ts.map +1 -0
  177. package/dist/components/Empty/index.d.ts +3 -0
  178. package/dist/components/Empty/index.d.ts.map +1 -0
  179. package/dist/components/Field/Field.d.ts +143 -0
  180. package/dist/components/Field/Field.d.ts.map +1 -0
  181. package/dist/components/Field/index.d.ts +3 -0
  182. package/dist/components/Field/index.d.ts.map +1 -0
  183. package/dist/components/FileUpload/FileUpload.d.ts +102 -0
  184. package/dist/components/FileUpload/FileUpload.d.ts.map +1 -0
  185. package/dist/components/FileUpload/index.d.ts +3 -0
  186. package/dist/components/FileUpload/index.d.ts.map +1 -0
  187. package/dist/components/Gallery/Gallery.d.ts +97 -0
  188. package/dist/components/Gallery/Gallery.d.ts.map +1 -0
  189. package/dist/components/Gallery/index.d.ts +3 -0
  190. package/dist/components/Gallery/index.d.ts.map +1 -0
  191. package/dist/components/HoverCard/HoverCard.d.ts +40 -0
  192. package/dist/components/HoverCard/HoverCard.d.ts.map +1 -0
  193. package/dist/components/HoverCard/index.d.ts +3 -0
  194. package/dist/components/HoverCard/index.d.ts.map +1 -0
  195. package/dist/components/Icon/Icon.d.ts +70 -0
  196. package/dist/components/Icon/Icon.d.ts.map +1 -0
  197. package/dist/components/Icon/index.d.ts +3 -0
  198. package/dist/components/Icon/index.d.ts.map +1 -0
  199. package/dist/components/InfoBox/InfoBox.d.ts +58 -0
  200. package/dist/components/InfoBox/InfoBox.d.ts.map +1 -0
  201. package/dist/components/InfoBox/index.d.ts +3 -0
  202. package/dist/components/InfoBox/index.d.ts.map +1 -0
  203. package/dist/components/Input/Input.d.ts +203 -0
  204. package/dist/components/Input/Input.d.ts.map +1 -0
  205. package/dist/components/Input/index.d.ts +3 -0
  206. package/dist/components/Input/index.d.ts.map +1 -0
  207. package/dist/components/Item/Item.d.ts +125 -0
  208. package/dist/components/Item/Item.d.ts.map +1 -0
  209. package/dist/components/Item/index.d.ts +3 -0
  210. package/dist/components/Item/index.d.ts.map +1 -0
  211. package/dist/components/Link/Link.d.ts +50 -0
  212. package/dist/components/Link/Link.d.ts.map +1 -0
  213. package/dist/components/Link/index.d.ts +3 -0
  214. package/dist/components/Link/index.d.ts.map +1 -0
  215. package/dist/components/ListField/ListField.d.ts +80 -0
  216. package/dist/components/ListField/ListField.d.ts.map +1 -0
  217. package/dist/components/ListField/index.d.ts +3 -0
  218. package/dist/components/ListField/index.d.ts.map +1 -0
  219. package/dist/components/PageHeader/PageHeader.d.ts +58 -0
  220. package/dist/components/PageHeader/PageHeader.d.ts.map +1 -0
  221. package/dist/components/PageHeader/index.d.ts +3 -0
  222. package/dist/components/PageHeader/index.d.ts.map +1 -0
  223. package/dist/components/Pagination/Pagination.d.ts +60 -0
  224. package/dist/components/Pagination/Pagination.d.ts.map +1 -0
  225. package/dist/components/Pagination/index.d.ts +3 -0
  226. package/dist/components/Pagination/index.d.ts.map +1 -0
  227. package/dist/components/Popover/Popover.d.ts +64 -0
  228. package/dist/components/Popover/Popover.d.ts.map +1 -0
  229. package/dist/components/Popover/index.d.ts +3 -0
  230. package/dist/components/Popover/index.d.ts.map +1 -0
  231. package/dist/components/Progress/Progress.d.ts +43 -0
  232. package/dist/components/Progress/Progress.d.ts.map +1 -0
  233. package/dist/components/Progress/index.d.ts +3 -0
  234. package/dist/components/Progress/index.d.ts.map +1 -0
  235. package/dist/components/ProgressBand/ProgressBand.d.ts +94 -0
  236. package/dist/components/ProgressBand/ProgressBand.d.ts.map +1 -0
  237. package/dist/components/ProgressBand/index.d.ts +3 -0
  238. package/dist/components/ProgressBand/index.d.ts.map +1 -0
  239. package/dist/components/Radio/Radio.d.ts +66 -0
  240. package/dist/components/Radio/Radio.d.ts.map +1 -0
  241. package/dist/components/Radio/index.d.ts +3 -0
  242. package/dist/components/Radio/index.d.ts.map +1 -0
  243. package/dist/components/SearchInput/SearchInput.d.ts +36 -0
  244. package/dist/components/SearchInput/SearchInput.d.ts.map +1 -0
  245. package/dist/components/SearchInput/index.d.ts +3 -0
  246. package/dist/components/SearchInput/index.d.ts.map +1 -0
  247. package/dist/components/Select/Select.d.ts +44 -0
  248. package/dist/components/Select/Select.d.ts.map +1 -0
  249. package/dist/components/Select/index.d.ts +3 -0
  250. package/dist/components/Select/index.d.ts.map +1 -0
  251. package/dist/components/Separator/Separator.d.ts +28 -0
  252. package/dist/components/Separator/Separator.d.ts.map +1 -0
  253. package/dist/components/Separator/index.d.ts +3 -0
  254. package/dist/components/Separator/index.d.ts.map +1 -0
  255. package/dist/components/Sheet/Sheet.d.ts +103 -0
  256. package/dist/components/Sheet/Sheet.d.ts.map +1 -0
  257. package/dist/components/Sheet/index.d.ts +3 -0
  258. package/dist/components/Sheet/index.d.ts.map +1 -0
  259. package/dist/components/Sidebar/Sidebar.d.ts +329 -0
  260. package/dist/components/Sidebar/Sidebar.d.ts.map +1 -0
  261. package/dist/components/Sidebar/index.d.ts +3 -0
  262. package/dist/components/Sidebar/index.d.ts.map +1 -0
  263. package/dist/components/SimpleListItem/SimpleListItem.d.ts +126 -0
  264. package/dist/components/SimpleListItem/SimpleListItem.d.ts.map +1 -0
  265. package/dist/components/SimpleListItem/index.d.ts +3 -0
  266. package/dist/components/SimpleListItem/index.d.ts.map +1 -0
  267. package/dist/components/Skeleton/Skeleton.d.ts +26 -0
  268. package/dist/components/Skeleton/Skeleton.d.ts.map +1 -0
  269. package/dist/components/Skeleton/index.d.ts +3 -0
  270. package/dist/components/Skeleton/index.d.ts.map +1 -0
  271. package/dist/components/Slider/Slider.d.ts +42 -0
  272. package/dist/components/Slider/Slider.d.ts.map +1 -0
  273. package/dist/components/Slider/index.d.ts +3 -0
  274. package/dist/components/Slider/index.d.ts.map +1 -0
  275. package/dist/components/Spinner/Spinner.d.ts +21 -0
  276. package/dist/components/Spinner/Spinner.d.ts.map +1 -0
  277. package/dist/components/Spinner/index.d.ts +3 -0
  278. package/dist/components/Spinner/index.d.ts.map +1 -0
  279. package/dist/components/Stack/Stack.d.ts +51 -0
  280. package/dist/components/Stack/Stack.d.ts.map +1 -0
  281. package/dist/components/Stack/index.d.ts +3 -0
  282. package/dist/components/Stack/index.d.ts.map +1 -0
  283. package/dist/components/Stat/Stat.d.ts +82 -0
  284. package/dist/components/Stat/Stat.d.ts.map +1 -0
  285. package/dist/components/Stat/index.d.ts +3 -0
  286. package/dist/components/Stat/index.d.ts.map +1 -0
  287. package/dist/components/StatusHistory/StatusHistory.d.ts +67 -0
  288. package/dist/components/StatusHistory/StatusHistory.d.ts.map +1 -0
  289. package/dist/components/StatusHistory/index.d.ts +3 -0
  290. package/dist/components/StatusHistory/index.d.ts.map +1 -0
  291. package/dist/components/StepCard/StepCard.d.ts +80 -0
  292. package/dist/components/StepCard/StepCard.d.ts.map +1 -0
  293. package/dist/components/StepCard/index.d.ts +3 -0
  294. package/dist/components/StepCard/index.d.ts.map +1 -0
  295. package/dist/components/StepList/StepList.d.ts +68 -0
  296. package/dist/components/StepList/StepList.d.ts.map +1 -0
  297. package/dist/components/StepList/index.d.ts +3 -0
  298. package/dist/components/StepList/index.d.ts.map +1 -0
  299. package/dist/components/Switch/Switch.d.ts +26 -0
  300. package/dist/components/Switch/Switch.d.ts.map +1 -0
  301. package/dist/components/Switch/index.d.ts +3 -0
  302. package/dist/components/Switch/index.d.ts.map +1 -0
  303. package/dist/components/SwitchPanel/SwitchPanel.d.ts +41 -0
  304. package/dist/components/SwitchPanel/SwitchPanel.d.ts.map +1 -0
  305. package/dist/components/SwitchPanel/index.d.ts +3 -0
  306. package/dist/components/SwitchPanel/index.d.ts.map +1 -0
  307. package/dist/components/Tabs/Tabs.d.ts +117 -0
  308. package/dist/components/Tabs/Tabs.d.ts.map +1 -0
  309. package/dist/components/Tabs/index.d.ts +3 -0
  310. package/dist/components/Tabs/index.d.ts.map +1 -0
  311. package/dist/components/TagsInput/TagsInput.d.ts +76 -0
  312. package/dist/components/TagsInput/TagsInput.d.ts.map +1 -0
  313. package/dist/components/TagsInput/index.d.ts +3 -0
  314. package/dist/components/TagsInput/index.d.ts.map +1 -0
  315. package/dist/components/Textarea/Textarea.d.ts +89 -0
  316. package/dist/components/Textarea/Textarea.d.ts.map +1 -0
  317. package/dist/components/Textarea/index.d.ts +3 -0
  318. package/dist/components/Textarea/index.d.ts.map +1 -0
  319. package/dist/components/Toaster/Toaster.d.ts +99 -0
  320. package/dist/components/Toaster/Toaster.d.ts.map +1 -0
  321. package/dist/components/Toaster/index.d.ts +3 -0
  322. package/dist/components/Toaster/index.d.ts.map +1 -0
  323. package/dist/components/ToggleGroup/ToggleGroup.d.ts +91 -0
  324. package/dist/components/ToggleGroup/ToggleGroup.d.ts.map +1 -0
  325. package/dist/components/ToggleGroup/index.d.ts +3 -0
  326. package/dist/components/ToggleGroup/index.d.ts.map +1 -0
  327. package/dist/components/Tooltip/Tooltip.d.ts +56 -0
  328. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -0
  329. package/dist/components/Tooltip/index.d.ts +3 -0
  330. package/dist/components/Tooltip/index.d.ts.map +1 -0
  331. package/dist/icons/index.d.ts +257 -0
  332. package/dist/icons/index.d.ts.map +1 -0
  333. package/dist/index.d.ts +80 -0
  334. package/dist/index.d.ts.map +1 -0
  335. package/dist/index.js +15988 -0
  336. package/dist/internal/ClippedText.d.ts +40 -0
  337. package/dist/internal/ClippedText.d.ts.map +1 -0
  338. package/dist/internal/DisabledReason.d.ts +50 -0
  339. package/dist/internal/DisabledReason.d.ts.map +1 -0
  340. package/dist/internal/InlineSearch.d.ts +27 -0
  341. package/dist/internal/InlineSearch.d.ts.map +1 -0
  342. package/dist/internal/children.d.ts +22 -0
  343. package/dist/internal/children.d.ts.map +1 -0
  344. package/dist/internal/mergeRefs.d.ts +32 -0
  345. package/dist/internal/mergeRefs.d.ts.map +1 -0
  346. package/dist/internal/modality.d.ts +18 -0
  347. package/dist/internal/modality.d.ts.map +1 -0
  348. package/dist/internal/useDismissModality.d.ts +23 -0
  349. package/dist/internal/useDismissModality.d.ts.map +1 -0
  350. package/dist/internal/useHoverOpen.d.ts +75 -0
  351. package/dist/internal/useHoverOpen.d.ts.map +1 -0
  352. package/dist/internal/useModalDialog.d.ts +40 -0
  353. package/dist/internal/useModalDialog.d.ts.map +1 -0
  354. package/dist/internal/usePopover.d.ts +43 -0
  355. package/dist/internal/usePopover.d.ts.map +1 -0
  356. package/dist/mosaic.css +2 -0
  357. package/package.json +81 -4
@@ -0,0 +1,40 @@
1
+ import type { ReactNode } from "react";
2
+ /**
3
+ * One line of text that ends in an ellipsis when its box is too narrow — and, only then, says
4
+ * the whole of itself in a tooltip.
5
+ *
6
+ * **The rule (2026-09-06):** a title never wraps and never pushes its neighbours off the row; when
7
+ * it does not fit it is cut, and a cut title can always be read in full by pointing at it or
8
+ * tabbing to it. `DataTable` had this for its cells; this is the same measurement for a heading —
9
+ * `scrollWidth` against `clientWidth`, on layout and again when the box resizes — with the tooltip
10
+ * carrying the text itself, nothing else.
11
+ *
12
+ * Nothing is drawn when the text fits: no tooltip, no tab stop. A tooltip on every title would be
13
+ * a tooltip that says what is already on screen.
14
+ *
15
+ * `focusable={false}` drops the tab stop, for the one case where it cannot be had: a title that
16
+ * is *inside* something already focusable - a list row's own button, whose accessible name is
17
+ * the whole of this text anyway. A focusable span in a `<button>` is invalid content and a
18
+ * second stop on the same words; the pointer keeps its tooltip, and the keyboard never needed
19
+ * one there (2026-09-18).
20
+ */
21
+ /**
22
+ * The measurement on its own: what a box is hiding, or `null` while it all fits.
23
+ *
24
+ * Separate from the component because the element that is *cut* and the element worth
25
+ * *pointing at* are not always the same one. In a list row the name is cut inside a button
26
+ * whose hit area - an absolutely positioned `::after` over the whole row - is painted above
27
+ * it, so a tooltip on the text is a tooltip the pointer can never reach; the row is what has
28
+ * to carry it. See `SimpleListItem` (2026-09-18).
29
+ */
30
+ export declare function useClipped(children: ReactNode): {
31
+ ref: import("react").RefObject<HTMLSpanElement | null>;
32
+ hidden: string | null;
33
+ clipped: boolean;
34
+ };
35
+ export declare function ClippedText({ children, className, focusable }: {
36
+ children: ReactNode;
37
+ className?: string;
38
+ focusable?: boolean;
39
+ }): import("react").JSX.Element;
40
+ //# sourceMappingURL=ClippedText.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClippedText.d.ts","sourceRoot":"","sources":["../../src/internal/ClippedText.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC;;;;;;;;;;;;;;;;;;GAkBG;AACH;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,SAAS;;;;EAoB7C;AAED,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,SAAS,EACT,SAAgB,EACjB,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,+BAsBA"}
@@ -0,0 +1,50 @@
1
+ import type { ReactElement, ReactNode } from "react";
2
+ /**
3
+ * Whether a `disabledReason` was actually given. `null`, `undefined`, `false` and `""` all mean
4
+ * "no reason", so a caller can write `disabledReason={!can && MESSAGE}` and get the plain control
5
+ * back when `can` is true.
6
+ */
7
+ export declare function hasReason(reason: ReactNode): boolean;
8
+ /**
9
+ * Says why a control cannot be used, in two places at once.
10
+ *
11
+ * - **In the accessibility tree, always.** The control's `aria-describedby` points at a visually
12
+ * hidden copy of the sentence, so it is there whether or not anything is hovered: for a screen
13
+ * reader, for a touch reader (a tooltip does not open on touch), and for a test or an agent
14
+ * that reads the page snapshot and has no hover verb. A reason drawn only on `:hover` is a
15
+ * reason most of those readers never get.
16
+ * - **On screen, on hover and on keyboard focus,** as the `Tooltip` bubble. The bubble is told
17
+ * not to describe the control as well (`describes={false}`), or the sentence would be read
18
+ * twice while it shows.
19
+ *
20
+ * `children` is what the tooltip anchors to and listens on. Given as an element, the description
21
+ * goes on that element. Given as a function, it receives the description's id and puts it on the
22
+ * control *inside* the anchor.
23
+ */
24
+ export declare function DisabledReason({ reason, children }: {
25
+ reason: ReactNode;
26
+ children: ReactElement | ((describedBy: string) => ReactElement);
27
+ }): import("react").JSX.Element;
28
+ /**
29
+ * The reason's tooltip, anchored to **the control itself** rather than to whatever wraps it.
30
+ *
31
+ * A switch, a checkbox or a radio is an `<input>` inside a `<label>` that can be the whole width of
32
+ * a card. Anchored to the label, the bubble opened from the middle of the card, nowhere near the
33
+ * switch it was about (2026-10-01). So the input is wrapped in a box of its own size and the
34
+ * tooltip anchors there. The disabled input gives up the pointer (see the stylesheet) so the hover
35
+ * reaches the box.
36
+ *
37
+ * Kept *inside* the label, so the label lays out as before; the sentence itself goes outside it as
38
+ * `ReasonText`, or it would become part of the input's name.
39
+ */
40
+ export declare function ReasonAnchor({ reason, className, children }: {
41
+ reason: ReactNode;
42
+ className?: string;
43
+ children: ReactNode;
44
+ }): import("react").JSX.Element;
45
+ /** The sentence a `ReasonAnchor`'s control is described by - read, never shown. */
46
+ export declare function ReasonText({ id, reason }: {
47
+ id: string;
48
+ reason: ReactNode;
49
+ }): import("react").JSX.Element;
50
+ //# sourceMappingURL=DisabledReason.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DisabledReason.d.ts","sourceRoot":"","sources":["../../src/internal/DisabledReason.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOrD;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAEpD;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,QAAQ,EACT,EAAE;IACD,MAAM,EAAE,SAAS,CAAC;IAClB,QAAQ,EAAE,YAAY,GAAG,CAAC,CAAC,WAAW,EAAE,MAAM,KAAK,YAAY,CAAC,CAAC;CAClE,+BAkBA;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,EAC3B,MAAM,EACN,SAAS,EACT,QAAQ,EACT,EAAE;IACD,MAAM,EAAE,SAAS,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB,+BAMA;AAED,mFAAmF;AACnF,wBAAgB,UAAU,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,SAAS,CAAA;CAAE,+BAM3E"}
@@ -0,0 +1,27 @@
1
+ import type { ReactNode } from "react";
2
+ export type InlineSearchProps = {
3
+ value: string;
4
+ onChange: (value: string) => void;
5
+ /** Names the button, the field and its ✕. */
6
+ label: string;
7
+ /** The magnifier. Mosaic ships no icons - the host passes its own. */
8
+ icon: ReactNode;
9
+ /** Matches the row it sits in. Both controls default to `sm`, as every header row does. */
10
+ size?: "sm" | "md";
11
+ /** The field's width rule, which belongs to the row rather than to this control. */
12
+ className?: string;
13
+ };
14
+ /**
15
+ * A magnifier that becomes the field where it stands.
16
+ *
17
+ * Product call, 2026-09-05 and it is now the product's one search affordance, so it lives here
18
+ * rather than inside `SearchLayout`: the report pages ask for the same control on the same row
19
+ * (2026-09-08) and a second implementation of "button, then field, then button again" is a second
20
+ * set of rules about when it collapses.
21
+ *
22
+ * Not a component of its own in the public API: what a caller wants is a *page* with a search
23
+ * in its header, and that is `SearchLayout` or `ReportFilterBar`. Exporting a third thing to
24
+ * place by hand is how the header row stops being the same row on every page.
25
+ */
26
+ export declare function InlineSearch({ value, onChange, label, icon, size, className }: InlineSearchProps): import("react").JSX.Element;
27
+ //# sourceMappingURL=InlineSearch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InlineSearch.d.ts","sourceRoot":"","sources":["../../src/internal/InlineSearch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,sEAAsE;IACtE,IAAI,EAAE,SAAS,CAAC;IAChB,2FAA2F;IAC3F,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,oFAAoF;IACpF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,QAAQ,EACR,KAAK,EACL,IAAI,EACJ,IAAW,EACX,SAAS,EACV,EAAE,iBAAiB,+BAoGnB"}
@@ -0,0 +1,22 @@
1
+ import type { ReactNode } from "react";
2
+ /**
3
+ * The children a slot will actually draw, with fragments opened up.
4
+ *
5
+ * **Why a slot needs to ask.** A slot that draws its wrapper whenever `children != null` draws an
6
+ * empty bar for `false`, for `<>{null}</>` and for an empty array, and the product writes all
7
+ * three: hiding an action the viewer has no scope for (product call, 2026-10-06) leaves exactly
8
+ * `{canDelete && <Button />}` behind, which is `false` when the scope is missing. The wrapper then
9
+ * stands alone - a footer band with nothing in it, a gap under an empty state's sentence.
10
+ *
11
+ * `Children.toArray` already drops `null`, `undefined` and booleans and flattens arrays; what it
12
+ * does *not* do is look inside a fragment, which it counts as one child however empty it is. So
13
+ * this recurses into fragments as well.
14
+ *
15
+ * What it cannot see is a component that renders `null` - `<Gated />` is a child until it has
16
+ * run, and asking it would mean rendering it. A slot that must collapse for those is the caller's
17
+ * to leave out.
18
+ */
19
+ export declare function flattenChildren(children: ReactNode): ReactNode[];
20
+ /** Whether a slot holds anything to draw. See `flattenChildren`. */
21
+ export declare function hasChildren(children: ReactNode): boolean;
22
+ //# sourceMappingURL=children.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"children.d.ts","sourceRoot":"","sources":["../../src/internal/children.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,SAAS,GAAG,SAAS,EAAE,CAMhE;AAED,oEAAoE;AACpE,wBAAgB,WAAW,CAAC,QAAQ,EAAE,SAAS,GAAG,OAAO,CAExD"}
@@ -0,0 +1,32 @@
1
+ import type { ReactElement } from "react";
2
+ /**
3
+ * Reads the ref already on an element and returns one that feeds both it and ours.
4
+ *
5
+ * `cloneElement(children, { ref })` replaces whatever ref the child arrived with. That is
6
+ * silent, and it breaks the case where two components each need to measure the same node:
7
+ * a `DropdownMenu` clones its trigger to anchor the menu, the trigger renders a `Tooltip`
8
+ * around itself, and the tooltip's clone overwrites the menu's ref — so the menu anchors to
9
+ * nothing and opens in the corner of the viewport. Which is precisely how it was found.
10
+ *
11
+ * Nothing about that arrangement is unusual. A control with both a tooltip and a menu is an
12
+ * ordinary control, and neither component can know the other is there.
13
+ *
14
+ * React 19 made `ref` an ordinary prop, so it is read from `props`; the pre-19 `element.ref`
15
+ * is checked as well, because a consumer's element may come from anywhere.
16
+ */
17
+ export declare function mergeElementRef(element: ReactElement, ours: {
18
+ current: HTMLElement | null;
19
+ }): (node: HTMLElement | null) => void;
20
+ /**
21
+ * Joins `aria-describedby` tokens instead of replacing them, for the same reason: a control
22
+ * can be described by more than one thing, and a tooltip arriving does not mean whatever
23
+ * described it before has stopped.
24
+ */
25
+ export declare function mergeDescribedBy(element: ReactElement, ours: string | undefined): string | undefined;
26
+ /**
27
+ * Feeds a node to several refs. For the case where a control has a tooltip *and* is a
28
+ * wrapper's trigger, so three components want the same node: the child's own ref, the outer
29
+ * wrapper's, and the tooltip's.
30
+ */
31
+ export declare function mergeRefs(...refs: unknown[]): (node: HTMLElement | null) => void;
32
+ //# sourceMappingURL=mergeRefs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mergeRefs.d.ts","sourceRoot":"","sources":["../../src/internal/mergeRefs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAO,MAAM,OAAO,CAAC;AAE/C;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,YAAY,EACrB,IAAI,EAAE;IAAE,OAAO,EAAE,WAAW,GAAG,IAAI,CAAA;CAAE,GACpC,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAYpC;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,YAAY,EACrB,IAAI,EAAE,MAAM,GAAG,SAAS,GACvB,MAAM,GAAG,SAAS,CAKpB;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CACvB,GAAG,IAAI,EAAE,OAAO,EAAE,GACjB,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CASpC"}
@@ -0,0 +1,18 @@
1
+ export type Modality = "pointer" | "keyboard";
2
+ /** The last input recorded, or `undefined` before the first one. */
3
+ export declare function getModality(): Modality | undefined;
4
+ /**
5
+ * Records an input by hand. One caller: `useModalDialog`, which knows something the listeners
6
+ * below cannot — that the Escape which closed a panel opened by the pointer was a *dismissal*
7
+ * and not navigation, so the focus the browser then restores to the trigger should draw no ring.
8
+ */
9
+ export declare function setModality(modality: Modality): void;
10
+ /**
11
+ * Whether an element's focus should be *seen* - `:focus-visible`, with the pointer override the
12
+ * ring itself applies (see `focus.module.css`). Anything that appears with the ring asks this
13
+ * rather than the pseudo-class alone, so the ring and, say, a tooltip cannot disagree about
14
+ * whether focus arrived from the keyboard.
15
+ */
16
+ export declare function isFocusVisible(element: Element): boolean;
17
+ export declare function trackInputModality(): void;
18
+ //# sourceMappingURL=modality.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modality.d.ts","sourceRoot":"","sources":["../../src/internal/modality.ts"],"names":[],"mappings":"AAmBA,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,UAAU,CAAC;AAE9C,oEAAoE;AACpE,wBAAgB,WAAW,IAAI,QAAQ,GAAG,SAAS,CAGlD;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,QAAQ,QAI7C;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAGxD;AAED,wBAAgB,kBAAkB,SAgBjC"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * **Why a panel's trigger must not be ringed after Escape.**
3
+ *
4
+ * Closing a panel hands focus back to the control that opened it - the browser does it for
5
+ * `<dialog>`, and `Popover` and `DropdownMenu` do it themselves. That is right: the reader is
6
+ * where they were. But Escape is a keydown, so `modality.ts` has just recorded "keyboard", and
7
+ * the ring is then drawn on a button the reader dismissed a panel *away from* with the mouse
8
+ * still in their hand. Reported first on the build header's Configurations button (2026-09-04:
9
+ * "When I close a drawer with ESC, a border appears on the button"), and again on the enterprise
10
+ * store's row menu and its report filter, which are a menu and a popover rather than a dialog
11
+ * (2026-09-16: "When I exit the screen with ESC, a border appears on buttons").
12
+ *
13
+ * The ring is not the bug and is not removed: a reader navigating by keyboard has to see where
14
+ * focus went. What is wrong is the reading of *why* focus moved. Escape on a panel opened with
15
+ * the pointer is a dismissal, not navigation - so the modality at open is what the restore is
16
+ * judged by, unless a key other than Escape was pressed while the panel was open, which says the
17
+ * reader is on the keyboard now and the ring is theirs again.
18
+ *
19
+ * @param open Whether the panel is showing. The modality is sampled each time this becomes true.
20
+ * @returns What to call immediately before focus is handed back to the trigger.
21
+ */
22
+ export declare function useDismissModality(open: boolean): () => void;
23
+ //# sourceMappingURL=useDismissModality.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDismissModality.d.ts","sourceRoot":"","sources":["../../src/internal/useDismissModality.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,IAAI,CAsB5D"}
@@ -0,0 +1,75 @@
1
+ export type UseHoverOpenOptions = {
2
+ /** Nothing opens while this is set. */
3
+ disabled?: boolean;
4
+ /**
5
+ * How long the pointer must rest on the trigger. Focus ignores it — focus is
6
+ * deliberate, unlike a pointer passing over on its way somewhere else.
7
+ */
8
+ openDelay?: number;
9
+ /**
10
+ * How long to wait before closing. This is not politeness: it is the window in
11
+ * which the pointer crosses the gap between the trigger and the content, which is
12
+ * what WCAG 1.4.13 calls hoverable.
13
+ */
14
+ closeDelay?: number;
15
+ };
16
+ /**
17
+ * The state machine behind `Tooltip` and `HoverCard`: open on hover or on keyboard focus, stay
18
+ * open while either is on the trigger *or* the content, close on Escape or on a press.
19
+ *
20
+ * Shared rather than written twice. All three of WCAG 1.4.13's requirements live in
21
+ * here and none of them is obvious from the outside — the deferred close in
22
+ * particular, where the decision is made when the timer fires rather than when the
23
+ * pointer leaves, because by then the pointer may have arrived on the content and
24
+ * must keep it open. A second hand-written copy of that is where the bug would go.
25
+ *
26
+ * The product has none of it: 85 tooltips are a CSS `:hover` on a `data-tooltip` attribute, which
27
+ * cannot be dismissed, cannot be hovered, and never opens on focus.
28
+ */
29
+ export declare function useHoverOpen({ disabled, openDelay, closeDelay }?: UseHoverOpenOptions): {
30
+ open: boolean;
31
+ /** For a component that dismisses from somewhere else, e.g. an outside click. */
32
+ close: () => void;
33
+ trigger: {
34
+ onPointerEnter: () => void;
35
+ onPointerLeave: () => void;
36
+ /**
37
+ * Pressing the trigger dismisses it, and the press's own focus does not bring it back.
38
+ *
39
+ * A hint explains a control you have not used yet; once you use it, it is in the way — and
40
+ * it stayed in the way, because clicking a button focuses it and focus held the bubble
41
+ * open long after the pointer had gone. Reported on `ReportFilterBar`'s filter button,
42
+ * where the tooltip sat over the panel the button had just opened.
43
+ */
44
+ onPointerDown: () => void;
45
+ /**
46
+ * Focus opens it only when focus is *visible* — which is to say, when it arrived from the
47
+ * keyboard.
48
+ *
49
+ * Opening on every focus is what made a click leave the bubble on screen: the button takes
50
+ * focus from the press, and `focused` then kept it open through `scheduleHide`. Opening on
51
+ * none of them would take the hint away from keyboard users entirely, which is the single
52
+ * biggest failing of the 85 CSS `:hover` tooltips this replaces. `isFocusVisible` asks that
53
+ * question the way the ring asks it - `:focus-visible` plus the pointer override in
54
+ * `modality.ts` - so the bubble and the ring appear together or not at all. The
55
+ * pseudo-class on its own let the bubble open on the focus a *closing panel* restores to
56
+ * its trigger, which is the one focus a pointer user did not ask for; it
57
+ * follows — so the bubble and the ring appear together or not at all.
58
+ */
59
+ onFocus: (event?: {
60
+ currentTarget?: EventTarget | null;
61
+ }) => void;
62
+ onBlur: () => void;
63
+ };
64
+ content: {
65
+ onPointerEnter: () => void;
66
+ onPointerLeave: () => void;
67
+ /**
68
+ * Focus moving into the content keeps it open — otherwise tabbing to a link
69
+ * inside it closes the thing the link is in.
70
+ */
71
+ onFocus: () => void;
72
+ onBlur: () => void;
73
+ };
74
+ };
75
+ //# sourceMappingURL=useHoverOpen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useHoverOpen.d.ts","sourceRoot":"","sources":["../../src/internal/useHoverOpen.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,mBAAmB,GAAG;IAChC,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,wBAAgB,YAAY,CAAC,EAC3B,QAAgB,EAChB,SAAe,EACf,UAAgB,EACjB,GAAE,mBAAwB;;IAuDvB,iFAAiF;;;QAM/E,cAAc;QAId,cAAc;QAId;;;;;;;WAOG;QACH,aAAa;QAIb;;;;;;;;;;;;;WAaG;QACH,OAAO,WAAW;YAAE,aAAa,CAAC,EAAE,WAAW,GAAG,IAAI,CAAA;SAAE;QAMxD,MAAM;;;QAMN,cAAc;QAId,cAAc;QAId;;;WAGG;QACH,OAAO;QAIP,MAAM;;EAMX"}
@@ -0,0 +1,40 @@
1
+ import type { MouseEvent, RefObject } from "react";
2
+ /**
3
+ * Carries a generated id from a modal to its header, so the modal is labelled by its own
4
+ * title without the consumer wiring ids by hand. An unlabelled dialog is announced as
5
+ * just "dialog", which is the most common accessibility defect in modal code.
6
+ *
7
+ * Shared by `Dialog` and `Sheet` rather than declared twice: two contexts would mean a
8
+ * `Sheet.Header` inside a `Dialog` silently failing to label it.
9
+ */
10
+ export declare const TitleIdContext: import("react").Context<string | undefined>;
11
+ /**
12
+ * The mechanism behind a modal, shared by `Dialog` and `Sheet`.
13
+ *
14
+ * The two differ only in where the panel sits and how wide it is — everything that makes
15
+ * them *modal* is identical, and all of it is subtle enough to be worth having in one
16
+ * place:
17
+ *
18
+ * - `showModal()` is what produces the focus trap and the inert background. Calling it on
19
+ * an already-open dialog throws, hence the guards — and calling it on an element that is
20
+ * not yet in the document throws too, hence `openWhenConnected`.
21
+ * - `cancel` fires for Escape, and its default has to be prevented. Without that the
22
+ * DOM's own open state diverges from the `open` prop: the browser closes the element
23
+ * while the consumer still thinks it is open, and the next `open={true}` does nothing.
24
+ * **And it has to be the dialog's own `cancel`** — see the handler.
25
+ * - A click reaches the `<dialog>` element itself only when it lands on the backdrop.
26
+ * Anything inside the panel has a descendant as its target, so this cannot swallow
27
+ * clicks on content. **But a press and release on two elements click their common
28
+ * ancestor**, so the press and the release are checked too - see `pressedOnBackdrop`.
29
+ *
30
+ * Written out twice, the second copy is where one of those three goes missing.
31
+ */
32
+ export declare function useModalDialog({ open, onClose, dismissible }: {
33
+ open: boolean;
34
+ onClose: () => void;
35
+ dismissible?: boolean;
36
+ }): {
37
+ ref: RefObject<HTMLDialogElement | null>;
38
+ onBackdropClick: (e: MouseEvent<HTMLDialogElement>) => void;
39
+ };
40
+ //# sourceMappingURL=useModalDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useModalDialog.d.ts","sourceRoot":"","sources":["../../src/internal/useModalDialog.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGnD;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,6CAA+C,CAAC;AAgE3E;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,OAAO,EACP,WAAkB,EACnB,EAAE;IACD,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG;IACF,GAAG,EAAE,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IACzC,eAAe,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CAC7D,CA4FA"}
@@ -0,0 +1,43 @@
1
+ import type { RefObject } from "react";
2
+ /**
3
+ * The plumbing shared by every popup that hangs off a control: the Popover API
4
+ * open/close sync, dismissal on an outside press, and placement against the
5
+ * anchor.
6
+ *
7
+ * Not a component and not exported from the package. It exists because DropdownMenu and
8
+ * Combobox need identical plumbing and completely different semantics — the
9
+ * ARIA patterns disagree about where focus goes, so sharing a component would
10
+ * mean one with two modes. Sharing the plumbing and writing the semantics twice
11
+ * is the smaller of the two.
12
+ *
13
+ * Why `manual` rather than `auto`: `auto` brings light-dismiss and Escape from
14
+ * the browser, but it counts a press on the trigger as an outside press and
15
+ * closes — then the trigger's own handler reopens, and the popup flickers on
16
+ * every click. So dismissal is handled here, once.
17
+ */
18
+ export declare function usePopover<A extends HTMLElement, P extends HTMLElement>(opts: {
19
+ open: boolean;
20
+ onDismiss: () => void;
21
+ anchorRef: RefObject<A | null>;
22
+ /** Also treated as "inside" for dismissal — the trigger and its wrapper. */
23
+ rootRef?: RefObject<HTMLElement | null>;
24
+ /** Re-place when this changes, e.g. after filtering shortens the list. */
25
+ contentKey?: unknown;
26
+ /** Match the anchor's width. DropdownMenus size to their content; listboxes do not. */
27
+ matchAnchorWidth?: boolean;
28
+ /**
29
+ * Which of the anchor's inline edges the popup lines up with. `center` is for
30
+ * a tooltip on a small target, where a start-aligned bubble reads as crooked.
31
+ *
32
+ * Ignored when `side` is `inline`: there the inline axis is where the popup
33
+ * goes, so it has no edge left to line up with.
34
+ */
35
+ align?: "start" | "center" | "end";
36
+ /**
37
+ * Which axis the popup sits on. `block` puts it under the anchor and is what
38
+ * every menu and listbox wants. `inline` puts it beside the anchor, top edges
39
+ * level — a submenu, which cannot go underneath its own row.
40
+ */
41
+ side?: "block" | "inline";
42
+ }): RefObject<P | null>;
43
+ //# sourceMappingURL=usePopover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePopover.d.ts","sourceRoot":"","sources":["../../src/internal/usePopover.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AA4FvC;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,WAAW,EAAE,CAAC,SAAS,WAAW,EAAE,IAAI,EAAE;IAC7E,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,EAAE,SAAS,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IAC/B,4EAA4E;IAC5E,OAAO,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACxC,0EAA0E;IAC1E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,uFAAuF;IACvF,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACnC;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;CAC3B,uBA8SA"}