@ngrok/mantle 0.94.1 → 0.95.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 (601) hide show
  1. package/README.md +2 -2
  2. package/dist/CaretDown-MgTrjdYK.js +1 -0
  3. package/dist/CaretLeft-CZIqCyEF.js +1 -0
  4. package/dist/CaretRight-BKz4JHCI.js +1 -0
  5. package/dist/Check-C5a1hX4x.js +1 -0
  6. package/dist/CheckCircle-Bi4tSau6.js +1 -0
  7. package/dist/CircleNotch-BKE0NAIr.js +1 -0
  8. package/dist/Copy-BYWMO6PW.js +1 -0
  9. package/dist/Desktop-BaSlSeg2.js +1 -0
  10. package/dist/Eye-C38LQkZ_.js +1 -0
  11. package/dist/EyeClosed-BvOq-W8o.js +1 -0
  12. package/dist/FileText-CqAezJDn.js +1 -0
  13. package/dist/Info-weHV1B4q.js +1 -0
  14. package/dist/MagnifyingGlass-DCAoDH5_.js +1 -0
  15. package/dist/Megaphone-Cir2KHXa.js +1 -0
  16. package/dist/Minus-KBzmC4_K.js +1 -0
  17. package/dist/Moon-hn_oivM6.js +1 -0
  18. package/dist/Plus-D90-H9Ei.js +1 -0
  19. package/dist/Question-BhvEyO0K.js +1 -0
  20. package/dist/SidebarSimple-BXKgNz4l.js +1 -0
  21. package/dist/SortAscending-CEk4rgu_.js +1 -0
  22. package/dist/SortDescending-C0cE7hpU.js +1 -0
  23. package/dist/Sun-C3SaXdLl.js +1 -0
  24. package/dist/Terminal-aKZ6Y9Lk.js +1 -0
  25. package/dist/Warning-DTwF27_O.js +1 -0
  26. package/dist/WarningDiamond-BwpdVJ34.js +1 -0
  27. package/dist/X-BPGjP4b6.js +1 -0
  28. package/dist/accordion-BmDXs1-q.js +1 -0
  29. package/dist/accordion-NpJz3Uer.js +1 -0
  30. package/dist/accordion-parts.d.ts +268 -0
  31. package/dist/accordion-parts.js +1 -0
  32. package/dist/accordion.d.ts +4 -395
  33. package/dist/accordion.js +1 -1
  34. package/dist/agent.json +409 -42
  35. package/dist/alert-DCGSrVTa.js +1 -0
  36. package/dist/{alert-D0zRRUHV.d.ts → alert-Dz541Ve9.d.ts} +7 -193
  37. package/dist/alert-center-Bb39SBqJ.js +1 -0
  38. package/dist/alert-center-CGBbqO-y.d.ts +391 -0
  39. package/dist/alert-center-parts.d.ts +6 -0
  40. package/dist/alert-center-parts.js +1 -0
  41. package/dist/alert-center.d.ts +6 -587
  42. package/dist/alert-center.js +1 -1
  43. package/dist/alert-dialog-CtKnvX5N.js +1 -0
  44. package/dist/alert-dialog-parts.d.ts +569 -0
  45. package/dist/alert-dialog-parts.js +1 -0
  46. package/dist/alert-dialog.d.ts +2 -1065
  47. package/dist/alert-dialog.js +1 -1
  48. package/dist/alert-parts.d.ts +6 -0
  49. package/dist/alert-parts.js +1 -0
  50. package/dist/alert.d.ts +43 -1
  51. package/dist/alert.js +1 -1
  52. package/dist/anchor-DW5_Gb-1.js +1 -0
  53. package/dist/anchor.d.ts +1 -1
  54. package/dist/anchor.js +1 -1
  55. package/dist/app-layout-D7kwv9su.js +1 -0
  56. package/dist/app-layout-k6UjK30v.d.ts +1167 -0
  57. package/dist/app-layout-parts.d.ts +6 -0
  58. package/dist/app-layout-parts.js +1 -0
  59. package/dist/app-layout.d.ts +98 -1883
  60. package/dist/app-layout.js +1 -1
  61. package/dist/area-chart-C6lKu7Un.d.ts +390 -0
  62. package/dist/area-chart-SAaGaZFD.js +1 -0
  63. package/dist/area-chart-parts.d.ts +6 -0
  64. package/dist/area-chart-parts.js +1 -0
  65. package/dist/area-chart.d.ts +4 -579
  66. package/dist/area-chart.js +1 -1
  67. package/dist/avatar-BMZ81f_5.js +1 -0
  68. package/dist/avatar-Ti8GKSnS.d.ts +201 -0
  69. package/dist/avatar-parts.d.ts +6 -0
  70. package/dist/avatar-parts.js +1 -0
  71. package/dist/avatar.d.ts +3 -275
  72. package/dist/avatar.js +1 -1
  73. package/dist/badge.d.ts +3 -2
  74. package/dist/badge.js +1 -1
  75. package/dist/bar-chart-C0Ra1ZpG.js +1 -0
  76. package/dist/bar-chart-Cb5fA8V7.d.ts +386 -0
  77. package/dist/bar-chart-parts.d.ts +6 -0
  78. package/dist/bar-chart-parts.js +1 -0
  79. package/dist/bar-chart.d.ts +4 -583
  80. package/dist/bar-chart.js +1 -1
  81. package/dist/behaviors-BW8RjkkS.js +1 -0
  82. package/dist/behaviors-BbOq5SFv.js +1 -0
  83. package/dist/behaviors-C7R7ZIoN.js +1 -0
  84. package/dist/behaviors-CHF5PT3C.js +1 -0
  85. package/dist/behaviors-CSZQSSfL.js +1 -0
  86. package/dist/behaviors-CcjvGa0d.js +1 -0
  87. package/dist/behaviors-CnarRd47.js +1 -0
  88. package/dist/behaviors-CoNi6Rd-.js +1 -0
  89. package/dist/behaviors-D9VIyDk1.js +1 -0
  90. package/dist/behaviors-DHVC34f9.js +1 -0
  91. package/dist/behaviors-DkCIgQ8w.js +1 -0
  92. package/dist/behaviors-Mkc_HjTB.js +1 -0
  93. package/dist/breadcrumb-CAzq3SlR.js +1 -0
  94. package/dist/breadcrumb-parts.d.ts +287 -0
  95. package/dist/breadcrumb-parts.js +1 -0
  96. package/dist/breadcrumb.d.ts +53 -543
  97. package/dist/breadcrumb.js +1 -1
  98. package/dist/browser-only-CokCtIvB.js +1 -0
  99. package/dist/browser-only.js +1 -1
  100. package/dist/button-Bqm7U0OC.js +1 -0
  101. package/dist/{button-5Pc7Mby_.d.ts → button-C6-6TecO.d.ts} +4 -4
  102. package/dist/{button-DnYv7IOT.d.ts → button-CL17Dxza.d.ts} +7 -5
  103. package/dist/button-CRCiBPEF.js +1 -0
  104. package/dist/{button-Ddj6yr10.d.ts → button-CRMoQyum.d.ts} +2 -3
  105. package/dist/button-Cr2iY2cI.js +1 -0
  106. package/dist/button-DhoE-BbZ.js +1 -0
  107. package/dist/button.d.ts +3 -3
  108. package/dist/button.js +1 -1
  109. package/dist/calendar-DQtapcSC.js +1 -0
  110. package/dist/calendar.d.ts +1 -1
  111. package/dist/calendar.js +1 -1
  112. package/dist/card-DbtGVKyo.d.ts +129 -0
  113. package/dist/card-parts.d.ts +6 -0
  114. package/dist/card-parts.js +1 -0
  115. package/dist/card.d.ts +3 -228
  116. package/dist/card.js +1 -1
  117. package/dist/centered-layout-parts.d.ts +169 -0
  118. package/dist/centered-layout-parts.js +1 -0
  119. package/dist/centered-layout.d.ts +2 -299
  120. package/dist/centered-layout.js +1 -1
  121. package/dist/chart-B0n2xyYi.js +1 -0
  122. package/dist/chart-BPsMxs1f.js +1 -0
  123. package/dist/chart-BmZoTjRu.js +1 -0
  124. package/dist/chart-Bybyh2Dc.js +1 -0
  125. package/dist/chart-CACfdGlp.d.ts +86 -0
  126. package/dist/chart-CBQJUTIX.js +1 -0
  127. package/dist/chart-Cb0MBaZx.js +1 -0
  128. package/dist/chart-CmMcfDmv.js +1 -0
  129. package/dist/chart-Dlp9FidW.js +2 -0
  130. package/dist/{chart-Dl8gFo_D.d.ts → chart-XvStK-oM.d.ts} +3 -79
  131. package/dist/chart-wTwYzUMJ.js +1 -0
  132. package/dist/checkbox-DH7WFfuR.js +1 -0
  133. package/dist/checkbox-DsVXD96X.js +1 -0
  134. package/dist/checkbox-TX74-Iep.js +1 -0
  135. package/dist/checkbox-group-parts.d.ts +197 -0
  136. package/dist/checkbox-group-parts.js +1 -0
  137. package/dist/checkbox.d.ts +59 -8
  138. package/dist/checkbox.js +1 -1
  139. package/dist/{choice-CNiOSzqV.d.ts → choice-BekuLm-b.d.ts} +16 -204
  140. package/dist/choice-DGI8VNR9.d.ts +1 -0
  141. package/dist/choice-PDT386cc.js +1 -0
  142. package/dist/choice-parts.d.ts +7 -0
  143. package/dist/choice-parts.js +1 -0
  144. package/dist/choice.d.ts +63 -1
  145. package/dist/choice.js +1 -1
  146. package/dist/code-UKPv6LVP.js +1 -0
  147. package/dist/{code-block-CKzsAMzj.js → code-block-B-xD4_RW.js} +3 -3
  148. package/dist/code-block-B7XPzZnp.js +1 -0
  149. package/dist/code-block-BXXceNVo.js +1 -0
  150. package/dist/code-block-C7uzLs8t.js +1 -0
  151. package/dist/{code-block-BDw6MEwH.d.ts → code-block-Cs1Lcmdr.d.ts} +81 -252
  152. package/dist/code-block-Erv7wuWW.d.ts +173 -0
  153. package/dist/code-block-parts.d.ts +380 -0
  154. package/dist/code-block-parts.js +1 -0
  155. package/dist/code-block.d.ts +66 -691
  156. package/dist/code-block.js +6 -6
  157. package/dist/code-block_highlight-utils.d.ts +2 -1
  158. package/dist/code-block_highlight-utils.js +1 -1
  159. package/dist/code.d.ts +1 -1
  160. package/dist/code.js +1 -1
  161. package/dist/combobox-6LXe1cLx.js +1 -0
  162. package/dist/combobox-parts.d.ts +303 -0
  163. package/dist/combobox-parts.js +1 -0
  164. package/dist/combobox.d.ts +2 -465
  165. package/dist/combobox.js +1 -1
  166. package/dist/command-B8L-zjGt.js +1 -0
  167. package/dist/command-CCMWCjAK.js +1 -0
  168. package/dist/command-VKj84zAX.d.ts +859 -0
  169. package/dist/command-cbgO9CiG.js +1 -0
  170. package/dist/command-parts.d.ts +6 -0
  171. package/dist/command-parts.js +1 -0
  172. package/dist/command.d.ts +71 -1115
  173. package/dist/command.js +1 -1
  174. package/dist/compose-refs-Ce1vWUz0.js +1 -0
  175. package/dist/cx-CfAFHj5_.js +73 -0
  176. package/dist/cx-DhYnQ07J.js +1 -0
  177. package/dist/cx.d.ts +20 -14
  178. package/dist/cx.js +1 -1
  179. package/dist/data-table-C-FgaN3_.js +1 -0
  180. package/dist/data-table-Cw9dUo1w.js +1 -0
  181. package/dist/data-table-CwqrMtp0.js +1 -0
  182. package/dist/data-table-GUbt8mzo.d.ts +38 -0
  183. package/dist/data-table-parts.d.ts +763 -0
  184. package/dist/data-table-parts.js +1 -0
  185. package/dist/data-table.d.ts +12 -1208
  186. package/dist/data-table.js +1 -1
  187. package/dist/description-list-CjcKOOnr.d.ts +110 -0
  188. package/dist/description-list-parts.d.ts +6 -0
  189. package/dist/description-list-parts.js +1 -0
  190. package/dist/description-list.d.ts +3 -183
  191. package/dist/description-list.js +1 -1
  192. package/dist/dialog-4Ed3U7hz.js +1 -0
  193. package/dist/dialog-BDb_obii.d.ts +166 -0
  194. package/dist/dialog-BaR9D58J.js +1 -0
  195. package/dist/dialog-BkNxAcol.d.ts +467 -0
  196. package/dist/dialog-DSYuhFD5.js +1 -0
  197. package/dist/dialog-fXMCxM9W.js +1 -0
  198. package/dist/dialog-parts.d.ts +6 -0
  199. package/dist/dialog-parts.js +1 -0
  200. package/dist/dialog.d.ts +88 -2
  201. package/dist/dialog.js +1 -1
  202. package/dist/dropdown-menu-BuluRn0Z.js +1 -0
  203. package/dist/dropdown-menu-CDXlp0QT.d.ts +507 -0
  204. package/dist/dropdown-menu-parts.d.ts +6 -0
  205. package/dist/dropdown-menu-parts.js +1 -0
  206. package/dist/dropdown-menu.d.ts +57 -1
  207. package/dist/dropdown-menu.js +1 -1
  208. package/dist/empty-parts.d.ts +120 -0
  209. package/dist/empty-parts.js +1 -0
  210. package/dist/empty.d.ts +2 -216
  211. package/dist/empty.js +1 -1
  212. package/dist/field-BRYypbjO.js +1 -0
  213. package/dist/field-BVMx7HoG.js +1 -0
  214. package/dist/field-BwCq1b9R.js +1 -0
  215. package/dist/field-CYAaNexp.js +1 -0
  216. package/dist/field-DRHAcM1s.js +1 -0
  217. package/dist/field-parts.d.ts +767 -0
  218. package/dist/field-parts.js +1 -0
  219. package/dist/field.d.ts +21 -1201
  220. package/dist/field.js +1 -1
  221. package/dist/flag.d.ts +1 -1
  222. package/dist/flag.js +1 -1
  223. package/dist/float-C_vwTtzU.js +1 -0
  224. package/dist/float-JmSzKDHd.js +1 -0
  225. package/dist/float-OhVY3cf4.js +1 -0
  226. package/dist/hooks-B-Cd15iL.js +1 -0
  227. package/dist/hooks-BP_uqBsI.js +1 -0
  228. package/dist/hooks-BsOjpTgs.js +1 -0
  229. package/dist/hooks-BybaGF7O.js +1 -0
  230. package/dist/hooks-C9b-2wGy.js +1 -0
  231. package/dist/hooks-CMmpICCH.js +1 -0
  232. package/dist/hooks-CUYIUcp6.js +1 -0
  233. package/dist/hooks-DKbOd_pQ.js +1 -0
  234. package/dist/hooks-DejuqCNF.js +1 -0
  235. package/dist/hooks-GsDfo7Zl.js +1 -0
  236. package/dist/hooks-PsYFJkz2.js +1 -0
  237. package/dist/hooks-lDz_S9UG.js +1 -0
  238. package/dist/hooks.d.ts +96 -7
  239. package/dist/hooks.js +1 -1
  240. package/dist/hover-card-BEC5EQiH.js +1 -0
  241. package/dist/hover-card-parts.d.ts +160 -0
  242. package/dist/hover-card-parts.js +1 -0
  243. package/dist/hover-card.d.ts +8 -280
  244. package/dist/hover-card.js +1 -1
  245. package/dist/icon-0RoVrpGj.js +1 -0
  246. package/dist/icon-BSGMvJ0W.js +1 -0
  247. package/dist/icon-DIiKxRTh.js +1 -0
  248. package/dist/{icon-QCm1ui29.d.ts → icon-Dqn_LLrR.d.ts} +1 -1
  249. package/dist/{icon-DuIYoyft.d.ts → icon-KTcDR4--.d.ts} +1 -1
  250. package/dist/icon.d.ts +2 -2
  251. package/dist/icon.js +1 -1
  252. package/dist/icons-CVgj9Whd.js +1 -0
  253. package/dist/icons-D_4cZaL1.js +1 -0
  254. package/dist/icons-DucrvIOa.js +1 -0
  255. package/dist/icons.js +1 -1
  256. package/dist/{index-KJ06KK6t.d.ts → index-CCkilmv8.d.ts} +1 -1
  257. package/dist/input-83xaPZWK.js +1 -0
  258. package/dist/input-B78ah4AB.js +1 -0
  259. package/dist/{input-DC4nW0Sr.d.ts → input-Bvpu3ruQ.d.ts} +1 -1
  260. package/dist/input.d.ts +2 -2
  261. package/dist/input.js +1 -1
  262. package/dist/kbd-Bz_Rbpv8.js +1 -0
  263. package/dist/kbd.d.ts +1 -1
  264. package/dist/kbd.js +1 -1
  265. package/dist/{label-epgtywRz.d.ts → label-DZpKu3Pu.d.ts} +1 -1
  266. package/dist/label-DmkAp9xI.js +1 -0
  267. package/dist/label.d.ts +1 -1
  268. package/dist/label.js +1 -1
  269. package/dist/layer-container-DDOZJ0fn.js +1 -0
  270. package/dist/layer-container.d.ts +9 -1
  271. package/dist/layer-container.js +1 -1
  272. package/dist/line-chart-CBL7eCqF.js +1 -0
  273. package/dist/line-chart-CIDFDkyb.d.ts +380 -0
  274. package/dist/line-chart-parts.d.ts +6 -0
  275. package/dist/line-chart-parts.js +1 -0
  276. package/dist/line-chart.d.ts +4 -568
  277. package/dist/line-chart.js +1 -1
  278. package/dist/list-CC3Pi__V.js +1 -0
  279. package/dist/list-Cx4KNfgC.d.ts +286 -0
  280. package/dist/list-FiFQJ0BU.js +1 -0
  281. package/dist/list-parts.d.ts +6 -0
  282. package/dist/list-parts.js +1 -0
  283. package/dist/list.d.ts +3 -400
  284. package/dist/list.js +1 -1
  285. package/dist/live-region-78gbKwlB.js +1 -0
  286. package/dist/live-region.d.ts +1 -1
  287. package/dist/live-region.js +1 -1
  288. package/dist/llms.txt +33 -10
  289. package/dist/main-9d96oUPG.js +1 -0
  290. package/dist/main.d.ts +1 -1
  291. package/dist/main.js +1 -1
  292. package/dist/mantle.css +1287 -893
  293. package/dist/media-object-parts.d.ts +65 -0
  294. package/dist/media-object-parts.js +1 -0
  295. package/dist/media-object.d.ts +2 -118
  296. package/dist/media-object.js +1 -1
  297. package/dist/migrations/0017-select-owned-behavior.yml +117 -0
  298. package/dist/migrations/0018-combobox-owned-behavior.yml +1661 -0
  299. package/dist/migrations/0019-multi-select-owned-behavior.yml +1414 -0
  300. package/dist/migrations/0020-native-floats.yml +823 -0
  301. package/dist/migrations/0021-native-radio-group.yml +397 -0
  302. package/dist/migrations/0024-command-owned-behavior.yml +66 -0
  303. package/dist/migrations/0026-native-dropdown-menu.yml +351 -0
  304. package/dist/migrations/0029-data-attribute-contract.yml +1707 -0
  305. package/dist/migrations/0030-between-variant.yml +1954 -0
  306. package/dist/multi-select-parts.d.ts +487 -0
  307. package/dist/multi-select-parts.js +1 -0
  308. package/dist/multi-select-qC0BuYKD.js +1 -0
  309. package/dist/multi-select.d.ts +6 -803
  310. package/dist/multi-select.js +1 -1
  311. package/dist/otp-input-LPdkb_Fg.js +1 -0
  312. package/dist/otp-input-parts.d.ts +211 -0
  313. package/dist/otp-input-parts.js +1 -0
  314. package/dist/otp-input-zl6MVio6.js +1 -0
  315. package/dist/otp-input.d.ts +11 -252
  316. package/dist/otp-input.js +1 -1
  317. package/dist/overlay-prompt-BIzMQvx7.js +1 -0
  318. package/dist/overlay-prompt-CDnhSoPJ.js +1 -0
  319. package/dist/overlay-prompt.d.ts +57 -0
  320. package/dist/overlay-prompt.js +1 -0
  321. package/dist/pagination-B2ESEbMI.d.ts +171 -0
  322. package/dist/pagination-CxaLKZcE.js +1 -0
  323. package/dist/pagination-Df1gTCN-.js +1 -0
  324. package/dist/pagination-cursor-pagination-parts.d.ts +6 -0
  325. package/dist/pagination-cursor-pagination-parts.js +1 -0
  326. package/dist/pagination.d.ts +38 -303
  327. package/dist/pagination.js +1 -1
  328. package/dist/popover-DOd6zLvE.d.ts +226 -0
  329. package/dist/popover-DWvHbepV.js +1 -0
  330. package/dist/popover-parts.d.ts +6 -0
  331. package/dist/popover-parts.js +1 -0
  332. package/dist/popover.d.ts +60 -2
  333. package/dist/popover.js +1 -1
  334. package/dist/position-Cv3XpSur.d.ts +5 -0
  335. package/dist/progress-BE0c8GW8.js +1 -0
  336. package/dist/progress-ZhFJhv9u.js +1 -0
  337. package/dist/progress-bar-parts.d.ts +86 -0
  338. package/dist/progress-bar-parts.js +1 -0
  339. package/dist/progress-donut-parts.d.ts +94 -0
  340. package/dist/progress-donut-parts.js +1 -0
  341. package/dist/progress-mJQMhxMX.js +1 -0
  342. package/dist/progress-zDpT3TY4.d.ts +2 -0
  343. package/dist/progress.d.ts +4 -268
  344. package/dist/progress.js +1 -1
  345. package/dist/qr-code-0zh10iIE.d.ts +148 -0
  346. package/dist/qr-code-BOOubA9x.js +1 -0
  347. package/dist/qr-code-D8tBKtjP.js +1 -0
  348. package/dist/qr-code-DzJjumoc.d.ts +46 -0
  349. package/dist/qr-code-encoder.browser.d.ts +15 -0
  350. package/dist/qr-code-encoder.browser.js +1 -0
  351. package/dist/qr-code-encoder.d.ts +15 -0
  352. package/dist/qr-code-encoder.js +1 -0
  353. package/dist/qr-code-parts.d.ts +6 -0
  354. package/dist/qr-code-parts.js +1 -0
  355. package/dist/qr-code.d.ts +4 -227
  356. package/dist/qr-code.js +1 -1
  357. package/dist/query-C0e5VYNp.d.ts +440 -0
  358. package/dist/query-V5NifJGs.js +1 -0
  359. package/dist/query-filter.js +1 -1
  360. package/dist/query-parts.d.ts +6 -0
  361. package/dist/query-parts.js +1 -0
  362. package/dist/query.d.ts +3 -637
  363. package/dist/query.js +1 -1
  364. package/dist/radio-group-B9jtIbV1.d.ts +39 -0
  365. package/dist/radio-group-f3ThXQCx.js +1 -0
  366. package/dist/radio-group-parts.d.ts +249 -0
  367. package/dist/radio-group-parts.js +1 -0
  368. package/dist/radio-group-zA5DjlLg.js +1 -0
  369. package/dist/radio-group.d.ts +7 -399
  370. package/dist/radio-group.js +1 -1
  371. package/dist/sandbar-Cm2yMjEZ.js +1 -0
  372. package/dist/sandbar-DU4wpKRc.d.ts +345 -0
  373. package/dist/sandbar-parts.d.ts +6 -0
  374. package/dist/sandbar-parts.js +1 -0
  375. package/dist/sandbar.d.ts +3 -438
  376. package/dist/sandbar.js +1 -1
  377. package/dist/sandboxed-on-click-Cg3lewoG.js +1 -0
  378. package/dist/sandboxed-on-click-DOw_Jkhk.js +1 -0
  379. package/dist/sandboxed-on-click.d.ts +1 -1
  380. package/dist/sandboxed-on-click.js +1 -1
  381. package/dist/scatter-plot-1vFxkpjT.js +1 -0
  382. package/dist/scatter-plot-D25jLIVw.d.ts +388 -0
  383. package/dist/scatter-plot-parts.d.ts +6 -0
  384. package/dist/scatter-plot-parts.js +1 -0
  385. package/dist/scatter-plot.d.ts +4 -573
  386. package/dist/scatter-plot.js +1 -1
  387. package/dist/segmented-control-DuiDPKDZ.js +1 -0
  388. package/dist/segmented-control-parts.d.ts +72 -0
  389. package/dist/segmented-control-parts.js +1 -0
  390. package/dist/segmented-control.d.ts +4 -100
  391. package/dist/segmented-control.js +1 -1
  392. package/dist/select-08IEtypH.js +1 -0
  393. package/dist/select-DM2wWfOO.d.ts +478 -0
  394. package/dist/select-parts.d.ts +6 -0
  395. package/dist/select-parts.js +1 -0
  396. package/dist/select.d.ts +63 -1
  397. package/dist/select.js +1 -1
  398. package/dist/selectable-list-Ax5F2Gz1.js +1 -0
  399. package/dist/selectable-list-CyLc3EEt.d.ts +407 -0
  400. package/dist/selectable-list-GcpbbRM1.js +1 -0
  401. package/dist/selectable-list-parts.d.ts +6 -0
  402. package/dist/selectable-list-parts.js +1 -0
  403. package/dist/selectable-list.d.ts +3 -643
  404. package/dist/selectable-list.js +1 -1
  405. package/dist/separator-BB1ohsjn.js +1 -0
  406. package/dist/{separator-Ck4sPrdN.d.ts → separator-BzHNVyyv.d.ts} +1 -1
  407. package/dist/separator.d.ts +1 -1
  408. package/dist/separator.js +1 -1
  409. package/dist/sheet-5JgxVaWC.js +1 -0
  410. package/dist/sheet-parts.d.ts +732 -0
  411. package/dist/sheet-parts.js +1 -0
  412. package/dist/sheet-qYPi5MP8.js +1 -0
  413. package/dist/sheet.d.ts +11 -1224
  414. package/dist/sheet.js +1 -1
  415. package/dist/sidebar-CsC9fyPL.js +1 -0
  416. package/dist/sidebar-HDVxTNPi.js +1 -0
  417. package/dist/sidebar-OBA7L42d.d.ts +1480 -0
  418. package/dist/sidebar-parts.d.ts +6 -0
  419. package/dist/sidebar-parts.js +1 -0
  420. package/dist/sidebar.d.ts +108 -2518
  421. package/dist/sidebar.js +1 -1
  422. package/dist/skeleton-DB0oQyAx.js +1 -0
  423. package/dist/skeleton.d.ts +1 -1
  424. package/dist/skeleton.js +1 -1
  425. package/dist/skip-to-main-link-BGhAWSqB.js +1 -0
  426. package/dist/skip-to-main-link.d.ts +1 -1
  427. package/dist/skip-to-main-link.js +1 -1
  428. package/dist/slider-YlBozcPQ.js +1 -0
  429. package/dist/slider.d.ts +149 -15
  430. package/dist/slider.js +1 -1
  431. package/dist/slot-5ZSmrISx.d.ts +19 -0
  432. package/dist/slot-BxngGBJ2.js +1 -0
  433. package/dist/slot-CBcGhRdV.js +1 -0
  434. package/dist/{slot-BEMQMbk3.d.ts → slot-tuk2J6bY.d.ts} +6 -23
  435. package/dist/slot.d.ts +1 -1
  436. package/dist/slot.js +1 -1
  437. package/dist/split-button-DvJHD7cZ.js +1 -0
  438. package/dist/split-button-parts.d.ts +178 -0
  439. package/dist/split-button-parts.js +1 -0
  440. package/dist/split-button.d.ts +2 -314
  441. package/dist/split-button.js +1 -1
  442. package/dist/strata-parts.d.ts +256 -0
  443. package/dist/strata-parts.js +1 -0
  444. package/dist/strata.d.ts +4 -493
  445. package/dist/strata.js +1 -1
  446. package/dist/switch-DajWYrq3.js +1 -0
  447. package/dist/switch.d.ts +36 -4
  448. package/dist/switch.js +1 -1
  449. package/dist/{table-Ii9hHUWN.d.ts → table-C2KnE83u.d.ts} +5 -444
  450. package/dist/table-DJHK48-8.js +1 -0
  451. package/dist/table-parts.d.ts +6 -0
  452. package/dist/table-parts.js +1 -0
  453. package/dist/table.d.ts +81 -1
  454. package/dist/table.js +1 -1
  455. package/dist/tabs-36-4SlRo.js +1 -0
  456. package/dist/tabs-CC_HAqr4.d.ts +193 -0
  457. package/dist/tabs-DayeszXP.js +1 -0
  458. package/dist/tabs-headless-tabs-parts.d.ts +6 -0
  459. package/dist/tabs-headless-tabs-parts.js +1 -0
  460. package/dist/tabs-parts.d.ts +237 -0
  461. package/dist/tabs-parts.js +1 -0
  462. package/dist/tabs.d.ts +43 -420
  463. package/dist/tabs.js +1 -1
  464. package/dist/text-area-D29JTaZg.js +1 -0
  465. package/dist/text-area.d.ts +1 -1
  466. package/dist/text-area.js +1 -1
  467. package/dist/theme-D6rP5Fy8.js +1 -0
  468. package/dist/theme-switcher-PKMCyJxT.js +1 -0
  469. package/dist/theme-switcher.d.ts +23 -19
  470. package/dist/theme-switcher.js +1 -1
  471. package/dist/theme-xoFnLba6.js +1 -0
  472. package/dist/theme.d.ts +70 -65
  473. package/dist/theme.js +1 -1
  474. package/dist/time-zone-CpWYKHdp.js +1 -0
  475. package/dist/time-zone-DZ4hUJ8K.js +1 -0
  476. package/dist/time-zone.d.ts +190 -0
  477. package/dist/time-zone.js +1 -0
  478. package/dist/toast-BJZ__22c.js +1 -0
  479. package/dist/toast-Cb9IN-6e.d.ts +185 -0
  480. package/dist/toast-DM_oq-3E.js +1 -0
  481. package/dist/toast-parts.d.ts +6 -0
  482. package/dist/toast-parts.js +1 -0
  483. package/dist/toast.d.ts +7 -256
  484. package/dist/toast.js +1 -1
  485. package/dist/tokens.dark.json +31 -266
  486. package/dist/tokens.json +139 -205
  487. package/dist/tooltip-D4HZn19B.js +1 -0
  488. package/dist/tooltip-DP6Lz6jv.d.ts +180 -0
  489. package/dist/tooltip-Uy-kz0rK.d.ts +1 -0
  490. package/dist/tooltip-parts.d.ts +7 -0
  491. package/dist/tooltip-parts.js +1 -0
  492. package/dist/tooltip.d.ts +57 -1
  493. package/dist/tooltip.js +1 -1
  494. package/dist/truncated-text-B5u2AlNg.js +1 -0
  495. package/dist/truncated-text-BoXHP-cD.js +1 -0
  496. package/dist/truncated-text.d.ts +3 -5
  497. package/dist/truncated-text.js +1 -1
  498. package/dist/types.d.ts +1 -1
  499. package/dist/types.js +1 -1
  500. package/dist/typography-C2BmSH12.d.ts +148 -0
  501. package/dist/typography-parts.d.ts +6 -0
  502. package/dist/typography-parts.js +1 -0
  503. package/dist/typography.d.ts +52 -0
  504. package/dist/typography.js +1 -0
  505. package/dist/use-combobox-OhIEVioc.d.ts +23 -0
  506. package/dist/use-float-WEqqhXBE.d.ts +18 -0
  507. package/dist/use-listbox-D4uIonSN.d.ts +1 -0
  508. package/dist/utils-BN3rwHzz.js +1 -0
  509. package/dist/utils-BlLYcYik.js +1 -0
  510. package/dist/utils-C4astHJG.js +1 -0
  511. package/dist/utils-CPSttKPD.js +1 -0
  512. package/dist/utils.js +1 -1
  513. package/dist/visually-hidden.d.ts +1 -1
  514. package/dist/visually-hidden.js +1 -1
  515. package/dist/well.d.ts +2 -2
  516. package/dist/well.js +1 -1
  517. package/dist/world-map-BDd3N_Ap.d.ts +424 -0
  518. package/dist/world-map-D3c8Pq-h.js +1 -0
  519. package/dist/world-map-parts.d.ts +6 -0
  520. package/dist/world-map-parts.js +1 -0
  521. package/dist/world-map-t9U-IMKS.js +1 -0
  522. package/dist/world-map.d.ts +80 -0
  523. package/dist/world-map.js +1 -0
  524. package/package.json +15 -18
  525. package/dist/alert-BkJHDx9X.js +0 -1
  526. package/dist/anchor-Dc6IgvXV.js +0 -1
  527. package/dist/browser-only-CZfkNw5A.js +0 -1
  528. package/dist/button-B9bChDgl.js +0 -1
  529. package/dist/button-BQZ6eoD3.js +0 -1
  530. package/dist/button-D8jixIbH.js +0 -1
  531. package/dist/button-DNLTJ32M.js +0 -1
  532. package/dist/chart-BLCqzt56.js +0 -1
  533. package/dist/chart-CChZiCrt.js +0 -1
  534. package/dist/chart-CUmSu9d7.js +0 -1
  535. package/dist/chart-DtgZBAas.js +0 -2
  536. package/dist/checkbox-Cu5cgZmk.js +0 -1
  537. package/dist/choice-CCVG2hb9.js +0 -1
  538. package/dist/clsx-DUGZgXfJ.js +0 -1
  539. package/dist/clsx-Dj3RWZ2l.js +0 -1
  540. package/dist/code-BPKNY1_w.js +0 -1
  541. package/dist/cx-CK7o_rVv.js +0 -1
  542. package/dist/dialog-CIEuwNys.d.ts +0 -958
  543. package/dist/dialog-CbEEA0fl.d.ts +0 -32
  544. package/dist/dialog-DmzoDfY3.js +0 -1
  545. package/dist/dropdown-menu-CeY498yk.d.ts +0 -775
  546. package/dist/dropdown-menu-uheL0prz.js +0 -1
  547. package/dist/field-Bpvn4tQp.js +0 -1
  548. package/dist/field-Cai_4c1l.js +0 -1
  549. package/dist/icon-BudQMD2S.js +0 -1
  550. package/dist/icon-xb7d9M7X.js +0 -1
  551. package/dist/icons-DEDCLZ8B.js +0 -1
  552. package/dist/icons-DXadFwpo.js +0 -1
  553. package/dist/icons-DcesO4Ng.js +0 -1
  554. package/dist/input-DQyN6gN0.js +0 -1
  555. package/dist/input-fW8QSZEO.js +0 -1
  556. package/dist/interactive-target-BXScNeOr.js +0 -1
  557. package/dist/kbd-P1nQshWo.js +0 -1
  558. package/dist/label-DO1RlMKl.js +0 -1
  559. package/dist/layer-container-DL4yclOu.js +0 -1
  560. package/dist/list-cQZPSjfz.js +0 -1
  561. package/dist/live-region-Dhapu8a5.js +0 -1
  562. package/dist/main-CHyWYDak.js +0 -1
  563. package/dist/popover-Bei0jyfH.d.ts +0 -357
  564. package/dist/popover-DhgunktK.js +0 -1
  565. package/dist/popover-T2EyaqGK.d.ts +0 -1
  566. package/dist/primitive-D8CzV_Ft.js +0 -1
  567. package/dist/radio-group-BJQ6EOqh.d.ts +0 -27
  568. package/dist/radio-group-ggEkCi0V.js +0 -1
  569. package/dist/sandboxed-on-click-D4PL5_GR.js +0 -1
  570. package/dist/select-1xuUx_os.js +0 -1
  571. package/dist/select-BpaXHxJm.d.ts +0 -890
  572. package/dist/separator-DnvhwY2J.js +0 -1
  573. package/dist/shake-CAUpKBHe.js +0 -1
  574. package/dist/sheet-DHy_vlme.js +0 -1
  575. package/dist/skeleton-DHfyjuQi.js +0 -1
  576. package/dist/slot-B7rwscwd.js +0 -1
  577. package/dist/table-BnLdXUai.js +0 -1
  578. package/dist/theme-BNdZl352.js +0 -1
  579. package/dist/tooltip-CstGDKwy.d.ts +0 -283
  580. package/dist/tooltip-DQO40Mrq.js +0 -1
  581. package/dist/use-breakpoint-B4Kh0xE6.js +0 -1
  582. package/dist/use-callback-ref-DiOXFQzM.js +0 -1
  583. package/dist/use-composed-refs-DPYmLDSe.js +0 -1
  584. package/dist/use-copy-to-clipboard-hBL6_65i.js +0 -1
  585. package/dist/use-inert-siblings-C4RHXrZc.js +0 -1
  586. package/dist/use-is-apple-platform-Bq6_KbVX.js +0 -1
  587. package/dist/use-is-hydrated-after-paint-CrHt3OHw.js +0 -1
  588. package/dist/use-isomorphic-layout-effect-CL6iq0Bj.js +0 -1
  589. package/dist/use-matches-media-query-FfvtNKQe.js +0 -1
  590. package/dist/use-prefers-reduced-motion-Ck6dnOM9.js +0 -1
  591. package/dist/use-swipe-to-dismiss-BYdlca8r.js +0 -1
  592. /package/dist/{use-is-hydrated-BeLOGKwE.js → hooks-BeLOGKwE.js} +0 -0
  593. /package/dist/{suggestions-Ciz2vaJO.js → query-filter-Ciz2vaJO.js} +0 -0
  594. /package/dist/{direction-CvDpql3O.js → sorting-CvDpql3O.js} +0 -0
  595. /package/dist/{booleanish-BfvnW6vy.js → types-BfvnW6vy.js} +0 -0
  596. /package/dist/{css-properties-D85fCNV3.js → types-D85fCNV3.js} +0 -0
  597. /package/dist/{alternate-announcement-BkH4bOKp.js → utils-BkH4bOKp.js} +0 -0
  598. /package/dist/{copy-to-clipboard-Dd83caRw.js → utils-Dd83caRw.js} +0 -0
  599. /package/dist/{in-view-Dxv_GrUU.js → utils-Dxv_GrUU.js} +0 -0
  600. /package/dist/{data-slot-EM6s2WEU.js → utils-EM6s2WEU.js} +0 -0
  601. /package/dist/{cookie-ca4g5CKp.js → utils-ca4g5CKp.js} +0 -0
