@ngrok/mantle 0.94.0 → 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 (299) hide show
  1. package/README.md +11 -2
  2. package/dist/accordion.d.ts +61 -21
  3. package/dist/accordion.js +1 -1
  4. package/dist/agent.json +61 -56
  5. package/dist/alert-BkJHDx9X.js +1 -0
  6. package/dist/{alert-HffaioZM.d.ts → alert-D0zRRUHV.d.ts} +6 -6
  7. package/dist/alert-center.d.ts +53 -53
  8. package/dist/alert-center.js +1 -1
  9. package/dist/alert-dialog.d.ts +22 -10
  10. package/dist/alert-dialog.js +1 -1
  11. package/dist/alert.d.ts +1 -1
  12. package/dist/alert.js +1 -1
  13. package/dist/anchor-Dc6IgvXV.js +1 -0
  14. package/dist/anchor.d.ts +5 -5
  15. package/dist/anchor.js +1 -1
  16. package/dist/app-layout.d.ts +18 -18
  17. package/dist/app-layout.js +1 -1
  18. package/dist/area-chart.d.ts +13 -13
  19. package/dist/area-chart.js +1 -1
  20. package/dist/avatar.d.ts +24 -24
  21. package/dist/avatar.js +1 -1
  22. package/dist/badge.d.ts +7 -7
  23. package/dist/badge.js +1 -1
  24. package/dist/bar-chart.d.ts +12 -12
  25. package/dist/bar-chart.js +1 -1
  26. package/dist/breadcrumb.d.ts +36 -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.js +1 -1
  31. package/dist/{button-K0pKc3GN.d.ts → button-5Pc7Mby_.d.ts} +3 -3
  32. package/dist/button-B9bChDgl.js +1 -0
  33. package/dist/button-D8jixIbH.js +1 -0
  34. package/dist/button-DNLTJ32M.js +1 -0
  35. package/dist/{button-Cgf2IcEC.d.ts → button-Ddj6yr10.d.ts} +26 -26
  36. package/dist/{button-BGwOPjGV.d.ts → button-DnYv7IOT.d.ts} +22 -21
  37. package/dist/button.d.ts +3 -3
  38. package/dist/button.js +1 -1
  39. package/dist/calendar.d.ts +1 -1
  40. package/dist/calendar.js +1 -1
  41. package/dist/card.d.ts +1 -1
  42. package/dist/card.js +1 -1
  43. package/dist/centered-layout.d.ts +23 -23
  44. package/dist/centered-layout.js +1 -1
  45. package/dist/{chart-CE5Uaqz9.js → chart-BLCqzt56.js} +1 -1
  46. package/dist/{chart-DCTGGlWL.js → chart-CChZiCrt.js} +1 -1
  47. package/dist/{chart-BO9EwQ60.js → chart-CUmSu9d7.js} +1 -1
  48. package/dist/{chart-jitNqimS.d.ts → chart-Dl8gFo_D.d.ts} +22 -22
  49. package/dist/chart-DtgZBAas.js +2 -0
  50. package/dist/checkbox-Cu5cgZmk.js +1 -0
  51. package/dist/checkbox.d.ts +1 -1
  52. package/dist/checkbox.js +1 -1
  53. package/dist/choice-CCVG2hb9.js +1 -0
  54. package/dist/{choice-BwfmbepO.d.ts → choice-CNiOSzqV.d.ts} +20 -20
  55. package/dist/choice.d.ts +1 -1
  56. package/dist/choice.js +1 -1
  57. package/dist/code-BPKNY1_w.js +1 -0
  58. package/dist/{code-block-BGdV4Yty.d.ts → code-block-BDw6MEwH.d.ts} +9 -9
  59. package/dist/{code-block-W3kWPxCJ.js → code-block-CKzsAMzj.js} +3 -3
  60. package/dist/code-block.d.ts +15 -17
  61. package/dist/code-block.js +1 -1
  62. package/dist/code-block_highlight-utils.d.ts +1 -1
  63. package/dist/code-block_highlight-utils.js +1 -1
  64. package/dist/code.d.ts +3 -3
  65. package/dist/code.js +1 -1
  66. package/dist/combobox.d.ts +15 -15
  67. package/dist/combobox.js +1 -1
  68. package/dist/command.d.ts +47 -47
  69. package/dist/command.js +1 -1
  70. package/dist/compose-refs-BdRUneoc.js +1 -0
  71. package/dist/{copy-to-clipboard-DInu78k_.js → copy-to-clipboard-Dd83caRw.js} +1 -1
  72. package/dist/cx.d.ts +4 -4
  73. package/dist/{data-slot-B-LqAcBB.d.ts → data-slot-BW8KQ9Xo.d.ts} +2 -2
  74. package/dist/data-table.d.ts +36 -36
  75. package/dist/data-table.js +1 -1
  76. package/dist/description-list.d.ts +1 -1
  77. package/dist/description-list.js +1 -1
  78. package/dist/{dialog-DD5H3EH1.d.ts → dialog-CIEuwNys.d.ts} +24 -8
  79. package/dist/{dialog-B9JAGy_x.d.ts → dialog-CbEEA0fl.d.ts} +7 -3
  80. package/dist/dialog-DmzoDfY3.js +1 -0
  81. package/dist/dialog.d.ts +2 -2
  82. package/dist/dialog.js +1 -1
  83. package/dist/{dropdown-menu-DmDxYPde.d.ts → dropdown-menu-CeY498yk.d.ts} +10 -10
  84. package/dist/dropdown-menu-uheL0prz.js +1 -0
  85. package/dist/dropdown-menu.d.ts +1 -1
  86. package/dist/dropdown-menu.js +1 -1
  87. package/dist/empty.d.ts +2 -2
  88. package/dist/empty.js +1 -1
  89. package/dist/field-Bpvn4tQp.js +1 -0
  90. package/dist/field-Cai_4c1l.js +1 -0
  91. package/dist/field.d.ts +41 -41
  92. package/dist/field.js +1 -1
  93. package/dist/flag.d.ts +3 -3
  94. package/dist/flag.js +1 -1
  95. package/dist/hooks.d.ts +30 -10
  96. package/dist/hooks.js +1 -1
  97. package/dist/hover-card.d.ts +3 -3
  98. package/dist/hover-card.js +1 -1
  99. package/dist/{icon-CgNqu-fl.d.ts → icon--purqHRo.d.ts} +1 -1
  100. package/dist/{icon-NYvyyRMG.d.ts → icon-DuIYoyft.d.ts} +2 -2
  101. package/dist/{icon-DXDyhy2N.d.ts → icon-QCm1ui29.d.ts} +2 -2
  102. package/dist/icon-xb7d9M7X.js +1 -0
  103. package/dist/icon.d.ts +3 -3
  104. package/dist/icon.js +1 -1
  105. package/dist/icons-DEDCLZ8B.js +1 -0
  106. package/dist/icons-DXadFwpo.js +1 -0
  107. package/dist/icons-DcesO4Ng.js +1 -0
  108. package/dist/icons.d.ts +2 -2
  109. package/dist/icons.js +1 -1
  110. package/dist/{in-view-B3nMAzfE.d.ts → in-view-C_daNafg.d.ts} +4 -23
  111. package/dist/{input-q8o5uMhW.d.ts → input-DC4nW0Sr.d.ts} +1 -1
  112. package/dist/input-fW8QSZEO.js +1 -0
  113. package/dist/input.d.ts +4 -4
  114. package/dist/input.js +1 -1
  115. package/dist/kbd-P1nQshWo.js +1 -0
  116. package/dist/kbd.d.ts +5 -5
  117. package/dist/kbd.js +1 -1
  118. package/dist/label-DO1RlMKl.js +1 -0
  119. package/dist/{label-r2sJcSQ4.d.ts → label-epgtywRz.d.ts} +8 -8
  120. package/dist/label.d.ts +1 -1
  121. package/dist/label.js +1 -1
  122. package/dist/layer-container-DL4yclOu.js +1 -0
  123. package/dist/layer-container.d.ts +2 -2
  124. package/dist/layer-container.js +1 -1
  125. package/dist/line-chart.d.ts +12 -12
  126. package/dist/line-chart.js +1 -1
  127. package/dist/list-cQZPSjfz.js +1 -0
  128. package/dist/list.d.ts +17 -17
  129. package/dist/list.js +1 -1
  130. package/dist/live-region-Dhapu8a5.js +1 -0
  131. package/dist/live-region.d.ts +1 -1
  132. package/dist/live-region.js +1 -1
  133. package/dist/llms.txt +23 -22
  134. package/dist/main-CHyWYDak.js +1 -0
  135. package/dist/main.d.ts +1 -1
  136. package/dist/main.js +1 -1
  137. package/dist/mantle.css +25 -25
  138. package/dist/media-object.d.ts +4 -4
  139. package/dist/media-object.js +1 -1
  140. package/dist/multi-select.d.ts +28 -28
  141. package/dist/multi-select.js +1 -1
  142. package/dist/otp-input.d.ts +3 -3
  143. package/dist/otp-input.js +1 -1
  144. package/dist/pagination.d.ts +4 -4
  145. package/dist/pagination.js +1 -1
  146. package/dist/{popover-lwkwWcRW.d.ts → popover-Bei0jyfH.d.ts} +73 -7
  147. package/dist/popover-DhgunktK.js +1 -0
  148. package/dist/popover-T2EyaqGK.d.ts +1 -0
  149. package/dist/popover.d.ts +2 -2
  150. package/dist/popover.js +1 -1
  151. package/dist/primitive-D8CzV_Ft.js +1 -0
  152. package/dist/progress.d.ts +1 -1
  153. package/dist/progress.js +1 -1
  154. package/dist/qr-code.d.ts +3 -3
  155. package/dist/qr-code.js +1 -1
  156. package/dist/query-filter.d.ts +6 -6
  157. package/dist/query.d.ts +8 -3
  158. package/dist/query.js +1 -1
  159. package/dist/{radio-group-sLz5AA9I.d.ts → radio-group-BJQ6EOqh.d.ts} +1 -1
  160. package/dist/radio-group-BliblUqe.js +1 -0
  161. package/dist/radio-group-ggEkCi0V.js +1 -0
  162. package/dist/radio-group.d.ts +2 -2
  163. package/dist/radio-group.js +1 -1
  164. package/dist/sandbar.d.ts +30 -30
  165. package/dist/sandbar.js +1 -1
  166. package/dist/sandboxed-on-click-D4PL5_GR.js +1 -0
  167. package/dist/sandboxed-on-click.js +1 -1
  168. package/dist/scatter-plot.d.ts +13 -14
  169. package/dist/scatter-plot.js +1 -1
  170. package/dist/segmented-control.d.ts +1 -1
  171. package/dist/segmented-control.js +1 -1
  172. package/dist/select-1xuUx_os.js +1 -0
  173. package/dist/{select-BqmpVJJT.d.ts → select-BpaXHxJm.d.ts} +6 -6
  174. package/dist/select.d.ts +1 -1
  175. package/dist/select.js +1 -1
  176. package/dist/selectable-list.d.ts +18 -18
  177. package/dist/selectable-list.js +1 -1
  178. package/dist/{separator-QfH0ot5K.d.ts → separator-Ck4sPrdN.d.ts} +1 -1
  179. package/dist/separator-DnvhwY2J.js +1 -0
  180. package/dist/separator.d.ts +1 -1
  181. package/dist/separator.js +1 -1
  182. package/dist/{shake-DL6WhMXM.js → shake-CAUpKBHe.js} +1 -1
  183. package/dist/sheet-DHy_vlme.js +1 -0
  184. package/dist/sheet.d.ts +23 -7
  185. package/dist/sheet.js +1 -1
  186. package/dist/sidebar.d.ts +37 -37
  187. package/dist/sidebar.js +1 -1
  188. package/dist/skeleton-DHfyjuQi.js +1 -0
  189. package/dist/skeleton.d.ts +4 -4
  190. package/dist/skeleton.js +1 -1
  191. package/dist/skip-to-main-link.d.ts +1 -1
  192. package/dist/skip-to-main-link.js +1 -1
  193. package/dist/slider.d.ts +1 -1
  194. package/dist/slider.js +1 -1
  195. package/dist/slot-B7rwscwd.js +1 -0
  196. package/dist/{slot-D12N_fZJ.d.ts → slot-BEMQMbk3.d.ts} +4 -4
  197. package/dist/slot.d.ts +1 -1
  198. package/dist/slot.js +1 -1
  199. package/dist/source-all.css +5 -1
  200. package/dist/split-button.d.ts +9 -9
  201. package/dist/split-button.js +1 -1
  202. package/dist/strata.d.ts +22 -22
  203. package/dist/strata.js +1 -1
  204. package/dist/{suggestions-NkqYTT49.d.ts → suggestions-BJeGvwDa.d.ts} +7 -7
  205. package/dist/switch.d.ts +1 -1
  206. package/dist/switch.js +1 -1
  207. package/dist/table-BnLdXUai.js +1 -0
  208. package/dist/{table-rWiVWEgB.d.ts → table-Ii9hHUWN.d.ts} +5 -5
  209. package/dist/table.d.ts +1 -1
  210. package/dist/table.js +1 -1
  211. package/dist/tabs.d.ts +2 -2
  212. package/dist/tabs.js +1 -1
  213. package/dist/text-area.d.ts +1 -1
  214. package/dist/text-area.js +1 -1
  215. package/dist/theme-BNdZl352.js +1 -0
  216. package/dist/theme-switcher.d.ts +4 -4
  217. package/dist/theme-switcher.js +1 -1
  218. package/dist/theme.d.ts +14 -12
  219. package/dist/theme.js +1 -1
  220. package/dist/toast.d.ts +2 -2
  221. package/dist/toast.js +1 -1
  222. package/dist/tokens.dark.json +3261 -0
  223. package/dist/tokens.json +4933 -0
  224. package/dist/tokens.resolver.json +37 -0
  225. package/dist/{tooltip-CpK3XTor.d.ts → tooltip-CstGDKwy.d.ts} +4 -4
  226. package/dist/tooltip-DQO40Mrq.js +1 -0
  227. package/dist/tooltip.d.ts +1 -1
  228. package/dist/tooltip.js +1 -1
  229. package/dist/truncated-text.d.ts +1 -1
  230. package/dist/truncated-text.js +1 -1
  231. package/dist/use-breakpoint-B4Kh0xE6.js +1 -0
  232. package/dist/use-callback-ref-DiOXFQzM.js +1 -0
  233. package/dist/use-composed-refs-DPYmLDSe.js +1 -0
  234. package/dist/use-copy-to-clipboard-hBL6_65i.js +1 -0
  235. package/dist/use-inert-siblings-C4RHXrZc.js +1 -0
  236. package/dist/use-is-apple-platform-Bq6_KbVX.js +1 -0
  237. package/dist/use-is-hydrated-BeLOGKwE.js +1 -0
  238. package/dist/use-is-hydrated-after-paint-CrHt3OHw.js +1 -0
  239. package/dist/use-isomorphic-layout-effect-CL6iq0Bj.js +1 -0
  240. package/dist/use-matches-media-query-FfvtNKQe.js +1 -0
  241. package/dist/use-prefers-reduced-motion-Ck6dnOM9.js +1 -0
  242. package/dist/use-swipe-to-dismiss-BYdlca8r.js +1 -0
  243. package/dist/utils.d.ts +1 -1
  244. package/dist/utils.js +1 -1
  245. package/dist/visually-hidden.d.ts +1 -1
  246. package/dist/visually-hidden.js +1 -1
  247. package/dist/well.d.ts +1 -1
  248. package/dist/well.js +1 -1
  249. package/package.json +16 -2
  250. package/dist/alert-CH99Rw-R.js +0 -1
  251. package/dist/anchor-CgcbWEUs.js +0 -1
  252. package/dist/browser-only-BTSrYWLj.js +0 -1
  253. package/dist/button-69InNC_m.js +0 -1
  254. package/dist/button-BWGUuWnu.js +0 -1
  255. package/dist/button-Cu9e3SM7.js +0 -1
  256. package/dist/chart-DudCw24t.js +0 -2
  257. package/dist/checkbox-CS504fKk.js +0 -1
  258. package/dist/choice-uyYccm0A.js +0 -1
  259. package/dist/code-DUJzSl4K.js +0 -1
  260. package/dist/compose-refs-sFdxsL7k.js +0 -1
  261. package/dist/dialog-CsugEt2A.js +0 -1
  262. package/dist/dropdown-menu-DHdgaw4P.js +0 -1
  263. package/dist/field-Bihblt8U.js +0 -1
  264. package/dist/field-CPvjazWN.js +0 -1
  265. package/dist/icon-kK0c-POG.js +0 -1
  266. package/dist/icons-4JA-SGfv.js +0 -1
  267. package/dist/icons-CDLz5lpI.js +0 -1
  268. package/dist/icons-CSwTVV2m.js +0 -1
  269. package/dist/input-DHovzBjS.js +0 -1
  270. package/dist/kbd-CLHsJ99p.js +0 -1
  271. package/dist/label-DmDwzPD8.js +0 -1
  272. package/dist/layer-container-kEQiE4zV.js +0 -1
  273. package/dist/list-CO_yLdln.js +0 -1
  274. package/dist/live-region-DQ1QLv3L.js +0 -1
  275. package/dist/main-CC1L9IsH.js +0 -1
  276. package/dist/popover-BhTFutCz.d.ts +0 -1
  277. package/dist/popover-DxOqLKxy.js +0 -1
  278. package/dist/primitive-Dz9Al-us.js +0 -1
  279. package/dist/radio-group-HDVxTNPi.js +0 -1
  280. package/dist/radio-group-jj2abc0t.js +0 -1
  281. package/dist/sandboxed-on-click-C7pPu-2M.js +0 -1
  282. package/dist/select-C6Su0dU0.js +0 -1
  283. package/dist/separator-DfzxVutO.js +0 -1
  284. package/dist/sheet-Bd2LIhzF.js +0 -1
  285. package/dist/skeleton-DBpI-ko5.js +0 -1
  286. package/dist/slot-DdYN1L1C.js +0 -1
  287. package/dist/table-CFHiDBW8.js +0 -1
  288. package/dist/theme-DdZgLvKH.js +0 -1
  289. package/dist/tooltip-b6oiTaWq.js +0 -1
  290. package/dist/use-breakpoint--mo7kr9d.js +0 -1
  291. package/dist/use-callback-ref-BvVyI5K1.js +0 -1
  292. package/dist/use-copy-to-clipboard-Dy_0Qzb7.js +0 -1
  293. package/dist/use-inert-siblings-CNmNuS2h.js +0 -1
  294. package/dist/use-is-apple-platform-D4nifHMx.js +0 -1
  295. package/dist/use-is-hydrated-after-paint-r9Cl2mGp.js +0 -1
  296. package/dist/use-isomorphic-layout-effect-CLSmHzo4.js +0 -1
  297. package/dist/use-matches-media-query-m860lols.js +0 -1
  298. package/dist/use-prefers-reduced-motion-CU6mWmOe.js +0 -1
  299. package/dist/use-swipe-to-dismiss-i__cTF2v.js +0 -1
