@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.
- package/dist/accordion.d.ts +13 -1
- package/dist/accordion.js +1 -1
- package/dist/agent.json +1181 -36
- package/dist/alert-CH99Rw-R.js +1 -0
- package/dist/{alert-BcSBNR3S.d.ts → alert-HffaioZM.d.ts} +31 -21
- package/dist/alert-center.d.ts +15 -3
- package/dist/alert-center.js +1 -1
- package/dist/alert-dialog.d.ts +15 -2
- package/dist/alert-dialog.js +1 -1
- package/dist/alert.d.ts +6 -1
- package/dist/alert.js +1 -1
- package/dist/anchor.d.ts +12 -0
- package/dist/app-layout.d.ts +16 -1
- package/dist/app-layout.js +1 -1
- package/dist/area-chart.d.ts +144 -88
- package/dist/area-chart.js +1 -1
- package/dist/avatar.d.ts +12 -0
- package/dist/badge.d.ts +13 -1
- package/dist/bar-chart.d.ts +144 -89
- package/dist/bar-chart.js +1 -1
- package/dist/breadcrumb.d.ts +11 -0
- package/dist/breadcrumb.js +1 -1
- package/dist/browser-only.d.ts +8 -0
- package/dist/{button-Yxyu1XMd.d.ts → button-BGwOPjGV.d.ts} +7 -1
- package/dist/{button-B8k98Pby.js → button-BWGUuWnu.js} +1 -1
- package/dist/{button-CPsKGDK0.d.ts → button-Cgf2IcEC.d.ts} +8 -1
- package/dist/button-Cu9e3SM7.js +1 -0
- package/dist/{button-BX-4lYUn.d.ts → button-K0pKc3GN.d.ts} +3 -3
- package/dist/button.d.ts +9 -3
- package/dist/button.js +1 -1
- package/dist/calendar.d.ts +7 -0
- package/dist/calendar.js +1 -1
- package/dist/card.d.ts +6 -1
- package/dist/centered-layout.d.ts +11 -0
- package/dist/chart-BO9EwQ60.js +1 -0
- package/dist/chart-CE5Uaqz9.js +1 -0
- package/dist/chart-DCTGGlWL.js +1 -0
- package/dist/chart-DudCw24t.js +2 -0
- package/dist/{chart-BpfbtOUN.d.ts → chart-jitNqimS.d.ts} +99 -103
- package/dist/{checkbox-DmSQXs26.js → checkbox-CS504fKk.js} +1 -1
- package/dist/checkbox.d.ts +14 -1
- package/dist/checkbox.js +1 -1
- package/dist/{choice-BLR0_MeB.d.ts → choice-BwfmbepO.d.ts} +7 -1
- package/dist/choice-uyYccm0A.js +1 -0
- package/dist/choice.d.ts +6 -1
- package/dist/choice.js +1 -1
- package/dist/code-block.d.ts +13 -2
- package/dist/code-block.js +1 -1
- package/dist/code-block_highlight-utils.d.ts +5 -0
- package/dist/code.d.ts +13 -0
- package/dist/color-CHZbU1Ww.js +1 -0
- package/dist/color.js +1 -1
- package/dist/combobox.d.ts +28 -14
- package/dist/combobox.js +1 -1
- package/dist/command.d.ts +14 -2
- package/dist/command.js +1 -1
- package/dist/cx.js +1 -1
- package/dist/data-table.d.ts +50 -19
- package/dist/data-table.js +1 -1
- package/dist/description-list.d.ts +12 -1
- package/dist/dialog-B9JAGy_x.d.ts +28 -0
- package/dist/{dialog-7TUgiSzX.js → dialog-CsugEt2A.js} +1 -1
- package/dist/{dialog-2fRO4ca4.d.ts → dialog-DD5H3EH1.d.ts} +10 -2
- package/dist/dialog.d.ts +7 -2
- package/dist/dialog.js +1 -1
- package/dist/dropdown-menu-DHdgaw4P.js +1 -0
- package/dist/{dropdown-menu-CpjRwMWe.d.ts → dropdown-menu-DmDxYPde.d.ts} +34 -26
- package/dist/dropdown-menu.d.ts +6 -1
- package/dist/dropdown-menu.js +1 -1
- package/dist/empty.d.ts +5 -0
- package/dist/empty.js +1 -1
- package/dist/{field-V_gnkcmN.d.ts → field-BshcNVe_.d.ts} +1 -1
- package/dist/field.d.ts +17 -6
- package/dist/field.js +1 -1
- package/dist/flag.d.ts +8 -0
- package/dist/hooks.d.ts +5 -0
- package/dist/hooks.js +1 -1
- package/dist/hover-card.d.ts +23 -12
- package/dist/{icon-ByLVhdYq.d.ts → icon-NYvyyRMG.d.ts} +6 -0
- package/dist/icon.d.ts +7 -2
- package/dist/icon.js +1 -1
- package/dist/{icons-DP3lQw5O.js → icons-4JA-SGfv.js} +1 -1
- package/dist/icons.d.ts +13 -1
- package/dist/icons.js +1 -1
- package/dist/{index-BhfgyurF.d.ts → index-KJ06KK6t.d.ts} +3 -3
- package/dist/input-BjCDSOPA.js +1 -0
- package/dist/input-DHovzBjS.js +1 -0
- package/dist/{input-Dx5owTCc.d.ts → input-q8o5uMhW.d.ts} +11 -1
- package/dist/input.d.ts +34 -2
- package/dist/input.js +1 -1
- package/dist/kbd.d.ts +12 -0
- package/dist/{label-nHqqYS7e.js → label-DmDwzPD8.js} +1 -1
- package/dist/{label-Dn5CPJUj.d.ts → label-r2sJcSQ4.d.ts} +6 -0
- package/dist/label.d.ts +6 -1
- package/dist/label.js +1 -1
- package/dist/line-chart.d.ts +139 -82
- package/dist/line-chart.js +1 -1
- package/dist/{list-RFRIQxU2.js → list-CO_yLdln.js} +1 -1
- package/dist/list.d.ts +19 -1
- package/dist/list.js +1 -1
- package/dist/live-region.d.ts +14 -1
- package/dist/llms.txt +78 -76
- package/dist/main.d.ts +12 -0
- package/dist/mantle.css +110 -65
- package/dist/media-object.d.ts +12 -0
- package/dist/migrations/0014-chart-named-colors.yml +1389 -0
- package/dist/migrations/0015-segmented-control.yml +788 -0
- package/dist/multi-select.d.ts +15 -2
- package/dist/multi-select.js +1 -1
- package/dist/otp-input.d.ts +17 -5
- package/dist/otp-input.js +1 -1
- package/dist/pagination.d.ts +92 -3
- package/dist/pagination.js +1 -1
- package/dist/popover-BhTFutCz.d.ts +1 -0
- package/dist/{popover-BfB2I9G0.d.ts → popover-lwkwWcRW.d.ts} +16 -7
- package/dist/popover.d.ts +7 -2
- package/dist/progress.d.ts +27 -10
- package/dist/progress.js +1 -1
- package/dist/qr-code.d.ts +9 -1
- package/dist/query.d.ts +2 -2
- package/dist/query.js +1 -1
- package/dist/radio-group-jj2abc0t.js +1 -0
- package/dist/radio-group-sLz5AA9I.d.ts +27 -0
- package/dist/radio-group.d.ts +20 -99
- package/dist/radio-group.js +1 -1
- package/dist/sandbar.d.ts +14 -1
- package/dist/sandbar.js +1 -1
- package/dist/sandboxed-on-click.d.ts +8 -0
- package/dist/scatter-plot.d.ts +126 -64
- package/dist/scatter-plot.js +1 -1
- package/dist/segmented-control.d.ts +136 -0
- package/dist/segmented-control.js +1 -0
- package/dist/{select-BkhBxtOT.d.ts → select-BqmpVJJT.d.ts} +29 -21
- package/dist/select-C6Su0dU0.js +1 -0
- package/dist/select.d.ts +6 -1
- package/dist/select.js +1 -1
- package/dist/selectable-list.d.ts +13 -2
- package/dist/selectable-list.js +1 -1
- package/dist/{separator-D9AWEkcJ.d.ts → separator-QfH0ot5K.d.ts} +3 -1
- package/dist/separator.d.ts +6 -1
- package/dist/{sheet-CSJc_sB4.js → sheet-Bd2LIhzF.js} +1 -1
- package/dist/sheet.d.ts +15 -2
- package/dist/sheet.js +1 -1
- package/dist/sidebar.d.ts +19 -3
- package/dist/sidebar.js +1 -1
- package/dist/skeleton.d.ts +11 -0
- package/dist/skip-to-main-link.d.ts +11 -0
- package/dist/skip-to-main-link.js +1 -1
- package/dist/slider.d.ts +10 -0
- package/dist/{slot-C0OCJjdJ.d.ts → slot-D12N_fZJ.d.ts} +3 -1
- package/dist/slot.d.ts +6 -1
- package/dist/split-button.d.ts +14 -3
- package/dist/split-button.js +1 -1
- package/dist/strata.d.ts +13 -0
- package/dist/switch.d.ts +13 -1
- package/dist/switch.js +1 -1
- package/dist/{table-vT6Okwfa.d.ts → table-rWiVWEgB.d.ts} +79 -0
- package/dist/table.d.ts +6 -1
- package/dist/tabs.d.ts +23 -11
- package/dist/tabs.js +1 -1
- package/dist/text-area.d.ts +11 -1
- package/dist/theme-DdZgLvKH.js +1 -0
- package/dist/theme-switcher.d.ts +16 -2
- package/dist/theme-switcher.js +1 -1
- package/dist/theme.d.ts +12 -0
- package/dist/theme.js +1 -1
- package/dist/toast.d.ts +14 -1
- package/dist/toast.js +1 -1
- package/dist/{tooltip-NcLIeBy5.d.ts → tooltip-CpK3XTor.d.ts} +15 -8
- package/dist/tooltip.d.ts +6 -1
- package/dist/truncated-text.d.ts +27 -13
- package/dist/truncated-text.js +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/dist/use-inert-siblings-CNmNuS2h.js +1 -0
- package/dist/use-swipe-to-dismiss-i__cTF2v.js +1 -0
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/dist/visually-hidden.d.ts +13 -0
- package/dist/well.d.ts +6 -1
- package/package.json +6 -6
- package/src/components/chart/d3-license.md +25 -0
- package/dist/alert-P9lwn25X.js +0 -1
- package/dist/button-Dge0D5bl.js +0 -1
- package/dist/chart-BpWfQAwf.js +0 -2
- package/dist/choice-2Lrv8_nl.js +0 -1
- package/dist/dialog-Dp0QGWwo.d.ts +0 -28
- package/dist/dropdown-menu-BHBzCDSZ.js +0 -1
- package/dist/input-CpQ6jlpI.js +0 -1
- package/dist/popover-C96V8SXi.d.ts +0 -1
- package/dist/select-CAAYk4Yj.js +0 -1
- package/dist/theme-C-glc5Q-.js +0 -1
- package/dist/use-swipe-to-dismiss-DceYk1Id.js +0 -1
package/dist/live-region.d.ts
CHANGED
|
@@ -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/
|
|
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.
|
|
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`):
|
|
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
|
|
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
|
|
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
|
-
- **
|
|
75
|
-
- **
|
|
76
|
-
- **
|
|
77
|
-
- **
|
|
78
|
-
- **
|
|
79
|
-
- **
|
|
80
|
-
- **
|
|
81
|
-
- **
|
|
82
|
-
- **
|
|
83
|
-
- **
|
|
84
|
-
- **
|
|
85
|
-
- **
|
|
86
|
-
- **
|
|
87
|
-
- **
|
|
88
|
-
- **
|
|
89
|
-
- **
|
|
90
|
-
- **Theme
|
|
91
|
-
- **
|
|
92
|
-
- **
|
|
93
|
-
- **
|
|
94
|
-
- **
|
|
95
|
-
- **
|
|
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
|
|
317
|
-
Each theme
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
--color-chart-
|
|
324
|
-
--color-chart-
|
|
325
|
-
--color-chart-
|
|
326
|
-
--color-chart-
|
|
327
|
-
--color-chart-
|
|
328
|
-
--color-chart-
|
|
329
|
-
--color-chart-
|
|
330
|
-
--color-chart-
|
|
331
|
-
--color-chart-
|
|
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 —
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
--color-chart-
|
|
673
|
-
--color-chart-
|
|
674
|
-
--color-chart-
|
|
675
|
-
--color-chart-
|
|
676
|
-
--color-chart-
|
|
677
|
-
--color-chart-
|
|
678
|
-
--color-chart-
|
|
679
|
-
--color-chart-
|
|
680
|
-
--color-chart-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
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 —
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
--color-chart-
|
|
832
|
-
--color-chart-
|
|
833
|
-
--color-chart-
|
|
834
|
-
--color-chart-
|
|
835
|
-
--color-chart-
|
|
836
|
-
--color-chart-
|
|
837
|
-
--color-chart-
|
|
838
|
-
--color-chart-
|
|
839
|
-
--color-chart-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
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
|
|
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.
|
|
1881
|
-
*
|
|
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
|
-
:
|
|
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
|
-
|
|
1949
|
+
)[data-theme-transition][data-state="closed"],
|
|
1950
|
+
[data-slot~="dialog-positioner"][data-theme-transition] {
|
|
1906
1951
|
animation: none !important;
|
|
1907
1952
|
}
|
package/dist/media-object.d.ts
CHANGED
|
@@ -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
|