@ngrok/mantle 0.93.7 → 0.94.1

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 (311) hide show
  1. package/README.md +11 -2
  2. package/dist/accordion.d.ts +73 -21
  3. package/dist/accordion.js +1 -1
  4. package/dist/agent.json +1234 -84
  5. package/dist/alert-BkJHDx9X.js +1 -0
  6. package/dist/{alert-BcSBNR3S.d.ts → alert-D0zRRUHV.d.ts} +35 -25
  7. package/dist/alert-center.d.ts +67 -55
  8. package/dist/alert-center.js +1 -1
  9. package/dist/alert-dialog.d.ts +35 -10
  10. package/dist/alert-dialog.js +1 -1
  11. package/dist/alert.d.ts +6 -1
  12. package/dist/alert.js +1 -1
  13. package/dist/anchor-Dc6IgvXV.js +1 -0
  14. package/dist/anchor.d.ts +17 -5
  15. package/dist/anchor.js +1 -1
  16. package/dist/app-layout.d.ts +33 -18
  17. package/dist/app-layout.js +1 -1
  18. package/dist/area-chart.d.ts +153 -97
  19. package/dist/area-chart.js +1 -1
  20. package/dist/avatar.d.ts +36 -24
  21. package/dist/avatar.js +1 -1
  22. package/dist/badge.d.ts +19 -7
  23. package/dist/badge.js +1 -1
  24. package/dist/bar-chart.d.ts +155 -100
  25. package/dist/bar-chart.js +1 -1
  26. package/dist/breadcrumb.d.ts +47 -36
  27. package/dist/breadcrumb.js +1 -1
  28. package/dist/browser-only-CZfkNw5A.js +1 -0
  29. package/dist/browser-only-ymFoM3Ya.js +1 -0
  30. package/dist/browser-only.d.ts +8 -0
  31. package/dist/browser-only.js +1 -1
  32. package/dist/{button-BX-4lYUn.d.ts → button-5Pc7Mby_.d.ts} +4 -4
  33. package/dist/button-B9bChDgl.js +1 -0
  34. package/dist/button-D8jixIbH.js +1 -0
  35. package/dist/button-DNLTJ32M.js +1 -0
  36. package/dist/{button-CPsKGDK0.d.ts → button-Ddj6yr10.d.ts} +34 -27
  37. package/dist/{button-Yxyu1XMd.d.ts → button-DnYv7IOT.d.ts} +29 -22
  38. package/dist/button.d.ts +9 -3
  39. package/dist/button.js +1 -1
  40. package/dist/calendar.d.ts +8 -1
  41. package/dist/calendar.js +1 -1
  42. package/dist/card.d.ts +7 -2
  43. package/dist/card.js +1 -1
  44. package/dist/centered-layout.d.ts +34 -23
  45. package/dist/centered-layout.js +1 -1
  46. package/dist/chart-BLCqzt56.js +1 -0
  47. package/dist/chart-CChZiCrt.js +1 -0
  48. package/dist/chart-CUmSu9d7.js +1 -0
  49. package/dist/{chart-BpfbtOUN.d.ts → chart-Dl8gFo_D.d.ts} +117 -121
  50. package/dist/chart-DtgZBAas.js +2 -0
  51. package/dist/checkbox-Cu5cgZmk.js +1 -0
  52. package/dist/checkbox.d.ts +15 -2
  53. package/dist/checkbox.js +1 -1
  54. package/dist/choice-CCVG2hb9.js +1 -0
  55. package/dist/{choice-BLR0_MeB.d.ts → choice-CNiOSzqV.d.ts} +26 -20
  56. package/dist/choice.d.ts +6 -1
  57. package/dist/choice.js +1 -1
  58. package/dist/code-BPKNY1_w.js +1 -0
  59. package/dist/{code-block-BGdV4Yty.d.ts → code-block-BDw6MEwH.d.ts} +9 -9
  60. package/dist/{code-block-W3kWPxCJ.js → code-block-CKzsAMzj.js} +3 -3
  61. package/dist/code-block.d.ts +28 -19
  62. package/dist/code-block.js +1 -1
  63. package/dist/code-block_highlight-utils.d.ts +6 -1
  64. package/dist/code-block_highlight-utils.js +1 -1
  65. package/dist/code.d.ts +16 -3
  66. package/dist/code.js +1 -1
  67. package/dist/color-CHZbU1Ww.js +1 -0
  68. package/dist/color.js +1 -1
  69. package/dist/combobox.d.ts +42 -28
  70. package/dist/combobox.js +1 -1
  71. package/dist/command.d.ts +59 -47
  72. package/dist/command.js +1 -1
  73. package/dist/compose-refs-BdRUneoc.js +1 -0
  74. package/dist/{copy-to-clipboard-DInu78k_.js → copy-to-clipboard-Dd83caRw.js} +1 -1
  75. package/dist/cx.d.ts +4 -4
  76. package/dist/cx.js +1 -1
  77. package/dist/{data-slot-B-LqAcBB.d.ts → data-slot-BW8KQ9Xo.d.ts} +2 -2
  78. package/dist/data-table.d.ts +83 -52
  79. package/dist/data-table.js +1 -1
  80. package/dist/description-list.d.ts +13 -2
  81. package/dist/description-list.js +1 -1
  82. package/dist/{dialog-2fRO4ca4.d.ts → dialog-CIEuwNys.d.ts} +32 -8
  83. package/dist/dialog-CbEEA0fl.d.ts +32 -0
  84. package/dist/dialog-DmzoDfY3.js +1 -0
  85. package/dist/dialog.d.ts +7 -2
  86. package/dist/dialog.js +1 -1
  87. package/dist/{dropdown-menu-CpjRwMWe.d.ts → dropdown-menu-CeY498yk.d.ts} +41 -33
  88. package/dist/dropdown-menu-uheL0prz.js +1 -0
  89. package/dist/dropdown-menu.d.ts +6 -1
  90. package/dist/dropdown-menu.js +1 -1
  91. package/dist/empty.d.ts +7 -2
  92. package/dist/empty.js +1 -1
  93. package/dist/field-Bpvn4tQp.js +1 -0
  94. package/dist/{field-V_gnkcmN.d.ts → field-BshcNVe_.d.ts} +1 -1
  95. package/dist/field-Cai_4c1l.js +1 -0
  96. package/dist/field.d.ts +53 -42
  97. package/dist/field.js +1 -1
  98. package/dist/flag.d.ts +11 -3
  99. package/dist/flag.js +1 -1
  100. package/dist/hooks.d.ts +35 -10
  101. package/dist/hooks.js +1 -1
  102. package/dist/hover-card.d.ts +25 -14
  103. package/dist/hover-card.js +1 -1
  104. package/dist/{icon-CgNqu-fl.d.ts → icon--purqHRo.d.ts} +1 -1
  105. package/dist/{icon-ByLVhdYq.d.ts → icon-DuIYoyft.d.ts} +8 -2
  106. package/dist/{icon-DXDyhy2N.d.ts → icon-QCm1ui29.d.ts} +2 -2
  107. package/dist/icon-xb7d9M7X.js +1 -0
  108. package/dist/icon.d.ts +8 -3
  109. package/dist/icon.js +1 -1
  110. package/dist/icons-DEDCLZ8B.js +1 -0
  111. package/dist/icons-DXadFwpo.js +1 -0
  112. package/dist/icons-DcesO4Ng.js +1 -0
  113. package/dist/icons.d.ts +13 -1
  114. package/dist/icons.js +1 -1
  115. package/dist/{in-view-B3nMAzfE.d.ts → in-view-C_daNafg.d.ts} +4 -23
  116. package/dist/{index-BhfgyurF.d.ts → index-KJ06KK6t.d.ts} +3 -3
  117. package/dist/input-BjCDSOPA.js +1 -0
  118. package/dist/{input-Dx5owTCc.d.ts → input-DC4nW0Sr.d.ts} +12 -2
  119. package/dist/input-fW8QSZEO.js +1 -0
  120. package/dist/input.d.ts +37 -5
  121. package/dist/input.js +1 -1
  122. package/dist/kbd-P1nQshWo.js +1 -0
  123. package/dist/kbd.d.ts +17 -5
  124. package/dist/kbd.js +1 -1
  125. package/dist/label-DO1RlMKl.js +1 -0
  126. package/dist/{label-Dn5CPJUj.d.ts → label-epgtywRz.d.ts} +14 -8
  127. package/dist/label.d.ts +6 -1
  128. package/dist/label.js +1 -1
  129. package/dist/layer-container-DL4yclOu.js +1 -0
  130. package/dist/layer-container.d.ts +2 -2
  131. package/dist/layer-container.js +1 -1
  132. package/dist/line-chart.d.ts +147 -90
  133. package/dist/line-chart.js +1 -1
  134. package/dist/list-cQZPSjfz.js +1 -0
  135. package/dist/list.d.ts +34 -16
  136. package/dist/list.js +1 -1
  137. package/dist/live-region-Dhapu8a5.js +1 -0
  138. package/dist/live-region.d.ts +15 -2
  139. package/dist/live-region.js +1 -1
  140. package/dist/llms.txt +82 -79
  141. package/dist/main-CHyWYDak.js +1 -0
  142. package/dist/main.d.ts +13 -1
  143. package/dist/main.js +1 -1
  144. package/dist/mantle.css +133 -88
  145. package/dist/media-object.d.ts +16 -4
  146. package/dist/media-object.js +1 -1
  147. package/dist/migrations/0014-chart-named-colors.yml +1389 -0
  148. package/dist/migrations/0015-segmented-control.yml +788 -0
  149. package/dist/multi-select.d.ts +42 -29
  150. package/dist/multi-select.js +1 -1
  151. package/dist/otp-input.d.ts +20 -8
  152. package/dist/otp-input.js +1 -1
  153. package/dist/pagination.d.ts +93 -4
  154. package/dist/pagination.js +1 -1
  155. package/dist/{popover-BfB2I9G0.d.ts → popover-Bei0jyfH.d.ts} +87 -12
  156. package/dist/popover-DhgunktK.js +1 -0
  157. package/dist/popover-T2EyaqGK.d.ts +1 -0
  158. package/dist/popover.d.ts +7 -2
  159. package/dist/popover.js +1 -1
  160. package/dist/primitive-D8CzV_Ft.js +1 -0
  161. package/dist/progress.d.ts +28 -11
  162. package/dist/progress.js +1 -1
  163. package/dist/qr-code.d.ts +11 -3
  164. package/dist/qr-code.js +1 -1
  165. package/dist/query-filter.d.ts +6 -6
  166. package/dist/query.d.ts +9 -4
  167. package/dist/query.js +1 -1
  168. package/dist/radio-group-BJQ6EOqh.d.ts +27 -0
  169. package/dist/radio-group-BliblUqe.js +1 -0
  170. package/dist/radio-group-ggEkCi0V.js +1 -0
  171. package/dist/radio-group.d.ts +21 -100
  172. package/dist/radio-group.js +1 -1
  173. package/dist/sandbar.d.ts +43 -30
  174. package/dist/sandbar.js +1 -1
  175. package/dist/sandboxed-on-click-D4PL5_GR.js +1 -0
  176. package/dist/sandboxed-on-click.d.ts +8 -0
  177. package/dist/sandboxed-on-click.js +1 -1
  178. package/dist/scatter-plot.d.ts +137 -76
  179. package/dist/scatter-plot.js +1 -1
  180. package/dist/segmented-control.d.ts +136 -0
  181. package/dist/segmented-control.js +1 -0
  182. package/dist/select-1xuUx_os.js +1 -0
  183. package/dist/{select-BkhBxtOT.d.ts → select-BpaXHxJm.d.ts} +33 -25
  184. package/dist/select.d.ts +6 -1
  185. package/dist/select.js +1 -1
  186. package/dist/selectable-list.d.ts +29 -18
  187. package/dist/selectable-list.js +1 -1
  188. package/dist/{separator-D9AWEkcJ.d.ts → separator-Ck4sPrdN.d.ts} +4 -2
  189. package/dist/separator-DnvhwY2J.js +1 -0
  190. package/dist/separator.d.ts +6 -1
  191. package/dist/separator.js +1 -1
  192. package/dist/{shake-DL6WhMXM.js → shake-CAUpKBHe.js} +1 -1
  193. package/dist/sheet-DHy_vlme.js +1 -0
  194. package/dist/sheet.d.ts +36 -7
  195. package/dist/sheet.js +1 -1
  196. package/dist/sidebar.d.ts +53 -37
  197. package/dist/sidebar.js +1 -1
  198. package/dist/skeleton-DHfyjuQi.js +1 -0
  199. package/dist/skeleton.d.ts +15 -4
  200. package/dist/skeleton.js +1 -1
  201. package/dist/skip-to-main-link.d.ts +12 -1
  202. package/dist/skip-to-main-link.js +1 -1
  203. package/dist/slider.d.ts +11 -1
  204. package/dist/slider.js +1 -1
  205. package/dist/slot-B7rwscwd.js +1 -0
  206. package/dist/{slot-C0OCJjdJ.d.ts → slot-BEMQMbk3.d.ts} +6 -4
  207. package/dist/slot.d.ts +6 -1
  208. package/dist/slot.js +1 -1
  209. package/dist/source-all.css +5 -1
  210. package/dist/split-button.d.ts +20 -9
  211. package/dist/split-button.js +1 -1
  212. package/dist/strata.d.ts +35 -22
  213. package/dist/strata.js +1 -1
  214. package/dist/{suggestions-NkqYTT49.d.ts → suggestions-BJeGvwDa.d.ts} +7 -7
  215. package/dist/switch.d.ts +14 -2
  216. package/dist/switch.js +1 -1
  217. package/dist/table-BnLdXUai.js +1 -0
  218. package/dist/{table-vT6Okwfa.d.ts → table-Ii9hHUWN.d.ts} +84 -5
  219. package/dist/table.d.ts +6 -1
  220. package/dist/table.js +1 -1
  221. package/dist/tabs.d.ts +24 -12
  222. package/dist/tabs.js +1 -1
  223. package/dist/text-area.d.ts +12 -2
  224. package/dist/text-area.js +1 -1
  225. package/dist/theme-BNdZl352.js +1 -0
  226. package/dist/theme-switcher.d.ts +18 -4
  227. package/dist/theme-switcher.js +1 -1
  228. package/dist/theme.d.ts +25 -11
  229. package/dist/theme.js +1 -1
  230. package/dist/toast.d.ts +15 -2
  231. package/dist/toast.js +1 -1
  232. package/dist/tokens.dark.json +3261 -0
  233. package/dist/tokens.json +4933 -0
  234. package/dist/tokens.resolver.json +37 -0
  235. package/dist/{tooltip-NcLIeBy5.d.ts → tooltip-CstGDKwy.d.ts} +18 -11
  236. package/dist/tooltip-DQO40Mrq.js +1 -0
  237. package/dist/tooltip.d.ts +6 -1
  238. package/dist/tooltip.js +1 -1
  239. package/dist/truncated-text.d.ts +28 -14
  240. package/dist/truncated-text.js +1 -1
  241. package/dist/types.d.ts +1 -1
  242. package/dist/types.js +1 -1
  243. package/dist/use-breakpoint-B4Kh0xE6.js +1 -0
  244. package/dist/use-callback-ref-DiOXFQzM.js +1 -0
  245. package/dist/use-composed-refs-DPYmLDSe.js +1 -0
  246. package/dist/use-copy-to-clipboard-hBL6_65i.js +1 -0
  247. package/dist/use-inert-siblings-C4RHXrZc.js +1 -0
  248. package/dist/use-is-apple-platform-Bq6_KbVX.js +1 -0
  249. package/dist/use-is-hydrated-BeLOGKwE.js +1 -0
  250. package/dist/use-is-hydrated-after-paint-CrHt3OHw.js +1 -0
  251. package/dist/use-isomorphic-layout-effect-CL6iq0Bj.js +1 -0
  252. package/dist/use-matches-media-query-FfvtNKQe.js +1 -0
  253. package/dist/use-prefers-reduced-motion-Ck6dnOM9.js +1 -0
  254. package/dist/use-swipe-to-dismiss-BYdlca8r.js +1 -0
  255. package/dist/utils.d.ts +1 -1
  256. package/dist/utils.js +1 -1
  257. package/dist/visually-hidden.d.ts +14 -1
  258. package/dist/visually-hidden.js +1 -1
  259. package/dist/well.d.ts +7 -2
  260. package/dist/well.js +1 -1
  261. package/package.json +21 -7
  262. package/src/components/chart/d3-license.md +25 -0
  263. package/dist/alert-P9lwn25X.js +0 -1
  264. package/dist/anchor-CgcbWEUs.js +0 -1
  265. package/dist/browser-only-BTSrYWLj.js +0 -1
  266. package/dist/button-69InNC_m.js +0 -1
  267. package/dist/button-B8k98Pby.js +0 -1
  268. package/dist/button-Dge0D5bl.js +0 -1
  269. package/dist/chart-BpWfQAwf.js +0 -2
  270. package/dist/checkbox-DmSQXs26.js +0 -1
  271. package/dist/choice-2Lrv8_nl.js +0 -1
  272. package/dist/code-DUJzSl4K.js +0 -1
  273. package/dist/compose-refs-sFdxsL7k.js +0 -1
  274. package/dist/dialog-7TUgiSzX.js +0 -1
  275. package/dist/dialog-Dp0QGWwo.d.ts +0 -28
  276. package/dist/dropdown-menu-BHBzCDSZ.js +0 -1
  277. package/dist/field-Bihblt8U.js +0 -1
  278. package/dist/field-CPvjazWN.js +0 -1
  279. package/dist/icon-kK0c-POG.js +0 -1
  280. package/dist/icons-CDLz5lpI.js +0 -1
  281. package/dist/icons-CSwTVV2m.js +0 -1
  282. package/dist/icons-DP3lQw5O.js +0 -1
  283. package/dist/input-CpQ6jlpI.js +0 -1
  284. package/dist/kbd-CLHsJ99p.js +0 -1
  285. package/dist/label-nHqqYS7e.js +0 -1
  286. package/dist/layer-container-kEQiE4zV.js +0 -1
  287. package/dist/list-RFRIQxU2.js +0 -1
  288. package/dist/live-region-DQ1QLv3L.js +0 -1
  289. package/dist/main-CC1L9IsH.js +0 -1
  290. package/dist/popover-C96V8SXi.d.ts +0 -1
  291. package/dist/popover-DxOqLKxy.js +0 -1
  292. package/dist/primitive-Dz9Al-us.js +0 -1
  293. package/dist/radio-group-HDVxTNPi.js +0 -1
  294. package/dist/sandboxed-on-click-C7pPu-2M.js +0 -1
  295. package/dist/select-CAAYk4Yj.js +0 -1
  296. package/dist/separator-DfzxVutO.js +0 -1
  297. package/dist/sheet-CSJc_sB4.js +0 -1
  298. package/dist/skeleton-DBpI-ko5.js +0 -1
  299. package/dist/slot-DdYN1L1C.js +0 -1
  300. package/dist/table-CFHiDBW8.js +0 -1
  301. package/dist/theme-C-glc5Q-.js +0 -1
  302. package/dist/tooltip-b6oiTaWq.js +0 -1
  303. package/dist/use-breakpoint--mo7kr9d.js +0 -1
  304. package/dist/use-callback-ref-BvVyI5K1.js +0 -1
  305. package/dist/use-copy-to-clipboard-Dy_0Qzb7.js +0 -1
  306. package/dist/use-is-apple-platform-D4nifHMx.js +0 -1
  307. package/dist/use-is-hydrated-after-paint-r9Cl2mGp.js +0 -1
  308. package/dist/use-isomorphic-layout-effect-CLSmHzo4.js +0 -1
  309. package/dist/use-matches-media-query-m860lols.js +0 -1
  310. package/dist/use-prefers-reduced-motion-CU6mWmOe.js +0 -1
  311. package/dist/use-swipe-to-dismiss-DceYk1Id.js +0 -1
