@ngrok/mantle 0.87.0 → 0.89.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (234) hide show
  1. package/dist/accordion.d.ts +10 -9
  2. package/dist/accordion.js +1 -1
  3. package/dist/agent.json +2 -1
  4. package/dist/{alert-DCVfviBx.d.ts → alert-BzPDUaU7.d.ts} +16 -15
  5. package/dist/alert-CZYYlx9q.js +1 -0
  6. package/dist/alert-center.d.ts +7 -7
  7. package/dist/alert-center.js +1 -1
  8. package/dist/alert-dialog.d.ts +17 -16
  9. package/dist/alert-dialog.js +1 -1
  10. package/dist/alert-vfeV_hso.js +1 -0
  11. package/dist/alert.d.ts +1 -1
  12. package/dist/alert.js +1 -1
  13. package/dist/anchor-CgcbWEUs.js +1 -0
  14. package/dist/anchor.js +1 -1
  15. package/dist/app-layout.d.ts +1128 -45
  16. package/dist/app-layout.js +1 -1
  17. package/dist/area-chart.d.ts +41 -18
  18. package/dist/area-chart.js +1 -1
  19. package/dist/avatar.js +1 -1
  20. package/dist/badge.d.ts +3 -2
  21. package/dist/badge.js +1 -1
  22. package/dist/bar-chart.d.ts +37 -13
  23. package/dist/bar-chart.js +1 -1
  24. package/dist/breadcrumb.js +1 -1
  25. package/dist/browser-only.js +1 -1
  26. package/dist/button-69InNC_m.js +1 -0
  27. package/dist/button-BMfUxs_j.js +1 -0
  28. package/dist/{button-DO53OA70.d.ts → button-CHoYpOzx.d.ts} +5 -4
  29. package/dist/{button-B52_vczK.js → button-D8rr-1AB.js} +1 -1
  30. package/dist/{button-crUf0hbR.d.ts → button-DL7V4bzW.d.ts} +5 -4
  31. package/dist/button-b2HKEIE2.js +1 -0
  32. package/dist/{button-B5i9n7Qp.d.ts → button-mzUR1U0Y.d.ts} +5 -4
  33. package/dist/button.d.ts +3 -3
  34. package/dist/button.js +1 -1
  35. package/dist/calendar.d.ts +3 -2
  36. package/dist/calendar.js +1 -1
  37. package/dist/card.d.ts +8 -7
  38. package/dist/card.js +1 -1
  39. package/dist/centered-layout.js +1 -1
  40. package/dist/{chart-DgaWVBqi.d.ts → chart-23KQ1ZNO.d.ts} +128 -62
  41. package/dist/chart-BRkJfptA.js +2 -0
  42. package/dist/checkbox-C3N2afhB.js +1 -0
  43. package/dist/checkbox.d.ts +3 -2
  44. package/dist/checkbox.js +1 -1
  45. package/dist/{choice-PESu-9s8.d.ts → choice-BCiyqLgO.d.ts} +12 -11
  46. package/dist/choice-DQmecLfy.js +1 -0
  47. package/dist/choice.d.ts +1 -1
  48. package/dist/choice.js +1 -1
  49. package/dist/code-block-4Esx_gV-.js +12 -0
  50. package/dist/code-block.d.ts +17 -16
  51. package/dist/code-block.js +6 -6
  52. package/dist/code-block_highlight-utils.js +1 -1
  53. package/dist/code.d.ts +2 -1
  54. package/dist/code.js +1 -1
  55. package/dist/combobox.d.ts +15 -14
  56. package/dist/combobox.js +1 -1
  57. package/dist/command.d.ts +13 -13
  58. package/dist/command.js +1 -1
  59. package/dist/cx-CK7o_rVv.js +1 -0
  60. package/dist/cx.js +1 -1
  61. package/dist/data-table.d.ts +32 -31
  62. package/dist/data-table.js +1 -1
  63. package/dist/description-list.d.ts +10 -6
  64. package/dist/description-list.js +1 -1
  65. package/dist/dialog-BDzapPLR.js +1 -0
  66. package/dist/{dialog-DXpqpdJj.d.ts → dialog-DQdeqvq-.d.ts} +28 -15
  67. package/dist/dialog.d.ts +1 -1
  68. package/dist/dialog.js +1 -1
  69. package/dist/dropdown-menu-CWUzGFgf.d.ts +1 -0
  70. package/dist/{dropdown-menu-BloQKE_y.d.ts → dropdown-menu-CpRsyt_F.d.ts} +17 -17
  71. package/dist/dropdown-menu-CutWQ0bl.js +1 -0
  72. package/dist/dropdown-menu.d.ts +2 -2
  73. package/dist/dropdown-menu.js +1 -1
  74. package/dist/empty.d.ts +7 -6
  75. package/dist/empty.js +1 -1
  76. package/dist/field.d.ts +16 -15
  77. package/dist/field.js +1 -1
  78. package/dist/flag.d.ts +3 -2
  79. package/dist/flag.js +1 -1
  80. package/dist/hooks.d.ts +36 -1
  81. package/dist/hooks.js +1 -1
  82. package/dist/hover-card.d.ts +5 -4
  83. package/dist/hover-card.js +1 -1
  84. package/dist/icon-BudQMD2S.js +1 -0
  85. package/dist/icon-kK0c-POG.js +1 -0
  86. package/dist/{icon-w0HUe7tr.d.ts → icon-r2NvfTWW.d.ts} +3 -2
  87. package/dist/{icon-BmJ57Tgh.d.ts → icon-ucVgZeXn.d.ts} +3 -2
  88. package/dist/icon.d.ts +2 -2
  89. package/dist/icon.js +1 -1
  90. package/dist/icons-BMZnm4hM.js +1 -0
  91. package/dist/{icons-Bu-2boul.js → icons-CH3tD_wq.js} +1 -1
  92. package/dist/icons-CSwTVV2m.js +1 -0
  93. package/dist/icons.js +1 -1
  94. package/dist/in-view-Dxv_GrUU.js +1 -0
  95. package/dist/input-D_DjD9lT.js +1 -0
  96. package/dist/{input-DpnC3Xgj.d.ts → input-bbB1tC0h.d.ts} +3 -2
  97. package/dist/input.d.ts +5 -4
  98. package/dist/input.js +1 -1
  99. package/dist/kbd-CLHsJ99p.js +1 -0
  100. package/dist/kbd.d.ts +2 -1
  101. package/dist/kbd.js +1 -1
  102. package/dist/label-5T8i7I4X.js +1 -0
  103. package/dist/{label-Bnfe9YJ6.d.ts → label-C-KbNls8.d.ts} +3 -2
  104. package/dist/label.d.ts +1 -1
  105. package/dist/label.js +1 -1
  106. package/dist/{layer-container-R7aux3n8.js → layer-container-DLf-6eBz.js} +1 -1
  107. package/dist/layer-container.js +1 -1
  108. package/dist/line-chart.d.ts +40 -15
  109. package/dist/line-chart.js +1 -1
  110. package/dist/list-DOVZoz9t.js +1 -0
  111. package/dist/list.d.ts +3 -2
  112. package/dist/list.js +1 -1
  113. package/dist/live-region-DQ1QLv3L.js +1 -0
  114. package/dist/live-region.d.ts +3 -2
  115. package/dist/live-region.js +1 -1
  116. package/dist/llms.txt +2 -1
  117. package/dist/{main-Dv2zuT_b.js → main-CC1L9IsH.js} +1 -1
  118. package/dist/main.js +1 -1
  119. package/dist/mantle.css +12 -20
  120. package/dist/media-object.js +1 -1
  121. package/dist/multi-select.d.ts +23 -22
  122. package/dist/multi-select.js +1 -1
  123. package/dist/otp-input.d.ts +9 -8
  124. package/dist/otp-input.js +1 -1
  125. package/dist/pagination.d.ts +9 -8
  126. package/dist/pagination.js +1 -1
  127. package/dist/{popover-Cco1nw8I.d.ts → popover-Dvls7-j4.d.ts} +5 -4
  128. package/dist/popover-oQDUvcZ2.js +1 -0
  129. package/dist/popover.d.ts +1 -1
  130. package/dist/popover.js +1 -1
  131. package/dist/primitive-B-6XILB2.js +1 -0
  132. package/dist/progress.d.ts +9 -8
  133. package/dist/progress.js +1 -1
  134. package/dist/qr-code.d.ts +9 -8
  135. package/dist/qr-code.js +1 -1
  136. package/dist/radio-group.d.ts +19 -18
  137. package/dist/radio-group.js +1 -1
  138. package/dist/sandbar.d.ts +7 -7
  139. package/dist/sandbar.js +1 -1
  140. package/dist/{sandboxed-on-click-BLvvSqOP.js → sandboxed-on-click-C7pPu-2M.js} +1 -1
  141. package/dist/sandboxed-on-click.js +1 -1
  142. package/dist/scatter-plot.d.ts +39 -14
  143. package/dist/scatter-plot.js +1 -1
  144. package/dist/{select-BITJP7I5.d.ts → select-CxXb3aiC.d.ts} +3 -3
  145. package/dist/select-DcL0-duV.js +1 -0
  146. package/dist/select.d.ts +1 -1
  147. package/dist/select.js +1 -1
  148. package/dist/selectable-list.d.ts +16 -15
  149. package/dist/selectable-list.js +1 -1
  150. package/dist/separator-DvPe27fH.js +1 -0
  151. package/dist/{separator-Bo4nY_3M.d.ts → separator-HzGvuD0B.d.ts} +4 -3
  152. package/dist/separator.d.ts +1 -1
  153. package/dist/separator.js +1 -1
  154. package/dist/sheet-DND_KjmS.js +1 -0
  155. package/dist/sheet.d.ts +13 -12
  156. package/dist/sheet.js +1 -1
  157. package/dist/sidebar.d.ts +149 -95
  158. package/dist/sidebar.js +1 -1
  159. package/dist/skeleton-zfqoDAxT.js +1 -0
  160. package/dist/skeleton.d.ts +3 -2
  161. package/dist/skeleton.js +1 -1
  162. package/dist/skip-to-main-link.js +1 -1
  163. package/dist/slider.d.ts +3 -2
  164. package/dist/slider.js +1 -1
  165. package/dist/{slot-BsvE2ntj.js → slot-DdYN1L1C.js} +1 -1
  166. package/dist/{slot-DdgxmuI5.d.ts → slot-Q996Hqk9.d.ts} +1 -1
  167. package/dist/slot.d.ts +1 -1
  168. package/dist/slot.js +1 -1
  169. package/dist/split-button.d.ts +6 -5
  170. package/dist/split-button.js +1 -1
  171. package/dist/switch.d.ts +3 -2
  172. package/dist/switch.js +1 -1
  173. package/dist/{table-DEI-qvSC.d.ts → table-BhzITa19.d.ts} +10 -9
  174. package/dist/table-DBbKqOVq.js +1 -0
  175. package/dist/table.d.ts +1 -1
  176. package/dist/table.js +1 -1
  177. package/dist/tabs.d.ts +172 -33
  178. package/dist/tabs.js +1 -1
  179. package/dist/text-area.d.ts +3 -2
  180. package/dist/text-area.js +1 -1
  181. package/dist/theme-BlCZHClJ.js +1 -0
  182. package/dist/theme-switcher.d.ts +3 -3
  183. package/dist/theme-switcher.js +1 -1
  184. package/dist/theme.js +1 -1
  185. package/dist/toast.d.ts +10 -9
  186. package/dist/toast.js +1 -1
  187. package/dist/{tooltip-nuUCoqq8.d.ts → tooltip-CngH7Kl6.d.ts} +7 -6
  188. package/dist/tooltip-NhYXqStK.js +1 -0
  189. package/dist/tooltip.d.ts +1 -1
  190. package/dist/tooltip.js +1 -1
  191. package/dist/truncated-text.d.ts +138 -0
  192. package/dist/truncated-text.js +1 -0
  193. package/dist/types.js +1 -1
  194. package/dist/{use-breakpoint-CjyNk0fi.js → use-breakpoint--mo7kr9d.js} +1 -1
  195. package/dist/use-is-hydrated-after-paint-r9Cl2mGp.js +1 -0
  196. package/dist/utils.js +1 -1
  197. package/dist/visually-hidden.d.ts +2 -1
  198. package/dist/visually-hidden.js +1 -1
  199. package/dist/well.d.ts +3 -2
  200. package/dist/well.js +1 -1
  201. package/package.json +17 -16
  202. package/dist/alert-OP_-aGJD.js +0 -1
  203. package/dist/anchor-BnMhJYS4.js +0 -1
  204. package/dist/button-BFpCB99R.js +0 -1
  205. package/dist/button-Dij5vCQG.js +0 -1
  206. package/dist/button-pwkdtR3U.js +0 -1
  207. package/dist/chart-aZLMj4xx.js +0 -2
  208. package/dist/checkbox-DbJSqSNN.js +0 -1
  209. package/dist/choice-SRyLguqU.js +0 -1
  210. package/dist/code-block-BE3Q0iAo.js +0 -12
  211. package/dist/cx-0HCjnNv1.js +0 -1
  212. package/dist/dialog-HIdb5d3I.js +0 -1
  213. package/dist/dropdown-menu-BR_AQNMj.js +0 -1
  214. package/dist/dropdown-menu-Dlpb7600.d.ts +0 -1
  215. package/dist/icon-BT8FnkkJ.js +0 -1
  216. package/dist/icon-U24NfYv7.js +0 -1
  217. package/dist/icons-BQRcOU6J.js +0 -1
  218. package/dist/icons-C3rVfpx9.js +0 -1
  219. package/dist/in-view-T_AAYaaF.js +0 -1
  220. package/dist/input-yq0jLE4e.js +0 -1
  221. package/dist/kbd-CJ8hNZfS.js +0 -1
  222. package/dist/label-BAy0Mg59.js +0 -1
  223. package/dist/list-BleZ-43e.js +0 -1
  224. package/dist/live-region-B2vJRvPH.js +0 -1
  225. package/dist/popover-BJ5XNwzD.js +0 -1
  226. package/dist/primitive-w3wFk2La.js +0 -1
  227. package/dist/select-CUWLEeuf.js +0 -1
  228. package/dist/separator-D98be0gY.js +0 -1
  229. package/dist/sheet-B5x8EO9Y.js +0 -1
  230. package/dist/skeleton-bVDP8BzY.js +0 -1
  231. package/dist/table-D2jh52KA.js +0 -1
  232. package/dist/theme-C1kFFdIk.js +0 -1
  233. package/dist/tooltip-H03l7E4Y.js +0 -1
  234. /package/dist/{types-D85fCNV3.js → css-properties-D85fCNV3.js} +0 -0
