@ngrok/mantle 0.93.7 → 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 +73 -21
- package/dist/accordion.js +1 -1
- package/dist/agent.json +1234 -84
- package/dist/alert-BkJHDx9X.js +1 -0
- package/dist/{alert-BcSBNR3S.d.ts → alert-D0zRRUHV.d.ts} +35 -25
- package/dist/alert-center.d.ts +67 -55
- package/dist/alert-center.js +1 -1
- package/dist/alert-dialog.d.ts +35 -10
- package/dist/alert-dialog.js +1 -1
- package/dist/alert.d.ts +6 -1
- package/dist/alert.js +1 -1
- package/dist/anchor-Dc6IgvXV.js +1 -0
- package/dist/anchor.d.ts +17 -5
- package/dist/anchor.js +1 -1
- package/dist/app-layout.d.ts +33 -18
- package/dist/app-layout.js +1 -1
- package/dist/area-chart.d.ts +153 -97
- package/dist/area-chart.js +1 -1
- package/dist/avatar.d.ts +36 -24
- package/dist/avatar.js +1 -1
- package/dist/badge.d.ts +19 -7
- package/dist/badge.js +1 -1
- package/dist/bar-chart.d.ts +155 -100
- package/dist/bar-chart.js +1 -1
- package/dist/breadcrumb.d.ts +47 -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.d.ts +8 -0
- package/dist/browser-only.js +1 -1
- package/dist/{button-BX-4lYUn.d.ts → button-5Pc7Mby_.d.ts} +4 -4
- package/dist/button-B9bChDgl.js +1 -0
- package/dist/button-D8jixIbH.js +1 -0
- package/dist/button-DNLTJ32M.js +1 -0
- package/dist/{button-CPsKGDK0.d.ts → button-Ddj6yr10.d.ts} +34 -27
- package/dist/{button-Yxyu1XMd.d.ts → button-DnYv7IOT.d.ts} +29 -22
- package/dist/button.d.ts +9 -3
- package/dist/button.js +1 -1
- package/dist/calendar.d.ts +8 -1
- package/dist/calendar.js +1 -1
- package/dist/card.d.ts +7 -2
- package/dist/card.js +1 -1
- package/dist/centered-layout.d.ts +34 -23
- package/dist/centered-layout.js +1 -1
- package/dist/chart-BLCqzt56.js +1 -0
- package/dist/chart-CChZiCrt.js +1 -0
- package/dist/chart-CUmSu9d7.js +1 -0
- package/dist/{chart-BpfbtOUN.d.ts → chart-Dl8gFo_D.d.ts} +117 -121
- package/dist/chart-DtgZBAas.js +2 -0
- package/dist/checkbox-Cu5cgZmk.js +1 -0
- package/dist/checkbox.d.ts +15 -2
- package/dist/checkbox.js +1 -1
- package/dist/choice-CCVG2hb9.js +1 -0
- package/dist/{choice-BLR0_MeB.d.ts → choice-CNiOSzqV.d.ts} +26 -20
- package/dist/choice.d.ts +6 -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 +28 -19
- package/dist/code-block.js +1 -1
- package/dist/code-block_highlight-utils.d.ts +6 -1
- package/dist/code-block_highlight-utils.js +1 -1
- package/dist/code.d.ts +16 -3
- package/dist/code.js +1 -1
- package/dist/color-CHZbU1Ww.js +1 -0
- package/dist/color.js +1 -1
- package/dist/combobox.d.ts +42 -28
- package/dist/combobox.js +1 -1
- package/dist/command.d.ts +59 -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/cx.js +1 -1
- package/dist/{data-slot-B-LqAcBB.d.ts → data-slot-BW8KQ9Xo.d.ts} +2 -2
- package/dist/data-table.d.ts +83 -52
- package/dist/data-table.js +1 -1
- package/dist/description-list.d.ts +13 -2
- package/dist/description-list.js +1 -1
- package/dist/{dialog-2fRO4ca4.d.ts → dialog-CIEuwNys.d.ts} +32 -8
- package/dist/dialog-CbEEA0fl.d.ts +32 -0
- package/dist/dialog-DmzoDfY3.js +1 -0
- package/dist/dialog.d.ts +7 -2
- package/dist/dialog.js +1 -1
- package/dist/{dropdown-menu-CpjRwMWe.d.ts → dropdown-menu-CeY498yk.d.ts} +41 -33
- package/dist/dropdown-menu-uheL0prz.js +1 -0
- package/dist/dropdown-menu.d.ts +6 -1
- package/dist/dropdown-menu.js +1 -1
- package/dist/empty.d.ts +7 -2
- package/dist/empty.js +1 -1
- package/dist/field-Bpvn4tQp.js +1 -0
- package/dist/{field-V_gnkcmN.d.ts → field-BshcNVe_.d.ts} +1 -1
- package/dist/field-Cai_4c1l.js +1 -0
- package/dist/field.d.ts +53 -42
- package/dist/field.js +1 -1
- package/dist/flag.d.ts +11 -3
- package/dist/flag.js +1 -1
- package/dist/hooks.d.ts +35 -10
- package/dist/hooks.js +1 -1
- package/dist/hover-card.d.ts +25 -14
- package/dist/hover-card.js +1 -1
- package/dist/{icon-CgNqu-fl.d.ts → icon--purqHRo.d.ts} +1 -1
- package/dist/{icon-ByLVhdYq.d.ts → icon-DuIYoyft.d.ts} +8 -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 +8 -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 +13 -1
- package/dist/icons.js +1 -1
- package/dist/{in-view-B3nMAzfE.d.ts → in-view-C_daNafg.d.ts} +4 -23
- package/dist/{index-BhfgyurF.d.ts → index-KJ06KK6t.d.ts} +3 -3
- package/dist/input-BjCDSOPA.js +1 -0
- package/dist/{input-Dx5owTCc.d.ts → input-DC4nW0Sr.d.ts} +12 -2
- package/dist/input-fW8QSZEO.js +1 -0
- package/dist/input.d.ts +37 -5
- package/dist/input.js +1 -1
- package/dist/kbd-P1nQshWo.js +1 -0
- package/dist/kbd.d.ts +17 -5
- package/dist/kbd.js +1 -1
- package/dist/label-DO1RlMKl.js +1 -0
- package/dist/{label-Dn5CPJUj.d.ts → label-epgtywRz.d.ts} +14 -8
- package/dist/label.d.ts +6 -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 +147 -90
- package/dist/line-chart.js +1 -1
- package/dist/list-cQZPSjfz.js +1 -0
- package/dist/list.d.ts +34 -16
- package/dist/list.js +1 -1
- package/dist/live-region-Dhapu8a5.js +1 -0
- package/dist/live-region.d.ts +15 -2
- package/dist/live-region.js +1 -1
- package/dist/llms.txt +82 -79
- package/dist/main-CHyWYDak.js +1 -0
- package/dist/main.d.ts +13 -1
- package/dist/main.js +1 -1
- package/dist/mantle.css +133 -88
- package/dist/media-object.d.ts +16 -4
- package/dist/media-object.js +1 -1
- 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 +42 -29
- package/dist/multi-select.js +1 -1
- package/dist/otp-input.d.ts +20 -8
- package/dist/otp-input.js +1 -1
- package/dist/pagination.d.ts +93 -4
- package/dist/pagination.js +1 -1
- package/dist/{popover-BfB2I9G0.d.ts → popover-Bei0jyfH.d.ts} +87 -12
- package/dist/popover-DhgunktK.js +1 -0
- package/dist/popover-T2EyaqGK.d.ts +1 -0
- package/dist/popover.d.ts +7 -2
- package/dist/popover.js +1 -1
- package/dist/primitive-D8CzV_Ft.js +1 -0
- package/dist/progress.d.ts +28 -11
- package/dist/progress.js +1 -1
- package/dist/qr-code.d.ts +11 -3
- package/dist/qr-code.js +1 -1
- package/dist/query-filter.d.ts +6 -6
- package/dist/query.d.ts +9 -4
- package/dist/query.js +1 -1
- package/dist/radio-group-BJQ6EOqh.d.ts +27 -0
- package/dist/radio-group-BliblUqe.js +1 -0
- package/dist/radio-group-ggEkCi0V.js +1 -0
- package/dist/radio-group.d.ts +21 -100
- package/dist/radio-group.js +1 -1
- package/dist/sandbar.d.ts +43 -30
- package/dist/sandbar.js +1 -1
- package/dist/sandboxed-on-click-D4PL5_GR.js +1 -0
- package/dist/sandboxed-on-click.d.ts +8 -0
- package/dist/sandboxed-on-click.js +1 -1
- package/dist/scatter-plot.d.ts +137 -76
- 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-1xuUx_os.js +1 -0
- package/dist/{select-BkhBxtOT.d.ts → select-BpaXHxJm.d.ts} +33 -25
- package/dist/select.d.ts +6 -1
- package/dist/select.js +1 -1
- package/dist/selectable-list.d.ts +29 -18
- package/dist/selectable-list.js +1 -1
- package/dist/{separator-D9AWEkcJ.d.ts → separator-Ck4sPrdN.d.ts} +4 -2
- package/dist/separator-DnvhwY2J.js +1 -0
- package/dist/separator.d.ts +6 -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 +36 -7
- package/dist/sheet.js +1 -1
- package/dist/sidebar.d.ts +53 -37
- package/dist/sidebar.js +1 -1
- package/dist/skeleton-DHfyjuQi.js +1 -0
- package/dist/skeleton.d.ts +15 -4
- package/dist/skeleton.js +1 -1
- package/dist/skip-to-main-link.d.ts +12 -1
- package/dist/skip-to-main-link.js +1 -1
- package/dist/slider.d.ts +11 -1
- package/dist/slider.js +1 -1
- package/dist/slot-B7rwscwd.js +1 -0
- package/dist/{slot-C0OCJjdJ.d.ts → slot-BEMQMbk3.d.ts} +6 -4
- package/dist/slot.d.ts +6 -1
- package/dist/slot.js +1 -1
- package/dist/source-all.css +5 -1
- package/dist/split-button.d.ts +20 -9
- package/dist/split-button.js +1 -1
- package/dist/strata.d.ts +35 -22
- package/dist/strata.js +1 -1
- package/dist/{suggestions-NkqYTT49.d.ts → suggestions-BJeGvwDa.d.ts} +7 -7
- package/dist/switch.d.ts +14 -2
- package/dist/switch.js +1 -1
- package/dist/table-BnLdXUai.js +1 -0
- package/dist/{table-vT6Okwfa.d.ts → table-Ii9hHUWN.d.ts} +84 -5
- package/dist/table.d.ts +6 -1
- package/dist/table.js +1 -1
- package/dist/tabs.d.ts +24 -12
- package/dist/tabs.js +1 -1
- package/dist/text-area.d.ts +12 -2
- package/dist/text-area.js +1 -1
- package/dist/theme-BNdZl352.js +1 -0
- package/dist/theme-switcher.d.ts +18 -4
- package/dist/theme-switcher.js +1 -1
- package/dist/theme.d.ts +25 -11
- package/dist/theme.js +1 -1
- package/dist/toast.d.ts +15 -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-NcLIeBy5.d.ts → tooltip-CstGDKwy.d.ts} +18 -11
- package/dist/tooltip-DQO40Mrq.js +1 -0
- package/dist/tooltip.d.ts +6 -1
- package/dist/tooltip.js +1 -1
- package/dist/truncated-text.d.ts +28 -14
- package/dist/truncated-text.js +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.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 +14 -1
- package/dist/visually-hidden.js +1 -1
- package/dist/well.d.ts +7 -2
- package/dist/well.js +1 -1
- package/package.json +21 -7
- package/src/components/chart/d3-license.md +25 -0
- package/dist/alert-P9lwn25X.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-B8k98Pby.js +0 -1
- package/dist/button-Dge0D5bl.js +0 -1
- package/dist/chart-BpWfQAwf.js +0 -2
- package/dist/checkbox-DmSQXs26.js +0 -1
- package/dist/choice-2Lrv8_nl.js +0 -1
- package/dist/code-DUJzSl4K.js +0 -1
- package/dist/compose-refs-sFdxsL7k.js +0 -1
- package/dist/dialog-7TUgiSzX.js +0 -1
- package/dist/dialog-Dp0QGWwo.d.ts +0 -28
- package/dist/dropdown-menu-BHBzCDSZ.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-CDLz5lpI.js +0 -1
- package/dist/icons-CSwTVV2m.js +0 -1
- package/dist/icons-DP3lQw5O.js +0 -1
- package/dist/input-CpQ6jlpI.js +0 -1
- package/dist/kbd-CLHsJ99p.js +0 -1
- package/dist/label-nHqqYS7e.js +0 -1
- package/dist/layer-container-kEQiE4zV.js +0 -1
- package/dist/list-RFRIQxU2.js +0 -1
- package/dist/live-region-DQ1QLv3L.js +0 -1
- package/dist/main-CC1L9IsH.js +0 -1
- package/dist/popover-C96V8SXi.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/sandboxed-on-click-C7pPu-2M.js +0 -1
- package/dist/select-CAAYk4Yj.js +0 -1
- package/dist/separator-DfzxVutO.js +0 -1
- package/dist/sheet-CSJc_sB4.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-C-glc5Q-.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-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-DceYk1Id.js +0 -1
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;
|
|
@@ -702,7 +728,7 @@ the app stylesheet in `<head>`. An app that `@import`ed `mantle-dark.css` after
|
|
|
702
728
|
--background-color-filled-warning-hover: var(--color-warning-700);
|
|
703
729
|
--background-color-filled-success-hover: var(--color-success-700);
|
|
704
730
|
|
|
705
|
-
/* Focus tokens
|
|
731
|
+
/* Focus tokens: same expressions as the light base (the mid-ramp stops they
|
|
706
732
|
reference are theme-symmetric), declared here so `.invert-theme` islands
|
|
707
733
|
re-resolve them against this block's ramps. */
|
|
708
734
|
--ring-color-focus-neutral: --alpha(var(--color-neutral-500) / 0.3);
|
|
@@ -730,7 +756,7 @@ MARK: LIGHT DEFS
|
|
|
730
756
|
|
|
731
757
|
Light's own definitions: the stops that intentionally diverge from Tailwind's
|
|
732
758
|
defaults, and every semantic token built on them. Tailwind's unmodified default
|
|
733
|
-
ramps are NOT restated here
|
|
759
|
+
ramps are NOT restated here; they live in MARK: LIGHT PALETTE RESTORE below,
|
|
734
760
|
scoped to islands, because restating them at `:root` would override a consumer's
|
|
735
761
|
`@theme` palette customization.
|
|
736
762
|
|
|
@@ -748,7 +774,7 @@ from `:root` (see MARK: INVERT THEME below).
|
|
|
748
774
|
color-scheme: light;
|
|
749
775
|
|
|
750
776
|
/* custom stops that intentionally diverge from the Tailwind defaults */
|
|
751
|
-
--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 */
|
|
752
778
|
--color-sky-600: oklch(55% 0.158 241.966);
|
|
753
779
|
|
|
754
780
|
/* gray is identical to neutral in light mode */
|
|
@@ -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
|
-
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
|
|
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);
|
|
@@ -885,14 +926,14 @@ from `:root` (see MARK: INVERT THEME below).
|
|
|
885
926
|
MARK: LIGHT PALETTE RESTORE (islands only)
|
|
886
927
|
|
|
887
928
|
Tailwind's default light palette, materialized so `.invert-theme` islands on
|
|
888
|
-
dark pages restore it
|
|
929
|
+
dark pages restore it. MARK: DARK DEFS never encodes light values. Every value
|
|
889
930
|
is verbatim from the pinned tailwindcss/theme.css (the invert-theme test suite
|
|
890
931
|
pins them against it).
|
|
891
932
|
|
|
892
933
|
Scoped to the island selector on purpose: `@theme` variables are emitted into
|
|
893
934
|
`@layer theme`, and unlayered author CSS beats every layer, so declaring these
|
|
894
935
|
at `:root` would silently override a consumer's own
|
|
895
|
-
`@theme { --color-<ramp>-<stop>: … }` for all 22 ramps
|
|
936
|
+
`@theme { --color-<ramp>-<stop>: … }` for all 22 ramps, and ship ~17 KB of
|
|
896
937
|
dead weight to every page that renders no island. At page level Tailwind's own
|
|
897
938
|
defaults already supply these values, so the page needs nothing here.
|
|
898
939
|
|
|
@@ -1150,14 +1191,14 @@ MARK: COMPONENT GEOMETRY
|
|
|
1150
1191
|
*/
|
|
1151
1192
|
/* Geometry a component publishes for surfaces that render OUTSIDE it.
|
|
1152
1193
|
`--sidebar-row-width` is the width of one row inside an expanded `Sidebar`
|
|
1153
|
-
panel
|
|
1194
|
+
panel: `--sidebar-width` minus the row gutter every sidebar region applies
|
|
1154
1195
|
(`px-3` plus the expanded `pr-1` on Sidebar.Header/Body/Footer = 1rem). A
|
|
1155
1196
|
switcher's menu renders in a portal on `document.body`, so it inherits
|
|
1156
1197
|
nothing the sidebar sets; declaring the row width here is what lets such a
|
|
1157
1198
|
menu stay as wide as the expanded row while the panel is collapsed to the
|
|
1158
1199
|
icon rail (`min-w-(--sidebar-row-width)` on the menu content). Resolved at
|
|
1159
1200
|
`:root`, so a per-sidebar `--sidebar-width` override set on `Sidebar.Nav`
|
|
1160
|
-
does not reach it in either direction
|
|
1201
|
+
does not reach it in either direction: a narrower panel leaves the floor
|
|
1161
1202
|
wider than its row. Override `--sidebar-width` here to move both (and
|
|
1162
1203
|
`--sidebar-width-mobile` with it, or the floor outgrows the sheet's row),
|
|
1163
1204
|
or set `--sidebar-row-width` on the outside surface itself. */
|
|
@@ -1172,7 +1213,7 @@ The `invert-theme` class renders a DOM subtree in the opposite theme of the
|
|
|
1172
1213
|
page: light ⇄ dark.
|
|
1173
1214
|
|
|
1174
1215
|
Mechanism: every mantle color utility resolves a CSS custom property at the
|
|
1175
|
-
element that uses it, and custom properties inherit
|
|
1216
|
+
element that uses it, and custom properties inherit, so re-declaring the
|
|
1176
1217
|
theme variables on one element re-themes its entire subtree. Each theme
|
|
1177
1218
|
block's selector list therefore also matches `.invert-theme` subtrees on the
|
|
1178
1219
|
opposite theme's pages (see the LIGHT DEFS and DARK DEFS selectors above); the
|
|
@@ -1186,8 +1227,8 @@ Requirements and limitations:
|
|
|
1186
1227
|
- Theme variant utilities (`dark:*`, `light:*`) key off the page theme
|
|
1187
1228
|
classes on `:root`, not the inversion scope, so they do not flip inside an
|
|
1188
1229
|
island. This includes the six
|
|
1189
|
-
mantle internals that still carry variant-gated tweaks
|
|
1190
|
-
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
|
|
1191
1232
|
inside an island mixes page-variant selection with island-resolved variables
|
|
1192
1233
|
until they migrate to theme-declared tokens. Redefining the variants cannot
|
|
1193
1234
|
fix this: they are already scope-relative (`&:where(.dark, .dark *, …)`), and
|
|
@@ -1196,14 +1237,14 @@ Requirements and limitations:
|
|
|
1196
1237
|
- Semantic tokens are re-declared ON the island (see the palette-alias rule
|
|
1197
1238
|
below), and a declaration on the element beats a value inherited from an
|
|
1198
1239
|
ancestor. So a consumer who rebrands at the alias level
|
|
1199
|
-
(`:root { --color-accent-600: … }`) does not see it inside islands
|
|
1240
|
+
(`:root { --color-accent-600: … }`) does not see it inside islands. Rebrand
|
|
1200
1241
|
at the ramp level (`--color-sky-600`) instead, which the aliases resolve
|
|
1201
1242
|
through.
|
|
1202
1243
|
- Nesting `invert-theme` inside an inverted subtree is idempotent: the inner
|
|
1203
1244
|
island stays inverted relative to the page (it does not revert).
|
|
1204
1245
|
- Box shadows flip with the island: shadow utilities inline
|
|
1205
1246
|
`var(--shadow-color)` / `var(--shadow-*-opacity)` at the consuming element,
|
|
1206
|
-
and the theme blocks re-declare those tokens on islands
|
|
1247
|
+
and the theme blocks re-declare those tokens on islands, so content inside
|
|
1207
1248
|
a light island gets light-theme shadows, which keeps the island's interior
|
|
1208
1249
|
coherent.
|
|
1209
1250
|
|
|
@@ -1211,7 +1252,7 @@ The rule below re-declares the palette aliases from the `@theme` block so
|
|
|
1211
1252
|
they re-resolve against the island's inverted ramps: `@theme` variables are
|
|
1212
1253
|
emitted at `:root`, where e.g. `--color-accent-500` computes to the page
|
|
1213
1254
|
theme's sky-500 before the island can flip it. Keep it in sync with the
|
|
1214
|
-
`@theme` aliases
|
|
1255
|
+
`@theme` aliases; the invert-theme test suite enforces the pairing.
|
|
1215
1256
|
*/
|
|
1216
1257
|
.invert-theme {
|
|
1217
1258
|
--color-accent-50: var(--color-sky-50);
|
|
@@ -1488,8 +1529,8 @@ MARK: UTILITIES
|
|
|
1488
1529
|
/*
|
|
1489
1530
|
* Fades the inline-start/end edges of a horizontally-scrolling container to
|
|
1490
1531
|
* signal more content in that direction. The element is its own scroll
|
|
1491
|
-
* timeline, so an edge with nothing beyond it
|
|
1492
|
-
* 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
|
|
1493
1534
|
* cleanly with no fade. Consumers can pin an edge opaque by overriding
|
|
1494
1535
|
* `--_fade-left` / `--_fade-right` (the animation drives the upstream
|
|
1495
1536
|
* `--_scroll-fade-*` vars, so a static override always wins).
|
|
@@ -1524,7 +1565,7 @@ MARK: UTILITIES
|
|
|
1524
1565
|
}
|
|
1525
1566
|
|
|
1526
1567
|
@utility scroll-fade-y {
|
|
1527
|
-
/* Vertical sibling of `scroll-fade-x
|
|
1568
|
+
/* Vertical sibling of `scroll-fade-x`; see it for how the masking works. */
|
|
1528
1569
|
--_fade-top: var(--_scroll-fade-top);
|
|
1529
1570
|
--_fade-bottom: var(--_scroll-fade-bottom);
|
|
1530
1571
|
|
|
@@ -1553,7 +1594,7 @@ MARK: UTILITIES
|
|
|
1553
1594
|
* edge should fade (e.g. a sidebar that fades content scrolling under a sticky
|
|
1554
1595
|
* header but stays flush at the bottom). Each masks and drives only its own
|
|
1555
1596
|
* edge; the opposite edge stays fully opaque. Same scroll-driven mechanics and
|
|
1556
|
-
* fallback behavior as the axis utilities
|
|
1597
|
+
* fallback behavior as the axis utilities; see `scroll-fade-x` for details.
|
|
1557
1598
|
*/
|
|
1558
1599
|
@utility scroll-fade-t {
|
|
1559
1600
|
--_fade-top: var(--_scroll-fade-top);
|
|
@@ -1670,7 +1711,7 @@ MARK: SHIKI SYNTAX HIGHLIGHT
|
|
|
1670
1711
|
|
|
1671
1712
|
Also declared on `.invert-theme` islands: these tokens reference theme-dependent
|
|
1672
1713
|
variables, and their `var()` references substitute at the element that declares
|
|
1673
|
-
them
|
|
1714
|
+
them, so re-declaring them on the island makes them re-resolve against the
|
|
1674
1715
|
island's inverted ramps instead of inheriting the page-theme values computed
|
|
1675
1716
|
at `:root` (same reason as the palette-alias rule in MARK: INVERT THEME).
|
|
1676
1717
|
*/
|
|
@@ -1744,7 +1785,7 @@ at `:root` (same reason as the palette-alias rule in MARK: INVERT THEME).
|
|
|
1744
1785
|
|
|
1745
1786
|
/*
|
|
1746
1787
|
* The opaque gutter backdrop. Scrolled code slides under the pinned numbers,
|
|
1747
|
-
* so this masks it across the whole gutter band
|
|
1788
|
+
* so this masks it across the whole gutter band: the number column plus its
|
|
1748
1789
|
* gap, and the fold gutter on fold-enabled blocks (`--_gutter-overhang`).
|
|
1749
1790
|
*/
|
|
1750
1791
|
.mantle-code-line-number::before {
|
|
@@ -1764,7 +1805,7 @@ pre[data-slot="code-block-code"]:has(.mantle-code-fold-toggle) .mantle-code-line
|
|
|
1764
1805
|
|
|
1765
1806
|
/*
|
|
1766
1807
|
* Re-add the line-highlight tint over the opaque backdrop, so a highlighted
|
|
1767
|
-
* line's gutter matches its content
|
|
1808
|
+
* line's gutter matches its content, with the same look the translucent line
|
|
1768
1809
|
* background painted before the backdrop covered it.
|
|
1769
1810
|
*/
|
|
1770
1811
|
.mantle-code-line-highlighted .mantle-code-line-number::before {
|
|
@@ -1828,8 +1869,8 @@ pre[data-mantle-line-numbers="true"] .mantle-code-fold-toggle {
|
|
|
1828
1869
|
* Reserve the fold-gutter column so non-opener lines stay aligned with opener
|
|
1829
1870
|
* lines (whose toggle button occupies the gutter). A single per-<pre> `:has()`
|
|
1830
1871
|
* scopes this to fold-enabled blocks; within them every line's content gets the
|
|
1831
|
-
* gutter margin by default, and opener lines
|
|
1832
|
-
* 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
|
|
1833
1874
|
* replaces the old *per-line* relational `:not(:has())` probe (whose cost scaled
|
|
1834
1875
|
* with line count) with a flat class match, while keeping HTML payload tiny:
|
|
1835
1876
|
* only the sparse opener lines carry an extra class.
|
|
@@ -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,5 +1,10 @@
|
|
|
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
|
-
import { t as WithDataSlot } from "./data-slot-
|
|
7
|
+
import { t as WithDataSlot } from "./data-slot-BW8KQ9Xo.js";
|
|
3
8
|
import { ComponentProps } from "react";
|
|
4
9
|
type Props = ComponentProps<"div"> & WithAsChild & WithDataSlot;
|
|
5
10
|
/**
|
|
@@ -60,7 +65,7 @@ declare const Media: ({ asChild, className, children, "data-slot": dataSlot, ref
|
|
|
60
65
|
declare const Content: ({ asChild, className, children, "data-slot": dataSlot, ref, ...props }: Props) => import("react").JSX.Element;
|
|
61
66
|
/**
|
|
62
67
|
* A small, reusable layout primitive for "image/icon on one side,
|
|
63
|
-
* descriptive content on the other"
|
|
68
|
+
* descriptive content on the other", the foundational
|
|
64
69
|
* {@link https://www.stubbornella.org/2010/06/25/the-media-object-saves-hundreds-of-lines-of-code/ "media object" pattern}.
|
|
65
70
|
* Use it to compose avatars-with-text, icons-with-copy, thumbnails-with-titles,
|
|
66
71
|
* and similar two-up rows without re-implementing flexbox each time.
|
|
@@ -72,8 +77,8 @@ declare const Content: ({ asChild, className, children, "data-slot": dataSlot, r
|
|
|
72
77
|
* - Feature lists, profile cards, attachment previews.
|
|
73
78
|
*
|
|
74
79
|
* **When not to use**
|
|
75
|
-
* - For complex multi-region layouts
|
|
76
|
-
* - 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
|
|
77
82
|
* and use a plain block.
|
|
78
83
|
*
|
|
79
84
|
* **Spacing & alignment.** Default gap is `gap-4`; override by passing a
|
|
@@ -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
|
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};
|