package/dist/list.d.ts CHANGED
@@ -1,21 +1,21 @@
1
1
  /**
2
- * Re-exports for the List component — a scrollable, optionally-virtualized
2
+ * Re-exports for the List component: a scrollable, optionally-virtualized
3
3
  * list of clickable items (account switchers, SSO provider pickers).
4
4
  *
5
5
  * The list primitive backing it (and `SelectableList`) lives in
6
- * `./primitive.js` / `./virtual.js` and is deliberately **not** exported — it
6
+ * `./primitive.js` / `./virtual.js` and is deliberately **not** exported. It
7
7
  * is internal shared implementation, mirroring how `dialog/primitive` backs
8
8
  * the dialog family.
9
9
  *
10
10
  * @see https://mantle.ngrok.com/components/data-display/list
11
11
  */
12
12
  import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
13
- import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
13
+ import { t as WithDataSlot } from "./data-slot-BW8KQ9Xo.js";
14
14
  import { ComponentProps } from "react";
15
15
  /**
16
16
  * ARIA semantics for a {@link Root} / `VirtualRoot` collection and its
17
- * {@link Item}s. The element is always a `<div>` — per WAI-ARIA the *role*
18
- * carries the semantics, not the tag — so both flavors share one implementation.
17
+ * {@link Item}s. The element is always a `<div>` (per WAI-ARIA the *role*
18
+ * carries the semantics, not the tag), so both flavors share one implementation.
19
19
  *
20
20
  * - `"list"` → `<div role="list">` of `<div role="listitem">` rows: a
21
21
  * non-selecting list of actions/links (e.g. `List`). Native tab
@@ -60,7 +60,7 @@ type ListRootProps$1 = ComponentProps<"div"> & {
60
60
  semantics?: ListSemantics;
61
61
  /**
62
62
  * Called with the active row's index when it is activated under `"grid"`
63
- * semantics — by keyboard (`Space` / `Enter`) or by a bare click anywhere on
63
+ * semantics, by keyboard (`Space` / `Enter`) or by a bare click anywhere on
64
64
  * the row that isn't handled by an interactive descendant (a checkbox, a
65
65
  * label, a nested link/button). Wire it to selection.
66
66
  */