package/dist/sidebar.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { n as WithAsChild } from "./as-child-D23mGo4f.js";
1
+ import { n as WithAsChild, t as SelfClosingWithAsChild } from "./as-child-D23mGo4f.js";
2
2
  import { t as WithDataSlot } from "./data-slot-CChfb_cv.js";
3
- import { n as IconButtonProps } from "./button-crUf0hbR.js";
4
- import { n as Separator } from "./separator-Bo4nY_3M.js";
5
- import { t as Tooltip } from "./tooltip-nuUCoqq8.js";
3
+ import { n as IconButtonProps } from "./button-DL7V4bzW.js";
4
+ import { n as Separator } from "./separator-HzGvuD0B.js";
5
+ import { t as Tooltip } from "./tooltip-CngH7Kl6.js";
6
6
  import { ComponentProps, ReactElement, ReactNode } from "react";
7
7
  //#region src/components/sidebar/sidebar.d.ts
8
8
  /**
@@ -46,7 +46,8 @@ type SidebarState = {
46
46
  open: boolean;
47
47
  /**
48
48
  * Set the desktop expanded state. Calls `onOpenChange` and, when
49
- * uncontrolled, updates the internal state.
49
+ * uncontrolled, updates the internal state. Keeps one identity across
50
+ * renders, so it is safe in an effect dependency list.
50
51
  */
