@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/app-layout.d.ts
CHANGED
|
@@ -7,1888 +7,8 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @see https://mantle.ngrok.com/layouts/app-layout
|
|
9
9
|
*/
|
|
10
|
-
import
|
|
11
|
-
import { t as
|
|
12
|
-
import { n as IconButtonProps } from "./button-BGwOPjGV.js";
|
|
13
|
-
import { ComponentProps, ReactNode } from "react";
|
|
14
|
-
/**
|
|
15
|
-
* The outer frame of an application shell. Renders a `<div>` with
|
|
16
|
-
* `relative isolate flex h-full w-full flex-col overflow-clip`, so
|
|
17
|
-
* it fills its nearest sized ancestor — which makes it embeddable in docs
|
|
18
|
-
* demos and tests. Real app shells pin it to the viewport by merging
|
|
19
|
-
* `className="fixed inset-0"` (mantle `cx` is tailwind-merge-backed, so the
|
|
20
|
-
* override is deterministic); the shell itself never scrolls — only
|
|
21
|
-
* `AppLayout.Body` does.
|
|
22
|
-
*
|
|
23
|
-
* It clips with `overflow-clip` rather than `overflow-hidden` for the same
|
|
24
|
-
* reason `AppLayout.Content` does: `hidden` **is** a scroll container that
|
|
25
|
-
* paints no scrollbar, so anything wider than the frame lets focus scroll the
|
|
26
|
-
* entire shell sideways — translating the notice, the rail, and the card out of
|
|
27
|
-
* view with no scrollbar and no gesture to bring them back. On a frame pinned
|
|
28
|
-
* with `fixed inset-0` that is the whole window. `clip` is not a scroll
|
|
29
|
-
* container at all.
|
|
30
|
-
*
|
|
31
|
-
* When the shell owns the document, render a `SkipToMainLink` as its first
|
|
32
|
-
* child. `AppLayout.Body` is the `Main` landmark, so the link sends keyboard
|
|
33
|
-
* users past the sidebar and the toolbar straight into the scrolling page
|
|
34
|
-
* region.
|
|
35
|
-
*
|
|
36
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutroot
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* ```tsx
|
|
40
|
-
* <Sidebar.Root>
|
|
41
|
-
* <AppLayout.Root className="fixed inset-0">
|
|
42
|
-
* <SkipToMainLink />
|
|
43
|
-
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
44
|
-
* <AppLayout.Workspace>
|
|
45
|
-
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
46
|
-
* <AppLayout.Content>
|
|
47
|
-
* <AppLayout.Header>
|
|
48
|
-
* <AppLayout.HeaderStart>
|
|
49
|
-
* <Sidebar.Trigger />
|
|
50
|
-
* </AppLayout.HeaderStart>
|
|
51
|
-
* <AppLayout.HeaderContent>
|
|
52
|
-
* <Breadcrumbs />
|
|
53
|
-
* </AppLayout.HeaderContent>
|
|
54
|
-
* <AppLayout.HeaderActions>
|
|
55
|
-
* <PageActions />
|
|
56
|
-
* </AppLayout.HeaderActions>
|
|
57
|
-
* </AppLayout.Header>
|
|
58
|
-
* <AppLayout.Body>
|
|
59
|
-
* <Outlet />
|
|
60
|
-
* </AppLayout.Body>
|
|
61
|
-
* </AppLayout.Content>
|
|
62
|
-
* </AppLayout.Workspace>
|
|
63
|
-
* </AppLayout.Root>
|
|
64
|
-
* </Sidebar.Root>
|
|
65
|
-
* ```
|
|
66
|
-
*/
|
|
67
|
-
declare const Root: ({ asChild, children, className, "data-slot": dataSlot, ...props }: ComponentProps<"div"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
|
|
68
|
-
/**
|
|
69
|
-
* A full-window-width strip pinned above everything else in the shell —
|
|
70
|
-
* including any sidebar — for maintenance notices, environment warnings,
|
|
71
|
-
* and similar app-wide messaging. It is a vertical composition slot: place a
|
|
72
|
-
* maintenance banner and an `AlertCenter.Bar` here, and each contributes its
|
|
73
|
-
* own row while the slot pushes the shell down. Renders an unstyled `<div>`
|
|
74
|
-
* (`flex w-full shrink-0 flex-col`): its children bring their own colors and
|
|
75
|
-
* layout, and the part collapses to nothing when empty. Deliberately not named
|
|
76
|
-
* `Banner` so it never reads as the ARIA `banner` landmark — it claims no
|
|
77
|
-
* landmark at all.
|
|
78
|
-
*
|
|
79
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutnotice
|
|
80
|
-
*
|
|
81
|
-
* @example
|
|
82
|
-
* ```tsx
|
|
83
|
-
* <Sidebar.Root>
|
|
84
|
-
* <AppLayout.Root className="fixed inset-0">
|
|
85
|
-
* <SkipToMainLink />
|
|
86
|
-
* <AppLayout.Notice>
|
|
87
|
-
* {isUnderMaintenance && (
|
|
88
|
-
* <div className="bg-red-500 text-on-filled flex items-center gap-2 px-4 py-1 text-xs">
|
|
89
|
-
* The dashboard is read-only until {maintenanceEndsAt}.
|
|
90
|
-
* </div>
|
|
91
|
-
* )}
|
|
92
|
-
* </AppLayout.Notice>
|
|
93
|
-
* <AppLayout.Workspace>
|
|
94
|
-
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
95
|
-
* <AppLayout.Content>
|
|
96
|
-
* <AppLayout.Header>
|
|
97
|
-
* <AppLayout.HeaderStart>
|
|
98
|
-
* <Sidebar.Trigger />
|
|
99
|
-
* </AppLayout.HeaderStart>
|
|
100
|
-
* <AppLayout.HeaderContent>
|
|
101
|
-
* <Breadcrumbs />
|
|
102
|
-
* </AppLayout.HeaderContent>
|
|
103
|
-
* <AppLayout.HeaderActions>
|
|
104
|
-
* <PageActions />
|
|
105
|
-
* </AppLayout.HeaderActions>
|
|
106
|
-
* </AppLayout.Header>
|
|
107
|
-
* <AppLayout.Body>
|
|
108
|
-
* <Outlet />
|
|
109
|
-
* </AppLayout.Body>
|
|
110
|
-
* </AppLayout.Content>
|
|
111
|
-
* </AppLayout.Workspace>
|
|
112
|
-
* </AppLayout.Root>
|
|
113
|
-
* </Sidebar.Root>
|
|
114
|
-
* ```
|
|
115
|
-
*/
|
|
116
|
-
declare const Notice: ({ asChild, children, className, "data-slot": dataSlot, ...props }: ComponentProps<"div"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
|
|
117
|
-
/**
|
|
118
|
-
* The region where the user actually works: everything below
|
|
119
|
-
* `AppLayout.Notice`, laid out as a row of columns. Place a `Sidebar.Nav` (or
|
|
120
|
-
* any other rail, on either side) beside an `AppLayout.Content` card, and an
|
|
121
|
-
* `AppLayout.SidePanel` after the card. A flex row
|
|
122
|
-
* (`relative flex min-h-0 min-w-0 flex-1`) whose `min-h-0` is
|
|
123
|
-
* what lets `AppLayout.Body` scroll instead of the page.
|
|
124
|
-
*
|
|
125
|
-
* It owns no gutter, deliberately: the card insets itself with its own margin,
|
|
126
|
-
* so a rail stays flush against the window edge and a collapsed icon rail keeps
|
|
127
|
-
* its flush geometry.
|
|
128
|
-
*
|
|
129
|
-
* It is `relative`, so a floating `AppLayout.SidePanel` resolves against the row
|
|
130
|
-
* and covers the card, never the notice above it. It is also the container
|
|
131
|
-
* named `app-layout-workspace`: the panel floats when the row is narrower than
|
|
132
|
-
* the lane it needs, so a page is never narrower than the panel beside it. The
|
|
133
|
-
* lane is `--container-side-panel-lane` while a direct child of the row is an
|
|
134
|
-
* expanded `Sidebar.Nav`, and `--container-side-panel-lane-icon-rail` with a
|
|
135
|
-
* collapsed rail or none.
|
|
136
|
-
*
|
|
137
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutworkspace
|
|
138
|
-
*
|
|
139
|
-
* @example
|
|
140
|
-
* ```tsx
|
|
141
|
-
* <Sidebar.Root>
|
|
142
|
-
* <AppLayout.Root className="fixed inset-0">
|
|
143
|
-
* <SkipToMainLink />
|
|
144
|
-
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
145
|
-
* <AppLayout.Workspace>
|
|
146
|
-
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
147
|
-
* <AppLayout.Content>
|
|
148
|
-
* <AppLayout.Header>
|
|
149
|
-
* <AppLayout.HeaderStart>
|
|
150
|
-
* <Sidebar.Trigger />
|
|
151
|
-
* </AppLayout.HeaderStart>
|
|
152
|
-
* <AppLayout.HeaderContent>
|
|
153
|
-
* <Breadcrumbs />
|
|
154
|
-
* </AppLayout.HeaderContent>
|
|
155
|
-
* <AppLayout.HeaderActions>
|
|
156
|
-
* <PageActions />
|
|
157
|
-
* </AppLayout.HeaderActions>
|
|
158
|
-
* </AppLayout.Header>
|
|
159
|
-
* <AppLayout.Body>
|
|
160
|
-
* <Outlet />
|
|
161
|
-
* </AppLayout.Body>
|
|
162
|
-
* </AppLayout.Content>
|
|
163
|
-
* </AppLayout.Workspace>
|
|
164
|
-
* </AppLayout.Root>
|
|
165
|
-
* </Sidebar.Root>
|
|
166
|
-
* ```
|
|
167
|
-
*/
|
|
168
|
-
declare const Workspace: ({ asChild, children, className, "data-slot": dataSlot, ...props }: ComponentProps<"div"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
|
|
169
|
-
/**
|
|
170
|
-
* The content card of the shell: a rounded, bordered `bg-card` surface beside
|
|
171
|
-
* the sidebar, holding `AppLayout.Header` and `AppLayout.Body`. A flex column
|
|
172
|
-
* that fills the remaining width of
|
|
173
|
-
* `AppLayout.Workspace` and insets itself from the window edge and the rail with
|
|
174
|
-
* its own margin (`--app-layout-card-gutter`, default `0.5rem`) — the gutter
|
|
175
|
-
* belongs to the card so a rail stays flush against the window edge.
|
|
176
|
-
*
|
|
177
|
-
* The card does **not** scroll: `AppLayout.Body` does. `Content` is
|
|
178
|
-
* `overflow-clip`, which does two jobs — it keeps a full-bleed page background
|
|
179
|
-
* from painting square corners over the card's `rounded-xl`, and it is
|
|
180
|
-
* deliberately `clip` rather than `hidden` because `hidden` is a scroll
|
|
181
|
-
* container with no scrollbar: a long toolbar would let focus scroll the card
|
|
182
|
-
* sideways, dragging the header and the page with it, and nothing could scroll
|
|
183
|
-
* it back.
|
|
184
|
-
*
|
|
185
|
-
* It is also `relative`, so page content positioned with `absolute` resolves
|
|
186
|
-
* against the card instead of escaping to `AppLayout.Root` and painting across
|
|
187
|
-
* the sidebar rail.
|
|
188
|
-
*
|
|
189
|
-
* **CSS variables (public API):**
|
|
190
|
-
*
|
|
191
|
-
* | CSS Variable | Default | Description |
|
|
192
|
-
* | --- | --- | --- |
|
|
193
|
-
* | `--app-layout-card-gutter` | `0.5rem` | The gap between the card and the window edge, the notice above it, and the rail beside it (8px). `AppLayout.Header` subtracts twice this value when deriving its height, so overriding it keeps the toolbar aligned with the sidebar header's band. Set it on `AppLayout.Root` or another common ancestor, not on this part: `AppLayout.SidePanel` and `AppLayout.SidePanelHeader` read it too, and custom properties inherit downward only. |
|
|
194
|
-
*
|
|
195
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutcontent
|
|
196
|
-
*
|
|
197
|
-
* @example
|
|
198
|
-
* ```tsx
|
|
199
|
-
* <Sidebar.Root>
|
|
200
|
-
* <AppLayout.Root className="fixed inset-0">
|
|
201
|
-
* <SkipToMainLink />
|
|
202
|
-
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
203
|
-
* <AppLayout.Workspace>
|
|
204
|
-
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
205
|
-
* <AppLayout.Content>
|
|
206
|
-
* <AppLayout.Header>
|
|
207
|
-
* <AppLayout.HeaderStart>
|
|
208
|
-
* <Sidebar.Trigger />
|
|
209
|
-
* </AppLayout.HeaderStart>
|
|
210
|
-
* <AppLayout.HeaderContent>
|
|
211
|
-
* <Breadcrumbs />
|
|
212
|
-
* </AppLayout.HeaderContent>
|
|
213
|
-
* <AppLayout.HeaderActions>
|
|
214
|
-
* <PageActions />
|
|
215
|
-
* </AppLayout.HeaderActions>
|
|
216
|
-
* </AppLayout.Header>
|
|
217
|
-
* <AppLayout.Body>
|
|
218
|
-
* <Outlet />
|
|
219
|
-
* </AppLayout.Body>
|
|
220
|
-
* </AppLayout.Content>
|
|
221
|
-
* </AppLayout.Workspace>
|
|
222
|
-
* </AppLayout.Root>
|
|
223
|
-
* </Sidebar.Root>
|
|
224
|
-
* ```
|
|
225
|
-
*/
|
|
226
|
-
declare const Content: ({ asChild, children, className, "data-slot": dataSlot, ...props }: ComponentProps<"div"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
|
|
227
|
-
/**
|
|
228
|
-
* The toolbar row at the top of the content card. Render it as the **first
|
|
229
|
-
* child of `AppLayout.Content`**, and compose its three slots in order:
|
|
230
|
-
* `AppLayout.HeaderStart` for the `Sidebar.Trigger`, `AppLayout.HeaderContent`
|
|
231
|
-
* for the `Breadcrumb` trail, and `AppLayout.HeaderActions` for the page's
|
|
232
|
-
* actions. The slots carry the flex (`shrink-0`, `min-w-0 flex-1`, and
|
|
233
|
-
* `ml-auto shrink-0`), so no call site sets it. The row's `gap-2` spaces the
|
|
234
|
-
* three slots, and each slot repeats it between its own children.
|
|
235
|
-
*
|
|
236
|
-
* It is pinned by construction, not by `sticky`: as a `shrink-0` flex sibling
|
|
237
|
-
* *outside* the scrolling `AppLayout.Body`, it cannot scroll away, cannot be
|
|
238
|
-
* overlapped by a page's own `sticky top-0`, and does not translate sideways
|
|
239
|
-
* when the page scrolls horizontally. It takes no height from a page that asks
|
|
240
|
-
* for `h-full`.
|
|
241
|
-
*
|
|
242
|
-
* Renders a `<div>`, not a `<header>`: `AppLayout.Body` is the `main` landmark
|
|
243
|
-
* and this row is its sibling, so a `<header>` here would have no sectioning
|
|
244
|
-
* ancestor and would become the ARIA `banner` landmark, which a card toolbar is
|
|
245
|
-
* not. If you need one, compose your own element with `asChild`.
|
|
246
|
-
*
|
|
247
|
-
* **Sidebar alignment is an invariant, not a coincidence:** standalone, the
|
|
248
|
-
* toolbar is `h-14`. When the shell contains a `Sidebar.Header` (detected via
|
|
249
|
-
* `:has()` from `AppLayout.Root`), the toolbar instead derives its height from
|
|
250
|
-
* the sidebar's public `--sidebar-header-height` token, subtracting twice the
|
|
251
|
-
* card gutter and twice the card's hairline border. That keeps this toolbar's
|
|
252
|
-
* vertical center on the band that token names, by construction, for any band
|
|
253
|
-
* height. The band belongs to the sidebar header's first row, so a header that
|
|
254
|
-
* stacks a second row grows downward and this toolbar keeps matching the
|
|
255
|
-
* switcher row alone. Override `--sidebar-header-height` on a common ancestor
|
|
256
|
-
* (e.g. `AppLayout.Root`'s `className`) and both rows move together.
|
|
257
|
-
*
|
|
258
|
-
* **CSS variables (public API):**
|
|
259
|
-
*
|
|
260
|
-
* | CSS Variable | Default | Description |
|
|
261
|
-
* | --- | --- | --- |
|
|
262
|
-
* | `--sidebar-header-height` | `4.5rem` | Read, not owned: `Sidebar.Header` owns this token (the band its first row sits on), and `AppLayout.Header` derives its own height from it whenever a sidebar header is present in the shell. Set it on a common ancestor of both rows (e.g. `AppLayout.Root`), never on one of them, since custom properties only inherit downward. |
|
|
263
|
-
* | `--app-layout-card-gutter` | `0.5rem` | Read, not owned: `AppLayout.Content` owns this token. The derived height subtracts twice its value, so changing the card gutter keeps the two rows aligned instead of drifting. |
|
|
264
|
-
*
|
|
265
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutheader
|
|
266
|
-
*
|
|
267
|
-
* @example
|
|
268
|
-
* ```tsx
|
|
269
|
-
* <Sidebar.Root>
|
|
270
|
-
* <AppLayout.Root className="fixed inset-0">
|
|
271
|
-
* <SkipToMainLink />
|
|
272
|
-
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
273
|
-
* <AppLayout.Workspace>
|
|
274
|
-
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
275
|
-
* <AppLayout.Content>
|
|
276
|
-
* <AppLayout.Header>
|
|
277
|
-
* <AppLayout.HeaderStart>
|
|
278
|
-
* <Sidebar.Trigger />
|
|
279
|
-
* </AppLayout.HeaderStart>
|
|
280
|
-
* <AppLayout.HeaderContent>
|
|
281
|
-
* <Breadcrumbs />
|
|
282
|
-
* </AppLayout.HeaderContent>
|
|
283
|
-
* <AppLayout.HeaderActions>
|
|
284
|
-
* <PageActions />
|
|
285
|
-
* </AppLayout.HeaderActions>
|
|
286
|
-
* </AppLayout.Header>
|
|
287
|
-
* <AppLayout.Body>
|
|
288
|
-
* <Outlet />
|
|
289
|
-
* </AppLayout.Body>
|
|
290
|
-
* </AppLayout.Content>
|
|
291
|
-
* </AppLayout.Workspace>
|
|
292
|
-
* </AppLayout.Root>
|
|
293
|
-
* </Sidebar.Root>
|
|
294
|
-
* ```
|
|
295
|
-
*/
|
|
296
|
-
declare const Header: ({ asChild, children, className, "data-slot": dataSlot, ...props }: ComponentProps<"div"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
|
|
297
|
-
/**
|
|
298
|
-
* The leading slot of `AppLayout.Header`: the home of `Sidebar.Trigger`, or of
|
|
299
|
-
* the control that opens the row in a shell with no sidebar. Renders a `<div>`
|
|
300
|
-
* that is `shrink-0`, so it takes only the width its children need and keeps
|
|
301
|
-
* the row's start while `AppLayout.HeaderContent` gives up width beside it. It
|
|
302
|
-
* is a flex row with the header's own `gap-2`, so a second control sits beside
|
|
303
|
-
* the first at the same spacing.
|
|
304
|
-
*
|
|
305
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutheaderstart
|
|
306
|
-
*
|
|
307
|
-
* @example
|
|
308
|
-
* ```tsx
|
|
309
|
-
* <Sidebar.Root>
|
|
310
|
-
* <AppLayout.Root className="fixed inset-0">
|
|
311
|
-
* <SkipToMainLink />
|
|
312
|
-
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
313
|
-
* <AppLayout.Workspace>
|
|
314
|
-
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
315
|
-
* <AppLayout.Content>
|
|
316
|
-
* <AppLayout.Header>
|
|
317
|
-
* <AppLayout.HeaderStart>
|
|
318
|
-
* <Sidebar.Trigger />
|
|
319
|
-
* </AppLayout.HeaderStart>
|
|
320
|
-
* <AppLayout.HeaderContent>
|
|
321
|
-
* <Breadcrumbs />
|
|
322
|
-
* </AppLayout.HeaderContent>
|
|
323
|
-
* <AppLayout.HeaderActions>
|
|
324
|
-
* <PageActions />
|
|
325
|
-
* </AppLayout.HeaderActions>
|
|
326
|
-
* </AppLayout.Header>
|
|
327
|
-
* <AppLayout.Body>
|
|
328
|
-
* <Outlet />
|
|
329
|
-
* </AppLayout.Body>
|
|
330
|
-
* </AppLayout.Content>
|
|
331
|
-
* </AppLayout.Workspace>
|
|
332
|
-
* </AppLayout.Root>
|
|
333
|
-
* </Sidebar.Root>
|
|
334
|
-
* ```
|
|
335
|
-
*/
|
|
336
|
-
declare const HeaderStart: ({ asChild, children, className, "data-slot": dataSlot, ...props }: ComponentProps<"div"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
|
|
337
|
-
/**
|
|
338
|
-
* The slot that fills `AppLayout.Header`: the home of the `Breadcrumb` trail,
|
|
339
|
-
* or of a page title in a shell with no trail. Renders a `<div>` that is
|
|
340
|
-
* `min-w-0 flex-1`, so it takes every pixel `AppLayout.HeaderStart` and
|
|
341
|
-
* `AppLayout.HeaderActions` leave, and it gives width back before either of
|
|
342
|
-
* them does. The `min-w-0` is what lets a `Breadcrumb.List` inside it scroll
|
|
343
|
-
* sideways instead of pushing the actions off the card. It is a flex row with
|
|
344
|
-
* the header's own `gap-2`.
|
|
345
|
-
*
|
|
346
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutheadercontent
|
|
347
|
-
*
|
|
348
|
-
* @example
|
|
349
|
-
* ```tsx
|
|
350
|
-
* <Sidebar.Root>
|
|
351
|
-
* <AppLayout.Root className="fixed inset-0">
|
|
352
|
-
* <SkipToMainLink />
|
|
353
|
-
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
354
|
-
* <AppLayout.Workspace>
|
|
355
|
-
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
356
|
-
* <AppLayout.Content>
|
|
357
|
-
* <AppLayout.Header>
|
|
358
|
-
* <AppLayout.HeaderStart>
|
|
359
|
-
* <Sidebar.Trigger />
|
|
360
|
-
* </AppLayout.HeaderStart>
|
|
361
|
-
* <AppLayout.HeaderContent>
|
|
362
|
-
* <Breadcrumbs />
|
|
363
|
-
* </AppLayout.HeaderContent>
|
|
364
|
-
* <AppLayout.HeaderActions>
|
|
365
|
-
* <PageActions />
|
|
366
|
-
* </AppLayout.HeaderActions>
|
|
367
|
-
* </AppLayout.Header>
|
|
368
|
-
* <AppLayout.Body>
|
|
369
|
-
* <Outlet />
|
|
370
|
-
* </AppLayout.Body>
|
|
371
|
-
* </AppLayout.Content>
|
|
372
|
-
* </AppLayout.Workspace>
|
|
373
|
-
* </AppLayout.Root>
|
|
374
|
-
* </Sidebar.Root>
|
|
375
|
-
* ```
|
|
376
|
-
*/
|
|
377
|
-
declare const HeaderContent: ({ asChild, children, className, "data-slot": dataSlot, ...props }: ComponentProps<"div"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
|
|
378
|
-
/**
|
|
379
|
-
* The trailing slot of `AppLayout.Header`: the page's actions, aligned to the
|
|
380
|
-
* row's end. Renders a `<div>` that is `ml-auto shrink-0`, so it takes only the
|
|
381
|
-
* width its children need, grows to the left as actions are added, and stays at
|
|
382
|
-
* the end even when the header renders no `AppLayout.HeaderContent`. It is a
|
|
383
|
-
* flex row with the header's own `gap-2`.
|
|
384
|
-
*
|
|
385
|
-
* Keep it to three actions or fewer, and collapse them into one `DropdownMenu`
|
|
386
|
-
* behind a single `IconButton` below the sidebar's mobile breakpoint; the docs
|
|
387
|
-
* show the shape. Which actions render is the route's decision: derive them
|
|
388
|
-
* from the matched route chain, the way the breadcrumb trail is derived, and
|
|
389
|
-
* never from a context a page writes into from an effect.
|
|
390
|
-
*
|
|
391
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutheaderactions
|
|
392
|
-
*
|
|
393
|
-
* @example
|
|
394
|
-
* ```tsx
|
|
395
|
-
* <Sidebar.Root>
|
|
396
|
-
* <AppLayout.Root className="fixed inset-0">
|
|
397
|
-
* <SkipToMainLink />
|
|
398
|
-
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
399
|
-
* <AppLayout.Workspace>
|
|
400
|
-
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
401
|
-
* <AppLayout.Content>
|
|
402
|
-
* <AppLayout.Header>
|
|
403
|
-
* <AppLayout.HeaderStart>
|
|
404
|
-
* <Sidebar.Trigger />
|
|
405
|
-
* </AppLayout.HeaderStart>
|
|
406
|
-
* <AppLayout.HeaderContent>
|
|
407
|
-
* <Breadcrumbs />
|
|
408
|
-
* </AppLayout.HeaderContent>
|
|
409
|
-
* <AppLayout.HeaderActions>
|
|
410
|
-
* <PageActions />
|
|
411
|
-
* </AppLayout.HeaderActions>
|
|
412
|
-
* </AppLayout.Header>
|
|
413
|
-
* <AppLayout.Body>
|
|
414
|
-
* <Outlet />
|
|
415
|
-
* </AppLayout.Body>
|
|
416
|
-
* </AppLayout.Content>
|
|
417
|
-
* </AppLayout.Workspace>
|
|
418
|
-
* </AppLayout.Root>
|
|
419
|
-
* </Sidebar.Root>
|
|
420
|
-
* ```
|
|
421
|
-
*/
|
|
422
|
-
declare const HeaderActions: ({ asChild, children, className, "data-slot": dataSlot, ...props }: ComponentProps<"div"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
|
|
423
|
-
/**
|
|
424
|
-
* The page region of the content card, and the shell's **only** scroll
|
|
425
|
-
* container (`overflow-y-auto overscroll-none`) — the page body never scrolls
|
|
426
|
-
* and scroll never bounces the shell. Render it after `AppLayout.Header` inside
|
|
427
|
-
* `AppLayout.Content`.
|
|
428
|
-
*
|
|
429
|
-
* It renders mantle's `Main` landmark: `<main id="main" tabIndex={-1}>` with
|
|
430
|
-
* `data-slot="app-layout-body main"`. Pair it with a `SkipToMainLink` as the
|
|
431
|
-
* first child of `AppLayout.Root`; the link's default `targetId` matches
|
|
432
|
-
* `Main`'s `id`. The focused landmark **is** the scroll container, so arrows,
|
|
433
|
-
* `Space`, and `PageDown` scroll the page as soon as the jump lands, and the
|
|
434
|
-
* skip clears the sidebar *and* the toolbar. `id` and `tabIndex` are not props,
|
|
435
|
-
* for the same reason they are not props on `Main`.
|
|
436
|
-
*
|
|
437
|
-
* When the surrounding document already owns the `main` landmark (a docs demo,
|
|
438
|
-
* a test, a shell embedded in a page), pass `asChild` and render a plain
|
|
439
|
-
* `<div>`. The part then adds its classes and its `data-slot` to your element
|
|
440
|
-
* and no landmark.
|
|
441
|
-
*
|
|
442
|
-
* It is a flex **item** that is **block inside**, and each half does a job:
|
|
443
|
-
*
|
|
444
|
-
* - `min-h-0 flex-1` gives it a definite height, so a page that asks for
|
|
445
|
-
* `h-full` fills exactly the card interior instead of overflowing it by the
|
|
446
|
-
* toolbar's height.
|
|
447
|
-
* - block layout inside — not flex — is why `mx-auto max-w-7xl` still centers a
|
|
448
|
-
* page at its max width. As a *flex child*, auto margins beat
|
|
449
|
-
* `align-items: stretch` and the same container shrink-to-fits, getting
|
|
450
|
-
* *narrower* as the viewport gets wider.
|
|
451
|
-
* - `w-full` states the width outright instead of leaning on the flex
|
|
452
|
-
* container's cross-axis `stretch`, so an `mx-auto` merged onto `Body` still
|
|
453
|
-
* leaves it full width — auto cross-axis margins would otherwise turn a
|
|
454
|
-
* stretched item into a shrink-to-fit one. It is no floor, though: `cx` is
|
|
455
|
-
* tailwind-merge-backed and the consumer's `className` wins, so a merged
|
|
456
|
-
* `w-*` replaces it outright, while a merged `max-w-*` — a separate conflict
|
|
457
|
-
* group — survives beside it and clamps the scrollport. Constrain the *page*
|
|
458
|
-
* inside `Body`, not `Body` itself.
|
|
459
|
-
*
|
|
460
|
-
* It is `relative` too, so page content positioned with `absolute` is contained
|
|
461
|
-
* by the scrollport the route author is already reasoning about.
|
|
462
|
-
*
|
|
463
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutbody
|
|
464
|
-
*
|
|
465
|
-
* @example
|
|
466
|
-
* ```tsx
|
|
467
|
-
* <Sidebar.Root>
|
|
468
|
-
* <AppLayout.Root className="fixed inset-0">
|
|
469
|
-
* <SkipToMainLink />
|
|
470
|
-
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
471
|
-
* <AppLayout.Workspace>
|
|
472
|
-
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
473
|
-
* <AppLayout.Content>
|
|
474
|
-
* <AppLayout.Header>
|
|
475
|
-
* <AppLayout.HeaderStart>
|
|
476
|
-
* <Sidebar.Trigger />
|
|
477
|
-
* </AppLayout.HeaderStart>
|
|
478
|
-
* <AppLayout.HeaderContent>
|
|
479
|
-
* <Breadcrumbs />
|
|
480
|
-
* </AppLayout.HeaderContent>
|
|
481
|
-
* <AppLayout.HeaderActions>
|
|
482
|
-
* <PageActions />
|
|
483
|
-
* </AppLayout.HeaderActions>
|
|
484
|
-
* </AppLayout.Header>
|
|
485
|
-
* <AppLayout.Body>
|
|
486
|
-
* <Outlet />
|
|
487
|
-
* </AppLayout.Body>
|
|
488
|
-
* </AppLayout.Content>
|
|
489
|
-
* </AppLayout.Workspace>
|
|
490
|
-
* </AppLayout.Root>
|
|
491
|
-
* </Sidebar.Root>
|
|
492
|
-
* ```
|
|
493
|
-
*/
|
|
494
|
-
declare const Body: ({ asChild, children, className, "data-slot": dataSlot, ...props }: Omit<ComponentProps<"main">, "id" | "tabIndex"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
|
|
495
|
-
/**
|
|
496
|
-
* The viewport width below which `AppLayout.SidePanel` floats over the card
|
|
497
|
-
* instead of taking width beside it. Tailwind's `sm` (40rem), `md` (48rem), and
|
|
498
|
-
* `lg` (64rem) breakpoints, the same set `Sidebar.Root` accepts.
|
|
499
|
-
*
|
|
500
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutsidepanel
|
|
501
|
-
*
|
|
502
|
-
* @example
|
|
503
|
-
* ```tsx
|
|
504
|
-
* <AppLayout.SidePanel aria-label="Assistant" mobileBreakpoint="md">…</AppLayout.SidePanel>
|
|
505
|
-
* ```
|
|
506
|
-
*/
|
|
507
|
-
type AppLayoutSidePanelMobileBreakpoint = "sm" | "md" | "lg";
|
|
508
|
-
/**
|
|
509
|
-
* The state and actions shared by every part under an
|
|
510
|
-
* `AppLayout.SidePanelRoot`, returned by {@link useSidePanel}. Use it to build
|
|
511
|
-
* a custom trigger, a close control, or close-on-navigate behavior.
|
|
512
|
-
*
|
|
513
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#usesidepanel
|
|
514
|
-
*
|
|
515
|
-
* @example
|
|
516
|
-
* ```tsx
|
|
517
|
-
* function CloseAssistantOnNavigate() {
|
|
518
|
-
* const { setOpen } = useSidePanel();
|
|
519
|
-
* const location = useLocation();
|
|
520
|
-
* useEffect(() => {
|
|
521
|
-
* setOpen(false);
|
|
522
|
-
* }, [location.pathname, setOpen]);
|
|
523
|
-
* return null;
|
|
524
|
-
* }
|
|
525
|
-
* ```
|
|
526
|
-
*/
|
|
527
|
-
type AppLayoutSidePanelState = {
|
|
528
|
-
/**
|
|
529
|
-
* Whether the panel is on screen. Mirrored as `data-state="open" | "closed"`
|
|
530
|
-
* on `AppLayout.SidePanel` and `AppLayout.SidePanelTrigger`.
|
|
531
|
-
*/
|
|
532
|
-
open: boolean;
|
|
533
|
-
/**
|
|
534
|
-
* Set the open state. Calls `onOpenChange` and, when uncontrolled, updates
|
|
535
|
-
* the internal state. Keeps one identity across renders, so it is safe in an
|
|
536
|
-
* effect dependency list.
|
|
537
|
-
*/
|
|
538
|
-
setOpen: (open: boolean) => void;
|
|
539
|
-
/**
|
|
540
|
-
* Flip the open state. This is what `AppLayout.SidePanelTrigger` calls.
|
|
541
|
-
*/
|
|
542
|
-
toggle: () => void;
|
|
543
|
-
/**
|
|
544
|
-
* The generated id of the panel's `<aside>`. `AppLayout.SidePanelTrigger`
|
|
545
|
-
* references it with `aria-controls`; reuse it in a custom trigger.
|
|
546
|
-
*/
|
|
547
|
-
panelId: string;
|
|
548
|
-
};
|
|
549
|
-
/**
|
|
550
|
-
* Read the nearest `AppLayout.SidePanelRoot` state. Throws when called
|
|
551
|
-
* outside one, so misuse fails loudly. Use it to build a custom trigger, a
|
|
552
|
-
* close control, or close-on-navigate behavior.
|
|
553
|
-
*
|
|
554
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#usesidepanel
|
|
555
|
-
*
|
|
556
|
-
* @example
|
|
557
|
-
* ```tsx
|
|
558
|
-
* function CloseAssistantOnNavigate() {
|
|
559
|
-
* const { setOpen } = useSidePanel();
|
|
560
|
-
* const location = useLocation();
|
|
561
|
-
* useEffect(() => {
|
|
562
|
-
* setOpen(false);
|
|
563
|
-
* }, [location.pathname, setOpen]);
|
|
564
|
-
* return null;
|
|
565
|
-
* }
|
|
566
|
-
* ```
|
|
567
|
-
*/
|
|
568
|
-
declare function useSidePanel(): AppLayoutSidePanelState;
|
|
569
|
-
/**
|
|
570
|
-
* The props for `AppLayout.SidePanelRoot`: the open state, controlled or
|
|
571
|
-
* uncontrolled, the same shape as `Sidebar.Root`.
|
|
572
|
-
*
|
|
573
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutsidepanelroot
|
|
574
|
-
*
|
|
575
|
-
* @example
|
|
576
|
-
* ```tsx
|
|
577
|
-
* <AppLayout.SidePanelRoot
|
|
578
|
-
* defaultOpen={sidePanelOpen}
|
|
579
|
-
* onOpenChange={(open) => {
|
|
580
|
-
* document.cookie = serializeSidePanelStateCookie(open);
|
|
581
|
-
* }}
|
|
582
|
-
* >
|
|
583
|
-
* <AppLayout.Workspace>…</AppLayout.Workspace>
|
|
584
|
-
* </AppLayout.SidePanelRoot>
|
|
585
|
-
* ```
|
|
586
|
-
*/
|
|
587
|
-
type AppLayoutSidePanelRootProps = {
|
|
588
|
-
/**
|
|
589
|
-
* The shell below it: `AppLayout.Workspace` with the trigger and the panel
|
|
590
|
-
* inside. The root renders no element of its own.
|
|
591
|
-
*/
|
|
592
|
-
children?: ReactNode;
|
|
593
|
-
/**
|
|
594
|
-
* Whether the panel starts open, when uncontrolled. Read once at mount, so
|
|
595
|
-
* pass the value the server read from a cookie here and the first paint
|
|
596
|
-
* carries the right state.
|
|
597
|
-
*
|
|
598
|
-
* @default false
|
|
599
|
-
*/
|
|
600
|
-
defaultOpen?: boolean;
|
|
601
|
-
/**
|
|
602
|
-
* Controlled open state. Pair with `onOpenChange`.
|
|
603
|
-
*/
|
|
604
|
-
open?: boolean;
|
|
605
|
-
/**
|
|
606
|
-
* Called with the next open state whenever it changes. Write the cookie
|
|
607
|
-
* here with `serializeSidePanelStateCookie`.
|
|
608
|
-
*/
|
|
609
|
-
onOpenChange?: (open: boolean) => void;
|
|
610
|
-
};
|
|
611
|
-
/**
|
|
612
|
-
* The state owner for `AppLayout.SidePanel` and `AppLayout.SidePanelTrigger`.
|
|
613
|
-
* Renderless: it only holds whether the panel is open, controlled (`open` +
|
|
614
|
-
* `onOpenChange`) or uncontrolled (`defaultOpen`), and hands it to the parts
|
|
615
|
-
* below through {@link useSidePanel}. Wrap `AppLayout.Workspace` with it, or
|
|
616
|
-
* anything above both the trigger and the panel. Closed by default: a side
|
|
617
|
-
* panel is a surface the user opens.
|
|
618
|
-
*
|
|
619
|
-
* To persist the state across visits with no first-frame correction, read
|
|
620
|
-
* `extractSidePanelStateCookie` in the server loader, pass the result to
|
|
621
|
-
* `defaultOpen`, and write `serializeSidePanelStateCookie` from
|
|
622
|
-
* `onOpenChange`. The server HTML then carries the right `data-state`, the
|
|
623
|
-
* same way `Sidebar.Root` persists the rail.
|
|
624
|
-
*
|
|
625
|
-
* When the panel closes while focus is inside it, the root moves focus to the
|
|
626
|
-
* first `AppLayout.SidePanelTrigger` outside the panel that can take focus. A
|
|
627
|
-
* closed panel is `inert` and cannot hold focus, so without this the browser
|
|
628
|
-
* drops focus to the document. The return runs on every close, whether a
|
|
629
|
-
* trigger, `setOpen`, or a controlled parent closed the panel. A trigger that
|
|
630
|
-
* CSS hides at the current breakpoint, or a disabled one, cannot take focus
|
|
631
|
-
* either, so a responsive header with one trigger per breakpoint lands on the
|
|
632
|
-
* visible one.
|
|
633
|
-
*
|
|
634
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutsidepanelroot
|
|
635
|
-
*
|
|
636
|
-
* @example
|
|
637
|
-
* ```tsx
|
|
638
|
-
* <Sidebar.Root>
|
|
639
|
-
* <AppLayout.Root className="fixed inset-0">
|
|
640
|
-
* <SkipToMainLink />
|
|
641
|
-
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
642
|
-
* <AppLayout.SidePanelRoot>
|
|
643
|
-
* <AppLayout.Workspace>
|
|
644
|
-
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
645
|
-
* <AppLayout.Content>
|
|
646
|
-
* <AppLayout.Header>
|
|
647
|
-
* <AppLayout.HeaderStart>
|
|
648
|
-
* <Sidebar.Trigger />
|
|
649
|
-
* </AppLayout.HeaderStart>
|
|
650
|
-
* <AppLayout.HeaderContent>
|
|
651
|
-
* <Breadcrumbs />
|
|
652
|
-
* </AppLayout.HeaderContent>
|
|
653
|
-
* <AppLayout.HeaderActions>
|
|
654
|
-
* <AppLayout.SidePanelTrigger icon={<SparkleIcon />} label="Toggle the assistant" />
|
|
655
|
-
* </AppLayout.HeaderActions>
|
|
656
|
-
* </AppLayout.Header>
|
|
657
|
-
* <AppLayout.Body>
|
|
658
|
-
* <Outlet />
|
|
659
|
-
* </AppLayout.Body>
|
|
660
|
-
* </AppLayout.Content>
|
|
661
|
-
* <AppLayout.SidePanel aria-label="Assistant">
|
|
662
|
-
* <AppLayout.SidePanelHeader>
|
|
663
|
-
* <p className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Assistant</p>
|
|
664
|
-
* <AppLayout.SidePanelTrigger icon={<XIcon />} label="Close the assistant" />
|
|
665
|
-
* </AppLayout.SidePanelHeader>
|
|
666
|
-
* <AppLayout.SidePanelBody>
|
|
667
|
-
* <AssistantConversation />
|
|
668
|
-
* </AppLayout.SidePanelBody>
|
|
669
|
-
* <AppLayout.SidePanelFooter>
|
|
670
|
-
* <AssistantComposer />
|
|
671
|
-
* </AppLayout.SidePanelFooter>
|
|
672
|
-
* </AppLayout.SidePanel>
|
|
673
|
-
* </AppLayout.Workspace>
|
|
674
|
-
* </AppLayout.SidePanelRoot>
|
|
675
|
-
* </AppLayout.Root>
|
|
676
|
-
* </Sidebar.Root>
|
|
677
|
-
* ```
|
|
678
|
-
*/
|
|
679
|
-
declare const SidePanelRoot: ({ children, defaultOpen, onOpenChange, open: openProp }: AppLayoutSidePanelRootProps) => import("react").JSX.Element;
|
|
680
|
-
/**
|
|
681
|
-
* The props for `AppLayout.SidePanel`: an `<aside>`'s props except `id`, and
|
|
682
|
-
* the breakpoint the panel owns.
|
|
683
|
-
*
|
|
684
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutsidepanel
|
|
685
|
-
*/
|
|
686
|
-
type AppLayoutSidePanelProps = Omit<ComponentProps<"aside">, "id"> & WithDataSlot & {
|
|
687
|
-
/**
|
|
688
|
-
* The viewport width below which the panel floats over the card instead
|
|
689
|
-
* of taking width beside it. One breakpoint lower it covers the card from
|
|
690
|
-
* gutter to gutter; with `"sm"` there is no lower breakpoint, so it covers
|
|
691
|
-
* the card as soon as it floats. Match it to `Sidebar.Root`'s
|
|
692
|
-
* `mobileBreakpoint`, so the rail and the panel change presentation at
|
|
693
|
-
* one width.
|
|
694
|
-
*
|
|
695
|
-
* @default "lg"
|
|
696
|
-
*/
|
|
697
|
-
mobileBreakpoint?: AppLayoutSidePanelMobileBreakpoint;
|
|
698
|
-
};
|
|
699
|
-
/**
|
|
700
|
-
* A second card beside `AppLayout.Content`, for an assistant, a details pane, or
|
|
701
|
-
* any surface that opens next to the page and closes again. Render it as the
|
|
702
|
-
* **last child of `AppLayout.Workspace`**, after the card, inside an
|
|
703
|
-
* `AppLayout.SidePanelRoot` that owns whether it is open. Renders an
|
|
704
|
-
* `<aside>`, so it is the `complementary` landmark; name it with `aria-label`.
|
|
705
|
-
* `id` is not a prop: the root generates it, and `AppLayout.SidePanelTrigger`
|
|
706
|
-
* points `aria-controls` at it.
|
|
707
|
-
*
|
|
708
|
-
* It takes the same card treatment as `AppLayout.Content` (`bg-card
|
|
709
|
-
* border-card-muted rounded-xl border shadow-sm overflow-clip`) and reads like
|
|
710
|
-
* a `Sheet` with no focus trap and no backdrop, because the page beside it
|
|
711
|
-
* stays usable. Three parts fill it:
|
|
712
|
-
*
|
|
713
|
-
* - `AppLayout.SidePanelHeader` for the title and the close control. It sits
|
|
714
|
-
* on the same band as `AppLayout.Header`, so the two rows center on one line.
|
|
715
|
-
* - `AppLayout.SidePanelBody` for the scroll region.
|
|
716
|
-
* - `AppLayout.SidePanelFooter`, optional, for a composer or an action row.
|
|
717
|
-
*
|
|
718
|
-
* It keeps the card gutter on its top, end, and bottom edges and none on its
|
|
719
|
-
* start edge, so the card's own end margin is the gap between the two, one
|
|
720
|
-
* gutter wide.
|
|
721
|
-
*
|
|
722
|
-
* It opens and closes the way `Sidebar.Nav` collapses, and nothing else moves:
|
|
723
|
-
*
|
|
724
|
-
* - The `<aside>` is a clip box whose `flex-basis` animates between the open
|
|
725
|
-
* width plus the end inset and zero over 200ms (`ease-out-strong`).
|
|
726
|
-
* - The card is an inner column pinned to the box's end inset at the open
|
|
727
|
-
* width, so the content never reflows or shifts.
|
|
728
|
-
* - The box's start edge sweeps across the card.
|
|
729
|
-
*
|
|
730
|
-
* A CSS transition reverses from wherever it is, so a second click mid-flight
|
|
731
|
-
* turns the panel around. `motion-reduce:transition-none` turns the slide into
|
|
732
|
-
* a cut. `not-data-hydrated:transition-none` holds the transition until one
|
|
733
|
-
* frame after hydration, so a state the client corrects after the server
|
|
734
|
-
* render snaps instead of sliding on page load. When a close ends, the
|
|
735
|
-
* transition stays off until the next open, so a closed panel snaps when the
|
|
736
|
-
* viewport crosses `mobileBreakpoint` or the rail changes. The `transition-*` and
|
|
737
|
-
* `duration-*` utilities are bare, so a merged `transition-none` or
|
|
738
|
-
* `duration-*` replaces them through tailwind-merge.
|
|
739
|
-
*
|
|
740
|
-
* Closed, the box is `basis-0 pointer-events-none` and `inert`,
|
|
741
|
-
* so nothing inside it is focusable, clickable, or read by assistive
|
|
742
|
-
* technology, and its children stay mounted: a conversation keeps its scroll
|
|
743
|
-
* position, its focus target, and its in-flight reply across a close and a
|
|
744
|
-
* reopen.
|
|
745
|
-
*
|
|
746
|
-
* Below `mobileBreakpoint` the panel floats over the card instead of taking
|
|
747
|
-
* width from it: `absolute`, pinned to the row's end edge inside the card
|
|
748
|
-
* gutter, `min(24rem, 100cqw - 5rem)` wide (24rem, or the row less a 5rem
|
|
749
|
-
* strip of page when the row is narrower), with a larger shadow and `z-20` so
|
|
750
|
-
* it paints above a page's own sticky rows. Closed, it slides off the end edge
|
|
751
|
-
* instead of collapsing and goes `invisible` the instant the slide ends, so a
|
|
752
|
-
* row narrower than the frame has no panel strip beside it. One breakpoint
|
|
753
|
-
* lower it covers the card from gutter to gutter, because a strip of page
|
|
754
|
-
* beside a 24rem panel is no page at all on a phone.
|
|
755
|
-
* With `"sm"` there is no lower breakpoint, so the panel covers the card as
|
|
756
|
-
* soon as it floats. Two cards side by side in 900px are two unusable cards.
|
|
757
|
-
*
|
|
758
|
-
* The panel also floats, with the same strip treatment, whenever the
|
|
759
|
-
* `AppLayout.Workspace` row is narrower than the lane it needs, whatever the
|
|
760
|
-
* viewport is. The row is the named container `app-layout-workspace`, and
|
|
761
|
-
* the lane depends on the rail beside the card: `--container-side-panel-lane`
|
|
762
|
-
* (56.5rem: the expanded rail, the card at the panel's floor, the panel, and
|
|
763
|
-
* the three gutters) while a direct child of the row is an expanded
|
|
764
|
-
* `Sidebar.Nav`, and `--container-side-panel-lane-icon-rail` (46.75rem: the
|
|
765
|
-
* same row with the icon rail) with a collapsed rail, no rail, or a rail that
|
|
766
|
-
* is a sheet. An expanded rail at a tablet width floats the panel instead of
|
|
767
|
-
* squeezing the page narrower than it, and collapsing the rail returns the
|
|
768
|
-
* panel to the lane. A wider rail or panel raises the tokens in `@theme`.
|
|
769
|
-
*
|
|
770
|
-
* A drag on `AppLayout.SidePanelHeader` toward the end edge swipes the panel
|
|
771
|
-
* away in every presentation: a floating panel slides, and a panel in the
|
|
772
|
-
* lane shrinks the way its close animation does. A floating panel is also an
|
|
773
|
-
* overlay: `Escape` closes it while focus is inside, after an open combobox
|
|
774
|
-
* or popover inside it has taken its own `Escape`. A panel in the lane is a
|
|
775
|
-
* docked pane and ignores `Escape`. The root returns focus to the trigger
|
|
776
|
-
* outside on every close.
|
|
777
|
-
*
|
|
778
|
-
* When the panel covers the row, it is modal. The row's other children (the
|
|
779
|
-
* card and the rail) go `inert` while it is open, so nothing beneath it is
|
|
780
|
-
* clickable or read; `useFocusTrap` wraps `Tab` inside it and moves focus
|
|
781
|
-
* into it on open. The one `<aside>` stays mounted across the lane, the
|
|
782
|
-
* float, and the cover, so a conversation keeps its DOM and the trap turns
|
|
783
|
-
* on and off with the viewport.
|
|
784
|
-
*
|
|
785
|
-
* **CSS variables (public API):**
|
|
786
|
-
*
|
|
787
|
-
* | CSS Variable | Default | Description |
|
|
788
|
-
* | --- | --- | --- |
|
|
789
|
-
* | `--app-layout-side-panel-width` | `clamp(21rem, 24cqw, 27rem)` | The panel's width beside the card: a quarter of the `AppLayout.Workspace` row, never narrower than 336px and never wider than 432px. It reads the row, not the viewport, so a row narrower than the viewport holds the panel at its floor and the page keeps the rest. Set it on `AppLayout.Root` or on this part. |
|
|
790
|
-
* | `--app-layout-card-gutter` | `0.5rem` | Read, not owned: `AppLayout.Content` owns this token. The panel keeps it on its top, end, and bottom edges, and the floating panel insets itself by it. Set it on `AppLayout.Root` or another common ancestor of the card and the panel, not on `AppLayout.Content`: custom properties inherit downward only, so a value on the card never reaches the panel. |
|
|
791
|
-
* | `--container-side-panel-lane` | `56.5rem` | A theme token the row's container query reads: the narrowest `AppLayout.Workspace` row that holds an expanded `Sidebar.Nav` (13rem), the card at the panel's floor (21rem), the panel (21rem), and the three gutters. Below it the panel floats while a direct child of the row is an expanded rail. Set it in `@theme`, not on an element. |
|
|
792
|
-
* | `--container-side-panel-lane-icon-rail` | `46.75rem` | The same row with the icon rail (3.25rem) in place of the expanded one, or with no rail. Below it the panel floats whatever the rail is. Set it in `@theme`, not on an element. |
|
|
793
|
-
*
|
|
794
|
-
* **Data attributes (public API):**
|
|
795
|
-
*
|
|
796
|
-
* | Data Attribute | Value | Description |
|
|
797
|
-
* | --- | --- | --- |
|
|
798
|
-
* | `data-state` | `"open"` \| `"closed"` | Mirrors the root's open state. The collapse and the transition key off it in CSS, and consumers style against it. |
|
|
799
|
-
* | `data-hydrated` | present one frame after hydration | Presence-only. The transition keys off its absence in CSS (`not-data-hydrated:transition-none`), so a state correction after the server render snaps instead of animating. |
|
|
800
|
-
*
|
|
801
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutsidepanel
|
|
802
|
-
*
|
|
803
|
-
* @example
|
|
804
|
-
* ```tsx
|
|
805
|
-
* <Sidebar.Root>
|
|
806
|
-
* <AppLayout.Root className="fixed inset-0">
|
|
807
|
-
* <SkipToMainLink />
|
|
808
|
-
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
809
|
-
* <AppLayout.SidePanelRoot>
|
|
810
|
-
* <AppLayout.Workspace>
|
|
811
|
-
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
812
|
-
* <AppLayout.Content>
|
|
813
|
-
* <AppLayout.Header>
|
|
814
|
-
* <AppLayout.HeaderStart>
|
|
815
|
-
* <Sidebar.Trigger />
|
|
816
|
-
* </AppLayout.HeaderStart>
|
|
817
|
-
* <AppLayout.HeaderContent>
|
|
818
|
-
* <Breadcrumbs />
|
|
819
|
-
* </AppLayout.HeaderContent>
|
|
820
|
-
* <AppLayout.HeaderActions>
|
|
821
|
-
* <AppLayout.SidePanelTrigger icon={<SparkleIcon />} label="Toggle the assistant" />
|
|
822
|
-
* </AppLayout.HeaderActions>
|
|
823
|
-
* </AppLayout.Header>
|
|
824
|
-
* <AppLayout.Body>
|
|
825
|
-
* <Outlet />
|
|
826
|
-
* </AppLayout.Body>
|
|
827
|
-
* </AppLayout.Content>
|
|
828
|
-
* <AppLayout.SidePanel aria-label="Assistant">
|
|
829
|
-
* <AppLayout.SidePanelHeader>
|
|
830
|
-
* <p className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Assistant</p>
|
|
831
|
-
* <AppLayout.SidePanelTrigger icon={<XIcon />} label="Close the assistant" />
|
|
832
|
-
* </AppLayout.SidePanelHeader>
|
|
833
|
-
* <AppLayout.SidePanelBody>
|
|
834
|
-
* <AssistantConversation />
|
|
835
|
-
* </AppLayout.SidePanelBody>
|
|
836
|
-
* <AppLayout.SidePanelFooter>
|
|
837
|
-
* <AssistantComposer />
|
|
838
|
-
* </AppLayout.SidePanelFooter>
|
|
839
|
-
* </AppLayout.SidePanel>
|
|
840
|
-
* </AppLayout.Workspace>
|
|
841
|
-
* </AppLayout.SidePanelRoot>
|
|
842
|
-
* </AppLayout.Root>
|
|
843
|
-
* </Sidebar.Root>
|
|
844
|
-
* ```
|
|
845
|
-
*/
|
|
846
|
-
declare const SidePanel: ({ children, className, "data-slot": dataSlot, mobileBreakpoint, onBlur, onFocus, onKeyDown, ref, ...props }: AppLayoutSidePanelProps) => import("react").JSX.Element;
|
|
847
|
-
/**
|
|
848
|
-
* The props for `AppLayout.SidePanelTrigger`: `IconButton`'s props, except the
|
|
849
|
-
* parts the trigger owns. The type omits `asChild` and `children` (the trigger
|
|
850
|
-
* renders only its icon and `aria-label`; build a custom trigger with
|
|
851
|
-
* `useSidePanel` instead). `appearance`, `icon`, `intent`, `label`, and `size`
|
|
852
|
-
* become optional with side panel defaults. `onClick` runs before the toggle; call
|
|
853
|
-
* `event.preventDefault()` in it to keep the panel where it is.
|
|
854
|
-
*
|
|
855
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutsidepaneltrigger
|
|
856
|
-
*
|
|
857
|
-
* @example
|
|
858
|
-
* ```tsx
|
|
859
|
-
* <AppLayout.SidePanelTrigger icon={<XIcon />} label="Close the assistant" />
|
|
860
|
-
* ```
|
|
861
|
-
*/
|
|
862
|
-
type AppLayoutSidePanelTriggerProps = Omit<IconButtonProps, "appearance" | "asChild" | "children" | "icon" | "intent" | "label" | "size"> & WithDataSlot & {
|
|
863
|
-
/**
|
|
864
|
-
* The visual style of the trigger `IconButton`.
|
|
865
|
-
*
|
|
866
|
-
* @default "ghost"
|
|
867
|
-
*/
|
|
868
|
-
appearance?: IconButtonProps["appearance"];
|
|
869
|
-
/**
|
|
870
|
-
* The icon rendered inside the trigger.
|
|
871
|
-
*
|
|
872
|
-
* @default <SidebarSimpleIcon mirrored />
|
|
873
|
-
*/
|
|
874
|
-
icon?: ReactNode;
|
|
875
|
-
/**
|
|
876
|
-
* The color intent of the trigger `IconButton`.
|
|
877
|
-
*
|
|
878
|
-
* @default "neutral"
|
|
879
|
-
*/
|
|
880
|
-
intent?: IconButtonProps["intent"];
|
|
881
|
-
/**
|
|
882
|
-
* The accessible name of the trigger, also shown in its tooltip.
|
|
883
|
-
*
|
|
884
|
-
* @default "Toggle side panel"
|
|
885
|
-
*/
|
|
886
|
-
label?: string;
|
|
887
|
-
/**
|
|
888
|
-
* The size of the trigger `IconButton`. Small, so it sits level with the
|
|
889
|
-
* other `size="sm"` controls in an `AppLayout.Header` row.
|
|
890
|
-
*
|
|
891
|
-
* @default "sm"
|
|
892
|
-
*/
|
|
893
|
-
size?: IconButtonProps["size"];
|
|
894
|
-
};
|
|
895
|
-
/**
|
|
896
|
-
* The button that toggles `AppLayout.SidePanel`, the way `Sidebar.Trigger`
|
|
897
|
-
* toggles the rail. Renders a small ghost neutral `IconButton` with `aria-expanded`
|
|
898
|
-
* and `aria-controls` wired to the panel's `<aside>`. Place one in
|
|
899
|
-
* `AppLayout.HeaderActions` to open the panel, and one more in
|
|
900
|
-
* `AppLayout.SidePanelHeader` with a close icon to close it from inside: when
|
|
901
|
-
* that one closes the panel, the root moves focus to the one outside. A
|
|
902
|
-
* consumer `onClick` runs before the toggle, and `event.preventDefault()` in
|
|
903
|
-
* it keeps the panel where it is.
|
|
904
|
-
*
|
|
905
|
-
* The button is icon-only, so it always renders a tooltip showing `label`.
|
|
906
|
-
* **That means it requires a `TooltipProvider` ancestor, like any
|
|
907
|
-
* `Tooltip.Root`, and throws without one.** Mount a single provider at your app
|
|
908
|
-
* root.
|
|
909
|
-
*
|
|
910
|
-
* **Data attributes (public API):**
|
|
911
|
-
*
|
|
912
|
-
* | Data Attribute | Value | Description |
|
|
913
|
-
* | --- | --- | --- |
|
|
914
|
-
* | `data-state` | `"open"` \| `"closed"` | Mirrors the root's open state. Pairs with `aria-expanded`. |
|
|
915
|
-
* | `data-slot` | `"app-layout-side-panel-trigger icon-button"` | On the button: the part's slot, joined ahead of `IconButton`'s own. |
|
|
916
|
-
* | `data-slot` | `"app-layout-side-panel-trigger-tooltip tooltip-content"` | On the tooltip surface, not the button: the styling hook for the label popup this part renders, joined ahead of `Tooltip.Content`'s own slot. |
|
|
917
|
-
* | `data-appearance` | `"filled"` \| `"ghost"` \| `"outlined"` | Read, not stamped: the underlying `IconButton` reflects its `appearance`, which this part defaults to `"ghost"`. |
|
|
918
|
-
* | `data-intent` | `"neutral"` | Read, not stamped: the underlying `IconButton` reflects its `intent`, which this part defaults to `"neutral"`. |
|
|
919
|
-
* | `data-size` | `"xs"` \| `"sm"` \| `"md"` \| `"lg"` \| `"xl"` | Read, not stamped: the underlying `IconButton` reflects its `size`, which this part defaults to `"sm"`. |
|
|
920
|
-
* | `data-icon-button` | `"true"` | Read, not stamped: always present on the underlying `IconButton`. |
|
|
921
|
-
* | `data-loading` | present when `isLoading` | Read, not stamped: the underlying `IconButton` stamps it by presence, never `"false"`. |
|
|
922
|
-
* | `data-disabled` | present when disabled | Read, not stamped: the underlying `IconButton` stamps it by presence, never `"false"`, when it resolves disabled: `disabled`, `aria-disabled="true"`, or `isLoading` with no explicit `disabled`. |
|
|
923
|
-
*
|
|
924
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutsidepaneltrigger
|
|
925
|
-
*
|
|
926
|
-
* @example
|
|
927
|
-
* ```tsx
|
|
928
|
-
* <Sidebar.Root>
|
|
929
|
-
* <AppLayout.Root className="fixed inset-0">
|
|
930
|
-
* <SkipToMainLink />
|
|
931
|
-
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
932
|
-
* <AppLayout.SidePanelRoot>
|
|
933
|
-
* <AppLayout.Workspace>
|
|
934
|
-
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
935
|
-
* <AppLayout.Content>
|
|
936
|
-
* <AppLayout.Header>
|
|
937
|
-
* <AppLayout.HeaderStart>
|
|
938
|
-
* <Sidebar.Trigger />
|
|
939
|
-
* </AppLayout.HeaderStart>
|
|
940
|
-
* <AppLayout.HeaderContent>
|
|
941
|
-
* <Breadcrumbs />
|
|
942
|
-
* </AppLayout.HeaderContent>
|
|
943
|
-
* <AppLayout.HeaderActions>
|
|
944
|
-
* <AppLayout.SidePanelTrigger icon={<SparkleIcon />} label="Toggle the assistant" />
|
|
945
|
-
* </AppLayout.HeaderActions>
|
|
946
|
-
* </AppLayout.Header>
|
|
947
|
-
* <AppLayout.Body>
|
|
948
|
-
* <Outlet />
|
|
949
|
-
* </AppLayout.Body>
|
|
950
|
-
* </AppLayout.Content>
|
|
951
|
-
* <AppLayout.SidePanel aria-label="Assistant">
|
|
952
|
-
* <AppLayout.SidePanelHeader>
|
|
953
|
-
* <p className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Assistant</p>
|
|
954
|
-
* <AppLayout.SidePanelTrigger icon={<XIcon />} label="Close the assistant" />
|
|
955
|
-
* </AppLayout.SidePanelHeader>
|
|
956
|
-
* <AppLayout.SidePanelBody>
|
|
957
|
-
* <AssistantConversation />
|
|
958
|
-
* </AppLayout.SidePanelBody>
|
|
959
|
-
* <AppLayout.SidePanelFooter>
|
|
960
|
-
* <AssistantComposer />
|
|
961
|
-
* </AppLayout.SidePanelFooter>
|
|
962
|
-
* </AppLayout.SidePanel>
|
|
963
|
-
* </AppLayout.Workspace>
|
|
964
|
-
* </AppLayout.SidePanelRoot>
|
|
965
|
-
* </AppLayout.Root>
|
|
966
|
-
* </Sidebar.Root>
|
|
967
|
-
* ```
|
|
968
|
-
*/
|
|
969
|
-
declare const SidePanelTrigger: ({ appearance, "data-slot": dataSlot, icon, intent, label, onClick, size, ...props }: AppLayoutSidePanelTriggerProps) => import("react").JSX.Element;
|
|
970
|
-
/**
|
|
971
|
-
* The toolbar row at the top of `AppLayout.SidePanel`: the panel's title at the
|
|
972
|
-
* start and its controls at the end, with the close control last. Render it as
|
|
973
|
-
* the **first child of `AppLayout.SidePanel`**. A flex row (`flex shrink-0
|
|
974
|
-
* items-center gap-2 border-b px-4`) on the same band as `AppLayout.Header`, so
|
|
975
|
-
* the two rows and a sidebar header's switcher row center on one line, by the
|
|
976
|
-
* same derivation (`h-14` standalone, the sidebar header's band minus twice the
|
|
977
|
-
* card gutter and twice the hairline border with a `Sidebar.Header` in the
|
|
978
|
-
* shell). Give the title `min-w-0 flex-1 truncate`, so it gives up width before
|
|
979
|
-
* a control does. Merge `border-b-0` for a header with no rule under it.
|
|
980
|
-
*
|
|
981
|
-
* Renders a `<div>`, not a `<header>`: the row is a toolbar, not the panel's
|
|
982
|
-
* introduction, and it keeps one element shape with `AppLayout.Header`. A
|
|
983
|
-
* `<header>` inside the `<aside>` scopes to the panel and claims no landmark,
|
|
984
|
-
* so if the row introduces the panel, compose a `<header>` with `asChild`.
|
|
985
|
-
*
|
|
986
|
-
* The row is the panel's swipe handle, through `useSwipeToDismiss`, in every
|
|
987
|
-
* presentation. A drag toward the end edge follows the pointer one to one: a
|
|
988
|
-
* floating panel slides, and a panel in the lane shrinks its basis the way
|
|
989
|
-
* its own close animation does, so the page grows under the finger. A
|
|
990
|
-
* release past 25% of the panel's width, or a flick, closes it; a shorter
|
|
991
|
-
* drag springs back on the panel's own 200ms ease-out, so `motion-reduce:`
|
|
992
|
-
* turns it into a cut, and a drag the wrong way meets rubber-band
|
|
993
|
-
* resistance. The row is `touch-pan-y`, so a vertical swipe still scrolls,
|
|
994
|
-
* and a tap on a control in the row stays a tap.
|
|
995
|
-
*
|
|
996
|
-
* **CSS variables (public API):**
|
|
997
|
-
*
|
|
998
|
-
* | CSS Variable | Default | Description |
|
|
999
|
-
* | --- | --- | --- |
|
|
1000
|
-
* | `--sidebar-header-height` | `4.5rem` | Read, not owned: `Sidebar.Header` owns this token. With a sidebar header in the shell, this row derives its height from it, the same way `AppLayout.Header` does. |
|
|
1001
|
-
* | `--app-layout-card-gutter` | `0.5rem` | Read, not owned: `AppLayout.Content` owns this token. The derived height subtracts twice its value. |
|
|
1002
|
-
*
|
|
1003
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutsidepanelheader
|
|
1004
|
-
*
|
|
1005
|
-
* @example
|
|
1006
|
-
* ```tsx
|
|
1007
|
-
* <Sidebar.Root>
|
|
1008
|
-
* <AppLayout.Root className="fixed inset-0">
|
|
1009
|
-
* <SkipToMainLink />
|
|
1010
|
-
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
1011
|
-
* <AppLayout.SidePanelRoot>
|
|
1012
|
-
* <AppLayout.Workspace>
|
|
1013
|
-
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
1014
|
-
* <AppLayout.Content>
|
|
1015
|
-
* <AppLayout.Header>
|
|
1016
|
-
* <AppLayout.HeaderStart>
|
|
1017
|
-
* <Sidebar.Trigger />
|
|
1018
|
-
* </AppLayout.HeaderStart>
|
|
1019
|
-
* <AppLayout.HeaderContent>
|
|
1020
|
-
* <Breadcrumbs />
|
|
1021
|
-
* </AppLayout.HeaderContent>
|
|
1022
|
-
* <AppLayout.HeaderActions>
|
|
1023
|
-
* <AppLayout.SidePanelTrigger icon={<SparkleIcon />} label="Toggle the assistant" />
|
|
1024
|
-
* </AppLayout.HeaderActions>
|
|
1025
|
-
* </AppLayout.Header>
|
|
1026
|
-
* <AppLayout.Body>
|
|
1027
|
-
* <Outlet />
|
|
1028
|
-
* </AppLayout.Body>
|
|
1029
|
-
* </AppLayout.Content>
|
|
1030
|
-
* <AppLayout.SidePanel aria-label="Assistant">
|
|
1031
|
-
* <AppLayout.SidePanelHeader>
|
|
1032
|
-
* <p className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Assistant</p>
|
|
1033
|
-
* <AppLayout.SidePanelTrigger icon={<XIcon />} label="Close the assistant" />
|
|
1034
|
-
* </AppLayout.SidePanelHeader>
|
|
1035
|
-
* <AppLayout.SidePanelBody>
|
|
1036
|
-
* <AssistantConversation />
|
|
1037
|
-
* </AppLayout.SidePanelBody>
|
|
1038
|
-
* <AppLayout.SidePanelFooter>
|
|
1039
|
-
* <AssistantComposer />
|
|
1040
|
-
* </AppLayout.SidePanelFooter>
|
|
1041
|
-
* </AppLayout.SidePanel>
|
|
1042
|
-
* </AppLayout.Workspace>
|
|
1043
|
-
* </AppLayout.SidePanelRoot>
|
|
1044
|
-
* </AppLayout.Root>
|
|
1045
|
-
* </Sidebar.Root>
|
|
1046
|
-
* ```
|
|
1047
|
-
*/
|
|
1048
|
-
declare const SidePanelHeader: ({ asChild, children, className, "data-slot": dataSlot, ref, ...props }: ComponentProps<"div"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
|
|
1049
|
-
/**
|
|
1050
|
-
* The scroll region of `AppLayout.SidePanel`, and the only part of the panel
|
|
1051
|
-
* that scrolls (`scrollbar relative min-h-0 w-full flex-1 overflow-y-auto
|
|
1052
|
-
* overscroll-none`). Render it after `AppLayout.SidePanelHeader`. It is the
|
|
1053
|
-
* same box as `AppLayout.Body` with no landmark: the page's body already owns
|
|
1054
|
-
* `main`, and a second scroll region beside it is plain content. It is block
|
|
1055
|
-
* inside, so a child that asks for `h-full` fills the panel between the header
|
|
1056
|
-
* and the footer, and `mx-auto max-w-*` still centers.
|
|
1057
|
-
*
|
|
1058
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutsidepanelbody
|
|
1059
|
-
*
|
|
1060
|
-
* @example
|
|
1061
|
-
* ```tsx
|
|
1062
|
-
* <Sidebar.Root>
|
|
1063
|
-
* <AppLayout.Root className="fixed inset-0">
|
|
1064
|
-
* <SkipToMainLink />
|
|
1065
|
-
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
1066
|
-
* <AppLayout.SidePanelRoot>
|
|
1067
|
-
* <AppLayout.Workspace>
|
|
1068
|
-
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
1069
|
-
* <AppLayout.Content>
|
|
1070
|
-
* <AppLayout.Header>
|
|
1071
|
-
* <AppLayout.HeaderStart>
|
|
1072
|
-
* <Sidebar.Trigger />
|
|
1073
|
-
* </AppLayout.HeaderStart>
|
|
1074
|
-
* <AppLayout.HeaderContent>
|
|
1075
|
-
* <Breadcrumbs />
|
|
1076
|
-
* </AppLayout.HeaderContent>
|
|
1077
|
-
* <AppLayout.HeaderActions>
|
|
1078
|
-
* <AppLayout.SidePanelTrigger icon={<SparkleIcon />} label="Toggle the assistant" />
|
|
1079
|
-
* </AppLayout.HeaderActions>
|
|
1080
|
-
* </AppLayout.Header>
|
|
1081
|
-
* <AppLayout.Body>
|
|
1082
|
-
* <Outlet />
|
|
1083
|
-
* </AppLayout.Body>
|
|
1084
|
-
* </AppLayout.Content>
|
|
1085
|
-
* <AppLayout.SidePanel aria-label="Assistant">
|
|
1086
|
-
* <AppLayout.SidePanelHeader>
|
|
1087
|
-
* <p className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Assistant</p>
|
|
1088
|
-
* <AppLayout.SidePanelTrigger icon={<XIcon />} label="Close the assistant" />
|
|
1089
|
-
* </AppLayout.SidePanelHeader>
|
|
1090
|
-
* <AppLayout.SidePanelBody>
|
|
1091
|
-
* <AssistantConversation />
|
|
1092
|
-
* </AppLayout.SidePanelBody>
|
|
1093
|
-
* <AppLayout.SidePanelFooter>
|
|
1094
|
-
* <AssistantComposer />
|
|
1095
|
-
* </AppLayout.SidePanelFooter>
|
|
1096
|
-
* </AppLayout.SidePanel>
|
|
1097
|
-
* </AppLayout.Workspace>
|
|
1098
|
-
* </AppLayout.SidePanelRoot>
|
|
1099
|
-
* </AppLayout.Root>
|
|
1100
|
-
* </Sidebar.Root>
|
|
1101
|
-
* ```
|
|
1102
|
-
*/
|
|
1103
|
-
declare const SidePanelBody: ({ asChild, children, className, "data-slot": dataSlot, ...props }: ComponentProps<"div"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
|
|
1104
|
-
/**
|
|
1105
|
-
* The bar pinned to the bottom of `AppLayout.SidePanel`: a composer, a save
|
|
1106
|
-
* row, a status line. Render it after `AppLayout.SidePanelBody`. A `shrink-0`
|
|
1107
|
-
* column (`flex shrink-0 flex-col gap-2 px-3 pb-3`) outside the scroll
|
|
1108
|
-
* region, so the body scrolls under it and it never scrolls away. It draws no
|
|
1109
|
-
* rule above itself: the composer frame inside it is the edge. Merge
|
|
1110
|
-
* `flex-row justify-end` for an action row. Optional.
|
|
1111
|
-
*
|
|
1112
|
-
* The panel has a footer part where `AppLayout.Content` has none, because the
|
|
1113
|
-
* panel's author owns its whole subtree: no route renders through an
|
|
1114
|
-
* `<Outlet />` inside it, so a bar here is always the panel's own.
|
|
1115
|
-
*
|
|
1116
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutsidepanelfooter
|
|
1117
|
-
*
|
|
1118
|
-
* @example
|
|
1119
|
-
* ```tsx
|
|
1120
|
-
* <Sidebar.Root>
|
|
1121
|
-
* <AppLayout.Root className="fixed inset-0">
|
|
1122
|
-
* <SkipToMainLink />
|
|
1123
|
-
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
1124
|
-
* <AppLayout.SidePanelRoot>
|
|
1125
|
-
* <AppLayout.Workspace>
|
|
1126
|
-
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
1127
|
-
* <AppLayout.Content>
|
|
1128
|
-
* <AppLayout.Header>
|
|
1129
|
-
* <AppLayout.HeaderStart>
|
|
1130
|
-
* <Sidebar.Trigger />
|
|
1131
|
-
* </AppLayout.HeaderStart>
|
|
1132
|
-
* <AppLayout.HeaderContent>
|
|
1133
|
-
* <Breadcrumbs />
|
|
1134
|
-
* </AppLayout.HeaderContent>
|
|
1135
|
-
* <AppLayout.HeaderActions>
|
|
1136
|
-
* <AppLayout.SidePanelTrigger icon={<SparkleIcon />} label="Toggle the assistant" />
|
|
1137
|
-
* </AppLayout.HeaderActions>
|
|
1138
|
-
* </AppLayout.Header>
|
|
1139
|
-
* <AppLayout.Body>
|
|
1140
|
-
* <Outlet />
|
|
1141
|
-
* </AppLayout.Body>
|
|
1142
|
-
* </AppLayout.Content>
|
|
1143
|
-
* <AppLayout.SidePanel aria-label="Assistant">
|
|
1144
|
-
* <AppLayout.SidePanelHeader>
|
|
1145
|
-
* <p className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Assistant</p>
|
|
1146
|
-
* <AppLayout.SidePanelTrigger icon={<XIcon />} label="Close the assistant" />
|
|
1147
|
-
* </AppLayout.SidePanelHeader>
|
|
1148
|
-
* <AppLayout.SidePanelBody>
|
|
1149
|
-
* <AssistantConversation />
|
|
1150
|
-
* </AppLayout.SidePanelBody>
|
|
1151
|
-
* <AppLayout.SidePanelFooter>
|
|
1152
|
-
* <AssistantComposer />
|
|
1153
|
-
* </AppLayout.SidePanelFooter>
|
|
1154
|
-
* </AppLayout.SidePanel>
|
|
1155
|
-
* </AppLayout.Workspace>
|
|
1156
|
-
* </AppLayout.SidePanelRoot>
|
|
1157
|
-
* </AppLayout.Root>
|
|
1158
|
-
* </Sidebar.Root>
|
|
1159
|
-
* ```
|
|
1160
|
-
*/
|
|
1161
|
-
declare const SidePanelFooter: ({ asChild, children, className, "data-slot": dataSlot, ...props }: ComponentProps<"div"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
|
|
1162
|
-
/**
|
|
1163
|
-
* A viewport-locked application shell: an optional full-width
|
|
1164
|
-
* `AppLayout.Notice` strip on top, then an `AppLayout.Workspace` row holding the
|
|
1165
|
-
* app's columns, typically a `Sidebar.Nav` beside an `AppLayout.Content` card
|
|
1166
|
-
* whose `AppLayout.Body` is the only thing that scrolls, and an optional
|
|
1167
|
-
* `AppLayout.SidePanel` that opens beside the card. It owns structure only
|
|
1168
|
-
* and is deliberately unaware of any sidebar: compose `Sidebar.Root` around it
|
|
1169
|
-
* and place `Sidebar.Trigger` in `AppLayout.Header` to connect the two.
|
|
1170
|
-
*
|
|
1171
|
-
* Reach for it when a signed-in application needs navigation chrome that
|
|
1172
|
-
* persists across routes. When the page is a single centered task surface with
|
|
1173
|
-
* no rail (sign in, sign up, onboarding, a standalone flow, a 404), compose
|
|
1174
|
-
* [`CenteredLayout`](https://mantle.ngrok.com/layouts/centered-layout) instead.
|
|
1175
|
-
*
|
|
1176
|
-
* The card reads exactly like the column beside it and like every other mantle
|
|
1177
|
-
* surface: `Content > Header + Body`, the same shape as `Sidebar.Nav`,
|
|
1178
|
-
* `Dialog.Content`, `Sheet.Content`, and `Card.Root`.
|
|
1179
|
-
*
|
|
1180
|
-
* There is deliberately no `Footer` part: a route rendering through an
|
|
1181
|
-
* `<Outlet />` inside `AppLayout.Body` could never reach one, and a page-owned
|
|
1182
|
-
* bottom bar is exactly what most consumers want. Make the page's root a flex
|
|
1183
|
-
* column instead; see the docs' "Sizing a page to the card".
|
|
1184
|
-
*
|
|
1185
|
-
* @useWhen Frame a signed-in app with navigation that persists across routes: a sidebar, a header
|
|
1186
|
-
* toolbar, and one scrolling content card.
|
|
1187
|
-
*
|
|
1188
|
-
* @siblings
|
|
1189
|
-
* - `CenteredLayout`: the page is one focused flow with no sidebar, such as sign-in, onboarding, or a 404 page.
|
|
1190
|
-
*
|
|
1191
|
-
* @see https://mantle.ngrok.com/layouts/app-layout
|
|
1192
|
-
*
|
|
1193
|
-
* @example
|
|
1194
|
-
* Composition:
|
|
1195
|
-
* ```
|
|
1196
|
-
* AppLayout.Root
|
|
1197
|
-
* ├── AppLayout.Notice
|
|
1198
|
-
* └── AppLayout.SidePanelRoot
|
|
1199
|
-
* └── AppLayout.Workspace
|
|
1200
|
-
* ├── AppLayout.Content
|
|
1201
|
-
* │ ├── AppLayout.Header
|
|
1202
|
-
* │ │ ├── AppLayout.HeaderStart
|
|
1203
|
-
* │ │ ├── AppLayout.HeaderContent
|
|
1204
|
-
* │ │ └── AppLayout.HeaderActions
|
|
1205
|
-
* │ │ └── AppLayout.SidePanelTrigger
|
|
1206
|
-
* │ └── AppLayout.Body
|
|
1207
|
-
* └── AppLayout.SidePanel
|
|
1208
|
-
* ├── AppLayout.SidePanelHeader
|
|
1209
|
-
* ├── AppLayout.SidePanelBody
|
|
1210
|
-
* └── AppLayout.SidePanelFooter
|
|
1211
|
-
* ```
|
|
1212
|
-
*
|
|
1213
|
-
* @example
|
|
1214
|
-
* ```tsx
|
|
1215
|
-
* <Sidebar.Root>
|
|
1216
|
-
* <AppLayout.Root className="fixed inset-0">
|
|
1217
|
-
* <SkipToMainLink />
|
|
1218
|
-
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
1219
|
-
* <AppLayout.SidePanelRoot>
|
|
1220
|
-
* <AppLayout.Workspace>
|
|
1221
|
-
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
1222
|
-
* <AppLayout.Content>
|
|
1223
|
-
* <AppLayout.Header>
|
|
1224
|
-
* <AppLayout.HeaderStart>
|
|
1225
|
-
* <Sidebar.Trigger />
|
|
1226
|
-
* </AppLayout.HeaderStart>
|
|
1227
|
-
* <AppLayout.HeaderContent>
|
|
1228
|
-
* <Breadcrumbs />
|
|
1229
|
-
* </AppLayout.HeaderContent>
|
|
1230
|
-
* <AppLayout.HeaderActions>
|
|
1231
|
-
* <AppLayout.SidePanelTrigger icon={<SparkleIcon />} label="Toggle the assistant" />
|
|
1232
|
-
* </AppLayout.HeaderActions>
|
|
1233
|
-
* </AppLayout.Header>
|
|
1234
|
-
* <AppLayout.Body>
|
|
1235
|
-
* <Outlet />
|
|
1236
|
-
* </AppLayout.Body>
|
|
1237
|
-
* </AppLayout.Content>
|
|
1238
|
-
* <AppLayout.SidePanel aria-label="Assistant">
|
|
1239
|
-
* <AppLayout.SidePanelHeader>
|
|
1240
|
-
* <p className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Assistant</p>
|
|
1241
|
-
* <AppLayout.SidePanelTrigger icon={<XIcon />} label="Close the assistant" />
|
|
1242
|
-
* </AppLayout.SidePanelHeader>
|
|
1243
|
-
* <AppLayout.SidePanelBody>
|
|
1244
|
-
* <AssistantConversation />
|
|
1245
|
-
* </AppLayout.SidePanelBody>
|
|
1246
|
-
* <AppLayout.SidePanelFooter>
|
|
1247
|
-
* <AssistantComposer />
|
|
1248
|
-
* </AppLayout.SidePanelFooter>
|
|
1249
|
-
* </AppLayout.SidePanel>
|
|
1250
|
-
* </AppLayout.Workspace>
|
|
1251
|
-
* </AppLayout.SidePanelRoot>
|
|
1252
|
-
* </AppLayout.Root>
|
|
1253
|
-
* </Sidebar.Root>
|
|
1254
|
-
* ```
|
|
1255
|
-
*/
|
|
1256
|
-
declare const AppLayout: {
|
|
1257
|
-
/**
|
|
1258
|
-
* The outer frame. Fills its nearest sized ancestor; merge
|
|
1259
|
-
* `className="fixed inset-0"` to pin a real app shell to the viewport.
|
|
1260
|
-
*
|
|
1261
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutroot
|
|
1262
|
-
*
|
|
1263
|
-
* @example
|
|
1264
|
-
* ```tsx
|
|
1265
|
-
* <Sidebar.Root>
|
|
1266
|
-
* <AppLayout.Root className="fixed inset-0">
|
|
1267
|
-
* <SkipToMainLink />
|
|
1268
|
-
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
1269
|
-
* <AppLayout.Workspace>
|
|
1270
|
-
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
1271
|
-
* <AppLayout.Content>
|
|
1272
|
-
* <AppLayout.Header>
|
|
1273
|
-
* <AppLayout.HeaderStart>
|
|
1274
|
-
* <Sidebar.Trigger />
|
|
1275
|
-
* </AppLayout.HeaderStart>
|
|
1276
|
-
* <AppLayout.HeaderContent>
|
|
1277
|
-
* <Breadcrumbs />
|
|
1278
|
-
* </AppLayout.HeaderContent>
|
|
1279
|
-
* <AppLayout.HeaderActions>
|
|
1280
|
-
* <PageActions />
|
|
1281
|
-
* </AppLayout.HeaderActions>
|
|
1282
|
-
* </AppLayout.Header>
|
|
1283
|
-
* <AppLayout.Body>
|
|
1284
|
-
* <Outlet />
|
|
1285
|
-
* </AppLayout.Body>
|
|
1286
|
-
* </AppLayout.Content>
|
|
1287
|
-
* </AppLayout.Workspace>
|
|
1288
|
-
* </AppLayout.Root>
|
|
1289
|
-
* </Sidebar.Root>
|
|
1290
|
-
* ```
|
|
1291
|
-
*/
|
|
1292
|
-
readonly Root: typeof Root;
|
|
1293
|
-
/**
|
|
1294
|
-
* A full-window-width strip above everything (maintenance notices,
|
|
1295
|
-
* environment warnings). Unstyled; collapses when empty.
|
|
1296
|
-
*
|
|
1297
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutnotice
|
|
1298
|
-
*
|
|
1299
|
-
* @example
|
|
1300
|
-
* ```tsx
|
|
1301
|
-
* <Sidebar.Root>
|
|
1302
|
-
* <AppLayout.Root className="fixed inset-0">
|
|
1303
|
-
* <SkipToMainLink />
|
|
1304
|
-
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
1305
|
-
* <AppLayout.Workspace>
|
|
1306
|
-
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
1307
|
-
* <AppLayout.Content>
|
|
1308
|
-
* <AppLayout.Header>
|
|
1309
|
-
* <AppLayout.HeaderStart>
|
|
1310
|
-
* <Sidebar.Trigger />
|
|
1311
|
-
* </AppLayout.HeaderStart>
|
|
1312
|
-
* <AppLayout.HeaderContent>
|
|
1313
|
-
* <Breadcrumbs />
|
|
1314
|
-
* </AppLayout.HeaderContent>
|
|
1315
|
-
* <AppLayout.HeaderActions>
|
|
1316
|
-
* <PageActions />
|
|
1317
|
-
* </AppLayout.HeaderActions>
|
|
1318
|
-
* </AppLayout.Header>
|
|
1319
|
-
* <AppLayout.Body>
|
|
1320
|
-
* <Outlet />
|
|
1321
|
-
* </AppLayout.Body>
|
|
1322
|
-
* </AppLayout.Content>
|
|
1323
|
-
* </AppLayout.Workspace>
|
|
1324
|
-
* </AppLayout.Root>
|
|
1325
|
-
* </Sidebar.Root>
|
|
1326
|
-
* ```
|
|
1327
|
-
*/
|
|
1328
|
-
readonly Notice: typeof Notice;
|
|
1329
|
-
/**
|
|
1330
|
-
* The row below the notice where the user works: a `Sidebar.Nav` beside an
|
|
1331
|
-
* `AppLayout.Content` card, and an `AppLayout.SidePanel` after it.
|
|
1332
|
-
*
|
|
1333
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutworkspace
|
|
1334
|
-
*
|
|
1335
|
-
* @example
|
|
1336
|
-
* ```tsx
|
|
1337
|
-
* <Sidebar.Root>
|
|
1338
|
-
* <AppLayout.Root className="fixed inset-0">
|
|
1339
|
-
* <SkipToMainLink />
|
|
1340
|
-
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
1341
|
-
* <AppLayout.Workspace>
|
|
1342
|
-
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
1343
|
-
* <AppLayout.Content>
|
|
1344
|
-
* <AppLayout.Header>
|
|
1345
|
-
* <AppLayout.HeaderStart>
|
|
1346
|
-
* <Sidebar.Trigger />
|
|
1347
|
-
* </AppLayout.HeaderStart>
|
|
1348
|
-
* <AppLayout.HeaderContent>
|
|
1349
|
-
* <Breadcrumbs />
|
|
1350
|
-
* </AppLayout.HeaderContent>
|
|
1351
|
-
* <AppLayout.HeaderActions>
|
|
1352
|
-
* <PageActions />
|
|
1353
|
-
* </AppLayout.HeaderActions>
|
|
1354
|
-
* </AppLayout.Header>
|
|
1355
|
-
* <AppLayout.Body>
|
|
1356
|
-
* <Outlet />
|
|
1357
|
-
* </AppLayout.Body>
|
|
1358
|
-
* </AppLayout.Content>
|
|
1359
|
-
* </AppLayout.Workspace>
|
|
1360
|
-
* </AppLayout.Root>
|
|
1361
|
-
* </Sidebar.Root>
|
|
1362
|
-
* ```
|
|
1363
|
-
*/
|
|
1364
|
-
readonly Workspace: typeof Workspace;
|
|
1365
|
-
/**
|
|
1366
|
-
* The rounded `bg-card` surface beside the sidebar, holding the toolbar and
|
|
1367
|
-
* the page region. Insets itself with `--app-layout-card-gutter`; does not
|
|
1368
|
-
* scroll — `AppLayout.Body` does.
|
|
1369
|
-
*
|
|
1370
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutcontent
|
|
1371
|
-
*
|
|
1372
|
-
* @example
|
|
1373
|
-
* ```tsx
|
|
1374
|
-
* <Sidebar.Root>
|
|
1375
|
-
* <AppLayout.Root className="fixed inset-0">
|
|
1376
|
-
* <SkipToMainLink />
|
|
1377
|
-
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
1378
|
-
* <AppLayout.Workspace>
|
|
1379
|
-
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
1380
|
-
* <AppLayout.Content>
|
|
1381
|
-
* <AppLayout.Header>
|
|
1382
|
-
* <AppLayout.HeaderStart>
|
|
1383
|
-
* <Sidebar.Trigger />
|
|
1384
|
-
* </AppLayout.HeaderStart>
|
|
1385
|
-
* <AppLayout.HeaderContent>
|
|
1386
|
-
* <Breadcrumbs />
|
|
1387
|
-
* </AppLayout.HeaderContent>
|
|
1388
|
-
* <AppLayout.HeaderActions>
|
|
1389
|
-
* <PageActions />
|
|
1390
|
-
* </AppLayout.HeaderActions>
|
|
1391
|
-
* </AppLayout.Header>
|
|
1392
|
-
* <AppLayout.Body>
|
|
1393
|
-
* <Outlet />
|
|
1394
|
-
* </AppLayout.Body>
|
|
1395
|
-
* </AppLayout.Content>
|
|
1396
|
-
* </AppLayout.Workspace>
|
|
1397
|
-
* </AppLayout.Root>
|
|
1398
|
-
* </Sidebar.Root>
|
|
1399
|
-
* ```
|
|
1400
|
-
*/
|
|
1401
|
-
readonly Content: typeof Content;
|
|
1402
|
-
/**
|
|
1403
|
-
* The toolbar row at the top of the content card: `AppLayout.Content`'s
|
|
1404
|
-
* first child, with `Sidebar.Trigger` in its top-left followed by
|
|
1405
|
-
* breadcrumbs. Pinned by `shrink-0`, not `sticky`.
|
|
1406
|
-
*
|
|
1407
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutheader
|
|
1408
|
-
*
|
|
1409
|
-
* @example
|
|
1410
|
-
* ```tsx
|
|
1411
|
-
* <Sidebar.Root>
|
|
1412
|
-
* <AppLayout.Root className="fixed inset-0">
|
|
1413
|
-
* <SkipToMainLink />
|
|
1414
|
-
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
1415
|
-
* <AppLayout.Workspace>
|
|
1416
|
-
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
1417
|
-
* <AppLayout.Content>
|
|
1418
|
-
* <AppLayout.Header>
|
|
1419
|
-
* <AppLayout.HeaderStart>
|
|
1420
|
-
* <Sidebar.Trigger />
|
|
1421
|
-
* </AppLayout.HeaderStart>
|
|
1422
|
-
* <AppLayout.HeaderContent>
|
|
1423
|
-
* <Breadcrumbs />
|
|
1424
|
-
* </AppLayout.HeaderContent>
|
|
1425
|
-
* <AppLayout.HeaderActions>
|
|
1426
|
-
* <PageActions />
|
|
1427
|
-
* </AppLayout.HeaderActions>
|
|
1428
|
-
* </AppLayout.Header>
|
|
1429
|
-
* <AppLayout.Body>
|
|
1430
|
-
* <Outlet />
|
|
1431
|
-
* </AppLayout.Body>
|
|
1432
|
-
* </AppLayout.Content>
|
|
1433
|
-
* </AppLayout.Workspace>
|
|
1434
|
-
* </AppLayout.Root>
|
|
1435
|
-
* </Sidebar.Root>
|
|
1436
|
-
* ```
|
|
1437
|
-
*/
|
|
1438
|
-
readonly Header: typeof Header;
|
|
1439
|
-
/**
|
|
1440
|
-
* The header's leading slot, `shrink-0`: the home of `Sidebar.Trigger`.
|
|
1441
|
-
*
|
|
1442
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutheaderstart
|
|
1443
|
-
*
|
|
1444
|
-
* @example
|
|
1445
|
-
* ```tsx
|
|
1446
|
-
* <Sidebar.Root>
|
|
1447
|
-
* <AppLayout.Root className="fixed inset-0">
|
|
1448
|
-
* <SkipToMainLink />
|
|
1449
|
-
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
1450
|
-
* <AppLayout.Workspace>
|
|
1451
|
-
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
1452
|
-
* <AppLayout.Content>
|
|
1453
|
-
* <AppLayout.Header>
|
|
1454
|
-
* <AppLayout.HeaderStart>
|
|
1455
|
-
* <Sidebar.Trigger />
|
|
1456
|
-
* </AppLayout.HeaderStart>
|
|
1457
|
-
* <AppLayout.HeaderContent>
|
|
1458
|
-
* <Breadcrumbs />
|
|
1459
|
-
* </AppLayout.HeaderContent>
|
|
1460
|
-
* <AppLayout.HeaderActions>
|
|
1461
|
-
* <PageActions />
|
|
1462
|
-
* </AppLayout.HeaderActions>
|
|
1463
|
-
* </AppLayout.Header>
|
|
1464
|
-
* <AppLayout.Body>
|
|
1465
|
-
* <Outlet />
|
|
1466
|
-
* </AppLayout.Body>
|
|
1467
|
-
* </AppLayout.Content>
|
|
1468
|
-
* </AppLayout.Workspace>
|
|
1469
|
-
* </AppLayout.Root>
|
|
1470
|
-
* </Sidebar.Root>
|
|
1471
|
-
* ```
|
|
1472
|
-
*/
|
|
1473
|
-
readonly HeaderStart: typeof HeaderStart;
|
|
1474
|
-
/**
|
|
1475
|
-
* The header's filling slot, `min-w-0 flex-1`: the home of the
|
|
1476
|
-
* `Breadcrumb` trail, whose list scrolls instead of pushing the actions
|
|
1477
|
-
* off the card.
|
|
1478
|
-
*
|
|
1479
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutheadercontent
|
|
1480
|
-
*
|
|
1481
|
-
* @example
|
|
1482
|
-
* ```tsx
|
|
1483
|
-
* <Sidebar.Root>
|
|
1484
|
-
* <AppLayout.Root className="fixed inset-0">
|
|
1485
|
-
* <SkipToMainLink />
|
|
1486
|
-
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
1487
|
-
* <AppLayout.Workspace>
|
|
1488
|
-
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
1489
|
-
* <AppLayout.Content>
|
|
1490
|
-
* <AppLayout.Header>
|
|
1491
|
-
* <AppLayout.HeaderStart>
|
|
1492
|
-
* <Sidebar.Trigger />
|
|
1493
|
-
* </AppLayout.HeaderStart>
|
|
1494
|
-
* <AppLayout.HeaderContent>
|
|
1495
|
-
* <Breadcrumbs />
|
|
1496
|
-
* </AppLayout.HeaderContent>
|
|
1497
|
-
* <AppLayout.HeaderActions>
|
|
1498
|
-
* <PageActions />
|
|
1499
|
-
* </AppLayout.HeaderActions>
|
|
1500
|
-
* </AppLayout.Header>
|
|
1501
|
-
* <AppLayout.Body>
|
|
1502
|
-
* <Outlet />
|
|
1503
|
-
* </AppLayout.Body>
|
|
1504
|
-
* </AppLayout.Content>
|
|
1505
|
-
* </AppLayout.Workspace>
|
|
1506
|
-
* </AppLayout.Root>
|
|
1507
|
-
* </Sidebar.Root>
|
|
1508
|
-
* ```
|
|
1509
|
-
*/
|
|
1510
|
-
readonly HeaderContent: typeof HeaderContent;
|
|
1511
|
-
/**
|
|
1512
|
-
* The header's trailing slot, `ml-auto shrink-0`: the page's actions,
|
|
1513
|
-
* aligned to the row's end. Three or fewer; collapse them into one
|
|
1514
|
-
* `DropdownMenu` below the mobile breakpoint.
|
|
1515
|
-
*
|
|
1516
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutheaderactions
|
|
1517
|
-
*
|
|
1518
|
-
* @example
|
|
1519
|
-
* ```tsx
|
|
1520
|
-
* <Sidebar.Root>
|
|
1521
|
-
* <AppLayout.Root className="fixed inset-0">
|
|
1522
|
-
* <SkipToMainLink />
|
|
1523
|
-
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
1524
|
-
* <AppLayout.Workspace>
|
|
1525
|
-
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
1526
|
-
* <AppLayout.Content>
|
|
1527
|
-
* <AppLayout.Header>
|
|
1528
|
-
* <AppLayout.HeaderStart>
|
|
1529
|
-
* <Sidebar.Trigger />
|
|
1530
|
-
* </AppLayout.HeaderStart>
|
|
1531
|
-
* <AppLayout.HeaderContent>
|
|
1532
|
-
* <Breadcrumbs />
|
|
1533
|
-
* </AppLayout.HeaderContent>
|
|
1534
|
-
* <AppLayout.HeaderActions>
|
|
1535
|
-
* <PageActions />
|
|
1536
|
-
* </AppLayout.HeaderActions>
|
|
1537
|
-
* </AppLayout.Header>
|
|
1538
|
-
* <AppLayout.Body>
|
|
1539
|
-
* <Outlet />
|
|
1540
|
-
* </AppLayout.Body>
|
|
1541
|
-
* </AppLayout.Content>
|
|
1542
|
-
* </AppLayout.Workspace>
|
|
1543
|
-
* </AppLayout.Root>
|
|
1544
|
-
* </Sidebar.Root>
|
|
1545
|
-
* ```
|
|
1546
|
-
*/
|
|
1547
|
-
readonly HeaderActions: typeof HeaderActions;
|
|
1548
|
-
/**
|
|
1549
|
-
* The page region and the shell's only scroll container, rendered as the
|
|
1550
|
-
* `Main` landmark. A flex item that is block inside, so `h-full` pages fit the
|
|
1551
|
-
* card and `mx-auto max-w-7xl` pages still center. Pass `asChild` with a
|
|
1552
|
-
* `<div>` when the document already owns a `main`.
|
|
1553
|
-
*
|
|
1554
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutbody
|
|
1555
|
-
*
|
|
1556
|
-
* @example
|
|
1557
|
-
* ```tsx
|
|
1558
|
-
* <Sidebar.Root>
|
|
1559
|
-
* <AppLayout.Root className="fixed inset-0">
|
|
1560
|
-
* <SkipToMainLink />
|
|
1561
|
-
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
1562
|
-
* <AppLayout.Workspace>
|
|
1563
|
-
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
1564
|
-
* <AppLayout.Content>
|
|
1565
|
-
* <AppLayout.Header>
|
|
1566
|
-
* <AppLayout.HeaderStart>
|
|
1567
|
-
* <Sidebar.Trigger />
|
|
1568
|
-
* </AppLayout.HeaderStart>
|
|
1569
|
-
* <AppLayout.HeaderContent>
|
|
1570
|
-
* <Breadcrumbs />
|
|
1571
|
-
* </AppLayout.HeaderContent>
|
|
1572
|
-
* <AppLayout.HeaderActions>
|
|
1573
|
-
* <PageActions />
|
|
1574
|
-
* </AppLayout.HeaderActions>
|
|
1575
|
-
* </AppLayout.Header>
|
|
1576
|
-
* <AppLayout.Body>
|
|
1577
|
-
* <Outlet />
|
|
1578
|
-
* </AppLayout.Body>
|
|
1579
|
-
* </AppLayout.Content>
|
|
1580
|
-
* </AppLayout.Workspace>
|
|
1581
|
-
* </AppLayout.Root>
|
|
1582
|
-
* </Sidebar.Root>
|
|
1583
|
-
* ```
|
|
1584
|
-
*/
|
|
1585
|
-
readonly Body: typeof Body;
|
|
1586
|
-
/**
|
|
1587
|
-
* The renderless state owner for the side panel: `open`, `defaultOpen`,
|
|
1588
|
-
* `onOpenChange`. Wrap `AppLayout.Workspace` with it.
|
|
1589
|
-
*
|
|
1590
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutsidepanelroot
|
|
1591
|
-
*
|
|
1592
|
-
* @example
|
|
1593
|
-
* ```tsx
|
|
1594
|
-
* <Sidebar.Root>
|
|
1595
|
-
* <AppLayout.Root className="fixed inset-0">
|
|
1596
|
-
* <SkipToMainLink />
|
|
1597
|
-
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
1598
|
-
* <AppLayout.SidePanelRoot>
|
|
1599
|
-
* <AppLayout.Workspace>
|
|
1600
|
-
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
1601
|
-
* <AppLayout.Content>
|
|
1602
|
-
* <AppLayout.Header>
|
|
1603
|
-
* <AppLayout.HeaderStart>
|
|
1604
|
-
* <Sidebar.Trigger />
|
|
1605
|
-
* </AppLayout.HeaderStart>
|
|
1606
|
-
* <AppLayout.HeaderContent>
|
|
1607
|
-
* <Breadcrumbs />
|
|
1608
|
-
* </AppLayout.HeaderContent>
|
|
1609
|
-
* <AppLayout.HeaderActions>
|
|
1610
|
-
* <AppLayout.SidePanelTrigger icon={<SparkleIcon />} label="Toggle the assistant" />
|
|
1611
|
-
* </AppLayout.HeaderActions>
|
|
1612
|
-
* </AppLayout.Header>
|
|
1613
|
-
* <AppLayout.Body>
|
|
1614
|
-
* <Outlet />
|
|
1615
|
-
* </AppLayout.Body>
|
|
1616
|
-
* </AppLayout.Content>
|
|
1617
|
-
* <AppLayout.SidePanel aria-label="Assistant">
|
|
1618
|
-
* <AppLayout.SidePanelHeader>
|
|
1619
|
-
* <p className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Assistant</p>
|
|
1620
|
-
* <AppLayout.SidePanelTrigger icon={<XIcon />} label="Close the assistant" />
|
|
1621
|
-
* </AppLayout.SidePanelHeader>
|
|
1622
|
-
* <AppLayout.SidePanelBody>
|
|
1623
|
-
* <AssistantConversation />
|
|
1624
|
-
* </AppLayout.SidePanelBody>
|
|
1625
|
-
* <AppLayout.SidePanelFooter>
|
|
1626
|
-
* <AssistantComposer />
|
|
1627
|
-
* </AppLayout.SidePanelFooter>
|
|
1628
|
-
* </AppLayout.SidePanel>
|
|
1629
|
-
* </AppLayout.Workspace>
|
|
1630
|
-
* </AppLayout.SidePanelRoot>
|
|
1631
|
-
* </AppLayout.Root>
|
|
1632
|
-
* </Sidebar.Root>
|
|
1633
|
-
* ```
|
|
1634
|
-
*/
|
|
1635
|
-
readonly SidePanelRoot: typeof SidePanelRoot;
|
|
1636
|
-
/**
|
|
1637
|
-
* A second card after `AppLayout.Content`, for an assistant or a details
|
|
1638
|
-
* pane. Reads its open state from `AppLayout.SidePanelRoot`: it slides in at
|
|
1639
|
-
* `--app-layout-side-panel-width`, collapses to nothing and goes `inert`
|
|
1640
|
-
* when closed, floats over the card below `mobileBreakpoint` or when the
|
|
1641
|
-
* row is too narrow for the rail beside it, and covers the card as a modal
|
|
1642
|
-
* on a phone.
|
|
1643
|
-
*
|
|
1644
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutsidepanel
|
|
1645
|
-
*
|
|
1646
|
-
* @example
|
|
1647
|
-
* ```tsx
|
|
1648
|
-
* <Sidebar.Root>
|
|
1649
|
-
* <AppLayout.Root className="fixed inset-0">
|
|
1650
|
-
* <SkipToMainLink />
|
|
1651
|
-
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
1652
|
-
* <AppLayout.SidePanelRoot>
|
|
1653
|
-
* <AppLayout.Workspace>
|
|
1654
|
-
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
1655
|
-
* <AppLayout.Content>
|
|
1656
|
-
* <AppLayout.Header>
|
|
1657
|
-
* <AppLayout.HeaderStart>
|
|
1658
|
-
* <Sidebar.Trigger />
|
|
1659
|
-
* </AppLayout.HeaderStart>
|
|
1660
|
-
* <AppLayout.HeaderContent>
|
|
1661
|
-
* <Breadcrumbs />
|
|
1662
|
-
* </AppLayout.HeaderContent>
|
|
1663
|
-
* <AppLayout.HeaderActions>
|
|
1664
|
-
* <AppLayout.SidePanelTrigger icon={<SparkleIcon />} label="Toggle the assistant" />
|
|
1665
|
-
* </AppLayout.HeaderActions>
|
|
1666
|
-
* </AppLayout.Header>
|
|
1667
|
-
* <AppLayout.Body>
|
|
1668
|
-
* <Outlet />
|
|
1669
|
-
* </AppLayout.Body>
|
|
1670
|
-
* </AppLayout.Content>
|
|
1671
|
-
* <AppLayout.SidePanel aria-label="Assistant">
|
|
1672
|
-
* <AppLayout.SidePanelHeader>
|
|
1673
|
-
* <p className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Assistant</p>
|
|
1674
|
-
* <AppLayout.SidePanelTrigger icon={<XIcon />} label="Close the assistant" />
|
|
1675
|
-
* </AppLayout.SidePanelHeader>
|
|
1676
|
-
* <AppLayout.SidePanelBody>
|
|
1677
|
-
* <AssistantConversation />
|
|
1678
|
-
* </AppLayout.SidePanelBody>
|
|
1679
|
-
* <AppLayout.SidePanelFooter>
|
|
1680
|
-
* <AssistantComposer />
|
|
1681
|
-
* </AppLayout.SidePanelFooter>
|
|
1682
|
-
* </AppLayout.SidePanel>
|
|
1683
|
-
* </AppLayout.Workspace>
|
|
1684
|
-
* </AppLayout.SidePanelRoot>
|
|
1685
|
-
* </AppLayout.Root>
|
|
1686
|
-
* </Sidebar.Root>
|
|
1687
|
-
* ```
|
|
1688
|
-
*/
|
|
1689
|
-
readonly SidePanel: typeof SidePanel;
|
|
1690
|
-
/**
|
|
1691
|
-
* The ghost `IconButton` that toggles the panel, with `aria-expanded` and
|
|
1692
|
-
* `aria-controls` wired to it. Needs a `TooltipProvider` ancestor.
|
|
1693
|
-
*
|
|
1694
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutsidepaneltrigger
|
|
1695
|
-
*
|
|
1696
|
-
* @example
|
|
1697
|
-
* ```tsx
|
|
1698
|
-
* <Sidebar.Root>
|
|
1699
|
-
* <AppLayout.Root className="fixed inset-0">
|
|
1700
|
-
* <SkipToMainLink />
|
|
1701
|
-
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
1702
|
-
* <AppLayout.SidePanelRoot>
|
|
1703
|
-
* <AppLayout.Workspace>
|
|
1704
|
-
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
1705
|
-
* <AppLayout.Content>
|
|
1706
|
-
* <AppLayout.Header>
|
|
1707
|
-
* <AppLayout.HeaderStart>
|
|
1708
|
-
* <Sidebar.Trigger />
|
|
1709
|
-
* </AppLayout.HeaderStart>
|
|
1710
|
-
* <AppLayout.HeaderContent>
|
|
1711
|
-
* <Breadcrumbs />
|
|
1712
|
-
* </AppLayout.HeaderContent>
|
|
1713
|
-
* <AppLayout.HeaderActions>
|
|
1714
|
-
* <AppLayout.SidePanelTrigger icon={<SparkleIcon />} label="Toggle the assistant" />
|
|
1715
|
-
* </AppLayout.HeaderActions>
|
|
1716
|
-
* </AppLayout.Header>
|
|
1717
|
-
* <AppLayout.Body>
|
|
1718
|
-
* <Outlet />
|
|
1719
|
-
* </AppLayout.Body>
|
|
1720
|
-
* </AppLayout.Content>
|
|
1721
|
-
* <AppLayout.SidePanel aria-label="Assistant">
|
|
1722
|
-
* <AppLayout.SidePanelHeader>
|
|
1723
|
-
* <p className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Assistant</p>
|
|
1724
|
-
* <AppLayout.SidePanelTrigger icon={<XIcon />} label="Close the assistant" />
|
|
1725
|
-
* </AppLayout.SidePanelHeader>
|
|
1726
|
-
* <AppLayout.SidePanelBody>
|
|
1727
|
-
* <AssistantConversation />
|
|
1728
|
-
* </AppLayout.SidePanelBody>
|
|
1729
|
-
* <AppLayout.SidePanelFooter>
|
|
1730
|
-
* <AssistantComposer />
|
|
1731
|
-
* </AppLayout.SidePanelFooter>
|
|
1732
|
-
* </AppLayout.SidePanel>
|
|
1733
|
-
* </AppLayout.Workspace>
|
|
1734
|
-
* </AppLayout.SidePanelRoot>
|
|
1735
|
-
* </AppLayout.Root>
|
|
1736
|
-
* </Sidebar.Root>
|
|
1737
|
-
* ```
|
|
1738
|
-
*/
|
|
1739
|
-
readonly SidePanelTrigger: typeof SidePanelTrigger;
|
|
1740
|
-
/**
|
|
1741
|
-
* The panel's toolbar row, its first child: the title at the start, the
|
|
1742
|
-
* close control at the end, on the same band as `AppLayout.Header`. It is
|
|
1743
|
-
* the panel's swipe handle.
|
|
1744
|
-
*
|
|
1745
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutsidepanelheader
|
|
1746
|
-
*
|
|
1747
|
-
* @example
|
|
1748
|
-
* ```tsx
|
|
1749
|
-
* <Sidebar.Root>
|
|
1750
|
-
* <AppLayout.Root className="fixed inset-0">
|
|
1751
|
-
* <SkipToMainLink />
|
|
1752
|
-
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
1753
|
-
* <AppLayout.SidePanelRoot>
|
|
1754
|
-
* <AppLayout.Workspace>
|
|
1755
|
-
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
1756
|
-
* <AppLayout.Content>
|
|
1757
|
-
* <AppLayout.Header>
|
|
1758
|
-
* <AppLayout.HeaderStart>
|
|
1759
|
-
* <Sidebar.Trigger />
|
|
1760
|
-
* </AppLayout.HeaderStart>
|
|
1761
|
-
* <AppLayout.HeaderContent>
|
|
1762
|
-
* <Breadcrumbs />
|
|
1763
|
-
* </AppLayout.HeaderContent>
|
|
1764
|
-
* <AppLayout.HeaderActions>
|
|
1765
|
-
* <AppLayout.SidePanelTrigger icon={<SparkleIcon />} label="Toggle the assistant" />
|
|
1766
|
-
* </AppLayout.HeaderActions>
|
|
1767
|
-
* </AppLayout.Header>
|
|
1768
|
-
* <AppLayout.Body>
|
|
1769
|
-
* <Outlet />
|
|
1770
|
-
* </AppLayout.Body>
|
|
1771
|
-
* </AppLayout.Content>
|
|
1772
|
-
* <AppLayout.SidePanel aria-label="Assistant">
|
|
1773
|
-
* <AppLayout.SidePanelHeader>
|
|
1774
|
-
* <p className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Assistant</p>
|
|
1775
|
-
* <AppLayout.SidePanelTrigger icon={<XIcon />} label="Close the assistant" />
|
|
1776
|
-
* </AppLayout.SidePanelHeader>
|
|
1777
|
-
* <AppLayout.SidePanelBody>
|
|
1778
|
-
* <AssistantConversation />
|
|
1779
|
-
* </AppLayout.SidePanelBody>
|
|
1780
|
-
* <AppLayout.SidePanelFooter>
|
|
1781
|
-
* <AssistantComposer />
|
|
1782
|
-
* </AppLayout.SidePanelFooter>
|
|
1783
|
-
* </AppLayout.SidePanel>
|
|
1784
|
-
* </AppLayout.Workspace>
|
|
1785
|
-
* </AppLayout.SidePanelRoot>
|
|
1786
|
-
* </AppLayout.Root>
|
|
1787
|
-
* </Sidebar.Root>
|
|
1788
|
-
* ```
|
|
1789
|
-
*/
|
|
1790
|
-
readonly SidePanelHeader: typeof SidePanelHeader;
|
|
1791
|
-
/**
|
|
1792
|
-
* The panel's scroll region, after the header: the same box as
|
|
1793
|
-
* `AppLayout.Body` with no landmark.
|
|
1794
|
-
*
|
|
1795
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutsidepanelbody
|
|
1796
|
-
*
|
|
1797
|
-
* @example
|
|
1798
|
-
* ```tsx
|
|
1799
|
-
* <Sidebar.Root>
|
|
1800
|
-
* <AppLayout.Root className="fixed inset-0">
|
|
1801
|
-
* <SkipToMainLink />
|
|
1802
|
-
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
1803
|
-
* <AppLayout.SidePanelRoot>
|
|
1804
|
-
* <AppLayout.Workspace>
|
|
1805
|
-
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
1806
|
-
* <AppLayout.Content>
|
|
1807
|
-
* <AppLayout.Header>
|
|
1808
|
-
* <AppLayout.HeaderStart>
|
|
1809
|
-
* <Sidebar.Trigger />
|
|
1810
|
-
* </AppLayout.HeaderStart>
|
|
1811
|
-
* <AppLayout.HeaderContent>
|
|
1812
|
-
* <Breadcrumbs />
|
|
1813
|
-
* </AppLayout.HeaderContent>
|
|
1814
|
-
* <AppLayout.HeaderActions>
|
|
1815
|
-
* <AppLayout.SidePanelTrigger icon={<SparkleIcon />} label="Toggle the assistant" />
|
|
1816
|
-
* </AppLayout.HeaderActions>
|
|
1817
|
-
* </AppLayout.Header>
|
|
1818
|
-
* <AppLayout.Body>
|
|
1819
|
-
* <Outlet />
|
|
1820
|
-
* </AppLayout.Body>
|
|
1821
|
-
* </AppLayout.Content>
|
|
1822
|
-
* <AppLayout.SidePanel aria-label="Assistant">
|
|
1823
|
-
* <AppLayout.SidePanelHeader>
|
|
1824
|
-
* <p className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Assistant</p>
|
|
1825
|
-
* <AppLayout.SidePanelTrigger icon={<XIcon />} label="Close the assistant" />
|
|
1826
|
-
* </AppLayout.SidePanelHeader>
|
|
1827
|
-
* <AppLayout.SidePanelBody>
|
|
1828
|
-
* <AssistantConversation />
|
|
1829
|
-
* </AppLayout.SidePanelBody>
|
|
1830
|
-
* <AppLayout.SidePanelFooter>
|
|
1831
|
-
* <AssistantComposer />
|
|
1832
|
-
* </AppLayout.SidePanelFooter>
|
|
1833
|
-
* </AppLayout.SidePanel>
|
|
1834
|
-
* </AppLayout.Workspace>
|
|
1835
|
-
* </AppLayout.SidePanelRoot>
|
|
1836
|
-
* </AppLayout.Root>
|
|
1837
|
-
* </Sidebar.Root>
|
|
1838
|
-
* ```
|
|
1839
|
-
*/
|
|
1840
|
-
readonly SidePanelBody: typeof SidePanelBody;
|
|
1841
|
-
/**
|
|
1842
|
-
* The bar pinned to the panel's bottom edge, after the body: a composer or
|
|
1843
|
-
* an action row, outside the scroll region. Optional.
|
|
1844
|
-
*
|
|
1845
|
-
* @see https://mantle.ngrok.com/layouts/app-layout#applayoutsidepanelfooter
|
|
1846
|
-
*
|
|
1847
|
-
* @example
|
|
1848
|
-
* ```tsx
|
|
1849
|
-
* <Sidebar.Root>
|
|
1850
|
-
* <AppLayout.Root className="fixed inset-0">
|
|
1851
|
-
* <SkipToMainLink />
|
|
1852
|
-
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
1853
|
-
* <AppLayout.SidePanelRoot>
|
|
1854
|
-
* <AppLayout.Workspace>
|
|
1855
|
-
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
1856
|
-
* <AppLayout.Content>
|
|
1857
|
-
* <AppLayout.Header>
|
|
1858
|
-
* <AppLayout.HeaderStart>
|
|
1859
|
-
* <Sidebar.Trigger />
|
|
1860
|
-
* </AppLayout.HeaderStart>
|
|
1861
|
-
* <AppLayout.HeaderContent>
|
|
1862
|
-
* <Breadcrumbs />
|
|
1863
|
-
* </AppLayout.HeaderContent>
|
|
1864
|
-
* <AppLayout.HeaderActions>
|
|
1865
|
-
* <AppLayout.SidePanelTrigger icon={<SparkleIcon />} label="Toggle the assistant" />
|
|
1866
|
-
* </AppLayout.HeaderActions>
|
|
1867
|
-
* </AppLayout.Header>
|
|
1868
|
-
* <AppLayout.Body>
|
|
1869
|
-
* <Outlet />
|
|
1870
|
-
* </AppLayout.Body>
|
|
1871
|
-
* </AppLayout.Content>
|
|
1872
|
-
* <AppLayout.SidePanel aria-label="Assistant">
|
|
1873
|
-
* <AppLayout.SidePanelHeader>
|
|
1874
|
-
* <p className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Assistant</p>
|
|
1875
|
-
* <AppLayout.SidePanelTrigger icon={<XIcon />} label="Close the assistant" />
|
|
1876
|
-
* </AppLayout.SidePanelHeader>
|
|
1877
|
-
* <AppLayout.SidePanelBody>
|
|
1878
|
-
* <AssistantConversation />
|
|
1879
|
-
* </AppLayout.SidePanelBody>
|
|
1880
|
-
* <AppLayout.SidePanelFooter>
|
|
1881
|
-
* <AssistantComposer />
|
|
1882
|
-
* </AppLayout.SidePanelFooter>
|
|
1883
|
-
* </AppLayout.SidePanel>
|
|
1884
|
-
* </AppLayout.Workspace>
|
|
1885
|
-
* </AppLayout.SidePanelRoot>
|
|
1886
|
-
* </AppLayout.Root>
|
|
1887
|
-
* </Sidebar.Root>
|
|
1888
|
-
* ```
|
|
1889
|
-
*/
|
|
1890
|
-
readonly SidePanelFooter: typeof SidePanelFooter;
|
|
1891
|
-
};
|
|
10
|
+
import * as AppLayoutParts from "./app-layout-parts.js";
|
|
11
|
+
import { a as AppLayoutSidePanelTriggerProps, i as AppLayoutSidePanelState, n as AppLayoutSidePanelProps, r as AppLayoutSidePanelRootProps, t as AppLayoutSidePanelMobileBreakpoint, x as useSidePanel } from "./app-layout-k6UjK30v.js";
|
|
1892
12
|
/**
|
|
1893
13
|
* The cookie name {@link extractSidePanelStateCookie} reads and
|
|
1894
14
|
* {@link serializeSidePanelStateCookie} writes.
|
|
@@ -1910,7 +30,7 @@ declare const SIDE_PANEL_STATE_COOKIE_NAME = "mantle-side-panel-state";
|
|
|
1910
30
|
*
|
|
1911
31
|
* This is the server half of cookie-backed persistence: a cookie is available
|
|
1912
32
|
* before the server renders, so the server HTML already carries the right
|
|
1913
|
-
* `data-
|
|
33
|
+
* `data-open` and there is no first-frame correction to hide. Pass the result
|
|
1914
34
|
* straight to `AppLayout.SidePanelRoot`'s `defaultOpen`.
|
|
1915
35
|
*
|
|
1916
36
|
* Returns `undefined`, not `false`, when the cookie is absent or holds a value
|
|
@@ -2010,4 +130,99 @@ type SerializeSidePanelStateCookieOptions = {
|
|
|
2010
130
|
* @returns A cookie string such as `mantle-side-panel-state=closed; Max-Age=31536000; Path=/; SameSite=Lax`.
|
|
2011
131
|
*/
|
|
2012
132
|
declare function serializeSidePanelStateCookie(open: boolean, options?: SerializeSidePanelStateCookieOptions): string;
|
|
133
|
+
/**
|
|
134
|
+
* A viewport-locked application shell: an optional full-width
|
|
135
|
+
* `AppLayout.Notice` strip on top, then an `AppLayout.Workspace` row holding the
|
|
136
|
+
* app's columns, typically a `Sidebar.Nav` beside an `AppLayout.Content` card
|
|
137
|
+
* whose `AppLayout.Body` is the only thing that scrolls, and an optional
|
|
138
|
+
* `AppLayout.SidePanel` that opens beside the card. It owns structure only
|
|
139
|
+
* and is deliberately unaware of any sidebar: compose `Sidebar.Root` around it
|
|
140
|
+
* and place `Sidebar.Trigger` in `AppLayout.Header` to connect the two.
|
|
141
|
+
*
|
|
142
|
+
* Reach for it when a signed-in application needs navigation chrome that
|
|
143
|
+
* persists across routes. When the page is a single centered task surface with
|
|
144
|
+
* no sidebar (sign in, sign up, onboarding, a standalone flow, a 404), compose
|
|
145
|
+
* [`CenteredLayout`](https://mantle.ngrok.com/layouts/centered-layout) instead.
|
|
146
|
+
*
|
|
147
|
+
* The card reads exactly like the column beside it and like every other mantle
|
|
148
|
+
* surface: `Content > Header + Body`, the same shape as `Sidebar.Nav`,
|
|
149
|
+
* `Dialog.Content`, `Sheet.Content`, and `Card.Root`.
|
|
150
|
+
*
|
|
151
|
+
* There is deliberately no `Footer` part: a route rendering through an
|
|
152
|
+
* `<Outlet />` inside `AppLayout.Body` could never reach one, and a page-owned
|
|
153
|
+
* bottom bar is exactly what most consumers want. Make the page's root a flex
|
|
154
|
+
* column instead; see the docs' "Sizing a page to the card".
|
|
155
|
+
*
|
|
156
|
+
* @useWhen Frame a signed-in app with navigation that persists across routes: a sidebar, a header
|
|
157
|
+
* that holds the page heading and its actions, and one scrolling content card.
|
|
158
|
+
*
|
|
159
|
+
* @siblings
|
|
160
|
+
* - `CenteredLayout`: the page is one focused flow with no sidebar, such as sign-in, onboarding, or a 404 page.
|
|
161
|
+
*
|
|
162
|
+
* @see https://mantle.ngrok.com/layouts/app-layout
|
|
163
|
+
*
|
|
164
|
+
* @example
|
|
165
|
+
* Composition:
|
|
166
|
+
* ```
|
|
167
|
+
* AppLayout.Root
|
|
168
|
+
* ├── AppLayout.Notice
|
|
169
|
+
* └── AppLayout.SidePanelRoot
|
|
170
|
+
* └── AppLayout.Workspace
|
|
171
|
+
* ├── AppLayout.Content
|
|
172
|
+
* │ ├── AppLayout.Header
|
|
173
|
+
* │ │ ├── AppLayout.HeaderStart
|
|
174
|
+
* │ │ ├── AppLayout.HeaderContent
|
|
175
|
+
* │ │ └── AppLayout.HeaderActions
|
|
176
|
+
* │ │ └── AppLayout.SidePanelTrigger
|
|
177
|
+
* │ └── AppLayout.Body
|
|
178
|
+
* └── AppLayout.SidePanel
|
|
179
|
+
* ├── AppLayout.SidePanelHeader
|
|
180
|
+
* ├── AppLayout.SidePanelBody
|
|
181
|
+
* └── AppLayout.SidePanelFooter
|
|
182
|
+
* ```
|
|
183
|
+
*
|
|
184
|
+
* @example
|
|
185
|
+
* ```tsx
|
|
186
|
+
* <Sidebar.Root>
|
|
187
|
+
* <AppLayout.Root className="fixed inset-0">
|
|
188
|
+
* <SkipToMainLink />
|
|
189
|
+
* <AppLayout.Notice>{isUnderMaintenance && <MaintenanceBanner />}</AppLayout.Notice>
|
|
190
|
+
* <AppLayout.SidePanelRoot>
|
|
191
|
+
* <AppLayout.Workspace>
|
|
192
|
+
* <Sidebar.Nav aria-label="Main">…</Sidebar.Nav>
|
|
193
|
+
* <AppLayout.Content>
|
|
194
|
+
* <AppLayout.Header>
|
|
195
|
+
* <AppLayout.HeaderStart>
|
|
196
|
+
* <Sidebar.Trigger />
|
|
197
|
+
* </AppLayout.HeaderStart>
|
|
198
|
+
* <AppLayout.HeaderContent>
|
|
199
|
+
* <Breadcrumbs />
|
|
200
|
+
* </AppLayout.HeaderContent>
|
|
201
|
+
* <AppLayout.HeaderActions>
|
|
202
|
+
* <AppLayout.SidePanelTrigger icon={<SparkleIcon />} label="Toggle the assistant" />
|
|
203
|
+
* </AppLayout.HeaderActions>
|
|
204
|
+
* </AppLayout.Header>
|
|
205
|
+
* <AppLayout.Body>
|
|
206
|
+
* <Outlet />
|
|
207
|
+
* </AppLayout.Body>
|
|
208
|
+
* </AppLayout.Content>
|
|
209
|
+
* <AppLayout.SidePanel aria-label="Assistant">
|
|
210
|
+
* <AppLayout.SidePanelHeader>
|
|
211
|
+
* <p className="text-strong min-w-0 flex-1 truncate text-sm font-medium">Assistant</p>
|
|
212
|
+
* <AppLayout.SidePanelTrigger icon={<XIcon />} label="Close the assistant" />
|
|
213
|
+
* </AppLayout.SidePanelHeader>
|
|
214
|
+
* <AppLayout.SidePanelBody>
|
|
215
|
+
* <AssistantConversation />
|
|
216
|
+
* </AppLayout.SidePanelBody>
|
|
217
|
+
* <AppLayout.SidePanelFooter>
|
|
218
|
+
* <AssistantComposer />
|
|
219
|
+
* </AppLayout.SidePanelFooter>
|
|
220
|
+
* </AppLayout.SidePanel>
|
|
221
|
+
* </AppLayout.Workspace>
|
|
222
|
+
* </AppLayout.SidePanelRoot>
|
|
223
|
+
* </AppLayout.Root>
|
|
224
|
+
* </Sidebar.Root>
|
|
225
|
+
* ```
|
|
226
|
+
*/
|
|
227
|
+
declare const AppLayout: typeof AppLayoutParts;
|
|
2013
228
|
export { AppLayout, type AppLayoutSidePanelMobileBreakpoint, type AppLayoutSidePanelProps, type AppLayoutSidePanelRootProps, type AppLayoutSidePanelState, type AppLayoutSidePanelTriggerProps, SIDE_PANEL_STATE_COOKIE_NAME, type SerializeSidePanelStateCookieOptions, extractSidePanelStateCookie, serializeSidePanelStateCookie, useSidePanel };
|