@@ -0,0 +1 @@
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};
@@ -1,8 +1,8 @@
1
1
  import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
2
- import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
3
- import { t as SvgAttributes } from "./icon-CgNqu-fl.js";
4
- import { r as ButtonProps } from "./button-CPsKGDK0.js";
5
- import { n as IconButtonProps, r as IconButtonAppearance } from "./button-Yxyu1XMd.js";
2
+ import { t as WithDataSlot } from "./data-slot-BW8KQ9Xo.js";
3
+ import { r as ButtonProps } from "./button-Ddj6yr10.js";
4
+ import { n as IconButtonProps, r as IconButtonAppearance } from "./button-DnYv7IOT.js";
5
+ import { t as SvgAttributes } from "./icon--purqHRo.js";
6
6
  import { ComponentProps, ReactNode } from "react";
7
7
  declare const intents: readonly ["danger", "important", "info", "success", "warning"];
8
8
  type AlertIntent = (typeof intents)[number];
@@ -10,7 +10,7 @@ declare const appearances: readonly ["banner", "default"];
10
10
  type Appearance = (typeof appearances)[number];
11
11
  type AlertProps = ComponentProps<"div"> & {
12
12
  /**
13
- * The intent of the Alert — the status its color communicates to the user,
13
+ * The intent of the Alert: the status its color communicates to the user,
14
14
  * determining the color and styling of the Alert.
15
15
  */
16
16
  intent: AlertIntent;
@@ -51,8 +51,8 @@ type AlertProps = ComponentProps<"div"> & {
51
51
  * <Alert.Description>
52
52
  * Alert description text.
53
53
  * </Alert.Description>
54
- * <Alert.DismissIconButton />
55
54
  * <Alert.ExpandButton count={2} expanded={false} />
55
+ * <Alert.DismissIconButton />
56
56
  * </Alert.Content>
57
57
  * </Alert.Root>
58
58
  *```
@@ -80,8 +80,8 @@ type AlertIconProps = Omit<SvgAttributes, "children"> & {
80
80
  * <Alert.Description>
81
81
  * Alert description text.
82
82
  * </Alert.Description>
83
- * <Alert.DismissIconButton />
84
83
  * <Alert.ExpandButton count={2} expanded={false} />
84
+ * <Alert.DismissIconButton />
85
85
  * </Alert.Content>
86
86
  * </Alert.Root>
87
87
  * ```
@@ -102,8 +102,8 @@ declare const Icon: ({ "data-slot": dataSlot, className, ref, svg, ...props }: A
102
102
  * <Alert.Description>
103
103
  * Alert description text.
104
104
  * </Alert.Description>
105
- * <Alert.DismissIconButton />
106
105
  * <Alert.ExpandButton count={2} expanded={false} />
106
+ * <Alert.DismissIconButton />
107
107
  * </Alert.Content>
108
108
  * </Alert.Root>
109
109
  *```
@@ -124,8 +124,8 @@ type AlertTitleProps = ComponentProps<"h5"> & WithAsChild & WithDataSlot;
124
124
  * <Alert.Description>
125
125
  * Alert description text.
126
126
  * </Alert.Description>
127
- * <Alert.DismissIconButton />
128
127
  * <Alert.ExpandButton count={2} expanded={false} />
128
+ * <Alert.DismissIconButton />
129
129
  * </Alert.Content>
130
130
  * </Alert.Root>
131
131
  *```
@@ -148,8 +148,8 @@ type AlertDescriptionProps = ComponentProps<"div"> & WithAsChild & WithDataSlot;
148
148
  * <Alert.Description>
149
149
  * Alert description text.
150
150
  * </Alert.Description>
151
- * <Alert.DismissIconButton />
152
151
  * <Alert.ExpandButton count={2} expanded={false} />
152
+ * <Alert.DismissIconButton />
153
153
  * </Alert.Content>
154
154
  * </Alert.Root>
155
155
  * ```
@@ -157,7 +157,7 @@ type AlertDescriptionProps = ComponentProps<"div"> & WithAsChild & WithDataSlot;
157
157
  declare const Description: ({ "data-slot": dataSlot, asChild, className, ref, ...props }: AlertDescriptionProps) => import("react").JSX.Element;
158
158
  type AlertDismissIconButtonProps = Partial<Omit<IconButtonProps, "appearance" | "icon" | "intent">> & {
159
159
  /**
160
- * The visual style of the dismiss button. Optional here —
160
+ * The visual style of the dismiss button. Optional here:
161
161
  * `Alert.DismissIconButton` defaults to `"ghost"` so the dismiss affordance
162
162
  * stays visually quiet inside the Alert.
163
163
  *
@@ -190,8 +190,8 @@ type AlertDismissIconButtonProps = Partial<Omit<IconButtonProps, "appearance" |
190
190
  * <Alert.Icon />
191
191
  * <Alert.Content>
192
192
  * <Alert.Title>Usage limit approaching</Alert.Title>
193
- * <Alert.DismissIconButton onClick={dismiss} />
194
193
  * <Alert.ExpandButton count={2} expanded={isExpanded} onClick={toggle} />
194
+ * <Alert.DismissIconButton onClick={dismiss} />
195
195
  * </Alert.Content>
196
196
  * </Alert.Root>
197
197
  * ```
@@ -206,9 +206,10 @@ type AlertExpandButtonProps = Omit<ButtonProps, "appearance" | "asChild" | "chil
206
206
  /**
207
207
  * A compact, trailing control for expanding or collapsing related alerts.
208
208
  *
209
- * It occupies the trailing control area alongside `Alert.DismissIconButton`
210
- * when both are present, and marks the alert so `Alert.Content` reserves room
211
- * for its plus-prefixed count and caret on narrow viewports. It shares the
209
+ * It sits at the trailing edge. When `Alert.DismissIconButton` is also
210
+ * present, it moves to the left of the dismiss control, which stays
211
+ * rightmost. It marks the alert so `Alert.Content` reserves room for its
212
+ * plus-prefixed count and caret on narrow viewports. It shares the
212
213
  * `--alert-control-*` color variables from `Alert.Root` with the dismiss
213
214
  * control.
214
215
  *
@@ -220,8 +221,8 @@ type AlertExpandButtonProps = Omit<ButtonProps, "appearance" | "asChild" | "chil
220
221
  * <Alert.Icon />
221
222
  * <Alert.Content>
222
223
  * <Alert.Title>Usage limit approaching</Alert.Title>
223
- * <Alert.DismissIconButton />
224
224
  * <Alert.ExpandButton count={2} expanded={isExpanded} onClick={toggle} />
225
+ * <Alert.DismissIconButton />
225
226
  * </Alert.Content>
226
227
  * </Alert.Root>
227
228
  * ```
@@ -230,6 +231,15 @@ declare const ExpandButton: ({ "data-slot": dataSlot, count, expanded, className
230
231
  /**
231
232
  * Displays a callout for user attention.
232
233
  *
234
+ * @useWhen Show a persistent message in the page, such as a warning, an error, or a success note,
235
+ * beside the content it describes.
236
+ *
237
+ * @siblings
238
+ * - `Toast`: the message is brief and goes away on its own.
239
+ * - `AlertDialog`: the user must respond before they continue.
240
+ * - `AlertCenter`: several account-level alerts share one bar at the top of the app.
241
+ * - `Empty`: a region has no data, no results, or no access to show.
242
+ *
233
243
  * @see https://mantle.ngrok.com/components/feedback/alert
234
244
  *
235
245
  * @example
@@ -240,8 +250,8 @@ declare const ExpandButton: ({ "data-slot": dataSlot, count, expanded, className
240
250
  * ├── Alert.Content
241
251
  * ├── Alert.Title
242
252
  * ├── Alert.Description
243
- * ├── Alert.DismissIconButton
244
- * └── Alert.ExpandButton
253
+ * ├── Alert.ExpandButton
254
+ * └── Alert.DismissIconButton
245
255
  * ```
246
256
  *
247
257
  * @example
@@ -253,8 +263,8 @@ declare const ExpandButton: ({ "data-slot": dataSlot, count, expanded, className
253
263
  * <Alert.Description>
254
264
  * Alert description text.
255
265
  * </Alert.Description>
256
- * <Alert.DismissIconButton />
257
266
  * <Alert.ExpandButton count={2} expanded={false} />
267
+ * <Alert.DismissIconButton />
258
268
  * </Alert.Content>
259
269
  * </Alert.Root>
260
270
  *```
@@ -272,8 +282,8 @@ declare const Alert: {
272
282
  * <Alert.Content>
273
283
  * <Alert.Title>Alert Title</Alert.Title>
274
284
  * <Alert.Description>Alert description</Alert.Description>
275
- * <Alert.DismissIconButton />
276
285
  * <Alert.ExpandButton count={2} expanded={false} />
286
+ * <Alert.DismissIconButton />
277
287
  * </Alert.Content>
278
288
  * </Alert.Root>
279
289
  * ```
@@ -291,8 +301,8 @@ declare const Alert: {
291
301
  * <Alert.Content>
292
302
  * <Alert.Title>Alert Title</Alert.Title>
293
303
  * <Alert.Description>Alert description text.</Alert.Description>
294
- * <Alert.DismissIconButton />
295
304
  * <Alert.ExpandButton count={2} expanded={false} />
305
+ * <Alert.DismissIconButton />
296
306
  * </Alert.Content>
297
307
  * </Alert.Root>
298
308
  * ```
@@ -312,8 +322,8 @@ declare const Alert: {
312
322
  * <Alert.Icon />
313
323
  * <Alert.Content>
314
324
  * <Alert.Title>Usage limit approaching</Alert.Title>
315
- * <Alert.DismissIconButton />
316
325
  * <Alert.ExpandButton count={2} expanded={isExpanded} onClick={toggle} />
326
+ * <Alert.DismissIconButton />
317
327
  * </Alert.Content>
318
328
  * </Alert.Root>
319
329
  * ```
@@ -331,8 +341,8 @@ declare const Alert: {
331
341
  * <Alert.Content>
332
342
  * <Alert.Title>Alert Title</Alert.Title>
333
343
  * <Alert.Description>Alert description text.</Alert.Description>
334
- * <Alert.DismissIconButton />
335
344
  * <Alert.ExpandButton count={2} expanded={false} />
345
+ * <Alert.DismissIconButton />
336
346
  * </Alert.Content>
337
347
  * </Alert.Root>
338
348
  * ```
@@ -377,8 +387,8 @@ declare const Alert: {
377
387
  * <Alert.Content>
378
388
  * <Alert.Title>Alert Title</Alert.Title>
379
389
  * <Alert.Description>Alert description text.</Alert.Description>
380
- * <Alert.DismissIconButton />
381
390
  * <Alert.ExpandButton count={2} expanded={false} />
391
+ * <Alert.DismissIconButton />
382
392
  * </Alert.Content>
383
393
  * </Alert.Root>
384
394
  * ```
@@ -396,8 +406,8 @@ declare const Alert: {
396
406
  * <Alert.Content>
397
407
  * <Alert.Title>Alert Title</Alert.Title>
398
408
  * <Alert.Description>Alert description text.</Alert.Description>
399
- * <Alert.DismissIconButton />
400
409
  * <Alert.ExpandButton count={2} expanded={false} />
410
+ * <Alert.DismissIconButton />
401
411
  * </Alert.Content>
402
412
  * </Alert.Root>
403
413
  * ```
@@ -1,8 +1,13 @@
1
- import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
2
- import { t as Alert } from "./alert-BcSBNR3S.js";
1
+ /**
2
+ * Re-exports for the AlertCenter component.
3
+ *
4
+ * @see https://mantle.ngrok.com/components/feedback/alert-center
5
+ */
6
+ import { t as WithDataSlot } from "./data-slot-BW8KQ9Xo.js";
7
+ import { t as Alert } from "./alert-D0zRRUHV.js";
3
8
  import { ComponentProps, ReactNode } from "react";
4
9
  /**
5
- * The tone an alert's color communicates — identical to `Alert`'s intent axis,
10
+ * The tone an alert's color communicates, identical to `Alert`'s intent axis,
6
11
  * so an item's `intent` flows straight through to the `Alert` chrome that
7
12
  * renders it. Also the severity ranking key: `danger` › `warning` ›
8
13
  * `important` › `info` › `success` decides which item the bar shows.
@@ -16,7 +21,7 @@ import { ComponentProps, ReactNode } from "react";
16
21
  */
17
22
  type AlertCenterIntent = "danger" | "important" | "info" | "success" | "warning";
18
23
  /**
19
- * Props for {@link AlertCenter.Root} — the expansion's open state. The alerts
24
+ * Props for {@link AlertCenter.Root}: the expansion's open state. The alerts
20
25
  * themselves are authored as `AlertCenter.Item` children.
21
26
  *
22
27
  * @see https://mantle.ngrok.com/components/feedback/alert-center#alertcenterroot
@@ -43,7 +48,7 @@ type AlertCenterRootProps = {
43
48
  onOpenChange?: (open: boolean) => void;
44
49
  /**
45
50
  * The `AlertCenter.Bar`, `AlertCenter.Content`, and every `AlertCenter.Item`.
46
- * Items may be authored anywhere under the root — their children stay in this
51
+ * Items may be authored anywhere under the root. Their children stay in this
47
52
  * tree and are projected into the bar or an expansion row by rank.
48
53
  */
49
54
  children?: ReactNode;
@@ -56,7 +61,7 @@ type AlertCenterRootProps = {
56
61
  * notice, so all top-of-viewport messaging shares one layout slot.
57
62
  *
58
63
  * Items register client-side (from layout effects), so server-rendered HTML
59
- * contains no bar; it enters with its height animation after hydration — the
64
+ * contains no bar; it enters with its height animation after hydration, the
60
65
  * same entrance every arriving alert gets by design.
61
66
  *
62
67
  * **Data attributes:**
@@ -77,7 +82,7 @@ type AlertCenterRootProps = {
77
82
  * <Alert.Icon />
78
83
  * <Alert.Content>
79
84
  * <Alert.Title>
80
- * Payment failed — <a href="/billing">update your card</a>
85
+ * Payment failed: <a href="/billing">update your card</a>
81
86
  * </Alert.Title>
82
87
  * </Alert.Content>
83
88
  * </AlertCenter.Item>
@@ -88,7 +93,7 @@ type AlertCenterRootProps = {
88
93
  declare const Root: ({ children, defaultOpen, onOpenChange, open }: AlertCenterRootProps) => import("react").JSX.Element;
89
94
  /**
90
95
  * Props for {@link AlertCenter.Item}: the coordination facts the center needs
91
- * to rank, announce, and label an alert — everything presentational is the
96
+ * to rank, announce, and label an alert. Everything presentational is the
92
97
  * authored `children`.
93
98
  *
94
99
  * @see https://mantle.ngrok.com/components/feedback/alert-center#alertcenteritem
@@ -114,7 +119,7 @@ type AlertCenterItemProps = {
114
119
  * their state as the host moves between the bar and a row), pins the
115
120
  * item's arrival order (a returning id resumes its original position), and
116
121
  * is stamped on the chrome as `data-alert-id` for styling. Must be unique
117
- * among the items mounted under one `AlertCenter.Root` — a second mounted
122
+ * among the items mounted under one `AlertCenter.Root`. A second mounted
118
123
  * item claiming the same id throws, since both would project into that
119
124
  * id's single host.
120
125
  */
@@ -138,7 +143,7 @@ type AlertCenterItemProps = {
138
143
  /**
139
144
  * The banner content: compose `Alert.Icon`, `Alert.Content`, `Alert.Title`,
140
145
  * `Alert.Description`, and `AlertCenter.DismissIconButton`. Do NOT include
141
- * `Alert.Root` — the center renders the chrome (with this item's `intent`)
146
+ * `Alert.Root`: the center renders the chrome (with this item's `intent`)
142
147
  * at whichever placement the item ranks into.
143
148
  */
144
149
  children: ReactNode;
@@ -148,18 +153,18 @@ type AlertCenterItemProps = {
148
153
  * with the center and renders its children through a portal into a stable
149
154
  * per-id host element that `AlertCenter.Bar` / `AlertCenter.Content`
150
155
  * physically adopt into their chrome. Mount it to show the alert, unmount it
151
- * to remove it — dismissal is your state flipping the condition off.
156
+ * to remove it. Dismissal is your state flipping the condition off.
152
157
  *
153
158
  * Because the children stay in YOUR React tree (only their DOM lands in the
154
159
  * chrome), context providers and error boundaries around the item work, and
155
160
  * router-aware links resolve at the authoring location. The host element is
156
- * stable and moved — not remounted — between the bar and a row, so authored
161
+ * stable and moved (not remounted) between the bar and a row, so authored
157
162
  * content keeps its state (and, in engines with `Element.moveBefore`, even
158
163
  * focus) across re-ranks. While an item ranks nowhere visible (e.g. the
159
- * expansion is not composed), its children stay mounted on a detached host —
160
- * rendered by React, contributing nothing to the document.
164
+ * expansion is not composed), its children stay mounted on a detached host:
165
+ * React renders them, and they add nothing to the document.
161
166
  *
162
- * Server rendering emits no alert DOM — the bar enters after hydration with
167
+ * Server rendering emits no alert DOM. The bar enters after hydration with
163
168
  * its height animation, the same entrance every arriving alert gets.
164
169
  *
165
170
  * **Structure.** `children` render inside a
@@ -176,7 +181,7 @@ type AlertCenterItemProps = {
176
181
  * | --- | --- | --- |
177
182
  * | `data-slot` | `alert-center-item-host` | On the stable per-id host element the item's children portal into. |
178
183
  * | `data-slot` | `alert-center-item-label` | On the layout-transparent element inside the host that wraps the item's children. |
179
- * | `data-alert-host` | the item's `id` | On that same host — which alert's projected children it holds. |
184
+ * | `data-alert-host` | the item's `id` | On that same host: which alert's projected children it holds. |
180
185
  *
181
186
  * @see https://mantle.ngrok.com/components/feedback/alert-center#alertcenteritem
182
187
  *
@@ -209,15 +214,15 @@ type AlertCenterDismissIconButtonProps = ComponentProps<typeof Alert.DismissIcon
209
214
  };
210
215
  /**
211
216
  * The dismiss affordance for the item it's composed inside. A thin wrapper over
212
- * `Alert.DismissIconButton` whose label defaults to `Dismiss ${title}`, derived
213
- * from the enclosing banner's RENDERED `Alert.Title` text and re-read on every
214
- * commit so the accessible name stays in lockstep with the visible copy (pass
215
- * `label` to override, e.g. when the title is long). Compose it — or leave it
216
- * out — per alert; its presence IS the alert's dismissability.
217
+ * `Alert.DismissIconButton` whose label defaults to `Dismiss ${title}`. That
218
+ * label derives from the enclosing banner's RENDERED `Alert.Title` text and is
219
+ * re-read on every commit, so the accessible name stays in lockstep with the
220
+ * visible copy (pass `label` to override, e.g. when the title is long). Compose
221
+ * it (or leave it out) per alert; its presence IS the alert's dismissability.
217
222
  *
218
223
  * Where the control sits in each placement is the chrome's business, not this
219
- * wrapper's: {@link dismissClearsExpandControl} seats it beside the bar's
220
- * expand control, and {@link singleLineBarControls} re-centers it in a
224
+ * wrapper's: `Alert.Root` keeps it rightmost and seats the bar's expand
225
+ * control to its left, and {@link singleLineBarControls} re-centers it in a
221
226
  * single-line bar.
222
227
  *
223
228
  * **Data attributes:**
@@ -225,7 +230,7 @@ type AlertCenterDismissIconButtonProps = ComponentProps<typeof Alert.DismissIcon
225
230
  * | Data Attribute | Value | Description |
226
231
  * | --- | --- | --- |
227
232
  * | `data-slot` | `alert-center-dismiss-icon-button alert-dismiss-icon-button icon-button` | On the rendered button, joined ahead of `Alert.DismissIconButton`'s own slot and `IconButton`'s. |
228
- * | `data-alert-dismiss` | present | Read, not stamped — `Alert` emits it, and `AlertCenter`'s bar CSS positions the control with it. |
233
+ * | `data-alert-dismiss` | present | Read, not stamped. `Alert` emits it, and `AlertCenter`'s bar CSS positions the control with it. |
229
234
  *
230
235
  * @see https://mantle.ngrok.com/components/feedback/alert-center#alertcenterdismissiconbutton
231
236
  *
@@ -246,13 +251,13 @@ type AlertCenterDismissIconButtonProps = ComponentProps<typeof Alert.DismissIcon
246
251
  */
247
252
  declare const DismissIconButton: ({ "data-slot": dataSlot, label, ref, ...props }: AlertCenterDismissIconButtonProps) => import("react").JSX.Element;
248
253
  type AlertCenterBarProps = Omit<ComponentProps<typeof Alert.Root>, "appearance" | "intent" | "children"> & WithDataSlot & {
249
- /** The bar renders the top-ranked item's authored children — it takes none of its own. */
254
+ /** Not accepted. The bar renders the top-ranked item's authored children. */
250
255
  children?: never;
251
256
  };
252
257
  /**
253
258
  * The always-visible, full-width strip. It renders the single highest-severity
254
- * item's authored children INLINE — icon, title, description, and its
255
- * call-to-action — so the top CTA is one glance (and zero extra clicks) away,
259
+ * item's authored children INLINE (icon, title, description, and its
260
+ * call-to-action), so the top CTA is one glance (and zero extra clicks) away,
256
261
  * then appends a count-and-caret control that expands the additional alerts
257
262
  * below the bar. Collapses to nothing when there are no alerts (like
258
263
  * `AppLayout.Notice`), so it can stay mounted and render unconditionally.
@@ -261,12 +266,12 @@ type AlertCenterBarProps = Omit<ComponentProps<typeof Alert.Root>, "appearance"
261
266
  * content: single-line for a title alone, two lines once an `Alert.Description`
262
267
  * is composed (matching how the same alert renders as an expansion row). Its
263
268
  * chrome carries `data-placement="bar"` and `data-alert-id` as styling hooks for
264
- * placement-aware authored content — `in-data-[placement=bar]:hidden` keeps a
269
+ * placement-aware authored content: `in-data-[placement=bar]:hidden` keeps a
265
270
  * given element out of the bar and shows it only in the expansion.
266
271
  *
267
- * The bar itself claims NO ARIA landmark (deliberately, like `AppLayout.Notice`)
268
- * — arrivals and re-ranks are announced by the persistent visually-hidden
269
- * `role="status"` region that `AlertCenter.Root` mounts.
272
+ * The bar itself claims NO ARIA landmark (deliberately, like `AppLayout.Notice`).
273
+ * The persistent visually-hidden `role="status"` region that `AlertCenter.Root`
274
+ * mounts announces arrivals and re-ranks.
270
275
  *
271
276
  * **Data attributes:**
272
277
  *
@@ -276,10 +281,10 @@ type AlertCenterBarProps = Omit<ComponentProps<typeof Alert.Root>, "appearance"
276
281
  * | `data-slot` | `alert-center-bar alert` | On the banner chrome the top item's children render inside, joined ahead of `Alert.Root`'s own slot. |
277
282
  * | `data-slot` | `alert-center-bar-mount` | On the layout-transparent element the top item's host is adopted into. |
278
283
  * | `data-state` | `"open"` \| `"closed"` | On the wrapper; drives the enter/exit transition, and stays `closed` while the exit plays. |
279
- * | `data-placement` | `"bar"` | On the chrome — where the top item's children are currently rendering. |
284
+ * | `data-placement` | `"bar"` | On the chrome: where the top item's children are currently rendering. |
280
285
  * | `data-alert-id` | the top item's `id` | On the chrome; per-alert styling and testing hook. |
281
- * | `data-alert-dismiss` | present on the dismiss control | Read, not stamped — `Alert` emits it; the bar's CSS centers and offsets the control with it. |
282
- * | `data-alert-expand` | present on the expand control | Read, not stamped — `Alert` emits it; the bar's CSS centers the control with it. |
286
+ * | `data-alert-dismiss` | present on the dismiss control | Read, not stamped. `Alert` emits it; the bar's CSS centers and offsets the control with it. |
287
+ * | `data-alert-expand` | present on the expand control | Read, not stamped. `Alert` emits it; the bar's CSS centers the control with it. |
283
288
  *
284
289
  * @see https://mantle.ngrok.com/components/feedback/alert-center#alertcenterbar
285
290
  *
@@ -292,7 +297,7 @@ type AlertCenterBarProps = Omit<ComponentProps<typeof Alert.Root>, "appearance"
292
297
  * <Alert.Icon />
293
298
  * <Alert.Content>
294
299
  * <Alert.Title>
295
- * Payment failed — we couldn't charge your card.{" "}
300
+ * Payment failed: we couldn't charge your card.{" "}
296
301
  * <a href="/billing">Update payment method</a>
297
302
  * </Alert.Title>
298
303
  * <Alert.Description>
@@ -317,7 +322,7 @@ type AlertCenterBarProps = Omit<ComponentProps<typeof Alert.Root>, "appearance"
317
322
  */
318
323
  declare const Bar: ({ className, "data-slot": dataSlot, ref, ...props }: AlertCenterBarProps) => import("react").JSX.Element | null;
319
324
  type AlertCenterContentProps = Omit<ComponentProps<"div">, "children" | "id"> & WithDataSlot & {
320
- /** Rows are the registered items' authored children — Content takes none of its own. */
325
+ /** Not accepted. The rows are the registered items' authored children. */
321
326
  children?: never;
322
327
  };
323
328
  /**
@@ -329,7 +334,7 @@ type AlertCenterContentProps = Omit<ComponentProps<"div">, "children" | "id"> &
329
334
  * `data-alert-id`.
330
335
  *
331
336
  * `aria-label` (default `"More alerts"`) and `aria-labelledby` name the row
332
- * list itself — the outer wrapper is `role="generic"`, where ARIA prohibits
337
+ * list itself. The outer wrapper is `role="generic"`, where ARIA prohibits
333
338
  * accessible names, so a name passed here would otherwise be dropped.
334
339
  *
335
340
  * **Data attributes:**
@@ -339,9 +344,9 @@ type AlertCenterContentProps = Omit<ComponentProps<"div">, "children" | "id"> &
339
344
  * | `data-slot` | `alert-center-content` | On the expansion wrapper that owns the collapse animation. |
340
345
  * | `data-slot` | `alert-center-item alert` | On each row's banner chrome, joined ahead of `Alert.Root`'s own slot. |
341
346
  * | `data-state` | `"open"` \| `"closed"` | On the wrapper; drives the collapse transition. |
342
- * | `data-placement` | `"list"` | On each row's chrome — where that item's children are currently rendering. |
347
+ * | `data-placement` | `"list"` | On each row's chrome: where that item's children are currently rendering. |
343
348
  * | `data-alert-id` | the row item's `id` | On each row's chrome; per-alert styling and testing hook. |
344
- * | `data-alert-mount` | the row item's `id` | On the row's layout-transparent mount point — the element that item's host is adopted into. |
349
+ * | `data-alert-mount` | the row item's `id` | On the row's layout-transparent mount point: the element that item's host is adopted into. |
345
350
  *
346
351
  * @see https://mantle.ngrok.com/components/feedback/alert-center#alertcentercontent
347
352
  *
@@ -354,7 +359,7 @@ type AlertCenterContentProps = Omit<ComponentProps<"div">, "children" | "id"> &
354
359
  * <Alert.Icon />
355
360
  * <Alert.Content>
356
361
  * <Alert.Title>
357
- * Payment failed — <a href="/billing">update your card</a>
362
+ * Payment failed: <a href="/billing">update your card</a>
358
363
  * </Alert.Title>
359
364
  * </Alert.Content>
360
365
  * </AlertCenter.Item>
@@ -373,7 +378,7 @@ type AlertCenterContentProps = Omit<ComponentProps<"div">, "children" | "id"> &
373
378
  declare const Content: ({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, className, "data-slot": dataSlot, ref, ...props }: AlertCenterContentProps) => import("react").JSX.Element | null;
374
379
  /**
375
380
  * A single, top-level entry point for one-to-many account alerts and their
376
- * upgrade CTAs — the aggregation layer that replaces a stack of independent
381
+ * upgrade CTAs: the aggregation layer that replaces a stack of independent
377
382
  * window banners. Alerts are AUTHORED as `AlertCenter.Item` JSX (mount to
378
383
  * show, unmount to dismiss); each item registers its coordination facts, and
379
384
  * the center derives the count, the top alert, and the severity ranking from
@@ -392,7 +397,7 @@ declare const Content: ({ "aria-label": ariaLabel, "aria-labelledby": ariaLabell
392
397
  * children stay in the author's React tree (context providers and error
393
398
  * boundaries around an item work; router links resolve where the item is
394
399
  * written) while their DOM renders through a stable per-id host that the bar
395
- * and rows physically adopt — so content keeps its state across re-ranks.
400
+ * and rows physically adopt, so content keeps its state across re-ranks.
396
401
  *
397
402
  * Siblings: `Alert` (`@ngrok/mantle/alert`) is a single inline banner you place
398
403
  * and control yourself; `Toast` (`@ngrok/mantle/toast`) is for transient,
@@ -401,6 +406,13 @@ declare const Content: ({ "aria-label": ariaLabel, "aria-labelledby": ariaLabell
401
406
  * only the one-to-many case: persistent, ACCOUNT-level alerts that must be
402
407
  * ranked and collapsed into a single top-level bar.
403
408
  *
409
+ * @useWhen Show persistent account-level alerts, such as usage limits with upgrade actions, in one
410
+ * ranked bar at the top of the app.
411
+ *
412
+ * @siblings
413
+ * - `Alert`: one message sits inline, and you place and control it yourself.
414
+ * - `Toast`: the message is brief and goes away on its own.
415
+ *
404
416
  * @see https://mantle.ngrok.com/components/feedback/alert-center
405
417
  *
406
418
  * @example
@@ -427,7 +439,7 @@ declare const Content: ({ "aria-label": ariaLabel, "aria-labelledby": ariaLabell
427
439
  * <Alert.Icon />
428
440
  * <Alert.Content>
429
441
  * <Alert.Title>
430
- * Payment failed — we couldn't charge your card.{" "}
442
+ * Payment failed: we couldn't charge your card.{" "}
431
443
  * <a href="/billing">Update payment method</a>
432
444
  * </Alert.Title>
433
445
  * <Alert.Description>
@@ -475,7 +487,7 @@ declare const AlertCenter: {
475
487
  * <Alert.Icon />
476
488
  * <Alert.Content>
477
489
  * <Alert.Title>
478
- * Payment failed — we couldn't charge your card.{" "}
490
+ * Payment failed: we couldn't charge your card.{" "}
479
491
  * <a href="/billing">Update payment method</a>
480
492
  * </Alert.Title>
481
493
  * <Alert.Description>
@@ -513,10 +525,10 @@ declare const AlertCenter: {
513
525
  * | `data-slot` | `alert-center-bar alert` | On the banner chrome the top item's children render inside, joined ahead of `Alert.Root`'s own slot. |
514
526
  * | `data-slot` | `alert-center-bar-mount` | On the layout-transparent element the top item's host is adopted into. |
515
527
  * | `data-state` | `"open"` \| `"closed"` | On the wrapper; drives the enter/exit transition, and stays `closed` while the exit plays. |
516
- * | `data-placement` | `"bar"` | On the chrome — where the top item's children are currently rendering. |
528
+ * | `data-placement` | `"bar"` | On the chrome: where the top item's children are currently rendering. |
517
529
  * | `data-alert-id` | the top item's `id` | On the chrome; per-alert styling and testing hook. |
518
- * | `data-alert-dismiss` | present on the dismiss control | Read, not stamped — `Alert` emits it; the bar's CSS centers and offsets the control with it. |
519
- * | `data-alert-expand` | present on the expand control | Read, not stamped — `Alert` emits it; the bar's CSS centers the control with it. |
530
+ * | `data-alert-dismiss` | present on the dismiss control | Read, not stamped. `Alert` emits it; the bar's CSS centers and offsets the control with it. |
531
+ * | `data-alert-expand` | present on the expand control | Read, not stamped. `Alert` emits it; the bar's CSS centers the control with it. |
520
532
  *
521
533
  * @see https://mantle.ngrok.com/components/feedback/alert-center#alertcenterbar
522
534
  *
@@ -529,7 +541,7 @@ declare const AlertCenter: {
529
541
  * <Alert.Icon />
530
542
  * <Alert.Content>
531
543
  * <Alert.Title>
532
- * Payment failed — we couldn't charge your card.{" "}
544
+ * Payment failed: we couldn't charge your card.{" "}
533
545
  * <a href="/billing">Update payment method</a>
534
546
  * </Alert.Title>
535
547
  * <Alert.Description>
@@ -565,9 +577,9 @@ declare const AlertCenter: {
565
577
  * | `data-slot` | `alert-center-content` | On the expansion wrapper that owns the collapse animation. |
566
578
  * | `data-slot` | `alert-center-item alert` | On each row's banner chrome, joined ahead of `Alert.Root`'s own slot. |
567
579
  * | `data-state` | `"open"` \| `"closed"` | On the wrapper; drives the collapse transition. |
568
- * | `data-placement` | `"list"` | On each row's chrome — where that item's children are currently rendering. |
580
+ * | `data-placement` | `"list"` | On each row's chrome: where that item's children are currently rendering. |
569
581
  * | `data-alert-id` | the row item's `id` | On each row's chrome; per-alert styling and testing hook. |
570
- * | `data-alert-mount` | the row item's `id` | On the row's layout-transparent mount point — the element that item's host is adopted into. |
582
+ * | `data-alert-mount` | the row item's `id` | On the row's layout-transparent mount point: the element that item's host is adopted into. |
571
583
  *
572
584
  * @see https://mantle.ngrok.com/components/feedback/alert-center#alertcentercontent
573
585
  *
@@ -580,7 +592,7 @@ declare const AlertCenter: {
580
592
  * <Alert.Icon />
581
593
  * <Alert.Content>
582
594
  * <Alert.Title>
583
- * Payment failed — <a href="/billing">update your card</a>
595
+ * Payment failed: <a href="/billing">update your card</a>
584
596
  * </Alert.Title>
585
597
  * </Alert.Content>
586
598
  * </AlertCenter.Item>
@@ -600,7 +612,7 @@ declare const AlertCenter: {
600
612
  /**
601
613
  * One authored alert: registers its `{id, intent}` facts and renders its
602
614
  * children through a portal into a stable per-id host that the bar or an
603
- * expansion row adopts by rank — children stay in the author's React tree
615
+ * expansion row adopts by rank. Children stay in the author's React tree
604
616
  * and keep their state across re-ranks. Mount to show; unmount to dismiss.
605
617
  *
606
618
  * `children` render inside a `<div data-slot="alert-center-item-label">`, so
@@ -612,7 +624,7 @@ declare const AlertCenter: {
612
624
  * | --- | --- | --- |
613
625
  * | `data-slot` | `alert-center-item-host` | On the stable per-id host element the item's children portal into. |
614
626
  * | `data-slot` | `alert-center-item-label` | On the layout-transparent element inside the host that wraps the item's children. |
615
- * | `data-alert-host` | the item's `id` | On that same host — which alert's projected children it holds. |
627
+ * | `data-alert-host` | the item's `id` | On that same host: which alert's projected children it holds. |
616
628
  *
617
629
  * @see https://mantle.ngrok.com/components/feedback/alert-center#alertcenteritem
618
630
  *
@@ -625,7 +637,7 @@ declare const AlertCenter: {
625
637
  * <Alert.Icon />
626
638
  * <Alert.Content>
627
639
  * <Alert.Title>
628
- * Payment failed — <a href="/billing">update your card</a>
640
+ * Payment failed: <a href="/billing">update your card</a>
629
641
  * </Alert.Title>
630
642
  * </Alert.Content>
631
643
  * </AlertCenter.Item>
@@ -643,7 +655,7 @@ declare const AlertCenter: {
643
655
  * | Data Attribute | Value | Description |
644
656
  * | --- | --- | --- |
645
657
  * | `data-slot` | `alert-center-dismiss-icon-button alert-dismiss-icon-button icon-button` | On the rendered button, joined ahead of `Alert.DismissIconButton`'s own slot and `IconButton`'s. |
646
- * | `data-alert-dismiss` | present | Read, not stamped — `Alert` emits it, and `AlertCenter`'s bar CSS positions the control with it. |
658
+ * | `data-alert-dismiss` | present | Read, not stamped. `Alert` emits it, and `AlertCenter`'s bar CSS positions the control with it. |
647
659
  *
648
660
  * @see https://mantle.ngrok.com/components/feedback/alert-center#alertcenterdismissiconbutton
649
661
  *