51
52
  setOpen: (open: boolean) => void;
52
53
  /**
@@ -56,7 +57,8 @@ type SidebarState = {
56
57
  /**
57
58
  * Set the mobile sheet open state. Calls `onOpenMobileChange` and, when
58
59
  * uncontrolled, updates the internal state. Use it to close the sheet on
59
- * navigation.
60
+ * navigation. Keeps one identity across renders, so it is safe in an effect
61
+ * dependency list.
60
62
  */
61
63
  setOpenMobile: (open: boolean) => void;
62
64
  /**
@@ -244,7 +246,7 @@ type SidebarNavProps = ComponentProps<"div"> & WithDataSlot;
244
246
  * both presentations (the desktop animator / the mobile `Sheet.Content`), so
245
247
  * the width variables work anywhere:
246
248
  * `className="[--sidebar-width:20rem] [--sidebar-width-mobile:20rem]"`.
247
- * `aria-label` (default `"Main"`) is forwarded to the inner `<nav>` landmark.
249
+ * The panel forwards `aria-label` (default `"Main"`) to the inner `<nav>` landmark.
248
250
  *
249
251
  * **CSS variables (public API):**
250
252
  *
@@ -256,16 +258,16 @@ type SidebarNavProps = ComponentProps<"div"> & WithDataSlot;
256
258
  * | `--sidebar-row-width` | `12rem` | Derived, not set: one row's width in the expanded panel (192px), for sizing surfaces that render *outside* it. See below and `Sidebar.SwitcherTrigger`. |
257
259
  *
258
260
  * `--sidebar-row-width` is `calc(var(--sidebar-width,13rem) - 1rem)`, declared
259
- * at `:root` by `mantle.css` — the panel width minus the row gutter this
261
+ * at `:root` by `mantle.css`: the panel width minus the row gutter this
260
262
  * component's regions apply.
261
263
  *
262
- * Each of the three widths is read with its default as the fallback, and
263
- * custom properties inherit, so set one on `Sidebar.Nav` to resize a single
264
+ * The panel reads each of the three widths with its default as the fallback,
265
+ * and custom properties inherit, so set one on `Sidebar.Nav` to resize a single
264
266
  * sidebar or on any ancestor (`:root` in your global stylesheet) to resize
265
267
  * every sidebar in the app. `--sidebar-row-width` resolves at `:root`, so a
266
268
  * `--sidebar-width` override scoped to one `Sidebar.Nav` does not reach it in
267
- * either direction — a narrower panel leaves the floor *wider* than the row it
268
- * opens from. Override `--sidebar-width` at `:root` to move both together, or
269
+ * either direction (a narrower panel leaves the floor *wider* than the row it
270
+ * opens from). Override `--sidebar-width` at `:root` to move both together, or
269
271
  * set `--sidebar-row-width` on the outside surface itself.
270
272
  *
271
273
  * **Data attributes:**
@@ -273,9 +275,9 @@ type SidebarNavProps = ComponentProps<"div"> & WithDataSlot;
273
275
  * | Data Attribute | Value | Description |
274
276
  * | --- | --- | --- |
275
277
  * | `data-state` | `"expanded"` \| `"collapsed"` | On the desktop panel surface. Mirrors the root's expanded state and drives the width collapse to the icon rail; descendant parts style off it with `group-data-[state=collapsed]/sidebar-nav:`. |
276
- * | `data-hydrated` | present after hydration | Presence-only, desktop panel surface. The CSS-side twin of the `isHydrated` gate: descendant collapse transitions are enabled only under `group-data-hydrated/sidebar-nav:`, so an SSR state correction snaps instead of animating on page load. |
278
+ * | `data-hydrated` | present one frame after hydration | Presence-only, desktop panel surface. The panel's pre-hydration visibility gate, its width transition, and descendant collapse transitions all key off its absence in CSS (`not-data-hydrated:`, `group-not-data-hydrated/sidebar-nav:`). The stamp waits one frame, so an SSR state correction paints first and snaps instead of animating on page load. |
277
279
  * | `data-mobile` | present in the mobile sheet | Presence-only. Marks the `Sheet.Content` presentation used below the root's `mobileBreakpoint`. |
278
- * | `data-state` | `"open"` \| `"closed"` | In the mobile sheet only, where the panel *is* the `Sheet`'s Radix dialog content element and Radix owns the attribute — the sheet's open/close animation state, not the desktop expanded state. Consumers style against it too. |
280
+ * | `data-state` | `"open"` \| `"closed"` | In the mobile sheet only, where the panel *is* the `Sheet`'s Radix dialog content element and Radix owns the attribute: the sheet's open/close animation state, not the desktop expanded state. Consumers style against it too. |
279
281
  *
280
282
  * @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarnav
281
283
  *
@@ -400,10 +402,13 @@ type SidebarTriggerProps = Omit<IconButtonProps, "appearance" | "asChild" | "chi
400
402
  * | Data Attribute | Value | Description |
401
403
  * | --- | --- | --- |
402
404
  * | `data-state` | `"expanded"` \| `"collapsed"` | Mirrors what the trigger toggles: the mobile sheet below the root's `mobileBreakpoint`, the desktop panel otherwise. Pairs with `aria-expanded`. |
403
- * | `data-slot` | `"sidebar-trigger-tooltip"` | On the tooltip surface, not the button — the styling hook for the label-and-chord popup this part renders. |
405
+ * | `data-slot` | `"sidebar-trigger icon-button"` | On the button: the part's slot, joined ahead of `IconButton`'s own. |
406
+ * | `data-slot` | `"sidebar-trigger-tooltip tooltip-content"` | On the tooltip surface, not the button: the styling hook for the label-and-chord popup this part renders, joined ahead of `Tooltip.Content`'s own slot. |
407
+ * | `data-state` | `"delayed-open"` \| `"instant-open"` \| `"closed"` | Read, not stamped: on the tooltip surface, from `Tooltip.Content`. |
408
+ * | `data-side` | `"top"` \| `"right"` \| `"bottom"` \| `"left"` | Read, not stamped: on the tooltip surface, from `Tooltip.Content`. |
404
409
  * | `data-slot` | `"sidebar-tooltip-row"` | Inside that surface, on the flex row holding the label and the optional chord chips. Nested inside `Tooltip.Content`'s own `tooltip-label` div. Always present. |
405
410
  * | `data-slot` | `"sidebar-tooltip-label"` | On the `<span>` wrapping `label` inside that row. Always present, and `display: contents`, so the label stays a flex item of the row. |
406
- * | `data-slot` | `"sidebar-tooltip-shortcut"` | On the chord chips. Present only while `shortcut` holds something. |
411
+ * | `data-slot` | `"sidebar-tooltip-shortcut"` | On the chord chips. Present only while `shortcut` holds something. Carries `translate="no"`: a chord is a key name, not prose. |
407
412
  * | `data-appearance` | `"filled"` \| `"ghost"` \| `"outlined"` | Read, not stamped: the underlying `IconButton` reflects its `appearance`, which this part defaults to `"ghost"`. |
408
413
  * | `data-intent` | `"neutral"` | Read, not stamped: the underlying `IconButton` reflects its `intent`, and it draws the neutral tone only. |
409
414
  * | `data-size` | `"xs"` \| `"sm"` \| `"md"` \| `"lg"` \| `"xl"` | Read, not stamped: the underlying `IconButton` reflects its `size` and its own `"md"` default. |
@@ -565,8 +570,8 @@ type SidebarBodyProps = ComponentProps<"div"> & WithAsChild & WithDataSlot;
565
570
  * The scrollable middle region of a `Sidebar.Nav`, growing to fill the space
566
571
  * between `Sidebar.Header` and `Sidebar.Footer`. Holds the navigation
567
572
  * `Sidebar.Group` children. Overflowing edges fade out via the
568
- * `scroll-fade-y` mask; inside the collapsed icon rail the scrollbar and its
569
- * reserved gutter are hidden and the fade is the only overflow signal.
573
+ * `scroll-fade-y` mask; inside the collapsed icon rail it hides the scrollbar
574
+ * and its reserved gutter, so the fade is the only overflow signal.
570
575
  *
571
576
  * @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarbody
572
577
  *
@@ -745,9 +750,9 @@ type SidebarGroupLabelProps = ComponentProps<"div"> & WithAsChild & WithDataSlot
745
750
  /**
746
751
  * The muted label of a `Sidebar.Group`, rendered above its `Sidebar.List`.
747
752
  * Renders a `<div>` (not a heading, so the sidebar never dictates the page's
748
- * heading outline); inside a `Sidebar.Group` it is automatically linked to
749
- * the sibling list via `aria-labelledby`. Pass `asChild` to render a heading
750
- * at a level you control.
753
+ * heading outline); inside a `Sidebar.Group` the group links it to the
754
+ * sibling list via `aria-labelledby`. Pass `asChild` to render a heading at a
755
+ * level you control.
751
756
  *
752
757
  * @see https://mantle.ngrok.com/components/navigation/sidebar#sidebargrouplabel
753
758
  *
@@ -926,8 +931,8 @@ type SidebarItemButtonProps = ComponentProps<"button"> & WithAsChild & WithDataS
926
931
  * `data-current` styling state. Consumers control it from their router,
927
932
  * e.g. `current={pathname === "/endpoints"}`.
928
933
  *
929
- * A composed child that sets `aria-current="page"` itself — react-router's
930
- * `NavLink` does — already gets the current-row treatment, so it needs no
934
+ * A composed child that sets `aria-current="page"` itself (react-router's
935
+ * `NavLink` does) already gets the current-row treatment, so it needs no
931
936
  * `current`. This prop is for the rows whose parent knows.
932
937
  */
