@ngrok/mantle 0.94.0 → 0.95.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -2
- package/dist/CaretDown-MgTrjdYK.js +1 -0
- package/dist/CaretLeft-CZIqCyEF.js +1 -0
- package/dist/CaretRight-BKz4JHCI.js +1 -0
- package/dist/Check-C5a1hX4x.js +1 -0
- package/dist/CheckCircle-Bi4tSau6.js +1 -0
- package/dist/CircleNotch-BKE0NAIr.js +1 -0
- package/dist/Copy-BYWMO6PW.js +1 -0
- package/dist/Desktop-BaSlSeg2.js +1 -0
- package/dist/Eye-C38LQkZ_.js +1 -0
- package/dist/EyeClosed-BvOq-W8o.js +1 -0
- package/dist/FileText-CqAezJDn.js +1 -0
- package/dist/Info-weHV1B4q.js +1 -0
- package/dist/MagnifyingGlass-DCAoDH5_.js +1 -0
- package/dist/Megaphone-Cir2KHXa.js +1 -0
- package/dist/Minus-KBzmC4_K.js +1 -0
- package/dist/Moon-hn_oivM6.js +1 -0
- package/dist/Plus-D90-H9Ei.js +1 -0
- package/dist/Question-BhvEyO0K.js +1 -0
- package/dist/SidebarSimple-BXKgNz4l.js +1 -0
- package/dist/SortAscending-CEk4rgu_.js +1 -0
- package/dist/SortDescending-C0cE7hpU.js +1 -0
- package/dist/Sun-C3SaXdLl.js +1 -0
- package/dist/Terminal-aKZ6Y9Lk.js +1 -0
- package/dist/Warning-DTwF27_O.js +1 -0
- package/dist/WarningDiamond-BwpdVJ34.js +1 -0
- package/dist/X-BPGjP4b6.js +1 -0
- package/dist/accordion-BmDXs1-q.js +1 -0
- package/dist/accordion-NpJz3Uer.js +1 -0
- package/dist/accordion-parts.d.ts +268 -0
- package/dist/accordion-parts.js +1 -0
- package/dist/accordion.d.ts +8 -359
- package/dist/accordion.js +1 -1
- package/dist/agent.json +464 -92
- package/dist/alert-DCGSrVTa.js +1 -0
- package/dist/{alert-HffaioZM.d.ts → alert-Dz541Ve9.d.ts} +10 -196
- package/dist/alert-center-Bb39SBqJ.js +1 -0
- package/dist/alert-center-CGBbqO-y.d.ts +391 -0
- package/dist/alert-center-parts.d.ts +6 -0
- package/dist/alert-center-parts.js +1 -0
- package/dist/alert-center.d.ts +9 -590
- package/dist/alert-center.js +1 -1
- package/dist/alert-dialog-CtKnvX5N.js +1 -0
- package/dist/alert-dialog-parts.d.ts +569 -0
- package/dist/alert-dialog-parts.js +1 -0
- package/dist/alert-dialog.d.ts +3 -1054
- package/dist/alert-dialog.js +1 -1
- package/dist/alert-parts.d.ts +6 -0
- package/dist/alert-parts.js +1 -0
- package/dist/alert.d.ts +43 -1
- package/dist/alert.js +1 -1
- package/dist/anchor-DW5_Gb-1.js +1 -0
- package/dist/anchor.d.ts +6 -6
- package/dist/anchor.js +1 -1
- package/dist/app-layout-D7kwv9su.js +1 -0
- package/dist/app-layout-k6UjK30v.d.ts +1167 -0
- package/dist/app-layout-parts.d.ts +6 -0
- package/dist/app-layout-parts.js +1 -0
- package/dist/app-layout.d.ts +98 -1883
- package/dist/app-layout.js +1 -1
- package/dist/area-chart-C6lKu7Un.d.ts +390 -0
- package/dist/area-chart-SAaGaZFD.js +1 -0
- package/dist/area-chart-parts.d.ts +6 -0
- package/dist/area-chart-parts.js +1 -0
- package/dist/area-chart.d.ts +6 -581
- package/dist/area-chart.js +1 -1
- package/dist/avatar-BMZ81f_5.js +1 -0
- package/dist/avatar-Ti8GKSnS.d.ts +201 -0
- package/dist/avatar-parts.d.ts +6 -0
- package/dist/avatar-parts.js +1 -0
- package/dist/avatar.d.ts +5 -277
- package/dist/avatar.js +1 -1
- package/dist/badge.d.ts +10 -9
- package/dist/badge.js +1 -1
- package/dist/bar-chart-C0Ra1ZpG.js +1 -0
- package/dist/bar-chart-Cb5fA8V7.d.ts +386 -0
- package/dist/bar-chart-parts.d.ts +6 -0
- package/dist/bar-chart-parts.js +1 -0
- package/dist/bar-chart.d.ts +4 -583
- package/dist/bar-chart.js +1 -1
- package/dist/behaviors-BW8RjkkS.js +1 -0
- package/dist/behaviors-BbOq5SFv.js +1 -0
- package/dist/behaviors-C7R7ZIoN.js +1 -0
- package/dist/behaviors-CHF5PT3C.js +1 -0
- package/dist/behaviors-CSZQSSfL.js +1 -0
- package/dist/behaviors-CcjvGa0d.js +1 -0
- package/dist/behaviors-CnarRd47.js +1 -0
- package/dist/behaviors-CoNi6Rd-.js +1 -0
- package/dist/behaviors-D9VIyDk1.js +1 -0
- package/dist/behaviors-DHVC34f9.js +1 -0
- package/dist/behaviors-DkCIgQ8w.js +1 -0
- package/dist/behaviors-Mkc_HjTB.js +1 -0
- package/dist/breadcrumb-CAzq3SlR.js +1 -0
- package/dist/breadcrumb-parts.d.ts +287 -0
- package/dist/breadcrumb-parts.js +1 -0
- package/dist/breadcrumb.d.ts +65 -555
- package/dist/breadcrumb.js +1 -1
- package/dist/browser-only-CokCtIvB.js +1 -0
- package/dist/browser-only-ymFoM3Ya.js +1 -0
- package/dist/browser-only.js +1 -1
- package/dist/button-Bqm7U0OC.js +1 -0
- package/dist/{button-K0pKc3GN.d.ts → button-C6-6TecO.d.ts} +5 -5
- package/dist/{button-BGwOPjGV.d.ts → button-CL17Dxza.d.ts} +28 -25
- package/dist/button-CRCiBPEF.js +1 -0
- package/dist/{button-Cgf2IcEC.d.ts → button-CRMoQyum.d.ts} +27 -28
- package/dist/button-Cr2iY2cI.js +1 -0
- package/dist/button-DhoE-BbZ.js +1 -0
- package/dist/button.d.ts +3 -3
- package/dist/button.js +1 -1
- package/dist/calendar-DQtapcSC.js +1 -0
- package/dist/calendar.d.ts +1 -1
- package/dist/calendar.js +1 -1
- package/dist/card-DbtGVKyo.d.ts +129 -0
- package/dist/card-parts.d.ts +6 -0
- package/dist/card-parts.js +1 -0
- package/dist/card.d.ts +3 -228
- package/dist/card.js +1 -1
- package/dist/centered-layout-parts.d.ts +169 -0
- package/dist/centered-layout-parts.js +1 -0
- package/dist/centered-layout.d.ts +3 -300
- package/dist/centered-layout.js +1 -1
- package/dist/chart-B0n2xyYi.js +1 -0
- package/dist/chart-BPsMxs1f.js +1 -0
- package/dist/chart-BmZoTjRu.js +1 -0
- package/dist/chart-Bybyh2Dc.js +1 -0
- package/dist/chart-CACfdGlp.d.ts +86 -0
- package/dist/chart-CBQJUTIX.js +1 -0
- package/dist/chart-Cb0MBaZx.js +1 -0
- package/dist/chart-CmMcfDmv.js +1 -0
- package/dist/chart-Dlp9FidW.js +2 -0
- package/dist/{chart-jitNqimS.d.ts → chart-XvStK-oM.d.ts} +23 -99
- package/dist/chart-wTwYzUMJ.js +1 -0
- package/dist/checkbox-DH7WFfuR.js +1 -0
- package/dist/checkbox-DsVXD96X.js +1 -0
- package/dist/checkbox-TX74-Iep.js +1 -0
- package/dist/checkbox-group-parts.d.ts +197 -0
- package/dist/checkbox-group-parts.js +1 -0
- package/dist/checkbox.d.ts +60 -9
- package/dist/checkbox.js +1 -1
- package/dist/choice-BekuLm-b.d.ts +217 -0
- package/dist/choice-DGI8VNR9.d.ts +1 -0
- package/dist/choice-PDT386cc.js +1 -0
- package/dist/choice-parts.d.ts +7 -0
- package/dist/choice-parts.js +1 -0
- package/dist/choice.d.ts +63 -1
- package/dist/choice.js +1 -1
- package/dist/code-UKPv6LVP.js +1 -0
- package/dist/{code-block-W3kWPxCJ.js → code-block-B-xD4_RW.js} +1 -1
- package/dist/code-block-B7XPzZnp.js +1 -0
- package/dist/code-block-BXXceNVo.js +1 -0
- package/dist/code-block-C7uzLs8t.js +1 -0
- package/dist/{code-block-BGdV4Yty.d.ts → code-block-Cs1Lcmdr.d.ts} +82 -253
- package/dist/code-block-Erv7wuWW.d.ts +173 -0
- package/dist/code-block-parts.d.ts +380 -0
- package/dist/code-block-parts.js +1 -0
- package/dist/code-block.d.ts +66 -693
- package/dist/code-block.js +6 -6
- package/dist/code-block_highlight-utils.d.ts +2 -1
- package/dist/code-block_highlight-utils.js +1 -1
- package/dist/code.d.ts +4 -4
- package/dist/code.js +1 -1
- package/dist/combobox-6LXe1cLx.js +1 -0
- package/dist/combobox-parts.d.ts +303 -0
- package/dist/combobox-parts.js +1 -0
- package/dist/combobox.d.ts +5 -468
- package/dist/combobox.js +1 -1
- package/dist/command-B8L-zjGt.js +1 -0
- package/dist/command-CCMWCjAK.js +1 -0
- package/dist/command-VKj84zAX.d.ts +859 -0
- package/dist/command-cbgO9CiG.js +1 -0
- package/dist/command-parts.d.ts +6 -0
- package/dist/command-parts.js +1 -0
- package/dist/command.d.ts +91 -1135
- package/dist/command.js +1 -1
- package/dist/compose-refs-BdRUneoc.js +1 -0
- package/dist/compose-refs-Ce1vWUz0.js +1 -0
- package/dist/cx-CfAFHj5_.js +73 -0
- package/dist/cx-DhYnQ07J.js +1 -0
- package/dist/cx.d.ts +23 -17
- 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-C-FgaN3_.js +1 -0
- package/dist/data-table-Cw9dUo1w.js +1 -0
- package/dist/data-table-CwqrMtp0.js +1 -0
- package/dist/data-table-GUbt8mzo.d.ts +38 -0
- package/dist/data-table-parts.d.ts +763 -0
- package/dist/data-table-parts.js +1 -0
- package/dist/data-table.d.ts +21 -1217
- package/dist/data-table.js +1 -1
- package/dist/description-list-CjcKOOnr.d.ts +110 -0
- package/dist/description-list-parts.d.ts +6 -0
- package/dist/description-list-parts.js +1 -0
- package/dist/description-list.d.ts +3 -183
- package/dist/description-list.js +1 -1
- package/dist/dialog-4Ed3U7hz.js +1 -0
- package/dist/dialog-BDb_obii.d.ts +166 -0
- package/dist/dialog-BaR9D58J.js +1 -0
- package/dist/dialog-BkNxAcol.d.ts +467 -0
- package/dist/dialog-DSYuhFD5.js +1 -0
- package/dist/dialog-fXMCxM9W.js +1 -0
- package/dist/dialog-parts.d.ts +6 -0
- package/dist/dialog-parts.js +1 -0
- package/dist/dialog.d.ts +88 -2
- package/dist/dialog.js +1 -1
- package/dist/dropdown-menu-BuluRn0Z.js +1 -0
- package/dist/dropdown-menu-CDXlp0QT.d.ts +507 -0
- package/dist/dropdown-menu-parts.d.ts +6 -0
- package/dist/dropdown-menu-parts.js +1 -0
- package/dist/dropdown-menu.d.ts +57 -1
- package/dist/dropdown-menu.js +1 -1
- package/dist/empty-parts.d.ts +120 -0
- package/dist/empty-parts.js +1 -0
- package/dist/empty.d.ts +2 -216
- package/dist/empty.js +1 -1
- package/dist/field-BRYypbjO.js +1 -0
- package/dist/field-BVMx7HoG.js +1 -0
- package/dist/field-BwCq1b9R.js +1 -0
- package/dist/field-CYAaNexp.js +1 -0
- package/dist/field-DRHAcM1s.js +1 -0
- package/dist/field-parts.d.ts +767 -0
- package/dist/field-parts.js +1 -0
- package/dist/field.d.ts +21 -1201
- package/dist/field.js +1 -1
- package/dist/flag.d.ts +3 -3
- package/dist/flag.js +1 -1
- package/dist/float-C_vwTtzU.js +1 -0
- package/dist/float-JmSzKDHd.js +1 -0
- package/dist/float-OhVY3cf4.js +1 -0
- package/dist/hooks-B-Cd15iL.js +1 -0
- package/dist/hooks-BP_uqBsI.js +1 -0
- package/dist/hooks-BeLOGKwE.js +1 -0
- package/dist/hooks-BsOjpTgs.js +1 -0
- package/dist/hooks-BybaGF7O.js +1 -0
- package/dist/hooks-C9b-2wGy.js +1 -0
- package/dist/hooks-CMmpICCH.js +1 -0
- package/dist/hooks-CUYIUcp6.js +1 -0
- package/dist/hooks-DKbOd_pQ.js +1 -0
- package/dist/hooks-DejuqCNF.js +1 -0
- package/dist/hooks-GsDfo7Zl.js +1 -0
- package/dist/hooks-PsYFJkz2.js +1 -0
- package/dist/hooks-lDz_S9UG.js +1 -0
- package/dist/hooks.d.ts +126 -17
- package/dist/hooks.js +1 -1
- package/dist/hover-card-BEC5EQiH.js +1 -0
- package/dist/hover-card-parts.d.ts +160 -0
- package/dist/hover-card-parts.js +1 -0
- package/dist/hover-card.d.ts +9 -281
- package/dist/hover-card.js +1 -1
- package/dist/{icon-CgNqu-fl.d.ts → icon--purqHRo.d.ts} +1 -1
- package/dist/icon-0RoVrpGj.js +1 -0
- package/dist/icon-BSGMvJ0W.js +1 -0
- package/dist/icon-DIiKxRTh.js +1 -0
- package/dist/{icon-DXDyhy2N.d.ts → icon-Dqn_LLrR.d.ts} +2 -2
- package/dist/{icon-NYvyyRMG.d.ts → icon-KTcDR4--.d.ts} +2 -2
- package/dist/icon.d.ts +3 -3
- package/dist/icon.js +1 -1
- package/dist/icons-CVgj9Whd.js +1 -0
- package/dist/icons-D_4cZaL1.js +1 -0
- package/dist/icons-DucrvIOa.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/{index-KJ06KK6t.d.ts → index-CCkilmv8.d.ts} +1 -1
- package/dist/input-83xaPZWK.js +1 -0
- package/dist/input-B78ah4AB.js +1 -0
- package/dist/{input-q8o5uMhW.d.ts → input-Bvpu3ruQ.d.ts} +2 -2
- package/dist/input.d.ts +5 -5
- package/dist/input.js +1 -1
- package/dist/kbd-Bz_Rbpv8.js +1 -0
- package/dist/kbd.d.ts +5 -5
- package/dist/kbd.js +1 -1
- package/dist/{label-r2sJcSQ4.d.ts → label-DZpKu3Pu.d.ts} +8 -8
- package/dist/label-DmkAp9xI.js +1 -0
- package/dist/label.d.ts +1 -1
- package/dist/label.js +1 -1
- package/dist/layer-container-DDOZJ0fn.js +1 -0
- package/dist/layer-container.d.ts +11 -3
- package/dist/layer-container.js +1 -1
- package/dist/line-chart-CBL7eCqF.js +1 -0
- package/dist/line-chart-CIDFDkyb.d.ts +380 -0
- package/dist/line-chart-parts.d.ts +6 -0
- package/dist/line-chart-parts.js +1 -0
- package/dist/line-chart.d.ts +5 -569
- package/dist/line-chart.js +1 -1
- package/dist/list-CC3Pi__V.js +1 -0
- package/dist/list-Cx4KNfgC.d.ts +286 -0
- package/dist/list-FiFQJ0BU.js +1 -0
- package/dist/list-parts.d.ts +6 -0
- package/dist/list-parts.js +1 -0
- package/dist/list.d.ts +9 -406
- package/dist/list.js +1 -1
- package/dist/live-region-78gbKwlB.js +1 -0
- package/dist/live-region.d.ts +2 -2
- package/dist/live-region.js +1 -1
- package/dist/llms.txt +50 -26
- package/dist/main-9d96oUPG.js +1 -0
- package/dist/main.d.ts +1 -1
- package/dist/main.js +1 -1
- package/dist/mantle.css +1304 -910
- package/dist/media-object-parts.d.ts +65 -0
- package/dist/media-object-parts.js +1 -0
- package/dist/media-object.d.ts +5 -121
- package/dist/media-object.js +1 -1
- package/dist/migrations/0017-select-owned-behavior.yml +117 -0
- package/dist/migrations/0018-combobox-owned-behavior.yml +1661 -0
- package/dist/migrations/0019-multi-select-owned-behavior.yml +1414 -0
- package/dist/migrations/0020-native-floats.yml +823 -0
- package/dist/migrations/0021-native-radio-group.yml +397 -0
- package/dist/migrations/0024-command-owned-behavior.yml +66 -0
- package/dist/migrations/0026-native-dropdown-menu.yml +351 -0
- package/dist/migrations/0029-data-attribute-contract.yml +1707 -0
- package/dist/migrations/0030-between-variant.yml +1954 -0
- package/dist/multi-select-parts.d.ts +487 -0
- package/dist/multi-select-parts.js +1 -0
- package/dist/multi-select-qC0BuYKD.js +1 -0
- package/dist/multi-select.d.ts +6 -803
- package/dist/multi-select.js +1 -1
- package/dist/otp-input-LPdkb_Fg.js +1 -0
- package/dist/otp-input-parts.d.ts +211 -0
- package/dist/otp-input-parts.js +1 -0
- package/dist/otp-input-zl6MVio6.js +1 -0
- package/dist/otp-input.d.ts +11 -252
- package/dist/otp-input.js +1 -1
- package/dist/overlay-prompt-BIzMQvx7.js +1 -0
- package/dist/overlay-prompt-CDnhSoPJ.js +1 -0
- package/dist/overlay-prompt.d.ts +57 -0
- package/dist/overlay-prompt.js +1 -0
- package/dist/pagination-B2ESEbMI.d.ts +171 -0
- package/dist/pagination-CxaLKZcE.js +1 -0
- package/dist/pagination-Df1gTCN-.js +1 -0
- package/dist/pagination-cursor-pagination-parts.d.ts +6 -0
- package/dist/pagination-cursor-pagination-parts.js +1 -0
- package/dist/pagination.d.ts +39 -304
- package/dist/pagination.js +1 -1
- package/dist/popover-DOd6zLvE.d.ts +226 -0
- package/dist/popover-DWvHbepV.js +1 -0
- package/dist/popover-parts.d.ts +6 -0
- package/dist/popover-parts.js +1 -0
- package/dist/popover.d.ts +60 -2
- package/dist/popover.js +1 -1
- package/dist/position-Cv3XpSur.d.ts +5 -0
- package/dist/progress-BE0c8GW8.js +1 -0
- package/dist/progress-ZhFJhv9u.js +1 -0
- package/dist/progress-bar-parts.d.ts +86 -0
- package/dist/progress-bar-parts.js +1 -0
- package/dist/progress-donut-parts.d.ts +94 -0
- package/dist/progress-donut-parts.js +1 -0
- package/dist/progress-mJQMhxMX.js +1 -0
- package/dist/progress-zDpT3TY4.d.ts +2 -0
- package/dist/progress.d.ts +4 -268
- package/dist/progress.js +1 -1
- package/dist/qr-code-0zh10iIE.d.ts +148 -0
- package/dist/qr-code-BOOubA9x.js +1 -0
- package/dist/qr-code-D8tBKtjP.js +1 -0
- package/dist/qr-code-DzJjumoc.d.ts +46 -0
- package/dist/qr-code-encoder.browser.d.ts +15 -0
- package/dist/qr-code-encoder.browser.js +1 -0
- package/dist/qr-code-encoder.d.ts +15 -0
- package/dist/qr-code-encoder.js +1 -0
- package/dist/qr-code-parts.d.ts +6 -0
- package/dist/qr-code-parts.js +1 -0
- package/dist/qr-code.d.ts +4 -227
- package/dist/qr-code.js +1 -1
- package/dist/query-C0e5VYNp.d.ts +440 -0
- package/dist/query-V5NifJGs.js +1 -0
- package/dist/query-filter.d.ts +6 -6
- package/dist/query-filter.js +1 -1
- package/dist/query-parts.d.ts +6 -0
- package/dist/query-parts.js +1 -0
- package/dist/query.d.ts +5 -634
- package/dist/query.js +1 -1
- package/dist/radio-group-B9jtIbV1.d.ts +39 -0
- package/dist/radio-group-BliblUqe.js +1 -0
- package/dist/radio-group-f3ThXQCx.js +1 -0
- package/dist/radio-group-parts.d.ts +249 -0
- package/dist/radio-group-parts.js +1 -0
- package/dist/radio-group-zA5DjlLg.js +1 -0
- package/dist/radio-group.d.ts +7 -399
- package/dist/radio-group.js +1 -1
- package/dist/sandbar-Cm2yMjEZ.js +1 -0
- package/dist/sandbar-DU4wpKRc.d.ts +345 -0
- package/dist/sandbar-parts.d.ts +6 -0
- package/dist/sandbar-parts.js +1 -0
- package/dist/sandbar.d.ts +6 -441
- package/dist/sandbar.js +1 -1
- package/dist/sandboxed-on-click-Cg3lewoG.js +1 -0
- package/dist/sandboxed-on-click-DOw_Jkhk.js +1 -0
- package/dist/sandboxed-on-click.d.ts +1 -1
- package/dist/sandboxed-on-click.js +1 -1
- package/dist/scatter-plot-1vFxkpjT.js +1 -0
- package/dist/scatter-plot-D25jLIVw.d.ts +388 -0
- package/dist/scatter-plot-parts.d.ts +6 -0
- package/dist/scatter-plot-parts.js +1 -0
- package/dist/scatter-plot.d.ts +5 -575
- package/dist/scatter-plot.js +1 -1
- package/dist/segmented-control-DuiDPKDZ.js +1 -0
- package/dist/segmented-control-parts.d.ts +72 -0
- package/dist/segmented-control-parts.js +1 -0
- package/dist/segmented-control.d.ts +4 -100
- package/dist/segmented-control.js +1 -1
- package/dist/select-08IEtypH.js +1 -0
- package/dist/select-DM2wWfOO.d.ts +478 -0
- package/dist/select-parts.d.ts +6 -0
- package/dist/select-parts.js +1 -0
- package/dist/select.d.ts +63 -1
- package/dist/select.js +1 -1
- package/dist/selectable-list-Ax5F2Gz1.js +1 -0
- package/dist/selectable-list-CyLc3EEt.d.ts +407 -0
- package/dist/selectable-list-GcpbbRM1.js +1 -0
- package/dist/selectable-list-parts.d.ts +6 -0
- package/dist/selectable-list-parts.js +1 -0
- package/dist/selectable-list.d.ts +7 -647
- package/dist/selectable-list.js +1 -1
- package/dist/separator-BB1ohsjn.js +1 -0
- package/dist/{separator-QfH0ot5K.d.ts → separator-BzHNVyyv.d.ts} +2 -2
- package/dist/separator.d.ts +1 -1
- package/dist/separator.js +1 -1
- package/dist/sheet-5JgxVaWC.js +1 -0
- package/dist/sheet-parts.d.ts +732 -0
- package/dist/sheet-parts.js +1 -0
- package/dist/sheet-qYPi5MP8.js +1 -0
- package/dist/sheet.d.ts +11 -1208
- package/dist/sheet.js +1 -1
- package/dist/sidebar-CsC9fyPL.js +1 -0
- package/dist/sidebar-OBA7L42d.d.ts +1480 -0
- package/dist/sidebar-parts.d.ts +6 -0
- package/dist/sidebar-parts.js +1 -0
- package/dist/sidebar.d.ts +108 -2518
- package/dist/sidebar.js +1 -1
- package/dist/skeleton-DB0oQyAx.js +1 -0
- package/dist/skeleton.d.ts +5 -5
- package/dist/skeleton.js +1 -1
- package/dist/skip-to-main-link-BGhAWSqB.js +1 -0
- package/dist/skip-to-main-link.d.ts +1 -1
- package/dist/skip-to-main-link.js +1 -1
- package/dist/slider-YlBozcPQ.js +1 -0
- package/dist/slider.d.ts +150 -16
- package/dist/slider.js +1 -1
- package/dist/slot-5ZSmrISx.d.ts +19 -0
- package/dist/slot-BxngGBJ2.js +1 -0
- package/dist/slot-CBcGhRdV.js +1 -0
- package/dist/slot-tuk2J6bY.d.ts +50 -0
- package/dist/slot.d.ts +1 -1
- package/dist/slot.js +1 -1
- package/dist/source-all.css +5 -1
- package/dist/split-button-DvJHD7cZ.js +1 -0
- package/dist/split-button-parts.d.ts +178 -0
- package/dist/split-button-parts.js +1 -0
- package/dist/split-button.d.ts +2 -314
- package/dist/split-button.js +1 -1
- package/dist/strata-parts.d.ts +256 -0
- package/dist/strata-parts.js +1 -0
- package/dist/strata.d.ts +6 -495
- package/dist/strata.js +1 -1
- package/dist/{suggestions-NkqYTT49.d.ts → suggestions-BJeGvwDa.d.ts} +7 -7
- package/dist/switch-DajWYrq3.js +1 -0
- package/dist/switch.d.ts +37 -5
- package/dist/switch.js +1 -1
- package/dist/{table-rWiVWEgB.d.ts → table-C2KnE83u.d.ts} +6 -445
- package/dist/table-DJHK48-8.js +1 -0
- package/dist/table-parts.d.ts +6 -0
- package/dist/table-parts.js +1 -0
- package/dist/table.d.ts +81 -1
- package/dist/table.js +1 -1
- package/dist/tabs-36-4SlRo.js +1 -0
- package/dist/tabs-CC_HAqr4.d.ts +193 -0
- package/dist/tabs-DayeszXP.js +1 -0
- package/dist/tabs-headless-tabs-parts.d.ts +6 -0
- package/dist/tabs-headless-tabs-parts.js +1 -0
- package/dist/tabs-parts.d.ts +237 -0
- package/dist/tabs-parts.js +1 -0
- package/dist/tabs.d.ts +43 -420
- package/dist/tabs.js +1 -1
- package/dist/text-area-D29JTaZg.js +1 -0
- package/dist/text-area.d.ts +2 -2
- package/dist/text-area.js +1 -1
- package/dist/theme-D6rP5Fy8.js +1 -0
- package/dist/theme-switcher-PKMCyJxT.js +1 -0
- package/dist/theme-switcher.d.ts +26 -22
- package/dist/theme-switcher.js +1 -1
- package/dist/theme-xoFnLba6.js +1 -0
- package/dist/theme.d.ts +84 -77
- package/dist/theme.js +1 -1
- package/dist/time-zone-CpWYKHdp.js +1 -0
- package/dist/time-zone-DZ4hUJ8K.js +1 -0
- package/dist/time-zone.d.ts +190 -0
- package/dist/time-zone.js +1 -0
- package/dist/toast-BJZ__22c.js +1 -0
- package/dist/toast-Cb9IN-6e.d.ts +185 -0
- package/dist/toast-DM_oq-3E.js +1 -0
- package/dist/toast-parts.d.ts +6 -0
- package/dist/toast-parts.js +1 -0
- package/dist/toast.d.ts +7 -256
- package/dist/toast.js +1 -1
- package/dist/tokens.dark.json +3026 -0
- package/dist/tokens.json +4867 -0
- package/dist/tokens.resolver.json +37 -0
- package/dist/tooltip-D4HZn19B.js +1 -0
- package/dist/tooltip-DP6Lz6jv.d.ts +180 -0
- package/dist/tooltip-Uy-kz0rK.d.ts +1 -0
- package/dist/tooltip-parts.d.ts +7 -0
- package/dist/tooltip-parts.js +1 -0
- package/dist/tooltip.d.ts +57 -1
- package/dist/tooltip.js +1 -1
- package/dist/truncated-text-B5u2AlNg.js +1 -0
- package/dist/truncated-text-BoXHP-cD.js +1 -0
- package/dist/truncated-text.d.ts +4 -6
- package/dist/truncated-text.js +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/dist/typography-C2BmSH12.d.ts +148 -0
- package/dist/typography-parts.d.ts +6 -0
- package/dist/typography-parts.js +1 -0
- package/dist/typography.d.ts +52 -0
- package/dist/typography.js +1 -0
- package/dist/use-combobox-OhIEVioc.d.ts +23 -0
- package/dist/use-float-WEqqhXBE.d.ts +18 -0
- package/dist/use-listbox-D4uIonSN.d.ts +1 -0
- package/dist/utils-BN3rwHzz.js +1 -0
- package/dist/utils-BlLYcYik.js +1 -0
- package/dist/utils-C4astHJG.js +1 -0
- package/dist/utils-CPSttKPD.js +1 -0
- package/dist/{copy-to-clipboard-DInu78k_.js → utils-Dd83caRw.js} +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/dist/visually-hidden.d.ts +2 -2
- package/dist/visually-hidden.js +1 -1
- package/dist/well.d.ts +2 -2
- package/dist/well.js +1 -1
- package/dist/world-map-BDd3N_Ap.d.ts +424 -0
- package/dist/world-map-D3c8Pq-h.js +1 -0
- package/dist/world-map-parts.d.ts +6 -0
- package/dist/world-map-parts.js +1 -0
- package/dist/world-map-t9U-IMKS.js +1 -0
- package/dist/world-map.d.ts +80 -0
- package/dist/world-map.js +1 -0
- package/package.json +30 -19
- 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-BQZ6eoD3.js +0 -1
- package/dist/button-BWGUuWnu.js +0 -1
- package/dist/button-Cu9e3SM7.js +0 -1
- package/dist/chart-BO9EwQ60.js +0 -1
- package/dist/chart-CE5Uaqz9.js +0 -1
- package/dist/chart-DCTGGlWL.js +0 -1
- package/dist/chart-DudCw24t.js +0 -2
- package/dist/checkbox-CS504fKk.js +0 -1
- package/dist/choice-BwfmbepO.d.ts +0 -405
- package/dist/choice-uyYccm0A.js +0 -1
- package/dist/clsx-DUGZgXfJ.js +0 -1
- package/dist/clsx-Dj3RWZ2l.js +0 -1
- package/dist/code-DUJzSl4K.js +0 -1
- package/dist/compose-refs-sFdxsL7k.js +0 -1
- package/dist/cx-CK7o_rVv.js +0 -1
- package/dist/dialog-B9JAGy_x.d.ts +0 -28
- package/dist/dialog-CsugEt2A.js +0 -1
- package/dist/dialog-DD5H3EH1.d.ts +0 -942
- package/dist/dropdown-menu-DHdgaw4P.js +0 -1
- package/dist/dropdown-menu-DmDxYPde.d.ts +0 -775
- package/dist/field-Bihblt8U.js +0 -1
- package/dist/field-CPvjazWN.js +0 -1
- package/dist/icon-BudQMD2S.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/input-DQyN6gN0.js +0 -1
- package/dist/interactive-target-BXScNeOr.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/popover-lwkwWcRW.d.ts +0 -291
- package/dist/primitive-Dz9Al-us.js +0 -1
- package/dist/radio-group-jj2abc0t.js +0 -1
- package/dist/radio-group-sLz5AA9I.d.ts +0 -27
- package/dist/sandboxed-on-click-C7pPu-2M.js +0 -1
- package/dist/select-BqmpVJJT.d.ts +0 -890
- package/dist/select-C6Su0dU0.js +0 -1
- package/dist/separator-DfzxVutO.js +0 -1
- package/dist/shake-DL6WhMXM.js +0 -1
- package/dist/sheet-Bd2LIhzF.js +0 -1
- package/dist/skeleton-DBpI-ko5.js +0 -1
- package/dist/slot-D12N_fZJ.d.ts +0 -67
- package/dist/slot-DdYN1L1C.js +0 -1
- package/dist/table-CFHiDBW8.js +0 -1
- package/dist/theme-DdZgLvKH.js +0 -1
- package/dist/tooltip-CpK3XTor.d.ts +0 -283
- 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/{suggestions-Ciz2vaJO.js → query-filter-Ciz2vaJO.js} +0 -0
- /package/dist/{radio-group-HDVxTNPi.js → sidebar-HDVxTNPi.js} +0 -0
- /package/dist/{direction-CvDpql3O.js → sorting-CvDpql3O.js} +0 -0
- /package/dist/{booleanish-BfvnW6vy.js → types-BfvnW6vy.js} +0 -0
- /package/dist/{css-properties-D85fCNV3.js → types-D85fCNV3.js} +0 -0
- /package/dist/{alternate-announcement-BkH4bOKp.js → utils-BkH4bOKp.js} +0 -0
- /package/dist/{in-view-Dxv_GrUU.js → utils-Dxv_GrUU.js} +0 -0
- /package/dist/{data-slot-EM6s2WEU.js → utils-EM6s2WEU.js} +0 -0
- /package/dist/{cookie-ca4g5CKp.js → utils-ca4g5CKp.js} +0 -0
package/dist/sidebar.d.ts
CHANGED
|
@@ -1,2524 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Re-exports for the Sidebar compound component: a composable, collapsible
|
|
3
|
-
* app-navigation sidebar with a desktop panel that collapses to
|
|
3
|
+
* app-navigation sidebar with a desktop panel that collapses to its icons,
|
|
4
4
|
* a mobile `Sheet` presentation, and a toggle trigger that composes into any
|
|
5
5
|
* app shell.
|
|
6
6
|
*
|
|
7
7
|
* @see https://mantle.ngrok.com/components/navigation/sidebar
|
|
8
8
|
*/
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import { n as IconButtonProps } from "./button-BGwOPjGV.js";
|
|
12
|
-
import { n as Separator } from "./separator-QfH0ot5K.js";
|
|
13
|
-
import { t as Tooltip } from "./tooltip-CpK3XTor.js";
|
|
14
|
-
import { ComponentProps, ReactElement, ReactNode } from "react";
|
|
15
|
-
/**
|
|
16
|
-
* The breakpoints below which `Sidebar.Nav` swaps from the inline desktop
|
|
17
|
-
* panel to the mobile `Sheet` presentation. Kept to a closed set because the
|
|
18
|
-
* pre-hydration visibility classes are static strings (Tailwind cannot see
|
|
19
|
-
* interpolated class names).
|
|
20
|
-
*
|
|
21
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```tsx
|
|
25
|
-
* <Sidebar.Root mobileBreakpoint="md">…</Sidebar.Root>
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
type SidebarMobileBreakpoint = "sm" | "md" | "lg";
|
|
29
|
-
/**
|
|
30
|
-
* The state and actions shared by every part under a `Sidebar.Root`, returned
|
|
31
|
-
* by {@link useSidebar}. Use it to build custom triggers, keyboard shortcuts,
|
|
32
|
-
* or close-on-navigate behavior.
|
|
33
|
-
*
|
|
34
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```tsx
|
|
38
|
-
* function CollapseSidebarButton() {
|
|
39
|
-
* const { open, toggle } = useSidebar();
|
|
40
|
-
* return (
|
|
41
|
-
* <button type="button" onClick={toggle}>
|
|
42
|
-
* {open ? "Collapse" : "Expand"} sidebar
|
|
43
|
-
* </button>
|
|
44
|
-
* );
|
|
45
|
-
* }
|
|
46
|
-
* ```
|
|
47
|
-
*/
|
|
48
|
-
type SidebarState = {
|
|
49
|
-
/**
|
|
50
|
-
* Whether the desktop sidebar is expanded. Mirrored as
|
|
51
|
-
* `data-state="expanded" | "collapsed"` on `Sidebar.Nav`.
|
|
52
|
-
*/
|
|
53
|
-
open: boolean;
|
|
54
|
-
/**
|
|
55
|
-
* Set the desktop expanded state. Calls `onOpenChange` and, when
|
|
56
|
-
* uncontrolled, updates the internal state. Keeps one identity across
|
|
57
|
-
* renders, so it is safe in an effect dependency list.
|
|
58
|
-
*/
|
|
59
|
-
setOpen: (open: boolean) => void;
|
|
60
|
-
/**
|
|
61
|
-
* Whether the mobile sheet is open. Only meaningful when `isMobile`.
|
|
62
|
-
*/
|
|
63
|
-
openMobile: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Set the mobile sheet open state. Calls `onOpenMobileChange` and, when
|
|
66
|
-
* uncontrolled, updates the internal state. Use it to close the sheet on
|
|
67
|
-
* navigation. Keeps one identity across renders, so it is safe in an effect
|
|
68
|
-
* dependency list.
|
|
69
|
-
*/
|
|
70
|
-
setOpenMobile: (open: boolean) => void;
|
|
71
|
-
/**
|
|
72
|
-
* `true` when the viewport is below `mobileBreakpoint`. `false` during SSR
|
|
73
|
-
* and the hydration render (desktop-first).
|
|
74
|
-
*/
|
|
75
|
-
isMobile: boolean;
|
|
76
|
-
/**
|
|
77
|
-
* The breakpoint below which the sidebar renders as a mobile sheet.
|
|
78
|
-
*/
|
|
79
|
-
mobileBreakpoint: SidebarMobileBreakpoint;
|
|
80
|
-
/**
|
|
81
|
-
* Toggle the sidebar: the mobile sheet when `isMobile`, the desktop
|
|
82
|
-
* expanded state otherwise. This is what `Sidebar.Trigger` calls.
|
|
83
|
-
*/
|
|
84
|
-
toggle: () => void;
|
|
85
|
-
/**
|
|
86
|
-
* The generated id of the sidebar's `<nav>` landmark. `Sidebar.Trigger`
|
|
87
|
-
* references it via `aria-controls`; reuse it when building custom
|
|
88
|
-
* triggers.
|
|
89
|
-
*/
|
|
90
|
-
navId: string;
|
|
91
|
-
/**
|
|
92
|
-
* Whether this root owns the `⌘B` / `Ctrl+B` shortcut. `Sidebar.Trigger`
|
|
93
|
-
* reads it to decide whether its tooltip advertises the chord, so the hint
|
|
94
|
-
* can never name a binding that is not bound.
|
|
95
|
-
*/
|
|
96
|
-
keyboardShortcut: boolean;
|
|
97
|
-
};
|
|
98
|
-
/**
|
|
99
|
-
* Read the nearest `Sidebar.Root` state. Throws when called outside a
|
|
100
|
-
* `Sidebar.Root` so misuse fails loudly. Use it to build custom triggers,
|
|
101
|
-
* a keyboard shortcut, or close-on-navigate behavior.
|
|
102
|
-
*
|
|
103
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar#usesidebar
|
|
104
|
-
*
|
|
105
|
-
* @example
|
|
106
|
-
* ```tsx
|
|
107
|
-
* function CloseSidebarOnNavigate() {
|
|
108
|
-
* const { setOpenMobile } = useSidebar();
|
|
109
|
-
* const location = useLocation();
|
|
110
|
-
* useEffect(() => {
|
|
111
|
-
* setOpenMobile(false);
|
|
112
|
-
* }, [location.pathname, setOpenMobile]);
|
|
113
|
-
* return null;
|
|
114
|
-
* }
|
|
115
|
-
* ```
|
|
116
|
-
*/
|
|
117
|
-
declare function useSidebar(): SidebarState;
|
|
118
|
-
type SidebarRootProps = {
|
|
119
|
-
/**
|
|
120
|
-
* The sidebar's parts — a `Sidebar.Nav` and anything that reads the state,
|
|
121
|
-
* including a `Sidebar.Trigger` rendered anywhere below (an
|
|
122
|
-
* `AppLayout.Header`, for example). `Root` renders no DOM of its own.
|
|
123
|
-
*/
|
|
124
|
-
children?: ReactNode;
|
|
125
|
-
/**
|
|
126
|
-
* The initial desktop expanded state for the uncontrolled case.
|
|
127
|
-
*
|
|
128
|
-
* @default true
|
|
129
|
-
*/
|
|
130
|
-
defaultOpen?: boolean;
|
|
131
|
-
/**
|
|
132
|
-
* Controlled desktop expanded state. Pair with `onOpenChange`.
|
|
133
|
-
*/
|
|
134
|
-
open?: boolean;
|
|
135
|
-
/**
|
|
136
|
-
* Called with the next desktop expanded state whenever it changes.
|
|
137
|
-
*/
|
|
138
|
-
onOpenChange?: (open: boolean) => void;
|
|
139
|
-
/**
|
|
140
|
-
* Controlled mobile sheet open state. Pair with `onOpenMobileChange`.
|
|
141
|
-
*/
|
|
142
|
-
openMobile?: boolean;
|
|
143
|
-
/**
|
|
144
|
-
* Called with the next mobile sheet open state whenever it changes.
|
|
145
|
-
*/
|
|
146
|
-
onOpenMobileChange?: (open: boolean) => void;
|
|
147
|
-
/**
|
|
148
|
-
* The breakpoint below which `Sidebar.Nav` renders as a mobile `Sheet`
|
|
149
|
-
* instead of the inline desktop panel.
|
|
150
|
-
*
|
|
151
|
-
* @default "lg"
|
|
152
|
-
*/
|
|
153
|
-
mobileBreakpoint?: SidebarMobileBreakpoint;
|
|
154
|
-
/**
|
|
155
|
-
* Toggle the sidebar with `⌘B` (macOS) / `Ctrl+B` (Windows/Linux). The
|
|
156
|
-
* shortcut requires exactly the platform modifier + `b`: `⌘` on Apple
|
|
157
|
-
* platforms and `Ctrl` everywhere else, resolved per host — the two never
|
|
158
|
-
* substitute for each other, so macOS's native `Ctrl+B` ("move the caret
|
|
159
|
-
* back one character") is left alone. Combinations with `Shift`/`Alt` (e.g.
|
|
160
|
-
* the browser's own `⌘⇧B`) pass through too.
|
|
161
|
-
*
|
|
162
|
-
* The shortcut is also ignored while focus is in a text-editing or form
|
|
163
|
-
* control — an `<input>`, `<textarea>`, `<select>`, or any `contenteditable`
|
|
164
|
-
* host — because the chord is usually already bound there (`⌘B` is "bold")
|
|
165
|
-
* and this is a `window` listener that calls `preventDefault()`. That covers
|
|
166
|
-
* embedded editors like Monaco and CodeMirror, which attach to exactly those
|
|
167
|
-
* elements. Set `false` to opt out entirely.
|
|
168
|
-
*
|
|
169
|
-
* An earlier `keydown` listener that calls `preventDefault()` (on `document`,
|
|
170
|
-
* or on an element) stops the shortcut. Do not bind `⌘B` in your app as
|
|
171
|
-
* well: delete the local binding, or set `false`.
|
|
172
|
-
*
|
|
173
|
-
* The shortcut has exactly one owner per window: the first mounted root
|
|
174
|
-
* with the shortcut enabled. Additional roots (nested or siblings) queue
|
|
175
|
-
* and take ownership only when the owner unmounts, so composing a second
|
|
176
|
-
* sidebar never makes one keypress toggle both.
|
|
177
|
-
*
|
|
178
|
-
* @default true
|
|
179
|
-
*/
|
|
180
|
-
keyboardShortcut?: boolean;
|
|
181
|
-
};
|
|
182
|
-
/**
|
|
183
|
-
* The state owner for a sidebar. Renders no DOM of its own (like
|
|
184
|
-
* `Tooltip.Root`) — it carries the expanded/collapsed and mobile-sheet state
|
|
185
|
-
* to every part below it, so `Sidebar.Trigger` can live anywhere in the tree
|
|
186
|
-
* (for example inside an `AppLayout.Header`) without coupling the app shell
|
|
187
|
-
* to the sidebar.
|
|
188
|
-
*
|
|
189
|
-
* Render exactly one `Sidebar.Nav` per `Sidebar.Root`. Nested roots shadow
|
|
190
|
-
* the outer sidebar for everything below them.
|
|
191
|
-
*
|
|
192
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarroot
|
|
193
|
-
*
|
|
194
|
-
* @example
|
|
195
|
-
* ```tsx
|
|
196
|
-
* <Sidebar.Root>
|
|
197
|
-
* <Sidebar.Nav aria-label="Main">
|
|
198
|
-
* <Sidebar.Header>
|
|
199
|
-
* <DropdownMenu.Root>
|
|
200
|
-
* <DropdownMenu.Trigger asChild>
|
|
201
|
-
* <Sidebar.SwitcherTrigger>
|
|
202
|
-
* <GlobeIcon />
|
|
203
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
|
|
204
|
-
* <CaretDownIcon className="text-muted size-4 shrink-0" />
|
|
205
|
-
* </Sidebar.SwitcherTrigger>
|
|
206
|
-
* </DropdownMenu.Trigger>
|
|
207
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
208
|
-
* </DropdownMenu.Root>
|
|
209
|
-
* </Sidebar.Header>
|
|
210
|
-
* <Sidebar.Body>
|
|
211
|
-
* <Sidebar.Group>
|
|
212
|
-
* <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
|
|
213
|
-
* <Sidebar.List>
|
|
214
|
-
* <Sidebar.Item>
|
|
215
|
-
* <Sidebar.ItemButton asChild current>
|
|
216
|
-
* <a href="/endpoints">
|
|
217
|
-
* <GraphIcon />
|
|
218
|
-
* Endpoints
|
|
219
|
-
* </a>
|
|
220
|
-
* </Sidebar.ItemButton>
|
|
221
|
-
* </Sidebar.Item>
|
|
222
|
-
* </Sidebar.List>
|
|
223
|
-
* </Sidebar.Group>
|
|
224
|
-
* </Sidebar.Body>
|
|
225
|
-
* <Sidebar.Footer>
|
|
226
|
-
* <Sidebar.Separator />
|
|
227
|
-
* <DropdownMenu.Root>
|
|
228
|
-
* <DropdownMenu.Trigger asChild>
|
|
229
|
-
* <Sidebar.SwitcherTrigger>
|
|
230
|
-
* <Avatar.Root appearance="square" colorSeed="acc_123">
|
|
231
|
-
* <Avatar.Fallback name="Acme Corp" />
|
|
232
|
-
* </Avatar.Root>
|
|
233
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Acme Corp</span>
|
|
234
|
-
* </Sidebar.SwitcherTrigger>
|
|
235
|
-
* </DropdownMenu.Trigger>
|
|
236
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
237
|
-
* </DropdownMenu.Root>
|
|
238
|
-
* </Sidebar.Footer>
|
|
239
|
-
* </Sidebar.Nav>
|
|
240
|
-
* <Sidebar.Trigger />
|
|
241
|
-
* </Sidebar.Root>
|
|
242
|
-
* ```
|
|
243
|
-
*/
|
|
244
|
-
declare const Root: ({ children, defaultOpen, keyboardShortcut, mobileBreakpoint, onOpenChange, onOpenMobileChange, open: openProp, openMobile: openMobileProp }: SidebarRootProps) => import("react").JSX.Element;
|
|
245
|
-
type SidebarNavProps = ComponentProps<"div"> & WithDataSlot;
|
|
246
|
-
/**
|
|
247
|
-
* The sidebar panel. On viewports at or above the root's `mobileBreakpoint`
|
|
248
|
-
* it renders inline (in normal flow, so it composes under an
|
|
249
|
-
* `AppLayout.Notice` banner) and collapses by animating its width down to a
|
|
250
|
-
* skinny icon rail (`--sidebar-width-icon`): group labels fade out in place
|
|
251
|
-
* and each row becomes a square chip around its leading icon, but everything
|
|
252
|
-
* keeps its expanded position and stays in the tab order and the
|
|
253
|
-
* accessibility tree. Below the breakpoint it renders inside a mantle
|
|
254
|
-
* `Sheet` on the left.
|
|
255
|
-
*
|
|
256
|
-
* `className`, `style`, `ref`, and rest props land on the panel surface in
|
|
257
|
-
* both presentations (the desktop animator / the mobile `Sheet.Content`), so
|
|
258
|
-
* the width variables work anywhere:
|
|
259
|
-
* `className="[--sidebar-width:20rem] [--sidebar-width-mobile:20rem]"`.
|
|
260
|
-
* The panel forwards `aria-label` (default `"Main"`) to the inner `<nav>` landmark.
|
|
261
|
-
*
|
|
262
|
-
* **CSS variables (public API):**
|
|
263
|
-
*
|
|
264
|
-
* | CSS Variable | Default | Description |
|
|
265
|
-
* | --- | --- | --- |
|
|
266
|
-
* | `--sidebar-width` | `13rem` | Expanded desktop panel width (208px). |
|
|
267
|
-
* | `--sidebar-width-mobile` | `18rem` | Mobile sheet width (288px). |
|
|
268
|
-
* | `--sidebar-width-icon` | `3.25rem` | Collapsed icon rail width (52px). |
|
|
269
|
-
* | `--sidebar-row-width` | `12rem` | Derived, not set: one row's width in the expanded panel (192px), for sizing surfaces that render *outside* it. See below and `Sidebar.SwitcherTrigger`. |
|
|
270
|
-
*
|
|
271
|
-
* `--sidebar-row-width` is `calc(var(--sidebar-width,13rem) - 1rem)`, declared
|
|
272
|
-
* at `:root` by `mantle.css`: the panel width minus the row gutter this
|
|
273
|
-
* component's regions apply.
|
|
274
|
-
*
|
|
275
|
-
* The panel reads each of the three widths with its default as the fallback,
|
|
276
|
-
* and custom properties inherit, so set one on `Sidebar.Nav` to resize a single
|
|
277
|
-
* sidebar or on any ancestor (`:root` in your global stylesheet) to resize
|
|
278
|
-
* every sidebar in the app. `--sidebar-row-width` resolves at `:root`, so a
|
|
279
|
-
* `--sidebar-width` override scoped to one `Sidebar.Nav` does not reach it in
|
|
280
|
-
* either direction (a narrower panel leaves the floor *wider* than the row it
|
|
281
|
-
* opens from). Override `--sidebar-width` at `:root` to move both together, or
|
|
282
|
-
* set `--sidebar-row-width` on the outside surface itself.
|
|
283
|
-
*
|
|
284
|
-
* **Data attributes:**
|
|
285
|
-
*
|
|
286
|
-
* | Data Attribute | Value | Description |
|
|
287
|
-
* | --- | --- | --- |
|
|
288
|
-
* | `data-state` | `"expanded"` \| `"collapsed"` | On the desktop panel surface. Mirrors the root's expanded state and drives the width collapse to the icon rail; descendant parts style off it with `group-data-[state=collapsed]/sidebar-nav:`. |
|
|
289
|
-
* | `data-hydrated` | present one frame after hydration | Presence-only, desktop panel surface. The panel's pre-hydration visibility gate, its width transition, and descendant collapse transitions all key off its absence in CSS (`not-data-hydrated:`, `group-not-data-hydrated/sidebar-nav:`). The stamp waits one frame, so an SSR state correction paints first and snaps instead of animating on page load. |
|
|
290
|
-
* | `data-mobile` | present in the mobile sheet | Presence-only. Marks the `Sheet.Content` presentation used below the root's `mobileBreakpoint`. |
|
|
291
|
-
* | `data-state` | `"open"` \| `"closed"` | In the mobile sheet only, where the panel *is* the `Sheet`'s Radix dialog content element and Radix owns the attribute: the sheet's open/close animation state, not the desktop expanded state. Consumers style against it too. |
|
|
292
|
-
*
|
|
293
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarnav
|
|
294
|
-
*
|
|
295
|
-
* @example
|
|
296
|
-
* ```tsx
|
|
297
|
-
* <Sidebar.Root>
|
|
298
|
-
* <Sidebar.Nav aria-label="Main">
|
|
299
|
-
* <Sidebar.Header>
|
|
300
|
-
* <DropdownMenu.Root>
|
|
301
|
-
* <DropdownMenu.Trigger asChild>
|
|
302
|
-
* <Sidebar.SwitcherTrigger>
|
|
303
|
-
* <GlobeIcon />
|
|
304
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
|
|
305
|
-
* <CaretDownIcon className="text-muted size-4 shrink-0" />
|
|
306
|
-
* </Sidebar.SwitcherTrigger>
|
|
307
|
-
* </DropdownMenu.Trigger>
|
|
308
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
309
|
-
* </DropdownMenu.Root>
|
|
310
|
-
* </Sidebar.Header>
|
|
311
|
-
* <Sidebar.Body>
|
|
312
|
-
* <Sidebar.Group>
|
|
313
|
-
* <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
|
|
314
|
-
* <Sidebar.List>
|
|
315
|
-
* <Sidebar.Item>
|
|
316
|
-
* <Sidebar.ItemButton asChild current>
|
|
317
|
-
* <a href="/endpoints">
|
|
318
|
-
* <GraphIcon />
|
|
319
|
-
* Endpoints
|
|
320
|
-
* </a>
|
|
321
|
-
* </Sidebar.ItemButton>
|
|
322
|
-
* </Sidebar.Item>
|
|
323
|
-
* </Sidebar.List>
|
|
324
|
-
* </Sidebar.Group>
|
|
325
|
-
* </Sidebar.Body>
|
|
326
|
-
* <Sidebar.Footer>
|
|
327
|
-
* <Sidebar.Separator />
|
|
328
|
-
* <DropdownMenu.Root>
|
|
329
|
-
* <DropdownMenu.Trigger asChild>
|
|
330
|
-
* <Sidebar.SwitcherTrigger>
|
|
331
|
-
* <Avatar.Root appearance="square" colorSeed="acc_123">
|
|
332
|
-
* <Avatar.Fallback name="Acme Corp" />
|
|
333
|
-
* </Avatar.Root>
|
|
334
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Acme Corp</span>
|
|
335
|
-
* </Sidebar.SwitcherTrigger>
|
|
336
|
-
* </DropdownMenu.Trigger>
|
|
337
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
338
|
-
* </DropdownMenu.Root>
|
|
339
|
-
* </Sidebar.Footer>
|
|
340
|
-
* </Sidebar.Nav>
|
|
341
|
-
* <Sidebar.Trigger />
|
|
342
|
-
* </Sidebar.Root>
|
|
343
|
-
* ```
|
|
344
|
-
*/
|
|
345
|
-
declare const Nav: ({ "aria-label": ariaLabelProp, "aria-labelledby": ariaLabelledBy, children, className, "data-slot": dataSlot, ...props }: SidebarNavProps) => import("react").JSX.Element;
|
|
346
|
-
/**
|
|
347
|
-
* The props for `Sidebar.Trigger`. `IconButton`'s props, except the parts the
|
|
348
|
-
* trigger owns: `asChild` and `children` are removed (the trigger renders
|
|
349
|
-
* only its icon and `aria-label`; build custom triggers with `useSidebar`
|
|
350
|
-
* instead), and `appearance`, `icon`, `intent`, `label`, and `size` become
|
|
351
|
-
* optional with sidebar defaults.
|
|
352
|
-
*/
|
|
353
|
-
type SidebarTriggerProps = Omit<IconButtonProps, "appearance" | "asChild" | "children" | "icon" | "intent" | "label" | "size"> & WithDataSlot & {
|
|
354
|
-
/**
|
|
355
|
-
* The visual style of the trigger `IconButton`.
|
|
356
|
-
*
|
|
357
|
-
* @default "ghost"
|
|
358
|
-
*/
|
|
359
|
-
appearance?: IconButtonProps["appearance"];
|
|
360
|
-
/**
|
|
361
|
-
* The icon rendered inside the trigger.
|
|
362
|
-
*
|
|
363
|
-
* @default <SidebarSimpleIcon />
|
|
364
|
-
*/
|
|
365
|
-
icon?: ReactNode;
|
|
366
|
-
/**
|
|
367
|
-
* The color intent of the trigger `IconButton`.
|
|
368
|
-
*
|
|
369
|
-
* @default "neutral"
|
|
370
|
-
*/
|
|
371
|
-
intent?: IconButtonProps["intent"];
|
|
372
|
-
/**
|
|
373
|
-
* The accessible name for the trigger, and what its tooltip says. Renders
|
|
374
|
-
* as the button's `aria-label`. Override it for localization.
|
|
375
|
-
*
|
|
376
|
-
* @default "Toggle Sidebar"
|
|
377
|
-
*/
|
|
378
|
-
label?: string;
|
|
379
|
-
/**
|
|
380
|
-
* The keyboard chord that also toggles the sidebar, rendered after the label
|
|
381
|
-
* in the tooltip — usually `<><MetaKey /><Kbd>B</Kbd></>`.
|
|
382
|
-
*
|
|
383
|
-
* Ignored under `Sidebar.Root keyboardShortcut={false}`, so the tooltip can
|
|
384
|
-
* never name a binding that is not bound. Passed rather than built in so the
|
|
385
|
-
* sidebar does not have to reach into another component for the platform
|
|
386
|
-
* modifier glyph — `aria-keyshortcuts` is stamped either way, which is also
|
|
387
|
-
* why the chips render `aria-hidden`.
|
|
388
|
-
*/
|
|
389
|
-
shortcut?: ReactNode;
|
|
390
|
-
/**
|
|
391
|
-
* The size of the trigger `IconButton`. Small, so it sits level with the
|
|
392
|
-
* other `size="sm"` controls in an `AppLayout.Header` row.
|
|
393
|
-
*
|
|
394
|
-
* @default "sm"
|
|
395
|
-
*/
|
|
396
|
-
size?: IconButtonProps["size"];
|
|
397
|
-
};
|
|
398
|
-
/**
|
|
399
|
-
* The button that toggles the sidebar: the mobile sheet below the root's
|
|
400
|
-
* `mobileBreakpoint`, the desktop expanded state otherwise. Renders a small
|
|
401
|
-
* ghost neutral `IconButton` with `aria-expanded` and `aria-controls` wired to
|
|
402
|
-
* the sidebar's `<nav>`. Place it in your app shell's header (for example
|
|
403
|
-
* `AppLayout.Header`) — it must stay visible at every breakpoint where the
|
|
404
|
-
* sidebar can collapse, or users have no way to reopen it.
|
|
405
|
-
*
|
|
406
|
-
* The button is icon-only at every breakpoint, so it always renders a tooltip
|
|
407
|
-
* showing `label` (plus the optional `shortcut` chips). **That means it requires
|
|
408
|
-
* a `TooltipProvider` ancestor, like any `Tooltip.Root`, and throws without
|
|
409
|
-
* one** — mount a single provider at your app root, decoupled from the sidebar,
|
|
410
|
-
* so the app-wide delay and hover settings stay app-wide.
|
|
411
|
-
*
|
|
412
|
-
* It also stamps `aria-keyshortcuts` for the `⌘B` / `Ctrl+B` chord the root
|
|
413
|
-
* binds. The server cannot know the host, so the server HTML and the hydration
|
|
414
|
-
* render carry `Control+B`. React corrects it once after hydration. A trigger
|
|
415
|
-
* that mounts after hydration reads the platform in its first render. Both the
|
|
416
|
-
* attribute and the chips are omitted under `Sidebar.Root keyboardShortcut={false}`.
|
|
417
|
-
*
|
|
418
|
-
* **Data attributes:**
|
|
419
|
-
*
|
|
420
|
-
* | Data Attribute | Value | Description |
|
|
421
|
-
* | --- | --- | --- |
|
|
422
|
-
* | `data-state` | `"expanded"` \| `"collapsed"` | Mirrors what the trigger toggles: the mobile sheet below the root's `mobileBreakpoint`, the desktop panel otherwise. Pairs with `aria-expanded`. |
|
|
423
|
-
* | `data-slot` | `"sidebar-trigger icon-button"` | On the button: the part's slot, joined ahead of `IconButton`'s own. |
|
|
424
|
-
* | `data-slot` | `"sidebar-trigger-tooltip tooltip-content"` | On the tooltip surface, not the button: the styling hook for the label-and-chord popup this part renders, joined ahead of `Tooltip.Content`'s own slot. |
|
|
425
|
-
* | `data-state` | `"delayed-open"` \| `"instant-open"` \| `"closed"` | Read, not stamped: on the tooltip surface, from `Tooltip.Content`. |
|
|
426
|
-
* | `data-side` | `"top"` \| `"right"` \| `"bottom"` \| `"left"` | Read, not stamped: on the tooltip surface, from `Tooltip.Content`. |
|
|
427
|
-
* | `data-slot` | `"sidebar-tooltip-row"` | Inside that surface, on the flex row holding the label and the optional chord chips. Nested inside `Tooltip.Content`'s own `tooltip-label` div. Always present. |
|
|
428
|
-
* | `data-slot` | `"sidebar-tooltip-label"` | On the `<span>` wrapping `label` inside that row. Always present, and `display: contents`, so the label stays a flex item of the row. |
|
|
429
|
-
* | `data-slot` | `"sidebar-tooltip-shortcut"` | On the chord chips. Present only while `shortcut` holds something. Carries `translate="no"`: a chord is a key name, not prose. |
|
|
430
|
-
* | `data-appearance` | `"filled"` \| `"ghost"` \| `"outlined"` | Read, not stamped: the underlying `IconButton` reflects its `appearance`, which this part defaults to `"ghost"`. |
|
|
431
|
-
* | `data-intent` | `"neutral"` | Read, not stamped: the underlying `IconButton` reflects its `intent`, and it draws the neutral tone only. |
|
|
432
|
-
* | `data-size` | `"xs"` \| `"sm"` \| `"md"` \| `"lg"` \| `"xl"` | Read, not stamped: the underlying `IconButton` reflects its `size`, which this part defaults to `"sm"`. |
|
|
433
|
-
*
|
|
434
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar#sidebartrigger
|
|
435
|
-
*
|
|
436
|
-
* @example
|
|
437
|
-
* ```tsx
|
|
438
|
-
* <Sidebar.Root>
|
|
439
|
-
* <Sidebar.Nav aria-label="Main">
|
|
440
|
-
* <Sidebar.Header>
|
|
441
|
-
* <DropdownMenu.Root>
|
|
442
|
-
* <DropdownMenu.Trigger asChild>
|
|
443
|
-
* <Sidebar.SwitcherTrigger>
|
|
444
|
-
* <GlobeIcon />
|
|
445
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
|
|
446
|
-
* <CaretDownIcon className="text-muted size-4 shrink-0" />
|
|
447
|
-
* </Sidebar.SwitcherTrigger>
|
|
448
|
-
* </DropdownMenu.Trigger>
|
|
449
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
450
|
-
* </DropdownMenu.Root>
|
|
451
|
-
* </Sidebar.Header>
|
|
452
|
-
* <Sidebar.Body>
|
|
453
|
-
* <Sidebar.Group>
|
|
454
|
-
* <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
|
|
455
|
-
* <Sidebar.List>
|
|
456
|
-
* <Sidebar.Item>
|
|
457
|
-
* <Sidebar.ItemButton asChild current>
|
|
458
|
-
* <a href="/endpoints">
|
|
459
|
-
* <GraphIcon />
|
|
460
|
-
* Endpoints
|
|
461
|
-
* </a>
|
|
462
|
-
* </Sidebar.ItemButton>
|
|
463
|
-
* </Sidebar.Item>
|
|
464
|
-
* </Sidebar.List>
|
|
465
|
-
* </Sidebar.Group>
|
|
466
|
-
* </Sidebar.Body>
|
|
467
|
-
* <Sidebar.Footer>
|
|
468
|
-
* <Sidebar.Separator />
|
|
469
|
-
* <DropdownMenu.Root>
|
|
470
|
-
* <DropdownMenu.Trigger asChild>
|
|
471
|
-
* <Sidebar.SwitcherTrigger>
|
|
472
|
-
* <Avatar.Root appearance="square" colorSeed="acc_123">
|
|
473
|
-
* <Avatar.Fallback name="Acme Corp" />
|
|
474
|
-
* </Avatar.Root>
|
|
475
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Acme Corp</span>
|
|
476
|
-
* </Sidebar.SwitcherTrigger>
|
|
477
|
-
* </DropdownMenu.Trigger>
|
|
478
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
479
|
-
* </DropdownMenu.Root>
|
|
480
|
-
* </Sidebar.Footer>
|
|
481
|
-
* </Sidebar.Nav>
|
|
482
|
-
* <Sidebar.Trigger />
|
|
483
|
-
* </Sidebar.Root>
|
|
484
|
-
* ```
|
|
485
|
-
*
|
|
486
|
-
* @example
|
|
487
|
-
* Placement within an `AppLayout` shell:
|
|
488
|
-
* ```tsx
|
|
489
|
-
* <Sidebar.Root>
|
|
490
|
-
* <AppLayout.Workspace>
|
|
491
|
-
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
492
|
-
* <AppLayout.Content>
|
|
493
|
-
* <AppLayout.Header>
|
|
494
|
-
* <Sidebar.Trigger />
|
|
495
|
-
* </AppLayout.Header>
|
|
496
|
-
* <AppLayout.Body>…</AppLayout.Body>
|
|
497
|
-
* </AppLayout.Content>
|
|
498
|
-
* </AppLayout.Workspace>
|
|
499
|
-
* </Sidebar.Root>
|
|
500
|
-
* ```
|
|
501
|
-
*/
|
|
502
|
-
declare const Trigger: ({ appearance, "data-slot": dataSlot, icon, intent, label, onClick, shortcut, size, ...props }: SidebarTriggerProps) => import("react").JSX.Element;
|
|
503
|
-
type SidebarHeaderProps = ComponentProps<"div"> & WithAsChild & WithDataSlot;
|
|
504
|
-
/**
|
|
505
|
-
* The top container of a `Sidebar.Nav`, pinned above the scrollable
|
|
506
|
-
* `Sidebar.Body`. Typically holds an app/product switcher built from
|
|
507
|
-
* `Sidebar.SwitcherTrigger` composed with a `DropdownMenu` or `Dialog`.
|
|
508
|
-
*
|
|
509
|
-
* Its **first child** owns a band exactly `--sidebar-header-height` tall
|
|
510
|
-
* (default `4.5rem`) and centers inside it. When a sidebar header is composed
|
|
511
|
-
* inside an `AppLayout`, the toolbar derives its own height from the same
|
|
512
|
-
* variable, so overriding it at a shared ancestor (e.g. `AppLayout.Root`) moves
|
|
513
|
-
* the switcher row and the toolbar together and the alignment holds by
|
|
514
|
-
* construction.
|
|
515
|
-
*
|
|
516
|
-
* Every child after the first stacks flush below the band in its own row, the
|
|
517
|
-
* way rows stack in `Sidebar.Footer` — the band's own lower half is the space
|
|
518
|
-
* between them. The header grows to fit them. The band, and with it the toolbar,
|
|
519
|
-
* stays the height of the switcher row alone, so a search row pinned under the
|
|
520
|
-
* switcher (`Sidebar.SearchTrigger`) needs no override and no hand-copied
|
|
521
|
-
* padding.
|
|
522
|
-
*
|
|
523
|
-
* The alignment is positional: keep the aligned row as the header's first direct
|
|
524
|
-
* child. A wrapper around both rows takes the band itself. A first row taller
|
|
525
|
-
* than the band overflows it — raise the variable instead.
|
|
526
|
-
*
|
|
527
|
-
* **CSS variables (public API):**
|
|
528
|
-
*
|
|
529
|
-
* | CSS Variable | Default | Description |
|
|
530
|
-
* | --- | --- | --- |
|
|
531
|
-
* | `--sidebar-header-height` | `4.5rem` | The first child's band (72px) — the height an `AppLayout.Header` toolbar matches, not a cap on the header, which grows for every row after the first. Set it on a common ancestor of the sidebar and `AppLayout.Header`, not on `Sidebar.Nav`, so both rows read one value. |
|
|
532
|
-
*
|
|
533
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarheader
|
|
534
|
-
*
|
|
535
|
-
* @example
|
|
536
|
-
* ```tsx
|
|
537
|
-
* <Sidebar.Root>
|
|
538
|
-
* <Sidebar.Nav aria-label="Main">
|
|
539
|
-
* <Sidebar.Header>
|
|
540
|
-
* <DropdownMenu.Root>
|
|
541
|
-
* <DropdownMenu.Trigger asChild>
|
|
542
|
-
* <Sidebar.SwitcherTrigger>
|
|
543
|
-
* <GlobeIcon />
|
|
544
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
|
|
545
|
-
* <CaretDownIcon className="text-muted size-4 shrink-0" />
|
|
546
|
-
* </Sidebar.SwitcherTrigger>
|
|
547
|
-
* </DropdownMenu.Trigger>
|
|
548
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
549
|
-
* </DropdownMenu.Root>
|
|
550
|
-
* </Sidebar.Header>
|
|
551
|
-
* <Sidebar.Body>
|
|
552
|
-
* <Sidebar.Group>
|
|
553
|
-
* <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
|
|
554
|
-
* <Sidebar.List>
|
|
555
|
-
* <Sidebar.Item>
|
|
556
|
-
* <Sidebar.ItemButton asChild current>
|
|
557
|
-
* <a href="/endpoints">
|
|
558
|
-
* <GraphIcon />
|
|
559
|
-
* Endpoints
|
|
560
|
-
* </a>
|
|
561
|
-
* </Sidebar.ItemButton>
|
|
562
|
-
* </Sidebar.Item>
|
|
563
|
-
* </Sidebar.List>
|
|
564
|
-
* </Sidebar.Group>
|
|
565
|
-
* </Sidebar.Body>
|
|
566
|
-
* <Sidebar.Footer>
|
|
567
|
-
* <Sidebar.Separator />
|
|
568
|
-
* <DropdownMenu.Root>
|
|
569
|
-
* <DropdownMenu.Trigger asChild>
|
|
570
|
-
* <Sidebar.SwitcherTrigger>
|
|
571
|
-
* <Avatar.Root appearance="square" colorSeed="acc_123">
|
|
572
|
-
* <Avatar.Fallback name="Acme Corp" />
|
|
573
|
-
* </Avatar.Root>
|
|
574
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Acme Corp</span>
|
|
575
|
-
* </Sidebar.SwitcherTrigger>
|
|
576
|
-
* </DropdownMenu.Trigger>
|
|
577
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
578
|
-
* </DropdownMenu.Root>
|
|
579
|
-
* </Sidebar.Footer>
|
|
580
|
-
* </Sidebar.Nav>
|
|
581
|
-
* <Sidebar.Trigger />
|
|
582
|
-
* </Sidebar.Root>
|
|
583
|
-
* ```
|
|
584
|
-
*/
|
|
585
|
-
declare const Header: ({ asChild, children, className, "data-slot": dataSlot, ...props }: SidebarHeaderProps) => import("react").JSX.Element;
|
|
586
|
-
type SidebarBodyProps = ComponentProps<"div"> & WithAsChild & WithDataSlot;
|
|
587
|
-
/**
|
|
588
|
-
* The scrollable middle region of a `Sidebar.Nav`, growing to fill the space
|
|
589
|
-
* between `Sidebar.Header` and `Sidebar.Footer`. Holds the navigation
|
|
590
|
-
* `Sidebar.Group` children. Overflowing edges fade out via the
|
|
591
|
-
* `scroll-fade-y` mask; inside the collapsed icon rail it hides the scrollbar
|
|
592
|
-
* and its reserved gutter, so the fade is the only overflow signal.
|
|
593
|
-
*
|
|
594
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarbody
|
|
595
|
-
*
|
|
596
|
-
* @example
|
|
597
|
-
* ```tsx
|
|
598
|
-
* <Sidebar.Root>
|
|
599
|
-
* <Sidebar.Nav aria-label="Main">
|
|
600
|
-
* <Sidebar.Header>
|
|
601
|
-
* <DropdownMenu.Root>
|
|
602
|
-
* <DropdownMenu.Trigger asChild>
|
|
603
|
-
* <Sidebar.SwitcherTrigger>
|
|
604
|
-
* <GlobeIcon />
|
|
605
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
|
|
606
|
-
* <CaretDownIcon className="text-muted size-4 shrink-0" />
|
|
607
|
-
* </Sidebar.SwitcherTrigger>
|
|
608
|
-
* </DropdownMenu.Trigger>
|
|
609
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
610
|
-
* </DropdownMenu.Root>
|
|
611
|
-
* </Sidebar.Header>
|
|
612
|
-
* <Sidebar.Body>
|
|
613
|
-
* <Sidebar.Group>
|
|
614
|
-
* <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
|
|
615
|
-
* <Sidebar.List>
|
|
616
|
-
* <Sidebar.Item>
|
|
617
|
-
* <Sidebar.ItemButton asChild current>
|
|
618
|
-
* <a href="/endpoints">
|
|
619
|
-
* <GraphIcon />
|
|
620
|
-
* Endpoints
|
|
621
|
-
* </a>
|
|
622
|
-
* </Sidebar.ItemButton>
|
|
623
|
-
* </Sidebar.Item>
|
|
624
|
-
* </Sidebar.List>
|
|
625
|
-
* </Sidebar.Group>
|
|
626
|
-
* </Sidebar.Body>
|
|
627
|
-
* <Sidebar.Footer>
|
|
628
|
-
* <Sidebar.Separator />
|
|
629
|
-
* <DropdownMenu.Root>
|
|
630
|
-
* <DropdownMenu.Trigger asChild>
|
|
631
|
-
* <Sidebar.SwitcherTrigger>
|
|
632
|
-
* <Avatar.Root appearance="square" colorSeed="acc_123">
|
|
633
|
-
* <Avatar.Fallback name="Acme Corp" />
|
|
634
|
-
* </Avatar.Root>
|
|
635
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Acme Corp</span>
|
|
636
|
-
* </Sidebar.SwitcherTrigger>
|
|
637
|
-
* </DropdownMenu.Trigger>
|
|
638
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
639
|
-
* </DropdownMenu.Root>
|
|
640
|
-
* </Sidebar.Footer>
|
|
641
|
-
* </Sidebar.Nav>
|
|
642
|
-
* <Sidebar.Trigger />
|
|
643
|
-
* </Sidebar.Root>
|
|
644
|
-
* ```
|
|
645
|
-
*/
|
|
646
|
-
declare const Body: ({ asChild, children, className, "data-slot": dataSlot, ...props }: SidebarBodyProps) => import("react").JSX.Element;
|
|
647
|
-
type SidebarFooterProps = ComponentProps<"div"> & WithAsChild & WithDataSlot;
|
|
648
|
-
/**
|
|
649
|
-
* The bottom container of a `Sidebar.Nav`, pinned below the scrollable
|
|
650
|
-
* `Sidebar.Body`. Typically holds cross-product items and the account/user
|
|
651
|
-
* switcher row (`Sidebar.SwitcherTrigger` with an
|
|
652
|
-
* [Avatar](https://mantle.ngrok.com/components/data-display/avatar)).
|
|
653
|
-
*
|
|
654
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarfooter
|
|
655
|
-
*
|
|
656
|
-
* @example
|
|
657
|
-
* ```tsx
|
|
658
|
-
* <Sidebar.Root>
|
|
659
|
-
* <Sidebar.Nav aria-label="Main">
|
|
660
|
-
* <Sidebar.Header>
|
|
661
|
-
* <DropdownMenu.Root>
|
|
662
|
-
* <DropdownMenu.Trigger asChild>
|
|
663
|
-
* <Sidebar.SwitcherTrigger>
|
|
664
|
-
* <GlobeIcon />
|
|
665
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
|
|
666
|
-
* <CaretDownIcon className="text-muted size-4 shrink-0" />
|
|
667
|
-
* </Sidebar.SwitcherTrigger>
|
|
668
|
-
* </DropdownMenu.Trigger>
|
|
669
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
670
|
-
* </DropdownMenu.Root>
|
|
671
|
-
* </Sidebar.Header>
|
|
672
|
-
* <Sidebar.Body>
|
|
673
|
-
* <Sidebar.Group>
|
|
674
|
-
* <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
|
|
675
|
-
* <Sidebar.List>
|
|
676
|
-
* <Sidebar.Item>
|
|
677
|
-
* <Sidebar.ItemButton asChild current>
|
|
678
|
-
* <a href="/endpoints">
|
|
679
|
-
* <GraphIcon />
|
|
680
|
-
* Endpoints
|
|
681
|
-
* </a>
|
|
682
|
-
* </Sidebar.ItemButton>
|
|
683
|
-
* </Sidebar.Item>
|
|
684
|
-
* </Sidebar.List>
|
|
685
|
-
* </Sidebar.Group>
|
|
686
|
-
* </Sidebar.Body>
|
|
687
|
-
* <Sidebar.Footer>
|
|
688
|
-
* <Sidebar.Separator />
|
|
689
|
-
* <DropdownMenu.Root>
|
|
690
|
-
* <DropdownMenu.Trigger asChild>
|
|
691
|
-
* <Sidebar.SwitcherTrigger>
|
|
692
|
-
* <Avatar.Root appearance="square" colorSeed="acc_123">
|
|
693
|
-
* <Avatar.Fallback name="Acme Corp" />
|
|
694
|
-
* </Avatar.Root>
|
|
695
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Acme Corp</span>
|
|
696
|
-
* </Sidebar.SwitcherTrigger>
|
|
697
|
-
* </DropdownMenu.Trigger>
|
|
698
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
699
|
-
* </DropdownMenu.Root>
|
|
700
|
-
* </Sidebar.Footer>
|
|
701
|
-
* </Sidebar.Nav>
|
|
702
|
-
* <Sidebar.Trigger />
|
|
703
|
-
* </Sidebar.Root>
|
|
704
|
-
* ```
|
|
705
|
-
*/
|
|
706
|
-
declare const Footer: ({ asChild, children, className, "data-slot": dataSlot, ...props }: SidebarFooterProps) => import("react").JSX.Element;
|
|
707
|
-
type SidebarGroupProps = ComponentProps<"div"> & WithAsChild & WithDataSlot;
|
|
708
|
-
/**
|
|
709
|
-
* A grouping container inside `Sidebar.Body` pairing an optional
|
|
710
|
-
* `Sidebar.GroupLabel` with a `Sidebar.List`. When a label is present, the
|
|
711
|
-
* group wires it to the list via `aria-labelledby` so assistive technology
|
|
712
|
-
* announces the list with the group's name.
|
|
713
|
-
*
|
|
714
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar#sidebargroup
|
|
715
|
-
*
|
|
716
|
-
* @example
|
|
717
|
-
* ```tsx
|
|
718
|
-
* <Sidebar.Root>
|
|
719
|
-
* <Sidebar.Nav aria-label="Main">
|
|
720
|
-
* <Sidebar.Header>
|
|
721
|
-
* <DropdownMenu.Root>
|
|
722
|
-
* <DropdownMenu.Trigger asChild>
|
|
723
|
-
* <Sidebar.SwitcherTrigger>
|
|
724
|
-
* <GlobeIcon />
|
|
725
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
|
|
726
|
-
* <CaretDownIcon className="text-muted size-4 shrink-0" />
|
|
727
|
-
* </Sidebar.SwitcherTrigger>
|
|
728
|
-
* </DropdownMenu.Trigger>
|
|
729
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
730
|
-
* </DropdownMenu.Root>
|
|
731
|
-
* </Sidebar.Header>
|
|
732
|
-
* <Sidebar.Body>
|
|
733
|
-
* <Sidebar.Group>
|
|
734
|
-
* <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
|
|
735
|
-
* <Sidebar.List>
|
|
736
|
-
* <Sidebar.Item>
|
|
737
|
-
* <Sidebar.ItemButton asChild current>
|
|
738
|
-
* <a href="/endpoints">
|
|
739
|
-
* <GraphIcon />
|
|
740
|
-
* Endpoints
|
|
741
|
-
* </a>
|
|
742
|
-
* </Sidebar.ItemButton>
|
|
743
|
-
* </Sidebar.Item>
|
|
744
|
-
* </Sidebar.List>
|
|
745
|
-
* </Sidebar.Group>
|
|
746
|
-
* </Sidebar.Body>
|
|
747
|
-
* <Sidebar.Footer>
|
|
748
|
-
* <Sidebar.Separator />
|
|
749
|
-
* <DropdownMenu.Root>
|
|
750
|
-
* <DropdownMenu.Trigger asChild>
|
|
751
|
-
* <Sidebar.SwitcherTrigger>
|
|
752
|
-
* <Avatar.Root appearance="square" colorSeed="acc_123">
|
|
753
|
-
* <Avatar.Fallback name="Acme Corp" />
|
|
754
|
-
* </Avatar.Root>
|
|
755
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Acme Corp</span>
|
|
756
|
-
* </Sidebar.SwitcherTrigger>
|
|
757
|
-
* </DropdownMenu.Trigger>
|
|
758
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
759
|
-
* </DropdownMenu.Root>
|
|
760
|
-
* </Sidebar.Footer>
|
|
761
|
-
* </Sidebar.Nav>
|
|
762
|
-
* <Sidebar.Trigger />
|
|
763
|
-
* </Sidebar.Root>
|
|
764
|
-
* ```
|
|
765
|
-
*/
|
|
766
|
-
declare const Group: ({ asChild, children, className, "data-slot": dataSlot, ...props }: SidebarGroupProps) => import("react").JSX.Element;
|
|
767
|
-
type SidebarGroupLabelProps = ComponentProps<"div"> & WithAsChild & WithDataSlot;
|
|
768
|
-
/**
|
|
769
|
-
* The muted label of a `Sidebar.Group`, rendered above its `Sidebar.List`.
|
|
770
|
-
* Renders a `<div>` (not a heading, so the sidebar never dictates the page's
|
|
771
|
-
* heading outline); inside a `Sidebar.Group` the group links it to the
|
|
772
|
-
* sibling list via `aria-labelledby`. Pass `asChild` to render a heading at a
|
|
773
|
-
* level you control.
|
|
774
|
-
*
|
|
775
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar#sidebargrouplabel
|
|
776
|
-
*
|
|
777
|
-
* @example
|
|
778
|
-
* ```tsx
|
|
779
|
-
* <Sidebar.Root>
|
|
780
|
-
* <Sidebar.Nav aria-label="Main">
|
|
781
|
-
* <Sidebar.Header>
|
|
782
|
-
* <DropdownMenu.Root>
|
|
783
|
-
* <DropdownMenu.Trigger asChild>
|
|
784
|
-
* <Sidebar.SwitcherTrigger>
|
|
785
|
-
* <GlobeIcon />
|
|
786
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
|
|
787
|
-
* <CaretDownIcon className="text-muted size-4 shrink-0" />
|
|
788
|
-
* </Sidebar.SwitcherTrigger>
|
|
789
|
-
* </DropdownMenu.Trigger>
|
|
790
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
791
|
-
* </DropdownMenu.Root>
|
|
792
|
-
* </Sidebar.Header>
|
|
793
|
-
* <Sidebar.Body>
|
|
794
|
-
* <Sidebar.Group>
|
|
795
|
-
* <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
|
|
796
|
-
* <Sidebar.List>
|
|
797
|
-
* <Sidebar.Item>
|
|
798
|
-
* <Sidebar.ItemButton asChild current>
|
|
799
|
-
* <a href="/endpoints">
|
|
800
|
-
* <GraphIcon />
|
|
801
|
-
* Endpoints
|
|
802
|
-
* </a>
|
|
803
|
-
* </Sidebar.ItemButton>
|
|
804
|
-
* </Sidebar.Item>
|
|
805
|
-
* </Sidebar.List>
|
|
806
|
-
* </Sidebar.Group>
|
|
807
|
-
* </Sidebar.Body>
|
|
808
|
-
* <Sidebar.Footer>
|
|
809
|
-
* <Sidebar.Separator />
|
|
810
|
-
* <DropdownMenu.Root>
|
|
811
|
-
* <DropdownMenu.Trigger asChild>
|
|
812
|
-
* <Sidebar.SwitcherTrigger>
|
|
813
|
-
* <Avatar.Root appearance="square" colorSeed="acc_123">
|
|
814
|
-
* <Avatar.Fallback name="Acme Corp" />
|
|
815
|
-
* </Avatar.Root>
|
|
816
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Acme Corp</span>
|
|
817
|
-
* </Sidebar.SwitcherTrigger>
|
|
818
|
-
* </DropdownMenu.Trigger>
|
|
819
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
820
|
-
* </DropdownMenu.Root>
|
|
821
|
-
* </Sidebar.Footer>
|
|
822
|
-
* </Sidebar.Nav>
|
|
823
|
-
* <Sidebar.Trigger />
|
|
824
|
-
* </Sidebar.Root>
|
|
825
|
-
* ```
|
|
826
|
-
*/
|
|
827
|
-
declare const GroupLabel: ({ asChild, children, className, "data-slot": dataSlot, id: idProp, ...props }: SidebarGroupLabelProps) => import("react").JSX.Element;
|
|
828
|
-
type SidebarListProps = ComponentProps<"ul"> & WithAsChild & WithDataSlot;
|
|
829
|
-
/**
|
|
830
|
-
* The `<ul>` list of navigation rows inside a `Sidebar.Group`. When the group
|
|
831
|
-
* has a `Sidebar.GroupLabel`, the list is announced with the group's name via
|
|
832
|
-
* `aria-labelledby`.
|
|
833
|
-
*
|
|
834
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarlist
|
|
835
|
-
*
|
|
836
|
-
* @example
|
|
837
|
-
* ```tsx
|
|
838
|
-
* <Sidebar.Root>
|
|
839
|
-
* <Sidebar.Nav aria-label="Main">
|
|
840
|
-
* <Sidebar.Header>
|
|
841
|
-
* <DropdownMenu.Root>
|
|
842
|
-
* <DropdownMenu.Trigger asChild>
|
|
843
|
-
* <Sidebar.SwitcherTrigger>
|
|
844
|
-
* <GlobeIcon />
|
|
845
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
|
|
846
|
-
* <CaretDownIcon className="text-muted size-4 shrink-0" />
|
|
847
|
-
* </Sidebar.SwitcherTrigger>
|
|
848
|
-
* </DropdownMenu.Trigger>
|
|
849
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
850
|
-
* </DropdownMenu.Root>
|
|
851
|
-
* </Sidebar.Header>
|
|
852
|
-
* <Sidebar.Body>
|
|
853
|
-
* <Sidebar.Group>
|
|
854
|
-
* <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
|
|
855
|
-
* <Sidebar.List>
|
|
856
|
-
* <Sidebar.Item>
|
|
857
|
-
* <Sidebar.ItemButton asChild current>
|
|
858
|
-
* <a href="/endpoints">
|
|
859
|
-
* <GraphIcon />
|
|
860
|
-
* Endpoints
|
|
861
|
-
* </a>
|
|
862
|
-
* </Sidebar.ItemButton>
|
|
863
|
-
* </Sidebar.Item>
|
|
864
|
-
* </Sidebar.List>
|
|
865
|
-
* </Sidebar.Group>
|
|
866
|
-
* </Sidebar.Body>
|
|
867
|
-
* <Sidebar.Footer>
|
|
868
|
-
* <Sidebar.Separator />
|
|
869
|
-
* <DropdownMenu.Root>
|
|
870
|
-
* <DropdownMenu.Trigger asChild>
|
|
871
|
-
* <Sidebar.SwitcherTrigger>
|
|
872
|
-
* <Avatar.Root appearance="square" colorSeed="acc_123">
|
|
873
|
-
* <Avatar.Fallback name="Acme Corp" />
|
|
874
|
-
* </Avatar.Root>
|
|
875
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Acme Corp</span>
|
|
876
|
-
* </Sidebar.SwitcherTrigger>
|
|
877
|
-
* </DropdownMenu.Trigger>
|
|
878
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
879
|
-
* </DropdownMenu.Root>
|
|
880
|
-
* </Sidebar.Footer>
|
|
881
|
-
* </Sidebar.Nav>
|
|
882
|
-
* <Sidebar.Trigger />
|
|
883
|
-
* </Sidebar.Root>
|
|
884
|
-
* ```
|
|
885
|
-
*/
|
|
886
|
-
declare const List: ({ "aria-labelledby": ariaLabelledBy, asChild, children, className, "data-slot": dataSlot, ...props }: SidebarListProps) => import("react").JSX.Element;
|
|
887
|
-
type SidebarItemProps = ComponentProps<"li"> & WithAsChild & WithDataSlot;
|
|
888
|
-
/**
|
|
889
|
-
* A single `<li>` row of a `Sidebar.List`. A plain wrapper — the interactive
|
|
890
|
-
* element is the `Sidebar.ItemButton` child, so props, `ref`, and `className`
|
|
891
|
-
* all target the list item itself.
|
|
892
|
-
*
|
|
893
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar#sidebaritem
|
|
894
|
-
*
|
|
895
|
-
* @example
|
|
896
|
-
* ```tsx
|
|
897
|
-
* <Sidebar.Root>
|
|
898
|
-
* <Sidebar.Nav aria-label="Main">
|
|
899
|
-
* <Sidebar.Header>
|
|
900
|
-
* <DropdownMenu.Root>
|
|
901
|
-
* <DropdownMenu.Trigger asChild>
|
|
902
|
-
* <Sidebar.SwitcherTrigger>
|
|
903
|
-
* <GlobeIcon />
|
|
904
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
|
|
905
|
-
* <CaretDownIcon className="text-muted size-4 shrink-0" />
|
|
906
|
-
* </Sidebar.SwitcherTrigger>
|
|
907
|
-
* </DropdownMenu.Trigger>
|
|
908
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
909
|
-
* </DropdownMenu.Root>
|
|
910
|
-
* </Sidebar.Header>
|
|
911
|
-
* <Sidebar.Body>
|
|
912
|
-
* <Sidebar.Group>
|
|
913
|
-
* <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
|
|
914
|
-
* <Sidebar.List>
|
|
915
|
-
* <Sidebar.Item>
|
|
916
|
-
* <Sidebar.ItemButton asChild current>
|
|
917
|
-
* <a href="/endpoints">
|
|
918
|
-
* <GraphIcon />
|
|
919
|
-
* Endpoints
|
|
920
|
-
* </a>
|
|
921
|
-
* </Sidebar.ItemButton>
|
|
922
|
-
* </Sidebar.Item>
|
|
923
|
-
* </Sidebar.List>
|
|
924
|
-
* </Sidebar.Group>
|
|
925
|
-
* </Sidebar.Body>
|
|
926
|
-
* <Sidebar.Footer>
|
|
927
|
-
* <Sidebar.Separator />
|
|
928
|
-
* <DropdownMenu.Root>
|
|
929
|
-
* <DropdownMenu.Trigger asChild>
|
|
930
|
-
* <Sidebar.SwitcherTrigger>
|
|
931
|
-
* <Avatar.Root appearance="square" colorSeed="acc_123">
|
|
932
|
-
* <Avatar.Fallback name="Acme Corp" />
|
|
933
|
-
* </Avatar.Root>
|
|
934
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Acme Corp</span>
|
|
935
|
-
* </Sidebar.SwitcherTrigger>
|
|
936
|
-
* </DropdownMenu.Trigger>
|
|
937
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
938
|
-
* </DropdownMenu.Root>
|
|
939
|
-
* </Sidebar.Footer>
|
|
940
|
-
* </Sidebar.Nav>
|
|
941
|
-
* <Sidebar.Trigger />
|
|
942
|
-
* </Sidebar.Root>
|
|
943
|
-
* ```
|
|
944
|
-
*/
|
|
945
|
-
declare const Item: ({ asChild, children, className, "data-slot": dataSlot, ...props }: SidebarItemProps) => import("react").JSX.Element;
|
|
946
|
-
type SidebarItemButtonProps = ComponentProps<"button"> & WithAsChild & WithDataSlot & {
|
|
947
|
-
/**
|
|
948
|
-
* Marks this row as the current page: sets `aria-current="page"` and the
|
|
949
|
-
* `data-current` styling state. Consumers control it from their router,
|
|
950
|
-
* e.g. `current={pathname === "/endpoints"}`.
|
|
951
|
-
*
|
|
952
|
-
* A composed child that sets `aria-current="page"` itself (react-router's
|
|
953
|
-
* `NavLink` does) already gets the current-row treatment, so it needs no
|
|
954
|
-
* `current`. This prop is for the rows whose parent knows.
|
|
955
|
-
*/
|
|
956
|
-
current?: boolean;
|
|
957
|
-
};
|
|
958
|
-
/**
|
|
959
|
-
* The interactive row of a `Sidebar.Item`: a leading icon slot and a
|
|
960
|
-
* truncating label. Renders a `<button>` by default; pass `asChild` to
|
|
961
|
-
* compose with a router link. `current` sets `aria-current="page"` and the
|
|
962
|
-
* `data-current` visual state.
|
|
963
|
-
*
|
|
964
|
-
* The current-row treatment follows either attribute, so a composed child that
|
|
965
|
-
* marks itself as the current page gets it without `current`: a react-router
|
|
966
|
-
* `NavLink` needs nothing but its `to`, since it already resolved the match the
|
|
967
|
-
* parent would otherwise re-derive:
|
|
968
|
-
*
|
|
969
|
-
* ```tsx
|
|
970
|
-
* <Sidebar.ItemButton asChild>
|
|
971
|
-
* <NavLink to="/endpoints">
|
|
972
|
-
* <GraphIcon />
|
|
973
|
-
* Endpoints
|
|
974
|
-
* </NavLink>
|
|
975
|
-
* </Sidebar.ItemButton>
|
|
976
|
-
* ```
|
|
977
|
-
*
|
|
978
|
-
* The row sizes its **leading** icon to 20px. Trailing visuals (a caret, a
|
|
979
|
-
* count, a status dot) size themselves, so a row composed with
|
|
980
|
-
* `DropdownMenu.Trigger asChild` can end in `<CaretDownIcon className="text-muted
|
|
981
|
-
* ml-auto size-4 shrink-0" />`. That row stays highlighted while its menu is
|
|
982
|
-
* open (`data-state="open"`, supplied by the trigger). Give that menu the same
|
|
983
|
-
* width floor the switcher rows use, `className="min-w-(--sidebar-row-width)"`,
|
|
984
|
-
* so it keeps the expanded row's width instead of shrinking to this row's 28px
|
|
985
|
-
* rail chip (see `Sidebar.SwitcherTrigger` for the whole contract).
|
|
986
|
-
*
|
|
987
|
-
* **Data attributes:**
|
|
988
|
-
*
|
|
989
|
-
* | Data Attribute | Value | Description |
|
|
990
|
-
* | --- | --- | --- |
|
|
991
|
-
* | `data-current` | present when `current` | Presence-only, never `"false"`, since the `data-current:` variant matches the attribute's existence. Styles the current row. |
|
|
992
|
-
* | `aria-current` | `"page"` when `current` | Set alongside `data-current`. The current-row styling follows *either*, so a composed child that marks itself (react-router's `NavLink`) gets the treatment without the prop. |
|
|
993
|
-
* | `data-state` | `"open"` \| `"closed"` | **Read, not stamped**: supplied by a composing `DropdownMenu.Trigger` / `Dialog.Trigger`. The row styles against it so it stays highlighted while its menu is open. Inside `Sidebar.Tooltip` the tooltip's own `data-state` replaces this one, so the open highlight also keys on `aria-expanded`. |
|
|
994
|
-
*
|
|
995
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar#sidebaritembutton
|
|
996
|
-
*
|
|
997
|
-
* @example
|
|
998
|
-
* ```tsx
|
|
999
|
-
* <Sidebar.Root>
|
|
1000
|
-
* <Sidebar.Nav aria-label="Main">
|
|
1001
|
-
* <Sidebar.Header>
|
|
1002
|
-
* <DropdownMenu.Root>
|
|
1003
|
-
* <DropdownMenu.Trigger asChild>
|
|
1004
|
-
* <Sidebar.SwitcherTrigger>
|
|
1005
|
-
* <GlobeIcon />
|
|
1006
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
|
|
1007
|
-
* <CaretDownIcon className="text-muted size-4 shrink-0" />
|
|
1008
|
-
* </Sidebar.SwitcherTrigger>
|
|
1009
|
-
* </DropdownMenu.Trigger>
|
|
1010
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
1011
|
-
* </DropdownMenu.Root>
|
|
1012
|
-
* </Sidebar.Header>
|
|
1013
|
-
* <Sidebar.Body>
|
|
1014
|
-
* <Sidebar.Group>
|
|
1015
|
-
* <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
|
|
1016
|
-
* <Sidebar.List>
|
|
1017
|
-
* <Sidebar.Item>
|
|
1018
|
-
* <Sidebar.ItemButton asChild current>
|
|
1019
|
-
* <a href="/endpoints">
|
|
1020
|
-
* <GraphIcon />
|
|
1021
|
-
* Endpoints
|
|
1022
|
-
* </a>
|
|
1023
|
-
* </Sidebar.ItemButton>
|
|
1024
|
-
* </Sidebar.Item>
|
|
1025
|
-
* </Sidebar.List>
|
|
1026
|
-
* </Sidebar.Group>
|
|
1027
|
-
* </Sidebar.Body>
|
|
1028
|
-
* <Sidebar.Footer>
|
|
1029
|
-
* <Sidebar.Separator />
|
|
1030
|
-
* <DropdownMenu.Root>
|
|
1031
|
-
* <DropdownMenu.Trigger asChild>
|
|
1032
|
-
* <Sidebar.SwitcherTrigger>
|
|
1033
|
-
* <Avatar.Root appearance="square" colorSeed="acc_123">
|
|
1034
|
-
* <Avatar.Fallback name="Acme Corp" />
|
|
1035
|
-
* </Avatar.Root>
|
|
1036
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Acme Corp</span>
|
|
1037
|
-
* </Sidebar.SwitcherTrigger>
|
|
1038
|
-
* </DropdownMenu.Trigger>
|
|
1039
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
1040
|
-
* </DropdownMenu.Root>
|
|
1041
|
-
* </Sidebar.Footer>
|
|
1042
|
-
* </Sidebar.Nav>
|
|
1043
|
-
* <Sidebar.Trigger />
|
|
1044
|
-
* </Sidebar.Root>
|
|
1045
|
-
* ```
|
|
1046
|
-
*/
|
|
1047
|
-
declare const ItemButton: ({ asChild, children, className, current, "data-slot": dataSlot, type, ...props }: SidebarItemButtonProps) => import("react").JSX.Element;
|
|
1048
|
-
type SidebarSearchTriggerProps = ComponentProps<"button"> & WithDataSlot & ({
|
|
1049
|
-
/**
|
|
1050
|
-
* Compose the search row's styling onto your own element. Then the
|
|
1051
|
-
* row's entire content is yours — including any shortcut hint, which
|
|
1052
|
-
* `shortcut` cannot add to a cloned child.
|
|
1053
|
-
*/
|
|
1054
|
-
asChild: true;
|
|
1055
|
-
shortcut?: never;
|
|
1056
|
-
} | {
|
|
1057
|
-
/**
|
|
1058
|
-
* Compose the search row's styling onto your own element. Then the
|
|
1059
|
-
* row's entire content is yours — including any shortcut hint, which
|
|
1060
|
-
* `shortcut` cannot add to a cloned child.
|
|
1061
|
-
*/
|
|
1062
|
-
asChild?: false;
|
|
1063
|
-
/**
|
|
1064
|
-
* The keyboard hint for the chord that opens the same palette — usually
|
|
1065
|
-
* `<><MetaKey /><Kbd>K</Kbd></>`.
|
|
1066
|
-
*
|
|
1067
|
-
* Rendered pinned to the end of the row and **revealed only on hover or
|
|
1068
|
-
* keyboard focus**, so the row reads as a quiet navigation item at rest
|
|
1069
|
-
* and teaches the chord at the moment a user reaches for it. It is
|
|
1070
|
-
* `aria-hidden` and dropped outright in the collapsed rail: the chord is
|
|
1071
|
-
* announced by the `aria-keyshortcuts` that `Command.SearchTrigger`
|
|
1072
|
-
* adds, so repeating it here would announce it twice.
|
|
1073
|
-
*
|
|
1074
|
-
* Passed rather than built in, so the sidebar does not have to know
|
|
1075
|
-
* which chord your palette binds.
|
|
1076
|
-
*/
|
|
1077
|
-
shortcut?: ReactNode;
|
|
1078
|
-
});
|
|
1079
|
-
/**
|
|
1080
|
-
* The search row — the row that opens a search or command palette.
|
|
1081
|
-
*
|
|
1082
|
-
* Put it at the top of `Sidebar.Body`, above the first `Sidebar.Group`: it lands
|
|
1083
|
-
* in the same `px-3` gutter as the navigation rows, so it shares their column in
|
|
1084
|
-
* both panel states, and it scrolls with them.
|
|
1085
|
-
*
|
|
1086
|
-
* `Sidebar.Header`, under the switcher, also works, and pins the row above the
|
|
1087
|
-
* scrolling body instead. The switcher stays the header's first child, so it
|
|
1088
|
-
* keeps the `--sidebar-header-height` band an `AppLayout.Header` toolbar
|
|
1089
|
-
* matches, and this row takes the next row down — the header grows for it, so
|
|
1090
|
-
* nothing needs a token override. The header reserves no scrollbar gutter, so on
|
|
1091
|
-
* a platform whose scrollbars take space the row runs wider than the navigation
|
|
1092
|
-
* rows below it, which sit inside `Sidebar.Body`'s reserved gutter.
|
|
1093
|
-
*
|
|
1094
|
-
* It is deliberately a navigation row and not a text field. The row is the same
|
|
1095
|
-
* chrome as a `Sidebar.ItemButton` — same height, padding, radius, hover, and
|
|
1096
|
-
* the same 28px chip in the collapsed icon rail — because a search entry point
|
|
1097
|
-
* in a sidebar is one of the rows, not a form control wedged among them. The
|
|
1098
|
-
* `shortcut` hint appears on hover or focus and is otherwise invisible, which
|
|
1099
|
-
* keeps the resting panel quiet.
|
|
1100
|
-
*
|
|
1101
|
-
* A styled button only — it is not wired to any state. Compose it with
|
|
1102
|
-
* [`Command.SearchTrigger`](https://mantle.ngrok.com/components/navigation/command#commandsearchtrigger),
|
|
1103
|
-
* which supplies the dialog wiring, `aria-keyshortcuts`, and the behavior that
|
|
1104
|
-
* makes typing or pasting into the row open the palette with that text already
|
|
1105
|
-
* in the query. Wrap the pair in `Sidebar.Tooltip` so the row keeps a visible
|
|
1106
|
-
* label once the panel collapses.
|
|
1107
|
-
*
|
|
1108
|
-
* Like every row, the rail clips everything after the leading icon rather than
|
|
1109
|
-
* removing it, so the button keeps its accessible name as a chip.
|
|
1110
|
-
*
|
|
1111
|
-
* **Data attributes:**
|
|
1112
|
-
*
|
|
1113
|
-
* | Data Attribute | Value | Description |
|
|
1114
|
-
* | --- | --- | --- |
|
|
1115
|
-
* | `data-slot` | `"sidebar-search-trigger"` | On the row element. |
|
|
1116
|
-
* | `data-slot` | `"sidebar-search-trigger-label"` | On the `<span>` wrapping `children` on the default `button` path. Absent under `asChild`, which renders no sibling. Always `display: contents`, so your icon and label stay flex items of the row. |
|
|
1117
|
-
* | `data-slot` | `"sidebar-search-trigger-shortcut"` | On the chord chips. Always present on the default `button` path, and `display: none` while it is empty. Absent under `asChild`, where the props union forbids `shortcut`. Carries `translate="no"`: a chord is a key name, not prose. |
|
|
1118
|
-
* | `data-state` | `"open"` \| `"closed"` | **Read, not stamped**: supplied by the composing `Command.SearchTrigger` / `Dialog.Trigger`. The row stays highlighted while its palette is open. |
|
|
1119
|
-
*
|
|
1120
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarsearchtrigger
|
|
1121
|
-
*
|
|
1122
|
-
* @example
|
|
1123
|
-
* ```tsx
|
|
1124
|
-
* <Sidebar.Root>
|
|
1125
|
-
* <Command.DialogRoot>
|
|
1126
|
-
* <Sidebar.Nav aria-label="Main">
|
|
1127
|
-
* <Sidebar.Header>
|
|
1128
|
-
* <Sidebar.SwitcherTrigger>
|
|
1129
|
-
* <GlobeIcon />
|
|
1130
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
|
|
1131
|
-
* </Sidebar.SwitcherTrigger>
|
|
1132
|
-
* </Sidebar.Header>
|
|
1133
|
-
* <Sidebar.Body>
|
|
1134
|
-
* <Sidebar.Tooltip label="Search">
|
|
1135
|
-
* <Command.SearchTrigger>
|
|
1136
|
-
* <Sidebar.SearchTrigger
|
|
1137
|
-
* shortcut={
|
|
1138
|
-
* <>
|
|
1139
|
-
* <MetaKey />
|
|
1140
|
-
* <Kbd>K</Kbd>
|
|
1141
|
-
* </>
|
|
1142
|
-
* }
|
|
1143
|
-
* >
|
|
1144
|
-
* <MagnifyingGlassIcon />
|
|
1145
|
-
* <span className="min-w-0 flex-1 truncate">Search</span>
|
|
1146
|
-
* </Sidebar.SearchTrigger>
|
|
1147
|
-
* </Command.SearchTrigger>
|
|
1148
|
-
* </Sidebar.Tooltip>
|
|
1149
|
-
* <Sidebar.Group>
|
|
1150
|
-
* <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
|
|
1151
|
-
* <Sidebar.List>
|
|
1152
|
-
* <Sidebar.Item>
|
|
1153
|
-
* <Sidebar.ItemButton asChild current>
|
|
1154
|
-
* <a href="/endpoints">
|
|
1155
|
-
* <GraphIcon />
|
|
1156
|
-
* Endpoints
|
|
1157
|
-
* </a>
|
|
1158
|
-
* </Sidebar.ItemButton>
|
|
1159
|
-
* </Sidebar.Item>
|
|
1160
|
-
* </Sidebar.List>
|
|
1161
|
-
* </Sidebar.Group>
|
|
1162
|
-
* </Sidebar.Body>
|
|
1163
|
-
* </Sidebar.Nav>
|
|
1164
|
-
* <Command.DialogContent>
|
|
1165
|
-
* <Command.Input placeholder="Search endpoints, agents, and settings..." />
|
|
1166
|
-
* <Command.List>
|
|
1167
|
-
* <Command.Empty>No results found.</Command.Empty>
|
|
1168
|
-
* </Command.List>
|
|
1169
|
-
* </Command.DialogContent>
|
|
1170
|
-
* </Command.DialogRoot>
|
|
1171
|
-
* <Sidebar.Trigger />
|
|
1172
|
-
* </Sidebar.Root>
|
|
1173
|
-
* ```
|
|
1174
|
-
*/
|
|
1175
|
-
declare const SearchTrigger: ({ asChild, children, className, "data-slot": dataSlot, shortcut, type, ...props }: SidebarSearchTriggerProps) => import("react").JSX.Element;
|
|
1176
|
-
type SidebarSwitcherTriggerProps = ComponentProps<"button"> & WithAsChild & WithDataSlot;
|
|
1177
|
-
/**
|
|
1178
|
-
* The styled row for the sidebar's switchers: the app/product switcher in
|
|
1179
|
-
* `Sidebar.Header` and the account/user row in `Sidebar.Footer`. A styled
|
|
1180
|
-
* button only: it is not wired to any state. Compose it with
|
|
1181
|
-
* `DropdownMenu.Trigger asChild` or `Dialog.Trigger asChild`, which supply
|
|
1182
|
-
* the open state (`data-state="open"` styling comes for free from those
|
|
1183
|
-
* primitives).
|
|
1184
|
-
*
|
|
1185
|
-
* Inside the collapsed icon rail, the row collapses to its **first child
|
|
1186
|
-
* element**, the leading visual (product icon, account avatar), and the
|
|
1187
|
-
* remaining children become visually hidden while staying in the
|
|
1188
|
-
* accessibility tree, so the button's accessible name is unchanged. Wrap
|
|
1189
|
-
* loose text in an element (e.g. a `<span>`) so it participates.
|
|
1190
|
-
*
|
|
1191
|
-
* A menu opened from the row should be as wide as the row. `width="trigger"`
|
|
1192
|
-
* does that while the panel is expanded, but the row shrinks to a 36px chip in
|
|
1193
|
-
* the icon rail and would drag the menu down to it. Floor the menu at the
|
|
1194
|
-
* expanded row width with `className="min-w-(--sidebar-row-width)"`, the
|
|
1195
|
-
* token `mantle.css` declares at `:root` for exactly this, since the menu
|
|
1196
|
-
* renders in a portal and inherits nothing from the panel.
|
|
1197
|
-
*
|
|
1198
|
-
* - The floor is a no-op while the panel is expanded: the row already measures that wide.
|
|
1199
|
-
* - In the mobile sheet the floor is inert as long as the sheet's row is the wider of the two: `--sidebar-width-mobile` minus `1.5rem` and the sheet's 1px border, vs `--sidebar-width` minus `1rem` (263px vs 192px at the defaults).
|
|
1200
|
-
* - Widen `--sidebar-width-mobile` whenever you widen `--sidebar-width`, or the floor overhangs the sheet.
|
|
1201
|
-
*
|
|
1202
|
-
* **Data attributes:**
|
|
1203
|
-
*
|
|
1204
|
-
* | Data Attribute | Value | Description |
|
|
1205
|
-
* | --- | --- | --- |
|
|
1206
|
-
* | `data-state` | `"open"` \| `"closed"` | **Read, not stamped**: supplied by the composing `DropdownMenu.Trigger` / `Dialog.Trigger`. The row styles against it so it stays highlighted while its menu is open. Inside `Sidebar.Tooltip` the tooltip's own `data-state` replaces this one, so the open highlight also keys on `aria-expanded`. |
|
|
1207
|
-
*
|
|
1208
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarswitchertrigger
|
|
1209
|
-
*
|
|
1210
|
-
* @example
|
|
1211
|
-
* ```tsx
|
|
1212
|
-
* <Sidebar.Root>
|
|
1213
|
-
* <Sidebar.Nav aria-label="Main">
|
|
1214
|
-
* <Sidebar.Header>
|
|
1215
|
-
* <DropdownMenu.Root>
|
|
1216
|
-
* <DropdownMenu.Trigger asChild>
|
|
1217
|
-
* <Sidebar.SwitcherTrigger>
|
|
1218
|
-
* <GlobeIcon />
|
|
1219
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
|
|
1220
|
-
* <CaretDownIcon className="text-muted size-4 shrink-0" />
|
|
1221
|
-
* </Sidebar.SwitcherTrigger>
|
|
1222
|
-
* </DropdownMenu.Trigger>
|
|
1223
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
1224
|
-
* </DropdownMenu.Root>
|
|
1225
|
-
* </Sidebar.Header>
|
|
1226
|
-
* <Sidebar.Body>
|
|
1227
|
-
* <Sidebar.Group>
|
|
1228
|
-
* <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
|
|
1229
|
-
* <Sidebar.List>
|
|
1230
|
-
* <Sidebar.Item>
|
|
1231
|
-
* <Sidebar.ItemButton asChild current>
|
|
1232
|
-
* <a href="/endpoints">
|
|
1233
|
-
* <GraphIcon />
|
|
1234
|
-
* Endpoints
|
|
1235
|
-
* </a>
|
|
1236
|
-
* </Sidebar.ItemButton>
|
|
1237
|
-
* </Sidebar.Item>
|
|
1238
|
-
* </Sidebar.List>
|
|
1239
|
-
* </Sidebar.Group>
|
|
1240
|
-
* </Sidebar.Body>
|
|
1241
|
-
* <Sidebar.Footer>
|
|
1242
|
-
* <Sidebar.Separator />
|
|
1243
|
-
* <DropdownMenu.Root>
|
|
1244
|
-
* <DropdownMenu.Trigger asChild>
|
|
1245
|
-
* <Sidebar.SwitcherTrigger>
|
|
1246
|
-
* <Avatar.Root appearance="square" colorSeed="acc_123">
|
|
1247
|
-
* <Avatar.Fallback name="Acme Corp" />
|
|
1248
|
-
* </Avatar.Root>
|
|
1249
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Acme Corp</span>
|
|
1250
|
-
* </Sidebar.SwitcherTrigger>
|
|
1251
|
-
* </DropdownMenu.Trigger>
|
|
1252
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
1253
|
-
* </DropdownMenu.Root>
|
|
1254
|
-
* </Sidebar.Footer>
|
|
1255
|
-
* </Sidebar.Nav>
|
|
1256
|
-
* <Sidebar.Trigger />
|
|
1257
|
-
* </Sidebar.Root>
|
|
1258
|
-
* ```
|
|
1259
|
-
*/
|
|
1260
|
-
declare const SwitcherTrigger: ({ asChild, children, className, "data-slot": dataSlot, type, ...props }: SidebarSwitcherTriggerProps) => import("react").JSX.Element;
|
|
1261
|
-
/**
|
|
1262
|
-
* The props for `Sidebar.Tooltip`. `Tooltip.Content`'s props (so `className`,
|
|
1263
|
-
* `style`, `ref`, and any `data-*` reach the tooltip surface), except the parts
|
|
1264
|
-
* this row owns: `children` is the row being labeled (not the tooltip body,
|
|
1265
|
-
* which is `label`), and `side` becomes optional with a sidebar default.
|
|
1266
|
-
*/
|
|
1267
|
-
type SidebarTooltipProps = Omit<ComponentProps<typeof Tooltip.Content>, "children" | "side"> & WithDataSlot & {
|
|
1268
|
-
/**
|
|
1269
|
-
* The row this labels — a `Sidebar.ItemButton` or `Sidebar.SwitcherTrigger`,
|
|
1270
|
-
* optionally already wrapped in a `DropdownMenu.Trigger asChild`.
|
|
1271
|
-
*
|
|
1272
|
-
* A single element, required: `Tooltip.Trigger asChild` clones its child, so
|
|
1273
|
-
* text renders nothing a pointer can hover and no children renders no row at
|
|
1274
|
-
* all — both silently.
|
|
1275
|
-
*/
|
|
1276
|
-
children: ReactElement;
|
|
1277
|
-
/**
|
|
1278
|
-
* What the tooltip says. Normally the row's own label text: the rail clips the
|
|
1279
|
-
* visible one, so this is what a sighted pointer user reads. Required: the
|
|
1280
|
-
* rail is the only state that shows a label, so there is no text to fall
|
|
1281
|
-
* back to.
|
|
1282
|
-
*/
|
|
1283
|
-
label: ReactNode;
|
|
1284
|
-
/**
|
|
1285
|
-
* The keyboard chord that reaches the same row, rendered after the label —
|
|
1286
|
-
* usually `<><MetaKey /><Kbd>K</Kbd></>`. The rail hides the row's own
|
|
1287
|
-
* shortcut hint along with its label, so the tooltip is where a pointer user
|
|
1288
|
-
* can still learn the chord. The chips are `aria-hidden`: a tooltip is wired
|
|
1289
|
-
* as its row's `aria-describedby`, and the chord is already announced by the
|
|
1290
|
-
* row's `aria-keyshortcuts`.
|
|
1291
|
-
*
|
|
1292
|
-
* Passed rather than built in, so the sidebar does not have to know which
|
|
1293
|
-
* chord the row's palette or action binds.
|
|
1294
|
-
*/
|
|
1295
|
-
shortcut?: ReactNode;
|
|
1296
|
-
/**
|
|
1297
|
-
* Which side of the row the tooltip opens on. The rail sits at the inline
|
|
1298
|
-
* start of the viewport, so the default points the tooltip away from it.
|
|
1299
|
-
*
|
|
1300
|
-
* @default "right"
|
|
1301
|
-
*/
|
|
1302
|
-
side?: ComponentProps<typeof Tooltip.Content>["side"];
|
|
1303
|
-
};
|
|
1304
|
-
/**
|
|
1305
|
-
* Labels a sidebar row while — and only while — the desktop panel is collapsed
|
|
1306
|
-
* to the icon rail. Wrap it around a `Sidebar.ItemButton` or
|
|
1307
|
-
* `Sidebar.SwitcherTrigger`.
|
|
1308
|
-
*
|
|
1309
|
-
* The collapsed rail keeps every row's label in the accessibility tree (clipped,
|
|
1310
|
-
* not removed), which serves screen-reader users but leaves a sighted pointer
|
|
1311
|
-
* user with an unlabeled icon column. This restores the label for them without
|
|
1312
|
-
* duplicating it for anyone else: expanded rows already read their own text, and
|
|
1313
|
-
* the mobile sheet shows full labels, so the collapsed desktop rail is the only
|
|
1314
|
-
* state that shows a label at all.
|
|
1315
|
-
*
|
|
1316
|
-
* It opens the way any tooltip does — the pointer entering the row, or focus
|
|
1317
|
-
* reaching it — and the rail state vetoes it: the expanded panel and the mobile
|
|
1318
|
-
* sheet keep the row at `data-state="closed"` with no `aria-describedby`, and
|
|
1319
|
-
* toggling the rail dismisses whatever was showing, so collapsing the panel
|
|
1320
|
-
* cannot pop a label under a pointer that has already moved on.
|
|
1321
|
-
*
|
|
1322
|
-
* **Requires a `TooltipProvider` ancestor**, like any `Tooltip.Root` — mount one
|
|
1323
|
-
* at your app root. This part deliberately does not mount its own, so the
|
|
1324
|
-
* app-wide tooltip delay stays app-wide rather than being overridden per row.
|
|
1325
|
-
* The one provider setting it does override is hoverable content: a rail label
|
|
1326
|
-
* holds nothing to hover into, so the pointer leaving the row closes it.
|
|
1327
|
-
*
|
|
1328
|
-
* It composes with a menu trigger: nest `DropdownMenu.Root >
|
|
1329
|
-
* Sidebar.Tooltip > DropdownMenu.Trigger asChild > Sidebar.ItemButton` for a
|
|
1330
|
-
* row that opens a menu *and* labels itself in the rail. `DropdownMenu.Root` must
|
|
1331
|
-
* stay **outside** the tooltip — it is renderless, and `Tooltip.Trigger asChild`
|
|
1332
|
-
* needs a real element to clone.
|
|
1333
|
-
*
|
|
1334
|
-
* `children` is the row; `label` is what the tooltip says. Every other prop is
|
|
1335
|
-
* `Tooltip.Content`'s and lands on the tooltip surface: `className`, `style`,
|
|
1336
|
-
* `ref`, `data-*`, and positioning props such as `align` and `sideOffset`.
|
|
1337
|
-
* `side` defaults to `"right"`, so the tooltip opens away from the rail.
|
|
1338
|
-
*
|
|
1339
|
-
* **Data attributes:**
|
|
1340
|
-
*
|
|
1341
|
-
* | Data Attribute | Value | Description |
|
|
1342
|
-
* | --- | --- | --- |
|
|
1343
|
-
* | `data-slot` | `"sidebar-tooltip tooltip-content"` | On the tooltip surface, with any forwarded chain ahead of it and `Tooltip.Content`'s own slot after it. |
|
|
1344
|
-
* | `data-state` | `"delayed-open"` \| `"instant-open"` \| `"closed"` | Read, not stamped: on the tooltip surface, from `Tooltip.Content`. |
|
|
1345
|
-
* | `data-side` | `"top"` \| `"right"` \| `"bottom"` \| `"left"` | Read, not stamped: on the tooltip surface, from `Tooltip.Content`. The resolved side, `"right"` by default. |
|
|
1346
|
-
* | `data-align` | `"start"` \| `"center"` \| `"end"` | Read, not stamped: on the tooltip surface, from `Tooltip.Content`. |
|
|
1347
|
-
* | `data-slot` | `"sidebar-tooltip-row"` | Inside that surface, on the flex row holding the label and the optional chord chips. Nested inside `Tooltip.Content`'s own `tooltip-label` div. Always present, so a chord that arrives later appends instead of replacing the label. |
|
|
1348
|
-
* | `data-slot` | `"sidebar-tooltip-label"` | On the `<span>` wrapping `label` inside that row. Always present, and `display: contents`, so the label stays a flex item of the row. |
|
|
1349
|
-
* | `data-slot` | `"sidebar-tooltip-shortcut"` | On the chord chips. Present only while `shortcut` holds something. Carries `translate="no"`: a chord is a key name, not prose. |
|
|
1350
|
-
* | `data-state` | `"delayed-open"` \| `"instant-open"` \| `"closed"` | On the wrapped row, from `Tooltip.Trigger`. `"closed"` outside the collapsed rail, where this part vetoes the open state. |
|
|
1351
|
-
*
|
|
1352
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar#sidebartooltip
|
|
1353
|
-
*
|
|
1354
|
-
* @example
|
|
1355
|
-
* ```tsx
|
|
1356
|
-
* <TooltipProvider>
|
|
1357
|
-
* <Sidebar.Root>
|
|
1358
|
-
* <Sidebar.Nav aria-label="Main">
|
|
1359
|
-
* <Sidebar.Header>
|
|
1360
|
-
* <DropdownMenu.Root>
|
|
1361
|
-
* <DropdownMenu.Trigger asChild>
|
|
1362
|
-
* <Sidebar.SwitcherTrigger>
|
|
1363
|
-
* <GlobeIcon />
|
|
1364
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
|
|
1365
|
-
* <CaretDownIcon className="text-muted size-4 shrink-0" />
|
|
1366
|
-
* </Sidebar.SwitcherTrigger>
|
|
1367
|
-
* </DropdownMenu.Trigger>
|
|
1368
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
1369
|
-
* </DropdownMenu.Root>
|
|
1370
|
-
* </Sidebar.Header>
|
|
1371
|
-
* <Sidebar.Body>
|
|
1372
|
-
* <Sidebar.Group>
|
|
1373
|
-
* <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
|
|
1374
|
-
* <Sidebar.List>
|
|
1375
|
-
* <Sidebar.Item>
|
|
1376
|
-
* <Sidebar.Tooltip label="Endpoints">
|
|
1377
|
-
* <Sidebar.ItemButton asChild current>
|
|
1378
|
-
* <a href="/endpoints">
|
|
1379
|
-
* <GraphIcon />
|
|
1380
|
-
* Endpoints
|
|
1381
|
-
* </a>
|
|
1382
|
-
* </Sidebar.ItemButton>
|
|
1383
|
-
* </Sidebar.Tooltip>
|
|
1384
|
-
* </Sidebar.Item>
|
|
1385
|
-
* </Sidebar.List>
|
|
1386
|
-
* </Sidebar.Group>
|
|
1387
|
-
* </Sidebar.Body>
|
|
1388
|
-
* <Sidebar.Footer>
|
|
1389
|
-
* <Sidebar.Separator />
|
|
1390
|
-
* <DropdownMenu.Root>
|
|
1391
|
-
* <Sidebar.Tooltip label="Acme Corp">
|
|
1392
|
-
* <DropdownMenu.Trigger asChild>
|
|
1393
|
-
* <Sidebar.SwitcherTrigger>
|
|
1394
|
-
* <Avatar.Root appearance="square" colorSeed="acc_123">
|
|
1395
|
-
* <Avatar.Fallback name="Acme Corp" />
|
|
1396
|
-
* </Avatar.Root>
|
|
1397
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Acme Corp</span>
|
|
1398
|
-
* </Sidebar.SwitcherTrigger>
|
|
1399
|
-
* </DropdownMenu.Trigger>
|
|
1400
|
-
* </Sidebar.Tooltip>
|
|
1401
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
1402
|
-
* </DropdownMenu.Root>
|
|
1403
|
-
* </Sidebar.Footer>
|
|
1404
|
-
* </Sidebar.Nav>
|
|
1405
|
-
* <Sidebar.Trigger />
|
|
1406
|
-
* </Sidebar.Root>
|
|
1407
|
-
* </TooltipProvider>
|
|
1408
|
-
* ```
|
|
1409
|
-
*/
|
|
1410
|
-
declare const SidebarTooltip: ({ children, "data-slot": dataSlot, label, shortcut, side, ...props }: SidebarTooltipProps) => import("react").JSX.Element;
|
|
1411
|
-
type SidebarSeparatorProps = Omit<ComponentProps<typeof Separator>, "asChild" | "children"> & SelfClosingWithAsChild & WithDataSlot;
|
|
1412
|
-
/**
|
|
1413
|
-
* An inset hairline between sidebar regions. Composes the mantle `Separator`,
|
|
1414
|
-
* staying aligned with the `px-3` content padding of `Sidebar.Body` and
|
|
1415
|
-
* `Sidebar.Footer` (it deliberately does not run edge to edge) with `my-3`
|
|
1416
|
-
* breathing room above and below. In the icon rail it narrows to the 36px chip
|
|
1417
|
-
* width of `Sidebar.SwitcherTrigger`, 8px wider than the rail's 28px row chips,
|
|
1418
|
-
* so it stays optically centered between the viewport edge and the content
|
|
1419
|
-
* card.
|
|
1420
|
-
*
|
|
1421
|
-
* **Data attributes:**
|
|
1422
|
-
*
|
|
1423
|
-
* | Data Attribute | Value | Description |
|
|
1424
|
-
* | --- | --- | --- |
|
|
1425
|
-
* | `data-orientation` | `"horizontal"` \| `"vertical"` | Read, not stamped: `Separator` reflects its `orientation` prop, `"horizontal"` by default, after a `HorizontalSeparatorGroup` ancestor wins. |
|
|
1426
|
-
* | `data-separator` | present | Read, not stamped: presence-only, from `Separator`. Lets a `HorizontalSeparatorGroup` exempt it from `shrink-0`. |
|
|
1427
|
-
*
|
|
1428
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarseparator
|
|
1429
|
-
*
|
|
1430
|
-
* @example
|
|
1431
|
-
* ```tsx
|
|
1432
|
-
* <Sidebar.Root>
|
|
1433
|
-
* <Sidebar.Nav aria-label="Main">
|
|
1434
|
-
* <Sidebar.Header>
|
|
1435
|
-
* <DropdownMenu.Root>
|
|
1436
|
-
* <DropdownMenu.Trigger asChild>
|
|
1437
|
-
* <Sidebar.SwitcherTrigger>
|
|
1438
|
-
* <GlobeIcon />
|
|
1439
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
|
|
1440
|
-
* <CaretDownIcon className="text-muted size-4 shrink-0" />
|
|
1441
|
-
* </Sidebar.SwitcherTrigger>
|
|
1442
|
-
* </DropdownMenu.Trigger>
|
|
1443
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
1444
|
-
* </DropdownMenu.Root>
|
|
1445
|
-
* </Sidebar.Header>
|
|
1446
|
-
* <Sidebar.Body>
|
|
1447
|
-
* <Sidebar.Group>
|
|
1448
|
-
* <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
|
|
1449
|
-
* <Sidebar.List>
|
|
1450
|
-
* <Sidebar.Item>
|
|
1451
|
-
* <Sidebar.ItemButton asChild current>
|
|
1452
|
-
* <a href="/endpoints">
|
|
1453
|
-
* <GraphIcon />
|
|
1454
|
-
* Endpoints
|
|
1455
|
-
* </a>
|
|
1456
|
-
* </Sidebar.ItemButton>
|
|
1457
|
-
* </Sidebar.Item>
|
|
1458
|
-
* </Sidebar.List>
|
|
1459
|
-
* </Sidebar.Group>
|
|
1460
|
-
* </Sidebar.Body>
|
|
1461
|
-
* <Sidebar.Footer>
|
|
1462
|
-
* <Sidebar.Separator />
|
|
1463
|
-
* <DropdownMenu.Root>
|
|
1464
|
-
* <DropdownMenu.Trigger asChild>
|
|
1465
|
-
* <Sidebar.SwitcherTrigger>
|
|
1466
|
-
* <Avatar.Root appearance="square" colorSeed="acc_123">
|
|
1467
|
-
* <Avatar.Fallback name="Acme Corp" />
|
|
1468
|
-
* </Avatar.Root>
|
|
1469
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Acme Corp</span>
|
|
1470
|
-
* </Sidebar.SwitcherTrigger>
|
|
1471
|
-
* </DropdownMenu.Trigger>
|
|
1472
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
1473
|
-
* </DropdownMenu.Root>
|
|
1474
|
-
* </Sidebar.Footer>
|
|
1475
|
-
* </Sidebar.Nav>
|
|
1476
|
-
* <Sidebar.Trigger />
|
|
1477
|
-
* </Sidebar.Root>
|
|
1478
|
-
* ```
|
|
1479
|
-
*/
|
|
1480
|
-
declare const SidebarSeparator: ({ className, "data-slot": dataSlot, ...props }: SidebarSeparatorProps) => import("react").JSX.Element;
|
|
1481
|
-
/**
|
|
1482
|
-
* A composable, collapsible app-navigation sidebar. `Sidebar.Root` owns the
|
|
1483
|
-
* state (no DOM); `Sidebar.Nav` renders the panel — inline on desktop,
|
|
1484
|
-
* collapsing to a skinny icon rail, and a left-side `Sheet` below the root's
|
|
1485
|
-
* `mobileBreakpoint`; and `Sidebar.Trigger` toggles it from anywhere under the
|
|
1486
|
-
* root (typically an `AppLayout.Header`). Navigation is grouped with
|
|
1487
|
-
* `Sidebar.Group`/`Sidebar.GroupLabel`/`Sidebar.List`, and the switcher rows
|
|
1488
|
-
* (app switcher up top, account/user down bottom) compose
|
|
1489
|
-
* `Sidebar.SwitcherTrigger` with your own `DropdownMenu` or `Dialog`.
|
|
1490
|
-
*
|
|
1491
|
-
* The component is routing-agnostic: compose router links via `asChild` on
|
|
1492
|
-
* `Sidebar.ItemButton` and drive `current` from your router's location.
|
|
1493
|
-
*
|
|
1494
|
-
* Reach for it for the app's primary navigation on the start edge of an
|
|
1495
|
-
* `AppLayout`. A surface that opens beside the page for an assistant or a
|
|
1496
|
-
* details pane is `AppLayout.SidePanel`; a modal drawer is `Sheet`; switching
|
|
1497
|
-
* sections inside one page is `Tabs`.
|
|
1498
|
-
*
|
|
1499
|
-
* @useWhen Show the main navigation of an app, with its app and account switchers, in a column that
|
|
1500
|
-
* collapses to an icon rail, and to a sheet on small screens.
|
|
1501
|
-
*
|
|
1502
|
-
* @siblings
|
|
1503
|
-
* - `Tabs`: the user switches between views inside one page.
|
|
1504
|
-
* - `Sheet`: a panel opens over the page for a task, not for navigation.
|
|
1505
|
-
* - `Breadcrumb`: the page shows where it sits in a hierarchy.
|
|
1506
|
-
*
|
|
1507
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar
|
|
1508
|
-
*
|
|
1509
|
-
* @example
|
|
1510
|
-
* Composition:
|
|
1511
|
-
* ```
|
|
1512
|
-
* Sidebar.Root
|
|
1513
|
-
* ├── Sidebar.Nav
|
|
1514
|
-
* │ ├── Sidebar.Header
|
|
1515
|
-
* │ │ └── Sidebar.SwitcherTrigger
|
|
1516
|
-
* │ ├── Sidebar.Body
|
|
1517
|
-
* │ │ ├── Sidebar.SearchTrigger
|
|
1518
|
-
* │ │ └── Sidebar.Group
|
|
1519
|
-
* │ │ ├── Sidebar.GroupLabel
|
|
1520
|
-
* │ │ └── Sidebar.List
|
|
1521
|
-
* │ │ └── Sidebar.Item
|
|
1522
|
-
* │ │ └── Sidebar.Tooltip
|
|
1523
|
-
* │ │ └── Sidebar.ItemButton
|
|
1524
|
-
* │ └── Sidebar.Footer
|
|
1525
|
-
* │ ├── Sidebar.ItemButton
|
|
1526
|
-
* │ ├── Sidebar.Separator
|
|
1527
|
-
* │ └── Sidebar.SwitcherTrigger
|
|
1528
|
-
* └── Sidebar.Trigger
|
|
1529
|
-
* ```
|
|
1530
|
-
*
|
|
1531
|
-
* @example
|
|
1532
|
-
* ```tsx
|
|
1533
|
-
* <Sidebar.Root>
|
|
1534
|
-
* <Sidebar.Nav aria-label="Main">
|
|
1535
|
-
* <Sidebar.Header>
|
|
1536
|
-
* <DropdownMenu.Root>
|
|
1537
|
-
* <DropdownMenu.Trigger asChild>
|
|
1538
|
-
* <Sidebar.SwitcherTrigger>
|
|
1539
|
-
* <GlobeIcon />
|
|
1540
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
|
|
1541
|
-
* <CaretDownIcon className="text-muted size-4 shrink-0" />
|
|
1542
|
-
* </Sidebar.SwitcherTrigger>
|
|
1543
|
-
* </DropdownMenu.Trigger>
|
|
1544
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
1545
|
-
* </DropdownMenu.Root>
|
|
1546
|
-
* </Sidebar.Header>
|
|
1547
|
-
* <Sidebar.Body>
|
|
1548
|
-
* <Sidebar.Group>
|
|
1549
|
-
* <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
|
|
1550
|
-
* <Sidebar.List>
|
|
1551
|
-
* <Sidebar.Item>
|
|
1552
|
-
* <Sidebar.ItemButton asChild current>
|
|
1553
|
-
* <a href="/endpoints">
|
|
1554
|
-
* <GraphIcon />
|
|
1555
|
-
* Endpoints
|
|
1556
|
-
* </a>
|
|
1557
|
-
* </Sidebar.ItemButton>
|
|
1558
|
-
* </Sidebar.Item>
|
|
1559
|
-
* </Sidebar.List>
|
|
1560
|
-
* </Sidebar.Group>
|
|
1561
|
-
* </Sidebar.Body>
|
|
1562
|
-
* <Sidebar.Footer>
|
|
1563
|
-
* <Sidebar.Separator />
|
|
1564
|
-
* <DropdownMenu.Root>
|
|
1565
|
-
* <DropdownMenu.Trigger asChild>
|
|
1566
|
-
* <Sidebar.SwitcherTrigger>
|
|
1567
|
-
* <Avatar.Root appearance="square" colorSeed="acc_123">
|
|
1568
|
-
* <Avatar.Fallback name="Acme Corp" />
|
|
1569
|
-
* </Avatar.Root>
|
|
1570
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Acme Corp</span>
|
|
1571
|
-
* </Sidebar.SwitcherTrigger>
|
|
1572
|
-
* </DropdownMenu.Trigger>
|
|
1573
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
1574
|
-
* </DropdownMenu.Root>
|
|
1575
|
-
* </Sidebar.Footer>
|
|
1576
|
-
* </Sidebar.Nav>
|
|
1577
|
-
* <Sidebar.Trigger />
|
|
1578
|
-
* </Sidebar.Root>
|
|
1579
|
-
* ```
|
|
1580
|
-
*/
|
|
1581
|
-
declare const Sidebar: {
|
|
1582
|
-
/**
|
|
1583
|
-
* The state owner for a sidebar. Renders no DOM — carries expanded /
|
|
1584
|
-
* mobile-sheet state to every part below it so the trigger can live in the
|
|
1585
|
-
* app shell without coupling it to the sidebar.
|
|
1586
|
-
*
|
|
1587
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarroot
|
|
1588
|
-
*
|
|
1589
|
-
* @example
|
|
1590
|
-
* ```tsx
|
|
1591
|
-
* <Sidebar.Root>
|
|
1592
|
-
* <Sidebar.Nav aria-label="Main">
|
|
1593
|
-
* <Sidebar.Header>
|
|
1594
|
-
* <DropdownMenu.Root>
|
|
1595
|
-
* <DropdownMenu.Trigger asChild>
|
|
1596
|
-
* <Sidebar.SwitcherTrigger>
|
|
1597
|
-
* <GlobeIcon />
|
|
1598
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
|
|
1599
|
-
* <CaretDownIcon className="text-muted size-4 shrink-0" />
|
|
1600
|
-
* </Sidebar.SwitcherTrigger>
|
|
1601
|
-
* </DropdownMenu.Trigger>
|
|
1602
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
1603
|
-
* </DropdownMenu.Root>
|
|
1604
|
-
* </Sidebar.Header>
|
|
1605
|
-
* <Sidebar.Body>
|
|
1606
|
-
* <Sidebar.Group>
|
|
1607
|
-
* <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
|
|
1608
|
-
* <Sidebar.List>
|
|
1609
|
-
* <Sidebar.Item>
|
|
1610
|
-
* <Sidebar.ItemButton asChild current>
|
|
1611
|
-
* <a href="/endpoints">
|
|
1612
|
-
* <GraphIcon />
|
|
1613
|
-
* Endpoints
|
|
1614
|
-
* </a>
|
|
1615
|
-
* </Sidebar.ItemButton>
|
|
1616
|
-
* </Sidebar.Item>
|
|
1617
|
-
* </Sidebar.List>
|
|
1618
|
-
* </Sidebar.Group>
|
|
1619
|
-
* </Sidebar.Body>
|
|
1620
|
-
* <Sidebar.Footer>
|
|
1621
|
-
* <Sidebar.Separator />
|
|
1622
|
-
* <DropdownMenu.Root>
|
|
1623
|
-
* <DropdownMenu.Trigger asChild>
|
|
1624
|
-
* <Sidebar.SwitcherTrigger>
|
|
1625
|
-
* <Avatar.Root appearance="square" colorSeed="acc_123">
|
|
1626
|
-
* <Avatar.Fallback name="Acme Corp" />
|
|
1627
|
-
* </Avatar.Root>
|
|
1628
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Acme Corp</span>
|
|
1629
|
-
* </Sidebar.SwitcherTrigger>
|
|
1630
|
-
* </DropdownMenu.Trigger>
|
|
1631
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
1632
|
-
* </DropdownMenu.Root>
|
|
1633
|
-
* </Sidebar.Footer>
|
|
1634
|
-
* </Sidebar.Nav>
|
|
1635
|
-
* <Sidebar.Trigger />
|
|
1636
|
-
* </Sidebar.Root>
|
|
1637
|
-
* ```
|
|
1638
|
-
*/
|
|
1639
|
-
readonly Root: typeof Root;
|
|
1640
|
-
/**
|
|
1641
|
-
* The sidebar panel: an inline panel that collapses to the icon rail on
|
|
1642
|
-
* desktop, a left `Sheet` below the root's `mobileBreakpoint`. Set
|
|
1643
|
-
* `--sidebar-width` / `--sidebar-width-mobile` via its `className` or
|
|
1644
|
-
* `style`.
|
|
1645
|
-
*
|
|
1646
|
-
* **Data attributes:**
|
|
1647
|
-
*
|
|
1648
|
-
* | Data Attribute | Value | Description |
|
|
1649
|
-
* | --- | --- | --- |
|
|
1650
|
-
* | `data-state` | `"expanded"` \| `"collapsed"` | On the desktop panel surface. Mirrors the root's expanded state and drives the width collapse to the icon rail; descendant parts style off it with `group-data-[state=collapsed]/sidebar-nav:`. |
|
|
1651
|
-
* | `data-hydrated` | present one frame after hydration | Presence-only, desktop panel surface. The panel's pre-hydration visibility gate, its width transition, and descendant collapse transitions all key off its absence in CSS (`not-data-hydrated:`, `group-not-data-hydrated/sidebar-nav:`). The stamp waits one frame, so an SSR state correction paints first and snaps instead of animating on page load. |
|
|
1652
|
-
* | `data-mobile` | present in the mobile sheet | Presence-only. Marks the `Sheet.Content` presentation used below the root's `mobileBreakpoint`. |
|
|
1653
|
-
* | `data-state` | `"open"` \| `"closed"` | In the mobile sheet only, where the panel *is* the `Sheet`'s Radix dialog content element and Radix owns the attribute: the sheet's open/close animation state, not the desktop expanded state. Consumers style against it too. |
|
|
1654
|
-
*
|
|
1655
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarnav
|
|
1656
|
-
*
|
|
1657
|
-
* @example
|
|
1658
|
-
* ```tsx
|
|
1659
|
-
* <Sidebar.Root>
|
|
1660
|
-
* <Sidebar.Nav aria-label="Main">
|
|
1661
|
-
* <Sidebar.Header>
|
|
1662
|
-
* <DropdownMenu.Root>
|
|
1663
|
-
* <DropdownMenu.Trigger asChild>
|
|
1664
|
-
* <Sidebar.SwitcherTrigger>
|
|
1665
|
-
* <GlobeIcon />
|
|
1666
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
|
|
1667
|
-
* <CaretDownIcon className="text-muted size-4 shrink-0" />
|
|
1668
|
-
* </Sidebar.SwitcherTrigger>
|
|
1669
|
-
* </DropdownMenu.Trigger>
|
|
1670
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
1671
|
-
* </DropdownMenu.Root>
|
|
1672
|
-
* </Sidebar.Header>
|
|
1673
|
-
* <Sidebar.Body>
|
|
1674
|
-
* <Sidebar.Group>
|
|
1675
|
-
* <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
|
|
1676
|
-
* <Sidebar.List>
|
|
1677
|
-
* <Sidebar.Item>
|
|
1678
|
-
* <Sidebar.ItemButton asChild current>
|
|
1679
|
-
* <a href="/endpoints">
|
|
1680
|
-
* <GraphIcon />
|
|
1681
|
-
* Endpoints
|
|
1682
|
-
* </a>
|
|
1683
|
-
* </Sidebar.ItemButton>
|
|
1684
|
-
* </Sidebar.Item>
|
|
1685
|
-
* </Sidebar.List>
|
|
1686
|
-
* </Sidebar.Group>
|
|
1687
|
-
* </Sidebar.Body>
|
|
1688
|
-
* <Sidebar.Footer>
|
|
1689
|
-
* <Sidebar.Separator />
|
|
1690
|
-
* <DropdownMenu.Root>
|
|
1691
|
-
* <DropdownMenu.Trigger asChild>
|
|
1692
|
-
* <Sidebar.SwitcherTrigger>
|
|
1693
|
-
* <Avatar.Root appearance="square" colorSeed="acc_123">
|
|
1694
|
-
* <Avatar.Fallback name="Acme Corp" />
|
|
1695
|
-
* </Avatar.Root>
|
|
1696
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Acme Corp</span>
|
|
1697
|
-
* </Sidebar.SwitcherTrigger>
|
|
1698
|
-
* </DropdownMenu.Trigger>
|
|
1699
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
1700
|
-
* </DropdownMenu.Root>
|
|
1701
|
-
* </Sidebar.Footer>
|
|
1702
|
-
* </Sidebar.Nav>
|
|
1703
|
-
* <Sidebar.Trigger />
|
|
1704
|
-
* </Sidebar.Root>
|
|
1705
|
-
* ```
|
|
1706
|
-
*/
|
|
1707
|
-
readonly Nav: typeof Nav;
|
|
1708
|
-
/**
|
|
1709
|
-
* The `IconButton` that toggles the sidebar. Place it in the app shell's
|
|
1710
|
-
* header; it stays functional at every breakpoint.
|
|
1711
|
-
*
|
|
1712
|
-
* **Data attributes:**
|
|
1713
|
-
*
|
|
1714
|
-
* | Data Attribute | Value | Description |
|
|
1715
|
-
* | --- | --- | --- |
|
|
1716
|
-
* | `data-state` | `"expanded"` \| `"collapsed"` | Mirrors what the trigger toggles: the mobile sheet below the root's `mobileBreakpoint`, the desktop panel otherwise. Pairs with `aria-expanded`. |
|
|
1717
|
-
* | `data-slot` | `"sidebar-trigger-tooltip"` | On the tooltip surface, not the button: the styling hook for the label-and-chord popup this part renders. |
|
|
1718
|
-
* | `data-state` | `"delayed-open"` \| `"instant-open"` \| `"closed"` | Read, not stamped: on the tooltip surface, from `Tooltip.Content`. |
|
|
1719
|
-
* | `data-side` | `"top"` \| `"right"` \| `"bottom"` \| `"left"` | Read, not stamped: on the tooltip surface, from `Tooltip.Content`. |
|
|
1720
|
-
* | `data-slot` | `"sidebar-tooltip-row"` | Inside that surface, on the flex row holding the label and the optional chord chips. Nested inside `Tooltip.Content`'s own `tooltip-label` div. Always present. |
|
|
1721
|
-
* | `data-slot` | `"sidebar-tooltip-label"` | On the `<span>` wrapping `label` inside that row. Always present, and `display: contents`, so the label stays a flex item of the row. |
|
|
1722
|
-
* | `data-slot` | `"sidebar-tooltip-shortcut"` | On the chord chips. Present only while `shortcut` holds something. Carries `translate="no"`: a chord is a key name, not prose. |
|
|
1723
|
-
* | `data-appearance` | `"filled"` \| `"ghost"` \| `"outlined"` | Read, not stamped: the underlying `IconButton` reflects its `appearance`, which this part defaults to `"ghost"`. |
|
|
1724
|
-
* | `data-intent` | `"neutral"` | Read, not stamped: the underlying `IconButton` reflects its `intent`, and it draws the neutral tone only. |
|
|
1725
|
-
* | `data-size` | `"xs"` \| `"sm"` \| `"md"` \| `"lg"` \| `"xl"` | Read, not stamped: the underlying `IconButton` reflects its `size`, which this part defaults to `"sm"`. |
|
|
1726
|
-
*
|
|
1727
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar#sidebartrigger
|
|
1728
|
-
*
|
|
1729
|
-
* @example
|
|
1730
|
-
* ```tsx
|
|
1731
|
-
* <Sidebar.Root>
|
|
1732
|
-
* <Sidebar.Nav aria-label="Main">
|
|
1733
|
-
* <Sidebar.Header>
|
|
1734
|
-
* <DropdownMenu.Root>
|
|
1735
|
-
* <DropdownMenu.Trigger asChild>
|
|
1736
|
-
* <Sidebar.SwitcherTrigger>
|
|
1737
|
-
* <GlobeIcon />
|
|
1738
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
|
|
1739
|
-
* <CaretDownIcon className="text-muted size-4 shrink-0" />
|
|
1740
|
-
* </Sidebar.SwitcherTrigger>
|
|
1741
|
-
* </DropdownMenu.Trigger>
|
|
1742
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
1743
|
-
* </DropdownMenu.Root>
|
|
1744
|
-
* </Sidebar.Header>
|
|
1745
|
-
* <Sidebar.Body>
|
|
1746
|
-
* <Sidebar.Group>
|
|
1747
|
-
* <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
|
|
1748
|
-
* <Sidebar.List>
|
|
1749
|
-
* <Sidebar.Item>
|
|
1750
|
-
* <Sidebar.ItemButton asChild current>
|
|
1751
|
-
* <a href="/endpoints">
|
|
1752
|
-
* <GraphIcon />
|
|
1753
|
-
* Endpoints
|
|
1754
|
-
* </a>
|
|
1755
|
-
* </Sidebar.ItemButton>
|
|
1756
|
-
* </Sidebar.Item>
|
|
1757
|
-
* </Sidebar.List>
|
|
1758
|
-
* </Sidebar.Group>
|
|
1759
|
-
* </Sidebar.Body>
|
|
1760
|
-
* <Sidebar.Footer>
|
|
1761
|
-
* <Sidebar.Separator />
|
|
1762
|
-
* <DropdownMenu.Root>
|
|
1763
|
-
* <DropdownMenu.Trigger asChild>
|
|
1764
|
-
* <Sidebar.SwitcherTrigger>
|
|
1765
|
-
* <Avatar.Root appearance="square" colorSeed="acc_123">
|
|
1766
|
-
* <Avatar.Fallback name="Acme Corp" />
|
|
1767
|
-
* </Avatar.Root>
|
|
1768
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Acme Corp</span>
|
|
1769
|
-
* </Sidebar.SwitcherTrigger>
|
|
1770
|
-
* </DropdownMenu.Trigger>
|
|
1771
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
1772
|
-
* </DropdownMenu.Root>
|
|
1773
|
-
* </Sidebar.Footer>
|
|
1774
|
-
* </Sidebar.Nav>
|
|
1775
|
-
* <Sidebar.Trigger />
|
|
1776
|
-
* </Sidebar.Root>
|
|
1777
|
-
* ```
|
|
1778
|
-
*/
|
|
1779
|
-
readonly Trigger: typeof Trigger;
|
|
1780
|
-
/**
|
|
1781
|
-
* The pinned top container of the panel, typically holding the app
|
|
1782
|
-
* switcher (`Sidebar.SwitcherTrigger` + `DropdownMenu`/`Dialog`). Its first
|
|
1783
|
-
* child owns the band that aligns the switcher with an `AppLayout.Header`;
|
|
1784
|
-
* later rows stack below the band.
|
|
1785
|
-
*
|
|
1786
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarheader
|
|
1787
|
-
*
|
|
1788
|
-
* @example
|
|
1789
|
-
* ```tsx
|
|
1790
|
-
* <Sidebar.Root>
|
|
1791
|
-
* <Sidebar.Nav aria-label="Main">
|
|
1792
|
-
* <Sidebar.Header>
|
|
1793
|
-
* <DropdownMenu.Root>
|
|
1794
|
-
* <DropdownMenu.Trigger asChild>
|
|
1795
|
-
* <Sidebar.SwitcherTrigger>
|
|
1796
|
-
* <GlobeIcon />
|
|
1797
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
|
|
1798
|
-
* <CaretDownIcon className="text-muted size-4 shrink-0" />
|
|
1799
|
-
* </Sidebar.SwitcherTrigger>
|
|
1800
|
-
* </DropdownMenu.Trigger>
|
|
1801
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
1802
|
-
* </DropdownMenu.Root>
|
|
1803
|
-
* </Sidebar.Header>
|
|
1804
|
-
* <Sidebar.Body>
|
|
1805
|
-
* <Sidebar.Group>
|
|
1806
|
-
* <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
|
|
1807
|
-
* <Sidebar.List>
|
|
1808
|
-
* <Sidebar.Item>
|
|
1809
|
-
* <Sidebar.ItemButton asChild current>
|
|
1810
|
-
* <a href="/endpoints">
|
|
1811
|
-
* <GraphIcon />
|
|
1812
|
-
* Endpoints
|
|
1813
|
-
* </a>
|
|
1814
|
-
* </Sidebar.ItemButton>
|
|
1815
|
-
* </Sidebar.Item>
|
|
1816
|
-
* </Sidebar.List>
|
|
1817
|
-
* </Sidebar.Group>
|
|
1818
|
-
* </Sidebar.Body>
|
|
1819
|
-
* <Sidebar.Footer>
|
|
1820
|
-
* <Sidebar.Separator />
|
|
1821
|
-
* <DropdownMenu.Root>
|
|
1822
|
-
* <DropdownMenu.Trigger asChild>
|
|
1823
|
-
* <Sidebar.SwitcherTrigger>
|
|
1824
|
-
* <Avatar.Root appearance="square" colorSeed="acc_123">
|
|
1825
|
-
* <Avatar.Fallback name="Acme Corp" />
|
|
1826
|
-
* </Avatar.Root>
|
|
1827
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Acme Corp</span>
|
|
1828
|
-
* </Sidebar.SwitcherTrigger>
|
|
1829
|
-
* </DropdownMenu.Trigger>
|
|
1830
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
1831
|
-
* </DropdownMenu.Root>
|
|
1832
|
-
* </Sidebar.Footer>
|
|
1833
|
-
* </Sidebar.Nav>
|
|
1834
|
-
* <Sidebar.Trigger />
|
|
1835
|
-
* </Sidebar.Root>
|
|
1836
|
-
* ```
|
|
1837
|
-
*/
|
|
1838
|
-
readonly Header: typeof Header;
|
|
1839
|
-
/**
|
|
1840
|
-
* The scrollable middle region holding the navigation groups.
|
|
1841
|
-
*
|
|
1842
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarbody
|
|
1843
|
-
*
|
|
1844
|
-
* @example
|
|
1845
|
-
* ```tsx
|
|
1846
|
-
* <Sidebar.Root>
|
|
1847
|
-
* <Sidebar.Nav aria-label="Main">
|
|
1848
|
-
* <Sidebar.Header>
|
|
1849
|
-
* <DropdownMenu.Root>
|
|
1850
|
-
* <DropdownMenu.Trigger asChild>
|
|
1851
|
-
* <Sidebar.SwitcherTrigger>
|
|
1852
|
-
* <GlobeIcon />
|
|
1853
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
|
|
1854
|
-
* <CaretDownIcon className="text-muted size-4 shrink-0" />
|
|
1855
|
-
* </Sidebar.SwitcherTrigger>
|
|
1856
|
-
* </DropdownMenu.Trigger>
|
|
1857
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
1858
|
-
* </DropdownMenu.Root>
|
|
1859
|
-
* </Sidebar.Header>
|
|
1860
|
-
* <Sidebar.Body>
|
|
1861
|
-
* <Sidebar.Group>
|
|
1862
|
-
* <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
|
|
1863
|
-
* <Sidebar.List>
|
|
1864
|
-
* <Sidebar.Item>
|
|
1865
|
-
* <Sidebar.ItemButton asChild current>
|
|
1866
|
-
* <a href="/endpoints">
|
|
1867
|
-
* <GraphIcon />
|
|
1868
|
-
* Endpoints
|
|
1869
|
-
* </a>
|
|
1870
|
-
* </Sidebar.ItemButton>
|
|
1871
|
-
* </Sidebar.Item>
|
|
1872
|
-
* </Sidebar.List>
|
|
1873
|
-
* </Sidebar.Group>
|
|
1874
|
-
* </Sidebar.Body>
|
|
1875
|
-
* <Sidebar.Footer>
|
|
1876
|
-
* <Sidebar.Separator />
|
|
1877
|
-
* <DropdownMenu.Root>
|
|
1878
|
-
* <DropdownMenu.Trigger asChild>
|
|
1879
|
-
* <Sidebar.SwitcherTrigger>
|
|
1880
|
-
* <Avatar.Root appearance="square" colorSeed="acc_123">
|
|
1881
|
-
* <Avatar.Fallback name="Acme Corp" />
|
|
1882
|
-
* </Avatar.Root>
|
|
1883
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Acme Corp</span>
|
|
1884
|
-
* </Sidebar.SwitcherTrigger>
|
|
1885
|
-
* </DropdownMenu.Trigger>
|
|
1886
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
1887
|
-
* </DropdownMenu.Root>
|
|
1888
|
-
* </Sidebar.Footer>
|
|
1889
|
-
* </Sidebar.Nav>
|
|
1890
|
-
* <Sidebar.Trigger />
|
|
1891
|
-
* </Sidebar.Root>
|
|
1892
|
-
* ```
|
|
1893
|
-
*/
|
|
1894
|
-
readonly Body: typeof Body;
|
|
1895
|
-
/**
|
|
1896
|
-
* The pinned bottom container, typically holding cross-product items and
|
|
1897
|
-
* the account/user switcher row.
|
|
1898
|
-
*
|
|
1899
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarfooter
|
|
1900
|
-
*
|
|
1901
|
-
* @example
|
|
1902
|
-
* ```tsx
|
|
1903
|
-
* <Sidebar.Root>
|
|
1904
|
-
* <Sidebar.Nav aria-label="Main">
|
|
1905
|
-
* <Sidebar.Header>
|
|
1906
|
-
* <DropdownMenu.Root>
|
|
1907
|
-
* <DropdownMenu.Trigger asChild>
|
|
1908
|
-
* <Sidebar.SwitcherTrigger>
|
|
1909
|
-
* <GlobeIcon />
|
|
1910
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
|
|
1911
|
-
* <CaretDownIcon className="text-muted size-4 shrink-0" />
|
|
1912
|
-
* </Sidebar.SwitcherTrigger>
|
|
1913
|
-
* </DropdownMenu.Trigger>
|
|
1914
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
1915
|
-
* </DropdownMenu.Root>
|
|
1916
|
-
* </Sidebar.Header>
|
|
1917
|
-
* <Sidebar.Body>
|
|
1918
|
-
* <Sidebar.Group>
|
|
1919
|
-
* <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
|
|
1920
|
-
* <Sidebar.List>
|
|
1921
|
-
* <Sidebar.Item>
|
|
1922
|
-
* <Sidebar.ItemButton asChild current>
|
|
1923
|
-
* <a href="/endpoints">
|
|
1924
|
-
* <GraphIcon />
|
|
1925
|
-
* Endpoints
|
|
1926
|
-
* </a>
|
|
1927
|
-
* </Sidebar.ItemButton>
|
|
1928
|
-
* </Sidebar.Item>
|
|
1929
|
-
* </Sidebar.List>
|
|
1930
|
-
* </Sidebar.Group>
|
|
1931
|
-
* </Sidebar.Body>
|
|
1932
|
-
* <Sidebar.Footer>
|
|
1933
|
-
* <Sidebar.Separator />
|
|
1934
|
-
* <DropdownMenu.Root>
|
|
1935
|
-
* <DropdownMenu.Trigger asChild>
|
|
1936
|
-
* <Sidebar.SwitcherTrigger>
|
|
1937
|
-
* <Avatar.Root appearance="square" colorSeed="acc_123">
|
|
1938
|
-
* <Avatar.Fallback name="Acme Corp" />
|
|
1939
|
-
* </Avatar.Root>
|
|
1940
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Acme Corp</span>
|
|
1941
|
-
* </Sidebar.SwitcherTrigger>
|
|
1942
|
-
* </DropdownMenu.Trigger>
|
|
1943
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
1944
|
-
* </DropdownMenu.Root>
|
|
1945
|
-
* </Sidebar.Footer>
|
|
1946
|
-
* </Sidebar.Nav>
|
|
1947
|
-
* <Sidebar.Trigger />
|
|
1948
|
-
* </Sidebar.Root>
|
|
1949
|
-
* ```
|
|
1950
|
-
*/
|
|
1951
|
-
readonly Footer: typeof Footer;
|
|
1952
|
-
/**
|
|
1953
|
-
* A grouping container pairing a `GroupLabel` with a `List`; wires the
|
|
1954
|
-
* label to the list via `aria-labelledby`.
|
|
1955
|
-
*
|
|
1956
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar#sidebargroup
|
|
1957
|
-
*
|
|
1958
|
-
* @example
|
|
1959
|
-
* ```tsx
|
|
1960
|
-
* <Sidebar.Root>
|
|
1961
|
-
* <Sidebar.Nav aria-label="Main">
|
|
1962
|
-
* <Sidebar.Header>
|
|
1963
|
-
* <DropdownMenu.Root>
|
|
1964
|
-
* <DropdownMenu.Trigger asChild>
|
|
1965
|
-
* <Sidebar.SwitcherTrigger>
|
|
1966
|
-
* <GlobeIcon />
|
|
1967
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
|
|
1968
|
-
* <CaretDownIcon className="text-muted size-4 shrink-0" />
|
|
1969
|
-
* </Sidebar.SwitcherTrigger>
|
|
1970
|
-
* </DropdownMenu.Trigger>
|
|
1971
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
1972
|
-
* </DropdownMenu.Root>
|
|
1973
|
-
* </Sidebar.Header>
|
|
1974
|
-
* <Sidebar.Body>
|
|
1975
|
-
* <Sidebar.Group>
|
|
1976
|
-
* <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
|
|
1977
|
-
* <Sidebar.List>
|
|
1978
|
-
* <Sidebar.Item>
|
|
1979
|
-
* <Sidebar.ItemButton asChild current>
|
|
1980
|
-
* <a href="/endpoints">
|
|
1981
|
-
* <GraphIcon />
|
|
1982
|
-
* Endpoints
|
|
1983
|
-
* </a>
|
|
1984
|
-
* </Sidebar.ItemButton>
|
|
1985
|
-
* </Sidebar.Item>
|
|
1986
|
-
* </Sidebar.List>
|
|
1987
|
-
* </Sidebar.Group>
|
|
1988
|
-
* </Sidebar.Body>
|
|
1989
|
-
* <Sidebar.Footer>
|
|
1990
|
-
* <Sidebar.Separator />
|
|
1991
|
-
* <DropdownMenu.Root>
|
|
1992
|
-
* <DropdownMenu.Trigger asChild>
|
|
1993
|
-
* <Sidebar.SwitcherTrigger>
|
|
1994
|
-
* <Avatar.Root appearance="square" colorSeed="acc_123">
|
|
1995
|
-
* <Avatar.Fallback name="Acme Corp" />
|
|
1996
|
-
* </Avatar.Root>
|
|
1997
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Acme Corp</span>
|
|
1998
|
-
* </Sidebar.SwitcherTrigger>
|
|
1999
|
-
* </DropdownMenu.Trigger>
|
|
2000
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
2001
|
-
* </DropdownMenu.Root>
|
|
2002
|
-
* </Sidebar.Footer>
|
|
2003
|
-
* </Sidebar.Nav>
|
|
2004
|
-
* <Sidebar.Trigger />
|
|
2005
|
-
* </Sidebar.Root>
|
|
2006
|
-
* ```
|
|
2007
|
-
*/
|
|
2008
|
-
readonly Group: typeof Group;
|
|
2009
|
-
/**
|
|
2010
|
-
* The muted label of a group. Renders a `<div>`; pass `asChild` to render
|
|
2011
|
-
* a heading at a level you control.
|
|
2012
|
-
*
|
|
2013
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar#sidebargrouplabel
|
|
2014
|
-
*
|
|
2015
|
-
* @example
|
|
2016
|
-
* ```tsx
|
|
2017
|
-
* <Sidebar.Root>
|
|
2018
|
-
* <Sidebar.Nav aria-label="Main">
|
|
2019
|
-
* <Sidebar.Header>
|
|
2020
|
-
* <DropdownMenu.Root>
|
|
2021
|
-
* <DropdownMenu.Trigger asChild>
|
|
2022
|
-
* <Sidebar.SwitcherTrigger>
|
|
2023
|
-
* <GlobeIcon />
|
|
2024
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
|
|
2025
|
-
* <CaretDownIcon className="text-muted size-4 shrink-0" />
|
|
2026
|
-
* </Sidebar.SwitcherTrigger>
|
|
2027
|
-
* </DropdownMenu.Trigger>
|
|
2028
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
2029
|
-
* </DropdownMenu.Root>
|
|
2030
|
-
* </Sidebar.Header>
|
|
2031
|
-
* <Sidebar.Body>
|
|
2032
|
-
* <Sidebar.Group>
|
|
2033
|
-
* <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
|
|
2034
|
-
* <Sidebar.List>
|
|
2035
|
-
* <Sidebar.Item>
|
|
2036
|
-
* <Sidebar.ItemButton asChild current>
|
|
2037
|
-
* <a href="/endpoints">
|
|
2038
|
-
* <GraphIcon />
|
|
2039
|
-
* Endpoints
|
|
2040
|
-
* </a>
|
|
2041
|
-
* </Sidebar.ItemButton>
|
|
2042
|
-
* </Sidebar.Item>
|
|
2043
|
-
* </Sidebar.List>
|
|
2044
|
-
* </Sidebar.Group>
|
|
2045
|
-
* </Sidebar.Body>
|
|
2046
|
-
* <Sidebar.Footer>
|
|
2047
|
-
* <Sidebar.Separator />
|
|
2048
|
-
* <DropdownMenu.Root>
|
|
2049
|
-
* <DropdownMenu.Trigger asChild>
|
|
2050
|
-
* <Sidebar.SwitcherTrigger>
|
|
2051
|
-
* <Avatar.Root appearance="square" colorSeed="acc_123">
|
|
2052
|
-
* <Avatar.Fallback name="Acme Corp" />
|
|
2053
|
-
* </Avatar.Root>
|
|
2054
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Acme Corp</span>
|
|
2055
|
-
* </Sidebar.SwitcherTrigger>
|
|
2056
|
-
* </DropdownMenu.Trigger>
|
|
2057
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
2058
|
-
* </DropdownMenu.Root>
|
|
2059
|
-
* </Sidebar.Footer>
|
|
2060
|
-
* </Sidebar.Nav>
|
|
2061
|
-
* <Sidebar.Trigger />
|
|
2062
|
-
* </Sidebar.Root>
|
|
2063
|
-
* ```
|
|
2064
|
-
*/
|
|
2065
|
-
readonly GroupLabel: typeof GroupLabel;
|
|
2066
|
-
/**
|
|
2067
|
-
* The `<ul>` of navigation rows in a group.
|
|
2068
|
-
*
|
|
2069
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarlist
|
|
2070
|
-
*
|
|
2071
|
-
* @example
|
|
2072
|
-
* ```tsx
|
|
2073
|
-
* <Sidebar.Root>
|
|
2074
|
-
* <Sidebar.Nav aria-label="Main">
|
|
2075
|
-
* <Sidebar.Header>
|
|
2076
|
-
* <DropdownMenu.Root>
|
|
2077
|
-
* <DropdownMenu.Trigger asChild>
|
|
2078
|
-
* <Sidebar.SwitcherTrigger>
|
|
2079
|
-
* <GlobeIcon />
|
|
2080
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
|
|
2081
|
-
* <CaretDownIcon className="text-muted size-4 shrink-0" />
|
|
2082
|
-
* </Sidebar.SwitcherTrigger>
|
|
2083
|
-
* </DropdownMenu.Trigger>
|
|
2084
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
2085
|
-
* </DropdownMenu.Root>
|
|
2086
|
-
* </Sidebar.Header>
|
|
2087
|
-
* <Sidebar.Body>
|
|
2088
|
-
* <Sidebar.Group>
|
|
2089
|
-
* <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
|
|
2090
|
-
* <Sidebar.List>
|
|
2091
|
-
* <Sidebar.Item>
|
|
2092
|
-
* <Sidebar.ItemButton asChild current>
|
|
2093
|
-
* <a href="/endpoints">
|
|
2094
|
-
* <GraphIcon />
|
|
2095
|
-
* Endpoints
|
|
2096
|
-
* </a>
|
|
2097
|
-
* </Sidebar.ItemButton>
|
|
2098
|
-
* </Sidebar.Item>
|
|
2099
|
-
* </Sidebar.List>
|
|
2100
|
-
* </Sidebar.Group>
|
|
2101
|
-
* </Sidebar.Body>
|
|
2102
|
-
* <Sidebar.Footer>
|
|
2103
|
-
* <Sidebar.Separator />
|
|
2104
|
-
* <DropdownMenu.Root>
|
|
2105
|
-
* <DropdownMenu.Trigger asChild>
|
|
2106
|
-
* <Sidebar.SwitcherTrigger>
|
|
2107
|
-
* <Avatar.Root appearance="square" colorSeed="acc_123">
|
|
2108
|
-
* <Avatar.Fallback name="Acme Corp" />
|
|
2109
|
-
* </Avatar.Root>
|
|
2110
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Acme Corp</span>
|
|
2111
|
-
* </Sidebar.SwitcherTrigger>
|
|
2112
|
-
* </DropdownMenu.Trigger>
|
|
2113
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
2114
|
-
* </DropdownMenu.Root>
|
|
2115
|
-
* </Sidebar.Footer>
|
|
2116
|
-
* </Sidebar.Nav>
|
|
2117
|
-
* <Sidebar.Trigger />
|
|
2118
|
-
* </Sidebar.Root>
|
|
2119
|
-
* ```
|
|
2120
|
-
*/
|
|
2121
|
-
readonly List: typeof List;
|
|
2122
|
-
/**
|
|
2123
|
-
* A single `<li>` row wrapper.
|
|
2124
|
-
*
|
|
2125
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar#sidebaritem
|
|
2126
|
-
*
|
|
2127
|
-
* @example
|
|
2128
|
-
* ```tsx
|
|
2129
|
-
* <Sidebar.Root>
|
|
2130
|
-
* <Sidebar.Nav aria-label="Main">
|
|
2131
|
-
* <Sidebar.Header>
|
|
2132
|
-
* <DropdownMenu.Root>
|
|
2133
|
-
* <DropdownMenu.Trigger asChild>
|
|
2134
|
-
* <Sidebar.SwitcherTrigger>
|
|
2135
|
-
* <GlobeIcon />
|
|
2136
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
|
|
2137
|
-
* <CaretDownIcon className="text-muted size-4 shrink-0" />
|
|
2138
|
-
* </Sidebar.SwitcherTrigger>
|
|
2139
|
-
* </DropdownMenu.Trigger>
|
|
2140
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
2141
|
-
* </DropdownMenu.Root>
|
|
2142
|
-
* </Sidebar.Header>
|
|
2143
|
-
* <Sidebar.Body>
|
|
2144
|
-
* <Sidebar.Group>
|
|
2145
|
-
* <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
|
|
2146
|
-
* <Sidebar.List>
|
|
2147
|
-
* <Sidebar.Item>
|
|
2148
|
-
* <Sidebar.ItemButton asChild current>
|
|
2149
|
-
* <a href="/endpoints">
|
|
2150
|
-
* <GraphIcon />
|
|
2151
|
-
* Endpoints
|
|
2152
|
-
* </a>
|
|
2153
|
-
* </Sidebar.ItemButton>
|
|
2154
|
-
* </Sidebar.Item>
|
|
2155
|
-
* </Sidebar.List>
|
|
2156
|
-
* </Sidebar.Group>
|
|
2157
|
-
* </Sidebar.Body>
|
|
2158
|
-
* <Sidebar.Footer>
|
|
2159
|
-
* <Sidebar.Separator />
|
|
2160
|
-
* <DropdownMenu.Root>
|
|
2161
|
-
* <DropdownMenu.Trigger asChild>
|
|
2162
|
-
* <Sidebar.SwitcherTrigger>
|
|
2163
|
-
* <Avatar.Root appearance="square" colorSeed="acc_123">
|
|
2164
|
-
* <Avatar.Fallback name="Acme Corp" />
|
|
2165
|
-
* </Avatar.Root>
|
|
2166
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Acme Corp</span>
|
|
2167
|
-
* </Sidebar.SwitcherTrigger>
|
|
2168
|
-
* </DropdownMenu.Trigger>
|
|
2169
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
2170
|
-
* </DropdownMenu.Root>
|
|
2171
|
-
* </Sidebar.Footer>
|
|
2172
|
-
* </Sidebar.Nav>
|
|
2173
|
-
* <Sidebar.Trigger />
|
|
2174
|
-
* </Sidebar.Root>
|
|
2175
|
-
* ```
|
|
2176
|
-
*/
|
|
2177
|
-
readonly Item: typeof Item;
|
|
2178
|
-
/**
|
|
2179
|
-
* The interactive navigation row (icon + truncating label). `asChild` for
|
|
2180
|
-
* router links; `current` for the active page.
|
|
2181
|
-
*
|
|
2182
|
-
* **Data attributes:**
|
|
2183
|
-
*
|
|
2184
|
-
* | Data Attribute | Value | Description |
|
|
2185
|
-
* | --- | --- | --- |
|
|
2186
|
-
* | `data-current` | present when `current` | Presence-only, never `"false"`, since the `data-current:` variant matches the attribute's existence. Styles the current row. |
|
|
2187
|
-
* | `aria-current` | `"page"` when `current` | Set alongside `data-current`. The current-row styling follows *either*, so a composed child that marks itself (react-router's `NavLink`) gets the treatment without the prop. |
|
|
2188
|
-
* | `data-state` | `"open"` \| `"closed"` | **Read, not stamped**: supplied by a composing `DropdownMenu.Trigger` / `Dialog.Trigger`. The row styles against it so it stays highlighted while its menu is open. Inside `Sidebar.Tooltip` the tooltip's own `data-state` replaces this one, so the open highlight also keys on `aria-expanded`. |
|
|
2189
|
-
*
|
|
2190
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar#sidebaritembutton
|
|
2191
|
-
*
|
|
2192
|
-
* @example
|
|
2193
|
-
* ```tsx
|
|
2194
|
-
* <Sidebar.Root>
|
|
2195
|
-
* <Sidebar.Nav aria-label="Main">
|
|
2196
|
-
* <Sidebar.Header>
|
|
2197
|
-
* <DropdownMenu.Root>
|
|
2198
|
-
* <DropdownMenu.Trigger asChild>
|
|
2199
|
-
* <Sidebar.SwitcherTrigger>
|
|
2200
|
-
* <GlobeIcon />
|
|
2201
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
|
|
2202
|
-
* <CaretDownIcon className="text-muted size-4 shrink-0" />
|
|
2203
|
-
* </Sidebar.SwitcherTrigger>
|
|
2204
|
-
* </DropdownMenu.Trigger>
|
|
2205
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
2206
|
-
* </DropdownMenu.Root>
|
|
2207
|
-
* </Sidebar.Header>
|
|
2208
|
-
* <Sidebar.Body>
|
|
2209
|
-
* <Sidebar.Group>
|
|
2210
|
-
* <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
|
|
2211
|
-
* <Sidebar.List>
|
|
2212
|
-
* <Sidebar.Item>
|
|
2213
|
-
* <Sidebar.ItemButton asChild current>
|
|
2214
|
-
* <a href="/endpoints">
|
|
2215
|
-
* <GraphIcon />
|
|
2216
|
-
* Endpoints
|
|
2217
|
-
* </a>
|
|
2218
|
-
* </Sidebar.ItemButton>
|
|
2219
|
-
* </Sidebar.Item>
|
|
2220
|
-
* </Sidebar.List>
|
|
2221
|
-
* </Sidebar.Group>
|
|
2222
|
-
* </Sidebar.Body>
|
|
2223
|
-
* <Sidebar.Footer>
|
|
2224
|
-
* <Sidebar.Separator />
|
|
2225
|
-
* <DropdownMenu.Root>
|
|
2226
|
-
* <DropdownMenu.Trigger asChild>
|
|
2227
|
-
* <Sidebar.SwitcherTrigger>
|
|
2228
|
-
* <Avatar.Root appearance="square" colorSeed="acc_123">
|
|
2229
|
-
* <Avatar.Fallback name="Acme Corp" />
|
|
2230
|
-
* </Avatar.Root>
|
|
2231
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Acme Corp</span>
|
|
2232
|
-
* </Sidebar.SwitcherTrigger>
|
|
2233
|
-
* </DropdownMenu.Trigger>
|
|
2234
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
2235
|
-
* </DropdownMenu.Root>
|
|
2236
|
-
* </Sidebar.Footer>
|
|
2237
|
-
* </Sidebar.Nav>
|
|
2238
|
-
* <Sidebar.Trigger />
|
|
2239
|
-
* </Sidebar.Root>
|
|
2240
|
-
* ```
|
|
2241
|
-
*/
|
|
2242
|
-
readonly ItemButton: typeof ItemButton;
|
|
2243
|
-
/**
|
|
2244
|
-
* The search row: an item-shaped row whose `shortcut` hint appears on hover or
|
|
2245
|
-
* focus, and the same chip as any other row in the collapsed icon rail. Goes
|
|
2246
|
-
* in `Sidebar.Body` to scroll with the navigation, or in `Sidebar.Header` to
|
|
2247
|
-
* stay pinned above it. Not state-wired — compose with
|
|
2248
|
-
* `Command.SearchTrigger`.
|
|
2249
|
-
*
|
|
2250
|
-
* **Data attributes:**
|
|
2251
|
-
*
|
|
2252
|
-
* | Data Attribute | Value | Description |
|
|
2253
|
-
* | --- | --- | --- |
|
|
2254
|
-
* | `data-slot` | `"sidebar-search-trigger"` | On the row element. |
|
|
2255
|
-
* | `data-slot` | `"sidebar-search-trigger-label"` | On the `<span>` wrapping `children` on the default `button` path. Absent under `asChild`, which renders no sibling. Always `display: contents`, so your icon and label stay flex items of the row. |
|
|
2256
|
-
* | `data-slot` | `"sidebar-search-trigger-shortcut"` | On the chord chips. Always present on the default `button` path, and `display: none` while it is empty. Absent under `asChild`, where the props union forbids `shortcut`. Carries `translate="no"`: a chord is a key name, not prose. |
|
|
2257
|
-
* | `data-state` | `"open"` \| `"closed"` | **Read, not stamped**: supplied by the composing `Command.SearchTrigger` / `Dialog.Trigger`. Style the row while its palette is open with `data-state-open:`. |
|
|
2258
|
-
*
|
|
2259
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarsearchtrigger
|
|
2260
|
-
*
|
|
2261
|
-
* @example
|
|
2262
|
-
* ```tsx
|
|
2263
|
-
* <Sidebar.Root>
|
|
2264
|
-
* <Command.DialogRoot>
|
|
2265
|
-
* <Sidebar.Nav aria-label="Main">
|
|
2266
|
-
* <Sidebar.Header>
|
|
2267
|
-
* <Sidebar.SwitcherTrigger>
|
|
2268
|
-
* <GlobeIcon />
|
|
2269
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
|
|
2270
|
-
* </Sidebar.SwitcherTrigger>
|
|
2271
|
-
* </Sidebar.Header>
|
|
2272
|
-
* <Sidebar.Body>
|
|
2273
|
-
* <Sidebar.Tooltip label="Search">
|
|
2274
|
-
* <Command.SearchTrigger>
|
|
2275
|
-
* <Sidebar.SearchTrigger
|
|
2276
|
-
* shortcut={
|
|
2277
|
-
* <>
|
|
2278
|
-
* <MetaKey />
|
|
2279
|
-
* <Kbd>K</Kbd>
|
|
2280
|
-
* </>
|
|
2281
|
-
* }
|
|
2282
|
-
* >
|
|
2283
|
-
* <MagnifyingGlassIcon />
|
|
2284
|
-
* <span className="min-w-0 flex-1 truncate">Search</span>
|
|
2285
|
-
* </Sidebar.SearchTrigger>
|
|
2286
|
-
* </Command.SearchTrigger>
|
|
2287
|
-
* </Sidebar.Tooltip>
|
|
2288
|
-
* <Sidebar.Group>
|
|
2289
|
-
* <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
|
|
2290
|
-
* <Sidebar.List>
|
|
2291
|
-
* <Sidebar.Item>
|
|
2292
|
-
* <Sidebar.ItemButton asChild current>
|
|
2293
|
-
* <a href="/endpoints">
|
|
2294
|
-
* <GraphIcon />
|
|
2295
|
-
* Endpoints
|
|
2296
|
-
* </a>
|
|
2297
|
-
* </Sidebar.ItemButton>
|
|
2298
|
-
* </Sidebar.Item>
|
|
2299
|
-
* </Sidebar.List>
|
|
2300
|
-
* </Sidebar.Group>
|
|
2301
|
-
* </Sidebar.Body>
|
|
2302
|
-
* </Sidebar.Nav>
|
|
2303
|
-
* <Command.DialogContent>
|
|
2304
|
-
* <Command.Input placeholder="Search endpoints, agents, and settings..." />
|
|
2305
|
-
* <Command.List>
|
|
2306
|
-
* <Command.Empty>No results found.</Command.Empty>
|
|
2307
|
-
* </Command.List>
|
|
2308
|
-
* </Command.DialogContent>
|
|
2309
|
-
* </Command.DialogRoot>
|
|
2310
|
-
* <Sidebar.Trigger />
|
|
2311
|
-
* </Sidebar.Root>
|
|
2312
|
-
* ```
|
|
2313
|
-
*/
|
|
2314
|
-
readonly SearchTrigger: typeof SearchTrigger;
|
|
2315
|
-
/**
|
|
2316
|
-
* The styled switcher row for the header/footer. Not state-wired: compose
|
|
2317
|
-
* with `DropdownMenu.Trigger asChild` or `Dialog.Trigger asChild`.
|
|
2318
|
-
*
|
|
2319
|
-
* **Data attributes:**
|
|
2320
|
-
*
|
|
2321
|
-
* | Data Attribute | Value | Description |
|
|
2322
|
-
* | --- | --- | --- |
|
|
2323
|
-
* | `data-state` | `"open"` \| `"closed"` | **Read, not stamped**: supplied by the composing `DropdownMenu.Trigger` / `Dialog.Trigger`. The row styles against it so it stays highlighted while its menu is open. Inside `Sidebar.Tooltip` the tooltip's own `data-state` replaces this one, so the open highlight also keys on `aria-expanded`. |
|
|
2324
|
-
*
|
|
2325
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarswitchertrigger
|
|
2326
|
-
*
|
|
2327
|
-
* @example
|
|
2328
|
-
* ```tsx
|
|
2329
|
-
* <Sidebar.Root>
|
|
2330
|
-
* <Sidebar.Nav aria-label="Main">
|
|
2331
|
-
* <Sidebar.Header>
|
|
2332
|
-
* <DropdownMenu.Root>
|
|
2333
|
-
* <DropdownMenu.Trigger asChild>
|
|
2334
|
-
* <Sidebar.SwitcherTrigger>
|
|
2335
|
-
* <GlobeIcon />
|
|
2336
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
|
|
2337
|
-
* <CaretDownIcon className="text-muted size-4 shrink-0" />
|
|
2338
|
-
* </Sidebar.SwitcherTrigger>
|
|
2339
|
-
* </DropdownMenu.Trigger>
|
|
2340
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
2341
|
-
* </DropdownMenu.Root>
|
|
2342
|
-
* </Sidebar.Header>
|
|
2343
|
-
* <Sidebar.Body>
|
|
2344
|
-
* <Sidebar.Group>
|
|
2345
|
-
* <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
|
|
2346
|
-
* <Sidebar.List>
|
|
2347
|
-
* <Sidebar.Item>
|
|
2348
|
-
* <Sidebar.ItemButton asChild current>
|
|
2349
|
-
* <a href="/endpoints">
|
|
2350
|
-
* <GraphIcon />
|
|
2351
|
-
* Endpoints
|
|
2352
|
-
* </a>
|
|
2353
|
-
* </Sidebar.ItemButton>
|
|
2354
|
-
* </Sidebar.Item>
|
|
2355
|
-
* </Sidebar.List>
|
|
2356
|
-
* </Sidebar.Group>
|
|
2357
|
-
* </Sidebar.Body>
|
|
2358
|
-
* <Sidebar.Footer>
|
|
2359
|
-
* <Sidebar.Separator />
|
|
2360
|
-
* <DropdownMenu.Root>
|
|
2361
|
-
* <DropdownMenu.Trigger asChild>
|
|
2362
|
-
* <Sidebar.SwitcherTrigger>
|
|
2363
|
-
* <Avatar.Root appearance="square" colorSeed="acc_123">
|
|
2364
|
-
* <Avatar.Fallback name="Acme Corp" />
|
|
2365
|
-
* </Avatar.Root>
|
|
2366
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Acme Corp</span>
|
|
2367
|
-
* </Sidebar.SwitcherTrigger>
|
|
2368
|
-
* </DropdownMenu.Trigger>
|
|
2369
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
2370
|
-
* </DropdownMenu.Root>
|
|
2371
|
-
* </Sidebar.Footer>
|
|
2372
|
-
* </Sidebar.Nav>
|
|
2373
|
-
* <Sidebar.Trigger />
|
|
2374
|
-
* </Sidebar.Root>
|
|
2375
|
-
* ```
|
|
2376
|
-
*/
|
|
2377
|
-
readonly SwitcherTrigger: typeof SwitcherTrigger;
|
|
2378
|
-
/**
|
|
2379
|
-
* Labels a row while the panel is collapsed to the icon rail: wrap it
|
|
2380
|
-
* around a `Sidebar.ItemButton` or `Sidebar.SwitcherTrigger`. Requires a
|
|
2381
|
-
* `TooltipProvider` ancestor. Takes `Tooltip.Content`'s props on the
|
|
2382
|
-
* tooltip surface; `side` defaults to `"right"`.
|
|
2383
|
-
*
|
|
2384
|
-
* **Data attributes:**
|
|
2385
|
-
*
|
|
2386
|
-
* | Data Attribute | Value | Description |
|
|
2387
|
-
* | --- | --- | --- |
|
|
2388
|
-
* | `data-slot` | `"sidebar-tooltip tooltip-content"` | On the tooltip surface, with any forwarded chain ahead of it and `Tooltip.Content`'s own slot after it. |
|
|
2389
|
-
* | `data-state` | `"delayed-open"` \| `"instant-open"` \| `"closed"` | Read, not stamped: on the tooltip surface, from `Tooltip.Content`. |
|
|
2390
|
-
* | `data-side` | `"top"` \| `"right"` \| `"bottom"` \| `"left"` | Read, not stamped: on the tooltip surface, from `Tooltip.Content`. The resolved side, `"right"` by default. |
|
|
2391
|
-
* | `data-align` | `"start"` \| `"center"` \| `"end"` | Read, not stamped: on the tooltip surface, from `Tooltip.Content`. |
|
|
2392
|
-
* | `data-slot` | `"sidebar-tooltip-row"` | Inside that surface, on the flex row holding the label and the optional chord chips. Nested inside `Tooltip.Content`'s own `tooltip-label` div. Always present, so a chord that arrives later appends instead of replacing the label. |
|
|
2393
|
-
* | `data-slot` | `"sidebar-tooltip-label"` | On the `<span>` wrapping `label` inside that row. Always present, and `display: contents`, so the label stays a flex item of the row. |
|
|
2394
|
-
* | `data-slot` | `"sidebar-tooltip-shortcut"` | On the chord chips. Present only while `shortcut` holds something. Carries `translate="no"`: a chord is a key name, not prose. |
|
|
2395
|
-
* | `data-state` | `"delayed-open"` \| `"instant-open"` \| `"closed"` | On the wrapped row, from `Tooltip.Trigger`. `"closed"` outside the collapsed rail, where this part vetoes the open state. |
|
|
2396
|
-
*
|
|
2397
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar#sidebartooltip
|
|
2398
|
-
*
|
|
2399
|
-
* @example
|
|
2400
|
-
* ```tsx
|
|
2401
|
-
* <TooltipProvider>
|
|
2402
|
-
* <Sidebar.Root>
|
|
2403
|
-
* <Sidebar.Nav aria-label="Main">
|
|
2404
|
-
* <Sidebar.Header>
|
|
2405
|
-
* <DropdownMenu.Root>
|
|
2406
|
-
* <DropdownMenu.Trigger asChild>
|
|
2407
|
-
* <Sidebar.SwitcherTrigger>
|
|
2408
|
-
* <GlobeIcon />
|
|
2409
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
|
|
2410
|
-
* <CaretDownIcon className="text-muted size-4 shrink-0" />
|
|
2411
|
-
* </Sidebar.SwitcherTrigger>
|
|
2412
|
-
* </DropdownMenu.Trigger>
|
|
2413
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
2414
|
-
* </DropdownMenu.Root>
|
|
2415
|
-
* </Sidebar.Header>
|
|
2416
|
-
* <Sidebar.Body>
|
|
2417
|
-
* <Sidebar.Group>
|
|
2418
|
-
* <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
|
|
2419
|
-
* <Sidebar.List>
|
|
2420
|
-
* <Sidebar.Item>
|
|
2421
|
-
* <Sidebar.Tooltip label="Endpoints">
|
|
2422
|
-
* <Sidebar.ItemButton asChild current>
|
|
2423
|
-
* <a href="/endpoints">
|
|
2424
|
-
* <GraphIcon />
|
|
2425
|
-
* Endpoints
|
|
2426
|
-
* </a>
|
|
2427
|
-
* </Sidebar.ItemButton>
|
|
2428
|
-
* </Sidebar.Tooltip>
|
|
2429
|
-
* </Sidebar.Item>
|
|
2430
|
-
* </Sidebar.List>
|
|
2431
|
-
* </Sidebar.Group>
|
|
2432
|
-
* </Sidebar.Body>
|
|
2433
|
-
* <Sidebar.Footer>
|
|
2434
|
-
* <Sidebar.Separator />
|
|
2435
|
-
* <DropdownMenu.Root>
|
|
2436
|
-
* <Sidebar.Tooltip label="Acme Corp">
|
|
2437
|
-
* <DropdownMenu.Trigger asChild>
|
|
2438
|
-
* <Sidebar.SwitcherTrigger>
|
|
2439
|
-
* <Avatar.Root appearance="square" colorSeed="acc_123">
|
|
2440
|
-
* <Avatar.Fallback name="Acme Corp" />
|
|
2441
|
-
* </Avatar.Root>
|
|
2442
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Acme Corp</span>
|
|
2443
|
-
* </Sidebar.SwitcherTrigger>
|
|
2444
|
-
* </DropdownMenu.Trigger>
|
|
2445
|
-
* </Sidebar.Tooltip>
|
|
2446
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
2447
|
-
* </DropdownMenu.Root>
|
|
2448
|
-
* </Sidebar.Footer>
|
|
2449
|
-
* </Sidebar.Nav>
|
|
2450
|
-
* <Sidebar.Trigger />
|
|
2451
|
-
* </Sidebar.Root>
|
|
2452
|
-
* </TooltipProvider>
|
|
2453
|
-
* ```
|
|
2454
|
-
*/
|
|
2455
|
-
readonly Tooltip: typeof SidebarTooltip;
|
|
2456
|
-
/**
|
|
2457
|
-
* An inset hairline between sidebar regions, aligned with the content
|
|
2458
|
-
* padding. In the icon rail it narrows to the 36px chip width of
|
|
2459
|
-
* `Sidebar.SwitcherTrigger`.
|
|
2460
|
-
*
|
|
2461
|
-
* **Data attributes:**
|
|
2462
|
-
*
|
|
2463
|
-
* | Data Attribute | Value | Description |
|
|
2464
|
-
* | --- | --- | --- |
|
|
2465
|
-
* | `data-orientation` | `"horizontal"` \| `"vertical"` | Read, not stamped: `Separator` reflects its `orientation` prop, `"horizontal"` by default, after a `HorizontalSeparatorGroup` ancestor wins. |
|
|
2466
|
-
* | `data-separator` | present | Read, not stamped: presence-only, from `Separator`. Lets a `HorizontalSeparatorGroup` exempt it from `shrink-0`. |
|
|
2467
|
-
*
|
|
2468
|
-
* @see https://mantle.ngrok.com/components/navigation/sidebar#sidebarseparator
|
|
2469
|
-
*
|
|
2470
|
-
* @example
|
|
2471
|
-
* ```tsx
|
|
2472
|
-
* <Sidebar.Root>
|
|
2473
|
-
* <Sidebar.Nav aria-label="Main">
|
|
2474
|
-
* <Sidebar.Header>
|
|
2475
|
-
* <DropdownMenu.Root>
|
|
2476
|
-
* <DropdownMenu.Trigger asChild>
|
|
2477
|
-
* <Sidebar.SwitcherTrigger>
|
|
2478
|
-
* <GlobeIcon />
|
|
2479
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
|
|
2480
|
-
* <CaretDownIcon className="text-muted size-4 shrink-0" />
|
|
2481
|
-
* </Sidebar.SwitcherTrigger>
|
|
2482
|
-
* </DropdownMenu.Trigger>
|
|
2483
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
2484
|
-
* </DropdownMenu.Root>
|
|
2485
|
-
* </Sidebar.Header>
|
|
2486
|
-
* <Sidebar.Body>
|
|
2487
|
-
* <Sidebar.Group>
|
|
2488
|
-
* <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
|
|
2489
|
-
* <Sidebar.List>
|
|
2490
|
-
* <Sidebar.Item>
|
|
2491
|
-
* <Sidebar.ItemButton asChild current>
|
|
2492
|
-
* <a href="/endpoints">
|
|
2493
|
-
* <GraphIcon />
|
|
2494
|
-
* Endpoints
|
|
2495
|
-
* </a>
|
|
2496
|
-
* </Sidebar.ItemButton>
|
|
2497
|
-
* </Sidebar.Item>
|
|
2498
|
-
* </Sidebar.List>
|
|
2499
|
-
* </Sidebar.Group>
|
|
2500
|
-
* </Sidebar.Body>
|
|
2501
|
-
* <Sidebar.Footer>
|
|
2502
|
-
* <Sidebar.Separator />
|
|
2503
|
-
* <DropdownMenu.Root>
|
|
2504
|
-
* <DropdownMenu.Trigger asChild>
|
|
2505
|
-
* <Sidebar.SwitcherTrigger>
|
|
2506
|
-
* <Avatar.Root appearance="square" colorSeed="acc_123">
|
|
2507
|
-
* <Avatar.Fallback name="Acme Corp" />
|
|
2508
|
-
* </Avatar.Root>
|
|
2509
|
-
* <span className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Acme Corp</span>
|
|
2510
|
-
* </Sidebar.SwitcherTrigger>
|
|
2511
|
-
* </DropdownMenu.Trigger>
|
|
2512
|
-
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
2513
|
-
* </DropdownMenu.Root>
|
|
2514
|
-
* </Sidebar.Footer>
|
|
2515
|
-
* </Sidebar.Nav>
|
|
2516
|
-
* <Sidebar.Trigger />
|
|
2517
|
-
* </Sidebar.Root>
|
|
2518
|
-
* ```
|
|
2519
|
-
*/
|
|
2520
|
-
readonly Separator: typeof SidebarSeparator;
|
|
2521
|
-
};
|
|
9
|
+
import * as SidebarParts from "./sidebar-parts.js";
|
|
10
|
+
import { f as SidebarMobileBreakpoint, m as SidebarState, v as useSidebar } from "./sidebar-OBA7L42d.js";
|
|
2522
11
|
/**
|
|
2523
12
|
* The cookie name {@link extractSidebarStateCookie} reads and
|
|
2524
13
|
* {@link serializeSidebarStateCookie} writes.
|
|
@@ -2530,7 +19,7 @@ declare const Sidebar: {
|
|
|
2530
19
|
*
|
|
2531
20
|
* @example
|
|
2532
21
|
* ```ts
|
|
2533
|
-
* // clear the persisted
|
|
22
|
+
* // clear the persisted sidebar state on sign-out
|
|
2534
23
|
* headers.append("Set-Cookie", `${SIDEBAR_STATE_COOKIE_NAME}=; Max-Age=0; Path=/`);
|
|
2535
24
|
* ```
|
|
2536
25
|
*/
|
|
@@ -2540,7 +29,7 @@ declare const SIDEBAR_STATE_COOKIE_NAME = "mantle-sidebar-state";
|
|
|
2540
29
|
*
|
|
2541
30
|
* This is the server half of cookie-backed persistence: unlike storage-backed
|
|
2542
31
|
* persistence, a cookie is available *before* the server renders, so the
|
|
2543
|
-
* server-rendered HTML already carries the right `data-
|
|
32
|
+
* server-rendered HTML already carries the right `data-expanded` and there is no
|
|
2544
33
|
* first-frame correction to hide. Pass the result straight to `defaultOpen`;
|
|
2545
34
|
* controlled `open` is not required.
|
|
2546
35
|
*
|
|
@@ -2571,7 +60,7 @@ declare function extractSidebarStateCookie(cookieHeader: string | null | undefin
|
|
|
2571
60
|
/**
|
|
2572
61
|
* Attributes for {@link serializeSidebarStateCookie}. Deliberately omits
|
|
2573
62
|
* `HttpOnly`: the browser writes this cookie from `onOpenChange`, so a
|
|
2574
|
-
* server-only cookie could never be updated when the user toggles the
|
|
63
|
+
* server-only cookie could never be updated when the user toggles the sidebar.
|
|
2575
64
|
*
|
|
2576
65
|
* @see https://mantle.ngrok.com/components/navigation/sidebar#serializesidebarstatecookie
|
|
2577
66
|
*
|
|
@@ -2613,7 +102,7 @@ type SerializeSidebarStateCookieOptions = {
|
|
|
2613
102
|
* works on `http://localhost`: the browser silently rejects a `Secure` cookie
|
|
2614
103
|
* over http, which would make the preference appear not to persist in local
|
|
2615
104
|
* development. If your CSP or policy requires it, set it to `true` in
|
|
2616
|
-
* production; this cookie holds no secret, only whether a
|
|
105
|
+
* production; this cookie holds no secret, only whether a sidebar is open.
|
|
2617
106
|
*
|
|
2618
107
|
* @default false
|
|
2619
108
|
*/
|
|
@@ -2653,4 +142,105 @@ type SerializeSidebarStateCookieOptions = {
|
|
|
2653
142
|
* @returns A cookie string such as `mantle-sidebar-state=collapsed; Max-Age=31536000; Path=/; SameSite=Lax`.
|
|
2654
143
|
*/
|
|
2655
144
|
declare function serializeSidebarStateCookie(open: boolean, options?: SerializeSidebarStateCookieOptions): string;
|
|
145
|
+
/**
|
|
146
|
+
* A composable, collapsible app-navigation sidebar. `Sidebar.Root` owns the
|
|
147
|
+
* state (no DOM). `Sidebar.Nav` renders the panel: inline on desktop,
|
|
148
|
+
* collapsing to its icons, and a left-side `Sheet` below the root's
|
|
149
|
+
* `mobileBreakpoint`. `Sidebar.Trigger` toggles it from anywhere under the
|
|
150
|
+
* root (typically an `AppLayout.Header`). Navigation is grouped with
|
|
151
|
+
* `Sidebar.Group`/`Sidebar.GroupLabel`/`Sidebar.List`, and the switcher rows
|
|
152
|
+
* (app switcher up top, account/user down bottom) compose
|
|
153
|
+
* `Sidebar.SwitcherTrigger` with your own `DropdownMenu` or `Dialog`.
|
|
154
|
+
*
|
|
155
|
+
* The component is routing-agnostic: compose router links via `asChild` on
|
|
156
|
+
* `Sidebar.ItemButton` and drive `current` from your router's location.
|
|
157
|
+
*
|
|
158
|
+
* Reach for it for the app's primary navigation on the start edge of an
|
|
159
|
+
* `AppLayout`. A surface that opens beside the page for an assistant or a
|
|
160
|
+
* details pane is `AppLayout.SidePanel`; a modal drawer is `Sheet`; switching
|
|
161
|
+
* sections inside one page is `Tabs`.
|
|
162
|
+
*
|
|
163
|
+
* @useWhen Show the main navigation of an app, with its app and account switchers, in a column that
|
|
164
|
+
* collapses to its icons, and to a sheet on small screens.
|
|
165
|
+
*
|
|
166
|
+
* @siblings
|
|
167
|
+
* - `Tabs`: the user switches between views inside one page.
|
|
168
|
+
* - `Sheet`: a panel opens over the page for a task, not for navigation.
|
|
169
|
+
* - `Breadcrumb`: the page shows where it sits in a hierarchy.
|
|
170
|
+
*
|
|
171
|
+
* @see https://mantle.ngrok.com/components/navigation/sidebar
|
|
172
|
+
*
|
|
173
|
+
* @example
|
|
174
|
+
* Composition:
|
|
175
|
+
* ```
|
|
176
|
+
* Sidebar.Root
|
|
177
|
+
* ├── Sidebar.Nav
|
|
178
|
+
* │ ├── Sidebar.Header
|
|
179
|
+
* │ │ └── Sidebar.SwitcherTrigger
|
|
180
|
+
* │ ├── Sidebar.Body
|
|
181
|
+
* │ │ ├── Sidebar.SearchTrigger
|
|
182
|
+
* │ │ └── Sidebar.Group
|
|
183
|
+
* │ │ ├── Sidebar.GroupLabel
|
|
184
|
+
* │ │ └── Sidebar.List
|
|
185
|
+
* │ │ └── Sidebar.Item
|
|
186
|
+
* │ │ └── Sidebar.Tooltip
|
|
187
|
+
* │ │ └── Sidebar.ItemButton
|
|
188
|
+
* │ └── Sidebar.Footer
|
|
189
|
+
* │ ├── Sidebar.ItemButton
|
|
190
|
+
* │ ├── Sidebar.Separator
|
|
191
|
+
* │ └── Sidebar.SwitcherTrigger
|
|
192
|
+
* └── Sidebar.Trigger
|
|
193
|
+
* ```
|
|
194
|
+
*
|
|
195
|
+
* @example
|
|
196
|
+
* ```tsx
|
|
197
|
+
* <Sidebar.Root>
|
|
198
|
+
* <Sidebar.Nav aria-label="Main">
|
|
199
|
+
* <Sidebar.Header>
|
|
200
|
+
* <DropdownMenu.Root>
|
|
201
|
+
* <DropdownMenu.Trigger asChild>
|
|
202
|
+
* <Sidebar.SwitcherTrigger>
|
|
203
|
+
* <GlobeIcon />
|
|
204
|
+
* <span className="text-strong min-w-0 flex-1 truncate text-base">Universal Gateway</span>
|
|
205
|
+
* <CaretDownIcon className="text-muted size-4 shrink-0" />
|
|
206
|
+
* </Sidebar.SwitcherTrigger>
|
|
207
|
+
* </DropdownMenu.Trigger>
|
|
208
|
+
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
209
|
+
* </DropdownMenu.Root>
|
|
210
|
+
* </Sidebar.Header>
|
|
211
|
+
* <Sidebar.Body>
|
|
212
|
+
* <Sidebar.Group>
|
|
213
|
+
* <Sidebar.GroupLabel>Traffic</Sidebar.GroupLabel>
|
|
214
|
+
* <Sidebar.List>
|
|
215
|
+
* <Sidebar.Item>
|
|
216
|
+
* <Sidebar.ItemButton asChild current>
|
|
217
|
+
* <a href="/endpoints">
|
|
218
|
+
* <GraphIcon />
|
|
219
|
+
* Endpoints
|
|
220
|
+
* </a>
|
|
221
|
+
* </Sidebar.ItemButton>
|
|
222
|
+
* </Sidebar.Item>
|
|
223
|
+
* </Sidebar.List>
|
|
224
|
+
* </Sidebar.Group>
|
|
225
|
+
* </Sidebar.Body>
|
|
226
|
+
* <Sidebar.Footer>
|
|
227
|
+
* <Sidebar.Separator />
|
|
228
|
+
* <DropdownMenu.Root>
|
|
229
|
+
* <DropdownMenu.Trigger asChild>
|
|
230
|
+
* <Sidebar.SwitcherTrigger>
|
|
231
|
+
* <Avatar.Root appearance="square" colorSeed="acc_123">
|
|
232
|
+
* <Avatar.Fallback name="Acme Corp" />
|
|
233
|
+
* </Avatar.Root>
|
|
234
|
+
* <span className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Acme Corp</span>
|
|
235
|
+
* </Sidebar.SwitcherTrigger>
|
|
236
|
+
* </DropdownMenu.Trigger>
|
|
237
|
+
* <DropdownMenu.Content width="trigger" className="min-w-(--sidebar-row-width)">…</DropdownMenu.Content>
|
|
238
|
+
* </DropdownMenu.Root>
|
|
239
|
+
* </Sidebar.Footer>
|
|
240
|
+
* </Sidebar.Nav>
|
|
241
|
+
* <Sidebar.Trigger />
|
|
242
|
+
* </Sidebar.Root>
|
|
243
|
+
* ```
|
|
244
|
+
*/
|
|
245
|
+
declare const Sidebar: typeof SidebarParts;
|
|
2656
246
|
export { SIDEBAR_STATE_COOKIE_NAME, type SerializeSidebarStateCookieOptions, Sidebar, type SidebarMobileBreakpoint, type SidebarState, extractSidebarStateCookie, serializeSidebarStateCookie, useSidebar };
|