@ngrok/mantle 0.88.0 → 0.90.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 (247) hide show
  1. package/dist/accordion.d.ts +10 -9
  2. package/dist/accordion.js +1 -1
  3. package/dist/agent.json +1530 -1
  4. package/dist/{alert-DCVfviBx.d.ts → alert-BzPDUaU7.d.ts} +16 -15
  5. package/dist/alert-DO00UiQe.js +1 -0
  6. package/dist/alert-ZaUBtgno.js +1 -0
  7. package/dist/alert-center.d.ts +7 -7
  8. package/dist/alert-center.js +1 -1
  9. package/dist/alert-dialog.d.ts +17 -16
  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-CgcbWEUs.js +1 -0
  14. package/dist/anchor.js +1 -1
  15. package/dist/app-layout.d.ts +1183 -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 +15 -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 +6 -6
  64. package/dist/description-list.js +1 -1
  65. package/dist/dialog-CaGJD02w.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-BloQKE_y.d.ts → dropdown-menu-Cef0Cz2B.d.ts} +17 -17
  70. package/dist/dropdown-menu-CutWQ0bl.js +1 -0
  71. package/dist/dropdown-menu-DMA8dGxZ.d.ts +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 +14 -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 +4 -3
  79. package/dist/flag.js +1 -1
  80. package/dist/hooks.d.ts +251 -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-CAtjMNti.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 +118 -2
  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 -0
  120. package/dist/media-object.js +1 -1
  121. package/dist/migrations/0002-data-table-action-header.yml +526 -0
  122. package/dist/migrations/0003-dialog-footer-dom-order.yml +271 -0
  123. package/dist/migrations/0004-priority-to-intent.yml +1728 -0
  124. package/dist/migrations/0005-field-item-owns-control-id.yml +234 -0
  125. package/dist/migrations/0006-data-table-tanstack-v9.yml +423 -0
  126. package/dist/migrations/0008-tabs-separator.yml +1212 -0
  127. package/dist/migrations/0009-chart-root-mode.yml +871 -0
  128. package/dist/multi-select.d.ts +23 -22
  129. package/dist/multi-select.js +1 -1
  130. package/dist/otp-input.d.ts +9 -8
  131. package/dist/otp-input.js +1 -1
  132. package/dist/pagination.d.ts +9 -8
  133. package/dist/pagination.js +1 -1
  134. package/dist/{popover-Cco1nw8I.d.ts → popover-Dvls7-j4.d.ts} +5 -4
  135. package/dist/popover-oQDUvcZ2.js +1 -0
  136. package/dist/popover.d.ts +1 -1
  137. package/dist/popover.js +1 -1
  138. package/dist/primitive-AGoxSJBI.js +1 -0
  139. package/dist/progress.d.ts +9 -8
  140. package/dist/progress.js +1 -1
  141. package/dist/qr-code.d.ts +9 -8
  142. package/dist/qr-code.js +1 -1
  143. package/dist/radio-group.d.ts +19 -18
  144. package/dist/radio-group.js +1 -1
  145. package/dist/sandbar.d.ts +7 -7
  146. package/dist/sandbar.js +1 -1
  147. package/dist/{sandboxed-on-click-BLvvSqOP.js → sandboxed-on-click-C7pPu-2M.js} +1 -1
  148. package/dist/sandboxed-on-click.js +1 -1
  149. package/dist/scatter-plot.d.ts +39 -14
  150. package/dist/scatter-plot.js +1 -1
  151. package/dist/select-DcL0-duV.js +1 -0
  152. package/dist/{select-BITJP7I5.d.ts → select-DlohFa54.d.ts} +3 -3
  153. package/dist/select.d.ts +1 -1
  154. package/dist/select.js +1 -1
  155. package/dist/selectable-list.d.ts +16 -15
  156. package/dist/selectable-list.js +1 -1
  157. package/dist/{separator-Bo4nY_3M.d.ts → separator-BWGjCIl7.d.ts} +11 -3
  158. package/dist/separator-DvPe27fH.js +1 -0
  159. package/dist/separator.d.ts +1 -1
  160. package/dist/separator.js +1 -1
  161. package/dist/sheet-H8zvhSuA.js +1 -0
  162. package/dist/sheet.d.ts +13 -12
  163. package/dist/sheet.js +1 -1
  164. package/dist/sidebar.d.ts +163 -102
  165. package/dist/sidebar.js +1 -1
  166. package/dist/skeleton-zfqoDAxT.js +1 -0
  167. package/dist/skeleton.d.ts +3 -2
  168. package/dist/skeleton.js +1 -1
  169. package/dist/skip-to-main-link.js +1 -1
  170. package/dist/slider.d.ts +3 -2
  171. package/dist/slider.js +1 -1
  172. package/dist/{slot-BsvE2ntj.js → slot-DdYN1L1C.js} +1 -1
  173. package/dist/{slot-DdgxmuI5.d.ts → slot-Q996Hqk9.d.ts} +1 -1
  174. package/dist/slot.d.ts +1 -1
  175. package/dist/slot.js +1 -1
  176. package/dist/split-button.d.ts +6 -5
  177. package/dist/split-button.js +1 -1
  178. package/dist/strata.d.ts +544 -0
  179. package/dist/strata.js +1 -0
  180. package/dist/switch.d.ts +3 -2
  181. package/dist/switch.js +1 -1
  182. package/dist/{table-DEI-qvSC.d.ts → table-BhzITa19.d.ts} +10 -9
  183. package/dist/table-DBbKqOVq.js +1 -0
  184. package/dist/table.d.ts +1 -1
  185. package/dist/table.js +1 -1
  186. package/dist/tabs.d.ts +2 -2
  187. package/dist/tabs.js +1 -1
  188. package/dist/text-area.d.ts +3 -2
  189. package/dist/text-area.js +1 -1
  190. package/dist/theme-6Q65C1Rx.js +1 -0
  191. package/dist/theme-switcher.d.ts +3 -3
  192. package/dist/theme-switcher.js +1 -1
  193. package/dist/theme.js +1 -1
  194. package/dist/toast.d.ts +10 -9
  195. package/dist/toast.js +1 -1
  196. package/dist/{tooltip-nuUCoqq8.d.ts → tooltip-CngH7Kl6.d.ts} +7 -6
  197. package/dist/tooltip-NhYXqStK.js +1 -0
  198. package/dist/tooltip.d.ts +1 -1
  199. package/dist/tooltip.js +1 -1
  200. package/dist/truncated-text.d.ts +138 -0
  201. package/dist/truncated-text.js +1 -0
  202. package/dist/types.js +1 -1
  203. package/dist/use-breakpoint--mo7kr9d.js +1 -0
  204. package/dist/use-is-hydrated-after-paint-r9Cl2mGp.js +1 -0
  205. package/dist/use-prefers-reduced-motion-DimzRx-M.js +1 -0
  206. package/dist/use-swipe-to-dismiss-Cj-AayFd.js +1 -0
  207. package/dist/utils.js +1 -1
  208. package/dist/visually-hidden.d.ts +2 -1
  209. package/dist/visually-hidden.js +1 -1
  210. package/dist/well.d.ts +10 -2
  211. package/dist/well.js +1 -1
  212. package/package.json +17 -15
  213. package/dist/alert-OP_-aGJD.js +0 -1
  214. package/dist/anchor-BnMhJYS4.js +0 -1
  215. package/dist/button-BFpCB99R.js +0 -1
  216. package/dist/button-Dij5vCQG.js +0 -1
  217. package/dist/button-pwkdtR3U.js +0 -1
  218. package/dist/chart-aZLMj4xx.js +0 -2
  219. package/dist/checkbox-DbJSqSNN.js +0 -1
  220. package/dist/choice-SRyLguqU.js +0 -1
  221. package/dist/code-block-BE3Q0iAo.js +0 -12
  222. package/dist/cx-0HCjnNv1.js +0 -1
  223. package/dist/dialog-HIdb5d3I.js +0 -1
  224. package/dist/dropdown-menu-BR_AQNMj.js +0 -1
  225. package/dist/dropdown-menu-Dlpb7600.d.ts +0 -1
  226. package/dist/icon-BT8FnkkJ.js +0 -1
  227. package/dist/icon-U24NfYv7.js +0 -1
  228. package/dist/icons-BQRcOU6J.js +0 -1
  229. package/dist/icons-C3rVfpx9.js +0 -1
  230. package/dist/in-view-T_AAYaaF.js +0 -1
  231. package/dist/input-yq0jLE4e.js +0 -1
  232. package/dist/kbd-CJ8hNZfS.js +0 -1
  233. package/dist/label-BAy0Mg59.js +0 -1
  234. package/dist/list-BleZ-43e.js +0 -1
  235. package/dist/live-region-B2vJRvPH.js +0 -1
  236. package/dist/popover-BJ5XNwzD.js +0 -1
  237. package/dist/primitive-w3wFk2La.js +0 -1
  238. package/dist/select-CUWLEeuf.js +0 -1
  239. package/dist/separator-D98be0gY.js +0 -1
  240. package/dist/sheet-B5x8EO9Y.js +0 -1
  241. package/dist/skeleton-bVDP8BzY.js +0 -1
  242. package/dist/table-D2jh52KA.js +0 -1
  243. package/dist/theme-C1kFFdIk.js +0 -1
  244. package/dist/tooltip-H03l7E4Y.js +0 -1
  245. package/dist/use-is-hydrated-after-paint-Drj0lNi4.js +0 -1
  246. package/dist/use-prefers-reduced-motion-Cj9tJ181.js +0 -1
  247. /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-BWGjCIl7.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:**