933
938
  current?: boolean;
@@ -939,7 +944,7 @@ type SidebarItemButtonProps = ComponentProps<"button"> & WithAsChild & WithDataS
939
944
  * `data-current` visual state.
940
945
  *
941
946
  * The current-row treatment follows either attribute, so a composed child that
942
- * marks itself as the current page gets it without `current` — a react-router
947
+ * marks itself as the current page gets it without `current`: a react-router
943
948
  * `NavLink` needs nothing but its `to`, since it already resolved the match the
944
949
  * parent would otherwise re-derive:
945
950
  *
@@ -952,22 +957,22 @@ type SidebarItemButtonProps = ComponentProps<"button"> & WithAsChild & WithDataS
952
957
  * </Sidebar.ItemButton>
953
958
  * ```
954
959
  *
955
- * The row sizes its **leading** icon to 20px and leaves trailing visuals — a
956
- * caret, a count, a status dot — to size themselves, so a row composed with
960
+ * The row sizes its **leading** icon to 20px. Trailing visuals (a caret, a
961
+ * count, a status dot) size themselves, so a row composed with
957
962
  * `DropdownMenu.Trigger asChild` can end in `<CaretDownIcon className="text-muted
958
- * ml-auto size-4 shrink-0" />` and stays highlighted while its menu is open
959
- * (`data-state="open"`, supplied by the trigger). Give that menu the same width
960
- * floor the switcher rows use — `className="min-w-(--sidebar-row-width)"` — so
961
- * it keeps the expanded row's width instead of shrinking to this row's 28px
963
+ * ml-auto size-4 shrink-0" />`. That row stays highlighted while its menu is
964
+ * open (`data-state="open"`, supplied by the trigger). Give that menu the same
965
+ * width floor the switcher rows use, `className="min-w-(--sidebar-row-width)"`,
966
+ * so it keeps the expanded row's width instead of shrinking to this row's 28px
962
967
  * rail chip (see `Sidebar.SwitcherTrigger` for the whole contract).
963
968
  *
964
969
  * **Data attributes:**
965
970
  *
966
971
  * | Data Attribute | Value | Description |
967
972
  * | --- | --- | --- |
