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