@@ -275,7 +277,7 @@ type SidebarNavProps = ComponentProps<"div"> & WithDataSlot;
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
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
  *
@@ -334,10 +336,10 @@ declare const Nav: ({ "aria-label": ariaLabelProp, "aria-labelledby": ariaLabell
334
336
  * The props for `Sidebar.Trigger`. `IconButton`'s props, except the parts the
335
337
  * trigger owns: `asChild` and `children` are removed (the trigger renders
336
338
  * only its icon and `aria-label`; build custom triggers with `useSidebar`
337
- * instead), and `appearance`, `icon`, `intent`, and `label` become optional
338
- * with sidebar defaults.
339
+ * instead), and `appearance`, `icon`, `intent`, `label`, and `size` become
340
+ * optional with sidebar defaults.
339
341
  */
340
- type SidebarTriggerProps = Omit<IconButtonProps, "appearance" | "asChild" | "children" | "icon" | "intent" | "label"> & WithDataSlot & {
342
+ type SidebarTriggerProps = Omit<IconButtonProps, "appearance" | "asChild" | "children" | "icon" | "intent" | "label" | "size"> & WithDataSlot & {
341
343
  /**
342
344
  * The visual style of the trigger `IconButton`.
343
345
  *
@@ -374,12 +376,19 @@ type SidebarTriggerProps = Omit<IconButtonProps, "appearance" | "asChild" | "chi
374
376
  * why the chips render `aria-hidden`.
375
377
  */
376
378
  shortcut?: ReactNode;
379
+ /**
380
+ * The size of the trigger `IconButton`. Small, so it sits level with the
381
+ * other `size="sm"` controls in an `AppLayout.Header` row.
382
+ *
383
+ * @default "sm"
384
+ */
385
+ size?: IconButtonProps["size"];
377
386
  };
378
387
  /**
379
388
  * The button that toggles the sidebar: the mobile sheet below the root's
380
- * `mobileBreakpoint`, the desktop expanded state otherwise. Renders a ghost
381
- * neutral `IconButton` with `aria-expanded` and `aria-controls` wired to the
382
- * sidebar's `<nav>`. Place it in your app shell's header (for example
389
+ * `mobileBreakpoint`, the desktop expanded state otherwise. Renders a small
390
+ * ghost neutral `IconButton` with `aria-expanded` and `aria-controls` wired to
391
+ * the sidebar's `<nav>`. Place it in your app shell's header (for example
383
392
  * `AppLayout.Header`) — it must stay visible at every breakpoint where the
384
393
  * sidebar can collapse, or users have no way to reopen it.
385
394
  *
@@ -400,13 +409,16 @@ type SidebarTriggerProps = Omit<IconButtonProps, "appearance" | "asChild" | "chi
400
409
  * | Data Attribute | Value | Description |
401
410
  * | --- | --- | --- |
402
411
  * | `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. |
412
+ * | `data-slot` | `"sidebar-trigger icon-button"` | On the button: the part's slot, joined ahead of `IconButton`'s own. |
413
+ * | `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. |
414
+ * | `data-state` | `"delayed-open"` \| `"instant-open"` \| `"closed"` | Read, not stamped: on the tooltip surface, from `Tooltip.Content`. |
415
+ * | `data-side` | `"top"` \| `"right"` \| `"bottom"` \| `"left"` | Read, not stamped: on the tooltip surface, from `Tooltip.Content`. |
404
416
  * | `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
417
  * | `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. |
418
+ * | `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
419
  * | `data-appearance` | `"filled"` \| `"ghost"` \| `"outlined"` | Read, not stamped: the underlying `IconButton` reflects its `appearance`, which this part defaults to `"ghost"`. |
408
420
  * | `data-intent` | `"neutral"` | Read, not stamped: the underlying `IconButton` reflects its `intent`, and it draws the neutral tone only. |
409
- * | `data-size` | `"xs"` \| `"sm"` \| `"md"` \| `"lg"` \| `"xl"` | Read, not stamped: the underlying `IconButton` reflects its `size` and its own `"md"` default. |
421
+ * | `data-size` | `"xs"` \| `"sm"` \| `"md"` \| `"lg"` \| `"xl"` | Read, not stamped: the underlying `IconButton` reflects its `size`, which this part defaults to `"sm"`. |
410
422
  *
411
423
  * @see https://mantle.ngrok.com/components/navigation/sidebar#sidebartrigger
412
424
  *
@@ -476,7 +488,7 @@ type SidebarTriggerProps = Omit<IconButtonProps, "appearance" | "asChild" | "chi
476
488
  * </Sidebar.Root>
477
489
  * ```
478
490
  */
479
- declare const Trigger: ({ appearance, "data-slot": dataSlot, icon, intent, label, onClick, shortcut, ...props }: SidebarTriggerProps) => import("react").JSX.Element;
491
+ declare const Trigger: ({ appearance, "data-slot": dataSlot, icon, intent, label, onClick, shortcut, size, ...props }: SidebarTriggerProps) => import("react").JSX.Element;
480
492
  type SidebarHeaderProps = ComponentProps<"div"> & WithAsChild & WithDataSlot;
481
493
  /**
482
494
  * The top container of a `Sidebar.Nav`, pinned above the scrollable
@@ -565,8 +577,8 @@ type SidebarBodyProps = ComponentProps<"div"> & WithAsChild & WithDataSlot;
565
577
  * The scrollable middle region of a `Sidebar.Nav`, growing to fill the space
566
578
  * between `Sidebar.Header` and `Sidebar.Footer`. Holds the navigation
567
579
  * `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.
580
+ * `scroll-fade-y` mask; inside the collapsed icon rail it hides the scrollbar
581
+ * and its reserved gutter, so the fade is the only overflow signal.
570
582
  *
571
583
  * @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarbody
572
584
  *
@@ -745,9 +757,9 @@ type SidebarGroupLabelProps = ComponentProps<"div"> & WithAsChild & WithDataSlot
745
757
  /**
746
758
  * The muted label of a `Sidebar.Group`, rendered above its `Sidebar.List`.
747
759
  * 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.
760
+ * heading outline); inside a `Sidebar.Group` the group links it to the
761
+ * sibling list via `aria-labelledby`. Pass `asChild` to render a heading at a
762
+ * level you control.
751
763
  *
752
764
  * @see https://mantle.ngrok.com/components/navigation/sidebar#sidebargrouplabel
753
765
  *
@@ -926,8 +938,8 @@ type SidebarItemButtonProps = ComponentProps<"button"> & WithAsChild & WithDataS
926
938
  * `data-current` styling state. Consumers control it from their router,
927
939
  * e.g. `current={pathname === "/endpoints"}`.
928
940
  *
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
941
+ * A composed child that sets `aria-current="page"` itself (react-router's
942
+ * `NavLink` does) already gets the current-row treatment, so it needs no
931
943
  * `current`. This prop is for the rows whose parent knows.
932
944
  */
933
945
  current?: boolean;
@@ -939,7 +951,7 @@ type SidebarItemButtonProps = ComponentProps<"button"> & WithAsChild & WithDataS
939
951
  * `data-current` visual state.
940
952
  *
941
953
  * 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
954
+ * marks itself as the current page gets it without `current`: a react-router
943
955
  * `NavLink` needs nothing but its `to`, since it already resolved the match the
944
956
  * parent would otherwise re-derive:
945
957
  *
@@ -952,22 +964,22 @@ type SidebarItemButtonProps = ComponentProps<"button"> & WithAsChild & WithDataS
952
964
  * </Sidebar.ItemButton>
953
965
  * ```
954
966
  *
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
967
+ * The row sizes its **leading** icon to 20px. Trailing visuals (a caret, a
968
+ * count, a status dot) size themselves, so a row composed with
957
969
  * `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
970
+ * ml-auto size-4 shrink-0" />`. That row stays highlighted while its menu is
971
+ * open (`data-state="open"`, supplied by the trigger). Give that menu the same
972
+ * width floor the switcher rows use, `className="min-w-(--sidebar-row-width)"`,
973
+ * so it keeps the expanded row's width instead of shrinking to this row's 28px
962
974
  * rail chip (see `Sidebar.SwitcherTrigger` for the whole contract).
963
975
  *
964
976
  * **Data attributes:**
965
977
  *
966
978
  * | Data Attribute | Value | Description |
967
979
  * | --- | --- | --- |
968
- * | `data-current` | present when `current` | Presence-only — never `"false"`, since the `data-current:` variant matches the attribute's existence. Styles the current row. |
980
+ * | `data-current` | present when `current` | Presence-only, never `"false"`, since the `data-current:` variant matches the attribute's existence. Styles the current row. |
969
981
  * | `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. |
982
+ * | `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
983
  *
972
984
  * @see https://mantle.ngrok.com/components/navigation/sidebar#sidebaritembutton
973
985
  *
@@ -1090,9 +1102,9 @@ type SidebarSearchTriggerProps = ComponentProps<"button"> & WithDataSlot & ({
1090
1102
  * | Data Attribute | Value | Description |
1091
1103
  * | --- | --- | --- |
1092
1104
  * | `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. |
1105
+ * | `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. |
1106
+ * | `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. |
1107
+ * | `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
1108
  *
1097
1109
  * @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarsearchtrigger
1098
1110
  *
@@ -1154,35 +1166,33 @@ type SidebarSwitcherTriggerProps = ComponentProps<"button"> & WithAsChild & With
1154
1166
  /**
1155
1167
  * The styled row for the sidebar's switchers: the app/product switcher in
1156
1168
  * `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
1169
+ * button only: it is not wired to any state. Compose it with
1158
1170
  * `DropdownMenu.Trigger asChild` or `Dialog.Trigger asChild`, which supply
1159
1171
  * the open state (`data-state="open"` styling comes for free from those
1160
1172
  * primitives).
1161
1173
  *
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.
1174
+ * Inside the collapsed icon rail, the row collapses to its **first child
1175
+ * element**, the leading visual (product icon, account avatar), and the
1176
+ * remaining children become visually hidden while staying in the
1177
+ * accessibility tree, so the button's accessible name is unchanged. Wrap
1178
+ * loose text in an element (e.g. a `<span>`) so it participates.
1167
1179
  *
1168
- * A menu opened from the row should be as wide as the row: `width="trigger"`
1180
+ * A menu opened from the row should be as wide as the row. `width="trigger"`
1169
1181
  * does that while the panel is expanded, but the row shrinks to a 36px chip in
1170
1182
  * 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
1183
+ * expanded row width with `className="min-w-(--sidebar-row-width)"`, the
1172
1184
  * 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.
1185
+ * renders in a portal and inherits nothing from the panel.
1186
+ *
1187
+ * - The floor is a no-op while the panel is expanded: the row already measures that wide.
1188
+ * - 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).
1189
+ * - Widen `--sidebar-width-mobile` whenever you widen `--sidebar-width`, or the floor overhangs the sheet.
1180
1190
  *
1181
1191
  * **Data attributes:**
1182
1192
  *
1183
1193
  * | Data Attribute | Value | Description |
1184
1194
  * | --- | --- | --- |
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. |
1195
+ * | `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
1196
  *
1187
1197
  * @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarswitchertrigger
1188
1198
  *
@@ -1238,10 +1248,10 @@ type SidebarSwitcherTriggerProps = ComponentProps<"button"> & WithAsChild & With
1238
1248
  */
1239
1249
  declare const SwitcherTrigger: ({ asChild, children, className, "data-slot": dataSlot, type, ...props }: SidebarSwitcherTriggerProps) => import("react").JSX.Element;
1240
1250
  /**
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.
1251
+ * The props for `Sidebar.Tooltip`. `Tooltip.Content`'s props (so `className`,
1252
+ * `style`, `ref`, and any `data-*` reach the tooltip surface), except the parts
1253
+ * this row owns: `children` is the row being labeled (not the tooltip body,
1254
+ * which is `label`), and `side` becomes optional with a sidebar default.
1245
1255
  */
1246
1256
  type SidebarTooltipProps = Omit<ComponentProps<typeof Tooltip.Content>, "children" | "side"> & WithDataSlot & {
1247
1257
  /**
@@ -1255,7 +1265,9 @@ type SidebarTooltipProps = Omit<ComponentProps<typeof Tooltip.Content>, "childre
1255
1265
  children: ReactElement;
1256
1266
  /**
1257
1267
  * 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.
1268
+ * visible one, so this is what a sighted pointer user reads. Required: the
1269
+ * rail is the only state that shows a label, so there is no text to fall
1270
+ * back to.
1259
1271
  */
1260
1272
  label: ReactNode;
1261
1273
  /**
@@ -1309,19 +1321,22 @@ type SidebarTooltipProps = Omit<ComponentProps<typeof Tooltip.Content>, "childre
1309
1321
  * needs a real element to clone.
1310
1322
  *
1311
1323
  * `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.
1324
+ * `Tooltip.Content`'s and lands on the tooltip surface: `className`, `style`,
1325
+ * `ref`, `data-*`, and positioning props such as `align` and `sideOffset`.
1326
+ * `side` defaults to `"right"`, so the tooltip opens away from the rail.
1316
1327
  *
1317
1328
  * **Data attributes:**
1318
1329
  *
1319
1330
  * | Data Attribute | Value | Description |
1320
1331
  * | --- | --- | --- |
1321
- * | `data-slot` | `"sidebar-tooltip"` | On the tooltip surface. |
1332
+ * | `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. |
1333
+ * | `data-state` | `"delayed-open"` \| `"instant-open"` \| `"closed"` | Read, not stamped: on the tooltip surface, from `Tooltip.Content`. |
1334
+ * | `data-side` | `"top"` \| `"right"` \| `"bottom"` \| `"left"` | Read, not stamped: on the tooltip surface, from `Tooltip.Content`. The resolved side, `"right"` by default. |
1335
+ * | `data-align` | `"start"` \| `"center"` \| `"end"` | Read, not stamped: on the tooltip surface, from `Tooltip.Content`. |
1322
1336
  * | `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
1337
  * | `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. |
1338
+ * | `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. |
1339
+ * | `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
1340
  *
1326
1341
  * @see https://mantle.ngrok.com/components/navigation/sidebar#sidebartooltip
1327
1342
  *
@@ -1330,6 +1345,18 @@ type SidebarTooltipProps = Omit<ComponentProps<typeof Tooltip.Content>, "childre
1330
1345
  * <TooltipProvider>
1331
1346
  * <Sidebar.Root>
1332
1347
  * <Sidebar.Nav aria-label="Main">
1348
+ * <Sidebar.Header>
1349
+ * <DropdownMenu.Root>
1350
+ * <DropdownMenu.Trigger asChild>
1351
+ * <Sidebar.SwitcherTrigger>
1352
+ * <GlobeIcon />
1353
+ * <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
1354
+ * <CaretDownIcon className="text-muted size-4 shrink-0" />
1355
+ * </Sidebar.SwitcherTrigger>
1356
+ * </DropdownMenu.Trigger>
1357
+ * <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
1358
+ * </DropdownMenu.Root>
1359
+ * </Sidebar.Header>
1333
1360
  * <Sidebar.Body>
1334
1361
  * <Sidebar.Group>
1335
1362
  * <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
@@ -1348,16 +1375,19 @@ type SidebarTooltipProps = Omit<ComponentProps<typeof Tooltip.Content>, "childre
1348
1375
  * </Sidebar.Group>
1349
1376
  * </Sidebar.Body>
1350
1377
  * <Sidebar.Footer>
1378
+ * <Sidebar.Separator />
1351
1379
  * <DropdownMenu.Root>
1352
- * <Sidebar.Tooltip label="Help">
1380
+ * <Sidebar.Tooltip label="Acme Corp">
1353
1381
  * <DropdownMenu.Trigger asChild>
1354
- * <Sidebar.ItemButton>
1355
- * <QuestionIcon />
1356
- * Help
1357
- * </Sidebar.ItemButton>
1382
+ * <Sidebar.SwitcherTrigger>
1383
+ * <Avatar.Root appearance="square" colorSeed="acc_123">
1384
+ * <Avatar.Fallback name="Acme Corp" />
1385
+ * </Avatar.Root>
1386
+ * <span className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Acme Corp</span>
1387
+ * </Sidebar.SwitcherTrigger>
1358
1388
  * </DropdownMenu.Trigger>
1359
1389
  * </Sidebar.Tooltip>
1360
- * <DropdownMenu.Content>…</DropdownMenu.Content>
1390
+ * <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
1361
1391
  * </DropdownMenu.Root>
1362
1392
  * </Sidebar.Footer>
1363
1393
  * </Sidebar.Nav>
@@ -1367,14 +1397,22 @@ type SidebarTooltipProps = Omit<ComponentProps<typeof Tooltip.Content>, "childre
1367
1397
  * ```
1368
1398
  */
1369
1399
  declare const SidebarTooltip: ({ children, "data-slot": dataSlot, label, shortcut, side, ...props }: SidebarTooltipProps) => import("react").JSX.Element;
1370
- type SidebarSeparatorProps = ComponentProps<typeof Separator> & WithDataSlot;
1400
+ type SidebarSeparatorProps = Omit<ComponentProps<typeof Separator>, "asChild" | "children"> & SelfClosingWithAsChild & WithDataSlot;
1371
1401
  /**
1372
1402
  * An inset hairline between sidebar regions. Composes the mantle `Separator`,
1373
1403
  * staying aligned with the `px-3` content padding of `Sidebar.Body` and
1374
1404
  * `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.
1405
+ * breathing room above and below. In the icon rail it narrows to the 36px chip
1406
+ * width of `Sidebar.SwitcherTrigger`, 8px wider than the rail's 28px row chips,
1407
+ * so it stays optically centered between the viewport edge and the content
1408
+ * card.
1409
+ *
1410
+ * **Data attributes:**
1411
+ *
1412
+ * | Data Attribute | Value | Description |
1413
+ * | --- | --- | --- |
1414
+ * | `data-orientation` | `"horizontal"` \| `"vertical"` | Read, not stamped: `Separator` reflects its `orientation` prop, `"horizontal"` by default, after a `HorizontalSeparatorGroup` ancestor wins. |
1415
+ * | `data-separator` | present | Read, not stamped: presence-only, from `Separator`. Lets a `HorizontalSeparatorGroup` exempt it from `shrink-0`. |
1378
1416
  *
1379
1417
  * @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarseparator
1380
1418
  *
@@ -1442,6 +1480,11 @@ declare const SidebarSeparator: ({ className, "data-slot": dataSlot, ...props }:
1442
1480
  * The component is routing-agnostic: compose router links via `asChild` on
1443
1481
  * `Sidebar.ItemButton` and drive `current` from your router's location.
1444
1482
  *
1483
+ * Reach for it for the app's primary navigation on the start edge of an
1484
+ * `AppLayout`. A surface that opens beside the page for an assistant or a
1485
+ * details pane is `AppLayout.SidePanel`; a modal drawer is `Sheet`; switching
1486
+ * sections inside one page is `Tabs`.
1487
+ *
1445
1488
  * @see https://mantle.ngrok.com/components/navigation/sidebar
1446
1489
  *
1447
1490
  * @example
@@ -1588,7 +1631,7 @@ declare const Sidebar: {
1588
1631
  * | `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
1632
  * | `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
1633
  * | `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. |
1634
+ * | `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
1635
  *
1593
1636
  * @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarnav
1594
1637
  *
@@ -1652,9 +1695,15 @@ declare const Sidebar: {
1652
1695
  * | Data Attribute | Value | Description |
1653
1696
  * | --- | --- | --- |
1654
1697
  * | `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`. |
1698
+ * | `data-slot` | `"sidebar-trigger-tooltip"` | On the tooltip surface, not the button: the styling hook for the label-and-chord popup this part renders. |
1699
+ * | `data-state` | `"delayed-open"` \| `"instant-open"` \| `"closed"` | Read, not stamped: on the tooltip surface, from `Tooltip.Content`. |
1700
+ * | `data-side` | `"top"` \| `"right"` \| `"bottom"` \| `"left"` | Read, not stamped: on the tooltip surface, from `Tooltip.Content`. |
1701
+ * | `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. |
1702
+ * | `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. |
1703
+ * | `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
1704
  * | `data-appearance` | `"filled"` \| `"ghost"` \| `"outlined"` | Read, not stamped: the underlying `IconButton` reflects its `appearance`, which this part defaults to `"ghost"`. |
1656
1705
  * | `data-intent` | `"neutral"` | Read, not stamped: the underlying `IconButton` reflects its `intent`, and it draws the neutral tone only. |
1657
- * | `data-size` | `"xs"` \| `"sm"` \| `"md"` \| `"lg"` \| `"xl"` | Read, not stamped: the underlying `IconButton` reflects its `size` and its own `"md"` default. |
1706
+ * | `data-size` | `"xs"` \| `"sm"` \| `"md"` \| `"lg"` \| `"xl"` | Read, not stamped: the underlying `IconButton` reflects its `size`, which this part defaults to `"sm"`. |
1658
1707
  *
1659
1708
  * @see https://mantle.ngrok.com/components/navigation/sidebar#sidebartrigger
1660
1709
  *
@@ -2115,9 +2164,9 @@ declare const Sidebar: {
2115
2164
  *
2116
2165
  * | Data Attribute | Value | Description |
2117
2166
  * | --- | --- | --- |
2118
- * | `data-current` | present when `current` | Presence-only — never `"false"`, since the `data-current:` variant matches the attribute's existence. Styles the current row. |
2167
+ * | `data-current` | present when `current` | Presence-only, never `"false"`, since the `data-current:` variant matches the attribute's existence. Styles the current row. |
2119
2168
  * | `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. |
2169
+ * | `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
2170
  *
2122
2171
  * @see https://mantle.ngrok.com/components/navigation/sidebar#sidebaritembutton
2123
2172
  *
@@ -2184,9 +2233,9 @@ declare const Sidebar: {
2184
2233
  * | Data Attribute | Value | Description |
2185
2234
  * | --- | --- | --- |
2186
2235
  * | `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:`. |
2236
+ * | `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. |
2237
+ * | `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. |
2238
+ * | `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
2239
  *
2191
2240
  * @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarsearchtrigger
2192
2241
  *
@@ -2245,14 +2294,14 @@ declare const Sidebar: {
2245
2294
  */
2246
2295
  readonly SearchTrigger: typeof SearchTrigger;
2247
2296
  /**
2248
- * The styled switcher row for the header/footer. Not state-wired — compose
2297
+ * The styled switcher row for the header/footer. Not state-wired: compose
2249
2298
  * with `DropdownMenu.Trigger asChild` or `Dialog.Trigger asChild`.
2250
2299
  *
2251
2300
  * **Data attributes:**
2252
2301
  *
2253
2302
  * | Data Attribute | Value | Description |
2254
2303
  * | --- | --- | --- |
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. |
2304
+ * | `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
2305
  *
2257
2306
  * @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarswitchertrigger
2258
2307
  *
@@ -2308,19 +2357,23 @@ declare const Sidebar: {
2308
2357
  */
2309
2358
  readonly SwitcherTrigger: typeof SwitcherTrigger;
2310
2359
  /**
2311
- * Labels a row while the panel is collapsed to the icon rail — wrap it
2360
+ * Labels a row while the panel is collapsed to the icon rail: wrap it
2312
2361
  * 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"`.
2362
+ * `TooltipProvider` ancestor. Takes `Tooltip.Content`'s props on the
2363
+ * tooltip surface; `side` defaults to `"right"`.
2315
2364
  *
2316
2365
  * **Data attributes:**
2317
2366
  *
2318
2367
  * | Data Attribute | Value | Description |
2319
2368
  * | --- | --- | --- |
2320
- * | `data-slot` | `"sidebar-tooltip"` | On the tooltip surface. |
2369
+ * | `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. |
2370
+ * | `data-state` | `"delayed-open"` \| `"instant-open"` \| `"closed"` | Read, not stamped: on the tooltip surface, from `Tooltip.Content`. |
2371
+ * | `data-side` | `"top"` \| `"right"` \| `"bottom"` \| `"left"` | Read, not stamped: on the tooltip surface, from `Tooltip.Content`. The resolved side, `"right"` by default. |
2372
+ * | `data-align` | `"start"` \| `"center"` \| `"end"` | Read, not stamped: on the tooltip surface, from `Tooltip.Content`. |
2321
2373
  * | `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
2374
  * | `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. |
2375
+ * | `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. |
2376
+ * | `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
2377
  *
2325
2378
  * @see https://mantle.ngrok.com/components/navigation/sidebar#sidebartooltip
2326
2379
  *
@@ -2383,7 +2436,15 @@ declare const Sidebar: {
2383
2436
  readonly Tooltip: typeof SidebarTooltip;
2384
2437
  /**
2385
2438
  * An inset hairline between sidebar regions, aligned with the content
2386
- * padding.
2439
+ * padding. In the icon rail it narrows to the 36px chip width of
2440
+ * `Sidebar.SwitcherTrigger`.
2441
+ *
2442
+ * **Data attributes:**
2443
+ *
2444
+ * | Data Attribute | Value | Description |
2445
+ * | --- | --- | --- |
2446
+ * | `data-orientation` | `"horizontal"` \| `"vertical"` | Read, not stamped: `Separator` reflects its `orientation` prop, `"horizontal"` by default, after a `HorizontalSeparatorGroup` ancestor wins. |
2447
+ * | `data-separator` | present | Read, not stamped: presence-only, from `Separator`. Lets a `HorizontalSeparatorGroup` exempt it from `shrink-0`. |
2387
2448
  *
2388
2449
  * @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarseparator
2389
2450
  *
@@ -2463,10 +2524,10 @@ declare const SIDEBAR_STATE_COOKIE_NAME = "mantle-sidebar-state";
2463
2524
  * This is the server half of cookie-backed persistence: unlike storage-backed
2464
2525
  * persistence, a cookie is available *before* the server renders, so the
2465
2526
  * 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` —
2527
+ * first-frame correction to hide. Pass the result straight to `defaultOpen`;
2467
2528
  * controlled `open` is not required.
2468
2529
  *
2469
- * Returns `undefined` — not `false` — when the cookie is absent or holds a
2530
+ * Returns `undefined`, not `false`, when the cookie is absent or holds a
2470
2531
  * value this helper does not recognize, so a first-time visitor is
2471
2532
  * distinguishable from one who deliberately collapsed the sidebar. Collapse the
2472
2533
  * state into your own default at the call site with `?? true`.
@@ -2523,7 +2584,7 @@ type SerializeSidebarStateCookieOptions = {
2523
2584
  */
2524
2585
  domain?: string;
2525
2586
  /**
2526
- * `SameSite` policy. `"Lax"` is right for a UI preference — it survives
2587
+ * `SameSite` policy. `"Lax"` is right for a UI preference: it survives
2527
2588
  * top-level navigations back to your app without riding along on
2528
2589
  * cross-site subrequests.
2529
2590
  *
@@ -2532,10 +2593,10 @@ type SerializeSidebarStateCookieOptions = {
2532
2593
  sameSite?: "Lax" | "Strict" | "None";
2533
2594
  /**
2534
2595
  * 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.
2596
+ * works on `http://localhost`: the browser silently rejects a `Secure` cookie
2597
+ * over http, which would make the preference appear not to persist in local
2598
+ * development. If your CSP or policy requires it, set it to `true` in
2599
+ * production; this cookie holds no secret, only whether a rail is open.
2539
2600
  *
2540
2601
  * @default false
2541
2602
  */
@@ -2571,7 +2632,7 @@ type SerializeSidebarStateCookieOptions = {
2571
2632
  * ```
2572
2633
  *
2573
2634
  * @param open - Whether the sidebar is expanded.
2574
- * @param options - Cookie attributes; see {@link SerializeSidebarStateCookieOptions}.
2635
+ * @param options - Defaults to one year, `Path=/`, `SameSite=Lax`, and no `Secure`.
2575
2636
  * @returns A cookie string such as `mantle-sidebar-state=collapsed; Max-Age=31536000; Path=/; SameSite=Lax`.
2576
2637
  */
2577
2638
  declare function serializeSidebarStateCookie(open: boolean, options?: SerializeSidebarStateCookieOptions): string;