968
- * | `data-current` | present when `current` | Presence-only — never `"false"`, since the `data-current:` variant matches the attribute's existence. Styles the current row. |
973
+ * | `data-current` | present when `current` | Presence-only, never `"false"`, since the `data-current:` variant matches the attribute's existence. Styles the current row. |
969
974
  * | `aria-current` | `"page"` when `current` | Set alongside `data-current`. The current-row styling follows *either*, so a composed child that marks itself (react-router's `NavLink`) gets the treatment without the prop. |
970
- * | `data-state` | `"open"` | **Read, not stamped** — supplied by a composing `DropdownMenu.Trigger` / `Dialog.Trigger`. The row styles against it so it stays highlighted while its menu is open. |
975
+ * | `data-state` | `"open"` \| `"closed"` | **Read, not stamped**: supplied by a composing `DropdownMenu.Trigger` / `Dialog.Trigger`. The row styles against it so it stays highlighted while its menu is open. Inside `Sidebar.Tooltip` the tooltip's own `data-state` replaces this one, so the open highlight also keys on `aria-expanded`. |
971
976
  *
972
977
  * @see https://mantle.ngrok.com/components/navigation/sidebar#sidebaritembutton
973
978
  *
@@ -1090,9 +1095,9 @@ type SidebarSearchTriggerProps = ComponentProps<"button"> & WithDataSlot & ({
1090
1095
  * | Data Attribute | Value | Description |
1091
1096
  * | --- | --- | --- |
1092
1097
  * | `data-slot` | `"sidebar-search-trigger"` | On the row element. |
1093
- * | `data-slot` | `"sidebar-search-trigger-label"` | On the `<span>` wrapping `children` on the default `button` path. Absent under `asChild`, which renders no sibling. |
1094
- * | `data-slot` | `"sidebar-search-trigger-shortcut"` | On the chord chips. Always present on the default `button` path, and `display: none` while it is empty. Absent under `asChild`, where the props union forbids `shortcut`. |
1095
- * | `data-state` | `"open"` \| `"closed"` | **Read, not stamped** — supplied by the composing `Command.SearchTrigger` / `Dialog.Trigger`. The row stays highlighted while its palette is open. |
1098
+ * | `data-slot` | `"sidebar-search-trigger-label"` | On the `<span>` wrapping `children` on the default `button` path. Absent under `asChild`, which renders no sibling. Always `display: contents`, so your icon and label stay flex items of the row. |
1099
+ * | `data-slot` | `"sidebar-search-trigger-shortcut"` | On the chord chips. Always present on the default `button` path, and `display: none` while it is empty. Absent under `asChild`, where the props union forbids `shortcut`. Carries `translate="no"`: a chord is a key name, not prose. |
1100
+ * | `data-state` | `"open"` \| `"closed"` | **Read, not stamped**: supplied by the composing `Command.SearchTrigger` / `Dialog.Trigger`. The row stays highlighted while its palette is open. |
1096
1101
  *
1097
1102
  * @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarsearchtrigger
1098
1103
  *
@@ -1154,35 +1159,33 @@ type SidebarSwitcherTriggerProps = ComponentProps<"button"> & WithAsChild & With
1154
1159
  /**
1155
1160
  * The styled row for the sidebar's switchers: the app/product switcher in
1156
1161
  * `Sidebar.Header` and the account/user row in `Sidebar.Footer`. A styled
1157
- * button only — it is not wired to any state; compose it with
1162
+ * button only: it is not wired to any state. Compose it with
1158
1163
  * `DropdownMenu.Trigger asChild` or `Dialog.Trigger asChild`, which supply
1159
1164
  * the open state (`data-state="open"` styling comes for free from those
1160
1165
  * primitives).
1161
1166
  *
1162
- * Inside the collapsed icon rail, the row collapses to
1163
- * its **first child element** — the leading visual (product icon, account
1164
- * avatar) — and the remaining children become visually hidden while staying
1165
- * in the accessibility tree, so the button's accessible name is unchanged.
1166
- * Wrap loose text in an element (e.g. a `<span>`) so it participates.
1167
+ * Inside the collapsed icon rail, the row collapses to its **first child
1168
+ * element**, the leading visual (product icon, account avatar), and the
1169
+ * remaining children become visually hidden while staying in the
1170
+ * accessibility tree, so the button's accessible name is unchanged. Wrap
1171
+ * loose text in an element (e.g. a `<span>`) so it participates.
1167
1172
  *
1168
- * A menu opened from the row should be as wide as the row: `width="trigger"`
1173
+ * A menu opened from the row should be as wide as the row. `width="trigger"`
1169
1174
  * does that while the panel is expanded, but the row shrinks to a 36px chip in
1170
1175
  * the icon rail and would drag the menu down to it. Floor the menu at the
1171
- * expanded row width with `className="min-w-(--sidebar-row-width)"` — the
1176
+ * expanded row width with `className="min-w-(--sidebar-row-width)"`, the
1172
1177
  * token `mantle.css` declares at `:root` for exactly this, since the menu
1173
- * renders in a portal and inherits nothing from the panel. The floor is a
1174
- * no-op while the panel is expanded (the row already measures that wide), and
1175
- * inert in the mobile sheet as long as its row is the wider of the two
1176
- * (`--sidebar-width-mobile` minus `1.5rem` and the sheet's 1px border, vs
1177
- * `--sidebar-width` minus `1rem`; 263px vs 192px at the defaults) — so widen
1178
- * `--sidebar-width-mobile` whenever you widen `--sidebar-width`, or the floor
1179
- * overhangs the sheet.
1178
+ * renders in a portal and inherits nothing from the panel.
1179
+ *
1180
+ * - The floor is a no-op while the panel is expanded: the row already measures that wide.
1181
+ * - In the mobile sheet the floor is inert as long as the sheet's row is the wider of the two: `--sidebar-width-mobile` minus `1.5rem` and the sheet's 1px border, vs `--sidebar-width` minus `1rem` (263px vs 192px at the defaults).
1182
+ * - Widen `--sidebar-width-mobile` whenever you widen `--sidebar-width`, or the floor overhangs the sheet.
1180
1183
  *
1181
1184
  * **Data attributes:**
1182
1185
  *
1183
1186
  * | Data Attribute | Value | Description |
1184
1187
  * | --- | --- | --- |
1185
- * | `data-state` | `"open"` | **Read, not stamped** — supplied by the composing `DropdownMenu.Trigger` / `Dialog.Trigger`. The row styles against it so it stays highlighted while its menu is open. |
1188
+ * | `data-state` | `"open"` \| `"closed"` | **Read, not stamped**: supplied by the composing `DropdownMenu.Trigger` / `Dialog.Trigger`. The row styles against it so it stays highlighted while its menu is open. Inside `Sidebar.Tooltip` the tooltip's own `data-state` replaces this one, so the open highlight also keys on `aria-expanded`. |
1186
1189
  *
1187
1190
  * @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarswitchertrigger
1188
1191
  *
@@ -1238,10 +1241,10 @@ type SidebarSwitcherTriggerProps = ComponentProps<"button"> & WithAsChild & With
1238
1241
  */
1239
1242
  declare const SwitcherTrigger: ({ asChild, children, className, "data-slot": dataSlot, type, ...props }: SidebarSwitcherTriggerProps) => import("react").JSX.Element;
1240
1243
  /**
1241
- * The props for `Sidebar.Tooltip`. `Tooltip.Content`'s props — so `className`,
1242
- * `style`, `ref`, `asChild`, and any `data-*` reach the tooltip surface — except
1243
- * the parts this row owns: `children` is the row being labeled (not the tooltip
1244
- * body, which is `label`), and `side` becomes optional with a sidebar default.
1244
+ * The props for `Sidebar.Tooltip`. `Tooltip.Content`'s props (so `className`,
1245
+ * `style`, `ref`, and any `data-*` reach the tooltip surface), except the parts
1246
+ * this row owns: `children` is the row being labeled (not the tooltip body,
1247
+ * which is `label`), and `side` becomes optional with a sidebar default.
1245
1248
  */
1246
1249
  type SidebarTooltipProps = Omit<ComponentProps<typeof Tooltip.Content>, "children" | "side"> & WithDataSlot & {
1247
1250
  /**
@@ -1255,7 +1258,9 @@ type SidebarTooltipProps = Omit<ComponentProps<typeof Tooltip.Content>, "childre
1255
1258
  children: ReactElement;
1256
1259
  /**
1257
1260
  * What the tooltip says. Normally the row's own label text: the rail clips the
1258
- * visible one, so this is what a sighted pointer user reads.
1261
+ * visible one, so this is what a sighted pointer user reads. Required: the
1262
+ * rail is the only state that shows a label, so there is no text to fall
1263
+ * back to.
1259
1264
  */
1260
1265
  label: ReactNode;
1261
1266
  /**
@@ -1309,19 +1314,22 @@ type SidebarTooltipProps = Omit<ComponentProps<typeof Tooltip.Content>, "childre
1309
1314
  * needs a real element to clone.
1310
1315
  *
1311
1316
  * `children` is the row; `label` is what the tooltip says. Every other prop is
1312
- * `Tooltip.Content`'s and lands on the tooltip surface — `className`, `style`,
1313
- * `ref`, `data-*`, positioning props such as `align` and `sideOffset`, and
1314
- * `asChild`, which Radix's `Tooltip.Content` implements itself. `side` defaults
1315
- * to `"right"` so the tooltip opens away from the rail.
1317
+ * `Tooltip.Content`'s and lands on the tooltip surface: `className`, `style`,
1318
+ * `ref`, `data-*`, and positioning props such as `align` and `sideOffset`.
1319
+ * `side` defaults to `"right"`, so the tooltip opens away from the rail.
1316
1320
  *
1317
1321
  * **Data attributes:**
1318
1322
  *
1319
1323
  * | Data Attribute | Value | Description |
1320
1324
  * | --- | --- | --- |
1321
- * | `data-slot` | `"sidebar-tooltip"` | On the tooltip surface. |
1325
+ * | `data-slot` | `"sidebar-tooltip tooltip-content"` | On the tooltip surface, with any forwarded chain ahead of it and `Tooltip.Content`'s own slot after it. |
1326
+ * | `data-state` | `"delayed-open"` \| `"instant-open"` \| `"closed"` | Read, not stamped: on the tooltip surface, from `Tooltip.Content`. |
1327
+ * | `data-side` | `"top"` \| `"right"` \| `"bottom"` \| `"left"` | Read, not stamped: on the tooltip surface, from `Tooltip.Content`. The resolved side, `"right"` by default. |
1328
+ * | `data-align` | `"start"` \| `"center"` \| `"end"` | Read, not stamped: on the tooltip surface, from `Tooltip.Content`. |
1322
1329
  * | `data-slot` | `"sidebar-tooltip-row"` | Inside that surface, on the flex row holding the label and the optional chord chips. Nested inside `Tooltip.Content`'s own `tooltip-label` div. Always present, so a chord that arrives later appends instead of replacing the label. |
1323
1330
  * | `data-slot` | `"sidebar-tooltip-label"` | On the `<span>` wrapping `label` inside that row. Always present, and `display: contents`, so the label stays a flex item of the row. |
1324
- * | `data-slot` | `"sidebar-tooltip-shortcut"` | On the chord chips. Present only while `shortcut` holds something. |
1331
+ * | `data-slot` | `"sidebar-tooltip-shortcut"` | On the chord chips. Present only while `shortcut` holds something. Carries `translate="no"`: a chord is a key name, not prose. |
1332
+ * | `data-state` | `"delayed-open"` \| `"instant-open"` \| `"closed"` | On the wrapped row, from `Tooltip.Trigger`. `"closed"` outside the collapsed rail, where this part vetoes the open state. |
1325
1333
  *
1326
1334
  * @see https://mantle.ngrok.com/components/navigation/sidebar#sidebartooltip
1327
1335
  *
@@ -1330,6 +1338,18 @@ type SidebarTooltipProps = Omit<ComponentProps<typeof Tooltip.Content>, "childre
1330
1338
  * <TooltipProvider>
1331
1339
  * <Sidebar.Root>
1332
1340
  * <Sidebar.Nav aria-label="Main">
1341
+ * <Sidebar.Header>
1342
+ * <DropdownMenu.Root>
1343
+ * <DropdownMenu.Trigger asChild>
1344
+ * <Sidebar.SwitcherTrigger>
1345
+ * <GlobeIcon />
1346
+ * <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
1347
+ * <CaretDownIcon className="text-muted size-4 shrink-0" />
1348
+ * </Sidebar.SwitcherTrigger>
1349
+ * </DropdownMenu.Trigger>
1350
+ * <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
1351
+ * </DropdownMenu.Root>
1352
+ * </Sidebar.Header>
1333
1353
  * <Sidebar.Body>
1334
1354
  * <Sidebar.Group>
1335
1355
  * <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
@@ -1348,16 +1368,19 @@ type SidebarTooltipProps = Omit<ComponentProps<typeof Tooltip.Content>, "childre
1348
1368
  * </Sidebar.Group>
1349
1369
  * </Sidebar.Body>
1350
1370
  * <Sidebar.Footer>
1371
+ * <Sidebar.Separator />
1351
1372
  * <DropdownMenu.Root>
1352
- * <Sidebar.Tooltip label="Help">
1373
+ * <Sidebar.Tooltip label="Acme Corp">
1353
1374
  * <DropdownMenu.Trigger asChild>
1354
- * <Sidebar.ItemButton>
1355
- * <QuestionIcon />
1356
- * Help
1357
- * </Sidebar.ItemButton>
1375
+ * <Sidebar.SwitcherTrigger>
1376
+ * <Avatar.Root appearance="square" colorSeed="acc_123">
1377
+ * <Avatar.Fallback name="Acme Corp" />
1378
+ * </Avatar.Root>
1379
+ * <span className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Acme Corp</span>
1380
+ * </Sidebar.SwitcherTrigger>
1358
1381
  * </DropdownMenu.Trigger>
1359
1382
  * </Sidebar.Tooltip>
1360
- * <DropdownMenu.Content>…</DropdownMenu.Content>
1383
+ * <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
1361
1384
  * </DropdownMenu.Root>
1362
1385
  * </Sidebar.Footer>
1363
1386
  * </Sidebar.Nav>
@@ -1367,14 +1390,22 @@ type SidebarTooltipProps = Omit<ComponentProps<typeof Tooltip.Content>, "childre
1367
1390
  * ```
1368
1391
  */
1369
1392
  declare const SidebarTooltip: ({ children, "data-slot": dataSlot, label, shortcut, side, ...props }: SidebarTooltipProps) => import("react").JSX.Element;
1370
- type SidebarSeparatorProps = ComponentProps<typeof Separator> & WithDataSlot;
1393
+ type SidebarSeparatorProps = Omit<ComponentProps<typeof Separator>, "asChild" | "children"> & SelfClosingWithAsChild & WithDataSlot;
1371
1394
  /**
1372
1395
  * An inset hairline between sidebar regions. Composes the mantle `Separator`,
1373
1396
  * staying aligned with the `px-3` content padding of `Sidebar.Body` and
1374
1397
  * `Sidebar.Footer` (it deliberately does not run edge to edge) with `my-3`
1375
- * breathing room above and below. When collapsed to the icon rail, it widens
1376
- * to the same 36px chip width as `Sidebar.SwitcherTrigger`, balancing the
1377
- * adjacent app-content gutter that sits outside the rail.
1398
+ * breathing room above and below. In the icon rail it narrows to the 36px chip
1399
+ * width of `Sidebar.SwitcherTrigger`, 8px wider than the rail's 28px row chips,
1400
+ * so it stays optically centered between the viewport edge and the content
1401
+ * card.
1402
+ *
1403
+ * **Data attributes:**
1404
+ *
1405
+ * | Data Attribute | Value | Description |
1406
+ * | --- | --- | --- |
1407
+ * | `data-orientation` | `"horizontal"` \| `"vertical"` | Read, not stamped: `Separator` reflects its `orientation` prop, `"horizontal"` by default, after a `HorizontalSeparatorGroup` ancestor wins. |
1408
+ * | `data-separator` | present | Read, not stamped: presence-only, from `Separator`. Lets a `HorizontalSeparatorGroup` exempt it from `shrink-0`. |
1378
1409
  *
1379
1410
  * @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarseparator
1380
1411
  *
@@ -1442,6 +1473,11 @@ declare const SidebarSeparator: ({ className, "data-slot": dataSlot, ...props }:
1442
1473
  * The component is routing-agnostic: compose router links via `asChild` on
1443
1474
  * `Sidebar.ItemButton` and drive `current` from your router's location.
1444
1475
  *
1476
+ * Reach for it for the app's primary navigation on the start edge of an
1477
+ * `AppLayout`. A surface that opens beside the page for an assistant or a
1478
+ * details pane is `AppLayout.SidePanel`; a modal drawer is `Sheet`; switching
1479
+ * sections inside one page is `Tabs`.
1480
+ *
1445
1481
  * @see https://mantle.ngrok.com/components/navigation/sidebar
1446
1482
  *
1447
1483
  * @example
@@ -1586,9 +1622,9 @@ declare const Sidebar: {
1586
1622
  * | Data Attribute | Value | Description |
1587
1623
  * | --- | --- | --- |
1588
1624
  * | `data-state` | `"expanded"` \| `"collapsed"` | On the desktop panel surface. Mirrors the root's expanded state and drives the width collapse to the icon rail; descendant parts style off it with `group-data-[state=collapsed]/sidebar-nav:`. |
1589
- * | `data-hydrated` | present after hydration | Presence-only, desktop panel surface. The CSS-side twin of the `isHydrated` gate: descendant collapse transitions are enabled only under `group-data-hydrated/sidebar-nav:`, so an SSR state correction snaps instead of animating on page load. |
1625
+ * | `data-hydrated` | present one frame after hydration | Presence-only, desktop panel surface. The panel's pre-hydration visibility gate, its width transition, and descendant collapse transitions all key off its absence in CSS (`not-data-hydrated:`, `group-not-data-hydrated/sidebar-nav:`). The stamp waits one frame, so an SSR state correction paints first and snaps instead of animating on page load. |
1590
1626
  * | `data-mobile` | present in the mobile sheet | Presence-only. Marks the `Sheet.Content` presentation used below the root's `mobileBreakpoint`. |
1591
- * | `data-state` | `"open"` \| `"closed"` | In the mobile sheet only, where the panel *is* the `Sheet`'s Radix dialog content element and Radix owns the attribute — the sheet's open/close animation state, not the desktop expanded state. Consumers style against it too. |
1627
+ * | `data-state` | `"open"` \| `"closed"` | In the mobile sheet only, where the panel *is* the `Sheet`'s Radix dialog content element and Radix owns the attribute: the sheet's open/close animation state, not the desktop expanded state. Consumers style against it too. |
1592
1628
  *
1593
1629
  * @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarnav
1594
1630
  *
@@ -1652,6 +1688,12 @@ declare const Sidebar: {
1652
1688
  * | Data Attribute | Value | Description |
1653
1689
  * | --- | --- | --- |
1654
1690
  * | `data-state` | `"expanded"` \| `"collapsed"` | Mirrors what the trigger toggles: the mobile sheet below the root's `mobileBreakpoint`, the desktop panel otherwise. Pairs with `aria-expanded`. |
1691
+ * | `data-slot` | `"sidebar-trigger-tooltip"` | On the tooltip surface, not the button: the styling hook for the label-and-chord popup this part renders. |
1692
+ * | `data-state` | `"delayed-open"` \| `"instant-open"` \| `"closed"` | Read, not stamped: on the tooltip surface, from `Tooltip.Content`. |
1693
+ * | `data-side` | `"top"` \| `"right"` \| `"bottom"` \| `"left"` | Read, not stamped: on the tooltip surface, from `Tooltip.Content`. |
1694
+ * | `data-slot` | `"sidebar-tooltip-row"` | Inside that surface, on the flex row holding the label and the optional chord chips. Nested inside `Tooltip.Content`'s own `tooltip-label` div. Always present. |
1695
+ * | `data-slot` | `"sidebar-tooltip-label"` | On the `<span>` wrapping `label` inside that row. Always present, and `display: contents`, so the label stays a flex item of the row. |
1696
+ * | `data-slot` | `"sidebar-tooltip-shortcut"` | On the chord chips. Present only while `shortcut` holds something. Carries `translate="no"`: a chord is a key name, not prose. |
1655
1697
  * | `data-appearance` | `"filled"` \| `"ghost"` \| `"outlined"` | Read, not stamped: the underlying `IconButton` reflects its `appearance`, which this part defaults to `"ghost"`. |
1656
1698
  * | `data-intent` | `"neutral"` | Read, not stamped: the underlying `IconButton` reflects its `intent`, and it draws the neutral tone only. |
1657
1699
  * | `data-size` | `"xs"` \| `"sm"` \| `"md"` \| `"lg"` \| `"xl"` | Read, not stamped: the underlying `IconButton` reflects its `size` and its own `"md"` default. |
@@ -2115,9 +2157,9 @@ declare const Sidebar: {
2115
2157
  *
2116
2158
  * | Data Attribute | Value | Description |
2117
2159
  * | --- | --- | --- |
2118
- * | `data-current` | present when `current` | Presence-only — never `"false"`, since the `data-current:` variant matches the attribute's existence. Styles the current row. |
2160
+ * | `data-current` | present when `current` | Presence-only, never `"false"`, since the `data-current:` variant matches the attribute's existence. Styles the current row. |
2119
2161
  * | `aria-current` | `"page"` when `current` | Set alongside `data-current`. The current-row styling follows *either*, so a composed child that marks itself (react-router's `NavLink`) gets the treatment without the prop. |
2120
- * | `data-state` | `"open"` | **Read, not stamped** — supplied by a composing `DropdownMenu.Trigger` / `Dialog.Trigger`. The row styles against it so it stays highlighted while its menu is open. |
2162
+ * | `data-state` | `"open"` \| `"closed"` | **Read, not stamped**: supplied by a composing `DropdownMenu.Trigger` / `Dialog.Trigger`. The row styles against it so it stays highlighted while its menu is open. Inside `Sidebar.Tooltip` the tooltip's own `data-state` replaces this one, so the open highlight also keys on `aria-expanded`. |
2121
2163
  *
2122
2164
  * @see https://mantle.ngrok.com/components/navigation/sidebar#sidebaritembutton
2123
2165
  *
@@ -2184,9 +2226,9 @@ declare const Sidebar: {
2184
2226
  * | Data Attribute | Value | Description |
2185
2227
  * | --- | --- | --- |
2186
2228
  * | `data-slot` | `"sidebar-search-trigger"` | On the row element. |
2187
- * | `data-slot` | `"sidebar-search-trigger-label"` | On the `<span>` wrapping `children` on the default `button` path. Absent under `asChild`, which renders no sibling. |
2188
- * | `data-slot` | `"sidebar-search-trigger-shortcut"` | On the chord chips. Always present on the default `button` path, and `display: none` while it is empty. Absent under `asChild`, where the props union forbids `shortcut`. |
2189
- * | `data-state` | `"open"` \| `"closed"` | **Read, not stamped** — supplied by the composing `Command.SearchTrigger` / `Dialog.Trigger`. Style the row while its palette is open with `data-state-open:`. |
2229
+ * | `data-slot` | `"sidebar-search-trigger-label"` | On the `<span>` wrapping `children` on the default `button` path. Absent under `asChild`, which renders no sibling. Always `display: contents`, so your icon and label stay flex items of the row. |
2230
+ * | `data-slot` | `"sidebar-search-trigger-shortcut"` | On the chord chips. Always present on the default `button` path, and `display: none` while it is empty. Absent under `asChild`, where the props union forbids `shortcut`. Carries `translate="no"`: a chord is a key name, not prose. |
2231
+ * | `data-state` | `"open"` \| `"closed"` | **Read, not stamped**: supplied by the composing `Command.SearchTrigger` / `Dialog.Trigger`. Style the row while its palette is open with `data-state-open:`. |
2190
2232
  *
2191
2233
  * @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarsearchtrigger
2192
2234
  *
@@ -2245,14 +2287,14 @@ declare const Sidebar: {
2245
2287
  */
2246
2288
  readonly SearchTrigger: typeof SearchTrigger;
2247
2289
  /**
2248
- * The styled switcher row for the header/footer. Not state-wired — compose
2290
+ * The styled switcher row for the header/footer. Not state-wired: compose
2249
2291
  * with `DropdownMenu.Trigger asChild` or `Dialog.Trigger asChild`.
2250
2292
  *
2251
2293
  * **Data attributes:**
2252
2294
  *
2253
2295
  * | Data Attribute | Value | Description |
2254
2296
  * | --- | --- | --- |
2255
- * | `data-state` | `"open"` | **Read, not stamped** — supplied by the composing `DropdownMenu.Trigger` / `Dialog.Trigger`. The row styles against it so it stays highlighted while its menu is open. |
2297
+ * | `data-state` | `"open"` \| `"closed"` | **Read, not stamped**: supplied by the composing `DropdownMenu.Trigger` / `Dialog.Trigger`. The row styles against it so it stays highlighted while its menu is open. Inside `Sidebar.Tooltip` the tooltip's own `data-state` replaces this one, so the open highlight also keys on `aria-expanded`. |
2256
2298
  *
2257
2299
  * @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarswitchertrigger
2258
2300
  *
@@ -2308,19 +2350,23 @@ declare const Sidebar: {
2308
2350
  */
2309
2351
  readonly SwitcherTrigger: typeof SwitcherTrigger;
2310
2352
  /**
2311
- * Labels a row while the panel is collapsed to the icon rail — wrap it
2353
+ * Labels a row while the panel is collapsed to the icon rail: wrap it
2312
2354
  * around a `Sidebar.ItemButton` or `Sidebar.SwitcherTrigger`. Requires a
2313
- * `TooltipProvider` ancestor. Takes `Tooltip.Content`'s props (including
2314
- * `asChild`) on the tooltip surface; `side` defaults to `"right"`.
2355
+ * `TooltipProvider` ancestor. Takes `Tooltip.Content`'s props on the
2356
+ * tooltip surface; `side` defaults to `"right"`.
2315
2357
  *
2316
2358
  * **Data attributes:**
2317
2359
  *
2318
2360
  * | Data Attribute | Value | Description |
2319
2361
  * | --- | --- | --- |
2320
- * | `data-slot` | `"sidebar-tooltip"` | On the tooltip surface. |
2362
+ * | `data-slot` | `"sidebar-tooltip tooltip-content"` | On the tooltip surface, with any forwarded chain ahead of it and `Tooltip.Content`'s own slot after it. |
2363
+ * | `data-state` | `"delayed-open"` \| `"instant-open"` \| `"closed"` | Read, not stamped: on the tooltip surface, from `Tooltip.Content`. |
2364
+ * | `data-side` | `"top"` \| `"right"` \| `"bottom"` \| `"left"` | Read, not stamped: on the tooltip surface, from `Tooltip.Content`. The resolved side, `"right"` by default. |
2365
+ * | `data-align` | `"start"` \| `"center"` \| `"end"` | Read, not stamped: on the tooltip surface, from `Tooltip.Content`. |
2321
2366
  * | `data-slot` | `"sidebar-tooltip-row"` | Inside that surface, on the flex row holding the label and the optional chord chips. Nested inside `Tooltip.Content`'s own `tooltip-label` div. Always present, so a chord that arrives later appends instead of replacing the label. |
2322
2367
  * | `data-slot` | `"sidebar-tooltip-label"` | On the `<span>` wrapping `label` inside that row. Always present, and `display: contents`, so the label stays a flex item of the row. |
2323
- * | `data-slot` | `"sidebar-tooltip-shortcut"` | On the chord chips. Present only while `shortcut` holds something. |
2368
+ * | `data-slot` | `"sidebar-tooltip-shortcut"` | On the chord chips. Present only while `shortcut` holds something. Carries `translate="no"`: a chord is a key name, not prose. |
2369
+ * | `data-state` | `"delayed-open"` \| `"instant-open"` \| `"closed"` | On the wrapped row, from `Tooltip.Trigger`. `"closed"` outside the collapsed rail, where this part vetoes the open state. |
2324
2370
  *
2325
2371
  * @see https://mantle.ngrok.com/components/navigation/sidebar#sidebartooltip
2326
2372
  *
@@ -2383,7 +2429,15 @@ declare const Sidebar: {
2383
2429
  readonly Tooltip: typeof SidebarTooltip;
2384
2430
  /**
2385
2431
  * An inset hairline between sidebar regions, aligned with the content
2386
- * padding.
2432
+ * padding. In the icon rail it narrows to the 36px chip width of
2433
+ * `Sidebar.SwitcherTrigger`.
2434
+ *
2435
+ * **Data attributes:**
2436
+ *
2437
+ * | Data Attribute | Value | Description |
2438
+ * | --- | --- | --- |
2439
+ * | `data-orientation` | `"horizontal"` \| `"vertical"` | Read, not stamped: `Separator` reflects its `orientation` prop, `"horizontal"` by default, after a `HorizontalSeparatorGroup` ancestor wins. |
2440
+ * | `data-separator` | present | Read, not stamped: presence-only, from `Separator`. Lets a `HorizontalSeparatorGroup` exempt it from `shrink-0`. |
2387
2441
  *
2388
2442
  * @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarseparator
2389
2443
  *
@@ -2463,10 +2517,10 @@ declare const SIDEBAR_STATE_COOKIE_NAME = "mantle-sidebar-state";
2463
2517
  * This is the server half of cookie-backed persistence: unlike storage-backed
2464
2518
  * persistence, a cookie is available *before* the server renders, so the
2465
2519
  * server-rendered HTML already carries the right `data-state` and there is no
2466
- * first-frame correction to hide. Pass the result straight to `defaultOpen` —
2520
+ * first-frame correction to hide. Pass the result straight to `defaultOpen`;
2467
2521
  * controlled `open` is not required.
2468
2522
  *
2469
- * Returns `undefined` — not `false` — when the cookie is absent or holds a
2523
+ * Returns `undefined`, not `false`, when the cookie is absent or holds a
2470
2524
  * value this helper does not recognize, so a first-time visitor is
2471
2525
  * distinguishable from one who deliberately collapsed the sidebar. Collapse the
2472
2526
  * state into your own default at the call site with `?? true`.
@@ -2523,7 +2577,7 @@ type SerializeSidebarStateCookieOptions = {
2523
2577
  */
2524
2578
  domain?: string;
2525
2579
  /**
2526
- * `SameSite` policy. `"Lax"` is right for a UI preference — it survives
2580
+ * `SameSite` policy. `"Lax"` is right for a UI preference: it survives
2527
2581
  * top-level navigations back to your app without riding along on
2528
2582
  * cross-site subrequests.
2529
2583
  *
@@ -2532,10 +2586,10 @@ type SerializeSidebarStateCookieOptions = {
2532
2586
  sameSite?: "Lax" | "Strict" | "None";
2533
2587
  /**
2534
2588
  * Whether to add the `Secure` attribute. Omitted by default so the same call
2535
- * works on `http://localhost` — a `Secure` cookie is silently rejected over
2536
- * http, which would make the preference appear not to persist in local
2537
- * development. Set it to `true` in production if your CSP or policy requires
2538
- * it; this cookie holds no secret, only whether a rail is open.
2589
+ * works on `http://localhost`: the browser silently rejects a `Secure` cookie
2590
+ * over http, which would make the preference appear not to persist in local
2591
+ * development. If your CSP or policy requires it, set it to `true` in
2592
+ * production; this cookie holds no secret, only whether a rail is open.
2539
2593
  *
2540
2594
  * @default false
2541
2595
  */
@@ -2571,7 +2625,7 @@ type SerializeSidebarStateCookieOptions = {
2571
2625
  * ```
2572
2626
  *
2573
2627
  * @param open - Whether the sidebar is expanded.
2574
- * @param options - Cookie attributes; see {@link SerializeSidebarStateCookieOptions}.
2628
+ * @param options - Defaults to one year, `Path=/`, `SameSite=Lax`, and no `Secure`.
2575
2629
  * @returns A cookie string such as `mantle-sidebar-state=collapsed; Max-Age=31536000; Path=/; SameSite=Lax`.
2576
2630
  */
2577
2631
  declare function serializeSidebarStateCookie(open: boolean, options?: SerializeSidebarStateCookieOptions): string;