@ngrok/mantle 0.93.7 → 0.94.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 (193) hide show
  1. package/dist/accordion.d.ts +13 -1
  2. package/dist/accordion.js +1 -1
  3. package/dist/agent.json +1181 -36
  4. package/dist/alert-CH99Rw-R.js +1 -0
  5. package/dist/{alert-BcSBNR3S.d.ts → alert-HffaioZM.d.ts} +31 -21
  6. package/dist/alert-center.d.ts +15 -3
  7. package/dist/alert-center.js +1 -1
  8. package/dist/alert-dialog.d.ts +15 -2
  9. package/dist/alert-dialog.js +1 -1
  10. package/dist/alert.d.ts +6 -1
  11. package/dist/alert.js +1 -1
  12. package/dist/anchor.d.ts +12 -0
  13. package/dist/app-layout.d.ts +16 -1
  14. package/dist/app-layout.js +1 -1
  15. package/dist/area-chart.d.ts +144 -88
  16. package/dist/area-chart.js +1 -1
  17. package/dist/avatar.d.ts +12 -0
  18. package/dist/badge.d.ts +13 -1
  19. package/dist/bar-chart.d.ts +144 -89
  20. package/dist/bar-chart.js +1 -1
  21. package/dist/breadcrumb.d.ts +11 -0
  22. package/dist/breadcrumb.js +1 -1
  23. package/dist/browser-only.d.ts +8 -0
  24. package/dist/{button-Yxyu1XMd.d.ts → button-BGwOPjGV.d.ts} +7 -1
  25. package/dist/{button-B8k98Pby.js → button-BWGUuWnu.js} +1 -1
  26. package/dist/{button-CPsKGDK0.d.ts → button-Cgf2IcEC.d.ts} +8 -1
  27. package/dist/button-Cu9e3SM7.js +1 -0
  28. package/dist/{button-BX-4lYUn.d.ts → button-K0pKc3GN.d.ts} +3 -3
  29. package/dist/button.d.ts +9 -3
  30. package/dist/button.js +1 -1
  31. package/dist/calendar.d.ts +7 -0
  32. package/dist/calendar.js +1 -1
  33. package/dist/card.d.ts +6 -1
  34. package/dist/centered-layout.d.ts +11 -0
  35. package/dist/chart-BO9EwQ60.js +1 -0
  36. package/dist/chart-CE5Uaqz9.js +1 -0
  37. package/dist/chart-DCTGGlWL.js +1 -0
  38. package/dist/chart-DudCw24t.js +2 -0
  39. package/dist/{chart-BpfbtOUN.d.ts → chart-jitNqimS.d.ts} +99 -103
  40. package/dist/{checkbox-DmSQXs26.js → checkbox-CS504fKk.js} +1 -1
  41. package/dist/checkbox.d.ts +14 -1
  42. package/dist/checkbox.js +1 -1
  43. package/dist/{choice-BLR0_MeB.d.ts → choice-BwfmbepO.d.ts} +7 -1
  44. package/dist/choice-uyYccm0A.js +1 -0
  45. package/dist/choice.d.ts +6 -1
  46. package/dist/choice.js +1 -1
  47. package/dist/code-block.d.ts +13 -2
  48. package/dist/code-block.js +1 -1
  49. package/dist/code-block_highlight-utils.d.ts +5 -0
  50. package/dist/code.d.ts +13 -0
  51. package/dist/color-CHZbU1Ww.js +1 -0
  52. package/dist/color.js +1 -1
  53. package/dist/combobox.d.ts +28 -14
  54. package/dist/combobox.js +1 -1
  55. package/dist/command.d.ts +14 -2
  56. package/dist/command.js +1 -1
  57. package/dist/cx.js +1 -1
  58. package/dist/data-table.d.ts +50 -19
  59. package/dist/data-table.js +1 -1
  60. package/dist/description-list.d.ts +12 -1
  61. package/dist/dialog-B9JAGy_x.d.ts +28 -0
  62. package/dist/{dialog-7TUgiSzX.js → dialog-CsugEt2A.js} +1 -1
  63. package/dist/{dialog-2fRO4ca4.d.ts → dialog-DD5H3EH1.d.ts} +10 -2
  64. package/dist/dialog.d.ts +7 -2
  65. package/dist/dialog.js +1 -1
  66. package/dist/dropdown-menu-DHdgaw4P.js +1 -0
  67. package/dist/{dropdown-menu-CpjRwMWe.d.ts → dropdown-menu-DmDxYPde.d.ts} +34 -26
  68. package/dist/dropdown-menu.d.ts +6 -1
  69. package/dist/dropdown-menu.js +1 -1
  70. package/dist/empty.d.ts +5 -0
  71. package/dist/empty.js +1 -1
  72. package/dist/{field-V_gnkcmN.d.ts → field-BshcNVe_.d.ts} +1 -1
  73. package/dist/field.d.ts +17 -6
  74. package/dist/field.js +1 -1
  75. package/dist/flag.d.ts +8 -0
  76. package/dist/hooks.d.ts +5 -0
  77. package/dist/hooks.js +1 -1
  78. package/dist/hover-card.d.ts +23 -12
  79. package/dist/{icon-ByLVhdYq.d.ts → icon-NYvyyRMG.d.ts} +6 -0
  80. package/dist/icon.d.ts +7 -2
  81. package/dist/icon.js +1 -1
  82. package/dist/{icons-DP3lQw5O.js → icons-4JA-SGfv.js} +1 -1
  83. package/dist/icons.d.ts +13 -1
  84. package/dist/icons.js +1 -1
  85. package/dist/{index-BhfgyurF.d.ts → index-KJ06KK6t.d.ts} +3 -3
  86. package/dist/input-BjCDSOPA.js +1 -0
  87. package/dist/input-DHovzBjS.js +1 -0
  88. package/dist/{input-Dx5owTCc.d.ts → input-q8o5uMhW.d.ts} +11 -1
  89. package/dist/input.d.ts +34 -2
  90. package/dist/input.js +1 -1
  91. package/dist/kbd.d.ts +12 -0
  92. package/dist/{label-nHqqYS7e.js → label-DmDwzPD8.js} +1 -1
  93. package/dist/{label-Dn5CPJUj.d.ts → label-r2sJcSQ4.d.ts} +6 -0
  94. package/dist/label.d.ts +6 -1
  95. package/dist/label.js +1 -1
  96. package/dist/line-chart.d.ts +139 -82
  97. package/dist/line-chart.js +1 -1
  98. package/dist/{list-RFRIQxU2.js → list-CO_yLdln.js} +1 -1
  99. package/dist/list.d.ts +19 -1
  100. package/dist/list.js +1 -1
  101. package/dist/live-region.d.ts +14 -1
  102. package/dist/llms.txt +78 -76
  103. package/dist/main.d.ts +12 -0
  104. package/dist/mantle.css +110 -65
  105. package/dist/media-object.d.ts +12 -0
  106. package/dist/migrations/0014-chart-named-colors.yml +1389 -0
  107. package/dist/migrations/0015-segmented-control.yml +788 -0
  108. package/dist/multi-select.d.ts +15 -2
  109. package/dist/multi-select.js +1 -1
  110. package/dist/otp-input.d.ts +17 -5
  111. package/dist/otp-input.js +1 -1
  112. package/dist/pagination.d.ts +92 -3
  113. package/dist/pagination.js +1 -1
  114. package/dist/popover-BhTFutCz.d.ts +1 -0
  115. package/dist/{popover-BfB2I9G0.d.ts → popover-lwkwWcRW.d.ts} +16 -7
  116. package/dist/popover.d.ts +7 -2
  117. package/dist/progress.d.ts +27 -10
  118. package/dist/progress.js +1 -1
  119. package/dist/qr-code.d.ts +9 -1
  120. package/dist/query.d.ts +2 -2
  121. package/dist/query.js +1 -1
  122. package/dist/radio-group-jj2abc0t.js +1 -0
  123. package/dist/radio-group-sLz5AA9I.d.ts +27 -0
  124. package/dist/radio-group.d.ts +20 -99
  125. package/dist/radio-group.js +1 -1
  126. package/dist/sandbar.d.ts +14 -1
  127. package/dist/sandbar.js +1 -1
  128. package/dist/sandboxed-on-click.d.ts +8 -0
  129. package/dist/scatter-plot.d.ts +126 -64
  130. package/dist/scatter-plot.js +1 -1
  131. package/dist/segmented-control.d.ts +136 -0
  132. package/dist/segmented-control.js +1 -0
  133. package/dist/{select-BkhBxtOT.d.ts → select-BqmpVJJT.d.ts} +29 -21
  134. package/dist/select-C6Su0dU0.js +1 -0
  135. package/dist/select.d.ts +6 -1
  136. package/dist/select.js +1 -1
  137. package/dist/selectable-list.d.ts +13 -2
  138. package/dist/selectable-list.js +1 -1
  139. package/dist/{separator-D9AWEkcJ.d.ts → separator-QfH0ot5K.d.ts} +3 -1
  140. package/dist/separator.d.ts +6 -1
  141. package/dist/{sheet-CSJc_sB4.js → sheet-Bd2LIhzF.js} +1 -1
  142. package/dist/sheet.d.ts +15 -2
  143. package/dist/sheet.js +1 -1
  144. package/dist/sidebar.d.ts +19 -3
  145. package/dist/sidebar.js +1 -1
  146. package/dist/skeleton.d.ts +11 -0
  147. package/dist/skip-to-main-link.d.ts +11 -0
  148. package/dist/skip-to-main-link.js +1 -1
  149. package/dist/slider.d.ts +10 -0
  150. package/dist/{slot-C0OCJjdJ.d.ts → slot-D12N_fZJ.d.ts} +3 -1
  151. package/dist/slot.d.ts +6 -1
  152. package/dist/split-button.d.ts +14 -3
  153. package/dist/split-button.js +1 -1
  154. package/dist/strata.d.ts +13 -0
  155. package/dist/switch.d.ts +13 -1
  156. package/dist/switch.js +1 -1
  157. package/dist/{table-vT6Okwfa.d.ts → table-rWiVWEgB.d.ts} +79 -0
  158. package/dist/table.d.ts +6 -1
  159. package/dist/tabs.d.ts +23 -11
  160. package/dist/tabs.js +1 -1
  161. package/dist/text-area.d.ts +11 -1
  162. package/dist/theme-DdZgLvKH.js +1 -0
  163. package/dist/theme-switcher.d.ts +16 -2
  164. package/dist/theme-switcher.js +1 -1
  165. package/dist/theme.d.ts +12 -0
  166. package/dist/theme.js +1 -1
  167. package/dist/toast.d.ts +14 -1
  168. package/dist/toast.js +1 -1
  169. package/dist/{tooltip-NcLIeBy5.d.ts → tooltip-CpK3XTor.d.ts} +15 -8
  170. package/dist/tooltip.d.ts +6 -1
  171. package/dist/truncated-text.d.ts +27 -13
  172. package/dist/truncated-text.js +1 -1
  173. package/dist/types.d.ts +1 -1
  174. package/dist/types.js +1 -1
  175. package/dist/use-inert-siblings-CNmNuS2h.js +1 -0
  176. package/dist/use-swipe-to-dismiss-i__cTF2v.js +1 -0
  177. package/dist/utils.d.ts +1 -1
  178. package/dist/utils.js +1 -1
  179. package/dist/visually-hidden.d.ts +13 -0
  180. package/dist/well.d.ts +6 -1
  181. package/package.json +6 -6
  182. package/src/components/chart/d3-license.md +25 -0
  183. package/dist/alert-P9lwn25X.js +0 -1
  184. package/dist/button-Dge0D5bl.js +0 -1
  185. package/dist/chart-BpWfQAwf.js +0 -2
  186. package/dist/choice-2Lrv8_nl.js +0 -1
  187. package/dist/dialog-Dp0QGWwo.d.ts +0 -28
  188. package/dist/dropdown-menu-BHBzCDSZ.js +0 -1
  189. package/dist/input-CpQ6jlpI.js +0 -1
  190. package/dist/popover-C96V8SXi.d.ts +0 -1
  191. package/dist/select-CAAYk4Yj.js +0 -1
  192. package/dist/theme-C-glc5Q-.js +0 -1
  193. package/dist/use-swipe-to-dismiss-DceYk1Id.js +0 -1