@@ -0,0 +1,424 @@
1
+ import { ComponentProps, ReactNode } from "react";
2
+ import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
3
+ import { t as WithDataSlot } from "./data-slot-BW8KQ9Xo.js";
4
+ import { a as ChartMode, h as SeriesColor, i as ChartAccessibilityProps, l as ChartDatum, m as PointShape, n as ChartRootBaseProps, r as LegendPrimitiveProps, t as TooltipPrimitiveProps } from "./chart-XvStK-oM.js";
5
+ /**
6
+ * A region of the world, in degrees: the west and east longitudes and the
7
+ * south and north latitudes of its edges. `west` is less than `east`.
8
+ */
9
+ type GeoBounds = {
10
+ west: number;
11
+ south: number;
12
+ east: number;
13
+ north: number;
14
+ };
15
+ /** A place on Earth, in degrees. */
16
+ type GeoPlace = {
17
+ longitude: number;
18
+ latitude: number;
19
+ };
20
+ /**
21
+ * Props for {@link WorldMap.Root}. Each row is one place: a longitude on the
22
+ * Root, and a latitude per composed `WorldMap.Point` series. Rows without a
23
+ * finite longitude are not plotted.
24
+ */
25
+ type WorldMapRootProps<TDatum extends ChartDatum = ChartDatum, TMode extends ChartMode = "interactive"> = Omit<ChartRootBaseProps, "stacked" | "yDomain"> & ChartAccessibilityProps<TMode> & {
26
+ /** Rows of data; each row is one point per composed `WorldMap.Point` series. */
27
+ data: readonly TDatum[];
28
+ /**
29
+ * The key of each row's longitude, in degrees east (−180 to 180). If no
30
+ * row has the key, the Root throws.
31
+ */
32
+ longitudeKey: Extract<keyof TDatum, string>;
33
+ /**
34
+ * The key of each row's name, such as an agent's hostname. The tooltip,
35
+ * the keyboard announcement, and the data table read it. A row without a
36
+ * name reads as its coordinates. When omitted, every point reads as its
37
+ * coordinates.
38
+ */
39
+ labelKey?: Extract<keyof TDatum, string>;
40
+ /**
41
+ * The key of each row's size value, such as how many agents share the
42
+ * place. A point's area follows the value: the largest value gets a 16px
43
+ * radius, and no point shrinks below 4px, so the smallest stays a target.
44
+ * Rows without a positive value take 4px. Larger points paint first, so
45
+ * a small point on top of a large one stays visible. Past 5,000 points
46
+ * the points lose their 2px surface ring, so a small point shows on a
47
+ * large one only when their colors differ. If no row has the key, the
48
+ * Root throws.
49
+ */
50
+ sizeKey?: Extract<keyof TDatum, string>;
51
+ /**
52
+ * The region the map shows, in degrees, such as the area around one
53
+ * client. The region fills the plot and keeps its shape, so the plot
54
+ * shows more of the map on its loose side. Points, connectors, and
55
+ * callouts outside the plot do not show, and the keyboard cursor skips
56
+ * those points. The data table still lists them. The map ends at the
57
+ * antimeridian, so a region that reaches past ±180° stops there. `west`
58
+ * must be less than `east`. When omitted, the map shows the whole world.
59
+ *
60
+ * @example
61
+ * ```tsx
62
+ * <WorldMap.Root bounds={{ west: -15, south: 35, east: 35, north: 62 }} … />
63
+ * ```
64
+ */
65
+ bounds?: GeoBounds;
66
+ };
67
+ /**
68
+ * Props for {@link WorldMap.Point}.
69
+ */
70
+ type WorldMapPointProps = {
71
+ /**
72
+ * The row key this series reads its latitudes from, in degrees north (−90
73
+ * to 90). If no row has the key, the map throws, so put the key in every
74
+ * row, with `null` for a row that is not in this series.
75
+ */
76
+ latitudeKey: string;
77
+ /** Display name for the legend, tooltip, and data table. Defaults to `latitudeKey`. */
78
+ label?: string;
79
+ /**
80
+ * The color the series paints: a mantle color name, the same `Color` that
81
+ * `Badge` takes, or any CSS color. Required: name every series' color on
82
+ * purpose. A series that means good or bad, such as a blocklisted agent,
83
+ * takes a functional color such as `"danger"`.
84
+ */
85
+ color: SeriesColor;
86
+ /**
87
+ * The glyph this series' points wear, mirrored by the legend key and the
88
+ * hover dot. Shape keeps series apart without color vision.
89
+ *
90
+ * @default "circle"
91
+ */
92
+ shape?: PointShape;
93
+ };
94
+ /**
95
+ * Props for {@link WorldMap.Connector}.
96
+ */
97
+ type WorldMapConnectorProps = {
98
+ /** The place the line starts, in degrees. */
99
+ from: GeoPlace;
100
+ /** The place the line ends, in degrees. */
101
+ to: GeoPlace;
102
+ /**
103
+ * The line color: a mantle color name or any CSS color.
104
+ *
105
+ * @default "neutral"
106
+ */
107
+ color?: SeriesColor;
108
+ /**
109
+ * Whether the line is dashed or solid.
110
+ *
111
+ * @default "dashed"
112
+ */
113
+ lineStyle?: "dashed" | "solid";
114
+ };
115
+ /**
116
+ * Props for {@link WorldMap.Callout}.
117
+ */
118
+ type WorldMapCalloutProps = Omit<ComponentProps<"div">, "children"> & WithAsChild & WithDataSlot & GeoPlace & {
119
+ /**
120
+ * Which side of the place the callout sits on. When that side has no
121
+ * room, the callout flips to the other side; near the plot's edge it
122
+ * moves to stay inside the plot.
123
+ *
124
+ * @default "top"
125
+ */
126
+ side?: "top" | "bottom";
127
+ children: ReactNode;
128
+ };
129
+ /**
130
+ * Props for {@link WorldMap.Tooltip}.
131
+ */
132
+ type WorldMapTooltipProps = Omit<TooltipPrimitiveProps, "labelFormat" | "valueFormat" | "indicator"> & {
133
+ /**
134
+ * The series color key beside each series name: a dot (default) or nothing.
135
+ *
136
+ * @default "dot"
137
+ */
138
+ indicator?: "dot" | "none";
139
+ };
140
+ /**
141
+ * Props for {@link WorldMap.Legend}.
142
+ */
143
+ type WorldMapLegendProps = LegendPrimitiveProps;
144
+ /**
145
+ * The root of a world map: owns the data, the Robinson projection, the canvas
146
+ * renderer, and the whole interaction contract (the tooltip, keyboard
147
+ * stepping from west to east with polite announcements, an sr-only
148
+ * description, an sr-only data table, Enter/Space + click activation).
149
+ * Hovering hits the nearest point within 24px. With `sizeKey`, a pointer over
150
+ * a point hits the top point there, not a neighbor with a nearer center. The
151
+ * keyboard cursor skips a row that has no point in the plot. Such a row has
152
+ * no latitude in any series, or, with `bounds`, its point is outside the plot.
153
+ *
154
+ * A Root mounts dormant: a shell of the plot, the named overlay, and its
155
+ * sr-only description. It builds its canvas once it comes within one viewport
156
+ * of the visible area, takes focus, or prints, and it mounts the sr-only data
157
+ * table once focus lands inside it.
158
+ *
159
+ * **Live data.** Pass new rows whenever they arrive. A point at a place its
160
+ * series did not have gets one ring that starts at the point's edge, grows,
161
+ * and fades in 900ms. A moved point is a new place. A point that changes
162
+ * series at one place, such as an agent that goes offline, gets a ring too.
163
+ * The map plays no ring:
164
+ *
165
+ * - under reduced motion, or with `animate={false}`
166
+ * - while it is off screen
167
+ * - for its first rows
168
+ * - for an update that adds more than 48 places
169
+ * - when it has more than 5,000 rows
170
+ *
171
+ * At most 48 rings run at one time.
172
+ *
173
+ * The Root's own subtree is addressable by slot: `world-map` on the wrapper,
174
+ * then `world-map-plot`, `world-map-canvas`, `world-map-crosshair`,
175
+ * `world-map-hover-band`, `world-map-markers`, `world-map-tooltip`,
176
+ * `world-map-description`, and, once focus lands inside the map,
177
+ * `world-map-data-table`. A world map shows one marker dot on the hit point,
178
+ * and never the crosshair or the band. That dot carries `chart-active-point`
179
+ * plus a `data-shape` of `"circle"`, `"square"`, `"triangle"`, `"diamond"`,
180
+ * `"triangle-down"`, `"plus"`, `"cross"`, or `"star"`, naming the glyph its
181
+ * series wears. The canvas and the three hover layers are engine-owned:
182
+ * absent from server HTML and from a dormant map. The canvas arrives at
183
+ * activation, and the layers arrive on the first hover or keyboard step.
184
+ *
185
+ * **Data attributes:**
186
+ *
187
+ * | Data Attribute | Value | Description |
188
+ * | --- | --- | --- |
189
+ * | `data-slot` | `"world-map-description"` | The `sr-only` description the overlay's `aria-describedby` points at: the point count, the series labels, and, on an interactive map, the keyboard instructions. Omitted when `mode="decorative"`. |
190
+ * | `data-slot` | `"world-map-data-table"` | The `sr-only` data table: one row for each of the first 150 points from west to east, with its name, series, latitude, longitude, and, with `sizeKey`, its size value. Mounts once focus lands inside the map (`data-engaged` appears) and stays. Interactive maps only. |
191
+ * | `data-engaged` | present once engaged | On the Root. Appears once focus lands inside the map, and never goes away. Interactive maps only. |
192
+ *
193
+ * **CSS variables (public API):**
194
+ *
195
+ * | CSS Variable | Default | Description |
196
+ * | --- | --- | --- |
197
+ * | `--world-map-land-color` | `var(--color-neutral-200)` | The land fill. |
198
+ * | `--world-map-ocean-color` | `var(--color-neutral-50)` | The fill inside the world's outline. |
199
+ *
200
+ * @see https://mantle.ngrok.com/components/preview/world-map#worldmaproot
201
+ *
202
+ * @example
203
+ * ```tsx
204
+ * const agents = [
205
+ * { name: "sfo-edge-1", longitude: -122.42, latitude: 37.77, sessions: 12 },
206
+ * { name: "fra-edge-1", longitude: 8.68, latitude: 50.11, sessions: 30 },
207
+ * { name: "syd-edge-1", longitude: 151.21, latitude: -33.87, sessions: 4 },
208
+ * ];
209
+ *
210
+ * <WorldMap.Root
211
+ * data={agents}
212
+ * longitudeKey="longitude"
213
+ * labelKey="name"
214
+ * sizeKey="sessions"
215
+ * aria-label="Agents by location"
216
+ * >
217
+ * <WorldMap.Graticule />
218
+ * <WorldMap.Point latitudeKey="latitude" label="Agents" color="blue" />
219
+ * <WorldMap.Tooltip />
220
+ * <WorldMap.Legend />
221
+ * </WorldMap.Root>
222
+ * ```
223
+ */
224
+ declare const Root: <TDatum extends ChartDatum = ChartDatum, TMode extends ChartMode = "interactive">(props: WorldMapRootProps<TDatum, TMode>) => import("react").JSX.Element;
225
+ /**
226
+ * One point series. Renders nothing itself: it registers the series with the
227
+ * map, which paints its points on canvas over the land.
228
+ *
229
+ * @see https://mantle.ngrok.com/components/preview/world-map#worldmappoint
230
+ *
231
+ * @example
232
+ * ```tsx
233
+ * <WorldMap.Root
234
+ * data={agents}
235
+ * longitudeKey="longitude"
236
+ * labelKey="name"
237
+ * sizeKey="sessions"
238
+ * aria-label="Agents by location"
239
+ * >
240
+ * <WorldMap.Graticule />
241
+ * <WorldMap.Point latitudeKey="latitude" label="Agents" color="blue" />
242
+ * <WorldMap.Tooltip />
243
+ * <WorldMap.Legend />
244
+ * </WorldMap.Root>
245
+ * ```
246
+ */
247
+ declare const Point: ({ latitudeKey, ...props }: WorldMapPointProps) => null;
248
+ /**
249
+ * Meridians and parallels every 30°, painted on canvas under the land
250
+ * (renderless). Omit the part to omit the graticule.
251
+ *
252
+ * @see https://mantle.ngrok.com/components/preview/world-map#worldmapgraticule
253
+ *
254
+ * @example
255
+ * ```tsx
256
+ * <WorldMap.Root
257
+ * data={agents}
258
+ * longitudeKey="longitude"
259
+ * labelKey="name"
260
+ * sizeKey="sessions"
261
+ * aria-label="Agents by location"
262
+ * >
263
+ * <WorldMap.Graticule />
264
+ * <WorldMap.Point latitudeKey="latitude" label="Agents" color="blue" />
265
+ * <WorldMap.Tooltip />
266
+ * <WorldMap.Legend />
267
+ * </WorldMap.Root>
268
+ * ```
269
+ */
270
+ declare const Graticule: () => null;
271
+ /**
272
+ * Customizes the hover/keyboard tooltip readout. The tooltip itself is part
273
+ * of `WorldMap.Root`'s interaction contract and renders even when this part
274
+ * is absent. The default readout names the point (its `labelKey` value, else
275
+ * its coordinates), then its coordinates, its size value when the map has a
276
+ * `sizeKey`, and its series. Compose this part to append a footer, or replace
277
+ * the readout through the render-prop `children`, which receives the hovered
278
+ * row as `datum`.
279
+ *
280
+ * **Structure.** A `children` readout renders inside a
281
+ * `<div data-slot="world-map-tooltip-label">`. When it goes away, React
282
+ * removes that div instead of your own text nodes: a browser translation
283
+ * engine reparents a text node, and a removal aimed at one throws. The div is
284
+ * `display: contents`, so it lays out nothing of its own.
285
+ *
286
+ * **Data attributes:**
287
+ *
288
+ * | Data Attribute | Value | Description |
289
+ * | --- | --- | --- |
290
+ * | `data-slot` | `"world-map-tooltip-label"` | On the `<div>` wrapping a `children` readout. The default readout has none. |
291
+ *
292
+ * @see https://mantle.ngrok.com/components/preview/world-map#worldmaptooltip
293
+ *
294
+ * @example
295
+ * ```tsx
296
+ * <WorldMap.Root
297
+ * data={agents}
298
+ * longitudeKey="longitude"
299
+ * labelKey="name"
300
+ * sizeKey="sessions"
301
+ * aria-label="Agents by location"
302
+ * >
303
+ * <WorldMap.Graticule />
304
+ * <WorldMap.Point latitudeKey="latitude" label="Agents" color="blue" />
305
+ * <WorldMap.Tooltip footer="Select a point to open the agent" />
306
+ * <WorldMap.Legend />
307
+ * </WorldMap.Root>
308
+ * ```
309
+ */
310
+ declare const Tooltip: ({ indicator, ...props }: WorldMapTooltipProps) => null;
311
+ /**
312
+ * The legend: series names keyed by their point glyphs, rendered as real DOM
313
+ * in flow below the map. Compose it on every map with more than one series,
314
+ * so identity never relies on color alone. It renders nothing for a single
315
+ * series.
316
+ *
317
+ * **Structure.** A `children` render prop renders inside a
318
+ * `<div data-slot="world-map-legend-label">`, which is `display: contents`.
319
+ *
320
+ * **Data attributes:**
321
+ *
322
+ * | Data Attribute | Value | Description |
323
+ * | --- | --- | --- |
324
+ * | `data-slot` | `"world-map-legend"` | The legend list. |
325
+ * | `data-slot` | `"world-map-legend-label"` | On the `<div>` wrapping a `children` render prop. The default legend has none. |
326
+ * | `data-shape` | `"circle"` \| `"square"` \| `"triangle"` \| `"diamond"` \| `"triangle-down"` \| `"plus"` \| `"cross"` \| `"star"` | On each series' swatch, naming the glyph its `WorldMap.Point` wears. |
327
+ *
328
+ * @see https://mantle.ngrok.com/components/preview/world-map#worldmaplegend
329
+ *
330
+ * @example
331
+ * ```tsx
332
+ * <WorldMap.Root
333
+ * data={agents}
334
+ * longitudeKey="longitude"
335
+ * labelKey="name"
336
+ * aria-label="Agents by status"
337
+ * >
338
+ * <WorldMap.Graticule />
339
+ * <WorldMap.Point latitudeKey="online" label="Online" color="success" />
340
+ * <WorldMap.Point latitudeKey="offline" label="Offline" color="neutral" shape="square" />
341
+ * <WorldMap.Tooltip />
342
+ * <WorldMap.Legend />
343
+ * </WorldMap.Root>
344
+ * ```
345
+ */
346
+ declare const Legend: (props: WorldMapLegendProps) => import("react").JSX.Element;
347
+ /**
348
+ * A line between two places, such as from a client to the ngrok edge that
349
+ * received its request. It follows the great circle, the shortest route on
350
+ * the globe, and paints on canvas under the points (renderless). Where the
351
+ * line crosses the antimeridian, it runs to the edge of the map and starts
352
+ * again at the opposite edge. The line is decoration: name both places with
353
+ * points or a callout, so a reader who cannot see the line gets the same
354
+ * facts.
355
+ *
356
+ * @see https://mantle.ngrok.com/components/preview/world-map#worldmapconnector
357
+ *
358
+ * @example
359
+ * ```tsx
360
+ * const client = { longitude: -87.63, latitude: 41.88 };
361
+ * const pop = { longitude: -82.99, latitude: 39.96 };
362
+ *
363
+ * <WorldMap.Root
364
+ * data={[
365
+ * { name: "Chicago, Illinois", ...client, client: client.latitude, pop: null },
366
+ * { name: "ngrok Ohio", ...pop, client: null, pop: pop.latitude },
367
+ * ]}
368
+ * longitudeKey="longitude"
369
+ * labelKey="name"
370
+ * bounds={{ west: -105, south: 30, east: -65, north: 50 }}
371
+ * aria-label="Client location"
372
+ * >
373
+ * <WorldMap.Point latitudeKey="client" label="Client" color="success" />
374
+ * <WorldMap.Point latitudeKey="pop" label="ngrok edge" color="accent" shape="diamond" />
375
+ * <WorldMap.Connector from={client} to={pop} color="accent" />
376
+ * <WorldMap.Callout {...client}>Chicago, Illinois, United States</WorldMap.Callout>
377
+ * </WorldMap.Root>
378
+ * ```
379
+ */
380
+ declare const Connector: ({ from, to, color, lineStyle }: WorldMapConnectorProps) => null;
381
+ /**
382
+ * A card that stays over one place, such as the location of the client on a
383
+ * request's detail page. Unlike the tooltip, it shows without a hover. It is
384
+ * real DOM after the plot, so a screen reader reads it as page content. It
385
+ * shows once the map has painted, and hides while its place is outside the
386
+ * plot. When its content changes size, the map places it again. It takes no
387
+ * pointer events, so the points under it still hover; add
388
+ * `pointer-events-auto` to `className` for a callout with a link. Pass
389
+ * `asChild` to render your own element, such as a `Card`, in place of the
390
+ * `<div>`.
391
+ *
392
+ * **Data attributes:**
393
+ *
394
+ * | Data Attribute | Value | Description |
395
+ * | --- | --- | --- |
396
+ * | `data-slot` | `"world-map-callout"` | The callout. |
397
+ * | `data-side` | `"top"` \| `"bottom"` | The side of the place the callout sits on after placement: `side`, or the other side after a flip. |
398
+ *
399
+ * @see https://mantle.ngrok.com/components/preview/world-map#worldmapcallout
400
+ *
401
+ * @example
402
+ * ```tsx
403
+ * const client = { longitude: -87.63, latitude: 41.88 };
404
+ * const pop = { longitude: -82.99, latitude: 39.96 };
405
+ *
406
+ * <WorldMap.Root
407
+ * data={[
408
+ * { name: "Chicago, Illinois", ...client, client: client.latitude, pop: null },
409
+ * { name: "ngrok Ohio", ...pop, client: null, pop: pop.latitude },
410
+ * ]}
411
+ * longitudeKey="longitude"
412
+ * labelKey="name"
413
+ * bounds={{ west: -105, south: 30, east: -65, north: 50 }}
414
+ * aria-label="Client location"
415
+ * >
416
+ * <WorldMap.Point latitudeKey="client" label="Client" color="success" />
417
+ * <WorldMap.Point latitudeKey="pop" label="ngrok edge" color="accent" shape="diamond" />
418
+ * <WorldMap.Connector from={client} to={pop} color="accent" />
419
+ * <WorldMap.Callout {...client}>Chicago, Illinois, United States</WorldMap.Callout>
420
+ * </WorldMap.Root>
421
+ * ```
422
+ */
423
+ declare const Callout: ({ longitude, latitude, side, asChild, className, children, ref, "data-slot": dataSlot, ...props }: WorldMapCalloutProps) => import("react").JSX.Element;
424
+ export { Point as a, WorldMapCalloutProps as c, WorldMapPointProps as d, WorldMapRootProps as f, Legend as i, WorldMapConnectorProps as l, GeoBounds as m, Connector as n, Root as o, WorldMapTooltipProps as p, Graticule as r, Tooltip as s, Callout as t, WorldMapLegendProps as u };
@@ -0,0 +1 @@
1
+ const e={precision:10,rings:/* @__PURE__ */ "fd@~p@DHDHh@Aj@?VE?AJCm@?i@@OGIG.nbBtp@d@@XEJG@?JEKGe@BSDMD.f[vo@YHGJAFAH^D^Dd@Bh@Bn@?XGCGi@EQEKGIGKEKII?]C.vjA|l@YBWCJDPDZARECG.nmA|l@_@FJAXAZCME.z|@|k@UBUAKHNAV@VAZ@RCHGKCYB.xi@jk@CFBFDFV@TBX?IGV@TBNE?GUGMAU?EIAG?OIIQAKFCDGHGF.noB|s@A?OKc@FCACAGAEAA?C?A?[FYGC?y@CSBI@]Fw@Bm@DkADy@EuABo@Ds@Ew@ECGlAA`ACNGt@CCIGGEEBI^CNG\\Eo@@m@C]Da@Ea@EOGFGXCZEh@Ab@Ad@ALGXENGDUI@QDa@A_@AOF_@AYCYEUE]A?GFGEEYCKD]CWC[?YA[EUCWCO@M?[A[BY?[CY@]@[?[?]?[?SEWCYBWAUGKDGFKDSEWF[@UD]AWC]@[@[BIGLGHEVAJGBEFOOBY?Y?W@SDGF[?YAYCYASBYAQMOFUBYAOFY?W@WDOGGGSF[ASBMFYASCUEWA[CYAQCKEEIBGDGDEDGDG?GAGGEGICEBI@GGGKEKGMEOEGGKEKES?KEMCOAMEKEOAKBFFRDFBNCN@LBLDHD@F?FIDLBP@JDJDJHBFGFIDOBODGFCFEFIDEFAPEFAFEF@HJFJDXBFDLF\\DXBVBZBNF^@b@A^@^?EF]BUDKDTD`@AZD@F?FWDCFWFk@@c@D[Dc@Dq@Bo@Ba@De@FSFIFWE_@Ec@Ei@Ea@Eq@?q@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+1,6 @@
1
+ /**
2
+ * The parts of the `WorldMap` namespace. `index.ts` imports them as one module
3
+ * namespace, so a bundler keeps only the parts a consumer reads.
4
+ */
5
+ import { a as Point, i as Legend, n as Connector, o as Root, r as Graticule, s as Tooltip, t as Callout } from "./world-map-BDd3N_Ap.js";
6
+ export { Callout, Connector, Graticule, Legend, Point, Root, Tooltip };
@@ -0,0 +1 @@
1
+ export{t as Callout,n as Connector,r as Graticule,i as Legend,a as Point,o as Root,s as Tooltip}from"./world-map-t9U-IMKS.js";
@@ -0,0 +1 @@
1
+ "use client";import{createContext as e,use as t,useCallback as n,useId as r,useLayoutEffect as i,useMemo as a,useRef as o,useState as s}from"react";import c from"tiny-invariant";import{t as l}from"./compose-refs-Ce1vWUz0.js";import{n as u}from"./cx-CfAFHj5_.js";import{t as d}from"./utils-EM6s2WEU.js";import{f,i as p,n as m,o as h,r as g,t as _,u as v}from"./chart-B0n2xyYi.js";import{i as y}from"./chart-Bybyh2Dc.js";import{T as b,b as x,v as S}from"./chart-BmZoTjRu.js";import{n as C,t as w}from"./chart-wTwYzUMJ.js";import{t as T}from"./slot-CBcGhRdV.js";import{t as E}from"./world-map-D3c8Pq-h.js";import{Fragment as D,jsx as O,jsxs as k}from"react/jsx-runtime";const A=e=>{let{longitudeKey:t,labelKey:n,sizeKey:r,bounds:o,children:l}=e,{west:d,south:f,east:p,north:m}=o??{};c(d==null||p==null||d<p,`WorldMap.Root bounds.west must be less than bounds.east.`);let[h]=s(()=>new w(E,o??null)),g=a(()=>U(n,r),[n,r]);return i(()=>{h.setBounds(d==null||f==null||p==null||m==null?null:{west:d,south:f,east:p,north:m})},[h,d,f,p,m]),/* @__PURE__ */ O(_,{...e,kind:`scatter`,componentName:`WorldMap`,slotName:`world-map`,paintBackend:y,scatterView:h.createView,readout:g,xKey:t,xScale:`linear`,className:u(`aspect-2/1`,e.className),children:/* @__PURE__ */ O(F,{value:h,children:l})})},j=({latitudeKey:e,...t})=>h(`WorldMap.Point`,`scatter`,{...t,dataKey:e}),M=()=>p(`WorldMap.Graticule`,{}),N=({indicator:e,...t})=>m(`WorldMap.Tooltip`,{...t,indicator:e===`none`?`none`:`line`}),P=e=>/* @__PURE__ */ O(v,{partName:`WorldMap.Legend`,slotName:`world-map`,...e}),F=e(null),I=e=>{let n=t(F);return c(n!=null,`${e} must be composed inside WorldMap.Root.`),n},L=({from:e,to:t,color:n=`neutral`,lineStyle:a=`dashed`})=>{let o=I(`WorldMap.Connector`),s=r(),{longitude:c,latitude:l}=e,{longitude:u,latitude:d}=t;return i(()=>{o.connectors.set(s,{from:{longitude:c,latitude:l},to:{longitude:u,latitude:d},color:n,lineStyle:a}),o.changed()},[o,s,c,l,u,d,n,a]),i(()=>()=>{o.connectors.delete(s),o.changed()},[o,s]),null},R=({longitude:e,latitude:t,side:i=`top`,asChild:a=!1,className:s,children:c,ref:f,"data-slot":p,...m})=>{let h=I(`WorldMap.Callout`),g=r(),_=o(null),v=n(n=>{let r={longitude:e,latitude:t},a=_.current?.element===n?_.current:null,o=a==null?null:{width:a.width,height:a.height};h.callouts.set(g,{element:n,place:r,side:i,size:o}),o!=null&&h.calloutsChanged();let s=x(n,()=>{let e=n.offsetWidth,t=n.offsetHeight,a=_.current;(a?.element!==n||a.width!==e||a.height!==t)&&(_.current={element:n,width:e,height:t},h.callouts.set(g,{element:n,place:r,side:i,size:{width:e,height:t}}),h.calloutsChanged())},{box:`border-box`});return()=>{s(),h.callouts.delete(g)}},[h,g,e,t,i]),y=l(v,f);return/* @__PURE__ */ O(a?T:`div`,{"data-slot":d(p,`world-map-callout`),"data-side":i,ref:y,className:u(`bg-popover border-popover text-strong pointer-events-none invisible absolute left-0 top-0 rounded-md border px-2.5 py-1.5 text-xs shadow-md`,s),...m,children:c})},z={x:`longitudeKey`,series:`latitudeKey`},B=(e,t,n)=>{let r=t==null?void 0:b(e,t);return typeof r==`string`&&r!==``||typeof r==`number`?String(r):C(n.longitude,n.latitude)},V=(e,t)=>{let n=t==null?void 0:b(e,t);return typeof n==`number`&&Number.isFinite(n)?`${t}: ${S(n)}`:null},H=e=>({longitude:typeof e.xValue==`number`?e.xValue:NaN,latitude:e.points[0]?.value??NaN}),U=(e,t)=>({keyNames:z,Tooltip:({hover:n,config:r})=>{if(n.points.length===0)return null;let i=H(n),a=C(i.longitude,i.latitude),o=B(n.datum,e,i),s=V(n.datum,t),c=r?.footer;return/* @__PURE__ */ k(D,{children:[/* @__PURE__ */ O(`div`,{className:`text-strong font-medium`,children:o}),o!==a&&/* @__PURE__ */ O(`div`,{className:`text-muted tabular-nums`,children:a}),s!=null&&/* @__PURE__ */ O(`div`,{className:`text-muted tabular-nums`,children:s}),/* @__PURE__ */ O(`div`,{className:`mt-1 grid gap-1`,children:n.points.map(e=>/* @__PURE__ */ k(`div`,{className:`flex items-center gap-1.5`,children:[r?.indicator!==`none`&&/* @__PURE__ */ O(`span`,{"aria-hidden":!0,className:`forced-color-adjust-none size-2 shrink-0 rounded-full`,style:{backgroundColor:e.color}}),/* @__PURE__ */ O(`span`,{className:`text-muted`,children:e.label})]},e.dataKey))}),c!=null&&/* @__PURE__ */ O(`div`,{className:`text-muted mt-1`,children:typeof c==`function`?c(n):c})]})},announce:n=>{if(n.points.length===0)return``;let r=H(n),i=C(r.longitude,r.latitude),a=B(n.datum,e,r),o=a===i?a:`${a}, ${i}`,s=V(n.datum,t);return`${o}. ${n.points.map(e=>e.label).join(`, `)}${s==null?``:`, ${s}`}`},describe:(e,t)=>{let n=t?S(e.count):String(e.count);return{sentence:e.count===0?`World map with no points.`:`World map with ${n} ${e.count===1?`point`:`points`}.`,instructions:` Use the left and right arrow keys to move between points from west to east, Page Up and Page Down to jump by a tenth of the points, Home and End to jump to the westernmost and easternmost, Enter or Space to activate the current point, and Escape to dismiss the readout.`}},DataTable:n=>/* @__PURE__ */ O(W,{...n,labelKey:e,sizeKey:t})}),W=({data:e,label:t,labelledBy:n,slotName:r,store:i,xKey:a,labelKey:o,sizeKey:s})=>{let c=f(i),l=g(t,n),u=e.flatMap((e,t)=>{let n=b(e,a);return typeof n!=`number`||!Number.isFinite(n)?[]:c.flatMap(({dataKey:r,label:i})=>{let a=b(e,r);return typeof a==`number`&&Number.isFinite(a)?[{datum:e,rowIndex:t,dataKey:r,seriesLabel:i,longitude:n,latitude:a}]:[]})}).toSorted((e,t)=>e.longitude-t.longitude||e.rowIndex-t.rowIndex);if(u.length===0)return null;let d=`${l==null?`Map data`:`${l}: map data`}${u.length>150?`. Showing the first 150 of ${u.length} points, from west to east.`:`.`}`;return/* @__PURE__ */ O(`div`,{className:`sr-only`,"data-slot":`${r}-data-table`,children:/* @__PURE__ */ k(`table`,{children:[/* @__PURE__ */ O(`caption`,{children:d}),/* @__PURE__ */ O(`thead`,{children:/* @__PURE__ */ k(`tr`,{children:[/* @__PURE__ */ O(`th`,{scope:`col`,children:`Point`}),/* @__PURE__ */ O(`th`,{scope:`col`,children:`Series`}),/* @__PURE__ */ O(`th`,{scope:`col`,children:`Latitude`}),/* @__PURE__ */ O(`th`,{scope:`col`,children:`Longitude`}),s!=null&&/* @__PURE__ */ O(`th`,{scope:`col`,children:s})]})}),/* @__PURE__ */ O(`tbody`,{children:u.slice(0,150).map(e=>/* @__PURE__ */ k(`tr`,{children:[/* @__PURE__ */ O(`th`,{scope:`row`,children:B(e.datum,o,e)}),/* @__PURE__ */ O(`td`,{children:e.seriesLabel}),/* @__PURE__ */ O(`td`,{"data-value":e.latitude,children:S(e.latitude)}),/* @__PURE__ */ O(`td`,{"data-value":e.longitude,children:S(e.longitude)}),s!=null&&/* @__PURE__ */ O(G,{datum:e.datum,sizeKey:s})]},`${e.dataKey}:${e.rowIndex}`))})]})})},G=({datum:e,sizeKey:t})=>{let n=b(e,t);return typeof n==`number`&&Number.isFinite(n)?/* @__PURE__ */ O(`td`,{"data-value":n,children:S(n)}):/* @__PURE__ */ O(`td`,{})};export{j as a,P as i,L as n,A as o,M as r,N as s,R as t};
@@ -0,0 +1,80 @@
1
+ /**
2
+ * Re-exports for the World Map component.
3
+ *
4
+ * @see https://mantle.ngrok.com/components/preview/world-map
5
+ */
6
+ import { a as ChartMode, u as ChartDatumEvent } from "./chart-XvStK-oM.js";
7
+ import * as WorldMapParts from "./world-map-parts.js";
8
+ import { c as WorldMapCalloutProps, d as WorldMapPointProps, f as WorldMapRootProps, l as WorldMapConnectorProps, m as GeoBounds, p as WorldMapTooltipProps, u as WorldMapLegendProps } from "./world-map-BDd3N_Ap.js";
9
+ /**
10
+ * A canvas-rendered world map that plots points by longitude and latitude on
11
+ * the Robinson projection, such as ngrok agents placed by their IP address.
12
+ * Robinson bends the meridians so no region swells the way Mercator swells
13
+ * the poles, which keeps a point's place and the land around it honest.
14
+ *
15
+ * The map is a chart:
16
+ *
17
+ * - Hover and the keyboard reach each point the plot shows.
18
+ * - The tooltip and polite announcements name the point.
19
+ * - The sr-only data table lists the first 150 points from west to east.
20
+ * - A point at a new place pulses once.
21
+ *
22
+ * Size points by a count (`sizeKey`) when many share one place, as IP
23
+ * geolocation puts many agents in one city. For one request, zoom to the
24
+ * client's region (`bounds`), keep a card over its place (`Callout`), and
25
+ * draw a line to the ngrok edge (`Connector`).
26
+ *
27
+ * **CSS variables (public API):**
28
+ *
29
+ * | CSS Variable | Default | Description |
30
+ * | --- | --- | --- |
31
+ * | `--world-map-land-color` | `var(--color-neutral-200)` | The land fill. |
32
+ * | `--world-map-ocean-color` | `var(--color-neutral-50)` | The fill inside the world's outline. |
33
+ *
34
+ * Set a variable on `Root` to restyle one map:
35
+ * `className="[--world-map-land-color:var(--color-neutral-300)]"`.
36
+ *
37
+ * @useWhen Show where things are in the world: agents, endpoints, or edge locations placed by longitude and latitude, or one request's client and the ngrok edge that received it.
38
+ *
39
+ * @siblings
40
+ * - `ScatterPlot`: the two values are measures, not a place on Earth.
41
+ * - `DataTable`: a reader needs to sort, filter, or act on each place more than see where it is.
42
+ *
43
+ * @see https://mantle.ngrok.com/components/preview/world-map
44
+ *
45
+ * @example
46
+ * Composition:
47
+ * ```
48
+ * WorldMap.Root
49
+ * ├── WorldMap.Graticule
50
+ * ├── WorldMap.Point (one per series)
51
+ * ├── WorldMap.Connector
52
+ * ├── WorldMap.Callout
53
+ * ├── WorldMap.Tooltip
54
+ * └── WorldMap.Legend
55
+ * ```
56
+ *
57
+ * @example
58
+ * ```tsx
59
+ * const agents = [
60
+ * { name: "sfo-edge-1", longitude: -122.42, latitude: 37.77, sessions: 12 },
61
+ * { name: "fra-edge-1", longitude: 8.68, latitude: 50.11, sessions: 30 },
62
+ * { name: "syd-edge-1", longitude: 151.21, latitude: -33.87, sessions: 4 },
63
+ * ];
64
+ *
65
+ * <WorldMap.Root
66
+ * data={agents}
67
+ * longitudeKey="longitude"
68
+ * labelKey="name"
69
+ * sizeKey="sessions"
70
+ * aria-label="Agents by location"
71
+ * >
72
+ * <WorldMap.Graticule />
73
+ * <WorldMap.Point latitudeKey="latitude" label="Agents" color="blue" />
74
+ * <WorldMap.Tooltip />
75
+ * <WorldMap.Legend />
76
+ * </WorldMap.Root>
77
+ * ```
78
+ */
79
+ declare const WorldMap: typeof WorldMapParts;
80
+ export { type ChartDatumEvent, type ChartMode, type GeoBounds, WorldMap, type WorldMapCalloutProps, type WorldMapConnectorProps, type WorldMapLegendProps, type WorldMapPointProps, type WorldMapRootProps, type WorldMapTooltipProps };
@@ -0,0 +1 @@
1
+ export*as WorldMap from"./world-map-parts.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngrok/mantle",
3
- "version": "0.94.1",
3
+ "version": "0.95.0",
4
4
  "description": "mantle is ngrok's UI library and design system.",
5
5
  "homepage": "https://mantle.ngrok.com",
6
6
  "license": "MIT",
@@ -29,6 +29,14 @@
29
29
  "sideEffects": [
30
30
  "*.css"
31
31
  ],
32
+ "imports": {
33
+ "#qr-code-encoder": {
34
+ "workerd": "./dist/qr-code-encoder.js",
35
+ "edge-light": "./dist/qr-code-encoder.js",
36
+ "browser": "./dist/qr-code-encoder.browser.js",
37
+ "default": "./dist/qr-code-encoder.js"
38
+ }
39
+ },
32
40
  "exports": {
33
41
  "./mantle.css": {
34
42
  "style": "./dist/mantle.css",
@@ -90,6 +98,7 @@
90
98
  "./media-object": "./dist/media-object.js",
91
99
  "./multi-select": "./dist/multi-select.js",
92
100
  "./otp-input": "./dist/otp-input.js",
101
+ "./overlay-prompt": "./dist/overlay-prompt.js",
93
102
  "./pagination": "./dist/pagination.js",
94
103
  "./popover": "./dist/popover.js",
95
104
  "./progress": "./dist/progress.js",
@@ -118,33 +127,21 @@
118
127
  "./text-area": "./dist/text-area.js",
119
128
  "./theme": "./dist/theme.js",
120
129
  "./theme-switcher": "./dist/theme-switcher.js",
130
+ "./time-zone": "./dist/time-zone.js",
121
131
  "./toast": "./dist/toast.js",
122
132
  "./tooltip": "./dist/tooltip.js",
123
133
  "./truncated-text": "./dist/truncated-text.js",
134
+ "./typography": "./dist/typography.js",
124
135
  "./types": "./dist/types.js",
125
136
  "./utils": "./dist/utils.js",
126
137
  "./visually-hidden": "./dist/visually-hidden.js",
127
- "./well": "./dist/well.js"
138
+ "./well": "./dist/well.js",
139
+ "./world-map": "./dist/world-map.js"
128
140
  },
129
141
  "dependencies": {
130
- "@ariakit/react": "0.4.43",
131
- "@headlessui/react": "2.2.10",
132
- "@radix-ui/react-dialog": "1.3.1",
133
- "@radix-ui/react-dropdown-menu": "2.2.1",
134
- "@radix-ui/react-hover-card": "1.2.1",
135
- "@radix-ui/react-popover": "1.3.1",
136
- "@radix-ui/react-progress": "1.2.1",
137
- "@radix-ui/react-select": "2.4.1",
138
- "@radix-ui/react-slider": "1.6.1",
139
- "@radix-ui/react-slot": "1.5.0",
140
- "@radix-ui/react-switch": "1.4.1",
141
- "@radix-ui/react-tabs": "1.2.1",
142
- "@radix-ui/react-tooltip": "1.4.1",
143
142
  "@tanstack/react-table": "9.3.1",
144
- "@tanstack/react-virtual": "3.14.26",
143
+ "@tanstack/react-virtual": "3.14.28",
145
144
  "class-variance-authority": "0.7.1",
146
- "cmdk": "1.1.1",
147
- "input-otp": "1.5.0",
148
145
  "react-day-picker": "10.0.2",
149
146
  "sonner": "2.0.8",
150
147
  "tiny-invariant": "1.3.3",
@@ -1 +0,0 @@
1
- "use client";import{t as e}from"./use-isomorphic-layout-effect-CL6iq0Bj.js";import{t}from"./css-properties-D85fCNV3.js";import{t as n}from"./use-composed-refs-DPYmLDSe.js";import{t as r}from"./cx-CK7o_rVv.js";import{t as i}from"./data-slot-EM6s2WEU.js";import{t as a}from"./button-DNLTJ32M.js";import{t as o}from"./button-B9bChDgl.js";import{t as s}from"./icon-BudQMD2S.js";import{t as c}from"./slot-B7rwscwd.js";import{n as l,r as u}from"./alert-DO00UiQe.js";import{c as d}from"react/compiler-runtime";import{CaretDownIcon as f}from"@phosphor-icons/react/CaretDown";import{createContext as p,useContext as m,useEffect as h,useRef as g}from"react";import _ from"tiny-invariant";import{jsx as v,jsxs as y}from"react/jsx-runtime";import{CheckCircleIcon as b}from"@phosphor-icons/react/CheckCircle";import{InfoIcon as x}from"@phosphor-icons/react/Info";import{MegaphoneIcon as S}from"@phosphor-icons/react/Megaphone";import{WarningIcon as C}from"@phosphor-icons/react/Warning";import{WarningDiamondIcon as w}from"@phosphor-icons/react/WarningDiamond";import{XIcon as T}from"@phosphor-icons/react/X";import{cva as E}from"class-variance-authority";const D=p(null),O=/* @__PURE__ */ v(T,{});function k(){let e=m(D);return _(e,`Alert parts must be rendered inside Alert.Root.`),e}const A=e=>{let t=d(6),{children:n,intent:r,redirectDismissFocus:i}=e,a=i===void 0||i,o;t[0]!==r||t[1]!==a?(o={intent:r,redirectDismissFocus:a},t[0]=r,t[1]=a,t[2]=o):o=t[2];let s=o,c;return t[3]!==n||t[4]!==s?(c=/* @__PURE__ */ v(D.Provider,{value:s,children:n}),t[3]=n,t[4]=s,t[5]=c):c=t[5],c},j=E(`relative flex w-full gap-1.5 rounded-md border p-2.5 text-sm font-sans`,{variants:{intent:{danger:`border-danger-500/50 bg-danger-500/10 text-danger-700 [&_code]:bg-danger-500/10 [&_code]:border-danger-500/20 [&_code]:text-danger-900 [&_a:not([data-slot~=button])]:text-danger-700 [&_a:not([data-slot~=button])]:underline`,important:`border-important-500/50 bg-important-500/10 text-important-700 [&_code]:bg-important-500/10 [&_code]:border-important-500/20 [&_code]:text-important-900 [&_a:not([data-slot~=button])]:text-important-700 [&_a:not([data-slot~=button])]:underline`,info:`border-info-500/50 bg-info-500/10 text-info-700 [&_code]:bg-info-500/10 [&_code]:border-info-500/20 [&_code]:text-info-900 [&_a:not([data-slot~=button])]:text-info-700 [&_a:not([data-slot~=button])]:underline`,success:`border-success-500/50 bg-success-500/10 text-success-700 [&_code]:bg-success-500/10 [&_code]:border-success-500/20 [&_code]:text-success-900 [&_a:not([data-slot~=button])]:text-success-700 [&_a:not([data-slot~=button])]:underline`,warning:`border-warning-500/50 bg-warning-500/10 text-warning-700 [&_code]:bg-warning-500/10 [&_code]:border-warning-500/20 [&_code]:text-warning-900 [&_a:not([data-slot~=button])]:text-warning-700 [&_a:not([data-slot~=button])]:underline`},appearance:{banner:`border-x-0 border-t-0 rounded-none z-50 sticky`,default:``}}}),M=e=>{let n=d(26),a,o,s,c,l,u,f;n[0]===e?(a=n[1],o=n[2],s=n[3],c=n[4],l=n[5],u=n[6],f=n[7]):({"data-slot":o,appearance:f,className:a,intent:s,ref:l,style:u,...c}=e,n[0]=e,n[1]=a,n[2]=o,n[3]=s,n[4]=c,n[5]=l,n[6]=u,n[7]=f);let p=f===void 0?`default`:f,m;n[8]===o?m=n[9]:(m=i(o,`alert`),n[8]=o,n[9]=m);let h;n[10]!==p||n[11]!==a||n[12]!==s?(h=r(j({appearance:p,intent:s}),`[--alert-dismiss-room:--spacing(10)]`,`has-[[data-alert-dismiss][data-size=md]]:[--alert-dismiss-room:--spacing(12)]`,`has-[[data-alert-dismiss][data-size=lg]]:[--alert-dismiss-room:--spacing(13)]`,`has-[[data-alert-dismiss][data-size=xl]]:[--alert-dismiss-room:--spacing(15)]`,`has-data-alert-dismiss:pr-(--alert-dismiss-room)`,`has-data-alert-dismiss:**:data-alert-expand:right-(--alert-dismiss-room)`,`has-data-alert-expand:**:data-[slot~=alert-content]:pr-16`,`md:has-data-alert-expand:**:data-[slot~=alert-content]:pr-24`,a),n[10]=p,n[11]=a,n[12]=s,n[13]=h):h=n[13];let g;n[14]!==s||n[15]!==u?(g=t({"--alert-control-color":R(s),"--alert-control-hover-color":z(s),"--alert-control-hover-bg":B(s),...u}),n[14]=s,n[15]=u,n[16]=g):g=n[16];let _;n[17]!==c||n[18]!==l||n[19]!==m||n[20]!==h||n[21]!==g?(_=/* @__PURE__ */ v(`div`,{ref:l,"data-slot":m,className:h,style:g,...c}),n[17]=c,n[18]=l,n[19]=m,n[20]=h,n[21]=g,n[22]=_):_=n[22];let y;return n[23]!==s||n[24]!==_?(y=/* @__PURE__ */ v(A,{intent:s,children:_}),n[23]=s,n[24]=_,n[25]=y):y=n[25],y},N={danger:/* @__PURE__ */ v(C,{}),important:/* @__PURE__ */ v(S,{mirrored:!0}),info:/* @__PURE__ */ v(x,{}),success:/* @__PURE__ */ v(b,{}),warning:/* @__PURE__ */ v(w,{})},P=e=>{let t=d(16),n,a,o,c,l;t[0]===e?(n=t[1],a=t[2],o=t[3],c=t[4],l=t[5]):({"data-slot":a,className:n,ref:c,svg:l,...o}=e,t[0]=e,t[1]=n,t[2]=a,t[3]=o,t[4]=c,t[5]=l);let u=k(),f=N[u.intent],p;t[6]===a?p=t[7]:(p=i(a,`alert-icon`),t[6]=a,t[7]=p);let m;t[8]===n?m=t[9]:(m=r(`size-5`,n),t[8]=n,t[9]=m);let h=l??f,g;return t[10]!==o||t[11]!==c||t[12]!==p||t[13]!==m||t[14]!==h?(g=/* @__PURE__ */ v(s,{ref:c,"data-slot":p,className:m,svg:h,...o}),t[10]=o,t[11]=c,t[12]=p,t[13]=m,t[14]=h,t[15]=g):g=t[15],g},F=e=>{let t=d(14),n,a,o,s;t[0]===e?(n=t[1],a=t[2],o=t[3],s=t[4]):({"data-slot":a,className:n,ref:s,...o}=e,t[0]=e,t[1]=n,t[2]=a,t[3]=o,t[4]=s);let c;t[5]===a?c=t[6]:(c=i(a,`alert-content`),t[5]=a,t[6]=c);let l;t[7]===n?l=t[8]:(l=r(`min-w-0 flex-1 has-data-alert-dismiss:pr-6`,n),t[7]=n,t[8]=l);let u;return t[9]!==o||t[10]!==s||t[11]!==c||t[12]!==l?(u=/* @__PURE__ */ v(`div`,{ref:s,"data-slot":c,className:l,...o}),t[9]=o,t[10]=s,t[11]=c,t[12]=l,t[13]=u):u=t[13],u},I=e=>{let t=d(16),n,a,o,s,l;t[0]===e?(n=t[1],a=t[2],o=t[3],s=t[4],l=t[5]):({"data-slot":a,asChild:l,className:n,ref:s,...o}=e,t[0]=e,t[1]=n,t[2]=a,t[3]=o,t[4]=s,t[5]=l);let u=l!==void 0&&l?c:`h5`,f;t[6]===a?f=t[7]:(f=i(a,`alert-title`),t[6]=a,t[7]=f);let p;t[8]===n?p=t[9]:(p=r(`font-medium`,n),t[8]=n,t[9]=p);let m;return t[10]!==u||t[11]!==o||t[12]!==s||t[13]!==f||t[14]!==p?(m=/* @__PURE__ */ v(u,{ref:s,"data-slot":f,className:p,...o}),t[10]=u,t[11]=o,t[12]=s,t[13]=f,t[14]=p,t[15]=m):m=t[15],m},L=e=>{let t=d(16),n,a,o,s,l;t[0]===e?(n=t[1],a=t[2],o=t[3],s=t[4],l=t[5]):({"data-slot":a,asChild:l,className:n,ref:s,...o}=e,t[0]=e,t[1]=n,t[2]=a,t[3]=o,t[4]=s,t[5]=l);let u=l!==void 0&&l?c:`div`,f;t[6]===a?f=t[7]:(f=i(a,`alert-description`),t[6]=a,t[7]=f);let p;t[8]===n?p=t[9]:(p=r(`text-sm`,n),t[8]=n,t[9]=p);let m;return t[10]!==u||t[11]!==o||t[12]!==s||t[13]!==f||t[14]!==p?(m=/* @__PURE__ */ v(u,{ref:s,"data-slot":f,className:p,...o}),t[10]=u,t[11]=o,t[12]=s,t[13]=f,t[14]=p,t[15]=m):m=t[15],m},R=e=>`var(--color-${e}-700)`,z=e=>`var(--color-${e}-800)`,B=e=>`color-mix(in oklab, var(--color-${e}-500) 10%, transparent)`;function V(t){let n=d(8),{buttonRef:r,enabled:i}=t,a;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=[],n[0]=a):a=n[0];let o=g(a),s,c;n[1]!==r||n[2]!==i?(s=()=>{if(i)return()=>{let e=r.current;if(e==null||document.activeElement!==e)return;let t=e.closest(`[data-slot~="alert"]`)??e;o.current=l(t)}},c=[r,i],n[1]=r,n[2]=i,n[3]=s,n[4]=c):(s=n[3],c=n[4]),e(s,c);let f,p;n[5]===i?(f=n[6],p=n[7]):(f=()=>{if(i)return()=>{let e=o.current;if(o.current=[],e.length===0)return;let{activeElement:t}=document;if(t==null||t===document.body){for(let t of e)if(t.isConnected&&u(t)&&(t.focus(),document.activeElement===t))return}}},p=[i],n[5]=i,n[6]=f,n[7]=p),h(f,p)}const H={Root:M,Content:F,ExpandButton:e=>{let t=d(25),n,o,s,c,l;t[0]===e?(n=t[1],o=t[2],s=t[3],c=t[4],l=t[5]):({"data-slot":s,count:o,expanded:c,className:n,...l}=e,t[0]=e,t[1]=n,t[2]=o,t[3]=s,t[4]=c,t[5]=l);let u=c?`Collapse additional alerts`:`Show ${o} more ${o===1?`alert`:`alerts`}`,p;t[6]===s?p=t[7]:(p=i(s,`alert-expand-button`),t[6]=s,t[7]=p);let m=c&&`-rotate-180`,h;t[8]===m?h=t[9]:(h=r(`size-4 transition-transform duration-200 ease-out-strong motion-reduce:transition-none`,m),t[8]=m,t[9]=h);let g;t[10]===h?g=t[11]:(g=/* @__PURE__ */ v(f,{weight:`bold`,className:h}),t[10]=h,t[11]=g);let _;t[12]===n?_=t[13]:(_=r(`right-1.5 top-1.5 absolute gap-1 ps-1.5 pe-1`,`text-(--alert-control-color,currentColor)`,`not-disabled:hover:bg-(--alert-control-hover-bg,transparent) not-disabled:hover:text-(--alert-control-hover-color,currentColor)`,n),t[12]=n,t[13]=_);let b;t[14]===o?b=t[15]:(b=/* @__PURE__ */ y(`span`,{className:`min-w-[2ch] text-center tabular-nums`,children:[`+`,o]}),t[14]=o,t[15]=b);let x;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(x=/* @__PURE__ */ v(`span`,{className:`hidden md:inline`,children:`more`}),t[16]=x):x=t[16];let S;return t[17]!==c||t[18]!==l||t[19]!==u||t[20]!==p||t[21]!==g||t[22]!==_||t[23]!==b?(S=/* @__PURE__ */ y(a,{type:`button`,appearance:`ghost`,intent:`neutral`,size:`sm`,"aria-expanded":c,"aria-label":u,"data-slot":p,"data-alert-expand":!0,icon:g,iconPlacement:`end`,className:_,...l,children:[b,x]}),t[17]=c,t[18]=l,t[19]=u,t[20]=p,t[21]=g,t[22]=_,t[23]=b,t[24]=S):S=t[24],S},Description:L,DismissIconButton:e=>{let t=d(26),a,s,c,l,u,f,p,h,_;t[0]===e?(a=t[1],s=t[2],c=t[3],l=t[4],u=t[5],f=t[6],p=t[7],h=t[8],_=t[9]):({"data-slot":s,size:u,type:f,label:p,appearance:h,className:a,icon:_,ref:l,...c}=e,t[0]=e,t[1]=a,t[2]=s,t[3]=c,t[4]=l,t[5]=u,t[6]=f,t[7]=p,t[8]=h,t[9]=_);let y=u===void 0?`sm`:u,b=f===void 0?`button`:f,x=p===void 0?`Dismiss Alert`:p,S=h===void 0?`ghost`:h,C=_===void 0?O:_,w=m(D),T=g(null),E=n(T,l),k=w?.redirectDismissFocus??!0,A;t[10]===k?A=t[11]:(A={buttonRef:T,enabled:k},t[10]=k,t[11]=A),V(A);let j;t[12]===s?j=t[13]:(j=i(s,`alert-dismiss-icon-button`),t[12]=s,t[13]=j);let M;t[14]===a?M=t[15]:(M=r(`right-1.5 top-1.5 absolute`,`text-(--alert-control-color,currentColor)`,`not-disabled:hover:bg-(--alert-control-hover-bg,transparent) not-disabled:hover:text-(--alert-control-hover-color,currentColor)`,a),t[14]=a,t[15]=M);let N;return t[16]!==S||t[17]!==E||t[18]!==C||t[19]!==x||t[20]!==c||t[21]!==y||t[22]!==j||t[23]!==M||t[24]!==b?(N=/* @__PURE__ */ v(o,{ref:E,appearance:S,icon:C,intent:`neutral`,label:x,size:y,"data-slot":j,"data-alert-dismiss":!0,className:M,type:b,...c}),t[16]=S,t[17]=E,t[18]=C,t[19]=x,t[20]=c,t[21]=y,t[22]=j,t[23]=M,t[24]=b,t[25]=N):N=t[25],N},Icon:P,Title:I};export{A as n,H as t};