@@ -73,8 +73,8 @@ type ListRootProps$1 = ComponentProps<"div"> & {
73
73
  */
74
74
  itemId?: (index: number) => string;
75
75
  /**
76
- * Whether the row at an index is disabled — skipped by keyboard navigation
77
- * and excluded from grid activation. Defaults to reading the composed row
76
+ * Whether the row at an index is disabled. Keyboard navigation skips it,
77
+ * and it is excluded from grid activation. Defaults to reading the composed row
78
78
  * element's `disabled` prop (covering `<Item disabled>`); pass it when
79
79
  * disabled state lives in your data rather than on the row elements (e.g.
80
80
  * `SelectableList` reads it off `options[].disabled`).
@@ -103,7 +103,7 @@ type VirtualRootProps = ListRootProps$1 & {
103
103
  overscan?: number;
104
104
  };
105
105
  /**
106
- * Props for `List.Root` — the internal list primitive's `Root` props, minus
106
+ * Props for `List.Root`: the internal list primitive's `Root` props, minus
107
107
  * `semantics` (a `List` is always a `role="list"`) and the grid-only
108
108
  * `onActivate` / `itemId` / `isItemDisabled` knobs (inert under list semantics).
109
109
  *
@@ -150,7 +150,7 @@ type ListRootProps = Omit<ListRootProps$1, "semantics" | "onActivate" | "itemId"
150
150
  */
151
151
  declare const Root: (props: ListRootProps) => import("react").JSX.Element;
152
152
  /**
153
- * Props for `List.VirtualRoot` — the internal list primitive's
153
+ * Props for `List.VirtualRoot`: the internal list primitive's
154
154
  * `VirtualRoot` props (viewport props plus `estimateItemHeight` / `overscan`),
155
155
  * minus `semantics` and the grid-only `onActivate` / `itemId` / `isItemDisabled`
156
156
  * knobs.
@@ -209,9 +209,9 @@ declare const VirtualRoot: (props: ListVirtualRootProps) => import("react").JSX.
209
209
  * </List.Root>
210
210
  * ```
211
211
  */
212
- type ListItemProps = Omit<ComponentProps<"button">, "type"> & WithAsChild & {
212
+ type ListItemProps = Omit<ComponentProps<"button">, "type"> & WithAsChild & WithDataSlot & {
213
213
  /**
214
- * Marks the item as the current one (e.g. the active account) — gives its
214
+ * Marks the item as the current one (e.g. the active account). Gives its
215
215
  * pill the accent tint and sets `aria-current` so the state is announced,
216
216
  * not just shown. Optional; omit it for a plain action/navigation list.
217
217
  */
@@ -255,7 +255,7 @@ type ListItemProps = Omit<ComponentProps<"button">, "type"> & WithAsChild & {
255
255
  * </List.Root>
256
256
  * ```
257
257
  */
258
- declare const Item: ({ asChild, className, current, disabled, onClick, ref, ...props }: ListItemProps) => import("react").JSX.Element;
258
+ declare const Item: ({ asChild, className, current, "data-slot": dataSlot, disabled, onClick, ref, ...props }: ListItemProps) => import("react").JSX.Element;
259
259
  /**
260
260
  * The emphasized title line inside a `List.Item`, in the stronger foreground
261
261
  * color. A styled `<span>`.
@@ -295,19 +295,19 @@ declare const ItemTitle: ({ "data-slot": dataSlot, className, ref, ...props }: C
295
295
  */
296
296
  declare const ItemDescription: ({ "data-slot": dataSlot, className, ref, ...props }: ComponentProps<"span"> & WithDataSlot) => import("react").JSX.Element;
297
297
  /**
298
- * A scrollable, optionally-virtualized list of clickable items — the action /
298
+ * A scrollable, optionally-virtualized list of clickable items: the action /
299
299
  * navigation counterpart to `SelectableList` (e.g. an account switcher or SSO
300
300
  * provider picker). Compose `List.Item` children directly inside a
301
301
  * `List.Root`; each item is a `<button>` (or your own element via
302
302
  * `asChild`, e.g. an `<a>`), with an optional `current` accent.
303
303
  *
304
304
  * It is a **non-selecting** semantic list (`role="list"` of `role="listitem"`),
305
- * not a selection widget — selection is `SelectableList`'s job. Non-virtualized
305
+ * not a selection widget; selection is `SelectableList`'s job. Non-virtualized
306
306
  * by default; swap `Root` → `VirtualRoot` (same children) for windowing.
307
307
  * Both public list components are built on the same internal list primitive
308
- * (`./primitive.js`, deliberately unexported — like `dialog/primitive`). Items
308
+ * (`./primitive.js`, deliberately unexported, like `dialog/primitive`). Items
309
309
  * keep their native tab order, and `ArrowUp` / `ArrowDown` / `Home` / `End`
310
- * also move focus between them — the focused item tints like hover instead of
310
+ * also move focus between them. The focused item tints like hover instead of
311
311
  * drawing a focus ring.
312
312
  *
313
313
  * @useWhen Show a scrollable list of items that each run an action or navigate, such as an account
package/dist/list.js CHANGED
@@ -1 +1 @@
1
- import{t as e}from"./cx-CK7o_rVv.js";import{t}from"./data-slot-EM6s2WEU.js";import{n,r,t as i}from"./list-CO_yLdln.js";import{t as a}from"./slot-DdYN1L1C.js";import{c as o}from"react/compiler-runtime";import{jsx as s}from"react/jsx-runtime";const c={Root:e=>{let t=o(2),n;return t[0]===e?n=t[1]:(n=/* @__PURE__ */ s(r,{semantics:`list`,...e}),t[0]=e,t[1]=n),n},VirtualRoot:e=>{let t=o(2),n;return t[0]===e?n=t[1]:(n=/* @__PURE__ */ s(i,{semantics:`list`,...e}),t[0]=e,t[1]=n),n},Item:t=>{let r=o(34),i,c,u,d,f,p,m;r[0]===t?(i=r[1],c=r[2],u=r[3],d=r[4],f=r[5],p=r[6],m=r[7]):({asChild:i,className:c,current:u,disabled:d,onClick:f,ref:m,...p}=t,r[0]=t,r[1]=i,r[2]=c,r[3]=u,r[4]=d,r[5]=f,r[6]=p,r[7]=m);let h=i?a:`button`,g=u||void 0,_;r[8]!==i||r[9]!==d?(_=i?{"aria-disabled":d||void 0,tabIndex:d?-1:void 0}:{type:`button`,disabled:d},r[8]=i,r[9]=d,r[10]=_):_=r[10];let v;r[11]!==i||r[12]!==d||r[13]!==f?(v=e=>{i&&d?(e.preventDefault(),e.stopPropagation()):f?.(e)},r[11]=i,r[12]=d,r[13]=f,r[14]=v):v=r[14];let y;r[15]===c?y=r[16]:(y=e(`flex w-full cursor-pointer flex-col gap-0.5 rounded-md bg-transparent px-2 py-1.5 text-left text-sm`,`disabled:cursor-default disabled:opacity-50 aria-disabled:cursor-default aria-disabled:opacity-50 aria-disabled:pointer-events-none`,`focus-visible:outline-hidden`,c),r[15]=c,r[16]=y);let b;r[17]!==i||r[18]!==d||r[19]!==p?(b=i&&d?l:p.onClickCapture,r[17]=i,r[18]=d,r[19]=p,r[20]=b):b=r[20];let x;r[21]!==h||r[22]!==p||r[23]!==m||r[24]!==g||r[25]!==_||r[26]!==v||r[27]!==y||r[28]!==b?(x=/* @__PURE__ */ s(h,{ref:m,"data-slot":`list-item-control`,"aria-current":g,..._,onClick:v,className:y,...p,onClickCapture:b}),r[21]=h,r[22]=p,r[23]=m,r[24]=g,r[25]=_,r[26]=v,r[27]=y,r[28]=b,r[29]=x):x=r[29];let S;return r[30]!==u||r[31]!==d||r[32]!==x?(S=/* @__PURE__ */ s(n,{selected:u,disabled:d,children:x}),r[30]=u,r[31]=d,r[32]=x,r[33]=S):S=r[33],S},ItemTitle:n=>{let r=o(14),i,a,c,l;r[0]===n?(i=r[1],a=r[2],c=r[3],l=r[4]):({"data-slot":a,className:i,ref:l,...c}=n,r[0]=n,r[1]=i,r[2]=a,r[3]=c,r[4]=l);let u;r[5]===a?u=r[6]:(u=t(a,`list-item-title`),r[5]=a,r[6]=u);let d;r[7]===i?d=r[8]:(d=e(`text-strong font-medium`,i),r[7]=i,r[8]=d);let f;return r[9]!==c||r[10]!==l||r[11]!==u||r[12]!==d?(f=/* @__PURE__ */ s(`span`,{ref:l,"data-slot":u,className:d,...c}),r[9]=c,r[10]=l,r[11]=u,r[12]=d,r[13]=f):f=r[13],f},ItemDescription:n=>{let r=o(14),i,a,c,l;r[0]===n?(i=r[1],a=r[2],c=r[3],l=r[4]):({"data-slot":a,className:i,ref:l,...c}=n,r[0]=n,r[1]=i,r[2]=a,r[3]=c,r[4]=l);let u;r[5]===a?u=r[6]:(u=t(a,`list-item-description`),r[5]=a,r[6]=u);let d;r[7]===i?d=r[8]:(d=e(`text-body leading-4`,i),r[7]=i,r[8]=d);let f;return r[9]!==c||r[10]!==l||r[11]!==u||r[12]!==d?(f=/* @__PURE__ */ s(`span`,{ref:l,"data-slot":u,className:d,...c}),r[9]=c,r[10]=l,r[11]=u,r[12]=d,r[13]=f):f=r[13],f}};function l(e){e.preventDefault(),e.stopPropagation()}export{c as List};
1
+ "use client";import{t as e}from"./cx-CK7o_rVv.js";import{t}from"./data-slot-EM6s2WEU.js";import{n,r,t as i}from"./list-cQZPSjfz.js";import{t as a}from"./slot-B7rwscwd.js";import{c as o}from"react/compiler-runtime";import{jsx as s}from"react/jsx-runtime";const c={Root:e=>{let t=o(2),n;return t[0]===e?n=t[1]:(n=/* @__PURE__ */ s(r,{semantics:`list`,...e}),t[0]=e,t[1]=n),n},VirtualRoot:e=>{let t=o(2),n;return t[0]===e?n=t[1]:(n=/* @__PURE__ */ s(i,{semantics:`list`,...e}),t[0]=e,t[1]=n),n},Item:r=>{let i=o(38),c,u,d,f,p,m,h,g;i[0]===r?(c=i[1],u=i[2],d=i[3],f=i[4],p=i[5],m=i[6],h=i[7],g=i[8]):({asChild:c,className:u,current:d,"data-slot":f,disabled:p,onClick:m,ref:g,...h}=r,i[0]=r,i[1]=c,i[2]=u,i[3]=d,i[4]=f,i[5]=p,i[6]=m,i[7]=h,i[8]=g);let _=c?a:`button`,v;i[9]===f?v=i[10]:(v=t(f,`list-item-control`),i[9]=f,i[10]=v);let y=d||void 0,b;i[11]!==c||i[12]!==p?(b=c?{"aria-disabled":p||void 0,tabIndex:p?-1:void 0}:{type:`button`,disabled:p},i[11]=c,i[12]=p,i[13]=b):b=i[13];let x;i[14]!==c||i[15]!==p||i[16]!==m?(x=e=>{c&&p?(e.preventDefault(),e.stopPropagation()):m?.(e)},i[14]=c,i[15]=p,i[16]=m,i[17]=x):x=i[17];let S;i[18]===u?S=i[19]:(S=e(`flex w-full cursor-pointer flex-col gap-0.5 rounded-md bg-transparent px-2 py-1.5 text-left text-sm`,`disabled:cursor-default disabled:opacity-50 aria-disabled:cursor-default aria-disabled:opacity-50 aria-disabled:pointer-events-none`,`focus-visible:outline-hidden`,u),i[18]=u,i[19]=S);let C;i[20]!==c||i[21]!==p||i[22]!==h?(C=c&&p?l:h.onClickCapture,i[20]=c,i[21]=p,i[22]=h,i[23]=C):C=i[23];let w;i[24]!==_||i[25]!==h||i[26]!==g||i[27]!==v||i[28]!==y||i[29]!==b||i[30]!==x||i[31]!==S||i[32]!==C?(w=/* @__PURE__ */ s(_,{ref:g,"data-slot":v,"aria-current":y,...b,onClick:x,className:S,...h,onClickCapture:C}),i[24]=_,i[25]=h,i[26]=g,i[27]=v,i[28]=y,i[29]=b,i[30]=x,i[31]=S,i[32]=C,i[33]=w):w=i[33];let T;return i[34]!==d||i[35]!==p||i[36]!==w?(T=/* @__PURE__ */ s(n,{selected:d,disabled:p,children:w}),i[34]=d,i[35]=p,i[36]=w,i[37]=T):T=i[37],T},ItemTitle:n=>{let r=o(14),i,a,c,l;r[0]===n?(i=r[1],a=r[2],c=r[3],l=r[4]):({"data-slot":a,className:i,ref:l,...c}=n,r[0]=n,r[1]=i,r[2]=a,r[3]=c,r[4]=l);let u;r[5]===a?u=r[6]:(u=t(a,`list-item-title`),r[5]=a,r[6]=u);let d;r[7]===i?d=r[8]:(d=e(`text-strong font-medium`,i),r[7]=i,r[8]=d);let f;return r[9]!==c||r[10]!==l||r[11]!==u||r[12]!==d?(f=/* @__PURE__ */ s(`span`,{ref:l,"data-slot":u,className:d,...c}),r[9]=c,r[10]=l,r[11]=u,r[12]=d,r[13]=f):f=r[13],f},ItemDescription:n=>{let r=o(14),i,a,c,l;r[0]===n?(i=r[1],a=r[2],c=r[3],l=r[4]):({"data-slot":a,className:i,ref:l,...c}=n,r[0]=n,r[1]=i,r[2]=a,r[3]=c,r[4]=l);let u;r[5]===a?u=r[6]:(u=t(a,`list-item-description`),r[5]=a,r[6]=u);let d;r[7]===i?d=r[8]:(d=e(`text-body leading-4`,i),r[7]=i,r[8]=d);let f;return r[9]!==c||r[10]!==l||r[11]!==u||r[12]!==d?(f=/* @__PURE__ */ s(`span`,{ref:l,"data-slot":u,className:d,...c}),r[9]=c,r[10]=l,r[11]=u,r[12]=d,r[13]=f):f=r[13],f}};function l(e){e.preventDefault(),e.stopPropagation()}export{c as List};
@@ -0,0 +1 @@
1
+ "use client";import{t as e}from"./cx-CK7o_rVv.js";import{t}from"./data-slot-EM6s2WEU.js";import{t as n}from"./slot-B7rwscwd.js";import{c as r}from"react/compiler-runtime";import{jsx as i}from"react/jsx-runtime";const a=a=>{let o=r(19),s,c,l,u,d,f;o[0]===a?(s=o[1],c=o[2],l=o[3],u=o[4],d=o[5],f=o[6]):({"data-slot":l,asChild:s,className:c,politeness:f,ref:d,...u}=a,o[0]=a,o[1]=s,o[2]=c,o[3]=l,o[4]=u,o[5]=d,o[6]=f);let p=f===void 0?`polite`:f,m=s?n:`span`,h;o[7]===l?h=o[8]:(h=t(l,`live-region`),o[7]=l,o[8]=h);let g=p===`assertive`?`alert`:`status`,_=p===`assertive`?void 0:`polite`,v;o[9]===c?v=o[10]:(v=e(`sr-only`,c),o[9]=c,o[10]=v);let y;return o[11]!==m||o[12]!==u||o[13]!==d||o[14]!==h||o[15]!==g||o[16]!==_||o[17]!==v?(y=/* @__PURE__ */ i(m,{ref:d,"data-slot":h,role:g,"aria-live":_,"aria-atomic":`true`,className:v,...u}),o[11]=m,o[12]=u,o[13]=d,o[14]=h,o[15]=g,o[16]=_,o[17]=v,o[18]=y):y=o[18],y};export{a as t};
@@ -4,7 +4,7 @@
4
4
  * @see https://mantle.ngrok.com/components/primitives/live-region
5
5
  */
6
6
  import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
7
- import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
7
+ import { t as WithDataSlot } from "./data-slot-BW8KQ9Xo.js";
8
8
  import { ComponentProps } from "react";
9
9
  type LiveRegionProps = ComponentProps<"span"> & WithAsChild & {
10
10
  /**
@@ -1 +1 @@
1
- export{t as LiveRegion}from"./live-region-DQ1QLv3L.js";
1
+ export{t as LiveRegion}from"./live-region-Dhapu8a5.js";
package/dist/llms.txt CHANGED
@@ -1,9 +1,10 @@
1
- # @ngrok/mantle (0.94.0)
1
+ # @ngrok/mantle (0.94.1)
2
2
 
3
- > Offline index shipped inside the @ngrok/mantle npm package. The full records, with examples and sibling boundaries, are in agent.json beside this file. Neither file lists props: read the bundled type declarations (`<subpath>.d.ts` beside this file) for every prop and its JSDoc. Live docs: https://mantle.ngrok.com/for-ai-agents.
3
+ > Offline index shipped inside the @ngrok/mantle npm package. The full records, with examples and sibling boundaries, are in agent.json beside this file. Neither file lists props: read the type declarations that `package.json#exports` names for each subpath (for example `button.d.ts` beside this file), and follow their imports, for every prop and its JSDoc. Live docs: https://mantle.ngrok.com/for-ai-agents.
4
4
 
5
5
  Docs: https://mantle.ngrok.com/
6
6
  Agent guide: https://mantle.ngrok.com/for-ai-agents
7
+ MCP server: https://mantle.ngrok.com/mcp
7
8
  Index: https://mantle.ngrok.com/llms.txt
8
9
  Full text: https://mantle.ngrok.com/llms-full.txt
9
10
 
@@ -23,22 +24,22 @@ Full text: https://mantle.ngrok.com/llms-full.txt
23
24
  - **Alert** (`@ngrok/mantle/alert`): Displays a callout for user attention. Also called: callout, notice, admonition.
24
25
  - **Alert Center** (`@ngrok/mantle/alert-center`): A single top-level bar that surfaces one-to-many account alerts and their upgrade CTAs, expanding additional alerts inline. Also called: banner, announcement bar, global banner.
25
26
  - **Alert Dialog** (`@ngrok/mantle/alert-dialog`): A modal dialog that interrupts the user with important content and expects a response. Also called: confirm, confirmation, confirm dialog.
26
- - **Anchor** (`@ngrok/mantle/anchor`): Fundamental component for rendering links to external addresses. Also called: link, hyperlink.
27
+ - **Anchor** (`@ngrok/mantle/anchor`): A fundamental component for rendering links to external addresses. Also called: link, hyperlink.
27
28
  - **Area Chart** (`@ngrok/mantle/area-chart`): An area chart for showing how values (and, when stacked, a total and its parts) change over a continuous x axis. Also called: sparkline, area graph.
28
29
  - **Avatar** (`@ngrok/mantle/avatar`): A small image representing a person or an account, with a text or icon fallback. Also called: profile picture, profile photo.
29
- - **Badge** (`@ngrok/mantle/badge`): A non-interactive label used to highlight short, scannable information — a status, a category tag, or a count — in the smallest possible footprint. Also called: tag, chip, pill, lozenge.
30
+ - **Badge** (`@ngrok/mantle/badge`): A non-interactive label used to highlight short, scannable information (a status, a category tag, or a count) in the smallest possible footprint. Also called: tag, chip, pill, lozenge.
30
31
  - **Bar Chart** (`@ngrok/mantle/bar-chart`): A bar chart for comparing values across categories, with grouped and stacked variants. Also called: sparkline, bar graph, column chart, histogram.
31
32
  - **Breadcrumb** (`@ngrok/mantle/breadcrumb`): Hierarchy-path navigation, an ordered list of links from a root to the current page, in a labeled nav landmark. Also called: breadcrumbs, crumbs.
32
33
  - **Browser Only** (`@ngrok/mantle/browser-only`): A wrapper component that renders its children in the browser only, after hydration completes. Also called: client only, no ssr.
33
34
  - **Button** (`@ngrok/mantle/button`): Initiates an action, such as completing a task or submitting information. Also called: cta, call to action.
34
35
  - **Calendar** (`@ngrok/mantle/calendar`, preview): A calendar component that allows users to select a date or a range of dates. Also called: date picker, datepicker, date range picker.
35
36
  - **Card** (`@ngrok/mantle/card`): A container used to display content in a box, resembling a physical card. Also called: panel, tile, paper.
36
- - **Checkbox** (`@ngrok/mantle/checkbox`): A form control that allows the user to toggle between checked and not checked. Supports indeterminate state. Also called: check box, tickbox.
37
+ - **Checkbox** (`@ngrok/mantle/checkbox`): A form control that toggles between checked and not checked, with an indeterminate state. Also called: check box, tickbox.
37
38
  - **Choice** (`@ngrok/mantle/choice`): A reusable indicator-left / content-right layout for a single choice (a control beside a titled, multi-line label). Also called: checkbox with description, radio with description, switch with description.
38
- - **Code** (`@ngrok/mantle/code`): Marks a short fragment of inline computer code — a function name, a variable, a CLI flag, a key. Also called: inline code, monospace.
39
+ - **Code** (`@ngrok/mantle/code`): Marks a short fragment of inline computer code, such as a function name, a variable, a CLI flag, or a key. Also called: inline code, monospace.
39
40
  - **Code Block** (`@ngrok/mantle/code-block`): Code blocks render and apply syntax highlighting to blocks of code using Shiki at build time. Also called: syntax highlighter, code snippet, code sample.
40
- - **Combobox** (`@ngrok/mantle/combobox`): Fill in a React input field with autocomplete & autosuggest functionalities. Choose from a list of suggested values with full keyboard support. Also called: autocomplete, typeahead, searchable select, autosuggest.
41
- - **Command** (`@ngrok/mantle/command`): A command palette that allows users to search and execute commands. Also called: command palette, command menu, cmdk, spotlight.
41
+ - **Combobox** (`@ngrok/mantle/combobox`): A text input with autocomplete: the user types to filter a list of suggested values and picks one, with full keyboard support. Also called: autocomplete, typeahead, searchable select, autosuggest.
42
+ - **Command** (`@ngrok/mantle/command`): A command palette that allows users to search and execute commands, built on top of cmdk. Also called: command palette, command menu, cmdk, spotlight.
42
43
  - **Data Table** (`@ngrok/mantle/data-table`): Tables purposefully designed for dynamic, application data with features like sorting, filtering, and pagination. Also called: data grid, datagrid, grid, sortable table.
43
44
  - **Description List** (`@ngrok/mantle/description-list`): A semantically correct description list built on the HTML dl element. Renders a list of label/value pairs, commonly used in detail views to display metadata about a resource. Also called: key value list, definition list, property list.
44
45
  - **Dialog** (`@ngrok/mantle/dialog`): A window overlaid on either the primary window or another dialog window, rendering the content underneath inert. Also called: modal, modal dialog.
@@ -51,14 +52,14 @@ Full text: https://mantle.ngrok.com/llms-full.txt
51
52
  - **Icon Button** (`@ngrok/mantle/button`): Initiates an action, such as completing a task or submitting information. Renders one icon and nothing else, with a required label prop that carries the accessible name. Also called: icon only button, action icon.
52
53
  - **Icons** (`@ngrok/mantle/icons`): Custom icons used throughout ngrok UI. Also called: icon set, icon library.
53
54
  - **Input** (`@ngrok/mantle/input`): Fundamental component for inputs. Also called: text input, text field, textfield, textbox.
54
- - **Kbd** (`@ngrok/mantle/kbd`): A square, centered keyboard "key" chip for rendering keyboard shortcut hints. Also called: keyboard shortcut, hotkey, keycap, keyboard key.
55
- - **Label** (`@ngrok/mantle/label`): A Label represents a caption for an item in a user interface. Renders an accessible label associated with controls. Also called: form label.
56
- - **Line Chart** (`@ngrok/mantle/line-chart`): A line chart for trends over a continuous x axis, time above all. Min/max decimation keeps 100,000+ point series smooth. Also called: sparkline, line graph, time series chart.
55
+ - **Kbd** (`@ngrok/mantle/kbd`): A square, centered keyboard "key" chip for rendering keyboard shortcut hints, such as K, ⌘, ⌃, or Enter. Also called: keyboard shortcut, hotkey, keycap, keyboard key.
56
+ - **Label** (`@ngrok/mantle/label`): A caption for a form control, such as an input, a checkbox, a radio, a switch, or a select. Also called: form label.
57
+ - **Line Chart** (`@ngrok/mantle/line-chart`): A line chart for trends over a continuous x axis, time above all. Also called: sparkline, line graph, time series chart.
57
58
  - **List** (`@ngrok/mantle/list`): A scrollable, optionally-virtualized list of clickable items. Also called: virtual list, virtualized list.
58
59
  - **Live Region** (`@ngrok/mantle/live-region`): A persistent, visually hidden region that announces its text to screen readers when the text changes. Also called: aria live, announcer.
59
- - **Main** (`@ngrok/mantle/main`): A focusable `<main>` landmark for the page's primary content, designed to be paired with a skip link. Also called: main landmark.
60
- - **Media Object** (`@ngrok/mantle/media-object`): The Media Object is an image/icon (media) to the left, with descriptive content (title and subtitle/description) to the right. Also called: media block.
61
- - **Multi Select** (`@ngrok/mantle/multi-select`): A typeahead multi-select combobox that allows users to select multiple values with filtering. Selected values are displayed as removable tags. Also called: tag input, tags input, multiple select, chip input.
60
+ - **Main** (`@ngrok/mantle/main`): A focusable `<main>` landmark for the page's primary content. Also called: main landmark.
61
+ - **Media Object** (`@ngrok/mantle/media-object`): The Media Object is an image or an icon (media) on the left, with descriptive content (a title and a subtitle or description) on the right. Also called: media block.
62
+ - **Multi Select** (`@ngrok/mantle/multi-select`): A typeahead multi-select combobox: the user picks several values with filtering, and the picks show as removable tags. Also called: tag input, tags input, multiple select, chip input.
62
63
  - **OTP Input** (`@ngrok/mantle/otp-input`): Accessible one-time passcode (OTP) input with paste, autofill, and IME support. Also called: one time password, verification code, pin input, 2fa.
63
64
  - **Pagination** (`@ngrok/mantle/pagination`): Components and hooks for navigating through paged data with cursor-based and offset-based pagination strategies. Also called: pager, paginator.
64
65
  - **Password Input** (`@ngrok/mantle/input`): Fundamental component for password inputs. Also called: password field.
@@ -68,22 +69,22 @@ Full text: https://mantle.ngrok.com/llms-full.txt
68
69
  - **QR Code** (`@ngrok/mantle/qr-code`): Render a scannable QR code, optionally branded with a centered logo.
69
70
  - **Query** (`@ngrok/mantle/query`): A filter field where free text and key:value qualifiers interleave, with in-place highlighting and suggestions. Also called: search bar, search input, filter bar, filter syntax.
70
71
  - **Radio Group** (`@ngrok/mantle/radio-group`): A set of checkable buttons (known as radio buttons) where no more than one of the buttons can be checked at a time. Also called: radio button, radio.
71
- - **Sandbar** (`@ngrok/mantle/sandbar`): A floating save bar for unsaved changes. Batch save form state with save and discard actions, announce pending state to screen readers, and block navigation until changes are resolved. Also called: save bar, contextual save bar, unsaved changes.
72
+ - **Sandbar** (`@ngrok/mantle/sandbar`): A floating save bar for unsaved changes. Also called: save bar, contextual save bar, unsaved changes.
72
73
  - **SandboxedOnClick** (`@ngrok/mantle/sandboxed-on-click`): A container that prevents the click event from bubbling out of it. Also called: stop propagation.
73
74
  - **Scatter Plot** (`@ngrok/mantle/scatter-plot`): A canvas-rendered scatter plot for correlating two continuous measures (three with the rotatable 3D projection). Also called: scatter chart, scatter graph.
74
75
  - **Segmented Control** (`@ngrok/mantle/segmented-control`): A row of segments that switches between a few short options, like a view or an environment. A raised thumb slides to the checked segment. Also called: segmented button, view switcher, toggle group, button group radio.
75
- - **Select** (`@ngrok/mantle/select`): Displays a list of options for the user to pick from—triggered by a button. Also called: dropdown, select box.
76
+ - **Select** (`@ngrok/mantle/select`): Displays a list of options for the user to pick from, triggered by a button. Also called: dropdown, select box.
76
77
  - **Selectable List** (`@ngrok/mantle/selectable-list`): A filterable, multi-select grid of checkbox rows. Also called: checkbox list, checklist.
77
78
  - **Separator** (`@ngrok/mantle/separator`): Visually or semantically separates content. Also called: divider, horizontal rule, hr.
78
79
  - **Sheet** (`@ngrok/mantle/sheet`): A container that overlays the current view from the edge of the screen. Also called: drawer, side panel, offcanvas, slide over.
79
80
  - **Sidebar** (`@ngrok/mantle/sidebar`): A composable, collapsible app-navigation sidebar with a mobile sheet presentation and a trigger that mounts anywhere in your app shell. Also called: side nav, side navigation, navigation drawer.
80
- - **Skeleton** (`@ngrok/mantle/skeleton`): Use to show a placeholder while content is loading. Also called: shimmer, loading placeholder, content loader.
81
+ - **Skeleton** (`@ngrok/mantle/skeleton`): Use Skeleton to show a placeholder while content is loading. Also called: shimmer, loading placeholder, content loader.
81
82
  - **Skip to Main Link** (`@ngrok/mantle/skip-to-main-link`): A visually-hidden-until-focused "skip link" that lets keyboard users jump to the page's main content landmark. Also called: skip link, skip nav.
82
83
  - **Slider** (`@ngrok/mantle/slider`): An input where the user selects a value from within a given range. Also called: range slider, range input.
83
84
  - **Slot** (`@ngrok/mantle/slot`): Merges its props onto its immediate child. Also called: as child, polymorphic.
84
85
  - **Split Button** (`@ngrok/mantle/split-button`): A button group that pairs a one-click default action with a dropdown menu of related alternatives. Also called: dropdown button, split dropdown, combo button.
85
- - **Strata** (`@ngrok/mantle/strata`): A page of titled sections, each one explained beside its content — the shape of a settings page or a configuration editor. Also called: settings page, settings layout.
86
- - **Switch** (`@ngrok/mantle/switch`): A form control that toggles one setting on or off. Unlike Checkbox, it has no indeterminate state. Also called: toggle, toggle switch.
86
+ - **Strata** (`@ngrok/mantle/strata`): A page of titled sections, each one explained beside its content: the shape of a settings page or a configuration editor. Also called: settings page, settings layout.
87
+ - **Switch** (`@ngrok/mantle/switch`): A form control that toggles one setting on or off. Also called: toggle, toggle switch.
87
88
  - **Table** (`@ngrok/mantle/table`): A structured way to display data in rows and columns. Also called: html table, basic table.
88
89
  - **Tabs** (`@ngrok/mantle/tabs`): Layered sections of content, called tab panels, that show one at a time. Also called: tab bar, tab list, tab strip.
89
90
  - **Text Area** (`@ngrok/mantle/text-area`): A multi-line plain-text editing control. Also called: multiline input, multiline text field.
@@ -91,7 +92,7 @@ Full text: https://mantle.ngrok.com/llms-full.txt
91
92
  - **Theme Switcher** (`@ngrok/mantle/theme-switcher`): The canonical light/dark toggle for headers and toolbars, plus the same toggle as one item for account menus. Also called: theme toggle, dark mode toggle, color mode toggle.
92
93
  - **Toast** (`@ngrok/mantle/toast`): A succinct message that appears temporarily. Also called: notification, snackbar, toaster, flash message.
93
94
  - **Tooltip** (`@ngrok/mantle/tooltip`): A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it. Also called: hint.
94
- - **Truncated Text** (`@ngrok/mantle/truncated-text`): Renders one long opaque value on a single line and keeps its tail visible when it overflows. Also called: ellipsis, middle truncation, truncate.
95
+ - **Truncated Text** (`@ngrok/mantle/truncated-text`): Renders one long opaque value, such as a URL, a resource ID, a container image reference, or a token, on a single line and keeps its tail visible when it overflows. Also called: ellipsis, middle truncation, truncate.
95
96
  - **Visually Hidden** (`@ngrok/mantle/visually-hidden`): Render content that screen readers announce and sighted users never see. Also called: sr only, screen reader only.
96
97
  - **Well** (`@ngrok/mantle/well`): A recessed, inset container used to group and de-emphasize content. Also called: inset.
97
98
 
@@ -104,7 +105,7 @@ Full text: https://mantle.ngrok.com/llms-full.txt
104
105
 
105
106
  - **getPrefersReducedMotion** (`@ngrok/mantle/hooks`): Imperatively reads the current `prefers-reduced-motion` preference once at the time of the call.
106
107
  - **useBreakpoint** (`@ngrok/mantle/hooks`): The largest Tailwind breakpoint the viewport width matches, or `"default"` below `2xs`.
107
- - **useCallbackRef** (`@ngrok/mantle/hooks`)
108
+ - **useCallbackRef** (`@ngrok/mantle/hooks`): Returns a memoized callback that always invokes the latest version of `callback`, while preserving a stable function identity across renders.
108
109
  - **useComposedRefs** (`@ngrok/mantle/hooks`): A custom hook that composes up to three refs into a single callback ref.
109
110
  - **useCopyToClipboard** (`@ngrok/mantle/hooks`): React hook that returns a stable async function for copying a string to the system clipboard.
110
111
  - **useDebounce** (`@ngrok/mantle/hooks`): Returns a debounced copy of `value`: it only updates after `value` has stopped changing for `options.waitMs` milliseconds.
@@ -113,7 +114,7 @@ Full text: https://mantle.ngrok.com/llms-full.txt
113
114
  - **useInertSiblings** (`@ngrok/mantle/hooks`): Sets `inert` on every other child of the element's parent while `active` is `true`, so nothing beside the element is clickable, focusable, or read by assistive technology.
114
115
  - **useInView** (`@ngrok/mantle/hooks`): React hook that tracks whether a DOM element is visible within the viewport (or a scrollable container) using the `IntersectionObserver` API.
115
116
  - **useIsBelowBreakpoint** (`@ngrok/mantle/hooks`): `true` while the viewport is narrower than the given breakpoint.
116
- - **useIsHydrated** (`@ngrok/mantle/hooks`): Returns `false` during server rendering and the initial hydration render, then `true` on the client — without hydration mismatches, because React uses the server snapshot for the hydration pass and re-renders once with the client snapshot afterwards.
117
+ - **useIsHydrated** (`@ngrok/mantle/hooks`): Returns `false` during server rendering and the initial hydration render, then `true` on the client, without hydration mismatches, because React uses the server snapshot for the hydration pass and re-renders once with the client snapshot afterwards.
117
118
  - **useIsHydratedAfterPaint** (`@ngrok/mantle/hooks`): Returns `false` on the server, in the hydration render, and in the mount commit, then `true` from the next animation frame.
118
119
  - **useIsomorphicLayoutEffect** (`@ngrok/mantle/hooks`): A drop-in replacement for `useLayoutEffect` that does not warn during server-side rendering.
119
120
  - **useLocalStorage** (`@ngrok/mantle/hooks`): SSR-safe `useSyncExternalStore`-backed localStorage string state.
@@ -0,0 +1 @@
1
+ "use client";import{t as e}from"./cx-CK7o_rVv.js";import{t}from"./data-slot-EM6s2WEU.js";import{c as n}from"react/compiler-runtime";import{jsx as r}from"react/jsx-runtime";const i=i=>{let a=n(12),o,s,c;a[0]===i?(o=a[1],s=a[2],c=a[3]):({className:o,"data-slot":s,...c}=i,a[0]=i,a[1]=o,a[2]=s,a[3]=c);let l;a[4]===s?l=a[5]:(l=t(s,`main`),a[4]=s,a[5]=l);let u;a[6]===o?u=a[7]:(u=e(`focus:outline-hidden`,o),a[6]=o,a[7]=u);let d;return a[8]!==c||a[9]!==l||a[10]!==u?(d=/* @__PURE__ */ r(`main`,{...c,"data-slot":l,id:`main`,tabIndex:-1,className:u}),a[8]=c,a[9]=l,a[10]=u,a[11]=d):d=a[11],d};export{i as t};
package/dist/main.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * @see https://mantle.ngrok.com/components/primitives/main
5
5
  */
6
- import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
6
+ import { t as WithDataSlot } from "./data-slot-BW8KQ9Xo.js";
7
7
  import { ComponentProps } from "react";
8
8
  /**
9
9
  * A focusable `<main>` landmark for the page's primary content. Renders with
package/dist/main.js CHANGED
@@ -1 +1 @@
1
- export{t as Main}from"./main-CC1L9IsH.js";
1
+ export{t as Main}from"./main-CHyWYDak.js";
package/dist/mantle.css CHANGED
@@ -675,7 +675,7 @@ the app stylesheet in `<head>`. An app that `@import`ed `mantle-dark.css` after
675
675
  --color-card-border-muted: var(--color-neutral-200);
676
676
  --color-separator: --alpha(var(--color-gray-600) / 0.2);
677
677
 
678
- /* Chart series tokens — one per mantle color name, each that color's 500
678
+ /* Chart series tokens: one per mantle color name, each that color's 500
679
679
  step, which clears 3:1 on the dark card. Light mode paints one step deeper.
680
680
  Functional names alias the hue their status color uses. Neutral is the
681
681
  color for an "Other" series. chart/tokens.test.ts measures every name. */
@@ -728,7 +728,7 @@ the app stylesheet in `<head>`. An app that `@import`ed `mantle-dark.css` after
728
728
  --background-color-filled-warning-hover: var(--color-warning-700);
729
729
  --background-color-filled-success-hover: var(--color-success-700);
730
730
 
731
- /* Focus tokens — same expressions as the light base (the mid-ramp stops they
731
+ /* Focus tokens: same expressions as the light base (the mid-ramp stops they
732
732
  reference are theme-symmetric), declared here so `.invert-theme` islands
733
733
  re-resolve them against this block's ramps. */
734
734
  --ring-color-focus-neutral: --alpha(var(--color-neutral-500) / 0.3);
@@ -756,7 +756,7 @@ MARK: LIGHT DEFS
756
756
 
757
757
  Light's own definitions: the stops that intentionally diverge from Tailwind's
758
758
  defaults, and every semantic token built on them. Tailwind's unmodified default
759
- ramps are NOT restated here — they live in MARK: LIGHT PALETTE RESTORE below,
759
+ ramps are NOT restated here; they live in MARK: LIGHT PALETTE RESTORE below,
760
760
  scoped to islands, because restating them at `:root` would override a consumer's
761
761
  `@theme` palette customization.
762
762
 
@@ -774,7 +774,7 @@ from `:root` (see MARK: INVERT THEME below).
774
774
  color-scheme: light;
775
775
 
776
776
  /* custom stops that intentionally diverge from the Tailwind defaults */
777
- --color-neutral-950: oklch(18.2% 0 0); /* TW4 default is 14.5% — intentionally lighter */
777
+ --color-neutral-950: oklch(18.2% 0 0); /* TW4 default is 14.5%; intentionally lighter */
778
778
  --color-sky-600: oklch(55% 0.158 241.966);
779
779
 
780
780
  /* gray is identical to neutral in light mode */
@@ -848,7 +848,7 @@ from `:root` (see MARK: INVERT THEME below).
848
848
  --color-selected-menu-item: --alpha(var(--color-accent-500) / 0.1);
849
849
  --color-active-selected-menu-item: --alpha(var(--color-accent-500) / 0.15);
850
850
 
851
- /* Chart series tokens — one per mantle color name, each that color's 600
851
+ /* Chart series tokens: one per mantle color name, each that color's 600
852
852
  step: one step deeper than dark mode's 500, because the 500 steps read
853
853
  washed out on white. Only yellow stays under 3:1 here, at 2.94:1. Functional
854
854
  names alias the hue their status color uses. Neutral is the color for an
@@ -882,7 +882,7 @@ from `:root` (see MARK: INVERT THEME below).
882
882
  /* The fill every series wears on a decorative chart, in place of its own
883
883
  color. It is neutral because a placeholder encodes no series identity, and it is
884
884
  this light because the message laid over it must stay readable: --text-color-muted
885
- over neutral-200 measures 4.56:1 here, and neutral-300 drops it to 4.24:1 — under
885
+ over neutral-200 measures 4.56:1 here, and neutral-300 drops it to 4.24:1, under
886
886
  the 4.5:1 floor for 14px text. Each theme aliases its own neutral-200, and
887
887
  chart/decorative-contrast.test.tsx measures both. */
888
888
  --color-chart-decorative: var(--color-neutral-200);
@@ -926,14 +926,14 @@ from `:root` (see MARK: INVERT THEME below).
926
926
  MARK: LIGHT PALETTE RESTORE (islands only)
927
927
 
928
928
  Tailwind's default light palette, materialized so `.invert-theme` islands on
929
- dark pages restore it — MARK: DARK DEFS never encodes light values. Every value
929
+ dark pages restore it. MARK: DARK DEFS never encodes light values. Every value
930
930
  is verbatim from the pinned tailwindcss/theme.css (the invert-theme test suite
931
931
  pins them against it).
932
932
 
933
933
  Scoped to the island selector on purpose: `@theme` variables are emitted into
934
934
  `@layer theme`, and unlayered author CSS beats every layer, so declaring these
935
935
  at `:root` would silently override a consumer's own
936
- `@theme { --color-<ramp>-<stop>: … }` for all 22 ramps — and ship ~17 KB of
936
+ `@theme { --color-<ramp>-<stop>: … }` for all 22 ramps, and ship ~17 KB of
937
937
  dead weight to every page that renders no island. At page level Tailwind's own
938
938
  defaults already supply these values, so the page needs nothing here.
939
939
 
@@ -1191,14 +1191,14 @@ MARK: COMPONENT GEOMETRY
1191
1191
  */
1192
1192
  /* Geometry a component publishes for surfaces that render OUTSIDE it.
1193
1193
  `--sidebar-row-width` is the width of one row inside an expanded `Sidebar`
1194
- panel — `--sidebar-width` minus the row gutter every sidebar region applies
1194
+ panel: `--sidebar-width` minus the row gutter every sidebar region applies
1195
1195
  (`px-3` plus the expanded `pr-1` on Sidebar.Header/Body/Footer = 1rem). A
1196
1196
  switcher's menu renders in a portal on `document.body`, so it inherits
1197
1197
  nothing the sidebar sets; declaring the row width here is what lets such a
1198
1198
  menu stay as wide as the expanded row while the panel is collapsed to the
1199
1199
  icon rail (`min-w-(--sidebar-row-width)` on the menu content). Resolved at
1200
1200
  `:root`, so a per-sidebar `--sidebar-width` override set on `Sidebar.Nav`
1201
- does not reach it in either direction — a narrower panel leaves the floor
1201
+ does not reach it in either direction: a narrower panel leaves the floor
1202
1202
  wider than its row. Override `--sidebar-width` here to move both (and
1203
1203
  `--sidebar-width-mobile` with it, or the floor outgrows the sheet's row),
1204
1204
  or set `--sidebar-row-width` on the outside surface itself. */
@@ -1213,7 +1213,7 @@ The `invert-theme` class renders a DOM subtree in the opposite theme of the
1213
1213
  page: light ⇄ dark.
1214
1214
 
1215
1215
  Mechanism: every mantle color utility resolves a CSS custom property at the
1216
- element that uses it, and custom properties inherit — so re-declaring the
1216
+ element that uses it, and custom properties inherit, so re-declaring the
1217
1217
  theme variables on one element re-themes its entire subtree. Each theme
1218
1218
  block's selector list therefore also matches `.invert-theme` subtrees on the
1219
1219
  opposite theme's pages (see the LIGHT DEFS and DARK DEFS selectors above); the
@@ -1227,8 +1227,8 @@ Requirements and limitations:
1227
1227
  - Theme variant utilities (`dark:*`, `light:*`) key off the page theme
1228
1228
  classes on `:root`, not the inversion scope, so they do not flip inside an
1229
1229
  island. This includes the six
1230
- mantle internals that still carry variant-gated tweaks — Progress Bar,
1231
- Progress Donut, RadioGroup, Skeleton, Table, and Toast — so composing those
1230
+ mantle internals that still carry variant-gated tweaks (Progress Bar,
1231
+ Progress Donut, RadioGroup, Skeleton, Table, and Toast), so composing those
1232
1232
  inside an island mixes page-variant selection with island-resolved variables
1233
1233
  until they migrate to theme-declared tokens. Redefining the variants cannot
1234
1234
  fix this: they are already scope-relative (`&:where(.dark, .dark *, …)`), and
@@ -1237,14 +1237,14 @@ Requirements and limitations:
1237
1237
  - Semantic tokens are re-declared ON the island (see the palette-alias rule
1238
1238
  below), and a declaration on the element beats a value inherited from an
1239
1239
  ancestor. So a consumer who rebrands at the alias level
1240
- (`:root { --color-accent-600: … }`) does not see it inside islands — rebrand
1240
+ (`:root { --color-accent-600: … }`) does not see it inside islands. Rebrand
1241
1241
  at the ramp level (`--color-sky-600`) instead, which the aliases resolve
1242
1242
  through.
1243
1243
  - Nesting `invert-theme` inside an inverted subtree is idempotent: the inner
1244
1244
  island stays inverted relative to the page (it does not revert).
1245
1245
  - Box shadows flip with the island: shadow utilities inline
1246
1246
  `var(--shadow-color)` / `var(--shadow-*-opacity)` at the consuming element,
1247
- and the theme blocks re-declare those tokens on islands — so content inside
1247
+ and the theme blocks re-declare those tokens on islands, so content inside
1248
1248
  a light island gets light-theme shadows, which keeps the island's interior
1249
1249
  coherent.
1250
1250
 
@@ -1252,7 +1252,7 @@ The rule below re-declares the palette aliases from the `@theme` block so
1252
1252
  they re-resolve against the island's inverted ramps: `@theme` variables are
1253
1253
  emitted at `:root`, where e.g. `--color-accent-500` computes to the page
1254
1254
  theme's sky-500 before the island can flip it. Keep it in sync with the
1255
- `@theme` aliases — the invert-theme test suite enforces the pairing.
1255
+ `@theme` aliases; the invert-theme test suite enforces the pairing.
1256
1256
  */
1257
1257
  .invert-theme {
1258
1258
  --color-accent-50: var(--color-sky-50);
@@ -1529,8 +1529,8 @@ MARK: UTILITIES
1529
1529
  /*
1530
1530
  * Fades the inline-start/end edges of a horizontally-scrolling container to
1531
1531
  * signal more content in that direction. The element is its own scroll
1532
- * timeline, so an edge with nothing beyond it — at the start, at the end, or
1533
- * with no overflow at all (inactive timeline => initial value) — renders
1532
+ * timeline, so an edge with nothing beyond it (at the start, at the end, or
1533
+ * with no overflow at all: inactive timeline => initial value) renders
1534
1534
  * cleanly with no fade. Consumers can pin an edge opaque by overriding
1535
1535
  * `--_fade-left` / `--_fade-right` (the animation drives the upstream
1536
1536
  * `--_scroll-fade-*` vars, so a static override always wins).
@@ -1565,7 +1565,7 @@ MARK: UTILITIES
1565
1565
  }
1566
1566
 
1567
1567
  @utility scroll-fade-y {
1568
- /* Vertical sibling of `scroll-fade-x` — see it for how the masking works. */
1568
+ /* Vertical sibling of `scroll-fade-x`; see it for how the masking works. */
1569
1569
  --_fade-top: var(--_scroll-fade-top);
1570
1570
  --_fade-bottom: var(--_scroll-fade-bottom);
1571
1571
 
@@ -1594,7 +1594,7 @@ MARK: UTILITIES
1594
1594
  * edge should fade (e.g. a sidebar that fades content scrolling under a sticky
1595
1595
  * header but stays flush at the bottom). Each masks and drives only its own
1596
1596
  * edge; the opposite edge stays fully opaque. Same scroll-driven mechanics and
1597
- * fallback behavior as the axis utilities — see `scroll-fade-x` for details.
1597
+ * fallback behavior as the axis utilities; see `scroll-fade-x` for details.
1598
1598
  */
1599
1599
  @utility scroll-fade-t {
1600
1600
  --_fade-top: var(--_scroll-fade-top);
@@ -1711,7 +1711,7 @@ MARK: SHIKI SYNTAX HIGHLIGHT
1711
1711
 
1712
1712
  Also declared on `.invert-theme` islands: these tokens reference theme-dependent
1713
1713
  variables, and their `var()` references substitute at the element that declares
1714
- them — re-declaring them on the island makes them re-resolve against the
1714
+ them, so re-declaring them on the island makes them re-resolve against the
1715
1715
  island's inverted ramps instead of inheriting the page-theme values computed
1716
1716
  at `:root` (same reason as the palette-alias rule in MARK: INVERT THEME).
1717
1717
  */
@@ -1785,7 +1785,7 @@ at `:root` (same reason as the palette-alias rule in MARK: INVERT THEME).
1785
1785
 
1786
1786
  /*
1787
1787
  * The opaque gutter backdrop. Scrolled code slides under the pinned numbers,
1788
- * so this masks it across the whole gutter band — the number column plus its
1788
+ * so this masks it across the whole gutter band: the number column plus its
1789
1789
  * gap, and the fold gutter on fold-enabled blocks (`--_gutter-overhang`).
1790
1790
  */
1791
1791
  .mantle-code-line-number::before {
@@ -1805,7 +1805,7 @@ pre[data-slot="code-block-code"]:has(.mantle-code-fold-toggle) .mantle-code-line
1805
1805
 
1806
1806
  /*
1807
1807
  * Re-add the line-highlight tint over the opaque backdrop, so a highlighted
1808
- * line's gutter matches its content — the same look the translucent line
1808
+ * line's gutter matches its content, with the same look the translucent line
1809
1809
  * background painted before the backdrop covered it.
1810
1810
  */
1811
1811
  .mantle-code-line-highlighted .mantle-code-line-number::before {
@@ -1869,8 +1869,8 @@ pre[data-mantle-line-numbers="true"] .mantle-code-fold-toggle {
1869
1869
  * Reserve the fold-gutter column so non-opener lines stay aligned with opener
1870
1870
  * lines (whose toggle button occupies the gutter). A single per-<pre> `:has()`
1871
1871
  * scopes this to fold-enabled blocks; within them every line's content gets the
1872
- * gutter margin by default, and opener lines — tagged `mantle-code-line-opener`
1873
- * at HTML-generation time (see decorate-highlighted-html.ts) — reset it. This
1872
+ * gutter margin by default, and opener lines (tagged `mantle-code-line-opener`
1873
+ * at HTML-generation time; see decorate-highlighted-html.ts) reset it. This
1874
1874
  * replaces the old *per-line* relational `:not(:has())` probe (whose cost scaled
1875
1875
  * with line count) with a flat class match, while keeping HTML payload tiny:
1876
1876
  * only the sparse opener lines carry an extra class.
@@ -4,7 +4,7 @@
4
4
  * @see https://mantle.ngrok.com/components/structure/media-object
5
5
  */
6
6
  import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
7
- import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
7
+ import { t as WithDataSlot } from "./data-slot-BW8KQ9Xo.js";
8
8
  import { ComponentProps } from "react";
9
9
  type Props = ComponentProps<"div"> & WithAsChild & WithDataSlot;
10
10
  /**
@@ -65,7 +65,7 @@ declare const Media: ({ asChild, className, children, "data-slot": dataSlot, ref
65
65
  declare const Content: ({ asChild, className, children, "data-slot": dataSlot, ref, ...props }: Props) => import("react").JSX.Element;
66
66
  /**
67
67
  * A small, reusable layout primitive for "image/icon on one side,
68
- * descriptive content on the other" — the foundational
68
+ * descriptive content on the other", the foundational
69
69
  * {@link https://www.stubbornella.org/2010/06/25/the-media-object-saves-hundreds-of-lines-of-code/ "media object" pattern}.
70
70
  * Use it to compose avatars-with-text, icons-with-copy, thumbnails-with-titles,
71
71
  * and similar two-up rows without re-implementing flexbox each time.
@@ -77,8 +77,8 @@ declare const Content: ({ asChild, className, children, "data-slot": dataSlot, r
77
77
  * - Feature lists, profile cards, attachment previews.
78
78
  *
79
79
  * **When not to use**
80
- * - For complex multi-region layouts — reach for {@link https://mantle.ngrok.com/components/structure/card Card} or build a bespoke flex/grid.
81
- * - When the media is purely decorative and adds no information — drop it
80
+ * - For complex multi-region layouts, reach for {@link https://mantle.ngrok.com/components/structure/card Card} or build a bespoke flex/grid.
81
+ * - When the media is purely decorative and adds no information, drop it
82
82
  * and use a plain block.
83
83
  *
84
84
  * **Spacing & alignment.** Default gap is `gap-4`; override by passing a
@@ -1 +1 @@
1
- import{t as e}from"./cx-CK7o_rVv.js";import{t}from"./data-slot-EM6s2WEU.js";import{t as n}from"./slot-DdYN1L1C.js";import{c as r}from"react/compiler-runtime";import{jsx as i}from"react/jsx-runtime";const a={Root:a=>{let o=r(18),s,c,l,u,d,f;o[0]===a?(s=o[1],c=o[2],l=o[3],u=o[4],d=o[5],f=o[6]):({asChild:f,className:c,children:s,"data-slot":l,ref:d,...u}=a,o[0]=a,o[1]=s,o[2]=c,o[3]=l,o[4]=u,o[5]=d,o[6]=f);let p=f!==void 0&&f?n:`div`,m;o[7]===l?m=o[8]:(m=t(l,`media-object`),o[7]=l,o[8]=m);let h;o[9]===c?h=o[10]:(h=e(`flex gap-4`,c),o[9]=c,o[10]=h);let g;return o[11]!==p||o[12]!==s||o[13]!==u||o[14]!==d||o[15]!==m||o[16]!==h?(g=/* @__PURE__ */ i(p,{ref:d,"data-slot":m,className:h,...u,children:s}),o[11]=p,o[12]=s,o[13]=u,o[14]=d,o[15]=m,o[16]=h,o[17]=g):g=o[17],g},Media:a=>{let o=r(18),s,c,l,u,d,f;o[0]===a?(s=o[1],c=o[2],l=o[3],u=o[4],d=o[5],f=o[6]):({asChild:f,className:c,children:s,"data-slot":l,ref:d,...u}=a,o[0]=a,o[1]=s,o[2]=c,o[3]=l,o[4]=u,o[5]=d,o[6]=f);let p=f!==void 0&&f?n:`div`,m;o[7]===l?m=o[8]:(m=t(l,`media-object-media`),o[7]=l,o[8]=m);let h;o[9]===c?h=o[10]:(h=e(`shrink-0 leading-none`,c),o[9]=c,o[10]=h);let g;return o[11]!==p||o[12]!==s||o[13]!==u||o[14]!==d||o[15]!==m||o[16]!==h?(g=/* @__PURE__ */ i(p,{ref:d,"data-slot":m,className:h,...u,children:s}),o[11]=p,o[12]=s,o[13]=u,o[14]=d,o[15]=m,o[16]=h,o[17]=g):g=o[17],g},Content:a=>{let o=r(18),s,c,l,u,d,f;o[0]===a?(s=o[1],c=o[2],l=o[3],u=o[4],d=o[5],f=o[6]):({asChild:f,className:c,children:s,"data-slot":l,ref:d,...u}=a,o[0]=a,o[1]=s,o[2]=c,o[3]=l,o[4]=u,o[5]=d,o[6]=f);let p=f!==void 0&&f?n:`div`,m;o[7]===l?m=o[8]:(m=t(l,`media-object-content`),o[7]=l,o[8]=m);let h;o[9]===c?h=o[10]:(h=e(`min-w-0 flex-1`,c),o[9]=c,o[10]=h);let g;return o[11]!==p||o[12]!==s||o[13]!==u||o[14]!==d||o[15]!==m||o[16]!==h?(g=/* @__PURE__ */ i(p,{ref:d,"data-slot":m,className:h,...u,children:s}),o[11]=p,o[12]=s,o[13]=u,o[14]=d,o[15]=m,o[16]=h,o[17]=g):g=o[17],g}};export{a as MediaObject};
1
+ "use client";import{t as e}from"./cx-CK7o_rVv.js";import{t}from"./data-slot-EM6s2WEU.js";import{t as n}from"./slot-B7rwscwd.js";import{c as r}from"react/compiler-runtime";import{jsx as i}from"react/jsx-runtime";const a={Root:a=>{let o=r(18),s,c,l,u,d,f;o[0]===a?(s=o[1],c=o[2],l=o[3],u=o[4],d=o[5],f=o[6]):({asChild:f,className:c,children:s,"data-slot":l,ref:d,...u}=a,o[0]=a,o[1]=s,o[2]=c,o[3]=l,o[4]=u,o[5]=d,o[6]=f);let p=f!==void 0&&f?n:`div`,m;o[7]===l?m=o[8]:(m=t(l,`media-object`),o[7]=l,o[8]=m);let h;o[9]===c?h=o[10]:(h=e(`flex gap-4`,c),o[9]=c,o[10]=h);let g;return o[11]!==p||o[12]!==s||o[13]!==u||o[14]!==d||o[15]!==m||o[16]!==h?(g=/* @__PURE__ */ i(p,{ref:d,"data-slot":m,className:h,...u,children:s}),o[11]=p,o[12]=s,o[13]=u,o[14]=d,o[15]=m,o[16]=h,o[17]=g):g=o[17],g},Media:a=>{let o=r(18),s,c,l,u,d,f;o[0]===a?(s=o[1],c=o[2],l=o[3],u=o[4],d=o[5],f=o[6]):({asChild:f,className:c,children:s,"data-slot":l,ref:d,...u}=a,o[0]=a,o[1]=s,o[2]=c,o[3]=l,o[4]=u,o[5]=d,o[6]=f);let p=f!==void 0&&f?n:`div`,m;o[7]===l?m=o[8]:(m=t(l,`media-object-media`),o[7]=l,o[8]=m);let h;o[9]===c?h=o[10]:(h=e(`shrink-0 leading-none`,c),o[9]=c,o[10]=h);let g;return o[11]!==p||o[12]!==s||o[13]!==u||o[14]!==d||o[15]!==m||o[16]!==h?(g=/* @__PURE__ */ i(p,{ref:d,"data-slot":m,className:h,...u,children:s}),o[11]=p,o[12]=s,o[13]=u,o[14]=d,o[15]=m,o[16]=h,o[17]=g):g=o[17],g},Content:a=>{let o=r(18),s,c,l,u,d,f;o[0]===a?(s=o[1],c=o[2],l=o[3],u=o[4],d=o[5],f=o[6]):({asChild:f,className:c,children:s,"data-slot":l,ref:d,...u}=a,o[0]=a,o[1]=s,o[2]=c,o[3]=l,o[4]=u,o[5]=d,o[6]=f);let p=f!==void 0&&f?n:`div`,m;o[7]===l?m=o[8]:(m=t(l,`media-object-content`),o[7]=l,o[8]=m);let h;o[9]===c?h=o[10]:(h=e(`min-w-0 flex-1`,c),o[9]=c,o[10]=h);let g;return o[11]!==p||o[12]!==s||o[13]!==u||o[14]!==d||o[15]!==m||o[16]!==h?(g=/* @__PURE__ */ i(p,{ref:d,"data-slot":m,className:h,...u,children:s}),o[11]=p,o[12]=s,o[13]=u,o[14]=d,o[15]=m,o[16]=h,o[17]=g):g=o[17],g}};export{a as MediaObject};