@@ -1,3 +1,8 @@
1
+ /**
2
+ * Re-exports for the LiveRegion component.
3
+ *
4
+ * @see https://mantle.ngrok.com/components/primitives/live-region
5
+ */
1
6
  import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
2
7
  import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
3
8
  import { ComponentProps } from "react";
@@ -31,7 +36,7 @@ type LiveRegionProps = ComponentProps<"span"> & WithAsChild & {
31
36
  * - Announce an async result that moves focus nowhere: "3 results found", "Draft saved".
32
37
  *
33
38
  * **When not to use**
34
- * - For status the user must see. Use {@link https://mantle.ngrok.com/components/feedback/alert Alert} or {@link https://mantle.ngrok.com/components/feedback/toast Toast}, which pair visible UI with their own announcements.
39
+ * - For status the user must see. Use {@link https://mantle.ngrok.com/components/feedback/toast Toast}, which announces its message, or {@link https://mantle.ngrok.com/components/feedback/alert Alert}, which announces only when you pass it a `role`.
35
40
  * - For hidden text that never changes. Use {@link https://mantle.ngrok.com/components/primitives/visually-hidden VisuallyHidden}.
36
41
  *
37
42
  * **Polymorphism.** Pass `asChild` to render the live region as a different
@@ -41,6 +46,14 @@ type LiveRegionProps = ComponentProps<"span"> & WithAsChild & {
41
46
  * | -------------- | --------------- | ------------------------------------------------------------------------- |
42
47
  * | `data-slot` | `"live-region"` | Stamped on the rendered element, and joined onto the child via `asChild`. |
43
48
  *
49
+ * @useWhen Announce a change to screen readers with no visible message, such as a save result or a
50
+ * count of search results.
51
+ *
52
+ * @siblings
53
+ * - `Toast`: sighted users also need to see the message.
54
+ * - `Alert`: the message stays visible in the page. It announces only when you pass it a `role`.
55
+ * - `VisuallyHidden`: the hidden text is static and needs no announcement.
56
+ *
44
57
  * @see https://mantle.ngrok.com/components/primitives/live-region
45
58
  * @see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Guides/Live_regions
46
59
  *
package/dist/llms.txt CHANGED
@@ -1,4 +1,4 @@
1
- # @ngrok/mantle (0.93.7)
1
+ # @ngrok/mantle (0.94.0)
2
2
 
3
3
  > Offline index shipped inside the @ngrok/mantle npm package. The full records, with examples and sibling boundaries, are in agent.json beside this file. Neither file lists props: read the bundled type declarations (`<subpath>.d.ts` beside this file) for every prop and its JSDoc. Live docs: https://mantle.ngrok.com/for-ai-agents.
4
4
 
@@ -19,85 +19,86 @@ Full text: https://mantle.ngrok.com/llms-full.txt
19
19
 
20
20
  ## Components
21
21
 
22
- - **Accordion** (`@ngrok/mantle/accordion`): A vertically stacked set of disclosure sections whose collapsed content stays in the DOM, so browser find-in-page (⌘F) can reveal it.
23
- - **Alert** (`@ngrok/mantle/alert`): Displays a callout for user attention.
24
- - **Alert Center** (`@ngrok/mantle/alert-center`): A single top-level bar that surfaces one-to-many account alerts and their upgrade CTAs, expanding additional alerts inline.
25
- - **Alert Dialog** (`@ngrok/mantle/alert-dialog`): A modal dialog that interrupts the user with important content and expects a response.
26
- - **Anchor** (`@ngrok/mantle/anchor`): Fundamental component for rendering links to external addresses.
27
- - **Area Chart** (`@ngrok/mantle/area-chart`): A canvas-rendered area chart for showing how values — and, when stacked, a total and its parts — change over a continuous x axis.
28
- - **Avatar** (`@ngrok/mantle/avatar`): A small image representing a person or an account, with a text or icon fallback.
29
- - **Badge** (`@ngrok/mantle/badge`): A non-interactive label used to highlight short, scannable information — a status, a category tag, or a count — in the smallest possible footprint.
30
- - **Bar Chart** (`@ngrok/mantle/bar-chart`): A canvas-rendered bar chart for comparing values across categories, with grouped and stacked variants.
31
- - **Breadcrumb** (`@ngrok/mantle/breadcrumb`): Hierarchy-path navigation, an ordered list of links from a root to the current page, in a labeled nav landmark.
32
- - **Browser Only** (`@ngrok/mantle/browser-only`): A wrapper component that renders its children in the browser only, after hydration completes.
33
- - **Button** (`@ngrok/mantle/button`): Initiates an action, such as completing a task or submitting information.
34
- - **Calendar** (`@ngrok/mantle/calendar`, preview): A calendar component that allows users to select a date or a range of dates.
35
- - **Card** (`@ngrok/mantle/card`): A container used to display content in a box, resembling a physical card.
36
- - **Checkbox** (`@ngrok/mantle/checkbox`): A form control that allows the user to toggle between checked and not checked. Supports indeterminate state.
37
- - **Choice** (`@ngrok/mantle/choice`): A reusable indicator-left / content-right layout for a single choice (a control beside a titled, multi-line label).
38
- - **Code** (`@ngrok/mantle/code`): Marks a short fragment of inline computer code — a function name, a variable, a CLI flag, a key.
39
- - **Code Block** (`@ngrok/mantle/code-block`): Code blocks render and apply syntax highlighting to blocks of code using Shiki at build time.
40
- - **Combobox** (`@ngrok/mantle/combobox`): Fill in a React input field with autocomplete & autosuggest functionalities. Choose from a list of suggested values with full keyboard support. Also called: autocomplete, typeahead.
41
- - **Command** (`@ngrok/mantle/command`): A command palette that allows users to search and execute commands.
42
- - **Data Table** (`@ngrok/mantle/data-table`): Tables purposefully designed for dynamic, application data with features like sorting, filtering, and pagination.
43
- - **Description List** (`@ngrok/mantle/description-list`): A semantically correct description list built on the HTML dl element. Renders a list of label/value pairs, commonly used in detail views to display metadata about a resource.
44
- - **Dialog** (`@ngrok/mantle/dialog`): A window overlaid on either the primary window or another dialog window, rendering the content underneath inert. Also called: modal.
45
- - **Dropdown Menu** (`@ngrok/mantle/dropdown-menu`): Displays a menu to the user (such as a set of actions or functions), triggered by a button.
46
- - **Empty** (`@ngrok/mantle/empty`): Display a placeholder when there is no data or content to show. Also called: empty state, zero state.
47
- - **Field** (`@ngrok/mantle/field`): Layout primitive for a single form field: label, control, helper text, and error messaging stacked together with consistent spacing.
48
- - **Flag** (`@ngrok/mantle/flag`): Displays a flag as an SVG for the country code you pass.
49
- - **Hover Card** (`@ngrok/mantle/hover-card`): For sighted users to preview content available behind a link.
50
- - **Icon** (`@ngrok/mantle/icon`): Decorates an svg icon with automatic sizing. Useful when applying base styles to phosphor icons.
51
- - **Icon Button** (`@ngrok/mantle/button`): Initiates an action, such as completing a task or submitting information. Renders one icon and nothing else, with a required label prop that carries the accessible name.
52
- - **Icons** (`@ngrok/mantle/icons`): Custom icons used throughout ngrok UI.
53
- - **Input** (`@ngrok/mantle/input`): Fundamental component for inputs.
54
- - **Kbd** (`@ngrok/mantle/kbd`): A square, centered keyboard "key" chip for rendering keyboard shortcut hints.
55
- - **Label** (`@ngrok/mantle/label`): A Label represents a caption for an item in a user interface. Renders an accessible label associated with controls.
56
- - **Line Chart** (`@ngrok/mantle/line-chart`): A canvas-rendered line chart for trends over a continuous x axis — time above all. Min/max decimation keeps 100,000+ point series smooth.
57
- - **List** (`@ngrok/mantle/list`): A scrollable, optionally-virtualized list of clickable items.
58
- - **Live Region** (`@ngrok/mantle/live-region`): A persistent, visually hidden region that announces its text to screen readers when the text changes.
59
- - **Main** (`@ngrok/mantle/main`): A focusable `<main>` landmark for the page's primary content, designed to be paired with a skip link.
60
- - **Media Object** (`@ngrok/mantle/media-object`): The Media Object is an image/icon (media) to the left, with descriptive content (title and subtitle/description) to the right.
61
- - **Multi Select** (`@ngrok/mantle/multi-select`): A typeahead multi-select combobox that allows users to select multiple values with filtering. Selected values are displayed as removable tags.
62
- - **OTP Input** (`@ngrok/mantle/otp-input`): Accessible one-time passcode (OTP) input with paste, autofill, and IME support.
63
- - **Pagination** (`@ngrok/mantle/pagination`): Components and hooks for navigating through paged data with cursor-based and offset-based pagination strategies.
64
- - **Password Input** (`@ngrok/mantle/input`): Fundamental component for password inputs.
65
- - **Popover** (`@ngrok/mantle/popover`): Displays rich content in a portal, triggered by a button. Also called: popup.
66
- - **Progress Bar** (`@ngrok/mantle/progress`): Displays an indicator showing the completion progress of a task as a linear progress bar with customizable colors.
67
- - **Progress Donut** (`@ngrok/mantle/progress`): Displays an indicator showing the completion progress of a task as a circular progress bar.
22
+ - **Accordion** (`@ngrok/mantle/accordion`): A vertically stacked set of disclosure sections whose collapsed content stays in the DOM, so browser find-in-page (⌘F) can reveal it. Also called: collapsible, collapse, disclosure, expansion panel.
23
+ - **Alert** (`@ngrok/mantle/alert`): Displays a callout for user attention. Also called: callout, notice, admonition.
24
+ - **Alert Center** (`@ngrok/mantle/alert-center`): A single top-level bar that surfaces one-to-many account alerts and their upgrade CTAs, expanding additional alerts inline. Also called: banner, announcement bar, global banner.
25
+ - **Alert Dialog** (`@ngrok/mantle/alert-dialog`): A modal dialog that interrupts the user with important content and expects a response. Also called: confirm, confirmation, confirm dialog.
26
+ - **Anchor** (`@ngrok/mantle/anchor`): Fundamental component for rendering links to external addresses. Also called: link, hyperlink.
27
+ - **Area Chart** (`@ngrok/mantle/area-chart`): An area chart for showing how values (and, when stacked, a total and its parts) change over a continuous x axis. Also called: sparkline, area graph.
28
+ - **Avatar** (`@ngrok/mantle/avatar`): A small image representing a person or an account, with a text or icon fallback. Also called: profile picture, profile photo.
29
+ - **Badge** (`@ngrok/mantle/badge`): A non-interactive label used to highlight short, scannable information — a status, a category tag, or a count — in the smallest possible footprint. Also called: tag, chip, pill, lozenge.
30
+ - **Bar Chart** (`@ngrok/mantle/bar-chart`): A bar chart for comparing values across categories, with grouped and stacked variants. Also called: sparkline, bar graph, column chart, histogram.
31
+ - **Breadcrumb** (`@ngrok/mantle/breadcrumb`): Hierarchy-path navigation, an ordered list of links from a root to the current page, in a labeled nav landmark. Also called: breadcrumbs, crumbs.
32
+ - **Browser Only** (`@ngrok/mantle/browser-only`): A wrapper component that renders its children in the browser only, after hydration completes. Also called: client only, no ssr.
33
+ - **Button** (`@ngrok/mantle/button`): Initiates an action, such as completing a task or submitting information. Also called: cta, call to action.
34
+ - **Calendar** (`@ngrok/mantle/calendar`, preview): A calendar component that allows users to select a date or a range of dates. Also called: date picker, datepicker, date range picker.
35
+ - **Card** (`@ngrok/mantle/card`): A container used to display content in a box, resembling a physical card. Also called: panel, tile, paper.
36
+ - **Checkbox** (`@ngrok/mantle/checkbox`): A form control that allows the user to toggle between checked and not checked. Supports indeterminate state. Also called: check box, tickbox.
37
+ - **Choice** (`@ngrok/mantle/choice`): A reusable indicator-left / content-right layout for a single choice (a control beside a titled, multi-line label). Also called: checkbox with description, radio with description, switch with description.
38
+ - **Code** (`@ngrok/mantle/code`): Marks a short fragment of inline computer code — a function name, a variable, a CLI flag, a key. Also called: inline code, monospace.
39
+ - **Code Block** (`@ngrok/mantle/code-block`): Code blocks render and apply syntax highlighting to blocks of code using Shiki at build time. Also called: syntax highlighter, code snippet, code sample.
40
+ - **Combobox** (`@ngrok/mantle/combobox`): Fill in a React input field with autocomplete & autosuggest functionalities. Choose from a list of suggested values with full keyboard support. Also called: autocomplete, typeahead, searchable select, autosuggest.
41
+ - **Command** (`@ngrok/mantle/command`): A command palette that allows users to search and execute commands. Also called: command palette, command menu, cmdk, spotlight.
42
+ - **Data Table** (`@ngrok/mantle/data-table`): Tables purposefully designed for dynamic, application data with features like sorting, filtering, and pagination. Also called: data grid, datagrid, grid, sortable table.
43
+ - **Description List** (`@ngrok/mantle/description-list`): A semantically correct description list built on the HTML dl element. Renders a list of label/value pairs, commonly used in detail views to display metadata about a resource. Also called: key value list, definition list, property list.
44
+ - **Dialog** (`@ngrok/mantle/dialog`): A window overlaid on either the primary window or another dialog window, rendering the content underneath inert. Also called: modal, modal dialog.
45
+ - **Dropdown Menu** (`@ngrok/mantle/dropdown-menu`): Displays a menu to the user (such as a set of actions or functions), triggered by a button. Also called: menu, action menu, overflow menu, kebab menu, menu button.
46
+ - **Empty** (`@ngrok/mantle/empty`): Display a placeholder when there is no data or content to show. Also called: empty state, zero state, blank slate, no data, no results.
47
+ - **Field** (`@ngrok/mantle/field`): Layout primitive for a single form field: label, control, helper text, and error messaging stacked together with consistent spacing. Also called: form field, form group, form item.
48
+ - **Flag** (`@ngrok/mantle/flag`): Displays a flag as an SVG for the country code you pass. Also called: country flag.
49
+ - **Hover Card** (`@ngrok/mantle/hover-card`): For sighted users to preview content available behind a link. Also called: hovercard, link preview, preview card.
50
+ - **Icon** (`@ngrok/mantle/icon`): Decorates an svg icon with automatic sizing. Useful when applying base styles to phosphor icons. Also called: svg icon.
51
+ - **Icon Button** (`@ngrok/mantle/button`): Initiates an action, such as completing a task or submitting information. Renders one icon and nothing else, with a required label prop that carries the accessible name. Also called: icon only button, action icon.
52
+ - **Icons** (`@ngrok/mantle/icons`): Custom icons used throughout ngrok UI. Also called: icon set, icon library.
53
+ - **Input** (`@ngrok/mantle/input`): Fundamental component for inputs. Also called: text input, text field, textfield, textbox.
54
+ - **Kbd** (`@ngrok/mantle/kbd`): A square, centered keyboard "key" chip for rendering keyboard shortcut hints. Also called: keyboard shortcut, hotkey, keycap, keyboard key.
55
+ - **Label** (`@ngrok/mantle/label`): A Label represents a caption for an item in a user interface. Renders an accessible label associated with controls. Also called: form label.
56
+ - **Line Chart** (`@ngrok/mantle/line-chart`): A line chart for trends over a continuous x axis, time above all. Min/max decimation keeps 100,000+ point series smooth. Also called: sparkline, line graph, time series chart.
57
+ - **List** (`@ngrok/mantle/list`): A scrollable, optionally-virtualized list of clickable items. Also called: virtual list, virtualized list.
58
+ - **Live Region** (`@ngrok/mantle/live-region`): A persistent, visually hidden region that announces its text to screen readers when the text changes. Also called: aria live, announcer.
59
+ - **Main** (`@ngrok/mantle/main`): A focusable `<main>` landmark for the page's primary content, designed to be paired with a skip link. Also called: main landmark.
60
+ - **Media Object** (`@ngrok/mantle/media-object`): The Media Object is an image/icon (media) to the left, with descriptive content (title and subtitle/description) to the right. Also called: media block.
61
+ - **Multi Select** (`@ngrok/mantle/multi-select`): A typeahead multi-select combobox that allows users to select multiple values with filtering. Selected values are displayed as removable tags. Also called: tag input, tags input, multiple select, chip input.
62
+ - **OTP Input** (`@ngrok/mantle/otp-input`): Accessible one-time passcode (OTP) input with paste, autofill, and IME support. Also called: one time password, verification code, pin input, 2fa.
63
+ - **Pagination** (`@ngrok/mantle/pagination`): Components and hooks for navigating through paged data with cursor-based and offset-based pagination strategies. Also called: pager, paginator.
64
+ - **Password Input** (`@ngrok/mantle/input`): Fundamental component for password inputs. Also called: password field.
65
+ - **Popover** (`@ngrok/mantle/popover`): Displays rich content in a portal, triggered by a button. Also called: popup, flyout.
66
+ - **Progress Bar** (`@ngrok/mantle/progress`): Displays an indicator showing the completion progress of a task as a linear progress bar with customizable colors. Also called: linear progress, loading bar, meter.
67
+ - **Progress Donut** (`@ngrok/mantle/progress`): Displays an indicator showing the completion progress of a task as a circular progress bar. Also called: circular progress, progress ring, progress circle, radial progress.
68
68
  - **QR Code** (`@ngrok/mantle/qr-code`): Render a scannable QR code, optionally branded with a centered logo.
69
- - **Query** (`@ngrok/mantle/query`): A filter field where free text and key:value qualifiers interleave, with in-place highlighting and suggestions.
70
- - **Radio Group** (`@ngrok/mantle/radio-group`): A set of checkable buttons (known as radio buttons) where no more than one of the buttons can be checked at a time.
71
- - **Sandbar** (`@ngrok/mantle/sandbar`): A floating save bar for unsaved changes. Batch save form state with save and discard actions, announce pending state to screen readers, and block navigation until changes are resolved.
72
- - **SandboxedOnClick** (`@ngrok/mantle/sandboxed-on-click`): A container that prevents the click event from bubbling out of it.
73
- - **Scatter Plot** (`@ngrok/mantle/scatter-plot`): A canvas-rendered scatter plot for correlating two continuous measures (three with the rotatable 3D projection).
74
- - **Select** (`@ngrok/mantle/select`): Displays a list of options for the user to pick from—triggered by a button. Also called: dropdown.
75
- - **Selectable List** (`@ngrok/mantle/selectable-list`): A filterable, multi-select grid of checkbox rows.
76
- - **Separator** (`@ngrok/mantle/separator`): Visually or semantically separates content.
77
- - **Sheet** (`@ngrok/mantle/sheet`): A container that overlays the current view from the edge of the screen. Also called: drawer, side panel.
78
- - **Sidebar** (`@ngrok/mantle/sidebar`): A composable, collapsible app-navigation sidebar with a mobile sheet presentation and a trigger that mounts anywhere in your app shell.
79
- - **Skeleton** (`@ngrok/mantle/skeleton`): Use to show a placeholder while content is loading.
80
- - **Skip to Main Link** (`@ngrok/mantle/skip-to-main-link`): A visually-hidden-until-focused "skip link" that lets keyboard users jump to the page's main content landmark.
81
- - **Slider** (`@ngrok/mantle/slider`): An input where the user selects a value from within a given range.
82
- - **Slot** (`@ngrok/mantle/slot`): Merges its props onto its immediate child.
83
- - **Split Button** (`@ngrok/mantle/split-button`): A button group that pairs a one-click default action with a dropdown menu of related alternatives.
84
- - **Strata** (`@ngrok/mantle/strata`): A page of titled sections, each one explained beside its content — the shape of a settings page or a configuration editor.
85
- - **Switch** (`@ngrok/mantle/switch`): A form control that toggles one setting on or off. Unlike Checkbox, it has no indeterminate state. Also called: toggle.
86
- - **Table** (`@ngrok/mantle/table`): A structured way to display data in rows and columns.
87
- - **Tabs** (`@ngrok/mantle/tabs`): Layered sections of content, called tab panels, that show one at a time.
88
- - **Text Area** (`@ngrok/mantle/text-area`): A multi-line plain-text editing control.
89
- - **Theme** (`@ngrok/mantle/theme`): Theme primitives (ThemeProvider and FOUC prevention) for light and dark modes that follow the OS by default.
90
- - **Theme Switcher** (`@ngrok/mantle/theme-switcher`): The canonical light/dark toggle for headers and toolbars, plus the same toggle as one item for account menus.
91
- - **Toast** (`@ngrok/mantle/toast`): A succinct message that appears temporarily. Also called: notification, snackbar.
92
- - **Tooltip** (`@ngrok/mantle/tooltip`): A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.
93
- - **Truncated Text** (`@ngrok/mantle/truncated-text`): Renders one long opaque value on a single line and keeps its tail visible when it overflows.
94
- - **Visually Hidden** (`@ngrok/mantle/visually-hidden`): Render content that screen readers announce and sighted users never see.
95
- - **Well** (`@ngrok/mantle/well`): A recessed, inset container used to group and de-emphasize content.
69
+ - **Query** (`@ngrok/mantle/query`): A filter field where free text and key:value qualifiers interleave, with in-place highlighting and suggestions. Also called: search bar, search input, filter bar, filter syntax.
70
+ - **Radio Group** (`@ngrok/mantle/radio-group`): A set of checkable buttons (known as radio buttons) where no more than one of the buttons can be checked at a time. Also called: radio button, radio.
71
+ - **Sandbar** (`@ngrok/mantle/sandbar`): A floating save bar for unsaved changes. Batch save form state with save and discard actions, announce pending state to screen readers, and block navigation until changes are resolved. Also called: save bar, contextual save bar, unsaved changes.
72
+ - **SandboxedOnClick** (`@ngrok/mantle/sandboxed-on-click`): A container that prevents the click event from bubbling out of it. Also called: stop propagation.
73
+ - **Scatter Plot** (`@ngrok/mantle/scatter-plot`): A canvas-rendered scatter plot for correlating two continuous measures (three with the rotatable 3D projection). Also called: scatter chart, scatter graph.
74
+ - **Segmented Control** (`@ngrok/mantle/segmented-control`): A row of segments that switches between a few short options, like a view or an environment. A raised thumb slides to the checked segment. Also called: segmented button, view switcher, toggle group, button group radio.
75
+ - **Select** (`@ngrok/mantle/select`): Displays a list of options for the user to pick from—triggered by a button. Also called: dropdown, select box.
76
+ - **Selectable List** (`@ngrok/mantle/selectable-list`): A filterable, multi-select grid of checkbox rows. Also called: checkbox list, checklist.
77
+ - **Separator** (`@ngrok/mantle/separator`): Visually or semantically separates content. Also called: divider, horizontal rule, hr.
78
+ - **Sheet** (`@ngrok/mantle/sheet`): A container that overlays the current view from the edge of the screen. Also called: drawer, side panel, offcanvas, slide over.
79
+ - **Sidebar** (`@ngrok/mantle/sidebar`): A composable, collapsible app-navigation sidebar with a mobile sheet presentation and a trigger that mounts anywhere in your app shell. Also called: side nav, side navigation, navigation drawer.
80
+ - **Skeleton** (`@ngrok/mantle/skeleton`): Use to show a placeholder while content is loading. Also called: shimmer, loading placeholder, content loader.
81
+ - **Skip to Main Link** (`@ngrok/mantle/skip-to-main-link`): A visually-hidden-until-focused "skip link" that lets keyboard users jump to the page's main content landmark. Also called: skip link, skip nav.
82
+ - **Slider** (`@ngrok/mantle/slider`): An input where the user selects a value from within a given range. Also called: range slider, range input.
83
+ - **Slot** (`@ngrok/mantle/slot`): Merges its props onto its immediate child. Also called: as child, polymorphic.
84
+ - **Split Button** (`@ngrok/mantle/split-button`): A button group that pairs a one-click default action with a dropdown menu of related alternatives. Also called: dropdown button, split dropdown, combo button.
85
+ - **Strata** (`@ngrok/mantle/strata`): A page of titled sections, each one explained beside its content — the shape of a settings page or a configuration editor. Also called: settings page, settings layout.
86
+ - **Switch** (`@ngrok/mantle/switch`): A form control that toggles one setting on or off. Unlike Checkbox, it has no indeterminate state. Also called: toggle, toggle switch.
87
+ - **Table** (`@ngrok/mantle/table`): A structured way to display data in rows and columns. Also called: html table, basic table.
88
+ - **Tabs** (`@ngrok/mantle/tabs`): Layered sections of content, called tab panels, that show one at a time. Also called: tab bar, tab list, tab strip.
89
+ - **Text Area** (`@ngrok/mantle/text-area`): A multi-line plain-text editing control. Also called: multiline input, multiline text field.
90
+ - **Theme** (`@ngrok/mantle/theme`): Theme primitives (ThemeProvider and FOUC prevention) for light and dark modes that follow the OS by default. Also called: theme provider, color scheme.
91
+ - **Theme Switcher** (`@ngrok/mantle/theme-switcher`): The canonical light/dark toggle for headers and toolbars, plus the same toggle as one item for account menus. Also called: theme toggle, dark mode toggle, color mode toggle.
92
+ - **Toast** (`@ngrok/mantle/toast`): A succinct message that appears temporarily. Also called: notification, snackbar, toaster, flash message.
93
+ - **Tooltip** (`@ngrok/mantle/tooltip`): A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it. Also called: hint.
94
+ - **Truncated Text** (`@ngrok/mantle/truncated-text`): Renders one long opaque value on a single line and keeps its tail visible when it overflows. Also called: ellipsis, middle truncation, truncate.
95
+ - **Visually Hidden** (`@ngrok/mantle/visually-hidden`): Render content that screen readers announce and sighted users never see. Also called: sr only, screen reader only.
96
+ - **Well** (`@ngrok/mantle/well`): A recessed, inset container used to group and de-emphasize content. Also called: inset.
96
97
 
97
98
  ## Layouts
98
99
 
99
- - **App Layout** (`@ngrok/mantle/app-layout`): A viewport-locked application shell: a full-width notice strip, a toolbar header, and a rounded content card whose page region is the shell's only scroll container.
100
- - **Centered Layout** (`@ngrok/mantle/centered-layout`): A viewport-filling centered page flow, with utility header and footer strips around a growing, centered content region.
100
+ - **App Layout** (`@ngrok/mantle/app-layout`): A viewport-locked application shell: a full-width notice strip, a toolbar header, and a rounded content card whose page region is the shell's only scroll container. Also called: app shell, application shell, dashboard shell.
101
+ - **Centered Layout** (`@ngrok/mantle/centered-layout`): A viewport-filling centered page flow, with utility header and footer strips around a growing, centered content region. Also called: auth page, login page, sign in page.
101
102
 
102
103
  ## Hooks
103
104
 
@@ -191,6 +192,7 @@ Full text: https://mantle.ngrok.com/llms-full.txt
191
192
  - `@ngrok/mantle/sandbar`
192
193
  - `@ngrok/mantle/sandboxed-on-click`
193
194
  - `@ngrok/mantle/scatter-plot`
195
+ - `@ngrok/mantle/segmented-control`
194
196
  - `@ngrok/mantle/select`
195
197
  - `@ngrok/mantle/selectable-list`
196
198
  - `@ngrok/mantle/separator`
package/dist/main.d.ts CHANGED
@@ -1,3 +1,8 @@
1
+ /**
2
+ * Re-exports for the Main component.
3
+ *
4
+ * @see https://mantle.ngrok.com/components/primitives/main
5
+ */
1
6
  import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
2
7
  import { ComponentProps } from "react";
3
8
  /**
@@ -16,6 +21,13 @@ import { ComponentProps } from "react";
16
21
  * it on the `AppLayout.Content` card around the body. Focus then lands on an
17
22
  * element that cannot scroll, and the keyboard user is stranded.
18
23
  *
24
+ * @useWhen Mark the primary content of a page as a focusable `<main>` landmark that a skip link can
25
+ * move focus to.
26
+ *
27
+ * @siblings
28
+ * - `SkipToMainLink`: keyboard users need the link that jumps to the landmark.
29
+ * - `AppLayout`: the page sits in the app shell, where `AppLayout.Body` already renders the landmark.
30
+ *
19
31
  * @see https://mantle.ngrok.com/components/primitives/main
20
32
  *
21
33
  * @example
package/dist/mantle.css CHANGED
@@ -313,22 +313,36 @@ in a plain stylesheet (a third-party widget override) resolves to nothing.
313
313
  --ring-color-focus-warning: var(--ring-color-focus-warning);
314
314
  --ring-color-focus-success: var(--ring-color-focus-success);
315
315
 
316
- /* Chart series tokens — an ordered categorical palette for data visualization.
317
- Each theme file authors its own eight oklch() literals, measured so every
318
- pair of slots stays apart for full-color readers and for dichromats, and so
319
- every slot clears 3:1 on that theme's card surface. Assign slots to series in
320
- order and never re-assign a series' slot when others are filtered out; series
321
- beyond 8 use --color-chart-other, and a decorative chart paints every series
322
- with --color-chart-decorative. */
323
- --color-chart-1: var(--color-chart-1);
324
- --color-chart-2: var(--color-chart-2);
325
- --color-chart-3: var(--color-chart-3);
326
- --color-chart-4: var(--color-chart-4);
327
- --color-chart-5: var(--color-chart-5);
328
- --color-chart-6: var(--color-chart-6);
329
- --color-chart-7: var(--color-chart-7);
330
- --color-chart-8: var(--color-chart-8);
331
- --color-chart-other: var(--color-chart-other);
316
+ /* Chart series tokens: one for each mantle color name, the names Badge takes.
317
+ Each theme block sets them (the 600 step in light mode, the 500 step in dark
318
+ mode), and mantle does not guarantee that a set of names stays apart for a
319
+ color-blind reader. */
320
+ --color-chart-amber: var(--color-chart-amber);
321
+ --color-chart-blue: var(--color-chart-blue);
322
+ --color-chart-cyan: var(--color-chart-cyan);
323
+ --color-chart-emerald: var(--color-chart-emerald);
324
+ --color-chart-fuchsia: var(--color-chart-fuchsia);
325
+ --color-chart-gray: var(--color-chart-gray);
326
+ --color-chart-green: var(--color-chart-green);
327
+ --color-chart-indigo: var(--color-chart-indigo);
328
+ --color-chart-lime: var(--color-chart-lime);
329
+ --color-chart-orange: var(--color-chart-orange);
330
+ --color-chart-pink: var(--color-chart-pink);
331
+ --color-chart-purple: var(--color-chart-purple);
332
+ --color-chart-red: var(--color-chart-red);
333
+ --color-chart-rose: var(--color-chart-rose);
334
+ --color-chart-sky: var(--color-chart-sky);
335
+ --color-chart-teal: var(--color-chart-teal);
336
+ --color-chart-violet: var(--color-chart-violet);
337
+ --color-chart-yellow: var(--color-chart-yellow);
338
+ --color-chart-accent: var(--color-chart-accent);
339
+ --color-chart-danger: var(--color-chart-danger);
340
+ --color-chart-important: var(--color-chart-important);
341
+ --color-chart-info: var(--color-chart-info);
342
+ --color-chart-neutral: var(--color-chart-neutral);
343
+ --color-chart-success: var(--color-chart-success);
344
+ --color-chart-warning: var(--color-chart-warning);
345
+ /* The one fill every series wears on a decorative chart. */
332
346
  --color-chart-decorative: var(--color-chart-decorative);
333
347
  }
334
348
 
@@ -661,26 +675,38 @@ the app stylesheet in `<head>`. An app that `@import`ed `mantle-dark.css` after
661
675
  --color-card-border-muted: var(--color-neutral-200);
662
676
  --color-separator: --alpha(var(--color-gray-600) / 0.2);
663
677
 
664
- /* Chart series tokens — dark's eight marks, in slot order: blue, green, pink,
665
- red-orange, teal, magenta, violet, amber. A slot keeps its family across the
666
- themes. Nothing else carries over: this theme re-tunes lightness, chroma, and
667
- hue together against the dark card surface (neutral-100), so every slot is its
668
- own literal. Chroma moves the most — chart-6 gains 25% over light's — and
669
- chart-4's hue drifts 9.4 degrees. Measured on that surface: worst pair ΔE
670
- 15.07 for full-color vision, 9.55 under simulated protanopia or deuteranopia,
671
- 3.65:1 lowest contrast. */
672
- --color-chart-1: oklch(0.668 0.168 260.3); /* #5492fa */
673
- --color-chart-2: oklch(0.537 0.121 160.1); /* #018355 */
674
- --color-chart-3: oklch(0.627 0.242 6.7); /* #f41a70 */
675
- --color-chart-4: oklch(0.565 0.169 41.2); /* #c3490a */
676
- --color-chart-5: oklch(0.668 0.112 198.8); /* #0da9ae */
677
- --color-chart-6: oklch(0.584 0.261 332.9); /* #cc04bb */
678
- --color-chart-7: oklch(0.573 0.244 285.4); /* #744ffe */
679
- --color-chart-8: oklch(0.668 0.137 83.5); /* #bd8c01 */
680
- --color-chart-other: var(--color-neutral-500);
681
-
682
- /* The decorative-chart fill — this theme's neutral-200, which holds
683
- --text-color-muted at 4.93:1. See mantle.css for the derivation. */
678
+ /* Chart series tokens — one per mantle color name, each that color's 500
679
+ step, which clears 3:1 on the dark card. Light mode paints one step deeper.
680
+ Functional names alias the hue their status color uses. Neutral is the
681
+ color for an "Other" series. chart/tokens.test.ts measures every name. */
682
+ --color-chart-amber: var(--color-amber-500);
683
+ --color-chart-blue: var(--color-blue-500);
684
+ --color-chart-cyan: var(--color-cyan-500);
685
+ --color-chart-emerald: var(--color-emerald-500);
686
+ --color-chart-fuchsia: var(--color-fuchsia-500);
687
+ --color-chart-gray: var(--color-gray-500);
688
+ --color-chart-green: var(--color-green-500);
689
+ --color-chart-indigo: var(--color-indigo-500);
690
+ --color-chart-lime: var(--color-lime-500);
691
+ --color-chart-orange: var(--color-orange-500);
692
+ --color-chart-pink: var(--color-pink-500);
693
+ --color-chart-purple: var(--color-purple-500);
694
+ --color-chart-red: var(--color-red-500);
695
+ --color-chart-rose: var(--color-rose-500);
696
+ --color-chart-sky: var(--color-sky-500);
697
+ --color-chart-teal: var(--color-teal-500);
698
+ --color-chart-violet: var(--color-violet-500);
699
+ --color-chart-yellow: var(--color-yellow-500);
700
+ --color-chart-accent: var(--color-chart-sky);
701
+ --color-chart-danger: var(--color-chart-rose);
702
+ --color-chart-important: var(--color-chart-purple);
703
+ --color-chart-info: var(--color-chart-sky);
704
+ --color-chart-neutral: var(--color-neutral-500);
705
+ --color-chart-success: var(--color-chart-emerald);
706
+ --color-chart-warning: var(--color-chart-amber);
707
+
708
+ /* The fill of a decorative chart: this theme's neutral-200, which holds
709
+ --text-color-muted at 4.93:1. The LIGHT DEFS block gives the derivation. */
684
710
  --color-chart-decorative: var(--color-neutral-200);
685
711
 
686
712
  --text-color-strong: #fff;
@@ -822,28 +848,43 @@ from `:root` (see MARK: INVERT THEME below).
822
848
  --color-selected-menu-item: --alpha(var(--color-accent-500) / 0.1);
823
849
  --color-active-selected-menu-item: --alpha(var(--color-accent-500) / 0.15);
824
850
 
825
- /* Chart series tokens — light's eight marks, in slot order: blue, green, pink,
826
- red-orange, teal, magenta, violet, amber. Each is a bespoke oklch() literal,
827
- tuned so all 28 pairs clear the gates; the ramp steps this replaced held only
828
- the adjacent ones. Measured on the white card surface: worst pair ΔE 15.47 for
829
- full-color vision, 9.58 under simulated protanopia or deuteranopia, 3.61:1
830
- lowest contrast. chart/tokens.test.ts re-measures every number here. */
831
- --color-chart-1: oklch(0.622 0.203 259); /* #2d81fe */
832
- --color-chart-2: oklch(0.478 0.106 159.7); /* #086f47 */
833
- --color-chart-3: oklch(0.644 0.258 1.2); /* #fd0983 */
834
- --color-chart-4: oklch(0.519 0.192 31.8); /* #be2409 */
835
- --color-chart-5: oklch(0.611 0.103 204.6); /* #0895a0 */
836
- --color-chart-6: oklch(0.501 0.208 334.3); /* #a31992 */
837
- --color-chart-7: oklch(0.473 0.227 290.6); /* #632bce */
838
- --color-chart-8: oklch(0.621 0.125 80.1); /* #ad7d0f */
839
- --color-chart-other: var(--color-neutral-500);
840
-
841
- /* The fill every series wears on a decorative chart, in place of its categorical
842
- slot. It is neutral because a placeholder encodes no series identity, and it is
851
+ /* Chart series tokens — one per mantle color name, each that color's 600
852
+ step: one step deeper than dark mode's 500, because the 500 steps read
853
+ washed out on white. Only yellow stays under 3:1 here, at 2.94:1. Functional
854
+ names alias the hue their status color uses. Neutral is the color for an
855
+ "Other" series. chart/tokens.test.ts measures every name. */
856
+ --color-chart-amber: var(--color-amber-600);
857
+ --color-chart-blue: var(--color-blue-600);
858
+ --color-chart-cyan: var(--color-cyan-600);
859
+ --color-chart-emerald: var(--color-emerald-600);
860
+ --color-chart-fuchsia: var(--color-fuchsia-600);
861
+ --color-chart-gray: var(--color-gray-600);
862
+ --color-chart-green: var(--color-green-600);
863
+ --color-chart-indigo: var(--color-indigo-600);
864
+ --color-chart-lime: var(--color-lime-600);
865
+ --color-chart-orange: var(--color-orange-600);
866
+ --color-chart-pink: var(--color-pink-600);
867
+ --color-chart-purple: var(--color-purple-600);
868
+ --color-chart-red: var(--color-red-600);
869
+ --color-chart-rose: var(--color-rose-600);
870
+ --color-chart-sky: var(--color-sky-600);
871
+ --color-chart-teal: var(--color-teal-600);
872
+ --color-chart-violet: var(--color-violet-600);
873
+ --color-chart-yellow: var(--color-yellow-600);
874
+ --color-chart-accent: var(--color-chart-sky);
875
+ --color-chart-danger: var(--color-chart-rose);
876
+ --color-chart-important: var(--color-chart-purple);
877
+ --color-chart-info: var(--color-chart-sky);
878
+ --color-chart-neutral: var(--color-neutral-600);
879
+ --color-chart-success: var(--color-chart-emerald);
880
+ --color-chart-warning: var(--color-chart-amber);
881
+
882
+ /* The fill every series wears on a decorative chart, in place of its own
883
+ color. It is neutral because a placeholder encodes no series identity, and it is
843
884
  this light because the message laid over it must stay readable: --text-color-muted
844
885
  over neutral-200 measures 4.56:1 here, and neutral-300 drops it to 4.24:1 — under
845
886
  the 4.5:1 floor for 14px text. Each theme aliases its own neutral-200, and
846
- chart/decorative-contrast.test.tsx measures all four. */
887
+ chart/decorative-contrast.test.tsx measures both. */
847
888
  --color-chart-decorative: var(--color-neutral-200);
848
889
 
849
890
  --text-color-strong: var(--color-neutral-950);
@@ -1877,14 +1918,17 @@ pre[data-slot="code-block-code"]:has(.mantle-code-fold-toggle)
1877
1918
 
1878
1919
  /*
1879
1920
  * The new snapshot is live, so a color transition would fade inside the circle
1880
- * while the rest of the page shows the new theme. Stop transitions during the
1881
- * swap. The icon of the switcher and each `ThemeSwitcherIcon` keep their own swap.
1921
+ * while the rest of the page shows the new theme. The swap cancels those
1922
+ * transitions in script. On a page that holds many transitions it sets this
1923
+ * attribute, and this rule stops them. The rule restyles every element, so the
1924
+ * swap does not use it on other pages. The icon of the switcher and each
1925
+ * `ThemeSwitcherIcon` keep their own swap.
1882
1926
  */
1883
- :root[data-theme-transition]
1927
+ :root[data-theme-transition-many]
1884
1928
  :not([data-slot~="theme-switcher"] *, [data-slot~="theme-switcher-icon"] *),
1885
- :root[data-theme-transition]
1929
+ :root[data-theme-transition-many]
1886
1930
  :not([data-slot~="theme-switcher"] *, [data-slot~="theme-switcher-icon"] *)::before,
1887
- :root[data-theme-transition]
1931
+ :root[data-theme-transition-many]
1888
1932
  :not([data-slot~="theme-switcher"] *, [data-slot~="theme-switcher-icon"] *)::after {
1889
1933
  transition: none !important;
1890
1934
  }
@@ -1893,15 +1937,16 @@ pre[data-slot="code-block-code"]:has(.mantle-code-fold-toggle)
1893
1937
  * A dialog or a menu that closes as the swap starts, such as a command
1894
1938
  * palette, would freeze in the old snapshot outside the circle. Without an
1895
1939
  * exit animation it unmounts before the snapshot. The dialog positioner
1896
- * animates only to hold the exit, so it stops too.
1940
+ * animates only to hold the exit, so it stops too. The swap marks each
1941
+ * surface that is open when it starts: a rule under the root attribute would
1942
+ * restyle every element that has a `data-slot`.
1897
1943
  */
1898
- :root[data-theme-transition]
1899
- :is(
1944
+ :is(
1900
1945
  [data-slot~="dialog-overlay"],
1901
1946
  [data-slot~="dialog-content"],
1902
1947
  [data-slot~="dropdown-menu-content"],
1903
1948
  [data-slot~="dropdown-menu-sub-content"]
1904
- )[data-state="closed"],
1905
- :root[data-theme-transition] [data-slot~="dialog-positioner"] {
1949
+ )[data-theme-transition][data-state="closed"],
1950
+ [data-slot~="dialog-positioner"][data-theme-transition] {
1906
1951
  animation: none !important;
1907
1952
  }
@@ -1,3 +1,8 @@
1
+ /**
2
+ * Re-exports for the Media Object component.
3
+ *
4
+ * @see https://mantle.ngrok.com/components/structure/media-object
5
+ */
1
6
  import { n as WithAsChild } from "./as-child-DFxX3U2i.js";
2
7
  import { t as WithDataSlot } from "./data-slot-B-LqAcBB.js";
3
8
  import { ComponentProps } from "react";
@@ -84,6 +89,13 @@ declare const Content: ({ asChild, className, children, "data-slot": dataSlot, r
84
89
  * **Polymorphism.** Each part accepts `asChild` for swapping the rendered
85
90
  * element (e.g. render `Root` as an `<a>` to make the whole row clickable).
86
91
  *
92
+ * @useWhen Put an image, an avatar, or an icon beside a title and a description, such as in a
93
+ * comment or a list row.
94
+ *
95
+ * @siblings
96
+ * - `Card`: the content needs a raised box with a border.
97
+ * - `Choice`: the thing beside the text is a checkbox, a radio, or a switch.
98
+ *
87
99
  * @see https://mantle.ngrok.com/components/structure/media-object
88
100
  *
89
101
  * @example